@eodash/eodash 5.0.0-alpha.2.10 → 5.0.0-alpha.2.12

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 (44) hide show
  1. package/core/client/composables/index.js +37 -18
  2. package/core/client/eodash.js +3 -10
  3. package/core/client/store/Actions.js +9 -33
  4. package/core/client/store/States.js +3 -0
  5. package/core/client/utils/createLayers.js +131 -0
  6. package/core/client/utils/eodashSTAC.js +149 -227
  7. package/core/client/utils/helpers.js +49 -69
  8. package/dist/client/{DashboardLayout-C_3q8Y10.js → DashboardLayout-g4rqjeWc.js} +2 -2
  9. package/dist/client/{DynamicWebComponent-IiTTLBt-.js → DynamicWebComponent-BKV7nbud.js} +4 -4
  10. package/dist/client/{EodashDatePicker-DgC1lccp.js → EodashDatePicker-D4zsy9eq.js} +43 -43
  11. package/dist/client/EodashItemFilter-CRA5Ksjy.js +10067 -0
  12. package/dist/client/EodashLayerControl-CcFkORFA.js +31500 -0
  13. package/dist/client/{EodashMap-C96D3LLv.js → EodashMap-Bq6kJxfa.js} +8326 -8311
  14. package/dist/client/{EodashMapBtns-DDtzV94u.js → EodashMapBtns-Tzefzyf2.js} +5 -5
  15. package/dist/client/{ExportState-CduS2mFs.js → ExportState-CbK0FtDG.js} +37 -37
  16. package/dist/client/{Footer-DHQcutCv.js → Footer-BrNqLnRu.js} +1 -1
  17. package/dist/client/{Header-DC0y7rLK.js → Header-CbTE-BoI.js} +4 -4
  18. package/dist/client/{IframeWrapper-BK-10FbS.js → IframeWrapper-Ph5bZpJZ.js} +1 -1
  19. package/dist/client/{MobileLayout-BpLoMY4i.js → MobileLayout-kdgmpNhM.js} +6 -6
  20. package/dist/client/{PopUp-CNMCWL0z.js → PopUp-BWbFe1C1.js} +9 -9
  21. package/dist/client/{VImg-DT7eb8V-.js → VImg-CzQmrZjo.js} +2 -2
  22. package/dist/client/{VMain-OenWyy46.js → VMain-DfQqCpW9.js} +2 -2
  23. package/dist/client/{VOverlay-x3UXpKhr.js → VOverlay-sx4v7gXf.js} +71 -71
  24. package/dist/client/{WidgetsContainer-qMUwtN0W.js → WidgetsContainer-BrWo2pW8.js} +5 -5
  25. package/dist/client/{asWebComponent-DQrnLsI2.js → asWebComponent-CVFLR8Hh.js} +4117 -4117
  26. package/dist/client/{decoder-Cth6J7EK-CtUoHA6r.js → decoder-Cth6J7EK-DlG9ScOz.js} +1 -1
  27. package/dist/client/eo-dash.js +1 -1
  28. package/dist/client/{forwardRefs-CpNjL95t.js → forwardRefs-BOAfCdT0.js} +1 -1
  29. package/dist/client/{helpers-KCSgmfim.js → helpers-BjdrMtvO.js} +206 -232
  30. package/dist/client/{index-DopVrUzM.js → index-Ct9AYlRj.js} +5 -5
  31. package/dist/client/{lerc-BgbQqdFI-D986ErVw.js → lerc-BgbQqdFI-B1NkI4BO.js} +1 -1
  32. package/dist/client/{ssrBoot-DkjdOWvj.js → ssrBoot-BfIptj2L.js} +1 -1
  33. package/dist/client/style.css +1 -1
  34. package/dist/client/{transition-BtJHh7JK.js → transition-YJj28Lgx.js} +1 -1
  35. package/dist/node/cli.js +2 -2
  36. package/package.json +6 -3
  37. package/widgets/EodashDatePicker.vue +4 -3
  38. package/widgets/EodashItemFilter.vue +17 -12
  39. package/widgets/EodashLayerControl.vue +18 -0
  40. package/widgets/EodashMap.vue +46 -75
  41. package/widgets/ExportState.vue +3 -2
  42. package/dist/client/EodashItemFilter-DoWZGe6r.js +0 -7671
  43. package/dist/client/eox-jsonform-DCErgjhw.js +0 -17515
  44. package/dist/client/eox-layercontrol-D0Ht7Mag.js +0 -21298
@@ -1,42 +1,42 @@
1
- import { aI as fe, aM as ee, aN as oe } from "./asWebComponent-DQrnLsI2.js";
2
- import { c as G, g as le } from "./_commonjsHelpers-DaMA6jEr.js";
3
- var ce = { exports: {} }, W = { exports: {} };
1
+ import { aO as ee, aP as oe, aH as le } from "./asWebComponent-CVFLR8Hh.js";
2
+ import { c as W, g as he } from "./_commonjsHelpers-DaMA6jEr.js";
3
+ var ce = { exports: {} }, G = { exports: {} };
4
4
  /*! https://mths.be/punycode v1.4.0 by @mathias */
5
- W.exports;
5
+ G.exports;
6
6
  var ie;
