var RedNaoFormulaParser=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=804)}({100:function(e,t){e.exports=RedNaoFormBuilder.default("FormBuilder/Fields/Core/FBMultipleOptionsBase.Model")},1125:function(e,t,r){var n={"./Core/MethodDictionary.tsx":608,"./Core/ParseFactory.ts":89,"./Core/ParserElementBase.ts":87,"./Core/ParserElementThatUsesFieldsBase.ts":522,"./Elements/Math/ParseMathFunction.ts":697,"./Elements/Operations/Arithmetical/ParseArithmetical.ts":696,"./Elements/Operations/Logica/ParseComparator.ts":701,"./Elements/Operations/Logica/ParseCondition.ts":702,"./Elements/Operations/Logica/ParseConditionSentence.ts":700,"./Elements/Operations/Logica/ParseNegation.ts":705,"./Elements/ParseArray.ts":704,"./Elements/ParseArrayItem.ts":712,"./Elements/ParseBlock.ts":706,"./Elements/ParseDeclaration.ts":707,"./Elements/ParseMain.ts":692,"./Elements/ParseParenthesis.ts":699,"./Elements/ParseReturn.ts":404,"./Elements/ParseSentence.ts":698,"./Elements/Scalars/ParseField.ts":703,"./Elements/Scalars/ParseFixed.ts":709,"./Elements/Scalars/ParseFunc.ts":710,"./Elements/Scalars/ParseMethod.ts":711,"./Elements/Scalars/ParseVariable.ts":708,"./Elements/Scalars/ParserBoolean.ts":694,"./Elements/Scalars/ParserNumber.ts":693,"./Elements/Scalars/ParserString.ts":695,"./FormulaParser.ts":804};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id=1125},2:function(e,t){e.exports=RedNaoSharedCore.default("shared/core/Events/EventManager")},3:function(e,t){e.exports=RedNaoFormBuilder.default("FormBuilder/Fields/Core/FBFieldBase.options")},404:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseReturn",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Sentence=void 0,n.Sentence=o.ParseFactory.GetParseElement(c(n),r.Sentence),n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return this.Sentence.Parse()}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},419:function(e,t){e.exports=RedNaoFormBuilder.default("FormBuilder/Events/CalculateFormula")},522:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.r(t),r.d(t,"ParserElementThatUsesFieldsBase",(function(){return s}));var s=function(e){function t(){return o(this,t),a(this,u(t).apply(this,arguments))}var r,n,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,e),r=t,(n=[{key:"GetPriceFromField",value:function(e){return e.IsPriceField&&this.GetMain().Owner==e?e.GetPriceWithoutFormula():e.GetPrice()}}])&&i(r.prototype,n),s&&i(r,s),t}(r(87).ParserElementBase)},608:function(e,t,r){"use strict";r.r(t),r.d(t,"MethodDictionary",(function(){return i}));var n=r(88);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,i;return t=e,i=[{key:"GetNumber",value:function(e){if(null==e)return 0;if(e instanceof n.FBFieldBaseModel)return e.GetPrice();var t=Number(e);return isNaN(t)?0:t}},{key:"GetText",value:function(e){return null==e?"":e instanceof n.FBFieldBaseModel?e.ToText():e.toString()}},{key:"Round",value:function(t,r){return e.GetNumber(t).toFixed(e.GetNumber(r))}},{key:"Ceil",value:function(t){return Math.ceil(e.GetNumber(t))}},{key:"Floor",value:function(t){return Math.floor(e.GetNumber(t))}}],(r=null)&&o(t.prototype,r),i&&o(t,i),e}()},692:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseMain",(function(){return b}));var n=r(89),o=r(88),i=r(522),a=r(404);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?y(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(e,r){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(c(this,t),(o=f(this,l(t).call(this,null,r))).FieldList=e,o.Sentences=void 0,o.ExecutionChain=void 0,o.Owner=void 0,o.Variables=void 0,o.FixedValueRetriever=void 0,o.FixedValueRetriever=u,o.Owner=i,o.ExecutionChain=a,o.Sentences=[],o.Variables=[],o.Data.length>0){var s=!0,p=!1,b=void 0;try{for(var h,m=o.Data[0].Sentences[Symbol.iterator]();!(s=(h=m.next()).done);s=!0){var v=h.value;o.Sentences.push(n.ParseFactory.GetParseElement(y(o),v))}}catch(e){p=!0,b=e}finally{try{s||null==m.return||m.return()}finally{if(p)throw b}}}return o}var r,i,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),r=t,(i=[{key:"InternalParse",value:function(){var e=null,t=!0,r=!1,n=void 0;try{for(var o,i=this.Sentences[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var u=o.value;if(u instanceof a.ParseReturn)return u.Parse();var c=u.Parse();if(c instanceof a.ParseReturn)return c.Parse();null!==c&&(e=c)}}catch(e){r=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(r)throw n}}return e}},{key:"Parse",value:function(){var e=this,t=this.InternalParse();return Array.isArray(t)?t.reduce((function(t,r){return t+e.ParseSingleNumber(r)}),0):this.ParseSingleNumber(t)}},{key:"ParseSingleNumber",value:function(e){if(null==e)return 0;if(e instanceof o.FBFieldBaseModel)return this.GetPriceFromField(e);var t=parseFloat(e);return isNaN(t)?0:t}},{key:"ParseText",value:function(){var e=this,t=this.InternalParse();return Array.isArray(t)?t.map((function(t){return e.ParseSingleText(t)})).join(", "):this.ParseSingleText(t)}},{key:"ParseSingleText",value:function(e){return null==e?"":e instanceof o.FBFieldBaseModel?e.GetText():e.toString()}},{key:"SetVariable",value:function(e,t){var r=this.Variables.find((function(t){return t.Name==e}));null==r&&(r={Name:e,Value:null},this.Variables.push(r)),r.Value=t}},{key:"GetVariable",value:function(e){var t;return"Math"==e?Math:null===(t=this.Variables.find((function(t){return t.Name==e})))||void 0===t?void 0:t.Value}}])&&s(r.prototype,i),u&&s(r,u),t}(i.ParserElementThatUsesFieldsBase)},693:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.r(t),r.d(t,"ParserNumber",(function(){return c}));var c=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,a(t).call(this,e,r))}var r,n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return parseFloat(this.Data.d)}}])&&o(r.prototype,n),c&&o(r,c),t}(r(87).ParserElementBase)},694:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.r(t),r.d(t,"ParserBoolean",(function(){return c}));var c=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,a(t).call(this,e,r))}var r,n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return this.Data.Value}}])&&o(r.prototype,n),c&&o(r,c),t}(r(87).ParserElementBase)},695:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.r(t),r.d(t,"ParserString",(function(){return c}));var c=function(e){function t(e,r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,a(t).call(this,e,r))}var r,n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return this.Data.Text}}])&&o(r.prototype,n),c&&o(r,c),t}(r(87).ParserElementBase)},696:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseArithmetical",(function(){return f}));var n=r(89),o=r(88);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var o,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(o=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Left=void 0,o.Right=void 0,o.Left=n.ParseFactory.GetParseElement(c(o),o.Data.Left),o.Right=n.ParseFactory.GetParseElement(c(o),o.Data.Right),o}var r,f,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(f=[{key:"Parse",value:function(){switch(this.Data.type){case"MUL":return this.GetScalarOrPrice(this.Left.Parse())*this.GetScalarOrPrice(this.Right.Parse());case"ADD":var e=this.ToScalar(this.Left.Parse()),t=this.ToScalar(this.Right.Parse());return e instanceof o.FBFieldBaseModel&&(e="string"==typeof t?e.ToText():this.GetScalarOrPrice(e)),t instanceof o.FBFieldBaseModel&&(t="string"==typeof e?t.ToText():this.GetScalarOrPrice(t)),e+t;case"SUB":return this.GetScalarOrPrice(this.ToScalar(this.Left.Parse()))-this.GetScalarOrPrice(this.ToScalar(this.Right.Parse()));case"DIV":return 0==this.GetScalarOrPrice(this.ToScalar(this.Right.Parse()))?0:this.GetScalarOrPrice(this.ToScalar(this.Left.Parse()))/this.GetScalarOrPrice(this.ToScalar(this.Right.Parse()))}}},{key:"GetScalarOrPrice",value:function(e){return e instanceof o.FBFieldBaseModel?this.GetPriceFromField(e):e}},{key:"ToScalar",value:function(e){return Array.isArray(e)?e.reduce((function(e,t){return e+t}),0):e}}])&&a(r.prototype,f),l&&a(r,l),t}(r(522).ParserElementThatUsesFieldsBase)},697:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseMathFunction",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Child=void 0,null!=n.Data.d&&(n.Child=o.ParseFactory.GetParseElement(c(n),n.Data.d)),n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){switch(this.Data.op){case"SIN":return Math.sin(this.Child.Parse());case"COS":return Math.cos(this.Child.Parse());case"TAN":return Math.tan(this.Child.Parse());case"ASIN":return Math.asin(this.Child.Parse());case"ATAN":return Math.atan(this.Child.Parse());case"ACOS":return Math.acos(this.Child.Parse());case"SQRT":return Math.sqrt(this.Child.Parse());case"LN":return Math.log(this.Child.Parse());case"PI":return 3.14159265359;case"E":return 2.718281828459045}}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},698:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseSentence",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Sentence=void 0,n.Next=void 0,n.Sentence=o.ParseFactory.GetParseElement(c(n),n.Data.Sentence),null!=n.Data.Next&&(n.Next=o.ParseFactory.GetParseElement(c(n),n.Data.Next)),n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return this.Sentence.Parse()}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},699:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseParenthesis",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Args=void 0,n.Args=[];var f=!0,l=!1,y=void 0;try{for(var p,b=n.Data.Args[Symbol.iterator]();!(f=(p=b.next()).done);f=!0){var h=p.value;n.Args.push(o.ParseFactory.GetParseElement(c(n),h))}}catch(e){l=!0,y=e}finally{try{f||null==b.return||b.return()}finally{if(l)throw y}}return n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return 0==this.Args.length?null:this.Args[0].Parse()}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},700:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseConditionSentence",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Condition=void 0,n.Result=void 0,n.Condition=o.ParseFactory.GetParseElement(c(n),r.Condition),n.Result=o.ParseFactory.GetParseElement(c(n),r.Result),n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return!0===this.Condition.Parse()?this.Result.Parse():null}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},701:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseComparator",(function(){return y}));var n=r(89),o=r(88),i=r(522),a=r(100);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){function t(e,r){var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,(o=!(a=s(t).call(this,e,r))||"object"!==u(a)&&"function"!=typeof a?f(i):a).Left=void 0,o.Right=void 0,o.Left=n.ParseFactory.GetParseElement(f(o),r.Left),o.Right=n.ParseFactory.GetParseElement(f(o),r.Right),o}var r,i,y;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),r=t,(i=[{key:"Parse",value:function(){var e=this.Data.operator;if(null==this.Right)return 1==this.Left.Parse();var t=this.Left.Parse(),r=this.Right.Parse(),n=this.Left.Parse(),i=this.Right.Parse();switch(n instanceof o.FBFieldBaseModel&&(n="string"==typeof i?n.ToText():this.GetPriceFromField(n)),i instanceof o.FBFieldBaseModel&&(i="string"==typeof n?i.ToText():this.GetPriceFromField(i)),e){case"==":return n==i;case"!=":return n!=i;case">":return n>i;case">=":return n>=i;case"<":return n<i;case"<=":return n<=i;case"contains":case"not contains":var c=n,s=i;if(t instanceof a.FBMultipleOptionsBaseModel&&(c=t.GetSelectedOptions().map((function(e){return e.Label}))),r instanceof a.FBMultipleOptionsBaseModel&&(s=r.GetSelectedOptions().map((function(e){return e.Label}))),!Array.isArray(c)&&!Array.isArray(s)){t instanceof o.FBFieldBaseModel&&(c=t.ToText()),r instanceof o.FBFieldBaseModel&&(s=r.ToText());var f=c.toLowerCase().indexOf(s.toLowerCase())>=0;return"contains"==e?f:!f}Array.isArray(s)||(s=[s]),Array.isArray(c)||(c=[c]);for(var l=0;l<c.length;l++)c[l]instanceof o.FBFieldBaseModel&&(c[l]=this.GetPriceFromField(c[l]));for(var y=0;y<s.length;y++)s[y]instanceof o.FBFieldBaseModel&&(s[y]=this.GetPriceFromField(s[y]));if("contains"==e){var p=!0,b=!1,h=void 0;try{for(var m,v=function(){var e=m.value;if(c.some((function(t){return t==e})))return{v:!0}},P=s[Symbol.iterator]();!(p=(m=P.next()).done);p=!0){var d=v();if("object"===u(d))return d.v}}catch(e){b=!0,h=e}finally{try{p||null==P.return||P.return()}finally{if(b)throw h}}return!1}if("not contains"==e){var O=!0,w=!1,S=void 0;try{for(var g,_=function(){var e=g.value;if(c.some((function(t){return t==e})))return{v:!1}},j=s[Symbol.iterator]();!(O=(g=j.next()).done);O=!0){var E=_();if("object"===u(E))return E.v}}catch(e){w=!0,S=e}finally{try{O||null==j.return||j.return()}finally{if(w)throw S}}return!0}}}}])&&c(r.prototype,i),y&&c(r,y),t}(i.ParserElementThatUsesFieldsBase)},702:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseCondition",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Comparator=void 0,n.Next=void 0,n.Operation=void 0,n.Operation=r.Operation,n.Comparator=o.ParseFactory.GetParseElement(c(n),r.Comparator),n.Next=o.ParseFactory.GetParseElement(c(n),r.Next),n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){var e=1==this.Comparator.Parse();if(null==this.Next)return e;var t=1==this.Next.Parse();return"&&"==this.Operation?e&&t:e||t}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},703:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.r(t),r.d(t,"ParseField",(function(){return c}));var c=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=i(this,a(t).call(this,e,r))).FieldId=void 0,n.Field=void 0,n.FieldId=n.Data.Id,n.Field=n.GetMain().FieldList.find((function(e){return e.Options.Id==n.FieldId})),n}var r,n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return null==this.Field?0:this.Field}}])&&o(r.prototype,n),c&&o(r,c),t}(r(87).ParserElementBase)},704:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseArray",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Elements=void 0,n.Elements=[];var f=!0,l=!1,y=void 0;try{for(var p,b=n.Data.Elements[Symbol.iterator]();!(f=(p=b.next()).done);f=!0){var h=p.value;n.Elements.push(o.ParseFactory.GetParseElement(c(n),h).Parse())}}catch(e){l=!0,y=e}finally{try{f||null==b.return||b.return()}finally{if(l)throw y}}return n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return this.Elements}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},705:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseNegation",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Child=void 0,n.Child=o.ParseFactory.GetParseElement(c(n),r.Child),n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return!this.Child.Parse()}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},706:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseBlock",(function(){return l}));var n=r(87),o=r(89),i=r(404);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(e,r){var n,i,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,(n=!(u=c(t).call(this,e,r))||"object"!==a(u)&&"function"!=typeof u?s(i):u).Sentences=void 0,n.Sentences=[];var f=!0,l=!1,y=void 0;try{for(var p,b=r.Sentences[Symbol.iterator]();!(f=(p=b.next()).done);f=!0){var h=p.value;n.Sentences.push(o.ParseFactory.GetParseElement(s(n),h))}}catch(e){l=!0,y=e}finally{try{f||null==b.return||b.return()}finally{if(l)throw y}}return n}var r,n,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){var e=null,t=!0,r=!1,n=void 0;try{for(var o,a=this.Sentences[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var u=o.value;if(u instanceof i.ParseReturn)return u;var c=u.Parse();if(c instanceof i.ParseReturn)return c;null!=c&&(e=c)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return e}}])&&u(r.prototype,n),l&&u(r,l),t}(n.ParserElementBase)},707:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseDeclaration",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).VariableName=void 0,n.Assignment=void 0,n.VariableName=n.Data.Name,n.Assignment=o.ParseFactory.GetParseElement(c(n),n.Data.Assignment),n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){var e=this.Assignment.Parse();return this.GetMain().SetVariable(this.VariableName,e),e}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},708:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.r(t),r.d(t,"ParseVariable",(function(){return c}));var c=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=i(this,a(t).call(this,e,r))).VariableName=void 0,n.VariableName=r.d,n}var r,n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){return this.GetMain().GetVariable(this.VariableName)}}])&&o(r.prototype,n),c&&o(r,c),t}(r(87).ParserElementBase)},709:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseFixed",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Config=null;var f=o.ParseFactory.GetParseElement(c(n),r.d).Parse();return n.Config=JSON.parse(f),n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){if(null!=this.GetMain().FixedValueRetriever){var e=this.GetMain().FixedValueRetriever(this.Config);if(null!==e)return e}return null==this.GetMain().Owner?null:this.GetMain().Owner.GetFixedValue(this.Config)}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},710:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseFunc",(function(){return l}));var n=r(87),o=r(89),i=r(608);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(e,r){var n,i,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,(n=!(u=c(t).call(this,e,r))||"object"!==a(u)&&"function"!=typeof u?s(i):u).Method=void 0,n.Args=void 0,n.Args=[],n.Method=n.Data.Method;var f=!0,l=!1,y=void 0;try{for(var p,b=r.Args[Symbol.iterator]();!(f=(p=b.next()).done);f=!0){var h=p.value;n.Args.push(o.ParseFactory.GetParseElement(s(n),h))}}catch(e){l=!0,y=e}finally{try{f||null==b.return||b.return()}finally{if(l)throw y}}return n}var r,n,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){if(null!=i.MethodDictionary[this.Method])return i.MethodDictionary[this.Method].apply(this,this.Args.map((function(e){return e.Parse()})));if(null!=Window[this.Method])return Window[this.Method].apply(this,this.Args.map((function(e){return e.Parse()})));throw new Error("Invalid function used "+this.Method)}}])&&u(r.prototype,n),l&&u(r,l),t}(n.ParserElementBase)},711:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseMethod",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Name=void 0,n.Args=void 0,n.Object=void 0,n.ObjectInstance=void 0,n.InstanceToUse=void 0,n.Args=[],n.Name=r.Name,n.Object=o.ParseFactory.GetParseElement(c(n),r.Object),n.ObjectInstance=n.Object.Parse(),null!=r.Args){var f=!0,l=!1,y=void 0;try{for(var p,b=r.Args[Symbol.iterator]();!(f=(p=b.next()).done);f=!0){var h=p.value;n.Args.push(o.ParseFactory.GetParseElement(c(n),h))}}catch(e){l=!0,y=e}finally{try{f||null==b.return||b.return()}finally{if(l)throw y}}}return n.GetNameToUse(),n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"GetNameToUse",value:function(){var e=this.Name;return null==this.ObjectInstance||void 0===this.ObjectInstance[e]&&(e="Get"+e),e}},{key:"Parse",value:function(){return null==this.ObjectInstance||null==this.ObjectInstance[this.GetNameToUse()]?null:"function"==typeof this.ObjectInstance[this.GetNameToUse()]?this.ObjectInstance[this.GetNameToUse()].apply(this.ObjectInstance,this.Args.map((function(e){return e.Parse()}))):this.ObjectInstance[this.GetNameToUse()]}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},712:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseArrayItem",(function(){return f}));var n=r(87),o=r(89);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(e,r){var n,a,s;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,(n=!(s=u(t).call(this,e,r))||"object"!==i(s)&&"function"!=typeof s?c(a):s).Array=void 0,n.Index=void 0,n.Array=o.ParseFactory.GetParseElement(c(n),r.Array),n.Index=Number(r.Index),isNaN(n.Index))throw new Error("Invalid Index");return n}var r,n,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),r=t,(n=[{key:"Parse",value:function(){var e=this.Array.Parse();return Array.isArray(e)?null==e[this.Index]?null:e[this.Index]:null}}])&&a(r.prototype,n),f&&a(r,f),t}(n.ParserElementBase)},804:function(e,t,r){"use strict";r.r(t);var n,o,i=r(2),a=r(419),u=r(692),c=r(3);try{n=r(1125),o={};var s=!0,f=!1,l=void 0;try{for(var y,p=n.keys()[Symbol.iterator]();!(s=(y=p.next()).done);s=!0){var b=y.value;o[b.substring(0,b.lastIndexOf("."))]=b}}catch(e){f=!0,l=e}finally{try{s||null==p.return||p.return()}finally{if(f)throw l}}}catch(e){}t.default=function(e){if(e="./"+e.substring(14),null==o[e])throw"Library not found "+e;return n(o[e])},i.EventManager.Subscribe(a.CalculateFormula,(function(e){if(null!=e.Formula.Compiled){var t=new u.ParseMain(e.FieldList,e.Formula.Compiled,e.Owner,e.Chain,e.FixedValueRetriever);try{return e.Formula.PreferredReturnType==c.PreferredReturnType.Price?t.Parse():t.ParseText()}catch(e){return console.log(e),0}}else console.log("Formula is not compiled",e)}))},87:function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.r(t),r.d(t,"ParserElementBase",(function(){return o}));var o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.Parent=t,this.Data=r}var t,r,o;return t=e,(r=[{key:"GetMain",value:function(){return null==this.Parent?this:this.Parent.GetMain()}}])&&n(t.prototype,r),o&&n(t,o),e}()},88:function(e,t){e.exports=RedNaoFormBuilder.default("FormBuilder/Fields/Core/FBFieldBase.Model")},89:function(e,t,r){"use strict";r.r(t),r.d(t,"ParseFactory",(function(){return j}));var n=r(693),o=r(694),i=r(695),a=r(696),u=r(697),c=r(698),s=r(699),f=r(700),l=r(701),y=r(702),p=r(703),b=r(704),h=r(705),m=r(706),v=r(707),P=r(404),d=r(708),O=r(709),w=r(710),S=r(711),g=r(712);function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var j=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,j;return t=e,j=[{key:"GetParseElement",value:function(e,t){if(null==t)return null;switch(t.type){case"NUMBER":return new n.ParserNumber(e,t);case"BOOLEAN":return new o.ParserBoolean(e,t);case"STRING":return new i.ParserString(e,t);case"MATH":return new u.ParseMathFunction(e,t);case"MUL":case"ADD":case"SUB":case"DIV":return new a.ParseArithmetical(e,t);case"SENTENCE":return new c.ParseSentence(e,t);case"P":return new s.ParseParenthesis(e,t);case"CONDSENTENCE":return new f.ParseConditionSentence(e,t);case"COMPARATOR":return new l.ParseComparator(e,t);case"CONDITION":return new y.ParseCondition(e,t);case"FIELD":return new p.ParseField(e,t);case"ARR":return new b.ParseArray(e,t);case"NEGATION":return new h.ParseNegation(e,t);case"BLOCK":return new m.ParseBlock(e,t);case"DECLARATION":return new v.ParseDeclaration(e,t);case"RETURN":return new P.ParseReturn(e,t);case"VARIABLE":return new d.ParseVariable(e,t);case"FIXED":return new O.ParseFixed(e,t);case"FUNC":return new w.ParseFunc(e,t);case"METHOD":return new S.ParseMethod(e,t);case"ARRITEM":return new g.ParseArrayItem(e,t);default:throw Error("Invalid token "+t.type)}}}],(r=null)&&_(t.prototype,r),j&&_(t,j),e}()}});