@undp/carbon-library 1.0.62 → 1.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3540 -198
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/CoBenifits/assessment.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +14 -0
- package/dist/cjs/types/Components/Common/CoBenifits/economic.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/environmental.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/genderParity.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/safeguards.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/sdgGoals.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/social.d.ts +3 -0
- package/dist/cjs/types/Components/Common/NdcActionDetails/ndcActionDetails.d.ts +13 -0
- package/dist/cjs/types/Components/NdcActions/AddNdcAction/addNdcActionComponent.d.ts +3 -0
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +2 -0
- package/dist/cjs/types/Definitions/Enums/commonEnums.d.ts +23 -0
- package/dist/cjs/types/Definitions/Enums/consumerGroups.enum.d.ts +4 -0
- package/dist/cjs/types/Definitions/Enums/energyGenerationUnits.enum.d.ts +13 -0
- package/dist/cjs/types/Definitions/Enums/landAreaUnits.enum.d.ts +15 -0
- package/dist/cjs/types/Definitions/Enums/mitigation.types.enum.d.ts +1 -0
- package/dist/cjs/types/Definitions/Enums/sdgGoals.enum.d.ts +19 -0
- package/dist/cjs/types/Definitions/Enums/sector.enum.d.ts +12 -0
- package/dist/cjs/types/Definitions/index.d.ts +7 -0
- package/dist/esm/index.js +3481 -145
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/CoBenifits/assessment.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +14 -0
- package/dist/esm/types/Components/Common/CoBenifits/economic.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/environmental.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/genderParity.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/safeguards.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/sdgGoals.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/social.d.ts +3 -0
- package/dist/esm/types/Components/Common/NdcActionDetails/ndcActionDetails.d.ts +13 -0
- package/dist/esm/types/Components/NdcActions/AddNdcAction/addNdcActionComponent.d.ts +3 -0
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +2 -0
- package/dist/esm/types/Definitions/Enums/commonEnums.d.ts +23 -0
- package/dist/esm/types/Definitions/Enums/consumerGroups.enum.d.ts +4 -0
- package/dist/esm/types/Definitions/Enums/energyGenerationUnits.enum.d.ts +13 -0
- package/dist/esm/types/Definitions/Enums/landAreaUnits.enum.d.ts +15 -0
- package/dist/esm/types/Definitions/Enums/mitigation.types.enum.d.ts +1 -0
- package/dist/esm/types/Definitions/Enums/sdgGoals.enum.d.ts +19 -0
- package/dist/esm/types/Definitions/Enums/sector.enum.d.ts +12 -0
- package/dist/esm/types/Definitions/index.d.ts +7 -0
- package/dist/index.d.ts +116 -1
- package/package.json +2 -1
package/dist/esm/index.js
CHANGED
@@ -352,6 +352,14 @@ var sumArray = function (arrList) {
|
|
352
352
|
}
|
353
353
|
return arrList.reduce(function (a, b) { return Number(a) + Number(b); }, 0);
|
354
354
|
};
|
355
|
+
var getBase64 = function (file) {
|
356
|
+
return new Promise(function (resolve, reject) {
|
357
|
+
var reader = new FileReader();
|
358
|
+
reader.readAsDataURL(file);
|
359
|
+
reader.onload = function () { return resolve(reader.result); };
|
360
|
+
reader.onerror = function (error) { return reject(error); };
|
361
|
+
});
|
362
|
+
};
|
355
363
|
|
356
364
|
var Action;
|
357
365
|
(function (Action) {
|
@@ -893,6 +901,68 @@ var mitigationTypeList = [
|
|
893
901
|
{ value: MitigationTypes.TRANSPORT.valueOf(), label: "Transport" },
|
894
902
|
{ value: MitigationTypes.WIND.valueOf(), label: "Wind" },
|
895
903
|
];
|
904
|
+
var sectorMitigationTypesListMapped = {
|
905
|
+
Energy: [
|
906
|
+
{
|
907
|
+
value: MitigationTypes.BIOMASS_ENERGY.valueOf(),
|
908
|
+
label: "Biomass energy",
|
909
|
+
},
|
910
|
+
{
|
911
|
+
value: MitigationTypes.COAL_MINE.valueOf(),
|
912
|
+
label: "Coal bed/mine methane",
|
913
|
+
},
|
914
|
+
{ value: MitigationTypes.EE_HOUSEHOLDS.valueOf(), label: "EE households" },
|
915
|
+
{ value: MitigationTypes.EE_INDUSTRY.valueOf(), label: "EE industry" },
|
916
|
+
{
|
917
|
+
value: MitigationTypes.EE_OWN_GENERATION.valueOf(),
|
918
|
+
label: "EE own generation",
|
919
|
+
},
|
920
|
+
{ value: MitigationTypes.EE_SERVICE.valueOf(), label: "EE service" },
|
921
|
+
{
|
922
|
+
value: MitigationTypes.EE_SUPPLY_SIDE.valueOf(),
|
923
|
+
label: "EE supply side",
|
924
|
+
},
|
925
|
+
{
|
926
|
+
value: MitigationTypes.ENERGY_DISTRIBUTION.valueOf(),
|
927
|
+
label: "Energy distribution",
|
928
|
+
},
|
929
|
+
{
|
930
|
+
value: MitigationTypes.FOSSIL_FUEL.valueOf(),
|
931
|
+
label: "Fossil fuel switch",
|
932
|
+
},
|
933
|
+
{ value: MitigationTypes.GEOTHERMAL.valueOf(), label: "Geothermal" },
|
934
|
+
{ value: MitigationTypes.HYDRO.valueOf(), label: "Hydro" },
|
935
|
+
{ value: MitigationTypes.SOLAR.valueOf(), label: "Solar" },
|
936
|
+
{ value: MitigationTypes.WIND.valueOf(), label: "Wind" },
|
937
|
+
],
|
938
|
+
Health: [],
|
939
|
+
Education: [],
|
940
|
+
Transport: [
|
941
|
+
{ value: MitigationTypes.TRANSPORT.valueOf(), label: "Transport" },
|
942
|
+
],
|
943
|
+
Manufacturing: [
|
944
|
+
{ value: MitigationTypes.CEMENT.valueOf(), label: "Cement" },
|
945
|
+
{ value: MitigationTypes.CCS.valueOf(), label: "CCS" },
|
946
|
+
{ value: MitigationTypes.HFC_PFCS_SF6.valueOf(), label: "HFCs, PFCs, SF6" },
|
947
|
+
],
|
948
|
+
Hospitality: [],
|
949
|
+
Forestry: [{ value: MitigationTypes.FORESTRY.valueOf(), label: "Forestry" }],
|
950
|
+
Waste: [
|
951
|
+
{ value: MitigationTypes.LANDFILLS.valueOf(), label: "Landfills" },
|
952
|
+
{ value: MitigationTypes.FUGITIVE.valueOf(), label: "Fugitive" },
|
953
|
+
{
|
954
|
+
value: MitigationTypes.METHANE_AVOIDANCE.valueOf(),
|
955
|
+
label: "Methane avoidance",
|
956
|
+
},
|
957
|
+
],
|
958
|
+
Agriculture: [
|
959
|
+
{ value: MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" },
|
960
|
+
],
|
961
|
+
Other: [
|
962
|
+
{ value: MitigationTypes.MARINE.valueOf(), label: "Marine" },
|
963
|
+
{ value: MitigationTypes.N20.valueOf(), label: "N2O" },
|
964
|
+
],
|
965
|
+
};
|
896
966
|
|
897
967
|
var ESGType;
|
898
968
|
(function (ESGType) {
|
@@ -994,161 +1064,3427 @@ var RetireType;
|
|
994
1064
|
RetireType["OTHER"] = "2";
|
995
1065
|
})(RetireType || (RetireType = {}));
|
996
1066
|
|
997
|
-
var
|
998
|
-
(function (
|
999
|
-
|
1000
|
-
|
1067
|
+
var EnergyGenerationUnits;
|
1068
|
+
(function (EnergyGenerationUnits) {
|
1069
|
+
EnergyGenerationUnits["Wh"] = "Wh/year/unit";
|
1070
|
+
EnergyGenerationUnits["mWh"] = "mWh/year/unit";
|
1071
|
+
EnergyGenerationUnits["kWh"] = "kWh/year/unit";
|
1072
|
+
EnergyGenerationUnits["MWh"] = "MWh/year/unit";
|
1073
|
+
EnergyGenerationUnits["GWh"] = "GWh/year/unit";
|
1074
|
+
EnergyGenerationUnits["J"] = "J/year/unit";
|
1075
|
+
EnergyGenerationUnits["KJ"] = "kJ/year/unit";
|
1076
|
+
})(EnergyGenerationUnits || (EnergyGenerationUnits = {}));
|
1077
|
+
var energyGenerationUnitList = [
|
1078
|
+
{ value: EnergyGenerationUnits.Wh.valueOf(), label: "Wh" },
|
1079
|
+
{ value: EnergyGenerationUnits.mWh.valueOf(), label: "mWh" },
|
1080
|
+
{ value: EnergyGenerationUnits.kWh.valueOf(), label: "kWh" },
|
1081
|
+
{ value: EnergyGenerationUnits.MWh.valueOf(), label: "MWh" },
|
1082
|
+
{ value: EnergyGenerationUnits.GWh.valueOf(), label: "GWh" },
|
1083
|
+
{ value: EnergyGenerationUnits.J.valueOf(), label: "J" },
|
1084
|
+
{ value: EnergyGenerationUnits.KJ.valueOf(), label: "KJ" },
|
1085
|
+
];
|
1001
1086
|
|
1002
|
-
var
|
1003
|
-
(function (
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1087
|
+
var LandAreaUnits;
|
1088
|
+
(function (LandAreaUnits) {
|
1089
|
+
LandAreaUnits["mm2"] = "mm2";
|
1090
|
+
LandAreaUnits["cm2"] = "cm2";
|
1091
|
+
LandAreaUnits["m2"] = "m2";
|
1092
|
+
LandAreaUnits["ha"] = "ha";
|
1093
|
+
LandAreaUnits["km2"] = "km2";
|
1094
|
+
LandAreaUnits["in2"] = "in2";
|
1095
|
+
LandAreaUnits["ft2"] = "ft2";
|
1096
|
+
LandAreaUnits["ac"] = "ac";
|
1097
|
+
LandAreaUnits["Mi2"] = "Mi2";
|
1098
|
+
})(LandAreaUnits || (LandAreaUnits = {}));
|
1099
|
+
var landAreaUnitList = [
|
1100
|
+
{ value: LandAreaUnits.mm2.valueOf(), label: "mm2" },
|
1101
|
+
{ value: LandAreaUnits.cm2.valueOf(), label: "cm2" },
|
1102
|
+
{ value: LandAreaUnits.m2.valueOf(), label: "m2" },
|
1103
|
+
{ value: LandAreaUnits.ha.valueOf(), label: "ha" },
|
1104
|
+
{ value: LandAreaUnits.km2.valueOf(), label: "km2" },
|
1105
|
+
{ value: LandAreaUnits.in2.valueOf(), label: "in2" },
|
1106
|
+
{ value: LandAreaUnits.ft2.valueOf(), label: "ft2" },
|
1107
|
+
{ value: LandAreaUnits.ac.valueOf(), label: "ac" },
|
1108
|
+
{ value: LandAreaUnits.Mi2.valueOf(), label: "Mi2" },
|
1109
|
+
];
|
1007
1110
|
|
1008
|
-
var
|
1009
|
-
|
1111
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
1112
|
+
|
1113
|
+
var cjs = {};
|
1114
|
+
|
1115
|
+
var calculator = {};
|
1116
|
+
|
1117
|
+
var agricultureCal = {};
|
1118
|
+
|
1119
|
+
/**
|
1120
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1121
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1122
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1123
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1124
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1125
|
+
* Available under MIT license <http://lodash.com/license>
|
1126
|
+
*/
|
1127
|
+
|
1128
|
+
/** Used to determine if values are of the language type Object */
|
1129
|
+
var objectTypes$3 = {
|
1130
|
+
'boolean': false,
|
1131
|
+
'function': true,
|
1132
|
+
'object': true,
|
1133
|
+
'number': false,
|
1134
|
+
'string': false,
|
1135
|
+
'undefined': false
|
1136
|
+
};
|
1137
|
+
|
1138
|
+
var lodash__objecttypes = objectTypes$3;
|
1139
|
+
|
1140
|
+
/**
|
1141
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1142
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1143
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1144
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1145
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1146
|
+
* Available under MIT license <http://lodash.com/license>
|
1147
|
+
*/
|
1148
|
+
|
1149
|
+
var objectTypes$2 = lodash__objecttypes;
|
1150
|
+
|
1151
|
+
/**
|
1152
|
+
* Checks if `value` is the language type of Object.
|
1153
|
+
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
1154
|
+
*
|
1155
|
+
* @static
|
1156
|
+
* @memberOf _
|
1157
|
+
* @category Objects
|
1158
|
+
* @param {*} value The value to check.
|
1159
|
+
* @returns {boolean} Returns `true` if the `value` is an object, else `false`.
|
1160
|
+
* @example
|
1161
|
+
*
|
1162
|
+
* _.isObject({});
|
1163
|
+
* // => true
|
1164
|
+
*
|
1165
|
+
* _.isObject([1, 2, 3]);
|
1166
|
+
* // => true
|
1167
|
+
*
|
1168
|
+
* _.isObject(1);
|
1169
|
+
* // => false
|
1170
|
+
*/
|
1171
|
+
function isObject$4(value) {
|
1172
|
+
// check if the value is the ECMAScript language type of Object
|
1173
|
+
// http://es5.github.io/#x8
|
1174
|
+
// and avoid a V8 bug
|
1175
|
+
// http://code.google.com/p/v8/issues/detail?id=2291
|
1176
|
+
return !!(value && objectTypes$2[typeof value]);
|
1177
|
+
}
|
1178
|
+
|
1179
|
+
var lodash_isobject = isObject$4;
|
1180
|
+
|
1181
|
+
/**
|
1182
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1183
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1184
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1185
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1186
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1187
|
+
* Available under MIT license <http://lodash.com/license>
|
1188
|
+
*/
|
1189
|
+
|
1190
|
+
/** Used for native method references */
|
1191
|
+
var objectProto$1 = Object.prototype;
|
1192
|
+
|
1193
|
+
/** Used to resolve the internal [[Class]] of values */
|
1194
|
+
var toString = objectProto$1.toString;
|
1195
|
+
|
1196
|
+
/** Used to detect if a method is native */
|
1197
|
+
var reNative$4 = RegExp('^' +
|
1198
|
+
String(toString)
|
1199
|
+
.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
|
1200
|
+
.replace(/toString| for [^\]]+/g, '.*?') + '$'
|
1201
|
+
);
|
1202
|
+
|
1203
|
+
var lodash__renative = reNative$4;
|
1204
|
+
|
1205
|
+
/**
|
1206
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1207
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1208
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1209
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1210
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1211
|
+
* Available under MIT license <http://lodash.com/license>
|
1212
|
+
*/
|
1213
|
+
|
1214
|
+
var objectTypes$1 = lodash__objecttypes;
|
1215
|
+
|
1216
|
+
/** Used for native method references */
|
1217
|
+
var objectProto = Object.prototype;
|
1218
|
+
|
1219
|
+
/** Native method shortcuts */
|
1220
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
1221
|
+
|
1222
|
+
/**
|
1223
|
+
* A fallback implementation of `Object.keys` which produces an array of the
|
1224
|
+
* given object's own enumerable property names.
|
1225
|
+
*
|
1226
|
+
* @private
|
1227
|
+
* @type Function
|
1228
|
+
* @param {Object} object The object to inspect.
|
1229
|
+
* @returns {Array} Returns an array of property names.
|
1230
|
+
*/
|
1231
|
+
var shimKeys$1 = function(object) {
|
1232
|
+
var index, iterable = object, result = [];
|
1233
|
+
if (!iterable) return result;
|
1234
|
+
if (!(objectTypes$1[typeof object])) return result;
|
1235
|
+
for (index in iterable) {
|
1236
|
+
if (hasOwnProperty.call(iterable, index)) {
|
1237
|
+
result.push(index);
|
1238
|
+
}
|
1010
1239
|
}
|
1011
|
-
|
1240
|
+
return result
|
1241
|
+
};
|
1242
|
+
|
1243
|
+
var lodash__shimkeys = shimKeys$1;
|
1244
|
+
|
1245
|
+
/**
|
1246
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1247
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1248
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1249
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1250
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1251
|
+
* Available under MIT license <http://lodash.com/license>
|
1252
|
+
*/
|
1253
|
+
|
1254
|
+
var isObject$3 = lodash_isobject,
|
1255
|
+
reNative$3 = lodash__renative,
|
1256
|
+
shimKeys = lodash__shimkeys;
|
1257
|
+
|
1258
|
+
/* Native method shortcuts for methods with the same name as other `lodash` methods */
|
1259
|
+
var nativeKeys = reNative$3.test(nativeKeys = Object.keys) && nativeKeys;
|
1260
|
+
|
1261
|
+
/**
|
1262
|
+
* Creates an array composed of the own enumerable property names of an object.
|
1263
|
+
*
|
1264
|
+
* @static
|
1265
|
+
* @memberOf _
|
1266
|
+
* @category Objects
|
1267
|
+
* @param {Object} object The object to inspect.
|
1268
|
+
* @returns {Array} Returns an array of property names.
|
1269
|
+
* @example
|
1270
|
+
*
|
1271
|
+
* _.keys({ 'one': 1, 'two': 2, 'three': 3 });
|
1272
|
+
* // => ['one', 'two', 'three'] (property order is not guaranteed across environments)
|
1273
|
+
*/
|
1274
|
+
var keys$2 = !nativeKeys ? shimKeys : function(object) {
|
1275
|
+
if (!isObject$3(object)) {
|
1276
|
+
return [];
|
1277
|
+
}
|
1278
|
+
return nativeKeys(object);
|
1279
|
+
};
|
1280
|
+
|
1281
|
+
var lodash_keys = keys$2;
|
1282
|
+
|
1283
|
+
/**
|
1284
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1285
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1286
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1287
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1288
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1289
|
+
* Available under MIT license <http://lodash.com/license>
|
1290
|
+
*/
|
1291
|
+
|
1292
|
+
/**
|
1293
|
+
* A no-operation function.
|
1294
|
+
*
|
1295
|
+
* @static
|
1296
|
+
* @memberOf _
|
1297
|
+
* @category Utilities
|
1298
|
+
* @example
|
1299
|
+
*
|
1300
|
+
* var object = { 'name': 'fred' };
|
1301
|
+
* _.noop(object) === undefined;
|
1302
|
+
* // => true
|
1303
|
+
*/
|
1304
|
+
function noop$1() {
|
1305
|
+
// no operation performed
|
1306
|
+
}
|
1307
|
+
|
1308
|
+
var lodash_noop = noop$1;
|
1309
|
+
|
1310
|
+
/**
|
1311
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1312
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1313
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1314
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1315
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1316
|
+
* Available under MIT license <http://lodash.com/license>
|
1317
|
+
*/
|
1318
|
+
|
1319
|
+
var isObject$2 = lodash_isobject,
|
1320
|
+
reNative$2 = lodash__renative;
|
1321
|
+
|
1322
|
+
/* Native method shortcuts for methods with the same name as other `lodash` methods */
|
1323
|
+
var nativeCreate = reNative$2.test(nativeCreate = Object.create) && nativeCreate;
|
1324
|
+
|
1325
|
+
/**
|
1326
|
+
* The base implementation of `_.create` without support for assigning
|
1327
|
+
* properties to the created object.
|
1328
|
+
*
|
1329
|
+
* @private
|
1330
|
+
* @param {Object} prototype The object to inherit from.
|
1331
|
+
* @returns {Object} Returns the new object.
|
1332
|
+
*/
|
1333
|
+
function baseCreate$2(prototype, properties) {
|
1334
|
+
return isObject$2(prototype) ? nativeCreate(prototype) : {};
|
1335
|
+
}
|
1336
|
+
// fallback for browsers without `Object.create`
|
1337
|
+
if (!nativeCreate) {
|
1338
|
+
baseCreate$2 = (function() {
|
1339
|
+
function Object() {}
|
1340
|
+
return function(prototype) {
|
1341
|
+
if (isObject$2(prototype)) {
|
1342
|
+
Object.prototype = prototype;
|
1343
|
+
var result = new Object;
|
1344
|
+
Object.prototype = null;
|
1345
|
+
}
|
1346
|
+
return result || commonjsGlobal.Object();
|
1347
|
+
};
|
1348
|
+
}());
|
1349
|
+
}
|
1350
|
+
|
1351
|
+
var lodash__basecreate = baseCreate$2;
|
1352
|
+
|
1353
|
+
/**
|
1354
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1355
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1356
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1357
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1358
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1359
|
+
* Available under MIT license <http://lodash.com/license>
|
1360
|
+
*/
|
1361
|
+
|
1362
|
+
var noop = lodash_noop,
|
1363
|
+
reNative$1 = lodash__renative;
|
1364
|
+
|
1365
|
+
/** Used as the property descriptor for `__bindData__` */
|
1366
|
+
var descriptor = {
|
1367
|
+
'configurable': false,
|
1368
|
+
'enumerable': false,
|
1369
|
+
'value': null,
|
1370
|
+
'writable': false
|
1371
|
+
};
|
1372
|
+
|
1373
|
+
/** Used to set meta data on functions */
|
1374
|
+
var defineProperty = (function() {
|
1375
|
+
// IE 8 only accepts DOM elements
|
1376
|
+
try {
|
1377
|
+
var o = {},
|
1378
|
+
func = reNative$1.test(func = Object.defineProperty) && func,
|
1379
|
+
result = func(o, o, o) && func;
|
1380
|
+
} catch(e) { }
|
1381
|
+
return result;
|
1012
1382
|
}());
|
1013
1383
|
|
1014
|
-
|
1015
|
-
|
1384
|
+
/**
|
1385
|
+
* Sets `this` binding data on a given function.
|
1386
|
+
*
|
1387
|
+
* @private
|
1388
|
+
* @param {Function} func The function to set data on.
|
1389
|
+
* @param {Array} value The data array to set.
|
1390
|
+
*/
|
1391
|
+
var setBindData$3 = !defineProperty ? noop : function(func, value) {
|
1392
|
+
descriptor.value = value;
|
1393
|
+
defineProperty(func, '__bindData__', descriptor);
|
1394
|
+
};
|
1395
|
+
|
1396
|
+
var lodash__setbinddata = setBindData$3;
|
1397
|
+
|
1398
|
+
/**
|
1399
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1400
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1401
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1402
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1403
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1404
|
+
* Available under MIT license <http://lodash.com/license>
|
1405
|
+
*/
|
1406
|
+
|
1407
|
+
var baseCreate$1 = lodash__basecreate,
|
1408
|
+
isObject$1 = lodash_isobject,
|
1409
|
+
setBindData$2 = lodash__setbinddata;
|
1410
|
+
|
1411
|
+
/**
|
1412
|
+
* Used for `Array` method references.
|
1413
|
+
*
|
1414
|
+
* Normally `Array.prototype` would suffice, however, using an array literal
|
1415
|
+
* avoids issues in Narwhal.
|
1416
|
+
*/
|
1417
|
+
var arrayRef$2 = [];
|
1418
|
+
|
1419
|
+
/** Native method shortcuts */
|
1420
|
+
var push$2 = arrayRef$2.push;
|
1421
|
+
|
1422
|
+
/**
|
1423
|
+
* The base implementation of `_.bind` that creates the bound function and
|
1424
|
+
* sets its meta data.
|
1425
|
+
*
|
1426
|
+
* @private
|
1427
|
+
* @param {Array} bindData The bind data array.
|
1428
|
+
* @returns {Function} Returns the new bound function.
|
1429
|
+
*/
|
1430
|
+
function baseBind$1(bindData) {
|
1431
|
+
var func = bindData[0],
|
1432
|
+
partialArgs = bindData[2],
|
1433
|
+
thisArg = bindData[4];
|
1434
|
+
|
1435
|
+
function bound() {
|
1436
|
+
// `Function#bind` spec
|
1437
|
+
// http://es5.github.io/#x15.3.4.5
|
1438
|
+
if (partialArgs) {
|
1439
|
+
var args = partialArgs.slice();
|
1440
|
+
push$2.apply(args, arguments);
|
1016
1441
|
}
|
1017
|
-
return
|
1018
|
-
|
1442
|
+
// mimic the constructor's `return` behavior
|
1443
|
+
// http://es5.github.io/#x13.2.2
|
1444
|
+
if (this instanceof bound) {
|
1445
|
+
// ensure `new bound` is an instance of `func`
|
1446
|
+
var thisBinding = baseCreate$1(func.prototype),
|
1447
|
+
result = func.apply(thisBinding, args || arguments);
|
1448
|
+
return isObject$1(result) ? result : thisBinding;
|
1449
|
+
}
|
1450
|
+
return func.apply(thisArg, args || arguments);
|
1451
|
+
}
|
1452
|
+
setBindData$2(bound, bindData);
|
1453
|
+
return bound;
|
1454
|
+
}
|
1019
1455
|
|
1020
|
-
var
|
1021
|
-
|
1456
|
+
var lodash__basebind = baseBind$1;
|
1457
|
+
|
1458
|
+
/**
|
1459
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1460
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1461
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1462
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1463
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1464
|
+
* Available under MIT license <http://lodash.com/license>
|
1465
|
+
*/
|
1466
|
+
|
1467
|
+
/**
|
1468
|
+
* Slices the `collection` from the `start` index up to, but not including,
|
1469
|
+
* the `end` index.
|
1470
|
+
*
|
1471
|
+
* Note: This function is used instead of `Array#slice` to support node lists
|
1472
|
+
* in IE < 9 and to ensure dense arrays are returned.
|
1473
|
+
*
|
1474
|
+
* @private
|
1475
|
+
* @param {Array|Object|string} collection The collection to slice.
|
1476
|
+
* @param {number} start The start index.
|
1477
|
+
* @param {number} end The end index.
|
1478
|
+
* @returns {Array} Returns the new array.
|
1479
|
+
*/
|
1480
|
+
function slice$2(array, start, end) {
|
1481
|
+
start || (start = 0);
|
1482
|
+
if (typeof end == 'undefined') {
|
1483
|
+
end = array ? array.length : 0;
|
1484
|
+
}
|
1485
|
+
var index = -1,
|
1486
|
+
length = end - start || 0,
|
1487
|
+
result = Array(length < 0 ? 0 : length);
|
1488
|
+
|
1489
|
+
while (++index < length) {
|
1490
|
+
result[index] = array[start + index];
|
1491
|
+
}
|
1492
|
+
return result;
|
1493
|
+
}
|
1494
|
+
|
1495
|
+
var lodash__slice = slice$2;
|
1496
|
+
|
1497
|
+
/**
|
1498
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1499
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1500
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1501
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1502
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1503
|
+
* Available under MIT license <http://lodash.com/license>
|
1504
|
+
*/
|
1505
|
+
|
1506
|
+
var baseCreate = lodash__basecreate,
|
1507
|
+
isObject = lodash_isobject,
|
1508
|
+
setBindData$1 = lodash__setbinddata,
|
1509
|
+
slice$1 = lodash__slice;
|
1510
|
+
|
1511
|
+
/**
|
1512
|
+
* Used for `Array` method references.
|
1513
|
+
*
|
1514
|
+
* Normally `Array.prototype` would suffice, however, using an array literal
|
1515
|
+
* avoids issues in Narwhal.
|
1516
|
+
*/
|
1517
|
+
var arrayRef$1 = [];
|
1518
|
+
|
1519
|
+
/** Native method shortcuts */
|
1520
|
+
var push$1 = arrayRef$1.push;
|
1521
|
+
|
1522
|
+
/**
|
1523
|
+
* The base implementation of `createWrapper` that creates the wrapper and
|
1524
|
+
* sets its meta data.
|
1525
|
+
*
|
1526
|
+
* @private
|
1527
|
+
* @param {Array} bindData The bind data array.
|
1528
|
+
* @returns {Function} Returns the new function.
|
1529
|
+
*/
|
1530
|
+
function baseCreateWrapper$1(bindData) {
|
1531
|
+
var func = bindData[0],
|
1532
|
+
bitmask = bindData[1],
|
1533
|
+
partialArgs = bindData[2],
|
1534
|
+
partialRightArgs = bindData[3],
|
1535
|
+
thisArg = bindData[4],
|
1536
|
+
arity = bindData[5];
|
1537
|
+
|
1538
|
+
var isBind = bitmask & 1,
|
1539
|
+
isBindKey = bitmask & 2,
|
1540
|
+
isCurry = bitmask & 4,
|
1541
|
+
isCurryBound = bitmask & 8,
|
1542
|
+
key = func;
|
1543
|
+
|
1544
|
+
function bound() {
|
1545
|
+
var thisBinding = isBind ? thisArg : this;
|
1546
|
+
if (partialArgs) {
|
1547
|
+
var args = partialArgs.slice();
|
1548
|
+
push$1.apply(args, arguments);
|
1022
1549
|
}
|
1023
|
-
|
1024
|
-
|
1550
|
+
if (partialRightArgs || isCurry) {
|
1551
|
+
args || (args = slice$1(arguments));
|
1552
|
+
if (partialRightArgs) {
|
1553
|
+
push$1.apply(args, partialRightArgs);
|
1554
|
+
}
|
1555
|
+
if (isCurry && args.length < arity) {
|
1556
|
+
bitmask |= 16 & ~32;
|
1557
|
+
return baseCreateWrapper$1([func, (isCurryBound ? bitmask : bitmask & ~3), args, null, thisArg, arity]);
|
1558
|
+
}
|
1559
|
+
}
|
1560
|
+
args || (args = arguments);
|
1561
|
+
if (isBindKey) {
|
1562
|
+
func = thisBinding[key];
|
1563
|
+
}
|
1564
|
+
if (this instanceof bound) {
|
1565
|
+
thisBinding = baseCreate(func.prototype);
|
1566
|
+
var result = func.apply(thisBinding, args);
|
1567
|
+
return isObject(result) ? result : thisBinding;
|
1568
|
+
}
|
1569
|
+
return func.apply(thisBinding, args);
|
1570
|
+
}
|
1571
|
+
setBindData$1(bound, bindData);
|
1572
|
+
return bound;
|
1573
|
+
}
|
1025
1574
|
|
1026
|
-
var
|
1027
|
-
|
1575
|
+
var lodash__basecreatewrapper = baseCreateWrapper$1;
|
1576
|
+
|
1577
|
+
/**
|
1578
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1579
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1580
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1581
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1582
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1583
|
+
* Available under MIT license <http://lodash.com/license>
|
1584
|
+
*/
|
1585
|
+
|
1586
|
+
/**
|
1587
|
+
* Checks if `value` is a function.
|
1588
|
+
*
|
1589
|
+
* @static
|
1590
|
+
* @memberOf _
|
1591
|
+
* @category Objects
|
1592
|
+
* @param {*} value The value to check.
|
1593
|
+
* @returns {boolean} Returns `true` if the `value` is a function, else `false`.
|
1594
|
+
* @example
|
1595
|
+
*
|
1596
|
+
* _.isFunction(_);
|
1597
|
+
* // => true
|
1598
|
+
*/
|
1599
|
+
function isFunction$1(value) {
|
1600
|
+
return typeof value == 'function';
|
1601
|
+
}
|
1602
|
+
|
1603
|
+
var lodash_isfunction = isFunction$1;
|
1604
|
+
|
1605
|
+
/**
|
1606
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1607
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1608
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1609
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1610
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1611
|
+
* Available under MIT license <http://lodash.com/license>
|
1612
|
+
*/
|
1613
|
+
|
1614
|
+
var baseBind = lodash__basebind,
|
1615
|
+
baseCreateWrapper = lodash__basecreatewrapper,
|
1616
|
+
isFunction = lodash_isfunction;
|
1617
|
+
|
1618
|
+
/**
|
1619
|
+
* Used for `Array` method references.
|
1620
|
+
*
|
1621
|
+
* Normally `Array.prototype` would suffice, however, using an array literal
|
1622
|
+
* avoids issues in Narwhal.
|
1623
|
+
*/
|
1624
|
+
var arrayRef = [];
|
1625
|
+
|
1626
|
+
/** Native method shortcuts */
|
1627
|
+
var push = arrayRef.push;
|
1628
|
+
|
1629
|
+
/**
|
1630
|
+
* Creates a function that, when called, either curries or invokes `func`
|
1631
|
+
* with an optional `this` binding and partially applied arguments.
|
1632
|
+
*
|
1633
|
+
* @private
|
1634
|
+
* @param {Function|string} func The function or method name to reference.
|
1635
|
+
* @param {number} bitmask The bitmask of method flags to compose.
|
1636
|
+
* The bitmask may be composed of the following flags:
|
1637
|
+
* 1 - `_.bind`
|
1638
|
+
* 2 - `_.bindKey`
|
1639
|
+
* 4 - `_.curry`
|
1640
|
+
* 8 - `_.curry` (bound)
|
1641
|
+
* 16 - `_.partial`
|
1642
|
+
* 32 - `_.partialRight`
|
1643
|
+
* @param {Array} [partialArgs] An array of arguments to prepend to those
|
1644
|
+
* provided to the new function.
|
1645
|
+
* @param {Array} [partialRightArgs] An array of arguments to append to those
|
1646
|
+
* provided to the new function.
|
1647
|
+
* @param {*} [thisArg] The `this` binding of `func`.
|
1648
|
+
* @param {number} [arity] The arity of `func`.
|
1649
|
+
* @returns {Function} Returns the new function.
|
1650
|
+
*/
|
1651
|
+
function createWrapper$1(func, bitmask, partialArgs, partialRightArgs, thisArg, arity) {
|
1652
|
+
var isBind = bitmask & 1,
|
1653
|
+
isBindKey = bitmask & 2,
|
1654
|
+
isCurry = bitmask & 4,
|
1655
|
+
isPartial = bitmask & 16,
|
1656
|
+
isPartialRight = bitmask & 32;
|
1657
|
+
|
1658
|
+
if (!isBindKey && !isFunction(func)) {
|
1659
|
+
throw new TypeError;
|
1660
|
+
}
|
1661
|
+
if (isPartial && !partialArgs.length) {
|
1662
|
+
bitmask &= ~16;
|
1663
|
+
isPartial = partialArgs = false;
|
1664
|
+
}
|
1665
|
+
if (isPartialRight && !partialRightArgs.length) {
|
1666
|
+
bitmask &= ~32;
|
1667
|
+
isPartialRight = partialRightArgs = false;
|
1668
|
+
}
|
1669
|
+
var bindData = func && func.__bindData__;
|
1670
|
+
if (bindData && bindData !== true) {
|
1671
|
+
bindData = bindData.slice();
|
1672
|
+
|
1673
|
+
// set `thisBinding` is not previously bound
|
1674
|
+
if (isBind && !(bindData[1] & 1)) {
|
1675
|
+
bindData[4] = thisArg;
|
1028
1676
|
}
|
1029
|
-
|
1030
|
-
|
1677
|
+
// set if previously bound but not currently (subsequent curried functions)
|
1678
|
+
if (!isBind && bindData[1] & 1) {
|
1679
|
+
bitmask |= 8;
|
1680
|
+
}
|
1681
|
+
// set curried arity if not yet set
|
1682
|
+
if (isCurry && !(bindData[1] & 4)) {
|
1683
|
+
bindData[5] = arity;
|
1684
|
+
}
|
1685
|
+
// append partial left arguments
|
1686
|
+
if (isPartial) {
|
1687
|
+
push.apply(bindData[2] || (bindData[2] = []), partialArgs);
|
1688
|
+
}
|
1689
|
+
// append partial right arguments
|
1690
|
+
if (isPartialRight) {
|
1691
|
+
push.apply(bindData[3] || (bindData[3] = []), partialRightArgs);
|
1692
|
+
}
|
1693
|
+
// merge flags
|
1694
|
+
bindData[1] |= bitmask;
|
1695
|
+
return createWrapper$1.apply(null, bindData);
|
1696
|
+
}
|
1697
|
+
// fast path for `_.bind`
|
1698
|
+
var creater = (bitmask == 1 || bitmask === 17) ? baseBind : baseCreateWrapper;
|
1699
|
+
return creater([func, bitmask, partialArgs, partialRightArgs, thisArg, arity]);
|
1700
|
+
}
|
1031
1701
|
|
1032
|
-
var
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1702
|
+
var lodash__createwrapper = createWrapper$1;
|
1703
|
+
|
1704
|
+
/**
|
1705
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1706
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1707
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1708
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1709
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1710
|
+
* Available under MIT license <http://lodash.com/license>
|
1711
|
+
*/
|
1712
|
+
|
1713
|
+
var createWrapper = lodash__createwrapper,
|
1714
|
+
slice = lodash__slice;
|
1715
|
+
|
1716
|
+
/**
|
1717
|
+
* Creates a function that, when called, invokes `func` with the `this`
|
1718
|
+
* binding of `thisArg` and prepends any additional `bind` arguments to those
|
1719
|
+
* provided to the bound function.
|
1720
|
+
*
|
1721
|
+
* @static
|
1722
|
+
* @memberOf _
|
1723
|
+
* @category Functions
|
1724
|
+
* @param {Function} func The function to bind.
|
1725
|
+
* @param {*} [thisArg] The `this` binding of `func`.
|
1726
|
+
* @param {...*} [arg] Arguments to be partially applied.
|
1727
|
+
* @returns {Function} Returns the new bound function.
|
1728
|
+
* @example
|
1729
|
+
*
|
1730
|
+
* var func = function(greeting) {
|
1731
|
+
* return greeting + ' ' + this.name;
|
1732
|
+
* };
|
1733
|
+
*
|
1734
|
+
* func = _.bind(func, { 'name': 'fred' }, 'hi');
|
1735
|
+
* func();
|
1736
|
+
* // => 'hi fred'
|
1737
|
+
*/
|
1738
|
+
function bind$1(func, thisArg) {
|
1739
|
+
return arguments.length > 2
|
1740
|
+
? createWrapper(func, 17, slice(arguments, 2), null, thisArg)
|
1741
|
+
: createWrapper(func, 1, null, null, thisArg);
|
1742
|
+
}
|
1743
|
+
|
1744
|
+
var lodash_bind = bind$1;
|
1745
|
+
|
1746
|
+
/**
|
1747
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1748
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1749
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1750
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1751
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1752
|
+
* Available under MIT license <http://lodash.com/license>
|
1753
|
+
*/
|
1754
|
+
|
1755
|
+
/**
|
1756
|
+
* This method returns the first argument provided to it.
|
1757
|
+
*
|
1758
|
+
* @static
|
1759
|
+
* @memberOf _
|
1760
|
+
* @category Utilities
|
1761
|
+
* @param {*} value Any value.
|
1762
|
+
* @returns {*} Returns `value`.
|
1763
|
+
* @example
|
1764
|
+
*
|
1765
|
+
* var object = { 'name': 'fred' };
|
1766
|
+
* _.identity(object) === object;
|
1767
|
+
* // => true
|
1768
|
+
*/
|
1769
|
+
function identity$1(value) {
|
1770
|
+
return value;
|
1771
|
+
}
|
1772
|
+
|
1773
|
+
var lodash_identity = identity$1;
|
1774
|
+
|
1775
|
+
/**
|
1776
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1777
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1778
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1779
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1780
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1781
|
+
* Available under MIT license <http://lodash.com/license>
|
1782
|
+
*/
|
1783
|
+
|
1784
|
+
var reNative = lodash__renative;
|
1785
|
+
|
1786
|
+
/** Used to detect functions containing a `this` reference */
|
1787
|
+
var reThis$1 = /\bthis\b/;
|
1788
|
+
|
1789
|
+
/**
|
1790
|
+
* An object used to flag environments features.
|
1791
|
+
*
|
1792
|
+
* @static
|
1793
|
+
* @memberOf _
|
1794
|
+
* @type Object
|
1795
|
+
*/
|
1796
|
+
var support$1 = {};
|
1797
|
+
|
1798
|
+
/**
|
1799
|
+
* Detect if functions can be decompiled by `Function#toString`
|
1800
|
+
* (all but PS3 and older Opera mobile browsers & avoided in Windows 8 apps).
|
1801
|
+
*
|
1802
|
+
* @memberOf _.support
|
1803
|
+
* @type boolean
|
1804
|
+
*/
|
1805
|
+
support$1.funcDecomp = !reNative.test(commonjsGlobal.WinRTError) && reThis$1.test(function() { return this; });
|
1806
|
+
|
1807
|
+
/**
|
1808
|
+
* Detect if `Function#name` is supported (all but IE).
|
1809
|
+
*
|
1810
|
+
* @memberOf _.support
|
1811
|
+
* @type boolean
|
1812
|
+
*/
|
1813
|
+
support$1.funcNames = typeof Function.name == 'string';
|
1814
|
+
|
1815
|
+
var lodash_support = support$1;
|
1816
|
+
|
1817
|
+
/**
|
1818
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1819
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1820
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1821
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1822
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1823
|
+
* Available under MIT license <http://lodash.com/license>
|
1824
|
+
*/
|
1825
|
+
|
1826
|
+
var bind = lodash_bind,
|
1827
|
+
identity = lodash_identity,
|
1828
|
+
setBindData = lodash__setbinddata,
|
1829
|
+
support = lodash_support;
|
1830
|
+
|
1831
|
+
/** Used to detected named functions */
|
1832
|
+
var reFuncName = /^\s*function[ \n\r\t]+\w/;
|
1833
|
+
|
1834
|
+
/** Used to detect functions containing a `this` reference */
|
1835
|
+
var reThis = /\bthis\b/;
|
1836
|
+
|
1837
|
+
/** Native method shortcuts */
|
1838
|
+
var fnToString = Function.prototype.toString;
|
1839
|
+
|
1840
|
+
/**
|
1841
|
+
* The base implementation of `_.createCallback` without support for creating
|
1842
|
+
* "_.pluck" or "_.where" style callbacks.
|
1843
|
+
*
|
1844
|
+
* @private
|
1845
|
+
* @param {*} [func=identity] The value to convert to a callback.
|
1846
|
+
* @param {*} [thisArg] The `this` binding of the created callback.
|
1847
|
+
* @param {number} [argCount] The number of arguments the callback accepts.
|
1848
|
+
* @returns {Function} Returns a callback function.
|
1849
|
+
*/
|
1850
|
+
function baseCreateCallback$2(func, thisArg, argCount) {
|
1851
|
+
if (typeof func != 'function') {
|
1852
|
+
return identity;
|
1853
|
+
}
|
1854
|
+
// exit early for no `thisArg` or already bound by `Function#bind`
|
1855
|
+
if (typeof thisArg == 'undefined' || !('prototype' in func)) {
|
1856
|
+
return func;
|
1857
|
+
}
|
1858
|
+
var bindData = func.__bindData__;
|
1859
|
+
if (typeof bindData == 'undefined') {
|
1860
|
+
if (support.funcNames) {
|
1861
|
+
bindData = !func.name;
|
1862
|
+
}
|
1863
|
+
bindData = bindData || !support.funcDecomp;
|
1864
|
+
if (!bindData) {
|
1865
|
+
var source = fnToString.call(func);
|
1866
|
+
if (!support.funcNames) {
|
1867
|
+
bindData = !reFuncName.test(source);
|
1868
|
+
}
|
1869
|
+
if (!bindData) {
|
1870
|
+
// checks if `func` references the `this` keyword and stores the result
|
1871
|
+
bindData = reThis.test(source);
|
1872
|
+
setBindData(func, bindData);
|
1873
|
+
}
|
1874
|
+
}
|
1875
|
+
}
|
1876
|
+
// exit early if there are no `this` references or `func` is bound
|
1877
|
+
if (bindData === false || (bindData !== true && bindData[1] & 1)) {
|
1878
|
+
return func;
|
1879
|
+
}
|
1880
|
+
switch (argCount) {
|
1881
|
+
case 1: return function(value) {
|
1882
|
+
return func.call(thisArg, value);
|
1883
|
+
};
|
1884
|
+
case 2: return function(a, b) {
|
1885
|
+
return func.call(thisArg, a, b);
|
1886
|
+
};
|
1887
|
+
case 3: return function(value, index, collection) {
|
1888
|
+
return func.call(thisArg, value, index, collection);
|
1889
|
+
};
|
1890
|
+
case 4: return function(accumulator, value, index, collection) {
|
1891
|
+
return func.call(thisArg, accumulator, value, index, collection);
|
1892
|
+
};
|
1893
|
+
}
|
1894
|
+
return bind(func, thisArg);
|
1895
|
+
}
|
1896
|
+
|
1897
|
+
var lodash__basecreatecallback = baseCreateCallback$2;
|
1898
|
+
|
1899
|
+
/**
|
1900
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1901
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1902
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1903
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1904
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1905
|
+
* Available under MIT license <http://lodash.com/license>
|
1906
|
+
*/
|
1907
|
+
|
1908
|
+
var baseCreateCallback$1 = lodash__basecreatecallback,
|
1909
|
+
keys$1 = lodash_keys,
|
1910
|
+
objectTypes = lodash__objecttypes;
|
1911
|
+
|
1912
|
+
/**
|
1913
|
+
* Iterates over own enumerable properties of an object, executing the callback
|
1914
|
+
* for each property. The callback is bound to `thisArg` and invoked with three
|
1915
|
+
* arguments; (value, key, object). Callbacks may exit iteration early by
|
1916
|
+
* explicitly returning `false`.
|
1917
|
+
*
|
1918
|
+
* @static
|
1919
|
+
* @memberOf _
|
1920
|
+
* @type Function
|
1921
|
+
* @category Objects
|
1922
|
+
* @param {Object} object The object to iterate over.
|
1923
|
+
* @param {Function} [callback=identity] The function called per iteration.
|
1924
|
+
* @param {*} [thisArg] The `this` binding of `callback`.
|
1925
|
+
* @returns {Object} Returns `object`.
|
1926
|
+
* @example
|
1927
|
+
*
|
1928
|
+
* _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
|
1929
|
+
* console.log(key);
|
1930
|
+
* });
|
1931
|
+
* // => logs '0', '1', and 'length' (property order is not guaranteed across environments)
|
1932
|
+
*/
|
1933
|
+
var forOwn$1 = function(collection, callback, thisArg) {
|
1934
|
+
var index, iterable = collection, result = iterable;
|
1935
|
+
if (!iterable) return result;
|
1936
|
+
if (!objectTypes[typeof iterable]) return result;
|
1937
|
+
callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback$1(callback, thisArg, 3);
|
1938
|
+
var ownIndex = -1,
|
1939
|
+
ownProps = objectTypes[typeof iterable] && keys$1(iterable),
|
1940
|
+
length = ownProps ? ownProps.length : 0;
|
1941
|
+
|
1942
|
+
while (++ownIndex < length) {
|
1943
|
+
index = ownProps[ownIndex];
|
1944
|
+
if (callback(iterable[index], index, collection) === false) return result;
|
1945
|
+
}
|
1946
|
+
return result
|
1947
|
+
};
|
1948
|
+
|
1949
|
+
var lodash_forown = forOwn$1;
|
1950
|
+
|
1951
|
+
/**
|
1952
|
+
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
|
1953
|
+
* Build: `lodash modularize modern exports="npm" -o ./npm/`
|
1954
|
+
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
1955
|
+
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
|
1956
|
+
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
1957
|
+
* Available under MIT license <http://lodash.com/license>
|
1958
|
+
*/
|
1959
|
+
|
1960
|
+
var baseCreateCallback = lodash__basecreatecallback,
|
1961
|
+
forOwn = lodash_forown;
|
1962
|
+
|
1963
|
+
/**
|
1964
|
+
* Iterates over elements of a collection, executing the callback for each
|
1965
|
+
* element. The callback is bound to `thisArg` and invoked with three arguments;
|
1966
|
+
* (value, index|key, collection). Callbacks may exit iteration early by
|
1967
|
+
* explicitly returning `false`.
|
1968
|
+
*
|
1969
|
+
* Note: As with other "Collections" methods, objects with a `length` property
|
1970
|
+
* are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`
|
1971
|
+
* may be used for object iteration.
|
1972
|
+
*
|
1973
|
+
* @static
|
1974
|
+
* @memberOf _
|
1975
|
+
* @alias each
|
1976
|
+
* @category Collections
|
1977
|
+
* @param {Array|Object|string} collection The collection to iterate over.
|
1978
|
+
* @param {Function} [callback=identity] The function called per iteration.
|
1979
|
+
* @param {*} [thisArg] The `this` binding of `callback`.
|
1980
|
+
* @returns {Array|Object|string} Returns `collection`.
|
1981
|
+
* @example
|
1982
|
+
*
|
1983
|
+
* _([1, 2, 3]).forEach(function(num) { console.log(num); }).join(',');
|
1984
|
+
* // => logs each number and returns '1,2,3'
|
1985
|
+
*
|
1986
|
+
* _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { console.log(num); });
|
1987
|
+
* // => logs each number and returns the object (property order is not guaranteed across environments)
|
1988
|
+
*/
|
1989
|
+
function forEach(collection, callback, thisArg) {
|
1990
|
+
var index = -1,
|
1991
|
+
length = collection ? collection.length : 0;
|
1992
|
+
|
1993
|
+
callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3);
|
1994
|
+
if (typeof length == 'number') {
|
1995
|
+
while (++index < length) {
|
1996
|
+
if (callback(collection[index], index, collection) === false) {
|
1997
|
+
break;
|
1998
|
+
}
|
1999
|
+
}
|
2000
|
+
} else {
|
2001
|
+
forOwn(collection, callback);
|
2002
|
+
}
|
2003
|
+
return collection;
|
2004
|
+
}
|
2005
|
+
|
2006
|
+
var lodash_foreach = forEach;
|
2007
|
+
|
2008
|
+
var metric$b,
|
2009
|
+
imperial$9;
|
2010
|
+
|
2011
|
+
metric$b = {
|
2012
|
+
mm: {
|
2013
|
+
name: {
|
2014
|
+
singular: 'Millimeter',
|
2015
|
+
plural: 'Millimeters'
|
2016
|
+
},
|
2017
|
+
to_anchor: 1/1000
|
2018
|
+
},
|
2019
|
+
cm: {
|
2020
|
+
name: {
|
2021
|
+
singular: 'Centimeter',
|
2022
|
+
plural: 'Centimeters'
|
2023
|
+
},
|
2024
|
+
to_anchor: 1/100
|
2025
|
+
},
|
2026
|
+
m: {
|
2027
|
+
name: {
|
2028
|
+
singular: 'Meter',
|
2029
|
+
plural: 'Meters'
|
2030
|
+
},
|
2031
|
+
to_anchor: 1
|
2032
|
+
},
|
2033
|
+
km: {
|
2034
|
+
name: {
|
2035
|
+
singular: 'Kilometer',
|
2036
|
+
plural: 'Kilometers'
|
2037
|
+
},
|
2038
|
+
to_anchor: 1000
|
2039
|
+
}
|
2040
|
+
};
|
2041
|
+
|
2042
|
+
imperial$9 = {
|
2043
|
+
'in': {
|
2044
|
+
name: {
|
2045
|
+
singular: 'Inch',
|
2046
|
+
plural: 'Inches'
|
2047
|
+
},
|
2048
|
+
to_anchor: 1/12
|
2049
|
+
},
|
2050
|
+
yd: {
|
2051
|
+
name: {
|
2052
|
+
singular: 'Yard',
|
2053
|
+
plural: 'Yards'
|
2054
|
+
},
|
2055
|
+
to_anchor: 3
|
2056
|
+
},
|
2057
|
+
'ft-us': {
|
2058
|
+
name: {
|
2059
|
+
singular: 'US Survey Foot',
|
2060
|
+
plural: 'US Survey Feet'
|
2061
|
+
},
|
2062
|
+
to_anchor: 1.000002
|
2063
|
+
},
|
2064
|
+
ft: {
|
2065
|
+
name: {
|
2066
|
+
singular: 'Foot',
|
2067
|
+
plural: 'Feet'
|
2068
|
+
},
|
2069
|
+
to_anchor: 1
|
2070
|
+
},
|
2071
|
+
mi: {
|
2072
|
+
name: {
|
2073
|
+
singular: 'Mile',
|
2074
|
+
plural: 'Miles'
|
2075
|
+
},
|
2076
|
+
to_anchor: 5280
|
2077
|
+
}
|
2078
|
+
};
|
2079
|
+
|
2080
|
+
var length = {
|
2081
|
+
metric: metric$b,
|
2082
|
+
imperial: imperial$9,
|
2083
|
+
_anchors: {
|
2084
|
+
metric: {
|
2085
|
+
unit: 'm',
|
2086
|
+
ratio: 3.28084
|
2087
|
+
},
|
2088
|
+
imperial: {
|
2089
|
+
unit: 'ft',
|
2090
|
+
ratio: 1/3.28084
|
2091
|
+
}
|
2092
|
+
}
|
2093
|
+
};
|
2094
|
+
|
2095
|
+
var metric$a
|
2096
|
+
, imperial$8;
|
2097
|
+
|
2098
|
+
metric$a = {
|
2099
|
+
mm2: {
|
2100
|
+
name: {
|
2101
|
+
singular: 'Square Millimeter'
|
2102
|
+
, plural: 'Square Millimeters'
|
2103
|
+
}
|
2104
|
+
, to_anchor: 1/1000000
|
2105
|
+
}
|
2106
|
+
, cm2: {
|
2107
|
+
name: {
|
2108
|
+
singular: 'Centimeter'
|
2109
|
+
, plural: 'Centimeters'
|
2110
|
+
}
|
2111
|
+
, to_anchor: 1/10000
|
2112
|
+
}
|
2113
|
+
, m2: {
|
2114
|
+
name: {
|
2115
|
+
singular: 'Square Meter'
|
2116
|
+
, plural: 'Square Meters'
|
2117
|
+
}
|
2118
|
+
, to_anchor: 1
|
2119
|
+
}
|
2120
|
+
, ha: {
|
2121
|
+
name: {
|
2122
|
+
singular: 'Hectare'
|
2123
|
+
, plural: 'Hectares'
|
2124
|
+
}
|
2125
|
+
, to_anchor: 10000
|
2126
|
+
}
|
2127
|
+
, km2: {
|
2128
|
+
name: {
|
2129
|
+
singular: 'Square Kilometer'
|
2130
|
+
, plural: 'Square Kilometers'
|
2131
|
+
}
|
2132
|
+
, to_anchor: 1000000
|
2133
|
+
}
|
2134
|
+
};
|
2135
|
+
|
2136
|
+
imperial$8 = {
|
2137
|
+
'in2': {
|
2138
|
+
name: {
|
2139
|
+
singular: 'Square Inch'
|
2140
|
+
, plural: 'Square Inches'
|
2141
|
+
}
|
2142
|
+
, to_anchor: 1/144
|
2143
|
+
}
|
2144
|
+
, yd2: {
|
2145
|
+
name: {
|
2146
|
+
singular: 'Square Yard'
|
2147
|
+
, plural: 'Square Yards'
|
2148
|
+
}
|
2149
|
+
, to_anchor: 9
|
2150
|
+
}
|
2151
|
+
, ft2: {
|
2152
|
+
name: {
|
2153
|
+
singular: 'Square Foot'
|
2154
|
+
, plural: 'Square Feet'
|
2155
|
+
}
|
2156
|
+
, to_anchor: 1
|
2157
|
+
}
|
2158
|
+
, ac: {
|
2159
|
+
name: {
|
2160
|
+
singular: 'Acre'
|
2161
|
+
, plural: 'Acres'
|
2162
|
+
}
|
2163
|
+
, to_anchor: 43560
|
2164
|
+
}
|
2165
|
+
, mi2: {
|
2166
|
+
name: {
|
2167
|
+
singular: 'Square Mile'
|
2168
|
+
, plural: 'Square Miles'
|
2169
|
+
}
|
2170
|
+
, to_anchor: 27878400
|
2171
|
+
}
|
2172
|
+
};
|
2173
|
+
|
2174
|
+
var area = {
|
2175
|
+
metric: metric$a
|
2176
|
+
, imperial: imperial$8
|
2177
|
+
, _anchors: {
|
2178
|
+
metric: {
|
2179
|
+
unit: 'm2'
|
2180
|
+
, ratio: 10.7639
|
2181
|
+
}
|
2182
|
+
, imperial: {
|
2183
|
+
unit: 'ft2'
|
2184
|
+
, ratio: 1/10.7639
|
2185
|
+
}
|
2186
|
+
}
|
2187
|
+
};
|
2188
|
+
|
2189
|
+
var metric$9
|
2190
|
+
, imperial$7;
|
2191
|
+
|
2192
|
+
metric$9 = {
|
2193
|
+
mcg: {
|
2194
|
+
name: {
|
2195
|
+
singular: 'Microgram'
|
2196
|
+
, plural: 'Micrograms'
|
2197
|
+
}
|
2198
|
+
, to_anchor: 1/1000000
|
2199
|
+
}
|
2200
|
+
, mg: {
|
2201
|
+
name: {
|
2202
|
+
singular: 'Milligram'
|
2203
|
+
, plural: 'Milligrams'
|
2204
|
+
}
|
2205
|
+
, to_anchor: 1/1000
|
2206
|
+
}
|
2207
|
+
, g: {
|
2208
|
+
name: {
|
2209
|
+
singular: 'Gram'
|
2210
|
+
, plural: 'Grams'
|
2211
|
+
}
|
2212
|
+
, to_anchor: 1
|
2213
|
+
}
|
2214
|
+
, kg: {
|
2215
|
+
name: {
|
2216
|
+
singular: 'Kilogram'
|
2217
|
+
, plural: 'Kilograms'
|
2218
|
+
}
|
2219
|
+
, to_anchor: 1000
|
2220
|
+
}
|
2221
|
+
, mt: {
|
2222
|
+
name: {
|
2223
|
+
singular: 'Metric Tonne'
|
2224
|
+
, plural: 'Metric Tonnes'
|
2225
|
+
}
|
2226
|
+
, to_anchor: 1000000
|
2227
|
+
}
|
2228
|
+
};
|
2229
|
+
|
2230
|
+
imperial$7 = {
|
2231
|
+
oz: {
|
2232
|
+
name: {
|
2233
|
+
singular: 'Ounce'
|
2234
|
+
, plural: 'Ounces'
|
2235
|
+
}
|
2236
|
+
, to_anchor: 1/16
|
2237
|
+
}
|
2238
|
+
, lb: {
|
2239
|
+
name: {
|
2240
|
+
singular: 'Pound'
|
2241
|
+
, plural: 'Pounds'
|
2242
|
+
}
|
2243
|
+
, to_anchor: 1
|
2244
|
+
}, t: {
|
2245
|
+
name: {
|
2246
|
+
singular: 'Ton',
|
2247
|
+
plural: 'Tons',
|
2248
|
+
},
|
2249
|
+
to_anchor: 2000,
|
2250
|
+
},
|
2251
|
+
};
|
2252
|
+
|
2253
|
+
var mass = {
|
2254
|
+
metric: metric$9
|
2255
|
+
, imperial: imperial$7
|
2256
|
+
, _anchors: {
|
2257
|
+
metric: {
|
2258
|
+
unit: 'g'
|
2259
|
+
, ratio: 1/453.592
|
2260
|
+
}
|
2261
|
+
, imperial: {
|
2262
|
+
unit: 'lb'
|
2263
|
+
, ratio: 453.592
|
2264
|
+
}
|
2265
|
+
}
|
2266
|
+
};
|
2267
|
+
|
2268
|
+
var metric$8
|
2269
|
+
, imperial$6;
|
2270
|
+
|
2271
|
+
metric$8 = {
|
2272
|
+
mm3: {
|
2273
|
+
name: {
|
2274
|
+
singular: 'Cubic Millimeter'
|
2275
|
+
, plural: 'Cubic Millimeters'
|
2276
|
+
}
|
2277
|
+
, to_anchor: 1/1000000
|
2278
|
+
}
|
2279
|
+
, cm3: {
|
2280
|
+
name: {
|
2281
|
+
singular: 'Cubic Centimeter'
|
2282
|
+
, plural: 'Cubic Centimeters'
|
2283
|
+
}
|
2284
|
+
, to_anchor: 1/1000
|
2285
|
+
}
|
2286
|
+
, ml: {
|
2287
|
+
name: {
|
2288
|
+
singular: 'Millilitre'
|
2289
|
+
, plural: 'Millilitres'
|
2290
|
+
}
|
2291
|
+
, to_anchor: 1/1000
|
2292
|
+
}
|
2293
|
+
, cl: {
|
2294
|
+
name: {
|
2295
|
+
singular: 'Centilitre'
|
2296
|
+
, plural: 'Centilitres'
|
2297
|
+
}
|
2298
|
+
, to_anchor: 1/100
|
2299
|
+
}
|
2300
|
+
, dl: {
|
2301
|
+
name: {
|
2302
|
+
singular: 'Decilitre'
|
2303
|
+
, plural: 'Decilitres'
|
2304
|
+
}
|
2305
|
+
, to_anchor: 1/10
|
2306
|
+
}
|
2307
|
+
, l: {
|
2308
|
+
name: {
|
2309
|
+
singular: 'Litre'
|
2310
|
+
, plural: 'Litres'
|
2311
|
+
}
|
2312
|
+
, to_anchor: 1
|
2313
|
+
}
|
2314
|
+
, kl: {
|
2315
|
+
name: {
|
2316
|
+
singular: 'Kilolitre'
|
2317
|
+
, plural: 'Kilolitres'
|
2318
|
+
}
|
2319
|
+
, to_anchor: 1000
|
2320
|
+
}
|
2321
|
+
, m3: {
|
2322
|
+
name: {
|
2323
|
+
singular: 'Cubic meter'
|
2324
|
+
, plural: 'Cubic meters'
|
2325
|
+
}
|
2326
|
+
, to_anchor: 1000
|
2327
|
+
}
|
2328
|
+
, km3: {
|
2329
|
+
name: {
|
2330
|
+
singular: 'Cubic kilometer'
|
2331
|
+
, plural: 'Cubic kilometers'
|
2332
|
+
}
|
2333
|
+
, to_anchor: 1000000000000
|
2334
|
+
}
|
2335
|
+
|
2336
|
+
// Swedish units
|
2337
|
+
, krm: {
|
2338
|
+
name: {
|
2339
|
+
singular: 'Matsked'
|
2340
|
+
, plural: 'Matskedar'
|
2341
|
+
}
|
2342
|
+
, to_anchor: 1/1000
|
2343
|
+
}
|
2344
|
+
, tsk: {
|
2345
|
+
name: {
|
2346
|
+
singular: 'Tesked'
|
2347
|
+
, plural: 'Teskedar'
|
2348
|
+
}
|
2349
|
+
, to_anchor: 5/1000
|
2350
|
+
}
|
2351
|
+
, msk: {
|
2352
|
+
name: {
|
2353
|
+
singular: 'Matsked'
|
2354
|
+
, plural: 'Matskedar'
|
2355
|
+
}
|
2356
|
+
, to_anchor: 15/1000
|
2357
|
+
}
|
2358
|
+
, kkp: {
|
2359
|
+
name: {
|
2360
|
+
singular: 'Kaffekopp'
|
2361
|
+
, plural: 'Kaffekoppar'
|
2362
|
+
}
|
2363
|
+
, to_anchor: 150/1000
|
2364
|
+
}
|
2365
|
+
, glas: {
|
2366
|
+
name: {
|
2367
|
+
singular: 'Glas'
|
2368
|
+
, plural: 'Glas'
|
2369
|
+
}
|
2370
|
+
, to_anchor: 200/1000
|
2371
|
+
}
|
2372
|
+
, kanna: {
|
2373
|
+
name: {
|
2374
|
+
singular: 'Kanna'
|
2375
|
+
, plural: 'Kannor'
|
2376
|
+
}
|
2377
|
+
, to_anchor: 2.617
|
2378
|
+
}
|
2379
|
+
};
|
2380
|
+
|
2381
|
+
imperial$6 = {
|
2382
|
+
tsp: {
|
2383
|
+
name: {
|
2384
|
+
singular: 'Teaspoon'
|
2385
|
+
, plural: 'Teaspoons'
|
2386
|
+
}
|
2387
|
+
, to_anchor: 1/6
|
2388
|
+
}
|
2389
|
+
, Tbs: {
|
2390
|
+
name: {
|
2391
|
+
singular: 'Tablespoon'
|
2392
|
+
, plural: 'Tablespoons'
|
2393
|
+
}
|
2394
|
+
, to_anchor: 1/2
|
2395
|
+
}
|
2396
|
+
, in3: {
|
2397
|
+
name: {
|
2398
|
+
singular: 'Cubic inch'
|
2399
|
+
, plural: 'Cubic inches'
|
2400
|
+
}
|
2401
|
+
, to_anchor: 0.55411
|
2402
|
+
}
|
2403
|
+
, 'fl-oz': {
|
2404
|
+
name: {
|
2405
|
+
singular: 'Fluid Ounce'
|
2406
|
+
, plural: 'Fluid Ounces'
|
2407
|
+
}
|
2408
|
+
, to_anchor: 1
|
2409
|
+
}
|
2410
|
+
, cup: {
|
2411
|
+
name: {
|
2412
|
+
singular: 'Cup'
|
2413
|
+
, plural: 'Cups'
|
2414
|
+
}
|
2415
|
+
, to_anchor: 8
|
2416
|
+
}
|
2417
|
+
, pnt: {
|
2418
|
+
name: {
|
2419
|
+
singular: 'Pint'
|
2420
|
+
, plural: 'Pints'
|
2421
|
+
}
|
2422
|
+
, to_anchor: 16
|
2423
|
+
}
|
2424
|
+
, qt: {
|
2425
|
+
name: {
|
2426
|
+
singular: 'Quart'
|
2427
|
+
, plural: 'Quarts'
|
2428
|
+
}
|
2429
|
+
, to_anchor: 32
|
2430
|
+
}
|
2431
|
+
, gal: {
|
2432
|
+
name: {
|
2433
|
+
singular: 'Gallon'
|
2434
|
+
, plural: 'Gallons'
|
2435
|
+
}
|
2436
|
+
, to_anchor: 128
|
2437
|
+
}
|
2438
|
+
, ft3: {
|
2439
|
+
name: {
|
2440
|
+
singular: 'Cubic foot'
|
2441
|
+
, plural: 'Cubic feet'
|
2442
|
+
}
|
2443
|
+
, to_anchor: 957.506
|
2444
|
+
}
|
2445
|
+
, yd3: {
|
2446
|
+
name: {
|
2447
|
+
singular: 'Cubic yard'
|
2448
|
+
, plural: 'Cubic yards'
|
2449
|
+
}
|
2450
|
+
, to_anchor: 25852.7
|
2451
|
+
}
|
2452
|
+
};
|
2453
|
+
|
2454
|
+
var volume = {
|
2455
|
+
metric: metric$8
|
2456
|
+
, imperial: imperial$6
|
2457
|
+
, _anchors: {
|
2458
|
+
metric: {
|
2459
|
+
unit: 'l'
|
2460
|
+
, ratio: 33.8140226
|
2461
|
+
}
|
2462
|
+
, imperial: {
|
2463
|
+
unit: 'fl-oz'
|
2464
|
+
, ratio: 1/33.8140226
|
2465
|
+
}
|
2466
|
+
}
|
2467
|
+
};
|
2468
|
+
|
2469
|
+
var metric$7
|
2470
|
+
;
|
2471
|
+
|
2472
|
+
metric$7 = {
|
2473
|
+
ea: {
|
2474
|
+
name: {
|
2475
|
+
singular: 'Each'
|
2476
|
+
, plural: 'Each'
|
2477
|
+
}
|
2478
|
+
, to_anchor: 1
|
2479
|
+
},
|
2480
|
+
dz: {
|
2481
|
+
name: {
|
2482
|
+
singular: 'Dozen'
|
2483
|
+
, plural: 'Dozens'
|
2484
|
+
}
|
2485
|
+
, to_anchor: 12
|
2486
|
+
}
|
2487
|
+
};
|
2488
|
+
|
2489
|
+
var each$1 = {
|
2490
|
+
metric: metric$7
|
2491
|
+
, imperial: {}
|
2492
|
+
, _anchors: {
|
2493
|
+
metric: {
|
2494
|
+
unit: 'ea'
|
2495
|
+
, ratio: 1
|
2496
|
+
}
|
2497
|
+
}
|
2498
|
+
};
|
2499
|
+
|
2500
|
+
var metric$6
|
2501
|
+
, imperial$5;
|
2502
|
+
|
2503
|
+
metric$6 = {
|
2504
|
+
C: {
|
2505
|
+
name: {
|
2506
|
+
singular: 'degree Celsius'
|
2507
|
+
, plural: 'degrees Celsius'
|
2508
|
+
}
|
2509
|
+
, to_anchor: 1
|
2510
|
+
, anchor_shift: 0
|
2511
|
+
},
|
2512
|
+
K: {
|
2513
|
+
name: {
|
2514
|
+
singular: 'degree Kelvin'
|
2515
|
+
, plural: 'degrees Kelvin'
|
2516
|
+
}
|
2517
|
+
, to_anchor: 1
|
2518
|
+
, anchor_shift: 273.15
|
2519
|
+
}
|
2520
|
+
};
|
2521
|
+
|
2522
|
+
imperial$5 = {
|
2523
|
+
F: {
|
2524
|
+
name: {
|
2525
|
+
singular: 'degree Fahrenheit'
|
2526
|
+
, plural: 'degrees Fahrenheit'
|
2527
|
+
}
|
2528
|
+
, to_anchor: 1
|
2529
|
+
},
|
2530
|
+
R: {
|
2531
|
+
name: {
|
2532
|
+
singular: 'degree Rankine'
|
2533
|
+
, plural: 'degrees Rankine'
|
2534
|
+
}
|
2535
|
+
, to_anchor: 1
|
2536
|
+
, anchor_shift: 459.67
|
2537
|
+
}
|
2538
|
+
};
|
2539
|
+
|
2540
|
+
var temperature = {
|
2541
|
+
metric: metric$6
|
2542
|
+
, imperial: imperial$5
|
2543
|
+
, _anchors: {
|
2544
|
+
metric: {
|
2545
|
+
unit: 'C'
|
2546
|
+
, transform: function (C) { return C / (5/9) + 32 }
|
2547
|
+
}
|
2548
|
+
, imperial: {
|
2549
|
+
unit: 'F'
|
2550
|
+
, transform: function (F) { return (F - 32) * (5/9) }
|
2551
|
+
}
|
2552
|
+
}
|
2553
|
+
};
|
2554
|
+
|
2555
|
+
var time;
|
2556
|
+
var daysInYear = 365.25;
|
2557
|
+
|
2558
|
+
time = {
|
2559
|
+
ns: {
|
2560
|
+
name: {
|
2561
|
+
singular: 'Nanosecond'
|
2562
|
+
, plural: 'Nanoseconds'
|
2563
|
+
}
|
2564
|
+
, to_anchor: 1/1000000000
|
2565
|
+
}
|
2566
|
+
, mu: {
|
2567
|
+
name: {
|
2568
|
+
singular: 'Microsecond'
|
2569
|
+
, plural: 'Microseconds'
|
2570
|
+
}
|
2571
|
+
, to_anchor: 1/1000000
|
2572
|
+
}
|
2573
|
+
, ms: {
|
2574
|
+
name: {
|
2575
|
+
singular: 'Millisecond'
|
2576
|
+
, plural: 'Milliseconds'
|
2577
|
+
}
|
2578
|
+
, to_anchor: 1/1000
|
2579
|
+
}
|
2580
|
+
, s: {
|
2581
|
+
name: {
|
2582
|
+
singular: 'Second'
|
2583
|
+
, plural: 'Seconds'
|
2584
|
+
}
|
2585
|
+
, to_anchor: 1
|
2586
|
+
}
|
2587
|
+
, min: {
|
2588
|
+
name: {
|
2589
|
+
singular: 'Minute'
|
2590
|
+
, plural: 'Minutes'
|
2591
|
+
}
|
2592
|
+
, to_anchor: 60
|
2593
|
+
}
|
2594
|
+
, h: {
|
2595
|
+
name: {
|
2596
|
+
singular: 'Hour'
|
2597
|
+
, plural: 'Hours'
|
2598
|
+
}
|
2599
|
+
, to_anchor: 60 * 60
|
2600
|
+
}
|
2601
|
+
, d: {
|
2602
|
+
name: {
|
2603
|
+
singular: 'Day'
|
2604
|
+
, plural: 'Days'
|
2605
|
+
}
|
2606
|
+
, to_anchor: 60 * 60 * 24
|
2607
|
+
}
|
2608
|
+
, week: {
|
2609
|
+
name: {
|
2610
|
+
singular: 'Week'
|
2611
|
+
, plural: 'Weeks'
|
2612
|
+
}
|
2613
|
+
, to_anchor: 60 * 60 * 24 * 7
|
2614
|
+
}
|
2615
|
+
, month: {
|
2616
|
+
name: {
|
2617
|
+
singular: 'Month'
|
2618
|
+
, plural: 'Months'
|
2619
|
+
}
|
2620
|
+
, to_anchor: 60 * 60 * 24 * daysInYear / 12
|
2621
|
+
}
|
2622
|
+
, year: {
|
2623
|
+
name: {
|
2624
|
+
singular: 'Year'
|
2625
|
+
, plural: 'Years'
|
2626
|
+
}
|
2627
|
+
, to_anchor: 60 * 60 * 24 * daysInYear
|
2628
|
+
}
|
2629
|
+
};
|
2630
|
+
|
2631
|
+
|
2632
|
+
var time_1 = {
|
2633
|
+
metric: time
|
2634
|
+
, _anchors: {
|
2635
|
+
metric: {
|
2636
|
+
unit: 's'
|
2637
|
+
, ratio: 1
|
2638
|
+
}
|
2639
|
+
}
|
2640
|
+
};
|
2641
|
+
|
2642
|
+
var bits
|
2643
|
+
, bytes;
|
2644
|
+
|
2645
|
+
bits = {
|
2646
|
+
b: {
|
2647
|
+
name: {
|
2648
|
+
singular: 'Bit'
|
2649
|
+
, plural: 'Bits'
|
2650
|
+
}
|
2651
|
+
, to_anchor: 1
|
2652
|
+
}
|
2653
|
+
, Kb: {
|
2654
|
+
name: {
|
2655
|
+
singular: 'Kilobit'
|
2656
|
+
, plural: 'Kilobits'
|
2657
|
+
}
|
2658
|
+
, to_anchor: 1024
|
2659
|
+
}
|
2660
|
+
, Mb: {
|
2661
|
+
name: {
|
2662
|
+
singular: 'Megabit'
|
2663
|
+
, plural: 'Megabits'
|
2664
|
+
}
|
2665
|
+
, to_anchor: 1048576
|
2666
|
+
}
|
2667
|
+
, Gb: {
|
2668
|
+
name: {
|
2669
|
+
singular: 'Gigabit'
|
2670
|
+
, plural: 'Gigabits'
|
2671
|
+
}
|
2672
|
+
, to_anchor: 1073741824
|
2673
|
+
}
|
2674
|
+
, Tb: {
|
2675
|
+
name: {
|
2676
|
+
singular: 'Terabit'
|
2677
|
+
, plural: 'Terabits'
|
2678
|
+
}
|
2679
|
+
, to_anchor: 1099511627776
|
2680
|
+
}
|
2681
|
+
};
|
2682
|
+
|
2683
|
+
bytes = {
|
2684
|
+
B: {
|
2685
|
+
name: {
|
2686
|
+
singular: 'Byte'
|
2687
|
+
, plural: 'Bytes'
|
2688
|
+
}
|
2689
|
+
, to_anchor: 1
|
2690
|
+
}
|
2691
|
+
, KB: {
|
2692
|
+
name: {
|
2693
|
+
singular: 'Kilobyte'
|
2694
|
+
, plural: 'Kilobytes'
|
2695
|
+
}
|
2696
|
+
, to_anchor: 1024
|
2697
|
+
}
|
2698
|
+
, MB: {
|
2699
|
+
name: {
|
2700
|
+
singular: 'Megabyte'
|
2701
|
+
, plural: 'Megabytes'
|
2702
|
+
}
|
2703
|
+
, to_anchor: 1048576
|
2704
|
+
}
|
2705
|
+
, GB: {
|
2706
|
+
name: {
|
2707
|
+
singular: 'Gigabyte'
|
2708
|
+
, plural: 'Gigabytes'
|
2709
|
+
}
|
2710
|
+
, to_anchor: 1073741824
|
2711
|
+
}
|
2712
|
+
, TB: {
|
2713
|
+
name: {
|
2714
|
+
singular: 'Terabyte'
|
2715
|
+
, plural: 'Terabytes'
|
2716
|
+
}
|
2717
|
+
, to_anchor: 1099511627776
|
2718
|
+
}
|
2719
|
+
};
|
2720
|
+
|
2721
|
+
var digital = {
|
2722
|
+
bits: bits
|
2723
|
+
, bytes: bytes
|
2724
|
+
, _anchors: {
|
2725
|
+
bits: {
|
2726
|
+
unit: 'b'
|
2727
|
+
, ratio: 1/8
|
2728
|
+
}
|
2729
|
+
, bytes: {
|
2730
|
+
unit: 'B'
|
2731
|
+
, ratio: 8
|
2732
|
+
}
|
2733
|
+
}
|
2734
|
+
};
|
2735
|
+
|
2736
|
+
var metric$5
|
2737
|
+
;
|
2738
|
+
|
2739
|
+
metric$5 = {
|
2740
|
+
ppm: {
|
2741
|
+
name: {
|
2742
|
+
singular: 'Part-per Million'
|
2743
|
+
, plural: 'Parts-per Million'
|
2744
|
+
}
|
2745
|
+
, to_anchor: 1
|
2746
|
+
}
|
2747
|
+
, ppb: {
|
2748
|
+
name: {
|
2749
|
+
singular: 'Part-per Billion'
|
2750
|
+
, plural: 'Parts-per Billion'
|
2751
|
+
}
|
2752
|
+
, to_anchor: .001
|
2753
|
+
}
|
2754
|
+
, ppt: {
|
2755
|
+
name: {
|
2756
|
+
singular: 'Part-per Trillion'
|
2757
|
+
, plural: 'Parts-per Trillion'
|
2758
|
+
}
|
2759
|
+
, to_anchor: .000001
|
2760
|
+
}
|
2761
|
+
, ppq: {
|
2762
|
+
name: {
|
2763
|
+
singular: 'Part-per Quadrillion'
|
2764
|
+
, plural: 'Parts-per Quadrillion'
|
2765
|
+
}
|
2766
|
+
, to_anchor: .000000001
|
2767
|
+
}
|
2768
|
+
};
|
2769
|
+
|
2770
|
+
var partsPer = {
|
2771
|
+
metric: metric$5
|
2772
|
+
, imperial: {}
|
2773
|
+
, _anchors: {
|
2774
|
+
metric: {
|
2775
|
+
unit: 'ppm'
|
2776
|
+
, ratio: .000001
|
2777
|
+
}
|
2778
|
+
}
|
2779
|
+
};
|
2780
|
+
|
2781
|
+
var metric$4
|
2782
|
+
, imperial$4;
|
2783
|
+
|
2784
|
+
metric$4 = {
|
2785
|
+
'm/s': {
|
2786
|
+
name: {
|
2787
|
+
singular: 'Metre per second'
|
2788
|
+
, plural: 'Metres per second'
|
2789
|
+
}
|
2790
|
+
, to_anchor: 3.6
|
2791
|
+
}
|
2792
|
+
, 'km/h': {
|
2793
|
+
name: {
|
2794
|
+
singular: 'Kilometre per hour'
|
2795
|
+
, plural: 'Kilometres per hour'
|
2796
|
+
}
|
2797
|
+
, to_anchor: 1
|
2798
|
+
}
|
2799
|
+
};
|
2800
|
+
|
2801
|
+
imperial$4 = {
|
2802
|
+
'm/h': {
|
2803
|
+
name: {
|
2804
|
+
singular: 'Mile per hour'
|
2805
|
+
, plural: 'Miles per hour'
|
2806
|
+
}
|
2807
|
+
, to_anchor: 1
|
2808
|
+
}
|
2809
|
+
, knot: {
|
2810
|
+
name: {
|
2811
|
+
singular: 'Knot'
|
2812
|
+
, plural: 'Knots'
|
2813
|
+
}
|
2814
|
+
, to_anchor: 1.150779
|
2815
|
+
}
|
2816
|
+
, 'ft/s': {
|
2817
|
+
name: {
|
2818
|
+
singular: 'Foot per second'
|
2819
|
+
, plural: 'Feet per second'
|
2820
|
+
}
|
2821
|
+
, to_anchor: 0.681818
|
2822
|
+
}
|
2823
|
+
};
|
2824
|
+
|
2825
|
+
var speed = {
|
2826
|
+
metric: metric$4
|
2827
|
+
, imperial: imperial$4
|
2828
|
+
, _anchors: {
|
2829
|
+
metric: {
|
2830
|
+
unit: 'km/h'
|
2831
|
+
, ratio: 1/1.609344
|
2832
|
+
}
|
2833
|
+
, imperial: {
|
2834
|
+
unit: 'm/h'
|
2835
|
+
, ratio: 1.609344
|
2836
|
+
}
|
2837
|
+
}
|
2838
|
+
};
|
2839
|
+
|
2840
|
+
var metric$3
|
2841
|
+
, imperial$3;
|
2842
|
+
|
2843
|
+
metric$3 = {
|
2844
|
+
'min/km': {
|
2845
|
+
name: {
|
2846
|
+
singular: 'Minute per kilometre'
|
2847
|
+
, plural: 'Minutes per kilometre'
|
2848
|
+
}
|
2849
|
+
, to_anchor: 0.06
|
2850
|
+
}
|
2851
|
+
,'s/m': {
|
2852
|
+
name: {
|
2853
|
+
singular: 'Second per metre'
|
2854
|
+
, plural: 'Seconds per metre'
|
2855
|
+
}
|
2856
|
+
, to_anchor: 1
|
2857
|
+
}
|
2858
|
+
};
|
2859
|
+
|
2860
|
+
imperial$3 = {
|
2861
|
+
'min/mi': {
|
2862
|
+
name: {
|
2863
|
+
singular: 'Minute per mile'
|
2864
|
+
, plural: 'Minutes per mile'
|
2865
|
+
}
|
2866
|
+
, to_anchor: 0.0113636
|
2867
|
+
}
|
2868
|
+
, 's/ft': {
|
2869
|
+
name: {
|
2870
|
+
singular: 'Second per foot'
|
2871
|
+
, plural: 'Seconds per foot'
|
2872
|
+
}
|
2873
|
+
, to_anchor: 1
|
2874
|
+
}
|
2875
|
+
};
|
2876
|
+
|
2877
|
+
var pace = {
|
2878
|
+
metric: metric$3
|
2879
|
+
, imperial: imperial$3
|
2880
|
+
, _anchors: {
|
2881
|
+
metric: {
|
2882
|
+
unit: 's/m'
|
2883
|
+
, ratio: 0.3048
|
2884
|
+
}
|
2885
|
+
, imperial: {
|
2886
|
+
unit: 's/ft'
|
2887
|
+
, ratio: 1/0.3048
|
2888
|
+
}
|
2889
|
+
}
|
2890
|
+
};
|
2891
|
+
|
2892
|
+
var metric$2
|
2893
|
+
, imperial$2;
|
2894
|
+
|
2895
|
+
metric$2 = {
|
2896
|
+
Pa: {
|
2897
|
+
name: {
|
2898
|
+
singular: 'pascal'
|
2899
|
+
, plural: 'pascals'
|
2900
|
+
}
|
2901
|
+
, to_anchor: 1/1000
|
2902
|
+
}
|
2903
|
+
, kPa: {
|
2904
|
+
name: {
|
2905
|
+
singular: 'kilopascal'
|
2906
|
+
, plural: 'kilopascals'
|
2907
|
+
}
|
2908
|
+
, to_anchor: 1
|
2909
|
+
}
|
2910
|
+
, MPa: {
|
2911
|
+
name: {
|
2912
|
+
singular: 'megapascal'
|
2913
|
+
, plural: 'megapascals'
|
2914
|
+
}
|
2915
|
+
, to_anchor: 1000
|
2916
|
+
}
|
2917
|
+
, hPa: {
|
2918
|
+
name: {
|
2919
|
+
singular: 'hectopascal'
|
2920
|
+
, plural: 'hectopascals'
|
2921
|
+
}
|
2922
|
+
, to_anchor: 1/10
|
2923
|
+
}
|
2924
|
+
, bar: {
|
2925
|
+
name: {
|
2926
|
+
singular: 'bar'
|
2927
|
+
, plural: 'bar'
|
2928
|
+
}
|
2929
|
+
, to_anchor: 100
|
2930
|
+
}
|
2931
|
+
, torr: {
|
2932
|
+
name: {
|
2933
|
+
singular: 'torr'
|
2934
|
+
, plural: 'torr'
|
2935
|
+
}
|
2936
|
+
, to_anchor: 101325/760000
|
2937
|
+
}
|
2938
|
+
};
|
2939
|
+
|
2940
|
+
imperial$2 = {
|
2941
|
+
psi: {
|
2942
|
+
name: {
|
2943
|
+
singular: 'pound per square inch'
|
2944
|
+
, plural: 'pounds per square inch'
|
2945
|
+
}
|
2946
|
+
, to_anchor: 1/1000
|
2947
|
+
}
|
2948
|
+
, ksi: {
|
2949
|
+
name: {
|
2950
|
+
singular: 'kilopound per square inch'
|
2951
|
+
, plural: 'kilopound per square inch'
|
2952
|
+
}
|
2953
|
+
, to_anchor: 1
|
2954
|
+
}
|
2955
|
+
};
|
2956
|
+
|
2957
|
+
var pressure = {
|
2958
|
+
metric: metric$2
|
2959
|
+
, imperial: imperial$2
|
2960
|
+
, _anchors: {
|
2961
|
+
metric: {
|
2962
|
+
unit: 'kPa'
|
2963
|
+
, ratio: 0.00014503768078
|
2964
|
+
}
|
2965
|
+
, imperial: {
|
2966
|
+
unit: 'psi'
|
2967
|
+
, ratio: 1/0.00014503768078
|
2968
|
+
}
|
2969
|
+
}
|
2970
|
+
};
|
2971
|
+
|
2972
|
+
var current;
|
2973
|
+
|
2974
|
+
current = {
|
2975
|
+
A: {
|
2976
|
+
name: {
|
2977
|
+
singular: 'Ampere'
|
2978
|
+
, plural: 'Amperes'
|
2979
|
+
}
|
2980
|
+
, to_anchor: 1
|
2981
|
+
}
|
2982
|
+
, mA: {
|
2983
|
+
name: {
|
2984
|
+
singular: 'Milliampere'
|
2985
|
+
, plural: 'Milliamperes'
|
2986
|
+
}
|
2987
|
+
, to_anchor: .001
|
2988
|
+
}
|
2989
|
+
, kA: {
|
2990
|
+
name: {
|
2991
|
+
singular: 'Kiloampere'
|
2992
|
+
, plural: 'Kiloamperes'
|
2993
|
+
}
|
2994
|
+
, to_anchor: 1000
|
2995
|
+
}
|
2996
|
+
};
|
2997
|
+
|
2998
|
+
var current_1 = {
|
2999
|
+
metric: current
|
3000
|
+
, _anchors: {
|
3001
|
+
metric: {
|
3002
|
+
unit: 'A'
|
3003
|
+
, ratio: 1
|
3004
|
+
}
|
3005
|
+
}
|
3006
|
+
};
|
3007
|
+
|
3008
|
+
var voltage;
|
3009
|
+
|
3010
|
+
voltage = {
|
3011
|
+
V: {
|
3012
|
+
name: {
|
3013
|
+
singular: 'Volt'
|
3014
|
+
, plural: 'Volts'
|
3015
|
+
}
|
3016
|
+
, to_anchor: 1
|
3017
|
+
}
|
3018
|
+
, mV: {
|
3019
|
+
name: {
|
3020
|
+
singular: 'Millivolt'
|
3021
|
+
, plural: 'Millivolts'
|
3022
|
+
}
|
3023
|
+
, to_anchor: .001
|
3024
|
+
}
|
3025
|
+
, kV: {
|
3026
|
+
name: {
|
3027
|
+
singular: 'Kilovolt'
|
3028
|
+
, plural: 'Kilovolts'
|
3029
|
+
}
|
3030
|
+
, to_anchor: 1000
|
3031
|
+
}
|
3032
|
+
};
|
3033
|
+
|
3034
|
+
var voltage_1 = {
|
3035
|
+
metric: voltage
|
3036
|
+
, _anchors: {
|
3037
|
+
metric: {
|
3038
|
+
unit: 'V'
|
3039
|
+
, ratio: 1
|
3040
|
+
}
|
3041
|
+
}
|
3042
|
+
};
|
3043
|
+
|
3044
|
+
var power;
|
3045
|
+
|
3046
|
+
power = {
|
3047
|
+
W: {
|
3048
|
+
name: {
|
3049
|
+
singular: 'Watt'
|
3050
|
+
, plural: 'Watts'
|
3051
|
+
}
|
3052
|
+
, to_anchor: 1
|
3053
|
+
}
|
3054
|
+
, mW: {
|
3055
|
+
name: {
|
3056
|
+
singular: 'Milliwatt'
|
3057
|
+
, plural: 'Milliwatts'
|
3058
|
+
}
|
3059
|
+
, to_anchor: .001
|
3060
|
+
}
|
3061
|
+
, kW: {
|
3062
|
+
name: {
|
3063
|
+
singular: 'Kilowatt'
|
3064
|
+
, plural: 'Kilowatts'
|
3065
|
+
}
|
3066
|
+
, to_anchor: 1000
|
3067
|
+
}
|
3068
|
+
, MW: {
|
3069
|
+
name: {
|
3070
|
+
singular: 'Megawatt'
|
3071
|
+
, plural: 'Megawatts'
|
3072
|
+
}
|
3073
|
+
, to_anchor: 1000000
|
3074
|
+
}
|
3075
|
+
, GW: {
|
3076
|
+
name: {
|
3077
|
+
singular: 'Gigawatt'
|
3078
|
+
, plural: 'Gigawatts'
|
3079
|
+
}
|
3080
|
+
, to_anchor: 1000000000
|
3081
|
+
}
|
3082
|
+
};
|
3083
|
+
|
3084
|
+
var power_1 = {
|
3085
|
+
metric: power
|
3086
|
+
, _anchors: {
|
3087
|
+
metric: {
|
3088
|
+
unit: 'W'
|
3089
|
+
, ratio: 1
|
3090
|
+
}
|
3091
|
+
}
|
3092
|
+
};
|
3093
|
+
|
3094
|
+
var reactivePower;
|
3095
|
+
|
3096
|
+
reactivePower = {
|
3097
|
+
VAR: {
|
3098
|
+
name: {
|
3099
|
+
singular: 'Volt-Ampere Reactive'
|
3100
|
+
, plural: 'Volt-Amperes Reactive'
|
3101
|
+
}
|
3102
|
+
, to_anchor: 1
|
3103
|
+
}
|
3104
|
+
, mVAR: {
|
3105
|
+
name: {
|
3106
|
+
singular: 'Millivolt-Ampere Reactive'
|
3107
|
+
, plural: 'Millivolt-Amperes Reactive'
|
3108
|
+
}
|
3109
|
+
, to_anchor: .001
|
3110
|
+
}
|
3111
|
+
, kVAR: {
|
3112
|
+
name: {
|
3113
|
+
singular: 'Kilovolt-Ampere Reactive'
|
3114
|
+
, plural: 'Kilovolt-Amperes Reactive'
|
3115
|
+
}
|
3116
|
+
, to_anchor: 1000
|
3117
|
+
}
|
3118
|
+
, MVAR: {
|
3119
|
+
name: {
|
3120
|
+
singular: 'Megavolt-Ampere Reactive'
|
3121
|
+
, plural: 'Megavolt-Amperes Reactive'
|
3122
|
+
}
|
3123
|
+
, to_anchor: 1000000
|
3124
|
+
}
|
3125
|
+
, GVAR: {
|
3126
|
+
name: {
|
3127
|
+
singular: 'Gigavolt-Ampere Reactive'
|
3128
|
+
, plural: 'Gigavolt-Amperes Reactive'
|
3129
|
+
}
|
3130
|
+
, to_anchor: 1000000000
|
3131
|
+
}
|
3132
|
+
};
|
3133
|
+
|
3134
|
+
var reactivePower_1 = {
|
3135
|
+
metric: reactivePower
|
3136
|
+
, _anchors: {
|
3137
|
+
metric: {
|
3138
|
+
unit: 'VAR'
|
3139
|
+
, ratio: 1
|
3140
|
+
}
|
3141
|
+
}
|
3142
|
+
};
|
3143
|
+
|
3144
|
+
var apparentPower;
|
3145
|
+
|
3146
|
+
apparentPower = {
|
3147
|
+
VA: {
|
3148
|
+
name: {
|
3149
|
+
singular: 'Volt-Ampere'
|
3150
|
+
, plural: 'Volt-Amperes'
|
3151
|
+
}
|
3152
|
+
, to_anchor: 1
|
3153
|
+
}
|
3154
|
+
, mVA: {
|
3155
|
+
name: {
|
3156
|
+
singular: 'Millivolt-Ampere'
|
3157
|
+
, plural: 'Millivolt-Amperes'
|
3158
|
+
}
|
3159
|
+
, to_anchor: .001
|
3160
|
+
}
|
3161
|
+
, kVA: {
|
3162
|
+
name: {
|
3163
|
+
singular: 'Kilovolt-Ampere'
|
3164
|
+
, plural: 'Kilovolt-Amperes'
|
3165
|
+
}
|
3166
|
+
, to_anchor: 1000
|
3167
|
+
}
|
3168
|
+
, MVA: {
|
3169
|
+
name: {
|
3170
|
+
singular: 'Megavolt-Ampere'
|
3171
|
+
, plural: 'Megavolt-Amperes'
|
3172
|
+
}
|
3173
|
+
, to_anchor: 1000000
|
3174
|
+
}
|
3175
|
+
, GVA: {
|
3176
|
+
name: {
|
3177
|
+
singular: 'Gigavolt-Ampere'
|
3178
|
+
, plural: 'Gigavolt-Amperes'
|
3179
|
+
}
|
3180
|
+
, to_anchor: 1000000000
|
3181
|
+
}
|
3182
|
+
};
|
3183
|
+
|
3184
|
+
var apparentPower_1 = {
|
3185
|
+
metric: apparentPower
|
3186
|
+
, _anchors: {
|
3187
|
+
metric: {
|
3188
|
+
unit: 'VA'
|
3189
|
+
, ratio: 1
|
3190
|
+
}
|
3191
|
+
}
|
3192
|
+
};
|
3193
|
+
|
3194
|
+
var energy;
|
3195
|
+
|
3196
|
+
energy = {
|
3197
|
+
Wh: {
|
3198
|
+
name: {
|
3199
|
+
singular: 'Watt-hour'
|
3200
|
+
, plural: 'Watt-hours'
|
3201
|
+
}
|
3202
|
+
, to_anchor: 3600
|
3203
|
+
}
|
3204
|
+
, mWh: {
|
3205
|
+
name: {
|
3206
|
+
singular: 'Milliwatt-hour'
|
3207
|
+
, plural: 'Milliwatt-hours'
|
3208
|
+
}
|
3209
|
+
, to_anchor: 3.6
|
3210
|
+
}
|
3211
|
+
, kWh: {
|
3212
|
+
name: {
|
3213
|
+
singular: 'Kilowatt-hour'
|
3214
|
+
, plural: 'Kilowatt-hours'
|
3215
|
+
}
|
3216
|
+
, to_anchor: 3600000
|
3217
|
+
}
|
3218
|
+
, MWh: {
|
3219
|
+
name: {
|
3220
|
+
singular: 'Megawatt-hour'
|
3221
|
+
, plural: 'Megawatt-hours'
|
3222
|
+
}
|
3223
|
+
, to_anchor: 3600000000
|
3224
|
+
}
|
3225
|
+
, GWh: {
|
3226
|
+
name: {
|
3227
|
+
singular: 'Gigawatt-hour'
|
3228
|
+
, plural: 'Gigawatt-hours'
|
3229
|
+
}
|
3230
|
+
, to_anchor: 3600000000000
|
3231
|
+
}
|
3232
|
+
, J: {
|
3233
|
+
name: {
|
3234
|
+
singular: 'Joule'
|
3235
|
+
, plural: 'Joules'
|
3236
|
+
}
|
3237
|
+
, to_anchor: 1
|
3238
|
+
}
|
3239
|
+
, kJ: {
|
3240
|
+
name: {
|
3241
|
+
singular: 'Kilojoule'
|
3242
|
+
, plural: 'Kilojoules'
|
3243
|
+
}
|
3244
|
+
, to_anchor: 1000
|
3245
|
+
}
|
3246
|
+
};
|
3247
|
+
|
3248
|
+
var energy_1 = {
|
3249
|
+
metric: energy
|
3250
|
+
, _anchors: {
|
3251
|
+
metric: {
|
3252
|
+
unit: 'J'
|
3253
|
+
, ratio: 1
|
3254
|
+
}
|
3255
|
+
}
|
3256
|
+
};
|
3257
|
+
|
3258
|
+
var reactiveEnergy;
|
3259
|
+
|
3260
|
+
reactiveEnergy = {
|
3261
|
+
VARh: {
|
3262
|
+
name: {
|
3263
|
+
singular: 'Volt-Ampere Reactive Hour'
|
3264
|
+
, plural: 'Volt-Amperes Reactive Hour'
|
3265
|
+
}
|
3266
|
+
, to_anchor: 1
|
3267
|
+
}
|
3268
|
+
, mVARh: {
|
3269
|
+
name: {
|
3270
|
+
singular: 'Millivolt-Ampere Reactive Hour'
|
3271
|
+
, plural: 'Millivolt-Amperes Reactive Hour'
|
3272
|
+
}
|
3273
|
+
, to_anchor: .001
|
3274
|
+
}
|
3275
|
+
, kVARh: {
|
3276
|
+
name: {
|
3277
|
+
singular: 'Kilovolt-Ampere Reactive Hour'
|
3278
|
+
, plural: 'Kilovolt-Amperes Reactive Hour'
|
3279
|
+
}
|
3280
|
+
, to_anchor: 1000
|
3281
|
+
}
|
3282
|
+
, MVARh: {
|
3283
|
+
name: {
|
3284
|
+
singular: 'Megavolt-Ampere Reactive Hour'
|
3285
|
+
, plural: 'Megavolt-Amperes Reactive Hour'
|
3286
|
+
}
|
3287
|
+
, to_anchor: 1000000
|
3288
|
+
}
|
3289
|
+
, GVARh: {
|
3290
|
+
name: {
|
3291
|
+
singular: 'Gigavolt-Ampere Reactive Hour'
|
3292
|
+
, plural: 'Gigavolt-Amperes Reactive Hour'
|
3293
|
+
}
|
3294
|
+
, to_anchor: 1000000000
|
3295
|
+
}
|
3296
|
+
};
|
3297
|
+
|
3298
|
+
var reactiveEnergy_1 = {
|
3299
|
+
metric: reactiveEnergy
|
3300
|
+
, _anchors: {
|
3301
|
+
metric: {
|
3302
|
+
unit: 'VARh'
|
3303
|
+
, ratio: 1
|
3304
|
+
}
|
3305
|
+
}
|
3306
|
+
};
|
3307
|
+
|
3308
|
+
var metric$1
|
3309
|
+
, imperial$1;
|
3310
|
+
|
3311
|
+
metric$1 = {
|
3312
|
+
'mm3/s': {
|
3313
|
+
name: {
|
3314
|
+
singular: 'Cubic Millimeter per second'
|
3315
|
+
, plural: 'Cubic Millimeters per second'
|
3316
|
+
}
|
3317
|
+
, to_anchor: 1/1000000
|
3318
|
+
}
|
3319
|
+
, 'cm3/s': {
|
3320
|
+
name: {
|
3321
|
+
singular: 'Cubic Centimeter per second'
|
3322
|
+
, plural: 'Cubic Centimeters per second'
|
3323
|
+
}
|
3324
|
+
, to_anchor: 1/1000
|
3325
|
+
}
|
3326
|
+
, 'ml/s': {
|
3327
|
+
name: {
|
3328
|
+
singular: 'Millilitre per second'
|
3329
|
+
, plural: 'Millilitres per second'
|
3330
|
+
}
|
3331
|
+
, to_anchor: 1/1000
|
3332
|
+
}
|
3333
|
+
, 'cl/s': {
|
3334
|
+
name: {
|
3335
|
+
singular: 'Centilitre per second'
|
3336
|
+
, plural: 'Centilitres per second'
|
3337
|
+
}
|
3338
|
+
, to_anchor: 1/100
|
3339
|
+
}
|
3340
|
+
, 'dl/s': {
|
3341
|
+
name: {
|
3342
|
+
singular: 'Decilitre per second'
|
3343
|
+
, plural: 'Decilitres per second'
|
3344
|
+
}
|
3345
|
+
, to_anchor: 1/10
|
3346
|
+
}
|
3347
|
+
, 'l/s': {
|
3348
|
+
name: {
|
3349
|
+
singular: 'Litre per second'
|
3350
|
+
, plural: 'Litres per second'
|
3351
|
+
}
|
3352
|
+
, to_anchor: 1
|
3353
|
+
}
|
3354
|
+
, 'l/min': {
|
3355
|
+
name: {
|
3356
|
+
singular: 'Litre per minute'
|
3357
|
+
, plural: 'Litres per minute'
|
3358
|
+
}
|
3359
|
+
, to_anchor: 1/60
|
3360
|
+
}
|
3361
|
+
, 'l/h': {
|
3362
|
+
name: {
|
3363
|
+
singular: 'Litre per hour'
|
3364
|
+
, plural: 'Litres per hour'
|
3365
|
+
}
|
3366
|
+
, to_anchor: 1/3600
|
3367
|
+
}
|
3368
|
+
, 'kl/s': {
|
3369
|
+
name: {
|
3370
|
+
singular: 'Kilolitre per second'
|
3371
|
+
, plural: 'Kilolitres per second'
|
3372
|
+
}
|
3373
|
+
, to_anchor: 1000
|
3374
|
+
}
|
3375
|
+
, 'kl/min': {
|
3376
|
+
name: {
|
3377
|
+
singular: 'Kilolitre per minute'
|
3378
|
+
, plural: 'Kilolitres per minute'
|
3379
|
+
}
|
3380
|
+
, to_anchor: 50/3
|
3381
|
+
}
|
3382
|
+
, 'kl/h': {
|
3383
|
+
name: {
|
3384
|
+
singular: 'Kilolitre per hour'
|
3385
|
+
, plural: 'Kilolitres per hour'
|
3386
|
+
}
|
3387
|
+
, to_anchor: 5/18
|
3388
|
+
}
|
3389
|
+
, 'm3/s': {
|
3390
|
+
name: {
|
3391
|
+
singular: 'Cubic meter per second'
|
3392
|
+
, plural: 'Cubic meters per second'
|
3393
|
+
}
|
3394
|
+
, to_anchor: 1000
|
3395
|
+
}
|
3396
|
+
, 'm3/min': {
|
3397
|
+
name: {
|
3398
|
+
singular: 'Cubic meter per minute'
|
3399
|
+
, plural: 'Cubic meters per minute'
|
3400
|
+
}
|
3401
|
+
, to_anchor: 50/3
|
3402
|
+
}
|
3403
|
+
, 'm3/h': {
|
3404
|
+
name: {
|
3405
|
+
singular: 'Cubic meter per hour'
|
3406
|
+
, plural: 'Cubic meters per hour'
|
3407
|
+
}
|
3408
|
+
, to_anchor: 5/18
|
3409
|
+
}
|
3410
|
+
, 'km3/s': {
|
3411
|
+
name: {
|
3412
|
+
singular: 'Cubic kilometer per second'
|
3413
|
+
, plural: 'Cubic kilometers per second'
|
3414
|
+
}
|
3415
|
+
, to_anchor: 1000000000000
|
3416
|
+
}
|
3417
|
+
};
|
3418
|
+
|
3419
|
+
imperial$1 = {
|
3420
|
+
'tsp/s': {
|
3421
|
+
name: {
|
3422
|
+
singular: 'Teaspoon per second'
|
3423
|
+
, plural: 'Teaspoons per second'
|
3424
|
+
}
|
3425
|
+
, to_anchor: 1/6
|
3426
|
+
}
|
3427
|
+
, 'Tbs/s': {
|
3428
|
+
name: {
|
3429
|
+
singular: 'Tablespoon per second'
|
3430
|
+
, plural: 'Tablespoons per second'
|
3431
|
+
}
|
3432
|
+
, to_anchor: 1/2
|
3433
|
+
}
|
3434
|
+
, 'in3/s': {
|
3435
|
+
name: {
|
3436
|
+
singular: 'Cubic inch per second'
|
3437
|
+
, plural: 'Cubic inches per second'
|
3438
|
+
}
|
3439
|
+
, to_anchor: 0.55411
|
3440
|
+
}
|
3441
|
+
, 'in3/min': {
|
3442
|
+
name: {
|
3443
|
+
singular: 'Cubic inch per minute'
|
3444
|
+
, plural: 'Cubic inches per minute'
|
3445
|
+
}
|
3446
|
+
, to_anchor: 0.55411/60
|
3447
|
+
}
|
3448
|
+
, 'in3/h': {
|
3449
|
+
name: {
|
3450
|
+
singular: 'Cubic inch per hour'
|
3451
|
+
, plural: 'Cubic inches per hour'
|
3452
|
+
}
|
3453
|
+
, to_anchor: 0.55411/3600
|
3454
|
+
}
|
3455
|
+
, 'fl-oz/s': {
|
3456
|
+
name: {
|
3457
|
+
singular: 'Fluid Ounce per second'
|
3458
|
+
, plural: 'Fluid Ounces per second'
|
3459
|
+
}
|
3460
|
+
, to_anchor: 1
|
3461
|
+
}
|
3462
|
+
, 'fl-oz/min': {
|
3463
|
+
name: {
|
3464
|
+
singular: 'Fluid Ounce per minute'
|
3465
|
+
, plural: 'Fluid Ounces per minute'
|
3466
|
+
}
|
3467
|
+
, to_anchor: 1/60
|
3468
|
+
}
|
3469
|
+
, 'fl-oz/h': {
|
3470
|
+
name: {
|
3471
|
+
singular: 'Fluid Ounce per hour'
|
3472
|
+
, plural: 'Fluid Ounces per hour'
|
3473
|
+
}
|
3474
|
+
, to_anchor: 1/3600
|
3475
|
+
}
|
3476
|
+
, 'cup/s': {
|
3477
|
+
name: {
|
3478
|
+
singular: 'Cup per second'
|
3479
|
+
, plural: 'Cups per second'
|
3480
|
+
}
|
3481
|
+
, to_anchor: 8
|
3482
|
+
}
|
3483
|
+
, 'pnt/s': {
|
3484
|
+
name: {
|
3485
|
+
singular: 'Pint per second'
|
3486
|
+
, plural: 'Pints per second'
|
3487
|
+
}
|
3488
|
+
, to_anchor: 16
|
3489
|
+
}
|
3490
|
+
, 'pnt/min': {
|
3491
|
+
name: {
|
3492
|
+
singular: 'Pint per minute'
|
3493
|
+
, plural: 'Pints per minute'
|
3494
|
+
}
|
3495
|
+
, to_anchor: 4/15
|
3496
|
+
}
|
3497
|
+
, 'pnt/h': {
|
3498
|
+
name: {
|
3499
|
+
singular: 'Pint per hour'
|
3500
|
+
, plural: 'Pints per hour'
|
3501
|
+
}
|
3502
|
+
, to_anchor: 1/225
|
3503
|
+
}
|
3504
|
+
, 'qt/s': {
|
3505
|
+
name: {
|
3506
|
+
singular: 'Quart per second'
|
3507
|
+
, plural: 'Quarts per second'
|
3508
|
+
}
|
3509
|
+
, to_anchor: 32
|
3510
|
+
}
|
3511
|
+
, 'gal/s': {
|
3512
|
+
name: {
|
3513
|
+
singular: 'Gallon per second'
|
3514
|
+
, plural: 'Gallons per second'
|
3515
|
+
}
|
3516
|
+
, to_anchor: 128
|
3517
|
+
}
|
3518
|
+
, 'gal/min': {
|
3519
|
+
name: {
|
3520
|
+
singular: 'Gallon per minute'
|
3521
|
+
, plural: 'Gallons per minute'
|
3522
|
+
}
|
3523
|
+
, to_anchor: 32/15
|
3524
|
+
}
|
3525
|
+
, 'gal/h': {
|
3526
|
+
name: {
|
3527
|
+
singular: 'Gallon per hour'
|
3528
|
+
, plural: 'Gallons per hour'
|
3529
|
+
}
|
3530
|
+
, to_anchor: 8/225
|
3531
|
+
}
|
3532
|
+
, 'ft3/s': {
|
3533
|
+
name: {
|
3534
|
+
singular: 'Cubic foot per second'
|
3535
|
+
, plural: 'Cubic feet per second'
|
3536
|
+
}
|
3537
|
+
, to_anchor: 957.506
|
3538
|
+
}
|
3539
|
+
, 'ft3/min': {
|
3540
|
+
name: {
|
3541
|
+
singular: 'Cubic foot per minute'
|
3542
|
+
, plural: 'Cubic feet per minute'
|
3543
|
+
}
|
3544
|
+
, to_anchor: 957.506/60
|
3545
|
+
}
|
3546
|
+
, 'ft3/h': {
|
3547
|
+
name: {
|
3548
|
+
singular: 'Cubic foot per hour'
|
3549
|
+
, plural: 'Cubic feet per hour'
|
3550
|
+
}
|
3551
|
+
, to_anchor: 957.506/3600
|
3552
|
+
}
|
3553
|
+
, 'yd3/s': {
|
3554
|
+
name: {
|
3555
|
+
singular: 'Cubic yard per second'
|
3556
|
+
, plural: 'Cubic yards per second'
|
3557
|
+
}
|
3558
|
+
, to_anchor: 25852.7
|
3559
|
+
}
|
3560
|
+
, 'yd3/min': {
|
3561
|
+
name: {
|
3562
|
+
singular: 'Cubic yard per minute'
|
3563
|
+
, plural: 'Cubic yards per minute'
|
3564
|
+
}
|
3565
|
+
, to_anchor: 25852.7/60
|
3566
|
+
}
|
3567
|
+
, 'yd3/h': {
|
3568
|
+
name: {
|
3569
|
+
singular: 'Cubic yard per hour'
|
3570
|
+
, plural: 'Cubic yards per hour'
|
3571
|
+
}
|
3572
|
+
, to_anchor: 25852.7/3600
|
3573
|
+
}
|
3574
|
+
};
|
3575
|
+
|
3576
|
+
var volumeFlowRate = {
|
3577
|
+
metric: metric$1
|
3578
|
+
, imperial: imperial$1
|
3579
|
+
, _anchors: {
|
3580
|
+
metric: {
|
3581
|
+
unit: 'l/s'
|
3582
|
+
, ratio: 33.8140227
|
3583
|
+
}
|
3584
|
+
, imperial: {
|
3585
|
+
unit: 'fl-oz/s'
|
3586
|
+
, ratio: 1/33.8140227
|
3587
|
+
}
|
3588
|
+
}
|
3589
|
+
};
|
3590
|
+
|
3591
|
+
var metric,
|
3592
|
+
imperial;
|
3593
|
+
|
3594
|
+
metric = {
|
3595
|
+
'lx': {
|
3596
|
+
name: {
|
3597
|
+
singular: 'Lux',
|
3598
|
+
plural: 'Lux'
|
3599
|
+
},
|
3600
|
+
to_anchor: 1
|
3601
|
+
}
|
3602
|
+
};
|
3603
|
+
|
3604
|
+
imperial = {
|
3605
|
+
'ft-cd': {
|
3606
|
+
name: {
|
3607
|
+
singular: 'Foot-candle',
|
3608
|
+
plural: 'Foot-candles'
|
3609
|
+
},
|
3610
|
+
to_anchor: 1
|
3611
|
+
}
|
3612
|
+
};
|
3613
|
+
|
3614
|
+
var illuminance = {
|
3615
|
+
metric: metric,
|
3616
|
+
imperial: imperial,
|
3617
|
+
_anchors: {
|
3618
|
+
metric: {
|
3619
|
+
unit: 'lx',
|
3620
|
+
ratio: 1/10.76391
|
3621
|
+
},
|
3622
|
+
imperial: {
|
3623
|
+
unit: 'ft-cd',
|
3624
|
+
ratio: 10.76391
|
3625
|
+
}
|
3626
|
+
}
|
3627
|
+
};
|
3628
|
+
|
3629
|
+
var frequency;
|
3630
|
+
|
3631
|
+
frequency = {
|
3632
|
+
mHz: {
|
3633
|
+
name: {
|
3634
|
+
singular: 'millihertz'
|
3635
|
+
, plural: 'millihertz'
|
3636
|
+
}
|
3637
|
+
, to_anchor: 1/1000
|
3638
|
+
}
|
3639
|
+
, Hz: {
|
3640
|
+
name: {
|
3641
|
+
singular: 'hertz'
|
3642
|
+
, plural: 'hertz'
|
3643
|
+
}
|
3644
|
+
, to_anchor: 1
|
3645
|
+
}
|
3646
|
+
, kHz: {
|
3647
|
+
name: {
|
3648
|
+
singular: 'kilohertz'
|
3649
|
+
, plural: 'kilohertz'
|
3650
|
+
}
|
3651
|
+
, to_anchor: 1000
|
3652
|
+
}
|
3653
|
+
, MHz: {
|
3654
|
+
name: {
|
3655
|
+
singular: 'megahertz'
|
3656
|
+
, plural: 'megahertz'
|
3657
|
+
}
|
3658
|
+
, to_anchor: 1000 * 1000
|
3659
|
+
}
|
3660
|
+
, GHz: {
|
3661
|
+
name: {
|
3662
|
+
singular: 'gigahertz'
|
3663
|
+
, plural: 'gigahertz'
|
3664
|
+
}
|
3665
|
+
, to_anchor: 1000 * 1000 * 1000
|
3666
|
+
}
|
3667
|
+
, THz: {
|
3668
|
+
name: {
|
3669
|
+
singular: 'terahertz'
|
3670
|
+
, plural: 'terahertz'
|
3671
|
+
}
|
3672
|
+
, to_anchor: 1000 * 1000 * 1000 * 1000
|
3673
|
+
}
|
3674
|
+
, rpm: {
|
3675
|
+
name: {
|
3676
|
+
singular: 'rotation per minute'
|
3677
|
+
, plural: 'rotations per minute'
|
3678
|
+
}
|
3679
|
+
, to_anchor: 1/60
|
3680
|
+
}
|
3681
|
+
, "deg/s": {
|
3682
|
+
name: {
|
3683
|
+
singular: 'degree per second'
|
3684
|
+
, plural: 'degrees per second'
|
3685
|
+
}
|
3686
|
+
, to_anchor: 1/360
|
3687
|
+
}
|
3688
|
+
, "rad/s": {
|
3689
|
+
name: {
|
3690
|
+
singular: 'radian per second'
|
3691
|
+
, plural: 'radians per second'
|
3692
|
+
}
|
3693
|
+
, to_anchor: 1/(Math.PI * 2)
|
3694
|
+
}
|
3695
|
+
};
|
3696
|
+
|
3697
|
+
|
3698
|
+
var frequency_1 = {
|
3699
|
+
metric: frequency
|
3700
|
+
, _anchors: {
|
3701
|
+
frequency: {
|
3702
|
+
unit: 'hz'
|
3703
|
+
, ratio: 1
|
3704
|
+
}
|
3705
|
+
}
|
3706
|
+
};
|
3707
|
+
|
3708
|
+
var angle;
|
3709
|
+
|
3710
|
+
angle = {
|
3711
|
+
rad: {
|
3712
|
+
name: {
|
3713
|
+
singular: 'radian'
|
3714
|
+
, plural: 'radians'
|
3715
|
+
}
|
3716
|
+
, to_anchor: 180/Math.PI
|
3717
|
+
}
|
3718
|
+
, deg: {
|
3719
|
+
name: {
|
3720
|
+
singular: 'degree'
|
3721
|
+
, plural: 'degrees'
|
3722
|
+
}
|
3723
|
+
, to_anchor: 1
|
3724
|
+
}
|
3725
|
+
, grad: {
|
3726
|
+
name: {
|
3727
|
+
singular: 'gradian'
|
3728
|
+
, plural: 'gradians'
|
3729
|
+
}
|
3730
|
+
, to_anchor: 9/10
|
3731
|
+
}
|
3732
|
+
, arcmin: {
|
3733
|
+
name: {
|
3734
|
+
singular: 'arcminute'
|
3735
|
+
, plural: 'arcminutes'
|
3736
|
+
}
|
3737
|
+
, to_anchor: 1/60
|
3738
|
+
}
|
3739
|
+
, arcsec: {
|
3740
|
+
name: {
|
3741
|
+
singular: 'arcsecond'
|
3742
|
+
, plural: 'arcseconds'
|
3743
|
+
}
|
3744
|
+
, to_anchor: 1/3600
|
3745
|
+
}
|
3746
|
+
};
|
3747
|
+
|
3748
|
+
var angle_1 = {
|
3749
|
+
metric: angle
|
3750
|
+
, _anchors: {
|
3751
|
+
metric: {
|
3752
|
+
unit: 'deg'
|
3753
|
+
, ratio: 1
|
3754
|
+
}
|
3755
|
+
}
|
3756
|
+
};
|
3757
|
+
|
3758
|
+
var convert
|
3759
|
+
, keys = lodash_keys
|
3760
|
+
, each = lodash_foreach
|
3761
|
+
, measures = {
|
3762
|
+
length: length
|
3763
|
+
, area: area
|
3764
|
+
, mass: mass
|
3765
|
+
, volume: volume
|
3766
|
+
, each: each$1
|
3767
|
+
, temperature: temperature
|
3768
|
+
, time: time_1
|
3769
|
+
, digital: digital
|
3770
|
+
, partsPer: partsPer
|
3771
|
+
, speed: speed
|
3772
|
+
, pace: pace
|
3773
|
+
, pressure: pressure
|
3774
|
+
, current: current_1
|
3775
|
+
, voltage: voltage_1
|
3776
|
+
, power: power_1
|
3777
|
+
, reactivePower: reactivePower_1
|
3778
|
+
, apparentPower: apparentPower_1
|
3779
|
+
, energy: energy_1
|
3780
|
+
, reactiveEnergy: reactiveEnergy_1
|
3781
|
+
, volumeFlowRate: volumeFlowRate
|
3782
|
+
, illuminance: illuminance
|
3783
|
+
, frequency: frequency_1
|
3784
|
+
, angle : angle_1
|
3785
|
+
}
|
3786
|
+
, Converter;
|
3787
|
+
|
3788
|
+
Converter = function (numerator, denominator) {
|
3789
|
+
if(denominator)
|
3790
|
+
this.val = numerator / denominator;
|
3791
|
+
else
|
3792
|
+
this.val = numerator;
|
3793
|
+
};
|
3794
|
+
|
3795
|
+
/**
|
3796
|
+
* Lets the converter know the source unit abbreviation
|
3797
|
+
*/
|
3798
|
+
Converter.prototype.from = function (from) {
|
3799
|
+
if(this.destination)
|
3800
|
+
throw new Error('.from must be called before .to');
|
3801
|
+
|
3802
|
+
this.origin = this.getUnit(from);
|
3803
|
+
|
3804
|
+
if(!this.origin) {
|
3805
|
+
this.throwUnsupportedUnitError(from);
|
3806
|
+
}
|
3807
|
+
|
3808
|
+
return this;
|
3809
|
+
};
|
3810
|
+
|
3811
|
+
/**
|
3812
|
+
* Converts the unit and returns the value
|
3813
|
+
*/
|
3814
|
+
Converter.prototype.to = function (to) {
|
3815
|
+
if(!this.origin)
|
3816
|
+
throw new Error('.to must be called after .from');
|
3817
|
+
|
3818
|
+
this.destination = this.getUnit(to);
|
3819
|
+
|
3820
|
+
var result
|
3821
|
+
, transform;
|
3822
|
+
|
3823
|
+
if(!this.destination) {
|
3824
|
+
this.throwUnsupportedUnitError(to);
|
3825
|
+
}
|
3826
|
+
|
3827
|
+
// Don't change the value if origin and destination are the same
|
3828
|
+
if (this.origin.abbr === this.destination.abbr) {
|
3829
|
+
return this.val;
|
3830
|
+
}
|
3831
|
+
|
3832
|
+
// You can't go from liquid to mass, for example
|
3833
|
+
if(this.destination.measure != this.origin.measure) {
|
3834
|
+
throw new Error('Cannot convert incompatible measures of '
|
3835
|
+
+ this.destination.measure + ' and ' + this.origin.measure);
|
3836
|
+
}
|
3837
|
+
|
3838
|
+
/**
|
3839
|
+
* Convert from the source value to its anchor inside the system
|
3840
|
+
*/
|
3841
|
+
result = this.val * this.origin.unit.to_anchor;
|
3842
|
+
|
3843
|
+
/**
|
3844
|
+
* For some changes it's a simple shift (C to K)
|
3845
|
+
* So we'll add it when convering into the unit (later)
|
3846
|
+
* and subtract it when converting from the unit
|
3847
|
+
*/
|
3848
|
+
if (this.origin.unit.anchor_shift) {
|
3849
|
+
result -= this.origin.unit.anchor_shift;
|
3850
|
+
}
|
3851
|
+
|
3852
|
+
/**
|
3853
|
+
* Convert from one system to another through the anchor ratio. Some conversions
|
3854
|
+
* aren't ratio based or require more than a simple shift. We can provide a custom
|
3855
|
+
* transform here to provide the direct result
|
3856
|
+
*/
|
3857
|
+
if(this.origin.system != this.destination.system) {
|
3858
|
+
transform = measures[this.origin.measure]._anchors[this.origin.system].transform;
|
3859
|
+
if (typeof transform === 'function') {
|
3860
|
+
result = transform(result);
|
3861
|
+
}
|
3862
|
+
else {
|
3863
|
+
result *= measures[this.origin.measure]._anchors[this.origin.system].ratio;
|
3864
|
+
}
|
3865
|
+
}
|
3866
|
+
|
3867
|
+
/**
|
3868
|
+
* This shift has to be done after the system conversion business
|
3869
|
+
*/
|
3870
|
+
if (this.destination.unit.anchor_shift) {
|
3871
|
+
result += this.destination.unit.anchor_shift;
|
3872
|
+
}
|
3873
|
+
|
3874
|
+
/**
|
3875
|
+
* Convert to another unit inside the destination system
|
3876
|
+
*/
|
3877
|
+
return result / this.destination.unit.to_anchor;
|
3878
|
+
};
|
3879
|
+
|
3880
|
+
/**
|
3881
|
+
* Converts the unit to the best available unit.
|
3882
|
+
*/
|
3883
|
+
Converter.prototype.toBest = function(options) {
|
3884
|
+
if(!this.origin)
|
3885
|
+
throw new Error('.toBest must be called after .from');
|
3886
|
+
|
3887
|
+
var options = Object.assign({
|
3888
|
+
exclude: [],
|
3889
|
+
cutOffNumber: 1,
|
3890
|
+
}, options);
|
3891
|
+
|
3892
|
+
var best;
|
3893
|
+
/**
|
3894
|
+
Looks through every possibility for the 'best' available unit.
|
3895
|
+
i.e. Where the value has the fewest numbers before the decimal point,
|
3896
|
+
but is still higher than 1.
|
3897
|
+
*/
|
3898
|
+
each(this.possibilities(), function(possibility) {
|
3899
|
+
var unit = this.describe(possibility);
|
3900
|
+
var isIncluded = options.exclude.indexOf(possibility) === -1;
|
3901
|
+
|
3902
|
+
if (isIncluded && unit.system === this.origin.system) {
|
3903
|
+
var result = this.to(possibility);
|
3904
|
+
if (!best || (result >= options.cutOffNumber && result < best.val)) {
|
3905
|
+
best = {
|
3906
|
+
val: result,
|
3907
|
+
unit: possibility,
|
3908
|
+
singular: unit.singular,
|
3909
|
+
plural: unit.plural
|
3910
|
+
};
|
3911
|
+
}
|
3912
|
+
}
|
3913
|
+
}.bind(this));
|
3914
|
+
|
3915
|
+
return best;
|
3916
|
+
};
|
3917
|
+
|
3918
|
+
/**
|
3919
|
+
* Finds the unit
|
3920
|
+
*/
|
3921
|
+
Converter.prototype.getUnit = function (abbr) {
|
3922
|
+
var found;
|
3923
|
+
|
3924
|
+
each(measures, function (systems, measure) {
|
3925
|
+
each(systems, function (units, system) {
|
3926
|
+
if(system == '_anchors')
|
3927
|
+
return false;
|
3928
|
+
|
3929
|
+
each(units, function (unit, testAbbr) {
|
3930
|
+
if(testAbbr == abbr) {
|
3931
|
+
found = {
|
3932
|
+
abbr: abbr
|
3933
|
+
, measure: measure
|
3934
|
+
, system: system
|
3935
|
+
, unit: unit
|
3936
|
+
};
|
3937
|
+
return false;
|
3938
|
+
}
|
3939
|
+
});
|
3940
|
+
|
3941
|
+
if(found)
|
3942
|
+
return false;
|
3943
|
+
});
|
3944
|
+
|
3945
|
+
if(found)
|
3946
|
+
return false;
|
3947
|
+
});
|
3948
|
+
|
3949
|
+
return found;
|
3950
|
+
};
|
3951
|
+
|
3952
|
+
var describe = function(resp) {
|
3953
|
+
return {
|
3954
|
+
abbr: resp.abbr
|
3955
|
+
, measure: resp.measure
|
3956
|
+
, system: resp.system
|
3957
|
+
, singular: resp.unit.name.singular
|
3958
|
+
, plural: resp.unit.name.plural
|
3959
|
+
};
|
3960
|
+
};
|
3961
|
+
|
3962
|
+
/**
|
3963
|
+
* An alias for getUnit
|
3964
|
+
*/
|
3965
|
+
Converter.prototype.describe = function (abbr) {
|
3966
|
+
var resp = Converter.prototype.getUnit(abbr);
|
3967
|
+
var desc = null;
|
3968
|
+
|
3969
|
+
try {
|
3970
|
+
desc = describe(resp);
|
3971
|
+
} catch(err) {
|
3972
|
+
this.throwUnsupportedUnitError(abbr);
|
3973
|
+
}
|
3974
|
+
|
3975
|
+
return desc;
|
3976
|
+
};
|
3977
|
+
|
3978
|
+
/**
|
3979
|
+
* Detailed list of all supported units
|
3980
|
+
*/
|
3981
|
+
Converter.prototype.list = function (measure) {
|
3982
|
+
var list = [];
|
3983
|
+
|
3984
|
+
each(measures, function (systems, testMeasure) {
|
3985
|
+
if(measure && measure !== testMeasure)
|
3986
|
+
return;
|
3987
|
+
|
3988
|
+
each(systems, function (units, system) {
|
3989
|
+
if(system == '_anchors')
|
3990
|
+
return false;
|
3991
|
+
|
3992
|
+
each(units, function (unit, abbr) {
|
3993
|
+
list = list.concat(describe({
|
3994
|
+
abbr: abbr,
|
3995
|
+
measure: testMeasure
|
3996
|
+
, system: system
|
3997
|
+
, unit: unit
|
3998
|
+
}));
|
3999
|
+
});
|
4000
|
+
});
|
4001
|
+
});
|
4002
|
+
|
4003
|
+
return list;
|
4004
|
+
};
|
4005
|
+
|
4006
|
+
Converter.prototype.throwUnsupportedUnitError = function (what) {
|
4007
|
+
var validUnits = [];
|
4008
|
+
|
4009
|
+
each(measures, function (systems, measure) {
|
4010
|
+
each(systems, function (units, system) {
|
4011
|
+
if(system == '_anchors')
|
4012
|
+
return false;
|
4013
|
+
|
4014
|
+
validUnits = validUnits.concat(keys(units));
|
4015
|
+
});
|
4016
|
+
});
|
4017
|
+
|
4018
|
+
throw new Error('Unsupported unit ' + what + ', use one of: ' + validUnits.join(', '));
|
4019
|
+
};
|
4020
|
+
|
4021
|
+
/**
|
4022
|
+
* Returns the abbreviated measures that the value can be
|
4023
|
+
* converted to.
|
4024
|
+
*/
|
4025
|
+
Converter.prototype.possibilities = function (measure) {
|
4026
|
+
var possibilities = [];
|
4027
|
+
if(!this.origin && !measure) {
|
4028
|
+
each(keys(measures), function (measure){
|
4029
|
+
each(measures[measure], function (units, system) {
|
4030
|
+
if(system == '_anchors')
|
4031
|
+
return false;
|
4032
|
+
|
4033
|
+
possibilities = possibilities.concat(keys(units));
|
4034
|
+
});
|
4035
|
+
});
|
4036
|
+
} else {
|
4037
|
+
measure = measure || this.origin.measure;
|
4038
|
+
each(measures[measure], function (units, system) {
|
4039
|
+
if(system == '_anchors')
|
4040
|
+
return false;
|
4041
|
+
|
4042
|
+
possibilities = possibilities.concat(keys(units));
|
4043
|
+
});
|
4044
|
+
}
|
4045
|
+
|
4046
|
+
return possibilities;
|
4047
|
+
};
|
4048
|
+
|
4049
|
+
/**
|
4050
|
+
* Returns the abbreviated measures that the value can be
|
4051
|
+
* converted to.
|
4052
|
+
*/
|
4053
|
+
Converter.prototype.measures = function () {
|
4054
|
+
return keys(measures);
|
4055
|
+
};
|
4056
|
+
|
4057
|
+
convert = function (value) {
|
4058
|
+
return new Converter(value);
|
4059
|
+
};
|
4060
|
+
|
4061
|
+
var lib = convert;
|
4062
|
+
|
4063
|
+
var hasRequiredAgricultureCal;
|
4064
|
+
|
4065
|
+
function requireAgricultureCal () {
|
4066
|
+
if (hasRequiredAgricultureCal) return agricultureCal;
|
4067
|
+
hasRequiredAgricultureCal = 1;
|
4068
|
+
Object.defineProperty(agricultureCal, "__esModule", { value: true });
|
4069
|
+
agricultureCal.AgricultureCal = void 0;
|
4070
|
+
const calculator_1 = requireCalculator();
|
4071
|
+
var convert = lib;
|
4072
|
+
class AgricultureCal {
|
4073
|
+
static calculate(req) {
|
4074
|
+
const constants = req.agricultureConstants;
|
4075
|
+
const unitParts = constants.emissionFactorUnit.split('/');
|
4076
|
+
if (unitParts.length != 3) {
|
4077
|
+
throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
|
4078
|
+
}
|
4079
|
+
const landArea = convert(req.landArea).from(req.landAreaUnit).to(unitParts[1]);
|
4080
|
+
const duration = convert(req.duration).from(req.durationUnit).to(unitParts[2]);
|
4081
|
+
return Number((constants.emissionFactor * landArea * duration).toFixed(calculator_1.PRECISION));
|
4082
|
+
}
|
4083
|
+
}
|
4084
|
+
agricultureCal.AgricultureCal = AgricultureCal;
|
4085
|
+
return agricultureCal;
|
4086
|
+
}
|
4087
|
+
|
4088
|
+
var solarCal = {};
|
4089
|
+
|
4090
|
+
var hasRequiredSolarCal;
|
4091
|
+
|
4092
|
+
function requireSolarCal () {
|
4093
|
+
if (hasRequiredSolarCal) return solarCal;
|
4094
|
+
hasRequiredSolarCal = 1;
|
4095
|
+
Object.defineProperty(solarCal, "__esModule", { value: true });
|
4096
|
+
solarCal.SolarCal = void 0;
|
4097
|
+
const calculator_1 = requireCalculator();
|
4098
|
+
var convert = lib;
|
4099
|
+
class SolarCal {
|
4100
|
+
static calculate(req) {
|
4101
|
+
const constants = req.solarConstants;
|
4102
|
+
const emissionUnitParts = constants.emissionFactorUnit.split('/');
|
4103
|
+
if (emissionUnitParts.length != 2) {
|
4104
|
+
throw Error("Invalid emission factor unit " + constants.emissionFactorUnit);
|
4105
|
+
}
|
4106
|
+
const measuredUnitParts = req.energyGenerationUnit.split('/');
|
4107
|
+
if (measuredUnitParts.length != 3) {
|
4108
|
+
throw Error("Invalid measured unit " + req.energyGenerationUnit);
|
4109
|
+
}
|
4110
|
+
let threshold = constants.buildingTypes[req.buildingType];
|
4111
|
+
if (!threshold) {
|
4112
|
+
throw Error("Invalid building type " + req.buildingType);
|
4113
|
+
}
|
4114
|
+
if (req.energyGenerationUnit != constants.thresholdUnit) {
|
4115
|
+
const thresholdUnitParts = constants.thresholdUnit.split('/');
|
4116
|
+
if (thresholdUnitParts.length != 2) {
|
4117
|
+
throw Error("Invalid threshold unit " + constants.thresholdUnit);
|
4118
|
+
}
|
4119
|
+
let factor = convert(1).from(thresholdUnitParts[0]).to(measuredUnitParts[0]);
|
4120
|
+
factor = factor / convert(1).from(thresholdUnitParts[1]).to(measuredUnitParts[1]);
|
4121
|
+
threshold = Number(threshold * factor);
|
4122
|
+
}
|
4123
|
+
const unitX = convert(1).from(measuredUnitParts[0]).to(emissionUnitParts[1]);
|
4124
|
+
const highFactor = Number(constants.highEmissionFactor * unitX);
|
4125
|
+
const lowFactor = Number(constants.lowEmissionFactor * unitX);
|
4126
|
+
let value;
|
4127
|
+
if (req.energyGeneration < threshold) {
|
4128
|
+
value = req.energyGeneration * highFactor;
|
4129
|
+
}
|
4130
|
+
else {
|
4131
|
+
value = threshold * highFactor + (req.energyGeneration - threshold) * lowFactor;
|
4132
|
+
}
|
4133
|
+
return Number(value.toFixed(calculator_1.PRECISION));
|
4134
|
+
}
|
4135
|
+
}
|
4136
|
+
solarCal.SolarCal = SolarCal;
|
4137
|
+
return solarCal;
|
4138
|
+
}
|
4139
|
+
|
4140
|
+
var agricultureCreationRequest = {};
|
4141
|
+
|
4142
|
+
var agricultureConstants = {};
|
4143
|
+
|
4144
|
+
Object.defineProperty(agricultureConstants, "__esModule", { value: true });
|
4145
|
+
agricultureConstants.AgricultureConstants = void 0;
|
4146
|
+
class AgricultureConstants {
|
4147
|
+
constructor() {
|
4148
|
+
this.emissionFactor = 0.046;
|
4149
|
+
this.emissionFactorUnit = "tCO2e/ha/d";
|
4150
|
+
}
|
4151
|
+
}
|
4152
|
+
agricultureConstants.AgricultureConstants = AgricultureConstants;
|
4153
|
+
|
4154
|
+
Object.defineProperty(agricultureCreationRequest, "__esModule", { value: true });
|
4155
|
+
agricultureCreationRequest.AgricultureCreationRequest = void 0;
|
4156
|
+
const agricultureConstants_1 = agricultureConstants;
|
4157
|
+
class AgricultureCreationRequest {
|
4158
|
+
constructor() {
|
4159
|
+
this.agricultureConstants = new agricultureConstants_1.AgricultureConstants();
|
4160
|
+
}
|
4161
|
+
}
|
4162
|
+
agricultureCreationRequest.AgricultureCreationRequest = AgricultureCreationRequest;
|
4163
|
+
|
4164
|
+
var solarCreationRequest = {};
|
4165
|
+
|
4166
|
+
var solarConstants = {};
|
4167
|
+
|
4168
|
+
Object.defineProperty(solarConstants, "__esModule", { value: true });
|
4169
|
+
solarConstants.SolarConstants = void 0;
|
4170
|
+
class SolarConstants {
|
4171
|
+
constructor() {
|
4172
|
+
this.highEmissionFactor = 6.8;
|
4173
|
+
this.lowEmissionFactor = 1.3;
|
4174
|
+
this.emissionFactorUnit = "tCO2/MWh";
|
4175
|
+
this.thresholdUnit = "kWh/year";
|
4176
|
+
this.buildingTypes = {
|
4177
|
+
Household: 55,
|
4178
|
+
HealthCenter: 825,
|
4179
|
+
Dispensary: 825,
|
4180
|
+
School: 275,
|
4181
|
+
PrimarySchool: 275,
|
4182
|
+
SecondarySchool: 275,
|
4183
|
+
PublicAdministration: 55,
|
4184
|
+
TradingPlace: 825,
|
4185
|
+
BusStop: 200,
|
4186
|
+
};
|
4187
|
+
}
|
4188
|
+
}
|
4189
|
+
solarConstants.SolarConstants = SolarConstants;
|
4190
|
+
|
4191
|
+
Object.defineProperty(solarCreationRequest, "__esModule", { value: true });
|
4192
|
+
solarCreationRequest.SolarCreationRequest = void 0;
|
4193
|
+
const solarConstants_1 = solarConstants;
|
4194
|
+
class SolarCreationRequest {
|
4195
|
+
constructor() {
|
4196
|
+
this.solarConstants = new solarConstants_1.SolarConstants();
|
4197
|
+
}
|
4198
|
+
}
|
4199
|
+
solarCreationRequest.SolarCreationRequest = SolarCreationRequest;
|
4200
|
+
|
4201
|
+
var hasRequiredCalculator;
|
4202
|
+
|
4203
|
+
function requireCalculator () {
|
4204
|
+
if (hasRequiredCalculator) return calculator;
|
4205
|
+
hasRequiredCalculator = 1;
|
4206
|
+
Object.defineProperty(calculator, "__esModule", { value: true });
|
4207
|
+
calculator.calculateCredit = calculator.PRECISION = void 0;
|
4208
|
+
const agricultureCal_1 = requireAgricultureCal();
|
4209
|
+
const solarCal_1 = requireSolarCal();
|
4210
|
+
const agricultureCreationRequest_1 = agricultureCreationRequest;
|
4211
|
+
const solarCreationRequest_1 = solarCreationRequest;
|
4212
|
+
calculator.PRECISION = 2;
|
4213
|
+
const calculateCredit = (request) => {
|
4214
|
+
if (request instanceof agricultureCreationRequest_1.AgricultureCreationRequest) {
|
4215
|
+
return agricultureCal_1.AgricultureCal.calculate(request);
|
4216
|
+
}
|
4217
|
+
else if (request instanceof solarCreationRequest_1.SolarCreationRequest) {
|
4218
|
+
return solarCal_1.SolarCal.calculate(request);
|
4219
|
+
}
|
4220
|
+
else {
|
4221
|
+
throw Error("Not implemented");
|
4222
|
+
}
|
4223
|
+
};
|
4224
|
+
calculator.calculateCredit = calculateCredit;
|
4225
|
+
return calculator;
|
4226
|
+
}
|
4227
|
+
|
4228
|
+
var building_type_enum = {};
|
4229
|
+
|
4230
|
+
(function (exports) {
|
4231
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4232
|
+
exports.BuildingType = void 0;
|
4233
|
+
(function (BuildingType) {
|
4234
|
+
BuildingType["Household"] = "Household";
|
4235
|
+
BuildingType["HealthCenter"] = "HealthCenter";
|
4236
|
+
BuildingType["Dispensary"] = "Dispensary";
|
4237
|
+
BuildingType["School"] = "School";
|
4238
|
+
BuildingType["PrimarySchool"] = "PrimarySchool";
|
4239
|
+
BuildingType["SecondarySchool"] = "SecondarySchool";
|
4240
|
+
BuildingType["PublicAdministration"] = "PublicAdministration";
|
4241
|
+
BuildingType["TradingPlace"] = "TradingPlace";
|
4242
|
+
BuildingType["BusStop"] = "BusStop";
|
4243
|
+
})(exports.BuildingType || (exports.BuildingType = {}));
|
4244
|
+
} (building_type_enum));
|
4245
|
+
|
4246
|
+
(function (exports) {
|
4247
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4248
|
+
exports.BuildingType = exports.SolarConstants = exports.AgricultureConstants = exports.AgricultureCreationRequest = exports.SolarCreationRequest = exports.calculateCredit = void 0;
|
4249
|
+
const calculator_1 = requireCalculator();
|
4250
|
+
Object.defineProperty(exports, "calculateCredit", { enumerable: true, get: function () { return calculator_1.calculateCredit; } });
|
4251
|
+
const agricultureConstants_1 = agricultureConstants;
|
4252
|
+
Object.defineProperty(exports, "AgricultureConstants", { enumerable: true, get: function () { return agricultureConstants_1.AgricultureConstants; } });
|
4253
|
+
const building_type_enum_1 = building_type_enum;
|
4254
|
+
Object.defineProperty(exports, "BuildingType", { enumerable: true, get: function () { return building_type_enum_1.BuildingType; } });
|
4255
|
+
const solarConstants_1 = solarConstants;
|
4256
|
+
Object.defineProperty(exports, "SolarConstants", { enumerable: true, get: function () { return solarConstants_1.SolarConstants; } });
|
4257
|
+
const agricultureCreationRequest_1 = agricultureCreationRequest;
|
4258
|
+
Object.defineProperty(exports, "AgricultureCreationRequest", { enumerable: true, get: function () { return agricultureCreationRequest_1.AgricultureCreationRequest; } });
|
4259
|
+
const solarCreationRequest_1 = solarCreationRequest;
|
4260
|
+
Object.defineProperty(exports, "SolarCreationRequest", { enumerable: true, get: function () { return solarCreationRequest_1.SolarCreationRequest; } });
|
4261
|
+
} (cjs));
|
4262
|
+
|
4263
|
+
var consumerGroupList = [
|
4264
|
+
{ value: cjs.BuildingType.Household.valueOf(), label: "Household" },
|
4265
|
+
{ value: cjs.BuildingType.HealthCenter.valueOf(), label: "Health Center" },
|
4266
|
+
{ value: cjs.BuildingType.Dispensary.valueOf(), label: "Dispensary" },
|
4267
|
+
{ value: cjs.BuildingType.School.valueOf(), label: "School" },
|
4268
|
+
{ value: cjs.BuildingType.PrimarySchool.valueOf(), label: "Primary School" },
|
4269
|
+
{ value: cjs.BuildingType.SecondarySchool.valueOf(), label: "Secondary School" },
|
4270
|
+
{
|
4271
|
+
value: cjs.BuildingType.PublicAdministration.valueOf(),
|
4272
|
+
label: "Public Administration",
|
4273
|
+
},
|
4274
|
+
{ value: cjs.BuildingType.TradingPlace.valueOf(), label: "Trading Place" },
|
4275
|
+
{ value: cjs.BuildingType.BusStop.valueOf(), label: "Bus Stop" },
|
4276
|
+
];
|
4277
|
+
|
4278
|
+
var Sector;
|
4279
|
+
(function (Sector) {
|
4280
|
+
Sector["Energy"] = "Energy";
|
4281
|
+
Sector["Health"] = "Health";
|
4282
|
+
Sector["Education"] = "Education";
|
4283
|
+
Sector["Transport"] = "Transport";
|
4284
|
+
Sector["Manufacturing"] = "Manufacturing";
|
4285
|
+
Sector["Hospitality"] = "Hospitality";
|
4286
|
+
Sector["Forestry"] = "Forestry";
|
4287
|
+
Sector["Waste"] = "Waste";
|
4288
|
+
Sector["Agriculture"] = "Agriculture";
|
4289
|
+
Sector["Other"] = "Other";
|
4290
|
+
})(Sector || (Sector = {}));
|
4291
|
+
|
4292
|
+
var RadioButtonStatus;
|
4293
|
+
(function (RadioButtonStatus) {
|
4294
|
+
RadioButtonStatus["YES"] = "YES";
|
4295
|
+
RadioButtonStatus["NO"] = "NO";
|
4296
|
+
RadioButtonStatus["NA"] = "N/A";
|
4297
|
+
})(RadioButtonStatus || (RadioButtonStatus = {}));
|
4298
|
+
var RadioButtonStatus2;
|
4299
|
+
(function (RadioButtonStatus2) {
|
4300
|
+
RadioButtonStatus2["YES"] = "YES";
|
4301
|
+
RadioButtonStatus2["NO"] = "NO";
|
4302
|
+
RadioButtonStatus2["MAYBE"] = "MAYBE";
|
4303
|
+
})(RadioButtonStatus2 || (RadioButtonStatus2 = {}));
|
4304
|
+
var Titles;
|
4305
|
+
(function (Titles) {
|
4306
|
+
Titles["Mr"] = "Mr";
|
4307
|
+
Titles["Mrs"] = "Mrs";
|
4308
|
+
})(Titles || (Titles = {}));
|
4309
|
+
var titleList = [
|
4310
|
+
{ value: Titles.Mr, label: "Mr" },
|
4311
|
+
{ value: Titles.Mrs, label: "Mrs" },
|
4312
|
+
];
|
4313
|
+
var FormElementType;
|
4314
|
+
(function (FormElementType) {
|
4315
|
+
FormElementType[FormElementType["Radio"] = 0] = "Radio";
|
4316
|
+
FormElementType[FormElementType["Label"] = 1] = "Label";
|
4317
|
+
FormElementType[FormElementType["Input"] = 2] = "Input";
|
4318
|
+
})(FormElementType || (FormElementType = {}));
|
4319
|
+
|
4320
|
+
var SdgGoals;
|
4321
|
+
(function (SdgGoals) {
|
4322
|
+
SdgGoals["noPoverty"] = "No Poverty";
|
4323
|
+
SdgGoals["zeroHunger"] = "Zero Hunger";
|
4324
|
+
SdgGoals["gdHealth"] = "Good Health and Well-being";
|
4325
|
+
SdgGoals["qualityEducation"] = "Quality Education";
|
4326
|
+
SdgGoals["genderEq"] = "Gender Equality";
|
4327
|
+
SdgGoals["cleanWatr"] = "Clean Water and Sanitation";
|
4328
|
+
SdgGoals["affEnergy"] = "Affordable and Clean Energy";
|
4329
|
+
SdgGoals["decentWork"] = "Decent Work and Economic Growth";
|
4330
|
+
SdgGoals["industry"] = "Industry, Innovation and Infrastructure";
|
4331
|
+
SdgGoals["reducedInEq"] = "Reduced Inequalities";
|
4332
|
+
SdgGoals["sustainableCities"] = "Sustainable Cities and Communities";
|
4333
|
+
SdgGoals["responsibleConsumption"] = "Responsible Consumption and Production";
|
4334
|
+
SdgGoals["climateAction"] = "Climate Action";
|
4335
|
+
SdgGoals["lifeBelowWater"] = "Life Below Water";
|
4336
|
+
SdgGoals["lifeOnLand"] = "Life On Land";
|
4337
|
+
SdgGoals["peace"] = "Peace, Justice and Strong Institutions";
|
4338
|
+
SdgGoals["partnership"] = "Partnerships for the Goals";
|
4339
|
+
})(SdgGoals || (SdgGoals = {}));
|
4340
|
+
|
4341
|
+
var ConfigurationSettingsType;
|
4342
|
+
(function (ConfigurationSettingsType) {
|
4343
|
+
ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
|
4344
|
+
})(ConfigurationSettingsType || (ConfigurationSettingsType = {}));
|
4345
|
+
|
4346
|
+
var MapTypes;
|
4347
|
+
(function (MapTypes) {
|
4348
|
+
MapTypes["Mapbox"] = "Mapbox";
|
4349
|
+
MapTypes["None"] = "None";
|
4350
|
+
})(MapTypes || (MapTypes = {}));
|
4351
|
+
|
4352
|
+
var BaseEntity = /** @class */ (function () {
|
4353
|
+
function BaseEntity() {
|
4354
|
+
}
|
4355
|
+
return BaseEntity;
|
4356
|
+
}());
|
4357
|
+
|
4358
|
+
var ProgrammeTransfer = /** @class */ (function () {
|
4359
|
+
function ProgrammeTransfer() {
|
4360
|
+
}
|
4361
|
+
return ProgrammeTransfer;
|
4362
|
+
}());
|
4363
|
+
|
4364
|
+
var User = /** @class */ (function () {
|
4365
|
+
function User() {
|
4366
|
+
}
|
4367
|
+
return User;
|
4368
|
+
}());
|
4369
|
+
|
4370
|
+
var ProgrammeEntity = /** @class */ (function () {
|
4371
|
+
function ProgrammeEntity() {
|
4372
|
+
}
|
4373
|
+
return ProgrammeEntity;
|
4374
|
+
}());
|
4375
|
+
|
4376
|
+
var AddNewCompanyComponent = function (props) {
|
4377
|
+
var _a;
|
4378
|
+
var t = props.t, onNavigateToCompanyManagement = props.onNavigateToCompanyManagement, maximumImageSize = props.maximumImageSize, useConnection = props.useConnection, useUserContext = props.useUserContext, useLocation = props.useLocation, regionField = props.regionField;
|
4379
|
+
var formOne = Form.useForm()[0];
|
4380
|
+
var formTwo = Form.useForm()[0];
|
4381
|
+
var _b = useState(), stepOneData = _b[0], setStepOneData = _b[1];
|
4382
|
+
var _c = useState(false), loading = _c[0], setLoading = _c[1];
|
4383
|
+
var contactNoInput = useState()[0];
|
4384
|
+
var _d = useState(0), current = _d[0], setCurrent = _d[1];
|
4385
|
+
var _e = useState(false), isUpdate = _e[0], setIsUpdate = _e[1];
|
4386
|
+
var _f = useConnection(), put = _f.put, get = _f.get, post = _f.post;
|
4387
|
+
var _g = useUserContext(), setUserInfo = _g.setUserInfo, userInfoState = _g.userInfoState;
|
4388
|
+
var state = useLocation().state;
|
4389
|
+
var _h = useState([]), fileList = _h[0], setFileList = _h[1];
|
4390
|
+
var _j = useState([]), countries = _j[0], setCountries = _j[1];
|
4391
|
+
var _k = useState(false), loadingList = _k[0], setLoadingList = _k[1];
|
4392
|
+
var _l = useState([]), regionsList = _l[0], setRegionsList = _l[1];
|
4393
|
+
var _m = useState((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.companyRole), companyRole = _m[0], setCompanyRole = _m[1];
|
4394
|
+
var getCountryList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
4395
|
+
var response, alpha2Names;
|
4396
|
+
return __generator(this, function (_a) {
|
4397
|
+
switch (_a.label) {
|
4398
|
+
case 0: return [4 /*yield*/, get("national/organisation/countries")];
|
4399
|
+
case 1:
|
4400
|
+
response = _a.sent();
|
4401
|
+
if (response.data) {
|
4402
|
+
alpha2Names = response.data.map(function (item) {
|
4403
|
+
return item.alpha2;
|
4404
|
+
});
|
4405
|
+
setCountries(alpha2Names);
|
4406
|
+
}
|
4407
|
+
return [2 /*return*/];
|
4408
|
+
}
|
4409
|
+
});
|
4410
|
+
}); };
|
4411
|
+
var getRegionList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
4412
|
+
var response, regionNames, error_1;
|
4413
|
+
return __generator(this, function (_a) {
|
4414
|
+
switch (_a.label) {
|
4415
|
+
case 0:
|
4416
|
+
setLoadingList(true);
|
4417
|
+
_a.label = 1;
|
4418
|
+
case 1:
|
4419
|
+
_a.trys.push([1, 3, 4, 5]);
|
4420
|
+
return [4 /*yield*/, post("national/organisation/regions", {
|
4421
|
+
page: 1,
|
4422
|
+
size: 100,
|
4423
|
+
filterAnd: [
|
4424
|
+
{
|
4425
|
+
key: "lang",
|
4426
|
+
operation: "=",
|
4427
|
+
value: "en",
|
4428
|
+
},
|
4429
|
+
],
|
4430
|
+
})];
|
4431
|
+
case 2:
|
4432
|
+
response = _a.sent();
|
4433
|
+
if (response.data) {
|
4434
|
+
regionNames = response.data.map(function (item) { return item.regionName; });
|
4435
|
+
setRegionsList(__spreadArray([t("national")], regionNames, true));
|
4436
|
+
}
|
4437
|
+
return [3 /*break*/, 5];
|
4438
|
+
case 3:
|
4439
|
+
error_1 = _a.sent();
|
4440
|
+
console.log("Error in getting regions list", error_1);
|
4441
|
+
return [3 /*break*/, 5];
|
4442
|
+
case 4:
|
4443
|
+
setLoadingList(false);
|
4444
|
+
return [7 /*endfinally*/];
|
4445
|
+
case 5: return [2 /*return*/];
|
4446
|
+
}
|
4447
|
+
});
|
4448
|
+
}); };
|
4449
|
+
useEffect(function () {
|
4450
|
+
var _a, _b, _c;
|
4451
|
+
setIsUpdate((state === null || state === void 0 ? void 0 : state.record) ? true : false);
|
4452
|
+
getCountryList();
|
4453
|
+
getRegionList();
|
4454
|
+
if ((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo) {
|
4455
|
+
setFileList([
|
4456
|
+
{
|
4457
|
+
uid: "1",
|
4458
|
+
name: "".concat((_b = state === null || state === void 0 ? void 0 : state.record) === null || _b === void 0 ? void 0 : _b.name, ".png"),
|
4459
|
+
status: "done",
|
4460
|
+
url: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.logo,
|
4461
|
+
type: "image/png",
|
4462
|
+
},
|
4463
|
+
]);
|
4464
|
+
}
|
4465
|
+
}, []);
|
4466
|
+
var normFile = function (e) {
|
4467
|
+
if (Array.isArray(e)) {
|
4468
|
+
return e;
|
4469
|
+
}
|
4470
|
+
return e === null || e === void 0 ? void 0 : e.fileList;
|
4471
|
+
};
|
4472
|
+
var nextOne = function (val) {
|
4473
|
+
setCurrent(current + 1);
|
4474
|
+
setStepOneData(val);
|
4475
|
+
};
|
4476
|
+
var prevOne = function () {
|
4477
|
+
setCurrent(current - 1);
|
4478
|
+
};
|
4479
|
+
var onFinishStepOne = function (values) {
|
4480
|
+
nextOne(values);
|
4481
|
+
};
|
4482
|
+
var onChangeRegion = function (values) {
|
4483
|
+
if (values.includes(t("national"))) {
|
4484
|
+
var buyerCountryValues = regionsList;
|
4485
|
+
var newBuyerValues = buyerCountryValues === null || buyerCountryValues === void 0 ? void 0 : buyerCountryValues.filter(function (item) { return item !== t("national"); });
|
4486
|
+
formOne.setFieldValue("regions", __spreadArray([], newBuyerValues, true));
|
4487
|
+
}
|
1152
4488
|
};
|
1153
4489
|
var onFinishStepTwo = function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
1154
4490
|
var requestData, logoBase64, logoUrls, response, error_2;
|
@@ -7299,5 +10635,5 @@ var StasticCard = function (props) {
|
|
7299
10635
|
updatedDate !== '0' && React.createElement("div", { className: "updated-on" }, updatedDate)))));
|
7300
10636
|
};
|
7301
10637
|
|
7302
|
-
export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, ConfigurationSettingsType, CreditTransferStage, ESGType, Instrument, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LegendItem, Loading, MapComponent, MapTypes, MapboxComponent, MitigationTypes, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, ProfileIcon, ProgrammeEntity, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeStage, ProgrammeStageMRV, ProgrammeTransfer, ProgrammeViewComponent, RetireType, Role, RoleIcon, SectoralScope, StasticCard, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, addCommSep, addCommSepRound, addRoundNumber, addSpaces, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, mitigationTypeList, ndcActionTypeList, sumArray };
|
10638
|
+
export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, ConfigurationSettingsType, CreditTransferStage, ESGType, EnergyGenerationUnits, FormElementType, Instrument, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LegendItem, Loading, MapComponent, MapTypes, MapboxComponent, MitigationTypes, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, ProfileIcon, ProgrammeEntity, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeStage, ProgrammeStageMRV, ProgrammeTransfer, ProgrammeViewComponent, RadioButtonStatus, RadioButtonStatus2, RetireType, Role, RoleIcon, SdgGoals, Sector, SectoralScope, StasticCard, Titles, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, addCommSep, addCommSepRound, addRoundNumber, addSpaces, consumerGroupList, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, landAreaUnitList, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList };
|
7303
10639
|
//# sourceMappingURL=index.js.map
|