liveroom-client-element 0.0.6 → 0.0.8
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var je = Object.defineProperty;
|
|
2
2
|
var xe = (s, n, t) => n in s ? je(s, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[n] = t;
|
|
3
3
|
var f = (s, n, t) => (xe(s, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
-
function
|
|
4
|
+
function ut() {
|
|
5
5
|
}
|
|
6
6
|
function oe(s) {
|
|
7
7
|
return s();
|
|
@@ -9,7 +9,7 @@ function oe(s) {
|
|
|
9
9
|
function Zt() {
|
|
10
10
|
return /* @__PURE__ */ Object.create(null);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function dt(s) {
|
|
13
13
|
s.forEach(oe);
|
|
14
14
|
}
|
|
15
15
|
function ae(s) {
|
|
@@ -21,17 +21,17 @@ function Se(s, n) {
|
|
|
21
21
|
function Me(s) {
|
|
22
22
|
return Object.keys(s).length === 0;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function W(s, n) {
|
|
25
25
|
s.appendChild(n);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const e =
|
|
27
|
+
function Le(s, n, t) {
|
|
28
|
+
const e = Ne(s);
|
|
29
29
|
if (!e.getElementById(n)) {
|
|
30
|
-
const r =
|
|
30
|
+
const r = Q("style");
|
|
31
31
|
r.id = n, r.textContent = t, Re(e, r);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Ne(s) {
|
|
35
35
|
if (!s)
|
|
36
36
|
return document;
|
|
37
37
|
const n = s.getRootNode ? s.getRootNode() : s.ownerDocument;
|
|
@@ -42,7 +42,7 @@ function Le(s) {
|
|
|
42
42
|
) : s.ownerDocument;
|
|
43
43
|
}
|
|
44
44
|
function Re(s, n) {
|
|
45
|
-
return
|
|
45
|
+
return W(
|
|
46
46
|
/** @type {Document} */
|
|
47
47
|
s.head || s,
|
|
48
48
|
n
|
|
@@ -51,10 +51,10 @@ function Re(s, n) {
|
|
|
51
51
|
function Ct(s, n, t) {
|
|
52
52
|
s.insertBefore(n, t || null);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function gt(s) {
|
|
55
55
|
s.parentNode && s.parentNode.removeChild(s);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Q(s) {
|
|
58
58
|
return document.createElement(s);
|
|
59
59
|
}
|
|
60
60
|
function Qt(s) {
|
|
@@ -66,7 +66,7 @@ function he(s) {
|
|
|
66
66
|
function jt() {
|
|
67
67
|
return he(" ");
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function S(s, n, t) {
|
|
70
70
|
t == null ? s.removeAttribute(n) : s.getAttribute(n) !== t && s.setAttribute(n, t);
|
|
71
71
|
}
|
|
72
72
|
function He(s) {
|
|
@@ -76,7 +76,7 @@ function Pe(s, n) {
|
|
|
76
76
|
n = "" + n, s.data !== n && (s.data = /** @type {string} */
|
|
77
77
|
n);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function st(s, n, t, e) {
|
|
80
80
|
t == null ? s.style.removeProperty(n) : s.style.setProperty(n, t, e ? "important" : "");
|
|
81
81
|
}
|
|
82
82
|
function Ie(s) {
|
|
@@ -88,14 +88,14 @@ function Ie(s) {
|
|
|
88
88
|
}
|
|
89
89
|
), n;
|
|
90
90
|
}
|
|
91
|
-
let
|
|
92
|
-
function
|
|
93
|
-
|
|
91
|
+
let pt;
|
|
92
|
+
function ht(s) {
|
|
93
|
+
pt = s;
|
|
94
94
|
}
|
|
95
95
|
function ce() {
|
|
96
|
-
if (!
|
|
96
|
+
if (!pt)
|
|
97
97
|
throw new Error("Function called outside component initialization");
|
|
98
|
-
return
|
|
98
|
+
return pt;
|
|
99
99
|
}
|
|
100
100
|
function De(s) {
|
|
101
101
|
ce().$$.on_mount.push(s);
|
|
@@ -103,53 +103,53 @@ function De(s) {
|
|
|
103
103
|
function Ue(s) {
|
|
104
104
|
ce().$$.on_destroy.push(s);
|
|
105
105
|
}
|
|
106
|
-
const
|
|
107
|
-
let
|
|
106
|
+
const rt = [], Mt = [];
|
|
107
|
+
let it = [];
|
|
108
108
|
const Kt = [], ze = /* @__PURE__ */ Promise.resolve();
|
|
109
|
-
let
|
|
109
|
+
let Lt = !1;
|
|
110
110
|
function Je() {
|
|
111
|
-
|
|
111
|
+
Lt || (Lt = !0, ze.then(bt));
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function Nt(s) {
|
|
114
|
+
it.push(s);
|
|
115
115
|
}
|
|
116
116
|
const xt = /* @__PURE__ */ new Set();
|
|
117
|
-
let
|
|
117
|
+
let nt = 0;
|
|
118
118
|
function bt() {
|
|
119
|
-
if (
|
|
119
|
+
if (nt !== 0)
|
|
120
120
|
return;
|
|
121
|
-
const s =
|
|
121
|
+
const s = pt;
|
|
122
122
|
do {
|
|
123
123
|
try {
|
|
124
|
-
for (;
|
|
125
|
-
const n =
|
|
126
|
-
|
|
124
|
+
for (; nt < rt.length; ) {
|
|
125
|
+
const n = rt[nt];
|
|
126
|
+
nt++, ht(n), Ve(n.$$);
|
|
127
127
|
}
|
|
128
128
|
} catch (n) {
|
|
129
|
-
throw
|
|
129
|
+
throw rt.length = 0, nt = 0, n;
|
|
130
130
|
}
|
|
131
|
-
for (
|
|
131
|
+
for (ht(null), rt.length = 0, nt = 0; Mt.length; )
|
|
132
132
|
Mt.pop()();
|
|
133
|
-
for (let n = 0; n <
|
|
134
|
-
const t =
|
|
133
|
+
for (let n = 0; n < it.length; n += 1) {
|
|
134
|
+
const t = it[n];
|
|
135
135
|
xt.has(t) || (xt.add(t), t());
|
|
136
136
|
}
|
|
137
|
-
|
|
138
|
-
} while (
|
|
137
|
+
it.length = 0;
|
|
138
|
+
} while (rt.length);
|
|
139
139
|
for (; Kt.length; )
|
|
140
140
|
Kt.pop()();
|
|
141
|
-
|
|
141
|
+
Lt = !1, xt.clear(), ht(s);
|
|
142
142
|
}
|
|
143
143
|
function Ve(s) {
|
|
144
144
|
if (s.fragment !== null) {
|
|
145
|
-
s.update(),
|
|
145
|
+
s.update(), dt(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(
|
|
147
|
+
s.dirty = [-1], s.fragment && s.fragment.p(s.ctx, n), s.after_update.forEach(Nt);
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
function Be(s) {
|
|
151
151
|
const n = [], t = [];
|
|
152
|
-
|
|
152
|
+
it.forEach((e) => s.indexOf(e) === -1 ? n.push(e) : t.push(e)), t.forEach((e) => e()), it = n;
|
|
153
153
|
}
|
|
154
154
|
const Fe = /* @__PURE__ */ new Set();
|
|
155
155
|
function le(s, n) {
|
|
@@ -166,51 +166,51 @@ function Ge(s, n, t, e, r, i, o, h, p, d, b, _) {
|
|
|
166
166
|
const R = {};
|
|
167
167
|
for (; j--; )
|
|
168
168
|
R[s[j].key] = j;
|
|
169
|
-
const
|
|
169
|
+
const M = [], X = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map(), k = [];
|
|
170
170
|
for (j = T; j--; ) {
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
|
|
171
|
+
const x = _(r, i, j), z = t(x);
|
|
172
|
+
let J = o.get(z);
|
|
173
|
+
J ? e && k.push(() => J.p(x, n)) : (J = d(z, x), J.c()), X.set(z, M[j] = J), z in R && Z.set(z, Math.abs(j - R[z]));
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
function
|
|
177
|
-
le(
|
|
175
|
+
const B = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Set();
|
|
176
|
+
function q(x) {
|
|
177
|
+
le(x, 1), x.m(h, b), o.set(x.key, x), b = x.first, T--;
|
|
178
178
|
}
|
|
179
179
|
for (; A && T; ) {
|
|
180
|
-
const
|
|
181
|
-
|
|
180
|
+
const x = M[T - 1], z = s[A - 1], J = x.key, K = z.key;
|
|
181
|
+
x === z ? (b = x.first, A--, T--) : X.has(K) ? !o.has(J) || B.has(J) ? q(x) : U.has(K) ? A-- : Z.get(J) > Z.get(K) ? (U.add(J), q(x)) : (B.add(K), A--) : (p(z, o), A--);
|
|
182
182
|
}
|
|
183
183
|
for (; A--; ) {
|
|
184
|
-
const
|
|
185
|
-
|
|
184
|
+
const x = s[A];
|
|
185
|
+
X.has(x.key) || p(x, o);
|
|
186
186
|
}
|
|
187
187
|
for (; T; )
|
|
188
|
-
|
|
189
|
-
return
|
|
188
|
+
q(M[T - 1]);
|
|
189
|
+
return dt(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),
|
|
193
|
+
e && e.m(n, t), Nt(() => {
|
|
194
194
|
const i = s.$$.on_mount.map(oe).filter(ae);
|
|
195
|
-
s.$$.on_destroy ? s.$$.on_destroy.push(...i) :
|
|
196
|
-
}), r.forEach(
|
|
195
|
+
s.$$.on_destroy ? s.$$.on_destroy.push(...i) : dt(i), s.$$.on_mount = [];
|
|
196
|
+
}), r.forEach(Nt);
|
|
197
197
|
}
|
|
198
198
|
function qe(s, n) {
|
|
199
199
|
const t = s.$$;
|
|
200
|
-
t.fragment !== null && (Be(t.after_update),
|
|
200
|
+
t.fragment !== null && (Be(t.after_update), dt(t.on_destroy), t.fragment && t.fragment.d(n), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
201
201
|
}
|
|
202
202
|
function Ye(s, n) {
|
|
203
|
-
s.$$.dirty[0] === -1 && (
|
|
203
|
+
s.$$.dirty[0] === -1 && (rt.push(s), Je(), s.$$.dirty.fill(0)), s.$$.dirty[n / 31 | 0] |= 1 << n % 31;
|
|
204
204
|
}
|
|
205
205
|
function Ze(s, n, t, e, r, i, o, h = [-1]) {
|
|
206
|
-
const p =
|
|
207
|
-
|
|
206
|
+
const p = pt;
|
|
207
|
+
ht(s);
|
|
208
208
|
const d = s.$$ = {
|
|
209
209
|
fragment: null,
|
|
210
210
|
ctx: [],
|
|
211
211
|
// state
|
|
212
212
|
props: i,
|
|
213
|
-
update:
|
|
213
|
+
update: ut,
|
|
214
214
|
not_equal: r,
|
|
215
215
|
bound: Zt(),
|
|
216
216
|
// lifecycle
|
|
@@ -231,15 +231,15 @@ function Ze(s, n, t, e, r, i, o, h = [-1]) {
|
|
|
231
231
|
if (d.ctx = t ? t(s, n.props || {}, (_, A, ...T) => {
|
|
232
232
|
const j = T.length ? T[0] : A;
|
|
233
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,
|
|
234
|
+
}) : [], d.update(), b = !0, dt(d.before_update), d.fragment = e ? e(d.ctx) : !1, n.target) {
|
|
235
235
|
if (n.hydrate) {
|
|
236
236
|
const _ = He(n.target);
|
|
237
|
-
d.fragment && d.fragment.l(_), _.forEach(
|
|
237
|
+
d.fragment && d.fragment.l(_), _.forEach(gt);
|
|
238
238
|
} else
|
|
239
239
|
d.fragment && d.fragment.c();
|
|
240
240
|
n.intro && le(s.$$.fragment), Xe(s, n.target, n.anchor), bt();
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
ht(p);
|
|
243
243
|
}
|
|
244
244
|
let ue;
|
|
245
245
|
typeof HTMLElement == "function" && (ue = class extends HTMLElement {
|
|
@@ -285,7 +285,7 @@ typeof HTMLElement == "function" && (ue = class extends HTMLElement {
|
|
|
285
285
|
let o;
|
|
286
286
|
return {
|
|
287
287
|
c: function() {
|
|
288
|
-
o =
|
|
288
|
+
o = Q("slot"), i !== "default" && S(o, "name", i);
|
|
289
289
|
},
|
|
290
290
|
/**
|
|
291
291
|
* @param {HTMLElement} target
|
|
@@ -295,7 +295,7 @@ typeof HTMLElement == "function" && (ue = class extends HTMLElement {
|
|
|
295
295
|
Ct(d, o, b);
|
|
296
296
|
},
|
|
297
297
|
d: function(d) {
|
|
298
|
-
d &&
|
|
298
|
+
d && gt(o);
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
301
|
};
|
|
@@ -441,7 +441,7 @@ class Ke {
|
|
|
441
441
|
}
|
|
442
442
|
/** @returns {void} */
|
|
443
443
|
$destroy() {
|
|
444
|
-
qe(this, 1), this.$destroy =
|
|
444
|
+
qe(this, 1), this.$destroy = ut;
|
|
445
445
|
}
|
|
446
446
|
/**
|
|
447
447
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -451,7 +451,7 @@ class Ke {
|
|
|
451
451
|
*/
|
|
452
452
|
$on(n, t) {
|
|
453
453
|
if (!ae(t))
|
|
454
|
-
return
|
|
454
|
+
return ut;
|
|
455
455
|
const e = this.$$.callbacks[n] || (this.$$.callbacks[n] = []);
|
|
456
456
|
return e.push(t), () => {
|
|
457
457
|
const r = e.indexOf(t);
|
|
@@ -468,19 +468,19 @@ class Ke {
|
|
|
468
468
|
}
|
|
469
469
|
const ts = "4";
|
|
470
470
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ts);
|
|
471
|
-
const { isArray: es } = Array, ss = Object.keys,
|
|
471
|
+
const { isArray: es } = Array, ss = Object.keys, ft = (s) => {
|
|
472
472
|
if (!s)
|
|
473
473
|
return s;
|
|
474
474
|
if (es(s)) {
|
|
475
475
|
const n = [], t = s.length;
|
|
476
476
|
for (let e = 0; e < t; e++)
|
|
477
|
-
n.push(
|
|
477
|
+
n.push(ft(s[e]));
|
|
478
478
|
return n;
|
|
479
479
|
} else if (typeof s == "object") {
|
|
480
480
|
const n = ss(s), t = n.length, e = {};
|
|
481
481
|
for (let r = 0; r < t; r++) {
|
|
482
482
|
const i = n[r];
|
|
483
|
-
e[i] =
|
|
483
|
+
e[i] = ft(s[i]);
|
|
484
484
|
}
|
|
485
485
|
return e;
|
|
486
486
|
}
|
|
@@ -533,7 +533,7 @@ const { isArray: pe } = Array, O = (s, n) => {
|
|
|
533
533
|
else
|
|
534
534
|
throw new Error("NOT_FOUND");
|
|
535
535
|
return { val: s, obj: e, key: r };
|
|
536
|
-
},
|
|
536
|
+
}, vt = (s) => pe(s.obj) && typeof s.key == "number", kt = (s) => typeof s.obj == "object" && typeof s.key == "string";
|
|
537
537
|
class It extends D {
|
|
538
538
|
constructor(t, e) {
|
|
539
539
|
super(t);
|
|
@@ -547,7 +547,7 @@ class It extends D {
|
|
|
547
547
|
return 0;
|
|
548
548
|
}
|
|
549
549
|
apply(t) {
|
|
550
|
-
const { val: e, key: r, obj: i } = O(t, this.path), o =
|
|
550
|
+
const { val: e, key: r, obj: i } = O(t, this.path), o = ft(this.value);
|
|
551
551
|
if (!i)
|
|
552
552
|
t = o;
|
|
553
553
|
else if (typeof r == "string")
|
|
@@ -594,7 +594,7 @@ class fe extends D {
|
|
|
594
594
|
const e = O(t, this.path);
|
|
595
595
|
if (e.val === void 0)
|
|
596
596
|
throw new Error("NOT_FOUND");
|
|
597
|
-
return kt(e) ? delete e.obj[e.key] :
|
|
597
|
+
return kt(e) ? delete e.obj[e.key] : vt(e) ? e.val !== void 0 && e.obj.splice(e.key, 1) : t = null, { doc: t, old: e.val };
|
|
598
598
|
}
|
|
599
599
|
toJson(t) {
|
|
600
600
|
const e = {
|
|
@@ -629,7 +629,7 @@ class fs extends D {
|
|
|
629
629
|
const e = O(t, this.path);
|
|
630
630
|
if (e.val === void 0)
|
|
631
631
|
throw new Error("NOT_FOUND");
|
|
632
|
-
return kt(e) ? e.obj[e.key] = this.value :
|
|
632
|
+
return kt(e) ? e.obj[e.key] = this.value : vt(e) ? e.obj[e.key] = this.value : t = this.value, { doc: t, old: e.val };
|
|
633
633
|
}
|
|
634
634
|
toJson(t) {
|
|
635
635
|
const e = {
|
|
@@ -694,7 +694,7 @@ class gs extends D {
|
|
|
694
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,
|
|
697
|
+
return new It(this.path, ft(e)).apply(t);
|
|
698
698
|
}
|
|
699
699
|
toJson(t) {
|
|
700
700
|
return {
|
|
@@ -717,7 +717,7 @@ class P extends D {
|
|
|
717
717
|
return { doc: n };
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
|
-
const
|
|
720
|
+
const Et = (s, n) => {
|
|
721
721
|
if (s === n)
|
|
722
722
|
return !0;
|
|
723
723
|
if (s && n && typeof s == "object" && typeof n == "object") {
|
|
@@ -728,7 +728,7 @@ const $t = (s, n) => {
|
|
|
728
728
|
if (t = s.length, t !== n.length)
|
|
729
729
|
return !1;
|
|
730
730
|
for (e = t; e-- !== 0; )
|
|
731
|
-
if (
|
|
731
|
+
if (!Et(s[e], n[e]))
|
|
732
732
|
return !1;
|
|
733
733
|
return !0;
|
|
734
734
|
}
|
|
@@ -736,7 +736,7 @@ const $t = (s, n) => {
|
|
|
736
736
|
return !1;
|
|
737
737
|
for (e = t; e-- !== 0; ) {
|
|
738
738
|
const i = r[e];
|
|
739
|
-
if (
|
|
739
|
+
if (!Et(s[i], n[i]))
|
|
740
740
|
return !1;
|
|
741
741
|
}
|
|
742
742
|
return !0;
|
|
@@ -760,7 +760,7 @@ class vs extends P {
|
|
|
760
760
|
const { val: e } = O(t, this.path);
|
|
761
761
|
if (e === void 0)
|
|
762
762
|
return !!this.not;
|
|
763
|
-
const r =
|
|
763
|
+
const r = Et(e, this.value);
|
|
764
764
|
return this.not ? !r : r;
|
|
765
765
|
}
|
|
766
766
|
toJson(t) {
|
|
@@ -921,11 +921,11 @@ class _s extends D {
|
|
|
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),
|
|
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) => {
|
|
925
925
|
const t = new RegExp(s, n ? "i" : void 0);
|
|
926
926
|
return (e) => t.test(e);
|
|
927
927
|
};
|
|
928
|
-
class
|
|
928
|
+
class $s extends D {
|
|
929
929
|
constructor(t, e, r) {
|
|
930
930
|
super(t);
|
|
931
931
|
f(this, "pos");
|
|
@@ -943,7 +943,7 @@ class Es extends D {
|
|
|
943
943
|
if (e.val === void 0)
|
|
944
944
|
throw new Error("NOT_FOUND");
|
|
945
945
|
const r = this.split(e.val);
|
|
946
|
-
return kt(e) ? e.obj[e.key] = r :
|
|
946
|
+
return kt(e) ? e.obj[e.key] = r : vt(e) ? (e.obj[e.key] = r[0], e.obj.splice(e.key + 1, 0, r[1])) : t = r, { doc: t, old: e.val };
|
|
947
947
|
}
|
|
948
948
|
split(t) {
|
|
949
949
|
if (typeof t == "string") {
|
|
@@ -1023,7 +1023,7 @@ class Cs extends D {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
apply(t) {
|
|
1025
1025
|
const e = O(t, this.path);
|
|
1026
|
-
if (!
|
|
1026
|
+
if (!vt(e))
|
|
1027
1027
|
throw new Error("INVALID_TARGET");
|
|
1028
1028
|
if (e.key <= 0)
|
|
1029
1029
|
throw new Error("INVALID_KEY");
|
|
@@ -1065,7 +1065,7 @@ class As extends D {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
apply(t) {
|
|
1067
1067
|
const e = O(t, this.path);
|
|
1068
|
-
return
|
|
1068
|
+
return vt(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) {
|
|
1071
1071
|
if (ks(t) || typeof t != "object" || !t)
|
|
@@ -1263,7 +1263,7 @@ class Ms extends P {
|
|
|
1263
1263
|
t.encodeArrayHeader(this.not ? 4 : 3), t.writer.u8(41), t.encodeArray(e ? this.path.slice(e.path.length) : this.path), t.encodeNumber(this.len), this.not && t.writer.u8(1);
|
|
1264
1264
|
}
|
|
1265
1265
|
}
|
|
1266
|
-
class
|
|
1266
|
+
class Ls extends P {
|
|
1267
1267
|
constructor(t, e, r) {
|
|
1268
1268
|
super(t);
|
|
1269
1269
|
f(this, "value");
|
|
@@ -1300,7 +1300,7 @@ class Ns extends P {
|
|
|
1300
1300
|
t.encodeArrayHeader(r ? 4 : 3), t.writer.u8(30), t.encodeArray(e ? this.path.slice(e.path.length) : this.path), t.encodeString(this.value), r && t.writer.u8(1);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
class
|
|
1303
|
+
class Ns extends P {
|
|
1304
1304
|
constructor(t, e, r) {
|
|
1305
1305
|
super(t);
|
|
1306
1306
|
f(this, "value");
|
|
@@ -1389,7 +1389,7 @@ class Hs extends P {
|
|
|
1389
1389
|
test(t) {
|
|
1390
1390
|
const { val: e } = O(t, this.path);
|
|
1391
1391
|
for (const r of this.value)
|
|
1392
|
-
if (
|
|
1392
|
+
if (Et(e, r))
|
|
1393
1393
|
return !0;
|
|
1394
1394
|
return !1;
|
|
1395
1395
|
}
|
|
@@ -1682,7 +1682,7 @@ const Fs = (s, n) => {
|
|
|
1682
1682
|
case "str_del":
|
|
1683
1683
|
return new _s(w(s.path), s.pos, s.str, s.len);
|
|
1684
1684
|
case "split":
|
|
1685
|
-
return new
|
|
1685
|
+
return new $s(w(s.path), s.pos, s.props || null);
|
|
1686
1686
|
case "merge":
|
|
1687
1687
|
return new Cs(w(s.path), s.pos, s.props || null);
|
|
1688
1688
|
case "extend":
|
|
@@ -1707,13 +1707,13 @@ const Fs = (s, n) => {
|
|
|
1707
1707
|
case "test_string_len":
|
|
1708
1708
|
return new Ms(w(s.path), s.len, !!s.not);
|
|
1709
1709
|
case "contains":
|
|
1710
|
-
return new Ns(w(s.path), s.value, !!s.ignore_case);
|
|
1711
|
-
case "ends":
|
|
1712
1710
|
return new Ls(w(s.path), s.value, !!s.ignore_case);
|
|
1711
|
+
case "ends":
|
|
1712
|
+
return new Ns(w(s.path), s.value, !!s.ignore_case);
|
|
1713
1713
|
case "starts":
|
|
1714
1714
|
return new Rs(w(s.path), s.value, !!s.ignore_case);
|
|
1715
1715
|
case "matches":
|
|
1716
|
-
return new Js(w(s.path), s.value, !!s.ignore_case, n.createMatcher ||
|
|
1716
|
+
return new Js(w(s.path), s.value, !!s.ignore_case, n.createMatcher || Es);
|
|
1717
1717
|
case "in":
|
|
1718
1718
|
return new Hs(w(s.path), s.value);
|
|
1719
1719
|
case "less":
|
|
@@ -1737,7 +1737,7 @@ const Fs = (s, n) => {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
};
|
|
1739
1739
|
function Ws(s, n, t) {
|
|
1740
|
-
t.mutate || (s =
|
|
1740
|
+
t.mutate || (s = ft(s));
|
|
1741
1741
|
const e = [], r = n.length;
|
|
1742
1742
|
for (let i = 0; i < r; i++) {
|
|
1743
1743
|
const h = Fs(n[i], t).apply(s);
|
|
@@ -1745,15 +1745,15 @@ function Ws(s, n, t) {
|
|
|
1745
1745
|
}
|
|
1746
1746
|
return { doc: s, res: e };
|
|
1747
1747
|
}
|
|
1748
|
-
var
|
|
1748
|
+
var ct = (s) => typeof s == "function" ? s : function() {
|
|
1749
1749
|
return s;
|
|
1750
|
-
}, Gs = typeof self < "u" ? self : null,
|
|
1750
|
+
}, Gs = typeof self < "u" ? self : null, at = typeof window < "u" ? window : null, lt = Gs || at || lt, Xs = "2.0.0", V = { connecting: 0, open: 1, closing: 2, closed: 3 }, qs = 1e4, Ys = 1e3, I = {
|
|
1751
1751
|
closed: "closed",
|
|
1752
1752
|
errored: "errored",
|
|
1753
1753
|
joined: "joined",
|
|
1754
1754
|
joining: "joining",
|
|
1755
1755
|
leaving: "leaving"
|
|
1756
|
-
},
|
|
1756
|
+
}, G = {
|
|
1757
1757
|
close: "phx_close",
|
|
1758
1758
|
error: "phx_error",
|
|
1759
1759
|
join: "phx_join",
|
|
@@ -1824,7 +1824,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
}, Qs = class {
|
|
1826
1826
|
constructor(s, n, t) {
|
|
1827
|
-
this.state = I.closed, this.topic = s, this.params =
|
|
1827
|
+
this.state = I.closed, this.topic = s, this.params = ct(n || {}), this.socket = t, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new yt(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();
|
|
@@ -1837,8 +1837,8 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
1837
1837
|
}), this.onError((e) => {
|
|
1838
1838
|
this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, e), this.isJoining() && this.joinPush.reset(), this.state = I.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 yt(this,
|
|
1841
|
-
}), this.on(
|
|
1840
|
+
this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new yt(this, G.leave, ct({}), this.timeout).send(), this.state = I.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 ot = (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(
|
|
1851
|
+
this.on(G.close, s);
|
|
1852
1852
|
}
|
|
1853
1853
|
onError(s) {
|
|
1854
|
-
return this.on(
|
|
1854
|
+
return this.on(G.error, (n) => s(n));
|
|
1855
1855
|
}
|
|
1856
1856
|
on(s, n) {
|
|
1857
1857
|
let t = this.bindingRef++;
|
|
@@ -1874,8 +1874,8 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
1874
1874
|
leave(s = this.timeout) {
|
|
1875
1875
|
this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = I.leaving;
|
|
1876
1876
|
let n = () => {
|
|
1877
|
-
this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(
|
|
1878
|
-
}, t = new yt(this,
|
|
1877
|
+
this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(G.close, "leave");
|
|
1878
|
+
}, t = new yt(this, G.leave, ct({}), 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) {
|
|
@@ -1916,13 +1916,13 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
1916
1916
|
isLeaving() {
|
|
1917
1917
|
return this.state === I.leaving;
|
|
1918
1918
|
}
|
|
1919
|
-
},
|
|
1919
|
+
}, $t = class {
|
|
1920
1920
|
static request(s, n, t, e, r, i, o) {
|
|
1921
|
-
if (
|
|
1922
|
-
let h = new
|
|
1921
|
+
if (lt.XDomainRequest) {
|
|
1922
|
+
let h = new lt.XDomainRequest();
|
|
1923
1923
|
return this.xdomainRequest(h, s, n, e, r, i, o);
|
|
1924
1924
|
} else {
|
|
1925
|
-
let h = new
|
|
1925
|
+
let h = new lt.XMLHttpRequest();
|
|
1926
1926
|
return this.xhrRequest(h, s, n, t, e, r, i, o);
|
|
1927
1927
|
}
|
|
1928
1928
|
}
|
|
@@ -1972,22 +1972,22 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
1972
1972
|
}, this.onerror = function() {
|
|
1973
1973
|
}, this.onmessage = function() {
|
|
1974
1974
|
}, this.onclose = function() {
|
|
1975
|
-
}, this.pollEndpoint = this.normalizeEndpoint(s), this.readyState =
|
|
1975
|
+
}, this.pollEndpoint = this.normalizeEndpoint(s), this.readyState = V.connecting, this.poll();
|
|
1976
1976
|
}
|
|
1977
1977
|
normalizeEndpoint(s) {
|
|
1978
1978
|
return s.replace("ws://", "http://").replace("wss://", "https://").replace(new RegExp("(.*)/" + Pt.websocket), "$1/" + Pt.longpoll);
|
|
1979
1979
|
}
|
|
1980
1980
|
endpointURL() {
|
|
1981
|
-
return
|
|
1981
|
+
return $t.appendParams(this.pollEndpoint, { token: this.token });
|
|
1982
1982
|
}
|
|
1983
1983
|
closeAndRetry(s, n, t) {
|
|
1984
|
-
this.close(s, n, t), this.readyState =
|
|
1984
|
+
this.close(s, n, t), this.readyState = V.connecting;
|
|
1985
1985
|
}
|
|
1986
1986
|
ontimeout() {
|
|
1987
1987
|
this.onerror("timeout"), this.closeAndRetry(1005, "timeout", !1);
|
|
1988
1988
|
}
|
|
1989
1989
|
isActive() {
|
|
1990
|
-
return this.readyState ===
|
|
1990
|
+
return this.readyState === V.open || this.readyState === V.connecting;
|
|
1991
1991
|
}
|
|
1992
1992
|
poll() {
|
|
1993
1993
|
this.ajax("GET", null, () => this.ontimeout(), (s) => {
|
|
@@ -2006,7 +2006,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
2006
2006
|
this.poll();
|
|
2007
2007
|
break;
|
|
2008
2008
|
case 410:
|
|
2009
|
-
this.readyState =
|
|
2009
|
+
this.readyState = V.open, this.onopen({}), this.poll();
|
|
2010
2010
|
break;
|
|
2011
2011
|
case 403:
|
|
2012
2012
|
this.onerror(403), this.close(1008, "forbidden", !1);
|
|
@@ -2028,7 +2028,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
2028
2028
|
close(s, n, t) {
|
|
2029
2029
|
for (let r of this.reqs)
|
|
2030
2030
|
r.abort();
|
|
2031
|
-
this.readyState =
|
|
2031
|
+
this.readyState = V.closed;
|
|
2032
2032
|
let e = Object.assign({ code: 1e3, reason: void 0, wasClean: !0 }, { code: s, reason: n, wasClean: t });
|
|
2033
2033
|
typeof CloseEvent < "u" ? this.onclose(new CloseEvent("close", e)) : this.onclose(e);
|
|
2034
2034
|
}
|
|
@@ -2036,7 +2036,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
2036
2036
|
let r, i = () => {
|
|
2037
2037
|
this.reqs.delete(r), t();
|
|
2038
2038
|
};
|
|
2039
|
-
r =
|
|
2039
|
+
r = $t.request(s, this.endpointURL(), "application/json", n, this.timeout, i, (o) => {
|
|
2040
2040
|
this.reqs.delete(r), this.isActive() && e(o);
|
|
2041
2041
|
}), this.reqs.add(r);
|
|
2042
2042
|
}
|
|
@@ -2097,7 +2097,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
2097
2097
|
let _ = t.decode(s.slice(h, h + o));
|
|
2098
2098
|
h = h + o;
|
|
2099
2099
|
let A = s.slice(h, s.byteLength), T = { status: _, response: A };
|
|
2100
|
-
return { join_ref: p, ref: d, topic: b, event:
|
|
2100
|
+
return { join_ref: p, ref: d, topic: b, event: G.reply, payload: T };
|
|
2101
2101
|
},
|
|
2102
2102
|
decodeBroadcast(s, n, t) {
|
|
2103
2103
|
let e = n.getUint8(1), r = n.getUint8(2), i = this.HEADER_LENGTH + 2, o = t.decode(s.slice(i, i + e));
|
|
@@ -2109,13 +2109,13 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
}, Ks = class {
|
|
2111
2111
|
constructor(s, n = {}) {
|
|
2112
|
-
this.stateChangeCallbacks = { open: [], close: [], error: [], message: [] }, this.channels = [], this.sendBuffer = [], this.ref = 0, this.timeout = n.timeout || qs, this.transport = n.transport ||
|
|
2112
|
+
this.stateChangeCallbacks = { open: [], close: [], error: [], message: [] }, this.channels = [], this.sendBuffer = [], this.ref = 0, this.timeout = n.timeout || qs, this.transport = n.transport || lt.WebSocket || St, this.establishedConnections = 0, this.defaultEncoder = mt.encode.bind(mt), this.defaultDecoder = mt.decode.bind(mt), this.closeWasClean = !1, this.binaryType = n.binaryType || "arraybuffer", this.connectClock = 1, this.transport !== St ? (this.encode = n.encode || this.defaultEncoder, this.decode = n.decode || this.defaultDecoder) : (this.encode = this.defaultEncoder, this.decode = this.defaultDecoder);
|
|
2113
2113
|
let t = null;
|
|
2114
|
-
|
|
2114
|
+
at && at.addEventListener && (at.addEventListener("pagehide", (e) => {
|
|
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 =
|
|
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 = ct(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(() => {
|
|
2119
2119
|
this.teardown(() => this.connect());
|
|
2120
2120
|
}, this.reconnectAfterMs);
|
|
2121
2121
|
}
|
|
@@ -2129,14 +2129,14 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
2129
2129
|
return location.protocol.match(/^https/) ? "wss" : "ws";
|
|
2130
2130
|
}
|
|
2131
2131
|
endPointURL() {
|
|
2132
|
-
let s =
|
|
2132
|
+
let s = $t.appendParams($t.appendParams(this.endPoint, this.params()), { vsn: this.vsn });
|
|
2133
2133
|
return s.charAt(0) !== "/" ? s : s.charAt(1) === "/" ? `${this.protocol()}:${s}` : `${this.protocol()}://${location.host}${s}`;
|
|
2134
2134
|
}
|
|
2135
2135
|
disconnect(s, n, t) {
|
|
2136
2136
|
this.connectClock++, this.closeWasClean = !0, this.reconnectTimer.reset(), this.teardown(s, n, t);
|
|
2137
2137
|
}
|
|
2138
2138
|
connect(s) {
|
|
2139
|
-
s && (console && console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"), this.params =
|
|
2139
|
+
s && (console && console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"), this.params = ct(s)), !this.conn && (this.connectClock++, this.closeWasClean = !1, this.conn = new this.transport(this.endPointURL()), this.conn.binaryType = this.binaryType, this.conn.timeout = this.longpollerTimeout, this.conn.onopen = () => this.onConnOpen(), this.conn.onerror = (n) => this.onConnError(n), this.conn.onmessage = (n) => this.onConnMessage(n), this.conn.onclose = (n) => this.onConnClose(n));
|
|
2140
2140
|
}
|
|
2141
2141
|
log(s, n, t) {
|
|
2142
2142
|
this.logger(s, n, t);
|
|
@@ -2205,7 +2205,7 @@ var ot = (s) => typeof s == "function" ? s : function() {
|
|
|
2205
2205
|
}, 150 * n);
|
|
2206
2206
|
}
|
|
2207
2207
|
waitForSocketClosed(s, n = 1) {
|
|
2208
|
-
if (n === 5 || !this.conn || this.conn.readyState ===
|
|
2208
|
+
if (n === 5 || !this.conn || this.conn.readyState === V.closed) {
|
|
2209
2209
|
s();
|
|
2210
2210
|
return;
|
|
2211
2211
|
}
|
|
@@ -2226,16 +2226,16 @@ var ot = (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(
|
|
2229
|
+
s.isErrored() || s.isLeaving() || s.isClosed() || s.trigger(G.error);
|
|
2230
2230
|
});
|
|
2231
2231
|
}
|
|
2232
2232
|
connectionState() {
|
|
2233
2233
|
switch (this.conn && this.conn.readyState) {
|
|
2234
|
-
case
|
|
2234
|
+
case V.connecting:
|
|
2235
2235
|
return "connecting";
|
|
2236
|
-
case
|
|
2236
|
+
case V.open:
|
|
2237
2237
|
return "open";
|
|
2238
|
-
case
|
|
2238
|
+
case V.closing:
|
|
2239
2239
|
return "closing";
|
|
2240
2240
|
default:
|
|
2241
2241
|
return "closed";
|
|
@@ -2420,99 +2420,99 @@ var se;
|
|
|
2420
2420
|
return a[c];
|
|
2421
2421
|
}
|
|
2422
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
|
|
2424
|
-
if (
|
|
2423
|
+
function M(a, c, l, u) {
|
|
2424
|
+
if (L(l)) {
|
|
2425
2425
|
if (!Gt(a))
|
|
2426
2426
|
throw new TypeError();
|
|
2427
2427
|
if (!Xt(c))
|
|
2428
2428
|
throw new TypeError();
|
|
2429
|
-
return
|
|
2429
|
+
return K(a, c);
|
|
2430
2430
|
} else {
|
|
2431
2431
|
if (!Gt(a))
|
|
2432
2432
|
throw new TypeError();
|
|
2433
|
-
if (!
|
|
2433
|
+
if (!N(c))
|
|
2434
2434
|
throw new TypeError();
|
|
2435
|
-
if (!
|
|
2435
|
+
if (!N(u) && !L(u) && !tt(u))
|
|
2436
2436
|
throw new TypeError();
|
|
2437
|
-
return
|
|
2437
|
+
return tt(u) && (u = void 0), l = F(l), ge(a, c, l, u);
|
|
2438
2438
|
}
|
|
2439
2439
|
}
|
|
2440
|
-
n("decorate",
|
|
2441
|
-
function
|
|
2440
|
+
n("decorate", M);
|
|
2441
|
+
function X(a, c) {
|
|
2442
2442
|
function l(u, g) {
|
|
2443
|
-
if (!
|
|
2443
|
+
if (!N(u))
|
|
2444
2444
|
throw new TypeError();
|
|
2445
|
-
if (!
|
|
2445
|
+
if (!L(g) && !be(g))
|
|
2446
2446
|
throw new TypeError();
|
|
2447
2447
|
Vt(a, c, u, g);
|
|
2448
2448
|
}
|
|
2449
2449
|
return l;
|
|
2450
2450
|
}
|
|
2451
|
-
n("metadata",
|
|
2452
|
-
function
|
|
2453
|
-
if (!
|
|
2451
|
+
n("metadata", X);
|
|
2452
|
+
function Z(a, c, l, u) {
|
|
2453
|
+
if (!N(l))
|
|
2454
2454
|
throw new TypeError();
|
|
2455
|
-
return
|
|
2455
|
+
return L(u) || (u = F(u)), Vt(a, c, l, u);
|
|
2456
2456
|
}
|
|
2457
|
-
n("defineMetadata",
|
|
2458
|
-
function
|
|
2459
|
-
if (!
|
|
2457
|
+
n("defineMetadata", Z);
|
|
2458
|
+
function k(a, c, l) {
|
|
2459
|
+
if (!N(c))
|
|
2460
2460
|
throw new TypeError();
|
|
2461
|
-
return
|
|
2461
|
+
return L(l) || (l = F(l)), Ut(a, c, l);
|
|
2462
2462
|
}
|
|
2463
|
-
n("hasMetadata",
|
|
2464
|
-
function
|
|
2465
|
-
if (!
|
|
2463
|
+
n("hasMetadata", k);
|
|
2464
|
+
function B(a, c, l) {
|
|
2465
|
+
if (!N(c))
|
|
2466
2466
|
throw new TypeError();
|
|
2467
|
-
return
|
|
2467
|
+
return L(l) || (l = F(l)), At(a, c, l);
|
|
2468
2468
|
}
|
|
2469
|
-
n("hasOwnMetadata",
|
|
2470
|
-
function
|
|
2471
|
-
if (!
|
|
2469
|
+
n("hasOwnMetadata", B);
|
|
2470
|
+
function U(a, c, l) {
|
|
2471
|
+
if (!N(c))
|
|
2472
2472
|
throw new TypeError();
|
|
2473
|
-
return
|
|
2473
|
+
return L(l) || (l = F(l)), zt(a, c, l);
|
|
2474
2474
|
}
|
|
2475
|
-
n("getMetadata",
|
|
2476
|
-
function
|
|
2477
|
-
if (!
|
|
2475
|
+
n("getMetadata", U);
|
|
2476
|
+
function q(a, c, l) {
|
|
2477
|
+
if (!N(c))
|
|
2478
2478
|
throw new TypeError();
|
|
2479
|
-
return
|
|
2479
|
+
return L(l) || (l = F(l)), Jt(a, c, l);
|
|
2480
2480
|
}
|
|
2481
|
-
n("getOwnMetadata",
|
|
2482
|
-
function
|
|
2483
|
-
if (!
|
|
2481
|
+
n("getOwnMetadata", q);
|
|
2482
|
+
function x(a, c) {
|
|
2483
|
+
if (!N(a))
|
|
2484
2484
|
throw new TypeError();
|
|
2485
|
-
return
|
|
2485
|
+
return L(c) || (c = F(c)), Bt(a, c);
|
|
2486
2486
|
}
|
|
2487
|
-
n("getMetadataKeys",
|
|
2488
|
-
function
|
|
2489
|
-
if (!
|
|
2487
|
+
n("getMetadataKeys", x);
|
|
2488
|
+
function z(a, c) {
|
|
2489
|
+
if (!N(a))
|
|
2490
2490
|
throw new TypeError();
|
|
2491
|
-
return
|
|
2491
|
+
return L(c) || (c = F(c)), Ft(a, c);
|
|
2492
2492
|
}
|
|
2493
|
-
n("getOwnMetadataKeys",
|
|
2494
|
-
function
|
|
2495
|
-
if (!
|
|
2493
|
+
n("getOwnMetadataKeys", z);
|
|
2494
|
+
function J(a, c, l) {
|
|
2495
|
+
if (!N(c))
|
|
2496
2496
|
throw new TypeError();
|
|
2497
|
-
|
|
2498
|
-
var u =
|
|
2497
|
+
L(l) || (l = F(l));
|
|
2498
|
+
var u = ot(
|
|
2499
2499
|
c,
|
|
2500
2500
|
l,
|
|
2501
2501
|
/*Create*/
|
|
2502
2502
|
!1
|
|
2503
2503
|
);
|
|
2504
|
-
if (
|
|
2504
|
+
if (L(u) || !u.delete(a))
|
|
2505
2505
|
return !1;
|
|
2506
2506
|
if (u.size > 0)
|
|
2507
2507
|
return !0;
|
|
2508
2508
|
var g = R.get(c);
|
|
2509
2509
|
return g.delete(l), g.size > 0 || R.delete(c), !0;
|
|
2510
2510
|
}
|
|
2511
|
-
n("deleteMetadata",
|
|
2512
|
-
function
|
|
2511
|
+
n("deleteMetadata", J);
|
|
2512
|
+
function K(a, c) {
|
|
2513
2513
|
for (var l = a.length - 1; l >= 0; --l) {
|
|
2514
2514
|
var u = a[l], g = u(c);
|
|
2515
|
-
if (!
|
|
2515
|
+
if (!L(g) && !tt(g)) {
|
|
2516
2516
|
if (!Xt(g))
|
|
2517
2517
|
throw new TypeError();
|
|
2518
2518
|
c = g;
|
|
@@ -2523,23 +2523,23 @@ var se;
|
|
|
2523
2523
|
function ge(a, c, l, u) {
|
|
2524
2524
|
for (var g = a.length - 1; g >= 0; --g) {
|
|
2525
2525
|
var H = a[g], y = H(c, l, u);
|
|
2526
|
-
if (!
|
|
2527
|
-
if (!
|
|
2526
|
+
if (!L(y) && !tt(y)) {
|
|
2527
|
+
if (!N(y))
|
|
2528
2528
|
throw new TypeError();
|
|
2529
2529
|
u = y;
|
|
2530
2530
|
}
|
|
2531
2531
|
}
|
|
2532
2532
|
return u;
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function ot(a, c, l) {
|
|
2535
2535
|
var u = R.get(a);
|
|
2536
|
-
if (
|
|
2536
|
+
if (L(u)) {
|
|
2537
2537
|
if (!l)
|
|
2538
2538
|
return;
|
|
2539
2539
|
u = new A(), R.set(a, u);
|
|
2540
2540
|
}
|
|
2541
2541
|
var g = u.get(c);
|
|
2542
|
-
if (
|
|
2542
|
+
if (L(g)) {
|
|
2543
2543
|
if (!l)
|
|
2544
2544
|
return;
|
|
2545
2545
|
g = new A(), u.set(c, g);
|
|
@@ -2551,37 +2551,37 @@ var se;
|
|
|
2551
2551
|
if (u)
|
|
2552
2552
|
return !0;
|
|
2553
2553
|
var g = Tt(c);
|
|
2554
|
-
return
|
|
2554
|
+
return tt(g) ? !1 : Ut(a, g, l);
|
|
2555
2555
|
}
|
|
2556
2556
|
function At(a, c, l) {
|
|
2557
|
-
var u =
|
|
2557
|
+
var u = ot(
|
|
2558
2558
|
c,
|
|
2559
2559
|
l,
|
|
2560
2560
|
/*Create*/
|
|
2561
2561
|
!1
|
|
2562
2562
|
);
|
|
2563
|
-
return
|
|
2563
|
+
return L(u) ? !1 : we(u.has(a));
|
|
2564
2564
|
}
|
|
2565
2565
|
function zt(a, c, l) {
|
|
2566
2566
|
var u = At(a, c, l);
|
|
2567
2567
|
if (u)
|
|
2568
2568
|
return Jt(a, c, l);
|
|
2569
2569
|
var g = Tt(c);
|
|
2570
|
-
if (!
|
|
2570
|
+
if (!tt(g))
|
|
2571
2571
|
return zt(a, g, l);
|
|
2572
2572
|
}
|
|
2573
2573
|
function Jt(a, c, l) {
|
|
2574
|
-
var u =
|
|
2574
|
+
var u = ot(
|
|
2575
2575
|
c,
|
|
2576
2576
|
l,
|
|
2577
2577
|
/*Create*/
|
|
2578
2578
|
!1
|
|
2579
2579
|
);
|
|
2580
|
-
if (!
|
|
2580
|
+
if (!L(u))
|
|
2581
2581
|
return u.get(a);
|
|
2582
2582
|
}
|
|
2583
2583
|
function Vt(a, c, l, u) {
|
|
2584
|
-
var g =
|
|
2584
|
+
var g = ot(
|
|
2585
2585
|
l,
|
|
2586
2586
|
u,
|
|
2587
2587
|
/*Create*/
|
|
@@ -2599,36 +2599,36 @@ var se;
|
|
|
2599
2599
|
if (l.length <= 0)
|
|
2600
2600
|
return g;
|
|
2601
2601
|
for (var H = new T(), y = [], m = 0, v = l; m < v.length; m++) {
|
|
2602
|
-
var
|
|
2603
|
-
|
|
2602
|
+
var E = v[m], $ = H.has(E);
|
|
2603
|
+
$ || (H.add(E), y.push(E));
|
|
2604
2604
|
}
|
|
2605
|
-
for (var
|
|
2606
|
-
var
|
|
2607
|
-
|
|
2605
|
+
for (var Y = 0, Yt = g; Y < Yt.length; Y++) {
|
|
2606
|
+
var E = Yt[Y], $ = H.has(E);
|
|
2607
|
+
$ || (H.add(E), y.push(E));
|
|
2608
2608
|
}
|
|
2609
2609
|
return y;
|
|
2610
2610
|
}
|
|
2611
2611
|
function Ft(a, c) {
|
|
2612
|
-
var l = [], u =
|
|
2612
|
+
var l = [], u = ot(
|
|
2613
2613
|
a,
|
|
2614
2614
|
c,
|
|
2615
2615
|
/*Create*/
|
|
2616
2616
|
!1
|
|
2617
2617
|
);
|
|
2618
|
-
if (
|
|
2618
|
+
if (L(u))
|
|
2619
2619
|
return l;
|
|
2620
|
-
for (var g = u.keys(), H =
|
|
2620
|
+
for (var g = u.keys(), H = Ee(g), y = 0; ; ) {
|
|
2621
2621
|
var m = Ce(H);
|
|
2622
2622
|
if (!m)
|
|
2623
2623
|
return l.length = y, l;
|
|
2624
|
-
var v =
|
|
2624
|
+
var v = $e(m);
|
|
2625
2625
|
try {
|
|
2626
2626
|
l[y] = v;
|
|
2627
|
-
} catch (
|
|
2627
|
+
} catch (E) {
|
|
2628
2628
|
try {
|
|
2629
2629
|
ke(H);
|
|
2630
2630
|
} finally {
|
|
2631
|
-
throw
|
|
2631
|
+
throw E;
|
|
2632
2632
|
}
|
|
2633
2633
|
}
|
|
2634
2634
|
y++;
|
|
@@ -2654,16 +2654,16 @@ var se;
|
|
|
2654
2654
|
return 6;
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
|
-
function
|
|
2657
|
+
function L(a) {
|
|
2658
2658
|
return a === void 0;
|
|
2659
2659
|
}
|
|
2660
|
-
function
|
|
2660
|
+
function tt(a) {
|
|
2661
2661
|
return a === null;
|
|
2662
2662
|
}
|
|
2663
2663
|
function ve(a) {
|
|
2664
2664
|
return typeof a == "symbol";
|
|
2665
2665
|
}
|
|
2666
|
-
function
|
|
2666
|
+
function N(a) {
|
|
2667
2667
|
return typeof a == "object" ? a !== null : typeof a == "function";
|
|
2668
2668
|
}
|
|
2669
2669
|
function ye(a, c) {
|
|
@@ -2684,7 +2684,7 @@ var se;
|
|
|
2684
2684
|
var l = c === 3 ? "string" : c === 5 ? "number" : "default", u = qt(a, r);
|
|
2685
2685
|
if (u !== void 0) {
|
|
2686
2686
|
var g = u.call(a, l);
|
|
2687
|
-
if (
|
|
2687
|
+
if (N(g))
|
|
2688
2688
|
throw new TypeError();
|
|
2689
2689
|
return g;
|
|
2690
2690
|
}
|
|
@@ -2693,28 +2693,28 @@ var se;
|
|
|
2693
2693
|
function me(a, c) {
|
|
2694
2694
|
if (c === "string") {
|
|
2695
2695
|
var l = a.toString;
|
|
2696
|
-
if (
|
|
2696
|
+
if (et(l)) {
|
|
2697
2697
|
var u = l.call(a);
|
|
2698
|
-
if (!
|
|
2698
|
+
if (!N(u))
|
|
2699
2699
|
return u;
|
|
2700
2700
|
}
|
|
2701
2701
|
var g = a.valueOf;
|
|
2702
|
-
if (
|
|
2702
|
+
if (et(g)) {
|
|
2703
2703
|
var u = g.call(a);
|
|
2704
|
-
if (!
|
|
2704
|
+
if (!N(u))
|
|
2705
2705
|
return u;
|
|
2706
2706
|
}
|
|
2707
2707
|
} else {
|
|
2708
2708
|
var g = a.valueOf;
|
|
2709
|
-
if (
|
|
2709
|
+
if (et(g)) {
|
|
2710
2710
|
var u = g.call(a);
|
|
2711
|
-
if (!
|
|
2711
|
+
if (!N(u))
|
|
2712
2712
|
return u;
|
|
2713
2713
|
}
|
|
2714
2714
|
var H = a.toString;
|
|
2715
|
-
if (
|
|
2715
|
+
if (et(H)) {
|
|
2716
2716
|
var u = H.call(a);
|
|
2717
|
-
if (!
|
|
2717
|
+
if (!N(u))
|
|
2718
2718
|
return u;
|
|
2719
2719
|
}
|
|
2720
2720
|
}
|
|
@@ -2726,7 +2726,7 @@ var se;
|
|
|
2726
2726
|
function _e(a) {
|
|
2727
2727
|
return "" + a;
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function F(a) {
|
|
2730
2730
|
var c = ye(
|
|
2731
2731
|
a,
|
|
2732
2732
|
3
|
|
@@ -2737,7 +2737,7 @@ var se;
|
|
|
2737
2737
|
function Gt(a) {
|
|
2738
2738
|
return Array.isArray ? Array.isArray(a) : a instanceof Object ? a instanceof Array : Object.prototype.toString.call(a) === "[object Array]";
|
|
2739
2739
|
}
|
|
2740
|
-
function
|
|
2740
|
+
function et(a) {
|
|
2741
2741
|
return typeof a == "function";
|
|
2742
2742
|
}
|
|
2743
2743
|
function Xt(a) {
|
|
@@ -2756,21 +2756,21 @@ var se;
|
|
|
2756
2756
|
function qt(a, c) {
|
|
2757
2757
|
var l = a[c];
|
|
2758
2758
|
if (l != null) {
|
|
2759
|
-
if (!
|
|
2759
|
+
if (!et(l))
|
|
2760
2760
|
throw new TypeError();
|
|
2761
2761
|
return l;
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function Ee(a) {
|
|
2765
2765
|
var c = qt(a, i);
|
|
2766
|
-
if (!
|
|
2766
|
+
if (!et(c))
|
|
2767
2767
|
throw new TypeError();
|
|
2768
2768
|
var l = c.call(a);
|
|
2769
|
-
if (!
|
|
2769
|
+
if (!N(l))
|
|
2770
2770
|
throw new TypeError();
|
|
2771
2771
|
return l;
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function $e(a) {
|
|
2774
2774
|
return a.value;
|
|
2775
2775
|
}
|
|
2776
2776
|
function Ce(a) {
|
|
@@ -2795,8 +2795,8 @@ var se;
|
|
|
2795
2795
|
var a = {}, c = [], l = (
|
|
2796
2796
|
/** @class */
|
|
2797
2797
|
function() {
|
|
2798
|
-
function y(m, v,
|
|
2799
|
-
this._index = 0, this._keys = m, this._values = v, this._selector =
|
|
2798
|
+
function y(m, v, E) {
|
|
2799
|
+
this._index = 0, this._keys = m, this._values = v, this._selector = E;
|
|
2800
2800
|
}
|
|
2801
2801
|
return y.prototype["@@iterator"] = function() {
|
|
2802
2802
|
return this;
|
|
@@ -2842,12 +2842,12 @@ var se;
|
|
|
2842
2842
|
);
|
|
2843
2843
|
return v >= 0 ? this._values[v] : void 0;
|
|
2844
2844
|
}, y.prototype.set = function(m, v) {
|
|
2845
|
-
var
|
|
2845
|
+
var E = this._find(
|
|
2846
2846
|
m,
|
|
2847
2847
|
/*insert*/
|
|
2848
2848
|
!0
|
|
2849
2849
|
);
|
|
2850
|
-
return this._values[
|
|
2850
|
+
return this._values[E] = v, this;
|
|
2851
2851
|
}, y.prototype.delete = function(m) {
|
|
2852
2852
|
var v = this._find(
|
|
2853
2853
|
m,
|
|
@@ -2855,8 +2855,8 @@ var se;
|
|
|
2855
2855
|
!1
|
|
2856
2856
|
);
|
|
2857
2857
|
if (v >= 0) {
|
|
2858
|
-
for (var
|
|
2859
|
-
this._keys[
|
|
2858
|
+
for (var E = this._keys.length, $ = v + 1; $ < E; $++)
|
|
2859
|
+
this._keys[$ - 1] = this._keys[$], this._values[$ - 1] = this._values[$];
|
|
2860
2860
|
return this._keys.length--, this._values.length--, m === this._cacheKey && (this._cacheKey = a, this._cacheIndex = -2), !0;
|
|
2861
2861
|
}
|
|
2862
2862
|
return !1;
|
|
@@ -2930,34 +2930,34 @@ var se;
|
|
|
2930
2930
|
function v() {
|
|
2931
2931
|
this._key = u();
|
|
2932
2932
|
}
|
|
2933
|
-
return v.prototype.has = function(
|
|
2934
|
-
var
|
|
2935
|
-
|
|
2933
|
+
return v.prototype.has = function(E) {
|
|
2934
|
+
var $ = g(
|
|
2935
|
+
E,
|
|
2936
2936
|
/*create*/
|
|
2937
2937
|
!1
|
|
2938
2938
|
);
|
|
2939
|
-
return
|
|
2940
|
-
}, v.prototype.get = function(
|
|
2941
|
-
var
|
|
2942
|
-
|
|
2939
|
+
return $ !== void 0 ? d.has($, this._key) : !1;
|
|
2940
|
+
}, v.prototype.get = function(E) {
|
|
2941
|
+
var $ = g(
|
|
2942
|
+
E,
|
|
2943
2943
|
/*create*/
|
|
2944
2944
|
!1
|
|
2945
2945
|
);
|
|
2946
|
-
return
|
|
2947
|
-
}, v.prototype.set = function(
|
|
2948
|
-
var
|
|
2949
|
-
|
|
2946
|
+
return $ !== void 0 ? d.get($, this._key) : void 0;
|
|
2947
|
+
}, v.prototype.set = function(E, $) {
|
|
2948
|
+
var Y = g(
|
|
2949
|
+
E,
|
|
2950
2950
|
/*create*/
|
|
2951
2951
|
!0
|
|
2952
2952
|
);
|
|
2953
|
-
return
|
|
2954
|
-
}, v.prototype.delete = function(
|
|
2955
|
-
var
|
|
2956
|
-
|
|
2953
|
+
return Y[this._key] = $, this;
|
|
2954
|
+
}, v.prototype.delete = function(E) {
|
|
2955
|
+
var $ = g(
|
|
2956
|
+
E,
|
|
2957
2957
|
/*create*/
|
|
2958
2958
|
!1
|
|
2959
2959
|
);
|
|
2960
|
-
return
|
|
2960
|
+
return $ !== void 0 ? delete $[this._key] : !1;
|
|
2961
2961
|
}, v.prototype.clear = function() {
|
|
2962
2962
|
this._key = u();
|
|
2963
2963
|
}, v;
|
|
@@ -2970,17 +2970,17 @@ var se;
|
|
|
2970
2970
|
while (d.has(c, v));
|
|
2971
2971
|
return c[v] = !0, v;
|
|
2972
2972
|
}
|
|
2973
|
-
function g(v,
|
|
2973
|
+
function g(v, E) {
|
|
2974
2974
|
if (!t.call(v, l)) {
|
|
2975
|
-
if (
|
|
2975
|
+
if (!E)
|
|
2976
2976
|
return;
|
|
2977
2977
|
Object.defineProperty(v, l, { value: d.create() });
|
|
2978
2978
|
}
|
|
2979
2979
|
return v[l];
|
|
2980
2980
|
}
|
|
2981
|
-
function H(v,
|
|
2982
|
-
for (var
|
|
2983
|
-
v[
|
|
2981
|
+
function H(v, E) {
|
|
2982
|
+
for (var $ = 0; $ < E; ++$)
|
|
2983
|
+
v[$] = Math.random() * 255 | 0;
|
|
2984
2984
|
return v;
|
|
2985
2985
|
}
|
|
2986
2986
|
function y(v) {
|
|
@@ -2989,11 +2989,11 @@ var se;
|
|
|
2989
2989
|
function m() {
|
|
2990
2990
|
var v = y(a);
|
|
2991
2991
|
v[6] = v[6] & 79 | 64, v[8] = v[8] & 191 | 128;
|
|
2992
|
-
for (var
|
|
2993
|
-
var
|
|
2994
|
-
(
|
|
2992
|
+
for (var E = "", $ = 0; $ < a; ++$) {
|
|
2993
|
+
var Y = v[$];
|
|
2994
|
+
($ === 4 || $ === 6 || $ === 8) && (E += "-"), Y < 16 && (E += "0"), E += Y.toString(16).toLowerCase();
|
|
2995
2995
|
}
|
|
2996
|
-
return
|
|
2996
|
+
return E;
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
2999
|
function Ot(a) {
|
|
@@ -3002,11 +3002,11 @@ var se;
|
|
|
3002
3002
|
});
|
|
3003
3003
|
})(se || (se = {}));
|
|
3004
3004
|
function en(s) {
|
|
3005
|
-
|
|
3005
|
+
Le(s, "svelte-3iboz2", '#liveroom-client-element.svelte-3iboz2.svelte-3iboz2{font-family:Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}#users-container.svelte-3iboz2.svelte-3iboz2{z-index:99999;position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-3iboz2.svelte-3iboz2{z-index:10;position:absolute;top:0;left:0;user-select:none;transform:translate(var(--x), var(--y))}.user.svelte-3iboz2 .cursor.svelte-3iboz2{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-3iboz2 .cursor.svelte-3iboz2{display:none}.user-name.svelte-3iboz2.svelte-3iboz2{padding:4px 10px;font-size:14px;line-height:20px;font-weight:600;color:black;background-color:var(--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-3iboz2 .user-name.svelte-3iboz2{position:absolute;top:20px;left:16px}.user[data-isself="true"].svelte-3iboz2 .user-name.svelte-3iboz2{display:none}.user.svelte-3iboz2 .halo.svelte-3iboz2{transform:scale(0);z-index:-1;position:absolute;top:-60px;left:-60px;width:120px;height:120px;border-radius:9999px;background-color:var(--color);opacity:0.25;transition:transform 0.15s ease-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-3iboz2 .halo[data-show="true"].svelte-3iboz2{transform:scale(1)}');
|
|
3006
3006
|
}
|
|
3007
3007
|
function ne(s, n, t) {
|
|
3008
3008
|
const e = s.slice();
|
|
3009
|
-
return 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(
|
|
@@ -3015,7 +3015,7 @@ function re(s) {
|
|
|
3015
3015
|
));
|
|
3016
3016
|
const i = (o) => (
|
|
3017
3017
|
/*user*/
|
|
3018
|
-
o[
|
|
3018
|
+
o[16].id
|
|
3019
3019
|
);
|
|
3020
3020
|
for (let o = 0; o < r.length; o += 1) {
|
|
3021
3021
|
let h = ne(s, r, o), p = i(h);
|
|
@@ -3023,10 +3023,10 @@ function re(s) {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
return {
|
|
3025
3025
|
c() {
|
|
3026
|
-
n =
|
|
3026
|
+
n = Q("div");
|
|
3027
3027
|
for (let o = 0; o < t.length; o += 1)
|
|
3028
3028
|
t[o].c();
|
|
3029
|
-
|
|
3029
|
+
S(n, "id", "users-container"), S(n, "class", "svelte-3iboz2");
|
|
3030
3030
|
},
|
|
3031
3031
|
m(o, h) {
|
|
3032
3032
|
Ct(o, n, h);
|
|
@@ -3041,7 +3041,7 @@ function re(s) {
|
|
|
3041
3041
|
)), t = Ge(t, h, i, 1, o, r, e, n, We, ie, null, ne));
|
|
3042
3042
|
},
|
|
3043
3043
|
d(o) {
|
|
3044
|
-
o &&
|
|
3044
|
+
o && gt(n);
|
|
3045
3045
|
for (let h = 0; h < t.length; h += 1)
|
|
3046
3046
|
t[h].d();
|
|
3047
3047
|
}
|
|
@@ -3050,62 +3050,62 @@ function re(s) {
|
|
|
3050
3050
|
function ie(s, n) {
|
|
3051
3051
|
let t, e, r, i, o, h = (
|
|
3052
3052
|
/*user*/
|
|
3053
|
-
n[
|
|
3053
|
+
n[16].name + ""
|
|
3054
3054
|
), p, d, b, _, A, T, j;
|
|
3055
3055
|
return {
|
|
3056
3056
|
key: s,
|
|
3057
3057
|
first: null,
|
|
3058
3058
|
c() {
|
|
3059
|
-
t =
|
|
3060
|
-
n[
|
|
3061
|
-
n[
|
|
3062
|
-
n[
|
|
3063
|
-
n[
|
|
3064
|
-
n[1].id),
|
|
3059
|
+
t = Q("div"), e = Qt("svg"), r = Qt("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-3iboz2"), S(o, "class", "user-name svelte-3iboz2"), S(b, "class", "halo svelte-3iboz2"), S(b, "data-show", _ = /*user*/
|
|
3060
|
+
n[16].is_mouse_down || /*user*/
|
|
3061
|
+
n[16].is_shift_key_down), S(t, "id", T = "user-" + /*user*/
|
|
3062
|
+
n[16].id), S(t, "class", "user svelte-3iboz2"), S(t, "data-isself", j = /*user*/
|
|
3063
|
+
n[16].id == /*me*/
|
|
3064
|
+
n[1].id), st(
|
|
3065
3065
|
t,
|
|
3066
3066
|
"--color",
|
|
3067
3067
|
/*user*/
|
|
3068
|
-
n[
|
|
3069
|
-
),
|
|
3068
|
+
n[16].color
|
|
3069
|
+
), st(t, "--x", parseFloat(
|
|
3070
3070
|
/*user*/
|
|
3071
|
-
n[
|
|
3072
|
-
) + "vw"),
|
|
3071
|
+
n[16].x
|
|
3072
|
+
) + "vw"), st(t, "--y", parseFloat(
|
|
3073
3073
|
/*user*/
|
|
3074
|
-
n[
|
|
3074
|
+
n[16].y
|
|
3075
3075
|
) + "vh"), this.first = t;
|
|
3076
3076
|
},
|
|
3077
|
-
m(R,
|
|
3078
|
-
Ct(R, t,
|
|
3077
|
+
m(R, M) {
|
|
3078
|
+
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);
|
|
3079
3079
|
},
|
|
3080
|
-
p(R,
|
|
3081
|
-
n = R,
|
|
3080
|
+
p(R, M) {
|
|
3081
|
+
n = R, M & /*users*/
|
|
3082
3082
|
4 && h !== (h = /*user*/
|
|
3083
|
-
n[
|
|
3083
|
+
n[16].name + "") && Pe(p, h), M & /*users*/
|
|
3084
3084
|
4 && _ !== (_ = /*user*/
|
|
3085
|
-
n[
|
|
3086
|
-
n[
|
|
3085
|
+
n[16].is_mouse_down || /*user*/
|
|
3086
|
+
n[16].is_shift_key_down) && S(b, "data-show", _), M & /*users*/
|
|
3087
3087
|
4 && T !== (T = "user-" + /*user*/
|
|
3088
|
-
n[
|
|
3088
|
+
n[16].id) && S(t, "id", T), M & /*users, me*/
|
|
3089
3089
|
6 && j !== (j = /*user*/
|
|
3090
|
-
n[
|
|
3091
|
-
n[1].id) &&
|
|
3092
|
-
4 &&
|
|
3090
|
+
n[16].id == /*me*/
|
|
3091
|
+
n[1].id) && S(t, "data-isself", j), M & /*users*/
|
|
3092
|
+
4 && st(
|
|
3093
3093
|
t,
|
|
3094
3094
|
"--color",
|
|
3095
3095
|
/*user*/
|
|
3096
|
-
n[
|
|
3097
|
-
),
|
|
3098
|
-
4 &&
|
|
3096
|
+
n[16].color
|
|
3097
|
+
), M & /*users*/
|
|
3098
|
+
4 && st(t, "--x", parseFloat(
|
|
3099
3099
|
/*user*/
|
|
3100
|
-
n[
|
|
3101
|
-
) + "vw"),
|
|
3102
|
-
4 &&
|
|
3100
|
+
n[16].x
|
|
3101
|
+
) + "vw"), M & /*users*/
|
|
3102
|
+
4 && st(t, "--y", parseFloat(
|
|
3103
3103
|
/*user*/
|
|
3104
|
-
n[
|
|
3104
|
+
n[16].y
|
|
3105
3105
|
) + "vh");
|
|
3106
3106
|
},
|
|
3107
3107
|
d(R) {
|
|
3108
|
-
R &&
|
|
3108
|
+
R && gt(t);
|
|
3109
3109
|
}
|
|
3110
3110
|
};
|
|
3111
3111
|
}
|
|
@@ -3117,7 +3117,7 @@ function sn(s) {
|
|
|
3117
3117
|
);
|
|
3118
3118
|
return {
|
|
3119
3119
|
c() {
|
|
3120
|
-
n =
|
|
3120
|
+
n = Q("div"), t && t.c(), S(n, "id", "liveroom-client-element"), S(n, "class", "svelte-3iboz2");
|
|
3121
3121
|
},
|
|
3122
3122
|
m(e, r) {
|
|
3123
3123
|
Ct(e, n, r), t && t.m(n, null), s[5](n);
|
|
@@ -3127,16 +3127,23 @@ function sn(s) {
|
|
|
3127
3127
|
e[1] && /*users*/
|
|
3128
3128
|
e[2] ? t ? t.p(e, r) : (t = re(e), t.c(), t.m(n, null)) : t && (t.d(1), t = null);
|
|
3129
3129
|
},
|
|
3130
|
-
i:
|
|
3131
|
-
o:
|
|
3130
|
+
i: ut,
|
|
3131
|
+
o: ut,
|
|
3132
3132
|
d(e) {
|
|
3133
|
-
e &&
|
|
3133
|
+
e && gt(n), t && t.d(), s[5](null);
|
|
3134
3134
|
}
|
|
3135
3135
|
};
|
|
3136
3136
|
}
|
|
3137
3137
|
function nn(s, n, t) {
|
|
3138
3138
|
let { url: e } = n, { room_id: r } = n, i, o, h, p;
|
|
3139
3139
|
De(async () => {
|
|
3140
|
+
const B = new URLSearchParams(window.location.search).get("_liveroom"), U = B == null ? void 0 : B.split("https://meet.google.com/");
|
|
3141
|
+
let q = U == null ? void 0 : U[0];
|
|
3142
|
+
!!(U != null && U[1]) && (q = U[1].split("?")[0]), t(3, r = q || r), d();
|
|
3143
|
+
}), Ue(() => {
|
|
3144
|
+
b();
|
|
3145
|
+
});
|
|
3146
|
+
function d() {
|
|
3140
3147
|
o = new tn({
|
|
3141
3148
|
url: e,
|
|
3142
3149
|
topic: `liveroom-livestate:${r}`,
|
|
@@ -3148,11 +3155,12 @@ function nn(s, n, t) {
|
|
|
3148
3155
|
}
|
|
3149
3156
|
}), o.connect(), o.addEventListener("livestate-change", ({ detail: { state: k } }) => {
|
|
3150
3157
|
t(3, r = k.room_id), t(1, h = k.me), t(2, p = k.users);
|
|
3151
|
-
}), window.addEventListener("mousemove",
|
|
3152
|
-
}
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3158
|
+
}), window.addEventListener("mousemove", _), window.addEventListener("mousedown", A), window.addEventListener("mouseup", T), window.addEventListener("keydown", R), window.addEventListener("keyup", M), window.addEventListener("resize", X);
|
|
3159
|
+
}
|
|
3160
|
+
function b() {
|
|
3161
|
+
window.removeEventListener("resize", X), window.removeEventListener("keyup", M), window.removeEventListener("keydown", R), window.removeEventListener("mouseup", T), window.removeEventListener("mousedown", A), window.removeEventListener("mousemove", _), o == null || o.disconnect();
|
|
3162
|
+
}
|
|
3163
|
+
function _(k) {
|
|
3156
3164
|
o && (h != null && h.id) && o.dispatchEvent(new CustomEvent(
|
|
3157
3165
|
"mouse_move",
|
|
3158
3166
|
{
|
|
@@ -3166,20 +3174,20 @@ function nn(s, n, t) {
|
|
|
3166
3174
|
}
|
|
3167
3175
|
));
|
|
3168
3176
|
}
|
|
3169
|
-
function
|
|
3177
|
+
function A() {
|
|
3170
3178
|
o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("mouse_down", { detail: { user_id: h.id } }));
|
|
3171
3179
|
}
|
|
3172
|
-
function
|
|
3180
|
+
function T() {
|
|
3173
3181
|
o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("mouse_up", { detail: { user_id: h.id } }));
|
|
3174
3182
|
}
|
|
3175
|
-
const
|
|
3176
|
-
function
|
|
3177
|
-
!k.repeat &&
|
|
3183
|
+
const j = ["Shift"];
|
|
3184
|
+
function R(k) {
|
|
3185
|
+
!k.repeat && j.includes(k.key) && o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("key_down", { detail: { key: k.key, user_id: h.id } }));
|
|
3178
3186
|
}
|
|
3179
|
-
function
|
|
3180
|
-
|
|
3187
|
+
function M(k) {
|
|
3188
|
+
j.includes(k.key) && o && (h != null && h.id) && o.dispatchEvent(new CustomEvent("key_up", { detail: { key: k.key, user_id: h.id } }));
|
|
3181
3189
|
}
|
|
3182
|
-
function
|
|
3190
|
+
function X() {
|
|
3183
3191
|
o && (h != null && h.id) && o.dispatchEvent(new CustomEvent(
|
|
3184
3192
|
"window_resize",
|
|
3185
3193
|
{
|
|
@@ -3191,14 +3199,14 @@ function nn(s, n, t) {
|
|
|
3191
3199
|
}
|
|
3192
3200
|
));
|
|
3193
3201
|
}
|
|
3194
|
-
function
|
|
3202
|
+
function Z(k) {
|
|
3195
3203
|
Mt[k ? "unshift" : "push"](() => {
|
|
3196
3204
|
i = k, t(0, i);
|
|
3197
3205
|
});
|
|
3198
3206
|
}
|
|
3199
3207
|
return s.$$set = (k) => {
|
|
3200
3208
|
"url" in k && t(4, e = k.url), "room_id" in k && t(3, r = k.room_id);
|
|
3201
|
-
}, [i, h, p, r, e,
|
|
3209
|
+
}, [i, h, p, r, e, Z];
|
|
3202
3210
|
}
|
|
3203
3211
|
class rn extends Ke {
|
|
3204
3212
|
constructor(n) {
|