@ohbug/extension-feedback 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Box.d.ts +1 -1
- package/dist/Box.d.ts.map +1 -1
- package/dist/Selector.d.ts +1 -1
- package/dist/Selector.d.ts.map +1 -1
- package/dist/assets.d.ts +1 -1
- package/dist/assets.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +275 -279
- package/dist/store.d.ts.map +1 -1
- package/package.json +16 -16
package/dist/index.mjs
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
const Pe = (e, t) => e === t,
|
|
1
|
+
const Pe = (e, t) => e === t, N = Symbol("solid-proxy"), he = Symbol("solid-track"), Y = {
|
|
2
2
|
equals: Pe
|
|
3
3
|
};
|
|
4
|
-
let
|
|
5
|
-
const
|
|
4
|
+
let we = xe;
|
|
5
|
+
const O = 1, J = 2, ye = {
|
|
6
6
|
owned: null,
|
|
7
7
|
cleanups: null,
|
|
8
8
|
context: null,
|
|
9
9
|
owner: null
|
|
10
10
|
};
|
|
11
|
-
var
|
|
12
|
-
let
|
|
13
|
-
function
|
|
14
|
-
const n = b, l =
|
|
11
|
+
var p = null;
|
|
12
|
+
let ie = null, b = null, $ = null, A = null, oe = 0;
|
|
13
|
+
function ze(e, t) {
|
|
14
|
+
const n = b, l = p, o = e.length === 0, s = t === void 0 ? l : t, i = o ? ye : {
|
|
15
15
|
owned: null,
|
|
16
16
|
cleanups: null,
|
|
17
|
-
context: null,
|
|
18
|
-
owner:
|
|
19
|
-
},
|
|
20
|
-
|
|
17
|
+
context: s ? s.context : null,
|
|
18
|
+
owner: s
|
|
19
|
+
}, r = o ? e : () => e(() => T(() => se(i)));
|
|
20
|
+
p = i, b = null;
|
|
21
21
|
try {
|
|
22
|
-
return
|
|
22
|
+
return B(r, !0);
|
|
23
23
|
} finally {
|
|
24
|
-
b = n,
|
|
24
|
+
b = n, p = l;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
t = t ? Object.assign({},
|
|
27
|
+
function V(e, t) {
|
|
28
|
+
t = t ? Object.assign({}, Y, t) : Y;
|
|
29
29
|
const n = {
|
|
30
30
|
value: e,
|
|
31
31
|
observers: null,
|
|
32
32
|
observerSlots: null,
|
|
33
33
|
comparator: t.equals || void 0
|
|
34
|
-
}, l = (o) => (typeof o == "function" && (o = o(n.value)),
|
|
35
|
-
return [
|
|
34
|
+
}, l = (o) => (typeof o == "function" && (o = o(n.value)), ve(n, o));
|
|
35
|
+
return [me.bind(n), l];
|
|
36
36
|
}
|
|
37
37
|
function D(e, t, n) {
|
|
38
|
-
const l =
|
|
39
|
-
|
|
38
|
+
const l = ae(e, t, !1, O);
|
|
39
|
+
K(l);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
const l =
|
|
44
|
-
(!n || !n.render) && (l.user = !0),
|
|
41
|
+
function $e(e, t, n) {
|
|
42
|
+
we = Be;
|
|
43
|
+
const l = ae(e, t, !1, O);
|
|
44
|
+
(!n || !n.render) && (l.user = !0), A ? A.push(l) : K(l);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
n = n ? Object.assign({},
|
|
48
|
-
const l =
|
|
49
|
-
return l.observers = null, l.observerSlots = null, l.comparator = n.equals || void 0,
|
|
46
|
+
function ge(e, t, n) {
|
|
47
|
+
n = n ? Object.assign({}, Y, n) : Y;
|
|
48
|
+
const l = ae(e, t, !0, 0);
|
|
49
|
+
return l.observers = null, l.observerSlots = null, l.comparator = n.equals || void 0, K(l), me.bind(l);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return
|
|
51
|
+
function je(e) {
|
|
52
|
+
return B(e, !1);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function T(e) {
|
|
55
55
|
if (b === null)
|
|
56
56
|
return e();
|
|
57
57
|
const t = b;
|
|
@@ -62,19 +62,19 @@ function N(e) {
|
|
|
62
62
|
b = t;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
return
|
|
65
|
+
function He(e) {
|
|
66
|
+
return p === null || (p.cleanups === null ? p.cleanups = [e] : p.cleanups.push(e)), e;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function re() {
|
|
69
69
|
return b;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function me() {
|
|
72
72
|
if (this.sources && this.state)
|
|
73
|
-
if (this.state ===
|
|
74
|
-
|
|
73
|
+
if (this.state === O)
|
|
74
|
+
K(this);
|
|
75
75
|
else {
|
|
76
76
|
const e = $;
|
|
77
|
-
$ = null,
|
|
77
|
+
$ = null, B(() => Z(this), !1), $ = e;
|
|
78
78
|
}
|
|
79
79
|
if (b) {
|
|
80
80
|
const e = this.observers ? this.observers.length : 0;
|
|
@@ -82,34 +82,34 @@ function $e() {
|
|
|
82
82
|
}
|
|
83
83
|
return this.value;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ve(e, t, n) {
|
|
86
86
|
let l = e.value;
|
|
87
|
-
return (!e.comparator || !e.comparator(l, t)) && (e.value = t, e.observers && e.observers.length &&
|
|
87
|
+
return (!e.comparator || !e.comparator(l, t)) && (e.value = t, e.observers && e.observers.length && B(() => {
|
|
88
88
|
for (let o = 0; o < e.observers.length; o += 1) {
|
|
89
|
-
const s = e.observers[o], i =
|
|
90
|
-
i &&
|
|
89
|
+
const s = e.observers[o], i = ie && ie.running;
|
|
90
|
+
i && ie.disposed.has(s), (i ? !s.tState : !s.state) && (s.pure ? $.push(s) : A.push(s), s.observers && Se(s)), i || (s.state = O);
|
|
91
91
|
}
|
|
92
92
|
if ($.length > 1e6)
|
|
93
93
|
throw $ = [], new Error();
|
|
94
94
|
}, !1)), t;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function K(e) {
|
|
97
97
|
if (!e.fn)
|
|
98
98
|
return;
|
|
99
|
-
|
|
100
|
-
const t =
|
|
101
|
-
b =
|
|
99
|
+
se(e);
|
|
100
|
+
const t = p, n = b, l = oe;
|
|
101
|
+
b = p = e, Me(e, e.value, l), b = n, p = t;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Me(e, t, n) {
|
|
104
104
|
let l;
|
|
105
105
|
try {
|
|
106
106
|
l = e.fn(t);
|
|
107
107
|
} catch (o) {
|
|
108
|
-
return e.pure && (e.state =
|
|
108
|
+
return e.pure && (e.state = O, e.owned && e.owned.forEach(se), e.owned = null), e.updatedAt = n + 1, Ee(o);
|
|
109
109
|
}
|
|
110
|
-
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ?
|
|
110
|
+
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? ve(e, l) : e.value = l, e.updatedAt = n);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ae(e, t, n, l = O, o) {
|
|
113
113
|
const s = {
|
|
114
114
|
fn: e,
|
|
115
115
|
state: l,
|
|
@@ -119,78 +119,78 @@ function ce(e, t, n, l = k, o) {
|
|
|
119
119
|
sourceSlots: null,
|
|
120
120
|
cleanups: null,
|
|
121
121
|
value: t,
|
|
122
|
-
owner:
|
|
123
|
-
context: null,
|
|
122
|
+
owner: p,
|
|
123
|
+
context: p ? p.context : null,
|
|
124
124
|
pure: n
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return p === null || p !== ye && (p.owned ? p.owned.push(s) : p.owned = [s]), s;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Q(e) {
|
|
129
129
|
if (e.state === 0)
|
|
130
130
|
return;
|
|
131
|
-
if (e.state ===
|
|
132
|
-
return
|
|
133
|
-
if (e.suspense &&
|
|
131
|
+
if (e.state === J)
|
|
132
|
+
return Z(e);
|
|
133
|
+
if (e.suspense && T(e.suspense.inFallback))
|
|
134
134
|
return e.suspense.effects.push(e);
|
|
135
135
|
const t = [e];
|
|
136
|
-
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt <
|
|
136
|
+
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < oe); )
|
|
137
137
|
e.state && t.push(e);
|
|
138
138
|
for (let n = t.length - 1; n >= 0; n--)
|
|
139
|
-
if (e = t[n], e.state ===
|
|
140
|
-
|
|
141
|
-
else if (e.state ===
|
|
139
|
+
if (e = t[n], e.state === O)
|
|
140
|
+
K(e);
|
|
141
|
+
else if (e.state === J) {
|
|
142
142
|
const l = $;
|
|
143
|
-
$ = null,
|
|
143
|
+
$ = null, B(() => Z(e, t[0]), !1), $ = l;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function B(e, t) {
|
|
147
147
|
if ($)
|
|
148
148
|
return e();
|
|
149
149
|
let n = !1;
|
|
150
|
-
t || ($ = []),
|
|
150
|
+
t || ($ = []), A ? n = !0 : A = [], oe++;
|
|
151
151
|
try {
|
|
152
152
|
const l = e();
|
|
153
|
-
return
|
|
153
|
+
return De(n), l;
|
|
154
154
|
} catch (l) {
|
|
155
|
-
n || (
|
|
155
|
+
n || (A = null), $ = null, Ee(l);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
if ($ && (
|
|
158
|
+
function De(e) {
|
|
159
|
+
if ($ && (xe($), $ = null), e)
|
|
160
160
|
return;
|
|
161
|
-
const t =
|
|
162
|
-
|
|
161
|
+
const t = A;
|
|
162
|
+
A = null, t.length && B(() => we(t), !1);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function xe(e) {
|
|
165
165
|
for (let t = 0; t < e.length; t++)
|
|
166
|
-
|
|
166
|
+
Q(e[t]);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Be(e) {
|
|
169
169
|
let t, n = 0;
|
|
170
170
|
for (t = 0; t < e.length; t++) {
|
|
171
171
|
const l = e[t];
|
|
172
|
-
l.user ? e[n++] = l :
|
|
172
|
+
l.user ? e[n++] = l : Q(l);
|
|
173
173
|
}
|
|
174
174
|
for (t = 0; t < n; t++)
|
|
175
|
-
|
|
175
|
+
Q(e[t]);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Z(e, t) {
|
|
178
178
|
e.state = 0;
|
|
179
179
|
for (let n = 0; n < e.sources.length; n += 1) {
|
|
180
180
|
const l = e.sources[n];
|
|
181
181
|
if (l.sources) {
|
|
182
182
|
const o = l.state;
|
|
183
|
-
o ===
|
|
183
|
+
o === O ? l !== t && (!l.updatedAt || l.updatedAt < oe) && Q(l) : o === J && Z(l, t);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Se(e) {
|
|
188
188
|
for (let t = 0; t < e.observers.length; t += 1) {
|
|
189
189
|
const n = e.observers[t];
|
|
190
|
-
n.state || (n.state =
|
|
190
|
+
n.state || (n.state = J, n.pure ? $.push(n) : A.push(n), n.observers && Se(n));
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function se(e) {
|
|
194
194
|
let t;
|
|
195
195
|
if (e.sources)
|
|
196
196
|
for (; e.sources.length; ) {
|
|
@@ -202,7 +202,7 @@ function ne(e) {
|
|
|
202
202
|
}
|
|
203
203
|
if (e.owned) {
|
|
204
204
|
for (t = e.owned.length - 1; t >= 0; t--)
|
|
205
|
-
|
|
205
|
+
se(e.owned[t]);
|
|
206
206
|
e.owned = null;
|
|
207
207
|
}
|
|
208
208
|
if (e.cleanups) {
|
|
@@ -210,38 +210,38 @@ function ne(e) {
|
|
|
210
210
|
e.cleanups[t]();
|
|
211
211
|
e.cleanups = null;
|
|
212
212
|
}
|
|
213
|
-
e.state = 0
|
|
213
|
+
e.state = 0;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Fe(e) {
|
|
216
216
|
return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
|
|
217
217
|
cause: e
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
throw
|
|
220
|
+
function Ee(e, t = p) {
|
|
221
|
+
throw Fe(e);
|
|
222
222
|
}
|
|
223
223
|
function x(e, t) {
|
|
224
|
-
return
|
|
224
|
+
return T(() => e(t || {}));
|
|
225
225
|
}
|
|
226
|
-
const
|
|
227
|
-
function
|
|
228
|
-
const t = e.keyed, n =
|
|
226
|
+
const Ue = (e) => `Stale read from <${e}>.`;
|
|
227
|
+
function G(e) {
|
|
228
|
+
const t = e.keyed, n = ge(() => e.when, void 0, {
|
|
229
229
|
equals: (l, o) => t ? l === o : !l == !o
|
|
230
230
|
});
|
|
231
|
-
return
|
|
231
|
+
return ge(() => {
|
|
232
232
|
const l = n();
|
|
233
233
|
if (l) {
|
|
234
234
|
const o = e.children;
|
|
235
|
-
return typeof o == "function" && o.length > 0 ?
|
|
236
|
-
if (!
|
|
237
|
-
throw
|
|
235
|
+
return typeof o == "function" && o.length > 0 ? T(() => o(t ? l : () => {
|
|
236
|
+
if (!T(n))
|
|
237
|
+
throw Ue("Show");
|
|
238
238
|
return e.when;
|
|
239
239
|
})) : o;
|
|
240
240
|
}
|
|
241
241
|
return e.fallback;
|
|
242
242
|
}, void 0, void 0);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Re(e, t, n) {
|
|
245
245
|
let l = n.length, o = t.length, s = l, i = 0, r = 0, c = t[o - 1].nextSibling, h = null;
|
|
246
246
|
for (; i < o || r < s; ) {
|
|
247
247
|
if (t[i] === n[r]) {
|
|
@@ -270,13 +270,13 @@ function Ue(e, t, n) {
|
|
|
270
270
|
const u = h.get(t[i]);
|
|
271
271
|
if (u != null)
|
|
272
272
|
if (r < u && u < s) {
|
|
273
|
-
let g = i, m = 1,
|
|
274
|
-
for (; ++g < o && g < s && !((
|
|
273
|
+
let g = i, m = 1, S;
|
|
274
|
+
for (; ++g < o && g < s && !((S = h.get(t[g])) == null || S !== u + m); )
|
|
275
275
|
m++;
|
|
276
276
|
if (m > u - r) {
|
|
277
|
-
const
|
|
277
|
+
const L = t[i];
|
|
278
278
|
for (; r < u; )
|
|
279
|
-
e.insertBefore(n[r++],
|
|
279
|
+
e.insertBefore(n[r++], L);
|
|
280
280
|
} else
|
|
281
281
|
e.replaceChild(n[r++], t[i++]);
|
|
282
282
|
} else
|
|
@@ -286,42 +286,42 @@ function Ue(e, t, n) {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
const
|
|
290
|
-
function
|
|
289
|
+
const be = "_$DX_DELEGATE";
|
|
290
|
+
function Ve(e, t, n, l = {}) {
|
|
291
291
|
let o;
|
|
292
|
-
return
|
|
292
|
+
return ze((s) => {
|
|
293
293
|
o = s, t === document ? e() : v(t, e(), t.firstChild ? null : void 0, n);
|
|
294
294
|
}, l.owner), () => {
|
|
295
295
|
o(), t.textContent = "";
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function k(e, t, n) {
|
|
299
299
|
let l;
|
|
300
300
|
const o = () => {
|
|
301
301
|
const i = document.createElement("template");
|
|
302
302
|
return i.innerHTML = e, n ? i.content.firstChild.firstChild : i.content.firstChild;
|
|
303
|
-
}, s = t ? () =>
|
|
303
|
+
}, s = t ? () => T(() => document.importNode(l || (l = o()), !0)) : () => (l || (l = o())).cloneNode(!0);
|
|
304
304
|
return s.cloneNode = s, s;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
const n = t[
|
|
306
|
+
function _e(e, t = window.document) {
|
|
307
|
+
const n = t[be] || (t[be] = /* @__PURE__ */ new Set());
|
|
308
308
|
for (let l = 0, o = e.length; l < o; l++) {
|
|
309
309
|
const s = e[l];
|
|
310
|
-
n.has(s) || (n.add(s), t.addEventListener(s,
|
|
310
|
+
n.has(s) || (n.add(s), t.addEventListener(s, Ie));
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Ge(e, t) {
|
|
314
314
|
t == null ? e.removeAttribute("class") : e.className = t;
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
return
|
|
316
|
+
function U(e, t, n) {
|
|
317
|
+
return T(() => e(t, n));
|
|
318
318
|
}
|
|
319
319
|
function v(e, t, n, l) {
|
|
320
320
|
if (n !== void 0 && !l && (l = []), typeof t != "function")
|
|
321
|
-
return
|
|
322
|
-
D((o) =>
|
|
321
|
+
return ee(e, t, l, n);
|
|
322
|
+
D((o) => ee(e, t(), o, n), l);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Ie(e) {
|
|
325
325
|
const t = `$$${e.type}`;
|
|
326
326
|
let n = e.composedPath && e.composedPath()[0] || e.target;
|
|
327
327
|
for (e.target !== n && Object.defineProperty(e, "target", {
|
|
@@ -342,7 +342,7 @@ function Ge(e) {
|
|
|
342
342
|
n = n._$host || n.parentNode || n.host;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function ee(e, t, n, l, o) {
|
|
346
346
|
for (; typeof n == "function"; )
|
|
347
347
|
n = n();
|
|
348
348
|
if (t === n)
|
|
@@ -351,34 +351,34 @@ function Q(e, t, n, l, o) {
|
|
|
351
351
|
if (e = i && n[0] && n[0].parentNode || e, s === "string" || s === "number")
|
|
352
352
|
if (s === "number" && (t = t.toString()), i) {
|
|
353
353
|
let r = n[0];
|
|
354
|
-
r && r.nodeType === 3 ? r.data = t : r = document.createTextNode(t), n =
|
|
354
|
+
r && r.nodeType === 3 ? r.data = t : r = document.createTextNode(t), n = z(e, n, l, r);
|
|
355
355
|
} else
|
|
356
356
|
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
357
357
|
else if (t == null || s === "boolean")
|
|
358
|
-
n =
|
|
358
|
+
n = z(e, n, l);
|
|
359
359
|
else {
|
|
360
360
|
if (s === "function")
|
|
361
361
|
return D(() => {
|
|
362
362
|
let r = t();
|
|
363
363
|
for (; typeof r == "function"; )
|
|
364
364
|
r = r();
|
|
365
|
-
n =
|
|
365
|
+
n = ee(e, r, n, l);
|
|
366
366
|
}), () => n;
|
|
367
367
|
if (Array.isArray(t)) {
|
|
368
368
|
const r = [], c = n && Array.isArray(n);
|
|
369
|
-
if (
|
|
370
|
-
return D(() => n =
|
|
369
|
+
if (ce(r, t, n, o))
|
|
370
|
+
return D(() => n = ee(e, r, n, l, !0)), () => n;
|
|
371
371
|
if (r.length === 0) {
|
|
372
|
-
if (n =
|
|
372
|
+
if (n = z(e, n, l), i)
|
|
373
373
|
return n;
|
|
374
374
|
} else
|
|
375
|
-
c ? n.length === 0 ?
|
|
375
|
+
c ? n.length === 0 ? pe(e, r, l) : Re(e, n, r) : (n && z(e), pe(e, r));
|
|
376
376
|
n = r;
|
|
377
377
|
} else if (t.nodeType) {
|
|
378
378
|
if (Array.isArray(n)) {
|
|
379
379
|
if (i)
|
|
380
|
-
return n =
|
|
381
|
-
|
|
380
|
+
return n = z(e, n, l, t);
|
|
381
|
+
z(e, n, null, t);
|
|
382
382
|
} else
|
|
383
383
|
n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
|
384
384
|
n = t;
|
|
@@ -387,7 +387,7 @@ function Q(e, t, n, l, o) {
|
|
|
387
387
|
}
|
|
388
388
|
return n;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function ce(e, t, n, l) {
|
|
391
391
|
let o = !1;
|
|
392
392
|
for (let s = 0, i = t.length; s < i; s++) {
|
|
393
393
|
let r = t[s], c = n && n[s], h;
|
|
@@ -395,12 +395,12 @@ function oe(e, t, n, l) {
|
|
|
395
395
|
if ((h = typeof r) == "object" && r.nodeType)
|
|
396
396
|
e.push(r);
|
|
397
397
|
else if (Array.isArray(r))
|
|
398
|
-
o =
|
|
398
|
+
o = ce(e, r, c) || o;
|
|
399
399
|
else if (h === "function")
|
|
400
400
|
if (l) {
|
|
401
401
|
for (; typeof r == "function"; )
|
|
402
402
|
r = r();
|
|
403
|
-
o =
|
|
403
|
+
o = ce(e, Array.isArray(r) ? r : [r], Array.isArray(c) ? c : [c]) || o;
|
|
404
404
|
} else
|
|
405
405
|
e.push(r), o = !0;
|
|
406
406
|
else {
|
|
@@ -410,11 +410,11 @@ function oe(e, t, n, l) {
|
|
|
410
410
|
}
|
|
411
411
|
return o;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function pe(e, t, n = null) {
|
|
414
414
|
for (let l = 0, o = t.length; l < o; l++)
|
|
415
415
|
e.insertBefore(t[l], n);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function z(e, t, n, l) {
|
|
418
418
|
if (n === void 0)
|
|
419
419
|
return e.textContent = "";
|
|
420
420
|
const o = l || document.createTextNode("");
|
|
@@ -432,7 +432,7 @@ function L(e, t, n, l) {
|
|
|
432
432
|
e.insertBefore(o, n);
|
|
433
433
|
return [o];
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function qe(e, t, ...n) {
|
|
436
436
|
if (t === void 0)
|
|
437
437
|
throw new Error("`Ohbug warning(condition, format, ...args)` requires a warning message argument");
|
|
438
438
|
if (!e) {
|
|
@@ -441,38 +441,38 @@ function Ie(e, t, ...n) {
|
|
|
441
441
|
throw new Error(`Ohbug ${o}`);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var
|
|
445
|
-
function Ke() {
|
|
446
|
-
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : qe;
|
|
447
|
-
}
|
|
444
|
+
var Ke = {};
|
|
448
445
|
function We() {
|
|
449
|
-
|
|
450
|
-
|
|
446
|
+
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : Ke;
|
|
447
|
+
}
|
|
448
|
+
function Xe() {
|
|
449
|
+
const e = We();
|
|
450
|
+
return qe(
|
|
451
451
|
!!e.__OHBUG__,
|
|
452
452
|
"Failed to get `OhbugObject`, please confirm if `Ohbug.setup`"
|
|
453
453
|
), e.__OHBUG__;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
e.parentNode && (t.push(e.parentNode),
|
|
455
|
+
function Ae(e, t) {
|
|
456
|
+
e.parentNode && (t.push(e.parentNode), Ae(e.parentNode, t));
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Ye(e) {
|
|
459
459
|
const t = [];
|
|
460
|
-
return t.push(e),
|
|
460
|
+
return t.push(e), Ae(e, t), t;
|
|
461
461
|
}
|
|
462
|
-
var
|
|
462
|
+
var Je = (e) => {
|
|
463
463
|
const t = e.target || e.srcElement;
|
|
464
464
|
let n = e.target || e.srcElement;
|
|
465
465
|
const l = [];
|
|
466
466
|
for (let i = 0; n && n.nodeType === Node.ELEMENT_NODE && n.nodeType !== Node.DOCUMENT_TYPE_NODE; n = n.previousSibling)
|
|
467
467
|
i && l.push(n), i += 1;
|
|
468
|
-
const o = typeof e.path > "u" ?
|
|
468
|
+
const o = typeof e.path > "u" ? Ye(e.target) : e.path, { outerHTML: s } = t;
|
|
469
469
|
return o.reverse().map((i) => (i.localName || "") + (i.id ? `#${i.id}` : "") + (i.className ? `.${i.className}` : "") + (i.outerHTML === s ? `:nth-child(${l.length})` : "")).filter((i) => !!i).join(" > ");
|
|
470
470
|
};
|
|
471
|
-
const
|
|
472
|
-
function
|
|
473
|
-
let t = e[
|
|
474
|
-
if (!t && (Object.defineProperty(e,
|
|
475
|
-
value: t = new Proxy(e,
|
|
471
|
+
const ue = Symbol("store-raw"), M = Symbol("store-node"), _ = Symbol("store-has"), ke = Symbol("store-self");
|
|
472
|
+
function Oe(e) {
|
|
473
|
+
let t = e[N];
|
|
474
|
+
if (!t && (Object.defineProperty(e, N, {
|
|
475
|
+
value: t = new Proxy(e, et)
|
|
476
476
|
}), !Array.isArray(e))) {
|
|
477
477
|
const n = Object.keys(e), l = Object.getOwnPropertyDescriptors(e);
|
|
478
478
|
for (let o = 0, s = n.length; o < s; o++) {
|
|
@@ -485,77 +485,73 @@ function Ae(e) {
|
|
|
485
485
|
}
|
|
486
486
|
return t;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function te(e) {
|
|
489
489
|
let t;
|
|
490
|
-
return e != null && typeof e == "object" && (e[
|
|
490
|
+
return e != null && typeof e == "object" && (e[N] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function I(e, t = /* @__PURE__ */ new Set()) {
|
|
493
493
|
let n, l, o, s;
|
|
494
|
-
if (n = e != null && e[
|
|
494
|
+
if (n = e != null && e[ue])
|
|
495
495
|
return n;
|
|
496
|
-
if (!
|
|
496
|
+
if (!te(e) || t.has(e))
|
|
497
497
|
return e;
|
|
498
498
|
if (Array.isArray(e)) {
|
|
499
499
|
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
500
500
|
for (let i = 0, r = e.length; i < r; i++)
|
|
501
|
-
o = e[i], (l =
|
|
501
|
+
o = e[i], (l = I(o, t)) !== o && (e[i] = l);
|
|
502
502
|
} else {
|
|
503
503
|
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
504
504
|
const i = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
|
|
505
505
|
for (let c = 0, h = i.length; c < h; c++)
|
|
506
|
-
s = i[c], !r[s].get && (o = e[s], (l =
|
|
506
|
+
s = i[c], !r[s].get && (o = e[s], (l = I(o, t)) !== o && (e[s] = l));
|
|
507
507
|
}
|
|
508
508
|
return e;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
let
|
|
512
|
-
return
|
|
513
|
-
value:
|
|
514
|
-
}),
|
|
510
|
+
function ne(e, t) {
|
|
511
|
+
let n = e[t];
|
|
512
|
+
return n || Object.defineProperty(e, t, {
|
|
513
|
+
value: n = /* @__PURE__ */ Object.create(null)
|
|
514
|
+
}), n;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
|
|
516
|
+
function q(e, t, n) {
|
|
517
|
+
if (e[t])
|
|
518
|
+
return e[t];
|
|
519
|
+
const [l, o] = V(n, {
|
|
520
|
+
equals: !1,
|
|
521
|
+
internal: !0
|
|
522
|
+
});
|
|
523
|
+
return l.$ = o, e[t] = l;
|
|
518
524
|
}
|
|
519
|
-
function
|
|
525
|
+
function Qe(e, t) {
|
|
520
526
|
const n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
521
|
-
return !n || n.get || !n.configurable || t ===
|
|
527
|
+
return !n || n.get || !n.configurable || t === N || t === M || (delete n.value, delete n.writable, n.get = () => e[N][t]), n;
|
|
522
528
|
}
|
|
523
|
-
function
|
|
524
|
-
|
|
525
|
-
const t = ue(e);
|
|
526
|
-
(t._ || (t._ = Oe()))();
|
|
527
|
-
}
|
|
529
|
+
function Ce(e) {
|
|
530
|
+
re() && q(ne(e, M), ke)();
|
|
528
531
|
}
|
|
529
|
-
function
|
|
530
|
-
return
|
|
532
|
+
function Ze(e) {
|
|
533
|
+
return Ce(e), Reflect.ownKeys(e);
|
|
531
534
|
}
|
|
532
|
-
|
|
533
|
-
const [t, n] = U(e, {
|
|
534
|
-
equals: !1,
|
|
535
|
-
internal: !0
|
|
536
|
-
});
|
|
537
|
-
return t.$ = n, t;
|
|
538
|
-
}
|
|
539
|
-
const Ze = {
|
|
535
|
+
const et = {
|
|
540
536
|
get(e, t, n) {
|
|
541
|
-
if (t ===
|
|
537
|
+
if (t === ue)
|
|
542
538
|
return e;
|
|
543
|
-
if (t ===
|
|
539
|
+
if (t === N)
|
|
544
540
|
return n;
|
|
545
|
-
if (t ===
|
|
546
|
-
return
|
|
547
|
-
const l =
|
|
541
|
+
if (t === he)
|
|
542
|
+
return Ce(e), n;
|
|
543
|
+
const l = ne(e, M), o = l[t];
|
|
548
544
|
let s = o ? o() : e[t];
|
|
549
|
-
if (t ===
|
|
545
|
+
if (t === M || t === _ || t === "__proto__")
|
|
550
546
|
return s;
|
|
551
547
|
if (!o) {
|
|
552
548
|
const i = Object.getOwnPropertyDescriptor(e, t);
|
|
553
|
-
|
|
549
|
+
re() && (typeof s != "function" || e.hasOwnProperty(t)) && !(i && i.get) && (s = q(l, t, s)());
|
|
554
550
|
}
|
|
555
|
-
return
|
|
551
|
+
return te(s) ? Oe(s) : s;
|
|
556
552
|
},
|
|
557
553
|
has(e, t) {
|
|
558
|
-
return t ===
|
|
554
|
+
return t === ue || t === N || t === he || t === M || t === _ || t === "__proto__" ? !0 : (re() && q(ne(e, _), t)(), t in e);
|
|
559
555
|
},
|
|
560
556
|
set() {
|
|
561
557
|
return !0;
|
|
@@ -563,54 +559,54 @@ const Ze = {
|
|
|
563
559
|
deleteProperty() {
|
|
564
560
|
return !0;
|
|
565
561
|
},
|
|
566
|
-
ownKeys:
|
|
567
|
-
getOwnPropertyDescriptor:
|
|
562
|
+
ownKeys: Ze,
|
|
563
|
+
getOwnPropertyDescriptor: Qe
|
|
568
564
|
};
|
|
569
|
-
function
|
|
565
|
+
function le(e, t, n, l = !1) {
|
|
570
566
|
if (!l && e[t] === n)
|
|
571
567
|
return;
|
|
572
568
|
const o = e[t], s = e.length;
|
|
573
|
-
n === void 0 ? delete e[t] : e[t] = n;
|
|
574
|
-
let i =
|
|
575
|
-
if ((r =
|
|
569
|
+
n === void 0 ? (delete e[t], e[_] && e[_][t] && o !== void 0 && e[_][t].$()) : (e[t] = n, e[_] && e[_][t] && o === void 0 && e[_][t].$());
|
|
570
|
+
let i = ne(e, M), r;
|
|
571
|
+
if ((r = q(i, t, o)) && r.$(() => n), Array.isArray(e) && e.length !== s) {
|
|
576
572
|
for (let c = e.length; c < s; c++)
|
|
577
573
|
(r = i[c]) && r.$();
|
|
578
|
-
(r =
|
|
574
|
+
(r = q(i, "length", s)) && r.$(e.length);
|
|
579
575
|
}
|
|
580
|
-
(r = i
|
|
576
|
+
(r = i[ke]) && r.$();
|
|
581
577
|
}
|
|
582
|
-
function
|
|
578
|
+
function Ne(e, t) {
|
|
583
579
|
const n = Object.keys(t);
|
|
584
580
|
for (let l = 0; l < n.length; l += 1) {
|
|
585
581
|
const o = n[l];
|
|
586
|
-
|
|
582
|
+
le(e, o, t[o]);
|
|
587
583
|
}
|
|
588
584
|
}
|
|
589
|
-
function
|
|
590
|
-
if (typeof t == "function" && (t = t(e)), t =
|
|
585
|
+
function tt(e, t) {
|
|
586
|
+
if (typeof t == "function" && (t = t(e)), t = I(t), Array.isArray(t)) {
|
|
591
587
|
if (e === t)
|
|
592
588
|
return;
|
|
593
589
|
let n = 0, l = t.length;
|
|
594
590
|
for (; n < l; n++) {
|
|
595
591
|
const o = t[n];
|
|
596
|
-
e[n] !== o &&
|
|
592
|
+
e[n] !== o && le(e, n, o);
|
|
597
593
|
}
|
|
598
|
-
|
|
594
|
+
le(e, "length", l);
|
|
599
595
|
} else
|
|
600
|
-
|
|
596
|
+
Ne(e, t);
|
|
601
597
|
}
|
|
602
|
-
function
|
|
598
|
+
function R(e, t, n = []) {
|
|
603
599
|
let l, o = e;
|
|
604
600
|
if (t.length > 1) {
|
|
605
601
|
l = t.shift();
|
|
606
602
|
const i = typeof l, r = Array.isArray(e);
|
|
607
603
|
if (Array.isArray(l)) {
|
|
608
604
|
for (let c = 0; c < l.length; c++)
|
|
609
|
-
|
|
605
|
+
R(e, [l[c]].concat(t), n);
|
|
610
606
|
return;
|
|
611
607
|
} else if (r && i === "function") {
|
|
612
608
|
for (let c = 0; c < e.length; c++)
|
|
613
|
-
l(e[c], c) &&
|
|
609
|
+
l(e[c], c) && R(e, [c].concat(t), n);
|
|
614
610
|
return;
|
|
615
611
|
} else if (r && i === "object") {
|
|
616
612
|
const {
|
|
@@ -619,31 +615,31 @@ function F(e, t, n = []) {
|
|
|
619
615
|
by: u = 1
|
|
620
616
|
} = l;
|
|
621
617
|
for (let g = c; g <= h; g += u)
|
|
622
|
-
|
|
618
|
+
R(e, [g].concat(t), n);
|
|
623
619
|
return;
|
|
624
620
|
} else if (t.length > 1) {
|
|
625
|
-
|
|
621
|
+
R(e[l], t, [l].concat(n));
|
|
626
622
|
return;
|
|
627
623
|
}
|
|
628
624
|
o = e[l], n = [l].concat(n);
|
|
629
625
|
}
|
|
630
626
|
let s = t[0];
|
|
631
|
-
typeof s == "function" && (s = s(o, n), s === o) || l === void 0 && s == null || (s =
|
|
627
|
+
typeof s == "function" && (s = s(o, n), s === o) || l === void 0 && s == null || (s = I(s), l === void 0 || te(o) && te(s) && !Array.isArray(s) ? Ne(o, s) : le(e, l, s));
|
|
632
628
|
}
|
|
633
|
-
function
|
|
634
|
-
const n =
|
|
629
|
+
function nt(...[e, t]) {
|
|
630
|
+
const n = I(e || {}), l = Array.isArray(n), o = Oe(n);
|
|
635
631
|
function s(...i) {
|
|
636
|
-
|
|
637
|
-
l && i.length === 1 ?
|
|
632
|
+
je(() => {
|
|
633
|
+
l && i.length === 1 ? tt(n, i[0]) : R(n, i);
|
|
638
634
|
});
|
|
639
635
|
}
|
|
640
636
|
return [o, s];
|
|
641
637
|
}
|
|
642
|
-
const [
|
|
643
|
-
const e =
|
|
638
|
+
const [w, H] = nt({ working: !1, selectedElement: null }), lt = /* @__PURE__ */ k('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path data-ohbug-selector d="M0 0h24v24H0z" fill="none"></path><path data-ohbug-selector d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z" fill="rgba(255,255,255,1)">'), ot = /* @__PURE__ */ k('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path data-ohbug-selector d="M0 0h24v24H0z" fill="none"></path><path data-ohbug-selector d="M3 3h2v2H3V3zm4 0h2v2H7V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm0 4h2v2h-2V7zM3 19h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V7zm7.667 4l1.036-1.555A1 1 0 0 1 12.535 9h2.93a1 1 0 0 1 .832.445L17.333 11H20a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h2.667zM9 19h10v-6h-2.737l-1.333-2h-1.86l-1.333 2H9v6zm5-1a2 2 0 1 1 0-4 2 2 0 0 1 0 4z">'), fe = () => lt(), st = () => (() => {
|
|
639
|
+
const e = ot();
|
|
644
640
|
return e.firstChild.nextSibling.style.setProperty("fill", "var(--color)"), e;
|
|
645
|
-
})(),
|
|
646
|
-
const [e, t] =
|
|
641
|
+
})(), it = /* @__PURE__ */ k('<div data-ohbug-selector class="bg-none border-solid border-4 border-blue-500 transition top-0 right-0 bottom-0 left-0 z-10 fixed pointer-events-none"><div data-ohbug-selector class="tips">Select element on the page<button class="btn-stop" type="button">'), rt = /* @__PURE__ */ k('<button data-ohbug-selector class="rounded-full border-none cursor-pointer flex bg-red-500 h-6 -top-3 -right-3 w-6 z-10 items-center justify-center absolute pointer-events-auto" type="button">'), ct = /* @__PURE__ */ k('<button data-ohbug-selector class="border-solid cursor-pointer font-semibold bg-red-500 border-4 border-red-500 -bottom-full text-white right-0 absolute pointer-events-auto" type="button">Change'), ut = /* @__PURE__ */ k('<div data-ohbug-selector class="-z-1 fixed"><div data-ohbug-selector class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none"></div><div data-ohbug-selector class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none"></div><div data-ohbug-selector class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none"></div><div data-ohbug-selector class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none"></div><div data-ohbug-selector>'), ft = () => {
|
|
642
|
+
const [e, t] = V();
|
|
647
643
|
let n, l, o, s, i;
|
|
648
644
|
const r = 2;
|
|
649
645
|
function c(f) {
|
|
@@ -654,7 +650,7 @@ const [p, j] = tt({ working: !1, selectedElement: null }), nt = /* @__PURE__ */
|
|
|
654
650
|
height: y,
|
|
655
651
|
top: E,
|
|
656
652
|
right: P,
|
|
657
|
-
bottom:
|
|
653
|
+
bottom: F,
|
|
658
654
|
left: d
|
|
659
655
|
} = f.getBoundingClientRect();
|
|
660
656
|
i == null || i.setAttribute("style", `
|
|
@@ -674,7 +670,7 @@ const [p, j] = tt({ working: !1, selectedElement: null }), nt = /* @__PURE__ */
|
|
|
674
670
|
left: ${P}px;
|
|
675
671
|
`), o == null || o.setAttribute("style", `
|
|
676
672
|
width: ${a + d}px;
|
|
677
|
-
top: ${
|
|
673
|
+
top: ${F}px;
|
|
678
674
|
bottom: 0;
|
|
679
675
|
left: 0;
|
|
680
676
|
`), s == null || s.setAttribute("style", `
|
|
@@ -693,7 +689,7 @@ const [p, j] = tt({ working: !1, selectedElement: null }), nt = /* @__PURE__ */
|
|
|
693
689
|
top: E,
|
|
694
690
|
left: P
|
|
695
691
|
} = f.getBoundingClientRect();
|
|
696
|
-
|
|
692
|
+
H({
|
|
697
693
|
selectedElement: f
|
|
698
694
|
}), i == null || i.setAttribute("style", `
|
|
699
695
|
width: ${a + r * 2}px;
|
|
@@ -704,7 +700,7 @@ const [p, j] = tt({ working: !1, selectedElement: null }), nt = /* @__PURE__ */
|
|
|
704
700
|
}
|
|
705
701
|
function u(f) {
|
|
706
702
|
var y;
|
|
707
|
-
|
|
703
|
+
H({
|
|
708
704
|
working: !0
|
|
709
705
|
});
|
|
710
706
|
const a = document.elementFromPoint(f.clientX, f.clientY);
|
|
@@ -718,87 +714,87 @@ const [p, j] = tt({ working: !1, selectedElement: null }), nt = /* @__PURE__ */
|
|
|
718
714
|
function m() {
|
|
719
715
|
document.removeEventListener("mousemove", u);
|
|
720
716
|
}
|
|
721
|
-
function
|
|
717
|
+
function S(f) {
|
|
722
718
|
var y;
|
|
723
719
|
const a = document.elementFromPoint(f.clientX, f.clientY);
|
|
724
|
-
if (((y = a == null ? void 0 : a.dataset) == null ? void 0 : y.ohbugSelector) !== void 0 || a.tagName === "HTML" ||
|
|
720
|
+
if (((y = a == null ? void 0 : a.dataset) == null ? void 0 : y.ohbugSelector) !== void 0 || a.tagName === "HTML" || w.selectedElement && w.working)
|
|
725
721
|
return !1;
|
|
726
722
|
t(a), h(e()), m();
|
|
727
723
|
}
|
|
728
|
-
function
|
|
729
|
-
document.addEventListener("mousedown",
|
|
724
|
+
function L() {
|
|
725
|
+
document.addEventListener("mousedown", S);
|
|
730
726
|
}
|
|
731
|
-
function
|
|
732
|
-
document.removeEventListener("mousedown",
|
|
727
|
+
function W() {
|
|
728
|
+
document.removeEventListener("mousedown", S);
|
|
733
729
|
}
|
|
734
|
-
function
|
|
735
|
-
t(null), m(),
|
|
730
|
+
function C() {
|
|
731
|
+
t(null), m(), W(), H({
|
|
736
732
|
working: !1,
|
|
737
733
|
selectedElement: null
|
|
738
734
|
});
|
|
739
735
|
}
|
|
740
|
-
function
|
|
741
|
-
|
|
736
|
+
function X() {
|
|
737
|
+
H({
|
|
742
738
|
working: !0,
|
|
743
739
|
selectedElement: null
|
|
744
740
|
}), t(null), g();
|
|
745
741
|
}
|
|
746
|
-
return
|
|
747
|
-
|
|
748
|
-
}),
|
|
749
|
-
const f =
|
|
750
|
-
return v(f, x(
|
|
742
|
+
return $e(() => {
|
|
743
|
+
w.working ? (g(), L()) : (m(), W());
|
|
744
|
+
}), He(C), (() => {
|
|
745
|
+
const f = ut(), a = f.firstChild, y = a.nextSibling, E = y.nextSibling, P = E.nextSibling, F = P.nextSibling;
|
|
746
|
+
return v(f, x(G, {
|
|
751
747
|
get when() {
|
|
752
|
-
return !
|
|
748
|
+
return !w.selectedElement && w.working;
|
|
753
749
|
},
|
|
754
750
|
get children() {
|
|
755
|
-
const d =
|
|
756
|
-
return
|
|
751
|
+
const d = it(), Te = d.firstChild, Le = Te.firstChild, de = Le.nextSibling;
|
|
752
|
+
return de.$$click = C, v(de, x(fe, {})), d;
|
|
757
753
|
}
|
|
758
|
-
}), a),
|
|
754
|
+
}), a), U((d) => {
|
|
759
755
|
n = d;
|
|
760
|
-
}, a),
|
|
756
|
+
}, a), U((d) => {
|
|
761
757
|
l = d;
|
|
762
|
-
}, y),
|
|
758
|
+
}, y), U((d) => {
|
|
763
759
|
o = d;
|
|
764
|
-
}, E),
|
|
760
|
+
}, E), U((d) => {
|
|
765
761
|
s = d;
|
|
766
|
-
}, P),
|
|
762
|
+
}, P), U((d) => {
|
|
767
763
|
i = d;
|
|
768
|
-
},
|
|
764
|
+
}, F), v(F, x(G, {
|
|
769
765
|
get when() {
|
|
770
|
-
return
|
|
766
|
+
return w.selectedElement ? w.working : null;
|
|
771
767
|
},
|
|
772
768
|
get children() {
|
|
773
769
|
return [(() => {
|
|
774
|
-
const d = it();
|
|
775
|
-
return d.$$click = O, v(d, x(re, {})), d;
|
|
776
|
-
})(), (() => {
|
|
777
770
|
const d = rt();
|
|
778
|
-
return d.$$click =
|
|
771
|
+
return d.$$click = C, v(d, x(fe, {})), d;
|
|
772
|
+
})(), (() => {
|
|
773
|
+
const d = ct();
|
|
774
|
+
return d.$$click = X, d.style.setProperty("transform", "translate(4px, -8px)"), d;
|
|
779
775
|
})()];
|
|
780
776
|
}
|
|
781
|
-
})), D(() =>
|
|
777
|
+
})), D(() => Ge(F, `fixed -z-1 bg-black bg-opacity-20 border-4 rounded-sm transition cursor-pointer box-border pointer-events-none ${e() ? "border-red-500 border-solid" : "border-blue-500 border-dashed"}`)), f;
|
|
782
778
|
})();
|
|
783
779
|
};
|
|
784
|
-
|
|
785
|
-
const
|
|
786
|
-
const [e, t] =
|
|
780
|
+
_e(["click"]);
|
|
781
|
+
const at = /* @__PURE__ */ k('<button data-ohbug-selector class="btn-main" type="button">'), dt = /* @__PURE__ */ k('<div data-ohbug-selector class="bg-white flex flex-col h-60 shadow z-max right-8 bottom-20 w-80 fixed"><div data-ohbug-selector class="bg-gray-300 p-4"><textarea autofocus data-ohbug-selector class="bg-transparent outline-none border-none w-full resize-none" maxlength="1000" placeholder="Tell me how you feel..." rows="4"></textarea><button data-ohbug-selector class="cursor-pointer border-none bg-transparent" type="button"></button></div><div data-ohbug-selector class="flex flex-1 p-4 justify-between items-center"><span data-ohbug-selector class="text-sm">Try<a data-ohbug-selector class="ml-1 underline" href="https://ohbug.net" rel="noreferrer" target="_blank">Ohbug</a>?</span><button data-ohbug-selector class="btn-send" type="button"></button></div><button data-ohbug-selector class="border-none rounded-full cursor-pointer flex bg-blue-500 h-6 -top-2 -right-2 w-6 z-10 items-center justify-center absolute" type="button">'), ht = /* @__PURE__ */ k('<div data-ohbug-selector class="z-max relative"><div>'), gt = () => {
|
|
782
|
+
const [e, t] = V(!1), [n, l] = V("");
|
|
787
783
|
function o() {
|
|
788
|
-
|
|
784
|
+
H({
|
|
789
785
|
working: !0
|
|
790
786
|
});
|
|
791
787
|
}
|
|
792
|
-
const [s, i] =
|
|
788
|
+
const [s, i] = V(!1);
|
|
793
789
|
async function r() {
|
|
794
790
|
i(!0);
|
|
795
791
|
let c, h;
|
|
796
|
-
const u =
|
|
797
|
-
if (
|
|
792
|
+
const u = Xe().client;
|
|
793
|
+
if (w.selectedElement) {
|
|
798
794
|
const g = {
|
|
799
|
-
target:
|
|
795
|
+
target: w.selectedElement
|
|
800
796
|
};
|
|
801
|
-
c =
|
|
797
|
+
c = Je(g), h = w.selectedElement.outerHTML;
|
|
802
798
|
const m = u.createEvent({
|
|
803
799
|
category: "feedback",
|
|
804
800
|
type: "feedback",
|
|
@@ -819,39 +815,39 @@ const ft = /* @__PURE__ */ A('<button class="btn-main" data-ohbug-selector type=
|
|
|
819
815
|
});
|
|
820
816
|
await u.notify(g);
|
|
821
817
|
}
|
|
822
|
-
t(!1), l(""),
|
|
818
|
+
t(!1), l(""), H({
|
|
823
819
|
working: !1,
|
|
824
820
|
selectedElement: null
|
|
825
821
|
}), i(!1);
|
|
826
822
|
}
|
|
827
|
-
return
|
|
828
|
-
|
|
823
|
+
return $e(() => {
|
|
824
|
+
w.working === !1 && w.selectedElement === null || w.working && !w.selectedElement ? t(!1) : t(!0);
|
|
829
825
|
}), (() => {
|
|
830
|
-
const c =
|
|
831
|
-
return v(c, x(
|
|
826
|
+
const c = ht(), h = c.firstChild;
|
|
827
|
+
return v(c, x(G, {
|
|
832
828
|
get when() {
|
|
833
|
-
return
|
|
829
|
+
return w.working;
|
|
834
830
|
},
|
|
835
831
|
get children() {
|
|
836
|
-
return x(
|
|
832
|
+
return x(ft, {});
|
|
837
833
|
}
|
|
838
|
-
}), h), v(h, x(
|
|
834
|
+
}), h), v(h, x(G, {
|
|
839
835
|
get when() {
|
|
840
|
-
return !(
|
|
836
|
+
return !(w.working && !w.selectedElement);
|
|
841
837
|
},
|
|
842
838
|
get children() {
|
|
843
|
-
const u =
|
|
839
|
+
const u = at();
|
|
844
840
|
return u.$$click = () => t((g) => !g), v(u, () => e() ? "😆" : "🙂"), u;
|
|
845
841
|
}
|
|
846
|
-
}), null), v(h, x(
|
|
842
|
+
}), null), v(h, x(G, {
|
|
847
843
|
get when() {
|
|
848
844
|
return e();
|
|
849
845
|
},
|
|
850
846
|
get children() {
|
|
851
|
-
const u =
|
|
852
|
-
return m.$$input = (f) => l(f.currentTarget.value),
|
|
853
|
-
const a =
|
|
854
|
-
return a !== f._v$ && ((f._v$ = a) != null ?
|
|
847
|
+
const u = dt(), g = u.firstChild, m = g.firstChild, S = m.nextSibling, L = g.nextSibling, W = L.firstChild, C = W.nextSibling, X = L.nextSibling;
|
|
848
|
+
return m.$$input = (f) => l(f.currentTarget.value), S.$$click = o, v(S, x(st, {})), C.$$click = r, v(C, () => s() ? "Sending..." : "Send"), X.$$click = () => t((f) => !f), v(X, x(fe, {})), D((f) => {
|
|
849
|
+
const a = w.selectedElement ? "blue" : "gray", y = !n() || s();
|
|
850
|
+
return a !== f._v$ && ((f._v$ = a) != null ? S.style.setProperty("--color", a) : S.style.removeProperty("--color")), y !== f._v$2 && (C.disabled = f._v$2 = y), f;
|
|
855
851
|
}, {
|
|
856
852
|
_v$: void 0,
|
|
857
853
|
_v$2: void 0
|
|
@@ -860,19 +856,19 @@ const ft = /* @__PURE__ */ A('<button class="btn-main" data-ohbug-selector type=
|
|
|
860
856
|
}), null), c;
|
|
861
857
|
})();
|
|
862
858
|
};
|
|
863
|
-
|
|
864
|
-
const
|
|
865
|
-
let
|
|
866
|
-
const
|
|
859
|
+
_e(["click", "input"]);
|
|
860
|
+
const bt = "OhbugExtensionFeedback-ROOT";
|
|
861
|
+
let j = null;
|
|
862
|
+
const pt = (e) => ({
|
|
867
863
|
name: "OhbugExtensionFeedback",
|
|
868
864
|
onSetup: () => {
|
|
869
|
-
|
|
865
|
+
j = document.createElement("div"), j.id = bt, (e || document.body).append(j), Ve(() => x(gt, {}), j);
|
|
870
866
|
},
|
|
871
867
|
onDestroy: () => {
|
|
872
|
-
|
|
868
|
+
j && j.remove();
|
|
873
869
|
}
|
|
874
870
|
});
|
|
875
|
-
function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject("/*\n! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.btn-main {\n z-index: 99999;\n position: fixed;\n right: 2rem;\n bottom: 2rem;\n display: flex;\n height: 2rem;\n width: 2.5rem;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n justify-content: center;\n border-radius: 0.25rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.btn-main:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.btn-send {\n border-radius: 0.125rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.btn-send:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.tips {\n z-index: 99999;\n position: fixed;\n top: 0px;\n left: 50%;\n display: flex;\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n border-bottom-right-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding: 0.75rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.z-max {\n z-index: 99999;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.-bottom-full {\n bottom: -100%;\n}\n.-right-2 {\n right: -0.5rem;\n}\n.-right-3 {\n right: -0.75rem;\n}\n.-top-2 {\n top: -0.5rem;\n}\n.-top-3 {\n top: -0.75rem;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.bottom-20 {\n bottom: 5rem;\n}\n.left-0 {\n left: 0px;\n}\n.right-0 {\n right: 0px;\n}\n.right-8 {\n right: 2rem;\n}\n.top-0 {\n top: 0px;\n}\n.z-10 {\n z-index: 10;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.box-border {\n box-sizing: border-box;\n}\n.flex {\n display: flex;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-60 {\n height: 15rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-80 {\n width: 20rem;\n}\n.w-full {\n width: 100%;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.resize-none {\n resize: none;\n}\n.flex-col {\n flex-direction: column;\n}\n.items-center {\n align-items: center;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-sm {\n border-radius: 0.125rem;\n}\n.border-4 {\n border-width: 4px;\n}\n.border-solid {\n border-style: solid;\n}\n.border-dashed {\n border-style: dashed;\n}\n.border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity));\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(239 68 68 / var(--tw-border-opacity));\n}\n.bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n.bg-gray-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity));\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.bg-opacity-20 {\n --tw-bg-opacity: 0.2;\n}\n.bg-opacity-40 {\n --tw-bg-opacity: 0.4;\n}\n.bg-none {\n background-image: none;\n}\n.p-4 {\n padding: 1rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.font-semibold {\n font-weight: 600;\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.underline {\n text-decoration-line: underline;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}");
|
|
871
|
+
function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject("*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n.btn-main {\n z-index: 99999;\n position: fixed;\n right: 2rem;\n bottom: 2rem;\n display: flex;\n height: 2rem;\n width: 2.5rem;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n justify-content: center;\n border-radius: 0.25rem;\n border-style: none;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-main:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.btn-send {\n cursor: pointer;\n border-radius: 0.125rem;\n border-style: none;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-send:disabled {\n cursor: not-allowed;\n opacity: 0.5\n}\n.btn-stop {\n pointer-events: auto;\n margin-left: 0.25rem;\n cursor: pointer;\n border-style: none;\n background-color: transparent;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-stop:hover {\n background-color: rgb(107 114 128 / var(--tw-bg-opacity));\n --tw-bg-opacity: 0.3\n}\n.tips {\n z-index: 99999;\n position: fixed;\n top: 0px;\n left: 50%;\n display: flex;\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n border-bottom-right-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding: 0.75rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n.z-max {\n z-index: 99999\n}\n.pointer-events-none {\n pointer-events: none\n}\n.pointer-events-auto {\n pointer-events: auto\n}\n.visible {\n visibility: visible\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.-bottom-full {\n bottom: -100%\n}\n.-right-2 {\n right: -0.5rem\n}\n.-right-3 {\n right: -0.75rem\n}\n.-top-2 {\n top: -0.5rem\n}\n.-top-3 {\n top: -0.75rem\n}\n.bottom-0 {\n bottom: 0px\n}\n.bottom-20 {\n bottom: 5rem\n}\n.left-0 {\n left: 0px\n}\n.right-0 {\n right: 0px\n}\n.right-8 {\n right: 2rem\n}\n.top-0 {\n top: 0px\n}\n.z-10 {\n z-index: 10\n}\n.ml-1 {\n margin-left: 0.25rem\n}\n.box-border {\n box-sizing: border-box\n}\n.flex {\n display: flex\n}\n.h-6 {\n height: 1.5rem\n}\n.h-60 {\n height: 15rem\n}\n.w-6 {\n width: 1.5rem\n}\n.w-80 {\n width: 20rem\n}\n.w-full {\n width: 100%\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.cursor-pointer {\n cursor: pointer\n}\n.resize-none {\n resize: none\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.rounded-full {\n border-radius: 9999px\n}\n.rounded-sm {\n border-radius: 0.125rem\n}\n.border-4 {\n border-width: 4px\n}\n.border-solid {\n border-style: solid\n}\n.border-dashed {\n border-style: dashed\n}\n.border-none {\n border-style: none\n}\n.border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity))\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(239 68 68 / var(--tw-border-opacity))\n}\n.bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity))\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity))\n}\n.bg-gray-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity))\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity))\n}\n.bg-transparent {\n background-color: transparent\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity))\n}\n.bg-opacity-20 {\n --tw-bg-opacity: 0.2\n}\n.bg-opacity-40 {\n --tw-bg-opacity: 0.4\n}\n.bg-none {\n background-image: none\n}\n.p-4 {\n padding: 1rem\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.font-semibold {\n font-weight: 600\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n.underline {\n text-decoration-line: underline\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}");
|
|
876
872
|
export {
|
|
877
|
-
|
|
873
|
+
pt as default
|
|
878
874
|
};
|