@mark1russell7/stack-needs 0.9.4 → 0.9.5
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/README.md +55 -1
- package/build/index.d.ts +156 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +247 -30
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -159,6 +159,8 @@ The fragment has no converter. Thus, with this fragment alone, only `food.no-coo
|
|
|
159
159
|
|
|
160
160
|
`cookFragment` gives the converters for the dry food in a different fragment, with the water and the fuel of each pot. Then `joinEndurance` joins the fragments. The dry food then adds days only while the water and the fuel last.
|
|
161
161
|
|
|
162
|
+
`formulaMixFragment` gives the converter of the infant formula powder in a different fragment, with its water. The powder then adds days of formula only while the water lasts.
|
|
163
|
+
|
|
162
164
|
This fragment declares the resource codes of the buy list, for example `water.stored` in `L`. A different fragment, for example the fragment of a water tank, can declare the same resource. `joinEndurance` of `@mark1russell7/stack-endurance` joins two equal records into one. A different unit is a fault of the join.
|
|
163
165
|
|
|
164
166
|
## The water and the fuel of a cook
|
|
@@ -220,6 +222,58 @@ The cited constants:
|
|
|
220
222
|
|
|
221
223
|
The two sources are works of the United States federal government (the license `us-public-domain` of guidebook).
|
|
222
224
|
|
|
225
|
+
## The water of infant formula powder
|
|
226
|
+
|
|
227
|
+
`formulaMixFragment` turns the infant formula powder of a buy list into one converter of an endurance layer. The converter needs no fuel. One run is 1 kg of powder. The run takes the powder and its mix water, and gives the energy of the powder as ready formula. Thus a powder with no water gives no feed.
|
|
228
|
+
|
|
229
|
+
```ts
|
|
230
|
+
import { SUPPLY_CATALOG } from "@mark1russell7/market/supplies";
|
|
231
|
+
import { formulaMixFragment } from "@mark1russell7/stack-needs";
|
|
232
|
+
|
|
233
|
+
const mix = formulaMixFragment({ catalog: SUPPLY_CATALOG, units: { "food.infant-formula-powder-1kg": 2 } });
|
|
234
|
+
// mix.layer has the converter mix:food.infant-formula-powder. Join it with the layer of householdFragment and a store of water.
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
The records of the converter:
|
|
238
|
+
|
|
239
|
+
| Field | Value for 1 kg of the catalog powder |
|
|
240
|
+
| --- | --- |
|
|
241
|
+
| `takes` | 1 kg of `food.infant-formula-powder`, and 7.3175 L of `water.stored` |
|
|
242
|
+
| `gives` | 5240 kcal of `food.infant-formula-ready`, the resource of the ready formula |
|
|
243
|
+
| `id` | `mix:food.infant-formula-powder`. The option `prefix` changes the start. |
|
|
244
|
+
|
|
245
|
+
The direct use of `food.infant-formula-ready` then feeds the formula draw. The powder has a store in the household fragment, and no direct use. `cookFragment` does not cook it.
|
|
246
|
+
|
|
247
|
+
### The mix rule
|
|
248
|
+
|
|
249
|
+
The rule is a mass balance. It assumes that the prepared powder has the energy in 100 g of the ready-to-feed item of the same store brand. The reason: FoodData Central gives these two items of one brand, and no catalog record cites the mix ratio of a label. A label-cited mix ratio replaces this assumption.
|
|
250
|
+
|
|
251
|
+
1. The powder gives 524 kcal in 100 g, and the ready-to-feed item gives 63 kcal in 100 g.
|
|
252
|
+
2. Thus 100 g of prepared formula holds 100 × 63 / 524 = 12.023 g of powder and 87.977 g of mix water.
|
|
253
|
+
3. The mix water is 1.39646 g for each kcal, and 7.3175 kg for each kg of powder (`formulaMixWater`).
|
|
254
|
+
4. The water mass converts to a volume at `WATER_DENSITY_MAX`, 1 kg/L. Water above 4 °C is less dense, so the true volume is a little more.
|
|
255
|
+
5. The energy of each powder product comes from its food energy in the catalog. Two products can give powder. Then the converter takes the most water and the least energy of their lines.
|
|
256
|
+
|
|
257
|
+
`formulaMixCheck` gives an independent check of the rule. The rule does not use the water of the two items. The powder holds 2 g of water in 100 g, thus 0.240 g in 12.023 g. The predicted water of 100 g of prepared formula is 87.977 + 0.240 = 88.218 g. The FDC item 172319 gives 88.1 g, 0.13% less.
|
|
258
|
+
|
|
259
|
+
These facts give a no read, and then the powder has no converter:
|
|
260
|
+
|
|
261
|
+
| Missing fact | The no read |
|
|
262
|
+
| --- | --- |
|
|
263
|
+
| No food energy of the product, or an energy in a unit that does not convert to kcal | The energy and the water |
|
|
264
|
+
| A product that gives more than one food | The energy and the water |
|
|
265
|
+
| An energy of the powder that is not more than the 630 kcal/kg of the ready-to-feed item | The water |
|
|
266
|
+
|
|
267
|
+
The water is `water.stored`, the store of the drinking water, as for a cook. The WIC guide tells to use bottled water after a disaster or in a power cut. A store of water from the tap is safe water only when its source is safe. A drinking draw at a higher level takes its water first. Thus, when a case cuts the water supply, the powder can add 0 days.
|
|
268
|
+
|
|
269
|
+
The WIC guide tells to prepare powder one bottle at a time, for one feed. Thus the mix has no waste of an opened container. The rule of opened containers applies only to a product with the field `opened`.
|
|
270
|
+
|
|
271
|
+
The cited constant:
|
|
272
|
+
|
|
273
|
+
| Name | Value | Source |
|
|
274
|
+
| --- | --- | --- |
|
|
275
|
+
| `FORMULA_MIX` | 524 kcal and 2 g of water in 100 g of powder. 63 kcal and 88.1 g of water in 100 g of ready-to-feed formula. | FoodData Central, SR Legacy (April 2018, CC0 1.0): FDC ID 173554 (store brand, powder) and FDC ID 172319 (store brand, ready-to-feed), `food_nutrient.csv`. The water source is the WIC guide, page 106. |
|
|
276
|
+
|
|
223
277
|
## The uses, the supply parts and the join gate
|
|
224
278
|
|
|
225
279
|
The package holds one record of each use and of each default supply part. `householdFragment` takes its food use from `DIRECT_USES`.
|
|
@@ -305,4 +359,4 @@ The gate refuses an empty code and two needs with one code (`daily-need-id`). It
|
|
|
305
359
|
|
|
306
360
|
| Entry | What it has |
|
|
307
361
|
| --- | --- |
|
|
308
|
-
| `@mark1russell7/stack-needs` | The records, the calorie tables and `CALORIE_CHAIN`, the gates, `calorieNeed`, `householdFragment`, `cookFragment` and its constants, the uses, the supply parts and `checkJoins`. |
|
|
362
|
+
| `@mark1russell7/stack-needs` | The records, the calorie tables and `CALORIE_CHAIN`, the gates, `calorieNeed`, `householdFragment`, `cookFragment` and its constants, `formulaMixFragment` and `FORMULA_MIX`, the uses, the supply parts and `checkJoins`. |
|
package/build/index.d.ts
CHANGED
|
@@ -190,7 +190,7 @@ export interface CitedFeeds {
|
|
|
190
190
|
* 24 hours divided by 3 hours is 8. More feeds give smaller feeds and thus more waste, so this value is the most feeds.
|
|
191
191
|
*/
|
|
192
192
|
export declare const FORMULA_FEEDS: CitedFeeds;
|
|
193
|
-
/** The source of the energy
|
|
193
|
+
/** The source of the energy and the water of the infant formula items: the SR Legacy file of FoodData Central. */
|
|
194
194
|
export declare const FDC_SR_LEGACY_SOURCE: Source;
|
|
195
195
|
/** The energy of the least formula of one infant for one day, from a cited volume and a cited energy of one fluid ounce. */
|
|
196
196
|
export interface CitedFormulaLeast {
|
|
@@ -208,6 +208,31 @@ export interface CitedFormulaLeast {
|
|
|
208
208
|
* and 24 ounces at 8 to 12 months. The FDC item 172319 gives 63 kcal in 100 g and 30.4 g in 1 fl oz, thus 19.152 kcal in 1 fl oz.
|
|
209
209
|
*/
|
|
210
210
|
export declare const FORMULA_LATER_LEAST: CitedFormulaLeast;
|
|
211
|
+
/**
|
|
212
|
+
* The facts of the mix rule: the energy and the water of a powder and of a ready-to-feed item of one store brand.
|
|
213
|
+
* `formulaMixWater` gives the rule, and `formulaMixCheck` gives its check.
|
|
214
|
+
*/
|
|
215
|
+
export interface CitedFormulaMix {
|
|
216
|
+
/** The energy of the powder, in `kcal` in 100 g. */
|
|
217
|
+
readonly powderKcal: number;
|
|
218
|
+
/** The water of the powder, in `g` in 100 g. Only the check of the rule uses it. */
|
|
219
|
+
readonly powderWater: number;
|
|
220
|
+
/** The energy of the ready-to-feed item, in `kcal` in 100 g. */
|
|
221
|
+
readonly readyKcal: number;
|
|
222
|
+
/** The water of the ready-to-feed item, in `g` in 100 g. Only the check of the rule uses it. */
|
|
223
|
+
readonly readyWater: number;
|
|
224
|
+
readonly source: Source;
|
|
225
|
+
readonly locator: string;
|
|
226
|
+
/** The source that tells to mix the powder with safe water, one bottle at a time. */
|
|
227
|
+
readonly waterSource: Source;
|
|
228
|
+
readonly waterLocator: string;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* The facts of the mix rule: the FDC items 173554 (store brand, powder) and 172319 (store brand, ready-to-feed).
|
|
232
|
+
* The powder gives 524 kcal and 2 g of water in 100 g. The ready-to-feed item gives 63 kcal and 88.1 g of water in 100 g.
|
|
233
|
+
* The WIC guide tells to mix powder one bottle at a time, and to use bottled water after a disaster or in a power cut.
|
|
234
|
+
*/
|
|
235
|
+
export declare const FORMULA_MIX: CitedFormulaMix;
|
|
211
236
|
/** The source of the infant table: the PDF of the report Dietary Reference Intakes for Energy (2023) of the National Academies. */
|
|
212
237
|
export declare const NASEM_ENERGY_SOURCE: Source;
|
|
213
238
|
/** The energy of the breast milk of one infant for one day, with its source and its place in the source. */
|
|
@@ -297,6 +322,11 @@ export declare const WATER_NEED = "hydration.drink";
|
|
|
297
322
|
export declare const NO_COOK = "food.no-cook";
|
|
298
323
|
/** The resource of the ready-to-feed infant formula, in `kcal`. It has a direct use for the formula need. It needs no water and no fuel. */
|
|
299
324
|
export declare const FORMULA_READY = "food.infant-formula-ready";
|
|
325
|
+
/**
|
|
326
|
+
* The resource of the infant formula powder, in `kg`. It has no direct use. `formulaMixFragment` mixes it with
|
|
327
|
+
* `STORED_WATER` into `FORMULA_READY`. `cookFragment` does not cook it.
|
|
328
|
+
*/
|
|
329
|
+
export declare const FORMULA_POWDER = "food.infant-formula-powder";
|
|
300
330
|
/** The resource of the stored drinking water, in `L`. It has a direct use for the water need. */
|
|
301
331
|
export declare const STORED_WATER = "water.stored";
|
|
302
332
|
/** The direct use of a resource for a need: 1 unit of the resource gives `amount` of the need. */
|
|
@@ -551,6 +581,7 @@ export type HouseholdFragmentResult = HouseholdFragmentRead | HouseholdFragmentN
|
|
|
551
581
|
* - The resources are the resources of the stores and of the direct uses, with the units of the catalog.
|
|
552
582
|
* - The supply part of each draw is `supply`. Its default is the part of `NEED_SUPPLIES` for the need of the draw.
|
|
553
583
|
* - The fragment has no converter. `cookFragment` gives the converters for the dry food, with the water and the fuel of each pot.
|
|
584
|
+
* `formulaMixFragment` gives the converter of `food.infant-formula-powder`. The powder has a store, and no direct use.
|
|
554
585
|
* - With no cold storage (the default), an opened container of formula serves one feed. The store has only the energy of the feeds,
|
|
555
586
|
* and `waste` gives the rest. The smallest feed is the smallest need of an infant of the draw, divided by `FORMULA_FEEDS`.
|
|
556
587
|
* A container of no read gives no store and a gift with no read, so the stores are a lower limit.
|
|
@@ -739,7 +770,9 @@ export interface CookFragmentResult {
|
|
|
739
770
|
* - Only a stove rate with no bound gives the fuel. A rate with a bound, for example `bound: "least"`, gives a no read. The fuel of the cook time is the rate times the time, so a least rate gives too little fuel.
|
|
740
771
|
* - A rate in a mass gives the fuel directly. A rate in an energy gives a mass only through the cited energy of the fuel, with the same heating value.
|
|
741
772
|
*
|
|
742
|
-
* A dry food is a gift of a food resource in a unit of mass
|
|
773
|
+
* A dry food is a gift of a food resource in a unit of mass, except `FORMULA_POWDER`. `formulaMixFragment` gives its converter.
|
|
774
|
+
* Each missing fact gives a line with no read and its reasons, not a figure.
|
|
775
|
+
*
|
|
743
776
|
* Two products of the list can give one dry resource, for example rice and oats. The converter then takes the worst case of their lines:
|
|
744
777
|
* the most water, the most fuel and the least food energy. When a line of the resource has no read, the resource has no converter.
|
|
745
778
|
* A store of the resource from a different fragment gets the converter of this list.
|
|
@@ -764,6 +797,127 @@ export interface CookFragmentResult {
|
|
|
764
797
|
* @throws RangeError for the errors of `giftsOf`
|
|
765
798
|
*/
|
|
766
799
|
export declare function cookFragment(input: CookFragmentInput): CookFragmentResult;
|
|
800
|
+
/**
|
|
801
|
+
* This function gives the mix water of infant formula powder, in `kg` for each `kg` of powder.
|
|
802
|
+
*
|
|
803
|
+
* The rule is a mass balance. It assumes that the prepared powder has the energy in 100 g of the ready-to-feed item of the
|
|
804
|
+
* same store brand. The reason: the FDC file gives these two items of one brand, and the catalog cites no mix ratio of a label.
|
|
805
|
+
* The assumption ends when a label-cited mix ratio replaces it.
|
|
806
|
+
*
|
|
807
|
+
* Thus 1 kg of powder gives `powder / ready` kg of prepared formula, and the water is that mass minus 1 kg.
|
|
808
|
+
* For `FORMULA_MIX`, 5240 kcal/kg divided by 630 kcal/kg gives 8.3175 kg, so the water is 7.3175 kg. That is 1.39646 g for each kcal.
|
|
809
|
+
* `formulaMixCheck` compares the water of the prepared formula with the cited water of the ready-to-feed item.
|
|
810
|
+
*
|
|
811
|
+
* @param powderKcalPerKg - The energy of the powder, in `kcal/kg`, for example 5240
|
|
812
|
+
* @param mix - The facts of the rule. The default is `FORMULA_MIX`. Only its energy of the ready-to-feed item applies.
|
|
813
|
+
* @returns The mass of the mix water, in kg for each kg of powder
|
|
814
|
+
* @throws RangeError when the energy of the powder is not above the energy of the ready-to-feed item
|
|
815
|
+
*/
|
|
816
|
+
export declare function formulaMixWater(powderKcalPerKg: number, mix?: CitedFormulaMix): number;
|
|
817
|
+
/** The check of the mix rule: the water in 100 g of prepared formula from the rule, and the cited water of the ready-to-feed item. */
|
|
818
|
+
export interface FormulaMixCheck {
|
|
819
|
+
/** The powder in 100 g of prepared formula, in `g`. */
|
|
820
|
+
readonly powder: number;
|
|
821
|
+
/** The mix water in 100 g of prepared formula, in `g`. */
|
|
822
|
+
readonly added: number;
|
|
823
|
+
/** The water in 100 g of prepared formula, in `g`: the mix water and the water of the powder. */
|
|
824
|
+
readonly predicted: number;
|
|
825
|
+
/** The cited water in 100 g of the ready-to-feed item, in `g`. */
|
|
826
|
+
readonly cited: number;
|
|
827
|
+
/** The difference of `predicted` and `cited`, divided by `cited`. */
|
|
828
|
+
readonly relative: number;
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* This function gives the check of the mix rule with the water of the two items. The rule does not use their water, so the
|
|
832
|
+
* check is independent of it. For `FORMULA_MIX`, 100 g of prepared formula has 12.023 g of powder and 87.977 g of mix water.
|
|
833
|
+
* The powder holds 0.240 g of water, so the prediction is 88.218 g. The FDC item gives 88.1 g, 0.13% less.
|
|
834
|
+
*
|
|
835
|
+
* @param mix - The facts of the rule. The default is `FORMULA_MIX`.
|
|
836
|
+
* @returns The predicted water, the cited water and their relative difference
|
|
837
|
+
* @throws RangeError for the errors of `formulaMixWater`
|
|
838
|
+
*/
|
|
839
|
+
export declare function formulaMixCheck(mix?: CitedFormulaMix): FormulaMixCheck;
|
|
840
|
+
/** The inputs of the mix fragment. */
|
|
841
|
+
export interface FormulaMixInput {
|
|
842
|
+
/** The catalog of supplies of `@mark1russell7/market`. */
|
|
843
|
+
readonly catalog: SupplyCatalog;
|
|
844
|
+
/** The count of units of each product of the buy list, by the `id` of the product. */
|
|
845
|
+
readonly units: Readonly<Record<string, number>>;
|
|
846
|
+
/** The facts of the mix rule. The default is `FORMULA_MIX`. */
|
|
847
|
+
readonly mix?: CitedFormulaMix | undefined;
|
|
848
|
+
/** The start of the `id` of the converter. The default is `mix`. */
|
|
849
|
+
readonly prefix?: string | undefined;
|
|
850
|
+
}
|
|
851
|
+
/** The mix values of one product of the buy list that gives `FORMULA_POWDER`, for 1 kg of powder. */
|
|
852
|
+
export interface FormulaMixLine {
|
|
853
|
+
readonly product: string;
|
|
854
|
+
/** The energy of the powder, in `kcal/kg`. */
|
|
855
|
+
readonly energy: CookRead;
|
|
856
|
+
/** The mix water, in `L/kg` of powder. */
|
|
857
|
+
readonly water: CookRead;
|
|
858
|
+
}
|
|
859
|
+
/** The converter of the mix fragment, with the form of `Converter` of `@mark1russell7/stack-endurance`. It gives a resource, not a need. */
|
|
860
|
+
export interface MixConverter {
|
|
861
|
+
readonly id: string;
|
|
862
|
+
readonly takes: readonly {
|
|
863
|
+
readonly resource: string;
|
|
864
|
+
readonly amount: number;
|
|
865
|
+
}[];
|
|
866
|
+
readonly gives: {
|
|
867
|
+
readonly resource: string;
|
|
868
|
+
readonly amount: number;
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
/** The mix fragment of an endurance layer: the resources and one converter, or none. It has no store and no draw. */
|
|
872
|
+
export interface MixFragment {
|
|
873
|
+
/** The format of an endurance layer, `endurance/1`. */
|
|
874
|
+
readonly schema: "endurance/1";
|
|
875
|
+
readonly levels: readonly string[];
|
|
876
|
+
readonly resources: readonly {
|
|
877
|
+
readonly code: string;
|
|
878
|
+
readonly unit: string;
|
|
879
|
+
}[];
|
|
880
|
+
readonly stores: readonly never[];
|
|
881
|
+
readonly draws: readonly never[];
|
|
882
|
+
readonly converters: readonly MixConverter[];
|
|
883
|
+
}
|
|
884
|
+
/** The mix fragment, the line of each powder product and the reason when the powder has no converter. */
|
|
885
|
+
export interface FormulaMixResult {
|
|
886
|
+
readonly layer: MixFragment;
|
|
887
|
+
/** The line of each product of the buy list that gives `FORMULA_POWDER`, in the order of the list. */
|
|
888
|
+
readonly lines: readonly FormulaMixLine[];
|
|
889
|
+
/** The reasons when the buy list has powder and the powder has no converter. Otherwise `undefined`. */
|
|
890
|
+
readonly why: string | undefined;
|
|
891
|
+
/** True when the powder of the buy list has a converter, or when the list has no powder. */
|
|
892
|
+
readonly read: boolean;
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* This function gives the converter that mixes the infant formula powder of a buy list with water, with no fuel.
|
|
896
|
+
*
|
|
897
|
+
* - One run of the converter is 1 kg of powder. It takes the powder and the mix water from `water.stored`.
|
|
898
|
+
* It gives the energy of the powder as `food.infant-formula-ready`. The direct use of that resource feeds the formula need.
|
|
899
|
+
* - The mix water is `formulaMixWater`: a mass balance with the energy of the ready-to-feed item of the same store brand.
|
|
900
|
+
* This is an assumption. A label-cited mix ratio replaces it.
|
|
901
|
+
* - The mass of the water converts to a volume at `WATER_DENSITY_MAX`, 1 kg/L. Water above 4 °C is less dense, so the true volume is a little more.
|
|
902
|
+
* - The water is `water.stored`, the store of the drinking water. The WIC guide tells to use bottled water after a disaster
|
|
903
|
+
* or in a power cut. A store of water from the tap is safe water only when its source is safe.
|
|
904
|
+
* - The WIC guide tells to prepare powder one bottle at a time, for one feed. Thus the mix has no waste of an opened container.
|
|
905
|
+
* - The powder of each product comes from its food energy in the catalog. Two products of the list can give powder.
|
|
906
|
+
* The converter then takes the worst case of their lines: the most water and the least energy. A line with no read gives no converter.
|
|
907
|
+
* - A drinking draw at a higher level of the same store takes its water first, by the take order of `enduranceOf`.
|
|
908
|
+
* Thus, when a case cuts the water supply, the powder can add 0 days.
|
|
909
|
+
*
|
|
910
|
+
* The function is pure.
|
|
911
|
+
*
|
|
912
|
+
* @param input - The catalog and the buy list, and the facts of the mix rule
|
|
913
|
+
* @returns The fragment, the line of each powder product and the reasons for no converter
|
|
914
|
+
* @throws RangeError when the catalog has no product of an `id` of the buy list
|
|
915
|
+
* @throws RangeError when the powder has a converter and the catalog has no `food.infant-formula-powder` in a unit of mass
|
|
916
|
+
* @throws RangeError when the powder has a converter and the catalog has no `food.infant-formula-ready` in a unit of energy
|
|
917
|
+
* @throws RangeError when the powder has a converter and the catalog has no `water.stored` in a unit of volume
|
|
918
|
+
* @throws RangeError for the errors of `giftsOf`
|
|
919
|
+
*/
|
|
920
|
+
export declare function formulaMixFragment(input: FormulaMixInput): FormulaMixResult;
|
|
767
921
|
/** The code of the need of light to see in the dark in a home, in hours. */
|
|
768
922
|
export declare const LIGHT_NEED = "light.see";
|
|
769
923
|
/** The code of the need of an alert receiver that is on, in hours. */
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/calorie.ts","../src/data.ts","../src/check.ts","../src/uses.ts","../src/household.ts","../src/cook.ts","../src/daily.ts"],"mappings":";;;;qBAQa;;YAGD,wBAAwB;;qBAGvB;;YAGD,qBAAqB;;;;;YAMrB;WAAyB,QAAQ,SAAS,OAAO,eAAe;WAAqB;;WAA4B,MAAM;WAAmB;;;iBAGrI;WACN,KAAK;;WAEL;;WAEA;;WAEA;WACA,MAAM;;;;;;iBAOA;;WAEN;;WAEA;;WAEA,KAAK;;WAEL,QAAQ;;WAER;;WAEA;;;iBAIM;;WAEN;WACA;WACA,QAAQ;;WAER;;WAEA,eAAe;;WAEf,mBAAmB;;;;;;YAOlB,gBAAgB,wBAAwB;;;;;;;;qBASvC;;YAGD,wBAAwB;;iBAGnB;WACN,KAAK;;WAEL;WACA;;WAEA,QAAQ;;WAER;;;;;WAKA,UAAU;;;YAIT;WACG,QAAQ;WAAiB;WAAqB,OAAO;WAAwB;WAAwB;WAAsB;WAAqC,MAAM;;WACtK,QAAQ;WAAiB;WAAsB;;;iBAG7C;;WAEN,gBAAgB;;WAEhB;;WAEA,MAAM;;WAEN;;;wBASK,gBAAgB,iBAAiB,SAAS;;;;;;;;wBAW1C,WAAW,OAAO,cAAc,KAAK,YAAY,oBAAoB;;;;;;;;;wBAYrE,aAAa,QAAQ,eAAe,KAAK,YAAY;WAA+B,OAAO;WAAuB,KAAK;;;;;;;;;wBAoBvH,cAAc,OAAO,cAAc,KAAK,YAAY,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;wBA4BpE,YAAY,QAAQ,eAAe,kBAAkB,UAAU,OAAO,eAAe,eAAe;;qBCnLvG,YAAY;;qBAmBZ,cAAc;;qBA6Fd,mBAAmB;;iBAYf;WACN;WACA,QAAQ;WACR;;;;;;qBAOE,eAAe;;qBAGf,sBAAsB;;iBAYlB;;WAEN;WACA;WACA,cAAc;WACd;WACA;WACA,YAAY;WACZ;;;;;;qBAOE,qBAAqB;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/calorie.ts","../src/data.ts","../src/check.ts","../src/uses.ts","../src/household.ts","../src/cook.ts","../src/mix.ts","../src/daily.ts"],"mappings":";;;;qBAQa;;YAGD,wBAAwB;;qBAGvB;;YAGD,qBAAqB;;;;;YAMrB;WAAyB,QAAQ,SAAS,OAAO,eAAe;WAAqB;;WAA4B,MAAM;WAAmB;;;iBAGrI;WACN,KAAK;;WAEL;;WAEA;;WAEA;WACA,MAAM;;;;;;iBAOA;;WAEN;;WAEA;;WAEA,KAAK;;WAEL,QAAQ;;WAER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