Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

evaljs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evaljs - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

dist/eval.min.js

@@ -1,2 +0,2 @@

!function e(r,n,t){function a(i,s){if(!n[i]){if(!r[i]){var c="function"==typeof require&&require;if(!s&&c)return c(i,!0);if(o)return o(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[i]={exports:{}};r[i][0].call(f.exports,function(e){var n=r[i][1][e];return a(n?n:e)},f,f.exports,e,r,n,t)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<t.length;i++)a(t[i]);return a}({1:[function(e,r,n){(function(r){"use strict";function t(){}function a(e){return e()}function o(){}function i(e){this.value=e}function s(e){Array.isArray(e)||(e=[e]);var r;e.forEach(function(e){r=c(e,r)}),this._curScope=r,this._globalObj=e[0],this._curThis=this._globalObj,this._boundGen=this.gen.bind(this)}function c(e,r){return{parent:r,vars:e}}function u(e,r){var n=[e].concat(r);return new(Function.prototype.bind.apply(e,n))}var f=e("acorn/acorn_csp").parse;o.prototype.toString=function(){return"[object Arguments]"};var l={},p={};s.prototype.gen=function(e){return({BinaryExpression:this.genBinExpr,LogicalExpression:this.genBinExpr,UnaryExpression:this.genUnaryExpr,UpdateExpression:this.genUpdExpr,ObjectExpression:this.genObjExpr,ArrayExpression:this.genArrExpr,CallExpression:this.genCallExpr,NewExpression:this.genNewExpr,MemberExpression:this.genMemExpr,ThisExpression:this.genThisExpr,SequenceExpression:this.genSeqExpr,Literal:this.genLit,Identifier:this.genIdent,AssignmentExpression:this.genAssignExpr,FunctionDeclaration:this.genFuncDecl,VariableDeclaration:this.genVarDecl,BlockStatement:this.genProgram,Program:this.genProgram,ExpressionStatement:this.genExprStmt,EmptyStatement:this.genEmptyStmt,ReturnStatement:this.genRetStmt,FunctionExpression:this.genFuncExpr,IfStatement:this.genIfStmt,ConditionalExpression:this.genIfStmt,ForStatement:this.genLoopStmt,WhileStatement:this.genLoopStmt,DoWhileStatement:this.genDoWhileStmt,ForInStatement:this.genForInStmt,WithStatement:this.genWithStmt,ThrowStatement:this.genThrowStmt,TryStatement:this.genTryStmt,ContinueStatement:this.genContStmt,BreakStatement:this.genBreakStmt}[e.type]||function(){return console.warn("Not implemented yet: "+e.type),t}).call(this,e)},s.prototype.genBinExpr=function(e){var r={"==":function(e,r){return e==r},"!=":function(e,r){return e!=r},"===":function(e,r){return e===r},"!==":function(e,r){return e!==r},"<":function(e,r){return r>e},"<=":function(e,r){return r>=e},">":function(e,r){return e>r},">=":function(e,r){return e>=r},"<<":function(e,r){return e<<r},">>":function(e,r){return e>>r},">>>":function(e,r){return e>>>r},"+":function(e,r){return e+r},"-":function(e,r){return e-r},"*":function(e,r){return e*r},"/":function(e,r){return e/r},"%":function(e,r){return e%r},"|":function(e,r){return e|r},"^":function(e,r){return e^r},"&":function(e,r){return e&r},"in":function(e,r){return e in r},"instanceof":function(e,r){return e instanceof r},"||":function(e,r){return e||r},"&&":function(e,r){return e&&r}}[e.operator],n=this.gen(e.left),t=this.gen(e.right);return function(){return r(n(),t())}},s.prototype.genUnaryExpr=function(e){var r={"-":function(e){return-e},"+":function(e){return+e},"!":function(e){return!e},"~":function(e){return~e},"typeof":function(e){return typeof e},"void":function(e){return void e}}[e.operator],n=this.gen(e.argument);return function(){return r(n())}},s.prototype.genObjExpr=function(e){var r=this,n=[];return e.properties.forEach(function(e){var t=r._objKey(e.key)();n.push({key:t,getVal:r.gen(e.value)})}),function(){var e={};return n.forEach(function(r){e[r.key]=r.getVal()}),e}},s.prototype.genArrExpr=function(e){var r=e.elements.map(this._boundGen);return function(){return r.map(a)}},s.prototype._objKey=function(e){var r;return r="Identifier"===e.type?e.name:this.gen(e)(),function(){return r}},s.prototype.genCallExpr=function(e){var r,n=this;if("MemberExpression"===e.callee.type){var t=n._genObj(e.callee),o=n._genName(e.callee);r=function(){var e=t();return e[o()].bind(e)}}else r=n.gen(e.callee);var i=e.arguments.map(n.gen.bind(n));return function(){return r().apply(n._globalObj,i.map(a))}},s.prototype.genNewExpr=function(e){var r=this.gen(e.callee),n=e.arguments.map(this._boundGen);return function(){return u(r(),n.map(a))}},s.prototype.genMemExpr=function(e){var r=this.gen(e.object),n=this._memExprProperty(e);return function(){return r()[n()]}},s.prototype._memExprProperty=function(e){return e.computed?this.gen(e.property):this._objKey(e.property)},s.prototype.genThisExpr=function(){var e=this;return function(){return e._curThis}},s.prototype.genSeqExpr=function(e){var r=e.expressions.map(this._boundGen);return function(){var e;return r.forEach(function(r){e=r()}),e}},s.prototype.genUpdExpr=function(e){var r={"--true":function(e,r){return--e[r]},"--false":function(e,r){return e[r]--},"++true":function(e,r){return++e[r]},"++false":function(e,r){return e[r]++}}[e.operator+e.prefix],n=this._genObj(e.argument),t=this._genName(e.argument);return function(){return r(n(),t())}},s.prototype._genObj=function(e){return"Identifier"===e.type?this._getScopeVars.bind(this,e.name):"MemberExpression"===e.type?this.gen(e.object):(console.warn("Unknown _genObj() type: "+e.type),t)},s.prototype._genName=function(e){return"Identifier"===e.type?function(){return e.name}:"MemberExpression"===e.type?this._memExprProperty(e):(console.warn("Unknown _genName() type: "+e.type),t)},s.prototype.genLit=function(e){return function(){return e.value}},s.prototype.genIdent=function(e){var r=this;return function(){return r._getScopeVars(e.name)[e.name]}},s.prototype._getScopeVars=function(e){var r=this._curScope;do if(r.vars.hasOwnProperty(e))return r.vars;while(r=r.parent);return this._globalObject},s.prototype.genAssignExpr=function(e){var r={"=":function(e,r,n){return e[r]=n},"+=":function(e,r,n){return e[r]+=n},"-=":function(e,r,n){return e[r]-=n},"*=":function(e,r,n){return e[r]*=n},"/=":function(e,r,n){return e[r]/=n},"%=":function(e,r,n){return e[r]%=n},"<<=":function(e,r,n){return e[r]<<=n},">>=":function(e,r,n){return e[r]>>=n},">>>=":function(e,r,n){return e[r]>>>=n},"|=":function(e,r,n){return e[r]|=n},"^=":function(e,r,n){return e[r]^=n},"&=":function(e,r,n){return e[r]&=n}}[e.operator],n=this._genObj(e.left),t=this._genName(e.left),a=this.gen(e.right);return function(){return r(n(),t(),a())}},s.prototype.genFuncDecl=function(e){var r=this,n=r.genFuncExpr(e);return function(){r._curScope.vars[e.id.name]=n()}},s.prototype.genVarDecl=function(e){var r=this,n=e.declarations.map(function(e){return{name:e.id.name,getVal:e.init?r.gen(e.init):t}});return function(){n.forEach(function(e){r._curScope.vars[e.name]=e.getVal()})}},s.prototype.genFuncExpr=function(e){var r=this;r._curScope=c({},r._curScope);var n=r.gen(e.body),t=r._curScope;return r._curScope=t.parent,function(){return function(){var a=new o;a.length=arguments.length;for(var s=0;s<arguments.length;s++)a[s]=arguments[s];t.vars.arguments=a,e.params.forEach(function(e,r){t.vars[e.name]=a[r]});var c=r._curScope,u=r._curThis;r._curScope=t,r._curThis=this;var f=n();return r._curThis=u,r._curScope=c,f instanceof i?f.value:void 0}}},s.prototype.genProgram=function(e){var r=this,n=e.body.map(function(e){return r.gen(e)});return function(){for(var e,r=0;r<n.length&&(e=n[r](),!(e===l||e===p||e instanceof i));r++);return e}},s.prototype.genExprStmt=function(e){return this.gen(e.expression)},s.prototype.genEmptyStmt=function(){return t},s.prototype.genRetStmt=function(e){var r=this.gen(e.argument);return function(){return new i(r())}},s.prototype.genIfStmt=function(e){var r=this.gen(e.test),n=this.gen(e.consequent),a=e.alternate?this.gen(e.alternate):t;return function(){return r()?n():a()}},s.prototype.genLoopStmt=function(e,r){var n=e.init?this.gen(e.init):t,a=e.test?this.gen(e.test):function(){return!0},o=e.update?this.gen(e.update):t;return r=r||this.gen(e.body),function(){var e;for(n();a();o()){var t=r();if(t===l)break;if(t!==p&&(e=t,t instanceof i))break}return e}},s.prototype.genDoWhileStmt=function(e){var r=this.gen(e.body),n=this.genLoopStmt(e,r);return function(){return r(),n()}},s.prototype.genForInStmt=function(){return t},s.prototype.genWithStmt=function(e){var r=this,n=r.gen(e.object),t=r.gen(e.body);return function(){var e=r._curScope;r._curScope=c(n(),e);var a=t();return r._curScope=e,a}},s.prototype.genThrowStmt=function(e){var r=this.gen(e.argument);return function(){throw r()}},s.prototype.genTryStmt=function(e){var r=this.gen(e.block),n=this._genCatchHandler(e.handler),t=e.finalizer?this.gen(e.finalizer):null;return function(){try{r()}catch(e){var a=n(e);if(!t)return a}finally{return t()}}},s.prototype._genCatchHandler=function(e){if(!e)return t;var r=this,n=r.gen(e.body);return function(t){var a=r._curScope[e.param.name];r._curScope[e.param.name]=t;var o=n();return r._curScope[e.param.name]=a,o}},s.prototype.genContStmt=function(){return function(){return p}},s.prototype.genBreakStmt=function(){return function(){return l}},n.Environment=s;var d=!1;n.evaluate=function(e){var n=f(e);d=!0;var t=new s(r),a=t.gen(n)();return d=!1,a},console.log(n.evaluate("2 + 1"))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"acorn/acorn_csp":2}],2:[function(e,r,n){!function(e,t){return"object"==typeof n&&"object"==typeof r?t(n):"function"==typeof define&&define.amd?define(["exports"],t):void t(e.acorn||(e.acorn={}))}(this,function(e){"use strict";function r(e){Zr={};for(var r in tn)Zr[r]=e&&K(e,r)?e[r]:tn[r];if(nn=Zr.sourceFile||null,an(Zr.onToken)){var n=Zr.onToken;Zr.onToken=function(e){n.push(e)}}if(an(Zr.onComment)){var t=Zr.onComment;Zr.onComment=function(e,r,n,a,o,i){var s={type:e?"Block":"Line",value:r,start:n,end:a};Zr.locations&&(s.loc=new q,s.loc.start=o,s.loc.end=i),Zr.ranges&&(s.range=[n,a]),t.push(s)}}Kt=Zr.ecmaVersion>=6?Ht:$t}function n(){this.type=pn,this.value=dn,this.start=cn,this.end=un,Zr.locations&&(this.loc=new q,this.loc.end=ln,this.startLoc=fn,this.endLoc=ln),Zr.ranges&&(this.range=[cn,un])}function t(){vn=yn=sn,Zr.locations&&(bn=i()),xn=wn=kn=!1,En=[],l(),w()}function a(e,r){var n=on(en,e);r+=" ("+n.line+":"+n.column+")";var t=new SyntaxError(r);throw t.pos=e,t.loc=n,t.raisedAt=sn,t}function o(e,r){this.line=e,this.column=r}function i(){return new o(mn,sn-gn)}function s(e){e?(sn=e,gn=Math.max(0,en.lastIndexOf("\n",e)),mn=en.slice(0,gn).split(ra).length):(mn=1,sn=gn=0),hn=!0,Sn=0,Cn=[]}function c(e,r,t){un=sn,Zr.locations&&(ln=i()),pn=e,t!==!1&&l(),dn=r,hn=e.beforeExpr,Zr.onToken&&Zr.onToken(new n)}function u(){var e=Zr.onComment&&Zr.locations&&i(),r=sn,n=en.indexOf("*/",sn+=2);if(-1===n&&a(sn-2,"Unterminated comment"),sn=n+2,Zr.locations){na.lastIndex=r;for(var t;(t=na.exec(en))&&t.index<sn;)++mn,gn=t.index+t[0].length}Zr.onComment&&Zr.onComment(!0,en.slice(r+2,n),r,sn,e,Zr.locations&&i())}function f(e){for(var r=sn,n=Zr.onComment&&Zr.locations&&i(),t=en.charCodeAt(sn+=e);rn>sn&&10!==t&&13!==t&&8232!==t&&8233!==t;)++sn,t=en.charCodeAt(sn);Zr.onComment&&Zr.onComment(!1,en.slice(r+e,sn),r,sn,n,Zr.locations&&i())}function l(){for(;rn>sn;){var e=en.charCodeAt(sn);if(32===e)++sn;else if(13===e){++sn;var r=en.charCodeAt(sn);10===r&&++sn,Zr.locations&&(++mn,gn=sn)}else if(10===e||8232===e||8233===e)++sn,Zr.locations&&(++mn,gn=sn);else if(e>8&&14>e)++sn;else if(47===e){var r=en.charCodeAt(sn+1);if(42===r)u();else{if(47!==r)break;f(2)}}else if(160===e)++sn;else{if(!(e>=5760&&Yt.test(String.fromCharCode(e))))break;++sn}}}function p(){var e=en.charCodeAt(sn+1);if(e>=48&&57>=e)return A(!0);var r=en.charCodeAt(sn+2);return Zr.ecmaVersion>=6&&46===e&&46===r?(sn+=3,c(Ct)):(++sn,c(xt))}function d(){var e=en.charCodeAt(sn+1);return hn?(++sn,k()):61===e?E(It,2):E(At,1)}function h(e){var r=en.charCodeAt(sn+1);return 61===r?E(It,2):E(42===e?Mt:Rt,1)}function m(e){var r=en.charCodeAt(sn+1);return r===e?E(124===e?Tt:Ot,2):61===r?E(It,2):E(124===e?jt:Dt,1)}function g(){var e=en.charCodeAt(sn+1);return 61===e?E(It,2):E(Lt,1)}function v(e){var r=en.charCodeAt(sn+1);return r===e?45==r&&62==en.charCodeAt(sn+2)&&ra.test(en.slice(yn,sn))?(f(3),l(),w()):E(Vt,2):61===r?E(It,2):E(Bt,1)}function y(e){var r=en.charCodeAt(sn+1),n=1;return r===e?(n=62===e&&62===en.charCodeAt(sn+2)?3:2,61===en.charCodeAt(sn+n)?E(It,n+1):E(Pt,n)):33==r&&60==e&&45==en.charCodeAt(sn+2)&&45==en.charCodeAt(sn+3)?(f(4),l(),w()):(61===r&&(n=61===en.charCodeAt(sn+2)?3:2),E(qt,n))}function b(e){var r=en.charCodeAt(sn+1);return 61===r?E(Ut,61===en.charCodeAt(sn+2)?3:2):61===e&&62===r&&Zr.ecmaVersion>=6?(sn+=2,c(Et)):E(61===e?_t:Ft,1)}function x(e){switch(e){case 46:return p();case 40:return++sn,c(mt);case 41:return++sn,c(gt);case 59:return++sn,c(yt);case 44:return++sn,c(vt);case 91:return++sn,c(lt);case 93:return++sn,c(pt);case 123:return++sn,Cn.length&&++Cn[Cn.length-1],c(dt);case 125:return++sn,Cn.length&&0===--Cn[Cn.length-1]?V(St):c(ht);case 58:return++sn,c(bt);case 63:return++sn,c(wt);case 96:if(Zr.ecmaVersion>=6)return++sn,V(kt);case 48:var r=en.charCodeAt(sn+1);if(120===r||88===r)return C(16);if(Zr.ecmaVersion>=6){if(111===r||79===r)return C(8);if(98===r||66===r)return C(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return A(!1);case 34:case 39:return I(e);case 47:return d();case 37:case 42:return h(e);case 124:case 38:return m(e);case 94:return g();case 43:case 45:return v(e);case 60:case 62:return y(e);case 61:case 33:return b(e);case 126:return E(Ft,1)}return!1}function w(e){if(e?sn=cn+1:cn=sn,Zr.locations&&(fn=i()),e)return k();if(sn>=rn)return c(Tn);var r=en.charCodeAt(sn);if(ta(r)||92===r)return j();var n=x(r);if(n===!1){var t=String.fromCharCode(r);if("\\"===t||Zt.test(t))return j();a(sn,"Unexpected character '"+t+"'")}return n}function E(e,r){var n=en.slice(sn,sn+r);sn+=r,c(e,n)}function k(){for(var e,r,n="",t=sn;;){sn>=rn&&a(t,"Unterminated regular expression");var o=en.charAt(sn);if(ra.test(o)&&a(t,"Unterminated regular expression"),e)e=!1;else{if("["===o)r=!0;else if("]"===o&&r)r=!1;else if("/"===o&&!r)break;e="\\"===o}++sn}var n=en.slice(t,sn);++sn;var i=O(),s=n;if(i){var u=/^[gmsiy]*$/;Zr.ecmaVersion>=6&&(u=/^[gmsiyu]*$/),u.test(i)||a(t,"Invalid regular expression flag"),i.indexOf("u")>=0&&!oa&&(s=s.replace(/\\u\{([0-9a-fA-F]{5,6})\}/g,"x").replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"))}try{new RegExp(s)}catch(f){f instanceof SyntaxError&&a(t,"Error parsing regular expression: "+f.message),a(f)}try{var l=new RegExp(n,i)}catch(p){l=null}return c(In,{pattern:n,flags:i,value:l})}function S(e,r){for(var n=sn,t=0,a=0,o=null==r?1/0:r;o>a;++a){var i,s=en.charCodeAt(sn);if(i=s>=97?s-97+10:s>=65?s-65+10:s>=48&&57>=s?s-48:1/0,i>=e)break;++sn,t=t*e+i}return sn===n||null!=r&&sn-n!==r?null:t}function C(e){sn+=2;var r=S(e);return null==r&&a(cn+2,"Expected number in radix "+e),ta(en.charCodeAt(sn))&&a(sn,"Identifier directly after number"),c(_n,r)}function A(e){var r=sn,n=!1,t=48===en.charCodeAt(sn);e||null!==S(10)||a(r,"Invalid number"),46===en.charCodeAt(sn)&&(++sn,S(10),n=!0);var o=en.charCodeAt(sn);(69===o||101===o)&&(o=en.charCodeAt(++sn),(43===o||45===o)&&++sn,null===S(10)&&a(r,"Invalid number"),n=!0),ta(en.charCodeAt(sn))&&a(sn,"Identifier directly after number");var i,s=en.slice(r,sn);return n?i=parseFloat(s):t&&1!==s.length?/[89]/.test(s)||kn?a(r,"Invalid number"):i=parseInt(s,8):i=parseInt(s,10),c(_n,i)}function _(){var e,r=en.charCodeAt(sn);if(123===r?(Zr.ecmaVersion<6&&H(),++sn,e=T(en.indexOf("}",sn)-sn),++sn,e>1114111&&H()):e=T(4),65535>=e)return String.fromCharCode(e);var n=(e-65536>>10)+55296,t=(e-65536&1023)+56320;return String.fromCharCode(n,t)}function I(e){++sn;for(var r="";;){sn>=rn&&a(cn,"Unterminated string constant");var n=en.charCodeAt(sn);if(n===e)return++sn,c(Vn,r);92===n?r+=F():(++sn,ra.test(String.fromCharCode(n))&&a(cn,"Unterminated string constant"),r+=String.fromCharCode(n))}}function V(e){e==St&&Cn.pop();for(var r="",n=sn;;){sn>=rn&&a(cn,"Unterminated template");var t=en.charAt(sn);if("`"===t||"$"===t&&123===en.charCodeAt(sn+1)){var o=en.slice(n,sn);return++sn,"$"==t&&(++sn,Cn.push(1)),c(e,{cooked:r,raw:o})}"\\"===t?r+=F():(++sn,ra.test(t)&&("\r"===t&&10===en.charCodeAt(sn)&&(++sn,t="\n"),Zr.locations&&(++mn,gn=sn)),r+=t)}}function F(){var e=en.charCodeAt(++sn),r=/^[0-7]+/.exec(en.slice(sn,sn+3));for(r&&(r=r[0]);r&&parseInt(r,8)>255;)r=r.slice(0,-1);if("0"===r&&(r=null),++sn,r)return kn&&a(sn-2,"Octal literal in strict mode"),sn+=r.length-1,String.fromCharCode(parseInt(r,8));switch(e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(T(2));case 117:return _();case 116:return" ";case 98:return"\b";case 118:return" ";case 102:return"\f";case 48:return"\x00";case 13:10===en.charCodeAt(sn)&&++sn;case 10:return Zr.locations&&(gn=sn,++mn),"";default:return String.fromCharCode(e)}}function T(e){var r=S(16,e);return null===r&&a(cn,"Bad character escape sequence"),r}function O(){sa=!1;for(var e,r=!0,n=sn;;){var t=en.charCodeAt(sn);if(aa(t))sa&&(e+=en.charAt(sn)),++sn;else{if(92!==t)break;sa||(e=en.slice(n,sn)),sa=!0,117!=en.charCodeAt(++sn)&&a(sn,"Expecting Unicode escape sequence \\uXXXX"),++sn;var o=T(4),i=String.fromCharCode(o);i||a(sn-1,"Invalid Unicode escape"),(r?ta(o):aa(o))||a(sn-4,"Invalid Unicode escape"),e+=i}r=!1}return sa?e:en.slice(n,sn)}function j(){var e=O(),r=Fn;return!sa&&Kt(e)&&(r=ft[e]),c(r,e)}function L(){vn=cn,yn=un,bn=ln,w()}function D(e){if(kn=e,sn=cn,Zr.locations)for(;gn>sn;)gn=en.lastIndexOf("\n",gn-2)+1,--mn;l(),w()}function U(){this.type=null,this.start=cn,this.end=null}function q(){this.start=fn,this.end=null,null!==nn&&(this.source=nn)}function P(){var e=new U;return Zr.locations&&(e.loc=new q),Zr.directSourceFile&&(e.sourceFile=Zr.directSourceFile),Zr.ranges&&(e.range=[cn,0]),e}function B(){return Zr.locations?[cn,fn]:cn}function R(e){var r=new U,n=e;return Zr.locations&&(r.loc=new q,r.loc.start=n[1],n=e[0]),r.start=n,Zr.directSourceFile&&(r.sourceFile=Zr.directSourceFile),Zr.ranges&&(r.range=[n,0]),r}function M(e,r){return e.type=r,e.end=yn,Zr.locations&&(e.loc.end=bn),Zr.ranges&&(e.range[1]=yn),e}function N(e,r,n){return Zr.locations&&(e.loc.end=n[1],n=n[0]),e.type=r,e.end=n,Zr.ranges&&(e.range[1]=n),e}function W(e){return Zr.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"use strict"===e.expression.value}function z(e){return pn===e?(L(),!0):!1}function G(){return!Zr.strictSemicolons&&(pn===Tn||pn===ht||ra.test(en.slice(yn,cn)))}function X(){z(yt)||G()||H()}function $(e){z(e)||H()}function H(e){a(null!=e?e:cn,"Unexpected token")}function K(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function Y(e,r,n){if(Zr.ecmaVersion>=6&&e)switch(e.type){case"Identifier":case"MemberExpression":break;case"ObjectExpression":e.type="ObjectPattern";for(var t=0;t<e.properties.length;t++){var a=e.properties[t];"init"!==a.kind&&H(a.key.start),Y(a.value,!1,n)}break;case"ArrayExpression":e.type="ArrayPattern";for(var t=0,o=e.elements.length-1;o>=t;t++)Y(e.elements[t],t===o,n);break;case"SpreadElement":r?(Y(e.argument,!1,n),J(e.argument)):H(e.start);break;default:n&&H(e.start)}return e}function J(e){"Identifier"!==e.type&&"ArrayPattern"!==e.type&&H(e.start)}function Q(e,r){switch(e.type){case"Identifier":(Gt(e.name)||Xt(e.name))&&a(e.start,"Defining '"+e.name+"' in strict mode"),K(r,e.name)&&a(e.start,"Argument name clash in strict mode"),r[e.name]=!0;break;case"ObjectPattern":for(var n=0;n<e.properties.length;n++)Q(e.properties[n].value,r);break;case"ArrayPattern":for(var n=0;n<e.elements.length;n++){var t=e.elements[n];t&&Q(t,r)}}}function Z(e,r){if(!(Zr.ecmaVersion>=6)){var n,t=e.key;switch(t.type){case"Identifier":n=t.name;break;case"Literal":n=String(t.value);break;default:return}var o,i=e.kind||"init";if(K(r,n)){o=r[n];var s="init"!==i;((kn||s)&&o[i]||!(s^o.init))&&a(t.start,"Redefinition of property")}else o=r[n]={init:!1,get:!1,set:!1};o[i]=!0}}function er(e,r){switch(e.type){case"Identifier":kn&&(Xt(e.name)||Gt(e.name))&&a(e.start,r?"Binding "+e.name+" in strict mode":"Assigning to "+e.name+" in strict mode");break;case"MemberExpression":if(!r)break;case"ObjectPattern":for(var n=0;n<e.properties.length;n++)er(e.properties[n].value,r);break;case"ArrayPattern":for(var n=0;n<e.elements.length;n++){var t=e.elements[n];t&&er(t,r)}break;case"SpreadElement":break;default:a(e.start,"Assigning to rvalue")}}function rr(e){var r=!0;for(e.body||(e.body=[]);pn!==Tn;){var n=nr(!0);e.body.push(n),r&&W(n)&&D(!0),r=!1}return vn=cn,yn=un,bn=ln,M(e,"Program")}function nr(e){(pn===At||pn===It&&"/="==dn)&&w(!0);var r=pn,n=P();switch(r){case On:case Dn:return tr(n,r.keyword);case Un:return ar(n);case Pn:return or(n);case Mn:return ir(n);case Nn:return sr(n);case rt:return zr(n,!0);case Wn:return cr(n);case zn:return ur(n);case Gn:return fr(n);case Xn:return lr(n);case $n:return pr(n);case Hn:case Kn:case Yn:return dr(n,r.keyword);case Jn:return hr(n);case Qn:return mr(n);case dt:return xr();case yt:return gr(n);case tt:case at:return e||Zr.allowImportExportEverywhere||a(cn,"'import' and 'export' may only appear at the top level"),r===at?Kr(n):$r(n);default:var t=dn,o=Sr();return r===Fn&&"Identifier"===o.type&&z(bt)?vr(n,t,o):yr(n,o)}}function tr(e,r){var n="break"==r;L(),z(yt)||G()?e.label=null:pn!==Fn?H():(e.label=Xr(),X());for(var t=0;t<En.length;++t){var o=En[t];if(null==e.label||o.name===e.label.name){if(null!=o.kind&&(n||"loop"===o.kind))break;if(e.label&&n)break}}return t===En.length&&a(e.start,"Unsyntactic "+r),M(e,n?"BreakStatement":"ContinueStatement")}function ar(e){return L(),X(),M(e,"DebuggerStatement")}function or(e){return L(),En.push(ca),e.body=nr(),En.pop(),$(Jn),e.test=br(),Zr.ecmaVersion>=6?z(yt):X(),M(e,"DoWhileStatement")}function ir(e){if(L(),En.push(ca),$(mt),pn===yt)return wr(e,null);if(pn===Hn||pn===Kn){var r=P(),n=pn.keyword,t=pn===Kn;return L(),kr(r,!0,n),M(r,"VariableDeclaration"),!(pn===ut||Zr.ecmaVersion>=6&&pn===Fn&&"of"===dn)||1!==r.declarations.length||t&&r.declarations[0].init?wr(e,r):Er(e,r)}var r=Sr(!1,!0);return pn===ut||Zr.ecmaVersion>=6&&pn===Fn&&"of"===dn?(er(r),Er(e,r)):wr(e,r)}function sr(e){return L(),Br(e,!0)}function cr(e){return L(),e.test=br(),e.consequent=nr(),e.alternate=z(Bn)?nr():null,M(e,"IfStatement")}function ur(e){return xn||Zr.allowReturnOutsideFunction||a(cn,"'return' outside of function"),L(),z(yt)||G()?e.argument=null:(e.argument=Sr(),X()),M(e,"ReturnStatement")}function fr(e){L(),e.discriminant=br(),e.cases=[],$(dt),En.push(ua);for(var r,n;pn!=ht;)if(pn===jn||pn===qn){var t=pn===jn;r&&M(r,"SwitchCase"),e.cases.push(r=P()),r.consequent=[],L(),t?r.test=Sr():(n&&a(vn,"Multiple default clauses"),n=!0,r.test=null),$(bt)}else r||H(),r.consequent.push(nr());return r&&M(r,"SwitchCase"),L(),En.pop(),M(e,"SwitchStatement")}function lr(e){return L(),ra.test(en.slice(yn,cn))&&a(yn,"Illegal newline after throw"),e.argument=Sr(),X(),M(e,"ThrowStatement")}function pr(e){if(L(),e.block=xr(),e.handler=null,pn===Ln){var r=P();L(),$(mt),r.param=Xr(),kn&&Xt(r.param.name)&&a(r.param.start,"Binding "+r.param.name+" in strict mode"),$(gt),r.guard=null,r.body=xr(),e.handler=M(r,"CatchClause")}return e.guardedHandlers=An,e.finalizer=z(Rn)?xr():null,e.handler||e.finalizer||a(e.start,"Missing catch or finally clause"),M(e,"TryStatement")}function dr(e,r){return L(),kr(e,!1,r),X(),M(e,"VariableDeclaration")}function hr(e){return L(),e.test=br(),En.push(ca),e.body=nr(),En.pop(),M(e,"WhileStatement")}function mr(e){return kn&&a(cn,"'with' in strict mode"),L(),e.object=br(),e.body=nr(),M(e,"WithStatement")}function gr(e){return L(),M(e,"EmptyStatement")}function vr(e,r,n){for(var t=0;t<En.length;++t)En[t].name===r&&a(n.start,"Label '"+r+"' is already declared");var o=pn.isLoop?"loop":pn===Gn?"switch":null;return En.push({name:r,kind:o}),e.body=nr(),En.pop(),e.label=n,M(e,"LabeledStatement")}function yr(e,r){return e.expression=r,X(),M(e,"ExpressionStatement")}function br(){$(mt);var e=Sr();return $(gt),e}function xr(e){var r,n=P(),t=!0;for(n.body=[],$(dt);!z(ht);){var a=nr();n.body.push(a),t&&e&&W(a)&&(r=kn,D(kn=!0)),t=!1}return r===!1&&D(!1),M(n,"BlockStatement")}function wr(e,r){return e.init=r,$(yt),e.test=pn===yt?null:Sr(),$(yt),e.update=pn===gt?null:Sr(),$(gt),e.body=nr(),En.pop(),M(e,"ForStatement")}function Er(e,r){var n=pn===ut?"ForInStatement":"ForOfStatement";return L(),e.left=r,e.right=Sr(),$(gt),e.body=nr(),En.pop(),M(e,n)}function kr(e,r,n){for(e.declarations=[],e.kind=n;;){var t=P();if(t.id=Zr.ecmaVersion>=6?Y(Or()):Xr(),er(t.id,!0),t.init=z(_t)?Sr(!0,r):n===Yn.keyword?H():null,e.declarations.push(M(t,"VariableDeclarator")),!z(vt))break}return e}function Sr(e,r){var n=B(),t=Cr(r);if(!e&&pn===vt){var a=R(n);for(a.expressions=[t];z(vt);)a.expressions.push(Cr(r));return M(a,"SequenceExpression")}return t}function Cr(e){var r=B(),n=Ar(e);if(pn.isAssign){var t=R(r);return t.operator=dn,t.left=pn===_t?Y(n):n,er(n),L(),t.right=Cr(e),M(t,"AssignmentExpression")}return n}function Ar(e){var r=B(),n=_r(e);if(z(wt)){var t=R(r);return t.test=n,t.consequent=Sr(!0),$(bt),t.alternate=Sr(!0,e),M(t,"ConditionalExpression")}return n}function _r(e){var r=B();return Ir(Vr(),r,-1,e)}function Ir(e,r,n,t){var a=pn.binop;if(null!=a&&(!t||pn!==ut)&&a>n){var o=R(r);o.left=e,o.operator=dn;var i=pn;L();var s=B();return o.right=Ir(Vr(),s,a,t),M(o,i===Tt||i===Ot?"LogicalExpression":"BinaryExpression"),Ir(o,r,n,t)}return e}function Vr(){if(pn.prefix){var e,r=P(),n=pn.isUpdate;return pn===Ct?e="SpreadElement":(e=n?"UpdateExpression":"UnaryExpression",r.operator=dn,r.prefix=!0),hn=!0,L(),r.argument=Vr(),n?er(r.argument):kn&&"delete"===r.operator&&"Identifier"===r.argument.type&&a(r.start,"Deleting local variable in strict mode"),M(r,e)}for(var t=B(),o=Fr();pn.postfix&&!G();){var r=R(t);r.operator=dn,r.prefix=!1,r.argument=o,er(o),L(),o=M(r,"UpdateExpression")}return o}function Fr(){var e=B();return Tr(Or(),e)}function Tr(e,r,n){if(z(xt)){var t=R(r);return t.object=e,t.property=Xr(!0),t.computed=!1,Tr(M(t,"MemberExpression"),r,n)}if(z(lt)){var t=R(r);return t.object=e,t.property=Sr(),t.computed=!0,$(pt),Tr(M(t,"MemberExpression"),r,n)}if(!n&&z(mt)){var t=R(r);return t.callee=e,t.arguments=Gr(gt,!1),Tr(M(t,"CallExpression"),r,n)}if(pn===kt){var t=R(r);return t.tag=e,t.quasi=Dr(),Tr(M(t,"TaggedTemplateExpression"),r,n)}return e}function Or(){switch(pn){case et:var e=P();return L(),M(e,"ThisExpression");case ot:if(wn)return Jr();case Fn:var r=B(),n=Xr(pn!==Fn);return z(Et)?Mr(R(r),[n]):n;case In:var e=P();return e.regex={pattern:dn.pattern,flags:dn.flags},e.value=dn.value,e.raw=en.slice(cn,un),L(),M(e,"Literal");case _n:case Vn:var e=P();return e.value=dn,e.raw=en.slice(cn,un),L(),M(e,"Literal");case it:case st:case ct:var e=P();return e.value=pn.atomValue,e.raw=pn.keyword,L(),M(e,"Literal");case mt:var t,a,r=B();if(L(),Zr.ecmaVersion>=7&&pn===Mn)t=Qr(R(r),!0);else{var o=++Sn;if(pn!==gt?(t=Sr(),a="SequenceExpression"===t.type?t.expressions:[t]):a=[],$(gt),Sn===o&&z(Et))t=Mr(R(r),a);else{if(t||H(vn),Zr.ecmaVersion>=6)for(var i=0;i<a.length;i++)"SpreadElement"===a[i].type&&H();if(Zr.preserveParens){var s=R(r);s.expression=t,t=M(s,"ParenthesizedExpression")}}}return t;case lt:var e=P();return L(),Zr.ecmaVersion>=7&&pn===Mn?Qr(e,!1):(e.elements=Gr(pt,!0,!0),M(e,"ArrayExpression"));case dt:return Ur();case Nn:var e=P();return L(),Br(e,!1);case rt:return zr(P(),!1);case Zn:return jr();case kt:return Dr();default:H()}}function jr(){var e=P();L();var r=B();return e.callee=Tr(Or(),r,!0),e.arguments=z(mt)?Gr(gt,!1):An,M(e,"NewExpression")}function Lr(){var e=R(Zr.locations?[cn+1,fn.offset(1)]:cn+1);e.value=dn,e.tail=123!==en.charCodeAt(un-1),L();var r=e.tail?1:2;return N(e,"TemplateElement",Zr.locations?[yn-r,bn.offset(-r)]:yn-r)}function Dr(){var e=P();e.expressions=[];var r=Lr();for(e.quasis=[r];!r.tail;)e.expressions.push(Sr()),pn!==St&&H(),e.quasis.push(r=Lr());return M(e,"TemplateLiteral")}function Ur(){var e=P(),r=!0,n={};for(e.properties=[],L();!z(ht);){if(r)r=!1;else if($(vt),Zr.allowTrailingCommas&&z(ht))break;var t,a=P();Zr.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,t=z(Mt)),qr(a),z(bt)?(a.value=Sr(!0),a.kind="init"):Zr.ecmaVersion>=6&&pn===mt?(a.kind="init",a.method=!0,a.value=Rr(t)):Zr.ecmaVersion>=5&&!a.computed&&"Identifier"===a.key.type&&("get"===a.key.name||"set"===a.key.name)?(t&&H(),a.kind=a.key.name,qr(a),a.value=Rr(!1)):Zr.ecmaVersion>=6&&!a.computed&&"Identifier"===a.key.type?(a.kind="init",a.value=a.key,a.shorthand=!0):H(),Z(a,n),e.properties.push(M(a,"Property"))}return M(e,"ObjectExpression")}function qr(e){if(Zr.ecmaVersion>=6){if(z(lt))return e.computed=!0,e.key=Sr(),void $(pt);e.computed=!1}e.key=pn===_n||pn===Vn?Or():Xr(!0)}function Pr(e){e.id=null,e.params=[],Zr.ecmaVersion>=6&&(e.defaults=[],e.rest=null,e.generator=!1)}function Br(e,r,n){return Pr(e),Zr.ecmaVersion>=6&&(e.generator=z(Mt)),(r||pn===Fn)&&(e.id=Xr()),Nr(e),Wr(e,n),M(e,r?"FunctionDeclaration":"FunctionExpression")}function Rr(e){var r=P();Pr(r),Nr(r);var n;return Zr.ecmaVersion>=6?(r.generator=e,n=!0):n=!1,Wr(r,n),M(r,"FunctionExpression")}function Mr(e,r){Pr(e);for(var n=e.defaults,t=!1,a=0,o=r.length-1;o>=a;a++){var i=r[a];if("AssignmentExpression"===i.type&&"="===i.operator)t=!0,r[a]=i.left,n.push(i.right);else if(Y(i,a===o,!0),n.push(null),"SpreadElement"===i.type){r.length--,e.rest=i.argument;break}}return e.params=r,t||(e.defaults=[]),Wr(e,!0),M(e,"ArrowFunctionExpression")}function Nr(e){var r=[],n=!1;for($(mt);!z(gt);){if(Zr.ecmaVersion>=6&&z(Ct)){e.rest=Y(Or(),!1,!0),J(e.rest),$(gt),r.push(null);break}if(e.params.push(Zr.ecmaVersion>=6?Y(Or(),!1,!0):Xr()),Zr.ecmaVersion>=6&&(z(_t)?(n=!0,r.push(Sr(!0))):r.push(null)),!z(vt)){$(gt);break}}n&&(e.defaults=r)}function Wr(e,r){var n=r&&pn!==dt;if(n)e.body=Sr(!0),e.expression=!0;else{var t=xn,a=wn,o=En;xn=!0,wn=e.generator,En=[],e.body=xr(!0),e.expression=!1,xn=t,wn=a,En=o}if(kn||!n&&e.body.body.length&&W(e.body.body[0])){var i={};e.id&&Q(e.id,{});for(var s=0;s<e.params.length;s++)Q(e.params[s],i);e.rest&&Q(e.rest,i)}}function zr(e,r){L(),e.id=pn===Fn?Xr():r?H():null,e.superClass=z(nt)?Sr():null;var n=P();for(n.body=[],$(dt);!z(ht);){var t=P();pn===Fn&&"static"===dn?(L(),t["static"]=!0):t["static"]=!1;var a=z(Mt);qr(t),pn===mt||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name?t.kind="":(a&&H(),t.kind=t.key.name,qr(t)),t.value=Rr(a),n.body.push(M(t,"MethodDefinition")),z(yt)}return e.body=M(n,"ClassBody"),M(e,r?"ClassDeclaration":"ClassExpression")}function Gr(e,r,n){for(var t=[],a=!0;!z(e);){if(a)a=!1;else if($(vt),r&&Zr.allowTrailingCommas&&z(e))break;t.push(n&&pn===vt?null:Sr(!0))}return t}function Xr(e){var r=P();return e&&"everywhere"==Zr.forbidReserved&&(e=!1),pn===Fn?(!e&&(Zr.forbidReserved&&(3===Zr.ecmaVersion?Wt:zt)(dn)||kn&&Gt(dn))&&-1==en.slice(cn,un).indexOf("\\")&&a(cn,"The keyword '"+dn+"' is reserved"),r.name=dn):e&&pn.keyword?r.name=pn.keyword:H(),hn=!1,L(),M(r,"Identifier")}function $r(e){if(L(),pn===Hn||pn===Yn||pn===Kn||pn===Nn||pn===rt)e.declaration=nr(),e["default"]=!1,e.specifiers=null,e.source=null;else if(z(qn))e.declaration=Sr(!0),e["default"]=!0,e.specifiers=null,e.source=null,X();else{var r=pn===Mt;e.declaration=null,e["default"]=!1,e.specifiers=Hr(),pn===Fn&&"from"===dn?(L(),e.source=pn===Vn?Or():H()):(r&&H(),e.source=null),X()}return M(e,"ExportDeclaration")}function Hr(){var e=[],r=!0;if(pn===Mt){var n=P();L(),e.push(M(n,"ExportBatchSpecifier"))}else for($(dt);!z(ht);){if(r)r=!1;else if($(vt),Zr.allowTrailingCommas&&z(ht))break;var n=P();n.id=Xr(pn===qn),pn===Fn&&"as"===dn?(L(),n.name=Xr(!0)):n.name=null,e.push(M(n,"ExportSpecifier"))}return e}function Kr(e){return L(),pn===Vn?(e.specifiers=[],e.source=Or(),e.kind=""):(e.specifiers=Yr(),(pn!==Fn||"from"!==dn)&&H(),L(),e.source=pn===Vn?Or():H()),X(),M(e,"ImportDeclaration")}function Yr(){var e=[],r=!0;if(pn===Fn){var n=P();if(n.id=Xr(),er(n.id,!0),n.name=null,n["default"]=!0,e.push(M(n,"ImportSpecifier")),!z(vt))return e}if(pn===Mt){var n=P();return L(),(pn!==Fn||"as"!==dn)&&H(),L(),n.name=Xr(),er(n.name,!0),e.push(M(n,"ImportBatchSpecifier")),e
}for($(dt);!z(ht);){if(r)r=!1;else if($(vt),Zr.allowTrailingCommas&&z(ht))break;var n=P();n.id=Xr(!0),pn===Fn&&"as"===dn?(L(),n.name=Xr()):n.name=null,er(n.name||n.id,!0),n["default"]=!1,e.push(M(n,"ImportSpecifier"))}return e}function Jr(){var e=P();return L(),z(yt)||G()?(e.delegate=!1,e.argument=null):(e.delegate=z(Mt),e.argument=Sr(!0)),M(e,"YieldExpression")}function Qr(e,r){for(e.blocks=[];pn===Mn;){var n=P();L(),$(mt),n.left=Y(Or()),er(n.left,!0),(pn!==Fn||"of"!==dn)&&H(),L(),n.of=!0,n.right=Sr(),$(gt),e.blocks.push(M(n,"ComprehensionBlock"))}return e.filter=z(Wn)?br():null,e.body=Sr(),$(r?gt:pt),e.generator=r,M(e,"ComprehensionExpression")}e.version="0.11.0";var Zr,en,rn,nn;e.parse=function(e,n){en=String(e),rn=en.length,r(n),s();var a=Zr.locations?[sn,i()]:sn;return t(),rr(Zr.program||R(a))};var tn=e.defaultOptions={ecmaVersion:5,strictSemicolons:!1,allowTrailingCommas:!0,forbidReserved:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};e.parseExpressionAt=function(e,n,a){return en=String(e),rn=en.length,r(a),s(n),t(),Sr()};var an=function(e){return"[object Array]"===Object.prototype.toString.call(e)},on=e.getLineInfo=function(e,r){for(var n=1,t=0;;){na.lastIndex=t;var a=na.exec(e);if(!(a&&a.index<r))break;++n,t=a.index+a[0].length}return{line:n,column:r-t}};e.Token=n,e.tokenize=function(e,t){function a(e){return yn=un,w(e),new n}return en=String(e),rn=en.length,r(t),s(),l(),a.jumpTo=function(e,r){if(sn=e,Zr.locations){mn=1,gn=na.lastIndex=0;for(var n;(n=na.exec(en))&&n.index<e;)++mn,gn=n.index+n[0].length}hn=r,l()},a.noRegexp=function(){hn=!1},a.options=Zr,a};var sn,cn,un,fn,ln,pn,dn,hn,mn,gn,vn,yn,bn,xn,wn,En,kn,Sn,Cn,An=[],_n={type:"num"},In={type:"regexp"},Vn={type:"string"},Fn={type:"name"},Tn={type:"eof"},On={keyword:"break"},jn={keyword:"case",beforeExpr:!0},Ln={keyword:"catch"},Dn={keyword:"continue"},Un={keyword:"debugger"},qn={keyword:"default"},Pn={keyword:"do",isLoop:!0},Bn={keyword:"else",beforeExpr:!0},Rn={keyword:"finally"},Mn={keyword:"for",isLoop:!0},Nn={keyword:"function"},Wn={keyword:"if"},zn={keyword:"return",beforeExpr:!0},Gn={keyword:"switch"},Xn={keyword:"throw",beforeExpr:!0},$n={keyword:"try"},Hn={keyword:"var"},Kn={keyword:"let"},Yn={keyword:"const"},Jn={keyword:"while",isLoop:!0},Qn={keyword:"with"},Zn={keyword:"new",beforeExpr:!0},et={keyword:"this"},rt={keyword:"class"},nt={keyword:"extends",beforeExpr:!0},tt={keyword:"export"},at={keyword:"import"},ot={keyword:"yield",beforeExpr:!0},it={keyword:"null",atomValue:null},st={keyword:"true",atomValue:!0},ct={keyword:"false",atomValue:!1},ut={keyword:"in",binop:7,beforeExpr:!0},ft={"break":On,"case":jn,"catch":Ln,"continue":Dn,"debugger":Un,"default":qn,"do":Pn,"else":Bn,"finally":Rn,"for":Mn,"function":Nn,"if":Wn,"return":zn,"switch":Gn,"throw":Xn,"try":$n,"var":Hn,let:Kn,"const":Yn,"while":Jn,"with":Qn,"null":it,"true":st,"false":ct,"new":Zn,"in":ut,"instanceof":{keyword:"instanceof",binop:7,beforeExpr:!0},"this":et,"typeof":{keyword:"typeof",prefix:!0,beforeExpr:!0},"void":{keyword:"void",prefix:!0,beforeExpr:!0},"delete":{keyword:"delete",prefix:!0,beforeExpr:!0},"class":rt,"extends":nt,"export":tt,"import":at,"yield":ot},lt={type:"[",beforeExpr:!0},pt={type:"]"},dt={type:"{",beforeExpr:!0},ht={type:"}"},mt={type:"(",beforeExpr:!0},gt={type:")"},vt={type:",",beforeExpr:!0},yt={type:";",beforeExpr:!0},bt={type:":",beforeExpr:!0},xt={type:"."},wt={type:"?",beforeExpr:!0},Et={type:"=>",beforeExpr:!0},kt={type:"template"},St={type:"templateContinued"},Ct={type:"...",prefix:!0,beforeExpr:!0},At={binop:10,beforeExpr:!0},_t={isAssign:!0,beforeExpr:!0},It={isAssign:!0,beforeExpr:!0},Vt={postfix:!0,prefix:!0,isUpdate:!0},Ft={prefix:!0,beforeExpr:!0},Tt={binop:1,beforeExpr:!0},Ot={binop:2,beforeExpr:!0},jt={binop:3,beforeExpr:!0},Lt={binop:4,beforeExpr:!0},Dt={binop:5,beforeExpr:!0},Ut={binop:6,beforeExpr:!0},qt={binop:7,beforeExpr:!0},Pt={binop:8,beforeExpr:!0},Bt={binop:9,prefix:!0,beforeExpr:!0},Rt={binop:10,beforeExpr:!0},Mt={binop:10,beforeExpr:!0};e.tokTypes={bracketL:lt,bracketR:pt,braceL:dt,braceR:ht,parenL:mt,parenR:gt,comma:vt,semi:yt,colon:bt,dot:xt,ellipsis:Ct,question:wt,slash:At,eq:_t,name:Fn,eof:Tn,num:_n,regexp:In,string:Vn,arrow:Et,template:kt,templateContinued:St,star:Mt,assign:It};for(var Nt in ft)e.tokTypes["_"+Nt]=ft[Nt];var Wt=function(e){switch(e.length){case 6:switch(e){case"double":case"export":case"import":case"native":case"public":case"static":case"throws":return!0}return!1;case 4:switch(e){case"byte":case"char":case"enum":case"goto":case"long":return!0}return!1;case 5:switch(e){case"class":case"final":case"float":case"short":case"super":return!0}return!1;case 7:switch(e){case"boolean":case"extends":case"package":case"private":return!0}return!1;case 9:switch(e){case"interface":case"protected":case"transient":return!0}return!1;case 8:switch(e){case"abstract":case"volatile":return!0}return!1;case 10:return"implements"===e;case 3:return"int"===e;case 12:return"synchronized"===e}},zt=function(e){switch(e.length){case 5:switch(e){case"class":case"super":case"const":return!0}return!1;case 6:switch(e){case"export":case"import":return!0}return!1;case 4:return"enum"===e;case 7:return"extends"===e}},Gt=function(e){switch(e.length){case 9:switch(e){case"interface":case"protected":return!0}return!1;case 7:switch(e){case"package":case"private":return!0}return!1;case 6:switch(e){case"public":case"static":return!0}return!1;case 10:return"implements"===e;case 3:return"let"===e;case 5:return"yield"===e}},Xt=function(e){switch(e){case"eval":case"arguments":return!0}return!1},$t=function(e){switch(e.length){case 4:switch(e){case"case":case"else":case"with":case"null":case"true":case"void":case"this":return!0}return!1;case 5:switch(e){case"break":case"catch":case"throw":case"while":case"false":return!0}return!1;case 3:switch(e){case"for":case"try":case"var":case"new":return!0}return!1;case 6:switch(e){case"return":case"switch":case"typeof":case"delete":return!0}return!1;case 8:switch(e){case"continue":case"debugger":case"function":return!0}return!1;case 2:switch(e){case"do":case"if":case"in":return!0}return!1;case 7:switch(e){case"default":case"finally":return!0}return!1;case 10:return"instanceof"===e}},Ht=function(e){switch(e.length){case 5:switch(e){case"break":case"catch":case"throw":case"while":case"false":case"const":case"class":case"yield":return!0}return!1;case 4:switch(e){case"case":case"else":case"with":case"null":case"true":case"void":case"this":return!0}return!1;case 6:switch(e){case"return":case"switch":case"typeof":case"delete":case"export":case"import":return!0}return!1;case 3:switch(e){case"for":case"try":case"var":case"new":case"let":return!0}return!1;case 8:switch(e){case"continue":case"debugger":case"function":return!0}return!1;case 7:switch(e){case"default":case"finally":case"extends":return!0}return!1;case 2:switch(e){case"do":case"if":case"in":return!0}return!1;case 10:return"instanceof"===e}},Kt=$t,Yt=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Jt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Qt="̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧙ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_",Zt=new RegExp("["+Jt+"]"),ea=new RegExp("["+Jt+Qt+"]"),ra=/[\n\r\u2028\u2029]/,na=/\r\n|[\n\r\u2028\u2029]/g,ta=e.isIdentifierStart=function(e){return 65>e?36===e:91>e?!0:97>e?95===e:123>e?!0:e>=170&&Zt.test(String.fromCharCode(e))},aa=e.isIdentifierChar=function(e){return 48>e?36===e:58>e?!0:65>e?!1:91>e?!0:97>e?95===e:123>e?!0:e>=170&&ea.test(String.fromCharCode(e))};o.prototype.offset=function(e){return new o(this.line,this.column+e)};var oa=!1;try{new RegExp("￿","u"),oa=!0}catch(ia){}var sa;e.Node=U;var ca={kind:"loop"},ua={kind:"switch"}})},{}]},{},[1]);
!function e(r,t,n){function a(i,s){if(!t[i]){if(!r[i]){var c="function"==typeof require&&require;if(!s&&c)return c(i,!0);if(o)return o(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var f=t[i]={exports:{}};r[i][0].call(f.exports,function(e){var t=r[i][1][e];return a(t?t:e)},f,f.exports,e,r,t,n)}return t[i].exports}for(var o="function"==typeof require&&require,i=0;i<n.length;i++)a(n[i]);return a}({1:[function(e,r,t){(function(r){"use strict";function n(){}function a(e){return e()}function o(){}function i(e){this.value=e}function s(e){Array.isArray(e)||(e=[e]);var r;e.forEach(function(e){r=c(r,e)}),this._curVarStore=r,this._curDeclarations=[],this._globalObj=e[0],this._curThis=this._globalObj,this._boundGen=this._gen.bind(this),this.DEBUG=!1}function c(e,r){return r=r||{},{parent:e,vars:r}}function u(e,r){var t=[e].concat(r);return new(Function.prototype.bind.apply(e,t))}function f(e,r){for(var t=0;t<e.length;t++)r.vars.hasOwnProperty(e[t])||(r.vars[e[t]]=void 0)}var l=e("acorn/acorn_csp").parse;o.prototype.toString=function(){return"[object Arguments]"};var p={},h={};s.prototype.gen=function(e){var r={};this.DEBUG&&(r.locations=!0),"string"==typeof e&&(e=l(e,r));var t=this._gen(e);return f(this._curDeclarations,this._curVarStore),this._curDeclarations=[],t},s.prototype._gen=function(e){var r=({BinaryExpression:this._genBinExpr,LogicalExpression:this._genBinExpr,UnaryExpression:this._genUnaryExpr,UpdateExpression:this._genUpdExpr,ObjectExpression:this._genObjExpr,ArrayExpression:this._genArrExpr,CallExpression:this._genCallExpr,NewExpression:this._genNewExpr,MemberExpression:this._genMemExpr,ThisExpression:this._genThisExpr,SequenceExpression:this._genSeqExpr,Literal:this._genLit,Identifier:this._genIdent,AssignmentExpression:this._genAssignExpr,FunctionDeclaration:this._genFuncDecl,VariableDeclaration:this._genVarDecl,BlockStatement:this._genProgram,Program:this._genProgram,ExpressionStatement:this._genExprStmt,EmptyStatement:this._genEmptyStmt,ReturnStatement:this._genRetStmt,FunctionExpression:this._genFuncExpr,IfStatement:this._genIfStmt,ConditionalExpression:this._genIfStmt,ForStatement:this._genLoopStmt,WhileStatement:this._genLoopStmt,DoWhileStatement:this._genDoWhileStmt,ForInStatement:this._genForInStmt,WithStatement:this._genWithStmt,ThrowStatement:this._genThrowStmt,TryStatement:this._genTryStmt,ContinueStatement:this._genContStmt,BreakStatement:this._genBreakStmt,SwitchStatement:this._genSwitchStmt}[e.type]||function(){return console.warn("Not implemented yet: "+e.type),n}).call(this,e);return this.DEBUG?function(){var t="closure for "+e.type+" called",n=((e.loc||{}).start||{}).line;n&&(t+=" while processing line "+n);var a=r();return t+=". Result:",console.log(t,a),a}:r},s.prototype._genBinExpr=function(e){var r=this._gen(e.left),t=this._gen(e.right),n={"==":function(){return r()==t()},"!=":function(){return r()!=t()},"===":function(){return r()===t()},"!==":function(){return r()!==t()},"<":function(){return r()<t()},"<=":function(){return r()<=t()},">":function(){return r()>t()},">=":function(){return r()>=t()},"<<":function(){return r()<<t()},">>":function(){return r()>>t()},">>>":function(){return r()>>>t()},"+":function(){return r()+t()},"-":function(){return r()-t()},"*":function(){return r()*t()},"/":function(){return r()/t()},"%":function(){return r()%t()},"|":function(){return r()|t()},"^":function(){return r()^t()},"&":function(){return r()&t()},"in":function(){return r()in t()},"instanceof":function(){return r()instanceof t()},"||":function(){return r()||t()},"&&":function(){return r()&&t()}}[e.operator];return function(){return n()}},s.prototype._genUnaryExpr=function(e){var r={"-":function(e){return-e},"+":function(e){return+e},"!":function(e){return!e},"~":function(e){return~e},"typeof":function(e){return typeof e},"void":function(e){return void e}}[e.operator],t=this._gen(e.argument);return function(){return r(t())}},s.prototype._genObjExpr=function(e){var r=this,t=[];return e.properties.forEach(function(e){var n=r._objKey(e.key)();t.push({key:n,getVal:r._gen(e.value)})}),function(){var e={};return t.forEach(function(r){e[r.key]=r.getVal()}),e}},s.prototype._genArrExpr=function(e){var r=e.elements.map(this._boundGen);return function(){return r.map(a)}},s.prototype._objKey=function(e){var r;return r="Identifier"===e.type?e.name:this._gen(e)(),function(){return r}},s.prototype._genCallExpr=function(e){var r,t=this;if("MemberExpression"===e.callee.type){var n=t._genObj(e.callee),o=t._genName(e.callee);r=function(){var e=n();return e[o()].bind(e)}}else r=t._gen(e.callee);var i=e.arguments.map(t._gen.bind(t));return function(){return r().apply(t._globalObj,i.map(a))}},s.prototype._genNewExpr=function(e){var r=this._gen(e.callee),t=e.arguments.map(this._boundGen);return function(){return u(r(),t.map(a))}},s.prototype._genMemExpr=function(e){var r=this._gen(e.object),t=this._memExprProperty(e);return function(){return r()[t()]}},s.prototype._memExprProperty=function(e){return e.computed?this._gen(e.property):this._objKey(e.property)},s.prototype._genThisExpr=function(){var e=this;return function(){return e._curThis}},s.prototype._genSeqExpr=function(e){var r=e.expressions.map(this._boundGen);return function(){var e;return r.forEach(function(r){e=r()}),e}},s.prototype._genUpdExpr=function(e){var r={"--true":function(e,r){return--e[r]},"--false":function(e,r){return e[r]--},"++true":function(e,r){return++e[r]},"++false":function(e,r){return e[r]++}}[e.operator+e.prefix],t=this._genObj(e.argument),n=this._genName(e.argument);return function(){return r(t(),n())}},s.prototype._genObj=function(e){return"Identifier"===e.type?this._getVarStore.bind(this,e.name):"MemberExpression"===e.type?this._gen(e.object):(console.warn("Unknown _genObj() type: "+e.type),n)},s.prototype._genName=function(e){return"Identifier"===e.type?function(){return e.name}:"MemberExpression"===e.type?this._memExprProperty(e):(console.warn("Unknown _genName() type: "+e.type),n)},s.prototype._genLit=function(e){return function(){return e.value}},s.prototype._genIdent=function(e){var r=this;return function(){return r._getVarStore(e.name)[e.name]}},s.prototype._getVarStore=function(e){var r=this._curVarStore;do if(r.vars.hasOwnProperty(e))return r.vars;while(r=r.parent);return this._globalObj},s.prototype._genAssignExpr=function(e){var r={"=":function(e,r,t){return e[r]=t},"+=":function(e,r,t){return e[r]+=t},"-=":function(e,r,t){return e[r]-=t},"*=":function(e,r,t){return e[r]*=t},"/=":function(e,r,t){return e[r]/=t},"%=":function(e,r,t){return e[r]%=t},"<<=":function(e,r,t){return e[r]<<=t},">>=":function(e,r,t){return e[r]>>=t},">>>=":function(e,r,t){return e[r]>>>=t},"|=":function(e,r,t){return e[r]|=t},"^=":function(e,r,t){return e[r]^=t},"&=":function(e,r,t){return e[r]&=t}}[e.operator],t=this._genObj(e.left),n=this._genName(e.left),a=this._gen(e.right);return function(){return r(t(),n(),a())}},s.prototype._genFuncDecl=function(e){return this._curDeclarations.push(e.id.name),e.type="FunctionExpression",this._gen({type:"AssignmentExpression",operator:"=",left:e.id,right:e})},s.prototype._genVarDecl=function(e){for(var r=[],t=0;t<e.declarations.length;t++){var n=e.declarations[t];this._curDeclarations.push(n.id.name),n.init&&r.push({type:"AssignmentExpression",operator:"=",left:n.id,right:n.init})}return this._gen({type:"BlockStatement",body:r})},s.prototype._genFuncExpr=function(e){var r=this,t=r._curDeclarations;r._curDeclarations=[];var n=r._gen(e.body),a=r._curDeclarations;return r._curDeclarations=t,function(){var t=r._curVarStore;return function(){var s=new o;s.length=arguments.length;for(var u=0;u<arguments.length;u++)s[u]=arguments[u];var l=c(t);f(a,l),l.vars.arguments=s,e.params.forEach(function(e,r){l.vars[e.name]=s[r]});var p=r._curVarStore,h=r._curThis;r._curVarStore=l,r._curThis=this;var d=n();return r._curThis=h,r._curVarStore=p,d instanceof i?d.value:void 0}}},s.prototype._genProgram=function(e){var r=this,t=e.body.map(function(e){return r._gen(e)});return function(){for(var e,r=0;r<t.length&&(e=t[r](),!(e===p||e===h||e instanceof i));r++);return e}},s.prototype._genExprStmt=function(e){return this._gen(e.expression)},s.prototype._genEmptyStmt=function(){return n},s.prototype._genRetStmt=function(e){var r=e.argument?this._gen(e.argument):n;return function(){return new i(r())}},s.prototype._genIfStmt=function(e){var r=this._gen(e.test),t=this._gen(e.consequent),a=e.alternate?this._gen(e.alternate):n;return function(){return r()?t():a()}},s.prototype._genLoopStmt=function(e,r){var t=e.init?this._gen(e.init):n,a=e.test?this._gen(e.test):function(){return!0},o=e.update?this._gen(e.update):n;return r=r||this._gen(e.body),function(){var e;for(t();a();o()){var n=r();if(n===p)break;if(n!==h&&(e=n,n instanceof i))break}return e}},s.prototype._genDoWhileStmt=function(e){var r=this._gen(e.body),t=this._genLoopStmt(e,r);return function(){return r(),t()}},s.prototype._genForInStmt=function(e){var r=this,t=r._gen(e.right),n=r._gen(e.body),a=e.left;return"VariableDeclaration"===a.type&&(r._curDeclarations.push(a.declarations[0].id.name),a=a.declarations[0].id),function(){var e;for(var o in t())r._genAssignExpr({operator:"=",left:a,right:{type:"Literal",value:o}})(),e=n();return e}},s.prototype._genWithStmt=function(e){var r=this,t=r._gen(e.object),n=r._gen(e.body);return function(){r._curVarStore=c(r._curVarStore,t());var e=n();return r._curVarStore=r._curVarStore.parent,e}},s.prototype._genThrowStmt=function(e){var r=this._gen(e.argument);return function(){throw r()}},s.prototype._genTryStmt=function(e){var r=this._gen(e.block),t=this._genCatchHandler(e.handler),n=e.finalizer?this._gen(e.finalizer):function(e){return e};return function(){try{return n(r())}catch(e){return n(t(e))}}},s.prototype._genCatchHandler=function(e){if(!e)return n;var r=this,t=r._gen(e.body);return function(n){var a=r._curVarStore.vars[e.param.name];r._curVarStore.vars[e.param.name]=n;var o=t();return r._curVarStore.vars[e.param.name]=a,o}},s.prototype._genContStmt=function(){return function(){return h}},s.prototype._genBreakStmt=function(){return function(){return p}},s.prototype._genSwitchStmt=function(e){var r=this,t=r._gen(e.discriminant),n=e.cases.map(function(e){return{test:e.test?r._gen(e.test):null,code:r._genProgram({body:e.consequent})}});return function(){for(var e,r,a=!1,o=t(),s=0;s<n.length;s++){var c=n[s];if(!a){if(!c.test){r=c;continue}if(o!==c.test())continue;a=!0}var u=c.code();if(u===p)return e;if(e=u,e===h||e instanceof i)return e}return!a&&r?r.code():void 0}},t.Environment=s,t.evaluate=function(e){var t=new s(r),n=t.gen(e)();return n}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"acorn/acorn_csp":2}],2:[function(e,r,t){!function(e,n){return"object"==typeof t&&"object"==typeof r?n(t):"function"==typeof define&&define.amd?define(["exports"],n):void n(e.acorn||(e.acorn={}))}(this,function(e){"use strict";function r(e){Zr={};for(var r in nt)Zr[r]=e&&K(e,r)?e[r]:nt[r];if(tt=Zr.sourceFile||null,at(Zr.onToken)){var t=Zr.onToken;Zr.onToken=function(e){t.push(e)}}if(at(Zr.onComment)){var n=Zr.onComment;Zr.onComment=function(e,r,t,a,o,i){var s={type:e?"Block":"Line",value:r,start:t,end:a};Zr.locations&&(s.loc=new B,s.loc.start=o,s.loc.end=i),Zr.ranges&&(s.range=[t,a]),n.push(s)}}Kn=Zr.ecmaVersion>=6?Hn:$n}function t(){this.type=lt,this.value=pt,this.start=st,this.end=ct,Zr.locations&&(this.loc=new B,this.loc.end=ft,this.startLoc=ut,this.endLoc=ft),Zr.ranges&&(this.range=[st,ct])}function n(){gt=vt=it,Zr.locations&&(yt=i()),bt=xt=_t=!1,wt=[],l(),w()}function a(e,r){var t=ot(et,e);r+=" ("+t.line+":"+t.column+")";var n=new SyntaxError(r);throw n.pos=e,n.loc=t,n.raisedAt=it,n}function o(e,r){this.line=e,this.column=r}function i(){return new o(dt,it-mt)}function s(e){e?(it=e,mt=Math.max(0,et.lastIndexOf("\n",e)),dt=et.slice(0,mt).split(ra).length):(dt=1,it=mt=0),ht=!0,Et=0,kt=[]}function c(e,r,n){ct=it,Zr.locations&&(ft=i()),lt=e,n!==!1&&l(),pt=r,ht=e.beforeExpr,Zr.onToken&&Zr.onToken(new t)}function u(){var e=Zr.onComment&&Zr.locations&&i(),r=it,t=et.indexOf("*/",it+=2);if(-1===t&&a(it-2,"Unterminated comment"),it=t+2,Zr.locations){ta.lastIndex=r;for(var n;(n=ta.exec(et))&&n.index<it;)++dt,mt=n.index+n[0].length}Zr.onComment&&Zr.onComment(!0,et.slice(r+2,t),r,it,e,Zr.locations&&i())}function f(e){for(var r=it,t=Zr.onComment&&Zr.locations&&i(),n=et.charCodeAt(it+=e);rt>it&&10!==n&&13!==n&&8232!==n&&8233!==n;)++it,n=et.charCodeAt(it);Zr.onComment&&Zr.onComment(!1,et.slice(r+e,it),r,it,t,Zr.locations&&i())}function l(){for(;rt>it;){var e=et.charCodeAt(it);if(32===e)++it;else if(13===e){++it;var r=et.charCodeAt(it);10===r&&++it,Zr.locations&&(++dt,mt=it)}else if(10===e||8232===e||8233===e)++it,Zr.locations&&(++dt,mt=it);else if(e>8&&14>e)++it;else if(47===e){var r=et.charCodeAt(it+1);if(42===r)u();else{if(47!==r)break;f(2)}}else if(160===e)++it;else{if(!(e>=5760&&Yn.test(String.fromCharCode(e))))break;++it}}}function p(){var e=et.charCodeAt(it+1);if(e>=48&&57>=e)return C(!0);var r=et.charCodeAt(it+2);return Zr.ecmaVersion>=6&&46===e&&46===r?(it+=3,c(Sn)):(++it,c(xn))}function h(){var e=et.charCodeAt(it+1);return ht?(++it,E()):61===e?_(Vn,2):_(Cn,1)}function d(e){var r=et.charCodeAt(it+1);return 61===r?_(Vn,2):_(42===e?Mn:Rn,1)}function m(e){var r=et.charCodeAt(it+1);return r===e?_(124===e?Fn:Tn,2):61===r?_(Vn,2):_(124===e?On:Ln,1)}function g(){var e=et.charCodeAt(it+1);return 61===e?_(Vn,2):_(jn,1)}function v(e){var r=et.charCodeAt(it+1);return r===e?45==r&&62==et.charCodeAt(it+2)&&ra.test(et.slice(vt,it))?(f(3),l(),w()):_(In,2):61===r?_(Vn,2):_(qn,1)}function y(e){var r=et.charCodeAt(it+1),t=1;return r===e?(t=62===e&&62===et.charCodeAt(it+2)?3:2,61===et.charCodeAt(it+t)?_(Vn,t+1):_(Pn,t)):33==r&&60==e&&45==et.charCodeAt(it+2)&&45==et.charCodeAt(it+3)?(f(4),l(),w()):(61===r&&(t=61===et.charCodeAt(it+2)?3:2),_(Bn,t))}function b(e){var r=et.charCodeAt(it+1);return 61===r?_(Un,61===et.charCodeAt(it+2)?3:2):61===e&&62===r&&Zr.ecmaVersion>=6?(it+=2,c(_n)):_(61===e?An:Dn,1)}function x(e){switch(e){case 46:return p();case 40:return++it,c(mn);case 41:return++it,c(gn);case 59:return++it,c(yn);case 44:return++it,c(vn);case 91:return++it,c(ln);case 93:return++it,c(pn);case 123:return++it,kt.length&&++kt[kt.length-1],c(hn);case 125:return++it,kt.length&&0===--kt[kt.length-1]?I(kn):c(dn);case 58:return++it,c(bn);case 63:return++it,c(wn);case 96:if(Zr.ecmaVersion>=6)return++it,I(En);case 48:var r=et.charCodeAt(it+1);if(120===r||88===r)return S(16);if(Zr.ecmaVersion>=6){if(111===r||79===r)return S(8);if(98===r||66===r)return S(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return C(!1);case 34:case 39:return V(e);case 47:return h();case 37:case 42:return d(e);case 124:case 38:return m(e);case 94:return g();case 43:case 45:return v(e);case 60:case 62:return y(e);case 61:case 33:return b(e);case 126:return _(Dn,1)}return!1}function w(e){if(e?it=st+1:st=it,Zr.locations&&(ut=i()),e)return E();if(it>=rt)return c(Dt);var r=et.charCodeAt(it);if(na(r)||92===r)return O();var t=x(r);if(t===!1){var n=String.fromCharCode(r);if("\\"===n||Zn.test(n))return O();a(it,"Unexpected character '"+n+"'")}return t}function _(e,r){var t=et.slice(it,it+r);it+=r,c(e,t)}function E(){for(var e,r,t="",n=it;;){it>=rt&&a(n,"Unterminated regular expression");var o=et.charAt(it);if(ra.test(o)&&a(n,"Unterminated regular expression"),e)e=!1;else{if("["===o)r=!0;else if("]"===o&&r)r=!1;else if("/"===o&&!r)break;e="\\"===o}++it}var t=et.slice(n,it);++it;var i=T(),s=t;if(i){var u=/^[gmsiy]*$/;Zr.ecmaVersion>=6&&(u=/^[gmsiyu]*$/),u.test(i)||a(n,"Invalid regular expression flag"),i.indexOf("u")>=0&&!oa&&(s=s.replace(/\\u\{([0-9a-fA-F]{5,6})\}/g,"x").replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"))}try{new RegExp(s)}catch(f){f instanceof SyntaxError&&a(n,"Error parsing regular expression: "+f.message),a(f)}try{var l=new RegExp(t,i)}catch(p){l=null}return c(At,{pattern:t,flags:i,value:l})}function k(e,r){for(var t=it,n=0,a=0,o=null==r?1/0:r;o>a;++a){var i,s=et.charCodeAt(it);if(i=s>=97?s-97+10:s>=65?s-65+10:s>=48&&57>=s?s-48:1/0,i>=e)break;++it,n=n*e+i}return it===t||null!=r&&it-t!==r?null:n}function S(e){it+=2;var r=k(e);return null==r&&a(st+2,"Expected number in radix "+e),na(et.charCodeAt(it))&&a(it,"Identifier directly after number"),c(Ct,r)}function C(e){var r=it,t=!1,n=48===et.charCodeAt(it);e||null!==k(10)||a(r,"Invalid number"),46===et.charCodeAt(it)&&(++it,k(10),t=!0);var o=et.charCodeAt(it);(69===o||101===o)&&(o=et.charCodeAt(++it),(43===o||45===o)&&++it,null===k(10)&&a(r,"Invalid number"),t=!0),na(et.charCodeAt(it))&&a(it,"Identifier directly after number");var i,s=et.slice(r,it);return t?i=parseFloat(s):n&&1!==s.length?/[89]/.test(s)||_t?a(r,"Invalid number"):i=parseInt(s,8):i=parseInt(s,10),c(Ct,i)}function A(){var e,r=et.charCodeAt(it);if(123===r?(Zr.ecmaVersion<6&&H(),++it,e=F(et.indexOf("}",it)-it),++it,e>1114111&&H()):e=F(4),65535>=e)return String.fromCharCode(e);var t=(e-65536>>10)+55296,n=(e-65536&1023)+56320;return String.fromCharCode(t,n)}function V(e){++it;for(var r="";;){it>=rt&&a(st,"Unterminated string constant");var t=et.charCodeAt(it);if(t===e)return++it,c(Vt,r);92===t?r+=D():(++it,ra.test(String.fromCharCode(t))&&a(st,"Unterminated string constant"),r+=String.fromCharCode(t))}}function I(e){e==kn&&kt.pop();for(var r="",t=it;;){it>=rt&&a(st,"Unterminated template");var n=et.charAt(it);if("`"===n||"$"===n&&123===et.charCodeAt(it+1)){var o=et.slice(t,it);return++it,"$"==n&&(++it,kt.push(1)),c(e,{cooked:r,raw:o})}"\\"===n?r+=D():(++it,ra.test(n)&&("\r"===n&&10===et.charCodeAt(it)&&(++it,n="\n"),Zr.locations&&(++dt,mt=it)),r+=n)}}function D(){var e=et.charCodeAt(++it),r=/^[0-7]+/.exec(et.slice(it,it+3));for(r&&(r=r[0]);r&&parseInt(r,8)>255;)r=r.slice(0,-1);if("0"===r&&(r=null),++it,r)return _t&&a(it-2,"Octal literal in strict mode"),it+=r.length-1,String.fromCharCode(parseInt(r,8));switch(e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(F(2));case 117:return A();case 116:return" ";case 98:return"\b";case 118:return" ";case 102:return"\f";case 48:return"\x00";case 13:10===et.charCodeAt(it)&&++it;case 10:return Zr.locations&&(mt=it,++dt),"";default:return String.fromCharCode(e)}}function F(e){var r=k(16,e);return null===r&&a(st,"Bad character escape sequence"),r}function T(){sa=!1;for(var e,r=!0,t=it;;){var n=et.charCodeAt(it);if(aa(n))sa&&(e+=et.charAt(it)),++it;else{if(92!==n)break;sa||(e=et.slice(t,it)),sa=!0,117!=et.charCodeAt(++it)&&a(it,"Expecting Unicode escape sequence \\uXXXX"),++it;var o=F(4),i=String.fromCharCode(o);i||a(it-1,"Invalid Unicode escape"),(r?na(o):aa(o))||a(it-4,"Invalid Unicode escape"),e+=i}r=!1}return sa?e:et.slice(t,it)}function O(){var e=T(),r=It;return!sa&&Kn(e)&&(r=fn[e]),c(r,e)}function j(){gt=st,vt=ct,yt=ft,w()}function L(e){if(_t=e,it=st,Zr.locations)for(;mt>it;)mt=et.lastIndexOf("\n",mt-2)+1,--dt;l(),w()}function U(){this.type=null,this.start=st,this.end=null}function B(){this.start=ut,this.end=null,null!==tt&&(this.source=tt)}function P(){var e=new U;return Zr.locations&&(e.loc=new B),Zr.directSourceFile&&(e.sourceFile=Zr.directSourceFile),Zr.ranges&&(e.range=[st,0]),e}function q(){return Zr.locations?[st,ut]:st}function R(e){var r=new U,t=e;return Zr.locations&&(r.loc=new B,r.loc.start=t[1],t=e[0]),r.start=t,Zr.directSourceFile&&(r.sourceFile=Zr.directSourceFile),Zr.ranges&&(r.range=[t,0]),r}function M(e,r){return e.type=r,e.end=vt,Zr.locations&&(e.loc.end=yt),Zr.ranges&&(e.range[1]=vt),e}function N(e,r,t){return Zr.locations&&(e.loc.end=t[1],t=t[0]),e.type=r,e.end=t,Zr.ranges&&(e.range[1]=t),e}function W(e){return Zr.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"use strict"===e.expression.value}function z(e){return lt===e?(j(),!0):!1}function G(){return!Zr.strictSemicolons&&(lt===Dt||lt===dn||ra.test(et.slice(vt,st)))}function X(){z(yn)||G()||H()}function $(e){z(e)||H()}function H(e){a(null!=e?e:st,"Unexpected token")}function K(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function Y(e,r,t){if(Zr.ecmaVersion>=6&&e)switch(e.type){case"Identifier":case"MemberExpression":break;case"ObjectExpression":e.type="ObjectPattern";for(var n=0;n<e.properties.length;n++){var a=e.properties[n];"init"!==a.kind&&H(a.key.start),Y(a.value,!1,t)}break;case"ArrayExpression":e.type="ArrayPattern";for(var n=0,o=e.elements.length-1;o>=n;n++)Y(e.elements[n],n===o,t);break;case"SpreadElement":r?(Y(e.argument,!1,t),J(e.argument)):H(e.start);break;default:t&&H(e.start)}return e}function J(e){"Identifier"!==e.type&&"ArrayPattern"!==e.type&&H(e.start)}function Q(e,r){switch(e.type){case"Identifier":(Gn(e.name)||Xn(e.name))&&a(e.start,"Defining '"+e.name+"' in strict mode"),K(r,e.name)&&a(e.start,"Argument name clash in strict mode"),r[e.name]=!0;break;case"ObjectPattern":for(var t=0;t<e.properties.length;t++)Q(e.properties[t].value,r);break;case"ArrayPattern":for(var t=0;t<e.elements.length;t++){var n=e.elements[t];n&&Q(n,r)}}}function Z(e,r){if(!(Zr.ecmaVersion>=6)){var t,n=e.key;switch(n.type){case"Identifier":t=n.name;break;case"Literal":t=String(n.value);break;default:return}var o,i=e.kind||"init";if(K(r,t)){o=r[t];var s="init"!==i;((_t||s)&&o[i]||!(s^o.init))&&a(n.start,"Redefinition of property")}else o=r[t]={init:!1,get:!1,set:!1};o[i]=!0}}function er(e,r){switch(e.type){case"Identifier":_t&&(Xn(e.name)||Gn(e.name))&&a(e.start,r?"Binding "+e.name+" in strict mode":"Assigning to "+e.name+" in strict mode");break;case"MemberExpression":if(!r)break;case"ObjectPattern":for(var t=0;t<e.properties.length;t++)er(e.properties[t].value,r);break;case"ArrayPattern":for(var t=0;t<e.elements.length;t++){var n=e.elements[t];n&&er(n,r)}break;case"SpreadElement":break;default:a(e.start,"Assigning to rvalue")}}function rr(e){var r=!0;for(e.body||(e.body=[]);lt!==Dt;){var t=tr(!0);e.body.push(t),r&&W(t)&&L(!0),r=!1}return gt=st,vt=ct,yt=ft,M(e,"Program")}function tr(e){(lt===Cn||lt===Vn&&"/="==pt)&&w(!0);var r=lt,t=P();switch(r){case Ft:case jt:return nr(t,r.keyword);case Lt:return ar(t);case Bt:return or(t);case Rt:return ir(t);case Mt:return sr(t);case en:return zr(t,!0);case Nt:return cr(t);case Wt:return ur(t);case zt:return fr(t);case Gt:return lr(t);case Xt:return pr(t);case $t:case Ht:case Kt:return hr(t,r.keyword);case Yt:return dr(t);case Jt:return mr(t);case hn:return xr();case yn:return gr(t);case tn:case nn:return e||Zr.allowImportExportEverywhere||a(st,"'import' and 'export' may only appear at the top level"),r===nn?Kr(t):$r(t);default:var n=pt,o=kr();return r===It&&"Identifier"===o.type&&z(bn)?vr(t,n,o):yr(t,o)}}function nr(e,r){var t="break"==r;j(),z(yn)||G()?e.label=null:lt!==It?H():(e.label=Xr(),X());for(var n=0;n<wt.length;++n){var o=wt[n];if(null==e.label||o.name===e.label.name){if(null!=o.kind&&(t||"loop"===o.kind))break;if(e.label&&t)break}}return n===wt.length&&a(e.start,"Unsyntactic "+r),M(e,t?"BreakStatement":"ContinueStatement")}function ar(e){return j(),X(),M(e,"DebuggerStatement")}function or(e){return j(),wt.push(ca),e.body=tr(),wt.pop(),$(Yt),e.test=br(),Zr.ecmaVersion>=6?z(yn):X(),M(e,"DoWhileStatement")}function ir(e){if(j(),wt.push(ca),$(mn),lt===yn)return wr(e,null);if(lt===$t||lt===Ht){var r=P(),t=lt.keyword,n=lt===Ht;return j(),Er(r,!0,t),M(r,"VariableDeclaration"),!(lt===un||Zr.ecmaVersion>=6&&lt===It&&"of"===pt)||1!==r.declarations.length||n&&r.declarations[0].init?wr(e,r):_r(e,r)}var r=kr(!1,!0);return lt===un||Zr.ecmaVersion>=6&&lt===It&&"of"===pt?(er(r),_r(e,r)):wr(e,r)}function sr(e){return j(),qr(e,!0)}function cr(e){return j(),e.test=br(),e.consequent=tr(),e.alternate=z(Pt)?tr():null,M(e,"IfStatement")}function ur(e){return bt||Zr.allowReturnOutsideFunction||a(st,"'return' outside of function"),j(),z(yn)||G()?e.argument=null:(e.argument=kr(),X()),M(e,"ReturnStatement")}function fr(e){j(),e.discriminant=br(),e.cases=[],$(hn),wt.push(ua);for(var r,t;lt!=dn;)if(lt===Tt||lt===Ut){var n=lt===Tt;r&&M(r,"SwitchCase"),e.cases.push(r=P()),r.consequent=[],j(),n?r.test=kr():(t&&a(gt,"Multiple default clauses"),t=!0,r.test=null),$(bn)}else r||H(),r.consequent.push(tr());return r&&M(r,"SwitchCase"),j(),wt.pop(),M(e,"SwitchStatement")}function lr(e){return j(),ra.test(et.slice(vt,st))&&a(vt,"Illegal newline after throw"),e.argument=kr(),X(),M(e,"ThrowStatement")}function pr(e){if(j(),e.block=xr(),e.handler=null,lt===Ot){var r=P();j(),$(mn),r.param=Xr(),_t&&Xn(r.param.name)&&a(r.param.start,"Binding "+r.param.name+" in strict mode"),$(gn),r.guard=null,r.body=xr(),e.handler=M(r,"CatchClause")}return e.guardedHandlers=St,e.finalizer=z(qt)?xr():null,e.handler||e.finalizer||a(e.start,"Missing catch or finally clause"),M(e,"TryStatement")}function hr(e,r){return j(),Er(e,!1,r),X(),M(e,"VariableDeclaration")}function dr(e){return j(),e.test=br(),wt.push(ca),e.body=tr(),wt.pop(),M(e,"WhileStatement")}function mr(e){return _t&&a(st,"'with' in strict mode"),j(),e.object=br(),e.body=tr(),M(e,"WithStatement")}function gr(e){return j(),M(e,"EmptyStatement")}function vr(e,r,t){for(var n=0;n<wt.length;++n)wt[n].name===r&&a(t.start,"Label '"+r+"' is already declared");var o=lt.isLoop?"loop":lt===zt?"switch":null;return wt.push({name:r,kind:o}),e.body=tr(),wt.pop(),e.label=t,M(e,"LabeledStatement")}function yr(e,r){return e.expression=r,X(),M(e,"ExpressionStatement")}function br(){$(mn);var e=kr();return $(gn),e}function xr(e){var r,t=P(),n=!0;for(t.body=[],$(hn);!z(dn);){var a=tr();t.body.push(a),n&&e&&W(a)&&(r=_t,L(_t=!0)),n=!1}return r===!1&&L(!1),M(t,"BlockStatement")}function wr(e,r){return e.init=r,$(yn),e.test=lt===yn?null:kr(),$(yn),e.update=lt===gn?null:kr(),$(gn),e.body=tr(),wt.pop(),M(e,"ForStatement")}function _r(e,r){var t=lt===un?"ForInStatement":"ForOfStatement";return j(),e.left=r,e.right=kr(),$(gn),e.body=tr(),wt.pop(),M(e,t)}function Er(e,r,t){for(e.declarations=[],e.kind=t;;){var n=P();if(n.id=Zr.ecmaVersion>=6?Y(Tr()):Xr(),er(n.id,!0),n.init=z(An)?kr(!0,r):t===Kt.keyword?H():null,e.declarations.push(M(n,"VariableDeclarator")),!z(vn))break}return e}function kr(e,r){var t=q(),n=Sr(r);if(!e&&lt===vn){var a=R(t);for(a.expressions=[n];z(vn);)a.expressions.push(Sr(r));return M(a,"SequenceExpression")}return n}function Sr(e){var r=q(),t=Cr(e);if(lt.isAssign){var n=R(r);return n.operator=pt,n.left=lt===An?Y(t):t,er(t),j(),n.right=Sr(e),M(n,"AssignmentExpression")}return t}function Cr(e){var r=q(),t=Ar(e);if(z(wn)){var n=R(r);return n.test=t,n.consequent=kr(!0),$(bn),n.alternate=kr(!0,e),M(n,"ConditionalExpression")}return t}function Ar(e){var r=q();return Vr(Ir(),r,-1,e)}function Vr(e,r,t,n){var a=lt.binop;if(null!=a&&(!n||lt!==un)&&a>t){var o=R(r);o.left=e,o.operator=pt;var i=lt;j();var s=q();return o.right=Vr(Ir(),s,a,n),M(o,i===Fn||i===Tn?"LogicalExpression":"BinaryExpression"),Vr(o,r,t,n)}return e}function Ir(){if(lt.prefix){var e,r=P(),t=lt.isUpdate;return lt===Sn?e="SpreadElement":(e=t?"UpdateExpression":"UnaryExpression",r.operator=pt,r.prefix=!0),ht=!0,j(),r.argument=Ir(),t?er(r.argument):_t&&"delete"===r.operator&&"Identifier"===r.argument.type&&a(r.start,"Deleting local variable in strict mode"),M(r,e)}for(var n=q(),o=Dr();lt.postfix&&!G();){var r=R(n);r.operator=pt,r.prefix=!1,r.argument=o,er(o),j(),o=M(r,"UpdateExpression")}return o}function Dr(){var e=q();return Fr(Tr(),e)}function Fr(e,r,t){if(z(xn)){var n=R(r);return n.object=e,n.property=Xr(!0),n.computed=!1,Fr(M(n,"MemberExpression"),r,t)}if(z(ln)){var n=R(r);return n.object=e,n.property=kr(),n.computed=!0,$(pn),Fr(M(n,"MemberExpression"),r,t)}if(!t&&z(mn)){var n=R(r);return n.callee=e,n.arguments=Gr(gn,!1),Fr(M(n,"CallExpression"),r,t)}if(lt===En){var n=R(r);return n.tag=e,n.quasi=Lr(),Fr(M(n,"TaggedTemplateExpression"),r,t)}return e}function Tr(){switch(lt){case Zt:var e=P();return j(),M(e,"ThisExpression");case an:if(xt)return Jr();case It:var r=q(),t=Xr(lt!==It);return z(_n)?Mr(R(r),[t]):t;case At:var e=P();return e.regex={pattern:pt.pattern,flags:pt.flags},e.value=pt.value,e.raw=et.slice(st,ct),j(),M(e,"Literal");case Ct:case Vt:var e=P();return e.value=pt,e.raw=et.slice(st,ct),j(),M(e,"Literal");case on:case sn:case cn:var e=P();return e.value=lt.atomValue,e.raw=lt.keyword,j(),M(e,"Literal");case mn:var n,a,r=q();if(j(),Zr.ecmaVersion>=7&&lt===Rt)n=Qr(R(r),!0);else{var o=++Et;if(lt!==gn?(n=kr(),a="SequenceExpression"===n.type?n.expressions:[n]):a=[],$(gn),Et===o&&z(_n))n=Mr(R(r),a);else{if(n||H(gt),Zr.ecmaVersion>=6)for(var i=0;i<a.length;i++)"SpreadElement"===a[i].type&&H();if(Zr.preserveParens){var s=R(r);s.expression=n,n=M(s,"ParenthesizedExpression")}}}return n;case ln:var e=P();return j(),Zr.ecmaVersion>=7&&lt===Rt?Qr(e,!1):(e.elements=Gr(pn,!0,!0),M(e,"ArrayExpression"));case hn:return Ur();case Mt:var e=P();return j(),qr(e,!1);case en:return zr(P(),!1);case Qt:return Or();case En:return Lr();default:H()}}function Or(){var e=P();j();var r=q();return e.callee=Fr(Tr(),r,!0),e.arguments=z(mn)?Gr(gn,!1):St,M(e,"NewExpression")}function jr(){var e=R(Zr.locations?[st+1,ut.offset(1)]:st+1);e.value=pt,e.tail=123!==et.charCodeAt(ct-1),j();var r=e.tail?1:2;return N(e,"TemplateElement",Zr.locations?[vt-r,yt.offset(-r)]:vt-r)}function Lr(){var e=P();e.expressions=[];var r=jr();for(e.quasis=[r];!r.tail;)e.expressions.push(kr()),lt!==kn&&H(),e.quasis.push(r=jr());return M(e,"TemplateLiteral")}function Ur(){var e=P(),r=!0,t={};for(e.properties=[],j();!z(dn);){if(r)r=!1;else if($(vn),Zr.allowTrailingCommas&&z(dn))break;var n,a=P();Zr.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,n=z(Mn)),Br(a),z(bn)?(a.value=kr(!0),a.kind="init"):Zr.ecmaVersion>=6&&lt===mn?(a.kind="init",a.method=!0,a.value=Rr(n)):Zr.ecmaVersion>=5&&!a.computed&&"Identifier"===a.key.type&&("get"===a.key.name||"set"===a.key.name)?(n&&H(),a.kind=a.key.name,Br(a),a.value=Rr(!1)):Zr.ecmaVersion>=6&&!a.computed&&"Identifier"===a.key.type?(a.kind="init",a.value=a.key,a.shorthand=!0):H(),Z(a,t),e.properties.push(M(a,"Property"))}return M(e,"ObjectExpression")}function Br(e){if(Zr.ecmaVersion>=6){if(z(ln))return e.computed=!0,e.key=kr(),void $(pn);e.computed=!1}e.key=lt===Ct||lt===Vt?Tr():Xr(!0)}function Pr(e){e.id=null,e.params=[],Zr.ecmaVersion>=6&&(e.defaults=[],e.rest=null,e.generator=!1)}function qr(e,r,t){return Pr(e),Zr.ecmaVersion>=6&&(e.generator=z(Mn)),(r||lt===It)&&(e.id=Xr()),Nr(e),Wr(e,t),M(e,r?"FunctionDeclaration":"FunctionExpression")}function Rr(e){var r=P();Pr(r),Nr(r);var t;return Zr.ecmaVersion>=6?(r.generator=e,t=!0):t=!1,Wr(r,t),M(r,"FunctionExpression")}function Mr(e,r){Pr(e);for(var t=e.defaults,n=!1,a=0,o=r.length-1;o>=a;a++){var i=r[a];if("AssignmentExpression"===i.type&&"="===i.operator)n=!0,r[a]=i.left,t.push(i.right);else if(Y(i,a===o,!0),t.push(null),"SpreadElement"===i.type){r.length--,e.rest=i.argument;break}}return e.params=r,n||(e.defaults=[]),Wr(e,!0),M(e,"ArrowFunctionExpression")}function Nr(e){var r=[],t=!1;for($(mn);!z(gn);){if(Zr.ecmaVersion>=6&&z(Sn)){e.rest=Y(Tr(),!1,!0),J(e.rest),$(gn),r.push(null);break}if(e.params.push(Zr.ecmaVersion>=6?Y(Tr(),!1,!0):Xr()),Zr.ecmaVersion>=6&&(z(An)?(t=!0,r.push(kr(!0))):r.push(null)),!z(vn)){$(gn);break}}t&&(e.defaults=r)}function Wr(e,r){var t=r&&lt!==hn;if(t)e.body=kr(!0),e.expression=!0;else{var n=bt,a=xt,o=wt;bt=!0,xt=e.generator,wt=[],e.body=xr(!0),e.expression=!1,bt=n,xt=a,wt=o}if(_t||!t&&e.body.body.length&&W(e.body.body[0])){var i={};e.id&&Q(e.id,{});for(var s=0;s<e.params.length;s++)Q(e.params[s],i);e.rest&&Q(e.rest,i)}}function zr(e,r){j(),e.id=lt===It?Xr():r?H():null,e.superClass=z(rn)?kr():null;var t=P();for(t.body=[],$(hn);!z(dn);){var n=P();lt===It&&"static"===pt?(j(),n["static"]=!0):n["static"]=!1;var a=z(Mn);Br(n),lt===mn||n.computed||"Identifier"!==n.key.type||"get"!==n.key.name&&"set"!==n.key.name?n.kind="":(a&&H(),n.kind=n.key.name,Br(n)),n.value=Rr(a),t.body.push(M(n,"MethodDefinition")),z(yn)}return e.body=M(t,"ClassBody"),M(e,r?"ClassDeclaration":"ClassExpression")}function Gr(e,r,t){for(var n=[],a=!0;!z(e);){if(a)a=!1;
else if($(vn),r&&Zr.allowTrailingCommas&&z(e))break;n.push(t&&lt===vn?null:kr(!0))}return n}function Xr(e){var r=P();return e&&"everywhere"==Zr.forbidReserved&&(e=!1),lt===It?(!e&&(Zr.forbidReserved&&(3===Zr.ecmaVersion?Wn:zn)(pt)||_t&&Gn(pt))&&-1==et.slice(st,ct).indexOf("\\")&&a(st,"The keyword '"+pt+"' is reserved"),r.name=pt):e&&lt.keyword?r.name=lt.keyword:H(),ht=!1,j(),M(r,"Identifier")}function $r(e){if(j(),lt===$t||lt===Kt||lt===Ht||lt===Mt||lt===en)e.declaration=tr(),e["default"]=!1,e.specifiers=null,e.source=null;else if(z(Ut))e.declaration=kr(!0),e["default"]=!0,e.specifiers=null,e.source=null,X();else{var r=lt===Mn;e.declaration=null,e["default"]=!1,e.specifiers=Hr(),lt===It&&"from"===pt?(j(),e.source=lt===Vt?Tr():H()):(r&&H(),e.source=null),X()}return M(e,"ExportDeclaration")}function Hr(){var e=[],r=!0;if(lt===Mn){var t=P();j(),e.push(M(t,"ExportBatchSpecifier"))}else for($(hn);!z(dn);){if(r)r=!1;else if($(vn),Zr.allowTrailingCommas&&z(dn))break;var t=P();t.id=Xr(lt===Ut),lt===It&&"as"===pt?(j(),t.name=Xr(!0)):t.name=null,e.push(M(t,"ExportSpecifier"))}return e}function Kr(e){return j(),lt===Vt?(e.specifiers=[],e.source=Tr(),e.kind=""):(e.specifiers=Yr(),(lt!==It||"from"!==pt)&&H(),j(),e.source=lt===Vt?Tr():H()),X(),M(e,"ImportDeclaration")}function Yr(){var e=[],r=!0;if(lt===It){var t=P();if(t.id=Xr(),er(t.id,!0),t.name=null,t["default"]=!0,e.push(M(t,"ImportSpecifier")),!z(vn))return e}if(lt===Mn){var t=P();return j(),(lt!==It||"as"!==pt)&&H(),j(),t.name=Xr(),er(t.name,!0),e.push(M(t,"ImportBatchSpecifier")),e}for($(hn);!z(dn);){if(r)r=!1;else if($(vn),Zr.allowTrailingCommas&&z(dn))break;var t=P();t.id=Xr(!0),lt===It&&"as"===pt?(j(),t.name=Xr()):t.name=null,er(t.name||t.id,!0),t["default"]=!1,e.push(M(t,"ImportSpecifier"))}return e}function Jr(){var e=P();return j(),z(yn)||G()?(e.delegate=!1,e.argument=null):(e.delegate=z(Mn),e.argument=kr(!0)),M(e,"YieldExpression")}function Qr(e,r){for(e.blocks=[];lt===Rt;){var t=P();j(),$(mn),t.left=Y(Tr()),er(t.left,!0),(lt!==It||"of"!==pt)&&H(),j(),t.of=!0,t.right=kr(),$(gn),e.blocks.push(M(t,"ComprehensionBlock"))}return e.filter=z(Nt)?br():null,e.body=kr(),$(r?gn:pn),e.generator=r,M(e,"ComprehensionExpression")}e.version="0.11.0";var Zr,et,rt,tt;e.parse=function(e,t){et=String(e),rt=et.length,r(t),s();var a=Zr.locations?[it,i()]:it;return n(),rr(Zr.program||R(a))};var nt=e.defaultOptions={ecmaVersion:5,strictSemicolons:!1,allowTrailingCommas:!0,forbidReserved:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};e.parseExpressionAt=function(e,t,a){return et=String(e),rt=et.length,r(a),s(t),n(),kr()};var at=function(e){return"[object Array]"===Object.prototype.toString.call(e)},ot=e.getLineInfo=function(e,r){for(var t=1,n=0;;){ta.lastIndex=n;var a=ta.exec(e);if(!(a&&a.index<r))break;++t,n=a.index+a[0].length}return{line:t,column:r-n}};e.Token=t,e.tokenize=function(e,n){function a(e){return vt=ct,w(e),new t}return et=String(e),rt=et.length,r(n),s(),l(),a.jumpTo=function(e,r){if(it=e,Zr.locations){dt=1,mt=ta.lastIndex=0;for(var t;(t=ta.exec(et))&&t.index<e;)++dt,mt=t.index+t[0].length}ht=r,l()},a.noRegexp=function(){ht=!1},a.options=Zr,a};var it,st,ct,ut,ft,lt,pt,ht,dt,mt,gt,vt,yt,bt,xt,wt,_t,Et,kt,St=[],Ct={type:"num"},At={type:"regexp"},Vt={type:"string"},It={type:"name"},Dt={type:"eof"},Ft={keyword:"break"},Tt={keyword:"case",beforeExpr:!0},Ot={keyword:"catch"},jt={keyword:"continue"},Lt={keyword:"debugger"},Ut={keyword:"default"},Bt={keyword:"do",isLoop:!0},Pt={keyword:"else",beforeExpr:!0},qt={keyword:"finally"},Rt={keyword:"for",isLoop:!0},Mt={keyword:"function"},Nt={keyword:"if"},Wt={keyword:"return",beforeExpr:!0},zt={keyword:"switch"},Gt={keyword:"throw",beforeExpr:!0},Xt={keyword:"try"},$t={keyword:"var"},Ht={keyword:"let"},Kt={keyword:"const"},Yt={keyword:"while",isLoop:!0},Jt={keyword:"with"},Qt={keyword:"new",beforeExpr:!0},Zt={keyword:"this"},en={keyword:"class"},rn={keyword:"extends",beforeExpr:!0},tn={keyword:"export"},nn={keyword:"import"},an={keyword:"yield",beforeExpr:!0},on={keyword:"null",atomValue:null},sn={keyword:"true",atomValue:!0},cn={keyword:"false",atomValue:!1},un={keyword:"in",binop:7,beforeExpr:!0},fn={"break":Ft,"case":Tt,"catch":Ot,"continue":jt,"debugger":Lt,"default":Ut,"do":Bt,"else":Pt,"finally":qt,"for":Rt,"function":Mt,"if":Nt,"return":Wt,"switch":zt,"throw":Gt,"try":Xt,"var":$t,let:Ht,"const":Kt,"while":Yt,"with":Jt,"null":on,"true":sn,"false":cn,"new":Qt,"in":un,"instanceof":{keyword:"instanceof",binop:7,beforeExpr:!0},"this":Zt,"typeof":{keyword:"typeof",prefix:!0,beforeExpr:!0},"void":{keyword:"void",prefix:!0,beforeExpr:!0},"delete":{keyword:"delete",prefix:!0,beforeExpr:!0},"class":en,"extends":rn,"export":tn,"import":nn,"yield":an},ln={type:"[",beforeExpr:!0},pn={type:"]"},hn={type:"{",beforeExpr:!0},dn={type:"}"},mn={type:"(",beforeExpr:!0},gn={type:")"},vn={type:",",beforeExpr:!0},yn={type:";",beforeExpr:!0},bn={type:":",beforeExpr:!0},xn={type:"."},wn={type:"?",beforeExpr:!0},_n={type:"=>",beforeExpr:!0},En={type:"template"},kn={type:"templateContinued"},Sn={type:"...",prefix:!0,beforeExpr:!0},Cn={binop:10,beforeExpr:!0},An={isAssign:!0,beforeExpr:!0},Vn={isAssign:!0,beforeExpr:!0},In={postfix:!0,prefix:!0,isUpdate:!0},Dn={prefix:!0,beforeExpr:!0},Fn={binop:1,beforeExpr:!0},Tn={binop:2,beforeExpr:!0},On={binop:3,beforeExpr:!0},jn={binop:4,beforeExpr:!0},Ln={binop:5,beforeExpr:!0},Un={binop:6,beforeExpr:!0},Bn={binop:7,beforeExpr:!0},Pn={binop:8,beforeExpr:!0},qn={binop:9,prefix:!0,beforeExpr:!0},Rn={binop:10,beforeExpr:!0},Mn={binop:10,beforeExpr:!0};e.tokTypes={bracketL:ln,bracketR:pn,braceL:hn,braceR:dn,parenL:mn,parenR:gn,comma:vn,semi:yn,colon:bn,dot:xn,ellipsis:Sn,question:wn,slash:Cn,eq:An,name:It,eof:Dt,num:Ct,regexp:At,string:Vt,arrow:_n,template:En,templateContinued:kn,star:Mn,assign:Vn};for(var Nn in fn)e.tokTypes["_"+Nn]=fn[Nn];var Wn=function(e){switch(e.length){case 6:switch(e){case"double":case"export":case"import":case"native":case"public":case"static":case"throws":return!0}return!1;case 4:switch(e){case"byte":case"char":case"enum":case"goto":case"long":return!0}return!1;case 5:switch(e){case"class":case"final":case"float":case"short":case"super":return!0}return!1;case 7:switch(e){case"boolean":case"extends":case"package":case"private":return!0}return!1;case 9:switch(e){case"interface":case"protected":case"transient":return!0}return!1;case 8:switch(e){case"abstract":case"volatile":return!0}return!1;case 10:return"implements"===e;case 3:return"int"===e;case 12:return"synchronized"===e}},zn=function(e){switch(e.length){case 5:switch(e){case"class":case"super":case"const":return!0}return!1;case 6:switch(e){case"export":case"import":return!0}return!1;case 4:return"enum"===e;case 7:return"extends"===e}},Gn=function(e){switch(e.length){case 9:switch(e){case"interface":case"protected":return!0}return!1;case 7:switch(e){case"package":case"private":return!0}return!1;case 6:switch(e){case"public":case"static":return!0}return!1;case 10:return"implements"===e;case 3:return"let"===e;case 5:return"yield"===e}},Xn=function(e){switch(e){case"eval":case"arguments":return!0}return!1},$n=function(e){switch(e.length){case 4:switch(e){case"case":case"else":case"with":case"null":case"true":case"void":case"this":return!0}return!1;case 5:switch(e){case"break":case"catch":case"throw":case"while":case"false":return!0}return!1;case 3:switch(e){case"for":case"try":case"var":case"new":return!0}return!1;case 6:switch(e){case"return":case"switch":case"typeof":case"delete":return!0}return!1;case 8:switch(e){case"continue":case"debugger":case"function":return!0}return!1;case 2:switch(e){case"do":case"if":case"in":return!0}return!1;case 7:switch(e){case"default":case"finally":return!0}return!1;case 10:return"instanceof"===e}},Hn=function(e){switch(e.length){case 5:switch(e){case"break":case"catch":case"throw":case"while":case"false":case"const":case"class":case"yield":return!0}return!1;case 4:switch(e){case"case":case"else":case"with":case"null":case"true":case"void":case"this":return!0}return!1;case 6:switch(e){case"return":case"switch":case"typeof":case"delete":case"export":case"import":return!0}return!1;case 3:switch(e){case"for":case"try":case"var":case"new":case"let":return!0}return!1;case 8:switch(e){case"continue":case"debugger":case"function":return!0}return!1;case 7:switch(e){case"default":case"finally":case"extends":return!0}return!1;case 2:switch(e){case"do":case"if":case"in":return!0}return!1;case 10:return"instanceof"===e}},Kn=$n,Yn=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Jn="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Qn="̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧙ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_",Zn=new RegExp("["+Jn+"]"),ea=new RegExp("["+Jn+Qn+"]"),ra=/[\n\r\u2028\u2029]/,ta=/\r\n|[\n\r\u2028\u2029]/g,na=e.isIdentifierStart=function(e){return 65>e?36===e:91>e?!0:97>e?95===e:123>e?!0:e>=170&&Zn.test(String.fromCharCode(e))},aa=e.isIdentifierChar=function(e){return 48>e?36===e:58>e?!0:65>e?!1:91>e?!0:97>e?95===e:123>e?!0:e>=170&&ea.test(String.fromCharCode(e))};o.prototype.offset=function(e){return new o(this.line,this.column+e)};var oa=!1;try{new RegExp("￿","u"),oa=!0}catch(ia){}var sa;e.Node=U;var ca={kind:"loop"},ua={kind:"switch"}})},{}]},{},[1]);

@@ -43,3 +43,3 @@ "use strict";

this._curVarStore = parent;
this._curDeclarations = [];
this._curDeclarations = {};
this._globalObj = globalObjects[0];

@@ -71,3 +71,3 @@ this._curThis = this._globalObj;

addDeclarationsToStore(this._curDeclarations, this._curVarStore);
this._curDeclarations = [];
this._curDeclarations = {};
return resp;

@@ -170,19 +170,29 @@ };

Environment.prototype._genUnaryExpr = function (node) {
if (node.operator === 'delete') {
return this._genDelete(node);
}
var a = this._gen(node.argument);
var op = {
'-': function (a) {return -a; },
'+': function (a) {return +a; },
'!': function (a) {return !a; },
'~': function (a) {return ~a; },
'typeof': function (a) {return typeof a; },
'void': function (a) {return void a; },
//TODO
// 'delete': function (a) {return delete a; },
'-': function () {return -a(); },
'+': function () {return +a(); },
'!': function () {return !a(); },
'~': function () {return ~a(); },
'typeof': function () {return typeof a(); },
'void': function () {return void a(); },
}[node.operator];
var argument = this._gen(node.argument);
return function () {
return op(argument());
return op();
};
};
Environment.prototype._genDelete = function (node) {
var obj = this._genObj(node.argument);
var attr = this._genName(node.argument);
return function () {
return delete obj()[attr()];
};
};
Environment.prototype._genObjExpr = function (node) {

@@ -374,11 +384,5 @@ //TODO property.kind: don't assume init when it can also be set/get

Environment.prototype._genFuncDecl = function (node) {
this._curDeclarations.push(node.id.name);
this._curDeclarations[node.id.name] = this._genFuncExpr(node);
node.type = 'FunctionExpression';
return this._gen({
type: 'AssignmentExpression',
operator: '=',
left: node.id,
right: node
});
return noop;
};

@@ -390,3 +394,3 @@

var decl = node.declarations[i];
this._curDeclarations.push(decl.id.name);
this._curDeclarations[decl.id.name] = noop;
if (decl.init) {

@@ -411,3 +415,3 @@ assignments.push({

var oldDeclarations = self._curDeclarations;
self._curDeclarations = [];
self._curDeclarations = {};
var body = self._gen(node.body);

@@ -427,17 +431,17 @@ var declarations = self._curDeclarations;

}
var varStore = createVarStore(parent);
addDeclarationsToStore(declarations, varStore);
varStore.vars.arguments = args;
// add function args to var store
node.params.forEach(function (param, i) {
varStore.vars[param.name] = args[i];
});
// switch interpreter 'stack'
var oldStore = self._curVarStore;
var oldThis = self._curThis;
self._curVarStore = varStore;
self._curVarStore = createVarStore(parent);
self._curThis = this;
addDeclarationsToStore(declarations, self._curVarStore);
self._curVarStore.vars.arguments = args;
// add function args to var store
node.params.forEach(function (param, i) {
self._curVarStore.vars[param.name] = args[i];
});
// run function body

@@ -458,5 +462,5 @@ var result = body();

function addDeclarationsToStore(declarations, varStore) {
for (var i = 0; i < declarations.length; i++) {
if (!varStore.vars.hasOwnProperty(declarations[i])) {
varStore.vars[declarations[i]] = undefined;
for (var key in declarations) {
if (declarations.hasOwnProperty(key) && !varStore.vars.hasOwnProperty(key)) {
varStore.vars[key] = declarations[key]();
}

@@ -553,3 +557,3 @@ }

if (left.type === 'VariableDeclaration') {
self._curDeclarations.push(left.declarations[0].id.name);
self._curDeclarations[left.declarations[0].id.name] = noop;
left = left.declarations[0].id;

@@ -556,0 +560,0 @@ }

{
"name": "evaljs",
"version": "1.0.0",
"version": "1.0.1",
"description": "A JavaScript interpreter written in JavaScript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -86,3 +86,3 @@ eval.js

15.4kB min+gzip
16.3kB min+gzip

@@ -89,0 +89,0 @@ License?

@@ -171,2 +171,14 @@ // not strict, 'cause we need to parse the with statement

abcdefg();
function abcdefg() {
console.log('should be called');
}
var obj = {};
obj.a = 3;
console.log(obj.a);
delete obj.a;
console.log(obj.a);
/*jshint ignore:start*/

@@ -173,0 +185,0 @@ with ({a: 1, b: 2}) {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc