@hpcc-js/marshaller 2.23.103 → 2.23.105

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/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/comms'), require('@hpcc-js/common'), require('@hpcc-js/util'), require('@hpcc-js/chart'), require('@hpcc-js/dgrid'), require('@hpcc-js/form'), require('@hpcc-js/graph'), require('@hpcc-js/map'), require('@hpcc-js/layout'), require('@hpcc-js/phosphor'), require('@hpcc-js/codemirror'), require('@hpcc-js/other')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/comms', '@hpcc-js/common', '@hpcc-js/util', '@hpcc-js/chart', '@hpcc-js/dgrid', '@hpcc-js/form', '@hpcc-js/graph', '@hpcc-js/map', '@hpcc-js/layout', '@hpcc-js/phosphor', '@hpcc-js/codemirror', '@hpcc-js/other'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/marshaller"] = {}, global["@hpcc-js/comms"], global["@hpcc-js/common"], global["@hpcc-js/util"], global["@hpcc-js/chart"], global["@hpcc-js/dgrid"], global["@hpcc-js/form"], global["@hpcc-js/graph"], global["@hpcc-js/map"], global["@hpcc-js/layout"], global["@hpcc-js/phosphor"], global["@hpcc-js/codemirror"], global["@hpcc-js/other"]));
5
- })(this, (function (exports, comms, common, util$6, chart, dgrid, form, graph, map, layout, phosphor, codemirror, other) { 'use strict';
4
+ (global = global || self, factory(global['@hpcc-js/marshaller'] = {}, global['@hpcc-js/comms'], global['@hpcc-js/common'], global['@hpcc-js/util'], global['@hpcc-js/chart'], global['@hpcc-js/dgrid'], global['@hpcc-js/form'], global['@hpcc-js/graph'], global['@hpcc-js/map'], global['@hpcc-js/layout'], global['@hpcc-js/phosphor'], global['@hpcc-js/codemirror'], global['@hpcc-js/other']));
5
+ }(this, (function (exports, comms, common, util$1, chart, dgrid, form, graph, map, layout, phosphor, codemirror, other) { 'use strict';
6
6
 
7
- var PKG_NAME$1 = "@hpcc-js/marshaller";
8
- var PKG_VERSION$1 = "2.23.103";
9
- var BUILD_VERSION = "2.97.0";
7
+ var PKG_NAME = "@hpcc-js/marshaller";
8
+ var PKG_VERSION = "2.23.105";
9
+ var BUILD_VERSION = "2.99.0";
10
10
 
11
11
  /*! *****************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
@@ -39,15 +39,15 @@
39
39
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
40
40
  }
41
41
 
42
- var __assign$1 = function() {
43
- __assign$1 = Object.assign || function __assign(t) {
42
+ var __assign = function() {
43
+ __assign = Object.assign || function __assign(t) {
44
44
  for (var s, i = 1, n = arguments.length; i < n; i++) {
45
45
  s = arguments[i];
46
46
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
47
47
  }
48
48
  return t;
49
49
  };
50
- return __assign$1.apply(this, arguments);
50
+ return __assign.apply(this, arguments);
51
51
  };
52
52
 
53
53
  function __decorate(decorators, target, key, desc) {
@@ -99,14 +99,14 @@
99
99
  }
100
100
  }
101
101
 
102
- function __spreadArray$1(to, from, pack) {
102
+ function __spreadArray(to, from, pack) {
103
103
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
104
104
  if (ar || !(i in from)) {
105
105
  if (!ar) ar = Array.prototype.slice.call(from, 0, i);
106
106
  ar[i] = from[i];
107
107
  }
108
108
  }
109
- return to.concat(ar || Array.prototype.slice.call(from));
109
+ return to.concat(ar || from);
110
110
  }
111
111
 
112
112
  function stringify(obj_from_json) {
@@ -122,9 +122,9 @@
122
122
  // but without quotes around the keys.
123
123
  var props = Object
124
124
  .keys(obj_from_json)
125
- .map(function (key) { return "".concat(key, ": ").concat(stringify(obj_from_json[key])); })
125
+ .map(function (key) { return key + ": " + stringify(obj_from_json[key]); })
126
126
  .join(", ");
127
- return "{ ".concat(props, " }");
127
+ return "{ " + props + " }";
128
128
  }
129
129
  function schemaType2IFieldType(type) {
130
130
  switch (type) {
@@ -223,7 +223,7 @@
223
223
  };
224
224
  Activity.prototype.hash = function (more) {
225
225
  if (more === void 0) { more = {}; }
226
- return util$6.hashSum(__assign$1({}, more));
226
+ return util$1.hashSum(__assign({}, more));
227
227
  };
228
228
  Activity.prototype.refreshMeta = function () {
229
229
  return this._sourceActivity ? this._sourceActivity.refreshMeta() : Promise.resolve();
@@ -296,7 +296,7 @@
296
296
  if (this._prevDataHash !== hash || this._prevInData !== inData) {
297
297
  this._prevDataHash = hash;
298
298
  this._prevInData = inData;
299
- this._prevData = util$6.update(this._prevData, this.computeData());
299
+ this._prevData = util$1.update(this._prevData, this.computeData());
300
300
  }
301
301
  return this._prevData;
302
302
  };
@@ -379,7 +379,7 @@
379
379
  // Activity overrides ---
380
380
  ActivityPipeline.prototype.hash = function (more) {
381
381
  if (more === void 0) { more = {}; }
382
- return util$6.hashSum(__assign$1({ activities: [this.activities().map(function (activity) { return activity.hash(); })] }, more));
382
+ return util$1.hashSum(__assign({ activities: [this.activities().map(function (activity) { return activity.hash(); })] }, more));
383
383
  };
384
384
  ActivityPipeline.prototype.refreshMeta = function () {
385
385
  return this.last().refreshMeta();
@@ -443,7 +443,7 @@
443
443
  // Activity overrides ---
444
444
  ActivitySelection.prototype.hash = function (more) {
445
445
  if (more === void 0) { more = {}; }
446
- return util$6.hashSum(__assign$1({ selection: this.selection().hash() }, more));
446
+ return util$1.hashSum(__assign({ selection: this.selection().hash() }, more));
447
447
  };
448
448
  ActivitySelection.prototype.label = function () {
449
449
  return this.selection().label();
@@ -490,7 +490,7 @@
490
490
  __extends(Datasource, _super);
491
491
  function Datasource() {
492
492
  var _this = _super.call(this) || this;
493
- _this._id = "ds_".concat(++datasourceID);
493
+ _this._id = "ds_" + ++datasourceID;
494
494
  return _this;
495
495
  }
496
496
  return Datasource;
@@ -509,7 +509,7 @@
509
509
  };
510
510
  DatasourceRef.prototype.hash = function (more) {
511
511
  if (more === void 0) { more = {}; }
512
- return _super.prototype.hash.call(this, __assign$1({ datasource: this._datasource ? this._datasource.hash(more) : undefined }, more));
512
+ return _super.prototype.hash.call(this, __assign({ datasource: this._datasource ? this._datasource.hash(more) : undefined }, more));
513
513
  };
514
514
  DatasourceRef.prototype.toDDL = function () {
515
515
  return {
@@ -622,7 +622,7 @@
622
622
  };
623
623
  Form.prototype.hash = function (more) {
624
624
  if (more === void 0) { more = {}; }
625
- return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL() }, more));
625
+ return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL() }, more));
626
626
  };
627
627
  Form.prototype.refreshMeta = function () {
628
628
  return Promise.resolve();
@@ -657,7 +657,7 @@
657
657
  Form.prototype._class += " Form";
658
658
 
659
659
  function fieldType(field) {
660
- if (util$6.isArray(field)) {
660
+ if (util$1.isArray(field)) {
661
661
  return "dataset";
662
662
  }
663
663
  var type = typeof field;
@@ -767,7 +767,7 @@
767
767
  }
768
768
  };
769
769
  Databomb.prototype.hash = function (more) {
770
- return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL(true) }, more)) + this.payload();
770
+ return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL(true) }, more)) + this.payload();
771
771
  };
772
772
  Databomb.prototype.refreshMeta = function () {
773
773
  return Promise.resolve();
@@ -874,7 +874,7 @@
874
874
  _this._schema = [];
875
875
  _this._meta = [];
876
876
  _this._data = [];
877
- _this._exec = util$6.debounce(function () {
877
+ _this._exec = util$1.debounce(function () {
878
878
  if (_this._prevExecHash !== _this.hash()) {
879
879
  _this._prevExecHash = _this.hash();
880
880
  return _super.prototype.exec.call(_this).then(function () {
@@ -889,8 +889,8 @@
889
889
  return Promise.resolve();
890
890
  }
891
891
  });
892
- _this._fetchQ = new util$6.AsyncOrderedQueue();
893
- _this.sample = util$6.debounce(function (samples, sampleSize) {
892
+ _this._fetchQ = new util$1.AsyncOrderedQueue();
893
+ _this.sample = util$1.debounce(function (samples, sampleSize) {
894
894
  if (samples === void 0) { samples = _this.samples(); }
895
895
  if (sampleSize === void 0) { sampleSize = _this.sampleSize(); }
896
896
  var pages = [];
@@ -919,7 +919,7 @@
919
919
  }
920
920
  ESPResult.prototype.hash = function (more) {
921
921
  if (more === void 0) { more = {}; }
922
- return util$6.hashSum(__assign$1({ samples: this.samples(), sampleSize: this.sampleSize() }, more));
922
+ return util$1.hashSum(__assign({ samples: this.samples(), sampleSize: this.sampleSize() }, more));
923
923
  };
924
924
  ESPResult.prototype.refreshMeta = function () {
925
925
  var _this = this;
@@ -1071,7 +1071,7 @@
1071
1071
  });
1072
1072
  };
1073
1073
  WUResult.prototype.label = function () {
1074
- return "".concat(this.wuid(), "\n").concat(this.resultName());
1074
+ return this.wuid() + "\n" + this.resultName();
1075
1075
  };
1076
1076
  __decorate([
1077
1077
  common.publish(null, "widget", "Workunit"),
@@ -1141,7 +1141,7 @@
1141
1141
  return new WU(elementContainer).fromDDL(ddl, skipID);
1142
1142
  };
1143
1143
  WU.prototype.hash = function () {
1144
- return util$6.hashSum({
1144
+ return util$1.hashSum({
1145
1145
  url: this.url(),
1146
1146
  wuid: this.wuid()
1147
1147
  });
@@ -1265,7 +1265,7 @@
1265
1265
  });
1266
1266
  };
1267
1267
  LogicalFile.prototype.label = function () {
1268
- return "".concat(this.logicalFile());
1268
+ return "" + this.logicalFile();
1269
1269
  };
1270
1270
  __decorate([
1271
1271
  common.publish("", "string", "ESP Url (http://x.x.x.x:8010)"),
@@ -1322,7 +1322,7 @@
1322
1322
  var _this = _super.call(this) || this;
1323
1323
  _this._ec = _ec;
1324
1324
  _this._responseFields = {};
1325
- _this._submitQ = new util$6.AsyncOrderedQueue();
1325
+ _this._submitQ = new util$1.AsyncOrderedQueue();
1326
1326
  return _this;
1327
1327
  }
1328
1328
  RestService.prototype.toDDL = function () {
@@ -1354,7 +1354,7 @@
1354
1354
  };
1355
1355
  RestService.prototype.hash = function (more) {
1356
1356
  if (more === void 0) { more = {}; }
1357
- return util$6.hashSum(__assign$1({ url: this.url(), action: this.action(), mode: this.mode() }, more));
1357
+ return util$1.hashSum(__assign({ url: this.url(), action: this.action(), mode: this.mode() }, more));
1358
1358
  };
1359
1359
  RestService.prototype.label = function () {
1360
1360
  return this.action();
@@ -1369,7 +1369,7 @@
1369
1369
  return this.requestFields().filter(function (f) { return f.valid(); });
1370
1370
  };
1371
1371
  RestService.prototype.submit = function (request) {
1372
- var requestHash = util$6.hashSum(request);
1372
+ var requestHash = util$1.hashSum(request);
1373
1373
  if (!this._prevPromise || this._prevRequestHash !== requestHash) {
1374
1374
  this._prevRequestHash = requestHash;
1375
1375
  var conn = comms.createConnection({ baseUrl: this.url(), type: this.mode() });
@@ -1441,12 +1441,12 @@
1441
1441
  };
1442
1442
  RestResult.fromDDL = function (ec, rs, resultName) {
1443
1443
  return new RestResult(ec)
1444
- .id("".concat(rs.id(), "_").concat(resultName))
1444
+ .id(rs.id() + "_" + resultName)
1445
1445
  .service(rs)
1446
1446
  .resultName(resultName);
1447
1447
  };
1448
1448
  RestResult.prototype.serviceID = function () {
1449
- return "".concat(this.service().url(), "/").concat(this.service().action(), "}");
1449
+ return this.service().url() + "/" + this.service().action() + "}";
1450
1450
  };
1451
1451
  RestResult.prototype.sourceHash = function () {
1452
1452
  return this.service().hash();
@@ -1462,10 +1462,10 @@
1462
1462
  };
1463
1463
  RestResult.prototype.hash = function (more) {
1464
1464
  if (more === void 0) { more = {}; }
1465
- return util$6.hashSum(__assign$1({ source: this.sourceHash(), resultName: this.resultName() }, more));
1465
+ return util$1.hashSum(__assign({ source: this.sourceHash(), resultName: this.resultName() }, more));
1466
1466
  };
1467
1467
  RestResult.prototype.label = function () {
1468
- return "".concat(this.service().label(), "\n").concat(this.resultName());
1468
+ return this.service().label() + "\n" + this.resultName();
1469
1469
  };
1470
1470
  RestResult.prototype.jsonDataFields = function () {
1471
1471
  if (!this._jsonData || !this._jsonData.length)
@@ -1526,22 +1526,22 @@
1526
1526
  var retVal = [];
1527
1527
  if (!this.source_valid()) {
1528
1528
  retVal.push({
1529
- source: "".concat(prefix, ".source.").concat(this.source()),
1530
- msg: "Invalid source: \"".concat(this.source(), "\""),
1531
- hint: "expected: ".concat(JSON.stringify(this.visualizationIDs()))
1529
+ source: prefix + ".source." + this.source(),
1530
+ msg: "Invalid source: \"" + this.source() + "\"",
1531
+ hint: "expected: " + JSON.stringify(this.visualizationIDs())
1532
1532
  });
1533
1533
  }
1534
1534
  if (!this.remoteField_valid()) {
1535
1535
  retVal.push({
1536
- source: "".concat(prefix, ".remoteField"),
1537
- msg: "Invalid remoteField: \"".concat(this.remoteField(), "\""),
1538
- hint: "expected: ".concat(JSON.stringify(this.sourceOutFields()))
1536
+ source: prefix + ".remoteField",
1537
+ msg: "Invalid remoteField: \"" + this.remoteField() + "\"",
1538
+ hint: "expected: " + JSON.stringify(this.sourceOutFields())
1539
1539
  });
1540
1540
  }
1541
1541
  if (!this.value_valid()) {
1542
1542
  retVal.push({
1543
- source: "".concat(prefix, ".value"),
1544
- msg: "Invalid value: \"".concat(this.value(), "\""),
1543
+ source: prefix + ".value",
1544
+ msg: "Invalid value: \"" + this.value() + "\"",
1545
1545
  hint: "expected: any value."
1546
1546
  });
1547
1547
  }
@@ -1566,7 +1566,7 @@
1566
1566
  return new Param(ec).fromDDL(ddl);
1567
1567
  };
1568
1568
  Param.prototype.hash = function () {
1569
- return util$6.hashSum({
1569
+ return util$1.hashSum({
1570
1570
  label: this.localField(),
1571
1571
  source: this.source(),
1572
1572
  sourceField: this.remoteField()
@@ -1707,7 +1707,7 @@
1707
1707
  });
1708
1708
  };
1709
1709
  RestResultRef.prototype.label = function () {
1710
- return "".concat(this.datasource().label(), "\n").concat(this.datasource().resultName());
1710
+ return this.datasource().label() + "\n" + this.datasource().resultName();
1711
1711
  };
1712
1712
  RestResultRef.prototype.elementIDs = function () {
1713
1713
  return this._ec.elementIDs();
@@ -1736,7 +1736,7 @@
1736
1736
  var _this = this;
1737
1737
  return this.datasource().refreshMeta().then(function () {
1738
1738
  var oldParams = _this.request();
1739
- var diffs = util$6.compare(oldParams.map(function (p) { return p.localField(); }), _this.datasource().validRequestFields().map(function (ff) { return ff.fieldID(); }));
1739
+ var diffs = util$1.compare(oldParams.map(function (p) { return p.localField(); }), _this.datasource().validRequestFields().map(function (ff) { return ff.fieldID(); }));
1740
1740
  var newParams = oldParams.filter(function (op) { return diffs.update.indexOf(op.localField()) >= 0; });
1741
1741
  _this.request(newParams.concat(diffs.enter.map(function (label) { return new Param(_this._ec).localField(label); })));
1742
1742
  });
@@ -1759,7 +1759,7 @@
1759
1759
  RestResultRef.prototype.exec = function () {
1760
1760
  var _this = this;
1761
1761
  var request = this.formatRequest();
1762
- var requestHash = util$6.hashSum({ hash: this.hash(), request: request });
1762
+ var requestHash = util$1.hashSum({ hash: this.hash(), request: request });
1763
1763
  if (this._prevRequestHash !== requestHash) {
1764
1764
  this._prevRequestHash = requestHash;
1765
1765
  this._prevRequestPromise = this.datasource().submit(request).then(function (response) {
@@ -1787,15 +1787,15 @@
1787
1787
  // "http://10.241.100.157:8002/WsEcl/submit/query/roxie/carmigjx_govbisgsavi.Ins4621360_Service_00000006/json",
1788
1788
  var parts = _.split("/WsEcl/submit/query/");
1789
1789
  if (parts.length < 2)
1790
- throw new Error("Invalid roxie URL: ".concat(_));
1790
+ throw new Error("Invalid roxie URL: " + _);
1791
1791
  var urlParts = parts[0].split(":");
1792
1792
  if (urlParts.length < 3)
1793
- throw new Error("Invalid roxie URL: ".concat(_));
1793
+ throw new Error("Invalid roxie URL: " + _);
1794
1794
  var roxieParts = parts[1].split("/");
1795
1795
  if (roxieParts.length < 2)
1796
- throw new Error("Invalid roxie URL: ".concat(_));
1796
+ throw new Error("Invalid roxie URL: " + _);
1797
1797
  return {
1798
- url: "".concat(urlParts[0], ":").concat(urlParts[1], ":").concat(urlParts[2] === "18002" ? "18010" : "8010"),
1798
+ url: urlParts[0] + ":" + urlParts[1] + ":" + (urlParts[2] === "18002" ? "18010" : "8010"),
1799
1799
  querySet: roxieParts[0],
1800
1800
  queryID: roxieParts[1]
1801
1801
  };
@@ -1814,7 +1814,7 @@
1814
1814
  _this._ec = _ec;
1815
1815
  _this._responseFields = {};
1816
1816
  _this._type = "roxie";
1817
- _this._submitQ = new util$6.AsyncOrderedQueue();
1817
+ _this._submitQ = new util$1.AsyncOrderedQueue();
1818
1818
  return _this;
1819
1819
  }
1820
1820
  RoxieService.prototype.toDDL = function () {
@@ -1849,7 +1849,7 @@
1849
1849
  };
1850
1850
  RoxieService.prototype.hash = function (more) {
1851
1851
  if (more === void 0) { more = {}; }
1852
- return util$6.hashSum(__assign$1({ url: this.url(), querySet: this.querySet(), queryId: this.queryID(), ignoreHipieRequest: this.ignoreHipieRequest(), ignoreHipieResponse: this.ignoreHipieResponse() }, more));
1852
+ return util$1.hashSum(__assign({ url: this.url(), querySet: this.querySet(), queryId: this.queryID(), ignoreHipieRequest: this.ignoreHipieRequest(), ignoreHipieResponse: this.ignoreHipieResponse() }, more));
1853
1853
  };
1854
1854
  RoxieService.prototype.label = function () {
1855
1855
  return this.queryID();
@@ -1895,7 +1895,7 @@
1895
1895
  return this;
1896
1896
  };
1897
1897
  RoxieService.prototype.submit = function (request) {
1898
- var requestHash = util$6.hashSum(request);
1898
+ var requestHash = util$1.hashSum(request);
1899
1899
  if (!this._prevPromise || this._prevRequestHash !== requestHash) {
1900
1900
  this._prevRequestHash = requestHash;
1901
1901
  this._prevPromise = this._submitQ.push(this._query.submit(request));
@@ -1966,12 +1966,12 @@
1966
1966
  };
1967
1967
  RoxieResult.fromDDL = function (ec, rs, resultName) {
1968
1968
  return new RoxieResult(ec)
1969
- .id("".concat(rs.id(), "_").concat(resultName))
1969
+ .id(rs.id() + "_" + resultName)
1970
1970
  .service(rs)
1971
1971
  .resultName(resultName);
1972
1972
  };
1973
1973
  RoxieResult.prototype.serviceID = function () {
1974
- return "".concat(this.service().url(), "/").concat(this.service().querySet(), "/").concat(this.service().queryID());
1974
+ return this.service().url() + "/" + this.service().querySet() + "/" + this.service().queryID();
1975
1975
  };
1976
1976
  RoxieResult.prototype.sourceHash = function () {
1977
1977
  return this.service().hash();
@@ -1987,10 +1987,10 @@
1987
1987
  };
1988
1988
  RoxieResult.prototype.hash = function (more) {
1989
1989
  if (more === void 0) { more = {}; }
1990
- return util$6.hashSum(__assign$1({ source: this.sourceHash(), resultName: this.resultName() }, more));
1990
+ return util$1.hashSum(__assign({ source: this.sourceHash(), resultName: this.resultName() }, more));
1991
1991
  };
1992
1992
  RoxieResult.prototype.label = function () {
1993
- return "".concat(this.service().label(), "\n").concat(this.resultName());
1993
+ return this.service().label() + "\n" + this.resultName();
1994
1994
  };
1995
1995
  RoxieResult.prototype.computeFields = function (inFields) {
1996
1996
  var _this = this;
@@ -2093,7 +2093,7 @@
2093
2093
  });
2094
2094
  };
2095
2095
  RoxieResultRef.prototype.label = function () {
2096
- return "".concat(this.datasource().label(), "\n").concat(this.datasource().resultName());
2096
+ return this.datasource().label() + "\n" + this.datasource().resultName();
2097
2097
  };
2098
2098
  RoxieResultRef.prototype.elementIDs = function () {
2099
2099
  return this._ec.elementIDs();
@@ -2123,7 +2123,7 @@
2123
2123
  var _this = this;
2124
2124
  return this.datasource().refreshMeta().then(function () {
2125
2125
  var oldParams = _this.request();
2126
- var diffs = util$6.compare(oldParams.map(function (p) { return p.localField(); }), _this.datasource().requestFields().map(function (ff) { return ff.id; }));
2126
+ var diffs = util$1.compare(oldParams.map(function (p) { return p.localField(); }), _this.datasource().requestFields().map(function (ff) { return ff.id; }));
2127
2127
  var newParams = oldParams.filter(function (op) { return diffs.update.indexOf(op.localField()) >= 0; });
2128
2128
  _this.request(newParams.concat(diffs.enter.map(function (label) { return new Param(_this._ec).localField(label); })));
2129
2129
  });
@@ -2169,7 +2169,7 @@
2169
2169
  var _this = this;
2170
2170
  return _super.prototype.exec.call(this).then(function () {
2171
2171
  var request = _this.formatRequest();
2172
- var requestHash = util$6.hashSum({ hash: _this.hash(), request: request });
2172
+ var requestHash = util$1.hashSum({ hash: _this.hash(), request: request });
2173
2173
  if (_this._prevRequestHash !== requestHash) {
2174
2174
  _this._prevRequestHash = requestHash;
2175
2175
  _this._prevRequestPromise = _this.datasource().submit(request).then(function (response) {
@@ -2218,7 +2218,7 @@
2218
2218
  var request = {};
2219
2219
  for (var key in _request) {
2220
2220
  request[key] = _request[key];
2221
- request["".concat(key, "_changed")] = true;
2221
+ request[key + "_changed"] = true;
2222
2222
  }
2223
2223
  return request;
2224
2224
  };
@@ -2233,7 +2233,7 @@
2233
2233
  var _this = _super.call(this) || this;
2234
2234
  _this._ec = _ec;
2235
2235
  _this._nullDatasource = emptyDatabomb;
2236
- _this._id = "ds_".concat(++dsPickerID);
2236
+ _this._id = "ds_" + ++dsPickerID;
2237
2237
  var ds = _this._ec.datasources()[0];
2238
2238
  _this.datasourceID(ds.id());
2239
2239
  return _this;
@@ -2290,18 +2290,18 @@
2290
2290
  return this.selection().validate();
2291
2291
  };
2292
2292
  DSPicker.prototype.toDDL = function () {
2293
- return __assign$1(__assign$1({}, this.datasourceRef().toDDL()), { id: this.datasourceID() });
2293
+ return __assign(__assign({}, this.datasourceRef().toDDL()), { id: this.datasourceID() });
2294
2294
  };
2295
2295
  // Activity overrides ---
2296
2296
  DSPicker.prototype.hash = function (more) {
2297
2297
  if (more === void 0) { more = {}; }
2298
- return _super.prototype.hash.call(this, __assign$1({}, more));
2298
+ return _super.prototype.hash.call(this, __assign({}, more));
2299
2299
  };
2300
2300
  DSPicker.prototype.datasourceIDs = function () {
2301
2301
  return this._ec.datasources().map(function (ds) {
2302
2302
  return {
2303
2303
  value: ds.id(),
2304
- text: "".concat(ds.label(), " ").concat(ds.id() !== ds.label() ? " (".concat(ds.id(), ")") : "")
2304
+ text: ds.label() + " " + (ds.id() !== ds.label() ? " (" + ds.id() + ")" : "")
2305
2305
  };
2306
2306
  });
2307
2307
  };
@@ -2317,23 +2317,8 @@
2317
2317
  }(ActivitySelection));
2318
2318
  DSPicker.prototype._class += " DSPicker";
2319
2319
 
2320
- function _mergeNamespaces$1(n, m) {
2321
- m.forEach(function (e) {
2322
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
2323
- if (k !== 'default' && !(k in n)) {
2324
- var d = Object.getOwnPropertyDescriptor(e, k);
2325
- Object.defineProperty(n, k, d.get ? d : {
2326
- enumerable: true,
2327
- get: function () { return e[k]; }
2328
- });
2329
- }
2330
- });
2331
- });
2332
- return Object.freeze(n);
2333
- }
2334
-
2335
- var PKG_NAME = "@hpcc-js/ddl-shim";
2336
- var PKG_VERSION = "2.17.21";
2320
+ var PKG_NAME$1 = "@hpcc-js/ddl-shim";
2321
+ var PKG_VERSION$1 = "2.17.23";
2337
2322
 
2338
2323
  function isWorkunitDatasource(ref) {
2339
2324
  return ref.WUID !== undefined;
@@ -2398,7 +2383,7 @@
2398
2383
  }
2399
2384
  var VisibilitySet = ["normal", "flyout"];
2400
2385
 
2401
- var v2$1 = /*#__PURE__*/Object.freeze({
2386
+ var v2 = /*#__PURE__*/Object.freeze({
2402
2387
  __proto__: null,
2403
2388
  isDatabombRef: isDatabombRef,
2404
2389
  isWUResultRef: isWUResultRef,
@@ -2428,25 +2413,25 @@
2428
2413
  PERFORMANCE OF THIS SOFTWARE.
2429
2414
  ***************************************************************************** */
2430
2415
 
2431
- var __assign = function() {
2432
- __assign = Object.assign || function __assign(t) {
2416
+ var __assign$1 = function() {
2417
+ __assign$1 = Object.assign || function __assign(t) {
2433
2418
  for (var s, i = 1, n = arguments.length; i < n; i++) {
2434
2419
  s = arguments[i];
2435
2420
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2436
2421
  }
2437
2422
  return t;
2438
2423
  };
2439
- return __assign.apply(this, arguments);
2424
+ return __assign$1.apply(this, arguments);
2440
2425
  };
2441
2426
 
2442
- function __spreadArray(to, from, pack) {
2427
+ function __spreadArray$1(to, from, pack) {
2443
2428
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
2444
2429
  if (ar || !(i in from)) {
2445
2430
  if (!ar) ar = Array.prototype.slice.call(from, 0, i);
2446
2431
  ar[i] = from[i];
2447
2432
  }
2448
2433
  }
2449
- return to.concat(ar || Array.prototype.slice.call(from));
2434
+ return to.concat(ar || from);
2450
2435
  }
2451
2436
 
2452
2437
  var classMappings = {
@@ -2662,7 +2647,7 @@
2662
2647
  });
2663
2648
  return retVal;
2664
2649
  }
2665
- function upgrade$1(ddl2, dermObj) {
2650
+ function upgrade(ddl2, dermObj) {
2666
2651
  apply_to_dataviews(ddl2, dermObj);
2667
2652
  return apply_to_properties_layout(ddl2, dermObj);
2668
2653
  }
@@ -2882,7 +2867,7 @@
2882
2867
  break;
2883
2868
  default:
2884
2869
  groupByColumns.push(this.toLowerCase(field.id));
2885
- throw new Error("Unhandled field function: ".concat(field.properties.function));
2870
+ throw new Error("Unhandled field function: " + field.properties.function);
2886
2871
  }
2887
2872
  }
2888
2873
  else {
@@ -2893,7 +2878,7 @@
2893
2878
  this._ddl2DataviewActivities[viz.id].project.transformations = projectTransformations;
2894
2879
  }
2895
2880
  if (aggrFields.length) {
2896
- this._ddl2DataviewActivities[viz.id].groupBy.groupByIDs = __spreadArray([], groupByColumns, true);
2881
+ this._ddl2DataviewActivities[viz.id].groupBy.groupByIDs = __spreadArray$1([], groupByColumns);
2897
2882
  this._ddl2DataviewActivities[viz.id].groupBy.aggregates = aggrFields;
2898
2883
  }
2899
2884
  }
@@ -2911,7 +2896,7 @@
2911
2896
  case "MAX":
2912
2897
  return "max";
2913
2898
  }
2914
- throw new Error("Unknown DDL1 Function Type: ".concat(func));
2899
+ throw new Error("Unknown DDL1 Function Type: " + func);
2915
2900
  };
2916
2901
  DDLUpgrade.prototype.readMappings = function () {
2917
2902
  for (var _i = 0, _a = this._ddl.dashboards; _i < _a.length; _i++) {
@@ -2938,7 +2923,7 @@
2938
2923
  this.readSliderMappings(viz);
2939
2924
  }
2940
2925
  else {
2941
- throw new Error("Unkown DDL1 mapping type: ".concat(viz.type));
2926
+ throw new Error("Unkown DDL1 mapping type: " + viz.type);
2942
2927
  }
2943
2928
  }
2944
2929
  }
@@ -3053,7 +3038,7 @@
3053
3038
  var flag = _a[_i];
3054
3039
  if (flag.fieldid) {
3055
3040
  mappings.transformations.push({
3056
- fieldID: "annotation_".concat(idx++),
3041
+ fieldID: "annotation_" + idx++,
3057
3042
  type: "map",
3058
3043
  sourceFieldID: this.toLowerCase(flag.fieldid),
3059
3044
  default: {},
@@ -3112,7 +3097,7 @@
3112
3097
  var mapping = update.mappings[key];
3113
3098
  var dsFilter = (mapping && dsFilters[mapping]) ? dsFilters[mapping].filter : undefined;
3114
3099
  if (!dsFilter) {
3115
- console.warn("Select Mapping \"".concat(mapping, "\" in viz \"").concat(viz.id, "\" not found in filters for \"").concat(otherViz.id, "\""));
3100
+ console.warn("Select Mapping \"" + mapping + "\" in viz \"" + viz.id + "\" not found in filters for \"" + otherViz.id + "\"");
3116
3101
  }
3117
3102
  else {
3118
3103
  condition.mappings.push({
@@ -3223,7 +3208,7 @@
3223
3208
  groupBy,
3224
3209
  limit
3225
3210
  ],
3226
- visualization: __assign(__assign({ id: viz.id, title: viz.title || "", description: "", visibility: viz.properties && viz.properties.flyout === true ? "flyout" : "normal" }, this.type2chartType(viz.type)), { mappings: mappings, properties: (viz.properties || {}) })
3211
+ visualization: __assign$1(__assign$1({ id: viz.id, title: viz.title || "", description: "", visibility: viz.properties && viz.properties.flyout === true ? "flyout" : "normal" }, this.type2chartType(viz.type)), { mappings: mappings, properties: (viz.properties || {}) })
3227
3212
  };
3228
3213
  };
3229
3214
  DDLUpgrade.prototype.type2chartType = function (chartType) {
@@ -3353,8 +3338,8 @@
3353
3338
  return {
3354
3339
  version: "2.2.1",
3355
3340
  createdBy: {
3356
- name: PKG_NAME,
3357
- version: PKG_VERSION
3341
+ name: PKG_NAME$1,
3342
+ version: PKG_VERSION$1
3358
3343
  },
3359
3344
  datasources: this.writeDatasources(),
3360
3345
  dataviews: this.writeDataviews(),
@@ -3363,24 +3348,43 @@
3363
3348
  };
3364
3349
  return DDLUpgrade;
3365
3350
  }());
3366
- function upgrade(ddl, baseUrl, wuid, toLowerCase, dermatologyJson) {
3351
+ function upgrade$1(ddl, baseUrl, wuid, toLowerCase, dermatologyJson) {
3367
3352
  if (toLowerCase === void 0) { toLowerCase = true; }
3368
3353
  if (dermatologyJson === void 0) { dermatologyJson = {}; }
3369
3354
  var ddlUp = new DDLUpgrade(ddl, baseUrl, wuid, toLowerCase);
3370
3355
  var retVal = ddlUp.write();
3371
- retVal.properties = upgrade$1(retVal, dermatologyJson);
3356
+ retVal.properties = upgrade(retVal, dermatologyJson);
3372
3357
  return retVal;
3373
3358
  }
3374
3359
 
3375
3360
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
3376
3361
 
3377
- var uri_all = {exports: {}};
3362
+ function unwrapExports (x) {
3363
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
3364
+ }
3378
3365
 
3379
- /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
3366
+ function createCommonjsModule(fn, basedir, module) {
3367
+ return module = {
3368
+ path: basedir,
3369
+ exports: {},
3370
+ require: function (path, base) {
3371
+ return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
3372
+ }
3373
+ }, fn(module, module.exports), module.exports;
3374
+ }
3375
+
3376
+ function getCjsExportFromNamespace (n) {
3377
+ return n && n['default'] || n;
3378
+ }
3379
+
3380
+ function commonjsRequire () {
3381
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
3382
+ }
3380
3383
 
3381
- (function (module, exports) {
3384
+ var uri_all = createCommonjsModule(function (module, exports) {
3385
+ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
3382
3386
  (function (global, factory) {
3383
- factory(exports) ;
3387
+ factory(exports) ;
3384
3388
  }(commonjsGlobal, (function (exports) {
3385
3389
  function merge() {
3386
3390
  for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
@@ -3434,10 +3438,10 @@
3434
3438
  //subset, excludes bidi control characters
3435
3439
  IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]",
3436
3440
  //subset
3437
- UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$);
3438
- subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*");
3439
- subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*");
3440
- var DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$),
3441
+ UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$),
3442
+ SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"),
3443
+ USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"),
3444
+ DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$),
3441
3445
  //relaxed parsing rules
3442
3446
  IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$),
3443
3447
  H16$ = subexp(HEXDIG$$ + "{1,4}"),
@@ -3461,14 +3465,14 @@
3461
3465
  IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"),
3462
3466
  //[ *6( h16 ":" ) h16 ] "::"
3463
3467
  IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")),
3464
- ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+");
3468
+ ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"),
3465
3469
  //RFC 6874, with relaxed parsing rules
3466
- subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+");
3470
+ IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"),
3467
3471
  //RFC 6874
3468
- subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*");
3469
- var PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]"));
3470
- subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+");
3471
- subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*");
3472
+ REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"),
3473
+ PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")),
3474
+ SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"),
3475
+ QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*");
3472
3476
  return {
3473
3477
  NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
3474
3478
  NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
@@ -4582,7 +4586,7 @@
4582
4586
 
4583
4587
  var O = {};
4584
4588
  //RFC 3986
4585
- var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + ("\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" ) + "]";
4589
+ var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + ( "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" ) + "]";
4586
4590
  var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
4587
4591
  var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
4588
4592
  //RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
@@ -4780,7 +4784,9 @@
4780
4784
 
4781
4785
  })));
4782
4786
 
4783
- }(uri_all, uri_all.exports));
4787
+ });
4788
+
4789
+ unwrapExports(uri_all);
4784
4790
 
4785
4791
  var isArray = Array.isArray;
4786
4792
  var keyList = Object.keys;
@@ -4838,7 +4844,7 @@
4838
4844
 
4839
4845
  // https://mathiasbynens.be/notes/javascript-encoding
4840
4846
  // https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
4841
- var ucs2length$1 = function ucs2length(str) {
4847
+ var ucs2length = function ucs2length(str) {
4842
4848
  var length = 0
4843
4849
  , len = str.length
4844
4850
  , pos = 0
@@ -4855,16 +4861,16 @@
4855
4861
  return length;
4856
4862
  };
4857
4863
 
4858
- var util$5 = {
4864
+ var util = {
4859
4865
  copy: copy,
4860
4866
  checkDataType: checkDataType,
4861
4867
  checkDataTypes: checkDataTypes,
4862
4868
  coerceToTypes: coerceToTypes,
4863
- toHash: toHash$1,
4869
+ toHash: toHash,
4864
4870
  getProperty: getProperty,
4865
4871
  escapeQuotes: escapeQuotes,
4866
4872
  equal: fastDeepEqual,
4867
- ucs2length: ucs2length$1,
4873
+ ucs2length: ucs2length,
4868
4874
  varOccurences: varOccurences,
4869
4875
  varReplace: varReplace,
4870
4876
  cleanUpCode: cleanUpCode,
@@ -4914,7 +4920,7 @@
4914
4920
  case 1: return checkDataType(dataTypes[0], data, true);
4915
4921
  default:
4916
4922
  var code = '';
4917
- var types = toHash$1(dataTypes);
4923
+ var types = toHash(dataTypes);
4918
4924
  if (types.array && types.object) {
4919
4925
  code = types.null ? '(': '(!' + data + ' || ';
4920
4926
  code += 'typeof ' + data + ' !== "object")';
@@ -4931,7 +4937,7 @@
4931
4937
  }
4932
4938
 
4933
4939
 
4934
- var COERCE_TO_TYPES = toHash$1([ 'string', 'number', 'integer', 'boolean', 'null' ]);
4940
+ var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);
4935
4941
  function coerceToTypes(optionCoerceTypes, dataTypes) {
4936
4942
  if (Array.isArray(dataTypes)) {
4937
4943
  var types = [];
@@ -4949,19 +4955,19 @@
4949
4955
  }
4950
4956
 
4951
4957
 
4952
- function toHash$1(arr) {
4958
+ function toHash(arr) {
4953
4959
  var hash = {};
4954
4960
  for (var i=0; i<arr.length; i++) hash[arr[i]] = true;
4955
4961
  return hash;
4956
4962
  }
4957
4963
 
4958
4964
 
4959
- var IDENTIFIER$1 = /^[a-z$_][a-z$_0-9]*$/i;
4965
+ var IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
4960
4966
  var SINGLE_QUOTE = /'|\\/g;
4961
4967
  function getProperty(key) {
4962
4968
  return typeof key == 'number'
4963
4969
  ? '[' + key + ']'
4964
- : IDENTIFIER$1.test(key)
4970
+ : IDENTIFIER.test(key)
4965
4971
  ? '.' + key
4966
4972
  : "['" + escapeQuotes(key) + "']";
4967
4973
  }
@@ -5065,17 +5071,17 @@
5065
5071
  }
5066
5072
 
5067
5073
 
5068
- var JSON_POINTER$1 = /^\/(?:[^~]|~0|~1)*$/;
5069
- var RELATIVE_JSON_POINTER$1 = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
5074
+ var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
5075
+ var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
5070
5076
  function getData($data, lvl, paths) {
5071
5077
  var up, jsonPointer, data, matches;
5072
5078
  if ($data === '') return 'rootData';
5073
5079
  if ($data[0] == '/') {
5074
- if (!JSON_POINTER$1.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
5080
+ if (!JSON_POINTER.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
5075
5081
  jsonPointer = $data;
5076
5082
  data = 'rootData';
5077
5083
  } else {
5078
- matches = $data.match(RELATIVE_JSON_POINTER$1);
5084
+ matches = $data.match(RELATIVE_JSON_POINTER);
5079
5085
  if (!matches) throw new Error('Invalid JSON-pointer: ' + $data);
5080
5086
  up = +matches[1];
5081
5087
  jsonPointer = matches[2];
@@ -5127,17 +5133,15 @@
5127
5133
  return str.replace(/~1/g, '/').replace(/~0/g, '~');
5128
5134
  }
5129
5135
 
5130
- var util$4 = util$5;
5136
+ var schema_obj = SchemaObject;
5131
5137
 
5132
- var schema_obj = SchemaObject$2;
5133
-
5134
- function SchemaObject$2(obj) {
5135
- util$4.copy(obj, this);
5138
+ function SchemaObject(obj) {
5139
+ util.copy(obj, this);
5136
5140
  }
5137
5141
 
5138
- var jsonSchemaTraverse = {exports: {}};
5142
+ var jsonSchemaTraverse = createCommonjsModule(function (module) {
5139
5143
 
5140
- var traverse$1 = jsonSchemaTraverse.exports = function (schema, opts, cb) {
5144
+ var traverse = module.exports = function (schema, opts, cb) {
5141
5145
  // Legacy support for v0.3.1 and earlier.
5142
5146
  if (typeof opts == 'function') {
5143
5147
  cb = opts;
@@ -5152,7 +5156,7 @@
5152
5156
  };
5153
5157
 
5154
5158
 
5155
- traverse$1.keywords = {
5159
+ traverse.keywords = {
5156
5160
  additionalItems: true,
5157
5161
  items: true,
5158
5162
  contains: true,
@@ -5161,21 +5165,21 @@
5161
5165
  not: true
5162
5166
  };
5163
5167
 
5164
- traverse$1.arrayKeywords = {
5168
+ traverse.arrayKeywords = {
5165
5169
  items: true,
5166
5170
  allOf: true,
5167
5171
  anyOf: true,
5168
5172
  oneOf: true
5169
5173
  };
5170
5174
 
5171
- traverse$1.propsKeywords = {
5175
+ traverse.propsKeywords = {
5172
5176
  definitions: true,
5173
5177
  properties: true,
5174
5178
  patternProperties: true,
5175
5179
  dependencies: true
5176
5180
  };
5177
5181
 
5178
- traverse$1.skipKeywords = {
5182
+ traverse.skipKeywords = {
5179
5183
  default: true,
5180
5184
  enum: true,
5181
5185
  const: true,
@@ -5203,16 +5207,16 @@
5203
5207
  for (var key in schema) {
5204
5208
  var sch = schema[key];
5205
5209
  if (Array.isArray(sch)) {
5206
- if (key in traverse$1.arrayKeywords) {
5210
+ if (key in traverse.arrayKeywords) {
5207
5211
  for (var i=0; i<sch.length; i++)
5208
5212
  _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);
5209
5213
  }
5210
- } else if (key in traverse$1.propsKeywords) {
5214
+ } else if (key in traverse.propsKeywords) {
5211
5215
  if (sch && typeof sch == 'object') {
5212
5216
  for (var prop in sch)
5213
5217
  _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
5214
5218
  }
5215
- } else if (key in traverse$1.keywords || (opts.allKeys && !(key in traverse$1.skipKeywords))) {
5219
+ } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {
5216
5220
  _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);
5217
5221
  }
5218
5222
  }
@@ -5224,21 +5228,16 @@
5224
5228
  function escapeJsonPtr(str) {
5225
5229
  return str.replace(/~/g, '~0').replace(/\//g, '~1');
5226
5230
  }
5231
+ });
5227
5232
 
5228
- var URI$1 = uri_all.exports
5229
- , equal$1 = fastDeepEqual
5230
- , util$3 = util$5
5231
- , SchemaObject$1 = schema_obj
5232
- , traverse = jsonSchemaTraverse.exports;
5233
-
5234
- var resolve_1 = resolve$3;
5233
+ var resolve_1 = resolve;
5235
5234
 
5236
- resolve$3.normalizeId = normalizeId;
5237
- resolve$3.fullPath = getFullPath;
5238
- resolve$3.url = resolveUrl;
5239
- resolve$3.ids = resolveIds;
5240
- resolve$3.inlineRef = inlineRef;
5241
- resolve$3.schema = resolveSchema;
5235
+ resolve.normalizeId = normalizeId;
5236
+ resolve.fullPath = getFullPath;
5237
+ resolve.url = resolveUrl;
5238
+ resolve.ids = resolveIds;
5239
+ resolve.inlineRef = inlineRef;
5240
+ resolve.schema = resolveSchema;
5242
5241
 
5243
5242
  /**
5244
5243
  * [resolve and compile the references ($ref)]
@@ -5248,16 +5247,16 @@
5248
5247
  * @param {String} ref reference to resolve
5249
5248
  * @return {Object|Function} schema object (if the schema can be inlined) or validation function
5250
5249
  */
5251
- function resolve$3(compile, root, ref) {
5250
+ function resolve(compile, root, ref) {
5252
5251
  /* jshint validthis: true */
5253
5252
  var refVal = this._refs[ref];
5254
5253
  if (typeof refVal == 'string') {
5255
5254
  if (this._refs[refVal]) refVal = this._refs[refVal];
5256
- else return resolve$3.call(this, compile, root, refVal);
5255
+ else return resolve.call(this, compile, root, refVal);
5257
5256
  }
5258
5257
 
5259
5258
  refVal = refVal || this._schemas[ref];
5260
- if (refVal instanceof SchemaObject$1) {
5259
+ if (refVal instanceof schema_obj) {
5261
5260
  return inlineRef(refVal.schema, this._opts.inlineRefs)
5262
5261
  ? refVal.schema
5263
5262
  : refVal.validate || this._compile(refVal);
@@ -5271,7 +5270,7 @@
5271
5270
  baseId = res.baseId;
5272
5271
  }
5273
5272
 
5274
- if (schema instanceof SchemaObject$1) {
5273
+ if (schema instanceof schema_obj) {
5275
5274
  v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);
5276
5275
  } else if (schema !== undefined) {
5277
5276
  v = inlineRef(schema, this._opts.inlineRefs)
@@ -5292,7 +5291,7 @@
5292
5291
  */
5293
5292
  function resolveSchema(root, ref) {
5294
5293
  /* jshint validthis: true */
5295
- var p = URI$1.parse(ref)
5294
+ var p = uri_all.parse(ref)
5296
5295
  , refPath = _getFullPath(p)
5297
5296
  , baseId = getFullPath(this._getId(root.schema));
5298
5297
  if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
@@ -5300,12 +5299,12 @@
5300
5299
  var refVal = this._refs[id];
5301
5300
  if (typeof refVal == 'string') {
5302
5301
  return resolveRecursive.call(this, root, refVal, p);
5303
- } else if (refVal instanceof SchemaObject$1) {
5302
+ } else if (refVal instanceof schema_obj) {
5304
5303
  if (!refVal.validate) this._compile(refVal);
5305
5304
  root = refVal;
5306
5305
  } else {
5307
5306
  refVal = this._schemas[id];
5308
- if (refVal instanceof SchemaObject$1) {
5307
+ if (refVal instanceof schema_obj) {
5309
5308
  if (!refVal.validate) this._compile(refVal);
5310
5309
  if (id == normalizeId(ref))
5311
5310
  return { schema: refVal, root: root, baseId: baseId };
@@ -5336,7 +5335,7 @@
5336
5335
  }
5337
5336
 
5338
5337
 
5339
- var PREVENT_SCOPE_CHANGE = util$3.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
5338
+ var PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
5340
5339
  /* @this Ajv */
5341
5340
  function getJsonPointer(parsedRef, baseId, schema, root) {
5342
5341
  /* jshint validthis: true */
@@ -5347,7 +5346,7 @@
5347
5346
  for (var i = 1; i < parts.length; i++) {
5348
5347
  var part = parts[i];
5349
5348
  if (part) {
5350
- part = util$3.unescapeFragment(part);
5349
+ part = util.unescapeFragment(part);
5351
5350
  schema = schema[part];
5352
5351
  if (schema === undefined) break;
5353
5352
  var id;
@@ -5371,7 +5370,7 @@
5371
5370
  }
5372
5371
 
5373
5372
 
5374
- var SIMPLE_INLINED = util$3.toHash([
5373
+ var SIMPLE_INLINED = util.toHash([
5375
5374
  'type', 'format', 'pattern',
5376
5375
  'maxLength', 'minLength',
5377
5376
  'maxProperties', 'minProperties',
@@ -5431,13 +5430,13 @@
5431
5430
 
5432
5431
  function getFullPath(id, normalize) {
5433
5432
  if (normalize !== false) id = normalizeId(id);
5434
- var p = URI$1.parse(id);
5433
+ var p = uri_all.parse(id);
5435
5434
  return _getFullPath(p);
5436
5435
  }
5437
5436
 
5438
5437
 
5439
5438
  function _getFullPath(p) {
5440
- return URI$1.serialize(p).split('#')[0] + '#';
5439
+ return uri_all.serialize(p).split('#')[0] + '#';
5441
5440
  }
5442
5441
 
5443
5442
 
@@ -5449,7 +5448,7 @@
5449
5448
 
5450
5449
  function resolveUrl(baseId, id) {
5451
5450
  id = normalizeId(id);
5452
- return URI$1.resolve(baseId, id);
5451
+ return uri_all.resolve(baseId, id);
5453
5452
  }
5454
5453
 
5455
5454
 
@@ -5461,25 +5460,25 @@
5461
5460
  var localRefs = {};
5462
5461
  var self = this;
5463
5462
 
5464
- traverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
5463
+ jsonSchemaTraverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
5465
5464
  if (jsonPtr === '') return;
5466
5465
  var id = self._getId(sch);
5467
5466
  var baseId = baseIds[parentJsonPtr];
5468
5467
  var fullPath = fullPaths[parentJsonPtr] + '/' + parentKeyword;
5469
5468
  if (keyIndex !== undefined)
5470
- fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util$3.escapeFragment(keyIndex));
5469
+ fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util.escapeFragment(keyIndex));
5471
5470
 
5472
5471
  if (typeof id == 'string') {
5473
- id = baseId = normalizeId(baseId ? URI$1.resolve(baseId, id) : id);
5472
+ id = baseId = normalizeId(baseId ? uri_all.resolve(baseId, id) : id);
5474
5473
 
5475
5474
  var refVal = self._refs[id];
5476
5475
  if (typeof refVal == 'string') refVal = self._refs[refVal];
5477
5476
  if (refVal && refVal.schema) {
5478
- if (!equal$1(sch, refVal.schema))
5477
+ if (!fastDeepEqual(sch, refVal.schema))
5479
5478
  throw new Error('id "' + id + '" resolves to more than one schema');
5480
5479
  } else if (id != normalizeId(fullPath)) {
5481
5480
  if (id[0] == '#') {
5482
- if (localRefs[id] && !equal$1(sch, localRefs[id]))
5481
+ if (localRefs[id] && !fastDeepEqual(sch, localRefs[id]))
5483
5482
  throw new Error('id "' + id + '" resolves to more than one schema');
5484
5483
  localRefs[id] = sch;
5485
5484
  } else {
@@ -5494,30 +5493,28 @@
5494
5493
  return localRefs;
5495
5494
  }
5496
5495
 
5497
- var resolve$2 = resolve_1;
5498
-
5499
5496
  var error_classes = {
5500
- Validation: errorSubclass(ValidationError$1),
5501
- MissingRef: errorSubclass(MissingRefError$1)
5497
+ Validation: errorSubclass(ValidationError),
5498
+ MissingRef: errorSubclass(MissingRefError)
5502
5499
  };
5503
5500
 
5504
5501
 
5505
- function ValidationError$1(errors) {
5502
+ function ValidationError(errors) {
5506
5503
  this.message = 'validation failed';
5507
5504
  this.errors = errors;
5508
5505
  this.ajv = this.validation = true;
5509
5506
  }
5510
5507
 
5511
5508
 
5512
- MissingRefError$1.message = function (baseId, ref) {
5509
+ MissingRefError.message = function (baseId, ref) {
5513
5510
  return 'can\'t resolve reference ' + ref + ' from id ' + baseId;
5514
5511
  };
5515
5512
 
5516
5513
 
5517
- function MissingRefError$1(baseId, ref, message) {
5518
- this.message = message || MissingRefError$1.message(baseId, ref);
5519
- this.missingRef = resolve$2.url(baseId, ref);
5520
- this.missingSchema = resolve$2.normalizeId(resolve$2.fullPath(this.missingRef));
5514
+ function MissingRefError(baseId, ref, message) {
5515
+ this.message = message || MissingRefError.message(baseId, ref);
5516
+ this.missingRef = resolve_1.url(baseId, ref);
5517
+ this.missingSchema = resolve_1.normalizeId(resolve_1.fullPath(this.missingRef));
5521
5518
  }
5522
5519
 
5523
5520
 
@@ -5585,7 +5582,7 @@
5585
5582
  })(data);
5586
5583
  };
5587
5584
 
5588
- var validate$1 = function generate_validate(it, $keyword, $ruleType) {
5585
+ var validate = function generate_validate(it, $keyword, $ruleType) {
5589
5586
  var out = '';
5590
5587
  var $async = it.schema.$async === true,
5591
5588
  $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),
@@ -6079,24 +6076,17 @@
6079
6076
  return out;
6080
6077
  };
6081
6078
 
6082
- var resolve$1 = resolve_1
6083
- , util$2 = util$5
6084
- , errorClasses$1 = error_classes
6085
- , stableStringify$1 = fastJsonStableStringify;
6086
-
6087
- var validateGenerator = validate$1;
6088
-
6089
6079
  /**
6090
6080
  * Functions below are used inside compiled validations function
6091
6081
  */
6092
6082
 
6093
- var ucs2length = util$2.ucs2length;
6094
- var equal = fastDeepEqual;
6083
+ var ucs2length$1 = util.ucs2length;
6084
+
6095
6085
 
6096
6086
  // this error is thrown by async schemas to return validation errors via exception
6097
- var ValidationError = errorClasses$1.Validation;
6087
+ var ValidationError$1 = error_classes.Validation;
6098
6088
 
6099
- var compile_1 = compile$1;
6089
+ var compile_1 = compile;
6100
6090
 
6101
6091
 
6102
6092
  /**
@@ -6108,7 +6098,7 @@
6108
6098
  * @param {String} baseId base ID for IDs in the schema
6109
6099
  * @return {Function} validation function
6110
6100
  */
6111
- function compile$1(schema, root, localRefs, baseId) {
6101
+ function compile(schema, root, localRefs, baseId) {
6112
6102
  /* jshint validthis: true, evil: true */
6113
6103
  /* eslint no-shadow: 0 */
6114
6104
  var self = this
@@ -6160,11 +6150,11 @@
6160
6150
  function localCompile(_schema, _root, localRefs, baseId) {
6161
6151
  var isRoot = !_root || (_root && _root.schema == _schema);
6162
6152
  if (_root.schema != root.schema)
6163
- return compile$1.call(self, _schema, _root, localRefs, baseId);
6153
+ return compile.call(self, _schema, _root, localRefs, baseId);
6164
6154
 
6165
6155
  var $async = _schema.$async === true;
6166
6156
 
6167
- var sourceCode = validateGenerator({
6157
+ var sourceCode = validate({
6168
6158
  isTop: true,
6169
6159
  schema: _schema,
6170
6160
  isRoot: isRoot,
@@ -6173,11 +6163,11 @@
6173
6163
  schemaPath: '',
6174
6164
  errSchemaPath: '#',
6175
6165
  errorPath: '""',
6176
- MissingRefError: errorClasses$1.MissingRef,
6166
+ MissingRefError: error_classes.MissingRef,
6177
6167
  RULES: RULES,
6178
- validate: validateGenerator,
6179
- util: util$2,
6180
- resolve: resolve$1,
6168
+ validate: validate,
6169
+ util: util,
6170
+ resolve: resolve_1,
6181
6171
  resolveRef: resolveRef,
6182
6172
  usePattern: usePattern,
6183
6173
  useDefault: useDefault,
@@ -6189,12 +6179,12 @@
6189
6179
  });
6190
6180
 
6191
6181
  sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)
6192
- + vars(defaults, defaultCode) + vars(customRules, customRuleCode$1)
6182
+ + vars(defaults, defaultCode) + vars(customRules, customRuleCode)
6193
6183
  + sourceCode;
6194
6184
 
6195
6185
  if (opts.processCode) sourceCode = opts.processCode(sourceCode);
6196
6186
  // console.log('\n\n\n *** \n', JSON.stringify(sourceCode));
6197
- var validate;
6187
+ var validate$1;
6198
6188
  try {
6199
6189
  var makeValidate = new Function(
6200
6190
  'self',
@@ -6210,7 +6200,7 @@
6210
6200
  sourceCode
6211
6201
  );
6212
6202
 
6213
- validate = makeValidate(
6203
+ validate$1 = makeValidate(
6214
6204
  self,
6215
6205
  RULES,
6216
6206
  formats,
@@ -6218,36 +6208,36 @@
6218
6208
  refVal,
6219
6209
  defaults,
6220
6210
  customRules,
6221
- equal,
6222
- ucs2length,
6223
- ValidationError
6211
+ fastDeepEqual,
6212
+ ucs2length$1,
6213
+ ValidationError$1
6224
6214
  );
6225
6215
 
6226
- refVal[0] = validate;
6216
+ refVal[0] = validate$1;
6227
6217
  } catch(e) {
6228
6218
  self.logger.error('Error compiling schema, function code:', sourceCode);
6229
6219
  throw e;
6230
6220
  }
6231
6221
 
6232
- validate.schema = _schema;
6233
- validate.errors = null;
6234
- validate.refs = refs;
6235
- validate.refVal = refVal;
6236
- validate.root = isRoot ? validate : _root;
6237
- if ($async) validate.$async = true;
6222
+ validate$1.schema = _schema;
6223
+ validate$1.errors = null;
6224
+ validate$1.refs = refs;
6225
+ validate$1.refVal = refVal;
6226
+ validate$1.root = isRoot ? validate$1 : _root;
6227
+ if ($async) validate$1.$async = true;
6238
6228
  if (opts.sourceCode === true) {
6239
- validate.source = {
6229
+ validate$1.source = {
6240
6230
  code: sourceCode,
6241
6231
  patterns: patterns,
6242
6232
  defaults: defaults
6243
6233
  };
6244
6234
  }
6245
6235
 
6246
- return validate;
6236
+ return validate$1;
6247
6237
  }
6248
6238
 
6249
6239
  function resolveRef(baseId, ref, isRoot) {
6250
- ref = resolve$1.url(baseId, ref);
6240
+ ref = resolve_1.url(baseId, ref);
6251
6241
  var refIndex = refs[ref];
6252
6242
  var _refVal, refCode;
6253
6243
  if (refIndex !== undefined) {
@@ -6265,13 +6255,13 @@
6265
6255
  }
6266
6256
 
6267
6257
  refCode = addLocalRef(ref);
6268
- var v = resolve$1.call(self, localCompile, root, ref);
6258
+ var v = resolve_1.call(self, localCompile, root, ref);
6269
6259
  if (v === undefined) {
6270
6260
  var localSchema = localRefs && localRefs[ref];
6271
6261
  if (localSchema) {
6272
- v = resolve$1.inlineRef(localSchema, opts.inlineRefs)
6262
+ v = resolve_1.inlineRef(localSchema, opts.inlineRefs)
6273
6263
  ? localSchema
6274
- : compile$1.call(self, localSchema, root, localRefs, baseId);
6264
+ : compile.call(self, localSchema, root, localRefs, baseId);
6275
6265
  }
6276
6266
  }
6277
6267
 
@@ -6320,10 +6310,10 @@
6320
6310
  case 'number':
6321
6311
  return '' + value;
6322
6312
  case 'string':
6323
- return util$2.toQuotedString(value);
6313
+ return util.toQuotedString(value);
6324
6314
  case 'object':
6325
6315
  if (value === null) return 'null';
6326
- var valueStr = stableStringify$1(value);
6316
+ var valueStr = fastJsonStableStringify(value);
6327
6317
  var index = defaultsHash[valueStr];
6328
6318
  if (index === undefined) {
6329
6319
  index = defaultsHash[valueStr] = defaults.length;
@@ -6438,7 +6428,7 @@
6438
6428
 
6439
6429
 
6440
6430
  function patternCode(i, patterns) {
6441
- return 'var pattern' + i + ' = new RegExp(' + util$2.toQuotedString(patterns[i]) + ');';
6431
+ return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
6442
6432
  }
6443
6433
 
6444
6434
 
@@ -6452,7 +6442,7 @@
6452
6442
  }
6453
6443
 
6454
6444
 
6455
- function customRuleCode$1(i) {
6445
+ function customRuleCode(i) {
6456
6446
  return 'var customRule' + i + ' = customRules[' + i + '];';
6457
6447
  }
6458
6448
 
@@ -6465,33 +6455,33 @@
6465
6455
  return code;
6466
6456
  }
6467
6457
 
6468
- var cache = {exports: {}};
6458
+ var cache = createCommonjsModule(function (module) {
6459
+
6469
6460
 
6470
- var Cache$1 = cache.exports = function Cache() {
6461
+ var Cache = module.exports = function Cache() {
6471
6462
  this._cache = {};
6472
6463
  };
6473
6464
 
6474
6465
 
6475
- Cache$1.prototype.put = function Cache_put(key, value) {
6466
+ Cache.prototype.put = function Cache_put(key, value) {
6476
6467
  this._cache[key] = value;
6477
6468
  };
6478
6469
 
6479
6470
 
6480
- Cache$1.prototype.get = function Cache_get(key) {
6471
+ Cache.prototype.get = function Cache_get(key) {
6481
6472
  return this._cache[key];
6482
6473
  };
6483
6474
 
6484
6475
 
6485
- Cache$1.prototype.del = function Cache_del(key) {
6476
+ Cache.prototype.del = function Cache_del(key) {
6486
6477
  delete this._cache[key];
6487
6478
  };
6488
6479
 
6489
6480
 
6490
- Cache$1.prototype.clear = function Cache_clear() {
6481
+ Cache.prototype.clear = function Cache_clear() {
6491
6482
  this._cache = {};
6492
6483
  };
6493
-
6494
- var util$1 = util$5;
6484
+ });
6495
6485
 
6496
6486
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
6497
6487
  var DAYS = [0,31,28,31,30,31,30,31,31,30,31,30,31];
@@ -6507,20 +6497,20 @@
6507
6497
  // var URL = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu;
6508
6498
  var URL = /^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;
6509
6499
  var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
6510
- var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
6500
+ var JSON_POINTER$1 = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
6511
6501
  var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
6512
- var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
6502
+ var RELATIVE_JSON_POINTER$1 = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
6513
6503
 
6514
6504
 
6515
- var formats_1 = formats$1;
6505
+ var formats_1 = formats;
6516
6506
 
6517
- function formats$1(mode) {
6507
+ function formats(mode) {
6518
6508
  mode = mode == 'full' ? 'full' : 'fast';
6519
- return util$1.copy(formats$1[mode]);
6509
+ return util.copy(formats[mode]);
6520
6510
  }
6521
6511
 
6522
6512
 
6523
- formats$1.fast = {
6513
+ formats.fast = {
6524
6514
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
6525
6515
  date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
6526
6516
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -6545,14 +6535,14 @@
6545
6535
  uuid: UUID,
6546
6536
  // JSON-pointer: https://tools.ietf.org/html/rfc6901
6547
6537
  // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
6548
- 'json-pointer': JSON_POINTER,
6538
+ 'json-pointer': JSON_POINTER$1,
6549
6539
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
6550
6540
  // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
6551
- 'relative-json-pointer': RELATIVE_JSON_POINTER
6541
+ 'relative-json-pointer': RELATIVE_JSON_POINTER$1
6552
6542
  };
6553
6543
 
6554
6544
 
6555
- formats$1.full = {
6545
+ formats.full = {
6556
6546
  date: date,
6557
6547
  time: time,
6558
6548
  'date-time': date_time,
@@ -6566,9 +6556,9 @@
6566
6556
  ipv6: /^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,
6567
6557
  regex: regex,
6568
6558
  uuid: UUID,
6569
- 'json-pointer': JSON_POINTER,
6559
+ 'json-pointer': JSON_POINTER$1,
6570
6560
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
6571
- 'relative-json-pointer': RELATIVE_JSON_POINTER
6561
+ 'relative-json-pointer': RELATIVE_JSON_POINTER$1
6572
6562
  };
6573
6563
 
6574
6564
 
@@ -6884,7 +6874,7 @@
6884
6874
  var out = ' ';
6885
6875
  var $schema = it.schema[$keyword];
6886
6876
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
6887
- !it.opts.allErrors;
6877
+ var $breakOnError = !it.opts.allErrors;
6888
6878
  var $comment = it.util.toQuotedString($schema);
6889
6879
  if (it.opts.$comment === true) {
6890
6880
  out += ' console.log(' + ($comment) + ');';
@@ -8355,7 +8345,7 @@
8355
8345
  return out;
8356
8346
  };
8357
8347
 
8358
- var properties$2 = function generate_properties(it, $keyword, $ruleType) {
8348
+ var properties = function generate_properties(it, $keyword, $ruleType) {
8359
8349
  var out = ' ';
8360
8350
  var $lvl = it.level;
8361
8351
  var $dataLvl = it.dataLevel;
@@ -8767,7 +8757,7 @@
8767
8757
  return out;
8768
8758
  };
8769
8759
 
8770
- var required$1 = function generate_required(it, $keyword, $ruleType) {
8760
+ var required = function generate_required(it, $keyword, $ruleType) {
8771
8761
  var out = ' ';
8772
8762
  var $lvl = it.level;
8773
8763
  var $dataLvl = it.dataLevel;
@@ -9144,17 +9134,16 @@
9144
9134
  not: not,
9145
9135
  oneOf: oneOf,
9146
9136
  pattern: pattern,
9147
- properties: properties$2,
9137
+ properties: properties,
9148
9138
  propertyNames: propertyNames,
9149
- required: required$1,
9139
+ required: required,
9150
9140
  uniqueItems: uniqueItems,
9151
- validate: validate$1
9141
+ validate: validate
9152
9142
  };
9153
9143
 
9154
- var ruleModules = dotjs
9155
- , toHash = util$5.toHash;
9144
+ var toHash$1 = util.toHash;
9156
9145
 
9157
- var rules$1 = function rules() {
9146
+ var rules = function rules() {
9158
9147
  var RULES = [
9159
9148
  { type: 'number',
9160
9149
  rules: [ { 'maximum': ['exclusiveMaximum'] },
@@ -9178,8 +9167,8 @@
9178
9167
  'additionalItems', 'then', 'else'
9179
9168
  ];
9180
9169
  var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
9181
- RULES.all = toHash(ALL);
9182
- RULES.types = toHash(TYPES);
9170
+ RULES.all = toHash$1(ALL);
9171
+ RULES.types = toHash$1(TYPES);
9183
9172
 
9184
9173
  RULES.forEach(function (group) {
9185
9174
  group.rules = group.rules.map(function (keyword) {
@@ -9196,7 +9185,7 @@
9196
9185
  ALL.push(keyword);
9197
9186
  var rule = RULES.all[keyword] = {
9198
9187
  keyword: keyword,
9199
- code: ruleModules[keyword],
9188
+ code: dotjs[keyword],
9200
9189
  implements: implKeywords
9201
9190
  };
9202
9191
  return rule;
@@ -9204,13 +9193,13 @@
9204
9193
 
9205
9194
  RULES.all.$comment = {
9206
9195
  keyword: '$comment',
9207
- code: ruleModules.$comment
9196
+ code: dotjs.$comment
9208
9197
  };
9209
9198
 
9210
9199
  if (group.type) RULES.types[group.type] = group;
9211
9200
  });
9212
9201
 
9213
- RULES.keywords = toHash(ALL.concat(KEYWORDS));
9202
+ RULES.keywords = toHash$1(ALL.concat(KEYWORDS));
9214
9203
  RULES.custom = {};
9215
9204
 
9216
9205
  return RULES;
@@ -9264,7 +9253,7 @@
9264
9253
  return metaSchema;
9265
9254
  };
9266
9255
 
9267
- var MissingRefError = error_classes.MissingRef;
9256
+ var MissingRefError$1 = error_classes.MissingRef;
9268
9257
 
9269
9258
  var async = compileAsync;
9270
9259
 
@@ -9317,7 +9306,7 @@
9317
9306
  function _compileAsync(schemaObj) {
9318
9307
  try { return self._compile(schemaObj); }
9319
9308
  catch(e) {
9320
- if (e instanceof MissingRefError) return loadMissingSchema(e);
9309
+ if (e instanceof MissingRefError$1) return loadMissingSchema(e);
9321
9310
  throw e;
9322
9311
  }
9323
9312
 
@@ -9581,10 +9570,10 @@
9581
9570
  return out;
9582
9571
  };
9583
9572
 
9584
- var $schema$2 = "http://json-schema.org/draft-07/schema#";
9585
- var $id$1 = "http://json-schema.org/draft-07/schema#";
9573
+ var $schema = "http://json-schema.org/draft-07/schema#";
9574
+ var $id = "http://json-schema.org/draft-07/schema#";
9586
9575
  var title = "Core schema meta-schema";
9587
- var definitions$1 = {
9576
+ var definitions = {
9588
9577
  schemaArray: {
9589
9578
  type: "array",
9590
9579
  minItems: 1,
@@ -9627,7 +9616,7 @@
9627
9616
  ]
9628
9617
  }
9629
9618
  };
9630
- var type$1 = [
9619
+ var type = [
9631
9620
  "object",
9632
9621
  "boolean"
9633
9622
  ];
@@ -9823,19 +9812,32 @@
9823
9812
  $ref: "#"
9824
9813
  }
9825
9814
  };
9826
- var require$$13 = {
9827
- $schema: $schema$2,
9828
- $id: $id$1,
9815
+ var jsonSchemaDraft07 = {
9816
+ $schema: $schema,
9817
+ $id: $id,
9829
9818
  title: title,
9830
- definitions: definitions$1,
9831
- type: type$1,
9819
+ definitions: definitions,
9820
+ type: type,
9832
9821
  properties: properties$1,
9833
9822
  "default": true
9834
9823
  };
9835
9824
 
9836
- var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
9837
- var customRuleCode = custom;
9838
- var metaSchema = require$$13;
9825
+ var jsonSchemaDraft07$1 = /*#__PURE__*/Object.freeze({
9826
+ __proto__: null,
9827
+ $schema: $schema,
9828
+ $id: $id,
9829
+ title: title,
9830
+ definitions: definitions,
9831
+ type: type,
9832
+ properties: properties$1,
9833
+ 'default': jsonSchemaDraft07
9834
+ });
9835
+
9836
+ var require$$2 = getCjsExportFromNamespace(jsonSchemaDraft07$1);
9837
+
9838
+ var IDENTIFIER$1 = /^[a-z_$][a-z0-9_$-]*$/i;
9839
+
9840
+ var metaSchema = require$$2;
9839
9841
 
9840
9842
  var keyword = {
9841
9843
  add: addKeyword,
@@ -9891,7 +9893,7 @@
9891
9893
  if (RULES.keywords[keyword])
9892
9894
  throw new Error('Keyword ' + keyword + ' is already defined');
9893
9895
 
9894
- if (!IDENTIFIER.test(keyword))
9896
+ if (!IDENTIFIER$1.test(keyword))
9895
9897
  throw new Error('Keyword ' + keyword + ' is not a valid identifier');
9896
9898
 
9897
9899
  if (definition) {
@@ -9941,7 +9943,7 @@
9941
9943
  keyword: keyword,
9942
9944
  definition: definition,
9943
9945
  custom: true,
9944
- code: customRuleCode,
9946
+ code: custom,
9945
9947
  implements: definition.implements
9946
9948
  };
9947
9949
  ruleGroup.rules.push(rule);
@@ -10011,13 +10013,13 @@
10011
10013
  }
10012
10014
 
10013
10015
  var $schema$1 = "http://json-schema.org/draft-07/schema#";
10014
- var $id = "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#";
10016
+ var $id$1 = "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#";
10015
10017
  var description = "Meta-schema for $data reference (JSON Schema extension proposal)";
10016
- var type = "object";
10017
- var required = [
10018
+ var type$1 = "object";
10019
+ var required$1 = [
10018
10020
  "$data"
10019
10021
  ];
10020
- var properties = {
10022
+ var properties$2 = {
10021
10023
  $data: {
10022
10024
  type: "string",
10023
10025
  anyOf: [
@@ -10031,52 +10033,56 @@
10031
10033
  }
10032
10034
  };
10033
10035
  var additionalProperties = false;
10034
- var require$$12 = {
10036
+ var data$1 = {
10035
10037
  $schema: $schema$1,
10036
- $id: $id,
10038
+ $id: $id$1,
10037
10039
  description: description,
10038
- type: type,
10039
- required: required,
10040
- properties: properties,
10040
+ type: type$1,
10041
+ required: required$1,
10042
+ properties: properties$2,
10041
10043
  additionalProperties: additionalProperties
10042
10044
  };
10043
10045
 
10044
- var compileSchema = compile_1
10045
- , resolve = resolve_1
10046
- , Cache = cache.exports
10047
- , SchemaObject = schema_obj
10048
- , stableStringify = fastJsonStableStringify
10049
- , formats = formats_1
10050
- , rules = rules$1
10051
- , $dataMetaSchema = data
10052
- , util = util$5;
10053
-
10054
- var ajv = Ajv$1;
10055
-
10056
- Ajv$1.prototype.validate = validate;
10057
- Ajv$1.prototype.compile = compile;
10058
- Ajv$1.prototype.addSchema = addSchema;
10059
- Ajv$1.prototype.addMetaSchema = addMetaSchema;
10060
- Ajv$1.prototype.validateSchema = validateSchema;
10061
- Ajv$1.prototype.getSchema = getSchema;
10062
- Ajv$1.prototype.removeSchema = removeSchema;
10063
- Ajv$1.prototype.addFormat = addFormat;
10064
- Ajv$1.prototype.errorsText = errorsText;
10065
-
10066
- Ajv$1.prototype._addSchema = _addSchema;
10067
- Ajv$1.prototype._compile = _compile;
10068
-
10069
- Ajv$1.prototype.compileAsync = async;
10070
- var customKeyword = keyword;
10071
- Ajv$1.prototype.addKeyword = customKeyword.add;
10072
- Ajv$1.prototype.getKeyword = customKeyword.get;
10073
- Ajv$1.prototype.removeKeyword = customKeyword.remove;
10074
- Ajv$1.prototype.validateKeyword = customKeyword.validate;
10075
-
10076
- var errorClasses = error_classes;
10077
- Ajv$1.ValidationError = errorClasses.Validation;
10078
- Ajv$1.MissingRefError = errorClasses.MissingRef;
10079
- Ajv$1.$dataMetaSchema = $dataMetaSchema;
10046
+ var data$2 = /*#__PURE__*/Object.freeze({
10047
+ __proto__: null,
10048
+ $schema: $schema$1,
10049
+ $id: $id$1,
10050
+ description: description,
10051
+ type: type$1,
10052
+ required: required$1,
10053
+ properties: properties$2,
10054
+ additionalProperties: additionalProperties,
10055
+ 'default': data$1
10056
+ });
10057
+
10058
+ var require$$1 = getCjsExportFromNamespace(data$2);
10059
+
10060
+ var ajv = Ajv;
10061
+
10062
+ Ajv.prototype.validate = validate$1;
10063
+ Ajv.prototype.compile = compile$1;
10064
+ Ajv.prototype.addSchema = addSchema;
10065
+ Ajv.prototype.addMetaSchema = addMetaSchema;
10066
+ Ajv.prototype.validateSchema = validateSchema;
10067
+ Ajv.prototype.getSchema = getSchema;
10068
+ Ajv.prototype.removeSchema = removeSchema;
10069
+ Ajv.prototype.addFormat = addFormat;
10070
+ Ajv.prototype.errorsText = errorsText;
10071
+
10072
+ Ajv.prototype._addSchema = _addSchema;
10073
+ Ajv.prototype._compile = _compile;
10074
+
10075
+ Ajv.prototype.compileAsync = async;
10076
+
10077
+ Ajv.prototype.addKeyword = keyword.add;
10078
+ Ajv.prototype.getKeyword = keyword.get;
10079
+ Ajv.prototype.removeKeyword = keyword.remove;
10080
+ Ajv.prototype.validateKeyword = keyword.validate;
10081
+
10082
+
10083
+ Ajv.ValidationError = error_classes.Validation;
10084
+ Ajv.MissingRefError = error_classes.MissingRef;
10085
+ Ajv.$dataMetaSchema = data;
10080
10086
 
10081
10087
  var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema';
10082
10088
 
@@ -10089,16 +10095,16 @@
10089
10095
  * @param {Object} opts optional options
10090
10096
  * @return {Object} ajv instance
10091
10097
  */
10092
- function Ajv$1(opts) {
10093
- if (!(this instanceof Ajv$1)) return new Ajv$1(opts);
10098
+ function Ajv(opts) {
10099
+ if (!(this instanceof Ajv)) return new Ajv(opts);
10094
10100
  opts = this._opts = util.copy(opts) || {};
10095
10101
  setLogger(this);
10096
10102
  this._schemas = {};
10097
10103
  this._refs = {};
10098
10104
  this._fragments = {};
10099
- this._formats = formats(opts.format);
10105
+ this._formats = formats_1(opts.format);
10100
10106
 
10101
- this._cache = opts.cache || new Cache;
10107
+ this._cache = opts.cache || new cache;
10102
10108
  this._loadingSchemas = {};
10103
10109
  this._compilations = [];
10104
10110
  this.RULES = rules();
@@ -10106,7 +10112,7 @@
10106
10112
 
10107
10113
  opts.loopRequired = opts.loopRequired || Infinity;
10108
10114
  if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;
10109
- if (opts.serialize === undefined) opts.serialize = stableStringify;
10115
+ if (opts.serialize === undefined) opts.serialize = fastJsonStableStringify;
10110
10116
  this._metaOpts = getMetaSchemaOptions(this);
10111
10117
 
10112
10118
  if (opts.formats) addInitialFormats(this);
@@ -10126,7 +10132,7 @@
10126
10132
  * @param {Any} data to be validated
10127
10133
  * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
10128
10134
  */
10129
- function validate(schemaKeyRef, data) {
10135
+ function validate$1(schemaKeyRef, data) {
10130
10136
  var v;
10131
10137
  if (typeof schemaKeyRef == 'string') {
10132
10138
  v = this.getSchema(schemaKeyRef);
@@ -10149,7 +10155,7 @@
10149
10155
  * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords.
10150
10156
  * @return {Function} validating function
10151
10157
  */
10152
- function compile(schema, _meta) {
10158
+ function compile$1(schema, _meta) {
10153
10159
  var schemaObj = this._addSchema(schema, undefined, _meta);
10154
10160
  return schemaObj.validate || this._compile(schemaObj);
10155
10161
  }
@@ -10172,7 +10178,7 @@
10172
10178
  var id = this._getId(schema);
10173
10179
  if (id !== undefined && typeof id != 'string')
10174
10180
  throw new Error('schema id must be string');
10175
- key = resolve.normalizeId(key || id);
10181
+ key = resolve_1.normalizeId(key || id);
10176
10182
  checkUnique(this, key);
10177
10183
  this._schemas[key] = this._addSchema(schema, _skipValidation, _meta, true);
10178
10184
  return this;
@@ -10249,13 +10255,13 @@
10249
10255
 
10250
10256
 
10251
10257
  function _getSchemaFragment(self, ref) {
10252
- var res = resolve.schema.call(self, { schema: {} }, ref);
10258
+ var res = resolve_1.schema.call(self, { schema: {} }, ref);
10253
10259
  if (res) {
10254
10260
  var schema = res.schema
10255
10261
  , root = res.root
10256
10262
  , baseId = res.baseId;
10257
- var v = compileSchema.call(self, schema, root, undefined, baseId);
10258
- self._fragments[ref] = new SchemaObject({
10263
+ var v = compile_1.call(self, schema, root, undefined, baseId);
10264
+ self._fragments[ref] = new schema_obj({
10259
10265
  ref: ref,
10260
10266
  fragment: true,
10261
10267
  schema: schema,
@@ -10269,7 +10275,7 @@
10269
10275
 
10270
10276
 
10271
10277
  function _getSchemaObj(self, keyRef) {
10272
- keyRef = resolve.normalizeId(keyRef);
10278
+ keyRef = resolve_1.normalizeId(keyRef);
10273
10279
  return self._schemas[keyRef] || self._refs[keyRef] || self._fragments[keyRef];
10274
10280
  }
10275
10281
 
@@ -10307,7 +10313,7 @@
10307
10313
  this._cache.del(cacheKey);
10308
10314
  var id = this._getId(schemaKeyRef);
10309
10315
  if (id) {
10310
- id = resolve.normalizeId(id);
10316
+ id = resolve_1.normalizeId(id);
10311
10317
  delete this._schemas[id];
10312
10318
  delete this._refs[id];
10313
10319
  }
@@ -10338,17 +10344,17 @@
10338
10344
 
10339
10345
  shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;
10340
10346
 
10341
- var id = resolve.normalizeId(this._getId(schema));
10347
+ var id = resolve_1.normalizeId(this._getId(schema));
10342
10348
  if (id && shouldAddSchema) checkUnique(this, id);
10343
10349
 
10344
10350
  var willValidate = this._opts.validateSchema !== false && !skipValidation;
10345
10351
  var recursiveMeta;
10346
- if (willValidate && !(recursiveMeta = id && id == resolve.normalizeId(schema.$schema)))
10352
+ if (willValidate && !(recursiveMeta = id && id == resolve_1.normalizeId(schema.$schema)))
10347
10353
  this.validateSchema(schema, true);
10348
10354
 
10349
- var localRefs = resolve.ids.call(this, schema);
10355
+ var localRefs = resolve_1.ids.call(this, schema);
10350
10356
 
10351
- var schemaObj = new SchemaObject({
10357
+ var schemaObj = new schema_obj({
10352
10358
  id: id,
10353
10359
  schema: schema,
10354
10360
  localRefs: localRefs,
@@ -10385,7 +10391,7 @@
10385
10391
  }
10386
10392
 
10387
10393
  var v;
10388
- try { v = compileSchema.call(this, schemaObj.schema, root, schemaObj.localRefs); }
10394
+ try { v = compile_1.call(this, schemaObj.schema, root, schemaObj.localRefs); }
10389
10395
  catch(e) {
10390
10396
  delete schemaObj.validate;
10391
10397
  throw e;
@@ -10481,12 +10487,12 @@
10481
10487
  function addDefaultMetaSchema(self) {
10482
10488
  var $dataSchema;
10483
10489
  if (self._opts.$data) {
10484
- $dataSchema = require$$12;
10490
+ $dataSchema = require$$1;
10485
10491
  self.addMetaSchema($dataSchema, $dataSchema.$id, true);
10486
10492
  }
10487
10493
  if (self._opts.meta === false) return;
10488
- var metaSchema = require$$13;
10489
- if (self._opts.$data) metaSchema = $dataMetaSchema(metaSchema, META_SUPPORT_DATA);
10494
+ var metaSchema = require$$2;
10495
+ if (self._opts.$data) metaSchema = data(metaSchema, META_SUPPORT_DATA);
10490
10496
  self.addMetaSchema(metaSchema, META_SCHEMA_ID, true);
10491
10497
  self._refs['http://json-schema.org/schema'] = META_SCHEMA_ID;
10492
10498
  }
@@ -10537,14 +10543,14 @@
10537
10543
 
10538
10544
  function noop() {}
10539
10545
 
10540
- var _Ajv = /*#__PURE__*/Object.freeze(/*#__PURE__*/_mergeNamespaces$1({
10541
- __proto__: null,
10542
- 'default': ajv
10543
- }, [ajv]));
10546
+ var _Ajv = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), ajv, {
10547
+ 'default': ajv,
10548
+ __moduleExports: ajv
10549
+ }));
10544
10550
 
10545
10551
  var $ref = "#/definitions/Schema";
10546
- var $schema = "http://json-schema.org/draft-07/schema#";
10547
- var definitions = {
10552
+ var $schema$2 = "http://json-schema.org/draft-07/schema#";
10553
+ var definitions$1 = {
10548
10554
  ActivityType: {
10549
10555
  anyOf: [
10550
10556
  {
@@ -12187,21 +12193,21 @@
12187
12193
  type: "string"
12188
12194
  }
12189
12195
  };
12190
- var v2 = {
12196
+ var v2$1 = {
12191
12197
  $ref: $ref,
12192
- $schema: $schema,
12193
- definitions: definitions
12198
+ $schema: $schema$2,
12199
+ definitions: definitions$1
12194
12200
  };
12195
12201
 
12196
12202
  var _ddl2Schema = /*#__PURE__*/Object.freeze({
12197
12203
  __proto__: null,
12198
12204
  $ref: $ref,
12199
- $schema: $schema,
12200
- definitions: definitions,
12201
- 'default': v2
12205
+ $schema: $schema$2,
12206
+ definitions: definitions$1,
12207
+ 'default': v2$1
12202
12208
  });
12203
12209
 
12204
- var Ajv = ajv || _Ajv;
12210
+ var Ajv$1 = ajv || _Ajv;
12205
12211
  var ddl2Schema = _ddl2Schema;
12206
12212
  var options = {
12207
12213
  allErrors: false,
@@ -12209,7 +12215,7 @@
12209
12215
  jsonPointers: false
12210
12216
  };
12211
12217
  function doValidate(ddl, schema) {
12212
- var ajv = new Ajv(options);
12218
+ var ajv = new Ajv$1(options);
12213
12219
  var validate = ajv.compile(schema);
12214
12220
  var success = validate(ddl);
12215
12221
  return {
@@ -12241,7 +12247,7 @@
12241
12247
  case ">=":
12242
12248
  return function (localRow) { return localRow[lf] >= val; };
12243
12249
  default:
12244
- throw new Error("Unknown filter condition: ".concat(condition));
12250
+ throw new Error("Unknown filter condition: " + condition);
12245
12251
  }
12246
12252
  }
12247
12253
  var ColumnMapping = /** @class */ (function (_super) {
@@ -12253,16 +12259,16 @@
12253
12259
  var retVal = [];
12254
12260
  if (!this.remoteField_valid()) {
12255
12261
  retVal.push({
12256
- source: "".concat(prefix, ".remoteField"),
12257
- msg: "Invalid remoteField: \"".concat(this.remoteField(), "\""),
12258
- hint: "expected: ".concat(JSON.stringify(this.sourceOutFields()))
12262
+ source: prefix + ".remoteField",
12263
+ msg: "Invalid remoteField: \"" + this.remoteField() + "\"",
12264
+ hint: "expected: " + JSON.stringify(this.sourceOutFields())
12259
12265
  });
12260
12266
  }
12261
12267
  if (!this.localField_valid()) {
12262
12268
  retVal.push({
12263
- source: "".concat(prefix, ".localField"),
12264
- msg: "Invalid localField: \"".concat(this.localField(), "\""),
12265
- hint: "expected: ".concat(JSON.stringify(this.localFields()))
12269
+ source: prefix + ".localField",
12270
+ msg: "Invalid localField: \"" + this.localField() + "\"",
12271
+ hint: "expected: " + JSON.stringify(this.localFields())
12266
12272
  });
12267
12273
  }
12268
12274
  return retVal;
@@ -12295,7 +12301,7 @@
12295
12301
  return new ColumnMapping().fromDDL(ddl);
12296
12302
  };
12297
12303
  ColumnMapping.prototype.hash = function () {
12298
- return util$6.hashSum({
12304
+ return util$1.hashSum({
12299
12305
  remoteField: this.remoteField(),
12300
12306
  localField: this.localField(),
12301
12307
  condition: this.condition(),
@@ -12322,9 +12328,9 @@
12322
12328
  switch (this.condition()) {
12323
12329
  case "in":
12324
12330
  case "range":
12325
- return "".concat(this.localField(), " ").concat(this.condition(), " [").concat(this.remoteValues(filterSelection).join(", "), "]");
12331
+ return this.localField() + " " + this.condition() + " [" + this.remoteValues(filterSelection).join(", ") + "]";
12326
12332
  default:
12327
- return "".concat(this.localField(), " ").concat(this.condition(), " ").concat(this.remoteValues(filterSelection)[0]);
12333
+ return this.localField() + " " + this.condition() + " " + this.remoteValues(filterSelection)[0];
12328
12334
  }
12329
12335
  };
12330
12336
  ColumnMapping.prototype.createFilter = function (filterSelection) {
@@ -12385,21 +12391,21 @@
12385
12391
  var retVal = [];
12386
12392
  if (!this.source_valid()) {
12387
12393
  retVal.push({
12388
- source: "".concat(prefix, ".source.").concat(this.source()),
12389
- msg: "Invalid source: \"".concat(this.source(), "\""),
12390
- hint: "expected: ".concat(JSON.stringify(this.visualizationIDs()))
12394
+ source: prefix + ".source." + this.source(),
12395
+ msg: "Invalid source: \"" + this.source() + "\"",
12396
+ hint: "expected: " + JSON.stringify(this.visualizationIDs())
12391
12397
  });
12392
12398
  }
12393
12399
  if (this.source_exists() && this.validMappings().length === 0) {
12394
12400
  retVal.push({
12395
- source: "".concat(prefix, ".source.").concat(this.source()),
12396
- msg: "Invalid mappings: \"".concat(this.source(), "\""),
12401
+ source: prefix + ".source." + this.source(),
12402
+ msg: "Invalid mappings: \"" + this.source() + "\"",
12397
12403
  hint: "expected minimum of 1 mapping"
12398
12404
  });
12399
12405
  }
12400
12406
  for (var _i = 0, _a = this.validMappings(); _i < _a.length; _i++) {
12401
12407
  var mapping = _a[_i];
12402
- retVal = retVal.concat(mapping.validate("".concat(prefix, ".").concat(this.source(), ".mappings")));
12408
+ retVal = retVal.concat(mapping.validate(prefix + "." + this.source() + ".mappings"));
12403
12409
  }
12404
12410
  return retVal;
12405
12411
  };
@@ -12436,7 +12442,7 @@
12436
12442
  return this._owner.visualizationIDs();
12437
12443
  };
12438
12444
  RemoteFilter.prototype.hash = function () {
12439
- return util$6.hashSum({
12445
+ return util$1.hashSum({
12440
12446
  source: this.source(),
12441
12447
  mappings: this.validMappings().map(function (mapping) { return mapping.hash(); }),
12442
12448
  selection: this.sourceSelection()
@@ -12501,9 +12507,9 @@
12501
12507
  var retVal = [];
12502
12508
  if (!this.localField_valid()) {
12503
12509
  retVal.push({
12504
- source: "".concat(prefix, ".localField"),
12505
- msg: "Invalid localField: \"".concat(this.localField(), "\""),
12506
- hint: "expected: ".concat(JSON.stringify(this.localFields()))
12510
+ source: prefix + ".localField",
12511
+ msg: "Invalid localField: \"" + this.localField() + "\"",
12512
+ hint: "expected: " + JSON.stringify(this.localFields())
12507
12513
  });
12508
12514
  }
12509
12515
  return retVal;
@@ -12553,7 +12559,7 @@
12553
12559
  return new StaticFilter().fromDDL(ddl);
12554
12560
  };
12555
12561
  StaticFilter.prototype.hash = function () {
12556
- return util$6.hashSum({
12562
+ return util$1.hashSum({
12557
12563
  localField: this.localField(),
12558
12564
  condition: this.condition(),
12559
12565
  value: this.value(),
@@ -12564,7 +12570,7 @@
12564
12570
  return this._owner.inFields().map(function (field) { return field.id; });
12565
12571
  };
12566
12572
  StaticFilter.prototype.createFilterDescription = function () {
12567
- return "".concat(this.localField(), " ").concat(this.condition(), " ").concat(this.coerceValue());
12573
+ return this.localField() + " " + this.condition() + " " + this.coerceValue();
12568
12574
  };
12569
12575
  StaticFilter.prototype.createFilter = function () {
12570
12576
  return createFilter(this.condition(), this.localField(), this.coerceValue());
@@ -12625,7 +12631,7 @@
12625
12631
  var remoteFilters = [];
12626
12632
  var staticFilters = [];
12627
12633
  _.forEach(function (fc) {
12628
- if (v2$1.isIFilterCondition(fc)) {
12634
+ if (v2.isIFilterCondition(fc)) {
12629
12635
  remoteFilters.push(RemoteFilter.fromDDL(fc));
12630
12636
  }
12631
12637
  else {
@@ -12644,7 +12650,7 @@
12644
12650
  };
12645
12651
  // Activity overrides ---
12646
12652
  Filters.prototype.hash = function () {
12647
- return util$6.hashSum(this.validFilters().map(function (f) {
12653
+ return util$1.hashSum(this.validFilters().map(function (f) {
12648
12654
  return {
12649
12655
  filter: f.hash()
12650
12656
  };
@@ -12692,7 +12698,7 @@
12692
12698
  return this.staticFilter().filter(function (filter) { return filter.valid(); });
12693
12699
  };
12694
12700
  Filters.prototype.validFilters = function () {
12695
- return __spreadArray$1(__spreadArray$1([], this.validRemoteFilters(), true), this.validStaticFilters(), true);
12701
+ return __spreadArray(__spreadArray([], this.validRemoteFilters()), this.validStaticFilters());
12696
12702
  };
12697
12703
  Filters.Filter = RemoteFilter;
12698
12704
  Filters.Mapping = ColumnMapping;
@@ -12717,9 +12723,9 @@
12717
12723
  var retVal = [];
12718
12724
  if (!this.label_valid()) {
12719
12725
  retVal.push({
12720
- source: "".concat(prefix, ".label"),
12721
- msg: "Invalid label: \"".concat(this.label(), "\""),
12722
- hint: "expected ".concat(JSON.stringify(this.columns()))
12726
+ source: prefix + ".label",
12727
+ msg: "Invalid label: \"" + this.label() + "\"",
12728
+ hint: "expected " + JSON.stringify(this.columns())
12723
12729
  });
12724
12730
  }
12725
12731
  return retVal;
@@ -12744,7 +12750,7 @@
12744
12750
  return new GroupByColumn().fromDDL(label);
12745
12751
  };
12746
12752
  GroupByColumn.prototype.hash = function () {
12747
- return util$6.hashSum(this.label());
12753
+ return util$1.hashSum(this.label());
12748
12754
  };
12749
12755
  GroupByColumn.prototype.columns = function () {
12750
12756
  return this._owner.inFieldIDs();
@@ -12787,16 +12793,16 @@
12787
12793
  var retVal = [];
12788
12794
  if (!this.aggrColumn_valid()) {
12789
12795
  retVal.push({
12790
- source: "".concat(prefix, ".").concat(this.fieldID(), ".aggrColumn"),
12791
- msg: "Invalid aggrColumn: \"".concat(this.aggrColumn(), "\""),
12792
- hint: "expected ".concat(JSON.stringify(this.columns()))
12796
+ source: prefix + "." + this.fieldID() + ".aggrColumn",
12797
+ msg: "Invalid aggrColumn: \"" + this.aggrColumn() + "\"",
12798
+ hint: "expected " + JSON.stringify(this.columns())
12793
12799
  });
12794
12800
  }
12795
12801
  if (!this.baseCountColumn_valid()) {
12796
12802
  retVal.push({
12797
- source: "".concat(prefix, ".").concat(this.fieldID(), ".aggrColumn"),
12798
- msg: "Invalid baseCountColumn: \"".concat(this.baseCountColumn(), "\""),
12799
- hint: "expected ".concat(JSON.stringify(this.columns()))
12803
+ source: prefix + "." + this.fieldID() + ".aggrColumn",
12804
+ msg: "Invalid baseCountColumn: \"" + this.baseCountColumn() + "\"",
12805
+ hint: "expected " + JSON.stringify(this.columns())
12800
12806
  });
12801
12807
  }
12802
12808
  return retVal;
@@ -12838,7 +12844,7 @@
12838
12844
  return new AggregateField().fromDDL(ddl);
12839
12845
  };
12840
12846
  AggregateField.prototype.hash = function () {
12841
- return util$6.hashSum({
12847
+ return util$1.hashSum({
12842
12848
  label: this.fieldID(),
12843
12849
  aggrType: this.aggrType(),
12844
12850
  aggrColumn: this.aggrColumn()
@@ -12943,7 +12949,7 @@
12943
12949
  };
12944
12950
  // Activity
12945
12951
  GroupBy.prototype.hash = function () {
12946
- return util$6.hashSum({
12952
+ return util$1.hashSum({
12947
12953
  groupBy: this.column().map(function (gb) { return gb.hash(); }),
12948
12954
  computedFields: this.computedFields().map(function (cf) { return cf.hash(); })
12949
12955
  });
@@ -13132,7 +13138,7 @@
13132
13138
  return new Limit().fromDDL(ddl);
13133
13139
  };
13134
13140
  Limit.prototype.hash = function () {
13135
- return util$6.hashSum({
13141
+ return util$1.hashSum({
13136
13142
  limit: this.rows()
13137
13143
  });
13138
13144
  };
@@ -13162,15 +13168,15 @@
13162
13168
  var retVal = [];
13163
13169
  if (!this.value_valid()) {
13164
13170
  retVal.push({
13165
- source: "".concat(prefix, ".value"),
13166
- msg: "Invalid value: \"".concat(this.value(), "\""),
13171
+ source: prefix + ".value",
13172
+ msg: "Invalid value: \"" + this.value() + "\"",
13167
13173
  hint: 'expected: "any"'
13168
13174
  });
13169
13175
  }
13170
13176
  if (!this.newValue_valid()) {
13171
13177
  retVal.push({
13172
- source: "".concat(prefix, ".newValue"),
13173
- msg: "Invalid value: \"".concat(this.newValue(), "\""),
13178
+ source: prefix + ".newValue",
13179
+ msg: "Invalid value: \"" + this.newValue() + "\"",
13174
13180
  hint: 'expected: "any"'
13175
13181
  });
13176
13182
  }
@@ -13235,23 +13241,23 @@
13235
13241
  var retVal = [];
13236
13242
  if (!this.column1_valid()) {
13237
13243
  retVal.push({
13238
- source: "".concat(prefix, ".").concat(this.label()),
13239
- msg: "Invalid column1: \"".concat(this.column1(), "\""),
13240
- hint: "expected: ".concat(JSON.stringify(this.columns()))
13244
+ source: prefix + "." + this.label(),
13245
+ msg: "Invalid column1: \"" + this.column1() + "\"",
13246
+ hint: "expected: " + JSON.stringify(this.columns())
13241
13247
  });
13242
13248
  }
13243
13249
  if (!this.column2_valid()) {
13244
13250
  retVal.push({
13245
- source: "".concat(prefix, ".").concat(this.label()),
13246
- msg: "Invalid column2: \"".concat(this.column2(), "\""),
13247
- hint: "expected: ".concat(JSON.stringify(this.columns()))
13251
+ source: prefix + "." + this.label(),
13252
+ msg: "Invalid column2: \"" + this.column2() + "\"",
13253
+ hint: "expected: " + JSON.stringify(this.columns())
13248
13254
  });
13249
13255
  }
13250
13256
  if (!this.disableMapping()) {
13251
- this.validComputedMappings().forEach(function (cm) { return cm.validate("".concat(prefix, ".mapping")); });
13257
+ this.validComputedMappings().forEach(function (cm) { return cm.validate(prefix + ".mapping"); });
13252
13258
  }
13253
13259
  if (!this.disableChildField()) {
13254
- this.validChildFields().forEach(function (cf) { return cf.validate("".concat(prefix, ".childField")); });
13260
+ this.validChildFields().forEach(function (cf) { return cf.validate(prefix + ".childField"); });
13255
13261
  }
13256
13262
  return retVal;
13257
13263
  };
@@ -13369,7 +13375,7 @@
13369
13375
  return new ComputedField().fromDDL(ddl);
13370
13376
  };
13371
13377
  ComputedField.prototype.hash = function () {
13372
- return util$6.hashSum(this.toDDL());
13378
+ return util$1.hashSum(this.toDDL());
13373
13379
  };
13374
13380
  ComputedField.prototype.columns = function () {
13375
13381
  return this._owner.fieldIDs();
@@ -13389,7 +13395,7 @@
13389
13395
  .column1(child.id);
13390
13396
  });
13391
13397
  }
13392
- return __assign$1(__assign$1({}, this._owner.field(this.column1())), { id: this.label(), children: validChildFields.length ? validChildFields.map(function (cf) { return cf.computedField(); }) : undefined });
13398
+ return __assign(__assign({}, this._owner.field(this.column1())), { id: this.label(), children: validChildFields.length ? validChildFields.map(function (cf) { return cf.computedField(); }) : undefined });
13393
13399
  case "*":
13394
13400
  case "/":
13395
13401
  case "+":
@@ -13412,7 +13418,7 @@
13412
13418
  };
13413
13419
  });
13414
13420
  return function (row) {
13415
- var retVal = trim && hasComputedFields ? {} : __assign$1({}, row);
13421
+ var retVal = trim && hasComputedFields ? {} : __assign({}, row);
13416
13422
  for (var _i = 0, computedFields_1 = computedFields; _i < computedFields_1.length; _i++) {
13417
13423
  var cf = computedFields_1[_i];
13418
13424
  retVal[cf.label] = cf.func(row);
@@ -13432,7 +13438,7 @@
13432
13438
  if (this.hasChildFields()) {
13433
13439
  return function (row) {
13434
13440
  // TODO Move to function factory ---
13435
- var r = row[column1].Row && util$6.isArray(row[column1].Row) ? row[column1].Row : row[column1];
13441
+ var r = row[column1].Row && util$1.isArray(row[column1].Row) ? row[column1].Row : row[column1];
13436
13442
  return r.map(_this.projection(trim));
13437
13443
  };
13438
13444
  }
@@ -13566,7 +13572,7 @@
13566
13572
  return _super.call(this) || this;
13567
13573
  }
13568
13574
  MultiField.prototype.hash = function () {
13569
- return util$6.hashSum(this.toDDL());
13575
+ return util$1.hashSum(this.toDDL());
13570
13576
  };
13571
13577
  MultiField.prototype.owner = function (_) {
13572
13578
  if (!arguments.length)
@@ -13581,7 +13587,7 @@
13581
13587
  var retVal = [];
13582
13588
  for (var _i = 0, _a = this.validMultiFields(); _i < _a.length; _i++) {
13583
13589
  var cf = _a[_i];
13584
- retVal = retVal.concat(cf.validate("".concat(prefix, ".computedFields")));
13590
+ retVal = retVal.concat(cf.validate(prefix + ".computedFields"));
13585
13591
  }
13586
13592
  return retVal;
13587
13593
  };
@@ -13640,7 +13646,7 @@
13640
13646
  var retVal = [];
13641
13647
  for (var _i = 0, _a = this.validComputedFields(); _i < _a.length; _i++) {
13642
13648
  var cf = _a[_i];
13643
- retVal = retVal.concat(cf.validate("".concat(this.classID(), ".computedFields")));
13649
+ retVal = retVal.concat(cf.validate(this.classID() + ".computedFields"));
13644
13650
  }
13645
13651
  return retVal;
13646
13652
  };
@@ -13788,7 +13794,7 @@
13788
13794
  }
13789
13795
  }
13790
13796
  return function (row) {
13791
- var retVal = trim && hasComputedFields ? {} : __assign$1({}, row);
13797
+ var retVal = trim && hasComputedFields ? {} : __assign({}, row);
13792
13798
  for (var _i = 0, computedFields_3 = computedFields; _i < computedFields_3.length; _i++) {
13793
13799
  var cf = computedFields_3[_i];
13794
13800
  retVal[cf.label] = cf.func(row);
@@ -13833,7 +13839,7 @@
13833
13839
  };
13834
13840
  Project.prototype.hash = function (more) {
13835
13841
  if (more === void 0) { more = {}; }
13836
- return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL() }, more));
13842
+ return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL() }, more));
13837
13843
  };
13838
13844
  return Project;
13839
13845
  }(ProjectBase));
@@ -13862,7 +13868,7 @@
13862
13868
  };
13863
13869
  Mappings.prototype.hash = function (more) {
13864
13870
  if (more === void 0) { more = {}; }
13865
- return _super.prototype.hash.call(this, __assign$1({ ddl: this.toDDL() }, more));
13871
+ return _super.prototype.hash.call(this, __assign({ ddl: this.toDDL() }, more));
13866
13872
  };
13867
13873
  Mappings.prototype.referencedFields = function (refs) {
13868
13874
  if (this.hasComputedFields()) {
@@ -13883,9 +13889,9 @@
13883
13889
  var retVal = [];
13884
13890
  if (!this.fieldID_valid()) {
13885
13891
  retVal.push({
13886
- source: "".concat(prefix, ".fieldID"),
13887
- msg: "Invalid fieldID: ".concat(this.fieldID()),
13888
- hint: "expected ".concat(JSON.stringify(this.fieldIDs()))
13892
+ source: prefix + ".fieldID",
13893
+ msg: "Invalid fieldID: " + this.fieldID(),
13894
+ hint: "expected " + JSON.stringify(this.fieldIDs())
13889
13895
  });
13890
13896
  }
13891
13897
  return retVal;
@@ -13914,7 +13920,7 @@
13914
13920
  return new SortColumn().fromDDL(ddl);
13915
13921
  };
13916
13922
  SortColumn.prototype.hash = function () {
13917
- return util$6.hashSum({
13923
+ return util$1.hashSum({
13918
13924
  sortColumn: this.fieldID(),
13919
13925
  descending: this.descending()
13920
13926
  });
@@ -13976,7 +13982,7 @@
13976
13982
  };
13977
13983
  // Activitiy ---
13978
13984
  Sort.prototype.hash = function () {
13979
- return util$6.hashSum({
13985
+ return util$1.hashSum({
13980
13986
  Sort: this.column().map(function (sb) { return sb.hash(); })
13981
13987
  });
13982
13988
  };
@@ -14004,7 +14010,7 @@
14004
14010
  });
14005
14011
  }
14006
14012
  if (sortByArr.length) {
14007
- return __spreadArray$1([], data, true).sort(function (l, r) {
14013
+ return __spreadArray([], data).sort(function (l, r) {
14008
14014
  for (var _i = 0, sortByArr_1 = sortByArr; _i < sortByArr_1.length; _i++) {
14009
14015
  var item = sortByArr_1[_i];
14010
14016
  var retVal2 = item.compare(l[item.id], r[item.id]);
@@ -14227,7 +14233,7 @@
14227
14233
  });
14228
14234
  });
14229
14235
  _this._origButtons = _this.buttons();
14230
- _this._filterButtons = __spreadArray$1([_this._togglePopup, new common.Spacer()], _this._origButtons, true);
14236
+ _this._filterButtons = __spreadArray([_this._togglePopup, new common.Spacer()], _this._origButtons);
14231
14237
  return _this;
14232
14238
  }
14233
14239
  VizChartPanel.prototype.popup = function (_) {
@@ -14449,7 +14455,7 @@
14449
14455
  }
14450
14456
  }
14451
14457
  else {
14452
- console.log("***".concat(this.id(), " Immutable Fields***"));
14458
+ console.log("***" + this.id() + " Immutable Fields***");
14453
14459
  }
14454
14460
  var data = mappings.outData();
14455
14461
  var dataChanged = this._prevData !== data;
@@ -14470,7 +14476,7 @@
14470
14476
  }
14471
14477
  }
14472
14478
  else {
14473
- console.log("".concat(this.id(), " Immutable Data!"));
14479
+ console.log(this.id() + " Immutable Data!");
14474
14480
  }
14475
14481
  if (fieldsChanged || dataChanged) {
14476
14482
  return this.chartPanel().renderPromise().then(function () { });
@@ -14509,7 +14515,7 @@
14509
14515
  };
14510
14516
  Visualization.prototype.toDBData = function (fields, data) {
14511
14517
  var _this = this;
14512
- var _data = util$6.isArray(data) ? data : [data];
14518
+ var _data = util$1.isArray(data) ? data : [data];
14513
14519
  return _data.map(function (row) {
14514
14520
  var retVal = [];
14515
14521
  for (var _i = 0, fields_1 = fields; _i < fields_1.length; _i++) {
@@ -14562,7 +14568,7 @@
14562
14568
  __metadata("design:type", Function)
14563
14569
  ], Visualization.prototype, "description", void 0);
14564
14570
  __decorate([
14565
- common.publish(v2$1.VisibilitySet[0], "set", "Type", v2$1.VisibilitySet),
14571
+ common.publish(v2.VisibilitySet[0], "set", "Type", v2.VisibilitySet),
14566
14572
  __metadata("design:type", String)
14567
14573
  ], Visualization.prototype, "_visibility", void 0);
14568
14574
  __decorate([
@@ -14593,8 +14599,8 @@
14593
14599
  return _this;
14594
14600
  }
14595
14601
  State.prototype.set = function (_) {
14596
- var currSelHash = util$6.hashSum(this.selection());
14597
- var newSelHash = util$6.hashSum(_);
14602
+ var currSelHash = util$1.hashSum(this.selection());
14603
+ var newSelHash = util$1.hashSum(_);
14598
14604
  if (currSelHash !== newSelHash) {
14599
14605
  this.selection(_);
14600
14606
  return true;
@@ -14605,7 +14611,7 @@
14605
14611
  var currSelection = this.selection();
14606
14612
  var newSelection = [];
14607
14613
  var _loop_1 = function (selRow) {
14608
- if (util$6.find(data, function (row, index) {
14614
+ if (util$1.find(data, function (row, index) {
14609
14615
  for (var column in selRow) {
14610
14616
  if (selRow[column] !== row[column]) {
14611
14617
  return false;
@@ -14640,7 +14646,7 @@
14640
14646
  _this._initialized = false;
14641
14647
  while (true) {
14642
14648
  vizID++;
14643
- _this._id = "e_".concat(vizID);
14649
+ _this._id = "e_" + vizID;
14644
14650
  if (!_this._ec.elementExists(_this._id)) {
14645
14651
  break;
14646
14652
  }
@@ -14648,9 +14654,9 @@
14648
14654
  var view = new HipiePipeline(_this._ec, _this._id);
14649
14655
  _this.hipiePipeline(view);
14650
14656
  _this._vizChartPanel = new Visualization(_this._ec, _this.hipiePipeline())
14651
- .id("viz_".concat(vizID))
14652
- .title("Element ".concat(vizID));
14653
- _this._vizChartPanel.chartPanel().id("cp_".concat(vizID));
14657
+ .id("viz_" + vizID)
14658
+ .title("Element " + vizID);
14659
+ _this._vizChartPanel.chartPanel().id("cp_" + vizID);
14654
14660
  _this.visualization(_this._vizChartPanel);
14655
14661
  _this.state(new State());
14656
14662
  return _this;
@@ -14666,12 +14672,12 @@
14666
14672
  _this.selection(sel ? more.selection.map(function (r) { return r.__lparam || r; }) : []);
14667
14673
  }
14668
14674
  else {
14669
- var row = util$6.isArray(_row) ? _row : [_row];
14675
+ var row = util$1.isArray(_row) ? _row : [_row];
14670
14676
  _this.selection(sel ? row.map(function (r) { return r.__lparam || r; }) : []);
14671
14677
  }
14672
14678
  })
14673
14679
  .on("vertex_click", function (_row, col, sel) {
14674
- var row = util$6.isArray(_row) ? _row : [_row];
14680
+ var row = util$1.isArray(_row) ? _row : [_row];
14675
14681
  _this.selection(sel ? row.map(function (r) { return r.__lparam || r; }) : []);
14676
14682
  });
14677
14683
  return this;
@@ -14731,11 +14737,11 @@
14731
14737
  }
14732
14738
  this._errors = [];
14733
14739
  var pipeline = this.hipiePipeline();
14734
- for (var _i = 0, _a = __spreadArray$1(__spreadArray$1([], pipeline.activities(), true), [this.mappings()], false); _i < _a.length; _i++) {
14740
+ for (var _i = 0, _a = __spreadArray(__spreadArray([], pipeline.activities()), [this.mappings()]); _i < _a.length; _i++) {
14735
14741
  var activity = _a[_i];
14736
14742
  for (var _b = 0, _c = activity.validate(); _b < _c.length; _b++) {
14737
14743
  var error = _c[_b];
14738
- this._errors.push(__assign$1({ elementID: this.id() }, error));
14744
+ this._errors.push(__assign({ elementID: this.id() }, error));
14739
14745
  }
14740
14746
  }
14741
14747
  return this._errors;
@@ -14749,7 +14755,7 @@
14749
14755
  _this._initialized = true;
14750
14756
  var data = _this.hipiePipeline().outData();
14751
14757
  if (_this.visualization().chartType() === "FieldForm") {
14752
- if (_this.state().set(__spreadArray$1([], data, true))) {
14758
+ if (_this.state().set(__spreadArray([], data))) {
14753
14759
  _this.selectionChanged();
14754
14760
  }
14755
14761
  }
@@ -14835,7 +14841,7 @@
14835
14841
  return this;
14836
14842
  };
14837
14843
  ElementContainer.prototype.elements = function () {
14838
- return __spreadArray$1([], this._elements, true);
14844
+ return __spreadArray([], this._elements);
14839
14845
  };
14840
14846
  ElementContainer.prototype.element = function (w) {
14841
14847
  var retVal;
@@ -14998,7 +15004,7 @@
14998
15004
  };
14999
15005
  PopupManager.prototype.syncPopups = function () {
15000
15006
  var prevPopups = this.popupChartPanels();
15001
- var diffPopups = util$6.compare(prevPopups, this._ec.elements()
15007
+ var diffPopups = util$1.compare(prevPopups, this._ec.elements()
15002
15008
  .filter(function (e) { return e.visualization().visibility() === "flyout"; })
15003
15009
  .map(function (elem) { return elem.visualization().chartPanel(); }));
15004
15010
  for (var _i = 0, _a = diffPopups.exit; _i < _a.length; _i++) {
@@ -15045,7 +15051,7 @@
15045
15051
  var errors = element.validate();
15046
15052
  wa.title.label = this.tabTitle(element);
15047
15053
  this.titleClassed(wa, "error", errors.length > 0);
15048
- wa.title.caption = errors.map(function (err) { return "".concat(err.source, ": ").concat(err.msg); }).join("\n");
15054
+ wa.title.caption = errors.map(function (err) { return err.source + ": " + err.msg; }).join("\n");
15049
15055
  };
15050
15056
  DashboardDockPanel.prototype.activate = function (element) {
15051
15057
  var wa = this.getWidgetAdapter(element.visualization().chartPanel());
@@ -15057,15 +15063,15 @@
15057
15063
  if (w.minWidth_exists() || w.minHeight_exists()) {
15058
15064
  var wa = this.getWidgetAdapter(w);
15059
15065
  common.select(wa.node)
15060
- .style("min-width", "".concat(w.minWidth(), "px"))
15061
- .style("min-height", "".concat(w.minHeight(), "px"));
15066
+ .style("min-width", w.minWidth() + "px")
15067
+ .style("min-height", w.minHeight() + "px");
15062
15068
  return true;
15063
15069
  }
15064
15070
  return false;
15065
15071
  };
15066
15072
  DashboardDockPanel.prototype.syncWidgets = function () {
15067
15073
  var prevWidgets = this.widgets();
15068
- var diffWidgets = util$6.compare(prevWidgets, this._ec.elements().filter(function (e) { return e.visualization().visibility() === "normal"; }).map(function (viz) { return viz.visualization().chartPanel(); }));
15074
+ var diffWidgets = util$1.compare(prevWidgets, this._ec.elements().filter(function (e) { return e.visualization().visibility() === "normal"; }).map(function (viz) { return viz.visualization().chartPanel(); }));
15069
15075
  var refit = false;
15070
15076
  for (var _i = 0, _a = diffWidgets.exit; _i < _a.length; _i++) {
15071
15077
  var w = _a[_i];
@@ -15110,7 +15116,7 @@
15110
15116
  // IClosable ---
15111
15117
  DashboardDockPanel.prototype.canClose = function (w, wa) {
15112
15118
  var id = this._ec.element(w).id();
15113
- var retVal = window.confirm("Remove Widget \"".concat(id, "\"?"));
15119
+ var retVal = window.confirm("Remove Widget \"" + id + "\"?");
15114
15120
  if (retVal) {
15115
15121
  this._ec.clear(id);
15116
15122
  this.syncWidgets();
@@ -15241,8 +15247,8 @@
15241
15247
  if (w.minWidth_exists() || w.minHeight_exists()) {
15242
15248
  var cell = this.getWidgetCell(w.id());
15243
15249
  cell.element()
15244
- .style("min-width", "".concat(w.minWidth(), "px"))
15245
- .style("min-height", "".concat(w.minHeight(), "px"));
15250
+ .style("min-width", w.minWidth() + "px")
15251
+ .style("min-height", w.minHeight() + "px");
15246
15252
  return true;
15247
15253
  }
15248
15254
  return false;
@@ -15250,7 +15256,7 @@
15250
15256
  DashboardGrid.prototype.syncWidgets = function () {
15251
15257
  var _this = this;
15252
15258
  var prevWidgets = this.widgets();
15253
- var diffWidgets = util$6.compare(prevWidgets, this._ec.elements().filter(function (e) { return e.visualization().visibility() === "normal"; }).map(function (viz) { return viz.visualization().chartPanel(); }));
15259
+ var diffWidgets = util$1.compare(prevWidgets, this._ec.elements().filter(function (e) { return e.visualization().visibility() === "normal"; }).map(function (viz) { return viz.visualization().chartPanel(); }));
15254
15260
  for (var _i = 0, _a = diffWidgets.exit; _i < _a.length; _i++) {
15255
15261
  var w = _a[_i];
15256
15262
  this.removeWidget(w);
@@ -15305,7 +15311,7 @@
15305
15311
  // IClosable ---
15306
15312
  DashboardGrid.prototype.canClose = function (w, wa) {
15307
15313
  var id = this._ec.element(w).id();
15308
- var retVal = window.confirm("Remove Widget \"".concat(id, "\"?"));
15314
+ var retVal = window.confirm("Remove Widget \"" + id + "\"?");
15309
15315
  if (retVal) {
15310
15316
  this._ec.clear(id);
15311
15317
  this.syncWidgets();
@@ -15319,7 +15325,7 @@
15319
15325
  DashboardGrid.prototype._class += " marshaller_DashboardGrid";
15320
15326
  DashboardGrid.prototype.mixin(PopupManager);
15321
15327
 
15322
- var logger$1 = util$6.scopedLogger("marshaller/ddl2/ddl");
15328
+ var logger = util$1.scopedLogger("marshaller/ddl2/ddl");
15323
15329
  var DDLDatasourceAdapter = /** @class */ (function () {
15324
15330
  function DDLDatasourceAdapter() {
15325
15331
  }
@@ -15328,13 +15334,13 @@
15328
15334
  };
15329
15335
  DDLDatasourceAdapter.prototype.id = function (dsT) {
15330
15336
  if (dsT instanceof WU) {
15331
- return "".concat(dsT.url(), "/").concat(dsT.wuid());
15337
+ return dsT.url() + "/" + dsT.wuid();
15332
15338
  }
15333
15339
  else if (dsT instanceof RoxieService) {
15334
- return "".concat(dsT.url(), "/").concat(dsT.querySet(), "/").concat(dsT.queryID());
15340
+ return dsT.url() + "/" + dsT.querySet() + "/" + dsT.queryID();
15335
15341
  }
15336
15342
  else if (dsT instanceof RestService) {
15337
- return "".concat(dsT.url(), "/").concat(dsT.action());
15343
+ return dsT.url() + "/" + dsT.action();
15338
15344
  }
15339
15345
  return dsT.id();
15340
15346
  };
@@ -15492,12 +15498,12 @@
15492
15498
  };
15493
15499
  DDLAdapter.prototype.readDatasourceRef = function (ddlDSRef, dsPicker, elementContainer) {
15494
15500
  var _this = this;
15495
- if (v2$1.isWUResultRef(ddlDSRef)) {
15501
+ if (v2.isWUResultRef(ddlDSRef)) {
15496
15502
  var wu = this._dsReadDedup[ddlDSRef.id];
15497
15503
  dsPicker.datasourceID(wu.output(ddlDSRef.output).id());
15498
15504
  }
15499
- else if (v2$1.isRoxieServiceRef(ddlDSRef)) {
15500
- dsPicker.datasourceID("".concat(ddlDSRef.id, "_").concat(ddlDSRef.output));
15505
+ else if (v2.isRoxieServiceRef(ddlDSRef)) {
15506
+ dsPicker.datasourceID(ddlDSRef.id + "_" + ddlDSRef.output);
15501
15507
  var dsRef = dsPicker.datasourceRef();
15502
15508
  dsRef
15503
15509
  .request(ddlDSRef.request.map(function (rf) {
@@ -15532,7 +15538,7 @@
15532
15538
  }
15533
15539
  else if (activity instanceof DSPicker) ;
15534
15540
  else {
15535
- logger$1.warning("Unknown activity type: ".concat(activity.classID()));
15541
+ logger.warning("Unknown activity type: " + activity.classID());
15536
15542
  }
15537
15543
  }).filter(function (activity) { return !!activity; });
15538
15544
  };
@@ -15593,8 +15599,8 @@
15593
15599
  };
15594
15600
  DDLAdapter.prototype.writeProperties = function () {
15595
15601
  return {
15596
- name: PKG_NAME$1,
15597
- version: PKG_VERSION$1,
15602
+ name: PKG_NAME,
15603
+ version: PKG_VERSION,
15598
15604
  buildVersion: BUILD_VERSION,
15599
15605
  layout: this._dashboard.layout()
15600
15606
  };
@@ -15608,23 +15614,23 @@
15608
15614
  this.readDatasourceRef(ddlView.datasource, hipiePipeline.datasource(), this._ec);
15609
15615
  for (var _a = 0, _b = ddlView.activities; _a < _b.length; _a++) {
15610
15616
  var activity = _b[_a];
15611
- if (v2$1.isProjectActivity(activity)) {
15617
+ if (v2.isProjectActivity(activity)) {
15612
15618
  var project = this.readProject(activity);
15613
15619
  hipiePipeline.project(project);
15614
15620
  }
15615
- if (v2$1.isFilterActivity(activity)) {
15621
+ if (v2.isFilterActivity(activity)) {
15616
15622
  var filters = this.readFilters(activity, this._ec);
15617
15623
  hipiePipeline.filters(filters);
15618
15624
  }
15619
- if (v2$1.isGroupByActivity(activity)) {
15625
+ if (v2.isGroupByActivity(activity)) {
15620
15626
  var groupBy = this.readGroupBy(activity);
15621
15627
  hipiePipeline.groupBy(groupBy);
15622
15628
  }
15623
- if (v2$1.isSortActivity(activity)) {
15629
+ if (v2.isSortActivity(activity)) {
15624
15630
  var sort = this.readSort(activity);
15625
15631
  hipiePipeline.sort(sort);
15626
15632
  }
15627
- if (v2$1.isLimitActivity(activity)) {
15633
+ if (v2.isLimitActivity(activity)) {
15628
15634
  var limit = this.readLimit(activity);
15629
15635
  hipiePipeline.limit(limit);
15630
15636
  }
@@ -15642,8 +15648,8 @@
15642
15648
  var retVal = {
15643
15649
  version: "2.2.1",
15644
15650
  createdBy: {
15645
- name: PKG_NAME$1,
15646
- version: PKG_VERSION$1
15651
+ name: PKG_NAME,
15652
+ version: PKG_VERSION
15647
15653
  },
15648
15654
  datasources: this.writeDatasources(),
15649
15655
  dataviews: this.writeDDLViews(),
@@ -15689,7 +15695,7 @@
15689
15695
  }
15690
15696
  break;
15691
15697
  default:
15692
- logger$1.warning("Unknown ddl datasource type: ".concat(ddlDS.type, " "));
15698
+ logger.warning("Unknown ddl datasource type: " + ddlDS.type + " ");
15693
15699
  }
15694
15700
  }
15695
15701
  this.readDDLViews(ddl.dataviews);
@@ -15717,7 +15723,7 @@
15717
15723
  classIDs.push(classID);
15718
15724
  }
15719
15725
  classIDs.sort();
15720
- importJS.push("import { ".concat(classIDs.join(", "), " } from \"").concat(moduleID, "\";"));
15726
+ importJS.push("import { " + classIDs.join(", ") + " } from \"" + moduleID + "\";");
15721
15727
  }
15722
15728
  return importJS.join("\n");
15723
15729
  };
@@ -15760,18 +15766,18 @@
15760
15766
  switch (meta.type) {
15761
15767
  case "string":
15762
15768
  case "set":
15763
- retVal.push("".concat(prefix, ".").concat(meta.id, "(\"").concat(pe[meta.id](), "\")").concat(postfix, ";"));
15769
+ retVal.push(prefix + "." + meta.id + "(\"" + pe[meta.id]() + "\")" + postfix + ";");
15764
15770
  break;
15765
15771
  case "number":
15766
15772
  case "boolean":
15767
- retVal.push("".concat(prefix, ".").concat(meta.id, "(").concat(pe[meta.id](), ")").concat(postfix, ";"));
15773
+ retVal.push(prefix + "." + meta.id + "(" + pe[meta.id]() + ")" + postfix + ";");
15768
15774
  break;
15769
15775
  case "widget":
15770
- retVal = retVal.concat(this.createProps("".concat(prefix, ".").concat(meta.id, "()"), pe[meta.id]()));
15776
+ retVal = retVal.concat(this.createProps(prefix + "." + meta.id + "()", pe[meta.id]()));
15771
15777
  break;
15772
15778
  case "propertyArray":
15773
15779
  if (meta.ext)
15774
- retVal.push("".concat(prefix, ".").concat(meta.id, "([").concat(pe[meta.id](), "])").concat(postfix, ";"));
15780
+ retVal.push(prefix + "." + meta.id + "([" + pe[meta.id]() + "])" + postfix + ";");
15775
15781
  break;
15776
15782
  }
15777
15783
  }
@@ -15788,13 +15794,13 @@
15788
15794
  };
15789
15795
  JavaScriptAdapter.prototype.datasourceRefID = function (view) {
15790
15796
  var datasourceRef = view.datasource;
15791
- if (v2$1.isRoxieServiceRef(datasourceRef)) {
15792
- return "".concat(this.safeID(datasourceRef.id), "_").concat(this.safeID(datasourceRef.output), "_").concat(this.safeID(view.id));
15797
+ if (v2.isRoxieServiceRef(datasourceRef)) {
15798
+ return this.safeID(datasourceRef.id) + "_" + this.safeID(datasourceRef.output) + "_" + this.safeID(view.id);
15793
15799
  }
15794
- else if (v2$1.isWUResultRef(datasourceRef)) {
15795
- return "".concat(this.safeID(datasourceRef.id), "_").concat(this.safeID(datasourceRef.output));
15800
+ else if (v2.isWUResultRef(datasourceRef)) {
15801
+ return this.safeID(datasourceRef.id) + "_" + this.safeID(datasourceRef.output);
15796
15802
  }
15797
- return "".concat(this.safeID(datasourceRef.id));
15803
+ return "" + this.safeID(datasourceRef.id);
15798
15804
  };
15799
15805
  JavaScriptAdapter.prototype.writeDatasource = function (view) {
15800
15806
  var datasourceRef = view.datasource;
@@ -15809,30 +15815,30 @@
15809
15815
  var wuID = this.safeID(view.datasource.id);
15810
15816
  if (!this._dedup[wuID]) {
15811
15817
  this._dedup[wuID] = true;
15812
- retVal.push(" export const ".concat(wuID, " = new marshaller.WU()\n .url(\"").concat(datasource.url, "\")\n .wuid(\"").concat(datasource.wuid, "\")\n ;"));
15818
+ retVal.push(" export const " + wuID + " = new marshaller.WU()\n .url(\"" + datasource.url + "\")\n .wuid(\"" + datasource.wuid + "\")\n ;");
15813
15819
  }
15814
- retVal.push(" export const ".concat(id, " = new marshaller.WUResult()\n .wu(").concat(wuID, ")\n .resultName(\"").concat(outputID, "\")\n .responseFields(").concat(stringify(datasource.outputs[outputID].fields), ")\n ;"));
15820
+ retVal.push(" export const " + id + " = new marshaller.WUResult()\n .wu(" + wuID + ")\n .resultName(\"" + outputID + "\")\n .responseFields(" + stringify(datasource.outputs[outputID].fields) + ")\n ;");
15815
15821
  break;
15816
15822
  case "logicalfile":
15817
- retVal.push(" export const ".concat(id, " = new marshaller.LogicalFile()\n .url(\"").concat(datasource.url, "\")\n .logicalFile(\"").concat(datasource.logicalFile, "\")\n .responseFields(").concat(stringify(datasource.fields), ")\n ;"));
15823
+ retVal.push(" export const " + id + " = new marshaller.LogicalFile()\n .url(\"" + datasource.url + "\")\n .logicalFile(\"" + datasource.logicalFile + "\")\n .responseFields(" + stringify(datasource.fields) + ")\n ;");
15818
15824
  break;
15819
15825
  case "hipie":
15820
15826
  case "roxie":
15821
15827
  var serviceID = this.safeID(view.datasource.id);
15822
15828
  if (!this._dedup[serviceID]) {
15823
15829
  this._dedup[serviceID] = true;
15824
- retVal.push(" export const ".concat(serviceID, " = new marshaller.RoxieService(ec)\n .url(\"").concat(datasource.url, "\")\n .querySet(\"").concat(datasource.querySet, "\")\n .queryID(\"").concat(datasource.queryID, "\")\n .requestFields(").concat(stringify(datasource.inputs), ")\n ;"));
15830
+ retVal.push(" export const " + serviceID + " = new marshaller.RoxieService(ec)\n .url(\"" + datasource.url + "\")\n .querySet(\"" + datasource.querySet + "\")\n .queryID(\"" + datasource.queryID + "\")\n .requestFields(" + stringify(datasource.inputs) + ")\n ;");
15825
15831
  }
15826
15832
  var resultID = serviceID + "_" + this.safeID(outputID);
15827
15833
  if (!this._dedup[resultID]) {
15828
15834
  this._dedup[resultID] = true;
15829
- retVal.push(" export const ".concat(resultID, " = new marshaller.RoxieResult(ec)\n .service(").concat(serviceID, ")\n .resultName(\"").concat(outputID, "\")\n .responseFields(").concat(stringify(datasource.outputs[outputID].fields), ")\n ;"));
15835
+ retVal.push(" export const " + resultID + " = new marshaller.RoxieResult(ec)\n .service(" + serviceID + ")\n .resultName(\"" + outputID + "\")\n .responseFields(" + stringify(datasource.outputs[outputID].fields) + ")\n ;");
15830
15836
  }
15831
- retVal.push(" export const ".concat(id, " = new marshaller.HipieResultRef(ec)\n .datasource(").concat(resultID, ")\n .requestFieldRefs(").concat(stringify(datasourceRef.request), ")\n ;"));
15837
+ retVal.push(" export const " + id + " = new marshaller.HipieResultRef(ec)\n .datasource(" + resultID + ")\n .requestFieldRefs(" + stringify(datasourceRef.request) + ")\n ;");
15832
15838
  break;
15833
15839
  case "databomb":
15834
15840
  {
15835
- retVal.push(" export const ".concat(id, " = new marshaller.Databomb()\n .format(\"").concat(datasource.format, "\")\n .payload(").concat(JSON.stringify(datasource.payload), ")\n ;"));
15841
+ retVal.push(" export const " + id + " = new marshaller.Databomb()\n .format(\"" + datasource.format + "\")\n .payload(" + JSON.stringify(datasource.payload) + ")\n ;");
15836
15842
  }
15837
15843
  break;
15838
15844
  case "form":
@@ -15840,9 +15846,9 @@
15840
15846
  var fromFields = [];
15841
15847
  for (var _i = 0, _a = datasource.fields; _i < _a.length; _i++) {
15842
15848
  var field = _a[_i];
15843
- fromFields.push("new marshaller.FormField().fieldID(\"".concat(field.id, "\").default(\"").concat(field.default || "", "\")"));
15849
+ fromFields.push("new marshaller.FormField().fieldID(\"" + field.id + "\").default(\"" + (field.default || "") + "\")");
15844
15850
  }
15845
- retVal.push(" export const ".concat(id, " = new marshaller.Form()\n .formFields([\n ").concat(fromFields.join(",\n "), "\n ])\n ;"));
15851
+ retVal.push(" export const " + id + " = new marshaller.Form()\n .formFields([\n " + fromFields.join(",\n ") + "\n ])\n ;");
15846
15852
  }
15847
15853
  break;
15848
15854
  }
@@ -15852,17 +15858,17 @@
15852
15858
  JavaScriptAdapter.prototype.writeActivity = function (activity) {
15853
15859
  switch (activity.type) {
15854
15860
  case "filter":
15855
- return "new marshaller.Filters(ec).conditions(".concat(stringify(activity.conditions), ")");
15861
+ return "new marshaller.Filters(ec).conditions(" + stringify(activity.conditions) + ")";
15856
15862
  case "project":
15857
- return "new marshaller.Project().transformations(".concat(stringify(activity.transformations), ")");
15863
+ return "new marshaller.Project().transformations(" + stringify(activity.transformations) + ")";
15858
15864
  case "groupby":
15859
- return "new marshaller.GroupBy().fieldIDs(".concat(JSON.stringify(activity.groupByIDs), ").aggregates(").concat(stringify(activity.aggregates), ")");
15865
+ return "new marshaller.GroupBy().fieldIDs(" + JSON.stringify(activity.groupByIDs) + ").aggregates(" + stringify(activity.aggregates) + ")";
15860
15866
  case "sort":
15861
- return "new marshaller.Sort().conditions(".concat(stringify(activity.conditions), ")");
15867
+ return "new marshaller.Sort().conditions(" + stringify(activity.conditions) + ")";
15862
15868
  case "limit":
15863
- return "new marshaller.Limit().rows(".concat(activity.limit, ")");
15869
+ return "new marshaller.Limit().rows(" + activity.limit + ")";
15864
15870
  case "mappings":
15865
- return "new marshaller.Mappings().transformations(".concat(stringify(activity.transformations), ")");
15871
+ return "new marshaller.Mappings().transformations(" + stringify(activity.transformations) + ")";
15866
15872
  }
15867
15873
  };
15868
15874
  JavaScriptAdapter.prototype.writeWidgetProps = function (pe) {
@@ -15870,7 +15876,7 @@
15870
15876
  for (var _i = 0, _a = pe.publishedProperties(); _i < _a.length; _i++) {
15871
15877
  var meta = _a[_i];
15872
15878
  if (pe[meta.id + "_modified"]() && meta.id !== "fields") {
15873
- retVal.push(".".concat(meta.id, "(").concat(JSON.stringify(pe[meta.id]()), ")"));
15879
+ retVal.push("." + meta.id + "(" + JSON.stringify(pe[meta.id]()) + ")");
15874
15880
  }
15875
15881
  }
15876
15882
  return retVal;
@@ -15880,29 +15886,29 @@
15880
15886
  var retVal = "";
15881
15887
  var meta;
15882
15888
  if (props.__class) {
15883
- meta = util$6.classID2Meta(props.__class);
15889
+ meta = util$1.classID2Meta(props.__class);
15884
15890
  imports.append(meta);
15885
- retVal += "new ".concat(meta.class, "()");
15891
+ retVal += "new " + meta.class + "()";
15886
15892
  }
15887
15893
  for (var prop in props) {
15888
15894
  if (prop === "__class") ;
15889
- else if (util$6.isArray(props[prop])) {
15890
- var arr = "".concat(props[prop].map(function (item) { return _this.joinWithPrefix(item, imports, joinStr + " ", ""); }).join(",".concat(joinStr, " ")));
15895
+ else if (util$1.isArray(props[prop])) {
15896
+ var arr = "" + props[prop].map(function (item) { return _this.joinWithPrefix(item, imports, joinStr + " ", ""); }).join("," + joinStr + " ");
15891
15897
  if (arr) {
15892
- retVal += "".concat(joinStr, " .").concat(prop, "([").concat(joinStr, " ").concat(arr).concat(joinStr, " ])").concat(postFix);
15898
+ retVal += joinStr + " ." + prop + "([" + joinStr + " " + arr + joinStr + " ])" + postFix;
15893
15899
  }
15894
15900
  }
15895
15901
  else {
15896
- retVal += "".concat(joinStr, " .").concat(prop, "(").concat(JSON.stringify(props[prop]), ")").concat(postFix);
15902
+ retVal += joinStr + " ." + prop + "(" + JSON.stringify(props[prop]) + ")" + postFix;
15897
15903
  }
15898
15904
  }
15899
15905
  return retVal;
15900
15906
  };
15901
15907
  JavaScriptAdapter.prototype.writeWidget = function (dataview, imports) {
15902
- return " export const ".concat(dataview.visualization.id, " = new marshaller.VizChartPanel()\n .id(\"").concat(dataview.visualization.id, "\")\n .title(\"").concat(dataview.visualization.title, "\")\n .widget(").concat(this.joinWithPrefix(dataview.visualization.properties["widget"], imports, "\n ", ""), ")\n ;");
15908
+ return " export const " + dataview.visualization.id + " = new marshaller.VizChartPanel()\n .id(\"" + dataview.visualization.id + "\")\n .title(\"" + dataview.visualization.title + "\")\n .widget(" + this.joinWithPrefix(dataview.visualization.properties["widget"], imports, "\n ", "") + ")\n ;";
15903
15909
  };
15904
15910
  JavaScriptAdapter.prototype.writeElement = function (dataview) {
15905
- var activities = ["data.".concat(this.datasourceRefID(dataview))];
15911
+ var activities = ["data." + this.datasourceRefID(dataview)];
15906
15912
  for (var _i = 0, _a = dataview.activities; _i < _a.length; _i++) {
15907
15913
  var activity = _a[_i];
15908
15914
  activities.push(this.writeActivity(activity));
@@ -15910,9 +15916,9 @@
15910
15916
  var updates = [];
15911
15917
  for (var _b = 0, _c = this._ec.filteredBy(dataview.id); _b < _c.length; _b++) {
15912
15918
  var filteredViz = _c[_b];
15913
- updates.push("".concat(filteredViz.id(), ".refresh();"));
15919
+ updates.push(filteredViz.id() + ".refresh();");
15914
15920
  }
15915
- return "\nconst ".concat(dataview.id, " = new marshaller.Element(ec)\n .id(\"").concat(dataview.id, "\")\n .pipeline([\n ").concat(activities.join(",\n "), "\n ])\n .mappings(new marshaller.Mappings().transformations(").concat(stringify(dataview.visualization.mappings.transformations), "))\n .chartPanel(viz.").concat(dataview.visualization.id, ")\n .on(\"selectionChanged\", () => {\n ").concat(updates.join("\n "), "\n }, true)\n ;\n").concat(dataview.id, ".visualization()\n .visibility(\"").concat(dataview.visualization.visibility, "\")\n .secondaryDataviewID(\"").concat(dataview.visualization.secondaryDataviewID || "", "\")\n ;\nec.append(").concat(dataview.id, ");\n");
15921
+ return "\nconst " + dataview.id + " = new marshaller.Element(ec)\n .id(\"" + dataview.id + "\")\n .pipeline([\n " + activities.join(",\n ") + "\n ])\n .mappings(new marshaller.Mappings().transformations(" + stringify(dataview.visualization.mappings.transformations) + "))\n .chartPanel(viz." + dataview.visualization.id + ")\n .on(\"selectionChanged\", () => {\n " + updates.join("\n ") + "\n }, true)\n ;\n" + dataview.id + ".visualization()\n .visibility(\"" + dataview.visualization.visibility + "\")\n .secondaryDataviewID(\"" + (dataview.visualization.secondaryDataviewID || "") + "\")\n ;\nec.append(" + dataview.id + ");\n";
15916
15922
  };
15917
15923
  JavaScriptAdapter.prototype.writeDatasources = function () {
15918
15924
  var retVal = [];
@@ -15944,7 +15950,7 @@
15944
15950
  };
15945
15951
  JavaScriptAdapter.prototype.createJavaScript = function () {
15946
15952
  var widgets = this.writeWidgets();
15947
- return "".concat(widgets.widgetImports, "\nimport * as marshaller from \"@hpcc-js/marshaller\";\n\n// Dashboard Element Container (Model) ---\nconst ec = new marshaller.ElementContainer();\n\nnamespace data {\n").concat(this.writeDatasources().join("\n"), "\n}\n\nnamespace viz {\n").concat(widgets.widgetDefs, "\n}\n\n// Dashboard Elements (Controller) ---\n").concat(this.writeElements().trim(), "\n\nec.refresh();\n\n// Optional ---\nconst errors = ec.validate();\nfor (const error of errors) {\n console.error(error.elementID + \" (\" + error.source + \"): \" + error.msg);\n}\n\nexport const dashboard = new marshaller.Dashboard(ec)\n .target(\"placeholder\")\n .titleVisible(false)\n .hideSingleTabs(true)\n .layoutObj(").concat(stringify(this._dashboard.layout()), ")\n .render()\n ;\n\n// @ts-ignore\nconst ddl = ").concat(JSON.stringify(this._ddlSchema), ";\n");
15953
+ return widgets.widgetImports + "\nimport * as marshaller from \"@hpcc-js/marshaller\";\n\n// Dashboard Element Container (Model) ---\nconst ec = new marshaller.ElementContainer();\n\nnamespace data {\n" + this.writeDatasources().join("\n") + "\n}\n\nnamespace viz {\n" + widgets.widgetDefs + "\n}\n\n// Dashboard Elements (Controller) ---\n" + this.writeElements().trim() + "\n\nec.refresh();\n\n// Optional ---\nconst errors = ec.validate();\nfor (const error of errors) {\n console.error(error.elementID + \" (\" + error.source + \"): \" + error.msg);\n}\n\nexport const dashboard = new marshaller.Dashboard(ec)\n .target(\"placeholder\")\n .titleVisible(false)\n .hideSingleTabs(true)\n .layoutObj(" + stringify(this._dashboard.layout()) + ")\n .render()\n ;\n\n// @ts-ignore\nconst ddl = " + JSON.stringify(this._ddlSchema) + ";\n";
15948
15954
  };
15949
15955
  return JavaScriptAdapter;
15950
15956
  }());
@@ -15976,8 +15982,8 @@
15976
15982
  }
15977
15983
  }
15978
15984
 
15979
- var css_248z$3 = ".p-Widget.phosphor_WidgetAdapter.p-DockPanel-widget.active{border-color:#5589ff;box-shadow:0 -1px 0 #5589ff,1px 1px 2px rgba(0,0,0,.2)}.p-TabBar-tab.p-mod-current.active{border-color:#5589ff}.p-TabBar-tab.p-mod-current.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),#fff)}";
15980
- styleInject(css_248z$3);
15985
+ var css_248z = ".p-Widget.phosphor_WidgetAdapter.p-DockPanel-widget.active{border-color:#5589ff;box-shadow:0 -1px 0 #5589ff,1px 1px 2px rgba(0,0,0,.2)}.p-TabBar-tab.p-mod-current.active{border-color:#5589ff}.p-TabBar-tab.p-mod-current.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),#fff)}";
15986
+ styleInject(css_248z);
15981
15987
 
15982
15988
  var Dashboard = /** @class */ (function (_super) {
15983
15989
  __extends(Dashboard, _super);
@@ -16007,7 +16013,7 @@
16007
16013
  .enabled(false)
16008
16014
  .on("click", function () {
16009
16015
  var elem = _this._prevActive;
16010
- if (elem && window.confirm("Remove Widget \"".concat(elem.id(), "\"?"))) {
16016
+ if (elem && window.confirm("Remove Widget \"" + elem.id() + "\"?")) {
16011
16017
  _this._ec.clear(elem.id());
16012
16018
  _this.renderPromise().then(function () {
16013
16019
  _this.vizActivation(undefined);
@@ -16203,7 +16209,7 @@
16203
16209
  };
16204
16210
  Dashboard.prototype.importDDL = function (ddl, baseUrl, wuid, dermatologyJson) {
16205
16211
  if (dermatologyJson === void 0) { dermatologyJson = {}; }
16206
- var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade(ddl, baseUrl, wuid, true, dermatologyJson);
16212
+ var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade$1(ddl, baseUrl, wuid, true, dermatologyJson);
16207
16213
  return this.restore(ddl2, true);
16208
16214
  };
16209
16215
  Dashboard.prototype.javascript = function () {
@@ -16252,8 +16258,8 @@
16252
16258
  }(layout.ChartPanel));
16253
16259
  Dashboard.prototype._class += " dashboard_dashboard";
16254
16260
 
16255
- var css_248z$2 = "";
16256
- styleInject(css_248z$2);
16261
+ var css_248z$1 = "";
16262
+ styleInject(css_248z$1);
16257
16263
 
16258
16264
  var DDLEditor = /** @class */ (function (_super) {
16259
16265
  __extends(DDLEditor, _super);
@@ -16339,7 +16345,7 @@
16339
16345
  this.subgraphMap[id] = retVal;
16340
16346
  }
16341
16347
  this.vertices.push(retVal);
16342
- retVal.title("".concat(label));
16348
+ retVal.title("" + label);
16343
16349
  retVal.getBBox(true);
16344
16350
  return retVal;
16345
16351
  };
@@ -16357,13 +16363,13 @@
16357
16363
  this.vertices.push(retVal);
16358
16364
  retVal
16359
16365
  .textbox_shape_colorFill(fillColor)
16360
- .text(tooltip ? "".concat(label, "\n").concat(tooltip) : "".concat(label))
16366
+ .text(tooltip ? label + "\n" + tooltip : "" + label)
16361
16367
  .tooltip(tooltip);
16362
16368
  retVal.getBBox(true);
16363
16369
  return retVal;
16364
16370
  };
16365
16371
  GraphAdapter.prototype.createEdge = function (sourceID, targetID) {
16366
- var edgeID = "".concat(sourceID, "->").concat(targetID);
16372
+ var edgeID = sourceID + "->" + targetID;
16367
16373
  var retVal = this.edgeMap[edgeID];
16368
16374
  if (!retVal) {
16369
16375
  retVal = new graph.Edge()
@@ -16379,27 +16385,27 @@
16379
16385
  dsDetails = dsDetails.selection().datasource();
16380
16386
  }
16381
16387
  if (dsDetails instanceof WUResult) {
16382
- var serverID = "".concat(dsDetails.url());
16383
- var server = this.createSubgraph(serverID, "".concat(serverID));
16384
- var wuID = "".concat(dsDetails.url(), "/").concat(dsDetails.wuid());
16385
- var wu = this.createSubgraph(wuID, "".concat(dsDetails.wuid()));
16388
+ var serverID = "" + dsDetails.url();
16389
+ var server = this.createSubgraph(serverID, "" + serverID);
16390
+ var wuID = dsDetails.url() + "/" + dsDetails.wuid();
16391
+ var wu = this.createSubgraph(wuID, "" + dsDetails.wuid());
16386
16392
  this.hierarchy.push({ parent: server, child: wu });
16387
- var resultID = "".concat(wuID, "/").concat(dsDetails.resultName());
16393
+ var resultID = wuID + "/" + dsDetails.resultName();
16388
16394
  var result = this.createVertex(resultID, dsDetails.resultName(), { activity: dsDetails });
16389
16395
  this.hierarchy.push({ parent: wu, child: result });
16390
16396
  return resultID;
16391
16397
  }
16392
16398
  else if (dsDetails instanceof LogicalFile) {
16393
- var serverID = "".concat(dsDetails.url());
16394
- var server = this.createSubgraph(serverID, "".concat(serverID));
16395
- var lfID = "".concat(serverID, "/").concat(dsDetails.logicalFile());
16399
+ var serverID = "" + dsDetails.url();
16400
+ var server = this.createSubgraph(serverID, "" + serverID);
16401
+ var lfID = serverID + "/" + dsDetails.logicalFile();
16396
16402
  var lf = this.createVertex(lfID, dsDetails.logicalFile(), { activity: dsDetails });
16397
16403
  this.hierarchy.push({ parent: server, child: lf });
16398
16404
  return lfID;
16399
16405
  }
16400
16406
  else if (dsDetails instanceof RoxieResultRef) {
16401
- var serverID = "".concat(dsDetails.url());
16402
- var server = this.createSubgraph(serverID, "".concat(serverID));
16407
+ var serverID = "" + dsDetails.url();
16408
+ var server = this.createSubgraph(serverID, "" + serverID);
16403
16409
  var surfaceID = dsDetails.serviceID(); // `${dsDetails.url()}/${dsDetails.querySet()}`;
16404
16410
  var surface = this.createSubgraph(surfaceID, dsDetails.querySet());
16405
16411
  this.hierarchy.push({ parent: server, child: surface });
@@ -16408,7 +16414,7 @@
16408
16414
  parent: surface,
16409
16415
  child: this.createVertex(roxieID, dsDetails.queryID())
16410
16416
  });
16411
- var roxieResultID = "".concat(surfaceID, "/").concat(dsDetails.resultName());
16417
+ var roxieResultID = surfaceID + "/" + dsDetails.resultName();
16412
16418
  this.hierarchy.push({
16413
16419
  parent: surface,
16414
16420
  child: this.createVertex(roxieResultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16417,15 +16423,15 @@
16417
16423
  return roxieResultID;
16418
16424
  }
16419
16425
  else if (dsDetails instanceof RoxieResult) {
16420
- var serverID = "".concat(dsDetails.service().url());
16421
- var server = this.createSubgraph(serverID, "".concat(serverID));
16426
+ var serverID = "" + dsDetails.service().url();
16427
+ var server = this.createSubgraph(serverID, "" + serverID);
16422
16428
  var querySetID = dsDetails.serviceID();
16423
16429
  var querySet = this.createSubgraph(querySetID, dsDetails.service().querySet());
16424
16430
  this.hierarchy.push({ parent: server, child: querySet });
16425
- var queryID = "".concat(querySetID, "/").concat(dsDetails.service().queryID());
16431
+ var queryID = querySetID + "/" + dsDetails.service().queryID();
16426
16432
  var query = this.createSubgraph(queryID, dsDetails.service().queryID());
16427
16433
  this.hierarchy.push({ parent: querySet, child: query });
16428
- var resultID = "".concat(queryID, "/").concat(dsDetails.resultName());
16434
+ var resultID = queryID + "/" + dsDetails.resultName();
16429
16435
  this.hierarchy.push({
16430
16436
  parent: query,
16431
16437
  child: this.createVertex(resultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16434,8 +16440,8 @@
16434
16440
  return resultID;
16435
16441
  }
16436
16442
  else if (dsDetails instanceof RestResultRef) {
16437
- var serverID = "".concat(dsDetails.url());
16438
- var server = this.createSubgraph(serverID, "".concat(serverID));
16443
+ var serverID = "" + dsDetails.url();
16444
+ var server = this.createSubgraph(serverID, "" + serverID);
16439
16445
  var surfaceID = dsDetails.serviceID();
16440
16446
  var surface = this.createSubgraph(surfaceID, dsDetails.action());
16441
16447
  this.hierarchy.push({ parent: server, child: surface });
@@ -16444,7 +16450,7 @@
16444
16450
  parent: surface,
16445
16451
  child: this.createVertex(roxieID, dsDetails.action())
16446
16452
  });
16447
- var roxieResultID = "".concat(surfaceID, "/").concat(dsDetails.resultName());
16453
+ var roxieResultID = surfaceID + "/" + dsDetails.resultName();
16448
16454
  this.hierarchy.push({
16449
16455
  parent: surface,
16450
16456
  child: this.createVertex(roxieResultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16453,13 +16459,13 @@
16453
16459
  return roxieResultID;
16454
16460
  }
16455
16461
  else if (dsDetails instanceof RestResult) {
16456
- var serverID = "".concat(dsDetails.service().url());
16457
- var server = this.createSubgraph(serverID, "".concat(serverID));
16462
+ var serverID = "" + dsDetails.service().url();
16463
+ var server = this.createSubgraph(serverID, "" + serverID);
16458
16464
  var serviceID = dsDetails.serviceID();
16459
- var actionID = "".concat(serverID, "/").concat(dsDetails.service().action());
16465
+ var actionID = serverID + "/" + dsDetails.service().action();
16460
16466
  var action = this.createSubgraph(serviceID, dsDetails.service().action());
16461
16467
  this.hierarchy.push({ parent: server, child: action });
16462
- var resultID = "".concat(actionID, "/").concat(dsDetails.resultName());
16468
+ var resultID = actionID + "/" + dsDetails.resultName();
16463
16469
  this.hierarchy.push({
16464
16470
  parent: action,
16465
16471
  child: this.createVertex(resultID, dsDetails.resultName(), { activity: dsDetails })
@@ -16484,20 +16490,20 @@
16484
16490
  }
16485
16491
  };
16486
16492
  GraphAdapter.prototype.createActivity = function (sourceID, view, activity, label) {
16487
- var surface = this.createSubgraph(view.id(), "".concat(view.id()), { view: view });
16493
+ var surface = this.createSubgraph(view.id(), "" + view.id(), { view: view });
16488
16494
  var fillColor = null;
16489
16495
  var tooltip = "";
16490
16496
  if (activity.exists()) {
16491
16497
  var errors = activity.validate();
16492
16498
  if (errors.length) {
16493
16499
  fillColor = "pink";
16494
- tooltip = errors.map(function (error) { return "".concat(error.source, ": ").concat(error.msg); }).join("\n");
16500
+ tooltip = errors.map(function (error) { return error.source + ": " + error.msg; }).join("\n");
16495
16501
  }
16496
16502
  }
16497
16503
  else {
16498
16504
  fillColor = "lightgrey";
16499
16505
  }
16500
- var vertex = this.createVertex(activity.id(), label || "".concat(activity.classID()), { view: view, activity: activity }, tooltip, fillColor);
16506
+ var vertex = this.createVertex(activity.id(), label || "" + activity.classID(), { view: view, activity: activity }, tooltip, fillColor);
16501
16507
  if (sourceID) {
16502
16508
  this.createEdge(sourceID, activity.id());
16503
16509
  }
@@ -16524,7 +16530,7 @@
16524
16530
  var visualization = view.visualization();
16525
16531
  var mappings = visualization.mappings();
16526
16532
  var mappingVertexID = this.createActivity(prevID, view, mappings, "Mappings");
16527
- var vizSubgraphID = "".concat(visualization.id(), "-sg");
16533
+ var vizSubgraphID = visualization.id() + "-sg";
16528
16534
  var surface = this.createSubgraph(vizSubgraphID, "Visualization", { visualization: visualization });
16529
16535
  this.hierarchy.push({
16530
16536
  parent: this.subgraphMap[view.id()],
@@ -16534,14 +16540,14 @@
16534
16540
  parent: surface,
16535
16541
  child: this.vertexMap[mappings.id()]
16536
16542
  });
16537
- var vizVertexID = "".concat(visualization.id(), "-viz");
16543
+ var vizVertexID = visualization.id() + "-viz";
16538
16544
  var widgetVertex = this.createVertex(vizVertexID, visualization.chartPanel().widget().classID(), { view: view, chartPanel: visualization.chartPanel() });
16539
16545
  this.createEdge(mappingVertexID, vizVertexID);
16540
16546
  this.hierarchy.push({
16541
16547
  parent: surface,
16542
16548
  child: widgetVertex
16543
16549
  });
16544
- var stateVertexID = "".concat(visualization.id(), "-state");
16550
+ var stateVertexID = visualization.id() + "-state";
16545
16551
  var stateVertex = this.createVertex(stateVertexID, "Selection", { view: view, state: view.state() });
16546
16552
  this.createEdge(vizVertexID, stateVertexID)
16547
16553
  .weight(10)
@@ -16562,7 +16568,7 @@
16562
16568
  var secondaryElement = this._ec.element(visualization.secondaryDataviewID());
16563
16569
  if (secondaryElement) {
16564
16570
  var mappings = secondaryElement.visualization().mappings();
16565
- this.createEdge(mappings.id(), "".concat(visualization.id(), "-viz"));
16571
+ this.createEdge(mappings.id(), visualization.id() + "-viz");
16566
16572
  }
16567
16573
  }
16568
16574
  for (var _f = 0, _g = this._ec.elements(); _f < _g.length; _f++) {
@@ -16803,7 +16809,7 @@
16803
16809
  var data = this._ec.elements().map(function (elem) {
16804
16810
  return [elem.id(), elem.visualization().title(), elem];
16805
16811
  });
16806
- var dataID = util$6.hashSum(data.map(function (row) { return row[0]; }));
16812
+ var dataID = util$1.hashSum(data.map(function (row) { return row[0]; }));
16807
16813
  if (this._prevDataID !== dataID) {
16808
16814
  this._prevDataID = dataID;
16809
16815
  this.data(data);
@@ -16813,8 +16819,8 @@
16813
16819
  return DVTable;
16814
16820
  }(layout.ChartPanel));
16815
16821
 
16816
- var css_248z$1 = ".common_SelectionButton.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),hsla(0,0%,100%,0) 80%)}";
16817
- styleInject(css_248z$1);
16822
+ var css_248z$2 = ".common_SelectionButton.error{background:red;background:linear-gradient(180deg,rgba(255,0,0,.5),hsla(0,0%,100%,0) 80%)}";
16823
+ styleInject(css_248z$2);
16818
16824
 
16819
16825
  var PipelineSelectionButton = /** @class */ (function (_super) {
16820
16826
  __extends(PipelineSelectionButton, _super);
@@ -16840,7 +16846,7 @@
16840
16846
  this.tooltip(_.map(function (err) {
16841
16847
  var errSourceParts = err.source.split(".");
16842
16848
  errSourceParts.splice(0, 1);
16843
- return "".concat(errSourceParts.join("."), ": ").concat(err.msg);
16849
+ return errSourceParts.join(".") + ": " + err.msg;
16844
16850
  }).join("\n"));
16845
16851
  }
16846
16852
  else {
@@ -17119,7 +17125,7 @@
17119
17125
  return PipelinePanel;
17120
17126
  }(layout.ChartPanel));
17121
17127
  PipelinePanel.prototype._class += " marshaller_PipelinePanel";
17122
- var DDLPreview$1 = /** @class */ (function (_super) {
17128
+ var DDLPreview = /** @class */ (function (_super) {
17123
17129
  __extends(DDLPreview, _super);
17124
17130
  function DDLPreview() {
17125
17131
  var _this = _super.call(this) || this;
@@ -17186,7 +17192,7 @@
17186
17192
  _this.propChanged(id, newValue, oldValue, source);
17187
17193
  });
17188
17194
  _this._previewPanel = new phosphor.TabPanel();
17189
- _this._rhsDDLPreview = new DDLPreview$1();
17195
+ _this._rhsDDLPreview = new DDLPreview();
17190
17196
  _this._rhsDataPreview = new dgrid.DatasourceTable().pagination(true);
17191
17197
  _this._previewPanel
17192
17198
  .addWidget(_this._rhsDataPreview, "Data")
@@ -17237,11 +17243,11 @@
17237
17243
  return PipelineSplitPanel;
17238
17244
  }(phosphor.SplitPanel));
17239
17245
 
17240
- var css_248z = ".graph_Graph .graphVertex>.subgraph .title rect{fill:#dcf1ff;border-bottom-width:0}.graph_Graph .graphVertex>.subgraph .title text{fill:#000}.graph_Graph .graphVertex>.subgraph rect{fill:none}.graph_Graph .graphVertex .graph_Vertex.selected .common_Shape,.graph_Graph .graphVertex>.subgraph.selected rect{stroke:red!important}.graph_Graph .common_Surface .common_Menu{visibility:hidden}.p-MenuBar{background:#fafafa;border-bottom:1px solid #ddd;color:rgba(0,0,0,.87);font:13px Helvetica,Arial,sans-serif;padding-left:5px}.p-MenuBar-menu{transform:translateY(-1px)}.p-MenuBar-item{border-left:1px solid transparent;border-right:1px solid transparent;padding:4px 8px}.p-MenuBar-item.p-mod-active{background:#e5e5e5}.p-MenuBar.p-mod-active .p-MenuBar-item.p-mod-active{background:#fff;border-left:1px solid silver;border-right:1px solid silver;box-shadow:0 0 6px rgba(0,0,0,.2);z-index:10001}.p-Menu{background:#fff;border:1px solid silver;box-shadow:0 1px 6px rgba(0,0,0,.2);color:rgba(0,0,0,.87);font:12px Helvetica,Arial,sans-serif;padding:3px 0}.p-Menu-item.p-mod-active{background:#e5e5e5}.p-Menu-item.p-mod-disabled{color:rgba(0,0,0,.25)}.p-Menu-itemIcon{padding:4px 2px;width:21px}.p-Menu-itemLabel{padding:4px 35px 4px 2px}.p-Menu-itemMnemonic{text-decoration:underline}.p-Menu-itemShortcut{padding:4px 0}.p-Menu-itemSubmenuIcon{padding:4px 0;width:16px}.p-Menu-item[data-type=separator]>div{height:9px;padding:0}.p-Menu-item[data-type=separator]>div:after{border-top:1px solid #ddd;content:\"\";display:block;position:relative;top:4px}.p-Menu-itemIcon:before,.p-Menu-itemSubmenuIcon:before{font-family:FontAwesome}.p-Menu-item.p-mod-toggled>.p-Menu-itemIcon:before{content:\"\\f00c\"}.p-Menu-item[data-type=submenu]>.p-Menu-itemSubmenuIcon:before{content:\"\\f0da\"}.p-CommandPalette{background:#f5f5f5;font-family:sans-serif}.p-CommandPalette-search{padding:8px}.p-CommandPalette-wrapper{background:#fff;border:1px solid #e0e0e0;padding:4px 6px}.p-CommandPalette-input{border:none;font-size:16px;outline:none;width:100%}.p-CommandPalette-header{background:#e1e1e1;color:#757575;cursor:pointer;font-size:12px;font-weight:600;padding:4px}.p-CommandPalette-header:hover:before{content:\"\\2026\";float:right;margin-right:4px}.p-CommandPalette-header>mark{background-color:transparent;font-weight:700}.p-CommandPalette-item{color:#757575;font-size:13px;font-weight:500;padding:4px 8px}.p-CommandPalette-emptyMessage{color:#757575;font-size:12px;font-weight:600;padding:4px;text-align:center}.p-CommandPalette-item.p-mod-disabled{color:rgba(0,0,0,.25)}.p-CommandPalette-item.p-mod-active{background:#7fdbff}.p-CommandPalette-item:hover:not(.p-mod-active):not(.p-mod-disabled){background:#e5e5e5}.p-CommandPalette-itemLabel>mark{background-color:transparent;font-weight:700}.p-CommandPalette-item.p-mod-disabled mark{color:rgba(0,0,0,.4)}.p-CommandPalette-itemCaption{color:#9e9e9e;font-size:11px;font-weight:400}";
17241
- styleInject(css_248z);
17246
+ var css_248z$3 = ".graph_Graph .graphVertex>.subgraph .title rect{fill:#dcf1ff;border-bottom-width:0}.graph_Graph .graphVertex>.subgraph .title text{fill:#000}.graph_Graph .graphVertex>.subgraph rect{fill:none}.graph_Graph .graphVertex .graph_Vertex.selected .common_Shape,.graph_Graph .graphVertex>.subgraph.selected rect{stroke:red!important}.graph_Graph .common_Surface .common_Menu{visibility:hidden}.p-MenuBar{padding-left:5px;background:#fafafa;color:rgba(0,0,0,.87);border-bottom:1px solid #ddd;font:13px Helvetica,Arial,sans-serif}.p-MenuBar-menu{transform:translateY(-1px)}.p-MenuBar-item{padding:4px 8px;border-left:1px solid transparent;border-right:1px solid transparent}.p-MenuBar-item.p-mod-active{background:#e5e5e5}.p-MenuBar.p-mod-active .p-MenuBar-item.p-mod-active{z-index:10001;background:#fff;border-left:1px solid silver;border-right:1px solid silver;box-shadow:0 0 6px rgba(0,0,0,.2)}.p-Menu{padding:3px 0;background:#fff;color:rgba(0,0,0,.87);border:1px solid silver;font:12px Helvetica,Arial,sans-serif;box-shadow:0 1px 6px rgba(0,0,0,.2)}.p-Menu-item.p-mod-active{background:#e5e5e5}.p-Menu-item.p-mod-disabled{color:rgba(0,0,0,.25)}.p-Menu-itemIcon{width:21px;padding:4px 2px}.p-Menu-itemLabel{padding:4px 35px 4px 2px}.p-Menu-itemMnemonic{text-decoration:underline}.p-Menu-itemShortcut{padding:4px 0}.p-Menu-itemSubmenuIcon{width:16px;padding:4px 0}.p-Menu-item[data-type=separator]>div{padding:0;height:9px}.p-Menu-item[data-type=separator]>div:after{content:\"\";display:block;position:relative;top:4px;border-top:1px solid #ddd}.p-Menu-itemIcon:before,.p-Menu-itemSubmenuIcon:before{font-family:FontAwesome}.p-Menu-item.p-mod-toggled>.p-Menu-itemIcon:before{content:\"\\f00c\"}.p-Menu-item[data-type=submenu]>.p-Menu-itemSubmenuIcon:before{content:\"\\f0da\"}.p-CommandPalette{font-family:sans-serif;background:#f5f5f5}.p-CommandPalette-search{padding:8px}.p-CommandPalette-wrapper{padding:4px 6px;background:#fff;border:1px solid #e0e0e0}.p-CommandPalette-input{width:100%;border:none;outline:none;font-size:16px}.p-CommandPalette-header{padding:4px;color:#757575;font-size:12px;font-weight:600;background:#e1e1e1;cursor:pointer}.p-CommandPalette-header:hover:before{content:\"\\2026\";float:right;margin-right:4px}.p-CommandPalette-header>mark{background-color:transparent;font-weight:700}.p-CommandPalette-item{padding:4px 8px;color:#757575;font-size:13px;font-weight:500}.p-CommandPalette-emptyMessage{padding:4px;color:#757575;font-size:12px;font-weight:600;text-align:center}.p-CommandPalette-item.p-mod-disabled{color:rgba(0,0,0,.25)}.p-CommandPalette-item.p-mod-active{background:#7fdbff}.p-CommandPalette-item:hover:not(.p-mod-active):not(.p-mod-disabled){background:#e5e5e5}.p-CommandPalette-itemLabel>mark{background-color:transparent;font-weight:700}.p-CommandPalette-item.p-mod-disabled mark{color:rgba(0,0,0,.4)}.p-CommandPalette-itemCaption{color:#9e9e9e;font-size:11px;font-weight:400}";
17247
+ styleInject(css_248z$3);
17242
17248
 
17243
- var logger = util$6.scopedLogger("marshaller/dashy");
17244
- var DDLPreview = /** @class */ (function (_super) {
17249
+ var logger$1 = util$1.scopedLogger("marshaller/dashy");
17250
+ var DDLPreview$1 = /** @class */ (function (_super) {
17245
17251
  __extends(DDLPreview, _super);
17246
17252
  function DDLPreview(_dashy) {
17247
17253
  var _this = _super.call(this) || this;
@@ -17326,7 +17332,7 @@
17326
17332
  .on("vertex_contextmenu", function (row, col, sel, ext) {
17327
17333
  });
17328
17334
  _this._lhsDebugSheet = new phosphor.TabPanel();
17329
- _this._lhsDebugDDLEditor = new DDLPreview(_this);
17335
+ _this._lhsDebugDDLEditor = new DDLPreview$1(_this);
17330
17336
  _this._lhsDebugDDLSchema = new codemirror.JSONEditor().json(ddl2Schema);
17331
17337
  _this._lhsDebugJSEditor = new codemirror.JSEditor();
17332
17338
  _this._lhsDebugCloneEC = new ElementContainer();
@@ -17390,7 +17396,7 @@
17390
17396
  for (var _i = 0, _a = _this._elementContainer.validate(); _i < _a.length; _i++) {
17391
17397
  var error = _a[_i];
17392
17398
  hasError = true;
17393
- logger.warning(error.elementID + " (" + error.source + "): " + error.msg);
17399
+ logger$1.warning(error.elementID + " (" + error.source + "): " + error.msg);
17394
17400
  }
17395
17401
  if (hasError) {
17396
17402
  // Re-render to highlight errrors ---
@@ -17401,7 +17407,7 @@
17401
17407
  };
17402
17408
  Dashy.prototype.importDDL = function (ddl, baseUrl, wuid, dermatologyJson) {
17403
17409
  if (dermatologyJson === void 0) { dermatologyJson = {}; }
17404
- var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade(ddl, baseUrl, wuid, true, dermatologyJson);
17410
+ var ddl2 = isDDL2Schema(ddl) ? ddl : upgrade$1(ddl, baseUrl, wuid, true, dermatologyJson);
17405
17411
  var retVal = this.restore(ddl2);
17406
17412
  if (isDDL2Schema(ddl)) {
17407
17413
  this._lhsDebugDDLv2.json(ddl2);
@@ -17464,7 +17470,7 @@
17464
17470
  };
17465
17471
  Dashy.prototype.loadGraph = function () {
17466
17472
  this._lhsPipeline
17467
- .data(__assign$1({}, this._graphAdapter.createGraph()), true);
17473
+ .data(__assign({}, this._graphAdapter.createGraph()), true);
17468
17474
  if (this.activeLHS() === this._lhsPipeline) {
17469
17475
  this._lhsPipeline
17470
17476
  .lazyRender();
@@ -17497,7 +17503,7 @@
17497
17503
  }).then(function () {
17498
17504
  for (var _i = 0, _a = _this._lhsDebugCloneEC.validate(); _i < _a.length; _i++) {
17499
17505
  var error = _a[_i];
17500
- logger.warning(error.elementID + " (" + error.source + "): " + error.msg);
17506
+ logger$1.warning(error.elementID + " (" + error.source + "): " + error.msg);
17501
17507
  }
17502
17508
  });
17503
17509
  });
@@ -17545,11 +17551,11 @@
17545
17551
  palette.addItem({ command: "remove", category: "Notebook" });
17546
17552
  palette.id = "palette";
17547
17553
  var contextMenu = new phosphor.ContextMenu({ commands: commands });
17548
- contextMenu.addItem({ command: "dash_add", selector: "#".concat(this._lhsDashboard.id()) });
17549
- contextMenu.addItem({ command: "dash_clear", selector: "#".concat(this._lhsDashboard.id()) });
17550
- contextMenu.addItem({ type: "separator", selector: "#".concat(this._lhsDashboard.id()) });
17551
- contextMenu.addItem({ command: "dash_load", selector: "#".concat(this.id()) });
17552
- contextMenu.addItem({ command: "dash_save", selector: "#".concat(this.id()) });
17554
+ contextMenu.addItem({ command: "dash_add", selector: "#" + this._lhsDashboard.id() });
17555
+ contextMenu.addItem({ command: "dash_clear", selector: "#" + this._lhsDashboard.id() });
17556
+ contextMenu.addItem({ type: "separator", selector: "#" + this._lhsDashboard.id() });
17557
+ contextMenu.addItem({ command: "dash_load", selector: "#" + this.id() });
17558
+ contextMenu.addItem({ command: "dash_save", selector: "#" + this.id() });
17553
17559
  document.addEventListener("contextmenu", function (event) {
17554
17560
  if (contextMenu.open(event)) {
17555
17561
  event.preventDefault();
@@ -17693,7 +17699,9 @@
17693
17699
 
17694
17700
  Object.defineProperty(exports, 'hookSend', {
17695
17701
  enumerable: true,
17696
- get: function () { return comms.hookSend; }
17702
+ get: function () {
17703
+ return comms.hookSend;
17704
+ }
17697
17705
  });
17698
17706
  exports.Activity = Activity;
17699
17707
  exports.ActivityArray = ActivityArray;
@@ -17730,8 +17738,8 @@
17730
17738
  exports.Mappings = Mappings;
17731
17739
  exports.MultiField = MultiField;
17732
17740
  exports.NullView = NullView;
17733
- exports.PKG_NAME = PKG_NAME$1;
17734
- exports.PKG_VERSION = PKG_VERSION$1;
17741
+ exports.PKG_NAME = PKG_NAME;
17742
+ exports.PKG_VERSION = PKG_VERSION;
17735
17743
  exports.Project = Project;
17736
17744
  exports.ProjectBase = ProjectBase;
17737
17745
  exports.RemoteFilter = RemoteFilter;
@@ -17759,5 +17767,5 @@
17759
17767
 
17760
17768
  Object.defineProperty(exports, '__esModule', { value: true });
17761
17769
 
17762
- }));
17770
+ })));
17763
17771
  //# sourceMappingURL=index.js.map