@arenarium/maps 1.3.3 → 1.3.4

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 +405 -406
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -20,8 +20,8 @@ class qt {
20
20
  class xi {
21
21
  properites;
22
22
  state;
23
- constructor(e, n, r, i, s, a, o) {
24
- this.properites = { id: e, lat: n, lng: r, rank: i, pin: s, tooltip: a, popup: o }, this.state = void 0;
23
+ constructor(e, n, r, i, s, a, u) {
24
+ this.properites = { id: e, lat: n, lng: r, rank: i, pin: s, tooltip: a, popup: u }, this.state = void 0;
25
25
  }
26
26
  get input() {
27
27
  const e = this.properites, n = e.tooltip.dimensions;
@@ -111,7 +111,7 @@ class fr {
111
111
  this.workerInvocations.forEach((e) => e.reject(new Error("Terminated"))), this.workerInvocations.clear(), this.worker.terminate();
112
112
  }
113
113
  }
114
- class Be {
114
+ class We {
115
115
  remove;
116
116
  insert;
117
117
  constructor(e, n) {
@@ -119,10 +119,10 @@ class Be {
119
119
  }
120
120
  static from(e, n) {
121
121
  const r = new Set(e), i = new Set(n), s = Array.from(r.difference(i)), a = Array.from(i.difference(r));
122
- return new Be(s, a);
122
+ return new We(s, a);
123
123
  }
124
124
  static empty() {
125
- return new Be([], []);
125
+ return new We([], []);
126
126
  }
127
127
  }
128
128
  const hr = '(function(){"use strict";function w(l,t,e){return{x:T(t)*e,y:I(l)*e}}function m(l,t,e){return{lat:R(t/e),lng:P(l/e)}}function T(l){return(180+l)/360}function I(l){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+l*Math.PI/360)))/360}function P(l){return l*360-180}function R(l){return 360/Math.PI*Math.atan(Math.exp((180-l*360)*Math.PI/180))-90}class c{sw;ne;constructor(t,e,n,s){if(n<t)throw new Error(`Invalid bounds: ${t}, ${e}, ${n}, ${s}`);if(s<e)throw new Error(`Invalid bounds: ${t}, ${e}, ${n}, ${s}`);this.sw={lat:t,lng:e},this.ne={lat:n,lng:s}}contains(t,e){return!(t<this.sw.lat||this.ne.lat<t||e<this.sw.lng||this.ne.lng<e)}intersects(t){return!(t.ne.lat<this.sw.lat||this.ne.lat<t.sw.lat||t.ne.lng<this.sw.lng||this.ne.lng<t.sw.lng)}}class h{blockL;blockR;sw;ne;constructor(t,e,n,s){if(n<t)throw new Error(`Invalid bounds: ${t}, ${e}, ${n}, ${s}`);this.sw={lat:t,lng:e},this.ne={lat:n,lng:s},e<s?(this.blockL=new c(t,e,n,s),this.blockR=new c(0,0,0,0)):(this.blockL=new c(t,-180,n,s),this.blockR=new c(t,e,n,180))}static bounds(t){const e=t.bounds,n=t.center;return e.sw.lng<=n.lng&&e.ne.lng<=n.lng?{sw:{lat:e.sw.lat,lng:-180},ne:{lat:e.ne.lat,lng:180}}:e.sw.lng>=n.lng&&e.ne.lng>=n.lng?{sw:{lat:e.sw.lat,lng:-180},ne:{lat:e.ne.lat,lng:180}}:Math.abs(e.ne.lng-n.lng)+Math.abs(e.sw.lng-n.lng)>360?{sw:{lat:e.sw.lat,lng:-180},ne:{lat:e.ne.lat,lng:180}}:e.ne.lng-e.sw.lng>360?{sw:{lat:e.sw.lat,lng:-180},ne:{lat:e.ne.lat,lng:180}}:t.bounds}static create(t){const e=this.bounds(t),n=e.sw,s=e.ne;return new h(n.lat,n.lng,s.lat,s.lng)}static offset(t,e,n){const s=this.bounds(t),r=t.zoom,o=e*Math.pow(2,r),i=w(s.sw.lat,s.sw.lng,o),a=w(s.ne.lat,s.ne.lng,o);let g=Math.max(i.x-n.left,0),f=Math.min(i.y+n.bottom,o),D=Math.min(a.x+n.right,o),N=Math.max(a.y-n.top,0);const z=m(g,f,o),C=m(D,N,o);return new h(z.lat,z.lng,C.lat,C.lng)}contains(t,e){return this.blockL.contains(t,e)||this.blockR.contains(t,e)}intersects(t){return this.blockL.intersects(t)||this.blockR.intersects(t)}}class S{id;bounds;markers;constructor(t,e){this.id=t,this.bounds=e,this.markers=[]}belongs(t){const e=this.bounds.sw;if(t.lat<e.lat||t.lng<e.lng)return!1;const n=this.bounds.ne;return!(n.lat<t.lat||n.lng<t.lng)}neighbours(t,e){const n=Math.abs(t.id.length-this.id.length);if(n>e)return!1;const s=Math.min(this.id.length,t.id.length)-e+n;for(let r=0;r<s;r++)if(this.id[r]!=t.id[r])return!1;return!0}}class u{tree;zoom;cell;branches;constructor(t,e,n,s){this.tree=t,this.zoom=n,this.cell=new S(e,s),this.branches=new Array}split(){const t=this.cell.bounds,e=Math.pow(2,this.tree.depth),n=(t.ne.lat-t.sw.lat)/e,s=(t.ne.lng-t.sw.lng)/e;for(let r=0;r<e;r++)for(let o=0;o<e;o++){const i=t.sw.lat+r*n,a=t.sw.lng+o*s,g=i+n,f=a+s;this.branches.push(new u(this.tree,`${this.cell.id}${r*2+o}`,this.zoom+this.tree.depth,{sw:{lat:i,lng:a},ne:{lat:g,lng:f}}))}}add(t){if(this.cell.belongs(t)==!1)return!1;if(this.cell.markers.length<this.tree.capacity)return this.cell.markers.push(t),!0;this.branches.length==0&&this.split();for(let e=0;e<this.branches.length;e++)if(this.branches[e].add(t))return!0;throw new Error("Failed to add marker to branch")}compact(){if(this.branches.length==0)return;for(let s=0;s<this.branches.length;s++)this.branches[s].compact();const t=new Array,e=new Array;for(let s=0;s<this.branches.length;s++){const r=this.branches[s];t.push(...r.branches),e.push(...r.cell.markers)}const n=new u(this.tree,this.cell.id,this.zoom+this.tree.depth,this.cell.bounds);n.branches=t,n.cell.markers=e,this.branches=[n]}cells(t,e,n){if(t<this.zoom||e.intersects(this.cell.bounds)==!1)return n;n.push(this.cell);for(let s=0;s<this.branches.length;s++)this.branches[s].cells(t,e,n);return n}print(t){console.log(`${"---".repeat(t)}|${this.cell.id} zoom=[${this.zoom}] markers=[${this.cell.markers.length}]`);for(let e=0;e<this.branches.length;e++)this.branches[e].print(t+1)}count(){return this.cell.markers.length+this.branches.reduce((t,e)=>t+e.count(),0)}}class x{capacity;depth;root;constructor(t,e,n){this.capacity=n,this.depth=e,this.root=new u(this,"R",t,{sw:{lat:-90,lng:-180},ne:{lat:90,lng:180}})}add(t){return this.root.add(t)}compact(){this.root.compact()}cells(t,e){const n=new Array;return this.root.cells(t,e,n),n}print(){this.root.print(0)}}const A=16,p=2,k=1,M=A*4;let b,d,E=p,$=k,y=M;const v={update(l,t,e){const n=-Math.floor(Math.log2(l.mapSize/y)),s=new x(n,$,E);for(let o=0;o<t.length;o++){const i=t[o];if(!s.add(i))throw new Error("Failed to add marker to tree")}const r=-n;for(let o=0;o<r;o++)s.compact();b=s,d=e},configure(l){E=l?.process?.visibility?.cell?.capacity??p,$=l?.process?.visibility?.cell?.depth??k,y=l?.process?.visibility?.cell?.size??M},filter(l,t){if(!b||!d)return[];const e=h.create(t);let n=[],s=t.zoom;for(;s<l.zoomMax&&n.length<d;)n=b.cells(s,e).flatMap(r=>r.markers),s++;return n.map(r=>r.index)}};class _{methods;constructor(t){this.methods=t}listen(){self.onmessage=this.onmessage.bind(this)}async onmessage(t){const{id:e,method:n,args:s}=t.data;try{const r=this.methods[n];if(typeof r!="function")throw new Error(`Unknown method: ${n}`);const o=await r(...s),i={id:e,result:o};self.postMessage(i)}catch(r){const o=r instanceof Error?r.message:String(r),i={id:e,error:o};self.postMessage(i)}}}new _(v).listen()})();\n', zn = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", hr], { type: "text/javascript;charset=utf-8" });
@@ -202,10 +202,10 @@ class ut {
202
202
  * @param offsetY - The y offset of the map in pixels at zoom level n.
203
203
  */
204
204
  static offset(e, n, r) {
205
- const i = this.bounds(e), s = e.zoom, a = n * Math.pow(2, s), o = at(i.sw.lat, i.sw.lng, a), l = at(i.ne.lat, i.ne.lng, a);
206
- let u = Math.max(o.x - r.left, 0), c = Math.min(o.y + r.bottom, a), f = Math.min(l.x + r.right, a), p = Math.max(l.y - r.top, 0);
207
- const m = On(u, c, a), h = On(f, p, a);
208
- return new ut(m.lat, m.lng, h.lat, h.lng);
205
+ const i = this.bounds(e), s = e.zoom, a = n * Math.pow(2, s), u = at(i.sw.lat, i.sw.lng, a), o = at(i.ne.lat, i.ne.lng, a);
206
+ let l = Math.max(u.x - r.left, 0), c = Math.min(u.y + r.bottom, a), f = Math.min(o.x + r.right, a), h = Math.max(o.y - r.top, 0);
207
+ const m = On(l, c, a), p = On(f, h, a);
208
+ return new ut(m.lat, m.lng, p.lat, p.lng);
209
209
  }
210
210
  contains(e, n) {
211
211
  return this.blockL.contains(e, n) || this.blockR.contains(e, n);
@@ -214,29 +214,29 @@ class ut {
214
214
  return this.blockL.intersects(e) || this.blockR.intersects(e);
215
215
  }
216
216
  }
217
- const Di = 75, zi = 150, Ln = 25e-5, Oi = 1e6, Li = 2e6, Fn = 3e6, pr = 10, $n = 16, Fi = 8, Vn = 2, je = 0.5, $i = "0px 2px 2px rgba(0, 0, 0, 0.5)", jn = 8, Vi = 8, ji = "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5))", Un = "white", Ui = "darkgreen", Bn = 1024;
218
- class Bi {
217
+ const Di = 75, zi = 150, Ln = 25e-5, Oi = 1e6, Li = 2e6, Fn = 3e6, pr = 10, $n = 16, Fi = 8, Vn = 2, je = 0.5, $i = "0px 2px 2px rgba(0, 0, 0, 0.5)", jn = 8, Vi = 8, ji = "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5))", Un = "white", Ui = "darkgreen", Wn = 1024;
218
+ class Wi {
219
219
  // State
220
220
  markers;
221
221
  markersVisible;
222
222
  markerVisibilityTreeWorker;
223
223
  markerVisibilityTreeWorkerClient;
224
- markerVisibilityTreeLimit = Bn;
224
+ markerVisibilityTreeLimit = Wn;
225
225
  set configuration(e) {
226
- this.markerVisibilityTreeWorkerClient?.invoke("configure", e), this.markerVisibilityTreeLimit = e?.process?.visibility?.limit ?? Bn;
226
+ this.markerVisibilityTreeWorkerClient?.invoke("configure", e), this.markerVisibilityTreeLimit = e?.process?.visibility?.limit ?? Wn;
227
227
  }
228
228
  getMarkers() {
229
229
  return Array.from(this.markersVisible ?? []);
230
230
  }
231
231
  async getMarkersDelta(e, n) {
232
232
  if (this.markerVisibilityTreeWorkerClient && this.markers) {
233
- const r = await this.markerVisibilityTreeWorkerClient.invoke("filter", e, n), i = this.markersVisible, s = r.map((o) => this.markers[o]), a = Be.from(i, s);
233
+ const r = await this.markerVisibilityTreeWorkerClient.invoke("filter", e, n), i = this.markersVisible, s = r.map((u) => this.markers[u]), a = We.from(i, s);
234
234
  return this.markersVisible = s, a;
235
235
  } else if (this.markers != this.markersVisible) {
236
- const r = this.markersVisible, i = this.markers, s = Be.from(r, i);
236
+ const r = this.markersVisible, i = this.markers, s = We.from(r, i);
237
237
  return this.markersVisible = i, s;
238
238
  } else
239
- return Be.empty();
239
+ return We.empty();
240
240
  }
241
241
  async updateMarkers(e, n) {
242
242
  this.markers = n, n.length > this.markerVisibilityTreeLimit ? (this.markerVisibilityTreeWorker = new Ii(), this.markerVisibilityTreeWorkerClient = new fr(this.markerVisibilityTreeWorker), await this.markerVisibilityTreeWorkerClient.invoke(
@@ -251,7 +251,7 @@ class Bi {
251
251
  }
252
252
  }
253
253
  const Kt = !1;
254
- var Wi = Array.isArray, Hi = Array.prototype.indexOf, Ze = Array.prototype.includes, qi = Array.from, Yi = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, Zi = Object.prototype, Xi = Array.prototype, Ji = Object.getPrototypeOf, Wn = Object.isExtensible;
254
+ var Bi = Array.isArray, Hi = Array.prototype.indexOf, Ze = Array.prototype.includes, qi = Array.from, Yi = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, Zi = Object.prototype, Xi = Array.prototype, Ji = Object.getPrototypeOf, Bn = Object.isExtensible;
255
255
  const Gi = () => {
256
256
  };
257
257
  function Ki(t) {
@@ -494,12 +494,12 @@ class Se {
494
494
  #l(e, n, r) {
495
495
  e.f ^= D;
496
496
  for (var i = e.first; i !== null; ) {
497
- var s = i.f, a = (s & (Te | Fe)) !== 0, o = a && (s & D) !== 0, l = o || (s & Me) !== 0 || this.#t.has(i);
498
- if (!l && i.fn !== null) {
497
+ var s = i.f, a = (s & (Te | Fe)) !== 0, u = a && (s & D) !== 0, o = u || (s & Me) !== 0 || this.#t.has(i);
498
+ if (!o && i.fn !== null) {
499
499
  a ? i.f ^= D : (s & pt) !== 0 ? n.push(i) : dt(i) && ((s & we) !== 0 && this.#e.add(i), Ke(i));
500
- var u = i.first;
501
- if (u !== null) {
502
- i = u;
500
+ var l = i.first;
501
+ if (l !== null) {
502
+ i = l;
503
503
  continue;
504
504
  }
505
505
  }
@@ -556,27 +556,27 @@ class Se {
556
556
  continue;
557
557
  }
558
558
  const s = [];
559
- for (const [o, l] of this.current) {
560
- if (i.current.has(o))
561
- if (n && l !== i.current.get(o))
562
- i.current.set(o, l);
559
+ for (const [u, o] of this.current) {
560
+ if (i.current.has(u))
561
+ if (n && o !== i.current.get(u))
562
+ i.current.set(u, o);
563
563
  else
564
564
  continue;
565
- s.push(o);
565
+ s.push(u);
566
566
  }
567
567
  if (s.length === 0)
568
568
  continue;
569
- const a = [...i.current.keys()].filter((o) => !this.current.has(o));
569
+ const a = [...i.current.keys()].filter((u) => !this.current.has(u));
570
570
  if (a.length > 0) {
571
571
  var r = K;
572
572
  K = [];
573
- const o = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
574
- for (const u of s)
575
- _r(u, a, o, l);
573
+ const u = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
574
+ for (const l of s)
575
+ _r(l, a, u, o);
576
576
  if (K.length > 0) {
577
577
  x = i, i.apply();
578
- for (const u of K)
579
- i.#l(u, [], []);
578
+ for (const l of K)
579
+ i.#l(l, [], []);
580
580
  i.deactivate();
581
581
  }
582
582
  K = r;
@@ -669,9 +669,9 @@ function qn(t) {
669
669
  let a = i.parent;
670
670
  for (; a !== null; )
671
671
  ve.has(a) && (ve.delete(a), s.push(a)), a = a.parent;
672
- for (let o = s.length - 1; o >= 0; o--) {
673
- const l = s[o];
674
- (l.f & (Ee | Me)) === 0 && Ke(l);
672
+ for (let u = s.length - 1; u >= 0; u--) {
673
+ const o = s[u];
674
+ (o.f & (Ee | Me)) === 0 && Ke(o);
675
675
  }
676
676
  }
677
677
  ve.clear();
@@ -962,29 +962,29 @@ class ws {
962
962
  }), this.#v(() => {
963
963
  Se.ensure(), this.#g();
964
964
  });
965
- }, o = (l) => {
965
+ }, u = (o) => {
966
966
  try {
967
- s = !0, n?.(l, a), s = !1;
968
- } catch (u) {
969
- _e(u, this.#n && this.#n.parent);
967
+ s = !0, n?.(o, a), s = !1;
968
+ } catch (l) {
969
+ _e(l, this.#n && this.#n.parent);
970
970
  }
971
971
  r && (this.#t = this.#v(() => {
972
972
  Se.ensure();
973
973
  try {
974
974
  return Ae(() => {
975
- var u = (
975
+ var l = (
976
976
  /** @type {Effect} */
977
977
  y
978
978
  );
979
- u.b = this, u.f |= Qt, r(
979
+ l.b = this, l.f |= Qt, r(
980
980
  this.#r,
981
- () => l,
981
+ () => o,
982
982
  () => a
983
983
  );
984
984
  });
985
- } catch (u) {
985
+ } catch (l) {
986
986
  return _e(
987
- u,
987
+ l,
988
988
  /** @type {Effect} */
989
989
  this.#n.parent
990
990
  ), null;
@@ -992,19 +992,19 @@ class ws {
992
992
  }));
993
993
  };
994
994
  Re(() => {
995
- var l;
995
+ var o;
996
996
  try {
997
- l = this.transform_error(e);
998
- } catch (u) {
999
- _e(u, this.#n && this.#n.parent);
997
+ o = this.transform_error(e);
998
+ } catch (l) {
999
+ _e(l, this.#n && this.#n.parent);
1000
1000
  return;
1001
1001
  }
1002
- l !== null && typeof l == "object" && typeof /** @type {any} */
1003
- l.then == "function" ? l.then(
1004
- o,
1002
+ o !== null && typeof o == "object" && typeof /** @type {any} */
1003
+ o.then == "function" ? o.then(
1004
+ u,
1005
1005
  /** @param {unknown} e */
1006
- (u) => _e(u, this.#n && this.#n.parent)
1007
- ) : o(l);
1006
+ (l) => _e(l, this.#n && this.#n.parent)
1007
+ ) : u(o);
1008
1008
  });
1009
1009
  }
1010
1010
  }
@@ -1018,24 +1018,24 @@ function ks(t, e, n, r) {
1018
1018
  var a = (
1019
1019
  /** @type {Effect} */
1020
1020
  y
1021
- ), o = ys(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
1022
- function u(f) {
1023
- o();
1021
+ ), u = ys(), o = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((f) => f.promise)) : null;
1022
+ function l(f) {
1023
+ u();
1024
1024
  try {
1025
1025
  r(f);
1026
- } catch (p) {
1027
- (a.f & Ee) === 0 && _e(p, a);
1026
+ } catch (h) {
1027
+ (a.f & Ee) === 0 && _e(h, a);
1028
1028
  }
1029
1029
  nn();
1030
1030
  }
1031
1031
  if (n.length === 0) {
1032
- l.then(() => u(e.map(i)));
1032
+ o.then(() => l(e.map(i)));
1033
1033
  return;
1034
1034
  }
1035
1035
  function c() {
1036
- o(), Promise.all(n.map((f) => /* @__PURE__ */ Ms(f))).then((f) => u([...e.map(i), ...f])).catch((f) => _e(f, a));
1036
+ u(), Promise.all(n.map((f) => /* @__PURE__ */ Ms(f))).then((f) => l([...e.map(i), ...f])).catch((f) => _e(f, a));
1037
1037
  }
1038
- l ? l.then(c) : c();
1038
+ o ? o.then(c) : c();
1039
1039
  }
1040
1040
  function ys() {
1041
1041
  var t = y, e = k, n = le, r = x;
@@ -1094,47 +1094,47 @@ function Ms(t, e, n) {
1094
1094
  ), s = Dt(
1095
1095
  /** @type {V} */
1096
1096
  R
1097
- ), a = !k, o = /* @__PURE__ */ new Map();
1097
+ ), a = !k, u = /* @__PURE__ */ new Map();
1098
1098
  return Ls(() => {
1099
- var l = dr();
1100
- i = l.promise;
1099
+ var o = dr();
1100
+ i = o.promise;
1101
1101
  try {
1102
- Promise.resolve(t()).then(l.resolve, l.reject).finally(nn);
1103
- } catch (p) {
1104
- l.reject(p), nn();
1102
+ Promise.resolve(t()).then(o.resolve, o.reject).finally(nn);
1103
+ } catch (h) {
1104
+ o.reject(h), nn();
1105
1105
  }
1106
- var u = (
1106
+ var l = (
1107
1107
  /** @type {Batch} */
1108
1108
  x
1109
1109
  );
1110
1110
  if (a) {
1111
1111
  var c = bs();
1112
- o.get(u)?.reject(Ne), o.delete(u), o.set(u, l);
1112
+ u.get(l)?.reject(Ne), u.delete(l), u.set(l, o);
1113
1113
  }
1114
- const f = (p, m = void 0) => {
1115
- if (u.activate(), m)
1114
+ const f = (h, m = void 0) => {
1115
+ if (l.activate(), m)
1116
1116
  m !== Ne && (s.f |= xe, At(s, m));
1117
1117
  else {
1118
- (s.f & xe) !== 0 && (s.f ^= xe), At(s, p);
1119
- for (const [h, v] of o) {
1120
- if (o.delete(h), h === u) break;
1118
+ (s.f & xe) !== 0 && (s.f ^= xe), At(s, h);
1119
+ for (const [p, v] of u) {
1120
+ if (u.delete(p), p === l) break;
1121
1121
  v.reject(Ne);
1122
1122
  }
1123
1123
  }
1124
1124
  c && c();
1125
1125
  };
1126
- l.promise.then(f, (p) => f(null, p || "unknown"));
1126
+ o.promise.then(f, (h) => f(null, h || "unknown"));
1127
1127
  }), Rs(() => {
1128
- for (const l of o.values())
1129
- l.reject(Ne);
1130
- }), new Promise((l) => {
1131
- function u(c) {
1128
+ for (const o of u.values())
1129
+ o.reject(Ne);
1130
+ }), new Promise((o) => {
1131
+ function l(c) {
1132
1132
  function f() {
1133
- c === i ? l(s) : u(i);
1133
+ c === i ? o(s) : l(i);
1134
1134
  }
1135
1135
  c.then(f, f);
1136
1136
  }
1137
- u(i);
1137
+ l(i);
1138
1138
  });
1139
1139
  }
1140
1140
  function Es(t) {
@@ -1207,7 +1207,7 @@ function j(t, e) {
1207
1207
  const n = Dt(t);
1208
1208
  return Us(n), n;
1209
1209
  }
1210
- function B(t, e, n = !1) {
1210
+ function W(t, e, n = !1) {
1211
1211
  k !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1212
1212
  // to ensure we error if state is set inside an inspect effect
1213
1213
  (!ae || (k.f & Hn) !== 0) && wr() && (k.f & (z | we | an | Hn)) !== 0 && (te === null || !Ze.call(te, t)) && is();
@@ -1226,7 +1226,7 @@ function At(t, e) {
1226
1226
  );
1227
1227
  (t.f & F) !== 0 && fn(i), un(i);
1228
1228
  }
1229
- t.wv = Vr(), Tr(t, F), y !== null && (y.f & D) !== 0 && (y.f & (Te | Fe)) === 0 && (G === null ? Bs([t]) : G.push(t)), !r.is_fork && rn.size > 0 && !Pr && Ps();
1229
+ t.wv = Vr(), Tr(t, F), y !== null && (y.f & D) !== 0 && (y.f & (Te | Fe)) === 0 && (G === null ? Ws([t]) : G.push(t)), !r.is_fork && rn.size > 0 && !Pr && Ps();
1230
1230
  }
1231
1231
  return e;
1232
1232
  }
@@ -1237,20 +1237,20 @@ function Ps() {
1237
1237
  rn.clear();
1238
1238
  }
1239
1239
  function lt(t) {
1240
- B(t, t.v + 1);
1240
+ W(t, t.v + 1);
1241
1241
  }
1242
1242
  function Tr(t, e) {
1243
1243
  var n = t.reactions;
1244
1244
  if (n !== null)
1245
1245
  for (var r = n.length, i = 0; i < r; i++) {
1246
- var s = n[i], a = s.f, o = (a & F) === 0;
1247
- if (o && S(s, e), (a & z) !== 0) {
1248
- var l = (
1246
+ var s = n[i], a = s.f, u = (a & F) === 0;
1247
+ if (u && S(s, e), (a & z) !== 0) {
1248
+ var o = (
1249
1249
  /** @type {Derived} */
1250
1250
  s
1251
1251
  );
1252
- se?.delete(l), (a & Le) === 0 && (a & ee && (s.f |= Le), Tr(l, oe));
1253
- } else o && ((a & we) !== 0 && ve !== null && ve.add(
1252
+ se?.delete(o), (a & Le) === 0 && (a & ee && (s.f |= Le), Tr(o, oe));
1253
+ } else u && ((a & we) !== 0 && ve !== null && ve.add(
1254
1254
  /** @type {Effect} */
1255
1255
  s
1256
1256
  ), ce(
@@ -1265,13 +1265,13 @@ function rt(t) {
1265
1265
  const e = Ji(t);
1266
1266
  if (e !== Zi && e !== Xi)
1267
1267
  return t;
1268
- var n = /* @__PURE__ */ new Map(), r = Wi(t), i = /* @__PURE__ */ j(0), s = De, a = (o) => {
1268
+ var n = /* @__PURE__ */ new Map(), r = Bi(t), i = /* @__PURE__ */ j(0), s = De, a = (u) => {
1269
1269
  if (De === s)
1270
- return o();
1271
- var l = k, u = De;
1270
+ return u();
1271
+ var o = k, l = De;
1272
1272
  ne(null), Jn(s);
1273
- var c = o();
1274
- return ne(l), Jn(u), c;
1273
+ var c = u();
1274
+ return ne(o), Jn(l), c;
1275
1275
  };
1276
1276
  return r && n.set("length", /* @__PURE__ */ j(
1277
1277
  /** @type {any[]} */
@@ -1280,107 +1280,107 @@ function rt(t) {
1280
1280
  /** @type {any} */
1281
1281
  t,
1282
1282
  {
1283
- defineProperty(o, l, u) {
1284
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && ns();
1285
- var c = n.get(l);
1283
+ defineProperty(u, o, l) {
1284
+ (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && ns();
1285
+ var c = n.get(o);
1286
1286
  return c === void 0 ? a(() => {
1287
- var f = /* @__PURE__ */ j(u.value);
1288
- return n.set(l, f), f;
1289
- }) : B(c, u.value, !0), !0;
1287
+ var f = /* @__PURE__ */ j(l.value);
1288
+ return n.set(o, f), f;
1289
+ }) : W(c, l.value, !0), !0;
1290
1290
  },
1291
- deleteProperty(o, l) {
1292
- var u = n.get(l);
1293
- if (u === void 0) {
1294
- if (l in o) {
1291
+ deleteProperty(u, o) {
1292
+ var l = n.get(o);
1293
+ if (l === void 0) {
1294
+ if (o in u) {
1295
1295
  const c = a(() => /* @__PURE__ */ j(R));
1296
- n.set(l, c), lt(i);
1296
+ n.set(o, c), lt(i);
1297
1297
  }
1298
1298
  } else
1299
- B(u, R), lt(i);
1299
+ W(l, R), lt(i);
1300
1300
  return !0;
1301
1301
  },
1302
- get(o, l, u) {
1303
- if (l === St)
1302
+ get(u, o, l) {
1303
+ if (o === St)
1304
1304
  return t;
1305
- var c = n.get(l), f = l in o;
1306
- if (c === void 0 && (!f || ot(o, l)?.writable) && (c = a(() => {
1307
- var m = rt(f ? o[l] : R), h = /* @__PURE__ */ j(m);
1308
- return h;
1309
- }), n.set(l, c)), c !== void 0) {
1310
- var p = E(c);
1311
- return p === R ? void 0 : p;
1305
+ var c = n.get(o), f = o in u;
1306
+ if (c === void 0 && (!f || ot(u, o)?.writable) && (c = a(() => {
1307
+ var m = rt(f ? u[o] : R), p = /* @__PURE__ */ j(m);
1308
+ return p;
1309
+ }), n.set(o, c)), c !== void 0) {
1310
+ var h = E(c);
1311
+ return h === R ? void 0 : h;
1312
1312
  }
1313
- return Reflect.get(o, l, u);
1313
+ return Reflect.get(u, o, l);
1314
1314
  },
1315
- getOwnPropertyDescriptor(o, l) {
1316
- var u = Reflect.getOwnPropertyDescriptor(o, l);
1317
- if (u && "value" in u) {
1318
- var c = n.get(l);
1319
- c && (u.value = E(c));
1320
- } else if (u === void 0) {
1321
- var f = n.get(l), p = f?.v;
1322
- if (f !== void 0 && p !== R)
1315
+ getOwnPropertyDescriptor(u, o) {
1316
+ var l = Reflect.getOwnPropertyDescriptor(u, o);
1317
+ if (l && "value" in l) {
1318
+ var c = n.get(o);
1319
+ c && (l.value = E(c));
1320
+ } else if (l === void 0) {
1321
+ var f = n.get(o), h = f?.v;
1322
+ if (f !== void 0 && h !== R)
1323
1323
  return {
1324
1324
  enumerable: !0,
1325
1325
  configurable: !0,
1326
- value: p,
1326
+ value: h,
1327
1327
  writable: !0
1328
1328
  };
1329
1329
  }
1330
- return u;
1330
+ return l;
1331
1331
  },
1332
- has(o, l) {
1333
- if (l === St)
1332
+ has(u, o) {
1333
+ if (o === St)
1334
1334
  return !0;
1335
- var u = n.get(l), c = u !== void 0 && u.v !== R || Reflect.has(o, l);
1336
- if (u !== void 0 || y !== null && (!c || ot(o, l)?.writable)) {
1337
- u === void 0 && (u = a(() => {
1338
- var p = c ? rt(o[l]) : R, m = /* @__PURE__ */ j(p);
1335
+ var l = n.get(o), c = l !== void 0 && l.v !== R || Reflect.has(u, o);
1336
+ if (l !== void 0 || y !== null && (!c || ot(u, o)?.writable)) {
1337
+ l === void 0 && (l = a(() => {
1338
+ var h = c ? rt(u[o]) : R, m = /* @__PURE__ */ j(h);
1339
1339
  return m;
1340
- }), n.set(l, u));
1341
- var f = E(u);
1340
+ }), n.set(o, l));
1341
+ var f = E(l);
1342
1342
  if (f === R)
1343
1343
  return !1;
1344
1344
  }
1345
1345
  return c;
1346
1346
  },
1347
- set(o, l, u, c) {
1348
- var f = n.get(l), p = l in o;
1349
- if (r && l === "length")
1350
- for (var m = u; m < /** @type {Source<number>} */
1347
+ set(u, o, l, c) {
1348
+ var f = n.get(o), h = o in u;
1349
+ if (r && o === "length")
1350
+ for (var m = l; m < /** @type {Source<number>} */
1351
1351
  f.v; m += 1) {
1352
- var h = n.get(m + "");
1353
- h !== void 0 ? B(h, R) : m in o && (h = a(() => /* @__PURE__ */ j(R)), n.set(m + "", h));
1352
+ var p = n.get(m + "");
1353
+ p !== void 0 ? W(p, R) : m in u && (p = a(() => /* @__PURE__ */ j(R)), n.set(m + "", p));
1354
1354
  }
1355
1355
  if (f === void 0)
1356
- (!p || ot(o, l)?.writable) && (f = a(() => /* @__PURE__ */ j(void 0)), B(f, rt(u)), n.set(l, f));
1356
+ (!h || ot(u, o)?.writable) && (f = a(() => /* @__PURE__ */ j(void 0)), W(f, rt(l)), n.set(o, f));
1357
1357
  else {
1358
- p = f.v !== R;
1359
- var v = a(() => rt(u));
1360
- B(f, v);
1358
+ h = f.v !== R;
1359
+ var v = a(() => rt(l));
1360
+ W(f, v);
1361
1361
  }
1362
- var M = Reflect.getOwnPropertyDescriptor(o, l);
1363
- if (M?.set && M.set.call(c, u), !p) {
1364
- if (r && typeof l == "string") {
1362
+ var b = Reflect.getOwnPropertyDescriptor(u, o);
1363
+ if (b?.set && b.set.call(c, l), !h) {
1364
+ if (r && typeof o == "string") {
1365
1365
  var C = (
1366
1366
  /** @type {Source<number>} */
1367
1367
  n.get("length")
1368
- ), $ = Number(l);
1369
- Number.isInteger($) && $ >= C.v && B(C, $ + 1);
1368
+ ), $ = Number(o);
1369
+ Number.isInteger($) && $ >= C.v && W(C, $ + 1);
1370
1370
  }
1371
1371
  lt(i);
1372
1372
  }
1373
1373
  return !0;
1374
1374
  },
1375
- ownKeys(o) {
1375
+ ownKeys(u) {
1376
1376
  E(i);
1377
- var l = Reflect.ownKeys(o).filter((f) => {
1378
- var p = n.get(f);
1379
- return p === void 0 || p.v !== R;
1377
+ var o = Reflect.ownKeys(u).filter((f) => {
1378
+ var h = n.get(f);
1379
+ return h === void 0 || h.v !== R;
1380
1380
  });
1381
- for (var [u, c] of n)
1382
- c.v !== R && !(u in o) && l.push(u);
1383
- return l;
1381
+ for (var [l, c] of n)
1382
+ c.v !== R && !(l in u) && o.push(l);
1383
+ return o;
1384
1384
  },
1385
1385
  setPrototypeOf() {
1386
1386
  rs();
@@ -1393,7 +1393,7 @@ function Ts() {
1393
1393
  if (Yn === void 0) {
1394
1394
  Yn = window, Ir = /Firefox/.test(navigator.userAgent);
1395
1395
  var t = Element.prototype, e = Node.prototype, n = Text.prototype;
1396
- Ar = ot(e, "firstChild").get, Nr = ot(e, "nextSibling").get, Wn(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Wn(n) && (n.__t = void 0);
1396
+ Ar = ot(e, "firstChild").get, Nr = ot(e, "nextSibling").get, Bn(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Bn(n) && (n.__t = void 0);
1397
1397
  }
1398
1398
  }
1399
1399
  function Cr(t = "") {
@@ -1470,8 +1470,8 @@ function ke(t, e, n) {
1470
1470
  if (n)
1471
1471
  try {
1472
1472
  Ke(i);
1473
- } catch (o) {
1474
- throw fe(i), o;
1473
+ } catch (u) {
1474
+ throw fe(i), u;
1475
1475
  }
1476
1476
  else e !== null && ce(i);
1477
1477
  var s = i;
@@ -1587,8 +1587,8 @@ function Pt(t, e, n = !0) {
1587
1587
  }, s = r.length;
1588
1588
  if (s > 0) {
1589
1589
  var a = () => --s || i();
1590
- for (var o of r)
1591
- o.out(a);
1590
+ for (var u of r)
1591
+ u.out(a);
1592
1592
  } else
1593
1593
  i();
1594
1594
  }
@@ -1597,8 +1597,8 @@ function Fr(t, e, n) {
1597
1597
  t.f ^= Me;
1598
1598
  var r = t.nodes && t.nodes.t;
1599
1599
  if (r !== null)
1600
- for (const o of r)
1601
- (o.is_global || n) && e.push(o);
1600
+ for (const u of r)
1601
+ (u.is_global || n) && e.push(u);
1602
1602
  for (var i = t.first; i !== null; ) {
1603
1603
  var s = i.next, a = (i.f & It) !== 0 || // If this is a branch effect without a block effect parent,
1604
1604
  // it means the parent block effect was pruned. In that case,
@@ -1632,7 +1632,7 @@ function Us(t) {
1632
1632
  k !== null && (te === null ? te = [t] : te.push(t));
1633
1633
  }
1634
1634
  let U = null, Z = 0, G = null;
1635
- function Bs(t) {
1635
+ function Ws(t) {
1636
1636
  G = t;
1637
1637
  }
1638
1638
  let $r = 1, Ce = 0, De = Ce;
@@ -1684,9 +1684,9 @@ function jr(t, e, n = !0) {
1684
1684
  }
1685
1685
  }
1686
1686
  function Ur(t) {
1687
- var e = U, n = Z, r = G, i = k, s = te, a = le, o = ae, l = De, u = t.f;
1687
+ var e = U, n = Z, r = G, i = k, s = te, a = le, u = ae, o = De, l = t.f;
1688
1688
  U = /** @type {null | Value[]} */
1689
- null, Z = 0, G = null, k = (u & (Te | Fe)) === 0 ? t : null, te = null, Je(t.ctx), ae = !1, De = ++Ce, t.ac !== null && (Rr(() => {
1689
+ null, Z = 0, G = null, k = (l & (Te | Fe)) === 0 ? t : null, te = null, Je(t.ctx), ae = !1, De = ++Ce, t.ac !== null && (Rr(() => {
1690
1690
  t.ac.abort(Ne);
1691
1691
  }), t.ac = null);
1692
1692
  try {
@@ -1696,23 +1696,23 @@ function Ur(t) {
1696
1696
  t.fn
1697
1697
  ), f = c();
1698
1698
  t.f |= Xe;
1699
- var p = t.deps, m = x?.is_fork;
1699
+ var h = t.deps, m = x?.is_fork;
1700
1700
  if (U !== null) {
1701
- var h;
1702
- if (m || ct(t, Z), p !== null && Z > 0)
1703
- for (p.length = Z + U.length, h = 0; h < U.length; h++)
1704
- p[Z + h] = U[h];
1701
+ var p;
1702
+ if (m || ct(t, Z), h !== null && Z > 0)
1703
+ for (h.length = Z + U.length, p = 0; p < U.length; p++)
1704
+ h[Z + p] = U[p];
1705
1705
  else
1706
- t.deps = p = U;
1706
+ t.deps = h = U;
1707
1707
  if (hn() && (t.f & ee) !== 0)
1708
- for (h = Z; h < p.length; h++)
1709
- (p[h].reactions ??= []).push(t);
1710
- } else !m && p !== null && Z < p.length && (ct(t, Z), p.length = Z);
1711
- if (wr() && G !== null && !ae && p !== null && (t.f & (z | oe | F)) === 0)
1712
- for (h = 0; h < /** @type {Source[]} */
1713
- G.length; h++)
1708
+ for (p = Z; p < h.length; p++)
1709
+ (h[p].reactions ??= []).push(t);
1710
+ } else !m && h !== null && Z < h.length && (ct(t, Z), h.length = Z);
1711
+ if (wr() && G !== null && !ae && h !== null && (t.f & (z | oe | F)) === 0)
1712
+ for (p = 0; p < /** @type {Source[]} */
1713
+ G.length; p++)
1714
1714
  jr(
1715
- G[h],
1715
+ G[p],
1716
1716
  /** @type {Effect} */
1717
1717
  t
1718
1718
  );
@@ -1730,10 +1730,10 @@ function Ur(t) {
1730
1730
  } catch (v) {
1731
1731
  return kr(v);
1732
1732
  } finally {
1733
- t.f ^= en, U = e, Z = n, G = r, k = i, te = s, Je(a), ae = o, De = l;
1733
+ t.f ^= en, U = e, Z = n, G = r, k = i, te = s, Je(a), ae = u, De = o;
1734
1734
  }
1735
1735
  }
1736
- function Ws(t, e) {
1736
+ function Bs(t, e) {
1737
1737
  let n = e.reactions;
1738
1738
  if (n !== null) {
1739
1739
  var r = Hi.call(n, t);
@@ -1757,7 +1757,7 @@ function ct(t, e) {
1757
1757
  var n = t.deps;
1758
1758
  if (n !== null)
1759
1759
  for (var r = e; r < n.length; r++)
1760
- Ws(t, n[r]);
1760
+ Bs(t, n[r]);
1761
1761
  }
1762
1762
  function Ke(t) {
1763
1763
  var e = t.f;
@@ -1799,11 +1799,11 @@ function E(t) {
1799
1799
  t
1800
1800
  );
1801
1801
  if (Ge) {
1802
- var o = a.v;
1803
- return ((a.f & D) === 0 && a.reactions !== null || Wr(a)) && (o = fn(a)), Pe.set(a, o), o;
1802
+ var u = a.v;
1803
+ return ((a.f & D) === 0 && a.reactions !== null || Br(a)) && (u = fn(a)), Pe.set(a, u), u;
1804
1804
  }
1805
- var l = (a.f & ee) === 0 && !ae && k !== null && (Tt || (k.f & ee) !== 0), u = (a.f & Xe) === 0;
1806
- dt(a) && (l && (a.f |= ee), xr(a)), l && !u && (Sr(a), Br(a));
1805
+ var o = (a.f & ee) === 0 && !ae && k !== null && (Tt || (k.f & ee) !== 0), l = (a.f & Xe) === 0;
1806
+ dt(a) && (o && (a.f |= ee), xr(a)), o && !l && (Sr(a), Wr(a));
1807
1807
  }
1808
1808
  if (se?.has(t))
1809
1809
  return se.get(t);
@@ -1811,22 +1811,22 @@ function E(t) {
1811
1811
  throw t.v;
1812
1812
  return t.v;
1813
1813
  }
1814
- function Br(t) {
1814
+ function Wr(t) {
1815
1815
  if (t.f |= ee, t.deps !== null)
1816
1816
  for (const e of t.deps)
1817
1817
  (e.reactions ??= []).push(t), (e.f & z) !== 0 && (e.f & ee) === 0 && (Sr(
1818
1818
  /** @type {Derived} */
1819
1819
  e
1820
- ), Br(
1820
+ ), Wr(
1821
1821
  /** @type {Derived} */
1822
1822
  e
1823
1823
  ));
1824
1824
  }
1825
- function Wr(t) {
1825
+ function Br(t) {
1826
1826
  if (t.v === R) return !0;
1827
1827
  if (t.deps === null) return !1;
1828
1828
  for (const e of t.deps)
1829
- if (Pe.has(e) || (e.f & z) !== 0 && Wr(
1829
+ if (Pe.has(e) || (e.f & z) !== 0 && Br(
1830
1830
  /** @type {Derived} */
1831
1831
  e
1832
1832
  ))
@@ -1856,18 +1856,18 @@ function Qn(t) {
1856
1856
  i[0] || t.target
1857
1857
  );
1858
1858
  Kn = t;
1859
- var a = 0, o = Kn === t && t[_t];
1860
- if (o) {
1861
- var l = i.indexOf(o);
1862
- if (l !== -1 && (e === document || e === /** @type {any} */
1859
+ var a = 0, u = Kn === t && t[_t];
1860
+ if (u) {
1861
+ var o = i.indexOf(u);
1862
+ if (o !== -1 && (e === document || e === /** @type {any} */
1863
1863
  window)) {
1864
1864
  t[_t] = e;
1865
1865
  return;
1866
1866
  }
1867
- var u = i.indexOf(e);
1868
- if (u === -1)
1867
+ var l = i.indexOf(e);
1868
+ if (l === -1)
1869
1869
  return;
1870
- l <= u && (a = l);
1870
+ o <= l && (a = o);
1871
1871
  }
1872
1872
  if (s = /** @type {Element} */
1873
1873
  i[a] || t.target, s !== e) {
@@ -1880,8 +1880,8 @@ function Qn(t) {
1880
1880
  var c = k, f = y;
1881
1881
  ne(null), he(null);
1882
1882
  try {
1883
- for (var p, m = []; s !== null; ) {
1884
- var h = s.assignedSlot || s.parentNode || /** @type {any} */
1883
+ for (var h, m = []; s !== null; ) {
1884
+ var p = s.assignedSlot || s.parentNode || /** @type {any} */
1885
1885
  s.host || null;
1886
1886
  try {
1887
1887
  var v = s[_t]?.[r];
@@ -1889,19 +1889,19 @@ function Qn(t) {
1889
1889
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1890
1890
  // -> the target could not have been disabled because it emits the event in the first place
1891
1891
  t.target === s) && v.call(s, t);
1892
- } catch (M) {
1893
- p ? m.push(M) : p = M;
1892
+ } catch (b) {
1893
+ h ? m.push(b) : h = b;
1894
1894
  }
1895
- if (t.cancelBubble || h === e || h === null)
1895
+ if (t.cancelBubble || p === e || p === null)
1896
1896
  break;
1897
- s = h;
1897
+ s = p;
1898
1898
  }
1899
- if (p) {
1900
- for (let M of m)
1899
+ if (h) {
1900
+ for (let b of m)
1901
1901
  queueMicrotask(() => {
1902
- throw M;
1902
+ throw b;
1903
1903
  });
1904
- throw p;
1904
+ throw h;
1905
1905
  }
1906
1906
  } finally {
1907
1907
  t[_t] = e, delete t.currentTarget, ne(c), he(f);
@@ -1943,14 +1943,14 @@ function Hr(t, e) {
1943
1943
  r || Ir ? document.importNode(i, !0) : i.cloneNode(!0)
1944
1944
  );
1945
1945
  if (n) {
1946
- var o = (
1946
+ var u = (
1947
1947
  /** @type {TemplateNode} */
1948
1948
  /* @__PURE__ */ Nt(a)
1949
- ), l = (
1949
+ ), o = (
1950
1950
  /** @type {TemplateNode} */
1951
1951
  a.lastChild
1952
1952
  );
1953
- er(o, l);
1953
+ er(u, o);
1954
1954
  } else
1955
1955
  er(a, a);
1956
1956
  return a;
@@ -1966,9 +1966,9 @@ function dn(t, e) {
1966
1966
  return Gs(t, e);
1967
1967
  }
1968
1968
  const Mt = /* @__PURE__ */ new Map();
1969
- function Gs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, intro: a = !0, transformError: o }) {
1969
+ function Gs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, intro: a = !0, transformError: u }) {
1970
1970
  Ts();
1971
- var l = void 0, u = zs(() => {
1971
+ var o = void 0, l = zs(() => {
1972
1972
  var c = n ?? e.appendChild(Cr());
1973
1973
  gs(
1974
1974
  /** @type {TemplateNode} */
@@ -1979,45 +1979,45 @@ function Gs(t, { target: e, anchor: n, props: r = {}, events: i, context: s, int
1979
1979
  },
1980
1980
  (m) => {
1981
1981
  on({});
1982
- var h = (
1982
+ var p = (
1983
1983
  /** @type {ComponentContext} */
1984
1984
  le
1985
1985
  );
1986
- s && (h.c = s), i && (r.$$events = i), l = t(m, r) || {}, ln();
1986
+ s && (p.c = s), i && (r.$$events = i), o = t(m, r) || {}, ln();
1987
1987
  },
1988
- o
1988
+ u
1989
1989
  );
1990
- var f = /* @__PURE__ */ new Set(), p = (m) => {
1991
- for (var h = 0; h < m.length; h++) {
1992
- var v = m[h];
1990
+ var f = /* @__PURE__ */ new Set(), h = (m) => {
1991
+ for (var p = 0; p < m.length; p++) {
1992
+ var v = m[p];
1993
1993
  if (!f.has(v)) {
1994
1994
  f.add(v);
1995
- var M = qs(v);
1995
+ var b = qs(v);
1996
1996
  for (const re of [e, document]) {
1997
1997
  var C = Mt.get(re);
1998
1998
  C === void 0 && (C = /* @__PURE__ */ new Map(), Mt.set(re, C));
1999
1999
  var $ = C.get(v);
2000
- $ === void 0 ? (re.addEventListener(v, Qn, { passive: M }), C.set(v, 1)) : C.set(v, $ + 1);
2000
+ $ === void 0 ? (re.addEventListener(v, Qn, { passive: b }), C.set(v, 1)) : C.set(v, $ + 1);
2001
2001
  }
2002
2002
  }
2003
2003
  }
2004
2004
  };
2005
- return p(qi(Ys)), Gn.add(p), () => {
2005
+ return h(qi(Ys)), Gn.add(h), () => {
2006
2006
  for (var m of f)
2007
- for (const M of [e, document]) {
2008
- var h = (
2007
+ for (const b of [e, document]) {
2008
+ var p = (
2009
2009
  /** @type {Map<string, number>} */
2010
- Mt.get(M)
2010
+ Mt.get(b)
2011
2011
  ), v = (
2012
2012
  /** @type {number} */
2013
- h.get(m)
2013
+ p.get(m)
2014
2014
  );
2015
- --v == 0 ? (M.removeEventListener(m, Qn), h.delete(m), h.size === 0 && Mt.delete(M)) : h.set(m, v);
2015
+ --v == 0 ? (b.removeEventListener(m, Qn), p.delete(m), p.size === 0 && Mt.delete(b)) : p.set(m, v);
2016
2016
  }
2017
- Gn.delete(p), c !== n && c.parentNode?.removeChild(c);
2017
+ Gn.delete(h), c !== n && c.parentNode?.removeChild(c);
2018
2018
  };
2019
2019
  });
2020
- return Ks.set(l, u), l;
2020
+ return Ks.set(o, l), o;
2021
2021
  }
2022
2022
  let Ks = /* @__PURE__ */ new WeakMap();
2023
2023
  function Yr(t) {
@@ -2058,8 +2058,8 @@ function ta(t, e) {
2058
2058
  function Xr(t, e, n, r, i, s) {
2059
2059
  var a = t.__className;
2060
2060
  if (a !== n || a === void 0) {
2061
- var o = ea(n, r);
2062
- o == null ? t.removeAttribute("class") : t.className = o, t.__className = n;
2061
+ var u = ea(n, r);
2062
+ u == null ? t.removeAttribute("class") : t.className = u, t.__className = n;
2063
2063
  }
2064
2064
  return s;
2065
2065
  }
@@ -2174,7 +2174,7 @@ class Gr {
2174
2174
  var ra = /* @__PURE__ */ Hr("<div></div>");
2175
2175
  function ia(t, e) {
2176
2176
  on(e, !0);
2177
- let n = Q(() => e.id), r = Q(() => e.element), i = Q(() => e.style), s = Q(() => e.dimensions), a = Q(() => e.initialize), o = {
2177
+ let n = Q(() => e.id), r = Q(() => e.element), i = Q(() => e.style), s = Q(() => e.dimensions), a = Q(() => e.initialize), u = {
2178
2178
  setDisplayed: $,
2179
2179
  getDisplayed: re,
2180
2180
  setSuppressed: be,
@@ -2182,26 +2182,26 @@ function ia(t, e) {
2182
2182
  getCollapsed: J,
2183
2183
  setScale: Ot
2184
2184
  };
2185
- function l() {
2186
- return o;
2185
+ function o() {
2186
+ return u;
2187
2187
  }
2188
- let u, c = s.width, f = s.height, p = s.padding, m = i?.background ?? Ui, h = i?.radius ?? Fi, v = i?.shadow ?? $i, M = /* @__PURE__ */ j(!1), C = !1;
2189
- function $(b) {
2190
- b == !0 && (u && r && r.parentElement != u && u.appendChild(r), C == !1 && a && r && (C = !0, setTimeout(async () => await a(n, r), 0))), b != E(M) && (B(M, b, !0), b == !1 && Y.end());
2188
+ let l, c = s.width, f = s.height, h = s.padding, m = i?.background ?? Ui, p = i?.radius ?? Fi, v = i?.shadow ?? $i, b = /* @__PURE__ */ j(!1), C = !1;
2189
+ function $(_) {
2190
+ _ == !0 && (l && r && r.parentElement != l && l.appendChild(r), C == !1 && a && r && (C = !0, setTimeout(async () => await a(n, r), 0))), _ != E(b) && (W(b, _, !0), _ == !1 && Y.end());
2191
2191
  }
2192
2192
  function re() {
2193
- return E(M);
2193
+ return E(b);
2194
2194
  }
2195
2195
  let ye = /* @__PURE__ */ j(!0);
2196
- function be(b) {
2197
- b != E(ye) && (B(ye, b, !0), b && (ie = je, Y.set(je)));
2196
+ function be(_) {
2197
+ _ != E(ye) && (W(ye, _, !0), _ && (ie = je, Y.set(je)));
2198
2198
  }
2199
2199
  let pe = /* @__PURE__ */ j(!0);
2200
- function Ie(b) {
2201
- b != E(pe) && (B(pe, b, !0), Y.target(E(pe) ? 0 : ie));
2200
+ function Ie(_) {
2201
+ _ != E(pe) && (W(pe, _, !0), Y.target(E(pe) ? 0 : ie));
2202
2202
  }
2203
2203
  function J() {
2204
- return E(M) ? Y.expired() : !0;
2204
+ return E(b) ? Y.expired() : !0;
2205
2205
  }
2206
2206
  let ie = je, Y = new Gr({
2207
2207
  value: je,
@@ -2211,36 +2211,36 @@ function ia(t, e) {
2211
2211
  easing: Jr,
2212
2212
  callback: vt
2213
2213
  });
2214
- function Ot(b) {
2215
- ie = b, Y.target(b);
2214
+ function Ot(_) {
2215
+ ie = _, Y.target(_);
2216
2216
  }
2217
- function vt(b) {
2218
- u.style.scale = b.toString(), u.style.filter = `brightness(${de(b)})`;
2217
+ function vt(_) {
2218
+ l.style.scale = _.toString(), l.style.filter = `brightness(${de(_)})`;
2219
2219
  }
2220
- function de(b) {
2221
- return 0.25 + 0.75 * b;
2220
+ function de(_) {
2221
+ return 0.25 + 0.75 * _;
2222
2222
  }
2223
- var Lt = { invoke: l }, $e = ra();
2223
+ var Lt = { invoke: o }, $e = ra();
2224
2224
  let Ve;
2225
- return st($e, (b) => u = b, () => u), zr(
2226
- (b) => {
2225
+ return st($e, (_) => l = _, () => l), zr(
2226
+ (_) => {
2227
2227
  Xr(
2228
2228
  $e,
2229
2229
  1,
2230
2230
  Zr([
2231
2231
  "pin",
2232
- E(M) && "displayed",
2232
+ E(b) && "displayed",
2233
2233
  E(ye) && "suppressed"
2234
2234
  ]),
2235
2235
  "svelte-10kxbrm"
2236
- ), Ve = it($e, "", Ve, b);
2236
+ ), Ve = it($e, "", Ve, _);
2237
2237
  },
2238
2238
  [
2239
2239
  () => ({
2240
2240
  width: `${c}px`,
2241
2241
  height: `${f}px`,
2242
- padding: `${p}px`,
2243
- "border-radius": `${h}px`,
2242
+ padding: `${h}px`,
2243
+ "border-radius": `${p}px`,
2244
2244
  "background-color": `rgb(from ${m} r g b / 1)`,
2245
2245
  "box-shadow": v,
2246
2246
  scale: je,
@@ -2320,33 +2320,33 @@ class rr {
2320
2320
  }
2321
2321
  function sn(t, e, n) {
2322
2322
  if (t <= 0 || e <= 0) return { x: 0, y: 0 };
2323
- let r = t / 2, i = e / 2, s = Math.sqrt(r * r + i * i), a = Math.atan(i / r) * (180 / Math.PI), o = n * (Math.PI / 180);
2324
- return n < 180 ? n < 90 ? n < a ? { x: 0, y: s * Math.sin(o) - i } : { x: s * Math.cos(o) - r, y: 0 } : n < 180 - a ? { x: s * Math.cos(o) - r, y: 0 } : { x: -t, y: s * Math.sin(o) - i } : n < 270 ? n < 180 + a ? { x: -t, y: s * Math.sin(o) - i } : { x: s * Math.cos(o) - r, y: -e } : n < 360 - a ? { x: s * Math.cos(o) - r, y: -e } : { x: 0, y: s * Math.sin(o) - i };
2323
+ let r = t / 2, i = e / 2, s = Math.sqrt(r * r + i * i), a = Math.atan(i / r) * (180 / Math.PI), u = n * (Math.PI / 180);
2324
+ return n < 180 ? n < 90 ? n < a ? { x: 0, y: s * Math.sin(u) - i } : { x: s * Math.cos(u) - r, y: 0 } : n < 180 - a ? { x: s * Math.cos(u) - r, y: 0 } : { x: -t, y: s * Math.sin(u) - i } : n < 270 ? n < 180 + a ? { x: -t, y: s * Math.sin(u) - i } : { x: s * Math.cos(u) - r, y: -e } : n < 360 - a ? { x: s * Math.cos(u) - r, y: -e } : { x: 0, y: s * Math.sin(u) - i };
2325
2325
  }
2326
2326
  var aa = /* @__PURE__ */ Hr('<div><div class="element pointer svelte-1no6o2a"></div> <div class="element bubble svelte-1no6o2a"></div></div> <div class="element body svelte-1no6o2a"></div>', 1);
2327
2327
  function Kr(t, e) {
2328
2328
  on(e, !0);
2329
- let n = Q(() => e.id), r = Q(() => e.element), i = Q(() => e.style), s = Q(() => e.dimensions), a = Q(() => e.initialize), o = {
2329
+ let n = Q(() => e.id), r = Q(() => e.element), i = Q(() => e.style), s = Q(() => e.dimensions), a = Q(() => e.initialize), u = {
2330
2330
  setDisplayed: Lt,
2331
2331
  getDisplayed: $e,
2332
- setCollapsed: b,
2332
+ setCollapsed: _,
2333
2333
  getCollapsed: pi,
2334
2334
  getExpanded: di,
2335
2335
  setAngle: vi
2336
2336
  };
2337
- function l() {
2338
- return o;
2337
+ function o() {
2338
+ return u;
2339
2339
  }
2340
- let u = s.width + 2 * s.padding, c = s.height + 2 * s.padding, f = s.padding, p, m = i?.filter ?? ji, h, v = s.padding * 2, M = Math.max(2, (i?.radius ?? jn) / v), C = i?.background ?? Un, $, re = s.width, ye = s.height, be = i?.radius ?? jn, pe = Math.min(1, 2 * be / Math.min(ye, re)), Ie = i?.background ?? Un, J, ie = s.width, Y = s.height, Ot = i?.radius, vt = !1, de = /* @__PURE__ */ j(!1);
2340
+ let l = s.width + 2 * s.padding, c = s.height + 2 * s.padding, f = s.padding, h, m = i?.filter ?? ji, p, v = s.padding * 2, b = Math.max(2, (i?.radius ?? jn) / v), C = i?.background ?? Un, $, re = s.width, ye = s.height, be = i?.radius ?? jn, pe = Math.min(1, 2 * be / Math.min(ye, re)), Ie = i?.background ?? Un, J, ie = s.width, Y = s.height, Ot = i?.radius, vt = !1, de = /* @__PURE__ */ j(!1);
2341
2341
  function Lt(g) {
2342
- g != E(de) && (B(de, g, !0), g == !0 && (r && r.parentElement != J && J.appendChild(r), vt == !1 && a && r && (vt = !0, setTimeout(async () => await a(n, r), 0))), g == !1 && (gt.end(), $t.end(), Vt.end()));
2342
+ g != E(de) && (W(de, g, !0), g == !0 && (r && r.parentElement != J && J.appendChild(r), vt == !1 && a && r && (vt = !0, setTimeout(async () => await a(n, r), 0))), g == !1 && (gt.end(), $t.end(), Vt.end()));
2343
2343
  }
2344
2344
  function $e() {
2345
2345
  return E(de);
2346
2346
  }
2347
2347
  let Ve = /* @__PURE__ */ j(!0);
2348
- function b(g) {
2349
- g != E(Ve) && (B(Ve, g, !0), gt.target(E(Ve) ? 0 : 1));
2348
+ function _(g) {
2349
+ g != E(Ve) && (W(Ve, g, !0), gt.target(E(Ve) ? 0 : 1));
2350
2350
  }
2351
2351
  function pi() {
2352
2352
  return E(de) ? gt.expired() : !0;
@@ -2363,11 +2363,11 @@ function Kr(t, e) {
2363
2363
  callback: mi
2364
2364
  });
2365
2365
  function mi(g) {
2366
- p.style.opacity = `${g}`, h.style.scale = `${g}`, $.style.scale = `${g}`, J.style.scale = `${g}`;
2366
+ h.style.opacity = `${g}`, p.style.scale = `${g}`, $.style.scale = `${g}`, J.style.scale = `${g}`;
2367
2367
  }
2368
- let wt = NaN, Ft = /* @__PURE__ */ j(!1), kn = -u / 2, $t = new rr({
2369
- value: -u / 2,
2370
- min: -u,
2368
+ let wt = NaN, Ft = /* @__PURE__ */ j(!1), kn = -l / 2, $t = new rr({
2369
+ value: -l / 2,
2370
+ min: -l,
2371
2371
  max: 0,
2372
2372
  precision: 1,
2373
2373
  stiffness: Ln,
@@ -2382,18 +2382,18 @@ function Kr(t, e) {
2382
2382
  });
2383
2383
  function vi(g, kt) {
2384
2384
  if (Number.isNaN(g)) {
2385
- wt = NaN, B(Ft, !1);
2385
+ wt = NaN, W(Ft, !1);
2386
2386
  return;
2387
2387
  }
2388
2388
  if (E(Ft) == !1 || kt == !0) {
2389
- B(Ft, !0), wt = g;
2390
- const me = sn(u, c, g);
2389
+ W(Ft, !0), wt = g;
2390
+ const me = sn(l, c, g);
2391
2391
  $t.set(Math.round(me.x)), Vt.set(Math.round(me.y));
2392
2392
  return;
2393
2393
  }
2394
2394
  if (wt != g) {
2395
2395
  wt = g;
2396
- const me = sn(u, c, g);
2396
+ const me = sn(l, c, g);
2397
2397
  $t.target(Math.round(me.x)), Vt.target(Math.round(me.y));
2398
2398
  return;
2399
2399
  }
@@ -2405,24 +2405,24 @@ function Kr(t, e) {
2405
2405
  yn = g, bn();
2406
2406
  }
2407
2407
  function bn() {
2408
- const g = kn, kt = yn, me = g + u / 2, Ut = kt + c / 2, Bt = c < u ? me * c / u : me, Wt = c > u ? Ut * u / c : Ut, yi = Math.atan2(Wt, Bt) / Math.PI * 180 - 45, Ht = Math.sqrt(Bt * Bt + Wt * Wt), nt = Math.min(u, c) / 2, bi = nt * Math.SQRT2, In = (Ht - nt) / (bi - nt), An = 15, Nn = An + In * (22.5 - An), _i = Ht < nt ? Ht / nt : 1, Mi = g + f, Ei = kt + f, Cn = f * 2 * pe * In, Rn = Mi - Cn * (me / u), Dn = Ei - Cn * (Ut / c);
2409
- h.style.transform = `scale(${_i}) rotate(${yi}deg) skew(${Nn}deg, ${Nn}deg)`, $.style.transform = `translate(${Math.round(Rn)}px, ${Math.round(Dn)}px)`, J.style.transform = `translate(${Math.round(Rn)}px, ${Math.round(Dn)}px)`;
2408
+ const g = kn, kt = yn, me = g + l / 2, Ut = kt + c / 2, Wt = c < l ? me * c / l : me, Bt = c > l ? Ut * l / c : Ut, yi = Math.atan2(Bt, Wt) / Math.PI * 180 - 45, Ht = Math.sqrt(Wt * Wt + Bt * Bt), nt = Math.min(l, c) / 2, bi = nt * Math.SQRT2, In = (Ht - nt) / (bi - nt), An = 15, Nn = An + In * (22.5 - An), _i = Ht < nt ? Ht / nt : 1, Mi = g + f, Ei = kt + f, Cn = f * 2 * pe * In, Rn = Mi - Cn * (me / l), Dn = Ei - Cn * (Ut / c);
2409
+ p.style.transform = `scale(${_i}) rotate(${yi}deg) skew(${Nn}deg, ${Nn}deg)`, $.style.transform = `translate(${Math.round(Rn)}px, ${Math.round(Dn)}px)`, J.style.transform = `translate(${Math.round(Rn)}px, ${Math.round(Dn)}px)`;
2410
2410
  }
2411
- var ki = { invoke: l }, _n = aa(), tt = As(_n);
2411
+ var ki = { invoke: o }, _n = aa(), tt = As(_n);
2412
2412
  let Mn;
2413
2413
  var jt = Is(tt);
2414
2414
  let En;
2415
- st(jt, (g) => h = g, () => h);
2415
+ st(jt, (g) => p = g, () => p);
2416
2416
  var xn = Zn(jt, 2);
2417
2417
  let Sn;
2418
- st(xn, (g) => $ = g, () => $), st(tt, (g) => p = g, () => p);
2418
+ st(xn, (g) => $ = g, () => $), st(tt, (g) => h = g, () => h);
2419
2419
  var Pn = Zn(tt, 2);
2420
2420
  let Tn;
2421
2421
  return st(Pn, (g) => J = g, () => J), zr(() => {
2422
2422
  Xr(tt, 1, Zr(["element anchor", E(de) && "displayed"]), "svelte-1no6o2a"), Mn = it(tt, "", Mn, { filter: m }), En = it(jt, "", En, {
2423
2423
  width: `${v}px`,
2424
2424
  height: `${v}px`,
2425
- "border-radius": `${M}px`,
2425
+ "border-radius": `${b}px`,
2426
2426
  "background-color": `rgb(from ${C} r g b / 1)`
2427
2427
  }), Sn = it(xn, "", Sn, {
2428
2428
  width: `${re}px`,
@@ -2476,8 +2476,8 @@ class ua {
2476
2476
  tooltip;
2477
2477
  popup;
2478
2478
  constructor(e, n) {
2479
- const r = n.properites.id, i = n.properites.lat, s = n.properites.lng, a = n.properites.rank, o = n.properites.pin, l = n.properites.tooltip, u = n.properites.popup;
2480
- this.id = r, this.pin = new sa(e, r, i, s, a, o), this.tooltip = new oa(e, r, i, s, a, l), this.popup = u ? new la(e, r, i, s, a, u) : void 0;
2479
+ const r = n.properites.id, i = n.properites.lat, s = n.properites.lng, a = n.properites.rank, u = n.properites.pin, o = n.properites.tooltip, l = n.properites.popup;
2480
+ this.id = r, this.pin = new sa(e, r, i, s, a, u), this.tooltip = new oa(e, r, i, s, a, o), this.popup = l ? new la(e, r, i, s, a, l) : void 0;
2481
2481
  }
2482
2482
  }
2483
2483
  const Zt = 4;
@@ -2553,9 +2553,9 @@ class ha {
2553
2553
  for (const a of this.tooltips)
2554
2554
  if (s.contains(a.lat, a.lng))
2555
2555
  if (Number.isNaN(a.zoom) == !1 && a.shown && a.zoom <= r) {
2556
- const o = a.directions.findLast((l) => l.zoom <= r)?.angle;
2557
- if (o == null) throw new Error("Failed to find angle");
2558
- a.angle = o, a.component.invoke().setDisplayed(!0), a.component.invoke().setCollapsed(!1), a.component.invoke().setAngle(o), a.marker.insert();
2556
+ const u = a.directions.findLast((o) => o.zoom <= r)?.angle;
2557
+ if (u == null) throw new Error("Failed to find angle");
2558
+ a.angle = u, a.component.invoke().setDisplayed(!0), a.component.invoke().setCollapsed(!1), a.component.invoke().setAngle(u), a.marker.insert();
2559
2559
  } else
2560
2560
  a.component.invoke().setCollapsed(!0), a.component.invoke().getCollapsed() && (a.component.invoke().setDisplayed(!1), a.marker.remove());
2561
2561
  else
@@ -2581,11 +2581,11 @@ class pa {
2581
2581
  }
2582
2582
  show(e, n) {
2583
2583
  if (!e.popup || !e.tooltip || !e.pin || (e.pin.shown = !1, e.tooltip.shown = !1, e.popup.angle = e.tooltip.angle, e.popup.shown = !0, this.pan == !1)) return;
2584
- const r = e.popup, i = n.getViewport(), s = i.bounds, a = i.zoom, l = n.getParameters().mapSize * Math.pow(2, a), u = at(s.ne.lat, s.sw.lng, l), c = at(s.sw.lat, s.ne.lng, l), f = c.x - u.x, p = c.y - u.y, m = r.width + r.padding * 8, h = r.height + r.padding * 8, v = at(r.lat, r.lng, l), M = sn(m, h, e.tooltip.angle), C = v.x + M.x, $ = C + m, re = v.y + M.y, ye = re + h, be = C - u.x, pe = c.x - $, Ie = re - u.y, J = c.y - ye;
2584
+ const r = e.popup, i = n.getViewport(), s = i.bounds, a = i.zoom, o = n.getParameters().mapSize * Math.pow(2, a), l = at(s.ne.lat, s.sw.lng, o), c = at(s.sw.lat, s.ne.lng, o), f = c.x - l.x, h = c.y - l.y, m = r.width + r.padding * 8, p = r.height + r.padding * 8, v = at(r.lat, r.lng, o), b = sn(m, p, e.tooltip.angle), C = v.x + b.x, $ = C + m, re = v.y + b.y, ye = re + p, be = C - l.x, pe = c.x - $, Ie = re - l.y, J = c.y - ye;
2585
2585
  let ie = 0;
2586
2586
  f < m ? ie = (be - pe) / 2 : (be < 0 && (ie = be), pe < 0 && (ie = -pe));
2587
2587
  let Y = 0;
2588
- p < h ? Y = (Ie - J) / 2 : (Ie < 0 && (Y = Ie), J < 0 && (Y = -J)), (ie != 0 || Y != 0) && n.panBy(ie, Y);
2588
+ h < p ? Y = (Ie - J) / 2 : (Ie < 0 && (Y = Ie), J < 0 && (Y = -J)), (ie != 0 || Y != 0) && n.panBy(ie, Y);
2589
2589
  }
2590
2590
  hide(e) {
2591
2591
  !e.popup || !e.tooltip || !e.pin || (e.pin.shown = !0, e.tooltip.shown = !0, e.popup.shown = !1);
@@ -2699,24 +2699,24 @@ async function wa(t, e, n, r, i) {
2699
2699
  let a = s.data;
2700
2700
  if (!a.ok) throw Error(await a.text());
2701
2701
  }
2702
- const We = 0xc3a5c85c97cb3127n, ue = 0xb492b66fbe98f273n, He = 0x9ae16a3b2f90404fn, ti = 0xc949d7c7509e6557n, W = 0xffffffffffffffffn;
2702
+ const Be = 0xc3a5c85c97cb3127n, ue = 0xb492b66fbe98f273n, He = 0x9ae16a3b2f90404fn, ti = 0xc949d7c7509e6557n, B = 0xffffffffffffffffn;
2703
2703
  function d(t) {
2704
- return t & W;
2704
+ return t & B;
2705
2705
  }
2706
2706
  function A(t, e) {
2707
- return e === 0 ? t & W : (t = t & W, (t >> BigInt(e) | t << BigInt(64 - e)) & W);
2707
+ return e === 0 ? t & B : (t = t & B, (t >> BigInt(e) | t << BigInt(64 - e)) & B);
2708
2708
  }
2709
2709
  function ka(t, e) {
2710
- return t = t & W, (t >> BigInt(e) | t << BigInt(64 - e)) & W;
2710
+ return t = t & B, (t >> BigInt(e) | t << BigInt(64 - e)) & B;
2711
2711
  }
2712
2712
  function ft(t) {
2713
2713
  return d(t ^ t >> 47n);
2714
2714
  }
2715
- function _(t, e = 0) {
2715
+ function M(t, e = 0) {
2716
2716
  let n = 0n;
2717
2717
  for (let r = 0; r < 8; r++)
2718
2718
  e + r < t.length && (n |= BigInt(t[e + r]) << BigInt(r * 8));
2719
- return n & W;
2719
+ return n & B;
2720
2720
  }
2721
2721
  function sr(t, e = 0) {
2722
2722
  let n = 0n;
@@ -2726,10 +2726,10 @@ function sr(t, e = 0) {
2726
2726
  }
2727
2727
  function ya(t) {
2728
2728
  const e = 0x9ddfea08eb382d69n;
2729
- let n = (t.first ^ t.second) * e & W;
2730
- n ^= n >> 47n, n = n & W;
2731
- let r = (t.second ^ n) * e & W;
2732
- return r ^= r >> 47n, r = r * e & W, r;
2729
+ let n = (t.first ^ t.second) * e & B;
2730
+ n ^= n >> 47n, n = n & B;
2731
+ let r = (t.second ^ n) * e & B;
2732
+ return r ^= r >> 47n, r = r * e & B, r;
2733
2733
  }
2734
2734
  function qe(t, e) {
2735
2735
  return ya({ first: t, second: e });
@@ -2737,12 +2737,12 @@ function qe(t, e) {
2737
2737
  function ba(t) {
2738
2738
  const e = t.length;
2739
2739
  if (e > 8) {
2740
- const n = _(t), r = _(t, e - 8);
2741
- return (qe(n, ka(r + BigInt(e) & W, e)) ^ r) & W;
2740
+ const n = M(t), r = M(t, e - 8);
2741
+ return (qe(n, ka(r + BigInt(e) & B, e)) ^ r) & B;
2742
2742
  }
2743
2743
  if (e >= 4) {
2744
2744
  const n = sr(t);
2745
- return qe(BigInt(e) + (n << 3n) & W, sr(t, e - 4));
2745
+ return qe(BigInt(e) + (n << 3n) & B, sr(t, e - 4));
2746
2746
  }
2747
2747
  if (e > 0) {
2748
2748
  const n = BigInt(t[0]), r = BigInt(t[e >> 1]), i = BigInt(t[e - 1]), s = d(n + (r << 8n)), a = d(BigInt(e) + (i << 2n));
@@ -2751,7 +2751,7 @@ function ba(t) {
2751
2751
  return He;
2752
2752
  }
2753
2753
  function _a(t) {
2754
- const e = t.length, n = d(_(t) * ue), r = _(t, 8), i = d(_(t, e - 8) * He), s = d(_(t, e - 16) * We);
2754
+ const e = t.length, n = d(M(t) * ue), r = M(t, 8), i = d(M(t, e - 8) * He), s = d(M(t, e - 16) * Be);
2755
2755
  return qe(d(A(d(n - r), 43) + A(i, 30) + s), d(n + A(r ^ ti, 20) - i + BigInt(e)));
2756
2756
  }
2757
2757
  function Ma(t, e, n, r, i, s) {
@@ -2760,18 +2760,18 @@ function Ma(t, e, n, r, i, s) {
2760
2760
  return i = d(i + e), i = d(i + n), s = d(s + A(i, 44)), { first: d(i + r), second: d(s + a) };
2761
2761
  }
2762
2762
  function Et(t, e, n, r) {
2763
- return Ma(_(t, e), _(t, e + 8), _(t, e + 16), _(t, e + 24), n, r);
2763
+ return Ma(M(t, e), M(t, e + 8), M(t, e + 16), M(t, e + 24), n, r);
2764
2764
  }
2765
2765
  function Ea(t) {
2766
- const e = t.length, n = _(t, 24);
2767
- let r = d(_(t) + d((BigInt(e) + _(t, e - 16)) * We)), i = A(d(r + n), 52), s = A(r, 37);
2768
- r = d(r + _(t, 8)), s = d(s + A(r, 7)), r = d(r + _(t, 16));
2769
- const a = d(r + n), o = d(i + A(r, 31) + s);
2770
- r = d(_(t, 16) + _(t, e - 32));
2771
- const l = _(t, e - 8);
2772
- i = A(d(r + l), 52), s = A(r, 37), r = d(r + _(t, e - 24)), s = d(s + A(r, 7)), r = d(r + _(t, e - 16));
2773
- const u = d(r + l), c = d(i + A(r, 31) + s), f = ft(d(d(a + c) * He + d(u + o) * We));
2774
- return d(ft(d(f * We + o)) * He);
2766
+ const e = t.length, n = M(t, 24);
2767
+ let r = d(M(t) + d((BigInt(e) + M(t, e - 16)) * Be)), i = A(d(r + n), 52), s = A(r, 37);
2768
+ r = d(r + M(t, 8)), s = d(s + A(r, 7)), r = d(r + M(t, 16));
2769
+ const a = d(r + n), u = d(i + A(r, 31) + s);
2770
+ r = d(M(t, 16) + M(t, e - 32));
2771
+ const o = M(t, e - 8);
2772
+ i = A(d(r + o), 52), s = A(r, 37), r = d(r + M(t, e - 24)), s = d(s + A(r, 7)), r = d(r + M(t, e - 16));
2773
+ const l = d(r + o), c = d(i + A(r, 31) + s), f = ft(d(d(a + c) * He + d(l + u) * Be));
2774
+ return d(ft(d(f * Be + u)) * He);
2775
2775
  }
2776
2776
  function xa(t) {
2777
2777
  let e;
@@ -2781,12 +2781,12 @@ function xa(t) {
2781
2781
  return n <= 16 ? ba(e) : _a(e);
2782
2782
  if (n <= 64)
2783
2783
  return Ea(e);
2784
- let r = _(e), i = d(_(e, n - 16) ^ ue), s = d(_(e, n - 56) ^ We), a = Et(e, n - 64, BigInt(n), i), o = Et(e, n - 32, d(BigInt(n) * ue), We);
2784
+ let r = M(e), i = d(M(e, n - 16) ^ ue), s = d(M(e, n - 56) ^ Be), a = Et(e, n - 64, BigInt(n), i), u = Et(e, n - 32, d(BigInt(n) * ue), Be);
2785
2785
  s = d(s + ft(a.second) * ue), r = d(A(d(s + r), 39) * ue), i = d(A(i, 33) * ue);
2786
- let l = n - 1 & -64, u = 0;
2787
- for (; l > 0; )
2788
- r = d(A(d(r + i + a.first + _(e, u + 16)), 37) * ue), i = d(A(d(i + a.second + _(e, u + 48)), 42) * ue), r ^= o.second, i ^= a.first, s = A(s ^ o.first, 33), a = Et(e, u, d(a.second * ue), d(r + o.first)), o = Et(e, u + 32, d(s + o.second), i), [s, r] = [r, s], u += 64, l -= 64;
2789
- return qe(qe(a.first, o.first) + d(ft(i) * ue) + s, qe(a.second, o.second) + r);
2786
+ let o = n - 1 & -64, l = 0;
2787
+ for (; o > 0; )
2788
+ r = d(A(d(r + i + a.first + M(e, l + 16)), 37) * ue), i = d(A(d(i + a.second + M(e, l + 48)), 42) * ue), r ^= u.second, i ^= a.first, s = A(s ^ u.first, 33), a = Et(e, l, d(a.second * ue), d(r + u.first)), u = Et(e, l + 32, d(s + u.second), i), [s, r] = [r, s], l += 64, o -= 64;
2789
+ return qe(qe(a.first, u.first) + d(ft(i) * ue) + s, qe(a.second, u.second) + r);
2790
2790
  }
2791
2791
  function Sa(t) {
2792
2792
  return xa(JSON.stringify(t)).toString();
@@ -2822,21 +2822,21 @@ function Qe(t) {
2822
2822
  return e === "string" ? `"${t}"` : e === "number" || e === "bigint" || e === "boolean" ? `${t}` : e === "object" || e === "function" ? (t && Object.getPrototypeOf(t)?.constructor?.name) ?? "null" : e;
2823
2823
  }
2824
2824
  function N(t, e, n, r, i) {
2825
- const s = i && "input" in i ? i.input : n.value, a = i?.expected ?? t.expects ?? null, o = i?.received ?? /* @__PURE__ */ Qe(s), l = {
2825
+ const s = i && "input" in i ? i.input : n.value, a = i?.expected ?? t.expects ?? null, u = i?.received ?? /* @__PURE__ */ Qe(s), o = {
2826
2826
  kind: t.kind,
2827
2827
  type: t.type,
2828
2828
  input: s,
2829
2829
  expected: a,
2830
- received: o,
2831
- message: `Invalid ${e}: ${a ? `Expected ${a} but r` : "R"}eceived ${o}`,
2830
+ received: u,
2831
+ message: `Invalid ${e}: ${a ? `Expected ${a} but r` : "R"}eceived ${u}`,
2832
2832
  requirement: t.requirement,
2833
2833
  path: i?.path,
2834
2834
  issues: i?.issues,
2835
2835
  lang: r.lang,
2836
2836
  abortEarly: r.abortEarly,
2837
2837
  abortPipeEarly: r.abortPipeEarly
2838
- }, u = t.kind === "schema", c = i?.message ?? t.message ?? /* @__PURE__ */ Ca(t.reference, l.lang) ?? (u ? /* @__PURE__ */ Aa(l.lang) : null) ?? r.message ?? /* @__PURE__ */ Ta(l.lang);
2839
- c !== void 0 && (l.message = typeof c == "function" ? c(l) : c), u && (n.typed = !1), n.issues ? n.issues.push(l) : n.issues = [l];
2838
+ }, l = t.kind === "schema", c = i?.message ?? t.message ?? /* @__PURE__ */ Ca(t.reference, o.lang) ?? (l ? /* @__PURE__ */ Aa(o.lang) : null) ?? r.message ?? /* @__PURE__ */ Ta(o.lang);
2839
+ c !== void 0 && (o.message = typeof c == "function" ? c(o) : c), l && (n.typed = !1), n.issues ? n.issues.push(o) : n.issues = [o];
2840
2840
  }
2841
2841
  // @__NO_SIDE_EFFECTS__
2842
2842
  function X(t) {
@@ -3000,23 +3000,23 @@ function ai(t, e) {
3000
3000
  if (Array.isArray(i)) {
3001
3001
  n.typed = !0, n.value = [];
3002
3002
  for (let s = 0; s < i.length; s++) {
3003
- const a = i[s], o = this.item["~run"]({ value: a }, r);
3004
- if (o.issues) {
3005
- const l = {
3003
+ const a = i[s], u = this.item["~run"]({ value: a }, r);
3004
+ if (u.issues) {
3005
+ const o = {
3006
3006
  type: "array",
3007
3007
  origin: "value",
3008
3008
  input: i,
3009
3009
  key: s,
3010
3010
  value: a
3011
3011
  };
3012
- for (const u of o.issues)
3013
- u.path ? u.path.unshift(l) : u.path = [l], n.issues?.push(u);
3014
- if (n.issues || (n.issues = o.issues), r.abortEarly) {
3012
+ for (const l of u.issues)
3013
+ l.path ? l.path.unshift(o) : l.path = [o], n.issues?.push(l);
3014
+ if (n.issues || (n.issues = u.issues), r.abortEarly) {
3015
3015
  n.typed = !1;
3016
3016
  break;
3017
3017
  }
3018
3018
  }
3019
- o.typed || (n.typed = !1), n.value.push(o.value);
3019
+ u.typed || (n.typed = !1), n.value.push(u.value);
3020
3020
  }
3021
3021
  } else N(this, "type", n, r);
3022
3022
  return n;
@@ -3130,23 +3130,23 @@ function H(t, e) {
3130
3130
  for (const s in this.entries) {
3131
3131
  const a = this.entries[s];
3132
3132
  if (s in i || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
3133
- const o = s in i ? i[s] : /* @__PURE__ */ si(a), l = a["~run"]({ value: o }, r);
3134
- if (l.issues) {
3135
- const u = {
3133
+ const u = s in i ? i[s] : /* @__PURE__ */ si(a), o = a["~run"]({ value: u }, r);
3134
+ if (o.issues) {
3135
+ const l = {
3136
3136
  type: "object",
3137
3137
  origin: "value",
3138
3138
  input: i,
3139
3139
  key: s,
3140
- value: o
3140
+ value: u
3141
3141
  };
3142
- for (const c of l.issues)
3143
- c.path ? c.path.unshift(u) : c.path = [u], n.issues?.push(c);
3144
- if (n.issues || (n.issues = l.issues), r.abortEarly) {
3142
+ for (const c of o.issues)
3143
+ c.path ? c.path.unshift(l) : c.path = [l], n.issues?.push(c);
3144
+ if (n.issues || (n.issues = o.issues), r.abortEarly) {
3145
3145
  n.typed = !1;
3146
3146
  break;
3147
3147
  }
3148
3148
  }
3149
- l.typed || (n.typed = !1), n.value[s] = l.value;
3149
+ o.typed || (n.typed = !1), n.value[s] = o.value;
3150
3150
  } else if (a.fallback !== void 0) n.value[s] = /* @__PURE__ */ Da(a);
3151
3151
  else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (N(this, "key", n, r, {
3152
3152
  input: void 0,
@@ -3219,23 +3219,23 @@ function L(t, e) {
3219
3219
  if (Array.isArray(i)) {
3220
3220
  n.typed = !0, n.value = [];
3221
3221
  for (let s = 0; s < this.items.length; s++) {
3222
- const a = i[s], o = this.items[s]["~run"]({ value: a }, r);
3223
- if (o.issues) {
3224
- const l = {
3222
+ const a = i[s], u = this.items[s]["~run"]({ value: a }, r);
3223
+ if (u.issues) {
3224
+ const o = {
3225
3225
  type: "array",
3226
3226
  origin: "value",
3227
3227
  input: i,
3228
3228
  key: s,
3229
3229
  value: a
3230
3230
  };
3231
- for (const u of o.issues)
3232
- u.path ? u.path.unshift(l) : u.path = [l], n.issues?.push(u);
3233
- if (n.issues || (n.issues = o.issues), r.abortEarly) {
3231
+ for (const l of u.issues)
3232
+ l.path ? l.path.unshift(o) : l.path = [o], n.issues?.push(l);
3233
+ if (n.issues || (n.issues = u.issues), r.abortEarly) {
3234
3234
  n.typed = !1;
3235
3235
  break;
3236
3236
  }
3237
3237
  }
3238
- o.typed || (n.typed = !1), n.value.push(o.value);
3238
+ u.typed || (n.typed = !1), n.value.push(u.value);
3239
3239
  }
3240
3240
  } else N(this, "type", n, r);
3241
3241
  return n;
@@ -3263,14 +3263,14 @@ function wn(t, e) {
3263
3263
  },
3264
3264
  "~run"(n, r) {
3265
3265
  let i, s, a;
3266
- for (const o of this.options) {
3267
- const l = o["~run"]({ value: n.value }, r);
3268
- if (l.typed) if (l.issues) s ? s.push(l) : s = [l];
3266
+ for (const u of this.options) {
3267
+ const o = u["~run"]({ value: n.value }, r);
3268
+ if (o.typed) if (o.issues) s ? s.push(o) : s = [o];
3269
3269
  else {
3270
- i = l;
3270
+ i = o;
3271
3271
  break;
3272
3272
  }
3273
- else a ? a.push(l) : a = [l];
3273
+ else a ? a.push(o) : a = [o];
3274
3274
  }
3275
3275
  if (i) return i;
3276
3276
  if (s) {
@@ -3327,8 +3327,8 @@ function w(...t) {
3327
3327
  };
3328
3328
  }
3329
3329
  var ui = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-90), /* @__PURE__ */ ht(90)), ci = /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-180), /* @__PURE__ */ ht(180)), Ct = /* @__PURE__ */ H({ lat: ui, lng: ci }), fi = /* @__PURE__ */ H({ sw: Ct, ne: Ct }), za = /* @__PURE__ */ H({ bounds: fi, center: Ct, zoom: /* @__PURE__ */ P() }), Ye = /* @__PURE__ */ li((t) => t instanceof HTMLElement, "Must be an HTMLElement"), Oa = /* @__PURE__ */ H({ mapSize: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(1)), zoomMin: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), zoomMax: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), zoomScale: /* @__PURE__ */ wn([/* @__PURE__ */ ze(1), /* @__PURE__ */ ze(2), /* @__PURE__ */ ze(10)]) }), La = /* @__PURE__ */ H({ inserted: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ oi())), insert: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), remove: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), update: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ P()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), or = /* @__PURE__ */ wn([/* @__PURE__ */ ze("idle"), /* @__PURE__ */ ze("move"), /* @__PURE__ */ ze("click")]), Fa = /* @__PURE__ */ H({ getParameters: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Oa)), getContainer: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Ye)), getZoom: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(/* @__PURE__ */ P())), getBounds: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(fi)), getCenter: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(Ct)), getViewport: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([])), /* @__PURE__ */ V(za)), panBy: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ P(), /* @__PURE__ */ P()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), createMarker: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([Ye, ui, ci, /* @__PURE__ */ P()])), /* @__PURE__ */ V(La)), subscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([or, /* @__PURE__ */ I()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())), unsubscribe: /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([or, /* @__PURE__ */ I()])), /* @__PURE__ */ V(/* @__PURE__ */ Oe())) }), Jt = /* @__PURE__ */ w(/* @__PURE__ */ I(), /* @__PURE__ */ O(/* @__PURE__ */ L([/* @__PURE__ */ ge(), Ye]))), Gt = /* @__PURE__ */ w(/* @__PURE__ */ H({ width: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), height: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), padding: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)) }), /* @__PURE__ */ ri((t) => Math.min(t.width, t.height) / t.padding >= 4, "Minimum of width or height must be greater than or equal to 4 * padding")), $a = /* @__PURE__ */ H({ background: /* @__PURE__ */ T(/* @__PURE__ */ ge()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0))), shadow: /* @__PURE__ */ T(/* @__PURE__ */ ge()) }), lr = /* @__PURE__ */ H({ background: /* @__PURE__ */ T(/* @__PURE__ */ ge()), radius: /* @__PURE__ */ T(/* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0))), filter: /* @__PURE__ */ T(/* @__PURE__ */ ge()) }), Va = /* @__PURE__ */ H({ id: /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ gn(1)), rank: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(0)), lat: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-90), /* @__PURE__ */ ht(90)), lng: /* @__PURE__ */ w(/* @__PURE__ */ P(), /* @__PURE__ */ q(-180), /* @__PURE__ */ ht(180)), tooltip: /* @__PURE__ */ H({ element: Ye, style: /* @__PURE__ */ T(lr), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) }), pin: /* @__PURE__ */ T(/* @__PURE__ */ H({ element: /* @__PURE__ */ T(Ye), style: /* @__PURE__ */ T($a), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) })), popup: /* @__PURE__ */ T(/* @__PURE__ */ H({ element: Ye, style: /* @__PURE__ */ T(lr), dimensions: /* @__PURE__ */ T(Gt), initialize: /* @__PURE__ */ T(Jt) })) }), ja = /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ ii(32)), Ua = /* @__PURE__ */ w(/* @__PURE__ */ ge(), /* @__PURE__ */ gn(1));
3330
- const Ba = "1.3.2";
3331
- class Wa {
3330
+ const Wa = "1.3.3";
3331
+ class Ba {
3332
3332
  apiKey;
3333
3333
  apiJwt;
3334
3334
  markerStatesStore;
@@ -3348,13 +3348,13 @@ class Wa {
3348
3348
  }
3349
3349
  async updateStates(e, n) {
3350
3350
  if (e.length == 0) return;
3351
- e.sort((a, o) => a.properites.id.localeCompare(o.properites.id));
3351
+ e.sort((a, u) => a.properites.id.localeCompare(u.properites.id));
3352
3352
  const r = e.map((a) => a.input), i = Sa(r);
3353
3353
  let s = this.markerStatesStore.get(i);
3354
3354
  s == null && (s = await this.fetchStates(r, n), this.markerStatesStore.set(i, s));
3355
3355
  for (let a = 0; a < e.length; a++) {
3356
- const o = e[a];
3357
- o.state = s[a];
3356
+ const u = e[a];
3357
+ u.state = s[a];
3358
3358
  }
3359
3359
  }
3360
3360
  async fetchStates(e, n) {
@@ -3363,14 +3363,14 @@ class Wa {
3363
3363
  const r = {
3364
3364
  key: this.apiKey,
3365
3365
  jwt: this.apiJwt,
3366
- version: Ba,
3366
+ version: Wa,
3367
3367
  input: e,
3368
3368
  parameters: n
3369
3369
  }, i = await this.markerStatesWorkerClient.invoke("fetch", r);
3370
3370
  return i.jwt && (this.apiJwt = i.jwt), i.states;
3371
3371
  }
3372
3372
  }
3373
- const ur = "1.3.2", Ha = "https://maps.api.arenarium.dev/auth", qa = "https://maps.api.arenarium.dev/log", cr = 500;
3373
+ const ur = "1.3.3", Ha = "https://maps.api.arenarium.dev/auth", qa = "https://maps.api.arenarium.dev/log", cr = 500;
3374
3374
  class hi {
3375
3375
  apiKey;
3376
3376
  mapProvider;
@@ -3392,7 +3392,7 @@ class hi {
3392
3392
  this.onMapMove.bind(this),
3393
3393
  this.onMapIdle.bind(this),
3394
3394
  this.onMapClick.bind(this)
3395
- ), this.markers = /* @__PURE__ */ new Map(), this.markerVisibilityManager = new Bi(), this.markerElementsManager = new da(this.mapProvider), this.markerStatesManager = new Wa(e, n), this.markerVisibilityProcessor = new qt(this.onMarkersVisiblityProcess.bind(this)), this.markerElementsProcessor = new qt(this.onMarkersRenderProcess.bind(this)), this.markerStateProcessor = new qt(this.onMarkersStateProcess.bind(this)), this.configuration = i;
3395
+ ), this.markers = /* @__PURE__ */ new Map(), this.markerVisibilityManager = new Wi(), this.markerElementsManager = new da(this.mapProvider), this.markerStatesManager = new Ba(e, n), this.markerVisibilityProcessor = new qt(this.onMarkersVisiblityProcess.bind(this)), this.markerElementsProcessor = new qt(this.onMarkersRenderProcess.bind(this)), this.markerStateProcessor = new qt(this.onMarkersStateProcess.bind(this)), this.configuration = i;
3396
3396
  }
3397
3397
  //#region Core
3398
3398
  static async create(e, n, r) {
@@ -3490,59 +3490,58 @@ class hi {
3490
3490
  //#region Markers
3491
3491
  getMarkers(e) {
3492
3492
  const n = new Array(), r = new Array();
3493
- for (const s of e) {
3494
- const a = this.markers.get(s.id);
3495
- a ? n.push(a) : r.push(s);
3493
+ for (const o of e) {
3494
+ const l = this.markers.get(o.id);
3495
+ l ? n.push(l) : r.push(o);
3496
3496
  }
3497
- const i = document.createElement("div");
3498
- i.style.position = "absolute", i.style.visibility = "hidden", i.style.display = "flex";
3499
- try {
3500
- document.body.appendChild(i);
3501
- for (const o of r) {
3502
- const l = o.pin, u = o.tooltip, c = o.popup;
3503
- l?.element && !l.dimensions && i.appendChild(l.element), u.element && !u.dimensions && i.appendChild(u.element), c?.element && !c.dimensions && i.appendChild(c.element);
3504
- }
3505
- const s = (o, l) => {
3506
- if (l) return l;
3507
- if (o) {
3508
- const u = o.getBoundingClientRect();
3509
- return { width: u.width, height: u.height, padding: Vn };
3510
- } else
3511
- return { width: $n, height: $n, padding: Vn };
3512
- }, a = (o, l) => {
3513
- if (l) return l;
3514
- const u = o.getBoundingClientRect();
3515
- return { width: u.width, height: u.height, padding: Math.min(Math.round(Math.min(u.width, u.height) / 4), Vi) };
3516
- };
3517
- for (const o of r) {
3518
- const l = o.id, u = o.lat, c = o.lng, f = o.rank;
3519
- let p = {
3520
- id: l,
3521
- initialize: o.pin?.initialize,
3522
- element: o.pin?.element,
3523
- style: o.pin?.style,
3524
- dimensions: s(o.pin?.element, o.pin?.dimensions)
3525
- }, m = {
3526
- id: l,
3527
- initialize: o.tooltip.initialize,
3528
- element: o.tooltip.element,
3529
- style: o.tooltip.style,
3530
- dimensions: a(o.tooltip.element, o.tooltip.dimensions)
3531
- }, h;
3532
- o.popup && (h = {
3533
- id: l,
3534
- initialize: o.popup.initialize,
3535
- element: o.popup.element,
3536
- style: o.popup.style,
3537
- dimensions: a(o.popup.element, o.popup.dimensions)
3538
- });
3539
- const v = new xi(l, u, c, f, p, m, h);
3540
- n.push(v);
3497
+ const i = this.mapProvider.getContainer(), s = (o) => {
3498
+ const l = document.createElement("div");
3499
+ l.style.position = "absolute", l.style.visibility = "hidden", l.style.zIndex = "-1";
3500
+ try {
3501
+ return l.appendChild(o), i.appendChild(l), l.getBoundingClientRect();
3502
+ } finally {
3503
+ i.removeChild(l);
3541
3504
  }
3542
- return n.forEach((o) => this.markers.set(o.properites.id, o)), n.sort((o, l) => l.properites.rank - o.properites.rank), n;
3543
- } finally {
3544
- i.replaceChildren(), document.body.removeChild(i);
3505
+ }, a = (o, l) => {
3506
+ if (l) return l;
3507
+ if (o) {
3508
+ const c = s(o), f = c.width, h = c.height;
3509
+ return { width: f, height: h, padding: Vn };
3510
+ } else
3511
+ return { width: $n, height: $n, padding: Vn };
3512
+ }, u = (o, l) => {
3513
+ if (l) return l;
3514
+ const c = s(o), f = c.width, h = c.height;
3515
+ console.log(f, h);
3516
+ const m = Math.min(Math.round(Math.min(f, h) / 4), Vi);
3517
+ return { width: f, height: h, padding: m };
3518
+ };
3519
+ for (const o of r) {
3520
+ const l = o.id, c = o.lat, f = o.lng, h = o.rank;
3521
+ let m = {
3522
+ id: l,
3523
+ initialize: o.pin?.initialize,
3524
+ element: o.pin?.element,
3525
+ style: o.pin?.style,
3526
+ dimensions: a(o.pin?.element, o.pin?.dimensions)
3527
+ }, p = {
3528
+ id: l,
3529
+ initialize: o.tooltip.initialize,
3530
+ element: o.tooltip.element,
3531
+ style: o.tooltip.style,
3532
+ dimensions: u(o.tooltip.element, o.tooltip.dimensions)
3533
+ }, v;
3534
+ o.popup && (v = {
3535
+ id: l,
3536
+ initialize: o.popup.initialize,
3537
+ element: o.popup.element,
3538
+ style: o.popup.style,
3539
+ dimensions: u(o.popup.element, o.popup.dimensions)
3540
+ });
3541
+ const b = new xi(l, c, f, h, m, p, v);
3542
+ n.push(b);
3545
3543
  }
3544
+ return n.forEach((o) => this.markers.set(o.properites.id, o)), n.sort((o, l) => l.properites.rank - o.properites.rank), n;
3546
3545
  }
3547
3546
  async updateMarkers(e) {
3548
3547
  xt(/* @__PURE__ */ ai(Va), e);