"use strict";export const SimulationCommunaute = validate10;const schema11 = {"$schema":"http://json-schema.org/draft-07/schema#","$ref":"#/definitions/Faisan.SimulationCommunaute","definitions":{"Faisan.SimulationCommunaute":{"type":"object","properties":{"puissance":{"type":"number"},"autoconso":{"type":"number"},"autoprod":{"type":"number"},"fraisDivers":{"type":"number"},"tarif":{"type":"number"},"apport":{"type":"number"},"interet":{"type":"number"},"echeances":{"type":"number"},"consoMoyenneFoyer":{"type":"number"},"productible":{"type":"number"},"degradation":{"type":"number"},"inflation":{"type":"number"},"ratio":{"type":"number"},"enedis":{"type":"number"},"tarifCRE":{"type":"object","properties":{"limites":{"type":"array","items":{"type":"number"}},"prix":{"type":"array","items":{"type":"number"}},"inflation":{"type":"number"}},"required":["limites","prix","inflation"],"additionalProperties":false},"coutElec":{"type":"number"},"inflationElec":{"type":"number"},"maintenance":{"type":"number"},"turpe":{"type":"number"},"turpeInjection":{"type":"number"},"provisionOnduleurs":{"type":"number"},"assurance":{"type":"number"},"divers":{"type":"number"},"ratioDcAc":{"type":"number"},"dureeAmortissement":{"type":"number"},"tauxIS":{"type":"number"},"tauxDSRA":{"type":"number"}},"required":["puissance","autoconso","autoprod","fraisDivers","tarif","apport","interet","echeances","consoMoyenneFoyer","productible","degradation","inflation","ratio","enedis","tarifCRE","coutElec","inflationElec","maintenance","turpe","turpeInjection","provisionOnduleurs","assurance","divers","ratioDcAc","dureeAmortissement","tauxIS","tauxDSRA"],"additionalProperties":false}},"$id":"#/definitions/SimulationCommunaute"};const schema12 = {"type":"object","properties":{"puissance":{"type":"number"},"autoconso":{"type":"number"},"autoprod":{"type":"number"},"fraisDivers":{"type":"number"},"tarif":{"type":"number"},"apport":{"type":"number"},"interet":{"type":"number"},"echeances":{"type":"number"},"consoMoyenneFoyer":{"type":"number"},"productible":{"type":"number"},"degradation":{"type":"number"},"inflation":{"type":"number"},"ratio":{"type":"number"},"enedis":{"type":"number"},"tarifCRE":{"type":"object","properties":{"limites":{"type":"array","items":{"type":"number"}},"prix":{"type":"array","items":{"type":"number"}},"inflation":{"type":"number"}},"required":["limites","prix","inflation"],"additionalProperties":false},"coutElec":{"type":"number"},"inflationElec":{"type":"number"},"maintenance":{"type":"number"},"turpe":{"type":"number"},"turpeInjection":{"type":"number"},"provisionOnduleurs":{"type":"number"},"assurance":{"type":"number"},"divers":{"type":"number"},"ratioDcAc":{"type":"number"},"dureeAmortissement":{"type":"number"},"tauxIS":{"type":"number"},"tauxDSRA":{"type":"number"}},"required":["puissance","autoconso","autoprod","fraisDivers","tarif","apport","interet","echeances","consoMoyenneFoyer","productible","degradation","inflation","ratio","enedis","tarifCRE","coutElec","inflationElec","maintenance","turpe","turpeInjection","provisionOnduleurs","assurance","divers","ratioDcAc","dureeAmortissement","tauxIS","tauxDSRA"],"additionalProperties":false};const func2 = Object.prototype.hasOwnProperty;function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="#/definitions/SimulationCommunaute" */;let vErrors = null;let errors = 0;const _errs0 = errors;if(errors === _errs0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((((((((((((((((((((data.puissance === undefined) && (missing0 = "puissance")) || ((data.autoconso === undefined) && (missing0 = "autoconso"))) || ((data.autoprod === undefined) && (missing0 = "autoprod"))) || ((data.fraisDivers === undefined) && (missing0 = "fraisDivers"))) || ((data.tarif === undefined) && (missing0 = "tarif"))) || ((data.apport === undefined) && (missing0 = "apport"))) || ((data.interet === undefined) && (missing0 = "interet"))) || ((data.echeances === undefined) && (missing0 = "echeances"))) || ((data.consoMoyenneFoyer === undefined) && (missing0 = "consoMoyenneFoyer"))) || ((data.productible === undefined) && (missing0 = "productible"))) || ((data.degradation === undefined) && (missing0 = "degradation"))) || ((data.inflation === undefined) && (missing0 = "inflation"))) || ((data.ratio === undefined) && (missing0 = "ratio"))) || ((data.enedis === undefined) && (missing0 = "enedis"))) || ((data.tarifCRE === undefined) && (missing0 = "tarifCRE"))) || ((data.coutElec === undefined) && (missing0 = "coutElec"))) || ((data.inflationElec === undefined) && (missing0 = "inflationElec"))) || ((data.maintenance === undefined) && (missing0 = "maintenance"))) || ((data.turpe === undefined) && (missing0 = "turpe"))) || ((data.turpeInjection === undefined) && (missing0 = "turpeInjection"))) || ((data.provisionOnduleurs === undefined) && (missing0 = "provisionOnduleurs"))) || ((data.assurance === undefined) && (missing0 = "assurance"))) || ((data.divers === undefined) && (missing0 = "divers"))) || ((data.ratioDcAc === undefined) && (missing0 = "ratioDcAc"))) || ((data.dureeAmortissement === undefined) && (missing0 = "dureeAmortissement"))) || ((data.tauxIS === undefined) && (missing0 = "tauxIS"))) || ((data.tauxDSRA === undefined) && (missing0 = "tauxDSRA"))){validate10.errors = [{instancePath,schemaPath:"#/definitions/Faisan.SimulationCommunaute/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {const _errs2 = errors;for(const key0 in data){if(!(func2.call(schema12.properties, key0))){validate10.errors = [{instancePath,schemaPath:"#/definitions/Faisan.SimulationCommunaute/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs2 === errors){if(data.puissance !== undefined){let data0 = data.puissance;const _errs3 = errors;if(!((typeof data0 == "number") && (isFinite(data0)))){validate10.errors = [{instancePath:instancePath+"/puissance",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/puissance/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs3 === errors;}else {var valid1 = true;}if(valid1){if(data.autoconso !== undefined){let data1 = data.autoconso;const _errs5 = errors;if(!((typeof data1 == "number") && (isFinite(data1)))){validate10.errors = [{instancePath:instancePath+"/autoconso",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/autoconso/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs5 === errors;}else {var valid1 = true;}if(valid1){if(data.autoprod !== undefined){let data2 = data.autoprod;const _errs7 = errors;if(!((typeof data2 == "number") && (isFinite(data2)))){validate10.errors = [{instancePath:instancePath+"/autoprod",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/autoprod/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs7 === errors;}else {var valid1 = true;}if(valid1){if(data.fraisDivers !== undefined){let data3 = data.fraisDivers;const _errs9 = errors;if(!((typeof data3 == "number") && (isFinite(data3)))){validate10.errors = [{instancePath:instancePath+"/fraisDivers",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/fraisDivers/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs9 === errors;}else {var valid1 = true;}if(valid1){if(data.tarif !== undefined){let data4 = data.tarif;const _errs11 = errors;if(!((typeof data4 == "number") && (isFinite(data4)))){validate10.errors = [{instancePath:instancePath+"/tarif",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tarif/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs11 === errors;}else {var valid1 = true;}if(valid1){if(data.apport !== undefined){let data5 = data.apport;const _errs13 = errors;if(!((typeof data5 == "number") && (isFinite(data5)))){validate10.errors = [{instancePath:instancePath+"/apport",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/apport/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs13 === errors;}else {var valid1 = true;}if(valid1){if(data.interet !== undefined){let data6 = data.interet;const _errs15 = errors;if(!((typeof data6 == "number") && (isFinite(data6)))){validate10.errors = [{instancePath:instancePath+"/interet",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/interet/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs15 === errors;}else {var valid1 = true;}if(valid1){if(data.echeances !== undefined){let data7 = data.echeances;const _errs17 = errors;if(!((typeof data7 == "number") && (isFinite(data7)))){validate10.errors = [{instancePath:instancePath+"/echeances",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/echeances/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs17 === errors;}else {var valid1 = true;}if(valid1){if(data.consoMoyenneFoyer !== undefined){let data8 = data.consoMoyenneFoyer;const _errs19 = errors;if(!((typeof data8 == "number") && (isFinite(data8)))){validate10.errors = [{instancePath:instancePath+"/consoMoyenneFoyer",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/consoMoyenneFoyer/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs19 === errors;}else {var valid1 = true;}if(valid1){if(data.productible !== undefined){let data9 = data.productible;const _errs21 = errors;if(!((typeof data9 == "number") && (isFinite(data9)))){validate10.errors = [{instancePath:instancePath+"/productible",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/productible/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs21 === errors;}else {var valid1 = true;}if(valid1){if(data.degradation !== undefined){let data10 = data.degradation;const _errs23 = errors;if(!((typeof data10 == "number") && (isFinite(data10)))){validate10.errors = [{instancePath:instancePath+"/degradation",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/degradation/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs23 === errors;}else {var valid1 = true;}if(valid1){if(data.inflation !== undefined){let data11 = data.inflation;const _errs25 = errors;if(!((typeof data11 == "number") && (isFinite(data11)))){validate10.errors = [{instancePath:instancePath+"/inflation",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/inflation/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs25 === errors;}else {var valid1 = true;}if(valid1){if(data.ratio !== undefined){let data12 = data.ratio;const _errs27 = errors;if(!((typeof data12 == "number") && (isFinite(data12)))){validate10.errors = [{instancePath:instancePath+"/ratio",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/ratio/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs27 === errors;}else {var valid1 = true;}if(valid1){if(data.enedis !== undefined){let data13 = data.enedis;const _errs29 = errors;if(!((typeof data13 == "number") && (isFinite(data13)))){validate10.errors = [{instancePath:instancePath+"/enedis",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/enedis/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs29 === errors;}else {var valid1 = true;}if(valid1){if(data.tarifCRE !== undefined){let data14 = data.tarifCRE;const _errs31 = errors;if(errors === _errs31){if(data14 && typeof data14 == "object" && !Array.isArray(data14)){let missing1;if((((data14.limites === undefined) && (missing1 = "limites")) || ((data14.prix === undefined) && (missing1 = "prix"))) || ((data14.inflation === undefined) && (missing1 = "inflation"))){validate10.errors = [{instancePath:instancePath+"/tarifCRE",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tarifCRE/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs33 = errors;for(const key1 in data14){if(!(((key1 === "limites") || (key1 === "prix")) || (key1 === "inflation"))){validate10.errors = [{instancePath:instancePath+"/tarifCRE",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tarifCRE/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"}];return false;break;}}if(_errs33 === errors){if(data14.limites !== undefined){let data15 = data14.limites;const _errs34 = errors;if(errors === _errs34){if(Array.isArray(data15)){var valid3 = true;const len0 = data15.length;for(let i0=0; i0<len0; i0++){let data16 = data15[i0];const _errs36 = errors;if(!((typeof data16 == "number") && (isFinite(data16)))){validate10.errors = [{instancePath:instancePath+"/tarifCRE/limites/" + i0,schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tarifCRE/properties/limites/items/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid3 = _errs36 === errors;if(!valid3){break;}}}else {validate10.errors = [{instancePath:instancePath+"/tarifCRE/limites",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tarifCRE/properties/limites/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid2 = _errs34 === errors;}else {var valid2 = true;}if(valid2){if(data14.prix !== undefined){let data17 = data14.prix;const _errs38 = errors;if(errors === _errs38){if(Array.isArray(data17)){var valid4 = true;const len1 = data17.length;for(let i1=0; i1<len1; i1++){let data18 = data17[i1];const _errs40 = errors;if(!((typeof data18 == "number") && (isFinite(data18)))){validate10.errors = [{instancePath:instancePath+"/tarifCRE/prix/" + i1,schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tarifCRE/properties/prix/items/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid4 = _errs40 === errors;if(!valid4){break;}}}else {validate10.errors = [{instancePath:instancePath+"/tarifCRE/prix",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tarifCRE/properties/prix/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid2 = _errs38 === errors;}else {var valid2 = true;}if(valid2){if(data14.inflation !== undefined){let data19 = data14.inflation;const _errs42 = errors;if(!((typeof data19 == "number") && (isFinite(data19)))){validate10.errors = [{instancePath:instancePath+"/tarifCRE/inflation",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tarifCRE/properties/inflation/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid2 = _errs42 === errors;}else {var valid2 = true;}}}}}}else {validate10.errors = [{instancePath:instancePath+"/tarifCRE",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tarifCRE/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs31 === errors;}else {var valid1 = true;}if(valid1){if(data.coutElec !== undefined){let data20 = data.coutElec;const _errs44 = errors;if(!((typeof data20 == "number") && (isFinite(data20)))){validate10.errors = [{instancePath:instancePath+"/coutElec",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/coutElec/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs44 === errors;}else {var valid1 = true;}if(valid1){if(data.inflationElec !== undefined){let data21 = data.inflationElec;const _errs46 = errors;if(!((typeof data21 == "number") && (isFinite(data21)))){validate10.errors = [{instancePath:instancePath+"/inflationElec",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/inflationElec/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs46 === errors;}else {var valid1 = true;}if(valid1){if(data.maintenance !== undefined){let data22 = data.maintenance;const _errs48 = errors;if(!((typeof data22 == "number") && (isFinite(data22)))){validate10.errors = [{instancePath:instancePath+"/maintenance",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/maintenance/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs48 === errors;}else {var valid1 = true;}if(valid1){if(data.turpe !== undefined){let data23 = data.turpe;const _errs50 = errors;if(!((typeof data23 == "number") && (isFinite(data23)))){validate10.errors = [{instancePath:instancePath+"/turpe",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/turpe/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs50 === errors;}else {var valid1 = true;}if(valid1){if(data.turpeInjection !== undefined){let data24 = data.turpeInjection;const _errs52 = errors;if(!((typeof data24 == "number") && (isFinite(data24)))){validate10.errors = [{instancePath:instancePath+"/turpeInjection",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/turpeInjection/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs52 === errors;}else {var valid1 = true;}if(valid1){if(data.provisionOnduleurs !== undefined){let data25 = data.provisionOnduleurs;const _errs54 = errors;if(!((typeof data25 == "number") && (isFinite(data25)))){validate10.errors = [{instancePath:instancePath+"/provisionOnduleurs",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/provisionOnduleurs/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs54 === errors;}else {var valid1 = true;}if(valid1){if(data.assurance !== undefined){let data26 = data.assurance;const _errs56 = errors;if(!((typeof data26 == "number") && (isFinite(data26)))){validate10.errors = [{instancePath:instancePath+"/assurance",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/assurance/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs56 === errors;}else {var valid1 = true;}if(valid1){if(data.divers !== undefined){let data27 = data.divers;const _errs58 = errors;if(!((typeof data27 == "number") && (isFinite(data27)))){validate10.errors = [{instancePath:instancePath+"/divers",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/divers/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs58 === errors;}else {var valid1 = true;}if(valid1){if(data.ratioDcAc !== undefined){let data28 = data.ratioDcAc;const _errs60 = errors;if(!((typeof data28 == "number") && (isFinite(data28)))){validate10.errors = [{instancePath:instancePath+"/ratioDcAc",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/ratioDcAc/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs60 === errors;}else {var valid1 = true;}if(valid1){if(data.dureeAmortissement !== undefined){let data29 = data.dureeAmortissement;const _errs62 = errors;if(!((typeof data29 == "number") && (isFinite(data29)))){validate10.errors = [{instancePath:instancePath+"/dureeAmortissement",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/dureeAmortissement/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs62 === errors;}else {var valid1 = true;}if(valid1){if(data.tauxIS !== undefined){let data30 = data.tauxIS;const _errs64 = errors;if(!((typeof data30 == "number") && (isFinite(data30)))){validate10.errors = [{instancePath:instancePath+"/tauxIS",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tauxIS/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs64 === errors;}else {var valid1 = true;}if(valid1){if(data.tauxDSRA !== undefined){let data31 = data.tauxDSRA;const _errs66 = errors;if(!((typeof data31 == "number") && (isFinite(data31)))){validate10.errors = [{instancePath:instancePath+"/tauxDSRA",schemaPath:"#/definitions/Faisan.SimulationCommunaute/properties/tauxDSRA/type",keyword:"type",params:{type: "number"},message:"must be number"}];return false;}var valid1 = _errs66 === errors;}else {var valid1 = true;}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}else {validate10.errors = [{instancePath,schemaPath:"#/definitions/Faisan.SimulationCommunaute/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate10.errors = vErrors;return errors === 0;}