@hpcc-js/ddl-shim 2.17.20 → 2.17.21

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,27 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
3
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = global || self, factory(global['@hpcc-js/ddl-shim'] = {}));
5
- }(this, (function (exports) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/ddl-shim"] = {}));
5
+ })(this, (function (exports) { 'use strict';
6
+
7
+ function _mergeNamespaces(n, m) {
8
+ m.forEach(function (e) {
9
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
10
+ if (k !== 'default' && !(k in n)) {
11
+ var d = Object.getOwnPropertyDescriptor(e, k);
12
+ Object.defineProperty(n, k, d.get ? d : {
13
+ enumerable: true,
14
+ get: function () { return e[k]; }
15
+ });
16
+ }
17
+ });
18
+ });
19
+ return Object.freeze(n);
20
+ }
6
21
 
7
22
  var PKG_NAME = "@hpcc-js/ddl-shim";
8
- var PKG_VERSION = "2.17.20";
9
- var BUILD_VERSION = "2.94.0";
23
+ var PKG_VERSION = "2.17.21";
24
+ var BUILD_VERSION = "2.97.0";
10
25
 
11
26
  function isWorkunitDatasource(ref) {
12
27
  return ref.WUID !== undefined;
@@ -101,7 +116,7 @@
101
116
  }
102
117
  var VisibilitySet = ["normal", "flyout"];
103
118
 
104
- var v2 = /*#__PURE__*/Object.freeze({
119
+ var v2$1 = /*#__PURE__*/Object.freeze({
105
120
  __proto__: null,
106
121
  isDatabombRef: isDatabombRef,
107
122
  isWUResultRef: isWUResultRef,
@@ -149,7 +164,7 @@
149
164
  ar[i] = from[i];
150
165
  }
151
166
  }
152
- return to.concat(ar || from);
167
+ return to.concat(ar || Array.prototype.slice.call(from));
153
168
  }
154
169
 
155
170
  var classMappings = {
@@ -365,7 +380,7 @@
365
380
  });
366
381
  return retVal;
367
382
  }
368
- function upgrade(ddl2, dermObj) {
383
+ function upgrade$1(ddl2, dermObj) {
369
384
  apply_to_dataviews(ddl2, dermObj);
370
385
  return apply_to_properties_layout(ddl2, dermObj);
371
386
  }
@@ -585,7 +600,7 @@
585
600
  break;
586
601
  default:
587
602
  groupByColumns.push(this.toLowerCase(field.id));
588
- throw new Error("Unhandled field function: " + field.properties.function);
603
+ throw new Error("Unhandled field function: ".concat(field.properties.function));
589
604
  }
590
605
  }
591
606
  else {
@@ -596,7 +611,7 @@
596
611
  this._ddl2DataviewActivities[viz.id].project.transformations = projectTransformations;
597
612
  }
598
613
  if (aggrFields.length) {
599
- this._ddl2DataviewActivities[viz.id].groupBy.groupByIDs = __spreadArray([], groupByColumns);
614
+ this._ddl2DataviewActivities[viz.id].groupBy.groupByIDs = __spreadArray([], groupByColumns, true);
600
615
  this._ddl2DataviewActivities[viz.id].groupBy.aggregates = aggrFields;
601
616
  }
602
617
  }
@@ -614,7 +629,7 @@
614
629
  case "MAX":
615
630
  return "max";
616
631
  }
617
- throw new Error("Unknown DDL1 Function Type: " + func);
632
+ throw new Error("Unknown DDL1 Function Type: ".concat(func));
618
633
  };
619
634
  DDLUpgrade.prototype.readMappings = function () {
620
635
  for (var _i = 0, _a = this._ddl.dashboards; _i < _a.length; _i++) {
@@ -641,7 +656,7 @@
641
656
  this.readSliderMappings(viz);
642
657
  }
643
658
  else {
644
- throw new Error("Unkown DDL1 mapping type: " + viz.type);
659
+ throw new Error("Unkown DDL1 mapping type: ".concat(viz.type));
645
660
  }
646
661
  }
647
662
  }
@@ -756,7 +771,7 @@
756
771
  var flag = _a[_i];
757
772
  if (flag.fieldid) {
758
773
  mappings.transformations.push({
759
- fieldID: "annotation_" + idx++,
774
+ fieldID: "annotation_".concat(idx++),
760
775
  type: "map",
761
776
  sourceFieldID: this.toLowerCase(flag.fieldid),
762
777
  default: {},
@@ -815,7 +830,7 @@
815
830
  var mapping = update.mappings[key];
816
831
  var dsFilter = (mapping && dsFilters[mapping]) ? dsFilters[mapping].filter : undefined;
817
832
  if (!dsFilter) {
818
- console.warn("Select Mapping \"" + mapping + "\" in viz \"" + viz.id + "\" not found in filters for \"" + otherViz.id + "\"");
833
+ console.warn("Select Mapping \"".concat(mapping, "\" in viz \"").concat(viz.id, "\" not found in filters for \"").concat(otherViz.id, "\""));
819
834
  }
820
835
  else {
821
836
  condition.mappings.push({
@@ -1066,43 +1081,24 @@
1066
1081
  };
1067
1082
  return DDLUpgrade;
1068
1083
  }());
1069
- function upgrade$1(ddl, baseUrl, wuid, toLowerCase, dermatologyJson) {
1084
+ function upgrade(ddl, baseUrl, wuid, toLowerCase, dermatologyJson) {
1070
1085
  if (toLowerCase === void 0) { toLowerCase = true; }
1071
1086
  if (dermatologyJson === void 0) { dermatologyJson = {}; }
1072
1087
  var ddlUp = new DDLUpgrade(ddl, baseUrl, wuid, toLowerCase);
1073
1088
  var retVal = ddlUp.write();
1074
- retVal.properties = upgrade(retVal, dermatologyJson);
1089
+ retVal.properties = upgrade$1(retVal, dermatologyJson);
1075
1090
  return retVal;
1076
1091
  }
1077
1092
 
1078
1093
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1079
1094
 
1080
- function unwrapExports (x) {
1081
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1082
- }
1095
+ var uri_all = {exports: {}};
1083
1096
 
1084
- function createCommonjsModule(fn, basedir, module) {
1085
- return module = {
1086
- path: basedir,
1087
- exports: {},
1088
- require: function (path, base) {
1089
- return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
1090
- }
1091
- }, fn(module, module.exports), module.exports;
1092
- }
1093
-
1094
- function getCjsExportFromNamespace (n) {
1095
- return n && n['default'] || n;
1096
- }
1097
-
1098
- function commonjsRequire () {
1099
- throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
1100
- }
1101
-
1102
- var uri_all = createCommonjsModule(function (module, exports) {
1103
1097
  /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
1098
+
1099
+ (function (module, exports) {
1104
1100
  (function (global, factory) {
1105
- factory(exports) ;
1101
+ factory(exports) ;
1106
1102
  }(commonjsGlobal, (function (exports) {
1107
1103
  function merge() {
1108
1104
  for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
@@ -1156,10 +1152,10 @@
1156
1152
  //subset, excludes bidi control characters
1157
1153
  IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]",
1158
1154
  //subset
1159
- UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$),
1160
- SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"),
1161
- USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"),
1162
- 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$$),
1155
+ UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$);
1156
+ subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*");
1157
+ subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*");
1158
+ 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$$),
1163
1159
  //relaxed parsing rules
1164
1160
  IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$),
1165
1161
  H16$ = subexp(HEXDIG$$ + "{1,4}"),
@@ -1183,14 +1179,14 @@
1183
1179
  IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"),
1184
1180
  //[ *6( h16 ":" ) h16 ] "::"
1185
1181
  IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")),
1186
- ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"),
1182
+ ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+");
1187
1183
  //RFC 6874, with relaxed parsing rules
1188
- IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"),
1184
+ subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+");
1189
1185
  //RFC 6874
1190
- REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"),
1191
- PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")),
1192
- SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"),
1193
- QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*");
1186
+ subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*");
1187
+ var PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]"));
1188
+ subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+");
1189
+ subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*");
1194
1190
  return {
1195
1191
  NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
1196
1192
  NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
@@ -2304,7 +2300,7 @@
2304
2300
 
2305
2301
  var O = {};
2306
2302
  //RFC 3986
2307
- var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + ( "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" ) + "]";
2303
+ var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + ("\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" ) + "]";
2308
2304
  var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
2309
2305
  var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
2310
2306
  //RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
@@ -2502,9 +2498,7 @@
2502
2498
 
2503
2499
  })));
2504
2500
 
2505
- });
2506
-
2507
- unwrapExports(uri_all);
2501
+ }(uri_all, uri_all.exports));
2508
2502
 
