@dra2020/district-analytics 11.0.1 → 11.0.4
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/district-analytics.js +264 -210
- package/dist/district-analytics.js.map +1 -1
- package/package.json +8 -8
|
@@ -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 Poly = __importStar(__webpack_require__(/*! @dra2020/poly */ "@dra2020/poly"));
|
|
120
47
|
const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
|
|
121
48
|
const preprocess_1 = __webpack_require__(/*! ./preprocess */ "./src/preprocess.ts");
|
|
@@ -128,17 +55,23 @@ const D = __importStar(__webpack_require__(/*! ./_data */ "./src/_data.ts"));
|
|
|
128
55
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
129
56
|
class AnalyticsSession {
|
|
130
57
|
constructor(SessionRequest) {
|
|
58
|
+
this.legislativeDistricts = false; // 2020
|
|
131
59
|
this.config = {};
|
|
132
60
|
this.bOneTimeProcessingDone = false;
|
|
133
61
|
this.bPlanAnalyzed = false;
|
|
134
62
|
this.bPostProcessingDone = false;
|
|
135
63
|
this.tests = {};
|
|
136
64
|
this.title = SessionRequest['title'];
|
|
137
|
-
// 2020 - Set the CD / LD toggle. Use the PlanType, if given; otherwise the
|
|
138
|
-
// legacy LD toggle. Use the LD population deviation threshold for anything
|
|
139
|
-
// that's not CD.
|
|
140
|
-
this.legislativeDistricts = (SessionRequest['planType'] !== undefined) ? (SessionRequest['planType'] == 'congress') : SessionRequest['legislativeDistricts'];
|
|
141
65
|
this.config = this.processConfig(SessionRequest['config']);
|
|
66
|
+
// 2020 - Set the CD / LD toggle:
|
|
67
|
+
// * If 2020, use the PlanType, if given.
|
|
68
|
+
// * If 2020, use the legacy LD toggle, if given.
|
|
69
|
+
// * Otherwise assume CD's.
|
|
70
|
+
// * Use the LD population deviation threshold for districts that are not CD's.
|
|
71
|
+
if ((this.config.cycle == 2020) && (SessionRequest['planType'] !== undefined))
|
|
72
|
+
this.legislativeDistricts = (SessionRequest['planType'] == 'congress');
|
|
73
|
+
else if ((this.config.cycle == 2010) && (SessionRequest['legislativeDistricts'] !== undefined))
|
|
74
|
+
this.legislativeDistricts = SessionRequest['legislativeDistricts'];
|
|
142
75
|
this.state = new D.State(this, SessionRequest['stateXX'], SessionRequest['nDistricts']);
|
|
143
76
|
this.counties = new D.Counties(this, SessionRequest['counties']);
|
|
144
77
|
this.graph = new D.Graph(this, SessionRequest['graph']);
|
|
@@ -155,7 +88,7 @@ class AnalyticsSession {
|
|
|
155
88
|
}
|
|
156
89
|
// DEBUG
|
|
157
90
|
console.log("Cycle = ", config['cycle']);
|
|
158
|
-
console.log("Shapes = ",
|
|
91
|
+
console.log("Shapes = ", config['datasets']["SHAPES" /* SHAPES */], ": ", config['descriptions']['SHAPES']);
|
|
159
92
|
return config;
|
|
160
93
|
}
|
|
161
94
|
// Using the the data in the analytics session, calculate all the
|
|
@@ -272,22 +205,33 @@ exports.AnalyticsSession = AnalyticsSession;
|
|
|
272
205
|
/*!**********************!*\
|
|
273
206
|
!*** ./src/_data.ts ***!
|
|
274
207
|
\**********************/
|
|
275
|
-
|
|
276
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
208
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
277
209
|
|
|
278
|
-
"use strict";
|
|
279
210
|
|
|
280
211
|
//
|
|
281
212
|
// DATA ABSTRACTION LAYER
|
|
282
213
|
//
|
|
214
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
215
|
+
if (k2 === undefined) k2 = k;
|
|
216
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
217
|
+
}) : (function(o, m, k, k2) {
|
|
218
|
+
if (k2 === undefined) k2 = k;
|
|
219
|
+
o[k2] = m[k];
|
|
220
|
+
}));
|
|
221
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
222
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
223
|
+
}) : function(o, v) {
|
|
224
|
+
o["default"] = v;
|
|
225
|
+
});
|
|
283
226
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
284
227
|
if (mod && mod.__esModule) return mod;
|
|
285
228
|
var result = {};
|
|
286
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
287
|
-
result
|
|
229
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
230
|
+
__setModuleDefault(result, mod);
|
|
288
231
|
return result;
|
|
289
232
|
};
|
|
290
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
233
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
234
|
+
exports.Graph = exports.invertPlan = exports.Plan = exports.State = exports.Counties = exports.Features = exports.Districts = void 0;
|
|
291
235
|
const G = __importStar(__webpack_require__(/*! @dra2020/dra-graph */ "@dra2020/dra-graph"));
|
|
292
236
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
293
237
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
@@ -1016,15 +960,14 @@ exports.Graph = Graph;
|
|
|
1016
960
|
/*!************************!*\
|
|
1017
961
|
!*** ./src/analyze.ts ***!
|
|
1018
962
|
\************************/
|
|
1019
|
-
|
|
1020
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
963
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1021
964
|
|
|
1022
|
-
"use strict";
|
|
1023
965
|
|
|
1024
966
|
//
|
|
1025
967
|
// ANALYZE A PLAN
|
|
1026
968
|
//
|
|
1027
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
969
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
970
|
+
exports.doDeriveSecondaryTests = exports.doAnalyzePlan = exports.doAnalyzeDistricts = void 0;
|
|
1028
971
|
const valid_1 = __webpack_require__(/*! ./valid */ "./src/valid.ts");
|
|
1029
972
|
const equal_1 = __webpack_require__(/*! ./equal */ "./src/equal.ts");
|
|
1030
973
|
const cohesive_1 = __webpack_require__(/*! ./cohesive */ "./src/cohesive.ts");
|
|
@@ -1072,22 +1015,33 @@ exports.doDeriveSecondaryTests = doDeriveSecondaryTests;
|
|
|
1072
1015
|
/*!*************************!*\
|
|
1073
1016
|
!*** ./src/cohesive.ts ***!
|
|
1074
1017
|
\*************************/
|
|
1075
|
-
|
|
1076
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1018
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1077
1019
|
|
|
1078
|
-
"use strict";
|
|
1079
1020
|
|
|
1080
1021
|
//
|
|
1081
1022
|
// SPLITTING of counties & districts
|
|
1082
1023
|
//
|
|
1024
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1025
|
+
if (k2 === undefined) k2 = k;
|
|
1026
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1027
|
+
}) : (function(o, m, k, k2) {
|
|
1028
|
+
if (k2 === undefined) k2 = k;
|
|
1029
|
+
o[k2] = m[k];
|
|
1030
|
+
}));
|
|
1031
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1032
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1033
|
+
}) : function(o, v) {
|
|
1034
|
+
o["default"] = v;
|
|
1035
|
+
});
|
|
1083
1036
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1084
1037
|
if (mod && mod.__esModule) return mod;
|
|
1085
1038
|
var result = {};
|
|
1086
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1087
|
-
result
|
|
1039
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1040
|
+
__setModuleDefault(result, mod);
|
|
1088
1041
|
return result;
|
|
1089
1042
|
};
|
|
1090
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1043
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1044
|
+
exports.doFindSplitVTDs = exports.doFindCountiesSplitUnexpectedly = void 0;
|
|
1091
1045
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1092
1046
|
// NOTE - The active code is below the long multi-line section to be deleted.
|
|
1093
1047
|
// ANALYZE SIMPLE COUNTY & VTD SPLITTING
|
|
@@ -1243,22 +1197,33 @@ exports.doFindSplitVTDs = doFindSplitVTDs;
|
|
|
1243
1197
|
/*!************************!*\
|
|
1244
1198
|
!*** ./src/compact.ts ***!
|
|
1245
1199
|
\************************/
|
|
1246
|
-
|
|
1247
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1200
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1248
1201
|
|
|
1249
|
-
"use strict";
|
|
1250
1202
|
|
|
1251
1203
|
//
|
|
1252
1204
|
// COMPACT
|
|
1253
1205
|
//
|
|
1206
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1207
|
+
if (k2 === undefined) k2 = k;
|
|
1208
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1209
|
+
}) : (function(o, m, k, k2) {
|
|
1210
|
+
if (k2 === undefined) k2 = k;
|
|
1211
|
+
o[k2] = m[k];
|
|
1212
|
+
}));
|
|
1213
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1214
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1215
|
+
}) : function(o, v) {
|
|
1216
|
+
o["default"] = v;
|
|
1217
|
+
});
|
|
1254
1218
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1255
1219
|
if (mod && mod.__esModule) return mod;
|
|
1256
1220
|
var result = {};
|
|
1257
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1258
|
-
result
|
|
1221
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1222
|
+
__setModuleDefault(result, mod);
|
|
1259
1223
|
return result;
|
|
1260
1224
|
};
|
|
1261
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1225
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1226
|
+
exports.scoreKIWYSICompactness = exports.extractDistrictProperties = void 0;
|
|
1262
1227
|
const Poly = __importStar(__webpack_require__(/*! @dra2020/poly */ "@dra2020/poly"));
|
|
1263
1228
|
const Compactness = __importStar(__webpack_require__(/*! @dra2020/compactness */ "@dra2020/compactness"));
|
|
1264
1229
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
@@ -1355,15 +1320,14 @@ exports.scoreKIWYSICompactness = scoreKIWYSICompactness;
|
|
|
1355
1320
|
/*!**********************!*\
|
|
1356
1321
|
!*** ./src/equal.ts ***!
|
|
1357
1322
|
\**********************/
|
|
1358
|
-
|
|
1359
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1323
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1360
1324
|
|
|
1361
|
-
"use strict";
|
|
1362
1325
|
|
|
1363
1326
|
//
|
|
1364
1327
|
// EQUAL POPULATION
|
|
1365
1328
|
//
|
|
1366
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1329
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1330
|
+
exports.doHasEqualPopulations = void 0;
|
|
1367
1331
|
// NOTE - This validity check is *derived* and depends on population deviation %
|
|
1368
1332
|
// being computed (above) and normalized in test log & scorecard generation.
|
|
1369
1333
|
function doHasEqualPopulations(s, bLog = false) {
|
|
@@ -1400,21 +1364,26 @@ exports.doHasEqualPopulations = doHasEqualPopulations;
|
|
|
1400
1364
|
/*!**********************!*\
|
|
1401
1365
|
!*** ./src/index.ts ***!
|
|
1402
1366
|
\**********************/
|
|
1403
|
-
|
|
1404
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1367
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1405
1368
|
|
|
1406
|
-
"use strict";
|
|
1407
1369
|
|
|
1408
1370
|
//
|
|
1409
1371
|
// THE DISTRICT-ANALYTICS NODE PACKAGE API
|
|
1410
1372
|
//
|
|
1411
|
-
function
|
|
1412
|
-
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1373
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1374
|
+
if (k2 === undefined) k2 = k;
|
|
1375
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1376
|
+
}) : (function(o, m, k, k2) {
|
|
1377
|
+
if (k2 === undefined) k2 = k;
|
|
1378
|
+
o[k2] = m[k];
|
|
1379
|
+
}));
|
|
1380
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
1381
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1382
|
+
};
|
|
1383
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1384
|
+
__exportStar(__webpack_require__(/*! ./_api */ "./src/_api.ts"), exports);
|
|
1385
|
+
__exportStar(__webpack_require__(/*! ./results */ "./src/results.ts"), exports);
|
|
1386
|
+
__exportStar(__webpack_require__(/*! ./types */ "./src/types.ts"), exports);
|
|
1418
1387
|
|
|
1419
1388
|
|
|
1420
1389
|
/***/ }),
|
|
@@ -1423,25 +1392,36 @@ __export(__webpack_require__(/*! ./types */ "./src/types.ts"));
|
|
|
1423
1392
|
/*!*************************!*\
|
|
1424
1393
|
!*** ./src/minority.ts ***!
|
|
1425
1394
|
\*************************/
|
|
1426
|
-
|
|
1427
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1395
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1428
1396
|
|
|
1429
|
-
"use strict";
|
|
1430
1397
|
|
|
1431
1398
|
//
|
|
1432
1399
|
// PROTECTS MINORITIES
|
|
1433
1400
|
//
|
|
1401
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1402
|
+
if (k2 === undefined) k2 = k;
|
|
1403
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1404
|
+
}) : (function(o, m, k, k2) {
|
|
1405
|
+
if (k2 === undefined) k2 = k;
|
|
1406
|
+
o[k2] = m[k];
|
|
1407
|
+
}));
|
|
1408
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1409
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1410
|
+
}) : function(o, v) {
|
|
1411
|
+
o["default"] = v;
|
|
1412
|
+
});
|
|
1434
1413
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1435
1414
|
if (mod && mod.__esModule) return mod;
|
|
1436
1415
|
var result = {};
|
|
1437
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1438
|
-
result
|
|
1416
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1417
|
+
__setModuleDefault(result, mod);
|
|
1439
1418
|
return result;
|
|
1440
1419
|
};
|
|
1441
1420
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1442
1421
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1443
1422
|
};
|
|
1444
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1423
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1424
|
+
exports.doAnalyzeRacialPolarization = exports.getVRASection5 = exports.getMajorityMinority = void 0;
|
|
1445
1425
|
const RPV = __importStar(__webpack_require__(/*! @dra2020/racial-voting */ "@dra2020/racial-voting"));
|
|
1446
1426
|
const majority_minority_json_1 = __importDefault(__webpack_require__(/*! ../static/majority-minority.json */ "./static/majority-minority.json"));
|
|
1447
1427
|
const vra5_preclearance_json_1 = __importDefault(__webpack_require__(/*! ../static/vra5-preclearance.json */ "./static/vra5-preclearance.json"));
|
|
@@ -1482,15 +1462,14 @@ exports.doAnalyzeRacialPolarization = doAnalyzeRacialPolarization;
|
|
|
1482
1462
|
/*!**************************!*\
|
|
1483
1463
|
!*** ./src/political.ts ***!
|
|
1484
1464
|
\**************************/
|
|
1485
|
-
|
|
1486
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1465
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1487
1466
|
|
|
1488
|
-
"use strict";
|
|
1489
1467
|
|
|
1490
1468
|
//
|
|
1491
1469
|
// FAIR/PROPORTIONAL
|
|
1492
1470
|
//
|
|
1493
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1471
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1472
|
+
exports.fptpWin = void 0;
|
|
1494
1473
|
function fptpWin(demPct) {
|
|
1495
1474
|
// Vote shares should be fractions in the range [0.0 – 1.0]
|
|
1496
1475
|
//assert((demPct <= 1.0) && (demPct >= 0.0));
|
|
@@ -1505,22 +1484,33 @@ exports.fptpWin = fptpWin;
|
|
|
1505
1484
|
/*!***************************!*\
|
|
1506
1485
|
!*** ./src/preprocess.ts ***!
|
|
1507
1486
|
\***************************/
|
|
1508
|
-
|
|
1509
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1487
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1510
1488
|
|
|
1511
|
-
"use strict";
|
|
1512
1489
|
|
|
1513
1490
|
//
|
|
1514
1491
|
// PREPROCESS DATA
|
|
1515
1492
|
//
|
|
1493
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1494
|
+
if (k2 === undefined) k2 = k;
|
|
1495
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1496
|
+
}) : (function(o, m, k, k2) {
|
|
1497
|
+
if (k2 === undefined) k2 = k;
|
|
1498
|
+
o[k2] = m[k];
|
|
1499
|
+
}));
|
|
1500
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1501
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1502
|
+
}) : function(o, v) {
|
|
1503
|
+
o["default"] = v;
|
|
1504
|
+
});
|
|
1516
1505
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1517
1506
|
if (mod && mod.__esModule) return mod;
|
|
1518
1507
|
var result = {};
|
|
1519
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1520
|
-
result
|
|
1508
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1509
|
+
__setModuleDefault(result, mod);
|
|
1521
1510
|
return result;
|
|
1522
1511
|
};
|
|
1523
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1512
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1513
|
+
exports.doPreprocessData = void 0;
|
|
1524
1514
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1525
1515
|
// NOTE - Do preprocessing separately, so the constructor returns quickly.
|
|
1526
1516
|
function doPreprocessData(s, bLog = false) {
|
|
@@ -1676,22 +1666,33 @@ function doPreprocessCensus(s, bLog = false) {
|
|
|
1676
1666
|
/*!************************!*\
|
|
1677
1667
|
!*** ./src/results.ts ***!
|
|
1678
1668
|
\************************/
|
|
1679
|
-
|
|
1680
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1669
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1681
1670
|
|
|
1682
|
-
"use strict";
|
|
1683
1671
|
|
|
1684
1672
|
//
|
|
1685
1673
|
// TEMPLATES FOR UNFORMATTED ANALYTICS RESULTS
|
|
1686
1674
|
//
|
|
1675
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1676
|
+
if (k2 === undefined) k2 = k;
|
|
1677
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1678
|
+
}) : (function(o, m, k, k2) {
|
|
1679
|
+
if (k2 === undefined) k2 = k;
|
|
1680
|
+
o[k2] = m[k];
|
|
1681
|
+
}));
|
|
1682
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1683
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1684
|
+
}) : function(o, v) {
|
|
1685
|
+
o["default"] = v;
|
|
1686
|
+
});
|
|
1687
1687
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1688
1688
|
if (mod && mod.__esModule) return mod;
|
|
1689
1689
|
var result = {};
|
|
1690
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1691
|
-
result
|
|
1690
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1691
|
+
__setModuleDefault(result, mod);
|
|
1692
1692
|
return result;
|
|
1693
1693
|
};
|
|
1694
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1694
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1695
|
+
exports.doAnalyzePostProcessing = exports.prepareDistrictStatistics = exports.prepareRequirementsChecklist = void 0;
|
|
1695
1696
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1696
1697
|
const analyze_1 = __webpack_require__(/*! ./analyze */ "./src/analyze.ts");
|
|
1697
1698
|
function prepareRequirementsChecklist(s, bLog = false) {
|
|
@@ -1850,22 +1851,33 @@ exports.doAnalyzePostProcessing = doAnalyzePostProcessing;
|
|
|
1850
1851
|
/*!**********************!*\
|
|
1851
1852
|
!*** ./src/score.ts ***!
|
|
1852
1853
|
\**********************/
|
|
1853
|
-
|
|
1854
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1854
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1855
1855
|
|
|
1856
|
-
"use strict";
|
|
1857
1856
|
|
|
1858
1857
|
//
|
|
1859
1858
|
// SCORING
|
|
1860
1859
|
//
|
|
1860
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1861
|
+
if (k2 === undefined) k2 = k;
|
|
1862
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1863
|
+
}) : (function(o, m, k, k2) {
|
|
1864
|
+
if (k2 === undefined) k2 = k;
|
|
1865
|
+
o[k2] = m[k];
|
|
1866
|
+
}));
|
|
1867
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
1868
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
1869
|
+
}) : function(o, v) {
|
|
1870
|
+
o["default"] = v;
|
|
1871
|
+
});
|
|
1861
1872
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
1862
1873
|
if (mod && mod.__esModule) return mod;
|
|
1863
1874
|
var result = {};
|
|
1864
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
1865
|
-
result
|
|
1875
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
1876
|
+
__setModuleDefault(result, mod);
|
|
1866
1877
|
return result;
|
|
1867
1878
|
};
|
|
1868
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1879
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1880
|
+
exports.scorePlan = exports.getStatewideDemographics = exports.profilePlan = void 0;
|
|
1869
1881
|
const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
|
|
1870
1882
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
1871
1883
|
const M = __importStar(__webpack_require__(/*! ./minority */ "./src/minority.ts"));
|
|
@@ -2033,15 +2045,14 @@ exports.scorePlan = scorePlan;
|
|
|
2033
2045
|
/*!*************************!*\
|
|
2034
2046
|
!*** ./src/settings.ts ***!
|
|
2035
2047
|
\*************************/
|
|
2036
|
-
|
|
2037
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2048
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2038
2049
|
|
|
2039
|
-
"use strict";
|
|
2040
2050
|
|
|
2041
2051
|
//
|
|
2042
2052
|
// GLOBAL CONSTANTS
|
|
2043
2053
|
//
|
|
2044
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2054
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2055
|
+
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;
|
|
2045
2056
|
// Keep four decimal places for fractions [0–1], i.e.,
|
|
2046
2057
|
// keep two decimal places for %'s [0–100].
|
|
2047
2058
|
exports.PRECISION = 4;
|
|
@@ -2069,17 +2080,16 @@ exports.DISTRICT_SPLITTING_WEIGHT = 1.0 - exports.COUNTY_SPLITTING_WEIGHT;
|
|
|
2069
2080
|
/*!**********************!*\
|
|
2070
2081
|
!*** ./src/types.ts ***!
|
|
2071
2082
|
\**********************/
|
|
2072
|
-
|
|
2073
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2083
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2074
2084
|
|
|
2075
|
-
"use strict";
|
|
2076
2085
|
|
|
2077
2086
|
//
|
|
2078
2087
|
// TYPE DEFINITIONS
|
|
2079
2088
|
//
|
|
2080
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2089
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2090
|
+
exports.estSeatProbability = void 0;
|
|
2081
2091
|
var dra_score_1 = __webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score");
|
|
2082
|
-
exports
|
|
2092
|
+
Object.defineProperty(exports, "estSeatProbability", ({ enumerable: true, get: function () { return dra_score_1.estSeatProbability; } }));
|
|
2083
2093
|
// END
|
|
2084
2094
|
|
|
2085
2095
|
|
|
@@ -2089,22 +2099,33 @@ exports.estSeatProbability = dra_score_1.estSeatProbability;
|
|
|
2089
2099
|
/*!**********************!*\
|
|
2090
2100
|
!*** ./src/utils.ts ***!
|
|
2091
2101
|
\**********************/
|
|
2092
|
-
|
|
2093
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2102
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2094
2103
|
|
|
2095
|
-
"use strict";
|
|
2096
2104
|
|
|
2097
2105
|
//
|
|
2098
2106
|
// UTILITIES
|
|
2099
2107
|
//
|
|
2108
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2109
|
+
if (k2 === undefined) k2 = k;
|
|
2110
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2111
|
+
}) : (function(o, m, k, k2) {
|
|
2112
|
+
if (k2 === undefined) k2 = k;
|
|
2113
|
+
o[k2] = m[k];
|
|
2114
|
+
}));
|
|
2115
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2116
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2117
|
+
}) : function(o, v) {
|
|
2118
|
+
o["default"] = v;
|
|
2119
|
+
});
|
|
2100
2120
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
2101
2121
|
if (mod && mod.__esModule) return mod;
|
|
2102
2122
|
var result = {};
|
|
2103
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
2104
|
-
result
|
|
2123
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2124
|
+
__setModuleDefault(result, mod);
|
|
2105
2125
|
return result;
|
|
2106
2126
|
};
|
|
2107
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2127
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2128
|
+
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;
|
|
2108
2129
|
const DT = __importStar(__webpack_require__(/*! @dra2020/dra-types */ "@dra2020/dra-types"));
|
|
2109
2130
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
2110
2131
|
// PLAN HELPERS
|
|
@@ -2323,7 +2344,7 @@ export function mapBooleanToTriState(bool: boolean): T.TriState
|
|
|
2323
2344
|
}
|
|
2324
2345
|
*/
|
|
2325
2346
|
var util_1 = __webpack_require__(/*! @dra2020/util */ "@dra2020/util");
|
|
2326
|
-
exports
|
|
2347
|
+
Object.defineProperty(exports, "depthof", ({ enumerable: true, get: function () { return util_1.depthof; } }));
|
|
2327
2348
|
|
|
2328
2349
|
|
|
2329
2350
|
/***/ }),
|
|
@@ -2332,22 +2353,33 @@ exports.depthof = util_1.depthof;
|
|
|
2332
2353
|
/*!**********************!*\
|
|
2333
2354
|
!*** ./src/valid.ts ***!
|
|
2334
2355
|
\**********************/
|
|
2335
|
-
|
|
2336
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2356
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2337
2357
|
|
|
2338
|
-
"use strict";
|
|
2339
2358
|
|
|
2340
2359
|
//
|
|
2341
2360
|
// MAP/PLAN VALIDATIONS
|
|
2342
2361
|
//
|
|
2362
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2363
|
+
if (k2 === undefined) k2 = k;
|
|
2364
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2365
|
+
}) : (function(o, m, k, k2) {
|
|
2366
|
+
if (k2 === undefined) k2 = k;
|
|
2367
|
+
o[k2] = m[k];
|
|
2368
|
+
}));
|
|
2369
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
2370
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2371
|
+
}) : function(o, v) {
|
|
2372
|
+
o["default"] = v;
|
|
2373
|
+
});
|
|
2343
2374
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
2344
2375
|
if (mod && mod.__esModule) return mod;
|
|
2345
2376
|
var result = {};
|
|
2346
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
2347
|
-
result
|
|
2377
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
2378
|
+
__setModuleDefault(result, mod);
|
|
2348
2379
|
return result;
|
|
2349
2380
|
};
|
|
2350
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2381
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2382
|
+
exports.doIsFreeOfHoles = exports.doIsContiguous = exports.doIsComplete = void 0;
|
|
2351
2383
|
const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
|
|
2352
2384
|
const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
|
|
2353
2385
|
//
|
|
@@ -2513,8 +2545,7 @@ exports.doIsFreeOfHoles = doIsFreeOfHoles;
|
|
|
2513
2545
|
/*!***************************************!*\
|
|
2514
2546
|
!*** ./static/majority-minority.json ***!
|
|
2515
2547
|
\***************************************/
|
|
2516
|
-
|
|
2517
|
-
/***/ (function(module) {
|
|
2548
|
+
/***/ ((module) => {
|
|
2518
2549
|
|
|
2519
2550
|
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\":[]}}");
|
|
2520
2551
|
|
|
@@ -2524,8 +2555,7 @@ module.exports = JSON.parse("{\"AL\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":
|
|
|
2524
2555
|
/*!***************************************!*\
|
|
2525
2556
|
!*** ./static/vra5-preclearance.json ***!
|
|
2526
2557
|
\***************************************/
|
|
2527
|
-
|
|
2528
|
-
/***/ (function(module) {
|
|
2558
|
+
/***/ ((module) => {
|
|
2529
2559
|
|
|
2530
2560
|
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\"}");
|
|
2531
2561
|
|
|
@@ -2535,10 +2565,9 @@ module.exports = JSON.parse("{\"AL\":\"all\",\"AK\":\"all\",\"AZ\":\"all\",\"CA\
|
|
|
2535
2565
|
/*!***************************************!*\
|
|
2536
2566
|
!*** external "@dra2020/compactness" ***!
|
|
2537
2567
|
\***************************************/
|
|
2538
|
-
|
|
2539
|
-
/***/ (function(module, exports) {
|
|
2568
|
+
/***/ ((module) => {
|
|
2540
2569
|
|
|
2541
|
-
module.exports = require("@dra2020/compactness")
|
|
2570
|
+
module.exports = require("@dra2020/compactness");;
|
|
2542
2571
|
|
|
2543
2572
|
/***/ }),
|
|
2544
2573
|
|
|
@@ -2546,10 +2575,9 @@ module.exports = require("@dra2020/compactness");
|
|
|
2546
2575
|
/*!*************************************!*\
|
|
2547
2576
|
!*** external "@dra2020/dra-graph" ***!
|
|
2548
2577
|
\*************************************/
|
|
2549
|
-
|
|
2550
|
-
/***/ (function(module, exports) {
|
|
2578
|
+
/***/ ((module) => {
|
|
2551
2579
|
|
|
2552
|
-
module.exports = require("@dra2020/dra-graph")
|
|
2580
|
+
module.exports = require("@dra2020/dra-graph");;
|
|
2553
2581
|
|
|
2554
2582
|
/***/ }),
|
|
2555
2583
|
|
|
@@ -2557,10 +2585,9 @@ module.exports = require("@dra2020/dra-graph");
|
|
|
2557
2585
|
/*!*************************************!*\
|
|
2558
2586
|
!*** external "@dra2020/dra-score" ***!
|
|
2559
2587
|
\*************************************/
|
|
2560
|
-
|
|
2561
|
-
/***/ (function(module, exports) {
|
|
2588
|
+
/***/ ((module) => {
|
|
2562
2589
|
|
|
2563
|
-
module.exports = require("@dra2020/dra-score")
|
|
2590
|
+
module.exports = require("@dra2020/dra-score");;
|
|
2564
2591
|
|
|
2565
2592
|
/***/ }),
|
|
2566
2593
|
|
|
@@ -2568,10 +2595,9 @@ module.exports = require("@dra2020/dra-score");
|
|
|
2568
2595
|
/*!*************************************!*\
|
|
2569
2596
|
!*** external "@dra2020/dra-types" ***!
|
|
2570
2597
|
\*************************************/
|
|
2571
|
-
|
|
2572
|
-
/***/ (function(module, exports) {
|
|
2598
|
+
/***/ ((module) => {
|
|
2573
2599
|
|
|
2574
|
-
module.exports = require("@dra2020/dra-types")
|
|
2600
|
+
module.exports = require("@dra2020/dra-types");;
|
|
2575
2601
|
|
|
2576
2602
|
/***/ }),
|
|
2577
2603
|
|
|
@@ -2579,10 +2605,9 @@ module.exports = require("@dra2020/dra-types");
|
|
|
2579
2605
|
/*!********************************!*\
|
|
2580
2606
|
!*** external "@dra2020/poly" ***!
|
|
2581
2607
|
\********************************/
|
|
2582
|
-
|
|
2583
|
-
/***/ (function(module, exports) {
|
|
2608
|
+
/***/ ((module) => {
|
|
2584
2609
|
|
|
2585
|
-
module.exports = require("@dra2020/poly")
|
|
2610
|
+
module.exports = require("@dra2020/poly");;
|
|
2586
2611
|
|
|
2587
2612
|
/***/ }),
|
|
2588
2613
|
|
|
@@ -2590,10 +2615,9 @@ module.exports = require("@dra2020/poly");
|
|
|
2590
2615
|
/*!*****************************************!*\
|
|
2591
2616
|
!*** external "@dra2020/racial-voting" ***!
|
|
2592
2617
|
\*****************************************/
|
|
2593
|
-
|
|
2594
|
-
/***/ (function(module, exports) {
|
|
2618
|
+
/***/ ((module) => {
|
|
2595
2619
|
|
|
2596
|
-
module.exports = require("@dra2020/racial-voting")
|
|
2620
|
+
module.exports = require("@dra2020/racial-voting");;
|
|
2597
2621
|
|
|
2598
2622
|
/***/ }),
|
|
2599
2623
|
|
|
@@ -2601,13 +2625,43 @@ module.exports = require("@dra2020/racial-voting");
|
|
|
2601
2625
|
/*!********************************!*\
|
|
2602
2626
|
!*** external "@dra2020/util" ***!
|
|
2603
2627
|
\********************************/
|
|
2604
|
-
|
|
2605
|
-
/***/ (function(module, exports) {
|
|
2628
|
+
/***/ ((module) => {
|
|
2606
2629
|
|
|
2607
|
-
module.exports = require("@dra2020/util")
|
|
2630
|
+
module.exports = require("@dra2020/util");;
|
|
2608
2631
|
|
|
2609
2632
|
/***/ })
|
|
2610
2633
|
|
|
2611
|
-
/******/
|
|
2634
|
+
/******/ });
|
|
2635
|
+
/************************************************************************/
|
|
2636
|
+
/******/ // The module cache
|
|
2637
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2638
|
+
/******/
|
|
2639
|
+
/******/ // The require function
|
|
2640
|
+
/******/ function __webpack_require__(moduleId) {
|
|
2641
|
+
/******/ // Check if module is in cache
|
|
2642
|
+
/******/ if(__webpack_module_cache__[moduleId]) {
|
|
2643
|
+
/******/ return __webpack_module_cache__[moduleId].exports;
|
|
2644
|
+
/******/ }
|
|
2645
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2646
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2647
|
+
/******/ // no module.id needed
|
|
2648
|
+
/******/ // no module.loaded needed
|
|
2649
|
+
/******/ exports: {}
|
|
2650
|
+
/******/ };
|
|
2651
|
+
/******/
|
|
2652
|
+
/******/ // Execute the module function
|
|
2653
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
2654
|
+
/******/
|
|
2655
|
+
/******/ // Return the exports of the module
|
|
2656
|
+
/******/ return module.exports;
|
|
2657
|
+
/******/ }
|
|
2658
|
+
/******/
|
|
2659
|
+
/************************************************************************/
|
|
2660
|
+
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
|
2661
|
+
/******/ // startup
|
|
2662
|
+
/******/ // Load entry module and return exports
|
|
2663
|
+
/******/ return __webpack_require__("./src/index.ts");
|
|
2664
|
+
/******/ })()
|
|
2665
|
+
;
|
|
2612
2666
|
});
|
|
2613
2667
|
//# sourceMappingURL=district-analytics.js.map
|