@honua/react 0.1.7-beta.0 → 0.1.9-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/control-plane/admin-client.d.ts +87 -0
  2. package/control-plane/admin-client.d.ts.map +1 -0
  3. package/control-plane/admin-client.js +169 -0
  4. package/control-plane/client.d.ts.map +1 -1
  5. package/control-plane/client.js +21 -3
  6. package/control-plane/commands/catalog.d.ts +133 -0
  7. package/control-plane/commands/catalog.d.ts.map +1 -0
  8. package/control-plane/commands/catalog.js +353 -0
  9. package/control-plane/commands/errors.d.ts +96 -0
  10. package/control-plane/commands/errors.d.ts.map +1 -0
  11. package/control-plane/commands/errors.js +130 -0
  12. package/control-plane/commands/identity.d.ts +71 -0
  13. package/control-plane/commands/identity.d.ts.map +1 -0
  14. package/control-plane/commands/identity.js +0 -0
  15. package/control-plane/commands/index.d.ts +39 -0
  16. package/control-plane/commands/index.d.ts.map +1 -0
  17. package/control-plane/commands/index.js +34 -0
  18. package/control-plane/commands/runtime.d.ts +146 -0
  19. package/control-plane/commands/runtime.d.ts.map +1 -0
  20. package/control-plane/commands/runtime.js +318 -0
  21. package/control-plane/commands/types.d.ts +226 -0
  22. package/control-plane/commands/types.d.ts.map +1 -0
  23. package/control-plane/commands/types.js +30 -0
  24. package/control-plane/commands/validate.d.ts +27 -0
  25. package/control-plane/commands/validate.d.ts.map +1 -0
  26. package/control-plane/commands/validate.js +132 -0
  27. package/control-plane/generated/admin-api.d.ts +30263 -0
  28. package/control-plane/generated/admin-api.d.ts.map +1 -0
  29. package/control-plane/generated/admin-api.js +5 -0
  30. package/control-plane/generated/admin-operations.d.ts +4053 -0
  31. package/control-plane/generated/admin-operations.d.ts.map +1 -0
  32. package/control-plane/generated/admin-operations.js +820 -0
  33. package/control-plane/index.d.ts +11 -0
  34. package/control-plane/index.d.ts.map +1 -1
  35. package/control-plane/index.js +8 -0
  36. package/control-plane/types.d.ts +14 -0
  37. package/control-plane/types.d.ts.map +1 -1
  38. package/core/client.js +1 -1
  39. package/core/credential-redaction.d.ts +163 -0
  40. package/core/credential-redaction.d.ts.map +1 -0
  41. package/core/credential-redaction.js +389 -0
  42. package/core/error-classifications.d.ts +15 -0
  43. package/core/error-classifications.d.ts.map +1 -1
  44. package/core/error-classifications.js +15 -0
  45. package/core/error-code-registry.d.ts +15 -0
  46. package/core/error-code-registry.d.ts.map +1 -1
  47. package/core/error-code-registry.js +15 -0
  48. package/core/grpc-adapter.d.ts +2 -2
  49. package/core/grpc-adapter.d.ts.map +1 -1
  50. package/core/grpc-adapter.js +30 -6
  51. package/core/job-run-errors.d.ts +10 -0
  52. package/core/job-run-errors.d.ts.map +1 -0
  53. package/core/job-run-errors.js +14 -0
  54. package/core/job-run-lifecycle.d.ts +34 -0
  55. package/core/job-run-lifecycle.d.ts.map +1 -0
  56. package/core/job-run-lifecycle.js +193 -0
  57. package/core/ogc-processes.d.ts +38 -31
  58. package/core/ogc-processes.d.ts.map +1 -1
  59. package/core/ogc-processes.js +123 -173
  60. package/core/process-runner.js +15 -100
  61. package/core/surfaces.d.ts +2 -8
  62. package/core/surfaces.d.ts.map +1 -1
  63. package/core/surfaces.js +21 -112
  64. package/core/types.d.ts +7 -6
  65. package/core/types.d.ts.map +1 -1
  66. package/gen/geospatial/v1/common_pb.d.ts +514 -0
  67. package/gen/geospatial/v1/common_pb.d.ts.map +1 -0
  68. package/gen/geospatial/v1/common_pb.js +335 -0
  69. package/gen/geospatial/v1/execution_types_pb.d.ts +1186 -0
  70. package/gen/geospatial/v1/execution_types_pb.d.ts.map +1 -0
  71. package/gen/geospatial/v1/execution_types_pb.js +396 -0
  72. package/gen/geospatial/v1/feature_service_pb.d.ts +403 -0
  73. package/gen/geospatial/v1/feature_service_pb.d.ts.map +1 -0
  74. package/gen/geospatial/v1/feature_service_pb.js +47 -0
  75. package/gen/geospatial/v1/index.d.ts +5 -0
  76. package/gen/geospatial/v1/index.d.ts.map +1 -0
  77. package/gen/geospatial/v1/index.js +9 -0
  78. package/gen/geospatial/v1/spatial_types_pb.d.ts +285 -0
  79. package/gen/geospatial/v1/spatial_types_pb.d.ts.map +1 -0
  80. package/gen/geospatial/v1/spatial_types_pb.js +58 -0
  81. package/gen/geospatial/v1/workspace_artifact_types_pb.d.ts +379 -0
  82. package/gen/geospatial/v1/workspace_artifact_types_pb.d.ts.map +1 -0
  83. package/gen/geospatial/v1/workspace_artifact_types_pb.js +151 -0
  84. package/generated-app/projection.d.ts.map +1 -1
  85. package/generated-app/projection.js +10 -1
  86. package/package.json +2 -2
  87. package/query-planner/grpc.d.ts +4 -4
  88. package/query-planner/grpc.d.ts.map +1 -1
  89. package/query-planner/grpc.js +11 -11
  90. package/query-planner/types.d.ts +4 -4
  91. package/query-planner/types.d.ts.map +1 -1
  92. package/runtime/errors.d.ts +1 -1
  93. package/runtime/errors.d.ts.map +1 -1
  94. package/runtime/errors.js +2 -0
  95. package/runtime/generated/map-package-schema-meta.d.ts +11 -0
  96. package/runtime/generated/map-package-schema-meta.d.ts.map +1 -0
  97. package/runtime/generated/map-package-schema-meta.js +12 -0
  98. package/runtime/generated/map-package-schema-validator.d.ts +16 -0
  99. package/runtime/generated/map-package-schema-validator.d.ts.map +1 -0
  100. package/runtime/generated/map-package-schema-validator.js +1422 -0
  101. package/runtime/index.d.ts +5 -1
  102. package/runtime/index.d.ts.map +1 -1
  103. package/runtime/index.js +6 -0
  104. package/runtime/map-package-export.d.ts +151 -0
  105. package/runtime/map-package-export.d.ts.map +1 -0
  106. package/runtime/map-package-export.js +636 -0
  107. package/runtime/map-package-validation.d.ts +21 -1
  108. package/runtime/map-package-validation.d.ts.map +1 -1
  109. package/runtime/map-package-validation.js +132 -95
  110. package/runtime/map-package.d.ts +80 -0
  111. package/runtime/map-package.d.ts.map +1 -1
  112. package/studio/chart-spec.d.ts +6 -6
  113. package/studio/chart-spec.d.ts.map +1 -1
  114. package/studio/chart-spec.js +6 -6
  115. package/studio/index.d.ts +17 -7
  116. package/studio/index.d.ts.map +1 -1
  117. package/studio/index.js +15 -5
  118. package/studio/lifecycle-client.d.ts +262 -22
  119. package/studio/lifecycle-client.d.ts.map +1 -1
  120. package/studio/lifecycle-client.js +524 -24
  121. package/studio/lifecycle-errors.d.ts +8 -2
  122. package/studio/lifecycle-errors.d.ts.map +1 -1
  123. package/studio/lifecycle-errors.js +6 -1
  124. package/studio/lifecycle-types.d.ts +228 -8
  125. package/studio/lifecycle-types.d.ts.map +1 -1
  126. package/studio/publication-status.d.ts +55 -0
  127. package/studio/publication-status.d.ts.map +1 -0
  128. package/studio/publication-status.js +103 -0
  129. package/gen/honua/v1/feature_service_pb.d.ts +0 -918
  130. package/gen/honua/v1/feature_service_pb.d.ts.map +0 -1
  131. package/gen/honua/v1/feature_service_pb.js +0 -375
