Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. define("modules/Nutrients/lib/NutrientsNormItem", ["require", "exports", "lodash", "modules/Utils/lib/Utils"], function(e, t, r, o) {
  2.     "use strict";
  3.     Object.defineProperty(t, "__esModule", {
  4.         value: !0
  5.     });
  6.     var n = function() {
  7.         function e(e, t, r, o) {
  8.             void 0 === e && (e = 0), void 0 === t && (t = -1), void 0 === r && (r = -1), void 0 === o && (o = !1), this.norm = 0, this.normFrom = 0, this.normTo = 0, this.userSet = !1, this.extraNorm = 0, this.norm = e, this.normFrom = t, -1 == this.normFrom && (this.normFrom = this.norm), this.normTo = r, -1 == this.normTo && (this.normTo = this.norm), this.userSet = o
  9.         }
  10.         return e.prototype.isSetNorm = function() {
  11.             return 0 !== this.norm || 0 !== this.normFrom || 0 !== this.normTo
  12.         }, e.prototype.isMaxNorm = function() {
  13.             return !0 === this.isSetNorm() && !0 === this.isCorridor() && 0 === this.normFrom && this.normTo > 0
  14.         }, e.prototype.isMinNorm = function() {
  15.             return !0 === this.isSetNorm() && !0 === this.isCorridor() && 0 === this.normTo && this.normFrom > 0
  16.         }, e.prototype.inCorridor = function(e, t) {
  17.             return void 0 === t && (t = 0), !0 === this.isCorridor() ? e >= this.normFrom && e <= this.normTo || t > 0 && e >= this.normFrom - this.normFrom / 100 * t && e <= this.normTo + this.normTo / 100 * t : e === this.norm || t > 0 && e >= this.norm - this.norm / 100 * t && e <= this.norm + this.norm / 100 * t
  18.         }, e.prototype.isCorridor = function() {
  19.             return this.normFrom !== this.normTo
  20.         }, e.prototype.normS = function() {
  21.             return !1 === this.isSetNorm() ? "~" : !1 === this.isCorridor() ? "" + this.norm : !0 === this.isMaxNorm() ? "max " + this.normTo : !0 === this.isMinNorm() ? "min " + this.normFrom : "от " + this.normFrom + " до " + this.normTo
  22.         }, e.prototype.add = function(e) {
  23.             this.norm = r.round(this.norm + e.norm, 6), this.normFrom = r.round(this.normFrom + e.normFrom, 6), this.normTo = r.round(this.normTo + e.normTo, 6), this.extraNorm = r.round(this.extraNorm + e.extraNorm, 6), !0 === e.userSet && (this.userSet = !0)
  24.         }, e.prototype.addExtraNorm = function(e) {
  25.             this.norm = this.norm + e, this.normFrom = this.normFrom + e, this.normTo = this.normTo + e, this.extraNorm = this.extraNorm + e
  26.         }, e.prototype.percent = function(e, t) {
  27.             return e = e || 0, t = t || 2, 0 === e ? 0 : !1 === this.isSetNorm() ? 0 : !0 === this.isMaxNorm() ? r.round(e / this.normTo * 100, t) : this.isMinNorm() ? r.round(e / this.normFrom * 100, t) : !0 === this.isCorridor() ? this.inCorridor(e) ? 100 : e >= this.normTo ? 0 === this.normTo ? 0 : r.round(e / this.normTo * 100, t) : 0 === this.normFrom ? 0 : r.round(e / this.normFrom * 100, t) : 0 === this.norm ? 0 : r.round(e / this.norm * 100, t)
  28.         }, e.prototype.toObject = function() {
  29.             var e = {
  30.                 n: this.norm
  31.             };
  32.             return this.norm != this.normFrom && (e.f = this.normFrom), this.normFrom != this.normTo && (e.t = this.normTo), this.userSet && (e.u = 1), e
  33.         }, e.fromObject = function(t) {
  34.             void 0 === t && (t = {});
  35.             var r = o.toNumber(t.n, 0),
  36.                 n = o.toNumber(t.f, -1),
  37.                 i = o.toNumber(t.t, -1);
  38.             return 0 == n && -1 == i && (n = -1), new e(r, n, i, 1 == t.u)
  39.         }, e
  40.     }();
  41.     t.default = n
  42. }), define("modules/Constant/lib/Purpose", ["require", "exports", "lodash"], function(e, t, r) {
  43.     "use strict";
  44.     return {
  45.         _list: [{
  46.             id: 0,
  47.             name: "Снижение веса"
  48.         }, {
  49.             id: 1,
  50.             name: "Набор массы"
  51.         }, {
  52.             id: 2,
  53.             name: "Поддержание веса"
  54.         }],
  55.         getList: function() {
  56.             return this._list
  57.         },
  58.         getState: function() {
  59.             return this.getList().map(function(e) {
  60.                 return {
  61.                     id: e.id,
  62.                     value: e.id,
  63.                     name: e.name,
  64.                     label: e.name
  65.                 }
  66.             })
  67.         },
  68.         byId: function(e) {
  69.             var t = r.find(this._list, "id", Number(e));
  70.             return void 0 === t ? {
  71.                 id: 2,
  72.                 name: "Поддержание веса"
  73.             } : t
  74.         }
  75.     }
  76. }), define("modules/Constant/lib/Constant", ["require", "exports", "./Purpose"], function(e, t, r) {
  77.     "use strict";
  78.     return {
  79.         MALE: 1,
  80.         FEMALE: 2,
  81.         cSEX_FEMALE: 2,
  82.         cSEX_MALE: 1,
  83.         SOURCE_OF_BASE: {
  84.             MAIN_BASE: 0,
  85.             USER_BASE: 1
  86.         },
  87.         PURPOSE_SAVE_WEIGHT: 2,
  88.         PURPOSE_LOSE_WEIGHT: 0,
  89.         PURPOSE_GAIN_WEIGHT: 1,
  90.         SOMATOTYPE_THINT: 0,
  91.         SOMATOTYPE_NORMT: 1,
  92.         SOMATOTYPE_WIDET: 2,
  93.         PREGNANCY_NONE: 0,
  94.         PREGNANCY_FIRST_PART: 1,
  95.         PREGNANCY_SECOND_PART: 2,
  96.         PREGNANCY_FEED_1m_6m: 3,
  97.         PREGNANCY_FEED_7m_12m: 4,
  98.         cFAT: 14,
  99.         cPROTEIN: 13,
  100.         cCARBOHYDRATE: 15,
  101.         cCALORIE: 11,
  102.         cWATER: 12,
  103.         cFIBER: 18,
  104.         cSODIUM: 36,
  105.         cK: 32,
  106.         cCHOLESTEROL: 55,
  107.         cNGK: 83,
  108.         cPNGK: 148,
  109.         cMNGK: 147,
  110.         cTRANSFAT: 178,
  111.         cOMEGA3: 212,
  112.         cOMEGA6: 213,
  113.         cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA: 0,
  114.         cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT: 1,
  115.         cMETHOD_OF_CALCULATION_ENERGY_USER: 2,
  116.         cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT: 3,
  117.         cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR: 4,
  118.         cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT: 5,
  119.         cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_WITHOUT_SPORT: 6,
  120.         cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_CARB: 7,
  121.         cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_FAT: 8,
  122.         cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_PROTEIN: 9,
  123.         cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_KETO: 10,
  124.         cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_OLD: 11,
  125.         cMETHOD_OF_CALCULATION_VITAMINS_MINERALS_RUSSIAN_MR: 0,
  126.         user_energy_settings: {
  127.             cFIELD_METABOLISM: "metabolism",
  128.             cFIELD_OUTCOMEMAIN: "outcomeMain",
  129.             cFIELD_INCOME_RECOMMEND: "11",
  130.             cFIELD_PROTEIN: "13",
  131.             cFIELD_FAT: "14",
  132.             cFIELD_CARB: "15"
  133.         },
  134.         EXERCISE: {
  135.             TYPE_OF_PARAMETER_NUMBER: 0,
  136.             TYPE_OF_PARAMETER_INT: 1,
  137.             TYPE_OF_PARAMETER_STRING: 2,
  138.             TYPE_OF_PARAMETER_LIST: 3,
  139.             TYPE_OF_PARAMETER_TIME: 4,
  140.             TYPE_OF_PARAMETER_BOOLEAN: 5,
  141.             PARAMETER_TIME: 1,
  142.             PARAMETER_NUMBER: 2,
  143.             PARAMETER_WEIGHT: 3,
  144.             PARAMETER_DISTANCE: 4,
  145.             PARAMETER_PULSE: 16,
  146.             PARAMETER_SPEED: 17,
  147.             PARAMETER_POWER_INPUTS: 18,
  148.             PARAMETER_AMPLITUDE: 20,
  149.             FORMULA_SUM: "SUM",
  150.             FORMULA_AVERAGE: "AVERAGE",
  151.             FORMULA_SUM_OR_PER_COUNT: "SUM_OR_PER_COUNT",
  152.             FORMULA_SUM_FOR_BOOL: "SUM_BOOL",
  153.             POWER_INPUTS_PER_TIME_AND_WEIGHT: 1,
  154.             POWER_INPUTS_PER_TIME: 2,
  155.             POWER_INPUTS_PER_WORK: 3,
  156.             POWER_INPUTS_PER_DISTANCE_AND_WEIGHT: 4,
  157.             POWER_INPUTS_PER_EXERCISE: 5
  158.         },
  159.         TYPE_DIARY_ITEMS: {
  160.             EXERCISE: "EX",
  161.             SUPERSET: "ST",
  162.             TRAINING: "TR",
  163.             EXERCISE_IN_PROGRAM: "EX_P",
  164.             DAY_IN_PROGRAM: "DAY_P",
  165.             SUPERSET_IN_PROGRAM: "ST_P",
  166.             VIDEO: "V",
  167.             IMAGE: "I",
  168.             TEXT: "T"
  169.         },
  170.         Purpose: r
  171.     }
  172. }), define("modules/Constant/lib/index", ["require", "exports", "./Constant"], function(e, t, r) {
  173.     "use strict";
  174.     return r
  175. }), define("modules/Nutrients/lib/IntensityOfLabour", ["require", "exports", "lodash", "modules/Constant/lib/index"], function(e, t, r, o) {
  176.     "use strict";
  177.     Object.defineProperty(t, "__esModule", {
  178.         value: !0
  179.     });
  180.     var n = {
  181.         _list: [{
  182.             id: 1,
  183.             name: "Основной обмен",
  184.             coefficient: 1,
  185.             numberInMinzdrav: 1
  186.         }, {
  187.             id: 2,
  188.             name: "Отсутствие активности",
  189.             coefficient: 1.3,
  190.             numberInMinzdrav: 1
  191.         }, {
  192.             id: 3,
  193.             name: "Низкая активность",
  194.             coefficient: 1.4,
  195.             numberInMinzdrav: 1
  196.         }, {
  197.             id: 4,
  198.             name: "Умеренная активность",
  199.             coefficient: 1.6,
  200.             numberInMinzdrav: 2
  201.         }, {
  202.             id: 5,
  203.             name: "Активность выше средней",
  204.             coefficient: 1.9,
  205.             numberInMinzdrav: 3
  206.         }, {
  207.             id: 6,
  208.             name: "Высокая активность",
  209.             coefficient: 2.2,
  210.             numberInMinzdrav: 4
  211.         }, {
  212.             id: 7,
  213.             name: "Очень высокая активность",
  214.             coefficient: 2.5,
  215.             numberInMinzdrav: 5
  216.         }],
  217.         getList: function() {
  218.             return this._list
  219.         },
  220.         getState: function(e) {
  221.             return r.chain(this.getList()).filter(function(e) {
  222.                 return 1 !== e.id
  223.             }).map(function(t) {
  224.                 return e === o.cSEX_FEMALE && 7 === t.id ? null : {
  225.                     id: t.id,
  226.                     value: t.id,
  227.                     name: t.name,
  228.                     label: t.name,
  229.                     coefficient: t.coefficient,
  230.                     numberInMinzdrav: t.numberInMinzdrav
  231.                 }
  232.             }).compact().value()
  233.         },
  234.         byId: function(e) {
  235.             var t = r.find(this._list, "id", Number(e));
  236.             return void 0 === t ? {
  237.                 id: 0,
  238.                 name: "",
  239.                 coefficient: 0,
  240.                 numberInMinzdrav: 1
  241.             } : t
  242.         }
  243.     };
  244.     t.default = n
  245. }), define("modules/Nutrients/lib/NutrientsHelper", ["require", "exports", "modules/Utils/lib/Utils", "./IntensityOfLabour", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "../../Utils/lib/Utils"], function(e, t, r, o, n, i, u, a) {
  246.     "use strict";
  247.     Object.defineProperty(t, "__esModule", {
  248.         value: !0
  249.     });
  250.     var m = {
  251.         formulaMifflina: function(e, t, r, o) {
  252.             return e = e || 2, t = t || 60, r = r || 160, o = o || 30, 1 == e ? i.round(10 * t + 6.25 * r - 5 * o + 5, 0) : i.round(10 * t + 6.25 * r - 5 * o - 161, 0)
  253.         },
  254.         bmi: function(e, t) {
  255.             return i.round(a.toNumber(e / Math.pow(t / 100, 2)), 1)
  256.         },
  257.         weightForBigMan: function(e, t) {
  258.             var r = m.bmi(e, t);
  259.             return r > 25 ? i.round(r * (1 - (r - 25) / 100) * Math.pow(t / 100, 2), 1) : e
  260.         },
  261.         formulaMifflinaMZR: function(e, t, r, o) {
  262.             var n = m.weightForBigMan(t, r);
  263.             return m.formulaMifflina(e, n, r, o)
  264.         },
  265.         formulaKharrisabenedikta: function(e, t, r, o) {
  266.             return e = e || 2, t = t || 60, r = r || 160, o = o || 30, 1 == e ? i.round(66.5 + 13.75 * t + 5.003 * r - 6.775 * o, 0) : i.round(655.1 + 9.563 * t + 1.85 * r - 4.676 * o, 0)
  267.         },
  268.         formulaTomVenuto: function(e, t, r, o) {
  269.             return e = e || 2, t = t || 60, r = r || 160, o = o || 30, 1 == e ? i.round(66 + 13.7 * t + 5 * r - 6.8 * o, 0) : i.round(665 + 9.6 * t + 1.8 * r - 4.7 * o, 0)
  270.         },
  271.         calculateCalorie: function(e, t, r, n) {
  272.             void 0 === n && (n = "mifflina");
  273.             var u = this.formulaMifflina(e.sex, e.weight, e.height, e.age);
  274.             "mifflinaMZR" == n && (u = this.formulaMifflinaMZR(e.sex, e.weight, e.height, e.age));
  275.             var m = 1;
  276.             if (e.user_calorie_norm && e.user_calorie_norm.useMyKoef && e.user_calorie_norm.outcomeKoef) m = a.toNumber(e.user_calorie_norm.outcomeKoef);
  277.             else {
  278.                 m = o.default.byId(e.id_intensity_of_labour).coefficient
  279.             }
  280.             var s = i.round(u * m, 0);
  281.             u = i.round(u, 0);
  282.             var l = i.round(s + s / 100 * t, 0),
  283.                 d = i.round(s + s / 100 * r, 0);
  284.             return u > l && (l = u), u > d && (d = u), {
  285.                 outcomeMain: s,
  286.                 incomeRecommendStart: l,
  287.                 incomeRecommendEnd: d,
  288.                 metabolism: u,
  289.                 power_inputs: s,
  290.                 calorie_corridor_start: l,
  291.                 calorie_corridor_end: d
  292.             }
  293.         },
  294.         isFattyAcids: function(e) {
  295.             return (e = r.toNumber(e)) === u.cNGK || e === u.cPNGK || e === u.cMNGK || e === u.cTRANSFAT || e === u.cOMEGA3 || e === u.cOMEGA6
  296.         },
  297.         isFattyAcidsOrCPFC: function(e) {
  298.             return !((e = r.toNumber(e)) !== u.cCALORIE && e !== u.cPROTEIN && e !== u.cFAT && e !== u.cCARBOHYDRATE && !m.isFattyAcids(e))
  299.         },
  300.         createUserNorm: function(e) {
  301.             if (!i.isString(e) && !i.isNumber(e)) return new n.default(0, 0, 0, !0);
  302.             var t = "" + e;
  303.             if (t = t.toLowerCase().trim(), t = r.replace(t, "min", "от"), t = r.replace(t, "max", "до"), t.indexOf("от") >= 0 && t.indexOf("до") >= 0) {
  304.                 t = r.replace(t, "от", "").trim();
  305.                 var o = t.split("до");
  306.                 return 2 === o.length ? new n.default(r.toNumber(o[0].trim()), r.toNumber(o[0].trim()), r.toNumber(o[1].trim()), !0) : new n.default(0, 0, 0, !0)
  307.             }
  308.             if (t.indexOf("от") >= 0) {
  309.                 var u = r.toNumber(r.replace(t, "от", ""));
  310.                 return new n.default(0, u, 0, !0)
  311.             }
  312.             if (t.indexOf("до") >= 0) {
  313.                 var a = r.toNumber(r.replace(t, "до", ""));
  314.                 return new n.default(0, 0, a, !0)
  315.             }
  316.             var m = r.toNumber(t);
  317.             return new n.default(m, -1, -1, !0)
  318.         },
  319.         calculateTypeOfFatUser: function(e) {
  320.             var t = {};
  321.             return i.forOwn(e, function(e, r) {
  322.                 if (m.isFattyAcids(r)) {
  323.                     var o = m.createUserNorm(e);
  324.                     o && (t[r] = o)
  325.                 }
  326.             }), t
  327.         },
  328.         calculateTypeOfFat: function(e, t) {
  329.             var r = {},
  330.                 o = .1 * e / 9;
  331.             r[u.cNGK] = new n.default(0, 0, i.round(o, 1));
  332.             var a = .06 * e / 9,
  333.                 m = .11 * e / 9;
  334.             r[u.cPNGK] = new n.default(0, i.round(a, 1), i.round(m, 1));
  335.             var s = .005 * e / 9,
  336.                 l = .02 * e / 9;
  337.             r[u.cOMEGA3] = new n.default(0, i.round(s, 1), i.round(l, 1));
  338.             var d = .025 * e / 9,
  339.                 _ = .09 * e / 9;
  340.             r[u.cOMEGA6] = new n.default(0, i.round(d, 1), i.round(_, 1));
  341.             var c = .09 * e / 9;
  342.             r[u.cMNGK] = new n.default(0, i.round(c, 1), -1);
  343.             var h = .01 * e / 9;
  344.             return r[u.cTRANSFAT] = new n.default(0, 0, i.round(h, 1)), r
  345.         },
  346.         fixOutcomeSport: function(e, t) {
  347.             var r = 300,
  348.                 o = 1300;
  349.             1 === e && (r = 400, o = 1400);
  350.             return t <= r ? t : t <= o ? i.round(r + (t - r) * (1 - (t - r) / 2e3), 0) : i.round(r + (o - r) / 2, 0)
  351.         },
  352.         waterNormPerWeight: function(e, t) {
  353.             var r = i.round(40 * e, 0);
  354.             return 1 == t && r > 4e3 ? r = 4e3 : 2 == t && r > 3e3 && (r = 3e3), r
  355.         },
  356.         waterNormPerOutcomeMain: function(e, t, r) {
  357.             t = m.fixOutcomeSport(r, t);
  358.             var o = 0;
  359.             return 1 == r ? o = 1.48 * (e + t) : 2 === r && (o = 1.35 * (e + t)), o = i.round(o, 0), 1 == r && o > 4500 ? o = 4500 : 2 === r && o > 3500 && (o = 3500), o
  360.         }
  361.     };
  362.     t.default = m
  363. }), define("modules/Nutrients/lib/AMethodOfCalculationEnergy", ["require", "exports", "./NutrientsNormItem", "./NutrientsHelper", "modules/Constant/lib/index", "lodash", "modules/Utils/lib/Utils"], function(e, t, r, o, n, i, u) {
  364.     "use strict";
  365.     Object.defineProperty(t, "__esModule", {
  366.         value: !0
  367.     });
  368.     var a = function() {
  369.         function e(e, t) {
  370.             void 0 === t && (t = !1), this._norms = {}, this._metabolism = 0, this._outcomeMain = 0, this._incomeRecommend = void 0, this._incomeMin = 0, this._outcomeSport = 0, this.withoutSport = !1, this.params = e, this._outcomeSport = e.outcomeSport, this.withoutSport = t, e.user_calorie_norm && e.user_calorie_norm.withoutSport && (this.withoutSport = !0)
  371.         }
  372.         return e.prototype.outcomeSport = function() {
  373.             return this._outcomeSport
  374.         }, e.prototype.incomeMin = function() {
  375.             return this._incomeMin
  376.         }, e.prototype.incomeRecommend = function() {
  377.             return this._incomeRecommend
  378.         }, e.prototype.getNorms = function() {
  379.             return this._norms
  380.         }, e.prototype.metabolism = function() {
  381.             return this._metabolism
  382.         }, e.prototype.outcomeMain = function() {
  383.             return this._outcomeMain
  384.         }, e.prototype.calorieCorridor = function() {
  385.             return {
  386.                 start: this._incomeRecommend.normFrom,
  387.                 end: this._incomeRecommend.normTo
  388.             }
  389.         }, e.prototype.fillFats = function() {
  390.             var e = this;
  391.             this._norms[n.cFAT] && i.forOwn(o.default.calculateTypeOfFat(this._outcomeMain, this._norms[n.cFAT].norm), function(t, r) {
  392.                 e._norms[r] = t
  393.             }), i.forOwn(o.default.calculateTypeOfFatUser(this.params.user_nutrients_norm), function(t, r) {
  394.                 e._norms[r] = t
  395.             })
  396.         }, e.prototype.fillPregnancy = function() {
  397.             if (this.params.id_pregnancy >= 2) {
  398.                 var e = JSON.parse('{"2":{"11":350,"13":30,"14":12,"15":30},"3":{"11":500,"13":40,"14":15,"15":40},"4":{"11":450,"13":30,"14":15,"15":30}}');
  399.                 for (var t in e[this.params.id_pregnancy]) e[this.params.id_pregnancy].hasOwnProperty(t) && (this._norms[t].addExtraNorm(e[this.params.id_pregnancy][t]), Number(t) == n.cCALORIE && (this._incomeRecommend.addExtraNorm(e[this.params.id_pregnancy][t]), this._outcomeMain = this._outcomeMain + e[this.params.id_pregnancy][t]))
  400.             }
  401.         }, e.prototype.fillFromResultNorms = function() {
  402.             var e = this;
  403.             this.params && this.params.resultNorms && i.isObject(this.params.resultNorms) && i.forOwn(this.params.resultNorms, function(t, a) {
  404.                 t && i.isObject(t) && ("ocm" == a ? e._outcomeMain = u.toNumber(t.n || 0) : "voo" == a ? e._outcomeMain = u.toNumber(t.n || 0) : o.default.isFattyAcidsOrCPFC(a) && (e._norms[a] = r.default.fromObject(t), a == n.cCALORIE && (e._incomeRecommend = e._norms[a])))
  405.             })
  406.         }, e
  407.     }();
  408.     t.default = a
  409. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Gain_Weight", ["require", "exports", "tslib", "./NutrientsHelper", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u, a) {
  410.     "use strict";
  411.     Object.defineProperty(t, "__esModule", {
  412.         value: !0
  413.     });
  414.     var m = .2,
  415.         s = .3,
  416.         l = .5,
  417.         d = function(e) {
  418.             function t(t) {
  419.                 var r = e.call(this, t) || this;
  420.                 r.proteinPercent = m, r.fatPercent = s, r.carbPercent = l;
  421.                 var o = r.calculateCalorie(t);
  422.                 r._outcomeMain = o.outcomeMain, r._metabolism = o.metabolism;
  423.                 var a = 0;
  424.                 t.outcomeSport > 0 && 0 == r.withoutSport && (a = t.outcomeSport, 1 === t.sex && a > 3e3 ? a = 3e3 : 2 === t.sex && a > 2e3 && (a = 2e3)), r._incomeRecommend = new n.default(i.round(o.incomeRecommendStart + a, 0)), r._incomeMin = i.round(r._outcomeMain + a, 0), r._outcomeSport = t.outcomeSport, r._norms[u.cCALORIE] = r._incomeRecommend;
  425.                 var d = r._incomeRecommend.normFrom * r.proteinPercent / 4;
  426.                 r._norms[u.cPROTEIN] = new n.default(i.round(d, 0));
  427.                 var _ = r._incomeRecommend.normFrom * r.fatPercent / 9;
  428.                 r._norms[u.cFAT] = new n.default(i.round(_, 0));
  429.                 var c = r._incomeRecommend.normFrom * r.carbPercent / 4;
  430.                 return r._norms[u.cCARBOHYDRATE] = new n.default(i.round(c, 0)), r.fillFats(), r
  431.             }
  432.             return r.__extends(t, e), t.getProteinPercent = function() {
  433.                 return 100 * m + "%"
  434.             }, t.getFatPercent = function() {
  435.                 return 100 * s + "%"
  436.             }, t.getCarbPercent = function() {
  437.                 return 100 * l + "%"
  438.             }, t.prototype.calculateCalorie = function(e) {
  439.                 return o.default.calculateCalorie(e, 20, 20)
  440.             }, t
  441.         }(a.default);
  442.     t.default = d
  443. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_Weight", ["require", "exports", "tslib", "./NutrientsHelper", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u, a) {
  444.     "use strict";
  445.     Object.defineProperty(t, "__esModule", {
  446.         value: !0
  447.     });
  448.     var m = function(e) {
  449.         function t(t, r) {
  450.             void 0 === r && (r = !1);
  451.             var a = e.call(this, t, r) || this,
  452.                 m = a.calculateCalorie(t);
  453.             a._metabolism = m.metabolism, a._outcomeMain = m.outcomeMain;
  454.             var s = m.incomeRecommendStart;
  455.             if (0 == t.outcomeSport || 1 == a.withoutSport) a._incomeRecommend = new n.default(i.round(s, 0)), a._incomeMin = i.round(a._metabolism, 0);
  456.             else {
  457.                 var l = m.incomeRecommendEnd,
  458.                     d = o.default.fixOutcomeSport(t.sex, t.outcomeSport);
  459.                 if (s - d >= a._metabolism) a._incomeMin = a._metabolism, l = i.round(s + d, 0);
  460.                 else {
  461.                     var _ = a._metabolism - (s - d);
  462.                     a._incomeMin = i.round(a._metabolism + _, 0), l = i.round(s + d, 0), s = i.round(s + _, 0)
  463.                 }
  464.                 a._incomeRecommend = new n.default(s, s, l)
  465.             }
  466.             a._outcomeSport = t.outcomeSport, a._norms[u.cCALORIE] = a._incomeRecommend;
  467.             var c = i.round(a._incomeRecommend.normFrom * a.proteinPercent() / 4, 0),
  468.                 h = i.round(a._incomeRecommend.normFrom * a.fatPercent() / 9, 0),
  469.                 f = i.round(a._incomeRecommend.normFrom * a.carbPercent() / 4, 0);
  470.             if (a._incomeRecommend.isCorridor()) {
  471.                 var p = i.round(a._incomeRecommend.normTo * a.proteinPercent() / 4, 0),
  472.                     g = i.round(a._incomeRecommend.normTo * a.fatPercent() / 9, 0),
  473.                     F = i.round(a._incomeRecommend.normTo * a.carbPercent() / 4, 0);
  474.                 a._norms[u.cPROTEIN] = new n.default(c, c, p), a._norms[u.cFAT] = new n.default(h, h, g), a._norms[u.cCARBOHYDRATE] = new n.default(f, f, F)
  475.             } else a._norms[u.cPROTEIN] = new n.default(c), a._norms[u.cFAT] = new n.default(h), a._norms[u.cCARBOHYDRATE] = new n.default(f);
  476.             return a.fillFats(), a
  477.         }
  478.         return r.__extends(t, e), t.getProteinPercent = function() {
  479.             return "24%"
  480.         }, t.getFatPercent = function() {
  481.             return "39.5%"
  482.         }, t.getCarbPercent = function() {
  483.             return "36.5%"
  484.         }, t.prototype.proteinPercent = function() {
  485.             return .24
  486.         }, t.prototype.fatPercent = function() {
  487.             return .395
  488.         }, t.prototype.carbPercent = function() {
  489.             return .365
  490.         }, t.prototype.calculateCalorie = function(e) {
  491.             o.default.bmi(e.weight, e.height) >= 25 && (e.updateWeightReasonBMI = !0);
  492.             var t = -24;
  493.             return (2 == e.id_intensity_of_labour || e.user_calorie_norm.useMyKoef && e.user_calorie_norm.outcomeKoef && e.user_calorie_norm.outcomeKoef <= 1.3) && (t = -21), o.default.calculateCalorie(e, t, t, "mifflinaMZR")
  494.         }, t
  495.     }(a.default);
  496.     t.default = m
  497. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Mifflina", ["require", "exports", "tslib", "./NutrientsHelper", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u, a) {
  498.     "use strict";
  499.     Object.defineProperty(t, "__esModule", {
  500.         value: !0
  501.     });
  502.     var m = .18,
  503.         s = .3,
  504.         l = .52,
  505.         d = function(e) {
  506.             function t(t) {
  507.                 var r = e.call(this, t) || this;
  508.                 r.proteinPercent = m, r.fatPercent = s, r.carbPercent = l;
  509.                 var a = r.calculateCalorie(t);
  510.                 r._outcomeMain = a.outcomeMain, r._metabolism = a.metabolism;
  511.                 var d = 0;
  512.                 t.outcomeSport > 0 && 0 == r.withoutSport && (d = o.default.fixOutcomeSport(t.sex, t.outcomeSport)), r._incomeRecommend = new n.default(i.round(r._outcomeMain + d, 0)), r._incomeMin = i.round(r._metabolism + d, 0), r._outcomeSport = t.outcomeSport, r._norms[u.cCALORIE] = new n.default(i.round(r._outcomeMain + d, 0));
  513.                 var _ = r._incomeRecommend.normFrom * r.proteinPercent / 4;
  514.                 r._norms[u.cPROTEIN] = new n.default(i.round(_, 0));
  515.                 var c = r._incomeRecommend.normFrom * r.fatPercent / 9;
  516.                 r._norms[u.cFAT] = new n.default(i.round(c, 0));
  517.                 var h = r._incomeRecommend.normFrom * r.carbPercent / 4;
  518.                 return r._norms[u.cCARBOHYDRATE] = new n.default(i.round(h, 0)), r.fillPregnancy(), r.fillFats(), r
  519.             }
  520.             return r.__extends(t, e), t.getProteinPercent = function() {
  521.                 return 100 * m + "%"
  522.             }, t.getFatPercent = function() {
  523.                 return 100 * s + "%"
  524.             }, t.getCarbPercent = function() {
  525.                 return 100 * l + "%"
  526.             }, t.prototype.calculateCalorie = function(e) {
  527.                 return o.default.calculateCalorie(e, 0, 0)
  528.             }, t
  529.         }(a.default);
  530.     t.default = d
  531. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_RussianMR", ["require", "exports", "tslib", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u) {
  532.     "use strict";
  533.     Object.defineProperty(t, "__esModule", {
  534.         value: !0
  535.     });
  536.     var a = function(e) {
  537.         function t(t) {
  538.             var r = e.call(this, t) || this;
  539.             2 == t.sex && 5 == t.get_intensity_of_labour().numberInMinzdrav && (t.id_intensity_of_labour = 6);
  540.             for (var u = JSON.parse('[{"sex":0,"from":0,"to":0.25,"group":0,"weight":1,"nutrients":{"11":115,"13":2.2,"14":6.5,"15":13}},{"sex":0,"from":0.26,"to":0.5,"group":0,"weight":1,"nutrients":{"11":115,"13":2.6,"14":6,"15":13}},{"sex":0,"from":0.51,"to":0.99,"group":0,"weight":1,"nutrients":{"11":110,"13":2.9,"14":5.5,"15":13}},{"sex":0,"from":1,"to":1.99,"group":0,"weight":0,"nutrients":{"11":1200,"13":36,"14":40,"15":174}},{"sex":0,"from":2,"to":2.99,"group":0,"weight":0,"nutrients":{"11":1400,"13":42,"14":47,"15":203}},{"sex":0,"from":3,"to":6.99,"group":0,"weight":0,"nutrients":{"11":1800,"13":54,"14":60,"15":261}},{"sex":0,"from":7,"to":10.99,"group":0,"weight":0,"nutrients":{"11":2100,"13":63,"14":70,"15":305}},{"sex":1,"from":11,"to":13.99,"group":0,"weight":0,"nutrients":{"11":2500,"13":75,"14":83,"15":363}},{"sex":2,"from":11,"to":13.99,"group":0,"weight":0,"nutrients":{"11":2300,"13":69,"14":77,"15":334}},{"sex":1,"from":14,"to":17.99,"group":0,"weight":0,"nutrients":{"11":2900,"13":87,"14":97,"15":421}},{"sex":2,"from":14,"to":17.99,"group":0,"weight":0,"nutrients":{"11":2500,"13":75,"14":83,"15":363}},{"sex":1,"from":18,"to":28.99,"group":1,"weight":0,"nutrients":{"11":2450,"13":72,"14":81,"15":358}},{"sex":1,"from":29,"to":38.99,"group":1,"weight":0,"nutrients":{"11":2300,"13":68,"14":77,"15":335}},{"sex":1,"from":39,"to":59.99,"group":1,"weight":0,"nutrients":{"11":2100,"13":65,"14":70,"15":303}},{"sex":1,"from":60,"to":200,"group":0,"weight":0,"nutrients":{"11":2300,"13":68,"14":77,"15":335}},{"sex":1,"from":18,"to":28.99,"group":2,"weight":0,"nutrients":{"11":2800,"13":80,"14":93,"15":411}},{"sex":1,"from":29,"to":38.99,"group":2,"weight":0,"nutrients":{"11":2650,"13":77,"14":88,"15":387}},{"sex":1,"from":39,"to":59.99,"group":2,"weight":0,"nutrients":{"11":2500,"13":72,"14":83,"15":366}},{"sex":1,"from":18,"to":28.99,"group":3,"weight":0,"nutrients":{"11":3300,"13":94,"14":110,"15":484}},{"sex":1,"from":29,"to":38.99,"group":3,"weight":0,"nutrients":{"11":3150,"13":89,"14":105,"15":462}},{"sex":1,"from":39,"to":59.99,"group":3,"weight":0,"nutrients":{"11":2950,"13":84,"14":98,"15":432}},{"sex":1,"from":18,"to":28.99,"group":4,"weight":0,"nutrients":{"11":3850,"13":108,"14":128,"15":566}},{"sex":1,"from":29,"to":38.99,"group":4,"weight":0,"nutrients":{"11":3600,"13":102,"14":120,"15":528}},{"sex":1,"from":39,"to":59.99,"group":4,"weight":0,"nutrients":{"11":3400,"13":96,"14":113,"15":499}},{"sex":1,"from":18,"to":28.99,"group":5,"weight":0,"nutrients":{"11":4200,"13":117,"14":154,"15":586}},{"sex":1,"from":29,"to":38.99,"group":5,"weight":0,"nutrients":{"11":3950,"13":111,"14":144,"15":550}},{"sex":1,"from":39,"to":59.99,"group":5,"weight":0,"nutrients":{"11":3750,"13":104,"14":137,"15":524}},{"sex":2,"from":18,"to":28.99,"group":1,"weight":0,"nutrients":{"11":2000,"13":61,"14":67,"15":289}},{"sex":2,"from":29,"to":38.99,"group":1,"weight":0,"nutrients":{"11":1900,"13":59,"14":63,"15":274}},{"sex":2,"from":39,"to":59.99,"group":1,"weight":0,"nutrients":{"11":1800,"13":58,"14":60,"15":257}},{"sex":2,"from":60,"to":200,"group":0,"weight":0,"nutrients":{"11":1975,"13":61,"14":66,"15":284}},{"sex":2,"from":18,"to":28.99,"group":2,"weight":0,"nutrients":{"11":2200,"13":66,"14":73,"15":318}},{"sex":2,"from":29,"to":38.99,"group":2,"weight":0,"nutrients":{"11":2150,"13":65,"14":72,"15":311}},{"sex":2,"from":39,"to":59.99,"group":2,"weight":0,"nutrients":{"11":2100,"13":63,"14":70,"15":305}},{"sex":2,"from":18,"to":28.99,"group":3,"weight":0,"nutrients":{"11":2600,"13":76,"14":87,"15":378}},{"sex":2,"from":29,"to":38.99,"group":3,"weight":0,"nutrients":{"11":2550,"13":74,"14":85,"15":372}},{"sex":2,"from":39,"to":59.99,"group":3,"weight":0,"nutrients":{"11":2500,"13":72,"14":83,"15":366}},{"sex":2,"from":18,"to":28.99,"group":4,"weight":0,"nutrients":{"11":3050,"13":87,"14":102,"15":462}},{"sex":2,"from":29,"to":38.99,"group":4,"weight":0,"nutrients":{"11":2950,"13":84,"14":98,"15":432}},{"sex":2,"from":39,"to":59.99,"group":4,"weight":0,"nutrients":{"11":2850,"13":82,"14":95,"15":417}}]'), a = !1, m = 0; m < u.length; m++) {
  541.                 var s = u[m];
  542.                 if ((0 === s.sex || s.sex == t.sex) && ((0 === s.group || s.group == t.get_intensity_of_labour().numberInMinzdrav) && s.from <= t.age && t.age <= s.to)) {
  543.                     a = !0;
  544.                     for (var l in s.nutrients) s.nutrients.hasOwnProperty(l) && (1 == s.weight && (s.nutrients[l] = s.nutrients[l] * t.weight), r._norms[l] = new o.default(s.nutrients[l]));
  545.                     break
  546.                 }
  547.             }
  548.             return !1 === a && (console.error("По заданным параметрам не найдены нормы нутриентов RussionMR:Energy"), console.error(t)), r._metabolism = 0, 1 == t.sex ? r._metabolism = 10 * t.weight + 6.25 * t.height - 5 * t.age + 5 : r._metabolism = 10 * t.weight + 6.25 * t.height - 5 * t.age - 161, r._outcomeMain = r._norms[i.cCALORIE].norm, r._incomeRecommend = r._norms[i.cCALORIE], r._incomeMin = n.round(r._metabolism, 0), r._metabolism = n.round(r._metabolism, 0), r._outcomeSport = t.outcomeSport, r.fillPregnancy(), r.fillFats(), r
  549.         }
  550.         return r.__extends(t, e), t
  551.     }(u.default);
  552.     t.default = a
  553. }), define("modules/Nutrients/lib/MethodOfCalculationNutrients_RussianMR", ["require", "exports", "./NutrientsHelper", "./NutrientsNormItem", "lodash", "modules/Constant/lib/index"], function(e, t, r, o, n, i) {
  554.     "use strict";
  555.     Object.defineProperty(t, "__esModule""По заданным параметрам не найдены нормы нутриентов RussionMR:Nutr"), console.error(e));
  556.             var c = 0;
  557.             if (c = 0 == t ? r.default.waterNormPerWeight(e.weight, e.sex) : r.default.waterNormPerOutcomeMain(t, u, e.sex), c = n.round(c, 0), this._norms[i.cWATER] = new o.default(c), this._norms[i.cFIBER] = new o.default(20), this._norms[55] = new o.default(0, 0, 300), this._norms[16] = new o.default(0, 0, 100), null !== e.user_nutrients_norm && n.forOwn(e.user_nutrients_norm, function(e, t) {
  558.                     if (r.default.isFattyAcids(t));
  559.                     else {
  560.                         var o = r.default.createUserNorm(e);
  561.                         o && (a._norms[t] = o)
  562.                     }
  563.                 }), e.id_pregnancy >= 2) {
  564.                 var h = {
  565.                     2: {
  566.                         22: .2,
  567.                         23: .2,
  568.                         24: 1,
  569.                         25: .3,
  570.                         26: 200,
  571.                         27: 10,
  572.                         31: 15,
  573.                         33: 300,
  574.                         35: 50,
  575.                         38: 200,
  576.                         43: 70,
  577.                         45: .2,
  578.                         46: 100,
  579.                         53: 3,
  580.                         56: .5,
  581.                         58: 10,
  582.                         62: 2.5,
  583.                         84: 2,
  584.                         85: 100,
  585.                         86: 2
  586.                     },
  587.                     3: {
  588.                         22: .3,
  589.                         23: .3,
  590.                         24: 2,
  591.                         25: .5,
  592.                         26: 100,
  593.                         27: 30,
  594.                         33: 400,
  595.                         35: 50,
  596.                         38: 200,
  597.                         43: 140,
  598.                         45: .8,
  599.                         46: 400,
  600.                         53: 3,
  601.                         56: .5,
  602.                         58: 10,
  603.                         62: 2.5,
  604.                         84: 3,
  605.                         85: 400,
  606.                         86: 4
  607.                     },
  608.                     4: {
  609.                         22: .3,
  610.                         23: .3,
  611.                         24: 2,
  612.                         25: .5,
  613.                         26: 100,
  614.                         27: 30,
  615.                         33: 400,
  616.                         35: 50,
  617.                         38: 200,
  618.                         43: 140,
  619.                         45: .8,
  620.                         46: 400,
  621.                         53: 3,
  622.                         56: .5,
  623.                         58: 10,
  624.                         62: 2.5,
  625.                         84: 3,
  626.                         85: 400,
  627.                         86: 4
  628.                     }
  629.                 };
  630.                 for (var f in h[e.id_pregnancy]) h[e.id_pregnancy].hasOwnProperty(f) && this._norms[f].addExtraNorm(h[e.id_pregnancy][f])
  631.             }
  632.         }
  633.         return e.prototype.getNorms = function() {
  634.             return this._norms
  635.         }, e.prototype.fillFromResultNorms = function() {
  636.             var e = this;
  637.             this.params && this.params.resultNorms && n.isObject(this.params.resultNorms) && n.forOwn(this.params.resultNorms, function(t, i) {
  638.                 r.default.isFattyAcidsOrCPFC(i) || "ocm" == i || "voo" == i || t && n.isObject(t) && (e._norms[i] = o.default.fromObject(t))
  639.             })
  640.         }, e
  641.     }();
  642.     t.default = u
  643. }), define("modules/Nutrients/lib/UserEnergySettings", ["require", "exports", "./NutrientsNormItem", "lodash", "../../Utils/lib/Utils"], function(e, t, r, o, n) {
  644.     "use strict";
  645.     Object.defineProperty(t, "__esModule", {
  646.         value: !0
  647.     });
  648.     var i = function() {
  649.         function e(t) {
  650.             void 0 === t && (t = {}), this.metabolism = 0, this.outcomeMain = 0, this.incomeRecommend = void 0, this.protein = void 0, this.fat = void 0, this.carb = void 0, this.userNorms = {}, this.userNorms = t, !0 === t.hasOwnProperty("metabolism") && (this.metabolism = Number(t.metabolism)), !0 === t.hasOwnProperty("outcomeMain") && (this.outcomeMain = Number(t.outcomeMain)), this.incomeRecommend = e.getNutrientNorm("11", t), this.protein = e.getNutrientNorm("13", t), this.fat = e.getNutrientNorm("14", t), this.carb = e.getNutrientNorm("15", t)
  651.         }
  652.         return e.prototype.getMetabolismFormula = function() {
  653.             return this.userNorms.metabolismFormula ? this.userNorms.metabolismFormula : this.userNorms.metabolism ? "value" : "mifflina"
  654.         }, e.prototype.setMetabolism = function(e) {
  655.             this.metabolism = e, this.metabolism > this.outcomeMain && (this.outcomeMain = o.round(this.metabolism + this.metabolism / 100 * 10, 0))
  656.         }, e.prototype.getOutcomeFormula = function() {
  657.             return this.userNorms.outcomeFormula ? this.userNorms.outcomeFormula : this.userNorms.outcomeMain ? "value" : "koef"
  658.         }, e.prototype.getNumberProp = function(e, t) {
  659.             return void 0 === t && (t = 0), this.userNorms[e] ? n.toNumber(this.userNorms[e]) : t
  660.         }, e.prototype.getNutrientFormula = function(e) {
  661.             var t = e + "Formula";
  662.             return this.userNorms[t] ? this.userNorms[t] : this.userNorms[e] ? "value" : "percent"
  663.         }, e.prototype.getIncomeRecommendFormula = function() {
  664.             return this.userNorms.incomeRecommendFormula ? this.userNorms.incomeRecommendFormula : this.userNorms[11] ? "value" : "percent"
  665.         }, e.getNutrientNorm = function(e, t) {
  666.             var o = 0,
  667.                 i = -1;
  668.             return !0 === t.hasOwnProperty(e) ? (o = n.toNumber(t[e]), !0 === t.hasOwnProperty(e + "end") && 0 == (i = n.toNumber(t[e + "end"])) && (i = -1), new r.default(o, o, i, !0)) : new r.default(0, -1, -1, !0)
  669.         }, e
  670.     }();
  671.     t.default = i
  672. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_UsersV2", ["require", "exports", "tslib", "./NutrientsHelper", "lodash", "modules/Constant/lib/index", "./MethodOfCalculationEnergy_Mifflina", "./UserEnergySettings", "./AMethodOfCalculationEnergy", "modules/Utils/lib/Utils", "./NutrientsNormItem"], function(e, t, r, o, n, i, u, a, m, s, l) {
  673.     "use strict";
  674.     Object.defineProperty(t, "__esModule", {
  675.         value: !0
  676.     });
  677.     var d = function(e) {
  678.         function t(t, r) {
  679.             void 0 === r && (r = !1);
  680.             var o = e.call(this, t, r) || this;
  681.             return o.userSettings = new a.default(t.user_calorie_norm), o.calculateMetabolism(), o.calculateOutcomeMain(), o.calculateIncomeRecommend(), o.calculateNutrient("13", "protein"), o.calculateNutrient("14", "fat"), o.calculateNutrient("15", "carb"), o.calculateNutrientRest("13", "protein"), o.calculateNutrientRest("14", "fat"), o.calculateNutrientRest("15", "carb"), o.calculateSport(), o.fillFats(), o
  682.         }
  683.         return r.__extends(t, e), t.prototype.calculateIncomeRecommend = function() {
  684.             var e = this.userSettings.getIncomeRecommendFormula();
  685.             if ("value" == e) this.userSettings.incomeRecommend && this.userSettings.incomeRecommend.isSetNorm() && (this._incomeRecommend = this.userSettings.incomeRecommend);
  686.             else if ("addValue" == e) {
  687.                 var t = this.userSettings.getNumberProp("11a"),
  688.                     r = this.userSettings.getNumberProp("11aend");
  689.                 this._incomeRecommend = 0 == r ? new l.default(this._outcomeMain + t, -1, -1, !0) : new l.default(this._outcomeMain + t, this._outcomeMain + t, this._outcomeMain + r, !0)
  690.             } else if ("percent" == e) {
  691.                 var t = this.userSettings.getNumberProp("11p"),
  692.                     o = n.round(this._outcomeMain + this._outcomeMain * t / 100, 0),
  693.                     r = this.userSettings.getNumberProp("11pend"),
  694.                     a = n.round(this._outcomeMain + this._outcomeMain * r / 100, 0);
  695.                 this._incomeRecommend = 0 == r ? new l.default(o, -1, -1, !0) : new l.default(o, o, a, !0)
  696.             }
  697.             if (!this._incomeRecommend) {
  698.                 var m = new u.default(this.params);
  699.                 this._incomeRecommend = m.incomeRecommend()
  700.             }
  701.             this._incomeRecommend.isCorridor() && this._incomeRecommend.normFrom > this._incomeRecommend.normTo && (this._incomeRecommend.normFrom = this._incomeRecommend.normTo), this._incomeRecommend.normFrom < this._metabolism && (this._incomeRecommend.normFrom = this._metabolism + 1, this._incomeRecommend.isCorridor() && this._incomeRecommend.normTo < this._metabolism && (this._incomeRecommend.normTo = this._metabolism + 2)), this._norms[i.cCALORIE] = this._incomeRecommend
  702.         }, t.prototype.calculateNutrientRest = function(e, t) {
  703.             if ("rest" == this.userSettings.getNutrientFormula(e) && ("13" == e && this._norms[14] && this._norms[15] || "14" == e && this._norms[13] && this._norms[15] || "15" == e && this._norms[13] && this._norms[14])) {
  704.                 var r = 0,
  705.                     o = 0;
  706.                 "13" == e ? (r = n.round((this.incomeRecommend().normFrom - 9 * this._norms[14].normFrom - 4 * this._norms[15].normFrom) / 4, 1), o = n.round((this.incomeRecommend().normTo - 9 * this._norms[14].normTo - 4 * this._norms[15].normTo) / 4, 1)) : "14" == e ? (r = n.round((this.incomeRecommend().normFrom - 4 * this._norms[13].normFrom - 4 * this._norms[15].normFrom) / 9, 1), o = n.round((this.incomeRecommend().normTo - 4 * this._norms[13].normTo - 4 * this._norms[15].normTo) / 9, 1)) : "15" == e && (r = n.round((this.incomeRecommend().normFrom - 9 * this._norms[14].normFrom - 4 * this._norms[13].normFrom) / 4, 1), o = n.round((this.incomeRecommend().normTo - 9 * this._norms[14].normTo - 4 * this._norms[13].normTo) / 4, 1)), this._norms[e] = r == o ? new l.default(r, -1, -1, !0) : r < o ? new l.default(r, r, o, !0) : new l.default(o, o, r, !0)
  707.             }
  708.             this._norms[e] || (this._norms[e] = new l.default(0, -1, -1, !0))
  709.         }, t.prototype.calculateNutrient = function(e, t) {
  710.             var r = this.userSettings.getNutrientFormula(e);
  711.             if ("value" == r) this.userSettings[t] && this.userSettings[t].isSetNorm() && (this._norms[e] = this.userSettings[t]);
  712.             else if ("percent" == r) {
  713.                 var o = this.userSettings.getNumberProp(e + "p"),
  714.                     i = this.userSettings.getNumberProp(e + "pend", null),
  715.                     u = -1,
  716.                     a = -1,
  717.                     m = 4;
  718.                 "14" == e && (m = 9), this.incomeRecommend().isCorridor() ? (u = n.round(this.incomeRecommend().normFrom * o / 100 / m, 1), a = null == i ? n.round(this.incomeRecommend().normTo * o / 100 / m, 1) : n.round(this.incomeRecommend().normTo * i / 100 / m, 1)) : (u = n.round(this.incomeRecommend().normFrom * o / 100 / m, 1), null != i && (a = n.round(this.incomeRecommend().normTo * i / 100 / m, 1))), this._norms[e] = -1 == a || a == u ? new l.default(u, -1, -1, !0) : new l.default(u, u, a, !0)
  719.             } else if ("perWeight" == r) {
  720.                 var o = this.userSettings.getNumberProp(e + "w"),
  721.                     i = this.userSettings.getNumberProp(e + "wend", null),
  722.                     u = n.round(this.params.weight * o, 1);
  723.                 if (i) {
  724.                     var s = n.round(this.params.weight * i);
  725.                     this._norms[e] = new l.default(u, u, s, !0)
  726.                 } else this._norms[e] = new l.default(u, -1, -1, !0)
  727.             }
  728.         }, t.prototype.calculateOutcomeMain = function() {
  729.             var e = this.userSettings.getOutcomeFormula();
  730.             if ("value" == e ? this.userSettings.outcomeMain && (this._outcomeMain = s.toNumber(this.userSettings.outcomeMain, 0)) : "addValue" == e ? this._outcomeMain = this._metabolism + this.userSettings.getNumberProp("outcomeAdd") : "koef" == e && (this._outcomeMain = this._metabolism * this.userSettings.getNumberProp("outcomeKoef", 1.1)), !this._outcomeMain) {
  731.                 var t = new u.default(this.params);
  732.                 this._outcomeMain = t.outcomeMain()
  733.             }
  734.             this._outcomeMain = n.round(this._outcomeMain, 0), this._outcomeMain < this._metabolism && (this._outcomeMain = this._metabolism + 1)
  735.         }, t.prototype.calculateSport = function() {
  736.             if (0 == this.withoutSport && this._outcomeSport > 0) {
  737.                 var e = this._outcomeSport;
  738.                 this.params.user_calorie_norm.fixOutcomeSport && (e = o.default.fixOutcomeSport(this.params.sex, this._outcomeSport));
  739.                 var t = this.userSettings.getNumberProp("sportProtein"),
  740.                     r = this.userSettings.getNumberProp("sportFat"),
  741.                     i = this.userSettings.getNumberProp("sportCarb");
  742.                 if (this._incomeRecommend.normFrom - e >= this._metabolism) this._incomeRecommend.normTo = n.round(this._incomeRecommend.normTo + e, 0), this._norms[13] = this.addPercent(this._norms[13], e / 4, t), this._norms[14] = this.addPercent(this._norms[14], e / 9, r), this._norms[15] = this.addPercent(this._norms[15], e / 4, i);
  743.                 else {
  744.                     var u = this._metabolism - (this._incomeRecommend.normFrom - e);
  745.                     this._incomeMin = n.round(this._metabolism + u, 0);
  746.                     var a = n.round(this._incomeRecommend.normTo + e, 0),
  747.                         m = n.round(this._incomeRecommend.normFrom + u, 0);
  748.                     this._incomeRecommend.normTo = a, this._incomeRecommend.normFrom = m, this._incomeRecommend.norm = m, this._norms[13] = this.addPercent2(this._norms[13], e / 4, u / 4, t), this._norms[14] = this.addPercent2(this._norms[14], e / 9, u / 9, r), this._norms[15] = this.addPercent2(this._norms[15], e / 4, u / 4, i)
  749.                 }
  750.             }
  751.         }, t.prototype.addPercent2 = function(e, t, r, o) {
  752.             if (o > 0)
  753.                 if (e.isCorridor()) {
  754.                     var i = n.round(e.norm + r / 100 * o, 1),
  755.                         u = n.round(e.normTo + t / 100 * o, 1);
  756.                     e.normFrom = i, e.norm = i, e.normTo = u
  757.                 } else {
  758.                     var i = n.round(e.norm + r / 100 * o, 1),
  759.                         u = n.round(e.norm + t / 100 * o, 1);
  760.                     e.normFrom = i, e.norm = i, e.normTo = u
  761.                 } return e
  762.         }, t.prototype.addPercent = function(e, t, r) {
  763.             return r > 0 && (e.isCorridor() ? (e.normFrom = n.round(e.normFrom + t / 100 * r, 1), e.norm = e.normFrom, e.normTo = n.round(e.normTo + t / 100 * r, 1)) : e.normTo = n.round(e.norm + t / 100 * r, 1)), e
  764.         }, t.prototype.calculateMetabolism = function() {
  765.             var e = this.userSettings.getMetabolismFormula();
  766.             "value" == e ? this._metabolism = s.toNumber(this.userSettings.metabolism, 0) : "mifflina" == e ? this._metabolism = o.default.formulaMifflina(this.params.sex, this.params.weight, this.params.height, this.params.age) : "mifflinaMZR" == e ? this._metabolism = o.default.formulaMifflinaMZR(this.params.sex, this.params.weight, this.params.height, this.params.age) : "venuto" == e ? this._metabolism = o.default.formulaTomVenuto(this.params.sex, this.params.weight, this.params.height, this.params.age) : "benedikt" == e && (this._metabolism = o.default.formulaKharrisabenedikta(this.params.sex, this.params.weight, this.params.height, this.params.age)), this._metabolism || (this._metabolism = o.default.formulaMifflina(this.params.sex, this.params.weight, this.params.height, this.params.age)), this._metabolism = n.round(this._metabolism, 0), this._incomeMin = this._metabolism
  767.         }, t
  768.     }(m.default);
  769.     t.default = d
  770. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightLowCarb", ["require", "exports", "tslib", "./MethodOfCalculationEnergy_Lose_Weight", "lodash"], function(e, t, r, o, n) {
  771.     "use strict";
  772.     Object.defineProperty(t, "__esModule", {
  773.         value: !0
  774.     });
  775.     var i = function(e) {
  776.         function t() {
  777.             return null !== e && e.apply(this, arguments) || this
  778.         }
  779.         return r.__extends(t, e), t.getProteinPercent = function() {
  780.             return n.round(35, 2) + "%"
  781.         }, t.getFatPercent = function() {
  782.             return n.round(40, 2) + "%"
  783.         }, t.getCarbPercent = function() {
  784.             return n.round(25, 2) + "%"
  785.         }, t.prototype.proteinPercent = function() {
  786.             return .35
  787.         }, t.prototype.fatPercent = function() {
  788.             return .4
  789.         }, t.prototype.carbPercent = function() {
  790.             return .25
  791.         }, t
  792.     }(o.default);
  793.     t.default = i
  794. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightLowFat", ["require", "exports", "tslib", "./MethodOfCalculationEnergy_Lose_Weight", "lodash"], function(e, t, r, o, n) {
  795.     "use strict";
  796.     Object.defineProperty(t, "__esModule", {
  797.         value: !0
  798.     });
  799.     var i = function(e) {
  800.         function t() {
  801.             return null !== e && e.apply(this, arguments) || this
  802.         }
  803.         return r.__extends(t, e), t.getProteinPercent = function() {
  804.             return n.round(20, 2) + "%"
  805.         }, t.getFatPercent = function() {
  806.             return n.round(25, 2) + "%"
  807.         }, t.getCarbPercent = function() {
  808.             return n.round(.55 * 100, 2) + "%"
  809.         }, t.prototype.proteinPercent = function() {
  810.             return .2
  811.         }, t.prototype.fatPercent = function() {
  812.             return .25
  813.         }, t.prototype.carbPercent = function() {
  814.             return .55
  815.         }, t
  816.     }(o.default);
  817.     t.default = i
  818. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightKeto", ["require", "exports", "tslib", "./MethodOfCalculationEnergy_Lose_Weight", "./NutrientsNormItem", "modules/Constant/lib/index", "lodash"], function(e, t, r, o, n, i, u) {
  819.     "use strict";
  820.     Object.defineProperty(t, "__esModule", {
  821.         value: !0
  822.     });
  823.     var a = .18,
  824.         m = 50,
  825.         s = function(e) {
  826.             function t(t) {
  827.                 var r = e.call(this, t) || this;
  828.                 r.getNorms()[15].normFrom > m ? (r.getNorms()[15].normFrom = m, r.getNorms()[15].norm = m, r.getNorms()[15].normTo = m) : r.getNorms()[15].isCorridor() && r.getNorms()[15].normTo > m && (r.getNorms()[15].normTo = m);
  829.                 var o = u.round(r._incomeRecommend.normFrom * a / 4, 0),
  830.                     s = u.round((r._incomeRecommend.normFrom - 4 * o - 4 * r.getNorms()[15].normFrom) / 9, 0);
  831.                 if (r._incomeRecommend.isCorridor()) {
  832.                     var l = u.round(r._incomeRecommend.normTo * a / 4, 1),
  833.                         d = u.round((r._incomeRecommend.normTo - 4 * l - 4 * r.getNorms()[15].normTo) / 9, 0);
  834.                     r._norms[i.cFAT] = new n.default(s, s, d)
  835.                 } else r._norms[i.cFAT] = new n.default(s, -1, -1);
  836.                 return r.fillFats(), r
  837.             }
  838.             return r.__extends(t, e), t.getProteinPercent = function() {
  839.                 return u.round(100 * a, 2) + "%"
  840.             }, t.getFatPercent = function() {
  841.                 return u.round(72, 2) + "% и выше"
  842.             }, t.getCarbPercent = function() {
  843.                 return u.round(10, 2) + "%, max " + m + " г"
  844.             }, t.prototype.proteinPercent = function() {
  845.                 return a
  846.             }, t.prototype.fatPercent = function() {
  847.                 return .72
  848.             }, t.prototype.carbPercent = function() {
  849.                 return .1
  850.             }, t
  851.         }(o.default);
  852.     t.default = s
  853. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightProtein", ["require", "exports", "tslib", "./MethodOfCalculationEnergy_Lose_Weight", "lodash"], function(e, t, r, o, n) {
  854.     "use strict";
  855.     Object.defineProperty(t, "__esModule", {
  856.         value: !0
  857.     });
  858.     var i = function(e) {
  859.         function t() {
  860.             return null !== e && e.apply(this, arguments) || this
  861.         }
  862.         return r.__extends(t, e), t.getProteinPercent = function() {
  863.             return n.round(40, 2) + "%"
  864.         }, t.getFatPercent = function() {
  865.             return n.round(30, 2) + "%"
  866.         }, t.getCarbPercent = function() {
  867.             return n.round(30, 2) + "%"
  868.         }, t.prototype.proteinPercent = function() {
  869.             return .4
  870.         }, t.prototype.fatPercent = function() {
  871.             return .3
  872.         }, t.prototype.carbPercent = function() {
  873.             return .3
  874.         }, t
  875.     }(o.default);
  876.     t.default = i
  877. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Lose_WeightOld", ["require", "exports", "tslib", "./NutrientsHelper", "lodash", "modules/Constant/lib/index", "./AMethodOfCalculationEnergy", "./NutrientsNormItem"], function(e, t, r, o, n, i, u, a) {
  878.     "use strict";
  879.     Object.defineProperty(t, "__esModule", {
  880.         value: !0
  881.     });
  882.     var m = function(e) {
  883.         function t(t, r) {
  884.             void 0 === r && (r = !1);
  885.             var u = e.call(this, t) || this;
  886.             u.withoutSport = r;
  887.             var m = u.calculateCalorie(t);
  888.             if (u._outcomeMain = m.outcomeMain, u._metabolism = m.metabolism, 0 === t.outcomeSport || 1 == u.withoutSport) u._incomeRecommend = new a.default(n.round(m.incomeRecommendStart, 0)), u._incomeMin = n.round(u._metabolism, 0);
  889.             else {
  890.                 var s = 300,
  891.                     l = 600;
  892.                 1 === t.sex && (s = 400, l = 700);
  893.                 var d = 0;
  894.                 if (d = t.outcomeSport <= s ? t.outcomeSport : t.outcomeSport <= l ? n.round(s + (t.outcomeSport - s) / 2, 0) : n.round(s + (l - s) / 2, 0), m.incomeRecommendStart - t.outcomeSport >= u._metabolism) u._incomeMin = u._metabolism, m.incomeRecommendEnd = n.round(m.incomeRecommendStart + d, 0);
  895.                 else {
  896.                     var _ = u._metabolism - (m.incomeRecommendStart - d);
  897.                     u._incomeMin = n.round(u._metabolism + _, 0), m.incomeRecommendEnd = n.round(m.incomeRecommendStart + d, 0), m.incomeRecommendStart = n.round(m.incomeRecommendStart + _, 0)
  898.                 }
  899.                 u._incomeRecommend = new a.default(m.incomeRecommendStart, m.incomeRecommendStart, m.incomeRecommendEnd)
  900.             }
  901.             u._outcomeSport = t.outcomeSport, u._norms[i.cCALORIE] = u._incomeRecommend;
  902.             var c = .18,
  903.                 h = .32;
  904.             t.id_intensity_of_labour >= 4 && (c = .18, h = .3);
  905.             var f = u._outcomeMain * c / 4;
  906.             u._norms[i.cPROTEIN] = new a.default(n.round(f, 0));
  907.             var p = u._outcomeMain * h / 9;
  908.             if (u._norms[i.cFAT] = new a.default(n.round(p, 0)), u._incomeRecommend.isCorridor()) {
  909.                 var g = n.round((m.incomeRecommendEnd - (4 * f + 9 * p)) / 4, 0),
  910.                     F = n.round((m.incomeRecommendStart - (4 * f + 9 * p)) / 4, 0);
  911.                 u._norms[i.cCARBOHYDRATE] = new a.default(F, F, g)
  912.             } else {
  913.                 var F = n.round((m.incomeRecommendStart - (4 * f + 9 * p)) / 4, 0);
  914.                 u._norms[i.cCARBOHYDRATE] = new a.default(F)
  915.             }
  916.             return n.forOwn(u.calculateTypeOfFat(u._outcomeMain, u._norms[i.cFAT].norm), function(e, t) {
  917.                 this._norms[t] = e
  918.             }, u), n.forOwn(o.default.calculateTypeOfFatUser(t.user_nutrients_norm), function(e, t) {
  919.                 this._norms[t] = e
  920.             }, u), u
  921.         }
  922.         return r.__extends(t, e), t.getProteinPercent = function() {
  923.             return ""
  924.         }, t.getFatPercent = function() {
  925.             return ""
  926.         }, t.getCarbPercent = function() {
  927.             return ""
  928.         }, t.prototype.calculateCalorie = function(e) {
  929.             return n.round(e.weight / Math.pow(e.height / 100, 2), 1) <= 25 || (e.weight = n.round(25 * Math.pow(e.height / 100, 2), 1), e.updateWeightReasonBMI = !0), 2 == e.id_intensity_of_labour ? o.default.calculateCalorie(e, -20, -12) : o.default.calculateCalorie(e, -22, -12)
  930.         }, t.prototype.calculateTypeOfFat = function(e, t) {
  931.             var r = {},
  932.                 o = .1 * e / 9;
  933.             r[i.cNGK] = new a.default(0, 0, n.round(o, 1));
  934.             var u = .06 * e / 9,
  935.                 m = .11 * e / 9;
  936.             r[i.cPNGK] = new a.default(0, n.round(u, 1), n.round(m, 1));
  937.             var s = .005 * e / 9,
  938.                 l = .02 * e / 9;
  939.             r[i.cOMEGA3] = new a.default(0, n.round(s, 1), n.round(l, 1));
  940.             var d = .025 * e / 9,
  941.                 _ = .09 * e / 9;
  942.             r[i.cOMEGA6] = new a.default(0, n.round(d, 1), n.round(_, 1));
  943.             var c = t - .22 * e / 9,
  944.                 h = t - .06 * e / 9;
  945.             r[i.cMNGK] = new a.default(0, n.round(c, 1), n.round(h, 1));
  946.             var f = .01 * e / 9;
  947.             return r[i.cTRANSFAT] = new a.default(0, 0, n.round(f, 1)), r
  948.         }, t
  949.     }(u.default);
  950.     t.default = m
  951. }), define("modules/Nutrients/lib/ParamsForCalculateNormsOfNutrients", ["require", "exports", "./IntensityOfLabour", "./MethodOfCalculationEnergy_Gain_Weight", "./MethodOfCalculationEnergy_Lose_Weight", "./MethodOfCalculationEnergy_Mifflina", "./MethodOfCalculationEnergy_RussianMR", "./MethodOfCalculationNutrients_RussianMR", "modules/Constant/lib/index", "lodash", "./MethodOfCalculationEnergy_UsersV2", "modules/Utils/lib/Utils", "./MethodOfCalculationEnergy_Lose_WeightLowCarb", "./MethodOfCalculationEnergy_Lose_WeightLowFat", "./MethodOfCalculationEnergy_Lose_WeightKeto", "./MethodOfCalculationEnergy_Lose_WeightProtein", "./MethodOfCalculationEnergy_Lose_WeightOld"], function(e, t, r, o, n, i, u, a, m, s, l, d, _, c, h, f, p) {
  952.     "use strict";
  953.     Object.defineProperty(t, "__esModule", {
  954.         value: !0
  955.     });
  956.     var g = function() {
  957.         function e() {
  958.             this.age = 30, this.sex = 2, this.height = 160, this.weight = 60, this.id_intensity_of_labour = 3, this.id_pregnancy = 0, this.user_nutrients_norm = {}, this.user_calorie_norm = {}, this.method_of_calculation_energy = 0, this.method_of_calculation_vitamins_minerals = 0, this.outcomeSport = 0, this.updateWeightReasonBMI = !1, this.somatotype = 1, this.resultNorms = null
  959.         }
  960.         return e.prototype.getMethodOfCalculationEnergy = function() {
  961.             var e;
  962.             return e = this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA ? new i.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR ? new u.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT ? new o.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT ? new n.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_USER ? new l.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT ? new l.default(this, !0) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_WITHOUT_SPORT ? new p.default(this, !0) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_CARB ? new _.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_FAT ? new c.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_KETO ? new h.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_PROTEIN ? new f.default(this) : this.method_of_calculation_energy === m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_OLD ? new p.default(this) : new i.default(this), this.resultNorms && e.fillFromResultNorms(), e
  963.         }, e.prototype.getMethodOfCalculationNutrients = function(e, t) {
  964.             void 0 === e && (e = 0), void 0 === t && (t = 0);
  965.             var r = new a.default(this, e, t);
  966.             return this.resultNorms && r.fillFromResultNorms(), r
  967.         }, e.prototype.get_intensity_of_labour = function() {
  968.             return r.default.byId(this.id_intensity_of_labour)
  969.         }, e.getMethodOfCalculationEnergy = function(e, t, r) {
  970.             return t = t || 18, r = r || 0, t < 18 || 0 !== r ? {
  971.                 id: m.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR,
  972.                 title: "Методика расчета норм калорийности, белков, жиров и углеводов по методическим рекомендациям МР 2.3.1.2432 -08"
  973.             } : e === m.PURPOSE_LOSE_WEIGHT ? {
  974.                 id: m.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT,
  975.                 title: 'Методика расчета норм калорийности, белков, жиров и углеводов "Сбалансированное похудение"'
  976.             } : e === m.PURPOSE_GAIN_WEIGHT ? {
  977.                 id: m.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT,
  978.                 title: 'Методика расчета норм калорийности, белков, жиров и углеводов "Набор веса"'
  979.             } : {
  980.                 id: m.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA,
  981.                 title: 'Методика расчета норм калорийности, белков, жиров и углеводов "Сбалансированное питание"'
  982.             }
  983.         }, e.prototype.createClone = function() {
  984.             var t = new e;
  985.             return t.age = this.age, t.sex = this.sex, t.height = this.height, t.weight = this.weight, t.id_pregnancy = this.id_pregnancy, t.id_intensity_of_labour = this.id_intensity_of_labour, t.user_nutrients_norm = s.clone(this.user_nutrients_norm, !0), t.user_calorie_norm = s.clone(this.user_calorie_norm), t.method_of_calculation_energy = this.method_of_calculation_energy, t.method_of_calculation_vitamins_minerals = this.method_of_calculation_vitamins_minerals, t.outcomeSport = this.outcomeSport, t.somatotype = this.somatotype, t
  986.         }, e.prototype.toObject = function() {
  987.             return {
  988.                 age: this.age,
  989.                 sex: this.sex,
  990.                 height: this.height,
  991.                 weight: this.weight,
  992.                 id_pregnancy: this.id_pregnancy,
  993.                 id_intensity_of_labour: this.id_intensity_of_labour,
  994.                 user_nutrients_norm: this.user_nutrients_norm,
  995.                 user_calorie_norm: this.user_calorie_norm,
  996.                 method_of_calculation_energy: this.method_of_calculation_energy,
  997.                 method_of_calculation_vitamins_minerals: this.method_of_calculation_vitamins_minerals,
  998.                 outcomeSport: this.outcomeSport,
  999.                 somatotype: this.somatotype
  1000.             }
  1001.         }, e.prototype.fromObject = function(e, t) {
  1002.             var r = this;
  1003.             if (void 0 === e && (e = {}), void 0 === t && (t = null), e && s.isObject(e)) {
  1004.                 var o = !1,
  1005.                     n = !1;
  1006.                 if (s.isObject(e.params)) {
  1007.                     var i = e.params;
  1008.                     if (i.sex && (this.sex = d.toNumber(i.sex)), i.age && (this.age = d.toNumber(i.age)), i.height && (this.height = d.toNumber(i.height)), i.weight && (this.weight = d.toNumber(i.weight), o = !0), i.id_pregnancy && (this.id_pregnancy = d.toNumber(i.id_pregnancy)), i.id_intensity_of_labour && (this.id_intensity_of_labour = d.toNumber(i.id_intensity_of_labour)), i.user_nutrients_norm && (this.user_nutrients_norm = d.toObject(i.user_nutrients_norm)), i.user_calorie_norm && (this.user_calorie_norm = d.toObject(i.user_calorie_norm)), i.method_of_calculation_energy && (this.method_of_calculation_energy = d.toNumber(i.method_of_calculation_energy)), i.method_of_calculation_vitamins_minerals && (this.method_of_calculation_vitamins_minerals = d.toNumber(i.method_of_calculation_vitamins_minerals)), i.outcomeSport && (null != t && t != d.toNumber(i.outcomeSport) ? n = !0 : this.outcomeSport = d.toNumber(i.outcomeSport)), i.resultNorms) {
  1009.                         var u = d.toObject(i.resultNorms);
  1010.                         n ? (this.resultNorms = {}, s.forOwn(i.resultNorms, function(e, t) {
  1011.                             11 == t || 12 == t || 13 == t || 14 == t || 15 == t || (r.resultNorms[t] = e)
  1012.                         })) : this.resultNorms = u
  1013.                     }
  1014.                 }
  1015.                 s.isObject(e.c) && (this.resultNorms || (this.resultNorms = {}), !this.resultNorms.ocm && e.c.ocm && (this.resultNorms.ocm = {
  1016.                     n: d.toNumber(e.c.ocm)
  1017.                 })), !o && e.w && (this.weight = d.toNumber(e.w))
  1018.             }
  1019.         }, e
  1020.     }();
  1021.     t.default = g
  1022. }), define("modules/Nutrients/lib/NutrientsNorm", ["require", "exports", "./NutrientsNormItem", "./ParamsForCalculateNormsOfNutrients", "modules/Constant/lib/index", "lodash"], function(e, t, r, o, n, i) {
  1023.     "use strict";
  1024.     Object.defineProperty(t, "__esModule", {
  1025.         value: !0
  1026.     });
  1027.     var u = function() {
  1028.         function e() {
  1029.             this.perDays = 0, this.params_for_nutrients_norm = [], this._norms_of_nutrients = {}, this.metabolism = 0, this.incomeMin = 0, this.incomeRecommend = null, this.calorieCorridor = {
  1030.                 start: 0,
  1031.                 end: 0
  1032.             }, this.outcomeMain = 0, this.outcomeSport = 0
  1033.         }
  1034.         return e.prototype.getParams = function(e) {
  1035.             return e = e || 0, null === this.params_for_nutrients_norm || 0 === this.params_for_nutrients_norm.length || e >= this.params_for_nutrients_norm.length ? null : this.params_for_nutrients_norm[e]
  1036.         }, e.prototype.toObject = function(e) {
  1037.             if (null === this.params_for_nutrients_norm) return {};
  1038.             if (1 == this.params_for_nutrients_norm.length) {
  1039.                 var t = this.getParams(0);
  1040.                 if (t) {
  1041.                     var r = t.toObject();
  1042.                     return e && (r.resultNorms = {
  1043.                         voo: {
  1044.                             n: this.metabolism
  1045.                         },
  1046.                         ocm: {
  1047.                             n: this.outcomeMain
  1048.                         }
  1049.                     }, i.forOwn(this._norms_of_nutrients, function(e, t) {
  1050.                         r.resultNorms[t] = e.toObject()
  1051.                     })), r
  1052.                 }
  1053.             }
  1054.             return {}
  1055.         }, e.prototype.setParams = function(e, t) {
  1056.             void 0 === t && (t = 1), i.isArray(e) ? e.forEach(function(e) {
  1057.                 this.params_for_nutrients_norm.push(e)
  1058.             }, this) : this.params_for_nutrients_norm.push(e), this.perDays = t
  1059.         }, e.prototype.element = function(e) {
  1060.             return !0 === this._norms_of_nutrients.hasOwnProperty(e) ? this._norms_of_nutrients[e] : new r.default(0)
  1061.         }, e.prototype._fillNormsOfNutrients = function(e) {
  1062.             for (var t in e) e.hasOwnProperty(t) && (!1 === this._norms_of_nutrients.hasOwnProperty(t) && (this._norms_of_nutrients[t] = new r.default(0)), this._norms_of_nutrients[t].add(e[t]))
  1063.         }, e.prototype.calculateNorms = function() {
  1064.             this._norms_of_nutrients = {}, this.outcomeMain = 0, this.metabolism = 0, this.incomeMin = 0, this.calorieCorridor = {
  1065.                 start: 0,
  1066.                 end: 0
  1067.             }, this.incomeRecommend = new r.default(0), this.outcomeSport = 0;
  1068.             for (var e = this.params_for_nutrients_norm.length, t = 0; t < e; t++) {
  1069.                 var o = this.params_for_nutrients_norm[t],
  1070.                     n = o.getMethodOfCalculationEnergy(),
  1071.                     i = n.getNorms();
  1072.                 this._fillNormsOfNutrients(i), this.metabolism = this.metabolism + n.metabolism(), this.outcomeMain = this.outcomeMain + n.outcomeMain(), this.incomeMin = this.incomeMin + n.incomeMin(), this.calorieCorridor.start = this.calorieCorridor.start + n.calorieCorridor().start, this.calorieCorridor.end = this.calorieCorridor.end + n.calorieCorridor().end, this.incomeRecommend.add(n.incomeRecommend()), this.outcomeSport = this.outcomeSport + n.outcomeSport();
  1073.                 var u = o.getMethodOfCalculationNutrients(n.outcomeMain(), n.outcomeSport()),
  1074.                     a = u.getNorms();
  1075.                 this._fillNormsOfNutrients(a)
  1076.             }
  1077.         }, e.prototype.getNormsOfNutrients = function() {
  1078.             return this._norms_of_nutrients
  1079.         }, e.sumNorms = function(t) {
  1080.             var r = new e,
  1081.                 o = 0,
  1082.                 n = i.chain(t).compact().forEach(function(e) {
  1083.                     o += e.perDays
  1084.                 }).map(function(e) {
  1085.                     return e.params_for_nutrients_norm
  1086.                 }).flatten().value();
  1087.             return r.setParams(n, o), r.calculateNorms(), r
  1088.         }, e.getDefault = function() {
  1089.             if (null === e._default_nutrients_norm) {
  1090.                 var t = new o.default;
  1091.                 t.sex = 2, t.age = 35, t.height = 160, t.weight = 60, t.id_intensity_of_labour = 2, t.method_of_calculation_energy = n.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA;
  1092.                 var r = new e;
  1093.                 r.setParams(t), r.calculateNorms(), e._default_nutrients_norm = r
  1094.             }
  1095.             return this._default_nutrients_norm
  1096.         }, e._default_nutrients_norm = null, e
  1097.     }();
  1098.     t.default = u
  1099. }), define("modules/Nutrients/lib/NutrientsList", ["require", "exports", "./NutrientsNormItem", "./NutrientsNorm", "modules/Constant/lib/index", "lodash"], function(e, t, r, o, n, i) {
  1100.     "use strict";
  1101.     Object.defineProperty(t, "__esModule", {
  1102.         value: !0
  1103.     });
  1104.     var u = function() {
  1105.         function e() {
  1106.             this.id = -1, this.name = "", this.name2 = "", this.nameShort = "", this.unit = "", this.norm = new r.default, this.round = 4, this.barColor = "", this.inRating = !1, this.inDiagram = !1, this.maxValueForFilter = 0, this.isUser = !1, this.groupId = 0, this.isDetailed = !1, this.group = a.getGroup(this.groupId)
  1107.         }
  1108.         return e.prototype.nameWithUnit = function() {
  1109.             return "" === this.unit ? this.name : this.name + " (" + this.unit + ")"
  1110.         }, e.prototype.fromObject = function(e, t) {
  1111.             return e = e || {}, this.id = Number(i.get(e, "id", 0)), this.name = i.get(e, "name", ""), this.name2 = i.get(e, "name2", ""), this.unit = i.get(e, "unit", ""), this.nameShort = i.get(e, "nameShort", ""), this.round = i.get(e, "round", 4), this.barColor = i.get(e, "barColor", ""), this.inRating = i.get(e, "inRating", !1), this.inDiagram = i.get(e, "inDg", !1), this.isUser = i.get(e, "isUser", !1), this.norm = t, this.maxValueForFilter = i.round(i.get(e, "maxValueForFilter", this.norm.norm), 1), this.groupId = i.get(e, "group", 0), this.isDetailed = !1 !== i.get(e, "isDetailed", !1), this.group = a.getGroup(this.groupId), this
  1112.         }, e.prototype.isCPFU = function() {
  1113.             return this.id === n.cCALORIE || this.id === n.cPROTEIN || this.id === n.cFAT || this.id === n.cCARBOHYDRATE
  1114.         }, e.prototype.isCalorie = function() {
  1115.             return this.id === n.cCALORIE
  1116.         }, e.prototype.isIds = function(e) {
  1117.             return -1 !== i.indexOf(e, this.id)
  1118.         }, e
  1119.     }();
  1120.     t.Nutrient = u;
  1121.     var a = function() {
  1122.         function e(t) {
  1123.             this.nutrients_norm = null, this._nutrients = {}, this._nutrientCache = {}, t = t || {}, this._nutrients = e._getList(), void 0 !== t.nutrients && i.isArray(t.nutrients) && t.nutrients.forEach(function(e) {
  1124.                 this._nutrients[e.id] = {
  1125.                     name: e.name,
  1126.                     unit: "",
  1127.                     isUser: !0
  1128.                 }, this._nutrients.order.push(e.id)
  1129.             }, this), void 0 !== t.norm ? this.nutrients_norm = t.norm : this.nutrients_norm = o.default.getDefault()
  1130.         }
  1131.         return e.prototype.getNorms = function() {
  1132.             return this.nutrients_norm
  1133.         }, e.prototype.getList = function() {
  1134.             return this._nutrients.order.map(function(e) {
  1135.                 return this.byId(e)
  1136.             }, this)
  1137.         }, e.prototype.forEach = function(e) {
  1138.             var t = this;
  1139.             this._nutrients.order.forEach(function(r) {
  1140.                 e(t.byId(r))
  1141.             })
  1142.         }, e.prototype.map = function(e) {
  1143.             var t = this;
  1144.             return this._nutrients.order.map(function(r) {
  1145.                 return e(t.byId(r))
  1146.             })
  1147.         }, e.prototype.byId = function(e) {
  1148.             if (this._nutrientCache.hasOwnProperty("" + e)) return this._nutrientCache["" + e];
  1149.             if (this._nutrients.hasOwnProperty(e)) {
  1150.                 var t = new u;
  1151.                 return this._nutrientCache["" + e] = t.fromObject(this._nutrients[e], this.nutrients_norm.element(e)), t
  1152.             }
  1153.             return !1 === this._nutrientCache.hasOwnProperty("notFound") && (this._nutrientCache.notFound = new u), this._nutrientCache.notFound
  1154.         }, e.getGroup = function(t) {
  1155.             var r = {
  1156.                 name: "",
  1157.                 id: 0,
  1158.                 parent_id: null,
  1159.                 level: 0
  1160.             };
  1161.             return 0 === t ? r : this._groupCache[t] ? this._groupCache[t] : (e._getList().groups.forEach(function(e) {
  1162.                 e.id == t && (this._groupCache[t] = e, r = e)
  1163.             }, this), r)
  1164.         }, e._groupCache = [], e.Nutrient = u, e._getList = function() {
  1165.             return {
  1166.                 11: {
  1167.                     name: "Калорийность",
  1168.                     id: 11,
  1169.                     nameShort: "кКал",
  1170.                     group: "67",
  1171.                     unit: "кКал",
  1172.                     round: 1,
  1173.                     barColor: "#FF6B2D",
  1174.                     maxValueForFilter: 902
  1175.                 },
  1176.                 13: {
  1177.                     name: "Белки",
  1178.                     id: 13,
  1179.                     nameShort: "Б",
  1180.                     group: "67",
  1181.                     unit: "г",
  1182.                     round: 1,
  1183.                     barColor: "#00CC00",
  1184.                     maxValueForFilter: 87.75
  1185.                 },
  1186.                 14: {
  1187.                     name: "Жиры",
  1188.                     id: 14,
  1189.                     nameShort: "Ж",
  1190.                     group: "67",
  1191.                     unit: "г",
  1192.                     round: 1,
  1193.                     barColor: "#00CC00",
  1194.                     maxValueForFilter: 100
  1195.                 },
  1196.                 15: {
  1197.                     name: "Углеводы",
  1198.                     id: 15,
  1199.                     nameShort: "У",
  1200.                     group: "67",
  1201.                     unit: "г",
  1202.                     round: 1,
  1203.                     barColor: "#00CC00",
  1204.                     maxValueForFilter: 99.98
  1205.                 },
  1206.                 87: {
  1207.                     name: "Алкоголь (этиловый спирт)",
  1208.                     id: 87,
  1209.                     group: "67",
  1210.                     unit: "г",
  1211.                     round: 1,
  1212.                     maxValueForFilter: 42.5
  1213.                 },
  1214.                 19: {
  1215.                     name: "Органические кислоты",
  1216.                     id: 19,
  1217.                     nameShort: "Кислоты",
  1218.                     group: "67",
  1219.                     name2: "органическими кислотами",
  1220.                     unit: "г",
  1221.                     round: 1,
  1222.                     maxValueForFilter: 1330.2
  1223.                 },
  1224.                 18: {
  1225.                     name: "Пищевые волокна",
  1226.                     id: 18,
  1227.                     nameShort: "Вол.",
  1228.                     group: "67",
  1229.                     name2: "пищевыми волокнами",
  1230.                     unit: "г",
  1231.                     round: 1,
  1232.                     maxDose: 40,
  1233.                     barColor: "#FD7E00",
  1234.                     inRating: !1,
  1235.                     maxValueForFilter: 79.4
  1236.                 },
  1237.                 12: {
  1238.                     name: "Вода",
  1239.                     id: 12,
  1240.                     nameShort: "Вода",
  1241.                     group: "67",
  1242.                     unit: "г",
  1243.                     round: 0,
  1244.                     barColor: "#0051E6",
  1245.                     maxValueForFilter: 607
  1246.                 },
  1247.                 20: {
  1248.                     name: "Зола",
  1249.                     id: 20,
  1250.                     group: "67",
  1251.                     unit: "г",
  1252.                     round: 3,
  1253.                     maxValueForFilter: 100
  1254.                 },
  1255.                 85: {
  1256.                     name: "Витамин А, РЭ",
  1257.                     id: 85,
  1258.                     nameShort: "A",
  1259.                     group: "64",
  1260.                     name2: "витамином А",
  1261.                     unit: "мкг",
  1262.                     round: 1,
  1263.                     maxDose: 3e3,
  1264.                     barColor: "#F3DC00",
  1265.                     inRating: !0,
  1266.                     inDg: !0,
  1267.                     maxValueForFilter: 42200
  1268.                 },
  1269.                 21: {
  1270.                     name: "Ретинол",
  1271.                     id: 21,
  1272.                     nameShort: "A",
  1273.                     group: "64",
  1274.                     unit: "мг",
  1275.                     round: 3,
  1276.                     maxValueForFilter: 42.2
  1277.                 },
  1278.                 93: {
  1279.                     name: "альфа Каротин",
  1280.                     id: 93,
  1281.                     group: "64",
  1282.                     isDetailed: 1,
  1283.                     unit: "мкг",
  1284.                     round: 3,
  1285.                     maxValueForFilter: 14251
  1286.                 },
  1287.                 74: {
  1288.                     name: "бета Каротин",
  1289.                     id: 74,
  1290.                     nameShort: "b-car",
  1291.                     group: "64",
  1292.                     isDetailed: 1,
  1293.                     name2: "бэта-каротином",
  1294.                     unit: "мг",
  1295.                     round: 3,
  1296.                     barColor: "#F3DC00",
  1297.                     inRating: !0,
  1298.                     inDg: !0,
  1299.                     maxValueForFilter: 140
  1300.                 },
  1301.                 94: {
  1302.                     name: "бета Криптоксантин",
  1303.                     id: 94,
  1304.                     group: "64",
  1305.                     isDetailed: 1,
  1306.                     unit: "мкг",
  1307.                     round: 3,
  1308.                     maxValueForFilter: 6252
  1309.                 },
  1310.                 95: {
  1311.                     name: "Ликопин",
  1312.                     id: 95,
  1313.                     group: "64",
  1314.                     unit: "мкг",
  1315.                     round: 3,
  1316.                     maxValueForFilter: 46260
  1317.                 },
  1318.                 96: {
  1319.                     name: "Лютеин + Зеаксантин",
  1320.                     id: 96,
  1321.                     group: "64",
  1322.                     isDetailed: 1,
  1323.                     unit: "мкг",
  1324.                     round: 3,
  1325.                     maxValueForFilter: 19697
  1326.                 },
  1327.                 22: {
  1328.                     name: "Витамин Ð’1, тиамин",
  1329.                     id: 22,
  1330.                     nameShort: "Ð’1",
  1331.                     group: "64",
  1332.                     name2: "витамином B1",
  1333.                     unit: "мг",
  1334.                     round: 3,
  1335.                     barColor: "#F3DC00",
  1336.                     inRating: !0,
  1337.                     inDg: !0,
  1338.                     maxValueForFilter: 23.375
  1339.                 },
  1340.                 23: {
  1341.                     name: "Витамин Ð’2, рибофлавин",
  1342.                     id: 23,
  1343.                     nameShort: "B2",
  1344.                     group: "64",
  1345.                     name2: "витамином B2",
  1346.                     unit: "мг",
  1347.                     round: 3,
  1348.                     barColor: "#F3DC00",
  1349.                     inRating: !0,
  1350.                     inDg: !0,
  1351.                     maxValueForFilter: 17.5
  1352.                 },
  1353.                 57: {
  1354.                     name: "Витамин Ð’4, холин",
  1355.                     id: 57,
  1356.                     nameShort: "Холин",
  1357.                     group: "64",
  1358.                     name2: "холином",
  1359.                     unit: "мг",
  1360.                     round: 2,
  1361.                     maxDose: 3500,
  1362.                     barColor: "#F3DC00",
  1363.                     inRating: !0,
  1364.                     inDg: !0,
  1365.                     maxValueForFilter: 2403.3
  1366.                 },
  1367.                 24: {
  1368.                     name: "Витамин Ð’5, пантотеновая",
  1369.                     id: 24,
  1370.                     nameShort: "B5",
  1371.                     group: "64",
  1372.                     name2: "витамином B5",
  1373.                     unit: "мг",
  1374.                     round: 3,
  1375.                     barColor: "#F3DC00",
  1376.                     inRating: !0,
  1377.                     inDg: !0,
  1378.                     maxValueForFilter: 21.879
  1379.                 },
  1380.                 25: {
  1381.                     name: "Витамин Ð’6, пиридоксин",
  1382.                     id: 25,
  1383.                     nameShort: "B6",
  1384.                     group: "64",
  1385.                     name2: "витамином B6",
  1386.                     unit: "мг",
  1387.                     round: 3,
  1388.                     maxDose: 1e3,
  1389.                     barColor: "#F3DC00",
  1390.                     inRating: !0,
  1391.                     inDg: !0,
  1392.                     maxValueForFilter: 8
  1393.                 },
  1394.                 26: {
  1395.                     name: "Витамин Ð’9, фолаты",
  1396.                     id: 26,
  1397.                     nameShort: "B9",
  1398.                     group: "64",
  1399.                     name2: "витамином B9",
  1400.                     unit: "мкг",
  1401.                     round: 3,
  1402.                     maxDose: 1e4,
  1403.                     barColor: "#F3DC00",
  1404.                     inRating: !0,
  1405.                     inDg: !0,
  1406.                     maxValueForFilter: 5881
  1407.                 },
  1408.                 56: {
  1409.                     name: "Витамин Ð’12, кобаламин",
  1410.                     id: 56,
  1411.                     nameShort: "B12",
  1412.                     group: "64",
  1413.                     name2: "витамином B12",
  1414.                     unit: "мкг",
  1415.                     round: 3,
  1416.                     barColor: "#F3DC00",
  1417.                     inRating: !0,
  1418.                     inDg: !0,
  1419.                     maxValueForFilter: 98.89
  1420.                 },
  1421.                 123: {
  1422.                     name: "Витамин B12, добавленный",
  1423.                     id: 123,
  1424.                     group: "64",
  1425.                     isDetailed: 1,
  1426.                     unit: "мкг",
  1427.                     round: 3,
  1428.                     maxValueForFilter: 10.3
  1429.                 },
  1430.                 27: {
  1431.                     name: "Витамин C, аскорбиновая",
  1432.                     id: 27,
  1433.                     nameShort: "C",
  1434.                     group: "64",
  1435.                     name2: "витамином C",
  1436.                     unit: "мг",
  1437.                     round: 2,
  1438.                     maxDose: 2e3,
  1439.                     barColor: "#F3DC00",
  1440.                     inRating: !0,
  1441.                     inDg: !0,
  1442.                     maxValueForFilter: 2400
  1443.                 },
  1444.                 62: {
  1445.                     name: "Витамин D, кальциферол",
  1446.                     id: 62,
  1447.                     nameShort: "D",
  1448.                     group: "64",
  1449.                     name2: "витамином D",
  1450.                     unit: "мкг",
  1451.                     round: 3,
  1452.                     maxDose: 50,
  1453.                     barColor: "#F3DC00",
  1454.                     inRating: !0,
  1455.                     inDg: !0,
  1456.                     maxValueForFilter: 250
  1457.                 },
  1458.                 193: {
  1459.                     name: "Витамин D2, эргокальциферол",
  1460.                     id: 193,
  1461.                     group: "64",
  1462.                     isDetailed: 1,
  1463.                     unit: "мкг",
  1464.                     round: 3,
  1465.                     maxValueForFilter: 28.1
  1466.                 },
  1467.                 194: {
  1468.                     name: "Витамин D3, холекальциферол",
  1469.                     id: 194,
  1470.                     group: "64",
  1471.                     isDetailed: 1,
  1472.                     unit: "мкг",
  1473.                     round: 3,
  1474.                     maxValueForFilter: 27.4
  1475.                 },
  1476.                 86: {
  1477.                     name: "Витамин Е, альфа токоферол, ТЭ",
  1478.                     id: 86,
  1479.                     nameShort: "E",
  1480.                     group: "64",
  1481.                     name2: "витамином E",
  1482.                     unit: "мг",
  1483.                     round: 3,
  1484.                     maxDose: 300,
  1485.                     barColor: "#F3DC00",
  1486.                     inRating: !0,
  1487.                     inDg: !0,
  1488.                     maxValueForFilter: 149.4
  1489.                 },
  1490.                 97: {
  1491.                     name: "бета Токоферол",
  1492.                     id: 97,
  1493.                     group: "64",
  1494.                     isDetailed: 1,
  1495.                     unit: "мг",
  1496.                     round: 3,
  1497.                     maxValueForFilter: 8.3
  1498.                 },
  1499.                 98: {
  1500.                     name: "гамма Токоферол",
  1501.                     id: 98,
  1502.                     group: "64",
  1503.                     isDetailed: 1,
  1504.                     unit: "мг",
  1505.                     round: 3,
  1506.                     maxValueForFilter: 100.88
  1507.                 },
  1508.                 99: {
  1509.                     name: "дельта Токоферол",
  1510.                     id: 99,
  1511.                     group: "64",
  1512.                     isDetailed: 1,
  1513.                     unit: "мг",
  1514.                     round: 3,
  1515.                     maxValueForFilter: 30.88
  1516.                 },
  1517.                 122: {
  1518.                     name: "Витамин E, добавленный",
  1519.                     id: 122,
  1520.                     group: "64",
  1521.                     isDetailed: 1,
  1522.                     unit: "мг",
  1523.                     round: 3,
  1524.                     maxValueForFilter: 36.9
  1525.                 },
  1526.                 29: {
  1527.                     name: "Витамин Н, биотин",
  1528.                     id: 29,
  1529.                     nameShort: "H",
  1530.                     group: "64",
  1531.                     name2: "витамином H",
  1532.                     unit: "мкг",
  1533.                     round: 3,
  1534.                     barColor: "#F3DC00",
  1535.                     inRating: !0,
  1536.                     inDg: !0,
  1537.                     maxValueForFilter: 140
  1538.                 },
  1539.                 68: {
  1540.                     name: "Витамин К, филлохинон",
  1541.                     id: 68,
  1542.                     nameShort: "К",
  1543.                     group: "64",
  1544.                     name2: "витамином K",
  1545.                     unit: "мкг",
  1546.                     round: 1,
  1547.                     barColor: "#F3DC00",
  1548.                     inRating: !0,
  1549.                     inDg: !0,
  1550.                     maxValueForFilter: 1714.5
  1551.                 },
  1552.                 195: {
  1553.                     name: "Менахинон-4 (МК4)",
  1554.                     id: 195,
  1555.                     nameShort: "Витамин К2",
  1556.                     group: "64",
  1557.                     isDetailed: 1,
  1558.                     unit: "мкг",
  1559.                     round: 3,
  1560.                     maxValueForFilter: 41.7
  1561.                 },
  1562.                 196: {
  1563.                     name: "Дигидрофиллохинон",
  1564.                     id: 196,
  1565.                     group: "64",
  1566.                     isDetailed: 1,
  1567.                     unit: "мкг",
  1568.                     round: 3,
  1569.                     maxValueForFilter: 164.9
  1570.                 },
  1571.                 84: {
  1572.                     name: "Витамин Ð Ð , НЭ",
  1573.                     id: 84,
  1574.                     nameShort: "PP",
  1575.                     group: "64",
  1576.                     name2: "витамином PP",
  1577.                     unit: "мг",
  1578.                     round: 4,
  1579.                     maxDose: 60,
  1580.                     barColor: "#F3DC00",
  1581.                     inRating: !0,
  1582.                     inDg: !0,
  1583.                     maxValueForFilter: 127.5
  1584.                 },
  1585.                 30: {
  1586.                     name: "Ниацин",
  1587.                     id: 30,
  1588.                     nameShort: "PP",
  1589.                     group: "64",
  1590.                     isDetailed: 1,
  1591.                     unit: "мг",
  1592.                     round: 3,
  1593.                     maxValueForFilter: 82
  1594.                 },
  1595.                 103: {
  1596.                     name: "Бетаин",
  1597.                     id: 103,
  1598.                     group: "64",
  1599.                     unit: "мг",
  1600.                     round: 3,
  1601.                     maxValueForFilter: 630.4
  1602.                 },
  1603.                 32: {
  1604.                     name: "Калий, K",
  1605.                     id: 32,
  1606.                     nameShort: "K",
  1607.                     group: "65",
  1608.                     name2: "калием",
  1609.                     unit: "мг",
  1610.                     round: 2,
  1611.                     barColor: "#3498DB",
  1612.                     inRating: !0,
  1613.                     inDg: !0,
  1614.                     maxValueForFilter: 16500
  1615.                 },
  1616.                 33: {
  1617.                     name: "Кальций, Ca",
  1618.                     id: 33,
  1619.                     nameShort: "Ca",
  1620.                     group: "65",
  1621.                     name2: "кальцием",
  1622.                     unit: "мг",
  1623.                     round: 2,
  1624.                     maxDose: 2500,
  1625.                     barColor: "#3498DB",
  1626.                     inRating: !0,
  1627.                     inDg: !0,
  1628.                     maxValueForFilter: 7364
  1629.                 },
  1630.                 34: {
  1631.                     name: "Кремний, Si",
  1632.                     id: 34,
  1633.                     nameShort: "Si",
  1634.                     group: "65",
  1635.                     name2: "кремнием",
  1636.                     unit: "мг",
  1637.                     round: 3,
  1638.                     barColor: "#9B59B6",
  1639.                     inRating: !0,
  1640.                     inDg: !0,
  1641.                     maxValueForFilter: 1240
  1642.                 },
  1643.                 35: {
  1644.                     name: "Магний, Mg",
  1645.                     id: 35,
  1646.                     nameShort: "Mg",
  1647.                     group: "65",
  1648.                     name2: "магнием",
  1649.                     unit: "мг",
  1650.                     round: 2,
  1651.                     barColor: "#3498DB",
  1652.                     inRating: !0,
  1653.                     inDg: !0,
  1654.                     maxValueForFilter: 1416
  1655.                 },
  1656.                 36: {
  1657.                     name: "Натрий, Na",
  1658.                     id: 36,
  1659.                     nameShort: "Na",
  1660.                     group: "65",
  1661.                     name2: "натрием",
  1662.                     unit: "мг",
  1663.                     round: 2,
  1664.                     maxDose: 2400,
  1665.                     barColor: "#3498DB",
  1666.                     inDg: !0,
  1667.                     maxValueForFilter: 38946
  1668.                 },
  1669.                 37: {
  1670.                     name: "Сера, S",
  1671.                     id: 37,
  1672.                     nameShort: "S",
  1673.                     group: "65",
  1674.                     name2: "серой",
  1675.                     unit: "мг",
  1676.                     round: 2,
  1677.                     barColor: "#3498DB",
  1678.                     maxValueForFilter: 1340
  1679.                 },
  1680.                 38: {
  1681.                     name: "Фосфор, Ph",
  1682.                     id: 38,
  1683.                     nameShort: "Ph",
  1684.                     group: "65",
  1685.                     name2: "фосфором",
  1686.                     unit: "мг",
  1687.                     round: 1,
  1688.                     barColor: "#3498DB",
  1689.                     inRating: !0,
  1690.                     inDg: !0,
  1691.                     maxValueForFilter: 9918
  1692.                 },
  1693.                 39: {
  1694.                     name: "Хлор, Cl",
  1695.                     id: 39,
  1696.                     nameShort: "Cl",
  1697.                     group: "65",
  1698.                     name2: "хлором",
  1699.                     unit: "мг",
  1700.                     round: 2,
  1701.                     barColor: "#3498DB",
  1702.                     inRating: !0,
  1703.                     inDg: !0,
  1704.                     maxValueForFilter: 60077
  1705.                 },
  1706.                 40: {
  1707.                     name: "Алюминий, Al",
  1708.                     id: 40,
  1709.                     group: "66",
  1710.                     unit: "мкг",
  1711.                     round: 1,
  1712.                     maxValueForFilter: 1970
  1713.                 },
  1714.                 41: {
  1715.                     name: "Бор, B",
  1716.                     id: 41,
  1717.                     nameShort: "Бор",
  1718.                     group: "66",
  1719.                     name2: "бором",
  1720.                     unit: "мкг",
  1721.                     round: 1,
  1722.                     maxDose: 6e3,
  1723.                     barColor: "#9B59B6",
  1724.                     maxValueForFilter: 900
  1725.                 },
  1726.                 42: {
  1727.                     name: "Ванадий, V",
  1728.                     id: 42,
  1729.                     nameShort: "V",
  1730.                     group: "66",
  1731.                     name2: "ванадием",
  1732.                     unit: "мкг",
  1733.                     round: 2,
  1734.                     barColor: "#9B59B6",
  1735.                     maxValueForFilter: 400
  1736.                 },
  1737.                 31: {
  1738.                     name: "Железо, Fe",
  1739.                     id: 31,
  1740.                     nameShort: "Fe",
  1741.                     group: "66",
  1742.                     name2: "железом",
  1743.                     unit: "мг",
  1744.                     round: 3,
  1745.                     barColor: "#9B59B6",
  1746.                     inRating: !0,
  1747.                     inDg: !0,
  1748.                     maxValueForFilter: 133
  1749.                 },
  1750.                 43: {
  1751.                     name: "Йод, I",
  1752.                     id: 43,
  1753.                     nameShort: "I",
  1754.                     group: "66",
  1755.                     name2: "йодом",
  1756.                     unit: "мкг",
  1757.                     round: 2,
  1758.                     maxDose: 600,
  1759.                     barColor: "#9B59B6",
  1760.                     inRating: !0,
  1761.                     inDg: !0,
  1762.                     maxValueForFilter: 2500
  1763.                 },
  1764.                 44: {
  1765.                     name: "Кобальт, Co",
  1766.                     id: 44,
  1767.                     nameShort: "Co",
  1768.                     group: "66",
  1769.                     name2: "кобальтом",
  1770.                     unit: "мкг",
  1771.                     round: 3,
  1772.                     barColor: "#9B59B6",
  1773.                     inRating: !0,
  1774.                     inDg: !0,
  1775.                     maxValueForFilter: 1e4
  1776.                 },
  1777.                 63: {
  1778.                     name: "Литий, Li",
  1779.                     id: 63,
  1780.                     group: "66",
  1781.                     name2: "литием",
  1782.                     unit: "мкг",
  1783.                     round: 3,
  1784.                     maxValueForFilter: 138.7
  1785.                 },
  1786.                 45: {
  1787.                     name: "Марганец, Mn",
  1788.                     id: 45,
  1789.                     nameShort: "Mn",
  1790.                     group: "66",
  1791.                     name2: "марганцем",
  1792.                     unit: "мг",
  1793.                     round: 4,
  1794.                     maxDose: 5,
  1795.                     barColor: "#9B59B6",
  1796.                     inRating: !0,
  1797.                     inDg: !0,
  1798.                     maxValueForFilter: 133
  1799.                 },
  1800.                 46: {
  1801.                     name: "Медь, Cu",
  1802.                     id: 46,
  1803.                     nameShort: "Cu",
  1804.                     group: "66",
  1805.                     name2: "медью",
  1806.                     unit: "мкг",
  1807.                     round: 2,
  1808.                     maxDose: 5e3,
  1809.                     barColor: "#9B59B6",
  1810.                     inRating: !0,
  1811.                     inDg: !0,
  1812.                     maxValueForFilter: 15050
  1813.                 },
  1814.                 47: {
  1815.                     name: "Молибден, Mo",
  1816.                     id: 47,
  1817.                     nameShort: "Mo",
  1818.                     group: "66",
  1819.                     name2: "молибденом",
  1820.                     unit: "мкг",
  1821.                     round: 3,
  1822.                     maxDose: 600,
  1823.                     barColor: "#9B59B6",
  1824.                     inRating: !0,
  1825.                     inDg: !0,
  1826.                     maxValueForFilter: 847.5
  1827.                 },
  1828.                 48: {
  1829.                     name: "Никель, Ni",
  1830.                     id: 48,
  1831.                     nameShort: "Ni",
  1832.                     group: "66",
  1833.                     name2: "никелем",
  1834.                     unit: "мкг",
  1835.                     round: 3,
  1836.                     maxValueForFilter: 304
  1837.                 },
  1838.                 60: {
  1839.                     name: "Олово, Sn",
  1840.                     id: 60,
  1841.                     group: "66",
  1842.                     unit: "мкг",
  1843.                     round: 2,
  1844.                     maxValueForFilter: 140.9
  1845.                 },
  1846.                 59: {
  1847.                     name: "Рубидий, Rb",
  1848.                     id: 59,
  1849.                     group: "66",
  1850.                     unit: "мкг",
  1851.                     round: 1,
  1852.                     maxValueForFilter: 1089.5
  1853.                 },
  1854.                 58: {
  1855.                     name: "Селен, Se",
  1856.                     id: 58,
  1857.                     nameShort: "Se",
  1858.                     group: "66",
  1859.                     name2: "селеном",
  1860.                     unit: "мкг",
  1861.                     round: 3,
  1862.                     maxDose: 300,
  1863.                     barColor: "#9B59B6",
  1864.                     inRating: !0,
  1865.                     inDg: !0,
  1866.                     maxValueForFilter: 1917
  1867.                 },
  1868.                 51: {
  1869.                     name: "Стронций, Sr",
  1870.                     id: 51,
  1871.                     group: "66",
  1872.                     unit: "мкг",
  1873.                     round: 2,
  1874.                     maxValueForFilter: 500
  1875.                 },
  1876.                 49: {
  1877.                     name: "Титан, Ti",
  1878.                     id: 49,
  1879.                     group: "66",
  1880.                     unit: "мкг",
  1881.                     round: 2,
  1882.                     maxValueForFilter: 300
  1883.                 },
  1884.                 50: {
  1885.                     name: "Фтор, F",
  1886.                     id: 50,
  1887.                     nameShort: "F",
  1888.                     group: "66",
  1889.                     name2: "фтором",
  1890.                     unit: "мкг",
  1891.                     round: 2,
  1892.                     maxDose: 1e4,
  1893.                     barColor: "#9B59B6",
  1894.                     inRating: !0,
  1895.                     inDg: !0,
  1896.                     maxValueForFilter: 1e4
  1897.                 },
  1898.                 52: {
  1899.                     name: "Хром, Cr",
  1900.                     id: 52,
  1901.                     nameShort: "Cr",
  1902.                     group: "66",
  1903.                     name2: "хромом",
  1904.                     unit: "мкг",
  1905.                     round: 2,
  1906.                     maxDose: 600,
  1907.                     barColor: "#9B59B6",
  1908.                     inRating: !0,
  1909.                     inDg: !0,
  1910.                     maxValueForFilter: 107.9
  1911.                 },
  1912.                 53: {
  1913.                     name: "Цинк, Zn",
  1914.                     id: 53,
  1915.                     nameShort: "Zn",
  1916.                     group: "66",
  1917.                     name2: "цинком",
  1918.                     unit: "мг",
  1919.                     round: 4,
  1920.                     maxDose: 25,
  1921.                     barColor: "#9B59B6",
  1922.                     inRating: !0,
  1923.                     inDg: !0,
  1924.                     maxValueForFilter: 90.95
  1925.                 },
  1926.                 61: {
  1927.                     name: "Цирконий, Zr",
  1928.                     id: 61,
  1929.                     group: "66",
  1930.                     unit: "мкг",
  1931.                     round: 2,
  1932.                     maxValueForFilter: 61.4
  1933.                 },
  1934.                 17: {
  1935.                     name: "Крахмал и декстрины",
  1936.                     id: 17,
  1937.                     group: "211",
  1938.                     unit: "г",
  1939.                     round: 3,
  1940.                     maxValueForFilter: 83.5
  1941.                 },
  1942.                 16: {
  1943.                     name: "Моно- и дисахариды (сахара)",
  1944.                     id: 16,
  1945.                     group: "211",
  1946.                     unit: "г",
  1947.                     round: 1,
  1948.                     maxValueForFilter: 99.9
  1949.                 },
  1950.                 162: {
  1951.                     name: "Галактоза",
  1952.                     id: 162,
  1953.                     group: "211",
  1954.                     isDetailed: 1,
  1955.                     unit: "г",
  1956.                     round: 3,
  1957.                     maxValueForFilter: .87
  1958.                 },
  1959.                 160: {
  1960.                     name: "Глюкоза (декстроза)",
  1961.                     id: 160,
  1962.                     group: "211",
  1963.                     isDetailed: 1,
  1964.                     unit: "г",
  1965.                     round: 3,
  1966.                     maxValueForFilter: 57
  1967.                 },
  1968.                 158: {
  1969.                     name: "Лактоза",
  1970.                     id: 158,
  1971.                     group: "211",
  1972.                     isDetailed: 1,
  1973.                     unit: "г",
  1974.                     round: 3,
  1975.                     maxValueForFilter: 56
  1976.                 },
  1977.                 159: {
  1978.                     name: "Мальтоза",
  1979.                     id: 159,
  1980.                     group: "211",
  1981.                     isDetailed: 1,
  1982.                     unit: "г",
  1983.                     round: 3,
  1984.                     maxValueForFilter: 8.11
  1985.                 },
  1986.                 157: {
  1987.                     name: "Сахароза",
  1988.                     id: 157,
  1989.                     group: "211",
  1990.                     isDetailed: 1,
  1991.                     unit: "г",
  1992.                     round: 3,
  1993.                     maxValueForFilter: 99.8
  1994.                 },
  1995.                 161: {
  1996.                     name: "Фруктоза",
  1997.                     id: 161,
  1998.                     group: "211",
  1999.                     isDetailed: 1,
  2000.                     unit: "г",
  2001.                     round: 3,
  2002.                     maxValueForFilter: 42.83
  2003.                 },
  2004.                 209: {
  2005.                     name: "Незаменимые аминокислоты",
  2006.                     id: 209,
  2007.                     group: "201",
  2008.                     unit: "г",
  2009.                     round: 3,
  2010.                     maxValueForFilter: 0
  2011.                 },
  2012.                 114: {
  2013.                     name: "Аргинин*",
  2014.                     id: 114,
  2015.                     group: "201",
  2016.                     unit: "г",
  2017.                     round: 3,
  2018.                     maxValueForFilter: 1832
  2019.                 },
  2020.                 113: {
  2021.                     name: "Валин",
  2022.                     id: 113,
  2023.                     group: "201",
  2024.                     unit: "г",
  2025.                     round: 3,
  2026.                     maxValueForFilter: 6.17
  2027.                 },
  2028.                 115: {
  2029.                     name: "Гистидин*",
  2030.                     id: 115,
  2031.                     group: "201",
  2032.                     unit: "г",
  2033.                     round: 3,
  2034.                     maxValueForFilter: 2.999
  2035.                 },
  2036.                 106: {
  2037.                     name: "Изолейцин",
  2038.                     id: 106,
  2039.                     group: "201",
  2040.                     unit: "г",
  2041.                     round: 3,
  2042.                     maxValueForFilter: 5.023
  2043.                 },
  2044.                 107: {
  2045.                     name: "Лейцин",
  2046.                     id: 107,
  2047.                     group: "201",
  2048.                     unit: "г",
  2049.                     round: 3,
  2050.                     maxValueForFilter: 7.2
  2051.                 },
  2052.                 108: {
  2053.                     name: "Лизин",
  2054.                     id: 108,
  2055.                     group: "201",
  2056.                     unit: "г",
  2057.                     round: 3,
  2058.                     maxValueForFilter: 6.69
  2059.                 },
  2060.                 109: {
  2061.                     name: "Метионин",
  2062.                     id: 109,
  2063.                     group: "201",
  2064.                     unit: "г",
  2065.                     round: 3,
  2066.                     maxValueForFilter: 3.204
  2067.                 },
  2068.                 207: {
  2069.                     name: "Метионин + Цистеин",
  2070.                     id: 207,
  2071.                     group: "201",
  2072.                     unit: "г",
  2073.                     round: 3,
  2074.                     maxValueForFilter: 5.13
  2075.                 },
  2076.                 105: {
  2077.                     name: "Треонин",
  2078.                     id: 105,
  2079.                     group: "201",
  2080.                     unit: "г",
  2081.                     round: 3,
  2082.                     maxValueForFilter: 3.685
  2083.                 },
  2084.                 104: {
  2085.                     name: "Триптофан",
  2086.                     id: 104,
  2087.                     group: "201",
  2088.                     unit: "г",
  2089.                     round: 3,
  2090.                     maxValueForFilter: 1.27
  2091.                 },
  2092.                 111: {
  2093.                     name: "Фенилаланин",
  2094.                     id: 111,
  2095.                     group: "201",
  2096.                     unit: "г",
  2097.                     round: 3,
  2098.                     maxValueForFilter: 5.181
  2099.                 },
  2100.                 208: {
  2101.                     name: "Фенилаланин+Тирозин",
  2102.                     id: 208,
  2103.                     group: "201",
  2104.                     unit: "г",
  2105.                     round: 3,
  2106.                     maxValueForFilter: 8.26
  2107.                 },
  2108.                 210: {
  2109.                     name: "Заменимые аминокислоты",
  2110.                     id: 210,
  2111.                     group: "205",
  2112.                     unit: "г",
  2113.                     round: 3,
  2114.                     maxValueForFilter: 0
  2115.                 },
  2116.                 116: {
  2117.                     name: "Аланин",
  2118.                     id: 116,
  2119.                     group: "205",
  2120.                     unit: "г",
  2121.                     round: 3,
  2122.                     maxValueForFilter: 8.009
  2123.                 },
  2124.                 117: {
  2125.                     name: "Аспарагиновая кислота",
  2126.                     id: 117,
  2127.                     group: "205",
  2128.                     unit: "г",
  2129.                     round: 3,
  2130.                     maxValueForFilter: 1810
  2131.                 },
  2132.                 174: {
  2133.                     name: "Гидроксипролин",
  2134.                     id: 174,
  2135.                     group: "205",
  2136.                     unit: "г",
  2137.                     round: 3,
  2138.                     maxValueForFilter: .89
  2139.                 },
  2140.                 119: {
  2141.                     name: "Глицин",
  2142.                     id: 119,
  2143.                     group: "205",
  2144.                     unit: "г",
  2145.                     round: 3,
  2146.                     maxValueForFilter: 20.23
  2147.                 },
  2148.                 118: {
  2149.                     name: "Глутаминовая кислота",
  2150.                     id: 118,
  2151.                     group: "205",
  2152.                     unit: "г",
  2153.                     round: 3,
  2154.                     maxValueForFilter: 17.452
  2155.                 },
  2156.                 120: {
  2157.                     name: "Пролин",
  2158.                     id: 120,
  2159.                     group: "205",
  2160.                     unit: "г",
  2161.                     round: 3,
  2162.                     maxValueForFilter: 14.64
  2163.                 },
  2164.                 121: {
  2165.                     name: "Серин",
  2166.                     id: 121,
  2167.                     group: "205",
  2168.                     unit: "г",
  2169.                     round: 3,
  2170.                     maxValueForFilter: 6.29
  2171.                 },
  2172.                 112: {
  2173.                     name: "Тирозин",
  2174.                     id: 112,
  2175.                     group: "205",
  2176.                     unit: "г",
  2177.                     round: 3,
  2178.                     maxValueForFilter: 3.309
  2179.                 },
  2180.                 110: {
  2181.                     name: "Цистеин",
  2182.                     id: 110,
  2183.                     group: "205",
  2184.                     unit: "г",
  2185.                     round: 3,
  2186.                     maxValueForFilter: 2.102
  2187.                 },
  2188.                 55: {
  2189.                     name: "Холестерин",
  2190.                     id: 55,
  2191.                     group: "204",
  2192.                     unit: "мг",
  2193.                     round: 2,
  2194.                     maxDose: 300,
  2195.                     maxValueForFilter: 3100
  2196.                 },
  2197.                 177: {
  2198.                     name: "Фитостеролы",
  2199.                     id: 177,
  2200.                     group: "204",
  2201.                     unit: "мг",
  2202.                     round: 3,
  2203.                     maxValueForFilter: 1190
  2204.                 },
  2205.                 145: {
  2206.                     name: "Кампестерол",
  2207.                     id: 145,
  2208.                     group: "204",
  2209.                     isDetailed: 1,
  2210.                     unit: "мг",
  2211.                     round: 3,
  2212.                     maxValueForFilter: 241
  2213.                 },
  2214.                 144: {
  2215.                     name: "Стигмастерол",
  2216.                     id: 144,
  2217.                     group: "204",
  2218.                     isDetailed: 1,
  2219.                     unit: "мг",
  2220.                     round: 3,
  2221.                     maxValueForFilter: 59
  2222.                 },
  2223.                 146: {
  2224.                     name: "бета Ситостерол",
  2225.                     id: 146,
  2226.                     group: "204",
  2227.                     isDetailed: 1,
  2228.                     unit: "мг",
  2229.                     round: 3,
  2230.                     maxValueForFilter: 621
  2231.                 },
  2232.                 178: {
  2233.                     name: "Трансжиры",
  2234.                     id: 178,
  2235.                     group: "203",
  2236.                     unit: "г",
  2237.                     round: 3,
  2238.                     maxValueForFilter: 42.851
  2239.                 },
  2240.                 179: {
  2241.                     name: "мононенасыщенные трансжиры",
  2242.                     id: 179,
  2243.                     group: "203",
  2244.                     isDetailed: 1,
  2245.                     unit: "г",
  2246.                     round: 3,
  2247.                     maxValueForFilter: 40.118
  2248.                 },
  2249.                 184: {
  2250.                     name: "полиненасыщенные трансжиры",
  2251.                     id: 184,
  2252.                     group: "203",
  2253.                     isDetailed: 1,
  2254.                     unit: "г",
  2255.                     round: 3,
  2256.                     maxValueForFilter: 4.524
  2257.                 },
  2258.                 212: {
  2259.                     name: "Омега-3 жирные кислоты",
  2260.                     id: 212,
  2261.                     group: "203",
  2262.                     unit: "г",
  2263.                     round: 1,
  2264.                     inRating: !0,
  2265.                     maxValueForFilter: 53.449
  2266.                 },
  2267.                 213: {
  2268.                     name: "Омега-6 жирные кислоты",
  2269.                     id: 213,
  2270.                     group: "203",
  2271.                     unit: "г",
  2272.                     round: 1,
  2273.                     inRating: !0,
  2274.                     maxValueForFilter: 74.623
  2275.                 },
  2276.                 229: {
  2277.                     name: "Омега-9 жирные кислоты",
  2278.                     id: 229,
  2279.                     group: "203",
  2280.                     round: 3,
  2281.                     maxValueForFilter: 0
  2282.                 },
  2283.                 83: {
  2284.                     name: "Насыщеные жирные кислоты",
  2285.                     id: 83,
  2286.                     group: "198",
  2287.                     unit: "г",
  2288.                     round: 1,
  2289.                     maxValueForFilter: 95.6
  2290.                 },
  2291.                 124: {
  2292.                     name: "4:0 Масляная",
  2293.                     id: 124,
  2294.                     group: "198",
  2295.                     unit: "г",
  2296.                     round: 3,
  2297.                     maxValueForFilter: 3.74
  2298.                 },
  2299.                 125: {
  2300.                     name: "6:0 Капроновая",
  2301.                     id: 125,
  2302.                     group: "198",
  2303.                     unit: "г",
  2304.                     round: 3,
  2305.                     maxValueForFilter: 2.007
  2306.                 },
  2307.                 126: {
  2308.                     name: "8:0 Каприловая",
  2309.                     id: 126,
  2310.                     group: "198",
  2311.                     unit: "г",
  2312.                     round: 3,
  2313.                     maxValueForFilter: 10.9
  2314.                 },
  2315.                 127: {
  2316.                     name: "10:0 Каприновая",
  2317.                     id: 127,
  2318.                     group: "198",
  2319.                     unit: "г",
  2320.                     round: 3,
  2321.                     maxValueForFilter: 6
  2322.                 },
  2323.                 128: {
  2324.                     name: "12:0 Лауриновая",
  2325.                     id: 128,
  2326.                     group: "198",
  2327.                     unit: "г",
  2328.                     round: 3,
  2329.                     maxValueForFilter: 53.428
  2330.                 },
  2331.                 176: {
  2332.                     name: "13:0 Тридекановая",
  2333.                     id: 176,
  2334.                     group: "198",
  2335.                     unit: "г",
  2336.                     round: 3,
  2337.                     maxValueForFilter: .032
  2338.                 },
  2339.                 129: {
  2340.                     name: "14:0 Миристиновая",
  2341.                     id: 129,
  2342.                     group: "198",
  2343.                     unit: "г",
  2344.                     round: 1,
  2345.                     maxValueForFilter: 82.6
  2346.                 },
  2347.                 164: {
  2348.                     name: "15:0 Пентадекановая",
  2349.                     id: 164,
  2350.                     group: "198",
  2351.                     unit: "г",
  2352.                     round: 3,
  2353.                     maxValueForFilter: .8
  2354.                 },
  2355.                 130: {
  2356.                     name: "16:0 Пальмитиновая",
  2357.                     id: 130,
  2358.                     group: "198",
  2359.                     unit: "г",
  2360.                     round: 3,
  2361.                     maxValueForFilter: 43.5
  2362.                 },
  2363.                 149: {
  2364.                     name: "17:0 Маргариновая",
  2365.                     id: 149,
  2366.                     group: "198",
  2367.                     unit: "г",
  2368.                     round: 3,
  2369.                     maxValueForFilter: 1.4
  2370.                 },
  2371.                 131: {
  2372.                     name: "18:0 Стеариновая",
  2373.                     id: 131,
  2374.                     group: "198",
  2375.                     unit: "г",
  2376.                     round: 3,
  2377.                     maxValueForFilter: 38.8
  2378.                 },
  2379.                 132: {
  2380.                     name: "20:0 Арахиновая",
  2381.                     id: 132,
  2382.                     group: "198",
  2383.                     unit: "г",
  2384.                     round: 3,
  2385.                     maxValueForFilter: 1.944
  2386.                 },
  2387.                 165: {
  2388.                     name: "22:0 Бегеновая",
  2389.                     id: 165,
  2390.                     group: "198",
  2391.                     unit: "г",
  2392.                     round: 3,
  2393.                     maxValueForFilter: 2.8
  2394.                 },
  2395.                 166: {
  2396.                     name: "24:0 Лигноцериновая",
  2397.                     id: 166,
  2398.                     group: "198",
  2399.                     unit: "г",
  2400.                     round: 3,
  2401.                     maxValueForFilter: .92
  2402.                 },
  2403.                 147: {
  2404.                     name: "Мононенасыщенные жирные кислоты",
  2405.                     id: 147,
  2406.                     group: "199",
  2407.                     unit: "г",
  2408.                     round: 3,
  2409.                     maxValueForFilter: 83.689
  2410.                 },
  2411.                 163: {
  2412.                     name: "14:1 Миристолеиновая",
  2413.                     id: 163,
  2414.                     group: "199",
  2415.                     unit: "г",
  2416.                     round: 3,
  2417.                     maxValueForFilter: 1.7
  2418.                 },
  2419.                 173: {
  2420.                     name: "15:1 Пентадеценовая",
  2421.                     id: 173,
  2422.                     group: "199",
  2423.                     unit: "г",
  2424.                     round: 3,
  2425.                     maxValueForFilter: 2.169
  2426.                 },
  2427.                 138: {
  2428.                     name: "16:1 Пальмитолеиновая",
  2429.                     id: 138,
  2430.                     group: "199",
  2431.                     unit: "г",
  2432.                     round: 3,
  2433.                     maxValueForFilter: 20.33
  2434.                 },
  2435.                 153: {
  2436.                     name: "16:1 цис",
  2437.                     id: 153,
  2438.                     group: "199",
  2439.                     isDetailed: 1,
  2440.                     unit: "г",
  2441.                     round: 3,
  2442.                     maxValueForFilter: 1.831
  2443.                 },
  2444.                 180: {
  2445.                     name: "16:1 транс",
  2446.                     id: 180,
  2447.                     group: "199",
  2448.                     isDetailed: 1,
  2449.                     unit: "г",
  2450.                     round: 3,
  2451.                     maxValueForFilter: .106
  2452.                 },
  2453.                 169: {
  2454.                     name: "17:1 Гептадеценовая",
  2455.                     id: 169,
  2456.                     group: "199",
  2457.                     unit: "г",
  2458.                     round: 3,
  2459.                     maxValueForFilter: 1.085
  2460.                 },
  2461.                 133: {
  2462.                     name: "18:1 Олеиновая (омега-9)",
  2463.                     id: 133,
  2464.                     group: "199",
  2465.                     unit: "г",
  2466.                     round: 3,
  2467.                     maxValueForFilter: 82.63
  2468.                 },
  2469.                 154: {
  2470.                     name: "18:1 цис",
  2471.                     id: 154,
  2472.                     group: "199",
  2473.                     isDetailed: 1,
  2474.                     unit: "г",
  2475.                     round: 3,
  2476.                     maxValueForFilter: 74.742
  2477.                 },
  2478.                 150: {
  2479.                     name: "18:1 транс",
  2480.                     id: 150,
  2481.                     group: "199",
  2482.                     isDetailed: 1,
  2483.                     unit: "г",
  2484.                     round: 3,
  2485.                     maxValueForFilter: 40.118
  2486.                 },
  2487.                 197: {
  2488.                     name: "18:1-11t (18:1t n-7)",
  2489.                     id: 197,
  2490.                     group: "199",
  2491.                     isDetailed: 1,
  2492.                     unit: "г",
  2493.                     round: 3,
  2494.                     maxValueForFilter: .596
  2495.                 },
  2496.                 140: {
  2497.                     name: "20:1 Гадолеиновая (омега-9)",
  2498.                     id: 140,
  2499.                     group: "199",
  2500.                     unit: "г",
  2501.                     round: 3,
  2502.                     maxValueForFilter: 15.02
  2503.                 },
  2504.                 142: {
  2505.                     name: "22:1 Эруковая (омега-9)",
  2506.                     id: 142,
  2507.                     group: "199",
  2508.                     unit: "г",
  2509.                     round: 3,
  2510.                     maxValueForFilter: 41.175
  2511.                 },
  2512.                 183: {
  2513.                     name: "22:1 цис",
  2514.                     id: 183,
  2515.                     group: "199",
  2516.                     isDetailed: 1,
  2517.                     unit: "г",
  2518.                     round: 3,
  2519.                     maxValueForFilter: 1.263
  2520.                 },
  2521.                 181: {
  2522.                     name: "22:1 транс",
  2523.                     id: 181,
  2524.                     group: "199",
  2525.                     isDetailed: 1,
  2526.                     unit: "г",
  2527.                     round: 3,
  2528.                     maxValueForFilter: .014
  2529.                 },
  2530.                 167: {
  2531.                     name: "24:1 Нервоновая, цис (омега-9) ",
  2532.                     id: 167,
  2533.                     group: "199",
  2534.                     unit: "г",
  2535.                     round: 3,
  2536.                     maxValueForFilter: .644
  2537.                 },
  2538.                 148: {
  2539.                     name: "Полиненасыщенные жирные кислоты",
  2540.                     id: 148,
  2541.                     group: "200",
  2542.                     unit: "г",
  2543.                     round: 3,
  2544.                     maxValueForFilter: 79
  2545.                 },
  2546.                 134: {
  2547.                     name: "18:2 Линолевая",
  2548.                     id: 134,
  2549.                     group: "200",
  2550.                     unit: "г",
  2551.                     round: 3,
  2552.                     maxValueForFilter: 74.623
  2553.                 },
  2554.                 182: {
  2555.                     name: "18:2 транс-изомер, не определён",
  2556.                     id: 182,
  2557.                     group: "200",
  2558.                     isDetailed: 1,
  2559.                     unit: "г",
  2560.                     round: 3,
  2561.                     maxValueForFilter: .811
  2562.                 },
  2563.                 151: {
  2564.                     name: "18:2 смешанные изомеры",
  2565.                     id: 151,
  2566.                     group: "200",
  2567.                     isDetailed: 1,
  2568.                     unit: "г",
  2569.                     round: 3,
  2570.                     maxValueForFilter: 4.029
  2571.                 },
  2572.                 155: {
  2573.                     name: "18:2 Омега-6, цис, цис",
  2574.                     id: 155,
  2575.                     group: "200",
  2576.                     isDetailed: 1,
  2577.                     unit: "г",
  2578.                     round: 3,
  2579.                     maxValueForFilter: 56.601
  2580.                 },
  2581.                 187: {
  2582.                     name: "18:2 транс, транс",
  2583.                     id: 187,
  2584.                     group: "200",
  2585.                     isDetailed: 1,
  2586.                     unit: "г",
  2587.                     round: 3,
  2588.                     maxValueForFilter: .842
  2589.                 },
  2590.                 152: {
  2591.                     name: "18:2 Конъюгированная линолевая кислота",
  2592.                     id: 152,
  2593.                     group: "200",
  2594.                     isDetailed: 1,
  2595.                     unit: "г",
  2596.                     round: 3,
  2597.                     maxValueForFilter: .897
  2598.                 },
  2599.                 135: {
  2600.                     name: "18:3 Линоленовая",
  2601.                     id: 135,
  2602.                     group: "200",
  2603.                     unit: "г",
  2604.                     round: 3,
  2605.                     maxValueForFilter: 53.368
  2606.                 },
  2607.                 156: {
  2608.                     name: "18:3 Омега-3, альфа-линоленовая",
  2609.                     id: 156,
  2610.                     group: "200",
  2611.                     isDetailed: 1,
  2612.                     unit: "г",
  2613.                     round: 3,
  2614.                     maxValueForFilter: 53.368
  2615.                 },
  2616.                 175: {
  2617.                     name: "18:3 Омега-6, гамма-линоленовая",
  2618.                     id: 175,
  2619.                     group: "200",
  2620.                     isDetailed: 1,
  2621.                     unit: "г",
  2622.                     round: 3,
  2623.                     maxValueForFilter: .59
  2624.                 },
  2625.                 188: {
  2626.                     name: "18:3 транс (прочие изомеры)",
  2627.                     id: 188,
  2628.                     group: "200",
  2629.                     isDetailed: 1,
  2630.                     unit: "г",
  2631.                     round: 3,
  2632.                     maxValueForFilter: 1.446
  2633.                 },
  2634.                 139: {
  2635.                     name: "18:4 Стиоридовая",
  2636.                     id: 139,
  2637.                     group: "200",
  2638.                     unit: "г",
  2639.                     round: 3,
  2640.                     maxValueForFilter: 3.025
  2641.                 },
  2642.                 168: {
  2643.                     name: "20:2 Эйкозадиеновая, Омега-6, цис, цис",
  2644.                     id: 168,
  2645.                     group: "200",
  2646.                     unit: "г",
  2647.                     round: 3,
  2648.                     maxValueForFilter: .445
  2649.                 },
  2650.                 170: {
  2651.                     name: "20:3 Эйкозатриеновая",
  2652.                     id: 170,
  2653.                     group: "200",
  2654.                     unit: "г",
  2655.                     round: 3,
  2656.                     maxValueForFilter: .353
  2657.                 },
  2658.                 185: {
  2659.                     name: "20:3 Омега-3",
  2660.                     id: 185,
  2661.                     group: "200",
  2662.                     isDetailed: 1,
  2663.                     unit: "г",
  2664.                     round: 3,
  2665.                     maxValueForFilter: .081
  2666.                 },
  2667.                 186: {
  2668.                     name: "20:3 Омега-6",
  2669.                     id: 186,
  2670.                     group: "200",
  2671.                     isDetailed: 1,
  2672.                     unit: "г",
  2673.                     round: 3,
  2674.                     maxValueForFilter: .056
  2675.                 },
  2676.                 136: {
  2677.                     name: "20:4 Арахидоновая",
  2678.                     id: 136,
  2679.                     group: "200",
  2680.                     unit: "г",
  2681.                     round: 3,
  2682.                     maxValueForFilter: 1.756
  2683.                 },
  2684.                 190: {
  2685.                     name: "20:4 Омега-6",
  2686.                     id: 190,
  2687.                     group: "200",
  2688.                     isDetailed: 1,
  2689.                     unit: "г",
  2690.                     round: 3,
  2691.                     maxValueForFilter: .67
  2692.                 },
  2693.                 141: {
  2694.                     name: "20:5 Эйкозапентаеновая (ЭПК), Омега-3 ",
  2695.                     id: 141,
  2696.                     group: "200",
  2697.                     unit: "г",
  2698.                     round: 3,
  2699.                     maxValueForFilter: 13.168
  2700.                 },
  2701.                 171: {
  2702.                     name: "21:5",
  2703.                     id: 171,
  2704.                     group: "200",
  2705.                     unit: "г",
  2706.                     round: 3,
  2707.                     maxValueForFilter: .28
  2708.                 },
  2709.                 172: {
  2710.                     name: "22:4 Докозатетраеновая",
  2711.                     id: 172,
  2712.                     group: "200",
  2713.                     unit: "г",
  2714.                     round: 3,
  2715.                     maxValueForFilter: .18
  2716.                 },
  2717.                 143: {
  2718.                     name: "22:5 Докозапентаеновая (ДПК), Омега-3",
  2719.                     id: 143,
  2720.                     group: "200",
  2721.                     unit: "г",
  2722.                     round: 3,
  2723.                     maxValueForFilter: 4.915
  2724.                 },
  2725.                 137: {
  2726.                     name: "22:6 Докозагексаеновая (ДГК), Омега-3 ",
  2727.                     id: 137,
  2728.                     group: "200",
  2729.                     unit: "г",
  2730.                     round: 3,
  2731.                     maxValueForFilter: 18.232
  2732.                 },
  2733.                 89: {
  2734.                     name: "Кофеин",
  2735.                     id: 89,
  2736.                     group: "206",
  2737.                     unit: "мг",
  2738.                     round: 3,
  2739.                     maxValueForFilter: 3680
  2740.                 },
  2741.                 90: {
  2742.                     name: "Теобромин",
  2743.                     id: 90,
  2744.                     group: "206",
  2745.                     unit: "мг",
  2746.                     round: 3,
  2747.                     maxValueForFilter: 2634
  2748.                 },
  2749.                 order: [11, 13, 14, 15, 87, 19, 18, 12, 20, 85, 21, 93, 74, 94, 95, 96, 22, 23, 57, 24, 25, 26, 56, 123, 27, 62, 193, 194, 86, 97, 98, 99, 122, 29, 68, 195, 196, 84, 30, 103, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 31, 43, 44, 63, 45, 46, 47, 48, 60, 59, 58, 51, 49, 50, 52, 53, 61, 17, 16, 162, 160, 158, 159, 157, 161, 209, 114, 113, 115, 106, 107, 108, 109, 207, 105, 104, 111, 208, 210, 116, 117, 174, 119, 118, 120, 121, 112, 110, 55, 177, 145, 144, 146, 178, 179, 184, 212, 213, 229, 83, 124, 125, 126, 127, 128, 176, 129, 164, 130, 149, 131, 132, 165, 166, 147, 163, 173, 138, 153, 180, 169, 133, 154, 150, 197, 140, 142, 183, 181, 167, 148, 134, 182, 151, 155, 187, 152, 135, 156, 175, 188, 139, 168, 170, 185, 186, 136, 190, 141, 171, 172, 143, 137, 89, 90],
  2750.                 groups: [{
  2751.                     name: "Витамины",
  2752.                     id: 64,
  2753.                     parent_id: null,
  2754.                     level: 0
  2755.                 }, {
  2756.                     name: "Макроэлементы",
  2757.                     id: 65,
  2758.                     parent_id: null,
  2759.                     level: 0
  2760.                 }, {
  2761.                     name: "Микроэлементы",
  2762.                     id: 66,
  2763.                     parent_id: null,
  2764.                     level: 0
  2765.                 }, {
  2766.                     name: "Пищевая ценность",
  2767.                     id: 67,
  2768.                     parent_id: null,
  2769.                     level: 0
  2770.                 }, {
  2771.                     name: "Усвояемые углеводы",
  2772.                     id: 211,
  2773.                     parent_id: null,
  2774.                     level: 0
  2775.                 }, {
  2776.                     name: "Аминокислоты",
  2777.                     id: 227,
  2778.                     parent_id: null,
  2779.                     level: 0
  2780.                 }, {
  2781.                     name: "Липиды",
  2782.                     id: 228,
  2783.                     parent_id: null,
  2784.                     level: 0
  2785.                 }, {
  2786.                     name: "Прочие вещества",
  2787.                     id: 206,
  2788.                     parent_id: null,
  2789.                     level: 0
  2790.                 }, {
  2791.                     name: "Не используемые",
  2792.                     id: 88,
  2793.                     parent_id: null,
  2794.                     level: 0
  2795.                 }, {
  2796.                     name: "Незаменимые аминокислоты",
  2797.                     id: 201,
  2798.                     parent_id: 227,
  2799.                     level: 1
  2800.                 }, {
  2801.                     name: "Заменимые аминокислоты",
  2802.                     id: 205,
  2803.                     parent_id: 227,
  2804.                     level: 1
  2805.                 }, {
  2806.                     name: "Стеролы (стерины)",
  2807.                     id: 204,
  2808.                     parent_id: 228,
  2809.                     level: 1
  2810.                 }, {
  2811.                     name: "Жирные кислоты",
  2812.                     id: 203,
  2813.                     parent_id: 228,
  2814.                     level: 1
  2815.                 }, {
  2816.                     name: "Насыщенные жирные кислоты",
  2817.                     id: 198,
  2818.                     parent_id: 203,
  2819.                     level: 2
  2820.                 }, {
  2821.                     name: "Мононенасыщенные жирные кислоты",
  2822.                     id: 199,
  2823.                     parent_id: 203,
  2824.                     level: 2
  2825.                 }, {
  2826.                     name: "Полиненасыщенные жирные кислоты",
  2827.                     id: 200,
  2828.                     parent_id: 203,
  2829.                     level: 2
  2830.                 }, {
  2831.                     name: "Органические кислоты",
  2832.                     id: 216,
  2833.                     parent_id: 88,
  2834.                     level: 1
  2835.                 }, {
  2836.                     name: "Полисахариды",
  2837.                     id: 220,
  2838.                     parent_id: 88,
  2839.                     level: 1
  2840.                 }, {
  2841.                     name: "Моно- и дисахариды",
  2842.                     id: 202,
  2843.                     parent_id: 88,
  2844.                     level: 1
  2845.                 }]
  2846.             }
  2847.         }, e
  2848.     }();
  2849.     t.default = a
  2850. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy_Users", ["require", "exports", "tslib", "lodash", "modules/Constant/lib/index", "./MethodOfCalculationEnergy_Mifflina", "./UserEnergySettings", "./AMethodOfCalculationEnergy"], function(e, t, r, o, n, i, u, a) {
  2851.     "use strict";
  2852.     Object.defineProperty(t, "__esModule", {
  2853.         value: !0
  2854.     });
  2855.     var m = function(e) {
  2856.         function t(t, r) {
  2857.             void 0 === r && (r = !1);
  2858.             var a = e.call(this, t, r) || this,
  2859.                 m = new u.default(t.user_calorie_norm);
  2860.             a._metabolism = m.metabolism, 0 === a._metabolism && (1 === t.sex ? a._metabolism = 10 * t.weight + 6.25 * t.height - 5 * t.age + 5 : a._metabolism = 10 * t.weight + 6.25 * t.height - 5 * t.age - 161, a._metabolism = o.round(a._metabolism, 0));
  2861.             var s = new i.default(t);
  2862.             a._outcomeMain = s.outcomeMain(), a._metabolism = s.metabolism();
  2863.             s.calorieCorridor();
  2864.             return a._norms = s.getNorms(), a._incomeRecommend = s.incomeRecommend(), a._incomeMin = s.metabolism(), a._outcomeSport = t.outcomeSport, 0 !== m.metabolism && (a._metabolism = m.metabolism, a._incomeMin = a._metabolism), 0 !== m.outcomeMain && (a._outcomeMain = m.outcomeMain), m.incomeRecommend.isSetNorm() && (a._incomeRecommend = m.incomeRecommend, a._norms[n.cCALORIE] = m.incomeRecommend), m.protein.isSetNorm() && (a._norms[n.cPROTEIN] = m.protein), m.fat.isSetNorm() && (a._norms[n.cFAT] = m.fat), m.carb.isSetNorm() && (a._norms[n.cCARBOHYDRATE] = m.carb), a._outcomeSport > 0 && 0 == a.withoutSport && (a._incomeRecommend.addExtraNorm(a._outcomeSport), a._norms[n.cCARBOHYDRATE].addExtraNorm(o.round(a._outcomeSport / 4))), a.fillFats(), a
  2865.         }
  2866.         return r.__extends(t, e), t
  2867.     }(a.default);
  2868.     t.default = m
  2869. }), define("modules/Nutrients/lib/MethodOfCalculationEnergy", ["require", "exports", "lodash", "modules/Constant/lib/index"], function(e, t, r, o) {
  2870.     "use strict";
  2871.     Object.defineProperty(t, "__esModule", {
  2872.         value: !0
  2873.     });
  2874.     var n = {
  2875.         _list: [{
  2876.             id: o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA,
  2877.             name: "Сбалансированное питание"
  2878.         }, {
  2879.             id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT,
  2880.             name: "Сбалансированное похудение"
  2881.         }, {
  2882.             id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_WITHOUT_SPORT,
  2883.             name: "Похудение (без учета дневника тренировок)"
  2884.         }, {
  2885.             id: o.cMETHOD_OF_CALCULATION_ENERGY_USER,
  2886.             name: "Нормы КБЖУ установлены пользователем"
  2887.         }, {
  2888.             id: o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT,
  2889.             name: "Нормы КБЖУ установлены пользователем (без тренировок)"
  2890.         }, {
  2891.             id: o.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT,
  2892.             name: "Набор веса"
  2893.         }, {
  2894.             id: o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR,
  2895.             name: "Методические рекомендации МР 2.3.1.2432"
  2896.         }, {
  2897.             id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_PROTEIN,
  2898.             name: "Высокобелковая диета"
  2899.         }, {
  2900.             id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_FAT,
  2901.             name: "Низкожировая диета"
  2902.         }, {
  2903.             id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_CARB,
  2904.             name: "Низкоуглеводная диета"
  2905.         }, {
  2906.             id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_KETO,
  2907.             name: "Умеренная кето-диета"
  2908.         }, {
  2909.             id: o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_OLD,
  2910.             name: "Методика похудения до 09.04.2019"
  2911.         }],
  2912.         getList: function() {
  2913.             return this._list
  2914.         },
  2915.         getState: function(e) {
  2916.             var t = [],
  2917.                 n = r.get(e, "withoutUser", !1);
  2918.             return 1 == r.get(e, "age18", !1) ? (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR)), 0 == n && (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT)))) : 1 == r.get(e, "hasPregnancy", !1) ? 1 == r.get(e, "loseWeight", !1) ? (0 == n && (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT))), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR))) : (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR)), 0 == n && (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT)))) : (1 == r.get(e, "gainWeight", !1) ? t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT)) : 1 == r.get(e, "loseWeight", !1) ? (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_KETO)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_CARB)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_LOW_FAT)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_PROTEIN)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT_OLD))) : (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_RUSSIAN_MR))), 0 == n && (t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER)), t.push(r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_USER_WITHOUT_SPORT)))), r.get(e, "addId") && t.push(r.find(this._list, "id", r.get(e, "addId"))), t.map(function(e) {
  2919.                 return {
  2920.                     id: e.id,
  2921.                     value: e.id,
  2922.                     name: e.name,
  2923.                     label: e.name
  2924.                 }
  2925.             })
  2926.         },
  2927.         byId: function(e) {
  2928.             var t = r.find(this._list, "id", Number(e));
  2929.             return void 0 === t ? r.find(this._list, "id", o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA) : t
  2930.         },
  2931.         getMethodOfCalculationEnergyId: function(e, t) {
  2932.             var n = o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA;
  2933.             e === o.PURPOSE_LOSE_WEIGHT ? n = o.cMETHOD_OF_CALCULATION_ENERGY_LOSE_WEIGHT : e === o.PURPOSE_GAIN_WEIGHT ? n = o.cMETHOD_OF_CALCULATION_ENERGY_GAIN_WEIGHT : e === o.PURPOSE_SAVE_WEIGHT && (n = o.cMETHOD_OF_CALCULATION_ENERGY_MIFFLINA);
  2934.             var i = this.getState(t);
  2935.             return i && void 0 === r.find(i, "id", n) && i.length > 0 && (n = i[0].id), n
  2936.         }
  2937.     };
  2938.     t.default = n
  2939. }), define("modules/Nutrients/lib/Pregnancy", ["require", "exports", "lodash", "modules/Constant/lib/index"], function(e, t, r, o) {
  2940.     "use strict";
  2941.     Object.defineProperty(t, "__esModule", {
  2942.         value: !0
  2943.     });
  2944.     var n = {
  2945.         _list: [{
  2946.             id: o.PREGNANCY_NONE,
  2947.             name: "Нет"
  2948.         }, {
  2949.             id: o.PREGNANCY_FIRST_PART,
  2950.             name: "Беременность 1-ая половина"
  2951.         }, {
  2952.             id: o.PREGNANCY_SECOND_PART,
  2953.             name: "Беременность 2-ая половина"
  2954.         }, {
  2955.             id: o.PREGNANCY_FEED_1m_6m,
  2956.             name: "Грудное вскармливание (1-6 месяцев)"
  2957.         }, {
  2958.             id: o.PREGNANCY_FEED_7m_12m,
  2959.             name: "Грудное вскармливание (7-12 месяцев)"
  2960.         }],
  2961.         getList: function() {
  2962.             return this._list
  2963.         },
  2964.         getState: function() {
  2965.             return this.getList().map(function(e) {
  2966.                 return {
  2967.                     id: e.id,
  2968.                     value: e.id,
  2969.                     name: e.name,
  2970.                     label: e.name
  2971.                 }
  2972.             })
  2973.         },
  2974.         byId: function(e) {
  2975.             var t = r.find(this._list, "id", Number(e));
  2976.             return void 0 === t ? {
  2977.                 id: o.PREGNANCY_NONE,
  2978.                 name: "Нет"
  2979.             } : t
  2980.         }
  2981.     };
  2982.     t.default = n
  2983. }), define("modules/Nutrients/lib/Sex", ["require", "exports", "lodash", "modules/Constant/lib/index"], function(e, t, r, o) {
  2984.     "use strict";
  2985.     Object.defineProperty(t, "__esModule", {
  2986.         value: !0
  2987.     });
  2988.     var n = {
  2989.         _list: [{
  2990.             id: o.cSEX_MALE,
  2991.             name: "Мужской"
  2992.         }, {
  2993.             id: o.cSEX_FEMALE,
  2994.             name: "Женский"
  2995.         }],
  2996.         getList: function() {
  2997.             return this._list
  2998.         },
  2999.         getState: function() {
  3000.             return this.getList().map(function(e) {
  3001.                 return {
  3002.                     id: e.id,
  3003.                     value: e.id,
  3004.                     name: e.name,
  3005.                     label: e.name
  3006.                 }
  3007.             })
  3008.         },
  3009.         byId: function(e) {
  3010.             var t = r.find(this._list, "id", Number(e));
  3011.             return void 0 === t ? {
  3012.                 id: o.cSEX_FEMALE,
  3013.                 name: "Женский"
  3014.             } : t
  3015.         }
  3016.     };
  3017.     t.default = n
  3018. }), define("modules/Nutrients/lib/Nutrients", ["require", "exports", "./NutrientsList", "./IntensityOfLabour", "./NutrientsNormItem", "./MethodOfCalculationEnergy_Gain_Weight", "./ParamsForCalculateNormsOfNutrients", "./MethodOfCalculationEnergy_Lose_Weight", "./MethodOfCalculationEnergy_Mifflina", "./MethodOfCalculationEnergy_RussianMR", "./MethodOfCalculationEnergy_Users", "./MethodOfCalculationEnergy_UsersV2", "./MethodOfCalculationEnergy_Lose_WeightProtein", "./MethodOfCalculationEnergy_Lose_WeightLowFat", "./MethodOfCalculationEnergy_Lose_WeightLowCarb", "./MethodOfCalculationEnergy_Lose_WeightKeto", "./NutrientsNorm", "./UserEnergySettings", "modules/Constant/lib/index", "./NutrientsHelper", "./MethodOfCalculationEnergy", "./Pregnancy", "./Sex"], function(e, t, r, o, n, i, u, a, m, s, l, d, _, c, h, f, p, g, F, E, O, N, R) {
  3019.     "use strict";
  3020.     Object.defineProperty(t, "__esModule", {
  3021.         value: !0
  3022.     }), t.NutrientsList = r.default, t.IntensityOfLabour = o.default, t.NutrientsNormItem = n.default, t.MethodOfCalculationEnergy_Gain_Weight = i.default, t.ParamsForCalculateNormsOfNutrients = u.default, t.MethodOfCalculationEnergy_Lose_Weight = a.default, t.MethodOfCalculationEnergy_Mifflina = m.default, t.MethodOfCalculationEnergy_RussianMR = s.default, t.MethodOfCalculationEnergy_Users = l.default, t.MethodOfCalculationEnergy_UsersV2 = d.default, t.MethodOfCalculationEnergy_Lose_WeightProtein = _.default, t.MethodOfCalculationEnergy_Lose_WeightLowFat = c.default, t.MethodOfCalculationEnergy_Lose_WeightLowCarb = h.default, t.MethodOfCalculationEnergy_Lose_WeightKeto = f.default, t.NutrientsNorm = p.default, t.UserEnergySettings = g.default, t.Constant = F, t.NutrientsHelper = E.default, t.MethodOfCalculationEnergy = O.default, t.Pregnancy = N.default, t.Sex = R.default
  3023. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement