tabby-rdp 0.1.0 → 0.2.0

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.
@@ -10,8 +10,8 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
10
10
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
11
11
  var _t2, _e2, _a, _b;
12
12
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add("5");
13
- const cr = 2, dr = "[", fr = "]", Je = {}, K = Symbol(), si = false, J = 2, gi = 4, St = 8, Yt = 16, Ce = 32, Be = 64, pt = 128, Y = 256, vt = 512, G = 1024, Ee = 2048, ze = 4096, wt = 8192, Dt = 16384, hr = 32768, br = 65536, pr = 1 << 19, _i = 1 << 20, ct = Symbol("$state"), vr = Symbol("legacy props");
14
- var xi = Array.isArray, wr = Array.prototype.indexOf, mr = Array.from, mt = Object.keys, gt = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, gr = Object.getOwnPropertyDescriptors, _r = Object.prototype, xr = Array.prototype, yi = Object.getPrototypeOf;
13
+ const dr = 2, fr = "[", hr = "]", Je = {}, V = Symbol(), si = false, Z = 2, gi = 4, St = 8, Yt = 16, ye = 32, Ie = 64, pt = 128, G = 256, vt = 512, j = 1024, Ce = 2048, We = 4096, wt = 8192, Dt = 16384, br = 32768, pr = 65536, vr = 1 << 19, _i = 1 << 20, ct = Symbol("$state"), wr = Symbol("legacy props");
14
+ var xi = Array.isArray, mr = Array.prototype.indexOf, gr = Array.from, mt = Object.keys, gt = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, _r = Object.getOwnPropertyDescriptors, xr = Object.prototype, yr = Array.prototype, yi = Object.getPrototypeOf;
15
15
  const dt = () => {
16
16
  };
