@openlv/modal 0.1.1 → 0.1.3
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.
- package/dist/components/Header.d.ts +1 -1
- package/dist/components/ModalRoot.d.ts +1 -1
- package/dist/components/UnknownState.d.ts +1 -1
- package/dist/components/settings/connection/index.d.ts +1 -1
- package/dist/components/settings/index.d.ts +3 -3
- package/dist/context.d.ts +2 -2
- package/dist/element.d.ts +2 -2
- package/dist/flow/ConnectionFlow.d.ts +2 -2
- package/dist/flow/ErrorScreen.d.ts +1 -1
- package/dist/flow/disconnected/Disconnected.d.ts +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.es.js +1080 -1080
- package/dist/index.es.js.map +1 -1
- package/dist/theme/index.d.ts +2 -2
- package/dist/ui/Button.d.ts +1 -1
- package/dist/ui/InfoTooltip.d.ts +1 -1
- package/dist/ui/Input.d.ts +6 -6
- package/dist/ui/Select.d.ts +1 -1
- package/dist/ui/Toggle.d.ts +1 -1
- package/dist/ui/TransitionContainer.d.ts +1 -1
- package/dist/ui/menu/MenuGroup.d.ts +1 -1
- package/dist/ui/menu/MenuItem.d.ts +1 -1
- package/dist/ui/menu/MenuLink.d.ts +1 -1
- package/dist/utils/i18n.d.ts +1 -1
- package/package.json +9 -9
package/dist/index.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var te = (t, e,
|
|
4
|
-
const
|
|
5
|
-
equals:
|
|
1
|
+
var hr = Object.defineProperty;
|
|
2
|
+
var gr = (t, e, n) => e in t ? hr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var te = (t, e, n) => gr(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
const vr = (t, e) => t === e, ct = /* @__PURE__ */ Symbol("solid-proxy"), Rn = typeof Proxy == "function", pr = /* @__PURE__ */ Symbol("solid-track"), dt = {
|
|
5
|
+
equals: vr
|
|
6
6
|
};
|
|
7
|
-
let
|
|
8
|
-
const Se = 1, ut = 2,
|
|
7
|
+
let Mn = Fn;
|
|
8
|
+
const Se = 1, ut = 2, On = {
|
|
9
9
|
owned: null,
|
|
10
10
|
cleanups: null,
|
|
11
11
|
context: null,
|
|
12
12
|
owner: null
|
|
13
13
|
};
|
|
14
14
|
var M = null;
|
|
15
|
-
let Ct = null,
|
|
15
|
+
let Ct = null, mr = null, L = null, W = null, ge = null, bt = 0;
|
|
16
16
|
function at(t, e) {
|
|
17
|
-
const
|
|
17
|
+
const n = L, r = M, o = t.length === 0, i = e === void 0 ? r : e, a = o ? On : {
|
|
18
18
|
owned: null,
|
|
19
19
|
cleanups: null,
|
|
20
20
|
context: i ? i.context : null,
|
|
@@ -24,32 +24,32 @@ function at(t, e) {
|
|
|
24
24
|
try {
|
|
25
25
|
return Ze(s, !0);
|
|
26
26
|
} finally {
|
|
27
|
-
L =
|
|
27
|
+
L = n, M = r;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
function D(t, e) {
|
|
31
31
|
e = e ? Object.assign({}, dt, e) : dt;
|
|
32
|
-
const
|
|
32
|
+
const n = {
|
|
33
33
|
value: t,
|
|
34
34
|
observers: null,
|
|
35
35
|
observerSlots: null,
|
|
36
36
|
comparator: e.equals || void 0
|
|
37
|
-
},
|
|
38
|
-
return [
|
|
37
|
+
}, r = (o) => (typeof o == "function" && (o = o(n.value)), Vn(n, o));
|
|
38
|
+
return [Dn.bind(n), r];
|
|
39
39
|
}
|
|
40
|
-
function z(t, e,
|
|
41
|
-
const
|
|
42
|
-
Je(
|
|
40
|
+
function z(t, e, n) {
|
|
41
|
+
const r = Ft(t, e, !1, Se);
|
|
42
|
+
Je(r);
|
|
43
43
|
}
|
|
44
|
-
function ie(t, e,
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
|
|
44
|
+
function ie(t, e, n) {
|
|
45
|
+
Mn = yr;
|
|
46
|
+
const r = Ft(t, e, !1, Se);
|
|
47
|
+
r.user = !0, ge ? ge.push(r) : Je(r);
|
|
48
48
|
}
|
|
49
|
-
function T(t, e,
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
return
|
|
49
|
+
function T(t, e, n) {
|
|
50
|
+
n = n ? Object.assign({}, dt, n) : dt;
|
|
51
|
+
const r = Ft(t, e, !0, 0);
|
|
52
|
+
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, Je(r), Dn.bind(r);
|
|
53
53
|
}
|
|
54
54
|
function Y(t) {
|
|
55
55
|
if (L === null) return t();
|
|
@@ -67,26 +67,26 @@ function Vt(t) {
|
|
|
67
67
|
function se(t) {
|
|
68
68
|
return M === null || (M.cleanups === null ? M.cleanups = [t] : M.cleanups.push(t)), t;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
const
|
|
70
|
+
function In(t, e) {
|
|
71
|
+
const n = /* @__PURE__ */ Symbol("context");
|
|
72
72
|
return {
|
|
73
|
-
id:
|
|
74
|
-
Provider:
|
|
73
|
+
id: n,
|
|
74
|
+
Provider: kr(n),
|
|
75
75
|
defaultValue: t
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ln(t) {
|
|
79
79
|
let e;
|
|
80
80
|
return M && M.context && (e = M.context[t.id]) !== void 0 ? e : t.defaultValue;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
const e = T(t),
|
|
84
|
-
return
|
|
85
|
-
const
|
|
86
|
-
return Array.isArray(
|
|
87
|
-
},
|
|
82
|
+
function jn(t) {
|
|
83
|
+
const e = T(t), n = T(() => _t(e()));
|
|
84
|
+
return n.toArray = () => {
|
|
85
|
+
const r = n();
|
|
86
|
+
return Array.isArray(r) ? r : r != null ? [r] : [];
|
|
87
|
+
}, n;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Dn() {
|
|
90
90
|
if (this.sources && this.state)
|
|
91
91
|
if (this.state === Se) Je(this);
|
|
92
92
|
else {
|
|
@@ -102,12 +102,12 @@ function jr() {
|
|
|
102
102
|
}
|
|
103
103
|
return this.value;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
let
|
|
107
|
-
return (!t.comparator || !t.comparator(
|
|
105
|
+
function Vn(t, e, n) {
|
|
106
|
+
let r = t.value;
|
|
107
|
+
return (!t.comparator || !t.comparator(r, e)) && (t.value = e, t.observers && t.observers.length && Ze(() => {
|
|
108
108
|
for (let o = 0; o < t.observers.length; o += 1) {
|
|
109
109
|
const i = t.observers[o], a = Ct && Ct.running;
|
|
110
|
-
a && Ct.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? W.push(i) : ge.push(i), i.observers &&
|
|
110
|
+
a && Ct.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? W.push(i) : ge.push(i), i.observers && zn(i)), a || (i.state = Se);
|
|
111
111
|
}
|
|
112
112
|
if (W.length > 1e6)
|
|
113
113
|
throw W = [], new Error();
|
|
@@ -117,25 +117,25 @@ function Je(t) {
|
|
|
117
117
|
if (!t.fn) return;
|
|
118
118
|
Ge(t);
|
|
119
119
|
const e = bt;
|
|
120
|
-
|
|
120
|
+
br(t, t.value, e);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
let
|
|
122
|
+
function br(t, e, n) {
|
|
123
|
+
let r;
|
|
124
124
|
const o = M, i = L;
|
|
125
125
|
L = M = t;
|
|
126
126
|
try {
|
|
127
|
-
|
|
127
|
+
r = t.fn(e);
|
|
128
128
|
} catch (a) {
|
|
129
|
-
return t.pure && (t.state = Se, t.owned && t.owned.forEach(Ge), t.owned = null), t.updatedAt =
|
|
129
|
+
return t.pure && (t.state = Se, t.owned && t.owned.forEach(Ge), t.owned = null), t.updatedAt = n + 1, Un(a);
|
|
130
130
|
} finally {
|
|
131
131
|
L = i, M = o;
|
|
132
132
|
}
|
|
133
|
-
(!t.updatedAt || t.updatedAt <=
|
|
133
|
+
(!t.updatedAt || t.updatedAt <= n) && (t.updatedAt != null && "observers" in t ? Vn(t, r) : t.value = r, t.updatedAt = n);
|
|
134
134
|
}
|
|
135
|
-
function Ft(t, e,
|
|
135
|
+
function Ft(t, e, n, r = Se, o) {
|
|
136
136
|
const i = {
|
|
137
137
|
fn: t,
|
|
138
|
-
state:
|
|
138
|
+
state: r,
|
|
139
139
|
updatedAt: null,
|
|
140
140
|
owned: null,
|
|
141
141
|
sources: null,
|
|
@@ -144,9 +144,9 @@ function Ft(t, e, r, n = Se, o) {
|
|
|
144
144
|
value: e,
|
|
145
145
|
owner: M,
|
|
146
146
|
context: M ? M.context : null,
|
|
147
|
-
pure:
|
|
147
|
+
pure: n
|
|
148
148
|
};
|
|
149
|
-
return M === null || M !==
|
|
149
|
+
return M === null || M !== On && (M.owned ? M.owned.push(i) : M.owned = [i]), i;
|
|
150
150
|
}
|
|
151
151
|
function ft(t) {
|
|
152
152
|
if (t.state === 0) return;
|
|
@@ -155,65 +155,65 @@ function ft(t) {
|
|
|
155
155
|
const e = [t];
|
|
156
156
|
for (; (t = t.owner) && (!t.updatedAt || t.updatedAt < bt); )
|
|
157
157
|
t.state && e.push(t);
|
|
158
|
-
for (let
|
|
159
|
-
if (t = e[
|
|
158
|
+
for (let n = e.length - 1; n >= 0; n--)
|
|
159
|
+
if (t = e[n], t.state === Se)
|
|
160
160
|
Je(t);
|
|
161
161
|
else if (t.state === ut) {
|
|
162
|
-
const
|
|
163
|
-
W = null, Ze(() => ht(t, e[0]), !1), W =
|
|
162
|
+
const r = W;
|
|
163
|
+
W = null, Ze(() => ht(t, e[0]), !1), W = r;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
function Ze(t, e) {
|
|
167
167
|
if (W) return t();
|
|
168
|
-
let
|
|
169
|
-
e || (W = []), ge ?
|
|
168
|
+
let n = !1;
|
|
169
|
+
e || (W = []), ge ? n = !0 : ge = [], bt++;
|
|
170
170
|
try {
|
|
171
|
-
const
|
|
172
|
-
return
|
|
173
|
-
} catch (
|
|
174
|
-
|
|
171
|
+
const r = t();
|
|
172
|
+
return wr(n), r;
|
|
173
|
+
} catch (r) {
|
|
174
|
+
n || (ge = null), W = null, Un(r);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
if (W && (
|
|
177
|
+
function wr(t) {
|
|
178
|
+
if (W && (Fn(W), W = null), t) return;
|
|
179
179
|
const e = ge;
|
|
180
|
-
ge = null, e.length && Ze(() =>
|
|
180
|
+
ge = null, e.length && Ze(() => Mn(e), !1);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Fn(t) {
|
|
183
183
|
for (let e = 0; e < t.length; e++) ft(t[e]);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
let e,
|
|
185
|
+
function yr(t) {
|
|
186
|
+
let e, n = 0;
|
|
187
187
|
for (e = 0; e < t.length; e++) {
|
|
188
|
-
const
|
|
189
|
-
|
|
188
|
+
const r = t[e];
|
|
189
|
+
r.user ? t[n++] = r : ft(r);
|
|
190
190
|
}
|
|
191
|
-
for (e = 0; e <
|
|
191
|
+
for (e = 0; e < n; e++) ft(t[e]);
|
|
192
192
|
}
|
|
193
193
|
function ht(t, e) {
|
|
194
194
|
t.state = 0;
|
|
195
|
-
for (let
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
const o =
|
|
199
|
-
o === Se ?
|
|
195
|
+
for (let n = 0; n < t.sources.length; n += 1) {
|
|
196
|
+
const r = t.sources[n];
|
|
197
|
+
if (r.sources) {
|
|
198
|
+
const o = r.state;
|
|
199
|
+
o === Se ? r !== e && (!r.updatedAt || r.updatedAt < bt) && ft(r) : o === ut && ht(r, e);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function zn(t) {
|
|
204
204
|
for (let e = 0; e < t.observers.length; e += 1) {
|
|
205
|
-
const
|
|
206
|
-
|
|
205
|
+
const n = t.observers[e];
|
|
206
|
+
n.state || (n.state = ut, n.pure ? W.push(n) : ge.push(n), n.observers && zn(n));
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
function Ge(t) {
|
|
210
210
|
let e;
|
|
211
211
|
if (t.sources)
|
|
212
212
|
for (; t.sources.length; ) {
|
|
213
|
-
const
|
|
213
|
+
const n = t.sources.pop(), r = t.sourceSlots.pop(), o = n.observers;
|
|
214
214
|
if (o && o.length) {
|
|
215
|
-
const i = o.pop(), a =
|
|
216
|
-
|
|
215
|
+
const i = o.pop(), a = n.observerSlots.pop();
|
|
216
|
+
r < o.length && (i.sourceSlots[a] = r, o[r] = i, n.observerSlots[r] = a);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
if (t.tOwned) {
|
|
@@ -230,66 +230,66 @@ function Ge(t) {
|
|
|
230
230
|
}
|
|
231
231
|
t.state = 0;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function xr(t) {
|
|
234
234
|
return t instanceof Error ? t : new Error(typeof t == "string" ? t : "Unknown error", {
|
|
235
235
|
cause: t
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
throw
|
|
238
|
+
function Un(t, e = M) {
|
|
239
|
+
throw xr(t);
|
|
240
240
|
}
|
|
241
241
|
function _t(t) {
|
|
242
242
|
if (typeof t == "function" && !t.length) return _t(t());
|
|
243
243
|
if (Array.isArray(t)) {
|
|
244
244
|
const e = [];
|
|
245
|
-
for (let
|
|
246
|
-
const
|
|
247
|
-
if (Array.isArray(
|
|
248
|
-
if (
|
|
249
|
-
else for (let o = 0; o <
|
|
245
|
+
for (let n = 0; n < t.length; n++) {
|
|
246
|
+
const r = _t(t[n]);
|
|
247
|
+
if (Array.isArray(r))
|
|
248
|
+
if (r.length < 32768) e.push.apply(e, r);
|
|
249
|
+
else for (let o = 0; o < r.length; o++) e.push(r[o]);
|
|
250
250
|
else
|
|
251
|
-
e.push(
|
|
251
|
+
e.push(r);
|
|
252
252
|
}
|
|
253
253
|
return e;
|
|
254
254
|
}
|
|
255
255
|
return t;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
return function(
|
|
257
|
+
function kr(t, e) {
|
|
258
|
+
return function(r) {
|
|
259
259
|
let o;
|
|
260
260
|
return z(() => o = Y(() => (M.context = {
|
|
261
261
|
...M.context,
|
|
262
|
-
[t]:
|
|
263
|
-
},
|
|
262
|
+
[t]: r.value
|
|
263
|
+
}, jn(() => r.children))), void 0), o;
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
function
|
|
266
|
+
const Cr = /* @__PURE__ */ Symbol("fallback");
|
|
267
|
+
function en(t) {
|
|
268
268
|
for (let e = 0; e < t.length; e++) t[e]();
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
let
|
|
272
|
-
return se(() =>
|
|
270
|
+
function Sr(t, e, n = {}) {
|
|
271
|
+
let r = [], o = [], i = [], a = 0, s = e.length > 1 ? [] : null;
|
|
272
|
+
return se(() => en(i)), () => {
|
|
273
273
|
let l = t() || [], d = l.length, u, c;
|
|
274
|
-
return l[
|
|
274
|
+
return l[pr], Y(() => {
|
|
275
275
|
let h, g, b, p, C, k, y, F, _;
|
|
276
276
|
if (d === 0)
|
|
277
|
-
a !== 0 && (
|
|
277
|
+
a !== 0 && (en(i), i = [], r = [], o = [], a = 0, s && (s = [])), n.fallback && (r = [Cr], o[0] = at((pe) => (i[0] = pe, n.fallback())), a = 1);
|
|
278
278
|
else if (a === 0) {
|
|
279
279
|
for (o = new Array(d), c = 0; c < d; c++)
|
|
280
|
-
|
|
280
|
+
r[c] = l[c], o[c] = at(f);
|
|
281
281
|
a = d;
|
|
282
282
|
} else {
|
|
283
|
-
for (b = new Array(d), p = new Array(d), s && (C = new Array(d)), k = 0, y = Math.min(a, d); k < y &&
|
|
284
|
-
for (y = a - 1, F = d - 1; y >= k && F >= k &&
|
|
283
|
+
for (b = new Array(d), p = new Array(d), s && (C = new Array(d)), k = 0, y = Math.min(a, d); k < y && r[k] === l[k]; k++) ;
|
|
284
|
+
for (y = a - 1, F = d - 1; y >= k && F >= k && r[y] === l[F]; y--, F--)
|
|
285
285
|
b[F] = o[y], p[F] = i[y], s && (C[F] = s[y]);
|
|
286
286
|
for (h = /* @__PURE__ */ new Map(), g = new Array(F + 1), c = F; c >= k; c--)
|
|
287
287
|
_ = l[c], u = h.get(_), g[c] = u === void 0 ? -1 : u, h.set(_, c);
|
|
288
288
|
for (u = k; u <= y; u++)
|
|
289
|
-
_ =
|
|
289
|
+
_ = r[u], c = h.get(_), c !== void 0 && c !== -1 ? (b[c] = o[u], p[c] = i[u], s && (C[c] = s[u]), c = g[c], h.set(_, c)) : i[u]();
|
|
290
290
|
for (c = k; c < d; c++)
|
|
291
291
|
c in b ? (o[c] = b[c], i[c] = p[c], s && (s[c] = C[c], s[c](c))) : o[c] = at(f);
|
|
292
|
-
o = o.slice(0, a = d),
|
|
292
|
+
o = o.slice(0, a = d), r = l.slice(0);
|
|
293
293
|
}
|
|
294
294
|
return o;
|
|
295
295
|
});
|
|
@@ -309,8 +309,8 @@ function ot() {
|
|
|
309
309
|
return !0;
|
|
310
310
|
}
|
|
311
311
|
const Nt = {
|
|
312
|
-
get(t, e,
|
|
313
|
-
return e === ct ?
|
|
312
|
+
get(t, e, n) {
|
|
313
|
+
return e === ct ? n : t.get(e);
|
|
314
314
|
},
|
|
315
315
|
has(t, e) {
|
|
316
316
|
return e === ct ? !0 : t.has(e);
|
|
@@ -335,10 +335,10 @@ const Nt = {
|
|
|
335
335
|
function St(t) {
|
|
336
336
|
return (t = typeof t == "function" ? t() : t) ? t : {};
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Ar() {
|
|
339
339
|
for (let t = 0, e = this.length; t < e; ++t) {
|
|
340
|
-
const
|
|
341
|
-
if (
|
|
340
|
+
const n = this[t]();
|
|
341
|
+
if (n !== void 0) return n;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
function X(...t) {
|
|
@@ -347,7 +347,7 @@ function X(...t) {
|
|
|
347
347
|
const s = t[a];
|
|
348
348
|
e = e || !!s && ct in s, t[a] = typeof s == "function" ? (e = !0, T(s)) : s;
|
|
349
349
|
}
|
|
350
|
-
if (
|
|
350
|
+
if (Rn && e)
|
|
351
351
|
return new Proxy({
|
|
352
352
|
get(a) {
|
|
353
353
|
for (let s = t.length - 1; s >= 0; s--) {
|
|
@@ -366,7 +366,7 @@ function X(...t) {
|
|
|
366
366
|
return [...new Set(a)];
|
|
367
367
|
}
|
|
368
368
|
}, Nt);
|
|
369
|
-
const
|
|
369
|
+
const n = {}, r = /* @__PURE__ */ Object.create(null);
|
|
370
370
|
for (let a = t.length - 1; a >= 0; a--) {
|
|
371
371
|
const s = t[a];
|
|
372
372
|
if (!s) continue;
|
|
@@ -375,29 +375,29 @@ function X(...t) {
|
|
|
375
375
|
const u = l[d];
|
|
376
376
|
if (u === "__proto__" || u === "constructor") continue;
|
|
377
377
|
const c = Object.getOwnPropertyDescriptor(s, u);
|
|
378
|
-
if (!
|
|
379
|
-
|
|
378
|
+
if (!r[u])
|
|
379
|
+
r[u] = c.get ? {
|
|
380
380
|
enumerable: !0,
|
|
381
381
|
configurable: !0,
|
|
382
|
-
get:
|
|
382
|
+
get: Ar.bind(n[u] = [c.get.bind(s)])
|
|
383
383
|
} : c.value !== void 0 ? c : void 0;
|
|
384
384
|
else {
|
|
385
|
-
const f =
|
|
385
|
+
const f = n[u];
|
|
386
386
|
f && (c.get ? f.push(c.get.bind(s)) : c.value !== void 0 && f.push(() => c.value));
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
const o = {}, i = Object.keys(
|
|
390
|
+
const o = {}, i = Object.keys(r);
|
|
391
391
|
for (let a = i.length - 1; a >= 0; a--) {
|
|
392
|
-
const s = i[a], l =
|
|
392
|
+
const s = i[a], l = r[s];
|
|
393
393
|
l && l.get ? Object.defineProperty(o, s, l) : o[s] = l ? l.value : void 0;
|
|
394
394
|
}
|
|
395
395
|
return o;
|
|
396
396
|
}
|
|
397
397
|
function wt(t, ...e) {
|
|
398
|
-
const
|
|
399
|
-
if (
|
|
400
|
-
const o =
|
|
398
|
+
const n = e.length;
|
|
399
|
+
if (Rn && ct in t) {
|
|
400
|
+
const o = n > 1 ? e.flat() : e[0], i = e.map((a) => new Proxy({
|
|
401
401
|
get(s) {
|
|
402
402
|
return a.includes(s) ? t[s] : void 0;
|
|
403
403
|
},
|
|
@@ -420,47 +420,47 @@ function wt(t, ...e) {
|
|
|
420
420
|
}
|
|
421
421
|
}, Nt)), i;
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
for (let o = 0; o <=
|
|
425
|
-
|
|
423
|
+
const r = [];
|
|
424
|
+
for (let o = 0; o <= n; o++)
|
|
425
|
+
r[o] = {};
|
|
426
426
|
for (const o of Object.getOwnPropertyNames(t)) {
|
|
427
|
-
let i =
|
|
427
|
+
let i = n;
|
|
428
428
|
for (let l = 0; l < e.length; l++)
|
|
429
429
|
if (e[l].includes(o)) {
|
|
430
430
|
i = l;
|
|
431
431
|
break;
|
|
432
432
|
}
|
|
433
433
|
const a = Object.getOwnPropertyDescriptor(t, o);
|
|
434
|
-
!a.get && !a.set && a.enumerable && a.writable && a.configurable ?
|
|
434
|
+
!a.get && !a.set && a.enumerable && a.writable && a.configurable ? r[i][o] = a.value : Object.defineProperty(r[i], o, a);
|
|
435
435
|
}
|
|
436
|
-
return
|
|
436
|
+
return r;
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const Wn = (t) => `Stale read from <${t}>.`;
|
|
439
439
|
function Ce(t) {
|
|
440
440
|
const e = "fallback" in t && {
|
|
441
441
|
fallback: () => t.fallback
|
|
442
442
|
};
|
|
443
|
-
return T(
|
|
443
|
+
return T(Sr(() => t.each, t.children, e || void 0));
|
|
444
444
|
}
|
|
445
445
|
function ve(t) {
|
|
446
|
-
const e = t.keyed,
|
|
446
|
+
const e = t.keyed, n = T(() => t.when, void 0, void 0), r = e ? n : T(n, void 0, {
|
|
447
447
|
equals: (o, i) => !o == !i
|
|
448
448
|
});
|
|
449
449
|
return T(() => {
|
|
450
|
-
const o =
|
|
450
|
+
const o = r();
|
|
451
451
|
if (o) {
|
|
452
452
|
const i = t.children;
|
|
453
453
|
return typeof i == "function" && i.length > 0 ? Y(() => i(e ? o : () => {
|
|
454
|
-
if (!Y(
|
|
455
|
-
return
|
|
454
|
+
if (!Y(r)) throw Wn("Show");
|
|
455
|
+
return n();
|
|
456
456
|
})) : i;
|
|
457
457
|
}
|
|
458
458
|
return t.fallback;
|
|
459
459
|
}, void 0, void 0);
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
const e =
|
|
463
|
-
const
|
|
461
|
+
function Gn(t) {
|
|
462
|
+
const e = jn(() => t.children), n = T(() => {
|
|
463
|
+
const r = e(), o = Array.isArray(r) ? r : [r];
|
|
464
464
|
let i = () => {
|
|
465
465
|
};
|
|
466
466
|
for (let a = 0; a < o.length; a++) {
|
|
@@ -472,11 +472,11 @@ function Wr(t) {
|
|
|
472
472
|
return i;
|
|
473
473
|
});
|
|
474
474
|
return T(() => {
|
|
475
|
-
const
|
|
476
|
-
if (!
|
|
477
|
-
const [o, i, a] =
|
|
475
|
+
const r = n()();
|
|
476
|
+
if (!r) return t.fallback;
|
|
477
|
+
const [o, i, a] = r, s = a.children;
|
|
478
478
|
return typeof s == "function" && s.length > 0 ? Y(() => s(a.keyed ? i() : () => {
|
|
479
|
-
if (Y(
|
|
479
|
+
if (Y(n)()?.[0] !== o) throw Wn("Match");
|
|
480
480
|
return i();
|
|
481
481
|
})) : s;
|
|
482
482
|
}, void 0, void 0);
|
|
@@ -484,7 +484,7 @@ function Wr(t) {
|
|
|
484
484
|
function Pe(t) {
|
|
485
485
|
return t;
|
|
486
486
|
}
|
|
487
|
-
const $
|
|
487
|
+
const $r = [
|
|
488
488
|
"allowfullscreen",
|
|
489
489
|
"async",
|
|
490
490
|
"alpha",
|
|
@@ -526,7 +526,7 @@ const $n = [
|
|
|
526
526
|
"shadowrootdelegatesfocus",
|
|
527
527
|
"shadowrootserializable",
|
|
528
528
|
"sharedstoragewritable"
|
|
529
|
-
],
|
|
529
|
+
], Tr = /* @__PURE__ */ new Set([
|
|
530
530
|
"className",
|
|
531
531
|
"value",
|
|
532
532
|
"readOnly",
|
|
@@ -549,11 +549,11 @@ const $n = [
|
|
|
549
549
|
"shadowRootDelegatesFocus",
|
|
550
550
|
"shadowRootSerializable",
|
|
551
551
|
"sharedStorageWritable",
|
|
552
|
-
...$
|
|
553
|
-
]),
|
|
552
|
+
...$r
|
|
553
|
+
]), Er = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), _r = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
554
554
|
className: "class",
|
|
555
555
|
htmlFor: "for"
|
|
556
|
-
}),
|
|
556
|
+
}), Nr = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
557
557
|
class: "className",
|
|
558
558
|
novalidate: {
|
|
559
559
|
$: "noValidate",
|
|
@@ -638,11 +638,11 @@ const $n = [
|
|
|
638
638
|
IMG: 1
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
|
-
function
|
|
642
|
-
const
|
|
643
|
-
return typeof
|
|
641
|
+
function Pr(t, e) {
|
|
642
|
+
const n = Nr[t];
|
|
643
|
+
return typeof n == "object" ? n[e] ? n.$ : void 0 : n;
|
|
644
644
|
}
|
|
645
|
-
const
|
|
645
|
+
const Br = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), Rr = /* @__PURE__ */ new Set([
|
|
646
646
|
"altGlyph",
|
|
647
647
|
"altGlyphDef",
|
|
648
648
|
"altGlyphItem",
|
|
@@ -720,33 +720,33 @@ const Bn = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "context
|
|
|
720
720
|
"use",
|
|
721
721
|
"view",
|
|
722
722
|
"vkern"
|
|
723
|
-
]),
|
|
723
|
+
]), Mr = {
|
|
724
724
|
xlink: "http://www.w3.org/1999/xlink",
|
|
725
725
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
726
726
|
}, Re = (t) => T(() => t());
|
|
727
|
-
function
|
|
728
|
-
let
|
|
727
|
+
function Or(t, e, n) {
|
|
728
|
+
let r = n.length, o = e.length, i = r, a = 0, s = 0, l = e[o - 1].nextSibling, d = null;
|
|
729
729
|
for (; a < o || s < i; ) {
|
|
730
|
-
if (e[a] ===
|
|
730
|
+
if (e[a] === n[s]) {
|
|
731
731
|
a++, s++;
|
|
732
732
|
continue;
|
|
733
733
|
}
|
|
734
|
-
for (; e[o - 1] ===
|
|
734
|
+
for (; e[o - 1] === n[i - 1]; )
|
|
735
735
|
o--, i--;
|
|
736
736
|
if (o === a) {
|
|
737
|
-
const u = i <
|
|
738
|
-
for (; s < i; ) t.insertBefore(
|
|
737
|
+
const u = i < r ? s ? n[s - 1].nextSibling : n[i - s] : l;
|
|
738
|
+
for (; s < i; ) t.insertBefore(n[s++], u);
|
|
739
739
|
} else if (i === s)
|
|
740
740
|
for (; a < o; )
|
|
741
741
|
(!d || !d.has(e[a])) && e[a].remove(), a++;
|
|
742
|
-
else if (e[a] ===
|
|
742
|
+
else if (e[a] === n[i - 1] && n[s] === e[o - 1]) {
|
|
743
743
|
const u = e[--o].nextSibling;
|
|
744
|
-
t.insertBefore(
|
|
744
|
+
t.insertBefore(n[s++], e[a++].nextSibling), t.insertBefore(n[--i], u), e[o] = n[i];
|
|
745
745
|
} else {
|
|
746
746
|
if (!d) {
|
|
747
747
|
d = /* @__PURE__ */ new Map();
|
|
748
748
|
let c = s;
|
|
749
|
-
for (; c < i; ) d.set(
|
|
749
|
+
for (; c < i; ) d.set(n[c], c++);
|
|
750
750
|
}
|
|
751
751
|
const u = d.get(e[a]);
|
|
752
752
|
if (u != null)
|
|
@@ -756,155 +756,155 @@ function On(t, e, r) {
|
|
|
756
756
|
f++;
|
|
757
757
|
if (f > u - s) {
|
|
758
758
|
const g = e[a];
|
|
759
|
-
for (; s < u; ) t.insertBefore(
|
|
760
|
-
} else t.replaceChild(
|
|
759
|
+
for (; s < u; ) t.insertBefore(n[s++], g);
|
|
760
|
+
} else t.replaceChild(n[s++], e[a++]);
|
|
761
761
|
} else a++;
|
|
762
762
|
else e[a++].remove();
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
const
|
|
767
|
-
function
|
|
766
|
+
const tn = "_$DX_DELEGATE";
|
|
767
|
+
function Ir(t, e, n, r = {}) {
|
|
768
768
|
let o;
|
|
769
769
|
return at((i) => {
|
|
770
|
-
o = i, e === document ? t() : m(e, t(), e.firstChild ? null : void 0,
|
|
771
|
-
},
|
|
770
|
+
o = i, e === document ? t() : m(e, t(), e.firstChild ? null : void 0, n);
|
|
771
|
+
}, r.owner), () => {
|
|
772
772
|
o(), e.textContent = "";
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
function x(t, e,
|
|
775
|
+
function x(t, e, n, r) {
|
|
776
776
|
let o;
|
|
777
777
|
const i = () => {
|
|
778
|
-
const s =
|
|
779
|
-
return s.innerHTML = t,
|
|
778
|
+
const s = r ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
|
|
779
|
+
return s.innerHTML = t, n ? s.content.firstChild.firstChild : r ? s.firstChild : s.content.firstChild;
|
|
780
780
|
}, a = e ? () => Y(() => document.importNode(o || (o = i()), !0)) : () => (o || (o = i())).cloneNode(!0);
|
|
781
781
|
return a.cloneNode = a, a;
|
|
782
782
|
}
|
|
783
783
|
function Ae(t, e = window.document) {
|
|
784
|
-
const
|
|
785
|
-
for (let
|
|
786
|
-
const i = t[
|
|
787
|
-
|
|
784
|
+
const n = e[tn] || (e[tn] = /* @__PURE__ */ new Set());
|
|
785
|
+
for (let r = 0, o = t.length; r < o; r++) {
|
|
786
|
+
const i = t[r];
|
|
787
|
+
n.has(i) || (n.add(i), e.addEventListener(i, zr));
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
function Z(t, e,
|
|
791
|
-
|
|
790
|
+
function Z(t, e, n) {
|
|
791
|
+
n == null ? t.removeAttribute(e) : t.setAttribute(e, n);
|
|
792
792
|
}
|
|
793
|
-
function
|
|
794
|
-
|
|
793
|
+
function Lr(t, e, n, r) {
|
|
794
|
+
r == null ? t.removeAttributeNS(e, n) : t.setAttributeNS(e, n, r);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
797
|
-
|
|
796
|
+
function jr(t, e, n) {
|
|
797
|
+
n ? t.setAttribute(e, "") : t.removeAttribute(e);
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function re(t, e) {
|
|
800
800
|
e == null ? t.removeAttribute("class") : t.className = e;
|
|
801
801
|
}
|
|
802
|
-
function yt(t, e,
|
|
803
|
-
if (
|
|
804
|
-
Array.isArray(
|
|
805
|
-
else if (Array.isArray(
|
|
806
|
-
const o =
|
|
807
|
-
t.addEventListener(e,
|
|
808
|
-
} else t.addEventListener(e,
|
|
802
|
+
function yt(t, e, n, r) {
|
|
803
|
+
if (r)
|
|
804
|
+
Array.isArray(n) ? (t[`$$${e}`] = n[0], t[`$$${e}Data`] = n[1]) : t[`$$${e}`] = n;
|
|
805
|
+
else if (Array.isArray(n)) {
|
|
806
|
+
const o = n[0];
|
|
807
|
+
t.addEventListener(e, n[0] = (i) => o.call(t, n[1], i));
|
|
808
|
+
} else t.addEventListener(e, n, typeof n != "function" && n);
|
|
809
809
|
}
|
|
810
|
-
function
|
|
811
|
-
const
|
|
810
|
+
function Dr(t, e, n = {}) {
|
|
811
|
+
const r = Object.keys(e || {}), o = Object.keys(n);
|
|
812
812
|
let i, a;
|
|
813
813
|
for (i = 0, a = o.length; i < a; i++) {
|
|
814
814
|
const s = o[i];
|
|
815
|
-
!s || s === "undefined" || e[s] || (
|
|
815
|
+
!s || s === "undefined" || e[s] || (nn(t, s, !1), delete n[s]);
|
|
816
816
|
}
|
|
817
|
-
for (i = 0, a =
|
|
818
|
-
const s =
|
|
819
|
-
!s || s === "undefined" ||
|
|
817
|
+
for (i = 0, a = r.length; i < a; i++) {
|
|
818
|
+
const s = r[i], l = !!e[s];
|
|
819
|
+
!s || s === "undefined" || n[s] === l || !l || (nn(t, s, !0), n[s] = l);
|
|
820
820
|
}
|
|
821
|
-
return
|
|
821
|
+
return n;
|
|
822
822
|
}
|
|
823
|
-
function Pt(t, e,
|
|
824
|
-
if (!e) return
|
|
825
|
-
const
|
|
826
|
-
if (typeof e == "string") return
|
|
827
|
-
typeof
|
|
823
|
+
function Pt(t, e, n) {
|
|
824
|
+
if (!e) return n ? Z(t, "style") : e;
|
|
825
|
+
const r = t.style;
|
|
826
|
+
if (typeof e == "string") return r.cssText = e;
|
|
827
|
+
typeof n == "string" && (r.cssText = n = void 0), n || (n = {}), e || (e = {});
|
|
828
828
|
let o, i;
|
|
829
|
-
for (i in
|
|
830
|
-
e[i] == null &&
|
|
829
|
+
for (i in n)
|
|
830
|
+
e[i] == null && r.removeProperty(i), delete n[i];
|
|
831
831
|
for (i in e)
|
|
832
|
-
o = e[i], o !==
|
|
833
|
-
return
|
|
832
|
+
o = e[i], o !== n[i] && (r.setProperty(i, o), n[i] = o);
|
|
833
|
+
return n;
|
|
834
834
|
}
|
|
835
|
-
function gt(t, e = {},
|
|
835
|
+
function gt(t, e = {}, n, r) {
|
|
836
836
|
const o = {};
|
|
837
|
-
return
|
|
837
|
+
return r || z(() => o.children = Ke(t, e.children, o.children)), z(() => typeof e.ref == "function" && Kn(e.ref, t)), z(() => Vr(t, e, n, !0, o, !0)), o;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
return Y(() => t(e,
|
|
839
|
+
function Kn(t, e, n) {
|
|
840
|
+
return Y(() => t(e, n));
|
|
841
841
|
}
|
|
842
|
-
function m(t, e,
|
|
843
|
-
if (
|
|
844
|
-
z((o) => Ke(t, e(), o,
|
|
842
|
+
function m(t, e, n, r) {
|
|
843
|
+
if (n !== void 0 && !r && (r = []), typeof e != "function") return Ke(t, e, r, n);
|
|
844
|
+
z((o) => Ke(t, e(), o, n), r);
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Vr(t, e, n, r, o = {}, i = !1) {
|
|
847
847
|
e || (e = {});
|
|
848
848
|
for (const a in o)
|
|
849
849
|
if (!(a in e)) {
|
|
850
850
|
if (a === "children") continue;
|
|
851
|
-
o[a] =
|
|
851
|
+
o[a] = rn(t, a, null, o[a], n, i, e);
|
|
852
852
|
}
|
|
853
853
|
for (const a in e) {
|
|
854
854
|
if (a === "children")
|
|
855
855
|
continue;
|
|
856
856
|
const s = e[a];
|
|
857
|
-
o[a] =
|
|
857
|
+
o[a] = rn(t, a, s, o[a], n, i, e);
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
|
-
function
|
|
861
|
-
return t.toLowerCase().replace(/-([a-z])/g, (e,
|
|
860
|
+
function Fr(t) {
|
|
861
|
+
return t.toLowerCase().replace(/-([a-z])/g, (e, n) => n.toUpperCase());
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
const
|
|
865
|
-
for (let o = 0, i =
|
|
863
|
+
function nn(t, e, n) {
|
|
864
|
+
const r = e.trim().split(/\s+/);
|
|
865
|
+
for (let o = 0, i = r.length; o < i; o++) t.classList.toggle(r[o], n);
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function rn(t, e, n, r, o, i, a) {
|
|
868
868
|
let s, l, d, u, c;
|
|
869
|
-
if (e === "style") return Pt(t,
|
|
870
|
-
if (e === "classList") return
|
|
871
|
-
if (
|
|
869
|
+
if (e === "style") return Pt(t, n, r);
|
|
870
|
+
if (e === "classList") return Dr(t, n, r);
|
|
871
|
+
if (n === r) return r;
|
|
872
872
|
if (e === "ref")
|
|
873
|
-
i ||
|
|
873
|
+
i || n(t);
|
|
874
874
|
else if (e.slice(0, 3) === "on:") {
|
|
875
875
|
const f = e.slice(3);
|
|
876
|
-
|
|
876
|
+
r && t.removeEventListener(f, r, typeof r != "function" && r), n && t.addEventListener(f, n, typeof n != "function" && n);
|
|
877
877
|
} else if (e.slice(0, 10) === "oncapture:") {
|
|
878
878
|
const f = e.slice(10);
|
|
879
|
-
|
|
879
|
+
r && t.removeEventListener(f, r, !0), n && t.addEventListener(f, n, !0);
|
|
880
880
|
} else if (e.slice(0, 2) === "on") {
|
|
881
|
-
const f = e.slice(2).toLowerCase(), h =
|
|
882
|
-
if (!h &&
|
|
883
|
-
const g = Array.isArray(
|
|
881
|
+
const f = e.slice(2).toLowerCase(), h = Br.has(f);
|
|
882
|
+
if (!h && r) {
|
|
883
|
+
const g = Array.isArray(r) ? r[0] : r;
|
|
884
884
|
t.removeEventListener(f, g);
|
|
885
885
|
}
|
|
886
|
-
(h ||
|
|
886
|
+
(h || n) && (yt(t, f, n, h), h && Ae([f]));
|
|
887
887
|
} else if (e.slice(0, 5) === "attr:")
|
|
888
|
-
Z(t, e.slice(5),
|
|
888
|
+
Z(t, e.slice(5), n);
|
|
889
889
|
else if (e.slice(0, 5) === "bool:")
|
|
890
|
-
|
|
891
|
-
else if ((c = e.slice(0, 5) === "prop:") || (d =
|
|
892
|
-
c && (e = e.slice(5), l = !0), e === "class" || e === "className" ?
|
|
890
|
+
jr(t, e.slice(5), n);
|
|
891
|
+
else if ((c = e.slice(0, 5) === "prop:") || (d = Er.has(e)) || !o && ((u = Pr(e, t.tagName)) || (l = Tr.has(e))) || (s = t.nodeName.includes("-") || "is" in a))
|
|
892
|
+
c && (e = e.slice(5), l = !0), e === "class" || e === "className" ? re(t, n) : s && !l && !d ? t[Fr(e)] = n : t[u || e] = n;
|
|
893
893
|
else {
|
|
894
|
-
const f = o && e.indexOf(":") > -1 &&
|
|
895
|
-
f ?
|
|
894
|
+
const f = o && e.indexOf(":") > -1 && Mr[e.split(":")[0]];
|
|
895
|
+
f ? Lr(t, f, e, n) : Z(t, _r[e] || e, n);
|
|
896
896
|
}
|
|
897
|
-
return
|
|
897
|
+
return n;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function zr(t) {
|
|
900
900
|
let e = t.target;
|
|
901
|
-
const
|
|
901
|
+
const n = `$$${t.type}`, r = t.target, o = t.currentTarget, i = (l) => Object.defineProperty(t, "target", {
|
|
902
902
|
configurable: !0,
|
|
903
903
|
value: l
|
|
904
904
|
}), a = () => {
|
|
905
|
-
const l = e[
|
|
905
|
+
const l = e[n];
|
|
906
906
|
if (l && !e.disabled) {
|
|
907
|
-
const d = e[`${
|
|
907
|
+
const d = e[`${n}Data`];
|
|
908
908
|
if (d !== void 0 ? l.call(e, d, t) : l.call(e, t), t.cancelBubble) return;
|
|
909
909
|
}
|
|
910
910
|
return e.host && typeof e.host != "string" && !e.host._$host && e.contains(t.target) && i(e.host), !0;
|
|
@@ -928,57 +928,57 @@ function zn(t) {
|
|
|
928
928
|
break;
|
|
929
929
|
}
|
|
930
930
|
} else s();
|
|
931
|
-
i(
|
|
931
|
+
i(r);
|
|
932
932
|
}
|
|
933
|
-
function Ke(t, e,
|
|
934
|
-
for (; typeof
|
|
935
|
-
if (e ===
|
|
936
|
-
const i = typeof e, a =
|
|
937
|
-
if (t = a &&
|
|
938
|
-
if (i === "number" && (e = e.toString(), e ===
|
|
939
|
-
return
|
|
933
|
+
function Ke(t, e, n, r, o) {
|
|
934
|
+
for (; typeof n == "function"; ) n = n();
|
|
935
|
+
if (e === n) return n;
|
|
936
|
+
const i = typeof e, a = r !== void 0;
|
|
937
|
+
if (t = a && n[0] && n[0].parentNode || t, i === "string" || i === "number") {
|
|
938
|
+
if (i === "number" && (e = e.toString(), e === n))
|
|
939
|
+
return n;
|
|
940
940
|
if (a) {
|
|
941
|
-
let s =
|
|
942
|
-
s && s.nodeType === 3 ? s.data !== e && (s.data = e) : s = document.createTextNode(e),
|
|
941
|
+
let s = n[0];
|
|
942
|
+
s && s.nodeType === 3 ? s.data !== e && (s.data = e) : s = document.createTextNode(e), n = Ie(t, n, r, s);
|
|
943
943
|
} else
|
|
944
|
-
|
|
944
|
+
n !== "" && typeof n == "string" ? n = t.firstChild.data = e : n = t.textContent = e;
|
|
945
945
|
} else if (e == null || i === "boolean")
|
|
946
|
-
|
|
946
|
+
n = Ie(t, n, r);
|
|
947
947
|
else {
|
|
948
948
|
if (i === "function")
|
|
949
949
|
return z(() => {
|
|
950
950
|
let s = e();
|
|
951
951
|
for (; typeof s == "function"; ) s = s();
|
|
952
|
-
|
|
953
|
-
}), () =>
|
|
952
|
+
n = Ke(t, s, n, r);
|
|
953
|
+
}), () => n;
|
|
954
954
|
if (Array.isArray(e)) {
|
|
955
|
-
const s = [], l =
|
|
956
|
-
if (Bt(s, e,
|
|
957
|
-
return z(() =>
|
|
955
|
+
const s = [], l = n && Array.isArray(n);
|
|
956
|
+
if (Bt(s, e, n, o))
|
|
957
|
+
return z(() => n = Ke(t, s, n, r, !0)), () => n;
|
|
958
958
|
if (s.length === 0) {
|
|
959
|
-
if (
|
|
960
|
-
} else l ?
|
|
961
|
-
|
|
959
|
+
if (n = Ie(t, n, r), a) return n;
|
|
960
|
+
} else l ? n.length === 0 ? on(t, s, r) : Or(t, n, s) : (n && Ie(t), on(t, s));
|
|
961
|
+
n = s;
|
|
962
962
|
} else if (e.nodeType) {
|
|
963
|
-
if (Array.isArray(
|
|
964
|
-
if (a) return
|
|
965
|
-
Ie(t,
|
|
966
|
-
} else
|
|
967
|
-
|
|
963
|
+
if (Array.isArray(n)) {
|
|
964
|
+
if (a) return n = Ie(t, n, r, e);
|
|
965
|
+
Ie(t, n, null, e);
|
|
966
|
+
} else n == null || n === "" || !t.firstChild ? t.appendChild(e) : t.replaceChild(e, t.firstChild);
|
|
967
|
+
n = e;
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
return
|
|
970
|
+
return n;
|
|
971
971
|
}
|
|
972
|
-
function Bt(t, e,
|
|
972
|
+
function Bt(t, e, n, r) {
|
|
973
973
|
let o = !1;
|
|
974
974
|
for (let i = 0, a = e.length; i < a; i++) {
|
|
975
|
-
let s = e[i], l =
|
|
975
|
+
let s = e[i], l = n && n[t.length], d;
|
|
976
976
|
if (!(s == null || s === !0 || s === !1)) if ((d = typeof s) == "object" && s.nodeType)
|
|
977
977
|
t.push(s);
|
|
978
978
|
else if (Array.isArray(s))
|
|
979
979
|
o = Bt(t, s, l) || o;
|
|
980
980
|
else if (d === "function")
|
|
981
|
-
if (
|
|
981
|
+
if (r) {
|
|
982
982
|
for (; typeof s == "function"; ) s = s();
|
|
983
983
|
o = Bt(t, Array.isArray(s) ? s : [s], Array.isArray(l) ? l : [l]) || o;
|
|
984
984
|
} else
|
|
@@ -990,94 +990,94 @@ function Bt(t, e, r, n) {
|
|
|
990
990
|
}
|
|
991
991
|
return o;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
994
|
-
for (let
|
|
993
|
+
function on(t, e, n = null) {
|
|
994
|
+
for (let r = 0, o = e.length; r < o; r++) t.insertBefore(e[r], n);
|
|
995
995
|
}
|
|
996
|
-
function Ie(t, e,
|
|
997
|
-
if (
|
|
998
|
-
const o =
|
|
996
|
+
function Ie(t, e, n, r) {
|
|
997
|
+
if (n === void 0) return t.textContent = "";
|
|
998
|
+
const o = r || document.createTextNode("");
|
|
999
999
|
if (e.length) {
|
|
1000
1000
|
let i = !1;
|
|
1001
1001
|
for (let a = e.length - 1; a >= 0; a--) {
|
|
1002
1002
|
const s = e[a];
|
|
1003
1003
|
if (o !== s) {
|
|
1004
1004
|
const l = s.parentNode === t;
|
|
1005
|
-
!i && !a ? l ? t.replaceChild(o, s) : t.insertBefore(o,
|
|
1005
|
+
!i && !a ? l ? t.replaceChild(o, s) : t.insertBefore(o, n) : l && s.remove();
|
|
1006
1006
|
} else i = !0;
|
|
1007
1007
|
}
|
|
1008
|
-
} else t.insertBefore(o,
|
|
1008
|
+
} else t.insertBefore(o, n);
|
|
1009
1009
|
return [o];
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1012
|
-
function
|
|
1013
|
-
return e ? document.createElementNS(
|
|
1014
|
-
is:
|
|
1011
|
+
const Ur = "http://www.w3.org/2000/svg";
|
|
1012
|
+
function Wr(t, e = !1, n = void 0) {
|
|
1013
|
+
return e ? document.createElementNS(Ur, t) : document.createElement(t, {
|
|
1014
|
+
is: n
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const
|
|
1017
|
+
function Gr(t, e) {
|
|
1018
|
+
const n = T(t);
|
|
1019
1019
|
return T(() => {
|
|
1020
|
-
const
|
|
1021
|
-
switch (typeof
|
|
1020
|
+
const r = n();
|
|
1021
|
+
switch (typeof r) {
|
|
1022
1022
|
case "function":
|
|
1023
|
-
return Y(() =>
|
|
1023
|
+
return Y(() => r(e));
|
|
1024
1024
|
case "string":
|
|
1025
|
-
const o =
|
|
1025
|
+
const o = Rr.has(r), i = Wr(r, o, Y(() => e.is));
|
|
1026
1026
|
return gt(i, e, o), i;
|
|
1027
1027
|
}
|
|
1028
1028
|
});
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Kr(t) {
|
|
1031
1031
|
const [, e] = wt(t, ["component"]);
|
|
1032
|
-
return
|
|
1032
|
+
return Gr(() => t.component, e);
|
|
1033
1033
|
}
|
|
1034
|
-
const
|
|
1034
|
+
const Hr = 1, qr = (t) => {
|
|
1035
1035
|
const e = new URLSearchParams();
|
|
1036
|
-
return e.set("h", t.h), e.set("k", t.k), t.p && e.set("p", t.p), t.s && e.set("s", t.s), `openlv://${t.sessionId}@${
|
|
1036
|
+
return e.set("h", t.h), e.set("k", t.k), t.p && e.set("p", t.p), t.s && e.set("s", t.s), `openlv://${t.sessionId}@${Hr}?${e.toString()}`;
|
|
1037
1037
|
};
|
|
1038
|
-
function
|
|
1038
|
+
function Xr(t) {
|
|
1039
1039
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1040
1040
|
}
|
|
1041
|
-
var At = { exports: {} },
|
|
1042
|
-
function
|
|
1043
|
-
return
|
|
1044
|
-
var e = Object.prototype.hasOwnProperty,
|
|
1045
|
-
function
|
|
1041
|
+
var At = { exports: {} }, sn;
|
|
1042
|
+
function Qr() {
|
|
1043
|
+
return sn || (sn = 1, (function(t) {
|
|
1044
|
+
var e = Object.prototype.hasOwnProperty, n = "~";
|
|
1045
|
+
function r() {
|
|
1046
1046
|
}
|
|
1047
|
-
Object.create && (
|
|
1047
|
+
Object.create && (r.prototype = /* @__PURE__ */ Object.create(null), new r().__proto__ || (n = !1));
|
|
1048
1048
|
function o(l, d, u) {
|
|
1049
1049
|
this.fn = l, this.context = d, this.once = u || !1;
|
|
1050
1050
|
}
|
|
1051
1051
|
function i(l, d, u, c, f) {
|
|
1052
1052
|
if (typeof u != "function")
|
|
1053
1053
|
throw new TypeError("The listener must be a function");
|
|
1054
|
-
var h = new o(u, c || l, f), g =
|
|
1054
|
+
var h = new o(u, c || l, f), g = n ? n + d : d;
|
|
1055
1055
|
return l._events[g] ? l._events[g].fn ? l._events[g] = [l._events[g], h] : l._events[g].push(h) : (l._events[g] = h, l._eventsCount++), l;
|
|
1056
1056
|
}
|
|
1057
1057
|
function a(l, d) {
|
|
1058
|
-
--l._eventsCount === 0 ? l._events = new
|
|
1058
|
+
--l._eventsCount === 0 ? l._events = new r() : delete l._events[d];
|
|
1059
1059
|
}
|
|
1060
1060
|
function s() {
|
|
1061
|
-
this._events = new
|
|
1061
|
+
this._events = new r(), this._eventsCount = 0;
|
|
1062
1062
|
}
|
|
1063
1063
|
s.prototype.eventNames = function() {
|
|
1064
1064
|
var d = [], u, c;
|
|
1065
1065
|
if (this._eventsCount === 0) return d;
|
|
1066
1066
|
for (c in u = this._events)
|
|
1067
|
-
e.call(u, c) && d.push(
|
|
1067
|
+
e.call(u, c) && d.push(n ? c.slice(1) : c);
|
|
1068
1068
|
return Object.getOwnPropertySymbols ? d.concat(Object.getOwnPropertySymbols(u)) : d;
|
|
1069
1069
|
}, s.prototype.listeners = function(d) {
|
|
1070
|
-
var u =
|
|
1070
|
+
var u = n ? n + d : d, c = this._events[u];
|
|
1071
1071
|
if (!c) return [];
|
|
1072
1072
|
if (c.fn) return [c.fn];
|
|
1073
1073
|
for (var f = 0, h = c.length, g = new Array(h); f < h; f++)
|
|
1074
1074
|
g[f] = c[f].fn;
|
|
1075
1075
|
return g;
|
|
1076
1076
|
}, s.prototype.listenerCount = function(d) {
|
|
1077
|
-
var u =
|
|
1077
|
+
var u = n ? n + d : d, c = this._events[u];
|
|
1078
1078
|
return c ? c.fn ? 1 : c.length : 0;
|
|
1079
1079
|
}, s.prototype.emit = function(d, u, c, f, h, g) {
|
|
1080
|
-
var b =
|
|
1080
|
+
var b = n ? n + d : d;
|
|
1081
1081
|
if (!this._events[b]) return !1;
|
|
1082
1082
|
var p = this._events[b], C = arguments.length, k, y;
|
|
1083
1083
|
if (p.fn) {
|
|
@@ -1126,7 +1126,7 @@ function Qn() {
|
|
|
1126
1126
|
}, s.prototype.once = function(d, u, c) {
|
|
1127
1127
|
return i(this, d, u, c, !0);
|
|
1128
1128
|
}, s.prototype.removeListener = function(d, u, c, f) {
|
|
1129
|
-
var h =
|
|
1129
|
+
var h = n ? n + d : d;
|
|
1130
1130
|
if (!this._events[h]) return this;
|
|
1131
1131
|
if (!u)
|
|
1132
1132
|
return a(this, h), this;
|
|
@@ -1141,121 +1141,121 @@ function Qn() {
|
|
|
1141
1141
|
return this;
|
|
1142
1142
|
}, s.prototype.removeAllListeners = function(d) {
|
|
1143
1143
|
var u;
|
|
1144
|
-
return d ? (u =
|
|
1145
|
-
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed =
|
|
1144
|
+
return d ? (u = n ? n + d : d, this._events[u] && a(this, u)) : (this._events = new r(), this._eventsCount = 0), this;
|
|
1145
|
+
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = n, s.EventEmitter = s, t.exports = s;
|
|
1146
1146
|
})(At)), At.exports;
|
|
1147
1147
|
}
|
|
1148
|
-
|
|
1149
|
-
const q = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"),
|
|
1148
|
+
Qr();
|
|
1149
|
+
const q = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), Hn = /* @__PURE__ */ Symbol.for("@ts-pattern/isVariadic"), vt = "@ts-pattern/anonymous-select-key", Rt = (t) => !!(t && typeof t == "object"), lt = (t) => t && !!t[q], j = (t, e, n) => {
|
|
1150
1150
|
if (lt(t)) {
|
|
1151
|
-
const
|
|
1152
|
-
return o && i && Object.keys(i).forEach((a) =>
|
|
1151
|
+
const r = t[q](), { matched: o, selections: i } = r.match(e);
|
|
1152
|
+
return o && i && Object.keys(i).forEach((a) => n(a, i[a])), o;
|
|
1153
1153
|
}
|
|
1154
1154
|
if (Rt(t)) {
|
|
1155
1155
|
if (!Rt(e)) return !1;
|
|
1156
1156
|
if (Array.isArray(t)) {
|
|
1157
1157
|
if (!Array.isArray(e)) return !1;
|
|
1158
|
-
let
|
|
1158
|
+
let r = [], o = [], i = [];
|
|
1159
1159
|
for (const a of t.keys()) {
|
|
1160
1160
|
const s = t[a];
|
|
1161
|
-
lt(s) && s[
|
|
1161
|
+
lt(s) && s[Hn] ? i.push(s) : i.length ? o.push(s) : r.push(s);
|
|
1162
1162
|
}
|
|
1163
1163
|
if (i.length) {
|
|
1164
1164
|
if (i.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
1165
|
-
if (e.length <
|
|
1166
|
-
const a = e.slice(0,
|
|
1167
|
-
return
|
|
1165
|
+
if (e.length < r.length + o.length) return !1;
|
|
1166
|
+
const a = e.slice(0, r.length), s = o.length === 0 ? [] : e.slice(-o.length), l = e.slice(r.length, o.length === 0 ? 1 / 0 : -o.length);
|
|
1167
|
+
return r.every((d, u) => j(d, a[u], n)) && o.every((d, u) => j(d, s[u], n)) && (i.length === 0 || j(i[0], l, n));
|
|
1168
1168
|
}
|
|
1169
|
-
return t.length === e.length && t.every((a, s) => j(a, e[s],
|
|
1169
|
+
return t.length === e.length && t.every((a, s) => j(a, e[s], n));
|
|
1170
1170
|
}
|
|
1171
|
-
return Reflect.ownKeys(t).every((
|
|
1172
|
-
const o = t[
|
|
1173
|
-
return (
|
|
1171
|
+
return Reflect.ownKeys(t).every((r) => {
|
|
1172
|
+
const o = t[r];
|
|
1173
|
+
return (r in e || lt(i = o) && i[q]().matcherType === "optional") && j(o, e[r], n);
|
|
1174
1174
|
var i;
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
1177
|
return Object.is(e, t);
|
|
1178
1178
|
}, H = (t) => {
|
|
1179
|
-
var e,
|
|
1180
|
-
return Rt(t) ? lt(t) ? (e = (
|
|
1181
|
-
}, He = (t, e) => t.reduce((
|
|
1182
|
-
function
|
|
1179
|
+
var e, n, r;
|
|
1180
|
+
return Rt(t) ? lt(t) ? (e = (n = (r = t[q]()).getSelectionKeys) == null ? void 0 : n.call(r)) != null ? e : [] : Array.isArray(t) ? He(t, H) : He(Object.values(t), H) : [];
|
|
1181
|
+
}, He = (t, e) => t.reduce((n, r) => n.concat(e(r)), []);
|
|
1182
|
+
function Jr(...t) {
|
|
1183
1183
|
if (t.length === 1) {
|
|
1184
1184
|
const [e] = t;
|
|
1185
|
-
return (
|
|
1185
|
+
return (n) => j(e, n, () => {
|
|
1186
1186
|
});
|
|
1187
1187
|
}
|
|
1188
1188
|
if (t.length === 2) {
|
|
1189
|
-
const [e,
|
|
1190
|
-
return j(e,
|
|
1189
|
+
const [e, n] = t;
|
|
1190
|
+
return j(e, n, () => {
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
1193
|
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
|
|
1194
1194
|
}
|
|
1195
1195
|
function V(t) {
|
|
1196
|
-
return Object.assign(t, { optional: () => zt(t), and: (e) => B(t, e), or: (e) =>
|
|
1196
|
+
return Object.assign(t, { optional: () => zt(t), and: (e) => B(t, e), or: (e) => qn(t, e), select: (e) => e === void 0 ? qe(t) : qe(e, t) });
|
|
1197
1197
|
}
|
|
1198
1198
|
function Mt(t) {
|
|
1199
1199
|
return Object.assign(((e) => Object.assign(e, { [Symbol.iterator]() {
|
|
1200
|
-
let
|
|
1201
|
-
const
|
|
1200
|
+
let n = 0;
|
|
1201
|
+
const r = [{ value: Object.assign(e, { [Hn]: !0 }), done: !1 }, { done: !0, value: void 0 }];
|
|
1202
1202
|
return { next: () => {
|
|
1203
1203
|
var o;
|
|
1204
|
-
return (o = n
|
|
1204
|
+
return (o = r[n++]) != null ? o : r.at(-1);
|
|
1205
1205
|
} };
|
|
1206
1206
|
} }))(t), { optional: () => Mt(zt(t)), select: (e) => Mt(e === void 0 ? qe(t) : qe(e, t)) });
|
|
1207
1207
|
}
|
|
1208
1208
|
function zt(t) {
|
|
1209
1209
|
return V({ [q]: () => ({ match: (e) => {
|
|
1210
|
-
let
|
|
1211
|
-
const
|
|
1212
|
-
|
|
1210
|
+
let n = {};
|
|
1211
|
+
const r = (o, i) => {
|
|
1212
|
+
n[o] = i;
|
|
1213
1213
|
};
|
|
1214
|
-
return e === void 0 ? (H(t).forEach((o) =>
|
|
1214
|
+
return e === void 0 ? (H(t).forEach((o) => r(o, void 0)), { matched: !0, selections: n }) : { matched: j(t, e, r), selections: n };
|
|
1215
1215
|
}, getSelectionKeys: () => H(t), matcherType: "optional" }) });
|
|
1216
1216
|
}
|
|
1217
|
-
const
|
|
1218
|
-
for (const
|
|
1217
|
+
const Zr = (t, e) => {
|
|
1218
|
+
for (const n of t) if (!e(n)) return !1;
|
|
1219
1219
|
return !0;
|
|
1220
|
-
},
|
|
1221
|
-
for (const [
|
|
1220
|
+
}, Yr = (t, e) => {
|
|
1221
|
+
for (const [n, r] of t.entries()) if (!e(r, n)) return !1;
|
|
1222
1222
|
return !0;
|
|
1223
1223
|
}, eo = (t, e) => {
|
|
1224
|
-
const
|
|
1225
|
-
for (const
|
|
1224
|
+
const n = Reflect.ownKeys(t);
|
|
1225
|
+
for (const r of n) if (!e(r, t[r])) return !1;
|
|
1226
1226
|
return !0;
|
|
1227
1227
|
};
|
|
1228
1228
|
function B(...t) {
|
|
1229
1229
|
return V({ [q]: () => ({ match: (e) => {
|
|
1230
|
-
let
|
|
1231
|
-
const
|
|
1232
|
-
|
|
1230
|
+
let n = {};
|
|
1231
|
+
const r = (o, i) => {
|
|
1232
|
+
n[o] = i;
|
|
1233
1233
|
};
|
|
1234
|
-
return { matched: t.every((o) => j(o, e,
|
|
1234
|
+
return { matched: t.every((o) => j(o, e, r)), selections: n };
|
|
1235
1235
|
}, getSelectionKeys: () => He(t, H), matcherType: "and" }) });
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function qn(...t) {
|
|
1238
1238
|
return V({ [q]: () => ({ match: (e) => {
|
|
1239
|
-
let
|
|
1240
|
-
const
|
|
1241
|
-
|
|
1239
|
+
let n = {};
|
|
1240
|
+
const r = (o, i) => {
|
|
1241
|
+
n[o] = i;
|
|
1242
1242
|
};
|
|
1243
|
-
return He(t, H).forEach((o) =>
|
|
1243
|
+
return He(t, H).forEach((o) => r(o, void 0)), { matched: t.some((o) => j(o, e, r)), selections: n };
|
|
1244
1244
|
}, getSelectionKeys: () => He(t, H), matcherType: "or" }) });
|
|
1245
1245
|
}
|
|
1246
1246
|
function S(t) {
|
|
1247
1247
|
return { [q]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
|
|
1248
1248
|
}
|
|
1249
1249
|
function qe(...t) {
|
|
1250
|
-
const e = typeof t[0] == "string" ? t[0] : void 0,
|
|
1251
|
-
return V({ [q]: () => ({ match: (
|
|
1252
|
-
let o = { [e ?? vt]:
|
|
1253
|
-
return { matched:
|
|
1250
|
+
const e = typeof t[0] == "string" ? t[0] : void 0, n = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
1251
|
+
return V({ [q]: () => ({ match: (r) => {
|
|
1252
|
+
let o = { [e ?? vt]: r };
|
|
1253
|
+
return { matched: n === void 0 || j(n, r, (i, a) => {
|
|
1254
1254
|
o[i] = a;
|
|
1255
1255
|
}), selections: o };
|
|
1256
|
-
}, getSelectionKeys: () => [e ?? vt].concat(
|
|
1256
|
+
}, getSelectionKeys: () => [e ?? vt].concat(n === void 0 ? [] : H(n)) }) });
|
|
1257
1257
|
}
|
|
1258
|
-
function
|
|
1258
|
+
function Xn(t) {
|
|
1259
1259
|
return !0;
|
|
1260
1260
|
}
|
|
1261
1261
|
function de(t) {
|
|
@@ -1267,19 +1267,19 @@ function be(t) {
|
|
|
1267
1267
|
function we(t) {
|
|
1268
1268
|
return typeof t == "bigint";
|
|
1269
1269
|
}
|
|
1270
|
-
const
|
|
1271
|
-
return ye(B(t, (
|
|
1272
|
-
var
|
|
1270
|
+
const Qn = V(S(Xn)), to = V(S(Xn)), no = Qn, ye = (t) => Object.assign(V(t), { startsWith: (e) => {
|
|
1271
|
+
return ye(B(t, (n = e, S((r) => be(r) && r.startsWith(n)))));
|
|
1272
|
+
var n;
|
|
1273
1273
|
}, endsWith: (e) => {
|
|
1274
|
-
return ye(B(t, (
|
|
1275
|
-
var
|
|
1276
|
-
}, minLength: (e) => ye(B(t, ((
|
|
1277
|
-
return ye(B(t, (
|
|
1278
|
-
var
|
|
1274
|
+
return ye(B(t, (n = e, S((r) => be(r) && r.endsWith(n)))));
|
|
1275
|
+
var n;
|
|
1276
|
+
}, minLength: (e) => ye(B(t, ((n) => S((r) => be(r) && r.length >= n))(e))), length: (e) => ye(B(t, ((n) => S((r) => be(r) && r.length === n))(e))), maxLength: (e) => ye(B(t, ((n) => S((r) => be(r) && r.length <= n))(e))), includes: (e) => {
|
|
1277
|
+
return ye(B(t, (n = e, S((r) => be(r) && r.includes(n)))));
|
|
1278
|
+
var n;
|
|
1279
1279
|
}, regex: (e) => {
|
|
1280
|
-
return ye(B(t, (
|
|
1281
|
-
var
|
|
1282
|
-
} }),
|
|
1280
|
+
return ye(B(t, (n = e, S((r) => be(r) && !!r.match(n)))));
|
|
1281
|
+
var n;
|
|
1282
|
+
} }), an = ye(S(be)), ue = (t) => Object.assign(V(t), { between: (e, n) => ue(B(t, ((r, o) => S((i) => de(i) && r <= i && o >= i))(e, n))), lt: (e) => ue(B(t, ((n) => S((r) => de(r) && r < n))(e))), gt: (e) => ue(B(t, ((n) => S((r) => de(r) && r > n))(e))), lte: (e) => ue(B(t, ((n) => S((r) => de(r) && r <= n))(e))), gte: (e) => ue(B(t, ((n) => S((r) => de(r) && r >= n))(e))), int: () => ue(B(t, S((e) => de(e) && Number.isInteger(e)))), finite: () => ue(B(t, S((e) => de(e) && Number.isFinite(e)))), positive: () => ue(B(t, S((e) => de(e) && e > 0))), negative: () => ue(B(t, S((e) => de(e) && e < 0))) }), ro = ue(S(de)), xe = (t) => Object.assign(V(t), { between: (e, n) => xe(B(t, ((r, o) => S((i) => we(i) && r <= i && o >= i))(e, n))), lt: (e) => xe(B(t, ((n) => S((r) => we(r) && r < n))(e))), gt: (e) => xe(B(t, ((n) => S((r) => we(r) && r > n))(e))), lte: (e) => xe(B(t, ((n) => S((r) => we(r) && r <= n))(e))), gte: (e) => xe(B(t, ((n) => S((r) => we(r) && r >= n))(e))), positive: () => xe(B(t, S((e) => we(e) && e > 0))), negative: () => xe(B(t, S((e) => we(e) && e < 0))) }), oo = xe(S(we)), io = V(S(function(t) {
|
|
1283
1283
|
return typeof t == "boolean";
|
|
1284
1284
|
})), so = V(S(function(t) {
|
|
1285
1285
|
return typeof t == "symbol";
|
|
@@ -1292,77 +1292,77 @@ var co = { __proto__: null, matcher: q, optional: zt, array: function(...t) {
|
|
|
1292
1292
|
return Mt({ [q]: () => ({ match: (e) => {
|
|
1293
1293
|
if (!Array.isArray(e)) return { matched: !1 };
|
|
1294
1294
|
if (t.length === 0) return { matched: !0 };
|
|
1295
|
-
const
|
|
1296
|
-
let
|
|
1297
|
-
if (e.length === 0) return H(
|
|
1298
|
-
|
|
1299
|
-
}), { matched: !0, selections:
|
|
1295
|
+
const n = t[0];
|
|
1296
|
+
let r = {};
|
|
1297
|
+
if (e.length === 0) return H(n).forEach((i) => {
|
|
1298
|
+
r[i] = [];
|
|
1299
|
+
}), { matched: !0, selections: r };
|
|
1300
1300
|
const o = (i, a) => {
|
|
1301
|
-
|
|
1301
|
+
r[i] = (r[i] || []).concat([a]);
|
|
1302
1302
|
};
|
|
1303
|
-
return { matched: e.every((i) => j(
|
|
1303
|
+
return { matched: e.every((i) => j(n, i, o)), selections: r };
|
|
1304
1304
|
}, getSelectionKeys: () => t.length === 0 ? [] : H(t[0]) }) });
|
|
1305
1305
|
}, set: function(...t) {
|
|
1306
1306
|
return V({ [q]: () => ({ match: (e) => {
|
|
1307
1307
|
if (!(e instanceof Set)) return { matched: !1 };
|
|
1308
|
-
let
|
|
1309
|
-
if (e.size === 0) return { matched: !0, selections:
|
|
1308
|
+
let n = {};
|
|
1309
|
+
if (e.size === 0) return { matched: !0, selections: n };
|
|
1310
1310
|
if (t.length === 0) return { matched: !0 };
|
|
1311
|
-
const
|
|
1312
|
-
|
|
1311
|
+
const r = (i, a) => {
|
|
1312
|
+
n[i] = (n[i] || []).concat([a]);
|
|
1313
1313
|
}, o = t[0];
|
|
1314
|
-
return { matched:
|
|
1314
|
+
return { matched: Zr(e, (i) => j(o, i, r)), selections: n };
|
|
1315
1315
|
}, getSelectionKeys: () => t.length === 0 ? [] : H(t[0]) }) });
|
|
1316
1316
|
}, map: function(...t) {
|
|
1317
1317
|
return V({ [q]: () => ({ match: (e) => {
|
|
1318
1318
|
if (!(e instanceof Map)) return { matched: !1 };
|
|
1319
|
-
let
|
|
1320
|
-
if (e.size === 0) return { matched: !0, selections:
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1319
|
+
let n = {};
|
|
1320
|
+
if (e.size === 0) return { matched: !0, selections: n };
|
|
1321
|
+
const r = (s, l) => {
|
|
1322
|
+
n[s] = (n[s] || []).concat([l]);
|
|
1323
1323
|
};
|
|
1324
1324
|
if (t.length === 0) return { matched: !0 };
|
|
1325
1325
|
var o;
|
|
1326
1326
|
if (t.length === 1) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = t[0]) == null ? void 0 : o.toString()}`);
|
|
1327
1327
|
const [i, a] = t;
|
|
1328
|
-
return { matched:
|
|
1329
|
-
const d = j(i, l,
|
|
1328
|
+
return { matched: Yr(e, (s, l) => {
|
|
1329
|
+
const d = j(i, l, r), u = j(a, s, r);
|
|
1330
1330
|
return d && u;
|
|
1331
|
-
}), selections:
|
|
1331
|
+
}), selections: n };
|
|
1332
1332
|
}, getSelectionKeys: () => t.length === 0 ? [] : [...H(t[0]), ...H(t[1])] }) });
|
|
1333
1333
|
}, record: function(...t) {
|
|
1334
1334
|
return V({ [q]: () => ({ match: (e) => {
|
|
1335
1335
|
if (e === null || typeof e != "object" || Array.isArray(e)) return { matched: !1 };
|
|
1336
|
-
var
|
|
1337
|
-
if (t.length === 0) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(
|
|
1338
|
-
let
|
|
1336
|
+
var n;
|
|
1337
|
+
if (t.length === 0) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(n = t[0]) == null ? void 0 : n.toString()}`);
|
|
1338
|
+
let r = {};
|
|
1339
1339
|
const o = (s, l) => {
|
|
1340
|
-
|
|
1341
|
-
}, [i, a] = t.length === 1 ? [
|
|
1340
|
+
r[s] = (r[s] || []).concat([l]);
|
|
1341
|
+
}, [i, a] = t.length === 1 ? [an, t[0]] : t;
|
|
1342
1342
|
return { matched: eo(e, (s, l) => {
|
|
1343
1343
|
const d = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), u = d !== null && j(i, d, o), c = j(i, s, o), f = j(a, l, o);
|
|
1344
1344
|
return (c || u) && f;
|
|
1345
|
-
}), selections:
|
|
1345
|
+
}), selections: r };
|
|
1346
1346
|
}, getSelectionKeys: () => t.length === 0 ? [] : [...H(t[0]), ...H(t[1])] }) });
|
|
1347
|
-
}, intersection: B, union:
|
|
1347
|
+
}, intersection: B, union: qn, not: function(t) {
|
|
1348
1348
|
return V({ [q]: () => ({ match: (e) => ({ matched: !j(t, e, () => {
|
|
1349
1349
|
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
1350
|
-
}, when: S, select: qe, any:
|
|
1350
|
+
}, when: S, select: qe, any: Qn, unknown: to, _: no, string: an, number: ro, bigint: oo, boolean: io, symbol: so, nullish: ao, nonNullable: lo, instanceOf: function(t) {
|
|
1351
1351
|
return V(S(/* @__PURE__ */ (function(e) {
|
|
1352
|
-
return (
|
|
1352
|
+
return (n) => n instanceof e;
|
|
1353
1353
|
})(t)));
|
|
1354
1354
|
}, shape: function(t) {
|
|
1355
|
-
return V(S(
|
|
1355
|
+
return V(S(Jr(t)));
|
|
1356
1356
|
} };
|
|
1357
1357
|
class uo extends Error {
|
|
1358
1358
|
constructor(e) {
|
|
1359
|
-
let
|
|
1359
|
+
let n;
|
|
1360
1360
|
try {
|
|
1361
|
-
|
|
1361
|
+
n = JSON.stringify(e);
|
|
1362
1362
|
} catch {
|
|
1363
|
-
|
|
1363
|
+
n = e;
|
|
1364
1364
|
}
|
|
1365
|
-
super(`Pattern matching error: no pattern matches value ${
|
|
1365
|
+
super(`Pattern matching error: no pattern matches value ${n}`), this.input = void 0, this.input = e;
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
const Ot = { matched: !1, value: void 0 };
|
|
@@ -1370,24 +1370,24 @@ function Be(t) {
|
|
|
1370
1370
|
return new pt(t, Ot);
|
|
1371
1371
|
}
|
|
1372
1372
|
class pt {
|
|
1373
|
-
constructor(e,
|
|
1374
|
-
this.input = void 0, this.state = void 0, this.input = e, this.state =
|
|
1373
|
+
constructor(e, n) {
|
|
1374
|
+
this.input = void 0, this.state = void 0, this.input = e, this.state = n;
|
|
1375
1375
|
}
|
|
1376
1376
|
with(...e) {
|
|
1377
1377
|
if (this.state.matched) return this;
|
|
1378
|
-
const
|
|
1378
|
+
const n = e[e.length - 1], r = [e[0]];
|
|
1379
1379
|
let o;
|
|
1380
|
-
e.length === 3 && typeof e[1] == "function" ? o = e[1] : e.length > 2 &&
|
|
1380
|
+
e.length === 3 && typeof e[1] == "function" ? o = e[1] : e.length > 2 && r.push(...e.slice(1, e.length - 1));
|
|
1381
1381
|
let i = !1, a = {};
|
|
1382
1382
|
const s = (d, u) => {
|
|
1383
1383
|
i = !0, a[d] = u;
|
|
1384
|
-
}, l = !
|
|
1384
|
+
}, l = !r.some((d) => j(d, this.input, s)) || o && !o(this.input) ? Ot : { matched: !0, value: n(i ? vt in a ? a[vt] : a : this.input, this.input) };
|
|
1385
1385
|
return new pt(this.input, l);
|
|
1386
1386
|
}
|
|
1387
|
-
when(e,
|
|
1387
|
+
when(e, n) {
|
|
1388
1388
|
if (this.state.matched) return this;
|
|
1389
|
-
const
|
|
1390
|
-
return new pt(this.input,
|
|
1389
|
+
const r = !!e(this.input);
|
|
1390
|
+
return new pt(this.input, r ? { matched: !0, value: n(this.input, this.input) } : Ot);
|
|
1391
1391
|
}
|
|
1392
1392
|
otherwise(e) {
|
|
1393
1393
|
return this.state.matched ? this.state.value : e(this.input);
|
|
@@ -1421,25 +1421,25 @@ const it = {
|
|
|
1421
1421
|
ERROR: "error"
|
|
1422
1422
|
};
|
|
1423
1423
|
var $t = { exports: {} };
|
|
1424
|
-
var
|
|
1424
|
+
var ln;
|
|
1425
1425
|
function ho() {
|
|
1426
|
-
return
|
|
1426
|
+
return ln || (ln = 1, (function(t) {
|
|
1427
1427
|
(function() {
|
|
1428
1428
|
var e = {}.hasOwnProperty;
|
|
1429
|
-
function
|
|
1429
|
+
function n() {
|
|
1430
1430
|
for (var i = "", a = 0; a < arguments.length; a++) {
|
|
1431
1431
|
var s = arguments[a];
|
|
1432
|
-
s && (i = o(i,
|
|
1432
|
+
s && (i = o(i, r(s)));
|
|
1433
1433
|
}
|
|
1434
1434
|
return i;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function r(i) {
|
|
1437
1437
|
if (typeof i == "string" || typeof i == "number")
|
|
1438
1438
|
return i;
|
|
1439
1439
|
if (typeof i != "object")
|
|
1440
1440
|
return "";
|
|
1441
1441
|
if (Array.isArray(i))
|
|
1442
|
-
return
|
|
1442
|
+
return n.apply(null, i);
|
|
1443
1443
|
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
|
|
1444
1444
|
return i.toString();
|
|
1445
1445
|
var a = "";
|
|
@@ -1450,12 +1450,12 @@ function ho() {
|
|
|
1450
1450
|
function o(i, a) {
|
|
1451
1451
|
return a ? i ? i + " " + a : i + a : i;
|
|
1452
1452
|
}
|
|
1453
|
-
t.exports ? (
|
|
1453
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
1454
1454
|
})();
|
|
1455
1455
|
})($t)), $t.exports;
|
|
1456
1456
|
}
|
|
1457
1457
|
var go = ho();
|
|
1458
|
-
const ke = /* @__PURE__ */
|
|
1458
|
+
const ke = /* @__PURE__ */ Xr(go), vo = async (t) => {
|
|
1459
1459
|
if (typeof t == "string") {
|
|
1460
1460
|
if (t === "simple")
|
|
1461
1461
|
return await import("./simple-CAAgvkQC.js").then((e) => e.simpleTheme);
|
|
@@ -1464,58 +1464,58 @@ const ke = /* @__PURE__ */ Xn(go), vo = async (t) => {
|
|
|
1464
1464
|
throw new Error(`Unknown theme: ${t}`);
|
|
1465
1465
|
}
|
|
1466
1466
|
return t;
|
|
1467
|
-
}, It = (t) => typeof t == "object" && t !== null && !Array.isArray(t),
|
|
1468
|
-
for (const [
|
|
1469
|
-
const i = [...e,
|
|
1470
|
-
It(o) ?
|
|
1467
|
+
}, It = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Jn = (t, e = [], n = {}) => {
|
|
1468
|
+
for (const [r, o] of Object.entries(t)) {
|
|
1469
|
+
const i = [...e, r];
|
|
1470
|
+
It(o) ? Jn(o, i, n) : n[`--lv-${i.join("-")}`] = o;
|
|
1471
1471
|
}
|
|
1472
|
-
return
|
|
1473
|
-
}, po = (t = "auto", e = "system") => t === "light" || t === "dark" ? t : e === "system" ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e,
|
|
1474
|
-
const
|
|
1472
|
+
return n;
|
|
1473
|
+
}, po = (t = "auto", e = "system") => t === "light" || t === "dark" ? t : e === "system" ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e, Zn = (t, e) => {
|
|
1474
|
+
const n = {
|
|
1475
1475
|
...t
|
|
1476
1476
|
};
|
|
1477
|
-
for (const
|
|
1478
|
-
const o = t[
|
|
1479
|
-
r
|
|
1477
|
+
for (const r of Object.keys(e)) {
|
|
1478
|
+
const o = t[r], i = e[r];
|
|
1479
|
+
n[r] = It(o) && It(i) ? Zn(o, i) : i;
|
|
1480
1480
|
}
|
|
1481
|
-
return
|
|
1481
|
+
return n;
|
|
1482
1482
|
}, mo = async (t, e = "system") => {
|
|
1483
|
-
const
|
|
1483
|
+
const n = await vo(t.theme), r = po(t.mode, e), o = n[r];
|
|
1484
1484
|
if (!o) return "";
|
|
1485
|
-
const i =
|
|
1485
|
+
const i = n.common ? Zn(n.common, o) : o, a = Jn(i);
|
|
1486
1486
|
return Object.entries(a).map(([s, l]) => `${s}: ${l};`).join(`
|
|
1487
1487
|
`);
|
|
1488
|
-
}, lr = `@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.inset-x-0{inset-inline:0}.top-5{top:calc(var(--spacing) * 5)}.top-full{top:100%}.bottom-0{bottom:0}.left-1\\/2{left:50%}.z-10{z-index:10}.z-10000{z-index:10000}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-18{height:calc(var(--spacing) * 18)}.h-38{height:calc(var(--spacing) * 38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.min-h-32{min-height:calc(var(--spacing) * 32)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.flex-1{flex:1}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.animate-\\[bg-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out bg-in}.animate-\\[fade-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out fade-in}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.-space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -4) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -4) * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\\(--lv-control-button-secondary-border\\)>:not(:last-child)){border-color:var(--lv-control-button-secondary-border)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\(--lv-control-button-primary-border\\){border-color:var(--lv-control-button-primary-border)}.border-\\(--lv-control-button-secondary-border\\){border-color:var(--lv-control-button-secondary-border)}.border-\\(--lv-control-button-secondary-border\\,var\\(--lv-control-button-secondary-background\\)\\){border-color:var(--lv-control-button-secondary-border,var(--lv-control-button-secondary-background))}.border-\\(--lv-control-input-border\\){border-color:var(--lv-control-input-border)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-t-transparent{border-top-color:#0000}.bg-\\(--lv-body-background\\){background-color:var(--lv-body-background)}.bg-\\(--lv-card-background\\){background-color:var(--lv-card-background)}.bg-\\(--lv-control-button-primary-background\\){background-color:var(--lv-control-button-primary-background)}.bg-\\(--lv-control-button-secondary-background\\){background-color:var(--lv-control-button-secondary-background)}.bg-\\(--lv-qr-background\\){background-color:var(--lv-qr-background)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-\\[url\\(\\'data\\:image\\/svg\\+xml\\;charset\\=US-ASCII\\,\\%3Csvg\\%20xmlns\\%3D\\%22http\\%3A\\%2F\\%2Fwww\\.w3\\.org\\%2F2000\\%2Fsvg\\%22\\%20width\\%3D\\%2214\\%22\\%20height\\%3D\\%2214\\%22\\%20viewBox\\%3D\\%220\\%200\\%2024\\%2024\\%22\\%20fill\\%3D\\%22none\\%22\\%20stroke\\%3D\\%22\\%23888\\%22\\%20stroke-width\\%3D\\%222\\%22\\%3E\\%3Cpath\\%20d\\%3D\\%22M6\\%209l6\\%206\\%206-6\\%22\\%2F\\%3E\\%3C\\%2Fsvg\\%3E\\'\\)\\]{background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E)}.bg-\\[length\\:14px\\]{background-size:14px}.bg-\\[right_8px_center\\]{background-position:right 8px center}.bg-no-repeat{background-repeat:no-repeat}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.ps-1{padding-inline-start:var(--spacing)}.pt-1{padding-top:var(--spacing)}.pr-0\\.5{padding-right:calc(var(--spacing) * .5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-0\\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-start{text-align:start}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.text-\\(--lv-control-button-primary-color\\){color:var(--lv-control-button-primary-color)}.text-\\(--lv-control-button-secondary-color\\){color:var(--lv-control-button-secondary-color)}.text-\\(--lv-qr-color\\){color:var(--lv-qr-color)}.text-\\(--lv-text-muted\\){color:var(--lv-text-muted)}.text-\\(--lv-text-primary\\){color:var(--lv-text-primary)}.text-\\(--lv-text-secondary\\){color:var(--lv-text-secondary)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media(hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.first\\:rounded-t-sm:first-child{border-top-left-radius:var(--radius-sm);border-top-right-radius:var(--radius-sm)}.first\\:border-l-0:first-child{border-left-style:var(--tw-border-style);border-left-width:0}.first\\:pt-1\\.5:first-child{padding-top:calc(var(--spacing) * 1.5)}.first\\:pt-2:first-child{padding-top:calc(var(--spacing) * 2)}.last\\:rounded-b-sm:last-child{border-bottom-right-radius:var(--radius-sm);border-bottom-left-radius:var(--radius-sm)}.last\\:pb-2:last-child{padding-bottom:calc(var(--spacing) * 2)}@media(hover:hover){.hover\\:\\[background-color\\:var\\(--lv-control-button-tertiary-hoverBackground\\)\\]:hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-card-background\\):hover{background-color:var(--lv-card-background)}.hover\\:bg-\\(--lv-control-button-primary-background-hover\\):hover{background-color:var(--lv-control-button-primary-background-hover)}.hover\\:bg-\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\):hover{background-color:var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background))}.hover\\:bg-\\(--lv-control-button-secondary-background\\):hover{background-color:var(--lv-control-button-secondary-background)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background))}.hover\\:bg-\\(--lv-control-button-tertiary-hoverBackground\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground,transparent)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\(--lv-control-button-primary-background\\):focus{--tw-ring-color:var(--lv-control-button-primary-background)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:bg-\\(--lv-control-button-primary-activeBackground\\,var\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\)\\):active{background-color:var(--lv-control-button-primary-activeBackground,var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background)))}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\):active{background-color:var(--lv-control-button-secondary-activeBackground)}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\,var\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\)\\):active{background-color:var(--lv-control-button-secondary-activeBackground,var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background)))}.active\\:bg-\\(--lv-control-button-tertiary-activeBackground\\,var\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\)\\):active{background-color:var(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent))}.disabled\\:bg-\\(--lv-control-button-primary-disabledBackground\\,var\\(--lv-control-button-primary-background\\)\\):disabled{background-color:var(--lv-control-button-primary-disabledBackground,var(--lv-control-button-primary-background))}.disabled\\:bg-\\(--lv-control-button-secondary-disabledBackground\\,var\\(--lv-control-button-secondary-background\\)\\):disabled{background-color:var(--lv-control-button-secondary-disabledBackground,var(--lv-control-button-secondary-background))}.disabled\\:text-\\(--lv-control-button-primary-disabledColor\\,var\\(--lv-control-button-primary-color\\)\\):disabled{color:var(--lv-control-button-primary-disabledColor,var(--lv-control-button-primary-color))}.disabled\\:text-\\(--lv-control-button-secondary-disabledColor\\,var\\(--lv-control-button-secondary-color\\)\\):disabled{color:var(--lv-control-button-secondary-disabledColor,var(--lv-control-button-secondary-color))}.disabled\\:text-\\(--lv-control-button-tertiary-disabledColor\\,var\\(--lv-text-muted\\)\\):disabled{color:var(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))}@media(min-width:48rem){.md\\:flex{display:flex}.md\\:w-3\\/5{width:60%}.md\\:items-center{align-items:center}:where(.md\\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.md\\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}}@media(min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing) * 4)}}.ltr\\:right-5:where(:dir(ltr),[dir=ltr],[dir=ltr] *){right:calc(var(--spacing) * 5)}.ltr\\:-ml-1:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--spacing) * -1)}.ltr\\:translate-x-full:where(:dir(ltr),[dir=ltr],[dir=ltr] *){--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.ltr\\:rounded-l-none:where(:dir(ltr),[dir=ltr],[dir=ltr] *){border-top-left-radius:0;border-bottom-left-radius:0}.rtl\\:left-5:where(:dir(rtl),[dir=rtl],[dir=rtl] *){left:calc(var(--spacing) * 5)}.rtl\\:-mr-1:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--spacing) * -1)}.rtl\\:-translate-x-full:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:180deg}.rtl\\:rounded-r-none:where(:dir(rtl),[dir=rtl],[dir=rtl] *){border-top-right-radius:0;border-bottom-right-radius:0}}:root,:host{--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius);font-family:var(--lv-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")}.border{border-style:solid}@keyframes fade-in{0%{transform:translateY(-2px)scale(.95)}to{transform:translateY(0)scale(1)}}@keyframes bg-in{0%{opacity:0;-webkit-backdrop-filter:blur();backdrop-filter:blur()}to{opacity:1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}}.modal-transition__container{display:grid;position:relative}.modal-transition__layer{will-change:transform,opacity;grid-area:1/1;width:100%}.modal-transition__layer--outgoing{z-index:1;animation:.15s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{z-index:2;animation:.2s ease-out forwards modal-transition-in}[data-openlv-theme-mode=dark] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}@media(prefers-color-scheme:dark){[data-openlv-theme-mode=system] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}}@keyframes modal-transition-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes modal-transition-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}`, cr = async (t, e, r = "system") => {
|
|
1489
|
-
let
|
|
1488
|
+
}, cn = `@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.inset-x-0{inset-inline:0}.top-5{top:calc(var(--spacing) * 5)}.top-full{top:100%}.bottom-0{bottom:0}.left-1\\/2{left:50%}.z-10{z-index:10}.z-10000{z-index:10000}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-18{height:calc(var(--spacing) * 18)}.h-38{height:calc(var(--spacing) * 38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.min-h-32{min-height:calc(var(--spacing) * 32)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.flex-1{flex:1}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.animate-\\[bg-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out bg-in}.animate-\\[fade-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out fade-in}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.-space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -4) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -4) * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\\(--lv-control-button-secondary-border\\)>:not(:last-child)){border-color:var(--lv-control-button-secondary-border)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\(--lv-control-button-primary-border\\){border-color:var(--lv-control-button-primary-border)}.border-\\(--lv-control-button-secondary-border\\){border-color:var(--lv-control-button-secondary-border)}.border-\\(--lv-control-button-secondary-border\\,var\\(--lv-control-button-secondary-background\\)\\){border-color:var(--lv-control-button-secondary-border,var(--lv-control-button-secondary-background))}.border-\\(--lv-control-input-border\\){border-color:var(--lv-control-input-border)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-t-transparent{border-top-color:#0000}.bg-\\(--lv-body-background\\){background-color:var(--lv-body-background)}.bg-\\(--lv-card-background\\){background-color:var(--lv-card-background)}.bg-\\(--lv-control-button-primary-background\\){background-color:var(--lv-control-button-primary-background)}.bg-\\(--lv-control-button-secondary-background\\){background-color:var(--lv-control-button-secondary-background)}.bg-\\(--lv-qr-background\\){background-color:var(--lv-qr-background)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-\\[url\\(\\'data\\:image\\/svg\\+xml\\;charset\\=US-ASCII\\,\\%3Csvg\\%20xmlns\\%3D\\%22http\\%3A\\%2F\\%2Fwww\\.w3\\.org\\%2F2000\\%2Fsvg\\%22\\%20width\\%3D\\%2214\\%22\\%20height\\%3D\\%2214\\%22\\%20viewBox\\%3D\\%220\\%200\\%2024\\%2024\\%22\\%20fill\\%3D\\%22none\\%22\\%20stroke\\%3D\\%22\\%23888\\%22\\%20stroke-width\\%3D\\%222\\%22\\%3E\\%3Cpath\\%20d\\%3D\\%22M6\\%209l6\\%206\\%206-6\\%22\\%2F\\%3E\\%3C\\%2Fsvg\\%3E\\'\\)\\]{background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E)}.bg-\\[length\\:14px\\]{background-size:14px}.bg-\\[right_8px_center\\]{background-position:right 8px center}.bg-no-repeat{background-repeat:no-repeat}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.ps-1{padding-inline-start:var(--spacing)}.pt-1{padding-top:var(--spacing)}.pr-0\\.5{padding-right:calc(var(--spacing) * .5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-0\\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-start{text-align:start}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.text-\\(--lv-control-button-primary-color\\){color:var(--lv-control-button-primary-color)}.text-\\(--lv-control-button-secondary-color\\){color:var(--lv-control-button-secondary-color)}.text-\\(--lv-qr-color\\){color:var(--lv-qr-color)}.text-\\(--lv-text-muted\\){color:var(--lv-text-muted)}.text-\\(--lv-text-primary\\){color:var(--lv-text-primary)}.text-\\(--lv-text-secondary\\){color:var(--lv-text-secondary)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media(hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.first\\:rounded-t-sm:first-child{border-top-left-radius:var(--radius-sm);border-top-right-radius:var(--radius-sm)}.first\\:border-l-0:first-child{border-left-style:var(--tw-border-style);border-left-width:0}.first\\:pt-1\\.5:first-child{padding-top:calc(var(--spacing) * 1.5)}.first\\:pt-2:first-child{padding-top:calc(var(--spacing) * 2)}.last\\:rounded-b-sm:last-child{border-bottom-right-radius:var(--radius-sm);border-bottom-left-radius:var(--radius-sm)}.last\\:pb-2:last-child{padding-bottom:calc(var(--spacing) * 2)}@media(hover:hover){.hover\\:\\[background-color\\:var\\(--lv-control-button-tertiary-hoverBackground\\)\\]:hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-card-background\\):hover{background-color:var(--lv-card-background)}.hover\\:bg-\\(--lv-control-button-primary-background-hover\\):hover{background-color:var(--lv-control-button-primary-background-hover)}.hover\\:bg-\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\):hover{background-color:var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background))}.hover\\:bg-\\(--lv-control-button-secondary-background\\):hover{background-color:var(--lv-control-button-secondary-background)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background))}.hover\\:bg-\\(--lv-control-button-tertiary-hoverBackground\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground,transparent)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\(--lv-control-button-primary-background\\):focus{--tw-ring-color:var(--lv-control-button-primary-background)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:bg-\\(--lv-control-button-primary-activeBackground\\,var\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\)\\):active{background-color:var(--lv-control-button-primary-activeBackground,var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background)))}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\):active{background-color:var(--lv-control-button-secondary-activeBackground)}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\,var\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\)\\):active{background-color:var(--lv-control-button-secondary-activeBackground,var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background)))}.active\\:bg-\\(--lv-control-button-tertiary-activeBackground\\,var\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\)\\):active{background-color:var(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent))}.disabled\\:bg-\\(--lv-control-button-primary-disabledBackground\\,var\\(--lv-control-button-primary-background\\)\\):disabled{background-color:var(--lv-control-button-primary-disabledBackground,var(--lv-control-button-primary-background))}.disabled\\:bg-\\(--lv-control-button-secondary-disabledBackground\\,var\\(--lv-control-button-secondary-background\\)\\):disabled{background-color:var(--lv-control-button-secondary-disabledBackground,var(--lv-control-button-secondary-background))}.disabled\\:text-\\(--lv-control-button-primary-disabledColor\\,var\\(--lv-control-button-primary-color\\)\\):disabled{color:var(--lv-control-button-primary-disabledColor,var(--lv-control-button-primary-color))}.disabled\\:text-\\(--lv-control-button-secondary-disabledColor\\,var\\(--lv-control-button-secondary-color\\)\\):disabled{color:var(--lv-control-button-secondary-disabledColor,var(--lv-control-button-secondary-color))}.disabled\\:text-\\(--lv-control-button-tertiary-disabledColor\\,var\\(--lv-text-muted\\)\\):disabled{color:var(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))}@media(min-width:48rem){.md\\:flex{display:flex}.md\\:w-3\\/5{width:60%}.md\\:items-center{align-items:center}:where(.md\\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.md\\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}}@media(min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing) * 4)}}.ltr\\:right-5:where(:dir(ltr),[dir=ltr],[dir=ltr] *){right:calc(var(--spacing) * 5)}.ltr\\:-ml-1:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--spacing) * -1)}.ltr\\:translate-x-full:where(:dir(ltr),[dir=ltr],[dir=ltr] *){--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.ltr\\:rounded-l-none:where(:dir(ltr),[dir=ltr],[dir=ltr] *){border-top-left-radius:0;border-bottom-left-radius:0}.rtl\\:left-5:where(:dir(rtl),[dir=rtl],[dir=rtl] *){left:calc(var(--spacing) * 5)}.rtl\\:-mr-1:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--spacing) * -1)}.rtl\\:-translate-x-full:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:180deg}.rtl\\:rounded-r-none:where(:dir(rtl),[dir=rtl],[dir=rtl] *){border-top-right-radius:0;border-bottom-right-radius:0}}:root,:host{--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius);font-family:var(--lv-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")}.border{border-style:solid}@keyframes fade-in{0%{transform:translateY(-2px)scale(.95)}to{transform:translateY(0)scale(1)}}@keyframes bg-in{0%{opacity:0;-webkit-backdrop-filter:blur();backdrop-filter:blur()}to{opacity:1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}}.modal-transition__container{display:grid;position:relative}.modal-transition__layer{will-change:transform,opacity;grid-area:1/1;width:100%}.modal-transition__layer--outgoing{z-index:1;animation:.15s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{z-index:2;animation:.2s ease-out forwards modal-transition-in}[data-openlv-theme-mode=dark] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}@media(prefers-color-scheme:dark){[data-openlv-theme-mode=system] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}}@keyframes modal-transition-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes modal-transition-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}`, dn = async (t, e, n = "system") => {
|
|
1489
|
+
let r = t.querySelector(
|
|
1490
1490
|
"style[data-openlv-modal]"
|
|
1491
1491
|
);
|
|
1492
|
-
|
|
1492
|
+
r || (r = document.createElement("style"), r.dataset.openlvModal = "true", t.append(r));
|
|
1493
1493
|
const o = {
|
|
1494
1494
|
...e,
|
|
1495
1495
|
theme: e?.theme ?? "simple"
|
|
1496
1496
|
};
|
|
1497
1497
|
if (o) {
|
|
1498
|
-
const i = await mo(o,
|
|
1499
|
-
|
|
1498
|
+
const i = await mo(o, n);
|
|
1499
|
+
r.textContent = `:root, :host {
|
|
1500
1500
|
${i}
|
|
1501
1501
|
}
|
|
1502
|
-
` +
|
|
1502
|
+
` + cn;
|
|
1503
1503
|
} else
|
|
1504
|
-
|
|
1504
|
+
r.textContent = cn;
|
|
1505
1505
|
};
|
|
1506
|
-
class
|
|
1507
|
-
constructor(
|
|
1506
|
+
class Yn extends HTMLElement {
|
|
1507
|
+
constructor(n) {
|
|
1508
1508
|
super();
|
|
1509
1509
|
te(this, "shadow");
|
|
1510
1510
|
te(this, "renderRequested", !1);
|
|
1511
1511
|
te(this, "parameters");
|
|
1512
1512
|
te(this, "themeCleanup");
|
|
1513
1513
|
te(this, "disposeRender");
|
|
1514
|
-
this.parameters =
|
|
1514
|
+
this.parameters = n, this.shadow = this.attachShadow({
|
|
1515
1515
|
mode: "open"
|
|
1516
1516
|
});
|
|
1517
|
-
const
|
|
1518
|
-
|
|
1517
|
+
const r = n.provider.storage.getSettings()?.theme ?? "system";
|
|
1518
|
+
dn(this.shadow, n.theme, r);
|
|
1519
1519
|
}
|
|
1520
1520
|
connectedCallback() {
|
|
1521
1521
|
this.requestRender(), this.themeCleanup?.(), this.setupThemeListener();
|
|
@@ -1524,14 +1524,14 @@ class Zr extends HTMLElement {
|
|
|
1524
1524
|
this.disposeRender?.(), this.disposeRender = void 0, this.themeCleanup?.();
|
|
1525
1525
|
}
|
|
1526
1526
|
setupThemeListener() {
|
|
1527
|
-
const
|
|
1527
|
+
const n = () => {
|
|
1528
1528
|
const o = this.parameters.provider.storage.getSettings()?.theme ?? "system";
|
|
1529
|
-
|
|
1529
|
+
dn(this.shadow, this.parameters.theme, o);
|
|
1530
1530
|
};
|
|
1531
|
-
this.parameters.provider.storage.emitter.on("settings_change",
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1534
|
-
this.parameters.provider.storage.emitter.off("settings_change",
|
|
1531
|
+
this.parameters.provider.storage.emitter.on("settings_change", n);
|
|
1532
|
+
const r = globalThis.matchMedia("(prefers-color-scheme: dark)");
|
|
1533
|
+
r.addEventListener("change", n), this.themeCleanup = () => {
|
|
1534
|
+
this.parameters.provider.storage.emitter.off("settings_change", n), r.removeEventListener("change", n);
|
|
1535
1535
|
};
|
|
1536
1536
|
}
|
|
1537
1537
|
showModal() {
|
|
@@ -1546,9 +1546,9 @@ class Zr extends HTMLElement {
|
|
|
1546
1546
|
}));
|
|
1547
1547
|
}
|
|
1548
1548
|
performRender() {
|
|
1549
|
-
this.disposeRender?.(), this.disposeRender =
|
|
1550
|
-
const
|
|
1551
|
-
return v(Ro, X(() =>
|
|
1549
|
+
this.disposeRender?.(), this.disposeRender = Ir(() => {
|
|
1550
|
+
const n = this;
|
|
1551
|
+
return v(Ro, X(() => n.parameters));
|
|
1552
1552
|
}, this.shadow);
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
@@ -1604,48 +1604,48 @@ const Ut = [{
|
|
|
1604
1604
|
name: "Persian",
|
|
1605
1605
|
nativeName: "فارسی",
|
|
1606
1606
|
rtl: !0
|
|
1607
|
-
}], _o = (t) => Ut.find((
|
|
1607
|
+
}], _o = (t) => Ut.find((n) => n.tag === t)?.rtl ?? !1;
|
|
1608
1608
|
new Set(Ut.map((t) => t.tag));
|
|
1609
|
-
const
|
|
1609
|
+
const un = (t) => {
|
|
1610
1610
|
if (typeof navigator > "u") return 0;
|
|
1611
1611
|
const e = navigator.languages || [navigator.language];
|
|
1612
|
-
for (let
|
|
1613
|
-
const
|
|
1614
|
-
if (
|
|
1615
|
-
if (
|
|
1616
|
-
const [o] =
|
|
1617
|
-
if (o === t || t.startsWith(`${o}-`)) return e.length -
|
|
1612
|
+
for (let n = 0; n < e.length; n++) {
|
|
1613
|
+
const r = e[n].toLowerCase();
|
|
1614
|
+
if (r === t) return e.length - n + 1;
|
|
1615
|
+
if (r.startsWith(`${t}-`) || t.startsWith(`${r}-`)) return e.length - n;
|
|
1616
|
+
const [o] = r.split("-", 1);
|
|
1617
|
+
if (o === t || t.startsWith(`${o}-`)) return e.length - n - 0.5;
|
|
1618
1618
|
}
|
|
1619
1619
|
return 0;
|
|
1620
|
-
},
|
|
1620
|
+
}, fn = (t, e) => {
|
|
1621
1621
|
if (!t) return;
|
|
1622
|
-
const
|
|
1623
|
-
if (
|
|
1624
|
-
let
|
|
1625
|
-
for (const o of
|
|
1626
|
-
if (typeof
|
|
1627
|
-
|
|
1622
|
+
const n = e.split(".").filter(Boolean);
|
|
1623
|
+
if (n.length === 0) return;
|
|
1624
|
+
let r = t;
|
|
1625
|
+
for (const o of n) {
|
|
1626
|
+
if (typeof r != "object" || r === null) return;
|
|
1627
|
+
r = r[o];
|
|
1628
1628
|
}
|
|
1629
|
-
return
|
|
1630
|
-
},
|
|
1631
|
-
const o = e[
|
|
1632
|
-
return o === void 0 ?
|
|
1629
|
+
return r;
|
|
1630
|
+
}, hn = (t, e) => e ? t.replaceAll(/\{(\w+)\}/g, (n, r) => {
|
|
1631
|
+
const o = e[r];
|
|
1632
|
+
return o === void 0 ? n : String(o);
|
|
1633
1633
|
}) : t, No = (t) => {
|
|
1634
|
-
const e =
|
|
1634
|
+
const e = fn(t.primary, t.key);
|
|
1635
1635
|
if (typeof e == "string")
|
|
1636
|
-
return
|
|
1637
|
-
const
|
|
1638
|
-
return typeof
|
|
1639
|
-
},
|
|
1636
|
+
return hn(e, t.params);
|
|
1637
|
+
const n = fn(t.fallback, t.key);
|
|
1638
|
+
return typeof n == "string" ? hn(n, t.params) : t.key;
|
|
1639
|
+
}, er = In(void 0), Po = async (t) => Be(t).with("en", () => Promise.resolve(void 0)).with("nl", async () => import("./nl-BRV9i3nM.js").then((e) => e.default)).with("es", async () => import("./es-C2sG0TfH.js").then((e) => e.default)).with("sv", async () => import("./sv-CEyo-XBk.js").then((e) => e.default)).with("fr", async () => import("./fr-BRQDr1rj.js").then((e) => e.default)).with("zh-cn", async () => import("./zh-cn-DJpfZdjA.js").then((e) => e.default)).with("ar", async () => import("./ar-CyZSQ56p.js").then((e) => e.default)).with("he", async () => import("./he-NFIsHMZP.js").then((e) => e.default)).with("fa", async () => import("./fa-_bXJQdwj.js").then((e) => e.default)).exhaustive(), Bo = (t) => {
|
|
1640
1640
|
const {
|
|
1641
1641
|
provider: e
|
|
1642
|
-
} = Me(),
|
|
1642
|
+
} = Me(), n = e.storage.getSettings().language, [r, o] = D(n ?? "en"), [i, a] = D(void 0), [s, l] = D(!1);
|
|
1643
1643
|
ie(() => {
|
|
1644
1644
|
let h = !1;
|
|
1645
1645
|
(async () => {
|
|
1646
1646
|
l(!0);
|
|
1647
1647
|
try {
|
|
1648
|
-
const b = await Po(
|
|
1648
|
+
const b = await Po(r());
|
|
1649
1649
|
if (h) return;
|
|
1650
1650
|
a(b);
|
|
1651
1651
|
} finally {
|
|
@@ -1664,8 +1664,8 @@ const dr = (t) => {
|
|
|
1664
1664
|
}), p = b.split(`
|
|
1665
1665
|
`);
|
|
1666
1666
|
return p.length <= 1 ? b : Re(() => p.map((C, k) => [C, Re(() => Re(() => k < p.length - 1)() ? Eo() : null)]));
|
|
1667
|
-
}, u = T(() => _o(
|
|
1668
|
-
languageTag:
|
|
1667
|
+
}, u = T(() => _o(r())), f = {
|
|
1668
|
+
languageTag: r,
|
|
1669
1669
|
setLanguageTag: (h) => {
|
|
1670
1670
|
o(h);
|
|
1671
1671
|
},
|
|
@@ -1673,26 +1673,26 @@ const dr = (t) => {
|
|
|
1673
1673
|
isRtl: u,
|
|
1674
1674
|
t: d
|
|
1675
1675
|
};
|
|
1676
|
-
return v(
|
|
1676
|
+
return v(er.Provider, {
|
|
1677
1677
|
value: f,
|
|
1678
1678
|
get children() {
|
|
1679
1679
|
return t.children;
|
|
1680
1680
|
}
|
|
1681
1681
|
});
|
|
1682
1682
|
}, Q = () => {
|
|
1683
|
-
const t =
|
|
1683
|
+
const t = Ln(er);
|
|
1684
1684
|
if (!t)
|
|
1685
1685
|
throw new Error("TranslationProvider not found");
|
|
1686
1686
|
return t;
|
|
1687
|
-
},
|
|
1687
|
+
}, tr = In(void 0), Ro = (t) => {
|
|
1688
1688
|
const {
|
|
1689
1689
|
provider: e,
|
|
1690
|
-
theme:
|
|
1690
|
+
theme: n
|
|
1691
1691
|
} = t;
|
|
1692
|
-
return v(
|
|
1692
|
+
return v(tr.Provider, {
|
|
1693
1693
|
value: {
|
|
1694
1694
|
provider: e,
|
|
1695
|
-
themeConfig:
|
|
1695
|
+
themeConfig: n
|
|
1696
1696
|
},
|
|
1697
1697
|
get children() {
|
|
1698
1698
|
return v(Bo, {
|
|
@@ -1707,14 +1707,14 @@ const dr = (t) => {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
});
|
|
1709
1709
|
}, Me = () => {
|
|
1710
|
-
const t =
|
|
1710
|
+
const t = Ln(tr);
|
|
1711
1711
|
if (!t) throw new Error("Modal context not found");
|
|
1712
1712
|
return t;
|
|
1713
1713
|
}, Ye = () => {
|
|
1714
|
-
const { provider: t } = Me(), e = T(() => t.getSession(), void 0, { name: "session" }), [
|
|
1715
|
-
console.log("session status",
|
|
1714
|
+
const { provider: t } = Me(), e = T(() => t.getSession(), void 0, { name: "session" }), [n, r] = D(e()?.getState());
|
|
1715
|
+
console.log("session status", n());
|
|
1716
1716
|
const o = (s) => {
|
|
1717
|
-
console.log("session state change", s),
|
|
1717
|
+
console.log("session state change", s), r(s);
|
|
1718
1718
|
};
|
|
1719
1719
|
Vt(() => {
|
|
1720
1720
|
e()?.emitter.on("state_change", o);
|
|
@@ -1725,20 +1725,20 @@ const dr = (t) => {
|
|
|
1725
1725
|
return {
|
|
1726
1726
|
uri: T(() => {
|
|
1727
1727
|
const s = i();
|
|
1728
|
-
return s ?
|
|
1728
|
+
return s ? qr(s) : void 0;
|
|
1729
1729
|
}),
|
|
1730
|
-
status:
|
|
1730
|
+
status: n
|
|
1731
1731
|
};
|
|
1732
1732
|
}, Mo = () => {
|
|
1733
1733
|
const { provider: t } = Me();
|
|
1734
1734
|
return {
|
|
1735
1735
|
start: () => {
|
|
1736
|
-
const e = t.storage.getSettings(),
|
|
1737
|
-
if (!
|
|
1736
|
+
const e = t.storage.getSettings(), n = e?.signaling?.p, r = n ? e?.signaling?.s?.[n] : void 0;
|
|
1737
|
+
if (!n || !r)
|
|
1738
1738
|
throw new Error("Invalid protocol or server");
|
|
1739
1739
|
return t.createSession({
|
|
1740
|
-
p:
|
|
1741
|
-
s:
|
|
1740
|
+
p: n,
|
|
1741
|
+
s: r
|
|
1742
1742
|
});
|
|
1743
1743
|
}
|
|
1744
1744
|
};
|
|
@@ -1747,17 +1747,17 @@ var Oo = /* @__PURE__ */ x('<div class="rounded-md bg-(--lv-control-button-secon
|
|
|
1747
1747
|
const Lt = (t) => {
|
|
1748
1748
|
const {
|
|
1749
1749
|
uri: e,
|
|
1750
|
-
status:
|
|
1750
|
+
status: n
|
|
1751
1751
|
} = Ye();
|
|
1752
1752
|
return console.error("Unknown state:", {
|
|
1753
1753
|
state: t.state
|
|
1754
1754
|
}), (() => {
|
|
1755
|
-
var
|
|
1755
|
+
var r = Oo(), o = r.firstChild;
|
|
1756
1756
|
o.firstChild;
|
|
1757
1757
|
var i = o.nextSibling;
|
|
1758
1758
|
i.firstChild;
|
|
1759
1759
|
var a = i.nextSibling;
|
|
1760
|
-
return a.firstChild, m(o, () => JSON.stringify(t.state), null), m(i, e, null), m(a, () => JSON.stringify(
|
|
1760
|
+
return a.firstChild, m(o, () => JSON.stringify(t.state), null), m(i, e, null), m(a, () => JSON.stringify(n()), null), r;
|
|
1761
1761
|
})();
|
|
1762
1762
|
};
|
|
1763
1763
|
const ze = { newline: 10, reset: 27 };
|
|
@@ -1772,9 +1772,9 @@ function Lo(t) {
|
|
|
1772
1772
|
function _e(t, e) {
|
|
1773
1773
|
return t.toString(2).padStart(e, "0");
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1776
|
-
const
|
|
1777
|
-
return
|
|
1775
|
+
function gn(t, e) {
|
|
1776
|
+
const n = t % e;
|
|
1777
|
+
return n >= 0 ? n : e + n;
|
|
1778
1778
|
}
|
|
1779
1779
|
function fe(t, e) {
|
|
1780
1780
|
return new Array(t).fill(e);
|
|
@@ -1782,69 +1782,69 @@ function fe(t, e) {
|
|
|
1782
1782
|
function Tt(t) {
|
|
1783
1783
|
return t = t - (t >>> 1 & 1431655765), t = (t & 858993459) + (t >>> 2 & 858993459), (t + (t >>> 4) & 252645135) * 16843009 >>> 24;
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1786
|
-
let e = 0,
|
|
1785
|
+
function vn(t) {
|
|
1786
|
+
let e = 0, n = 0;
|
|
1787
1787
|
for (const i of t)
|
|
1788
|
-
e = Math.max(e, i.length),
|
|
1789
|
-
const
|
|
1788
|
+
e = Math.max(e, i.length), n += i.length;
|
|
1789
|
+
const r = new Uint8Array(n);
|
|
1790
1790
|
let o = 0;
|
|
1791
1791
|
for (let i = 0; i < e; i++)
|
|
1792
1792
|
for (const a of t)
|
|
1793
|
-
i < a.length && (
|
|
1794
|
-
return
|
|
1793
|
+
i < a.length && (r[o++] = a[i]);
|
|
1794
|
+
return r;
|
|
1795
1795
|
}
|
|
1796
1796
|
function jo() {
|
|
1797
1797
|
let t, e = 1 / 0;
|
|
1798
1798
|
return {
|
|
1799
|
-
add(
|
|
1800
|
-
|
|
1799
|
+
add(n, r) {
|
|
1800
|
+
n >= e || (t = r, e = n);
|
|
1801
1801
|
},
|
|
1802
1802
|
get: () => t,
|
|
1803
1803
|
score: () => e
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function pn(t) {
|
|
1807
1807
|
return Object.freeze({
|
|
1808
1808
|
has: (e) => t.includes(e),
|
|
1809
1809
|
decode: (e) => {
|
|
1810
1810
|
if (!Array.isArray(e) || e.length && typeof e[0] != "string")
|
|
1811
1811
|
throw new Error("alphabet.decode input should be array of strings");
|
|
1812
|
-
return e.map((
|
|
1813
|
-
if (typeof
|
|
1814
|
-
throw new Error(`alphabet.decode: not string element=${
|
|
1815
|
-
const
|
|
1816
|
-
if (
|
|
1817
|
-
throw new Error(`Unknown letter: "${
|
|
1818
|
-
return
|
|
1812
|
+
return e.map((n) => {
|
|
1813
|
+
if (typeof n != "string")
|
|
1814
|
+
throw new Error(`alphabet.decode: not string element=${n}`);
|
|
1815
|
+
const r = t.indexOf(n);
|
|
1816
|
+
if (r === -1)
|
|
1817
|
+
throw new Error(`Unknown letter: "${n}". Allowed: ${t}`);
|
|
1818
|
+
return r;
|
|
1819
1819
|
});
|
|
1820
1820
|
},
|
|
1821
1821
|
encode: (e) => {
|
|
1822
1822
|
if (!Array.isArray(e) || e.length && typeof e[0] != "number")
|
|
1823
1823
|
throw new Error("alphabet.encode input should be an array of numbers");
|
|
1824
|
-
return e.map((
|
|
1825
|
-
if (Io(
|
|
1826
|
-
throw new Error(`Digit index outside alphabet: ${
|
|
1827
|
-
return t[
|
|
1824
|
+
return e.map((n) => {
|
|
1825
|
+
if (Io(n), n < 0 || n >= t.length)
|
|
1826
|
+
throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${t.length})`);
|
|
1827
|
+
return t[n];
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1832
|
+
function mn(t) {
|
|
1833
1833
|
if (t.length !== 32)
|
|
1834
1834
|
throw new Error("expects 32 element matrix");
|
|
1835
1835
|
const e = [1431655765, 858993459, 252645135, 16711935, 65535];
|
|
1836
|
-
for (let
|
|
1837
|
-
const
|
|
1836
|
+
for (let n = 0; n < 5; n++) {
|
|
1837
|
+
const r = e[n] >>> 0, o = 1 << n, i = o << 1;
|
|
1838
1838
|
for (let a = 0; a < 32; a += i)
|
|
1839
1839
|
for (let s = 0; s < o; s++) {
|
|
1840
|
-
const l = a + s, d = l + o, u = t[l] >>> 0, c = t[d] >>> 0, f = (u >>> o ^ c) &
|
|
1840
|
+
const l = a + s, d = l + o, u = t[l] >>> 0, c = t[d] >>> 0, f = (u >>> o ^ c) & r;
|
|
1841
1841
|
t[l] = (u ^ f << o) >>> 0, t[d] = (c ^ f) >>> 0;
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
1845
|
const Ue = (t) => 1 << (t & 31) >>> 0, Ne = (t, e) => e === 0 ? 0 : e === 32 ? 4294967295 : (1 << e) - 1 << t >>> 0;
|
|
1846
1846
|
class K {
|
|
1847
|
-
constructor(e,
|
|
1847
|
+
constructor(e, n) {
|
|
1848
1848
|
// Two bitsets:
|
|
1849
1849
|
// defined=0 -> undefined
|
|
1850
1850
|
// defined=1,value=0 -> false
|
|
@@ -1856,16 +1856,16 @@ class K {
|
|
|
1856
1856
|
te(this, "fullWords");
|
|
1857
1857
|
te(this, "height");
|
|
1858
1858
|
te(this, "width");
|
|
1859
|
-
const { height:
|
|
1860
|
-
if (!Number.isSafeInteger(
|
|
1861
|
-
throw new Error(`Bitmap: invalid height=${
|
|
1859
|
+
const { height: r, width: o } = K.size(e);
|
|
1860
|
+
if (!Number.isSafeInteger(r) || r <= 0)
|
|
1861
|
+
throw new Error(`Bitmap: invalid height=${r}, expected positive safe integer dimension`);
|
|
1862
1862
|
if (!Number.isSafeInteger(o) || o <= 0)
|
|
1863
1863
|
throw new Error(`Bitmap: invalid width=${o}, expected positive safe integer dimension`);
|
|
1864
|
-
if (this.height =
|
|
1865
|
-
if (
|
|
1866
|
-
throw new Error(`Bitmap: data height mismatch: exp=${
|
|
1867
|
-
for (let i = 0; i <
|
|
1868
|
-
const a =
|
|
1864
|
+
if (this.height = r, this.width = o, this.tailMask = Ne(0, o & 31 || 32), this.words = Math.ceil(o / 32) | 0, this.fullWords = Math.floor(o / 32) | 0, this.value = new Uint32Array(this.words * r), this.defined = new Uint32Array(this.value.length), n) {
|
|
1865
|
+
if (n.length !== r)
|
|
1866
|
+
throw new Error(`Bitmap: data height mismatch: exp=${r} got=${n.length}`);
|
|
1867
|
+
for (let i = 0; i < r; i++) {
|
|
1868
|
+
const a = n[i];
|
|
1869
1869
|
if (!a || a.length !== o)
|
|
1870
1870
|
throw new Error(`Bitmap: data width mismatch at y=${i}: exp=${o} got=${a?.length}`);
|
|
1871
1871
|
for (let s = 0; s < o; s++)
|
|
@@ -1873,22 +1873,22 @@ class K {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
|
-
static size(e,
|
|
1876
|
+
static size(e, n) {
|
|
1877
1877
|
if (typeof e == "number" && (e = { height: e, width: e }), !Number.isSafeInteger(e.height) && e.height !== 1 / 0)
|
|
1878
1878
|
throw new Error(`Bitmap: invalid height=${e.height} (${typeof e.height})`);
|
|
1879
1879
|
if (!Number.isSafeInteger(e.width) && e.width !== 1 / 0)
|
|
1880
1880
|
throw new Error(`Bitmap: invalid width=${e.width} (${typeof e.width})`);
|
|
1881
|
-
return
|
|
1882
|
-
width: Math.min(e.width,
|
|
1883
|
-
height: Math.min(e.height,
|
|
1881
|
+
return n !== void 0 && (e = {
|
|
1882
|
+
width: Math.min(e.width, n.width),
|
|
1883
|
+
height: Math.min(e.height, n.height)
|
|
1884
1884
|
}), e;
|
|
1885
1885
|
}
|
|
1886
1886
|
static fromString(e) {
|
|
1887
1887
|
e = e.replace(/^\n+/g, "").replace(/\n+$/g, "");
|
|
1888
|
-
const
|
|
1888
|
+
const n = e.split(String.fromCharCode(ze.newline)), r = n.length;
|
|
1889
1889
|
let o;
|
|
1890
1890
|
const i = [];
|
|
1891
|
-
for (const a of
|
|
1891
|
+
for (const a of n) {
|
|
1892
1892
|
const s = a.split("").map((l) => {
|
|
1893
1893
|
if (l === "X")
|
|
1894
1894
|
return !0;
|
|
@@ -1901,7 +1901,7 @@ class K {
|
|
|
1901
1901
|
throw new Error(`Bitmap.fromString different row sizes: width=${o} cur=${s.length}`);
|
|
1902
1902
|
o = s.length, i.push(s);
|
|
1903
1903
|
}
|
|
1904
|
-
return o === void 0 && (o = 0), new K({ height:
|
|
1904
|
+
return o === void 0 && (o = 0), new K({ height: r, width: o }, i);
|
|
1905
1905
|
}
|
|
1906
1906
|
point(e) {
|
|
1907
1907
|
return this.get(e.x, e.y);
|
|
@@ -1913,47 +1913,47 @@ class K {
|
|
|
1913
1913
|
size(e) {
|
|
1914
1914
|
if (!e)
|
|
1915
1915
|
return { height: this.height, width: this.width };
|
|
1916
|
-
const { x:
|
|
1917
|
-
return { height: this.height -
|
|
1916
|
+
const { x: n, y: r } = this.xy(e);
|
|
1917
|
+
return { height: this.height - r, width: this.width - n };
|
|
1918
1918
|
}
|
|
1919
1919
|
xy(e) {
|
|
1920
1920
|
if (typeof e == "number" && (e = { x: e, y: e }), !Number.isSafeInteger(e.x))
|
|
1921
1921
|
throw new Error(`Bitmap: invalid x=${e.x}`);
|
|
1922
1922
|
if (!Number.isSafeInteger(e.y))
|
|
1923
1923
|
throw new Error(`Bitmap: invalid y=${e.y}`);
|
|
1924
|
-
return e.x =
|
|
1924
|
+
return e.x = gn(e.x, this.width), e.y = gn(e.y, this.height), e;
|
|
1925
1925
|
}
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Return pixel bit index
|
|
1928
1928
|
*/
|
|
1929
|
-
wordIndex(e,
|
|
1930
|
-
return
|
|
1929
|
+
wordIndex(e, n) {
|
|
1930
|
+
return n * this.words + (e >>> 5);
|
|
1931
1931
|
}
|
|
1932
|
-
bitIndex(e,
|
|
1933
|
-
return { word: this.wordIndex(e,
|
|
1932
|
+
bitIndex(e, n) {
|
|
1933
|
+
return { word: this.wordIndex(e, n), bit: e & 31 };
|
|
1934
1934
|
}
|
|
1935
|
-
isDefined(e,
|
|
1936
|
-
const
|
|
1937
|
-
return (this.defined[
|
|
1935
|
+
isDefined(e, n) {
|
|
1936
|
+
const r = this.wordIndex(e, n), o = Ue(e);
|
|
1937
|
+
return (this.defined[r] & o) !== 0;
|
|
1938
1938
|
}
|
|
1939
|
-
get(e,
|
|
1940
|
-
const
|
|
1941
|
-
return (this.value[
|
|
1939
|
+
get(e, n) {
|
|
1940
|
+
const r = this.wordIndex(e, n), o = Ue(e);
|
|
1941
|
+
return (this.value[r] & o) !== 0;
|
|
1942
1942
|
}
|
|
1943
|
-
maskWord(e,
|
|
1943
|
+
maskWord(e, n, r) {
|
|
1944
1944
|
const { defined: o, value: i } = this;
|
|
1945
|
-
o[e] |=
|
|
1945
|
+
o[e] |= n, i[e] = i[e] & ~n | -r & n;
|
|
1946
1946
|
}
|
|
1947
|
-
set(e,
|
|
1948
|
-
|
|
1947
|
+
set(e, n, r) {
|
|
1948
|
+
r !== void 0 && this.maskWord(this.wordIndex(e, n), Ue(e), r);
|
|
1949
1949
|
}
|
|
1950
1950
|
// word-span fill for constant values (fast path)
|
|
1951
|
-
fillRectConst(e,
|
|
1952
|
-
if (
|
|
1951
|
+
fillRectConst(e, n, r, o, i) {
|
|
1952
|
+
if (r <= 0 || o <= 0 || i === void 0)
|
|
1953
1953
|
return;
|
|
1954
|
-
const { value: a, defined: s, words: l } = this, d = e >>> 5, u = e +
|
|
1954
|
+
const { value: a, defined: s, words: l } = this, d = e >>> 5, u = e + r - 1 >>> 5, c = e & 31, f = e + r - 1 & 31;
|
|
1955
1955
|
for (let h = 0; h < o; h++) {
|
|
1956
|
-
const g = (
|
|
1956
|
+
const g = (n + h) * l;
|
|
1957
1957
|
if (d === u) {
|
|
1958
1958
|
const b = Ne(c, f - c + 1);
|
|
1959
1959
|
this.maskWord(g + d, b, i);
|
|
@@ -1965,91 +1965,91 @@ class K {
|
|
|
1965
1965
|
this.maskWord(g + u, Ne(0, f + 1), i);
|
|
1966
1966
|
}
|
|
1967
1967
|
}
|
|
1968
|
-
rectWords(e,
|
|
1968
|
+
rectWords(e, n, r, o, i) {
|
|
1969
1969
|
for (let a = 0; a < o; a++) {
|
|
1970
|
-
const s =
|
|
1971
|
-
for (let l = 0; l <
|
|
1972
|
-
const d = e + l, { bit: u, word: c } = this.bitIndex(d, s), f = Math.min(32 - u,
|
|
1970
|
+
const s = n + a;
|
|
1971
|
+
for (let l = 0; l < r; ) {
|
|
1972
|
+
const d = e + l, { bit: u, word: c } = this.bitIndex(d, s), f = Math.min(32 - u, r - l);
|
|
1973
1973
|
i(c, d, l, a, f), l += f;
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
// Basically every operation can be represented as rect
|
|
1978
|
-
rect(e,
|
|
1979
|
-
const { x: o, y: i } = this.xy(e), { height: a, width: s } = K.size(
|
|
1980
|
-
if (typeof
|
|
1981
|
-
return this.fillRectConst(o, i, s, a,
|
|
1978
|
+
rect(e, n, r) {
|
|
1979
|
+
const { x: o, y: i } = this.xy(e), { height: a, width: s } = K.size(n, this.size({ x: o, y: i }));
|
|
1980
|
+
if (typeof r != "function")
|
|
1981
|
+
return this.fillRectConst(o, i, s, a, r), this;
|
|
1982
1982
|
const { defined: l, value: d } = this;
|
|
1983
1983
|
return this.rectWords(o, i, s, a, (u, c, f, h, g) => {
|
|
1984
1984
|
let b = 0, p = d[u];
|
|
1985
1985
|
for (let C = 0; C < g; C++) {
|
|
1986
|
-
const k = Ue(c + C), y =
|
|
1986
|
+
const k = Ue(c + C), y = r({ x: f + C, y: h }, (p & k) !== 0);
|
|
1987
1987
|
y !== void 0 && (b |= k, p = p & ~k | -y & k);
|
|
1988
1988
|
}
|
|
1989
1989
|
l[u] |= b, d[u] = p;
|
|
1990
1990
|
}), this;
|
|
1991
1991
|
}
|
|
1992
1992
|
// returns rectangular part of bitmap
|
|
1993
|
-
rectRead(e,
|
|
1994
|
-
const { x: o, y: i } = this.xy(e), { height: a, width: s } = K.size(
|
|
1993
|
+
rectRead(e, n, r) {
|
|
1994
|
+
const { x: o, y: i } = this.xy(e), { height: a, width: s } = K.size(n, this.size({ x: o, y: i })), { value: l } = this;
|
|
1995
1995
|
return this.rectWords(o, i, s, a, (d, u, c, f, h) => {
|
|
1996
1996
|
const g = l[d];
|
|
1997
1997
|
for (let b = 0; b < h; b++) {
|
|
1998
1998
|
const p = Ue(u + b);
|
|
1999
|
-
|
|
1999
|
+
r({ x: c + b, y: f }, (g & p) !== 0);
|
|
2000
2000
|
}
|
|
2001
2001
|
}), this;
|
|
2002
2002
|
}
|
|
2003
2003
|
// Horizontal & vertical lines
|
|
2004
|
-
hLine(e,
|
|
2005
|
-
return this.rect(e, { width:
|
|
2004
|
+
hLine(e, n, r) {
|
|
2005
|
+
return this.rect(e, { width: n, height: 1 }, r);
|
|
2006
2006
|
}
|
|
2007
|
-
vLine(e,
|
|
2008
|
-
return this.rect(e, { width: 1, height:
|
|
2007
|
+
vLine(e, n, r) {
|
|
2008
|
+
return this.rect(e, { width: 1, height: n }, r);
|
|
2009
2009
|
}
|
|
2010
2010
|
// add border
|
|
2011
|
-
border(e = 2,
|
|
2011
|
+
border(e = 2, n) {
|
|
2012
2012
|
if (!Number.isSafeInteger(e) || e <= 0)
|
|
2013
2013
|
throw new Error(`Bitmap.border: invalid size=${e}`);
|
|
2014
|
-
const
|
|
2015
|
-
return i.rect(0, 1 / 0,
|
|
2014
|
+
const r = this.height + 2 * e, o = this.width + 2 * e, i = new K({ height: r, width: o });
|
|
2015
|
+
return i.rect(0, 1 / 0, n), i.embed({ x: e, y: e }, this), i;
|
|
2016
2016
|
}
|
|
2017
2017
|
// Embed another bitmap on coordinates
|
|
2018
|
-
embed(e,
|
|
2019
|
-
const { x:
|
|
2018
|
+
embed(e, n) {
|
|
2019
|
+
const { x: r, y: o } = this.xy(e), { height: i, width: a } = K.size(n.size(), this.size({ x: r, y: o }));
|
|
2020
2020
|
if (a <= 0 || i <= 0)
|
|
2021
2021
|
return this;
|
|
2022
|
-
const { value: s, defined: l } = this, { words: d, value: u } =
|
|
2022
|
+
const { value: s, defined: l } = this, { words: d, value: u } = n;
|
|
2023
2023
|
for (let c = 0; c < i; c++) {
|
|
2024
2024
|
const f = c * d;
|
|
2025
2025
|
for (let h = 0; h < a; ) {
|
|
2026
|
-
const g =
|
|
2026
|
+
const g = r + h, { word: b, bit: p } = this.bitIndex(g, o + c), { word: C, bit: k } = n.bitIndex(h, c), y = Math.min(32 - p, a - h), F = u[C], _ = k && C + 1 < f + d ? u[C + 1] : 0, pe = k ? (F >>> k | _ << 32 - k) >>> 0 : F, he = Ne(p, y), De = (pe & Ne(0, y)) << p >>> 0;
|
|
2027
2027
|
l[b] |= he, s[b] = s[b] & ~he | De, h += y;
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
2030
|
return this;
|
|
2031
2031
|
}
|
|
2032
2032
|
// returns rectangular part of bitmap
|
|
2033
|
-
rectSlice(e,
|
|
2034
|
-
const { x:
|
|
2035
|
-
return this.rectRead({ x:
|
|
2036
|
-
this.isDefined(
|
|
2033
|
+
rectSlice(e, n = this.size()) {
|
|
2034
|
+
const { x: r, y: o } = this.xy(e), { height: i, width: a } = K.size(n, this.size({ x: r, y: o })), s = new K({ height: i, width: a });
|
|
2035
|
+
return this.rectRead({ x: r, y: o }, { height: i, width: a }, (l, d) => {
|
|
2036
|
+
this.isDefined(r + l.x, o + l.y) && s.set(l.x, l.y, d);
|
|
2037
2037
|
}), s;
|
|
2038
2038
|
}
|
|
2039
2039
|
// Change shape, replace rows with columns (data[y][x] -> data[x][y])
|
|
2040
2040
|
transpose() {
|
|
2041
|
-
const { height: e, width:
|
|
2041
|
+
const { height: e, width: n, value: r, defined: o, words: i } = this, a = new K({ height: n, width: e }), { words: s, value: l, defined: d, tailMask: u } = a, c = new Uint32Array(32), f = new Uint32Array(32);
|
|
2042
2042
|
for (let h = 0; h < e; h += 32)
|
|
2043
2043
|
for (let g = 0; g < i; g++) {
|
|
2044
2044
|
const b = Math.min(32, e - h);
|
|
2045
2045
|
for (let p = 0; p < b; p++) {
|
|
2046
2046
|
const C = this.wordIndex(32 * g, h + p);
|
|
2047
|
-
c[p] =
|
|
2047
|
+
c[p] = r[C], f[p] = o[C];
|
|
2048
2048
|
}
|
|
2049
|
-
c.fill(0, b), f.fill(0, b),
|
|
2049
|
+
c.fill(0, b), f.fill(0, b), mn(c), mn(f);
|
|
2050
2050
|
for (let p = 0; p < 32; p++) {
|
|
2051
2051
|
const C = g * 32 + p;
|
|
2052
|
-
if (C >=
|
|
2052
|
+
if (C >= n)
|
|
2053
2053
|
break;
|
|
2054
2054
|
const k = a.wordIndex(h, C), y = h >>> 5 === s - 1 ? u : 4294967295;
|
|
2055
2055
|
l[k] = c[p] & y, d[k] = f[p] & y;
|
|
@@ -2060,16 +2060,16 @@ class K {
|
|
|
2060
2060
|
// black <-> white (inplace)
|
|
2061
2061
|
negate() {
|
|
2062
2062
|
const e = this.defined.length;
|
|
2063
|
-
for (let
|
|
2064
|
-
this.value[
|
|
2063
|
+
for (let n = 0; n < e; n++)
|
|
2064
|
+
this.value[n] = ~this.value[n], this.defined[n] = 4294967295;
|
|
2065
2065
|
return this;
|
|
2066
2066
|
}
|
|
2067
2067
|
// Each pixel size is multiplied by factor
|
|
2068
2068
|
scale(e) {
|
|
2069
2069
|
if (!Number.isSafeInteger(e) || e > 1024)
|
|
2070
2070
|
throw new Error(`invalid scale factor: ${e}`);
|
|
2071
|
-
const { height:
|
|
2072
|
-
return new K({ height: e *
|
|
2071
|
+
const { height: n, width: r } = this;
|
|
2072
|
+
return new K({ height: e * n, width: e * r }).rect({ x: 0, y: 0 }, 1 / 0, ({ x: i, y: a }) => this.get(i / e | 0, a / e | 0));
|
|
2073
2073
|
}
|
|
2074
2074
|
clone() {
|
|
2075
2075
|
const e = new K(this.size());
|
|
@@ -2077,21 +2077,21 @@ class K {
|
|
|
2077
2077
|
}
|
|
2078
2078
|
// Ensure that there is no undefined values left
|
|
2079
2079
|
assertDrawn() {
|
|
2080
|
-
const { height: e, width:
|
|
2081
|
-
if (!(!e || !
|
|
2080
|
+
const { height: e, width: n, defined: r, tailMask: o, fullWords: i, words: a } = this;
|
|
2081
|
+
if (!(!e || !n))
|
|
2082
2082
|
for (let s = 0; s < e; s++) {
|
|
2083
2083
|
const l = s * a;
|
|
2084
2084
|
for (let d = 0; d < i; d++)
|
|
2085
|
-
if (
|
|
2085
|
+
if (r[l + d] !== 4294967295)
|
|
2086
2086
|
throw new Error("Invalid color type=undefined");
|
|
2087
|
-
if (a !== i && (
|
|
2087
|
+
if (a !== i && (r[l + i] & o) !== o)
|
|
2088
2088
|
throw new Error("Invalid color type=undefined");
|
|
2089
2089
|
}
|
|
2090
2090
|
}
|
|
2091
|
-
countPatternInRow(e,
|
|
2092
|
-
if (!Number.isSafeInteger(
|
|
2091
|
+
countPatternInRow(e, n, ...r) {
|
|
2092
|
+
if (!Number.isSafeInteger(n) || n <= 0 || n >= 32)
|
|
2093
2093
|
throw new Error("wrong patternLen");
|
|
2094
|
-
const o = (1 <<
|
|
2094
|
+
const o = (1 << n) - 1, { height: i, width: a, value: s, words: l } = this;
|
|
2095
2095
|
if (!Number.isSafeInteger(e) || e < 0 || e >= i)
|
|
2096
2096
|
return 0;
|
|
2097
2097
|
let d = 0;
|
|
@@ -2099,8 +2099,8 @@ class K {
|
|
|
2099
2099
|
for (let c = 0, f = 0; c < l; c++) {
|
|
2100
2100
|
const h = s[u + c], g = c === l - 1 && a & 31 || 32;
|
|
2101
2101
|
for (let b = 0; b < g; b++)
|
|
2102
|
-
if (f = (f << 1 | h >>> b & 1) & o, !(c * 32 + b + 1 <
|
|
2103
|
-
for (const p of
|
|
2102
|
+
if (f = (f << 1 | h >>> b & 1) & o, !(c * 32 + b + 1 < n)) {
|
|
2103
|
+
for (const p of r)
|
|
2104
2104
|
if (f === p) {
|
|
2105
2105
|
d++;
|
|
2106
2106
|
break;
|
|
@@ -2109,9 +2109,9 @@ class K {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
return d;
|
|
2111
2111
|
}
|
|
2112
|
-
getRuns(e,
|
|
2113
|
-
const { height:
|
|
2114
|
-
if (o === 0 || !Number.isSafeInteger(e) || e < 0 || e >=
|
|
2112
|
+
getRuns(e, n) {
|
|
2113
|
+
const { height: r, width: o, value: i, words: a } = this;
|
|
2114
|
+
if (o === 0 || !Number.isSafeInteger(e) || e < 0 || e >= r)
|
|
2115
2115
|
return;
|
|
2116
2116
|
let s = 0, l;
|
|
2117
2117
|
const d = this.wordIndex(0, e);
|
|
@@ -2123,29 +2123,29 @@ class K {
|
|
|
2123
2123
|
s++;
|
|
2124
2124
|
continue;
|
|
2125
2125
|
}
|
|
2126
|
-
l !== void 0 &&
|
|
2126
|
+
l !== void 0 && n(s, l), l = g, s = 1;
|
|
2127
2127
|
}
|
|
2128
2128
|
}
|
|
2129
|
-
l !== void 0 &&
|
|
2129
|
+
l !== void 0 && n(s, l);
|
|
2130
2130
|
}
|
|
2131
2131
|
popcnt() {
|
|
2132
|
-
const { height: e, width:
|
|
2133
|
-
if (!e || !
|
|
2132
|
+
const { height: e, width: n, words: r, fullWords: o, tailMask: i } = this;
|
|
2133
|
+
if (!e || !n)
|
|
2134
2134
|
return 0;
|
|
2135
2135
|
let a = 0;
|
|
2136
2136
|
for (let s = 0; s < e; s++) {
|
|
2137
|
-
const l = s *
|
|
2137
|
+
const l = s * r;
|
|
2138
2138
|
for (let d = 0; d < o; d++)
|
|
2139
2139
|
a += Tt(this.value[l + d]);
|
|
2140
|
-
|
|
2140
|
+
r !== o && (a += Tt(this.value[l + o] & i));
|
|
2141
2141
|
}
|
|
2142
2142
|
return a;
|
|
2143
2143
|
}
|
|
2144
2144
|
countBoxes2x2(e) {
|
|
2145
|
-
const { height:
|
|
2146
|
-
if (
|
|
2145
|
+
const { height: n, width: r, words: o } = this;
|
|
2146
|
+
if (r < 2 || !Number.isSafeInteger(e) || e < 0 || e + 1 >= n)
|
|
2147
2147
|
return 0;
|
|
2148
|
-
const i = this.wordIndex(0, e), a = this.wordIndex(0, e + 1), l = (
|
|
2148
|
+
const i = this.wordIndex(0, e), a = this.wordIndex(0, e + 1), l = (r & 31) === 0 ? 2147483647 : Ne(0, r - 1 & 31);
|
|
2149
2149
|
let d = 0;
|
|
2150
2150
|
for (let u = 0; u < o; u++) {
|
|
2151
2151
|
const c = this.value[i + u], f = this.value[a + u], h = ~(c ^ f) >>> 0, g = u + 1 < o ? this.value[i + u + 1] >>> 0 : 0, b = ~(c ^ (c >>> 1 | (g & 1) << 31) >>> 0) >>> 0, p = u + 1 < o ? this.value[a + u + 1] >>> 0 : 0, C = ~(f ^ (f >>> 1 | (p & 1) << 31) >>> 0) >>> 0;
|
|
@@ -2157,58 +2157,58 @@ class K {
|
|
|
2157
2157
|
// Export
|
|
2158
2158
|
toString() {
|
|
2159
2159
|
const e = String.fromCharCode(ze.newline);
|
|
2160
|
-
let
|
|
2161
|
-
for (let
|
|
2160
|
+
let n = "";
|
|
2161
|
+
for (let r = 0; r < this.height; r++) {
|
|
2162
2162
|
let o = "";
|
|
2163
2163
|
for (let i = 0; i < this.width; i++) {
|
|
2164
|
-
const a = this.get(i,
|
|
2165
|
-
o += this.isDefined(i,
|
|
2164
|
+
const a = this.get(i, r);
|
|
2165
|
+
o += this.isDefined(i, r) ? a ? "X" : " " : "?";
|
|
2166
2166
|
}
|
|
2167
|
-
|
|
2167
|
+
n += o + (r + 1 === this.height ? "" : e);
|
|
2168
2168
|
}
|
|
2169
|
-
return
|
|
2169
|
+
return n;
|
|
2170
2170
|
}
|
|
2171
2171
|
toRaw() {
|
|
2172
2172
|
const e = Array.from({ length: this.height }, () => new Array(this.width));
|
|
2173
|
-
for (let
|
|
2174
|
-
const
|
|
2173
|
+
for (let n = 0; n < this.height; n++) {
|
|
2174
|
+
const r = e[n];
|
|
2175
2175
|
for (let o = 0; o < this.width; o++)
|
|
2176
|
-
|
|
2176
|
+
r[o] = this.get(o, n);
|
|
2177
2177
|
}
|
|
2178
2178
|
return e;
|
|
2179
2179
|
}
|
|
2180
2180
|
toASCII() {
|
|
2181
|
-
const { height: e, width:
|
|
2182
|
-
let
|
|
2181
|
+
const { height: e, width: n } = this;
|
|
2182
|
+
let r = "";
|
|
2183
2183
|
for (let o = 0; o < e; o += 2) {
|
|
2184
|
-
for (let i = 0; i <
|
|
2184
|
+
for (let i = 0; i < n; i++) {
|
|
2185
2185
|
const a = this.get(i, o), s = o + 1 >= e ? !0 : this.get(i, o + 1);
|
|
2186
|
-
!a && !s ?
|
|
2186
|
+
!a && !s ? r += "█" : !a && s ? r += "▀" : a && !s ? r += "▄" : a && s && (r += " ");
|
|
2187
2187
|
}
|
|
2188
|
-
|
|
2188
|
+
r += String.fromCharCode(ze.newline);
|
|
2189
2189
|
}
|
|
2190
|
-
return
|
|
2190
|
+
return r;
|
|
2191
2191
|
}
|
|
2192
2192
|
toTerm() {
|
|
2193
|
-
const e = String.fromCharCode(ze.reset),
|
|
2193
|
+
const e = String.fromCharCode(ze.reset), n = e + "[0m", r = e + "[1;47m " + n, o = e + "[40m " + n, i = String.fromCharCode(ze.newline);
|
|
2194
2194
|
let a = "";
|
|
2195
2195
|
for (let s = 0; s < this.height; s++) {
|
|
2196
2196
|
for (let l = 0; l < this.width; l++) {
|
|
2197
2197
|
const d = this.get(l, s);
|
|
2198
|
-
a += d ? o :
|
|
2198
|
+
a += d ? o : r;
|
|
2199
2199
|
}
|
|
2200
2200
|
a += i;
|
|
2201
2201
|
}
|
|
2202
2202
|
return a;
|
|
2203
2203
|
}
|
|
2204
2204
|
toSVG(e = !0) {
|
|
2205
|
-
let
|
|
2205
|
+
let n = `<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`, r = "", o;
|
|
2206
2206
|
return this.rectRead(0, 1 / 0, (i, a) => {
|
|
2207
2207
|
if (!a)
|
|
2208
2208
|
return;
|
|
2209
2209
|
const { x: s, y: l } = i;
|
|
2210
2210
|
if (!e) {
|
|
2211
|
-
|
|
2211
|
+
n += `<rect x="${s}" y="${l}" width="1" height="1" />`;
|
|
2212
2212
|
return;
|
|
2213
2213
|
}
|
|
2214
2214
|
let d = `M${s} ${l}`;
|
|
@@ -2217,12 +2217,12 @@ class K {
|
|
|
2217
2217
|
c.length <= d.length && (d = c);
|
|
2218
2218
|
}
|
|
2219
2219
|
const u = s < 10 ? `H${s}` : "h-1";
|
|
2220
|
-
|
|
2221
|
-
}), e && (
|
|
2220
|
+
r += `${d}h1v1${u}Z`, o = i;
|
|
2221
|
+
}), e && (n += `<path d="${r}"/>`), n += "</svg>", n;
|
|
2222
2222
|
}
|
|
2223
2223
|
toGIF() {
|
|
2224
|
-
const e = (s) => [s & 255, s >>> 8 & 255],
|
|
2225
|
-
this.rectRead(0, 1 / 0, (s, l) =>
|
|
2224
|
+
const e = (s) => [s & 255, s >>> 8 & 255], n = [...e(this.width), ...e(this.height)], r = [];
|
|
2225
|
+
this.rectRead(0, 1 / 0, (s, l) => r.push(+(l === !0)));
|
|
2226
2226
|
const o = 126, i = [
|
|
2227
2227
|
71,
|
|
2228
2228
|
73,
|
|
@@ -2230,7 +2230,7 @@ class K {
|
|
|
2230
2230
|
56,
|
|
2231
2231
|
55,
|
|
2232
2232
|
97,
|
|
2233
|
-
...
|
|
2233
|
+
...n,
|
|
2234
2234
|
246,
|
|
2235
2235
|
0,
|
|
2236
2236
|
0,
|
|
@@ -2243,26 +2243,26 @@ class K {
|
|
|
2243
2243
|
0,
|
|
2244
2244
|
0,
|
|
2245
2245
|
0,
|
|
2246
|
-
...
|
|
2246
|
+
...n,
|
|
2247
2247
|
0,
|
|
2248
2248
|
7
|
|
2249
|
-
], a = Math.floor(
|
|
2249
|
+
], a = Math.floor(r.length / o);
|
|
2250
2250
|
for (let s = 0; s < a; s++)
|
|
2251
|
-
i.push(o + 1, 128, ...
|
|
2252
|
-
return i.push(
|
|
2251
|
+
i.push(o + 1, 128, ...r.slice(o * s, o * (s + 1)).map((l) => +l));
|
|
2252
|
+
return i.push(r.length % o + 1, 128, ...r.slice(a * o).map((s) => +s)), i.push(1, 129, 0, 59), new Uint8Array(i);
|
|
2253
2253
|
}
|
|
2254
2254
|
toImage(e = !1) {
|
|
2255
|
-
const { height:
|
|
2255
|
+
const { height: n, width: r } = this.size(), o = new Uint8Array(n * r * (e ? 3 : 4));
|
|
2256
2256
|
let i = 0;
|
|
2257
|
-
for (let a = 0; a <
|
|
2258
|
-
for (let s = 0; s <
|
|
2257
|
+
for (let a = 0; a < n; a++)
|
|
2258
|
+
for (let s = 0; s < r; s++) {
|
|
2259
2259
|
const l = this.get(s, a) ? 0 : 255;
|
|
2260
2260
|
o[i++] = l, o[i++] = l, o[i++] = l, e || (o[i++] = 255);
|
|
2261
2261
|
}
|
|
2262
|
-
return { height:
|
|
2262
|
+
return { height: n, width: r, data: o };
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
|
-
const
|
|
2265
|
+
const bn = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]), wn = /* @__PURE__ */ Object.freeze(["numeric", "alphanumeric", "byte", "kanji", "eci"]), Do = [
|
|
2266
2266
|
// 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
2267
2267
|
26,
|
|
2268
2268
|
44,
|
|
@@ -2330,13 +2330,13 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2330
2330
|
alignmentPatterns(t) {
|
|
2331
2331
|
if (t === 1)
|
|
2332
2332
|
return [];
|
|
2333
|
-
const e = 6,
|
|
2334
|
-
let i = Math.floor(
|
|
2335
|
-
i % 2 ? i += 1 :
|
|
2333
|
+
const e = 6, n = U.size.encode(t) - e - 1, r = n - e, o = Math.ceil(r / 28);
|
|
2334
|
+
let i = Math.floor(r / o);
|
|
2335
|
+
i % 2 ? i += 1 : r % o * 2 >= o && (i += 2);
|
|
2336
2336
|
const a = [e];
|
|
2337
2337
|
for (let s = 1; s < o; s++)
|
|
2338
|
-
a.push(
|
|
2339
|
-
return a.push(
|
|
2338
|
+
a.push(n - (o - s) * i);
|
|
2339
|
+
return a.push(n), a;
|
|
2340
2340
|
},
|
|
2341
2341
|
// ISO/IEC 18004:2024 §7.9.1 Table 12: error-correction-level indicators for the top two format-information data bits.
|
|
2342
2342
|
ECCode: /* @__PURE__ */ Object.freeze({
|
|
@@ -2349,25 +2349,25 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2349
2349
|
formatMask: 21522,
|
|
2350
2350
|
// ISO/IEC 18004:2024 §7.9.1 / Annex C.2: append the 10-bit BCH remainder for the 5 data bits, then apply the fixed QR format mask.
|
|
2351
2351
|
formatBits(t, e) {
|
|
2352
|
-
const
|
|
2353
|
-
let
|
|
2352
|
+
const n = U.ECCode[t] << 3 | e;
|
|
2353
|
+
let r = n;
|
|
2354
2354
|
for (let o = 0; o < 10; o++)
|
|
2355
|
-
|
|
2356
|
-
return (
|
|
2355
|
+
r = r << 1 ^ (r >> 9) * 1335;
|
|
2356
|
+
return (n << 10 | r) ^ U.formatMask;
|
|
2357
2357
|
},
|
|
2358
2358
|
// ISO/IEC 18004:2024 §7.10 / Annex D.2: append the 12-bit Golay remainder to the 6-bit version word; version information is not masked.
|
|
2359
2359
|
versionBits(t) {
|
|
2360
2360
|
let e = t;
|
|
2361
|
-
for (let
|
|
2361
|
+
for (let n = 0; n < 12; n++)
|
|
2362
2362
|
e = e << 1 ^ (e >> 11) * 7973;
|
|
2363
2363
|
return t << 12 | e;
|
|
2364
2364
|
},
|
|
2365
2365
|
// ISO/IEC 18004:2024 §7.3.3 / §7.3.4 / §7.4.5 Table 5: character-set membership and value codecs for numeric and alphanumeric QR modes.
|
|
2366
2366
|
alphabet: /* @__PURE__ */ Object.freeze({
|
|
2367
2367
|
// ISO/IEC 18004:2024 §7.3.3 / §7.4.4: numeric-mode digits map directly to values 0..9 before 3-digit grouping.
|
|
2368
|
-
numeric:
|
|
2368
|
+
numeric: pn("0123456789"),
|
|
2369
2369
|
// ISO/IEC 18004:2024 §7.3.4 / §7.4.5 Table 5: 45-character alphanumeric-mode value order used for 11-bit pair packing. Keep the legacy `alphanumerc` key name in sync with existing callers.
|
|
2370
|
-
alphanumerc:
|
|
2370
|
+
alphanumerc: pn("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")
|
|
2371
2371
|
}),
|
|
2372
2372
|
// as Record<EncodingType, ReturnType<typeof alphabet>>,
|
|
2373
2373
|
// ISO/IEC 18004:2024 Table 3 gives QR character-count widths for data modes; ECI headers instead carry only the mode indicator plus the designator from §7.4.3.
|
|
@@ -2390,14 +2390,14 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2390
2390
|
}),
|
|
2391
2391
|
// ISO/IEC 18004:2024 Table 1 / §7.5.1 Table 9: derive total data bits and short/long RS block layout from total codewords, ECC words per block, and block counts.
|
|
2392
2392
|
capacity(t, e) {
|
|
2393
|
-
const
|
|
2393
|
+
const n = Do[t - 1], r = Vo[e][t - 1], o = Fo[e][t - 1], i = Math.floor(n / o) - r, a = o - n % o;
|
|
2394
2394
|
return {
|
|
2395
|
-
words:
|
|
2395
|
+
words: r,
|
|
2396
2396
|
numBlocks: o,
|
|
2397
2397
|
shortBlocks: a,
|
|
2398
2398
|
blockLen: i,
|
|
2399
|
-
capacity: (
|
|
2400
|
-
total: (
|
|
2399
|
+
capacity: (n - r * o) * 8,
|
|
2400
|
+
total: (r + i) * o + o - a
|
|
2401
2401
|
};
|
|
2402
2402
|
}
|
|
2403
2403
|
}), Wt = /* @__PURE__ */ Object.freeze([
|
|
@@ -2411,10 +2411,10 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2411
2411
|
(t, e) => ((t + e) % 2 + t * e % 3) % 2 == 0
|
|
2412
2412
|
]), w = {
|
|
2413
2413
|
tables: ((t) => {
|
|
2414
|
-
const e = fe(256, 0),
|
|
2415
|
-
for (let
|
|
2416
|
-
e[
|
|
2417
|
-
return { exp: e, log:
|
|
2414
|
+
const e = fe(256, 0), n = fe(256, 0);
|
|
2415
|
+
for (let r = 0, o = 1; r < 256; r++)
|
|
2416
|
+
e[r] = o, n[o] = r, o <<= 1, o & 256 && (o ^= t);
|
|
2417
|
+
return { exp: e, log: n };
|
|
2418
2418
|
})(285),
|
|
2419
2419
|
// Raw α^i lookup from the precomputed field table; callers are expected
|
|
2420
2420
|
// to reduce / validate exponents before indexing it.
|
|
@@ -2464,8 +2464,8 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2464
2464
|
throw new Error(`GF.monomial: invalid degree=${t}`);
|
|
2465
2465
|
if (e == 0)
|
|
2466
2466
|
return [0];
|
|
2467
|
-
let
|
|
2468
|
-
return
|
|
2467
|
+
let n = fe(t + 1, 0);
|
|
2468
|
+
return n[0] = e, w.polynomial(n);
|
|
2469
2469
|
},
|
|
2470
2470
|
// Canonical polynomials keep the highest-order coefficient first and use
|
|
2471
2471
|
// `[0]` for zero, so degree is just `length - 1`.
|
|
@@ -2478,11 +2478,11 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2478
2478
|
mulPoly(t, e) {
|
|
2479
2479
|
if (t[0] === 0 || e[0] === 0)
|
|
2480
2480
|
return [0];
|
|
2481
|
-
const
|
|
2482
|
-
for (let
|
|
2481
|
+
const n = fe(t.length + e.length - 1, 0);
|
|
2482
|
+
for (let r = 0; r < t.length; r++)
|
|
2483
2483
|
for (let o = 0; o < e.length; o++)
|
|
2484
|
-
r
|
|
2485
|
-
return w.polynomial(
|
|
2484
|
+
n[r + o] = w.add(n[r + o], w.mul(t[r], e[o]));
|
|
2485
|
+
return w.polynomial(n);
|
|
2486
2486
|
},
|
|
2487
2487
|
// Scale every coefficient by the same field element in descending-power order.
|
|
2488
2488
|
// Scalar 0 canonicalizes to `[0]`, and scalar 1 reuses the original array.
|
|
@@ -2491,22 +2491,22 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2491
2491
|
return [0];
|
|
2492
2492
|
if (e == 1)
|
|
2493
2493
|
return t;
|
|
2494
|
-
const
|
|
2495
|
-
for (let
|
|
2496
|
-
r
|
|
2497
|
-
return w.polynomial(
|
|
2494
|
+
const n = fe(t.length, 0);
|
|
2495
|
+
for (let r = 0; r < t.length; r++)
|
|
2496
|
+
n[r] = w.mul(t[r], e);
|
|
2497
|
+
return w.polynomial(n);
|
|
2498
2498
|
},
|
|
2499
2499
|
// Multiply a polynomial by c*x^degree in descending-power coefficient form.
|
|
2500
2500
|
// This scales existing coefficients, then appends trailing zero coefficients.
|
|
2501
|
-
mulPolyMonomial(t, e,
|
|
2501
|
+
mulPolyMonomial(t, e, n) {
|
|
2502
2502
|
if (e < 0)
|
|
2503
2503
|
throw new Error("GF.mulPolyMonomial: invalid degree");
|
|
2504
|
-
if (
|
|
2504
|
+
if (n == 0)
|
|
2505
2505
|
return [0];
|
|
2506
|
-
const
|
|
2506
|
+
const r = fe(t.length + e, 0);
|
|
2507
2507
|
for (let o = 0; o < t.length; o++)
|
|
2508
|
-
|
|
2509
|
-
return w.polynomial(
|
|
2508
|
+
r[o] = w.mul(t[o], n);
|
|
2509
|
+
return w.polynomial(r);
|
|
2510
2510
|
},
|
|
2511
2511
|
// Add descending-power coefficient arrays with GF(2^8) XOR on the aligned
|
|
2512
2512
|
// suffix; `[0]` short-circuits by returning the other array unchanged.
|
|
@@ -2515,33 +2515,33 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2515
2515
|
return e;
|
|
2516
2516
|
if (e[0] === 0)
|
|
2517
2517
|
return t;
|
|
2518
|
-
let
|
|
2519
|
-
|
|
2520
|
-
let o = fe(
|
|
2518
|
+
let n = t, r = e;
|
|
2519
|
+
n.length > r.length && ([n, r] = [r, n]);
|
|
2520
|
+
let o = fe(r.length, 0), i = r.length - n.length, a = r.slice(0, i);
|
|
2521
2521
|
for (let s = 0; s < a.length; s++)
|
|
2522
2522
|
o[s] = a[s];
|
|
2523
|
-
for (let s = i; s <
|
|
2524
|
-
o[s] = w.add(
|
|
2523
|
+
for (let s = i; s < r.length; s++)
|
|
2524
|
+
o[s] = w.add(n[s - i], r[s]);
|
|
2525
2525
|
return w.polynomial(o);
|
|
2526
2526
|
},
|
|
2527
2527
|
// Synthetic division for monic divisors in descending-power coefficient form.
|
|
2528
2528
|
// Callers are expected to append `divisor.length - 1` zero coefficients first.
|
|
2529
2529
|
remainderPoly(t, e) {
|
|
2530
|
-
const
|
|
2531
|
-
for (let
|
|
2532
|
-
const o = r
|
|
2530
|
+
const n = Array.from(t);
|
|
2531
|
+
for (let r = 0; r < t.length - e.length + 1; r++) {
|
|
2532
|
+
const o = n[r];
|
|
2533
2533
|
if (o !== 0)
|
|
2534
2534
|
for (let i = 1; i < e.length; i++)
|
|
2535
|
-
e[i] !== 0 && (r
|
|
2535
|
+
e[i] !== 0 && (n[r + i] = w.add(n[r + i], w.mul(e[i], o)));
|
|
2536
2536
|
}
|
|
2537
|
-
return
|
|
2537
|
+
return n.slice(t.length - e.length + 1, n.length);
|
|
2538
2538
|
},
|
|
2539
2539
|
// Build Annex A's monic generator polynomial g_n(x) = Π(x - 2^i).
|
|
2540
2540
|
// degree=0 returns `[1]`; callers are expected to validate degree bounds.
|
|
2541
2541
|
divisorPoly(t) {
|
|
2542
2542
|
let e = [1];
|
|
2543
|
-
for (let
|
|
2544
|
-
e = w.mulPoly(e, [1, w.pow(2,
|
|
2543
|
+
for (let n = 0; n < t; n++)
|
|
2544
|
+
e = w.mulPoly(e, [1, w.pow(2, n)]);
|
|
2545
2545
|
return e;
|
|
2546
2546
|
},
|
|
2547
2547
|
// Evaluate a descending-power coefficient array at `a` with Horner's rule.
|
|
@@ -2549,30 +2549,30 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2549
2549
|
evalPoly(t, e) {
|
|
2550
2550
|
if (e == 0)
|
|
2551
2551
|
return w.coefficient(t, 0);
|
|
2552
|
-
let
|
|
2553
|
-
for (let
|
|
2554
|
-
|
|
2555
|
-
return
|
|
2552
|
+
let n = t[0];
|
|
2553
|
+
for (let r = 1; r < t.length; r++)
|
|
2554
|
+
n = w.add(w.mul(e, n), t[r]);
|
|
2555
|
+
return n;
|
|
2556
2556
|
},
|
|
2557
2557
|
// TODO: cleanup
|
|
2558
2558
|
// Extended Euclidean RS step: derive the locator/evaluator pair from x^R
|
|
2559
2559
|
// and the syndrome polynomial, then normalize sigma(0) to 1.
|
|
2560
|
-
euclidian(t, e,
|
|
2560
|
+
euclidian(t, e, n) {
|
|
2561
2561
|
w.degree(t) < w.degree(e) && ([t, e] = [e, t]);
|
|
2562
|
-
let
|
|
2563
|
-
for (; 2 * w.degree(o) >=
|
|
2564
|
-
let d =
|
|
2565
|
-
if (
|
|
2562
|
+
let r = t, o = e, i = [0], a = [1];
|
|
2563
|
+
for (; 2 * w.degree(o) >= n; ) {
|
|
2564
|
+
let d = r, u = i;
|
|
2565
|
+
if (r = o, i = a, r[0] === 0)
|
|
2566
2566
|
throw new Error("rLast[0] === 0");
|
|
2567
2567
|
o = d;
|
|
2568
2568
|
let c = [0];
|
|
2569
|
-
const f = w.inv(
|
|
2570
|
-
for (; w.degree(o) >= w.degree(
|
|
2571
|
-
const h = w.degree(o) - w.degree(
|
|
2572
|
-
c = w.addPoly(c, w.monomial(h, g)), o = w.addPoly(o, w.mulPolyMonomial(
|
|
2569
|
+
const f = w.inv(r[0]);
|
|
2570
|
+
for (; w.degree(o) >= w.degree(r) && o[0] !== 0; ) {
|
|
2571
|
+
const h = w.degree(o) - w.degree(r), g = w.mul(o[0], f);
|
|
2572
|
+
c = w.addPoly(c, w.monomial(h, g)), o = w.addPoly(o, w.mulPolyMonomial(r, h, g));
|
|
2573
2573
|
}
|
|
2574
|
-
if (c = w.mulPoly(c, i), a = w.addPoly(c, u), w.degree(o) >= w.degree(
|
|
2575
|
-
throw new Error(`Division failed r: ${o}, rLast: ${
|
|
2574
|
+
if (c = w.mulPoly(c, i), a = w.addPoly(c, u), w.degree(o) >= w.degree(r))
|
|
2575
|
+
throw new Error(`Division failed r: ${o}, rLast: ${r}`);
|
|
2576
2576
|
}
|
|
2577
2577
|
const s = w.coefficient(a, 0);
|
|
2578
2578
|
if (s == 0)
|
|
@@ -2584,18 +2584,18 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2584
2584
|
function zo(t) {
|
|
2585
2585
|
return {
|
|
2586
2586
|
encode(e) {
|
|
2587
|
-
const
|
|
2588
|
-
return
|
|
2587
|
+
const n = w.divisorPoly(t), r = Array.from(e);
|
|
2588
|
+
return r.push(...n.slice(0, -1).fill(0)), Uint8Array.from(w.remainderPoly(r, n));
|
|
2589
2589
|
},
|
|
2590
2590
|
decode(e) {
|
|
2591
|
-
const
|
|
2591
|
+
const n = e.slice(), r = w.polynomial(Array.from(e));
|
|
2592
2592
|
let o = fe(t, 0), i = !1;
|
|
2593
2593
|
for (let c = 0; c < t; c++) {
|
|
2594
|
-
const f = w.evalPoly(
|
|
2594
|
+
const f = w.evalPoly(r, w.exp(c));
|
|
2595
2595
|
o[o.length - 1 - c] = f, f !== 0 && (i = !0);
|
|
2596
2596
|
}
|
|
2597
2597
|
if (!i)
|
|
2598
|
-
return
|
|
2598
|
+
return n;
|
|
2599
2599
|
o = w.polynomial(o);
|
|
2600
2600
|
const a = w.monomial(t, 1), [s, l] = w.euclidian(a, o, t), d = fe(w.degree(s), 0);
|
|
2601
2601
|
let u = 0;
|
|
@@ -2604,29 +2604,29 @@ function zo(t) {
|
|
|
2604
2604
|
if (u !== d.length)
|
|
2605
2605
|
throw new Error("RS.decode: invalid errors number");
|
|
2606
2606
|
for (let c = 0; c < d.length; c++) {
|
|
2607
|
-
const f =
|
|
2607
|
+
const f = n.length - 1 - w.log(d[c]);
|
|
2608
2608
|
if (f < 0)
|
|
2609
2609
|
throw new Error("RS.decode: invalid error location");
|
|
2610
2610
|
const h = w.inv(d[c]);
|
|
2611
2611
|
let g = 1;
|
|
2612
2612
|
for (let b = 0; b < d.length; b++)
|
|
2613
2613
|
c !== b && (g = w.mul(g, w.add(1, w.mul(d[b], h))));
|
|
2614
|
-
|
|
2614
|
+
n[f] = w.add(n[f], w.mul(w.evalPoly(l, h), w.inv(g)));
|
|
2615
2615
|
}
|
|
2616
|
-
return
|
|
2616
|
+
return n;
|
|
2617
2617
|
}
|
|
2618
2618
|
};
|
|
2619
2619
|
}
|
|
2620
2620
|
function Uo(t, e) {
|
|
2621
|
-
const { words:
|
|
2621
|
+
const { words: n, shortBlocks: r, numBlocks: o, blockLen: i, total: a } = U.capacity(t, e), s = zo(n);
|
|
2622
2622
|
return {
|
|
2623
2623
|
encode(l) {
|
|
2624
2624
|
const d = [], u = [];
|
|
2625
2625
|
for (let g = 0; g < o; g++) {
|
|
2626
|
-
const b = g <
|
|
2626
|
+
const b = g < r, p = i + (b ? 0 : 1);
|
|
2627
2627
|
d.push(l.subarray(0, p)), u.push(s.encode(l.subarray(0, p))), l = l.subarray(p);
|
|
2628
2628
|
}
|
|
2629
|
-
const c =
|
|
2629
|
+
const c = vn(d), f = vn(u), h = new Uint8Array(c.length + f.length);
|
|
2630
2630
|
return h.set(c), h.set(f, c.length), h;
|
|
2631
2631
|
},
|
|
2632
2632
|
decode(l) {
|
|
@@ -2634,28 +2634,28 @@ function Uo(t, e) {
|
|
|
2634
2634
|
throw new Error(`interleave.decode: len(data)=${l.length}, total=${a}`);
|
|
2635
2635
|
const d = [];
|
|
2636
2636
|
for (let f = 0; f < o; f++) {
|
|
2637
|
-
const h = f <
|
|
2638
|
-
d.push(new Uint8Array(
|
|
2637
|
+
const h = f < r;
|
|
2638
|
+
d.push(new Uint8Array(n + i + (h ? 0 : 1)));
|
|
2639
2639
|
}
|
|
2640
2640
|
let u = 0;
|
|
2641
2641
|
for (let f = 0; f < i; f++)
|
|
2642
2642
|
for (let h = 0; h < o; h++)
|
|
2643
2643
|
d[h][f] = l[u++];
|
|
2644
|
-
for (let f =
|
|
2644
|
+
for (let f = r; f < o; f++)
|
|
2645
2645
|
d[f][i] = l[u++];
|
|
2646
|
-
for (let f = i; f < i +
|
|
2646
|
+
for (let f = i; f < i + n; f++)
|
|
2647
2647
|
for (let h = 0; h < o; h++) {
|
|
2648
|
-
const g = h <
|
|
2648
|
+
const g = h < r;
|
|
2649
2649
|
d[h][f + (g ? 0 : 1)] = l[u++];
|
|
2650
2650
|
}
|
|
2651
2651
|
const c = [];
|
|
2652
2652
|
for (const f of d)
|
|
2653
|
-
c.push(...Array.from(s.decode(f)).slice(0, -
|
|
2653
|
+
c.push(...Array.from(s.decode(f)).slice(0, -n));
|
|
2654
2654
|
return Uint8Array.from(c);
|
|
2655
2655
|
}
|
|
2656
2656
|
};
|
|
2657
2657
|
}
|
|
2658
|
-
function Wo(t, e,
|
|
2658
|
+
function Wo(t, e, n, r = !1) {
|
|
2659
2659
|
const o = U.size.encode(t);
|
|
2660
2660
|
let i = new K(o + 2);
|
|
2661
2661
|
const a = new K(3).rect(0, 3, !0).border(1, !1).border(1, !0).border(1, !1);
|
|
@@ -2666,7 +2666,7 @@ function Wo(t, e, r, n = !1) {
|
|
|
2666
2666
|
i.isDefined(u, d) || i.embed({ x: u - 2, y: d - 2 }, s);
|
|
2667
2667
|
i = i.hLine({ x: 0, y: 6 }, 1 / 0, ({ x: d }) => i.isDefined(d, 6) ? void 0 : d % 2 == 0).vLine({ x: 6, y: 0 }, 1 / 0, ({ y: d }) => i.isDefined(6, d) ? void 0 : d % 2 == 0);
|
|
2668
2668
|
{
|
|
2669
|
-
const d = U.formatBits(e,
|
|
2669
|
+
const d = U.formatBits(e, n), u = (c) => !r && (d >> c & 1) == 1;
|
|
2670
2670
|
for (let c = 0; c < 6; c++)
|
|
2671
2671
|
i.set(8, c, u(c));
|
|
2672
2672
|
for (let c = 6; c < 8; c++)
|
|
@@ -2679,25 +2679,25 @@ function Wo(t, e, r, n = !1) {
|
|
|
2679
2679
|
i.set(15 - c - 1 + 1, 8, u(c));
|
|
2680
2680
|
for (let c = 9; c < 15; c++)
|
|
2681
2681
|
i.set(15 - c - 1, 8, u(c));
|
|
2682
|
-
i.set(8, o - 8, !
|
|
2682
|
+
i.set(8, o - 8, !r);
|
|
2683
2683
|
}
|
|
2684
2684
|
if (t >= 7) {
|
|
2685
2685
|
const d = U.versionBits(t);
|
|
2686
2686
|
for (let u = 0; u < 18; u += 1) {
|
|
2687
|
-
const c = !
|
|
2687
|
+
const c = !r && (d >> u & 1) == 1, f = Math.floor(u / 3), h = u % 3 + o - 8 - 3;
|
|
2688
2688
|
i.set(h, f, c), i.set(f, h, c);
|
|
2689
2689
|
}
|
|
2690
2690
|
}
|
|
2691
2691
|
return i;
|
|
2692
2692
|
}
|
|
2693
|
-
function Go(t, e,
|
|
2694
|
-
const
|
|
2693
|
+
function Go(t, e, n) {
|
|
2694
|
+
const r = t, o = r.height, i = Wt[e];
|
|
2695
2695
|
let a = -1, s = o - 1;
|
|
2696
2696
|
for (let l = o - 1; l > 0; l -= 2) {
|
|
2697
2697
|
for (l == 6 && (l = 5); ; s += a) {
|
|
2698
2698
|
for (let d = 0; d < 2; d += 1) {
|
|
2699
2699
|
const u = l - d;
|
|
2700
|
-
|
|
2700
|
+
r.isDefined(u, s) || n(u, s, i(u, s));
|
|
2701
2701
|
}
|
|
2702
2702
|
if (s + a < 0 || s + a >= o)
|
|
2703
2703
|
break;
|
|
@@ -2707,8 +2707,8 @@ function Go(t, e, r) {
|
|
|
2707
2707
|
}
|
|
2708
2708
|
function Ko(t) {
|
|
2709
2709
|
let e = "numeric";
|
|
2710
|
-
for (let
|
|
2711
|
-
if (!U.alphabet.numeric.has(
|
|
2710
|
+
for (let n of t)
|
|
2711
|
+
if (!U.alphabet.numeric.has(n) && (e = "alphanumeric", !U.alphabet.alphanumerc.has(n)))
|
|
2712
2712
|
return "byte";
|
|
2713
2713
|
return e;
|
|
2714
2714
|
}
|
|
@@ -2717,25 +2717,25 @@ function Ho(t) {
|
|
|
2717
2717
|
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
2718
2718
|
return new Uint8Array(new TextEncoder().encode(t));
|
|
2719
2719
|
}
|
|
2720
|
-
function
|
|
2721
|
-
let i = "", a =
|
|
2722
|
-
if (
|
|
2723
|
-
const f = U.alphabet.numeric.decode(
|
|
2720
|
+
function yn(t, e, n, r, o = Ho) {
|
|
2721
|
+
let i = "", a = n.length;
|
|
2722
|
+
if (r === "numeric") {
|
|
2723
|
+
const f = U.alphabet.numeric.decode(n.split("")), h = f.length;
|
|
2724
2724
|
for (let g = 0; g < h - 2; g += 3)
|
|
2725
2725
|
i += _e(f[g] * 100 + f[g + 1] * 10 + f[g + 2], 10);
|
|
2726
2726
|
h % 3 === 1 ? i += _e(f[h - 1], 4) : h % 3 === 2 && (i += _e(f[h - 2] * 10 + f[h - 1], 7));
|
|
2727
|
-
} else if (
|
|
2728
|
-
const f = U.alphabet.alphanumerc.decode(
|
|
2727
|
+
} else if (r === "alphanumeric") {
|
|
2728
|
+
const f = U.alphabet.alphanumerc.decode(n.split("")), h = f.length;
|
|
2729
2729
|
for (let g = 0; g < h - 1; g += 2)
|
|
2730
2730
|
i += _e(f[g] * 45 + f[g + 1], 11);
|
|
2731
2731
|
h % 2 == 1 && (i += _e(f[h - 1], 6));
|
|
2732
|
-
} else if (
|
|
2733
|
-
const f = o(
|
|
2732
|
+
} else if (r === "byte") {
|
|
2733
|
+
const f = o(n);
|
|
2734
2734
|
a = f.length, i = Array.from(f).map((h) => _e(h, 8)).join("");
|
|
2735
2735
|
} else
|
|
2736
2736
|
throw new Error("encode: unsupported type");
|
|
2737
|
-
const { capacity: s } = U.capacity(t, e), l = _e(a, U.lengthBits(t,
|
|
2738
|
-
let d = U.modeBits[
|
|
2737
|
+
const { capacity: s } = U.capacity(t, e), l = _e(a, U.lengthBits(t, r));
|
|
2738
|
+
let d = U.modeBits[r] + l + i;
|
|
2739
2739
|
if (d.length > s)
|
|
2740
2740
|
throw new Error("Capacity overflow");
|
|
2741
2741
|
d += "0".repeat(Math.min(4, Math.max(0, s - d.length))), d.length % 8 && (d += "0".repeat(8 - d.length % 8));
|
|
@@ -2745,61 +2745,61 @@ function wr(t, e, r, n, o = Ho) {
|
|
|
2745
2745
|
const c = Uint8Array.from(d.match(/(.{8})/g).map((f) => +`0b${f}`));
|
|
2746
2746
|
return Uo(t, e).encode(c);
|
|
2747
2747
|
}
|
|
2748
|
-
function
|
|
2749
|
-
const i = Wo(t, e,
|
|
2748
|
+
function xn(t, e, n, r, o = !1) {
|
|
2749
|
+
const i = Wo(t, e, r, o);
|
|
2750
2750
|
let a = 0;
|
|
2751
|
-
const s = 8 *
|
|
2752
|
-
if (Go(i,
|
|
2751
|
+
const s = 8 * n.length;
|
|
2752
|
+
if (Go(i, r, (l, d, u) => {
|
|
2753
2753
|
let c = !1;
|
|
2754
|
-
a < s && (c = (
|
|
2754
|
+
a < s && (c = (n[a >>> 3] >> (7 - a & 7) & 1) !== 0, a++), i.set(l, d, c !== u);
|
|
2755
2755
|
}), a !== s)
|
|
2756
2756
|
throw new Error("QR: bytes left after draw");
|
|
2757
2757
|
return i;
|
|
2758
2758
|
}
|
|
2759
|
-
const
|
|
2760
|
-
const e = t.map((
|
|
2759
|
+
const nr = (t) => {
|
|
2760
|
+
const e = t.map((n) => n ? "1" : "0").join("");
|
|
2761
2761
|
return { len: e.length, n: +`0b${e}` };
|
|
2762
|
-
},
|
|
2762
|
+
}, rr = [!0, !1, !0, !0, !0, !1, !0], or = [!1, !1, !1, !1], st = nr([...rr, ...or]), kn = nr([...or, ...rr]);
|
|
2763
2763
|
function qo(t) {
|
|
2764
|
-
const e = t, { width:
|
|
2764
|
+
const e = t, { width: n, height: r } = e, o = e.transpose();
|
|
2765
2765
|
let i = 0;
|
|
2766
|
-
for (let f = 0; f <
|
|
2766
|
+
for (let f = 0; f < r; f++)
|
|
2767
2767
|
e.getRuns(f, (h) => {
|
|
2768
2768
|
h >= 5 && (i += 3 + (h - 5));
|
|
2769
2769
|
});
|
|
2770
|
-
for (let f = 0; f <
|
|
2770
|
+
for (let f = 0; f < n; f++)
|
|
2771
2771
|
o.getRuns(f, (h) => {
|
|
2772
2772
|
h >= 5 && (i += 3 + (h - 5));
|
|
2773
2773
|
});
|
|
2774
2774
|
let a = 0;
|
|
2775
|
-
for (let f = 0; f <
|
|
2775
|
+
for (let f = 0; f < r - 1; f++)
|
|
2776
2776
|
a += 3 * e.countBoxes2x2(f);
|
|
2777
2777
|
let s = 0;
|
|
2778
|
-
for (let f = 0; f < n; f++)
|
|
2779
|
-
s += 40 * e.countPatternInRow(f, st.len, st.n, xr.n);
|
|
2780
2778
|
for (let f = 0; f < r; f++)
|
|
2781
|
-
s += 40 *
|
|
2782
|
-
|
|
2779
|
+
s += 40 * e.countPatternInRow(f, st.len, st.n, kn.n);
|
|
2780
|
+
for (let f = 0; f < n; f++)
|
|
2781
|
+
s += 40 * o.countPatternInRow(f, st.len, st.n, kn.n);
|
|
2782
|
+
const l = r * n, d = e.popcnt(), c = 10 * Math.ceil(Math.max(0, Math.abs(d * 100 - l * 50) - l * 5) / (l * 5));
|
|
2783
2783
|
return i + a + s + c;
|
|
2784
2784
|
}
|
|
2785
|
-
function Xo(t, e,
|
|
2786
|
-
if (
|
|
2785
|
+
function Xo(t, e, n, r) {
|
|
2786
|
+
if (r === void 0) {
|
|
2787
2787
|
const o = jo();
|
|
2788
2788
|
for (let i = 0; i < Wt.length; i++)
|
|
2789
|
-
o.add(qo(
|
|
2790
|
-
|
|
2789
|
+
o.add(qo(xn(t, e, n, i, !0)), i);
|
|
2790
|
+
r = o.get();
|
|
2791
2791
|
}
|
|
2792
|
-
if (
|
|
2792
|
+
if (r === void 0)
|
|
2793
2793
|
throw new Error("Cannot find mask");
|
|
2794
|
-
return
|
|
2794
|
+
return xn(t, e, n, r);
|
|
2795
2795
|
}
|
|
2796
2796
|
function Qo(t) {
|
|
2797
|
-
if (!
|
|
2798
|
-
throw new Error(`Invalid error correction mode=${t}. Expected: ${
|
|
2797
|
+
if (!bn.includes(t))
|
|
2798
|
+
throw new Error(`Invalid error correction mode=${t}. Expected: ${bn}`);
|
|
2799
2799
|
}
|
|
2800
2800
|
function Jo(t) {
|
|
2801
|
-
if (!
|
|
2802
|
-
throw new Error(`Encoding: invalid mode=${t}. Expected: ${
|
|
2801
|
+
if (!wn.includes(t))
|
|
2802
|
+
throw new Error(`Encoding: invalid mode=${t}. Expected: ${wn}`);
|
|
2803
2803
|
if (t === "kanji" || t === "eci")
|
|
2804
2804
|
throw new Error(`Encoding: ${t} is not supported (yet?).`);
|
|
2805
2805
|
}
|
|
@@ -2807,42 +2807,42 @@ function Zo(t) {
|
|
|
2807
2807
|
if (![0, 1, 2, 3, 4, 5, 6, 7].includes(t) || !Wt[t])
|
|
2808
2808
|
throw new Error(`Invalid mask=${t}. Expected number [0..7]`);
|
|
2809
2809
|
}
|
|
2810
|
-
function Yo(t, e = "raw",
|
|
2811
|
-
const
|
|
2810
|
+
function Yo(t, e = "raw", n = {}) {
|
|
2811
|
+
const r = n, o = r.ecc !== void 0 ? r.ecc : "medium";
|
|
2812
2812
|
Qo(o);
|
|
2813
|
-
const i =
|
|
2814
|
-
Jo(i),
|
|
2815
|
-
let a =
|
|
2813
|
+
const i = r.encoding !== void 0 ? r.encoding : Ko(t);
|
|
2814
|
+
Jo(i), r.mask !== void 0 && Zo(r.mask);
|
|
2815
|
+
let a = r.version, s, l = new Error("Unknown error");
|
|
2816
2816
|
if (a !== void 0)
|
|
2817
|
-
Lo(a), s =
|
|
2817
|
+
Lo(a), s = yn(a, o, t, i, r.textEncoder);
|
|
2818
2818
|
else
|
|
2819
2819
|
for (let c = 1; c <= 40; c++)
|
|
2820
2820
|
try {
|
|
2821
|
-
s =
|
|
2821
|
+
s = yn(c, o, t, i, r.textEncoder), a = c;
|
|
2822
2822
|
break;
|
|
2823
2823
|
} catch (f) {
|
|
2824
2824
|
l = f;
|
|
2825
2825
|
}
|
|
2826
2826
|
if (!a || !s)
|
|
2827
2827
|
throw l;
|
|
2828
|
-
let d = Xo(a, o, s,
|
|
2828
|
+
let d = Xo(a, o, s, r.mask);
|
|
2829
2829
|
d.assertDrawn();
|
|
2830
|
-
const u =
|
|
2830
|
+
const u = r.border === void 0 ? 2 : r.border;
|
|
2831
2831
|
if (!Number.isSafeInteger(u) || u <= 0)
|
|
2832
2832
|
throw new Error(`invalid border=${u}`);
|
|
2833
|
-
if (d = d.border(u, !1),
|
|
2833
|
+
if (d = d.border(u, !1), r.scale !== void 0 && (d = d.scale(r.scale)), e === "raw")
|
|
2834
2834
|
return d.toRaw();
|
|
2835
2835
|
if (e === "ascii")
|
|
2836
2836
|
return d.toASCII();
|
|
2837
2837
|
if (e === "svg")
|
|
2838
|
-
return d.toSVG(
|
|
2838
|
+
return d.toSVG(r.optimize);
|
|
2839
2839
|
if (e === "gif")
|
|
2840
2840
|
return d.toGIF();
|
|
2841
2841
|
if (e === "term")
|
|
2842
2842
|
return d.toTerm();
|
|
2843
2843
|
throw new Error(`Unknown output: ${e}`);
|
|
2844
2844
|
}
|
|
2845
|
-
const
|
|
2845
|
+
const ir = async (t) => {
|
|
2846
2846
|
if (!t) return !1;
|
|
2847
2847
|
try {
|
|
2848
2848
|
if (navigator?.clipboard?.writeText)
|
|
@@ -2853,83 +2853,83 @@ const on = async (t) => {
|
|
|
2853
2853
|
try {
|
|
2854
2854
|
const e = document.createElement("textarea");
|
|
2855
2855
|
e.value = t, e.style.position = "fixed", e.style.left = "-999999px", e.style.top = "-999999px", document.body.append(e), e.focus(), e.select();
|
|
2856
|
-
const
|
|
2857
|
-
return e.remove(),
|
|
2856
|
+
const n = document.execCommand("copy");
|
|
2857
|
+
return e.remove(), n;
|
|
2858
2858
|
} catch {
|
|
2859
2859
|
return !1;
|
|
2860
2860
|
}
|
|
2861
2861
|
};
|
|
2862
2862
|
var ei = /* @__PURE__ */ x('<div class="flex flex-col items-center gap-4 px-2"><div class="w-full space-y-4 rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-card-background) p-4"><div class=w-full><button type=button class="w-full cursor-pointer rounded-lg border border-(--lv-control-button-secondary-border) bg-(--lv-control-button-secondary-background) px-4 py-2 text-sm text-(--lv-text-primary) transition hover:bg-(--lv-control-button-secondary-hoverBackground) active:bg-(--lv-control-button-secondary-activeBackground)"></button></div></div><div class="w-full text-sm text-(--lv-text-secondary)"><span>'), ti = /* @__PURE__ */ x('<div class="relative mx-auto flex w-fit items-center justify-center rounded-lg border border-(--lv-control-button-secondary-border) bg-(--lv-qr-background) p-2"><button type=button class="h-[200px] w-[200px] cursor-pointer rounded bg-(--lv-qr-background) text-(--lv-qr-color)">');
|
|
2863
|
-
const
|
|
2863
|
+
const ni = (t) => Yo(t, "svg", {
|
|
2864
2864
|
optimize: !0,
|
|
2865
2865
|
encoding: "byte",
|
|
2866
2866
|
border: 2
|
|
2867
|
-
}),
|
|
2867
|
+
}), ri = () => {
|
|
2868
2868
|
const {
|
|
2869
2869
|
t
|
|
2870
2870
|
} = Q(), {
|
|
2871
2871
|
uri: e
|
|
2872
|
-
} = Ye(),
|
|
2873
|
-
const
|
|
2874
|
-
|
|
2872
|
+
} = Ye(), n = () => {
|
|
2873
|
+
const r = e();
|
|
2874
|
+
r && ir(r);
|
|
2875
2875
|
};
|
|
2876
2876
|
return (() => {
|
|
2877
|
-
var
|
|
2877
|
+
var r = ei(), o = r.firstChild, i = o.firstChild, a = i.firstChild, s = o.nextSibling, l = s.firstChild;
|
|
2878
2878
|
return m(o, v(ve, {
|
|
2879
2879
|
get when() {
|
|
2880
2880
|
return e();
|
|
2881
2881
|
},
|
|
2882
2882
|
children: (d) => (() => {
|
|
2883
2883
|
var u = ti(), c = u.firstChild;
|
|
2884
|
-
return c.$$click =
|
|
2885
|
-
var h = String(t("handshake.clickToCopyUrl")), g =
|
|
2884
|
+
return c.$$click = n, z((f) => {
|
|
2885
|
+
var h = String(t("handshake.clickToCopyUrl")), g = ni(d());
|
|
2886
2886
|
return h !== f.e && Z(c, "title", f.e = h), g !== f.t && (c.innerHTML = f.t = g), f;
|
|
2887
2887
|
}, {
|
|
2888
2888
|
e: void 0,
|
|
2889
2889
|
t: void 0
|
|
2890
2890
|
}), u;
|
|
2891
2891
|
})()
|
|
2892
|
-
}), i), a.$$click =
|
|
2892
|
+
}), i), a.$$click = n, m(a, () => t("handshake.copyConnectionUrl")), m(l, () => t("handshake.scanCodeInstruction")), r;
|
|
2893
2893
|
})();
|
|
2894
2894
|
};
|
|
2895
2895
|
Ae(["click"]);
|
|
2896
|
-
var oi = /* @__PURE__ */ x('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'),
|
|
2897
|
-
const
|
|
2896
|
+
var oi = /* @__PURE__ */ x('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'), Cn = /* @__PURE__ */ x('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'), ii = /* @__PURE__ */ x("<div>");
|
|
2897
|
+
const Sn = () => oi(), si = () => {
|
|
2898
2898
|
const {
|
|
2899
2899
|
status: t
|
|
2900
2900
|
} = Ye(), {
|
|
2901
2901
|
t: e
|
|
2902
2902
|
} = Q();
|
|
2903
2903
|
return (() => {
|
|
2904
|
-
var
|
|
2905
|
-
return m(
|
|
2904
|
+
var n = ii();
|
|
2905
|
+
return m(n, v(Gn, {
|
|
2906
2906
|
get children() {
|
|
2907
2907
|
return [v(Pe, {
|
|
2908
2908
|
get when() {
|
|
2909
2909
|
return [it.CREATED, it.SIGNALING].includes(t()?.status ?? "");
|
|
2910
2910
|
},
|
|
2911
2911
|
get children() {
|
|
2912
|
-
var
|
|
2913
|
-
return m(
|
|
2912
|
+
var r = Cn(), o = r.firstChild, i = o.firstChild, a = i.nextSibling;
|
|
2913
|
+
return m(r, v(Sn, {}), o), m(i, () => e("connectionFlow.connecting")), m(a, () => e("connectionFlow.waitingForNetwork")), r;
|
|
2914
2914
|
}
|
|
2915
2915
|
}), v(Pe, {
|
|
2916
2916
|
get when() {
|
|
2917
2917
|
return t()?.status === it.READY;
|
|
2918
2918
|
},
|
|
2919
2919
|
get children() {
|
|
2920
|
-
return v(
|
|
2920
|
+
return v(ri, {});
|
|
2921
2921
|
}
|
|
2922
2922
|
}), v(Pe, {
|
|
2923
2923
|
get when() {
|
|
2924
2924
|
return t()?.status === it.LINKING;
|
|
2925
2925
|
},
|
|
2926
2926
|
get children() {
|
|
2927
|
-
var
|
|
2928
|
-
return m(
|
|
2927
|
+
var r = Cn(), o = r.firstChild, i = o.firstChild, a = i.nextSibling;
|
|
2928
|
+
return m(r, v(Sn, {}), o), m(i, () => e("connectionFlow.establishingConnection")), m(a, () => e("connectionFlow.mayTakeFewSeconds")), r;
|
|
2929
2929
|
}
|
|
2930
2930
|
})];
|
|
2931
2931
|
}
|
|
2932
|
-
})),
|
|
2932
|
+
})), n;
|
|
2933
2933
|
})();
|
|
2934
2934
|
};
|
|
2935
2935
|
var ai = /* @__PURE__ */ x('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><div class="mb-4 text-4xl">⚠️</div><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="mb-2 text-(--lv-text-muted) text-sm"></p></div><div class="flex w-full flex-col gap-2"><button type=button class="w-full rounded-lg bg-(--lv-control-button-primary-background) px-4 py-2 font-semibold text-(--lv-control-button-primary-color, var(--lv-text-primary)) text-sm transition hover:bg-(--lv-control-button-primary-background-hover)"></button><button type=button class="w-full rounded-lg bg-(--lv-control-button-secondary-background) px-4 py-2 font-semibold text-(--lv-text-primary) text-sm transition hover:bg-(--lv-control-button-primary-background-hover)">');
|
|
@@ -2937,9 +2937,9 @@ const li = (t) => {
|
|
|
2937
2937
|
const {
|
|
2938
2938
|
t: e
|
|
2939
2939
|
} = Q(), {
|
|
2940
|
-
provider:
|
|
2941
|
-
} = Me(),
|
|
2942
|
-
|
|
2940
|
+
provider: n
|
|
2941
|
+
} = Me(), r = T(() => n.getState().error ?? n.getState().session?.error), o = T(() => /ice candidates/i.test(r() ?? "")), i = T(() => o() ? e("connectionFlow.errorNoIce") : r() ?? e("connectionFlow.errorGeneric")), a = () => {
|
|
2942
|
+
n.closeSession();
|
|
2943
2943
|
};
|
|
2944
2944
|
return (() => {
|
|
2945
2945
|
var s = ai(), l = s.firstChild, d = l.firstChild, u = d.nextSibling, c = u.nextSibling, f = l.nextSibling, h = f.firstChild, g = h.nextSibling;
|
|
@@ -2947,42 +2947,42 @@ const li = (t) => {
|
|
|
2947
2947
|
})();
|
|
2948
2948
|
};
|
|
2949
2949
|
Ae(["click"]);
|
|
2950
|
-
var ci = /* @__PURE__ */ x('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'),
|
|
2950
|
+
var ci = /* @__PURE__ */ x('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'), An = /* @__PURE__ */ x('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'), di = /* @__PURE__ */ x("<div class=w-full style=view-transition-name:connection-flow>"), ui = /* @__PURE__ */ x('<div class="mb-4 text-4xl">✅'), fi = /* @__PURE__ */ x('<div class="mb-4 flex flex-col items-center gap-2"><span class="font-medium text-(--lv-text-primary) text-sm">'), hi = /* @__PURE__ */ x("<div class=text-4xl>✅"), gi = /* @__PURE__ */ x('<img alt class="h-12 w-12 rounded-xl">');
|
|
2951
2951
|
const vi = () => ci(), pi = (t) => {
|
|
2952
2952
|
const {
|
|
2953
2953
|
t: e
|
|
2954
2954
|
} = Q(), {
|
|
2955
|
-
provider:
|
|
2956
|
-
} = Me(), [
|
|
2955
|
+
provider: n
|
|
2956
|
+
} = Me(), [r, o] = D(n.getState().status), i = () => n.getSession()?.getState().peerInfo, a = () => {
|
|
2957
2957
|
const s = i()?.icon;
|
|
2958
2958
|
return s && (s.startsWith("data:image/") || s.startsWith("https://")) ? s : void 0;
|
|
2959
2959
|
};
|
|
2960
2960
|
return Vt(() => {
|
|
2961
|
-
|
|
2961
|
+
n.on("status_change", o);
|
|
2962
2962
|
}), se(() => {
|
|
2963
|
-
|
|
2963
|
+
n.off("status_change", o);
|
|
2964
2964
|
}), (() => {
|
|
2965
2965
|
var s = di();
|
|
2966
|
-
return m(s, v(
|
|
2966
|
+
return m(s, v(Gn, {
|
|
2967
2967
|
get fallback() {
|
|
2968
2968
|
return v(Lt, {
|
|
2969
2969
|
get state() {
|
|
2970
|
-
return
|
|
2970
|
+
return r();
|
|
2971
2971
|
}
|
|
2972
2972
|
});
|
|
2973
2973
|
},
|
|
2974
2974
|
get children() {
|
|
2975
2975
|
return [v(Pe, {
|
|
2976
2976
|
get when() {
|
|
2977
|
-
return
|
|
2977
|
+
return r() === oe.CREATING;
|
|
2978
2978
|
},
|
|
2979
2979
|
get children() {
|
|
2980
|
-
var l =
|
|
2980
|
+
var l = An(), d = l.firstChild, u = d.firstChild, c = u.nextSibling;
|
|
2981
2981
|
return m(l, v(vi, {}), d), m(u, () => e("connectionFlow.preparingConnection")), m(c, () => e("connectionFlow.generatingKeys")), l;
|
|
2982
2982
|
}
|
|
2983
2983
|
}), v(Pe, {
|
|
2984
2984
|
get when() {
|
|
2985
|
-
return
|
|
2985
|
+
return r() === oe.CONNECTING;
|
|
2986
2986
|
},
|
|
2987
2987
|
get children() {
|
|
2988
2988
|
return v(si, {
|
|
@@ -2993,10 +2993,10 @@ const vi = () => ci(), pi = (t) => {
|
|
|
2993
2993
|
}
|
|
2994
2994
|
}), v(Pe, {
|
|
2995
2995
|
get when() {
|
|
2996
|
-
return
|
|
2996
|
+
return r() === oe.CONNECTED;
|
|
2997
2997
|
},
|
|
2998
2998
|
get children() {
|
|
2999
|
-
var l =
|
|
2999
|
+
var l = An(), d = l.firstChild, u = d.firstChild, c = u.nextSibling;
|
|
3000
3000
|
return m(d, v(ve, {
|
|
3001
3001
|
get when() {
|
|
3002
3002
|
return i();
|
|
@@ -3023,7 +3023,7 @@ const vi = () => ci(), pi = (t) => {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
}), v(Pe, {
|
|
3025
3025
|
get when() {
|
|
3026
|
-
return
|
|
3026
|
+
return r() === oe.ERROR;
|
|
3027
3027
|
},
|
|
3028
3028
|
get children() {
|
|
3029
3029
|
return v(li, {
|
|
@@ -3052,14 +3052,14 @@ var mi = {
|
|
|
3052
3052
|
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
3053
3053
|
return !0;
|
|
3054
3054
|
return !1;
|
|
3055
|
-
}, yi = (...t) => t.filter((e,
|
|
3055
|
+
}, yi = (...t) => t.filter((e, n, r) => !!e && e.trim() !== "" && r.indexOf(e) === n).join(" ").trim(), xi = (t) => t.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, n, r) => r ? r.toUpperCase() : n.toLowerCase()), $n = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ki = (t) => {
|
|
3056
3056
|
const e = xi(t);
|
|
3057
3057
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3058
3058
|
}, Ci = (t) => {
|
|
3059
|
-
const [e,
|
|
3059
|
+
const [e, n] = wt(t, ["color", "size", "strokeWidth", "children", "class", "name", "iconNode", "absoluteStrokeWidth"]);
|
|
3060
3060
|
return (() => {
|
|
3061
|
-
var
|
|
3062
|
-
return gt(
|
|
3061
|
+
var r = bi();
|
|
3062
|
+
return gt(r, X(Le, {
|
|
3063
3063
|
get width() {
|
|
3064
3064
|
return e.size ?? Le.width;
|
|
3065
3065
|
},
|
|
@@ -3073,19 +3073,19 @@ var mi = {
|
|
|
3073
3073
|
return Re(() => !!e.absoluteStrokeWidth)() ? Number(e.strokeWidth ?? Le["stroke-width"]) * 24 / Number(e.size) : Number(e.strokeWidth ?? Le["stroke-width"]);
|
|
3074
3074
|
},
|
|
3075
3075
|
get class() {
|
|
3076
|
-
return yi("lucide", "lucide-icon", ...e.name != null ? [`lucide-${
|
|
3076
|
+
return yi("lucide", "lucide-icon", ...e.name != null ? [`lucide-${$n(ki(e.name))}`, `lucide-${$n(e.name)}`] : [], e.class != null ? e.class : "");
|
|
3077
3077
|
},
|
|
3078
3078
|
get "aria-hidden"() {
|
|
3079
|
-
return !e.children && !wi(
|
|
3079
|
+
return !e.children && !wi(n) ? "true" : void 0;
|
|
3080
3080
|
}
|
|
3081
|
-
},
|
|
3081
|
+
}, n), !0, !0), m(r, v(Ce, {
|
|
3082
3082
|
get each() {
|
|
3083
3083
|
return e.iconNode;
|
|
3084
3084
|
},
|
|
3085
|
-
children: ([o, i]) => v(
|
|
3085
|
+
children: ([o, i]) => v(Kr, X({
|
|
3086
3086
|
component: o
|
|
3087
3087
|
}, i))
|
|
3088
|
-
})),
|
|
3088
|
+
})), r;
|
|
3089
3089
|
})();
|
|
3090
3090
|
}, $e = Ci, Si = [["path", {
|
|
3091
3091
|
d: "m15 18-6-6 6-6",
|
|
@@ -3113,7 +3113,7 @@ var mi = {
|
|
|
3113
3113
|
}]], Pi = (t) => v($e, X(t, {
|
|
3114
3114
|
iconNode: Ni,
|
|
3115
3115
|
name: "circle-question-mark"
|
|
3116
|
-
})),
|
|
3116
|
+
})), sr = Pi, Bi = [["path", {
|
|
3117
3117
|
d: "M5 12h14",
|
|
3118
3118
|
key: "1ays0h"
|
|
3119
3119
|
}], ["path", {
|
|
@@ -3212,107 +3212,107 @@ var mi = {
|
|
|
3212
3212
|
iconNode: Wi,
|
|
3213
3213
|
name: "x"
|
|
3214
3214
|
})), Ki = Gi, Hi = /\s+/g, qi = (t) => typeof t != "string" || !t ? t : t.replace(Hi, " ").trim(), mt = (...t) => {
|
|
3215
|
-
const e = [],
|
|
3216
|
-
if (!
|
|
3217
|
-
if (Array.isArray(
|
|
3218
|
-
for (let i = 0, a =
|
|
3215
|
+
const e = [], n = (r) => {
|
|
3216
|
+
if (!r && r !== 0 && r !== 0n) return;
|
|
3217
|
+
if (Array.isArray(r)) {
|
|
3218
|
+
for (let i = 0, a = r.length; i < a; i++) n(r[i]);
|
|
3219
3219
|
return;
|
|
3220
3220
|
}
|
|
3221
|
-
const o = typeof
|
|
3221
|
+
const o = typeof r;
|
|
3222
3222
|
if (o === "string" || o === "number" || o === "bigint") {
|
|
3223
|
-
if (o === "number" &&
|
|
3224
|
-
e.push(String(
|
|
3223
|
+
if (o === "number" && r !== r) return;
|
|
3224
|
+
e.push(String(r));
|
|
3225
3225
|
} else if (o === "object") {
|
|
3226
|
-
const i = Object.keys(
|
|
3226
|
+
const i = Object.keys(r);
|
|
3227
3227
|
for (let a = 0, s = i.length; a < s; a++) {
|
|
3228
3228
|
const l = i[a];
|
|
3229
|
-
|
|
3229
|
+
r[l] && e.push(l);
|
|
3230
3230
|
}
|
|
3231
3231
|
}
|
|
3232
3232
|
};
|
|
3233
|
-
for (let
|
|
3234
|
-
const i = t[
|
|
3235
|
-
i != null &&
|
|
3233
|
+
for (let r = 0, o = t.length; r < o; r++) {
|
|
3234
|
+
const i = t[r];
|
|
3235
|
+
i != null && n(i);
|
|
3236
3236
|
}
|
|
3237
3237
|
return e.length > 0 ? qi(e.join(" ")) : void 0;
|
|
3238
|
-
},
|
|
3238
|
+
}, Tn = (t) => t === !1 ? "false" : t === !0 ? "true" : t === 0 ? "0" : t, ne = (t) => {
|
|
3239
3239
|
if (!t || typeof t != "object") return !0;
|
|
3240
3240
|
for (const e in t) return !1;
|
|
3241
3241
|
return !0;
|
|
3242
3242
|
}, Xi = (t, e) => {
|
|
3243
3243
|
if (t === e) return !0;
|
|
3244
3244
|
if (!t || !e) return !1;
|
|
3245
|
-
const
|
|
3246
|
-
if (
|
|
3247
|
-
for (let o = 0; o <
|
|
3248
|
-
const i =
|
|
3249
|
-
if (!
|
|
3245
|
+
const n = Object.keys(t), r = Object.keys(e);
|
|
3246
|
+
if (n.length !== r.length) return !1;
|
|
3247
|
+
for (let o = 0; o < n.length; o++) {
|
|
3248
|
+
const i = n[o];
|
|
3249
|
+
if (!r.includes(i) || t[i] !== e[i]) return !1;
|
|
3250
3250
|
}
|
|
3251
3251
|
return !0;
|
|
3252
3252
|
}, Qi = (t, e) => {
|
|
3253
|
-
for (const
|
|
3254
|
-
if (Object.prototype.hasOwnProperty.call(e,
|
|
3255
|
-
const
|
|
3256
|
-
|
|
3253
|
+
for (const n in e)
|
|
3254
|
+
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
3255
|
+
const r = e[n];
|
|
3256
|
+
n in t ? t[n] = mt(t[n], r) : t[n] = r;
|
|
3257
3257
|
}
|
|
3258
3258
|
return t;
|
|
3259
|
-
},
|
|
3260
|
-
for (let
|
|
3261
|
-
const
|
|
3262
|
-
Array.isArray(
|
|
3259
|
+
}, ar = (t, e) => {
|
|
3260
|
+
for (let n = 0; n < t.length; n++) {
|
|
3261
|
+
const r = t[n];
|
|
3262
|
+
Array.isArray(r) ? ar(r, e) : r && e.push(r);
|
|
3263
3263
|
}
|
|
3264
|
-
},
|
|
3264
|
+
}, lr = (...t) => {
|
|
3265
3265
|
const e = [];
|
|
3266
|
-
|
|
3267
|
-
const
|
|
3268
|
-
for (let
|
|
3269
|
-
e[
|
|
3270
|
-
return
|
|
3266
|
+
ar(t, e);
|
|
3267
|
+
const n = [];
|
|
3268
|
+
for (let r = 0; r < e.length; r++)
|
|
3269
|
+
e[r] && n.push(e[r]);
|
|
3270
|
+
return n;
|
|
3271
3271
|
}, jt = (t, e) => {
|
|
3272
|
-
const
|
|
3273
|
-
for (const
|
|
3274
|
-
const o = t[
|
|
3275
|
-
if (
|
|
3276
|
-
const i = e[
|
|
3277
|
-
Array.isArray(o) || Array.isArray(i) ? r
|
|
3272
|
+
const n = {};
|
|
3273
|
+
for (const r in t) {
|
|
3274
|
+
const o = t[r];
|
|
3275
|
+
if (r in e) {
|
|
3276
|
+
const i = e[r];
|
|
3277
|
+
Array.isArray(o) || Array.isArray(i) ? n[r] = lr(i, o) : typeof o == "object" && typeof i == "object" && o && i ? n[r] = jt(o, i) : n[r] = i + " " + o;
|
|
3278
3278
|
} else
|
|
3279
|
-
r
|
|
3279
|
+
n[r] = o;
|
|
3280
3280
|
}
|
|
3281
|
-
for (const
|
|
3282
|
-
|
|
3283
|
-
return
|
|
3281
|
+
for (const r in e)
|
|
3282
|
+
r in t || (n[r] = e[r]);
|
|
3283
|
+
return n;
|
|
3284
3284
|
}, Ji = {
|
|
3285
3285
|
twMerge: !0,
|
|
3286
3286
|
twMergeConfig: {}
|
|
3287
3287
|
};
|
|
3288
3288
|
function Zi() {
|
|
3289
|
-
let t = null, e = {},
|
|
3289
|
+
let t = null, e = {}, n = !1;
|
|
3290
3290
|
return {
|
|
3291
3291
|
get cachedTwMerge() {
|
|
3292
3292
|
return t;
|
|
3293
3293
|
},
|
|
3294
|
-
set cachedTwMerge(
|
|
3295
|
-
t =
|
|
3294
|
+
set cachedTwMerge(r) {
|
|
3295
|
+
t = r;
|
|
3296
3296
|
},
|
|
3297
3297
|
get cachedTwMergeConfig() {
|
|
3298
3298
|
return e;
|
|
3299
3299
|
},
|
|
3300
|
-
set cachedTwMergeConfig(
|
|
3301
|
-
e =
|
|
3300
|
+
set cachedTwMergeConfig(r) {
|
|
3301
|
+
e = r;
|
|
3302
3302
|
},
|
|
3303
3303
|
get didTwMergeConfigChange() {
|
|
3304
|
-
return
|
|
3304
|
+
return n;
|
|
3305
3305
|
},
|
|
3306
|
-
set didTwMergeConfigChange(
|
|
3307
|
-
|
|
3306
|
+
set didTwMergeConfigChange(r) {
|
|
3307
|
+
n = r;
|
|
3308
3308
|
},
|
|
3309
3309
|
reset() {
|
|
3310
|
-
t = null, e = {},
|
|
3310
|
+
t = null, e = {}, n = !1;
|
|
3311
3311
|
}
|
|
3312
3312
|
};
|
|
3313
3313
|
}
|
|
3314
3314
|
var Et = Zi(), Yi = (t) => {
|
|
3315
|
-
const e = (
|
|
3315
|
+
const e = (r, o) => {
|
|
3316
3316
|
const {
|
|
3317
3317
|
extend: i = null,
|
|
3318
3318
|
slots: a = {},
|
|
@@ -3320,17 +3320,17 @@ var Et = Zi(), Yi = (t) => {
|
|
|
3320
3320
|
compoundVariants: l = [],
|
|
3321
3321
|
compoundSlots: d = [],
|
|
3322
3322
|
defaultVariants: u = {}
|
|
3323
|
-
} =
|
|
3324
|
-
!
|
|
3325
|
-
const b =
|
|
3323
|
+
} = r, c = { ...Ji, ...o }, f = i?.base ? mt(i.base, r?.base) : r?.base, h = i?.variants && !ne(i.variants) ? jt(s, i.variants) : s, g = i?.defaultVariants && !ne(i.defaultVariants) ? { ...i.defaultVariants, ...u } : u;
|
|
3324
|
+
!ne(c.twMergeConfig) && !Xi(c.twMergeConfig, Et.cachedTwMergeConfig) && (Et.didTwMergeConfigChange = !0, Et.cachedTwMergeConfig = c.twMergeConfig);
|
|
3325
|
+
const b = ne(i?.slots), p = ne(a) ? {} : {
|
|
3326
3326
|
// add "base" to the slots object
|
|
3327
|
-
base: mt(
|
|
3327
|
+
base: mt(r?.base, b && i?.base),
|
|
3328
3328
|
...a
|
|
3329
3329
|
}, C = b ? p : Qi(
|
|
3330
3330
|
{ ...i?.slots },
|
|
3331
|
-
|
|
3332
|
-
), k =
|
|
3333
|
-
if (
|
|
3331
|
+
ne(p) ? { base: r?.base } : p
|
|
3332
|
+
), k = ne(i?.compoundVariants) ? l : lr(i?.compoundVariants, l), y = (_) => {
|
|
3333
|
+
if (ne(h) && ne(a) && b)
|
|
3334
3334
|
return t(f, _?.class, _?.className)(c);
|
|
3335
3335
|
if (k && !Array.isArray(k))
|
|
3336
3336
|
throw new TypeError(
|
|
@@ -3342,14 +3342,14 @@ var Et = Zi(), Yi = (t) => {
|
|
|
3342
3342
|
);
|
|
3343
3343
|
const pe = (A, $ = h, E = null, R = null) => {
|
|
3344
3344
|
const N = $[A];
|
|
3345
|
-
if (!N ||
|
|
3345
|
+
if (!N || ne(N))
|
|
3346
3346
|
return null;
|
|
3347
3347
|
const O = R?.[A] ?? _?.[A];
|
|
3348
3348
|
if (O === null) return null;
|
|
3349
|
-
const J =
|
|
3349
|
+
const J = Tn(O);
|
|
3350
3350
|
if (typeof J == "object")
|
|
3351
3351
|
return null;
|
|
3352
|
-
const ce = g?.[A], G = J ??
|
|
3352
|
+
const ce = g?.[A], G = J ?? Tn(ce);
|
|
3353
3353
|
return N[G || "false"];
|
|
3354
3354
|
}, he = () => {
|
|
3355
3355
|
if (!h) return null;
|
|
@@ -3382,7 +3382,7 @@ var Et = Zi(), Yi = (t) => {
|
|
|
3382
3382
|
...E,
|
|
3383
3383
|
...$
|
|
3384
3384
|
};
|
|
3385
|
-
},
|
|
3385
|
+
}, nt = (A = [], $) => {
|
|
3386
3386
|
const E = [], R = A.length;
|
|
3387
3387
|
for (let N = 0; N < R; N++) {
|
|
3388
3388
|
const { class: O, className: J, ...ce } = A[N];
|
|
@@ -3407,8 +3407,8 @@ var Et = Zi(), Yi = (t) => {
|
|
|
3407
3407
|
G && (O && E.push(O), J && E.push(J));
|
|
3408
3408
|
}
|
|
3409
3409
|
return E;
|
|
3410
|
-
},
|
|
3411
|
-
const $ =
|
|
3410
|
+
}, rt = (A) => {
|
|
3411
|
+
const $ = nt(k, A);
|
|
3412
3412
|
if (!Array.isArray($)) return $;
|
|
3413
3413
|
const E = {}, R = t;
|
|
3414
3414
|
for (let N = 0; N < $.length; N++) {
|
|
@@ -3430,7 +3430,7 @@ var Et = Zi(), Yi = (t) => {
|
|
|
3430
3430
|
className: J,
|
|
3431
3431
|
...ce
|
|
3432
3432
|
} = d[R];
|
|
3433
|
-
if (!
|
|
3433
|
+
if (!ne(ce)) {
|
|
3434
3434
|
let G = !0;
|
|
3435
3435
|
for (const ae in ce) {
|
|
3436
3436
|
const me = E[ae], le = ce[ae];
|
|
@@ -3448,13 +3448,13 @@ var Et = Zi(), Yi = (t) => {
|
|
|
3448
3448
|
}
|
|
3449
3449
|
return $;
|
|
3450
3450
|
};
|
|
3451
|
-
if (!
|
|
3451
|
+
if (!ne(a) || !b) {
|
|
3452
3452
|
const A = {};
|
|
3453
|
-
if (typeof C == "object" && !
|
|
3453
|
+
if (typeof C == "object" && !ne(C)) {
|
|
3454
3454
|
const $ = t;
|
|
3455
3455
|
for (const E in C)
|
|
3456
3456
|
A[E] = (R) => {
|
|
3457
|
-
const N =
|
|
3457
|
+
const N = rt(R), O = Te(R);
|
|
3458
3458
|
return $(
|
|
3459
3459
|
C[E],
|
|
3460
3460
|
De(E, R),
|
|
@@ -3470,7 +3470,7 @@ var Et = Zi(), Yi = (t) => {
|
|
|
3470
3470
|
return t(
|
|
3471
3471
|
f,
|
|
3472
3472
|
he(),
|
|
3473
|
-
|
|
3473
|
+
nt(k),
|
|
3474
3474
|
_?.class,
|
|
3475
3475
|
_?.className
|
|
3476
3476
|
)(c);
|
|
@@ -3482,10 +3482,10 @@ var Et = Zi(), Yi = (t) => {
|
|
|
3482
3482
|
};
|
|
3483
3483
|
return {
|
|
3484
3484
|
tv: e,
|
|
3485
|
-
createTV: (
|
|
3485
|
+
createTV: (r) => (o, i) => e(o, i ? jt(r, i) : r)
|
|
3486
3486
|
};
|
|
3487
|
-
}, es = (...t) => (e) => mt(t) || void 0, { tv: xt } = Yi(es), ts = /* @__PURE__ */ x("<a>"),
|
|
3488
|
-
const
|
|
3487
|
+
}, es = (...t) => (e) => mt(t) || void 0, { tv: xt } = Yi(es), ts = /* @__PURE__ */ x("<a>"), ns = /* @__PURE__ */ x("<button type=button>");
|
|
3488
|
+
const En = xt({
|
|
3489
3489
|
base: "flex items-center justify-center rounded-lg transition-all duration-100 cursor-pointer active:scale-95",
|
|
3490
3490
|
variants: {
|
|
3491
3491
|
$variant: {
|
|
@@ -3509,10 +3509,10 @@ const Tr = xt({
|
|
|
3509
3509
|
$aspect: "auto"
|
|
3510
3510
|
}
|
|
3511
3511
|
}), je = (t) => {
|
|
3512
|
-
const [e,
|
|
3512
|
+
const [e, n] = wt(t, ["children", "class", "$variant", "$size", "$aspect", "href", "onClick"]);
|
|
3513
3513
|
return e.href ? (() => {
|
|
3514
|
-
var
|
|
3515
|
-
return gt(
|
|
3514
|
+
var r = ts();
|
|
3515
|
+
return gt(r, X({
|
|
3516
3516
|
get href() {
|
|
3517
3517
|
return e.href;
|
|
3518
3518
|
},
|
|
@@ -3520,55 +3520,55 @@ const Tr = xt({
|
|
|
3520
3520
|
return e.onClick;
|
|
3521
3521
|
},
|
|
3522
3522
|
get class() {
|
|
3523
|
-
return ke(
|
|
3523
|
+
return ke(En({
|
|
3524
3524
|
$variant: e.$variant,
|
|
3525
3525
|
$size: e.$size,
|
|
3526
3526
|
$aspect: e.$aspect
|
|
3527
3527
|
}), e.class);
|
|
3528
3528
|
}
|
|
3529
|
-
},
|
|
3529
|
+
}, n), !1, !0), m(r, () => e.children), r;
|
|
3530
3530
|
})() : (() => {
|
|
3531
|
-
var
|
|
3532
|
-
return gt(
|
|
3531
|
+
var r = ns();
|
|
3532
|
+
return gt(r, X({
|
|
3533
3533
|
get onClick() {
|
|
3534
3534
|
return e.onClick;
|
|
3535
3535
|
},
|
|
3536
3536
|
get class() {
|
|
3537
|
-
return ke(
|
|
3537
|
+
return ke(En({
|
|
3538
3538
|
$variant: e.$variant,
|
|
3539
3539
|
$size: e.$size,
|
|
3540
3540
|
$aspect: e.$aspect
|
|
3541
3541
|
}), e.class);
|
|
3542
3542
|
}
|
|
3543
|
-
},
|
|
3543
|
+
}, n), !1, !0), m(r, () => e.children), r;
|
|
3544
3544
|
})();
|
|
3545
3545
|
};
|
|
3546
|
-
var
|
|
3547
|
-
const
|
|
3548
|
-
var e =
|
|
3549
|
-
return m(
|
|
3546
|
+
var rs = /* @__PURE__ */ x('<div class="flex h-full w-full justify-between"><div class="grow py-1 ps-1"><div class="h-full rounded-sm border border-gray-300 bg-gray-400"></div></div><div class="flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5">'), os = /* @__PURE__ */ x('<div class="h-1.5 w-1.5 rounded-full border border-gray-500">'), is = /* @__PURE__ */ x('<div class="flex h-full w-full flex-col justify-between"><div class="grow px-1 pt-1"><div class="h-full rounded-sm border border-gray-200 bg-gray-300"></div></div><div class="flex h-3 w-full items-center justify-center gap-0.5 pb-0.5">'), ss = /* @__PURE__ */ x('<div class="h-1.5 w-1.5 rounded-full border border-gray-400">'), as = /* @__PURE__ */ x('<div class="-space-x-4 flex items-end"><div class="h-38 w-48 overflow-hidden rounded-lg bg-gray-300"></div><div class="h-18 w-12 overflow-hidden rounded-lg bg-gray-200">');
|
|
3547
|
+
const cr = (t) => t ? 1 : 3, ls = (t) => (() => {
|
|
3548
|
+
var e = rs(), n = e.firstChild, r = n.nextSibling;
|
|
3549
|
+
return m(r, v(Ce, {
|
|
3550
3550
|
get each() {
|
|
3551
3551
|
return Array.from({
|
|
3552
|
-
length:
|
|
3552
|
+
length: cr(t.isApple)
|
|
3553
3553
|
});
|
|
3554
3554
|
},
|
|
3555
3555
|
children: () => os()
|
|
3556
3556
|
})), e;
|
|
3557
3557
|
})(), cs = (t) => (() => {
|
|
3558
|
-
var e = is(),
|
|
3559
|
-
return m(
|
|
3558
|
+
var e = is(), n = e.firstChild, r = n.nextSibling;
|
|
3559
|
+
return m(r, v(Ce, {
|
|
3560
3560
|
get each() {
|
|
3561
3561
|
return Array.from({
|
|
3562
|
-
length:
|
|
3562
|
+
length: cr(t.isApple)
|
|
3563
3563
|
});
|
|
3564
3564
|
},
|
|
3565
3565
|
children: () => ss()
|
|
3566
3566
|
})), e;
|
|
3567
3567
|
})(), ds = () => (() => {
|
|
3568
|
-
var e = as(),
|
|
3569
|
-
return m(
|
|
3568
|
+
var e = as(), n = e.firstChild, r = n.nextSibling;
|
|
3569
|
+
return m(n, v(ls, {
|
|
3570
3570
|
isApple: !0
|
|
3571
|
-
})), m(
|
|
3571
|
+
})), m(r, v(cs, {
|
|
3572
3572
|
isApple: !0
|
|
3573
3573
|
})), e;
|
|
3574
3574
|
})();
|
|
@@ -3577,13 +3577,13 @@ const fs = (t) => {
|
|
|
3577
3577
|
const {
|
|
3578
3578
|
t: e
|
|
3579
3579
|
} = Q(), {
|
|
3580
|
-
start:
|
|
3580
|
+
start: n
|
|
3581
3581
|
} = Mo();
|
|
3582
3582
|
return (() => {
|
|
3583
|
-
var
|
|
3584
|
-
return m(
|
|
3583
|
+
var r = us(), o = r.firstChild, i = o.firstChild, a = o.nextSibling;
|
|
3584
|
+
return m(r, v(ds, {}), o), m(i, () => e("disconnected.prompt")), m(a, v(je, {
|
|
3585
3585
|
type: "button",
|
|
3586
|
-
onClick:
|
|
3586
|
+
onClick: n,
|
|
3587
3587
|
class: "z-10 px-6 py-3",
|
|
3588
3588
|
$variant: "primary",
|
|
3589
3589
|
$size: "lg",
|
|
@@ -3608,7 +3608,7 @@ const fs = (t) => {
|
|
|
3608
3608
|
class: "h-5 w-5 text-(--lv-text-muted)"
|
|
3609
3609
|
});
|
|
3610
3610
|
}
|
|
3611
|
-
}), null),
|
|
3611
|
+
}), null), r;
|
|
3612
3612
|
})();
|
|
3613
3613
|
};
|
|
3614
3614
|
var hs = /* @__PURE__ */ x('<div class="flex flex-col space-y-2 px-4 text-start"><div class="min-h-32 w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class="flex justify-center items-center grow"></div></div><div class="w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class></div></div><div class="w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class>');
|
|
@@ -3617,16 +3617,16 @@ const gs = () => {
|
|
|
3617
3617
|
t
|
|
3618
3618
|
} = Q();
|
|
3619
3619
|
return (() => {
|
|
3620
|
-
var e = hs(),
|
|
3621
|
-
return m(
|
|
3620
|
+
var e = hs(), n = e.firstChild, r = n.firstChild, o = r.nextSibling, i = n.nextSibling, a = i.firstChild, s = i.nextSibling, l = s.firstChild;
|
|
3621
|
+
return m(r, () => t("info.scanQrCode")), m(o, v(Li, {
|
|
3622
3622
|
class: "w-10 h-10"
|
|
3623
3623
|
})), m(a, () => t("info.approveOnDevice")), m(l, () => t("info.youreConnected")), e;
|
|
3624
3624
|
})();
|
|
3625
3625
|
}, Dt = (t, { duration: e = 200 } = {}) => {
|
|
3626
|
-
const
|
|
3627
|
-
let l, d =
|
|
3626
|
+
const n = typeof t == "function" ? t : () => t, r = n(), [o, i] = D(r), [a, s] = D(void 0);
|
|
3627
|
+
let l, d = r;
|
|
3628
3628
|
return ie(() => {
|
|
3629
|
-
const u =
|
|
3629
|
+
const u = n();
|
|
3630
3630
|
Object.is(u, d) || (l && globalThis.clearTimeout(l), s(() => d), i(() => u), d = u, l = globalThis.setTimeout(() => {
|
|
3631
3631
|
s(() => {
|
|
3632
3632
|
}), l = void 0;
|
|
@@ -3639,39 +3639,39 @@ const gs = () => {
|
|
|
3639
3639
|
isTransitioning: () => a() !== void 0
|
|
3640
3640
|
};
|
|
3641
3641
|
}, et = () => {
|
|
3642
|
-
const { provider: t } = Me(), [e,
|
|
3643
|
-
|
|
3642
|
+
const { provider: t } = Me(), [e, n] = D(t.storage.getSettings()), r = (u) => {
|
|
3643
|
+
n(u), t.storage.setSettings(u);
|
|
3644
3644
|
};
|
|
3645
3645
|
return {
|
|
3646
3646
|
settings: e,
|
|
3647
|
-
setSettings:
|
|
3647
|
+
setSettings: r,
|
|
3648
3648
|
setLanguage: (u) => {
|
|
3649
|
-
|
|
3649
|
+
r({ ...e(), language: u });
|
|
3650
3650
|
},
|
|
3651
3651
|
setThemeMode: (u) => {
|
|
3652
|
-
|
|
3652
|
+
r({ ...e(), theme: u });
|
|
3653
3653
|
},
|
|
3654
3654
|
setSignalingProtocol: (u) => {
|
|
3655
|
-
|
|
3655
|
+
r({ ...e(), signaling: { p: u, s: e()?.signaling?.s ?? {} } });
|
|
3656
3656
|
},
|
|
3657
3657
|
setSignalingOptions: (u) => {
|
|
3658
3658
|
const c = e()?.signaling?.p;
|
|
3659
3659
|
if (!c) return;
|
|
3660
3660
|
const f = e()?.signaling?.s ?? {};
|
|
3661
|
-
|
|
3661
|
+
r({ ...e(), signaling: { p: c, s: { ...f, [c]: u.url } } });
|
|
3662
3662
|
},
|
|
3663
3663
|
setRetainSessionHistory: (u) => {
|
|
3664
|
-
|
|
3664
|
+
r({ ...e(), retainHistory: u });
|
|
3665
3665
|
},
|
|
3666
3666
|
setAutoReconnect: (u) => {
|
|
3667
|
-
|
|
3667
|
+
r({ ...e(), autoReconnect: u });
|
|
3668
3668
|
}
|
|
3669
3669
|
};
|
|
3670
|
-
},
|
|
3671
|
-
const { settings: t } = et(), e = T(() => t().theme),
|
|
3670
|
+
}, dr = () => {
|
|
3671
|
+
const { settings: t } = et(), e = T(() => t().theme), n = T(() => "light");
|
|
3672
3672
|
return {
|
|
3673
3673
|
theme: e,
|
|
3674
|
-
mode:
|
|
3674
|
+
mode: n
|
|
3675
3675
|
};
|
|
3676
3676
|
}, vs = "data:image/webp;base64,UklGRjYRAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSOwHAAABsIb///k21zdJk7anNmfbRrf01uztcO5s2yqOPdu27e2ybaPtlLRJ83nw+ye/3++PZ/eDiJgA+hV0c620Pml9MhYu8HlhejUhJbv1SfO5T+964XrgN/I9hD5uLKDZXXDnXPhfq0ImrdX+BMHb/blCjkJo3v2laeVsmvojRJ8L5ir7Vgz7auuIclbtpHwTtdjCFXlBHIBXGzpFaiXwr06lAt/dR8oQf9cPMgDXyW4R2qCAdvPS09MzBnfo6HPrWBJobjAj3fd5q5+4fAFcJ1qY5dnCbHxathRv/+9rX3wAcrPiZbXafX5TRR1hoxvPPPjJG7ApRE7d5wDOFNYXIgqsO/6M04uzuZSSl8D20B0iCu+465sCusuw/AOKvfSIKKDdYeZVTRmp2QqXk/WJKDr93fdHnUhiwE6w2W1Jty2VGpYkmY2zFeaY9Et6FtirhcioYy4pjCLDbviFeVzcuHqB3WI1rvkKQ8mwbfuY702MK+4mk1PTuAo9Ze4lGNgT5k6scRV7xpwIkRFevWkTVTatFWWSZxLR5DuzwSyuWvr5jw6V5lxZmGKRU+/vi1oH8lV9Lydo/DOoOjsrUUbqC8A5ycSV/JjZaROUvKwAaj9WRpxpGQDcT+Yq/YrZFyAmeD00eDxJmHUP86UeV6qT2WAWYp5VwORfWLTng8LnBXPmSsw65mAw31/YbuZbA64f8yQ0zwGAh70jyL/BbsaTRVJD2l1k8vrqRvgxALhVl9jIFQCQa5dCVP4sANwppRcDXACym5FyoTMAsDVIDlV5AABZOhF1CQAyzF6oxRcAX3+QRAMLADyvIGgX86aCev6QD+BGUfLutwgA1lolhe0HgLliws8zd2JVY90EABPJ17ofALyrJona5wG4HC0k+bGgVCezUUDVNwCelvbJugkARsiKugAgr62aijxk5hD/CABYYPaJfucGsN1fEk0FgD/LiOOiod+AcyX5rJsAuNqR74UfAHhVVlb9XACXooU8Ym7H8lnbTBlWkviLPQHwpDiHeSkAdydZoScBZNcQUfUDsy+AT/SPDgCrLRzUBwCyZNGfAXi6i/jByWw0q2UoAEwm3jqfABwKlNXNA+DvIlIVNqlmIQB3J66o6wCuRMmqkwtgf4DWrDsBfKjCZdsB4G05WQl3AZwN0VrMDQBXorloOQBnM1m2XQCeFxfQIp9ZZVJJ3F0AhwP4JgHwdJZlWg/gQ2UBI8BOJpWWfgngqJK5XMeGIUpDAGC0LFoIwNVawBiFcWpp+A3AWgsTmvHa/WVvFYXW+QDWN7Hb7VUCFExFm9jt9tSKZgW/Cna7PWUBAHc7Ae1cAFztVZVF7AAPAOwMZhp9B+B2OBzOD0vDmX6PHE6Hw/lmmj8RWSe9dTocDpeoyJ0Adkepz28H2I+VmMaMsrsjESXdgXJ2VSKqmwPvQii+z/JhSaQ+2z6FnGpcGEREZd97+V6fiNq6JalbIZMxLVK4ncg08uVBVSIKWuPlUAIRxZ3WkUbMfIbKnQXwsSuxKcyZWbNnz5lWm9j4YXNnz549Z0wRYitOnjN79sxDulAnF8ChAIbKZG5dkmpS6OkBkE6yR+pC0gMAh5WILCZSHgkAmdJG6UL8PQBnQr34OF+nIjoNqWvlCT0N4HlxLvN6fYpeU4CcyX4c5o0AvqZwhV3UpxEA8L4KB80GgH5chR7q098Z/JGnnQvAv7ja5uvT3xS68VR6D+B0KM9cGEjEWQA5tTmCjhgJzQKAsRy1PhlK63wAJ0N8mwpDibsC4OsvPiXdMhbKAoDN/r4M9hhMzbcAvrb3IfEitFak2U/RqjL/FwAuFfZi/Re01uCKK+9gSXHuznxU4y0ArI9RMA12aC14PwBkirBuYXJqCDBNZ7AuiYhsg78AQK5bQ7F3mWvRAgKPM9nVBFD0QQaXBjVtv/E7ALyc+UVLt5mnhQXE3WAeFxVBNR4y8DhdYPN6N/yupTvMk0ICyrxhLocLIfsjxmveFHMjLYWdZT7VEPCjgzkdIoZSzvjwsq+NGjMZGjFvYPKbCegDdjGJTph9x828W1GDSCmLLHJpjCDKYDBKwCKFQcKICnWaNmv2yOpW8nZ/y1a5m28AKBDxJw+zxswVeYn5niLB9+qfoFZHqoBG35hLUVyFnzJPS6gkaI9qLkQLSLrHZNfgir/DrPVTCTV6qZLsLiTQtpf51oDLNNwJvG9Gqm2663W+S3b+u0MtTSKsuwWRteuGRXazeiiwXLMWsptXCiKh4ojMJjJEpfeVRRhl1CXmTpxxJT9RiDWuQo+Zu3HGVTeXORZsXKlOZpPZuLq4mWUm45oJdgIZdtARxtXBuEo8Y16XMa7+HuZUqGFFnwQ7nWT6WXVttIfJri/B/Psdu6cX06/462B3BUholg3gVu8IvSr3nvnWnsRbVoN1nehfzKxLSXeZ5VYJflsUADxc279CuP5Q7xzgXHmS2dftBcDbi/N/Zy8e7IPJX9GiKcuPM/okk9TASR99AFDgeH5i/rx0xXlLDrKHNnQNFFFufEY6f0aPCD41muz783wR7BojoMF9CPWsj9QAUUinXTmScCeRy7YRogdogiggJfOMQ8rL4lwRV4XN0wgRRfw4Yc8Lp7CVNi7LYlGe3tohooBSv0xcfebxF4+Xb5+VP20qRfwVLojJXxquKdYUUqRe1z5paWlpfXql1FKsXfU3JLJ49z5p/H3ahdCvnwNWUDggJAkAAFAzAJ0BKoAAgAA+TR6NRCKhoZUKb+QoBMS0gXAB+AH6AA+Ufoz/Jfxg77f7Z+S/YJ+nfbP1gq1XNV9yP0v9m88u9n4J6gXsHdvbKegF67/Sv+T4Lf9d6F/VT2AP5b/Kf+VyINAD+K/1H/h/43+8fC5/Lf9f7u/bv+Wf4H/xf5X4Bv43/Qv+F/avaA9c37VewZ+qi6YnObtVG6xTptSDxWdZOyXNa59dCAiUQx0s9QeFuTtEkCCZ1VDt2yVu6wuLleg8UGC+xygF+ikCc6OFScW3keDjkgMNXtWhnlVuP8adiwFQqtWB898/cNZ/ZPZSbT/SGkUu9L/80Jh9MhRi3Uj+yGTg6IHihIpDzvYgtbVOefgBSvK2WP/ViDlFYMqcmV3S37jDRft7Kj/mgg3mnWnsm+HacJJd/5io8v7EadJwLNxOge91hk1mPHA+PYMINGKvA97JcZEFvzSmFAqBtHUzKqf50fXJLd0XhZmBQWhr/vwnXFii3VNfEfiIXySQr4RbWO8yPn7m0Z/G9Qg9KvDGNk/4ljKJZS1VxLuWUk+To4QAAP7+R5Re1p/qxbSLcVAEvC2Ae4+JAjoahTi+1Tx+R05wIIyRWKCPZqNwQFn8n4hkHC+YaT3NWwkaKKHw8WZH8NqlsIlsWxinFRzXJs8GKMdG2p7hG3px0/aKtlukGtCOvGxG+BPnLqe18kpHi6ID1Cv9VF+k0GfsVXRTfFJ5kFnxBXWEWfHSCRjr5ChoztIFhGiUjdeGW4oPH0mJRKxppXb/SuuY9AJME864F/0/K+rCPHrn4fAaKjIrvZAAGFSMZfovGmlhlAOl0kQHWDDypV8h5DEaTfOmXo5EIScC+SMO14Ob/u1b/QV6+wekJBWTZhjk7IgO7VyRpgGNBj23IgoGI3ZehsZNjz/FwpX2moSeDzk53u1qkXHaKG5d2qCOZSmjD/Mw60AzF22eAe+RoeFKSwUIci9CQD/6et+xH8moMwLOUzzuwuyvWC4o2rAhgXyPm9/OgwkYNR/47Hy+a8QNAxmh8RiQHQGZWu2c8agkAJ64pR2Tx0moSJcAN6mcLGZJM6OR4UvYNwbS3zHo/m2mznwl6FpIv416AQ2FRptmE3mPGs+fumcGy9QktCC15M3KIwNfUa+v+vCs+8cLY3ceuO7FOrdF4O62gur2g1PMJvcYV8xIJTjMC2ZxBtam98jF7JFQus/mSBWdPgN/EJ8azS69gF/kVpet+eEfx0gPfWCS/lXuCCxSTaW6UFiLosH3nrqmK5mWavssaOjz3T6dTb2/wflvaP/c2Q2mXRtiIL0wWJNO1WesBYkScU+pmuiwAuOw62WA6KAf9AOh7glFdfHQf81TCfj3NLS64NeCeXZ+S5Ea0iXT6aKx7ozBGub6ThREbIi3Xg7TnjOFoNnqzOnl2FumRXpwwuB6SujUtv/oX3hzheHNMPGb5C+LuOWwS4BAdAwTnE2vklObQHXtcp59P/ePfam2i7JOlXAWMQBQNP8a1w1rbnyxKFwYqsipF4ckJx3bppb4fgDS/FF2/y46LUyi1BnmZawEb37wuvOD3INuDKaakzzJyAzc2ta/DPhrpHaRn3O5CWc3s860AfNLwHDvxZs7JbQmcAv9paq37frkj2TJJ8P1GdMqpV35v5jukCYvxXga7V7ByDA/GZYBpJnBURfvGjAlOFtypjNWTjzA9zf475TTmOmroREsje7XMgekroBn4vwoWtc0UaaztuLsC9M2tModgoRBzav0PdM3molaBeu6PSwD3AYmgUHitoDOfvM2d85I7Q2I1FbNTmueFesWyTDRlN1T8+fTgaoZpKhrlx/kS+FNkrUKBy6yu68r8BgwNrGNfCLBh0RlefCkZMvUsB206vOJyP+JYtyXtPGzwuvvQ1NnzNCo/yfQtMBUFr0LMyfftfGbGw/uAuQC8VbqHI7vGtA35Pa/DoSi0zpfklckK/28i5yRB7UBdmsXAI4Xv+y5gLBNKYBZE4r3Ys+TE2oYTNlGGM22J0nkGvvERFqksAH7KakYgGUiGfDLagwIMw8o290UXsXUzA5nyTBBbMVjIriG4zcPG5/0lt3Hq3ykjGQZBYE2RFw15tOWJpEBpHoaSxwDmkDPEretisSxreTo/Iul/Pkj1RPlpUpBzqZ5YIzh/ch9TvBAU7YkxhYoEGS8rfw/dgP9aRwT1caEoREnr087aLahcF/h+/JIJfVqi8kl5IbvseIuGA+m+e1JqF49+tndB4QCulVeeuQsql47VKHF/9q8PRMeGYIfPChm+Osj0cHvED3n39qHidL63b2WYqKMKjTTFeORKbtbEHY7b/Xs29zBbWjwaRQ77mEGpkgDUP8Ebi9KQ2JeoW28yYYSO7pF/mqd2E++jgS/MxBo/x1sK/Nz1ZsMB164YppO3fLO519Erh4lDdAgT58nCsImfBkKhteF9rcpwDZe9j0FQ9IT5nuJH1Bt0Zdd1fIIAkYBzje1xr+t4KDj2F7055fEf9VdfsyJPFcK1JZ26v73bpjXJkmUuzMs3+VbxZQ5/4WBwqFJdbOvpFQ4ot/+Hn+qL0oUn4PA4/cgMjQwiYL81rsWfgtbjRThL/oDLbwfK+9cKcerxpB/GJkt5+x8JVN1A3/YhzzMPDnbewqzn+EodKIALRzTXzDHTMQkNZZY6QKRycJ2VCb8vNvQBmdev/CpTn1fgsVtGDJ0+c1iOBN0/f1DQMifz17Os7Oz1pKw7eOP9dtuyGwI7pYe0cEAHId4jKsr5WYfoSOIgXwE7bTm6l9ytV0zbma1KfNP/Ueaf86PTBrUXb3mh1wOj2xW9r5slTCunQPsdDHdZhtq/ldOBDSm/8BZs0vOj+BaStwJTUL6ShMniBq45fMXgBYhE0HCVgrmd8huP1g79tfH/sI40kXryAN0Id9OxWe8OtUDqd+hFn5Lea/0IyqEMOo1l6zdXzTvnn7ZMZQ13YXZ42HNbFrHSpaISyLIEnjorwZViflpTYJU5+TBcgDljbeiGSw9XFp1juoAWD7Du38M26w9QFezhy38ycpTOQI5qBb7hvaPBeGCI6FZxDSfGL8DLCIuXSPDU1wKHXgrR9dz8+Jzlm9rQs+FlQrh/TVOKrVVxQAAAA==";
|
|
3677
3677
|
var ps = /* @__PURE__ */ x('<div class="group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-(--lv-control-button-secondary-background)"><div class="pointer-events-none whitespace-nowrap rounded-md text-xs opacity-0 group-hover:opacity-100"></div><div>');
|
|
@@ -3680,10 +3680,10 @@ const ms = () => {
|
|
|
3680
3680
|
t
|
|
3681
3681
|
} = Q(), {
|
|
3682
3682
|
status: e
|
|
3683
|
-
} = Ye(),
|
|
3684
|
-
const
|
|
3683
|
+
} = Ye(), n = T(() => {
|
|
3684
|
+
const r = e()?.status, o = e()?.signaling?.state;
|
|
3685
3685
|
return Be({
|
|
3686
|
-
sessionState:
|
|
3686
|
+
sessionState: r,
|
|
3687
3687
|
signalState: o
|
|
3688
3688
|
}).with({
|
|
3689
3689
|
sessionState: "connected"
|
|
@@ -3737,18 +3737,18 @@ const ms = () => {
|
|
|
3737
3737
|
});
|
|
3738
3738
|
return v(ve, {
|
|
3739
3739
|
get when() {
|
|
3740
|
-
return
|
|
3740
|
+
return n();
|
|
3741
3741
|
},
|
|
3742
|
-
children: (
|
|
3742
|
+
children: (r) => (() => {
|
|
3743
3743
|
var o = ps(), i = o.firstChild, a = i.nextSibling;
|
|
3744
|
-
return m(i, () =>
|
|
3744
|
+
return m(i, () => r().text), m(a, () => r().icon), o;
|
|
3745
3745
|
})()
|
|
3746
3746
|
});
|
|
3747
3747
|
};
|
|
3748
|
-
var bs = /* @__PURE__ */ x('<div class="h-11 w-full">'), ws = /* @__PURE__ */ x('<div class="absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2 text-(--lv-text-muted)"><a href=https://github.com/
|
|
3748
|
+
var bs = /* @__PURE__ */ x('<div class="h-11 w-full">'), ws = /* @__PURE__ */ x('<div class="absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2 text-(--lv-text-muted)"><a href=https://github.com/open-lavatory/open-lavatory target=_blank rel=noreferrer class="flex items-center gap-2 p-1 font-semibold text-sm text-(--lv-text-muted)"><img alt="Open Lavatory Logo"width=20 height=20 class=rounded data-openlv-brand-logo><span>openlv</span></a><div class="text-sm text-(--lv-text-muted)">');
|
|
3749
3749
|
const ys = () => [bs(), (() => {
|
|
3750
|
-
var t = ws(), e = t.firstChild,
|
|
3751
|
-
return Z(
|
|
3750
|
+
var t = ws(), e = t.firstChild, n = e.firstChild, r = e.nextSibling;
|
|
3751
|
+
return Z(n, "src", vs), m(r, v(ms, {})), t;
|
|
3752
3752
|
})()];
|
|
3753
3753
|
var xs = /* @__PURE__ */ x('<div class="flex items-center justify-between px-2 py-2"><h2 class="flex items-center justify-center gap-2 font-semibold text-(--lv-text-primary) text-lg">');
|
|
3754
3754
|
const ks = (t) => {
|
|
@@ -3756,8 +3756,8 @@ const ks = (t) => {
|
|
|
3756
3756
|
t: e
|
|
3757
3757
|
} = Q();
|
|
3758
3758
|
return (() => {
|
|
3759
|
-
var
|
|
3760
|
-
return m(
|
|
3759
|
+
var n = xs(), r = n.firstChild;
|
|
3760
|
+
return m(n, (() => {
|
|
3761
3761
|
var o = Re(() => !!t.onBack);
|
|
3762
3762
|
return () => o() ? v(je, {
|
|
3763
3763
|
get onClick() {
|
|
@@ -3781,12 +3781,12 @@ const ks = (t) => {
|
|
|
3781
3781
|
$aspect: "square",
|
|
3782
3782
|
$size: "md",
|
|
3783
3783
|
get children() {
|
|
3784
|
-
return v(
|
|
3784
|
+
return v(sr, {
|
|
3785
3785
|
class: "h-5 w-5"
|
|
3786
3786
|
});
|
|
3787
3787
|
}
|
|
3788
3788
|
});
|
|
3789
|
-
})(),
|
|
3789
|
+
})(), r), m(r, () => t.title), m(n, v(je, {
|
|
3790
3790
|
type: "button",
|
|
3791
3791
|
get "aria-label"() {
|
|
3792
3792
|
return String(e("common.close"));
|
|
@@ -3803,10 +3803,10 @@ const ks = (t) => {
|
|
|
3803
3803
|
class: "h-6 w-6 text-(--lv-text-muted)"
|
|
3804
3804
|
});
|
|
3805
3805
|
}
|
|
3806
|
-
}), null),
|
|
3806
|
+
}), null), n;
|
|
3807
3807
|
})();
|
|
3808
3808
|
}, Cs = (t, { transitionDuration: e = 200 } = {}) => {
|
|
3809
|
-
const [
|
|
3809
|
+
const [n, r] = D([t]), [o, i] = D(0), a = T(() => n()[o()] ?? t), { current: s, previous: l, isTransitioning: d } = Dt(a, {
|
|
3810
3810
|
duration: e
|
|
3811
3811
|
});
|
|
3812
3812
|
return {
|
|
@@ -3814,10 +3814,10 @@ const ks = (t) => {
|
|
|
3814
3814
|
previousScreen: l,
|
|
3815
3815
|
isTransitioning: d,
|
|
3816
3816
|
navigate: (f) => {
|
|
3817
|
-
const h = o(), g =
|
|
3817
|
+
const h = o(), g = n(), b = g[h];
|
|
3818
3818
|
if (Object.is(b, f)) return;
|
|
3819
3819
|
const p = g.slice(0, h + 1);
|
|
3820
|
-
p.push(f),
|
|
3820
|
+
p.push(f), r(p), i(p.length - 1);
|
|
3821
3821
|
},
|
|
3822
3822
|
goBack: () => {
|
|
3823
3823
|
i((f) => Math.max(0, f - 1));
|
|
@@ -3827,18 +3827,18 @@ const ks = (t) => {
|
|
|
3827
3827
|
};
|
|
3828
3828
|
var Ss = /* @__PURE__ */ x('<div class="modal-transition__layer modal-transition__layer--outgoing">'), As = /* @__PURE__ */ x("<div><div>");
|
|
3829
3829
|
const $s = (t) => (() => {
|
|
3830
|
-
var e = As(),
|
|
3830
|
+
var e = As(), n = e.firstChild;
|
|
3831
3831
|
return m(e, v(ve, {
|
|
3832
3832
|
get when() {
|
|
3833
3833
|
return t.previous !== void 0;
|
|
3834
3834
|
},
|
|
3835
3835
|
get children() {
|
|
3836
|
-
var
|
|
3837
|
-
return m(
|
|
3836
|
+
var r = Ss();
|
|
3837
|
+
return m(r, () => t.render(t.previous)), r;
|
|
3838
3838
|
}
|
|
3839
|
-
}),
|
|
3839
|
+
}), n), m(n, () => t.render(t.current)), z((r) => {
|
|
3840
3840
|
var o = ke("modal-transition__container", t.class), i = ke("modal-transition__layer", t.isTransitioning && "modal-transition__layer--incoming");
|
|
3841
|
-
return o !==
|
|
3841
|
+
return o !== r.e && re(e, r.e = o), i !== r.t && re(n, r.t = i), r;
|
|
3842
3842
|
}, {
|
|
3843
3843
|
e: void 0,
|
|
3844
3844
|
t: void 0
|
|
@@ -3846,13 +3846,13 @@ const $s = (t) => (() => {
|
|
|
3846
3846
|
})();
|
|
3847
3847
|
var Ts = /* @__PURE__ */ x('<div><div class="flex items-end justify-between py-1 pl-2"><div class="font-medium text-(--lv-text-primary) text-sm"></div><div></div></div><div class="flex flex-col gap-1 rounded-md bg-(--lv-card-background)">');
|
|
3848
3848
|
const Xe = (t) => (() => {
|
|
3849
|
-
var e = Ts(),
|
|
3850
|
-
return m(
|
|
3849
|
+
var e = Ts(), n = e.firstChild, r = n.firstChild, o = r.nextSibling, i = n.nextSibling;
|
|
3850
|
+
return m(r, () => t.title), m(o, () => t.right), m(i, () => t.children), e;
|
|
3851
3851
|
})();
|
|
3852
3852
|
var Es = /* @__PURE__ */ x('<div class="flex items-baseline justify-between gap-2 px-2 py-1 first:pt-2 last:pb-2"><div class="text-sm text-(--lv-text-secondary) text-start"></div><div>');
|
|
3853
3853
|
const Qe = (t) => (() => {
|
|
3854
|
-
var e = Es(),
|
|
3855
|
-
return m(
|
|
3854
|
+
var e = Es(), n = e.firstChild, r = n.nextSibling;
|
|
3855
|
+
return m(n, () => t.label), m(r, () => t.children), e;
|
|
3856
3856
|
})();
|
|
3857
3857
|
var _s = /* @__PURE__ */ x("<select>"), Ns = /* @__PURE__ */ x("<div>"), Ps = /* @__PURE__ */ x("<button type=button>"), Bs = /* @__PURE__ */ x("<option>");
|
|
3858
3858
|
const Rs = xt({
|
|
@@ -3877,8 +3877,8 @@ const Rs = xt({
|
|
|
3877
3877
|
base: "w-full rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-control-button-secondary-background) px-3 py-2 font-semibold text-xs text-(--lv-text-primary) cursor-pointer focus:outline-none focus:ring-2 focus:ring-(--lv-control-button-primary-background) appearance-none bg-[url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:14px] bg-[right_8px_center] bg-no-repeat pr-8"
|
|
3878
3878
|
}), kt = (t) => {
|
|
3879
3879
|
const e = Ms(), {
|
|
3880
|
-
root:
|
|
3881
|
-
box:
|
|
3880
|
+
root: n,
|
|
3881
|
+
box: r
|
|
3882
3882
|
} = Rs({});
|
|
3883
3883
|
return v(ve, {
|
|
3884
3884
|
get when() {
|
|
@@ -3894,21 +3894,21 @@ const Rs = xt({
|
|
|
3894
3894
|
children: ([i, a]) => (() => {
|
|
3895
3895
|
var s = Ps();
|
|
3896
3896
|
return s.$$click = () => t.onChange(i), m(s, a), z((l) => {
|
|
3897
|
-
var d = i === t.value, u =
|
|
3897
|
+
var d = i === t.value, u = r({
|
|
3898
3898
|
active: i === t.value ? "on" : "off"
|
|
3899
3899
|
});
|
|
3900
|
-
return d !== l.e && Z(s, "aria-pressed", l.e = d), u !== l.t &&
|
|
3900
|
+
return d !== l.e && Z(s, "aria-pressed", l.e = d), u !== l.t && re(s, l.t = u), l;
|
|
3901
3901
|
}, {
|
|
3902
3902
|
e: void 0,
|
|
3903
3903
|
t: void 0
|
|
3904
3904
|
}), s;
|
|
3905
3905
|
})()
|
|
3906
|
-
})), z(() =>
|
|
3906
|
+
})), z(() => re(o, n())), o;
|
|
3907
3907
|
})();
|
|
3908
3908
|
},
|
|
3909
3909
|
get children() {
|
|
3910
3910
|
var o = _s();
|
|
3911
|
-
return o.addEventListener("change", (i) => t.onChange(i.currentTarget.value)),
|
|
3911
|
+
return o.addEventListener("change", (i) => t.onChange(i.currentTarget.value)), re(o, e), m(o, v(Ce, {
|
|
3912
3912
|
get each() {
|
|
3913
3913
|
return t.options;
|
|
3914
3914
|
},
|
|
@@ -3924,11 +3924,11 @@ Ae(["click"]);
|
|
|
3924
3924
|
const Os = () => {
|
|
3925
3925
|
const {
|
|
3926
3926
|
t
|
|
3927
|
-
} = Q(), e =
|
|
3927
|
+
} = Q(), e = dr(), n = () => e.mode() === "auto", r = () => e.mode() === "auto" ? "system" : e.mode(), o = (i) => {
|
|
3928
3928
|
};
|
|
3929
3929
|
return v(ve, {
|
|
3930
3930
|
get when() {
|
|
3931
|
-
return
|
|
3931
|
+
return n();
|
|
3932
3932
|
},
|
|
3933
3933
|
get children() {
|
|
3934
3934
|
return v(Qe, {
|
|
@@ -3941,7 +3941,7 @@ const Os = () => {
|
|
|
3941
3941
|
return [["light", t("settings.theme.light")], ["dark", t("settings.theme.dark")], ["system", t("settings.theme.system")]];
|
|
3942
3942
|
},
|
|
3943
3943
|
get value() {
|
|
3944
|
-
return
|
|
3944
|
+
return r();
|
|
3945
3945
|
},
|
|
3946
3946
|
onChange: (i) => o()
|
|
3947
3947
|
});
|
|
@@ -3953,16 +3953,16 @@ const Os = () => {
|
|
|
3953
3953
|
const {
|
|
3954
3954
|
t,
|
|
3955
3955
|
languageTag: e,
|
|
3956
|
-
setLanguageTag:
|
|
3956
|
+
setLanguageTag: n
|
|
3957
3957
|
} = Q(), {
|
|
3958
|
-
settings:
|
|
3958
|
+
settings: r,
|
|
3959
3959
|
setLanguage: o
|
|
3960
3960
|
} = et(), i = T(() => [...Ut].sort((s, l) => {
|
|
3961
|
-
const d =
|
|
3962
|
-
return
|
|
3961
|
+
const d = un(s.tag);
|
|
3962
|
+
return un(l.tag) - d;
|
|
3963
3963
|
})), a = (s) => {
|
|
3964
3964
|
const l = s;
|
|
3965
|
-
|
|
3965
|
+
n(l), o(l);
|
|
3966
3966
|
};
|
|
3967
3967
|
return v(Xe, {
|
|
3968
3968
|
get title() {
|
|
@@ -3979,7 +3979,7 @@ const Os = () => {
|
|
|
3979
3979
|
return i().map((s) => [s.tag, s.nativeName]);
|
|
3980
3980
|
},
|
|
3981
3981
|
get value() {
|
|
3982
|
-
return
|
|
3982
|
+
return r()?.language || e();
|
|
3983
3983
|
},
|
|
3984
3984
|
onChange: a
|
|
3985
3985
|
});
|
|
@@ -4019,13 +4019,13 @@ const Ds = xt({
|
|
|
4019
4019
|
defaultVariants: {
|
|
4020
4020
|
size: "lg"
|
|
4021
4021
|
}
|
|
4022
|
-
}),
|
|
4022
|
+
}), _n = (t) => {
|
|
4023
4023
|
const e = X({
|
|
4024
4024
|
variant: "icon",
|
|
4025
4025
|
size: "lg"
|
|
4026
4026
|
}, t), {
|
|
4027
|
-
root:
|
|
4028
|
-
box:
|
|
4027
|
+
root: n,
|
|
4028
|
+
box: r,
|
|
4029
4029
|
popover: o,
|
|
4030
4030
|
icon: i
|
|
4031
4031
|
} = Ds({
|
|
@@ -4034,13 +4034,13 @@ const Ds = xt({
|
|
|
4034
4034
|
});
|
|
4035
4035
|
return (() => {
|
|
4036
4036
|
var a = Ls(), s = a.firstChild, l = s.nextSibling;
|
|
4037
|
-
return m(s, () => Be(e.variant).with("icon", () => v(
|
|
4037
|
+
return m(s, () => Be(e.variant).with("icon", () => v(sr, {
|
|
4038
4038
|
get class() {
|
|
4039
4039
|
return i();
|
|
4040
4040
|
}
|
|
4041
4041
|
})).with("text", () => js()).exhaustive()), m(l, () => e.children), z((d) => {
|
|
4042
|
-
var u =
|
|
4043
|
-
return u !== d.e &&
|
|
4042
|
+
var u = n(), c = r(), f = o();
|
|
4043
|
+
return u !== d.e && re(a, d.e = u), c !== d.t && re(s, d.t = c), f !== d.a && re(l, d.a = f), d;
|
|
4044
4044
|
}, {
|
|
4045
4045
|
e: void 0,
|
|
4046
4046
|
t: void 0,
|
|
@@ -4049,9 +4049,9 @@ const Ds = xt({
|
|
|
4049
4049
|
})();
|
|
4050
4050
|
};
|
|
4051
4051
|
var Vs = /* @__PURE__ */ x('<span class="text-sm text-(--lv-text-muted)">'), Fs = /* @__PURE__ */ x('<button type=button class="flex w-full cursor-pointer items-center justify-between gap-2 first:rounded-t-sm last:rounded-b-sm px-2 py-1 first:pt-1.5 last:pb-2 hover:bg-(--lv-control-button-tertiary-hoverBackground)"><div class="text-sm text-(--lv-text-secondary) flex items-center gap-1"></div><div class="flex items-center gap-1">');
|
|
4052
|
-
const
|
|
4053
|
-
var e = Fs(),
|
|
4054
|
-
return yt(e, "click", t.onClick, !0), m(
|
|
4052
|
+
const Nn = (t) => (() => {
|
|
4053
|
+
var e = Fs(), n = e.firstChild, r = n.nextSibling;
|
|
4054
|
+
return yt(e, "click", t.onClick, !0), m(n, () => t.label), m(r, v(ve, {
|
|
4055
4055
|
get when() {
|
|
4056
4056
|
return t.value;
|
|
4057
4057
|
},
|
|
@@ -4059,7 +4059,7 @@ const _r = (t) => (() => {
|
|
|
4059
4059
|
var o = Vs();
|
|
4060
4060
|
return m(o, () => t.value), o;
|
|
4061
4061
|
}
|
|
4062
|
-
}), null), m(
|
|
4062
|
+
}), null), m(r, v(_i, {
|
|
4063
4063
|
class: "h-4 w-4 text-(--lv-text-muted) rtl:rotate-180"
|
|
4064
4064
|
}), null), e;
|
|
4065
4065
|
})();
|
|
@@ -4075,14 +4075,14 @@ const zs = (t) => {
|
|
|
4075
4075
|
get value() {
|
|
4076
4076
|
return t.value ? "true" : "false";
|
|
4077
4077
|
},
|
|
4078
|
-
onChange: (
|
|
4078
|
+
onChange: (n) => t.onChange(n === "true")
|
|
4079
4079
|
});
|
|
4080
4080
|
}, Us = (t) => {
|
|
4081
4081
|
const {
|
|
4082
4082
|
t: e
|
|
4083
4083
|
} = Q(), {
|
|
4084
|
-
settings:
|
|
4085
|
-
setRetainSessionHistory:
|
|
4084
|
+
settings: n,
|
|
4085
|
+
setRetainSessionHistory: r,
|
|
4086
4086
|
setAutoReconnect: o
|
|
4087
4087
|
} = et();
|
|
4088
4088
|
return v(Xe, {
|
|
@@ -4090,9 +4090,9 @@ const zs = (t) => {
|
|
|
4090
4090
|
return e("settings.connectionPreferences.title");
|
|
4091
4091
|
},
|
|
4092
4092
|
get children() {
|
|
4093
|
-
return [v(
|
|
4093
|
+
return [v(Nn, {
|
|
4094
4094
|
get label() {
|
|
4095
|
-
return [Re(() => e("settings.signaling.title")), v(
|
|
4095
|
+
return [Re(() => e("settings.signaling.title")), v(_n, {
|
|
4096
4096
|
variant: "icon",
|
|
4097
4097
|
get children() {
|
|
4098
4098
|
return e("settings.signaling.description");
|
|
@@ -4101,11 +4101,11 @@ const zs = (t) => {
|
|
|
4101
4101
|
},
|
|
4102
4102
|
onClick: () => t.onNavigate("signaling"),
|
|
4103
4103
|
get value() {
|
|
4104
|
-
return
|
|
4104
|
+
return n()?.signaling?.p;
|
|
4105
4105
|
}
|
|
4106
|
-
}), v(
|
|
4106
|
+
}), v(Nn, {
|
|
4107
4107
|
get label() {
|
|
4108
|
-
return [Re(() => e("settings.transport.title")), v(
|
|
4108
|
+
return [Re(() => e("settings.transport.title")), v(_n, {
|
|
4109
4109
|
variant: "icon",
|
|
4110
4110
|
get children() {
|
|
4111
4111
|
return e("settings.transport.description");
|
|
@@ -4116,7 +4116,7 @@ const zs = (t) => {
|
|
|
4116
4116
|
value: "WebRTC"
|
|
4117
4117
|
}), v(Ce, {
|
|
4118
4118
|
get each() {
|
|
4119
|
-
return [[e("settings.connectionPreferences.retainSessionHistory"),
|
|
4119
|
+
return [[e("settings.connectionPreferences.retainSessionHistory"), n()?.retainHistory ?? !1, r], [e("settings.connectionPreferences.autoReconnect"), n()?.autoReconnect ?? !1, o]];
|
|
4120
4120
|
},
|
|
4121
4121
|
children: ([i, a, s]) => v(Qe, {
|
|
4122
4122
|
label: i,
|
|
@@ -4136,20 +4136,20 @@ var Ws = /* @__PURE__ */ x('<input class="h-9 w-full rounded-lg border bg-white
|
|
|
4136
4136
|
const We = (t) => {
|
|
4137
4137
|
const e = X({
|
|
4138
4138
|
readOnly: !0
|
|
4139
|
-
}, t), [
|
|
4139
|
+
}, t), [n] = wt(e, ["id", "value", "placeholder", "ariaLabel", "readOnly", "onChange"]);
|
|
4140
4140
|
return (() => {
|
|
4141
|
-
var
|
|
4142
|
-
return
|
|
4143
|
-
|
|
4141
|
+
var r = Ws();
|
|
4142
|
+
return r.$$input = (o) => {
|
|
4143
|
+
n.onChange?.(o.currentTarget.value);
|
|
4144
4144
|
}, z((o) => {
|
|
4145
|
-
var i =
|
|
4146
|
-
return i !== o.e && Z(
|
|
4145
|
+
var i = n.id, a = n.placeholder, s = n.ariaLabel, l = n.readOnly;
|
|
4146
|
+
return i !== o.e && Z(r, "id", o.e = i), a !== o.t && Z(r, "placeholder", o.t = a), s !== o.a && Z(r, "aria-label", o.a = s), l !== o.o && (r.readOnly = o.o = l), o;
|
|
4147
4147
|
}, {
|
|
4148
4148
|
e: void 0,
|
|
4149
4149
|
t: void 0,
|
|
4150
4150
|
a: void 0,
|
|
4151
4151
|
o: void 0
|
|
4152
|
-
}), z(() =>
|
|
4152
|
+
}), z(() => r.value = n.value), r;
|
|
4153
4153
|
})();
|
|
4154
4154
|
};
|
|
4155
4155
|
Ae(["input"]);
|
|
@@ -4159,8 +4159,8 @@ const Ks = ["mqtt", "ntfy", "gun"], Hs = () => {
|
|
|
4159
4159
|
t
|
|
4160
4160
|
} = Q(), {
|
|
4161
4161
|
settings: e,
|
|
4162
|
-
setSignalingProtocol:
|
|
4163
|
-
setSignalingOptions:
|
|
4162
|
+
setSignalingProtocol: n,
|
|
4163
|
+
setSignalingOptions: r
|
|
4164
4164
|
} = et(), o = T(() => e()?.signaling?.p), i = T(() => {
|
|
4165
4165
|
const a = o();
|
|
4166
4166
|
return a ? e()?.signaling?.s?.[a] ?? "" : "";
|
|
@@ -4184,7 +4184,7 @@ const Ks = ["mqtt", "ntfy", "gun"], Hs = () => {
|
|
|
4184
4184
|
get value() {
|
|
4185
4185
|
return o() ?? "";
|
|
4186
4186
|
},
|
|
4187
|
-
onChange: (l) =>
|
|
4187
|
+
onChange: (l) => n(l)
|
|
4188
4188
|
});
|
|
4189
4189
|
}
|
|
4190
4190
|
}), v(Qe, {
|
|
@@ -4197,7 +4197,7 @@ const Ks = ["mqtt", "ntfy", "gun"], Hs = () => {
|
|
|
4197
4197
|
get value() {
|
|
4198
4198
|
return i();
|
|
4199
4199
|
},
|
|
4200
|
-
onChange: (l) =>
|
|
4200
|
+
onChange: (l) => r({
|
|
4201
4201
|
url: l
|
|
4202
4202
|
}),
|
|
4203
4203
|
get placeholder() {
|
|
@@ -4215,9 +4215,9 @@ const Ks = ["mqtt", "ntfy", "gun"], Hs = () => {
|
|
|
4215
4215
|
})();
|
|
4216
4216
|
};
|
|
4217
4217
|
var qs = /* @__PURE__ */ x('<div class="flex items-center gap-2"><div class=flex-1>'), Xs = /* @__PURE__ */ x('<button type=button class="flex w-full cursor-pointer items-center justify-center gap-1 rounded-md border border-dashed border-(--lv-control-input-border) py-2 text-sm text-(--lv-text-muted) hover:bg-(--lv-card-background)">'), Qs = /* @__PURE__ */ x('<div class="flex flex-col gap-2 p-2">'), Js = /* @__PURE__ */ x('<div class="flex flex-col gap-3 p-2">'), Zs = /* @__PURE__ */ x('<div class="p-2 text-sm text-(--lv-text-secondary) text-start">'), Ys = /* @__PURE__ */ x('<div class="flex flex-col gap-2 rounded-md border border-(--lv-control-input-border) p-2"><div class="grid grid-cols-2 gap-2">');
|
|
4218
|
-
const
|
|
4219
|
-
var e = qs(),
|
|
4220
|
-
return m(
|
|
4218
|
+
const Pn = (t) => (() => {
|
|
4219
|
+
var e = qs(), n = e.firstChild;
|
|
4220
|
+
return m(n, () => t.children), m(e, v(je, {
|
|
4221
4221
|
get onClick() {
|
|
4222
4222
|
return t.onRemove;
|
|
4223
4223
|
},
|
|
@@ -4230,7 +4230,7 @@ const Nr = (t) => (() => {
|
|
|
4230
4230
|
});
|
|
4231
4231
|
}
|
|
4232
4232
|
}), null), e;
|
|
4233
|
-
})(),
|
|
4233
|
+
})(), Bn = (t) => (() => {
|
|
4234
4234
|
var e = Xs();
|
|
4235
4235
|
return yt(e, "click", t.onClick, !0), m(e, v(Mi, {
|
|
4236
4236
|
class: "h-4 w-4"
|
|
@@ -4240,20 +4240,20 @@ const Nr = (t) => (() => {
|
|
|
4240
4240
|
t
|
|
4241
4241
|
} = Q();
|
|
4242
4242
|
et();
|
|
4243
|
-
const [e,
|
|
4244
|
-
o([...
|
|
4243
|
+
const [e, n] = D([]), [r, o] = D([]), i = () => {
|
|
4244
|
+
o([...r(), ""]);
|
|
4245
4245
|
}, a = (c) => {
|
|
4246
|
-
o(
|
|
4246
|
+
o(r().filter((f, h) => h !== c));
|
|
4247
4247
|
}, s = (c, f) => {
|
|
4248
|
-
o(
|
|
4248
|
+
o(r().map((h, g) => g === c ? f : h));
|
|
4249
4249
|
}, l = () => {
|
|
4250
|
-
|
|
4250
|
+
n([...e(), {
|
|
4251
4251
|
urls: ""
|
|
4252
4252
|
}]);
|
|
4253
4253
|
}, d = (c) => {
|
|
4254
|
-
|
|
4254
|
+
n(e().filter((f, h) => h !== c));
|
|
4255
4255
|
}, u = (c, f, h) => {
|
|
4256
|
-
|
|
4256
|
+
n(e().map((g, b) => b === c ? {
|
|
4257
4257
|
...g,
|
|
4258
4258
|
[f]: h
|
|
4259
4259
|
} : g));
|
|
@@ -4266,9 +4266,9 @@ const Nr = (t) => (() => {
|
|
|
4266
4266
|
var c = Qs();
|
|
4267
4267
|
return m(c, v(Ce, {
|
|
4268
4268
|
get each() {
|
|
4269
|
-
return
|
|
4269
|
+
return r();
|
|
4270
4270
|
},
|
|
4271
|
-
children: (f, h) => v(
|
|
4271
|
+
children: (f, h) => v(Pn, {
|
|
4272
4272
|
onRemove: () => a(h()),
|
|
4273
4273
|
get children() {
|
|
4274
4274
|
return v(We, {
|
|
@@ -4279,7 +4279,7 @@ const Nr = (t) => (() => {
|
|
|
4279
4279
|
});
|
|
4280
4280
|
}
|
|
4281
4281
|
})
|
|
4282
|
-
}), null), m(c, v(
|
|
4282
|
+
}), null), m(c, v(Bn, {
|
|
4283
4283
|
get label() {
|
|
4284
4284
|
return t("settings.transport.iceServers.addStun");
|
|
4285
4285
|
},
|
|
@@ -4298,7 +4298,7 @@ const Nr = (t) => (() => {
|
|
|
4298
4298
|
},
|
|
4299
4299
|
children: (f, h) => (() => {
|
|
4300
4300
|
var g = Ys(), b = g.firstChild;
|
|
4301
|
-
return m(g, v(
|
|
4301
|
+
return m(g, v(Pn, {
|
|
4302
4302
|
onRemove: () => d(h()),
|
|
4303
4303
|
get children() {
|
|
4304
4304
|
return v(We, {
|
|
@@ -4326,7 +4326,7 @@ const Nr = (t) => (() => {
|
|
|
4326
4326
|
readOnly: !1
|
|
4327
4327
|
}), null), g;
|
|
4328
4328
|
})()
|
|
4329
|
-
}), null), m(c, v(
|
|
4329
|
+
}), null), m(c, v(Bn, {
|
|
4330
4330
|
get label() {
|
|
4331
4331
|
return t("settings.transport.iceServers.addTurn");
|
|
4332
4332
|
},
|
|
@@ -4340,7 +4340,7 @@ const Nr = (t) => (() => {
|
|
|
4340
4340
|
};
|
|
4341
4341
|
Ae(["click"]);
|
|
4342
4342
|
var ta = /* @__PURE__ */ x('<div class="px-4 pb-2">');
|
|
4343
|
-
const
|
|
4343
|
+
const na = (t) => {
|
|
4344
4344
|
switch (t) {
|
|
4345
4345
|
case "main":
|
|
4346
4346
|
return "settings.title";
|
|
@@ -4349,11 +4349,11 @@ const ra = (t) => {
|
|
|
4349
4349
|
case "transport":
|
|
4350
4350
|
return "settings.transport.title";
|
|
4351
4351
|
}
|
|
4352
|
-
},
|
|
4352
|
+
}, ra = (t) => {
|
|
4353
4353
|
const {
|
|
4354
4354
|
screen: e,
|
|
4355
|
-
previousScreen:
|
|
4356
|
-
isTransitioning:
|
|
4355
|
+
previousScreen: n,
|
|
4356
|
+
isTransitioning: r,
|
|
4357
4357
|
navigate: o,
|
|
4358
4358
|
goBack: i,
|
|
4359
4359
|
isAtRoot: a
|
|
@@ -4366,7 +4366,7 @@ const ra = (t) => {
|
|
|
4366
4366
|
ie(() => {
|
|
4367
4367
|
t.navigationRef && (t.navigationRef.current = s);
|
|
4368
4368
|
}), ie(() => {
|
|
4369
|
-
t.onTitleChange?.(
|
|
4369
|
+
t.onTitleChange?.(na(e()));
|
|
4370
4370
|
});
|
|
4371
4371
|
const l = (d) => {
|
|
4372
4372
|
switch (d) {
|
|
@@ -4387,10 +4387,10 @@ const ra = (t) => {
|
|
|
4387
4387
|
return e();
|
|
4388
4388
|
},
|
|
4389
4389
|
get previous() {
|
|
4390
|
-
return
|
|
4390
|
+
return n();
|
|
4391
4391
|
},
|
|
4392
4392
|
get isTransitioning() {
|
|
4393
|
-
return
|
|
4393
|
+
return r();
|
|
4394
4394
|
},
|
|
4395
4395
|
render: l
|
|
4396
4396
|
})), d;
|
|
@@ -4398,30 +4398,30 @@ const ra = (t) => {
|
|
|
4398
4398
|
};
|
|
4399
4399
|
var oa = /* @__PURE__ */ x("<div class=modal-transition__container><div>"), ia = /* @__PURE__ */ x('<div class="modal-transition__layer modal-transition__layer--outgoing">'), sa = /* @__PURE__ */ x('<div class="fixed inset-0 z-10000 flex animate-[bg-in_0.15s_ease-in-out] items-end justify-center md:items-center lg:p-4"role=presentation data-openlv-modal-root><div role=dialog aria-modal=true><div><div class=modal-transition__container><div><div class="flex flex-col text-center"></div></div></div></div><div>');
|
|
4400
4400
|
const aa = () => {
|
|
4401
|
-
const [t, e] = D("start"), [
|
|
4401
|
+
const [t, e] = D("start"), [n, r] = D(!1);
|
|
4402
4402
|
return ie(() => {
|
|
4403
|
-
if (!
|
|
4404
|
-
const o = globalThis.setTimeout(() =>
|
|
4403
|
+
if (!n()) return;
|
|
4404
|
+
const o = globalThis.setTimeout(() => r(!1), 2e3);
|
|
4405
4405
|
se(() => globalThis.clearTimeout(o));
|
|
4406
4406
|
}), {
|
|
4407
4407
|
view: t,
|
|
4408
4408
|
setView: e,
|
|
4409
|
-
copied:
|
|
4410
|
-
setCopied:
|
|
4409
|
+
copied: n,
|
|
4410
|
+
setCopied: r
|
|
4411
4411
|
};
|
|
4412
4412
|
}, la = (t) => {
|
|
4413
4413
|
ie(() => {
|
|
4414
|
-
const e = (
|
|
4415
|
-
|
|
4414
|
+
const e = (n) => {
|
|
4415
|
+
n.key === "Escape" && t();
|
|
4416
4416
|
};
|
|
4417
4417
|
document.addEventListener("keydown", e), se(() => document.removeEventListener("keydown", e));
|
|
4418
4418
|
});
|
|
4419
4419
|
}, ca = () => {
|
|
4420
|
-
const [t, e] = D(), [
|
|
4420
|
+
const [t, e] = D(), [n, r] = D(0), o = (a, s = !1) => {
|
|
4421
4421
|
const l = a || t();
|
|
4422
4422
|
if (!l || !l.getBoundingClientRect) return;
|
|
4423
4423
|
const d = s ? l.scrollHeight : l.getBoundingClientRect().height;
|
|
4424
|
-
d > 0 &&
|
|
4424
|
+
d > 0 && r((u) => typeof u == "number" && Math.abs(u - d) < 0.5 ? u : d);
|
|
4425
4425
|
};
|
|
4426
4426
|
ie(() => {
|
|
4427
4427
|
const a = t();
|
|
@@ -4437,14 +4437,14 @@ const aa = () => {
|
|
|
4437
4437
|
}), {
|
|
4438
4438
|
setContentRef: e,
|
|
4439
4439
|
contentNode: t,
|
|
4440
|
-
height:
|
|
4440
|
+
height: n,
|
|
4441
4441
|
measureHeight: o
|
|
4442
4442
|
};
|
|
4443
4443
|
}, da = (t) => {
|
|
4444
4444
|
const {
|
|
4445
4445
|
view: e,
|
|
4446
|
-
setView:
|
|
4447
|
-
copied:
|
|
4446
|
+
setView: n,
|
|
4447
|
+
copied: r,
|
|
4448
4448
|
setCopied: o
|
|
4449
4449
|
} = aa(), {
|
|
4450
4450
|
uri: i,
|
|
@@ -4464,25 +4464,25 @@ const aa = () => {
|
|
|
4464
4464
|
current: b,
|
|
4465
4465
|
previous: p,
|
|
4466
4466
|
isTransitioning: C
|
|
4467
|
-
} = Dt(a), k = () =>
|
|
4467
|
+
} = Dt(a), k = () => n("settings"), {
|
|
4468
4468
|
t: y,
|
|
4469
4469
|
isRtl: F,
|
|
4470
4470
|
languageTag: _
|
|
4471
|
-
} = Q(), pe =
|
|
4471
|
+
} = Q(), pe = dr(), he = {
|
|
4472
4472
|
current: null
|
|
4473
4473
|
}, [De, tt] = D("settings.title"), Ve = T(() => Be(e()).with("start", () => y("start.title")).with("settings", () => y(De())).with("info", () => y("info.title")).exhaustive());
|
|
4474
4474
|
la(t.onClose), ie(() => {
|
|
4475
4475
|
a()?.status === oe.CONNECTED && t.onClose();
|
|
4476
4476
|
});
|
|
4477
|
-
const
|
|
4477
|
+
const nt = async () => {
|
|
4478
4478
|
const P = i();
|
|
4479
|
-
P && await
|
|
4479
|
+
P && await ir(P) && o(!0);
|
|
4480
4480
|
};
|
|
4481
|
-
let
|
|
4481
|
+
let rt = !0, Te, A, $;
|
|
4482
4482
|
const [E, R] = D(!1);
|
|
4483
4483
|
ie(() => {
|
|
4484
|
-
b(), f(), d() && (
|
|
4485
|
-
d() && (c(void 0, !0),
|
|
4484
|
+
b(), f(), d() && (rt ? (Te && globalThis.clearTimeout(Te), Te = globalThis.setTimeout(() => {
|
|
4485
|
+
d() && (c(void 0, !0), rt = !1);
|
|
4486
4486
|
}, 0)) : c(), se(() => {
|
|
4487
4487
|
Te && globalThis.clearTimeout(Te);
|
|
4488
4488
|
}));
|
|
@@ -4515,17 +4515,17 @@ const aa = () => {
|
|
|
4515
4515
|
}).with({
|
|
4516
4516
|
view: "settings"
|
|
4517
4517
|
}, () => {
|
|
4518
|
-
he.current && !he.current.isAtRoot ? he.current.goBack() :
|
|
4518
|
+
he.current && !he.current.isAtRoot ? he.current.goBack() : n("start");
|
|
4519
4519
|
}).with({
|
|
4520
4520
|
view: "info"
|
|
4521
4521
|
}, () => {
|
|
4522
|
-
|
|
4522
|
+
n("start");
|
|
4523
4523
|
}).otherwise(() => {
|
|
4524
4524
|
s.closeSession(), t.onClose();
|
|
4525
4525
|
});
|
|
4526
4526
|
}, G = (P) => Be(P).with("start", () => v(fs, {
|
|
4527
4527
|
onSettings: k
|
|
4528
|
-
})).with("settings", () => v(
|
|
4528
|
+
})).with("settings", () => v(ra, {
|
|
4529
4529
|
onTitleChange: tt,
|
|
4530
4530
|
navigationRef: he
|
|
4531
4531
|
})).with("info", () => v(gs, {})).otherwise(() => v(Lt, {
|
|
@@ -4540,12 +4540,12 @@ const aa = () => {
|
|
|
4540
4540
|
var Fe = ia();
|
|
4541
4541
|
return m(Fe, () => G(Ee())), Fe;
|
|
4542
4542
|
})()
|
|
4543
|
-
}), ee), m(ee, () => G(f())), z(() =>
|
|
4543
|
+
}), ee), m(ee, () => G(f())), z(() => re(ee, ke("modal-transition__layer", g() && "modal-transition__layer--incoming"))), P;
|
|
4544
4544
|
})(), me = (P) => Be(P).with(oe.STANDBY, () => ae()).with(co.union(oe.CREATING, oe.CONNECTING, oe.CONNECTED, oe.ERROR), () => v(pi, {
|
|
4545
4545
|
get onClose() {
|
|
4546
4546
|
return t.onClose;
|
|
4547
4547
|
},
|
|
4548
|
-
onCopy:
|
|
4548
|
+
onCopy: nt
|
|
4549
4549
|
})).otherwise((ee) => v(Lt, {
|
|
4550
4550
|
state: ee || "unknown status"
|
|
4551
4551
|
})), le = {
|
|
@@ -4558,10 +4558,10 @@ const aa = () => {
|
|
|
4558
4558
|
"box-shadow": "var(--lv-modal-shadow, 0px 12px 32px rgba(0,0,0,0.25))"
|
|
4559
4559
|
};
|
|
4560
4560
|
return (() => {
|
|
4561
|
-
var P = sa(), ee = P.firstChild, Ee = ee.firstChild, Fe = Ee.firstChild, Gt = Fe.firstChild,
|
|
4561
|
+
var P = sa(), ee = P.firstChild, Ee = ee.firstChild, Fe = Ee.firstChild, Gt = Fe.firstChild, ur = Gt.firstChild, Kt = Ee.nextSibling;
|
|
4562
4562
|
return P.$$mouseup = (I) => {
|
|
4563
4563
|
I.target === I.currentTarget && t.onClose();
|
|
4564
|
-
}, Pt(P, le), ee.$$click = (I) => I.stopPropagation(),
|
|
4564
|
+
}, Pt(P, le), ee.$$click = (I) => I.stopPropagation(), Kn(l, Ee), m(Ee, v(ks, {
|
|
4565
4565
|
get title() {
|
|
4566
4566
|
return String(Ve());
|
|
4567
4567
|
},
|
|
@@ -4574,15 +4574,15 @@ const aa = () => {
|
|
|
4574
4574
|
get onBack() {
|
|
4575
4575
|
return J() ? ce : void 0;
|
|
4576
4576
|
},
|
|
4577
|
-
setView:
|
|
4578
|
-
}), Fe), m(
|
|
4579
|
-
var Ht = pe.mode(), qt = _(), Xt = F() ? "rtl" : "ltr", Qt = ke("relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out", E() || p() ? "overflow-hidden" : void 0), Jt = String(Ve()),
|
|
4580
|
-
...typeof u() == "number" && u() > 0
|
|
4577
|
+
setView: n
|
|
4578
|
+
}), Fe), m(ur, () => me(N())), m(Ee, v(ys, {}), null), m(Kt, () => y("modal.urlCopied")), z((I) => {
|
|
4579
|
+
var Ht = pe.mode(), qt = _(), Xt = F() ? "rtl" : "ltr", Qt = ke("relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out", E() || p() ? "overflow-hidden" : void 0), Jt = String(Ve()), fr = {
|
|
4580
|
+
...typeof u() == "number" && u() > 0 && {
|
|
4581
4581
|
height: `${u()}px`
|
|
4582
|
-
}
|
|
4582
|
+
},
|
|
4583
4583
|
...Oe
|
|
4584
|
-
}, Zt = ke("modal-transition__layer", C() && "modal-transition__layer--incoming"), Yt = ke("absolute top-5 rounded-lg bg-blue-500 px-4 py-3 font-medium text-sm text-white transition-all ltr:right-5 rtl:left-5",
|
|
4585
|
-
return Ht !== I.e && Z(P, "data-openlv-theme-mode", I.e = Ht), qt !== I.t && Z(P, "lang", I.t = qt), Xt !== I.a && Z(P, "dir", I.a = Xt), Qt !== I.o &&
|
|
4584
|
+
}, Zt = ke("modal-transition__layer", C() && "modal-transition__layer--incoming"), Yt = ke("absolute top-5 rounded-lg bg-blue-500 px-4 py-3 font-medium text-sm text-white transition-all ltr:right-5 rtl:left-5", r() ? "translate-x-0 opacity-100" : "opacity-0 ltr:translate-x-full rtl:-translate-x-full");
|
|
4585
|
+
return Ht !== I.e && Z(P, "data-openlv-theme-mode", I.e = Ht), qt !== I.t && Z(P, "lang", I.t = qt), Xt !== I.a && Z(P, "dir", I.a = Xt), Qt !== I.o && re(ee, I.o = Qt), Jt !== I.i && Z(ee, "aria-label", I.i = Jt), I.n = Pt(ee, fr, I.n), Zt !== I.s && re(Gt, I.s = Zt), Yt !== I.h && re(Kt, I.h = Yt), I;
|
|
4586
4586
|
}, {
|
|
4587
4587
|
e: void 0,
|
|
4588
4588
|
t: void 0,
|
|
@@ -4607,7 +4607,7 @@ const ua = (...t) => console.log(
|
|
|
4607
4607
|
const e = globalThis.customElements;
|
|
4608
4608
|
return e ? (e.get(t) || e.define(
|
|
4609
4609
|
t,
|
|
4610
|
-
|
|
4610
|
+
Yn
|
|
4611
4611
|
), t) : (console.warn(
|
|
4612
4612
|
"OpenLV modal: custom elements are not supported in this environment."
|
|
4613
4613
|
), t);
|
|
@@ -4615,21 +4615,21 @@ const ua = (...t) => console.log(
|
|
|
4615
4615
|
const e = document.querySelector("openlv-modal");
|
|
4616
4616
|
if (e && e.remove(), !e) {
|
|
4617
4617
|
fa();
|
|
4618
|
-
const
|
|
4618
|
+
const n = new Yn({
|
|
4619
4619
|
onClose() {
|
|
4620
|
-
ua("modal closed"),
|
|
4620
|
+
ua("modal closed"), n.remove(), t.onClose?.();
|
|
4621
4621
|
},
|
|
4622
4622
|
provider: t.provider,
|
|
4623
4623
|
theme: t.theme
|
|
4624
4624
|
});
|
|
4625
|
-
document.body.append(
|
|
4625
|
+
document.body.append(n);
|
|
4626
4626
|
}
|
|
4627
4627
|
};
|
|
4628
4628
|
export {
|
|
4629
4629
|
da as ModalRoot,
|
|
4630
4630
|
vs as OPENLV_ICON_128,
|
|
4631
|
-
|
|
4632
|
-
|
|
4631
|
+
Yn as OpenLVModalElement,
|
|
4632
|
+
Yn as default,
|
|
4633
4633
|
fa as registerOpenLVModal,
|
|
4634
4634
|
ga as triggerOpenModal
|
|
4635
4635
|
};
|