@dra2020/district-analytics 10.5.2 → 11.0.0

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.
@@ -8,41 +8,115 @@
8
8
  else
9
9
  root["district-analytics"] = factory();
10
10
  })(global, function() {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
11
+ return /******/ (function(modules) { // webpackBootstrap
12
+ /******/ // The module cache
13
+ /******/ var installedModules = {};
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
+ /******/ ({
14
98
 
15
99
  /***/ "./src/_api.ts":
16
100
  /*!*********************!*\
17
101
  !*** ./src/_api.ts ***!
18
102
  \*********************/
19
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
103
+ /*! no static exports found */
104
+ /***/ (function(module, exports, __webpack_require__) {
20
105
 
106
+ "use strict";
21
107
 
22
108
  //
23
109
  // THE NODE PACKAGE API
24
110
  //
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
- });
37
111
  var __importStar = (this && this.__importStar) || function (mod) {
38
112
  if (mod && mod.__esModule) return mod;
39
113
  var 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);
114
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
115
+ result["default"] = mod;
42
116
  return result;
43
117
  };
44
- Object.defineProperty(exports, "__esModule", ({ value: true }));
45
- exports.AnalyticsSession = void 0;
118
+ Object.defineProperty(exports, "__esModule", { value: true });
119
+ const Poly = __importStar(__webpack_require__(/*! @dra2020/poly */ "@dra2020/poly"));
46
120
  const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
47
121
  const preprocess_1 = __webpack_require__(/*! ./preprocess */ "./src/preprocess.ts");
48
122
  const analyze_1 = __webpack_require__(/*! ./analyze */ "./src/analyze.ts");
@@ -50,7 +124,6 @@ const score_1 = __webpack_require__(/*! ./score */ "./src/score.ts");
50
124
  const results_1 = __webpack_require__(/*! ./results */ "./src/results.ts");
51
125
  const results_2 = __webpack_require__(/*! ./results */ "./src/results.ts");
52
126
  const minority_1 = __webpack_require__(/*! ./minority */ "./src/minority.ts");
53
- const Poly = __importStar(__webpack_require__(/*! @dra2020/poly */ "@dra2020/poly"));
54
127
  const D = __importStar(__webpack_require__(/*! ./_data */ "./src/_data.ts"));
55
128
  const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
56
129
  class AnalyticsSession {
@@ -61,7 +134,10 @@ class AnalyticsSession {
61
134
  this.bPostProcessingDone = false;
62
135
  this.tests = {};
63
136
  this.title = SessionRequest['title'];
64
- this.legislativeDistricts = SessionRequest['legislativeDistricts'];
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'];
65
141
  this.config = this.processConfig(SessionRequest['config']);
66
142
  this.state = new D.State(this, SessionRequest['stateXX'], SessionRequest['nDistricts']);
67
143
  this.counties = new D.Counties(this, SessionRequest['counties']);
@@ -72,8 +148,14 @@ class AnalyticsSession {
72
148
  }
73
149
  processConfig(config) {
74
150
  // Default the Census & redistricting cycle to 2010
75
- if (!(U.keyExists('cycle', config)))
151
+ if (!(U.keyExists('cycle', config))) {
76
152
  config['cycle'] = 2010;
153
+ // DEBUG
154
+ console.log("Cycle was not set explicitly on the session request.");
155
+ }
156
+ // DEBUG
157
+ console.log("Cycle = ", config['cycle']);
158
+ console.log("Shapes = ", this.config['datasets']["SHAPES" /* SHAPES */], ": ", this.config['descriptions']['SHAPES']);
77
159
  return config;
78
160
  }
79
161
  // Using the the data in the analytics session, calculate all the
@@ -190,33 +272,22 @@ exports.AnalyticsSession = AnalyticsSession;
190
272
  /*!**********************!*\
191
273
  !*** ./src/_data.ts ***!
192
274
  \**********************/
193
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
275
+ /*! no static exports found */
276
+ /***/ (function(module, exports, __webpack_require__) {
194
277
 
278
+ "use strict";
195
279
 
196
280
  //
197
281
  // DATA ABSTRACTION LAYER
198
282
  //
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
- });
211
283
  var __importStar = (this && this.__importStar) || function (mod) {
212
284
  if (mod && mod.__esModule) return mod;
213
285
  var 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);
286
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
287
+ result["default"] = mod;
216
288
  return result;
217
289
  };
218
- Object.defineProperty(exports, "__esModule", ({ value: true }));
219
- exports.Graph = exports.invertPlan = exports.Plan = exports.State = exports.Counties = exports.Features = exports.Districts = void 0;
290
+ Object.defineProperty(exports, "__esModule", { value: true });
220
291
  const G = __importStar(__webpack_require__(/*! @dra2020/dra-graph */ "@dra2020/dra-graph"));
221
292
  const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
222
293
  const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
@@ -705,8 +776,6 @@ class Features {
705
776
  this._session = s;
706
777
  this._data = data;
707
778
  this._keys = keys;
708
- // For debugging PVI
709
- // console.log("Election dataset =", this._keys[Dataset.ELECTION]);
710
779
  }
711
780
  nFeatures() { return this._data.features.length; }
712
781
  featureByIndex(i) { return this._data.features[i]; }
@@ -947,14 +1016,15 @@ exports.Graph = Graph;
947
1016
  /*!************************!*\
948
1017
  !*** ./src/analyze.ts ***!
949
1018
  \************************/
950
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1019
+ /*! no static exports found */
1020
+ /***/ (function(module, exports, __webpack_require__) {
951
1021
 
1022
+ "use strict";
952
1023
 
953
1024
  //
954
1025
  // ANALYZE A PLAN
955
1026
  //
956
- Object.defineProperty(exports, "__esModule", ({ value: true }));
957
- exports.doDeriveSecondaryTests = exports.doAnalyzePlan = exports.doAnalyzeDistricts = void 0;
1027
+ Object.defineProperty(exports, "__esModule", { value: true });
958
1028
  const valid_1 = __webpack_require__(/*! ./valid */ "./src/valid.ts");
959
1029
  const equal_1 = __webpack_require__(/*! ./equal */ "./src/equal.ts");
960
1030
  const cohesive_1 = __webpack_require__(/*! ./cohesive */ "./src/cohesive.ts");
@@ -1002,33 +1072,22 @@ exports.doDeriveSecondaryTests = doDeriveSecondaryTests;
1002
1072
  /*!*************************!*\
1003
1073
  !*** ./src/cohesive.ts ***!
1004
1074
  \*************************/
1005
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1075
+ /*! no static exports found */
1076
+ /***/ (function(module, exports, __webpack_require__) {
1006
1077
 
1078
+ "use strict";
1007
1079
 
1008
1080
  //
1009
1081
  // SPLITTING of counties & districts
1010
1082
  //
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
- });
1023
1083
  var __importStar = (this && this.__importStar) || function (mod) {
1024
1084
  if (mod && mod.__esModule) return mod;
1025
1085
  var 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);
1086
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
1087
+ result["default"] = mod;
1028
1088
  return result;
1029
1089
  };
1030
- Object.defineProperty(exports, "__esModule", ({ value: true }));
1031
- exports.doFindSplitVTDs = exports.doFindCountiesSplitUnexpectedly = void 0;
1090
+ Object.defineProperty(exports, "__esModule", { value: true });
1032
1091
  const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
1033
1092
  // NOTE - The active code is below the long multi-line section to be deleted.
1034
1093
  // ANALYZE SIMPLE COUNTY & VTD SPLITTING
@@ -1184,33 +1243,22 @@ exports.doFindSplitVTDs = doFindSplitVTDs;
1184
1243
  /*!************************!*\
1185
1244
  !*** ./src/compact.ts ***!
1186
1245
  \************************/
1187
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1246
+ /*! no static exports found */
1247
+ /***/ (function(module, exports, __webpack_require__) {
1188
1248
 
1249
+ "use strict";
1189
1250
 
1190
1251
  //
1191
1252
  // COMPACT
1192
1253
  //
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
- });
1205
1254
  var __importStar = (this && this.__importStar) || function (mod) {
1206
1255
  if (mod && mod.__esModule) return mod;
1207
1256
  var 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);
1257
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
1258
+ result["default"] = mod;
1210
1259
  return result;
1211
1260
  };
1212
- Object.defineProperty(exports, "__esModule", ({ value: true }));
1213
- exports.scoreKIWYSICompactness = exports.extractDistrictProperties = void 0;
1261
+ Object.defineProperty(exports, "__esModule", { value: true });
1214
1262
  const Poly = __importStar(__webpack_require__(/*! @dra2020/poly */ "@dra2020/poly"));
1215
1263
  const Compactness = __importStar(__webpack_require__(/*! @dra2020/compactness */ "@dra2020/compactness"));
1216
1264
  const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
@@ -1307,14 +1355,15 @@ exports.scoreKIWYSICompactness = scoreKIWYSICompactness;
1307
1355
  /*!**********************!*\
1308
1356
  !*** ./src/equal.ts ***!
1309
1357
  \**********************/
1310
- /***/ ((__unused_webpack_module, exports) => {
1358
+ /*! no static exports found */
1359
+ /***/ (function(module, exports, __webpack_require__) {
1311
1360
 
1361
+ "use strict";
1312
1362
 
1313
1363
  //
1314
1364
  // EQUAL POPULATION
1315
1365
  //
1316
- Object.defineProperty(exports, "__esModule", ({ value: true }));
1317
- exports.doHasEqualPopulations = void 0;
1366
+ Object.defineProperty(exports, "__esModule", { value: true });
1318
1367
  // NOTE - This validity check is *derived* and depends on population deviation %
1319
1368
  // being computed (above) and normalized in test log & scorecard generation.
1320
1369
  function doHasEqualPopulations(s, bLog = false) {
@@ -1351,26 +1400,21 @@ exports.doHasEqualPopulations = doHasEqualPopulations;
1351
1400
  /*!**********************!*\
1352
1401
  !*** ./src/index.ts ***!
1353
1402
  \**********************/
1354
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1403
+ /*! no static exports found */
1404
+ /***/ (function(module, exports, __webpack_require__) {
1355
1405
 
1406
+ "use strict";
1356
1407
 
1357
1408
  //
1358
1409
  // THE DISTRICT-ANALYTICS NODE PACKAGE API
1359
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
+ function __export(m) {
1412
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
1413
+ }
1414
+ Object.defineProperty(exports, "__esModule", { value: true });
1415
+ __export(__webpack_require__(/*! ./_api */ "./src/_api.ts"));
1416
+ __export(__webpack_require__(/*! ./results */ "./src/results.ts"));
1417
+ __export(__webpack_require__(/*! ./types */ "./src/types.ts"));
1374
1418
 
1375
1419
 
1376
1420
  /***/ }),
@@ -1379,40 +1423,29 @@ __exportStar(__webpack_require__(/*! ./types */ "./src/types.ts"), exports);
1379
1423
  /*!*************************!*\
1380
1424
  !*** ./src/minority.ts ***!
1381
1425
  \*************************/
1382
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1426
+ /*! no static exports found */
1427
+ /***/ (function(module, exports, __webpack_require__) {
1383
1428
 
1429
+ "use strict";
1384
1430
 
1385
1431
  //
1386
1432
  // PROTECTS MINORITIES
1387
1433
  //
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
- });
1400
1434
  var __importStar = (this && this.__importStar) || function (mod) {
1401
1435
  if (mod && mod.__esModule) return mod;
1402
1436
  var 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);
1437
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
1438
+ result["default"] = mod;
1405
1439
  return result;
1406
1440
  };
1407
1441
  var __importDefault = (this && this.__importDefault) || function (mod) {
1408
1442
  return (mod && mod.__esModule) ? mod : { "default": mod };
1409
1443
  };
1410
- Object.defineProperty(exports, "__esModule", ({ value: true }));
1411
- exports.doAnalyzeRacialPolarization = exports.getVRASection5 = exports.getMajorityMinority = void 0;
1444
+ Object.defineProperty(exports, "__esModule", { value: true });
1412
1445
  const RPV = __importStar(__webpack_require__(/*! @dra2020/racial-voting */ "@dra2020/racial-voting"));
1413
1446
  const majority_minority_json_1 = __importDefault(__webpack_require__(/*! ../static/majority-minority.json */ "./static/majority-minority.json"));
1414
1447
  const vra5_preclearance_json_1 = __importDefault(__webpack_require__(/*! ../static/vra5-preclearance.json */ "./static/vra5-preclearance.json"));
1415
- // TODO - 2020: Update/revise this, when the update comes out in September:
1448
+ // TODO - Update/revise this, when the update comes out in September:
1416
1449
  // Sources for majority-minority info:
1417
1450
  // - https://en.wikipedia.org/wiki/List_of_majority-minority_United_States_congressional_districts
1418
1451
  // - http://www.ncsl.org/Portals/1/Documents/Redistricting/Redistricting_2010.pdf (PP. 80–84)
@@ -1449,17 +1482,20 @@ exports.doAnalyzeRacialPolarization = doAnalyzeRacialPolarization;
1449
1482
  /*!**************************!*\
1450
1483
  !*** ./src/political.ts ***!
1451
1484
  \**************************/
1452
- /***/ ((__unused_webpack_module, exports) => {
1485
+ /*! no static exports found */
1486
+ /***/ (function(module, exports, __webpack_require__) {
1453
1487
 
1488
+ "use strict";
1454
1489
 
1455
1490
  //
1456
1491
  // FAIR/PROPORTIONAL
1457
1492
  //
1458
- Object.defineProperty(exports, "__esModule", ({ value: true }));
1459
- exports.fptpWin = void 0;
1493
+ Object.defineProperty(exports, "__esModule", { value: true });
1494
+ // NOTE - This file will NOT be empty, when legacy code is deleted.
1495
+ const assert_1 = __webpack_require__(/*! assert */ "assert");
1460
1496
  function fptpWin(demPct) {
1461
1497
  // Vote shares should be fractions in the range [0.0 – 1.0]
1462
- //assert((demPct <= 1.0) && (demPct >= 0.0));
1498
+ assert_1.strict((demPct <= 1.0) && (demPct >= 0.0));
1463
1499
  return ((demPct > 0.5) ? 1 : 0);
1464
1500
  }
1465
1501
  exports.fptpWin = fptpWin;
@@ -1471,33 +1507,22 @@ exports.fptpWin = fptpWin;
1471
1507
  /*!***************************!*\
1472
1508
  !*** ./src/preprocess.ts ***!
1473
1509
  \***************************/
1474
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1510
+ /*! no static exports found */
1511
+ /***/ (function(module, exports, __webpack_require__) {
1475
1512
 
1513
+ "use strict";
1476
1514
 
1477
1515
  //
1478
1516
  // PREPROCESS DATA
1479
1517
  //
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
- });
1492
1518
  var __importStar = (this && this.__importStar) || function (mod) {
1493
1519
  if (mod && mod.__esModule) return mod;
1494
1520
  var 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);
1521
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
1522
+ result["default"] = mod;
1497
1523
  return result;
1498
1524
  };
1499
- Object.defineProperty(exports, "__esModule", ({ value: true }));
1500
- exports.doPreprocessData = void 0;
1525
+ Object.defineProperty(exports, "__esModule", { value: true });
1501
1526
  const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
1502
1527
  // NOTE - Do preprocessing separately, so the constructor returns quickly.
1503
1528
  function doPreprocessData(s, bLog = false) {
@@ -1653,35 +1678,23 @@ function doPreprocessCensus(s, bLog = false) {
1653
1678
  /*!************************!*\
1654
1679
  !*** ./src/results.ts ***!
1655
1680
  \************************/
1656
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1681
+ /*! no static exports found */
1682
+ /***/ (function(module, exports, __webpack_require__) {
1657
1683
 
1684
+ "use strict";
1658
1685
 
1659
1686
  //
1660
1687
  // TEMPLATES FOR UNFORMATTED ANALYTICS RESULTS
1661
1688
  //
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
- });
1674
1689
  var __importStar = (this && this.__importStar) || function (mod) {
1675
1690
  if (mod && mod.__esModule) return mod;
1676
1691
  var 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);
1692
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
1693
+ result["default"] = mod;
1679
1694
  return result;
1680
1695
  };
1681
- Object.defineProperty(exports, "__esModule", ({ value: true }));
1682
- exports.doAnalyzePostProcessing = exports.prepareDistrictStatistics = exports.prepareRequirementsChecklist = void 0;
1696
+ Object.defineProperty(exports, "__esModule", { value: true });
1683
1697
  const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
1684
- const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
1685
1698
  const analyze_1 = __webpack_require__(/*! ./analyze */ "./src/analyze.ts");
1686
1699
  function prepareRequirementsChecklist(s, bLog = false) {
1687
1700
  if (!(s.bPostProcessingDone)) {
@@ -1759,7 +1772,7 @@ function prepareDistrictStatistics(s, bLog = false) {
1759
1772
  // Transpose the rows & columns, so rows are districts.
1760
1773
  let dsTable = [];
1761
1774
  for (let i = 0; i < s.districts.numberOfRows(); i++) {
1762
- let rawRow = {
1775
+ const rawRow = {
1763
1776
  districtID: i,
1764
1777
  totalPop: s.districts.table.totalPop[i],
1765
1778
  popDevPct: s.districts.table.popDevPct[i],
@@ -1779,22 +1792,22 @@ function prepareDistrictStatistics(s, bLog = false) {
1779
1792
  asianPct: s.districts.table.asianPct[i],
1780
1793
  nativePct: s.districts.table.nativePct[i]
1781
1794
  };
1782
- let readyRow = U.deepCopy(rawRow);
1795
+ const readyRow = U.deepCopy(rawRow);
1783
1796
  dsTable.push(readyRow);
1784
1797
  }
1785
- let dsDetails = {
1798
+ const dsDetails = {
1786
1799
  // None at this time
1787
1800
  };
1788
- let dsDatasets = {
1789
- shapes: S.SHAPES,
1801
+ const dsDatasets = {
1802
+ shapes: U.deepCopy(s.config['descriptions']['SHAPES']),
1790
1803
  census: U.deepCopy(s.config['descriptions']['CENSUS']),
1791
1804
  vap: U.deepCopy(s.config['descriptions']['VAP']),
1792
1805
  election: U.deepCopy(s.config['descriptions']['ELECTION'])
1793
1806
  };
1794
- let dsResources = {
1807
+ const dsResources = {
1795
1808
  // None at this time
1796
1809
  };
1797
- let ds = {
1810
+ const ds = {
1798
1811
  table: dsTable,
1799
1812
  details: dsDetails,
1800
1813
  datasets: dsDatasets,
@@ -1811,7 +1824,7 @@ function doAnalyzePostProcessing(s, bLog = false) {
1811
1824
  let popDev = s.getTest(4 /* PopulationDeviation */);
1812
1825
  popDev['normalizedScore'] = scorecard.populationDeviation.normalized;
1813
1826
  const datasets = {
1814
- shapes: S.SHAPES,
1827
+ shapes: U.deepCopy(s.config['descriptions']['SHAPES']),
1815
1828
  census: U.deepCopy(s.config['descriptions']['CENSUS']),
1816
1829
  vap: U.deepCopy(s.config['descriptions']['VAP']),
1817
1830
  election: U.deepCopy(s.config['descriptions']['ELECTION'])
@@ -1839,33 +1852,22 @@ exports.doAnalyzePostProcessing = doAnalyzePostProcessing;
1839
1852
  /*!**********************!*\
1840
1853
  !*** ./src/score.ts ***!
1841
1854
  \**********************/
1842
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1855
+ /*! no static exports found */
1856
+ /***/ (function(module, exports, __webpack_require__) {
1843
1857
 
1858
+ "use strict";
1844
1859
 
1845
1860
  //
1846
1861
  // SCORING
1847
1862
  //
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
- });
1860
1863
  var __importStar = (this && this.__importStar) || function (mod) {
1861
1864
  if (mod && mod.__esModule) return mod;
1862
1865
  var 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);
1866
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
1867
+ result["default"] = mod;
1865
1868
  return result;
1866
1869
  };
1867
- Object.defineProperty(exports, "__esModule", ({ value: true }));
1868
- exports.scorePlan = exports.getStatewideDemographics = exports.profilePlan = void 0;
1870
+ Object.defineProperty(exports, "__esModule", { value: true });
1869
1871
  const Score = __importStar(__webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score"));
1870
1872
  const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
1871
1873
  const M = __importStar(__webpack_require__(/*! ./minority */ "./src/minority.ts"));
@@ -2033,14 +2035,15 @@ exports.scorePlan = scorePlan;
2033
2035
  /*!*************************!*\
2034
2036
  !*** ./src/settings.ts ***!
2035
2037
  \*************************/
2036
- /***/ ((__unused_webpack_module, exports) => {
2038
+ /*! no static exports found */
2039
+ /***/ (function(module, exports, __webpack_require__) {
2037
2040
 
2041
+ "use strict";
2038
2042
 
2039
2043
  //
2040
2044
  // GLOBAL CONSTANTS
2041
2045
  //
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;
2046
+ Object.defineProperty(exports, "__esModule", { value: true });
2044
2047
  // Keep four decimal places for fractions [0–1], i.e.,
2045
2048
  // keep two decimal places for %'s [0–100].
2046
2049
  exports.PRECISION = 4;
@@ -2058,8 +2061,8 @@ exports.EQUAL_TOLERANCE = AVERAGE_BLOCK_SIZE / 2;
2058
2061
  // County & district splitting weights
2059
2062
  exports.COUNTY_SPLITTING_WEIGHT = 0.8;
2060
2063
  exports.DISTRICT_SPLITTING_WEIGHT = 1.0 - exports.COUNTY_SPLITTING_WEIGHT;
2061
- // TODO - 2020
2062
- exports.SHAPES = "2010 VTD shapes";
2064
+ // 2020
2065
+ // export const SHAPES = "2010 VTD shapes";
2063
2066
 
2064
2067
 
2065
2068
  /***/ }),
@@ -2068,16 +2071,17 @@ exports.SHAPES = "2010 VTD shapes";
2068
2071
  /*!**********************!*\
2069
2072
  !*** ./src/types.ts ***!
2070
2073
  \**********************/
2071
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2074
+ /*! no static exports found */
2075
+ /***/ (function(module, exports, __webpack_require__) {
2072
2076
 
2077
+ "use strict";
2073
2078
 
2074
2079
  //
2075
2080
  // TYPE DEFINITIONS
2076
2081
  //
2077
- Object.defineProperty(exports, "__esModule", ({ value: true }));
2078
- exports.estSeatProbability = void 0;
2082
+ Object.defineProperty(exports, "__esModule", { value: true });
2079
2083
  var dra_score_1 = __webpack_require__(/*! @dra2020/dra-score */ "@dra2020/dra-score");
2080
- Object.defineProperty(exports, "estSeatProbability", ({ enumerable: true, get: function () { return dra_score_1.estSeatProbability; } }));
2084
+ exports.estSeatProbability = dra_score_1.estSeatProbability;
2081
2085
  // END
2082
2086
 
2083
2087
 
@@ -2087,33 +2091,22 @@ Object.defineProperty(exports, "estSeatProbability", ({ enumerable: true, get: f
2087
2091
  /*!**********************!*\
2088
2092
  !*** ./src/utils.ts ***!
2089
2093
  \**********************/
2090
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2094
+ /*! no static exports found */
2095
+ /***/ (function(module, exports, __webpack_require__) {
2091
2096
 
2097
+ "use strict";
2092
2098
 
2093
2099
  //
2094
2100
  // UTILITIES
2095
2101
  //
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
- });
2108
2102
  var __importStar = (this && this.__importStar) || function (mod) {
2109
2103
  if (mod && mod.__esModule) return mod;
2110
2104
  var 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);
2105
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
2106
+ result["default"] = mod;
2113
2107
  return result;
2114
2108
  };
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;
2109
+ Object.defineProperty(exports, "__esModule", { value: true });
2117
2110
  const DT = __importStar(__webpack_require__(/*! @dra2020/dra-types */ "@dra2020/dra-types"));
2118
2111
  const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
2119
2112
  // PLAN HELPERS
@@ -2332,7 +2325,7 @@ export function mapBooleanToTriState(bool: boolean): T.TriState
2332
2325
  }
2333
2326
  */
2334
2327
  var util_1 = __webpack_require__(/*! @dra2020/util */ "@dra2020/util");
2335
- Object.defineProperty(exports, "depthof", ({ enumerable: true, get: function () { return util_1.depthof; } }));
2328
+ exports.depthof = util_1.depthof;
2336
2329
 
2337
2330
 
2338
2331
  /***/ }),
@@ -2341,33 +2334,22 @@ Object.defineProperty(exports, "depthof", ({ enumerable: true, get: function ()
2341
2334
  /*!**********************!*\
2342
2335
  !*** ./src/valid.ts ***!
2343
2336
  \**********************/
2344
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2337
+ /*! no static exports found */
2338
+ /***/ (function(module, exports, __webpack_require__) {
2345
2339
 
2340
+ "use strict";
2346
2341
 
2347
2342
  //
2348
2343
  // MAP/PLAN VALIDATIONS
2349
2344
  //
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
- });
2362
2345
  var __importStar = (this && this.__importStar) || function (mod) {
2363
2346
  if (mod && mod.__esModule) return mod;
2364
2347
  var 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);
2348
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
2349
+ result["default"] = mod;
2367
2350
  return result;
2368
2351
  };
2369
- Object.defineProperty(exports, "__esModule", ({ value: true }));
2370
- exports.doIsFreeOfHoles = exports.doIsContiguous = exports.doIsComplete = void 0;
2352
+ Object.defineProperty(exports, "__esModule", { value: true });
2371
2353
  const U = __importStar(__webpack_require__(/*! ./utils */ "./src/utils.ts"));
2372
2354
  const S = __importStar(__webpack_require__(/*! ./settings */ "./src/settings.ts"));
2373
2355
  //
@@ -2533,7 +2515,8 @@ exports.doIsFreeOfHoles = doIsFreeOfHoles;
2533
2515
  /*!***************************************!*\
2534
2516
  !*** ./static/majority-minority.json ***!
2535
2517
  \***************************************/
2536
- /***/ ((module) => {
2518
+ /*! exports provided: AL, AK, AZ, AR, CA, CO, CT, DC, DE, FL, GA, HI, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA, PR, RI, SC, SD, TN, TX, UT, VT, VA, WA, WV, WI, WY, default */
2519
+ /***/ (function(module) {
2537
2520
 
2538
2521
  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\":[]}}");
2539
2522
 
@@ -2543,7 +2526,8 @@ module.exports = JSON.parse("{\"AL\":{\"Black\":[7],\"Hispanic\":[],\"Pacific\":
2543
2526
  /*!***************************************!*\
2544
2527
  !*** ./static/vra5-preclearance.json ***!
2545
2528
  \***************************************/
2546
- /***/ ((module) => {
2529
+ /*! exports provided: AL, AK, AZ, CA, FL, GA, LA, MI, MS, NY, NC, SC, SD, TX, VA, default */
2530
+ /***/ (function(module) {
2547
2531
 
2548
2532
  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\"}");
2549
2533
 
@@ -2553,9 +2537,10 @@ module.exports = JSON.parse("{\"AL\":\"all\",\"AK\":\"all\",\"AZ\":\"all\",\"CA\
2553
2537
  /*!***************************************!*\
2554
2538
  !*** external "@dra2020/compactness" ***!
2555
2539
  \***************************************/
2556
- /***/ ((module) => {
2540
+ /*! no static exports found */
2541
+ /***/ (function(module, exports) {
2557
2542
 
2558
- module.exports = require("@dra2020/compactness");;
2543
+ module.exports = require("@dra2020/compactness");
2559
2544
 
2560
2545
  /***/ }),
2561
2546
 
@@ -2563,9 +2548,10 @@ module.exports = require("@dra2020/compactness");;
2563
2548
  /*!*************************************!*\
2564
2549
  !*** external "@dra2020/dra-graph" ***!
2565
2550
  \*************************************/
2566
- /***/ ((module) => {
2551
+ /*! no static exports found */
2552
+ /***/ (function(module, exports) {
2567
2553
 
2568
- module.exports = require("@dra2020/dra-graph");;
2554
+ module.exports = require("@dra2020/dra-graph");
2569
2555
 
2570
2556
  /***/ }),
2571
2557
 
@@ -2573,9 +2559,10 @@ module.exports = require("@dra2020/dra-graph");;
2573
2559
  /*!*************************************!*\
2574
2560
  !*** external "@dra2020/dra-score" ***!
2575
2561
  \*************************************/
2576
- /***/ ((module) => {
2562
+ /*! no static exports found */
2563
+ /***/ (function(module, exports) {
2577
2564
 
2578
- module.exports = require("@dra2020/dra-score");;
2565
+ module.exports = require("@dra2020/dra-score");
2579
2566
 
2580
2567
  /***/ }),
2581
2568
 
@@ -2583,9 +2570,10 @@ module.exports = require("@dra2020/dra-score");;
2583
2570
  /*!*************************************!*\
2584
2571
  !*** external "@dra2020/dra-types" ***!
2585
2572
  \*************************************/
2586
- /***/ ((module) => {
2573
+ /*! no static exports found */
2574
+ /***/ (function(module, exports) {
2587
2575
 
2588
- module.exports = require("@dra2020/dra-types");;
2576
+ module.exports = require("@dra2020/dra-types");
2589
2577
 
2590
2578
  /***/ }),
2591
2579
 
@@ -2593,9 +2581,10 @@ module.exports = require("@dra2020/dra-types");;
2593
2581
  /*!********************************!*\
2594
2582
  !*** external "@dra2020/poly" ***!
2595
2583
  \********************************/
2596
- /***/ ((module) => {
2584
+ /*! no static exports found */
2585
+ /***/ (function(module, exports) {
2597
2586
 
2598
- module.exports = require("@dra2020/poly");;
2587
+ module.exports = require("@dra2020/poly");
2599
2588
 
2600
2589
  /***/ }),
2601
2590
 
@@ -2603,9 +2592,10 @@ module.exports = require("@dra2020/poly");;
2603
2592
  /*!*****************************************!*\
2604
2593
  !*** external "@dra2020/racial-voting" ***!
2605
2594
  \*****************************************/
2606
- /***/ ((module) => {
2595
+ /*! no static exports found */
2596
+ /***/ (function(module, exports) {
2607
2597
 
2608
- module.exports = require("@dra2020/racial-voting");;
2598
+ module.exports = require("@dra2020/racial-voting");
2609
2599
 
2610
2600
  /***/ }),
2611
2601
 
@@ -2613,43 +2603,24 @@ module.exports = require("@dra2020/racial-voting");;
2613
2603
  /*!********************************!*\
2614
2604
  !*** external "@dra2020/util" ***!
2615
2605
  \********************************/
2616
- /***/ ((module) => {
2606
+ /*! no static exports found */
2607
+ /***/ (function(module, exports) {
2608
+
2609
+ module.exports = require("@dra2020/util");
2617
2610
 
2618
- module.exports = require("@dra2020/util");;
2611
+ /***/ }),
2612
+
2613
+ /***/ "assert":
2614
+ /*!*************************!*\
2615
+ !*** external "assert" ***!
2616
+ \*************************/
2617
+ /*! no static exports found */
2618
+ /***/ (function(module, exports) {
2619
+
2620
+ module.exports = require("assert");
2619
2621
 
2620
2622
  /***/ })
2621
2623
 
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
- ;
2624
+ /******/ });
2654
2625
  });
2655
2626
  //# sourceMappingURL=district-analytics.js.map