17
17
  function Ci(t) {
@@ -23,7 +23,7 @@ function Ei() {
23
23
  var t = tt;
24
24
  tt = [], Ci(t);
25
25
  }
26
- function yr() {
26
+ function Cr() {
27
27
  var t = It;
28
28
  It = [], Ci(t);
29
29
  }
@@ -31,7 +31,7 @@ function Xt(t) {
31
31
  tt.length === 0 && queueMicrotask(Ei), tt.push(t);
32
32
  }
33
33
  function oi() {
34
- tt.length > 0 && Ei(), It.length > 0 && yr();
34
+ tt.length > 0 && Ei(), It.length > 0 && Cr();
35
35
  }
36
36
  function ki(t) {
37
37
  return t === this.v;
@@ -39,38 +39,38 @@ function ki(t) {
39
39
  function Si(t, e) {
40
40
  return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
41
41
  }
42
- function Cr(t) {
42
+ function Er(t) {
43
43
  return !Si(t, this.v);
44
44
  }
45
- function Er(t) {
45
+ function kr(t) {
46
46
  throw new Error("https://svelte.dev/e/effect_in_teardown");
47
47
  }
48
- function kr() {
48
+ function Sr() {
49
49
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
50
50
  }
51
- function Sr(t) {
51
+ function Dr(t) {
52
52
  throw new Error("https://svelte.dev/e/effect_orphan");
53
53
  }
54
- function Dr() {
54
+ function Tr() {
55
55
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
56
56
  }
57
- function Tr() {
57
+ function Rr() {
58
58
  throw new Error("https://svelte.dev/e/hydration_failed");
59
59
  }
60
- function Rr() {
60
+ function $r() {
61
61
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
62
62
  }
63
- function $r() {
63
+ function Ar() {
64
64
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
65
65
  }
66
66
  function Or() {
67
67
  throw new Error("https://svelte.dev/e/state_unsafe_local_read");
68
68
  }
69
- function Ar() {
69
+ function Lr() {
70
70
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
71
71
  }
72
- let Lr = false;
73
- function se(t, e) {
72
+ let Mr = false;
73
+ function re(t, e) {
74
74
  var i = {
75
75
  f: 0,
76
76
  // TODO ideally we could skip this altogether, but it causes type errors
@@ -83,34 +83,34 @@ function se(t, e) {
83
83
  return i;
84
84
  }
85
85
  function Ft(t) {
86
- return /* @__PURE__ */ Mr(se(t));
86
+ return /* @__PURE__ */ Fr(re(t));
87
87
  }
88
88
  // @__NO_SIDE_EFFECTS__
89
89
  function Di(t, e = false) {
90
- const i = se(t);
91
- return e || (i.equals = Cr), i;
90
+ const i = re(t);
91
+ return e || (i.equals = Er), i;
92
92
  }
93
93
  // @__NO_SIDE_EFFECTS__
94
- function Mr(t) {
95
- return k !== null && !Q && (k.f & J) !== 0 && (oe === null ? Br([t]) : oe.push(t)), t;
94
+ function Fr(t) {
95
+ return k !== null && !X && (k.f & Z) !== 0 && (ne === null ? zr([t]) : ne.push(t)), t;
96
96
  }
97
- function j(t, e) {
98
- return k !== null && !Q && Xi() && (k.f & (J | Yt)) !== 0 && // If the source was created locally within the current derived, then
97
+ function H(t, e) {
98
+ return k !== null && !X && Xi() && (k.f & (Z | Yt)) !== 0 && // If the source was created locally within the current derived, then
99
99
  // we allow the mutation.
100
- (oe === null || !oe.includes(t)) && Ar(), Fr(t, e);
100
+ (ne === null || !ne.includes(t)) && Lr(), Nr(t, e);
101
101
  }
102
- function Fr(t, e) {
103
- return t.equals(e) || (t.v, t.v = e, t.wv = Ui(), Ti(t, Ee), T !== null && (T.f & G) !== 0 && (T.f & (Ce | Be)) === 0 && (ue === null ? zr([t]) : ue.push(t))), e;
102
+ function Nr(t, e) {
103
+ return t.equals(e) || (t.v, t.v = e, t.wv = Ui(), Ti(t, Ce), D !== null && (D.f & j) !== 0 && (D.f & (ye | Ie)) === 0 && (ae === null ? Ir([t]) : ae.push(t))), e;
104
104
  }
105
105
  function Ti(t, e) {
106
106
  var i = t.reactions;
107
107
  if (i !== null)
108
108
  for (var r = i.length, n = 0; n < r; n++) {
109
109
  var o = i[n], c = o.f;
110
- (c & Ee) === 0 && (de(o, e), (c & (G | Y)) !== 0 && ((c & J) !== 0 ? Ti(
110
+ (c & Ce) === 0 && (ue(o, e), (c & (j | G)) !== 0 && ((c & Z) !== 0 ? Ti(
111
111
  /** @type {Derived} */
112
112
  o,
113
- ze
113
+ We
114
114
  ) : ei(
115
115
  /** @type {Effect} */
116
116
  o
@@ -119,12 +119,12 @@ function Ti(t, e) {
119
119
  }
120
120
  // @__NO_SIDE_EFFECTS__
121
121
  function Ri(t) {
122
- var e = J | Ee, i = k !== null && (k.f & J) !== 0 ? (
122
+ var e = Z | Ce, i = k !== null && (k.f & Z) !== 0 ? (
123
123
  /** @type {Derived} */
124
124
  k
125
125
  ) : null;
126
- return T === null || i !== null && (i.f & Y) !== 0 ? e |= Y : T.f |= _i, {
127
- ctx: B,
126
+ return D === null || i !== null && (i.f & G) !== 0 ? e |= G : D.f |= _i, {
127
+ ctx: U,
128
128
  deps: null,
129
129
  effects: null,
130
130
  equals: ki,
@@ -137,7 +137,7 @@ function Ri(t) {
137
137
  null
138
138
  ),
139
139
  wv: 0,
140
- parent: i ?? T
140
+ parent: i ?? D
141
141
  };
142
142
  }
143
143
  function $i(t) {
@@ -145,15 +145,15 @@ function $i(t) {
145
145
  if (e !== null) {
146
146
  t.effects = null;
147
147
  for (var i = 0; i < e.length; i += 1)
148
- ye(
148
+ xe(
149
149
  /** @type {Effect} */
150
150
  e[i]
151
151
  );
152
152
  }
153
153
  }
154
- function Nr(t) {
154
+ function Pr(t) {
155
155
  for (var e = t.parent; e !== null; ) {
156
- if ((e.f & J) === 0)
156
+ if ((e.f & Z) === 0)
157
157
  return (
158
158
  /** @type {Effect} */
159
159
  e
@@ -162,26 +162,26 @@ function Nr(t) {
162
162
  }
163
163
  return null;
164
164
  }
165
- function Pr(t) {
166
- var e, i = T;
167
- xe(Nr(t));
165
+ function Ur(t) {
166
+ var e, i = D;
167
+ _e(Pr(t));
168
168
  try {
169
169
  $i(t), e = zi(t);
170
170
  } finally {
171
- xe(i);
171
+ _e(i);
172
172
  }
173
173
  return e;
174
174
  }
175
- function Oi(t) {
176
- var e = Pr(t), i = (ge || (t.f & Y) !== 0) && t.deps !== null ? ze : G;
177
- de(t, i), t.equals(e) || (t.v = e, t.wv = Ui());
175
+ function Ai(t) {
176
+ var e = Ur(t), i = (me || (t.f & G) !== 0) && t.deps !== null ? We : j;
177
+ ue(t, i), t.equals(e) || (t.v = e, t.wv = Ui());
178
178
  }
179
179
  function Zt(t) {
180
180
  console.warn("https://svelte.dev/e/hydration_mismatch");
181
181
  }
182
- let ee = false;
182
+ let Q = false;
183
183
  function at(t) {
184
- ee = t;
184
+ Q = t;
185
185
  }
186
186
  let z;
187
187
  function _t(t) {
@@ -189,14 +189,14 @@ function _t(t) {
189
189
  throw Zt(), Je;
190
190
  return z = t;
191
191
  }
192
- function Ai() {
192
+ function Oi() {
193
193
  return _t(
194
194
  /** @type {TemplateNode} */
195
195
  /* @__PURE__ */ Tt(z)
196
196
  );
197
197
  }
198
198
  function Nt(t) {
199
- if (ee) {
199
+ if (Q) {
200
200
  if (/* @__PURE__ */ Tt(z) !== null)
201
201
  throw Zt(), Je;
202
202
  z = t;
@@ -206,58 +206,58 @@ function Se(t, e = null, i) {
206
206
  if (typeof t != "object" || t === null || ct in t)
207
207
  return t;
208
208
  const r = yi(t);
209
- if (r !== _r && r !== xr)
209
+ if (r !== xr && r !== yr)
210
210
  return t;
211
- var n = /* @__PURE__ */ new Map(), o = xi(t), c = se(0);
212
- o && n.set("length", se(
211
+ var n = /* @__PURE__ */ new Map(), o = xi(t), c = re(0);
212
+ o && n.set("length", re(
213
213
  /** @type {any[]} */
214
214
  t.length
215
215
  ));
216
- var h;
216
+ var f;
217
217
  return new Proxy(
218
218
  /** @type {any} */
219
219
  t,
220
220
  {
221
- defineProperty(f, d, p) {
222
- (!("value" in p) || p.configurable === false || p.enumerable === false || p.writable === false) && Rr();
221
+ defineProperty(h, d, p) {
222
+ (!("value" in p) || p.configurable === false || p.enumerable === false || p.writable === false) && $r();
223
223
  var w = n.get(d);
224
- return w === void 0 ? (w = se(p.value), n.set(d, w)) : j(w, Se(p.value, h)), true;
224
+ return w === void 0 ? (w = re(p.value), n.set(d, w)) : H(w, Se(p.value, f)), true;
225
225
  },
226
- deleteProperty(f, d) {
226
+ deleteProperty(h, d) {
227
227
  var p = n.get(d);
228
228
  if (p === void 0)
229
- d in f && n.set(d, se(K));
229
+ d in h && n.set(d, re(V));
230
230
  else {
231
231
  if (o && typeof d == "string") {
232
232
  var w = (
233
233
  /** @type {Source<number>} */
234
234
  n.get("length")
235
235
  ), s = Number(d);
236
- Number.isInteger(s) && s < w.v && j(w, s);
236
+ Number.isInteger(s) && s < w.v && H(w, s);
237
237
  }
238
- j(p, K), ai(c);
238
+ H(p, V), ai(c);
239
239
  }
240
240
  return true;
241
241
  },
242
- get(f, d, p) {
242
+ get(h, d, p) {
243
243
  var _a2;
244
244
  if (d === ct)
245
245
  return t;
246
- var w = n.get(d), s = d in f;
247
- if (w === void 0 && (!s || ((_a2 = Ue(f, d)) == null ? void 0 : _a2.writable)) && (w = se(Se(s ? f[d] : K, h)), n.set(d, w)), w !== void 0) {
248
- var a = U(w);
249
- return a === K ? void 0 : a;
246
+ var w = n.get(d), s = d in h;
247
+ if (w === void 0 && (!s || ((_a2 = ze(h, d)) == null ? void 0 : _a2.writable)) && (w = re(Se(s ? h[d] : V, f)), n.set(d, w)), w !== void 0) {
248
+ var a = P(w);
249
+ return a === V ? void 0 : a;
250
250
  }
251
- return Reflect.get(f, d, p);
251
+ return Reflect.get(h, d, p);
252
252
  },
253
- getOwnPropertyDescriptor(f, d) {
254
- var p = Reflect.getOwnPropertyDescriptor(f, d);
253
+ getOwnPropertyDescriptor(h, d) {
254
+ var p = Reflect.getOwnPropertyDescriptor(h, d);
255
255
  if (p && "value" in p) {
256
256
  var w = n.get(d);
257
- w && (p.value = U(w));
257
+ w && (p.value = P(w));
258
258
  } else if (p === void 0) {
259
259
  var s = n.get(d), a = s == null ? void 0 : s.v;
260
- if (s !== void 0 && a !== K)
260
+ if (s !== void 0 && a !== V)
261
261
  return {
262
262
  enumerable: true,
263
263
  configurable: true,
@@ -267,67 +267,67 @@ function Se(t, e = null, i) {
267
267
  }
268
268
  return p;
269
269
  },
270
- has(f, d) {
270
+ has(h, d) {
271
271
  var _a2;
272
272
  if (d === ct)
273
273
  return true;
274
- var p = n.get(d), w = p !== void 0 && p.v !== K || Reflect.has(f, d);
275
- if (p !== void 0 || T !== null && (!w || ((_a2 = Ue(f, d)) == null ? void 0 : _a2.writable))) {
276
- p === void 0 && (p = se(w ? Se(f[d], h) : K), n.set(d, p));
277
- var s = U(p);
278
- if (s === K)
274
+ var p = n.get(d), w = p !== void 0 && p.v !== V || Reflect.has(h, d);
275
+ if (p !== void 0 || D !== null && (!w || ((_a2 = ze(h, d)) == null ? void 0 : _a2.writable))) {
276
+ p === void 0 && (p = re(w ? Se(h[d], f) : V), n.set(d, p));
277
+ var s = P(p);
278
+ if (s === V)
279
279
  return false;
280
280
  }
281
281
  return w;
282
282
  },
283
- set(f, d, p, w) {
283
+ set(h, d, p, w) {
284
284
  var _a2;
285
- var s = n.get(d), a = d in f;
285
+ var s = n.get(d), a = d in h;
286
286
  if (o && d === "length")
287
287
  for (var l = p; l < /** @type {Source<number>} */
288
288
  s.v; l += 1) {
289
289
  var u = n.get(l + "");
290
- u !== void 0 ? j(u, K) : l in f && (u = se(K), n.set(l + "", u));
290
+ u !== void 0 ? H(u, V) : l in h && (u = re(V), n.set(l + "", u));
291
291
  }
292
- s === void 0 ? (!a || ((_a2 = Ue(f, d)) == null ? void 0 : _a2.writable)) && (s = se(void 0), j(s, Se(p, h)), n.set(d, s)) : (a = s.v !== K, j(s, Se(p, h)));
293
- var b = Reflect.getOwnPropertyDescriptor(f, d);
292
+ s === void 0 ? (!a || ((_a2 = ze(h, d)) == null ? void 0 : _a2.writable)) && (s = re(void 0), H(s, Se(p, f)), n.set(d, s)) : (a = s.v !== V, H(s, Se(p, f)));
293
+ var b = Reflect.getOwnPropertyDescriptor(h, d);
294
294
  if ((b == null ? void 0 : b.set) && b.set.call(w, p), !a) {
295
295
  if (o && typeof d == "string") {
296
296
  var $ = (
297
297
  /** @type {Source<number>} */
298
298
  n.get("length")
299
- ), N = Number(d);
300
- Number.isInteger(N) && N >= $.v && j($, N + 1);
299
+ ), M = Number(d);
300
+ Number.isInteger(M) && M >= $.v && H($, M + 1);
301
301
  }
302
302
  ai(c);
303
303
  }
304
304
  return true;
305
305
  },
306
- ownKeys(f) {
307
- U(c);
308
- var d = Reflect.ownKeys(f).filter((s) => {
306
+ ownKeys(h) {
307
+ P(c);
308
+ var d = Reflect.ownKeys(h).filter((s) => {
309
309
  var a = n.get(s);
310
- return a === void 0 || a.v !== K;
310
+ return a === void 0 || a.v !== V;
311
311
  });
312
312
  for (var [p, w] of n)
313
- w.v !== K && !(p in f) && d.push(p);
313
+ w.v !== V && !(p in h) && d.push(p);
314
314
  return d;
315
315
  },
316
316
  setPrototypeOf() {
317
- $r();
317
+ Ar();
318
318
  }
319
319
  }
320
320
  );
321
321
  }
322
322
  function ai(t, e = 1) {
323
- j(t, t.v + e);
323
+ H(t, t.v + e);
324
324
  }
325
325
  var li, Li, Mi, Fi;
326
326
  function Wt() {
327
327
  if (li === void 0) {
328
328
  li = window, Li = /Firefox/.test(navigator.userAgent);
329
329
  var t = Element.prototype, e = Node.prototype;
330
- Mi = Ue(e, "firstChild").get, Fi = Ue(e, "nextSibling").get, t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
330
+ Mi = ze(e, "firstChild").get, Fi = ze(e, "nextSibling").get, t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
331
331
  }
332
332
  }
333
333
  function Ni(t = "") {
@@ -342,7 +342,7 @@ function Tt(t) {
342
342
  return Fi.call(t);
343
343
  }
344
344
  function Pt(t, e) {
345
- if (!ee)
345
+ if (!Q)
346
346
  return /* @__PURE__ */ xt(t);
347
347
  var i = (
348
348
  /** @type {TemplateNode} */
@@ -350,7 +350,7 @@ function Pt(t, e) {
350
350
  );
351
351
  return i === null && (i = z.appendChild(Ni())), _t(i), i;
352
352
  }
353
- function Ur(t) {
353
+ function Br(t) {
354
354
  t.textContent = "";
355
355
  }
356
356
  let ft = false, yt = false, Ct = null, ht = false, Qt = false;
@@ -358,59 +358,59 @@ function ui(t) {
358
358
  Qt = t;
359
359
  }
360
360
  let et = [];
361
- let k = null, Q = false;
362
- function _e(t) {
361
+ let k = null, X = false;
362
+ function ge(t) {
363
363
  k = t;
364
364
  }
365
- let T = null;
366
- function xe(t) {
367
- T = t;
368
- }
369
- let oe = null;
370
- function Br(t) {
371
- oe = t;
365
+ let D = null;
366
+ function _e(t) {
367
+ D = t;
372
368
  }
373
- let P = null, H = 0, ue = null;
369
+ let ne = null;
374
370
  function zr(t) {
375
- ue = t;
371
+ ne = t;
372
+ }
373
+ let N = null, q = 0, ae = null;
374
+ function Ir(t) {
375
+ ae = t;
376
376
  }
377
- let Pi = 1, Et = 0, ge = false;
377
+ let Pi = 1, Et = 0, me = false;
378
378
  function Ui() {
379
379
  return ++Pi;
380
380
  }
381
381
  function Rt(t) {
382
382
  var _a2;
383
383
  var e = t.f;
384
- if ((e & Ee) !== 0)
384
+ if ((e & Ce) !== 0)
385
385
  return true;
386
- if ((e & ze) !== 0) {
387
- var i = t.deps, r = (e & Y) !== 0;
386
+ if ((e & We) !== 0) {
387
+ var i = t.deps, r = (e & G) !== 0;
388
388
  if (i !== null) {
389
- var n, o, c = (e & vt) !== 0, h = r && T !== null && !ge, f = i.length;
390
- if (c || h) {
389
+ var n, o, c = (e & vt) !== 0, f = r && D !== null && !me, h = i.length;
390
+ if (c || f) {
391
391
  var d = (
392
392
  /** @type {Derived} */
393
393
  t
394
394
  ), p = d.parent;
395
- for (n = 0; n < f; n++)
395
+ for (n = 0; n < h; n++)
396
396
  o = i[n], (c || !((_a2 = o == null ? void 0 : o.reactions) == null ? void 0 : _a2.includes(d))) && (o.reactions ?? (o.reactions = [])).push(d);
397
- c && (d.f ^= vt), h && p !== null && (p.f & Y) === 0 && (d.f ^= Y);
397
+ c && (d.f ^= vt), f && p !== null && (p.f & G) === 0 && (d.f ^= G);
398
398
  }
399
- for (n = 0; n < f; n++)
399
+ for (n = 0; n < h; n++)
400
400
  if (o = i[n], Rt(
401
401
  /** @type {Derived} */
402
402
  o
403
- ) && Oi(
403
+ ) && Ai(
404
404
  /** @type {Derived} */
405
405
  o
406
406
  ), o.wv > t.wv)
407
407
  return true;
408
408
  }
409
- (!r || T !== null && !ge) && de(t, G);
409
+ (!r || D !== null && !me) && ue(t, j);
410
410
  }
411
411
  return false;
412
412
  }
413
- function Ir(t, e) {
413
+ function Wr(t, e) {
414
414
  for (var i = e; i !== null; ) {
415
415
  if ((i.f & pt) !== 0)
416
416
  try {
@@ -423,18 +423,18 @@ function Ir(t, e) {
423
423
  }
424
424
  throw ft = false, t;
425
425
  }
426
- function Wr(t) {
426
+ function Vr(t) {
427
427
  return (t.f & Dt) === 0 && (t.parent === null || (t.parent.f & pt) === 0);
428
428
  }
429
429
  function $t(t, e, i, r) {
430
430
  if (ft) {
431
- if (i === null && (ft = false), Wr(e))
431
+ if (i === null && (ft = false), Vr(e))
432
432
  throw t;
433
433
  return;
434
434
  }
435
435
  i !== null && (ft = true);
436
436
  {
437
- Ir(t, e);
437
+ Wr(t, e);
438
438
  return;
439
439
  }
440
440
  }
@@ -443,12 +443,12 @@ function Bi(t, e, i = true) {
443
443
  if (r !== null)
444
444
  for (var n = 0; n < r.length; n++) {
445
445
  var o = r[n];
446
- (o.f & J) !== 0 ? Bi(
446
+ (o.f & Z) !== 0 ? Bi(
447
447
  /** @type {Derived} */
448
448
  o,
449
449
  e,
450
450
  false
451
- ) : e === o && (i ? de(o, Ee) : (o.f & G) !== 0 && de(o, ze), ei(
451
+ ) : e === o && (i ? ue(o, Ce) : (o.f & j) !== 0 && ue(o, We), ei(
452
452
  /** @type {Effect} */
453
453
  o
454
454
  ));
@@ -456,51 +456,51 @@ function Bi(t, e, i = true) {
456
456
  }
457
457
  function zi(t) {
458
458
  var _a2;
459
- var e = P, i = H, r = ue, n = k, o = ge, c = oe, h = B, f = Q, d = t.f;
460
- P = /** @type {null | Value[]} */
461
- null, H = 0, ue = null, ge = (d & Y) !== 0 && (Q || !ht || k === null), k = (d & (Ce | Be)) === 0 ? t : null, oe = null, ci(t.ctx), Q = false, Et++;
459
+ var e = N, i = q, r = ae, n = k, o = me, c = ne, f = U, h = X, d = t.f;
460
+ N = /** @type {null | Value[]} */
461
+ null, q = 0, ae = null, me = (d & G) !== 0 && (X || !ht || k === null), k = (d & (ye | Ie)) === 0 ? t : null, ne = null, ci(t.ctx), X = false, Et++;
462
462
  try {
463
463
  var p = (
464
464
  /** @type {Function} */
465
465
  (0, t.fn)()
466
466
  ), w = t.deps;
467
- if (P !== null) {
467
+ if (N !== null) {
468
468
  var s;
469
- if (kt(t, H), w !== null && H > 0)
470
- for (w.length = H + P.length, s = 0; s < P.length; s++)
471
- w[H + s] = P[s];
469
+ if (kt(t, q), w !== null && q > 0)
470
+ for (w.length = q + N.length, s = 0; s < N.length; s++)
471
+ w[q + s] = N[s];
472
472
  else
473
- t.deps = w = P;
474
- if (!ge)
475
- for (s = H; s < w.length; s++)
473
+ t.deps = w = N;
474
+ if (!me)
475
+ for (s = q; s < w.length; s++)
476
476
  ((_a2 = w[s]).reactions ?? (_a2.reactions = [])).push(t);
477
- } else w !== null && H < w.length && (kt(t, H), w.length = H);
478
- if (Xi() && ue !== null && !Q && w !== null && (t.f & (J | ze | Ee)) === 0)
477
+ } else w !== null && q < w.length && (kt(t, q), w.length = q);
478
+ if (Xi() && ae !== null && !X && w !== null && (t.f & (Z | We | Ce)) === 0)
479
479
  for (s = 0; s < /** @type {Source[]} */
480
- ue.length; s++)
480
+ ae.length; s++)
481
481
  Bi(
482
- ue[s],
482
+ ae[s],
483
483
  /** @type {Effect} */
484
484
  t
485
485
  );
486
486
  return n !== null && Et++, p;
487
487
  } finally {
488
- P = e, H = i, ue = r, k = n, ge = o, oe = c, ci(h), Q = f;
488
+ N = e, q = i, ae = r, k = n, me = o, ne = c, ci(f), X = h;
489
489
  }
490
490
  }
491
- function Vr(t, e) {
491
+ function Kr(t, e) {
492
492
  let i = e.reactions;
493
493
  if (i !== null) {
494
- var r = wr.call(i, t);
494
+ var r = mr.call(i, t);
495
495
  if (r !== -1) {
496
496
  var n = i.length - 1;
497
497
  n === 0 ? i = e.reactions = null : (i[r] = i[n], i.pop());
498
498
  }
499
499
  }
500
- i === null && (e.f & J) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
500
+ i === null && (e.f & Z) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
501
501
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
502
502
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
503
- (P === null || !P.includes(e)) && (de(e, ze), (e.f & (Y | vt)) === 0 && (e.f ^= vt), $i(
503
+ (N === null || !N.includes(e)) && (ue(e, We), (e.f & (G | vt)) === 0 && (e.f ^= vt), $i(
504
504
  /** @type {Derived} **/
505
505
  e
506
506
  ), kt(
@@ -513,30 +513,30 @@ function kt(t, e) {
513
513
  var i = t.deps;
514
514
  if (i !== null)
515
515
  for (var r = e; r < i.length; r++)
516
- Vr(t, i[r]);
516
+ Kr(t, i[r]);
517
517
  }
518
518
  function Jt(t) {
519
519
  var e = t.f;
520
520
  if ((e & Dt) === 0) {
521
- de(t, G);
522
- var i = T, r = B, n = ht;
523
- T = t, ht = true;
521
+ ue(t, j);
522
+ var i = D, r = U, n = ht;
523
+ D = t, ht = true;
524
524
  try {
525
- (e & Yt) !== 0 ? nn(t) : Ki(t), Vi(t);
525
+ (e & Yt) !== 0 ? sn(t) : Ki(t), Vi(t);
526
526
  var o = zi(t);
527
527
  t.teardown = typeof o == "function" ? o : null, t.wv = Pi;
528
- var c = t.deps, h;
529
- si && Lr && t.f & Ee;
530
- } catch (f) {
531
- $t(f, t, i, r || t.ctx);
528
+ var c = t.deps, f;
529
+ si && Mr && t.f & Ce;
530
+ } catch (h) {
531
+ $t(h, t, i, r || t.ctx);
532
532
  } finally {
533
- ht = n, T = i;
533
+ ht = n, D = i;
534
534
  }
535
535
  }
536
536
  }
537
- function Kr() {
537
+ function qr() {
538
538
  try {
539
- Dr();
539
+ Tr();
540
540
  } catch (t) {
541
541
  if (Ct !== null)
542
542
  $t(t, Ct, null);
@@ -547,21 +547,21 @@ function Kr() {
547
547
  function Ii() {
548
548
  try {
549
549
  for (var t = 0; et.length > 0; ) {
550
- t++ > 1e3 && Kr();
550
+ t++ > 1e3 && qr();
551
551
  var e = et, i = e.length;
552
552
  et = [];
553
553
  for (var r = 0; r < i; r++) {
554
554
  var n = e[r];
555
- (n.f & G) === 0 && (n.f ^= G);
556
- var o = Hr(n);
557
- qr(o);
555
+ (n.f & j) === 0 && (n.f ^= j);
556
+ var o = jr(n);
557
+ Hr(o);
558
558
  }
559
559
  }
560
560
  } finally {
561
561
  yt = false, Ct = null;
562
562
  }
563
563
  }
564
- function qr(t) {
564
+ function Hr(t) {
565
565
  var e = t.length;
566
566
  if (e !== 0)
567
567
  for (var i = 0; i < e; i++) {
@@ -579,21 +579,21 @@ function ei(t) {
579
579
  for (var e = Ct = t; e.parent !== null; ) {
580
580
  e = e.parent;
581
581
  var i = e.f;
582
- if ((i & (Be | Ce)) !== 0) {
583
- if ((i & G) === 0) return;
584
- e.f ^= G;
582
+ if ((i & (Ie | ye)) !== 0) {
583
+ if ((i & j) === 0) return;
584
+ e.f ^= j;
585
585
  }
586
586
  }
587
587
  et.push(e);
588
588
  }
589
- function Hr(t) {
589
+ function jr(t) {
590
590
  for (var e = [], i = t.first; i !== null; ) {
591
- var r = i.f, n = (r & Ce) !== 0, o = n && (r & G) !== 0;
591
+ var r = i.f, n = (r & ye) !== 0, o = n && (r & j) !== 0;
592
592
  if (!o && (r & wt) === 0) {
593
593
  if ((r & gi) !== 0)
594
594
  e.push(i);
595
595
  else if (n)
596
- i.f ^= G;
596
+ i.f ^= j;
597
597
  else {
598
598
  var c = k;
599
599
  try {
@@ -604,15 +604,15 @@ function Hr(t) {
604
604
  k = c;
605
605
  }
606
606
  }
607
- var h = i.first;
608
- if (h !== null) {
609
- i = h;
607
+ var f = i.first;
608
+ if (f !== null) {
609
+ i = f;
610
610
  continue;
611
611
  }
612
612
  }
613
- var f = i.parent;
614
- for (i = i.next; i === null && f !== null; )
615
- i = f.next, f = f.parent;
613
+ var h = i.parent;
614
+ for (i = i.next; i === null && h !== null; )
615
+ i = h.next, h = h.parent;
616
616
  }
617
617
  return e;
618
618
  }
@@ -625,12 +625,12 @@ function Ye(t) {
625
625
  e
626
626
  );
627
627
  }
628
- function U(t) {
629
- var e = t.f, i = (e & J) !== 0;
630
- if (k !== null && !Q) {
631
- oe !== null && oe.includes(t) && Or();
628
+ function P(t) {
629
+ var e = t.f, i = (e & Z) !== 0;
630
+ if (k !== null && !X) {
631
+ ne !== null && ne.includes(t) && Or();
632
632
  var r = k.deps;
633
- t.rv < Et && (t.rv = Et, P === null && r !== null && r[H] === t ? H++ : P === null ? P = [t] : (!ge || !P.includes(t)) && P.push(t));
633
+ t.rv < Et && (t.rv = Et, N === null && r !== null && r[q] === t ? q++ : N === null ? N = [t] : (!me || !N.includes(t)) && N.push(t));
634
634
  } else if (i && /** @type {Derived} */
635
635
  t.deps === null && /** @type {Derived} */
636
636
  t.effects === null) {
@@ -638,37 +638,37 @@ function U(t) {
638
638
  /** @type {Derived} */
639
639
  t
640
640
  ), o = n.parent;
641
- o !== null && (o.f & Y) === 0 && (n.f ^= Y);
641
+ o !== null && (o.f & G) === 0 && (n.f ^= G);
642
642
  }
643
643
  return i && (n = /** @type {Derived} */
644
- t, Rt(n) && Oi(n)), t.v;
644
+ t, Rt(n) && Ai(n)), t.v;
645
645
  }
646
646
  function it(t) {
647
- var e = Q;
647
+ var e = X;
648
648
  try {
649
- return Q = true, t();
649
+ return X = true, t();
650
650
  } finally {
651
- Q = e;
651
+ X = e;
652
652
  }
653
653
  }
654
- const jr = -7169;
655
- function de(t, e) {
656
- t.f = t.f & jr | e;
654
+ const Gr = -7169;
655
+ function ue(t, e) {
656
+ t.f = t.f & Gr | e;
657
657
  }
658
- function Gr(t) {
659
- T === null && k === null && Sr(), k !== null && (k.f & Y) !== 0 && T === null && kr(), Qt && Er();
658
+ function Yr(t) {
659
+ D === null && k === null && Dr(), k !== null && (k.f & G) !== 0 && D === null && Sr(), Qt && kr();
660
660
  }
661
- function Yr(t, e) {
661
+ function Xr(t, e) {
662
662
  var i = e.last;
663
663
  i === null ? e.last = e.first = t : (i.next = t, t.prev = i, e.last = t);
664
664
  }
665
665
  function De(t, e, i, r = true) {
666
- var n = (t & Be) !== 0, o = T, c = {
667
- ctx: B,
666
+ var n = (t & Ie) !== 0, o = D, c = {
667
+ ctx: U,
668
668
  deps: null,
669
669
  nodes_start: null,
670
670
  nodes_end: null,
671
- f: t | Ee,
671
+ f: t | Ce,
672
672
  first: null,
673
673
  fn: e,
674
674
  last: null,
@@ -681,36 +681,36 @@ function De(t, e, i, r = true) {
681
681
  };
682
682
  if (i)
683
683
  try {
684
- Jt(c), c.f |= hr;
684
+ Jt(c), c.f |= br;
685
685
  } catch (d) {
686
- throw ye(c), d;
686
+ throw xe(c), d;
687
687
  }
688
688
  else e !== null && ei(c);
689
- var h = i && c.deps === null && c.first === null && c.nodes_start === null && c.teardown === null && (c.f & (_i | pt)) === 0;
690
- if (!h && !n && r && (o !== null && Yr(c, o), k !== null && (k.f & J) !== 0)) {
691
- var f = (
689
+ var f = i && c.deps === null && c.first === null && c.nodes_start === null && c.teardown === null && (c.f & (_i | pt)) === 0;
690
+ if (!f && !n && r && (o !== null && Xr(c, o), k !== null && (k.f & Z) !== 0)) {
691
+ var h = (
692
692
  /** @type {Derived} */
693
693
  k
694
694
  );
695
- (f.effects ?? (f.effects = [])).push(c);
695
+ (h.effects ?? (h.effects = [])).push(c);
696
696
  }
697
697
  return c;
698
698
  }
699
- function Xr(t) {
699
+ function Zr(t) {
700
700
  const e = De(St, null, false);
701
- return de(e, G), e.teardown = t, e;
701
+ return ue(e, j), e.teardown = t, e;
702
702
  }
703
- function Zr(t) {
704
- Gr();
705
- var e = T !== null && (T.f & Ce) !== 0 && B !== null && !B.m;
703
+ function Qr(t) {
704
+ Yr();
705
+ var e = D !== null && (D.f & ye) !== 0 && U !== null && !U.m;
706
706
  if (e) {
707
707
  var i = (
708
708
  /** @type {ComponentContext} */
709
- B
709
+ U
710
710
  );
711
711
  (i.e ?? (i.e = [])).push({
712
712
  fn: t,
713
- effect: T,
713
+ effect: D,
714
714
  reaction: k
715
715
  });
716
716
  } else {
@@ -718,18 +718,18 @@ function Zr(t) {
718
718
  return r;
719
719
  }
720
720
  }
721
- function Qr(t) {
722
- const e = De(Be, t, true);
721
+ function Jr(t) {
722
+ const e = De(Ie, t, true);
723
723
  return () => {
724
- ye(e);
724
+ xe(e);
725
725
  };
726
726
  }
727
- function Jr(t) {
728
- const e = De(Be, t, true);
727
+ function en(t) {
728
+ const e = De(Ie, t, true);
729
729
  return (i = {}) => new Promise((r) => {
730
- i.outro ? sn(e, () => {
731
- ye(e), r(void 0);
732
- }) : (ye(e), r(void 0));
730
+ i.outro ? on(e, () => {
731
+ xe(e), r(void 0);
732
+ }) : (xe(e), r(void 0));
733
733
  });
734
734
  }
735
735
  function ti(t) {
@@ -738,25 +738,25 @@ function ti(t) {
738
738
  function Wi(t) {
739
739
  return De(St, t, true);
740
740
  }
741
- function en(t, e = [], i = Ri) {
741
+ function tn(t, e = [], i = Ri) {
742
742
  const r = e.map(i);
743
- return tn(() => t(...r.map(U)));
743
+ return rn(() => t(...r.map(P)));
744
744
  }
745
- function tn(t, e = 0) {
745
+ function rn(t, e = 0) {
746
746
  return De(St | Yt | e, t, true);
747
747
  }
748
- function rn(t, e = true) {
749
- return De(St | Ce, t, true, e);
748
+ function nn(t, e = true) {
749
+ return De(St | ye, t, true, e);
750
750
  }
751
751
  function Vi(t) {
752
752
  var e = t.teardown;
753
753
  if (e !== null) {
754
754
  const i = Qt, r = k;
755
- ui(true), _e(null);
755
+ ui(true), ge(null);
756
756
  try {
757
757
  e.call(null);
758
758
  } finally {
759
- ui(i), _e(r);
759
+ ui(i), ge(r);
760
760
  }
761
761
  }
762
762
  }
@@ -764,18 +764,18 @@ function Ki(t, e = false) {
764
764
  var i = t.first;
765
765
  for (t.first = t.last = null; i !== null; ) {
766
766
  var r = i.next;
767
- ye(i, e), i = r;
767
+ xe(i, e), i = r;
768
768
  }
769
769
  }
770
- function nn(t) {
770
+ function sn(t) {
771
771
  for (var e = t.first; e !== null; ) {
772
772
  var i = e.next;
773
- (e.f & Ce) === 0 && ye(e), e = i;
773
+ (e.f & ye) === 0 && xe(e), e = i;
774
774
  }
775
775
  }
776
- function ye(t, e = true) {
776
+ function xe(t, e = true) {
777
777
  var i = false;
778
- if ((e || (t.f & pr) !== 0) && t.nodes_start !== null) {
778
+ if ((e || (t.f & vr) !== 0) && t.nodes_start !== null) {
779
779
  for (var r = t.nodes_start, n = t.nodes_end; r !== null; ) {
780
780
  var o = r === n ? null : (
781
781
  /** @type {TemplateNode} */
@@ -785,26 +785,26 @@ function ye(t, e = true) {
785
785
  }
786
786
  i = true;
787
787
  }
788
- Ki(t, e && !i), kt(t, 0), de(t, Dt);
788
+ Ki(t, e && !i), kt(t, 0), ue(t, Dt);
789
789
  var c = t.transitions;
790
790
  if (c !== null)
791
- for (const f of c)
792
- f.stop();
791
+ for (const h of c)
792
+ h.stop();
793
793
  Vi(t);
794
- var h = t.parent;
795
- h !== null && h.first !== null && qi(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
794
+ var f = t.parent;
795
+ f !== null && f.first !== null && qi(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
796
796
  }
797
797
  function qi(t) {
798
798
  var e = t.parent, i = t.prev, r = t.next;
799
799
  i !== null && (i.next = r), r !== null && (r.prev = i), e !== null && (e.first === t && (e.first = r), e.last === t && (e.last = i));
800
800
  }
801
- function sn(t, e) {
801
+ function on(t, e) {
802
802
  var i = [];
803
- Hi(t, i, true), on(i, () => {
804
- ye(t), e && e();
803
+ Hi(t, i, true), an(i, () => {
804
+ xe(t), e && e();
805
805
  });
806
806
  }
807
- function on(t, e) {
807
+ function an(t, e) {
808
808
  var i = t.length;
809
809
  if (i > 0) {
810
810
  var r = () => --i || e();
@@ -819,7 +819,7 @@ function Hi(t, e, i) {
819
819
  for (const c of t.transitions)
820
820
  (c.is_global || i) && e.push(c);
821
821
  for (var r = t.first; r !== null; ) {
822
- var n = r.next, o = (r.f & br) !== 0 || (r.f & Ce) !== 0;
822
+ var n = r.next, o = (r.f & pr) !== 0 || (r.f & ye) !== 0;
823
823
  Hi(r, e, o ? i : false), r = n;
824
824
  }
825
825
  }
@@ -827,13 +827,13 @@ function Hi(t, e, i) {
827
827
  function ji(t) {
828
828
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
829
829
  }
830
- let B = null;
830
+ let U = null;
831
831
  function ci(t) {
832
- B = t;
832
+ U = t;
833
833
  }
834
834
  function Gi(t, e = false, i) {
835
- B = {
836
- p: B,
835
+ U = {
836
+ p: U,
837
837
  c: null,
838
838
  e: null,
839
839
  m: false,
@@ -843,23 +843,23 @@ function Gi(t, e = false, i) {
843
843
  };
844
844
  }
845
845
  function Yi(t) {
846
- const e = B;
846
+ const e = U;
847
847
  if (e !== null) {
848
848
  t !== void 0 && (e.x = t);
849
849
  const c = e.e;
850
850
  if (c !== null) {
851
- var i = T, r = k;
851
+ var i = D, r = k;
852
852
  e.e = null;
853
853
  try {
854
854
  for (var n = 0; n < c.length; n++) {
855
855
  var o = c[n];
856
- xe(o.effect), _e(o.reaction), ti(o.fn);
856
+ _e(o.effect), ge(o.reaction), ti(o.fn);
857
857
  }
858
858
  } finally {
859
- xe(i), _e(r);
859
+ _e(i), ge(r);
860
860
  }
861
861
  }
862
- B = e.p, e.m = true;
862
+ U = e.p, e.m = true;
863
863
  }
864
864
  return t || /** @type {T} */
865
865
  {};
@@ -867,36 +867,36 @@ function Yi(t) {
867
867
  function Xi() {
868
868
  return true;
869
869
  }
870
- const an = ["touchstart", "touchmove"];
871
- function ln(t) {
872
- return an.includes(t);
873
- }
870
+ const ln = ["touchstart", "touchmove"];
874
871
  function un(t) {
875
- var e = k, i = T;
876
- _e(null), xe(null);
872
+ return ln.includes(t);
873
+ }
874
+ function cn(t) {
875
+ var e = k, i = D;
876
+ ge(null), _e(null);
877
877
  try {
878
878
  return t();
879
879
  } finally {
880
- _e(e), xe(i);
880
+ ge(e), _e(i);
881
881
  }
882
882
  }
883
883
  const Zi = /* @__PURE__ */ new Set(), Vt = /* @__PURE__ */ new Set();
884
- function cn(t, e, i, r = {}) {
884
+ function dn(t, e, i, r = {}) {
885
885
  function n(o) {
886
886
  if (r.capture || Xe.call(e, o), !o.cancelBubble)
887
- return un(() => i == null ? void 0 : i.call(this, o));
887
+ return cn(() => i == null ? void 0 : i.call(this, o));
888
888
  }
889
889
  return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? Xt(() => {
890
890
  e.addEventListener(t, n, r);
891
891
  }) : e.addEventListener(t, n, r), n;
892
892
  }
893
893
  function lt(t, e, i, r, n) {
894
- var o = { capture: r, passive: n }, c = cn(t, e, i, o);
895
- (e === document.body || e === window || e === document) && Xr(() => {
894
+ var o = { capture: r, passive: n }, c = dn(t, e, i, o);
895
+ (e === document.body || e === window || e === document) && Zr(() => {
896
896
  e.removeEventListener(t, c, o);
897
897
  });
898
898
  }
899
- function dn(t) {
899
+ function fn(t) {
900
900
  for (var e = 0; e < t.length; e++)
901
901
  Zi.add(t[e]);
902
902
  for (var i of Vt)
@@ -910,10 +910,10 @@ function Xe(t) {
910
910
  ), r = t.type, n = ((_a2 = t.composedPath) == null ? void 0 : _a2.call(t)) || [], o = (
911
911
  /** @type {null | Element} */
912
912
  n[0] || t.target
913
- ), c = 0, h = t.__root;
914
- if (h) {
915
- var f = n.indexOf(h);
916
- if (f !== -1 && (e === document || e === /** @type {any} */
913
+ ), c = 0, f = t.__root;
914
+ if (f) {
915
+ var h = n.indexOf(f);
916
+ if (h !== -1 && (e === document || e === /** @type {any} */
917
917
  window)) {
918
918
  t.__root = e;
919
919
  return;
@@ -921,7 +921,7 @@ function Xe(t) {
921
921
  var d = n.indexOf(e);
922
922
  if (d === -1)
923
923
  return;
924
- f <= d && (c = f);
924
+ h <= d && (c = h);
925
925
  }
926
926
  if (o = /** @type {Element} */
927
927
  n[c] || t.target, o !== e) {
@@ -931,8 +931,8 @@ function Xe(t) {
931
931
  return o || i;
932
932
  }
933
933
  });
934
- var p = k, w = T;
935
- _e(null), xe(null);
934
+ var p = k, w = D;
935
+ ge(null), _e(null);
936
936
  try {
937
937
  for (var s, a = []; o !== null; ) {
938
938
  var l = o.assignedSlot || o.parentNode || /** @type {any} */
@@ -948,43 +948,43 @@ function Xe(t) {
948
948
  b.apply(o, [t, ...$]);
949
949
  } else
950
950
  u.call(o, t);
951
- } catch (N) {
952
- s ? a.push(N) : s = N;
951
+ } catch (M) {
952
+ s ? a.push(M) : s = M;
953
953
  }
954
954
  if (t.cancelBubble || l === e || l === null)
955
955
  break;
956
956
  o = l;
957
957
  }
958
958
  if (s) {
959
- for (let N of a)
959
+ for (let M of a)
960
960
  queueMicrotask(() => {
961
- throw N;
961
+ throw M;
962
962
  });
963
963
  throw s;
964
964
  }
965
965
  } finally {
966
- t.__root = e, delete t.currentTarget, _e(p), xe(w);
966
+ t.__root = e, delete t.currentTarget, ge(p), _e(w);
967
967
  }
968
968
  }
969
969
  }
970
- function fn(t) {
970
+ function hn(t) {
971
971
  var e = document.createElement("template");
972
972
  return e.innerHTML = t, e.content;
973
973
  }
974
974
  function Kt(t, e) {
975
975
  var i = (
976
976
  /** @type {Effect} */
977
- T
977
+ D
978
978
  );
979
979
  i.nodes_start === null && (i.nodes_start = t, i.nodes_end = e);
980
980
  }
981
981
  // @__NO_SIDE_EFFECTS__
982
- function hn(t, e) {
983
- var i = (e & cr) !== 0, r, n = !t.startsWith("<!>");
982
+ function bn(t, e) {
983
+ var i = (e & dr) !== 0, r, n = !t.startsWith("<!>");
984
984
  return () => {
985
- if (ee)
985
+ if (Q)
986
986
  return Kt(z, null), z;
987
- r === void 0 && (r = fn(n ? t : "<!>" + t), r = /** @type {Node} */
987
+ r === void 0 && (r = hn(n ? t : "<!>" + t), r = /** @type {Node} */
988
988
  /* @__PURE__ */ xt(r));
989
989
  var o = (
990
990
  /** @type {TemplateNode} */
@@ -994,8 +994,8 @@ function hn(t, e) {
994
994
  };
995
995
  }
996
996
  function Qi(t, e) {
997
- if (ee) {
998
- T.nodes_end = z, Ai();
997
+ if (Q) {
998
+ D.nodes_end = z, Oi();
999
999
  return;
1000
1000
  }
1001
1001
  t !== null && t.before(
@@ -1006,15 +1006,15 @@ function Qi(t, e) {
1006
1006
  function Ji(t, e) {
1007
1007
  return er(t, e);
1008
1008
  }
1009
- function bn(t, e) {
1009
+ function pn(t, e) {
1010
1010
  Wt(), e.intro = e.intro ?? false;
1011
- const i = e.target, r = ee, n = z;
1011
+ const i = e.target, r = Q, n = z;
1012
1012
  try {
1013
1013
  for (var o = (
1014
1014
  /** @type {TemplateNode} */
1015
1015
  /* @__PURE__ */ xt(i)
1016
1016
  ); o && (o.nodeType !== 8 || /** @type {Comment} */
1017
- o.data !== dr); )
1017
+ o.data !== fr); )
1018
1018
  o = /** @type {TemplateNode} */
1019
1019
  /* @__PURE__ */ Tt(o);
1020
1020
  if (!o)
@@ -1022,74 +1022,74 @@ function bn(t, e) {
1022
1022
  at(true), _t(
1023
1023
  /** @type {Comment} */
1024
1024
  o
1025
- ), Ai();
1025
+ ), Oi();
1026
1026
  const c = er(t, { ...e, anchor: o });
1027
1027
  if (z === null || z.nodeType !== 8 || /** @type {Comment} */
1028
- z.data !== fr)
1028
+ z.data !== hr)
1029
1029
  throw Zt(), Je;
1030
1030
  return at(false), /** @type {Exports} */
1031
1031
  c;
1032
1032
  } catch (c) {
1033
1033
  if (c === Je)
1034
- return e.recover === false && Tr(), Wt(), Ur(i), at(false), Ji(t, e);
1034
+ return e.recover === false && Rr(), Wt(), Br(i), at(false), Ji(t, e);
1035
1035
  throw c;
1036
1036
  } finally {
1037
1037
  at(r), _t(n);
1038
1038
  }
1039
1039
  }
1040
- const Me = /* @__PURE__ */ new Map();
1040
+ const Ne = /* @__PURE__ */ new Map();
1041
1041
  function er(t, { target: e, anchor: i, props: r = {}, events: n, context: o, intro: c = true }) {
1042
1042
  Wt();
1043
- var h = /* @__PURE__ */ new Set(), f = (w) => {
1043
+ var f = /* @__PURE__ */ new Set(), h = (w) => {
1044
1044
  for (var s = 0; s < w.length; s++) {
1045
1045
  var a = w[s];
1046
- if (!h.has(a)) {
1047
- h.add(a);
1048
- var l = ln(a);
1046
+ if (!f.has(a)) {
1047
+ f.add(a);
1048
+ var l = un(a);
1049
1049
  e.addEventListener(a, Xe, { passive: l });
1050
- var u = Me.get(a);
1051
- u === void 0 ? (document.addEventListener(a, Xe, { passive: l }), Me.set(a, 1)) : Me.set(a, u + 1);
1050
+ var u = Ne.get(a);
1051
+ u === void 0 ? (document.addEventListener(a, Xe, { passive: l }), Ne.set(a, 1)) : Ne.set(a, u + 1);
1052
1052
  }
1053
1053
  }
1054
1054
  };
1055
- f(mr(Zi)), Vt.add(f);
1056
- var d = void 0, p = Jr(() => {
1055
+ h(gr(Zi)), Vt.add(h);
1056
+ var d = void 0, p = en(() => {
1057
1057
  var w = i ?? e.appendChild(Ni());
1058
- return rn(() => {
1058
+ return nn(() => {
1059
1059
  if (o) {
1060
1060
  Gi({});
1061
1061
  var s = (
1062
1062
  /** @type {ComponentContext} */
1063
- B
1063
+ U
1064
1064
  );
1065
1065
  s.c = o;
1066
1066
  }
1067
- n && (r.$$events = n), ee && Kt(
1067
+ n && (r.$$events = n), Q && Kt(
1068
1068
  /** @type {TemplateNode} */
1069
1069
  w,
1070
1070
  null
1071
- ), d = t(w, r) || {}, ee && (T.nodes_end = z), o && Yi();
1071
+ ), d = t(w, r) || {}, Q && (D.nodes_end = z), o && Yi();
1072
1072
  }), () => {
1073
1073
  var _a2;
1074
- for (var s of h) {
1074
+ for (var s of f) {
1075
1075
  e.removeEventListener(s, Xe);
1076
1076
  var a = (
1077
1077
  /** @type {number} */
1078
- Me.get(s)
1078
+ Ne.get(s)
1079
1079
  );
1080
- --a === 0 ? (document.removeEventListener(s, Xe), Me.delete(s)) : Me.set(s, a);
1080
+ --a === 0 ? (document.removeEventListener(s, Xe), Ne.delete(s)) : Ne.set(s, a);
1081
1081
  }
1082
- Vt.delete(f), w !== i && ((_a2 = w.parentNode) == null ? void 0 : _a2.removeChild(w));
1082
+ Vt.delete(h), w !== i && ((_a2 = w.parentNode) == null ? void 0 : _a2.removeChild(w));
1083
1083
  };
1084
1084
  });
1085
1085
  return qt.set(d, p), d;
1086
1086
  }
1087
1087
  let qt = /* @__PURE__ */ new WeakMap();
1088
- function pn(t, e) {
1088
+ function vn(t, e) {
1089
1089
  const i = qt.get(t);
1090
1090
  return i ? (qt.delete(t), i(e)) : Promise.resolve();
1091
1091
  }
1092
- function vn(t, e) {
1092
+ function wn(t, e) {
1093
1093
  Xt(() => {
1094
1094
  var i = t.getRootNode(), r = (
1095
1095
  /** @type {ShadowRoot} */
@@ -1110,7 +1110,7 @@ function vn(t, e) {
1110
1110
  }
1111
1111
  const di = [...`
1112
1112
  \r\f\xA0\v\uFEFF`];
1113
- function wn(t, e, i) {
1113
+ function mn(t, e, i) {
1114
1114
  var r = t == null ? "" : "" + t;
1115
1115
  if (r = r ? r + " " + e : e, i) {
1116
1116
  for (var n in i)
@@ -1118,35 +1118,35 @@ function wn(t, e, i) {
1118
1118
  r = r ? r + " " + n : n;
1119
1119
  else if (r.length)
1120
1120
  for (var o = n.length, c = 0; (c = r.indexOf(n, c)) >= 0; ) {
1121
- var h = c + o;
1122
- (c === 0 || di.includes(r[c - 1])) && (h === r.length || di.includes(r[h])) ? r = (c === 0 ? "" : r.substring(0, c)) + r.substring(h + 1) : c = h;
1121
+ var f = c + o;
1122
+ (c === 0 || di.includes(r[c - 1])) && (f === r.length || di.includes(r[f])) ? r = (c === 0 ? "" : r.substring(0, c)) + r.substring(f + 1) : c = f;
1123
1123
  }
1124
1124
  }
1125
1125
  return r === "" ? null : r;
1126
1126
  }
1127
- function mn(t, e, i, r, n, o) {
1127
+ function gn(t, e, i, r, n, o) {
1128
1128
  var c = t.__className;
1129
- if (ee || c !== i) {
1130
- var h = wn(i, r, o);
1131
- (!ee || h !== t.getAttribute("class")) && (h == null ? t.removeAttribute("class") : t.className = h), t.__className = i;
1129
+ if (Q || c !== i) {
1130
+ var f = mn(i, r, o);
1131
+ (!Q || f !== t.getAttribute("class")) && (f == null ? t.removeAttribute("class") : t.className = f), t.__className = i;
1132
1132
  } else if (o)
1133
- for (var f in o) {
1134
- var d = !!o[f];
1135
- (n == null || d !== !!n[f]) && t.classList.toggle(f, d);
1133
+ for (var h in o) {
1134
+ var d = !!o[h];
1135
+ (n == null || d !== !!n[h]) && t.classList.toggle(h, d);
1136
1136
  }
1137
1137
  return o;
1138
1138
  }
1139
1139
  function fi(t, e, i, r) {
1140
1140
  var n = t.__attributes ?? (t.__attributes = {});
1141
- ee && (n[e] = t.getAttribute(e)), n[e] !== (n[e] = i) && ("__styles" in t && (t.__styles = {}), i == null ? t.removeAttribute(e) : typeof i != "string" && gn(t).includes(e) ? t[e] = i : t.setAttribute(e, i));
1141
+ Q && (n[e] = t.getAttribute(e)), n[e] !== (n[e] = i) && ("__styles" in t && (t.__styles = {}), i == null ? t.removeAttribute(e) : typeof i != "string" && _n(t).includes(e) ? t[e] = i : t.setAttribute(e, i));
1142
1142
  }
1143
1143
  var hi = /* @__PURE__ */ new Map();
1144
- function gn(t) {
1144
+ function _n(t) {
1145
1145
  var e = hi.get(t.nodeName);
1146
1146
  if (e) return e;
1147
1147
  hi.set(t.nodeName, e = []);
1148
1148
  for (var i, r = t, n = Element.prototype; n !== r; ) {
1149
- i = gr(r);
1149
+ i = _r(r);
1150
1150
  for (var o in i)
1151
1151
  i[o].set && e.push(o);
1152
1152
  r = yi(r);
@@ -1171,7 +1171,7 @@ function Ut(t = {}, e, i, r) {
1171
1171
  }), t;
1172
1172
  }
1173
1173
  function tr(t) {
1174
- B === null && ji(), Zr(() => {
1174
+ U === null && ji(), Qr(() => {
1175
1175
  const e = it(t);
1176
1176
  if (typeof e == "function") return (
1177
1177
  /** @type {() => void} */
@@ -1179,10 +1179,10 @@ function tr(t) {
1179
1179
  );
1180
1180
  });
1181
1181
  }
1182
- function _n(t) {
1183
- B === null && ji(), tr(() => () => it(t));
1182
+ function xn(t) {
1183
+ U === null && ji(), tr(() => () => it(t));
1184
1184
  }
1185
- function xn(t, e, i) {
1185
+ function yn(t, e, i) {
1186
1186
  if (t == null)
1187
1187
  return e(void 0), dt;
1188
1188
  const r = it(
@@ -1194,31 +1194,31 @@ function xn(t, e, i) {
1194
1194
  );
1195
1195
  return r.unsubscribe ? () => r.unsubscribe() : r;
1196
1196
  }
1197
- const Fe = [];
1197
+ const Pe = [];
1198
1198
  function ir(t, e = dt) {
1199
1199
  let i = null;
1200
1200
  const r = /* @__PURE__ */ new Set();
1201
- function n(h) {
1202
- if (Si(t, h) && (t = h, i)) {
1203
- const f = !Fe.length;
1201
+ function n(f) {
1202
+ if (Si(t, f) && (t = f, i)) {
1203
+ const h = !Pe.length;
1204
1204
  for (const d of r)
1205
- d[1](), Fe.push(d, t);
1206
- if (f) {
1207
- for (let d = 0; d < Fe.length; d += 2)
1208
- Fe[d][0](Fe[d + 1]);
1209
- Fe.length = 0;
1205
+ d[1](), Pe.push(d, t);
1206
+ if (h) {
1207
+ for (let d = 0; d < Pe.length; d += 2)
1208
+ Pe[d][0](Pe[d + 1]);
1209
+ Pe.length = 0;
1210
1210
  }
1211
1211
  }
1212
1212
  }
1213
- function o(h) {
1214
- n(h(
1213
+ function o(f) {
1214
+ n(f(
1215
1215
  /** @type {T} */
1216
1216
  t
1217
1217
  ));
1218
1218
  }
1219
- function c(h, f = dt) {
1220
- const d = [h, f];
1221
- return r.add(d), r.size === 1 && (i = e(n, o) || dt), h(
1219
+ function c(f, h = dt) {
1220
+ const d = [f, h];
1221
+ return r.add(d), r.size === 1 && (i = e(n, o) || dt), f(
1222
1222
  /** @type {T} */
1223
1223
  t
1224
1224
  ), () => {
@@ -1229,7 +1229,7 @@ function ir(t, e = dt) {
1229
1229
  }
1230
1230
  function rr(t) {
1231
1231
  let e;
1232
- return xn(t, (i) => e = i)(), e;
1232
+ return yn(t, (i) => e = i)(), e;
1233
1233
  }
1234
1234
  function ut(t, e, i, r) {
1235
1235
  var n;
@@ -1238,31 +1238,31 @@ function ut(t, e, i, r) {
1238
1238
  var o = (
1239
1239
  /** @type {V} */
1240
1240
  r
1241
- ), c = true, h = false, f = () => (h = true, c && (c = false, o = /** @type {V} */
1241
+ ), c = true, f = false, h = () => (f = true, c && (c = false, o = /** @type {V} */
1242
1242
  r), o), d;
1243
1243
  d = () => {
1244
1244
  var a = (
1245
1245
  /** @type {V} */
1246
1246
  t[e]
1247
1247
  );
1248
- return a === void 0 ? f() : (c = true, h = false, a);
1248
+ return a === void 0 ? h() : (c = true, f = false, a);
1249
1249
  };
1250
1250
  var p = false, w = /* @__PURE__ */ Di(n), s = /* @__PURE__ */ Ri(() => {
1251
- var a = d(), l = U(w);
1251
+ var a = d(), l = P(w);
1252
1252
  return p ? (p = false, l) : w.v = a;
1253
1253
  });
1254
1254
  return function(a, l) {
1255
1255
  if (arguments.length > 0) {
1256
- const u = l ? U(s) : a;
1257
- return s.equals(u) || (p = true, j(w, u), h && o !== void 0 && (o = u), it(() => U(s))), a;
1256
+ const u = l ? P(s) : a;
1257
+ return s.equals(u) || (p = true, H(w, u), f && o !== void 0 && (o = u), it(() => P(s))), a;
1258
1258
  }
1259
- return U(s);
1259
+ return P(s);
1260
1260
  };
1261
1261
  }
1262
- function yn(t) {
1263
- return new Cn(t);
1262
+ function Cn(t) {
1263
+ return new En(t);
1264
1264
  }
1265
- class Cn {
1265
+ class En {
1266
1266
  /**
1267
1267
  * @param {ComponentConstructorOptions & {
1268
1268
  * component: any;
@@ -1275,24 +1275,24 @@ class Cn {
1275
1275
  __privateAdd(this, _e2);
1276
1276
  var _a2;
1277
1277
  var i = /* @__PURE__ */ new Map(), r = (o, c) => {
1278
- var h = /* @__PURE__ */ Di(c);
1279
- return i.set(o, h), h;
1278
+ var f = /* @__PURE__ */ Di(c);
1279
+ return i.set(o, f), f;
1280
1280
  };
1281
1281
  const n = new Proxy(
1282
1282
  { ...e.props || {}, $$events: {} },
1283
1283
  {
1284
1284
  get(o, c) {
1285
- return U(i.get(c) ?? r(c, Reflect.get(o, c)));
1285
+ return P(i.get(c) ?? r(c, Reflect.get(o, c)));
1286
1286
  },
1287
1287
  has(o, c) {
1288
- return c === vr ? true : (U(i.get(c) ?? r(c, Reflect.get(o, c))), Reflect.has(o, c));
1288
+ return c === wr ? true : (P(i.get(c) ?? r(c, Reflect.get(o, c))), Reflect.has(o, c));
1289
1289
  },
1290
- set(o, c, h) {
1291
- return j(i.get(c) ?? r(c, h), h), Reflect.set(o, c, h);
1290
+ set(o, c, f) {
1291
+ return H(i.get(c) ?? r(c, f), f), Reflect.set(o, c, f);
1292
1292
  }
1293
1293
  }
1294
1294
  );
1295
- __privateSet(this, _e2, (e.hydrate ? bn : Ji)(e.component, {
1295
+ __privateSet(this, _e2, (e.hydrate ? pn : Ji)(e.component, {
1296
1296
  target: e.target,
1297
1297
  anchor: e.anchor,
1298
1298
  props: n,
@@ -1315,7 +1315,7 @@ class Cn {
1315
1315
  (o) => {
1316
1316
  Object.assign(n, o);
1317
1317
  }, __privateGet(this, _e2).$destroy = () => {
1318
- pn(__privateGet(this, _e2));
1318
+ vn(__privateGet(this, _e2));
1319
1319
  };
1320
1320
  }
1321
1321
  /** @param {Record<string, any>} props */
@@ -1407,7 +1407,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
1407
1407
  };
1408
1408
  if (await Promise.resolve(), !this.$$cn || this.$$c)
1409
1409
  return;
1410
- const e = {}, i = En(this);
1410
+ const e = {}, i = kn(this);
1411
1411
  for (const r of this.$$s)
1412
1412
  r in i && (r === "default" && !this.$$d.children ? (this.$$d.children = t(r), e.default = true) : e[r] = t(r));
1413
1413
  for (const r of this.attributes) {
@@ -1416,7 +1416,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
1416
1416
  }
1417
1417
  for (const r in this.$$p_d)
1418
1418
  !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
1419
- this.$$c = yn({
1419
+ this.$$c = Cn({
1420
1420
  component: this.$$ctor,
1421
1421
  target: this.shadowRoot || this,
1422
1422
  props: {
@@ -1424,7 +1424,7 @@ typeof HTMLElement == "function" && (nr = class extends HTMLElement {
1424
1424
  $$slots: e,
1425
1425
  $$host: this
1426
1426
  }
1427
- }), this.$$me = Qr(() => {
1427
+ }), this.$$me = Jr(() => {
1428
1428
  Wi(() => {
1429
1429
  var _a2;
1430
1430
  this.$$r = true;
@@ -1506,7 +1506,7 @@ function bt(t, e, i, r) {
1506
1506
  return e;
1507
1507
  }
1508
1508
  }
1509
- function En(t) {
1509
+ function kn(t) {
1510
1510
  const e = {};
1511
1511
  return t.childNodes.forEach((i) => {
1512
1512
  e[
@@ -1515,43 +1515,43 @@ function En(t) {
1515
1515
  ] = true;
1516
1516
  }), e;
1517
1517
  }
1518
- function kn(t, e, i, r, n, o) {
1518
+ function Sn(t, e, i, r, n, o) {
1519
1519
  let c = class extends nr {
1520
1520
  constructor() {
1521
1521
  super(t, i, n), this.$$p_d = e;
1522
1522
  }
1523
1523
  static get observedAttributes() {
1524
1524
  return mt(e).map(
1525
- (h) => (e[h].attribute || h).toLowerCase()
1525
+ (f) => (e[f].attribute || f).toLowerCase()
1526
1526
  );
1527
1527
  }
1528
1528
  };
1529
- return mt(e).forEach((h) => {
1530
- gt(c.prototype, h, {
1529
+ return mt(e).forEach((f) => {
1530
+ gt(c.prototype, f, {
1531
1531
  get() {
1532
- return this.$$c && h in this.$$c ? this.$$c[h] : this.$$d[h];
1532
+ return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
1533
1533
  },
1534
- set(f) {
1534
+ set(h) {
1535
1535
  var _a2;
1536
- f = bt(h, f, e), this.$$d[h] = f;
1536
+ h = bt(f, h, e), this.$$d[f] = h;
1537
1537
  var d = this.$$c;
1538
1538
  if (d) {
1539
- var p = (_a2 = Ue(d, h)) == null ? void 0 : _a2.get;
1540
- p ? d[h] = f : d.$set({ [h]: f });
1539
+ var p = (_a2 = ze(d, f)) == null ? void 0 : _a2.get;
1540
+ p ? d[f] = h : d.$set({ [f]: h });
1541
1541
  }
1542
1542
  }
1543
1543
  });
1544
- }), r.forEach((h) => {
1545
- gt(c.prototype, h, {
1544
+ }), r.forEach((f) => {
1545
+ gt(c.prototype, f, {
1546
1546
  get() {
1547
1547
  var _a2;
1548
- return (_a2 = this.$$c) == null ? void 0 : _a2[h];
1548
+ return (_a2 = this.$$c) == null ? void 0 : _a2[f];
1549
1549
  }
1550
1550
  });
1551
1551
  }), o && (c = o(c)), t.element = /** @type {any} */
1552
1552
  c, c;
1553
1553
  }
1554
- class Sn {
1554
+ class Dn {
1555
1555
  constructor() {
1556
1556
  __publicField(this, "verbose", false);
1557
1557
  }
@@ -1562,51 +1562,51 @@ class Sn {
1562
1562
  this.verbose && console.error(e, i);
1563
1563
  }
1564
1564
  }
1565
- const F = new Sn();
1566
- function Dn(t) {
1565
+ const L = new Dn();
1566
+ function Tn(t) {
1567
1567
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1568
1568
  }
1569
- var Ze = { exports: {} }, Tn = Ze.exports, pi;
1570
- function Rn() {
1569
+ var Ze = { exports: {} }, Rn = Ze.exports, pi;
1570
+ function $n() {
1571
1571
  return pi || (pi = 1, (function(t, e) {
1572
1572
  (function(i, r) {
1573
- var n = "1.0.41", o = "", c = "?", h = "function", f = "undefined", d = "object", p = "string", w = "major", s = "model", a = "name", l = "type", u = "vendor", b = "version", $ = "architecture", N = "console", _ = "mobile", m = "tablet", O = "smarttv", A = "wearable", fe = "embedded", Ie = 500, Te = "Amazon", he = "Apple", be = "ASUS", rt = "BlackBerry", Re = "Browser", $e = "Chrome", Ot = "Edge", ke = "Firefox", Oe = "Google", nt = "Honor", st = "Huawei", At = "Lenovo", pe = "LG", We = "Microsoft", Ve = "Motorola", Ae = "Nvidia", Ke = "OnePlus", ve = "Opera", we = "OPPO", X = "Samsung", qe = "Sharp", ae = "Sony", I = "Xiaomi", v = "Zebra", S = "Facebook", L = "Chromium OS", R = "Mac OS", M = " Browser", W = function(y, C) {
1573
+ var n = "1.0.41", o = "", c = "?", f = "function", h = "undefined", d = "object", p = "string", w = "major", s = "model", a = "name", l = "type", u = "vendor", b = "version", $ = "architecture", M = "console", _ = "mobile", m = "tablet", A = "smarttv", O = "wearable", ce = "embedded", Ve = 500, Te = "Amazon", de = "Apple", fe = "ASUS", rt = "BlackBerry", Re = "Browser", $e = "Chrome", At = "Edge", Ee = "Firefox", Ae = "Google", nt = "Honor", st = "Huawei", Ot = "Lenovo", Oe = "LG", Le = "Microsoft", Ke = "Motorola", qe = "Nvidia", He = "OnePlus", he = "Opera", Me = "OPPO", J = "Samsung", be = "Sharp", pe = "Sony", ke = "Xiaomi", I = "Zebra", v = "Facebook", T = "Chromium OS", F = "Mac OS", R = " Browser", W = function(y, C) {
1574
1574
  var x = {};
1575
- for (var D in y)
1576
- C[D] && C[D].length % 2 === 0 ? x[D] = C[D].concat(y[D]) : x[D] = y[D];
1575
+ for (var S in y)
1576
+ C[S] && C[S].length % 2 === 0 ? x[S] = C[S].concat(y[S]) : x[S] = y[S];
1577
1577
  return x;
1578
- }, V = function(y) {
1578
+ }, B = function(y) {
1579
1579
  for (var C = {}, x = 0; x < y.length; x++)
1580
1580
  C[y[x].toUpperCase()] = y[x];
1581
1581
  return C;
1582
- }, te = function(y, C) {
1583
- return typeof y === p ? He(C).indexOf(He(y)) !== -1 : false;
1584
- }, He = function(y) {
1582
+ }, se = function(y, C) {
1583
+ return typeof y === p ? ve(C).indexOf(ve(y)) !== -1 : false;
1584
+ }, ve = function(y) {
1585
1585
  return y.toLowerCase();
1586
- }, lr = function(y) {
1586
+ }, ur = function(y) {
1587
1587
  return typeof y === p ? y.replace(/[^\d\.]/g, o).split(".")[0] : r;
1588
1588
  }, Lt = function(y, C) {
1589
1589
  if (typeof y === p)
1590
- return y = y.replace(/^\s\s*/, o), typeof C === f ? y : y.substring(0, Ie);
1590
+ return y = y.replace(/^\s\s*/, o), typeof C === h ? y : y.substring(0, Ve);
1591
1591
  }, je = function(y, C) {
1592
- for (var x = 0, D, le, ie, E, g, re; x < C.length && !g; ) {
1592
+ for (var x = 0, S, oe, ee, E, g, te; x < C.length && !g; ) {
1593
1593
  var Mt = C[x], ni = C[x + 1];
1594
- for (D = le = 0; D < Mt.length && !g && Mt[D]; )
1595
- if (g = Mt[D++].exec(y), g)
1596
- for (ie = 0; ie < ni.length; ie++)
1597
- re = g[++le], E = ni[ie], typeof E === d && E.length > 0 ? E.length === 2 ? typeof E[1] == h ? this[E[0]] = E[1].call(this, re) : this[E[0]] = E[1] : E.length === 3 ? typeof E[1] === h && !(E[1].exec && E[1].test) ? this[E[0]] = re ? E[1].call(this, re, E[2]) : r : this[E[0]] = re ? re.replace(E[1], E[2]) : r : E.length === 4 && (this[E[0]] = re ? E[3].call(this, re.replace(E[1], E[2])) : r) : this[E] = re || r;
1594
+ for (S = oe = 0; S < Mt.length && !g && Mt[S]; )
1595
+ if (g = Mt[S++].exec(y), g)
1596
+ for (ee = 0; ee < ni.length; ee++)
1597
+ te = g[++oe], E = ni[ee], typeof E === d && E.length > 0 ? E.length === 2 ? typeof E[1] == f ? this[E[0]] = E[1].call(this, te) : this[E[0]] = E[1] : E.length === 3 ? typeof E[1] === f && !(E[1].exec && E[1].test) ? this[E[0]] = te ? E[1].call(this, te, E[2]) : r : this[E[0]] = te ? te.replace(E[1], E[2]) : r : E.length === 4 && (this[E[0]] = te ? E[3].call(this, te.replace(E[1], E[2])) : r) : this[E] = te || r;
1598
1598
  x += 2;
1599
1599
  }
1600
1600
  }, Ge = function(y, C) {
1601
1601
  for (var x in C)
1602
1602
  if (typeof C[x] === d && C[x].length > 0) {
1603
- for (var D = 0; D < C[x].length; D++)
1604
- if (te(C[x][D], y))
1603
+ for (var S = 0; S < C[x].length; S++)
1604
+ if (se(C[x][S], y))
1605
1605
  return x === c ? r : x;
1606
- } else if (te(C[x], y))
1606
+ } else if (se(C[x], y))
1607
1607
  return x === c ? r : x;
1608
1608
  return C.hasOwnProperty("*") ? C["*"] : y;
1609
- }, ur = {
1609
+ }, cr = {
1610
1610
  "1.0": "/8",
1611
1611
  "1.2": "/1",
1612
1612
  "1.3": "/3",
@@ -1653,17 +1653,17 @@ function Rn() {
1653
1653
  /opios[\/ ]+([\w\.]+)/i
1654
1654
  // Opera mini on iphone >= 8.0
1655
1655
  ],
1656
- [b, [a, ve + " Mini"]],
1656
+ [b, [a, he + " Mini"]],
1657
1657
  [
1658
1658
  /\bop(?:rg)?x\/([\w\.]+)/i
1659
1659
  // Opera GX
1660
1660
  ],
1661
- [b, [a, ve + " GX"]],
1661
+ [b, [a, he + " GX"]],
1662
1662
  [
1663
1663
  /\bopr\/([\w\.]+)/i
1664
1664
  // Opera Webkit
1665
1665
  ],
1666
- [b, [a, ve]],
1666
+ [b, [a, he]],
1667
1667
  [
1668
1668
  // Mixed
1669
1669
  /\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i
@@ -1746,12 +1746,12 @@ function Rn() {
1746
1746
  /\bfocus\/([\w\.]+)/i
1747
1747
  // Firefox Focus
1748
1748
  ],
1749
- [b, [a, ke + " Focus"]],
1749
+ [b, [a, Ee + " Focus"]],
1750
1750
  [
1751
1751
  /\bopt\/([\w\.]+)/i
1752
1752
  // Opera Touch
1753
1753
  ],
1754
- [b, [a, ve + " Touch"]],
1754
+ [b, [a, he + " Touch"]],
1755
1755
  [
1756
1756
  /coc_coc\w+\/([\w\.]+)/i
1757
1757
  // Coc Coc Browser
@@ -1766,17 +1766,17 @@ function Rn() {
1766
1766
  /coast\/([\w\.]+)/i
1767
1767
  // Opera Coast
1768
1768
  ],
1769
- [b, [a, ve + " Coast"]],
1769
+ [b, [a, he + " Coast"]],
1770
1770
  [
1771
1771
  /miuibrowser\/([\w\.]+)/i
1772
1772
  // MIUI Browser
1773
1773
  ],
1774
- [b, [a, "MIUI" + M]],
1774
+ [b, [a, "MIUI" + R]],
1775
1775
  [
1776
1776
  /fxios\/([\w\.-]+)/i
1777
1777
  // Firefox for iOS
1778
1778
  ],
1779
- [b, [a, ke]],
1779
+ [b, [a, Ee]],
1780
1780
  [
1781
1781
  /\bqihoobrowser\/?([\w\.]*)/i
1782
1782
  // 360
@@ -1790,13 +1790,13 @@ function Rn() {
1790
1790
  [
1791
1791
  /(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i
1792
1792
  ],
1793
- [[a, /(.+)/, "$1" + M], b],
1793
+ [[a, /(.+)/, "$1" + R], b],
1794
1794
  [
1795
1795
  // Oculus/Sailfish/HuaweiBrowser/VivoBrowser/PicoBrowser
1796
1796
  /samsungbrowser\/([\w\.]+)/i
1797
1797
  // Samsung Internet
1798
1798
  ],
1799
- [b, [a, X + " Internet"]],
1799
+ [b, [a, J + " Internet"]],
1800
1800
  [
1801
1801
  /metasr[\/ ]?([\d\.]+)/i
1802
1802
  // Sogou Explorer
@@ -1835,7 +1835,7 @@ function Rn() {
1835
1835
  /((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i
1836
1836
  // Facebook App for iOS & Android
1837
1837
  ],
1838
- [[a, S], b],
1838
+ [[a, v], b],
1839
1839
  [
1840
1840
  /(Klarna)\/([\w\.]+)/i,
1841
1841
  // Klarna Shopping Browser for iOS & Android
@@ -1901,7 +1901,7 @@ function Rn() {
1901
1901
  /webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i
1902
1902
  // Safari < 3.0
1903
1903
  ],
1904
- [a, [b, Ge, ur]],
1904
+ [a, [b, Ge, cr]],
1905
1905
  [
1906
1906
  /(webkit|khtml)\/([\w\.]+)/i
1907
1907
  ],
@@ -1921,7 +1921,7 @@ function Rn() {
1921
1921
  /mobile vr; rv:([\w\.]+)\).+firefox/i
1922
1922
  // Firefox Reality
1923
1923
  ],
1924
- [b, [a, ke + " Reality"]],
1924
+ [b, [a, Ee + " Reality"]],
1925
1925
  [
1926
1926
  /ekiohf.+(flow)\/([\w\.]+)/i,
1927
1927
  // Flow
@@ -1980,7 +1980,7 @@ function Rn() {
1980
1980
  /((ppc|powerpc)(64)?)( mac|;|\))/i
1981
1981
  // PowerPC
1982
1982
  ],
1983
- [[$, /ower/, o, He]],
1983
+ [[$, /ower/, o, ve]],
1984
1984
  [
1985
1985
  / sun4\w[;\)]/i
1986
1986
  // SPARC
@@ -1990,7 +1990,7 @@ function Rn() {
1990
1990
  /\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i
1991
1991
  // IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
1992
1992
  ],
1993
- [[$, He]]
1993
+ [[$, ve]]
1994
1994
  ],
1995
1995
  device: [
1996
1996
  [
@@ -2000,35 +2000,35 @@ function Rn() {
2000
2000
  // Samsung
2001
2001
  /\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i
2002
2002
  ],
2003
- [s, [u, X], [l, m]],
2003
+ [s, [u, J], [l, m]],
2004
2004
  [
2005
2005
  /\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
2006
2006
  /samsung[- ]((?!sm-[lr])[-\w]+)/i,
2007
2007
  /sec-(sgh\w+)/i
2008
2008
  ],
2009
- [s, [u, X], [l, _]],
2009
+ [s, [u, J], [l, _]],
2010
2010
  [
2011
2011
  // Apple
2012
2012
  /(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i
2013
2013
  // iPod/iPhone
2014
2014
  ],
2015
- [s, [u, he], [l, _]],
2015
+ [s, [u, de], [l, _]],
2016
2016
  [
2017
2017
  /\((ipad);[-\w\),; ]+apple/i,
2018
2018
  // iPad
2019
2019
  /applecoremedia\/[\w\.]+ \((ipad)/i,
2020
2020
  /\b(ipad)\d\d?,\d\d?[;\]].+ios/i
2021
2021
  ],
2022
- [s, [u, he], [l, m]],
2022
+ [s, [u, de], [l, m]],
2023
2023
  [
2024
2024
  /(macintosh);/i
2025
2025
  ],
2026
- [s, [u, he]],
2026
+ [s, [u, de]],
2027
2027
  [
2028
2028
  // Sharp
2029
2029
  /\b(sh-?[altvz]?\d\d[a-ekm]?)/i
2030
2030
  ],
2031
- [s, [u, qe], [l, _]],
2031
+ [s, [u, be], [l, _]],
2032
2032
  [
2033
2033
  // Honor
2034
2034
  /\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i
@@ -2054,7 +2054,7 @@ function Rn() {
2054
2054
  /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i
2055
2055
  // Mi Pad tablets
2056
2056
  ],
2057
- [[s, /_/g, " "], [u, I], [l, m]],
2057
+ [[s, /_/g, " "], [u, ke], [l, m]],
2058
2058
  [
2059
2059
  /\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,
2060
2060
  // Xiaomi POCO
@@ -2070,17 +2070,17 @@ function Rn() {
2070
2070
  // Xiaomi Mi
2071
2071
  / ([\w ]+) miui\/v?\d/i
2072
2072
  ],
2073
- [[s, /_/g, " "], [u, I], [l, _]],
2073
+ [[s, /_/g, " "], [u, ke], [l, _]],
2074
2074
  [
2075
2075
  // OPPO
2076
2076
  /; (\w+) bui.+ oppo/i,
2077
2077
  /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i
2078
2078
  ],
2079
- [s, [u, we], [l, _]],
2079
+ [s, [u, Me], [l, _]],
2080
2080
  [
2081
2081
  /\b(opd2(\d{3}a?))(?: bui|\))/i
2082
2082
  ],
2083
- [s, [u, Ge, { OnePlus: ["304", "403", "203"], "*": we }], [l, m]],
2083
+ [s, [u, Ge, { OnePlus: ["304", "403", "203"], "*": Me }], [l, m]],
2084
2084
  [
2085
2085
  // Vivo
2086
2086
  /vivo (\w+)(?: bui|\))/i,
@@ -2098,28 +2098,28 @@ function Rn() {
2098
2098
  /\bmot(?:orola)?[- ](\w*)/i,
2099
2099
  /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
2100
2100
  ],
2101
- [s, [u, Ve], [l, _]],
2101
+ [s, [u, Ke], [l, _]],
2102
2102
  [
2103
2103
  /\b(mz60\d|xoom[2 ]{0,2}) build\//i
2104
2104
  ],
2105
- [s, [u, Ve], [l, m]],
2105
+ [s, [u, Ke], [l, m]],
2106
2106
  [
2107
2107
  // LG
2108
2108
  /((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
2109
2109
  ],
2110
- [s, [u, pe], [l, m]],
2110
+ [s, [u, Oe], [l, m]],
2111
2111
  [
2112
2112
  /(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,
2113
2113
  /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,
2114
2114
  /\blg-?([\d\w]+) bui/i
2115
2115
  ],
2116
- [s, [u, pe], [l, _]],
2116
+ [s, [u, Oe], [l, _]],
2117
2117
  [
2118
2118
  // Lenovo
2119
2119
  /(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,
2120
2120
  /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i
2121
2121
  ],
2122
- [s, [u, At], [l, m]],
2122
+ [s, [u, Ot], [l, m]],
2123
2123
  [
2124
2124
  // Nokia
2125
2125
  /(nokia) (t[12][01])/i
@@ -2135,28 +2135,28 @@ function Rn() {
2135
2135
  /(pixel (c|tablet))\b/i
2136
2136
  // Google Pixel C/Tablet
2137
2137
  ],
2138
- [s, [u, Oe], [l, m]],
2138
+ [s, [u, Ae], [l, m]],
2139
2139
  [
2140
2140
  /droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i
2141
2141
  // Google Pixel
2142
2142
  ],
2143
- [s, [u, Oe], [l, _]],
2143
+ [s, [u, Ae], [l, _]],
2144
2144
  [
2145
2145
  // Sony
2146
2146
  /droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
2147
2147
  ],
2148
- [s, [u, ae], [l, _]],
2148
+ [s, [u, pe], [l, _]],
2149
2149
  [
2150
2150
  /sony tablet [ps]/i,
2151
2151
  /\b(?:sony)?sgp\w+(?: bui|\))/i
2152
2152
  ],
2153
- [[s, "Xperia Tablet"], [u, ae], [l, m]],
2153
+ [[s, "Xperia Tablet"], [u, pe], [l, m]],
2154
2154
  [
2155
2155
  // OnePlus
2156
2156
  / (kb2005|in20[12]5|be20[12][59])\b/i,
2157
2157
  /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i
2158
2158
  ],
2159
- [s, [u, Ke], [l, _]],
2159
+ [s, [u, He], [l, _]],
2160
2160
  [
2161
2161
  // Amazon
2162
2162
  /(alexa)webm/i,
@@ -2187,11 +2187,11 @@ function Rn() {
2187
2187
  // Asus
2188
2188
  /(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i
2189
2189
  ],
2190
- [s, [u, be], [l, m]],
2190
+ [s, [u, fe], [l, m]],
2191
2191
  [
2192
2192
  / (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i
2193
2193
  ],
2194
- [s, [u, be], [l, _]],
2194
+ [s, [u, fe], [l, _]],
2195
2195
  [
2196
2196
  // HTC
2197
2197
  /(nexus 9)/i
@@ -2216,7 +2216,7 @@ function Rn() {
2216
2216
  // itel
2217
2217
  /(itel) ((\w+))/i
2218
2218
  ],
2219
- [[u, He], s, [l, Ge, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
2219
+ [[u, ve], s, [l, Ge, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
2220
2220
  [
2221
2221
  // Acer
2222
2222
  /droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
@@ -2314,7 +2314,7 @@ function Rn() {
2314
2314
  /(surface duo)/i
2315
2315
  // Surface Duo
2316
2316
  ],
2317
- [s, [u, We], [l, m]],
2317
+ [s, [u, Le], [l, m]],
2318
2318
  [
2319
2319
  /droid [\d\.]+; (fp\du?)(?: b|\))/i
2320
2320
  // Fairphone
@@ -2429,7 +2429,7 @@ function Rn() {
2429
2429
  /((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i
2430
2430
  // Nvidia Tablets
2431
2431
  ],
2432
- [s, [u, Ae], [l, m]],
2432
+ [s, [u, qe], [l, m]],
2433
2433
  [
2434
2434
  /(sprint) (\w+)/i
2435
2435
  // Sprint Phones
@@ -2439,16 +2439,16 @@ function Rn() {
2439
2439
  /(kin\.[onetw]{3})/i
2440
2440
  // Microsoft Kin
2441
2441
  ],
2442
- [[s, /\./g, " "], [u, We], [l, _]],
2442
+ [[s, /\./g, " "], [u, Le], [l, _]],
2443
2443
  [
2444
2444
  /droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
2445
2445
  // Zebra
2446
2446
  ],
2447
- [s, [u, v], [l, m]],
2447
+ [s, [u, I], [l, m]],
2448
2448
  [
2449
2449
  /droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
2450
2450
  ],
2451
- [s, [u, v], [l, _]],
2451
+ [s, [u, I], [l, _]],
2452
2452
  [
2453
2453
  ///////////////////
2454
2454
  // SMARTTVS
@@ -2456,73 +2456,73 @@ function Rn() {
2456
2456
  /smart-tv.+(samsung)/i
2457
2457
  // Samsung
2458
2458
  ],
2459
- [u, [l, O]],
2459
+ [u, [l, A]],
2460
2460
  [
2461
2461
  /hbbtv.+maple;(\d+)/i
2462
2462
  ],
2463
- [[s, /^/, "SmartTV"], [u, X], [l, O]],
2463
+ [[s, /^/, "SmartTV"], [u, J], [l, A]],
2464
2464
  [
2465
2465
  /(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
2466
2466
  // LG SmartTV
2467
2467
  ],
2468
- [[u, pe], [l, O]],
2468
+ [[u, Oe], [l, A]],
2469
2469
  [
2470
2470
  /(apple) ?tv/i
2471
2471
  // Apple TV
2472
2472
  ],
2473
- [u, [s, he + " TV"], [l, O]],
2473
+ [u, [s, de + " TV"], [l, A]],
2474
2474
  [
2475
2475
  /crkey/i
2476
2476
  // Google Chromecast
2477
2477
  ],
2478
- [[s, $e + "cast"], [u, Oe], [l, O]],
2478
+ [[s, $e + "cast"], [u, Ae], [l, A]],
2479
2479
  [
2480
2480
  /droid.+aft(\w+)( bui|\))/i
2481
2481
  // Fire TV
2482
2482
  ],
2483
- [s, [u, Te], [l, O]],
2483
+ [s, [u, Te], [l, A]],
2484
2484
  [
2485
2485
  /(shield \w+ tv)/i
2486
2486
  // Nvidia Shield TV
2487
2487
  ],
2488
- [s, [u, Ae], [l, O]],
2488
+ [s, [u, qe], [l, A]],
2489
2489
  [
2490
2490
  /\(dtv[\);].+(aquos)/i,
2491
2491
  /(aquos-tv[\w ]+)\)/i
2492
2492
  // Sharp
2493
2493
  ],
2494
- [s, [u, qe], [l, O]],
2494
+ [s, [u, be], [l, A]],
2495
2495
  [
2496
2496
  /(bravia[\w ]+)( bui|\))/i
2497
2497
  // Sony
2498
2498
  ],
2499
- [s, [u, ae], [l, O]],
2499
+ [s, [u, pe], [l, A]],
2500
2500
  [
2501
2501
  /(mi(tv|box)-?\w+) bui/i
2502
2502
  // Xiaomi
2503
2503
  ],
2504
- [s, [u, I], [l, O]],
2504
+ [s, [u, ke], [l, A]],
2505
2505
  [
2506
2506
  /Hbbtv.*(technisat) (.*);/i
2507
2507
  // TechniSAT
2508
2508
  ],
2509
- [u, s, [l, O]],
2509
+ [u, s, [l, A]],
2510
2510
  [
2511
2511
  /\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
2512
2512
  // Roku
2513
2513
  /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
2514
2514
  // HbbTV devices
2515
2515
  ],
2516
- [[u, Lt], [s, Lt], [l, O]],
2516
+ [[u, Lt], [s, Lt], [l, A]],
2517
2517
  [
2518
2518
  // SmartTV from Unidentified Vendors
2519
2519
  /droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
2520
2520
  ],
2521
- [s, [l, O]],
2521
+ [s, [l, A]],
2522
2522
  [
2523
2523
  /\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
2524
2524
  ],
2525
- [[l, O]],
2525
+ [[l, A]],
2526
2526
  [
2527
2527
  ///////////////////
2528
2528
  // CONSOLES
@@ -2532,22 +2532,22 @@ function Rn() {
2532
2532
  /(nintendo) ([wids3utch]+)/i
2533
2533
  // Nintendo
2534
2534
  ],
2535
- [u, s, [l, N]],
2535
+ [u, s, [l, M]],
2536
2536
  [
2537
2537
  /droid.+; (shield)( bui|\))/i
2538
2538
  // Nvidia Portable
2539
2539
  ],
2540
- [s, [u, Ae], [l, N]],
2540
+ [s, [u, qe], [l, M]],
2541
2541
  [
2542
2542
  /(playstation \w+)/i
2543
2543
  // Playstation
2544
2544
  ],
2545
- [s, [u, ae], [l, N]],
2545
+ [s, [u, pe], [l, M]],
2546
2546
  [
2547
2547
  /\b(xbox(?: one)?(?!; xbox))[\); ]/i
2548
2548
  // Microsoft Xbox
2549
2549
  ],
2550
- [s, [u, We], [l, N]],
2550
+ [s, [u, Le], [l, M]],
2551
2551
  [
2552
2552
  ///////////////////
2553
2553
  // WEARABLES
@@ -2555,48 +2555,48 @@ function Rn() {
2555
2555
  /\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i
2556
2556
  // Samsung Galaxy Watch
2557
2557
  ],
2558
- [s, [u, X], [l, A]],
2558
+ [s, [u, J], [l, O]],
2559
2559
  [
2560
2560
  /((pebble))app/i,
2561
2561
  // Pebble
2562
2562
  /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i
2563
2563
  // Asus ZenWatch / LG Watch / Pixel Watch
2564
2564
  ],
2565
- [u, s, [l, A]],
2565
+ [u, s, [l, O]],
2566
2566
  [
2567
2567
  /(ow(?:19|20)?we?[1-3]{1,3})/i
2568
2568
  // Oppo Watch
2569
2569
  ],
2570
- [s, [u, we], [l, A]],
2570
+ [s, [u, Me], [l, O]],
2571
2571
  [
2572
2572
  /(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
2573
2573
  // Apple Watch
2574
2574
  ],
2575
- [s, [u, he], [l, A]],
2575
+ [s, [u, de], [l, O]],
2576
2576
  [
2577
2577
  /(opwwe\d{3})/i
2578
2578
  // OnePlus Watch
2579
2579
  ],
2580
- [s, [u, Ke], [l, A]],
2580
+ [s, [u, He], [l, O]],
2581
2581
  [
2582
2582
  /(moto 360)/i
2583
2583
  // Motorola 360
2584
2584
  ],
2585
- [s, [u, Ve], [l, A]],
2585
+ [s, [u, Ke], [l, O]],
2586
2586
  [
2587
2587
  /(smartwatch 3)/i
2588
2588
  // Sony SmartWatch
2589
2589
  ],
2590
- [s, [u, ae], [l, A]],
2590
+ [s, [u, pe], [l, O]],
2591
2591
  [
2592
2592
  /(g watch r)/i
2593
2593
  // LG G Watch R
2594
2594
  ],
2595
- [s, [u, pe], [l, A]],
2595
+ [s, [u, Oe], [l, O]],
2596
2596
  [
2597
2597
  /droid.+; (wt63?0{2,3})\)/i
2598
2598
  ],
2599
- [s, [u, v], [l, A]],
2599
+ [s, [u, I], [l, O]],
2600
2600
  [
2601
2601
  ///////////////////
2602
2602
  // XR
@@ -2604,17 +2604,17 @@ function Rn() {
2604
2604
  /droid.+; (glass) \d/i
2605
2605
  // Google Glass
2606
2606
  ],
2607
- [s, [u, Oe], [l, A]],
2607
+ [s, [u, Ae], [l, O]],
2608
2608
  [
2609
2609
  /(pico) (4|neo3(?: link|pro)?)/i
2610
2610
  // Pico
2611
2611
  ],
2612
- [u, s, [l, A]],
2612
+ [u, s, [l, O]],
2613
2613
  [
2614
2614
  /; (quest( \d| pro)?)/i
2615
2615
  // Oculus Quest
2616
2616
  ],
2617
- [s, [u, S], [l, A]],
2617
+ [s, [u, v], [l, O]],
2618
2618
  [
2619
2619
  ///////////////////
2620
2620
  // EMBEDDED
@@ -2622,21 +2622,21 @@ function Rn() {
2622
2622
  /(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
2623
2623
  // Tesla
2624
2624
  ],
2625
- [u, [l, fe]],
2625
+ [u, [l, ce]],
2626
2626
  [
2627
2627
  /(aeobc)\b/i
2628
2628
  // Echo Dot
2629
2629
  ],
2630
- [s, [u, Te], [l, fe]],
2630
+ [s, [u, Te], [l, ce]],
2631
2631
  [
2632
2632
  /(homepod).+mac os/i
2633
2633
  // Apple HomePod
2634
2634
  ],
2635
- [s, [u, he], [l, fe]],
2635
+ [s, [u, de], [l, ce]],
2636
2636
  [
2637
2637
  /windows iot/i
2638
2638
  ],
2639
- [[l, fe]],
2639
+ [[l, ce]],
2640
2640
  [
2641
2641
  ////////////////////
2642
2642
  // MIXED (GENERIC)
@@ -2671,7 +2671,7 @@ function Rn() {
2671
2671
  /windows.+ edge\/([\w\.]+)/i
2672
2672
  // EdgeHTML
2673
2673
  ],
2674
- [b, [a, Ot + "HTML"]],
2674
+ [b, [a, At + "HTML"]],
2675
2675
  [
2676
2676
  /(arkweb)\/([\w\.]+)/i
2677
2677
  // ArkWeb
@@ -2739,7 +2739,7 @@ function Rn() {
2739
2739
  /(macintosh|mac_powerpc\b)(?!.+haiku)/i
2740
2740
  // Mac OS
2741
2741
  ],
2742
- [[a, R], [b, /_/g, "."]],
2742
+ [[a, F], [b, /_/g, "."]],
2743
2743
  [
2744
2744
  // Mobile OSes
2745
2745
  /droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i
@@ -2770,7 +2770,7 @@ function Rn() {
2770
2770
  /mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i
2771
2771
  // Firefox OS
2772
2772
  ],
2773
- [b, [a, ke + " OS"]],
2773
+ [b, [a, Ee + " OS"]],
2774
2774
  [
2775
2775
  /web0s;.+rt(tv)/i,
2776
2776
  /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i
@@ -2792,7 +2792,7 @@ function Rn() {
2792
2792
  /(cros) [\w]+(?:\)| ([\w\.]+)\b)/i
2793
2793
  // Chromium OS
2794
2794
  ],
2795
- [[a, L], b],
2795
+ [[a, T], b],
2796
2796
  [
2797
2797
  // Smart TVs
2798
2798
  /panasonic;(viera)/i,
@@ -2842,25 +2842,25 @@ function Rn() {
2842
2842
  ],
2843
2843
  [a, b]
2844
2844
  ]
2845
- }, Z = function(y, C) {
2846
- if (typeof y === d && (C = y, y = r), !(this instanceof Z))
2847
- return new Z(y, C).getResult();
2848
- var x = typeof i !== f && i.navigator ? i.navigator : r, D = y || (x && x.userAgent ? x.userAgent : o), le = x && x.userAgentData ? x.userAgentData : r, ie = C ? W(ri, C) : ri, E = x && x.userAgent == D;
2845
+ }, Y = function(y, C) {
2846
+ if (typeof y === d && (C = y, y = r), !(this instanceof Y))
2847
+ return new Y(y, C).getResult();
2848
+ var x = typeof i !== h && i.navigator ? i.navigator : r, S = y || (x && x.userAgent ? x.userAgent : o), oe = x && x.userAgentData ? x.userAgentData : r, ee = C ? W(ri, C) : ri, E = x && x.userAgent == S;
2849
2849
  return this.getBrowser = function() {
2850
2850
  var g = {};
2851
- return g[a] = r, g[b] = r, je.call(g, D, ie.browser), g[w] = lr(g[b]), E && x && x.brave && typeof x.brave.isBrave == h && (g[a] = "Brave"), g;
2851
+ return g[a] = r, g[b] = r, je.call(g, S, ee.browser), g[w] = ur(g[b]), E && x && x.brave && typeof x.brave.isBrave == f && (g[a] = "Brave"), g;
2852
2852
  }, this.getCPU = function() {
2853
2853
  var g = {};
2854
- return g[$] = r, je.call(g, D, ie.cpu), g;
2854
+ return g[$] = r, je.call(g, S, ee.cpu), g;
2855
2855
  }, this.getDevice = function() {
2856
2856
  var g = {};
2857
- return g[u] = r, g[s] = r, g[l] = r, je.call(g, D, ie.device), E && !g[l] && le && le.mobile && (g[l] = _), E && g[s] == "Macintosh" && x && typeof x.standalone !== f && x.maxTouchPoints && x.maxTouchPoints > 2 && (g[s] = "iPad", g[l] = m), g;
2857
+ return g[u] = r, g[s] = r, g[l] = r, je.call(g, S, ee.device), E && !g[l] && oe && oe.mobile && (g[l] = _), E && g[s] == "Macintosh" && x && typeof x.standalone !== h && x.maxTouchPoints && x.maxTouchPoints > 2 && (g[s] = "iPad", g[l] = m), g;
2858
2858
  }, this.getEngine = function() {
2859
2859
  var g = {};
2860
- return g[a] = r, g[b] = r, je.call(g, D, ie.engine), g;
2860
+ return g[a] = r, g[b] = r, je.call(g, S, ee.engine), g;
2861
2861
  }, this.getOS = function() {
2862
2862
  var g = {};
2863
- return g[a] = r, g[b] = r, je.call(g, D, ie.os), E && !g[a] && le && le.platform && le.platform != "Unknown" && (g[a] = le.platform.replace(/chrome os/i, L).replace(/macos/i, R)), g;
2863
+ return g[a] = r, g[b] = r, je.call(g, S, ee.os), E && !g[a] && oe && oe.platform && oe.platform != "Unknown" && (g[a] = oe.platform.replace(/chrome os/i, T).replace(/macos/i, F)), g;
2864
2864
  }, this.getResult = function() {
2865
2865
  return {
2866
2866
  ua: this.getUA(),
@@ -2871,29 +2871,29 @@ function Rn() {
2871
2871
  cpu: this.getCPU()
2872
2872
  };
2873
2873
  }, this.getUA = function() {
2874
- return D;
2874
+ return S;
2875
2875
  }, this.setUA = function(g) {
2876
- return D = typeof g === p && g.length > Ie ? Lt(g, Ie) : g, this;
2877
- }, this.setUA(D), this;
2876
+ return S = typeof g === p && g.length > Ve ? Lt(g, Ve) : g, this;
2877
+ }, this.setUA(S), this;
2878
2878
  };
2879
- Z.VERSION = n, Z.BROWSER = V([a, b, w]), Z.CPU = V([$]), Z.DEVICE = V([s, u, l, N, _, O, m, A, fe]), Z.ENGINE = Z.OS = V([a, b]), t.exports && (e = t.exports = Z), e.UAParser = Z;
2880
- var Le = typeof i !== f && (i.jQuery || i.Zepto);
2881
- if (Le && !Le.ua) {
2882
- var ot = new Z();
2883
- Le.ua = ot.getResult(), Le.ua.get = function() {
2879
+ Y.VERSION = n, Y.BROWSER = B([a, b, w]), Y.CPU = B([$]), Y.DEVICE = B([s, u, l, M, _, A, m, O, ce]), Y.ENGINE = Y.OS = B([a, b]), t.exports && (e = t.exports = Y), e.UAParser = Y;
2880
+ var Fe = typeof i !== h && (i.jQuery || i.Zepto);
2881
+ if (Fe && !Fe.ua) {
2882
+ var ot = new Y();
2883
+ Fe.ua = ot.getResult(), Fe.ua.get = function() {
2884
2884
  return ot.getUA();
2885
- }, Le.ua.set = function(y) {
2885
+ }, Fe.ua.set = function(y) {
2886
2886
  ot.setUA(y);
2887
2887
  var C = ot.getResult();
2888
2888
  for (var x in C)
2889
- Le.ua[x] = C[x];
2889
+ Fe.ua[x] = C[x];
2890
2890
  };
2891
2891
  }
2892
- })(typeof window == "object" ? window : Tn);
2892
+ })(typeof window == "object" ? window : Rn);
2893
2893
  })(Ze, Ze.exports)), Ze.exports;
2894
2894
  }
2895
- var $n = Rn();
2896
- const On = /* @__PURE__ */ Dn($n), An = new On(), sr = An.getResult(), Ln = (_a = sr.engine.name) == null ? void 0 : _a.toLowerCase(), vi = Number((_b = sr.engine.version) == null ? void 0 : _b.split(".")[0]), Bt = {
2895
+ var An = $n();
2896
+ const On = /* @__PURE__ */ Tn(An), Ln = new On(), sr = Ln.getResult(), Mn = (_a = sr.engine.name) == null ? void 0 : _a.toLowerCase(), vi = Number((_b = sr.engine.version) == null ? void 0 : _b.split(".")[0]), Bt = {
2897
2897
  "0x0001": "Escape",
2898
2898
  "0x0002": "Digit1",
2899
2899
  "0x0003": "Digit2",
@@ -3051,7 +3051,7 @@ const On = /* @__PURE__ */ Dn($n), An = new On(), sr = An.getResult(), Ln = (_a
3051
3051
  "0xE05C": "MetaRight",
3052
3052
  "0xE05F": "Sleep",
3053
3053
  "0xE063": "WakeUp"
3054
- }, Mn = {
3054
+ }, Fn = {
3055
3055
  "0x0054": "PrintScreen",
3056
3056
  "0xE020": "VolumeMute",
3057
3057
  // The documentation says it's 'AudioVolumeMute', but the actual test shows that it's 'VolumeMute'.
@@ -3059,9 +3059,9 @@ const On = /* @__PURE__ */ Dn($n), An = new On(), sr = An.getResult(), Ln = (_a
3059
3059
  "0xE030": "VolumeUp",
3060
3060
  "0xE05B": vi > 117 ? "MetaLeft" : "OSLeft",
3061
3061
  "0xE05C": vi > 117 ? "MetaRight" : "OSRight"
3062
- }, Fn = {
3062
+ }, Nn = {
3063
3063
  blink: zt({ ...Bt, ...wi }),
3064
- gecko: zt({ ...Bt, ...Mn }),
3064
+ gecko: zt({ ...Bt, ...Fn }),
3065
3065
  webkit: zt({ ...Bt, ...wi })
3066
3066
  };
3067
3067
  function zt(t) {
@@ -3071,11 +3071,11 @@ function zt(t) {
3071
3071
  return e;
3072
3072
  }
3073
3073
  const mi = function(t) {
3074
- const e = Fn[Ln];
3074
+ const e = Nn[Mn];
3075
3075
  return parseInt(e[t], 16);
3076
3076
  };
3077
- var Ht = /* @__PURE__ */ ((t) => (t.CTRL_LEFT = "ControlLeft", t.SHIFT_LEFT = "ShiftLeft", t.SHIFT_RIGHT = "ShiftRight", t.ALT_LEFT = "AltLeft", t.CTRL_RIGHT = "ControlRight", t.ALT_RIGHT = "AltRight", t.ControlLeft = "ControlLeft", t.ShiftLeft = "ShiftLeft", t.ShiftRight = "ShiftRight", t.AltLeft = "AltLeft", t.ControlRight = "ControlRight", t.AltRight = "AltRight", t))(Ht || {}), Pe = /* @__PURE__ */ ((t) => (t.CAPS_LOCK = "CapsLock", t.NUM_LOCK = "NumLock", t.SCROLL_LOCK = "ScrollLock", t.KANA_MODE = "KanaMode", t.CapsLock = "CapsLock", t.ScrollLock = "ScrollLock", t.NumLock = "NumLock", t.KanaMode = "KanaMode", t))(Pe || {}), ce = /* @__PURE__ */ ((t) => (t[t.CTRL_ALT_DEL = 0] = "CTRL_ALT_DEL", t[t.META = 1] = "META", t[t.CTRL_C = 2] = "CTRL_C", t[t.CTRL_V = 3] = "CTRL_V", t))(ce || {}), me = /* @__PURE__ */ ((t) => (t[t.Fit = 1] = "Fit", t[t.Full = 2] = "Full", t[t.Real = 3] = "Real", t))(me || {}), Qe = /* @__PURE__ */ ((t) => (t[t.Pixel = 0] = "Pixel", t[t.Line = 1] = "Line", t[t.Page = 2] = "Page", t))(Qe || {});
3078
- class Nn {
3077
+ var Ht = /* @__PURE__ */ ((t) => (t.CTRL_LEFT = "ControlLeft", t.SHIFT_LEFT = "ShiftLeft", t.SHIFT_RIGHT = "ShiftRight", t.ALT_LEFT = "AltLeft", t.CTRL_RIGHT = "ControlRight", t.ALT_RIGHT = "AltRight", t.ControlLeft = "ControlLeft", t.ShiftLeft = "ShiftLeft", t.ShiftRight = "ShiftRight", t.AltLeft = "AltLeft", t.ControlRight = "ControlRight", t.AltRight = "AltRight", t))(Ht || {}), Be = /* @__PURE__ */ ((t) => (t.CAPS_LOCK = "CapsLock", t.NUM_LOCK = "NumLock", t.SCROLL_LOCK = "ScrollLock", t.KANA_MODE = "KanaMode", t.CapsLock = "CapsLock", t.ScrollLock = "ScrollLock", t.NumLock = "NumLock", t.KanaMode = "KanaMode", t))(Be || {}), le = /* @__PURE__ */ ((t) => (t[t.CTRL_ALT_DEL = 0] = "CTRL_ALT_DEL", t[t.META = 1] = "META", t[t.CTRL_C = 2] = "CTRL_C", t[t.CTRL_V = 3] = "CTRL_V", t))(le || {}), we = /* @__PURE__ */ ((t) => (t[t.Fit = 1] = "Fit", t[t.Full = 2] = "Full", t[t.Real = 3] = "Real", t))(we || {}), Qe = /* @__PURE__ */ ((t) => (t[t.Pixel = 0] = "Pixel", t[t.Line = 1] = "Line", t[t.Page = 2] = "Page", t))(Qe || {});
3078
+ class Pn {
3079
3079
  constructor(e, i, r) {
3080
3080
  __publicField(this, "username");
3081
3081
  __publicField(this, "password");
@@ -3088,7 +3088,7 @@ class Nn {
3088
3088
  this.username = e.username, this.password = e.password, this.proxyAddress = i.address, this.authToken = i.authToken, this.destination = r.destination, this.serverDomain = r.serverDomain, this.extensions = r.extensions, this.desktopSize = r.desktopSize;
3089
3089
  }
3090
3090
  }
3091
- class Pn {
3091
+ class Un {
3092
3092
  /**
3093
3093
  * Creates a new ConfigBuilder instance.
3094
3094
  */
@@ -3193,10 +3193,10 @@ class Pn {
3193
3193
  extensions: this.extensions,
3194
3194
  desktopSize: this.desktopSize
3195
3195
  };
3196
- return new Nn(e, i, r);
3196
+ return new Pn(e, i, r);
3197
3197
  }
3198
3198
  }
3199
- class Ne {
3199
+ class Ue {
3200
3200
  constructor() {
3201
3201
  __publicField(this, "subscribers");
3202
3202
  this.subscribers = [];
@@ -3209,7 +3209,7 @@ class Ne {
3209
3209
  i(e);
3210
3210
  }
3211
3211
  }
3212
- class Un {
3212
+ class Bn {
3213
3213
  constructor(e) {
3214
3214
  __publicField(this, "module");
3215
3215
  __publicField(this, "canvas");
@@ -3225,15 +3225,15 @@ class Un {
3225
3225
  __publicField(this, "lastCursorStyle", "default");
3226
3226
  __publicField(this, "enableClipboard", true);
3227
3227
  __publicField(this, "_autoClipboard", true);
3228
- __publicField(this, "sessionStartedObservable", new Ne());
3229
- __publicField(this, "resizeObservable", new Ne());
3228
+ __publicField(this, "sessionStartedObservable", new Ue());
3229
+ __publicField(this, "resizeObservable", new Ue());
3230
3230
  __publicField(this, "session");
3231
3231
  __publicField(this, "modifierKeyPressed", []);
3232
- __publicField(this, "mousePositionObservable", new Ne());
3233
- __publicField(this, "changeVisibilityObservable", new Ne());
3234
- __publicField(this, "scaleObservable", new Ne());
3235
- __publicField(this, "dynamicResizeObservable", new Ne());
3236
- this.module = e, F.info("Web bridge initialized.");
3232
+ __publicField(this, "mousePositionObservable", new Ue());
3233
+ __publicField(this, "changeVisibilityObservable", new Ue());
3234
+ __publicField(this, "scaleObservable", new Ue());
3235
+ __publicField(this, "dynamicResizeObservable", new Ue());
3236
+ this.module = e, L.info("Web bridge initialized.");
3237
3237
  }
3238
3238
  get autoClipboard() {
3239
3239
  return this._autoClipboard;
@@ -3316,7 +3316,7 @@ class Un {
3316
3316
  this.doTransactionFromDeviceEvents([this.module.DeviceEvent.mouseMove(e.x, e.y)]), this.mousePositionObservable.publish(e);
3317
3317
  }
3318
3318
  configBuilder() {
3319
- return new Pn();
3319
+ return new Un();
3320
3320
  }
3321
3321
  async connect(e) {
3322
3322
  var _a2;
@@ -3336,7 +3336,7 @@ class Un {
3336
3336
  }), this.sessionStartedObservable.publish(null);
3337
3337
  const n = async () => {
3338
3338
  try {
3339
- return F.info("Starting the session."), await r.run();
3339
+ return L.info("Starting the session."), await r.run();
3340
3340
  } finally {
3341
3341
  this.setVisibility(false);
3342
3342
  }
@@ -3350,16 +3350,16 @@ class Un {
3350
3350
  }
3351
3351
  sendSpecialCombination(e) {
3352
3352
  switch (e) {
3353
- case ce.CTRL_ALT_DEL:
3353
+ case le.CTRL_ALT_DEL:
3354
3354
  this.ctrlAltDel();
3355
3355
  break;
3356
- case ce.META:
3356
+ case le.META:
3357
3357
  this.sendMeta();
3358
3358
  break;
3359
- case ce.CTRL_C:
3359
+ case le.CTRL_C:
3360
3360
  this.sendCtrlC();
3361
3361
  break;
3362
- case ce.CTRL_V:
3362
+ case le.CTRL_V:
3363
3363
  this.sendCtrlV();
3364
3364
  break;
3365
3365
  }
@@ -3441,24 +3441,24 @@ class Un {
3441
3441
  e.type === "keydown" ? (i = this.module.DeviceEvent.keyPressed, r = this.module.DeviceEvent.unicodePressed) : e.type === "keyup" && (i = this.module.DeviceEvent.keyReleased, r = this.module.DeviceEvent.unicodeReleased);
3442
3442
  let n = true;
3443
3443
  if (!this.supportsUnicodeKeyboardShortcuts()) {
3444
- for (const h of ["Alt", "Control", "Meta", "AltGraph", "OS"])
3445
- if (e.getModifierState(h)) {
3444
+ for (const f of ["Alt", "Control", "Meta", "AltGraph", "OS"])
3445
+ if (e.getModifierState(f)) {
3446
3446
  n = false;
3447
3447
  break;
3448
3448
  }
3449
3449
  }
3450
- const o = e.code in Ht, c = e.code in Pe;
3450
+ const o = e.code in Ht, c = e.code in Be;
3451
3451
  if (o && this.updateModifierKeyState(e), c && this.syncModifier(e), !e.repeat || !o && !c) {
3452
- const h = mi(e.code), f = Number.isNaN(h);
3453
- if (!this.keyboardUnicodeMode && i && !f) {
3454
- this.doTransactionFromDeviceEvents([i(h)]);
3452
+ const f = mi(e.code), h = Number.isNaN(f);
3453
+ if (!this.keyboardUnicodeMode && i && !h) {
3454
+ this.doTransactionFromDeviceEvents([i(f)]);
3455
3455
  return;
3456
3456
  }
3457
3457
  if (this.keyboardUnicodeMode && r && i) {
3458
3458
  if (["Dead", "Unidentified"].indexOf(e.key) != -1)
3459
3459
  return;
3460
3460
  const d = mi(e.key);
3461
- Number.isNaN(d) && e.key.length === 1 && !o && n ? this.doTransactionFromDeviceEvents([r(e.key)]) : f || this.doTransactionFromDeviceEvents([i(h)]);
3461
+ Number.isNaN(d) && e.key.length === 1 && !o && n ? this.doTransactionFromDeviceEvents([r(e.key)]) : h || this.doTransactionFromDeviceEvents([i(f)]);
3462
3462
  return;
3463
3463
  }
3464
3464
  }
@@ -3481,8 +3481,8 @@ class Un {
3481
3481
  }
3482
3482
  const c = new Image();
3483
3483
  c.src = i;
3484
- const h = Math.round(r), f = Math.round(n);
3485
- o = `url(${i}) ${h} ${f}, default`;
3484
+ const f = Math.round(r), h = Math.round(n);
3485
+ o = `url(${i}) ${f} ${h}, default`;
3486
3486
  break;
3487
3487
  }
3488
3488
  default: {
@@ -3494,7 +3494,7 @@ class Un {
3494
3494
  }
3495
3495
  syncModifier(e) {
3496
3496
  var _a2;
3497
- const i = e.getModifierState(Pe.CAPS_LOCK), r = e.getModifierState(Pe.NUM_LOCK), n = e.getModifierState(Pe.SCROLL_LOCK), o = e.getModifierState(Pe.KANA_MODE);
3497
+ const i = e.getModifierState(Be.CAPS_LOCK), r = e.getModifierState(Be.NUM_LOCK), n = e.getModifierState(Be.SCROLL_LOCK), o = e.getModifierState(Be.KANA_MODE);
3498
3498
  (_a2 = this.session) == null ? void 0 : _a2.synchronizeLockKeys(
3499
3499
  n,
3500
3500
  r,
@@ -3548,7 +3548,7 @@ class Un {
3548
3548
  ]);
3549
3549
  }
3550
3550
  }
3551
- class Bn {
3551
+ class zn {
3552
3552
  constructor(e, i) {
3553
3553
  __publicField(this, "remoteDesktopService");
3554
3554
  __publicField(this, "clipboardService");
@@ -3558,22 +3558,22 @@ class Bn {
3558
3558
  return this.remoteDesktopService.configBuilder();
3559
3559
  }
3560
3560
  connect(e) {
3561
- return F.info("Initializing connection."), this.remoteDesktopService.connect(e);
3561
+ return L.info("Initializing connection."), this.remoteDesktopService.connect(e);
3562
3562
  }
3563
3563
  ctrlAltDel() {
3564
- this.remoteDesktopService.sendSpecialCombination(ce.CTRL_ALT_DEL);
3564
+ this.remoteDesktopService.sendSpecialCombination(le.CTRL_ALT_DEL);
3565
3565
  }
3566
3566
  metaKey() {
3567
- this.remoteDesktopService.sendSpecialCombination(ce.META);
3567
+ this.remoteDesktopService.sendSpecialCombination(le.META);
3568
3568
  }
3569
3569
  ctrlC() {
3570
- this.remoteDesktopService.sendSpecialCombination(ce.CTRL_C);
3570
+ this.remoteDesktopService.sendSpecialCombination(le.CTRL_C);
3571
3571
  }
3572
3572
  ctrlV() {
3573
- this.remoteDesktopService.sendSpecialCombination(ce.CTRL_V);
3573
+ this.remoteDesktopService.sendSpecialCombination(le.CTRL_V);
3574
3574
  }
3575
3575
  setVisibility(e) {
3576
- F.info(`Change component visibility to: ${e}`), this.remoteDesktopService.setVisibility(e);
3576
+ L.info(`Change component visibility to: ${e}`), this.remoteDesktopService.setVisibility(e);
3577
3577
  }
3578
3578
  setScale(e) {
3579
3579
  this.remoteDesktopService.setScale(e);
@@ -3645,7 +3645,7 @@ class Bn {
3645
3645
  }
3646
3646
  }
3647
3647
  const jt = ir(false);
3648
- function zn() {
3648
+ function In() {
3649
3649
  const t = ir([]);
3650
3650
  return {
3651
3651
  subscribe: t.subscribe,
@@ -3661,20 +3661,20 @@ function zn() {
3661
3661
  }
3662
3662
  };
3663
3663
  }
3664
- const Gt = zn();
3665
- var q = /* @__PURE__ */ ((t) => (t[t.Full = 0] = "Full", t[t.TextOnly = 1] = "TextOnly", t[t.TextOnlyServerOnly = 2] = "TextOnlyServerOnly", t[t.None = 3] = "None", t))(q || {}), or = /* @__PURE__ */ ((t) => (t[t.General = 0] = "General", t[t.WrongPassword = 1] = "WrongPassword", t[t.LogonFailure = 2] = "LogonFailure", t[t.AccessDenied = 3] = "AccessDenied", t[t.RDCleanPath = 4] = "RDCleanPath", t[t.ProxyConnect = 5] = "ProxyConnect", t[t.NegotiationFailure = 6] = "NegotiationFailure", t))(or || {});
3666
- const In = 100;
3667
- function ne(t) {
3664
+ const Gt = In();
3665
+ var K = /* @__PURE__ */ ((t) => (t[t.Full = 0] = "Full", t[t.TextOnly = 1] = "TextOnly", t[t.TextOnlyServerOnly = 2] = "TextOnlyServerOnly", t[t.None = 3] = "None", t))(K || {}), or = /* @__PURE__ */ ((t) => (t[t.General = 0] = "General", t[t.WrongPassword = 1] = "WrongPassword", t[t.LogonFailure = 2] = "LogonFailure", t[t.AccessDenied = 3] = "AccessDenied", t[t.RDCleanPath = 4] = "RDCleanPath", t[t.ProxyConnect = 5] = "ProxyConnect", t[t.NegotiationFailure = 6] = "NegotiationFailure", t))(or || {});
3666
+ const Wn = 100;
3667
+ function ie(t) {
3668
3668
  throw {
3669
3669
  kind: () => or.General,
3670
3670
  backtrace: () => t
3671
3671
  };
3672
3672
  }
3673
- class Wn {
3673
+ class Vn {
3674
3674
  constructor(e, i) {
3675
3675
  __publicField(this, "remoteDesktopService");
3676
3676
  __publicField(this, "module");
3677
- __publicField(this, "ClipboardApiSupported", q.None);
3677
+ __publicField(this, "ClipboardApiSupported", K.None);
3678
3678
  __publicField(this, "lastClientClipboardItems", {});
3679
3679
  __publicField(this, "lastReceivedClipboardData", {});
3680
3680
  __publicField(this, "lastSentClipboardData", null);
@@ -3712,29 +3712,29 @@ class Wn {
3712
3712
  this.remoteDesktopService.emitWarningEvent("Clipboard is available only in secure contexts (HTTPS).");
3713
3713
  return;
3714
3714
  }
3715
- if (navigator.clipboard != null && (navigator.clipboard.read != null && navigator.clipboard.write != null ? this.ClipboardApiSupported = q.Full : navigator.clipboard.readText != null ? (this.ClipboardApiSupported = q.TextOnly, this.remoteDesktopService.emitWarningEvent(
3715
+ if (navigator.clipboard != null && (navigator.clipboard.read != null && navigator.clipboard.write != null ? this.ClipboardApiSupported = K.Full : navigator.clipboard.readText != null ? (this.ClipboardApiSupported = K.TextOnly, this.remoteDesktopService.emitWarningEvent(
3716
3716
  "Clipboard is limited to text-only data types due to an outdated browser version!"
3717
- )) : navigator.clipboard.writeText != null && (this.ClipboardApiSupported = q.TextOnlyServerOnly, this.remoteDesktopService.emitWarningEvent(
3717
+ )) : navigator.clipboard.writeText != null && (this.ClipboardApiSupported = K.TextOnlyServerOnly, this.remoteDesktopService.emitWarningEvent(
3718
3718
  "Clipboard reading is not supported and writing is limited to text-only data types due to an outdated browser version!"
3719
- ))), this.ClipboardApiSupported === q.Full)
3719
+ ))), this.ClipboardApiSupported === K.Full)
3720
3720
  try {
3721
3721
  (await navigator.permissions.query({
3722
3722
  name: "clipboard-read"
3723
- })).state === "denied" && (this.ClipboardApiSupported = q.TextOnly);
3723
+ })).state === "denied" && (this.ClipboardApiSupported = K.TextOnly);
3724
3724
  } catch {
3725
3725
  try {
3726
3726
  await navigator.clipboard.read();
3727
3727
  } catch {
3728
- this.ClipboardApiSupported = q.TextOnly;
3728
+ this.ClipboardApiSupported = K.TextOnly;
3729
3729
  }
3730
3730
  }
3731
- if (this.ClipboardApiSupported === q.None) {
3731
+ if (this.ClipboardApiSupported === K.None) {
3732
3732
  this.remoteDesktopService.emitWarningEvent(
3733
3733
  "Clipboard is not supported due to an outdated browser version!"
3734
3734
  );
3735
3735
  return;
3736
3736
  }
3737
- this.remoteDesktopService.setOnForceClipboardUpdate(this.onForceClipboardUpdate.bind(this)), this.ClipboardApiSupported === q.Full ? this.remoteDesktopService.autoClipboard ? (this.remoteDesktopService.setOnRemoteClipboardChanged(this.onRemoteClipboardChangedAutoMode.bind(this)), this.remoteDesktopService.sessionStartedObservable.subscribe((e) => {
3737
+ this.remoteDesktopService.setOnForceClipboardUpdate(this.onForceClipboardUpdate.bind(this)), this.ClipboardApiSupported === K.Full ? this.remoteDesktopService.autoClipboard ? (this.remoteDesktopService.setOnRemoteClipboardChanged(this.onRemoteClipboardChangedAutoMode.bind(this)), this.remoteDesktopService.sessionStartedObservable.subscribe((e) => {
3738
3738
  this.scheduleOnMonitorClipboardUpdate();
3739
3739
  })) : this.remoteDesktopService.setOnRemoteClipboardChanged(
3740
3740
  this.onRemoteClipboardChangedManualMode.bind(this)
@@ -3743,27 +3743,27 @@ class Wn {
3743
3743
  // Copies clipboard content received from the server to the local clipboard.
3744
3744
  // Returns the result of the operation. On failure, it additionally raises an error session event.
3745
3745
  async saveRemoteClipboardData() {
3746
- if (this.ClipboardApiSupported !== q.Full)
3746
+ if (this.ClipboardApiSupported !== K.Full)
3747
3747
  return await this.ffSaveRemoteClipboardData();
3748
- this.clipboardDataToSave == null && ne("The server did not send the clipboard data.");
3748
+ this.clipboardDataToSave == null && ie("The server did not send the clipboard data.");
3749
3749
  try {
3750
3750
  const e = this.clipboardDataToRecord(this.clipboardDataToSave), i = new ClipboardItem(e);
3751
3751
  await navigator.clipboard.write([i]), this.clipboardDataToSave = null;
3752
3752
  } catch (e) {
3753
- ne("Failed to write to the clipboard: " + e);
3753
+ ie("Failed to write to the clipboard: " + e);
3754
3754
  }
3755
3755
  }
3756
3756
  // Sends local clipboard's content to the server.
3757
3757
  // Returns the result of the operation. On failure, it additionally raises an error session event.
3758
3758
  async sendClipboardData() {
3759
- if (this.ClipboardApiSupported !== q.Full)
3759
+ if (this.ClipboardApiSupported !== K.Full)
3760
3760
  return await this.ffSendClipboardData();
3761
3761
  const e = await navigator.clipboard.read().catch((n) => {
3762
- ne("Failed to read from the clipboard: " + n);
3762
+ ie("Failed to read from the clipboard: " + n);
3763
3763
  });
3764
- e.length == 0 && ne("The clipboard has no data.");
3764
+ e.length == 0 && ie("The clipboard has no data.");
3765
3765
  const i = e[0];
3766
- i.types.some((n) => n.startsWith("text/") || n.startsWith("image/png")) || ne("The clipboard has no data of supported type (text or image).");
3766
+ i.types.some((n) => n.startsWith("text/") || n.startsWith("image/png")) || ie("The clipboard has no data of supported type (text or image).");
3767
3767
  const r = new this.module.ClipboardData();
3768
3768
  for (const n of i.types) {
3769
3769
  const o = n.startsWith("text/"), c = await i.getType(n);
@@ -3772,7 +3772,7 @@ class Wn {
3772
3772
  r.isEmpty() || (this.lastSentClipboardData = r, await this.remoteDesktopService.onClipboardChanged(r));
3773
3773
  }
3774
3774
  scheduleOnMonitorClipboardUpdate() {
3775
- setTimeout(this.onMonitorClipboard.bind(this), In);
3775
+ setTimeout(this.onMonitorClipboard.bind(this), Wn);
3776
3776
  }
3777
3777
  runWhenWindowFocused(e) {
3778
3778
  document.hasFocus() ? e() : Gt.enqueue(e);
@@ -3833,7 +3833,7 @@ class Wn {
3833
3833
  const n = {};
3834
3834
  let o = true;
3835
3835
  for (const c of r.types) {
3836
- const h = c.startsWith("text/"), f = await r.getType(c), d = h ? await f.text() : new Uint8Array(await f.arrayBuffer()), p = h ? function(s, a) {
3836
+ const f = c.startsWith("text/"), h = await r.getType(c), d = f ? await h.text() : new Uint8Array(await h.arrayBuffer()), p = f ? function(s, a) {
3837
3837
  return s === a;
3838
3838
  } : function(s, a) {
3839
3839
  return !(s instanceof Uint8Array) || !(a instanceof Uint8Array) ? false : s.length === a.length && s.every((l, u) => l === a[u]);
@@ -3843,8 +3843,8 @@ class Wn {
3843
3843
  if (!o) {
3844
3844
  this.lastClientClipboardItems = n;
3845
3845
  const c = new this.module.ClipboardData();
3846
- Object.entries(n).forEach(([h, f]) => {
3847
- f != null && (h.startsWith("text/") && typeof f == "string" ? c.addText(h, f) : h.startsWith("image/") && f instanceof Uint8Array && c.addBinary(h, f));
3846
+ Object.entries(n).forEach(([f, h]) => {
3847
+ h != null && (f.startsWith("text/") && typeof h == "string" ? c.addText(f, h) : f.startsWith("image/") && h instanceof Uint8Array && c.addBinary(f, h));
3848
3848
  }), c.isEmpty() || (this.lastSentClipboardData = c, await this.remoteDesktopService.onClipboardChanged(c));
3849
3849
  }
3850
3850
  } catch (i) {
@@ -3879,11 +3879,11 @@ class Wn {
3879
3879
  // Copies clipboard content received from the server to the local clipboard.
3880
3880
  // Returns the result of the operation. On failure, it additionally raises an error session event.
3881
3881
  async ffSaveRemoteClipboardData() {
3882
- this.ffClipboardDataToSave == null && ne("The server did not send the clipboard data.");
3882
+ this.ffClipboardDataToSave == null && ie("The server did not send the clipboard data.");
3883
3883
  try {
3884
3884
  await navigator.clipboard.writeText(this.ffClipboardDataToSave), this.ffClipboardDataToSave = null;
3885
3885
  } catch (e) {
3886
- ne("Failed to write to the clipboard: " + e);
3886
+ ie("Failed to write to the clipboard: " + e);
3887
3887
  }
3888
3888
  }
3889
3889
  // Firefox specific function. We are using text-only clipboard API here.
@@ -3891,115 +3891,130 @@ class Wn {
3891
3891
  // Sends local clipboard's content to the server.
3892
3892
  // Returns the result of the operation. On failure, it additionally raises an error session event.
3893
3893
  async ffSendClipboardData() {
3894
- this.ClipboardApiSupported !== q.TextOnly && ne("The browser does not support clipboard read.");
3894
+ this.ClipboardApiSupported !== K.TextOnly && ie("The browser does not support clipboard read.");
3895
3895
  const e = await navigator.clipboard.readText().catch((r) => {
3896
- ne("Failed to read from the clipboard: " + r);
3896
+ ie("Failed to read from the clipboard: " + r);
3897
3897
  });
3898
- e.length == 0 && ne("The clipboard has no data.");
3898
+ e.length == 0 && ie("The clipboard has no data.");
3899
3899
  const i = new this.module.ClipboardData();
3900
3900
  i.addText("text/plain", e), i.isEmpty() || (this.lastSentClipboardData = i, await this.remoteDesktopService.onClipboardChanged(i));
3901
3901
  }
3902
3902
  }
3903
- var Vn = (t, e) => e(t, true), Kn = (t, e) => e(t, false), qn = (t) => t.preventDefault(), Hn = /* @__PURE__ */ hn('<div class="svelte-1103xra"><div><div class="screen-viewer svelte-1103xra"><canvas id="renderer" tabindex="0" class="svelte-1103xra"></canvas></div></div></div>');
3904
- const jn = {
3903
+ function ar(t = window) {
3904
+ const e = t.document.documentElement, i = t.document.getElementsByTagName("body")[0];
3905
+ return {
3906
+ x: t.innerWidth ?? e.clientWidth ?? i.clientWidth,
3907
+ y: t.innerHeight ?? e.clientHeight ?? i.clientHeight
3908
+ };
3909
+ }
3910
+ function Kn(t, e = window) {
3911
+ if (t) {
3912
+ const i = t.getBoundingClientRect();
3913
+ if (i.width > 0 && i.height > 0)
3914
+ return { x: i.right, y: i.bottom };
3915
+ }
3916
+ return ar(e);
3917
+ }
3918
+ var qn = (t, e) => e(t, true), Hn = (t, e) => e(t, false), jn = (t) => t.preventDefault(), Gn = /* @__PURE__ */ bn('<div class="svelte-1103xra"><div><div class="screen-viewer svelte-1103xra"><canvas id="renderer" tabindex="0" class="svelte-1103xra"></canvas></div></div></div>');
3919
+ const Yn = {
3905
3920
  hash: "svelte-1103xra",
3906
3921
  code: ".screen-wrapper.svelte-1103xra {position:relative;}.capturing-inputs.svelte-1103xra {outline:1px solid rgba(0, 97, 166, 0.7);outline-offset:-1px;}canvas.svelte-1103xra {width:100%;height:100%;}.svelte-1103xra::selection {background-color:transparent;}.screen-wrapper.hidden.svelte-1103xra {pointer-events:none !important;position:absolute !important;visibility:hidden;height:100%;width:100%;transform:translate(-100%, -100%);}"
3907
3922
  };
3908
- function ar(t, e) {
3909
- Gi(e, true), vn(t, jn);
3910
- let i = ut(e, "scale"), r = ut(e, "verbose"), n = ut(e, "flexcenter"), o = ut(e, "module"), c = Ft(false), h = () => {
3923
+ function lr(t, e) {
3924
+ Gi(e, true), wn(t, Yn);
3925
+ let i = ut(e, "scale"), r = ut(e, "verbose"), n = ut(e, "flexcenter"), o = ut(e, "module"), c = Ft(false), f = () => {
3911
3926
  var _a2, _b2;
3912
- return F.info(`
3927
+ return L.info(`
3913
3928
  capturingInputs: ${document.activeElement === p}
3914
3929
  current active element: ${document.activeElement}
3915
- `), ((_b2 = (_a2 = document.activeElement) == null ? void 0 : _a2.shadowRoot) == null ? void 0 : _b2.firstElementChild) === f;
3916
- }, f, d, p, w = Ft(""), s = Ft(""), a = new Un(o()), l = new Wn(a, o()), u = new Bn(a, l), b = me.Fit;
3930
+ `), ((_b2 = (_a2 = document.activeElement) == null ? void 0 : _a2.shadowRoot) == null ? void 0 : _b2.firstElementChild) === h;
3931
+ }, h, d, p, w = Ft(""), s = Ft(""), a = new Bn(o()), l = new Vn(a, o()), u = new zn(a, l), b = we.Fit;
3917
3932
  function $(v) {
3918
- h() && At(v);
3933
+ f() && Ot(v);
3919
3934
  }
3920
- function N() {
3921
- Ie(), Te(), window.addEventListener("keydown", $, false), window.addEventListener("keyup", $, false), window.addEventListener("focus", Ae), window.addEventListener("blur", Ke), document.addEventListener("visibilitychange", ve);
3935
+ function M() {
3936
+ Ve(), Te(), window.addEventListener("keydown", $, false), window.addEventListener("keyup", $, false), window.addEventListener("focus", He), window.addEventListener("blur", he), document.addEventListener("visibilitychange", Me);
3922
3937
  }
3923
3938
  function _() {
3924
- n() === "true" && (f.style.flexGrow = "", f.style.display = "", f.style.justifyContent = "", f.style.alignItems = "");
3939
+ n() === "true" && (h.style.flexGrow = "", h.style.display = "", h.style.justifyContent = "", h.style.alignItems = "");
3925
3940
  }
3926
3941
  function m(v) {
3927
- n() === "true" && (f.style.flexGrow = "1", f.style.display = "flex", f.style.justifyContent = "center", f.style.alignItems = "center");
3942
+ n() === "true" && (h.style.flexGrow = "1", h.style.display = "flex", h.style.justifyContent = "center", h.style.alignItems = "center");
3928
3943
  }
3929
- function O(v, S, L) {
3930
- let R = `height: ${v}; width: ${S}`;
3931
- R = `${R}; max-height: ${v}; max-width: ${S}; min-height: ${v}; min-width: ${S}`, j(w, Se(R));
3944
+ function A(v, T, F) {
3945
+ let R = `height: ${v}; width: ${T}`;
3946
+ R = `${R}; max-height: ${v}; max-width: ${T}; min-height: ${v}; min-width: ${T}`, H(w, Se(R));
3932
3947
  }
3933
- function A(v, S, L) {
3934
- j(s, `height: ${v}; width: ${S}; overflow: ${L}`);
3948
+ function O(v, T, F) {
3949
+ H(s, `height: ${v}; width: ${T}; overflow: ${F}`);
3935
3950
  }
3936
- const fe = (v) => {
3937
- be(i());
3951
+ const ce = (v) => {
3952
+ fe(i());
3938
3953
  };
3939
- function Ie() {
3954
+ function Ve() {
3940
3955
  a.resizeObservable.subscribe((v) => {
3941
- F.info(`Resize canvas to: ${v.desktopSize.width}x${v.desktopSize.height}`), p.width = v.desktopSize.width, p.height = v.desktopSize.height, be(i());
3956
+ L.info(`Resize canvas to: ${v.desktopSize.width}x${v.desktopSize.height}`), p.width = v.desktopSize.width, p.height = v.desktopSize.height, fe(i());
3942
3957
  });
3943
3958
  }
3944
3959
  function Te() {
3945
- window.addEventListener("resize", fe), a.scaleObservable.subscribe((v) => {
3946
- F.info("Change scale!"), be(v);
3960
+ window.addEventListener("resize", ce), a.scaleObservable.subscribe((v) => {
3961
+ L.info("Change scale!"), fe(v);
3947
3962
  }), a.dynamicResizeObservable.subscribe((v) => {
3948
- F.info(`Dynamic resize!, width: ${v.width}, height: ${v.height}`), O(v.height.toString() + "px", v.width.toString() + "px");
3963
+ L.info(`Dynamic resize!, width: ${v.width}, height: ${v.height}`), A(v.height.toString() + "px", v.width.toString() + "px");
3949
3964
  }), a.changeVisibilityObservable.subscribe((v) => {
3950
- j(c, Se(v)), v && (A("100%", "100%", "hidden"), setTimeout(() => be(i()), 150));
3965
+ H(c, Se(v)), v && (O("100%", "100%", "hidden"), setTimeout(() => fe(i()), 150));
3951
3966
  });
3952
3967
  }
3953
- function he() {
3954
- be(b);
3968
+ function de() {
3969
+ fe(b);
3955
3970
  }
3956
- function be(v) {
3957
- if (_(), U(c))
3971
+ function fe(v) {
3972
+ if (_(), P(c))
3958
3973
  switch (v) {
3959
3974
  case "fit":
3960
- case me.Fit:
3961
- F.info("Size to fit"), b = me.Fit, i("fit"), Re();
3975
+ case we.Fit:
3976
+ L.info("Size to fit"), b = we.Fit, i("fit"), Re();
3962
3977
  break;
3963
3978
  case "full":
3964
- case me.Full:
3965
- F.info("Size to full"), b = me.Full, rt(), i("full");
3979
+ case we.Full:
3980
+ L.info("Size to full"), b = we.Full, rt(), i("full");
3966
3981
  break;
3967
3982
  case "real":
3968
- case me.Real:
3969
- F.info("Size to real"), b = me.Real, $e(), i("real");
3983
+ case we.Real:
3984
+ L.info("Size to real"), b = we.Real, $e(), i("real");
3970
3985
  break;
3971
3986
  }
3972
3987
  }
3973
3988
  function rt() {
3974
- const v = pe(), S = v.x, L = v.y;
3975
- let R = p.width, M = p.height;
3976
- const W = Math.min(S / p.width, L / p.height);
3977
- R = R * W, M = M * W, A(`${L}px`, `${S}px`, "hidden"), R = R > 0 ? R : 0, M = M > 0 ? M : 0, O(`${M}px`, `${R}px`);
3989
+ const v = Oe(), T = v.x, F = v.y;
3990
+ let R = p.width, W = p.height;
3991
+ const B = Math.min(T / p.width, F / p.height);
3992
+ R = R * B, W = W * B, O(`${F}px`, `${T}px`, "hidden"), R = R > 0 ? R : 0, W = W > 0 ? W : 0, A(`${W}px`, `${R}px`);
3978
3993
  }
3979
3994
  function Re(v = false) {
3980
- const S = pe(), L = d.getBoundingClientRect(), R = S.x - L.x, M = S.y - L.y;
3981
- let W = p.width, V = p.height;
3982
- if (!v || R < p.width || M < p.height) {
3983
- const te = Math.min(R / p.width, M / p.height);
3984
- W = W * te, V = V * te;
3995
+ const T = Le(), F = d.getBoundingClientRect(), R = T.x - F.x, W = T.y - F.y;
3996
+ let B = p.width, se = p.height;
3997
+ if (!v || R < p.width || W < p.height) {
3998
+ const ve = Math.min(R / p.width, W / p.height);
3999
+ B = B * ve, se = se * ve;
3985
4000
  }
3986
- W = W > 0 ? W : 0, V = V > 0 ? V : 0, A("initial", "initial", "hidden"), O(`${V}px`, `${W}px`), m();
4001
+ B = B > 0 ? B : 0, se = se > 0 ? se : 0, O("initial", "initial", "hidden"), A(`${se}px`, `${B}px`), m();
3987
4002
  }
3988
4003
  function $e() {
3989
- const v = pe(), S = d.getBoundingClientRect(), L = v.x - S.x, R = v.y - S.y;
3990
- L < p.width || R < p.height ? A(`${Math.min(R, p.height)}px`, `${Math.min(L, p.width)}px`, "auto") : A("initial", "initial", "initial"), O(`${p.height}px`, `${p.width}px`), m();
4004
+ const v = Le(), T = d.getBoundingClientRect(), F = v.x - T.x, R = v.y - T.y;
4005
+ F < p.width || R < p.height ? O(`${Math.min(R, p.height)}px`, `${Math.min(F, p.width)}px`, "auto") : O("initial", "initial", "initial"), A(`${p.height}px`, `${p.width}px`), m();
3991
4006
  }
3992
- function Ot(v) {
3993
- const S = p == null ? void 0 : p.getBoundingClientRect(), L = (p == null ? void 0 : p.width) / S.width, R = (p == null ? void 0 : p.height) / S.height, M = {
3994
- x: Math.round((v.clientX - S.left) * L),
3995
- y: Math.round((v.clientY - S.top) * R)
4007
+ function At(v) {
4008
+ const T = p == null ? void 0 : p.getBoundingClientRect(), F = (p == null ? void 0 : p.width) / T.width, R = (p == null ? void 0 : p.height) / T.height, W = {
4009
+ x: Math.round((v.clientX - T.left) * F),
4010
+ y: Math.round((v.clientY - T.top) * R)
3996
4011
  };
3997
- a.updateMousePosition(M);
4012
+ a.updateMousePosition(W);
3998
4013
  }
3999
- function ke(v, S) {
4000
- a.mouseButtonState(v, S, true);
4014
+ function Ee(v, T) {
4015
+ a.mouseButtonState(v, T, true);
4001
4016
  }
4002
- function Oe(v) {
4017
+ function Ae(v) {
4003
4018
  a.mouseWheel(v);
4004
4019
  }
4005
4020
  function nt(v) {
@@ -4008,34 +4023,29 @@ function ar(t, e) {
4008
4023
  function st(v) {
4009
4024
  a.mouseOut(v);
4010
4025
  }
4011
- function At(v) {
4026
+ function Ot(v) {
4012
4027
  return a.sendKeyboardEvent(v), true;
4013
4028
  }
4014
- function pe() {
4015
- var _a2;
4016
- const v = (_a2 = f == null ? void 0 : f.getRootNode()) == null ? void 0 : _a2.host;
4017
- if (v) {
4018
- const te = v.getBoundingClientRect();
4019
- if (te.width > 0 && te.height > 0)
4020
- return { x: te.right, y: te.bottom };
4021
- }
4022
- const S = window, L = document, R = L.documentElement, M = L.getElementsByTagName("body")[0], W = S.innerWidth ?? R.clientWidth ?? M.clientWidth, V = S.innerHeight ?? R.clientHeight ?? M.clientHeight;
4023
- return { x: W, y: V };
4029
+ function Oe() {
4030
+ return ar();
4024
4031
  }
4025
- async function We() {
4026
- F.info("Start canvas initialization..."), p.width = 800, p.height = 600, a.setCanvas(p), a.setOnCanvasResized(he), N();
4032
+ function Le() {
4033
+ return Kn(e.$$host);
4027
4034
  }
4028
- function Ve() {
4035
+ async function Ke() {
4036
+ L.info("Start canvas initialization..."), p.width = 800, p.height = 600, a.setCanvas(p), a.setOnCanvasResized(de), M();
4037
+ }
4038
+ function qe() {
4029
4039
  let v = {
4030
4040
  irgUserInteraction: u.getExposedFunctions()
4031
4041
  };
4032
- F.info("Component ready"), F.info("Dispatching ready event"), f.dispatchEvent(new CustomEvent("ready", {
4042
+ L.info("Component ready"), L.info("Dispatching ready event"), h.dispatchEvent(new CustomEvent("ready", {
4033
4043
  detail: v,
4034
4044
  bubbles: true,
4035
4045
  composed: true
4036
4046
  }));
4037
4047
  }
4038
- function Ae() {
4048
+ function He() {
4039
4049
  var _a2;
4040
4050
  try {
4041
4051
  for (; Gt.length() > 0; )
@@ -4044,38 +4054,38 @@ function ar(t, e) {
4044
4054
  console.error("Failed to run the function queued for execution when the window received focus: " + v);
4045
4055
  }
4046
4056
  }
4047
- function Ke() {
4057
+ function he() {
4048
4058
  a.focusLost();
4049
4059
  }
4050
- function ve() {
4060
+ function Me() {
4051
4061
  document.visibilityState === "hidden" && a.focusLost();
4052
4062
  }
4053
4063
  tr(async () => {
4054
- jt.set(false), F.verbose = r() === "true", F.info("Dom ready"), await We();
4064
+ jt.set(false), L.verbose = r() === "true", L.info("Dom ready"), await Ke();
4055
4065
  try {
4056
4066
  await l.initClipboard();
4057
4067
  } catch (v) {
4058
- F.error("Clipboard initialization failed: " + v);
4068
+ L.error("Clipboard initialization failed: " + v);
4059
4069
  }
4060
- Ve();
4061
- }), _n(() => {
4062
- window.removeEventListener("resize", fe), window.removeEventListener("keydown", $, false), window.removeEventListener("keyup", $, false), window.removeEventListener("focus", Ae), window.removeEventListener("blur", Ke), document.removeEventListener("visibilitychange", ve), jt.set(true);
4070
+ qe();
4071
+ }), xn(() => {
4072
+ window.removeEventListener("resize", ce), window.removeEventListener("keydown", $, false), window.removeEventListener("keyup", $, false), window.removeEventListener("focus", He), window.removeEventListener("blur", he), document.removeEventListener("visibilitychange", Me), jt.set(true);
4063
4073
  });
4064
- var we = Hn(), X = Pt(we);
4065
- let qe;
4066
- var ae = Pt(X), I = Pt(ae);
4067
- return I.__mousemove = Ot, I.__mousedown = [Vn, ke], I.__mouseup = [Kn, ke], I.__contextmenu = [qn], Ut(I, (v) => p = v, () => p), Nt(ae), Nt(X), Ut(X, (v) => d = v, () => d), Nt(we), Ut(we, (v) => f = v, () => f), en(() => {
4068
- qe = mn(X, 1, `screen-wrapper scale-${i() ?? ""}`, "svelte-1103xra", qe, {
4069
- hidden: !U(c),
4070
- "capturing-inputs": h
4071
- }), fi(X, "style", U(s)), fi(ae, "style", U(w));
4074
+ var J = Gn(), be = Pt(J);
4075
+ let pe;
4076
+ var ke = Pt(be), I = Pt(ke);
4077
+ return I.__mousemove = At, I.__mousedown = [qn, Ee], I.__mouseup = [Hn, Ee], I.__contextmenu = [jn], Ut(I, (v) => p = v, () => p), Nt(ke), Nt(be), Ut(be, (v) => d = v, () => d), Nt(J), Ut(J, (v) => h = v, () => h), tn(() => {
4078
+ pe = gn(be, 1, `screen-wrapper scale-${i() ?? ""}`, "svelte-1103xra", pe, {
4079
+ hidden: !P(c),
4080
+ "capturing-inputs": f
4081
+ }), fi(be, "style", P(s)), fi(ke, "style", P(w));
4072
4082
  }), lt("mouseleave", I, (v) => {
4073
4083
  st(v);
4074
4084
  }), lt("mouseenter", I, (v) => {
4075
4085
  nt(v);
4076
- }), lt("wheel", I, Oe), lt("selectstart", I, (v) => {
4086
+ }), lt("wheel", I, Ae), lt("selectstart", I, (v) => {
4077
4087
  v.preventDefault();
4078
- }), Qi(t, we), Yi({
4088
+ }), Qi(t, J), Yi({
4079
4089
  get scale() {
4080
4090
  return i();
4081
4091
  },
@@ -4102,14 +4112,14 @@ function ar(t, e) {
4102
4112
  }
4103
4113
  });
4104
4114
  }
4105
- dn([
4115
+ fn([
4106
4116
  "mousemove",
4107
4117
  "mousedown",
4108
4118
  "mouseup",
4109
4119
  "contextmenu"
4110
4120
  ]);
4111
- customElements.define("iron-remote-desktop", kn(
4112
- ar,
4121
+ customElements.define("iron-remote-desktop", Sn(
4122
+ lr,
4113
4123
  {
4114
4124
  scale: {},
4115
4125
  verbose: {},
@@ -4125,12 +4135,12 @@ customElements.define("iron-remote-desktop", kn(
4125
4135
  }
4126
4136
  }
4127
4137
  ));
4128
- const Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4138
+ const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4129
4139
  __proto__: null,
4130
- default: ar
4140
+ default: lr
4131
4141
  }, Symbol.toStringTag, { value: "Module" }));
4132
4142
  export {
4133
- Nn as Config,
4134
- Pn as ConfigBuilder,
4135
- Gn as default
4143
+ Pn as Config,
4144
+ Un as ConfigBuilder,
4145
+ Xn as default
4136
4146
  };