@idm-plugin/geo 1.8.5 → 1.8.6

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/index.js CHANGED
@@ -154,7 +154,7 @@ var j = { exports: {} };
154
154
  try {
155
155
  var W = Intl.DateTimeFormat().resolvedOptions().timeZone;
156
156
  if (W && W.length > 3) {
157
- var a = p[h(W)];
157
+ var a = p[K(W)];
158
158
  if (a)
159
159
  return a;
160
160
  D("Moment Timezone found " + W + " from the Intl api, but did not have that data loaded.");
@@ -172,16 +172,16 @@ var j = { exports: {} };
172
172
  function O0(W) {
173
173
  return (!o || W) && (o = p0()), o;
174
174
  }
175
- function h(W) {
175
+ function K(W) {
176
176
  return (W || "").toLowerCase().replace(/\//g, "_");
177
177
  }
178
178
  function k(W) {
179
179
  var a, n, R, i;
180
180
  for (typeof W == "string" && (W = [W]), a = 0; a < W.length; a++)
181
- R = W[a].split("|"), n = R[0], i = h(n), b[i] = W[a], p[i] = n, z0(i, R[2].split(" "));
181
+ R = W[a].split("|"), n = R[0], i = K(n), b[i] = W[a], p[i] = n, z0(i, R[2].split(" "));
182
182
  }
183
183
  function g(W, a) {
184
- W = h(W);
184
+ W = K(W);
185
185
  var n = b[W], R;
186
186
  return n instanceof Z ? n : typeof n == "string" ? (n = new Z(n), b[W] = n, n) : O[W] && a !== g && (R = g(O[W], g)) ? (n = b[W] = new Z(), n._set(R), n.name = p[W], n) : null;
187
187
  }
@@ -197,7 +197,7 @@ var j = { exports: {} };
197
197
  function v(W) {
198
198
  var a, n, R, i;
199
199
  for (typeof W == "string" && (W = [W]), a = 0; a < W.length; a++)
200
- n = W[a].split("|"), R = h(n[0]), i = h(n[1]), O[R] = i, p[R] = n[0], O[i] = R, p[i] = n[1];
200
+ n = W[a].split("|"), R = K(n[0]), i = K(n[1]), O[R] = i, p[R] = n[0], O[i] = R, p[i] = n[1];
201
201
  }
202
202
  function W0(W) {
203
203
  var a, n, R, i;
@@ -277,8 +277,8 @@ var j = { exports: {} };
277
277
  C.zoneName = y(C.zoneName), C.zoneAbbr = y(C.zoneAbbr), C.utc = w(C.utc), C.local = w(C.local), C.utcOffset = d0(C.utcOffset), M.tz.setDefault = function(W) {
278
278
  return (Y < 2 || Y === 2 && d < 9) && D("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = W ? g(W) : null, M;
279
279
  };
280
- var K = M.momentProperties;
281
- return Object.prototype.toString.call(K) === "[object Array]" ? (K.push("_z"), K.push("_a")) : K && (K._z = null), M;
280
+ var h = M.momentProperties;
281
+ return Object.prototype.toString.call(h) === "[object Array]" ? (h.push("_z"), h.push("_a")) : h && (h._z = null), M;
282
282
  });
283
283
  })(j);
284
284
  var n0 = j.exports;
@@ -2071,7 +2071,7 @@ class t0 {
2071
2071
  }
2072
2072
  if (z.features.push(...d), (Y == null ? void 0 : Y.length) > 1) {
2073
2073
  const e = N.lineString(X.convertToMonotonicLng2(Y), {
2074
- date: A.updated,
2074
+ date: (A == null ? void 0 : A.updated) || (L == null ? void 0 : L.format()),
2075
2075
  id: p.id || p.name,
2076
2076
  model: o.model,
2077
2077
  name: p.name,
@@ -2128,7 +2128,7 @@ class t0 {
2128
2128
  const b = (c = M == null ? void 0 : M.data) == null ? void 0 : c.features.filter((q) => q.geometry.type === "LineString" && q.properties.type === "forecast"), O = [];
2129
2129
  for (const q of b) {
2130
2130
  const Y = q.properties.name, d = q.properties.model, L = q.properties.showCircle, T = q.properties.disabled, S = I(q.properties.date).utc();
2131
- let e = z * 60 - (S.get("hour") * 60 + S.get("minute")) % (z * 60);
2131
+ let e = z * 60;
2132
2132
  const r = (p = M == null ? void 0 : M.data) == null ? void 0 : p.features.filter(
2133
2133
  (P) => P.geometry.type === "Point" && P.properties.type === "forecast" && P.properties.category === `${Y}-${d}`
2134
2134
  );