@hyperjump/json-schema 0.23.1 → 0.23.3

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.
Files changed (40) hide show
  1. package/dist/json-schema-amd.js +495 -762
  2. package/dist/json-schema-amd.js.map +1 -1
  3. package/dist/json-schema-amd.min.js +1 -1
  4. package/dist/json-schema-amd.min.js.map +1 -1
  5. package/dist/json-schema-cjs.js +495 -762
  6. package/dist/json-schema-cjs.js.map +1 -1
  7. package/dist/json-schema-cjs.min.js +1 -1
  8. package/dist/json-schema-cjs.min.js.map +1 -1
  9. package/dist/json-schema-esm.js +495 -762
  10. package/dist/json-schema-esm.js.map +1 -1
  11. package/dist/json-schema-esm.min.js +1 -1
  12. package/dist/json-schema-esm.min.js.map +1 -1
  13. package/dist/json-schema-iife.js +495 -762
  14. package/dist/json-schema-iife.js.map +1 -1
  15. package/dist/json-schema-iife.min.js +1 -1
  16. package/dist/json-schema-iife.min.js.map +1 -1
  17. package/dist/json-schema-system.js +495 -762
  18. package/dist/json-schema-system.js.map +1 -1
  19. package/dist/json-schema-system.min.js +1 -1
  20. package/dist/json-schema-system.min.js.map +1 -1
  21. package/dist/json-schema-umd.js +495 -762
  22. package/dist/json-schema-umd.js.map +1 -1
  23. package/dist/json-schema-umd.min.js +1 -1
  24. package/dist/json-schema-umd.min.js.map +1 -1
  25. package/lib/common.d.ts +1 -0
  26. package/lib/draft-04.d.ts +3 -2
  27. package/lib/draft-06.d.ts +3 -2
  28. package/lib/draft-06.js +2 -2
  29. package/lib/draft-07.d.ts +3 -2
  30. package/lib/draft-07.js +2 -2
  31. package/lib/draft-2019-09.d.ts +3 -2
  32. package/lib/draft-2019-09.js +2 -2
  33. package/lib/draft-2020-12.d.ts +3 -2
  34. package/lib/draft-2020-12.js +2 -2
  35. package/lib/keywords/index.js +0 -2
  36. package/lib/keywords/maxLength.js +1 -1
  37. package/lib/keywords/minLength.js +1 -1
  38. package/package.json +1 -1
  39. package/lib/keywords/maxLength6.js +0 -7
  40. package/lib/keywords/minLength6.js +0 -7
@@ -1,6 +1,6 @@
1
1
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
2
 
3
- var justCurryIt$2 = curry$j;
3
+ var justCurryIt$1 = curry$b;
4
4
 
5
5
  /*
6
6
  function add(a, b, c) {
@@ -25,7 +25,7 @@ var justCurryIt$2 = curry$j;
25
25
  milesToKm(10); // 16.2
26
26
  */
27
27
 
