@ogc-maps/storybook-components 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FeatureDetailPanel-DpcaTS9I.js → FeatureDetailPanel-CkFpdEKW.js} +8 -7
- package/dist/{FeatureTooltip-CM0ZTudi.js → FeatureTooltip-Db1LgLQV.js} +9 -7
- package/dist/{LayerPanel-BHpb8dbm.js → LayerPanel-SCdJ8948.js} +21 -21
- package/dist/{Legend-D4cc1JzQ.js → Legend-BMrkY-rw.js} +4 -4
- package/dist/PropertyList-BGXHLVBM.js +33 -0
- package/dist/components/BasemapEditor/BasemapEditor.d.ts +7 -0
- package/dist/components/BasemapEditor/BasemapEditor.d.ts.map +1 -0
- package/dist/components/BasemapEditor/BasemapList.d.ts +7 -0
- package/dist/components/BasemapEditor/BasemapList.d.ts.map +1 -0
- package/dist/components/BasemapEditor/index.d.ts +5 -0
- package/dist/components/BasemapEditor/index.d.ts.map +1 -0
- package/dist/components/CollectionBrowser/CollectionBrowser.d.ts +8 -0
- package/dist/components/CollectionBrowser/CollectionBrowser.d.ts.map +1 -0
- package/dist/components/CollectionBrowser/index.d.ts +3 -0
- package/dist/components/CollectionBrowser/index.d.ts.map +1 -0
- package/dist/components/ConfigPreview/ConfigPreview.d.ts +5 -0
- package/dist/components/ConfigPreview/ConfigPreview.d.ts.map +1 -0
- package/dist/components/ConfigPreview/index.d.ts +3 -0
- package/dist/components/ConfigPreview/index.d.ts.map +1 -0
- package/dist/components/FeatureDetailPanel/FeatureDetailPanel.d.ts +2 -1
- package/dist/components/FeatureDetailPanel/FeatureDetailPanel.d.ts.map +1 -1
- package/dist/components/FeatureDetailPanel/index.js +1 -1
- package/dist/components/FeatureTooltip/FeatureTooltip.d.ts +2 -1
- package/dist/components/FeatureTooltip/FeatureTooltip.d.ts.map +1 -1
- package/dist/components/FeatureTooltip/index.js +1 -1
- package/dist/components/LayerEditor/LayerEditor.d.ts +8 -0
- package/dist/components/LayerEditor/LayerEditor.d.ts.map +1 -0
- package/dist/components/LayerEditor/LayerList.d.ts +8 -0
- package/dist/components/LayerEditor/LayerList.d.ts.map +1 -0
- package/dist/components/LayerEditor/index.d.ts +5 -0
- package/dist/components/LayerEditor/index.d.ts.map +1 -0
- package/dist/components/LayerPanel/index.js +1 -1
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/LegendEditor/LegendEditor.d.ts +7 -0
- package/dist/components/LegendEditor/LegendEditor.d.ts.map +1 -0
- package/dist/components/LegendEditor/LegendEntryEditor.d.ts +7 -0
- package/dist/components/LegendEditor/LegendEntryEditor.d.ts.map +1 -0
- package/dist/components/LegendEditor/index.d.ts +5 -0
- package/dist/components/LegendEditor/index.d.ts.map +1 -0
- package/dist/components/PropertyDisplayEditor/PropertyDisplayEditor.d.ts +15 -0
- package/dist/components/PropertyDisplayEditor/PropertyDisplayEditor.d.ts.map +1 -0
- package/dist/components/PropertyDisplayEditor/__tests__/PropertyDisplayEditor.test.d.ts +2 -0
- package/dist/components/PropertyDisplayEditor/__tests__/PropertyDisplayEditor.test.d.ts.map +1 -0
- package/dist/components/PropertyDisplayEditor/index.d.ts +3 -0
- package/dist/components/PropertyDisplayEditor/index.d.ts.map +1 -0
- package/dist/components/SearchFieldEditor/SearchFieldEditor.d.ts +8 -0
- package/dist/components/SearchFieldEditor/SearchFieldEditor.d.ts.map +1 -0
- package/dist/components/SearchFieldEditor/SearchFieldList.d.ts +8 -0
- package/dist/components/SearchFieldEditor/SearchFieldList.d.ts.map +1 -0
- package/dist/components/SearchFieldEditor/index.d.ts +5 -0
- package/dist/components/SearchFieldEditor/index.d.ts.map +1 -0
- package/dist/components/SourceEditor/SourceEditor.d.ts +10 -0
- package/dist/components/SourceEditor/SourceEditor.d.ts.map +1 -0
- package/dist/components/SourceEditor/SourceList.d.ts +7 -0
- package/dist/components/SourceEditor/SourceList.d.ts.map +1 -0
- package/dist/components/SourceEditor/index.d.ts +5 -0
- package/dist/components/SourceEditor/index.d.ts.map +1 -0
- package/dist/components/StyleEditor/StyleEditor.d.ts +11 -0
- package/dist/components/StyleEditor/StyleEditor.d.ts.map +1 -0
- package/dist/components/StyleEditor/index.d.ts +3 -0
- package/dist/components/StyleEditor/index.d.ts.map +1 -0
- package/dist/components/UIConfigEditor/UIConfigEditor.d.ts +7 -0
- package/dist/components/UIConfigEditor/UIConfigEditor.d.ts.map +1 -0
- package/dist/components/UIConfigEditor/index.d.ts +3 -0
- package/dist/components/UIConfigEditor/index.d.ts.map +1 -0
- package/dist/components/ViewEditor/ViewEditor.d.ts +7 -0
- package/dist/components/ViewEditor/ViewEditor.d.ts.map +1 -0
- package/dist/components/ViewEditor/index.d.ts +3 -0
- package/dist/components/ViewEditor/index.d.ts.map +1 -0
- package/dist/components/_shared/PropertyList.d.ts +2 -1
- package/dist/components/_shared/PropertyList.d.ts.map +1 -1
- package/dist/components/admin/ColorPicker.d.ts +7 -0
- package/dist/components/admin/ColorPicker.d.ts.map +1 -0
- package/dist/components/admin/ConfirmDialog.d.ts +9 -0
- package/dist/components/admin/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/admin/FormField.d.ts +10 -0
- package/dist/components/admin/FormField.d.ts.map +1 -0
- package/dist/components/admin/index.d.ts +7 -0
- package/dist/components/admin/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/cql2-Dhe6Ny6v.js +352 -0
- package/dist/hooks/index.d.ts +5 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +31 -24
- package/dist/hooks/useOgcCollectionDetail.d.ts +14 -0
- package/dist/hooks/useOgcCollectionDetail.d.ts.map +1 -0
- package/dist/hooks/useOgcQueryables.d.ts +14 -0
- package/dist/hooks/useOgcQueryables.d.ts.map +1 -0
- package/dist/{index-BLgVA46J.js → index-Bw9lUiuL.js} +152 -146
- package/dist/main.js +2090 -79
- package/dist/schemas/config.d.ts +81 -5
- package/dist/schemas/config.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +15 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +15 -13
- package/dist/utils/__tests__/propertyDisplay.test.d.ts +2 -0
- package/dist/utils/__tests__/propertyDisplay.test.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/ogcApi.d.ts +44 -0
- package/dist/utils/ogcApi.d.ts.map +1 -1
- package/dist/utils/propertyDisplay.d.ts +6 -0
- package/dist/utils/propertyDisplay.d.ts.map +1 -0
- package/dist/utils/queryableHelpers.d.ts +35 -0
- package/dist/utils/queryableHelpers.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/PropertyList-BH_DTkcU.js +0 -32
- package/dist/cql2-BaKDic7B.js +0 -288
|
@@ -223,11 +223,11 @@ const oe = (s, e) => {
|
|
|
223
223
|
}
|
|
224
224
|
return { message: t };
|
|
225
225
|
};
|
|
226
|
-
let
|
|
227
|
-
function
|
|
228
|
-
return
|
|
226
|
+
let Ee = oe;
|
|
227
|
+
function $e() {
|
|
228
|
+
return Ee;
|
|
229
229
|
}
|
|
230
|
-
const
|
|
230
|
+
const Me = (s) => {
|
|
231
231
|
const { data: e, path: t, errorMaps: r, issueData: a } = s, n = [...t, ...a.path || []], i = {
|
|
232
232
|
...a,
|
|
233
233
|
path: n
|
|
@@ -249,7 +249,7 @@ const $e = (s) => {
|
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
251
|
function c(s, e) {
|
|
252
|
-
const t =
|
|
252
|
+
const t = $e(), r = Me({
|
|
253
253
|
issueData: e,
|
|
254
254
|
data: s.data,
|
|
255
255
|
path: s.path,
|
|
@@ -266,7 +266,7 @@ function c(s, e) {
|
|
|
266
266
|
});
|
|
267
267
|
s.common.issues.push(r);
|
|
268
268
|
}
|
|
269
|
-
class
|
|
269
|
+
class T {
|
|
270
270
|
constructor() {
|
|
271
271
|
this.value = "valid";
|
|
272
272
|
}
|
|
@@ -294,7 +294,7 @@ class S {
|
|
|
294
294
|
value: i
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
return
|
|
297
|
+
return T.mergeObjectSync(e, r);
|
|
298
298
|
}
|
|
299
299
|
static mergeObjectSync(e, t) {
|
|
300
300
|
const r = {};
|
|
@@ -367,7 +367,7 @@ class g {
|
|
|
367
367
|
}
|
|
368
368
|
_processInputParams(e) {
|
|
369
369
|
return {
|
|
370
|
-
status: new
|
|
370
|
+
status: new T(),
|
|
371
371
|
ctx: {
|
|
372
372
|
common: e.parent.common,
|
|
373
373
|
data: e.data,
|
|
@@ -567,28 +567,28 @@ class g {
|
|
|
567
567
|
return this.safeParse(null).success;
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
|
-
const
|
|
570
|
+
const Ve = /^c[^\s-]{8,}$/i, Le = /^[0-9a-z]+$/, Pe = /^[0-9A-HJKMNP-TV-Z]{26}$/i, De = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, ze = /^[a-z0-9_-]{21}$/i, Fe = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ue = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Be = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, We = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
571
571
|
let ie;
|
|
572
|
-
const
|
|
572
|
+
const qe = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Je = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Ye = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, He = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ge = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Qe = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ce = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Xe = new RegExp(`^${Ce}$`);
|
|
573
573
|
function Oe(s) {
|
|
574
574
|
let e = "[0-5]\\d";
|
|
575
575
|
s.precision ? e = `${e}\\.\\d{${s.precision}}` : s.precision == null && (e = `${e}(\\.\\d+)?`);
|
|
576
576
|
const t = s.precision ? "+" : "?";
|
|
577
577
|
return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`;
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Ke(s) {
|
|
580
580
|
return new RegExp(`^${Oe(s)}$`);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function et(s) {
|
|
583
583
|
let e = `${Ce}T${Oe(s)}`;
|
|
584
584
|
const t = [];
|
|
585
585
|
return t.push(s.local ? "Z?" : "Z"), s.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
|
|
586
586
|
}
|
|
587
|
-
function et(s, e) {
|
|
588
|
-
return !!((e === "v4" || !e) && We.test(s) || (e === "v6" || !e) && Je.test(s));
|
|
589
|
-
}
|
|
590
587
|
function tt(s, e) {
|
|
591
|
-
|
|
588
|
+
return !!((e === "v4" || !e) && qe.test(s) || (e === "v6" || !e) && Ye.test(s));
|
|
589
|
+
}
|
|
590
|
+
function st(s, e) {
|
|
591
|
+
if (!Fe.test(s))
|
|
592
592
|
return !1;
|
|
593
593
|
try {
|
|
594
594
|
const [t] = s.split(".");
|
|
@@ -600,8 +600,8 @@ function tt(s, e) {
|
|
|
600
600
|
return !1;
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
return !!((e === "v4" || !e) &&
|
|
603
|
+
function rt(s, e) {
|
|
604
|
+
return !!((e === "v4" || !e) && Je.test(s) || (e === "v6" || !e) && He.test(s));
|
|
605
605
|
}
|
|
606
606
|
class Z extends g {
|
|
607
607
|
_parse(e) {
|
|
@@ -613,7 +613,7 @@ class Z extends g {
|
|
|
613
613
|
received: n.parsedType
|
|
614
614
|
}), m;
|
|
615
615
|
}
|
|
616
|
-
const r = new
|
|
616
|
+
const r = new T();
|
|
617
617
|
let a;
|
|
618
618
|
for (const n of this._def.checks)
|
|
619
619
|
if (n.kind === "min")
|
|
@@ -652,19 +652,19 @@ class Z extends g {
|
|
|
652
652
|
message: n.message
|
|
653
653
|
}), r.dirty());
|
|
654
654
|
} else if (n.kind === "email")
|
|
655
|
-
|
|
655
|
+
Be.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
656
656
|
validation: "email",
|
|
657
657
|
code: d.invalid_string,
|
|
658
658
|
message: n.message
|
|
659
659
|
}), r.dirty());
|
|
660
660
|
else if (n.kind === "emoji")
|
|
661
|
-
ie || (ie = new RegExp(
|
|
661
|
+
ie || (ie = new RegExp(We, "u")), ie.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
662
662
|
validation: "emoji",
|
|
663
663
|
code: d.invalid_string,
|
|
664
664
|
message: n.message
|
|
665
665
|
}), r.dirty());
|
|
666
666
|
else if (n.kind === "uuid")
|
|
667
|
-
|
|
667
|
+
De.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
668
668
|
validation: "uuid",
|
|
669
669
|
code: d.invalid_string,
|
|
670
670
|
message: n.message
|
|
@@ -676,19 +676,19 @@ class Z extends g {
|
|
|
676
676
|
message: n.message
|
|
677
677
|
}), r.dirty());
|
|
678
678
|
else if (n.kind === "cuid")
|
|
679
|
-
|
|
679
|
+
Ve.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
680
680
|
validation: "cuid",
|
|
681
681
|
code: d.invalid_string,
|
|
682
682
|
message: n.message
|
|
683
683
|
}), r.dirty());
|
|
684
684
|
else if (n.kind === "cuid2")
|
|
685
|
-
|
|
685
|
+
Le.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
686
686
|
validation: "cuid2",
|
|
687
687
|
code: d.invalid_string,
|
|
688
688
|
message: n.message
|
|
689
689
|
}), r.dirty());
|
|
690
690
|
else if (n.kind === "ulid")
|
|
691
|
-
|
|
691
|
+
Pe.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
692
692
|
validation: "ulid",
|
|
693
693
|
code: d.invalid_string,
|
|
694
694
|
message: n.message
|
|
@@ -719,39 +719,39 @@ class Z extends g {
|
|
|
719
719
|
code: d.invalid_string,
|
|
720
720
|
validation: { endsWith: n.value },
|
|
721
721
|
message: n.message
|
|
722
|
-
}), r.dirty()) : n.kind === "datetime" ?
|
|
722
|
+
}), r.dirty()) : n.kind === "datetime" ? et(n).test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
723
723
|
code: d.invalid_string,
|
|
724
724
|
validation: "datetime",
|
|
725
725
|
message: n.message
|
|
726
|
-
}), r.dirty()) : n.kind === "date" ?
|
|
726
|
+
}), r.dirty()) : n.kind === "date" ? Xe.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
727
727
|
code: d.invalid_string,
|
|
728
728
|
validation: "date",
|
|
729
729
|
message: n.message
|
|
730
|
-
}), r.dirty()) : n.kind === "time" ?
|
|
730
|
+
}), r.dirty()) : n.kind === "time" ? Ke(n).test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
731
731
|
code: d.invalid_string,
|
|
732
732
|
validation: "time",
|
|
733
733
|
message: n.message
|
|
734
|
-
}), r.dirty()) : n.kind === "duration" ?
|
|
734
|
+
}), r.dirty()) : n.kind === "duration" ? Ue.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
735
735
|
validation: "duration",
|
|
736
736
|
code: d.invalid_string,
|
|
737
737
|
message: n.message
|
|
738
|
-
}), r.dirty()) : n.kind === "ip" ?
|
|
738
|
+
}), r.dirty()) : n.kind === "ip" ? tt(e.data, n.version) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
739
739
|
validation: "ip",
|
|
740
740
|
code: d.invalid_string,
|
|
741
741
|
message: n.message
|
|
742
|
-
}), r.dirty()) : n.kind === "jwt" ?
|
|
742
|
+
}), r.dirty()) : n.kind === "jwt" ? st(e.data, n.alg) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
743
743
|
validation: "jwt",
|
|
744
744
|
code: d.invalid_string,
|
|
745
745
|
message: n.message
|
|
746
|
-
}), r.dirty()) : n.kind === "cidr" ?
|
|
746
|
+
}), r.dirty()) : n.kind === "cidr" ? rt(e.data, n.version) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
747
747
|
validation: "cidr",
|
|
748
748
|
code: d.invalid_string,
|
|
749
749
|
message: n.message
|
|
750
|
-
}), r.dirty()) : n.kind === "base64" ?
|
|
750
|
+
}), r.dirty()) : n.kind === "base64" ? Ge.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
751
751
|
validation: "base64",
|
|
752
752
|
code: d.invalid_string,
|
|
753
753
|
message: n.message
|
|
754
|
-
}), r.dirty()) : n.kind === "base64url" ?
|
|
754
|
+
}), r.dirty()) : n.kind === "base64url" ? Qe.test(e.data) || (a = this._getOrReturnCtx(e, a), c(a, {
|
|
755
755
|
validation: "base64url",
|
|
756
756
|
code: d.invalid_string,
|
|
757
757
|
message: n.message
|
|
@@ -986,7 +986,7 @@ Z.create = (s) => new Z({
|
|
|
986
986
|
coerce: (s == null ? void 0 : s.coerce) ?? !1,
|
|
987
987
|
...y(s)
|
|
988
988
|
});
|
|
989
|
-
function
|
|
989
|
+
function at(s, e) {
|
|
990
990
|
const t = (s.toString().split(".")[1] || "").length, r = (e.toString().split(".")[1] || "").length, a = t > r ? t : r, n = Number.parseInt(s.toFixed(a).replace(".", "")), i = Number.parseInt(e.toFixed(a).replace(".", ""));
|
|
991
991
|
return n % i / 10 ** a;
|
|
992
992
|
}
|
|
@@ -1004,7 +1004,7 @@ class U extends g {
|
|
|
1004
1004
|
}), m;
|
|
1005
1005
|
}
|
|
1006
1006
|
let r;
|
|
1007
|
-
const a = new
|
|
1007
|
+
const a = new T();
|
|
1008
1008
|
for (const n of this._def.checks)
|
|
1009
1009
|
n.kind === "int" ? _.isInteger(e.data) || (r = this._getOrReturnCtx(e, r), c(r, {
|
|
1010
1010
|
code: d.invalid_type,
|
|
@@ -1025,7 +1025,7 @@ class U extends g {
|
|
|
1025
1025
|
inclusive: n.inclusive,
|
|
1026
1026
|
exact: !1,
|
|
1027
1027
|
message: n.message
|
|
1028
|
-
}), a.dirty()) : n.kind === "multipleOf" ?
|
|
1028
|
+
}), a.dirty()) : n.kind === "multipleOf" ? at(e.data, n.value) !== 0 && (r = this._getOrReturnCtx(e, r), c(r, {
|
|
1029
1029
|
code: d.not_multiple_of,
|
|
1030
1030
|
multipleOf: n.value,
|
|
1031
1031
|
message: n.message
|
|
@@ -1176,7 +1176,7 @@ class q extends g {
|
|
|
1176
1176
|
if (this._getType(e) !== u.bigint)
|
|
1177
1177
|
return this._getInvalidInput(e);
|
|
1178
1178
|
let r;
|
|
1179
|
-
const a = new
|
|
1179
|
+
const a = new T();
|
|
1180
1180
|
for (const n of this._def.checks)
|
|
1181
1181
|
n.kind === "min" ? (n.inclusive ? e.data < n.value : e.data <= n.value) && (r = this._getOrReturnCtx(e, r), c(r, {
|
|
1182
1182
|
code: d.too_small,
|
|
@@ -1329,7 +1329,7 @@ class H extends g {
|
|
|
1329
1329
|
code: d.invalid_date
|
|
1330
1330
|
}), m;
|
|
1331
1331
|
}
|
|
1332
|
-
const r = new
|
|
1332
|
+
const r = new T();
|
|
1333
1333
|
let a;
|
|
1334
1334
|
for (const n of this._def.checks)
|
|
1335
1335
|
n.kind === "min" ? e.data.getTime() < n.value && (a = this._getOrReturnCtx(e, a), c(a, {
|
|
@@ -1533,9 +1533,9 @@ class O extends g {
|
|
|
1533
1533
|
exact: !1,
|
|
1534
1534
|
message: a.maxLength.message
|
|
1535
1535
|
}), r.dirty()), t.common.async)
|
|
1536
|
-
return Promise.all([...t.data].map((i, o) => a.type._parseAsync(new N(t, i, t.path, o)))).then((i) =>
|
|
1536
|
+
return Promise.all([...t.data].map((i, o) => a.type._parseAsync(new N(t, i, t.path, o)))).then((i) => T.mergeArray(r, i));
|
|
1537
1537
|
const n = [...t.data].map((i, o) => a.type._parseSync(new N(t, i, t.path, o)));
|
|
1538
|
-
return
|
|
1538
|
+
return T.mergeArray(r, n);
|
|
1539
1539
|
}
|
|
1540
1540
|
get element() {
|
|
1541
1541
|
return this._def.type;
|
|
@@ -1570,23 +1570,23 @@ O.create = (s, e) => new O({
|
|
|
1570
1570
|
typeName: p.ZodArray,
|
|
1571
1571
|
...y(e)
|
|
1572
1572
|
});
|
|
1573
|
-
function
|
|
1574
|
-
if (s instanceof
|
|
1573
|
+
function z(s) {
|
|
1574
|
+
if (s instanceof b) {
|
|
1575
1575
|
const e = {};
|
|
1576
1576
|
for (const t in s.shape) {
|
|
1577
1577
|
const r = s.shape[t];
|
|
1578
|
-
e[t] = R.create(
|
|
1578
|
+
e[t] = R.create(z(r));
|
|
1579
1579
|
}
|
|
1580
|
-
return new
|
|
1580
|
+
return new b({
|
|
1581
1581
|
...s._def,
|
|
1582
1582
|
shape: () => e
|
|
1583
1583
|
});
|
|
1584
1584
|
} else return s instanceof O ? new O({
|
|
1585
1585
|
...s._def,
|
|
1586
|
-
type:
|
|
1587
|
-
}) : s instanceof R ? R.create(
|
|
1586
|
+
type: z(s.element)
|
|
1587
|
+
}) : s instanceof R ? R.create(z(s.unwrap())) : s instanceof P ? P.create(z(s.unwrap())) : s instanceof M ? M.create(s.items.map((e) => z(e))) : s;
|
|
1588
1588
|
}
|
|
1589
|
-
class
|
|
1589
|
+
class b extends g {
|
|
1590
1590
|
constructor() {
|
|
1591
1591
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
1592
1592
|
}
|
|
@@ -1649,21 +1649,21 @@ class k extends g {
|
|
|
1649
1649
|
return a.common.async ? Promise.resolve().then(async () => {
|
|
1650
1650
|
const h = [];
|
|
1651
1651
|
for (const v of f) {
|
|
1652
|
-
const B = await v.key,
|
|
1652
|
+
const B = await v.key, Ie = await v.value;
|
|
1653
1653
|
h.push({
|
|
1654
1654
|
key: B,
|
|
1655
|
-
value:
|
|
1655
|
+
value: Ie,
|
|
1656
1656
|
alwaysSet: v.alwaysSet
|
|
1657
1657
|
});
|
|
1658
1658
|
}
|
|
1659
1659
|
return h;
|
|
1660
|
-
}).then((h) =>
|
|
1660
|
+
}).then((h) => T.mergeObjectSync(r, h)) : T.mergeObjectSync(r, f);
|
|
1661
1661
|
}
|
|
1662
1662
|
get shape() {
|
|
1663
1663
|
return this._def.shape();
|
|
1664
1664
|
}
|
|
1665
1665
|
strict(e) {
|
|
1666
|
-
return l.errToObj, new
|
|
1666
|
+
return l.errToObj, new b({
|
|
1667
1667
|
...this._def,
|
|
1668
1668
|
unknownKeys: "strict",
|
|
1669
1669
|
...e !== void 0 ? {
|
|
@@ -1680,13 +1680,13 @@ class k extends g {
|
|
|
1680
1680
|
});
|
|
1681
1681
|
}
|
|
1682
1682
|
strip() {
|
|
1683
|
-
return new
|
|
1683
|
+
return new b({
|
|
1684
1684
|
...this._def,
|
|
1685
1685
|
unknownKeys: "strip"
|
|
1686
1686
|
});
|
|
1687
1687
|
}
|
|
1688
1688
|
passthrough() {
|
|
1689
|
-
return new
|
|
1689
|
+
return new b({
|
|
1690
1690
|
...this._def,
|
|
1691
1691
|
unknownKeys: "passthrough"
|
|
1692
1692
|
});
|
|
@@ -1709,7 +1709,7 @@ class k extends g {
|
|
|
1709
1709
|
// }) as any;
|
|
1710
1710
|
// };
|
|
1711
1711
|
extend(e) {
|
|
1712
|
-
return new
|
|
1712
|
+
return new b({
|
|
1713
1713
|
...this._def,
|
|
1714
1714
|
shape: () => ({
|
|
1715
1715
|
...this._def.shape(),
|
|
@@ -1723,7 +1723,7 @@ class k extends g {
|
|
|
1723
1723
|
* upgrade if you are experiencing issues.
|
|
1724
1724
|
*/
|
|
1725
1725
|
merge(e) {
|
|
1726
|
-
return new
|
|
1726
|
+
return new b({
|
|
1727
1727
|
unknownKeys: e._def.unknownKeys,
|
|
1728
1728
|
catchall: e._def.catchall,
|
|
1729
1729
|
shape: () => ({
|
|
@@ -1793,7 +1793,7 @@ class k extends g {
|
|
|
1793
1793
|
// return merged;
|
|
1794
1794
|
// }
|
|
1795
1795
|
catchall(e) {
|
|
1796
|
-
return new
|
|
1796
|
+
return new b({
|
|
1797
1797
|
...this._def,
|
|
1798
1798
|
catchall: e
|
|
1799
1799
|
});
|
|
@@ -1802,7 +1802,7 @@ class k extends g {
|
|
|
1802
1802
|
const t = {};
|
|
1803
1803
|
for (const r of _.objectKeys(e))
|
|
1804
1804
|
e[r] && this.shape[r] && (t[r] = this.shape[r]);
|
|
1805
|
-
return new
|
|
1805
|
+
return new b({
|
|
1806
1806
|
...this._def,
|
|
1807
1807
|
shape: () => t
|
|
1808
1808
|
});
|
|
@@ -1811,7 +1811,7 @@ class k extends g {
|
|
|
1811
1811
|
const t = {};
|
|
1812
1812
|
for (const r of _.objectKeys(this.shape))
|
|
1813
1813
|
e[r] || (t[r] = this.shape[r]);
|
|
1814
|
-
return new
|
|
1814
|
+
return new b({
|
|
1815
1815
|
...this._def,
|
|
1816
1816
|
shape: () => t
|
|
1817
1817
|
});
|
|
@@ -1820,7 +1820,7 @@ class k extends g {
|
|
|
1820
1820
|
* @deprecated
|
|
1821
1821
|
*/
|
|
1822
1822
|
deepPartial() {
|
|
1823
|
-
return
|
|
1823
|
+
return z(this);
|
|
1824
1824
|
}
|
|
1825
1825
|
partial(e) {
|
|
1826
1826
|
const t = {};
|
|
@@ -1828,7 +1828,7 @@ class k extends g {
|
|
|
1828
1828
|
const a = this.shape[r];
|
|
1829
1829
|
e && !e[r] ? t[r] = a : t[r] = a.optional();
|
|
1830
1830
|
}
|
|
1831
|
-
return new
|
|
1831
|
+
return new b({
|
|
1832
1832
|
...this._def,
|
|
1833
1833
|
shape: () => t
|
|
1834
1834
|
});
|
|
@@ -1844,7 +1844,7 @@ class k extends g {
|
|
|
1844
1844
|
n = n._def.innerType;
|
|
1845
1845
|
t[r] = n;
|
|
1846
1846
|
}
|
|
1847
|
-
return new
|
|
1847
|
+
return new b({
|
|
1848
1848
|
...this._def,
|
|
1849
1849
|
shape: () => t
|
|
1850
1850
|
});
|
|
@@ -1853,21 +1853,21 @@ class k extends g {
|
|
|
1853
1853
|
return Ne(_.objectKeys(this.shape));
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
|
-
|
|
1856
|
+
b.create = (s, e) => new b({
|
|
1857
1857
|
shape: () => s,
|
|
1858
1858
|
unknownKeys: "strip",
|
|
1859
1859
|
catchall: $.create(),
|
|
1860
1860
|
typeName: p.ZodObject,
|
|
1861
1861
|
...y(e)
|
|
1862
1862
|
});
|
|
1863
|
-
|
|
1863
|
+
b.strictCreate = (s, e) => new b({
|
|
1864
1864
|
shape: () => s,
|
|
1865
1865
|
unknownKeys: "strict",
|
|
1866
1866
|
catchall: $.create(),
|
|
1867
1867
|
typeName: p.ZodObject,
|
|
1868
1868
|
...y(e)
|
|
1869
1869
|
});
|
|
1870
|
-
|
|
1870
|
+
b.lazycreate = (s, e) => new b({
|
|
1871
1871
|
shape: s,
|
|
1872
1872
|
unknownKeys: "strip",
|
|
1873
1873
|
catchall: $.create(),
|
|
@@ -2102,7 +2102,7 @@ class M extends g {
|
|
|
2102
2102
|
const f = this._def.items[o] || this._def.rest;
|
|
2103
2103
|
return f ? f._parse(new N(r, i, r.path, o)) : null;
|
|
2104
2104
|
}).filter((i) => !!i);
|
|
2105
|
-
return r.common.async ? Promise.all(n).then((i) =>
|
|
2105
|
+
return r.common.async ? Promise.all(n).then((i) => T.mergeArray(t, i)) : T.mergeArray(t, n);
|
|
2106
2106
|
}
|
|
2107
2107
|
get items() {
|
|
2108
2108
|
return this._def.items;
|
|
@@ -2146,7 +2146,7 @@ class X extends g {
|
|
|
2146
2146
|
value: i._parse(new N(r, r.data[o], r.path, o)),
|
|
2147
2147
|
alwaysSet: o in r.data
|
|
2148
2148
|
});
|
|
2149
|
-
return r.common.async ?
|
|
2149
|
+
return r.common.async ? T.mergeObjectAsync(t, a) : T.mergeObjectSync(t, a);
|
|
2150
2150
|
}
|
|
2151
2151
|
get element() {
|
|
2152
2152
|
return this._def.valueType;
|
|
@@ -2697,158 +2697,164 @@ var p;
|
|
|
2697
2697
|
(function(s) {
|
|
2698
2698
|
s.ZodString = "ZodString", s.ZodNumber = "ZodNumber", s.ZodNaN = "ZodNaN", s.ZodBigInt = "ZodBigInt", s.ZodBoolean = "ZodBoolean", s.ZodDate = "ZodDate", s.ZodSymbol = "ZodSymbol", s.ZodUndefined = "ZodUndefined", s.ZodNull = "ZodNull", s.ZodAny = "ZodAny", s.ZodUnknown = "ZodUnknown", s.ZodNever = "ZodNever", s.ZodVoid = "ZodVoid", s.ZodArray = "ZodArray", s.ZodObject = "ZodObject", s.ZodUnion = "ZodUnion", s.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", s.ZodIntersection = "ZodIntersection", s.ZodTuple = "ZodTuple", s.ZodRecord = "ZodRecord", s.ZodMap = "ZodMap", s.ZodSet = "ZodSet", s.ZodFunction = "ZodFunction", s.ZodLazy = "ZodLazy", s.ZodLiteral = "ZodLiteral", s.ZodEnum = "ZodEnum", s.ZodEffects = "ZodEffects", s.ZodNativeEnum = "ZodNativeEnum", s.ZodOptional = "ZodOptional", s.ZodNullable = "ZodNullable", s.ZodDefault = "ZodDefault", s.ZodCatch = "ZodCatch", s.ZodPromise = "ZodPromise", s.ZodBranded = "ZodBranded", s.ZodPipeline = "ZodPipeline", s.ZodReadonly = "ZodReadonly";
|
|
2699
2699
|
})(p || (p = {}));
|
|
2700
|
-
const x = Z.create,
|
|
2700
|
+
const x = Z.create, w = U.create, S = de.create;
|
|
2701
2701
|
$.create;
|
|
2702
|
-
const j = O.create,
|
|
2702
|
+
const j = O.create, k = b.create, nt = G.create, Ze = me.create;
|
|
2703
2703
|
Q.create;
|
|
2704
|
-
const
|
|
2704
|
+
const it = M.create, Re = X.create, D = K.create, ae = V.create;
|
|
2705
2705
|
ee.create;
|
|
2706
2706
|
R.create;
|
|
2707
2707
|
P.create;
|
|
2708
|
-
const ot =
|
|
2709
|
-
latitude:
|
|
2710
|
-
longitude:
|
|
2711
|
-
zoom:
|
|
2712
|
-
pitch:
|
|
2713
|
-
bearing:
|
|
2714
|
-
}), dt =
|
|
2708
|
+
const ot = k({
|
|
2709
|
+
latitude: w().min(-90).max(90),
|
|
2710
|
+
longitude: w().min(-180).max(180),
|
|
2711
|
+
zoom: w().min(0).max(24),
|
|
2712
|
+
pitch: w().min(0).max(85).default(0),
|
|
2713
|
+
bearing: w().min(-180).max(180).default(0)
|
|
2714
|
+
}), dt = k({
|
|
2715
2715
|
id: x().min(1),
|
|
2716
2716
|
url: x().url(),
|
|
2717
2717
|
label: x().optional(),
|
|
2718
2718
|
tileMatrixSetId: x().optional().default("WebMercatorQuad")
|
|
2719
|
-
}), ct =
|
|
2719
|
+
}), ct = k({
|
|
2720
2720
|
"fill-color": x().default("#000000"),
|
|
2721
|
-
"fill-opacity":
|
|
2721
|
+
"fill-opacity": w().min(0).max(1).default(1),
|
|
2722
2722
|
"fill-outline-color": x().optional()
|
|
2723
|
-
}), ut =
|
|
2723
|
+
}), ut = k({
|
|
2724
2724
|
"line-color": x().default("#000000"),
|
|
2725
|
-
"line-width":
|
|
2726
|
-
"line-opacity":
|
|
2727
|
-
"line-dasharray": j(
|
|
2728
|
-
}), lt =
|
|
2725
|
+
"line-width": w().min(0).default(1),
|
|
2726
|
+
"line-opacity": w().min(0).max(1).default(1),
|
|
2727
|
+
"line-dasharray": j(w()).optional()
|
|
2728
|
+
}), lt = k({
|
|
2729
2729
|
"circle-color": x().default("#000000"),
|
|
2730
|
-
"circle-radius":
|
|
2731
|
-
"circle-opacity":
|
|
2730
|
+
"circle-radius": w().min(0).default(5),
|
|
2731
|
+
"circle-opacity": w().min(0).max(1).default(1),
|
|
2732
2732
|
"circle-stroke-color": x().optional(),
|
|
2733
|
-
"circle-stroke-width":
|
|
2734
|
-
}), ft =
|
|
2735
|
-
type:
|
|
2733
|
+
"circle-stroke-width": w().min(0).optional()
|
|
2734
|
+
}), ft = k({
|
|
2735
|
+
type: D("fill"),
|
|
2736
2736
|
paint: ct
|
|
2737
|
-
}), ht =
|
|
2738
|
-
type:
|
|
2737
|
+
}), ht = k({
|
|
2738
|
+
type: D("line"),
|
|
2739
2739
|
paint: ut
|
|
2740
|
-
}), mt =
|
|
2741
|
-
type:
|
|
2740
|
+
}), mt = k({
|
|
2741
|
+
type: D("circle"),
|
|
2742
2742
|
paint: lt
|
|
2743
2743
|
}), pt = Ze("type", [
|
|
2744
2744
|
ft,
|
|
2745
2745
|
ht,
|
|
2746
2746
|
mt
|
|
2747
|
-
]), yt =
|
|
2747
|
+
]), yt = k({
|
|
2748
2748
|
label: x(),
|
|
2749
2749
|
color: x(),
|
|
2750
2750
|
shape: ae(["circle", "line", "square"]).optional()
|
|
2751
|
-
}), gt =
|
|
2751
|
+
}), gt = k({
|
|
2752
2752
|
entries: j(yt).min(1)
|
|
2753
2753
|
}), ne = {
|
|
2754
2754
|
property: x().min(1),
|
|
2755
2755
|
label: x(),
|
|
2756
2756
|
placeholder: x().optional()
|
|
2757
|
-
}, _t =
|
|
2757
|
+
}, _t = k({
|
|
2758
2758
|
...ne,
|
|
2759
|
-
type:
|
|
2760
|
-
autocomplete:
|
|
2761
|
-
prefetch:
|
|
2759
|
+
type: D("text"),
|
|
2760
|
+
autocomplete: S().default(!1),
|
|
2761
|
+
prefetch: S().optional(),
|
|
2762
2762
|
options: j(x()).optional()
|
|
2763
|
-
}), vt =
|
|
2763
|
+
}), vt = k({
|
|
2764
2764
|
...ne,
|
|
2765
|
-
type:
|
|
2765
|
+
type: D("number"),
|
|
2766
2766
|
inputMode: ae(["input", "slider"]).default("input"),
|
|
2767
2767
|
operator: ae(["eq", "gt", "lt", "gte", "lte", "between"]).default("eq"),
|
|
2768
|
-
min:
|
|
2769
|
-
max:
|
|
2770
|
-
step:
|
|
2771
|
-
}), xt =
|
|
2768
|
+
min: w().optional(),
|
|
2769
|
+
max: w().optional(),
|
|
2770
|
+
step: w().optional()
|
|
2771
|
+
}), xt = k({
|
|
2772
2772
|
...ne,
|
|
2773
|
-
type:
|
|
2774
|
-
range:
|
|
2775
|
-
}), kt =
|
|
2773
|
+
type: D("datetime"),
|
|
2774
|
+
range: S().default(!1)
|
|
2775
|
+
}), kt = k({
|
|
2776
2776
|
...ne,
|
|
2777
|
-
type:
|
|
2777
|
+
type: D("select"),
|
|
2778
2778
|
options: j(x()).optional(),
|
|
2779
|
-
prefetch:
|
|
2779
|
+
prefetch: S().optional()
|
|
2780
2780
|
}), bt = Ze("type", [
|
|
2781
2781
|
_t,
|
|
2782
2782
|
vt,
|
|
2783
2783
|
xt,
|
|
2784
2784
|
kt
|
|
2785
|
-
]), wt =
|
|
2785
|
+
]), wt = k({
|
|
2786
2786
|
fields: j(bt).min(1)
|
|
2787
|
-
}), St =
|
|
2788
|
-
|
|
2789
|
-
|
|
2787
|
+
}), St = k({
|
|
2788
|
+
label: x().optional(),
|
|
2789
|
+
visible: S().optional().default(!0)
|
|
2790
|
+
}), Tt = Re(x(), St), Ct = k({
|
|
2791
|
+
properties: Re(nt([x(), w(), S(), j(x())])).optional(),
|
|
2792
|
+
bbox: it([w(), w(), w(), w()]).optional(),
|
|
2790
2793
|
datetime: x().optional()
|
|
2791
|
-
}),
|
|
2794
|
+
}), Ot = k({
|
|
2792
2795
|
id: x().min(1),
|
|
2793
2796
|
sourceId: x().min(1),
|
|
2794
2797
|
collection: x().min(1),
|
|
2795
2798
|
label: x(),
|
|
2796
|
-
visible:
|
|
2799
|
+
visible: S().default(!0),
|
|
2797
2800
|
dataMode: ae(["vector-tiles", "geojson"]),
|
|
2798
2801
|
style: pt.optional(),
|
|
2799
2802
|
legend: gt.optional(),
|
|
2800
|
-
filters:
|
|
2801
|
-
search: wt.optional()
|
|
2802
|
-
|
|
2803
|
+
filters: Ct.optional(),
|
|
2804
|
+
search: wt.optional(),
|
|
2805
|
+
propertyDisplay: Tt.optional()
|
|
2806
|
+
}), Nt = k({
|
|
2803
2807
|
id: x().min(1),
|
|
2804
2808
|
label: x(),
|
|
2805
2809
|
url: x().url(),
|
|
2806
2810
|
thumbnail: x().url().optional()
|
|
2807
|
-
}),
|
|
2808
|
-
showLayerPanel:
|
|
2809
|
-
showLegend:
|
|
2810
|
-
showBasemapSwitcher:
|
|
2811
|
-
showSearchPanel:
|
|
2812
|
-
showCoordinateDisplay:
|
|
2813
|
-
showFeatureDetail:
|
|
2814
|
-
showFeatureTooltip:
|
|
2815
|
-
showExportButton:
|
|
2816
|
-
}),
|
|
2811
|
+
}), At = k({
|
|
2812
|
+
showLayerPanel: S().default(!0),
|
|
2813
|
+
showLegend: S().default(!0),
|
|
2814
|
+
showBasemapSwitcher: S().default(!0),
|
|
2815
|
+
showSearchPanel: S().default(!1),
|
|
2816
|
+
showCoordinateDisplay: S().default(!0),
|
|
2817
|
+
showFeatureDetail: S().default(!0),
|
|
2818
|
+
showFeatureTooltip: S().default(!0),
|
|
2819
|
+
showExportButton: S().default(!0)
|
|
2820
|
+
}), je = k({
|
|
2817
2821
|
sources: j(dt).min(1),
|
|
2818
|
-
layers: j(
|
|
2819
|
-
basemaps: j(
|
|
2820
|
-
ui:
|
|
2822
|
+
layers: j(Ot),
|
|
2823
|
+
basemaps: j(Nt).min(1),
|
|
2824
|
+
ui: At.default({}),
|
|
2821
2825
|
initialView: ot
|
|
2822
2826
|
});
|
|
2823
|
-
function
|
|
2824
|
-
return
|
|
2827
|
+
function Zt(s) {
|
|
2828
|
+
return je.parse(s);
|
|
2825
2829
|
}
|
|
2826
|
-
function
|
|
2827
|
-
return
|
|
2830
|
+
function Rt(s) {
|
|
2831
|
+
return je.safeParse(s);
|
|
2828
2832
|
}
|
|
2829
2833
|
export {
|
|
2830
|
-
|
|
2834
|
+
Nt as B,
|
|
2831
2835
|
lt as C,
|
|
2832
2836
|
xt as D,
|
|
2833
2837
|
ct as F,
|
|
2834
|
-
|
|
2835
|
-
|
|
2838
|
+
Ot as L,
|
|
2839
|
+
je as M,
|
|
2836
2840
|
vt as N,
|
|
2837
2841
|
dt as O,
|
|
2842
|
+
Tt as P,
|
|
2838
2843
|
wt as S,
|
|
2839
2844
|
_t as T,
|
|
2840
|
-
|
|
2845
|
+
At as U,
|
|
2841
2846
|
ot as V,
|
|
2842
2847
|
mt as a,
|
|
2843
2848
|
ft as b,
|
|
2844
|
-
|
|
2849
|
+
Ct as c,
|
|
2845
2850
|
gt as d,
|
|
2846
2851
|
yt as e,
|
|
2847
2852
|
ut as f,
|
|
2848
2853
|
ht as g,
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
+
St as h,
|
|
2855
|
+
bt as i,
|
|
2856
|
+
kt as j,
|
|
2857
|
+
pt as k,
|
|
2858
|
+
Rt as s,
|
|
2859
|
+
Zt as v
|
|
2854
2860
|
};
|