@mark1russell7/guidebook-preparedness 0.2.1 → 0.2.3
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 +2 -0
- package/build/index.d.ts +7 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +336 -1
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/src/data/chart.ts +95 -0
- package/src/index.ts +6 -0
package/README.md
CHANGED
|
@@ -18,6 +18,8 @@ The core and the plans add-on name no topic. This package is the first topic.
|
|
|
18
18
|
| `STEPS` | All the steps |
|
|
19
19
|
| `GAPS` | The marked gaps: each key and phase with no step on purpose, with the reason |
|
|
20
20
|
| `RULES` | The 41 trigger rules of the decision chart. Each rule cites its sources and sends the reader to the steps of a key. |
|
|
21
|
+
| `MASTER` | The master chart for any disaster: 3 signals, 5 questions and 12 ends. Each path has at most 2 questions. No answer waits for officials. |
|
|
22
|
+
| `TABS`, `START_TAB` | The 13 tabs of the printed plan, each with its keys, its phases and its page budget. The chart is the start tab. |
|
|
21
23
|
| `CASES` | The codes of the 12 cases |
|
|
22
24
|
| `MORE_CASES` | The codes of 14 more cases, with the same gates |
|
|
23
25
|
| `CUTS` | The ids of the cuts |
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ChartNode, Gap, Rule, Step, Tab } from "@mark1russell7/guidebook-plans";
|
|
1
2
|
import { CitedUnit, Source } from "@mark1russell7/guidebook";
|
|
2
|
-
import { Gap, Rule, Step } from "@mark1russell7/guidebook-plans";
|
|
3
3
|
import { Topic } from "@mark1russell7/guidebook-topics";
|
|
4
4
|
import { Bundle, MediumKind } from "@mark1russell7/guidebook-library";
|
|
5
5
|
/** The date of the last check of the sources against their pages. */
|
|
@@ -21,6 +21,10 @@ export declare const GAPS: readonly Gap[];
|
|
|
21
21
|
export declare const OPEN_CELLS: readonly string[];
|
|
22
22
|
/** The trigger rules of the decision chart, by kind and rank. */
|
|
23
23
|
export declare const RULES: readonly Rule[];
|
|
24
|
+
/** The tab of the chart itself. It is the entry of the binder, so no path of the chart goes to it. */
|
|
25
|
+
export declare const START_TAB = "start";
|
|
26
|
+
/** The nodes of the master chart: 3 signals, 5 questions and 12 ends. */
|
|
27
|
+
export declare const MASTER: readonly ChartNode[];
|
|
24
28
|
/** The areas of the topics. */
|
|
25
29
|
export declare const AREAS: readonly ["water", "food", "farming", "medicine", "sanitation", "shelter", "energy", "electronics", "metals", "tools", "chemistry", "communication"];
|
|
26
30
|
/** The topics of the content. `printOrder` of the topics add-on gives the sequence of the book. */
|
|
@@ -58,4 +62,6 @@ export declare const MORE_CASES: readonly ["cbrne.hazardous-materials", "cbrne.r
|
|
|
58
62
|
export declare const CUTS: readonly ["power.grid", "water.main", "road.local", "phone.network", "network.access", "gas.main", "care.local", "sewer.main", "fuel.retail", "food.retail", "cash.retail", "home.dwelling"];
|
|
59
63
|
/** The need codes that the steps protect. */
|
|
60
64
|
export declare const NEEDS: readonly ["hydration.drink", "food.energy", "health.medicine", "power.electric"];
|
|
65
|
+
/** The tabs of the printed plan, in the sequence of the binder. The master chart sends the reader to them. */
|
|
66
|
+
export declare const TABS: readonly Tab[];
|
|
61
67
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/sources.ts","../src/data/steps.ts","../src/data/gaps.ts","../src/data/coverage.ts","../src/data/rules.ts","../src/data/topics.ts","../src/data/bundles.ts","../src/data/media.ts","../src/index.ts"],"mappings":";;;;;qBAOa;;qBAKA,kBAAkB;;qBCyClB,qBAAqB;;qBAkgBrB,oBAAoB;;qBA6MpB,gBAAgB;;qBCxvBhB,eAAe;;;;;qBCLf;;qBCEA,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/sources.ts","../src/data/steps.ts","../src/data/gaps.ts","../src/data/coverage.ts","../src/data/rules.ts","../src/data/chart.ts","../src/data/topics.ts","../src/data/bundles.ts","../src/data/media.ts","../src/index.ts"],"mappings":";;;;;qBAOa;;qBAKA,kBAAkB;;qBCyClB,qBAAqB;;qBAkgBrB,oBAAoB;;qBA6MpB,gBAAgB;;qBCxvBhB,eAAe;;;;;qBCLf;;qBCEA,gBAAgB;;qBCsBhB;;qBAKA,iBAAiB;;qBC9BjB;;qBAyDA,iBAAiB;;qBCvDjB;;;;;;qBAOA;;qBAKA,kBAAkB;;qBCblB,sBAAsB;;qBAkBtB,eAAe,SAAS,QAAQ,OAAO;WAAuB;WAA6B;;;qBAM3F,sBAAsB;;;;;qBCZtB;;;;;qBAmBA;;qBAGA;;qBAGA;;qBAGA,eAAe"}
|
package/build/index.js
CHANGED
|
@@ -1,3 +1,336 @@
|
|
|
1
|
+
// src/data/chart.ts
|
|
2
|
+
const ALL = [
|
|
3
|
+
"ready",
|
|
4
|
+
"warned",
|
|
5
|
+
"P0",
|
|
6
|
+
"P1",
|
|
7
|
+
"P2",
|
|
8
|
+
"P3",
|
|
9
|
+
"P4",
|
|
10
|
+
"P5"
|
|
11
|
+
];
|
|
12
|
+
/**
|
|
13
|
+
* The tabs of the printed plan, in the sequence of the binder. Each tab is for one need or one subject.
|
|
14
|
+
* Each state of society is a section in each tab. The page budgets come from the print.
|
|
15
|
+
*/
|
|
16
|
+
function tabsOf(cases) {
|
|
17
|
+
return [
|
|
18
|
+
{
|
|
19
|
+
id: "start",
|
|
20
|
+
title: "Start: the master chart",
|
|
21
|
+
keys: [],
|
|
22
|
+
phases: [],
|
|
23
|
+
pages: 2
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "first-72h",
|
|
27
|
+
title: "The first 72 hours",
|
|
28
|
+
keys: cases,
|
|
29
|
+
phases: [
|
|
30
|
+
"P0",
|
|
31
|
+
"P1",
|
|
32
|
+
"P2"
|
|
33
|
+
],
|
|
34
|
+
pages: 4
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "stay",
|
|
38
|
+
title: "Stay: the home and the building",
|
|
39
|
+
keys: ["home.dwelling"],
|
|
40
|
+
phases: ALL,
|
|
41
|
+
pages: 8
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "go",
|
|
45
|
+
title: "Go: the routes and the other places",
|
|
46
|
+
keys: ["road.local"],
|
|
47
|
+
phases: ALL,
|
|
48
|
+
pages: 4
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "water",
|
|
52
|
+
title: "Water and sanitation",
|
|
53
|
+
keys: [
|
|
54
|
+
"water.main",
|
|
55
|
+
"sewer.main",
|
|
56
|
+
"hydration.drink"
|
|
57
|
+
],
|
|
58
|
+
phases: ALL,
|
|
59
|
+
pages: 6
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "heat",
|
|
63
|
+
title: "Heat, shelter and power",
|
|
64
|
+
keys: [
|
|
65
|
+
"power.grid",
|
|
66
|
+
"gas.main",
|
|
67
|
+
"fuel.retail",
|
|
68
|
+
"power.electric"
|
|
69
|
+
],
|
|
70
|
+
phases: ALL,
|
|
71
|
+
pages: 6
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: "health",
|
|
75
|
+
title: "Health and medicine",
|
|
76
|
+
keys: [
|
|
77
|
+
"care.local",
|
|
78
|
+
"health.medicine",
|
|
79
|
+
"health.medical-emergency"
|
|
80
|
+
],
|
|
81
|
+
phases: ALL,
|
|
82
|
+
pages: 8
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: "food",
|
|
86
|
+
title: "Food",
|
|
87
|
+
keys: ["food.retail", "food.energy"],
|
|
88
|
+
phases: ALL,
|
|
89
|
+
pages: 6
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "security",
|
|
93
|
+
title: "The safety of the people",
|
|
94
|
+
keys: ["security.civil-unrest", "security.armed-conflict"],
|
|
95
|
+
phases: ALL,
|
|
96
|
+
pages: 6
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "group",
|
|
100
|
+
title: "Contact, the group and trade",
|
|
101
|
+
keys: [
|
|
102
|
+
"phone.network",
|
|
103
|
+
"network.access",
|
|
104
|
+
"cash.retail"
|
|
105
|
+
],
|
|
106
|
+
phases: ALL,
|
|
107
|
+
pages: 6
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: "long-term",
|
|
111
|
+
title: "The long term: 5 weeks to 5 years",
|
|
112
|
+
keys: cases,
|
|
113
|
+
phases: [
|
|
114
|
+
"P3",
|
|
115
|
+
"P4",
|
|
116
|
+
"P5"
|
|
117
|
+
],
|
|
118
|
+
pages: 10
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: "hazards",
|
|
122
|
+
title: "The hazards, case by case",
|
|
123
|
+
keys: cases,
|
|
124
|
+
phases: ALL,
|
|
125
|
+
pages: 24
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: "appendices",
|
|
129
|
+
title: "The appendices",
|
|
130
|
+
keys: [],
|
|
131
|
+
phases: [],
|
|
132
|
+
pages: 40
|
|
133
|
+
}
|
|
134
|
+
];
|
|
135
|
+
}
|
|
136
|
+
/** The tab of the chart itself. It is the entry of the binder, so no path of the chart goes to it. */
|
|
137
|
+
const START_TAB = "start";
|
|
138
|
+
/** The nodes of the master chart: 3 signals, 5 questions and 12 ends. */
|
|
139
|
+
const MASTER = [
|
|
140
|
+
{
|
|
141
|
+
id: "sense",
|
|
142
|
+
kind: "signal",
|
|
143
|
+
text: "You see, hear, smell or feel a danger: fire, smoke, gas, shaking, a flash, rising water, a siren or shots.",
|
|
144
|
+
next: "life"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: "threat",
|
|
148
|
+
kind: "signal",
|
|
149
|
+
text: "You learn of a threat that comes: a storm, a flood, a fire, a disease, unrest, an attack or a war.",
|
|
150
|
+
next: "known"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: "supply",
|
|
154
|
+
kind: "signal",
|
|
155
|
+
text: "A supply stops, or help does not come: power, water, sewer, gas, phone, internet, fuel, food, cash, care or the law.",
|
|
156
|
+
next: "society"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: "life",
|
|
160
|
+
kind: "question",
|
|
161
|
+
text: "Can the danger hurt you in the next minutes?",
|
|
162
|
+
sources: [],
|
|
163
|
+
reasoning: "A danger of minutes leaves no time to read. Do the reflex first, then come back to the chart.",
|
|
164
|
+
answers: [{
|
|
165
|
+
label: "Yes",
|
|
166
|
+
next: "to-72h"
|
|
167
|
+
}, {
|
|
168
|
+
label: "No",
|
|
169
|
+
next: "place"
|
|
170
|
+
}]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
id: "known",
|
|
174
|
+
kind: "question",
|
|
175
|
+
text: "Does the hazards tab have a page for this event?",
|
|
176
|
+
sources: [],
|
|
177
|
+
reasoning: "A page for the event gives its special risks. An event with no page still breaks down into needs, so the chart continues.",
|
|
178
|
+
answers: [{
|
|
179
|
+
label: "Yes",
|
|
180
|
+
next: "to-hazards"
|
|
181
|
+
}, {
|
|
182
|
+
label: "No",
|
|
183
|
+
next: "place"
|
|
184
|
+
}]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
id: "place",
|
|
188
|
+
kind: "question",
|
|
189
|
+
text: "Is your place safe to stay in: no fire, gas, flood water, damage or bad air?",
|
|
190
|
+
sources: [],
|
|
191
|
+
reasoning: "Your place holds your supplies, so stay when it is safe. Go when the place itself is the danger.",
|
|
192
|
+
answers: [{
|
|
193
|
+
label: "Yes",
|
|
194
|
+
next: "to-stay"
|
|
195
|
+
}, {
|
|
196
|
+
label: "No",
|
|
197
|
+
next: "to-go"
|
|
198
|
+
}]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
id: "society",
|
|
202
|
+
kind: "question",
|
|
203
|
+
text: "Does society work: does help come when you call, and do the shops, the pharmacies and the grid operate?",
|
|
204
|
+
sources: [],
|
|
205
|
+
reasoning: "With no help and no shops, each need depends on your group and your supplies for weeks or more. Then the long plan comes first.",
|
|
206
|
+
answers: [
|
|
207
|
+
{
|
|
208
|
+
label: "Yes",
|
|
209
|
+
next: "need",
|
|
210
|
+
society: "works"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
label: "In part",
|
|
214
|
+
next: "need",
|
|
215
|
+
society: "partly"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
label: "No",
|
|
219
|
+
next: "to-long",
|
|
220
|
+
society: "none"
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: "need",
|
|
226
|
+
kind: "question",
|
|
227
|
+
text: "Which need is short first? Use the section of the tab for the state of society.",
|
|
228
|
+
sources: [],
|
|
229
|
+
reasoning: "Do the needs by their danger. Safety comes in minutes, heat and water in hours and days, food in weeks.",
|
|
230
|
+
answers: [
|
|
231
|
+
{
|
|
232
|
+
label: "Safety of the people",
|
|
233
|
+
next: "to-security"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
label: "Heat, shelter or power",
|
|
237
|
+
next: "to-heat"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
label: "Water or a toilet",
|
|
241
|
+
next: "to-water"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
label: "Health or medicine",
|
|
245
|
+
next: "to-health"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
label: "Food",
|
|
249
|
+
next: "to-food"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
label: "Contact, money or trade",
|
|
253
|
+
next: "to-group"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
label: "A skill or a fact",
|
|
257
|
+
next: "to-appendices"
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
id: "to-72h",
|
|
263
|
+
kind: "goto",
|
|
264
|
+
text: "Go to the tab: the first 72 hours.",
|
|
265
|
+
tab: "first-72h"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
id: "to-hazards",
|
|
269
|
+
kind: "goto",
|
|
270
|
+
text: "Go to the page of the event in the hazards tab.",
|
|
271
|
+
tab: "hazards"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
id: "to-stay",
|
|
275
|
+
kind: "goto",
|
|
276
|
+
text: "Go to the tab: stay.",
|
|
277
|
+
tab: "stay"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
id: "to-go",
|
|
281
|
+
kind: "goto",
|
|
282
|
+
text: "Go to the tab: go.",
|
|
283
|
+
tab: "go"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
id: "to-long",
|
|
287
|
+
kind: "goto",
|
|
288
|
+
text: "Go to the tab: the long term.",
|
|
289
|
+
tab: "long-term"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
id: "to-security",
|
|
293
|
+
kind: "goto",
|
|
294
|
+
text: "Go to the tab: the safety of the people.",
|
|
295
|
+
tab: "security"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
id: "to-heat",
|
|
299
|
+
kind: "goto",
|
|
300
|
+
text: "Go to the tab: heat, shelter and power.",
|
|
301
|
+
tab: "heat"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
id: "to-water",
|
|
305
|
+
kind: "goto",
|
|
306
|
+
text: "Go to the tab: water and sanitation.",
|
|
307
|
+
tab: "water"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
id: "to-health",
|
|
311
|
+
kind: "goto",
|
|
312
|
+
text: "Go to the tab: health and medicine.",
|
|
313
|
+
tab: "health"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
id: "to-food",
|
|
317
|
+
kind: "goto",
|
|
318
|
+
text: "Go to the tab: food.",
|
|
319
|
+
tab: "food"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
id: "to-group",
|
|
323
|
+
kind: "goto",
|
|
324
|
+
text: "Go to the tab: contact, the group and trade.",
|
|
325
|
+
tab: "group"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
id: "to-appendices",
|
|
329
|
+
kind: "goto",
|
|
330
|
+
text: "Go to the appendices.",
|
|
331
|
+
tab: "appendices"
|
|
332
|
+
}
|
|
333
|
+
];
|
|
1
334
|
// src/data/sources.ts
|
|
2
335
|
/** The date of the last check of the sources against their pages. */
|
|
3
336
|
const CHECKED = "2026-11-21";
|
|
@@ -5851,6 +6184,8 @@ const NEEDS = [
|
|
|
5851
6184
|
"health.medicine",
|
|
5852
6185
|
"power.electric"
|
|
5853
6186
|
];
|
|
5854
|
-
|
|
6187
|
+
/** The tabs of the printed plan, in the sequence of the binder. The master chart sends the reader to them. */
|
|
6188
|
+
const TABS = tabsOf([...CASES, ...MORE_CASES]);
|
|
6189
|
+
export { AREAS, BUNDLES, BUNDLES_CHECKED, BUNDLE_LEVELS, CASES, CASE_STEPS, CHECKED, CUTS, CUT_STEPS, GAPS, MASTER, MEDIA_UNITS, MEDIUM_GAPS, MEDIUM_LOSSES, MORE_CASES, NEEDS, OPEN_CELLS, RULES, SOURCES, START_TAB, STEPS, TABS, TOPICS };
|
|
5855
6190
|
|
|
5856
6191
|
//# sourceMappingURL=index.js.map
|