!function i(o,n,a){function s(e,t){if(!n[e]){if(!o[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(l)return l(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}r=n[e]={exports:{}},o[e][0].call(r.exports,function(t){return s(o[e][1][t]||t)},r,r.exports,i,o,n,a)}return n[e].exports}for(var l="function"==typeof require&&require,t=0;t(t=((t,e)=>{if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=p(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==p(t)?t:t+""))(i.key),i)}}var b=r.default=(()=>{function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.term=t,this.tokenizer=new o.default(this.term),this.symbolLoader=new n.default,this.parser=new a.default(this.symbolLoader)}return t=e,(r=[{key:"parse",value:function(){this.tokenizer.input=this.term,this.tokenizer.reset();var t=this.tokenizer.tokenize();if(0===t.length)throw"Error: Empty token of calculator term.";t=this.parser.parse(t);if(t.isEmpty())throw"Error: Empty nodes of calculator tokens.";return t}},{key:"calculate",value:function(){var t=this.parse();return!1===t?0:this.calculateNode(t)}},{key:"calculateNode",value:function(t){if(t instanceof f.default)return this.calculateSymbolNode(t);if(t instanceof m.default)return this.calculateFunctionNode(t);if(t instanceof c.default)return this.calculateContainerNode(t);throw'Error: Cannot calculate node of unknown type "'+t.constructor.name+'"'}},{key:"calculateContainerNode",value:function(t){if(t instanceof m.default)throw"Error: Expected container node but got a function node";for(var e=0,r=t.childNodes,i=this.detectCalculationOrder(r),o=0;o(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}r.default=(()=>{function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.symbolLoader=t}return t=e,(r=[{key:"parse",value:function(t){t=this.detectSymbols(t),t=this.createTreeByBrackets(t),t=this.transformTreeByFunctions(t);return this.checkGrammar(t),new l.default(t)}},{key:"detectSymbols",value:function(t){for(var e=[],r=null,i=null,o=!1,n=0,a=0;a=t.length)throw"Error: Found operator that does not stand before an operand.";var o=e-1,n=null;if(null===(n=0<=o&&(n=t[o])instanceof p.default&&(n.symbol instanceof a.default||n.symbol instanceof s.default)?null:n)){if(!i.operatesUnary)throw"Error: Found operator in unary notation that is not unary.";r.setIsUnaryOperator(!0)}else if(!i.operatesBinary)throw console.log(i),"Error: Found operator in binary notation that is not binary."}}else this.checkGrammar(r.childNodes)}}}])&&n(t.prototype,r),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,i})()},{"../symbol/abstract/front.calculator.symbol.function.abstract":11,"../symbol/abstract/front.calculator.symbol.operator.abstract":12,"../symbol/brackets/front.calculator.symbol.closing.bracket":13,"../symbol/brackets/front.calculator.symbol.opening.bracket":14,"../symbol/front.calculator.symbol.number":17,"../symbol/front.calculator.symbol.separator":18,"./front.calculator.parser.token":3,"./node/front.calculator.parser.node.container":6,"./node/front.calculator.parser.node.function":7,"./node/front.calculator.parser.node.symbol":8}],3:[function(t,e,r){function o(t){return(o="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 n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=(()=>{function i(t,e,r){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.type=t,this.value=e,this.position=r}return t=i,r=[{key:"TYPE_WORD",get:function(){return 1}},{key:"TYPE_CHAR",get:function(){return 2}},{key:"TYPE_NUMBER",get:function(){return 3}}],(e=null)&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r})()},{}],4:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=(t=t("./front.calculator.parser.token"))&&t.__esModule?t:{default:t};function n(t){return(n="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 a(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=n(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==n(t)?t:t+""))(i.key),i)}}r.default=(()=>{function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.input=t,this.currentPosition=0}return t=e,(r=[{key:"tokenize",value:function(){this.reset();for(var t=[],e=this.readToken();e;)t.push(e),e=this.readToken();return t}},{key:"readToken",value:function(){this.stepOverWhitespace();var t,e,r=this.readCurrent();return null===r?null:(e=t=null,e=this.isLetter(r)?(t=this.readWord(),o.default.TYPE_WORD):this.isDigit(r)||this.isPeriod(r)?(t=this.readNumber(),o.default.TYPE_NUMBER):(t=this.readChar(),o.default.TYPE_CHAR),new o.default(e,t,this.currentPosition))}},{key:"isLetter",value:function(t){return null!==t&&(65<=(t=t.charCodeAt(0))&&t<=90||97<=t&&t<=122)}},{key:"isDigit",value:function(t){return null!==t&&48<=(t=t.charCodeAt(0))&&t<=57}},{key:"isPeriod",value:function(t){return"."===t}},{key:"isWhitespace",value:function(t){return 0<=[" ","\t","\n"].indexOf(t)}},{key:"stepOverWhitespace",value:function(){for(;this.isWhitespace(this.readCurrent());)this.readNext()}},{key:"readWord",value:function(){for(var t="",e=this.readCurrent();null!==e&&this.isLetter(e);)t+=e,e=this.readNext();return t}},{key:"readNumber",value:function(){for(var t="",e=!1,r=this.readCurrent();null!==r&&(this.isPeriod(r)||this.isDigit(r));){if(this.isPeriod(r)){if(e)throw"Error: A number cannot have more than one period";e=!0}t+=r,r=this.readNext()}return t}},{key:"readChar",value:function(){var t=this.readCurrent();return this.readNext(),t}},{key:"readCurrent",value:function(){var t=null;return t=this.hasCurrent()?this.input[this.currentPosition]:t}},{key:"readNext",value:function(){return this.currentPosition++,this.readCurrent()}},{key:"hasCurrent",value:function(){return this.currentPosition(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function n(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=n(function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function")})},{}],6:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=(t=t("./front.calculator.parser.node.abstract"))&&t.__esModule?t:{default:t};function a(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function s(t,e,r){e=f(e);var i=t,e=l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function r(t){var e;if(this instanceof r)return(e=s(this,r)).childNodes=null,e.setChildNodes(t),e;throw new TypeError("Cannot call a class as a function")}var e,i=r;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&d(i,t),i=r,(t=[{key:"setChildNodes",value:function(t){t.forEach(function(t){if(!(t instanceof n.default))throw"Expected AbstractNode, but got "+t.constructor.name}),this.childNodes=t}},{key:"size",value:function(){try{return this.childNodes.length}catch(t){return 0}}},{key:"isEmpty",value:function(){return!this.size()}}])&&a(i.prototype,t),e&&a(i,e),Object.defineProperty(i,"prototype",{writable:!1}),i})(n.default)},{"./front.calculator.parser.node.abstract":5}],7:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("./front.calculator.parser.node.container"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function r(t,e){if(this instanceof r)return(t=a(this,r,[t])).symbolNode=e,t;throw new TypeError("Cannot call a class as a function")}var e,i,o=r;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&f(o,t),o=r,e&&n(o.prototype,e),i&&n(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o})(t.default)},{"./front.calculator.parser.node.container":6}],8:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(t("../../symbol/abstract/front.calculator.symbol.operator.abstract")),t=i(t("./front.calculator.parser.node.abstract"));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function s(t,e,r){e=f(e);var i=t,e=l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function i(t,e){var r;if(this instanceof i)return(r=s(this,i)).token=t,r.symbol=e,r.isUnaryOperator=!1,r;throw new TypeError("Cannot call a class as a function")}var e,r=i;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&d(r,t),r=i,(t=[{key:"setIsUnaryOperator",value:function(t){if(!(this.symbol instanceof n.default))throw"Error: Cannot mark node as unary operator, because symbol is not an operator but of type "+this.symbol.constructor.name;this.isUnaryOperator=t}}])&&a(r.prototype,t),e&&a(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r})(t.default)},{"../../symbol/abstract/front.calculator.symbol.operator.abstract":12,"./front.calculator.parser.node.abstract":5}],9:[function(t,e,r){function o(t){return(o="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 n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=(()=>{function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.identifiers=[]}return e=t,(r=[{key:"getIdentifiers",value:function(){var e=[];return this.identifiers.forEach(function(t){e.push(t.toLowerCase())}),e}}])&&n(e.prototype,r),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i})()},{}],10:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("./front.calculator.symbol.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).value=0,t;throw new TypeError("Cannot call a class as a function")}var r,i,o=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&f(o,t),o=e,r&&n(o.prototype,r),i&&n(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o})(t.default)},{"./front.calculator.symbol.abstract":9}],11:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("./front.calculator.symbol.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){if(this instanceof e)return a(this,e);throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"execute",value:function(t){return 0}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"./front.calculator.symbol.abstract":9}],12:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("./front.calculator.symbol.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).precedence=0,t.operatesUnary=!1,t.operatesBinary=!0,t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"operate",value:function(t,e){return 0}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"./front.calculator.symbol.abstract":9}],13:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=[")"],t;throw new TypeError("Cannot call a class as a function")}var r,i,o=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&f(o,t),o=e,r&&n(o.prototype,r),i&&n(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o})(t.default)},{"../abstract/front.calculator.symbol.abstract":9}],14:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["("],t;throw new TypeError("Cannot call a class as a function")}var r,i,o=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&f(o,t),o=e,r&&n(o.prototype,r),i&&n(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o})(t.default)},{"../abstract/front.calculator.symbol.abstract":9}],15:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.constant.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["pi"],t.value=Math.PI,t;throw new TypeError("Cannot call a class as a function")}var r,i,o=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&f(o,t),o=e,r&&n(o.prototype,r),i&&n(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o})(t.default)},{"../abstract/front.calculator.symbol.constant.abstract":10}],16:[function(t,e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=i(t("./front.calculator.symbol.number")),n=i(t("./front.calculator.symbol.separator")),a=i(t("./brackets/front.calculator.symbol.opening.bracket")),s=i(t("./brackets/front.calculator.symbol.closing.bracket")),l=i(t("./constants/front.calculator.symbol.constant.pi")),f=i(t("./operators/front.calculator.symbol.operator.addition")),d=i(t("./operators/front.calculator.symbol.operator.division")),u=i(t("./operators/front.calculator.symbol.operator.exponentiation")),c=i(t("./operators/front.calculator.symbol.operator.modulo")),m=i(t("./operators/front.calculator.symbol.operator.multiplication")),p=i(t("./operators/front.calculator.symbol.operator.subtraction")),h=i(t("./functions/front.calculator.symbol.function.abs")),b=i(t("./functions/front.calculator.symbol.function.avg")),g=i(t("./functions/front.calculator.symbol.function.ceil")),y=i(t("./functions/front.calculator.symbol.function.floor")),_=i(t("./functions/front.calculator.symbol.function.max")),v=i(t("./functions/front.calculator.symbol.function.min")),w=i(t("./functions/front.calculator.symbol.function.round"));function i(t){return t&&t.__esModule?t:{default:t}}function C(t){return(C="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 O(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=C(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=C(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==C(t)?t:t+""))(i.key),i)}}r.default=(()=>{function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.symbols={FrontCalculatorSymbolNumber:new o.default,FrontCalculatorSymbolSeparator:new n.default,FrontCalculatorSymbolOpeningBracket:new a.default,FrontCalculatorSymbolClosingBracket:new s.default,FrontCalculatorSymbolConstantPi:new l.default,FrontCalculatorSymbolOperatorAddition:new f.default,FrontCalculatorSymbolOperatorDivision:new d.default,FrontCalculatorSymbolOperatorExponentiation:new u.default,FrontCalculatorSymbolOperatorModulo:new c.default,FrontCalculatorSymbolOperatorMultiplication:new m.default,FrontCalculatorSymbolOperatorSubtraction:new p.default,FrontCalculatorSymbolFunctionAbs:new h.default,FrontCalculatorSymbolFunctionAvg:new b.default,FrontCalculatorSymbolFunctionCeil:new g.default,FrontCalculatorSymbolFunctionFloor:new y.default,FrontCalculatorSymbolFunctionMax:new _.default,FrontCalculatorSymbolFunctionMin:new v.default,FrontCalculatorSymbolFunctionRound:new w.default}}return e=t,(r=[{key:"find",value:function(t){for(var e in t=t.toLowerCase(),this.symbols)if(this.symbols.hasOwnProperty(e)){e=this.symbols[e];if(0<=e.getIdentifiers().indexOf(t))return e}return null}},{key:"findSubTypes",value:function(t){var e,r,i=[];for(e in this.symbols)this.symbols.hasOwnProperty(e)&&(r=this.symbols[e])instanceof t&&i.push(r);return i}}])&&O(e.prototype,r),i&&O(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i})()},{"./brackets/front.calculator.symbol.closing.bracket":13,"./brackets/front.calculator.symbol.opening.bracket":14,"./constants/front.calculator.symbol.constant.pi":15,"./front.calculator.symbol.number":17,"./front.calculator.symbol.separator":18,"./functions/front.calculator.symbol.function.abs":19,"./functions/front.calculator.symbol.function.avg":20,"./functions/front.calculator.symbol.function.ceil":21,"./functions/front.calculator.symbol.function.floor":22,"./functions/front.calculator.symbol.function.max":23,"./functions/front.calculator.symbol.function.min":24,"./functions/front.calculator.symbol.function.round":25,"./operators/front.calculator.symbol.operator.addition":26,"./operators/front.calculator.symbol.operator.division":27,"./operators/front.calculator.symbol.operator.exponentiation":28,"./operators/front.calculator.symbol.operator.modulo":29,"./operators/front.calculator.symbol.operator.multiplication":30,"./operators/front.calculator.symbol.operator.subtraction":31}],17:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("./abstract/front.calculator.symbol.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){if(this instanceof e)return a(this,e);throw new TypeError("Cannot call a class as a function")}var r,i,o=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&f(o,t),o=e,r&&n(o.prototype,r),i&&n(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o})(t.default)},{"./abstract/front.calculator.symbol.abstract":9}],18:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("./abstract/front.calculator.symbol.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=[","],t;throw new TypeError("Cannot call a class as a function")}var r,i,o=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&f(o,t),o=e,r&&n(o.prototype,r),i&&n(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o})(t.default)},{"./abstract/front.calculator.symbol.abstract":9}],19:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.function.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["abs"],t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.abs(t[0])}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.function.abstract":11}],20:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.function.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["avg"],t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"execute",value:function(t){if(t.length<1)throw"Error: Expected at least one argument, got "+t.length;for(var e=0,r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["ceil"],t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.ceil(t[0])}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.function.abstract":11}],22:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.function.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["floor"],t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.floor(t[0])}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.function.abstract":11}],23:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.function.abstract"))&&t.__esModule?t:{default:t};function n(t){return(t=>{if(Array.isArray(t))return i(t)})(t)||(t=>{if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)})(t)||((t,e)=>{var r;if(t)return"string"==typeof t?i(t,e):"Map"===(r="Object"===(r={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0})(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function s(t,e,r){e=f(e);var i=t,e=l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=s(this,e)).identifiers=["max"],t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&d(i,t),i=e,(t=[{key:"execute",value:function(t){if(t.length<1)throw"Error: Expected at least one argument, got "+t.length;return Math.max.apply(Math,n(t))}}])&&a(i.prototype,t),r&&a(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.function.abstract":11}],24:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.function.abstract"))&&t.__esModule?t:{default:t};function n(t){return(t=>{if(Array.isArray(t))return i(t)})(t)||(t=>{if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)})(t)||((t,e)=>{var r;if(t)return"string"==typeof t?i(t,e):"Map"===(r="Object"===(r={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0})(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function s(t,e,r){e=f(e);var i=t,e=l()?Reflect.construct(e,r||[],f(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=s(this,e)).identifiers=["min"],t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&d(i,t),i=e,(t=[{key:"execute",value:function(t){if(t.length<1)throw"Error: Expected at least one argument, got "+t.length;return Math.min.apply(Math,n(t))}}])&&a(i.prototype,t),r&&a(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.function.abstract":11}],25:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.function.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["round"],t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"execute",value:function(t){if(1!==t.length)throw"Error: Expected one argument, got "+t.length;return Math.round(t[0])}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.function.abstract":11}],26:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.operator.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["+"],t.precedence=100,t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"operate",value:function(t,e){return t+e}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.operator.abstract":12}],27:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.operator.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["/"],t.precedence=200,t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"operate",value:function(t,e){return t/e}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.operator.abstract":12}],28:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.operator.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["^"],t.precedence=300,t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"operate",value:function(t,e){return Math.pow(t,e)}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.operator.abstract":12}],29:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.operator.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["%"],t.precedence=200,t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"operate",value:function(t,e){return t%e}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.operator.abstract":12}],30:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.operator.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["*"],t.precedence=200,t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"operate",value:function(t,e){return t*e}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.operator.abstract":12}],31:[function(t,e,r){function o(t){return(o="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)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;t=(t=t("../abstract/front.calculator.symbol.operator.abstract"))&&t.__esModule?t:{default:t};function n(t,e){for(var r=0;r(t=((t,e)=>{if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);if("object"!=o(r=r.call(t,e||"default")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")})(t,"string"),"symbol"==o(t)?t:t+""))(i.key),i)}}function a(t,e,r){e=l(e);var i=t,e=s()?Reflect.construct(e,r||[],l(t).constructor):e.apply(t,r);if(!e||"object"!=o(e)&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=i))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}r.default=(t=>{function e(){var t;if(this instanceof e)return(t=a(this,e)).identifiers=["-"],t.precedence=100,t.operatesUnary=!0,t;throw new TypeError("Cannot call a class as a function")}var r,i=e;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");return i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&f(i,t),i=e,(t=[{key:"operate",value:function(t,e){return t-e}}])&&n(i.prototype,t),r&&n(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i})(t.default)},{"../abstract/front.calculator.symbol.operator.abstract":12}]},{},[1]),[].includes||(Array.prototype.includes=function(t,e){var r=Object(this),i=parseInt(r.length)||0;if(0!==i){var o,e=parseInt(e)||0;for(0<=e?o=e:(o=i+e)<0&&(o=0);o{var r="forminatorLoader",i={action:"",type:"",id:"",render_id:"",is_preview:"",instant_preview:"",preview_data:[],nonce:!1,last_submit_data:{},extra:{}};function e(t,e){this.element=t,this.$el=l(this.element),this.settings=l.extend({},i,e),this._defaults=i,this._name=r,this.frontInitCalled=!1,this.scriptsQue=[],this.frontOptions=null,this.leadFrontOptions=null,this.init()}l.extend(e.prototype,{init:function(){var t=decodeURI(a.location.search).replace(/(^\?)/,"").split("&").map(function(t){return this[(t=t.split("="))[0]]=t[1],this}.bind({}))[0];t.action=this.settings.action,t.type=this.settings.type,t.id=this.settings.id,t.render_id=this.settings.render_id,t.is_preview=this.settings.is_preview,t.instant_preview=this.settings.instant_preview,t.preview_data=JSON.stringify(this.settings.preview_data),t.last_submit_data=this.settings.last_submit_data,t.extra=this.settings.extra,t.nonce=this.settings.nonce,void 0!==this.settings.has_lead&&(t.has_lead=this.settings.has_lead,t.leads_id=this.settings.leads_id),this.load_ajax(t),this.handleDiviPopup()},load_ajax:function(o){var n=this;l.ajax({type:"POST",url:f.ForminatorFront.ajaxUrl,data:o,cache:!1,beforeSend:function(){l(a).trigger("before.load.forminator",o.id)},success:function(t){if(t.success){var e=t.data;if(l(a).trigger("response.success.load.forminator",o.id,t),!e.is_ajax_load)return!1;var r,i=[];(i=void 0===e.pagination_config&&void 0!==e.options.pagination_config?e.options.pagination_config:i)&&(f.Forminator_Cform_Paginations=f.Forminator_Cform_Paginations||[],f.Forminator_Cform_Paginations[o.id]=i),n.frontOptions=e.options||null,void 0===f.Forminator_Cform_Paginations&&n.frontOptions.pagination_config&&(f.Forminator_Cform_Paginations=f.Forminator_Cform_Paginations||[],f.Forminator_Cform_Paginations[o.id]=n.frontOptions.pagination_config),void 0!==e.lead_options&&(n.leadFrontOptions=e.lead_options||null,void 0===f.Forminator_Cform_Paginations)&&n.leadFrontOptions.pagination_config&&(f.Forminator_Cform_Paginations=f.Forminator_Cform_Paginations||[],f.Forminator_Cform_Paginations[o.leads_id]=n.leadFrontOptions.pagination_config),e.html&&(i=e.style||null,r=e.script||null,n.render_html(e.html,i,r)),e.styles&&n.maybe_append_styles(e.styles),e.scripts&&n.maybe_append_scripts(e.scripts),!e.scripts&&n.frontOptions&&n.init_front()}else l(a).trigger("response.error.load.forminator",o.id,t)},error:function(){l(a).trigger("request.error.load.forminator",o.id)}}).always(function(){l(a).trigger("after.load.forminator",o.id)})},render_html:function(t,e,r){var i=this.settings.id,o=this.settings.render_id,n="",a=null,a=((a=l(t).find(".forminator-response-message")).length&&(n=a.get(0).outerHTML),(a=this.$el.find(".forminator-poll-response-message")).length&&(n=a.get(0).outerHTML),this.$el.parent().hasClass("forminator-guttenberg")?this.$el.parent().html(t):this.$el.replaceWith(t),l("#forminator-module-"+i+"[data-forminator-render="+o+"]"));a.hide(),this.$el.parent().has("#forminator-instant-preview")||a.hide(),n&&(l("#forminator-module-"+i+"[data-forminator-render="+o+"] .forminator-response-message").replaceWith(n),l("#forminator-module-"+i+"[data-forminator-render="+o+"] .forminator-poll-response-message").replaceWith(n)),e&&(l("style#forminator-module-styles-"+i).length&&l("style#forminator-module-styles-"+i).remove(),l("body").append(e)),r&&l("body").append(r)},maybe_append_styles:function(t){for(var e in t){var r;t.hasOwnProperty(e)&&!l("link#"+e).length&&((r=l("")).attr("rel","stylesheet"),r.attr("id",e),r.attr("type","text/css"),r.attr("media","all"),r.attr("href",t[e].src),l("head").append(r))}},maybe_append_scripts:function(t){var e,r=[],i=l("body").find(".hustle-ui").length,o=l("body").find("script[src^='https://www.paypal.com/sdk/js']").attr("src");for(e in t)if(t.hasOwnProperty(e)){var n=t[e].on,a=t[e].load;if("window"===n){if(f[a]&&"forminator-google-recaptcha"!==e&&0===i)continue}else if("$"===n&&l.fn[a])continue;n={};n.src=t[e].src,n.async=t[e].async??!0,n.src!==o&&(r.push(n),this.scriptsQue.push(e))}if(this.scriptsQue.length)for(var s in r)r.hasOwnProperty(s)&&this.load_script(r[s]);else this.init_front()},load_script:function(t){var e,r=this,i=a.createElement("script"),o=a.getElementsByTagName("body")[0];i.type="text/javascript",i.src=t.src,i.async=t.async,i.defer=!0,i.onload=function(){r.script_on_load()},0===l('script[src="'+i.src+'"]').length?f.parent!==f&&t.src.includes("paypal.com")?((e=f.parent.document.createElement("script")).type="text/javascript",e.src=t.src,e.async=t.async,e.defer=!0,e.onload=function(){r.script_on_load()},0===l(f.parent.document).find('script[src="'+e.src+'"]').length?f.parent.document.body.appendChild(e):r.script_on_load()):o.appendChild(i):r.script_on_load()},script_on_load:function(){this.scriptsQue.pop(),this.scriptsQue.length||this.init_front()},init_front:function(){var t,e,r,i;this.frontInitCalled||(this.frontInitCalled=!0,i=this.settings.id,t=this.settings.render_id,e=this.frontOptions||null,r=this.leadFrontOptions||null,e&&l("#forminator-module-"+i+'[data-forminator-render="'+t+'"]').forminatorFront(e),void 0!==this.settings.has_lead&&r&&(i=this.settings.leads_id,l("#forminator-module-"+i+'[data-forminator-render="'+t+'"]').forminatorFront(r)),this.init_window_vars())},init_window_vars:function(){var t;"undefined"!=typeof ForminatorValidationErrors&&void 0!==(t=jQuery(ForminatorValidationErrors.selector).data("forminatorFrontSubmit"))&&t.show_messages(ForminatorValidationErrors.errors),"undefined"!=typeof ForminatorFormHider&&void 0!==(t=jQuery(ForminatorFormHider.selector).data("forminatorFront"))&&t.hide()},handleDiviPopup:function(){var e=this;"undefined"!=typeof DiviArea&&DiviArea.addAction("show_area",function(t){0!==t.find("#"+e.element.id).length&&(e.frontInitCalled=!1,e.init_front(),forminator_render_hcaptcha())})}}),l.fn[r]=function(t){return this.each(function(){l.data(this,r)||l.data(this,r,new e(this,t))})}})(jQuery,window,document),((s,l)=>{var r="forminatorFrontStripe",i={type:"stripe",paymentEl:null,paymentRequireSsl:!1,generalMessages:{}};function e(t,e){this.element=t,this.$el=s(this.element),this.settings=s.extend({},i,e),this._defaults=i,this._name=r,this._stripeData=null,this._stripe=null,this._elements=null,this._paymentElement=null,this._beforeSubmitCallback=null,this._form=null,this.intent=!0,this.billingDetails={},this.init()}s.extend(e.prototype,{init:function(){var i,t;this.settings.paymentEl&&void 0!==this.settings.paymentEl.data()&&((i=this)._stripeData=this.settings.paymentEl.data(),this._form=this.$el,0{i.intent=!1,i._beforeSubmitCallback=r;r=(await this._elements.submit()).error;r?void 0!==r.message&&i.show_error(r.message):"blik"===i._stripeData.paymentMethodType?i.updateAmount():i._stripe.createPaymentMethod({elements:i._elements,params:{billing_details:this.billingDetails}}).then(function(t){var e;t.error?(e=t.error.message||l.ForminatorFront.cform.payment_failed,i.show_error(e)):(e=i.getObjectValue(t,"paymentMethod"),i._stripeData.paymentMethod=i.getObjectValue(e,"id"),i._stripeData.paymentMethodType=i.getObjectValue(e,"type"),i.$el.find("#forminator-stripe-paymentmethod").val(""),i.$el.find("#forminator-stripe-subscriptionid").val(""),i.updateAmount())})}),this.$el.on("forminator:form:submit:stripe:3dsecurity",function(t,e,r){i.validate3d(t,e,r)}),this.$el.on("forminator:form:submit:stripe:redirect",this.paymentMethodRedirect.bind(this)),this.$el.find("input.forminator-input, select.forminator-select2").each(function(){s(this).on("change",function(t,e){if("forminator_emulate_trigger"===e)return!0;i.updateBillingDetails(t)})}))},paymentMethodRedirect:function(t,e,r,i){var o=this;o.$el.find("#forminator-stripe-subscriptionid").val(i);let n=l.open(e,"PaymentMethodPopup","width=800,height=600,scrollbars=yes"),a=setInterval(async()=>{var{error:t,paymentIntent:e}=await o._stripe.retrievePaymentIntent(r);if(t)clearInterval(a);else if("requires_capture"===e.status||"succeeded"===e.status)clearInterval(a),n.close(),o._beforeSubmitCallback&&o._beforeSubmitCallback.call();else if("requires_payment_method"===e.status||"canceled"===e.status){let t="";t="canceled"===e.status?l.ForminatorFront.cform.payment_cancelled:l.ForminatorFront.cform.payment_failed,clearInterval(a),n.close(),o.$el.find("#forminator-stripe-paymentmethod").val(""),o.show_error(t)}},3e3)},validate3d:function(t,e,r){var i=this;r?this._stripe.confirmPayment({clientSecret:e,elements:i._elements,redirect:"if_required",confirmParams:{return_url:this.getStripeData("returnUrl")}}).then(function(t){i.$el.find("#forminator-stripe-subscriptionid").val(r),i._beforeSubmitCallback&&i._beforeSubmitCallback.call()}):this._stripe.retrievePaymentIntent(e).then(function(t){!["requires_action","requires_confirmation","requires_source_action"].includes(t.paymentIntent.status)&&"blik"!==i.getStripeData("paymentMethodType")||i._stripe.confirmPayment({clientSecret:e,elements:i._elements,redirect:"if_required"}).then(function(t){t.error?i.show_error(t.error.message):i._beforeSubmitCallback&&i._beforeSubmitCallback.call()})})},getForm:function(t){t=s(t.target);return t=t.hasClass("forminator-custom-form")?t:t.closest("form.forminator-custom-form")},updateAmount:function(t){t&&t.preventDefault();var t=new FormData(this.$el[0]),i=this,r=new FormData,t=(t.forEach(function(t,e){"action"!==e&&r.append(e,t)}),r.append("action","forminator_update_payment_amount"),r.append("paymentPlan",this.getStripeData("paymentPlan")),r.append("payment_method",this.getStripeData("paymentMethod")),r.append("payment_method_type",this.getStripeData("paymentMethodType")),r.append("paymentid",""),this.intent&&(r.append("stripe-intent",!0),r.append("stripe_first_payment_intent",this._paymentElement?0:1)),this.getStripeData("receipt")),e=this.getStripeData("receiptEmail"),o=(t&&e&&(t=this.get_field_value(e)||"",r.append("receipt_email",t)),this._form.find(".forminator-response-message"));s.ajax({type:"POST",url:l.ForminatorFront.ajaxUrl,data:r,cache:!1,contentType:!1,processData:!1,beforeSend:function(){void 0!==i.settings.has_loader&&i.settings.has_loader&&!i.intent&&(o.html("