@opengis/gis 0.0.5 → 0.0.7

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.
@@ -270,9 +270,9 @@ function Uv() {
270
270
  function Ti(n) {
271
271
  return Array.isArray(n) ? n.map(Ti) : typeof n == "object" && n ? Hi(n, Ti) : n;
272
272
  }
273
- const vt = {};
273
+ const _t = {};
274
274
  function wt(n) {
275
- vt[n] || (typeof console < "u" && console.warn(n), vt[n] = !0);
275
+ _t[n] || (typeof console < "u" && console.warn(n), _t[n] = !0);
276
276
  }
277
277
  function ht(n, t, i) {
278
278
  return (i.y - n.y) * (t.x - n.x) > (t.y - n.y) * (i.x - n.x);
@@ -480,7 +480,7 @@ function Uv() {
480
480
  function pt(n, t, i, o) {
481
481
  Ye(n, i, o), Ee(n, t, i);
482
482
  }
483
- function _t(n, t, i) {
483
+ function vt(n, t, i) {
484
484
  let o;
485
485
  for (o in n[i]) if (Object.prototype.hasOwnProperty.call(n[i], o) && o !== "data" && !Ie(n[i][o], t[i][o])) return !1;
486
486
  for (o in t[i]) if (Object.prototype.hasOwnProperty.call(t[i], o) && o !== "data" && !Ie(n[i][o], t[i][o])) return !1;
@@ -8701,7 +8701,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
8701
8701
  (function(m, y, w, C) {
8702
8702
  let L;
8703
8703
  for (L in y = y || {}, m = m || {}) Object.prototype.hasOwnProperty.call(m, L) && (Object.prototype.hasOwnProperty.call(y, L) || Ye(L, w, C));
8704
- for (L in y) Object.prototype.hasOwnProperty.call(y, L) && (Object.prototype.hasOwnProperty.call(m, L) ? Ie(m[L], y[L]) || (m[L].type === "geojson" && y[L].type === "geojson" && _t(m, y, L) ? Be(w, { command: "setGeoJSONSourceData", args: [L, y[L].data] }) : pt(L, y, w, C)) : Ee(L, y, w));
8704
+ for (L in y) Object.prototype.hasOwnProperty.call(y, L) && (Object.prototype.hasOwnProperty.call(m, L) ? Ie(m[L], y[L]) || (m[L].type === "geojson" && y[L].type === "geojson" && vt(m, y, L) ? Be(w, { command: "setGeoJSONSourceData", args: [L, y[L].data] }) : pt(L, y, w, C)) : Ee(L, y, w));
8705
8705
  })(n.sources, t.sources, c, o);
8706
8706
  const f = [];
8707
8707
  n.layers && n.layers.forEach((m) => {
@@ -9084,10 +9084,10 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9084
9084
  this.inFlightDependencies.push(Ot), Ye = ue.sendAsync({ type: "GG", data: { stacks: Ee, source: this.source, tileID: this.tileID, type: "glyphs" } }, Ot);
9085
9085
  }
9086
9086
  const pt = Object.keys(Ie.iconDependencies);
9087
- let _t = Promise.resolve({});
9087
+ let vt = Promise.resolve({});
9088
9088
  if (pt.length) {
9089
9089
  const Ot = new AbortController();
9090
- this.inFlightDependencies.push(Ot), _t = ue.sendAsync({ type: "GI", data: { icons: pt, source: this.source, tileID: this.tileID, type: "icons" } }, Ot);
9090
+ this.inFlightDependencies.push(Ot), vt = ue.sendAsync({ type: "GI", data: { icons: pt, source: this.source, tileID: this.tileID, type: "icons" } }, Ot);
9091
9091
  }
9092
9092
  const It = Object.keys(Ie.patternDependencies);
9093
9093
  let Wt = Promise.resolve({});
@@ -9095,7 +9095,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9095
9095
  const Ot = new AbortController();
9096
9096
  this.inFlightDependencies.push(Ot), Wt = ue.sendAsync({ type: "GI", data: { icons: It, source: this.source, tileID: this.tileID, type: "patterns" } }, Ot);
9097
9097
  }
9098
- const [zt, Ne, pr] = yield Promise.all([Ye, _t, Wt]), $t = new z(zt), ur = new v.cx(Ne, pr);
9098
+ const [zt, Ne, pr] = yield Promise.all([Ye, vt, Wt]), $t = new z(zt), ur = new v.cx(Ne, pr);
9099
9099
  for (const Ot in ke) {
9100
9100
  const Qe = ke[Ot];
9101
9101
  Qe instanceof v.a6 ? (M(Qe.layers, this.zoom, $), v.cy({ bucket: Qe, glyphMap: zt, glyphPositions: $t.positions, imageMap: Ne, imagePositions: ur.iconPositions, showCollisionBoxes: this.showCollisionBoxes, canonical: this.tileID.canonical, subdivisionGranularity: Ie.subdivisionGranularity })) : Qe.hasPattern && (Qe instanceof v.cz || Qe instanceof v.cA || Qe instanceof v.cB) && (M(Qe.layers, this.zoom, $), Qe.addFeatures(Ie, this.tileID.canonical, ur.patternPositions));
@@ -9263,25 +9263,25 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9263
9263
  if (fe) return ee;
9264
9264
  fe = 1;
9265
9265
  var Be = v.cI(), Ee = v.cJ().VectorTileFeature;
9266
- function Ye(_t, It) {
9267
- this.options = It || {}, this.features = _t, this.length = _t.length;
9266
+ function Ye(vt, It) {
9267
+ this.options = It || {}, this.features = vt, this.length = vt.length;
9268
9268
  }
9269
- function pt(_t, It) {
9270
- this.id = typeof _t.id == "number" ? _t.id : void 0, this.type = _t.type, this.rawGeometry = _t.type === 1 ? [_t.geometry] : _t.geometry, this.properties = _t.tags, this.extent = It || 4096;
9269
+ function pt(vt, It) {
9270
+ this.id = typeof vt.id == "number" ? vt.id : void 0, this.type = vt.type, this.rawGeometry = vt.type === 1 ? [vt.geometry] : vt.geometry, this.properties = vt.tags, this.extent = It || 4096;
9271
9271
  }
9272
- return ee = Ye, Ye.prototype.feature = function(_t) {
9273
- return new pt(this.features[_t], this.options.extent);
9272
+ return ee = Ye, Ye.prototype.feature = function(vt) {
9273
+ return new pt(this.features[vt], this.options.extent);
9274
9274
  }, pt.prototype.loadGeometry = function() {
9275
- var _t = this.rawGeometry;
9275
+ var vt = this.rawGeometry;
9276
9276
  this.geometry = [];
9277
- for (var It = 0; It < _t.length; It++) {
9278
- for (var Wt = _t[It], zt = [], Ne = 0; Ne < Wt.length; Ne++) zt.push(new Be(Wt[Ne][0], Wt[Ne][1]));
9277
+ for (var It = 0; It < vt.length; It++) {
9278
+ for (var Wt = vt[It], zt = [], Ne = 0; Ne < Wt.length; Ne++) zt.push(new Be(Wt[Ne][0], Wt[Ne][1]));
9279
9279
  this.geometry.push(zt);
9280
9280
  }
9281
9281
  return this.geometry;
9282
9282
  }, pt.prototype.bbox = function() {
9283
9283
  this.geometry || this.loadGeometry();
9284
- for (var _t = this.geometry, It = 1 / 0, Wt = -1 / 0, zt = 1 / 0, Ne = -1 / 0, pr = 0; pr < _t.length; pr++) for (var $t = _t[pr], ur = 0; ur < $t.length; ur++) {
9284
+ for (var vt = this.geometry, It = 1 / 0, Wt = -1 / 0, zt = 1 / 0, Ne = -1 / 0, pr = 0; pr < vt.length; pr++) for (var $t = vt[pr], ur = 0; ur < $t.length; ur++) {
9285
9285
  var Ot = $t[ur];
9286
9286
  It = Math.min(It, Ot.x), Wt = Math.max(Wt, Ot.x), zt = Math.min(zt, Ot.y), Ne = Math.max(Ne, Ot.y);
9287
9287
  }
@@ -9291,7 +9291,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9291
9291
  function X(Be) {
9292
9292
  var Ee = new Se();
9293
9293
  return function(Ye, pt) {
9294
- for (var _t in Ye.layers) pt.writeMessage(3, $, Ye.layers[_t]);
9294
+ for (var vt in Ye.layers) pt.writeMessage(3, $, Ye.layers[vt]);
9295
9295
  }(Be, Ee), Ee.finish();
9296
9296
  }
9297
9297
  function $(Be, Ee) {
@@ -9299,8 +9299,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9299
9299
  Ee.writeVarintField(15, Be.version || 1), Ee.writeStringField(1, Be.name || ""), Ee.writeVarintField(5, Be.extent || 4096);
9300
9300
  var pt = { keys: [], values: [], keycache: {}, valuecache: {} };
9301
9301
  for (Ye = 0; Ye < Be.length; Ye++) pt.feature = Be.feature(Ye), Ee.writeMessage(2, ue, pt);
9302
- var _t = pt.keys;
9303
- for (Ye = 0; Ye < _t.length; Ye++) Ee.writeStringField(3, _t[Ye]);
9302
+ var vt = pt.keys;
9303
+ for (Ye = 0; Ye < vt.length; Ye++) Ee.writeStringField(3, vt[Ye]);
9304
9304
  var It = pt.values;
9305
9305
  for (Ye = 0; Ye < It.length; Ye++) Ee.writeMessage(4, Ie, It[Ye]);
9306
9306
  }
@@ -9309,7 +9309,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9309
9309
  Ye.id !== void 0 && Ee.writeVarintField(1, Ye.id), Ee.writeMessage(2, xe, Be), Ee.writeVarintField(3, Ye.type), Ee.writeMessage(4, ke, Ye);
9310
9310
  }
9311
9311
  function xe(Be, Ee) {
9312
- var Ye = Be.feature, pt = Be.keys, _t = Be.values, It = Be.keycache, Wt = Be.valuecache;
9312
+ var Ye = Be.feature, pt = Be.keys, vt = Be.values, It = Be.keycache, Wt = Be.valuecache;
9313
9313
  for (var zt in Ye.properties) {
9314
9314
  var Ne = Ye.properties[zt], pr = It[zt];
9315
9315
  if (Ne !== null) {
@@ -9317,7 +9317,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9317
9317
  var $t = typeof Ne;
9318
9318
  $t !== "string" && $t !== "boolean" && $t !== "number" && (Ne = JSON.stringify(Ne));
9319
9319
  var ur = $t + ":" + Ne, Ot = Wt[ur];
9320
- Ot === void 0 && (_t.push(Ne), Wt[ur] = Ot = _t.length - 1), Ee.writeVarint(Ot);
9320
+ Ot === void 0 && (vt.push(Ne), Wt[ur] = Ot = vt.length - 1), Ee.writeVarint(Ot);
9321
9321
  }
9322
9322
  }
9323
9323
  }
@@ -9328,13 +9328,13 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9328
9328
  return Be << 1 ^ Be >> 31;
9329
9329
  }
9330
9330
  function ke(Be, Ee) {
9331
- for (var Ye = Be.loadGeometry(), pt = Be.type, _t = 0, It = 0, Wt = Ye.length, zt = 0; zt < Wt; zt++) {
9331
+ for (var Ye = Be.loadGeometry(), pt = Be.type, vt = 0, It = 0, Wt = Ye.length, zt = 0; zt < Wt; zt++) {
9332
9332
  var Ne = Ye[zt], pr = 1;
9333
9333
  pt === 1 && (pr = Ne.length), Ee.writeVarint(Y(1, pr));
9334
9334
  for (var $t = pt === 3 ? Ne.length - 1 : Ne.length, ur = 0; ur < $t; ur++) {
9335
9335
  ur === 1 && pt !== 1 && Ee.writeVarint(Y(2, $t - 1));
9336
- var Ot = Ne[ur].x - _t, Qe = Ne[ur].y - It;
9337
- Ee.writeVarint(Me(Ot)), Ee.writeVarint(Me(Qe)), _t += Ot, It += Qe;
9336
+ var Ot = Ne[ur].x - vt, Qe = Ne[ur].y - It;
9337
+ Ee.writeVarint(Me(Ot)), Ee.writeVarint(Me(Qe)), vt += Ot, It += Qe;
9338
9338
  }
9339
9339
  pt === 3 && Ee.writeVarint(Y(7, 1));
9340
9340
  }
@@ -9449,8 +9449,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9449
9449
  Ee = on(Wt), Ye = Nr(zt);
9450
9450
  }
9451
9451
  const pt = { type: 1, geometry: [[Math.round(this.options.extent * (Ee * xe - $)), Math.round(this.options.extent * (Ye * xe - ue))]], tags: Be };
9452
- let _t;
9453
- _t = Ie || this.options.generateId ? X[ke + jt] : this.points[X[ke + jt]].id, _t !== void 0 && (pt.id = _t), Y.features.push(pt);
9452
+ let vt;
9453
+ vt = Ie || this.options.generateId ? X[ke + jt] : this.points[X[ke + jt]].id, vt !== void 0 && (pt.id = vt), Y.features.push(pt);
9454
9454
  }
9455
9455
  }
9456
9456
  _limitZoom(Z) {
@@ -9461,16 +9461,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9461
9461
  for (let Ee = 0; Ee < ke.length; Ee += Be) {
9462
9462
  if (ke[Ee + 2] <= X) continue;
9463
9463
  ke[Ee + 2] = X;
9464
- const Ye = ke[Ee], pt = ke[Ee + 1], _t = Z.within(ke[Ee], ke[Ee + 1], Me), It = ke[Ee + Yt];
9464
+ const Ye = ke[Ee], pt = ke[Ee + 1], vt = Z.within(ke[Ee], ke[Ee + 1], Me), It = ke[Ee + Yt];
9465
9465
  let Wt = It;
9466
- for (const zt of _t) {
9466
+ for (const zt of vt) {
9467
9467
  const Ne = zt * Be;
9468
9468
  ke[Ne + 2] > X && (Wt += ke[Ne + Yt]);
9469
9469
  }
9470
9470
  if (Wt > It && Wt >= Y) {
9471
9471
  let zt, Ne = Ye * It, pr = pt * It, $t = -1;
9472
9472
  const ur = ((Ee / Be | 0) << 5) + (X + 1) + this.points.length;
9473
- for (const Ot of _t) {
9473
+ for (const Ot of vt) {
9474
9474
  const Qe = Ot * Be;
9475
9475
  if (ke[Qe + 2] <= X) continue;
9476
9476
  ke[Qe + 2] = X;
@@ -9480,7 +9480,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9480
9480
  ke[Ee + 4] = ur, Ie.push(Ne / Wt, pr / Wt, 1 / 0, ur, -1, Wt), xe && Ie.push($t);
9481
9481
  } else {
9482
9482
  for (let zt = 0; zt < Be; zt++) Ie.push(ke[Ee + zt]);
9483
- if (Wt > 1) for (const zt of _t) {
9483
+ if (Wt > 1) for (const zt of vt) {
9484
9484
  const Ne = zt * Be;
9485
9485
  if (!(ke[Ne + 2] <= X)) {
9486
9486
  ke[Ne + 2] = X;
@@ -9534,8 +9534,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9534
9534
  const pt = vn(Se[Ye], Se[Ye + 1], ke, Ie, Be, Ee);
9535
9535
  if (pt > ue) Y = Ye, ue = pt;
9536
9536
  else if (pt === ue) {
9537
- const _t = Math.abs(Ye - xe);
9538
- _t < Me && (Y = Ye, Me = _t);
9537
+ const vt = Math.abs(Ye - xe);
9538
+ vt < Me && (Y = Ye, Me = vt);
9539
9539
  }
9540
9540
  }
9541
9541
  ue > $ && (Y - Z > 3 && jr(Se, Z, Y, $), Se[Y + 2] = ue, X - Y > 3 && jr(Se, Y, X, $));
@@ -9615,7 +9615,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9615
9615
  const Z = Math.sin(Se * Math.PI / 180), X = 0.5 - 0.25 * Math.log((1 + Z) / (1 - Z)) / Math.PI;
9616
9616
  return X < 0 ? 0 : X > 1 ? 1 : X;
9617
9617
  }
9618
- function vt(Se, Z, X, $, ue, xe, Y, Me) {
9618
+ function _t(Se, Z, X, $, ue, xe, Y, Me) {
9619
9619
  if ($ /= Z, xe >= (X /= Z) && Y < $) return Se;
9620
9620
  if (Y < X || xe >= $) return null;
9621
9621
  const ke = [];
@@ -9628,21 +9628,21 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9628
9628
  continue;
9629
9629
  }
9630
9630
  if (pt < X || Ye >= $) continue;
9631
- let _t = [];
9632
- if (Ee === "Point" || Ee === "MultiPoint") wt(Be, _t, X, $, ue);
9633
- else if (Ee === "LineString") ht(Be, _t, X, $, ue, !1, Me.lineMetrics);
9634
- else if (Ee === "MultiLineString") Zt(Be, _t, X, $, ue, !1);
9635
- else if (Ee === "Polygon") Zt(Be, _t, X, $, ue, !0);
9631
+ let vt = [];
9632
+ if (Ee === "Point" || Ee === "MultiPoint") wt(Be, vt, X, $, ue);
9633
+ else if (Ee === "LineString") ht(Be, vt, X, $, ue, !1, Me.lineMetrics);
9634
+ else if (Ee === "MultiLineString") Zt(Be, vt, X, $, ue, !1);
9635
+ else if (Ee === "Polygon") Zt(Be, vt, X, $, ue, !0);
9636
9636
  else if (Ee === "MultiPolygon") for (const It of Be) {
9637
9637
  const Wt = [];
9638
- Zt(It, Wt, X, $, ue, !0), Wt.length && _t.push(Wt);
9638
+ Zt(It, Wt, X, $, ue, !0), Wt.length && vt.push(Wt);
9639
9639
  }
9640
- if (_t.length) {
9640
+ if (vt.length) {
9641
9641
  if (Me.lineMetrics && Ee === "LineString") {
9642
- for (const It of _t) ke.push(zi(Ie.id, Ee, It, Ie.tags));
9642
+ for (const It of vt) ke.push(zi(Ie.id, Ee, It, Ie.tags));
9643
9643
  continue;
9644
9644
  }
9645
- Ee !== "LineString" && Ee !== "MultiLineString" || (_t.length === 1 ? (Ee = "LineString", _t = _t[0]) : Ee = "MultiLineString"), Ee !== "Point" && Ee !== "MultiPoint" || (Ee = _t.length === 3 ? "Point" : "MultiPoint"), ke.push(zi(Ie.id, Ee, _t, Ie.tags));
9645
+ Ee !== "LineString" && Ee !== "MultiLineString" || (vt.length === 1 ? (Ee = "LineString", vt = vt[0]) : Ee = "MultiLineString"), Ee !== "Point" && Ee !== "MultiPoint" || (Ee = vt.length === 3 ? "Point" : "MultiPoint"), ke.push(zi(Ie.id, Ee, vt, Ie.tags));
9646
9646
  }
9647
9647
  }
9648
9648
  return ke.length ? ke : null;
@@ -9663,8 +9663,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9663
9663
  Y && (Ie = Math.sqrt(Math.pow(zt - $t, 2) + Math.pow(Ne - ur, 2))), Ot < X ? Qe > X && (Be = ke(Me, zt, Ne, $t, ur, X), Y && (Me.start = Ee + Ie * Be)) : Ot > $ ? Qe < $ && (Be = ke(Me, zt, Ne, $t, ur, $), Y && (Me.start = Ee + Ie * Be)) : qt(Me, zt, Ne, pr), Qe < X && Ot >= X && (Be = ke(Me, zt, Ne, $t, ur, X), Rt = !0), Qe > $ && Ot <= $ && (Be = ke(Me, zt, Ne, $t, ur, $), Rt = !0), !xe && Rt && (Y && (Me.end = Ee + Ie * Be), Z.push(Me), Me = Ft(Se)), Y && (Ee += Ie);
9664
9664
  }
9665
9665
  let Ye = Se.length - 3;
9666
- const pt = Se[Ye], _t = Se[Ye + 1], It = ue === 0 ? pt : _t;
9667
- It >= X && It <= $ && qt(Me, pt, _t, Se[Ye + 2]), Ye = Me.length - 3, xe && Ye >= 3 && (Me[Ye] !== Me[0] || Me[Ye + 1] !== Me[1]) && qt(Me, Me[0], Me[1], Me[2]), Me.length && Z.push(Me);
9666
+ const pt = Se[Ye], vt = Se[Ye + 1], It = ue === 0 ? pt : vt;
9667
+ It >= X && It <= $ && qt(Me, pt, vt, Se[Ye + 2]), Ye = Me.length - 3, xe && Ye >= 3 && (Me[Ye] !== Me[0] || Me[Ye + 1] !== Me[1]) && qt(Me, Me[0], Me[1], Me[2]), Me.length && Z.push(Me);
9668
9668
  }
9669
9669
  function Ft(Se) {
9670
9670
  const Z = [];
@@ -9762,8 +9762,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9762
9762
  let Be = 0;
9763
9763
  for (let Ee = 0, Ye = ke.length, pt = Ye - 2; Ee < Ye; pt = Ee, Ee += 2) Be += (ke[Ee] - ke[pt]) * (ke[Ee + 1] + ke[pt + 1]);
9764
9764
  if (Be > 0 === Ie) for (let Ee = 0, Ye = ke.length; Ee < Ye / 2; Ee += 2) {
9765
- const pt = ke[Ee], _t = ke[Ee + 1];
9766
- ke[Ee] = ke[Ye - 2 - Ee], ke[Ee + 1] = ke[Ye - 1 - Ee], ke[Ye - 2 - Ee] = pt, ke[Ye - 1 - Ee] = _t;
9765
+ const pt = ke[Ee], vt = ke[Ee + 1];
9766
+ ke[Ee] = ke[Ye - 2 - Ee], ke[Ee + 1] = ke[Ye - 1 - Ee], ke[Ye - 2 - Ee] = pt, ke[Ye - 1 - Ee] = vt;
9767
9767
  }
9768
9768
  }(Me, xe), Se.push(Me);
9769
9769
  }
@@ -9785,8 +9785,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9785
9785
  this.tiles = {}, this.tileCoords = [], $ && (console.timeEnd("preprocess data"), console.log("index: maxZoom: %d, maxPoints: %d", X.indexMaxZoom, X.indexMaxPoints), console.time("generate tiles"), this.stats = {}, this.total = 0), ue = function(xe, Y) {
9786
9786
  const Me = Y.buffer / Y.extent;
9787
9787
  let ke = xe;
9788
- const Ie = vt(xe, 1, -1 - Me, Me, 0, -1, 2, Y), Be = vt(xe, 1, 1 - Me, 2 + Me, 0, -1, 2, Y);
9789
- return (Ie || Be) && (ke = vt(xe, 1, -Me, 1 + Me, 0, -1, 2, Y) || [], Ie && (ke = xr(Ie, 1).concat(ke)), Be && (ke = ke.concat(xr(Be, -1)))), ke;
9788
+ const Ie = _t(xe, 1, -1 - Me, Me, 0, -1, 2, Y), Be = _t(xe, 1, 1 - Me, 2 + Me, 0, -1, 2, Y);
9789
+ return (Ie || Be) && (ke = _t(xe, 1, -Me, 1 + Me, 0, -1, 2, Y) || [], Ie && (ke = xr(Ie, 1).concat(ke)), Be && (ke = ke.concat(xr(Be, -1)))), ke;
9790
9790
  }(ue, X), ue.length && this.splitTile(ue, 0, 0, 0), $ && (ue.length && console.log("features: %d, points: %d", this.tiles[0].numFeatures, this.tiles[0].numPoints), console.timeEnd("generate tiles"), console.log("tiles generated:", this.total, JSON.stringify(this.stats)));
9791
9791
  }
9792
9792
  splitTile(Z, X, $, ue, xe, Y, Me) {
@@ -9811,9 +9811,9 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9811
9811
  }
9812
9812
  if (pt.source = null, Z.length === 0) continue;
9813
9813
  Be > 1 && console.time("clipping");
9814
- const _t = 0.5 * Ie.buffer / Ie.extent, It = 0.5 - _t, Wt = 0.5 + _t, zt = 1 + _t;
9815
- let Ne = null, pr = null, $t = null, ur = null, Ot = vt(Z, Ee, $ - _t, $ + Wt, 0, pt.minX, pt.maxX, Ie), Qe = vt(Z, Ee, $ + It, $ + zt, 0, pt.minX, pt.maxX, Ie);
9816
- Z = null, Ot && (Ne = vt(Ot, Ee, ue - _t, ue + Wt, 1, pt.minY, pt.maxY, Ie), pr = vt(Ot, Ee, ue + It, ue + zt, 1, pt.minY, pt.maxY, Ie), Ot = null), Qe && ($t = vt(Qe, Ee, ue - _t, ue + Wt, 1, pt.minY, pt.maxY, Ie), ur = vt(Qe, Ee, ue + It, ue + zt, 1, pt.minY, pt.maxY, Ie), Qe = null), Be > 1 && console.timeEnd("clipping"), ke.push(Ne || [], X + 1, 2 * $, 2 * ue), ke.push(pr || [], X + 1, 2 * $, 2 * ue + 1), ke.push($t || [], X + 1, 2 * $ + 1, 2 * ue), ke.push(ur || [], X + 1, 2 * $ + 1, 2 * ue + 1);
9814
+ const vt = 0.5 * Ie.buffer / Ie.extent, It = 0.5 - vt, Wt = 0.5 + vt, zt = 1 + vt;
9815
+ let Ne = null, pr = null, $t = null, ur = null, Ot = _t(Z, Ee, $ - vt, $ + Wt, 0, pt.minX, pt.maxX, Ie), Qe = _t(Z, Ee, $ + It, $ + zt, 0, pt.minX, pt.maxX, Ie);
9816
+ Z = null, Ot && (Ne = _t(Ot, Ee, ue - vt, ue + Wt, 1, pt.minY, pt.maxY, Ie), pr = _t(Ot, Ee, ue + It, ue + zt, 1, pt.minY, pt.maxY, Ie), Ot = null), Qe && ($t = _t(Qe, Ee, ue - vt, ue + Wt, 1, pt.minY, pt.maxY, Ie), ur = _t(Qe, Ee, ue + It, ue + zt, 1, pt.minY, pt.maxY, Ie), Qe = null), Be > 1 && console.timeEnd("clipping"), ke.push(Ne || [], X + 1, 2 * $, 2 * ue), ke.push(pr || [], X + 1, 2 * $, 2 * ue + 1), ke.push($t || [], X + 1, 2 * $ + 1, 2 * ue), ke.push(ur || [], X + 1, 2 * $ + 1, 2 * ue + 1);
9817
9817
  }
9818
9818
  }
9819
9819
  getTile(Z, X, $) {
@@ -9880,16 +9880,16 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9880
9880
  if (!Me || !Y) return Y;
9881
9881
  const ke = {}, Ie = {}, Be = { accumulated: null, zoom: 0 }, Ee = { properties: null }, Ye = Object.keys(Me);
9882
9882
  for (const pt of Ye) {
9883
- const [_t, It] = Me[pt], Wt = v.cL(It), zt = v.cL(typeof _t == "string" ? [_t, ["accumulated"], ["get", pt]] : _t);
9883
+ const [vt, It] = Me[pt], Wt = v.cL(It), zt = v.cL(typeof vt == "string" ? [vt, ["accumulated"], ["get", pt]] : vt);
9884
9884
  ke[pt] = Wt.value, Ie[pt] = zt.value;
9885
9885
  }
9886
9886
  return Y.map = (pt) => {
9887
9887
  Ee.properties = pt;
9888
- const _t = {};
9889
- for (const It of Ye) _t[It] = ke[It].evaluate(Be, Ee);
9890
- return _t;
9891
- }, Y.reduce = (pt, _t) => {
9892
- Ee.properties = _t;
9888
+ const vt = {};
9889
+ for (const It of Ye) vt[It] = ke[It].evaluate(Be, Ee);
9890
+ return vt;
9891
+ }, Y.reduce = (pt, vt) => {
9892
+ Ee.properties = vt;
9893
9893
  for (const It of Ye) Be.accumulated = pt[It], pt[It] = Ie[It].evaluate(Be, Ee);
9894
9894
  }, Y;
9895
9895
  }(Z)).load((yield this._pendingData).features) : (ue = yield this._pendingData, new Ut(ue, Z.geojsonVtOptions)), this.loaded = {};
@@ -9954,8 +9954,8 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9954
9954
  if (Ye == null) continue;
9955
9955
  const pt = !Ee.removeAllProperties && (((Me = Ee.removeProperties) === null || Me === void 0 ? void 0 : Me.length) > 0 || ((ke = Ee.addOrUpdateProperties) === null || ke === void 0 ? void 0 : ke.length) > 0);
9956
9956
  if ((Ee.newGeometry || Ee.removeAllProperties || pt) && (Ye = Object.assign({}, Ye), ue.set(Ee.id, Ye), pt && (Ye.properties = Object.assign({}, Ye.properties))), Ee.newGeometry && (Ye.geometry = Ee.newGeometry), Ee.removeAllProperties) Ye.properties = {};
9957
- else if (((Ie = Ee.removeProperties) === null || Ie === void 0 ? void 0 : Ie.length) > 0) for (const _t of Ee.removeProperties) Object.prototype.hasOwnProperty.call(Ye.properties, _t) && delete Ye.properties[_t];
9958
- if (((Be = Ee.addOrUpdateProperties) === null || Be === void 0 ? void 0 : Be.length) > 0) for (const { key: _t, value: It } of Ee.addOrUpdateProperties) Ye.properties[_t] = It;
9957
+ else if (((Ie = Ee.removeProperties) === null || Ie === void 0 ? void 0 : Ie.length) > 0) for (const vt of Ee.removeProperties) Object.prototype.hasOwnProperty.call(Ye.properties, vt) && delete Ye.properties[vt];
9958
+ if (((Be = Ee.addOrUpdateProperties) === null || Be === void 0 ? void 0 : Be.length) > 0) for (const { key: vt, value: It } of Ee.addOrUpdateProperties) Ye.properties[vt] = It;
9959
9959
  }
9960
9960
  }(this._dataUpdateable, Z.dataDiff, $), { type: "FeatureCollection", features: Array.from(this._dataUpdateable.values()) };
9961
9961
  });
@@ -10730,7 +10730,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10730
10730
  const F = [];
10731
10731
  for (const B of D) F.push({ wrappedTileID: B.tileID.wrapped().key, queryResults: B.tile.queryRenderedFeatures(e, r, u._state, B.queryGeometry, B.cameraQueryGeometry, B.scale, l, h, E, Hi(u.transform, B.tileID), g ? (W, G) => g(B.tileID, W, G) : void 0) });
10732
10732
  return function(B, W) {
10733
- for (const G in B) for (const ne of B[G]) vt(ne, W);
10733
+ for (const G in B) for (const ne of B[G]) _t(ne, W);
10734
10734
  return B;
10735
10735
  }(function(B) {
10736
10736
  const W = {}, G = {};
@@ -10748,7 +10748,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10748
10748
  const r = u.tileID, a = e.tileID;
10749
10749
  return r.overscaledZ - a.overscaledZ || r.canonical.y - a.canonical.y || r.wrap - a.wrap || r.canonical.x - a.canonical.x;
10750
10750
  }
10751
- function vt(u, e) {
10751
+ function _t(u, e) {
10752
10752
  const r = u.feature, a = e.getFeatureState(r.layer["source-layer"], r.id);
10753
10753
  r.source = r.layer.source, r.layer["source-layer"] && (r.sourceLayer = r.layer["source-layer"]), r.state = a;
10754
10754
  }
@@ -12130,7 +12130,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12130
12130
  let r = !0;
12131
12131
  return u === "always" || u !== "never" && e !== "never" || (r = !1), r;
12132
12132
  }
12133
- class _t {
12133
+ class vt {
12134
12134
  constructor(e, r, a) {
12135
12135
  const l = this.boxCells = [], h = this.circleCells = [];
12136
12136
  this.xCellCount = Math.ceil(e / a), this.yCellCount = Math.ceil(r / a);
@@ -12418,7 +12418,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
12418
12418
  }
12419
12419
  const qr = 100;
12420
12420
  class Ei {
12421
- constructor(e, r = new _t(e.width + 200, e.height + 200, 25), a = new _t(e.width + 200, e.height + 200, 25)) {
12421
+ constructor(e, r = new vt(e.width + 200, e.height + 200, 25), a = new vt(e.width + 200, e.height + 200, 25)) {
12422
12422
  this.transform = e, this.grid = r, this.ignoredGrid = a, this.pitchFactor = Math.cos(e.pitch * Math.PI / 180) * e.cameraToCenterDistance, this.screenRightBoundary = e.width + qr, this.screenBottomBoundary = e.height + qr, this.gridRightBoundary = e.width + 200, this.gridBottomBoundary = e.height + 200, this.perspectiveRatioCutoff = 0.6;
12423
12423
  }
12424
12424
  placeCollisionBox(e, r, a, l, h, g, x, S, E, D, F, B) {
@@ -16411,7 +16411,7 @@ uniform ${D} ${F} u_${B};
16411
16411
  }
16412
16412
  }
16413
16413
  return function(ye, ge, ve) {
16414
- for (const Te in ye) for (const be of ye[Te]) vt(be, ve[ge[Te].source]);
16414
+ for (const Te in ye) for (const be of ye[Te]) _t(be, ve[ge[Te].source]);
16415
16415
  return ye;
16416
16416
  }(ie, E, F);
16417
16417
  }(this._layers, g, this.sourceCaches, e, S, this.placement.collisionIndex, this.placement.retainedQueryData)), this._flattenAndSortRenderedFeatures(h);
@@ -24139,7 +24139,7 @@ function k1() {
24139
24139
  } };
24140
24140
  } }), Ti = { size: "offsetWidth", distanceToParent: "offsetLeft", translate: "transform", begin: "left", end: "right", dragPosition: "x", scrollSize: "scrollWidth", offsetSize: "offsetWidth", scrollValue: "scrollLeft", scale: "scaleX", setSize: "width", setters: { translate: function(le) {
24141
24141
  return "translate3d(".concat(le, "px, 0, 0)");
24142
- } } }, vt = { size: "offsetHeight", distanceToParent: "offsetTop", translate: "transform", begin: "top", end: "bottom", dragPosition: "y", scrollSize: "scrollHeight", offsetSize: "offsetHeight", scrollValue: "scrollTop", scale: "scaleY", setSize: "height", setters: { translate: function(le) {
24142
+ } } }, _t = { size: "offsetHeight", distanceToParent: "offsetTop", translate: "transform", begin: "top", end: "bottom", dragPosition: "y", scrollSize: "scrollHeight", offsetSize: "offsetHeight", scrollValue: "scrollTop", scale: "scaleY", setSize: "height", setters: { translate: function(le) {
24143
24143
  return "translate3d(0,".concat(le, "px, 0)");
24144
24144
  } } };
24145
24145
  function wt(le, ce, he) {
@@ -24150,7 +24150,7 @@ function k1() {
24150
24150
  }, set: function(Ke, $e, gt) {
24151
24151
  Ke[ze[$e]] = ze.setters[$e] ? ze.setters[$e](gt) : gt;
24152
24152
  } };
24153
- }(ce === "horizontal" ? Ti : vt), Ce = { translation: 0 };
24153
+ }(ce === "horizontal" ? Ti : _t), Ce = { translation: 0 };
24154
24154
  function Oe() {
24155
24155
  lt(le), function(ze) {
24156
24156
  var Ke = ze.getBoundingClientRect();
@@ -24369,8 +24369,8 @@ function k1() {
24369
24369
  function Ye() {
24370
24370
  return At && At.ghostParent ? At.ghostParent : vr && vr.parentElement || window.document.body;
24371
24371
  }
24372
- var pt, _t, It, Wt, zt, Ne, pr = (Wt = null, zt = 1, Ne = 5, function(le, ce, he) {
24373
- pt = Wi(le), It = he, (_t = typeof ce == "number" ? ce : Be ? 200 : 0) && (Wt = setTimeout(Rt, _t)), Pr.forEach(function(_e) {
24372
+ var pt, vt, It, Wt, zt, Ne, pr = (Wt = null, zt = 1, Ne = 5, function(le, ce, he) {
24373
+ pt = Wi(le), It = he, (vt = typeof ce == "number" ? ce : Be ? 200 : 0) && (Wt = setTimeout(Rt, vt)), Pr.forEach(function(_e) {
24374
24374
  return window.document.addEventListener(_e, $t);
24375
24375
  }, { passive: !1 }), _r.forEach(function(_e) {
24376
24376
  return window.document.addEventListener(_e, ur);
@@ -24378,7 +24378,7 @@ function k1() {
24378
24378
  });
24379
24379
  function $t(le) {
24380
24380
  var ce = Wi(le), he = ce.clientX, _e = ce.clientY;
24381
- if (_t) (Math.abs(pt.clientX - he) > Ne || Math.abs(pt.clientY - _e) > Ne) && Qe();
24381
+ if (vt) (Math.abs(pt.clientX - he) > Ne || Math.abs(pt.clientY - _e) > Ne) && Qe();
24382
24382
  else if (Math.abs(pt.clientX - he) > zt || Math.abs(pt.clientY - _e) > zt) return Rt();
24383
24383
  }
24384
24384
  function ur() {
@@ -32729,12 +32729,12 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
32729
32729
  "bottom-center": cr(null),
32730
32730
  "bottom-right": cr(null)
32731
32731
  };
32732
- function k(vt, wt) {
32733
- I[vt].value = wt == null ? void 0 : wt.columnRef;
32732
+ function k(_t, wt) {
32733
+ I[_t].value = wt == null ? void 0 : wt.columnRef;
32734
32734
  }
32735
32735
  const T = cr(0), V = cr(0), K = cr(0), re = cr(0), ae = cr(0), Pe = cr(0), ee = cr(0);
32736
- function fe(vt) {
32737
- if (!vt) {
32736
+ function fe(_t) {
32737
+ if (!_t) {
32738
32738
  const qt = {
32739
32739
  topLeft: I["top-left"].value,
32740
32740
  topRight: I["top-right"].value,
@@ -32759,7 +32759,7 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
32759
32759
  "top-center": ["top-center", "bottom-center"],
32760
32760
  "bottom-center": ["top-center", "bottom-center"],
32761
32761
  center: ["center"]
32762
- }[vt] || [], Ft = {
32762
+ }[_t] || [], Ft = {
32763
32763
  topLeft: I["top-left"].value,
32764
32764
  topRight: I["top-right"].value,
32765
32765
  topCenter: I["top-center"].value,
@@ -32776,39 +32776,40 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
32776
32776
  Ft[qt] && Zt[qt] && (Ft[qt].style.maxHeight = Zt[qt] + "px");
32777
32777
  }), ht.includes("top-left") && (T.value = Zt.topLeft), ht.includes("bottom-left") && (ae.value = Zt.bottomLeft), ht.includes("top-right") && (V.value = Zt.topRight), ht.includes("bottom-right") && (Pe.value = Zt.bottomRight), ht.includes("top-center") && (K.value = Zt.topCenter), ht.includes("bottom-center") && (ee.value = Zt.bottomCenter), ht.includes("center") && (re.value = Zt.center);
32778
32778
  }
32779
- function De(vt) {
32779
+ function De(_t) {
32780
32780
  var wt, ht;
32781
- return vt === "center" ? [
32781
+ return _t === "center" ? [
32782
32782
  ...((wt = d.config.widgets) == null ? void 0 : wt.filter(
32783
32783
  (Zt) => (Zt.position || {}) === "center"
32784
32784
  )) || [],
32785
32785
  ...z.value.filter((Zt) => Zt.position === "center")
32786
32786
  ] : ((ht = d.config.widgets) == null ? void 0 : ht.filter(
32787
- (Ft) => (Ft.position || {}) === vt
32787
+ (Ft) => (Ft.position || {}) === _t
32788
32788
  )) || [];
32789
32789
  }
32790
- mh.registerHelper("eq", (vt, wt) => vt === wt), mh.registerHelper(
32790
+ mh.registerHelper("eq", (_t, wt) => _t === wt), mh.registerHelper(
32791
32791
  "formatDate",
32792
- (vt) => vt ? new Date(vt).toLocaleDateString() : "Немає дати"
32793
- ), mh.registerHelper("get", (vt, wt) => (vt == null ? void 0 : vt[wt]) ?? "");
32794
- const Ue = (vt, wt, ht) => {
32792
+ (_t) => _t ? new Date(_t).toLocaleDateString() : "Немає дати"
32793
+ ), mh.registerHelper("get", (_t, wt) => (_t == null ? void 0 : _t[wt]) ?? "");
32794
+ const Ue = (_t, wt, ht) => {
32795
32795
  try {
32796
- if (ht === "markdown") {
32797
- const Ft = vt.replace(/\{\{([^}]+)\}\}/g, (Zt, qt) => {
32798
- try {
32799
- return new Function("data", `with(data) { return ${qt} }`)(wt);
32800
- } catch {
32801
- return "";
32802
- }
32803
- });
32804
- return Rr(Ft);
32805
- } else
32806
- return mh.compile(vt)(wt);
32796
+ if (_t)
32797
+ if (ht === "markdown") {
32798
+ const Ft = _t.replace(/\{\{([^}]+)\}\}/g, (Zt, qt) => {
32799
+ try {
32800
+ return new Function("data", `with(data) { return ${qt} }`)(wt);
32801
+ } catch {
32802
+ return "";
32803
+ }
32804
+ });
32805
+ return Rr(Ft);
32806
+ } else
32807
+ return mh.compile(_t)(wt);
32807
32808
  } catch (Ft) {
32808
- return console.error("Error processing template:", Ft), vt;
32809
+ return console.error("Error processing template:", Ft), _t;
32809
32810
  }
32810
- }, it = (vt, wt, ht, Ft, Zt, qt) => {
32811
- const yr = Ue(vt, Ft, Zt), Nt = wt ? Ue(wt, Ft, Zt) : "";
32811
+ }, it = (_t, wt, ht, Ft, Zt, qt) => {
32812
+ const yr = Ue(_t, Ft, Zt), Nt = wt ? Ue(wt, Ft, Zt) : "";
32812
32813
  let xr = "";
32813
32814
  return ht != null && ht.length && (xr = ht.map(($r) => {
32814
32815
  const ki = Ue($r.value, Ft, Zt);
@@ -32835,7 +32836,7 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
32835
32836
  ` : ""}
32836
32837
  </div>
32837
32838
  `;
32838
- }, kt = (vt) => ({
32839
+ }, kt = (_t) => ({
32839
32840
  legend: Jv,
32840
32841
  basemaps: e0,
32841
32842
  layers: k0,
@@ -32846,14 +32847,14 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
32846
32847
  "inline-filters": N2,
32847
32848
  list: $2,
32848
32849
  card: ky
32849
- })[vt], xt = br(() => {
32850
- var vt;
32851
- return (vt = d.config.widgets) == null ? void 0 : vt.some((wt) => wt.type === "filters");
32852
- }), ut = (vt) => {
32853
- P.value = vt;
32850
+ })[_t], xt = br(() => {
32851
+ var _t;
32852
+ return (_t = d.config.widgets) == null ? void 0 : _t.some((wt) => wt.type === "filters");
32853
+ }), ut = (_t) => {
32854
+ P.value = _t;
32854
32855
  };
32855
32856
  function bt() {
32856
- const vt = new URLSearchParams(window.location.search), wt = parseFloat(vt.get("x")), ht = parseFloat(vt.get("y")), Ft = parseFloat(vt.get("z")), Zt = parseFloat(vt.get("bearing")), qt = parseFloat(vt.get("pitch"));
32857
+ const _t = new URLSearchParams(window.location.search), wt = parseFloat(_t.get("x")), ht = parseFloat(_t.get("y")), Ft = parseFloat(_t.get("z")), Zt = parseFloat(_t.get("bearing")), qt = parseFloat(_t.get("pitch"));
32857
32858
  return {
32858
32859
  center: isFinite(wt) && isFinite(ht) ? [wt, ht] : null,
32859
32860
  zoom: isFinite(Ft) ? Ft : null,
@@ -32861,15 +32862,15 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
32861
32862
  pitch: isFinite(qt) ? qt : null
32862
32863
  };
32863
32864
  }
32864
- function jt({ center: vt, zoom: wt, bearing: ht, pitch: Ft }) {
32865
+ function jt({ center: _t, zoom: wt, bearing: ht, pitch: Ft }) {
32865
32866
  const Zt = new URLSearchParams(window.location.search);
32866
- Zt.set("x", vt[0].toFixed(5)), Zt.set("y", vt[1].toFixed(5)), Zt.set("z", wt.toFixed(2)), Zt.set("bearing", ht.toFixed(2)), Zt.set("pitch", Ft.toFixed(2));
32867
+ Zt.set("x", _t[0].toFixed(5)), Zt.set("y", _t[1].toFixed(5)), Zt.set("z", wt.toFixed(2)), Zt.set("bearing", ht.toFixed(2)), Zt.set("pitch", Ft.toFixed(2));
32867
32868
  const qt = `${window.location.pathname}?${Zt.toString()}`;
32868
32869
  window.history.replaceState({}, "", qt);
32869
32870
  }
32870
32871
  const Yt = () => {
32871
32872
  var qt, yr;
32872
- const vt = {
32873
+ const _t = {
32873
32874
  version: 8,
32874
32875
  glyphs: "https://cdn.softpro.ua/data/fonts/{fontstack}/{range}.pbf",
32875
32876
  sources: {},
@@ -32882,7 +32883,7 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
32882
32883
  }
32883
32884
  if (_.value = new dd.Map({
32884
32885
  container: "maplibre-demo-map",
32885
- style: vt,
32886
+ style: _t,
32886
32887
  center: wt,
32887
32888
  zoom: ht,
32888
32889
  bearing: Ft,
@@ -33089,8 +33090,8 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
33089
33090
  }
33090
33091
  });
33091
33092
  }, Dr = () => {
33092
- zi(), s.value.forEach((vt) => {
33093
- _.value && Nr(_.value, vt.source, vt.id, {
33093
+ zi(), s.value.forEach((_t) => {
33094
+ _.value && Nr(_.value, _t.source, _t.id, {
33094
33095
  selected: !1
33095
33096
  });
33096
33097
  }), s.value = [], R.value = null;
@@ -33114,8 +33115,8 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
33114
33115
  await gl(), fe(), setTimeout(fe, 0);
33115
33116
  },
33116
33117
  { deep: !0 }
33117
- ), Hs(b, (vt) => {
33118
- vt && gl().then(() => {
33118
+ ), Hs(b, (_t) => {
33119
+ _t && gl().then(() => {
33119
33120
  fe();
33120
33121
  });
33121
33122
  });
@@ -33128,31 +33129,31 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
33128
33129
  height: d.config.height || ((wt = d.config.map) == null ? void 0 : wt.height) || "100vh",
33129
33130
  width: "100%"
33130
33131
  };
33131
- }), mi = (vt) => {
33132
+ }), mi = (_t) => {
33132
33133
  var ht;
33133
- const wt = (ht = d.config.widgets) == null ? void 0 : ht.find((Ft) => Ft.position === vt);
33134
+ const wt = (ht = d.config.widgets) == null ? void 0 : ht.find((Ft) => Ft.position === _t);
33134
33135
  return (wt == null ? void 0 : wt.width) || "400px";
33135
33136
  }, ar = cr([]), on = () => {
33136
33137
  var wt;
33137
- const vt = d.config.widgets.find((ht) => ht.type === "layers");
33138
- return (wt = vt == null ? void 0 : vt.config) != null && wt.layers ? vt.config.layers.map((ht) => ({ ...ht, visible: ht.visible ?? !1 })).filter((ht) => ht.visible).map((ht) => ht.id) : [];
33138
+ const _t = d.config.widgets.find((ht) => ht.type === "layers");
33139
+ return (wt = _t == null ? void 0 : _t.config) != null && wt.layers ? _t.config.layers.map((ht) => ({ ...ht, visible: ht.visible ?? !1 })).filter((ht) => ht.visible).map((ht) => ht.id) : [];
33139
33140
  };
33140
33141
  ar.value = on();
33141
- function Nr(vt, wt, ht, Ft) {
33142
- vt.getStyle().layers.filter((qt) => qt.source === wt).forEach((qt) => {
33142
+ function Nr(_t, wt, ht, Ft) {
33143
+ _t.getStyle().layers.filter((qt) => qt.source === wt).forEach((qt) => {
33143
33144
  var Nt;
33144
33145
  const yr = { source: wt, id: ht };
33145
- ((Nt = vt.getSource(wt)) == null ? void 0 : Nt.type) === "vector" && qt["source-layer"] && (yr.sourceLayer = qt["source-layer"]), vt.setFeatureState(yr, Ft);
33146
+ ((Nt = _t.getSource(wt)) == null ? void 0 : Nt.type) === "vector" && qt["source-layer"] && (yr.sourceLayer = qt["source-layer"]), _t.setFeatureState(yr, Ft);
33146
33147
  });
33147
33148
  }
33148
33149
  const an = br(() => {
33149
- var vt, wt;
33150
- return !!((wt = (vt = d.config.interactions) == null ? void 0 : vt.navigation) != null && wt.enabled);
33150
+ var _t, wt;
33151
+ return !!((wt = (_t = d.config.interactions) == null ? void 0 : _t.navigation) != null && wt.enabled);
33151
33152
  }), jr = br(() => Array.isArray(d.config.tools) && d.config.tools.length > 0), vn = br(() => an.value || jr.value ? "70px" : "20px");
33152
33153
  function zi() {
33153
33154
  _.value && (_.value.getLayer("layer-with-pulsing-dot") && _.value.removeLayer("layer-with-pulsing-dot"), _.value.getSource("dot-point") && _.value.removeSource("dot-point"), _.value.hasImage && _.value.hasImage("pulsing-dot") && _.value.removeImage("pulsing-dot"));
33154
33155
  }
33155
- function ti(vt) {
33156
+ function ti(_t) {
33156
33157
  var Ft, Zt, qt, yr;
33157
33158
  zi();
33158
33159
  const wt = 80, ht = {
@@ -33181,7 +33182,7 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
33181
33182
  type: "geojson",
33182
33183
  data: {
33183
33184
  type: "Feature",
33184
- geometry: { type: "Point", coordinates: vt }
33185
+ geometry: { type: "Point", coordinates: _t }
33185
33186
  }
33186
33187
  }), (yr = _.value) == null || yr.addLayer({
33187
33188
  id: "layer-with-pulsing-dot",
@@ -33204,21 +33205,21 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
33204
33205
  pitch: vS,
33205
33206
  length: gA,
33206
33207
  area: MA
33207
- }, cn = (vt) => {
33208
- M.value = vt;
33208
+ }, cn = (_t) => {
33209
+ M.value = _t;
33209
33210
  };
33210
- function Hi(vt) {
33211
+ function Hi(_t) {
33211
33212
  const { map_key: wt, service_key: ht } = d.config.widgets.find(
33212
33213
  (Ft) => Ft.type === "list"
33213
33214
  ).config;
33214
33215
  wt && ht && (R.value = {
33215
- id: vt,
33216
+ id: _t,
33216
33217
  map: wt,
33217
33218
  layer: ht
33218
33219
  });
33219
33220
  }
33220
- function qn(vt) {
33221
- switch (vt) {
33221
+ function qn(_t) {
33222
+ switch (_t) {
33222
33223
  case "top-left":
33223
33224
  return T.value;
33224
33225
  case "top-right":
@@ -33239,11 +33240,11 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
33239
33240
  }
33240
33241
  const Ti = br(
33241
33242
  () => {
33242
- var vt;
33243
- return ((vt = d.config.widgets) == null ? void 0 : vt.filter((wt) => wt.position === "absolute")) || [];
33243
+ var _t;
33244
+ return ((_t = d.config.widgets) == null ? void 0 : _t.filter((wt) => wt.position === "absolute")) || [];
33244
33245
  }
33245
33246
  );
33246
- return (vt, wt) => (Xe(), nt("div", {
33247
+ return (_t, wt) => (Xe(), nt("div", {
33247
33248
  id: "maplibre-demo-map",
33248
33249
  style: sa(Cr.value)
33249
33250
  }, [
@@ -33305,7 +33306,7 @@ const MA = /* @__PURE__ */ Yr(AA, [["render", IA], ["__scopeId", "data-v-024154e
33305
33306
  ], 4))), 128))
33306
33307
  ], 4));
33307
33308
  }
33308
- }, BA = /* @__PURE__ */ Yr(OA, [["__scopeId", "data-v-3f3c1939"]]), nT = {
33309
+ }, BA = /* @__PURE__ */ Yr(OA, [["__scopeId", "data-v-fe20ee82"]]), nT = {
33309
33310
  install(p) {
33310
33311
  p.component("MapCustom", BA);
33311
33312
  }