@dra2020/district-analytics 10.5.1 → 10.5.2
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/cli.js +283941 -0
- package/dist/cli.js.map +1 -0
- package/dist/district-analytics.js +254 -219
- package/dist/district-analytics.js.map +1 -1
- package/package.json +15 -15
|
@@ -8,114 +8,41 @@
|
|
|
8
8
|
else
|
|
9
9
|
root["district-analytics"] = factory();
|
|
10
10
|
})(global, function() {
|
|
11
|
-
return /******/ (
|
|
12
|
-
/******/
|
|
13
|
-
/******/ var
|
|
14
|
-
/******/
|
|
15
|
-
/******/ // The require function
|
|
16
|
-
/******/ function __webpack_require__(moduleId) {
|
|
17
|
-
/******/
|
|
18
|
-
/******/ // Check if module is in cache
|
|
19
|
-
/******/ if(installedModules[moduleId]) {
|
|
20
|
-
/******/ return installedModules[moduleId].exports;
|
|
21
|
-
/******/ }
|
|
22
|
-
/******/ // Create a new module (and put it into the cache)
|
|
23
|
-
/******/ var module = installedModules[moduleId] = {
|
|
24
|
-
/******/ i: moduleId,
|
|
25
|
-
/******/ l: false,
|
|
26
|
-
/******/ exports: {}
|
|
27
|
-
/******/ };
|
|
28
|
-
/******/
|
|
29
|
-
/******/ // Execute the module function
|
|
30
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
-
/******/
|
|
32
|
-
/******/ // Flag the module as loaded
|
|
33
|
-
/******/ module.l = true;
|
|
34
|
-
/******/
|
|
35
|
-
/******/ // Return the exports of the module
|
|
36
|
-
/******/ return module.exports;
|
|
37
|
-
/******/ }
|
|
38
|
-
/******/
|
|
39
|
-
/******/
|
|
40
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
-
/******/ __webpack_require__.m = modules;
|
|
42
|
-
/******/
|
|
43
|
-
/******/ // expose the module cache
|
|
44
|
-
/******/ __webpack_require__.c = installedModules;
|
|
45
|
-
/******/
|
|
46
|
-
/******/ // define getter function for harmony exports
|
|
47
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
-
/******/ }
|
|
51
|
-
/******/ };
|
|
52
|
-
/******/
|
|
53
|
-
/******/ // define __esModule on exports
|
|
54
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
-
/******/ }
|
|
58
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
-
/******/ };
|
|
60
|
-
/******/
|
|
61
|
-
/******/ // create a fake namespace object
|
|
62
|
-
/******/ // mode & 1: value is a module id, require it
|
|
63
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
-
/******/ // mode & 4: return value when already ns object
|
|
65
|
-
/******/ // mode & 8|1: behave like require
|
|
66
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
-
/******/ if(mode & 8) return value;
|
|
69
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
-
/******/ var ns = Object.create(null);
|
|
71
|
-
/******/ __webpack_require__.r(ns);
|
|
72
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
-
/******/ return ns;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
-
/******/ __webpack_require__.n = function(module) {
|
|
79
|
-
/******/ var getter = module && module.__esModule ?
|
|
80
|
-
/******/ function getDefault() { return module['default']; } :
|
|
81
|
-
/******/ function getModuleExports() { return module; };
|
|
82
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
-
/******/ return getter;
|
|
84
|
-
/******/ };
|
|
85
|
-
/******/
|
|
86
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
-
/******/
|
|
89
|
-
/******/ // __webpack_public_path__
|
|
90
|
-
/******/ __webpack_require__.p = "";
|
|
91
|
-
/******/
|
|
92
|
-
/******/
|
|
93
|
-
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts");
|
|
95
|
-
/******/ })
|
|
96
|
-
/************************************************************************/
|
|
97
|
-
/******/ ({
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
98
14
|
|
|
99
15
|
/***/ "./src/_api.ts":
|
|
100
16
|
/*!*********************!*\
|
|
101
17
|
!*** ./src/_api.ts ***!
|
|
102
18
|
\*********************/
|
|
103
|
-
|
|
104
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
19
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
105
20
|
|
|
106
|
-
"use strict";
|
|
107
21
|
|
|
108
22
|
//
|
|
109
23
|
// THE NODE PACKAGE API
|
|
110
24
|
//
|
|
25
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
26
|
+
if (k2 === undefined) k2 = k;
|
|
27
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
28
|
+
}) : (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
o[k2] = m[k];
|
|
31
|
+
}));
|
|
32
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
33
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
34
|
+
}) : function(o, v) {
|
|
35
|
+
o["default"] = v;
|
|
36
|
+
});
|
|
111
37
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
112
38
|
if (mod && mod.__esModule) return mod;
|
|
113
39
|
var result = {};
|
|
114
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
115
|
-
result
|
|
40
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
116
42
|
return result;
|
|
117
43
|
};
|
|
118
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
45
|
+
exports.AnalyticsSession = void 0;
|
|
119
46
|
const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
|
|
120
47
|
const preprocess_1 = __webpack_require__(/*! ./preprocess */ "./src/preprocess.ts");
|
|
121
48
|
const analyze_1 = __webpack_require__(/*! ./analyze */ "./src/analyze.ts");
|
|
@@ -263,22 +190,33 @@ exports.AnalyticsSession = AnalyticsSession;
|
|
|
263
190
|
/*!**********************!*\
|
|
264
191
|
!*** ./src/_data.ts ***!
|
|
265
192
|
\**********************/
|
|
266
|
-
|
|
267
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
193
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
268
194
|
|
|
269
|
-
"use strict";
|
|
270
195
|
|
|
271
196
|
//
|
|
272
197
|
// DATA ABSTRACTION LAYER
|
|
273
198
|
//
|
|
199
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
200
|
+
if (k2 === undefined) k2 = k;
|
|
201
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
202
|
+
}) : (function(o, m, k, k2) {
|
|
203
|
+
if (k2 === undefined) k2 = k;
|
|
204
|
+
o[k2] = m[k];
|
|
205
|
+
}));
|
|
206
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
207
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
208
|
+
}) : function(o, v) {
|
|
209
|
+
o["default"] = v;
|
|
210
|
+
});
|
|
274
211
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
275
212
|
if (mod && mod.__esModule) return mod;
|
|
276
213
|
var result = {};
|
|
277
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
278
|
-
result
|
|
214
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
215
|
+
__setModuleDefault(result, mod);
|
|
279
216
|
return result;
|
|
280
217
|
};
|
|
281
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
218
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
219
|
+
exports.Graph = exports.invertPlan = exports.Plan = exports.State = exports.Counties = exports.Features = exports.Districts = void 0;
|
|
282
220
|
const G = __importStar(__webpack_require__(/*! @dra2020/dra-graph */ "@dra2020/dra-graph"));
|
|
283
221
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
284
222
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
@@ -1009,15 +947,14 @@ exports.Graph = Graph;
|
|
|
1009
947
|
/*!************************!*\
|
|
1010
948
|
!*** ./src/analyze.ts ***!
|
|
1011
949
|
\************************/
|
|
1012
|
-
|
|
1013
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
950
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1014
951
|
|
|
1015
|
-
"use strict";
|
|
1016
952
|
|
|
1017
953
|
//
|
|
1018
954
|
// ANALYZE A PLAN
|
|
1019
955
|
//
|
|
1020
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
956
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
957
|
+
exports.doDeriveSecondaryTests = exports.doAnalyzePlan = exports.doAnalyzeDistricts = void 0;
|
|
1021
958
|
const valid_1 = __webpack_require__(/*! ./valid */ "./src/valid.ts");
|
|
1022
959
|
const equal_1 = __webpack_require__(/*! ./equal */ "./src/equal.ts");
|
|
1023
960
|
const cohesive_1 = __webpack_require__(/*! ./cohesive */ "./src/cohesive.ts");
|
|
@@ -1065,22 +1002,33 @@ exports.doDeriveSecondaryTests = doDeriveSecondaryTests;
|
|
|
1065
1002
|
/*!*************************!*\
|
|
1066
1003
|
!*** ./src/cohesive.ts ***!
|
|
1067
1004
|
\*************************/
|
|
1068
|
-
|
|
1069
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1005
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1070
1006
|
|
|
1071
|
-
"use strict";
|
|
1072
1007
|
|
|
1073
1008
|
//
|
|
1074
1009
|
// SPLITTING of counties & districts
|
|
1075
1010
|
//
|
|
1011
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1012
|
+
if (k2 === undefined) k2 = k;
|
|
1013
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1014
|
+
}) : (function(o, m, k, k2) {
|
|
1015
|
+
if (k2 === undefined) k2 = k;
|
|
1016
|
+
o[k2] = m[k];
|
|
1017
|
+
}));
|
|
1018
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1019
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1020
|
+
}) : function(o, v) {
|
|
1021
|
+
o["default"] = v;
|
|
1022
|
+
});
|
|
1076
1023
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1077
1024
|
if (mod && mod.__esModule) return mod;
|
|
1078
1025
|
var result = {};
|
|
1079
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1080
|
-
result
|
|
1026
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1027
|
+
__setModuleDefault(result, mod);
|
|
1081
1028
|
return result;
|
|
1082
1029
|
};
|
|
1083
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1030
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1031
|
+
exports.doFindSplitVTDs = exports.doFindCountiesSplitUnexpectedly = void 0;
|
|
1084
1032
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1085
1033
|
// NOTE - The active code is below the long multi-line section to be deleted.
|
|
1086
1034
|
// ANALYZE SIMPLE COUNTY & VTD SPLITTING
|
|
@@ -1236,22 +1184,33 @@ exports.doFindSplitVTDs = doFindSplitVTDs;
|
|
|
1236
1184
|
/*!************************!*\
|
|
1237
1185
|
!*** ./src/compact.ts ***!
|
|
1238
1186
|
\************************/
|
|
1239
|
-
|
|
1240
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1187
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1241
1188
|
|
|
1242
|
-
"use strict";
|
|
1243
1189
|
|
|
1244
1190
|
//
|
|
1245
1191
|
// COMPACT
|
|
1246
1192
|
//
|
|
1193
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1194
|
+
if (k2 === undefined) k2 = k;
|
|
1195
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1196
|
+
}) : (function(o, m, k, k2) {
|
|
1197
|
+
if (k2 === undefined) k2 = k;
|
|
1198
|
+
o[k2] = m[k];
|
|
1199
|
+
}));
|
|
1200
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1201
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1202
|
+
}) : function(o, v) {
|
|
1203
|
+
o["default"] = v;
|
|
1204
|
+
});
|
|
1247
1205
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1248
1206
|
if (mod && mod.__esModule) return mod;
|
|
1249
1207
|
var result = {};
|
|
1250
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1251
|
-
result
|
|
1208
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1209
|
+
__setModuleDefault(result, mod);
|
|
1252
1210
|
return result;
|
|
1253
1211
|
};
|
|
1254
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1212
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1213
|
+
exports.scoreKIWYSICompactness = exports.extractDistrictProperties = void 0;
|
|
1255
1214
|
const Poly = __importStar(__webpack_require__(/*! @dra2020/poly */ "@dra2020/poly"));
|
|
1256
1215
|
const Compactness = __importStar(__webpack_require__(/*! @dra2020/compactness */ "@dra2020/compactness"));
|
|
1257
1216
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
@@ -1348,15 +1307,14 @@ exports.scoreKIWYSICompactness = scoreKIWYSICompactness;
|
|
|
1348
1307
|
/*!**********************!*\
|
|
1349
1308
|
!*** ./src/equal.ts ***!
|
|
1350
1309
|
\**********************/
|
|
1351
|
-
|
|
1352
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1310
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1353
1311
|
|
|
1354
|
-
"use strict";
|
|
1355
1312
|
|
|
1356
1313
|
//
|
|
1357
1314
|
// EQUAL POPULATION
|
|
1358
1315
|
//
|
|
1359
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1316
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1317
|
+
exports.doHasEqualPopulations = void 0;
|
|
1360
1318
|
// NOTE - This validity check is *derived* and depends on population deviation %
|
|
1361
1319
|
// being computed (above) and normalized in test log & scorecard generation.
|
|
1362
1320
|
function doHasEqualPopulations(s, bLog = false) {
|
|
@@ -1393,21 +1351,26 @@ exports.doHasEqualPopulations = doHasEqualPopulations;
|
|
|
1393
1351
|
/*!**********************!*\
|
|
1394
1352
|
!*** ./src/index.ts ***!
|
|
1395
1353
|
\**********************/
|
|
1396
|
-
|
|
1397
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1354
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1398
1355
|
|
|
1399
|
-
"use strict";
|
|
1400
1356
|
|
|
1401
1357
|
//
|
|
1402
1358
|
// THE DISTRICT-ANALYTICS NODE PACKAGE API
|
|
1403
1359
|
//
|
|
1404
|
-
function
|
|
1405
|
-
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1360
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1361
|
+
if (k2 === undefined) k2 = k;
|
|
1362
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1363
|
+
}) : (function(o, m, k, k2) {
|
|
1364
|
+
if (k2 === undefined) k2 = k;
|
|
1365
|
+
o[k2] = m[k];
|
|
1366
|
+
}));
|
|
1367
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
1368
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1369
|
+
};
|
|
1370
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1371
|
+
__exportStar(__webpack_require__(/*! ./_api */ "./src/_api.ts"), exports);
|
|
1372
|
+
__exportStar(__webpack_require__(/*! ./results */ "./src/results.ts"), exports);
|
|
1373
|
+
__exportStar(__webpack_require__(/*! ./types */ "./src/types.ts"), exports);
|
|
1411
1374
|
|
|
1412
1375
|
|
|
1413
1376
|
/***/ }),
|
|
@@ -1416,25 +1379,36 @@ __export(__webpack_require__(/*! ./types */ "./src/types.ts"));
|
|
|
1416
1379
|
/*!*************************!*\
|
|
1417
1380
|
!*** ./src/minority.ts ***!
|
|
1418
1381
|
\*************************/
|
|
1419
|
-
|
|
1420
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1382
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1421
1383
|
|
|
1422
|
-
"use strict";
|
|
1423
1384
|
|
|
1424
1385
|
//
|
|
1425
1386
|
// PROTECTS MINORITIES
|
|
1426
1387
|
//
|
|
1388
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1389
|
+
if (k2 === undefined) k2 = k;
|
|
1390
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1391
|
+
}) : (function(o, m, k, k2) {
|
|
1392
|
+
if (k2 === undefined) k2 = k;
|
|
1393
|
+
o[k2] = m[k];
|
|
1394
|
+
}));
|
|
1395
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1396
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1397
|
+
}) : function(o, v) {
|
|
1398
|
+
o["default"] = v;
|
|
1399
|
+
});
|
|
1427
1400
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1428
1401
|
if (mod && mod.__esModule) return mod;
|
|
1429
1402
|
var result = {};
|
|
1430
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1431
|
-
result
|
|
1403
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1404
|
+
__setModuleDefault(result, mod);
|
|
1432
1405
|
return result;
|
|
1433
1406
|
};
|
|
1434
1407
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1435
1408
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1436
1409
|
};
|
|
1437
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1410
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1411
|
+
exports.doAnalyzeRacialPolarization = exports.getVRASection5 = exports.getMajorityMinority = void 0;
|
|
1438
1412
|
const RPV = __importStar(__webpack_require__(/*! @dra2020/racial-voting */ "@dra2020/racial-voting"));
|
|
1439
1413
|
const majority_minority_json_1 = __importDefault(__webpack_require__(/*! ../static/majority-minority.json */ "./static/majority-minority.json"));
|
|
1440
1414
|
const vra5_preclearance_json_1 = __importDefault(__webpack_require__(/*! ../static/vra5-preclearance.json */ "./static/vra5-preclearance.json"));
|
|
@@ -1475,20 +1449,17 @@ exports.doAnalyzeRacialPolarization = doAnalyzeRacialPolarization;
|
|
|
1475
1449
|
/*!**************************!*\
|
|
1476
1450
|
!*** ./src/political.ts ***!
|
|
1477
1451
|
\**************************/
|
|
1478
|
-
|
|
1479
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1452
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1480
1453
|
|
|
1481
|
-
"use strict";
|
|
1482
1454
|
|
|
1483
1455
|
//
|
|
1484
1456
|
// FAIR/PROPORTIONAL
|
|
1485
1457
|
//
|
|
1486
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1487
|
-
|
|
1488
|
-
const assert_1 = __webpack_require__(/*! assert */ "assert");
|
|
1458
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1459
|
+
exports.fptpWin = void 0;
|
|
1489
1460
|
function fptpWin(demPct) {
|
|
1490
1461
|
// Vote shares should be fractions in the range [0.0 – 1.0]
|
|
1491
|
-
|
|
1462
|
+
//assert((demPct <= 1.0) && (demPct >= 0.0));
|
|
1492
1463
|
return ((demPct > 0.5) ? 1 : 0);
|
|
1493
1464
|
}
|
|
1494
1465
|
exports.fptpWin = fptpWin;
|
|
@@ -1500,22 +1471,33 @@ exports.fptpWin = fptpWin;
|
|
|
1500
1471
|
/*!***************************!*\
|
|
1501
1472
|
!*** ./src/preprocess.ts ***!
|
|
1502
1473
|
\***************************/
|
|
1503
|
-
|
|
1504
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1474
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1505
1475
|
|
|
1506
|
-
"use strict";
|
|
1507
1476
|
|
|
1508
1477
|
//
|
|
1509
1478
|
// PREPROCESS DATA
|
|
1510
1479
|
//
|
|
1480
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1481
|
+
if (k2 === undefined) k2 = k;
|
|
1482
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1483
|
+
}) : (function(o, m, k, k2) {
|
|
1484
|
+
if (k2 === undefined) k2 = k;
|
|
1485
|
+
o[k2] = m[k];
|
|
1486
|
+
}));
|
|
1487
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1488
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1489
|
+
}) : function(o, v) {
|
|
1490
|
+
o["default"] = v;
|
|
1491
|
+
});
|
|
1511
1492
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1512
1493
|
if (mod && mod.__esModule) return mod;
|
|
1513
1494
|
var result = {};
|
|
1514
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1515
|
-
result
|
|
1495
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1496
|
+
__setModuleDefault(result, mod);
|
|
1516
1497
|
return result;
|
|
1517
1498
|
};
|
|
1518
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1499
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1500
|
+
exports.doPreprocessData = void 0;
|
|
1519
1501
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1520
1502
|
// NOTE - Do preprocessing separately, so the constructor returns quickly.
|
|
1521
1503
|
function doPreprocessData(s, bLog = false) {
|
|
@@ -1671,22 +1653,33 @@ function doPreprocessCensus(s, bLog = false) {
|
|
|
1671
1653
|
/*!************************!*\
|
|
1672
1654
|
!*** ./src/results.ts ***!
|
|
1673
1655
|
\************************/
|
|
1674
|
-
|
|
1675
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1656
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1676
1657
|
|
|
1677
|
-
"use strict";
|
|
1678
1658
|
|
|
1679
1659
|
//
|
|
1680
1660
|
// TEMPLATES FOR UNFORMATTED ANALYTICS RESULTS
|
|
1681
1661
|
//
|
|
1662
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1663
|
+
if (k2 === undefined) k2 = k;
|
|
1664
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1665
|
+
}) : (function(o, m, k, k2) {
|
|
1666
|
+
if (k2 === undefined) k2 = k;
|
|
1667
|
+
o[k2] = m[k];
|
|
1668
|
+
}));
|
|
1669
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1670
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1671
|
+
}) : function(o, v) {
|
|
1672
|
+
o["default"] = v;
|
|
1673
|
+
});
|
|
1682
1674
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1683
1675
|
if (mod && mod.__esModule) return mod;
|
|
1684
1676
|
var result = {};
|
|
1685
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1686
|
-
result
|
|
1677
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1678
|
+
__setModuleDefault(result, mod);
|
|
1687
1679
|
return result;
|
|
1688
1680
|
};
|
|
1689
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1681
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1682
|
+
exports.doAnalyzePostProcessing = exports.prepareDistrictStatistics = exports.prepareRequirementsChecklist = void 0;
|
|
1690
1683
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1691
1684
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
1692
1685
|
const analyze_1 = __webpack_require__(/*! ./analyze */ "./src/analyze.ts");
|
|
@@ -1846,22 +1839,33 @@ exports.doAnalyzePostProcessing = doAnalyzePostProcessing;
|
|
|
1846
1839
|
/*!**********************!*\
|
|
1847
1840
|
!*** ./src/score.ts ***!
|
|
1848
1841
|
\**********************/
|
|
1849
|
-
|
|
1850
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1842
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1851
1843
|
|
|
1852
|
-
"use strict";
|
|
1853
1844
|
|
|
1854
1845
|
//
|
|
1855
1846
|
// SCORING
|
|
1856
1847
|
//
|
|
1848
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1849
|
+
if (k2 === undefined) k2 = k;
|
|
1850
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1851
|
+
}) : (function(o, m, k, k2) {
|
|
1852
|
+
if (k2 === undefined) k2 = k;
|
|
1853
|
+
o[k2] = m[k];
|
|
1854
|
+
}));
|
|
1855
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1856
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1857
|
+
}) : function(o, v) {
|
|
1858
|
+
o["default"] = v;
|
|
1859
|
+
});
|
|
1857
1860
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1858
1861
|
if (mod && mod.__esModule) return mod;
|
|
1859
1862
|
var result = {};
|
|
1860
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1861
|
-
result
|
|
1863
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1864
|
+
__setModuleDefault(result, mod);
|
|
1862
1865
|
return result;
|
|
1863
1866
|
};
|
|
1864
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1867
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1868
|
+
exports.scorePlan = exports.getStatewideDemographics = exports.profilePlan = void 0;
|
|
1865
1869
|
const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
|
|
1866
1870
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1867
1871
|
const M = __importStar(__webpack_require__(/*! ./minority */ "./src/minority.ts"));
|
|
@@ -2029,15 +2033,14 @@ exports.scorePlan = scorePlan;
|
|
|
2029
2033
|
/*!*************************!*\
|
|
2030
2034
|
!*** ./src/settings.ts ***!
|
|
2031
2035
|
\*************************/
|
|
2032
|
-
|
|
2033
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2036
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2034
2037
|
|
|
2035
|
-
"use strict";
|
|
2036
2038
|
|
|
2037
2039
|
//
|
|
2038
2040
|
// GLOBAL CONSTANTS
|
|
2039
2041
|
//
|
|
2040
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2042
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2043
|
+
exports.SHAPES = exports.DISTRICT_SPLITTING_WEIGHT = exports.COUNTY_SPLITTING_WEIGHT = exports.EQUAL_TOLERANCE = exports.OUT_OF_STATE = exports.NUMBER_OF_ITEMS_TO_REPORT = exports.NOT_ASSIGNED = exports.NORMALIZED_RANGE = exports.PRECISION = void 0;
|
|
2041
2044
|
// Keep four decimal places for fractions [0–1], i.e.,
|
|
2042
2045
|
// keep two decimal places for %'s [0–100].
|
|
2043
2046
|
exports.PRECISION = 4;
|
|
@@ -2065,17 +2068,16 @@ exports.SHAPES = "2010 VTD shapes";
|
|
|
2065
2068
|
/*!**********************!*\
|
|
2066
2069
|
!*** ./src/types.ts ***!
|
|
2067
2070
|
\**********************/
|
|
2068
|
-
|
|
2069
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2071
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2070
2072
|
|
|
2071
|
-
"use strict";
|
|
2072
2073
|
|
|
2073
2074
|
//
|
|
2074
2075
|
// TYPE DEFINITIONS
|
|
2075
2076
|
//
|
|
2076
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2077
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2078
|
+
exports.estSeatProbability = void 0;
|
|
2077
2079
|
var dra_score_1 = __webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score");
|
|
2078
|
-
exports
|
|
2080
|
+
Object.defineProperty(exports, "estSeatProbability", ({ enumerable: true, get: function () { return dra_score_1.estSeatProbability; } }));
|
|
2079
2081
|
// END
|
|
2080
2082
|
|
|
2081
2083
|
|
|
@@ -2085,22 +2087,33 @@ exports.estSeatProbability = dra_score_1.estSeatProbability;
|
|
|
2085
2087
|
/*!**********************!*\
|
|
2086
2088
|
!*** ./src/utils.ts ***!
|
|
2087
2089
|
\**********************/
|
|
2088
|
-
|
|
2089
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2090
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2090
2091
|
|
|
2091
|
-
"use strict";
|
|
2092
2092
|
|
|
2093
2093
|
//
|
|
2094
2094
|
// UTILITIES
|
|
2095
2095
|
//
|
|
2096
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2097
|
+
if (k2 === undefined) k2 = k;
|
|
2098
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2099
|
+
}) : (function(o, m, k, k2) {
|
|
2100
|
+
if (k2 === undefined) k2 = k;
|
|
2101
|
+
o[k2] = m[k];
|
|
2102
|
+
}));
|
|
2103
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2104
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2105
|
+
}) : function(o, v) {
|
|
2106
|
+
o["default"] = v;
|
|
2107
|
+
});
|
|
2096
2108
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
2097
2109
|
if (mod && mod.__esModule) return mod;
|
|
2098
2110
|
var result = {};
|
|
2099
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
2100
|
-
result
|
|
2111
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2112
|
+
__setModuleDefault(result, mod);
|
|
2101
2113
|
return result;
|
|
2102
2114
|
};
|
|
2103
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2115
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2116
|
+
exports.depthof = exports.deepCopy = exports.shallowCopy = exports.countEnumValues = exports.objectContains = exports.arrayContains = exports.getSelectObjectKeys = exports.getNumericObjectKeys = exports.getObjectKeys = exports.isArrayEmpty = exports.isSetEmpty = exports.isObjectEmpty = exports.keyExists = exports.andArray = exports.initArray = exports.maxArray = exports.minArray = exports.avgArray = exports.sumArray = exports.trim = exports.isUninhabited = exports.isWaterOnly = exports.parseGeoID = exports.getDistrict = exports.isOutOfState = exports.isInState = void 0;
|
|
2104
2117
|
const DT = __importStar(__webpack_require__(/*! @dra2020/dra-types */ "@dra2020/dra-types"));
|
|
2105
2118
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
2106
2119
|
// PLAN HELPERS
|
|
@@ -2319,7 +2332,7 @@ export function mapBooleanToTriState(bool: boolean): T.TriState
|
|
|
2319
2332
|
}
|
|
2320
2333
|
*/
|
|
2321
2334
|
var util_1 = __webpack_require__(/*! @dra2020/util */ "@dra2020/util");
|
|
2322
|
-
exports
|
|
2335
|
+
Object.defineProperty(exports, "depthof", ({ enumerable: true, get: function () { return util_1.depthof; } }));
|
|
2323
2336
|
|
|
2324
2337
|
|
|
2325
2338
|
/***/ }),
|
|
@@ -2328,22 +2341,33 @@ exports.depthof = util_1.depthof;
|
|
|
2328
2341
|
/*!**********************!*\
|
|
2329
2342
|
!*** ./src/valid.ts ***!
|
|
2330
2343
|
\**********************/
|
|
2331
|
-
|
|
2332
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2344
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2333
2345
|
|
|
2334
|
-
"use strict";
|
|
2335
2346
|
|
|
2336
2347
|
//
|
|
2337
2348
|
// MAP/PLAN VALIDATIONS
|
|
2338
2349
|
//
|
|
2350
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2351
|
+
if (k2 === undefined) k2 = k;
|
|
2352
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2353
|
+
}) : (function(o, m, k, k2) {
|
|
2354
|
+
if (k2 === undefined) k2 = k;
|
|
2355
|
+
o[k2] = m[k];
|
|
2356
|
+
}));
|
|
2357
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2358
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2359
|
+
}) : function(o, v) {
|
|
2360
|
+
o["default"] = v;
|
|
2361
|
+
});
|
|
2339
2362
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
2340
2363
|
if (mod && mod.__esModule) return mod;
|
|
2341
2364
|
var result = {};
|
|
2342
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
2343
|
-
result
|
|
2365
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2366
|
+
__setModuleDefault(result, mod);
|
|
2344
2367
|
return result;
|
|
2345
2368
|
};
|
|
2346
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2369
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2370
|
+
exports.doIsFreeOfHoles = exports.doIsContiguous = exports.doIsComplete = void 0;
|
|
2347
2371
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
2348
2372
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
2349
2373
|
//
|
|
@@ -2509,8 +2533,7 @@ exports.doIsFreeOfHoles = doIsFreeOfHoles;
|
|
|
2509
2533
|
/*!***************************************!*\
|
|
2510
2534
|
!*** ./static/majority-minority.json ***!
|
|
2511
2535
|
\***************************************/
|
|
2512
|
-
|
|
2513
|
-
/***/ (function(module) {
|
|
2536
|
+
/***/ ((module) => {
|
|
2514
2537
|
|
|
2515
2538
|
module.exports = JSON.parse("{\"AL\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":[]},\"AK\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"AZ\":{\"Black\":[],\"Hispanic\":[2,4,7],\"Pacific\":[]},\"AR\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"CA\":{\"Black\":[13,37,43],\"Hispanic\":[17,18,20,21,28,31,32,34,35,38,39,43,45,47,51],\"Pacific\":[12,13,14,15,17,18,19,27,34,39,45,47,52]},\"CO\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"CT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"DC\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"DE\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"FL\":{\"Black\":[5,20,24],\"Hispanic\":[18,21,25],\"Pacific\":[]},\"GA\":{\"Black\":[2,4,5,13],\"Hispanic\":[],\"Pacific\":[]},\"HI\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[2]},\"ID\":{\"Black\":[],\"Hispanic\":[1],\"Pacific\":[]},\"IL\":{\"Black\":[1,2,7],\"Hispanic\":[4],\"Pacific\":[]},\"IN\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":[]},\"IA\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"KS\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"KY\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"LA\":{\"Black\":[2],\"Hispanic\":[],\"Pacific\":[]},\"ME\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"MD\":{\"Black\":[4,7],\"Hispanic\":[],\"Pacific\":[]},\"MA\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"MI\":{\"Black\":[13,14],\"Hispanic\":[],\"Pacific\":[]},\"MN\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"MS\":{\"Black\":[2],\"Hispanic\":[],\"Pacific\":[]},\"MO\":{\"Black\":[1,5],\"Hispanic\":[],\"Pacific\":[]},\"MT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NE\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NV\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NH\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"NJ\":{\"Black\":[10,12],\"Hispanic\":[13],\"Pacific\":[6]},\"NM\":{\"Black\":[],\"Hispanic\":[2,13],\"Pacific\":[]},\"NY\":{\"Black\":[5,8,9,13],\"Hispanic\":[12,16],\"Pacific\":[6,7,10]},\"NC\":{\"Black\":[1,12],\"Hispanic\":[],\"Pacific\":[]},\"ND\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"OH\":{\"Black\":[3,11],\"Hispanic\":[],\"Pacific\":[]},\"OK\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"OR\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"PA\":{\"Black\":[2],\"Hispanic\":[],\"Pacific\":[]},\"PR\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"RI\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"SC\":{\"Black\":[6],\"Hispanic\":[],\"Pacific\":[]},\"SD\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"TN\":{\"Black\":[9],\"Hispanic\":[],\"Pacific\":[]},\"TX\":{\"Black\":[9,18,33],\"Hispanic\":[15,16,19,20,23,27,28,29,32],\"Pacific\":[]},\"UT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"VT\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"VA\":{\"Black\":[3],\"Hispanic\":[],\"Pacific\":[]},\"WA\":{\"Black\":[],\"Hispanic\":[3],\"Pacific\":[9]},\"WV\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]},\"WI\":{\"Black\":[4],\"Hispanic\":[],\"Pacific\":[]},\"WY\":{\"Black\":[],\"Hispanic\":[],\"Pacific\":[]}}");
|
|
2516
2539
|
|
|
@@ -2520,8 +2543,7 @@ module.exports = JSON.parse("{\"AL\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":
|
|
|
2520
2543
|
/*!***************************************!*\
|
|
2521
2544
|
!*** ./static/vra5-preclearance.json ***!
|
|
2522
2545
|
\***************************************/
|
|
2523
|
-
|
|
2524
|
-
/***/ (function(module) {
|
|
2546
|
+
/***/ ((module) => {
|
|
2525
2547
|
|
|
2526
2548
|
module.exports = JSON.parse("{\"AL\":\"all\",\"AK\":\"all\",\"AZ\":\"all\",\"CA\":\"parts\",\"FL\":\"parts\",\"GA\":\"all\",\"LA\":\"all\",\"MI\":\"parts\",\"MS\":\"all\",\"NY\":\"parts\",\"NC\":\"parts\",\"SC\":\"all\",\"SD\":\"parts\",\"TX\":\"all\",\"VA\":\"all\"}");
|
|
2527
2549
|
|
|
@@ -2531,10 +2553,9 @@ module.exports = JSON.parse("{\"AL\":\"all\",\"AK\":\"all\",\"AZ\":\"all\",\"CA\
|
|
|
2531
2553
|
/*!***************************************!*\
|
|
2532
2554
|
!*** external "@dra2020/compactness" ***!
|
|
2533
2555
|
\***************************************/
|
|
2534
|
-
|
|
2535
|
-
/***/ (function(module, exports) {
|
|
2556
|
+
/***/ ((module) => {
|
|
2536
2557
|
|
|
2537
|
-
module.exports = require("@dra2020/compactness")
|
|
2558
|
+
module.exports = require("@dra2020/compactness");;
|
|
2538
2559
|
|
|
2539
2560
|
/***/ }),
|
|
2540
2561
|
|
|
@@ -2542,10 +2563,9 @@ module.exports = require("@dra2020/compactness");
|
|
|
2542
2563
|
/*!*************************************!*\
|
|
2543
2564
|
!*** external "@dra2020/dra-graph" ***!
|
|
2544
2565
|
\*************************************/
|
|
2545
|
-
|
|
2546
|
-
/***/ (function(module, exports) {
|
|
2566
|
+
/***/ ((module) => {
|
|
2547
2567
|
|
|
2548
|
-
module.exports = require("@dra2020/dra-graph")
|
|
2568
|
+
module.exports = require("@dra2020/dra-graph");;
|
|
2549
2569
|
|
|
2550
2570
|
/***/ }),
|
|
2551
2571
|
|
|
@@ -2553,10 +2573,9 @@ module.exports = require("@dra2020/dra-graph");
|
|
|
2553
2573
|
/*!*************************************!*\
|
|
2554
2574
|
!*** external "@dra2020/dra-score" ***!
|
|
2555
2575
|
\*************************************/
|
|
2556
|
-
|
|
2557
|
-
/***/ (function(module, exports) {
|
|
2576
|
+
/***/ ((module) => {
|
|
2558
2577
|
|
|
2559
|
-
module.exports = require("@dra2020/dra-score")
|
|
2578
|
+
module.exports = require("@dra2020/dra-score");;
|
|
2560
2579
|
|
|
2561
2580
|
/***/ }),
|
|
2562
2581
|
|
|
@@ -2564,10 +2583,9 @@ module.exports = require("@dra2020/dra-score");
|
|
|
2564
2583
|
/*!*************************************!*\
|
|
2565
2584
|
!*** external "@dra2020/dra-types" ***!
|
|
2566
2585
|
\*************************************/
|
|
2567
|
-
|
|
2568
|
-
/***/ (function(module, exports) {
|
|
2586
|
+
/***/ ((module) => {
|
|
2569
2587
|
|
|
2570
|
-
module.exports = require("@dra2020/dra-types")
|
|
2588
|
+
module.exports = require("@dra2020/dra-types");;
|
|
2571
2589
|
|
|
2572
2590
|
/***/ }),
|
|
2573
2591
|
|
|
@@ -2575,10 +2593,9 @@ module.exports = require("@dra2020/dra-types");
|
|
|
2575
2593
|
/*!********************************!*\
|
|
2576
2594
|
!*** external "@dra2020/poly" ***!
|
|
2577
2595
|
\********************************/
|
|
2578
|
-
|
|
2579
|
-
/***/ (function(module, exports) {
|
|
2596
|
+
/***/ ((module) => {
|
|
2580
2597
|
|
|
2581
|
-
module.exports = require("@dra2020/poly")
|
|
2598
|
+
module.exports = require("@dra2020/poly");;
|
|
2582
2599
|
|
|
2583
2600
|
/***/ }),
|
|
2584
2601
|
|
|
@@ -2586,10 +2603,9 @@ module.exports = require("@dra2020/poly");
|
|
|
2586
2603
|
/*!*****************************************!*\
|
|
2587
2604
|
!*** external "@dra2020/racial-voting" ***!
|
|
2588
2605
|
\*****************************************/
|
|
2589
|
-
|
|
2590
|
-
/***/ (function(module, exports) {
|
|
2606
|
+
/***/ ((module) => {
|
|
2591
2607
|
|
|
2592
|
-
module.exports = require("@dra2020/racial-voting")
|
|
2608
|
+
module.exports = require("@dra2020/racial-voting");;
|
|
2593
2609
|
|
|
2594
2610
|
/***/ }),
|
|
2595
2611
|
|
|
@@ -2597,24 +2613,43 @@ module.exports = require("@dra2020/racial-voting");
|
|
|
2597
2613
|
/*!********************************!*\
|
|
2598
2614
|
!*** external "@dra2020/util" ***!
|
|
2599
2615
|
\********************************/
|
|
2600
|
-
|
|
2601
|
-
/***/ (function(module, exports) {
|
|
2602
|
-
|
|
2603
|
-
module.exports = require("@dra2020/util");
|
|
2604
|
-
|
|
2605
|
-
/***/ }),
|
|
2616
|
+
/***/ ((module) => {
|
|
2606
2617
|
|
|
2607
|
-
|
|
2608
|
-
/*!*************************!*\
|
|
2609
|
-
!*** external "assert" ***!
|
|
2610
|
-
\*************************/
|
|
2611
|
-
/*! no static exports found */
|
|
2612
|
-
/***/ (function(module, exports) {
|
|
2613
|
-
|
|
2614
|
-
module.exports = require("assert");
|
|
2618
|
+
module.exports = require("@dra2020/util");;
|
|
2615
2619
|
|
|
2616
2620
|
/***/ })
|
|
2617
2621
|
|
|
2618
|
-
/******/
|
|
2622
|
+
/******/ });
|
|
2623
|
+
/************************************************************************/
|
|
2624
|
+
/******/ // The module cache
|
|
2625
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2626
|
+
/******/
|
|
2627
|
+
/******/ // The require function
|
|
2628
|
+
/******/ function __webpack_require__(moduleId) {
|
|
2629
|
+
/******/ // Check if module is in cache
|
|
2630
|
+
/******/ if(__webpack_module_cache__[moduleId]) {
|
|
2631
|
+
/******/ return __webpack_module_cache__[moduleId].exports;
|
|
2632
|
+
/******/ }
|
|
2633
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2634
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2635
|
+
/******/ // no module.id needed
|
|
2636
|
+
/******/ // no module.loaded needed
|
|
2637
|
+
/******/ exports: {}
|
|
2638
|
+
/******/ };
|
|
2639
|
+
/******/
|
|
2640
|
+
/******/ // Execute the module function
|
|
2641
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
2642
|
+
/******/
|
|
2643
|
+
/******/ // Return the exports of the module
|
|
2644
|
+
/******/ return module.exports;
|
|
2645
|
+
/******/ }
|
|
2646
|
+
/******/
|
|
2647
|
+
/************************************************************************/
|
|
2648
|
+
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
|
2649
|
+
/******/ // startup
|
|
2650
|
+
/******/ // Load entry module and return exports
|
|
2651
|
+
/******/ return __webpack_require__("./src/index.ts");
|
|
2652
|
+
/******/ })()
|
|
2653
|
+
;
|
|
2619
2654
|
});
|
|
2620
2655
|
//# sourceMappingURL=district-analytics.js.map
|