28
- function curry$j(fn, arity) {
28
+ function curry$b(fn, arity) {
29
29
  return function curried() {
30
30
  if (arity == null) {
31
31
  arity = fn.length;
@@ -1896,84 +1896,91 @@ const pathRelative$1 = (from, to) => {
1896
1896
 
1897
1897
  var common$1 = { jsonTypeOf: jsonTypeOf$2, resolveUrl: resolveUrl$3, urlFragment: urlFragment$1, pathRelative: pathRelative$1 };
1898
1898
 
1899
- const curry$i = justCurryIt$2;
1899
+ const curry$a = justCurryIt$1;
1900
1900
 
1901
1901
 
1902
- const nil$3 = "";
1902
+ const nil$2 = "";
1903
1903
 
1904
- const compile$Q = (pointer) => {
1904
+ const compile$N = (pointer) => {
1905
1905
  if (pointer.length > 0 && pointer[0] !== "/") {
1906
1906
  throw Error("Invalid JSON Pointer");
1907
1907
  }
1908
1908
 
1909
- return pointer.split("/").slice(1).map(unescape$1);
1909
+ return pointer.split("/").slice(1).map(unescape);
1910
1910
  };
1911
1911
 
1912
- const get$3 = (pointer, value = undefined) => {
1913
- const ptr = compile$Q(pointer);
1912
+ const get$2 = (pointer, value = undefined) => {
1913
+ const ptr = compile$N(pointer);
1914
1914
 
1915
1915
  const fn = (value) => ptr.reduce(([value, pointer], segment) => {
1916
- return [applySegment$1(value, segment, pointer), append$1(segment, pointer)];
1916
+ return [applySegment(value, segment, pointer), append(segment, pointer)];
1917
1917
  }, [value, ""])[0];
1918
1918
 
1919
1919
  return value === undefined ? fn : fn(value);
1920
1920
  };
1921
1921
 
1922
- const set$1 = (pointer, subject = undefined, value = undefined) => {
1923
- const ptr = compile$Q(pointer);
1924
- const fn = curry$i((subject, value) => _set$1(ptr, subject, value, nil$3));
1922
+ const set = (pointer, subject = undefined, value = undefined) => {
1923
+ const ptr = compile$N(pointer);
1924
+ const fn = curry$a((subject, value) => _set(ptr, subject, value, nil$2));
1925
1925
  return subject === undefined ? fn : fn(subject, value);
1926
1926
  };
1927
1927
 
1928
- const _set$1 = (pointer, subject, value, cursor) => {
1928
+ const _set = (pointer, subject, value, cursor) => {
1929
1929
  if (pointer.length === 0) {
1930
1930
  return value;
1931
1931
  } else if (pointer.length > 1) {
1932
- const segment = pointer.shift();
1933
- return { ...subject, [segment]: _set$1(pointer, applySegment$1(subject, segment, cursor), value, append$1(segment, cursor)) };
1932
+ if (Array.isArray(subject)) {
1933
+ const index = pointer.shift();
1934
+ const clonedSubject = [...subject];
1935
+ clonedSubject[index] = _set(pointer, applySegment(subject, index, cursor), value, append(index, cursor));
1936
+ return clonedSubject;
1937
+ } else {
1938
+ const segment = pointer.shift();
1939
+ return { ...subject, [segment]: _set(pointer, applySegment(subject, segment, cursor), value, append(segment, cursor)) };
1940
+ }
1934
1941
  } else if (Array.isArray(subject)) {
1935
1942
  const clonedSubject = [...subject];
1936
- const segment = computeSegment$1(subject, pointer[0]);
1943
+ const segment = computeSegment(subject, pointer[0]);
1937
1944
  clonedSubject[segment] = value;
1938
1945
  return clonedSubject;
1939
1946
  } else if (typeof subject === "object" && subject !== null) {
1940
1947
  return { ...subject, [pointer[0]]: value };
1941
1948
  } else {
1942
- return applySegment$1(subject, pointer[0], cursor);
1949
+ return applySegment(subject, pointer[0], cursor);
1943
1950
  }
1944
1951
  };
1945
1952
 
1946
- const assign$1 = (pointer, subject = undefined, value = undefined) => {
1947
- const ptr = compile$Q(pointer);
1948
- const fn = curry$i((subject, value) => _assign$1(ptr, subject, value, nil$3));
1953
+ const assign = (pointer, subject = undefined, value = undefined) => {
1954
+ const ptr = compile$N(pointer);
1955
+ const fn = curry$a((subject, value) => _assign(ptr, subject, value, nil$2));
1949
1956
  return subject === undefined ? fn : fn(subject, value);
1950
1957
  };
1951
1958
 
1952
- const _assign$1 = (pointer, subject, value, cursor) => {
1959
+ const _assign = (pointer, subject, value, cursor) => {
1953
1960
  if (pointer.length === 0) {
1954
1961
  return;
1955
- } else if (pointer.length === 1 && !isScalar$1(subject)) {
1956
- const segment = computeSegment$1(subject, pointer[0]);
1962
+ } else if (pointer.length === 1 && !isScalar(subject)) {
1963
+ const segment = computeSegment(subject, pointer[0]);
1957
1964
  subject[segment] = value;
1958
1965
  } else {
1959
1966
  const segment = pointer.shift();
1960
- _assign$1(pointer, applySegment$1(subject, segment, cursor), value, append$1(segment, cursor));
1967
+ _assign(pointer, applySegment(subject, segment, cursor), value, append(segment, cursor));
1961
1968
  }
1962
1969
  };
1963
1970
 
1964
- const unset$1 = (pointer, subject = undefined) => {
1965
- const ptr = compile$Q(pointer);
1966
- const fn = (subject) => _unset$1(ptr, subject, nil$3);
1971
+ const unset = (pointer, subject = undefined) => {
1972
+ const ptr = compile$N(pointer);
1973
+ const fn = (subject) => _unset(ptr, subject, nil$2);
1967
1974
  return subject === undefined ? fn : fn(subject);
1968
1975
  };
1969
1976
 
1970
- const _unset$1 = (pointer, subject, cursor) => {
1977
+ const _unset = (pointer, subject, cursor) => {
1971
1978
  if (pointer.length == 0) {
1972
1979
  return undefined;
1973
1980
  } else if (pointer.length > 1) {
1974
1981
  const segment = pointer.shift();
1975
- const value = applySegment$1(subject, segment, cursor);
1976
- return { ...subject, [segment]: _unset$1(pointer, value, append$1(segment, cursor)) };
1982
+ const value = applySegment(subject, segment, cursor);
1983
+ return { ...subject, [segment]: _unset(pointer, value, append(segment, cursor)) };
1977
1984
  } else if (Array.isArray(subject)) {
1978
1985
  return subject.filter((_, ndx) => ndx != pointer[0]);
1979
1986
  } else if (typeof subject === "object" && subject !== null) {
@@ -1981,54 +1988,54 @@ const _unset$1 = (pointer, subject, cursor) => {
1981
1988
  const { [pointer[0]]: _, ...result } = subject;
1982
1989
  return result;
1983
1990
  } else {
1984
- return applySegment$1(subject, pointer[0], cursor);
1991
+ return applySegment(subject, pointer[0], cursor);
1985
1992
  }
1986
1993
  };
1987
1994
 
1988
- const remove$1 = (pointer, subject = undefined) => {
1989
- const ptr = compile$Q(pointer);
1990
- const fn = (subject) => _remove$1(ptr, subject, nil$3);
1995
+ const remove = (pointer, subject = undefined) => {
1996
+ const ptr = compile$N(pointer);
1997
+ const fn = (subject) => _remove(ptr, subject, nil$2);
1991
1998
  return subject === undefined ? fn : fn(subject);
1992
1999
  };
1993
2000
 
1994
- const _remove$1 = (pointer, subject, cursor) => {
2001
+ const _remove = (pointer, subject, cursor) => {
1995
2002
  if (pointer.length === 0) {
1996
2003
  return;
1997
2004
  } else if (pointer.length > 1) {
1998
2005
  const segment = pointer.shift();
1999
- const value = applySegment$1(subject, segment, cursor);
2000
- _remove$1(pointer, value, append$1(segment, cursor));
2006
+ const value = applySegment(subject, segment, cursor);
2007
+ _remove(pointer, value, append(segment, cursor));
2001
2008
  } else if (Array.isArray(subject)) {
2002
2009
  subject.splice(pointer[0], 1);
2003
2010
  } else if (typeof subject === "object" && subject !== null) {
2004
2011
  delete subject[pointer[0]];
2005
2012
  } else {
2006
- applySegment$1(subject, pointer[0], cursor);
2013
+ applySegment(subject, pointer[0], cursor);
2007
2014
  }
2008
2015
  };
2009
2016
 
2010
- const append$1 = curry$i((segment, pointer) => pointer + "/" + escape$2(segment));
2017
+ const append = curry$a((segment, pointer) => pointer + "/" + escape$1(segment));
2011
2018
 
2012
- const escape$2 = (segment) => segment.toString().replace(/~/g, "~0").replace(/\//g, "~1");
2013
- const unescape$1 = (segment) => segment.toString().replace(/~1/g, "/").replace(/~0/g, "~");
2014
- const computeSegment$1 = (value, segment) => Array.isArray(value) && segment === "-" ? value.length : segment;
2019
+ const escape$1 = (segment) => segment.toString().replace(/~/g, "~0").replace(/\//g, "~1");
2020
+ const unescape = (segment) => segment.toString().replace(/~1/g, "/").replace(/~0/g, "~");
2021
+ const computeSegment = (value, segment) => Array.isArray(value) && segment === "-" ? value.length : segment;
2015
2022
 
2016
- const applySegment$1 = (value, segment, cursor = "") => {
2023
+ const applySegment = (value, segment, cursor = "") => {
2017
2024
  if (value === undefined) {
2018
2025
  throw TypeError(`Value at '${cursor}' is undefined and does not have property '${segment}'`);
2019
2026
  } else if (value === null) {
2020
2027
  throw TypeError(`Value at '${cursor}' is null and does not have property '${segment}'`);
2021
- } else if (isScalar$1(value)) {
2028
+ } else if (isScalar(value)) {
2022
2029
  throw TypeError(`Value at '${cursor}' is a ${typeof value} and does not have property '${segment}'`);
2023
2030
  } else {
2024
- const computedSegment = computeSegment$1(value, segment);
2031
+ const computedSegment = computeSegment(value, segment);
2025
2032
  return value[computedSegment];
2026
2033
  }
2027
2034
  };
2028
2035
 
2029
- const isScalar$1 = (value) => value === null || typeof value !== "object";
2036
+ const isScalar = (value) => value === null || typeof value !== "object";
2030
2037
 
2031
- var lib$6 = { nil: nil$3, append: append$1, get: get$3, set: set$1, assign: assign$1, unset: unset$1, remove: remove$1 };
2038
+ var lib$4 = { nil: nil$2, append, get: get$2, set, assign, unset, remove };
2032
2039
 
2033
2040
  const $__value = Symbol("$__value");
2034
2041
  const $__href = Symbol("$__href");
@@ -2044,16 +2051,16 @@ const value$2 = (ref) => ref[$__value];
2044
2051
 
2045
2052
  var reference = { cons: cons$1, isReference, href, value: value$2 };
2046
2053
 
2047
- const JsonPointer$3 = lib$6;
2048
- const curry$h = justCurryIt$2;
2054
+ const JsonPointer$3 = lib$4;
2055
+ const curry$9 = justCurryIt$1;
2049
2056
  const { resolveUrl: resolveUrl$2, jsonTypeOf: jsonTypeOf$1 } = common$1;
2050
2057
  const Reference$2 = reference;
2051
2058
 
2052
2059
 
2053
- const nil$2 = Object.freeze({ id: "", pointer: "", instance: undefined, value: undefined });
2054
- const cons = (instance, id = "") => Object.freeze({ ...nil$2, id: resolveUrl$2(id, ""), instance, value: instance });
2060
+ const nil$1 = Object.freeze({ id: "", pointer: "", instance: undefined, value: undefined });
2061
+ const cons = (instance, id = "") => Object.freeze({ ...nil$1, id: resolveUrl$2(id, ""), instance, value: instance });
2055
2062
 
2056
- const get$2 = (url, instance = nil$2) => {
2063
+ const get$1 = (url, instance = nil$1) => {
2057
2064
  if (!url.startsWith("#")) {
2058
2065
  throw Error(`No JSON document found at '${url.split("#")[0]}'`);
2059
2066
  }
@@ -2064,7 +2071,7 @@ const get$2 = (url, instance = nil$2) => {
2064
2071
  const uri$1 = (doc) => `${doc.id}#${encodeURI(doc.pointer)}`;
2065
2072
  const value$1 = (doc) => Reference$2.isReference(doc.value) ? Reference$2.value(doc.value) : doc.value;
2066
2073
  const has$1 = (key, doc) => key in value$1(doc);
2067
- const typeOf$1 = curry$h((doc, type) => jsonTypeOf$1(value$1(doc), type));
2074
+ const typeOf$1 = curry$9((doc, type) => jsonTypeOf$1(value$1(doc), type));
2068
2075
 
2069
2076
  const step$1 = (key, doc) => Object.freeze({
2070
2077
  ...doc,
@@ -2072,118 +2079,40 @@ const step$1 = (key, doc) => Object.freeze({
2072
2079
  value: value$1(doc)[key]
2073
2080
  });
2074
2081
 
2075
- const entries$5 = (doc) => Object.keys(value$1(doc))
2082
+ const entries$3 = (doc) => Object.keys(value$1(doc))
2076
2083
  .map((key) => [key, step$1(key, doc)]);
2077
2084
 
2078
2085
  const keys$1 = (doc) => Object.keys(value$1(doc));
2079
2086
 
2080
- const map$7 = curry$h((fn, doc) => value$1(doc)
2087
+ const map$4 = curry$9((fn, doc) => value$1(doc)
2081
2088
  .map((item, ndx, array, thisArg) => fn(step$1(ndx, doc), ndx, array, thisArg)));
2082
2089
 
2083
- const forEach = curry$h((fn, doc) => value$1(doc)
2090
+ const forEach = curry$9((fn, doc) => value$1(doc)
2084
2091
  .forEach((item, ndx, array, thisArg) => fn(step$1(ndx, doc), ndx, array, thisArg)));
2085
2092
 
2086
- const filter$2 = curry$h((fn, doc) => value$1(doc)
2093
+ const filter$1 = curry$9((fn, doc) => value$1(doc)
2087
2094
  .map((item, ndx, array, thisArg) => step$1(ndx, doc))
2088
2095
  .filter((item, ndx, array, thisArg) => fn(item, ndx, array, thisArg)));
2089
2096
 
2090
- const reduce$6 = curry$h((fn, acc, doc) => value$1(doc)
2097
+ const reduce$3 = curry$9((fn, acc, doc) => value$1(doc)
2091
2098
  .reduce((acc, item, ndx) => fn(acc, step$1(ndx, doc), ndx), acc));
2092
2099
 
2093
- const every$2 = curry$h((fn, doc) => value$1(doc)
2100
+ const every$1 = curry$9((fn, doc) => value$1(doc)
2094
2101
  .every((item, ndx, array, thisArg) => fn(step$1(ndx, doc), ndx, array, thisArg)));
2095
2102
 
2096
- const some$2 = curry$h((fn, doc) => value$1(doc)
2103
+ const some$1 = curry$9((fn, doc) => value$1(doc)
2097
2104
  .some((item, ndx, array, thisArg) => fn(step$1(ndx, doc), ndx, array, thisArg)));
2098
2105
 
2099
2106
  const length$1 = (doc) => value$1(doc).length;
2100
2107
 
2101
2108
  var instance = {
2102
- nil: nil$2, cons, get: get$2, uri: uri$1, value: value$1, has: has$1, typeOf: typeOf$1, length: length$1,
2103
- step: step$1, entries: entries$5, keys: keys$1, map: map$7, forEach, filter: filter$2, reduce: reduce$6, every: every$2, some: some$2
2109
+ nil: nil$1, cons, get: get$1, uri: uri$1, value: value$1, has: has$1, typeOf: typeOf$1, length: length$1,
2110
+ step: step$1, entries: entries$3, keys: keys$1, map: map$4, forEach, filter: filter$1, reduce: reduce$3, every: every$1, some: some$1
2104
2111
  };
2105
2112
 
2106
- var entries$4 = async (doc) => Object.entries(await doc);
2107
-
2108
- const curry$g = justCurryIt$2;
2109
-
2110
-
2111
- var map$6 = curry$g(async (fn, doc) => (await doc).map(fn));
2113
+ var entries$2 = async (doc) => Object.entries(await doc);
2112
2114
 
2113
- const curry$f = justCurryIt$2;
2114
-
2115
-
2116
- var reduce$5 = curry$f(async (fn, acc, doc) => {
2117
- return (await doc).reduce(async (acc, item) => fn(await acc, item), acc);
2118
- });
2119
-
2120
- const curry$e = justCurryIt$2;
2121
- const reduce$4 = reduce$5;
2122
-
2123
-
2124
- var filter$1 = curry$e(async (fn, doc, options = {}) => {
2125
- return reduce$4(async (acc, item) => {
2126
- return (await fn(item)) ? acc.concat([item]) : acc;
2127
- }, [], doc, options);
2128
- });
2129
-
2130
- const curry$d = justCurryIt$2;
2131
- const map$5 = map$6;
2132
-
2133
-
2134
- var some$1 = curry$d(async (fn, doc) => {
2135
- const results = await map$5(fn, doc);
2136
- return (await Promise.all(results))
2137
- .some((a) => a);
2138
- });
2139
-
2140
- const curry$c = justCurryIt$2;
2141
- const map$4 = map$6;
2142
-
2143
-
2144
- var every$1 = curry$c(async (fn, doc) => {
2145
- const results = await map$4(fn, doc);
2146
- return (await Promise.all(results))
2147
- .every((a) => a);
2148
- });
2149
-
2150
- const curry$b = justCurryIt$2;
2151
-
2152
-
2153
- var pipeline$3 = curry$b((fns, doc) => {
2154
- return fns.reduce(async (acc, fn) => fn(await acc), doc);
2155
- });
2156
-
2157
- var all$1 = (doc) => Promise.all(doc);
2158
-
2159
- const pipeline$2 = pipeline$3;
2160
- const entries$3 = entries$4;
2161
- const reduce$3 = reduce$5;
2162
-
2163
-
2164
- var allValues$1 = (doc) => {
2165
- return pipeline$2([
2166
- entries$3,
2167
- reduce$3(async (acc, [propertyName, propertyValue]) => {
2168
- acc[propertyName] = await propertyValue;
2169
- return acc;
2170
- }, {})
2171
- ], doc);
2172
- };
2173
-
2174
- var lib$5 = {
2175
- entries: entries$4,
2176
- map: map$6,
2177
- filter: filter$1,
2178
- reduce: reduce$5,
2179
- some: some$1,
2180
- every: every$1,
2181
- pipeline: pipeline$3,
2182
- all: all$1,
2183
- allValues: allValues$1
2184
- };
2185
-
2186
- var justCurryIt$1 = curry$a;
2115
+ var justCurryIt = curry$8;
2187
2116
 
2188
2117
  /*
2189
2118
  function add(a, b, c) {
@@ -2208,7 +2137,7 @@ var justCurryIt$1 = curry$a;
2208
2137
  milesToKm(10); // 16.2
2209
2138
  */
2210
2139
 
2211
- function curry$a(fn, arity) {
2140
+ function curry$8(fn, arity) {
2212
2141
  return function curried() {
2213
2142
  if (arity == null) {
2214
2143
  arity = fn.length;
@@ -2224,146 +2153,83 @@ function curry$a(fn, arity) {
2224
2153
  };
2225
2154
  }
2226
2155
 
2227
- const curry$9 = justCurryIt$1;
2156
+ const curry$7 = justCurryIt;
2228
2157
 
2229
2158
 
2230
- const nil$1 = "";
2159
+ var map$3 = curry$7(async (fn, doc) => (await doc).map(fn));
2231
2160
 
2232
- const compile$P = (pointer) => {
2233
- if (pointer.length > 0 && pointer[0] !== "/") {
2234
- throw Error("Invalid JSON Pointer");
2235
- }
2161
+ const curry$6 = justCurryIt;
2236
2162
 
2237
- return pointer.split("/").slice(1).map(unescape);
2238
- };
2239
2163
 
2240
- const get$1 = (pointer, value = undefined) => {
2241
- const ptr = compile$P(pointer);
2164
+ var reduce$2 = curry$6(async (fn, acc, doc) => {
2165
+ return (await doc).reduce(async (acc, item) => fn(await acc, item), acc);
2166
+ });
2242
2167
 
2243
- const fn = (value) => ptr.reduce(([value, pointer], segment) => {
2244
- return [applySegment(value, segment, pointer), append(segment, pointer)];
2245
- }, [value, ""])[0];
2168
+ const curry$5 = justCurryIt;
2169
+ const reduce$1 = reduce$2;
2246
2170
 
2247
- return value === undefined ? fn : fn(value);
2248
- };
2249
2171
 
2250
- const set = (pointer, subject = undefined, value = undefined) => {
2251
- const ptr = compile$P(pointer);
2252
- const fn = curry$9((subject, value) => _set(ptr, subject, value, nil$1));
2253
- return subject === undefined ? fn : fn(subject, value);
2254
- };
2172
+ var filter = curry$5(async (fn, doc, options = {}) => {
2173
+ return reduce$1(async (acc, item) => {
2174
+ return (await fn(item)) ? acc.concat([item]) : acc;
2175
+ }, [], doc, options);
2176
+ });
2255
2177
 
2256
- const _set = (pointer, subject, value, cursor) => {
2257
- if (pointer.length === 0) {
2258
- return value;
2259
- } else if (pointer.length > 1) {
2260
- if (Array.isArray(subject)) {
2261
- const index = pointer.shift();
2262
- const clonedSubject = [...subject];
2263
- clonedSubject[index] = _set(pointer, applySegment(subject, index, cursor), value, append(index, cursor));
2264
- return clonedSubject;
2265
- } else {
2266
- const segment = pointer.shift();
2267
- return { ...subject, [segment]: _set(pointer, applySegment(subject, segment, cursor), value, append(segment, cursor)) };
2268
- }
2269
- } else if (Array.isArray(subject)) {
2270
- const clonedSubject = [...subject];
2271
- const segment = computeSegment(subject, pointer[0]);
2272
- clonedSubject[segment] = value;
2273
- return clonedSubject;
2274
- } else if (typeof subject === "object" && subject !== null) {
2275
- return { ...subject, [pointer[0]]: value };
2276
- } else {
2277
- return applySegment(subject, pointer[0], cursor);
2278
- }
2279
- };
2178
+ const curry$4 = justCurryIt;
2179
+ const map$2 = map$3;
2280
2180
 
2281
- const assign = (pointer, subject = undefined, value = undefined) => {
2282
- const ptr = compile$P(pointer);
2283
- const fn = curry$9((subject, value) => _assign(ptr, subject, value, nil$1));
2284
- return subject === undefined ? fn : fn(subject, value);
2285
- };
2286
2181
 
2287
- const _assign = (pointer, subject, value, cursor) => {
2288
- if (pointer.length === 0) {
2289
- return;
2290
- } else if (pointer.length === 1 && !isScalar(subject)) {
2291
- const segment = computeSegment(subject, pointer[0]);
2292
- subject[segment] = value;
2293
- } else {
2294
- const segment = pointer.shift();
2295
- _assign(pointer, applySegment(subject, segment, cursor), value, append(segment, cursor));
2296
- }
2297
- };
2182
+ var some = curry$4(async (fn, doc) => {
2183
+ const results = await map$2(fn, doc);
2184
+ return (await Promise.all(results))
2185
+ .some((a) => a);
2186
+ });
2298
2187
 
2299
- const unset = (pointer, subject = undefined) => {
2300
- const ptr = compile$P(pointer);
2301
- const fn = (subject) => _unset(ptr, subject, nil$1);
2302
- return subject === undefined ? fn : fn(subject);
2303
- };
2188
+ const curry$3 = justCurryIt;
2189
+ const map$1 = map$3;
2304
2190
 
2305
- const _unset = (pointer, subject, cursor) => {
2306
- if (pointer.length == 0) {
2307
- return undefined;
2308
- } else if (pointer.length > 1) {
2309
- const segment = pointer.shift();
2310
- const value = applySegment(subject, segment, cursor);
2311
- return { ...subject, [segment]: _unset(pointer, value, append(segment, cursor)) };
2312
- } else if (Array.isArray(subject)) {
2313
- return subject.filter((_, ndx) => ndx != pointer[0]);
2314
- } else if (typeof subject === "object" && subject !== null) {
2315
- // eslint-disable-next-line no-unused-vars
2316
- const { [pointer[0]]: _, ...result } = subject;
2317
- return result;
2318
- } else {
2319
- return applySegment(subject, pointer[0], cursor);
2320
- }
2321
- };
2322
2191
 
2323
- const remove = (pointer, subject = undefined) => {
2324
- const ptr = compile$P(pointer);
2325
- const fn = (subject) => _remove(ptr, subject, nil$1);
2326
- return subject === undefined ? fn : fn(subject);
2327
- };
2192
+ var every = curry$3(async (fn, doc) => {
2193
+ const results = await map$1(fn, doc);
2194
+ return (await Promise.all(results))
2195
+ .every((a) => a);
2196
+ });
2328
2197
 
2329
- const _remove = (pointer, subject, cursor) => {
2330
- if (pointer.length === 0) {
2331
- return;
2332
- } else if (pointer.length > 1) {
2333
- const segment = pointer.shift();
2334
- const value = applySegment(subject, segment, cursor);
2335
- _remove(pointer, value, append(segment, cursor));
2336
- } else if (Array.isArray(subject)) {
2337
- subject.splice(pointer[0], 1);
2338
- } else if (typeof subject === "object" && subject !== null) {
2339
- delete subject[pointer[0]];
2340
- } else {
2341
- applySegment(subject, pointer[0], cursor);
2342
- }
2343
- };
2198
+ const curry$2 = justCurryIt;
2344
2199
 
2345
- const append = curry$9((segment, pointer) => pointer + "/" + escape$1(segment));
2346
2200
 
2347
- const escape$1 = (segment) => segment.toString().replace(/~/g, "~0").replace(/\//g, "~1");
2348
- const unescape = (segment) => segment.toString().replace(/~1/g, "/").replace(/~0/g, "~");
2349
- const computeSegment = (value, segment) => Array.isArray(value) && segment === "-" ? value.length : segment;
2201
+ var pipeline$1 = curry$2((fns, doc) => {
2202
+ return fns.reduce(async (acc, fn) => fn(await acc), doc);
2203
+ });
2350
2204
 
2351
- const applySegment = (value, segment, cursor = "") => {
2352
- if (value === undefined) {
2353
- throw TypeError(`Value at '${cursor}' is undefined and does not have property '${segment}'`);
2354
- } else if (value === null) {
2355
- throw TypeError(`Value at '${cursor}' is null and does not have property '${segment}'`);
2356
- } else if (isScalar(value)) {
2357
- throw TypeError(`Value at '${cursor}' is a ${typeof value} and does not have property '${segment}'`);
2358
- } else {
2359
- const computedSegment = computeSegment(value, segment);
2360
- return value[computedSegment];
2361
- }
2362
- };
2205
+ var all = (doc) => Promise.all(doc);
2363
2206
 
2364
- const isScalar = (value) => value === null || typeof value !== "object";
2207
+ const pipeline = pipeline$1;
2208
+ const entries$1 = entries$2;
2209
+ const reduce = reduce$2;
2365
2210
 
2366
- var lib$4 = { nil: nil$1, append, get: get$1, set, assign, unset, remove };
2211
+
2212
+ var allValues = (doc) => {
2213
+ return pipeline([
2214
+ entries$1,
2215
+ reduce(async (acc, [propertyName, propertyValue]) => {
2216
+ acc[propertyName] = await propertyValue;
2217
+ return acc;
2218
+ }, {})
2219
+ ], doc);
2220
+ };
2221
+
2222
+ var lib$3 = {
2223
+ entries: entries$2,
2224
+ map: map$3,
2225
+ filter: filter,
2226
+ reduce: reduce$2,
2227
+ some: some,
2228
+ every: every,
2229
+ pipeline: pipeline$1,
2230
+ all: all,
2231
+ allValues: allValues
2232
+ };
2367
2233
 
2368
2234
  var moo$1 = {exports: {}};
2369
2235
 
@@ -3204,7 +3070,7 @@ const parse$2 = parse_1;
3204
3070
  const stringify$1 = stringify_1;
3205
3071
 
3206
3072
 
3207
- var lib$3 = { parse: parse$2, stringify: stringify$1 };
3073
+ var lib$2 = { parse: parse$2, stringify: stringify$1 };
3208
3074
 
3209
3075
  var fetch_browser = fetch;
3210
3076
 
@@ -3460,10 +3326,10 @@ const getContentType = (path) => {
3460
3326
 
3461
3327
  var mediaTypes = { addPlugin, parse, getContentType };
3462
3328
 
3463
- const curry$8 = justCurryIt$2;
3464
- const Pact$a = lib$5;
3465
- const Json = lib$3;
3466
- const JsonPointer = lib$6;
3329
+ const curry$1 = justCurryIt$1;
3330
+ const Pact$a = lib$3;
3331
+ const Json = lib$2;
3332
+ const JsonPointer = lib$4;
3467
3333
  const { jsonTypeOf, resolveUrl: resolveUrl$1, urlFragment, pathRelative } = common$1;
3468
3334
  const fetch$1 = fetch_browser;
3469
3335
  const Reference$1 = reference;
@@ -3494,61 +3360,64 @@ const getConfig = (dialectId, key) => {
3494
3360
  // Schema Management
3495
3361
  const schemaStore = {};
3496
3362
  const schemaStoreAlias = {};
3497
- const add$1 = (schema, retrievalUri = "", defaultDialectId = "") => {
3498
- const dialectId = getDialectId(schema, retrievalUri, defaultDialectId);
3499
-
3500
- const id = getBaseUri(schema, retrievalUri, dialectJsonSchemaVersion[dialectId]);
3501
-
3502
- // Extract embedded schemas and collect anchors
3503
- const embeddedToken = getConfig(dialectId, "embeddedToken");
3504
- const baseToken = getConfig(dialectId, "baseToken");
3505
- const anchorToken = getConfig(dialectId, "anchorToken");
3506
- const dynamicAnchorToken = getConfig(dialectId, "dynamicAnchorToken");
3507
- const jrefToken = getConfig(dialectId, "jrefToken");
3508
-
3509
- const dynamicAnchors = {};
3510
- const anchors = { "": "" };
3511
-
3512
- schema = Json.parse(JSON.stringify(schema), (key, value, pointer) => {
3513
- if (jsonTypeOf(value, "object")) {
3514
- // Embedded Schema
3515
- const embeddedSchemaDialectId = typeof value.$schema === "string" ? resolveUrl$1(value.$schema, "") : dialectId;
3516
- const embeddedEmbeddedToken = getConfig(embeddedSchemaDialectId, "embeddedToken");
3517
- const embeddedAnchorToken = getConfig(embeddedSchemaDialectId, "anchorToken");
3518
- if (typeof value[embeddedEmbeddedToken] === "string" && (embeddedEmbeddedToken !== embeddedAnchorToken || value[embeddedEmbeddedToken][0] !== "#") && pointer !== "") {
3519
- const embeddedRetrievalUri = resolveUrl$1(id, value[embeddedEmbeddedToken]);
3520
- add$1(value, embeddedRetrievalUri, dialectId);
3521
- return Reference$1.cons(value[embeddedEmbeddedToken], value);
3522
- }
3523
3363
 
3524
- if (typeof value[jrefToken] === "string") {
3525
- return Reference$1.cons(value[jrefToken], value);
3526
- }
3364
+ const add$1 = (schema, url = "", defaultSchemaVersion = "") => {
3365
+ schema = JSON.parse(JSON.stringify(schema));
3366
+ const externalId = resolveUrl$1(url, "");
3527
3367
 
3528
- if (typeof value[anchorToken] === "string" && pointer !== JsonPointer.nil) {
3529
- const anchor = anchorToken !== embeddedToken ? value[anchorToken] : value[anchorToken].slice(1);
3530
- anchors[anchor] = pointer;
3531
- delete value[anchorToken];
3532
- }
3368
+ // Dialect / JSON Schema Version
3369
+ const dialectId = resolveUrl$1(schema["$schema"] || defaultSchemaVersion, "");
3370
+ if (!dialectId) {
3371
+ throw Error("Couldn't determine schema dialect");
3372
+ }
3373
+ delete schema["$schema"];
3533
3374
 
3534
- if (typeof value[dynamicAnchorToken] === "string") {
3535
- dynamicAnchors[value[dynamicAnchorToken]] = `${id}#${pointer}`;
3536
- anchors[value[dynamicAnchorToken]] = pointer;
3537
- delete value[dynamicAnchorToken];
3375
+ // Determine JSON Schema version
3376
+ if (!(dialectId in dialectJsonSchemaVersion)) {
3377
+ if (schema?.$vocabulary?.[core201909Id] === true && dialectId === getSchemaIdentifier(schema, externalId, core201909Id)[0]) {
3378
+ // Self describing 2019-09 meta-schema
3379
+ dialectJsonSchemaVersion[dialectId] = core201909Id;
3380
+ } else if (schema?.$vocabulary?.[core202012Id] === true && dialectId === getSchemaIdentifier(schema, externalId, core202012Id)[0]) {
3381
+ // Self describing 2020-12 meta-schema
3382
+ dialectJsonSchemaVersion[dialectId] = core202012Id;
3383
+ } else {
3384
+ // Need to look at meta-schema to determine version
3385
+ const metaSchema = schemaStore[dialectId];
3386
+ if (!metaSchema) {
3387
+ throw Error(`Couldn't determine JSON Schema version for dialect: '${dialectId}'`);
3388
+ } else if (metaSchema.vocabulary[core201909Id] === true) {
3389
+ dialectJsonSchemaVersion[dialectId] = core201909Id;
3390
+ } else if (metaSchema.vocabulary[core202012Id] === true) {
3391
+ dialectJsonSchemaVersion[dialectId] = core202012Id;
3392
+ } else {
3393
+ // Assume the jsonSchemaVersion is the meta-schema's dialectId (non-standard behavior)
3394
+ dialectJsonSchemaVersion[dialectId] = dialectJsonSchemaVersion[metaSchema.dialectId];
3538
3395
  }
3539
3396
  }
3397
+ }
3540
3398
 
3541
- return value;
3542
- });
3543
- console.log(embeddedIds);
3544
-
3545
- delete schema.$schema;
3399
+ // Internal Identifier
3400
+ const [id, fragment] = getSchemaIdentifier(schema, externalId, dialectJsonSchemaVersion[dialectId]);
3401
+ if (!id) {
3402
+ throw Error("Couldn't determine an identifier for the schema");
3403
+ }
3404
+ const baseToken = getConfig(dialectId, "baseToken");
3546
3405
  delete schema[baseToken];
3406
+ if (externalId) {
3407
+ schemaStoreAlias[externalId] = id;
3408
+ }
3409
+
3410
+ const anchorToken = getConfig(dialectId, "anchorToken");
3411
+ if (fragment && baseToken === anchorToken) {
3412
+ schema[anchorToken] = anchorToken !== baseToken ? encodeURI(fragment) : `#${encodeURI(fragment)}`;
3413
+ }
3547
3414
 
3548
3415
  // recursiveAnchor
3416
+ const dynamicAnchors = {};
3549
3417
  const recursiveAnchorToken = getConfig(dialectId, "recursiveAnchorToken");
3550
3418
  if (schema[recursiveAnchorToken] === true) {
3551
3419
  dynamicAnchors[""] = `${id}#`;
3420
+ schema[anchorToken] = "";
3552
3421
  delete schema[recursiveAnchorToken];
3553
3422
  }
3554
3423
 
@@ -3563,66 +3432,69 @@ const add$1 = (schema, retrievalUri = "", defaultDialectId = "") => {
3563
3432
  }
3564
3433
 
3565
3434
  // Store Schema
3435
+ const anchors = { "": "" };
3566
3436
  schemaStore[id] = {
3567
- id,
3568
- dialectId,
3569
- schema,
3570
- anchors,
3571
- dynamicAnchors,
3572
- vocabulary,
3437
+ id: id,
3438
+ dialectId: dialectId,
3439
+ schema: processSchema(schema, id, dialectId, JsonPointer.nil, anchors, dynamicAnchors),
3440
+ anchors: anchors,
3441
+ dynamicAnchors: dynamicAnchors,
3442
+ vocabulary: vocabulary,
3573
3443
  validated: false
3574
3444
  };
3575
- if (id === "https://example.com/schema/root") {
3576
- console.log(Object.keys(schemaStore).filter((id) => !/json-schema\.org/.test(id)));
3577
- }
3578
3445
 
3579
- if (retrievalUri) {
3580
- schemaStoreAlias[resolveUrl$1(retrievalUri, "")] = id;
3581
- }
3446
+ return id;
3582
3447
  };
3583
3448
 
3584
- const getDialectId = (schema, retrievalUri, defaultDialectId) => {
3585
- const dialectId = resolveUrl$1(schema.$schema || defaultDialectId, "");
3586
- if (!dialectId) {
3587
- throw Error("Couldn't determine schema dialect");
3588
- }
3449
+ const getSchemaIdentifier = (schema, externalId, jsonSchemaVersion) => {
3450
+ const baseToken = config[jsonSchemaVersion]?.["baseToken"];
3451
+ const internalUrl = resolveUrl$1(externalId, schema[baseToken] || "");
3452
+ return [resolveUrl$1(internalUrl, ""), urlFragment(internalUrl)];
3453
+ };
3454
+
3455
+ const processSchema = (subject, id, dialectId, pointer, anchors, dynamicAnchors) => {
3456
+ if (jsonTypeOf(subject, "object")) {
3457
+ const embeddedSchemaDialectId = typeof subject.$schema === "string" ? resolveUrl$1(subject.$schema, "") : dialectId;
3458
+ const embeddedEmbeddedToken = getConfig(embeddedSchemaDialectId, "embeddedToken");
3459
+ const embeddedAnchorToken = getConfig(embeddedSchemaDialectId, "anchorToken");
3460
+ if (typeof subject[embeddedEmbeddedToken] === "string" && (embeddedEmbeddedToken !== embeddedAnchorToken || subject[embeddedEmbeddedToken][0] !== "#")) {
3461
+ const ref = resolveUrl$1(id, subject[embeddedEmbeddedToken]);
3462
+ const embeddedBaseToken = getConfig(embeddedSchemaDialectId, "baseToken");
3463
+ subject[embeddedBaseToken] = ref;
3464
+ add$1(subject, ref, dialectId);
3465
+ return Reference$1.cons(subject[embeddedEmbeddedToken], subject);
3466
+ }
3589
3467
 
3590
- // Determine JSON Schema version
3591
- if (!(dialectId in dialectJsonSchemaVersion)) {
3592
- if (schema?.$vocabulary?.[core201909Id] === true && dialectId === getBaseUri(schema, retrievalUri, core201909Id)) {
3593
- // Self describing 2019-09 meta-schema
3594
- dialectJsonSchemaVersion[dialectId] = core201909Id;
3595
- } else if (schema?.$vocabulary?.[core202012Id] === true && dialectId === getBaseUri(schema, retrievalUri, core202012Id)) {
3596
- // Self describing 2020-12 meta-schema
3597
- dialectJsonSchemaVersion[dialectId] = core202012Id;
3598
- } else {
3599
- // Need to look at meta-schema to determine version
3600
- const metaSchema = schemaStore[dialectId];
3601
- if (!metaSchema) {
3602
- throw Error(`Couldn't determine JSON Schema version for dialect: '${dialectId}'`);
3603
- } else if (metaSchema.vocabulary[core201909Id] === true) {
3604
- dialectJsonSchemaVersion[dialectId] = core201909Id;
3605
- } else if (metaSchema.vocabulary[core202012Id] === true) {
3606
- dialectJsonSchemaVersion[dialectId] = core202012Id;
3607
- } else {
3608
- // Assume the jsonSchemaVersion is the meta-schema's dialectId (non-standard behavior)
3609
- dialectJsonSchemaVersion[dialectId] = dialectJsonSchemaVersion[metaSchema.dialectId];
3610
- }
3468
+ const anchorToken = getConfig(dialectId, "anchorToken");
3469
+ const dynamicAnchorToken = getConfig(dialectId, "dynamicAnchorToken");
3470
+ if (typeof subject[dynamicAnchorToken] === "string") {
3471
+ dynamicAnchors[subject[dynamicAnchorToken]] = `${id}#${encodeURI(pointer)}`;
3472
+ anchors[subject[dynamicAnchorToken]] = pointer;
3473
+ delete subject[dynamicAnchorToken];
3611
3474
  }
3612
- }
3613
3475
 
3614
- return dialectId;
3615
- };
3476
+ const embeddedToken = getConfig(dialectId, "embeddedToken");
3477
+ if (typeof subject[anchorToken] === "string") {
3478
+ const anchor = anchorToken !== embeddedToken ? subject[anchorToken] : subject[anchorToken].slice(1);
3479
+ anchors[anchor] = pointer;
3480
+ delete subject[anchorToken];
3481
+ }
3616
3482
 
3617
- const getBaseUri = (schema, retrievalUri, jsonSchemaVersion) => {
3618
- const baseToken = config[jsonSchemaVersion]?.["baseToken"];
3619
- const relativeBaseUri = typeof schema[baseToken] === "string" ? schema[baseToken] : "";
3620
- const baseUri = resolveUrl$1(resolveUrl$1(retrievalUri, relativeBaseUri), "");
3621
- if (!baseUri) {
3622
- throw Error("Couldn't determine an identifier for the schema");
3623
- }
3483
+ const jrefToken = getConfig(dialectId, "jrefToken");
3484
+ if (typeof subject[jrefToken] === "string") {
3485
+ return Reference$1.cons(subject[jrefToken], subject);
3486
+ }
3624
3487
 
3625
- return baseUri;
3488
+ for (const key in subject) {
3489
+ subject[key] = processSchema(subject[key], id, dialectId, JsonPointer.append(key, pointer), anchors, dynamicAnchors);
3490
+ }
3491
+
3492
+ return subject;
3493
+ } else if (Array.isArray(subject)) {
3494
+ return subject.map((item, ndx) => processSchema(item, id, dialectId, JsonPointer.append(ndx, pointer), anchors, dynamicAnchors));
3495
+ } else {
3496
+ return subject;
3497
+ }
3626
3498
  };
3627
3499
 
3628
3500
  const hasStoredSchema = (id) => id in schemaStore || id in schemaStoreAlias;
@@ -3716,14 +3588,14 @@ const step = (key, doc) => {
3716
3588
 
3717
3589
  const keys = (doc) => Object.keys(value(doc));
3718
3590
 
3719
- const entries$2 = (doc) => Pact$a.pipeline([
3591
+ const entries = (doc) => Pact$a.pipeline([
3720
3592
  value,
3721
3593
  Object.keys,
3722
3594
  Pact$a.map(async (key) => [key, await step(key, doc)]),
3723
3595
  Pact$a.all
3724
3596
  ], doc);
3725
3597
 
3726
- const map$3 = curry$8((fn, doc) => Pact$a.pipeline([
3598
+ const map = curry$1((fn, doc) => Pact$a.pipeline([
3727
3599
  value,
3728
3600
  Pact$a.map(async (item, ndx) => fn(await step(ndx, doc), ndx)),
3729
3601
  Pact$a.all
@@ -3798,7 +3670,7 @@ const relativeUri = (from, to) => {
3798
3670
  var schema$5 = {
3799
3671
  setConfig, getConfig,
3800
3672
  add: add$1, get, markValidated,
3801
- uri, value, getAnchorPointer, typeOf, has, step, keys, entries: entries$2, map: map$3, length,
3673
+ uri, value, getAnchorPointer, typeOf, has, step, keys, entries, map, length,
3802
3674
  toSchema
3803
3675
  };
3804
3676
 
@@ -3812,19 +3684,19 @@ class InvalidSchemaError$3 extends Error {
3812
3684
 
3813
3685
  var invalidSchemaError = InvalidSchemaError$3;
3814
3686
 
3815
- const Schema$R = schema$5;
3687
+ const Schema$P = schema$5;
3816
3688
 
3817
3689
 
3818
- const compile$O = (schema) => Schema$R.value(schema);
3819
- const interpret$O = () => true;
3690
+ const compile$M = (schema) => Schema$P.value(schema);
3691
+ const interpret$M = () => true;
3820
3692
 
3821
- var metaData$4 = { compile: compile$O, interpret: interpret$O };
3693
+ var metaData$4 = { compile: compile$M, interpret: interpret$M };
3822
3694
 
3823
- const curry$7 = justCurryIt$2;
3695
+ const curry = justCurryIt$1;
3824
3696
  const PubSub$1 = pubsub.exports;
3825
3697
  const { resolveUrl } = common$1;
3826
- const Instance$E = instance;
3827
- const Schema$Q = schema$5;
3698
+ const Instance$C = instance;
3699
+ const Schema$O = schema$5;
3828
3700
  const InvalidSchemaError$2 = invalidSchemaError;
3829
3701
  const MediaTypes = mediaTypes;
3830
3702
  const metaData$3 = metaData$4;
@@ -3844,19 +3716,19 @@ MediaTypes.addPlugin("application/schema+json", {
3844
3716
  });
3845
3717
 
3846
3718
  const validate$2 = async (schema, value = undefined, outputFormat = undefined) => {
3847
- const compiled = await compile$N(schema);
3848
- const interpretAst = (value, outputFormat) => interpret$N(compiled, Instance$E.cons(value), outputFormat);
3719
+ const compiled = await compile$L(schema);
3720
+ const interpretAst = (value, outputFormat) => interpret$L(compiled, Instance$C.cons(value), outputFormat);
3849
3721
 
3850
3722
  return value === undefined ? interpretAst : interpretAst(value, outputFormat);
3851
3723
  };
3852
3724
 
3853
- const compile$N = async (schema) => {
3725
+ const compile$L = async (schema) => {
3854
3726
  const ast = { metaData: {} };
3855
3727
  const schemaUri = await compileSchema(schema, ast);
3856
3728
  return { ast, schemaUri };
3857
3729
  };
3858
3730
 
3859
- const interpret$N = curry$7(({ ast, schemaUri }, value, outputFormat = FLAG) => {
3731
+ const interpret$L = curry(({ ast, schemaUri }, value, outputFormat = FLAG) => {
3860
3732
  if (![FLAG, BASIC, DETAILED, VERBOSE].includes(outputFormat)) {
3861
3733
  throw Error(`The '${outputFormat}' error format is not supported`);
3862
3734
  }
@@ -3931,10 +3803,10 @@ const compileSchema = async (schema, ast) => {
3931
3803
 
3932
3804
  // Vocabularies
3933
3805
  if (!hasKeyword(`${schema.dialectId}#validate`)) {
3934
- const metaSchema = await Schema$Q.get(schema.dialectId);
3806
+ const metaSchema = await Schema$O.get(schema.dialectId);
3935
3807
 
3936
3808
  // Check for mandatory vocabularies
3937
- const mandatoryVocabularies = Schema$Q.getConfig(metaSchema.id, "mandatoryVocabularies") || [];
3809
+ const mandatoryVocabularies = Schema$O.getConfig(metaSchema.id, "mandatoryVocabularies") || [];
3938
3810
  mandatoryVocabularies.forEach((vocabularyId) => {
3939
3811
  if (!metaSchema.vocabulary[vocabularyId]) {
3940
3812
  throw Error(`Vocabulary '${vocabularyId}' must be explicitly declared and required`);
@@ -3957,17 +3829,17 @@ const compileSchema = async (schema, ast) => {
3957
3829
 
3958
3830
  // Meta validation
3959
3831
  if (shouldMetaValidate && !schema.validated) {
3960
- Schema$Q.markValidated(schema.id);
3832
+ Schema$O.markValidated(schema.id);
3961
3833
 
3962
3834
  // Compile
3963
3835
  if (!(schema.dialectId in metaValidators)) {
3964
- const metaSchema = await Schema$Q.get(schema.dialectId);
3965
- const compiledSchema = await compile$N(metaSchema);
3966
- metaValidators[metaSchema.id] = interpret$N(compiledSchema);
3836
+ const metaSchema = await Schema$O.get(schema.dialectId);
3837
+ const compiledSchema = await compile$L(metaSchema);
3838
+ metaValidators[metaSchema.id] = interpret$L(compiledSchema);
3967
3839
  }
3968
3840
 
3969
3841
  // Interpret
3970
- const schemaInstance = Instance$E.cons(schema.schema, schema.id);
3842
+ const schemaInstance = Instance$C.cons(schema.schema, schema.id);
3971
3843
  const metaResults = metaValidators[schema.dialectId](schemaInstance, metaOutputFormat);
3972
3844
  if (!metaResults.valid) {
3973
3845
  throw new InvalidSchemaError$2(metaResults);
@@ -3986,7 +3858,7 @@ const compileSchema = async (schema, ast) => {
3986
3858
  };
3987
3859
 
3988
3860
  const followReferences = async (doc) => {
3989
- return Schema$Q.typeOf(doc, "string") ? followReferences(await Schema$Q.get(Schema$Q.value(doc), doc)) : doc;
3861
+ return Schema$O.typeOf(doc, "string") ? followReferences(await Schema$O.get(Schema$O.value(doc), doc)) : doc;
3990
3862
  };
3991
3863
 
3992
3864
  const interpretSchema = (schemaUri, instance, ast, dynamicAnchors) => {
@@ -4014,45 +3886,45 @@ const getKeywordId = (schemaUri, ast) => {
4014
3886
  };
4015
3887
 
4016
3888
  const add = (schema, url = "", defaultSchemaVersion = "") => {
4017
- const id = Schema$Q.add(schema, url, defaultSchemaVersion);
3889
+ const id = Schema$O.add(schema, url, defaultSchemaVersion);
4018
3890
  delete metaValidators[id];
4019
3891
  };
4020
3892
 
4021
3893
  var core$2 = {
4022
- validate: validate$2, compile: compile$N, interpret: interpret$N,
3894
+ validate: validate$2, compile: compile$L, interpret: interpret$L,
4023
3895
  setMetaOutputFormat, setShouldMetaValidate, FLAG, BASIC, DETAILED, VERBOSE,
4024
3896
  add, getKeyword, hasKeyword, defineVocabulary,
4025
3897
  compileSchema, interpretSchema, collectEvaluatedProperties: collectEvaluatedProperties$e, collectEvaluatedItems: collectEvaluatedItems$f,
4026
3898
  addMediaTypePlugin: MediaTypes.addPlugin
4027
3899
  };
4028
3900
 
4029
- const Pact$9 = lib$5;
3901
+ const Pact$9 = lib$3;
4030
3902
  const PubSub = pubsub.exports;
4031
3903
  const Core$x = core$2;
4032
- const Instance$D = instance;
4033
- const Schema$P = schema$5;
3904
+ const Instance$B = instance;
3905
+ const Schema$N = schema$5;
4034
3906
 
4035
3907
 
4036
- const compile$M = async (schema, ast) => {
4037
- const url = Schema$P.uri(schema);
3908
+ const compile$K = async (schema, ast) => {
3909
+ const url = Schema$N.uri(schema);
4038
3910
  if (!(url in ast)) {
4039
3911
  ast[url] = false; // Place dummy entry in ast to avoid recursive loops
4040
3912
 
4041
- const schemaValue = Schema$P.value(schema);
3913
+ const schemaValue = Schema$N.value(schema);
4042
3914
  if (!["object", "boolean"].includes(typeof schemaValue)) {
4043
- throw Error(`No schema found at '${Schema$P.uri(schema)}'`);
3915
+ throw Error(`No schema found at '${Schema$N.uri(schema)}'`);
4044
3916
  }
4045
3917
 
4046
3918
  ast[url] = [
4047
3919
  `${schema.dialectId}#validate`,
4048
- Schema$P.uri(schema),
3920
+ Schema$N.uri(schema),
4049
3921
  typeof schemaValue === "boolean" ? schemaValue : await Pact$9.pipeline([
4050
- Schema$P.entries,
3922
+ Schema$N.entries,
4051
3923
  Pact$9.map(([keyword, keywordSchema]) => [`${schema.dialectId}#${keyword}`, keywordSchema]),
4052
3924
  Pact$9.filter(([keywordId]) => keywordId !== `${schema.dialectId}#validate`),
4053
3925
  Pact$9.map(async ([keywordId, keywordSchema]) => {
4054
3926
  const keywordAst = await Core$x.getKeyword(keywordId).compile(keywordSchema, ast, schema);
4055
- return [keywordId, Schema$P.uri(keywordSchema), keywordAst];
3927
+ return [keywordId, Schema$N.uri(keywordSchema), keywordAst];
4056
3928
  }),
4057
3929
  Pact$9.all
4058
3930
  ], schema)
@@ -4062,7 +3934,7 @@ const compile$M = async (schema, ast) => {
4062
3934
  return url;
4063
3935
  };
4064
3936
 
4065
- const interpret$M = (uri, instance, ast, dynamicAnchors) => {
3937
+ const interpret$K = (uri, instance, ast, dynamicAnchors) => {
4066
3938
  const [keywordId, schemaUrl, nodes] = ast[uri];
4067
3939
 
4068
3940
  PubSub.publishSync("result.start");
@@ -4074,7 +3946,7 @@ const interpret$M = (uri, instance, ast, dynamicAnchors) => {
4074
3946
  PubSub.publishSync("result", {
4075
3947
  keyword: keywordId,
4076
3948
  absoluteKeywordLocation: schemaUrl,
4077
- instanceLocation: Instance$D.uri(instance),
3949
+ instanceLocation: Instance$B.uri(instance),
4078
3950
  valid: isValid,
4079
3951
  ast: keywordValue
4080
3952
  });
@@ -4085,7 +3957,7 @@ const interpret$M = (uri, instance, ast, dynamicAnchors) => {
4085
3957
  PubSub.publishSync("result", {
4086
3958
  keyword: keywordId,
4087
3959
  absoluteKeywordLocation: schemaUrl,
4088
- instanceLocation: Instance$D.uri(instance),
3960
+ instanceLocation: Instance$B.uri(instance),
4089
3961
  valid: isValid,
4090
3962
  ast: uri
4091
3963
  });
@@ -4123,7 +3995,7 @@ const collectEvaluatedItems$e = (uri, instance, ast, dynamicAnchors, isTop = fal
4123
3995
  }, new Set());
4124
3996
  };
4125
3997
 
4126
- var validate$1 = { compile: compile$M, interpret: interpret$M, collectEvaluatedProperties: collectEvaluatedProperties$d, collectEvaluatedItems: collectEvaluatedItems$e };
3998
+ var validate$1 = { compile: compile$K, interpret: interpret$K, collectEvaluatedProperties: collectEvaluatedProperties$d, collectEvaluatedItems: collectEvaluatedItems$e };
4127
3999
 
4128
4000
  const metaData$2 = metaData$4;
4129
4001
  const validate = validate$1;
@@ -4132,90 +4004,90 @@ const validate = validate$1;
4132
4004
  var keywords$6 = { metaData: metaData$2, validate };
4133
4005
 
4134
4006
  const Core$w = core$2;
4135
- const Schema$O = schema$5;
4136
- const Instance$C = instance;
4007
+ const Schema$M = schema$5;
4008
+ const Instance$A = instance;
4137
4009
  const Reference = reference;
4138
4010
  const Keywords$2 = keywords$6;
4139
4011
  const InvalidSchemaError$1 = invalidSchemaError;
4140
4012
 
4141
4013
 
4142
- var lib$2 = { Core: Core$w, Schema: Schema$O, Instance: Instance$C, Reference, Keywords: Keywords$2, InvalidSchemaError: InvalidSchemaError$1 };
4014
+ var lib$1 = { Core: Core$w, Schema: Schema$M, Instance: Instance$A, Reference, Keywords: Keywords$2, InvalidSchemaError: InvalidSchemaError$1 };
4143
4015
 
4144
- const { Core: Core$v, Schema: Schema$N, Instance: Instance$B } = lib$2;
4016
+ const { Core: Core$v, Schema: Schema$L, Instance: Instance$z } = lib$1;
4145
4017
 
4146
4018
 
4147
- const compile$L = async (schema, ast, parentSchema) => {
4148
- const items = await Schema$N.step("items", parentSchema);
4149
- const numberOfItems = Schema$N.typeOf(items, "array") ? Schema$N.length(items) : Number.MAX_SAFE_INTEGER;
4019
+ const compile$J = async (schema, ast, parentSchema) => {
4020
+ const items = await Schema$L.step("items", parentSchema);
4021
+ const numberOfItems = Schema$L.typeOf(items, "array") ? Schema$L.length(items) : Number.MAX_SAFE_INTEGER;
4150
4022
 
4151
- if (Schema$N.typeOf(schema, "boolean")) {
4152
- return [numberOfItems, Schema$N.value(schema)];
4023
+ if (Schema$L.typeOf(schema, "boolean")) {
4024
+ return [numberOfItems, Schema$L.value(schema)];
4153
4025
  } else {
4154
4026
  return [numberOfItems, await Core$v.compileSchema(schema, ast)];
4155
4027
  }
4156
4028
  };
4157
4029
 
4158
- const interpret$L = ([numberOfItems, additionalItems], instance, ast, dynamicAnchors) => {
4159
- if (!Instance$B.typeOf(instance, "array")) {
4030
+ const interpret$J = ([numberOfItems, additionalItems], instance, ast, dynamicAnchors) => {
4031
+ if (!Instance$z.typeOf(instance, "array")) {
4160
4032
  return true;
4161
4033
  }
4162
4034
 
4163
4035
  if (typeof additionalItems === "string") {
4164
- return Instance$B.every((item, ndx) => ndx < numberOfItems || Core$v.interpretSchema(additionalItems, item, ast, dynamicAnchors), instance);
4036
+ return Instance$z.every((item, ndx) => ndx < numberOfItems || Core$v.interpretSchema(additionalItems, item, ast, dynamicAnchors), instance);
4165
4037
  } else {
4166
- return Instance$B.every((item, ndx) => ndx < numberOfItems ? true : additionalItems, instance);
4038
+ return Instance$z.every((item, ndx) => ndx < numberOfItems ? true : additionalItems, instance);
4167
4039
  }
4168
4040
  };
4169
4041
 
4170
- var additionalItems = { compile: compile$L, interpret: interpret$L };
4042
+ var additionalItems = { compile: compile$J, interpret: interpret$J };
4171
4043
 
4172
- const { Core: Core$u, Schema: Schema$M, Instance: Instance$A } = lib$2;
4044
+ const { Core: Core$u, Schema: Schema$K, Instance: Instance$y } = lib$1;
4173
4045
 
4174
4046
 
4175
- const compile$K = async (schema, ast, parentSchema) => {
4176
- const items = await Schema$M.step("items", parentSchema);
4177
- const numberOfItems = Schema$M.typeOf(items, "array") ? Schema$M.length(items) : Number.MAX_SAFE_INTEGER;
4047
+ const compile$I = async (schema, ast, parentSchema) => {
4048
+ const items = await Schema$K.step("items", parentSchema);
4049
+ const numberOfItems = Schema$K.typeOf(items, "array") ? Schema$K.length(items) : Number.MAX_SAFE_INTEGER;
4178
4050
 
4179
4051
  return [numberOfItems, await Core$u.compileSchema(schema, ast)];
4180
4052
  };
4181
4053
 
4182
- const interpret$K = ([numberOfItems, additionalItems], instance, ast, dynamicAnchors) => {
4183
- if (!Instance$A.typeOf(instance, "array")) {
4054
+ const interpret$I = ([numberOfItems, additionalItems], instance, ast, dynamicAnchors) => {
4055
+ if (!Instance$y.typeOf(instance, "array")) {
4184
4056
  return true;
4185
4057
  }
4186
4058
 
4187
- return Instance$A.every((item, ndx) => ndx < numberOfItems || Core$u.interpretSchema(additionalItems, item, ast, dynamicAnchors), instance);
4059
+ return Instance$y.every((item, ndx) => ndx < numberOfItems || Core$u.interpretSchema(additionalItems, item, ast, dynamicAnchors), instance);
4188
4060
  };
4189
4061
 
4190
4062
  const collectEvaluatedItems$d = (keywordValue, instance, ast, dynamicAnchors) => {
4191
- return interpret$K(keywordValue, instance, ast, dynamicAnchors) && new Set(Instance$A.map((item, ndx) => ndx, instance));
4063
+ return interpret$I(keywordValue, instance, ast, dynamicAnchors) && new Set(Instance$y.map((item, ndx) => ndx, instance));
4192
4064
  };
4193
4065
 
4194
- var additionalItems6 = { compile: compile$K, interpret: interpret$K, collectEvaluatedItems: collectEvaluatedItems$d };
4066
+ var additionalItems6 = { compile: compile$I, interpret: interpret$I, collectEvaluatedItems: collectEvaluatedItems$d };
4195
4067
 
4196
- const { Core: Core$t, Schema: Schema$L, Instance: Instance$z } = lib$2;
4068
+ const { Core: Core$t, Schema: Schema$J, Instance: Instance$x } = lib$1;
4197
4069
 
4198
4070
 
4199
- const compile$J = async (schema, ast, parentSchema) => {
4200
- const properties = await Schema$L.step("properties", parentSchema);
4201
- const propertyNames = Schema$L.typeOf(properties, "object") ? Schema$L.keys(properties) : [];
4071
+ const compile$H = async (schema, ast, parentSchema) => {
4072
+ const properties = await Schema$J.step("properties", parentSchema);
4073
+ const propertyNames = Schema$J.typeOf(properties, "object") ? Schema$J.keys(properties) : [];
4202
4074
 
4203
- const patternProperties = await Schema$L.step("patternProperties", parentSchema);
4204
- const propertyNamePatterns = Schema$L.typeOf(patternProperties, "object") ? Schema$L.keys(patternProperties).map((pattern) => new RegExp(pattern)) : [];
4075
+ const patternProperties = await Schema$J.step("patternProperties", parentSchema);
4076
+ const propertyNamePatterns = Schema$J.typeOf(patternProperties, "object") ? Schema$J.keys(patternProperties).map((pattern) => new RegExp(pattern)) : [];
4205
4077
 
4206
- if (Schema$L.typeOf(schema, "boolean")) {
4207
- return [propertyNames, propertyNamePatterns, Schema$L.value(schema)];
4078
+ if (Schema$J.typeOf(schema, "boolean")) {
4079
+ return [propertyNames, propertyNamePatterns, Schema$J.value(schema)];
4208
4080
  } else {
4209
4081
  return [propertyNames, propertyNamePatterns, await Core$t.compileSchema(schema, ast)];
4210
4082
  }
4211
4083
  };
4212
4084
 
4213
- const interpret$J = ([propertyNames, propertyNamePatterns, additionalProperties], instance, ast, dynamicAnchors) => {
4214
- if (!Instance$z.typeOf(instance, "object")) {
4085
+ const interpret$H = ([propertyNames, propertyNamePatterns, additionalProperties], instance, ast, dynamicAnchors) => {
4086
+ if (!Instance$x.typeOf(instance, "object")) {
4215
4087
  return true;
4216
4088
  }
4217
4089
 
4218
- const properties = Instance$z.entries(instance)
4090
+ const properties = Instance$x.entries(instance)
4219
4091
  .filter(([propertyName]) => !propertyNames.includes(propertyName) && !propertyNamePatterns.some((pattern) => pattern.test(propertyName)));
4220
4092
 
4221
4093
  if (typeof additionalProperties === "string") {
@@ -4225,168 +4097,47 @@ const interpret$J = ([propertyNames, propertyNamePatterns, additionalProperties]
4225
4097
  }
4226
4098
  };
4227
4099
 
4228
- var additionalProperties = { compile: compile$J, interpret: interpret$J };
4100
+ var additionalProperties = { compile: compile$H, interpret: interpret$H };
4229
4101
 
4230
- const { Core: Core$s, Schema: Schema$K, Instance: Instance$y } = lib$2;
4102
+ const { Core: Core$s, Schema: Schema$I, Instance: Instance$w } = lib$1;
4231
4103
 
4232
4104
 
4233
- const compile$I = async (schema, ast, parentSchema) => {
4234
- const propertiesSchema = await Schema$K.step("properties", parentSchema);
4235
- const propertyNames = Schema$K.typeOf(propertiesSchema, "object") ? Schema$K.keys(propertiesSchema) : [];
4105
+ const compile$G = async (schema, ast, parentSchema) => {
4106
+ const propertiesSchema = await Schema$I.step("properties", parentSchema);
4107
+ const propertyNames = Schema$I.typeOf(propertiesSchema, "object") ? Schema$I.keys(propertiesSchema) : [];
4236
4108
 
4237
- const patternProperties = await Schema$K.step("patternProperties", parentSchema);
4238
- const propertyNamePatterns = Schema$K.typeOf(patternProperties, "object") ? Schema$K.keys(patternProperties).map((pattern) => new RegExp(pattern)) : [];
4109
+ const patternProperties = await Schema$I.step("patternProperties", parentSchema);
4110
+ const propertyNamePatterns = Schema$I.typeOf(patternProperties, "object") ? Schema$I.keys(patternProperties).map((pattern) => new RegExp(pattern)) : [];
4239
4111
 
4240
4112
  return [propertyNames, propertyNamePatterns, await Core$s.compileSchema(schema, ast)];
4241
4113
  };
4242
4114
 
4243
- const interpret$I = ([propertyNames, propertyNamePatterns, additionalProperties], instance, ast, dynamicAnchors) => {
4244
- if (!Instance$y.typeOf(instance, "object")) {
4115
+ const interpret$G = ([propertyNames, propertyNamePatterns, additionalProperties], instance, ast, dynamicAnchors) => {
4116
+ if (!Instance$w.typeOf(instance, "object")) {
4245
4117
  return true;
4246
4118
  }
4247
4119
 
4248
- return Instance$y.entries(instance)
4120
+ return Instance$w.entries(instance)
4249
4121
  .filter(([propertyName]) => !propertyNames.includes(propertyName) && !propertyNamePatterns.some((pattern) => pattern.test(propertyName)))
4250
4122
  .every(([, property]) => Core$s.interpretSchema(additionalProperties, property, ast, dynamicAnchors));
4251
4123
  };
4252
4124
 
4253
4125
  const collectEvaluatedProperties$c = (keywordValue, instance, ast, dynamicAnchors) => {
4254
- return interpret$I(keywordValue, instance, ast, dynamicAnchors) && [new RegExp("")];
4126
+ return interpret$G(keywordValue, instance, ast, dynamicAnchors) && [new RegExp("")];
4255
4127
  };
4256
4128
 
4257
- var additionalProperties6 = { compile: compile$I, interpret: interpret$I, collectEvaluatedProperties: collectEvaluatedProperties$c };
4129
+ var additionalProperties6 = { compile: compile$G, interpret: interpret$G, collectEvaluatedProperties: collectEvaluatedProperties$c };
4258
4130
 
4259
- var entries$1 = async (doc) => Object.entries(await doc);
4131
+ const { Core: Core$r, Schema: Schema$H } = lib$1;
4132
+ const Pact$8 = lib$3;
4260
4133
 
4261
- var justCurryIt = curry$6;
4262
4134
 
4263
- /*
4264
- function add(a, b, c) {
4265
- return a + b + c;
4266
- }
4267
- curry(add)(1)(2)(3); // 6
4268
- curry(add)(1)(2)(2); // 5
4269
- curry(add)(2)(4, 3); // 9
4270
-
4271
- function add(...args) {
4272
- return args.reduce((sum, n) => sum + n, 0)
4273
- }
4274
- var curryAdd4 = curry(add, 4)
4275
- curryAdd4(1)(2, 3)(4); // 10
4276
-
4277
- function converter(ratio, input) {
4278
- return (input*ratio).toFixed(1);
4279
- }
4280
- const curriedConverter = curry(converter)
4281
- const milesToKm = curriedConverter(1.62);
4282
- milesToKm(35); // 56.7
4283
- milesToKm(10); // 16.2
4284
- */
4285
-
4286
- function curry$6(fn, arity) {
4287
- return function curried() {
4288
- if (arity == null) {
4289
- arity = fn.length;
4290
- }
4291
- var args = [].slice.call(arguments);
4292
- if (args.length >= arity) {
4293
- return fn.apply(this, args);
4294
- } else {
4295
- return function() {
4296
- return curried.apply(this, args.concat([].slice.call(arguments)));
4297
- };
4298
- }
4299
- };
4300
- }
4301
-
4302
- const curry$5 = justCurryIt;
4303
-
4304
-
4305
- var map$2 = curry$5(async (fn, doc) => (await doc).map(fn));
4306
-
4307
- const curry$4 = justCurryIt;
4308
-
4309
-
4310
- var reduce$2 = curry$4(async (fn, acc, doc) => {
4311
- return (await doc).reduce(async (acc, item) => fn(await acc, item), acc);
4312
- });
4313
-
4314
- const curry$3 = justCurryIt;
4315
- const reduce$1 = reduce$2;
4316
-
4317
-
4318
- var filter = curry$3(async (fn, doc, options = {}) => {
4319
- return reduce$1(async (acc, item) => {
4320
- return (await fn(item)) ? acc.concat([item]) : acc;
4321
- }, [], doc, options);
4322
- });
4323
-
4324
- const curry$2 = justCurryIt;
4325
- const map$1 = map$2;
4326
-
4327
-
4328
- var some = curry$2(async (fn, doc) => {
4329
- const results = await map$1(fn, doc);
4330
- return (await Promise.all(results))
4331
- .some((a) => a);
4332
- });
4333
-
4334
- const curry$1 = justCurryIt;
4335
- const map = map$2;
4336
-
4337
-
4338
- var every = curry$1(async (fn, doc) => {
4339
- const results = await map(fn, doc);
4340
- return (await Promise.all(results))
4341
- .every((a) => a);
4342
- });
4343
-
4344
- const curry = justCurryIt;
4345
-
4346
-
4347
- var pipeline$1 = curry((fns, doc) => {
4348
- return fns.reduce(async (acc, fn) => fn(await acc), doc);
4349
- });
4350
-
4351
- var all = (doc) => Promise.all(doc);
4352
-
4353
- const pipeline = pipeline$1;
4354
- const entries = entries$1;
4355
- const reduce = reduce$2;
4356
-
4357
-
4358
- var allValues = (doc) => {
4359
- return pipeline([
4360
- entries,
4361
- reduce(async (acc, [propertyName, propertyValue]) => {
4362
- acc[propertyName] = await propertyValue;
4363
- return acc;
4364
- }, {})
4365
- ], doc);
4366
- };
4367
-
4368
- var lib$1 = {
4369
- entries: entries$1,
4370
- map: map$2,
4371
- filter: filter,
4372
- reduce: reduce$2,
4373
- some: some,
4374
- every: every,
4375
- pipeline: pipeline$1,
4376
- all: all,
4377
- allValues: allValues
4378
- };
4379
-
4380
- const { Core: Core$r, Schema: Schema$J } = lib$2;
4381
- const Pact$8 = lib$1;
4382
-
4383
-
4384
- const compile$H = (schema, ast) => Pact$8.pipeline([
4385
- Schema$J.map(async (itemSchema) => Core$r.compileSchema(await itemSchema, ast)),
4135
+ const compile$F = (schema, ast) => Pact$8.pipeline([
4136
+ Schema$H.map(async (itemSchema) => Core$r.compileSchema(await itemSchema, ast)),
4386
4137
  Pact$8.all
4387
4138
  ], schema);
4388
4139
 
4389
- const interpret$H = (allOf, instance, ast, dynamicAnchors) => {
4140
+ const interpret$F = (allOf, instance, ast, dynamicAnchors) => {
4390
4141
  return allOf.every((schemaUrl) => Core$r.interpretSchema(schemaUrl, instance, ast, dynamicAnchors));
4391
4142
  };
4392
4143
 
@@ -4404,18 +4155,18 @@ const collectEvaluatedItems$c = (allOf, instance, ast, dynamicAnchors) => {
4404
4155
  }, new Set());
4405
4156
  };
4406
4157
 
4407
- var allOf = { compile: compile$H, interpret: interpret$H, collectEvaluatedProperties: collectEvaluatedProperties$b, collectEvaluatedItems: collectEvaluatedItems$c };
4158
+ var allOf = { compile: compile$F, interpret: interpret$F, collectEvaluatedProperties: collectEvaluatedProperties$b, collectEvaluatedItems: collectEvaluatedItems$c };
4408
4159
 
4409
- const { Core: Core$q, Schema: Schema$I } = lib$2;
4410
- const Pact$7 = lib$1;
4160
+ const { Core: Core$q, Schema: Schema$G } = lib$1;
4161
+ const Pact$7 = lib$3;
4411
4162
 
4412
4163
 
4413
- const compile$G = (schema, ast) => Pact$7.pipeline([
4414
- Schema$I.map(async (itemSchema) => Core$q.compileSchema(await itemSchema, ast)),
4164
+ const compile$E = (schema, ast) => Pact$7.pipeline([
4165
+ Schema$G.map(async (itemSchema) => Core$q.compileSchema(await itemSchema, ast)),
4415
4166
  Pact$7.all
4416
4167
  ], schema);
4417
4168
 
4418
- const interpret$G = (anyOf, instance, ast, dynamicAnchors) => {
4169
+ const interpret$E = (anyOf, instance, ast, dynamicAnchors) => {
4419
4170
  const matches = anyOf.filter((schemaUrl) => Core$q.interpretSchema(schemaUrl, instance, ast, dynamicAnchors));
4420
4171
  return matches.length > 0;
4421
4172
  };
@@ -4434,7 +4185,7 @@ const collectEvaluatedItems$b = (anyOf, instance, ast, dynamicAnchors) => {
4434
4185
  }, false);
4435
4186
  };
4436
4187
 
4437
- var anyOf = { compile: compile$G, interpret: interpret$G, collectEvaluatedProperties: collectEvaluatedProperties$a, collectEvaluatedItems: collectEvaluatedItems$b };
4188
+ var anyOf = { compile: compile$E, interpret: interpret$E, collectEvaluatedProperties: collectEvaluatedProperties$a, collectEvaluatedItems: collectEvaluatedItems$b };
4438
4189
 
4439
4190
  var keyList = Object.keys;
4440
4191
  var native_stringify = JSON.stringify;
@@ -4495,92 +4246,92 @@ function stringify(val, allowUndefined) {
4495
4246
 
4496
4247
  var fastestStableStringify = function(obj) { return '' + stringify(obj, false); };
4497
4248
 
4498
- const { Schema: Schema$H, Instance: Instance$x } = lib$2;
4249
+ const { Schema: Schema$F, Instance: Instance$v } = lib$1;
4499
4250
  const jsonStringify$2 = fastestStableStringify;
4500
4251
 
4501
4252
 
4502
- const compile$F = (schema) => jsonStringify$2(Schema$H.value(schema));
4503
- const interpret$F = (const_, instance) => jsonStringify$2(Instance$x.value(instance)) === const_;
4253
+ const compile$D = (schema) => jsonStringify$2(Schema$F.value(schema));
4254
+ const interpret$D = (const_, instance) => jsonStringify$2(Instance$v.value(instance)) === const_;
4504
4255
 
4505
- var _const = { compile: compile$F, interpret: interpret$F };
4256
+ var _const = { compile: compile$D, interpret: interpret$D };
4506
4257
 
4507
- const { Core: Core$p, Instance: Instance$w } = lib$2;
4258
+ const { Core: Core$p, Instance: Instance$u } = lib$1;
4508
4259
 
4509
4260
 
4510
- const compile$E = (schema, ast) => Core$p.compileSchema(schema, ast);
4261
+ const compile$C = (schema, ast) => Core$p.compileSchema(schema, ast);
4511
4262
 
4512
- const interpret$E = (contains, instance, ast, dynamicAnchors) => {
4513
- return !Instance$w.typeOf(instance, "array") || Instance$w.some((item) => Core$p.interpretSchema(contains, item, ast, dynamicAnchors), instance);
4263
+ const interpret$C = (contains, instance, ast, dynamicAnchors) => {
4264
+ return !Instance$u.typeOf(instance, "array") || Instance$u.some((item) => Core$p.interpretSchema(contains, item, ast, dynamicAnchors), instance);
4514
4265
  };
4515
4266
 
4516
- var contains = { compile: compile$E, interpret: interpret$E };
4267
+ var contains = { compile: compile$C, interpret: interpret$C };
4517
4268
 
4518
- const { Core: Core$o, Schema: Schema$G, Instance: Instance$v } = lib$2;
4269
+ const { Core: Core$o, Schema: Schema$E, Instance: Instance$t } = lib$1;
4519
4270
 
4520
4271
 
4521
- const compile$D = async (schema, ast, parentSchema) => {
4272
+ const compile$B = async (schema, ast, parentSchema) => {
4522
4273
  const contains = await Core$o.compileSchema(schema, ast);
4523
4274
 
4524
- const minContainsSchema = await Schema$G.step("minContains", parentSchema);
4525
- const minContains = Schema$G.typeOf(minContainsSchema, "number") ? Schema$G.value(minContainsSchema) : 1;
4275
+ const minContainsSchema = await Schema$E.step("minContains", parentSchema);
4276
+ const minContains = Schema$E.typeOf(minContainsSchema, "number") ? Schema$E.value(minContainsSchema) : 1;
4526
4277
 
4527
- const maxContainsSchema = await Schema$G.step("maxContains", parentSchema);
4528
- const maxContains = Schema$G.typeOf(maxContainsSchema, "number") ? Schema$G.value(maxContainsSchema) : Number.MAX_SAFE_INTEGER;
4278
+ const maxContainsSchema = await Schema$E.step("maxContains", parentSchema);
4279
+ const maxContains = Schema$E.typeOf(maxContainsSchema, "number") ? Schema$E.value(maxContainsSchema) : Number.MAX_SAFE_INTEGER;
4529
4280
 
4530
4281
  return { contains, minContains, maxContains };
4531
4282
  };
4532
4283
 
4533
- const interpret$D = ({ contains, minContains, maxContains }, instance, ast, dynamicAnchors) => {
4534
- if (!Instance$v.typeOf(instance, "array")) {
4284
+ const interpret$B = ({ contains, minContains, maxContains }, instance, ast, dynamicAnchors) => {
4285
+ if (!Instance$t.typeOf(instance, "array")) {
4535
4286
  return true;
4536
4287
  }
4537
4288
 
4538
- const matches = Instance$v.reduce((matches, item) => {
4289
+ const matches = Instance$t.reduce((matches, item) => {
4539
4290
  return Core$o.interpretSchema(contains, item, ast, dynamicAnchors) ? matches + 1 : matches;
4540
4291
  }, 0, instance);
4541
4292
  return matches >= minContains && matches <= maxContains;
4542
4293
  };
4543
4294
 
4544
4295
  const collectEvaluatedItems$a = (keywordValue, instance, ast, dynamicAnchors) => {
4545
- return interpret$D(keywordValue, instance, ast, dynamicAnchors) && Instance$v.reduce((matchedIndexes, item, itemIndex) => {
4296
+ return interpret$B(keywordValue, instance, ast, dynamicAnchors) && Instance$t.reduce((matchedIndexes, item, itemIndex) => {
4546
4297
  return Core$o.interpretSchema(keywordValue.contains, item, ast, dynamicAnchors) ? matchedIndexes.add(itemIndex) : matchedIndexes;
4547
4298
  }, new Set(), instance);
4548
4299
  };
4549
4300
 
4550
- var containsMinContainsMaxContains = { compile: compile$D, interpret: interpret$D, collectEvaluatedItems: collectEvaluatedItems$a };
4301
+ var containsMinContainsMaxContains = { compile: compile$B, interpret: interpret$B, collectEvaluatedItems: collectEvaluatedItems$a };
4551
4302
 
4552
- const { Core: Core$n, Schema: Schema$F } = lib$2;
4553
- const Pact$6 = lib$1;
4303
+ const { Core: Core$n, Schema: Schema$D } = lib$1;
4304
+ const Pact$6 = lib$3;
4554
4305
 
4555
4306
 
4556
- const compile$C = async (schema, ast) => {
4307
+ const compile$A = async (schema, ast) => {
4557
4308
  await Pact$6.pipeline([
4558
- Schema$F.entries,
4309
+ Schema$D.entries,
4559
4310
  Pact$6.map(([, definitionSchema]) => Core$n.compileSchema(definitionSchema, ast)),
4560
4311
  Pact$6.all
4561
4312
  ], schema);
4562
4313
  };
4563
4314
 
4564
- const interpret$C = () => true;
4315
+ const interpret$A = () => true;
4565
4316
 
4566
- var definitions = { compile: compile$C, interpret: interpret$C };
4317
+ var definitions = { compile: compile$A, interpret: interpret$A };
4567
4318
 
4568
- const { Core: Core$m, Schema: Schema$E, Instance: Instance$u } = lib$2;
4569
- const Pact$5 = lib$1;
4319
+ const { Core: Core$m, Schema: Schema$C, Instance: Instance$s } = lib$1;
4320
+ const Pact$5 = lib$3;
4570
4321
 
4571
4322
 
4572
- const compile$B = (schema, ast) => Pact$5.pipeline([
4573
- Schema$E.entries,
4323
+ const compile$z = (schema, ast) => Pact$5.pipeline([
4324
+ Schema$C.entries,
4574
4325
  Pact$5.map(async ([key, dependency]) => {
4575
- return [key, Schema$E.typeOf(dependency, "array") ? Schema$E.value(dependency) : await Core$m.compileSchema(dependency, ast)];
4326
+ return [key, Schema$C.typeOf(dependency, "array") ? Schema$C.value(dependency) : await Core$m.compileSchema(dependency, ast)];
4576
4327
  }),
4577
4328
  Pact$5.all
4578
4329
  ], schema);
4579
4330
 
4580
- const interpret$B = (dependencies, instance, ast, dynamicAnchors) => {
4581
- const value = Instance$u.value(instance);
4331
+ const interpret$z = (dependencies, instance, ast, dynamicAnchors) => {
4332
+ const value = Instance$s.value(instance);
4582
4333
 
4583
- return !Instance$u.typeOf(instance, "object") || dependencies.every(([propertyName, dependency]) => {
4334
+ return !Instance$s.typeOf(instance, "object") || dependencies.every(([propertyName, dependency]) => {
4584
4335
  if (!(propertyName in value)) {
4585
4336
  return true;
4586
4337
  }
@@ -4593,49 +4344,49 @@ const interpret$B = (dependencies, instance, ast, dynamicAnchors) => {
4593
4344
  });
4594
4345
  };
4595
4346
 
4596
- var dependencies = { compile: compile$B, interpret: interpret$B };
4347
+ var dependencies = { compile: compile$z, interpret: interpret$z };
4597
4348
 
4598
- const { Schema: Schema$D, Instance: Instance$t } = lib$2;
4599
- const Pact$4 = lib$1;
4349
+ const { Schema: Schema$B, Instance: Instance$r } = lib$1;
4350
+ const Pact$4 = lib$3;
4600
4351
 
4601
4352
 
4602
- const compile$A = (schema) => Pact$4.pipeline([
4603
- Schema$D.entries,
4604
- Pact$4.map(([key, dependentRequired]) => [key, Schema$D.value(dependentRequired)]),
4353
+ const compile$y = (schema) => Pact$4.pipeline([
4354
+ Schema$B.entries,
4355
+ Pact$4.map(([key, dependentRequired]) => [key, Schema$B.value(dependentRequired)]),
4605
4356
  Pact$4.all
4606
4357
  ], schema);
4607
4358
 
4608
- const interpret$A = (dependentRequired, instance) => {
4609
- const value = Instance$t.value(instance);
4359
+ const interpret$y = (dependentRequired, instance) => {
4360
+ const value = Instance$r.value(instance);
4610
4361
 
4611
- return !Instance$t.typeOf(instance, "object") || dependentRequired.every(([propertyName, required]) => {
4362
+ return !Instance$r.typeOf(instance, "object") || dependentRequired.every(([propertyName, required]) => {
4612
4363
  return !(propertyName in value) || required.every((key) => key in value);
4613
4364
  });
4614
4365
  };
4615
4366
 
4616
- var dependentRequired = { compile: compile$A, interpret: interpret$A };
4367
+ var dependentRequired = { compile: compile$y, interpret: interpret$y };
4617
4368
 
4618
- const { Core: Core$l, Schema: Schema$C, Instance: Instance$s } = lib$2;
4619
- const Pact$3 = lib$1;
4369
+ const { Core: Core$l, Schema: Schema$A, Instance: Instance$q } = lib$1;
4370
+ const Pact$3 = lib$3;
4620
4371
 
4621
4372
 
4622
- const compile$z = (schema, ast) => Pact$3.pipeline([
4623
- Schema$C.entries,
4373
+ const compile$x = (schema, ast) => Pact$3.pipeline([
4374
+ Schema$A.entries,
4624
4375
  Pact$3.map(async ([key, dependentSchema]) => [key, await Core$l.compileSchema(dependentSchema, ast)]),
4625
4376
  Pact$3.all
4626
4377
  ], schema);
4627
4378
 
4628
- const interpret$z = (dependentSchemas, instance, ast, dynamicAnchors) => {
4629
- const value = Instance$s.value(instance);
4379
+ const interpret$x = (dependentSchemas, instance, ast, dynamicAnchors) => {
4380
+ const value = Instance$q.value(instance);
4630
4381
 
4631
- return !Instance$s.typeOf(instance, "object") || dependentSchemas.every(([propertyName, dependentSchema]) => {
4382
+ return !Instance$q.typeOf(instance, "object") || dependentSchemas.every(([propertyName, dependentSchema]) => {
4632
4383
  return !(propertyName in value) || Core$l.interpretSchema(dependentSchema, instance, ast, dynamicAnchors);
4633
4384
  });
4634
4385
  };
4635
4386
 
4636
4387
  const collectEvaluatedProperties$9 = (dependentSchemas, instance, ast, dynamicAnchors) => {
4637
4388
  return dependentSchemas.reduce((acc, [propertyName, dependentSchema]) => {
4638
- if (!acc || !Instance$s.has(propertyName, instance)) {
4389
+ if (!acc || !Instance$q.has(propertyName, instance)) {
4639
4390
  return acc;
4640
4391
  }
4641
4392
 
@@ -4644,39 +4395,39 @@ const collectEvaluatedProperties$9 = (dependentSchemas, instance, ast, dynamicAn
4644
4395
  }, []);
4645
4396
  };
4646
4397
 
4647
- var dependentSchemas = { compile: compile$z, interpret: interpret$z, collectEvaluatedProperties: collectEvaluatedProperties$9 };
4398
+ var dependentSchemas = { compile: compile$x, interpret: interpret$x, collectEvaluatedProperties: collectEvaluatedProperties$9 };
4648
4399
 
4649
- const { Schema: Schema$B, Instance: Instance$r } = lib$2;
4400
+ const { Schema: Schema$z, Instance: Instance$p } = lib$1;
4650
4401
  const jsonStringify$1 = fastestStableStringify;
4651
4402
 
4652
4403
 
4653
- const compile$y = (schema) => Schema$B.value(schema).map(jsonStringify$1);
4654
- const interpret$y = (enum_, instance) => enum_.some((enumValue) => jsonStringify$1(Instance$r.value(instance)) === enumValue);
4404
+ const compile$w = (schema) => Schema$z.value(schema).map(jsonStringify$1);
4405
+ const interpret$w = (enum_, instance) => enum_.some((enumValue) => jsonStringify$1(Instance$p.value(instance)) === enumValue);
4655
4406
 
4656
- var _enum = { compile: compile$y, interpret: interpret$y };
4407
+ var _enum = { compile: compile$w, interpret: interpret$w };
4657
4408
 
4658
- const { Schema: Schema$A, Instance: Instance$q } = lib$2;
4409
+ const { Schema: Schema$y, Instance: Instance$o } = lib$1;
4659
4410
 
4660
4411
 
4661
- const compile$x = async (schema) => Schema$A.value(schema);
4662
- const interpret$x = (exclusiveMaximum, instance) => !Instance$q.typeOf(instance, "number") || Instance$q.value(instance) < exclusiveMaximum;
4412
+ const compile$v = async (schema) => Schema$y.value(schema);
4413
+ const interpret$v = (exclusiveMaximum, instance) => !Instance$o.typeOf(instance, "number") || Instance$o.value(instance) < exclusiveMaximum;
4663
4414
 
4664
- var exclusiveMaximum = { compile: compile$x, interpret: interpret$x };
4415
+ var exclusiveMaximum = { compile: compile$v, interpret: interpret$v };
4665
4416
 
4666
- const { Schema: Schema$z, Instance: Instance$p } = lib$2;
4417
+ const { Schema: Schema$x, Instance: Instance$n } = lib$1;
4667
4418
 
4668
4419
 
4669
- const compile$w = async (schema) => Schema$z.value(schema);
4670
- const interpret$w = (exclusiveMinimum, instance) => !Instance$p.typeOf(instance, "number") || Instance$p.value(instance) > exclusiveMinimum;
4420
+ const compile$u = async (schema) => Schema$x.value(schema);
4421
+ const interpret$u = (exclusiveMinimum, instance) => !Instance$n.typeOf(instance, "number") || Instance$n.value(instance) > exclusiveMinimum;
4671
4422
 
4672
- var exclusiveMinimum = { compile: compile$w, interpret: interpret$w };
4423
+ var exclusiveMinimum = { compile: compile$u, interpret: interpret$u };
4673
4424
 
4674
- const { Core: Core$k } = lib$2;
4425
+ const { Core: Core$k } = lib$1;
4675
4426
 
4676
4427
 
4677
- const compile$v = (schema, ast) => Core$k.compileSchema(schema, ast);
4428
+ const compile$t = (schema, ast) => Core$k.compileSchema(schema, ast);
4678
4429
 
4679
- const interpret$v = (ifSchema, instance, ast, dynamicAnchors) => {
4430
+ const interpret$t = (ifSchema, instance, ast, dynamicAnchors) => {
4680
4431
  Core$k.interpretSchema(ifSchema, instance, ast, dynamicAnchors);
4681
4432
  return true;
4682
4433
  };
@@ -4689,21 +4440,21 @@ const collectEvaluatedItems$9 = (ifSchema, instance, ast, dynamicAnchors) => {
4689
4440
  return Core$k.collectEvaluatedItems(ifSchema, instance, ast, dynamicAnchors) || new Set();
4690
4441
  };
4691
4442
 
4692
- var _if = { compile: compile$v, interpret: interpret$v, collectEvaluatedProperties: collectEvaluatedProperties$8, collectEvaluatedItems: collectEvaluatedItems$9 };
4443
+ var _if = { compile: compile$t, interpret: interpret$t, collectEvaluatedProperties: collectEvaluatedProperties$8, collectEvaluatedItems: collectEvaluatedItems$9 };
4693
4444
 
4694
- const { Core: Core$j, Schema: Schema$y } = lib$2;
4445
+ const { Core: Core$j, Schema: Schema$w } = lib$1;
4695
4446
 
4696
4447
 
4697
- const compile$u = async (schema, ast, parentSchema) => {
4698
- if (Schema$y.has("if", parentSchema)) {
4699
- const ifSchema = await Schema$y.step("if", parentSchema);
4448
+ const compile$s = async (schema, ast, parentSchema) => {
4449
+ if (Schema$w.has("if", parentSchema)) {
4450
+ const ifSchema = await Schema$w.step("if", parentSchema);
4700
4451
  return [await Core$j.compileSchema(ifSchema, ast), await Core$j.compileSchema(schema, ast)];
4701
4452
  } else {
4702
4453
  return [];
4703
4454
  }
4704
4455
  };
4705
4456
 
4706
- const interpret$u = ([guard, block], instance, ast, dynamicAnchors) => {
4457
+ const interpret$s = ([guard, block], instance, ast, dynamicAnchors) => {
4707
4458
  return guard === undefined || !quietInterpretSchema$1(guard, instance, ast, dynamicAnchors) || Core$j.interpretSchema(block, instance, ast, dynamicAnchors);
4708
4459
  };
4709
4460
 
@@ -4733,21 +4484,21 @@ const collectEvaluatedItems$8 = ([guard, block], instance, ast, dynamicAnchors)
4733
4484
  return Core$j.collectEvaluatedItems(block, instance, ast, dynamicAnchors);
4734
4485
  };
4735
4486
 
4736
- var then = { compile: compile$u, interpret: interpret$u, collectEvaluatedProperties: collectEvaluatedProperties$7, collectEvaluatedItems: collectEvaluatedItems$8 };
4487
+ var then = { compile: compile$s, interpret: interpret$s, collectEvaluatedProperties: collectEvaluatedProperties$7, collectEvaluatedItems: collectEvaluatedItems$8 };
4737
4488
 
4738
- const { Core: Core$i, Schema: Schema$x } = lib$2;
4489
+ const { Core: Core$i, Schema: Schema$v } = lib$1;
4739
4490
 
4740
4491
 
4741
- const compile$t = async (schema, ast, parentSchema) => {
4742
- if (Schema$x.has("if", parentSchema)) {
4743
- const ifSchema = await Schema$x.step("if", parentSchema);
4492
+ const compile$r = async (schema, ast, parentSchema) => {
4493
+ if (Schema$v.has("if", parentSchema)) {
4494
+ const ifSchema = await Schema$v.step("if", parentSchema);
4744
4495
  return [await Core$i.compileSchema(ifSchema, ast), await Core$i.compileSchema(schema, ast)];
4745
4496
  } else {
4746
4497
  return [];
4747
4498
  }
4748
4499
  };
4749
4500
 
4750
- const interpret$t = ([guard, block], instance, ast, dynamicAnchors) => {
4501
+ const interpret$r = ([guard, block], instance, ast, dynamicAnchors) => {
4751
4502
  return guard === undefined || quietInterpretSchema(guard, instance, ast, dynamicAnchors) || Core$i.interpretSchema(block, instance, ast, dynamicAnchors);
4752
4503
  };
4753
4504
 
@@ -4777,150 +4528,134 @@ const collectEvaluatedItems$7 = ([guard, block], instance, ast, dynamicAnchors)
4777
4528
  return Core$i.collectEvaluatedItems(block, instance, ast, dynamicAnchors);
4778
4529
  };
4779
4530
 
4780
- var _else = { compile: compile$t, interpret: interpret$t, collectEvaluatedProperties: collectEvaluatedProperties$6, collectEvaluatedItems: collectEvaluatedItems$7 };
4531
+ var _else = { compile: compile$r, interpret: interpret$r, collectEvaluatedProperties: collectEvaluatedProperties$6, collectEvaluatedItems: collectEvaluatedItems$7 };
4781
4532
 
4782
- const { Core: Core$h, Schema: Schema$w, Instance: Instance$o } = lib$2;
4533
+ const { Core: Core$h, Schema: Schema$u, Instance: Instance$m } = lib$1;
4783
4534
 
4784
4535
 
4785
- const compile$s = async (schema, ast) => {
4786
- if (Schema$w.typeOf(schema, "array")) {
4787
- const tupleItems = await Schema$w.map((itemSchema) => Core$h.compileSchema(itemSchema, ast), schema);
4536
+ const compile$q = async (schema, ast) => {
4537
+ if (Schema$u.typeOf(schema, "array")) {
4538
+ const tupleItems = await Schema$u.map((itemSchema) => Core$h.compileSchema(itemSchema, ast), schema);
4788
4539
  return Promise.all(tupleItems);
4789
4540
  } else {
4790
4541
  return Core$h.compileSchema(schema, ast);
4791
4542
  }
4792
4543
  };
4793
4544
 
4794
- const interpret$s = (items, instance, ast, dynamicAnchors) => {
4795
- if (!Instance$o.typeOf(instance, "array")) {
4545
+ const interpret$q = (items, instance, ast, dynamicAnchors) => {
4546
+ if (!Instance$m.typeOf(instance, "array")) {
4796
4547
  return true;
4797
4548
  }
4798
4549
 
4799
4550
  if (typeof items === "string") {
4800
- return Instance$o.every((itemValue) => Core$h.interpretSchema(items, itemValue, ast, dynamicAnchors), instance);
4551
+ return Instance$m.every((itemValue) => Core$h.interpretSchema(items, itemValue, ast, dynamicAnchors), instance);
4801
4552
  } else {
4802
- return Instance$o.every((item, ndx) => !(ndx in items) || Core$h.interpretSchema(items[ndx], item, ast, dynamicAnchors), instance);
4553
+ return Instance$m.every((item, ndx) => !(ndx in items) || Core$h.interpretSchema(items[ndx], item, ast, dynamicAnchors), instance);
4803
4554
  }
4804
4555
  };
4805
4556
 
4806
4557
  const collectEvaluatedItems$6 = (items, instance, ast, dynamicAnchors) => {
4807
- return interpret$s(items, instance, ast, dynamicAnchors) && (typeof items === "string"
4808
- ? new Set(Instance$o.map((item, itemIndex) => itemIndex, instance))
4558
+ return interpret$q(items, instance, ast, dynamicAnchors) && (typeof items === "string"
4559
+ ? new Set(Instance$m.map((item, itemIndex) => itemIndex, instance))
4809
4560
  : new Set(items.map((item, itemIndex) => itemIndex)));
4810
4561
  };
4811
4562
 
4812
- var items = { compile: compile$s, interpret: interpret$s, collectEvaluatedItems: collectEvaluatedItems$6 };
4563
+ var items = { compile: compile$q, interpret: interpret$q, collectEvaluatedItems: collectEvaluatedItems$6 };
4813
4564
 
4814
- const { Core: Core$g, Schema: Schema$v, Instance: Instance$n } = lib$2;
4565
+ const { Core: Core$g, Schema: Schema$t, Instance: Instance$l } = lib$1;
4815
4566
 
4816
4567
 
4817
- const compile$r = async (schema, ast, parentSchema) => {
4818
- const items = await Schema$v.step("prefixItems", parentSchema);
4819
- const numberOfPrefixItems = Schema$v.typeOf(items, "array") ? Schema$v.length(items) : 0;
4568
+ const compile$p = async (schema, ast, parentSchema) => {
4569
+ const items = await Schema$t.step("prefixItems", parentSchema);
4570
+ const numberOfPrefixItems = Schema$t.typeOf(items, "array") ? Schema$t.length(items) : 0;
4820
4571
 
4821
4572
  return [numberOfPrefixItems, await Core$g.compileSchema(schema, ast)];
4822
4573
  };
4823
4574
 
4824
- const interpret$r = ([numberOfPrefixItems, items], instance, ast, dynamicAnchors) => {
4825
- if (!Instance$n.typeOf(instance, "array")) {
4575
+ const interpret$p = ([numberOfPrefixItems, items], instance, ast, dynamicAnchors) => {
4576
+ if (!Instance$l.typeOf(instance, "array")) {
4826
4577
  return true;
4827
4578
  }
4828
4579
 
4829
- return Instance$n.every((item, ndx) => ndx < numberOfPrefixItems || Core$g.interpretSchema(items, item, ast, dynamicAnchors), instance);
4580
+ return Instance$l.every((item, ndx) => ndx < numberOfPrefixItems || Core$g.interpretSchema(items, item, ast, dynamicAnchors), instance);
4830
4581
  };
4831
4582
 
4832
4583
  const collectEvaluatedItems$5 = (keywordValue, instance, ast, dynamicAnchors) => {
4833
- return interpret$r(keywordValue, instance, ast, dynamicAnchors) && new Set(Instance$n.map((item, ndx) => ndx, instance));
4584
+ return interpret$p(keywordValue, instance, ast, dynamicAnchors) && new Set(Instance$l.map((item, ndx) => ndx, instance));
4834
4585
  };
4835
4586
 
4836
- var items202012 = { compile: compile$r, interpret: interpret$r, collectEvaluatedItems: collectEvaluatedItems$5 };
4837
-
4838
- const { Schema: Schema$u, Instance: Instance$m } = lib$2;
4839
-
4840
-
4841
- const compile$q = (schema) => Schema$u.value(schema);
4842
- const interpret$q = (maxItems, instance) => !Instance$m.typeOf(instance, "array") || Instance$m.length(instance) <= maxItems;
4587
+ var items202012 = { compile: compile$p, interpret: interpret$p, collectEvaluatedItems: collectEvaluatedItems$5 };
4843
4588
 
4844
- var maxItems = { compile: compile$q, interpret: interpret$q };
4589
+ const { Schema: Schema$s, Instance: Instance$k } = lib$1;
4845
4590
 
4846
- const { Schema: Schema$t, Instance: Instance$l } = lib$2;
4847
4591
 
4592
+ const compile$o = (schema) => Schema$s.value(schema);
4593
+ const interpret$o = (maxItems, instance) => !Instance$k.typeOf(instance, "array") || Instance$k.length(instance) <= maxItems;
4848
4594
 
4849
- const compile$p = (schema) => Schema$t.value(schema);
4850
- const interpret$p = (maxLength, instance) => !Instance$l.typeOf(instance, "string") || Instance$l.length(instance) <= maxLength;
4851
-
4852
- var maxLength = { compile: compile$p, interpret: interpret$p };
4595
+ var maxItems = { compile: compile$o, interpret: interpret$o };
4853
4596
 
4854
- const { Schema: Schema$s, Instance: Instance$k } = lib$2;
4597
+ const { Schema: Schema$r, Instance: Instance$j } = lib$1;
4855
4598
 
4856
4599
 
4857
- const compile$o = (schema) => Schema$s.value(schema);
4858
- const interpret$o = (maxLength, instance) => !Instance$k.typeOf(instance, "string") || [...Instance$k.value(instance)].length <= maxLength;
4600
+ const compile$n = (schema) => Schema$r.value(schema);
4601
+ const interpret$n = (maxLength, instance) => !Instance$j.typeOf(instance, "string") || [...Instance$j.value(instance)].length <= maxLength;
4859
4602
 
4860
- var maxLength6 = { compile: compile$o, interpret: interpret$o };
4603
+ var maxLength = { compile: compile$n, interpret: interpret$n };
4861
4604
 
4862
- const { Schema: Schema$r, Instance: Instance$j } = lib$2;
4605
+ const { Schema: Schema$q, Instance: Instance$i } = lib$1;
4863
4606
 
4864
4607
 
4865
- const compile$n = (schema) => Schema$r.value(schema);
4866
- const interpret$n = (maxProperties, instance) => !Instance$j.typeOf(instance, "object") || Instance$j.keys(instance).length <= maxProperties;
4608
+ const compile$m = (schema) => Schema$q.value(schema);
4609
+ const interpret$m = (maxProperties, instance) => !Instance$i.typeOf(instance, "object") || Instance$i.keys(instance).length <= maxProperties;
4867
4610
 
4868
- var maxProperties = { compile: compile$n, interpret: interpret$n };
4611
+ var maxProperties = { compile: compile$m, interpret: interpret$m };
4869
4612
 
4870
- const { Schema: Schema$q, Instance: Instance$i } = lib$2;
4613
+ const { Schema: Schema$p, Instance: Instance$h } = lib$1;
4871
4614
 
4872
4615
 
4873
- const compile$m = async (schema, ast, parentSchema) => {
4874
- const exclusiveMaximum = await Schema$q.step("exclusiveMaximum", parentSchema);
4875
- const isExclusive = Schema$q.value(exclusiveMaximum);
4616
+ const compile$l = async (schema, ast, parentSchema) => {
4617
+ const exclusiveMaximum = await Schema$p.step("exclusiveMaximum", parentSchema);
4618
+ const isExclusive = Schema$p.value(exclusiveMaximum);
4876
4619
 
4877
- return [Schema$q.value(schema), isExclusive];
4620
+ return [Schema$p.value(schema), isExclusive];
4878
4621
  };
4879
4622
 
4880
- const interpret$m = ([maximum, isExclusive], instance) => {
4881
- if (!Instance$i.typeOf(instance, "number")) {
4623
+ const interpret$l = ([maximum, isExclusive], instance) => {
4624
+ if (!Instance$h.typeOf(instance, "number")) {
4882
4625
  return true;
4883
4626
  }
4884
4627
 
4885
- const value = Instance$i.value(instance);
4628
+ const value = Instance$h.value(instance);
4886
4629
  return isExclusive ? value < maximum : value <= maximum;
4887
4630
  };
4888
4631
 
4889
- var maximumExclusiveMaximum = { compile: compile$m, interpret: interpret$m };
4890
-
4891
- const { Schema: Schema$p, Instance: Instance$h } = lib$2;
4892
-
4893
-
4894
- const compile$l = async (schema) => Schema$p.value(schema);
4895
- const interpret$l = (maximum, instance) => !Instance$h.typeOf(instance, "number") || Instance$h.value(instance) <= maximum;
4896
-
4897
- var maximum = { compile: compile$l, interpret: interpret$l };
4632
+ var maximumExclusiveMaximum = { compile: compile$l, interpret: interpret$l };
4898
4633
 
4899
- const { Schema: Schema$o, Instance: Instance$g } = lib$2;
4634
+ const { Schema: Schema$o, Instance: Instance$g } = lib$1;
4900
4635
 
4901
4636
 
4902
- const compile$k = (schema) => Schema$o.value(schema);
4903
- const interpret$k = (minItems, instance) => !Instance$g.typeOf(instance, "array") || Instance$g.length(instance) >= minItems;
4637
+ const compile$k = async (schema) => Schema$o.value(schema);
4638
+ const interpret$k = (maximum, instance) => !Instance$g.typeOf(instance, "number") || Instance$g.value(instance) <= maximum;
4904
4639
 
4905
- var minItems = { compile: compile$k, interpret: interpret$k };
4640
+ var maximum = { compile: compile$k, interpret: interpret$k };
4906
4641
 
4907
- const { Schema: Schema$n, Instance: Instance$f } = lib$2;
4642
+ const { Schema: Schema$n, Instance: Instance$f } = lib$1;
4908
4643
 
4909
4644
 
4910
4645
  const compile$j = (schema) => Schema$n.value(schema);
4911
- const interpret$j = (minLength, instance) => !Instance$f.typeOf(instance, "string") || Instance$f.length(instance) >= minLength;
4646
+ const interpret$j = (minItems, instance) => !Instance$f.typeOf(instance, "array") || Instance$f.length(instance) >= minItems;
4912
4647
 
4913
- var minLength = { compile: compile$j, interpret: interpret$j };
4648
+ var minItems = { compile: compile$j, interpret: interpret$j };
4914
4649
 
4915
- const { Schema: Schema$m, Instance: Instance$e } = lib$2;
4650
+ const { Schema: Schema$m, Instance: Instance$e } = lib$1;
4916
4651
 
4917
4652
 
4918
4653
  const compile$i = (schema) => Schema$m.value(schema);
4919
4654
  const interpret$i = (minLength, instance) => !Instance$e.typeOf(instance, "string") || [...Instance$e.value(instance)].length >= minLength;
4920
4655
 
4921
- var minLength6 = { compile: compile$i, interpret: interpret$i };
4656
+ var minLength = { compile: compile$i, interpret: interpret$i };
4922
4657
 
4923
- const { Schema: Schema$l, Instance: Instance$d } = lib$2;
4658
+ const { Schema: Schema$l, Instance: Instance$d } = lib$1;
4924
4659
 
4925
4660
 
4926
4661
  const compile$h = (schema) => Schema$l.value(schema);
@@ -4928,7 +4663,7 @@ const interpret$h = (minProperties, instance) => !Instance$d.typeOf(instance, "o
4928
4663
 
4929
4664
  var minProperties = { compile: compile$h, interpret: interpret$h };
4930
4665
 
4931
- const { Schema: Schema$k, Instance: Instance$c } = lib$2;
4666
+ const { Schema: Schema$k, Instance: Instance$c } = lib$1;
4932
4667
 
4933
4668
 
4934
4669
  const compile$g = async (schema, ast, parentSchema) => {
@@ -4949,7 +4684,7 @@ const interpret$g = ([minimum, isExclusive], instance) => {
4949
4684
 
4950
4685
  var minimumExclusiveMinimum = { compile: compile$g, interpret: interpret$g };
4951
4686
 
4952
- const { Schema: Schema$j, Instance: Instance$b } = lib$2;
4687
+ const { Schema: Schema$j, Instance: Instance$b } = lib$1;
4953
4688
 
4954
4689
 
4955
4690
  const compile$f = async (schema) => Schema$j.value(schema);
@@ -4957,7 +4692,7 @@ const interpret$f = (minimum, instance) => !Instance$b.typeOf(instance, "number"
4957
4692
 
4958
4693
  var minimum = { compile: compile$f, interpret: interpret$f };
4959
4694
 
4960
- const { Schema: Schema$i, Instance: Instance$a } = lib$2;
4695
+ const { Schema: Schema$i, Instance: Instance$a } = lib$1;
4961
4696
 
4962
4697
 
4963
4698
  const compile$e = (schema) => Schema$i.value(schema);
@@ -4975,7 +4710,7 @@ const numberEqual = (a, b) => Math.abs(a - b) < 1.19209290e-7;
4975
4710
 
4976
4711
  var multipleOf = { compile: compile$e, interpret: interpret$e };
4977
4712
 
4978
- const { Core: Core$f } = lib$2;
4713
+ const { Core: Core$f } = lib$1;
4979
4714
 
4980
4715
 
4981
4716
  const compile$d = Core$f.compileSchema;
@@ -4983,7 +4718,7 @@ const interpret$d = (not, instance, ast, dynamicAnchors) => !Core$f.interpretSch
4983
4718
 
4984
4719
  var not = { compile: compile$d, interpret: interpret$d };
4985
4720
 
4986
- const { Core: Core$e, Schema: Schema$h } = lib$2;
4721
+ const { Core: Core$e, Schema: Schema$h } = lib$1;
4987
4722
 
4988
4723
 
4989
4724
  const compile$c = async (schema, ast) => {
@@ -5032,7 +4767,7 @@ const collectEvaluatedItems$4 = (oneOf, instance, ast, dynamicAnchors) => {
5032
4767
 
5033
4768
  var oneOf = { compile: compile$c, interpret: interpret$c, collectEvaluatedProperties: collectEvaluatedProperties$5, collectEvaluatedItems: collectEvaluatedItems$4 };
5034
4769
 
5035
- const { Schema: Schema$g, Instance: Instance$9 } = lib$2;
4770
+ const { Schema: Schema$g, Instance: Instance$9 } = lib$1;
5036
4771
 
5037
4772
 
5038
4773
  const compile$b = (schema) => new RegExp(Schema$g.value(schema), "u");
@@ -5040,8 +4775,8 @@ const interpret$b = (pattern, instance) => !Instance$9.typeOf(instance, "string"
5040
4775
 
5041
4776
  var pattern = { compile: compile$b, interpret: interpret$b };
5042
4777
 
5043
- const { Core: Core$d, Schema: Schema$f, Instance: Instance$8 } = lib$2;
5044
- const Pact$2 = lib$1;
4778
+ const { Core: Core$d, Schema: Schema$f, Instance: Instance$8 } = lib$1;
4779
+ const Pact$2 = lib$3;
5045
4780
 
5046
4781
 
5047
4782
  const compile$a = (schema, ast) => Pact$2.pipeline([
@@ -5078,8 +4813,8 @@ const splitUrl$1 = (url) => {
5078
4813
 
5079
4814
  var common = { isObject, escapeRegExp: escapeRegExp$1, splitUrl: splitUrl$1 };
5080
4815
 
5081
- const { Core: Core$c, Schema: Schema$e, Instance: Instance$7 } = lib$2;
5082
- const Pact$1 = lib$1;
4816
+ const { Core: Core$c, Schema: Schema$e, Instance: Instance$7 } = lib$1;
4817
+ const Pact$1 = lib$3;
5083
4818
  const { escapeRegExp } = common;
5084
4819
 
5085
4820
 
@@ -5104,7 +4839,7 @@ const collectEvaluatedProperties$3 = (properties, instance, ast, dynamicAnchors)
5104
4839
 
5105
4840
  var properties = { compile: compile$9, interpret: interpret$9, collectEvaluatedProperties: collectEvaluatedProperties$3 };
5106
4841
 
5107
- const { Core: Core$b, Instance: Instance$6 } = lib$2;
4842
+ const { Core: Core$b, Instance: Instance$6 } = lib$1;
5108
4843
 
5109
4844
 
5110
4845
  const compile$8 = (schema, ast) => Core$b.compileSchema(schema, ast);
@@ -5116,7 +4851,7 @@ const interpret$8 = (propertyNames, instance, ast, dynamicAnchors) => {
5116
4851
 
5117
4852
  var propertyNames = { compile: compile$8, interpret: interpret$8 };
5118
4853
 
5119
- const { Core: Core$a, Schema: Schema$d } = lib$2;
4854
+ const { Core: Core$a, Schema: Schema$d } = lib$1;
5120
4855
  const { splitUrl } = common;
5121
4856
 
5122
4857
 
@@ -5141,7 +4876,7 @@ const collectEvaluatedItems$3 = Core$a.collectEvaluatedItems;
5141
4876
 
5142
4877
  var dynamicRef = { compile: compile$7, interpret: interpret$7, collectEvaluatedProperties: collectEvaluatedProperties$2, collectEvaluatedItems: collectEvaluatedItems$3 };
5143
4878
 
5144
- const { Core: Core$9, Schema: Schema$c } = lib$2;
4879
+ const { Core: Core$9, Schema: Schema$c } = lib$1;
5145
4880
 
5146
4881
 
5147
4882
  const compile$6 = async (ref, ast) => {
@@ -5155,7 +4890,7 @@ const collectEvaluatedItems$2 = Core$9.collectEvaluatedItems;
5155
4890
 
5156
4891
  var ref = { compile: compile$6, interpret: interpret$6, collectEvaluatedProperties: collectEvaluatedProperties$1, collectEvaluatedItems: collectEvaluatedItems$2 };
5157
4892
 
5158
- const { Schema: Schema$b, Instance: Instance$5 } = lib$2;
4893
+ const { Schema: Schema$b, Instance: Instance$5 } = lib$1;
5159
4894
 
5160
4895
 
5161
4896
  const compile$5 = (schema) => Schema$b.value(schema);
@@ -5166,8 +4901,8 @@ const interpret$5 = (required, instance) => {
5166
4901
 
5167
4902
  var required = { compile: compile$5, interpret: interpret$5 };
5168
4903
 
5169
- const { Core: Core$8, Schema: Schema$a, Instance: Instance$4 } = lib$2;
5170
- const Pact = lib$1;
4904
+ const { Core: Core$8, Schema: Schema$a, Instance: Instance$4 } = lib$1;
4905
+ const Pact = lib$3;
5171
4906
 
5172
4907
 
5173
4908
  const compile$4 = (schema, ast) => {
@@ -5191,7 +4926,7 @@ const collectEvaluatedItems$1 = (items, instance, ast, dynamicAnchors) => {
5191
4926
 
5192
4927
  var tupleItems = { compile: compile$4, interpret: interpret$4, collectEvaluatedItems: collectEvaluatedItems$1 };
5193
4928
 
5194
- const { Schema: Schema$9, Instance: Instance$3 } = lib$2;
4929
+ const { Schema: Schema$9, Instance: Instance$3 } = lib$1;
5195
4930
 
5196
4931
 
5197
4932
  const compile$3 = (schema) => Schema$9.value(schema);
@@ -5199,7 +4934,7 @@ const interpret$3 = (type, instance) => typeof type === "string" ? Instance$3.ty
5199
4934
 
5200
4935
  var type = { compile: compile$3, interpret: interpret$3 };
5201
4936
 
5202
- const { Core: Core$7, Schema: Schema$8, Instance: Instance$2 } = lib$2;
4937
+ const { Core: Core$7, Schema: Schema$8, Instance: Instance$2 } = lib$1;
5203
4938
 
5204
4939
 
5205
4940
  const compile$2 = async (schema, ast, parentSchema) => {
@@ -5223,7 +4958,7 @@ const collectEvaluatedItems = (keywordValue, instance, ast, dynamicAnchors) => {
5223
4958
 
5224
4959
  var unevaluatedItems = { compile: compile$2, interpret: interpret$2, collectEvaluatedItems };
5225
4960
 
5226
- const { Core: Core$6, Schema: Schema$7, Instance: Instance$1 } = lib$2;
4961
+ const { Core: Core$6, Schema: Schema$7, Instance: Instance$1 } = lib$1;
5227
4962
 
5228
4963
 
5229
4964
  const compile$1 = async (schema, ast, parentSchema) => {
@@ -5248,7 +4983,7 @@ const collectEvaluatedProperties = (keywordValue, instance, ast, dynamicAnchors)
5248
4983
 
5249
4984
  var unevaluatedProperties = { compile: compile$1, interpret: interpret$1, collectEvaluatedProperties };
5250
4985
 
5251
- const { Schema: Schema$6, Instance } = lib$2;
4986
+ const { Schema: Schema$6, Instance } = lib$1;
5252
4987
  const jsonStringify = fastestStableStringify;
5253
4988
 
5254
4989
 
@@ -5265,7 +5000,7 @@ const interpret = (uniqueItems, instance) => {
5265
5000
 
5266
5001
  var uniqueItems = { compile, interpret };
5267
5002
 
5268
- const { Keywords: Keywords$1 } = lib$2;
5003
+ const { Keywords: Keywords$1 } = lib$1;
5269
5004
 
5270
5005
 
5271
5006
  var keywords$5 = {
@@ -5292,14 +5027,12 @@ var keywords$5 = {
5292
5027
  items202012: items202012,
5293
5028
  maxItems: maxItems,
5294
5029
  maxLength: maxLength,
5295
- maxLength6: maxLength6,
5296
5030
  maxProperties: maxProperties,
5297
5031
  maximumExclusiveMaximum: maximumExclusiveMaximum,
5298
5032
  maximum: maximum,
5299
5033
  metaData: Keywords$1.metaData,
5300
5034
  minItems: minItems,
5301
5035
  minLength: minLength,
5302
- minLength6: minLength6,
5303
5036
  minProperties: minProperties,
5304
5037
  minimumExclusiveMinimum: minimumExclusiveMinimum,
5305
5038
  minimum: minimum,
@@ -5471,7 +5204,7 @@ var schema$4 = `{
5471
5204
  "default": {}
5472
5205
  }`;
5473
5206
 
5474
- const { Core: Core$5, Schema: Schema$5 } = lib$2;
5207
+ const { Core: Core$5, Schema: Schema$5 } = lib$1;
5475
5208
  const keywords$4 = keywords$5;
5476
5209
  const metaSchema$4 = schema$4;
5477
5210
 
@@ -5673,7 +5406,7 @@ var schema$3 = `{
5673
5406
  "default": {}
5674
5407
  }`;
5675
5408
 
5676
- const { Core: Core$4, Schema: Schema$4 } = lib$2;
5409
+ const { Core: Core$4, Schema: Schema$4 } = lib$1;
5677
5410
  const keywords$3 = keywords$5;
5678
5411
  const metaSchema$3 = schema$3;
5679
5412
 
@@ -5705,11 +5438,11 @@ Core$4.defineVocabulary(jsonSchemaVersion$3, {
5705
5438
  "format": keywords$3.metaData,
5706
5439
  "items": keywords$3.items,
5707
5440
  "maxItems": keywords$3.maxItems,
5708
- "maxLength": keywords$3.maxLength6,
5441
+ "maxLength": keywords$3.maxLength,
5709
5442
  "maxProperties": keywords$3.maxProperties,
5710
5443
  "maximum": keywords$3.maximum,
5711
5444
  "minItems": keywords$3.minItems,
5712
- "minLength": keywords$3.minLength6,
5445
+ "minLength": keywords$3.minLength,
5713
5446
  "minProperties": keywords$3.minProperties,
5714
5447
  "minimum": keywords$3.minimum,
5715
5448
  "multipleOf": keywords$3.multipleOf,
@@ -5898,7 +5631,7 @@ var schema$2 = `{
5898
5631
  "default": true
5899
5632
  }`;
5900
5633
 
5901
- const { Core: Core$3, Schema: Schema$3 } = lib$2;
5634
+ const { Core: Core$3, Schema: Schema$3 } = lib$1;
5902
5635
  const keywords$2 = keywords$5;
5903
5636
  const metaSchema$2 = schema$2;
5904
5637
 
@@ -5932,11 +5665,11 @@ Core$3.defineVocabulary(jsonSchemaVersion$2, {
5932
5665
  "else": keywords$2.else,
5933
5666
  "items": keywords$2.items,
5934
5667
  "maxItems": keywords$2.maxItems,
5935
- "maxLength": keywords$2.maxLength6,
5668
+ "maxLength": keywords$2.maxLength,
5936
5669
  "maxProperties": keywords$2.maxProperties,
5937
5670
  "maximum": keywords$2.maximum,
5938
5671
  "minItems": keywords$2.minItems,
5939
- "minLength": keywords$2.minLength6,
5672
+ "minLength": keywords$2.minLength,
5940
5673
  "minProperties": keywords$2.minProperties,
5941
5674
  "minimum": keywords$2.minimum,
5942
5675
  "multipleOf": keywords$2.multipleOf,
@@ -6281,7 +6014,7 @@ var content$1 = `{
6281
6014
  }
6282
6015
  }`;
6283
6016
 
6284
- const { Core: Core$2, Schema: Schema$2 } = lib$2;
6017
+ const { Core: Core$2, Schema: Schema$2 } = lib$1;
6285
6018
  const keywords$1 = keywords$5;
6286
6019
  const metaSchema$1 = schema$1;
6287
6020
  const coreMetaSchema$1 = core$1;
@@ -6340,11 +6073,11 @@ Core$2.defineVocabulary("https://json-schema.org/draft/2019-09/vocab/validation"
6340
6073
  "exclusiveMaximum": keywords$1.exclusiveMaximum,
6341
6074
  "exclusiveMinimum": keywords$1.exclusiveMinimum,
6342
6075
  "maxItems": keywords$1.maxItems,
6343
- "maxLength": keywords$1.maxLength6,
6076
+ "maxLength": keywords$1.maxLength,
6344
6077
  "maxProperties": keywords$1.maxProperties,
6345
6078
  "maximum": keywords$1.maximum,
6346
6079
  "minItems": keywords$1.minItems,
6347
- "minLength": keywords$1.minLength6,
6080
+ "minLength": keywords$1.minLength,
6348
6081
  "minProperties": keywords$1.minProperties,
6349
6082
  "minimum": keywords$1.minimum,
6350
6083
  "multipleOf": keywords$1.multipleOf,
@@ -6728,7 +6461,7 @@ var unevaluated = `{
6728
6461
  }
6729
6462
  }`;
6730
6463
 
6731
- const { Core: Core$1, Schema: Schema$1 } = lib$2;
6464
+ const { Core: Core$1, Schema: Schema$1 } = lib$1;
6732
6465
  const keywords = keywords$5;
6733
6466
  const metaSchema = schema;
6734
6467
  const coreMetaSchema = core;
@@ -6787,11 +6520,11 @@ Core$1.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/validation"
6787
6520
  "exclusiveMaximum": keywords.exclusiveMaximum,
6788
6521
  "exclusiveMinimum": keywords.exclusiveMinimum,
6789
6522
  "maxItems": keywords.maxItems,
6790
- "maxLength": keywords.maxLength6,
6523
+ "maxLength": keywords.maxLength,
6791
6524
  "maxProperties": keywords.maxProperties,
6792
6525
  "maximum": keywords.maximum,
6793
6526
  "minItems": keywords.minItems,
6794
- "minLength": keywords.minLength6,
6527
+ "minLength": keywords.minLength,
6795
6528
  "minProperties": keywords.minProperties,
6796
6529
  "minimum": keywords.minimum,
6797
6530
  "multipleOf": keywords.multipleOf,
@@ -6832,7 +6565,7 @@ Core$1.defineVocabulary("https://json-schema.org/draft/2020-12/vocab/unevaluated
6832
6565
  "unevaluatedProperties": keywords.unevaluatedProperties
6833
6566
  });
6834
6567
 
6835
- const { Core, Schema, InvalidSchemaError } = lib$2;
6568
+ const { Core, Schema, InvalidSchemaError } = lib$1;
6836
6569
  const Keywords = keywords$5;
6837
6570
 
6838
6571