@@ -0,0 +1,1422 @@
1
+ // @ts-nocheck
2
+ /*!
3
+ Third-party software notices for the generated Honua MapPackage validator
4
+
5
+ Ajv standalone validator runtime
6
+ Copyright (c) 2015-2021 Evgeny Poberezkin
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+ */
26
+ /* Generated from schemas/honua-map-package.v1.json; source sha256:b923ea9bc7111e3fd886f9fd0e35d725df964a645d3e27576b0f2a579b8baca8.
27
+ Do not edit. Run "npm run map-package-schema:generate" after changing the schema. */
28
+ function v(m) { const i = m.length; let h = 0, c = 0, y; for (; c < i;)
29
+ h++, y = m.charCodeAt(c++), y >= 55296 && y <= 56319 && c < i && (y = m.charCodeAt(c), (y & 64512) === 56320 && c++); return h; }
30
+ const B = k;
31
+ var O = k;
32
+ const $ = { $schema: "https://json-schema.org/draft/2020-12/schema", $id: "https://honua.io/schemas/honua-map-package.v1.json", type: "object", required: ["mapPackageId", "format", "sourceBindings", "mapSpec"], additionalProperties: !0, properties: { mapPackageId: { type: "string", minLength: 1, maxLength: 256 }, format: { type: "string", const: "honua_map_package.v1" }, status: { type: "string", enum: ["Draft", "Composing", "Ready", "Failed", "Expired"] }, createdAt: { type: "string", maxLength: 64 }, updatedAt: { type: "string", maxLength: 64 }, expiresAt: { type: "string", maxLength: 64 }, templateId: { type: "string", maxLength: 256 }, themeId: { type: "string", maxLength: 256 }, theme: { $ref: "#/$defs/themeSpec" }, previewArtifactId: { type: "string", maxLength: 256 }, sourceBindings: { type: "array", items: { $ref: "#/$defs/sourceBinding" } }, styleRefs: { type: "array", items: { $ref: "#/$defs/styleRef" } }, mapSpec: { $ref: "#/$defs/mapSpec" }, initialView: { $ref: "#/$defs/initialView" }, legend: { type: "array", items: { $ref: "#/$defs/legendEntry" } }, popupBindings: { type: "array", items: { $ref: "#/$defs/popupBinding" } }, labelBindings: { type: "array", items: { $ref: "#/$defs/labelBinding" } }, boundArtifacts: { type: "array", items: { type: "string", maxLength: 256 } }, attribution: { type: "array", items: { $ref: "#/$defs/attribution" } }, widgets: { type: "array", items: { $ref: "#/$defs/widget" } }, dependencies: { type: "array", items: { $ref: "#/$defs/dependency" } }, provenance: { $ref: "#/$defs/provenance" } }, $defs: { sourceBinding: { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, locator: { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } }, styleRef: { type: "object", required: ["styleId"], additionalProperties: !0, properties: { styleId: { type: "string", minLength: 1, maxLength: 256 }, label: { type: "string", maxLength: 256 }, presetId: { type: "string", maxLength: 256 }, body: { $ref: "#/$defs/styleRefBody" } } }, styleRefBody: { type: "object", additionalProperties: { $ref: "#/$defs/styleRefLayerOverride" } }, styleRefLayerOverride: { type: "object", additionalProperties: !0, properties: { paint: { type: "object", additionalProperties: !0 }, layout: { type: "object", additionalProperties: !0 }, minzoom: { type: "number" }, maxzoom: { type: "number" }, filter: !0, metadata: { type: "object", additionalProperties: !0 } } }, themeSpec: { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, mapSpec: { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, initialView: { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, legendEntry: { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, popupBinding: { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, labelBinding: { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, attribution: { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, widget: { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, dependency: { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, provenance: { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } } } }, I = { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, j = { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, T = { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, V = { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, _ = { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, A = { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, R = { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, S = { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, q = { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, z = { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } }, l = v, N = { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, L = { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } };
33
+ function g(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: y = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const u = g.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
34
+ if (m.sourceId === void 0) {
35
+ const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "sourceId" }, message: "must have required property 'sourceId'" };
36
+ e === null ? e = [s] : e.push(s), a++;
37
+ }
38
+ if (m.protocol === void 0) {
39
+ const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "protocol" }, message: "must have required property 'protocol'" };
40
+ e === null ? e = [s] : e.push(s), a++;
41
+ }
42
+ if (m.locator === void 0) {
43
+ const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "locator" }, message: "must have required property 'locator'" };
44
+ e === null ? e = [s] : e.push(s), a++;
45
+ }
46
+ if (m.sourceId !== void 0) {
47
+ let s = m.sourceId;
48
+ if (typeof s == "string") {
49
+ if (l(s) > 256) {
50
+ const t = { instancePath: i + "/sourceId", schemaPath: "#/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
51
+ e === null ? e = [t] : e.push(t), a++;
52
+ }
53
+ if (l(s) < 1) {
54
+ const t = { instancePath: i + "/sourceId", schemaPath: "#/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
55
+ e === null ? e = [t] : e.push(t), a++;
56
+ }
57
+ }
58
+ else {
59
+ const t = { instancePath: i + "/sourceId", schemaPath: "#/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
60
+ e === null ? e = [t] : e.push(t), a++;
61
+ }
62
+ }
63
+ if (m.protocol !== void 0) {
64
+ let s = m.protocol;
65
+ if (typeof s != "string") {
66
+ const t = { instancePath: i + "/protocol", schemaPath: "#/properties/protocol/type", keyword: "type", params: { type: "string" }, message: "must be string" };
67
+ e === null ? e = [t] : e.push(t), a++;
68
+ }
69
+ if (!(s === "geoservices_feature_service" || s === "geoservices_map_service" || s === "ogc_features" || s === "ogc_maps" || s === "ogc_tiles" || s === "wfs" || s === "wms" || s === "wmts" || s === "odata" || s === "vector_tile" || s === "raster_tile" || s === "pmtiles" || s === "workspace_artifact")) {
70
+ const t = { instancePath: i + "/protocol", schemaPath: "#/properties/protocol/enum", keyword: "enum", params: { allowedValues: N.properties.protocol.enum }, message: "must be equal to one of the allowed values" };
71
+ e === null ? e = [t] : e.push(t), a++;
72
+ }
73
+ }
74
+ if (m.locator !== void 0) {
75
+ let s = m.locator;
76
+ if (s && typeof s == "object" && !Array.isArray(s)) {
77
+ if (s.url !== void 0) {
78
+ let t = s.url;
79
+ if (typeof t == "string") {
80
+ if (l(t) > 4096) {
81
+ const r = { instancePath: i + "/locator/url", schemaPath: "#/$defs/locator/properties/url/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
82
+ e === null ? e = [r] : e.push(r), a++;
83
+ }
84
+ }
85
+ else {
86
+ const r = { instancePath: i + "/locator/url", schemaPath: "#/$defs/locator/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
87
+ e === null ? e = [r] : e.push(r), a++;
88
+ }
89
+ }
90
+ if (s.serviceId !== void 0) {
91
+ let t = s.serviceId;
92
+ if (typeof t == "string") {
93
+ if (l(t) > 256) {
94
+ const r = { instancePath: i + "/locator/serviceId", schemaPath: "#/$defs/locator/properties/serviceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
95
+ e === null ? e = [r] : e.push(r), a++;
96
+ }
97
+ }
98
+ else {
99
+ const r = { instancePath: i + "/locator/serviceId", schemaPath: "#/$defs/locator/properties/serviceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
100
+ e === null ? e = [r] : e.push(r), a++;
101
+ }
102
+ }
103
+ if (s.layerId !== void 0) {
104
+ let t = s.layerId;
105
+ if (!(typeof t == "number" && !(t % 1) && !isNaN(t)) && typeof t != "string") {
106
+ const r = { instancePath: i + "/locator/layerId", schemaPath: "#/$defs/locator/properties/layerId/type", keyword: "type", params: { type: L.properties.layerId.type }, message: "must be integer,string" };
107
+ e === null ? e = [r] : e.push(r), a++;
108
+ }
109
+ }
110
+ if (s.collectionId !== void 0) {
111
+ let t = s.collectionId;
112
+ if (typeof t != "string" && !(typeof t == "number" && !(t % 1) && !isNaN(t))) {
113
+ const r = { instancePath: i + "/locator/collectionId", schemaPath: "#/$defs/locator/properties/collectionId/type", keyword: "type", params: { type: L.properties.collectionId.type }, message: "must be string,integer" };
114
+ e === null ? e = [r] : e.push(r), a++;
115
+ }
116
+ }
117
+ if (s.typeName !== void 0) {
118
+ let t = s.typeName;
119
+ if (typeof t == "string") {
120
+ if (l(t) > 256) {
121
+ const r = { instancePath: i + "/locator/typeName", schemaPath: "#/$defs/locator/properties/typeName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
122
+ e === null ? e = [r] : e.push(r), a++;
123
+ }
124
+ }
125
+ else {
126
+ const r = { instancePath: i + "/locator/typeName", schemaPath: "#/$defs/locator/properties/typeName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
127
+ e === null ? e = [r] : e.push(r), a++;
128
+ }
129
+ }
130
+ if (s.entitySet !== void 0) {
131
+ let t = s.entitySet;
132
+ if (typeof t == "string") {
133
+ if (l(t) > 256) {
134
+ const r = { instancePath: i + "/locator/entitySet", schemaPath: "#/$defs/locator/properties/entitySet/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
135
+ e === null ? e = [r] : e.push(r), a++;
136
+ }
137
+ }
138
+ else {
139
+ const r = { instancePath: i + "/locator/entitySet", schemaPath: "#/$defs/locator/properties/entitySet/type", keyword: "type", params: { type: "string" }, message: "must be string" };
140
+ e === null ? e = [r] : e.push(r), a++;
141
+ }
142
+ }
143
+ }
144
+ else {
145
+ const t = { instancePath: i + "/locator", schemaPath: "#/$defs/locator/type", keyword: "type", params: { type: "object" }, message: "must be object" };
146
+ e === null ? e = [t] : e.push(t), a++;
147
+ }
148
+ }
149
+ if (m.filter !== void 0) {
150
+ let s = m.filter;
151
+ if (typeof s == "string") {
152
+ if (l(s) > 8192) {
153
+ const t = { instancePath: i + "/filter", schemaPath: "#/properties/filter/maxLength", keyword: "maxLength", params: { limit: 8192 }, message: "must NOT have more than 8192 characters" };
154
+ e === null ? e = [t] : e.push(t), a++;
155
+ }
156
+ }
157
+ else {
158
+ const t = { instancePath: i + "/filter", schemaPath: "#/properties/filter/type", keyword: "type", params: { type: "string" }, message: "must be string" };
159
+ e === null ? e = [t] : e.push(t), a++;
160
+ }
161
+ }
162
+ if (m.attribution !== void 0) {
163
+ let s = m.attribution;
164
+ if (typeof s == "string") {
165
+ if (l(s) > 1024) {
166
+ const t = { instancePath: i + "/attribution", schemaPath: "#/properties/attribution/maxLength", keyword: "maxLength", params: { limit: 1024 }, message: "must NOT have more than 1024 characters" };
167
+ e === null ? e = [t] : e.push(t), a++;
168
+ }
169
+ }
170
+ else {
171
+ const t = { instancePath: i + "/attribution", schemaPath: "#/properties/attribution/type", keyword: "type", params: { type: "string" }, message: "must be string" };
172
+ e === null ? e = [t] : e.push(t), a++;
173
+ }
174
+ }
175
+ if (m.metadata !== void 0) {
176
+ let s = m.metadata;
177
+ if (s && typeof s == "object" && !Array.isArray(s))
178
+ for (const t in s) {
179
+ let r = s[t];
180
+ if (typeof r == "string") {
181
+ if (l(r) > 4096) {
182
+ const o = { instancePath: i + "/metadata/" + t.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/metadata/additionalProperties/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
183
+ e === null ? e = [o] : e.push(o), a++;
184
+ }
185
+ }
186
+ else {
187
+ const o = { instancePath: i + "/metadata/" + t.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/metadata/additionalProperties/type", keyword: "type", params: { type: "string" }, message: "must be string" };
188
+ e === null ? e = [o] : e.push(o), a++;
189
+ }
190
+ }
191
+ else {
192
+ const t = { instancePath: i + "/metadata", schemaPath: "#/properties/metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" };
193
+ e === null ? e = [t] : e.push(t), a++;
194
+ }
195
+ }
196
+ }
197
+ else {
198
+ const s = { instancePath: i, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
199
+ e === null ? e = [s] : e.push(s), a++;
200
+ } return g.errors = e, a === 0; }
201
+ g.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
202
+ const E = { type: "object", required: ["styleId"], additionalProperties: !0, properties: { styleId: { type: "string", minLength: 1, maxLength: 256 }, label: { type: "string", maxLength: 256 }, presetId: { type: "string", maxLength: 256 }, body: { $ref: "#/$defs/styleRefBody" } } }, D = { type: "object", additionalProperties: { $ref: "#/$defs/styleRefLayerOverride" } }, F = { type: "object", additionalProperties: !0, properties: { paint: { type: "object", additionalProperties: !0 }, layout: { type: "object", additionalProperties: !0 }, minzoom: { type: "number" }, maxzoom: { type: "number" }, filter: !0, metadata: { type: "object", additionalProperties: !0 } } };
203
+ function b(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: y = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const u = b.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m))
204
+ for (const s in m) {
205
+ let t = m[s];
206
+ if (t && typeof t == "object" && !Array.isArray(t)) {
207
+ if (t.paint !== void 0) {
208
+ let r = t.paint;
209
+ if (!(r && typeof r == "object" && !Array.isArray(r))) {
210
+ const o = { instancePath: i + "/" + s.replace(/~/g, "~0").replace(/\//g, "~1") + "/paint", schemaPath: "#/$defs/styleRefLayerOverride/properties/paint/type", keyword: "type", params: { type: "object" }, message: "must be object" };
211
+ e === null ? e = [o] : e.push(o), a++;
212
+ }
213
+ }
214
+ if (t.layout !== void 0) {
215
+ let r = t.layout;
216
+ if (!(r && typeof r == "object" && !Array.isArray(r))) {
217
+ const o = { instancePath: i + "/" + s.replace(/~/g, "~0").replace(/\//g, "~1") + "/layout", schemaPath: "#/$defs/styleRefLayerOverride/properties/layout/type", keyword: "type", params: { type: "object" }, message: "must be object" };
218
+ e === null ? e = [o] : e.push(o), a++;
219
+ }
220
+ }
221
+ if (t.minzoom !== void 0 && typeof t.minzoom != "number") {
222
+ const r = { instancePath: i + "/" + s.replace(/~/g, "~0").replace(/\//g, "~1") + "/minzoom", schemaPath: "#/$defs/styleRefLayerOverride/properties/minzoom/type", keyword: "type", params: { type: "number" }, message: "must be number" };
223
+ e === null ? e = [r] : e.push(r), a++;
224
+ }
225
+ if (t.maxzoom !== void 0 && typeof t.maxzoom != "number") {
226
+ const r = { instancePath: i + "/" + s.replace(/~/g, "~0").replace(/\//g, "~1") + "/maxzoom", schemaPath: "#/$defs/styleRefLayerOverride/properties/maxzoom/type", keyword: "type", params: { type: "number" }, message: "must be number" };
227
+ e === null ? e = [r] : e.push(r), a++;
228
+ }
229
+ if (t.metadata !== void 0) {
230
+ let r = t.metadata;
231
+ if (!(r && typeof r == "object" && !Array.isArray(r))) {
232
+ const o = { instancePath: i + "/" + s.replace(/~/g, "~0").replace(/\//g, "~1") + "/metadata", schemaPath: "#/$defs/styleRefLayerOverride/properties/metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" };
233
+ e === null ? e = [o] : e.push(o), a++;
234
+ }
235
+ }
236
+ }
237
+ else {
238
+ const r = { instancePath: i + "/" + s.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/styleRefLayerOverride/type", keyword: "type", params: { type: "object" }, message: "must be object" };
239
+ e === null ? e = [r] : e.push(r), a++;
240
+ }
241
+ }
242
+ else {
243
+ const s = { instancePath: i, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
244
+ e === null ? e = [s] : e.push(s), a++;
245
+ } return b.errors = e, a === 0; }
246
+ b.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
247
+ function w(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: y = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const u = w.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
248
+ if (m.styleId === void 0) {
249
+ const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "styleId" }, message: "must have required property 'styleId'" };
250
+ e === null ? e = [s] : e.push(s), a++;
251
+ }
252
+ if (m.styleId !== void 0) {
253
+ let s = m.styleId;
254
+ if (typeof s == "string") {
255
+ if (l(s) > 256) {
256
+ const t = { instancePath: i + "/styleId", schemaPath: "#/properties/styleId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
257
+ e === null ? e = [t] : e.push(t), a++;
258
+ }
259
+ if (l(s) < 1) {
260
+ const t = { instancePath: i + "/styleId", schemaPath: "#/properties/styleId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
261
+ e === null ? e = [t] : e.push(t), a++;
262
+ }
263
+ }
264
+ else {
265
+ const t = { instancePath: i + "/styleId", schemaPath: "#/properties/styleId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
266
+ e === null ? e = [t] : e.push(t), a++;
267
+ }
268
+ }
269
+ if (m.label !== void 0) {
270
+ let s = m.label;
271
+ if (typeof s == "string") {
272
+ if (l(s) > 256) {
273
+ const t = { instancePath: i + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
274
+ e === null ? e = [t] : e.push(t), a++;
275
+ }
276
+ }
277
+ else {
278
+ const t = { instancePath: i + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
279
+ e === null ? e = [t] : e.push(t), a++;
280
+ }
281
+ }
282
+ if (m.presetId !== void 0) {
283
+ let s = m.presetId;
284
+ if (typeof s == "string") {
285
+ if (l(s) > 256) {
286
+ const t = { instancePath: i + "/presetId", schemaPath: "#/properties/presetId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
287
+ e === null ? e = [t] : e.push(t), a++;
288
+ }
289
+ }
290
+ else {
291
+ const t = { instancePath: i + "/presetId", schemaPath: "#/properties/presetId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
292
+ e === null ? e = [t] : e.push(t), a++;
293
+ }
294
+ }
295
+ m.body !== void 0 && (b(m.body, { instancePath: i + "/body", parentData: m, parentDataProperty: "body", rootData: y, dynamicAnchors: f }) || (e = e === null ? b.errors : e.concat(b.errors), a = e.length));
296
+ }
297
+ else {
298
+ const s = { instancePath: i, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
299
+ e === null ? e = [s] : e.push(s), a++;
300
+ } return w.errors = e, a === 0; }
301
+ w.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
302
+ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: y = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const u = k.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
303
+ if (m.mapPackageId === void 0) {
304
+ const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "mapPackageId" }, message: "must have required property 'mapPackageId'" };
305
+ e === null ? e = [s] : e.push(s), a++;
306
+ }
307
+ if (m.format === void 0) {
308
+ const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "format" }, message: "must have required property 'format'" };
309
+ e === null ? e = [s] : e.push(s), a++;
310
+ }
311
+ if (m.sourceBindings === void 0) {
312
+ const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "sourceBindings" }, message: "must have required property 'sourceBindings'" };
313
+ e === null ? e = [s] : e.push(s), a++;
314
+ }
315
+ if (m.mapSpec === void 0) {
316
+ const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "mapSpec" }, message: "must have required property 'mapSpec'" };
317
+ e === null ? e = [s] : e.push(s), a++;
318
+ }
319
+ if (m.mapPackageId !== void 0) {
320
+ let s = m.mapPackageId;
321
+ if (typeof s == "string") {
322
+ if (l(s) > 256) {
323
+ const t = { instancePath: i + "/mapPackageId", schemaPath: "#/properties/mapPackageId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
324
+ e === null ? e = [t] : e.push(t), a++;
325
+ }
326
+ if (l(s) < 1) {
327
+ const t = { instancePath: i + "/mapPackageId", schemaPath: "#/properties/mapPackageId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
328
+ e === null ? e = [t] : e.push(t), a++;
329
+ }
330
+ }
331
+ else {
332
+ const t = { instancePath: i + "/mapPackageId", schemaPath: "#/properties/mapPackageId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
333
+ e === null ? e = [t] : e.push(t), a++;
334
+ }
335
+ }
336
+ if (m.format !== void 0) {
337
+ let s = m.format;
338
+ if (typeof s != "string") {
339
+ const t = { instancePath: i + "/format", schemaPath: "#/properties/format/type", keyword: "type", params: { type: "string" }, message: "must be string" };
340
+ e === null ? e = [t] : e.push(t), a++;
341
+ }
342
+ if (s !== "honua_map_package.v1") {
343
+ const t = { instancePath: i + "/format", schemaPath: "#/properties/format/const", keyword: "const", params: { allowedValue: "honua_map_package.v1" }, message: "must be equal to constant" };
344
+ e === null ? e = [t] : e.push(t), a++;
345
+ }
346
+ }
347
+ if (m.status !== void 0) {
348
+ let s = m.status;
349
+ if (typeof s != "string") {
350
+ const t = { instancePath: i + "/status", schemaPath: "#/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" };
351
+ e === null ? e = [t] : e.push(t), a++;
352
+ }
353
+ if (!(s === "Draft" || s === "Composing" || s === "Ready" || s === "Failed" || s === "Expired")) {
354
+ const t = { instancePath: i + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: $.properties.status.enum }, message: "must be equal to one of the allowed values" };
355
+ e === null ? e = [t] : e.push(t), a++;
356
+ }
357
+ }
358
+ if (m.createdAt !== void 0) {
359
+ let s = m.createdAt;
360
+ if (typeof s == "string") {
361
+ if (l(s) > 64) {
362
+ const t = { instancePath: i + "/createdAt", schemaPath: "#/properties/createdAt/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
363
+ e === null ? e = [t] : e.push(t), a++;
364
+ }
365
+ }
366
+ else {
367
+ const t = { instancePath: i + "/createdAt", schemaPath: "#/properties/createdAt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
368
+ e === null ? e = [t] : e.push(t), a++;
369
+ }
370
+ }
371
+ if (m.updatedAt !== void 0) {
372
+ let s = m.updatedAt;
373
+ if (typeof s == "string") {
374
+ if (l(s) > 64) {
375
+ const t = { instancePath: i + "/updatedAt", schemaPath: "#/properties/updatedAt/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
376
+ e === null ? e = [t] : e.push(t), a++;
377
+ }
378
+ }
379
+ else {
380
+ const t = { instancePath: i + "/updatedAt", schemaPath: "#/properties/updatedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
381
+ e === null ? e = [t] : e.push(t), a++;
382
+ }
383
+ }
384
+ if (m.expiresAt !== void 0) {
385
+ let s = m.expiresAt;
386
+ if (typeof s == "string") {
387
+ if (l(s) > 64) {
388
+ const t = { instancePath: i + "/expiresAt", schemaPath: "#/properties/expiresAt/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
389
+ e === null ? e = [t] : e.push(t), a++;
390
+ }
391
+ }
392
+ else {
393
+ const t = { instancePath: i + "/expiresAt", schemaPath: "#/properties/expiresAt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
394
+ e === null ? e = [t] : e.push(t), a++;
395
+ }
396
+ }
397
+ if (m.templateId !== void 0) {
398
+ let s = m.templateId;
399
+ if (typeof s == "string") {
400
+ if (l(s) > 256) {
401
+ const t = { instancePath: i + "/templateId", schemaPath: "#/properties/templateId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
402
+ e === null ? e = [t] : e.push(t), a++;
403
+ }
404
+ }
405
+ else {
406
+ const t = { instancePath: i + "/templateId", schemaPath: "#/properties/templateId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
407
+ e === null ? e = [t] : e.push(t), a++;
408
+ }
409
+ }
410
+ if (m.themeId !== void 0) {
411
+ let s = m.themeId;
412
+ if (typeof s == "string") {
413
+ if (l(s) > 256) {
414
+ const t = { instancePath: i + "/themeId", schemaPath: "#/properties/themeId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
415
+ e === null ? e = [t] : e.push(t), a++;
416
+ }
417
+ }
418
+ else {
419
+ const t = { instancePath: i + "/themeId", schemaPath: "#/properties/themeId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
420
+ e === null ? e = [t] : e.push(t), a++;
421
+ }
422
+ }
423
+ if (m.theme !== void 0) {
424
+ let s = m.theme;
425
+ if (s && typeof s == "object" && !Array.isArray(s)) {
426
+ if (s.themeId !== void 0) {
427
+ let t = s.themeId;
428
+ if (typeof t == "string") {
429
+ if (l(t) > 256) {
430
+ const r = { instancePath: i + "/theme/themeId", schemaPath: "#/$defs/themeSpec/properties/themeId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
431
+ e === null ? e = [r] : e.push(r), a++;
432
+ }
433
+ }
434
+ else {
435
+ const r = { instancePath: i + "/theme/themeId", schemaPath: "#/$defs/themeSpec/properties/themeId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
436
+ e === null ? e = [r] : e.push(r), a++;
437
+ }
438
+ }
439
+ if (s.tokens !== void 0) {
440
+ let t = s.tokens;
441
+ if (t && typeof t == "object" && !Array.isArray(t))
442
+ for (const r in t) {
443
+ let o = t[r];
444
+ if (typeof o != "string" && typeof o != "number") {
445
+ const p = { instancePath: i + "/theme/tokens/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/themeSpec/properties/tokens/additionalProperties/type", keyword: "type", params: { type: I.properties.tokens.additionalProperties.type }, message: "must be string,number" };
446
+ e === null ? e = [p] : e.push(p), a++;
447
+ }
448
+ }
449
+ else {
450
+ const r = { instancePath: i + "/theme/tokens", schemaPath: "#/$defs/themeSpec/properties/tokens/type", keyword: "type", params: { type: "object" }, message: "must be object" };
451
+ e === null ? e = [r] : e.push(r), a++;
452
+ }
453
+ }
454
+ }
455
+ else {
456
+ const t = { instancePath: i + "/theme", schemaPath: "#/$defs/themeSpec/type", keyword: "type", params: { type: "object" }, message: "must be object" };
457
+ e === null ? e = [t] : e.push(t), a++;
458
+ }
459
+ }
460
+ if (m.previewArtifactId !== void 0) {
461
+ let s = m.previewArtifactId;
462
+ if (typeof s == "string") {
463
+ if (l(s) > 256) {
464
+ const t = { instancePath: i + "/previewArtifactId", schemaPath: "#/properties/previewArtifactId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
465
+ e === null ? e = [t] : e.push(t), a++;
466
+ }
467
+ }
468
+ else {
469
+ const t = { instancePath: i + "/previewArtifactId", schemaPath: "#/properties/previewArtifactId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
470
+ e === null ? e = [t] : e.push(t), a++;
471
+ }
472
+ }
473
+ if (m.sourceBindings !== void 0) {
474
+ let s = m.sourceBindings;
475
+ if (Array.isArray(s)) {
476
+ const t = s.length;
477
+ for (let r = 0; r < t; r++)
478
+ g(s[r], { instancePath: i + "/sourceBindings/" + r, parentData: s, parentDataProperty: r, rootData: y, dynamicAnchors: f }) || (e = e === null ? g.errors : e.concat(g.errors), a = e.length);
479
+ }
480
+ else {
481
+ const t = { instancePath: i + "/sourceBindings", schemaPath: "#/properties/sourceBindings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
482
+ e === null ? e = [t] : e.push(t), a++;
483
+ }
484
+ }
485
+ if (m.styleRefs !== void 0) {
486
+ let s = m.styleRefs;
487
+ if (Array.isArray(s)) {
488
+ const t = s.length;
489
+ for (let r = 0; r < t; r++)
490
+ w(s[r], { instancePath: i + "/styleRefs/" + r, parentData: s, parentDataProperty: r, rootData: y, dynamicAnchors: f }) || (e = e === null ? w.errors : e.concat(w.errors), a = e.length);
491
+ }
492
+ else {
493
+ const t = { instancePath: i + "/styleRefs", schemaPath: "#/properties/styleRefs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
494
+ e === null ? e = [t] : e.push(t), a++;
495
+ }
496
+ }
497
+ if (m.mapSpec !== void 0) {
498
+ let s = m.mapSpec;
499
+ if (s && typeof s == "object" && !Array.isArray(s)) {
500
+ if (s.version === void 0) {
501
+ const t = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
502
+ e === null ? e = [t] : e.push(t), a++;
503
+ }
504
+ if (s.sources === void 0) {
505
+ const t = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/required", keyword: "required", params: { missingProperty: "sources" }, message: "must have required property 'sources'" };
506
+ e === null ? e = [t] : e.push(t), a++;
507
+ }
508
+ if (s.layers === void 0) {
509
+ const t = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/required", keyword: "required", params: { missingProperty: "layers" }, message: "must have required property 'layers'" };
510
+ e === null ? e = [t] : e.push(t), a++;
511
+ }
512
+ if (s.version !== void 0 && s.version !== 8) {
513
+ const t = { instancePath: i + "/mapSpec/version", schemaPath: "#/$defs/mapSpec/properties/version/const", keyword: "const", params: { allowedValue: 8 }, message: "must be equal to constant" };
514
+ e === null ? e = [t] : e.push(t), a++;
515
+ }
516
+ if (s.name !== void 0) {
517
+ let t = s.name;
518
+ if (typeof t == "string") {
519
+ if (l(t) > 256) {
520
+ const r = { instancePath: i + "/mapSpec/name", schemaPath: "#/$defs/mapSpec/properties/name/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
521
+ e === null ? e = [r] : e.push(r), a++;
522
+ }
523
+ }
524
+ else {
525
+ const r = { instancePath: i + "/mapSpec/name", schemaPath: "#/$defs/mapSpec/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
526
+ e === null ? e = [r] : e.push(r), a++;
527
+ }
528
+ }
529
+ if (s.metadata !== void 0) {
530
+ let t = s.metadata;
531
+ if (!(t && typeof t == "object" && !Array.isArray(t))) {
532
+ const r = { instancePath: i + "/mapSpec/metadata", schemaPath: "#/$defs/mapSpec/properties/metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" };
533
+ e === null ? e = [r] : e.push(r), a++;
534
+ }
535
+ }
536
+ if (s.center !== void 0) {
537
+ let t = s.center;
538
+ if (Array.isArray(t)) {
539
+ if (t.length > 2) {
540
+ const o = { instancePath: i + "/mapSpec/center", schemaPath: "#/$defs/mapSpec/properties/center/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
541
+ e === null ? e = [o] : e.push(o), a++;
542
+ }
543
+ if (t.length < 2) {
544
+ const o = { instancePath: i + "/mapSpec/center", schemaPath: "#/$defs/mapSpec/properties/center/minItems", keyword: "minItems", params: { limit: 2 }, message: "must NOT have fewer than 2 items" };
545
+ e === null ? e = [o] : e.push(o), a++;
546
+ }
547
+ const r = t.length;
548
+ for (let o = 0; o < r; o++)
549
+ if (typeof t[o] != "number") {
550
+ const p = { instancePath: i + "/mapSpec/center/" + o, schemaPath: "#/$defs/mapSpec/properties/center/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
551
+ e === null ? e = [p] : e.push(p), a++;
552
+ }
553
+ }
554
+ else {
555
+ const r = { instancePath: i + "/mapSpec/center", schemaPath: "#/$defs/mapSpec/properties/center/type", keyword: "type", params: { type: "array" }, message: "must be array" };
556
+ e === null ? e = [r] : e.push(r), a++;
557
+ }
558
+ }
559
+ if (s.zoom !== void 0 && typeof s.zoom != "number") {
560
+ const t = { instancePath: i + "/mapSpec/zoom", schemaPath: "#/$defs/mapSpec/properties/zoom/type", keyword: "type", params: { type: "number" }, message: "must be number" };
561
+ e === null ? e = [t] : e.push(t), a++;
562
+ }
563
+ if (s.bearing !== void 0 && typeof s.bearing != "number") {
564
+ const t = { instancePath: i + "/mapSpec/bearing", schemaPath: "#/$defs/mapSpec/properties/bearing/type", keyword: "type", params: { type: "number" }, message: "must be number" };
565
+ e === null ? e = [t] : e.push(t), a++;
566
+ }
567
+ if (s.pitch !== void 0 && typeof s.pitch != "number") {
568
+ const t = { instancePath: i + "/mapSpec/pitch", schemaPath: "#/$defs/mapSpec/properties/pitch/type", keyword: "type", params: { type: "number" }, message: "must be number" };
569
+ e === null ? e = [t] : e.push(t), a++;
570
+ }
571
+ if (s.sources !== void 0) {
572
+ let t = s.sources;
573
+ if (t && typeof t == "object" && !Array.isArray(t))
574
+ for (const r in t) {
575
+ let o = t[r];
576
+ if (o && typeof o == "object" && !Array.isArray(o)) {
577
+ if (o.type === void 0) {
578
+ const p = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
579
+ e === null ? e = [p] : e.push(p), a++;
580
+ }
581
+ if (o.type !== void 0) {
582
+ let p = o.type;
583
+ if (typeof p == "string") {
584
+ if (l(p) > 128) {
585
+ const n = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/properties/type/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
586
+ e === null ? e = [n] : e.push(n), a++;
587
+ }
588
+ }
589
+ else {
590
+ const n = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
591
+ e === null ? e = [n] : e.push(n), a++;
592
+ }
593
+ }
594
+ }
595
+ else {
596
+ const p = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
597
+ e === null ? e = [p] : e.push(p), a++;
598
+ }
599
+ }
600
+ else {
601
+ const r = { instancePath: i + "/mapSpec/sources", schemaPath: "#/$defs/mapSpec/properties/sources/type", keyword: "type", params: { type: "object" }, message: "must be object" };
602
+ e === null ? e = [r] : e.push(r), a++;
603
+ }
604
+ }
605
+ if (s.layers !== void 0) {
606
+ let t = s.layers;
607
+ if (Array.isArray(t)) {
608
+ const r = t.length;
609
+ for (let o = 0; o < r; o++) {
610
+ let p = t[o];
611
+ if (p && typeof p == "object" && !Array.isArray(p)) {
612
+ if (p.id === void 0) {
613
+ const n = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
614
+ e === null ? e = [n] : e.push(n), a++;
615
+ }
616
+ if (p.type === void 0) {
617
+ const n = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
618
+ e === null ? e = [n] : e.push(n), a++;
619
+ }
620
+ if (p.id !== void 0) {
621
+ let n = p.id;
622
+ if (typeof n == "string") {
623
+ if (l(n) > 256) {
624
+ const d = { instancePath: i + "/mapSpec/layers/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
625
+ e === null ? e = [d] : e.push(d), a++;
626
+ }
627
+ if (l(n) < 1) {
628
+ const d = { instancePath: i + "/mapSpec/layers/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
629
+ e === null ? e = [d] : e.push(d), a++;
630
+ }
631
+ }
632
+ else {
633
+ const d = { instancePath: i + "/mapSpec/layers/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
634
+ e === null ? e = [d] : e.push(d), a++;
635
+ }
636
+ }
637
+ if (p.type !== void 0) {
638
+ let n = p.type;
639
+ if (typeof n == "string") {
640
+ if (l(n) > 64) {
641
+ const d = { instancePath: i + "/mapSpec/layers/" + o + "/type", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/type/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
642
+ e === null ? e = [d] : e.push(d), a++;
643
+ }
644
+ }
645
+ else {
646
+ const d = { instancePath: i + "/mapSpec/layers/" + o + "/type", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
647
+ e === null ? e = [d] : e.push(d), a++;
648
+ }
649
+ }
650
+ if (p.source !== void 0) {
651
+ let n = p.source;
652
+ if (typeof n == "string") {
653
+ if (l(n) > 256) {
654
+ const d = { instancePath: i + "/mapSpec/layers/" + o + "/source", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/source/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
655
+ e === null ? e = [d] : e.push(d), a++;
656
+ }
657
+ }
658
+ else {
659
+ const d = { instancePath: i + "/mapSpec/layers/" + o + "/source", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/source/type", keyword: "type", params: { type: "string" }, message: "must be string" };
660
+ e === null ? e = [d] : e.push(d), a++;
661
+ }
662
+ }
663
+ }
664
+ else {
665
+ const n = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
666
+ e === null ? e = [n] : e.push(n), a++;
667
+ }
668
+ }
669
+ }
670
+ else {
671
+ const r = { instancePath: i + "/mapSpec/layers", schemaPath: "#/$defs/mapSpec/properties/layers/type", keyword: "type", params: { type: "array" }, message: "must be array" };
672
+ e === null ? e = [r] : e.push(r), a++;
673
+ }
674
+ }
675
+ if (s.sprite !== void 0) {
676
+ let t = s.sprite;
677
+ if (typeof t != "string" && !Array.isArray(t)) {
678
+ const r = { instancePath: i + "/mapSpec/sprite", schemaPath: "#/$defs/mapSpec/properties/sprite/type", keyword: "type", params: { type: j.properties.sprite.type }, message: "must be string,array" };
679
+ e === null ? e = [r] : e.push(r), a++;
680
+ }
681
+ if (Array.isArray(t)) {
682
+ const r = t.length;
683
+ for (let o = 0; o < r; o++) {
684
+ let p = t[o];
685
+ if (p && typeof p == "object" && !Array.isArray(p)) {
686
+ if (p.id === void 0) {
687
+ const n = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
688
+ e === null ? e = [n] : e.push(n), a++;
689
+ }
690
+ if (p.url === void 0) {
691
+ const n = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/required", keyword: "required", params: { missingProperty: "url" }, message: "must have required property 'url'" };
692
+ e === null ? e = [n] : e.push(n), a++;
693
+ }
694
+ if (p.id !== void 0) {
695
+ let n = p.id;
696
+ if (typeof n == "string") {
697
+ if (l(n) > 256) {
698
+ const d = { instancePath: i + "/mapSpec/sprite/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
699
+ e === null ? e = [d] : e.push(d), a++;
700
+ }
701
+ }
702
+ else {
703
+ const d = { instancePath: i + "/mapSpec/sprite/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
704
+ e === null ? e = [d] : e.push(d), a++;
705
+ }
706
+ }
707
+ if (p.url !== void 0) {
708
+ let n = p.url;
709
+ if (typeof n == "string") {
710
+ if (l(n) > 4096) {
711
+ const d = { instancePath: i + "/mapSpec/sprite/" + o + "/url", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/url/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
712
+ e === null ? e = [d] : e.push(d), a++;
713
+ }
714
+ }
715
+ else {
716
+ const d = { instancePath: i + "/mapSpec/sprite/" + o + "/url", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
717
+ e === null ? e = [d] : e.push(d), a++;
718
+ }
719
+ }
720
+ }
721
+ else {
722
+ const n = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
723
+ e === null ? e = [n] : e.push(n), a++;
724
+ }
725
+ }
726
+ }
727
+ }
728
+ if (s.glyphs !== void 0) {
729
+ let t = s.glyphs;
730
+ if (typeof t == "string") {
731
+ if (l(t) > 4096) {
732
+ const r = { instancePath: i + "/mapSpec/glyphs", schemaPath: "#/$defs/mapSpec/properties/glyphs/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
733
+ e === null ? e = [r] : e.push(r), a++;
734
+ }
735
+ }
736
+ else {
737
+ const r = { instancePath: i + "/mapSpec/glyphs", schemaPath: "#/$defs/mapSpec/properties/glyphs/type", keyword: "type", params: { type: "string" }, message: "must be string" };
738
+ e === null ? e = [r] : e.push(r), a++;
739
+ }
740
+ }
741
+ if (s.transition !== void 0) {
742
+ let t = s.transition;
743
+ if (t && typeof t == "object" && !Array.isArray(t)) {
744
+ if (t.duration !== void 0 && typeof t.duration != "number") {
745
+ const r = { instancePath: i + "/mapSpec/transition/duration", schemaPath: "#/$defs/mapSpec/properties/transition/properties/duration/type", keyword: "type", params: { type: "number" }, message: "must be number" };
746
+ e === null ? e = [r] : e.push(r), a++;
747
+ }
748
+ if (t.delay !== void 0 && typeof t.delay != "number") {
749
+ const r = { instancePath: i + "/mapSpec/transition/delay", schemaPath: "#/$defs/mapSpec/properties/transition/properties/delay/type", keyword: "type", params: { type: "number" }, message: "must be number" };
750
+ e === null ? e = [r] : e.push(r), a++;
751
+ }
752
+ }
753
+ else {
754
+ const r = { instancePath: i + "/mapSpec/transition", schemaPath: "#/$defs/mapSpec/properties/transition/type", keyword: "type", params: { type: "object" }, message: "must be object" };
755
+ e === null ? e = [r] : e.push(r), a++;
756
+ }
757
+ }
758
+ }
759
+ else {
760
+ const t = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/type", keyword: "type", params: { type: "object" }, message: "must be object" };
761
+ e === null ? e = [t] : e.push(t), a++;
762
+ }
763
+ }
764
+ if (m.initialView !== void 0) {
765
+ let s = m.initialView;
766
+ if (s && typeof s == "object" && !Array.isArray(s)) {
767
+ if (s.bbox !== void 0) {
768
+ let t = s.bbox;
769
+ if (Array.isArray(t)) {
770
+ if (t.length > 4) {
771
+ const o = { instancePath: i + "/initialView/bbox", schemaPath: "#/$defs/initialView/properties/bbox/maxItems", keyword: "maxItems", params: { limit: 4 }, message: "must NOT have more than 4 items" };
772
+ e === null ? e = [o] : e.push(o), a++;
773
+ }
774
+ if (t.length < 4) {
775
+ const o = { instancePath: i + "/initialView/bbox", schemaPath: "#/$defs/initialView/properties/bbox/minItems", keyword: "minItems", params: { limit: 4 }, message: "must NOT have fewer than 4 items" };
776
+ e === null ? e = [o] : e.push(o), a++;
777
+ }
778
+ const r = t.length;
779
+ for (let o = 0; o < r; o++)
780
+ if (typeof t[o] != "number") {
781
+ const p = { instancePath: i + "/initialView/bbox/" + o, schemaPath: "#/$defs/initialView/properties/bbox/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
782
+ e === null ? e = [p] : e.push(p), a++;
783
+ }
784
+ }
785
+ else {
786
+ const r = { instancePath: i + "/initialView/bbox", schemaPath: "#/$defs/initialView/properties/bbox/type", keyword: "type", params: { type: "array" }, message: "must be array" };
787
+ e === null ? e = [r] : e.push(r), a++;
788
+ }
789
+ }
790
+ if (s.center !== void 0) {
791
+ let t = s.center;
792
+ if (Array.isArray(t)) {
793
+ if (t.length > 2) {
794
+ const o = { instancePath: i + "/initialView/center", schemaPath: "#/$defs/initialView/properties/center/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
795
+ e === null ? e = [o] : e.push(o), a++;
796
+ }
797
+ if (t.length < 2) {
798
+ const o = { instancePath: i + "/initialView/center", schemaPath: "#/$defs/initialView/properties/center/minItems", keyword: "minItems", params: { limit: 2 }, message: "must NOT have fewer than 2 items" };
799
+ e === null ? e = [o] : e.push(o), a++;
800
+ }
801
+ const r = t.length;
802
+ for (let o = 0; o < r; o++)
803
+ if (typeof t[o] != "number") {
804
+ const p = { instancePath: i + "/initialView/center/" + o, schemaPath: "#/$defs/initialView/properties/center/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
805
+ e === null ? e = [p] : e.push(p), a++;
806
+ }
807
+ }
808
+ else {
809
+ const r = { instancePath: i + "/initialView/center", schemaPath: "#/$defs/initialView/properties/center/type", keyword: "type", params: { type: "array" }, message: "must be array" };
810
+ e === null ? e = [r] : e.push(r), a++;
811
+ }
812
+ }
813
+ if (s.zoom !== void 0 && typeof s.zoom != "number") {
814
+ const t = { instancePath: i + "/initialView/zoom", schemaPath: "#/$defs/initialView/properties/zoom/type", keyword: "type", params: { type: "number" }, message: "must be number" };
815
+ e === null ? e = [t] : e.push(t), a++;
816
+ }
817
+ if (s.pitch !== void 0 && typeof s.pitch != "number") {
818
+ const t = { instancePath: i + "/initialView/pitch", schemaPath: "#/$defs/initialView/properties/pitch/type", keyword: "type", params: { type: "number" }, message: "must be number" };
819
+ e === null ? e = [t] : e.push(t), a++;
820
+ }
821
+ if (s.bearing !== void 0 && typeof s.bearing != "number") {
822
+ const t = { instancePath: i + "/initialView/bearing", schemaPath: "#/$defs/initialView/properties/bearing/type", keyword: "type", params: { type: "number" }, message: "must be number" };
823
+ e === null ? e = [t] : e.push(t), a++;
824
+ }
825
+ if (s.crs !== void 0) {
826
+ let t = s.crs;
827
+ if (typeof t == "string") {
828
+ if (l(t) > 256) {
829
+ const r = { instancePath: i + "/initialView/crs", schemaPath: "#/$defs/initialView/properties/crs/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
830
+ e === null ? e = [r] : e.push(r), a++;
831
+ }
832
+ }
833
+ else {
834
+ const r = { instancePath: i + "/initialView/crs", schemaPath: "#/$defs/initialView/properties/crs/type", keyword: "type", params: { type: "string" }, message: "must be string" };
835
+ e === null ? e = [r] : e.push(r), a++;
836
+ }
837
+ }
838
+ }
839
+ else {
840
+ const t = { instancePath: i + "/initialView", schemaPath: "#/$defs/initialView/type", keyword: "type", params: { type: "object" }, message: "must be object" };
841
+ e === null ? e = [t] : e.push(t), a++;
842
+ }
843
+ }
844
+ if (m.legend !== void 0) {
845
+ let s = m.legend;
846
+ if (Array.isArray(s)) {
847
+ const t = s.length;
848
+ for (let r = 0; r < t; r++) {
849
+ let o = s[r];
850
+ if (o && typeof o == "object" && !Array.isArray(o)) {
851
+ if (o.label === void 0) {
852
+ const p = { instancePath: i + "/legend/" + r, schemaPath: "#/$defs/legendEntry/required", keyword: "required", params: { missingProperty: "label" }, message: "must have required property 'label'" };
853
+ e === null ? e = [p] : e.push(p), a++;
854
+ }
855
+ if (o.label !== void 0) {
856
+ let p = o.label;
857
+ if (typeof p == "string") {
858
+ if (l(p) > 512) {
859
+ const n = { instancePath: i + "/legend/" + r + "/label", schemaPath: "#/$defs/legendEntry/properties/label/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
860
+ e === null ? e = [n] : e.push(n), a++;
861
+ }
862
+ }
863
+ else {
864
+ const n = { instancePath: i + "/legend/" + r + "/label", schemaPath: "#/$defs/legendEntry/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
865
+ e === null ? e = [n] : e.push(n), a++;
866
+ }
867
+ }
868
+ if (o.color !== void 0) {
869
+ let p = o.color;
870
+ if (typeof p == "string") {
871
+ if (l(p) > 128) {
872
+ const n = { instancePath: i + "/legend/" + r + "/color", schemaPath: "#/$defs/legendEntry/properties/color/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
873
+ e === null ? e = [n] : e.push(n), a++;
874
+ }
875
+ }
876
+ else {
877
+ const n = { instancePath: i + "/legend/" + r + "/color", schemaPath: "#/$defs/legendEntry/properties/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
878
+ e === null ? e = [n] : e.push(n), a++;
879
+ }
880
+ }
881
+ if (o.minValue !== void 0 && typeof o.minValue != "number") {
882
+ const p = { instancePath: i + "/legend/" + r + "/minValue", schemaPath: "#/$defs/legendEntry/properties/minValue/type", keyword: "type", params: { type: "number" }, message: "must be number" };
883
+ e === null ? e = [p] : e.push(p), a++;
884
+ }
885
+ if (o.maxValue !== void 0 && typeof o.maxValue != "number") {
886
+ const p = { instancePath: i + "/legend/" + r + "/maxValue", schemaPath: "#/$defs/legendEntry/properties/maxValue/type", keyword: "type", params: { type: "number" }, message: "must be number" };
887
+ e === null ? e = [p] : e.push(p), a++;
888
+ }
889
+ if (o.iconUrl !== void 0) {
890
+ let p = o.iconUrl;
891
+ if (typeof p == "string") {
892
+ if (l(p) > 4096) {
893
+ const n = { instancePath: i + "/legend/" + r + "/iconUrl", schemaPath: "#/$defs/legendEntry/properties/iconUrl/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
894
+ e === null ? e = [n] : e.push(n), a++;
895
+ }
896
+ }
897
+ else {
898
+ const n = { instancePath: i + "/legend/" + r + "/iconUrl", schemaPath: "#/$defs/legendEntry/properties/iconUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
899
+ e === null ? e = [n] : e.push(n), a++;
900
+ }
901
+ }
902
+ }
903
+ else {
904
+ const p = { instancePath: i + "/legend/" + r, schemaPath: "#/$defs/legendEntry/type", keyword: "type", params: { type: "object" }, message: "must be object" };
905
+ e === null ? e = [p] : e.push(p), a++;
906
+ }
907
+ }
908
+ }
909
+ else {
910
+ const t = { instancePath: i + "/legend", schemaPath: "#/properties/legend/type", keyword: "type", params: { type: "array" }, message: "must be array" };
911
+ e === null ? e = [t] : e.push(t), a++;
912
+ }
913
+ }
914
+ if (m.popupBindings !== void 0) {
915
+ let s = m.popupBindings;
916
+ if (Array.isArray(s)) {
917
+ const t = s.length;
918
+ for (let r = 0; r < t; r++) {
919
+ let o = s[r];
920
+ if (o && typeof o == "object" && !Array.isArray(o)) {
921
+ if (o.sourceId === void 0) {
922
+ const p = { instancePath: i + "/popupBindings/" + r, schemaPath: "#/$defs/popupBinding/required", keyword: "required", params: { missingProperty: "sourceId" }, message: "must have required property 'sourceId'" };
923
+ e === null ? e = [p] : e.push(p), a++;
924
+ }
925
+ if (o.sourceId !== void 0) {
926
+ let p = o.sourceId;
927
+ if (typeof p == "string") {
928
+ if (l(p) > 256) {
929
+ const n = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
930
+ e === null ? e = [n] : e.push(n), a++;
931
+ }
932
+ if (l(p) < 1) {
933
+ const n = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
934
+ e === null ? e = [n] : e.push(n), a++;
935
+ }
936
+ }
937
+ else {
938
+ const n = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
939
+ e === null ? e = [n] : e.push(n), a++;
940
+ }
941
+ }
942
+ if (o.fieldName !== void 0) {
943
+ let p = o.fieldName;
944
+ if (typeof p == "string") {
945
+ if (l(p) > 256) {
946
+ const n = { instancePath: i + "/popupBindings/" + r + "/fieldName", schemaPath: "#/$defs/popupBinding/properties/fieldName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
947
+ e === null ? e = [n] : e.push(n), a++;
948
+ }
949
+ }
950
+ else {
951
+ const n = { instancePath: i + "/popupBindings/" + r + "/fieldName", schemaPath: "#/$defs/popupBinding/properties/fieldName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
952
+ e === null ? e = [n] : e.push(n), a++;
953
+ }
954
+ }
955
+ if (o.template !== void 0) {
956
+ let p = o.template;
957
+ if (typeof p == "string") {
958
+ if (l(p) > 16384) {
959
+ const n = { instancePath: i + "/popupBindings/" + r + "/template", schemaPath: "#/$defs/popupBinding/properties/template/maxLength", keyword: "maxLength", params: { limit: 16384 }, message: "must NOT have more than 16384 characters" };
960
+ e === null ? e = [n] : e.push(n), a++;
961
+ }
962
+ }
963
+ else {
964
+ const n = { instancePath: i + "/popupBindings/" + r + "/template", schemaPath: "#/$defs/popupBinding/properties/template/type", keyword: "type", params: { type: "string" }, message: "must be string" };
965
+ e === null ? e = [n] : e.push(n), a++;
966
+ }
967
+ }
968
+ if (o.title !== void 0) {
969
+ let p = o.title;
970
+ if (typeof p == "string") {
971
+ if (l(p) > 512) {
972
+ const n = { instancePath: i + "/popupBindings/" + r + "/title", schemaPath: "#/$defs/popupBinding/properties/title/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
973
+ e === null ? e = [n] : e.push(n), a++;
974
+ }
975
+ }
976
+ else {
977
+ const n = { instancePath: i + "/popupBindings/" + r + "/title", schemaPath: "#/$defs/popupBinding/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
978
+ e === null ? e = [n] : e.push(n), a++;
979
+ }
980
+ }
981
+ }
982
+ else {
983
+ const p = { instancePath: i + "/popupBindings/" + r, schemaPath: "#/$defs/popupBinding/type", keyword: "type", params: { type: "object" }, message: "must be object" };
984
+ e === null ? e = [p] : e.push(p), a++;
985
+ }
986
+ }
987
+ }
988
+ else {
989
+ const t = { instancePath: i + "/popupBindings", schemaPath: "#/properties/popupBindings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
990
+ e === null ? e = [t] : e.push(t), a++;
991
+ }
992
+ }
993
+ if (m.labelBindings !== void 0) {
994
+ let s = m.labelBindings;
995
+ if (Array.isArray(s)) {
996
+ const t = s.length;
997
+ for (let r = 0; r < t; r++) {
998
+ let o = s[r];
999
+ if (o && typeof o == "object" && !Array.isArray(o)) {
1000
+ if (o.sourceId === void 0) {
1001
+ const p = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/required", keyword: "required", params: { missingProperty: "sourceId" }, message: "must have required property 'sourceId'" };
1002
+ e === null ? e = [p] : e.push(p), a++;
1003
+ }
1004
+ if (o.fieldName === void 0) {
1005
+ const p = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/required", keyword: "required", params: { missingProperty: "fieldName" }, message: "must have required property 'fieldName'" };
1006
+ e === null ? e = [p] : e.push(p), a++;
1007
+ }
1008
+ if (o.sourceId !== void 0) {
1009
+ let p = o.sourceId;
1010
+ if (typeof p == "string") {
1011
+ if (l(p) > 256) {
1012
+ const n = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1013
+ e === null ? e = [n] : e.push(n), a++;
1014
+ }
1015
+ if (l(p) < 1) {
1016
+ const n = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1017
+ e === null ? e = [n] : e.push(n), a++;
1018
+ }
1019
+ }
1020
+ else {
1021
+ const n = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1022
+ e === null ? e = [n] : e.push(n), a++;
1023
+ }
1024
+ }
1025
+ if (o.fieldName !== void 0) {
1026
+ let p = o.fieldName;
1027
+ if (typeof p == "string") {
1028
+ if (l(p) > 256) {
1029
+ const n = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1030
+ e === null ? e = [n] : e.push(n), a++;
1031
+ }
1032
+ if (l(p) < 1) {
1033
+ const n = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1034
+ e === null ? e = [n] : e.push(n), a++;
1035
+ }
1036
+ }
1037
+ else {
1038
+ const n = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1039
+ e === null ? e = [n] : e.push(n), a++;
1040
+ }
1041
+ }
1042
+ if (o.placement !== void 0) {
1043
+ let p = o.placement;
1044
+ if (typeof p != "string") {
1045
+ const n = { instancePath: i + "/labelBindings/" + r + "/placement", schemaPath: "#/$defs/labelBinding/properties/placement/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1046
+ e === null ? e = [n] : e.push(n), a++;
1047
+ }
1048
+ if (!(p === "point" || p === "line" || p === "polygon")) {
1049
+ const n = { instancePath: i + "/labelBindings/" + r + "/placement", schemaPath: "#/$defs/labelBinding/properties/placement/enum", keyword: "enum", params: { allowedValues: A.properties.placement.enum }, message: "must be equal to one of the allowed values" };
1050
+ e === null ? e = [n] : e.push(n), a++;
1051
+ }
1052
+ }
1053
+ }
1054
+ else {
1055
+ const p = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1056
+ e === null ? e = [p] : e.push(p), a++;
1057
+ }
1058
+ }
1059
+ }
1060
+ else {
1061
+ const t = { instancePath: i + "/labelBindings", schemaPath: "#/properties/labelBindings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1062
+ e === null ? e = [t] : e.push(t), a++;
1063
+ }
1064
+ }
1065
+ if (m.boundArtifacts !== void 0) {
1066
+ let s = m.boundArtifacts;
1067
+ if (Array.isArray(s)) {
1068
+ const t = s.length;
1069
+ for (let r = 0; r < t; r++) {
1070
+ let o = s[r];
1071
+ if (typeof o == "string") {
1072
+ if (l(o) > 256) {
1073
+ const p = { instancePath: i + "/boundArtifacts/" + r, schemaPath: "#/properties/boundArtifacts/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1074
+ e === null ? e = [p] : e.push(p), a++;
1075
+ }
1076
+ }
1077
+ else {
1078
+ const p = { instancePath: i + "/boundArtifacts/" + r, schemaPath: "#/properties/boundArtifacts/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1079
+ e === null ? e = [p] : e.push(p), a++;
1080
+ }
1081
+ }
1082
+ }
1083
+ else {
1084
+ const t = { instancePath: i + "/boundArtifacts", schemaPath: "#/properties/boundArtifacts/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1085
+ e === null ? e = [t] : e.push(t), a++;
1086
+ }
1087
+ }
1088
+ if (m.attribution !== void 0) {
1089
+ let s = m.attribution;
1090
+ if (Array.isArray(s)) {
1091
+ const t = s.length;
1092
+ for (let r = 0; r < t; r++) {
1093
+ let o = s[r];
1094
+ if (o && typeof o == "object" && !Array.isArray(o)) {
1095
+ if (o.text === void 0) {
1096
+ const p = { instancePath: i + "/attribution/" + r, schemaPath: "#/$defs/attribution/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
1097
+ e === null ? e = [p] : e.push(p), a++;
1098
+ }
1099
+ if (o.text !== void 0) {
1100
+ let p = o.text;
1101
+ if (typeof p == "string") {
1102
+ if (l(p) > 2048) {
1103
+ const n = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/maxLength", keyword: "maxLength", params: { limit: 2048 }, message: "must NOT have more than 2048 characters" };
1104
+ e === null ? e = [n] : e.push(n), a++;
1105
+ }
1106
+ if (l(p) < 1) {
1107
+ const n = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1108
+ e === null ? e = [n] : e.push(n), a++;
1109
+ }
1110
+ }
1111
+ else {
1112
+ const n = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1113
+ e === null ? e = [n] : e.push(n), a++;
1114
+ }
1115
+ }
1116
+ if (o.url !== void 0) {
1117
+ let p = o.url;
1118
+ if (typeof p == "string") {
1119
+ if (l(p) > 4096) {
1120
+ const n = { instancePath: i + "/attribution/" + r + "/url", schemaPath: "#/$defs/attribution/properties/url/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
1121
+ e === null ? e = [n] : e.push(n), a++;
1122
+ }
1123
+ }
1124
+ else {
1125
+ const n = { instancePath: i + "/attribution/" + r + "/url", schemaPath: "#/$defs/attribution/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1126
+ e === null ? e = [n] : e.push(n), a++;
1127
+ }
1128
+ }
1129
+ if (o.sourceIds !== void 0) {
1130
+ let p = o.sourceIds;
1131
+ if (Array.isArray(p)) {
1132
+ const n = p.length;
1133
+ for (let d = 0; d < n; d++) {
1134
+ let x = p[d];
1135
+ if (typeof x == "string") {
1136
+ if (l(x) > 256) {
1137
+ const P = { instancePath: i + "/attribution/" + r + "/sourceIds/" + d, schemaPath: "#/$defs/attribution/properties/sourceIds/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1138
+ e === null ? e = [P] : e.push(P), a++;
1139
+ }
1140
+ }
1141
+ else {
1142
+ const P = { instancePath: i + "/attribution/" + r + "/sourceIds/" + d, schemaPath: "#/$defs/attribution/properties/sourceIds/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1143
+ e === null ? e = [P] : e.push(P), a++;
1144
+ }
1145
+ }
1146
+ }
1147
+ else {
1148
+ const n = { instancePath: i + "/attribution/" + r + "/sourceIds", schemaPath: "#/$defs/attribution/properties/sourceIds/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1149
+ e === null ? e = [n] : e.push(n), a++;
1150
+ }
1151
+ }
1152
+ if (o.required !== void 0 && typeof o.required != "boolean") {
1153
+ const p = { instancePath: i + "/attribution/" + r + "/required", schemaPath: "#/$defs/attribution/properties/required/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1154
+ e === null ? e = [p] : e.push(p), a++;
1155
+ }
1156
+ }
1157
+ else {
1158
+ const p = { instancePath: i + "/attribution/" + r, schemaPath: "#/$defs/attribution/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1159
+ e === null ? e = [p] : e.push(p), a++;
1160
+ }
1161
+ }
1162
+ }
1163
+ else {
1164
+ const t = { instancePath: i + "/attribution", schemaPath: "#/properties/attribution/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1165
+ e === null ? e = [t] : e.push(t), a++;
1166
+ }
1167
+ }
1168
+ if (m.widgets !== void 0) {
1169
+ let s = m.widgets;
1170
+ if (Array.isArray(s)) {
1171
+ const t = s.length;
1172
+ for (let r = 0; r < t; r++) {
1173
+ let o = s[r];
1174
+ if (o && typeof o == "object" && !Array.isArray(o)) {
1175
+ if (o.widgetId === void 0) {
1176
+ const p = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/required", keyword: "required", params: { missingProperty: "widgetId" }, message: "must have required property 'widgetId'" };
1177
+ e === null ? e = [p] : e.push(p), a++;
1178
+ }
1179
+ if (o.type === void 0) {
1180
+ const p = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
1181
+ e === null ? e = [p] : e.push(p), a++;
1182
+ }
1183
+ if (o.widgetId !== void 0) {
1184
+ let p = o.widgetId;
1185
+ if (typeof p == "string") {
1186
+ if (l(p) > 256) {
1187
+ const n = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1188
+ e === null ? e = [n] : e.push(n), a++;
1189
+ }
1190
+ if (l(p) < 1) {
1191
+ const n = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1192
+ e === null ? e = [n] : e.push(n), a++;
1193
+ }
1194
+ }
1195
+ else {
1196
+ const n = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1197
+ e === null ? e = [n] : e.push(n), a++;
1198
+ }
1199
+ }
1200
+ if (o.type !== void 0) {
1201
+ let p = o.type;
1202
+ if (typeof p == "string") {
1203
+ if (l(p) > 128) {
1204
+ const n = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
1205
+ e === null ? e = [n] : e.push(n), a++;
1206
+ }
1207
+ if (l(p) < 1) {
1208
+ const n = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1209
+ e === null ? e = [n] : e.push(n), a++;
1210
+ }
1211
+ }
1212
+ else {
1213
+ const n = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1214
+ e === null ? e = [n] : e.push(n), a++;
1215
+ }
1216
+ }
1217
+ if (o.position !== void 0) {
1218
+ let p = o.position;
1219
+ if (typeof p != "string") {
1220
+ const n = { instancePath: i + "/widgets/" + r + "/position", schemaPath: "#/$defs/widget/properties/position/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1221
+ e === null ? e = [n] : e.push(n), a++;
1222
+ }
1223
+ if (!(p === "top-left" || p === "top-right" || p === "bottom-left" || p === "bottom-right")) {
1224
+ const n = { instancePath: i + "/widgets/" + r + "/position", schemaPath: "#/$defs/widget/properties/position/enum", keyword: "enum", params: { allowedValues: S.properties.position.enum }, message: "must be equal to one of the allowed values" };
1225
+ e === null ? e = [n] : e.push(n), a++;
1226
+ }
1227
+ }
1228
+ if (o.label !== void 0) {
1229
+ let p = o.label;
1230
+ if (typeof p == "string") {
1231
+ if (l(p) > 512) {
1232
+ const n = { instancePath: i + "/widgets/" + r + "/label", schemaPath: "#/$defs/widget/properties/label/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
1233
+ e === null ? e = [n] : e.push(n), a++;
1234
+ }
1235
+ }
1236
+ else {
1237
+ const n = { instancePath: i + "/widgets/" + r + "/label", schemaPath: "#/$defs/widget/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1238
+ e === null ? e = [n] : e.push(n), a++;
1239
+ }
1240
+ }
1241
+ if (o.visible !== void 0 && typeof o.visible != "boolean") {
1242
+ const p = { instancePath: i + "/widgets/" + r + "/visible", schemaPath: "#/$defs/widget/properties/visible/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1243
+ e === null ? e = [p] : e.push(p), a++;
1244
+ }
1245
+ if (o.config !== void 0) {
1246
+ let p = o.config;
1247
+ if (!(p && typeof p == "object" && !Array.isArray(p))) {
1248
+ const n = { instancePath: i + "/widgets/" + r + "/config", schemaPath: "#/$defs/widget/properties/config/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1249
+ e === null ? e = [n] : e.push(n), a++;
1250
+ }
1251
+ }
1252
+ }
1253
+ else {
1254
+ const p = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1255
+ e === null ? e = [p] : e.push(p), a++;
1256
+ }
1257
+ }
1258
+ }
1259
+ else {
1260
+ const t = { instancePath: i + "/widgets", schemaPath: "#/properties/widgets/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1261
+ e === null ? e = [t] : e.push(t), a++;
1262
+ }
1263
+ }
1264
+ if (m.dependencies !== void 0) {
1265
+ let s = m.dependencies;
1266
+ if (Array.isArray(s)) {
1267
+ const t = s.length;
1268
+ for (let r = 0; r < t; r++) {
1269
+ let o = s[r];
1270
+ if (o && typeof o == "object" && !Array.isArray(o)) {
1271
+ if (o.name === void 0) {
1272
+ const p = { instancePath: i + "/dependencies/" + r, schemaPath: "#/$defs/dependency/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
1273
+ e === null ? e = [p] : e.push(p), a++;
1274
+ }
1275
+ if (o.name !== void 0) {
1276
+ let p = o.name;
1277
+ if (typeof p == "string") {
1278
+ if (l(p) > 256) {
1279
+ const n = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1280
+ e === null ? e = [n] : e.push(n), a++;
1281
+ }
1282
+ if (l(p) < 1) {
1283
+ const n = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1284
+ e === null ? e = [n] : e.push(n), a++;
1285
+ }
1286
+ }
1287
+ else {
1288
+ const n = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1289
+ e === null ? e = [n] : e.push(n), a++;
1290
+ }
1291
+ }
1292
+ if (o.versionRange !== void 0) {
1293
+ let p = o.versionRange;
1294
+ if (typeof p == "string") {
1295
+ if (l(p) > 128) {
1296
+ const n = { instancePath: i + "/dependencies/" + r + "/versionRange", schemaPath: "#/$defs/dependency/properties/versionRange/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
1297
+ e === null ? e = [n] : e.push(n), a++;
1298
+ }
1299
+ }
1300
+ else {
1301
+ const n = { instancePath: i + "/dependencies/" + r + "/versionRange", schemaPath: "#/$defs/dependency/properties/versionRange/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1302
+ e === null ? e = [n] : e.push(n), a++;
1303
+ }
1304
+ }
1305
+ if (o.kind !== void 0) {
1306
+ let p = o.kind;
1307
+ if (typeof p != "string") {
1308
+ const n = { instancePath: i + "/dependencies/" + r + "/kind", schemaPath: "#/$defs/dependency/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1309
+ e === null ? e = [n] : e.push(n), a++;
1310
+ }
1311
+ if (!(p === "renderer" || p === "protocol" || p === "sdk" || p === "plugin" || p === "font" || p === "sprite" || p === "basemap")) {
1312
+ const n = { instancePath: i + "/dependencies/" + r + "/kind", schemaPath: "#/$defs/dependency/properties/kind/enum", keyword: "enum", params: { allowedValues: q.properties.kind.enum }, message: "must be equal to one of the allowed values" };
1313
+ e === null ? e = [n] : e.push(n), a++;
1314
+ }
1315
+ }
1316
+ if (o.optional !== void 0 && typeof o.optional != "boolean") {
1317
+ const p = { instancePath: i + "/dependencies/" + r + "/optional", schemaPath: "#/$defs/dependency/properties/optional/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1318
+ e === null ? e = [p] : e.push(p), a++;
1319
+ }
1320
+ }
1321
+ else {
1322
+ const p = { instancePath: i + "/dependencies/" + r, schemaPath: "#/$defs/dependency/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1323
+ e === null ? e = [p] : e.push(p), a++;
1324
+ }
1325
+ }
1326
+ }
1327
+ else {
1328
+ const t = { instancePath: i + "/dependencies", schemaPath: "#/properties/dependencies/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1329
+ e === null ? e = [t] : e.push(t), a++;
1330
+ }
1331
+ }
1332
+ if (m.provenance !== void 0) {
1333
+ let s = m.provenance;
1334
+ if (s && typeof s == "object" && !Array.isArray(s)) {
1335
+ if (s.generatedBy !== void 0) {
1336
+ let t = s.generatedBy;
1337
+ if (typeof t == "string") {
1338
+ if (l(t) > 256) {
1339
+ const r = { instancePath: i + "/provenance/generatedBy", schemaPath: "#/$defs/provenance/properties/generatedBy/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1340
+ e === null ? e = [r] : e.push(r), a++;
1341
+ }
1342
+ }
1343
+ else {
1344
+ const r = { instancePath: i + "/provenance/generatedBy", schemaPath: "#/$defs/provenance/properties/generatedBy/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1345
+ e === null ? e = [r] : e.push(r), a++;
1346
+ }
1347
+ }
1348
+ if (s.generatorVersion !== void 0) {
1349
+ let t = s.generatorVersion;
1350
+ if (typeof t == "string") {
1351
+ if (l(t) > 128) {
1352
+ const r = { instancePath: i + "/provenance/generatorVersion", schemaPath: "#/$defs/provenance/properties/generatorVersion/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
1353
+ e === null ? e = [r] : e.push(r), a++;
1354
+ }
1355
+ }
1356
+ else {
1357
+ const r = { instancePath: i + "/provenance/generatorVersion", schemaPath: "#/$defs/provenance/properties/generatorVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1358
+ e === null ? e = [r] : e.push(r), a++;
1359
+ }
1360
+ }
1361
+ if (s.generatedAt !== void 0) {
1362
+ let t = s.generatedAt;
1363
+ if (typeof t == "string") {
1364
+ if (l(t) > 64) {
1365
+ const r = { instancePath: i + "/provenance/generatedAt", schemaPath: "#/$defs/provenance/properties/generatedAt/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
1366
+ e === null ? e = [r] : e.push(r), a++;
1367
+ }
1368
+ }
1369
+ else {
1370
+ const r = { instancePath: i + "/provenance/generatedAt", schemaPath: "#/$defs/provenance/properties/generatedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1371
+ e === null ? e = [r] : e.push(r), a++;
1372
+ }
1373
+ }
1374
+ if (s.derivedFrom !== void 0) {
1375
+ let t = s.derivedFrom;
1376
+ if (Array.isArray(t)) {
1377
+ const r = t.length;
1378
+ for (let o = 0; o < r; o++) {
1379
+ let p = t[o];
1380
+ if (typeof p == "string") {
1381
+ if (l(p) > 256) {
1382
+ const n = { instancePath: i + "/provenance/derivedFrom/" + o, schemaPath: "#/$defs/provenance/properties/derivedFrom/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1383
+ e === null ? e = [n] : e.push(n), a++;
1384
+ }
1385
+ }
1386
+ else {
1387
+ const n = { instancePath: i + "/provenance/derivedFrom/" + o, schemaPath: "#/$defs/provenance/properties/derivedFrom/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1388
+ e === null ? e = [n] : e.push(n), a++;
1389
+ }
1390
+ }
1391
+ }
1392
+ else {
1393
+ const r = { instancePath: i + "/provenance/derivedFrom", schemaPath: "#/$defs/provenance/properties/derivedFrom/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1394
+ e === null ? e = [r] : e.push(r), a++;
1395
+ }
1396
+ }
1397
+ if (s.notes !== void 0) {
1398
+ let t = s.notes;
1399
+ if (typeof t == "string") {
1400
+ if (l(t) > 4096) {
1401
+ const r = { instancePath: i + "/provenance/notes", schemaPath: "#/$defs/provenance/properties/notes/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
1402
+ e === null ? e = [r] : e.push(r), a++;
1403
+ }
1404
+ }
1405
+ else {
1406
+ const r = { instancePath: i + "/provenance/notes", schemaPath: "#/$defs/provenance/properties/notes/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1407
+ e === null ? e = [r] : e.push(r), a++;
1408
+ }
1409
+ }
1410
+ }
1411
+ else {
1412
+ const t = { instancePath: i + "/provenance", schemaPath: "#/$defs/provenance/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1413
+ e === null ? e = [t] : e.push(t), a++;
1414
+ }
1415
+ }
1416
+ }
1417
+ else {
1418
+ const s = { instancePath: i, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1419
+ e === null ? e = [s] : e.push(s), a++;
1420
+ } return k.errors = e, a === 0; }
1421
+ k.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
1422
+ export { O as default, B as validate };