2509
2503
  var isArray = Array.isArray;
2510
2504
  var keyList = Object.keys;
@@ -2562,7 +2556,7 @@
2562
2556
 
2563
2557
  // https://mathiasbynens.be/notes/javascript-encoding
2564
2558
  // https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
2565
- var ucs2length = function ucs2length(str) {
2559
+ var ucs2length$1 = function ucs2length(str) {
2566
2560
  var length = 0
2567
2561
  , len = str.length
2568
2562
  , pos = 0
@@ -2579,16 +2573,16 @@
2579
2573
  return length;
2580
2574
  };
2581
2575
 
2582
- var util = {
2576
+ var util$5 = {
2583
2577
  copy: copy,
2584
2578
  checkDataType: checkDataType,
2585
2579
  checkDataTypes: checkDataTypes,
2586
2580
  coerceToTypes: coerceToTypes,
2587
- toHash: toHash,
2581
+ toHash: toHash$1,
2588
2582
  getProperty: getProperty,
2589
2583
  escapeQuotes: escapeQuotes,
2590
2584
  equal: fastDeepEqual,
2591
- ucs2length: ucs2length,
2585
+ ucs2length: ucs2length$1,
2592
2586
  varOccurences: varOccurences,
2593
2587
  varReplace: varReplace,
2594
2588
  cleanUpCode: cleanUpCode,
@@ -2638,7 +2632,7 @@
2638
2632
  case 1: return checkDataType(dataTypes[0], data, true);
2639
2633
  default:
2640
2634
  var code = '';
2641
- var types = toHash(dataTypes);
2635
+ var types = toHash$1(dataTypes);
2642
2636
  if (types.array && types.object) {
2643
2637
  code = types.null ? '(': '(!' + data + ' || ';
2644
2638
  code += 'typeof ' + data + ' !== "object")';
@@ -2655,7 +2649,7 @@
2655
2649
  }
2656
2650
 
2657
2651
 
2658
- var COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);
2652
+ var COERCE_TO_TYPES = toHash$1([ 'string', 'number', 'integer', 'boolean', 'null' ]);
2659
2653
  function coerceToTypes(optionCoerceTypes, dataTypes) {
2660
2654
  if (Array.isArray(dataTypes)) {
2661
2655
  var types = [];
@@ -2673,19 +2667,19 @@
2673
2667
  }
2674
2668
 
2675
2669
 
2676
- function toHash(arr) {
2670
+ function toHash$1(arr) {
2677
2671
  var hash = {};
2678
2672
  for (var i=0; i<arr.length; i++) hash[arr[i]] = true;
2679
2673
  return hash;
2680
2674
  }
2681
2675
 
2682
2676
 
2683
- var IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
2677
+ var IDENTIFIER$1 = /^[a-z$_][a-z$_0-9]*$/i;
2684
2678
  var SINGLE_QUOTE = /'|\\/g;
2685
2679
  function getProperty(key) {
2686
2680
  return typeof key == 'number'
2687
2681
  ? '[' + key + ']'
2688
- : IDENTIFIER.test(key)
2682
+ : IDENTIFIER$1.test(key)
2689
2683
  ? '.' + key
2690
2684
  : "['" + escapeQuotes(key) + "']";
2691
2685
  }
@@ -2789,17 +2783,17 @@
2789
2783
  }
2790
2784
 
2791
2785
 
2792
- var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
2793
- var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2786
+ var JSON_POINTER$1 = /^\/(?:[^~]|~0|~1)*$/;
2787
+ var RELATIVE_JSON_POINTER$1 = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
2794
2788
  function getData($data, lvl, paths) {
2795
2789
  var up, jsonPointer, data, matches;
2796
2790
  if ($data === '') return 'rootData';
2797
2791
  if ($data[0] == '/') {
2798
- if (!JSON_POINTER.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
2792
+ if (!JSON_POINTER$1.test($data)) throw new Error('Invalid JSON-pointer: ' + $data);
2799
2793
  jsonPointer = $data;
2800
2794
  data = 'rootData';
2801
2795
  } else {
2802
- matches = $data.match(RELATIVE_JSON_POINTER);
2796
+ matches = $data.match(RELATIVE_JSON_POINTER$1);
2803
2797
  if (!matches) throw new Error('Invalid JSON-pointer: ' + $data);
2804
2798
  up = +matches[1];
2805
2799
  jsonPointer = matches[2];
@@ -2851,15 +2845,17 @@
2851
2845
  return str.replace(/~1/g, '/').replace(/~0/g, '~');
2852
2846
  }
2853
2847
 
2854
- var schema_obj = SchemaObject;
2848
+ var util$4 = util$5;
2855
2849
 
2856
- function SchemaObject(obj) {
2857
- util.copy(obj, this);
2850
+ var schema_obj = SchemaObject$2;
2851
+
2852
+ function SchemaObject$2(obj) {
2853
+ util$4.copy(obj, this);
2858
2854
  }
2859
2855
 
2860
- var jsonSchemaTraverse = createCommonjsModule(function (module) {
2856
+ var jsonSchemaTraverse = {exports: {}};
2861
2857
 
2862
- var traverse = module.exports = function (schema, opts, cb) {
2858
+ var traverse$1 = jsonSchemaTraverse.exports = function (schema, opts, cb) {
2863
2859
  // Legacy support for v0.3.1 and earlier.
2864
2860
  if (typeof opts == 'function') {
2865
2861
  cb = opts;
@@ -2874,7 +2870,7 @@
2874
2870
  };
2875
2871
 
2876
2872
 
2877
- traverse.keywords = {
2873
+ traverse$1.keywords = {
2878
2874
  additionalItems: true,
2879
2875
  items: true,
2880
2876
  contains: true,
@@ -2883,21 +2879,21 @@
2883
2879
  not: true
2884
2880
  };
2885
2881
 
2886
- traverse.arrayKeywords = {
2882
+ traverse$1.arrayKeywords = {
2887
2883
  items: true,
2888
2884
  allOf: true,
2889
2885
  anyOf: true,
2890
2886
  oneOf: true
2891
2887
  };
2892
2888
 
2893
- traverse.propsKeywords = {
2889
+ traverse$1.propsKeywords = {
2894
2890
  definitions: true,
2895
2891
  properties: true,
2896
2892
  patternProperties: true,
2897
2893
  dependencies: true
2898
2894
  };
2899
2895
 
2900
- traverse.skipKeywords = {
2896
+ traverse$1.skipKeywords = {
2901
2897
  default: true,
2902
2898
  enum: true,
2903
2899
  const: true,
@@ -2925,16 +2921,16 @@
2925
2921
  for (var key in schema) {
2926
2922
  var sch = schema[key];
2927
2923
  if (Array.isArray(sch)) {
2928
- if (key in traverse.arrayKeywords) {
2924
+ if (key in traverse$1.arrayKeywords) {
2929
2925
  for (var i=0; i<sch.length; i++)
2930
2926
  _traverse(opts, pre, post, sch[i], jsonPtr + '/' + key + '/' + i, rootSchema, jsonPtr, key, schema, i);
2931
2927
  }
2932
- } else if (key in traverse.propsKeywords) {
2928
+ } else if (key in traverse$1.propsKeywords) {
2933
2929
  if (sch && typeof sch == 'object') {
2934
2930
  for (var prop in sch)
2935
2931
  _traverse(opts, pre, post, sch[prop], jsonPtr + '/' + key + '/' + escapeJsonPtr(prop), rootSchema, jsonPtr, key, schema, prop);
2936
2932
  }
2937
- } else if (key in traverse.keywords || (opts.allKeys && !(key in traverse.skipKeywords))) {
2933
+ } else if (key in traverse$1.keywords || (opts.allKeys && !(key in traverse$1.skipKeywords))) {
2938
2934
  _traverse(opts, pre, post, sch, jsonPtr + '/' + key, rootSchema, jsonPtr, key, schema);
2939
2935
  }
2940
2936
  }
@@ -2946,16 +2942,21 @@
2946
2942
  function escapeJsonPtr(str) {
2947
2943
  return str.replace(/~/g, '~0').replace(/\//g, '~1');
2948
2944
  }
2949
- });
2950
2945
 
2951
- var resolve_1 = resolve;
2946
+ var URI$1 = uri_all.exports
2947
+ , equal$1 = fastDeepEqual
2948
+ , util$3 = util$5
2949
+ , SchemaObject$1 = schema_obj
2950
+ , traverse = jsonSchemaTraverse.exports;
2952
2951
 
2953
- resolve.normalizeId = normalizeId;
2954
- resolve.fullPath = getFullPath;
2955
- resolve.url = resolveUrl;
2956
- resolve.ids = resolveIds;
2957
- resolve.inlineRef = inlineRef;
2958
- resolve.schema = resolveSchema;
2952
+ var resolve_1 = resolve$3;
2953
+
2954
+ resolve$3.normalizeId = normalizeId;
2955
+ resolve$3.fullPath = getFullPath;
2956
+ resolve$3.url = resolveUrl;
2957
+ resolve$3.ids = resolveIds;
2958
+ resolve$3.inlineRef = inlineRef;
2959
+ resolve$3.schema = resolveSchema;
2959
2960
 
2960
2961
  /**
2961
2962
  * [resolve and compile the references ($ref)]
@@ -2965,16 +2966,16 @@
2965
2966
  * @param {String} ref reference to resolve
2966
2967
  * @return {Object|Function} schema object (if the schema can be inlined) or validation function
2967
2968
  */
2968
- function resolve(compile, root, ref) {
2969
+ function resolve$3(compile, root, ref) {
2969
2970
  /* jshint validthis: true */
2970
2971
  var refVal = this._refs[ref];
2971
2972
  if (typeof refVal == 'string') {
2972
2973
  if (this._refs[refVal]) refVal = this._refs[refVal];
2973
- else return resolve.call(this, compile, root, refVal);
2974
+ else return resolve$3.call(this, compile, root, refVal);
2974
2975
  }
2975
2976
 
2976
2977
  refVal = refVal || this._schemas[ref];
2977
- if (refVal instanceof schema_obj) {
2978
+ if (refVal instanceof SchemaObject$1) {
2978
2979
  return inlineRef(refVal.schema, this._opts.inlineRefs)
2979
2980
  ? refVal.schema
2980
2981
  : refVal.validate || this._compile(refVal);
@@ -2988,7 +2989,7 @@
2988
2989
  baseId = res.baseId;
2989
2990
  }
2990
2991
 
2991
- if (schema instanceof schema_obj) {
2992
+ if (schema instanceof SchemaObject$1) {
2992
2993
  v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);
2993
2994
  } else if (schema !== undefined) {
2994
2995
  v = inlineRef(schema, this._opts.inlineRefs)
@@ -3009,7 +3010,7 @@
3009
3010
  */
3010
3011
  function resolveSchema(root, ref) {
3011
3012
  /* jshint validthis: true */
3012
- var p = uri_all.parse(ref)
3013
+ var p = URI$1.parse(ref)
3013
3014
  , refPath = _getFullPath(p)
3014
3015
  , baseId = getFullPath(this._getId(root.schema));
3015
3016
  if (Object.keys(root.schema).length === 0 || refPath !== baseId) {
@@ -3017,12 +3018,12 @@
3017
3018
  var refVal = this._refs[id];
3018
3019
  if (typeof refVal == 'string') {
3019
3020
  return resolveRecursive.call(this, root, refVal, p);
3020
- } else if (refVal instanceof schema_obj) {
3021
+ } else if (refVal instanceof SchemaObject$1) {
3021
3022
  if (!refVal.validate) this._compile(refVal);
3022
3023
  root = refVal;
3023
3024
  } else {
3024
3025
  refVal = this._schemas[id];
3025
- if (refVal instanceof schema_obj) {
3026
+ if (refVal instanceof SchemaObject$1) {
3026
3027
  if (!refVal.validate) this._compile(refVal);
3027
3028
  if (id == normalizeId(ref))
3028
3029
  return { schema: refVal, root: root, baseId: baseId };
@@ -3053,7 +3054,7 @@
3053
3054
  }
3054
3055
 
3055
3056
 
3056
- var PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
3057
+ var PREVENT_SCOPE_CHANGE = util$3.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);
3057
3058
  /* @this Ajv */
3058
3059
  function getJsonPointer(parsedRef, baseId, schema, root) {
3059
3060
  /* jshint validthis: true */
@@ -3064,7 +3065,7 @@
3064
3065
  for (var i = 1; i < parts.length; i++) {
3065
3066
  var part = parts[i];
3066
3067
  if (part) {
3067
- part = util.unescapeFragment(part);
3068
+ part = util$3.unescapeFragment(part);
3068
3069
  schema = schema[part];
3069
3070
  if (schema === undefined) break;
3070
3071
  var id;
@@ -3088,7 +3089,7 @@
3088
3089
  }
3089
3090
 
3090
3091
 
3091
- var SIMPLE_INLINED = util.toHash([
3092
+ var SIMPLE_INLINED = util$3.toHash([
3092
3093
  'type', 'format', 'pattern',
3093
3094
  'maxLength', 'minLength',
3094
3095
  'maxProperties', 'minProperties',
@@ -3148,13 +3149,13 @@
3148
3149
 
3149
3150
  function getFullPath(id, normalize) {
3150
3151
  if (normalize !== false) id = normalizeId(id);
3151
- var p = uri_all.parse(id);
3152
+ var p = URI$1.parse(id);
3152
3153
  return _getFullPath(p);
3153
3154
  }
3154
3155
 
3155
3156
 
3156
3157
  function _getFullPath(p) {
3157
- return uri_all.serialize(p).split('#')[0] + '#';
3158
+ return URI$1.serialize(p).split('#')[0] + '#';
3158
3159
  }
3159
3160
 
3160
3161
 
@@ -3166,7 +3167,7 @@
3166
3167
 
3167
3168
  function resolveUrl(baseId, id) {
3168
3169
  id = normalizeId(id);
3169
- return uri_all.resolve(baseId, id);
3170
+ return URI$1.resolve(baseId, id);
3170
3171
  }
3171
3172
 
3172
3173
 
@@ -3178,25 +3179,25 @@
3178
3179
  var localRefs = {};
3179
3180
  var self = this;
3180
3181
 
3181
- jsonSchemaTraverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
3182
+ traverse(schema, {allKeys: true}, function(sch, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {
3182
3183
  if (jsonPtr === '') return;
3183
3184
  var id = self._getId(sch);
3184
3185
  var baseId = baseIds[parentJsonPtr];
3185
3186
  var fullPath = fullPaths[parentJsonPtr] + '/' + parentKeyword;
3186
3187
  if (keyIndex !== undefined)
3187
- fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util.escapeFragment(keyIndex));
3188
+ fullPath += '/' + (typeof keyIndex == 'number' ? keyIndex : util$3.escapeFragment(keyIndex));
3188
3189
 
3189
3190
  if (typeof id == 'string') {
3190
- id = baseId = normalizeId(baseId ? uri_all.resolve(baseId, id) : id);
3191
+ id = baseId = normalizeId(baseId ? URI$1.resolve(baseId, id) : id);
3191
3192
 
3192
3193
  var refVal = self._refs[id];
3193
3194
  if (typeof refVal == 'string') refVal = self._refs[refVal];
3194
3195
  if (refVal && refVal.schema) {
3195
- if (!fastDeepEqual(sch, refVal.schema))
3196
+ if (!equal$1(sch, refVal.schema))
3196
3197
  throw new Error('id "' + id + '" resolves to more than one schema');
3197
3198
  } else if (id != normalizeId(fullPath)) {
3198
3199
  if (id[0] == '#') {
3199
- if (localRefs[id] && !fastDeepEqual(sch, localRefs[id]))
3200
+ if (localRefs[id] && !equal$1(sch, localRefs[id]))
3200
3201
  throw new Error('id "' + id + '" resolves to more than one schema');
3201
3202
  localRefs[id] = sch;
3202
3203
  } else {
@@ -3211,28 +3212,30 @@
3211
3212
  return localRefs;
3212
3213
  }
3213
3214
 
3215
+ var resolve$2 = resolve_1;
3216
+
3214
3217
  var error_classes = {
3215
- Validation: errorSubclass(ValidationError),
3216
- MissingRef: errorSubclass(MissingRefError)
3218
+ Validation: errorSubclass(ValidationError$1),
3219
+ MissingRef: errorSubclass(MissingRefError$1)
3217
3220
  };
3218
3221
 
3219
3222
 
3220
- function ValidationError(errors) {
3223
+ function ValidationError$1(errors) {
3221
3224
  this.message = 'validation failed';
3222
3225
  this.errors = errors;
3223
3226
  this.ajv = this.validation = true;
3224
3227
  }
3225
3228
 
3226
3229
 
3227
- MissingRefError.message = function (baseId, ref) {
3230
+ MissingRefError$1.message = function (baseId, ref) {
3228
3231
  return 'can\'t resolve reference ' + ref + ' from id ' + baseId;
3229
3232
  };
3230
3233
 
3231
3234
 
3232
- function MissingRefError(baseId, ref, message) {
3233
- this.message = message || MissingRefError.message(baseId, ref);
3234
- this.missingRef = resolve_1.url(baseId, ref);
3235
- this.missingSchema = resolve_1.normalizeId(resolve_1.fullPath(this.missingRef));
3235
+ function MissingRefError$1(baseId, ref, message) {
3236
+ this.message = message || MissingRefError$1.message(baseId, ref);
3237
+ this.missingRef = resolve$2.url(baseId, ref);
3238
+ this.missingSchema = resolve$2.normalizeId(resolve$2.fullPath(this.missingRef));
3236
3239
  }
3237
3240
 
3238
3241
 
@@ -3300,7 +3303,7 @@
3300
3303
  })(data);
3301
3304
  };
3302
3305
 
3303
- var validate = function generate_validate(it, $keyword, $ruleType) {
3306
+ var validate$1 = function generate_validate(it, $keyword, $ruleType) {
3304
3307
  var out = '';
3305
3308
  var $async = it.schema.$async === true,
3306
3309
  $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),
@@ -3794,17 +3797,24 @@
3794
3797
  return out;
3795
3798
  };
3796
3799
 
3800
+ var resolve$1 = resolve_1
3801
+ , util$2 = util$5
3802
+ , errorClasses$1 = error_classes
3803
+ , stableStringify$1 = fastJsonStableStringify;
3804
+
3805
+ var validateGenerator = validate$1;
3806
+
3797
3807
  /**
3798
3808
  * Functions below are used inside compiled validations function
3799
3809
  */
3800
3810
 
3801
- var ucs2length$1 = util.ucs2length;
3802
-
3811
+ var ucs2length = util$2.ucs2length;
3812
+ var equal = fastDeepEqual;
3803
3813
 
3804
3814
  // this error is thrown by async schemas to return validation errors via exception
3805
- var ValidationError$1 = error_classes.Validation;
3815
+ var ValidationError = errorClasses$1.Validation;
3806
3816
 
3807
- var compile_1 = compile;
3817
+ var compile_1 = compile$1;
3808
3818
 
3809
3819
 
3810
3820
  /**
@@ -3816,7 +3826,7 @@
3816
3826
  * @param {String} baseId base ID for IDs in the schema
3817
3827
  * @return {Function} validation function
3818
3828
  */
3819
- function compile(schema, root, localRefs, baseId) {
3829
+ function compile$1(schema, root, localRefs, baseId) {
3820
3830
  /* jshint validthis: true, evil: true */
3821
3831
  /* eslint no-shadow: 0 */
3822
3832
  var self = this
@@ -3868,11 +3878,11 @@
3868
3878
  function localCompile(_schema, _root, localRefs, baseId) {
3869
3879
  var isRoot = !_root || (_root && _root.schema == _schema);
3870
3880
  if (_root.schema != root.schema)
3871
- return compile.call(self, _schema, _root, localRefs, baseId);
3881
+ return compile$1.call(self, _schema, _root, localRefs, baseId);
3872
3882
 
3873
3883
  var $async = _schema.$async === true;
3874
3884
 
3875
- var sourceCode = validate({
3885
+ var sourceCode = validateGenerator({
3876
3886
  isTop: true,
3877
3887
  schema: _schema,
3878
3888
  isRoot: isRoot,
@@ -3881,11 +3891,11 @@
3881
3891
  schemaPath: '',
3882
3892
  errSchemaPath: '#',
3883
3893
  errorPath: '""',
3884
- MissingRefError: error_classes.MissingRef,
3894
+ MissingRefError: errorClasses$1.MissingRef,
3885
3895
  RULES: RULES,
3886
- validate: validate,
3887
- util: util,
3888
- resolve: resolve_1,
3896
+ validate: validateGenerator,
3897
+ util: util$2,
3898
+ resolve: resolve$1,
3889
3899
  resolveRef: resolveRef,
3890
3900
  usePattern: usePattern,
3891
3901
  useDefault: useDefault,
@@ -3897,12 +3907,12 @@
3897
3907
  });
3898
3908
 
3899
3909
  sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)
3900
- + vars(defaults, defaultCode) + vars(customRules, customRuleCode)
3910
+ + vars(defaults, defaultCode) + vars(customRules, customRuleCode$1)
3901
3911
  + sourceCode;
3902
3912
 
3903
3913
  if (opts.processCode) sourceCode = opts.processCode(sourceCode);
3904
3914
  // console.log('\n\n\n *** \n', JSON.stringify(sourceCode));
3905
- var validate$1;
3915
+ var validate;
3906
3916
  try {
3907
3917
  var makeValidate = new Function(
3908
3918
  'self',
@@ -3918,7 +3928,7 @@
3918
3928
  sourceCode
3919
3929
  );
3920
3930
 
3921
- validate$1 = makeValidate(
3931
+ validate = makeValidate(
3922
3932
  self,
3923
3933
  RULES,
3924
3934
  formats,
@@ -3926,36 +3936,36 @@
3926
3936
  refVal,
3927
3937
  defaults,
3928
3938
  customRules,
3929
- fastDeepEqual,
3930
- ucs2length$1,
3931
- ValidationError$1
3939
+ equal,
3940
+ ucs2length,
3941
+ ValidationError
3932
3942
  );
3933
3943
 
3934
- refVal[0] = validate$1;
3944
+ refVal[0] = validate;
3935
3945
  } catch(e) {
3936
3946
  self.logger.error('Error compiling schema, function code:', sourceCode);
3937
3947
  throw e;
3938
3948
  }
3939
3949
 
3940
- validate$1.schema = _schema;
3941
- validate$1.errors = null;
3942
- validate$1.refs = refs;
3943
- validate$1.refVal = refVal;
3944
- validate$1.root = isRoot ? validate$1 : _root;
3945
- if ($async) validate$1.$async = true;
3950
+ validate.schema = _schema;
3951
+ validate.errors = null;
3952
+ validate.refs = refs;
3953
+ validate.refVal = refVal;
3954
+ validate.root = isRoot ? validate : _root;
3955
+ if ($async) validate.$async = true;
3946
3956
  if (opts.sourceCode === true) {
3947
- validate$1.source = {
3957
+ validate.source = {
3948
3958
  code: sourceCode,
3949
3959
  patterns: patterns,
3950
3960
  defaults: defaults
3951
3961
  };
3952
3962
  }
3953
3963
 
3954
- return validate$1;
3964
+ return validate;
3955
3965
  }
3956
3966
 
3957
3967
  function resolveRef(baseId, ref, isRoot) {
3958
- ref = resolve_1.url(baseId, ref);
3968
+ ref = resolve$1.url(baseId, ref);
3959
3969
  var refIndex = refs[ref];
3960
3970
  var _refVal, refCode;
3961
3971
  if (refIndex !== undefined) {
@@ -3973,13 +3983,13 @@
3973
3983
  }
3974
3984
 
3975
3985
  refCode = addLocalRef(ref);
3976
- var v = resolve_1.call(self, localCompile, root, ref);
3986
+ var v = resolve$1.call(self, localCompile, root, ref);
3977
3987
  if (v === undefined) {
3978
3988
  var localSchema = localRefs && localRefs[ref];
3979
3989
  if (localSchema) {
3980
- v = resolve_1.inlineRef(localSchema, opts.inlineRefs)
3990
+ v = resolve$1.inlineRef(localSchema, opts.inlineRefs)
3981
3991
  ? localSchema
3982
- : compile.call(self, localSchema, root, localRefs, baseId);
3992
+ : compile$1.call(self, localSchema, root, localRefs, baseId);
3983
3993
  }
3984
3994
  }
3985
3995
 
@@ -4028,10 +4038,10 @@
4028
4038
  case 'number':
4029
4039
  return '' + value;
4030
4040
  case 'string':
4031
- return util.toQuotedString(value);
4041
+ return util$2.toQuotedString(value);
4032
4042
  case 'object':
4033
4043
  if (value === null) return 'null';
4034
- var valueStr = fastJsonStableStringify(value);
4044
+ var valueStr = stableStringify$1(value);
4035
4045
  var index = defaultsHash[valueStr];
4036
4046
  if (index === undefined) {
4037
4047
  index = defaultsHash[valueStr] = defaults.length;
@@ -4146,7 +4156,7 @@
4146
4156
 
4147
4157
 
4148
4158
  function patternCode(i, patterns) {
4149
- return 'var pattern' + i + ' = new RegExp(' + util.toQuotedString(patterns[i]) + ');';
4159
+ return 'var pattern' + i + ' = new RegExp(' + util$2.toQuotedString(patterns[i]) + ');';
4150
4160
  }
4151
4161
 
4152
4162
 
@@ -4160,7 +4170,7 @@
4160
4170
  }
4161
4171
 
4162
4172
 
4163
- function customRuleCode(i) {
4173
+ function customRuleCode$1(i) {
4164
4174
  return 'var customRule' + i + ' = customRules[' + i + '];';
4165
4175
  }
4166
4176
 
@@ -4173,33 +4183,33 @@
4173
4183
  return code;
4174
4184
  }
4175
4185
 
4176
- var cache = createCommonjsModule(function (module) {
4177
-
4186
+ var cache = {exports: {}};
4178
4187
 
4179
- var Cache = module.exports = function Cache() {
4188
+ var Cache$1 = cache.exports = function Cache() {
4180
4189
  this._cache = {};
4181
4190
  };
4182
4191
 
4183
4192
 
4184
- Cache.prototype.put = function Cache_put(key, value) {
4193
+ Cache$1.prototype.put = function Cache_put(key, value) {
4185
4194
  this._cache[key] = value;
4186
4195
  };
4187
4196
 
4188
4197
 
4189
- Cache.prototype.get = function Cache_get(key) {
4198
+ Cache$1.prototype.get = function Cache_get(key) {
4190
4199
  return this._cache[key];
4191
4200
  };
4192
4201
 
4193
4202
 
4194
- Cache.prototype.del = function Cache_del(key) {
4203
+ Cache$1.prototype.del = function Cache_del(key) {
4195
4204
  delete this._cache[key];
4196
4205
  };
4197
4206
 
4198
4207
 
4199
- Cache.prototype.clear = function Cache_clear() {
4208
+ Cache$1.prototype.clear = function Cache_clear() {
4200
4209
  this._cache = {};
4201
4210
  };
4202
- });
4211
+
4212
+ var util$1 = util$5;
4203
4213
 
4204
4214
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
4205
4215
  var DAYS = [0,31,28,31,30,31,30,31,31,30,31,30,31];
@@ -4215,20 +4225,20 @@
4215
4225
  // 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;
4216
4226
  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;
4217
4227
  var UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;
4218
- var JSON_POINTER$1 = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
4228
+ var JSON_POINTER = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
4219
4229
  var JSON_POINTER_URI_FRAGMENT = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
4220
- var RELATIVE_JSON_POINTER$1 = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
4230
+ var RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
4221
4231
 
4222
4232
 
4223
- var formats_1 = formats;
4233
+ var formats_1 = formats$1;
4224
4234
 
4225
- function formats(mode) {
4235
+ function formats$1(mode) {
4226
4236
  mode = mode == 'full' ? 'full' : 'fast';
4227
- return util.copy(formats[mode]);
4237
+ return util$1.copy(formats$1[mode]);
4228
4238
  }
4229
4239
 
4230
4240
 
4231
- formats.fast = {
4241
+ formats$1.fast = {
4232
4242
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
4233
4243
  date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
4234
4244
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -4253,14 +4263,14 @@
4253
4263
  uuid: UUID,
4254
4264
  // JSON-pointer: https://tools.ietf.org/html/rfc6901
4255
4265
  // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
4256
- 'json-pointer': JSON_POINTER$1,
4266
+ 'json-pointer': JSON_POINTER,
4257
4267
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
4258
4268
  // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
4259
- 'relative-json-pointer': RELATIVE_JSON_POINTER$1
4269
+ 'relative-json-pointer': RELATIVE_JSON_POINTER
4260
4270
  };
4261
4271
 
4262
4272
 
4263
- formats.full = {
4273
+ formats$1.full = {
4264
4274
  date: date,
4265
4275
  time: time,
4266
4276
  'date-time': date_time,
@@ -4274,9 +4284,9 @@
4274
4284
  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,
4275
4285
  regex: regex,
4276
4286
  uuid: UUID,
4277
- 'json-pointer': JSON_POINTER$1,
4287
+ 'json-pointer': JSON_POINTER,
4278
4288
  'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,
4279
- 'relative-json-pointer': RELATIVE_JSON_POINTER$1
4289
+ 'relative-json-pointer': RELATIVE_JSON_POINTER
4280
4290
  };
4281
4291
 
4282
4292
 
@@ -4592,7 +4602,7 @@
4592
4602
  var out = ' ';
4593
4603
  var $schema = it.schema[$keyword];
4594
4604
  var $errSchemaPath = it.errSchemaPath + '/' + $keyword;
4595
- var $breakOnError = !it.opts.allErrors;
4605
+ !it.opts.allErrors;
4596
4606
  var $comment = it.util.toQuotedString($schema);
4597
4607
  if (it.opts.$comment === true) {
4598
4608
  out += ' console.log(' + ($comment) + ');';
@@ -6063,7 +6073,7 @@
6063
6073
  return out;
6064
6074
  };
6065
6075
 
6066
- var properties = function generate_properties(it, $keyword, $ruleType) {
6076
+ var properties$2 = function generate_properties(it, $keyword, $ruleType) {
6067
6077
  var out = ' ';
6068
6078
  var $lvl = it.level;
6069
6079
  var $dataLvl = it.dataLevel;
@@ -6475,7 +6485,7 @@
6475
6485
  return out;
6476
6486
  };
6477
6487
 
6478
- var required = function generate_required(it, $keyword, $ruleType) {
6488
+ var required$1 = function generate_required(it, $keyword, $ruleType) {
6479
6489
  var out = ' ';
6480
6490
  var $lvl = it.level;
6481
6491
  var $dataLvl = it.dataLevel;
@@ -6852,16 +6862,17 @@
6852
6862
  not: not,
6853
6863
  oneOf: oneOf,
6854
6864
  pattern: pattern,
6855
- properties: properties,
6865
+ properties: properties$2,
6856
6866
  propertyNames: propertyNames,
6857
- required: required,
6867
+ required: required$1,
6858
6868
  uniqueItems: uniqueItems,
6859
- validate: validate
6869
+ validate: validate$1
6860
6870
  };
6861
6871
 
6862
- var toHash$1 = util.toHash;
6872
+ var ruleModules = dotjs
6873
+ , toHash = util$5.toHash;
6863
6874
 
6864
- var rules = function rules() {
6875
+ var rules$1 = function rules() {
6865
6876
  var RULES = [
6866
6877
  { type: 'number',
6867
6878
  rules: [ { 'maximum': ['exclusiveMaximum'] },
@@ -6885,8 +6896,8 @@
6885
6896
  'additionalItems', 'then', 'else'
6886
6897
  ];
6887
6898
  var TYPES = [ 'number', 'integer', 'string', 'array', 'object', 'boolean', 'null' ];
6888
- RULES.all = toHash$1(ALL);
6889
- RULES.types = toHash$1(TYPES);
6899
+ RULES.all = toHash(ALL);
6900
+ RULES.types = toHash(TYPES);
6890
6901
 
6891
6902
  RULES.forEach(function (group) {
6892
6903
  group.rules = group.rules.map(function (keyword) {
@@ -6903,7 +6914,7 @@
6903
6914
  ALL.push(keyword);
6904
6915
  var rule = RULES.all[keyword] = {
6905
6916
  keyword: keyword,
6906
- code: dotjs[keyword],
6917
+ code: ruleModules[keyword],
6907
6918
  implements: implKeywords
6908
6919
  };
6909
6920
  return rule;
@@ -6911,13 +6922,13 @@
6911
6922
 
6912
6923
  RULES.all.$comment = {
6913
6924
  keyword: '$comment',
6914
- code: dotjs.$comment
6925
+ code: ruleModules.$comment
6915
6926
  };
6916
6927
 
6917
6928
  if (group.type) RULES.types[group.type] = group;
6918
6929
  });
6919
6930
 
6920
- RULES.keywords = toHash$1(ALL.concat(KEYWORDS));
6931
+ RULES.keywords = toHash(ALL.concat(KEYWORDS));
6921
6932
  RULES.custom = {};
6922
6933
 
6923
6934
  return RULES;
@@ -6971,7 +6982,7 @@
6971
6982
  return metaSchema;
6972
6983
  };
6973
6984
 
6974
- var MissingRefError$1 = error_classes.MissingRef;
6985
+ var MissingRefError = error_classes.MissingRef;
6975
6986
 
6976
6987
  var async = compileAsync;
6977
6988
 
@@ -7024,7 +7035,7 @@
7024
7035
  function _compileAsync(schemaObj) {
7025
7036
  try { return self._compile(schemaObj); }
7026
7037
  catch(e) {
7027
- if (e instanceof MissingRefError$1) return loadMissingSchema(e);
7038
+ if (e instanceof MissingRefError) return loadMissingSchema(e);
7028
7039
  throw e;
7029
7040
  }
7030
7041
 
@@ -7288,10 +7299,10 @@
7288
7299
  return out;
7289
7300
  };
7290
7301
 
7291
- var $schema = "http://json-schema.org/draft-07/schema#";
7292
- var $id = "http://json-schema.org/draft-07/schema#";
7302
+ var $schema$2 = "http://json-schema.org/draft-07/schema#";
7303
+ var $id$1 = "http://json-schema.org/draft-07/schema#";
7293
7304
  var title = "Core schema meta-schema";
7294
- var definitions = {
7305
+ var definitions$1 = {
7295
7306
  schemaArray: {
7296
7307
  type: "array",
7297
7308
  minItems: 1,
@@ -7334,7 +7345,7 @@
7334
7345
  ]
7335
7346
  }
7336
7347
  };
7337
- var type = [
7348
+ var type$1 = [
7338
7349
  "object",
7339
7350
  "boolean"
7340
7351
  ];
@@ -7530,32 +7541,19 @@
7530
7541
  $ref: "#"
7531
7542
  }
7532
7543
  };
7533
- var jsonSchemaDraft07 = {
7534
- $schema: $schema,
7535
- $id: $id,
7544
+ var require$$13 = {
7545
+ $schema: $schema$2,
7546
+ $id: $id$1,
7536
7547
  title: title,
7537
- definitions: definitions,
7538
- type: type,
7548
+ definitions: definitions$1,
7549
+ type: type$1,
7539
7550
  properties: properties$1,
7540
7551
  "default": true
7541
7552
  };
7542
7553
 
7543
- var jsonSchemaDraft07$1 = /*#__PURE__*/Object.freeze({
7544
- __proto__: null,
7545
- $schema: $schema,
7546
- $id: $id,
7547
- title: title,
7548
- definitions: definitions,
7549
- type: type,
7550
- properties: properties$1,
7551
- 'default': jsonSchemaDraft07
7552
- });
7553
-
7554
- var require$$2 = getCjsExportFromNamespace(jsonSchemaDraft07$1);
7555
-
7556
- var IDENTIFIER$1 = /^[a-z_$][a-z0-9_$-]*$/i;
7557
-
7558
- var metaSchema = require$$2;
7554
+ var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
7555
+ var customRuleCode = custom;
7556
+ var metaSchema = require$$13;
7559
7557
 
7560
7558
  var keyword = {
7561
7559
  add: addKeyword,
@@ -7611,7 +7609,7 @@
7611
7609
  if (RULES.keywords[keyword])
7612
7610
  throw new Error('Keyword ' + keyword + ' is already defined');
7613
7611
 
7614
- if (!IDENTIFIER$1.test(keyword))
7612
+ if (!IDENTIFIER.test(keyword))
7615
7613
  throw new Error('Keyword ' + keyword + ' is not a valid identifier');
7616
7614
 
7617
7615
  if (definition) {
@@ -7661,7 +7659,7 @@
7661
7659
  keyword: keyword,
7662
7660
  definition: definition,
7663
7661
  custom: true,
7664
- code: custom,
7662
+ code: customRuleCode,
7665
7663
  implements: definition.implements
7666
7664
  };
7667
7665
  ruleGroup.rules.push(rule);
@@ -7731,13 +7729,13 @@
7731
7729
  }
7732
7730
 
7733
7731
  var $schema$1 = "http://json-schema.org/draft-07/schema#";
7734
- var $id$1 = "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#";
7732
+ var $id = "https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#";
7735
7733
  var description = "Meta-schema for $data reference (JSON Schema extension proposal)";
7736
- var type$1 = "object";
7737
- var required$1 = [
7734
+ var type = "object";
7735
+ var required = [
7738
7736
  "$data"
7739
7737
  ];
7740
- var properties$2 = {
7738
+ var properties = {
7741
7739
  $data: {
7742
7740
  type: "string",
7743
7741
  anyOf: [
@@ -7751,56 +7749,52 @@
7751
7749
  }
7752
7750
  };
7753
7751
  var additionalProperties = false;
7754
- var data$1 = {
7752
+ var require$$12 = {
7755
7753
  $schema: $schema$1,
7756
- $id: $id$1,
7754
+ $id: $id,
7757
7755
  description: description,
7758
- type: type$1,
7759
- required: required$1,
7760
- properties: properties$2,
7756
+ type: type,
7757
+ required: required,
7758
+ properties: properties,
7761
7759
  additionalProperties: additionalProperties
7762
7760
  };
7763
7761
 
7764
- var data$2 = /*#__PURE__*/Object.freeze({
7765
- __proto__: null,
7766
- $schema: $schema$1,
7767
- $id: $id$1,
7768
- description: description,
7769
- type: type$1,
7770
- required: required$1,
7771
- properties: properties$2,
7772
- additionalProperties: additionalProperties,
7773
- 'default': data$1
7774
- });
7775
-
7776
- var require$$1 = getCjsExportFromNamespace(data$2);
7777
-
7778
- var ajv = Ajv;
7779
-
7780
- Ajv.prototype.validate = validate$1;
7781
- Ajv.prototype.compile = compile$1;
7782
- Ajv.prototype.addSchema = addSchema;
7783
- Ajv.prototype.addMetaSchema = addMetaSchema;
7784
- Ajv.prototype.validateSchema = validateSchema;
7785
- Ajv.prototype.getSchema = getSchema;
7786
- Ajv.prototype.removeSchema = removeSchema;
7787
- Ajv.prototype.addFormat = addFormat;
7788
- Ajv.prototype.errorsText = errorsText;
7789
-
7790
- Ajv.prototype._addSchema = _addSchema;
7791
- Ajv.prototype._compile = _compile;
7792
-
7793
- Ajv.prototype.compileAsync = async;
7794
-
7795
- Ajv.prototype.addKeyword = keyword.add;
7796
- Ajv.prototype.getKeyword = keyword.get;
7797
- Ajv.prototype.removeKeyword = keyword.remove;
7798
- Ajv.prototype.validateKeyword = keyword.validate;
7799
-
7800
-
7801
- Ajv.ValidationError = error_classes.Validation;
7802
- Ajv.MissingRefError = error_classes.MissingRef;
7803
- Ajv.$dataMetaSchema = data;
7762
+ var compileSchema = compile_1
7763
+ , resolve = resolve_1
7764
+ , Cache = cache.exports
7765
+ , SchemaObject = schema_obj
7766
+ , stableStringify = fastJsonStableStringify
7767
+ , formats = formats_1
7768
+ , rules = rules$1
7769
+ , $dataMetaSchema = data
7770
+ , util = util$5;
7771
+
7772
+ var ajv = Ajv$1;
7773
+
7774
+ Ajv$1.prototype.validate = validate;
7775
+ Ajv$1.prototype.compile = compile;
7776
+ Ajv$1.prototype.addSchema = addSchema;
7777
+ Ajv$1.prototype.addMetaSchema = addMetaSchema;
7778
+ Ajv$1.prototype.validateSchema = validateSchema;
7779
+ Ajv$1.prototype.getSchema = getSchema;
7780
+ Ajv$1.prototype.removeSchema = removeSchema;
7781
+ Ajv$1.prototype.addFormat = addFormat;
7782
+ Ajv$1.prototype.errorsText = errorsText;
7783
+
7784
+ Ajv$1.prototype._addSchema = _addSchema;
7785
+ Ajv$1.prototype._compile = _compile;
7786
+
7787
+ Ajv$1.prototype.compileAsync = async;
7788
+ var customKeyword = keyword;
7789
+ Ajv$1.prototype.addKeyword = customKeyword.add;
7790
+ Ajv$1.prototype.getKeyword = customKeyword.get;
7791
+ Ajv$1.prototype.removeKeyword = customKeyword.remove;
7792
+ Ajv$1.prototype.validateKeyword = customKeyword.validate;
7793
+
7794
+ var errorClasses = error_classes;
7795
+ Ajv$1.ValidationError = errorClasses.Validation;
7796
+ Ajv$1.MissingRefError = errorClasses.MissingRef;
7797
+ Ajv$1.$dataMetaSchema = $dataMetaSchema;
7804
7798
 
7805
7799
  var META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema';
7806
7800
 
@@ -7813,16 +7807,16 @@
7813
7807
  * @param {Object} opts optional options
7814
7808
  * @return {Object} ajv instance
7815
7809
  */
7816
- function Ajv(opts) {
7817
- if (!(this instanceof Ajv)) return new Ajv(opts);
7810
+ function Ajv$1(opts) {
7811
+ if (!(this instanceof Ajv$1)) return new Ajv$1(opts);
7818
7812
  opts = this._opts = util.copy(opts) || {};
7819
7813
  setLogger(this);
7820
7814
  this._schemas = {};
7821
7815
  this._refs = {};
7822
7816
  this._fragments = {};
7823
- this._formats = formats_1(opts.format);
7817
+ this._formats = formats(opts.format);
7824
7818
 
7825
- this._cache = opts.cache || new cache;
7819
+ this._cache = opts.cache || new Cache;
7826
7820
  this._loadingSchemas = {};
7827
7821
  this._compilations = [];
7828
7822
  this.RULES = rules();
@@ -7830,7 +7824,7 @@
7830
7824
 
7831
7825
  opts.loopRequired = opts.loopRequired || Infinity;
7832
7826
  if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;
7833
- if (opts.serialize === undefined) opts.serialize = fastJsonStableStringify;
7827
+ if (opts.serialize === undefined) opts.serialize = stableStringify;
7834
7828
  this._metaOpts = getMetaSchemaOptions(this);
7835
7829
 
7836
7830
  if (opts.formats) addInitialFormats(this);
@@ -7850,7 +7844,7 @@
7850
7844
  * @param {Any} data to be validated
7851
7845
  * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
7852
7846
  */
7853
- function validate$1(schemaKeyRef, data) {
7847
+ function validate(schemaKeyRef, data) {
7854
7848
  var v;
7855
7849
  if (typeof schemaKeyRef == 'string') {
7856
7850
  v = this.getSchema(schemaKeyRef);
@@ -7873,7 +7867,7 @@
7873
7867
  * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords.
7874
7868
  * @return {Function} validating function
7875
7869
  */
7876
- function compile$1(schema, _meta) {
7870
+ function compile(schema, _meta) {
7877
7871
  var schemaObj = this._addSchema(schema, undefined, _meta);
7878
7872
  return schemaObj.validate || this._compile(schemaObj);
7879
7873
  }
@@ -7896,7 +7890,7 @@
7896
7890
  var id = this._getId(schema);
7897
7891
  if (id !== undefined && typeof id != 'string')
7898
7892
  throw new Error('schema id must be string');
7899
- key = resolve_1.normalizeId(key || id);
7893
+ key = resolve.normalizeId(key || id);
7900
7894
  checkUnique(this, key);
7901
7895
  this._schemas[key] = this._addSchema(schema, _skipValidation, _meta, true);
7902
7896
  return this;
@@ -7973,13 +7967,13 @@
7973
7967
 
7974
7968
 
7975
7969
  function _getSchemaFragment(self, ref) {
7976
- var res = resolve_1.schema.call(self, { schema: {} }, ref);
7970
+ var res = resolve.schema.call(self, { schema: {} }, ref);
7977
7971
  if (res) {
7978
7972
  var schema = res.schema
7979
7973
  , root = res.root
7980
7974
  , baseId = res.baseId;
7981
- var v = compile_1.call(self, schema, root, undefined, baseId);
7982
- self._fragments[ref] = new schema_obj({
7975
+ var v = compileSchema.call(self, schema, root, undefined, baseId);
7976
+ self._fragments[ref] = new SchemaObject({
7983
7977
  ref: ref,
7984
7978
  fragment: true,
7985
7979
  schema: schema,
@@ -7993,7 +7987,7 @@
7993
7987
 
7994
7988
 
7995
7989
  function _getSchemaObj(self, keyRef) {
7996
- keyRef = resolve_1.normalizeId(keyRef);
7990
+ keyRef = resolve.normalizeId(keyRef);
7997
7991
  return self._schemas[keyRef] || self._refs[keyRef] || self._fragments[keyRef];
7998
7992
  }
7999
7993
 
@@ -8031,7 +8025,7 @@
8031
8025
  this._cache.del(cacheKey);
8032
8026
  var id = this._getId(schemaKeyRef);
8033
8027
  if (id) {
8034
- id = resolve_1.normalizeId(id);
8028
+ id = resolve.normalizeId(id);
8035
8029
  delete this._schemas[id];
8036
8030
  delete this._refs[id];
8037
8031
  }
@@ -8062,17 +8056,17 @@
8062
8056
 
8063
8057
  shouldAddSchema = shouldAddSchema || this._opts.addUsedSchema !== false;
8064
8058
 
8065
- var id = resolve_1.normalizeId(this._getId(schema));
8059
+ var id = resolve.normalizeId(this._getId(schema));
8066
8060
  if (id && shouldAddSchema) checkUnique(this, id);
8067
8061
 
8068
8062
  var willValidate = this._opts.validateSchema !== false && !skipValidation;
8069
8063
  var recursiveMeta;
8070
- if (willValidate && !(recursiveMeta = id && id == resolve_1.normalizeId(schema.$schema)))
8064
+ if (willValidate && !(recursiveMeta = id && id == resolve.normalizeId(schema.$schema)))
8071
8065
  this.validateSchema(schema, true);
8072
8066
 
8073
- var localRefs = resolve_1.ids.call(this, schema);
8067
+ var localRefs = resolve.ids.call(this, schema);
8074
8068
 
8075
- var schemaObj = new schema_obj({
8069
+ var schemaObj = new SchemaObject({
8076
8070
  id: id,
8077
8071
  schema: schema,
8078
8072
  localRefs: localRefs,
@@ -8109,7 +8103,7 @@
8109
8103
  }
8110
8104
 
8111
8105
  var v;
8112
- try { v = compile_1.call(this, schemaObj.schema, root, schemaObj.localRefs); }
8106
+ try { v = compileSchema.call(this, schemaObj.schema, root, schemaObj.localRefs); }
8113
8107
  catch(e) {
8114
8108
  delete schemaObj.validate;
8115
8109
  throw e;
@@ -8205,12 +8199,12 @@
8205
8199
  function addDefaultMetaSchema(self) {
8206
8200
  var $dataSchema;
8207
8201
  if (self._opts.$data) {
8208
- $dataSchema = require$$1;
8202
+ $dataSchema = require$$12;
8209
8203
  self.addMetaSchema($dataSchema, $dataSchema.$id, true);
8210
8204
  }
8211
8205
  if (self._opts.meta === false) return;
8212
- var metaSchema = require$$2;
8213
- if (self._opts.$data) metaSchema = data(metaSchema, META_SUPPORT_DATA);
8206
+ var metaSchema = require$$13;
8207
+ if (self._opts.$data) metaSchema = $dataMetaSchema(metaSchema, META_SUPPORT_DATA);
8214
8208
  self.addMetaSchema(metaSchema, META_SCHEMA_ID, true);
8215
8209
  self._refs['http://json-schema.org/schema'] = META_SCHEMA_ID;
8216
8210
  }
@@ -8261,14 +8255,14 @@
8261
8255
 
8262
8256
  function noop() {}
8263
8257
 
8264
- var _Ajv = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), ajv, {
8265
- 'default': ajv,
8266
- __moduleExports: ajv
8267
- }));
8258
+ var _Ajv = /*#__PURE__*/Object.freeze(/*#__PURE__*/_mergeNamespaces({
8259
+ __proto__: null,
8260
+ 'default': ajv
8261
+ }, [ajv]));
8268
8262
 
8269
8263
  var $ref = "#/definitions/Schema";
8270
- var $schema$2 = "http://json-schema.org/draft-07/schema#";
8271
- var definitions$1 = {
8264
+ var $schema = "http://json-schema.org/draft-07/schema#";
8265
+ var definitions = {
8272
8266
  ActivityType: {
8273
8267
  anyOf: [
8274
8268
  {
@@ -9911,21 +9905,21 @@
9911
9905
  type: "string"
9912
9906
  }
9913
9907
  };
9914
- var v2$1 = {
9908
+ var v2 = {
9915
9909
  $ref: $ref,
9916
- $schema: $schema$2,
9917
- definitions: definitions$1
9910
+ $schema: $schema,
9911
+ definitions: definitions
9918
9912
  };
9919
9913
 
9920
9914
  var _ddl2Schema = /*#__PURE__*/Object.freeze({
9921
9915
  __proto__: null,
9922
9916
  $ref: $ref,
9923
- $schema: $schema$2,
9924
- definitions: definitions$1,
9925
- 'default': v2$1
9917
+ $schema: $schema,
9918
+ definitions: definitions,
9919
+ 'default': v2
9926
9920
  });
9927
9921
 
9928
- var Ajv$1 = ajv || _Ajv;
9922
+ var Ajv = ajv || _Ajv;
9929
9923
  var ddl2Schema = _ddl2Schema;
9930
9924
  var options = {
9931
9925
  allErrors: false,
@@ -9933,7 +9927,7 @@
9933
9927
  jsonPointers: false
9934
9928
  };
9935
9929
  function doValidate(ddl, schema) {
9936
- var ajv = new Ajv$1(options);
9930
+ var ajv = new Ajv(options);
9937
9931
  var validate = ajv.compile(schema);
9938
9932
  var success = validate(ddl);
9939
9933
  return {
@@ -9951,15 +9945,15 @@
9951
9945
 
9952
9946
  exports.BUILD_VERSION = BUILD_VERSION;
9953
9947
  exports.DDL1 = v1;
9954
- exports.DDL2 = v2;
9948
+ exports.DDL2 = v2$1;
9955
9949
  exports.PKG_NAME = PKG_NAME;
9956
9950
  exports.PKG_VERSION = PKG_VERSION;
9957
9951
  exports.ddl2Schema = ddl2Schema;
9958
9952
  exports.isDDL2Schema = isDDL2Schema;
9959
- exports.upgrade = upgrade$1;
9953
+ exports.upgrade = upgrade;
9960
9954
  exports.validate2 = validate2;
9961
9955
 
9962
9956
  Object.defineProperty(exports, '__esModule', { value: true });
9963
9957
 
9964
- })));
9958
+ }));
9965
9959
  //# sourceMappingURL=index.js.map