7
- function he() {
8
- return ie || (ie = 1, function(d, p) {
9
- (function(y) {
10
- var b = p && !p.nodeType && p, l = d && !d.nodeType && d, g = typeof G == "object" && G;
11
- (g.global === g || g.window === g || g.self === g) && (y = g);
12
- var n, h = 2147483647, s = 36, P = 1, z = 26, j = 38, v = 700, M = 72, q = 128, U = "-", E = /^xn--/, N = /[^\x20-\x7E]/, L = /[\x2E\u3002\uFF0E\uFF61]/g, C = {
7
+ function pe() {
8
+ return ie || (ie = 1, function(h, l) {
9
+ (function(v) {
10
+ var b = l && !l.nodeType && l, p = h && !h.nodeType && h, m = typeof W == "object" && W;
11
+ (m.global === m || m.window === m || m.self === m) && (v = m);
12
+ var n, d = 2147483647, s = 36, P = 1, z = 26, S = 38, y = 700, M = 72, U = 128, F = "-", E = /^xn--/, N = /[^\x20-\x7E]/, $ = /[\x2E\u3002\uFF0E\uFF61]/g, C = {
13
13
  overflow: "Overflow: input needs wider integers to process",
14
14
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
15
15
  "invalid-input": "Invalid input"
16
- }, $ = s - P, S = Math.floor, T = String.fromCharCode, H;
16
+ }, L = s - P, j = Math.floor, T = String.fromCharCode, H;
17
17
  function D(c) {
18
18
  throw new RangeError(C[c]);
19
19
  }
20
20
  function J(c, f) {
21
- for (var m = c.length, w = []; m--; )
22
- w[m] = f(c[m]);
21
+ for (var g = c.length, w = []; g--; )
22
+ w[g] = f(c[g]);
23
23
  return w;
24
24
  }
25
25
  function K(c, f) {
26
- var m = c.split("@"), w = "";
27
- m.length > 1 && (w = m[0] + "@", c = m[1]), c = c.replace(L, ".");
26
+ var g = c.split("@"), w = "";
27
+ g.length > 1 && (w = g[0] + "@", c = g[1]), c = c.replace($, ".");
28
28
  var _ = c.split("."), x = J(_, f).join(".");
29
29
  return w + x;
30
30
  }
31
31
  function X(c) {
32
- for (var f = [], m = 0, w = c.length, _, x; m < w; )
33
- _ = c.charCodeAt(m++), _ >= 55296 && _ <= 56319 && m < w ? (x = c.charCodeAt(m++), (x & 64512) == 56320 ? f.push(((_ & 1023) << 10) + (x & 1023) + 65536) : (f.push(_), m--)) : f.push(_);
32
+ for (var f = [], g = 0, w = c.length, _, x; g < w; )
33
+ _ = c.charCodeAt(g++), _ >= 55296 && _ <= 56319 && g < w ? (x = c.charCodeAt(g++), (x & 64512) == 56320 ? f.push(((_ & 1023) << 10) + (x & 1023) + 65536) : (f.push(_), g--)) : f.push(_);
34
34
  return f;
35
35
  }
36
36
  function Y(c) {
37
37
  return J(c, function(f) {
38
- var m = "";
39
- return f > 65535 && (f -= 65536, m += T(f >>> 10 & 1023 | 55296), f = 56320 | f & 1023), m += T(f), m;
38
+ var g = "";
39
+ return f > 65535 && (f -= 65536, g += T(f >>> 10 & 1023 | 55296), f = 56320 | f & 1023), g += T(f), g;
40
40
  }).join("");
41
41
  }
42
42
  function e(c) {
@@ -45,39 +45,39 @@ function he() {
45
45
  function r(c, f) {
46
46
  return c + 22 + 75 * (c < 26) - ((f != 0) << 5);
47
47
  }
48
- function t(c, f, m) {
48
+ function t(c, f, g) {
49
49
  var w = 0;
50
- for (c = m ? S(c / v) : c >> 1, c += S(c / f); c > $ * z >> 1; w += s)
51
- c = S(c / $);
52
- return S(w + ($ + 1) * c / (c + j));
50
+ for (c = g ? j(c / y) : c >> 1, c += j(c / f); c > L * z >> 1; w += s)
51
+ c = j(c / L);
52
+ return j(w + (L + 1) * c / (c + S));
53
53
  }
54
54
  function o(c) {
55
- var f = [], m = c.length, w, _ = 0, x = q, k = M, I, F, A, B, Q, R, O, V, Z;
56
- for (I = c.lastIndexOf(U), I < 0 && (I = 0), F = 0; F < I; ++F)
57
- c.charCodeAt(F) >= 128 && D("not-basic"), f.push(c.charCodeAt(F));
58
- for (A = I > 0 ? I + 1 : 0; A < m; ) {
59
- for (B = _, Q = 1, R = s; A >= m && D("invalid-input"), O = e(c.charCodeAt(A++)), (O >= s || O > S((h - _) / Q)) && D("overflow"), _ += O * Q, V = R <= k ? P : R >= k + z ? z : R - k, !(O < V); R += s)
60
- Z = s - V, Q > S(h / Z) && D("overflow"), Q *= Z;
61
- w = f.length + 1, k = t(_ - B, w, B == 0), S(_ / w) > h - x && D("overflow"), x += S(_ / w), _ %= w, f.splice(_++, 0, x);
55
+ var f = [], g = c.length, w, _ = 0, x = U, k = M, I, q, A, B, Q, R, O, V, Z;
56
+ for (I = c.lastIndexOf(F), I < 0 && (I = 0), q = 0; q < I; ++q)
57
+ c.charCodeAt(q) >= 128 && D("not-basic"), f.push(c.charCodeAt(q));
58
+ for (A = I > 0 ? I + 1 : 0; A < g; ) {
59
+ for (B = _, Q = 1, R = s; A >= g && D("invalid-input"), O = e(c.charCodeAt(A++)), (O >= s || O > j((d - _) / Q)) && D("overflow"), _ += O * Q, V = R <= k ? P : R >= k + z ? z : R - k, !(O < V); R += s)
60
+ Z = s - V, Q > j(d / Z) && D("overflow"), Q *= Z;
61
+ w = f.length + 1, k = t(_ - B, w, B == 0), j(_ / w) > d - x && D("overflow"), x += j(_ / w), _ %= w, f.splice(_++, 0, x);
62
62
  }
63
63
  return Y(f);
64
64
  }
65
65
  function i(c) {
66
- var f, m, w, _, x, k, I, F, A, B, Q, R = [], O, V, Z, re;
67
- for (c = X(c), O = c.length, f = q, m = 0, x = M, k = 0; k < O; ++k)
66
+ var f, g, w, _, x, k, I, q, A, B, Q, R = [], O, V, Z, re;
67
+ for (c = X(c), O = c.length, f = U, g = 0, x = M, k = 0; k < O; ++k)
68
68
  Q = c[k], Q < 128 && R.push(T(Q));
69
- for (w = _ = R.length, _ && R.push(U); w < O; ) {
70
- for (I = h, k = 0; k < O; ++k)
69
+ for (w = _ = R.length, _ && R.push(F); w < O; ) {
70
+ for (I = d, k = 0; k < O; ++k)
71
71
  Q = c[k], Q >= f && Q < I && (I = Q);
72
- for (V = w + 1, I - f > S((h - m) / V) && D("overflow"), m += (I - f) * V, f = I, k = 0; k < O; ++k)
73
- if (Q = c[k], Q < f && ++m > h && D("overflow"), Q == f) {
74
- for (F = m, A = s; B = A <= x ? P : A >= x + z ? z : A - x, !(F < B); A += s)
75
- re = F - B, Z = s - B, R.push(
72
+ for (V = w + 1, I - f > j((d - g) / V) && D("overflow"), g += (I - f) * V, f = I, k = 0; k < O; ++k)
73
+ if (Q = c[k], Q < f && ++g > d && D("overflow"), Q == f) {
74
+ for (q = g, A = s; B = A <= x ? P : A >= x + z ? z : A - x, !(q < B); A += s)
75
+ re = q - B, Z = s - B, R.push(
76
76
  T(r(B + re % Z, 0))
77
- ), F = S(re / Z);
78
- R.push(T(r(F, 0))), x = t(m, V, w == _), m = 0, ++w;
77
+ ), q = j(re / Z);
78
+ R.push(T(r(q, 0))), x = t(g, V, w == _), g = 0, ++w;
79
79
  }
80
- ++m, ++f;
80
+ ++g, ++f;
81
81
  }
82
82
  return R.join("");
83
83
  }
@@ -113,16 +113,16 @@ function he() {
113
113
  encode: i,
114
114
  toASCII: u,
115
115
  toUnicode: a
116
- }, b && l)
117
- if (d.exports == b)
118
- l.exports = n;
116
+ }, b && p)
117
+ if (h.exports == b)
118
+ p.exports = n;
119
119
  else
120
120
  for (H in n)
121
121
  n.hasOwnProperty(H) && (b[H] = n[H]);
122
122
  else
123
- y.punycode = n;
124
- })(G);
125
- }(W, W.exports)), W.exports;
123
+ v.punycode = n;
124
+ })(W);
125
+ }(G, G.exports)), G.exports;
126
126
  }
127
127
  var te = { exports: {} };
128
128
  /*!
@@ -139,42 +139,42 @@ var te = { exports: {} };
139
139
  *
140
140
  */
141
141
  var se;
142
- function pe() {
143
- return se || (se = 1, function(d) {
144
- (function(p, y) {
145
- d.exports ? d.exports = y() : p.IPv6 = y(p);
146
- })(G, function(p) {
147
- var y = p && p.IPv6;
148
- function b(g) {
149
- var n = g.toLowerCase(), h = n.split(":"), s = h.length, P = 8;
150
- h[0] === "" && h[1] === "" && h[2] === "" ? (h.shift(), h.shift()) : h[0] === "" && h[1] === "" ? h.shift() : h[s - 1] === "" && h[s - 2] === "" && h.pop(), s = h.length, h[s - 1].indexOf(".") !== -1 && (P = 7);
142
+ function de() {
143
+ return se || (se = 1, function(h) {
144
+ (function(l, v) {
145
+ h.exports ? h.exports = v() : l.IPv6 = v(l);
146
+ })(W, function(l) {
147
+ var v = l && l.IPv6;
148
+ function b(m) {
149
+ var n = m.toLowerCase(), d = n.split(":"), s = d.length, P = 8;
150
+ d[0] === "" && d[1] === "" && d[2] === "" ? (d.shift(), d.shift()) : d[0] === "" && d[1] === "" ? d.shift() : d[s - 1] === "" && d[s - 2] === "" && d.pop(), s = d.length, d[s - 1].indexOf(".") !== -1 && (P = 7);
151
151
  var z;
152
- for (z = 0; z < s && h[z] !== ""; z++)
152
+ for (z = 0; z < s && d[z] !== ""; z++)
153
153
  ;
154
154
  if (z < P)
155
- for (h.splice(z, 1, "0000"); h.length < P; )
156
- h.splice(z, 0, "0000");
157
- for (var j, v = 0; v < P; v++) {
158
- j = h[v].split("");
159
- for (var M = 0; M < 3 && (j[0] === "0" && j.length > 1); M++)
160
- j.splice(0, 1);
161
- h[v] = j.join("");
155
+ for (d.splice(z, 1, "0000"); d.length < P; )
156
+ d.splice(z, 0, "0000");
157
+ for (var S, y = 0; y < P; y++) {
158
+ S = d[y].split("");
159
+ for (var M = 0; M < 3 && (S[0] === "0" && S.length > 1); M++)
160
+ S.splice(0, 1);
161
+ d[y] = S.join("");
162
162
  }
163
- var q = -1, U = 0, E = 0, N = -1, L = !1;
164
- for (v = 0; v < P; v++)
165
- L ? h[v] === "0" ? E += 1 : (L = !1, E > U && (q = N, U = E)) : h[v] === "0" && (L = !0, N = v, E = 1);
166
- E > U && (q = N, U = E), U > 1 && h.splice(q, U, ""), s = h.length;
163
+ var U = -1, F = 0, E = 0, N = -1, $ = !1;
164
+ for (y = 0; y < P; y++)
165
+ $ ? d[y] === "0" ? E += 1 : ($ = !1, E > F && (U = N, F = E)) : d[y] === "0" && ($ = !0, N = y, E = 1);
166
+ E > F && (U = N, F = E), F > 1 && d.splice(U, F, ""), s = d.length;
167
167
  var C = "";
168
- for (h[0] === "" && (C = ":"), v = 0; v < s && (C += h[v], v !== s - 1); v++)
168
+ for (d[0] === "" && (C = ":"), y = 0; y < s && (C += d[y], y !== s - 1); y++)
169
169
  C += ":";
170
- return h[s - 1] === "" && (C += ":"), C;
170
+ return d[s - 1] === "" && (C += ":"), C;
171
171
  }
172
- function l() {
173
- return p.IPv6 === this && (p.IPv6 = y), this;
172
+ function p() {
173
+ return l.IPv6 === this && (l.IPv6 = v), this;
174
174
  }
175
175
  return {
176
176
  best: b,
177
- noConflict: l
177
+ noConflict: p
178
178
  };
179
179
  });
180
180
  }(te)), te.exports;
@@ -194,12 +194,12 @@ var ne = { exports: {} };
194
194
  *
195
195
  */
196
196
  var ae;
197
- function de() {
198
- return ae || (ae = 1, function(d) {
199
- (function(p, y) {
200
- d.exports ? d.exports = y() : p.SecondLevelDomains = y(p);
201
- })(G, function(p) {
202
- var y = p && p.SecondLevelDomains, b = {
197
+ function ge() {
198
+ return ae || (ae = 1, function(h) {
199
+ (function(l, v) {
200
+ h.exports ? h.exports = v() : l.SecondLevelDomains = v(l);
201
+ })(W, function(l) {
202
+ var v = l && l.SecondLevelDomains, b = {
203
203
  // list of known Second Level Domains
204
204
  // converted list of SLDs from https://github.com/gavingmiller/second-level-domains
205
205
  // ----
@@ -353,38 +353,38 @@ function de() {
353
353
  // http://jsperf.com/uri-js-sld-regex-vs-binary-search/4
354
354
  // Following methods use lastIndexOf() rather than array.split() in order
355
355
  // to avoid any memory allocations.
356
- has: function(l) {
357
- var g = l.lastIndexOf(".");
358
- if (g <= 0 || g >= l.length - 1)
356
+ has: function(p) {
357
+ var m = p.lastIndexOf(".");
358
+ if (m <= 0 || m >= p.length - 1)
359
359
  return !1;
360
- var n = l.lastIndexOf(".", g - 1);
361
- if (n <= 0 || n >= g - 1)
360
+ var n = p.lastIndexOf(".", m - 1);
361
+ if (n <= 0 || n >= m - 1)
362
362
  return !1;
363
- var h = b.list[l.slice(g + 1)];
364
- return h ? h.indexOf(" " + l.slice(n + 1, g) + " ") >= 0 : !1;
363
+ var d = b.list[p.slice(m + 1)];
364
+ return d ? d.indexOf(" " + p.slice(n + 1, m) + " ") >= 0 : !1;
365
365
  },
366
- is: function(l) {
367
- var g = l.lastIndexOf(".");
368
- if (g <= 0 || g >= l.length - 1)
366
+ is: function(p) {
367
+ var m = p.lastIndexOf(".");
368
+ if (m <= 0 || m >= p.length - 1)
369
369
  return !1;
370
- var n = l.lastIndexOf(".", g - 1);
370
+ var n = p.lastIndexOf(".", m - 1);
371
371
  if (n >= 0)
372
372
  return !1;
373
- var h = b.list[l.slice(g + 1)];
374
- return h ? h.indexOf(" " + l.slice(0, g) + " ") >= 0 : !1;
373
+ var d = b.list[p.slice(m + 1)];
374
+ return d ? d.indexOf(" " + p.slice(0, m) + " ") >= 0 : !1;
375
375
  },
376
- get: function(l) {
377
- var g = l.lastIndexOf(".");
378
- if (g <= 0 || g >= l.length - 1)
376
+ get: function(p) {
377
+ var m = p.lastIndexOf(".");
378
+ if (m <= 0 || m >= p.length - 1)
379
379
  return null;
380
- var n = l.lastIndexOf(".", g - 1);
381
- if (n <= 0 || n >= g - 1)
380
+ var n = p.lastIndexOf(".", m - 1);
381
+ if (n <= 0 || n >= m - 1)
382
382
  return null;
383
- var h = b.list[l.slice(g + 1)];
384
- return !h || h.indexOf(" " + l.slice(n + 1, g) + " ") < 0 ? null : l.slice(n + 1);
383
+ var d = b.list[p.slice(m + 1)];
384
+ return !d || d.indexOf(" " + p.slice(n + 1, m) + " ") < 0 ? null : p.slice(n + 1);
385
385
  },
386
386
  noConflict: function() {
387
- return p.SecondLevelDomains === this && (p.SecondLevelDomains = y), this;
387
+ return l.SecondLevelDomains === this && (l.SecondLevelDomains = v), this;
388
388
  }
389
389
  };
390
390
  return b;
@@ -403,11 +403,11 @@ function de() {
403
403
  * MIT License http://www.opensource.org/licenses/mit-license
404
404
  *
405
405
  */
406
- (function(d) {
407
- (function(p, y) {
408
- d.exports ? d.exports = y(he(), pe(), de()) : p.URI = y(p.punycode, p.IPv6, p.SecondLevelDomains, p);
409
- })(G, function(p, y, b, l) {
410
- var g = l && l.URI;
406
+ (function(h) {
407
+ (function(l, v) {
408
+ h.exports ? h.exports = v(pe(), de(), ge()) : l.URI = v(l.punycode, l.IPv6, l.SecondLevelDomains, l);
409
+ })(W, function(l, v, b, p) {
410
+ var m = p && p.URI;
411
411
  function n(e, r) {
412
412
  var t = arguments.length >= 1, o = arguments.length >= 2;
413
413
  if (!(this instanceof n))
@@ -421,7 +421,7 @@ function de() {
421
421
  throw new TypeError("null is not a valid argument for URI");
422
422
  return this.href(e), r !== void 0 ? this.absoluteTo(r) : this;
423
423
  }
424
- function h(e) {
424
+ function d(e) {
425
425
  return /^[0-9]+$/.test(e);
426
426
  }
427
427
  n.version = "1.19.11";
@@ -429,17 +429,17 @@ function de() {
429
429
  function z(e) {
430
430
  return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1");
431
431
  }
432
- function j(e) {
432
+ function S(e) {
433
433
  return e === void 0 ? "Undefined" : String(Object.prototype.toString.call(e)).slice(8, -1);
434
434
  }
435
- function v(e) {
436
- return j(e) === "Array";
435
+ function y(e) {
436
+ return S(e) === "Array";
437
437
  }
438
438
  function M(e, r) {
439
439
  var t = {}, o, i;
440
- if (j(r) === "RegExp")
440
+ if (S(r) === "RegExp")
441
441
  t = null;
442
- else if (v(r))
442
+ else if (y(r))
443
443
  for (o = 0, i = r.length; o < i; o++)
444
444
  t[r[o]] = !0;
445
445
  else
@@ -450,15 +450,15 @@ function de() {
450
450
  }
451
451
  return e;
452
452
  }
453
- function q(e, r) {
453
+ function U(e, r) {
454
454
  var t, o;
455
- if (v(r)) {
455
+ if (y(r)) {
456
456
  for (t = 0, o = r.length; t < o; t++)
457
- if (!q(e, r[t]))
457
+ if (!U(e, r[t]))
458
458
  return !1;
459
459
  return !0;
460
460
  }
461
- var i = j(r);
461
+ var i = S(r);
462
462
  for (t = 0, o = e.length; t < o; t++)
463
463
  if (i === "RegExp") {
464
464
  if (typeof e[t] == "string" && e[t].match(r))
@@ -467,8 +467,8 @@ function de() {
467
467
  return !0;
468
468
  return !1;
469
469
  }
470
- function U(e, r) {
471
- if (!v(e) || !v(r) || e.length !== r.length)
470
+ function F(e, r) {
471
+ if (!y(e) || !y(r) || e.length !== r.length)
472
472
  return !1;
473
473
  e.sort(), r.sort();
474
474
  for (var t = 0, o = e.length; t < o; t++)
@@ -542,13 +542,13 @@ function de() {
542
542
  function N(e) {
543
543
  return escape(e);
544
544
  }
545
- function L(e) {
545
+ function $(e) {
546
546
  return encodeURIComponent(e).replace(/[!'()*]/g, N).replace(/\*/g, "%2A");
547
547
  }
548
- n.encode = L, n.decode = decodeURIComponent, n.iso8859 = function() {
548
+ n.encode = $, n.decode = decodeURIComponent, n.iso8859 = function() {
549
549
  n.encode = escape, n.decode = unescape;
550
550
  }, n.unicode = function() {
551
- n.encode = L, n.decode = decodeURIComponent;
551
+ n.encode = $, n.decode = decodeURIComponent;
552
552
  }, n.characters = {
553
553
  pathname: {
554
554
  encode: {
@@ -652,7 +652,7 @@ function de() {
652
652
  return e;
653
653
  }
654
654
  };
655
- var C = { encode: "encode", decode: "decode" }, $, S = function(e, r) {
655
+ var C = { encode: "encode", decode: "decode" }, L, j = function(e, r) {
656
656
  return function(t) {
657
657
  try {
658
658
  return n[r](t + "").replace(n.characters[e][r].expression, function(o) {
@@ -663,8 +663,8 @@ function de() {
663
663
  }
664
664
  };
665
665
  };
666
- for ($ in C)
667
- n[$ + "PathSegment"] = S("pathname", C[$]), n[$ + "UrnPathSegment"] = S("urnpath", C[$]);
666
+ for (L in C)
667
+ n[L + "PathSegment"] = j("pathname", C[L]), n[L + "UrnPathSegment"] = j("urnpath", C[L]);
668
668
  var T = function(e, r, t) {
669
669
  return function(o) {
670
670
  var i;
@@ -676,7 +676,7 @@ function de() {
676
676
  return a.join(e);
677
677
  };
678
678
  };
679
- n.decodePath = T("/", "decodePathSegment"), n.decodeUrnPath = T(":", "decodeUrnPathSegment"), n.recodePath = T("/", "encodePathSegment", "decode"), n.recodeUrnPath = T(":", "encodeUrnPathSegment", "decode"), n.encodeReserved = S("reserved", "encode"), n.parse = function(e, r) {
679
+ n.decodePath = T("/", "decodePathSegment"), n.decodeUrnPath = T(":", "decodeUrnPathSegment"), n.recodePath = T("/", "encodePathSegment", "decode"), n.recodeUrnPath = T(":", "encodeUrnPathSegment", "decode"), n.encodeReserved = j("reserved", "encode"), n.parse = function(e, r) {
680
680
  var t;
681
681
  return r || (r = {
682
682
  preventInvalidHostname: n.preventInvalidHostname
@@ -724,7 +724,7 @@ function de() {
724
724
  var o = "", i, a, u, c;
725
725
  for (a in e)
726
726
  if (a !== "__proto__" && P.call(e, a))
727
- if (v(e[a]))
727
+ if (y(e[a]))
728
728
  for (i = {}, u = 0, c = e[a].length; u < c; u++)
729
729
  e[a][u] !== void 0 && i[e[a][u] + ""] === void 0 && (o += "&" + n.buildQueryParameter(a, e[a][u], t), r !== !0 && (i[e[a][u] + ""] = !0));
730
730
  else e[a] !== void 0 && (o += "&" + n.buildQueryParameter(a, e[a], t));
@@ -740,7 +740,7 @@ function de() {
740
740
  e[r] = t;
741
741
  return;
742
742
  } else typeof e[r] == "string" && (e[r] = [e[r]]);
743
- v(t) || (t = [t]), e[r] = (e[r] || []).concat(t);
743
+ y(t) || (t = [t]), e[r] = (e[r] || []).concat(t);
744
744
  } else
745
745
  throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");
746
746
  }, n.setQuery = function(e, r, t) {
@@ -753,21 +753,21 @@ function de() {
753
753
  throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");
754
754
  }, n.removeQuery = function(e, r, t) {
755
755
  var o, i, a;
756
- if (v(r))
756
+ if (y(r))
757
757
  for (o = 0, i = r.length; o < i; o++)
758
758
  e[r[o]] = void 0;
759
- else if (j(r) === "RegExp")
759
+ else if (S(r) === "RegExp")
760
760
  for (a in e)
761
761
  r.test(a) && (e[a] = void 0);
762
762
  else if (typeof r == "object")
763
763
  for (a in r)
764
764
  P.call(r, a) && n.removeQuery(e, a, r[a]);
765
765
  else if (typeof r == "string")
766
- t !== void 0 ? j(t) === "RegExp" ? !v(e[r]) && t.test(e[r]) ? e[r] = void 0 : e[r] = M(e[r], t) : e[r] === String(t) && (!v(t) || t.length === 1) ? e[r] = void 0 : v(e[r]) && (e[r] = M(e[r], t)) : e[r] = void 0;
766
+ t !== void 0 ? S(t) === "RegExp" ? !y(e[r]) && t.test(e[r]) ? e[r] = void 0 : e[r] = M(e[r], t) : e[r] === String(t) && (!y(t) || t.length === 1) ? e[r] = void 0 : y(e[r]) && (e[r] = M(e[r], t)) : e[r] = void 0;
767
767
  else
768
768
  throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");
769
769
  }, n.hasQuery = function(e, r, t, o) {
770
- switch (j(r)) {
770
+ switch (S(r)) {
771
771
  case "String":
772
772
  break;
773
773
  case "RegExp":
@@ -783,25 +783,25 @@ function de() {
783
783
  default:
784
784
  throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter");
785
785
  }
786
- switch (j(t)) {
786
+ switch (S(t)) {
787
787
  case "Undefined":
788
788
  return r in e;
789
789
  case "Boolean":
790
- var u = !!(v(e[r]) ? e[r].length : e[r]);
790
+ var u = !!(y(e[r]) ? e[r].length : e[r]);
791
791
  return t === u;
792
792
  case "Function":
793
793
  return !!t(e[r], r, e);
794
794
  case "Array":
795
- if (!v(e[r]))
795
+ if (!y(e[r]))
796
796
  return !1;
797
- var c = o ? q : U;
797
+ var c = o ? U : F;
798
798
  return c(e[r], t);
799
799
  case "RegExp":
800
- return v(e[r]) ? o ? q(e[r], t) : !1 : !!(e[r] && e[r].match(t));
800
+ return y(e[r]) ? o ? U(e[r], t) : !1 : !!(e[r] && e[r].match(t));
801
801
  case "Number":
802
802
  t = String(t);
803
803
  case "String":
804
- return v(e[r]) ? o ? q(e[r], t) : !1 : e[r] === t;
804
+ return y(e[r]) ? o ? U(e[r], t) : !1 : e[r] === t;
805
805
  default:
806
806
  throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter");
807
807
  }
@@ -831,44 +831,44 @@ function de() {
831
831
  var f = o.exec(e);
832
832
  if (!f)
833
833
  break;
834
- var m = f.index;
834
+ var g = f.index;
835
835
  if (t.ignoreHtml) {
836
- var w = e.slice(Math.max(m - 3, 0), m);
836
+ var w = e.slice(Math.max(g - 3, 0), g);
837
837
  if (w && c.test(w))
838
838
  continue;
839
839
  }
840
- for (var _ = m + e.slice(m).search(i), x = e.slice(m, _), k = -1; ; ) {
840
+ for (var _ = g + e.slice(g).search(i), x = e.slice(g, _), k = -1; ; ) {
841
841
  var I = u.exec(x);
842
842
  if (!I)
843
843
  break;
844
- var F = I.index + I[0].length;
845
- k = Math.max(k, F);
844
+ var q = I.index + I[0].length;
845
+ k = Math.max(k, q);
846
846
  }
847
847
  if (k > -1 ? x = x.slice(0, k) + x.slice(k).replace(a, "") : x = x.replace(a, ""), !(x.length <= f[0].length) && !(t.ignore && t.ignore.test(x))) {
848
- _ = m + x.length;
849
- var A = r(x, m, _, e);
848
+ _ = g + x.length;
849
+ var A = r(x, g, _, e);
850
850
  if (A === void 0) {
851
851
  o.lastIndex = _;
852
852
  continue;
853
853
  }
854
- A = String(A), e = e.slice(0, m) + A + e.slice(_), o.lastIndex = m + A.length;
854
+ A = String(A), e = e.slice(0, g) + A + e.slice(_), o.lastIndex = g + A.length;
855
855
  }
856
856
  }
857
857
  return o.lastIndex = 0, e;
858
858
  }, n.ensureValidHostname = function(e, r) {
859
859
  var t = !!e, o = !!r, i = !1;
860
- if (o && (i = q(n.hostProtocols, r)), i && !t)
860
+ if (o && (i = U(n.hostProtocols, r)), i && !t)
861
861
  throw new TypeError("Hostname cannot be empty, if protocol is " + r);
862
862
  if (e && e.match(n.invalid_hostname_characters)) {
863
- if (!p)
863
+ if (!l)
864
864
  throw new TypeError('Hostname "' + e + '" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');
865
- if (p.toASCII(e).match(n.invalid_hostname_characters))
865
+ if (l.toASCII(e).match(n.invalid_hostname_characters))
866
866
  throw new TypeError('Hostname "' + e + '" contains characters other than [A-Z0-9.-:_]');
867
867
  }
868
868
  }, n.ensureValidPort = function(e) {
869
869
  if (e) {
870
870
  var r = Number(e);
871
- if (!(h(r) && r > 0 && r < 65536))
871
+ if (!(d(r) && r > 0 && r < 65536))
872
872
  throw new TypeError('Port "' + e + '" is not a valid port');
873
873
  }
874
874
  }, n.noConflict = function(e) {
@@ -876,8 +876,8 @@ function de() {
876
876
  var r = {
877
877
  URI: this.noConflict()
878
878
  };
879
- return l.URITemplate && typeof l.URITemplate.noConflict == "function" && (r.URITemplate = l.URITemplate.noConflict()), l.IPv6 && typeof l.IPv6.noConflict == "function" && (r.IPv6 = l.IPv6.noConflict()), l.SecondLevelDomains && typeof l.SecondLevelDomains.noConflict == "function" && (r.SecondLevelDomains = l.SecondLevelDomains.noConflict()), r;
880
- } else l.URI === this && (l.URI = g);
879
+ return p.URITemplate && typeof p.URITemplate.noConflict == "function" && (r.URITemplate = p.URITemplate.noConflict()), p.IPv6 && typeof p.IPv6.noConflict == "function" && (r.IPv6 = p.IPv6.noConflict()), p.SecondLevelDomains && typeof p.SecondLevelDomains.noConflict == "function" && (r.SecondLevelDomains = p.SecondLevelDomains.noConflict()), r;
880
+ } else p.URI === this && (p.URI = m);
881
881
  return this;
882
882
  }, s.build = function(e) {
883
883
  return e === !0 ? this._deferred_build = !0 : (e === void 0 || this._deferred_build) && (this._string = n.build(this._parts), this._deferred_build = !1), this;
@@ -1134,7 +1134,7 @@ function de() {
1134
1134
  if (a && u.shift(), e < 0 && (e = Math.max(u.length + e, 0)), r === void 0)
1135
1135
  return e === void 0 ? u : u[e];
1136
1136
  if (e === null || u[e] === void 0)
1137
- if (v(r)) {
1137
+ if (y(r)) {
1138
1138
  u = [];
1139
1139
  for (var c = 0, f = r.length; c < f; c++)
1140
1140
  !r[c].length && (!u.length || !u[u.length - 1].length) || (u.length && !u[u.length - 1].length && u.pop(), u.push(E(r[c])));
@@ -1145,14 +1145,14 @@ function de() {
1145
1145
  }, s.segmentCoded = function(e, r, t) {
1146
1146
  var o, i, a;
1147
1147
  if (typeof e != "number" && (t = r, r = e, e = void 0), r === void 0) {
1148
- if (o = this.segment(e, r, t), !v(o))
1148
+ if (o = this.segment(e, r, t), !y(o))
1149
1149
  o = o !== void 0 ? n.decode(o) : void 0;
1150
1150
  else
1151
1151
  for (i = 0, a = o.length; i < a; i++)
1152
1152
  o[i] = n.decode(o[i]);
1153
1153
  return o;
1154
1154
  }
1155
- if (!v(r))
1155
+ if (!y(r))
1156
1156
  r = typeof r == "string" || r instanceof String ? n.encode(r) : r;
1157
1157
  else
1158
1158
  for (i = 0, a = r.length; i < a; i++)
@@ -1191,7 +1191,7 @@ function de() {
1191
1191
  }, s.normalizeProtocol = function(e) {
1192
1192
  return typeof this._parts.protocol == "string" && (this._parts.protocol = this._parts.protocol.toLowerCase(), this.build(!e)), this;
1193
1193
  }, s.normalizeHostname = function(e) {
1194
- return this._parts.hostname && (this.is("IDN") && p ? this._parts.hostname = p.toASCII(this._parts.hostname) : this.is("IPv6") && y && (this._parts.hostname = y.best(this._parts.hostname)), this._parts.hostname = this._parts.hostname.toLowerCase(), this.build(!e)), this;
1194
+ return this._parts.hostname && (this.is("IDN") && l ? this._parts.hostname = l.toASCII(this._parts.hostname) : this.is("IPv6") && v && (this._parts.hostname = v.best(this._parts.hostname)), this._parts.hostname = this._parts.hostname.toLowerCase(), this.build(!e)), this;
1195
1195
  }, s.normalizePort = function(e) {
1196
1196
  return typeof this._parts.protocol == "string" && this._parts.port === n.defaultPorts[this._parts.protocol] && (this._parts.port = null, this.build(!e)), this;
1197
1197
  }, s.normalizePath = function(e) {
@@ -1227,7 +1227,7 @@ function de() {
1227
1227
  return this;
1228
1228
  }, s.unicode = function() {
1229
1229
  var e = n.encode, r = n.decode;
1230
- n.encode = L, n.decode = unescape;
1230
+ n.encode = $, n.decode = unescape;
1231
1231
  try {
1232
1232
  this.normalize();
1233
1233
  } finally {
@@ -1238,7 +1238,7 @@ function de() {
1238
1238
  var e = this.clone();
1239
1239
  e.username("").password("").normalize();
1240
1240
  var r = "";
1241
- if (e._parts.protocol && (r += e._parts.protocol + "://"), e._parts.hostname && (e.is("punycode") && p ? (r += p.toUnicode(e._parts.hostname), e._parts.port && (r += ":" + e._parts.port)) : r += e.host()), e._parts.hostname && e._parts.path && e._parts.path.charAt(0) !== "/" && (r += "/"), r += e.path(!0), e._parts.query) {
1241
+ if (e._parts.protocol && (r += e._parts.protocol + "://"), e._parts.hostname && (e.is("punycode") && l ? (r += l.toUnicode(e._parts.hostname), e._parts.port && (r += ":" + e._parts.port)) : r += e.host()), e._parts.hostname && e._parts.path && e._parts.path.charAt(0) !== "/" && (r += "/"), r += e.path(!0), e._parts.query) {
1242
1242
  for (var t = "", o = 0, i = e._parts.query.split("&"), a = i.length; o < a; o++) {
1243
1243
  var u = (i[o] || "").split("=");
1244
1244
  t += "&" + n.decodeQuery(u[0], this._parts.escapeQuerySpace).replace(/&/g, "%26"), u[1] !== void 0 && (t += "=" + n.decodeQuery(u[1], this._parts.escapeQuerySpace).replace(/&/g, "%26"));
@@ -1284,8 +1284,8 @@ function de() {
1284
1284
  o = n.parseQuery(u, this._parts.escapeQuerySpace), i = n.parseQuery(c, this._parts.escapeQuerySpace);
1285
1285
  for (f in o)
1286
1286
  if (P.call(o, f)) {
1287
- if (v(o[f])) {
1288
- if (!U(o[f], i[f]))
1287
+ if (y(o[f])) {
1288
+ if (!F(o[f], i[f]))
1289
1289
  return !1;
1290
1290
  } else if (o[f] !== i[f])
1291
1291
  return !1;
@@ -1304,39 +1304,39 @@ function de() {
1304
1304
  }, n;
1305
1305
  });
1306
1306
  })(ce);
1307
- var ge = ce.exports;
1308
- const ue = /* @__PURE__ */ le(ge), we = [
1307
+ var me = ce.exports;
1308
+ const ue = /* @__PURE__ */ he(me), we = [
1309
1309
  "http",
1310
1310
  "https"
1311
1311
  ];
1312
- function me(d) {
1313
- return typeof d == "string" && d.startsWith("/vsi") && !d.startsWith("/vsicurl/");
1312
+ function ve(h) {
1313
+ return typeof h == "string" && h.startsWith("/vsi") && !h.startsWith("/vsicurl/");
1314
1314
  }
1315
- function ve(d, p, y = !0) {
1316
- return ye(d, p, !1, y);
1315
+ function fe(h, l, v = !0) {
1316
+ return ye(h, l, !1, v);
1317
1317
  }
1318
- function ye(d, p = null, y = !1, b = !0) {
1319
- typeof d == "string" && d.startsWith("/vsicurl/") && (d = d.replace(/^\/vsicurl\//, ""));
1320
- let l = ue(d);
1321
- if (p && l.is("relative") && !me(d)) {
1322
- let g = ue(p), n = g.path();
1323
- !n.endsWith("/") && !n.endsWith(".json") && g.path(n + "/"), l = l.absoluteTo(g);
1318
+ function ye(h, l = null, v = !1, b = !0) {
1319
+ typeof h == "string" && h.startsWith("/vsicurl/") && (h = h.replace(/^\/vsicurl\//, ""));
1320
+ let p = ue(h);
1321
+ if (l && p.is("relative") && !ve(h)) {
1322
+ let m = ue(l), n = m.path();
1323
+ !n.endsWith("/") && !n.endsWith(".json") && m.path(n + "/"), p = p.absoluteTo(m);
1324
1324
  }
1325
- return l.normalize(), y && (l.query(""), l.fragment("")), b ? l.toString() : l;
1325
+ return p.normalize(), v && (p.query(""), p.fragment("")), b ? p.toString() : p;
1326
1326
  }
1327
- function xe(d) {
1328
- const p = [];
1329
- return d.forEach((b) => {
1327
+ function xe(h) {
1328
+ const l = [];
1329
+ return h?.forEach((b) => {
1330
1330
  if (b.rel === "item" && "latlng" in b) {
1331
- const [l, g] = (
1331
+ const [p, m] = (
1332
1332
  /** @type {string} */
1333
1333
  b.latlng.split(",").map((n) => Number(n))
1334
1334
  );
1335
- p.push({
1335
+ l.push({
1336
1336
  type: "Feature",
1337
1337
  geometry: {
1338
1338
  type: "Point",
1339
- coordinates: [g, l]
1339
+ coordinates: [m, p]
1340
1340
  }
1341
1341
  });
1342
1342
  }
@@ -1348,70 +1348,44 @@ function xe(d) {
1348
1348
  name: "EPSG:4326"
1349
1349
  }
1350
1350
  },
1351
- features: p
1351
+ features: l
1352
1352
  };
1353
1353
  }
1354
- function ke(d) {
1355
- let p = {};
1356
- return d?.jsonform && (p = { schema: d.jsonform, type: "style" }, delete d?.jsonform), { layerConfig: p, style: d };
1354
+ function ke(h) {
1355
+ let l;
1356
+ return h?.jsonform && (l = { schema: h.jsonform, type: "style" }, delete h.jsonform), { layerConfig: l, style: h };
1357
1357
  }
1358
- async function ze(d, p, y, b, l) {
1359
- let g = [], n = [];
1360
- for (const h in y)
1361
- await fe(
1362
- /** @type {number | undefined} */
1363
- y[h]?.["proj:epsg"]
1364
- ), y[h]?.type === "application/geo+json" ? g.push({
1365
- type: "Vector",
1366
- source: {
1367
- type: "Vector",
1368
- url: y[h].href,
1369
- format: "GeoJSON"
1370
- },
1371
- properties: {
1372
- id: d,
1373
- title: p,
1374
- layerConfig: {
1375
- ...l,
1376
- style: b
1377
- }
1378
- }
1379
- }) : y[h]?.type === "image/tiff" && n.push({ url: y[h].href });
1380
- return n.length && g.push({
1381
- type: "WebGLTile",
1382
- source: {
1383
- type: "GeoTIFF",
1384
- normalize: !b?.variables,
1385
- sources: n
1386
- },
1387
- properties: {
1388
- id: d,
1389
- title: p,
1390
- layerConfig: l
1391
- },
1392
- style: b
1393
- }), g;
1394
- }
1395
- const Pe = (d) => {
1396
- d?.["proj:epsg"] ? (ee.value && ee.value !== d?.["proj:epsg"] && oe(
1358
+ const ze = (h) => {
1359
+ h?.["proj:epsg"] ? (ee.value && ee.value !== h?.["proj:epsg"] && oe(
1397
1360
  /** @type {number} */
1398
- d["proj:epsg"]
1361
+ h["proj:epsg"]
1399
1362
  ), ee.value = /** @type {string} */
1400
- d["proj:epsg"]) : oe(ee.value = "");
1363
+ h["proj:epsg"]) : oe(ee.value = "");
1401
1364
  };
1402
- function Ie(d, p) {
1403
- const y = [];
1404
- return d?.links && d?.links[1].rel === "item" ? y.push(p) : d?.links[1].rel === "child" && d.links.forEach((b) => {
1405
- b.rel === "child" && y.push(ve(b.href, p));
1406
- }), y;
1365
+ function Pe(h, l) {
1366
+ const v = [];
1367
+ return h?.links && h?.links[1].rel === "item" ? v.push(l) : h?.links[1].rel === "child" && h.links.forEach((b) => {
1368
+ b.rel === "child" && v.push(fe(b.href, l));
1369
+ }), v;
1407
1370
  }
1371
+ const Ie = () => Date.now().toString(36) + Math.random().toString(36).substring(2), Ae = (h, l) => {
1372
+ l?.forEach((v) => (v === "visible" && (h.visible = !0), (v === "overlay" || v === "baselayer") && (h.group = v), h));
1373
+ }, Qe = async (h, l) => {
1374
+ const v = h.links.find((b) => b.rel.includes("style"));
1375
+ if (v) {
1376
+ let b = "";
1377
+ return v.href.startsWith("http") ? b = v.href : b = fe(v.href, l), await le.get(b).then((m) => m.data);
1378
+ }
1379
+ };
1408
1380
  export {
1409
1381
  ue as U,
1410
- ke as a,
1382
+ Ae as a,
1411
1383
  we as b,
1412
- ze as c,
1413
- Ie as e,
1384
+ ke as c,
1385
+ Pe as e,
1386
+ Qe as f,
1414
1387
  xe as g,
1415
- Pe as s,
1416
- ve as t
1388
+ ze as s,
1389
+ fe as t,
1390
+ Ie as u
1417
1391
  };