@openlv/modal 0.0.1-beta.5 → 0.0.1-beta.7
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/assets/logo.d.ts +5 -0
- package/dist/components/Header.d.ts +6 -0
- package/dist/components/ModalRoot.d.ts +8 -0
- package/dist/components/UnknownState.d.ts +4 -0
- package/dist/components/footer/Footer.d.ts +1 -0
- package/dist/components/footer/StatusIndicator.d.ts +1 -0
- package/dist/components/settings/ConnectionPreferences.d.ts +1 -0
- package/dist/components/settings/Signaling.d.ts +1 -0
- package/dist/components/settings/Transport.d.ts +1 -0
- package/dist/components/settings/index.d.ts +1 -0
- package/dist/context.d.ts +14 -0
- package/dist/element.d.ts +18 -0
- package/dist/flow/ConnectionFlow.d.ts +6 -0
- package/dist/flow/HandshakeOpen.d.ts +4 -0
- package/dist/flow/disconnected/ConnectionGraphic.d.ts +1 -0
- package/dist/flow/disconnected/Disconnected.d.ts +4 -0
- package/dist/hooks/useClipboard.d.ts +1 -0
- package/dist/hooks/useConnectionState.d.ts +7 -0
- package/dist/hooks/useEventEmitter.d.ts +2 -0
- package/dist/hooks/useProvider.d.ts +5 -0
- package/dist/hooks/usePunchTransition.d.ts +8 -0
- package/dist/hooks/useSession.d.ts +8 -0
- package/dist/hooks/useSettings.d.ts +15 -0
- package/dist/index.cjs.js +5 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +19 -87
- package/dist/index.es.js +1598 -1023
- package/dist/index.es.js.map +1 -1
- package/dist/index.iife.js +5 -7
- package/dist/index.iife.js.map +1 -1
- package/dist/modal.css +1 -1
- package/dist/styles/index.d.ts +2 -0
- package/dist/theme/index.d.ts +37 -0
- package/dist/theme/openlv.d.ts +138 -0
- package/dist/theme/simple.d.ts +73 -0
- package/dist/theme/types.d.ts +104 -0
- package/dist/types/connection.d.ts +13 -0
- package/dist/ui/Button.d.ts +62 -0
- package/dist/ui/InfoTooltip.d.ts +78 -0
- package/dist/ui/Input.d.ts +22 -0
- package/dist/ui/Select.d.ts +7 -0
- package/dist/ui/Toggle.d.ts +7 -0
- package/dist/ui/menu/MenuGroup.d.ts +6 -0
- package/dist/ui/menu/MenuItem.d.ts +5 -0
- package/dist/utils/log.d.ts +1 -0
- package/package.json +7 -6
package/dist/index.es.js
CHANGED
|
@@ -1,262 +1,334 @@
|
|
|
1
|
-
var
|
|
2
|
-
var or = (e, t, r) => t in e ?
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { useContext as
|
|
6
|
-
import { createContext as
|
|
7
|
-
import
|
|
8
|
-
|
|
1
|
+
var nr = Object.defineProperty;
|
|
2
|
+
var or = (e, t, r) => t in e ? nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var ce = (e, t, r) => or(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { jsx as l, jsxs as h, Fragment as kt } from "preact/jsx-runtime";
|
|
5
|
+
import { useContext as Ye, useState as D, useEffect as I, useCallback as K, useRef as G, useReducer as Ct, useMemo as _t, useLayoutEffect as pe, useImperativeHandle as Nt, useId as St, useDebugValue as At } from "preact/hooks";
|
|
6
|
+
import { createContext as Et, createElement as U, Fragment as we, Component as de, createRef as ar, toChildArray as ne, cloneElement as ir, render as fe, hydrate as sr, options as V, h as lr } from "preact";
|
|
7
|
+
import * as cr from "qrcode-generator";
|
|
8
|
+
const ur = 1, dr = (e) => {
|
|
9
|
+
const t = new URLSearchParams();
|
|
10
|
+
return t.set("h", e.h), t.set("k", e.k), e.p && t.set("p", e.p), e.s && t.set("s", e.s), `openlv://${e.sessionId}@${ur}?${t.toString()}`;
|
|
11
|
+
};
|
|
12
|
+
function fr(e) {
|
|
9
13
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
14
|
}
|
|
11
|
-
var Me = { exports: {} };
|
|
12
|
-
/*!
|
|
13
|
-
Copyright (c) 2018 Jed Watson.
|
|
14
|
-
Licensed under the MIT License (MIT), see
|
|
15
|
-
http://jedwatson.github.io/classnames
|
|
16
|
-
*/
|
|
17
|
-
var ct;
|
|
15
|
+
var Me = { exports: {} }, at;
|
|
18
16
|
function pr() {
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
return at || (at = 1, (function(e) {
|
|
18
|
+
var t = Object.prototype.hasOwnProperty, r = "~";
|
|
19
|
+
function n() {
|
|
20
|
+
}
|
|
21
|
+
Object.create && (n.prototype = /* @__PURE__ */ Object.create(null), new n().__proto__ || (r = !1));
|
|
22
|
+
function o(c, u, d) {
|
|
23
|
+
this.fn = c, this.context = u, this.once = d || !1;
|
|
24
|
+
}
|
|
25
|
+
function a(c, u, d, f, _) {
|
|
26
|
+
if (typeof d != "function")
|
|
27
|
+
throw new TypeError("The listener must be a function");
|
|
28
|
+
var g = new o(d, f || c, _), k = r ? r + u : u;
|
|
29
|
+
return c._events[k] ? c._events[k].fn ? c._events[k] = [c._events[k], g] : c._events[k].push(g) : (c._events[k] = g, c._eventsCount++), c;
|
|
30
|
+
}
|
|
31
|
+
function i(c, u) {
|
|
32
|
+
--c._eventsCount === 0 ? c._events = new n() : delete c._events[u];
|
|
33
|
+
}
|
|
34
|
+
function s() {
|
|
35
|
+
this._events = new n(), this._eventsCount = 0;
|
|
36
|
+
}
|
|
37
|
+
s.prototype.eventNames = function() {
|
|
38
|
+
var u = [], d, f;
|
|
39
|
+
if (this._eventsCount === 0) return u;
|
|
40
|
+
for (f in d = this._events)
|
|
41
|
+
t.call(d, f) && u.push(r ? f.slice(1) : f);
|
|
42
|
+
return Object.getOwnPropertySymbols ? u.concat(Object.getOwnPropertySymbols(d)) : u;
|
|
43
|
+
}, s.prototype.listeners = function(u) {
|
|
44
|
+
var d = r ? r + u : u, f = this._events[d];
|
|
45
|
+
if (!f) return [];
|
|
46
|
+
if (f.fn) return [f.fn];
|
|
47
|
+
for (var _ = 0, g = f.length, k = new Array(g); _ < g; _++)
|
|
48
|
+
k[_] = f[_].fn;
|
|
49
|
+
return k;
|
|
50
|
+
}, s.prototype.listenerCount = function(u) {
|
|
51
|
+
var d = r ? r + u : u, f = this._events[d];
|
|
52
|
+
return f ? f.fn ? 1 : f.length : 0;
|
|
53
|
+
}, s.prototype.emit = function(u, d, f, _, g, k) {
|
|
54
|
+
var T = r ? r + u : u;
|
|
55
|
+
if (!this._events[T]) return !1;
|
|
56
|
+
var p = this._events[T], O = arguments.length, R, m;
|
|
57
|
+
if (p.fn) {
|
|
58
|
+
switch (p.once && this.removeListener(u, p.fn, void 0, !0), O) {
|
|
59
|
+
case 1:
|
|
60
|
+
return p.fn.call(p.context), !0;
|
|
61
|
+
case 2:
|
|
62
|
+
return p.fn.call(p.context, d), !0;
|
|
63
|
+
case 3:
|
|
64
|
+
return p.fn.call(p.context, d, f), !0;
|
|
65
|
+
case 4:
|
|
66
|
+
return p.fn.call(p.context, d, f, _), !0;
|
|
67
|
+
case 5:
|
|
68
|
+
return p.fn.call(p.context, d, f, _, g), !0;
|
|
69
|
+
case 6:
|
|
70
|
+
return p.fn.call(p.context, d, f, _, g, k), !0;
|
|
26
71
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
72
|
+
for (m = 1, R = new Array(O - 1); m < O; m++)
|
|
73
|
+
R[m - 1] = arguments[m];
|
|
74
|
+
p.fn.apply(p.context, R);
|
|
75
|
+
} else {
|
|
76
|
+
var ve = p.length, B;
|
|
77
|
+
for (m = 0; m < ve; m++)
|
|
78
|
+
switch (p[m].once && this.removeListener(u, p[m].fn, void 0, !0), O) {
|
|
79
|
+
case 1:
|
|
80
|
+
p[m].fn.call(p[m].context);
|
|
81
|
+
break;
|
|
82
|
+
case 2:
|
|
83
|
+
p[m].fn.call(p[m].context, d);
|
|
84
|
+
break;
|
|
85
|
+
case 3:
|
|
86
|
+
p[m].fn.call(p[m].context, d, f);
|
|
87
|
+
break;
|
|
88
|
+
case 4:
|
|
89
|
+
p[m].fn.call(p[m].context, d, f, _);
|
|
90
|
+
break;
|
|
91
|
+
default:
|
|
92
|
+
if (!R) for (B = 1, R = new Array(O - 1); B < O; B++)
|
|
93
|
+
R[B - 1] = arguments[B];
|
|
94
|
+
p[m].fn.apply(p[m].context, R);
|
|
95
|
+
}
|
|
42
96
|
}
|
|
43
|
-
|
|
44
|
-
|
|
97
|
+
return !0;
|
|
98
|
+
}, s.prototype.on = function(u, d, f) {
|
|
99
|
+
return a(this, u, d, f, !1);
|
|
100
|
+
}, s.prototype.once = function(u, d, f) {
|
|
101
|
+
return a(this, u, d, f, !0);
|
|
102
|
+
}, s.prototype.removeListener = function(u, d, f, _) {
|
|
103
|
+
var g = r ? r + u : u;
|
|
104
|
+
if (!this._events[g]) return this;
|
|
105
|
+
if (!d)
|
|
106
|
+
return i(this, g), this;
|
|
107
|
+
var k = this._events[g];
|
|
108
|
+
if (k.fn)
|
|
109
|
+
k.fn === d && (!_ || k.once) && (!f || k.context === f) && i(this, g);
|
|
110
|
+
else {
|
|
111
|
+
for (var T = 0, p = [], O = k.length; T < O; T++)
|
|
112
|
+
(k[T].fn !== d || _ && !k[T].once || f && k[T].context !== f) && p.push(k[T]);
|
|
113
|
+
p.length ? this._events[g] = p.length === 1 ? p[0] : p : i(this, g);
|
|
45
114
|
}
|
|
46
|
-
|
|
47
|
-
}
|
|
115
|
+
return this;
|
|
116
|
+
}, s.prototype.removeAllListeners = function(u) {
|
|
117
|
+
var d;
|
|
118
|
+
return u ? (d = r ? r + u : u, this._events[d] && i(this, d)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
119
|
+
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, e.exports = s;
|
|
48
120
|
})(Me)), Me.exports;
|
|
49
121
|
}
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
const n = e[
|
|
54
|
-
return
|
|
122
|
+
pr();
|
|
123
|
+
const j = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), Ft = /* @__PURE__ */ Symbol.for("@ts-pattern/isVariadic"), Fe = "@ts-pattern/anonymous-select-key", We = (e) => !!(e && typeof e == "object"), Ae = (e) => e && !!e[j], A = (e, t, r) => {
|
|
124
|
+
if (Ae(e)) {
|
|
125
|
+
const n = e[j](), { matched: o, selections: a } = n.match(t);
|
|
126
|
+
return o && a && Object.keys(a).forEach((i) => r(i, a[i])), o;
|
|
55
127
|
}
|
|
56
|
-
if (
|
|
57
|
-
if (!
|
|
128
|
+
if (We(e)) {
|
|
129
|
+
if (!We(t)) return !1;
|
|
58
130
|
if (Array.isArray(e)) {
|
|
59
131
|
if (!Array.isArray(t)) return !1;
|
|
60
|
-
let n = [],
|
|
61
|
-
for (const
|
|
62
|
-
const
|
|
63
|
-
|
|
132
|
+
let n = [], o = [], a = [];
|
|
133
|
+
for (const i of e.keys()) {
|
|
134
|
+
const s = e[i];
|
|
135
|
+
Ae(s) && s[Ft] ? a.push(s) : a.length ? o.push(s) : n.push(s);
|
|
64
136
|
}
|
|
65
|
-
if (
|
|
66
|
-
if (
|
|
67
|
-
if (t.length < n.length +
|
|
68
|
-
const
|
|
69
|
-
return n.every((
|
|
137
|
+
if (a.length) {
|
|
138
|
+
if (a.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
139
|
+
if (t.length < n.length + o.length) return !1;
|
|
140
|
+
const i = t.slice(0, n.length), s = o.length === 0 ? [] : t.slice(-o.length), c = t.slice(n.length, o.length === 0 ? 1 / 0 : -o.length);
|
|
141
|
+
return n.every((u, d) => A(u, i[d], r)) && o.every((u, d) => A(u, s[d], r)) && (a.length === 0 || A(a[0], c, r));
|
|
70
142
|
}
|
|
71
|
-
return e.length === t.length && e.every((
|
|
143
|
+
return e.length === t.length && e.every((i, s) => A(i, t[s], r));
|
|
72
144
|
}
|
|
73
145
|
return Reflect.ownKeys(e).every((n) => {
|
|
74
|
-
const
|
|
75
|
-
return (n in t ||
|
|
76
|
-
var
|
|
146
|
+
const o = e[n];
|
|
147
|
+
return (n in t || Ae(a = o) && a[j]().matcherType === "optional") && A(o, t[n], r);
|
|
148
|
+
var a;
|
|
77
149
|
});
|
|
78
150
|
}
|
|
79
151
|
return Object.is(t, e);
|
|
80
|
-
},
|
|
152
|
+
}, P = (e) => {
|
|
81
153
|
var t, r, n;
|
|
82
|
-
return
|
|
83
|
-
},
|
|
84
|
-
function
|
|
154
|
+
return We(e) ? Ae(e) ? (t = (r = (n = e[j]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? xe(e, P) : xe(Object.values(e), P) : [];
|
|
155
|
+
}, xe = (e, t) => e.reduce((r, n) => r.concat(t(n)), []);
|
|
156
|
+
function vr(...e) {
|
|
85
157
|
if (e.length === 1) {
|
|
86
158
|
const [t] = e;
|
|
87
|
-
return (r) =>
|
|
159
|
+
return (r) => A(t, r, () => {
|
|
88
160
|
});
|
|
89
161
|
}
|
|
90
162
|
if (e.length === 2) {
|
|
91
163
|
const [t, r] = e;
|
|
92
|
-
return
|
|
164
|
+
return A(t, r, () => {
|
|
93
165
|
});
|
|
94
166
|
}
|
|
95
167
|
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`);
|
|
96
168
|
}
|
|
97
|
-
function
|
|
98
|
-
return Object.assign(e, { optional: () =>
|
|
169
|
+
function F(e) {
|
|
170
|
+
return Object.assign(e, { optional: () => Ze(e), and: (t) => C(e, t), or: (t) => Bt(e, t), select: (t) => t === void 0 ? ke(e) : ke(t, e) });
|
|
99
171
|
}
|
|
100
|
-
function
|
|
172
|
+
function He(e) {
|
|
101
173
|
return Object.assign(((t) => Object.assign(t, { [Symbol.iterator]() {
|
|
102
174
|
let r = 0;
|
|
103
|
-
const n = [{ value: Object.assign(t, { [
|
|
175
|
+
const n = [{ value: Object.assign(t, { [Ft]: !0 }), done: !1 }, { done: !0, value: void 0 }];
|
|
104
176
|
return { next: () => {
|
|
105
|
-
var
|
|
106
|
-
return (
|
|
177
|
+
var o;
|
|
178
|
+
return (o = n[r++]) != null ? o : n.at(-1);
|
|
107
179
|
} };
|
|
108
|
-
} }))(e), { optional: () =>
|
|
180
|
+
} }))(e), { optional: () => He(Ze(e)), select: (t) => He(t === void 0 ? ke(e) : ke(t, e)) });
|
|
109
181
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
182
|
+
function Ze(e) {
|
|
183
|
+
return F({ [j]: () => ({ match: (t) => {
|
|
112
184
|
let r = {};
|
|
113
|
-
const n = (
|
|
114
|
-
r[
|
|
185
|
+
const n = (o, a) => {
|
|
186
|
+
r[o] = a;
|
|
115
187
|
};
|
|
116
|
-
return t === void 0 ? (
|
|
117
|
-
}, getSelectionKeys: () =>
|
|
188
|
+
return t === void 0 ? (P(e).forEach((o) => n(o, void 0)), { matched: !0, selections: r }) : { matched: A(e, t, n), selections: r };
|
|
189
|
+
}, getSelectionKeys: () => P(e), matcherType: "optional" }) });
|
|
118
190
|
}
|
|
119
|
-
const
|
|
191
|
+
const hr = (e, t) => {
|
|
120
192
|
for (const r of e) if (!t(r)) return !1;
|
|
121
193
|
return !0;
|
|
122
|
-
},
|
|
194
|
+
}, gr = (e, t) => {
|
|
123
195
|
for (const [r, n] of e.entries()) if (!t(n, r)) return !1;
|
|
124
196
|
return !0;
|
|
125
|
-
},
|
|
197
|
+
}, mr = (e, t) => {
|
|
126
198
|
const r = Reflect.ownKeys(e);
|
|
127
199
|
for (const n of r) if (!t(n, e[n])) return !1;
|
|
128
200
|
return !0;
|
|
129
201
|
};
|
|
130
|
-
function
|
|
131
|
-
return
|
|
202
|
+
function C(...e) {
|
|
203
|
+
return F({ [j]: () => ({ match: (t) => {
|
|
132
204
|
let r = {};
|
|
133
|
-
const n = (
|
|
134
|
-
r[
|
|
205
|
+
const n = (o, a) => {
|
|
206
|
+
r[o] = a;
|
|
135
207
|
};
|
|
136
|
-
return { matched: e.every((
|
|
137
|
-
}, getSelectionKeys: () =>
|
|
208
|
+
return { matched: e.every((o) => A(o, t, n)), selections: r };
|
|
209
|
+
}, getSelectionKeys: () => xe(e, P), matcherType: "and" }) });
|
|
138
210
|
}
|
|
139
|
-
function
|
|
140
|
-
return
|
|
211
|
+
function Bt(...e) {
|
|
212
|
+
return F({ [j]: () => ({ match: (t) => {
|
|
141
213
|
let r = {};
|
|
142
|
-
const n = (
|
|
143
|
-
r[
|
|
214
|
+
const n = (o, a) => {
|
|
215
|
+
r[o] = a;
|
|
144
216
|
};
|
|
145
|
-
return
|
|
146
|
-
}, getSelectionKeys: () =>
|
|
217
|
+
return xe(e, P).forEach((o) => n(o, void 0)), { matched: e.some((o) => A(o, t, n)), selections: r };
|
|
218
|
+
}, getSelectionKeys: () => xe(e, P), matcherType: "or" }) });
|
|
147
219
|
}
|
|
148
|
-
function
|
|
149
|
-
return { [
|
|
220
|
+
function v(e) {
|
|
221
|
+
return { [j]: () => ({ match: (t) => ({ matched: !!e(t) }) }) };
|
|
150
222
|
}
|
|
151
|
-
function
|
|
223
|
+
function ke(...e) {
|
|
152
224
|
const t = typeof e[0] == "string" ? e[0] : void 0, r = e.length === 2 ? e[1] : typeof e[0] == "string" ? void 0 : e[0];
|
|
153
|
-
return
|
|
154
|
-
let
|
|
155
|
-
return { matched: r === void 0 ||
|
|
156
|
-
|
|
157
|
-
}), selections:
|
|
158
|
-
}, getSelectionKeys: () => [t ??
|
|
159
|
-
}
|
|
160
|
-
function
|
|
225
|
+
return F({ [j]: () => ({ match: (n) => {
|
|
226
|
+
let o = { [t ?? Fe]: n };
|
|
227
|
+
return { matched: r === void 0 || A(r, n, (a, i) => {
|
|
228
|
+
o[a] = i;
|
|
229
|
+
}), selections: o };
|
|
230
|
+
}, getSelectionKeys: () => [t ?? Fe].concat(r === void 0 ? [] : P(r)) }) });
|
|
231
|
+
}
|
|
232
|
+
function Tt(e) {
|
|
161
233
|
return !0;
|
|
162
234
|
}
|
|
163
|
-
function
|
|
235
|
+
function W(e) {
|
|
164
236
|
return typeof e == "number";
|
|
165
237
|
}
|
|
166
|
-
function
|
|
238
|
+
function $(e) {
|
|
167
239
|
return typeof e == "string";
|
|
168
240
|
}
|
|
169
|
-
function
|
|
241
|
+
function ee(e) {
|
|
170
242
|
return typeof e == "bigint";
|
|
171
243
|
}
|
|
172
|
-
const
|
|
173
|
-
return
|
|
244
|
+
const Ot = F(v(Tt)), br = F(v(Tt)), yr = Ot, te = (e) => Object.assign(F(e), { startsWith: (t) => {
|
|
245
|
+
return te(C(e, (r = t, v((n) => $(n) && n.startsWith(r)))));
|
|
174
246
|
var r;
|
|
175
247
|
}, endsWith: (t) => {
|
|
176
|
-
return
|
|
248
|
+
return te(C(e, (r = t, v((n) => $(n) && n.endsWith(r)))));
|
|
177
249
|
var r;
|
|
178
|
-
}, minLength: (t) =>
|
|
179
|
-
return
|
|
250
|
+
}, minLength: (t) => te(C(e, ((r) => v((n) => $(n) && n.length >= r))(t))), length: (t) => te(C(e, ((r) => v((n) => $(n) && n.length === r))(t))), maxLength: (t) => te(C(e, ((r) => v((n) => $(n) && n.length <= r))(t))), includes: (t) => {
|
|
251
|
+
return te(C(e, (r = t, v((n) => $(n) && n.includes(r)))));
|
|
180
252
|
var r;
|
|
181
253
|
}, regex: (t) => {
|
|
182
|
-
return
|
|
254
|
+
return te(C(e, (r = t, v((n) => $(n) && !!n.match(r)))));
|
|
183
255
|
var r;
|
|
184
|
-
} }),
|
|
256
|
+
} }), it = te(v($)), H = (e) => Object.assign(F(e), { between: (t, r) => H(C(e, ((n, o) => v((a) => W(a) && n <= a && o >= a))(t, r))), lt: (t) => H(C(e, ((r) => v((n) => W(n) && n < r))(t))), gt: (t) => H(C(e, ((r) => v((n) => W(n) && n > r))(t))), lte: (t) => H(C(e, ((r) => v((n) => W(n) && n <= r))(t))), gte: (t) => H(C(e, ((r) => v((n) => W(n) && n >= r))(t))), int: () => H(C(e, v((t) => W(t) && Number.isInteger(t)))), finite: () => H(C(e, v((t) => W(t) && Number.isFinite(t)))), positive: () => H(C(e, v((t) => W(t) && t > 0))), negative: () => H(C(e, v((t) => W(t) && t < 0))) }), wr = H(v(W)), re = (e) => Object.assign(F(e), { between: (t, r) => re(C(e, ((n, o) => v((a) => ee(a) && n <= a && o >= a))(t, r))), lt: (t) => re(C(e, ((r) => v((n) => ee(n) && n < r))(t))), gt: (t) => re(C(e, ((r) => v((n) => ee(n) && n > r))(t))), lte: (t) => re(C(e, ((r) => v((n) => ee(n) && n <= r))(t))), gte: (t) => re(C(e, ((r) => v((n) => ee(n) && n >= r))(t))), positive: () => re(C(e, v((t) => ee(t) && t > 0))), negative: () => re(C(e, v((t) => ee(t) && t < 0))) }), xr = re(v(ee)), kr = F(v(function(e) {
|
|
185
257
|
return typeof e == "boolean";
|
|
186
|
-
})),
|
|
258
|
+
})), Cr = F(v(function(e) {
|
|
187
259
|
return typeof e == "symbol";
|
|
188
|
-
})),
|
|
260
|
+
})), _r = F(v(function(e) {
|
|
189
261
|
return e == null;
|
|
190
|
-
})), Nr =
|
|
262
|
+
})), Nr = F(v(function(e) {
|
|
191
263
|
return e != null;
|
|
192
264
|
}));
|
|
193
|
-
var
|
|
194
|
-
return
|
|
265
|
+
var Rt = { __proto__: null, matcher: j, optional: Ze, array: function(...e) {
|
|
266
|
+
return He({ [j]: () => ({ match: (t) => {
|
|
195
267
|
if (!Array.isArray(t)) return { matched: !1 };
|
|
196
268
|
if (e.length === 0) return { matched: !0 };
|
|
197
269
|
const r = e[0];
|
|
198
270
|
let n = {};
|
|
199
|
-
if (t.length === 0) return
|
|
200
|
-
n[
|
|
271
|
+
if (t.length === 0) return P(r).forEach((a) => {
|
|
272
|
+
n[a] = [];
|
|
201
273
|
}), { matched: !0, selections: n };
|
|
202
|
-
const
|
|
203
|
-
n[
|
|
274
|
+
const o = (a, i) => {
|
|
275
|
+
n[a] = (n[a] || []).concat([i]);
|
|
204
276
|
};
|
|
205
|
-
return { matched: t.every((
|
|
206
|
-
}, getSelectionKeys: () => e.length === 0 ? [] :
|
|
277
|
+
return { matched: t.every((a) => A(r, a, o)), selections: n };
|
|
278
|
+
}, getSelectionKeys: () => e.length === 0 ? [] : P(e[0]) }) });
|
|
207
279
|
}, set: function(...e) {
|
|
208
|
-
return
|
|
280
|
+
return F({ [j]: () => ({ match: (t) => {
|
|
209
281
|
if (!(t instanceof Set)) return { matched: !1 };
|
|
210
282
|
let r = {};
|
|
211
283
|
if (t.size === 0) return { matched: !0, selections: r };
|
|
212
284
|
if (e.length === 0) return { matched: !0 };
|
|
213
|
-
const n = (
|
|
214
|
-
r[
|
|
215
|
-
},
|
|
216
|
-
return { matched:
|
|
217
|
-
}, getSelectionKeys: () => e.length === 0 ? [] :
|
|
285
|
+
const n = (a, i) => {
|
|
286
|
+
r[a] = (r[a] || []).concat([i]);
|
|
287
|
+
}, o = e[0];
|
|
288
|
+
return { matched: hr(t, (a) => A(o, a, n)), selections: r };
|
|
289
|
+
}, getSelectionKeys: () => e.length === 0 ? [] : P(e[0]) }) });
|
|
218
290
|
}, map: function(...e) {
|
|
219
|
-
return
|
|
291
|
+
return F({ [j]: () => ({ match: (t) => {
|
|
220
292
|
if (!(t instanceof Map)) return { matched: !1 };
|
|
221
293
|
let r = {};
|
|
222
294
|
if (t.size === 0) return { matched: !0, selections: r };
|
|
223
|
-
const n = (
|
|
224
|
-
r[
|
|
295
|
+
const n = (s, c) => {
|
|
296
|
+
r[s] = (r[s] || []).concat([c]);
|
|
225
297
|
};
|
|
226
298
|
if (e.length === 0) return { matched: !0 };
|
|
227
|
-
var
|
|
228
|
-
if (e.length === 1) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(
|
|
229
|
-
const [
|
|
230
|
-
return { matched:
|
|
231
|
-
const
|
|
232
|
-
return
|
|
299
|
+
var o;
|
|
300
|
+
if (e.length === 1) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = e[0]) == null ? void 0 : o.toString()}`);
|
|
301
|
+
const [a, i] = e;
|
|
302
|
+
return { matched: gr(t, (s, c) => {
|
|
303
|
+
const u = A(a, c, n), d = A(i, s, n);
|
|
304
|
+
return u && d;
|
|
233
305
|
}), selections: r };
|
|
234
|
-
}, getSelectionKeys: () => e.length === 0 ? [] : [...
|
|
306
|
+
}, getSelectionKeys: () => e.length === 0 ? [] : [...P(e[0]), ...P(e[1])] }) });
|
|
235
307
|
}, record: function(...e) {
|
|
236
|
-
return
|
|
308
|
+
return F({ [j]: () => ({ match: (t) => {
|
|
237
309
|
if (t === null || typeof t != "object" || Array.isArray(t)) return { matched: !1 };
|
|
238
310
|
var r;
|
|
239
311
|
if (e.length === 0) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(r = e[0]) == null ? void 0 : r.toString()}`);
|
|
240
312
|
let n = {};
|
|
241
|
-
const
|
|
242
|
-
n[
|
|
243
|
-
}, [
|
|
244
|
-
return { matched:
|
|
245
|
-
const
|
|
246
|
-
return (
|
|
313
|
+
const o = (s, c) => {
|
|
314
|
+
n[s] = (n[s] || []).concat([c]);
|
|
315
|
+
}, [a, i] = e.length === 1 ? [it, e[0]] : e;
|
|
316
|
+
return { matched: mr(t, (s, c) => {
|
|
317
|
+
const u = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), d = u !== null && A(a, u, o), f = A(a, s, o), _ = A(i, c, o);
|
|
318
|
+
return (f || d) && _;
|
|
247
319
|
}), selections: n };
|
|
248
|
-
}, getSelectionKeys: () => e.length === 0 ? [] : [...
|
|
249
|
-
}, intersection:
|
|
250
|
-
return
|
|
320
|
+
}, getSelectionKeys: () => e.length === 0 ? [] : [...P(e[0]), ...P(e[1])] }) });
|
|
321
|
+
}, intersection: C, union: Bt, not: function(e) {
|
|
322
|
+
return F({ [j]: () => ({ match: (t) => ({ matched: !A(e, t, () => {
|
|
251
323
|
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
252
|
-
}, when:
|
|
253
|
-
return
|
|
324
|
+
}, when: v, select: ke, any: Ot, unknown: br, _: yr, string: it, number: wr, bigint: xr, boolean: kr, symbol: Cr, nullish: _r, nonNullable: Nr, instanceOf: function(e) {
|
|
325
|
+
return F(v(/* @__PURE__ */ (function(t) {
|
|
254
326
|
return (r) => r instanceof t;
|
|
255
327
|
})(e)));
|
|
256
328
|
}, shape: function(e) {
|
|
257
|
-
return
|
|
329
|
+
return F(v(vr(e)));
|
|
258
330
|
} };
|
|
259
|
-
let
|
|
331
|
+
let Sr = class extends Error {
|
|
260
332
|
constructor(t) {
|
|
261
333
|
let r;
|
|
262
334
|
try {
|
|
@@ -267,34 +339,34 @@ let Cr = class extends Error {
|
|
|
267
339
|
super(`Pattern matching error: no pattern matches value ${r}`), this.input = void 0, this.input = t;
|
|
268
340
|
}
|
|
269
341
|
};
|
|
270
|
-
const
|
|
271
|
-
function
|
|
272
|
-
return new Ar(e,
|
|
342
|
+
const Ke = { matched: !1, value: void 0 };
|
|
343
|
+
function Q(e) {
|
|
344
|
+
return new Ar(e, Ke);
|
|
273
345
|
}
|
|
274
|
-
let Ar = class
|
|
346
|
+
let Ar = class Ue {
|
|
275
347
|
constructor(t, r) {
|
|
276
348
|
this.input = void 0, this.state = void 0, this.input = t, this.state = r;
|
|
277
349
|
}
|
|
278
350
|
with(...t) {
|
|
279
351
|
if (this.state.matched) return this;
|
|
280
352
|
const r = t[t.length - 1], n = [t[0]];
|
|
281
|
-
let
|
|
282
|
-
t.length === 3 && typeof t[1] == "function" ?
|
|
283
|
-
let
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
}, c = !n.some((
|
|
287
|
-
return new
|
|
353
|
+
let o;
|
|
354
|
+
t.length === 3 && typeof t[1] == "function" ? o = t[1] : t.length > 2 && n.push(...t.slice(1, t.length - 1));
|
|
355
|
+
let a = !1, i = {};
|
|
356
|
+
const s = (u, d) => {
|
|
357
|
+
a = !0, i[u] = d;
|
|
358
|
+
}, c = !n.some((u) => A(u, this.input, s)) || o && !o(this.input) ? Ke : { matched: !0, value: r(a ? Fe in i ? i[Fe] : i : this.input, this.input) };
|
|
359
|
+
return new Ue(this.input, c);
|
|
288
360
|
}
|
|
289
361
|
when(t, r) {
|
|
290
362
|
if (this.state.matched) return this;
|
|
291
363
|
const n = !!t(this.input);
|
|
292
|
-
return new
|
|
364
|
+
return new Ue(this.input, n ? { matched: !0, value: r(this.input, this.input) } : Ke);
|
|
293
365
|
}
|
|
294
366
|
otherwise(t) {
|
|
295
367
|
return this.state.matched ? this.state.value : t(this.input);
|
|
296
368
|
}
|
|
297
|
-
exhaustive(t =
|
|
369
|
+
exhaustive(t = Er) {
|
|
298
370
|
return this.state.matched ? this.state.value : t(this.input);
|
|
299
371
|
}
|
|
300
372
|
run() {
|
|
@@ -307,132 +379,399 @@ let Ar = class He {
|
|
|
307
379
|
return this;
|
|
308
380
|
}
|
|
309
381
|
};
|
|
310
|
-
function
|
|
311
|
-
throw new
|
|
312
|
-
}
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
382
|
+
function Er(e) {
|
|
383
|
+
throw new Sr(e);
|
|
384
|
+
}
|
|
385
|
+
const ue = {
|
|
386
|
+
STANDBY: "standby",
|
|
387
|
+
CONNECTING: "connecting",
|
|
388
|
+
READY: "ready",
|
|
389
|
+
HANDSHAKE: "handshake",
|
|
390
|
+
HANDSHAKE_PARTIAL: "handshake-partial",
|
|
391
|
+
ENCRYPTED: "encrypted"
|
|
392
|
+
}, me = {
|
|
393
|
+
CREATED: "created",
|
|
394
|
+
SIGNALING: "signaling",
|
|
395
|
+
READY: "ready",
|
|
396
|
+
CONNECTED: "connected",
|
|
397
|
+
DISCONNECTED: "disconnected"
|
|
398
|
+
}, ae = {
|
|
399
|
+
STANDBY: "standby",
|
|
400
|
+
CREATING: "creating",
|
|
401
|
+
CONNECTING: "connecting",
|
|
402
|
+
CONNECTED: "connected",
|
|
403
|
+
ERROR: "error"
|
|
404
|
+
};
|
|
405
|
+
var Le = { exports: {} };
|
|
406
|
+
var st;
|
|
407
|
+
function Fr() {
|
|
408
|
+
return st || (st = 1, (function(e) {
|
|
409
|
+
(function() {
|
|
410
|
+
var t = {}.hasOwnProperty;
|
|
411
|
+
function r() {
|
|
412
|
+
for (var a = "", i = 0; i < arguments.length; i++) {
|
|
413
|
+
var s = arguments[i];
|
|
414
|
+
s && (a = o(a, n(s)));
|
|
415
|
+
}
|
|
416
|
+
return a;
|
|
417
|
+
}
|
|
418
|
+
function n(a) {
|
|
419
|
+
if (typeof a == "string" || typeof a == "number")
|
|
420
|
+
return a;
|
|
421
|
+
if (typeof a != "object")
|
|
422
|
+
return "";
|
|
423
|
+
if (Array.isArray(a))
|
|
424
|
+
return r.apply(null, a);
|
|
425
|
+
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
426
|
+
return a.toString();
|
|
427
|
+
var i = "";
|
|
428
|
+
for (var s in a)
|
|
429
|
+
t.call(a, s) && a[s] && (i = o(i, s));
|
|
430
|
+
return i;
|
|
431
|
+
}
|
|
432
|
+
function o(a, i) {
|
|
433
|
+
return i ? a ? a + " " + i : a + i : a;
|
|
434
|
+
}
|
|
435
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
436
|
+
})();
|
|
437
|
+
})(Le)), Le.exports;
|
|
438
|
+
}
|
|
439
|
+
var Br = Fr();
|
|
440
|
+
const ie = /* @__PURE__ */ fr(Br), Dt = {
|
|
441
|
+
light: {
|
|
442
|
+
font: { family: "Inter, sans-serif" },
|
|
443
|
+
body: { color: "#0F172A", background: "#FFFFFF" },
|
|
444
|
+
border: { radius: "16px" },
|
|
445
|
+
overlay: {
|
|
446
|
+
background: "rgba(0, 0, 0, 0.10)",
|
|
447
|
+
backdrop: { filter: "blur(6px)" }
|
|
448
|
+
},
|
|
449
|
+
modal: { shadow: "0px 12px 32px rgba(15,23,42,0.10)" },
|
|
450
|
+
control: {
|
|
451
|
+
input: { background: "#FFFFFF", border: "#E2E8F0", text: "#0F172A" },
|
|
452
|
+
button: {
|
|
453
|
+
primary: {
|
|
454
|
+
background: "#FF6A00",
|
|
455
|
+
color: "#FFFFFF",
|
|
456
|
+
padding: "8px 16px",
|
|
457
|
+
hoverBackground: "#FF7D1F",
|
|
458
|
+
activeBackground: "#E76200",
|
|
459
|
+
disabledBackground: "#CBD5E1",
|
|
460
|
+
disabledColor: "#475569",
|
|
461
|
+
border: "#FF6A00"
|
|
462
|
+
},
|
|
463
|
+
secondary: {
|
|
464
|
+
background: "#E2E8F0",
|
|
465
|
+
color: "#0F172A",
|
|
466
|
+
hoverBackground: "#CBD5E1",
|
|
467
|
+
activeBackground: "#94A3B8",
|
|
468
|
+
disabledBackground: "#F1F5F9",
|
|
469
|
+
disabledColor: "#94A3B8",
|
|
470
|
+
border: "#E2E8F0"
|
|
471
|
+
},
|
|
472
|
+
tertiary: {
|
|
473
|
+
color: "#475569",
|
|
474
|
+
hoverBackground: "#F1F5F9",
|
|
475
|
+
activeBackground: "#E2E8F0",
|
|
476
|
+
disabledColor: "#94A3B8"
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
qr: { background: "#FFFFFF", color: "#0F172A" },
|
|
481
|
+
card: { background: "#F5F5F5" },
|
|
482
|
+
text: { primary: "#0F172A", secondary: "#475569", muted: "#94A3B8" }
|
|
323
483
|
},
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
484
|
+
dark: {
|
|
485
|
+
font: { family: "Inter, sans-serif" },
|
|
486
|
+
body: { color: "#F3F4F6", background: "#16181D" },
|
|
487
|
+
border: { radius: "16px", color: "#2F343C", width: "1px" },
|
|
488
|
+
overlay: {
|
|
489
|
+
background: "rgba(0,0,0,0.55)",
|
|
490
|
+
backdrop: { filter: "blur(8px)" }
|
|
491
|
+
},
|
|
492
|
+
modal: { shadow: "0px 22px 60px rgba(0,0,0,0.55)" },
|
|
493
|
+
control: {
|
|
494
|
+
input: { background: "#12151A", border: "#2F343C", text: "#E8EAED" },
|
|
495
|
+
button: {
|
|
496
|
+
primary: {
|
|
497
|
+
background: "#FF6A00",
|
|
498
|
+
color: "#0D0E12",
|
|
499
|
+
padding: "8px 16px",
|
|
500
|
+
hoverBackground: "#FF7D1F",
|
|
501
|
+
activeBackground: "#E76200",
|
|
502
|
+
disabledBackground: "#2A2F36",
|
|
503
|
+
disabledColor: "#8E949C",
|
|
504
|
+
border: "#FF6A00"
|
|
505
|
+
},
|
|
506
|
+
secondary: {
|
|
507
|
+
background: "#262A31",
|
|
508
|
+
color: "#E8EAED",
|
|
509
|
+
hoverBackground: "#2D323A",
|
|
510
|
+
activeBackground: "#23272E",
|
|
511
|
+
disabledBackground: "#1D2026",
|
|
512
|
+
disabledColor: "#8E949C",
|
|
513
|
+
border: "#333843"
|
|
514
|
+
},
|
|
515
|
+
tertiary: {
|
|
516
|
+
color: "#A4A9B1",
|
|
517
|
+
hoverBackground: "#20242A",
|
|
518
|
+
activeBackground: "#1B1F24",
|
|
519
|
+
disabledColor: "#6F747B"
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
qr: { background: "#FFFFFF", color: "#0D0E12" },
|
|
524
|
+
card: { background: "#1E2127" },
|
|
525
|
+
text: { primary: "#F3F4F6", secondary: "#C8CCD2", muted: "#9AA0A9" }
|
|
526
|
+
}
|
|
527
|
+
}, Tr = {
|
|
528
|
+
light: {
|
|
529
|
+
font: { family: "sans-serif" },
|
|
530
|
+
body: {
|
|
531
|
+
color: "#1E293B",
|
|
532
|
+
background: "#FFFFFF"
|
|
533
|
+
},
|
|
534
|
+
border: {
|
|
535
|
+
radius: "16px"
|
|
536
|
+
},
|
|
537
|
+
overlay: {
|
|
538
|
+
background: "rgba(0, 0, 0, 0.3)",
|
|
539
|
+
backdrop: { filter: "blur(8px)" }
|
|
540
|
+
},
|
|
541
|
+
modal: {
|
|
542
|
+
shadow: "0px 12px 32px rgba(0, 0, 0, 0.25)"
|
|
543
|
+
},
|
|
544
|
+
control: {
|
|
545
|
+
input: {
|
|
546
|
+
background: "#FFFFFF",
|
|
547
|
+
border: "#D1D5DC",
|
|
548
|
+
text: "#111827"
|
|
549
|
+
},
|
|
550
|
+
button: {
|
|
551
|
+
primary: {
|
|
552
|
+
background: "#3B82F6",
|
|
553
|
+
color: "#FFFFFF",
|
|
554
|
+
padding: "8px 16px",
|
|
555
|
+
hoverBackground: "#2563EB",
|
|
556
|
+
activeBackground: "#1D4ED8",
|
|
557
|
+
disabledBackground: "#E5E7EB",
|
|
558
|
+
disabledColor: "#9CA3AF",
|
|
559
|
+
border: "#3B82F6"
|
|
560
|
+
},
|
|
561
|
+
secondary: {
|
|
562
|
+
background: "#E5E7EB",
|
|
563
|
+
color: "#374151",
|
|
564
|
+
hoverBackground: "#D1D5DC",
|
|
565
|
+
activeBackground: "#D1D5DB",
|
|
566
|
+
disabledBackground: "#F9FAFB",
|
|
567
|
+
disabledColor: "#9CA3AF",
|
|
568
|
+
border: "#D1D5DC",
|
|
569
|
+
selectedBackground: "#EFF6FF",
|
|
570
|
+
selectedColor: "#155dfc"
|
|
571
|
+
},
|
|
572
|
+
tertiary: {
|
|
573
|
+
color: "#6B7280",
|
|
574
|
+
hoverBackground: "#E5E5E5",
|
|
575
|
+
activeBackground: "#D1D5DB",
|
|
576
|
+
disabledColor: "#9CA3AF"
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
qr: {
|
|
581
|
+
background: "#F9FAFB",
|
|
582
|
+
color: "#111827"
|
|
583
|
+
},
|
|
584
|
+
card: {
|
|
585
|
+
background: "#F5F5F5"
|
|
586
|
+
},
|
|
587
|
+
text: {
|
|
588
|
+
primary: "#111827",
|
|
589
|
+
secondary: "#374151",
|
|
590
|
+
muted: "#6B7280",
|
|
591
|
+
heading: "#111827",
|
|
592
|
+
body: "#6a7282"
|
|
328
593
|
}
|
|
329
|
-
},
|
|
330
|
-
modal: {
|
|
331
|
-
shadow: "0px 2px 4px 0px #00000005"
|
|
332
594
|
}
|
|
333
|
-
},
|
|
334
|
-
for (const [n,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
595
|
+
}, Pt = (e, t, r) => {
|
|
596
|
+
for (const [n, o] of Object.entries(r))
|
|
597
|
+
o && typeof o == "object" ? Pt(
|
|
598
|
+
e,
|
|
599
|
+
[...t, n],
|
|
600
|
+
o
|
|
601
|
+
) : typeof o == "string" && e.set(`--lv-${[...t, n].join("-")}`, o);
|
|
602
|
+
}, jt = (e) => {
|
|
603
|
+
const t = /* @__PURE__ */ new Map();
|
|
604
|
+
e && Pt(t, [], e);
|
|
605
|
+
const r = (a, i) => {
|
|
606
|
+
const s = t.get(a);
|
|
607
|
+
s !== void 0 && !t.has(i) && t.set(i, s);
|
|
608
|
+
}, n = ["primary", "secondary", "tertiary"], o = [
|
|
609
|
+
"background",
|
|
610
|
+
"color",
|
|
611
|
+
"border",
|
|
612
|
+
"hoverBackground",
|
|
613
|
+
"activeBackground",
|
|
614
|
+
"disabledBackground",
|
|
615
|
+
"disabledColor",
|
|
616
|
+
"selectedBackground",
|
|
617
|
+
"selectedColor"
|
|
618
|
+
];
|
|
619
|
+
for (const a of n)
|
|
620
|
+
for (const i of o)
|
|
621
|
+
r(`--lv-control-button-${a}-${i}`, `--lv-button-${a}-${i}`), r(`--lv-button-${a}-${i}`, `--lv-control-button-${a}-${i}`);
|
|
622
|
+
return Object.fromEntries(t.entries());
|
|
623
|
+
}, De = {
|
|
624
|
+
theme: "openlv",
|
|
625
|
+
tokens: Dt,
|
|
626
|
+
mode: "system"
|
|
627
|
+
}, Or = {
|
|
628
|
+
openlv: Dt,
|
|
629
|
+
simple: Tr
|
|
630
|
+
}, Rr = (e) => Or[e], Dr = () => typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", Pr = (e, t) => {
|
|
631
|
+
const r = e === "system" ? [Dr(), "light", "dark"] : [e, "light", "dark"];
|
|
632
|
+
for (const n of r) {
|
|
633
|
+
const o = t[n];
|
|
634
|
+
if (o)
|
|
635
|
+
return {
|
|
636
|
+
tokens: o,
|
|
637
|
+
mode: n
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
}, It = (e) => {
|
|
641
|
+
const { theme: t, tokens: r } = e, n = r ?? Rr(t), o = Pr(e.mode, n);
|
|
642
|
+
if (!o)
|
|
643
|
+
throw new Error("Invalid theme configuration: mode does not match tokens");
|
|
644
|
+
return o;
|
|
339
645
|
}, jr = ({
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}) =>
|
|
646
|
+
children: e,
|
|
647
|
+
...t
|
|
648
|
+
}) => {
|
|
649
|
+
const { tokens: r, mode: n } = It(
|
|
650
|
+
t
|
|
651
|
+
);
|
|
652
|
+
return /* @__PURE__ */ l(
|
|
653
|
+
"div",
|
|
654
|
+
{
|
|
655
|
+
style: jt(r),
|
|
656
|
+
id: "root",
|
|
657
|
+
"data-openlv-theme": t.theme,
|
|
658
|
+
"data-openlv-mode": n,
|
|
659
|
+
children: e
|
|
660
|
+
}
|
|
661
|
+
);
|
|
662
|
+
}, Vt = Et({
|
|
343
663
|
provider: void 0
|
|
344
|
-
}),
|
|
664
|
+
}), Ir = ({
|
|
345
665
|
provider: e,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
666
|
+
theme: t,
|
|
667
|
+
onClose: r
|
|
668
|
+
}) => {
|
|
669
|
+
const n = t ?? De;
|
|
670
|
+
return /* @__PURE__ */ l(Vt.Provider, { value: { provider: e }, children: /* @__PURE__ */ l(jr, { ...n, children: /* @__PURE__ */ l(uo, { onClose: r }) }) });
|
|
671
|
+
}, Vr = () => {
|
|
672
|
+
const e = Ye(Vt);
|
|
349
673
|
if (!e.provider) throw new Error("Provider not found");
|
|
350
674
|
return e;
|
|
351
|
-
},
|
|
352
|
-
const { provider: e } =
|
|
353
|
-
e?.getState().status ||
|
|
675
|
+
}, Ce = () => {
|
|
676
|
+
const { provider: e } = Vr(), [t, r] = D(
|
|
677
|
+
e?.getState().status || ae.ERROR
|
|
354
678
|
);
|
|
355
|
-
if (
|
|
356
|
-
const n = (
|
|
357
|
-
r(
|
|
679
|
+
if (I(() => {
|
|
680
|
+
const n = (o) => {
|
|
681
|
+
r(o);
|
|
358
682
|
};
|
|
359
683
|
return e?.on("status_change", n), () => {
|
|
360
684
|
e?.off("status_change", n);
|
|
361
685
|
};
|
|
362
686
|
}, [e]), !e) throw new Error("Provider not found");
|
|
363
687
|
return { provider: e, status: t };
|
|
364
|
-
},
|
|
365
|
-
const t = new URLSearchParams();
|
|
366
|
-
return t.set("h", e.h), t.set("k", e.k), e.p && t.set("p", e.p), e.s && t.set("s", e.s), `openlv://${e.sessionId}@${Er}?${t.toString()}`;
|
|
367
|
-
}, Ae = (...e) => console.log(
|
|
688
|
+
}, $e = (...e) => console.log(
|
|
368
689
|
"%c[modal]%c",
|
|
369
690
|
"color: yellow; font-weight: bold",
|
|
370
691
|
"color: inherit; font-weight: normal",
|
|
371
692
|
...e
|
|
372
|
-
),
|
|
373
|
-
|
|
693
|
+
), Mt = (e, t, r) => {
|
|
694
|
+
I(() => (e?.on(t, r), () => {
|
|
374
695
|
e?.off(t, r);
|
|
375
696
|
}), [e, t]);
|
|
376
|
-
},
|
|
377
|
-
const { provider: e } =
|
|
697
|
+
}, et = () => {
|
|
698
|
+
const { provider: e } = Ce(), [t, r] = D(
|
|
378
699
|
e?.storage.getSettings()
|
|
379
700
|
);
|
|
380
|
-
|
|
701
|
+
Mt(
|
|
381
702
|
e?.storage.emitter,
|
|
382
703
|
"settings_change",
|
|
383
|
-
(
|
|
384
|
-
r(
|
|
704
|
+
(s) => {
|
|
705
|
+
r(s);
|
|
385
706
|
}
|
|
386
707
|
);
|
|
387
|
-
const n = (
|
|
388
|
-
if (!t || t.signaling?.p ===
|
|
389
|
-
const
|
|
708
|
+
const n = (s) => {
|
|
709
|
+
if (!t || t.signaling?.p === s) return;
|
|
710
|
+
const c = {
|
|
390
711
|
...t,
|
|
391
712
|
signaling: {
|
|
392
713
|
...t.signaling,
|
|
393
|
-
p:
|
|
714
|
+
p: s
|
|
394
715
|
}
|
|
395
716
|
};
|
|
396
|
-
r(
|
|
397
|
-
},
|
|
398
|
-
if (!t || t.signaling?.s[t.signaling?.p] ===
|
|
399
|
-
const
|
|
717
|
+
r(c), e?.storage.setSettings(c);
|
|
718
|
+
}, o = (s) => {
|
|
719
|
+
if (!t || t.signaling?.s[t.signaling?.p] === s) return;
|
|
720
|
+
const c = {
|
|
400
721
|
...t,
|
|
401
722
|
signaling: {
|
|
402
723
|
...t.signaling,
|
|
403
724
|
s: {
|
|
404
725
|
...t.signaling.s,
|
|
405
|
-
[t.signaling.p]:
|
|
726
|
+
[t.signaling.p]: s
|
|
406
727
|
}
|
|
407
728
|
}
|
|
408
729
|
};
|
|
409
|
-
r(
|
|
730
|
+
r(c), e?.storage.setSettings(c);
|
|
731
|
+
}, a = (s) => {
|
|
732
|
+
t && (r({ ...t, retainHistory: s }), e?.storage.setSettings({ ...t, retainHistory: s }));
|
|
733
|
+
}, i = (s) => {
|
|
734
|
+
t && (r({ ...t, autoReconnect: s }), e?.storage.setSettings({ ...t, autoReconnect: s }));
|
|
410
735
|
};
|
|
411
736
|
if (!t) throw new Error("Settings not found");
|
|
412
|
-
return {
|
|
413
|
-
|
|
414
|
-
|
|
737
|
+
return {
|
|
738
|
+
settings: t,
|
|
739
|
+
updateSignalingProtocol: n,
|
|
740
|
+
updateSignalingServer: o,
|
|
741
|
+
updateRetainHistory: a,
|
|
742
|
+
updateAutoReconnect: i
|
|
743
|
+
};
|
|
744
|
+
}, _e = () => {
|
|
745
|
+
const { provider: e } = Ce(), [t, r] = D(
|
|
415
746
|
e?.getSession()
|
|
416
|
-
), n = t?.getHandshakeParameters(),
|
|
747
|
+
), n = t?.getHandshakeParameters(), o = n ? dr(n) : void 0, [a, i] = D(
|
|
417
748
|
t?.getState()
|
|
418
749
|
);
|
|
419
|
-
return
|
|
420
|
-
|
|
421
|
-
}),
|
|
422
|
-
const
|
|
423
|
-
|
|
750
|
+
return Mt(t?.emitter, "state_change", (s) => {
|
|
751
|
+
$e("session state change: ", s), i(s);
|
|
752
|
+
}), I(() => {
|
|
753
|
+
const s = () => {
|
|
754
|
+
const c = e?.getSession();
|
|
755
|
+
c && r(c);
|
|
424
756
|
};
|
|
425
|
-
return e?.on("
|
|
426
|
-
e?.off("
|
|
757
|
+
return e?.on("status_change", s), () => {
|
|
758
|
+
e?.off("status_change", s);
|
|
427
759
|
};
|
|
428
|
-
}, [e]),
|
|
429
|
-
|
|
760
|
+
}, [e]), I(() => {
|
|
761
|
+
const s = (c) => {
|
|
762
|
+
r(c), i(c.getState());
|
|
763
|
+
};
|
|
764
|
+
return e?.on("session_started", s), () => {
|
|
765
|
+
e?.off("session_started", s);
|
|
766
|
+
};
|
|
767
|
+
}, [e]), I(() => {
|
|
768
|
+
t && i(t.getState());
|
|
430
769
|
}, [t]), {
|
|
431
|
-
uri:
|
|
432
|
-
status:
|
|
770
|
+
uri: o,
|
|
771
|
+
status: a
|
|
433
772
|
};
|
|
434
|
-
},
|
|
435
|
-
const { provider: e } =
|
|
773
|
+
}, Mr = () => {
|
|
774
|
+
const { provider: e } = Ce(), { settings: t } = et();
|
|
436
775
|
return {
|
|
437
776
|
start: () => {
|
|
438
777
|
const r = t?.signaling?.p, n = t?.signaling?.s[r];
|
|
@@ -444,415 +783,474 @@ const rt = {
|
|
|
444
783
|
});
|
|
445
784
|
}
|
|
446
785
|
};
|
|
447
|
-
},
|
|
448
|
-
const { status: t, uri: r } =
|
|
449
|
-
return console.error("Unknown state: ", { state: e, sessionStatus: t, providerStatus: n }), /* @__PURE__ */
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
786
|
+
}, Je = ({ state: e }) => {
|
|
787
|
+
const { status: t, uri: r } = _e(), { status: n } = Ce();
|
|
788
|
+
return console.error("Unknown state: ", { state: e, sessionStatus: t, providerStatus: n }), /* @__PURE__ */ h(
|
|
789
|
+
"div",
|
|
790
|
+
{
|
|
791
|
+
className: "rounded-md p-2",
|
|
792
|
+
style: {
|
|
793
|
+
backgroundColor: "var(--lv-button-secondary-background)",
|
|
794
|
+
color: "var(--lv-text-muted)"
|
|
795
|
+
},
|
|
796
|
+
children: [
|
|
797
|
+
/* @__PURE__ */ h("div", { children: [
|
|
798
|
+
"Unknown state: ",
|
|
799
|
+
JSON.stringify(e)
|
|
800
|
+
] }),
|
|
801
|
+
/* @__PURE__ */ h("div", { children: [
|
|
802
|
+
"URI: ",
|
|
803
|
+
r
|
|
804
|
+
] }),
|
|
805
|
+
/* @__PURE__ */ h("div", { children: [
|
|
806
|
+
"Session Status: ",
|
|
807
|
+
JSON.stringify(t)
|
|
808
|
+
] }),
|
|
809
|
+
/* @__PURE__ */ h("div", { children: [
|
|
810
|
+
"Provider Status: ",
|
|
811
|
+
JSON.stringify(n)
|
|
812
|
+
] })
|
|
813
|
+
]
|
|
814
|
+
}
|
|
815
|
+
);
|
|
816
|
+
}, Lr = ({
|
|
468
817
|
onCopy: e
|
|
469
818
|
}) => {
|
|
470
|
-
const { uri: t } =
|
|
819
|
+
const { uri: t } = _e(), r = K(() => {
|
|
471
820
|
t && e(t);
|
|
472
|
-
}, [t, e]), n =
|
|
473
|
-
const
|
|
474
|
-
return
|
|
475
|
-
}, []);
|
|
476
|
-
return /* @__PURE__ */
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
821
|
+
}, [t, e]), n = K((s) => {
|
|
822
|
+
const c = cr.default, u = c(0, "M");
|
|
823
|
+
return u.addData(s), u.make(), u.createSvgTag({ cellSize: 5, margin: 0, scalable: !0 });
|
|
824
|
+
}, []), o = "var(--lv-button-secondary-border)", a = "var(--lv-qr-background)";
|
|
825
|
+
return /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 px-2", children: [
|
|
826
|
+
/* @__PURE__ */ h(
|
|
827
|
+
"div",
|
|
828
|
+
{
|
|
829
|
+
className: "w-full space-y-4 rounded-md p-4",
|
|
830
|
+
style: {
|
|
831
|
+
background: "var(--lv-card-background)",
|
|
832
|
+
border: `1px solid ${o}`
|
|
833
|
+
},
|
|
834
|
+
children: [
|
|
835
|
+
t && /* @__PURE__ */ l(
|
|
836
|
+
"div",
|
|
837
|
+
{
|
|
838
|
+
className: "relative mx-auto flex w-fit items-center justify-center rounded-lg p-4",
|
|
839
|
+
style: {
|
|
840
|
+
background: a,
|
|
841
|
+
border: `1px solid ${o}`
|
|
842
|
+
},
|
|
843
|
+
children: /* @__PURE__ */ l(
|
|
844
|
+
"button",
|
|
845
|
+
{
|
|
846
|
+
className: "h-[200px] w-[200px] cursor-pointer rounded",
|
|
847
|
+
onClick: r,
|
|
848
|
+
title: "Click to copy connection URL",
|
|
849
|
+
dangerouslySetInnerHTML: { __html: n(t) },
|
|
850
|
+
style: {
|
|
851
|
+
background: a,
|
|
852
|
+
color: "var(--lv-qr-color)"
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
)
|
|
856
|
+
}
|
|
857
|
+
),
|
|
858
|
+
/* @__PURE__ */ l("div", { className: "w-full", children: /* @__PURE__ */ l(
|
|
859
|
+
"button",
|
|
860
|
+
{
|
|
861
|
+
type: "button",
|
|
862
|
+
onClick: r,
|
|
863
|
+
className: "w-full cursor-pointer rounded-lg px-4 py-2 text-sm transition bg-(--lv-button-secondary-background) hover:bg-(--lv-button-secondary-hoverBackground) active:bg-(--lv-button-secondary-activeBackground)",
|
|
864
|
+
style: {
|
|
865
|
+
color: "var(--lv-text-primary)",
|
|
866
|
+
border: `1px solid ${o}`
|
|
867
|
+
},
|
|
868
|
+
children: "Copy Connection URL"
|
|
869
|
+
}
|
|
870
|
+
) })
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
),
|
|
874
|
+
/* @__PURE__ */ h(
|
|
875
|
+
"div",
|
|
876
|
+
{
|
|
877
|
+
className: "w-full text-sm",
|
|
878
|
+
style: { color: "var(--lv-text-secondary)" },
|
|
879
|
+
children: [
|
|
880
|
+
/* @__PURE__ */ l("span", { children: "Scan the code above using your mobile wallet." }),
|
|
881
|
+
/* @__PURE__ */ l("br", {}),
|
|
882
|
+
/* @__PURE__ */ l("span", { children: "Or copy the link and paste it into your wallet." })
|
|
883
|
+
]
|
|
884
|
+
}
|
|
885
|
+
)
|
|
502
886
|
] });
|
|
503
|
-
},
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
887
|
+
}, zr = () => typeof document < "u" && "startViewTransition" in document, Gr = (e) => {
|
|
888
|
+
zr() ? document.startViewTransition(e) : e();
|
|
889
|
+
}, lt = () => /* @__PURE__ */ l("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ l("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent" }) }), E = {
|
|
890
|
+
CREATING: "creating",
|
|
891
|
+
CONNECTING: "connecting",
|
|
892
|
+
READY: "ready",
|
|
893
|
+
CONFIRMING: "confirming",
|
|
894
|
+
CONNECTED: "connected",
|
|
895
|
+
DISCONNECTED: "disconnected",
|
|
896
|
+
ERROR: "error"
|
|
897
|
+
}, Wr = (e) => {
|
|
898
|
+
const [t, r] = D(e), n = G(e);
|
|
899
|
+
return I(() => {
|
|
900
|
+
e !== n.current && Gr(() => {
|
|
515
901
|
r(e), n.current = e;
|
|
516
902
|
});
|
|
517
903
|
}, [e]), {
|
|
518
904
|
displayState: t
|
|
519
905
|
};
|
|
520
|
-
},
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
906
|
+
}, Hr = (e) => e ? Q(e).with({ status: me.CREATED }, () => E.CREATING).with(
|
|
907
|
+
{ status: me.SIGNALING, signaling: Rt.select() },
|
|
908
|
+
(t) => Q(t).with({ state: ue.STANDBY }, () => E.CONNECTING).with({ state: ue.CONNECTING }, () => E.CONNECTING).with({ state: ue.READY }, () => E.READY).with({ state: ue.HANDSHAKE }, () => E.CONFIRMING).with(
|
|
909
|
+
{ state: ue.HANDSHAKE_PARTIAL },
|
|
910
|
+
() => E.CONFIRMING
|
|
911
|
+
).with({ state: ue.ENCRYPTED }, () => E.CONNECTED).otherwise(() => E.CONNECTING)
|
|
912
|
+
).with({ status: me.READY }, () => E.READY).with({ status: me.CONNECTED }, () => E.CONNECTED).with({ status: me.DISCONNECTED }, () => E.DISCONNECTED).otherwise(() => E.ERROR) : E.CONNECTING, Kr = ({ onClose: e, onCopy: t }) => {
|
|
913
|
+
const { status: r } = _e(), { displayState: n } = Wr(Hr(r));
|
|
914
|
+
return /* @__PURE__ */ l("div", { style: { viewTransitionName: "connection-flow" }, className: "w-full", children: Q(n).with(E.CREATING, () => /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
915
|
+
/* @__PURE__ */ l(lt, {}),
|
|
916
|
+
/* @__PURE__ */ h("div", { className: "text-center", children: [
|
|
917
|
+
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-[var(--lv-text-primary)] text-lg", children: "Preparing connection" }),
|
|
918
|
+
/* @__PURE__ */ l("p", { className: "text-[var(--lv-text-muted)] text-sm", children: "Generating keys…" })
|
|
919
|
+
] })
|
|
920
|
+
] })).with(E.CONNECTING, () => /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
921
|
+
/* @__PURE__ */ l(lt, {}),
|
|
922
|
+
/* @__PURE__ */ h("div", { className: "text-center", children: [
|
|
923
|
+
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-[var(--lv-text-primary)] text-lg", children: "Connecting" }),
|
|
924
|
+
/* @__PURE__ */ l("p", { className: "text-[var(--lv-text-muted)] text-sm", children: "Waiting for network connection..." })
|
|
527
925
|
] })
|
|
528
|
-
] })).with(
|
|
529
|
-
/* @__PURE__ */
|
|
530
|
-
/* @__PURE__ */
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
] }) })).with(
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
/* @__PURE__ */
|
|
535
|
-
/* @__PURE__ */
|
|
536
|
-
/* @__PURE__ */
|
|
926
|
+
] })).with(E.READY, () => /* @__PURE__ */ l(Lr, { onCopy: t })).with(E.CONFIRMING, () => /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-4 p-6", children: /* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-[var(--lv-text-primary)] text-lg", children: "Establishing e2e encryption..." }) }) })).with(E.CONNECTED, () => /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-4 p-6", children: /* @__PURE__ */ h("div", { className: "text-center", children: [
|
|
927
|
+
/* @__PURE__ */ l("div", { className: "mb-4 text-4xl", children: "✅" }),
|
|
928
|
+
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-[var(--lv-text-primary)] text-lg", children: "Connected Successfully!" }),
|
|
929
|
+
/* @__PURE__ */ l("p", { className: "text-[var(--lv-text-muted)] text-sm", children: "Your wallet is now connected and ready to use." })
|
|
930
|
+
] }) })).with(E.DISCONNECTED, () => /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
931
|
+
/* @__PURE__ */ h("div", { className: "text-center", children: [
|
|
932
|
+
/* @__PURE__ */ l("div", { className: "mb-4 text-4xl", children: "🔌" }),
|
|
933
|
+
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-[var(--lv-text-primary)] text-lg", children: "Disconnected" }),
|
|
934
|
+
/* @__PURE__ */ l("p", { className: "mb-4 text-[var(--lv-text-muted)] text-sm", children: "The connection has been closed." })
|
|
537
935
|
] }),
|
|
538
|
-
/* @__PURE__ */
|
|
936
|
+
/* @__PURE__ */ l(
|
|
539
937
|
"button",
|
|
540
938
|
{
|
|
541
939
|
type: "button",
|
|
542
940
|
onClick: e,
|
|
543
|
-
className: "w-full rounded-lg bg-
|
|
941
|
+
className: "w-full rounded-lg bg-[var(--lv-button-secondary-background)] px-4 py-2 font-semibold text-[var(--lv-text-primary)] text-sm transition hover:bg-[var(--lv-button-primary-background-hover)]",
|
|
544
942
|
children: "Close"
|
|
545
943
|
}
|
|
546
944
|
)
|
|
547
|
-
] })).otherwise(() => /* @__PURE__ */
|
|
945
|
+
] })).otherwise(() => /* @__PURE__ */ l(Je, { state: r })) });
|
|
548
946
|
};
|
|
549
|
-
function
|
|
947
|
+
function Lt(e, t) {
|
|
550
948
|
for (var r in t) e[r] = t[r];
|
|
551
949
|
return e;
|
|
552
950
|
}
|
|
553
|
-
function
|
|
951
|
+
function Xe(e, t) {
|
|
554
952
|
for (var r in e) if (r !== "__source" && !(r in t)) return !0;
|
|
555
953
|
for (var n in t) if (n !== "__source" && e[n] !== t[n]) return !0;
|
|
556
954
|
return !1;
|
|
557
955
|
}
|
|
558
|
-
function
|
|
559
|
-
var r = t(), n =
|
|
560
|
-
return
|
|
561
|
-
|
|
562
|
-
}, [e, r, t]),
|
|
563
|
-
return
|
|
564
|
-
|
|
956
|
+
function zt(e, t) {
|
|
957
|
+
var r = t(), n = D({ t: { __: r, u: t } }), o = n[0].t, a = n[1];
|
|
958
|
+
return pe(function() {
|
|
959
|
+
o.__ = r, o.u = t, ze(o) && a({ t: o });
|
|
960
|
+
}, [e, r, t]), I(function() {
|
|
961
|
+
return ze(o) && a({ t: o }), e(function() {
|
|
962
|
+
ze(o) && a({ t: o });
|
|
565
963
|
});
|
|
566
964
|
}, [e]), r;
|
|
567
965
|
}
|
|
568
|
-
function
|
|
569
|
-
var t, r, n = e.u,
|
|
966
|
+
function ze(e) {
|
|
967
|
+
var t, r, n = e.u, o = e.__;
|
|
570
968
|
try {
|
|
571
|
-
var
|
|
572
|
-
return !((t =
|
|
969
|
+
var a = n();
|
|
970
|
+
return !((t = o) === (r = a) && (t !== 0 || 1 / t == 1 / r) || t != t && r != r);
|
|
573
971
|
} catch {
|
|
574
972
|
return !0;
|
|
575
973
|
}
|
|
576
974
|
}
|
|
577
|
-
function
|
|
975
|
+
function Gt(e) {
|
|
578
976
|
e();
|
|
579
977
|
}
|
|
580
|
-
function
|
|
978
|
+
function Wt(e) {
|
|
581
979
|
return e;
|
|
582
980
|
}
|
|
583
|
-
function
|
|
584
|
-
return [!1,
|
|
981
|
+
function Ht() {
|
|
982
|
+
return [!1, Gt];
|
|
585
983
|
}
|
|
586
|
-
var Kt =
|
|
587
|
-
function
|
|
984
|
+
var Kt = pe;
|
|
985
|
+
function qe(e, t) {
|
|
588
986
|
this.props = e, this.context = t;
|
|
589
987
|
}
|
|
590
|
-
function
|
|
591
|
-
function r(
|
|
592
|
-
var
|
|
593
|
-
return !
|
|
988
|
+
function Ur(e, t) {
|
|
989
|
+
function r(o) {
|
|
990
|
+
var a = this.props.ref, i = a == o.ref;
|
|
991
|
+
return !i && a && (a.call ? a(null) : a.current = null), t ? !t(this.props, o) || !i : Xe(this.props, o);
|
|
594
992
|
}
|
|
595
|
-
function n(
|
|
596
|
-
return this.shouldComponentUpdate = r,
|
|
993
|
+
function n(o) {
|
|
994
|
+
return this.shouldComponentUpdate = r, U(e, o);
|
|
597
995
|
}
|
|
598
996
|
return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n.type = e, n;
|
|
599
997
|
}
|
|
600
|
-
(
|
|
601
|
-
return
|
|
998
|
+
(qe.prototype = new de()).isPureReactComponent = !0, qe.prototype.shouldComponentUpdate = function(e, t) {
|
|
999
|
+
return Xe(this.props, e) || Xe(this.state, t);
|
|
602
1000
|
};
|
|
603
|
-
var
|
|
604
|
-
|
|
605
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
1001
|
+
var ct = V.__b;
|
|
1002
|
+
V.__b = function(e) {
|
|
1003
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), ct && ct(e);
|
|
606
1004
|
};
|
|
607
|
-
var
|
|
608
|
-
function
|
|
1005
|
+
var Jr = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
|
|
1006
|
+
function Xr(e) {
|
|
609
1007
|
function t(r) {
|
|
610
|
-
var n =
|
|
1008
|
+
var n = Lt({}, r);
|
|
611
1009
|
return delete n.ref, e(n, r.ref || null);
|
|
612
1010
|
}
|
|
613
|
-
return t.$$typeof =
|
|
1011
|
+
return t.$$typeof = Jr, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
614
1012
|
}
|
|
615
|
-
var
|
|
616
|
-
return e == null ? null :
|
|
617
|
-
},
|
|
618
|
-
return e ?
|
|
1013
|
+
var ut = function(e, t) {
|
|
1014
|
+
return e == null ? null : ne(ne(e).map(t));
|
|
1015
|
+
}, qr = { map: ut, forEach: ut, count: function(e) {
|
|
1016
|
+
return e ? ne(e).length : 0;
|
|
619
1017
|
}, only: function(e) {
|
|
620
|
-
var t =
|
|
1018
|
+
var t = ne(e);
|
|
621
1019
|
if (t.length !== 1) throw "Children.only";
|
|
622
1020
|
return t[0];
|
|
623
|
-
}, toArray:
|
|
624
|
-
|
|
1021
|
+
}, toArray: ne }, Qr = V.__e;
|
|
1022
|
+
V.__e = function(e, t, r, n) {
|
|
625
1023
|
if (e.then) {
|
|
626
|
-
for (var
|
|
1024
|
+
for (var o, a = t; a = a.__; ) if ((o = a.__c) && o.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), o.__c(e, t);
|
|
627
1025
|
}
|
|
628
|
-
|
|
1026
|
+
Qr(e, t, r, n);
|
|
629
1027
|
};
|
|
630
|
-
var
|
|
631
|
-
function
|
|
1028
|
+
var dt = V.unmount;
|
|
1029
|
+
function Ut(e, t, r) {
|
|
632
1030
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
|
|
633
1031
|
typeof n.__c == "function" && n.__c();
|
|
634
|
-
}), e.__c.__H = null), (e =
|
|
635
|
-
return
|
|
1032
|
+
}), e.__c.__H = null), (e = Lt({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
|
|
1033
|
+
return Ut(n, t, r);
|
|
636
1034
|
})), e;
|
|
637
1035
|
}
|
|
638
|
-
function
|
|
1036
|
+
function Jt(e, t, r) {
|
|
639
1037
|
return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
|
|
640
|
-
return
|
|
1038
|
+
return Jt(n, t, r);
|
|
641
1039
|
}), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
|
|
642
1040
|
}
|
|
643
|
-
function
|
|
1041
|
+
function Ee() {
|
|
644
1042
|
this.__u = 0, this.o = null, this.__b = null;
|
|
645
1043
|
}
|
|
646
|
-
function
|
|
1044
|
+
function Xt(e) {
|
|
647
1045
|
var t = e.__.__c;
|
|
648
1046
|
return t && t.__a && t.__a(e);
|
|
649
1047
|
}
|
|
650
|
-
function
|
|
651
|
-
var t, r, n;
|
|
652
|
-
function i
|
|
653
|
-
if (t || (t = e()).then(function(
|
|
654
|
-
|
|
655
|
-
}, function(
|
|
656
|
-
n =
|
|
657
|
-
}),
|
|
658
|
-
if (!
|
|
659
|
-
return
|
|
1048
|
+
function Yr(e) {
|
|
1049
|
+
var t, r, n, o = null;
|
|
1050
|
+
function a(i) {
|
|
1051
|
+
if (t || (t = e()).then(function(s) {
|
|
1052
|
+
s && (o = s.default || s), n = !0;
|
|
1053
|
+
}, function(s) {
|
|
1054
|
+
r = s, n = !0;
|
|
1055
|
+
}), r) throw r;
|
|
1056
|
+
if (!n) throw t;
|
|
1057
|
+
return o ? U(o, i) : null;
|
|
660
1058
|
}
|
|
661
|
-
return
|
|
1059
|
+
return a.displayName = "Lazy", a.__f = !0, a;
|
|
662
1060
|
}
|
|
663
|
-
function
|
|
1061
|
+
function be() {
|
|
664
1062
|
this.i = null, this.l = null;
|
|
665
1063
|
}
|
|
666
|
-
|
|
1064
|
+
V.unmount = function(e) {
|
|
667
1065
|
var t = e.__c;
|
|
668
|
-
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
669
|
-
}, (
|
|
1066
|
+
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), dt && dt(e);
|
|
1067
|
+
}, (Ee.prototype = new de()).__c = function(e, t) {
|
|
670
1068
|
var r = t.__c, n = this;
|
|
671
1069
|
n.o == null && (n.o = []), n.o.push(r);
|
|
672
|
-
var
|
|
673
|
-
|
|
1070
|
+
var o = Xt(n.__v), a = !1, i = function() {
|
|
1071
|
+
a || (a = !0, r.__R = null, o ? o(s) : s());
|
|
674
1072
|
};
|
|
675
|
-
r.__R =
|
|
676
|
-
var
|
|
1073
|
+
r.__R = i;
|
|
1074
|
+
var s = function() {
|
|
677
1075
|
if (!--n.__u) {
|
|
678
1076
|
if (n.state.__a) {
|
|
679
1077
|
var c = n.state.__a;
|
|
680
|
-
n.__v.__k[0] =
|
|
1078
|
+
n.__v.__k[0] = Jt(c, c.__c.__P, c.__c.__O);
|
|
681
1079
|
}
|
|
682
|
-
var
|
|
683
|
-
for (n.setState({ __a: n.__b = null });
|
|
1080
|
+
var u;
|
|
1081
|
+
for (n.setState({ __a: n.__b = null }); u = n.o.pop(); ) u.forceUpdate();
|
|
684
1082
|
}
|
|
685
1083
|
};
|
|
686
|
-
n.__u++ || 32 & t.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(
|
|
687
|
-
},
|
|
1084
|
+
n.__u++ || 32 & t.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(i, i);
|
|
1085
|
+
}, Ee.prototype.componentWillUnmount = function() {
|
|
688
1086
|
this.o = [];
|
|
689
|
-
},
|
|
1087
|
+
}, Ee.prototype.render = function(e, t) {
|
|
690
1088
|
if (this.__b) {
|
|
691
1089
|
if (this.__v.__k) {
|
|
692
1090
|
var r = document.createElement("div"), n = this.__v.__k[0].__c;
|
|
693
|
-
this.__v.__k[0] =
|
|
1091
|
+
this.__v.__k[0] = Ut(this.__b, r, n.__O = n.__P);
|
|
694
1092
|
}
|
|
695
1093
|
this.__b = null;
|
|
696
1094
|
}
|
|
697
|
-
var
|
|
698
|
-
return
|
|
1095
|
+
var o = t.__a && U(we, null, e.fallback);
|
|
1096
|
+
return o && (o.__u &= -33), [U(we, null, t.__a ? null : e.children), o];
|
|
699
1097
|
};
|
|
700
|
-
var
|
|
1098
|
+
var ft = function(e, t, r) {
|
|
701
1099
|
if (++r[1] === r[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (r = e.i; r; ) {
|
|
702
1100
|
for (; r.length > 3; ) r.pop()();
|
|
703
1101
|
if (r[1] < r[0]) break;
|
|
704
1102
|
e.i = r = r[2];
|
|
705
1103
|
}
|
|
706
1104
|
};
|
|
707
|
-
function
|
|
1105
|
+
function Zr(e) {
|
|
708
1106
|
return this.getChildContext = function() {
|
|
709
1107
|
return e.context;
|
|
710
1108
|
}, e.children;
|
|
711
1109
|
}
|
|
712
|
-
function
|
|
1110
|
+
function $r(e) {
|
|
713
1111
|
var t = this, r = e.h;
|
|
714
1112
|
if (t.componentWillUnmount = function() {
|
|
715
|
-
|
|
1113
|
+
fe(null, t.v), t.v = null, t.h = null;
|
|
716
1114
|
}, t.h && t.h !== r && t.componentWillUnmount(), !t.v) {
|
|
717
1115
|
for (var n = t.__v; n !== null && !n.__m && n.__ !== null; ) n = n.__;
|
|
718
1116
|
t.h = r, t.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: n.__m }, contains: function() {
|
|
719
1117
|
return !0;
|
|
720
|
-
}, insertBefore: function(
|
|
721
|
-
this.childNodes.push(
|
|
722
|
-
}, removeChild: function(
|
|
723
|
-
this.childNodes.splice(this.childNodes.indexOf(
|
|
1118
|
+
}, insertBefore: function(o, a) {
|
|
1119
|
+
this.childNodes.push(o), t.h.insertBefore(o, a);
|
|
1120
|
+
}, removeChild: function(o) {
|
|
1121
|
+
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
724
1122
|
} };
|
|
725
1123
|
}
|
|
726
|
-
|
|
1124
|
+
fe(U(Zr, { context: t.context }, e.__v), t.v);
|
|
727
1125
|
}
|
|
728
|
-
function
|
|
729
|
-
var r =
|
|
1126
|
+
function en(e, t) {
|
|
1127
|
+
var r = U($r, { __v: e, h: t });
|
|
730
1128
|
return r.containerInfo = t, r;
|
|
731
1129
|
}
|
|
732
|
-
(
|
|
733
|
-
var t = this, r =
|
|
734
|
-
return n[0]++, function(
|
|
735
|
-
var
|
|
736
|
-
t.props.revealOrder ? (n.push(
|
|
1130
|
+
(be.prototype = new de()).__a = function(e) {
|
|
1131
|
+
var t = this, r = Xt(t.__v), n = t.l.get(e);
|
|
1132
|
+
return n[0]++, function(o) {
|
|
1133
|
+
var a = function() {
|
|
1134
|
+
t.props.revealOrder ? (n.push(o), ft(t, e, n)) : o();
|
|
737
1135
|
};
|
|
738
|
-
r ? r(
|
|
1136
|
+
r ? r(a) : a();
|
|
739
1137
|
};
|
|
740
|
-
},
|
|
1138
|
+
}, be.prototype.render = function(e) {
|
|
741
1139
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
742
|
-
var t =
|
|
1140
|
+
var t = ne(e.children);
|
|
743
1141
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
744
1142
|
for (var r = t.length; r--; ) this.l.set(t[r], this.i = [1, 0, this.i]);
|
|
745
1143
|
return e.children;
|
|
746
|
-
},
|
|
1144
|
+
}, be.prototype.componentDidUpdate = be.prototype.componentDidMount = function() {
|
|
747
1145
|
var e = this;
|
|
748
1146
|
this.l.forEach(function(t, r) {
|
|
749
|
-
|
|
1147
|
+
ft(e, r, t);
|
|
750
1148
|
});
|
|
751
1149
|
};
|
|
752
|
-
var
|
|
753
|
-
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
1150
|
+
var qt = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, tn = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, rn = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, nn = /[A-Z0-9]/g, on = typeof document < "u", an = function(e) {
|
|
1151
|
+
return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
754
1152
|
};
|
|
755
|
-
function
|
|
756
|
-
return t.__k == null && (t.textContent = ""),
|
|
1153
|
+
function sn(e, t, r) {
|
|
1154
|
+
return t.__k == null && (t.textContent = ""), fe(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
757
1155
|
}
|
|
758
|
-
function
|
|
759
|
-
return
|
|
1156
|
+
function ln(e, t, r) {
|
|
1157
|
+
return sr(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
760
1158
|
}
|
|
761
|
-
|
|
762
|
-
Object.defineProperty(
|
|
1159
|
+
de.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
1160
|
+
Object.defineProperty(de.prototype, e, { configurable: !0, get: function() {
|
|
763
1161
|
return this["UNSAFE_" + e];
|
|
764
1162
|
}, set: function(t) {
|
|
765
1163
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
766
1164
|
} });
|
|
767
1165
|
});
|
|
768
|
-
var
|
|
769
|
-
function
|
|
1166
|
+
var pt = V.event;
|
|
1167
|
+
function cn() {
|
|
770
1168
|
}
|
|
771
|
-
function
|
|
1169
|
+
function un() {
|
|
772
1170
|
return this.cancelBubble;
|
|
773
1171
|
}
|
|
774
|
-
function
|
|
1172
|
+
function dn() {
|
|
775
1173
|
return this.defaultPrevented;
|
|
776
1174
|
}
|
|
777
|
-
|
|
778
|
-
return
|
|
1175
|
+
V.event = function(e) {
|
|
1176
|
+
return pt && (e = pt(e)), e.persist = cn, e.isPropagationStopped = un, e.isDefaultPrevented = dn, e.nativeEvent = e;
|
|
779
1177
|
};
|
|
780
|
-
var
|
|
1178
|
+
var tt, fn = { enumerable: !1, configurable: !0, get: function() {
|
|
781
1179
|
return this.class;
|
|
782
|
-
} },
|
|
783
|
-
|
|
1180
|
+
} }, vt = V.vnode;
|
|
1181
|
+
V.vnode = function(e) {
|
|
784
1182
|
typeof e.type == "string" && (function(t) {
|
|
785
|
-
var r = t.props, n = t.type,
|
|
786
|
-
for (var
|
|
787
|
-
var
|
|
788
|
-
if (!(
|
|
789
|
-
var c =
|
|
790
|
-
|
|
1183
|
+
var r = t.props, n = t.type, o = {}, a = n.indexOf("-") === -1;
|
|
1184
|
+
for (var i in r) {
|
|
1185
|
+
var s = r[i];
|
|
1186
|
+
if (!(i === "value" && "defaultValue" in r && s == null || on && i === "children" && n === "noscript" || i === "class" || i === "className")) {
|
|
1187
|
+
var c = i.toLowerCase();
|
|
1188
|
+
i === "defaultValue" && "value" in r && r.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : c === "translate" && s === "no" ? s = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? i = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || an(r.type) ? c === "onfocus" ? i = "onfocusin" : c === "onblur" ? i = "onfocusout" : rn.test(i) && (i = c) : c = i = "oninput" : a && tn.test(i) ? i = i.replace(nn, "-$&").toLowerCase() : s === null && (s = void 0), c === "oninput" && o[i = c] && (i = "oninputCapture"), o[i] = s;
|
|
791
1189
|
}
|
|
792
1190
|
}
|
|
793
|
-
n == "select" &&
|
|
794
|
-
|
|
795
|
-
})), n == "select" &&
|
|
796
|
-
|
|
797
|
-
})), r.class && !r.className ? (
|
|
798
|
-
})(e), e.$$typeof =
|
|
1191
|
+
n == "select" && o.multiple && Array.isArray(o.value) && (o.value = ne(r.children).forEach(function(u) {
|
|
1192
|
+
u.props.selected = o.value.indexOf(u.props.value) != -1;
|
|
1193
|
+
})), n == "select" && o.defaultValue != null && (o.value = ne(r.children).forEach(function(u) {
|
|
1194
|
+
u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
|
|
1195
|
+
})), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", fn)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
|
|
1196
|
+
})(e), e.$$typeof = qt, vt && vt(e);
|
|
799
1197
|
};
|
|
800
|
-
var
|
|
801
|
-
|
|
802
|
-
|
|
1198
|
+
var ht = V.__r;
|
|
1199
|
+
V.__r = function(e) {
|
|
1200
|
+
ht && ht(e), tt = e.__c;
|
|
803
1201
|
};
|
|
804
|
-
var
|
|
805
|
-
|
|
806
|
-
|
|
1202
|
+
var gt = V.diffed;
|
|
1203
|
+
V.diffed = function(e) {
|
|
1204
|
+
gt && gt(e);
|
|
807
1205
|
var t = e.props, r = e.__e;
|
|
808
|
-
r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value),
|
|
1206
|
+
r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), tt = null;
|
|
809
1207
|
};
|
|
810
|
-
var
|
|
811
|
-
return
|
|
812
|
-
}, useCallback:
|
|
813
|
-
function
|
|
814
|
-
return
|
|
1208
|
+
var pn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1209
|
+
return tt.__n[e.__c].props.value;
|
|
1210
|
+
}, useCallback: K, useContext: Ye, useDebugValue: At, useDeferredValue: Wt, useEffect: I, useId: St, useImperativeHandle: Nt, useInsertionEffect: Kt, useLayoutEffect: pe, useMemo: _t, useReducer: Ct, useRef: G, useState: D, useSyncExternalStore: zt, useTransition: Ht } } };
|
|
1211
|
+
function vn(e) {
|
|
1212
|
+
return U.bind(null, e);
|
|
815
1213
|
}
|
|
816
|
-
function
|
|
817
|
-
return !!e && e.$$typeof ===
|
|
1214
|
+
function Pe(e) {
|
|
1215
|
+
return !!e && e.$$typeof === qt;
|
|
818
1216
|
}
|
|
819
|
-
function
|
|
820
|
-
return
|
|
1217
|
+
function hn(e) {
|
|
1218
|
+
return Pe(e) && e.type === we;
|
|
821
1219
|
}
|
|
822
|
-
function
|
|
1220
|
+
function gn(e) {
|
|
823
1221
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
824
1222
|
}
|
|
825
|
-
function
|
|
826
|
-
return
|
|
1223
|
+
function mn(e) {
|
|
1224
|
+
return Pe(e) ? ir.apply(null, arguments) : e;
|
|
827
1225
|
}
|
|
828
|
-
function
|
|
829
|
-
return !!e.__k && (
|
|
1226
|
+
function bn(e) {
|
|
1227
|
+
return !!e.__k && (fe(null, e), !0);
|
|
830
1228
|
}
|
|
831
|
-
function
|
|
1229
|
+
function yn(e) {
|
|
832
1230
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
833
1231
|
}
|
|
834
|
-
var
|
|
1232
|
+
var wn = function(e, t) {
|
|
835
1233
|
return e(t);
|
|
836
|
-
},
|
|
1234
|
+
}, xn = function(e, t) {
|
|
837
1235
|
return e(t);
|
|
838
|
-
},
|
|
1236
|
+
}, kn = we, Cn = Pe, se = { useState: D, useId: St, useReducer: Ct, useEffect: I, useLayoutEffect: pe, useInsertionEffect: Kt, useTransition: Ht, useDeferredValue: Wt, useSyncExternalStore: zt, startTransition: Gt, useRef: G, useImperativeHandle: Nt, useMemo: _t, useCallback: K, useContext: Ye, useDebugValue: At, version: "18.3.1", Children: qr, render: sn, hydrate: ln, unmountComponentAtNode: bn, createPortal: en, createElement: U, createContext: Et, createFactory: vn, cloneElement: mn, createRef: ar, Fragment: we, isValidElement: Pe, isElement: Cn, isFragment: hn, isMemo: gn, findDOMNode: yn, Component: de, PureComponent: qe, memo: Ur, forwardRef: Xr, flushSync: xn, unstable_batchedUpdates: wn, StrictMode: kn, Suspense: Ee, SuspenseList: be, lazy: Yr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: pn }, Qt = {
|
|
839
1237
|
color: void 0,
|
|
840
1238
|
size: void 0,
|
|
841
1239
|
className: void 0,
|
|
842
1240
|
style: void 0,
|
|
843
1241
|
attr: void 0
|
|
844
|
-
},
|
|
845
|
-
function
|
|
1242
|
+
}, mt = se.createContext && /* @__PURE__ */ se.createContext(Qt), _n = ["attr", "size", "title"];
|
|
1243
|
+
function Nn(e, t) {
|
|
846
1244
|
if (e == null) return {};
|
|
847
|
-
var r =
|
|
1245
|
+
var r = Sn(e, t), n, o;
|
|
848
1246
|
if (Object.getOwnPropertySymbols) {
|
|
849
|
-
var
|
|
850
|
-
for (
|
|
851
|
-
n = o
|
|
1247
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
1248
|
+
for (o = 0; o < a.length; o++)
|
|
1249
|
+
n = a[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
852
1250
|
}
|
|
853
1251
|
return r;
|
|
854
1252
|
}
|
|
855
|
-
function
|
|
1253
|
+
function Sn(e, t) {
|
|
856
1254
|
if (e == null) return {};
|
|
857
1255
|
var r = {};
|
|
858
1256
|
for (var n in e)
|
|
@@ -862,45 +1260,45 @@ function kn(e, t) {
|
|
|
862
1260
|
}
|
|
863
1261
|
return r;
|
|
864
1262
|
}
|
|
865
|
-
function
|
|
866
|
-
return
|
|
1263
|
+
function Be() {
|
|
1264
|
+
return Be = Object.assign ? Object.assign.bind() : function(e) {
|
|
867
1265
|
for (var t = 1; t < arguments.length; t++) {
|
|
868
1266
|
var r = arguments[t];
|
|
869
1267
|
for (var n in r)
|
|
870
1268
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
871
1269
|
}
|
|
872
1270
|
return e;
|
|
873
|
-
},
|
|
1271
|
+
}, Be.apply(this, arguments);
|
|
874
1272
|
}
|
|
875
1273
|
function bt(e, t) {
|
|
876
1274
|
var r = Object.keys(e);
|
|
877
1275
|
if (Object.getOwnPropertySymbols) {
|
|
878
1276
|
var n = Object.getOwnPropertySymbols(e);
|
|
879
|
-
t && (n = n.filter(function(
|
|
880
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
1277
|
+
t && (n = n.filter(function(o) {
|
|
1278
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
881
1279
|
})), r.push.apply(r, n);
|
|
882
1280
|
}
|
|
883
1281
|
return r;
|
|
884
1282
|
}
|
|
885
|
-
function
|
|
1283
|
+
function Te(e) {
|
|
886
1284
|
for (var t = 1; t < arguments.length; t++) {
|
|
887
1285
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
888
1286
|
t % 2 ? bt(Object(r), !0).forEach(function(n) {
|
|
889
|
-
|
|
1287
|
+
An(e, n, r[n]);
|
|
890
1288
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : bt(Object(r)).forEach(function(n) {
|
|
891
1289
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
892
1290
|
});
|
|
893
1291
|
}
|
|
894
1292
|
return e;
|
|
895
1293
|
}
|
|
896
|
-
function
|
|
897
|
-
return t =
|
|
1294
|
+
function An(e, t, r) {
|
|
1295
|
+
return t = En(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
898
1296
|
}
|
|
899
|
-
function
|
|
900
|
-
var t =
|
|
1297
|
+
function En(e) {
|
|
1298
|
+
var t = Fn(e, "string");
|
|
901
1299
|
return typeof t == "symbol" ? t : t + "";
|
|
902
1300
|
}
|
|
903
|
-
function
|
|
1301
|
+
function Fn(e, t) {
|
|
904
1302
|
if (typeof e != "object" || !e) return e;
|
|
905
1303
|
var r = e[Symbol.toPrimitive];
|
|
906
1304
|
if (r !== void 0) {
|
|
@@ -910,275 +1308,323 @@ function Nn(e, t) {
|
|
|
910
1308
|
}
|
|
911
1309
|
return (t === "string" ? String : Number)(e);
|
|
912
1310
|
}
|
|
913
|
-
function
|
|
914
|
-
return e && e.map((t, r) => /* @__PURE__ */
|
|
1311
|
+
function Yt(e) {
|
|
1312
|
+
return e && e.map((t, r) => /* @__PURE__ */ se.createElement(t.tag, Te({
|
|
915
1313
|
key: r
|
|
916
|
-
}, t.attr),
|
|
1314
|
+
}, t.attr), Yt(t.child)));
|
|
917
1315
|
}
|
|
918
|
-
function
|
|
919
|
-
return (t) => /* @__PURE__ */
|
|
920
|
-
attr:
|
|
921
|
-
}, t),
|
|
1316
|
+
function je(e) {
|
|
1317
|
+
return (t) => /* @__PURE__ */ se.createElement(Bn, Be({
|
|
1318
|
+
attr: Te({}, e.attr)
|
|
1319
|
+
}, t), Yt(e.child));
|
|
922
1320
|
}
|
|
923
|
-
function
|
|
1321
|
+
function Bn(e) {
|
|
924
1322
|
var t = (r) => {
|
|
925
1323
|
var {
|
|
926
1324
|
attr: n,
|
|
927
|
-
size:
|
|
928
|
-
title:
|
|
929
|
-
} = e,
|
|
930
|
-
return r.className && (c = r.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */
|
|
1325
|
+
size: o,
|
|
1326
|
+
title: a
|
|
1327
|
+
} = e, i = Nn(e, _n), s = o || r.size || "1em", c;
|
|
1328
|
+
return r.className && (c = r.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ se.createElement("svg", Be({
|
|
931
1329
|
stroke: "currentColor",
|
|
932
1330
|
fill: "currentColor",
|
|
933
1331
|
strokeWidth: "0"
|
|
934
|
-
}, r.attr, n,
|
|
1332
|
+
}, r.attr, n, i, {
|
|
935
1333
|
className: c,
|
|
936
|
-
style:
|
|
1334
|
+
style: Te(Te({
|
|
937
1335
|
color: e.color || r.color
|
|
938
1336
|
}, r.style), e.style),
|
|
939
|
-
height:
|
|
940
|
-
width:
|
|
1337
|
+
height: s,
|
|
1338
|
+
width: s,
|
|
941
1339
|
xmlns: "http://www.w3.org/2000/svg"
|
|
942
|
-
}),
|
|
1340
|
+
}), a && /* @__PURE__ */ se.createElement("title", null, a), e.children);
|
|
943
1341
|
};
|
|
944
|
-
return
|
|
1342
|
+
return mt !== void 0 ? /* @__PURE__ */ se.createElement(mt.Consumer, null, (r) => t(r)) : t(Qt);
|
|
945
1343
|
}
|
|
946
|
-
function
|
|
947
|
-
return
|
|
1344
|
+
function Tn(e) {
|
|
1345
|
+
return je({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M416.3 256c0-21 13.1-38.9 31.7-46.1-4.9-20.5-13-39.7-23.7-57.1-6.4 2.8-13.2 4.3-20.1 4.3-12.6 0-25.2-4.8-34.9-14.4-14.9-14.9-18.2-36.8-10.2-55-17.3-10.7-36.6-18.8-57-23.7C295 82.5 277 95.7 256 95.7S217 82.5 209.9 64c-20.5 4.9-39.7 13-57.1 23.7 8.1 18.1 4.7 40.1-10.2 55-9.6 9.6-22.3 14.4-34.9 14.4-6.9 0-13.7-1.4-20.1-4.3C77 170.3 68.9 189.5 64 210c18.5 7.1 31.7 25 31.7 46.1 0 21-13.1 38.9-31.6 46.1 4.9 20.5 13 39.7 23.7 57.1 6.4-2.8 13.2-4.2 20-4.2 12.6 0 25.2 4.8 34.9 14.4 14.8 14.8 18.2 36.8 10.2 54.9 17.4 10.7 36.7 18.8 57.1 23.7 7.1-18.5 25-31.6 46-31.6s38.9 13.1 46 31.6c20.5-4.9 39.7-13 57.1-23.7-8-18.1-4.6-40 10.2-54.9 9.6-9.6 22.2-14.4 34.9-14.4 6.8 0 13.7 1.4 20 4.2 10.7-17.4 18.8-36.7 23.7-57.1-18.4-7.2-31.6-25.1-31.6-46.2zm-159.4 79.9c-44.3 0-80-35.9-80-80s35.7-80 80-80 80 35.9 80 80-35.7 80-80 80z" }, child: [] }] })(e);
|
|
948
1346
|
}
|
|
949
|
-
var On = /\s+/g,
|
|
950
|
-
|
|
1347
|
+
var On = /\s+/g, Rn = (e) => typeof e != "string" || !e ? e : e.replace(On, " ").trim(), Oe = (...e) => {
|
|
1348
|
+
const t = [], r = (n) => {
|
|
951
1349
|
if (!n && n !== 0 && n !== 0n) return;
|
|
952
1350
|
if (Array.isArray(n)) {
|
|
953
|
-
for (let
|
|
1351
|
+
for (let a = 0, i = n.length; a < i; a++) r(n[a]);
|
|
954
1352
|
return;
|
|
955
1353
|
}
|
|
956
|
-
|
|
957
|
-
if (
|
|
958
|
-
if (
|
|
1354
|
+
const o = typeof n;
|
|
1355
|
+
if (o === "string" || o === "number" || o === "bigint") {
|
|
1356
|
+
if (o === "number" && n !== n) return;
|
|
959
1357
|
t.push(String(n));
|
|
960
|
-
} else if (
|
|
961
|
-
|
|
962
|
-
for (let
|
|
963
|
-
|
|
1358
|
+
} else if (o === "object") {
|
|
1359
|
+
const a = Object.keys(n);
|
|
1360
|
+
for (let i = 0, s = a.length; i < s; i++) {
|
|
1361
|
+
const c = a[i];
|
|
964
1362
|
n[c] && t.push(c);
|
|
965
1363
|
}
|
|
966
1364
|
}
|
|
967
1365
|
};
|
|
968
|
-
for (let n = 0,
|
|
969
|
-
|
|
970
|
-
|
|
1366
|
+
for (let n = 0, o = e.length; n < o; n++) {
|
|
1367
|
+
const a = e[n];
|
|
1368
|
+
a != null && r(a);
|
|
971
1369
|
}
|
|
972
|
-
return t.length > 0 ?
|
|
973
|
-
},
|
|
1370
|
+
return t.length > 0 ? Rn(t.join(" ")) : void 0;
|
|
1371
|
+
}, yt = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, M = (e) => {
|
|
974
1372
|
if (!e || typeof e != "object") return !0;
|
|
975
|
-
for (
|
|
1373
|
+
for (const t in e) return !1;
|
|
976
1374
|
return !0;
|
|
977
|
-
},
|
|
1375
|
+
}, Dn = (e, t) => {
|
|
978
1376
|
if (e === t) return !0;
|
|
979
1377
|
if (!e || !t) return !1;
|
|
980
|
-
|
|
1378
|
+
const r = Object.keys(e), n = Object.keys(t);
|
|
981
1379
|
if (r.length !== n.length) return !1;
|
|
982
|
-
for (let
|
|
983
|
-
|
|
984
|
-
if (!n.includes(
|
|
1380
|
+
for (let o = 0; o < r.length; o++) {
|
|
1381
|
+
const a = r[o];
|
|
1382
|
+
if (!n.includes(a) || e[a] !== t[a]) return !1;
|
|
985
1383
|
}
|
|
986
1384
|
return !0;
|
|
987
|
-
},
|
|
988
|
-
for (
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
1385
|
+
}, Pn = (e, t) => {
|
|
1386
|
+
for (const r in t)
|
|
1387
|
+
if (Object.prototype.hasOwnProperty.call(t, r)) {
|
|
1388
|
+
const n = t[r];
|
|
1389
|
+
r in e ? e[r] = Oe(e[r], n) : e[r] = n;
|
|
1390
|
+
}
|
|
992
1391
|
return e;
|
|
993
|
-
},
|
|
1392
|
+
}, Zt = (e, t) => {
|
|
994
1393
|
for (let r = 0; r < e.length; r++) {
|
|
995
|
-
|
|
996
|
-
Array.isArray(n) ?
|
|
1394
|
+
const n = e[r];
|
|
1395
|
+
Array.isArray(n) ? Zt(n, t) : n && t.push(n);
|
|
997
1396
|
}
|
|
998
1397
|
}, $t = (...e) => {
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
for (let n = 0; n < t.length; n++)
|
|
1398
|
+
const t = [];
|
|
1399
|
+
Zt(e, t);
|
|
1400
|
+
const r = [];
|
|
1401
|
+
for (let n = 0; n < t.length; n++)
|
|
1402
|
+
t[n] && r.push(t[n]);
|
|
1003
1403
|
return r;
|
|
1004
|
-
},
|
|
1005
|
-
|
|
1006
|
-
for (
|
|
1007
|
-
|
|
1404
|
+
}, Qe = (e, t) => {
|
|
1405
|
+
const r = {};
|
|
1406
|
+
for (const n in e) {
|
|
1407
|
+
const o = e[n];
|
|
1008
1408
|
if (n in t) {
|
|
1009
|
-
|
|
1010
|
-
Array.isArray(
|
|
1011
|
-
} else
|
|
1409
|
+
const a = t[n];
|
|
1410
|
+
Array.isArray(o) || Array.isArray(a) ? r[n] = $t(a, o) : typeof o == "object" && typeof a == "object" && o && a ? r[n] = Qe(o, a) : r[n] = a + " " + o;
|
|
1411
|
+
} else
|
|
1412
|
+
r[n] = o;
|
|
1012
1413
|
}
|
|
1013
|
-
for (
|
|
1414
|
+
for (const n in t)
|
|
1415
|
+
n in e || (r[n] = t[n]);
|
|
1014
1416
|
return r;
|
|
1015
|
-
},
|
|
1016
|
-
|
|
1417
|
+
}, jn = {
|
|
1418
|
+
twMerge: !0,
|
|
1419
|
+
twMergeConfig: {}
|
|
1420
|
+
};
|
|
1421
|
+
function In() {
|
|
1017
1422
|
let e = null, t = {}, r = !1;
|
|
1018
|
-
return {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
if (
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1423
|
+
return {
|
|
1424
|
+
get cachedTwMerge() {
|
|
1425
|
+
return e;
|
|
1426
|
+
},
|
|
1427
|
+
set cachedTwMerge(n) {
|
|
1428
|
+
e = n;
|
|
1429
|
+
},
|
|
1430
|
+
get cachedTwMergeConfig() {
|
|
1431
|
+
return t;
|
|
1432
|
+
},
|
|
1433
|
+
set cachedTwMergeConfig(n) {
|
|
1434
|
+
t = n;
|
|
1435
|
+
},
|
|
1436
|
+
get didTwMergeConfigChange() {
|
|
1437
|
+
return r;
|
|
1438
|
+
},
|
|
1439
|
+
set didTwMergeConfigChange(n) {
|
|
1440
|
+
r = n;
|
|
1441
|
+
},
|
|
1442
|
+
reset() {
|
|
1443
|
+
e = null, t = {}, r = !1;
|
|
1444
|
+
}
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
1447
|
+
var Ge = In(), Vn = (e) => {
|
|
1448
|
+
const t = (n, o) => {
|
|
1449
|
+
const {
|
|
1450
|
+
extend: a = null,
|
|
1451
|
+
slots: i = {},
|
|
1452
|
+
variants: s = {},
|
|
1453
|
+
compoundVariants: c = [],
|
|
1454
|
+
compoundSlots: u = [],
|
|
1455
|
+
defaultVariants: d = {}
|
|
1456
|
+
} = n, f = { ...jn, ...o }, _ = a?.base ? Oe(a.base, n?.base) : n?.base, g = a?.variants && !M(a.variants) ? Qe(s, a.variants) : s, k = a?.defaultVariants && !M(a.defaultVariants) ? { ...a.defaultVariants, ...d } : d;
|
|
1457
|
+
!M(f.twMergeConfig) && !Dn(f.twMergeConfig, Ge.cachedTwMergeConfig) && (Ge.didTwMergeConfigChange = !0, Ge.cachedTwMergeConfig = f.twMergeConfig);
|
|
1458
|
+
const T = M(a?.slots), p = M(i) ? {} : {
|
|
1459
|
+
// add "base" to the slots object
|
|
1460
|
+
base: Oe(n?.base, T && a?.base),
|
|
1461
|
+
...i
|
|
1462
|
+
}, O = T ? p : Pn(
|
|
1463
|
+
{ ...a?.slots },
|
|
1464
|
+
M(p) ? { base: n?.base } : p
|
|
1465
|
+
), R = M(a?.compoundVariants) ? c : $t(a?.compoundVariants, c), m = (B) => {
|
|
1466
|
+
if (M(g) && M(i) && T)
|
|
1467
|
+
return e(_, B?.class, B?.className)(f);
|
|
1468
|
+
if (R && !Array.isArray(R))
|
|
1469
|
+
throw new TypeError(
|
|
1470
|
+
`The "compoundVariants" prop must be an array. Received: ${typeof R}`
|
|
1471
|
+
);
|
|
1472
|
+
if (u && !Array.isArray(u))
|
|
1473
|
+
throw new TypeError(
|
|
1474
|
+
`The "compoundSlots" prop must be an array. Received: ${typeof u}`
|
|
1475
|
+
);
|
|
1476
|
+
const Y = (y, x = g, w = null, N = null) => {
|
|
1477
|
+
const b = x[y];
|
|
1478
|
+
if (!b || M(b))
|
|
1479
|
+
return null;
|
|
1480
|
+
const S = N?.[y] ?? B?.[y];
|
|
1481
|
+
if (S === null) return null;
|
|
1482
|
+
const L = yt(S);
|
|
1483
|
+
if (typeof L == "object")
|
|
1484
|
+
return null;
|
|
1485
|
+
const Z = k?.[y], z = L ?? yt(Z);
|
|
1486
|
+
return b[z || "false"];
|
|
1487
|
+
}, oe = () => {
|
|
1488
|
+
if (!g) return null;
|
|
1489
|
+
const y = Object.keys(g), x = [];
|
|
1490
|
+
for (let w = 0; w < y.length; w++) {
|
|
1491
|
+
const N = Y(y[w], g);
|
|
1492
|
+
N && x.push(N);
|
|
1083
1493
|
}
|
|
1084
|
-
return
|
|
1085
|
-
},
|
|
1086
|
-
if (!
|
|
1087
|
-
|
|
1088
|
-
for (
|
|
1089
|
-
|
|
1090
|
-
|
|
1494
|
+
return x;
|
|
1495
|
+
}, Ie = (y, x) => {
|
|
1496
|
+
if (!g || typeof g != "object") return null;
|
|
1497
|
+
const w = [];
|
|
1498
|
+
for (const N in g) {
|
|
1499
|
+
const b = Y(N, g, y, x), S = y === "base" && typeof b == "string" ? b : b && b[y];
|
|
1500
|
+
S && w.push(S);
|
|
1091
1501
|
}
|
|
1092
|
-
return
|
|
1093
|
-
},
|
|
1094
|
-
for (
|
|
1095
|
-
|
|
1096
|
-
|
|
1502
|
+
return w;
|
|
1503
|
+
}, he = {};
|
|
1504
|
+
for (const y in B) {
|
|
1505
|
+
const x = B[y];
|
|
1506
|
+
x !== void 0 && (he[y] = x);
|
|
1097
1507
|
}
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1508
|
+
const J = (y, x) => {
|
|
1509
|
+
const w = typeof B?.[y] == "object" ? {
|
|
1510
|
+
[y]: B[y]?.initial
|
|
1511
|
+
} : {};
|
|
1512
|
+
return {
|
|
1513
|
+
...k,
|
|
1514
|
+
...he,
|
|
1515
|
+
...w,
|
|
1516
|
+
...x
|
|
1517
|
+
};
|
|
1518
|
+
}, ge = (y = [], x) => {
|
|
1519
|
+
const w = [], N = y.length;
|
|
1520
|
+
for (let b = 0; b < N; b++) {
|
|
1521
|
+
const { class: S, className: L, ...Z } = y[b];
|
|
1522
|
+
let z = !0;
|
|
1523
|
+
const X = J(null, x);
|
|
1524
|
+
for (const le in Z) {
|
|
1525
|
+
const q = Z[le], Se = X[le];
|
|
1526
|
+
if (Array.isArray(q)) {
|
|
1527
|
+
if (!q.includes(Se)) {
|
|
1528
|
+
z = !1;
|
|
1110
1529
|
break;
|
|
1111
1530
|
}
|
|
1112
1531
|
} else {
|
|
1113
|
-
if ((
|
|
1114
|
-
|
|
1115
|
-
|
|
1532
|
+
if ((q == null || q === !1) && (Se == null || Se === !1))
|
|
1533
|
+
continue;
|
|
1534
|
+
if (Se !== q) {
|
|
1535
|
+
z = !1;
|
|
1116
1536
|
break;
|
|
1117
1537
|
}
|
|
1118
1538
|
}
|
|
1119
1539
|
}
|
|
1120
|
-
|
|
1540
|
+
z && (S && w.push(S), L && w.push(L));
|
|
1121
1541
|
}
|
|
1122
|
-
return
|
|
1123
|
-
}, Ve = (
|
|
1124
|
-
|
|
1125
|
-
if (!Array.isArray(
|
|
1126
|
-
|
|
1127
|
-
for (let
|
|
1128
|
-
|
|
1129
|
-
if (typeof
|
|
1130
|
-
|
|
1542
|
+
return w;
|
|
1543
|
+
}, Ve = (y) => {
|
|
1544
|
+
const x = ge(R, y);
|
|
1545
|
+
if (!Array.isArray(x)) return x;
|
|
1546
|
+
const w = {}, N = e;
|
|
1547
|
+
for (let b = 0; b < x.length; b++) {
|
|
1548
|
+
const S = x[b];
|
|
1549
|
+
if (typeof S == "string")
|
|
1550
|
+
w.base = N(w.base, S)(f);
|
|
1551
|
+
else if (typeof S == "object")
|
|
1552
|
+
for (const L in S)
|
|
1553
|
+
w[L] = N(w[L], S[L])(f);
|
|
1131
1554
|
}
|
|
1132
|
-
return
|
|
1133
|
-
},
|
|
1134
|
-
if (
|
|
1135
|
-
|
|
1136
|
-
for (let
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1555
|
+
return w;
|
|
1556
|
+
}, Ne = (y) => {
|
|
1557
|
+
if (u.length < 1) return null;
|
|
1558
|
+
const x = {}, w = J(null, y);
|
|
1559
|
+
for (let N = 0; N < u.length; N++) {
|
|
1560
|
+
const {
|
|
1561
|
+
slots: b = [],
|
|
1562
|
+
class: S,
|
|
1563
|
+
className: L,
|
|
1564
|
+
...Z
|
|
1565
|
+
} = u[N];
|
|
1566
|
+
if (!M(Z)) {
|
|
1567
|
+
let z = !0;
|
|
1568
|
+
for (const X in Z) {
|
|
1569
|
+
const le = w[X], q = Z[X];
|
|
1570
|
+
if (le === void 0 || (Array.isArray(q) ? !q.includes(le) : q !== le)) {
|
|
1571
|
+
z = !1;
|
|
1144
1572
|
break;
|
|
1145
1573
|
}
|
|
1146
1574
|
}
|
|
1147
|
-
if (!
|
|
1575
|
+
if (!z) continue;
|
|
1148
1576
|
}
|
|
1149
|
-
for (let
|
|
1150
|
-
|
|
1151
|
-
|
|
1577
|
+
for (let z = 0; z < b.length; z++) {
|
|
1578
|
+
const X = b[z];
|
|
1579
|
+
x[X] || (x[X] = []), x[X].push([S, L]);
|
|
1152
1580
|
}
|
|
1153
1581
|
}
|
|
1154
|
-
return
|
|
1582
|
+
return x;
|
|
1155
1583
|
};
|
|
1156
|
-
if (!
|
|
1157
|
-
|
|
1158
|
-
if (typeof
|
|
1159
|
-
|
|
1160
|
-
for (
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1584
|
+
if (!M(i) || !T) {
|
|
1585
|
+
const y = {};
|
|
1586
|
+
if (typeof O == "object" && !M(O)) {
|
|
1587
|
+
const x = e;
|
|
1588
|
+
for (const w in O)
|
|
1589
|
+
y[w] = (N) => {
|
|
1590
|
+
const b = Ve(N), S = Ne(N);
|
|
1591
|
+
return x(
|
|
1592
|
+
O[w],
|
|
1593
|
+
Ie(w, N),
|
|
1594
|
+
b ? b[w] : void 0,
|
|
1595
|
+
S ? S[w] : void 0,
|
|
1596
|
+
N?.class,
|
|
1597
|
+
N?.className
|
|
1598
|
+
)(f);
|
|
1599
|
+
};
|
|
1164
1600
|
}
|
|
1165
|
-
return
|
|
1601
|
+
return y;
|
|
1166
1602
|
}
|
|
1167
|
-
return e(
|
|
1168
|
-
|
|
1169
|
-
|
|
1603
|
+
return e(
|
|
1604
|
+
_,
|
|
1605
|
+
oe(),
|
|
1606
|
+
ge(R),
|
|
1607
|
+
B?.class,
|
|
1608
|
+
B?.className
|
|
1609
|
+
)(f);
|
|
1610
|
+
}, ve = () => {
|
|
1611
|
+
if (!(!g || typeof g != "object"))
|
|
1612
|
+
return Object.keys(g);
|
|
1170
1613
|
};
|
|
1171
|
-
return
|
|
1614
|
+
return m.variantKeys = ve(), m.extend = a, m.base = _, m.slots = O, m.variants = g, m.defaultVariants = k, m.compoundSlots = u, m.compoundVariants = R, m;
|
|
1615
|
+
};
|
|
1616
|
+
return {
|
|
1617
|
+
tv: t,
|
|
1618
|
+
createTV: (n) => (o, a) => t(o, a ? Qe(n, a) : n)
|
|
1172
1619
|
};
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
base: "flex items-center justify-center rounded-lg transition-colors cursor-pointer active:scale-95 transition-transform",
|
|
1620
|
+
}, Mn = (...e) => (t) => Oe(e) || void 0, { tv: er } = Vn(Mn);
|
|
1621
|
+
const wt = er({
|
|
1622
|
+
base: "lv-button flex items-center justify-center rounded-lg transition-colors cursor-pointer active:scale-95 transition-transform",
|
|
1177
1623
|
variants: {
|
|
1178
1624
|
$variant: {
|
|
1179
|
-
primary: "
|
|
1180
|
-
secondary: "border
|
|
1181
|
-
tertiary: "text-
|
|
1625
|
+
primary: "font-semibold text-sm bg-[var(--lv-button-primary-background)] text-[var(--lv-button-primary-color)] border-[var(--lv-button-primary-border)] hover:bg-[var(--lv-button-primary-hoverBackground,var(--lv-button-primary-background))] active:bg-[var(--lv-button-primary-activeBackground,var(--lv-button-primary-hoverBackground,var(--lv-button-primary-background)))] disabled:bg-[var(--lv-button-primary-disabledBackground,var(--lv-button-primary-background))] disabled:text-[var(--lv-button-primary-disabledColor,var(--lv-button-primary-color))]",
|
|
1626
|
+
secondary: "border bg-[var(--lv-button-secondary-background)] text-[var(--lv-button-secondary-color)] border-[var(--lv-button-secondary-border,var(--lv-button-secondary-background))] hover:bg-[var(--lv-button-secondary-hoverBackground,var(--lv-button-secondary-background))] active:bg-[var(--lv-button-secondary-activeBackground,var(--lv-button-secondary-hoverBackground,var(--lv-button-secondary-background)))] disabled:bg-[var(--lv-button-secondary-disabledBackground,var(--lv-button-secondary-background))] disabled:text-[var(--lv-button-secondary-disabledColor,var(--lv-button-secondary-color))]",
|
|
1627
|
+
tertiary: "bg-transparent text-[var(--lv-text-muted)] hover:bg-[var(--lv-control-button-tertiary-hoverBackground,transparent)] active:bg-[var(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent))] disabled:text-[var(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))]"
|
|
1182
1628
|
},
|
|
1183
1629
|
$size: {
|
|
1184
1630
|
sm: "h-6",
|
|
@@ -1195,55 +1641,56 @@ const zn = er({
|
|
|
1195
1641
|
$variant: "primary",
|
|
1196
1642
|
$aspect: "auto"
|
|
1197
1643
|
}
|
|
1198
|
-
})
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
onClick:
|
|
1212
|
-
className:
|
|
1213
|
-
...
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
/* @__PURE__ */
|
|
1644
|
+
});
|
|
1645
|
+
function ye(e) {
|
|
1646
|
+
const { children: t, className: r, $variant: n, $size: o, $aspect: a, ...i } = e, { href: s, onClick: c } = e;
|
|
1647
|
+
if (s) {
|
|
1648
|
+
const d = {
|
|
1649
|
+
href: s,
|
|
1650
|
+
onClick: c,
|
|
1651
|
+
className: ie(wt({ $variant: n, $size: o, $aspect: a }), r),
|
|
1652
|
+
...i
|
|
1653
|
+
};
|
|
1654
|
+
return U("a", d, t);
|
|
1655
|
+
}
|
|
1656
|
+
const u = {
|
|
1657
|
+
onClick: c,
|
|
1658
|
+
className: ie(wt({ $variant: n, $size: o, $aspect: a }), r),
|
|
1659
|
+
...i
|
|
1660
|
+
};
|
|
1661
|
+
return U("button", u, t);
|
|
1662
|
+
}
|
|
1663
|
+
const Ln = ({ isApple: e }) => /* @__PURE__ */ h("div", { className: "flex h-full w-full justify-between", children: [
|
|
1664
|
+
/* @__PURE__ */ l("div", { className: "grow py-1 pl-1", children: /* @__PURE__ */ l("div", { className: "h-full rounded-sm border border-gray-300 bg-gray-400" }) }),
|
|
1665
|
+
/* @__PURE__ */ l("div", { className: "flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5", children: Array.from({ length: e ? 1 : 3 }).map((t, r) => /* @__PURE__ */ l(
|
|
1219
1666
|
"div",
|
|
1220
1667
|
{
|
|
1221
1668
|
className: "h-1.5 w-1.5 rounded-full border border-gray-500"
|
|
1222
1669
|
},
|
|
1223
1670
|
"dot-t-" + r
|
|
1224
1671
|
)) })
|
|
1225
|
-
] }),
|
|
1226
|
-
/* @__PURE__ */
|
|
1227
|
-
/* @__PURE__ */
|
|
1672
|
+
] }), zn = ({ isApple: e }) => /* @__PURE__ */ h("div", { className: "flex h-full w-full flex-col justify-between", children: [
|
|
1673
|
+
/* @__PURE__ */ l("div", { className: "grow px-1 pt-1", children: /* @__PURE__ */ l("div", { className: "h-full rounded-sm border border-gray-200 bg-gray-300" }) }),
|
|
1674
|
+
/* @__PURE__ */ l("div", { className: "flex h-3 w-full items-center justify-center gap-0.5 pb-0.5", children: Array.from({ length: e ? 1 : 3 }).map((t, r) => /* @__PURE__ */ l(
|
|
1228
1675
|
"div",
|
|
1229
1676
|
{
|
|
1230
1677
|
className: "h-1.5 w-1.5 rounded-full border border-gray-400"
|
|
1231
1678
|
},
|
|
1232
1679
|
"dot-p-" + r
|
|
1233
1680
|
)) })
|
|
1234
|
-
] }),
|
|
1235
|
-
/* @__PURE__ */
|
|
1236
|
-
/* @__PURE__ */
|
|
1237
|
-
] }),
|
|
1681
|
+
] }), Gn = () => /* @__PURE__ */ h("div", { className: "-space-x-4 flex items-end", children: [
|
|
1682
|
+
/* @__PURE__ */ l("div", { className: "h-38 w-48 overflow-hidden rounded-lg bg-gray-300", children: /* @__PURE__ */ l(Ln, { isApple: !0 }) }),
|
|
1683
|
+
/* @__PURE__ */ l("div", { className: "h-18 w-12 overflow-hidden rounded-lg bg-gray-200", children: /* @__PURE__ */ l(zn, { isApple: !0 }) })
|
|
1684
|
+
] }), Wn = ({
|
|
1238
1685
|
onSettings: e
|
|
1239
1686
|
}) => {
|
|
1240
|
-
const { start: t } =
|
|
1241
|
-
return /* @__PURE__ */
|
|
1242
|
-
/* @__PURE__ */
|
|
1243
|
-
/* @__PURE__ */
|
|
1244
|
-
/* @__PURE__ */
|
|
1245
|
-
/* @__PURE__ */
|
|
1246
|
-
|
|
1687
|
+
const { start: t } = Mr();
|
|
1688
|
+
return /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
1689
|
+
/* @__PURE__ */ l(Gn, {}),
|
|
1690
|
+
/* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l("p", { className: "text-sm", style: { color: "var(--lv-text-secondary)" }, children: "Click the button below to start a connection" }) }),
|
|
1691
|
+
/* @__PURE__ */ h("div", { className: "flex items-center", children: [
|
|
1692
|
+
/* @__PURE__ */ l(
|
|
1693
|
+
ye,
|
|
1247
1694
|
{
|
|
1248
1695
|
type: "button",
|
|
1249
1696
|
onClick: t,
|
|
@@ -1253,8 +1700,8 @@ const zn = er({
|
|
|
1253
1700
|
children: "Generate QR"
|
|
1254
1701
|
}
|
|
1255
1702
|
),
|
|
1256
|
-
/* @__PURE__ */
|
|
1257
|
-
|
|
1703
|
+
/* @__PURE__ */ l(
|
|
1704
|
+
ye,
|
|
1258
1705
|
{
|
|
1259
1706
|
type: "button",
|
|
1260
1707
|
"aria-label": "Connection settings",
|
|
@@ -1264,12 +1711,18 @@ const zn = er({
|
|
|
1264
1711
|
$aspect: "square",
|
|
1265
1712
|
$size: "lg",
|
|
1266
1713
|
$variant: "secondary",
|
|
1267
|
-
children: /* @__PURE__ */
|
|
1714
|
+
children: /* @__PURE__ */ l(
|
|
1715
|
+
Tn,
|
|
1716
|
+
{
|
|
1717
|
+
className: "h-5 w-5",
|
|
1718
|
+
style: { color: "var(--lv-text-muted)" }
|
|
1719
|
+
}
|
|
1720
|
+
)
|
|
1268
1721
|
}
|
|
1269
1722
|
)
|
|
1270
1723
|
] })
|
|
1271
1724
|
] });
|
|
1272
|
-
},
|
|
1725
|
+
}, Hn = async (e) => {
|
|
1273
1726
|
if (!e) return !1;
|
|
1274
1727
|
try {
|
|
1275
1728
|
if (navigator?.clipboard?.writeText)
|
|
@@ -1284,106 +1737,129 @@ const zn = er({
|
|
|
1284
1737
|
} catch {
|
|
1285
1738
|
return !1;
|
|
1286
1739
|
}
|
|
1287
|
-
},
|
|
1288
|
-
const [r, n] =
|
|
1289
|
-
return
|
|
1290
|
-
if (!Object.is(e,
|
|
1291
|
-
return
|
|
1292
|
-
|
|
1740
|
+
}, xt = (e, { duration: t = 200 } = {}) => {
|
|
1741
|
+
const [r, n] = D(e), [o, a] = D(null), i = G(), s = G(e);
|
|
1742
|
+
return I(() => {
|
|
1743
|
+
if (!Object.is(e, s.current))
|
|
1744
|
+
return i.current && window.clearTimeout(i.current), a(s.current), n(e), s.current = e, i.current = window.setTimeout(() => {
|
|
1745
|
+
a(null), i.current = void 0;
|
|
1293
1746
|
}, t), () => {
|
|
1294
|
-
|
|
1747
|
+
i.current && window.clearTimeout(i.current);
|
|
1295
1748
|
};
|
|
1296
1749
|
}, [e, t]), {
|
|
1297
1750
|
current: r,
|
|
1298
|
-
previous:
|
|
1299
|
-
isTransitioning:
|
|
1751
|
+
previous: o,
|
|
1752
|
+
isTransitioning: o !== null
|
|
1300
1753
|
};
|
|
1301
|
-
},
|
|
1302
|
-
const { status: e } =
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
/* @__PURE__ */
|
|
1334
|
-
|
|
1335
|
-
/* @__PURE__ */
|
|
1336
|
-
|
|
1754
|
+
}, Kn = "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==", Un = () => {
|
|
1755
|
+
const { status: e } = _e(), t = e?.status, r = e?.signaling?.state, n = Q({ sessionState: t, signalState: r }).with({ sessionState: "connected" }, () => ({
|
|
1756
|
+
icon: "✅",
|
|
1757
|
+
text: "Connected Successfully!"
|
|
1758
|
+
})).with({ sessionState: "signaling", signalState: "standby" }, () => ({
|
|
1759
|
+
icon: "🫥",
|
|
1760
|
+
text: "Connecting"
|
|
1761
|
+
})).with({ sessionState: "signaling", signalState: "connecting" }, () => ({
|
|
1762
|
+
icon: "↗️",
|
|
1763
|
+
text: "Connecting"
|
|
1764
|
+
})).with({ sessionState: "signaling", signalState: "ready" }, () => ({
|
|
1765
|
+
icon: "👋",
|
|
1766
|
+
text: "Ready"
|
|
1767
|
+
})).with({ sessionState: "signaling", signalState: "handshake" }, () => ({
|
|
1768
|
+
icon: "🤝",
|
|
1769
|
+
text: "Handshake Closed"
|
|
1770
|
+
})).with(
|
|
1771
|
+
{ sessionState: "signaling", signalState: "handshake-partial" },
|
|
1772
|
+
() => ({
|
|
1773
|
+
icon: "🤝",
|
|
1774
|
+
text: "Handshake Partial"
|
|
1775
|
+
})
|
|
1776
|
+
).with({ sessionState: "signaling", signalState: "encrypted" }, () => ({
|
|
1777
|
+
icon: "🔒",
|
|
1778
|
+
text: "Encrypted"
|
|
1779
|
+
})).with({ sessionState: "signaling", signalState: "error" }, () => ({
|
|
1780
|
+
icon: "❌",
|
|
1781
|
+
text: "Signal Error"
|
|
1782
|
+
})).otherwise(() => {
|
|
1783
|
+
});
|
|
1784
|
+
if (!n) return /* @__PURE__ */ l(kt, {});
|
|
1785
|
+
const { icon: o, text: a } = n;
|
|
1786
|
+
return /* @__PURE__ */ h("div", { className: "group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-[var(--lv-button-secondary-background)]", children: [
|
|
1787
|
+
/* @__PURE__ */ l("div", { className: "pointer-events-none whitespace-nowrap rounded-md text-xs opacity-0 group-hover:opacity-100", children: a }),
|
|
1788
|
+
/* @__PURE__ */ l("div", { children: o })
|
|
1789
|
+
] });
|
|
1790
|
+
}, Jn = () => {
|
|
1791
|
+
const e = "var(--lv-text-muted)";
|
|
1792
|
+
return /* @__PURE__ */ h(kt, { children: [
|
|
1793
|
+
/* @__PURE__ */ l("div", { className: "h-11 w-full" }),
|
|
1794
|
+
/* @__PURE__ */ h(
|
|
1795
|
+
"div",
|
|
1337
1796
|
{
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
rel: "noreferrer",
|
|
1341
|
-
className: "flex items-center gap-2 p-1 font-semibold text-gray-500 text-sm",
|
|
1797
|
+
className: "absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2",
|
|
1798
|
+
style: { color: e },
|
|
1342
1799
|
children: [
|
|
1343
|
-
/* @__PURE__ */
|
|
1344
|
-
"
|
|
1800
|
+
/* @__PURE__ */ h(
|
|
1801
|
+
"a",
|
|
1345
1802
|
{
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1803
|
+
href: "https://github.com/v3xlabs/open-lavatory",
|
|
1804
|
+
target: "_blank",
|
|
1805
|
+
rel: "noreferrer",
|
|
1806
|
+
className: "flex items-center gap-2 p-1 font-semibold text-sm",
|
|
1807
|
+
style: { color: e },
|
|
1808
|
+
children: [
|
|
1809
|
+
/* @__PURE__ */ l(
|
|
1810
|
+
"img",
|
|
1811
|
+
{
|
|
1812
|
+
src: Kn,
|
|
1813
|
+
alt: "Open Lavatory Logo",
|
|
1814
|
+
width: 20,
|
|
1815
|
+
height: 20,
|
|
1816
|
+
className: "rounded",
|
|
1817
|
+
"data-openlv-brand-logo": !0
|
|
1818
|
+
}
|
|
1819
|
+
),
|
|
1820
|
+
/* @__PURE__ */ l("span", { children: "openlv" })
|
|
1821
|
+
]
|
|
1351
1822
|
}
|
|
1352
1823
|
),
|
|
1353
|
-
/* @__PURE__ */
|
|
1824
|
+
/* @__PURE__ */ l("div", { className: "text-sm", style: { color: e }, children: /* @__PURE__ */ l(Un, {}) })
|
|
1354
1825
|
]
|
|
1355
1826
|
}
|
|
1356
|
-
)
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
return Pe({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "m15 18-6-6 6-6" }, child: [] }] })(e);
|
|
1827
|
+
)
|
|
1828
|
+
] });
|
|
1829
|
+
};
|
|
1830
|
+
function Xn(e) {
|
|
1831
|
+
return je({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "m15 18-6-6 6-6" }, child: [] }] })(e);
|
|
1362
1832
|
}
|
|
1363
1833
|
function tr(e) {
|
|
1364
|
-
return
|
|
1834
|
+
return je({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "10" }, child: [] }, { tag: "path", attr: { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }, child: [] }, { tag: "path", attr: { d: "M12 17h.01" }, child: [] }] })(e);
|
|
1365
1835
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return
|
|
1836
|
+
function qn(e) {
|
|
1837
|
+
return je({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M18 6 6 18" }, child: [] }, { tag: "path", attr: { d: "m6 6 12 12" }, child: [] }] })(e);
|
|
1368
1838
|
}
|
|
1369
|
-
const
|
|
1839
|
+
const Qn = ({
|
|
1370
1840
|
title: e,
|
|
1371
1841
|
view: t,
|
|
1372
1842
|
onClose: r,
|
|
1373
1843
|
onBack: n
|
|
1374
|
-
}) => /* @__PURE__ */
|
|
1375
|
-
n ? /* @__PURE__ */
|
|
1376
|
-
|
|
1844
|
+
}) => /* @__PURE__ */ h("div", { className: "flex items-center justify-between px-2 py-2", children: [
|
|
1845
|
+
n ? /* @__PURE__ */ l(
|
|
1846
|
+
ye,
|
|
1377
1847
|
{
|
|
1378
1848
|
onClick: n,
|
|
1379
1849
|
"aria-label": t === "settings" ? "Back to QR" : "Close modal",
|
|
1380
1850
|
$variant: "tertiary",
|
|
1381
1851
|
$aspect: "square",
|
|
1382
1852
|
$size: "md",
|
|
1383
|
-
children: /* @__PURE__ */
|
|
1853
|
+
children: /* @__PURE__ */ l(
|
|
1854
|
+
Xn,
|
|
1855
|
+
{
|
|
1856
|
+
className: "h-6 w-6",
|
|
1857
|
+
style: { color: "var(--lv-text-muted)" }
|
|
1858
|
+
}
|
|
1859
|
+
)
|
|
1384
1860
|
}
|
|
1385
|
-
) : /* @__PURE__ */
|
|
1386
|
-
|
|
1861
|
+
) : /* @__PURE__ */ l(
|
|
1862
|
+
ye,
|
|
1387
1863
|
{
|
|
1388
1864
|
type: "button",
|
|
1389
1865
|
href: "https://openlv.sh",
|
|
@@ -1391,12 +1867,19 @@ const Kn = ({
|
|
|
1391
1867
|
$variant: "tertiary",
|
|
1392
1868
|
$aspect: "square",
|
|
1393
1869
|
$size: "md",
|
|
1394
|
-
children: /* @__PURE__ */
|
|
1870
|
+
children: /* @__PURE__ */ l(tr, { className: "h-5 w-5" })
|
|
1871
|
+
}
|
|
1872
|
+
),
|
|
1873
|
+
/* @__PURE__ */ l(
|
|
1874
|
+
"h2",
|
|
1875
|
+
{
|
|
1876
|
+
className: "flex items-center justify-center gap-2 font-semibold text-lg",
|
|
1877
|
+
style: { color: "var(--lv-text-primary)" },
|
|
1878
|
+
children: e
|
|
1395
1879
|
}
|
|
1396
1880
|
),
|
|
1397
|
-
/* @__PURE__ */
|
|
1398
|
-
|
|
1399
|
-
me,
|
|
1881
|
+
/* @__PURE__ */ l(
|
|
1882
|
+
ye,
|
|
1400
1883
|
{
|
|
1401
1884
|
type: "button",
|
|
1402
1885
|
"aria-label": "close",
|
|
@@ -1405,14 +1888,14 @@ const Kn = ({
|
|
|
1405
1888
|
$variant: "tertiary",
|
|
1406
1889
|
$aspect: "square",
|
|
1407
1890
|
$size: "md",
|
|
1408
|
-
children: /* @__PURE__ */
|
|
1891
|
+
children: /* @__PURE__ */ l(qn, { className: "h-6 w-6", style: { color: "var(--lv-text-muted)" } })
|
|
1409
1892
|
}
|
|
1410
1893
|
)
|
|
1411
|
-
] }),
|
|
1894
|
+
] }), Yn = er({
|
|
1412
1895
|
slots: {
|
|
1413
1896
|
root: "group relative",
|
|
1414
|
-
box: "cursor-pointer rounded-md transition-colors
|
|
1415
|
-
popover: "-translate-x-1/2 absolute top-full left-1/2 z-10 hidden rounded-md
|
|
1897
|
+
box: "cursor-pointer rounded-md transition-colors flex items-center justify-center hover:[background-color:var(--lv-button-tertiary-hoverBackground)]",
|
|
1898
|
+
popover: "-translate-x-1/2 absolute top-full left-1/2 z-10 hidden rounded-md shadow-sm group-hover:block",
|
|
1416
1899
|
icon: ""
|
|
1417
1900
|
},
|
|
1418
1901
|
variants: {
|
|
@@ -1438,104 +1921,166 @@ const Kn = ({
|
|
|
1438
1921
|
defaultVariants: {
|
|
1439
1922
|
size: "lg"
|
|
1440
1923
|
}
|
|
1441
|
-
}),
|
|
1924
|
+
}), rt = ({
|
|
1442
1925
|
variant: e = "icon",
|
|
1443
1926
|
children: t,
|
|
1444
1927
|
size: r = "lg"
|
|
1445
1928
|
}) => {
|
|
1446
|
-
const { root: n, box:
|
|
1447
|
-
return /* @__PURE__ */
|
|
1448
|
-
/* @__PURE__ */
|
|
1449
|
-
|
|
1929
|
+
const { root: n, box: o, popover: a, icon: i } = Yn({ size: r, variant: e });
|
|
1930
|
+
return /* @__PURE__ */ h("div", { className: n(), children: [
|
|
1931
|
+
/* @__PURE__ */ l(
|
|
1932
|
+
"div",
|
|
1933
|
+
{
|
|
1934
|
+
className: o(),
|
|
1935
|
+
style: {
|
|
1936
|
+
color: "var(--lv-text-muted)"
|
|
1937
|
+
},
|
|
1938
|
+
children: Q(e).with("icon", () => /* @__PURE__ */ l(tr, { className: i() })).with("text", () => /* @__PURE__ */ l("div", { children: "Text" })).exhaustive()
|
|
1939
|
+
}
|
|
1940
|
+
),
|
|
1941
|
+
/* @__PURE__ */ l(
|
|
1942
|
+
"div",
|
|
1943
|
+
{
|
|
1944
|
+
className: a(),
|
|
1945
|
+
style: {
|
|
1946
|
+
backgroundColor: "var(--lv-body-background)",
|
|
1947
|
+
color: "var(--lv-text-primary)",
|
|
1948
|
+
padding: "6px 8px",
|
|
1949
|
+
border: "1px solid var(--lv-button-secondary-border)"
|
|
1950
|
+
},
|
|
1951
|
+
children: t
|
|
1952
|
+
}
|
|
1953
|
+
)
|
|
1450
1954
|
] });
|
|
1451
|
-
},
|
|
1452
|
-
/* @__PURE__ */
|
|
1453
|
-
/* @__PURE__ */
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
] }), st = ({ options: e, value: t, onChange: r }) => /* @__PURE__ */ s("div", { className: "flex divide-x rounded-md border border-gray-300", children: e.map(([n, i]) => /* @__PURE__ */ s(
|
|
1461
|
-
"button",
|
|
1462
|
-
{
|
|
1463
|
-
type: "button",
|
|
1464
|
-
onClick: () => r(n),
|
|
1465
|
-
"aria-pressed": n === t,
|
|
1466
|
-
className: se(
|
|
1467
|
-
"px-4 py-2 font-semibold text-xs transition first:rounded-l-md last:rounded-r-md",
|
|
1468
|
-
n === t ? "border-blue-500 bg-blue-50 text-blue-600" : "cursor-pointer border-gray-300 text-gray-600 hover:border-gray-400"
|
|
1955
|
+
}, nt = ({ title: e, right: t, children: r }) => /* @__PURE__ */ h("div", { children: [
|
|
1956
|
+
/* @__PURE__ */ h("div", { className: "flex items-end justify-between px-2 py-1", children: [
|
|
1957
|
+
/* @__PURE__ */ l(
|
|
1958
|
+
"div",
|
|
1959
|
+
{
|
|
1960
|
+
className: "font-medium text-sm",
|
|
1961
|
+
style: { color: "var(--lv-text-primary)" },
|
|
1962
|
+
children: e
|
|
1963
|
+
}
|
|
1469
1964
|
),
|
|
1470
|
-
children:
|
|
1471
|
-
},
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1965
|
+
/* @__PURE__ */ l("div", { children: t })
|
|
1966
|
+
] }),
|
|
1967
|
+
/* @__PURE__ */ l(
|
|
1968
|
+
"div",
|
|
1969
|
+
{
|
|
1970
|
+
className: "flex flex-col gap-1 rounded-md p-2 border",
|
|
1971
|
+
style: {
|
|
1972
|
+
backgroundColor: "transparent",
|
|
1973
|
+
borderColor: "var(--lv-button-secondary-background)"
|
|
1974
|
+
},
|
|
1975
|
+
children: r
|
|
1976
|
+
}
|
|
1977
|
+
)
|
|
1978
|
+
] }), Re = ({ label: e, children: t }) => /* @__PURE__ */ h("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
1979
|
+
/* @__PURE__ */ l("div", { className: "text-sm", style: { color: "var(--lv-text-secondary)" }, children: e }),
|
|
1980
|
+
/* @__PURE__ */ l("div", { children: t })
|
|
1981
|
+
] }), ot = ({ options: e, value: t, onChange: r }) => {
|
|
1982
|
+
const n = "var(--lv-button-secondary-border)";
|
|
1983
|
+
return /* @__PURE__ */ l(
|
|
1984
|
+
"div",
|
|
1985
|
+
{
|
|
1986
|
+
className: "flex overflow-hidden rounded-md border",
|
|
1987
|
+
style: { borderColor: n },
|
|
1988
|
+
children: e.map(([o, a]) => /* @__PURE__ */ l(
|
|
1989
|
+
"button",
|
|
1990
|
+
{
|
|
1991
|
+
type: "button",
|
|
1992
|
+
onClick: () => r(o),
|
|
1993
|
+
"aria-pressed": o === t,
|
|
1994
|
+
className: ie(
|
|
1995
|
+
"px-4 py-2 font-semibold text-xs transition border-l first:border-l-0",
|
|
1996
|
+
o !== t && "cursor-pointer"
|
|
1997
|
+
),
|
|
1998
|
+
style: o === t ? {
|
|
1999
|
+
backgroundColor: "var(--lv-button-secondary-selectedBackground, var(--lv-button-secondary-background))",
|
|
2000
|
+
color: "var(--lv-button-secondary-selectedColor, var(--lv-text-primary))",
|
|
2001
|
+
borderColor: n
|
|
2002
|
+
} : {
|
|
2003
|
+
backgroundColor: "transparent",
|
|
2004
|
+
color: "var(--lv-text-secondary)",
|
|
2005
|
+
borderColor: n
|
|
2006
|
+
},
|
|
2007
|
+
children: a
|
|
2008
|
+
},
|
|
2009
|
+
o
|
|
2010
|
+
))
|
|
2011
|
+
}
|
|
2012
|
+
);
|
|
2013
|
+
}, Zn = ({ value: e, onChange: t }) => /* @__PURE__ */ l(
|
|
2014
|
+
ot,
|
|
1475
2015
|
{
|
|
1476
2016
|
options: [
|
|
1477
2017
|
["true", "Yes"],
|
|
1478
2018
|
["false", "No"]
|
|
1479
2019
|
],
|
|
1480
|
-
value:
|
|
1481
|
-
onChange: (
|
|
2020
|
+
value: e ? "true" : "false",
|
|
2021
|
+
onChange: (r) => t(r === "true")
|
|
1482
2022
|
}
|
|
1483
|
-
),
|
|
1484
|
-
const { settings: e,
|
|
1485
|
-
return /* @__PURE__ */
|
|
1486
|
-
|
|
2023
|
+
), $n = () => {
|
|
2024
|
+
const { settings: e, updateRetainHistory: t, updateAutoReconnect: r } = et();
|
|
2025
|
+
return /* @__PURE__ */ l(
|
|
2026
|
+
nt,
|
|
1487
2027
|
{
|
|
1488
2028
|
title: "Connection preferences",
|
|
1489
|
-
right: /* @__PURE__ */
|
|
2029
|
+
right: /* @__PURE__ */ l(rt, { variant: "icon", children: "Something something very cool" }),
|
|
1490
2030
|
children: [
|
|
1491
2031
|
[
|
|
1492
2032
|
"Retain session history",
|
|
1493
2033
|
"retainHistory",
|
|
1494
2034
|
e?.retainHistory ?? !1,
|
|
1495
|
-
|
|
2035
|
+
t
|
|
1496
2036
|
],
|
|
1497
2037
|
[
|
|
1498
2038
|
"Auto reconnect",
|
|
1499
2039
|
"autoReconnect",
|
|
1500
2040
|
e?.autoReconnect ?? !1,
|
|
1501
|
-
|
|
2041
|
+
r
|
|
1502
2042
|
]
|
|
1503
|
-
].map(([
|
|
2043
|
+
].map(([n, o, a, i]) => /* @__PURE__ */ l(Re, { label: n, children: /* @__PURE__ */ l(Zn, { label: n, value: a, onChange: i }) }, o))
|
|
1504
2044
|
}
|
|
1505
2045
|
);
|
|
1506
|
-
},
|
|
2046
|
+
}, eo = "h-9 w-full rounded-lg border bg-white px-3 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200", to = ({
|
|
1507
2047
|
// eslint-disable-next-line no-restricted-syntax
|
|
1508
2048
|
id: e,
|
|
1509
2049
|
value: t,
|
|
1510
2050
|
placeholder: r,
|
|
1511
2051
|
ariaLabel: n,
|
|
1512
|
-
readOnly:
|
|
1513
|
-
onChange:
|
|
1514
|
-
}) => /* @__PURE__ */
|
|
2052
|
+
readOnly: o = !0,
|
|
2053
|
+
onChange: a
|
|
2054
|
+
}) => /* @__PURE__ */ l(
|
|
1515
2055
|
"input",
|
|
1516
2056
|
{
|
|
1517
2057
|
id: e,
|
|
1518
|
-
className:
|
|
2058
|
+
className: eo,
|
|
2059
|
+
style: {
|
|
2060
|
+
color: "var(--lv-text-primary)",
|
|
2061
|
+
backgroundColor: "var(--lv-body-background)",
|
|
2062
|
+
borderColor: "var(--lv-control-input-border)"
|
|
2063
|
+
},
|
|
1519
2064
|
value: t,
|
|
1520
2065
|
placeholder: r,
|
|
1521
2066
|
"aria-label": n,
|
|
1522
|
-
readOnly:
|
|
1523
|
-
onChange: (
|
|
1524
|
-
|
|
2067
|
+
readOnly: o,
|
|
2068
|
+
onChange: (i) => {
|
|
2069
|
+
i.target instanceof HTMLInputElement && a?.(i.target.value);
|
|
1525
2070
|
}
|
|
1526
2071
|
}
|
|
1527
|
-
),
|
|
1528
|
-
const { settings: e, updateSignalingProtocol: t, updateSignalingServer: r } =
|
|
1529
|
-
return /* @__PURE__ */
|
|
1530
|
-
|
|
2072
|
+
), ro = ["MQTT", "NTFY", "GUN"], no = () => {
|
|
2073
|
+
const { settings: e, updateSignalingProtocol: t, updateSignalingServer: r } = et();
|
|
2074
|
+
return /* @__PURE__ */ l("div", { children: /* @__PURE__ */ h(
|
|
2075
|
+
nt,
|
|
1531
2076
|
{
|
|
1532
2077
|
title: "Signaling",
|
|
1533
|
-
right: /* @__PURE__ */
|
|
2078
|
+
right: /* @__PURE__ */ l(rt, { variant: "icon", children: "Something something very cool" }),
|
|
1534
2079
|
children: [
|
|
1535
|
-
/* @__PURE__ */
|
|
1536
|
-
|
|
2080
|
+
/* @__PURE__ */ l(Re, { label: "Protocol", children: /* @__PURE__ */ l(
|
|
2081
|
+
ot,
|
|
1537
2082
|
{
|
|
1538
|
-
options:
|
|
2083
|
+
options: ro.map((n) => [
|
|
1539
2084
|
n.toLowerCase(),
|
|
1540
2085
|
n
|
|
1541
2086
|
]),
|
|
@@ -1543,8 +2088,8 @@ const Kn = ({
|
|
|
1543
2088
|
onChange: t
|
|
1544
2089
|
}
|
|
1545
2090
|
) }),
|
|
1546
|
-
/* @__PURE__ */
|
|
1547
|
-
|
|
2091
|
+
/* @__PURE__ */ l(Re, { label: "Server", children: /* @__PURE__ */ l(
|
|
2092
|
+
to,
|
|
1548
2093
|
{
|
|
1549
2094
|
id: "server",
|
|
1550
2095
|
value: e?.signaling.s[e?.signaling.p || ""] || "",
|
|
@@ -1557,173 +2102,196 @@ const Kn = ({
|
|
|
1557
2102
|
]
|
|
1558
2103
|
}
|
|
1559
2104
|
) });
|
|
1560
|
-
},
|
|
1561
|
-
const [e, t] =
|
|
1562
|
-
return /* @__PURE__ */
|
|
1563
|
-
|
|
2105
|
+
}, oo = ["WebRTC"], ao = () => {
|
|
2106
|
+
const [e, t] = D("WebRTC");
|
|
2107
|
+
return /* @__PURE__ */ l(
|
|
2108
|
+
nt,
|
|
1564
2109
|
{
|
|
1565
2110
|
title: "Transport",
|
|
1566
|
-
right: /* @__PURE__ */
|
|
1567
|
-
children: /* @__PURE__ */
|
|
1568
|
-
|
|
2111
|
+
right: /* @__PURE__ */ l(rt, { variant: "icon", children: "Something something very cool" }),
|
|
2112
|
+
children: /* @__PURE__ */ l(Re, { label: "Protocol", children: /* @__PURE__ */ l(
|
|
2113
|
+
ot,
|
|
1569
2114
|
{
|
|
1570
|
-
options:
|
|
2115
|
+
options: oo.map((r) => [r, r]),
|
|
1571
2116
|
value: e,
|
|
1572
2117
|
onChange: (r) => t(r)
|
|
1573
2118
|
}
|
|
1574
2119
|
) })
|
|
1575
2120
|
}
|
|
1576
2121
|
);
|
|
1577
|
-
},
|
|
1578
|
-
/* @__PURE__ */
|
|
1579
|
-
/* @__PURE__ */
|
|
1580
|
-
/* @__PURE__ */
|
|
1581
|
-
] }),
|
|
1582
|
-
const [e, t] =
|
|
1583
|
-
return
|
|
2122
|
+
}, io = () => /* @__PURE__ */ h("div", { className: "px-4 pb-2", children: [
|
|
2123
|
+
/* @__PURE__ */ l(no, {}),
|
|
2124
|
+
/* @__PURE__ */ l(ao, {}),
|
|
2125
|
+
/* @__PURE__ */ l($n, {})
|
|
2126
|
+
] }), so = () => {
|
|
2127
|
+
const [e, t] = D("start"), [r, n] = D(!1);
|
|
2128
|
+
return I(() => {
|
|
1584
2129
|
if (!r) return;
|
|
1585
|
-
const
|
|
1586
|
-
return () => window.clearTimeout(
|
|
2130
|
+
const o = window.setTimeout(() => n(!1), 2e3);
|
|
2131
|
+
return () => window.clearTimeout(o);
|
|
1587
2132
|
}, [r]), {
|
|
1588
2133
|
view: e,
|
|
1589
2134
|
setView: t,
|
|
1590
2135
|
copied: r,
|
|
1591
2136
|
setCopied: n
|
|
1592
2137
|
};
|
|
1593
|
-
},
|
|
1594
|
-
|
|
2138
|
+
}, lo = (e) => {
|
|
2139
|
+
I(() => {
|
|
1595
2140
|
const t = (r) => {
|
|
1596
2141
|
r.key === "Escape" && e();
|
|
1597
2142
|
};
|
|
1598
2143
|
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
1599
2144
|
}, [e]);
|
|
1600
|
-
},
|
|
1601
|
-
const e =
|
|
1602
|
-
(
|
|
1603
|
-
const
|
|
1604
|
-
if (!
|
|
1605
|
-
const c =
|
|
2145
|
+
}, co = () => {
|
|
2146
|
+
const e = G(null), [t, r] = D(0), n = G(!1), o = K(
|
|
2147
|
+
(a, i = !1) => {
|
|
2148
|
+
const s = a || e.current;
|
|
2149
|
+
if (!s) return;
|
|
2150
|
+
const c = i ? s.scrollHeight : s.getBoundingClientRect().height;
|
|
1606
2151
|
c > 0 && (r(
|
|
1607
|
-
(
|
|
2152
|
+
(u) => typeof u == "number" && Math.abs(u - c) < 0.5 ? u : c
|
|
1608
2153
|
), n.current = !0);
|
|
1609
2154
|
},
|
|
1610
2155
|
[]
|
|
1611
2156
|
);
|
|
1612
|
-
return
|
|
1613
|
-
const
|
|
1614
|
-
if (!
|
|
1615
|
-
const
|
|
1616
|
-
|
|
2157
|
+
return pe(() => {
|
|
2158
|
+
const a = e.current;
|
|
2159
|
+
if (!a || typeof ResizeObserver > "u") return;
|
|
2160
|
+
const i = new ResizeObserver(() => {
|
|
2161
|
+
o();
|
|
1617
2162
|
});
|
|
1618
|
-
return
|
|
1619
|
-
}, [
|
|
2163
|
+
return i.observe(a), () => i.disconnect();
|
|
2164
|
+
}, [o]), I(() => {
|
|
1620
2165
|
if (typeof window > "u") return;
|
|
1621
|
-
const
|
|
1622
|
-
|
|
2166
|
+
const a = () => {
|
|
2167
|
+
o();
|
|
1623
2168
|
};
|
|
1624
|
-
return window.addEventListener("resize",
|
|
1625
|
-
}, [
|
|
2169
|
+
return window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
2170
|
+
}, [o]), {
|
|
1626
2171
|
contentRef: e,
|
|
1627
2172
|
height: t,
|
|
1628
|
-
measureHeight:
|
|
2173
|
+
measureHeight: o,
|
|
1629
2174
|
setHeight: r
|
|
1630
2175
|
};
|
|
1631
|
-
},
|
|
2176
|
+
}, uo = ({ onClose: e = () => {
|
|
1632
2177
|
}, onCopy: t }) => {
|
|
1633
|
-
const { view: r, setView: n, copied:
|
|
1634
|
-
current:
|
|
1635
|
-
previous:
|
|
1636
|
-
isTransitioning:
|
|
1637
|
-
} =
|
|
1638
|
-
current:
|
|
1639
|
-
previous:
|
|
1640
|
-
isTransitioning:
|
|
1641
|
-
} =
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
2178
|
+
const { view: r, setView: n, copied: o, setCopied: a } = so(), { uri: i } = _e(), { status: s, provider: c } = Ce(), { contentRef: u, height: d, measureHeight: f } = co(), {
|
|
2179
|
+
current: _,
|
|
2180
|
+
previous: g,
|
|
2181
|
+
isTransitioning: k
|
|
2182
|
+
} = xt(r), {
|
|
2183
|
+
current: T,
|
|
2184
|
+
previous: p,
|
|
2185
|
+
isTransitioning: O
|
|
2186
|
+
} = xt(s), R = K(() => n("settings"), [n]), m = Q(r).with("start", () => "Connect Wallet").with("settings", () => "Settings").exhaustive();
|
|
2187
|
+
lo(e), I(() => {
|
|
2188
|
+
s === ae.CONNECTED && e();
|
|
2189
|
+
}, [s, e]);
|
|
2190
|
+
const ve = K(async () => {
|
|
2191
|
+
i && await Hn(i) && a(!0);
|
|
2192
|
+
}, [i, a]), B = G(!0), Y = G(), oe = G(void 0), [Ie, he] = D(!1), J = G();
|
|
2193
|
+
pe(() => {
|
|
2194
|
+
if (u.current)
|
|
2195
|
+
return B.current ? (Y.current && window.clearTimeout(Y.current), Y.current = window.setTimeout(() => {
|
|
2196
|
+
u.current && (f(void 0, !0), B.current = !1);
|
|
2197
|
+
}, 0)) : f(), () => {
|
|
2198
|
+
Y.current && window.clearTimeout(Y.current);
|
|
1652
2199
|
};
|
|
1653
|
-
}, [
|
|
1654
|
-
|
|
1655
|
-
}, 200)),
|
|
1656
|
-
|
|
1657
|
-
}), [
|
|
1658
|
-
const
|
|
2200
|
+
}, [f, T, _]), I(() => (oe.current !== void 0 && d !== oe.current && d > 0 && oe.current > 0 && Math.abs(d - oe.current) > 0.5 && (he(!0), J.current && window.clearTimeout(J.current), J.current = window.setTimeout(() => {
|
|
2201
|
+
he(!1), J.current = void 0;
|
|
2202
|
+
}, 200)), oe.current = d, () => {
|
|
2203
|
+
J.current && window.clearTimeout(J.current);
|
|
2204
|
+
}), [d]);
|
|
2205
|
+
const ge = () => {
|
|
1659
2206
|
c?.closeSession();
|
|
1660
|
-
}, Ve =
|
|
1661
|
-
}).with({ view: "start" }, () =>
|
|
1662
|
-
|
|
1663
|
-
}),
|
|
1664
|
-
|
|
1665
|
-
/* @__PURE__ */
|
|
2207
|
+
}, Ve = Q({ view: r, status: s }).with({ view: "start", status: ae.STANDBY }, () => {
|
|
2208
|
+
}).with({ view: "start" }, () => ge).with({ view: "settings" }, () => () => n("start")).otherwise(() => () => {
|
|
2209
|
+
ge(), e();
|
|
2210
|
+
}), Ne = (b) => Q(b).with("start", () => /* @__PURE__ */ l(Wn, { onSettings: R })).with("settings", () => /* @__PURE__ */ l(io, {})).otherwise(() => /* @__PURE__ */ l(Je, { state: b })), y = () => /* @__PURE__ */ h("div", { className: "modal-transition__container", children: [
|
|
2211
|
+
g && /* @__PURE__ */ l("div", { className: "modal-transition__layer modal-transition__layer--outgoing", children: Ne(g) }),
|
|
2212
|
+
/* @__PURE__ */ l(
|
|
1666
2213
|
"div",
|
|
1667
2214
|
{
|
|
1668
|
-
className:
|
|
2215
|
+
className: ie(
|
|
1669
2216
|
"modal-transition__layer",
|
|
1670
|
-
|
|
2217
|
+
k && "modal-transition__layer--incoming"
|
|
1671
2218
|
),
|
|
1672
|
-
children:
|
|
2219
|
+
children: Ne(_)
|
|
1673
2220
|
}
|
|
1674
2221
|
)
|
|
1675
|
-
] }),
|
|
1676
|
-
|
|
2222
|
+
] }), x = (b) => Q(b).with(ae.STANDBY, () => y()).with(
|
|
2223
|
+
Rt.union(
|
|
2224
|
+
ae.CREATING,
|
|
2225
|
+
ae.CONNECTING,
|
|
2226
|
+
ae.CONNECTED
|
|
2227
|
+
),
|
|
2228
|
+
() => /* @__PURE__ */ l(Kr, { onClose: e, onCopy: t || ve })
|
|
2229
|
+
).otherwise((S) => /* @__PURE__ */ l(Je, { state: S || "unknown status" }));
|
|
2230
|
+
$e("view", r);
|
|
2231
|
+
const w = {
|
|
2232
|
+
background: "var(--lv-overlay-background, rgba(0,0,0,0.3))",
|
|
2233
|
+
backdropFilter: "var(--lv-overlay-backdrop-filter, blur(4px))"
|
|
2234
|
+
}, N = {
|
|
2235
|
+
background: "var(--lv-body-background)",
|
|
2236
|
+
color: "var(--lv-body-color, var(--lv-text-primary))",
|
|
2237
|
+
borderRadius: "var(--lv-border-radius, 16px)",
|
|
2238
|
+
boxShadow: "var(--lv-modal-shadow, 0px 12px 32px rgba(0,0,0,0.25))"
|
|
2239
|
+
};
|
|
2240
|
+
return /* @__PURE__ */ l(
|
|
1677
2241
|
"div",
|
|
1678
2242
|
{
|
|
1679
|
-
className: "fixed inset-0 z-
|
|
2243
|
+
className: "fixed inset-0 z-10000 flex animate-[bg-in_0.15s_ease-in-out] items-end justify-center font-sans md:items-center lg:p-4",
|
|
1680
2244
|
onClick: e,
|
|
1681
2245
|
role: "presentation",
|
|
1682
2246
|
"data-openlv-modal-root": !0,
|
|
1683
|
-
|
|
2247
|
+
style: w,
|
|
2248
|
+
children: /* @__PURE__ */ h(
|
|
1684
2249
|
"div",
|
|
1685
2250
|
{
|
|
1686
|
-
className:
|
|
1687
|
-
"relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out]
|
|
1688
|
-
|
|
2251
|
+
className: ie(
|
|
2252
|
+
"relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out",
|
|
2253
|
+
Ie || p ? "overflow-hidden" : void 0
|
|
1689
2254
|
),
|
|
1690
2255
|
role: "dialog",
|
|
1691
2256
|
"aria-modal": "true",
|
|
1692
|
-
"aria-label":
|
|
1693
|
-
onClick: (
|
|
1694
|
-
style:
|
|
2257
|
+
"aria-label": m,
|
|
2258
|
+
onClick: (b) => b.stopPropagation(),
|
|
2259
|
+
style: {
|
|
2260
|
+
...typeof d == "number" && d > 0 ? { height: `${d}px` } : {},
|
|
2261
|
+
...N
|
|
2262
|
+
},
|
|
1695
2263
|
children: [
|
|
1696
|
-
/* @__PURE__ */
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
|
|
2264
|
+
/* @__PURE__ */ h("div", { ref: u, children: [
|
|
2265
|
+
/* @__PURE__ */ l(
|
|
2266
|
+
Qn,
|
|
1699
2267
|
{
|
|
1700
|
-
title:
|
|
2268
|
+
title: m,
|
|
1701
2269
|
view: r,
|
|
1702
2270
|
onClose: e,
|
|
1703
2271
|
onBack: Ve
|
|
1704
2272
|
}
|
|
1705
2273
|
),
|
|
1706
|
-
/* @__PURE__ */
|
|
1707
|
-
|
|
1708
|
-
/* @__PURE__ */
|
|
2274
|
+
/* @__PURE__ */ h("div", { className: "modal-transition__container", children: [
|
|
2275
|
+
p && /* @__PURE__ */ l("div", { className: "modal-transition__layer modal-transition__layer--outgoing absolute", children: /* @__PURE__ */ l("div", { className: "flex flex-col text-center", children: x(p) }) }),
|
|
2276
|
+
/* @__PURE__ */ l(
|
|
1709
2277
|
"div",
|
|
1710
2278
|
{
|
|
1711
|
-
className:
|
|
2279
|
+
className: ie(
|
|
1712
2280
|
"modal-transition__layer",
|
|
1713
|
-
|
|
2281
|
+
O && "modal-transition__layer--incoming"
|
|
1714
2282
|
),
|
|
1715
|
-
children: /* @__PURE__ */
|
|
2283
|
+
children: /* @__PURE__ */ l("div", { className: "flex flex-col text-center", children: x(T) })
|
|
1716
2284
|
}
|
|
1717
2285
|
)
|
|
1718
2286
|
] }),
|
|
1719
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ l(Jn, {})
|
|
1720
2288
|
] }),
|
|
1721
|
-
/* @__PURE__ */
|
|
2289
|
+
/* @__PURE__ */ l(
|
|
1722
2290
|
"div",
|
|
1723
2291
|
{
|
|
1724
|
-
className:
|
|
2292
|
+
className: ie(
|
|
1725
2293
|
"absolute top-5 right-5 rounded-lg bg-blue-500 px-4 py-3 font-medium text-sm text-white transition-all",
|
|
1726
|
-
|
|
2294
|
+
o ? "translate-x-0 opacity-100" : "translate-x-full opacity-0"
|
|
1727
2295
|
),
|
|
1728
2296
|
children: "📋 Connection URL copied to clipboard!"
|
|
1729
2297
|
}
|
|
@@ -1733,36 +2301,38 @@ const Kn = ({
|
|
|
1733
2301
|
)
|
|
1734
2302
|
}
|
|
1735
2303
|
);
|
|
1736
|
-
}, St = '/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@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-x-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}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,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-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-800:oklch(27.9% .041 260.031);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--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-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-black:#000;--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;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--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);--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius)}}@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,ui-sans-serif,system-ui,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{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{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.right-5{right:calc(var(--spacing)*5)}.bottom-0{bottom:calc(var(--spacing)*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)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.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-11{height:calc(var(--spacing)*11)}.h-18{height:calc(var(--spacing)*18)}.h-38{height:calc(var(--spacing)*38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.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-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}.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:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;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}.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}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}: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-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)))}.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-t-radius{border-top-left-radius:var(--radius-radius);border-top-right-radius:var(--radius-radius)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.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-neutral-200{border-color:var(--color-neutral-200)}.border-t-transparent{border-top-color:#0000}.bg-\\[\\#F4F5F6\\]{background-color:#f4f5f6}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-body-background{background-color:var(--color-body-background)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.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-neutral-100{background-color:var(--color-neutral-100)}.bg-white{background-color:var(--color-white)}.p-1{padding:calc(var(--spacing)*1)}.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:calc(var(--spacing)*1)}.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:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-0\\.5{padding-right:calc(var(--spacing)*.5)}.pr-3{padding-right:calc(var(--spacing)*3)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.font-sans{font-family:var(--font-sans)}.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)}.text-blue-600{color:var(--color-blue-600)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-slate-800{color:var(--color-slate-800)}.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-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-\\[200ms\\]{--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-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.last\\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}}.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-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)}@media (min-width:48rem){.md\\:items-center{align-items:center}.md\\:rounded-b-radius{border-bottom-right-radius:var(--radius-radius);border-bottom-left-radius:var(--radius-radius)}}@media (min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing)*4)}}}@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:2;animation:.2s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{animation:.2s ease-out forwards modal-transition-in}@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(1.05)}}@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-x-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}@keyframes spin{to{transform:rotate(360deg)}}', ai = async (e, t) => {
|
|
2304
|
+
}, fo = '@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-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-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,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;--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,ui-sans-serif,system-ui,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{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:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.right-5{right:calc(var(--spacing)*5)}.bottom-0{bottom:calc(var(--spacing)*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)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.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-11{height:calc(var(--spacing)*11)}.h-18{height:calc(var(--spacing)*18)}.h-38{height:calc(var(--spacing)*38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.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-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}.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:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;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}.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}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}: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)))}.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-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.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-\\[var\\(--lv-button-primary-border\\)\\]{border-color:var(--lv-button-primary-border)}.border-\\[var\\(--lv-button-secondary-border\\,var\\(--lv-button-secondary-background\\)\\)\\]{border-color:var(--lv-button-secondary-border,var(--lv-button-secondary-background))}.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-button-secondary-background\\){background-color:var(--lv-button-secondary-background)}.bg-\\[var\\(--lv-button-primary-background\\)\\]{background-color:var(--lv-button-primary-background)}.bg-\\[var\\(--lv-button-secondary-background\\)\\]{background-color:var(--lv-button-secondary-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)}.p-1{padding:calc(var(--spacing)*1)}.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:calc(var(--spacing)*1)}.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:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-0\\.5{padding-right:calc(var(--spacing)*.5)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-1{padding-left:calc(var(--spacing)*1)}.text-center{text-align:center}.font-sans{font-family:var(--font-sans)}.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-\\[var\\(--lv-button-primary-color\\)\\]{color:var(--lv-button-primary-color)}.text-\\[var\\(--lv-button-secondary-color\\)\\]{color:var(--lv-button-secondary-color)}.text-\\[var\\(--lv-text-muted\\)\\]{color:var(--lv-text-muted)}.text-\\[var\\(--lv-text-primary\\)\\]{color:var(--lv-text-primary)}.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,)}.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))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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\\:border-l-0:first-child{border-left-style:var(--tw-border-style);border-left-width:0}@media(hover:hover){.hover\\:\\[background-color\\:var\\(--lv-button-tertiary-hoverBackground\\)\\]:hover{background-color:var(--lv-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-button-secondary-hoverBackground\\):hover{background-color:var(--lv-button-secondary-hoverBackground)}.hover\\:bg-\\[var\\(--lv-button-primary-background-hover\\)\\]:hover{background-color:var(--lv-button-primary-background-hover)}.hover\\:bg-\\[var\\(--lv-button-primary-hoverBackground\\,var\\(--lv-button-primary-background\\)\\)\\]:hover{background-color:var(--lv-button-primary-hoverBackground,var(--lv-button-primary-background))}.hover\\:bg-\\[var\\(--lv-button-secondary-background\\)\\]:hover{background-color:var(--lv-button-secondary-background)}.hover\\:bg-\\[var\\(--lv-button-secondary-hoverBackground\\,var\\(--lv-button-secondary-background\\)\\)\\]:hover{background-color:var(--lv-button-secondary-hoverBackground,var(--lv-button-secondary-background))}.hover\\:bg-\\[var\\(--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-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-button-secondary-activeBackground\\):active{background-color:var(--lv-button-secondary-activeBackground)}.active\\:bg-\\[var\\(--lv-button-primary-activeBackground\\,var\\(--lv-button-primary-hoverBackground\\,var\\(--lv-button-primary-background\\)\\)\\)\\]:active{background-color:var(--lv-button-primary-activeBackground,var(--lv-button-primary-hoverBackground,var(--lv-button-primary-background)))}.active\\:bg-\\[var\\(--lv-button-secondary-activeBackground\\,var\\(--lv-button-secondary-hoverBackground\\,var\\(--lv-button-secondary-background\\)\\)\\)\\]:active{background-color:var(--lv-button-secondary-activeBackground,var(--lv-button-secondary-hoverBackground,var(--lv-button-secondary-background)))}.active\\:bg-\\[var\\(--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-\\[var\\(--lv-button-primary-disabledBackground\\,var\\(--lv-button-primary-background\\)\\)\\]:disabled{background-color:var(--lv-button-primary-disabledBackground,var(--lv-button-primary-background))}.disabled\\:bg-\\[var\\(--lv-button-secondary-disabledBackground\\,var\\(--lv-button-secondary-background\\)\\)\\]:disabled{background-color:var(--lv-button-secondary-disabledBackground,var(--lv-button-secondary-background))}.disabled\\:text-\\[var\\(--lv-button-primary-disabledColor\\,var\\(--lv-button-primary-color\\)\\)\\]:disabled{color:var(--lv-button-primary-disabledColor,var(--lv-button-primary-color))}.disabled\\:text-\\[var\\(--lv-button-secondary-disabledColor\\,var\\(--lv-button-secondary-color\\)\\)\\]:disabled{color:var(--lv-button-secondary-disabledColor,var(--lv-button-secondary-color))}.disabled\\:text-\\[var\\(--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\\:items-center{align-items:center}}@media(min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing)*4)}}}:root,:host{--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius)}.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:2;animation:.2s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{animation:.2s ease-out forwards modal-transition-in}[data-openlv-mode=dark] 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(1.05)}}@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-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-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}@keyframes spin{to{transform:rotate(360deg)}}', po = async (e, t) => {
|
|
1737
2305
|
if (e) {
|
|
1738
2306
|
if (e.querySelector("style[data-openlv-modal]"))
|
|
1739
2307
|
return;
|
|
1740
2308
|
const n = document.createElement("style");
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
${
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
2309
|
+
n.setAttribute("data-openlv-modal", "true");
|
|
2310
|
+
const { tokens: o } = It(
|
|
2311
|
+
t ?? De
|
|
2312
|
+
), a = jt(o), i = `:root, :host {
|
|
2313
|
+
${Object.entries(a).map(([s, c]) => `${s}: ${c};`).join(`
|
|
2314
|
+
`)}
|
|
2315
|
+
}`;
|
|
2316
|
+
n.textContent = `${i}
|
|
2317
|
+
${fo}`, e.appendChild(n);
|
|
1749
2318
|
}
|
|
1750
2319
|
};
|
|
1751
2320
|
class rr extends HTMLElement {
|
|
1752
|
-
constructor(r, n =
|
|
2321
|
+
constructor(r, n = De, o = () => {
|
|
2322
|
+
}) {
|
|
1753
2323
|
super();
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
this.provider = r, this.theme = n, this.shadow = this.attachShadow({ mode: "open" }),
|
|
2324
|
+
ce(this, "onClose");
|
|
2325
|
+
ce(this, "provider");
|
|
2326
|
+
ce(this, "theme");
|
|
2327
|
+
ce(this, "shadow");
|
|
2328
|
+
ce(this, "renderRequested", !1);
|
|
2329
|
+
this.provider = r, this.theme = n, this.onClose = o, this.shadow = this.attachShadow({ mode: "open" }), po(this.shadow, this.theme);
|
|
1760
2330
|
}
|
|
1761
2331
|
connectedCallback() {
|
|
1762
2332
|
this.requestRender();
|
|
1763
2333
|
}
|
|
1764
2334
|
disconnectedCallback() {
|
|
1765
|
-
|
|
2335
|
+
fe(null, this.shadow);
|
|
1766
2336
|
}
|
|
1767
2337
|
showModal() {
|
|
1768
2338
|
this.style.display = "block";
|
|
@@ -1776,39 +2346,40 @@ class rr extends HTMLElement {
|
|
|
1776
2346
|
}));
|
|
1777
2347
|
}
|
|
1778
2348
|
performRender() {
|
|
1779
|
-
|
|
1780
|
-
|
|
2349
|
+
fe(
|
|
2350
|
+
lr(Ir, {
|
|
1781
2351
|
onClose: this.onClose ?? (() => this.remove()),
|
|
1782
|
-
provider: this.provider
|
|
2352
|
+
provider: this.provider,
|
|
2353
|
+
theme: this.theme
|
|
1783
2354
|
}),
|
|
1784
2355
|
this.shadow
|
|
1785
2356
|
);
|
|
1786
2357
|
}
|
|
1787
2358
|
}
|
|
1788
|
-
const
|
|
1789
|
-
const [t, r] =
|
|
2359
|
+
const wo = (e = "idle") => {
|
|
2360
|
+
const [t, r] = D({
|
|
1790
2361
|
state: e
|
|
1791
|
-
}), n =
|
|
1792
|
-
(
|
|
2362
|
+
}), n = K(
|
|
2363
|
+
(i, s) => {
|
|
1793
2364
|
r((c) => ({
|
|
1794
2365
|
...c,
|
|
1795
|
-
state:
|
|
1796
|
-
...
|
|
2366
|
+
state: i,
|
|
2367
|
+
...s
|
|
1797
2368
|
}));
|
|
1798
2369
|
},
|
|
1799
2370
|
[]
|
|
1800
|
-
),
|
|
1801
|
-
r(
|
|
1802
|
-
}, []),
|
|
2371
|
+
), o = K((i) => {
|
|
2372
|
+
r(i);
|
|
2373
|
+
}, []), a = K(() => {
|
|
1803
2374
|
r({ state: "idle" });
|
|
1804
2375
|
}, []);
|
|
1805
2376
|
return {
|
|
1806
2377
|
connectionInfo: t,
|
|
1807
2378
|
updateState: n,
|
|
1808
|
-
updateConnectionInfo:
|
|
1809
|
-
reset:
|
|
2379
|
+
updateConnectionInfo: o,
|
|
2380
|
+
reset: a
|
|
1810
2381
|
};
|
|
1811
|
-
},
|
|
2382
|
+
}, vo = (e = "openlv-modal") => {
|
|
1812
2383
|
if (typeof window > "u")
|
|
1813
2384
|
return e;
|
|
1814
2385
|
const t = window.customElements;
|
|
@@ -1818,23 +2389,27 @@ const hi = (e = "idle") => {
|
|
|
1818
2389
|
), e) : (console.warn(
|
|
1819
2390
|
"OpenLV modal: custom elements are not supported in this environment."
|
|
1820
2391
|
), e);
|
|
1821
|
-
},
|
|
1822
|
-
const
|
|
1823
|
-
if (
|
|
1824
|
-
|
|
1825
|
-
const
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
2392
|
+
}, xo = (e, t = De, r) => {
|
|
2393
|
+
const n = document.querySelector("openlv-modal");
|
|
2394
|
+
if (n && n.remove(), !n) {
|
|
2395
|
+
vo();
|
|
2396
|
+
const o = new rr(e, t, () => {
|
|
2397
|
+
$e("modal closed"), o.remove(), r?.();
|
|
2398
|
+
});
|
|
2399
|
+
document.body.appendChild(o), o.showModal();
|
|
1829
2400
|
}
|
|
1830
2401
|
};
|
|
1831
2402
|
export {
|
|
1832
|
-
|
|
1833
|
-
|
|
2403
|
+
De as DEFAULT_THEME_CONFIG,
|
|
2404
|
+
uo as ModalRoot,
|
|
2405
|
+
Kn as OPENLV_ICON_128,
|
|
1834
2406
|
rr as OpenLVModalElement,
|
|
2407
|
+
jt as buildTheme,
|
|
1835
2408
|
rr as default,
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
2409
|
+
Dt as openlvThemeTokens,
|
|
2410
|
+
vo as registerOpenLVModal,
|
|
2411
|
+
It as resolveTheme,
|
|
2412
|
+
xo as triggerOpenModal,
|
|
2413
|
+
wo as useConnectionState
|
|
1839
2414
|
};
|
|
1840
2415
|
//# sourceMappingURL=index.es.js.map
|