altcha 0.7.0 → 0.8.0
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 +11 -7
- package/dist/altcha.d.ts +14 -2
- package/dist/altcha.js +844 -644
- package/dist/altcha.umd.cjs +2 -2
- package/dist_external/altcha.d.ts +14 -2
- package/dist_external/altcha.js +812 -612
- package/dist_external/altcha.umd.cjs +2 -2
- package/dist_external/worker.js +1 -1
- package/package.json +1 -1
package/dist/altcha.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var $t = Object.defineProperty;
|
|
2
|
+
var ut = (n) => {
|
|
3
3
|
throw TypeError(n);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
function
|
|
5
|
+
var en = (n, e, t) => e in n ? $t(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
6
|
+
var D = (n, e, t) => en(n, typeof e != "symbol" ? e + "" : e, t), dt = (n, e, t) => e.has(n) || ut("Cannot " + t);
|
|
7
|
+
var W = (n, e, t) => (dt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), fe = (n, e, t) => e.has(n) ? ut("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), ht = (n, e, t, i) => (dt(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t);
|
|
8
|
+
const Rt = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGY9bmV3IFRleHRFbmNvZGVyO2Z1bmN0aW9uIHAoZSl7cmV0dXJuWy4uLm5ldyBVaW50OEFycmF5KGUpXS5tYXAodD0+dC50b1N0cmluZygxNikucGFkU3RhcnQoMiwiMCIpKS5qb2luKCIiKX1hc3luYyBmdW5jdGlvbiB3KGUsdCxyKXtyZXR1cm4gcChhd2FpdCBjcnlwdG8uc3VidGxlLmRpZ2VzdChyLnRvVXBwZXJDYXNlKCksZi5lbmNvZGUoZSt0KSkpfWZ1bmN0aW9uIGIoZSx0LHI9IlNIQS0yNTYiLG49MWU2LHM9MCl7Y29uc3Qgbz1uZXcgQWJvcnRDb250cm9sbGVyLGE9RGF0ZS5ub3coKTtyZXR1cm57cHJvbWlzZTooYXN5bmMoKT0+e2ZvcihsZXQgYz1zO2M8PW47Yys9MSl7aWYoby5zaWduYWwuYWJvcnRlZClyZXR1cm4gbnVsbDtpZihhd2FpdCB3KHQsYyxyKT09PWUpcmV0dXJue251bWJlcjpjLHRvb2s6RGF0ZS5ub3coKS1hfX1yZXR1cm4gbnVsbH0pKCksY29udHJvbGxlcjpvfX1mdW5jdGlvbiBoKGUpe2NvbnN0IHQ9YXRvYihlKSxyPW5ldyBVaW50OEFycmF5KHQubGVuZ3RoKTtmb3IobGV0IG49MDtuPHQubGVuZ3RoO24rKylyW25dPXQuY2hhckNvZGVBdChuKTtyZXR1cm4gcn1mdW5jdGlvbiBnKGUsdD0xMil7Y29uc3Qgcj1uZXcgVWludDhBcnJheSh0KTtmb3IobGV0IG49MDtuPHQ7bisrKXJbbl09ZSUyNTYsZT1NYXRoLmZsb29yKGUvMjU2KTtyZXR1cm4gcn1hc3luYyBmdW5jdGlvbiBtKGUsdD0iIixyPTFlNixuPTApe2NvbnN0IHM9IkFFUy1HQ00iLG89bmV3IEFib3J0Q29udHJvbGxlcixhPURhdGUubm93KCksbD1hc3luYygpPT57Zm9yKGxldCB1PW47dTw9cjt1Kz0xKXtpZihvLnNpZ25hbC5hYm9ydGVkfHwhY3x8IXkpcmV0dXJuIG51bGw7dHJ5e2NvbnN0IGQ9YXdhaXQgY3J5cHRvLnN1YnRsZS5kZWNyeXB0KHtuYW1lOnMsaXY6Zyh1KX0sYyx5KTtpZihkKXJldHVybntjbGVhclRleHQ6bmV3IFRleHREZWNvZGVyKCkuZGVjb2RlKGQpLHRvb2s6RGF0ZS5ub3coKS1hfX1jYXRjaHt9fXJldHVybiBudWxsfTtsZXQgYz1udWxsLHk9bnVsbDt0cnl7eT1oKGUpO2NvbnN0IHU9YXdhaXQgY3J5cHRvLnN1YnRsZS5kaWdlc3QoIlNIQS0yNTYiLGYuZW5jb2RlKHQpKTtjPWF3YWl0IGNyeXB0by5zdWJ0bGUuaW1wb3J0S2V5KCJyYXciLHUscywhMSxbImRlY3J5cHQiXSl9Y2F0Y2h7cmV0dXJue3Byb21pc2U6UHJvbWlzZS5yZWplY3QoKSxjb250cm9sbGVyOm99fXJldHVybntwcm9taXNlOmwoKSxjb250cm9sbGVyOm99fWxldCBpO29ubWVzc2FnZT1hc3luYyBlPT57Y29uc3R7dHlwZTp0LHBheWxvYWQ6cixzdGFydDpuLG1heDpzfT1lLmRhdGE7bGV0IG89bnVsbDtpZih0PT09ImFib3J0IilpPT1udWxsfHxpLmFib3J0KCksaT12b2lkIDA7ZWxzZSBpZih0PT09IndvcmsiKXtpZigib2JmdXNjYXRlZCJpbiByKXtjb25zdHtrZXk6YSxvYmZ1c2NhdGVkOmx9PXJ8fHt9O289YXdhaXQgbShsLGEscyxuKX1lbHNle2NvbnN0e2FsZ29yaXRobTphLGNoYWxsZW5nZTpsLHNhbHQ6Y309cnx8e307bz1iKGwsYyxhLHMsbil9aT1vLmNvbnRyb2xsZXIsby5wcm9taXNlLnRoZW4oYT0+e3NlbGYucG9zdE1lc3NhZ2UoYSYmey4uLmEsd29ya2VyOiEwfSl9KX19fSkoKTsK", tn = (n) => Uint8Array.from(atob(n), (e) => e.charCodeAt(0)), mt = typeof self < "u" && self.Blob && new Blob([tn(Rt)], { type: "text/javascript;charset=utf-8" });
|
|
9
|
+
function nn(n) {
|
|
10
10
|
let e;
|
|
11
11
|
try {
|
|
12
|
-
if (e =
|
|
12
|
+
if (e = mt && (self.URL || self.webkitURL).createObjectURL(mt), !e) throw "";
|
|
13
13
|
const t = new Worker(e, {
|
|
14
14
|
name: n == null ? void 0 : n.name
|
|
15
15
|
});
|
|
@@ -18,7 +18,7 @@ function Xt(n) {
|
|
|
18
18
|
}), t;
|
|
19
19
|
} catch {
|
|
20
20
|
return new Worker(
|
|
21
|
-
"data:text/javascript;base64," +
|
|
21
|
+
"data:text/javascript;base64," + Rt,
|
|
22
22
|
{
|
|
23
23
|
name: n == null ? void 0 : n.name
|
|
24
24
|
}
|
|
@@ -27,37 +27,83 @@ function Xt(n) {
|
|
|
27
27
|
e && (self.URL || self.webkitURL).revokeObjectURL(e);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Se() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function rn(n, e) {
|
|
33
|
+
for (const t in e) n[t] = e[t];
|
|
34
|
+
return (
|
|
35
|
+
/** @type {T & S} */
|
|
36
|
+
n
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function Lt(n) {
|
|
33
40
|
return n();
|
|
34
41
|
}
|
|
35
|
-
function
|
|
42
|
+
function gt() {
|
|
36
43
|
return /* @__PURE__ */ Object.create(null);
|
|
37
44
|
}
|
|
38
|
-
function
|
|
39
|
-
n.forEach(
|
|
45
|
+
function Ie(n) {
|
|
46
|
+
n.forEach(Lt);
|
|
40
47
|
}
|
|
41
|
-
function
|
|
48
|
+
function It(n) {
|
|
42
49
|
return typeof n == "function";
|
|
43
50
|
}
|
|
44
|
-
function
|
|
51
|
+
function on(n, e) {
|
|
45
52
|
return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
|
|
46
53
|
}
|
|
47
|
-
function
|
|
54
|
+
function ln(n) {
|
|
48
55
|
return Object.keys(n).length === 0;
|
|
49
56
|
}
|
|
50
|
-
function
|
|
57
|
+
function sn(n, e, t, i) {
|
|
58
|
+
if (n) {
|
|
59
|
+
const o = Tt(n, e, t, i);
|
|
60
|
+
return n[0](o);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function Tt(n, e, t, i) {
|
|
64
|
+
return n[1] && i ? rn(t.ctx.slice(), n[1](i(e))) : t.ctx;
|
|
65
|
+
}
|
|
66
|
+
function cn(n, e, t, i) {
|
|
67
|
+
if (n[2] && i) {
|
|
68
|
+
const o = n[2](i(t));
|
|
69
|
+
if (e.dirty === void 0)
|
|
70
|
+
return o;
|
|
71
|
+
if (typeof o == "object") {
|
|
72
|
+
const l = [], s = Math.max(e.dirty.length, o.length);
|
|
73
|
+
for (let c = 0; c < s; c += 1)
|
|
74
|
+
l[c] = e.dirty[c] | o[c];
|
|
75
|
+
return l;
|
|
76
|
+
}
|
|
77
|
+
return e.dirty | o;
|
|
78
|
+
}
|
|
79
|
+
return e.dirty;
|
|
80
|
+
}
|
|
81
|
+
function an(n, e, t, i, o, l) {
|
|
82
|
+
if (o) {
|
|
83
|
+
const s = Tt(e, t, i, l);
|
|
84
|
+
n.p(s, o);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function fn(n) {
|
|
88
|
+
if (n.ctx.length > 32) {
|
|
89
|
+
const e = [], t = n.ctx.length / 32;
|
|
90
|
+
for (let i = 0; i < t; i++)
|
|
91
|
+
e[i] = -1;
|
|
92
|
+
return e;
|
|
93
|
+
}
|
|
94
|
+
return -1;
|
|
95
|
+
}
|
|
96
|
+
function L(n, e) {
|
|
51
97
|
n.appendChild(e);
|
|
52
98
|
}
|
|
53
|
-
function
|
|
54
|
-
const i =
|
|
99
|
+
function un(n, e, t) {
|
|
100
|
+
const i = dn(n);
|
|
55
101
|
if (!i.getElementById(e)) {
|
|
56
|
-
const o =
|
|
57
|
-
o.id = e, o.textContent = t,
|
|
102
|
+
const o = N("style");
|
|
103
|
+
o.id = e, o.textContent = t, hn(i, o);
|
|
58
104
|
}
|
|
59
105
|
}
|
|
60
|
-
function
|
|
106
|
+
function dn(n) {
|
|
61
107
|
if (!n) return document;
|
|
62
108
|
const e = n.getRootNode ? n.getRootNode() : n.ownerDocument;
|
|
63
109
|
return e && /** @type {ShadowRoot} */
|
|
@@ -66,50 +112,50 @@ function Yt(n) {
|
|
|
66
112
|
e
|
|
67
113
|
) : n.ownerDocument;
|
|
68
114
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
115
|
+
function hn(n, e) {
|
|
116
|
+
return L(
|
|
71
117
|
/** @type {Document} */
|
|
72
118
|
n.head || n,
|
|
73
119
|
e
|
|
74
120
|
), e.sheet;
|
|
75
121
|
}
|
|
76
|
-
function
|
|
122
|
+
function Y(n, e, t) {
|
|
77
123
|
n.insertBefore(e, t || null);
|
|
78
124
|
}
|
|
79
|
-
function
|
|
125
|
+
function S(n) {
|
|
80
126
|
n.parentNode && n.parentNode.removeChild(n);
|
|
81
127
|
}
|
|
82
|
-
function
|
|
128
|
+
function N(n) {
|
|
83
129
|
return document.createElement(n);
|
|
84
130
|
}
|
|
85
|
-
function
|
|
131
|
+
function ie(n) {
|
|
86
132
|
return document.createElementNS("http://www.w3.org/2000/svg", n);
|
|
87
133
|
}
|
|
88
|
-
function
|
|
134
|
+
function Nt(n) {
|
|
89
135
|
return document.createTextNode(n);
|
|
90
136
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
137
|
+
function q() {
|
|
138
|
+
return Nt(" ");
|
|
93
139
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
140
|
+
function mn() {
|
|
141
|
+
return Nt("");
|
|
96
142
|
}
|
|
97
|
-
function
|
|
143
|
+
function De(n, e, t, i) {
|
|
98
144
|
return n.addEventListener(e, t, i), () => n.removeEventListener(e, t, i);
|
|
99
145
|
}
|
|
100
|
-
function
|
|
146
|
+
function f(n, e, t) {
|
|
101
147
|
t == null ? n.removeAttribute(e) : n.getAttribute(e) !== t && n.setAttribute(e, t);
|
|
102
148
|
}
|
|
103
|
-
function
|
|
149
|
+
function gn(n) {
|
|
104
150
|
return Array.from(n.childNodes);
|
|
105
151
|
}
|
|
106
|
-
function
|
|
152
|
+
function bt(n, e, t) {
|
|
107
153
|
n.classList.toggle(e, !!t);
|
|
108
154
|
}
|
|
109
|
-
function
|
|
155
|
+
function bn(n, e, { bubbles: t = !1, cancelable: i = !1 } = {}) {
|
|
110
156
|
return new CustomEvent(n, { detail: e, bubbles: t, cancelable: i });
|
|
111
157
|
}
|
|
112
|
-
function
|
|
158
|
+
function yn(n) {
|
|
113
159
|
const e = {};
|
|
114
160
|
return n.childNodes.forEach(
|
|
115
161
|
/** @param {Element} node */
|
|
@@ -118,167 +164,176 @@ function Qt(n) {
|
|
|
118
164
|
}
|
|
119
165
|
), e;
|
|
120
166
|
}
|
|
121
|
-
let
|
|
122
|
-
function
|
|
123
|
-
|
|
167
|
+
let Ee;
|
|
168
|
+
function ke(n) {
|
|
169
|
+
Ee = n;
|
|
124
170
|
}
|
|
125
|
-
function
|
|
126
|
-
if (!
|
|
127
|
-
return
|
|
171
|
+
function Me() {
|
|
172
|
+
if (!Ee) throw new Error("Function called outside component initialization");
|
|
173
|
+
return Ee;
|
|
128
174
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
175
|
+
function vn(n) {
|
|
176
|
+
Me().$$.on_mount.push(n);
|
|
131
177
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
178
|
+
function wn(n) {
|
|
179
|
+
Me().$$.on_destroy.push(n);
|
|
134
180
|
}
|
|
135
|
-
function
|
|
136
|
-
const n =
|
|
181
|
+
function pn() {
|
|
182
|
+
const n = Me();
|
|
137
183
|
return (e, t, { cancelable: i = !1 } = {}) => {
|
|
138
184
|
const o = n.$$.callbacks[e];
|
|
139
185
|
if (o) {
|
|
140
|
-
const
|
|
186
|
+
const l = bn(
|
|
141
187
|
/** @type {string} */
|
|
142
188
|
e,
|
|
143
189
|
t,
|
|
144
190
|
{ cancelable: i }
|
|
145
191
|
);
|
|
146
|
-
return o.slice().forEach((
|
|
147
|
-
|
|
148
|
-
}), !
|
|
192
|
+
return o.slice().forEach((s) => {
|
|
193
|
+
s.call(n, l);
|
|
194
|
+
}), !l.defaultPrevented;
|
|
149
195
|
}
|
|
150
196
|
return !0;
|
|
151
197
|
};
|
|
152
198
|
}
|
|
153
|
-
const
|
|
154
|
-
let
|
|
155
|
-
const
|
|
156
|
-
let
|
|
157
|
-
function
|
|
158
|
-
|
|
199
|
+
const de = [], Ze = [];
|
|
200
|
+
let he = [];
|
|
201
|
+
const yt = [], At = /* @__PURE__ */ Promise.resolve();
|
|
202
|
+
let Ue = !1;
|
|
203
|
+
function zt() {
|
|
204
|
+
Ue || (Ue = !0, At.then(p));
|
|
159
205
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
206
|
+
function _n() {
|
|
207
|
+
return zt(), At;
|
|
162
208
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
209
|
+
function Xe(n) {
|
|
210
|
+
he.push(n);
|
|
165
211
|
}
|
|
166
|
-
const
|
|
167
|
-
let
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
212
|
+
const Ye = /* @__PURE__ */ new Set();
|
|
213
|
+
let ue = 0;
|
|
214
|
+
function p() {
|
|
215
|
+
if (ue !== 0)
|
|
170
216
|
return;
|
|
171
|
-
const n =
|
|
217
|
+
const n = Ee;
|
|
172
218
|
do {
|
|
173
219
|
try {
|
|
174
|
-
for (;
|
|
175
|
-
const e =
|
|
176
|
-
|
|
220
|
+
for (; ue < de.length; ) {
|
|
221
|
+
const e = de[ue];
|
|
222
|
+
ue++, ke(e), kn(e.$$);
|
|
177
223
|
}
|
|
178
224
|
} catch (e) {
|
|
179
|
-
throw
|
|
225
|
+
throw de.length = 0, ue = 0, e;
|
|
180
226
|
}
|
|
181
|
-
for (
|
|
182
|
-
for (let e = 0; e <
|
|
183
|
-
const t =
|
|
184
|
-
|
|
227
|
+
for (ke(null), de.length = 0, ue = 0; Ze.length; ) Ze.pop()();
|
|
228
|
+
for (let e = 0; e < he.length; e += 1) {
|
|
229
|
+
const t = he[e];
|
|
230
|
+
Ye.has(t) || (Ye.add(t), t());
|
|
185
231
|
}
|
|
186
|
-
|
|
187
|
-
} while (
|
|
188
|
-
for (;
|
|
189
|
-
|
|
190
|
-
|
|
232
|
+
he.length = 0;
|
|
233
|
+
} while (de.length);
|
|
234
|
+
for (; yt.length; )
|
|
235
|
+
yt.pop()();
|
|
236
|
+
Ue = !1, Ye.clear(), ke(n);
|
|
191
237
|
}
|
|
192
|
-
function
|
|
238
|
+
function kn(n) {
|
|
193
239
|
if (n.fragment !== null) {
|
|
194
|
-
n.update(),
|
|
240
|
+
n.update(), Ie(n.before_update);
|
|
195
241
|
const e = n.dirty;
|
|
196
|
-
n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(
|
|
242
|
+
n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(Xe);
|
|
197
243
|
}
|
|
198
244
|
}
|
|
199
|
-
function
|
|
245
|
+
function En(n) {
|
|
200
246
|
const e = [], t = [];
|
|
201
|
-
|
|
247
|
+
he.forEach((i) => n.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), he = e;
|
|
202
248
|
}
|
|
203
|
-
const
|
|
204
|
-
|
|
205
|
-
|
|
249
|
+
const ze = /* @__PURE__ */ new Set();
|
|
250
|
+
let xn;
|
|
251
|
+
function Ft(n, e) {
|
|
252
|
+
n && n.i && (ze.delete(n), n.i(e));
|
|
253
|
+
}
|
|
254
|
+
function Cn(n, e, t, i) {
|
|
255
|
+
if (n && n.o) {
|
|
256
|
+
if (ze.has(n)) return;
|
|
257
|
+
ze.add(n), xn.c.push(() => {
|
|
258
|
+
ze.delete(n);
|
|
259
|
+
}), n.o(e);
|
|
260
|
+
}
|
|
206
261
|
}
|
|
207
|
-
function
|
|
262
|
+
function Rn(n, e, t) {
|
|
208
263
|
const { fragment: i, after_update: o } = n.$$;
|
|
209
|
-
i && i.m(e, t),
|
|
210
|
-
const
|
|
211
|
-
n.$$.on_destroy ? n.$$.on_destroy.push(...
|
|
212
|
-
}), o.forEach(
|
|
264
|
+
i && i.m(e, t), Xe(() => {
|
|
265
|
+
const l = n.$$.on_mount.map(Lt).filter(It);
|
|
266
|
+
n.$$.on_destroy ? n.$$.on_destroy.push(...l) : Ie(l), n.$$.on_mount = [];
|
|
267
|
+
}), o.forEach(Xe);
|
|
213
268
|
}
|
|
214
|
-
function
|
|
269
|
+
function Ln(n, e) {
|
|
215
270
|
const t = n.$$;
|
|
216
|
-
t.fragment !== null && (
|
|
271
|
+
t.fragment !== null && (En(t.after_update), Ie(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
217
272
|
}
|
|
218
|
-
function
|
|
219
|
-
n.$$.dirty[0] === -1 && (
|
|
273
|
+
function In(n, e) {
|
|
274
|
+
n.$$.dirty[0] === -1 && (de.push(n), zt(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
220
275
|
}
|
|
221
|
-
function
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
const
|
|
276
|
+
function Tn(n, e, t, i, o, l, s = null, c = [-1]) {
|
|
277
|
+
const a = Ee;
|
|
278
|
+
ke(n);
|
|
279
|
+
const d = n.$$ = {
|
|
225
280
|
fragment: null,
|
|
226
281
|
ctx: [],
|
|
227
282
|
// state
|
|
228
|
-
props:
|
|
229
|
-
update:
|
|
283
|
+
props: l,
|
|
284
|
+
update: Se,
|
|
230
285
|
not_equal: o,
|
|
231
|
-
bound:
|
|
286
|
+
bound: gt(),
|
|
232
287
|
// lifecycle
|
|
233
288
|
on_mount: [],
|
|
234
289
|
on_destroy: [],
|
|
235
290
|
on_disconnect: [],
|
|
236
291
|
before_update: [],
|
|
237
292
|
after_update: [],
|
|
238
|
-
context: new Map(e.context || (
|
|
293
|
+
context: new Map(e.context || (a ? a.$$.context : [])),
|
|
239
294
|
// everything else
|
|
240
|
-
callbacks:
|
|
295
|
+
callbacks: gt(),
|
|
241
296
|
dirty: c,
|
|
242
297
|
skip_bound: !1,
|
|
243
|
-
root: e.target ||
|
|
298
|
+
root: e.target || a.$$.root
|
|
244
299
|
};
|
|
245
|
-
|
|
246
|
-
let
|
|
247
|
-
if (
|
|
248
|
-
const
|
|
249
|
-
return
|
|
250
|
-
}) : [],
|
|
300
|
+
s && s(d.root);
|
|
301
|
+
let v = !1;
|
|
302
|
+
if (d.ctx = t ? t(n, e.props || {}, (R, $, ...k) => {
|
|
303
|
+
const K = k.length ? k[0] : $;
|
|
304
|
+
return d.ctx && o(d.ctx[R], d.ctx[R] = K) && (!d.skip_bound && d.bound[R] && d.bound[R](K), v && In(n, R)), $;
|
|
305
|
+
}) : [], d.update(), v = !0, Ie(d.before_update), d.fragment = i ? i(d.ctx) : !1, e.target) {
|
|
251
306
|
if (e.hydrate) {
|
|
252
|
-
const
|
|
253
|
-
|
|
307
|
+
const R = gn(e.target);
|
|
308
|
+
d.fragment && d.fragment.l(R), R.forEach(S);
|
|
254
309
|
} else
|
|
255
|
-
|
|
256
|
-
e.intro &&
|
|
310
|
+
d.fragment && d.fragment.c();
|
|
311
|
+
e.intro && Ft(n.$$.fragment), Rn(n, e.target, e.anchor), p();
|
|
257
312
|
}
|
|
258
|
-
|
|
313
|
+
ke(a);
|
|
259
314
|
}
|
|
260
|
-
let
|
|
261
|
-
typeof HTMLElement == "function" && (
|
|
315
|
+
let St;
|
|
316
|
+
typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
262
317
|
constructor(e, t, i) {
|
|
263
318
|
super();
|
|
264
319
|
/** The Svelte component constructor */
|
|
265
|
-
|
|
320
|
+
D(this, "$$ctor");
|
|
266
321
|
/** Slots */
|
|
267
|
-
|
|
322
|
+
D(this, "$$s");
|
|
268
323
|
/** The Svelte component instance */
|
|
269
|
-
|
|
324
|
+
D(this, "$$c");
|
|
270
325
|
/** Whether or not the custom element is connected */
|
|
271
|
-
|
|
326
|
+
D(this, "$$cn", !1);
|
|
272
327
|
/** Component props data */
|
|
273
|
-
|
|
328
|
+
D(this, "$$d", {});
|
|
274
329
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
275
|
-
|
|
330
|
+
D(this, "$$r", !1);
|
|
276
331
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
277
|
-
|
|
332
|
+
D(this, "$$p_d", {});
|
|
278
333
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
279
|
-
|
|
334
|
+
D(this, "$$l", {});
|
|
280
335
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
281
|
-
|
|
336
|
+
D(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
282
337
|
this.$$ctor = e, this.$$s = t, i && this.attachShadow({ mode: "open" });
|
|
283
338
|
}
|
|
284
339
|
addEventListener(e, t, i) {
|
|
@@ -296,37 +351,37 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
296
351
|
}
|
|
297
352
|
async connectedCallback() {
|
|
298
353
|
if (this.$$cn = !0, !this.$$c) {
|
|
299
|
-
let e = function(
|
|
354
|
+
let e = function(l) {
|
|
300
355
|
return () => {
|
|
301
|
-
let
|
|
356
|
+
let s;
|
|
302
357
|
return {
|
|
303
358
|
c: function() {
|
|
304
|
-
|
|
359
|
+
s = N("slot"), l !== "default" && f(s, "name", l);
|
|
305
360
|
},
|
|
306
361
|
/**
|
|
307
362
|
* @param {HTMLElement} target
|
|
308
363
|
* @param {HTMLElement} [anchor]
|
|
309
364
|
*/
|
|
310
|
-
m: function(
|
|
311
|
-
|
|
365
|
+
m: function(d, v) {
|
|
366
|
+
Y(d, s, v);
|
|
312
367
|
},
|
|
313
|
-
d: function(
|
|
314
|
-
|
|
368
|
+
d: function(d) {
|
|
369
|
+
d && S(s);
|
|
315
370
|
}
|
|
316
371
|
};
|
|
317
372
|
};
|
|
318
373
|
};
|
|
319
374
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
375
|
return;
|
|
321
|
-
const t = {}, i =
|
|
322
|
-
for (const
|
|
323
|
-
|
|
324
|
-
for (const
|
|
325
|
-
const
|
|
326
|
-
|
|
376
|
+
const t = {}, i = yn(this);
|
|
377
|
+
for (const l of this.$$s)
|
|
378
|
+
l in i && (t[l] = [e(l)]);
|
|
379
|
+
for (const l of this.attributes) {
|
|
380
|
+
const s = this.$$g_p(l.name);
|
|
381
|
+
s in this.$$d || (this.$$d[s] = Fe(s, l.value, this.$$p_d, "toProp"));
|
|
327
382
|
}
|
|
328
|
-
for (const
|
|
329
|
-
!(
|
|
383
|
+
for (const l in this.$$p_d)
|
|
384
|
+
!(l in this.$$d) && this[l] !== void 0 && (this.$$d[l] = this[l], delete this[l]);
|
|
330
385
|
this.$$c = new this.$$ctor({
|
|
331
386
|
target: this.shadowRoot || this,
|
|
332
387
|
props: {
|
|
@@ -339,23 +394,23 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
339
394
|
});
|
|
340
395
|
const o = () => {
|
|
341
396
|
this.$$r = !0;
|
|
342
|
-
for (const
|
|
343
|
-
if (this.$$d[
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
this.$$d[
|
|
397
|
+
for (const l in this.$$p_d)
|
|
398
|
+
if (this.$$d[l] = this.$$c.$$.ctx[this.$$c.$$.props[l]], this.$$p_d[l].reflect) {
|
|
399
|
+
const s = Fe(
|
|
400
|
+
l,
|
|
401
|
+
this.$$d[l],
|
|
347
402
|
this.$$p_d,
|
|
348
403
|
"toAttribute"
|
|
349
404
|
);
|
|
350
|
-
|
|
405
|
+
s == null ? this.removeAttribute(this.$$p_d[l].attribute || l) : this.setAttribute(this.$$p_d[l].attribute || l, s);
|
|
351
406
|
}
|
|
352
407
|
this.$$r = !1;
|
|
353
408
|
};
|
|
354
409
|
this.$$c.$$.after_update.push(o), o();
|
|
355
|
-
for (const
|
|
356
|
-
for (const
|
|
357
|
-
const c = this.$$c.$on(
|
|
358
|
-
this.$$l_u.set(
|
|
410
|
+
for (const l in this.$$l)
|
|
411
|
+
for (const s of this.$$l[l]) {
|
|
412
|
+
const c = this.$$c.$on(l, s);
|
|
413
|
+
this.$$l_u.set(s, c);
|
|
359
414
|
}
|
|
360
415
|
this.$$l = {};
|
|
361
416
|
}
|
|
@@ -364,7 +419,7 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
364
419
|
// and setting attributes through setAttribute etc, this is helpful
|
|
365
420
|
attributeChangedCallback(e, t, i) {
|
|
366
421
|
var o;
|
|
367
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
422
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Fe(e, i, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [e]: this.$$d[e] }));
|
|
368
423
|
}
|
|
369
424
|
disconnectedCallback() {
|
|
370
425
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -377,9 +432,9 @@ typeof HTMLElement == "function" && (xt = class extends HTMLElement {
|
|
|
377
432
|
) || e;
|
|
378
433
|
}
|
|
379
434
|
});
|
|
380
|
-
function
|
|
381
|
-
var
|
|
382
|
-
const o = (
|
|
435
|
+
function Fe(n, e, t, i) {
|
|
436
|
+
var l;
|
|
437
|
+
const o = (l = t[n]) == null ? void 0 : l.type;
|
|
383
438
|
if (e = o === "Boolean" && typeof e != "boolean" ? e != null : e, !i || !t[n])
|
|
384
439
|
return e;
|
|
385
440
|
if (i === "toAttribute")
|
|
@@ -407,8 +462,8 @@ function Ae(n, e, t, i) {
|
|
|
407
462
|
return e;
|
|
408
463
|
}
|
|
409
464
|
}
|
|
410
|
-
function
|
|
411
|
-
let
|
|
465
|
+
function Nn(n, e, t, i, o, l) {
|
|
466
|
+
let s = class extends St {
|
|
412
467
|
constructor() {
|
|
413
468
|
super(n, t, o), this.$$p_d = e;
|
|
414
469
|
}
|
|
@@ -419,26 +474,26 @@ function hn(n, e, t, i, o, s) {
|
|
|
419
474
|
}
|
|
420
475
|
};
|
|
421
476
|
return Object.keys(e).forEach((c) => {
|
|
422
|
-
Object.defineProperty(
|
|
477
|
+
Object.defineProperty(s.prototype, c, {
|
|
423
478
|
get() {
|
|
424
479
|
return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
|
|
425
480
|
},
|
|
426
|
-
set(
|
|
427
|
-
var
|
|
428
|
-
|
|
481
|
+
set(a) {
|
|
482
|
+
var d;
|
|
483
|
+
a = Fe(c, a, e), this.$$d[c] = a, (d = this.$$c) == null || d.$set({ [c]: a });
|
|
429
484
|
}
|
|
430
485
|
});
|
|
431
486
|
}), i.forEach((c) => {
|
|
432
|
-
Object.defineProperty(
|
|
487
|
+
Object.defineProperty(s.prototype, c, {
|
|
433
488
|
get() {
|
|
434
|
-
var
|
|
435
|
-
return (
|
|
489
|
+
var a;
|
|
490
|
+
return (a = this.$$c) == null ? void 0 : a[c];
|
|
436
491
|
}
|
|
437
492
|
});
|
|
438
493
|
}), n.element = /** @type {any} */
|
|
439
|
-
|
|
494
|
+
s, s;
|
|
440
495
|
}
|
|
441
|
-
class
|
|
496
|
+
class An {
|
|
442
497
|
constructor() {
|
|
443
498
|
/**
|
|
444
499
|
* ### PRIVATE API
|
|
@@ -447,7 +502,7 @@ class mn {
|
|
|
447
502
|
*
|
|
448
503
|
* @type {any}
|
|
449
504
|
*/
|
|
450
|
-
|
|
505
|
+
D(this, "$$");
|
|
451
506
|
/**
|
|
452
507
|
* ### PRIVATE API
|
|
453
508
|
*
|
|
@@ -455,11 +510,11 @@ class mn {
|
|
|
455
510
|
*
|
|
456
511
|
* @type {any}
|
|
457
512
|
*/
|
|
458
|
-
|
|
513
|
+
D(this, "$$set");
|
|
459
514
|
}
|
|
460
515
|
/** @returns {void} */
|
|
461
516
|
$destroy() {
|
|
462
|
-
|
|
517
|
+
Ln(this, 1), this.$destroy = Se;
|
|
463
518
|
}
|
|
464
519
|
/**
|
|
465
520
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -468,8 +523,8 @@ class mn {
|
|
|
468
523
|
* @returns {() => void}
|
|
469
524
|
*/
|
|
470
525
|
$on(e, t) {
|
|
471
|
-
if (!
|
|
472
|
-
return
|
|
526
|
+
if (!It(t))
|
|
527
|
+
return Se;
|
|
473
528
|
const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
474
529
|
return i.push(t), () => {
|
|
475
530
|
const o = i.indexOf(t);
|
|
@@ -481,19 +536,19 @@ class mn {
|
|
|
481
536
|
* @returns {void}
|
|
482
537
|
*/
|
|
483
538
|
$set(e) {
|
|
484
|
-
this.$$set && !
|
|
539
|
+
this.$$set && !ln(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
485
540
|
}
|
|
486
541
|
}
|
|
487
|
-
const
|
|
488
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
489
|
-
const
|
|
490
|
-
function
|
|
542
|
+
const zn = "4";
|
|
543
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zn);
|
|
544
|
+
const Zt = new TextEncoder();
|
|
545
|
+
function Fn(n) {
|
|
491
546
|
return [...new Uint8Array(n)].map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
492
547
|
}
|
|
493
|
-
async function
|
|
548
|
+
async function Sn(n, e = "SHA-256", t = 1e5) {
|
|
494
549
|
const i = Date.now().toString(16);
|
|
495
550
|
n || (n = Math.round(Math.random() * t));
|
|
496
|
-
const o = await
|
|
551
|
+
const o = await Vt(i, n, e);
|
|
497
552
|
return {
|
|
498
553
|
algorithm: e,
|
|
499
554
|
challenge: o,
|
|
@@ -501,65 +556,126 @@ async function wn(n, e = "SHA-256", t = 1e5) {
|
|
|
501
556
|
signature: ""
|
|
502
557
|
};
|
|
503
558
|
}
|
|
504
|
-
async function
|
|
505
|
-
return
|
|
559
|
+
async function Vt(n, e, t) {
|
|
560
|
+
return Fn(
|
|
506
561
|
await crypto.subtle.digest(
|
|
507
562
|
t.toUpperCase(),
|
|
508
|
-
|
|
563
|
+
Zt.encode(n + e)
|
|
509
564
|
)
|
|
510
565
|
);
|
|
511
566
|
}
|
|
512
|
-
function
|
|
513
|
-
const
|
|
567
|
+
function Zn(n, e, t = "SHA-256", i = 1e6, o = 0) {
|
|
568
|
+
const l = new AbortController(), s = Date.now();
|
|
514
569
|
return {
|
|
515
570
|
promise: (async () => {
|
|
516
|
-
for (let
|
|
517
|
-
if (
|
|
571
|
+
for (let a = o; a <= i; a += 1) {
|
|
572
|
+
if (l.signal.aborted)
|
|
518
573
|
return null;
|
|
519
|
-
if (await
|
|
574
|
+
if (await Vt(e, a, t) === n)
|
|
520
575
|
return {
|
|
521
|
-
number:
|
|
522
|
-
took: Date.now() -
|
|
576
|
+
number: a,
|
|
577
|
+
took: Date.now() - s
|
|
523
578
|
};
|
|
524
579
|
}
|
|
525
580
|
return null;
|
|
526
581
|
})(),
|
|
527
|
-
controller:
|
|
582
|
+
controller: l
|
|
528
583
|
};
|
|
529
584
|
}
|
|
530
|
-
function
|
|
585
|
+
function Ht() {
|
|
531
586
|
try {
|
|
532
587
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
533
588
|
} catch {
|
|
534
589
|
}
|
|
535
590
|
}
|
|
536
|
-
|
|
537
|
-
|
|
591
|
+
function Vn(n) {
|
|
592
|
+
const e = atob(n), t = new Uint8Array(e.length);
|
|
593
|
+
for (let i = 0; i < e.length; i++)
|
|
594
|
+
t[i] = e.charCodeAt(i);
|
|
595
|
+
return t;
|
|
596
|
+
}
|
|
597
|
+
function Hn(n, e = 12) {
|
|
598
|
+
const t = new Uint8Array(e);
|
|
599
|
+
for (let i = 0; i < e; i++)
|
|
600
|
+
t[i] = n % 256, n = Math.floor(n / 256);
|
|
601
|
+
return t;
|
|
602
|
+
}
|
|
603
|
+
async function Gn(n, e = "", t = 1e6, i = 0) {
|
|
604
|
+
const o = "AES-GCM", l = new AbortController(), s = Date.now(), c = async () => {
|
|
605
|
+
for (let v = i; v <= t; v += 1) {
|
|
606
|
+
if (l.signal.aborted || !a || !d)
|
|
607
|
+
return null;
|
|
608
|
+
try {
|
|
609
|
+
const R = await crypto.subtle.decrypt(
|
|
610
|
+
{
|
|
611
|
+
name: o,
|
|
612
|
+
iv: Hn(v)
|
|
613
|
+
},
|
|
614
|
+
a,
|
|
615
|
+
d
|
|
616
|
+
);
|
|
617
|
+
if (R)
|
|
618
|
+
return {
|
|
619
|
+
clearText: new TextDecoder().decode(R),
|
|
620
|
+
took: Date.now() - s
|
|
621
|
+
};
|
|
622
|
+
} catch {
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return null;
|
|
626
|
+
};
|
|
627
|
+
let a = null, d = null;
|
|
628
|
+
try {
|
|
629
|
+
d = Vn(n);
|
|
630
|
+
const v = await crypto.subtle.digest(
|
|
631
|
+
"SHA-256",
|
|
632
|
+
Zt.encode(e)
|
|
633
|
+
);
|
|
634
|
+
a = await crypto.subtle.importKey(
|
|
635
|
+
"raw",
|
|
636
|
+
v,
|
|
637
|
+
o,
|
|
638
|
+
!1,
|
|
639
|
+
["decrypt"]
|
|
640
|
+
);
|
|
641
|
+
} catch {
|
|
642
|
+
return {
|
|
643
|
+
promise: Promise.reject(),
|
|
644
|
+
controller: l
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
return {
|
|
648
|
+
promise: c(),
|
|
649
|
+
controller: l
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
var me, ge, xe, Ce, Re, Le;
|
|
653
|
+
class Dn {
|
|
538
654
|
constructor(e) {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
this.elForm = e, window.addEventListener("unload",
|
|
655
|
+
D(this, "beaconUrl", null);
|
|
656
|
+
D(this, "error", null);
|
|
657
|
+
D(this, "loadTime", Date.now());
|
|
658
|
+
D(this, "submitTime", null);
|
|
659
|
+
D(this, "startTime", null);
|
|
660
|
+
D(this, "viewTimeThresholdMs", 1500);
|
|
661
|
+
fe(this, me, {});
|
|
662
|
+
fe(this, ge, null);
|
|
663
|
+
fe(this, xe, this.onFormChange.bind(this));
|
|
664
|
+
fe(this, Ce, this.onFormFocus.bind(this));
|
|
665
|
+
fe(this, Re, this.onFormSubmit.bind(this));
|
|
666
|
+
fe(this, Le, this.onUnload.bind(this));
|
|
667
|
+
this.elForm = e, window.addEventListener("unload", W(this, Le)), this.elForm.addEventListener("change", W(this, xe)), this.elForm.addEventListener("focusin", W(this, Ce)), this.elForm.addEventListener("submit", W(this, Re));
|
|
552
668
|
}
|
|
553
669
|
data() {
|
|
554
|
-
const e = Object.entries(
|
|
670
|
+
const e = Object.entries(W(this, me));
|
|
555
671
|
return {
|
|
556
672
|
correction: e.length && e.filter(([t, i]) => i > 1).length / e.length || 0,
|
|
557
|
-
dropoff: !this.submitTime && !this.error &&
|
|
673
|
+
dropoff: !this.submitTime && !this.error && W(this, ge) ? W(this, ge) : null,
|
|
558
674
|
error: this.error,
|
|
559
675
|
mobile: this.isMobile(),
|
|
560
676
|
start: this.startTime,
|
|
561
677
|
submit: this.submitTime,
|
|
562
|
-
tz:
|
|
678
|
+
tz: Ht()
|
|
563
679
|
};
|
|
564
680
|
}
|
|
565
681
|
dataAsBase64() {
|
|
@@ -573,7 +689,7 @@ class _n {
|
|
|
573
689
|
return "";
|
|
574
690
|
}
|
|
575
691
|
destroy() {
|
|
576
|
-
window.removeEventListener("unload",
|
|
692
|
+
window.removeEventListener("unload", W(this, Le)), this.elForm.removeEventListener("change", W(this, xe)), this.elForm.removeEventListener("focusin", W(this, Ce)), this.elForm.removeEventListener("submit", W(this, Re));
|
|
577
693
|
}
|
|
578
694
|
end() {
|
|
579
695
|
this.submitTime || (this.submitTime = Date.now());
|
|
@@ -601,7 +717,7 @@ class _n {
|
|
|
601
717
|
const t = e.target;
|
|
602
718
|
if (this.startTime || this.start(), t && this.isInput(t)) {
|
|
603
719
|
const i = this.getFieldName(t);
|
|
604
|
-
i &&
|
|
720
|
+
i && ht(this, ge, i);
|
|
605
721
|
}
|
|
606
722
|
}
|
|
607
723
|
onFormSubmit() {
|
|
@@ -627,64 +743,64 @@ class _n {
|
|
|
627
743
|
this.error = e === null ? null : String(e);
|
|
628
744
|
}
|
|
629
745
|
trackFieldChange(e) {
|
|
630
|
-
|
|
746
|
+
W(this, me)[e] = (W(this, me)[e] || 0) + 1;
|
|
631
747
|
}
|
|
632
748
|
}
|
|
633
|
-
|
|
634
|
-
var
|
|
635
|
-
function
|
|
636
|
-
|
|
749
|
+
me = new WeakMap(), ge = new WeakMap(), xe = new WeakMap(), Ce = new WeakMap(), Re = new WeakMap(), Le = new WeakMap();
|
|
750
|
+
var y = /* @__PURE__ */ ((n) => (n.ERROR = "error", n.VERIFIED = "verified", n.VERIFYING = "verifying", n.UNVERIFIED = "unverified", n.EXPIRED = "expired", n))(y || {});
|
|
751
|
+
function Yn(n) {
|
|
752
|
+
un(n, "svelte-ddsc3z", '.altcha.svelte-ddsc3z.svelte-ddsc3z{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;text-align:left}.altcha.svelte-ddsc3z.svelte-ddsc3z:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.svelte-ddsc3z{background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999}.altcha[data-floating=top].svelte-ddsc3z .altcha-anchor-arrow.svelte-ddsc3z{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.svelte-ddsc3z:not([data-state=unverified]){display:block}.altcha-anchor-arrow.svelte-ddsc3z.svelte-ddsc3z{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.svelte-ddsc3z.svelte-ddsc3z{align-items:center;display:flex;gap:0.4rem;padding:0.7rem}.altcha-label.svelte-ddsc3z.svelte-ddsc3z{flex-grow:1}.altcha-label.svelte-ddsc3z label.svelte-ddsc3z{cursor:pointer}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z{color:currentColor;opacity:0.3}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z:hover{opacity:1}.altcha-error.svelte-ddsc3z.svelte-ddsc3z{color:var(--altcha-color-error-text, #f23939);display:flex;font-size:0.85rem;gap:0.3rem;padding:0 0.7rem 0.7rem}.altcha-footer.svelte-ddsc3z.svelte-ddsc3z{align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:0.75rem;opacity:0.4;padding:0.2rem 0.7rem;text-align:right}.altcha-footer.svelte-ddsc3z.svelte-ddsc3z:hover{opacity:1}.altcha-footer.svelte-ddsc3z>.svelte-ddsc3z:first-child{flex-grow:1}.altcha-footer.svelte-ddsc3z a{color:currentColor}.altcha-checkbox.svelte-ddsc3z.svelte-ddsc3z{display:flex;align-items:center;height:24px;width:24px}.altcha-checkbox.svelte-ddsc3z input.svelte-ddsc3z{width:18px;height:18px;margin:0}.altcha-hidden.svelte-ddsc3z.svelte-ddsc3z{display:none}.altcha-spinner.svelte-ddsc3z.svelte-ddsc3z{animation:svelte-ddsc3z-altcha-spinner 0.75s infinite linear;transform-origin:center}@keyframes svelte-ddsc3z-altcha-spinner{100%{transform:rotate(360deg)}}');
|
|
637
753
|
}
|
|
638
|
-
function
|
|
754
|
+
function vt(n) {
|
|
639
755
|
let e, t, i;
|
|
640
756
|
return {
|
|
641
757
|
c() {
|
|
642
|
-
e =
|
|
758
|
+
e = ie("svg"), t = ie("path"), i = ie("path"), f(t, "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"), f(t, "fill", "currentColor"), f(t, "opacity", ".25"), f(i, "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"), f(i, "fill", "currentColor"), f(i, "class", "altcha-spinner svelte-ddsc3z"), f(e, "width", "24"), f(e, "height", "24"), f(e, "viewBox", "0 0 24 24"), f(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
643
759
|
},
|
|
644
|
-
m(o,
|
|
645
|
-
|
|
760
|
+
m(o, l) {
|
|
761
|
+
Y(o, e, l), L(e, t), L(e, i);
|
|
646
762
|
},
|
|
647
763
|
d(o) {
|
|
648
|
-
o &&
|
|
764
|
+
o && S(e);
|
|
649
765
|
}
|
|
650
766
|
};
|
|
651
767
|
}
|
|
652
|
-
function
|
|
768
|
+
function Un(n) {
|
|
653
769
|
let e, t = (
|
|
654
770
|
/*_strings*/
|
|
655
771
|
n[13].label + ""
|
|
656
772
|
), i;
|
|
657
773
|
return {
|
|
658
774
|
c() {
|
|
659
|
-
e =
|
|
660
|
-
n[4] + "_checkbox"),
|
|
775
|
+
e = N("label"), f(e, "for", i = /*name*/
|
|
776
|
+
n[4] + "_checkbox"), f(e, "class", "svelte-ddsc3z");
|
|
661
777
|
},
|
|
662
|
-
m(o,
|
|
663
|
-
|
|
778
|
+
m(o, l) {
|
|
779
|
+
Y(o, e, l), e.innerHTML = t;
|
|
664
780
|
},
|
|
665
|
-
p(o,
|
|
666
|
-
|
|
781
|
+
p(o, l) {
|
|
782
|
+
l[0] & /*_strings*/
|
|
667
783
|
8192 && t !== (t = /*_strings*/
|
|
668
|
-
o[13].label + "") && (e.innerHTML = t),
|
|
784
|
+
o[13].label + "") && (e.innerHTML = t), l[0] & /*name*/
|
|
669
785
|
16 && i !== (i = /*name*/
|
|
670
|
-
o[4] + "_checkbox") &&
|
|
786
|
+
o[4] + "_checkbox") && f(e, "for", i);
|
|
671
787
|
},
|
|
672
788
|
d(o) {
|
|
673
|
-
o &&
|
|
789
|
+
o && S(e);
|
|
674
790
|
}
|
|
675
791
|
};
|
|
676
792
|
}
|
|
677
|
-
function
|
|
793
|
+
function Xn(n) {
|
|
678
794
|
let e, t = (
|
|
679
795
|
/*_strings*/
|
|
680
796
|
n[13].verifying + ""
|
|
681
797
|
);
|
|
682
798
|
return {
|
|
683
799
|
c() {
|
|
684
|
-
e =
|
|
800
|
+
e = N("span");
|
|
685
801
|
},
|
|
686
802
|
m(i, o) {
|
|
687
|
-
|
|
803
|
+
Y(i, e, o), e.innerHTML = t;
|
|
688
804
|
},
|
|
689
805
|
p(i, o) {
|
|
690
806
|
o[0] & /*_strings*/
|
|
@@ -692,21 +808,21 @@ function En(n) {
|
|
|
692
808
|
i[13].verifying + "") && (e.innerHTML = t);
|
|
693
809
|
},
|
|
694
810
|
d(i) {
|
|
695
|
-
i &&
|
|
811
|
+
i && S(e);
|
|
696
812
|
}
|
|
697
813
|
};
|
|
698
814
|
}
|
|
699
|
-
function
|
|
815
|
+
function Mn(n) {
|
|
700
816
|
let e, t = (
|
|
701
817
|
/*_strings*/
|
|
702
818
|
n[13].verified + ""
|
|
703
|
-
), i, o,
|
|
819
|
+
), i, o, l, s, c = (
|
|
704
820
|
/*session*/
|
|
705
|
-
n[11] &&
|
|
821
|
+
n[11] && wt(n)
|
|
706
822
|
);
|
|
707
823
|
return {
|
|
708
824
|
c() {
|
|
709
|
-
e =
|
|
825
|
+
e = N("span"), i = q(), o = N("input"), l = q(), c && c.c(), s = mn(), f(o, "type", "hidden"), f(
|
|
710
826
|
o,
|
|
711
827
|
"name",
|
|
712
828
|
/*name*/
|
|
@@ -714,37 +830,37 @@ function xn(n) {
|
|
|
714
830
|
), o.value = /*payload*/
|
|
715
831
|
n[6];
|
|
716
832
|
},
|
|
717
|
-
m(
|
|
718
|
-
|
|
833
|
+
m(a, d) {
|
|
834
|
+
Y(a, e, d), e.innerHTML = t, Y(a, i, d), Y(a, o, d), Y(a, l, d), c && c.m(a, d), Y(a, s, d);
|
|
719
835
|
},
|
|
720
|
-
p(
|
|
721
|
-
|
|
836
|
+
p(a, d) {
|
|
837
|
+
d[0] & /*_strings*/
|
|
722
838
|
8192 && t !== (t = /*_strings*/
|
|
723
|
-
|
|
724
|
-
16 &&
|
|
839
|
+
a[13].verified + "") && (e.innerHTML = t), d[0] & /*name*/
|
|
840
|
+
16 && f(
|
|
725
841
|
o,
|
|
726
842
|
"name",
|
|
727
843
|
/*name*/
|
|
728
|
-
|
|
729
|
-
),
|
|
844
|
+
a[4]
|
|
845
|
+
), d[0] & /*payload*/
|
|
730
846
|
64 && (o.value = /*payload*/
|
|
731
|
-
|
|
732
|
-
|
|
847
|
+
a[6]), /*session*/
|
|
848
|
+
a[11] ? c ? c.p(a, d) : (c = wt(a), c.c(), c.m(s.parentNode, s)) : c && (c.d(1), c = null);
|
|
733
849
|
},
|
|
734
|
-
d(
|
|
735
|
-
|
|
850
|
+
d(a) {
|
|
851
|
+
a && (S(e), S(i), S(o), S(l), S(s)), c && c.d(a);
|
|
736
852
|
}
|
|
737
853
|
};
|
|
738
854
|
}
|
|
739
|
-
function
|
|
855
|
+
function wt(n) {
|
|
740
856
|
let e;
|
|
741
857
|
return {
|
|
742
858
|
c() {
|
|
743
|
-
e =
|
|
859
|
+
e = N("input"), f(e, "type", "hidden"), f(e, "name", "__session"), e.value = /*sessionPayload*/
|
|
744
860
|
n[12];
|
|
745
861
|
},
|
|
746
862
|
m(t, i) {
|
|
747
|
-
|
|
863
|
+
Y(t, e, i);
|
|
748
864
|
},
|
|
749
865
|
p(t, i) {
|
|
750
866
|
i[0] & /*sessionPayload*/
|
|
@@ -752,62 +868,62 @@ function ut(n) {
|
|
|
752
868
|
t[12]);
|
|
753
869
|
},
|
|
754
870
|
d(t) {
|
|
755
|
-
t &&
|
|
871
|
+
t && S(e);
|
|
756
872
|
}
|
|
757
873
|
};
|
|
758
874
|
}
|
|
759
|
-
function
|
|
760
|
-
let e, t, i, o,
|
|
875
|
+
function pt(n) {
|
|
876
|
+
let e, t, i, o, l, s, c;
|
|
761
877
|
return {
|
|
762
878
|
c() {
|
|
763
|
-
e =
|
|
879
|
+
e = N("div"), t = N("a"), i = ie("svg"), o = ie("path"), l = ie("path"), s = ie("path"), f(o, "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"), f(o, "fill", "currentColor"), f(l, "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"), f(l, "fill", "currentColor"), f(s, "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"), f(s, "fill", "currentColor"), f(i, "width", "22"), f(i, "height", "22"), f(i, "viewBox", "0 0 20 20"), f(i, "fill", "none"), f(i, "xmlns", "http://www.w3.org/2000/svg"), f(t, "href", Gt), f(t, "target", "_blank"), f(t, "class", "altcha-logo svelte-ddsc3z"), f(t, "aria-label", c = /*_strings*/
|
|
764
880
|
n[13].ariaLinkLabel);
|
|
765
881
|
},
|
|
766
|
-
m(
|
|
767
|
-
|
|
882
|
+
m(a, d) {
|
|
883
|
+
Y(a, e, d), L(e, t), L(t, i), L(i, o), L(i, l), L(i, s);
|
|
768
884
|
},
|
|
769
|
-
p(
|
|
770
|
-
|
|
885
|
+
p(a, d) {
|
|
886
|
+
d[0] & /*_strings*/
|
|
771
887
|
8192 && c !== (c = /*_strings*/
|
|
772
|
-
|
|
888
|
+
a[13].ariaLinkLabel) && f(t, "aria-label", c);
|
|
773
889
|
},
|
|
774
|
-
d(
|
|
775
|
-
|
|
890
|
+
d(a) {
|
|
891
|
+
a && S(e);
|
|
776
892
|
}
|
|
777
893
|
};
|
|
778
894
|
}
|
|
779
|
-
function
|
|
895
|
+
function _t(n) {
|
|
780
896
|
let e, t, i, o;
|
|
781
|
-
function
|
|
897
|
+
function l(a, d) {
|
|
782
898
|
return (
|
|
783
899
|
/*state*/
|
|
784
|
-
|
|
900
|
+
a[7] === y.EXPIRED ? Wn : jn
|
|
785
901
|
);
|
|
786
902
|
}
|
|
787
|
-
let
|
|
903
|
+
let s = l(n), c = s(n);
|
|
788
904
|
return {
|
|
789
905
|
c() {
|
|
790
|
-
e =
|
|
906
|
+
e = N("div"), t = ie("svg"), i = ie("path"), o = q(), c.c(), f(i, "stroke-linecap", "round"), f(i, "stroke-linejoin", "round"), f(i, "d", "M6 18L18 6M6 6l12 12"), f(t, "width", "14"), f(t, "height", "14"), f(t, "xmlns", "http://www.w3.org/2000/svg"), f(t, "fill", "none"), f(t, "viewBox", "0 0 24 24"), f(t, "stroke-width", "1.5"), f(t, "stroke", "currentColor"), f(e, "class", "altcha-error svelte-ddsc3z");
|
|
791
907
|
},
|
|
792
|
-
m(
|
|
793
|
-
|
|
908
|
+
m(a, d) {
|
|
909
|
+
Y(a, e, d), L(e, t), L(t, i), L(e, o), c.m(e, null);
|
|
794
910
|
},
|
|
795
|
-
p(
|
|
796
|
-
|
|
911
|
+
p(a, d) {
|
|
912
|
+
s === (s = l(a)) && c ? c.p(a, d) : (c.d(1), c = s(a), c && (c.c(), c.m(e, null)));
|
|
797
913
|
},
|
|
798
|
-
d(
|
|
799
|
-
|
|
914
|
+
d(a) {
|
|
915
|
+
a && S(e), c.d();
|
|
800
916
|
}
|
|
801
917
|
};
|
|
802
918
|
}
|
|
803
|
-
function
|
|
919
|
+
function jn(n) {
|
|
804
920
|
let e, t = (
|
|
805
921
|
/*_strings*/
|
|
806
922
|
n[13].error + ""
|
|
807
923
|
);
|
|
808
924
|
return {
|
|
809
925
|
c() {
|
|
810
|
-
e =
|
|
926
|
+
e = N("div"), f(
|
|
811
927
|
e,
|
|
812
928
|
"title",
|
|
813
929
|
/*error*/
|
|
@@ -815,13 +931,13 @@ function Cn(n) {
|
|
|
815
931
|
);
|
|
816
932
|
},
|
|
817
933
|
m(i, o) {
|
|
818
|
-
|
|
934
|
+
Y(i, e, o), e.innerHTML = t;
|
|
819
935
|
},
|
|
820
936
|
p(i, o) {
|
|
821
937
|
o[0] & /*_strings*/
|
|
822
938
|
8192 && t !== (t = /*_strings*/
|
|
823
939
|
i[13].error + "") && (e.innerHTML = t), o[0] & /*error*/
|
|
824
|
-
32 &&
|
|
940
|
+
32 && f(
|
|
825
941
|
e,
|
|
826
942
|
"title",
|
|
827
943
|
/*error*/
|
|
@@ -829,18 +945,18 @@ function Cn(n) {
|
|
|
829
945
|
);
|
|
830
946
|
},
|
|
831
947
|
d(i) {
|
|
832
|
-
i &&
|
|
948
|
+
i && S(e);
|
|
833
949
|
}
|
|
834
950
|
};
|
|
835
951
|
}
|
|
836
|
-
function
|
|
952
|
+
function Wn(n) {
|
|
837
953
|
let e, t = (
|
|
838
954
|
/*_strings*/
|
|
839
955
|
n[13].expired + ""
|
|
840
956
|
);
|
|
841
957
|
return {
|
|
842
958
|
c() {
|
|
843
|
-
e =
|
|
959
|
+
e = N("div"), f(
|
|
844
960
|
e,
|
|
845
961
|
"title",
|
|
846
962
|
/*error*/
|
|
@@ -848,13 +964,13 @@ function Ln(n) {
|
|
|
848
964
|
);
|
|
849
965
|
},
|
|
850
966
|
m(i, o) {
|
|
851
|
-
|
|
967
|
+
Y(i, e, o), e.innerHTML = t;
|
|
852
968
|
},
|
|
853
969
|
p(i, o) {
|
|
854
970
|
o[0] & /*_strings*/
|
|
855
971
|
8192 && t !== (t = /*_strings*/
|
|
856
972
|
i[13].expired + "") && (e.innerHTML = t), o[0] & /*error*/
|
|
857
|
-
32 &&
|
|
973
|
+
32 && f(
|
|
858
974
|
e,
|
|
859
975
|
"title",
|
|
860
976
|
/*error*/
|
|
@@ -862,387 +978,437 @@ function Ln(n) {
|
|
|
862
978
|
);
|
|
863
979
|
},
|
|
864
980
|
d(i) {
|
|
865
|
-
i &&
|
|
981
|
+
i && S(e);
|
|
866
982
|
}
|
|
867
983
|
};
|
|
868
984
|
}
|
|
869
|
-
function
|
|
985
|
+
function kt(n) {
|
|
870
986
|
let e, t, i = (
|
|
871
987
|
/*_strings*/
|
|
872
988
|
n[13].footer + ""
|
|
873
989
|
);
|
|
874
990
|
return {
|
|
875
991
|
c() {
|
|
876
|
-
e =
|
|
992
|
+
e = N("div"), t = N("div"), f(t, "class", "svelte-ddsc3z"), f(e, "class", "altcha-footer svelte-ddsc3z");
|
|
877
993
|
},
|
|
878
|
-
m(o,
|
|
879
|
-
|
|
994
|
+
m(o, l) {
|
|
995
|
+
Y(o, e, l), L(e, t), t.innerHTML = i;
|
|
880
996
|
},
|
|
881
|
-
p(o,
|
|
882
|
-
|
|
997
|
+
p(o, l) {
|
|
998
|
+
l[0] & /*_strings*/
|
|
883
999
|
8192 && i !== (i = /*_strings*/
|
|
884
1000
|
o[13].footer + "") && (t.innerHTML = i);
|
|
885
1001
|
},
|
|
886
1002
|
d(o) {
|
|
887
|
-
o &&
|
|
1003
|
+
o && S(e);
|
|
888
1004
|
}
|
|
889
1005
|
};
|
|
890
1006
|
}
|
|
891
|
-
function
|
|
1007
|
+
function Et(n) {
|
|
892
1008
|
let e;
|
|
893
1009
|
return {
|
|
894
1010
|
c() {
|
|
895
|
-
e =
|
|
1011
|
+
e = N("div"), f(e, "class", "altcha-anchor-arrow svelte-ddsc3z");
|
|
896
1012
|
},
|
|
897
1013
|
m(t, i) {
|
|
898
|
-
|
|
1014
|
+
Y(t, e, i), n[46](e);
|
|
899
1015
|
},
|
|
900
|
-
p:
|
|
1016
|
+
p: Se,
|
|
901
1017
|
d(t) {
|
|
902
|
-
t &&
|
|
1018
|
+
t && S(e), n[46](null);
|
|
903
1019
|
}
|
|
904
1020
|
};
|
|
905
1021
|
}
|
|
906
|
-
function
|
|
907
|
-
let e, t, i, o,
|
|
1022
|
+
function Bn(n) {
|
|
1023
|
+
let e, t, i, o, l, s, c, a, d, v, R, $, k, K, X, ee, te;
|
|
1024
|
+
const A = (
|
|
1025
|
+
/*#slots*/
|
|
1026
|
+
n[44].default
|
|
1027
|
+
), U = sn(
|
|
1028
|
+
A,
|
|
1029
|
+
n,
|
|
1030
|
+
/*$$scope*/
|
|
1031
|
+
n[43],
|
|
1032
|
+
null
|
|
1033
|
+
);
|
|
1034
|
+
let Z = (
|
|
908
1035
|
/*state*/
|
|
909
|
-
n[7] ===
|
|
1036
|
+
n[7] === y.VERIFYING && vt()
|
|
910
1037
|
);
|
|
911
|
-
function
|
|
1038
|
+
function oe(h, x) {
|
|
912
1039
|
return (
|
|
913
1040
|
/*state*/
|
|
914
|
-
h[7] ===
|
|
1041
|
+
h[7] === y.VERIFIED ? Mn : (
|
|
915
1042
|
/*state*/
|
|
916
|
-
h[7] ===
|
|
1043
|
+
h[7] === y.VERIFYING ? Xn : Un
|
|
917
1044
|
)
|
|
918
1045
|
);
|
|
919
1046
|
}
|
|
920
|
-
let
|
|
1047
|
+
let ne = oe(n), j = ne(n), I = (
|
|
921
1048
|
/*hidelogo*/
|
|
922
1049
|
(n[3] !== !0 || /*isFreeSaaS*/
|
|
923
|
-
n[14]) &&
|
|
924
|
-
),
|
|
1050
|
+
n[14]) && pt(n)
|
|
1051
|
+
), z = (
|
|
925
1052
|
/*error*/
|
|
926
1053
|
(n[5] || /*state*/
|
|
927
|
-
n[7] ===
|
|
928
|
-
),
|
|
1054
|
+
n[7] === y.EXPIRED) && _t(n)
|
|
1055
|
+
), E = (
|
|
929
1056
|
/*_strings*/
|
|
930
1057
|
n[13].footer && /*hidefooter*/
|
|
931
1058
|
(n[2] !== !0 || /*isFreeSaaS*/
|
|
932
|
-
n[14]) &&
|
|
933
|
-
),
|
|
1059
|
+
n[14]) && kt(n)
|
|
1060
|
+
), F = (
|
|
934
1061
|
/*floating*/
|
|
935
|
-
n[1] &&
|
|
1062
|
+
n[1] && Et(n)
|
|
936
1063
|
);
|
|
937
1064
|
return {
|
|
938
1065
|
c() {
|
|
939
|
-
e =
|
|
940
|
-
n[4] + "_checkbox"), s.required =
|
|
941
|
-
n[0] !== "onsubmit",
|
|
942
|
-
|
|
1066
|
+
U && U.c(), e = q(), t = N("div"), i = N("div"), Z && Z.c(), o = q(), l = N("div"), s = N("input"), d = q(), v = N("div"), j.c(), R = q(), I && I.c(), $ = q(), z && z.c(), k = q(), E && E.c(), K = q(), F && F.c(), f(s, "type", "checkbox"), f(s, "id", c = /*name*/
|
|
1067
|
+
n[4] + "_checkbox"), s.required = a = /*auto*/
|
|
1068
|
+
n[0] !== "onsubmit", f(s, "class", "svelte-ddsc3z"), f(l, "class", "altcha-checkbox svelte-ddsc3z"), bt(
|
|
1069
|
+
l,
|
|
943
1070
|
"altcha-hidden",
|
|
944
1071
|
/*state*/
|
|
945
|
-
n[7] ===
|
|
946
|
-
),
|
|
947
|
-
|
|
1072
|
+
n[7] === y.VERIFYING
|
|
1073
|
+
), f(v, "class", "altcha-label svelte-ddsc3z"), f(i, "class", "altcha-main svelte-ddsc3z"), f(t, "class", "altcha svelte-ddsc3z"), f(
|
|
1074
|
+
t,
|
|
948
1075
|
"data-state",
|
|
949
1076
|
/*state*/
|
|
950
1077
|
n[7]
|
|
951
|
-
),
|
|
952
|
-
|
|
1078
|
+
), f(
|
|
1079
|
+
t,
|
|
953
1080
|
"data-floating",
|
|
954
1081
|
/*floating*/
|
|
955
1082
|
n[1]
|
|
956
1083
|
);
|
|
957
1084
|
},
|
|
958
|
-
m(h,
|
|
959
|
-
|
|
960
|
-
n[8],
|
|
961
|
-
|
|
1085
|
+
m(h, x) {
|
|
1086
|
+
U && U.m(h, x), Y(h, e, x), Y(h, t, x), L(t, i), Z && Z.m(i, null), L(i, o), L(i, l), L(l, s), s.checked = /*checked*/
|
|
1087
|
+
n[8], L(i, d), L(i, v), j.m(v, null), L(i, R), I && I.m(i, null), L(t, $), z && z.m(t, null), L(t, k), E && E.m(t, null), L(t, K), F && F.m(t, null), n[47](t), X = !0, ee || (te = [
|
|
1088
|
+
De(
|
|
962
1089
|
s,
|
|
963
1090
|
"change",
|
|
964
1091
|
/*input_change_handler*/
|
|
965
|
-
n[
|
|
1092
|
+
n[45]
|
|
966
1093
|
),
|
|
967
|
-
|
|
1094
|
+
De(
|
|
968
1095
|
s,
|
|
969
1096
|
"change",
|
|
970
1097
|
/*onCheckedChange*/
|
|
971
1098
|
n[15]
|
|
972
1099
|
),
|
|
973
|
-
|
|
1100
|
+
De(
|
|
974
1101
|
s,
|
|
975
1102
|
"invalid",
|
|
976
1103
|
/*onInvalid*/
|
|
977
1104
|
n[16]
|
|
978
1105
|
)
|
|
979
|
-
],
|
|
1106
|
+
], ee = !0);
|
|
980
1107
|
},
|
|
981
|
-
p(h,
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1108
|
+
p(h, x) {
|
|
1109
|
+
U && U.p && (!X || x[1] & /*$$scope*/
|
|
1110
|
+
4096) && an(
|
|
1111
|
+
U,
|
|
1112
|
+
A,
|
|
1113
|
+
h,
|
|
1114
|
+
/*$$scope*/
|
|
1115
|
+
h[43],
|
|
1116
|
+
X ? cn(
|
|
1117
|
+
A,
|
|
1118
|
+
/*$$scope*/
|
|
1119
|
+
h[43],
|
|
1120
|
+
x,
|
|
1121
|
+
null
|
|
1122
|
+
) : fn(
|
|
1123
|
+
/*$$scope*/
|
|
1124
|
+
h[43]
|
|
1125
|
+
),
|
|
1126
|
+
null
|
|
1127
|
+
), /*state*/
|
|
1128
|
+
h[7] === y.VERIFYING ? Z || (Z = vt(), Z.c(), Z.m(i, o)) : Z && (Z.d(1), Z = null), (!X || x[0] & /*name*/
|
|
1129
|
+
16 && c !== (c = /*name*/
|
|
1130
|
+
h[4] + "_checkbox")) && f(s, "id", c), (!X || x[0] & /*auto*/
|
|
1131
|
+
1 && a !== (a = /*auto*/
|
|
1132
|
+
h[0] !== "onsubmit")) && (s.required = a), x[0] & /*checked*/
|
|
988
1133
|
256 && (s.checked = /*checked*/
|
|
989
|
-
h[8]),
|
|
990
|
-
128 &&
|
|
991
|
-
|
|
1134
|
+
h[8]), (!X || x[0] & /*state*/
|
|
1135
|
+
128) && bt(
|
|
1136
|
+
l,
|
|
992
1137
|
"altcha-hidden",
|
|
993
1138
|
/*state*/
|
|
994
|
-
h[7] ===
|
|
995
|
-
),
|
|
1139
|
+
h[7] === y.VERIFYING
|
|
1140
|
+
), ne === (ne = oe(h)) && j ? j.p(h, x) : (j.d(1), j = ne(h), j && (j.c(), j.m(v, null))), /*hidelogo*/
|
|
996
1141
|
h[3] !== !0 || /*isFreeSaaS*/
|
|
997
|
-
h[14] ? I ? I.p(h,
|
|
1142
|
+
h[14] ? I ? I.p(h, x) : (I = pt(h), I.c(), I.m(i, null)) : I && (I.d(1), I = null), /*error*/
|
|
998
1143
|
h[5] || /*state*/
|
|
999
|
-
h[7] ===
|
|
1144
|
+
h[7] === y.EXPIRED ? z ? z.p(h, x) : (z = _t(h), z.c(), z.m(t, k)) : z && (z.d(1), z = null), /*_strings*/
|
|
1000
1145
|
h[13].footer && /*hidefooter*/
|
|
1001
1146
|
(h[2] !== !0 || /*isFreeSaaS*/
|
|
1002
|
-
h[14]) ?
|
|
1003
|
-
h[1] ?
|
|
1004
|
-
128 &&
|
|
1005
|
-
|
|
1147
|
+
h[14]) ? E ? E.p(h, x) : (E = kt(h), E.c(), E.m(t, K)) : E && (E.d(1), E = null), /*floating*/
|
|
1148
|
+
h[1] ? F ? F.p(h, x) : (F = Et(h), F.c(), F.m(t, null)) : F && (F.d(1), F = null), (!X || x[0] & /*state*/
|
|
1149
|
+
128) && f(
|
|
1150
|
+
t,
|
|
1006
1151
|
"data-state",
|
|
1007
1152
|
/*state*/
|
|
1008
1153
|
h[7]
|
|
1009
|
-
),
|
|
1010
|
-
2 &&
|
|
1011
|
-
|
|
1154
|
+
), (!X || x[0] & /*floating*/
|
|
1155
|
+
2) && f(
|
|
1156
|
+
t,
|
|
1012
1157
|
"data-floating",
|
|
1013
1158
|
/*floating*/
|
|
1014
1159
|
h[1]
|
|
1015
1160
|
);
|
|
1016
1161
|
},
|
|
1017
|
-
i
|
|
1018
|
-
|
|
1162
|
+
i(h) {
|
|
1163
|
+
X || (Ft(U, h), X = !0);
|
|
1164
|
+
},
|
|
1165
|
+
o(h) {
|
|
1166
|
+
Cn(U, h), X = !1;
|
|
1167
|
+
},
|
|
1019
1168
|
d(h) {
|
|
1020
|
-
h &&
|
|
1169
|
+
h && (S(e), S(t)), U && U.d(h), Z && Z.d(), j.d(), I && I.d(), z && z.d(), E && E.d(), F && F.d(), n[47](null), ee = !1, Ie(te);
|
|
1021
1170
|
}
|
|
1022
1171
|
};
|
|
1023
1172
|
}
|
|
1024
|
-
const
|
|
1025
|
-
function
|
|
1173
|
+
const xt = "Visit Altcha.org", Gt = "https://altcha.org/";
|
|
1174
|
+
function Ct(n) {
|
|
1026
1175
|
return JSON.parse(n);
|
|
1027
1176
|
}
|
|
1028
|
-
function
|
|
1029
|
-
var
|
|
1030
|
-
let i, o, s,
|
|
1031
|
-
const
|
|
1032
|
-
let
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
}),
|
|
1036
|
-
|
|
1177
|
+
function Kn(n, e, t) {
|
|
1178
|
+
var ct, at;
|
|
1179
|
+
let i, o, l, s, { $$slots: c = {}, $$scope: a } = e, { analytics: d = !1 } = e, { auto: v = void 0 } = e, { beaconurl: R = void 0 } = e, { blockspam: $ = void 0 } = e, { challengeurl: k = void 0 } = e, { challengejson: K = void 0 } = e, { debug: X = !1 } = e, { delay: ee = 0 } = e, { expire: te = void 0 } = e, { floating: A = void 0 } = e, { floatinganchor: U = void 0 } = e, { floatingoffset: Z = void 0 } = e, { hidefooter: oe = !1 } = e, { hidelogo: ne = !1 } = e, { name: j = "altcha" } = e, { maxnumber: I = 1e6 } = e, { mockerror: z = !1 } = e, { obfuscated: E = void 0 } = e, { refetchonexpire: F = !0 } = e, { spamfilter: h = !1 } = e, { strings: x = void 0 } = e, { test: P = !1 } = e, { verifyurl: le = void 0 } = e, { workers: be = Math.min(16, navigator.hardwareConcurrency || 8) } = e, { workerurl: Te = void 0 } = e;
|
|
1180
|
+
const Ve = pn(), je = ["SHA-256", "SHA-384", "SHA-512"], We = (at = (ct = document.documentElement.lang) == null ? void 0 : ct.split("-")) == null ? void 0 : at[0];
|
|
1181
|
+
let O = !1, J = null, _, se = null, Ne = null, b = null, re = null, ye = null, Q = null, ce = null, M = null, Be = null, T = y.UNVERIFIED;
|
|
1182
|
+
wn(() => {
|
|
1183
|
+
b && (b.removeEventListener("submit", Oe), b.removeEventListener("reset", Je), b.removeEventListener("focusin", Pe), b = null), re && _.removeEventListener("click", Ke), M && M.destroy(), Q && (clearTimeout(Q), Q = null), document.removeEventListener("click", nt), document.removeEventListener("scroll", rt), window.removeEventListener("resize", ot);
|
|
1184
|
+
}), vn(() => {
|
|
1185
|
+
var r, u;
|
|
1186
|
+
C("mounted", "0.8.0"), C("workers", be), P && C("using test mode"), te && Ae(te), v !== void 0 && C("auto", v), A !== void 0 && lt(A), b = _.closest("form"), b && (b.addEventListener("submit", Oe, { capture: !0 }), b.addEventListener("reset", Je), v === "onfocus" && b.addEventListener("focusin", Pe)), re = ((r = _.parentElement) == null ? void 0 : r.querySelector("[data-clarify-button]")) || ((u = _.parentElement) == null ? void 0 : u.querySelector("button, a")), re && re.addEventListener("click", Ke), d && $e(), v === "onload" && (E ? we() : ae()), i && (oe || ne) && C("Attributes hidefooter and hidelogo ignored because usage with free API Keys require attribution.");
|
|
1037
1187
|
});
|
|
1038
|
-
function
|
|
1039
|
-
(
|
|
1188
|
+
function C(...r) {
|
|
1189
|
+
(X || r.some((u) => u instanceof Error)) && console[r[0] instanceof Error ? "error" : "log"]("ALTCHA", ...r);
|
|
1040
1190
|
}
|
|
1041
|
-
function
|
|
1042
|
-
|
|
1191
|
+
function Ke(r) {
|
|
1192
|
+
r.preventDefault(), T === y.UNVERIFIED && we();
|
|
1193
|
+
}
|
|
1194
|
+
function Pe(r) {
|
|
1195
|
+
T === y.UNVERIFIED && ae();
|
|
1043
1196
|
}
|
|
1044
1197
|
function Oe(r) {
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
})) :
|
|
1198
|
+
b && M && T === y.VERIFIED && (M.end(), t(12, Be = M.dataAsBase64())), b && v === "onsubmit" && (T === y.UNVERIFIED ? (r.preventDefault(), r.stopPropagation(), ae().then(() => {
|
|
1199
|
+
b == null || b.requestSubmit();
|
|
1200
|
+
})) : T !== y.VERIFIED && (r.preventDefault(), r.stopPropagation(), T === y.VERIFYING && it()));
|
|
1048
1201
|
}
|
|
1049
|
-
function
|
|
1050
|
-
|
|
1202
|
+
function Je() {
|
|
1203
|
+
ve();
|
|
1051
1204
|
}
|
|
1052
|
-
function
|
|
1205
|
+
function Qe(r, u) {
|
|
1053
1206
|
return btoa(JSON.stringify({
|
|
1054
1207
|
algorithm: r.algorithm,
|
|
1055
1208
|
challenge: r.challenge,
|
|
1056
|
-
number:
|
|
1209
|
+
number: u.number,
|
|
1057
1210
|
salt: r.salt,
|
|
1058
1211
|
signature: r.signature,
|
|
1059
|
-
test:
|
|
1060
|
-
took:
|
|
1212
|
+
test: P ? !0 : void 0,
|
|
1213
|
+
took: u.took
|
|
1061
1214
|
}));
|
|
1062
1215
|
}
|
|
1063
|
-
function
|
|
1216
|
+
function qe(r) {
|
|
1064
1217
|
if (!r.algorithm)
|
|
1065
1218
|
throw new Error("Invalid challenge. Property algorithm is missing.");
|
|
1066
1219
|
if (r.signature === void 0)
|
|
1067
1220
|
throw new Error("Invalid challenge. Property signature is missing.");
|
|
1068
|
-
if (!
|
|
1069
|
-
throw new Error(`Unknown algorithm value. Allowed values: ${
|
|
1221
|
+
if (!je.includes(r.algorithm.toUpperCase()))
|
|
1222
|
+
throw new Error(`Unknown algorithm value. Allowed values: ${je.join(", ")}`);
|
|
1070
1223
|
if (!r.challenge || r.challenge.length < 40)
|
|
1071
1224
|
throw new Error("Challenge is too short. Min. 40 chars.");
|
|
1072
1225
|
if (!r.salt || r.salt.length < 10)
|
|
1073
1226
|
throw new Error("Salt is too short. Min. 10 chars.");
|
|
1074
1227
|
}
|
|
1075
|
-
async function
|
|
1228
|
+
async function Dt() {
|
|
1076
1229
|
var r;
|
|
1077
|
-
if (
|
|
1078
|
-
throw
|
|
1230
|
+
if (z)
|
|
1231
|
+
throw C("mocking error"), new Error("Mocked error.");
|
|
1079
1232
|
if (o)
|
|
1080
|
-
return
|
|
1081
|
-
if (
|
|
1082
|
-
return
|
|
1233
|
+
return C("using provided json data"), o;
|
|
1234
|
+
if (P)
|
|
1235
|
+
return C("generating test challenge", { test: P }), Sn(typeof P != "boolean" ? +P : void 0);
|
|
1083
1236
|
{
|
|
1084
|
-
if (!
|
|
1085
|
-
const
|
|
1086
|
-
|
|
1237
|
+
if (!k && b) {
|
|
1238
|
+
const w = b.getAttribute("action");
|
|
1239
|
+
w != null && w.includes("/form/") && t(17, k = w + "/altcha");
|
|
1087
1240
|
}
|
|
1088
|
-
if (!
|
|
1241
|
+
if (!k)
|
|
1089
1242
|
throw new Error("Attribute challengeurl not set.");
|
|
1090
|
-
|
|
1091
|
-
const
|
|
1092
|
-
headers:
|
|
1243
|
+
C("fetching challenge from", k);
|
|
1244
|
+
const u = await fetch(k, {
|
|
1245
|
+
headers: h ? { "x-altcha-spam-filter": "1" } : {}
|
|
1093
1246
|
});
|
|
1094
|
-
if (
|
|
1095
|
-
throw new Error(`Server responded with ${
|
|
1096
|
-
const
|
|
1097
|
-
if (
|
|
1098
|
-
const
|
|
1099
|
-
|
|
1247
|
+
if (u.status !== 200)
|
|
1248
|
+
throw new Error(`Server responded with ${u.status}.`);
|
|
1249
|
+
const m = u.headers.get("Expires"), g = u.headers.get("X-Altcha-Config"), V = await u.json(), H = new URLSearchParams((r = V.salt.split("?")) == null ? void 0 : r[1]), G = H.get("expires") || H.get("expire");
|
|
1250
|
+
if (G) {
|
|
1251
|
+
const w = new Date(+G * 1e3), B = isNaN(w.getTime()) ? 0 : w.getTime() - Date.now();
|
|
1252
|
+
B > 0 && Ae(B);
|
|
1100
1253
|
}
|
|
1101
|
-
if (
|
|
1254
|
+
if (g)
|
|
1102
1255
|
try {
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1105
|
-
} catch (
|
|
1106
|
-
|
|
1256
|
+
const w = JSON.parse(g);
|
|
1257
|
+
w && typeof w == "object" && (w.verifyurl && (w.verifyurl = new URL(w.verifyurl, new URL(k)).toString()), st(w));
|
|
1258
|
+
} catch (w) {
|
|
1259
|
+
C("unable to configure from X-Altcha-Config", w);
|
|
1107
1260
|
}
|
|
1108
|
-
if (!
|
|
1109
|
-
const
|
|
1110
|
-
if (
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1261
|
+
if (!te && (m != null && m.length)) {
|
|
1262
|
+
const w = Date.parse(m);
|
|
1263
|
+
if (w) {
|
|
1264
|
+
const B = w - Date.now();
|
|
1265
|
+
B > 0 && Ae(B);
|
|
1113
1266
|
}
|
|
1114
1267
|
}
|
|
1115
|
-
return
|
|
1268
|
+
return V;
|
|
1116
1269
|
}
|
|
1117
1270
|
}
|
|
1118
|
-
function
|
|
1119
|
-
if (!
|
|
1120
|
-
if (
|
|
1121
|
-
if (
|
|
1122
|
-
const r =
|
|
1123
|
-
r && t(19,
|
|
1271
|
+
function $e() {
|
|
1272
|
+
if (!M)
|
|
1273
|
+
if (b) {
|
|
1274
|
+
if (C("analytics enabled"), t(11, M = new Dn(b)), R === void 0) {
|
|
1275
|
+
const r = b.getAttribute("action");
|
|
1276
|
+
r && t(19, R = r + "/beacon");
|
|
1124
1277
|
}
|
|
1125
|
-
t(11,
|
|
1278
|
+
t(11, M.beaconUrl = R || null, M);
|
|
1126
1279
|
} else
|
|
1127
|
-
|
|
1280
|
+
C("analytics cannot be enabled - form element not found");
|
|
1128
1281
|
}
|
|
1129
|
-
function
|
|
1130
|
-
|
|
1282
|
+
function et() {
|
|
1283
|
+
k && F && T === y.VERIFIED ? ae() : ve(y.EXPIRED, s.expired);
|
|
1131
1284
|
}
|
|
1132
|
-
async function
|
|
1133
|
-
let
|
|
1285
|
+
async function tt(r) {
|
|
1286
|
+
let u = null;
|
|
1134
1287
|
if ("Worker" in window) {
|
|
1135
1288
|
try {
|
|
1136
|
-
|
|
1137
|
-
} catch (
|
|
1138
|
-
|
|
1289
|
+
u = await Yt(r, r.maxnumber);
|
|
1290
|
+
} catch (m) {
|
|
1291
|
+
C(m);
|
|
1139
1292
|
}
|
|
1140
|
-
if ((
|
|
1141
|
-
return { data: r, solution:
|
|
1293
|
+
if ((u == null ? void 0 : u.number) !== void 0 || "obfuscated" in r)
|
|
1294
|
+
return { data: r, solution: u };
|
|
1295
|
+
}
|
|
1296
|
+
if ("obfuscated" in r) {
|
|
1297
|
+
const m = await Gn(r.obfuscated, r.key, r.maxnumber);
|
|
1298
|
+
return { data: r, solution: await m.promise };
|
|
1142
1299
|
}
|
|
1143
1300
|
return {
|
|
1144
1301
|
data: r,
|
|
1145
|
-
solution: await
|
|
1302
|
+
solution: await Zn(r.challenge, r.salt, r.algorithm, r.maxnumber || I).promise
|
|
1146
1303
|
};
|
|
1147
1304
|
}
|
|
1148
|
-
async function
|
|
1149
|
-
const
|
|
1150
|
-
|
|
1151
|
-
for (let
|
|
1152
|
-
|
|
1153
|
-
const
|
|
1154
|
-
const
|
|
1155
|
-
return new Promise((
|
|
1156
|
-
|
|
1157
|
-
if (
|
|
1158
|
-
for (const
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
}),
|
|
1162
|
-
payload:
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
max: de + W,
|
|
1166
|
-
salt: d,
|
|
1167
|
-
start: de
|
|
1168
|
-
},
|
|
1305
|
+
async function Yt(r, u = typeof P == "number" ? P : I, m = Math.ceil(be)) {
|
|
1306
|
+
const g = [];
|
|
1307
|
+
m = Math.min(16, Math.max(1, m));
|
|
1308
|
+
for (let G = 0; G < m; G++)
|
|
1309
|
+
g.push(createAltchaWorker(Te));
|
|
1310
|
+
const V = Math.ceil(u / m), H = await Promise.all(g.map((G, w) => {
|
|
1311
|
+
const B = w * V;
|
|
1312
|
+
return new Promise((Ge) => {
|
|
1313
|
+
G.addEventListener("message", (pe) => {
|
|
1314
|
+
if (pe.data)
|
|
1315
|
+
for (const _e of g)
|
|
1316
|
+
_e !== G && _e.postMessage({ type: "abort" });
|
|
1317
|
+
Ge(pe.data);
|
|
1318
|
+
}), G.postMessage({
|
|
1319
|
+
payload: r,
|
|
1320
|
+
max: B + V,
|
|
1321
|
+
start: B,
|
|
1169
1322
|
type: "work"
|
|
1170
1323
|
});
|
|
1171
1324
|
});
|
|
1172
1325
|
}));
|
|
1173
|
-
for (const
|
|
1174
|
-
|
|
1175
|
-
return
|
|
1326
|
+
for (const G of g)
|
|
1327
|
+
G.terminate();
|
|
1328
|
+
return H.find((G) => !!G) || null;
|
|
1176
1329
|
}
|
|
1177
|
-
function
|
|
1178
|
-
[
|
|
1330
|
+
function Ut() {
|
|
1331
|
+
[y.UNVERIFIED, y.ERROR, y.EXPIRED].includes(T) ? h && (b == null ? void 0 : b.reportValidity()) === !1 ? t(8, O = !1) : E ? we() : ae() : t(8, O = !0);
|
|
1179
1332
|
}
|
|
1180
|
-
function
|
|
1181
|
-
const
|
|
1182
|
-
|
|
1333
|
+
function nt(r) {
|
|
1334
|
+
const u = r.target;
|
|
1335
|
+
A && u && !_.contains(u) && T === y.VERIFIED && t(9, _.style.display = "none", _);
|
|
1183
1336
|
}
|
|
1184
|
-
function
|
|
1185
|
-
|
|
1337
|
+
function rt() {
|
|
1338
|
+
A && He();
|
|
1186
1339
|
}
|
|
1187
|
-
function
|
|
1188
|
-
|
|
1340
|
+
function it() {
|
|
1341
|
+
T === y.VERIFYING && s.waitAlert && alert(s.waitAlert);
|
|
1342
|
+
}
|
|
1343
|
+
function Xt(r) {
|
|
1344
|
+
var u;
|
|
1345
|
+
if (J) {
|
|
1346
|
+
const m = J.match(/^(mailto|tel|sms|https?):/);
|
|
1347
|
+
let g;
|
|
1348
|
+
if (m) {
|
|
1349
|
+
const [V] = J.slice(J.indexOf(":") + 1).replace(/^\/\//, "").split("?");
|
|
1350
|
+
g = document.createElement("a"), g.href = J, g.innerHTML = V;
|
|
1351
|
+
} else
|
|
1352
|
+
g = document.createTextNode(J);
|
|
1353
|
+
re && g && (re.after(g), (u = re.parentElement) == null || u.removeChild(re));
|
|
1354
|
+
}
|
|
1189
1355
|
}
|
|
1190
|
-
function
|
|
1191
|
-
|
|
1356
|
+
function Mt(r) {
|
|
1357
|
+
M && M.trackError(ye);
|
|
1192
1358
|
}
|
|
1193
|
-
function
|
|
1194
|
-
|
|
1195
|
-
|
|
1359
|
+
function jt(r) {
|
|
1360
|
+
A && T !== y.UNVERIFIED && requestAnimationFrame(() => {
|
|
1361
|
+
He();
|
|
1196
1362
|
});
|
|
1197
1363
|
}
|
|
1198
|
-
function
|
|
1199
|
-
|
|
1364
|
+
function ot() {
|
|
1365
|
+
A && He();
|
|
1200
1366
|
}
|
|
1201
|
-
function
|
|
1202
|
-
|
|
1367
|
+
function Ae(r) {
|
|
1368
|
+
C("expire", r), Q && (clearTimeout(Q), Q = null), r < 1 ? et() : Q = setTimeout(et, r);
|
|
1203
1369
|
}
|
|
1204
|
-
function
|
|
1205
|
-
|
|
1370
|
+
function lt(r) {
|
|
1371
|
+
C("floating", r), A !== r && (t(9, _.style.left = "", _), t(9, _.style.top = "", _)), t(1, A = r === !0 || r === "" ? "auto" : r === !1 || r === "false" ? void 0 : A), A ? (v || t(0, v = "onsubmit"), document.addEventListener("scroll", rt), document.addEventListener("click", nt), window.addEventListener("resize", ot)) : v === "onsubmit" && t(0, v = void 0);
|
|
1206
1372
|
}
|
|
1207
|
-
function
|
|
1208
|
-
var
|
|
1209
|
-
const
|
|
1210
|
-
return ((
|
|
1373
|
+
function Wt(r) {
|
|
1374
|
+
var m;
|
|
1375
|
+
const u = b == null ? void 0 : b.querySelector(typeof r == "string" ? `input[name="${r}"]` : 'input[type="email"]:not([data-no-spamfilter])');
|
|
1376
|
+
return ((m = u == null ? void 0 : u.value) == null ? void 0 : m.slice(u.value.indexOf("@"))) || void 0;
|
|
1211
1377
|
}
|
|
1212
|
-
function
|
|
1378
|
+
function Bt(r) {
|
|
1213
1379
|
return [
|
|
1214
|
-
...(
|
|
1380
|
+
...(b == null ? void 0 : b.querySelectorAll(r != null && r.length ? r.map((m) => `input[name="${m}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
|
|
1215
1381
|
].reduce(
|
|
1216
|
-
(
|
|
1217
|
-
const
|
|
1218
|
-
return
|
|
1219
|
-
`) :
|
|
1382
|
+
(m, g) => {
|
|
1383
|
+
const V = g.name, H = g.value;
|
|
1384
|
+
return V && H && (m[V] = /\n/.test(H) ? H.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
|
|
1385
|
+
`) : H), m;
|
|
1220
1386
|
},
|
|
1221
1387
|
{}
|
|
1222
1388
|
);
|
|
1223
1389
|
}
|
|
1224
|
-
async function
|
|
1225
|
-
if (!
|
|
1390
|
+
async function Kt(r) {
|
|
1391
|
+
if (!le)
|
|
1226
1392
|
throw new Error("Attribute verifyurl not set.");
|
|
1227
|
-
|
|
1228
|
-
const
|
|
1229
|
-
if (
|
|
1230
|
-
const { blockedCountries:
|
|
1231
|
-
|
|
1393
|
+
C("requesting server verification from", le);
|
|
1394
|
+
const u = { payload: r };
|
|
1395
|
+
if (h) {
|
|
1396
|
+
const { blockedCountries: V, classifier: H, disableRules: G, email: w, expectedLanguages: B, expectedCountries: Ge, fields: pe, ipAddress: _e, text: qt, timeZone: ft } = Pt();
|
|
1397
|
+
u.blockedCountries = V, u.classifier = H, u.disableRules = G, u.email = w === !1 ? void 0 : Wt(w), u.expectedCountries = Ge, u.expectedLanguages = B || (We ? [We] : void 0), u.fields = pe === !1 ? void 0 : Bt(pe), u.ipAddress = _e === !1 ? void 0 : _e || "auto", u.text = qt, u.timeZone = ft === !1 ? void 0 : ft || Ht();
|
|
1232
1398
|
}
|
|
1233
|
-
const
|
|
1234
|
-
body: JSON.stringify(
|
|
1399
|
+
const m = await fetch(le, {
|
|
1400
|
+
body: JSON.stringify(u),
|
|
1235
1401
|
headers: { "content-type": "application/json" },
|
|
1236
1402
|
method: "POST"
|
|
1237
1403
|
});
|
|
1238
|
-
if (
|
|
1239
|
-
throw new Error(`Server responded with ${
|
|
1240
|
-
const
|
|
1241
|
-
if (
|
|
1404
|
+
if (m.status !== 200)
|
|
1405
|
+
throw new Error(`Server responded with ${m.status}.`);
|
|
1406
|
+
const g = await m.json();
|
|
1407
|
+
if (g != null && g.payload && t(6, ce = g.payload), Ve("serververification", g), $ && g.classification === "BAD")
|
|
1242
1408
|
throw new Error("SpamFilter returned negative classification.");
|
|
1243
1409
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return
|
|
1410
|
+
function Pt() {
|
|
1411
|
+
return h === "ipAddress" ? {
|
|
1246
1412
|
blockedCountries: void 0,
|
|
1247
1413
|
classifier: void 0,
|
|
1248
1414
|
disableRules: void 0,
|
|
@@ -1253,7 +1419,7 @@ function In(n, e, t) {
|
|
|
1253
1419
|
ipAddress: void 0,
|
|
1254
1420
|
text: void 0,
|
|
1255
1421
|
timeZone: void 0
|
|
1256
|
-
} : typeof
|
|
1422
|
+
} : typeof h == "object" ? h : {
|
|
1257
1423
|
blockedCountries: void 0,
|
|
1258
1424
|
classifier: void 0,
|
|
1259
1425
|
disableRules: void 0,
|
|
@@ -1266,134 +1432,157 @@ function In(n, e, t) {
|
|
|
1266
1432
|
timeZone: void 0
|
|
1267
1433
|
};
|
|
1268
1434
|
}
|
|
1269
|
-
function
|
|
1270
|
-
if (
|
|
1271
|
-
if (
|
|
1272
|
-
const
|
|
1273
|
-
if (
|
|
1274
|
-
const
|
|
1275
|
-
t(10,
|
|
1435
|
+
function He(r = 20) {
|
|
1436
|
+
if (_)
|
|
1437
|
+
if (Ne || (Ne = (U ? document.querySelector(U) : b == null ? void 0 : b.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || b || re), Ne) {
|
|
1438
|
+
const u = parseInt(Z, 10) || 12, m = Ne.getBoundingClientRect(), g = _.getBoundingClientRect(), V = document.documentElement.clientHeight, H = document.documentElement.clientWidth, G = A === "auto" ? m.bottom + g.height + u + r > V : A === "top", w = Math.max(r, Math.min(H - r - g.width, m.left + m.width / 2 - g.width / 2));
|
|
1439
|
+
if (G ? t(9, _.style.top = `${m.top - (g.height + u)}px`, _) : t(9, _.style.top = `${m.bottom + u}px`, _), t(9, _.style.left = `${w}px`, _), _.setAttribute("data-floating", G ? "top" : "bottom"), se) {
|
|
1440
|
+
const B = se.getBoundingClientRect();
|
|
1441
|
+
t(10, se.style.left = m.left - w + m.width / 2 - B.width / 2 + "px", se);
|
|
1276
1442
|
}
|
|
1277
1443
|
} else
|
|
1278
|
-
|
|
1279
|
-
}
|
|
1280
|
-
function
|
|
1281
|
-
r.analytics && (t(18,
|
|
1282
|
-
}
|
|
1283
|
-
function
|
|
1284
|
-
|
|
1285
|
-
}
|
|
1286
|
-
async function
|
|
1287
|
-
return
|
|
1288
|
-
if (
|
|
1289
|
-
if (
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1444
|
+
C("unable to find floating anchor element");
|
|
1445
|
+
}
|
|
1446
|
+
function st(r) {
|
|
1447
|
+
r.analytics && (t(18, d = r.analytics), $e()), r.obfuscated !== void 0 && t(27, E = r.obfuscated), r.auto !== void 0 && (t(0, v = r.auto), v === "onload" && (E ? we() : ae())), r.beaconurl && (t(19, R = r.beaconurl), M && t(11, M.beaconUrl = R, M)), r.floatinganchor !== void 0 && t(23, U = r.floatinganchor), r.delay !== void 0 && t(21, ee = r.delay), r.floatingoffset !== void 0 && t(24, Z = r.floatingoffset), r.floating !== void 0 && lt(r.floating), r.expire !== void 0 && (Ae(r.expire), t(22, te = r.expire)), r.challenge && (qe(r.challenge), o = r.challenge), r.challengeurl !== void 0 && t(17, k = r.challengeurl), r.debug !== void 0 && t(20, X = !!r.debug), r.hidefooter !== void 0 && t(2, oe = !!r.hidefooter), r.hidelogo !== void 0 && t(3, ne = !!r.hidelogo), r.maxnumber !== void 0 && t(25, I = +r.maxnumber), r.mockerror !== void 0 && t(26, z = !!r.mockerror), r.name !== void 0 && t(4, j = r.name), r.refetchonexpire !== void 0 && t(28, F = !!r.refetchonexpire), r.spamfilter !== void 0 && t(29, h = typeof r.spamfilter == "object" ? r.spamfilter : !!r.spamfilter), r.strings && t(42, l = r.strings), r.test !== void 0 && t(30, P = typeof r.test == "number" ? r.test : !!r.test), r.verifyurl !== void 0 && t(31, le = r.verifyurl), r.workers !== void 0 && t(32, be = +r.workers), r.workerurl !== void 0 && t(33, Te = r.workerurl);
|
|
1448
|
+
}
|
|
1449
|
+
function ve(r = y.UNVERIFIED, u = null) {
|
|
1450
|
+
Q && (clearTimeout(Q), Q = null), t(8, O = !1), t(5, ye = u), t(6, ce = null), t(7, T = r);
|
|
1451
|
+
}
|
|
1452
|
+
async function ae() {
|
|
1453
|
+
return ve(y.VERIFYING), await new Promise((r) => setTimeout(r, ee || 0)), Dt().then((r) => (qe(r), C("challenge", r), tt(r))).then(({ data: r, solution: u }) => {
|
|
1454
|
+
if (C("solution", u), "challenge" in r && u && !("clearText" in u))
|
|
1455
|
+
if ((u == null ? void 0 : u.number) !== void 0) {
|
|
1456
|
+
if (le)
|
|
1457
|
+
return Kt(Qe(r, u));
|
|
1458
|
+
t(6, ce = Qe(r, u)), C("payload", ce);
|
|
1459
|
+
} else
|
|
1460
|
+
throw C("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
|
|
1294
1461
|
}).then(() => {
|
|
1295
|
-
|
|
1296
|
-
t(7,
|
|
1462
|
+
_n().then(() => {
|
|
1463
|
+
t(7, T = y.VERIFIED), t(8, O = !0), C("verified"), Ve("verified", { payload: ce });
|
|
1297
1464
|
});
|
|
1298
1465
|
}).catch((r) => {
|
|
1299
|
-
|
|
1466
|
+
C(r), t(7, T = y.ERROR), t(8, O = !1), t(5, ye = r.message);
|
|
1300
1467
|
});
|
|
1301
1468
|
}
|
|
1302
|
-
function
|
|
1303
|
-
|
|
1469
|
+
async function we() {
|
|
1470
|
+
if (!E) {
|
|
1471
|
+
t(7, T = y.ERROR);
|
|
1472
|
+
return;
|
|
1473
|
+
}
|
|
1474
|
+
ve(y.VERIFYING), await new Promise((H) => setTimeout(H, ee || 0));
|
|
1475
|
+
const [r, u] = E.split("?");
|
|
1476
|
+
let g = new URLSearchParams(u || "").get("key") || void 0;
|
|
1477
|
+
if (g) {
|
|
1478
|
+
const H = g.match(/^\(prompt:?(.*)\)$/);
|
|
1479
|
+
H && (g = prompt(H[1] || "Enter Key:") || void 0);
|
|
1480
|
+
}
|
|
1481
|
+
const { solution: V } = await tt({ obfuscated: r, key: g, maxnumber: I });
|
|
1482
|
+
V && "clearText" in V ? (t(41, J = V.clearText), t(7, T = y.VERIFIED), t(8, O = !0), A && _ && t(9, _.style.display = "none", _)) : (t(7, T = y.ERROR), t(8, O = !1), t(5, ye = "Unable to decrypt data."));
|
|
1304
1483
|
}
|
|
1305
|
-
function
|
|
1306
|
-
|
|
1307
|
-
|
|
1484
|
+
function Ot() {
|
|
1485
|
+
O = this.checked, t(8, O);
|
|
1486
|
+
}
|
|
1487
|
+
function Jt(r) {
|
|
1488
|
+
Ze[r ? "unshift" : "push"](() => {
|
|
1489
|
+
se = r, t(10, se);
|
|
1308
1490
|
});
|
|
1309
1491
|
}
|
|
1310
|
-
function
|
|
1311
|
-
|
|
1312
|
-
|
|
1492
|
+
function Qt(r) {
|
|
1493
|
+
Ze[r ? "unshift" : "push"](() => {
|
|
1494
|
+
_ = r, t(9, _);
|
|
1313
1495
|
});
|
|
1314
1496
|
}
|
|
1315
1497
|
return n.$$set = (r) => {
|
|
1316
|
-
"analytics" in r && t(18,
|
|
1498
|
+
"analytics" in r && t(18, d = r.analytics), "auto" in r && t(0, v = r.auto), "beaconurl" in r && t(19, R = r.beaconurl), "blockspam" in r && t(34, $ = r.blockspam), "challengeurl" in r && t(17, k = r.challengeurl), "challengejson" in r && t(35, K = r.challengejson), "debug" in r && t(20, X = r.debug), "delay" in r && t(21, ee = r.delay), "expire" in r && t(22, te = r.expire), "floating" in r && t(1, A = r.floating), "floatinganchor" in r && t(23, U = r.floatinganchor), "floatingoffset" in r && t(24, Z = r.floatingoffset), "hidefooter" in r && t(2, oe = r.hidefooter), "hidelogo" in r && t(3, ne = r.hidelogo), "name" in r && t(4, j = r.name), "maxnumber" in r && t(25, I = r.maxnumber), "mockerror" in r && t(26, z = r.mockerror), "obfuscated" in r && t(27, E = r.obfuscated), "refetchonexpire" in r && t(28, F = r.refetchonexpire), "spamfilter" in r && t(29, h = r.spamfilter), "strings" in r && t(36, x = r.strings), "test" in r && t(30, P = r.test), "verifyurl" in r && t(31, le = r.verifyurl), "workers" in r && t(32, be = r.workers), "workerurl" in r && t(33, Te = r.workerurl), "$$scope" in r && t(43, a = r.$$scope);
|
|
1317
1499
|
}, n.$$.update = () => {
|
|
1318
1500
|
n.$$.dirty[0] & /*challengeurl*/
|
|
1319
|
-
131072 && t(14, i = !!(
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
ariaLinkLabel:
|
|
1501
|
+
131072 && t(14, i = !!(k != null && k.includes(".altcha.org")) && !!(k != null && k.includes("apiKey=ckey_"))), n.$$.dirty[1] & /*challengejson*/
|
|
1502
|
+
16 && (o = K ? Ct(K) : void 0), n.$$.dirty[1] & /*strings*/
|
|
1503
|
+
32 && t(42, l = x ? Ct(x) : {}), n.$$.dirty[1] & /*parsedStrings*/
|
|
1504
|
+
2048 && t(13, s = {
|
|
1505
|
+
ariaLinkLabel: xt,
|
|
1324
1506
|
error: "Verification failed. Try again later.",
|
|
1325
1507
|
expired: "Verification expired. Try again.",
|
|
1326
|
-
footer: `Protected by <a href="${
|
|
1508
|
+
footer: `Protected by <a href="${Gt}" target="_blank" aria-label="${l.ariaLinkLabel || xt}">ALTCHA</a>`,
|
|
1327
1509
|
label: "I'm not a robot",
|
|
1328
1510
|
verified: "Verified",
|
|
1329
1511
|
verifying: "Verifying...",
|
|
1330
1512
|
waitAlert: "Verifying... please wait.",
|
|
1331
|
-
...
|
|
1332
|
-
}), n.$$.dirty[0] & /*
|
|
1333
|
-
192
|
|
1334
|
-
|
|
1335
|
-
|
|
1513
|
+
...l
|
|
1514
|
+
}), n.$$.dirty[0] & /*state, payload*/
|
|
1515
|
+
192 | n.$$.dirty[1] & /*clarifiedData*/
|
|
1516
|
+
1024 && Ve("statechange", J ? { clarifiedData: J, state: T } : { payload: ce, state: T }), n.$$.dirty[0] & /*error*/
|
|
1517
|
+
32 && Mt(), n.$$.dirty[0] & /*state*/
|
|
1518
|
+
128 && jt(), n.$$.dirty[1] & /*clarifiedData*/
|
|
1519
|
+
1024 && Xt();
|
|
1336
1520
|
}, [
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
I,
|
|
1341
|
-
F,
|
|
1342
|
-
xe,
|
|
1521
|
+
v,
|
|
1522
|
+
A,
|
|
1523
|
+
oe,
|
|
1343
1524
|
ne,
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1525
|
+
j,
|
|
1526
|
+
ye,
|
|
1527
|
+
ce,
|
|
1528
|
+
T,
|
|
1529
|
+
O,
|
|
1530
|
+
_,
|
|
1531
|
+
se,
|
|
1532
|
+
M,
|
|
1349
1533
|
Be,
|
|
1350
|
-
|
|
1534
|
+
s,
|
|
1351
1535
|
i,
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
O,
|
|
1536
|
+
Ut,
|
|
1537
|
+
it,
|
|
1538
|
+
k,
|
|
1539
|
+
d,
|
|
1540
|
+
R,
|
|
1358
1541
|
X,
|
|
1359
|
-
|
|
1360
|
-
|
|
1542
|
+
ee,
|
|
1543
|
+
te,
|
|
1544
|
+
U,
|
|
1545
|
+
Z,
|
|
1546
|
+
I,
|
|
1547
|
+
z,
|
|
1548
|
+
E,
|
|
1549
|
+
F,
|
|
1550
|
+
h,
|
|
1551
|
+
P,
|
|
1552
|
+
le,
|
|
1553
|
+
be,
|
|
1554
|
+
Te,
|
|
1555
|
+
$,
|
|
1361
1556
|
K,
|
|
1362
1557
|
x,
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
Le,
|
|
1375
|
-
re,
|
|
1376
|
-
s,
|
|
1377
|
-
Ut,
|
|
1378
|
-
Zt,
|
|
1379
|
-
Vt
|
|
1558
|
+
st,
|
|
1559
|
+
ve,
|
|
1560
|
+
ae,
|
|
1561
|
+
we,
|
|
1562
|
+
J,
|
|
1563
|
+
l,
|
|
1564
|
+
a,
|
|
1565
|
+
c,
|
|
1566
|
+
Ot,
|
|
1567
|
+
Jt,
|
|
1568
|
+
Qt
|
|
1380
1569
|
];
|
|
1381
1570
|
}
|
|
1382
|
-
class
|
|
1571
|
+
class Pn extends An {
|
|
1383
1572
|
constructor(e) {
|
|
1384
|
-
super(),
|
|
1573
|
+
super(), Tn(
|
|
1385
1574
|
this,
|
|
1386
1575
|
e,
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1576
|
+
Kn,
|
|
1577
|
+
Bn,
|
|
1578
|
+
on,
|
|
1390
1579
|
{
|
|
1391
1580
|
analytics: 18,
|
|
1392
1581
|
auto: 0,
|
|
1393
1582
|
beaconurl: 19,
|
|
1394
|
-
blockspam:
|
|
1583
|
+
blockspam: 34,
|
|
1395
1584
|
challengeurl: 17,
|
|
1396
|
-
challengejson:
|
|
1585
|
+
challengejson: 35,
|
|
1397
1586
|
debug: 20,
|
|
1398
1587
|
delay: 21,
|
|
1399
1588
|
expire: 22,
|
|
@@ -1405,18 +1594,20 @@ class An extends mn {
|
|
|
1405
1594
|
name: 4,
|
|
1406
1595
|
maxnumber: 25,
|
|
1407
1596
|
mockerror: 26,
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1597
|
+
obfuscated: 27,
|
|
1598
|
+
refetchonexpire: 28,
|
|
1599
|
+
spamfilter: 29,
|
|
1600
|
+
strings: 36,
|
|
1601
|
+
test: 30,
|
|
1602
|
+
verifyurl: 31,
|
|
1603
|
+
workers: 32,
|
|
1604
|
+
workerurl: 33,
|
|
1605
|
+
configure: 37,
|
|
1606
|
+
reset: 38,
|
|
1607
|
+
verify: 39,
|
|
1608
|
+
clarify: 40
|
|
1418
1609
|
},
|
|
1419
|
-
|
|
1610
|
+
Yn,
|
|
1420
1611
|
[-1, -1, -1]
|
|
1421
1612
|
);
|
|
1422
1613
|
}
|
|
@@ -1424,158 +1615,167 @@ class An extends mn {
|
|
|
1424
1615
|
return this.$$.ctx[18];
|
|
1425
1616
|
}
|
|
1426
1617
|
set analytics(e) {
|
|
1427
|
-
this.$$set({ analytics: e }),
|
|
1618
|
+
this.$$set({ analytics: e }), p();
|
|
1428
1619
|
}
|
|
1429
1620
|
get auto() {
|
|
1430
1621
|
return this.$$.ctx[0];
|
|
1431
1622
|
}
|
|
1432
1623
|
set auto(e) {
|
|
1433
|
-
this.$$set({ auto: e }),
|
|
1624
|
+
this.$$set({ auto: e }), p();
|
|
1434
1625
|
}
|
|
1435
1626
|
get beaconurl() {
|
|
1436
1627
|
return this.$$.ctx[19];
|
|
1437
1628
|
}
|
|
1438
1629
|
set beaconurl(e) {
|
|
1439
|
-
this.$$set({ beaconurl: e }),
|
|
1630
|
+
this.$$set({ beaconurl: e }), p();
|
|
1440
1631
|
}
|
|
1441
1632
|
get blockspam() {
|
|
1442
|
-
return this.$$.ctx[
|
|
1633
|
+
return this.$$.ctx[34];
|
|
1443
1634
|
}
|
|
1444
1635
|
set blockspam(e) {
|
|
1445
|
-
this.$$set({ blockspam: e }),
|
|
1636
|
+
this.$$set({ blockspam: e }), p();
|
|
1446
1637
|
}
|
|
1447
1638
|
get challengeurl() {
|
|
1448
1639
|
return this.$$.ctx[17];
|
|
1449
1640
|
}
|
|
1450
1641
|
set challengeurl(e) {
|
|
1451
|
-
this.$$set({ challengeurl: e }),
|
|
1642
|
+
this.$$set({ challengeurl: e }), p();
|
|
1452
1643
|
}
|
|
1453
1644
|
get challengejson() {
|
|
1454
|
-
return this.$$.ctx[
|
|
1645
|
+
return this.$$.ctx[35];
|
|
1455
1646
|
}
|
|
1456
1647
|
set challengejson(e) {
|
|
1457
|
-
this.$$set({ challengejson: e }),
|
|
1648
|
+
this.$$set({ challengejson: e }), p();
|
|
1458
1649
|
}
|
|
1459
1650
|
get debug() {
|
|
1460
1651
|
return this.$$.ctx[20];
|
|
1461
1652
|
}
|
|
1462
1653
|
set debug(e) {
|
|
1463
|
-
this.$$set({ debug: e }),
|
|
1654
|
+
this.$$set({ debug: e }), p();
|
|
1464
1655
|
}
|
|
1465
1656
|
get delay() {
|
|
1466
1657
|
return this.$$.ctx[21];
|
|
1467
1658
|
}
|
|
1468
1659
|
set delay(e) {
|
|
1469
|
-
this.$$set({ delay: e }),
|
|
1660
|
+
this.$$set({ delay: e }), p();
|
|
1470
1661
|
}
|
|
1471
1662
|
get expire() {
|
|
1472
1663
|
return this.$$.ctx[22];
|
|
1473
1664
|
}
|
|
1474
1665
|
set expire(e) {
|
|
1475
|
-
this.$$set({ expire: e }),
|
|
1666
|
+
this.$$set({ expire: e }), p();
|
|
1476
1667
|
}
|
|
1477
1668
|
get floating() {
|
|
1478
1669
|
return this.$$.ctx[1];
|
|
1479
1670
|
}
|
|
1480
1671
|
set floating(e) {
|
|
1481
|
-
this.$$set({ floating: e }),
|
|
1672
|
+
this.$$set({ floating: e }), p();
|
|
1482
1673
|
}
|
|
1483
1674
|
get floatinganchor() {
|
|
1484
1675
|
return this.$$.ctx[23];
|
|
1485
1676
|
}
|
|
1486
1677
|
set floatinganchor(e) {
|
|
1487
|
-
this.$$set({ floatinganchor: e }),
|
|
1678
|
+
this.$$set({ floatinganchor: e }), p();
|
|
1488
1679
|
}
|
|
1489
1680
|
get floatingoffset() {
|
|
1490
1681
|
return this.$$.ctx[24];
|
|
1491
1682
|
}
|
|
1492
1683
|
set floatingoffset(e) {
|
|
1493
|
-
this.$$set({ floatingoffset: e }),
|
|
1684
|
+
this.$$set({ floatingoffset: e }), p();
|
|
1494
1685
|
}
|
|
1495
1686
|
get hidefooter() {
|
|
1496
1687
|
return this.$$.ctx[2];
|
|
1497
1688
|
}
|
|
1498
1689
|
set hidefooter(e) {
|
|
1499
|
-
this.$$set({ hidefooter: e }),
|
|
1690
|
+
this.$$set({ hidefooter: e }), p();
|
|
1500
1691
|
}
|
|
1501
1692
|
get hidelogo() {
|
|
1502
1693
|
return this.$$.ctx[3];
|
|
1503
1694
|
}
|
|
1504
1695
|
set hidelogo(e) {
|
|
1505
|
-
this.$$set({ hidelogo: e }),
|
|
1696
|
+
this.$$set({ hidelogo: e }), p();
|
|
1506
1697
|
}
|
|
1507
1698
|
get name() {
|
|
1508
1699
|
return this.$$.ctx[4];
|
|
1509
1700
|
}
|
|
1510
1701
|
set name(e) {
|
|
1511
|
-
this.$$set({ name: e }),
|
|
1702
|
+
this.$$set({ name: e }), p();
|
|
1512
1703
|
}
|
|
1513
1704
|
get maxnumber() {
|
|
1514
1705
|
return this.$$.ctx[25];
|
|
1515
1706
|
}
|
|
1516
1707
|
set maxnumber(e) {
|
|
1517
|
-
this.$$set({ maxnumber: e }),
|
|
1708
|
+
this.$$set({ maxnumber: e }), p();
|
|
1518
1709
|
}
|
|
1519
1710
|
get mockerror() {
|
|
1520
1711
|
return this.$$.ctx[26];
|
|
1521
1712
|
}
|
|
1522
1713
|
set mockerror(e) {
|
|
1523
|
-
this.$$set({ mockerror: e }),
|
|
1714
|
+
this.$$set({ mockerror: e }), p();
|
|
1524
1715
|
}
|
|
1525
|
-
get
|
|
1716
|
+
get obfuscated() {
|
|
1526
1717
|
return this.$$.ctx[27];
|
|
1527
1718
|
}
|
|
1719
|
+
set obfuscated(e) {
|
|
1720
|
+
this.$$set({ obfuscated: e }), p();
|
|
1721
|
+
}
|
|
1722
|
+
get refetchonexpire() {
|
|
1723
|
+
return this.$$.ctx[28];
|
|
1724
|
+
}
|
|
1528
1725
|
set refetchonexpire(e) {
|
|
1529
|
-
this.$$set({ refetchonexpire: e }),
|
|
1726
|
+
this.$$set({ refetchonexpire: e }), p();
|
|
1530
1727
|
}
|
|
1531
1728
|
get spamfilter() {
|
|
1532
|
-
return this.$$.ctx[
|
|
1729
|
+
return this.$$.ctx[29];
|
|
1533
1730
|
}
|
|
1534
1731
|
set spamfilter(e) {
|
|
1535
|
-
this.$$set({ spamfilter: e }),
|
|
1732
|
+
this.$$set({ spamfilter: e }), p();
|
|
1536
1733
|
}
|
|
1537
1734
|
get strings() {
|
|
1538
|
-
return this.$$.ctx[
|
|
1735
|
+
return this.$$.ctx[36];
|
|
1539
1736
|
}
|
|
1540
1737
|
set strings(e) {
|
|
1541
|
-
this.$$set({ strings: e }),
|
|
1738
|
+
this.$$set({ strings: e }), p();
|
|
1542
1739
|
}
|
|
1543
1740
|
get test() {
|
|
1544
|
-
return this.$$.ctx[
|
|
1741
|
+
return this.$$.ctx[30];
|
|
1545
1742
|
}
|
|
1546
1743
|
set test(e) {
|
|
1547
|
-
this.$$set({ test: e }),
|
|
1744
|
+
this.$$set({ test: e }), p();
|
|
1548
1745
|
}
|
|
1549
1746
|
get verifyurl() {
|
|
1550
|
-
return this.$$.ctx[
|
|
1747
|
+
return this.$$.ctx[31];
|
|
1551
1748
|
}
|
|
1552
1749
|
set verifyurl(e) {
|
|
1553
|
-
this.$$set({ verifyurl: e }),
|
|
1750
|
+
this.$$set({ verifyurl: e }), p();
|
|
1554
1751
|
}
|
|
1555
1752
|
get workers() {
|
|
1556
|
-
return this.$$.ctx[
|
|
1753
|
+
return this.$$.ctx[32];
|
|
1557
1754
|
}
|
|
1558
1755
|
set workers(e) {
|
|
1559
|
-
this.$$set({ workers: e }),
|
|
1756
|
+
this.$$set({ workers: e }), p();
|
|
1560
1757
|
}
|
|
1561
1758
|
get workerurl() {
|
|
1562
|
-
return this.$$.ctx[
|
|
1759
|
+
return this.$$.ctx[33];
|
|
1563
1760
|
}
|
|
1564
1761
|
set workerurl(e) {
|
|
1565
|
-
this.$$set({ workerurl: e }),
|
|
1762
|
+
this.$$set({ workerurl: e }), p();
|
|
1566
1763
|
}
|
|
1567
1764
|
get configure() {
|
|
1568
|
-
return this.$$.ctx[
|
|
1765
|
+
return this.$$.ctx[37];
|
|
1569
1766
|
}
|
|
1570
1767
|
get reset() {
|
|
1571
|
-
return this.$$.ctx[
|
|
1768
|
+
return this.$$.ctx[38];
|
|
1572
1769
|
}
|
|
1573
1770
|
get verify() {
|
|
1574
|
-
return this.$$.ctx[
|
|
1771
|
+
return this.$$.ctx[39];
|
|
1772
|
+
}
|
|
1773
|
+
get clarify() {
|
|
1774
|
+
return this.$$.ctx[40];
|
|
1575
1775
|
}
|
|
1576
1776
|
}
|
|
1577
|
-
customElements.define("altcha-widget",
|
|
1578
|
-
globalThis.createAltchaWorker = (n) => n ? new Worker(new URL(n)) : new
|
|
1777
|
+
customElements.define("altcha-widget", Nn(Pn, { analytics: { type: "Boolean" }, auto: {}, beaconurl: {}, blockspam: {}, challengeurl: {}, challengejson: {}, debug: { type: "Boolean" }, delay: {}, expire: {}, floating: {}, floatinganchor: {}, floatingoffset: {}, hidefooter: { type: "Boolean" }, hidelogo: { type: "Boolean" }, name: {}, maxnumber: {}, mockerror: { type: "Boolean" }, obfuscated: {}, refetchonexpire: { type: "Boolean" }, spamfilter: { type: "Boolean" }, strings: {}, test: { type: "Boolean" }, verifyurl: {}, workers: {}, workerurl: {} }, ["default"], ["configure", "reset", "verify", "clarify"], !1));
|
|
1778
|
+
globalThis.createAltchaWorker = (n) => n ? new Worker(new URL(n)) : new nn();
|
|
1579
1779
|
export {
|
|
1580
|
-
|
|
1780
|
+
Pn as Altcha
|
|
1581
1781
|
};
|