altcha 2.0.2 → 2.1.0-beta.1
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/README.md +3 -0
- package/dist/altcha.d.ts +7 -2
- package/dist/altcha.i18n.d.ts +7 -2
- package/dist/altcha.i18n.js +1480 -1436
- package/dist/altcha.i18n.umd.js +4 -4
- package/dist/altcha.js +1224 -1198
- package/dist/altcha.umd.cjs +4 -4
- package/dist_external/altcha.css +1 -1
- package/dist_external/altcha.d.ts +7 -2
- package/dist_external/altcha.js +1285 -1259
- package/dist_external/altcha.umd.cjs +3 -3
- package/dist_i18n/all.js +111 -93
- package/dist_i18n/all.umd.cjs +1 -1
- package/dist_i18n/be.d.ts +1 -0
- package/dist_i18n/be.js +94 -0
- package/dist_i18n/be.umd.cjs +1 -0
- package/dist_i18n/europe.js +45 -27
- package/dist_i18n/europe.umd.cjs +1 -1
- package/dist_plugins/upload.js +7 -2
- package/package.json +1 -1
package/dist/altcha.i18n.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Dn = Object.defineProperty;
|
|
2
|
+
var za = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var se = (e, t, r) => (
|
|
8
|
-
var
|
|
9
|
-
const
|
|
5
|
+
var qn = (e, t, r) => t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var ke = (e, t, r) => qn(e, typeof t != "symbol" ? t + "" : t, r), Na = (e, t, r) => t.has(e) || za("Cannot " + r);
|
|
7
|
+
var se = (e, t, r) => (Na(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Ir = (e, t, r) => t.has(e) ? za("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Vr = (e, t, r, i) => (Na(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
|
|
8
|
+
var Qa = Array.isArray, On = Array.prototype.indexOf, Hn = Array.from, ar = Object.keys, Dt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, Fn = Object.getOwnPropertyDescriptors, Mn = Object.prototype, Bn = Array.prototype, ei = Object.getPrototypeOf, Da = Object.isExtensible;
|
|
9
|
+
const yt = () => {
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function ti(e) {
|
|
12
12
|
for (var t = 0; t < e.length; t++)
|
|
13
13
|
e[t]();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Un(e, t, r = !1) {
|
|
16
16
|
return e === void 0 ? r ? (
|
|
17
17
|
/** @type {() => V} */
|
|
18
18
|
t()
|
|
@@ -21,70 +21,70 @@ function On(e, t, r = !1) {
|
|
|
21
21
|
t
|
|
22
22
|
) : e;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
let
|
|
26
|
-
function
|
|
27
|
-
var e =
|
|
28
|
-
|
|
24
|
+
const _e = 2, ri = 4, fr = 8, Fr = 16, Ne = 32, nt = 64, ir = 128, ge = 256, nr = 512, fe = 1024, ze = 2048, ot = 4096, kt = 8192, ur = 16384, Zn = 32768, Mr = 65536, Gn = 1 << 19, ai = 1 << 20, Sr = 1 << 21, zt = Symbol("$state"), ii = Symbol("legacy props"), Yn = Symbol(""), Wn = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
|
|
25
|
+
let qt = [], Ot = [];
|
|
26
|
+
function ni() {
|
|
27
|
+
var e = qt;
|
|
28
|
+
qt = [], ti(e);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
var e =
|
|
32
|
-
|
|
30
|
+
function oi() {
|
|
31
|
+
var e = Ot;
|
|
32
|
+
Ot = [], ti(e);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
34
|
+
function Br(e) {
|
|
35
|
+
qt.length === 0 && queueMicrotask(ni), qt.push(e);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
37
|
+
function Kn(e) {
|
|
38
|
+
Ot.length === 0 && Wn(oi), Ot.push(e);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
40
|
+
function Jn() {
|
|
41
|
+
qt.length > 0 && ni(), Ot.length > 0 && oi();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function li(e) {
|
|
44
44
|
return e === this.v;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function si(e, t) {
|
|
47
47
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return !
|
|
49
|
+
function Ur(e) {
|
|
50
|
+
return !si(e, this.v);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Xn(e) {
|
|
53
53
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Qn() {
|
|
56
56
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function eo(e) {
|
|
59
59
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function to() {
|
|
62
62
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ro() {
|
|
65
65
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function ao(e) {
|
|
68
68
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function io() {
|
|
71
71
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function no() {
|
|
74
74
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function oo() {
|
|
77
77
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
function
|
|
79
|
+
const lo = 1, so = 4, co = 8, fo = 16, uo = 1, ho = 2, Zr = "[", ci = "[!", fi = "]", At = {}, ce = Symbol(), go = "http://www.w3.org/1999/xhtml";
|
|
80
|
+
function ui(e) {
|
|
81
81
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
82
82
|
}
|
|
83
83
|
let ie = null;
|
|
84
|
-
function
|
|
84
|
+
function qa(e) {
|
|
85
85
|
ie = e;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function di(e, t = !1, r) {
|
|
88
88
|
var i = ie = {
|
|
89
89
|
p: ie,
|
|
90
90
|
c: null,
|
|
@@ -95,25 +95,25 @@ function oi(e, t = !1, r) {
|
|
|
95
95
|
x: null,
|
|
96
96
|
l: null
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
Wr(() => {
|
|
99
99
|
i.d = !0;
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function hi(e) {
|
|
103
103
|
const t = ie;
|
|
104
104
|
if (t !== null) {
|
|
105
105
|
e !== void 0 && (t.x = e);
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
106
|
+
const c = t.e;
|
|
107
|
+
if (c !== null) {
|
|
108
108
|
var r = $, i = j;
|
|
109
109
|
t.e = null;
|
|
110
110
|
try {
|
|
111
|
-
for (var o = 0; o <
|
|
112
|
-
var n =
|
|
113
|
-
|
|
111
|
+
for (var o = 0; o < c.length; o++) {
|
|
112
|
+
var n = c[o];
|
|
113
|
+
Ge(n.effect), je(n.reaction), Kr(n.fn);
|
|
114
114
|
}
|
|
115
115
|
} finally {
|
|
116
|
-
|
|
116
|
+
Ge(r), je(i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
ie = t.p, t.m = !0;
|
|
@@ -121,155 +121,155 @@ function li(e) {
|
|
|
121
121
|
return e || /** @type {T} */
|
|
122
122
|
{};
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function gi() {
|
|
125
125
|
return !0;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
if (typeof e != "object" || e === null ||
|
|
127
|
+
function Be(e) {
|
|
128
|
+
if (typeof e != "object" || e === null || zt in e)
|
|
129
129
|
return e;
|
|
130
|
-
const t =
|
|
131
|
-
if (t !==
|
|
130
|
+
const t = ei(e);
|
|
131
|
+
if (t !== Mn && t !== Bn)
|
|
132
132
|
return e;
|
|
133
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
134
|
-
var
|
|
135
|
-
|
|
133
|
+
var r = /* @__PURE__ */ new Map(), i = Qa(e), o = /* @__PURE__ */ z(0), n = j, c = (s) => {
|
|
134
|
+
var u = j;
|
|
135
|
+
je(n);
|
|
136
136
|
var d = s();
|
|
137
|
-
return
|
|
137
|
+
return je(u), d;
|
|
138
138
|
};
|
|
139
|
-
return i && r.set("length", /* @__PURE__ */
|
|
139
|
+
return i && r.set("length", /* @__PURE__ */ z(
|
|
140
140
|
/** @type {any[]} */
|
|
141
141
|
e.length
|
|
142
142
|
)), new Proxy(
|
|
143
143
|
/** @type {any} */
|
|
144
144
|
e,
|
|
145
145
|
{
|
|
146
|
-
defineProperty(s,
|
|
147
|
-
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) &&
|
|
148
|
-
var
|
|
149
|
-
return
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
defineProperty(s, u, d) {
|
|
147
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && io();
|
|
148
|
+
var m = r.get(u);
|
|
149
|
+
return m === void 0 ? (m = c(() => /* @__PURE__ */ z(d.value)), r.set(u, m)) : A(
|
|
150
|
+
m,
|
|
151
|
+
c(() => Be(d.value))
|
|
152
152
|
), !0;
|
|
153
153
|
},
|
|
154
|
-
deleteProperty(s,
|
|
155
|
-
var d = r.get(
|
|
154
|
+
deleteProperty(s, u) {
|
|
155
|
+
var d = r.get(u);
|
|
156
156
|
if (d === void 0)
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
),
|
|
157
|
+
u in s && (r.set(
|
|
158
|
+
u,
|
|
159
|
+
c(() => /* @__PURE__ */ z(ce))
|
|
160
|
+
), Rr(o));
|
|
161
161
|
else {
|
|
162
|
-
if (i && typeof
|
|
163
|
-
var
|
|
162
|
+
if (i && typeof u == "string") {
|
|
163
|
+
var m = (
|
|
164
164
|
/** @type {Source<number>} */
|
|
165
165
|
r.get("length")
|
|
166
|
-
), h = Number(
|
|
167
|
-
Number.isInteger(h) && h <
|
|
166
|
+
), h = Number(u);
|
|
167
|
+
Number.isInteger(h) && h < m.v && A(m, h);
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
A(d, ce), Rr(o);
|
|
170
170
|
}
|
|
171
171
|
return !0;
|
|
172
172
|
},
|
|
173
|
-
get(s,
|
|
173
|
+
get(s, u, d) {
|
|
174
174
|
var k;
|
|
175
|
-
if (
|
|
175
|
+
if (u === zt)
|
|
176
176
|
return e;
|
|
177
|
-
var
|
|
178
|
-
if (
|
|
179
|
-
var
|
|
180
|
-
return
|
|
177
|
+
var m = r.get(u), h = u in s;
|
|
178
|
+
if (m === void 0 && (!h || (k = rt(s, u)) != null && k.writable) && (m = c(() => /* @__PURE__ */ z(Be(h ? s[u] : ce))), r.set(u, m)), m !== void 0) {
|
|
179
|
+
var b = l(m);
|
|
180
|
+
return b === ce ? void 0 : b;
|
|
181
181
|
}
|
|
182
|
-
return Reflect.get(s,
|
|
182
|
+
return Reflect.get(s, u, d);
|
|
183
183
|
},
|
|
184
|
-
getOwnPropertyDescriptor(s,
|
|
185
|
-
var d = Reflect.getOwnPropertyDescriptor(s,
|
|
184
|
+
getOwnPropertyDescriptor(s, u) {
|
|
185
|
+
var d = Reflect.getOwnPropertyDescriptor(s, u);
|
|
186
186
|
if (d && "value" in d) {
|
|
187
|
-
var
|
|
188
|
-
|
|
187
|
+
var m = r.get(u);
|
|
188
|
+
m && (d.value = l(m));
|
|
189
189
|
} else if (d === void 0) {
|
|
190
|
-
var h = r.get(
|
|
191
|
-
if (h !== void 0 &&
|
|
190
|
+
var h = r.get(u), b = h == null ? void 0 : h.v;
|
|
191
|
+
if (h !== void 0 && b !== ce)
|
|
192
192
|
return {
|
|
193
193
|
enumerable: !0,
|
|
194
194
|
configurable: !0,
|
|
195
|
-
value:
|
|
195
|
+
value: b,
|
|
196
196
|
writable: !0
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
return d;
|
|
200
200
|
},
|
|
201
|
-
has(s,
|
|
202
|
-
var
|
|
203
|
-
if (
|
|
201
|
+
has(s, u) {
|
|
202
|
+
var b;
|
|
203
|
+
if (u === zt)
|
|
204
204
|
return !0;
|
|
205
|
-
var d = r.get(
|
|
206
|
-
if (d !== void 0 || $ !== null && (!
|
|
207
|
-
d === void 0 && (d =
|
|
205
|
+
var d = r.get(u), m = d !== void 0 && d.v !== ce || Reflect.has(s, u);
|
|
206
|
+
if (d !== void 0 || $ !== null && (!m || (b = rt(s, u)) != null && b.writable)) {
|
|
207
|
+
d === void 0 && (d = c(() => /* @__PURE__ */ z(m ? Be(s[u]) : ce)), r.set(u, d));
|
|
208
208
|
var h = l(d);
|
|
209
|
-
if (h ===
|
|
209
|
+
if (h === ce)
|
|
210
210
|
return !1;
|
|
211
211
|
}
|
|
212
|
-
return
|
|
212
|
+
return m;
|
|
213
213
|
},
|
|
214
|
-
set(s,
|
|
215
|
-
var
|
|
216
|
-
var h = r.get(
|
|
217
|
-
if (i &&
|
|
214
|
+
set(s, u, d, m) {
|
|
215
|
+
var J;
|
|
216
|
+
var h = r.get(u), b = u in s;
|
|
217
|
+
if (i && u === "length")
|
|
218
218
|
for (var k = d; k < /** @type {Source<number>} */
|
|
219
219
|
h.v; k += 1) {
|
|
220
220
|
var V = r.get(k + "");
|
|
221
|
-
V !== void 0 ?
|
|
221
|
+
V !== void 0 ? A(V, ce) : k in s && (V = c(() => /* @__PURE__ */ z(ce)), r.set(k + "", V));
|
|
222
222
|
}
|
|
223
|
-
h === void 0 ? (!
|
|
223
|
+
h === void 0 ? (!b || (J = rt(s, u)) != null && J.writable) && (h = c(() => /* @__PURE__ */ z(void 0)), A(
|
|
224
224
|
h,
|
|
225
|
-
|
|
226
|
-
), r.set(
|
|
225
|
+
c(() => Be(d))
|
|
226
|
+
), r.set(u, h)) : (b = h.v !== ce, A(
|
|
227
227
|
h,
|
|
228
|
-
|
|
228
|
+
c(() => Be(d))
|
|
229
229
|
));
|
|
230
|
-
var
|
|
231
|
-
if (
|
|
232
|
-
if (i && typeof
|
|
230
|
+
var w = Reflect.getOwnPropertyDescriptor(s, u);
|
|
231
|
+
if (w != null && w.set && w.set.call(m, d), !b) {
|
|
232
|
+
if (i && typeof u == "string") {
|
|
233
233
|
var q = (
|
|
234
234
|
/** @type {Source<number>} */
|
|
235
235
|
r.get("length")
|
|
236
|
-
),
|
|
237
|
-
Number.isInteger(
|
|
236
|
+
), ue = Number(u);
|
|
237
|
+
Number.isInteger(ue) && ue >= q.v && A(q, ue + 1);
|
|
238
238
|
}
|
|
239
|
-
|
|
239
|
+
Rr(o);
|
|
240
240
|
}
|
|
241
241
|
return !0;
|
|
242
242
|
},
|
|
243
243
|
ownKeys(s) {
|
|
244
244
|
l(o);
|
|
245
|
-
var
|
|
246
|
-
var
|
|
247
|
-
return
|
|
245
|
+
var u = Reflect.ownKeys(s).filter((h) => {
|
|
246
|
+
var b = r.get(h);
|
|
247
|
+
return b === void 0 || b.v !== ce;
|
|
248
248
|
});
|
|
249
|
-
for (var [d,
|
|
250
|
-
|
|
251
|
-
return
|
|
249
|
+
for (var [d, m] of r)
|
|
250
|
+
m.v !== ce && !(d in s) && u.push(d);
|
|
251
|
+
return u;
|
|
252
252
|
},
|
|
253
253
|
setPrototypeOf() {
|
|
254
|
-
|
|
254
|
+
no();
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
|
|
259
|
+
function Rr(e, t = 1) {
|
|
260
|
+
A(e, e.v + t);
|
|
261
261
|
}
|
|
262
262
|
// @__NO_SIDE_EFFECTS__
|
|
263
|
-
function
|
|
264
|
-
var t =
|
|
263
|
+
function dr(e) {
|
|
264
|
+
var t = _e | ze, r = j !== null && (j.f & _e) !== 0 ? (
|
|
265
265
|
/** @type {Derived} */
|
|
266
266
|
j
|
|
267
267
|
) : null;
|
|
268
|
-
return $ === null || r !== null && (r.f &
|
|
268
|
+
return $ === null || r !== null && (r.f & ge) !== 0 ? t |= ge : $.f |= ai, {
|
|
269
269
|
ctx: ie,
|
|
270
270
|
deps: null,
|
|
271
271
|
effects: null,
|
|
272
|
-
equals:
|
|
272
|
+
equals: li,
|
|
273
273
|
f: t,
|
|
274
274
|
fn: e,
|
|
275
275
|
reactions: null,
|
|
@@ -283,29 +283,29 @@ function lr(e) {
|
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
285
|
// @__NO_SIDE_EFFECTS__
|
|
286
|
-
function
|
|
287
|
-
const t = /* @__PURE__ */
|
|
288
|
-
return
|
|
286
|
+
function $t(e) {
|
|
287
|
+
const t = /* @__PURE__ */ dr(e);
|
|
288
|
+
return wi(t), t;
|
|
289
289
|
}
|
|
290
290
|
// @__NO_SIDE_EFFECTS__
|
|
291
|
-
function
|
|
292
|
-
const t = /* @__PURE__ */
|
|
293
|
-
return t.equals =
|
|
291
|
+
function vo(e) {
|
|
292
|
+
const t = /* @__PURE__ */ dr(e);
|
|
293
|
+
return t.equals = Ur, t;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function vi(e) {
|
|
296
296
|
var t = e.effects;
|
|
297
297
|
if (t !== null) {
|
|
298
298
|
e.effects = null;
|
|
299
299
|
for (var r = 0; r < t.length; r += 1)
|
|
300
|
-
|
|
300
|
+
Ye(
|
|
301
301
|
/** @type {Effect} */
|
|
302
302
|
t[r]
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function bo(e) {
|
|
307
307
|
for (var t = e.parent; t !== null; ) {
|
|
308
|
-
if ((t.f &
|
|
308
|
+
if ((t.f & _e) === 0)
|
|
309
309
|
return (
|
|
310
310
|
/** @type {Effect} */
|
|
311
311
|
t
|
|
@@ -314,425 +314,425 @@ function fo(e) {
|
|
|
314
314
|
}
|
|
315
315
|
return null;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function bi(e) {
|
|
318
318
|
var t, r = $;
|
|
319
|
-
|
|
319
|
+
Ge(bo(e));
|
|
320
320
|
try {
|
|
321
|
-
|
|
321
|
+
vi(e), t = xi(e);
|
|
322
322
|
} finally {
|
|
323
|
-
|
|
323
|
+
Ge(r);
|
|
324
324
|
}
|
|
325
325
|
return t;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
var t =
|
|
329
|
-
|
|
327
|
+
function pi(e) {
|
|
328
|
+
var t = bi(e), r = (Ue || (e.f & ge) !== 0) && e.deps !== null ? ot : fe;
|
|
329
|
+
we(e, r), e.equals(t) || (e.v = t, e.wv = Ei());
|
|
330
330
|
}
|
|
331
|
-
const
|
|
332
|
-
function
|
|
331
|
+
const Ht = /* @__PURE__ */ new Map();
|
|
332
|
+
function mi(e, t) {
|
|
333
333
|
var r = {
|
|
334
334
|
f: 0,
|
|
335
335
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
336
336
|
v: e,
|
|
337
337
|
reactions: null,
|
|
338
|
-
equals:
|
|
338
|
+
equals: li,
|
|
339
339
|
rv: 0,
|
|
340
340
|
wv: 0
|
|
341
341
|
};
|
|
342
342
|
return r;
|
|
343
343
|
}
|
|
344
344
|
// @__NO_SIDE_EFFECTS__
|
|
345
|
-
function
|
|
346
|
-
const r =
|
|
347
|
-
return
|
|
345
|
+
function z(e, t) {
|
|
346
|
+
const r = mi(e);
|
|
347
|
+
return wi(r), r;
|
|
348
348
|
}
|
|
349
349
|
// @__NO_SIDE_EFFECTS__
|
|
350
|
-
function
|
|
351
|
-
const r =
|
|
352
|
-
return t || (r.equals =
|
|
350
|
+
function Gr(e, t = !1) {
|
|
351
|
+
const r = mi(e);
|
|
352
|
+
return t || (r.equals = Ur), r;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
j !== null && !
|
|
356
|
-
let i = r ?
|
|
357
|
-
return
|
|
354
|
+
function A(e, t, r = !1) {
|
|
355
|
+
j !== null && !Ve && gi() && (j.f & (_e | Fr)) !== 0 && !(ne != null && ne.includes(e)) && oo();
|
|
356
|
+
let i = r ? Be(t) : t;
|
|
357
|
+
return po(e, i);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function po(e, t) {
|
|
360
360
|
if (!e.equals(t)) {
|
|
361
361
|
var r = e.v;
|
|
362
|
-
|
|
362
|
+
Ft ? Ht.set(e, t) : Ht.set(e, r), e.v = t, (e.f & _e) !== 0 && ((e.f & ze) !== 0 && bi(
|
|
363
363
|
/** @type {Derived} */
|
|
364
364
|
e
|
|
365
|
-
),
|
|
365
|
+
), we(e, (e.f & ge) === 0 ? fe : ot)), e.wv = Ei(), yi(e, ze), $ !== null && ($.f & fe) !== 0 && ($.f & (Ne | nt)) === 0 && (be === null ? Ao([e]) : be.push(e));
|
|
366
366
|
}
|
|
367
367
|
return t;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function yi(e, t) {
|
|
370
370
|
var r = e.reactions;
|
|
371
371
|
if (r !== null)
|
|
372
372
|
for (var i = r.length, o = 0; o < i; o++) {
|
|
373
|
-
var n = r[o],
|
|
374
|
-
(
|
|
373
|
+
var n = r[o], c = n.f;
|
|
374
|
+
(c & ze) === 0 && (we(n, t), (c & (fe | ge)) !== 0 && ((c & _e) !== 0 ? yi(
|
|
375
375
|
/** @type {Derived} */
|
|
376
376
|
n,
|
|
377
|
-
|
|
378
|
-
) :
|
|
377
|
+
ot
|
|
378
|
+
) : br(
|
|
379
379
|
/** @type {Effect} */
|
|
380
380
|
n
|
|
381
381
|
)));
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function hr(e) {
|
|
385
385
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
386
386
|
}
|
|
387
|
-
let
|
|
388
|
-
function
|
|
389
|
-
|
|
387
|
+
let D = !1;
|
|
388
|
+
function mt(e) {
|
|
389
|
+
D = e;
|
|
390
390
|
}
|
|
391
|
-
let
|
|
392
|
-
function
|
|
391
|
+
let N;
|
|
392
|
+
function Ze(e) {
|
|
393
393
|
if (e === null)
|
|
394
|
-
throw
|
|
395
|
-
return
|
|
394
|
+
throw hr(), At;
|
|
395
|
+
return N = e;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
return
|
|
397
|
+
function _t() {
|
|
398
|
+
return Ze(
|
|
399
399
|
/** @type {TemplateNode} */
|
|
400
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ We(N)
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
404
|
-
if (
|
|
405
|
-
if (/* @__PURE__ */
|
|
406
|
-
throw
|
|
407
|
-
|
|
403
|
+
function G(e) {
|
|
404
|
+
if (D) {
|
|
405
|
+
if (/* @__PURE__ */ We(N) !== null)
|
|
406
|
+
throw hr(), At;
|
|
407
|
+
N = e;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
for (var e = 0, t =
|
|
410
|
+
function mo() {
|
|
411
|
+
for (var e = 0, t = N; ; ) {
|
|
412
412
|
if (t.nodeType === 8) {
|
|
413
413
|
var r = (
|
|
414
414
|
/** @type {Comment} */
|
|
415
415
|
t.data
|
|
416
416
|
);
|
|
417
|
-
if (r ===
|
|
417
|
+
if (r === fi) {
|
|
418
418
|
if (e === 0) return t;
|
|
419
419
|
e -= 1;
|
|
420
|
-
} else (r ===
|
|
420
|
+
} else (r === Zr || r === ci) && (e += 1);
|
|
421
421
|
}
|
|
422
422
|
var i = (
|
|
423
423
|
/** @type {TemplateNode} */
|
|
424
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ We(t)
|
|
425
425
|
);
|
|
426
426
|
t.remove(), t = i;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
var
|
|
430
|
-
function
|
|
431
|
-
if (
|
|
432
|
-
|
|
429
|
+
var Oa, Ai, ki, _i;
|
|
430
|
+
function Pr() {
|
|
431
|
+
if (Oa === void 0) {
|
|
432
|
+
Oa = window, Ai = /Firefox/.test(navigator.userAgent);
|
|
433
433
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
434
|
-
|
|
434
|
+
ki = rt(t, "firstChild").get, _i = rt(t, "nextSibling").get, Da(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Da(r) && (r.__t = void 0);
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function gr(e = "") {
|
|
438
438
|
return document.createTextNode(e);
|
|
439
439
|
}
|
|
440
440
|
// @__NO_SIDE_EFFECTS__
|
|
441
|
-
function
|
|
442
|
-
return
|
|
441
|
+
function me(e) {
|
|
442
|
+
return ki.call(e);
|
|
443
443
|
}
|
|
444
444
|
// @__NO_SIDE_EFFECTS__
|
|
445
|
-
function
|
|
446
|
-
return
|
|
445
|
+
function We(e) {
|
|
446
|
+
return _i.call(e);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
if (!
|
|
450
|
-
return /* @__PURE__ */
|
|
448
|
+
function Y(e, t) {
|
|
449
|
+
if (!D)
|
|
450
|
+
return /* @__PURE__ */ me(e);
|
|
451
451
|
var r = (
|
|
452
452
|
/** @type {TemplateNode} */
|
|
453
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ me(N)
|
|
454
454
|
);
|
|
455
|
-
return r === null && (r =
|
|
455
|
+
return r === null && (r = N.appendChild(gr())), Ze(r), r;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
if (!
|
|
457
|
+
function St(e, t) {
|
|
458
|
+
if (!D) {
|
|
459
459
|
var r = (
|
|
460
460
|
/** @type {DocumentFragment} */
|
|
461
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ me(
|
|
462
462
|
/** @type {Node} */
|
|
463
463
|
e
|
|
464
464
|
)
|
|
465
465
|
);
|
|
466
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
466
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ We(r) : r;
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return N;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
let i =
|
|
470
|
+
function W(e, t = 1, r = !1) {
|
|
471
|
+
let i = D ? N : e;
|
|
472
472
|
for (var o; t--; )
|
|
473
473
|
o = i, i = /** @type {TemplateNode} */
|
|
474
|
-
/* @__PURE__ */
|
|
475
|
-
if (!
|
|
474
|
+
/* @__PURE__ */ We(i);
|
|
475
|
+
if (!D)
|
|
476
476
|
return i;
|
|
477
477
|
var n = i == null ? void 0 : i.nodeType;
|
|
478
478
|
if (r && n !== 3) {
|
|
479
|
-
var
|
|
480
|
-
return i === null ? o == null || o.after(
|
|
479
|
+
var c = gr();
|
|
480
|
+
return i === null ? o == null || o.after(c) : i.before(c), Ze(c), c;
|
|
481
481
|
}
|
|
482
|
-
return
|
|
482
|
+
return Ze(i), /** @type {TemplateNode} */
|
|
483
483
|
i;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function yo(e) {
|
|
486
486
|
e.textContent = "";
|
|
487
487
|
}
|
|
488
|
-
let
|
|
489
|
-
function
|
|
490
|
-
|
|
488
|
+
let er = !1, or = !1, lr = null, at = !1, Ft = !1;
|
|
489
|
+
function Ha(e) {
|
|
490
|
+
Ft = e;
|
|
491
491
|
}
|
|
492
|
-
let
|
|
493
|
-
let j = null,
|
|
494
|
-
function
|
|
492
|
+
let Nt = [];
|
|
493
|
+
let j = null, Ve = !1;
|
|
494
|
+
function je(e) {
|
|
495
495
|
j = e;
|
|
496
496
|
}
|
|
497
497
|
let $ = null;
|
|
498
|
-
function
|
|
498
|
+
function Ge(e) {
|
|
499
499
|
$ = e;
|
|
500
500
|
}
|
|
501
501
|
let ne = null;
|
|
502
|
-
function
|
|
503
|
-
j !== null && j.f &
|
|
502
|
+
function wi(e) {
|
|
503
|
+
j !== null && j.f & Sr && (ne === null ? ne = [e] : ne.push(e));
|
|
504
504
|
}
|
|
505
|
-
let ae = null,
|
|
506
|
-
function
|
|
507
|
-
|
|
505
|
+
let ae = null, he = 0, be = null;
|
|
506
|
+
function Ao(e) {
|
|
507
|
+
be = e;
|
|
508
508
|
}
|
|
509
|
-
let
|
|
510
|
-
function
|
|
511
|
-
return ++
|
|
509
|
+
let Ci = 1, sr = 0, Ue = !1;
|
|
510
|
+
function Ei() {
|
|
511
|
+
return ++Ci;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Mt(e) {
|
|
514
514
|
var h;
|
|
515
515
|
var t = e.f;
|
|
516
|
-
if ((t &
|
|
516
|
+
if ((t & ze) !== 0)
|
|
517
517
|
return !0;
|
|
518
|
-
if ((t &
|
|
519
|
-
var r = e.deps, i = (t &
|
|
518
|
+
if ((t & ot) !== 0) {
|
|
519
|
+
var r = e.deps, i = (t & ge) !== 0;
|
|
520
520
|
if (r !== null) {
|
|
521
|
-
var o, n,
|
|
522
|
-
if (
|
|
521
|
+
var o, n, c = (t & nr) !== 0, s = i && $ !== null && !Ue, u = r.length;
|
|
522
|
+
if (c || s) {
|
|
523
523
|
var d = (
|
|
524
524
|
/** @type {Derived} */
|
|
525
525
|
e
|
|
526
|
-
),
|
|
527
|
-
for (o = 0; o <
|
|
528
|
-
n = r[o], (
|
|
529
|
-
|
|
526
|
+
), m = d.parent;
|
|
527
|
+
for (o = 0; o < u; o++)
|
|
528
|
+
n = r[o], (c || !((h = n == null ? void 0 : n.reactions) != null && h.includes(d))) && (n.reactions ?? (n.reactions = [])).push(d);
|
|
529
|
+
c && (d.f ^= nr), s && m !== null && (m.f & ge) === 0 && (d.f ^= ge);
|
|
530
530
|
}
|
|
531
|
-
for (o = 0; o <
|
|
532
|
-
if (n = r[o],
|
|
531
|
+
for (o = 0; o < u; o++)
|
|
532
|
+
if (n = r[o], Mt(
|
|
533
533
|
/** @type {Derived} */
|
|
534
534
|
n
|
|
535
|
-
) &&
|
|
535
|
+
) && pi(
|
|
536
536
|
/** @type {Derived} */
|
|
537
537
|
n
|
|
538
538
|
), n.wv > e.wv)
|
|
539
539
|
return !0;
|
|
540
540
|
}
|
|
541
|
-
(!i || $ !== null && !
|
|
541
|
+
(!i || $ !== null && !Ue) && we(e, fe);
|
|
542
542
|
}
|
|
543
543
|
return !1;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function ko(e, t) {
|
|
546
546
|
for (var r = t; r !== null; ) {
|
|
547
|
-
if ((r.f &
|
|
547
|
+
if ((r.f & ir) !== 0)
|
|
548
548
|
try {
|
|
549
549
|
r.fn(e);
|
|
550
550
|
return;
|
|
551
551
|
} catch {
|
|
552
|
-
r.f ^=
|
|
552
|
+
r.f ^= ir;
|
|
553
553
|
}
|
|
554
554
|
r = r.parent;
|
|
555
555
|
}
|
|
556
|
-
throw
|
|
556
|
+
throw er = !1, e;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return (e.f &
|
|
558
|
+
function Fa(e) {
|
|
559
|
+
return (e.f & ur) === 0 && (e.parent === null || (e.parent.f & ir) === 0);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
563
|
-
if (r === null && (
|
|
561
|
+
function vr(e, t, r, i) {
|
|
562
|
+
if (er) {
|
|
563
|
+
if (r === null && (er = !1), Fa(t))
|
|
564
564
|
throw e;
|
|
565
565
|
return;
|
|
566
566
|
}
|
|
567
|
-
if (r !== null && (
|
|
567
|
+
if (r !== null && (er = !0), ko(e, t), Fa(t))
|
|
568
568
|
throw e;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Li(e, t, r = !0) {
|
|
571
571
|
var i = e.reactions;
|
|
572
572
|
if (i !== null)
|
|
573
573
|
for (var o = 0; o < i.length; o++) {
|
|
574
574
|
var n = i[o];
|
|
575
|
-
ne != null && ne.includes(e) || ((n.f &
|
|
575
|
+
ne != null && ne.includes(e) || ((n.f & _e) !== 0 ? Li(
|
|
576
576
|
/** @type {Derived} */
|
|
577
577
|
n,
|
|
578
578
|
t,
|
|
579
579
|
!1
|
|
580
|
-
) : t === n && (r ?
|
|
580
|
+
) : t === n && (r ? we(n, ze) : (n.f & fe) !== 0 && we(n, ot), br(
|
|
581
581
|
/** @type {Effect} */
|
|
582
582
|
n
|
|
583
583
|
)));
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function xi(e) {
|
|
587
587
|
var k;
|
|
588
|
-
var t = ae, r =
|
|
588
|
+
var t = ae, r = he, i = be, o = j, n = Ue, c = ne, s = ie, u = Ve, d = e.f;
|
|
589
589
|
ae = /** @type {null | Value[]} */
|
|
590
|
-
null,
|
|
590
|
+
null, he = 0, be = null, Ue = (d & ge) !== 0 && (Ve || !at || j === null), j = (d & (Ne | nt)) === 0 ? e : null, ne = null, qa(e.ctx), Ve = !1, sr++, e.f |= Sr;
|
|
591
591
|
try {
|
|
592
|
-
var
|
|
592
|
+
var m = (
|
|
593
593
|
/** @type {Function} */
|
|
594
594
|
(0, e.fn)()
|
|
595
595
|
), h = e.deps;
|
|
596
596
|
if (ae !== null) {
|
|
597
|
-
var
|
|
598
|
-
if (
|
|
599
|
-
for (h.length =
|
|
600
|
-
h[
|
|
597
|
+
var b;
|
|
598
|
+
if (cr(e, he), h !== null && he > 0)
|
|
599
|
+
for (h.length = he + ae.length, b = 0; b < ae.length; b++)
|
|
600
|
+
h[he + b] = ae[b];
|
|
601
601
|
else
|
|
602
602
|
e.deps = h = ae;
|
|
603
|
-
if (!
|
|
604
|
-
for (
|
|
605
|
-
((k = h[
|
|
606
|
-
} else h !== null &&
|
|
607
|
-
if (
|
|
608
|
-
for (
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
603
|
+
if (!Ue)
|
|
604
|
+
for (b = he; b < h.length; b++)
|
|
605
|
+
((k = h[b]).reactions ?? (k.reactions = [])).push(e);
|
|
606
|
+
} else h !== null && he < h.length && (cr(e, he), h.length = he);
|
|
607
|
+
if (gi() && be !== null && !Ve && h !== null && (e.f & (_e | ot | ze)) === 0)
|
|
608
|
+
for (b = 0; b < /** @type {Source[]} */
|
|
609
|
+
be.length; b++)
|
|
610
|
+
Li(
|
|
611
|
+
be[b],
|
|
612
612
|
/** @type {Effect} */
|
|
613
613
|
e
|
|
614
614
|
);
|
|
615
|
-
return o !== null && o !== e && (
|
|
616
|
-
|
|
615
|
+
return o !== null && o !== e && (sr++, be !== null && (i === null ? i = be : i.push(.../** @type {Source[]} */
|
|
616
|
+
be))), m;
|
|
617
617
|
} finally {
|
|
618
|
-
ae = t,
|
|
618
|
+
ae = t, he = r, be = i, j = o, Ue = n, ne = c, qa(s), Ve = u, e.f ^= Sr;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function _o(e, t) {
|
|
622
622
|
let r = t.reactions;
|
|
623
623
|
if (r !== null) {
|
|
624
|
-
var i =
|
|
624
|
+
var i = On.call(r, e);
|
|
625
625
|
if (i !== -1) {
|
|
626
626
|
var o = r.length - 1;
|
|
627
627
|
o === 0 ? r = t.reactions = null : (r[i] = r[o], r.pop());
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
r === null && (t.f &
|
|
630
|
+
r === null && (t.f & _e) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
631
631
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
632
632
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
633
|
-
(ae === null || !ae.includes(t)) && (
|
|
633
|
+
(ae === null || !ae.includes(t)) && (we(t, ot), (t.f & (ge | nr)) === 0 && (t.f ^= nr), vi(
|
|
634
634
|
/** @type {Derived} **/
|
|
635
635
|
t
|
|
636
|
-
),
|
|
636
|
+
), cr(
|
|
637
637
|
/** @type {Derived} **/
|
|
638
638
|
t,
|
|
639
639
|
0
|
|
640
640
|
));
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function cr(e, t) {
|
|
643
643
|
var r = e.deps;
|
|
644
644
|
if (r !== null)
|
|
645
645
|
for (var i = t; i < r.length; i++)
|
|
646
|
-
|
|
646
|
+
_o(e, r[i]);
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Yr(e) {
|
|
649
649
|
var t = e.f;
|
|
650
|
-
if ((t &
|
|
651
|
-
|
|
652
|
-
var r = $, i = ie, o =
|
|
653
|
-
$ = e,
|
|
650
|
+
if ((t & ur) === 0) {
|
|
651
|
+
we(e, fe);
|
|
652
|
+
var r = $, i = ie, o = at;
|
|
653
|
+
$ = e, at = !0;
|
|
654
654
|
try {
|
|
655
|
-
(t &
|
|
656
|
-
var n =
|
|
657
|
-
e.teardown = typeof n == "function" ? n : null, e.wv =
|
|
658
|
-
var
|
|
659
|
-
} catch (
|
|
660
|
-
|
|
655
|
+
(t & Fr) !== 0 ? Ro(e) : Ri(e), Vi(e);
|
|
656
|
+
var n = xi(e);
|
|
657
|
+
e.teardown = typeof n == "function" ? n : null, e.wv = Ci;
|
|
658
|
+
var c = e.deps, s;
|
|
659
|
+
} catch (u) {
|
|
660
|
+
vr(u, e, r, i || e.ctx);
|
|
661
661
|
} finally {
|
|
662
|
-
|
|
662
|
+
at = o, $ = r;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function wo() {
|
|
667
667
|
try {
|
|
668
|
-
|
|
668
|
+
to();
|
|
669
669
|
} catch (e) {
|
|
670
|
-
if (
|
|
671
|
-
|
|
670
|
+
if (lr !== null)
|
|
671
|
+
vr(e, lr, null);
|
|
672
672
|
else
|
|
673
673
|
throw e;
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
var e =
|
|
676
|
+
function Ti() {
|
|
677
|
+
var e = at;
|
|
678
678
|
try {
|
|
679
679
|
var t = 0;
|
|
680
|
-
for (
|
|
681
|
-
t++ > 1e3 &&
|
|
682
|
-
var r =
|
|
683
|
-
|
|
680
|
+
for (at = !0; Nt.length > 0; ) {
|
|
681
|
+
t++ > 1e3 && wo();
|
|
682
|
+
var r = Nt, i = r.length;
|
|
683
|
+
Nt = [];
|
|
684
684
|
for (var o = 0; o < i; o++) {
|
|
685
|
-
var n =
|
|
686
|
-
|
|
685
|
+
var n = Eo(r[o]);
|
|
686
|
+
Co(n);
|
|
687
687
|
}
|
|
688
|
-
|
|
688
|
+
Ht.clear();
|
|
689
689
|
}
|
|
690
690
|
} finally {
|
|
691
|
-
|
|
691
|
+
or = !1, at = e, lr = null;
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function Co(e) {
|
|
695
695
|
var t = e.length;
|
|
696
696
|
if (t !== 0)
|
|
697
697
|
for (var r = 0; r < t; r++) {
|
|
698
698
|
var i = e[r];
|
|
699
|
-
if ((i.f & (
|
|
699
|
+
if ((i.f & (ur | kt)) === 0)
|
|
700
700
|
try {
|
|
701
|
-
|
|
701
|
+
Mt(i) && (Yr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? $i(i) : i.fn = null));
|
|
702
702
|
} catch (o) {
|
|
703
|
-
|
|
703
|
+
vr(o, i, null, i.ctx);
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
|
|
709
|
-
for (var t =
|
|
707
|
+
function br(e) {
|
|
708
|
+
or || (or = !0, queueMicrotask(Ti));
|
|
709
|
+
for (var t = lr = e; t.parent !== null; ) {
|
|
710
710
|
t = t.parent;
|
|
711
711
|
var r = t.f;
|
|
712
|
-
if ((r & (
|
|
712
|
+
if ((r & (nt | Ne)) !== 0) {
|
|
713
713
|
if ((r & fe) === 0) return;
|
|
714
714
|
t.f ^= fe;
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
|
-
|
|
717
|
+
Nt.push(t);
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Eo(e) {
|
|
720
720
|
for (var t = [], r = e; r !== null; ) {
|
|
721
|
-
var i = r.f, o = (i & (
|
|
722
|
-
if (!n && (i &
|
|
723
|
-
if ((i &
|
|
721
|
+
var i = r.f, o = (i & (Ne | nt)) !== 0, n = o && (i & fe) !== 0;
|
|
722
|
+
if (!n && (i & kt) === 0) {
|
|
723
|
+
if ((i & ri) !== 0)
|
|
724
724
|
t.push(r);
|
|
725
725
|
else if (o)
|
|
726
726
|
r.f ^= fe;
|
|
727
727
|
else
|
|
728
728
|
try {
|
|
729
|
-
|
|
730
|
-
} catch (
|
|
731
|
-
|
|
729
|
+
Mt(r) && Yr(r);
|
|
730
|
+
} catch (u) {
|
|
731
|
+
vr(u, r, null, r.ctx);
|
|
732
732
|
}
|
|
733
|
-
var
|
|
734
|
-
if (
|
|
735
|
-
r =
|
|
733
|
+
var c = r.first;
|
|
734
|
+
if (c !== null) {
|
|
735
|
+
r = c;
|
|
736
736
|
continue;
|
|
737
737
|
}
|
|
738
738
|
}
|
|
@@ -742,25 +742,25 @@ function Ao(e) {
|
|
|
742
742
|
}
|
|
743
743
|
return t;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function L(e) {
|
|
746
746
|
for (var t; ; ) {
|
|
747
|
-
if (
|
|
747
|
+
if (Jn(), Nt.length === 0)
|
|
748
748
|
return (
|
|
749
749
|
/** @type {T} */
|
|
750
750
|
t
|
|
751
751
|
);
|
|
752
|
-
|
|
752
|
+
or = !0, Ti();
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
async function
|
|
756
|
-
await Promise.resolve(),
|
|
755
|
+
async function jr() {
|
|
756
|
+
await Promise.resolve(), L();
|
|
757
757
|
}
|
|
758
758
|
function l(e) {
|
|
759
|
-
var t = e.f, r = (t &
|
|
760
|
-
if (j !== null && !
|
|
759
|
+
var t = e.f, r = (t & _e) !== 0;
|
|
760
|
+
if (j !== null && !Ve) {
|
|
761
761
|
if (!(ne != null && ne.includes(e))) {
|
|
762
762
|
var i = j.deps;
|
|
763
|
-
e.rv <
|
|
763
|
+
e.rv < sr && (e.rv = sr, ae === null && i !== null && i[he] === e ? he++ : ae === null ? ae = [e] : (!Ue || !ae.includes(e)) && ae.push(e));
|
|
764
764
|
}
|
|
765
765
|
} else if (r && /** @type {Derived} */
|
|
766
766
|
e.deps === null && /** @type {Derived} */
|
|
@@ -769,37 +769,37 @@ function l(e) {
|
|
|
769
769
|
/** @type {Derived} */
|
|
770
770
|
e
|
|
771
771
|
), n = o.parent;
|
|
772
|
-
n !== null && (n.f &
|
|
772
|
+
n !== null && (n.f & ge) === 0 && (o.f ^= ge);
|
|
773
773
|
}
|
|
774
774
|
return r && (o = /** @type {Derived} */
|
|
775
|
-
e,
|
|
775
|
+
e, Mt(o) && pi(o)), Ft && Ht.has(e) ? Ht.get(e) : e.v;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
778
|
-
var t =
|
|
777
|
+
function it(e) {
|
|
778
|
+
var t = Ve;
|
|
779
779
|
try {
|
|
780
|
-
return
|
|
780
|
+
return Ve = !0, e();
|
|
781
781
|
} finally {
|
|
782
|
-
|
|
782
|
+
Ve = t;
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
-
const
|
|
786
|
-
function
|
|
787
|
-
e.f = e.f &
|
|
785
|
+
const Lo = -7169;
|
|
786
|
+
function we(e, t) {
|
|
787
|
+
e.f = e.f & Lo | t;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
$ === null && j === null &&
|
|
789
|
+
function xo(e) {
|
|
790
|
+
$ === null && j === null && eo(), j !== null && (j.f & ge) !== 0 && $ === null && Qn(), Ft && Xn();
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function To(e, t) {
|
|
793
793
|
var r = t.last;
|
|
794
794
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function lt(e, t, r, i = !0) {
|
|
797
797
|
var o = $, n = {
|
|
798
798
|
ctx: ie,
|
|
799
799
|
deps: null,
|
|
800
800
|
nodes_start: null,
|
|
801
801
|
nodes_end: null,
|
|
802
|
-
f: e |
|
|
802
|
+
f: e | ze,
|
|
803
803
|
first: null,
|
|
804
804
|
fn: t,
|
|
805
805
|
last: null,
|
|
@@ -812,13 +812,13 @@ function it(e, t, r, i = !0) {
|
|
|
812
812
|
};
|
|
813
813
|
if (r)
|
|
814
814
|
try {
|
|
815
|
-
|
|
816
|
-
} catch (
|
|
817
|
-
throw
|
|
815
|
+
Yr(n), n.f |= Zn;
|
|
816
|
+
} catch (u) {
|
|
817
|
+
throw Ye(n), u;
|
|
818
818
|
}
|
|
819
|
-
else t !== null &&
|
|
820
|
-
var
|
|
821
|
-
if (!
|
|
819
|
+
else t !== null && br(n);
|
|
820
|
+
var c = r && n.deps === null && n.first === null && n.nodes_start === null && n.teardown === null && (n.f & (ai | ir)) === 0;
|
|
821
|
+
if (!c && i && (o !== null && To(n, o), j !== null && (j.f & _e) !== 0)) {
|
|
822
822
|
var s = (
|
|
823
823
|
/** @type {Derived} */
|
|
824
824
|
j
|
|
@@ -827,13 +827,13 @@ function it(e, t, r, i = !0) {
|
|
|
827
827
|
}
|
|
828
828
|
return n;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
const t =
|
|
832
|
-
return
|
|
830
|
+
function Wr(e) {
|
|
831
|
+
const t = lt(fr, null, !1);
|
|
832
|
+
return we(t, fe), t.teardown = e, t;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
835
|
-
|
|
836
|
-
var t = $ !== null && ($.f &
|
|
834
|
+
function zr(e) {
|
|
835
|
+
xo();
|
|
836
|
+
var t = $ !== null && ($.f & Ne) !== 0 && ie !== null && !ie.m;
|
|
837
837
|
if (t) {
|
|
838
838
|
var r = (
|
|
839
839
|
/** @type {ComponentContext} */
|
|
@@ -845,100 +845,100 @@ function Vr(e) {
|
|
|
845
845
|
reaction: j
|
|
846
846
|
});
|
|
847
847
|
} else {
|
|
848
|
-
var i =
|
|
848
|
+
var i = Kr(e);
|
|
849
849
|
return i;
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
function
|
|
853
|
-
const t =
|
|
852
|
+
function Io(e) {
|
|
853
|
+
const t = lt(nt, e, !0);
|
|
854
854
|
return () => {
|
|
855
|
-
|
|
855
|
+
Ye(t);
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
const t =
|
|
858
|
+
function Vo(e) {
|
|
859
|
+
const t = lt(nt, e, !0);
|
|
860
860
|
return (r = {}) => new Promise((i) => {
|
|
861
|
-
r.outro ?
|
|
862
|
-
|
|
863
|
-
}) : (
|
|
861
|
+
r.outro ? Dr(t, () => {
|
|
862
|
+
Ye(t), i(void 0);
|
|
863
|
+
}) : (Ye(t), i(void 0));
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
|
-
function
|
|
867
|
-
return
|
|
866
|
+
function Kr(e) {
|
|
867
|
+
return lt(ri, e, !1);
|
|
868
868
|
}
|
|
869
|
-
function
|
|
870
|
-
return
|
|
869
|
+
function Jr(e) {
|
|
870
|
+
return lt(fr, e, !0);
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Ie(e, t = [], r = dr) {
|
|
873
873
|
const i = t.map(r);
|
|
874
|
-
return
|
|
874
|
+
return Ii(() => e(...i.map(l)));
|
|
875
875
|
}
|
|
876
|
-
function
|
|
877
|
-
return
|
|
876
|
+
function Ii(e, t = 0) {
|
|
877
|
+
return lt(fr | Fr | t, e, !0);
|
|
878
878
|
}
|
|
879
|
-
function
|
|
880
|
-
return
|
|
879
|
+
function Nr(e, t = !0) {
|
|
880
|
+
return lt(fr | Ne, e, !0, t);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function Vi(e) {
|
|
883
883
|
var t = e.teardown;
|
|
884
884
|
if (t !== null) {
|
|
885
|
-
const r =
|
|
886
|
-
|
|
885
|
+
const r = Ft, i = j;
|
|
886
|
+
Ha(!0), je(null);
|
|
887
887
|
try {
|
|
888
888
|
t.call(null);
|
|
889
889
|
} finally {
|
|
890
|
-
|
|
890
|
+
Ha(r), je(i);
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Ri(e, t = !1) {
|
|
895
895
|
var r = e.first;
|
|
896
896
|
for (e.first = e.last = null; r !== null; ) {
|
|
897
897
|
var i = r.next;
|
|
898
|
-
(r.f &
|
|
898
|
+
(r.f & nt) !== 0 ? r.parent = null : Ye(r, t), r = i;
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Ro(e) {
|
|
902
902
|
for (var t = e.first; t !== null; ) {
|
|
903
903
|
var r = t.next;
|
|
904
|
-
(t.f &
|
|
904
|
+
(t.f & Ne) === 0 && Ye(t), t = r;
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function Ye(e, t = !0) {
|
|
908
908
|
var r = !1;
|
|
909
|
-
(t || (e.f &
|
|
909
|
+
(t || (e.f & Gn) !== 0) && e.nodes_start !== null && (ji(
|
|
910
910
|
e.nodes_start,
|
|
911
911
|
/** @type {TemplateNode} */
|
|
912
912
|
e.nodes_end
|
|
913
|
-
), r = !0),
|
|
913
|
+
), r = !0), Ri(e, t && !r), cr(e, 0), we(e, ur);
|
|
914
914
|
var i = e.transitions;
|
|
915
915
|
if (i !== null)
|
|
916
916
|
for (const n of i)
|
|
917
917
|
n.stop();
|
|
918
|
-
|
|
918
|
+
Vi(e);
|
|
919
919
|
var o = e.parent;
|
|
920
|
-
o !== null && o.first !== null &&
|
|
920
|
+
o !== null && o.first !== null && $i(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function ji(e, t) {
|
|
923
923
|
for (; e !== null; ) {
|
|
924
924
|
var r = e === t ? null : (
|
|
925
925
|
/** @type {TemplateNode} */
|
|
926
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__PURE__ */ We(e)
|
|
927
927
|
);
|
|
928
928
|
e.remove(), e = r;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function $i(e) {
|
|
932
932
|
var t = e.parent, r = e.prev, i = e.next;
|
|
933
933
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function Dr(e, t) {
|
|
936
936
|
var r = [];
|
|
937
|
-
|
|
938
|
-
|
|
937
|
+
Si(e, r, !0), jo(r, () => {
|
|
938
|
+
Ye(e), t && t();
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function jo(e, t) {
|
|
942
942
|
var r = e.length;
|
|
943
943
|
if (r > 0) {
|
|
944
944
|
var i = () => --r || t();
|
|
@@ -947,47 +947,47 @@ function xo(e, t) {
|
|
|
947
947
|
} else
|
|
948
948
|
t();
|
|
949
949
|
}
|
|
950
|
-
function
|
|
951
|
-
if ((e.f &
|
|
952
|
-
if (e.f ^=
|
|
953
|
-
for (const
|
|
954
|
-
(
|
|
950
|
+
function Si(e, t, r) {
|
|
951
|
+
if ((e.f & kt) === 0) {
|
|
952
|
+
if (e.f ^= kt, e.transitions !== null)
|
|
953
|
+
for (const c of e.transitions)
|
|
954
|
+
(c.is_global || r) && t.push(c);
|
|
955
955
|
for (var i = e.first; i !== null; ) {
|
|
956
|
-
var o = i.next, n = (i.f &
|
|
957
|
-
|
|
956
|
+
var o = i.next, n = (i.f & Mr) !== 0 || (i.f & Ne) !== 0;
|
|
957
|
+
Si(i, t, n ? r : !1), i = o;
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
|
|
961
|
+
function Ma(e) {
|
|
962
|
+
Pi(e, !0);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
if ((e.f &
|
|
966
|
-
e.f ^=
|
|
964
|
+
function Pi(e, t) {
|
|
965
|
+
if ((e.f & kt) !== 0) {
|
|
966
|
+
e.f ^= kt, (e.f & fe) === 0 && (e.f ^= fe), Mt(e) && (we(e, ze), br(e));
|
|
967
967
|
for (var r = e.first; r !== null; ) {
|
|
968
|
-
var i = r.next, o = (r.f &
|
|
969
|
-
|
|
968
|
+
var i = r.next, o = (r.f & Mr) !== 0 || (r.f & Ne) !== 0;
|
|
969
|
+
Pi(r, o ? t : !1), r = i;
|
|
970
970
|
}
|
|
971
971
|
if (e.transitions !== null)
|
|
972
972
|
for (const n of e.transitions)
|
|
973
973
|
(n.is_global || t) && n.in();
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
const
|
|
977
|
-
function
|
|
978
|
-
return
|
|
976
|
+
const $o = ["touchstart", "touchmove"];
|
|
977
|
+
function So(e) {
|
|
978
|
+
return $o.includes(e);
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function Po(e, t) {
|
|
981
981
|
if (t) {
|
|
982
982
|
const r = document.body;
|
|
983
|
-
e.autofocus = !0,
|
|
983
|
+
e.autofocus = !0, Br(() => {
|
|
984
984
|
document.activeElement === r && e.focus();
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
|
-
let
|
|
989
|
-
function
|
|
990
|
-
|
|
988
|
+
let Ba = !1;
|
|
989
|
+
function zi() {
|
|
990
|
+
Ba || (Ba = !0, document.addEventListener(
|
|
991
991
|
"reset",
|
|
992
992
|
(e) => {
|
|
993
993
|
Promise.resolve().then(() => {
|
|
@@ -1005,56 +1005,56 @@ function Vi() {
|
|
|
1005
1005
|
{ capture: !0 }
|
|
1006
1006
|
));
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function Ni(e) {
|
|
1009
1009
|
var t = j, r = $;
|
|
1010
|
-
|
|
1010
|
+
je(null), Ge(null);
|
|
1011
1011
|
try {
|
|
1012
1012
|
return e();
|
|
1013
1013
|
} finally {
|
|
1014
|
-
|
|
1014
|
+
je(t), Ge(r);
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
e.addEventListener(t, () =>
|
|
1017
|
+
function zo(e, t, r, i = r) {
|
|
1018
|
+
e.addEventListener(t, () => Ni(r));
|
|
1019
1019
|
const o = e.__on_r;
|
|
1020
1020
|
o ? e.__on_r = () => {
|
|
1021
1021
|
o(), i(!0);
|
|
1022
|
-
} : e.__on_r = () => i(!0),
|
|
1022
|
+
} : e.__on_r = () => i(!0), zi();
|
|
1023
1023
|
}
|
|
1024
|
-
const
|
|
1025
|
-
function
|
|
1024
|
+
const Di = /* @__PURE__ */ new Set(), qr = /* @__PURE__ */ new Set();
|
|
1025
|
+
function No(e, t, r, i = {}) {
|
|
1026
1026
|
function o(n) {
|
|
1027
|
-
if (i.capture ||
|
|
1028
|
-
return
|
|
1027
|
+
if (i.capture || Pt.call(t, n), !n.cancelBubble)
|
|
1028
|
+
return Ni(() => r == null ? void 0 : r.call(this, n));
|
|
1029
1029
|
}
|
|
1030
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1030
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Br(() => {
|
|
1031
1031
|
t.addEventListener(e, o, i);
|
|
1032
1032
|
}) : t.addEventListener(e, o, i), o;
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1035
|
-
var n = { capture: i, passive: o },
|
|
1036
|
-
(t === document.body || t === window || t === document) &&
|
|
1037
|
-
t.removeEventListener(e,
|
|
1034
|
+
function Me(e, t, r, i, o) {
|
|
1035
|
+
var n = { capture: i, passive: o }, c = No(e, t, r, n);
|
|
1036
|
+
(t === document.body || t === window || t === document) && Wr(() => {
|
|
1037
|
+
t.removeEventListener(e, c, n);
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function Do(e) {
|
|
1041
1041
|
for (var t = 0; t < e.length; t++)
|
|
1042
|
-
|
|
1043
|
-
for (var r of
|
|
1042
|
+
Di.add(e[t]);
|
|
1043
|
+
for (var r of qr)
|
|
1044
1044
|
r(e);
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
var
|
|
1046
|
+
function Pt(e) {
|
|
1047
|
+
var J;
|
|
1048
1048
|
var t = this, r = (
|
|
1049
1049
|
/** @type {Node} */
|
|
1050
1050
|
t.ownerDocument
|
|
1051
|
-
), i = e.type, o = ((
|
|
1051
|
+
), i = e.type, o = ((J = e.composedPath) == null ? void 0 : J.call(e)) || [], n = (
|
|
1052
1052
|
/** @type {null | Element} */
|
|
1053
1053
|
o[0] || e.target
|
|
1054
|
-
),
|
|
1054
|
+
), c = 0, s = e.__root;
|
|
1055
1055
|
if (s) {
|
|
1056
|
-
var
|
|
1057
|
-
if (
|
|
1056
|
+
var u = o.indexOf(s);
|
|
1057
|
+
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
1058
1058
|
window)) {
|
|
1059
1059
|
e.__root = t;
|
|
1060
1060
|
return;
|
|
@@ -1062,57 +1062,57 @@ function Rt(e) {
|
|
|
1062
1062
|
var d = o.indexOf(t);
|
|
1063
1063
|
if (d === -1)
|
|
1064
1064
|
return;
|
|
1065
|
-
|
|
1065
|
+
u <= d && (c = u);
|
|
1066
1066
|
}
|
|
1067
1067
|
if (n = /** @type {Element} */
|
|
1068
|
-
o[
|
|
1069
|
-
|
|
1068
|
+
o[c] || e.target, n !== t) {
|
|
1069
|
+
Dt(e, "currentTarget", {
|
|
1070
1070
|
configurable: !0,
|
|
1071
1071
|
get() {
|
|
1072
1072
|
return n || r;
|
|
1073
1073
|
}
|
|
1074
1074
|
});
|
|
1075
|
-
var
|
|
1076
|
-
|
|
1075
|
+
var m = j, h = $;
|
|
1076
|
+
je(null), Ge(null);
|
|
1077
1077
|
try {
|
|
1078
|
-
for (var
|
|
1078
|
+
for (var b, k = []; n !== null; ) {
|
|
1079
1079
|
var V = n.assignedSlot || n.parentNode || /** @type {any} */
|
|
1080
1080
|
n.host || null;
|
|
1081
1081
|
try {
|
|
1082
|
-
var
|
|
1083
|
-
if (
|
|
1082
|
+
var w = n["__" + i];
|
|
1083
|
+
if (w != null && (!/** @type {any} */
|
|
1084
1084
|
n.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1085
1085
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1086
1086
|
e.target === n))
|
|
1087
|
-
if (
|
|
1088
|
-
var [q, ...
|
|
1089
|
-
q.apply(n, [e, ...
|
|
1087
|
+
if (Qa(w)) {
|
|
1088
|
+
var [q, ...ue] = w;
|
|
1089
|
+
q.apply(n, [e, ...ue]);
|
|
1090
1090
|
} else
|
|
1091
|
-
|
|
1092
|
-
} catch (
|
|
1093
|
-
|
|
1091
|
+
w.call(n, e);
|
|
1092
|
+
} catch (te) {
|
|
1093
|
+
b ? k.push(te) : b = te;
|
|
1094
1094
|
}
|
|
1095
1095
|
if (e.cancelBubble || V === t || V === null)
|
|
1096
1096
|
break;
|
|
1097
1097
|
n = V;
|
|
1098
1098
|
}
|
|
1099
|
-
if (
|
|
1100
|
-
for (let
|
|
1099
|
+
if (b) {
|
|
1100
|
+
for (let te of k)
|
|
1101
1101
|
queueMicrotask(() => {
|
|
1102
|
-
throw
|
|
1102
|
+
throw te;
|
|
1103
1103
|
});
|
|
1104
|
-
throw
|
|
1104
|
+
throw b;
|
|
1105
1105
|
}
|
|
1106
1106
|
} finally {
|
|
1107
|
-
e.__root = t, delete e.currentTarget,
|
|
1107
|
+
e.__root = t, delete e.currentTarget, je(m), Ge(h);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function Xr(e) {
|
|
1112
1112
|
var t = document.createElement("template");
|
|
1113
1113
|
return t.innerHTML = e, t.content;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Re(e, t) {
|
|
1116
1116
|
var r = (
|
|
1117
1117
|
/** @type {Effect} */
|
|
1118
1118
|
$
|
|
@@ -1120,64 +1120,64 @@ function Ie(e, t) {
|
|
|
1120
1120
|
r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
|
|
1121
1121
|
}
|
|
1122
1122
|
// @__NO_SIDE_EFFECTS__
|
|
1123
|
-
function
|
|
1124
|
-
var r = (t &
|
|
1123
|
+
function Ce(e, t) {
|
|
1124
|
+
var r = (t & uo) !== 0, i = (t & ho) !== 0, o, n = !e.startsWith("<!>");
|
|
1125
1125
|
return () => {
|
|
1126
|
-
if (
|
|
1127
|
-
return
|
|
1128
|
-
o === void 0 && (o =
|
|
1129
|
-
/* @__PURE__ */
|
|
1130
|
-
var
|
|
1126
|
+
if (D)
|
|
1127
|
+
return Re(N, null), N;
|
|
1128
|
+
o === void 0 && (o = Xr(n ? e : "<!>" + e), r || (o = /** @type {Node} */
|
|
1129
|
+
/* @__PURE__ */ me(o)));
|
|
1130
|
+
var c = (
|
|
1131
1131
|
/** @type {TemplateNode} */
|
|
1132
|
-
i ||
|
|
1132
|
+
i || Ai ? document.importNode(o, !0) : o.cloneNode(!0)
|
|
1133
1133
|
);
|
|
1134
1134
|
if (r) {
|
|
1135
1135
|
var s = (
|
|
1136
1136
|
/** @type {TemplateNode} */
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
),
|
|
1137
|
+
/* @__PURE__ */ me(c)
|
|
1138
|
+
), u = (
|
|
1139
1139
|
/** @type {TemplateNode} */
|
|
1140
|
-
|
|
1140
|
+
c.lastChild
|
|
1141
1141
|
);
|
|
1142
|
-
|
|
1142
|
+
Re(s, u);
|
|
1143
1143
|
} else
|
|
1144
|
-
|
|
1145
|
-
return
|
|
1144
|
+
Re(c, c);
|
|
1145
|
+
return c;
|
|
1146
1146
|
};
|
|
1147
1147
|
}
|
|
1148
1148
|
// @__NO_SIDE_EFFECTS__
|
|
1149
|
-
function
|
|
1149
|
+
function pr(e, t, r = "svg") {
|
|
1150
1150
|
var i = !e.startsWith("<!>"), o = `<${r}>${i ? e : "<!>" + e}</${r}>`, n;
|
|
1151
1151
|
return () => {
|
|
1152
|
-
if (
|
|
1153
|
-
return
|
|
1152
|
+
if (D)
|
|
1153
|
+
return Re(N, null), N;
|
|
1154
1154
|
if (!n) {
|
|
1155
|
-
var
|
|
1155
|
+
var c = (
|
|
1156
1156
|
/** @type {DocumentFragment} */
|
|
1157
|
-
|
|
1157
|
+
Xr(o)
|
|
1158
1158
|
), s = (
|
|
1159
1159
|
/** @type {Element} */
|
|
1160
|
-
/* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ me(c)
|
|
1161
1161
|
);
|
|
1162
1162
|
n = /** @type {Element} */
|
|
1163
|
-
/* @__PURE__ */
|
|
1163
|
+
/* @__PURE__ */ me(s);
|
|
1164
1164
|
}
|
|
1165
|
-
var
|
|
1165
|
+
var u = (
|
|
1166
1166
|
/** @type {TemplateNode} */
|
|
1167
1167
|
n.cloneNode(!0)
|
|
1168
1168
|
);
|
|
1169
|
-
return
|
|
1169
|
+
return Re(u, u), u;
|
|
1170
1170
|
};
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
if (
|
|
1174
|
-
return
|
|
1175
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1176
|
-
return e.append(t, r),
|
|
1172
|
+
function Jt() {
|
|
1173
|
+
if (D)
|
|
1174
|
+
return Re(N, null), N;
|
|
1175
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = gr();
|
|
1176
|
+
return e.append(t, r), Re(t, r), e;
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
if (
|
|
1180
|
-
$.nodes_end =
|
|
1178
|
+
function H(e, t) {
|
|
1179
|
+
if (D) {
|
|
1180
|
+
$.nodes_end = N, _t();
|
|
1181
1181
|
return;
|
|
1182
1182
|
}
|
|
1183
1183
|
e !== null && e.before(
|
|
@@ -1185,209 +1185,209 @@ function O(e, t) {
|
|
|
1185
1185
|
t
|
|
1186
1186
|
);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function qo(e, t) {
|
|
1189
1189
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1190
1190
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + "");
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return
|
|
1192
|
+
function qi(e, t) {
|
|
1193
|
+
return Oi(e, t);
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
|
|
1197
|
-
const r = t.target, i =
|
|
1195
|
+
function Oo(e, t) {
|
|
1196
|
+
Pr(), t.intro = t.intro ?? !1;
|
|
1197
|
+
const r = t.target, i = D, o = N;
|
|
1198
1198
|
try {
|
|
1199
1199
|
for (var n = (
|
|
1200
1200
|
/** @type {TemplateNode} */
|
|
1201
|
-
/* @__PURE__ */
|
|
1201
|
+
/* @__PURE__ */ me(r)
|
|
1202
1202
|
); n && (n.nodeType !== 8 || /** @type {Comment} */
|
|
1203
|
-
n.data !==
|
|
1203
|
+
n.data !== Zr); )
|
|
1204
1204
|
n = /** @type {TemplateNode} */
|
|
1205
|
-
/* @__PURE__ */
|
|
1205
|
+
/* @__PURE__ */ We(n);
|
|
1206
1206
|
if (!n)
|
|
1207
|
-
throw
|
|
1208
|
-
|
|
1207
|
+
throw At;
|
|
1208
|
+
mt(!0), Ze(
|
|
1209
1209
|
/** @type {Comment} */
|
|
1210
1210
|
n
|
|
1211
|
-
),
|
|
1212
|
-
const
|
|
1213
|
-
if (
|
|
1214
|
-
|
|
1215
|
-
throw
|
|
1216
|
-
return
|
|
1217
|
-
|
|
1218
|
-
} catch (
|
|
1219
|
-
if (
|
|
1220
|
-
return t.recover === !1 &&
|
|
1221
|
-
throw
|
|
1211
|
+
), _t();
|
|
1212
|
+
const c = Oi(e, { ...t, anchor: n });
|
|
1213
|
+
if (N === null || N.nodeType !== 8 || /** @type {Comment} */
|
|
1214
|
+
N.data !== fi)
|
|
1215
|
+
throw hr(), At;
|
|
1216
|
+
return mt(!1), /** @type {Exports} */
|
|
1217
|
+
c;
|
|
1218
|
+
} catch (c) {
|
|
1219
|
+
if (c === At)
|
|
1220
|
+
return t.recover === !1 && ro(), Pr(), yo(r), mt(!1), qi(e, t);
|
|
1221
|
+
throw c;
|
|
1222
1222
|
} finally {
|
|
1223
|
-
|
|
1223
|
+
mt(i), Ze(o);
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
|
-
const
|
|
1227
|
-
function
|
|
1228
|
-
|
|
1229
|
-
var s = /* @__PURE__ */ new Set(),
|
|
1230
|
-
for (var
|
|
1231
|
-
var k = h[
|
|
1226
|
+
const bt = /* @__PURE__ */ new Map();
|
|
1227
|
+
function Oi(e, { target: t, anchor: r, props: i = {}, events: o, context: n, intro: c = !0 }) {
|
|
1228
|
+
Pr();
|
|
1229
|
+
var s = /* @__PURE__ */ new Set(), u = (h) => {
|
|
1230
|
+
for (var b = 0; b < h.length; b++) {
|
|
1231
|
+
var k = h[b];
|
|
1232
1232
|
if (!s.has(k)) {
|
|
1233
1233
|
s.add(k);
|
|
1234
|
-
var V =
|
|
1235
|
-
t.addEventListener(k,
|
|
1236
|
-
var
|
|
1237
|
-
|
|
1234
|
+
var V = So(k);
|
|
1235
|
+
t.addEventListener(k, Pt, { passive: V });
|
|
1236
|
+
var w = bt.get(k);
|
|
1237
|
+
w === void 0 ? (document.addEventListener(k, Pt, { passive: V }), bt.set(k, 1)) : bt.set(k, w + 1);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
};
|
|
1241
|
-
|
|
1242
|
-
var d = void 0,
|
|
1243
|
-
var h = r ?? t.appendChild(
|
|
1244
|
-
return
|
|
1241
|
+
u(Hn(Di)), qr.add(u);
|
|
1242
|
+
var d = void 0, m = Vo(() => {
|
|
1243
|
+
var h = r ?? t.appendChild(gr());
|
|
1244
|
+
return Nr(() => {
|
|
1245
1245
|
if (n) {
|
|
1246
|
-
|
|
1247
|
-
var
|
|
1246
|
+
di({});
|
|
1247
|
+
var b = (
|
|
1248
1248
|
/** @type {ComponentContext} */
|
|
1249
1249
|
ie
|
|
1250
1250
|
);
|
|
1251
|
-
|
|
1251
|
+
b.c = n;
|
|
1252
1252
|
}
|
|
1253
|
-
o && (i.$$events = o),
|
|
1253
|
+
o && (i.$$events = o), D && Re(
|
|
1254
1254
|
/** @type {TemplateNode} */
|
|
1255
1255
|
h,
|
|
1256
1256
|
null
|
|
1257
|
-
), d = e(h, i) || {},
|
|
1257
|
+
), d = e(h, i) || {}, D && ($.nodes_end = N), n && hi();
|
|
1258
1258
|
}), () => {
|
|
1259
1259
|
var V;
|
|
1260
|
-
for (var
|
|
1261
|
-
t.removeEventListener(
|
|
1260
|
+
for (var b of s) {
|
|
1261
|
+
t.removeEventListener(b, Pt);
|
|
1262
1262
|
var k = (
|
|
1263
1263
|
/** @type {number} */
|
|
1264
|
-
|
|
1264
|
+
bt.get(b)
|
|
1265
1265
|
);
|
|
1266
|
-
--k === 0 ? (document.removeEventListener(
|
|
1266
|
+
--k === 0 ? (document.removeEventListener(b, Pt), bt.delete(b)) : bt.set(b, k);
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1268
|
+
qr.delete(u), h !== r && ((V = h.parentNode) == null || V.removeChild(h));
|
|
1269
1269
|
};
|
|
1270
1270
|
});
|
|
1271
|
-
return
|
|
1272
|
-
}
|
|
1273
|
-
let
|
|
1274
|
-
function
|
|
1275
|
-
const r =
|
|
1276
|
-
return r ? (
|
|
1277
|
-
}
|
|
1278
|
-
function
|
|
1279
|
-
|
|
1280
|
-
var o = e, n = null,
|
|
1281
|
-
const
|
|
1282
|
-
d = !0, h(k,
|
|
1283
|
-
}, h = (
|
|
1284
|
-
if (s === (s =
|
|
1271
|
+
return Or.set(d, m), d;
|
|
1272
|
+
}
|
|
1273
|
+
let Or = /* @__PURE__ */ new WeakMap();
|
|
1274
|
+
function Ho(e, t) {
|
|
1275
|
+
const r = Or.get(e);
|
|
1276
|
+
return r ? (Or.delete(e), r(t)) : Promise.resolve();
|
|
1277
|
+
}
|
|
1278
|
+
function K(e, t, [r, i] = [0, 0]) {
|
|
1279
|
+
D && r === 0 && _t();
|
|
1280
|
+
var o = e, n = null, c = null, s = ce, u = r > 0 ? Mr : 0, d = !1;
|
|
1281
|
+
const m = (b, k = !0) => {
|
|
1282
|
+
d = !0, h(k, b);
|
|
1283
|
+
}, h = (b, k) => {
|
|
1284
|
+
if (s === (s = b)) return;
|
|
1285
1285
|
let V = !1;
|
|
1286
|
-
if (
|
|
1286
|
+
if (D && i !== -1) {
|
|
1287
1287
|
if (r === 0) {
|
|
1288
1288
|
const q = (
|
|
1289
1289
|
/** @type {Comment} */
|
|
1290
1290
|
o.data
|
|
1291
1291
|
);
|
|
1292
|
-
q ===
|
|
1292
|
+
q === Zr ? i = 0 : q === ci ? i = 1 / 0 : (i = parseInt(q.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
|
|
1293
1293
|
}
|
|
1294
|
-
const
|
|
1295
|
-
!!s ===
|
|
1294
|
+
const w = i > r;
|
|
1295
|
+
!!s === w && (o = mo(), Ze(o), mt(!1), V = !0, i = -1);
|
|
1296
1296
|
}
|
|
1297
|
-
s ? (n ?
|
|
1298
|
-
|
|
1299
|
-
})) : (
|
|
1297
|
+
s ? (n ? Ma(n) : k && (n = Nr(() => k(o))), c && Dr(c, () => {
|
|
1298
|
+
c = null;
|
|
1299
|
+
})) : (c ? Ma(c) : k && (c = Nr(() => k(o, [r + 1, i]))), n && Dr(n, () => {
|
|
1300
1300
|
n = null;
|
|
1301
|
-
})), V &&
|
|
1301
|
+
})), V && mt(!0);
|
|
1302
1302
|
};
|
|
1303
|
-
|
|
1304
|
-
d = !1, t(
|
|
1305
|
-
},
|
|
1303
|
+
Ii(() => {
|
|
1304
|
+
d = !1, t(m), d || h(null, null);
|
|
1305
|
+
}, u), D && (o = N);
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1308
|
-
var n = e,
|
|
1309
|
-
|
|
1307
|
+
function tt(e, t, r = !1, i = !1, o = !1) {
|
|
1308
|
+
var n = e, c = "";
|
|
1309
|
+
Ie(() => {
|
|
1310
1310
|
var s = (
|
|
1311
1311
|
/** @type {Effect} */
|
|
1312
1312
|
$
|
|
1313
1313
|
);
|
|
1314
|
-
if (
|
|
1315
|
-
|
|
1314
|
+
if (c === (c = t() ?? "")) {
|
|
1315
|
+
D && _t();
|
|
1316
1316
|
return;
|
|
1317
1317
|
}
|
|
1318
|
-
if (s.nodes_start !== null && (
|
|
1318
|
+
if (s.nodes_start !== null && (ji(
|
|
1319
1319
|
s.nodes_start,
|
|
1320
1320
|
/** @type {TemplateNode} */
|
|
1321
1321
|
s.nodes_end
|
|
1322
|
-
), s.nodes_start = s.nodes_end = null),
|
|
1323
|
-
if (
|
|
1324
|
-
|
|
1325
|
-
for (var
|
|
1326
|
-
|
|
1327
|
-
d =
|
|
1328
|
-
/* @__PURE__ */
|
|
1329
|
-
if (
|
|
1330
|
-
throw
|
|
1331
|
-
|
|
1322
|
+
), s.nodes_start = s.nodes_end = null), c !== "") {
|
|
1323
|
+
if (D) {
|
|
1324
|
+
N.data;
|
|
1325
|
+
for (var u = _t(), d = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
|
|
1326
|
+
u.data !== ""); )
|
|
1327
|
+
d = u, u = /** @type {TemplateNode} */
|
|
1328
|
+
/* @__PURE__ */ We(u);
|
|
1329
|
+
if (u === null)
|
|
1330
|
+
throw hr(), At;
|
|
1331
|
+
Re(N, d), n = Ze(u);
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
1334
|
-
var
|
|
1335
|
-
r ?
|
|
1336
|
-
var h =
|
|
1334
|
+
var m = c + "";
|
|
1335
|
+
r ? m = `<svg>${m}</svg>` : i && (m = `<math>${m}</math>`);
|
|
1336
|
+
var h = Xr(m);
|
|
1337
1337
|
if ((r || i) && (h = /** @type {Element} */
|
|
1338
|
-
/* @__PURE__ */
|
|
1338
|
+
/* @__PURE__ */ me(h)), Re(
|
|
1339
1339
|
/** @type {TemplateNode} */
|
|
1340
|
-
/* @__PURE__ */
|
|
1340
|
+
/* @__PURE__ */ me(h),
|
|
1341
1341
|
/** @type {TemplateNode} */
|
|
1342
1342
|
h.lastChild
|
|
1343
1343
|
), r || i)
|
|
1344
|
-
for (; /* @__PURE__ */
|
|
1344
|
+
for (; /* @__PURE__ */ me(h); )
|
|
1345
1345
|
n.before(
|
|
1346
1346
|
/** @type {Node} */
|
|
1347
|
-
/* @__PURE__ */
|
|
1347
|
+
/* @__PURE__ */ me(h)
|
|
1348
1348
|
);
|
|
1349
1349
|
else
|
|
1350
1350
|
n.before(h);
|
|
1351
1351
|
}
|
|
1352
1352
|
});
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Fo(e, t, r, i, o) {
|
|
1355
1355
|
var s;
|
|
1356
|
-
|
|
1357
|
-
var n = (s = t.$$slots) == null ? void 0 : s[r],
|
|
1358
|
-
n === !0 && (n = t.children,
|
|
1356
|
+
D && _t();
|
|
1357
|
+
var n = (s = t.$$slots) == null ? void 0 : s[r], c = !1;
|
|
1358
|
+
n === !0 && (n = t.children, c = !0), n === void 0 || n(e, c ? () => i : i);
|
|
1359
1359
|
}
|
|
1360
|
-
const
|
|
1360
|
+
const Ua = [...`
|
|
1361
1361
|
\r\f \v\uFEFF`];
|
|
1362
|
-
function
|
|
1362
|
+
function Mo(e, t, r) {
|
|
1363
1363
|
var i = "" + e;
|
|
1364
1364
|
if (r) {
|
|
1365
1365
|
for (var o in r)
|
|
1366
1366
|
if (r[o])
|
|
1367
1367
|
i = i ? i + " " + o : o;
|
|
1368
1368
|
else if (i.length)
|
|
1369
|
-
for (var n = o.length,
|
|
1370
|
-
var s =
|
|
1371
|
-
(
|
|
1369
|
+
for (var n = o.length, c = 0; (c = i.indexOf(o, c)) >= 0; ) {
|
|
1370
|
+
var s = c + n;
|
|
1371
|
+
(c === 0 || Ua.includes(i[c - 1])) && (s === i.length || Ua.includes(i[s])) ? i = (c === 0 ? "" : i.substring(0, c)) + i.substring(s + 1) : c = s;
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
return i === "" ? null : i;
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1377
|
-
var
|
|
1378
|
-
if (
|
|
1379
|
-
var s =
|
|
1380
|
-
(!
|
|
1376
|
+
function Bo(e, t, r, i, o, n) {
|
|
1377
|
+
var c = e.__className;
|
|
1378
|
+
if (D || c !== r || c === void 0) {
|
|
1379
|
+
var s = Mo(r, i, n);
|
|
1380
|
+
(!D || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : e.className = s), e.__className = r;
|
|
1381
1381
|
} else if (n && o !== n)
|
|
1382
|
-
for (var
|
|
1383
|
-
var d = !!n[
|
|
1384
|
-
(o == null || d !== !!o[
|
|
1382
|
+
for (var u in n) {
|
|
1383
|
+
var d = !!n[u];
|
|
1384
|
+
(o == null || d !== !!o[u]) && e.classList.toggle(u, d);
|
|
1385
1385
|
}
|
|
1386
1386
|
return n;
|
|
1387
1387
|
}
|
|
1388
|
-
const
|
|
1389
|
-
function
|
|
1390
|
-
if (
|
|
1388
|
+
const Uo = Symbol("is custom element"), Zo = Symbol("is html");
|
|
1389
|
+
function Za(e) {
|
|
1390
|
+
if (D) {
|
|
1391
1391
|
var t = !1, r = () => {
|
|
1392
1392
|
if (!t) {
|
|
1393
1393
|
if (t = !0, e.hasAttribute("value")) {
|
|
@@ -1400,97 +1400,97 @@ function Oa(e) {
|
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
};
|
|
1403
|
-
e.__on_r = r,
|
|
1403
|
+
e.__on_r = r, Kn(r), zi();
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1407
|
-
var r =
|
|
1406
|
+
function Go(e, t) {
|
|
1407
|
+
var r = Hi(e);
|
|
1408
1408
|
r.value === (r.value = // treat null and undefined the same for the initial value
|
|
1409
1409
|
t ?? void 0) || // @ts-expect-error
|
|
1410
1410
|
// `progress` elements always need their value set when it's `0`
|
|
1411
1411
|
e.value === t && (t !== 0 || e.nodeName !== "PROGRESS") || (e.value = t ?? "");
|
|
1412
1412
|
}
|
|
1413
1413
|
function R(e, t, r, i) {
|
|
1414
|
-
var o =
|
|
1415
|
-
|
|
1414
|
+
var o = Hi(e);
|
|
1415
|
+
D && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || o[t] !== (o[t] = r) && (t === "loading" && (e[Yn] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Yo(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Hi(e) {
|
|
1418
1418
|
return (
|
|
1419
1419
|
/** @type {Record<string | symbol, unknown>} **/
|
|
1420
1420
|
// @ts-expect-error
|
|
1421
1421
|
e.__attributes ?? (e.__attributes = {
|
|
1422
|
-
[
|
|
1423
|
-
[
|
|
1422
|
+
[Uo]: e.nodeName.includes("-"),
|
|
1423
|
+
[Zo]: e.namespaceURI === go
|
|
1424
1424
|
})
|
|
1425
1425
|
);
|
|
1426
1426
|
}
|
|
1427
|
-
var
|
|
1428
|
-
function
|
|
1429
|
-
var t =
|
|
1427
|
+
var Ga = /* @__PURE__ */ new Map();
|
|
1428
|
+
function Yo(e) {
|
|
1429
|
+
var t = Ga.get(e.nodeName);
|
|
1430
1430
|
if (t) return t;
|
|
1431
|
-
|
|
1431
|
+
Ga.set(e.nodeName, t = []);
|
|
1432
1432
|
for (var r, i = e, o = Element.prototype; o !== i; ) {
|
|
1433
|
-
r =
|
|
1433
|
+
r = Fn(i);
|
|
1434
1434
|
for (var n in r)
|
|
1435
1435
|
r[n].set && t.push(n);
|
|
1436
|
-
i =
|
|
1436
|
+
i = ei(i);
|
|
1437
1437
|
}
|
|
1438
1438
|
return t;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1441
|
-
|
|
1440
|
+
function Wo(e, t, r = t) {
|
|
1441
|
+
zo(e, "change", (i) => {
|
|
1442
1442
|
var o = i ? e.defaultChecked : e.checked;
|
|
1443
1443
|
r(o);
|
|
1444
1444
|
}), // If we are hydrating and the value has since changed,
|
|
1445
1445
|
// then use the update value from the input instead.
|
|
1446
|
-
(
|
|
1447
|
-
|
|
1446
|
+
(D && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
|
|
1447
|
+
it(t) == null) && r(e.checked), Jr(() => {
|
|
1448
1448
|
var i = t();
|
|
1449
1449
|
e.checked = !!i;
|
|
1450
1450
|
});
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1453
|
-
return e === t || (e == null ? void 0 : e[
|
|
1452
|
+
function Ya(e, t) {
|
|
1453
|
+
return e === t || (e == null ? void 0 : e[zt]) === t;
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1456
|
-
return
|
|
1455
|
+
function Xt(e = {}, t, r, i) {
|
|
1456
|
+
return Kr(() => {
|
|
1457
1457
|
var o, n;
|
|
1458
|
-
return
|
|
1459
|
-
o = n, n = [],
|
|
1460
|
-
e !== r(...n) && (t(e, ...n), o &&
|
|
1458
|
+
return Jr(() => {
|
|
1459
|
+
o = n, n = [], it(() => {
|
|
1460
|
+
e !== r(...n) && (t(e, ...n), o && Ya(r(...o), e) && t(null, ...o));
|
|
1461
1461
|
});
|
|
1462
1462
|
}), () => {
|
|
1463
|
-
|
|
1464
|
-
n &&
|
|
1463
|
+
Br(() => {
|
|
1464
|
+
n && Ya(r(...n), e) && t(null, ...n);
|
|
1465
1465
|
});
|
|
1466
1466
|
};
|
|
1467
1467
|
}), e;
|
|
1468
1468
|
}
|
|
1469
|
-
let
|
|
1470
|
-
function
|
|
1469
|
+
let Qt = !1, Hr = Symbol();
|
|
1470
|
+
function Ko(e, t, r) {
|
|
1471
1471
|
const i = r[t] ?? (r[t] = {
|
|
1472
1472
|
store: null,
|
|
1473
|
-
source: /* @__PURE__ */
|
|
1474
|
-
unsubscribe:
|
|
1473
|
+
source: /* @__PURE__ */ Gr(void 0),
|
|
1474
|
+
unsubscribe: yt
|
|
1475
1475
|
});
|
|
1476
|
-
if (i.store !== e && !(
|
|
1476
|
+
if (i.store !== e && !(Hr in r))
|
|
1477
1477
|
if (i.unsubscribe(), i.store = e ?? null, e == null)
|
|
1478
|
-
i.source.v = void 0, i.unsubscribe =
|
|
1478
|
+
i.source.v = void 0, i.unsubscribe = yt;
|
|
1479
1479
|
else {
|
|
1480
1480
|
var o = !0;
|
|
1481
|
-
i.unsubscribe =
|
|
1482
|
-
o ? i.source.v = n :
|
|
1481
|
+
i.unsubscribe = Bi(e, (n) => {
|
|
1482
|
+
o ? i.source.v = n : A(i.source, n);
|
|
1483
1483
|
}), o = !1;
|
|
1484
1484
|
}
|
|
1485
|
-
return e &&
|
|
1485
|
+
return e && Hr in r ? rr(e) : l(i.source);
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function Jo() {
|
|
1488
1488
|
const e = {};
|
|
1489
1489
|
function t() {
|
|
1490
|
-
|
|
1490
|
+
Wr(() => {
|
|
1491
1491
|
for (var r in e)
|
|
1492
1492
|
e[r].unsubscribe();
|
|
1493
|
-
|
|
1493
|
+
Dt(e, Hr, {
|
|
1494
1494
|
enumerable: !1,
|
|
1495
1495
|
value: !0
|
|
1496
1496
|
});
|
|
@@ -1498,72 +1498,72 @@ function Zo() {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
return [e, t];
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1502
|
-
var t =
|
|
1501
|
+
function Xo(e) {
|
|
1502
|
+
var t = Qt;
|
|
1503
1503
|
try {
|
|
1504
|
-
return
|
|
1504
|
+
return Qt = !1, [e(), Qt];
|
|
1505
1505
|
} finally {
|
|
1506
|
-
|
|
1506
|
+
Qt = t;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Wa(e) {
|
|
1510
1510
|
var t;
|
|
1511
1511
|
return ((t = e.ctx) == null ? void 0 : t.d) ?? !1;
|
|
1512
1512
|
}
|
|
1513
1513
|
function x(e, t, r, i) {
|
|
1514
|
-
var
|
|
1515
|
-
var o = (r &
|
|
1516
|
-
|
|
1514
|
+
var st;
|
|
1515
|
+
var o = (r & lo) !== 0, n = !0, c = (r & co) !== 0, s = (r & fo) !== 0, u = !1, d;
|
|
1516
|
+
c ? [d, u] = Xo(() => (
|
|
1517
1517
|
/** @type {V} */
|
|
1518
1518
|
e[t]
|
|
1519
1519
|
)) : d = /** @type {V} */
|
|
1520
1520
|
e[t];
|
|
1521
|
-
var
|
|
1521
|
+
var m = zt in e || ii in e, h = c && (((st = rt(e, t)) == null ? void 0 : st.set) ?? (m && t in e && ((F) => e[t] = F))) || void 0, b = (
|
|
1522
1522
|
/** @type {V} */
|
|
1523
1523
|
i
|
|
1524
|
-
), k = !0, V = !1,
|
|
1524
|
+
), k = !0, V = !1, w = () => (V = !0, k && (k = !1, s ? b = it(
|
|
1525
1525
|
/** @type {() => V} */
|
|
1526
1526
|
i
|
|
1527
|
-
) :
|
|
1528
|
-
i),
|
|
1529
|
-
d === void 0 && i !== void 0 && (h && n &&
|
|
1527
|
+
) : b = /** @type {V} */
|
|
1528
|
+
i), b);
|
|
1529
|
+
d === void 0 && i !== void 0 && (h && n && ao(), d = w(), h && h(d));
|
|
1530
1530
|
var q;
|
|
1531
1531
|
if (q = () => {
|
|
1532
|
-
var
|
|
1532
|
+
var F = (
|
|
1533
1533
|
/** @type {V} */
|
|
1534
1534
|
e[t]
|
|
1535
1535
|
);
|
|
1536
|
-
return
|
|
1537
|
-
}, (r &
|
|
1536
|
+
return F === void 0 ? w() : (k = !0, V = !1, F);
|
|
1537
|
+
}, (r & so) === 0)
|
|
1538
1538
|
return q;
|
|
1539
1539
|
if (h) {
|
|
1540
|
-
var
|
|
1541
|
-
return function(
|
|
1542
|
-
return arguments.length > 0 ? ((!oe ||
|
|
1540
|
+
var ue = e.$$legacy;
|
|
1541
|
+
return function(F, oe) {
|
|
1542
|
+
return arguments.length > 0 ? ((!oe || ue || u) && h(oe ? q() : F), F) : q();
|
|
1543
1543
|
};
|
|
1544
1544
|
}
|
|
1545
|
-
var
|
|
1546
|
-
var
|
|
1547
|
-
return
|
|
1545
|
+
var J = !1, te = /* @__PURE__ */ Gr(d), X = /* @__PURE__ */ dr(() => {
|
|
1546
|
+
var F = q(), oe = l(te);
|
|
1547
|
+
return J ? (J = !1, oe) : te.v = F;
|
|
1548
1548
|
});
|
|
1549
|
-
return
|
|
1549
|
+
return c && l(X), o || (X.equals = Ur), function(F, oe) {
|
|
1550
1550
|
if (arguments.length > 0) {
|
|
1551
|
-
const
|
|
1552
|
-
if (!
|
|
1553
|
-
if (
|
|
1554
|
-
return
|
|
1555
|
-
|
|
1551
|
+
const ye = oe ? l(X) : c ? Be(F) : F;
|
|
1552
|
+
if (!X.equals(ye)) {
|
|
1553
|
+
if (J = !0, A(te, ye), V && b !== void 0 && (b = ye), Wa(X))
|
|
1554
|
+
return F;
|
|
1555
|
+
it(() => l(X));
|
|
1556
1556
|
}
|
|
1557
|
-
return
|
|
1557
|
+
return F;
|
|
1558
1558
|
}
|
|
1559
|
-
return
|
|
1559
|
+
return Wa(X) ? X.v : l(X);
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1563
|
-
return new
|
|
1562
|
+
function Qo(e) {
|
|
1563
|
+
return new el(e);
|
|
1564
1564
|
}
|
|
1565
|
-
var
|
|
1566
|
-
class
|
|
1565
|
+
var Pe, pe;
|
|
1566
|
+
class el {
|
|
1567
1567
|
/**
|
|
1568
1568
|
* @param {ComponentConstructorOptions & {
|
|
1569
1569
|
* component: any;
|
|
@@ -1571,57 +1571,57 @@ class Wo {
|
|
|
1571
1571
|
*/
|
|
1572
1572
|
constructor(t) {
|
|
1573
1573
|
/** @type {any} */
|
|
1574
|
-
|
|
1574
|
+
Ir(this, Pe);
|
|
1575
1575
|
/** @type {Record<string, any>} */
|
|
1576
|
-
|
|
1576
|
+
Ir(this, pe);
|
|
1577
1577
|
var n;
|
|
1578
|
-
var r = /* @__PURE__ */ new Map(), i = (
|
|
1579
|
-
var
|
|
1580
|
-
return r.set(
|
|
1578
|
+
var r = /* @__PURE__ */ new Map(), i = (c, s) => {
|
|
1579
|
+
var u = /* @__PURE__ */ Gr(s);
|
|
1580
|
+
return r.set(c, u), u;
|
|
1581
1581
|
};
|
|
1582
1582
|
const o = new Proxy(
|
|
1583
1583
|
{ ...t.props || {}, $$events: {} },
|
|
1584
1584
|
{
|
|
1585
|
-
get(
|
|
1586
|
-
return l(r.get(s) ?? i(s, Reflect.get(
|
|
1585
|
+
get(c, s) {
|
|
1586
|
+
return l(r.get(s) ?? i(s, Reflect.get(c, s)));
|
|
1587
1587
|
},
|
|
1588
|
-
has(
|
|
1589
|
-
return s ===
|
|
1588
|
+
has(c, s) {
|
|
1589
|
+
return s === ii ? !0 : (l(r.get(s) ?? i(s, Reflect.get(c, s))), Reflect.has(c, s));
|
|
1590
1590
|
},
|
|
1591
|
-
set(
|
|
1592
|
-
return
|
|
1591
|
+
set(c, s, u) {
|
|
1592
|
+
return A(r.get(s) ?? i(s, u), u), Reflect.set(c, s, u);
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
);
|
|
1596
|
-
|
|
1596
|
+
Vr(this, pe, (t.hydrate ? Oo : qi)(t.component, {
|
|
1597
1597
|
target: t.target,
|
|
1598
1598
|
anchor: t.anchor,
|
|
1599
1599
|
props: o,
|
|
1600
1600
|
context: t.context,
|
|
1601
1601
|
intro: t.intro ?? !1,
|
|
1602
1602
|
recover: t.recover
|
|
1603
|
-
})), (!((n = t == null ? void 0 : t.props) != null && n.$$host) || t.sync === !1) &&
|
|
1604
|
-
for (const
|
|
1605
|
-
|
|
1603
|
+
})), (!((n = t == null ? void 0 : t.props) != null && n.$$host) || t.sync === !1) && L(), Vr(this, Pe, o.$$events);
|
|
1604
|
+
for (const c of Object.keys(se(this, pe)))
|
|
1605
|
+
c === "$set" || c === "$destroy" || c === "$on" || Dt(this, c, {
|
|
1606
1606
|
get() {
|
|
1607
|
-
return se(this,
|
|
1607
|
+
return se(this, pe)[c];
|
|
1608
1608
|
},
|
|
1609
1609
|
/** @param {any} value */
|
|
1610
1610
|
set(s) {
|
|
1611
|
-
se(this,
|
|
1611
|
+
se(this, pe)[c] = s;
|
|
1612
1612
|
},
|
|
1613
1613
|
enumerable: !0
|
|
1614
1614
|
});
|
|
1615
|
-
se(this,
|
|
1616
|
-
(
|
|
1617
|
-
Object.assign(o,
|
|
1618
|
-
}, se(this,
|
|
1619
|
-
|
|
1615
|
+
se(this, pe).$set = /** @param {Record<string, any>} next */
|
|
1616
|
+
(c) => {
|
|
1617
|
+
Object.assign(o, c);
|
|
1618
|
+
}, se(this, pe).$destroy = () => {
|
|
1619
|
+
Ho(se(this, pe));
|
|
1620
1620
|
};
|
|
1621
1621
|
}
|
|
1622
1622
|
/** @param {Record<string, any>} props */
|
|
1623
1623
|
$set(t) {
|
|
1624
|
-
se(this,
|
|
1624
|
+
se(this, pe).$set(t);
|
|
1625
1625
|
}
|
|
1626
1626
|
/**
|
|
1627
1627
|
* @param {string} event
|
|
@@ -1629,22 +1629,22 @@ class Wo {
|
|
|
1629
1629
|
* @returns {any}
|
|
1630
1630
|
*/
|
|
1631
1631
|
$on(t, r) {
|
|
1632
|
-
se(this,
|
|
1632
|
+
se(this, Pe)[t] = se(this, Pe)[t] || [];
|
|
1633
1633
|
const i = (...o) => r.call(this, ...o);
|
|
1634
|
-
return se(this,
|
|
1635
|
-
se(this,
|
|
1634
|
+
return se(this, Pe)[t].push(i), () => {
|
|
1635
|
+
se(this, Pe)[t] = se(this, Pe)[t].filter(
|
|
1636
1636
|
/** @param {any} fn */
|
|
1637
1637
|
(o) => o !== i
|
|
1638
1638
|
);
|
|
1639
1639
|
};
|
|
1640
1640
|
}
|
|
1641
1641
|
$destroy() {
|
|
1642
|
-
se(this,
|
|
1642
|
+
se(this, pe).$destroy();
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
|
-
|
|
1646
|
-
let
|
|
1647
|
-
typeof HTMLElement == "function" && (
|
|
1645
|
+
Pe = new WeakMap(), pe = new WeakMap();
|
|
1646
|
+
let Fi;
|
|
1647
|
+
typeof HTMLElement == "function" && (Fi = class extends HTMLElement {
|
|
1648
1648
|
/**
|
|
1649
1649
|
* @param {*} $$componentCtor
|
|
1650
1650
|
* @param {*} $$slots
|
|
@@ -1653,25 +1653,25 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1653
1653
|
constructor(t, r, i) {
|
|
1654
1654
|
super();
|
|
1655
1655
|
/** The Svelte component constructor */
|
|
1656
|
-
|
|
1656
|
+
ke(this, "$$ctor");
|
|
1657
1657
|
/** Slots */
|
|
1658
|
-
|
|
1658
|
+
ke(this, "$$s");
|
|
1659
1659
|
/** @type {any} The Svelte component instance */
|
|
1660
|
-
|
|
1660
|
+
ke(this, "$$c");
|
|
1661
1661
|
/** Whether or not the custom element is connected */
|
|
1662
|
-
|
|
1662
|
+
ke(this, "$$cn", !1);
|
|
1663
1663
|
/** @type {Record<string, any>} Component props data */
|
|
1664
|
-
|
|
1664
|
+
ke(this, "$$d", {});
|
|
1665
1665
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1666
|
-
|
|
1666
|
+
ke(this, "$$r", !1);
|
|
1667
1667
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1668
|
-
|
|
1668
|
+
ke(this, "$$p_d", {});
|
|
1669
1669
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1670
|
-
|
|
1670
|
+
ke(this, "$$l", {});
|
|
1671
1671
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1672
|
-
|
|
1672
|
+
ke(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1673
1673
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
1674
|
-
|
|
1674
|
+
ke(this, "$$me");
|
|
1675
1675
|
this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
|
|
1676
1676
|
}
|
|
1677
1677
|
/**
|
|
@@ -1701,22 +1701,22 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1701
1701
|
if (this.$$cn = !0, !this.$$c) {
|
|
1702
1702
|
let t = function(o) {
|
|
1703
1703
|
return (n) => {
|
|
1704
|
-
const
|
|
1705
|
-
o !== "default" && (
|
|
1704
|
+
const c = document.createElement("slot");
|
|
1705
|
+
o !== "default" && (c.name = o), H(n, c);
|
|
1706
1706
|
};
|
|
1707
1707
|
};
|
|
1708
1708
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1709
1709
|
return;
|
|
1710
|
-
const r = {}, i =
|
|
1710
|
+
const r = {}, i = tl(this);
|
|
1711
1711
|
for (const o of this.$$s)
|
|
1712
1712
|
o in i && (o === "default" && !this.$$d.children ? (this.$$d.children = t(o), r.default = !0) : r[o] = t(o));
|
|
1713
1713
|
for (const o of this.attributes) {
|
|
1714
1714
|
const n = this.$$g_p(o.name);
|
|
1715
|
-
n in this.$$d || (this.$$d[n] =
|
|
1715
|
+
n in this.$$d || (this.$$d[n] = tr(n, o.value, this.$$p_d, "toProp"));
|
|
1716
1716
|
}
|
|
1717
1717
|
for (const o in this.$$p_d)
|
|
1718
1718
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
1719
|
-
this.$$c =
|
|
1719
|
+
this.$$c = Qo({
|
|
1720
1720
|
component: this.$$ctor,
|
|
1721
1721
|
target: this.shadowRoot || this,
|
|
1722
1722
|
props: {
|
|
@@ -1724,28 +1724,28 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1724
1724
|
$$slots: r,
|
|
1725
1725
|
$$host: this
|
|
1726
1726
|
}
|
|
1727
|
-
}), this.$$me =
|
|
1728
|
-
|
|
1727
|
+
}), this.$$me = Io(() => {
|
|
1728
|
+
Jr(() => {
|
|
1729
1729
|
var o;
|
|
1730
1730
|
this.$$r = !0;
|
|
1731
|
-
for (const n of
|
|
1731
|
+
for (const n of ar(this.$$c)) {
|
|
1732
1732
|
if (!((o = this.$$p_d[n]) != null && o.reflect)) continue;
|
|
1733
1733
|
this.$$d[n] = this.$$c[n];
|
|
1734
|
-
const
|
|
1734
|
+
const c = tr(
|
|
1735
1735
|
n,
|
|
1736
1736
|
this.$$d[n],
|
|
1737
1737
|
this.$$p_d,
|
|
1738
1738
|
"toAttribute"
|
|
1739
1739
|
);
|
|
1740
|
-
|
|
1740
|
+
c == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, c);
|
|
1741
1741
|
}
|
|
1742
1742
|
this.$$r = !1;
|
|
1743
1743
|
});
|
|
1744
1744
|
});
|
|
1745
1745
|
for (const o in this.$$l)
|
|
1746
1746
|
for (const n of this.$$l[o]) {
|
|
1747
|
-
const
|
|
1748
|
-
this.$$l_u.set(n,
|
|
1747
|
+
const c = this.$$c.$on(o, n);
|
|
1748
|
+
this.$$l_u.set(n, c);
|
|
1749
1749
|
}
|
|
1750
1750
|
this.$$l = {};
|
|
1751
1751
|
}
|
|
@@ -1759,7 +1759,7 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1759
1759
|
*/
|
|
1760
1760
|
attributeChangedCallback(t, r, i) {
|
|
1761
1761
|
var o;
|
|
1762
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
1762
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = tr(t, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
|
|
1763
1763
|
}
|
|
1764
1764
|
disconnectedCallback() {
|
|
1765
1765
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -1770,12 +1770,12 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
1770
1770
|
* @param {string} attribute_name
|
|
1771
1771
|
*/
|
|
1772
1772
|
$$g_p(t) {
|
|
1773
|
-
return
|
|
1773
|
+
return ar(this.$$p_d).find(
|
|
1774
1774
|
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
1775
1775
|
) || t;
|
|
1776
1776
|
}
|
|
1777
1777
|
});
|
|
1778
|
-
function
|
|
1778
|
+
function tr(e, t, r, i) {
|
|
1779
1779
|
var n;
|
|
1780
1780
|
const o = (n = r[e]) == null ? void 0 : n.type;
|
|
1781
1781
|
if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
|
|
@@ -1806,7 +1806,7 @@ function Kt(e, t, r, i) {
|
|
|
1806
1806
|
return t;
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function tl(e) {
|
|
1810
1810
|
const t = {};
|
|
1811
1811
|
return e.childNodes.forEach((r) => {
|
|
1812
1812
|
t[
|
|
@@ -1815,58 +1815,58 @@ function Ko(e) {
|
|
|
1815
1815
|
] = !0;
|
|
1816
1816
|
}), t;
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1819
|
-
let
|
|
1818
|
+
function rl(e, t, r, i, o, n) {
|
|
1819
|
+
let c = class extends Fi {
|
|
1820
1820
|
constructor() {
|
|
1821
1821
|
super(e, r, o), this.$$p_d = t;
|
|
1822
1822
|
}
|
|
1823
1823
|
static get observedAttributes() {
|
|
1824
|
-
return
|
|
1824
|
+
return ar(t).map(
|
|
1825
1825
|
(s) => (t[s].attribute || s).toLowerCase()
|
|
1826
1826
|
);
|
|
1827
1827
|
}
|
|
1828
1828
|
};
|
|
1829
|
-
return
|
|
1830
|
-
|
|
1829
|
+
return ar(t).forEach((s) => {
|
|
1830
|
+
Dt(c.prototype, s, {
|
|
1831
1831
|
get() {
|
|
1832
1832
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
1833
1833
|
},
|
|
1834
|
-
set(
|
|
1834
|
+
set(u) {
|
|
1835
1835
|
var h;
|
|
1836
|
-
|
|
1836
|
+
u = tr(s, u, t), this.$$d[s] = u;
|
|
1837
1837
|
var d = this.$$c;
|
|
1838
1838
|
if (d) {
|
|
1839
|
-
var
|
|
1840
|
-
|
|
1839
|
+
var m = (h = rt(d, s)) == null ? void 0 : h.get;
|
|
1840
|
+
m ? d[s] = u : d.$set({ [s]: u });
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
});
|
|
1844
1844
|
}), i.forEach((s) => {
|
|
1845
|
-
|
|
1845
|
+
Dt(c.prototype, s, {
|
|
1846
1846
|
get() {
|
|
1847
|
-
var
|
|
1848
|
-
return (
|
|
1847
|
+
var u;
|
|
1848
|
+
return (u = this.$$c) == null ? void 0 : u[s];
|
|
1849
1849
|
}
|
|
1850
1850
|
});
|
|
1851
1851
|
}), e.element = /** @type {any} */
|
|
1852
|
-
|
|
1852
|
+
c, c;
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1855
|
-
ie === null &&
|
|
1856
|
-
const t =
|
|
1854
|
+
function Mi(e) {
|
|
1855
|
+
ie === null && ui(), zr(() => {
|
|
1856
|
+
const t = it(e);
|
|
1857
1857
|
if (typeof t == "function") return (
|
|
1858
1858
|
/** @type {() => void} */
|
|
1859
1859
|
t
|
|
1860
1860
|
);
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
ie === null &&
|
|
1863
|
+
function al(e) {
|
|
1864
|
+
ie === null && ui(), Mi(() => () => it(e));
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function Bi(e, t, r) {
|
|
1867
1867
|
if (e == null)
|
|
1868
|
-
return t(void 0),
|
|
1869
|
-
const i =
|
|
1868
|
+
return t(void 0), yt;
|
|
1869
|
+
const i = it(
|
|
1870
1870
|
() => e.subscribe(
|
|
1871
1871
|
t,
|
|
1872
1872
|
// @ts-expect-error
|
|
@@ -1875,19 +1875,19 @@ function Di(e, t, r) {
|
|
|
1875
1875
|
);
|
|
1876
1876
|
return i.unsubscribe ? () => i.unsubscribe() : i;
|
|
1877
1877
|
}
|
|
1878
|
-
const
|
|
1879
|
-
function
|
|
1878
|
+
const pt = [];
|
|
1879
|
+
function il(e, t = yt) {
|
|
1880
1880
|
let r = null;
|
|
1881
1881
|
const i = /* @__PURE__ */ new Set();
|
|
1882
1882
|
function o(s) {
|
|
1883
|
-
if (
|
|
1884
|
-
const
|
|
1883
|
+
if (si(e, s) && (e = s, r)) {
|
|
1884
|
+
const u = !pt.length;
|
|
1885
1885
|
for (const d of i)
|
|
1886
|
-
d[1](),
|
|
1887
|
-
if (
|
|
1888
|
-
for (let d = 0; d <
|
|
1889
|
-
|
|
1890
|
-
|
|
1886
|
+
d[1](), pt.push(d, e);
|
|
1887
|
+
if (u) {
|
|
1888
|
+
for (let d = 0; d < pt.length; d += 2)
|
|
1889
|
+
pt[d][0](pt[d + 1]);
|
|
1890
|
+
pt.length = 0;
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
@@ -1897,32 +1897,32 @@ function Qo(e, t = bt) {
|
|
|
1897
1897
|
e
|
|
1898
1898
|
));
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1901
|
-
const d = [s,
|
|
1902
|
-
return i.add(d), i.size === 1 && (r = t(o, n) ||
|
|
1900
|
+
function c(s, u = yt) {
|
|
1901
|
+
const d = [s, u];
|
|
1902
|
+
return i.add(d), i.size === 1 && (r = t(o, n) || yt), s(
|
|
1903
1903
|
/** @type {T} */
|
|
1904
1904
|
e
|
|
1905
1905
|
), () => {
|
|
1906
1906
|
i.delete(d), i.size === 0 && r && (r(), r = null);
|
|
1907
1907
|
};
|
|
1908
1908
|
}
|
|
1909
|
-
return { set: o, update: n, subscribe:
|
|
1909
|
+
return { set: o, update: n, subscribe: c };
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function rr(e) {
|
|
1912
1912
|
let t;
|
|
1913
|
-
return
|
|
1913
|
+
return Bi(e, (r) => t = r)(), t;
|
|
1914
1914
|
}
|
|
1915
1915
|
globalThis.altchaPlugins = globalThis.altchaPlugins || [];
|
|
1916
1916
|
globalThis.altchaI18n = globalThis.altchaI18n || {
|
|
1917
|
-
get: (e) =>
|
|
1917
|
+
get: (e) => rr(globalThis.altchaI18n.store)[e],
|
|
1918
1918
|
set: (e, t) => {
|
|
1919
|
-
Object.assign(
|
|
1919
|
+
Object.assign(rr(globalThis.altchaI18n.store), {
|
|
1920
1920
|
[e]: t
|
|
1921
|
-
}), globalThis.altchaI18n.store.set(
|
|
1921
|
+
}), globalThis.altchaI18n.store.set(rr(globalThis.altchaI18n.store));
|
|
1922
1922
|
},
|
|
1923
|
-
store:
|
|
1923
|
+
store: il({})
|
|
1924
1924
|
};
|
|
1925
|
-
const
|
|
1925
|
+
const nl = {
|
|
1926
1926
|
ariaLinkLabel: "Besoek Altcha.org",
|
|
1927
1927
|
enterCode: "Voer kode in",
|
|
1928
1928
|
enterCodeAria: "Voer die kode in wat jy hoor. Druk Spasie om die klank af te speel.",
|
|
@@ -1939,8 +1939,8 @@ const el = {
|
|
|
1939
1939
|
verifying: "Verifieer...",
|
|
1940
1940
|
waitAlert: "Verifieer... wag asseblief."
|
|
1941
1941
|
};
|
|
1942
|
-
globalThis.altchaI18n.set("af",
|
|
1943
|
-
const
|
|
1942
|
+
globalThis.altchaI18n.set("af", nl);
|
|
1943
|
+
const ol = {
|
|
1944
1944
|
ariaLinkLabel: "زور Altcha.org",
|
|
1945
1945
|
enterCode: "أدخل الرمز",
|
|
1946
1946
|
enterCodeAria: "أدخل الرمز الذي تسمعه. اضغط على المسافة لتشغيل الصوت.",
|
|
@@ -1957,8 +1957,8 @@ const tl = {
|
|
|
1957
1957
|
verifying: "جارٍ التحقق...",
|
|
1958
1958
|
waitAlert: "جارٍ التحقق... يرجى الانتظار."
|
|
1959
1959
|
};
|
|
1960
|
-
globalThis.altchaI18n.set("ar",
|
|
1961
|
-
const
|
|
1960
|
+
globalThis.altchaI18n.set("ar", ol);
|
|
1961
|
+
const ll = {
|
|
1962
1962
|
ariaLinkLabel: "Посетете Altcha.org",
|
|
1963
1963
|
enterCode: "Въведете код",
|
|
1964
1964
|
enterCodeAria: "Въведете кода, който чувате. Натиснете Space за възпроизвеждане на аудио.",
|
|
@@ -1975,8 +1975,26 @@ const rl = {
|
|
|
1975
1975
|
verifying: "Проверява се...",
|
|
1976
1976
|
waitAlert: "Проверката е в процес... моля изчакайте."
|
|
1977
1977
|
};
|
|
1978
|
-
globalThis.altchaI18n.set("bg",
|
|
1979
|
-
const
|
|
1978
|
+
globalThis.altchaI18n.set("bg", ll);
|
|
1979
|
+
const sl = {
|
|
1980
|
+
ariaLinkLabel: "Наведаць Altcha.org",
|
|
1981
|
+
enterCode: "Увядзіце код",
|
|
1982
|
+
enterCodeAria: "Увядзіце код, які вы чуеце. Націсніце прабел, каб прайграць аўдыё.",
|
|
1983
|
+
error: "Праверка не прайшла. Паспрабуйце пазней.",
|
|
1984
|
+
expired: "Тэрмін праверкі скончыўся. Паспрабуйце зноў.",
|
|
1985
|
+
footer: 'Абаронена <a href="https://altcha.org/" target="_blank" aria-label="Наведаць Altcha.org">ALTCHA</a>',
|
|
1986
|
+
getAudioChallenge: "Атрымаць аўдыё выклік",
|
|
1987
|
+
label: "Я не робат",
|
|
1988
|
+
loading: "Загрузка...",
|
|
1989
|
+
reload: "Перазагрузіць",
|
|
1990
|
+
verify: "Праверыць",
|
|
1991
|
+
verificationRequired: "Патрабуецца праверка!",
|
|
1992
|
+
verified: "Праверана",
|
|
1993
|
+
verifying: "Правяраем...",
|
|
1994
|
+
waitAlert: "Праверка... калі ласка, пачакайце."
|
|
1995
|
+
};
|
|
1996
|
+
globalThis.altchaI18n.set("be", sl);
|
|
1997
|
+
const cl = {
|
|
1980
1998
|
ariaLinkLabel: "Posjetite Altcha.org",
|
|
1981
1999
|
enterCode: "Unesite kod",
|
|
1982
2000
|
enterCodeAria: "Unesite kod koji čujete. Pritisnite Space da biste pustili zvuk.",
|
|
@@ -1993,8 +2011,8 @@ const al = {
|
|
|
1993
2011
|
verifying: "Verifikacija u toku...",
|
|
1994
2012
|
waitAlert: "Verifikacija u toku... molimo vas da sačekate."
|
|
1995
2013
|
};
|
|
1996
|
-
globalThis.altchaI18n.set("bs",
|
|
1997
|
-
const
|
|
2014
|
+
globalThis.altchaI18n.set("bs", cl);
|
|
2015
|
+
const fl = {
|
|
1998
2016
|
ariaLinkLabel: "Visita Altcha.org",
|
|
1999
2017
|
enterCode: "Introdueix el codi",
|
|
2000
2018
|
enterCodeAria: "Introdueix el codi que escoltes. Prem Espai per reproduir l’àudio.",
|
|
@@ -2011,8 +2029,8 @@ const il = {
|
|
|
2011
2029
|
verifying: "Verificant...",
|
|
2012
2030
|
waitAlert: "Verificant... si us plau, espera."
|
|
2013
2031
|
};
|
|
2014
|
-
globalThis.altchaI18n.set("ca",
|
|
2015
|
-
const
|
|
2032
|
+
globalThis.altchaI18n.set("ca", fl);
|
|
2033
|
+
const ul = {
|
|
2016
2034
|
ariaLinkLabel: "Navštivte Altcha.org",
|
|
2017
2035
|
enterCode: "Zadejte kód",
|
|
2018
2036
|
enterCodeAria: "Zadejte kód, který slyšíte. Stisknutím mezerníku přehrajete zvuk.",
|
|
@@ -2029,8 +2047,8 @@ const nl = {
|
|
|
2029
2047
|
verifying: "Ověřování...",
|
|
2030
2048
|
waitAlert: "Probíhá ověření... prosím počkejte."
|
|
2031
2049
|
};
|
|
2032
|
-
globalThis.altchaI18n.set("cs",
|
|
2033
|
-
const
|
|
2050
|
+
globalThis.altchaI18n.set("cs", ul);
|
|
2051
|
+
const dl = {
|
|
2034
2052
|
ariaLinkLabel: "Besøg Altcha.org",
|
|
2035
2053
|
enterCode: "Indtast kode",
|
|
2036
2054
|
enterCodeAria: "Indtast den kode, du hører. Tryk på mellemrumstasten for at afspille lyd.",
|
|
@@ -2047,8 +2065,8 @@ const ol = {
|
|
|
2047
2065
|
verifying: "Verificerer...",
|
|
2048
2066
|
waitAlert: "Verificerer... vent venligst."
|
|
2049
2067
|
};
|
|
2050
|
-
globalThis.altchaI18n.set("da",
|
|
2051
|
-
const
|
|
2068
|
+
globalThis.altchaI18n.set("da", dl);
|
|
2069
|
+
const hl = {
|
|
2052
2070
|
ariaLinkLabel: "Besuche Altcha.org",
|
|
2053
2071
|
enterCode: "Code eingeben",
|
|
2054
2072
|
enterCodeAria: "Geben Sie den Code ein, den Sie hören. Drücken Sie die Leertaste, um die Audio abzuspielen.",
|
|
@@ -2065,8 +2083,8 @@ const ll = {
|
|
|
2065
2083
|
verifying: "Wird überprüft...",
|
|
2066
2084
|
waitAlert: "Überprüfung läuft... bitte warten."
|
|
2067
2085
|
};
|
|
2068
|
-
globalThis.altchaI18n.set("de",
|
|
2069
|
-
const
|
|
2086
|
+
globalThis.altchaI18n.set("de", hl);
|
|
2087
|
+
const gl = {
|
|
2070
2088
|
ariaLinkLabel: "Επισκεφθείτε το Altcha.org",
|
|
2071
2089
|
enterCode: "Εισαγάγετε κωδικό",
|
|
2072
2090
|
enterCodeAria: "Εισαγάγετε τον κωδικό που ακούτε. Πατήστε Space για να παίξετε τον ήχο.",
|
|
@@ -2083,8 +2101,8 @@ const sl = {
|
|
|
2083
2101
|
verifying: "Γίνεται επαλήθευση...",
|
|
2084
2102
|
waitAlert: "Γίνεται επαλήθευση... παρακαλώ περιμένετε."
|
|
2085
2103
|
};
|
|
2086
|
-
globalThis.altchaI18n.set("el",
|
|
2087
|
-
const
|
|
2104
|
+
globalThis.altchaI18n.set("el", gl);
|
|
2105
|
+
const vl = {
|
|
2088
2106
|
ariaLinkLabel: "Visitar Altcha.org",
|
|
2089
2107
|
enterCode: "Introduce el código",
|
|
2090
2108
|
enterCodeAria: "Introduce el código que escuchas. Pulsa Espacio para reproducir el audio.",
|
|
@@ -2101,8 +2119,8 @@ const ul = {
|
|
|
2101
2119
|
verifying: "Verificando...",
|
|
2102
2120
|
waitAlert: "Verificando... por favor espere."
|
|
2103
2121
|
};
|
|
2104
|
-
globalThis.altchaI18n.set("es-es",
|
|
2105
|
-
const
|
|
2122
|
+
globalThis.altchaI18n.set("es-es", vl);
|
|
2123
|
+
const bl = {
|
|
2106
2124
|
ariaLinkLabel: "Visitar Altcha.org",
|
|
2107
2125
|
enterCode: "Ingresa el código",
|
|
2108
2126
|
enterCodeAria: "Ingresa el código que escuchas. Presiona Espacio para reproducir el audio.",
|
|
@@ -2119,8 +2137,8 @@ const fl = {
|
|
|
2119
2137
|
verifying: "Verificando...",
|
|
2120
2138
|
waitAlert: "Verificando... por favor espera."
|
|
2121
2139
|
};
|
|
2122
|
-
globalThis.altchaI18n.set("es-419",
|
|
2123
|
-
const
|
|
2140
|
+
globalThis.altchaI18n.set("es-419", bl);
|
|
2141
|
+
const pl = {
|
|
2124
2142
|
ariaLinkLabel: "Külasta Altcha.org",
|
|
2125
2143
|
enterCode: "Sisesta kood",
|
|
2126
2144
|
enterCodeAria: "Sisestage kuuldu kood. Vajutage tühikut, et esitada heli.",
|
|
@@ -2137,8 +2155,8 @@ const cl = {
|
|
|
2137
2155
|
verifying: "Kinnitamine...",
|
|
2138
2156
|
waitAlert: "Kinnitamine... palun oota."
|
|
2139
2157
|
};
|
|
2140
|
-
globalThis.altchaI18n.set("et",
|
|
2141
|
-
const
|
|
2158
|
+
globalThis.altchaI18n.set("et", pl);
|
|
2159
|
+
const ml = {
|
|
2142
2160
|
ariaLinkLabel: "Bisitatu Altcha.org",
|
|
2143
2161
|
enterCode: "Sartu kodea",
|
|
2144
2162
|
enterCodeAria: "Sartu entzun duzun kodea. Sakatu Espazioa audioa erreproduzitzeko.",
|
|
@@ -2155,8 +2173,8 @@ const dl = {
|
|
|
2155
2173
|
verifying: "Egiaztatzen...",
|
|
2156
2174
|
waitAlert: "Egiaztatzen... itxaron mesedez."
|
|
2157
2175
|
};
|
|
2158
|
-
globalThis.altchaI18n.set("eu",
|
|
2159
|
-
const
|
|
2176
|
+
globalThis.altchaI18n.set("eu", ml);
|
|
2177
|
+
const yl = {
|
|
2160
2178
|
ariaLinkLabel: "Vieraile sivulla Altcha.org",
|
|
2161
2179
|
enterCode: "Syötä koodi",
|
|
2162
2180
|
enterCodeAria: "Kirjoita kuulemasi koodi. Paina välilyöntiä toistaaksesi äänen.",
|
|
@@ -2173,8 +2191,8 @@ const hl = {
|
|
|
2173
2191
|
verifying: "Vahvistetaan...",
|
|
2174
2192
|
waitAlert: "Vahvistetaan... odota hetki."
|
|
2175
2193
|
};
|
|
2176
|
-
globalThis.altchaI18n.set("fi",
|
|
2177
|
-
const
|
|
2194
|
+
globalThis.altchaI18n.set("fi", yl);
|
|
2195
|
+
const Al = {
|
|
2178
2196
|
ariaLinkLabel: "Visitez Altcha.org",
|
|
2179
2197
|
enterCode: "Entrez le code",
|
|
2180
2198
|
enterCodeAria: "Entrez le code que vous entendez. Appuyez sur la barre d'espace pour écouter l'audio.",
|
|
@@ -2191,8 +2209,8 @@ const gl = {
|
|
|
2191
2209
|
verifying: "Vérification en cours...",
|
|
2192
2210
|
waitAlert: "Vérification en cours... veuillez patienter."
|
|
2193
2211
|
};
|
|
2194
|
-
globalThis.altchaI18n.set("fr-ca",
|
|
2195
|
-
const
|
|
2212
|
+
globalThis.altchaI18n.set("fr-ca", Al);
|
|
2213
|
+
const kl = {
|
|
2196
2214
|
ariaLinkLabel: "Visitez Altcha.org",
|
|
2197
2215
|
enterCode: "Entrez le code",
|
|
2198
2216
|
enterCodeAria: "Entrez le code que vous entendez. Appuyez sur Espace pour écouter l'audio.",
|
|
@@ -2209,8 +2227,8 @@ const vl = {
|
|
|
2209
2227
|
verifying: "Vérification en cours...",
|
|
2210
2228
|
waitAlert: "Vérification en cours... veuillez patienter."
|
|
2211
2229
|
};
|
|
2212
|
-
globalThis.altchaI18n.set("fr-fr",
|
|
2213
|
-
const
|
|
2230
|
+
globalThis.altchaI18n.set("fr-fr", kl);
|
|
2231
|
+
const _l = {
|
|
2214
2232
|
ariaLinkLabel: "Tabhair cuairt ar Altcha.org",
|
|
2215
2233
|
enterCode: "Iontráil cód",
|
|
2216
2234
|
enterCodeAria: "Cuir isteach an cód a chloiseann tú. Brúigh Spás chun an fuaime a sheinm.",
|
|
@@ -2227,8 +2245,8 @@ const bl = {
|
|
|
2227
2245
|
verifying: "Fíorú ar siúl...",
|
|
2228
2246
|
waitAlert: "Fíorú ar siúl... fan go fóill."
|
|
2229
2247
|
};
|
|
2230
|
-
globalThis.altchaI18n.set("ga",
|
|
2231
|
-
const
|
|
2248
|
+
globalThis.altchaI18n.set("ga", _l);
|
|
2249
|
+
const wl = {
|
|
2232
2250
|
ariaLinkLabel: "Posjetite Altcha.org",
|
|
2233
2251
|
enterCode: "Unesite kod",
|
|
2234
2252
|
enterCodeAria: "Unesite kod koji čujete. Pritisnite razmaknicu za reprodukciju zvuka.",
|
|
@@ -2245,8 +2263,8 @@ const pl = {
|
|
|
2245
2263
|
verifying: "Provjeravanje...",
|
|
2246
2264
|
waitAlert: "Provjera je u tijeku... molimo pričekajte."
|
|
2247
2265
|
};
|
|
2248
|
-
globalThis.altchaI18n.set("hr",
|
|
2249
|
-
const
|
|
2266
|
+
globalThis.altchaI18n.set("hr", wl);
|
|
2267
|
+
const Cl = {
|
|
2250
2268
|
ariaLinkLabel: "Látogass el az Altcha.org oldalra",
|
|
2251
2269
|
enterCode: "Írja be a kódot",
|
|
2252
2270
|
enterCodeAria: "Írja be a hallott kódot. Nyomja meg a Szóköz billentyűt a hang lejátszásához.",
|
|
@@ -2263,8 +2281,8 @@ const ml = {
|
|
|
2263
2281
|
verifying: "Ellenőrzés folyamatban...",
|
|
2264
2282
|
waitAlert: "Ellenőrzés folyamatban... kérlek várj."
|
|
2265
2283
|
};
|
|
2266
|
-
globalThis.altchaI18n.set("hu",
|
|
2267
|
-
const
|
|
2284
|
+
globalThis.altchaI18n.set("hu", Cl);
|
|
2285
|
+
const El = {
|
|
2268
2286
|
ariaLinkLabel: "Heimsækja Altcha.org",
|
|
2269
2287
|
enterCode: "Sláðu inn kóða",
|
|
2270
2288
|
enterCodeAria: "Sláðu inn kóðann sem þú heyrir. Ýttu á Space til að spila hljóðið.",
|
|
@@ -2281,8 +2299,8 @@ const yl = {
|
|
|
2281
2299
|
verifying: "Að staðfesta...",
|
|
2282
2300
|
waitAlert: "Að staðfesta... vinsamlegast bíða."
|
|
2283
2301
|
};
|
|
2284
|
-
globalThis.altchaI18n.set("is",
|
|
2285
|
-
const
|
|
2302
|
+
globalThis.altchaI18n.set("is", El);
|
|
2303
|
+
const Ll = {
|
|
2286
2304
|
ariaLinkLabel: "Visita Altcha.org",
|
|
2287
2305
|
enterCode: "Inserisci il codice",
|
|
2288
2306
|
enterCodeAria: "Inserisci il codice che senti. Premi Spazio per riprodurre l'audio.",
|
|
@@ -2299,8 +2317,8 @@ const Al = {
|
|
|
2299
2317
|
verifying: "Verifica in corso...",
|
|
2300
2318
|
waitAlert: "Verifica in corso... attendere."
|
|
2301
2319
|
};
|
|
2302
|
-
globalThis.altchaI18n.set("it",
|
|
2303
|
-
const
|
|
2320
|
+
globalThis.altchaI18n.set("it", Ll);
|
|
2321
|
+
const xl = {
|
|
2304
2322
|
ariaLinkLabel: "Apsilankykite Altcha.org",
|
|
2305
2323
|
enterCode: "Įveskite kodą",
|
|
2306
2324
|
enterCodeAria: "Įveskite girdimą kodą. Paspauskite tarpo klavišą, kad grotumėte garso įrašą.",
|
|
@@ -2317,8 +2335,8 @@ const kl = {
|
|
|
2317
2335
|
verifying: "Tikrinama...",
|
|
2318
2336
|
waitAlert: "Tikrinama... prašome palaukti."
|
|
2319
2337
|
};
|
|
2320
|
-
globalThis.altchaI18n.set("lt",
|
|
2321
|
-
const
|
|
2338
|
+
globalThis.altchaI18n.set("lt", xl);
|
|
2339
|
+
const Tl = {
|
|
2322
2340
|
ariaLinkLabel: "Apmeklējiet Altcha.org",
|
|
2323
2341
|
enterCode: "Ievadiet kodu",
|
|
2324
2342
|
enterCodeAria: "Ievadiet dzirdamo kodu. Nospiediet atstarpes taustiņu, lai atskaņotu audio.",
|
|
@@ -2335,8 +2353,8 @@ const _l = {
|
|
|
2335
2353
|
verifying: "Notiek verifikācija...",
|
|
2336
2354
|
waitAlert: "Notiek verifikācija... lūdzu, uzgaidiet."
|
|
2337
2355
|
};
|
|
2338
|
-
globalThis.altchaI18n.set("lv",
|
|
2339
|
-
const
|
|
2356
|
+
globalThis.altchaI18n.set("lv", Tl);
|
|
2357
|
+
const Il = {
|
|
2340
2358
|
ariaLinkLabel: "Żur Altcha.org",
|
|
2341
2359
|
enterCode: "Idħol il-kodiċi",
|
|
2342
2360
|
enterCodeAria: "Idħol il-kodiċi li tisma'. Agħfas Spazju biex tindaqq l-awdjo.",
|
|
@@ -2353,8 +2371,8 @@ const wl = {
|
|
|
2353
2371
|
verifying: "Verifika għaddejja...",
|
|
2354
2372
|
waitAlert: "Verifika għaddejja... stenna ftit."
|
|
2355
2373
|
};
|
|
2356
|
-
globalThis.altchaI18n.set("mt",
|
|
2357
|
-
const
|
|
2374
|
+
globalThis.altchaI18n.set("mt", Il);
|
|
2375
|
+
const Ui = {
|
|
2358
2376
|
ariaLinkLabel: "Besøk Altcha.org",
|
|
2359
2377
|
enterCode: "Skriv inn kode",
|
|
2360
2378
|
enterCodeAria: "Skriv inn koden du hører. Trykk på Space for å spille av lyden.",
|
|
@@ -2371,9 +2389,9 @@ const qi = {
|
|
|
2371
2389
|
verifying: "Verifiserer...",
|
|
2372
2390
|
waitAlert: "Verifiserer... vennligst vent."
|
|
2373
2391
|
};
|
|
2374
|
-
globalThis.altchaI18n.set("nb",
|
|
2375
|
-
globalThis.altchaI18n.set("no",
|
|
2376
|
-
const
|
|
2392
|
+
globalThis.altchaI18n.set("nb", Ui);
|
|
2393
|
+
globalThis.altchaI18n.set("no", Ui);
|
|
2394
|
+
const Vl = {
|
|
2377
2395
|
ariaLinkLabel: "Bezoek Altcha.org",
|
|
2378
2396
|
enterCode: "Voer code in",
|
|
2379
2397
|
enterCodeAria: "Voer de code in die je hoort. Druk op Spatie om de audio af te spelen.",
|
|
@@ -2390,8 +2408,8 @@ const Cl = {
|
|
|
2390
2408
|
verifying: "Bezig met verifiëren...",
|
|
2391
2409
|
waitAlert: "Bezig met verifiëren... even geduld a.u.b."
|
|
2392
2410
|
};
|
|
2393
|
-
globalThis.altchaI18n.set("nl",
|
|
2394
|
-
const
|
|
2411
|
+
globalThis.altchaI18n.set("nl", Vl);
|
|
2412
|
+
const Rl = {
|
|
2395
2413
|
ariaLinkLabel: "Odwiedź Altcha.org",
|
|
2396
2414
|
enterCode: "Wprowadź kod",
|
|
2397
2415
|
enterCodeAria: "Wpisz kod, który słyszysz. Naciśnij Spację, aby odtworzyć dźwięk.",
|
|
@@ -2408,8 +2426,8 @@ const Ll = {
|
|
|
2408
2426
|
verifying: "Weryfikacja...",
|
|
2409
2427
|
waitAlert: "Trwa weryfikacja... proszę czekać."
|
|
2410
2428
|
};
|
|
2411
|
-
globalThis.altchaI18n.set("pl",
|
|
2412
|
-
const
|
|
2429
|
+
globalThis.altchaI18n.set("pl", Rl);
|
|
2430
|
+
const jl = {
|
|
2413
2431
|
ariaLinkLabel: "Visitar Altcha.org",
|
|
2414
2432
|
enterCode: "Introduza o código",
|
|
2415
2433
|
enterCodeAria: "Introduza o código que ouve. Prima Espaço para reproduzir o áudio.",
|
|
@@ -2426,8 +2444,8 @@ const El = {
|
|
|
2426
2444
|
verifying: "A verificar...",
|
|
2427
2445
|
waitAlert: "A verificar... por favor aguarde."
|
|
2428
2446
|
};
|
|
2429
|
-
globalThis.altchaI18n.set("pt-pt",
|
|
2430
|
-
const
|
|
2447
|
+
globalThis.altchaI18n.set("pt-pt", jl);
|
|
2448
|
+
const $l = {
|
|
2431
2449
|
ariaLinkLabel: "Visitar Altcha.org",
|
|
2432
2450
|
enterCode: "Digite o código",
|
|
2433
2451
|
enterCodeAria: "Digite o código que você ouve. Pressione Espaço para reproduzir o áudio.",
|
|
@@ -2444,8 +2462,8 @@ const xl = {
|
|
|
2444
2462
|
verifying: "Verificando...",
|
|
2445
2463
|
waitAlert: "Verificando... por favor aguarde."
|
|
2446
2464
|
};
|
|
2447
|
-
globalThis.altchaI18n.set("pt-br",
|
|
2448
|
-
const
|
|
2465
|
+
globalThis.altchaI18n.set("pt-br", $l);
|
|
2466
|
+
const Sl = {
|
|
2449
2467
|
ariaLinkLabel: "Vizitează Altcha.org",
|
|
2450
2468
|
enterCode: "Introduceți codul",
|
|
2451
2469
|
enterCodeAria: "Introduceți codul pe care îl auziți. Apăsați Spațiu pentru a reda audio.",
|
|
@@ -2462,8 +2480,8 @@ const Tl = {
|
|
|
2462
2480
|
verifying: "Se verifică...",
|
|
2463
2481
|
waitAlert: "Se verifică... te rugăm să aștepți."
|
|
2464
2482
|
};
|
|
2465
|
-
globalThis.altchaI18n.set("ro",
|
|
2466
|
-
const
|
|
2483
|
+
globalThis.altchaI18n.set("ro", Sl);
|
|
2484
|
+
const Pl = {
|
|
2467
2485
|
ariaLinkLabel: "Перейти на Altcha.org",
|
|
2468
2486
|
enterCode: "Введите код",
|
|
2469
2487
|
enterCodeAria: "Введите код, который слышите. Нажмите пробел для воспроизведения аудио.",
|
|
@@ -2480,8 +2498,8 @@ const Il = {
|
|
|
2480
2498
|
verifying: "Идет проверка...",
|
|
2481
2499
|
waitAlert: "Идет проверка... Пожалуйста, подождите."
|
|
2482
2500
|
};
|
|
2483
|
-
globalThis.altchaI18n.set("ru",
|
|
2484
|
-
const
|
|
2501
|
+
globalThis.altchaI18n.set("ru", Pl);
|
|
2502
|
+
const zl = {
|
|
2485
2503
|
ariaLinkLabel: "Navštívte Altcha.org",
|
|
2486
2504
|
enterCode: "Zadajte kód",
|
|
2487
2505
|
enterCodeAria: "Zadajte kód, ktorý počujete. Stlačením medzerníka prehráte zvuk.",
|
|
@@ -2498,8 +2516,8 @@ const Vl = {
|
|
|
2498
2516
|
verifying: "Prebieha verifikácia...",
|
|
2499
2517
|
waitAlert: "Prebieha verifikácia... prosím čakajte."
|
|
2500
2518
|
};
|
|
2501
|
-
globalThis.altchaI18n.set("sk",
|
|
2502
|
-
const
|
|
2519
|
+
globalThis.altchaI18n.set("sk", zl);
|
|
2520
|
+
const Nl = {
|
|
2503
2521
|
ariaLinkLabel: "Obiščite Altcha.org",
|
|
2504
2522
|
enterCode: "Vnesite kodo",
|
|
2505
2523
|
enterCodeAria: "Vnesite kodo, ki jo slišite. Pritisnite preslednico za predvajanje zvoka.",
|
|
@@ -2516,8 +2534,8 @@ const Rl = {
|
|
|
2516
2534
|
verifying: "Preverjanje...",
|
|
2517
2535
|
waitAlert: "Preverjanje... prosim počakajte."
|
|
2518
2536
|
};
|
|
2519
|
-
globalThis.altchaI18n.set("sl",
|
|
2520
|
-
const
|
|
2537
|
+
globalThis.altchaI18n.set("sl", Nl);
|
|
2538
|
+
const Dl = {
|
|
2521
2539
|
ariaLinkLabel: "Posetite Altcha.org",
|
|
2522
2540
|
enterCode: "Unesite kod",
|
|
2523
2541
|
enterCodeAria: "Unesite kod koji čujete. Pritisnite Space da biste pustili zvuk.",
|
|
@@ -2534,8 +2552,8 @@ const jl = {
|
|
|
2534
2552
|
verifying: "Verifikacija u toku...",
|
|
2535
2553
|
waitAlert: "Verifikacija u toku... molimo vas da sačekate."
|
|
2536
2554
|
};
|
|
2537
|
-
globalThis.altchaI18n.set("sr",
|
|
2538
|
-
const
|
|
2555
|
+
globalThis.altchaI18n.set("sr", Dl);
|
|
2556
|
+
const ql = {
|
|
2539
2557
|
ariaLinkLabel: "Besök Altcha.org",
|
|
2540
2558
|
enterCode: "Ange kod",
|
|
2541
2559
|
enterCodeAria: "Ange koden du hör. Tryck på mellanslag för att spela upp ljudet.",
|
|
@@ -2552,8 +2570,8 @@ const $l = {
|
|
|
2552
2570
|
verifying: "Verifierar...",
|
|
2553
2571
|
waitAlert: "Verifierar... vänligen vänta."
|
|
2554
2572
|
};
|
|
2555
|
-
globalThis.altchaI18n.set("sv",
|
|
2556
|
-
const
|
|
2573
|
+
globalThis.altchaI18n.set("sv", ql);
|
|
2574
|
+
const Ol = {
|
|
2557
2575
|
ariaLinkLabel: "Altcha.org'yu ziyaret edin",
|
|
2558
2576
|
enterCode: "Kodu girin",
|
|
2559
2577
|
enterCodeAria: "Duyduğunuz kodu girin. Ses dosyasını oynatmak için Boşluk tuşuna basın.",
|
|
@@ -2570,8 +2588,8 @@ const Sl = {
|
|
|
2570
2588
|
verifying: "Doğrulama yapılıyor...",
|
|
2571
2589
|
waitAlert: "Doğrulama yapılıyor... lütfen bekleyin."
|
|
2572
2590
|
};
|
|
2573
|
-
globalThis.altchaI18n.set("tr",
|
|
2574
|
-
const
|
|
2591
|
+
globalThis.altchaI18n.set("tr", Ol);
|
|
2592
|
+
const Hl = {
|
|
2575
2593
|
ariaLinkLabel: "Відвідати Altcha.org",
|
|
2576
2594
|
enterCode: "Введіть код",
|
|
2577
2595
|
enterCodeAria: "Введіть код, який ви чуєте. Натисніть пробіл, щоб відтворити аудіо.",
|
|
@@ -2588,8 +2606,8 @@ const Pl = {
|
|
|
2588
2606
|
verifying: "Перевіряється...",
|
|
2589
2607
|
waitAlert: "Перевірка... будь ласка, зачекайте."
|
|
2590
2608
|
};
|
|
2591
|
-
globalThis.altchaI18n.set("uk",
|
|
2592
|
-
const
|
|
2609
|
+
globalThis.altchaI18n.set("uk", Hl);
|
|
2610
|
+
const Fl = {
|
|
2593
2611
|
ariaLinkLabel: "Altcha.org পরিদর্শন করুন",
|
|
2594
2612
|
enterCode: "কোড লিখুন",
|
|
2595
2613
|
enterCodeAria: "আপনি যে কোড শুনতে পান তা লিখুন। অডিও প্লে করতে স্পেস বাটন টিপুন।",
|
|
@@ -2606,8 +2624,8 @@ const zl = {
|
|
|
2606
2624
|
verifying: "যাচাই করা হচ্ছে...",
|
|
2607
2625
|
waitAlert: "যাচাই করা হচ্ছে... দয়া করে অপেক্ষা করুন।"
|
|
2608
2626
|
};
|
|
2609
|
-
globalThis.altchaI18n.set("bn",
|
|
2610
|
-
const
|
|
2627
|
+
globalThis.altchaI18n.set("bn", Fl);
|
|
2628
|
+
const Ml = {
|
|
2611
2629
|
ariaLinkLabel: "בקר באתר Altcha.org",
|
|
2612
2630
|
enterCode: "הזן קוד",
|
|
2613
2631
|
enterCodeAria: "הזן את הקוד שאתה שומע. לחץ על רווח להפעלת השמע.",
|
|
@@ -2624,8 +2642,8 @@ const Nl = {
|
|
|
2624
2642
|
verifying: "מאמת...",
|
|
2625
2643
|
waitAlert: "מבצע אימות... אנא המתן."
|
|
2626
2644
|
};
|
|
2627
|
-
globalThis.altchaI18n.set("he",
|
|
2628
|
-
const
|
|
2645
|
+
globalThis.altchaI18n.set("he", Ml);
|
|
2646
|
+
const Bl = {
|
|
2629
2647
|
ariaLinkLabel: "Altcha.org पर जाएं",
|
|
2630
2648
|
enterCode: "कोड दर्ज करेंं",
|
|
2631
2649
|
enterCodeAria: "आप जो कोड सुनते हैं उसे दर्ज करें। ऑडियो चलाने के लिए स्पेस दबाएं।",
|
|
@@ -2642,8 +2660,8 @@ const Dl = {
|
|
|
2642
2660
|
verifying: "सत्यापित कर रहे हैं...",
|
|
2643
2661
|
waitAlert: "सत्यापित किया जा रहा है... कृपया प्रतीक्षा करें।"
|
|
2644
2662
|
};
|
|
2645
|
-
globalThis.altchaI18n.set("hi",
|
|
2646
|
-
const
|
|
2663
|
+
globalThis.altchaI18n.set("hi", Bl);
|
|
2664
|
+
const Ul = {
|
|
2647
2665
|
ariaLinkLabel: "Kunjungi Altcha.org",
|
|
2648
2666
|
enterCode: "Masukkan kode",
|
|
2649
2667
|
enterCodeAria: "Masukkan kode yang Anda dengar. Tekan Spasi untuk memutar audio.",
|
|
@@ -2660,8 +2678,8 @@ const ql = {
|
|
|
2660
2678
|
verifying: "Memverifikasi...",
|
|
2661
2679
|
waitAlert: "Memverifikasi... harap tunggu."
|
|
2662
2680
|
};
|
|
2663
|
-
globalThis.altchaI18n.set("id",
|
|
2664
|
-
const
|
|
2681
|
+
globalThis.altchaI18n.set("id", Ul);
|
|
2682
|
+
const Zl = {
|
|
2665
2683
|
ariaLinkLabel: "Altcha.orgを訪問",
|
|
2666
2684
|
enterCode: "コードを入力",
|
|
2667
2685
|
enterCodeAria: "聞こえるコードを入力してください。スペースキーを押して音声を再生します。",
|
|
@@ -2678,8 +2696,8 @@ const Ol = {
|
|
|
2678
2696
|
verifying: "確認中...",
|
|
2679
2697
|
waitAlert: "確認中...少々お待ちください。"
|
|
2680
2698
|
};
|
|
2681
|
-
globalThis.altchaI18n.set("ja",
|
|
2682
|
-
const
|
|
2699
|
+
globalThis.altchaI18n.set("ja", Zl);
|
|
2700
|
+
const Gl = {
|
|
2683
2701
|
ariaLinkLabel: "Altcha.org 방문하기",
|
|
2684
2702
|
enterCode: "코드 입력",
|
|
2685
2703
|
enterCodeAria: "들리는 코드를 입력하세요. 스페이스 바를 눌러 오디오를 재생합니다.",
|
|
@@ -2696,8 +2714,8 @@ const Hl = {
|
|
|
2696
2714
|
verifying: "확인 중...",
|
|
2697
2715
|
waitAlert: "확인 중... 잠시만 기다려주세요."
|
|
2698
2716
|
};
|
|
2699
|
-
globalThis.altchaI18n.set("ko",
|
|
2700
|
-
const
|
|
2717
|
+
globalThis.altchaI18n.set("ko", Gl);
|
|
2718
|
+
const Yl = {
|
|
2701
2719
|
ariaLinkLabel: "Altcha.org भेट द्या",
|
|
2702
2720
|
enterCode: "कोड टाकाा",
|
|
2703
2721
|
enterCodeAria: "तुम्ही ऐकत असलेला कोड टाका. ऑडिओ प्ले करण्यासाठी स्पेस दाबा.",
|
|
@@ -2714,8 +2732,8 @@ const Fl = {
|
|
|
2714
2732
|
verifying: "पुष्टीकरण करत आहे...",
|
|
2715
2733
|
waitAlert: "पुष्टीकरण करत आहे... कृपया थोडा वेळ थांबा."
|
|
2716
2734
|
};
|
|
2717
|
-
globalThis.altchaI18n.set("mr",
|
|
2718
|
-
const
|
|
2735
|
+
globalThis.altchaI18n.set("mr", Yl);
|
|
2736
|
+
const Wl = {
|
|
2719
2737
|
ariaLinkLabel: "Altcha.org ஐ பார்வையிடவும்",
|
|
2720
2738
|
enterCode: "குறியீட்டை உள்ளிடவும்",
|
|
2721
2739
|
enterCodeAria: "நீங்கள் கேட்கும் குறியீட்டை உள்ளிடவும். ஆடியோவை இயக்க Space ஐ அழுத்தவும்.",
|
|
@@ -2732,8 +2750,8 @@ const Ml = {
|
|
|
2732
2750
|
verifying: "சரிபார்க்கப்படுகிறது...",
|
|
2733
2751
|
waitAlert: "சரிபார்க்கப்படுகிறது... தயவுசெய்து காத்திருக்கவும்."
|
|
2734
2752
|
};
|
|
2735
|
-
globalThis.altchaI18n.set("ta",
|
|
2736
|
-
const
|
|
2753
|
+
globalThis.altchaI18n.set("ta", Wl);
|
|
2754
|
+
const Kl = {
|
|
2737
2755
|
ariaLinkLabel: "Altcha.org సందర్శించండి",
|
|
2738
2756
|
enterCode: "కోడ్ని నమోదు చేయండి",
|
|
2739
2757
|
enterCodeAria: "మీరు విన్న కోడ్ని నమోదు చేయండి. ఆడియో ప్లే చేయడానికి స్పేస్ను నొక్కండి.",
|
|
@@ -2750,8 +2768,8 @@ const Bl = {
|
|
|
2750
2768
|
verifying: "ధ్రువీకరణ జరుగుతుంది...",
|
|
2751
2769
|
waitAlert: "ధ్రువీకరణ జరుగుతుంది... దయచేసి వేచి ఉండండి."
|
|
2752
2770
|
};
|
|
2753
|
-
globalThis.altchaI18n.set("te",
|
|
2754
|
-
const
|
|
2771
|
+
globalThis.altchaI18n.set("te", Kl);
|
|
2772
|
+
const Jl = {
|
|
2755
2773
|
ariaLinkLabel: "เยี่ยมชม Altcha.org",
|
|
2756
2774
|
enterCode: "ป้อนรหัส",
|
|
2757
2775
|
enterCodeAria: "ป้อนรหัสที่คุณได้ยิน กด Space เพื่อเล่นเสียง",
|
|
@@ -2768,8 +2786,8 @@ const Ul = {
|
|
|
2768
2786
|
verifying: "กำลังตรวจสอบ...",
|
|
2769
2787
|
waitAlert: "กำลังตรวจสอบ... กรุณารอ"
|
|
2770
2788
|
};
|
|
2771
|
-
globalThis.altchaI18n.set("th",
|
|
2772
|
-
const
|
|
2789
|
+
globalThis.altchaI18n.set("th", Jl);
|
|
2790
|
+
const Xl = {
|
|
2773
2791
|
ariaLinkLabel: "Altcha.org پر جائیں",
|
|
2774
2792
|
enterCode: "کوڈ درج کریں",
|
|
2775
2793
|
enterCodeAria: "جو کوڈ آپ سنتے ہیں وہ درج کریں۔ آڈیو چلانے کے لیے اسپیس دبائیں۔",
|
|
@@ -2786,8 +2804,8 @@ const Zl = {
|
|
|
2786
2804
|
verifying: "توثیق ہو رہی ہے...",
|
|
2787
2805
|
waitAlert: "توثیق ہو رہی ہے... براہ کرم انتظار کریں۔"
|
|
2788
2806
|
};
|
|
2789
|
-
globalThis.altchaI18n.set("ur",
|
|
2790
|
-
const
|
|
2807
|
+
globalThis.altchaI18n.set("ur", Xl);
|
|
2808
|
+
const Ql = {
|
|
2791
2809
|
ariaLinkLabel: "Truy cập Altcha.org",
|
|
2792
2810
|
enterCode: "Nhập mã",
|
|
2793
2811
|
enterCodeAria: "Nhập mã bạn nghe được. Nhấn Phím cách để phát âm thanh.",
|
|
@@ -2804,8 +2822,8 @@ const Gl = {
|
|
|
2804
2822
|
verifying: "Đang xác minh...",
|
|
2805
2823
|
waitAlert: "Đang xác minh... vui lòng chờ."
|
|
2806
2824
|
};
|
|
2807
|
-
globalThis.altchaI18n.set("vi",
|
|
2808
|
-
const
|
|
2825
|
+
globalThis.altchaI18n.set("vi", Ql);
|
|
2826
|
+
const es = {
|
|
2809
2827
|
ariaLinkLabel: "访问 Altcha.org",
|
|
2810
2828
|
enterCode: "输入代码",
|
|
2811
2829
|
enterCodeAria: "输入您听到的代码。按空格键播放音频。",
|
|
@@ -2822,8 +2840,8 @@ const Yl = {
|
|
|
2822
2840
|
verifying: "正在验证...",
|
|
2823
2841
|
waitAlert: "正在验证... 请稍等。"
|
|
2824
2842
|
};
|
|
2825
|
-
globalThis.altchaI18n.set("zh-cn",
|
|
2826
|
-
const
|
|
2843
|
+
globalThis.altchaI18n.set("zh-cn", es);
|
|
2844
|
+
const ts = {
|
|
2827
2845
|
ariaLinkLabel: "訪問 Altcha.org",
|
|
2828
2846
|
enterCode: "輸入代碼",
|
|
2829
2847
|
enterCodeAria: "輸入您聽到的代碼。按空格鍵播放音頻。",
|
|
@@ -2840,13 +2858,13 @@ const Wl = {
|
|
|
2840
2858
|
verifying: "正在驗證...",
|
|
2841
2859
|
waitAlert: "正在驗證... 請稍等。"
|
|
2842
2860
|
};
|
|
2843
|
-
globalThis.altchaI18n.set("zh-tw",
|
|
2844
|
-
const
|
|
2845
|
-
`,
|
|
2846
|
-
function
|
|
2861
|
+
globalThis.altchaI18n.set("zh-tw", ts);
|
|
2862
|
+
const Zi = `(function(){"use strict";const d=new TextEncoder;function p(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function b(e,t,r){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return p(await crypto.subtle.digest(r.toUpperCase(),d.encode(e+t)))}function w(e,t,r="SHA-256",n=1e6,s=0){const o=new AbortController,a=Date.now();return{promise:(async()=>{for(let c=s;c<=n;c+=1){if(o.signal.aborted)return null;if(await b(t,c,r)===e)return{number:c,took:Date.now()-a}}return null})(),controller:o}}function h(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function g(e,t=12){const r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e%256,e=Math.floor(e/256);return r}async function m(e,t="",r=1e6,n=0){const s="AES-GCM",o=new AbortController,a=Date.now(),l=async()=>{for(let u=n;u<=r;u+=1){if(o.signal.aborted||!c||!y)return null;try{const f=await crypto.subtle.decrypt({name:s,iv:g(u)},c,y);if(f)return{clearText:new TextDecoder().decode(f),took:Date.now()-a}}catch{}}return null};let c=null,y=null;try{y=h(e);const u=await crypto.subtle.digest("SHA-256",d.encode(t));c=await crypto.subtle.importKey("raw",u,s,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:l(),controller:o}}let i;onmessage=async e=>{const{type:t,payload:r,start:n,max:s}=e.data;let o=null;if(t==="abort")i==null||i.abort(),i=void 0;else if(t==="work"){if("obfuscated"in r){const{key:a,obfuscated:l}=r||{};o=await m(l,a,s,n)}else{const{algorithm:a,challenge:l,salt:c}=r||{};o=w(l,c,a,s,n)}i=o.controller,o.promise.then(a=>{self.postMessage(a&&{...a,worker:!0})})}}})();
|
|
2863
|
+
`, Ka = typeof self < "u" && self.Blob && new Blob([Zi], { type: "text/javascript;charset=utf-8" });
|
|
2864
|
+
function rs(e) {
|
|
2847
2865
|
let t;
|
|
2848
2866
|
try {
|
|
2849
|
-
if (t =
|
|
2867
|
+
if (t = Ka && (self.URL || self.webkitURL).createObjectURL(Ka), !t) throw "";
|
|
2850
2868
|
const r = new Worker(t, {
|
|
2851
2869
|
name: e == null ? void 0 : e.name
|
|
2852
2870
|
});
|
|
@@ -2855,7 +2873,7 @@ function Kl(e) {
|
|
|
2855
2873
|
}), r;
|
|
2856
2874
|
} catch {
|
|
2857
2875
|
return new Worker(
|
|
2858
|
-
"data:text/javascript;charset=utf-8," + encodeURIComponent(
|
|
2876
|
+
"data:text/javascript;charset=utf-8," + encodeURIComponent(Zi),
|
|
2859
2877
|
{
|
|
2860
2878
|
name: e == null ? void 0 : e.name
|
|
2861
2879
|
}
|
|
@@ -2864,17 +2882,17 @@ function Kl(e) {
|
|
|
2864
2882
|
t && (self.URL || self.webkitURL).revokeObjectURL(t);
|
|
2865
2883
|
}
|
|
2866
2884
|
}
|
|
2867
|
-
const
|
|
2868
|
-
var
|
|
2869
|
-
typeof window < "u" && ((
|
|
2870
|
-
const
|
|
2871
|
-
function
|
|
2885
|
+
const as = "5";
|
|
2886
|
+
var Xa;
|
|
2887
|
+
typeof window < "u" && ((Xa = window.__svelte ?? (window.__svelte = {})).v ?? (Xa.v = /* @__PURE__ */ new Set())).add(as);
|
|
2888
|
+
const Gi = new TextEncoder();
|
|
2889
|
+
function is(e) {
|
|
2872
2890
|
return [...new Uint8Array(e)].map((t) => t.toString(16).padStart(2, "0")).join("");
|
|
2873
2891
|
}
|
|
2874
|
-
async function
|
|
2892
|
+
async function ns(e, t = "SHA-256", r = 1e5) {
|
|
2875
2893
|
const i = Date.now().toString(16);
|
|
2876
2894
|
e || (e = Math.round(Math.random() * r));
|
|
2877
|
-
const o = await
|
|
2895
|
+
const o = await Yi(i, e, t);
|
|
2878
2896
|
return {
|
|
2879
2897
|
algorithm: t,
|
|
2880
2898
|
challenge: o,
|
|
@@ -2882,27 +2900,27 @@ async function Ql(e, t = "SHA-256", r = 1e5) {
|
|
|
2882
2900
|
signature: ""
|
|
2883
2901
|
};
|
|
2884
2902
|
}
|
|
2885
|
-
async function
|
|
2903
|
+
async function Yi(e, t, r) {
|
|
2886
2904
|
if (typeof crypto > "u" || !("subtle" in crypto) || !("digest" in crypto.subtle))
|
|
2887
2905
|
throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");
|
|
2888
|
-
return
|
|
2906
|
+
return is(
|
|
2889
2907
|
await crypto.subtle.digest(
|
|
2890
2908
|
r.toUpperCase(),
|
|
2891
|
-
|
|
2909
|
+
Gi.encode(e + t)
|
|
2892
2910
|
)
|
|
2893
2911
|
);
|
|
2894
2912
|
}
|
|
2895
|
-
function
|
|
2896
|
-
const n = new AbortController(),
|
|
2913
|
+
function os(e, t, r = "SHA-256", i = 1e6, o = 0) {
|
|
2914
|
+
const n = new AbortController(), c = Date.now();
|
|
2897
2915
|
return {
|
|
2898
2916
|
promise: (async () => {
|
|
2899
|
-
for (let
|
|
2917
|
+
for (let u = o; u <= i; u += 1) {
|
|
2900
2918
|
if (n.signal.aborted)
|
|
2901
2919
|
return null;
|
|
2902
|
-
if (await
|
|
2920
|
+
if (await Yi(t, u, r) === e)
|
|
2903
2921
|
return {
|
|
2904
|
-
number:
|
|
2905
|
-
took: Date.now() -
|
|
2922
|
+
number: u,
|
|
2923
|
+
took: Date.now() - c
|
|
2906
2924
|
};
|
|
2907
2925
|
}
|
|
2908
2926
|
return null;
|
|
@@ -2910,58 +2928,58 @@ function es(e, t, r = "SHA-256", i = 1e6, o = 0) {
|
|
|
2910
2928
|
controller: n
|
|
2911
2929
|
};
|
|
2912
2930
|
}
|
|
2913
|
-
function
|
|
2931
|
+
function Ja() {
|
|
2914
2932
|
try {
|
|
2915
2933
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
2916
2934
|
} catch {
|
|
2917
2935
|
}
|
|
2918
2936
|
}
|
|
2919
|
-
function
|
|
2937
|
+
function ls(e) {
|
|
2920
2938
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
2921
2939
|
for (let i = 0; i < t.length; i++)
|
|
2922
2940
|
r[i] = t.charCodeAt(i);
|
|
2923
2941
|
return r;
|
|
2924
2942
|
}
|
|
2925
|
-
function
|
|
2943
|
+
function ss(e, t = 12) {
|
|
2926
2944
|
const r = new Uint8Array(t);
|
|
2927
2945
|
for (let i = 0; i < t; i++)
|
|
2928
2946
|
r[i] = e % 256, e = Math.floor(e / 256);
|
|
2929
2947
|
return r;
|
|
2930
2948
|
}
|
|
2931
|
-
async function
|
|
2932
|
-
const o = "AES-GCM", n = new AbortController(),
|
|
2933
|
-
for (let
|
|
2934
|
-
if (n.signal.aborted || !
|
|
2949
|
+
async function cs(e, t = "", r = 1e6, i = 0) {
|
|
2950
|
+
const o = "AES-GCM", n = new AbortController(), c = Date.now(), s = async () => {
|
|
2951
|
+
for (let m = i; m <= r; m += 1) {
|
|
2952
|
+
if (n.signal.aborted || !u || !d)
|
|
2935
2953
|
return null;
|
|
2936
2954
|
try {
|
|
2937
2955
|
const h = await crypto.subtle.decrypt(
|
|
2938
2956
|
{
|
|
2939
2957
|
name: o,
|
|
2940
|
-
iv:
|
|
2958
|
+
iv: ss(m)
|
|
2941
2959
|
},
|
|
2942
|
-
|
|
2960
|
+
u,
|
|
2943
2961
|
d
|
|
2944
2962
|
);
|
|
2945
2963
|
if (h)
|
|
2946
2964
|
return {
|
|
2947
2965
|
clearText: new TextDecoder().decode(h),
|
|
2948
|
-
took: Date.now() -
|
|
2966
|
+
took: Date.now() - c
|
|
2949
2967
|
};
|
|
2950
2968
|
} catch {
|
|
2951
2969
|
}
|
|
2952
2970
|
}
|
|
2953
2971
|
return null;
|
|
2954
2972
|
};
|
|
2955
|
-
let
|
|
2973
|
+
let u = null, d = null;
|
|
2956
2974
|
try {
|
|
2957
|
-
d =
|
|
2958
|
-
const
|
|
2975
|
+
d = ls(e);
|
|
2976
|
+
const m = await crypto.subtle.digest(
|
|
2959
2977
|
"SHA-256",
|
|
2960
|
-
|
|
2978
|
+
Gi.encode(t)
|
|
2961
2979
|
);
|
|
2962
|
-
|
|
2980
|
+
u = await crypto.subtle.importKey(
|
|
2963
2981
|
"raw",
|
|
2964
|
-
|
|
2982
|
+
m,
|
|
2965
2983
|
o,
|
|
2966
2984
|
!1,
|
|
2967
2985
|
["decrypt"]
|
|
@@ -2977,8 +2995,8 @@ async function as(e, t = "", r = 1e6, i = 0) {
|
|
|
2977
2995
|
controller: n
|
|
2978
2996
|
};
|
|
2979
2997
|
}
|
|
2980
|
-
var
|
|
2981
|
-
const
|
|
2998
|
+
var C = /* @__PURE__ */ ((e) => (e.CODE = "code", e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(C || {}), ee = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.READY = "ready", e))(ee || {});
|
|
2999
|
+
const fs = {
|
|
2982
3000
|
ariaLinkLabel: "Visit Altcha.org",
|
|
2983
3001
|
enterCode: "Enter code",
|
|
2984
3002
|
enterCodeAria: "Enter code you hear. Press Space to play audio.",
|
|
@@ -2995,142 +3013,142 @@ const is = {
|
|
|
2995
3013
|
verifying: "Verifying...",
|
|
2996
3014
|
waitAlert: "Verifying... please wait."
|
|
2997
3015
|
};
|
|
2998
|
-
globalThis.altchaI18n.set("en",
|
|
2999
|
-
const
|
|
3000
|
-
let r = /* @__PURE__ */
|
|
3001
|
-
var i =
|
|
3002
|
-
|
|
3016
|
+
globalThis.altchaI18n.set("en", fs);
|
|
3017
|
+
const $r = (e, t) => {
|
|
3018
|
+
let r = /* @__PURE__ */ vo(() => Un(t == null ? void 0 : t(), 24));
|
|
3019
|
+
var i = gs();
|
|
3020
|
+
Ie(() => {
|
|
3003
3021
|
R(i, "width", l(r)), R(i, "height", l(r));
|
|
3004
|
-
}),
|
|
3022
|
+
}), H(e, i);
|
|
3005
3023
|
};
|
|
3006
|
-
function
|
|
3024
|
+
function us(e, t) {
|
|
3007
3025
|
e.code === "Space" && (e.preventDefault(), e.stopImmediatePropagation(), t());
|
|
3008
3026
|
}
|
|
3009
|
-
function
|
|
3027
|
+
function ds(e, t) {
|
|
3010
3028
|
e.preventDefault(), t();
|
|
3011
3029
|
}
|
|
3012
|
-
function
|
|
3013
|
-
var
|
|
3030
|
+
function hs(e, t, r, i, o, n, c, s) {
|
|
3031
|
+
var u;
|
|
3014
3032
|
[
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
].includes(l(t)) ? r() !== !1 && ((
|
|
3020
|
-
}
|
|
3021
|
-
var
|
|
3022
|
-
function
|
|
3023
|
-
var
|
|
3024
|
-
|
|
3025
|
-
const [r, i] =
|
|
3026
|
-
let n = x(t, "auto", 7, void 0),
|
|
3027
|
-
const { altchaI18n:
|
|
3033
|
+
C.UNVERIFIED,
|
|
3034
|
+
C.ERROR,
|
|
3035
|
+
C.EXPIRED,
|
|
3036
|
+
C.CODE
|
|
3037
|
+
].includes(l(t)) ? r() !== !1 && ((u = l(i)) == null ? void 0 : u.reportValidity()) === !1 ? A(o, !1) : n() ? c() : s() : A(o, !0);
|
|
3038
|
+
}
|
|
3039
|
+
var gs = /* @__PURE__ */ pr('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'), vs = /* @__PURE__ */ Ce('<input type="hidden">'), bs = /* @__PURE__ */ Ce('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>'), ps = /* @__PURE__ */ pr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'), ms = /* @__PURE__ */ pr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'), ys = /* @__PURE__ */ pr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'), As = /* @__PURE__ */ Ce('<button type="button" class="altcha-code-challenge-audio"><!></button>'), ks = /* @__PURE__ */ Ce("<audio hidden autoplay><source></audio>"), _s = /* @__PURE__ */ Ce('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'), ws = /* @__PURE__ */ Ce("<div><!></div>"), Cs = /* @__PURE__ */ Ce("<div><!></div>"), Es = /* @__PURE__ */ Ce('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), Ls = /* @__PURE__ */ Ce('<div class="altcha-footer"><div><!></div></div>'), xs = /* @__PURE__ */ Ce('<div class="altcha-anchor-arrow"></div>'), Ts = /* @__PURE__ */ Ce('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>', 1);
|
|
3040
|
+
function Is(e, t) {
|
|
3041
|
+
var Sa, Pa;
|
|
3042
|
+
di(t, !0);
|
|
3043
|
+
const [r, i] = Jo(), o = () => Ko(Ki, "$altchaI18nStore", r);
|
|
3044
|
+
let n = x(t, "auto", 7, void 0), c = x(t, "blockspam", 7, void 0), s = x(t, "challengeurl", 7, void 0), u = x(t, "challengejson", 7, void 0), d = x(t, "credentials", 7, void 0), m = x(t, "customfetch", 7, void 0), h = x(t, "debug", 7, !1), b = x(t, "delay", 7, 0), k = x(t, "disableautofocus", 7, !1), V = x(t, "expire", 7, void 0), w = x(t, "floating", 7, void 0), q = x(t, "floatinganchor", 7, void 0), ue = x(t, "floatingoffset", 7, void 0), J = x(t, "floatingpersist", 7, !1), te = x(t, "hidefooter", 7, !1), X = x(t, "hidelogo", 7, !1), st = x(t, "id", 7, void 0), F = x(t, "language", 7, void 0), oe = x(t, "name", 7, "altcha"), ye = x(t, "maxnumber", 7, 1e6), wt = x(t, "mockerror", 7, !1), De = x(t, "obfuscated", 7, void 0), Ee = x(t, "overlay", 7, void 0), Ct = x(t, "overlaycontent", 7, void 0), Bt = x(t, "plugins", 7, void 0), Et = x(t, "refetchonexpire", 7, !0), Ke = x(t, "sentinel", 7, void 0), Le = x(t, "spamfilter", 7, !1), ct = x(t, "strings", 7, void 0), ve = x(t, "test", 7, !1), re = x(t, "verifyurl", 7, void 0), ft = x(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), Lt = x(t, "workerurl", 7, void 0);
|
|
3045
|
+
const { altchaI18n: Wi } = globalThis, Ki = Wi.store, Qr = ["SHA-256", "SHA-384", "SHA-512"], Ji = "https://altcha.org/", qe = (a, f) => {
|
|
3028
3046
|
t.$$host.dispatchEvent(new CustomEvent(a, { detail: f }));
|
|
3029
|
-
},
|
|
3047
|
+
}, ea = (Pa = (Sa = document.documentElement.lang) == null ? void 0 : Sa.split("-")) == null ? void 0 : Pa[0], mr = /* @__PURE__ */ $t(() => {
|
|
3030
3048
|
var a;
|
|
3031
3049
|
return s() && new URL(s(), location.origin).host.endsWith(".altcha.org") && !!((a = s()) != null && a.includes("apiKey=ckey_"));
|
|
3032
|
-
}),
|
|
3033
|
-
...
|
|
3034
|
-
...l(
|
|
3035
|
-
})),
|
|
3036
|
-
let
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
}),
|
|
3040
|
-
|
|
3041
|
-
}),
|
|
3042
|
-
|
|
3043
|
-
}),
|
|
3050
|
+
}), yr = /* @__PURE__ */ $t(() => u() ? va(u()) : void 0), Xi = /* @__PURE__ */ $t(() => ct() ? va(ct()) : {}), P = /* @__PURE__ */ $t(() => ({
|
|
3051
|
+
...ia(o()),
|
|
3052
|
+
...l(Xi)
|
|
3053
|
+
})), ta = /* @__PURE__ */ $t(() => `${st() || oe()}_checkbox_${Math.round(Math.random() * 1e8)}`);
|
|
3054
|
+
let xt = /* @__PURE__ */ z(!1), B = /* @__PURE__ */ z(null), T = /* @__PURE__ */ z(Be(C.UNVERIFIED)), O = /* @__PURE__ */ z(void 0), Tt = /* @__PURE__ */ z(null), Oe = /* @__PURE__ */ z(null), de = /* @__PURE__ */ z(null), Ar = /* @__PURE__ */ z(null), ut = /* @__PURE__ */ z(null), S = /* @__PURE__ */ z(null), It = /* @__PURE__ */ z(null), Je = /* @__PURE__ */ z(null), xe = null, U = /* @__PURE__ */ z(null), Xe = /* @__PURE__ */ z(!1), He = [], kr = /* @__PURE__ */ z(!1), $e = /* @__PURE__ */ z(null);
|
|
3055
|
+
zr(() => {
|
|
3056
|
+
dn(l(Je));
|
|
3057
|
+
}), zr(() => {
|
|
3058
|
+
hn(l(T));
|
|
3059
|
+
}), al(() => {
|
|
3060
|
+
Qi(), l(S) && (l(S).removeEventListener("submit", fa), l(S).removeEventListener("reset", ua), l(S).removeEventListener("focusin", ca), A(S, null)), xe && (clearTimeout(xe), xe = null), document.removeEventListener("click", la), document.removeEventListener("scroll", sa), window.removeEventListener("resize", ga);
|
|
3061
|
+
}), Mi(() => {
|
|
3044
3062
|
var a;
|
|
3045
|
-
I("mounted", "2.0.
|
|
3046
|
-
|
|
3063
|
+
I("mounted", "2.1.0-beta.1"), I("workers", ft()), an(), I("plugins", He.length ? He.map((f) => f.constructor.pluginName).join(", ") : "none"), ve() && I("using test mode"), V() && wr(V()), n() !== void 0 && I("auto", n()), w() !== void 0 && pa(w()), A(S, (a = l(O)) == null ? void 0 : a.closest("form"), !0), l(S) && (l(S).addEventListener("submit", fa, { capture: !0 }), l(S).addEventListener("reset", ua), (n() === "onfocus" || J() === "focus") && l(S).addEventListener("focusin", ca)), Ee() && ma(!0), n() === "onload" && (De() ? Vt() : Se()), l(mr) && (te() || X()) && I("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
|
|
3064
|
+
qe("load");
|
|
3047
3065
|
});
|
|
3048
3066
|
});
|
|
3049
|
-
function
|
|
3067
|
+
function Ut(a, f) {
|
|
3050
3068
|
return btoa(JSON.stringify({
|
|
3051
3069
|
algorithm: a.algorithm,
|
|
3052
3070
|
challenge: a.challenge,
|
|
3053
3071
|
number: f.number,
|
|
3054
3072
|
salt: a.salt,
|
|
3055
3073
|
signature: a.signature,
|
|
3056
|
-
test:
|
|
3074
|
+
test: ve() ? !0 : void 0,
|
|
3057
3075
|
took: f.took
|
|
3058
3076
|
}));
|
|
3059
3077
|
}
|
|
3060
|
-
function
|
|
3061
|
-
for (const a of
|
|
3078
|
+
function Qi() {
|
|
3079
|
+
for (const a of He)
|
|
3062
3080
|
a.destroy();
|
|
3063
3081
|
}
|
|
3064
|
-
function
|
|
3065
|
-
s() &&
|
|
3082
|
+
function ra() {
|
|
3083
|
+
s() && Et() && l(T) === C.VERIFIED ? Se() : Qe(C.EXPIRED, l(P).expired);
|
|
3066
3084
|
}
|
|
3067
|
-
async function
|
|
3085
|
+
async function en() {
|
|
3068
3086
|
var a;
|
|
3069
|
-
if (
|
|
3087
|
+
if (wt())
|
|
3070
3088
|
throw I("mocking error"), new Error("Mocked error.");
|
|
3071
|
-
if (l(
|
|
3072
|
-
return I("using provided json data"), l(
|
|
3073
|
-
if (
|
|
3074
|
-
return I("generating test challenge", { test:
|
|
3089
|
+
if (l(yr))
|
|
3090
|
+
return I("using provided json data"), l(yr);
|
|
3091
|
+
if (ve())
|
|
3092
|
+
return I("generating test challenge", { test: ve() }), ns(typeof ve() != "boolean" ? +ve() : void 0);
|
|
3075
3093
|
{
|
|
3076
3094
|
if (!s() && l(S)) {
|
|
3077
|
-
const
|
|
3078
|
-
|
|
3095
|
+
const E = l(S).getAttribute("action");
|
|
3096
|
+
E != null && E.includes("/form/") && s(E + "/altcha");
|
|
3079
3097
|
}
|
|
3080
3098
|
if (!s())
|
|
3081
3099
|
throw new Error("Attribute challengeurl not set.");
|
|
3082
3100
|
I("fetching challenge from", s());
|
|
3083
3101
|
const f = {
|
|
3084
3102
|
credentials: typeof d() == "boolean" ? "include" : d(),
|
|
3085
|
-
headers:
|
|
3086
|
-
}, g = await
|
|
3103
|
+
headers: Le() !== !1 ? { "x-altcha-spam-filter": "1" } : {}
|
|
3104
|
+
}, g = await aa()(s(), f);
|
|
3087
3105
|
if (!g || !(g instanceof Response))
|
|
3088
3106
|
throw new Error("Custom fetch function did not return a response.");
|
|
3089
3107
|
if (g.status !== 200)
|
|
3090
3108
|
throw new Error(`Server responded with ${g.status}.`);
|
|
3091
|
-
const
|
|
3092
|
-
if (
|
|
3093
|
-
const
|
|
3094
|
-
|
|
3109
|
+
const p = g.headers.get("X-Altcha-Config"), v = await g.json(), _ = new URLSearchParams((a = v.salt.split("?")) == null ? void 0 : a[1]), y = _.get("expires") || _.get("expire");
|
|
3110
|
+
if (y) {
|
|
3111
|
+
const E = new Date(+y * 1e3), M = isNaN(E.getTime()) ? 0 : E.getTime() - Date.now();
|
|
3112
|
+
M > 0 && wr(M);
|
|
3095
3113
|
}
|
|
3096
|
-
if (
|
|
3114
|
+
if (p)
|
|
3097
3115
|
try {
|
|
3098
|
-
const
|
|
3099
|
-
|
|
3100
|
-
} catch (
|
|
3101
|
-
I("unable to configure from X-Altcha-Config",
|
|
3116
|
+
const E = JSON.parse(p);
|
|
3117
|
+
E && typeof E == "object" && (E.verifyurl && !E.verifyurl.startsWith("fn:") && (E.verifyurl = oa(E.verifyurl)), ka(E));
|
|
3118
|
+
} catch (E) {
|
|
3119
|
+
I("unable to configure from X-Altcha-Config", E);
|
|
3102
3120
|
}
|
|
3103
|
-
return
|
|
3121
|
+
return v;
|
|
3104
3122
|
}
|
|
3105
3123
|
}
|
|
3106
|
-
function
|
|
3107
|
-
var g,
|
|
3124
|
+
function tn(a) {
|
|
3125
|
+
var g, p;
|
|
3108
3126
|
const f = (g = l(S)) == null ? void 0 : g.querySelector(typeof a == "string" ? `input[name="${a}"]` : 'input[type="email"]:not([data-no-spamfilter])');
|
|
3109
|
-
return ((
|
|
3127
|
+
return ((p = f == null ? void 0 : f.value) == null ? void 0 : p.slice(f.value.indexOf("@"))) || void 0;
|
|
3110
3128
|
}
|
|
3111
|
-
function
|
|
3129
|
+
function aa() {
|
|
3112
3130
|
let a = fetch;
|
|
3113
|
-
if (
|
|
3114
|
-
if (I("using customfetch"), typeof
|
|
3115
|
-
if (a = globalThis[
|
|
3116
|
-
throw new Error(`Custom fetch function not found: ${
|
|
3131
|
+
if (m())
|
|
3132
|
+
if (I("using customfetch"), typeof m() == "string") {
|
|
3133
|
+
if (a = globalThis[m()] || null, !a)
|
|
3134
|
+
throw new Error(`Custom fetch function not found: ${m()}`);
|
|
3117
3135
|
} else
|
|
3118
|
-
a =
|
|
3136
|
+
a = m();
|
|
3119
3137
|
return a;
|
|
3120
3138
|
}
|
|
3121
|
-
function
|
|
3122
|
-
|
|
3139
|
+
function ia(a, f = [
|
|
3140
|
+
F() || "",
|
|
3123
3141
|
document.documentElement.lang || "",
|
|
3124
3142
|
...navigator.languages
|
|
3125
3143
|
]) {
|
|
3126
|
-
const g = Object.keys(a).map((
|
|
3127
|
-
(
|
|
3144
|
+
const g = Object.keys(a).map((v) => v.toLowerCase()), p = f.reduce(
|
|
3145
|
+
(v, _) => (_ = _.toLowerCase(), v || (a[_] ? _ : null) || g.find((y) => _.split("-")[0] === y.split("-")[0]) || null),
|
|
3128
3146
|
null
|
|
3129
3147
|
);
|
|
3130
|
-
return a[
|
|
3148
|
+
return a[p || "en"];
|
|
3131
3149
|
}
|
|
3132
|
-
function
|
|
3133
|
-
return
|
|
3150
|
+
function rn() {
|
|
3151
|
+
return Le() === "ipAddress" ? {
|
|
3134
3152
|
blockedCountries: void 0,
|
|
3135
3153
|
classifier: void 0,
|
|
3136
3154
|
disableRules: void 0,
|
|
@@ -3141,7 +3159,7 @@ function ws(e, t) {
|
|
|
3141
3159
|
ipAddress: void 0,
|
|
3142
3160
|
text: void 0,
|
|
3143
3161
|
timeZone: void 0
|
|
3144
|
-
} : typeof
|
|
3162
|
+
} : typeof Le() == "object" ? Le() : {
|
|
3145
3163
|
blockedCountries: void 0,
|
|
3146
3164
|
classifier: void 0,
|
|
3147
3165
|
disableRules: void 0,
|
|
@@ -3154,158 +3172,159 @@ function ws(e, t) {
|
|
|
3154
3172
|
timeZone: void 0
|
|
3155
3173
|
};
|
|
3156
3174
|
}
|
|
3157
|
-
function
|
|
3175
|
+
function na(a) {
|
|
3158
3176
|
var g;
|
|
3159
3177
|
return [
|
|
3160
|
-
...((g = l(S)) == null ? void 0 : g.querySelectorAll(a != null && a.length ? a.map((
|
|
3178
|
+
...((g = l(S)) == null ? void 0 : g.querySelectorAll(a != null && a.length ? a.map((p) => `input[name="${p}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
|
|
3161
3179
|
].reduce(
|
|
3162
|
-
(
|
|
3163
|
-
const
|
|
3164
|
-
return
|
|
3165
|
-
`) :
|
|
3180
|
+
(p, v) => {
|
|
3181
|
+
const _ = v.name, y = v.value;
|
|
3182
|
+
return _ && y && (p[_] = /\n/.test(y) ? y.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
|
|
3183
|
+
`) : y), p;
|
|
3166
3184
|
},
|
|
3167
3185
|
{}
|
|
3168
3186
|
);
|
|
3169
3187
|
}
|
|
3170
|
-
function
|
|
3171
|
-
const g = new URL(s() || location.origin),
|
|
3172
|
-
if (
|
|
3173
|
-
for (const
|
|
3174
|
-
f[
|
|
3175
|
-
return
|
|
3188
|
+
function oa(a, f) {
|
|
3189
|
+
const g = new URL(s() || location.origin), p = new URL(a, g);
|
|
3190
|
+
if (p.search || (p.search = g.search), f)
|
|
3191
|
+
for (const v in f)
|
|
3192
|
+
f[v] !== void 0 && f[v] !== null && p.searchParams.set(v, f[v]);
|
|
3193
|
+
return p.toString();
|
|
3176
3194
|
}
|
|
3177
|
-
function
|
|
3178
|
-
const a =
|
|
3195
|
+
function an() {
|
|
3196
|
+
const a = Bt() !== void 0 ? Bt().split(",") : void 0;
|
|
3179
3197
|
for (const f of globalThis.altchaPlugins)
|
|
3180
|
-
(!a || a.includes(f.pluginName)) &&
|
|
3181
|
-
el: l(
|
|
3182
|
-
clarify:
|
|
3183
|
-
dispatch:
|
|
3184
|
-
getConfiguration:
|
|
3185
|
-
getFloatingAnchor:
|
|
3186
|
-
getState:
|
|
3198
|
+
(!a || a.includes(f.pluginName)) && He.push(new f({
|
|
3199
|
+
el: l(O),
|
|
3200
|
+
clarify: Vt,
|
|
3201
|
+
dispatch: qe,
|
|
3202
|
+
getConfiguration: _a,
|
|
3203
|
+
getFloatingAnchor: wa,
|
|
3204
|
+
getState: Ca,
|
|
3187
3205
|
log: I,
|
|
3188
|
-
reset:
|
|
3189
|
-
solve:
|
|
3190
|
-
setState:
|
|
3191
|
-
setFloatingAnchor:
|
|
3192
|
-
verify:
|
|
3206
|
+
reset: Qe,
|
|
3207
|
+
solve: Aa,
|
|
3208
|
+
setState: Te,
|
|
3209
|
+
setFloatingAnchor: Ea,
|
|
3210
|
+
verify: Se
|
|
3193
3211
|
}));
|
|
3194
3212
|
}
|
|
3195
3213
|
function I(...a) {
|
|
3196
3214
|
(h() || a.some((f) => f instanceof Error)) && console[a[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${oe()}]`, ...a);
|
|
3197
3215
|
}
|
|
3198
|
-
function
|
|
3199
|
-
|
|
3216
|
+
function nn() {
|
|
3217
|
+
A(U, ee.PAUSED, !0);
|
|
3200
3218
|
}
|
|
3201
|
-
function
|
|
3202
|
-
|
|
3219
|
+
function on(a) {
|
|
3220
|
+
A(U, ee.ERROR, !0);
|
|
3203
3221
|
}
|
|
3204
|
-
function
|
|
3205
|
-
|
|
3222
|
+
function ln() {
|
|
3223
|
+
A(U, ee.READY, !0);
|
|
3206
3224
|
}
|
|
3207
|
-
function
|
|
3208
|
-
|
|
3225
|
+
function sn() {
|
|
3226
|
+
A(U, ee.LOADING, !0);
|
|
3209
3227
|
}
|
|
3210
|
-
function
|
|
3211
|
-
|
|
3228
|
+
function cn() {
|
|
3229
|
+
A(U, ee.PLAYING, !0);
|
|
3212
3230
|
}
|
|
3213
|
-
function
|
|
3214
|
-
|
|
3231
|
+
function fn() {
|
|
3232
|
+
A(U, ee.PAUSED, !0);
|
|
3215
3233
|
}
|
|
3216
|
-
function
|
|
3234
|
+
function un(a) {
|
|
3217
3235
|
var f;
|
|
3218
|
-
if (a.preventDefault(), a.stopPropagation(), l(
|
|
3219
|
-
const g = new FormData(a.target),
|
|
3220
|
-
if ((f =
|
|
3221
|
-
const
|
|
3222
|
-
if (I(`calling ${
|
|
3223
|
-
throw new Error(`Global function "${
|
|
3224
|
-
return globalThis[
|
|
3225
|
-
challenge: l(
|
|
3226
|
-
code:
|
|
3227
|
-
solution: l(
|
|
3236
|
+
if (a.preventDefault(), a.stopPropagation(), l(B)) {
|
|
3237
|
+
const g = new FormData(a.target), p = String(g.get("code"));
|
|
3238
|
+
if ((f = re()) != null && f.startsWith("fn:")) {
|
|
3239
|
+
const v = re().replace(/^fn:/, "");
|
|
3240
|
+
if (I(`calling ${v} function instead of verifyurl`), !(v in globalThis))
|
|
3241
|
+
throw new Error(`Global function "${v}" is undefined.`);
|
|
3242
|
+
return globalThis[v]({
|
|
3243
|
+
challenge: l(B).challenge,
|
|
3244
|
+
code: p,
|
|
3245
|
+
solution: l(B).solution
|
|
3228
3246
|
});
|
|
3229
3247
|
}
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
var
|
|
3233
|
-
(
|
|
3234
|
-
})) : (
|
|
3235
|
-
}).catch((
|
|
3236
|
-
|
|
3248
|
+
A(Xe, !0), ba(Ut(l(B).challenge, l(B).solution), p).then(({ reason: v, verified: _ }) => {
|
|
3249
|
+
_ ? (A(B, null), Te(C.VERIFIED), I("verified"), jr().then(() => {
|
|
3250
|
+
var y;
|
|
3251
|
+
(y = l(Ar)) == null || y.focus(), qe("verified", { payload: l($e) }), n() === "onsubmit" ? _r(l(It)) : Ee() && Zt();
|
|
3252
|
+
})) : (Qe(), A(Je, v || "Verification failed", !0));
|
|
3253
|
+
}).catch((v) => {
|
|
3254
|
+
A(B, null), Te(C.ERROR, v), I("sentinel verification failed:", v);
|
|
3237
3255
|
}).finally(() => {
|
|
3238
|
-
|
|
3256
|
+
A(Xe, !1);
|
|
3239
3257
|
});
|
|
3240
3258
|
}
|
|
3241
3259
|
}
|
|
3242
|
-
function
|
|
3260
|
+
function la(a) {
|
|
3243
3261
|
var g;
|
|
3244
3262
|
const f = a.target;
|
|
3245
|
-
|
|
3263
|
+
w() && f && !l(O).contains(f) && (l(T) === C.VERIFIED && J() === !1 || l(T) === C.VERIFIED && J() === "focus" && !((g = l(S)) != null && g.matches(":focus-within")) || n() === "off" && l(T) === C.UNVERIFIED) && Zt();
|
|
3246
3264
|
}
|
|
3247
|
-
function
|
|
3248
|
-
|
|
3265
|
+
function sa() {
|
|
3266
|
+
w() && l(T) !== C.UNVERIFIED && Rt();
|
|
3249
3267
|
}
|
|
3250
|
-
function
|
|
3251
|
-
for (const f of
|
|
3252
|
-
typeof f.onErrorChange == "function" && f.onErrorChange(l(
|
|
3268
|
+
function dn(a) {
|
|
3269
|
+
for (const f of He)
|
|
3270
|
+
typeof f.onErrorChange == "function" && f.onErrorChange(l(Je));
|
|
3253
3271
|
}
|
|
3254
|
-
function
|
|
3255
|
-
l(T) ===
|
|
3272
|
+
function ca(a) {
|
|
3273
|
+
l(T) === C.UNVERIFIED ? Se() : w() && J() === "focus" && l(T) === C.VERIFIED && Cr();
|
|
3256
3274
|
}
|
|
3257
|
-
function
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3275
|
+
function fa(a) {
|
|
3276
|
+
var p;
|
|
3277
|
+
const f = a.target;
|
|
3278
|
+
f != null && f.hasAttribute("data-code-challenge-form") || (A(It, a.submitter, !0), l(S) && n() === "onsubmit" ? ((p = l(It)) == null || p.blur(), l(T) === C.UNVERIFIED ? (a.preventDefault(), a.stopPropagation(), Se().then(() => {
|
|
3279
|
+
_r(l(It));
|
|
3280
|
+
})) : l(T) !== C.VERIFIED && (a.preventDefault(), a.stopPropagation(), l(T) === C.VERIFYING && da())) : l(S) && w() && n() === "off" && l(T) === C.UNVERIFIED && (a.preventDefault(), a.stopPropagation(), Cr()));
|
|
3262
3281
|
}
|
|
3263
|
-
function
|
|
3264
|
-
|
|
3282
|
+
function ua() {
|
|
3283
|
+
Qe();
|
|
3265
3284
|
}
|
|
3266
|
-
function
|
|
3267
|
-
l(T) ===
|
|
3285
|
+
function da() {
|
|
3286
|
+
l(T) === C.VERIFYING && l(P).waitAlert && alert(l(P).waitAlert);
|
|
3268
3287
|
}
|
|
3269
|
-
function
|
|
3270
|
-
l(
|
|
3288
|
+
function ha() {
|
|
3289
|
+
l(Oe) ? l(Oe).paused ? (l(Oe).currentTime = 0, l(Oe).play()) : l(Oe).pause() : (A(kr, !0), requestAnimationFrame(() => {
|
|
3271
3290
|
var a;
|
|
3272
|
-
(a = l(
|
|
3291
|
+
(a = l(Oe)) == null || a.play();
|
|
3273
3292
|
}));
|
|
3274
3293
|
}
|
|
3275
|
-
function
|
|
3276
|
-
for (const f of
|
|
3294
|
+
function hn(a) {
|
|
3295
|
+
for (const f of He)
|
|
3277
3296
|
typeof f.onStateChange == "function" && f.onStateChange(l(T));
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
}),
|
|
3297
|
+
w() && l(T) !== C.UNVERIFIED && requestAnimationFrame(() => {
|
|
3298
|
+
Rt();
|
|
3299
|
+
}), A(xt, l(T) === C.VERIFIED), Ee() && l(de) && (l(T) !== C.UNVERIFIED ? l(de).style.display = "flex" : l(de).style.display = "none");
|
|
3281
3300
|
}
|
|
3282
|
-
function
|
|
3283
|
-
|
|
3301
|
+
function ga() {
|
|
3302
|
+
w() && Rt();
|
|
3284
3303
|
}
|
|
3285
|
-
function
|
|
3304
|
+
function va(a) {
|
|
3286
3305
|
return JSON.parse(a);
|
|
3287
3306
|
}
|
|
3288
|
-
async function
|
|
3289
|
-
if (!
|
|
3307
|
+
async function gn(a) {
|
|
3308
|
+
if (!re())
|
|
3290
3309
|
throw new Error("Attribute verifyurl not set.");
|
|
3291
|
-
I("requesting server verification from",
|
|
3310
|
+
I("requesting server verification from", re());
|
|
3292
3311
|
const f = { payload: a };
|
|
3293
|
-
if (
|
|
3312
|
+
if (Le() !== !1) {
|
|
3294
3313
|
const {
|
|
3295
|
-
blockedCountries:
|
|
3296
|
-
classifier:
|
|
3297
|
-
disableRules:
|
|
3298
|
-
email:
|
|
3299
|
-
expectedLanguages:
|
|
3300
|
-
expectedCountries:
|
|
3314
|
+
blockedCountries: v,
|
|
3315
|
+
classifier: _,
|
|
3316
|
+
disableRules: y,
|
|
3317
|
+
email: E,
|
|
3318
|
+
expectedLanguages: M,
|
|
3319
|
+
expectedCountries: Q,
|
|
3301
3320
|
fields: le,
|
|
3302
|
-
ipAddress:
|
|
3303
|
-
text:
|
|
3304
|
-
timeZone:
|
|
3305
|
-
} =
|
|
3306
|
-
f.blockedCountries =
|
|
3321
|
+
ipAddress: Fe,
|
|
3322
|
+
text: Lr,
|
|
3323
|
+
timeZone: Wt
|
|
3324
|
+
} = rn();
|
|
3325
|
+
f.blockedCountries = v, f.classifier = _, f.disableRules = y, f.email = E === !1 ? void 0 : tn(E), f.expectedCountries = Q, f.expectedLanguages = M || (ea ? [ea] : void 0), f.fields = le === !1 ? void 0 : na(le), f.ipAddress = Fe === !1 ? void 0 : Fe || "auto", f.text = Lr, f.timeZone = Wt === !1 ? void 0 : Wt || Ja();
|
|
3307
3326
|
}
|
|
3308
|
-
const g = await
|
|
3327
|
+
const g = await aa()(re(), {
|
|
3309
3328
|
body: JSON.stringify(f),
|
|
3310
3329
|
headers: { "content-type": "application/json" },
|
|
3311
3330
|
method: "POST"
|
|
@@ -3314,55 +3333,65 @@ function ws(e, t) {
|
|
|
3314
3333
|
throw new Error("Custom fetch function did not return a response.");
|
|
3315
3334
|
if (g.status !== 200)
|
|
3316
3335
|
throw new Error(`Server responded with ${g.status}.`);
|
|
3317
|
-
const
|
|
3318
|
-
if (
|
|
3336
|
+
const p = await g.json();
|
|
3337
|
+
if (p != null && p.payload && A($e, p.payload, !0), qe("serververification", p), c() && p.classification === "BAD")
|
|
3319
3338
|
throw new Error("SpamFilter returned negative classification.");
|
|
3320
3339
|
}
|
|
3321
|
-
async function
|
|
3322
|
-
if (!
|
|
3340
|
+
async function ba(a, f) {
|
|
3341
|
+
if (!re())
|
|
3323
3342
|
throw new Error("Attribute verifyurl not set.");
|
|
3324
|
-
I("requesting sentinel verification from",
|
|
3343
|
+
I("requesting sentinel verification from", re());
|
|
3325
3344
|
const g = { code: f, payload: a };
|
|
3326
|
-
|
|
3327
|
-
const
|
|
3345
|
+
Ke() && (g.fields = Ke().fields ? na() : void 0, g.timeZone = Ke().timeZone ? Ja() : void 0);
|
|
3346
|
+
const p = await fetch(re(), {
|
|
3328
3347
|
body: JSON.stringify(g),
|
|
3329
3348
|
headers: { "content-type": "application/json" },
|
|
3330
3349
|
method: "POST"
|
|
3331
3350
|
});
|
|
3332
|
-
if (!
|
|
3351
|
+
if (!p || !(p instanceof Response))
|
|
3333
3352
|
throw new Error("Fetch function did not return a response.");
|
|
3334
|
-
if (
|
|
3335
|
-
throw new Error(`Server responded with ${
|
|
3336
|
-
const
|
|
3337
|
-
return
|
|
3353
|
+
if (p.status !== 200)
|
|
3354
|
+
throw new Error(`Server responded with ${p.status}.`);
|
|
3355
|
+
const v = await p.json();
|
|
3356
|
+
return v != null && v.payload && A($e, v.payload, !0), qe("sentinelverification", v), v;
|
|
3338
3357
|
}
|
|
3339
|
-
function
|
|
3358
|
+
function _r(a) {
|
|
3340
3359
|
var f;
|
|
3341
3360
|
l(S) && "requestSubmit" in l(S) ? l(S).requestSubmit(a) : (f = l(S)) != null && f.reportValidity() && (a ? a.click() : l(S).submit());
|
|
3342
3361
|
}
|
|
3343
|
-
function
|
|
3344
|
-
I("expire", a),
|
|
3362
|
+
function wr(a) {
|
|
3363
|
+
I("expire", a), xe && (clearTimeout(xe), xe = null), a < 1 ? ra() : xe = setTimeout(ra, a);
|
|
3345
3364
|
}
|
|
3346
|
-
function
|
|
3347
|
-
I("floating", a),
|
|
3365
|
+
function pa(a) {
|
|
3366
|
+
I("floating", a), w() !== a && (l(O).style.left = "", l(O).style.top = ""), w(a === !0 || a === "" ? "auto" : a === !1 || a === "false" ? void 0 : w()), w() ? (n() || n("onsubmit"), document.addEventListener("scroll", sa), document.addEventListener("click", la), window.addEventListener("resize", ga)) : n() === "onsubmit" && n(void 0);
|
|
3367
|
+
}
|
|
3368
|
+
function ma(a) {
|
|
3369
|
+
var f, g, p, v;
|
|
3370
|
+
if (l(de) && ((g = (f = l(O).parentElement) == null ? void 0 : f.parentElement) == null || g.append(l(O).parentElement), document.body.removeChild(l(de))), a && (n() || n("onsubmit"), (v = (p = l(O)) == null ? void 0 : p.parentElement) != null && v.parentElement)) {
|
|
3371
|
+
A(de, document.createElement("div"), !0), l(O).parentElement.parentElement.appendChild(l(de));
|
|
3372
|
+
const _ = document.createElement("div"), y = document.createElement("button");
|
|
3373
|
+
y.type = "button", y.innerHTML = "×", y.addEventListener("click", (E) => {
|
|
3374
|
+
E.preventDefault(), Qe();
|
|
3375
|
+
}), l(de).classList.add("altcha-overlay-backdrop"), y.classList.add("altcha-overlay-close-button"), _.classList.add("altcha-overlay"), l(de).append(_), _.append(y), Ct() && _.append(...document.querySelectorAll(Ct())), _.append(l(O).parentElement);
|
|
3376
|
+
}
|
|
3348
3377
|
}
|
|
3349
|
-
function
|
|
3378
|
+
function ya(a) {
|
|
3350
3379
|
if (!a.algorithm)
|
|
3351
3380
|
throw new Error("Invalid challenge. Property algorithm is missing.");
|
|
3352
3381
|
if (a.signature === void 0)
|
|
3353
3382
|
throw new Error("Invalid challenge. Property signature is missing.");
|
|
3354
|
-
if (!
|
|
3355
|
-
throw new Error(`Unknown algorithm value. Allowed values: ${
|
|
3383
|
+
if (!Qr.includes(a.algorithm.toUpperCase()))
|
|
3384
|
+
throw new Error(`Unknown algorithm value. Allowed values: ${Qr.join(", ")}`);
|
|
3356
3385
|
if (!a.challenge || a.challenge.length < 40)
|
|
3357
3386
|
throw new Error("Challenge is too short. Min. 40 chars.");
|
|
3358
3387
|
if (!a.salt || a.salt.length < 10)
|
|
3359
3388
|
throw new Error("Salt is too short. Min. 10 chars.");
|
|
3360
3389
|
}
|
|
3361
|
-
async function
|
|
3390
|
+
async function Aa(a) {
|
|
3362
3391
|
let f = null;
|
|
3363
3392
|
if ("Worker" in window) {
|
|
3364
3393
|
try {
|
|
3365
|
-
f = await
|
|
3394
|
+
f = await vn(a, a.maxNumber || a.maxnumber || ye());
|
|
3366
3395
|
} catch (g) {
|
|
3367
3396
|
I(g);
|
|
3368
3397
|
}
|
|
@@ -3370,588 +3399,601 @@ function ws(e, t) {
|
|
|
3370
3399
|
return { data: a, solution: f };
|
|
3371
3400
|
}
|
|
3372
3401
|
if ("obfuscated" in a) {
|
|
3373
|
-
const g = await
|
|
3402
|
+
const g = await cs(a.obfuscated, a.key, a.maxNumber || a.maxnumber);
|
|
3374
3403
|
return { data: a, solution: await g.promise };
|
|
3375
3404
|
}
|
|
3376
3405
|
return {
|
|
3377
3406
|
data: a,
|
|
3378
|
-
solution: await
|
|
3407
|
+
solution: await os(a.challenge, a.salt, a.algorithm, a.maxNumber || a.maxnumber || ye()).promise
|
|
3379
3408
|
};
|
|
3380
3409
|
}
|
|
3381
|
-
async function
|
|
3382
|
-
const
|
|
3410
|
+
async function vn(a, f = typeof ve() == "number" ? ve() : a.maxNumber || a.maxnumber || ye(), g = Math.ceil(ft())) {
|
|
3411
|
+
const p = [];
|
|
3383
3412
|
g = Math.min(16, f, Math.max(1, g));
|
|
3384
|
-
for (let
|
|
3385
|
-
|
|
3386
|
-
const
|
|
3387
|
-
const
|
|
3388
|
-
return new Promise((
|
|
3389
|
-
|
|
3413
|
+
for (let y = 0; y < g; y++)
|
|
3414
|
+
p.push(altchaCreateWorker(Lt()));
|
|
3415
|
+
const v = Math.ceil(f / g), _ = await Promise.all(p.map((y, E) => {
|
|
3416
|
+
const M = E * v;
|
|
3417
|
+
return new Promise((Q) => {
|
|
3418
|
+
y.addEventListener("message", (le) => {
|
|
3390
3419
|
if (le.data)
|
|
3391
|
-
for (const
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
}),
|
|
3420
|
+
for (const Fe of p)
|
|
3421
|
+
Fe !== y && Fe.postMessage({ type: "abort" });
|
|
3422
|
+
Q(le.data);
|
|
3423
|
+
}), y.postMessage({
|
|
3395
3424
|
payload: a,
|
|
3396
|
-
max:
|
|
3397
|
-
start:
|
|
3425
|
+
max: M + v,
|
|
3426
|
+
start: M,
|
|
3398
3427
|
type: "work"
|
|
3399
3428
|
});
|
|
3400
3429
|
});
|
|
3401
3430
|
}));
|
|
3402
|
-
for (const
|
|
3403
|
-
|
|
3404
|
-
return
|
|
3431
|
+
for (const y of p)
|
|
3432
|
+
y.terminate();
|
|
3433
|
+
return _.find((y) => !!y) || null;
|
|
3405
3434
|
}
|
|
3406
|
-
async function
|
|
3407
|
-
if (!
|
|
3408
|
-
|
|
3435
|
+
async function Vt() {
|
|
3436
|
+
if (!De()) {
|
|
3437
|
+
Te(C.ERROR);
|
|
3409
3438
|
return;
|
|
3410
3439
|
}
|
|
3411
|
-
const a =
|
|
3440
|
+
const a = He.find((f) => f.constructor.pluginName === "obfuscation");
|
|
3412
3441
|
if (!a || !("clarify" in a)) {
|
|
3413
|
-
|
|
3442
|
+
Te(C.ERROR), I("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");
|
|
3414
3443
|
return;
|
|
3415
3444
|
}
|
|
3416
3445
|
if ("clarify" in a && typeof a.clarify == "function")
|
|
3417
3446
|
return a.clarify();
|
|
3418
3447
|
}
|
|
3419
|
-
function
|
|
3420
|
-
a.obfuscated !== void 0 &&
|
|
3448
|
+
function ka(a) {
|
|
3449
|
+
a.obfuscated !== void 0 && De(a.obfuscated), a.auto !== void 0 && (n(a.auto), n() === "onload" && (De() ? Vt() : Se())), a.blockspam !== void 0 && c(!!a.blockspam), a.customfetch !== void 0 && m(a.customfetch), a.floatinganchor !== void 0 && q(a.floatinganchor), a.delay !== void 0 && b(a.delay), a.floatingoffset !== void 0 && ue(a.floatingoffset), a.floating !== void 0 && pa(a.floating), a.expire !== void 0 && (wr(a.expire), V(a.expire)), a.challenge && (u(typeof a.challenge == "string" ? a.challenge : JSON.stringify(a.challenge)), ya(l(yr))), a.challengeurl !== void 0 && s(a.challengeurl), a.debug !== void 0 && h(!!a.debug), a.hidefooter !== void 0 && te(!!a.hidefooter), a.hidelogo !== void 0 && X(!!a.hidelogo), a.language !== void 0 && ct(ia(o(), [a.language])), a.maxnumber !== void 0 && ye(+a.maxnumber), a.mockerror !== void 0 && wt(!!a.mockerror), a.name !== void 0 && oe(a.name), a.overlay !== void 0 && ma(a.overlay), a.overlaycontent !== void 0 && Ct(a.overlaycontent), a.refetchonexpire !== void 0 && Et(!!a.refetchonexpire), a.sentinel !== void 0 && typeof a.sentinel == "object" && Ke(a.sentinel), a.spamfilter !== void 0 && Le(typeof a.spamfilter == "object" ? a.spamfilter : !!a.spamfilter), a.strings && ct(typeof a.strings == "string" ? a.strings : JSON.stringify(a.strings)), a.test !== void 0 && ve(typeof a.test == "number" ? a.test : !!a.test), a.verifyurl !== void 0 && re(a.verifyurl), a.workers !== void 0 && ft(+a.workers), a.workerurl !== void 0 && Lt(a.workerurl);
|
|
3421
3450
|
}
|
|
3422
|
-
function
|
|
3451
|
+
function _a() {
|
|
3423
3452
|
return {
|
|
3424
3453
|
auto: n(),
|
|
3425
|
-
blockspam:
|
|
3454
|
+
blockspam: c(),
|
|
3426
3455
|
challengeurl: s(),
|
|
3427
3456
|
debug: h(),
|
|
3428
|
-
delay:
|
|
3457
|
+
delay: b(),
|
|
3429
3458
|
expire: V(),
|
|
3430
|
-
floating:
|
|
3459
|
+
floating: w(),
|
|
3431
3460
|
floatinganchor: q(),
|
|
3432
|
-
floatingoffset:
|
|
3433
|
-
hidefooter:
|
|
3434
|
-
hidelogo:
|
|
3461
|
+
floatingoffset: ue(),
|
|
3462
|
+
hidefooter: te(),
|
|
3463
|
+
hidelogo: X(),
|
|
3435
3464
|
name: oe(),
|
|
3436
|
-
maxnumber:
|
|
3437
|
-
mockerror:
|
|
3438
|
-
obfuscated:
|
|
3439
|
-
|
|
3440
|
-
|
|
3465
|
+
maxnumber: ye(),
|
|
3466
|
+
mockerror: wt(),
|
|
3467
|
+
obfuscated: De(),
|
|
3468
|
+
overlay: Ee(),
|
|
3469
|
+
refetchonexpire: Et(),
|
|
3470
|
+
spamfilter: Le(),
|
|
3441
3471
|
strings: l(P),
|
|
3442
|
-
test:
|
|
3443
|
-
verifyurl:
|
|
3444
|
-
workers:
|
|
3445
|
-
workerurl:
|
|
3472
|
+
test: ve(),
|
|
3473
|
+
verifyurl: re(),
|
|
3474
|
+
workers: ft(),
|
|
3475
|
+
workerurl: Lt()
|
|
3446
3476
|
};
|
|
3447
3477
|
}
|
|
3448
|
-
function
|
|
3449
|
-
return l(
|
|
3478
|
+
function wa() {
|
|
3479
|
+
return l(ut);
|
|
3450
3480
|
}
|
|
3451
|
-
function
|
|
3452
|
-
return
|
|
3481
|
+
function bn(a) {
|
|
3482
|
+
return He.find((f) => f.constructor.pluginName === a);
|
|
3453
3483
|
}
|
|
3454
|
-
function
|
|
3484
|
+
function Ca() {
|
|
3455
3485
|
return l(T);
|
|
3456
3486
|
}
|
|
3457
|
-
function
|
|
3458
|
-
l(
|
|
3487
|
+
function Zt() {
|
|
3488
|
+
l(O).style.display = "none", Ee() && l(de) && (l(de).style.display = "none");
|
|
3459
3489
|
}
|
|
3460
|
-
function
|
|
3490
|
+
function Rt(a = 20) {
|
|
3461
3491
|
var f;
|
|
3462
|
-
if (l(
|
|
3463
|
-
if (l(
|
|
3464
|
-
const g = parseInt(
|
|
3465
|
-
if (
|
|
3466
|
-
const
|
|
3467
|
-
l(
|
|
3492
|
+
if (l(O))
|
|
3493
|
+
if (l(ut) || A(ut, (q() ? document.querySelector(q()) : (f = l(S)) == null ? void 0 : f.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || l(S), !0), l(ut)) {
|
|
3494
|
+
const g = parseInt(ue(), 10) || 12, p = l(ut).getBoundingClientRect(), v = l(O).getBoundingClientRect(), _ = document.documentElement.clientHeight, y = document.documentElement.clientWidth, E = w() === "auto" ? p.bottom + v.height + g + a > _ : w() === "top", M = Math.max(a, Math.min(y - a - v.width, p.left + p.width / 2 - v.width / 2));
|
|
3495
|
+
if (E ? l(O).style.top = `${p.top - (v.height + g)}px` : l(O).style.top = `${p.bottom + g}px`, l(O).style.left = `${M}px`, l(O).setAttribute("data-floating", E ? "top" : "bottom"), l(Tt)) {
|
|
3496
|
+
const Q = l(Tt).getBoundingClientRect();
|
|
3497
|
+
l(Tt).style.left = p.left - M + p.width / 2 - Q.width / 2 + "px";
|
|
3468
3498
|
}
|
|
3469
3499
|
} else
|
|
3470
3500
|
I("unable to find floating anchor element");
|
|
3471
3501
|
}
|
|
3472
|
-
function
|
|
3473
|
-
|
|
3502
|
+
function Qe(a = C.UNVERIFIED, f = null) {
|
|
3503
|
+
xe && (clearTimeout(xe), xe = null), A(xt, !1), A($e, null), A(B, null), A(kr, !1), A(U, null), Te(a, f);
|
|
3474
3504
|
}
|
|
3475
|
-
function
|
|
3476
|
-
|
|
3505
|
+
function Ea(a) {
|
|
3506
|
+
A(ut, a, !0);
|
|
3477
3507
|
}
|
|
3478
|
-
function
|
|
3479
|
-
|
|
3480
|
-
payload: l(
|
|
3508
|
+
function Te(a, f = null) {
|
|
3509
|
+
A(T, a, !0), A(Je, f, !0), qe("statechange", {
|
|
3510
|
+
payload: l($e),
|
|
3481
3511
|
state: l(T)
|
|
3482
3512
|
});
|
|
3483
3513
|
}
|
|
3484
|
-
function
|
|
3485
|
-
l(
|
|
3514
|
+
function Cr() {
|
|
3515
|
+
l(O).style.display = "block", w() && Rt(), Ee() && l(de) && (l(de).style.display = "flex");
|
|
3486
3516
|
}
|
|
3487
|
-
async function
|
|
3488
|
-
return
|
|
3517
|
+
async function Se() {
|
|
3518
|
+
return Qe(C.VERIFYING), await new Promise((a) => setTimeout(a, b() || 0)), en().then((a) => (ya(a), I("challenge", a), Aa(a))).then(({ data: a, solution: f }) => {
|
|
3489
3519
|
var g;
|
|
3490
3520
|
if (I("solution", f), !f || a && "challenge" in a && !("clearText" in f))
|
|
3491
3521
|
if ((f == null ? void 0 : f.number) !== void 0 && "challenge" in a)
|
|
3492
|
-
if (
|
|
3493
|
-
((g = document.activeElement) == null ? void 0 : g.tagName) === "INPUT" && k() === !1 && document.activeElement.blur(),
|
|
3522
|
+
if (re() && "codeChallenge" in a)
|
|
3523
|
+
((g = document.activeElement) == null ? void 0 : g.tagName) === "INPUT" && k() === !1 && document.activeElement.blur(), A(B, { challenge: a, solution: f }, !0);
|
|
3494
3524
|
else {
|
|
3495
|
-
if (
|
|
3496
|
-
return
|
|
3497
|
-
if (
|
|
3498
|
-
return
|
|
3499
|
-
|
|
3525
|
+
if (re() && Ke() !== void 0)
|
|
3526
|
+
return ba(Ut(a, f));
|
|
3527
|
+
if (re())
|
|
3528
|
+
return gn(Ut(a, f));
|
|
3529
|
+
A($e, Ut(a, f), !0), I("payload", l($e));
|
|
3500
3530
|
}
|
|
3501
3531
|
else
|
|
3502
3532
|
throw I("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
|
|
3503
3533
|
}).then(() => {
|
|
3504
|
-
l(
|
|
3505
|
-
|
|
3506
|
-
})) : (
|
|
3507
|
-
|
|
3534
|
+
l(B) ? (Te(C.CODE), jr().then(() => {
|
|
3535
|
+
qe("code", { codeChallenge: l(B) });
|
|
3536
|
+
})) : (Te(C.VERIFIED), I("verified"), jr().then(() => {
|
|
3537
|
+
qe("verified", { payload: l($e) }), n() === "onsubmit" ? _r(l(It)) : Ee() && Zt();
|
|
3508
3538
|
}));
|
|
3509
3539
|
}).catch((a) => {
|
|
3510
|
-
I(a),
|
|
3540
|
+
I(a), Te(C.ERROR, a.message);
|
|
3511
3541
|
});
|
|
3512
3542
|
}
|
|
3513
|
-
var
|
|
3514
|
-
|
|
3515
|
-
var
|
|
3516
|
-
let
|
|
3517
|
-
var
|
|
3543
|
+
var La = Ts(), xa = St(La);
|
|
3544
|
+
Fo(xa, t, "default", {});
|
|
3545
|
+
var dt = W(xa, 2), Er = Y(dt), Gt = Y(Er);
|
|
3546
|
+
let Ta;
|
|
3547
|
+
var Ia = Y(Gt);
|
|
3518
3548
|
{
|
|
3519
|
-
var
|
|
3520
|
-
|
|
3549
|
+
var pn = (a) => {
|
|
3550
|
+
$r(a);
|
|
3521
3551
|
};
|
|
3522
|
-
|
|
3523
|
-
l(T) ===
|
|
3552
|
+
K(Ia, (a) => {
|
|
3553
|
+
l(T) === C.VERIFYING && a(pn);
|
|
3524
3554
|
});
|
|
3525
3555
|
}
|
|
3526
|
-
var
|
|
3527
|
-
|
|
3528
|
-
|
|
3556
|
+
var et = W(Ia, 2);
|
|
3557
|
+
Za(et), et.__change = [
|
|
3558
|
+
hs,
|
|
3529
3559
|
T,
|
|
3530
|
-
|
|
3560
|
+
Le,
|
|
3531
3561
|
S,
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
],
|
|
3537
|
-
var
|
|
3562
|
+
xt,
|
|
3563
|
+
De,
|
|
3564
|
+
Vt,
|
|
3565
|
+
Se
|
|
3566
|
+
], Xt(et, (a) => A(Ar, a), () => l(Ar)), G(Gt);
|
|
3567
|
+
var Yt = W(Gt, 2), mn = Y(Yt);
|
|
3538
3568
|
{
|
|
3539
|
-
var
|
|
3540
|
-
var f =
|
|
3541
|
-
|
|
3542
|
-
},
|
|
3569
|
+
var yn = (a) => {
|
|
3570
|
+
var f = Jt(), g = St(f);
|
|
3571
|
+
tt(g, () => l(P).verified), H(a, f);
|
|
3572
|
+
}, An = (a, f) => {
|
|
3543
3573
|
{
|
|
3544
|
-
var g = (
|
|
3545
|
-
var
|
|
3546
|
-
|
|
3547
|
-
},
|
|
3574
|
+
var g = (v) => {
|
|
3575
|
+
var _ = Jt(), y = St(_);
|
|
3576
|
+
tt(y, () => l(P).verifying), H(v, _);
|
|
3577
|
+
}, p = (v, _) => {
|
|
3548
3578
|
{
|
|
3549
|
-
var
|
|
3550
|
-
var
|
|
3551
|
-
|
|
3552
|
-
},
|
|
3553
|
-
var
|
|
3554
|
-
|
|
3579
|
+
var y = (M) => {
|
|
3580
|
+
var Q = Jt(), le = St(Q);
|
|
3581
|
+
tt(le, () => l(P).verificationRequired), H(M, Q);
|
|
3582
|
+
}, E = (M) => {
|
|
3583
|
+
var Q = Jt(), le = St(Q);
|
|
3584
|
+
tt(le, () => l(P).label), H(M, Q);
|
|
3555
3585
|
};
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
(
|
|
3559
|
-
l(T) ===
|
|
3586
|
+
K(
|
|
3587
|
+
v,
|
|
3588
|
+
(M) => {
|
|
3589
|
+
l(T) === C.CODE ? M(y) : M(E, !1);
|
|
3560
3590
|
},
|
|
3561
|
-
|
|
3591
|
+
_
|
|
3562
3592
|
);
|
|
3563
3593
|
}
|
|
3564
3594
|
};
|
|
3565
|
-
|
|
3595
|
+
K(
|
|
3566
3596
|
a,
|
|
3567
|
-
(
|
|
3568
|
-
l(T) ===
|
|
3597
|
+
(v) => {
|
|
3598
|
+
l(T) === C.VERIFYING ? v(g) : v(p, !1);
|
|
3569
3599
|
},
|
|
3570
3600
|
f
|
|
3571
3601
|
);
|
|
3572
3602
|
}
|
|
3573
3603
|
};
|
|
3574
|
-
|
|
3575
|
-
l(T) ===
|
|
3604
|
+
K(mn, (a) => {
|
|
3605
|
+
l(T) === C.VERIFIED ? a(yn) : a(An, !1);
|
|
3576
3606
|
});
|
|
3577
3607
|
}
|
|
3578
|
-
|
|
3579
|
-
var
|
|
3608
|
+
G(Yt);
|
|
3609
|
+
var Va = W(Yt, 2);
|
|
3580
3610
|
{
|
|
3581
|
-
var
|
|
3582
|
-
var f =
|
|
3583
|
-
|
|
3584
|
-
R(f, "name", oe()),
|
|
3585
|
-
}),
|
|
3611
|
+
var kn = (a) => {
|
|
3612
|
+
var f = vs();
|
|
3613
|
+
Za(f), Ie(() => {
|
|
3614
|
+
R(f, "name", oe()), Go(f, l($e));
|
|
3615
|
+
}), H(a, f);
|
|
3586
3616
|
};
|
|
3587
|
-
|
|
3588
|
-
l(T) ===
|
|
3617
|
+
K(Va, (a) => {
|
|
3618
|
+
l(T) === C.VERIFIED && a(kn);
|
|
3589
3619
|
});
|
|
3590
3620
|
}
|
|
3591
|
-
var
|
|
3621
|
+
var Ra = W(Va, 2);
|
|
3592
3622
|
{
|
|
3593
|
-
var
|
|
3594
|
-
var f =
|
|
3595
|
-
R(g, "href",
|
|
3623
|
+
var _n = (a) => {
|
|
3624
|
+
var f = bs(), g = Y(f);
|
|
3625
|
+
R(g, "href", Ji), G(f), Ie(() => R(g, "aria-label", l(P).ariaLinkLabel)), H(a, f);
|
|
3596
3626
|
};
|
|
3597
|
-
|
|
3598
|
-
(
|
|
3627
|
+
K(Ra, (a) => {
|
|
3628
|
+
(X() !== !0 || l(mr)) && a(_n);
|
|
3599
3629
|
});
|
|
3600
3630
|
}
|
|
3601
|
-
var
|
|
3631
|
+
var wn = W(Ra, 2);
|
|
3602
3632
|
{
|
|
3603
|
-
var
|
|
3604
|
-
var f =
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3633
|
+
var Cn = (a) => {
|
|
3634
|
+
var f = _s(), g = W(Y(f), 2), p = Y(g), v = W(p, 2);
|
|
3635
|
+
Po(v, !k()), v.__keydown = [
|
|
3636
|
+
us,
|
|
3637
|
+
ha
|
|
3608
3638
|
];
|
|
3609
|
-
var
|
|
3639
|
+
var _ = W(v, 2), y = Y(_), E = Y(y);
|
|
3610
3640
|
{
|
|
3611
|
-
var
|
|
3612
|
-
var
|
|
3613
|
-
|
|
3614
|
-
var
|
|
3641
|
+
var M = (Ae) => {
|
|
3642
|
+
var Z = As();
|
|
3643
|
+
Z.__click = ha;
|
|
3644
|
+
var Kt = Y(Z);
|
|
3615
3645
|
{
|
|
3616
|
-
var
|
|
3617
|
-
|
|
3618
|
-
},
|
|
3646
|
+
var jt = (ht) => {
|
|
3647
|
+
$r(ht, () => 20);
|
|
3648
|
+
}, jn = (ht, $n) => {
|
|
3619
3649
|
{
|
|
3620
|
-
var
|
|
3621
|
-
var
|
|
3622
|
-
|
|
3623
|
-
},
|
|
3650
|
+
var Sn = (gt) => {
|
|
3651
|
+
var xr = ps();
|
|
3652
|
+
H(gt, xr);
|
|
3653
|
+
}, Pn = (gt, xr) => {
|
|
3624
3654
|
{
|
|
3625
|
-
var
|
|
3626
|
-
var
|
|
3627
|
-
|
|
3628
|
-
},
|
|
3629
|
-
var
|
|
3630
|
-
|
|
3655
|
+
var zn = (vt) => {
|
|
3656
|
+
var Tr = ms();
|
|
3657
|
+
H(vt, Tr);
|
|
3658
|
+
}, Nn = (vt) => {
|
|
3659
|
+
var Tr = ys();
|
|
3660
|
+
H(vt, Tr);
|
|
3631
3661
|
};
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
(
|
|
3635
|
-
l(
|
|
3662
|
+
K(
|
|
3663
|
+
gt,
|
|
3664
|
+
(vt) => {
|
|
3665
|
+
l(U) === ee.PLAYING ? vt(zn) : vt(Nn, !1);
|
|
3636
3666
|
},
|
|
3637
|
-
|
|
3667
|
+
xr
|
|
3638
3668
|
);
|
|
3639
3669
|
}
|
|
3640
3670
|
};
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
(
|
|
3644
|
-
l(
|
|
3671
|
+
K(
|
|
3672
|
+
ht,
|
|
3673
|
+
(gt) => {
|
|
3674
|
+
l(U) === ee.ERROR ? gt(Sn) : gt(Pn, !1);
|
|
3645
3675
|
},
|
|
3646
|
-
|
|
3676
|
+
$n
|
|
3647
3677
|
);
|
|
3648
3678
|
}
|
|
3649
3679
|
};
|
|
3650
|
-
|
|
3651
|
-
l(
|
|
3680
|
+
K(Kt, (ht) => {
|
|
3681
|
+
l(U) === ee.LOADING ? ht(jt) : ht(jn, !1);
|
|
3652
3682
|
});
|
|
3653
3683
|
}
|
|
3654
|
-
Z
|
|
3655
|
-
R(
|
|
3656
|
-
}),
|
|
3684
|
+
G(Z), Ie(() => {
|
|
3685
|
+
R(Z, "title", l(P).getAudioChallenge), Z.disabled = l(U) === ee.LOADING || l(U) === ee.ERROR || l(Xe), R(Z, "aria-label", l(U) === ee.LOADING ? l(P).loading : l(P).getAudioChallenge);
|
|
3686
|
+
}), H(Ae, Z);
|
|
3657
3687
|
};
|
|
3658
|
-
|
|
3659
|
-
l(
|
|
3688
|
+
K(E, (Ae) => {
|
|
3689
|
+
l(B).challenge.codeChallenge.audio && Ae(M);
|
|
3660
3690
|
});
|
|
3661
3691
|
}
|
|
3662
|
-
var
|
|
3663
|
-
|
|
3664
|
-
var le =
|
|
3692
|
+
var Q = W(E, 2);
|
|
3693
|
+
Q.__click = [ds, Se], G(y);
|
|
3694
|
+
var le = W(y, 2), Fe = Y(le);
|
|
3665
3695
|
{
|
|
3666
|
-
var
|
|
3667
|
-
|
|
3696
|
+
var Lr = (Ae) => {
|
|
3697
|
+
$r(Ae, () => 16);
|
|
3668
3698
|
};
|
|
3669
|
-
|
|
3670
|
-
l(
|
|
3699
|
+
K(Fe, (Ae) => {
|
|
3700
|
+
l(Xe) && Ae(Lr);
|
|
3671
3701
|
});
|
|
3672
3702
|
}
|
|
3673
|
-
var
|
|
3674
|
-
|
|
3675
|
-
var
|
|
3703
|
+
var Wt = W(Fe);
|
|
3704
|
+
G(le), G(_);
|
|
3705
|
+
var Vn = W(_, 2);
|
|
3676
3706
|
{
|
|
3677
|
-
var
|
|
3678
|
-
var
|
|
3679
|
-
Z
|
|
3680
|
-
() =>
|
|
3681
|
-
]),
|
|
3707
|
+
var Rn = (Ae) => {
|
|
3708
|
+
var Z = ks(), Kt = Y(Z);
|
|
3709
|
+
G(Z), Xt(Z, (jt) => A(Oe, jt), () => l(Oe)), Ie((jt) => R(Kt, "src", jt), [
|
|
3710
|
+
() => oa(l(B).challenge.codeChallenge.audio, { language: F() })
|
|
3711
|
+
]), Me("loadstart", Z, sn), Me("canplay", Z, ln), Me("pause", Z, fn), Me("playing", Z, cn), Me("ended", Z, nn), Me("error", Kt, on), H(Ae, Z);
|
|
3682
3712
|
};
|
|
3683
|
-
|
|
3684
|
-
l(
|
|
3713
|
+
K(Vn, (Ae) => {
|
|
3714
|
+
l(B).challenge.codeChallenge.audio && l(kr) && Ae(Rn);
|
|
3685
3715
|
});
|
|
3686
3716
|
}
|
|
3687
|
-
|
|
3688
|
-
R(f, "aria-label", l(P).verificationRequired), R(
|
|
3689
|
-
}),
|
|
3717
|
+
G(g), G(f), Ie(() => {
|
|
3718
|
+
R(f, "aria-label", l(P).verificationRequired), R(p, "src", l(B).challenge.codeChallenge.image), R(v, "minlength", l(B).challenge.codeChallenge.length || 1), R(v, "maxlength", l(B).challenge.codeChallenge.length), R(v, "placeholder", l(P).enterCode), R(v, "aria-label", l(U) === ee.LOADING ? l(P).loading : l(U) === ee.PLAYING ? "" : l(P).enterCodeAria), R(v, "aria-live", l(U) ? "assertive" : "polite"), R(v, "aria-busy", l(U) === ee.LOADING), v.disabled = l(Xe), R(Q, "aria-label", l(P).reload), R(Q, "title", l(P).reload), Q.disabled = l(Xe), le.disabled = l(Xe), R(le, "aria-label", l(P).verify), qo(Wt, ` ${l(P).verify ?? ""}`);
|
|
3719
|
+
}), Me("submit", g, un, !0), H(a, f);
|
|
3690
3720
|
};
|
|
3691
|
-
|
|
3721
|
+
K(wn, (a) => {
|
|
3692
3722
|
var f;
|
|
3693
|
-
(f = l(
|
|
3723
|
+
(f = l(B)) != null && f.challenge.codeChallenge && a(Cn);
|
|
3694
3724
|
});
|
|
3695
3725
|
}
|
|
3696
|
-
|
|
3697
|
-
var
|
|
3726
|
+
G(Er);
|
|
3727
|
+
var ja = W(Er, 2);
|
|
3698
3728
|
{
|
|
3699
|
-
var
|
|
3700
|
-
var f =
|
|
3729
|
+
var En = (a) => {
|
|
3730
|
+
var f = Es(), g = W(Y(f), 2);
|
|
3701
3731
|
{
|
|
3702
|
-
var
|
|
3703
|
-
var
|
|
3704
|
-
|
|
3705
|
-
},
|
|
3706
|
-
var
|
|
3707
|
-
|
|
3732
|
+
var p = (_) => {
|
|
3733
|
+
var y = ws(), E = Y(y);
|
|
3734
|
+
tt(E, () => l(P).expired), G(y), Ie(() => R(y, "title", l(Je))), H(_, y);
|
|
3735
|
+
}, v = (_) => {
|
|
3736
|
+
var y = Cs(), E = Y(y);
|
|
3737
|
+
tt(E, () => l(P).error), G(y), Ie(() => R(y, "title", l(Je))), H(_, y);
|
|
3708
3738
|
};
|
|
3709
|
-
|
|
3710
|
-
l(T) ===
|
|
3739
|
+
K(g, (_) => {
|
|
3740
|
+
l(T) === C.EXPIRED ? _(p) : _(v, !1);
|
|
3711
3741
|
});
|
|
3712
3742
|
}
|
|
3713
|
-
|
|
3743
|
+
G(f), H(a, f);
|
|
3714
3744
|
};
|
|
3715
|
-
|
|
3716
|
-
(l(
|
|
3745
|
+
K(ja, (a) => {
|
|
3746
|
+
(l(Je) || l(T) === C.EXPIRED) && a(En);
|
|
3717
3747
|
});
|
|
3718
3748
|
}
|
|
3719
|
-
var
|
|
3749
|
+
var $a = W(ja, 2);
|
|
3720
3750
|
{
|
|
3721
|
-
var
|
|
3722
|
-
var f =
|
|
3723
|
-
|
|
3751
|
+
var Ln = (a) => {
|
|
3752
|
+
var f = Ls(), g = Y(f), p = Y(g);
|
|
3753
|
+
tt(p, () => l(P).footer), G(g), G(f), H(a, f);
|
|
3724
3754
|
};
|
|
3725
|
-
|
|
3726
|
-
l(P).footer && (
|
|
3755
|
+
K($a, (a) => {
|
|
3756
|
+
l(P).footer && (te() !== !0 || l(mr)) && a(Ln);
|
|
3727
3757
|
});
|
|
3728
3758
|
}
|
|
3729
|
-
var
|
|
3759
|
+
var xn = W($a, 2);
|
|
3730
3760
|
{
|
|
3731
|
-
var
|
|
3732
|
-
var f =
|
|
3733
|
-
|
|
3761
|
+
var Tn = (a) => {
|
|
3762
|
+
var f = xs();
|
|
3763
|
+
Xt(f, (g) => A(Tt, g), () => l(Tt)), H(a, f);
|
|
3734
3764
|
};
|
|
3735
|
-
|
|
3736
|
-
|
|
3765
|
+
K(xn, (a) => {
|
|
3766
|
+
w() && a(Tn);
|
|
3737
3767
|
});
|
|
3738
3768
|
}
|
|
3739
|
-
|
|
3769
|
+
G(dt), Xt(dt, (a) => A(O, a), () => l(O)), Ie(
|
|
3740
3770
|
(a) => {
|
|
3741
|
-
R(
|
|
3771
|
+
R(dt, "data-state", l(T)), R(dt, "data-floating", w()), R(dt, "data-overlay", Ee()), Ta = Bo(Gt, 1, "altcha-checkbox", null, Ta, a), R(et, "id", l(ta)), et.required = n() !== "onsubmit" && (!w() || n() !== "off"), R(Yt, "for", l(ta));
|
|
3742
3772
|
},
|
|
3743
3773
|
[
|
|
3744
3774
|
() => ({
|
|
3745
|
-
"altcha-checkbox-verifying": l(T) ===
|
|
3775
|
+
"altcha-checkbox-verifying": l(T) === C.VERIFYING
|
|
3746
3776
|
})
|
|
3747
3777
|
]
|
|
3748
|
-
),
|
|
3749
|
-
var
|
|
3750
|
-
clarify:
|
|
3751
|
-
configure:
|
|
3752
|
-
getConfiguration:
|
|
3753
|
-
getFloatingAnchor:
|
|
3754
|
-
getPlugin:
|
|
3755
|
-
getState:
|
|
3756
|
-
hide:
|
|
3757
|
-
repositionFloating:
|
|
3758
|
-
reset:
|
|
3759
|
-
setFloatingAnchor:
|
|
3760
|
-
setState:
|
|
3761
|
-
show:
|
|
3762
|
-
verify:
|
|
3778
|
+
), Me("invalid", et, da), Wo(et, () => l(xt), (a) => A(xt, a)), H(e, La);
|
|
3779
|
+
var In = hi({
|
|
3780
|
+
clarify: Vt,
|
|
3781
|
+
configure: ka,
|
|
3782
|
+
getConfiguration: _a,
|
|
3783
|
+
getFloatingAnchor: wa,
|
|
3784
|
+
getPlugin: bn,
|
|
3785
|
+
getState: Ca,
|
|
3786
|
+
hide: Zt,
|
|
3787
|
+
repositionFloating: Rt,
|
|
3788
|
+
reset: Qe,
|
|
3789
|
+
setFloatingAnchor: Ea,
|
|
3790
|
+
setState: Te,
|
|
3791
|
+
show: Cr,
|
|
3792
|
+
verify: Se,
|
|
3763
3793
|
get auto() {
|
|
3764
3794
|
return n();
|
|
3765
3795
|
},
|
|
3766
3796
|
set auto(a = void 0) {
|
|
3767
|
-
n(a),
|
|
3797
|
+
n(a), L();
|
|
3768
3798
|
},
|
|
3769
3799
|
get blockspam() {
|
|
3770
|
-
return
|
|
3800
|
+
return c();
|
|
3771
3801
|
},
|
|
3772
3802
|
set blockspam(a = void 0) {
|
|
3773
|
-
|
|
3803
|
+
c(a), L();
|
|
3774
3804
|
},
|
|
3775
3805
|
get challengeurl() {
|
|
3776
3806
|
return s();
|
|
3777
3807
|
},
|
|
3778
3808
|
set challengeurl(a = void 0) {
|
|
3779
|
-
s(a),
|
|
3809
|
+
s(a), L();
|
|
3780
3810
|
},
|
|
3781
3811
|
get challengejson() {
|
|
3782
|
-
return
|
|
3812
|
+
return u();
|
|
3783
3813
|
},
|
|
3784
3814
|
set challengejson(a = void 0) {
|
|
3785
|
-
|
|
3815
|
+
u(a), L();
|
|
3786
3816
|
},
|
|
3787
3817
|
get credentials() {
|
|
3788
3818
|
return d();
|
|
3789
3819
|
},
|
|
3790
3820
|
set credentials(a = void 0) {
|
|
3791
|
-
d(a),
|
|
3821
|
+
d(a), L();
|
|
3792
3822
|
},
|
|
3793
3823
|
get customfetch() {
|
|
3794
|
-
return
|
|
3824
|
+
return m();
|
|
3795
3825
|
},
|
|
3796
3826
|
set customfetch(a = void 0) {
|
|
3797
|
-
|
|
3827
|
+
m(a), L();
|
|
3798
3828
|
},
|
|
3799
3829
|
get debug() {
|
|
3800
3830
|
return h();
|
|
3801
3831
|
},
|
|
3802
3832
|
set debug(a = !1) {
|
|
3803
|
-
h(a),
|
|
3833
|
+
h(a), L();
|
|
3804
3834
|
},
|
|
3805
3835
|
get delay() {
|
|
3806
|
-
return
|
|
3836
|
+
return b();
|
|
3807
3837
|
},
|
|
3808
3838
|
set delay(a = 0) {
|
|
3809
|
-
|
|
3839
|
+
b(a), L();
|
|
3810
3840
|
},
|
|
3811
3841
|
get disableautofocus() {
|
|
3812
3842
|
return k();
|
|
3813
3843
|
},
|
|
3814
3844
|
set disableautofocus(a = !1) {
|
|
3815
|
-
k(a),
|
|
3845
|
+
k(a), L();
|
|
3816
3846
|
},
|
|
3817
3847
|
get expire() {
|
|
3818
3848
|
return V();
|
|
3819
3849
|
},
|
|
3820
3850
|
set expire(a = void 0) {
|
|
3821
|
-
V(a),
|
|
3851
|
+
V(a), L();
|
|
3822
3852
|
},
|
|
3823
3853
|
get floating() {
|
|
3824
|
-
return
|
|
3854
|
+
return w();
|
|
3825
3855
|
},
|
|
3826
3856
|
set floating(a = void 0) {
|
|
3827
|
-
|
|
3857
|
+
w(a), L();
|
|
3828
3858
|
},
|
|
3829
3859
|
get floatinganchor() {
|
|
3830
3860
|
return q();
|
|
3831
3861
|
},
|
|
3832
3862
|
set floatinganchor(a = void 0) {
|
|
3833
|
-
q(a),
|
|
3863
|
+
q(a), L();
|
|
3834
3864
|
},
|
|
3835
3865
|
get floatingoffset() {
|
|
3836
|
-
return
|
|
3866
|
+
return ue();
|
|
3837
3867
|
},
|
|
3838
3868
|
set floatingoffset(a = void 0) {
|
|
3839
|
-
|
|
3869
|
+
ue(a), L();
|
|
3840
3870
|
},
|
|
3841
3871
|
get floatingpersist() {
|
|
3842
|
-
return
|
|
3872
|
+
return J();
|
|
3843
3873
|
},
|
|
3844
3874
|
set floatingpersist(a = !1) {
|
|
3845
|
-
|
|
3875
|
+
J(a), L();
|
|
3846
3876
|
},
|
|
3847
3877
|
get hidefooter() {
|
|
3848
|
-
return
|
|
3878
|
+
return te();
|
|
3849
3879
|
},
|
|
3850
3880
|
set hidefooter(a = !1) {
|
|
3851
|
-
|
|
3881
|
+
te(a), L();
|
|
3852
3882
|
},
|
|
3853
3883
|
get hidelogo() {
|
|
3854
|
-
return
|
|
3884
|
+
return X();
|
|
3855
3885
|
},
|
|
3856
3886
|
set hidelogo(a = !1) {
|
|
3857
|
-
|
|
3887
|
+
X(a), L();
|
|
3858
3888
|
},
|
|
3859
3889
|
get id() {
|
|
3860
|
-
return
|
|
3890
|
+
return st();
|
|
3861
3891
|
},
|
|
3862
3892
|
set id(a = void 0) {
|
|
3863
|
-
|
|
3893
|
+
st(a), L();
|
|
3864
3894
|
},
|
|
3865
3895
|
get language() {
|
|
3866
|
-
return
|
|
3896
|
+
return F();
|
|
3867
3897
|
},
|
|
3868
3898
|
set language(a = void 0) {
|
|
3869
|
-
|
|
3899
|
+
F(a), L();
|
|
3870
3900
|
},
|
|
3871
3901
|
get name() {
|
|
3872
3902
|
return oe();
|
|
3873
3903
|
},
|
|
3874
3904
|
set name(a = "altcha") {
|
|
3875
|
-
oe(a),
|
|
3905
|
+
oe(a), L();
|
|
3876
3906
|
},
|
|
3877
3907
|
get maxnumber() {
|
|
3878
|
-
return
|
|
3908
|
+
return ye();
|
|
3879
3909
|
},
|
|
3880
3910
|
set maxnumber(a = 1e6) {
|
|
3881
|
-
|
|
3911
|
+
ye(a), L();
|
|
3882
3912
|
},
|
|
3883
3913
|
get mockerror() {
|
|
3884
|
-
return
|
|
3914
|
+
return wt();
|
|
3885
3915
|
},
|
|
3886
3916
|
set mockerror(a = !1) {
|
|
3887
|
-
|
|
3917
|
+
wt(a), L();
|
|
3888
3918
|
},
|
|
3889
3919
|
get obfuscated() {
|
|
3890
|
-
return
|
|
3920
|
+
return De();
|
|
3891
3921
|
},
|
|
3892
3922
|
set obfuscated(a = void 0) {
|
|
3893
|
-
|
|
3923
|
+
De(a), L();
|
|
3924
|
+
},
|
|
3925
|
+
get overlay() {
|
|
3926
|
+
return Ee();
|
|
3927
|
+
},
|
|
3928
|
+
set overlay(a = void 0) {
|
|
3929
|
+
Ee(a), L();
|
|
3930
|
+
},
|
|
3931
|
+
get overlaycontent() {
|
|
3932
|
+
return Ct();
|
|
3933
|
+
},
|
|
3934
|
+
set overlaycontent(a = void 0) {
|
|
3935
|
+
Ct(a), L();
|
|
3894
3936
|
},
|
|
3895
3937
|
get plugins() {
|
|
3896
|
-
return
|
|
3938
|
+
return Bt();
|
|
3897
3939
|
},
|
|
3898
3940
|
set plugins(a = void 0) {
|
|
3899
|
-
|
|
3941
|
+
Bt(a), L();
|
|
3900
3942
|
},
|
|
3901
3943
|
get refetchonexpire() {
|
|
3902
|
-
return
|
|
3944
|
+
return Et();
|
|
3903
3945
|
},
|
|
3904
3946
|
set refetchonexpire(a = !0) {
|
|
3905
|
-
|
|
3947
|
+
Et(a), L();
|
|
3906
3948
|
},
|
|
3907
3949
|
get sentinel() {
|
|
3908
|
-
return
|
|
3950
|
+
return Ke();
|
|
3909
3951
|
},
|
|
3910
3952
|
set sentinel(a = void 0) {
|
|
3911
|
-
|
|
3953
|
+
Ke(a), L();
|
|
3912
3954
|
},
|
|
3913
3955
|
get spamfilter() {
|
|
3914
|
-
return
|
|
3956
|
+
return Le();
|
|
3915
3957
|
},
|
|
3916
3958
|
set spamfilter(a = !1) {
|
|
3917
|
-
|
|
3959
|
+
Le(a), L();
|
|
3918
3960
|
},
|
|
3919
3961
|
get strings() {
|
|
3920
|
-
return
|
|
3962
|
+
return ct();
|
|
3921
3963
|
},
|
|
3922
3964
|
set strings(a = void 0) {
|
|
3923
|
-
|
|
3965
|
+
ct(a), L();
|
|
3924
3966
|
},
|
|
3925
3967
|
get test() {
|
|
3926
|
-
return
|
|
3968
|
+
return ve();
|
|
3927
3969
|
},
|
|
3928
3970
|
set test(a = !1) {
|
|
3929
|
-
|
|
3971
|
+
ve(a), L();
|
|
3930
3972
|
},
|
|
3931
3973
|
get verifyurl() {
|
|
3932
|
-
return
|
|
3974
|
+
return re();
|
|
3933
3975
|
},
|
|
3934
3976
|
set verifyurl(a = void 0) {
|
|
3935
|
-
|
|
3977
|
+
re(a), L();
|
|
3936
3978
|
},
|
|
3937
3979
|
get workers() {
|
|
3938
|
-
return
|
|
3980
|
+
return ft();
|
|
3939
3981
|
},
|
|
3940
3982
|
set workers(a = Math.min(16, navigator.hardwareConcurrency || 8)) {
|
|
3941
|
-
|
|
3983
|
+
ft(a), L();
|
|
3942
3984
|
},
|
|
3943
3985
|
get workerurl() {
|
|
3944
|
-
return
|
|
3986
|
+
return Lt();
|
|
3945
3987
|
},
|
|
3946
3988
|
set workerurl(a = void 0) {
|
|
3947
|
-
|
|
3989
|
+
Lt(a), L();
|
|
3948
3990
|
}
|
|
3949
3991
|
});
|
|
3950
|
-
return i(),
|
|
3992
|
+
return i(), In;
|
|
3951
3993
|
}
|
|
3952
|
-
|
|
3953
|
-
customElements.define("altcha-widget",
|
|
3954
|
-
|
|
3994
|
+
Do(["change", "keydown", "click"]);
|
|
3995
|
+
customElements.define("altcha-widget", rl(
|
|
3996
|
+
Is,
|
|
3955
3997
|
{
|
|
3956
3998
|
blockspam: { type: "Boolean" },
|
|
3957
3999
|
debug: { type: "Boolean" },
|
|
@@ -3978,6 +4020,8 @@ customElements.define("altcha-widget", Jo(
|
|
|
3978
4020
|
language: {},
|
|
3979
4021
|
name: {},
|
|
3980
4022
|
obfuscated: {},
|
|
4023
|
+
overlay: {},
|
|
4024
|
+
overlaycontent: {},
|
|
3981
4025
|
plugins: {},
|
|
3982
4026
|
sentinel: {},
|
|
3983
4027
|
spamfilter: {},
|
|
@@ -4003,15 +4047,15 @@ customElements.define("altcha-widget", Jo(
|
|
|
4003
4047
|
],
|
|
4004
4048
|
!1
|
|
4005
4049
|
));
|
|
4006
|
-
const
|
|
4007
|
-
function
|
|
4050
|
+
const Vs = '@keyframes overlay-slidein{to{opacity:1;top:50%}}@keyframes altcha-spinner{to{transform:rotate(360deg)}}.altcha{background:var(--altcha-color-base, transparent);border:var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0);border-radius:var(--altcha-border-radius, 3px);color:var(--altcha-color-text, currentColor);display:flex;flex-direction:column;max-width:var(--altcha-max-width, 260px);position:relative}.altcha:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]{background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999}.altcha[data-floating=top] .altcha-anchor-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom]:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top]:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]:not([data-state=unverified]){display:block}.altcha-anchor-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, #a0a0a0);content:"";height:0;left:12px;position:absolute;top:-12px;width:0}.altcha-main{align-items:center;display:flex;gap:.4rem;padding:.7rem;position:relative}.altcha-code-challenge{background:var(--altcha-color-base, white);border:1px solid var(--altcha-color-border-focus, currentColor);border-radius:var(--altcha-border-radius, 3px);filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));padding:.5rem;position:absolute;top:2.5rem;z-index:9999999}.altcha-code-challenge>form{display:flex;flex-direction:column;gap:.5rem}.altcha-code-challenge-input{border:1px solid currentColor;border-radius:3px;box-sizing:border-box;outline:0;font-size:16px;padding:.35rem;width:220px}.altcha-code-challenge-input:focus{outline:2px solid color-mix(in srgb,var(--altcha-color-active, #1D1DC9) 20%,transparent)}.altcha-code-challenge-input:disabled{opacity:.7}.altcha-code-challenge-image{background-color:#fff;border:1px solid currentColor;border-radius:3px;box-sizing:border-box;object-fit:contain;height:50px;width:220px}.altcha-code-challenge-audio,.altcha-code-challenge-reload{background:color-mix(in srgb,var(--altcha-color-text, currentColor) 10%,transparent);border:0;border-radius:3px;color:var(--altcha-color-text, currentColor);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:.35rem}.altcha-code-challenge-audio:disabled,.altcha-code-challenge-reload:disabled,.altcha-code-challenge-verify:disabled{opacity:.7;pointer-events:none}.altcha-code-challenge-audio>*,.altcha-code-challenge-reload>*{height:20px;width:20px}.altcha-code-challenge-buttons{display:flex;justify-content:space-between}.altcha-code-challenge-buttons-left{display:flex;gap:.25rem}.altcha-code-challenge-verify{align-items:center;background:var(--altcha-color-active, #1D1DC9);border:0;border-radius:3px;color:#fff;cursor:pointer;display:flex;gap:.5rem;font-size:100%;padding:.35rem 1rem}.altcha-code-challenge-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, currentColor);content:"";height:0;left:.15rem;position:absolute;top:-12px;width:0}.altcha[data-floating=top] .altcha-code-challenge{top:-150px}.altcha[data-floating=top] .altcha-code-challenge-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, currentColor);bottom:-12px;top:auto}.altcha-label{cursor:pointer;flex-grow:1}.altcha-logo{color:currentColor!important;opacity:.7}.altcha-footer:hover,.altcha-logo:hover{opacity:1}.altcha-error{color:var(--altcha-color-error-text, #f23939);display:flex;font-size:.85rem;gap:.3rem;padding:0 .7rem .7rem}.altcha-footer{align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:.75rem;opacity:.7;justify-content:end;padding:.2rem .7rem}.altcha-footer a{color:currentColor}.altcha-checkbox{display:flex;align-items:center;justify-content:center;height:24px;position:relative;width:24px}.altcha-checkbox .altcha-spinner{bottom:0;left:0;position:absolute;right:0;top:0}.altcha-checkbox input{width:18px;height:18px;margin:0}.altcha-checkbox-verifying input{appearance:none;opacity:0;pointer-events:none}.altcha-spinner{animation:altcha-spinner .75s infinite linear;transform-origin:center}.altcha-overlay{--altcha-color-base:#fff;--altcha-color-text:#000;animation:overlay-slidein .5s forwards;display:flex;flex-direction:column;gap:.5rem;left:50%;width:260px;opacity:0;position:fixed;top:45%;transform:translate(-50%,-50%)}.altcha-overlay-backdrop{background:rgba(0,0,0,.5);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:999990}.altcha-overlay-close-button{align-self:flex-end;background:0 0;border:0;padding:.25rem;cursor:pointer;color:currentColor;font-size:130%;line-height:1;opacity:.7}@media (max-height:450px){.altcha-overlay{top:10%!important;transform:translate(-50%,0)}}';
|
|
4051
|
+
function Rs(e, t = "__altcha-css") {
|
|
4008
4052
|
if (!document.getElementById(t)) {
|
|
4009
4053
|
const r = document.createElement("style");
|
|
4010
4054
|
r.id = t, r.textContent = e, document.head.appendChild(r);
|
|
4011
4055
|
}
|
|
4012
4056
|
}
|
|
4013
|
-
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new
|
|
4014
|
-
|
|
4057
|
+
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new rs();
|
|
4058
|
+
Rs(Vs);
|
|
4015
4059
|
export {
|
|
4016
|
-
|
|
4060
|
+
Is as Altcha
|
|
4017
4061
|
};
|