liveroom-client-element 0.0.9 → 0.0.11

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.
@@ -6,7 +6,7 @@ function pt() {
6
6
  function oe(s) {
7
7
  return s();
8
8
  }
9
- function Zt() {
9
+ function Yt() {
10
10
  return /* @__PURE__ */ Object.create(null);
11
11
  }
12
12
  function gt(s) {
@@ -21,13 +21,13 @@ function Se(s, n) {
21
21
  function Me(s) {
22
22
  return Object.keys(s).length === 0;
23
23
  }
24
- function F(s, n) {
24
+ function W(s, n) {
25
25
  s.appendChild(n);
26
26
  }
27
27
  function Le(s, n, t) {
28
28
  const e = Ne(s);
29
29
  if (!e.getElementById(n)) {
30
- const r = Z("style");
30
+ const r = Q("style");
31
31
  r.id = n, r.textContent = t, Re(e, r);
32
32
  }
33
33
  }
@@ -42,7 +42,7 @@ function Ne(s) {
42
42
  ) : s.ownerDocument;
43
43
  }
44
44
  function Re(s, n) {
45
- return F(
45
+ return W(
46
46
  /** @type {Document} */
47
47
  s.head || s,
48
48
  n
@@ -54,10 +54,10 @@ function Ct(s, n, t) {
54
54
  function vt(s) {
55
55
  s.parentNode && s.parentNode.removeChild(s);
56
56
  }
57
- function Z(s) {
57
+ function Q(s) {
58
58
  return document.createElement(s);
59
59
  }
60
- function Qt(s) {
60
+ function Zt(s) {
61
61
  return document.createElementNS("http://www.w3.org/2000/svg", s);
62
62
  }
63
63
  function he(s) {
@@ -103,14 +103,14 @@ function De(s) {
103
103
  function Ue(s) {
104
104
  ce().$$.on_destroy.push(s);
105
105
  }
106
- const rt = [], Mt = [];
106
+ const rt = [], Qt = [];
107
107
  let it = [];
108
108
  const Kt = [], Je = /* @__PURE__ */ Promise.resolve();
109
- let Lt = !1;
109
+ let Mt = !1;
110
110
  function Ve() {
111
- Lt || (Lt = !0, Je.then(ct));
111
+ Mt || (Mt = !0, Je.then(ct));
112
112
  }
113
- function Nt(s) {
113
+ function Lt(s) {
114
114
  it.push(s);
115
115
  }
116
116
  const xt = /* @__PURE__ */ new Set();
@@ -128,8 +128,8 @@ function ct() {
128
128
  } catch (n) {
129
129
  throw rt.length = 0, nt = 0, n;
130
130
  }
131
- for (ht(null), rt.length = 0, nt = 0; Mt.length; )
132
- Mt.pop()();
131
+ for (ht(null), rt.length = 0, nt = 0; Qt.length; )
132
+ Qt.pop()();
133
133
  for (let n = 0; n < it.length; n += 1) {
134
134
  const t = it[n];
135
135
  xt.has(t) || (xt.add(t), t());
@@ -138,13 +138,13 @@ function ct() {
138
138
  } while (rt.length);
139
139
  for (; Kt.length; )
140
140
  Kt.pop()();
141
- Lt = !1, xt.clear(), ht(s);
141
+ Mt = !1, xt.clear(), ht(s);
142
142
  }
143
143
  function Be(s) {
144
144
  if (s.fragment !== null) {
145
145
  s.update(), gt(s.before_update);
146
146
  const n = s.dirty;
147
- s.dirty = [-1], s.fragment && s.fragment.p(s.ctx, n), s.after_update.forEach(Nt);
147
+ s.dirty = [-1], s.fragment && s.fragment.p(s.ctx, n), s.after_update.forEach(Lt);
148
148
  }
149
149
  }
150
150
  function ze(s) {
@@ -161,39 +161,39 @@ function te(s) {
161
161
  function We(s, n) {
162
162
  s.d(1), n.delete(s.key);
163
163
  }
164
- function Ge(s, n, t, e, r, i, a, h, l, d, _, b) {
165
- let T = s.length, O = i.length, x = T;
164
+ function Ge(s, n, t, e, r, i, o, h, p, d, b, _) {
165
+ let A = s.length, T = i.length, j = A;
166
166
  const R = {};
167
- for (; x--; )
168
- R[s[x].key] = x;
169
- const M = [], G = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(), Y = [];
170
- for (x = O; x--; ) {
171
- const A = b(r, i, x), P = t(A);
172
- let D = a.get(P);
173
- D ? e && Y.push(() => D.p(A, n)) : (D = d(P, A), D.c()), G.set(P, M[x] = D), P in R && X.set(P, Math.abs(x - R[P]));
174
- }
175
- const Q = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Set();
176
- function V(A) {
177
- le(A, 1), A.m(h, _), a.set(A.key, A), _ = A.first, O--;
178
- }
179
- for (; T && O; ) {
180
- const A = M[O - 1], P = s[T - 1], D = A.key, K = P.key;
181
- A === P ? (_ = A.first, T--, O--) : G.has(K) ? !a.has(D) || Q.has(D) ? V(A) : k.has(K) ? T-- : X.get(D) > X.get(K) ? (k.add(D), V(A)) : (Q.add(K), T--) : (l(P, a), T--);
182
- }
183
- for (; T--; ) {
184
- const A = s[T];
185
- G.has(A.key) || l(A, a);
186
- }
187
- for (; O; )
188
- V(M[O - 1]);
189
- return gt(Y), M;
167
+ for (; j--; )
168
+ R[s[j].key] = j;
169
+ const M = [], X = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), k = [];
170
+ for (j = T; j--; ) {
171
+ const x = _(r, i, j), P = t(x);
172
+ let V = o.get(P);
173
+ V ? e && k.push(() => V.p(x, n)) : (V = d(P, x), V.c()), X.set(P, M[j] = V), P in R && q.set(P, Math.abs(j - R[P]));
174
+ }
175
+ const z = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
176
+ function Y(x) {
177
+ le(x, 1), x.m(h, b), o.set(x.key, x), b = x.first, T--;
178
+ }
179
+ for (; A && T; ) {
180
+ const x = M[T - 1], P = s[A - 1], V = x.key, K = P.key;
181
+ x === P ? (b = x.first, A--, T--) : X.has(K) ? !o.has(V) || z.has(V) ? Y(x) : J.has(K) ? A-- : q.get(V) > q.get(K) ? (J.add(V), Y(x)) : (z.add(K), A--) : (p(P, o), A--);
182
+ }
183
+ for (; A--; ) {
184
+ const x = s[A];
185
+ X.has(x.key) || p(x, o);
186
+ }
187
+ for (; T; )
188
+ Y(M[T - 1]);
189
+ return gt(k), M;
190
190
  }
191
191
  function Xe(s, n, t) {
192
192
  const { fragment: e, after_update: r } = s.$$;
193
- e && e.m(n, t), Nt(() => {
193
+ e && e.m(n, t), Lt(() => {
194
194
  const i = s.$$.on_mount.map(oe).filter(ae);
195
195
  s.$$.on_destroy ? s.$$.on_destroy.push(...i) : gt(i), s.$$.on_mount = [];
196
- }), r.forEach(Nt);
196
+ }), r.forEach(Lt);
197
197
  }
198
198
  function qe(s, n) {
199
199
  const t = s.$$;
@@ -202,8 +202,8 @@ function qe(s, n) {
202
202
  function Ye(s, n) {
203
203
  s.$$.dirty[0] === -1 && (rt.push(s), Ve(), s.$$.dirty.fill(0)), s.$$.dirty[n / 31 | 0] |= 1 << n % 31;
204
204
  }
205
- function Ze(s, n, t, e, r, i, a, h = [-1]) {
206
- const l = ft;
205
+ function Ze(s, n, t, e, r, i, o, h = [-1]) {
206
+ const p = ft;
207
207
  ht(s);
208
208
  const d = s.$$ = {
209
209
  fragment: null,
@@ -212,34 +212,34 @@ function Ze(s, n, t, e, r, i, a, h = [-1]) {
212
212
  props: i,
213
213
  update: pt,
214
214
  not_equal: r,
215
- bound: Zt(),
215
+ bound: Yt(),
216
216
  // lifecycle
217
217
  on_mount: [],
218
218
  on_destroy: [],
219
219
  on_disconnect: [],
220
220
  before_update: [],
221
221
  after_update: [],
222
- context: new Map(n.context || (l ? l.$$.context : [])),
222
+ context: new Map(n.context || (p ? p.$$.context : [])),
223
223
  // everything else
224
- callbacks: Zt(),
224
+ callbacks: Yt(),
225
225
  dirty: h,
226
226
  skip_bound: !1,
227
- root: n.target || l.$$.root
227
+ root: n.target || p.$$.root
228
228
  };
229
- a && a(d.root);
230
- let _ = !1;
231
- if (d.ctx = t ? t(s, n.props || {}, (b, T, ...O) => {
232
- const x = O.length ? O[0] : T;
233
- return d.ctx && r(d.ctx[b], d.ctx[b] = x) && (!d.skip_bound && d.bound[b] && d.bound[b](x), _ && Ye(s, b)), T;
234
- }) : [], d.update(), _ = !0, gt(d.before_update), d.fragment = e ? e(d.ctx) : !1, n.target) {
229
+ o && o(d.root);
230
+ let b = !1;
231
+ if (d.ctx = t ? t(s, n.props || {}, (_, A, ...T) => {
232
+ const j = T.length ? T[0] : A;
233
+ return d.ctx && r(d.ctx[_], d.ctx[_] = j) && (!d.skip_bound && d.bound[_] && d.bound[_](j), b && Ye(s, _)), A;
234
+ }) : [], d.update(), b = !0, gt(d.before_update), d.fragment = e ? e(d.ctx) : !1, n.target) {
235
235
  if (n.hydrate) {
236
- const b = He(n.target);
237
- d.fragment && d.fragment.l(b), b.forEach(vt);
236
+ const _ = He(n.target);
237
+ d.fragment && d.fragment.l(_), _.forEach(vt);
238
238
  } else
239
239
  d.fragment && d.fragment.c();
240
240
  n.intro && le(s.$$.fragment), Xe(s, n.target, n.anchor), ct();
241
241
  }
242
- ht(l);
242
+ ht(p);
243
243
  }
244
244
  let ue;
245
245
  typeof HTMLElement == "function" && (ue = class extends HTMLElement {
@@ -282,20 +282,20 @@ typeof HTMLElement == "function" && (ue = class extends HTMLElement {
282
282
  if (this.$$cn = !0, !this.$$c) {
283
283
  let n = function(i) {
284
284
  return () => {
285
- let a;
285
+ let o;
286
286
  return {
287
287
  c: function() {
288
- a = Z("slot"), i !== "default" && S(a, "name", i);
288
+ o = Q("slot"), i !== "default" && S(o, "name", i);
289
289
  },
290
290
  /**
291
291
  * @param {HTMLElement} target
292
292
  * @param {HTMLElement} [anchor]
293
293
  */
294
- m: function(d, _) {
295
- Ct(d, a, _);
294
+ m: function(d, b) {
295
+ Ct(d, o, b);
296
296
  },
297
297
  d: function(d) {
298
- d && vt(a);
298
+ d && vt(o);
299
299
  }
300
300
  };
301
301
  };
@@ -306,8 +306,8 @@ typeof HTMLElement == "function" && (ue = class extends HTMLElement {
306
306
  for (const i of this.$$s)
307
307
  i in e && (t[i] = [n(i)]);
308
308
  for (const i of this.attributes) {
309
- const a = this.$$g_p(i.name);
310
- a in this.$$d || (this.$$d[a] = _t(a, i.value, this.$$p_d, "toProp"));
309
+ const o = this.$$g_p(i.name);
310
+ o in this.$$d || (this.$$d[o] = _t(o, i.value, this.$$p_d, "toProp"));
311
311
  }
312
312
  this.$$c = new this.$$ctor({
313
313
  target: this.shadowRoot || this,
@@ -323,21 +323,21 @@ typeof HTMLElement == "function" && (ue = class extends HTMLElement {
323
323
  this.$$r = !0;
324
324
  for (const i in this.$$p_d)
325
325
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
326
- const a = _t(
326
+ const o = _t(
327
327
  i,
328
328
  this.$$d[i],
329
329
  this.$$p_d,
330
330
  "toAttribute"
331
331
  );
332
- a == null ? this.removeAttribute(i) : this.setAttribute(this.$$p_d[i].attribute || i, a);
332
+ o == null ? this.removeAttribute(i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
333
333
  }
334
334
  this.$$r = !1;
335
335
  };
336
336
  this.$$c.$$.after_update.push(r), r();
337
337
  for (const i in this.$$l)
338
- for (const a of this.$$l[i]) {
339
- const h = this.$$c.$on(i, a);
340
- this.$$l_u.set(a, h);
338
+ for (const o of this.$$l[i]) {
339
+ const h = this.$$c.$on(i, o);
340
+ this.$$l_u.set(o, h);
341
341
  }
342
342
  this.$$l = {};
343
343
  }
@@ -390,7 +390,7 @@ function _t(s, n, t, e) {
390
390
  }
391
391
  }
392
392
  function Qe(s, n, t, e, r, i) {
393
- let a = class extends ue {
393
+ let o = class extends ue {
394
394
  constructor() {
395
395
  super(s, t, r), this.$$p_d = n;
396
396
  }
@@ -401,24 +401,24 @@ function Qe(s, n, t, e, r, i) {
401
401
  }
402
402
  };
403
403
  return Object.keys(n).forEach((h) => {
404
- Object.defineProperty(a.prototype, h, {
404
+ Object.defineProperty(o.prototype, h, {
405
405
  get() {
406
406
  return this.$$c && h in this.$$c ? this.$$c[h] : this.$$d[h];
407
407
  },
408
- set(l) {
408
+ set(p) {
409
409
  var d;
410
- l = _t(h, l, n), this.$$d[h] = l, (d = this.$$c) == null || d.$set({ [h]: l });
410
+ p = _t(h, p, n), this.$$d[h] = p, (d = this.$$c) == null || d.$set({ [h]: p });
411
411
  }
412
412
  });
413
413
  }), e.forEach((h) => {
414
- Object.defineProperty(a.prototype, h, {
414
+ Object.defineProperty(o.prototype, h, {
415
415
  get() {
416
- var l;
417
- return (l = this.$$c) == null ? void 0 : l[h];
416
+ var p;
417
+ return (p = this.$$c) == null ? void 0 : p[h];
418
418
  }
419
419
  });
420
- }), i && (a = i(a)), s.element = /** @type {any} */
421
- a, a;
420
+ }), i && (o = i(o)), s.element = /** @type {any} */
421
+ o, o;
422
422
  }
423
423
  class Ke {
424
424
  constructor() {
@@ -486,7 +486,7 @@ const { isArray: es } = Array, ss = Object.keys, dt = (s) => {
486
486
  }
487
487
  return s;
488
488
  };
489
- class J {
489
+ class U {
490
490
  constructor(n) {
491
491
  f(this, "path");
492
492
  f(this, "from");
@@ -510,21 +510,21 @@ const w = (s) => typeof s == "string" ? cs(s) : s, ls = (s) => !s.length, us = O
510
510
  function ps(s, n) {
511
511
  return us.call(s, n);
512
512
  }
513
- const { isArray: pe } = Array, j = (s, n) => {
513
+ const { isArray: pe } = Array, O = (s, n) => {
514
514
  const t = n.length;
515
515
  if (!t)
516
516
  return { val: s };
517
517
  let e, r;
518
- for (let a = 0; a < t; a++)
519
- if (e = s, r = n[a], pe(e)) {
518
+ for (let o = 0; o < t; o++)
519
+ if (e = s, r = n[o], pe(e)) {
520
520
  const h = e.length;
521
521
  if (r === "-")
522
522
  r = h;
523
523
  else if (typeof r == "string") {
524
- const l = ~~r;
525
- if ("" + l !== r)
524
+ const p = ~~r;
525
+ if ("" + p !== r)
526
526
  throw new Error("INVALID_INDEX");
527
- if (r = l, r < 0)
527
+ if (r = p, r < 0)
528
528
  throw new Error("INVALID_INDEX");
529
529
  }
530
530
  s = e[r];
@@ -534,7 +534,7 @@ const { isArray: pe } = Array, j = (s, n) => {
534
534
  throw new Error("NOT_FOUND");
535
535
  return { val: s, obj: e, key: r };
536
536
  }, yt = (s) => pe(s.obj) && typeof s.key == "number", kt = (s) => typeof s.obj == "object" && typeof s.key == "string";
537
- class It extends J {
537
+ class Pt extends U {
538
538
  constructor(t, e) {
539
539
  super(t);
540
540
  f(this, "value");
@@ -547,19 +547,19 @@ class It extends J {
547
547
  return 0;
548
548
  }
549
549
  apply(t) {
550
- const { val: e, key: r, obj: i } = j(t, this.path), a = dt(this.value);
550
+ const { val: e, key: r, obj: i } = O(t, this.path), o = dt(this.value);
551
551
  if (!i)
552
- t = a;
552
+ t = o;
553
553
  else if (typeof r == "string")
554
- i[r] = a;
554
+ i[r] = o;
555
555
  else {
556
556
  const h = i.length;
557
557
  if (r < h)
558
- i.splice(r, 0, a);
558
+ i.splice(r, 0, o);
559
559
  else {
560
560
  if (r > h)
561
561
  throw new Error("INVALID_INDEX");
562
- i.push(a);
562
+ i.push(o);
563
563
  }
564
564
  }
565
565
  return { doc: t, old: e };
@@ -578,7 +578,7 @@ class It extends J {
578
578
  t.encodeArrayHeader(3), t.writer.u8(0), t.encodeArray(this.path), t.encodeAny(this.value);
579
579
  }
580
580
  }
581
- class fe extends J {
581
+ class fe extends U {
582
582
  constructor(t, e) {
583
583
  super(t);
584
584
  f(this, "oldValue");
@@ -591,7 +591,7 @@ class fe extends J {
591
591
  return 1;
592
592
  }
593
593
  apply(t) {
594
- const e = j(t, this.path);
594
+ const e = O(t, this.path);
595
595
  if (e.val === void 0)
596
596
  throw new Error("NOT_FOUND");
597
597
  return kt(e) ? delete e.obj[e.key] : yt(e) ? e.val !== void 0 && e.obj.splice(e.key, 1) : t = null, { doc: t, old: e.val };
@@ -612,7 +612,7 @@ class fe extends J {
612
612
  t.encodeArrayHeader(r ? 3 : 2), t.writer.u8(1), t.encodeArray(this.path), r && t.encodeAny(this.oldValue);
613
613
  }
614
614
  }
615
- class fs extends J {
615
+ class fs extends U {
616
616
  constructor(t, e, r) {
617
617
  super(t);
618
618
  f(this, "value");
@@ -626,7 +626,7 @@ class fs extends J {
626
626
  return 2;
627
627
  }
628
628
  apply(t) {
629
- const e = j(t, this.path);
629
+ const e = O(t, this.path);
630
630
  if (e.val === void 0)
631
631
  throw new Error("NOT_FOUND");
632
632
  return kt(e) ? e.obj[e.key] = this.value : yt(e) ? e.obj[e.key] = this.value : t = this.value, { doc: t, old: e.val };
@@ -648,7 +648,7 @@ class fs extends J {
648
648
  t.encodeArrayHeader(r ? 4 : 3), t.writer.u8(2), t.encodeArray(this.path), t.encodeAny(this.value), r && t.encodeAny(this.oldValue);
649
649
  }
650
650
  }
651
- class ds extends J {
651
+ class ds extends U {
652
652
  constructor(t, e) {
653
653
  super(t);
654
654
  f(this, "from");
@@ -662,7 +662,7 @@ class ds extends J {
662
662
  }
663
663
  apply(t) {
664
664
  const e = new fe(w(this.from), void 0).apply(t);
665
- return new It(this.path, e.old).apply(e.doc);
665
+ return new Pt(this.path, e.old).apply(e.doc);
666
666
  }
667
667
  toJson(t) {
668
668
  return {
@@ -678,7 +678,7 @@ class ds extends J {
678
678
  t.encodeArrayHeader(3), t.writer.u8(4), t.encodeArray(this.path), t.encodeArray(this.from);
679
679
  }
680
680
  }
681
- class gs extends J {
681
+ class gs extends U {
682
682
  constructor(t, e) {
683
683
  super(t);
684
684
  f(this, "from");
@@ -691,10 +691,10 @@ class gs extends J {
691
691
  return 3;
692
692
  }
693
693
  apply(t) {
694
- const { val: e } = j(t, this.from);
694
+ const { val: e } = O(t, this.from);
695
695
  if (e === void 0)
696
696
  throw new Error("NOT_FOUND");
697
- return new It(this.path, dt(e)).apply(t);
697
+ return new Pt(this.path, dt(e)).apply(t);
698
698
  }
699
699
  toJson(t) {
700
700
  return {
@@ -710,7 +710,7 @@ class gs extends J {
710
710
  t.encodeArrayHeader(3), t.writer.u8(3), t.encodeArray(this.path), t.encodeArray(this.from);
711
711
  }
712
712
  }
713
- class I extends J {
713
+ class I extends U {
714
714
  apply(n) {
715
715
  if (!this.test(n))
716
716
  throw new Error("TEST");
@@ -757,7 +757,7 @@ class vs extends I {
757
757
  return 5;
758
758
  }
759
759
  test(t) {
760
- const { val: e } = j(t, this.path);
760
+ const { val: e } = O(t, this.path);
761
761
  if (e === void 0)
762
762
  return !!this.not;
763
763
  const r = Et(e, this.value);
@@ -779,7 +779,7 @@ class vs extends I {
779
779
  t.encodeArrayHeader(this.not ? 4 : 3), t.writer.u8(5), t.encodeArray(e ? this.path.slice(e.path.length) : this.path), t.encodeAny(this.value), this.not && t.writer.u8(1);
780
780
  }
781
781
  }
782
- class ys extends J {
782
+ class ys extends U {
783
783
  constructor(n) {
784
784
  super(n);
785
785
  }
@@ -790,7 +790,7 @@ class ys extends J {
790
790
  return 8;
791
791
  }
792
792
  apply(n) {
793
- const t = j(n, this.path);
793
+ const t = O(n, this.path);
794
794
  return t.obj ? t.obj[t.key] = !t.val : n = !t.val, { doc: n, old: t.val };
795
795
  }
796
796
  toJson(n) {
@@ -806,7 +806,7 @@ class ys extends J {
806
806
  n.encodeArrayHeader(2), n.writer.u8(8), n.encodeArray(this.path);
807
807
  }
808
808
  }
809
- class ms extends J {
809
+ class ms extends U {
810
810
  constructor(t, e) {
811
811
  super(t);
812
812
  f(this, "inc");
@@ -819,7 +819,7 @@ class ms extends J {
819
819
  return 9;
820
820
  }
821
821
  apply(t) {
822
- const e = j(t, this.path), r = this.inc + Number(e.val);
822
+ const e = O(t, this.path), r = this.inc + Number(e.val);
823
823
  return e.obj ? e.obj[e.key] = r : t = r, { doc: t, old: e.val };
824
824
  }
825
825
  toJson(t) {
@@ -836,7 +836,7 @@ class ms extends J {
836
836
  t.encodeArrayHeader(3), t.writer.u8(9), t.encodeArray(this.path), t.encodeNumber(this.inc);
837
837
  }
838
838
  }
839
- class ws extends J {
839
+ class ws extends U {
840
840
  constructor(t, e, r) {
841
841
  super(t);
842
842
  f(this, "pos");
@@ -850,15 +850,15 @@ class ws extends J {
850
850
  return 6;
851
851
  }
852
852
  apply(t) {
853
- const { val: e, key: r, obj: i } = j(t, this.path);
853
+ const { val: e, key: r, obj: i } = O(t, this.path);
854
854
  if (typeof e != "string") {
855
855
  if (e !== void 0)
856
856
  throw new Error("NOT_A_STRING");
857
857
  if (this.pos !== 0)
858
858
  throw new Error("POS");
859
859
  }
860
- const a = typeof e == "string" ? e : "", h = Math.min(this.pos, a.length), l = a.slice(0, h), d = a.slice(h), _ = l + this.str + d;
861
- return i ? i[r] = _ : t = _, { doc: t, old: e };
860
+ const o = typeof e == "string" ? e : "", h = Math.min(this.pos, o.length), p = o.slice(0, h), d = o.slice(h), b = p + this.str + d;
861
+ return i ? i[r] = b : t = b, { doc: t, old: e };
862
862
  }
863
863
  toJson(t) {
864
864
  return {
@@ -875,7 +875,7 @@ class ws extends J {
875
875
  t.encodeArrayHeader(4), t.writer.u8(6), t.encodeArray(this.path), t.encodeNumber(this.pos), t.encodeString(this.str);
876
876
  }
877
877
  }
878
- class _s extends J {
878
+ class _s extends U {
879
879
  constructor(t, e, r, i) {
880
880
  super(t);
881
881
  f(this, "pos");
@@ -893,11 +893,11 @@ class _s extends J {
893
893
  return typeof this.str == "string" ? this.str.length : this.len;
894
894
  }
895
895
  apply(t) {
896
- const { val: e, key: r, obj: i } = j(t, this.path);
896
+ const { val: e, key: r, obj: i } = O(t, this.path);
897
897
  if (typeof e != "string")
898
898
  throw new Error("NOT_A_STRING");
899
- const a = e.length, h = Math.min(this.pos, e.length), l = Math.min(h, a), d = this.str !== void 0 ? this.str.length : this.len, _ = Math.min(h + d, a), b = e.slice(0, l), T = e.substr(_), O = b + T;
900
- return i ? i[r] = O : t = O, { doc: t, old: e };
899
+ const o = e.length, h = Math.min(this.pos, e.length), p = Math.min(h, o), d = this.str !== void 0 ? this.str.length : this.len, b = Math.min(h + d, o), _ = e.slice(0, p), A = e.substr(b), T = _ + A;
900
+ return i ? i[r] = T : t = T, { doc: t, old: e };
901
901
  }
902
902
  toJson(t) {
903
903
  return typeof this.str == "string" ? {
@@ -921,11 +921,11 @@ class _s extends J {
921
921
  t.encodeArrayHeader(r ? 4 : 5), t.writer.u8(7), t.encodeArray(this.path), t.encodeNumber(this.pos), r ? t.encodeString(this.str) : (t.writer.u8(0), t.encodeNumber(this.len));
922
922
  }
923
923
  }
924
- const { isArray: bs } = Array, Rt = (s) => !!s && typeof s == "object" && typeof s.text == "string", Ht = (s) => !!s && typeof s == "object" && bs(s.children), Es = (s, n) => {
924
+ const { isArray: bs } = Array, Nt = (s) => !!s && typeof s == "object" && typeof s.text == "string", Rt = (s) => !!s && typeof s == "object" && bs(s.children), Es = (s, n) => {
925
925
  const t = new RegExp(s, n ? "i" : void 0);
926
926
  return (e) => t.test(e);
927
927
  };
928
- class $s extends J {
928
+ class $s extends U {
929
929
  constructor(t, e, r) {
930
930
  super(t);
931
931
  f(this, "pos");
@@ -939,7 +939,7 @@ class $s extends J {
939
939
  return 10;
940
940
  }
941
941
  apply(t) {
942
- const e = j(t, this.path);
942
+ const e = O(t, this.path);
943
943
  if (e.val === void 0)
944
944
  throw new Error("NOT_FOUND");
945
945
  const r = this.split(e.val);
@@ -947,7 +947,7 @@ class $s extends J {
947
947
  }
948
948
  split(t) {
949
949
  if (typeof t == "string") {
950
- const { pos: e, props: r } = this, i = t.slice(0, e), a = t.slice(e);
950
+ const { pos: e, props: r } = this, i = t.slice(0, e), o = t.slice(e);
951
951
  return r ? [
952
952
  {
953
953
  ...r,
@@ -955,11 +955,11 @@ class $s extends J {
955
955
  },
956
956
  {
957
957
  ...r,
958
- text: a
958
+ text: o
959
959
  }
960
- ] : [i, a];
961
- } else if (Rt(t)) {
962
- const { pos: e, props: r } = this, i = t.text.slice(0, e), a = t.text.slice(e);
960
+ ] : [i, o];
961
+ } else if (Nt(t)) {
962
+ const { pos: e, props: r } = this, i = t.text.slice(0, e), o = t.text.slice(e);
963
963
  return [
964
964
  {
965
965
  ...t,
@@ -969,11 +969,11 @@ class $s extends J {
969
969
  {
970
970
  ...t,
971
971
  ...r,
972
- text: a
972
+ text: o
973
973
  }
974
974
  ];
975
- } else if (Ht(t)) {
976
- const { pos: e, props: r } = this, i = t.children.slice(0, e), a = t.children.slice(e);
975
+ } else if (Rt(t)) {
976
+ const { pos: e, props: r } = this, i = t.children.slice(0, e), o = t.children.slice(e);
977
977
  return [
978
978
  {
979
979
  ...t,
@@ -983,7 +983,7 @@ class $s extends J {
983
983
  {
984
984
  ...t,
985
985
  ...r,
986
- children: a
986
+ children: o
987
987
  }
988
988
  ];
989
989
  } else if (typeof t == "number") {
@@ -1008,7 +1008,7 @@ class $s extends J {
1008
1008
  t.encodeArrayHeader(this.props ? 4 : 3), t.writer.u8(10), t.encodeArray(this.path), t.encodeNumber(this.pos), this.props && t.encodeObject(this.props);
1009
1009
  }
1010
1010
  }
1011
- class Cs extends J {
1011
+ class Cs extends U {
1012
1012
  constructor(t, e, r) {
1013
1013
  super(t);
1014
1014
  f(this, "pos");
@@ -1022,16 +1022,16 @@ class Cs extends J {
1022
1022
  return 11;
1023
1023
  }
1024
1024
  apply(t) {
1025
- const e = j(t, this.path);
1025
+ const e = O(t, this.path);
1026
1026
  if (!yt(e))
1027
1027
  throw new Error("INVALID_TARGET");
1028
1028
  if (e.key <= 0)
1029
1029
  throw new Error("INVALID_KEY");
1030
- const r = e.obj[e.key - 1], i = e.obj[e.key], a = this.merge(r, i);
1031
- return e.obj[e.key - 1] = a, e.obj.splice(e.key, 1), { doc: t, old: [r, i] };
1030
+ const r = e.obj[e.key - 1], i = e.obj[e.key], o = this.merge(r, i);
1031
+ return e.obj[e.key - 1] = o, e.obj.splice(e.key, 1), { doc: t, old: [r, i] };
1032
1032
  }
1033
1033
  merge(t, e) {
1034
- return typeof t == "string" && typeof e == "string" || typeof t == "number" && typeof e == "number" ? t + e : Rt(t) && Rt(e) ? { ...t, ...e, text: t.text + e.text } : Ht(t) && Ht(e) ? { ...t, ...e, children: [...t.children, ...e.children] } : [t, e];
1034
+ return typeof t == "string" && typeof e == "string" || typeof t == "number" && typeof e == "number" ? t + e : Nt(t) && Nt(e) ? { ...t, ...e, text: t.text + e.text } : Rt(t) && Rt(e) ? { ...t, ...e, children: [...t.children, ...e.children] } : [t, e];
1035
1035
  }
1036
1036
  toJson(t) {
1037
1037
  const e = {
@@ -1050,7 +1050,7 @@ class Cs extends J {
1050
1050
  }
1051
1051
  }
1052
1052
  const { isArray: ks } = Array;
1053
- class As extends J {
1053
+ class As extends U {
1054
1054
  constructor(t, e, r) {
1055
1055
  super(t);
1056
1056
  f(this, "props");
@@ -1064,7 +1064,7 @@ class As extends J {
1064
1064
  return 12;
1065
1065
  }
1066
1066
  apply(t) {
1067
- const e = j(t, this.path);
1067
+ const e = O(t, this.path);
1068
1068
  return yt(e) ? e.val !== void 0 && (e.obj[e.key] = this.extend(e.val)) : kt(e) ? e.obj[e.key] = this.extend(e.val) : t = this.extend(t), { doc: t };
1069
1069
  }
1070
1070
  extend(t) {
@@ -1109,7 +1109,7 @@ class Ts extends I {
1109
1109
  return 31;
1110
1110
  }
1111
1111
  test(n) {
1112
- const { val: t } = j(n, this.path);
1112
+ const { val: t } = O(n, this.path);
1113
1113
  return t !== void 0;
1114
1114
  }
1115
1115
  toJson(n) {
@@ -1137,7 +1137,7 @@ class Os extends I {
1137
1137
  }
1138
1138
  test(n) {
1139
1139
  try {
1140
- const { val: t } = j(n, this.path);
1140
+ const { val: t } = O(n, this.path);
1141
1141
  return t === void 0;
1142
1142
  } catch (t) {
1143
1143
  if (t.message === "NOT_FOUND")
@@ -1172,7 +1172,7 @@ class xs extends I {
1172
1172
  return 39;
1173
1173
  }
1174
1174
  test(t) {
1175
- const { val: e } = j(t, this.path);
1175
+ const { val: e } = O(t, this.path);
1176
1176
  return e === null ? this.type.indexOf("null") > -1 : js(e) ? this.type.indexOf("array") > -1 : this.type.indexOf(typeof e) > -1 || typeof e == "number" && e === Math.round(e) && this.type.indexOf("integer") > -1;
1177
1177
  }
1178
1178
  toJson(t) {
@@ -1204,10 +1204,10 @@ class Ss extends I {
1204
1204
  return 40;
1205
1205
  }
1206
1206
  test(t) {
1207
- const { val: e } = j(t, this.path);
1207
+ const { val: e } = O(t, this.path);
1208
1208
  if (typeof e != "string")
1209
1209
  return !1;
1210
- const r = e.length, i = Math.min(this.pos, r), a = Math.min(this.pos + this.str.length, r), h = e.substring(i, a) === this.str;
1210
+ const r = e.length, i = Math.min(this.pos, r), o = Math.min(this.pos + this.str.length, r), h = e.substring(i, o) === this.str;
1211
1211
  return this.not ? !h : h;
1212
1212
  }
1213
1213
  toJson(t) {
@@ -1241,7 +1241,7 @@ class Ms extends I {
1241
1241
  return 41;
1242
1242
  }
1243
1243
  test(t) {
1244
- const { val: e } = j(t, this.path);
1244
+ const { val: e } = O(t, this.path);
1245
1245
  if (typeof e != "string")
1246
1246
  return !1;
1247
1247
  const i = e.length >= this.len;
@@ -1277,7 +1277,7 @@ class Ls extends I {
1277
1277
  return 30;
1278
1278
  }
1279
1279
  test(t) {
1280
- const { val: e } = j(t, this.path);
1280
+ const { val: e } = O(t, this.path);
1281
1281
  if (typeof e != "string")
1282
1282
  return !1;
1283
1283
  const r = this.ignore_case ? e.toLowerCase() : e, i = this.ignore_case ? this.value.toLowerCase() : this.value;
@@ -1314,7 +1314,7 @@ class Ns extends I {
1314
1314
  return 32;
1315
1315
  }
1316
1316
  test(t) {
1317
- const { val: e } = j(t, this.path);
1317
+ const { val: e } = O(t, this.path);
1318
1318
  if (typeof e != "string")
1319
1319
  return !1;
1320
1320
  const r = this.ignore_case ? e.toLowerCase() : e, i = this.ignore_case ? this.value.toLowerCase() : this.value;
@@ -1351,7 +1351,7 @@ class Rs extends I {
1351
1351
  return 37;
1352
1352
  }
1353
1353
  test(t) {
1354
- const { val: e } = j(t, this.path);
1354
+ const { val: e } = O(t, this.path);
1355
1355
  if (typeof e != "string")
1356
1356
  return !1;
1357
1357
  const r = this.ignore_case ? e.toLowerCase() : e, i = this.ignore_case ? this.value.toLowerCase() : this.value;
@@ -1387,7 +1387,7 @@ class Hs extends I {
1387
1387
  return 33;
1388
1388
  }
1389
1389
  test(t) {
1390
- const { val: e } = j(t, this.path);
1390
+ const { val: e } = O(t, this.path);
1391
1391
  for (const r of this.value)
1392
1392
  if (Et(e, r))
1393
1393
  return !0;
@@ -1420,7 +1420,7 @@ class Ps extends I {
1420
1420
  return 34;
1421
1421
  }
1422
1422
  test(t) {
1423
- const { val: e } = j(t, this.path);
1423
+ const { val: e } = O(t, this.path);
1424
1424
  return typeof e != "number" ? !1 : e < this.value;
1425
1425
  }
1426
1426
  toJson(t) {
@@ -1450,7 +1450,7 @@ class Is extends I {
1450
1450
  return 36;
1451
1451
  }
1452
1452
  test(t) {
1453
- const { val: e } = j(t, this.path);
1453
+ const { val: e } = O(t, this.path);
1454
1454
  return typeof e != "number" ? !1 : e > this.value;
1455
1455
  }
1456
1456
  toJson(t) {
@@ -1467,14 +1467,14 @@ class Is extends I {
1467
1467
  t.encodeArrayHeader(3), t.writer.u8(36), t.encodeArray(e ? this.path.slice(e.path.length) : this.path), t.encodeNumber(this.value);
1468
1468
  }
1469
1469
  }
1470
- class Dt extends I {
1470
+ class It extends I {
1471
1471
  constructor(t, e) {
1472
1472
  super(t);
1473
1473
  f(this, "ops");
1474
1474
  this.ops = e;
1475
1475
  }
1476
1476
  }
1477
- class Ds extends Dt {
1477
+ class Ds extends It {
1478
1478
  constructor(t, e) {
1479
1479
  super(t, e);
1480
1480
  f(this, "ops");
@@ -1511,11 +1511,11 @@ class Ds extends Dt {
1511
1511
  t.encodeArrayHeader(3), t.writer.u8(43), t.encodeArray(r);
1512
1512
  const i = this.ops.length;
1513
1513
  t.encodeArrayHeader(i);
1514
- for (let a = 0; a < i; a++)
1515
- this.ops[a].encode(t, this);
1514
+ for (let o = 0; o < i; o++)
1515
+ this.ops[o].encode(t, this);
1516
1516
  }
1517
1517
  }
1518
- class Us extends Dt {
1518
+ class Us extends It {
1519
1519
  constructor(t, e) {
1520
1520
  super(t, e);
1521
1521
  f(this, "ops");
@@ -1555,7 +1555,7 @@ class Us extends Dt {
1555
1555
  this.ops[i].encode(t, this);
1556
1556
  }
1557
1557
  }
1558
- class Js extends Dt {
1558
+ class Js extends It {
1559
1559
  constructor(t, e) {
1560
1560
  super(t, e);
1561
1561
  f(this, "ops");
@@ -1610,7 +1610,7 @@ class Vs extends I {
1610
1610
  return 35;
1611
1611
  }
1612
1612
  test(t) {
1613
- const { val: e } = j(t, this.path);
1613
+ const { val: e } = O(t, this.path);
1614
1614
  return typeof e != "string" ? !1 : this.matcher(e);
1615
1615
  }
1616
1616
  toJson(t) {
@@ -1644,7 +1644,7 @@ class zs extends I {
1644
1644
  return 42;
1645
1645
  }
1646
1646
  test(t) {
1647
- const { val: e } = j(t, this.path);
1647
+ const { val: e } = O(t, this.path);
1648
1648
  return e === null ? this.value === "null" : Bs(e) ? this.value === "array" : typeof e === this.value || typeof e == "number" && e === Math.round(e) && this.value === "integer";
1649
1649
  }
1650
1650
  toJson(t) {
@@ -1664,7 +1664,7 @@ class zs extends I {
1664
1664
  const Fs = (s, n) => {
1665
1665
  switch (s.op) {
1666
1666
  case "add":
1667
- return new It(w(s.path), s.value);
1667
+ return new Pt(w(s.path), s.value);
1668
1668
  case "remove":
1669
1669
  return new fe(w(s.path), s.oldValue);
1670
1670
  case "replace":
@@ -1747,19 +1747,19 @@ function Ws(s, n, t) {
1747
1747
  }
1748
1748
  var lt = (s) => typeof s == "function" ? s : function() {
1749
1749
  return s;
1750
- }, Gs = typeof self < "u" ? self : null, at = typeof window < "u" ? window : null, ut = Gs || at || ut, Xs = "2.0.0", B = { connecting: 0, open: 1, closing: 2, closed: 3 }, qs = 1e4, Ys = 1e3, U = {
1750
+ }, Gs = typeof self < "u" ? self : null, at = typeof window < "u" ? window : null, ut = Gs || at || ut, Xs = "2.0.0", B = { connecting: 0, open: 1, closing: 2, closed: 3 }, qs = 1e4, Ys = 1e3, D = {
1751
1751
  closed: "closed",
1752
1752
  errored: "errored",
1753
1753
  joined: "joined",
1754
1754
  joining: "joining",
1755
1755
  leaving: "leaving"
1756
- }, W = {
1756
+ }, G = {
1757
1757
  close: "phx_close",
1758
1758
  error: "phx_error",
1759
1759
  join: "phx_join",
1760
1760
  reply: "phx_reply",
1761
1761
  leave: "phx_leave"
1762
- }, Pt = {
1762
+ }, Ht = {
1763
1763
  longpoll: "longpoll",
1764
1764
  websocket: "websocket"
1765
1765
  }, Zs = {
@@ -1824,21 +1824,21 @@ var lt = (s) => typeof s == "function" ? s : function() {
1824
1824
  }
1825
1825
  }, Qs = class {
1826
1826
  constructor(s, n, t) {
1827
- this.state = U.closed, this.topic = s, this.params = lt(n || {}), this.socket = t, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new mt(this, W.join, this.params, this.timeout), this.pushBuffer = [], this.stateChangeRefs = [], this.rejoinTimer = new de(() => {
1827
+ this.state = D.closed, this.topic = s, this.params = lt(n || {}), this.socket = t, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new mt(this, G.join, this.params, this.timeout), this.pushBuffer = [], this.stateChangeRefs = [], this.rejoinTimer = new de(() => {
1828
1828
  this.socket.isConnected() && this.rejoin();
1829
1829
  }, this.socket.rejoinAfterMs), this.stateChangeRefs.push(this.socket.onError(() => this.rejoinTimer.reset())), this.stateChangeRefs.push(this.socket.onOpen(() => {
1830
1830
  this.rejoinTimer.reset(), this.isErrored() && this.rejoin();
1831
1831
  })), this.joinPush.receive("ok", () => {
1832
- this.state = U.joined, this.rejoinTimer.reset(), this.pushBuffer.forEach((e) => e.send()), this.pushBuffer = [];
1832
+ this.state = D.joined, this.rejoinTimer.reset(), this.pushBuffer.forEach((e) => e.send()), this.pushBuffer = [];
1833
1833
  }), this.joinPush.receive("error", () => {
1834
- this.state = U.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1834
+ this.state = D.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1835
1835
  }), this.onClose(() => {
1836
- this.rejoinTimer.reset(), this.socket.hasLogger() && this.socket.log("channel", `close ${this.topic} ${this.joinRef()}`), this.state = U.closed, this.socket.remove(this);
1836
+ this.rejoinTimer.reset(), this.socket.hasLogger() && this.socket.log("channel", `close ${this.topic} ${this.joinRef()}`), this.state = D.closed, this.socket.remove(this);
1837
1837
  }), this.onError((e) => {
1838
- this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, e), this.isJoining() && this.joinPush.reset(), this.state = U.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1838
+ this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, e), this.isJoining() && this.joinPush.reset(), this.state = D.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1839
1839
  }), this.joinPush.receive("timeout", () => {
1840
- this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new mt(this, W.leave, lt({}), this.timeout).send(), this.state = U.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1841
- }), this.on(W.reply, (e, r) => {
1840
+ this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new mt(this, G.leave, lt({}), this.timeout).send(), this.state = D.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
1841
+ }), this.on(G.reply, (e, r) => {
1842
1842
  this.trigger(this.replyEventName(r), e);
1843
1843
  });
1844
1844
  }
@@ -1848,10 +1848,10 @@ var lt = (s) => typeof s == "function" ? s : function() {
1848
1848
  return this.timeout = s, this.joinedOnce = !0, this.rejoin(), this.joinPush;
1849
1849
  }
1850
1850
  onClose(s) {
1851
- this.on(W.close, s);
1851
+ this.on(G.close, s);
1852
1852
  }
1853
1853
  onError(s) {
1854
- return this.on(W.error, (n) => s(n));
1854
+ return this.on(G.error, (n) => s(n));
1855
1855
  }
1856
1856
  on(s, n) {
1857
1857
  let t = this.bindingRef++;
@@ -1872,10 +1872,10 @@ var lt = (s) => typeof s == "function" ? s : function() {
1872
1872
  return this.canPush() ? e.send() : (e.startTimeout(), this.pushBuffer.push(e)), e;
1873
1873
  }
1874
1874
  leave(s = this.timeout) {
1875
- this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = U.leaving;
1875
+ this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = D.leaving;
1876
1876
  let n = () => {
1877
- this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(W.close, "leave");
1878
- }, t = new mt(this, W.leave, lt({}), s);
1877
+ this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(G.close, "leave");
1878
+ }, t = new mt(this, G.leave, lt({}), s);
1879
1879
  return t.receive("ok", () => n()).receive("timeout", () => n()), t.send(), this.canPush() || t.trigger("ok", {}), t;
1880
1880
  }
1881
1881
  onMessage(s, n, t) {
@@ -1888,58 +1888,58 @@ var lt = (s) => typeof s == "function" ? s : function() {
1888
1888
  return this.joinPush.ref;
1889
1889
  }
1890
1890
  rejoin(s = this.timeout) {
1891
- this.isLeaving() || (this.socket.leaveOpenTopic(this.topic), this.state = U.joining, this.joinPush.resend(s));
1891
+ this.isLeaving() || (this.socket.leaveOpenTopic(this.topic), this.state = D.joining, this.joinPush.resend(s));
1892
1892
  }
1893
1893
  trigger(s, n, t, e) {
1894
1894
  let r = this.onMessage(s, n, t, e);
1895
1895
  if (n && !r)
1896
1896
  throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");
1897
- let i = this.bindings.filter((a) => a.event === s);
1898
- for (let a = 0; a < i.length; a++)
1899
- i[a].callback(r, t, e || this.joinRef());
1897
+ let i = this.bindings.filter((o) => o.event === s);
1898
+ for (let o = 0; o < i.length; o++)
1899
+ i[o].callback(r, t, e || this.joinRef());
1900
1900
  }
1901
1901
  replyEventName(s) {
1902
1902
  return `chan_reply_${s}`;
1903
1903
  }
1904
1904
  isClosed() {
1905
- return this.state === U.closed;
1905
+ return this.state === D.closed;
1906
1906
  }
1907
1907
  isErrored() {
1908
- return this.state === U.errored;
1908
+ return this.state === D.errored;
1909
1909
  }
1910
1910
  isJoined() {
1911
- return this.state === U.joined;
1911
+ return this.state === D.joined;
1912
1912
  }
1913
1913
  isJoining() {
1914
- return this.state === U.joining;
1914
+ return this.state === D.joining;
1915
1915
  }
1916
1916
  isLeaving() {
1917
- return this.state === U.leaving;
1917
+ return this.state === D.leaving;
1918
1918
  }
1919
1919
  }, $t = class {
1920
- static request(s, n, t, e, r, i, a) {
1920
+ static request(s, n, t, e, r, i, o) {
1921
1921
  if (ut.XDomainRequest) {
1922
1922
  let h = new ut.XDomainRequest();
1923
- return this.xdomainRequest(h, s, n, e, r, i, a);
1923
+ return this.xdomainRequest(h, s, n, e, r, i, o);
1924
1924
  } else {
1925
1925
  let h = new ut.XMLHttpRequest();
1926
- return this.xhrRequest(h, s, n, t, e, r, i, a);
1926
+ return this.xhrRequest(h, s, n, t, e, r, i, o);
1927
1927
  }
1928
1928
  }
1929
- static xdomainRequest(s, n, t, e, r, i, a) {
1929
+ static xdomainRequest(s, n, t, e, r, i, o) {
1930
1930
  return s.timeout = r, s.open(n, t), s.onload = () => {
1931
1931
  let h = this.parseJSON(s.responseText);
1932
- a && a(h);
1932
+ o && o(h);
1933
1933
  }, i && (s.ontimeout = i), s.onprogress = () => {
1934
1934
  }, s.send(e), s;
1935
1935
  }
1936
- static xhrRequest(s, n, t, e, r, i, a, h) {
1936
+ static xhrRequest(s, n, t, e, r, i, o, h) {
1937
1937
  return s.open(n, t, !0), s.timeout = i, s.setRequestHeader("Content-Type", e), s.onerror = () => h && h(null), s.onreadystatechange = () => {
1938
1938
  if (s.readyState === Zs.complete && h) {
1939
- let l = this.parseJSON(s.responseText);
1940
- h(l);
1939
+ let p = this.parseJSON(s.responseText);
1940
+ h(p);
1941
1941
  }
1942
- }, a && (s.ontimeout = a), s.send(r), s;
1942
+ }, o && (s.ontimeout = o), s.send(r), s;
1943
1943
  }
1944
1944
  static parseJSON(s) {
1945
1945
  if (!s || s === "")
@@ -1975,7 +1975,7 @@ var lt = (s) => typeof s == "function" ? s : function() {
1975
1975
  }, this.pollEndpoint = this.normalizeEndpoint(s), this.readyState = B.connecting, this.poll();
1976
1976
  }
1977
1977
  normalizeEndpoint(s) {
1978
- return s.replace("ws://", "http://").replace("wss://", "https://").replace(new RegExp("(.*)/" + Pt.websocket), "$1/" + Pt.longpoll);
1978
+ return s.replace("ws://", "http://").replace("wss://", "https://").replace(new RegExp("(.*)/" + Ht.websocket), "$1/" + Ht.longpoll);
1979
1979
  }
1980
1980
  endpointURL() {
1981
1981
  return $t.appendParams(this.pollEndpoint, { token: this.token });
@@ -2036,8 +2036,8 @@ var lt = (s) => typeof s == "function" ? s : function() {
2036
2036
  let r, i = () => {
2037
2037
  this.reqs.delete(r), t();
2038
2038
  };
2039
- r = $t.request(s, this.endpointURL(), "application/json", n, this.timeout, i, (a) => {
2040
- this.reqs.delete(r), this.isActive() && e(a);
2039
+ r = $t.request(s, this.endpointURL(), "application/json", n, this.timeout, i, (o) => {
2040
+ this.reqs.delete(r), this.isActive() && e(o);
2041
2041
  }), this.reqs.add(r);
2042
2042
  }
2043
2043
  }, wt = {
@@ -2056,15 +2056,15 @@ var lt = (s) => typeof s == "function" ? s : function() {
2056
2056
  if (s.constructor === ArrayBuffer)
2057
2057
  return n(this.binaryDecode(s));
2058
2058
  {
2059
- let [t, e, r, i, a] = JSON.parse(s);
2060
- return n({ join_ref: t, ref: e, topic: r, event: i, payload: a });
2059
+ let [t, e, r, i, o] = JSON.parse(s);
2060
+ return n({ join_ref: t, ref: e, topic: r, event: i, payload: o });
2061
2061
  }
2062
2062
  },
2063
2063
  binaryEncode(s) {
2064
- let { join_ref: n, ref: t, event: e, topic: r, payload: i } = s, a = this.META_LENGTH + n.length + t.length + r.length + e.length, h = new ArrayBuffer(this.HEADER_LENGTH + a), l = new DataView(h), d = 0;
2065
- l.setUint8(d++, this.KINDS.push), l.setUint8(d++, n.length), l.setUint8(d++, t.length), l.setUint8(d++, r.length), l.setUint8(d++, e.length), Array.from(n, (b) => l.setUint8(d++, b.charCodeAt(0))), Array.from(t, (b) => l.setUint8(d++, b.charCodeAt(0))), Array.from(r, (b) => l.setUint8(d++, b.charCodeAt(0))), Array.from(e, (b) => l.setUint8(d++, b.charCodeAt(0)));
2066
- var _ = new Uint8Array(h.byteLength + i.byteLength);
2067
- return _.set(new Uint8Array(h), 0), _.set(new Uint8Array(i), h.byteLength), _.buffer;
2064
+ let { join_ref: n, ref: t, event: e, topic: r, payload: i } = s, o = this.META_LENGTH + n.length + t.length + r.length + e.length, h = new ArrayBuffer(this.HEADER_LENGTH + o), p = new DataView(h), d = 0;
2065
+ p.setUint8(d++, this.KINDS.push), p.setUint8(d++, n.length), p.setUint8(d++, t.length), p.setUint8(d++, r.length), p.setUint8(d++, e.length), Array.from(n, (_) => p.setUint8(d++, _.charCodeAt(0))), Array.from(t, (_) => p.setUint8(d++, _.charCodeAt(0))), Array.from(r, (_) => p.setUint8(d++, _.charCodeAt(0))), Array.from(e, (_) => p.setUint8(d++, _.charCodeAt(0)));
2066
+ var b = new Uint8Array(h.byteLength + i.byteLength);
2067
+ return b.set(new Uint8Array(h), 0), b.set(new Uint8Array(i), h.byteLength), b.buffer;
2068
2068
  },
2069
2069
  binaryDecode(s) {
2070
2070
  let n = new DataView(s), t = n.getUint8(0), e = new TextDecoder();
@@ -2078,34 +2078,34 @@ var lt = (s) => typeof s == "function" ? s : function() {
2078
2078
  }
2079
2079
  },
2080
2080
  decodePush(s, n, t) {
2081
- let e = n.getUint8(1), r = n.getUint8(2), i = n.getUint8(3), a = this.HEADER_LENGTH + this.META_LENGTH - 1, h = t.decode(s.slice(a, a + e));
2082
- a = a + e;
2083
- let l = t.decode(s.slice(a, a + r));
2084
- a = a + r;
2085
- let d = t.decode(s.slice(a, a + i));
2086
- a = a + i;
2087
- let _ = s.slice(a, s.byteLength);
2088
- return { join_ref: h, ref: null, topic: l, event: d, payload: _ };
2081
+ let e = n.getUint8(1), r = n.getUint8(2), i = n.getUint8(3), o = this.HEADER_LENGTH + this.META_LENGTH - 1, h = t.decode(s.slice(o, o + e));
2082
+ o = o + e;
2083
+ let p = t.decode(s.slice(o, o + r));
2084
+ o = o + r;
2085
+ let d = t.decode(s.slice(o, o + i));
2086
+ o = o + i;
2087
+ let b = s.slice(o, s.byteLength);
2088
+ return { join_ref: h, ref: null, topic: p, event: d, payload: b };
2089
2089
  },
2090
2090
  decodeReply(s, n, t) {
2091
- let e = n.getUint8(1), r = n.getUint8(2), i = n.getUint8(3), a = n.getUint8(4), h = this.HEADER_LENGTH + this.META_LENGTH, l = t.decode(s.slice(h, h + e));
2091
+ let e = n.getUint8(1), r = n.getUint8(2), i = n.getUint8(3), o = n.getUint8(4), h = this.HEADER_LENGTH + this.META_LENGTH, p = t.decode(s.slice(h, h + e));
2092
2092
  h = h + e;
2093
2093
  let d = t.decode(s.slice(h, h + r));
2094
2094
  h = h + r;
2095
- let _ = t.decode(s.slice(h, h + i));
2095
+ let b = t.decode(s.slice(h, h + i));
2096
2096
  h = h + i;
2097
- let b = t.decode(s.slice(h, h + a));
2098
- h = h + a;
2099
- let T = s.slice(h, s.byteLength), O = { status: b, response: T };
2100
- return { join_ref: l, ref: d, topic: _, event: W.reply, payload: O };
2097
+ let _ = t.decode(s.slice(h, h + o));
2098
+ h = h + o;
2099
+ let A = s.slice(h, s.byteLength), T = { status: _, response: A };
2100
+ return { join_ref: p, ref: d, topic: b, event: G.reply, payload: T };
2101
2101
  },
2102
2102
  decodeBroadcast(s, n, t) {
2103
- let e = n.getUint8(1), r = n.getUint8(2), i = this.HEADER_LENGTH + 2, a = t.decode(s.slice(i, i + e));
2103
+ let e = n.getUint8(1), r = n.getUint8(2), i = this.HEADER_LENGTH + 2, o = t.decode(s.slice(i, i + e));
2104
2104
  i = i + e;
2105
2105
  let h = t.decode(s.slice(i, i + r));
2106
2106
  i = i + r;
2107
- let l = s.slice(i, s.byteLength);
2108
- return { join_ref: null, ref: null, topic: a, event: h, payload: l };
2107
+ let p = s.slice(i, s.byteLength);
2108
+ return { join_ref: null, ref: null, topic: o, event: h, payload: p };
2109
2109
  }
2110
2110
  }, Ks = class {
2111
2111
  constructor(s, n = {}) {
@@ -2115,7 +2115,7 @@ var lt = (s) => typeof s == "function" ? s : function() {
2115
2115
  this.conn && (this.disconnect(), t = this.connectClock);
2116
2116
  }), at.addEventListener("pageshow", (e) => {
2117
2117
  t === this.connectClock && (t = null, this.connect());
2118
- })), this.heartbeatIntervalMs = n.heartbeatIntervalMs || 3e4, this.rejoinAfterMs = (e) => n.rejoinAfterMs ? n.rejoinAfterMs(e) : [1e3, 2e3, 5e3][e - 1] || 1e4, this.reconnectAfterMs = (e) => n.reconnectAfterMs ? n.reconnectAfterMs(e) : [10, 50, 100, 150, 200, 250, 500, 1e3, 2e3][e - 1] || 5e3, this.logger = n.logger || null, this.longpollerTimeout = n.longpollerTimeout || 2e4, this.params = lt(n.params || {}), this.endPoint = `${s}/${Pt.websocket}`, this.vsn = n.vsn || Xs, this.heartbeatTimeoutTimer = null, this.heartbeatTimer = null, this.pendingHeartbeatRef = null, this.reconnectTimer = new de(() => {
2118
+ })), this.heartbeatIntervalMs = n.heartbeatIntervalMs || 3e4, this.rejoinAfterMs = (e) => n.rejoinAfterMs ? n.rejoinAfterMs(e) : [1e3, 2e3, 5e3][e - 1] || 1e4, this.reconnectAfterMs = (e) => n.reconnectAfterMs ? n.reconnectAfterMs(e) : [10, 50, 100, 150, 200, 250, 500, 1e3, 2e3][e - 1] || 5e3, this.logger = n.logger || null, this.longpollerTimeout = n.longpollerTimeout || 2e4, this.params = lt(n.params || {}), this.endPoint = `${s}/${Ht.websocket}`, this.vsn = n.vsn || Xs, this.heartbeatTimeoutTimer = null, this.heartbeatTimer = null, this.pendingHeartbeatRef = null, this.reconnectTimer = new de(() => {
2119
2119
  this.teardown(() => this.connect());
2120
2120
  }, this.reconnectAfterMs);
2121
2121
  }
@@ -2226,7 +2226,7 @@ var lt = (s) => typeof s == "function" ? s : function() {
2226
2226
  }
2227
2227
  triggerChanError() {
2228
2228
  this.channels.forEach((s) => {
2229
- s.isErrored() || s.isLeaving() || s.isClosed() || s.trigger(W.error);
2229
+ s.isErrored() || s.isLeaving() || s.isClosed() || s.trigger(G.error);
2230
2230
  });
2231
2231
  }
2232
2232
  connectionState() {
@@ -2274,15 +2274,15 @@ var lt = (s) => typeof s == "function" ? s : function() {
2274
2274
  }
2275
2275
  onConnMessage(s) {
2276
2276
  this.decode(s.data, (n) => {
2277
- let { topic: t, event: e, payload: r, ref: i, join_ref: a } = n;
2277
+ let { topic: t, event: e, payload: r, ref: i, join_ref: o } = n;
2278
2278
  i && i === this.pendingHeartbeatRef && (this.clearHeartbeats(), this.pendingHeartbeatRef = null, this.heartbeatTimer = setTimeout(() => this.sendHeartbeat(), this.heartbeatIntervalMs)), this.hasLogger() && this.log("receive", `${r.status || ""} ${t} ${e} ${i && "(" + i + ")" || ""}`, r);
2279
2279
  for (let h = 0; h < this.channels.length; h++) {
2280
- const l = this.channels[h];
2281
- l.isMember(t, e, r, a) && l.trigger(e, r, i, a);
2280
+ const p = this.channels[h];
2281
+ p.isMember(t, e, r, o) && p.trigger(e, r, i, o);
2282
2282
  }
2283
2283
  for (let h = 0; h < this.stateChangeCallbacks.message.length; h++) {
2284
- let [, l] = this.stateChangeCallbacks.message[h];
2285
- l(n);
2284
+ let [, p] = this.stateChangeCallbacks.message[h];
2285
+ p(n);
2286
2286
  }
2287
2287
  });
2288
2288
  }
@@ -2293,7 +2293,7 @@ var lt = (s) => typeof s == "function" ? s : function() {
2293
2293
  };
2294
2294
  class tn {
2295
2295
  constructor(n) {
2296
- this.connected = !1, this.config = n, this.socket = new Ks(this.config.url, { logger: (t, e, r) => {
2296
+ this.connected = !1, this.config = n, this.socket = new Ks(this.config.url, this.config.socketOptions || { logger: (t, e, r) => {
2297
2297
  console.log(`${t}: ${e}`, r);
2298
2298
  } }), this.channel = this.socket.channel(this.config.topic, this.config.params), this.eventTarget = new EventTarget();
2299
2299
  }
@@ -2394,236 +2394,236 @@ var se;
2394
2394
  (function(n) {
2395
2395
  var t = typeof ee == "object" ? ee : typeof self == "object" ? self : typeof this == "object" ? this : Function("return this;")(), e = r(s);
2396
2396
  typeof t.Reflect > "u" ? t.Reflect = s : e = r(t.Reflect, e), n(e);
2397
- function r(i, a) {
2398
- return function(h, l) {
2399
- typeof i[h] != "function" && Object.defineProperty(i, h, { configurable: !0, writable: !0, value: l }), a && a(h, l);
2397
+ function r(i, o) {
2398
+ return function(h, p) {
2399
+ typeof i[h] != "function" && Object.defineProperty(i, h, { configurable: !0, writable: !0, value: p }), o && o(h, p);
2400
2400
  };
2401
2401
  }
2402
2402
  })(function(n) {
2403
- var t = Object.prototype.hasOwnProperty, e = typeof Symbol == "function", r = e && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", i = e && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", a = typeof Object.create == "function", h = { __proto__: [] } instanceof Array, l = !a && !h, d = {
2403
+ var t = Object.prototype.hasOwnProperty, e = typeof Symbol == "function", r = e && typeof Symbol.toPrimitive < "u" ? Symbol.toPrimitive : "@@toPrimitive", i = e && typeof Symbol.iterator < "u" ? Symbol.iterator : "@@iterator", o = typeof Object.create == "function", h = { __proto__: [] } instanceof Array, p = !o && !h, d = {
2404
2404
  // create an object in dictionary mode (a.k.a. "slow" mode in v8)
2405
- create: a ? function() {
2405
+ create: o ? function() {
2406
2406
  return Ot(/* @__PURE__ */ Object.create(null));
2407
2407
  } : h ? function() {
2408
2408
  return Ot({ __proto__: null });
2409
2409
  } : function() {
2410
2410
  return Ot({});
2411
2411
  },
2412
- has: l ? function(o, c) {
2413
- return t.call(o, c);
2414
- } : function(o, c) {
2415
- return c in o;
2412
+ has: p ? function(a, c) {
2413
+ return t.call(a, c);
2414
+ } : function(a, c) {
2415
+ return c in a;
2416
2416
  },
2417
- get: l ? function(o, c) {
2418
- return t.call(o, c) ? o[c] : void 0;
2419
- } : function(o, c) {
2420
- return o[c];
2417
+ get: p ? function(a, c) {
2418
+ return t.call(a, c) ? a[c] : void 0;
2419
+ } : function(a, c) {
2420
+ return a[c];
2421
2421
  }
2422
- }, _ = Object.getPrototypeOf(Function), b = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", T = !b && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Ae(), O = !b && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Te(), x = !b && typeof WeakMap == "function" ? WeakMap : Oe(), R = new x();
2423
- function M(o, c, u, p) {
2424
- if (L(u)) {
2425
- if (!Gt(o))
2422
+ }, b = Object.getPrototypeOf(Function), _ = typeof process == "object" && process.env && process.env.REFLECT_METADATA_USE_MAP_POLYFILL === "true", A = !_ && typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Ae(), T = !_ && typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Te(), j = !_ && typeof WeakMap == "function" ? WeakMap : Oe(), R = new j();
2423
+ function M(a, c, l, u) {
2424
+ if (L(l)) {
2425
+ if (!Wt(a))
2426
2426
  throw new TypeError();
2427
- if (!Xt(c))
2427
+ if (!Gt(c))
2428
2428
  throw new TypeError();
2429
- return K(o, c);
2429
+ return K(a, c);
2430
2430
  } else {
2431
- if (!Gt(o))
2431
+ if (!Wt(a))
2432
2432
  throw new TypeError();
2433
2433
  if (!N(c))
2434
2434
  throw new TypeError();
2435
- if (!N(p) && !L(p) && !tt(p))
2435
+ if (!N(u) && !L(u) && !tt(u))
2436
2436
  throw new TypeError();
2437
- return tt(p) && (p = void 0), u = z(u), ge(o, c, u, p);
2437
+ return tt(u) && (u = void 0), l = F(l), ge(a, c, l, u);
2438
2438
  }
2439
2439
  }
2440
2440
  n("decorate", M);
2441
- function G(o, c) {
2442
- function u(p, g) {
2443
- if (!N(p))
2441
+ function X(a, c) {
2442
+ function l(u, g) {
2443
+ if (!N(u))
2444
2444
  throw new TypeError();
2445
2445
  if (!L(g) && !be(g))
2446
2446
  throw new TypeError();
2447
- Bt(o, c, p, g);
2447
+ Vt(a, c, u, g);
2448
2448
  }
2449
- return u;
2449
+ return l;
2450
2450
  }
2451
- n("metadata", G);
2452
- function X(o, c, u, p) {
2453
- if (!N(u))
2451
+ n("metadata", X);
2452
+ function q(a, c, l, u) {
2453
+ if (!N(l))
2454
2454
  throw new TypeError();
2455
- return L(p) || (p = z(p)), Bt(o, c, u, p);
2455
+ return L(u) || (u = F(u)), Vt(a, c, l, u);
2456
2456
  }
2457
- n("defineMetadata", X);
2458
- function Y(o, c, u) {
2457
+ n("defineMetadata", q);
2458
+ function k(a, c, l) {
2459
2459
  if (!N(c))
2460
2460
  throw new TypeError();
2461
- return L(u) || (u = z(u)), Ut(o, c, u);
2461
+ return L(l) || (l = F(l)), Dt(a, c, l);
2462
2462
  }
2463
- n("hasMetadata", Y);
2464
- function Q(o, c, u) {
2463
+ n("hasMetadata", k);
2464
+ function z(a, c, l) {
2465
2465
  if (!N(c))
2466
2466
  throw new TypeError();
2467
- return L(u) || (u = z(u)), At(o, c, u);
2467
+ return L(l) || (l = F(l)), At(a, c, l);
2468
2468
  }
2469
- n("hasOwnMetadata", Q);
2470
- function k(o, c, u) {
2469
+ n("hasOwnMetadata", z);
2470
+ function J(a, c, l) {
2471
2471
  if (!N(c))
2472
2472
  throw new TypeError();
2473
- return L(u) || (u = z(u)), Jt(o, c, u);
2473
+ return L(l) || (l = F(l)), Ut(a, c, l);
2474
2474
  }
2475
- n("getMetadata", k);
2476
- function V(o, c, u) {
2475
+ n("getMetadata", J);
2476
+ function Y(a, c, l) {
2477
2477
  if (!N(c))
2478
2478
  throw new TypeError();
2479
- return L(u) || (u = z(u)), Vt(o, c, u);
2479
+ return L(l) || (l = F(l)), Jt(a, c, l);
2480
2480
  }
2481
- n("getOwnMetadata", V);
2482
- function A(o, c) {
2483
- if (!N(o))
2481
+ n("getOwnMetadata", Y);
2482
+ function x(a, c) {
2483
+ if (!N(a))
2484
2484
  throw new TypeError();
2485
- return L(c) || (c = z(c)), zt(o, c);
2485
+ return L(c) || (c = F(c)), Bt(a, c);
2486
2486
  }
2487
- n("getMetadataKeys", A);
2488
- function P(o, c) {
2489
- if (!N(o))
2487
+ n("getMetadataKeys", x);
2488
+ function P(a, c) {
2489
+ if (!N(a))
2490
2490
  throw new TypeError();
2491
- return L(c) || (c = z(c)), Ft(o, c);
2491
+ return L(c) || (c = F(c)), zt(a, c);
2492
2492
  }
2493
2493
  n("getOwnMetadataKeys", P);
2494
- function D(o, c, u) {
2494
+ function V(a, c, l) {
2495
2495
  if (!N(c))
2496
2496
  throw new TypeError();
2497
- L(u) || (u = z(u));
2498
- var p = ot(
2497
+ L(l) || (l = F(l));
2498
+ var u = ot(
2499
2499
  c,
2500
- u,
2500
+ l,
2501
2501
  /*Create*/
2502
2502
  !1
2503
2503
  );
2504
- if (L(p) || !p.delete(o))
2504
+ if (L(u) || !u.delete(a))
2505
2505
  return !1;
2506
- if (p.size > 0)
2506
+ if (u.size > 0)
2507
2507
  return !0;
2508
2508
  var g = R.get(c);
2509
- return g.delete(u), g.size > 0 || R.delete(c), !0;
2509
+ return g.delete(l), g.size > 0 || R.delete(c), !0;
2510
2510
  }
2511
- n("deleteMetadata", D);
2512
- function K(o, c) {
2513
- for (var u = o.length - 1; u >= 0; --u) {
2514
- var p = o[u], g = p(c);
2511
+ n("deleteMetadata", V);
2512
+ function K(a, c) {
2513
+ for (var l = a.length - 1; l >= 0; --l) {
2514
+ var u = a[l], g = u(c);
2515
2515
  if (!L(g) && !tt(g)) {
2516
- if (!Xt(g))
2516
+ if (!Gt(g))
2517
2517
  throw new TypeError();
2518
2518
  c = g;
2519
2519
  }
2520
2520
  }
2521
2521
  return c;
2522
2522
  }
2523
- function ge(o, c, u, p) {
2524
- for (var g = o.length - 1; g >= 0; --g) {
2525
- var H = o[g], y = H(c, u, p);
2523
+ function ge(a, c, l, u) {
2524
+ for (var g = a.length - 1; g >= 0; --g) {
2525
+ var H = a[g], y = H(c, l, u);
2526
2526
  if (!L(y) && !tt(y)) {
2527
2527
  if (!N(y))
2528
2528
  throw new TypeError();
2529
- p = y;
2529
+ u = y;
2530
2530
  }
2531
2531
  }
2532
- return p;
2532
+ return u;
2533
2533
  }
2534
- function ot(o, c, u) {
2535
- var p = R.get(o);
2536
- if (L(p)) {
2537
- if (!u)
2534
+ function ot(a, c, l) {
2535
+ var u = R.get(a);
2536
+ if (L(u)) {
2537
+ if (!l)
2538
2538
  return;
2539
- p = new T(), R.set(o, p);
2539
+ u = new A(), R.set(a, u);
2540
2540
  }
2541
- var g = p.get(c);
2541
+ var g = u.get(c);
2542
2542
  if (L(g)) {
2543
- if (!u)
2543
+ if (!l)
2544
2544
  return;
2545
- g = new T(), p.set(c, g);
2545
+ g = new A(), u.set(c, g);
2546
2546
  }
2547
2547
  return g;
2548
2548
  }
2549
- function Ut(o, c, u) {
2550
- var p = At(o, c, u);
2551
- if (p)
2549
+ function Dt(a, c, l) {
2550
+ var u = At(a, c, l);
2551
+ if (u)
2552
2552
  return !0;
2553
2553
  var g = Tt(c);
2554
- return tt(g) ? !1 : Ut(o, g, u);
2554
+ return tt(g) ? !1 : Dt(a, g, l);
2555
2555
  }
2556
- function At(o, c, u) {
2557
- var p = ot(
2556
+ function At(a, c, l) {
2557
+ var u = ot(
2558
2558
  c,
2559
- u,
2559
+ l,
2560
2560
  /*Create*/
2561
2561
  !1
2562
2562
  );
2563
- return L(p) ? !1 : we(p.has(o));
2563
+ return L(u) ? !1 : we(u.has(a));
2564
2564
  }
2565
- function Jt(o, c, u) {
2566
- var p = At(o, c, u);
2567
- if (p)
2568
- return Vt(o, c, u);
2565
+ function Ut(a, c, l) {
2566
+ var u = At(a, c, l);
2567
+ if (u)
2568
+ return Jt(a, c, l);
2569
2569
  var g = Tt(c);
2570
2570
  if (!tt(g))
2571
- return Jt(o, g, u);
2571
+ return Ut(a, g, l);
2572
2572
  }
2573
- function Vt(o, c, u) {
2574
- var p = ot(
2573
+ function Jt(a, c, l) {
2574
+ var u = ot(
2575
2575
  c,
2576
- u,
2576
+ l,
2577
2577
  /*Create*/
2578
2578
  !1
2579
2579
  );
2580
- if (!L(p))
2581
- return p.get(o);
2580
+ if (!L(u))
2581
+ return u.get(a);
2582
2582
  }
2583
- function Bt(o, c, u, p) {
2583
+ function Vt(a, c, l, u) {
2584
2584
  var g = ot(
2585
+ l,
2585
2586
  u,
2586
- p,
2587
2587
  /*Create*/
2588
2588
  !0
2589
2589
  );
2590
- g.set(o, c);
2590
+ g.set(a, c);
2591
2591
  }
2592
- function zt(o, c) {
2593
- var u = Ft(o, c), p = Tt(o);
2594
- if (p === null)
2595
- return u;
2596
- var g = zt(p, c);
2592
+ function Bt(a, c) {
2593
+ var l = zt(a, c), u = Tt(a);
2594
+ if (u === null)
2595
+ return l;
2596
+ var g = Bt(u, c);
2597
2597
  if (g.length <= 0)
2598
- return u;
2599
- if (u.length <= 0)
2598
+ return l;
2599
+ if (l.length <= 0)
2600
2600
  return g;
2601
- for (var H = new O(), y = [], m = 0, v = u; m < v.length; m++) {
2601
+ for (var H = new T(), y = [], m = 0, v = l; m < v.length; m++) {
2602
2602
  var E = v[m], $ = H.has(E);
2603
2603
  $ || (H.add(E), y.push(E));
2604
2604
  }
2605
- for (var q = 0, Yt = g; q < Yt.length; q++) {
2606
- var E = Yt[q], $ = H.has(E);
2605
+ for (var Z = 0, qt = g; Z < qt.length; Z++) {
2606
+ var E = qt[Z], $ = H.has(E);
2607
2607
  $ || (H.add(E), y.push(E));
2608
2608
  }
2609
2609
  return y;
2610
2610
  }
2611
- function Ft(o, c) {
2612
- var u = [], p = ot(
2613
- o,
2611
+ function zt(a, c) {
2612
+ var l = [], u = ot(
2613
+ a,
2614
2614
  c,
2615
2615
  /*Create*/
2616
2616
  !1
2617
2617
  );
2618
- if (L(p))
2619
- return u;
2620
- for (var g = p.keys(), H = Ee(g), y = 0; ; ) {
2618
+ if (L(u))
2619
+ return l;
2620
+ for (var g = u.keys(), H = Ee(g), y = 0; ; ) {
2621
2621
  var m = Ce(H);
2622
2622
  if (!m)
2623
- return u.length = y, u;
2623
+ return l.length = y, l;
2624
2624
  var v = $e(m);
2625
2625
  try {
2626
- u[y] = v;
2626
+ l[y] = v;
2627
2627
  } catch (E) {
2628
2628
  try {
2629
2629
  ke(H);
@@ -2634,10 +2634,10 @@ var se;
2634
2634
  y++;
2635
2635
  }
2636
2636
  }
2637
- function Wt(o) {
2638
- if (o === null)
2637
+ function Ft(a) {
2638
+ if (a === null)
2639
2639
  return 1;
2640
- switch (typeof o) {
2640
+ switch (typeof a) {
2641
2641
  case "undefined":
2642
2642
  return 0;
2643
2643
  case "boolean":
@@ -2649,102 +2649,102 @@ var se;
2649
2649
  case "number":
2650
2650
  return 5;
2651
2651
  case "object":
2652
- return o === null ? 1 : 6;
2652
+ return a === null ? 1 : 6;
2653
2653
  default:
2654
2654
  return 6;
2655
2655
  }
2656
2656
  }
2657
- function L(o) {
2658
- return o === void 0;
2657
+ function L(a) {
2658
+ return a === void 0;
2659
2659
  }
2660
- function tt(o) {
2661
- return o === null;
2660
+ function tt(a) {
2661
+ return a === null;
2662
2662
  }
2663
- function ve(o) {
2664
- return typeof o == "symbol";
2663
+ function ve(a) {
2664
+ return typeof a == "symbol";
2665
2665
  }
2666
- function N(o) {
2667
- return typeof o == "object" ? o !== null : typeof o == "function";
2666
+ function N(a) {
2667
+ return typeof a == "object" ? a !== null : typeof a == "function";
2668
2668
  }
2669
- function ye(o, c) {
2670
- switch (Wt(o)) {
2669
+ function ye(a, c) {
2670
+ switch (Ft(a)) {
2671
2671
  case 0:
2672
- return o;
2672
+ return a;
2673
2673
  case 1:
2674
- return o;
2674
+ return a;
2675
2675
  case 2:
2676
- return o;
2676
+ return a;
2677
2677
  case 3:
2678
- return o;
2678
+ return a;
2679
2679
  case 4:
2680
- return o;
2680
+ return a;
2681
2681
  case 5:
2682
- return o;
2682
+ return a;
2683
2683
  }
2684
- var u = c === 3 ? "string" : c === 5 ? "number" : "default", p = qt(o, r);
2685
- if (p !== void 0) {
2686
- var g = p.call(o, u);
2684
+ var l = c === 3 ? "string" : c === 5 ? "number" : "default", u = Xt(a, r);
2685
+ if (u !== void 0) {
2686
+ var g = u.call(a, l);
2687
2687
  if (N(g))
2688
2688
  throw new TypeError();
2689
2689
  return g;
2690
2690
  }
2691
- return me(o, u === "default" ? "number" : u);
2691
+ return me(a, l === "default" ? "number" : l);
2692
2692
  }
2693
- function me(o, c) {
2693
+ function me(a, c) {
2694
2694
  if (c === "string") {
2695
- var u = o.toString;
2696
- if (et(u)) {
2697
- var p = u.call(o);
2698
- if (!N(p))
2699
- return p;
2695
+ var l = a.toString;
2696
+ if (et(l)) {
2697
+ var u = l.call(a);
2698
+ if (!N(u))
2699
+ return u;
2700
2700
  }
2701
- var g = o.valueOf;
2701
+ var g = a.valueOf;
2702
2702
  if (et(g)) {
2703
- var p = g.call(o);
2704
- if (!N(p))
2705
- return p;
2703
+ var u = g.call(a);
2704
+ if (!N(u))
2705
+ return u;
2706
2706
  }
2707
2707
  } else {
2708
- var g = o.valueOf;
2708
+ var g = a.valueOf;
2709
2709
  if (et(g)) {
2710
- var p = g.call(o);
2711
- if (!N(p))
2712
- return p;
2710
+ var u = g.call(a);
2711
+ if (!N(u))
2712
+ return u;
2713
2713
  }
2714
- var H = o.toString;
2714
+ var H = a.toString;
2715
2715
  if (et(H)) {
2716
- var p = H.call(o);
2717
- if (!N(p))
2718
- return p;
2716
+ var u = H.call(a);
2717
+ if (!N(u))
2718
+ return u;
2719
2719
  }
2720
2720
  }
2721
2721
  throw new TypeError();
2722
2722
  }
2723
- function we(o) {
2724
- return !!o;
2723
+ function we(a) {
2724
+ return !!a;
2725
2725
  }
2726
- function _e(o) {
2727
- return "" + o;
2726
+ function _e(a) {
2727
+ return "" + a;
2728
2728
  }
2729
- function z(o) {
2729
+ function F(a) {
2730
2730
  var c = ye(
2731
- o,
2731
+ a,
2732
2732
  3
2733
2733
  /* String */
2734
2734
  );
2735
2735
  return ve(c) ? c : _e(c);
2736
2736
  }
2737
- function Gt(o) {
2738
- return Array.isArray ? Array.isArray(o) : o instanceof Object ? o instanceof Array : Object.prototype.toString.call(o) === "[object Array]";
2737
+ function Wt(a) {
2738
+ return Array.isArray ? Array.isArray(a) : a instanceof Object ? a instanceof Array : Object.prototype.toString.call(a) === "[object Array]";
2739
2739
  }
2740
- function et(o) {
2741
- return typeof o == "function";
2740
+ function et(a) {
2741
+ return typeof a == "function";
2742
2742
  }
2743
- function Xt(o) {
2744
- return typeof o == "function";
2743
+ function Gt(a) {
2744
+ return typeof a == "function";
2745
2745
  }
2746
- function be(o) {
2747
- switch (Wt(o)) {
2746
+ function be(a) {
2747
+ switch (Ft(a)) {
2748
2748
  case 3:
2749
2749
  return !0;
2750
2750
  case 4:
@@ -2753,46 +2753,46 @@ var se;
2753
2753
  return !1;
2754
2754
  }
2755
2755
  }
2756
- function qt(o, c) {
2757
- var u = o[c];
2758
- if (u != null) {
2759
- if (!et(u))
2756
+ function Xt(a, c) {
2757
+ var l = a[c];
2758
+ if (l != null) {
2759
+ if (!et(l))
2760
2760
  throw new TypeError();
2761
- return u;
2761
+ return l;
2762
2762
  }
2763
2763
  }
2764
- function Ee(o) {
2765
- var c = qt(o, i);
2764
+ function Ee(a) {
2765
+ var c = Xt(a, i);
2766
2766
  if (!et(c))
2767
2767
  throw new TypeError();
2768
- var u = c.call(o);
2769
- if (!N(u))
2768
+ var l = c.call(a);
2769
+ if (!N(l))
2770
2770
  throw new TypeError();
2771
- return u;
2771
+ return l;
2772
2772
  }
2773
- function $e(o) {
2774
- return o.value;
2773
+ function $e(a) {
2774
+ return a.value;
2775
2775
  }
2776
- function Ce(o) {
2777
- var c = o.next();
2776
+ function Ce(a) {
2777
+ var c = a.next();
2778
2778
  return c.done ? !1 : c;
2779
2779
  }
2780
- function ke(o) {
2781
- var c = o.return;
2782
- c && c.call(o);
2780
+ function ke(a) {
2781
+ var c = a.return;
2782
+ c && c.call(a);
2783
2783
  }
2784
- function Tt(o) {
2785
- var c = Object.getPrototypeOf(o);
2786
- if (typeof o != "function" || o === _ || c !== _)
2784
+ function Tt(a) {
2785
+ var c = Object.getPrototypeOf(a);
2786
+ if (typeof a != "function" || a === b || c !== b)
2787
2787
  return c;
2788
- var u = o.prototype, p = u && Object.getPrototypeOf(u);
2789
- if (p == null || p === Object.prototype)
2788
+ var l = a.prototype, u = l && Object.getPrototypeOf(l);
2789
+ if (u == null || u === Object.prototype)
2790
2790
  return c;
2791
- var g = p.constructor;
2792
- return typeof g != "function" || g === o ? c : g;
2791
+ var g = u.constructor;
2792
+ return typeof g != "function" || g === a ? c : g;
2793
2793
  }
2794
2794
  function Ae() {
2795
- var o = {}, c = [], u = (
2795
+ var a = {}, c = [], l = (
2796
2796
  /** @class */
2797
2797
  function() {
2798
2798
  function y(m, v, E) {
@@ -2820,7 +2820,7 @@ var se;
2820
2820
  /** @class */
2821
2821
  function() {
2822
2822
  function y() {
2823
- this._keys = [], this._values = [], this._cacheKey = o, this._cacheIndex = -2;
2823
+ this._keys = [], this._values = [], this._cacheKey = a, this._cacheIndex = -2;
2824
2824
  }
2825
2825
  return Object.defineProperty(y.prototype, "size", {
2826
2826
  get: function() {
@@ -2857,17 +2857,17 @@ var se;
2857
2857
  if (v >= 0) {
2858
2858
  for (var E = this._keys.length, $ = v + 1; $ < E; $++)
2859
2859
  this._keys[$ - 1] = this._keys[$], this._values[$ - 1] = this._values[$];
2860
- return this._keys.length--, this._values.length--, m === this._cacheKey && (this._cacheKey = o, this._cacheIndex = -2), !0;
2860
+ return this._keys.length--, this._values.length--, m === this._cacheKey && (this._cacheKey = a, this._cacheIndex = -2), !0;
2861
2861
  }
2862
2862
  return !1;
2863
2863
  }, y.prototype.clear = function() {
2864
- this._keys.length = 0, this._values.length = 0, this._cacheKey = o, this._cacheIndex = -2;
2864
+ this._keys.length = 0, this._values.length = 0, this._cacheKey = a, this._cacheIndex = -2;
2865
2865
  }, y.prototype.keys = function() {
2866
- return new u(this._keys, this._values, p);
2866
+ return new l(this._keys, this._values, u);
2867
2867
  }, y.prototype.values = function() {
2868
- return new u(this._keys, this._values, g);
2868
+ return new l(this._keys, this._values, g);
2869
2869
  }, y.prototype.entries = function() {
2870
- return new u(this._keys, this._values, H);
2870
+ return new l(this._keys, this._values, H);
2871
2871
  }, y.prototype["@@iterator"] = function() {
2872
2872
  return this.entries();
2873
2873
  }, y.prototype[i] = function() {
@@ -2877,7 +2877,7 @@ var se;
2877
2877
  }, y;
2878
2878
  }()
2879
2879
  );
2880
- function p(y, m) {
2880
+ function u(y, m) {
2881
2881
  return y;
2882
2882
  }
2883
2883
  function g(y, m) {
@@ -2891,44 +2891,44 @@ var se;
2891
2891
  return (
2892
2892
  /** @class */
2893
2893
  function() {
2894
- function o() {
2895
- this._map = new T();
2894
+ function a() {
2895
+ this._map = new A();
2896
2896
  }
2897
- return Object.defineProperty(o.prototype, "size", {
2897
+ return Object.defineProperty(a.prototype, "size", {
2898
2898
  get: function() {
2899
2899
  return this._map.size;
2900
2900
  },
2901
2901
  enumerable: !0,
2902
2902
  configurable: !0
2903
- }), o.prototype.has = function(c) {
2903
+ }), a.prototype.has = function(c) {
2904
2904
  return this._map.has(c);
2905
- }, o.prototype.add = function(c) {
2905
+ }, a.prototype.add = function(c) {
2906
2906
  return this._map.set(c, c), this;
2907
- }, o.prototype.delete = function(c) {
2907
+ }, a.prototype.delete = function(c) {
2908
2908
  return this._map.delete(c);
2909
- }, o.prototype.clear = function() {
2909
+ }, a.prototype.clear = function() {
2910
2910
  this._map.clear();
2911
- }, o.prototype.keys = function() {
2911
+ }, a.prototype.keys = function() {
2912
2912
  return this._map.keys();
2913
- }, o.prototype.values = function() {
2913
+ }, a.prototype.values = function() {
2914
2914
  return this._map.values();
2915
- }, o.prototype.entries = function() {
2915
+ }, a.prototype.entries = function() {
2916
2916
  return this._map.entries();
2917
- }, o.prototype["@@iterator"] = function() {
2917
+ }, a.prototype["@@iterator"] = function() {
2918
2918
  return this.keys();
2919
- }, o.prototype[i] = function() {
2919
+ }, a.prototype[i] = function() {
2920
2920
  return this.keys();
2921
- }, o;
2921
+ }, a;
2922
2922
  }()
2923
2923
  );
2924
2924
  }
2925
2925
  function Oe() {
2926
- var o = 16, c = d.create(), u = p();
2926
+ var a = 16, c = d.create(), l = u();
2927
2927
  return (
2928
2928
  /** @class */
2929
2929
  function() {
2930
2930
  function v() {
2931
- this._key = p();
2931
+ this._key = u();
2932
2932
  }
2933
2933
  return v.prototype.has = function(E) {
2934
2934
  var $ = g(
@@ -2945,12 +2945,12 @@ var se;
2945
2945
  );
2946
2946
  return $ !== void 0 ? d.get($, this._key) : void 0;
2947
2947
  }, v.prototype.set = function(E, $) {
2948
- var q = g(
2948
+ var Z = g(
2949
2949
  E,
2950
2950
  /*create*/
2951
2951
  !0
2952
2952
  );
2953
- return q[this._key] = $, this;
2953
+ return Z[this._key] = $, this;
2954
2954
  }, v.prototype.delete = function(E) {
2955
2955
  var $ = g(
2956
2956
  E,
@@ -2959,11 +2959,11 @@ var se;
2959
2959
  );
2960
2960
  return $ !== void 0 ? delete $[this._key] : !1;
2961
2961
  }, v.prototype.clear = function() {
2962
- this._key = p();
2962
+ this._key = u();
2963
2963
  }, v;
2964
2964
  }()
2965
2965
  );
2966
- function p() {
2966
+ function u() {
2967
2967
  var v;
2968
2968
  do
2969
2969
  v = "@@WeakMap@@" + m();
@@ -2971,12 +2971,12 @@ var se;
2971
2971
  return c[v] = !0, v;
2972
2972
  }
2973
2973
  function g(v, E) {
2974
- if (!t.call(v, u)) {
2974
+ if (!t.call(v, l)) {
2975
2975
  if (!E)
2976
2976
  return;
2977
- Object.defineProperty(v, u, { value: d.create() });
2977
+ Object.defineProperty(v, l, { value: d.create() });
2978
2978
  }
2979
- return v[u];
2979
+ return v[l];
2980
2980
  }
2981
2981
  function H(v, E) {
2982
2982
  for (var $ = 0; $ < E; ++$)
@@ -2987,17 +2987,17 @@ var se;
2987
2987
  return typeof Uint8Array == "function" ? typeof crypto < "u" ? crypto.getRandomValues(new Uint8Array(v)) : typeof msCrypto < "u" ? msCrypto.getRandomValues(new Uint8Array(v)) : H(new Uint8Array(v), v) : H(new Array(v), v);
2988
2988
  }
2989
2989
  function m() {
2990
- var v = y(o);
2990
+ var v = y(a);
2991
2991
  v[6] = v[6] & 79 | 64, v[8] = v[8] & 191 | 128;
2992
- for (var E = "", $ = 0; $ < o; ++$) {
2993
- var q = v[$];
2994
- ($ === 4 || $ === 6 || $ === 8) && (E += "-"), q < 16 && (E += "0"), E += q.toString(16).toLowerCase();
2992
+ for (var E = "", $ = 0; $ < a; ++$) {
2993
+ var Z = v[$];
2994
+ ($ === 4 || $ === 6 || $ === 8) && (E += "-"), Z < 16 && (E += "0"), E += Z.toString(16).toLowerCase();
2995
2995
  }
2996
2996
  return E;
2997
2997
  }
2998
2998
  }
2999
- function Ot(o) {
3000
- return o.__ = void 0, delete o.__, o;
2999
+ function Ot(a) {
3000
+ return a.__ = void 0, delete a.__, a;
3001
3001
  }
3002
3002
  });
3003
3003
  })(se || (se = {}));
@@ -3006,114 +3006,114 @@ function en(s) {
3006
3006
  }
3007
3007
  function ne(s, n, t) {
3008
3008
  const e = s.slice();
3009
- return e[18] = n[t], e;
3009
+ return e[16] = n[t], e;
3010
3010
  }
3011
3011
  function re(s) {
3012
3012
  let n, t = [], e = /* @__PURE__ */ new Map(), r = te(Object.values(
3013
3013
  /*users*/
3014
3014
  s[0]
3015
3015
  ));
3016
- const i = (a) => (
3016
+ const i = (o) => (
3017
3017
  /*user*/
3018
- a[18].id
3018
+ o[16].id
3019
3019
  );
3020
- for (let a = 0; a < r.length; a += 1) {
3021
- let h = ne(s, r, a), l = i(h);
3022
- e.set(l, t[a] = ie(l, h));
3020
+ for (let o = 0; o < r.length; o += 1) {
3021
+ let h = ne(s, r, o), p = i(h);
3022
+ e.set(p, t[o] = ie(p, h));
3023
3023
  }
3024
3024
  return {
3025
3025
  c() {
3026
- n = Z("div");
3027
- for (let a = 0; a < t.length; a += 1)
3028
- t[a].c();
3026
+ n = Q("div");
3027
+ for (let o = 0; o < t.length; o += 1)
3028
+ t[o].c();
3029
3029
  S(n, "id", "users-container"), S(n, "class", "svelte-1tmn7wo");
3030
3030
  },
3031
- m(a, h) {
3032
- Ct(a, n, h);
3033
- for (let l = 0; l < t.length; l += 1)
3034
- t[l] && t[l].m(n, null);
3031
+ m(o, h) {
3032
+ Ct(o, n, h);
3033
+ for (let p = 0; p < t.length; p += 1)
3034
+ t[p] && t[p].m(n, null);
3035
3035
  },
3036
- p(a, h) {
3036
+ p(o, h) {
3037
3037
  h & /*Object, users, me, parseFloat, users_count*/
3038
- 13 && (r = te(Object.values(
3038
+ 7 && (r = te(Object.values(
3039
3039
  /*users*/
3040
- a[0]
3041
- )), t = Ge(t, h, i, 1, a, r, e, n, We, ie, null, ne));
3040
+ o[0]
3041
+ )), t = Ge(t, h, i, 1, o, r, e, n, We, ie, null, ne));
3042
3042
  },
3043
- d(a) {
3044
- a && vt(n);
3043
+ d(o) {
3044
+ o && vt(n);
3045
3045
  for (let h = 0; h < t.length; h += 1)
3046
3046
  t[h].d();
3047
3047
  }
3048
3048
  };
3049
3049
  }
3050
3050
  function ie(s, n) {
3051
- let t, e, r, i, a, h = (
3051
+ let t, e, r, i, o, h = (
3052
3052
  /*user*/
3053
- n[18].name + ""
3054
- ), l, d, _, b, T, O, x;
3053
+ n[16].name + ""
3054
+ ), p, d, b, _, A, T, j;
3055
3055
  return {
3056
3056
  key: s,
3057
3057
  first: null,
3058
3058
  c() {
3059
- t = Z("div"), e = Qt("svg"), r = Qt("path"), i = jt(), a = Z("span"), l = he(h), d = jt(), _ = Z("div"), T = jt(), S(r, "d", "M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"), S(e, "width", "23"), S(e, "viewBox", "0 0 27 24"), S(e, "fill", "currentColor"), S(e, "aria-hidden", "true"), S(e, "xmlns", "http://www.w3.org/2000/svg"), S(e, "class", "cursor svelte-1tmn7wo"), S(a, "class", "user-name svelte-1tmn7wo"), S(_, "class", "halo svelte-1tmn7wo"), S(_, "data-show", b = /*user*/
3060
- (n[18].id == /*me*/
3061
- n[2].id && /*user*/
3062
- n[18].is_shift_key_down || /*user*/
3063
- n[18].id != /*me*/
3064
- n[2].id && /*user*/
3065
- (n[18].is_shift_key_down || /*user*/
3066
- n[18].is_mouse_down)) && /*users_count*/
3067
- n[3] > 1), S(t, "id", O = "user-" + /*user*/
3068
- n[18].id), S(t, "class", "user svelte-1tmn7wo"), S(t, "data-isself", x = /*user*/
3069
- n[18].id == /*me*/
3070
- n[2].id), st(
3059
+ t = Q("div"), e = Zt("svg"), r = Zt("path"), i = jt(), o = Q("span"), p = he(h), d = jt(), b = Q("div"), A = jt(), S(r, "d", "M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"), S(e, "width", "23"), S(e, "viewBox", "0 0 27 24"), S(e, "fill", "currentColor"), S(e, "aria-hidden", "true"), S(e, "xmlns", "http://www.w3.org/2000/svg"), S(e, "class", "cursor svelte-1tmn7wo"), S(o, "class", "user-name svelte-1tmn7wo"), S(b, "class", "halo svelte-1tmn7wo"), S(b, "data-show", _ = /*user*/
3060
+ (n[16].id == /*me*/
3061
+ n[1].id && /*user*/
3062
+ n[16].is_shift_key_down || /*user*/
3063
+ n[16].id != /*me*/
3064
+ n[1].id && /*user*/
3065
+ (n[16].is_shift_key_down || /*user*/
3066
+ n[16].is_mouse_down)) && /*users_count*/
3067
+ n[2] > 1), S(t, "id", T = "user-" + /*user*/
3068
+ n[16].id), S(t, "class", "user svelte-1tmn7wo"), S(t, "data-isself", j = /*user*/
3069
+ n[16].id == /*me*/
3070
+ n[1].id), st(
3071
3071
  t,
3072
3072
  "--color",
3073
3073
  /*user*/
3074
- n[18].color
3074
+ n[16].color
3075
3075
  ), st(t, "--x", parseFloat(
3076
3076
  /*user*/
3077
- n[18].x
3077
+ n[16].x
3078
3078
  ) + "vw"), st(t, "--y", parseFloat(
3079
3079
  /*user*/
3080
- n[18].y
3080
+ n[16].y
3081
3081
  ) + "vh"), this.first = t;
3082
3082
  },
3083
3083
  m(R, M) {
3084
- Ct(R, t, M), F(t, e), F(e, r), F(t, i), F(t, a), F(a, l), F(t, d), F(t, _), F(t, T);
3084
+ Ct(R, t, M), W(t, e), W(e, r), W(t, i), W(t, o), W(o, p), W(t, d), W(t, b), W(t, A);
3085
3085
  },
3086
3086
  p(R, M) {
3087
3087
  n = R, M & /*users*/
3088
3088
  1 && h !== (h = /*user*/
3089
- n[18].name + "") && Pe(l, h), M & /*users, me, users_count*/
3090
- 13 && b !== (b = /*user*/
3091
- (n[18].id == /*me*/
3092
- n[2].id && /*user*/
3093
- n[18].is_shift_key_down || /*user*/
3094
- n[18].id != /*me*/
3095
- n[2].id && /*user*/
3096
- (n[18].is_shift_key_down || /*user*/
3097
- n[18].is_mouse_down)) && /*users_count*/
3098
- n[3] > 1) && S(_, "data-show", b), M & /*users*/
3099
- 1 && O !== (O = "user-" + /*user*/
3100
- n[18].id) && S(t, "id", O), M & /*users, me*/
3101
- 5 && x !== (x = /*user*/
3102
- n[18].id == /*me*/
3103
- n[2].id) && S(t, "data-isself", x), M & /*users*/
3089
+ n[16].name + "") && Pe(p, h), M & /*users, me, users_count*/
3090
+ 7 && _ !== (_ = /*user*/
3091
+ (n[16].id == /*me*/
3092
+ n[1].id && /*user*/
3093
+ n[16].is_shift_key_down || /*user*/
3094
+ n[16].id != /*me*/
3095
+ n[1].id && /*user*/
3096
+ (n[16].is_shift_key_down || /*user*/
3097
+ n[16].is_mouse_down)) && /*users_count*/
3098
+ n[2] > 1) && S(b, "data-show", _), M & /*users*/
3099
+ 1 && T !== (T = "user-" + /*user*/
3100
+ n[16].id) && S(t, "id", T), M & /*users, me*/
3101
+ 3 && j !== (j = /*user*/
3102
+ n[16].id == /*me*/
3103
+ n[1].id) && S(t, "data-isself", j), M & /*users*/
3104
3104
  1 && st(
3105
3105
  t,
3106
3106
  "--color",
3107
3107
  /*user*/
3108
- n[18].color
3108
+ n[16].color
3109
3109
  ), M & /*users*/
3110
3110
  1 && st(t, "--x", parseFloat(
3111
3111
  /*user*/
3112
- n[18].x
3112
+ n[16].x
3113
3113
  ) + "vw"), M & /*users*/
3114
3114
  1 && st(t, "--y", parseFloat(
3115
3115
  /*user*/
3116
- n[18].y
3116
+ n[16].y
3117
3117
  ) + "vh");
3118
3118
  },
3119
3119
  d(R) {
@@ -3124,61 +3124,66 @@ function ie(s, n) {
3124
3124
  function sn(s) {
3125
3125
  let n, t = (
3126
3126
  /*me*/
3127
- s[2] && /*users*/
3127
+ s[1] && /*users*/
3128
3128
  s[0] && re(s)
3129
3129
  );
3130
3130
  return {
3131
3131
  c() {
3132
- n = Z("div"), t && t.c(), S(n, "id", "liveroom-client-element"), S(n, "class", "svelte-1tmn7wo");
3132
+ n = Q("div"), t && t.c(), S(n, "id", "liveroom-client-element"), S(n, "class", "svelte-1tmn7wo");
3133
3133
  },
3134
3134
  m(e, r) {
3135
- Ct(e, n, r), t && t.m(n, null), s[7](n);
3135
+ Ct(e, n, r), t && t.m(n, null);
3136
3136
  },
3137
3137
  p(e, [r]) {
3138
3138
  /*me*/
3139
- e[2] && /*users*/
3139
+ e[1] && /*users*/
3140
3140
  e[0] ? t ? t.p(e, r) : (t = re(e), t.c(), t.m(n, null)) : t && (t.d(1), t = null);
3141
3141
  },
3142
3142
  i: pt,
3143
3143
  o: pt,
3144
3144
  d(e) {
3145
- e && vt(n), t && t.d(), s[7](null);
3145
+ e && vt(n), t && t.d();
3146
3146
  }
3147
3147
  };
3148
3148
  }
3149
3149
  function nn(s, n, t) {
3150
- let { url: e } = n, { room_id: r } = n, { user_name: i } = n, a, h, l, d, _;
3150
+ let { url: e } = n, { room_id: r } = n, { user_name: i } = n, o, h, p, d;
3151
3151
  De(async () => {
3152
- const k = new URLSearchParams(window.location.search), V = k.get("_liveroom"), A = V == null ? void 0 : V.split("https://meet.google.com/");
3153
- let P = A == null ? void 0 : A[0];
3154
- !!(A != null && A[1]) && (P = A[1].split("?")[0]), t(4, r = P || r), t(5, i = k.get("_liveroom_user_name")), b();
3152
+ const k = new URLSearchParams(window.location.search), z = k.get("_liveroom"), J = z == null ? void 0 : z.split("https://meet.google.com/");
3153
+ let Y = J == null ? void 0 : J[0];
3154
+ !!(J != null && J[1]) && (Y = J[1].split("?")[0]), t(3, r = Y || r);
3155
+ const P = k.get("_liveroom_user_name");
3156
+ P && t(4, i = P), b();
3155
3157
  }), Ue(() => {
3156
- T();
3158
+ _();
3157
3159
  });
3158
3160
  function b() {
3159
- h = new tn({
3161
+ o = new tn({
3160
3162
  url: e,
3161
3163
  topic: `liveroom-livestate:${r}`,
3162
3164
  params: {
3163
3165
  room_id: r,
3164
3166
  user_name: i,
3165
- current_url: window.origin,
3167
+ referrer: document.referrer,
3168
+ current_url: window.location.href,
3166
3169
  inner_width: window.innerWidth,
3167
- inner_height: window.innerHeight
3170
+ inner_height: window.innerHeight,
3171
+ language: window.navigator.language,
3172
+ user_agent: window.navigator.userAgent
3168
3173
  }
3169
- }), h.connect(), h.addEventListener("livestate-change", ({ detail: { state: k } }) => {
3170
- t(4, r = k.room_id), t(2, l = k.me), t(0, d = k.users);
3171
- }), window.addEventListener("mousemove", O), window.addEventListener("mousedown", x), window.addEventListener("mouseup", R), window.addEventListener("keydown", G), window.addEventListener("keyup", X), window.addEventListener("resize", Y);
3174
+ }), o.connect(), o.addEventListener("livestate-change", ({ detail: { state: k } }) => {
3175
+ t(3, r = k.room_id), t(1, h = k.me), t(0, p = k.users);
3176
+ }), window.addEventListener("mousemove", A), window.addEventListener("mousedown", T), window.addEventListener("mouseup", j), window.addEventListener("keydown", M), window.addEventListener("keyup", X), window.addEventListener("resize", q);
3172
3177
  }
3173
- function T() {
3174
- window.removeEventListener("resize", Y), window.removeEventListener("keyup", X), window.removeEventListener("keydown", G), window.removeEventListener("mouseup", R), window.removeEventListener("mousedown", x), window.removeEventListener("mousemove", O), h == null || h.disconnect();
3178
+ function _() {
3179
+ window.removeEventListener("resize", q), window.removeEventListener("keyup", X), window.removeEventListener("keydown", M), window.removeEventListener("mouseup", j), window.removeEventListener("mousedown", T), window.removeEventListener("mousemove", A), o == null || o.disconnect();
3175
3180
  }
3176
- function O(k) {
3177
- h && (l != null && l.id) && h.dispatchEvent(new CustomEvent(
3181
+ function A(k) {
3182
+ o && (h != null && h.id) && o.dispatchEvent(new CustomEvent(
3178
3183
  "mouse_move",
3179
3184
  {
3180
3185
  detail: {
3181
- user_id: l.id,
3186
+ user_id: h.id,
3182
3187
  x: Number(k.clientX / window.innerWidth * 100).toFixed(2),
3183
3188
  // in %
3184
3189
  y: Number(k.clientY / window.innerHeight * 100).toFixed(2)
@@ -3187,61 +3192,56 @@ function nn(s, n, t) {
3187
3192
  }
3188
3193
  ));
3189
3194
  }
3190
- function x() {
3191
- h && (l != null && l.id) && h.dispatchEvent(new CustomEvent("mouse_down", { detail: { user_id: l.id } }));
3195
+ function T() {
3196
+ o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("mouse_down", { detail: { user_id: h.id } }));
3192
3197
  }
3193
- function R() {
3194
- h && (l != null && l.id) && h.dispatchEvent(new CustomEvent("mouse_up", { detail: { user_id: l.id } }));
3198
+ function j() {
3199
+ o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("mouse_up", { detail: { user_id: h.id } }));
3195
3200
  }
3196
- const M = ["Shift"];
3197
- function G(k) {
3198
- !k.repeat && M.includes(k.key) && h && (l != null && l.id) && h.dispatchEvent(new CustomEvent("key_down", { detail: { key: k.key, user_id: l.id } }));
3201
+ const R = ["Shift"];
3202
+ function M(k) {
3203
+ !k.repeat && R.includes(k.key) && o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("key_down", { detail: { key: k.key, user_id: h.id } }));
3199
3204
  }
3200
3205
  function X(k) {
3201
- M.includes(k.key) && h && (l != null && l.id) && h.dispatchEvent(new CustomEvent("key_up", { detail: { key: k.key, user_id: l.id } }));
3206
+ R.includes(k.key) && o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("key_up", { detail: { key: k.key, user_id: h.id } }));
3202
3207
  }
3203
- function Y() {
3204
- h && (l != null && l.id) && h.dispatchEvent(new CustomEvent(
3208
+ function q() {
3209
+ o && (h != null && h.id) && o.dispatchEvent(new CustomEvent(
3205
3210
  "window_resize",
3206
3211
  {
3207
3212
  detail: {
3208
3213
  inner_width: window.innerWidth,
3209
3214
  inner_height: window.innerHeight,
3210
- user_id: l.id
3215
+ user_id: h.id
3211
3216
  }
3212
3217
  }
3213
3218
  ));
3214
3219
  }
3215
- function Q(k) {
3216
- Mt[k ? "unshift" : "push"](() => {
3217
- a = k, t(1, a);
3218
- });
3219
- }
3220
3220
  return s.$$set = (k) => {
3221
- "url" in k && t(6, e = k.url), "room_id" in k && t(4, r = k.room_id), "user_name" in k && t(5, i = k.user_name);
3221
+ "url" in k && t(5, e = k.url), "room_id" in k && t(3, r = k.room_id), "user_name" in k && t(4, i = k.user_name);
3222
3222
  }, s.$$.update = () => {
3223
3223
  s.$$.dirty & /*users*/
3224
- 1 && t(3, _ = Object.keys(d || {}).length);
3225
- }, [d, a, l, _, r, i, e, Q];
3224
+ 1 && t(2, d = Object.keys(p || {}).length);
3225
+ }, [p, h, d, r, i, e];
3226
3226
  }
3227
3227
  class rn extends Ke {
3228
3228
  constructor(n) {
3229
- super(), Ze(this, n, nn, sn, Se, { url: 6, room_id: 4, user_name: 5 }, en);
3229
+ super(), Ze(this, n, nn, sn, Se, { url: 5, room_id: 3, user_name: 4 }, en);
3230
3230
  }
3231
3231
  get url() {
3232
- return this.$$.ctx[6];
3232
+ return this.$$.ctx[5];
3233
3233
  }
3234
3234
  set url(n) {
3235
3235
  this.$$set({ url: n }), ct();
3236
3236
  }
3237
3237
  get room_id() {
3238
- return this.$$.ctx[4];
3238
+ return this.$$.ctx[3];
3239
3239
  }
3240
3240
  set room_id(n) {
3241
3241
  this.$$set({ room_id: n }), ct();
3242
3242
  }
3243
3243
  get user_name() {
3244
- return this.$$.ctx[5];
3244
+ return this.$$.ctx[4];
3245
3245
  }
3246
3246
  set user_name(n) {
3247
3247
  this.$$set({ user_name: n }), ct();