@arenarium/maps 1.2.26 → 1.2.27

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 (2) hide show
  1. package/dist/main.js +56 -56
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -256,7 +256,7 @@ class Ns {
256
256
  }
257
257
  }
258
258
  const Xt = !1;
259
- var Cs = Array.isArray, Rs = Array.prototype.indexOf, He = Array.prototype.includes, Ds = Array.from, Os = Object.defineProperty, it = Object.getOwnPropertyDescriptor, zs = Object.prototype, $s = Array.prototype, Ls = Object.getPrototypeOf, Nn = Object.isExtensible;
259
+ var Cs = Array.isArray, Rs = Array.prototype.indexOf, He = Array.prototype.includes, Ds = Array.from, Os = Object.defineProperty, it = Object.getOwnPropertyDescriptor, $s = Object.prototype, zs = Array.prototype, Ls = Object.getPrototypeOf, Nn = Object.isExtensible;
260
260
  const Fs = () => {
261
261
  };
262
262
  function Vs(t) {
@@ -269,7 +269,7 @@ function nr() {
269
269
  });
270
270
  return { promise: n, resolve: t, reject: e };
271
271
  }
272
- const z = 2, lt = 4, Pt = 8, rr = 1 << 24, ge = 16, Se = 32, $e = 64, sr = 128, G = 512, O = 1024, F = 2048, se = 4096, _e = 8192, be = 16384, It = 32768, Et = 65536, Cn = 1 << 17, ir = 1 << 18, Ge = 1 << 19, js = 1 << 20, ze = 65536, Jt = 1 << 21, nn = 1 << 22, Me = 1 << 23, _t = /* @__PURE__ */ Symbol("$state"), Ae = new class extends Error {
272
+ const $ = 2, lt = 4, Pt = 8, rr = 1 << 24, ge = 16, Se = 32, ze = 64, sr = 128, G = 512, O = 1024, F = 2048, se = 4096, _e = 8192, be = 16384, It = 32768, Et = 65536, Cn = 1 << 17, ir = 1 << 18, Ge = 1 << 19, js = 1 << 20, $e = 65536, Jt = 1 << 21, nn = 1 << 22, Me = 1 << 23, _t = /* @__PURE__ */ Symbol("$state"), Ae = new class extends Error {
273
273
  name = "StaleReactionError";
274
274
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
275
275
  }();
@@ -377,7 +377,7 @@ function an(t) {
377
377
  function ur(t) {
378
378
  if (t !== null)
379
379
  for (const e of t)
380
- (e.f & z) === 0 || (e.f & ze) === 0 || (e.f ^= ze, ur(
380
+ (e.f & $) === 0 || (e.f & $e) === 0 || (e.f ^= $e, ur(
381
381
  /** @type {Derived} */
382
382
  e.deps
383
383
  ));
@@ -500,7 +500,7 @@ class Ee {
500
500
  #l(e, n, r) {
501
501
  e.f ^= O;
502
502
  for (var s = e.first, i = null; s !== null; ) {
503
- var a = s.f, o = (a & (Se | $e)) !== 0, l = o && (a & O) !== 0, u = l || (a & _e) !== 0 || this.#t.has(s);
503
+ var a = s.f, o = (a & (Se | ze)) !== 0, l = o && (a & O) !== 0, u = l || (a & _e) !== 0 || this.#t.has(s);
504
504
  if (!u && s.fn !== null) {
505
505
  o ? s.f ^= O : i !== null && (a & (lt | Pt | rr)) !== 0 ? i.b.defer_effect(s) : (a & lt) !== 0 ? n.push(s) : ht(s) && ((a & ge) !== 0 && this.#e.add(s), Xe(s));
506
506
  var c = s.first;
@@ -685,7 +685,7 @@ function fr(t, e, n, r) {
685
685
  if (!n.has(t) && (n.add(t), t.reactions !== null))
686
686
  for (const s of t.reactions) {
687
687
  const i = s.f;
688
- (i & z) !== 0 ? fr(
688
+ (i & $) !== 0 ? fr(
689
689
  /** @type {Derived} */
690
690
  s,
691
691
  e,
@@ -704,7 +704,7 @@ function hr(t, e, n) {
704
704
  for (const s of t.deps) {
705
705
  if (He.call(e, s))
706
706
  return !0;
707
- if ((s.f & z) !== 0 && hr(
707
+ if ((s.f & $) !== 0 && hr(
708
708
  /** @type {Derived} */
709
709
  s,
710
710
  e,
@@ -724,7 +724,7 @@ function oe(t) {
724
724
  var n = e.f;
725
725
  if (Gt && e === _ && (n & ge) !== 0 && (n & ir) === 0)
726
726
  return;
727
- if ((n & ($e | Se)) !== 0) {
727
+ if ((n & (ze | Se)) !== 0) {
728
728
  if ((n & O) === 0) return;
729
729
  e.f ^= O;
730
730
  }
@@ -1007,7 +1007,7 @@ function Kt() {
1007
1007
  }
1008
1008
  // @__NO_SIDE_EFFECTS__
1009
1009
  function oi(t) {
1010
- var e = z | F, n = y !== null && (y.f & z) !== 0 ? (
1010
+ var e = $ | F, n = y !== null && (y.f & $) !== 0 ? (
1011
1011
  /** @type {Derived} */
1012
1012
  y
1013
1013
  ) : null;
@@ -1104,7 +1104,7 @@ function ui(t) {
1104
1104
  }
1105
1105
  function ci(t) {
1106
1106
  for (var e = t.parent; e !== null; ) {
1107
- if ((e.f & z) === 0)
1107
+ if ((e.f & $) === 0)
1108
1108
  return (e.f & be) === 0 ? (
1109
1109
  /** @type {Effect} */
1110
1110
  e
@@ -1117,7 +1117,7 @@ function ln(t) {
1117
1117
  var e, n = _;
1118
1118
  ce(ci(t));
1119
1119
  try {
1120
- t.f &= ~ze, ui(t), e = Cr(t);
1120
+ t.f &= ~$e, ui(t), e = Cr(t);
1121
1121
  } finally {
1122
1122
  ce(n);
1123
1123
  }
@@ -1164,7 +1164,7 @@ function U(t, e) {
1164
1164
  function H(t, e, n = !1) {
1165
1165
  y !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1166
1166
  // to ensure we error if state is set inside an inspect effect
1167
- (!ne || (y.f & Cn) !== 0) && or() && (y.f & (z | ge | nn | Cn)) !== 0 && (K === null || !He.call(K, t)) && qs();
1167
+ (!ne || (y.f & Cn) !== 0) && or() && (y.f & ($ | ge | nn | Cn)) !== 0 && (K === null || !He.call(K, t)) && qs();
1168
1168
  let r = n ? tt(e) : e;
1169
1169
  return xt(t, r);
1170
1170
  }
@@ -1173,14 +1173,14 @@ function xt(t, e) {
1173
1173
  var n = t.v;
1174
1174
  Ye ? xe.set(t, e) : xe.set(t, n), t.v = e;
1175
1175
  var r = Ee.ensure();
1176
- if (r.capture(t, n), (t.f & z) !== 0) {
1176
+ if (r.capture(t, n), (t.f & $) !== 0) {
1177
1177
  const s = (
1178
1178
  /** @type {Derived} */
1179
1179
  t
1180
1180
  );
1181
1181
  (t.f & F) !== 0 && ln(s), an(s);
1182
1182
  }
1183
- t.wv = Ar(), gr(t, F), _ !== null && (_.f & O) !== 0 && (_.f & (Se | $e)) === 0 && (X === null ? Pi([t]) : X.push(t)), !r.is_fork && Qt.size > 0 && !vr && hi();
1183
+ t.wv = Ar(), gr(t, F), _ !== null && (_.f & O) !== 0 && (_.f & (Se | ze)) === 0 && (X === null ? Pi([t]) : X.push(t)), !r.is_fork && Qt.size > 0 && !vr && hi();
1184
1184
  }
1185
1185
  return e;
1186
1186
  }
@@ -1198,12 +1198,12 @@ function gr(t, e) {
1198
1198
  if (n !== null)
1199
1199
  for (var r = n.length, s = 0; s < r; s++) {
1200
1200
  var i = n[s], a = i.f, o = (a & F) === 0;
1201
- if (o && P(i, e), (a & z) !== 0) {
1201
+ if (o && P(i, e), (a & $) !== 0) {
1202
1202
  var l = (
1203
1203
  /** @type {Derived} */
1204
1204
  i
1205
1205
  );
1206
- te?.delete(l), (a & ze) === 0 && (a & G && (i.f |= ze), gr(l, se));
1206
+ te?.delete(l), (a & $e) === 0 && (a & G && (i.f |= $e), gr(l, se));
1207
1207
  } else o && ((a & ge) !== 0 && ve !== null && ve.add(
1208
1208
  /** @type {Effect} */
1209
1209
  i
@@ -1217,15 +1217,15 @@ function tt(t) {
1217
1217
  if (typeof t != "object" || t === null || _t in t)
1218
1218
  return t;
1219
1219
  const e = Ls(t);
1220
- if (e !== zs && e !== $s)
1220
+ if (e !== $s && e !== zs)
1221
1221
  return t;
1222
1222
  var n = /* @__PURE__ */ new Map(), r = Cs(t), s = /* @__PURE__ */ U(0), i = Re, a = (o) => {
1223
1223
  if (Re === i)
1224
1224
  return o();
1225
1225
  var l = y, u = Re;
1226
- Q(null), $n(i);
1226
+ Q(null), zn(i);
1227
1227
  var c = o();
1228
- return Q(l), $n(u), c;
1228
+ return Q(l), zn(u), c;
1229
1229
  };
1230
1230
  return r && n.set("length", /* @__PURE__ */ U(
1231
1231
  /** @type {any[]} */
@@ -1424,7 +1424,7 @@ function we(t, e, n) {
1424
1424
  else e !== null && oe(s);
1425
1425
  var i = s;
1426
1426
  if (n && i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1427
- (i.f & Ge) === 0 && (i = i.first, (t & ge) !== 0 && (t & Et) !== 0 && i !== null && (i.f |= Et)), i !== null && (i.parent = r, r !== null && vi(i, r), y !== null && (y.f & z) !== 0 && (t & $e) === 0)) {
1427
+ (i.f & Ge) === 0 && (i = i.first, (t & ge) !== 0 && (t & Et) !== 0 && i !== null && (i.f |= Et)), i !== null && (i.parent = r, r !== null && vi(i, r), y !== null && (y.f & $) !== 0 && (t & ze) === 0)) {
1428
1428
  var a = (
1429
1429
  /** @type {Derived} */
1430
1430
  y
@@ -1445,7 +1445,7 @@ function wi(t) {
1445
1445
  }
1446
1446
  function yi(t) {
1447
1447
  Ee.ensure();
1448
- const e = we($e | Ge, t, !0);
1448
+ const e = we(ze | Ge, t, !0);
1449
1449
  return (n = {}) => new Promise((r) => {
1450
1450
  n.outro ? bt(e, () => {
1451
1451
  le(e), r(void 0);
@@ -1477,11 +1477,11 @@ function Sr(t) {
1477
1477
  var e = t.teardown;
1478
1478
  if (e !== null) {
1479
1479
  const n = Ye, r = y;
1480
- zn(!0), Q(null);
1480
+ $n(!0), Q(null);
1481
1481
  try {
1482
1482
  e.call(null);
1483
1483
  } finally {
1484
- zn(n), Q(r);
1484
+ $n(n), Q(r);
1485
1485
  }
1486
1486
  }
1487
1487
  }
@@ -1493,7 +1493,7 @@ function fn(t, e = !1) {
1493
1493
  s.abort(Ae);
1494
1494
  });
1495
1495
  var r = n.next;
1496
- (n.f & $e) !== 0 ? n.parent = null : le(n, e), n = r;
1496
+ (n.f & ze) !== 0 ? n.parent = null : le(n, e), n = r;
1497
1497
  }
1498
1498
  }
1499
1499
  function Mi(t) {
@@ -1564,7 +1564,7 @@ function xi(t, e) {
1564
1564
  }
1565
1565
  }
1566
1566
  let Mt = !1, Ye = !1;
1567
- function zn(t) {
1567
+ function $n(t) {
1568
1568
  Ye = t;
1569
1569
  }
1570
1570
  let y = null, ne = !1;
@@ -1584,7 +1584,7 @@ function Pi(t) {
1584
1584
  X = t;
1585
1585
  }
1586
1586
  let Tr = 1, Ne = 0, Re = Ne;
1587
- function $n(t) {
1587
+ function zn(t) {
1588
1588
  Re = t;
1589
1589
  }
1590
1590
  function Ar() {
@@ -1594,7 +1594,7 @@ function ht(t) {
1594
1594
  var e = t.f;
1595
1595
  if ((e & F) !== 0)
1596
1596
  return !0;
1597
- if (e & z && (t.f &= ~ze), (e & se) !== 0) {
1597
+ if (e & $ && (t.f &= ~$e), (e & se) !== 0) {
1598
1598
  for (var n = (
1599
1599
  /** @type {Value[]} */
1600
1600
  t.deps
@@ -1620,7 +1620,7 @@ function Nr(t, e, n = !0) {
1620
1620
  if (r !== null && !(K !== null && He.call(K, t)))
1621
1621
  for (var s = 0; s < r.length; s++) {
1622
1622
  var i = r[s];
1623
- (i.f & z) !== 0 ? Nr(
1623
+ (i.f & $) !== 0 ? Nr(
1624
1624
  /** @type {Derived} */
1625
1625
  i,
1626
1626
  e,
@@ -1634,7 +1634,7 @@ function Nr(t, e, n = !0) {
1634
1634
  function Cr(t) {
1635
1635
  var e = W, n = Y, r = X, s = y, i = K, a = ie, o = ne, l = Re, u = t.f;
1636
1636
  W = /** @type {null | Value[]} */
1637
- null, Y = 0, X = null, y = (u & (Se | $e)) === 0 ? t : null, K = null, qe(t.ctx), ne = !1, Re = ++Ne, t.ac !== null && (Mr(() => {
1637
+ null, Y = 0, X = null, y = (u & (Se | ze)) === 0 ? t : null, K = null, qe(t.ctx), ne = !1, Re = ++Ne, t.ac !== null && (Mr(() => {
1638
1638
  t.ac.abort(Ae);
1639
1639
  }), t.ac = null);
1640
1640
  try {
@@ -1656,7 +1656,7 @@ function Cr(t) {
1656
1656
  for (p = Y; p < f.length; p++)
1657
1657
  (f[p].reactions ??= []).push(t);
1658
1658
  } else !m && f !== null && Y < f.length && (ut(t, Y), f.length = Y);
1659
- if (or() && X !== null && !ne && f !== null && (t.f & (z | se | F)) === 0)
1659
+ if (or() && X !== null && !ne && f !== null && (t.f & ($ | se | F)) === 0)
1660
1660
  for (p = 0; p < /** @type {Source[]} */
1661
1661
  X.length; p++)
1662
1662
  Nr(
@@ -1690,7 +1690,7 @@ function Ii(t, e) {
1690
1690
  s === 0 ? n = e.reactions = null : (n[r] = n[s], n.pop());
1691
1691
  }
1692
1692
  }
1693
- if (n === null && (e.f & z) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1693
+ if (n === null && (e.f & $) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1694
1694
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1695
1695
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1696
1696
  (W === null || !He.call(W, e))) {
@@ -1698,7 +1698,7 @@ function Ii(t, e) {
1698
1698
  /** @type {Derived} */
1699
1699
  e
1700
1700
  );
1701
- (i.f & G) !== 0 && (i.f ^= G, i.f &= ~ze), an(i), fi(i), ut(i, 0);
1701
+ (i.f & G) !== 0 && (i.f ^= G, i.f &= ~$e), an(i), fi(i), ut(i, 0);
1702
1702
  }
1703
1703
  }
1704
1704
  function ut(t, e) {
@@ -1725,7 +1725,7 @@ function Xe(t) {
1725
1725
  }
1726
1726
  }
1727
1727
  function E(t) {
1728
- var e = t.f, n = (e & z) !== 0;
1728
+ var e = t.f, n = (e & $) !== 0;
1729
1729
  if (y !== null && !ne) {
1730
1730
  var r = _ !== null && (_.f & be) !== 0;
1731
1731
  if (!r && (K === null || !He.call(K, t))) {
@@ -1762,7 +1762,7 @@ function E(t) {
1762
1762
  function Rr(t) {
1763
1763
  if (t.f |= G, t.deps !== null)
1764
1764
  for (const e of t.deps)
1765
- (e.reactions ??= []).push(t), (e.f & z) !== 0 && (e.f & G) === 0 && (mr(
1765
+ (e.reactions ??= []).push(t), (e.f & $) !== 0 && (e.f & G) === 0 && (mr(
1766
1766
  /** @type {Derived} */
1767
1767
  e
1768
1768
  ), Rr(
@@ -1774,7 +1774,7 @@ function Dr(t) {
1774
1774
  if (t.v === C) return !0;
1775
1775
  if (t.deps === null) return !1;
1776
1776
  for (const e of t.deps)
1777
- if (xe.has(e) || (e.f & z) !== 0 && Dr(
1777
+ if (xe.has(e) || (e.f & $) !== 0 && Dr(
1778
1778
  /** @type {Derived} */
1779
1779
  e
1780
1780
  ))
@@ -1873,7 +1873,7 @@ function Oi(t, e = !1) {
1873
1873
  var n = mi("template");
1874
1874
  return t = t.replaceAll("<!>", "<!---->"), n.innerHTML = e ? Di(t) : t, n.content;
1875
1875
  }
1876
- function zi(t, e) {
1876
+ function $i(t, e) {
1877
1877
  var n = (
1878
1878
  /** @type {Effect} */
1879
1879
  _
@@ -1881,7 +1881,7 @@ function zi(t, e) {
1881
1881
  n.nodes === null && (n.nodes = { start: t, end: e, a: null, t: null });
1882
1882
  }
1883
1883
  // @__NO_SIDE_EFFECTS__
1884
- function zr(t, e) {
1884
+ function $r(t, e) {
1885
1885
  var n, r = !t.startsWith("<!>");
1886
1886
  return () => {
1887
1887
  n === void 0 && (n = Oi(r ? t : "<!>" + t, !0), n = /** @type {TemplateNode} */
@@ -1890,20 +1890,20 @@ function zr(t, e) {
1890
1890
  /** @type {TemplateNode} */
1891
1891
  wr ? document.importNode(n, !0) : n.cloneNode(!0)
1892
1892
  );
1893
- return zi(s, s), s;
1893
+ return $i(s, s), s;
1894
1894
  };
1895
1895
  }
1896
- function $r(t, e) {
1896
+ function zr(t, e) {
1897
1897
  t !== null && t.before(
1898
1898
  /** @type {Node} */
1899
1899
  e
1900
1900
  );
1901
1901
  }
1902
1902
  function hn(t, e) {
1903
- return $i(t, e);
1903
+ return zi(t, e);
1904
1904
  }
1905
1905
  const wt = /* @__PURE__ */ new Map();
1906
- function $i(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
1906
+ function zi(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: a = !0 }) {
1907
1907
  pi();
1908
1908
  var o = /* @__PURE__ */ new Set(), l = (h) => {
1909
1909
  for (var f = 0; f < h.length; f++) {
@@ -2107,7 +2107,7 @@ class Br {
2107
2107
  return performance.now() > this.time.end;
2108
2108
  }
2109
2109
  }
2110
- var Ui = /* @__PURE__ */ zr("<div></div>");
2110
+ var Ui = /* @__PURE__ */ $r("<div></div>");
2111
2111
  function Wi(t, e) {
2112
2112
  rn(e, !0);
2113
2113
  let n = e.id, r = e.style, s = e.content, i = {
@@ -2187,14 +2187,14 @@ function Wi(t, e) {
2187
2187
  height: `${u}px`,
2188
2188
  "border-radius": `${c}px`,
2189
2189
  "border-color": f,
2190
- "background-color": m,
2190
+ "background-color": `rgb(from ${m} r g b / 1)`,
2191
2191
  "border-width": `${h}px`,
2192
2192
  "box-shadow": p,
2193
2193
  scale: Fe,
2194
2194
  filter: `brightness(${dt(Fe)})`
2195
2195
  })
2196
2196
  ]
2197
- ), $r(t, pe), sn(Ct);
2197
+ ), zr(t, pe), sn(Ct);
2198
2198
  }
2199
2199
  class Hi extends pt {
2200
2200
  width;
@@ -2284,7 +2284,7 @@ function en(t, e, n) {
2284
2284
  let r = t / 2, s = e / 2, i = Math.sqrt(r * r + s * s), a = Math.atan(s / r) * (180 / Math.PI), o = n * (Math.PI / 180);
2285
2285
  return n < 180 ? n < 90 ? n < a ? { x: 0, y: i * Math.sin(o) - s } : { x: i * Math.cos(o) - r, y: 0 } : n < 180 - a ? { x: i * Math.cos(o) - r, y: 0 } : { x: -t, y: i * Math.sin(o) - s } : n < 270 ? n < 180 + a ? { x: -t, y: i * Math.sin(o) - s } : { x: i * Math.cos(o) - r, y: -e } : n < 360 - a ? { x: i * Math.cos(o) - r, y: -e } : { x: 0, y: i * Math.sin(o) - s };
2286
2286
  }
2287
- var qi = /* @__PURE__ */ zr('<div><div class="element pointer svelte-1no6o2a"></div> <div class="element tooltip svelte-1no6o2a"><div class="element body svelte-1no6o2a"></div></div></div>');
2287
+ var qi = /* @__PURE__ */ $r('<div><div class="element pointer svelte-1no6o2a"></div> <div class="element tooltip svelte-1no6o2a"><div class="element body svelte-1no6o2a"></div></div></div>');
2288
2288
  function Ur(t, e) {
2289
2289
  rn(e, !0);
2290
2290
  let n = e.id, r = e.style, s = e.content, i = {
@@ -2376,7 +2376,7 @@ function Ur(t, e) {
2376
2376
  gn = w, wn();
2377
2377
  }
2378
2378
  function wn() {
2379
- const w = vn, de = gn, me = w + p / 2, $t = de + v / 2, Lt = v < p ? me * v / p : me, Ft = v > p ? $t * p / v : $t, hs = Math.atan2(Ft, Lt) / Math.PI * 180 - 45, Vt = Math.sqrt(Lt * Lt + Ft * Ft), et = Math.min(p, v) / 2, ps = et * Math.SQRT2, jt = (Vt - et) / (ps - et), En = 0, xn = En + jt * (22.5 - En), ds = Vt < et ? Vt / et : 1, ms = -M * (me / p) * jt, vs = -M * ($t / v) * jt;
2379
+ const w = vn, de = gn, me = w + p / 2, zt = de + v / 2, Lt = v < p ? me * v / p : me, Ft = v > p ? zt * p / v : zt, hs = Math.atan2(Ft, Lt) / Math.PI * 180 - 45, Vt = Math.sqrt(Lt * Lt + Ft * Ft), et = Math.min(p, v) / 2, ps = et * Math.SQRT2, jt = (Vt - et) / (ps - et), En = 0, xn = En + jt * (22.5 - En), ds = Vt < et ? Vt / et : 1, ms = -M * (me / p) * jt, vs = -M * (zt / v) * jt;
2380
2380
  m.style.transform = `translate(${Math.round(w)}px, ${Math.round(de)}px)`, u.style.transform = `scale(${ds}) rotate(${hs}deg) skew(${xn}deg, ${xn}deg)`, N.style.transform = `translate(${Math.round(ms)}px, ${Math.round(vs)}px)`;
2381
2381
  }
2382
2382
  var fs = { invoke: a }, Qe = qi();
@@ -2384,17 +2384,17 @@ function Ur(t, e) {
2384
2384
  var Ot = On(Qe);
2385
2385
  let kn;
2386
2386
  rt(Ot, (w) => u = w, () => u);
2387
- var zt = di(Ot, 2);
2387
+ var $t = di(Ot, 2);
2388
2388
  let _n;
2389
- var bn = On(zt);
2389
+ var bn = On($t);
2390
2390
  let Mn;
2391
- return rt(bn, (w) => N = w, () => N), rt(zt, (w) => m = w, () => m), rt(Qe, (w) => o = w, () => o), xr(() => {
2391
+ return rt(bn, (w) => N = w, () => N), rt($t, (w) => m = w, () => m), rt(Qe, (w) => o = w, () => o), xr(() => {
2392
2392
  Vr(Qe, 1, Fr(["element anchor", E(B) && "displayed"]), "svelte-1no6o2a"), yn = nt(Qe, "", yn, { filter: `drop-shadow(${l})` }), kn = nt(Ot, "", kn, {
2393
2393
  width: `${c}px`,
2394
2394
  height: `${c}px`,
2395
- "background-color": h,
2395
+ "background-color": `rgb(from ${h} r g b / 1)`,
2396
2396
  "border-radius": `${f}px`
2397
- }), _n = nt(zt, "", _n, {
2397
+ }), _n = nt($t, "", _n, {
2398
2398
  width: `${p}px`,
2399
2399
  height: `${v}px`,
2400
2400
  padding: `${M}px`
@@ -2402,9 +2402,9 @@ function Ur(t, e) {
2402
2402
  width: `${fe}px`,
2403
2403
  height: `${Le}px`,
2404
2404
  "border-radius": `${Pe}px`,
2405
- "background-color": Ie
2405
+ "background-color": `rgb(from ${Ie} r g b / 1)`
2406
2406
  });
2407
- }), $r(t, Qe), sn(fs);
2407
+ }), zr(t, Qe), sn(fs);
2408
2408
  }
2409
2409
  class Zi extends pt {
2410
2410
  width;
@@ -2840,11 +2840,11 @@ var At = class extends Error {
2840
2840
  }
2841
2841
  };
2842
2842
  // @__NO_SIDE_EFFECTS__
2843
- function $(t) {
2843
+ function z(t) {
2844
2844
  return {
2845
2845
  kind: "transformation",
2846
2846
  type: "args",
2847
- reference: $,
2847
+ reference: z,
2848
2848
  async: !1,
2849
2849
  schema: t,
2850
2850
  "~run"(e, n) {
@@ -3370,7 +3370,7 @@ function _a(...t) {
3370
3370
  }
3371
3371
  };
3372
3372
  }
3373
- var ba = /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ Gr(32)), Ma = /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ dn(1)), ss = /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(-90), /* @__PURE__ */ ft(90)), is = /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(-180), /* @__PURE__ */ ft(180)), St = /* @__PURE__ */ D({ lat: ss, lng: is }), as = /* @__PURE__ */ D({ sw: St, ne: St }), Ea = /* @__PURE__ */ D({ bounds: as, center: St, zoom: /* @__PURE__ */ x() }), tn = /* @__PURE__ */ ns((t) => t instanceof HTMLElement, "Must be an HTMLElement"), xa = /* @__PURE__ */ D({ mapSize: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(1)), zoomMin: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), zoomMax: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), zoomScale: /* @__PURE__ */ mn([/* @__PURE__ */ De(1), /* @__PURE__ */ De(2), /* @__PURE__ */ De(10)]) }), Sa = /* @__PURE__ */ D({ inserted: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ ts())), insert: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), remove: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), update: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([/* @__PURE__ */ x()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), Zn = /* @__PURE__ */ mn([/* @__PURE__ */ De("idle"), /* @__PURE__ */ De("move"), /* @__PURE__ */ De("click")]), Pa = /* @__PURE__ */ D({ getParameters: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([])), /* @__PURE__ */ V(xa)), getContainer: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([])), /* @__PURE__ */ V(tn)), getZoom: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ x())), getBounds: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([])), /* @__PURE__ */ V(as)), getCenter: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([])), /* @__PURE__ */ V(St)), getViewport: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Ea)), panBy: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([/* @__PURE__ */ x(), /* @__PURE__ */ x()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), createMarker: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([tn, ss, is, /* @__PURE__ */ x()])), /* @__PURE__ */ V(Sa)), subscribe: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([Zn, /* @__PURE__ */ T()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), unsubscribe: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([Zn, /* @__PURE__ */ T()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), Zt = /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ $(/* @__PURE__ */ L([/* @__PURE__ */ ue()])), /* @__PURE__ */ Kr(/* @__PURE__ */ _a(/* @__PURE__ */ rs(), /* @__PURE__ */ Xr(), tn))), Ia = /* @__PURE__ */ D({ dimensions: /* @__PURE__ */ D({ width: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), height: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), padding: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), radius: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)) }), colors: /* @__PURE__ */ re(/* @__PURE__ */ D({ background: /* @__PURE__ */ re(/* @__PURE__ */ ue()), border: /* @__PURE__ */ re(/* @__PURE__ */ ue()), shadow: /* @__PURE__ */ re(/* @__PURE__ */ ue()) })) }), Yn = /* @__PURE__ */ D({ dimensions: /* @__PURE__ */ g(/* @__PURE__ */ D({ width: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), height: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), margin: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), radius: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)) }), /* @__PURE__ */ Jr((t) => Math.min(t.width, t.height) / t.margin >= 4, "Minimum of width or height must be greater than or equal to 4 * margin")), colors: /* @__PURE__ */ re(/* @__PURE__ */ D({ background: /* @__PURE__ */ re(/* @__PURE__ */ ue()), shadow: /* @__PURE__ */ re(/* @__PURE__ */ ue()) })) }), Ta = /* @__PURE__ */ D({ id: /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ dn(1)), rank: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), lat: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(-90), /* @__PURE__ */ ft(90)), lng: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(-180), /* @__PURE__ */ ft(180)), tooltip: /* @__PURE__ */ D({ style: Yn, body: Zt }), pin: /* @__PURE__ */ re(/* @__PURE__ */ D({ style: Ia, body: /* @__PURE__ */ re(Zt) })), popup: /* @__PURE__ */ re(/* @__PURE__ */ D({ style: Yn, body: Zt })) });
3373
+ var ba = /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ Gr(32)), Ma = /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ dn(1)), ss = /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(-90), /* @__PURE__ */ ft(90)), is = /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(-180), /* @__PURE__ */ ft(180)), St = /* @__PURE__ */ D({ lat: ss, lng: is }), as = /* @__PURE__ */ D({ sw: St, ne: St }), Ea = /* @__PURE__ */ D({ bounds: as, center: St, zoom: /* @__PURE__ */ x() }), tn = /* @__PURE__ */ ns((t) => t instanceof HTMLElement, "Must be an HTMLElement"), xa = /* @__PURE__ */ D({ mapSize: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(1)), zoomMin: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), zoomMax: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), zoomScale: /* @__PURE__ */ mn([/* @__PURE__ */ De(1), /* @__PURE__ */ De(2), /* @__PURE__ */ De(10)]) }), Sa = /* @__PURE__ */ D({ inserted: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ ts())), insert: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), remove: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), update: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([/* @__PURE__ */ x()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), Zn = /* @__PURE__ */ mn([/* @__PURE__ */ De("idle"), /* @__PURE__ */ De("move"), /* @__PURE__ */ De("click")]), Pa = /* @__PURE__ */ D({ getParameters: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ V(xa)), getContainer: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ V(tn)), getZoom: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ x())), getBounds: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ V(as)), getCenter: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ V(St)), getViewport: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Ea)), panBy: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([/* @__PURE__ */ x(), /* @__PURE__ */ x()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), createMarker: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([tn, ss, is, /* @__PURE__ */ x()])), /* @__PURE__ */ V(Sa)), subscribe: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([Zn, /* @__PURE__ */ T()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), unsubscribe: /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([Zn, /* @__PURE__ */ T()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), Zt = /* @__PURE__ */ g(/* @__PURE__ */ T(), /* @__PURE__ */ z(/* @__PURE__ */ L([/* @__PURE__ */ ue()])), /* @__PURE__ */ Kr(/* @__PURE__ */ _a(/* @__PURE__ */ rs(), /* @__PURE__ */ Xr(), tn))), Ia = /* @__PURE__ */ D({ dimensions: /* @__PURE__ */ D({ width: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), height: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), padding: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), radius: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)) }), colors: /* @__PURE__ */ re(/* @__PURE__ */ D({ background: /* @__PURE__ */ re(/* @__PURE__ */ ue()), border: /* @__PURE__ */ re(/* @__PURE__ */ ue()), shadow: /* @__PURE__ */ re(/* @__PURE__ */ ue()) })) }), Yn = /* @__PURE__ */ D({ dimensions: /* @__PURE__ */ g(/* @__PURE__ */ D({ width: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), height: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), margin: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), radius: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)) }), /* @__PURE__ */ Jr((t) => Math.min(t.width, t.height) / t.margin >= 4, "Minimum of width or height must be greater than or equal to 4 * margin")), colors: /* @__PURE__ */ re(/* @__PURE__ */ D({ background: /* @__PURE__ */ re(/* @__PURE__ */ ue()), shadow: /* @__PURE__ */ re(/* @__PURE__ */ ue()) })) }), Ta = /* @__PURE__ */ D({ id: /* @__PURE__ */ g(/* @__PURE__ */ ue(), /* @__PURE__ */ dn(1)), rank: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(0)), lat: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(-90), /* @__PURE__ */ ft(90)), lng: /* @__PURE__ */ g(/* @__PURE__ */ x(), /* @__PURE__ */ R(-180), /* @__PURE__ */ ft(180)), tooltip: /* @__PURE__ */ D({ style: Yn, body: Zt }), pin: /* @__PURE__ */ re(/* @__PURE__ */ D({ style: Ia, body: /* @__PURE__ */ re(Zt) })), popup: /* @__PURE__ */ re(/* @__PURE__ */ D({ style: Yn, body: Zt })) });
3374
3374
  class Aa {
3375
3375
  apiKey;
3376
3376
  apiJwt;
@@ -3412,7 +3412,7 @@ class Aa {
3412
3412
  return s.jwt && (this.apiJwt = s.jwt), s.states;
3413
3413
  }
3414
3414
  }
3415
- const Xn = "1.2.25", Na = "https://maps.api.arenarium.dev/auth", Ca = "https://maps.api.arenarium.dev/log", Jn = 500;
3415
+ const Xn = "1.2.26", Na = "https://maps.api.arenarium.dev/auth", Ca = "https://maps.api.arenarium.dev/log", Jn = 500;
3416
3416
  class os {
3417
3417
  apiKey;
3418
3418
  mapProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arenarium/maps",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "license": "MIT",
5
5
  "author": "arenarium",
6
6
  "description": "Visualize complex map markers clearly. A JavaScript library for effective display of map markers, compatible with MapLibre, Mapbox, and Google Maps.",