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