text: !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).rexexpressionparserplugin=e()}(this,function(){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function l(r){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=u(r);if(i){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return c(this,t)}}var t="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function h(){throw new Error("setTimeout has not been defined")}function f(){throw new Error("clearTimeout has not been defined")}var y=h,p=f;function g(e){if(y===setTimeout)return setTimeout(e,0);if((y===h||!y)&&setTimeout)return y=setTimeout,setTimeout(e,0);try{return y(e,0)}catch(t){try{return y.call(null,e,0)}catch(t){return y.call(this,e,0)}}}"function"==typeof t.setTimeout&&(y=setTimeout),"function"==typeof t.clearTimeout&&(p=clearTimeout);var m,d=[],b=!1,_=-1;function v(){b&&m&&(b=!1,m.length?d=m.concat(d):_=-1,d.length&&k())}function k(){if(!b){var t=g(v);b=!0;for(var e=d.length;e;){for(m=d,d=[];++_<e;)m&&m[_].run();_=-1,e=d.length}m=null,b=!1,function(e){if(p===clearTimeout)return clearTimeout(e);if((p===f||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}(t)}}function w(t,e){this.fun=t,this.array=e}w.prototype.run=function(){this.fun.apply(null,this.array)};function e(){}var x=e,E=e,T=e,$=e,P=e,S=e,A=e;var j=t.performance||{},O=j.now||j.mozNow||j.msNow||j.oNow||j.webkitNow||function(){return(new Date).getTime()};var I=new Date;var D={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new w(t,e)),1!==d.length||b||g(k)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:x,addListener:E,once:T,off:$,removeListener:P,removeAllListeners:S,emit:A,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*O.call(j),n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n-=t[0],(r-=t[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-I)/1e3}};function F(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}var z={};function N(t,e){for(var n=0,r=t.length-1;0<=r;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;)t.unshift("..");return t}function R(t){return L.exec(t).slice(1)}var L=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function M(){for(var t="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){var r=0<=n?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(t=r+"/"+t,e="/"===r.charAt(0))}return(e?"/":"")+(t=N(H(t.split("/"),function(t){return!!t}),!e).join("/"))||"."}function B(t){var e=U(t),n="/"===Z(t,-1);return(t=N(H(t.split("/"),function(t){return!!t}),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t}function U(t){return"/"===t.charAt(0)}var q={extname:function(t){return R(t)[3]},basename:function(t,e){var n=R(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},dirname:function(t){var e=R(t),n=e[0],r=e[1];return n||r?n+(r=r&&r.substr(0,r.length-1)):"."},sep:"/",delimiter:":",relative:function(t,e){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;0<=n&&""===t[n];n--);return n<e?[]:t.slice(e,n-e+1)}t=M(t).substr(1),e=M(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),s=Math.min(r.length,i.length),o=s,u=0;u<s;u++)if(r[u]!==i[u]){o=u;break}var a=[];for(u=o;u<r.length;u++)a.push("..");return(a=a.concat(i.slice(o))).join("/")},join:function(){return B(H(Array.prototype.slice.call(arguments,0),function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},isAbsolute:U,normalize:B,resolve:M};function H(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var X,Z="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)},C=(function(t,n){var e,r,i,s,o,u,a,c,l,h,f,y,p,g,m,d,b,_,v,k,w,x,E,T,$,P,S,A,j,O,I=(E=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28],T=[5,7,11,12,17,18,19,20,21,22,23,24,26,28],$=[5,7,11,12,13,14,15,17,18,19,20,21,22,23,24,26,28],P=[5,7,17,18,19,20,21,22,23,24,26,28],S=[5,7,23,24,26,28],A=[7,26],j={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,expression_list:6,",":7,dot_name:8,".":9,NAME:10,"+":11,"-":12,"*":13,"/":14,"%":15,"^":16,">":17,"<":18,"==":19,"!=":20,">=":21,"<=":22,"||":23,"&&":24,"(":25,")":26,"?":27,":":28,true:29,false:30,NUMBER:31,HEXNUMBER:32,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",7:",",9:".",10:"NAME",11:"+",12:"-",13:"*",14:"/",15:"%",16:"^",17:">",18:"<",19:"==",20:"!=",21:">=",22:"<=",23:"||",24:"&&",25:"(",26:")",27:"?",28:":",29:"true",30:"false",31:"NUMBER",32:"HEXNUMBER"},productions_:[0,[3,2],[6,3],[6,1],[8,3],[8,1],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,3],[4,7],[4,1],[4,1],[4,1],[4,3],[4,4],[4,1],[4,1]],performAction:function(t,e,n,r,i,s){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:this.$=s[o-2].concat([s[o]]);break;case 3:this.$=[s[o]];break;case 4:this.$="".concat(s[o-2],".").concat(s[o]);break;case 5:this.$=s[o];break;case 6:this.$=function(t){return L(r.parser,t,"_add",[s[o-2],s[o]])};break;case 7:this.$=function(t){return L(r.parser,t,"_subtract",[s[o-2],s[o]])};break;case 8:this.$=function(t){return L(r.parser,t,"_multiply",[s[o-2],s[o]])};break;case 9:this.$=function(t){return L(r.parser,t,"_divide",[s[o-2],s[o]])};break;case 10:this.$=function(t){return L(r.parser,t,"_mod",[s[o-2],s[o]])};break;case 11:this.$=function(t){return L(r.parser,t,"_pow",[s[o-2],s[o]])};break;case 12:this.$=function(t){return 1==L(r.parser,t,"_greaterThen",[s[o-2],s[o]])};break;case 13:this.$=function(t){return 1==L(r.parser,t,"_lessThen",[s[o-2],s[o]])};break;case 14:this.$=function(t){return 1==L(r.parser,t,"_equalTo",[s[o-2],s[o]])};break;case 15:this.$=function(t){return 0==L(r.parser,t,"_equalTo",[s[o-2],s[o]])};break;case 16:this.$=function(t){return 0==L(r.parser,t,"_lessThen",[s[o-2],s[o]])};break;case 17:this.$=function(t){return 0==L(r.parser,"_greaterThen",[s[o-2],s[o]])};break;case 18:this.$=function(t){return 1==L(r.parser,t,"_or",[s[o-2],s[o]])};break;case 19:this.$=function(t){return 1==L(r.parser,t,"_and",[s[o-2],s[o]])};break;case 20:this.$=function(t){return-R(s[o],t)};break;case 21:this.$=function(t){return R(s[o-1],t)};break;case 22:this.$=function(t){return R(s[o-5],t)?R(s[o-2],t):R(s[o],t)};break;case 23:this.$=!0;break;case 24:this.$=!1;break;case 25:this.$=function(t){return r.parser.getDotProperty(t,s[o],0)};break;case 26:this.$=function(t){return L(r.parser,t,s[o-2],void 0,!0)};break;case 27:this.$=function(t){return L(r.parser,t,s[o-3],s[o-1],!0)};break;case 28:this.$=Number(t);break;case 29:this.$=parseInt(t,16)}},table:[{3:1,4:2,8:7,10:e=[1,10],12:r=[1,3],25:i=[1,4],29:s=[1,5],30:o=[1,6],31:u=[1,8],32:a=[1,9]},{1:[3]},{5:[1,11],11:c=[1,12],12:l=[1,13],13:h=[1,14],14:f=[1,15],15:y=[1,16],16:p=[1,17],17:g=[1,18],18:m=[1,19],19:d=[1,20],20:b=[1,21],21:_=[1,22],22:v=[1,23],23:k=[1,24],24:w=[1,25]},{4:26,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:27,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},N(x=[5,7,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,28],[2,23]),N(x,[2,24]),N(x,[2,25],{9:[1,29],25:[1,28]}),N(x,[2,28]),N(x,[2,29]),N(E,[2,5]),{1:[2,1]},{4:30,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:31,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:32,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:33,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:34,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:35,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:36,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:37,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:38,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:39,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:40,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:41,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:42,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{4:43,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},N(x,[2,20]),{11:c,12:l,13:h,14:f,15:y,16:p,17:g,18:m,19:d,20:b,21:_,22:v,23:k,24:w,26:[1,44]},{4:47,6:46,8:7,10:e,12:r,25:i,26:[1,45],29:s,30:o,31:u,32:a},{10:[1,48]},N(T,[2,6],{13:h,14:f,15:y,16:p}),N(T,[2,7],{13:h,14:f,15:y,16:p}),N($,[2,8],{16:p}),N($,[2,9],{16:p}),N([5,7,11,12,15,17,18,19,20,21,22,23,24,26,28],[2,10],{13:h,14:f,16:p}),N(x,[2,11]),N(P,[2,12],{11:c,12:l,13:h,14:f,15:y,16:p}),N(P,[2,13],{11:c,12:l,13:h,14:f,15:y,16:p}),N(P,[2,14],{11:c,12:l,13:h,14:f,15:y,16:p}),N(P,[2,15],{11:c,12:l,13:h,14:f,15:y,16:p}),N(P,[2,16],{11:c,12:l,13:h,14:f,15:y,16:p}),N(P,[2,17],{11:c,12:l,13:h,14:f,15:y,16:p}),N(S,[2,18],{11:c,12:l,13:h,14:f,15:y,16:p,17:g,18:m,19:d,20:b,21:_,22:v}),N(S,[2,19],{11:c,12:l,13:h,14:f,15:y,16:p,17:g,18:m,19:d,20:b,21:_,22:v}),N(x,[2,21],{27:[1,49]}),N(x,[2,26]),{7:[1,51],26:[1,50]},N(A,[2,3],{11:c,12:l,13:h,14:f,15:y,16:p,17:g,18:m,19:d,20:b,21:_,22:v,23:k,24:w}),N(E,[2,4]),{4:52,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},N(x,[2,27]),{4:53,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},{11:c,12:l,13:h,14:f,15:y,16:p,17:g,18:m,19:d,20:b,21:_,22:v,23:k,24:w,28:[1,54]},N(A,[2,2],{11:c,12:l,13:h,14:f,15:y,16:p,17:g,18:m,19:d,20:b,21:_,22:v,23:k,24:w}),{4:55,8:7,10:e,12:r,25:i,29:s,30:o,31:u,32:a},N([5,7,26,28],[2,22],{11:c,12:l,13:h,14:f,15:y,16:p,17:g,18:m,19:d,20:b,21:_,22:v,23:k,24:w})],defaultActions:{11:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[null],i=[],s=this.table,o="",u=0,a=0,c=i.slice.call(arguments,1),l=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);l.setInput(t,h.yy),h.yy.lexer=l,h.yy.parser=this,void 0===l.yylloc&&(l.yylloc={});var y=l.yylloc;i.push(y);var p=l.options&&l.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,m,d,b,_,v,k,w,x,E={};;){if(m=n[n.length-1],void 0===(d=this.defaultActions[m]?this.defaultActions[m]:(null==g&&(x=void 0,"number"!=typeof(x=l.lex()||1)&&(x=e.symbols_[x]||x),g=x),s[m]&&s[m][g]))||!d.length||!d[0]){var T="";for(_ in w=[],s[m])this.terminals_[_]&&2<_&&w.push("'"+this.terminals_[_]+"'");T=l.showPosition?"Parse error on line "+(u+1)+":\n"+l.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(T,{text:l.match,token:this.terminals_[g]||g,line:l.yylineno,loc:y,expected:w})}if(d[0]instanceof Array&&1<d.length)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+g);switch(d[0]){case 1:n.push(g),r.push(l.yytext),i.push(l.yylloc),n.push(d[1]),g=null,a=l.yyleng,o=l.yytext,u=l.yylineno,y=l.yylloc;break;case 2:if(v=this.productions_[d[1]][1],E.$=r[r.length-v],E._$={first_line:i[i.length-(v||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(v||1)].first_column,last_column:i[i.length-1].last_column},p&&(E._$.range=[i[i.length-(v||1)].range[0],i[i.length-1].range[1]]),void 0!==(b=this.performAction.apply(E,[o,a,u,h.yy,d[1],r,i].concat(c))))return b;v&&(n=n.slice(0,-1*v*2),r=r.slice(0,-1*v),i=i.slice(0,-1*v)),n.push(this.productions_[d[1]][0]),r.push(E.$),i.push(E._$),k=s[n[n.length-2]][n[n.length-1]],n.push(k);break;case 3:return!0}}return!0}},O={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in i)this[s]=i[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length;s++)if((n=this._input.match(this.rules[i[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return 0<this.conditionStack.length-1?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return 0<=(t=this.conditionStack.length-1-Math.abs(t||0))?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n){switch(n){case 0:break;case 1:return 31;case 2:return 32;case 3:return 13;case 4:return 14;case 5:return 12;case 6:return 11;case 7:return 16;case 8:return 15;case 9:return">=";case 10:return"<=";case 11:return 17;case 12:return 18;case 13:return"==";case 14:return"!=";case 15:return"||";case 16:return"&&";case 17:return"?";case 18:return":";case 19:return 25;case 20:return 26;case 21:return 7;case 22:return 9;case 23:return 29;case 24:return 30;case 25:return 10;case 26:return 5;case 27:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:[0-9]+(\.[0-9]+)?\b)/,/^(?:\b0x[0-9A-Fa-f]+\b)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:%)/,/^(?:>=)/,/^(?:<=)/,/^(?:>)/,/^(?:<)/,/^(?:==)/,/^(?:!=)/,/^(?:\|\|)/,/^(?:&&)/,/^(?:\?)/,/^(?::)/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:\.)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:[a-zA-Z]+(_[0-9a-zA-Z]+)?)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27],inclusive:!0}}},j.lexer=O,new((M.prototype=j).Parser=M));function N(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n}function R(t,e){return"function"==typeof t?t(e):t}function L(t,e,n,r,i){void 0===i&&(i=!1);var s=t[i?"getDotProperty":"getProperty"](e,n);return void 0===s&&(s=t.getProperty(e,"defaultHandler")),r=r&&r.map(function(t){return R(t,e)}),s.apply(t,r)}function M(){this.yy={}}void 0!==F&&(n.parser=I,n.Parser=I.Parser,n.parse=function(){return I.parse.apply(I,arguments)},n.main=function(t){t[1]||(console.log("Usage: "+t[0]+" FILE"),D.exit(1));var e=z.readFileSync(q.normalize(t[1]),"utf8");return n.parser.parse(e)},F.main===t&&n.main(D.argv.slice(1)))}(X={exports:{}},X.exports),X.exports);C.parser,C.Parser,C.parse,C.main;function V(t,e,n,r){if(t&&"number"!=typeof t&&"string"!=typeof t){if(G(t,e))return t[e];if(r&&-1!==e.indexOf(".")){for(var i=e.split("."),s=t,o=0;o<i.length;o++){e=i[o];if(!G(s,e)){s=n;break}s=s[e]}return s}return n}return n}function Y(t){return null==t||""===t||0===t.length}var G=function(t,e){return t.hasOwnProperty(e)||t[e]},J=function(){o(e,C.Parser);var t=l(e);function e(){return r(this,e),t.apply(this,arguments)}return s(e,[{key:"getProperty",value:function(t,e,n){var r=V(t,e,void 0,!1);return void 0!==r?r:V(this,e,n,!1)}},{key:"getDotProperty",value:function(t,e,n){var r=V(t,e,void 0,!0);return void 0!==r?r:V(this,e,n,!0)}},{key:"_add",value:function(t,e){return t+e}},{key:"_subtract",value:function(t,e){return t-e}},{key:"_multiply",value:function(t,e){return t*e}},{key:"_divide",value:function(t,e){return t/e}},{key:"_mod",value:function(t,e){return t%e}},{key:"_pow",value:function(t,e){return Math.pow(t,e)}},{key:"_greaterThen",value:function(t,e){return e<t}},{key:"_lessThen",value:function(t,e){return t<e}},{key:"_equalTo",value:function(t,e){return t==e}},{key:"_or",value:function(t,e){return t||e}},{key:"_and",value:function(t,e){return t&&e}},{key:"defaultHandler",value:function(){return 0}},{key:"compile",value:function(t){return this.parse(t)}},{key:"exec",value:function(t,e){return"string"==typeof t&&(t=this.compile(t)),t(e)}}]),e}(),K=function(){o(n,Phaser.Plugins.BasePlugin);var e=l(n);function n(t){return r(this,n),e.call(this,t)}return s(n,[{key:"start",value:function(){this.game.events.on("destroy",this.destroy,this)}},{key:"add",value:function(){return new J}}]),n}();return function(t,e,n){if("object"===a(t)){if(Y(e)){if(null==n)return;"object"===a(n)&&(t=n)}else{"string"==typeof e&&(e=e.split("."));var r=e.pop();(function(t,e,n){var r=t;if(!Y(e)){var i;"string"==typeof e&&(e=e.split("."));for(var s=0,o=e.length;s<o;s++){var u;if(null==r[i=e[s]]||"object"!==a(r[i]))u=s!==o-1||void 0===n?{}:n,r[i]=u;r=r[i]}}return r})(t,e)[r]=n}}}(window,"RexPlugins.ExpressionParser",J),K});
  