altcha 0.1.4 → 0.1.6
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.iife.js +1 -1
- package/dist/altcha.js +463 -433
- package/dist/altcha.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/altcha.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
1
|
+
var je = Object.defineProperty;
|
|
2
|
+
var Ge = (t, e, n) => e in t ? je(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var x = (t, e, n) => (Ge(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
function Z() {
|
|
5
5
|
}
|
|
6
6
|
function de(t) {
|
|
7
7
|
return t();
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ie() {
|
|
10
10
|
return /* @__PURE__ */ Object.create(null);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function H(t) {
|
|
13
13
|
t.forEach(de);
|
|
14
14
|
}
|
|
15
15
|
function ge(t) {
|
|
16
16
|
return typeof t == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ae(t, e) {
|
|
19
19
|
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Se(t) {
|
|
22
22
|
return Object.keys(t).length === 0;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function m(t, e) {
|
|
25
25
|
t.appendChild(e);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const
|
|
29
|
-
if (!
|
|
27
|
+
function Ve(t, e, n) {
|
|
28
|
+
const r = Me(t);
|
|
29
|
+
if (!r.getElementById(e)) {
|
|
30
30
|
const l = v("style");
|
|
31
|
-
l.id = e, l.textContent = n,
|
|
31
|
+
l.id = e, l.textContent = n, Ue(r, l);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Me(t) {
|
|
35
35
|
if (!t)
|
|
36
36
|
return document;
|
|
37
37
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
@@ -41,47 +41,47 @@ function Ae(t) {
|
|
|
41
41
|
e
|
|
42
42
|
) : t.ownerDocument;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function Ue(t, e) {
|
|
45
|
+
return m(
|
|
46
46
|
/** @type {Document} */
|
|
47
47
|
t.head || t,
|
|
48
48
|
e
|
|
49
49
|
), e.sheet;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function q(t, e, n) {
|
|
52
52
|
t.insertBefore(e, n || null);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function I(t) {
|
|
55
55
|
t.parentNode && t.parentNode.removeChild(t);
|
|
56
56
|
}
|
|
57
57
|
function v(t) {
|
|
58
58
|
return document.createElement(t);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function G(t) {
|
|
61
61
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Fe(t) {
|
|
64
64
|
return document.createTextNode(t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return
|
|
66
|
+
function M() {
|
|
67
|
+
return Fe(" ");
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return t.addEventListener(e, n,
|
|
69
|
+
function D(t, e, n, r) {
|
|
70
|
+
return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function c(t, e, n) {
|
|
73
73
|
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ye(t) {
|
|
76
76
|
return Array.from(t.childNodes);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function le(t, e, n) {
|
|
79
79
|
t.classList.toggle(e, !!n);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return new CustomEvent(t, { detail: e, bubbles: n, cancelable:
|
|
81
|
+
function Ze(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
82
|
+
return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Oe(t) {
|
|
85
85
|
const e = {};
|
|
86
86
|
return t.childNodes.forEach(
|
|
87
87
|
/** @param {Element} node */
|
|
@@ -90,116 +90,119 @@ function Fe(t) {
|
|
|
90
90
|
}
|
|
91
91
|
), e;
|
|
92
92
|
}
|
|
93
|
-
let
|
|
94
|
-
function
|
|
95
|
-
|
|
93
|
+
let B;
|
|
94
|
+
function O(t) {
|
|
95
|
+
B = t;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
if (!
|
|
97
|
+
function ee() {
|
|
98
|
+
if (!B)
|
|
99
99
|
throw new Error("Function called outside component initialization");
|
|
100
|
-
return
|
|
100
|
+
return B;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
|
|
102
|
+
function Be(t) {
|
|
103
|
+
ee().$$.on_mount.push(t);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function He(t) {
|
|
106
|
+
ee().$$.on_destroy.push(t);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const t =
|
|
110
|
-
return (e, n, { cancelable:
|
|
108
|
+
function We() {
|
|
109
|
+
const t = ee();
|
|
110
|
+
return (e, n, { cancelable: r = !1 } = {}) => {
|
|
111
111
|
const l = t.$$.callbacks[e];
|
|
112
112
|
if (l) {
|
|
113
|
-
const
|
|
113
|
+
const i = Ze(
|
|
114
114
|
/** @type {string} */
|
|
115
115
|
e,
|
|
116
116
|
n,
|
|
117
|
-
{ cancelable:
|
|
117
|
+
{ cancelable: r }
|
|
118
118
|
);
|
|
119
|
-
return l.slice().forEach((
|
|
120
|
-
|
|
121
|
-
}), !
|
|
119
|
+
return l.slice().forEach((s) => {
|
|
120
|
+
s.call(t, i);
|
|
121
|
+
}), !i.defaultPrevented;
|
|
122
122
|
}
|
|
123
123
|
return !0;
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
let
|
|
128
|
-
const
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
126
|
+
const F = [], z = [];
|
|
127
|
+
let Y = [];
|
|
128
|
+
const oe = [], me = /* @__PURE__ */ Promise.resolve();
|
|
129
|
+
let J = !1;
|
|
130
|
+
function we() {
|
|
131
|
+
J || (J = !0, me.then(C));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
133
|
+
function Pe() {
|
|
134
|
+
return we(), me;
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
function Q(t) {
|
|
137
|
+
Y.push(t);
|
|
138
|
+
}
|
|
139
|
+
const K = /* @__PURE__ */ new Set();
|
|
140
|
+
let U = 0;
|
|
141
|
+
function C() {
|
|
142
|
+
if (U !== 0)
|
|
140
143
|
return;
|
|
141
|
-
const t =
|
|
144
|
+
const t = B;
|
|
142
145
|
do {
|
|
143
146
|
try {
|
|
144
|
-
for (;
|
|
145
|
-
const e =
|
|
146
|
-
|
|
147
|
+
for (; U < F.length; ) {
|
|
148
|
+
const e = F[U];
|
|
149
|
+
U++, O(e), Te(e.$$);
|
|
147
150
|
}
|
|
148
151
|
} catch (e) {
|
|
149
|
-
throw
|
|
152
|
+
throw F.length = 0, U = 0, e;
|
|
150
153
|
}
|
|
151
|
-
for (
|
|
152
|
-
|
|
153
|
-
for (let e = 0; e <
|
|
154
|
-
const n =
|
|
155
|
-
|
|
154
|
+
for (O(null), F.length = 0, U = 0; z.length; )
|
|
155
|
+
z.pop()();
|
|
156
|
+
for (let e = 0; e < Y.length; e += 1) {
|
|
157
|
+
const n = Y[e];
|
|
158
|
+
K.has(n) || (K.add(n), n());
|
|
156
159
|
}
|
|
157
|
-
|
|
158
|
-
} while (
|
|
159
|
-
for (;
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
Y.length = 0;
|
|
161
|
+
} while (F.length);
|
|
162
|
+
for (; oe.length; )
|
|
163
|
+
oe.pop()();
|
|
164
|
+
J = !1, K.clear(), O(t);
|
|
162
165
|
}
|
|
163
|
-
function
|
|
166
|
+
function Te(t) {
|
|
164
167
|
if (t.fragment !== null) {
|
|
165
|
-
t.update(),
|
|
168
|
+
t.update(), H(t.before_update);
|
|
166
169
|
const e = t.dirty;
|
|
167
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(
|
|
170
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Q);
|
|
168
171
|
}
|
|
169
172
|
}
|
|
170
|
-
function
|
|
173
|
+
function Xe(t) {
|
|
171
174
|
const e = [], n = [];
|
|
172
|
-
|
|
175
|
+
Y.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), Y = e;
|
|
173
176
|
}
|
|
174
|
-
const
|
|
175
|
-
function
|
|
176
|
-
t && t.i && (
|
|
177
|
+
const De = /* @__PURE__ */ new Set();
|
|
178
|
+
function Ke(t, e) {
|
|
179
|
+
t && t.i && (De.delete(t), t.i(e));
|
|
177
180
|
}
|
|
178
|
-
function
|
|
179
|
-
const { fragment:
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...
|
|
183
|
-
}), l.forEach(
|
|
181
|
+
function ze(t, e, n) {
|
|
182
|
+
const { fragment: r, after_update: l } = t.$$;
|
|
183
|
+
r && r.m(e, n), Q(() => {
|
|
184
|
+
const i = t.$$.on_mount.map(de).filter(ge);
|
|
185
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...i) : H(i), t.$$.on_mount = [];
|
|
186
|
+
}), l.forEach(Q);
|
|
184
187
|
}
|
|
185
|
-
function
|
|
188
|
+
function Je(t, e) {
|
|
186
189
|
const n = t.$$;
|
|
187
|
-
n.fragment !== null && (
|
|
190
|
+
n.fragment !== null && (Xe(n.after_update), H(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
188
191
|
}
|
|
189
|
-
function
|
|
190
|
-
t.$$.dirty[0] === -1 && (
|
|
192
|
+
function Qe(t, e) {
|
|
193
|
+
t.$$.dirty[0] === -1 && (F.push(t), we(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
191
194
|
}
|
|
192
|
-
function
|
|
193
|
-
const u =
|
|
194
|
-
|
|
195
|
+
function et(t, e, n, r, l, i, s = null, a = [-1]) {
|
|
196
|
+
const u = B;
|
|
197
|
+
O(t);
|
|
195
198
|
const f = t.$$ = {
|
|
196
199
|
fragment: null,
|
|
197
200
|
ctx: [],
|
|
198
201
|
// state
|
|
199
|
-
props:
|
|
200
|
-
update:
|
|
202
|
+
props: i,
|
|
203
|
+
update: Z,
|
|
201
204
|
not_equal: l,
|
|
202
|
-
bound:
|
|
205
|
+
bound: ie(),
|
|
203
206
|
// lifecycle
|
|
204
207
|
on_mount: [],
|
|
205
208
|
on_destroy: [],
|
|
@@ -208,93 +211,93 @@ function ze(t, e, n, i, l, r, c = null, a = [-1]) {
|
|
|
208
211
|
after_update: [],
|
|
209
212
|
context: new Map(e.context || (u ? u.$$.context : [])),
|
|
210
213
|
// everything else
|
|
211
|
-
callbacks:
|
|
214
|
+
callbacks: ie(),
|
|
212
215
|
dirty: a,
|
|
213
216
|
skip_bound: !1,
|
|
214
217
|
root: e.target || u.$$.root
|
|
215
218
|
};
|
|
216
|
-
|
|
217
|
-
let
|
|
218
|
-
if (f.ctx = n ? n(t, e.props || {}, (y,
|
|
219
|
-
const
|
|
220
|
-
return f.ctx && l(f.ctx[y], f.ctx[y] =
|
|
221
|
-
}) : [], f.update(),
|
|
219
|
+
s && s(f.root);
|
|
220
|
+
let N = !1;
|
|
221
|
+
if (f.ctx = n ? n(t, e.props || {}, (y, R, ...L) => {
|
|
222
|
+
const j = L.length ? L[0] : R;
|
|
223
|
+
return f.ctx && l(f.ctx[y], f.ctx[y] = j) && (!f.skip_bound && f.bound[y] && f.bound[y](j), N && Qe(t, y)), R;
|
|
224
|
+
}) : [], f.update(), N = !0, H(f.before_update), f.fragment = r ? r(f.ctx) : !1, e.target) {
|
|
222
225
|
if (e.hydrate) {
|
|
223
|
-
const y =
|
|
224
|
-
f.fragment && f.fragment.l(y), y.forEach(
|
|
226
|
+
const y = Ye(e.target);
|
|
227
|
+
f.fragment && f.fragment.l(y), y.forEach(I);
|
|
225
228
|
} else
|
|
226
229
|
f.fragment && f.fragment.c();
|
|
227
|
-
e.intro &&
|
|
230
|
+
e.intro && Ke(t.$$.fragment), ze(t, e.target, e.anchor), C();
|
|
228
231
|
}
|
|
229
|
-
|
|
232
|
+
O(u);
|
|
230
233
|
}
|
|
231
|
-
let
|
|
232
|
-
typeof HTMLElement == "function" && (
|
|
233
|
-
constructor(e, n,
|
|
234
|
+
let be;
|
|
235
|
+
typeof HTMLElement == "function" && (be = class extends HTMLElement {
|
|
236
|
+
constructor(e, n, r) {
|
|
234
237
|
super();
|
|
235
238
|
/** The Svelte component constructor */
|
|
236
|
-
|
|
239
|
+
x(this, "$$ctor");
|
|
237
240
|
/** Slots */
|
|
238
|
-
|
|
241
|
+
x(this, "$$s");
|
|
239
242
|
/** The Svelte component instance */
|
|
240
|
-
|
|
243
|
+
x(this, "$$c");
|
|
241
244
|
/** Whether or not the custom element is connected */
|
|
242
|
-
|
|
245
|
+
x(this, "$$cn", !1);
|
|
243
246
|
/** Component props data */
|
|
244
|
-
|
|
247
|
+
x(this, "$$d", {});
|
|
245
248
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
246
|
-
|
|
249
|
+
x(this, "$$r", !1);
|
|
247
250
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
248
|
-
|
|
251
|
+
x(this, "$$p_d", {});
|
|
249
252
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
250
|
-
|
|
253
|
+
x(this, "$$l", {});
|
|
251
254
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
252
|
-
|
|
253
|
-
this.$$ctor = e, this.$$s = n,
|
|
255
|
+
x(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
256
|
+
this.$$ctor = e, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
254
257
|
}
|
|
255
|
-
addEventListener(e, n,
|
|
258
|
+
addEventListener(e, n, r) {
|
|
256
259
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(n), this.$$c) {
|
|
257
260
|
const l = this.$$c.$on(e, n);
|
|
258
261
|
this.$$l_u.set(n, l);
|
|
259
262
|
}
|
|
260
|
-
super.addEventListener(e, n,
|
|
263
|
+
super.addEventListener(e, n, r);
|
|
261
264
|
}
|
|
262
|
-
removeEventListener(e, n,
|
|
263
|
-
if (super.removeEventListener(e, n,
|
|
265
|
+
removeEventListener(e, n, r) {
|
|
266
|
+
if (super.removeEventListener(e, n, r), this.$$c) {
|
|
264
267
|
const l = this.$$l_u.get(n);
|
|
265
268
|
l && (l(), this.$$l_u.delete(n));
|
|
266
269
|
}
|
|
267
270
|
}
|
|
268
271
|
async connectedCallback() {
|
|
269
272
|
if (this.$$cn = !0, !this.$$c) {
|
|
270
|
-
let e = function(
|
|
273
|
+
let e = function(i) {
|
|
271
274
|
return () => {
|
|
272
|
-
let
|
|
275
|
+
let s;
|
|
273
276
|
return {
|
|
274
277
|
c: function() {
|
|
275
|
-
|
|
278
|
+
s = v("slot"), i !== "default" && c(s, "name", i);
|
|
276
279
|
},
|
|
277
280
|
/**
|
|
278
281
|
* @param {HTMLElement} target
|
|
279
282
|
* @param {HTMLElement} [anchor]
|
|
280
283
|
*/
|
|
281
|
-
m: function(f,
|
|
282
|
-
|
|
284
|
+
m: function(f, N) {
|
|
285
|
+
q(f, s, N);
|
|
283
286
|
},
|
|
284
287
|
d: function(f) {
|
|
285
|
-
f &&
|
|
288
|
+
f && I(s);
|
|
286
289
|
}
|
|
287
290
|
};
|
|
288
291
|
};
|
|
289
292
|
};
|
|
290
293
|
if (await Promise.resolve(), !this.$$cn)
|
|
291
294
|
return;
|
|
292
|
-
const n = {},
|
|
293
|
-
for (const
|
|
294
|
-
|
|
295
|
-
for (const
|
|
296
|
-
const
|
|
297
|
-
|
|
295
|
+
const n = {}, r = Oe(this);
|
|
296
|
+
for (const i of this.$$s)
|
|
297
|
+
i in r && (n[i] = [e(i)]);
|
|
298
|
+
for (const i of this.attributes) {
|
|
299
|
+
const s = this.$$g_p(i.name);
|
|
300
|
+
s in this.$$d || (this.$$d[s] = P(s, i.value, this.$$p_d, "toProp"));
|
|
298
301
|
}
|
|
299
302
|
this.$$c = new this.$$ctor({
|
|
300
303
|
target: this.shadowRoot || this,
|
|
@@ -308,32 +311,32 @@ typeof HTMLElement == "function" && (me = class extends HTMLElement {
|
|
|
308
311
|
});
|
|
309
312
|
const l = () => {
|
|
310
313
|
this.$$r = !0;
|
|
311
|
-
for (const
|
|
312
|
-
if (this.$$d[
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
this.$$d[
|
|
314
|
+
for (const i in this.$$p_d)
|
|
315
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
316
|
+
const s = P(
|
|
317
|
+
i,
|
|
318
|
+
this.$$d[i],
|
|
316
319
|
this.$$p_d,
|
|
317
320
|
"toAttribute"
|
|
318
321
|
);
|
|
319
|
-
|
|
322
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
320
323
|
}
|
|
321
324
|
this.$$r = !1;
|
|
322
325
|
};
|
|
323
326
|
this.$$c.$$.after_update.push(l), l();
|
|
324
|
-
for (const
|
|
325
|
-
for (const
|
|
326
|
-
const a = this.$$c.$on(
|
|
327
|
-
this.$$l_u.set(
|
|
327
|
+
for (const i in this.$$l)
|
|
328
|
+
for (const s of this.$$l[i]) {
|
|
329
|
+
const a = this.$$c.$on(i, s);
|
|
330
|
+
this.$$l_u.set(s, a);
|
|
328
331
|
}
|
|
329
332
|
this.$$l = {};
|
|
330
333
|
}
|
|
331
334
|
}
|
|
332
335
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
333
336
|
// and setting attributes through setAttribute etc, this is helpful
|
|
334
|
-
attributeChangedCallback(e, n,
|
|
337
|
+
attributeChangedCallback(e, n, r) {
|
|
335
338
|
var l;
|
|
336
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
339
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = P(e, r, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [e]: this.$$d[e] }));
|
|
337
340
|
}
|
|
338
341
|
disconnectedCallback() {
|
|
339
342
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -346,12 +349,12 @@ typeof HTMLElement == "function" && (me = class extends HTMLElement {
|
|
|
346
349
|
) || e;
|
|
347
350
|
}
|
|
348
351
|
});
|
|
349
|
-
function
|
|
350
|
-
var
|
|
351
|
-
const l = (
|
|
352
|
-
if (e = l === "Boolean" && typeof e != "boolean" ? e != null : e, !
|
|
352
|
+
function P(t, e, n, r) {
|
|
353
|
+
var i;
|
|
354
|
+
const l = (i = n[t]) == null ? void 0 : i.type;
|
|
355
|
+
if (e = l === "Boolean" && typeof e != "boolean" ? e != null : e, !r || !n[t])
|
|
353
356
|
return e;
|
|
354
|
-
if (
|
|
357
|
+
if (r === "toAttribute")
|
|
355
358
|
switch (l) {
|
|
356
359
|
case "Object":
|
|
357
360
|
case "Array":
|
|
@@ -376,8 +379,8 @@ function K(t, e, n, i) {
|
|
|
376
379
|
return e;
|
|
377
380
|
}
|
|
378
381
|
}
|
|
379
|
-
function
|
|
380
|
-
let
|
|
382
|
+
function tt(t, e, n, r, l, i) {
|
|
383
|
+
let s = class extends be {
|
|
381
384
|
constructor() {
|
|
382
385
|
super(t, n, l), this.$$p_d = e;
|
|
383
386
|
}
|
|
@@ -388,26 +391,26 @@ function Je(t, e, n, i, l, r) {
|
|
|
388
391
|
}
|
|
389
392
|
};
|
|
390
393
|
return Object.keys(e).forEach((a) => {
|
|
391
|
-
Object.defineProperty(
|
|
394
|
+
Object.defineProperty(s.prototype, a, {
|
|
392
395
|
get() {
|
|
393
396
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
394
397
|
},
|
|
395
398
|
set(u) {
|
|
396
399
|
var f;
|
|
397
|
-
u =
|
|
400
|
+
u = P(a, u, e), this.$$d[a] = u, (f = this.$$c) == null || f.$set({ [a]: u });
|
|
398
401
|
}
|
|
399
402
|
});
|
|
400
|
-
}),
|
|
401
|
-
Object.defineProperty(
|
|
403
|
+
}), r.forEach((a) => {
|
|
404
|
+
Object.defineProperty(s.prototype, a, {
|
|
402
405
|
get() {
|
|
403
406
|
var u;
|
|
404
407
|
return (u = this.$$c) == null ? void 0 : u[a];
|
|
405
408
|
}
|
|
406
409
|
});
|
|
407
|
-
}),
|
|
408
|
-
|
|
410
|
+
}), i && (s = i(s)), t.element = /** @type {any} */
|
|
411
|
+
s, s;
|
|
409
412
|
}
|
|
410
|
-
class
|
|
413
|
+
class nt {
|
|
411
414
|
constructor() {
|
|
412
415
|
/**
|
|
413
416
|
* ### PRIVATE API
|
|
@@ -416,7 +419,7 @@ class Qe {
|
|
|
416
419
|
*
|
|
417
420
|
* @type {any}
|
|
418
421
|
*/
|
|
419
|
-
|
|
422
|
+
x(this, "$$");
|
|
420
423
|
/**
|
|
421
424
|
* ### PRIVATE API
|
|
422
425
|
*
|
|
@@ -424,11 +427,11 @@ class Qe {
|
|
|
424
427
|
*
|
|
425
428
|
* @type {any}
|
|
426
429
|
*/
|
|
427
|
-
|
|
430
|
+
x(this, "$$set");
|
|
428
431
|
}
|
|
429
432
|
/** @returns {void} */
|
|
430
433
|
$destroy() {
|
|
431
|
-
|
|
434
|
+
Je(this, 1), this.$destroy = Z;
|
|
432
435
|
}
|
|
433
436
|
/**
|
|
434
437
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -438,11 +441,11 @@ class Qe {
|
|
|
438
441
|
*/
|
|
439
442
|
$on(e, n) {
|
|
440
443
|
if (!ge(n))
|
|
441
|
-
return
|
|
442
|
-
const
|
|
443
|
-
return
|
|
444
|
-
const l =
|
|
445
|
-
l !== -1 &&
|
|
444
|
+
return Z;
|
|
445
|
+
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
446
|
+
return r.push(n), () => {
|
|
447
|
+
const l = r.indexOf(n);
|
|
448
|
+
l !== -1 && r.splice(l, 1);
|
|
446
449
|
};
|
|
447
450
|
}
|
|
448
451
|
/**
|
|
@@ -450,30 +453,30 @@ class Qe {
|
|
|
450
453
|
* @returns {void}
|
|
451
454
|
*/
|
|
452
455
|
$set(e) {
|
|
453
|
-
this.$$set && !
|
|
456
|
+
this.$$set && !Se(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
454
457
|
}
|
|
455
458
|
}
|
|
456
|
-
const
|
|
457
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
458
|
-
const
|
|
459
|
-
function
|
|
459
|
+
const rt = "4";
|
|
460
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rt);
|
|
461
|
+
const _e = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IHI9bmV3IFRleHRFbmNvZGVyO2Z1bmN0aW9uIGMoZSl7cmV0dXJuWy4uLm5ldyBVaW50OEFycmF5KGUpXS5tYXAobj0+bi50b1N0cmluZygxNikucGFkU3RhcnQoMiwiMCIpKS5qb2luKCIiKX1hc3luYyBmdW5jdGlvbiBsKGUsbixhKXtyZXR1cm4gYyhhd2FpdCBjcnlwdG8uc3VidGxlLmRpZ2VzdChhLnRvVXBwZXJDYXNlKCksci5lbmNvZGUoZStuKSkpfWFzeW5jIGZ1bmN0aW9uIGkoZSxuLGE9IlNIQS0yNTYiLG89MWU3KXtjb25zdCBzPURhdGUubm93KCk7Zm9yKGxldCB0PTA7dDw9bzt0KyspaWYoYXdhaXQgbChuLHQsYSk9PT1lKXJldHVybntudW1iZXI6dCx0b29rOkRhdGUubm93KCktc307cmV0dXJuIG51bGx9b25tZXNzYWdlPWFzeW5jIGU9Pntjb25zdHthbGc6bixjaGFsbGVuZ2U6YSxtYXg6byxzYWx0OnN9PWUuZGF0YXx8e307aWYoYSYmcyl7Y29uc3QgdD1hd2FpdCBpKGEscyxuLG8pO3NlbGYucG9zdE1lc3NhZ2UodCYmey4uLnQsd29ya2VyOiEwfSl9ZWxzZSBzZWxmLnBvc3RNZXNzYWdlKG51bGwpfX0pKCk7Cg==", se = typeof window < "u" && window.Blob && new Blob([atob(_e)], { type: "text/javascript;charset=utf-8" });
|
|
462
|
+
function it() {
|
|
460
463
|
let t;
|
|
461
464
|
try {
|
|
462
|
-
if (t =
|
|
465
|
+
if (t = se && (window.URL || window.webkitURL).createObjectURL(se), !t)
|
|
463
466
|
throw "";
|
|
464
467
|
return new Worker(t);
|
|
465
468
|
} catch {
|
|
466
|
-
return new Worker("data:application/javascript;base64," +
|
|
469
|
+
return new Worker("data:application/javascript;base64," + _e);
|
|
467
470
|
} finally {
|
|
468
471
|
t && (window.URL || window.webkitURL).revokeObjectURL(t);
|
|
469
472
|
}
|
|
470
473
|
}
|
|
471
|
-
const
|
|
472
|
-
function
|
|
474
|
+
const lt = 1e7, ot = new TextEncoder();
|
|
475
|
+
function st(t) {
|
|
473
476
|
return [...new Uint8Array(t)].map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
474
477
|
}
|
|
475
|
-
async function
|
|
476
|
-
const n = Date.now().toString(16),
|
|
478
|
+
async function ct(t = 1e5, e = "SHA-256") {
|
|
479
|
+
const n = Date.now().toString(16), r = Math.round(Math.random() * t), l = await $e(n, r, e);
|
|
477
480
|
return {
|
|
478
481
|
algorithm: e,
|
|
479
482
|
challenge: l,
|
|
@@ -481,450 +484,471 @@ async function lt(t = 1e5, e = "SHA-256") {
|
|
|
481
484
|
signature: ""
|
|
482
485
|
};
|
|
483
486
|
}
|
|
484
|
-
async function
|
|
485
|
-
return
|
|
487
|
+
async function $e(t, e, n) {
|
|
488
|
+
return st(await crypto.subtle.digest(n.toUpperCase(), ot.encode(t + e)));
|
|
486
489
|
}
|
|
487
|
-
async function
|
|
490
|
+
async function at(t, e, n = "SHA-256", r = lt) {
|
|
488
491
|
const l = Date.now();
|
|
489
|
-
for (let
|
|
490
|
-
if (await
|
|
492
|
+
for (let i = 0; i <= r; i++)
|
|
493
|
+
if (await $e(e, i, n) === t)
|
|
491
494
|
return {
|
|
492
|
-
number:
|
|
495
|
+
number: i,
|
|
493
496
|
took: Date.now() - l
|
|
494
497
|
};
|
|
495
498
|
return null;
|
|
496
499
|
}
|
|
497
500
|
var p = /* @__PURE__ */ ((t) => (t.ERROR = "error", t.VERIFIED = "verified", t.VERIFYING = "verifying", t.UNVERIFIED = "unverified", t))(p || {});
|
|
498
|
-
function
|
|
499
|
-
|
|
501
|
+
function ft(t) {
|
|
502
|
+
Ve(t, "svelte-fqcw55", ".altcha.svelte-fqcw55.svelte-fqcw55{background:var(--altcha-color-base, transparent);border:1px solid var(--altcha-color-border, #a0a0a0);border-radius:3px;color:var(--altcha-color-text, currentColor);display:flex;flex-direction:column;max-width:260px;overflow:hidden;position:relative;text-align:left}.altcha.svelte-fqcw55.svelte-fqcw55:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha-main.svelte-fqcw55.svelte-fqcw55{align-items:center;display:flex;gap:0.4rem;padding:0.7rem}.altcha-label.svelte-fqcw55.svelte-fqcw55{flex-grow:1}.altcha-label.svelte-fqcw55 label.svelte-fqcw55{cursor:pointer}.altcha-logo.svelte-fqcw55.svelte-fqcw55{color:currentColor;opacity:0.3}.altcha-logo.svelte-fqcw55.svelte-fqcw55:hover{opacity:1}.altcha-error.svelte-fqcw55.svelte-fqcw55{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-fqcw55.svelte-fqcw55{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-fqcw55.svelte-fqcw55:hover{opacity:1}.altcha-footer.svelte-fqcw55>.svelte-fqcw55:first-child{flex-grow:1}.altcha-footer.svelte-fqcw55 a{color:currentColor}.altcha-checkbox.svelte-fqcw55.svelte-fqcw55{display:flex;align-items:center;height:24px;width:24px}.altcha-checkbox.svelte-fqcw55 input.svelte-fqcw55{width:18px;height:18px;margin:0}.altcha-hidden.svelte-fqcw55.svelte-fqcw55{display:none}.altcha-spinner.svelte-fqcw55.svelte-fqcw55{animation:svelte-fqcw55-altcha-spinner 0.75s infinite linear;transform-origin:center}@keyframes svelte-fqcw55-altcha-spinner{100%{transform:rotate(360deg)}}");
|
|
500
503
|
}
|
|
501
|
-
function
|
|
502
|
-
let e, n,
|
|
504
|
+
function ce(t) {
|
|
505
|
+
let e, n, r;
|
|
503
506
|
return {
|
|
504
507
|
c() {
|
|
505
|
-
e =
|
|
508
|
+
e = G("svg"), n = G("path"), r = G("path"), c(n, "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"), c(n, "fill", "currentColor"), c(n, "opacity", ".25"), c(r, "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"), c(r, "fill", "currentColor"), c(r, "class", "altcha-spinner svelte-fqcw55"), c(e, "width", "24"), c(e, "height", "24"), c(e, "viewBox", "0 0 24 24"), c(e, "xmlns", "http://www.w3.org/2000/svg");
|
|
506
509
|
},
|
|
507
|
-
m(l,
|
|
508
|
-
|
|
510
|
+
m(l, i) {
|
|
511
|
+
q(l, e, i), m(e, n), m(e, r);
|
|
509
512
|
},
|
|
510
513
|
d(l) {
|
|
511
|
-
l &&
|
|
514
|
+
l && I(e);
|
|
512
515
|
}
|
|
513
516
|
};
|
|
514
517
|
}
|
|
515
|
-
function
|
|
518
|
+
function ut(t) {
|
|
516
519
|
let e, n = (
|
|
517
520
|
/*_strings*/
|
|
518
|
-
t[
|
|
519
|
-
),
|
|
521
|
+
t[9].label + ""
|
|
522
|
+
), r;
|
|
520
523
|
return {
|
|
521
524
|
c() {
|
|
522
|
-
e = v("label"),
|
|
523
|
-
t[
|
|
525
|
+
e = v("label"), c(e, "for", r = /*name*/
|
|
526
|
+
t[3] + "_checkbox"), c(e, "class", "svelte-fqcw55");
|
|
524
527
|
},
|
|
525
|
-
m(l,
|
|
526
|
-
|
|
528
|
+
m(l, i) {
|
|
529
|
+
q(l, e, i), e.innerHTML = n;
|
|
527
530
|
},
|
|
528
|
-
p(l,
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
l[
|
|
532
|
-
|
|
533
|
-
l[
|
|
531
|
+
p(l, i) {
|
|
532
|
+
i[0] & /*_strings*/
|
|
533
|
+
512 && n !== (n = /*_strings*/
|
|
534
|
+
l[9].label + "") && (e.innerHTML = n), i[0] & /*name*/
|
|
535
|
+
8 && r !== (r = /*name*/
|
|
536
|
+
l[3] + "_checkbox") && c(e, "for", r);
|
|
534
537
|
},
|
|
535
538
|
d(l) {
|
|
536
|
-
l &&
|
|
539
|
+
l && I(e);
|
|
537
540
|
}
|
|
538
541
|
};
|
|
539
542
|
}
|
|
540
|
-
function
|
|
543
|
+
function ht(t) {
|
|
541
544
|
let e, n = (
|
|
542
545
|
/*_strings*/
|
|
543
|
-
t[
|
|
546
|
+
t[9].verifying + ""
|
|
544
547
|
);
|
|
545
548
|
return {
|
|
546
549
|
c() {
|
|
547
550
|
e = v("span");
|
|
548
551
|
},
|
|
549
|
-
m(
|
|
550
|
-
|
|
552
|
+
m(r, l) {
|
|
553
|
+
q(r, e, l), e.innerHTML = n;
|
|
551
554
|
},
|
|
552
|
-
p(
|
|
555
|
+
p(r, l) {
|
|
553
556
|
l[0] & /*_strings*/
|
|
554
|
-
|
|
555
|
-
|
|
557
|
+
512 && n !== (n = /*_strings*/
|
|
558
|
+
r[9].verifying + "") && (e.innerHTML = n);
|
|
556
559
|
},
|
|
557
|
-
d(
|
|
558
|
-
|
|
560
|
+
d(r) {
|
|
561
|
+
r && I(e);
|
|
559
562
|
}
|
|
560
563
|
};
|
|
561
564
|
}
|
|
562
|
-
function
|
|
565
|
+
function dt(t) {
|
|
563
566
|
let e, n = (
|
|
564
567
|
/*_strings*/
|
|
565
|
-
t[
|
|
566
|
-
),
|
|
568
|
+
t[9].verified + ""
|
|
569
|
+
), r, l;
|
|
567
570
|
return {
|
|
568
571
|
c() {
|
|
569
|
-
e = v("span"),
|
|
572
|
+
e = v("span"), r = M(), l = v("input"), c(l, "type", "hidden"), c(
|
|
570
573
|
l,
|
|
571
574
|
"name",
|
|
572
575
|
/*name*/
|
|
573
|
-
t[
|
|
576
|
+
t[3]
|
|
574
577
|
), l.value = /*payload*/
|
|
575
|
-
t[
|
|
578
|
+
t[4];
|
|
576
579
|
},
|
|
577
|
-
m(
|
|
578
|
-
|
|
580
|
+
m(i, s) {
|
|
581
|
+
q(i, e, s), e.innerHTML = n, q(i, r, s), q(i, l, s);
|
|
579
582
|
},
|
|
580
|
-
p(
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
583
|
+
p(i, s) {
|
|
584
|
+
s[0] & /*_strings*/
|
|
585
|
+
512 && n !== (n = /*_strings*/
|
|
586
|
+
i[9].verified + "") && (e.innerHTML = n), s[0] & /*name*/
|
|
587
|
+
8 && c(
|
|
585
588
|
l,
|
|
586
589
|
"name",
|
|
587
590
|
/*name*/
|
|
588
|
-
|
|
589
|
-
),
|
|
590
|
-
|
|
591
|
-
|
|
591
|
+
i[3]
|
|
592
|
+
), s[0] & /*payload*/
|
|
593
|
+
16 && (l.value = /*payload*/
|
|
594
|
+
i[4]);
|
|
592
595
|
},
|
|
593
|
-
d(
|
|
594
|
-
|
|
596
|
+
d(i) {
|
|
597
|
+
i && (I(e), I(r), I(l));
|
|
598
|
+
}
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
function ae(t) {
|
|
602
|
+
let e, n, r, l, i, s;
|
|
603
|
+
return {
|
|
604
|
+
c() {
|
|
605
|
+
e = v("div"), n = v("a"), r = G("svg"), l = G("path"), i = G("path"), s = G("path"), c(l, "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"), c(l, "fill", "currentColor"), c(i, "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"), c(i, "fill", "currentColor"), c(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"), c(s, "fill", "currentColor"), c(r, "width", "22"), c(r, "height", "22"), c(r, "viewBox", "0 0 20 20"), c(r, "fill", "none"), c(r, "xmlns", "http://www.w3.org/2000/svg"), c(n, "href", ve), c(n, "target", "_blank"), c(n, "class", "altcha-logo svelte-fqcw55");
|
|
606
|
+
},
|
|
607
|
+
m(a, u) {
|
|
608
|
+
q(a, e, u), m(e, n), m(n, r), m(r, l), m(r, i), m(r, s);
|
|
609
|
+
},
|
|
610
|
+
p: Z,
|
|
611
|
+
d(a) {
|
|
612
|
+
a && I(e);
|
|
595
613
|
}
|
|
596
614
|
};
|
|
597
615
|
}
|
|
598
616
|
function fe(t) {
|
|
599
|
-
let e, n,
|
|
617
|
+
let e, n, r, l, i, s = (
|
|
600
618
|
/*_strings*/
|
|
601
|
-
t[
|
|
619
|
+
t[9].error + ""
|
|
602
620
|
);
|
|
603
621
|
return {
|
|
604
622
|
c() {
|
|
605
|
-
e = v("div"), n =
|
|
606
|
-
|
|
623
|
+
e = v("div"), n = G("svg"), r = G("path"), l = M(), i = v("div"), c(r, "stroke-linecap", "round"), c(r, "stroke-linejoin", "round"), c(r, "d", "M6 18L18 6M6 6l12 12"), c(n, "width", "14"), c(n, "height", "14"), c(n, "xmlns", "http://www.w3.org/2000/svg"), c(n, "fill", "none"), c(n, "viewBox", "0 0 24 24"), c(n, "stroke-width", "1.5"), c(n, "stroke", "currentColor"), c(
|
|
624
|
+
i,
|
|
607
625
|
"title",
|
|
608
626
|
/*error*/
|
|
609
|
-
t[
|
|
610
|
-
),
|
|
627
|
+
t[8]
|
|
628
|
+
), c(e, "class", "altcha-error svelte-fqcw55");
|
|
611
629
|
},
|
|
612
630
|
m(a, u) {
|
|
613
|
-
|
|
631
|
+
q(a, e, u), m(e, n), m(n, r), m(e, l), m(e, i), i.innerHTML = s;
|
|
614
632
|
},
|
|
615
633
|
p(a, u) {
|
|
616
634
|
u[0] & /*_strings*/
|
|
617
|
-
|
|
618
|
-
a[
|
|
619
|
-
|
|
620
|
-
|
|
635
|
+
512 && s !== (s = /*_strings*/
|
|
636
|
+
a[9].error + "") && (i.innerHTML = s), u[0] & /*error*/
|
|
637
|
+
256 && c(
|
|
638
|
+
i,
|
|
621
639
|
"title",
|
|
622
640
|
/*error*/
|
|
623
|
-
a[
|
|
641
|
+
a[8]
|
|
624
642
|
);
|
|
625
643
|
},
|
|
626
644
|
d(a) {
|
|
627
|
-
a &&
|
|
645
|
+
a && I(e);
|
|
628
646
|
}
|
|
629
647
|
};
|
|
630
648
|
}
|
|
631
649
|
function ue(t) {
|
|
632
|
-
let e, n,
|
|
650
|
+
let e, n, r = (
|
|
633
651
|
/*_strings*/
|
|
634
|
-
t[
|
|
652
|
+
t[9].footer + ""
|
|
635
653
|
);
|
|
636
654
|
return {
|
|
637
655
|
c() {
|
|
638
|
-
e = v("div"), n = v("div"),
|
|
656
|
+
e = v("div"), n = v("div"), c(n, "class", "svelte-fqcw55"), c(e, "class", "altcha-footer svelte-fqcw55");
|
|
639
657
|
},
|
|
640
|
-
m(l,
|
|
641
|
-
|
|
658
|
+
m(l, i) {
|
|
659
|
+
q(l, e, i), m(e, n), n.innerHTML = r;
|
|
642
660
|
},
|
|
643
|
-
p(l,
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
l[
|
|
661
|
+
p(l, i) {
|
|
662
|
+
i[0] & /*_strings*/
|
|
663
|
+
512 && r !== (r = /*_strings*/
|
|
664
|
+
l[9].footer + "") && (n.innerHTML = r);
|
|
647
665
|
},
|
|
648
666
|
d(l) {
|
|
649
|
-
l &&
|
|
667
|
+
l && I(e);
|
|
650
668
|
}
|
|
651
669
|
};
|
|
652
670
|
}
|
|
653
|
-
function
|
|
654
|
-
let e, n,
|
|
671
|
+
function gt(t) {
|
|
672
|
+
let e, n, r, l, i, s, a, u, f, N, y, R, L, j, _ = (
|
|
655
673
|
/*state*/
|
|
656
|
-
t[
|
|
674
|
+
t[5] === p.VERIFYING && ce()
|
|
657
675
|
);
|
|
658
|
-
function
|
|
676
|
+
function A(h, b) {
|
|
659
677
|
return (
|
|
660
678
|
/*state*/
|
|
661
|
-
h[
|
|
679
|
+
h[5] === p.VERIFIED ? dt : (
|
|
662
680
|
/*state*/
|
|
663
|
-
h[
|
|
681
|
+
h[5] === p.VERIFYING ? ht : ut
|
|
664
682
|
)
|
|
665
683
|
);
|
|
666
684
|
}
|
|
667
|
-
let
|
|
685
|
+
let V = A(t), k = V(t), g = (
|
|
686
|
+
/*hidelogo*/
|
|
687
|
+
t[2] !== !0 && ae()
|
|
688
|
+
), w = (
|
|
668
689
|
/*error*/
|
|
669
|
-
t[
|
|
670
|
-
),
|
|
690
|
+
t[8] && fe(t)
|
|
691
|
+
), d = (
|
|
671
692
|
/*_strings*/
|
|
672
|
-
t[
|
|
693
|
+
t[9].footer && /*hidefooter*/
|
|
673
694
|
t[1] !== !0 && ue(t)
|
|
674
695
|
);
|
|
675
696
|
return {
|
|
676
697
|
c() {
|
|
677
|
-
e = v("div"), n = v("div"),
|
|
678
|
-
t[
|
|
679
|
-
t[0] !== "onsubmit",
|
|
698
|
+
e = v("div"), n = v("div"), _ && _.c(), r = M(), l = v("div"), i = v("input"), u = M(), f = v("div"), k.c(), N = M(), g && g.c(), y = M(), w && w.c(), R = M(), d && d.c(), c(i, "type", "checkbox"), c(i, "id", s = /*name*/
|
|
699
|
+
t[3] + "_checkbox"), i.required = a = /*auto*/
|
|
700
|
+
t[0] !== "onsubmit", c(i, "class", "svelte-fqcw55"), c(l, "class", "altcha-checkbox svelte-fqcw55"), le(
|
|
680
701
|
l,
|
|
681
702
|
"altcha-hidden",
|
|
682
703
|
/*state*/
|
|
683
|
-
t[
|
|
684
|
-
),
|
|
704
|
+
t[5] === p.VERIFYING
|
|
705
|
+
), c(f, "class", "altcha-label svelte-fqcw55"), c(n, "class", "altcha-main svelte-fqcw55"), c(e, "class", "altcha svelte-fqcw55"), c(
|
|
685
706
|
e,
|
|
686
707
|
"data-state",
|
|
687
708
|
/*state*/
|
|
688
|
-
t[
|
|
709
|
+
t[5]
|
|
689
710
|
);
|
|
690
711
|
},
|
|
691
|
-
m(h,
|
|
692
|
-
|
|
693
|
-
t[
|
|
694
|
-
|
|
695
|
-
|
|
712
|
+
m(h, b) {
|
|
713
|
+
q(h, e, b), m(e, n), _ && _.m(n, null), m(n, r), m(n, l), m(l, i), i.checked = /*checked*/
|
|
714
|
+
t[6], m(n, u), m(n, f), k.m(f, null), m(n, N), g && g.m(n, null), m(e, y), w && w.m(e, null), m(e, R), d && d.m(e, null), t[23](e), L || (j = [
|
|
715
|
+
D(
|
|
716
|
+
i,
|
|
696
717
|
"change",
|
|
697
718
|
/*input_change_handler*/
|
|
698
|
-
t[
|
|
719
|
+
t[22]
|
|
699
720
|
),
|
|
700
|
-
|
|
701
|
-
|
|
721
|
+
D(
|
|
722
|
+
i,
|
|
702
723
|
"change",
|
|
703
724
|
/*onCheckedChange*/
|
|
704
|
-
t[
|
|
725
|
+
t[10]
|
|
705
726
|
),
|
|
706
|
-
|
|
707
|
-
|
|
727
|
+
D(
|
|
728
|
+
i,
|
|
708
729
|
"invalid",
|
|
709
730
|
/*onInvalid*/
|
|
710
|
-
t[
|
|
731
|
+
t[11]
|
|
711
732
|
)
|
|
712
|
-
],
|
|
733
|
+
], L = !0);
|
|
713
734
|
},
|
|
714
|
-
p(h,
|
|
735
|
+
p(h, b) {
|
|
715
736
|
/*state*/
|
|
716
|
-
h[
|
|
717
|
-
|
|
718
|
-
h[
|
|
737
|
+
h[5] === p.VERIFYING ? _ || (_ = ce(), _.c(), _.m(n, r)) : _ && (_.d(1), _ = null), b[0] & /*name*/
|
|
738
|
+
8 && s !== (s = /*name*/
|
|
739
|
+
h[3] + "_checkbox") && c(i, "id", s), b[0] & /*auto*/
|
|
719
740
|
1 && a !== (a = /*auto*/
|
|
720
|
-
h[0] !== "onsubmit") && (
|
|
721
|
-
|
|
722
|
-
h[
|
|
723
|
-
|
|
741
|
+
h[0] !== "onsubmit") && (i.required = a), b[0] & /*checked*/
|
|
742
|
+
64 && (i.checked = /*checked*/
|
|
743
|
+
h[6]), b[0] & /*state*/
|
|
744
|
+
32 && le(
|
|
724
745
|
l,
|
|
725
746
|
"altcha-hidden",
|
|
726
747
|
/*state*/
|
|
727
|
-
h[
|
|
728
|
-
),
|
|
729
|
-
h[
|
|
730
|
-
h[8].
|
|
731
|
-
h[
|
|
732
|
-
|
|
748
|
+
h[5] === p.VERIFYING
|
|
749
|
+
), V === (V = A(h)) && k ? k.p(h, b) : (k.d(1), k = V(h), k && (k.c(), k.m(f, null))), /*hidelogo*/
|
|
750
|
+
h[2] !== !0 ? g ? g.p(h, b) : (g = ae(), g.c(), g.m(n, null)) : g && (g.d(1), g = null), /*error*/
|
|
751
|
+
h[8] ? w ? w.p(h, b) : (w = fe(h), w.c(), w.m(e, R)) : w && (w.d(1), w = null), /*_strings*/
|
|
752
|
+
h[9].footer && /*hidefooter*/
|
|
753
|
+
h[1] !== !0 ? d ? d.p(h, b) : (d = ue(h), d.c(), d.m(e, null)) : d && (d.d(1), d = null), b[0] & /*state*/
|
|
754
|
+
32 && c(
|
|
733
755
|
e,
|
|
734
756
|
"data-state",
|
|
735
757
|
/*state*/
|
|
736
|
-
h[
|
|
758
|
+
h[5]
|
|
737
759
|
);
|
|
738
760
|
},
|
|
739
|
-
i:
|
|
740
|
-
o:
|
|
761
|
+
i: Z,
|
|
762
|
+
o: Z,
|
|
741
763
|
d(h) {
|
|
742
|
-
h &&
|
|
764
|
+
h && I(e), _ && _.d(), k.d(), g && g.d(), w && w.d(), d && d.d(), t[23](null), L = !1, H(j);
|
|
743
765
|
}
|
|
744
766
|
};
|
|
745
767
|
}
|
|
746
|
-
const
|
|
768
|
+
const ve = "https://altcha.org/";
|
|
747
769
|
function he(t) {
|
|
748
770
|
return JSON.parse(t);
|
|
749
771
|
}
|
|
750
|
-
function
|
|
751
|
-
let
|
|
752
|
-
const
|
|
753
|
-
let
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
}),
|
|
757
|
-
|
|
772
|
+
function mt(t, e, n) {
|
|
773
|
+
let r, l, i, { auto: s = void 0 } = e, { challengeurl: a = void 0 } = e, { challengejson: u = void 0 } = e, { debug: f = !1 } = e, { hidefooter: N = !1 } = e, { hidelogo: y = !1 } = e, { name: R = "altcha" } = e, { maxnumber: L = void 0 } = e, { mockerror: j = !1 } = e, { strings: _ = void 0 } = e, { test: A = !1 } = e;
|
|
774
|
+
const V = We(), k = ["SHA-256", "SHA-384", "SHA-512"];
|
|
775
|
+
let g = !1, w, d = null, h = null, b = null, S = p.UNVERIFIED;
|
|
776
|
+
He(() => {
|
|
777
|
+
d && (d.removeEventListener("submit", te), d.removeEventListener("reset", ne), d = null);
|
|
778
|
+
}), Be(() => {
|
|
779
|
+
E("mounted", "0.1.6"), A && E("using test mode"), s !== void 0 && E("auto", s), d = w.closest("form"), d && (d.addEventListener("submit", te), d.addEventListener("reset", ne)), s === "onload" && W();
|
|
758
780
|
});
|
|
759
|
-
function
|
|
760
|
-
(f || o.some((
|
|
761
|
-
}
|
|
762
|
-
function
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
}))
|
|
766
|
-
X();
|
|
767
|
-
});
|
|
781
|
+
function E(...o) {
|
|
782
|
+
(f || o.some(($) => $ instanceof Error)) && console[o[0] instanceof Error ? "error" : "log"]("ALTCHA", ...o);
|
|
783
|
+
}
|
|
784
|
+
function te(o) {
|
|
785
|
+
d && s === "onsubmit" && S === p.UNVERIFIED && (o.preventDefault(), o.stopPropagation(), W().then(() => {
|
|
786
|
+
d == null || d.requestSubmit();
|
|
787
|
+
}));
|
|
768
788
|
}
|
|
769
|
-
function
|
|
770
|
-
|
|
789
|
+
function ne() {
|
|
790
|
+
T();
|
|
771
791
|
}
|
|
772
|
-
function
|
|
792
|
+
function pe(o, $) {
|
|
773
793
|
return btoa(JSON.stringify({
|
|
774
794
|
algorithm: o.algorithm,
|
|
775
795
|
challenge: o.challenge,
|
|
776
|
-
number:
|
|
796
|
+
number: $.number,
|
|
777
797
|
salt: o.salt,
|
|
778
798
|
signature: o.signature,
|
|
779
799
|
test: A ? !0 : void 0,
|
|
780
|
-
took:
|
|
800
|
+
took: $.took
|
|
781
801
|
}));
|
|
782
802
|
}
|
|
783
|
-
function
|
|
803
|
+
function ye(o) {
|
|
784
804
|
if (!o.algorithm)
|
|
785
805
|
throw new Error("Invalid challenge. Property algorithm is missing.");
|
|
786
806
|
if (o.signature === void 0)
|
|
787
807
|
throw new Error("Invalid challenge. Property signature is missing.");
|
|
788
|
-
if (!
|
|
789
|
-
throw new Error(`Unknown algorithm value. Allowed values: ${
|
|
808
|
+
if (!k.includes(o.algorithm.toUpperCase()))
|
|
809
|
+
throw new Error(`Unknown algorithm value. Allowed values: ${k.join(", ")}`);
|
|
790
810
|
if (!o.challenge || o.challenge.length < 40)
|
|
791
811
|
throw new Error("Challenge is too short. Min. 40 chars.");
|
|
792
812
|
if (!o.salt || o.salt.length < 10)
|
|
793
813
|
throw new Error("Salt is too short. Min. 10 chars.");
|
|
794
814
|
}
|
|
795
|
-
async function
|
|
796
|
-
if (
|
|
797
|
-
throw
|
|
798
|
-
if (
|
|
799
|
-
return
|
|
815
|
+
async function ke() {
|
|
816
|
+
if (j)
|
|
817
|
+
throw E("mocking error"), new Error("Mocked error.");
|
|
818
|
+
if (r)
|
|
819
|
+
return E("using provided json data"), r;
|
|
800
820
|
if (A)
|
|
801
|
-
return
|
|
821
|
+
return E("generating test challenge"), ct();
|
|
802
822
|
{
|
|
803
823
|
if (!a)
|
|
804
824
|
throw new Error("Attribute challengeurl not set.");
|
|
805
|
-
|
|
825
|
+
E("fetching challenge from", a);
|
|
806
826
|
const o = await fetch(a);
|
|
807
827
|
if (o.status !== 200)
|
|
808
828
|
throw new Error(`Server responded with ${o.status}.`);
|
|
809
829
|
return o.json();
|
|
810
830
|
}
|
|
811
831
|
}
|
|
812
|
-
async function
|
|
813
|
-
let
|
|
832
|
+
async function Ee(o) {
|
|
833
|
+
let $ = null;
|
|
814
834
|
if ("Worker" in window) {
|
|
815
835
|
try {
|
|
816
|
-
|
|
817
|
-
} catch (
|
|
818
|
-
|
|
836
|
+
$ = await Ce(o.challenge, o.salt, o.algorithm);
|
|
837
|
+
} catch (X) {
|
|
838
|
+
E(X);
|
|
819
839
|
}
|
|
820
|
-
if ((
|
|
821
|
-
return { data: o, solution:
|
|
840
|
+
if (($ == null ? void 0 : $.number) !== void 0)
|
|
841
|
+
return { data: o, solution: $ };
|
|
822
842
|
}
|
|
823
843
|
return {
|
|
824
844
|
data: o,
|
|
825
|
-
solution: await
|
|
845
|
+
solution: await at(o.challenge, o.salt, o.algorithm, L)
|
|
826
846
|
};
|
|
827
847
|
}
|
|
828
|
-
async function
|
|
829
|
-
const
|
|
830
|
-
return new Promise((
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
}),
|
|
848
|
+
async function Ce(o, $, X) {
|
|
849
|
+
const re = new it();
|
|
850
|
+
return new Promise((Ne) => {
|
|
851
|
+
re.addEventListener("message", (Re) => {
|
|
852
|
+
Ne(Re.data);
|
|
853
|
+
}), re.postMessage({ alg: X, challenge: o, max: L, salt: $ });
|
|
834
854
|
});
|
|
835
855
|
}
|
|
836
|
-
function
|
|
837
|
-
[p.UNVERIFIED, p.ERROR].includes(
|
|
856
|
+
function xe() {
|
|
857
|
+
[p.UNVERIFIED, p.ERROR].includes(S) ? W() : n(6, g = !0);
|
|
838
858
|
}
|
|
839
|
-
function
|
|
840
|
-
|
|
859
|
+
function Ie() {
|
|
860
|
+
S === p.VERIFYING && alert(i.waitAlert);
|
|
841
861
|
}
|
|
842
|
-
function
|
|
843
|
-
n(
|
|
862
|
+
function T(o = p.UNVERIFIED) {
|
|
863
|
+
n(6, g = !1), n(8, h = null), n(4, b = null), n(5, S = o);
|
|
844
864
|
}
|
|
845
|
-
async function
|
|
846
|
-
return
|
|
847
|
-
if (
|
|
848
|
-
|
|
865
|
+
async function W() {
|
|
866
|
+
return T(p.VERIFYING), ke().then((o) => (ye(o), E("challenge", o), Ee(o))).then(({ data: o, solution: $ }) => {
|
|
867
|
+
if (E("solution", $), ($ == null ? void 0 : $.number) !== void 0)
|
|
868
|
+
E("verified"), n(5, S = p.VERIFIED), n(6, g = !0), n(4, b = pe(o, $)), E("payload", b), Pe().then(() => {
|
|
869
|
+
V("verified", { payload: b });
|
|
870
|
+
});
|
|
849
871
|
else
|
|
850
872
|
throw new Error("Unexpected result returned.");
|
|
851
873
|
}).catch((o) => {
|
|
852
|
-
|
|
874
|
+
E(o), n(5, S = p.ERROR), n(6, g = !1), n(8, h = o);
|
|
853
875
|
});
|
|
854
876
|
}
|
|
855
|
-
function
|
|
856
|
-
|
|
877
|
+
function Le() {
|
|
878
|
+
g = this.checked, n(6, g);
|
|
857
879
|
}
|
|
858
|
-
function
|
|
859
|
-
|
|
860
|
-
|
|
880
|
+
function qe(o) {
|
|
881
|
+
z[o ? "unshift" : "push"](() => {
|
|
882
|
+
w = o, n(7, w);
|
|
861
883
|
});
|
|
862
884
|
}
|
|
863
885
|
return t.$$set = (o) => {
|
|
864
|
-
"auto" in o && n(0,
|
|
886
|
+
"auto" in o && n(0, s = o.auto), "challengeurl" in o && n(12, a = o.challengeurl), "challengejson" in o && n(13, u = o.challengejson), "debug" in o && n(14, f = o.debug), "hidefooter" in o && n(1, N = o.hidefooter), "hidelogo" in o && n(2, y = o.hidelogo), "name" in o && n(3, R = o.name), "maxnumber" in o && n(15, L = o.maxnumber), "mockerror" in o && n(16, j = o.mockerror), "strings" in o && n(17, _ = o.strings), "test" in o && n(18, A = o.test);
|
|
865
887
|
}, t.$$.update = () => {
|
|
866
888
|
t.$$.dirty[0] & /*challengejson*/
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
889
|
+
8192 && (r = u ? he(u) : void 0), t.$$.dirty[0] & /*strings*/
|
|
890
|
+
131072 && n(21, l = _ ? he(_) : {}), t.$$.dirty[0] & /*parsedStrings*/
|
|
891
|
+
2097152 && n(9, i = {
|
|
870
892
|
error: "Verification failed. Try again later.",
|
|
871
|
-
footer: `Protected by <a href="${
|
|
893
|
+
footer: `Protected by <a href="${ve}" target="_blank">ALTCHA</a>`,
|
|
872
894
|
label: "I'm not a robot",
|
|
873
895
|
verified: "Verified",
|
|
874
896
|
verifying: "Verifying...",
|
|
875
897
|
waitAlert: "Verifying... please wait.",
|
|
876
898
|
...l
|
|
877
899
|
}), t.$$.dirty[0] & /*payload, state*/
|
|
878
|
-
|
|
900
|
+
48 && V("statechange", { payload: b, state: S });
|
|
879
901
|
}, [
|
|
880
|
-
|
|
881
|
-
j,
|
|
882
|
-
y,
|
|
883
|
-
S,
|
|
884
|
-
C,
|
|
902
|
+
s,
|
|
885
903
|
N,
|
|
886
|
-
|
|
904
|
+
y,
|
|
905
|
+
R,
|
|
887
906
|
b,
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
907
|
+
S,
|
|
908
|
+
g,
|
|
909
|
+
w,
|
|
910
|
+
h,
|
|
911
|
+
i,
|
|
912
|
+
xe,
|
|
913
|
+
Ie,
|
|
891
914
|
a,
|
|
892
915
|
u,
|
|
893
916
|
f,
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
917
|
+
L,
|
|
918
|
+
j,
|
|
919
|
+
_,
|
|
897
920
|
A,
|
|
898
|
-
|
|
899
|
-
|
|
921
|
+
T,
|
|
922
|
+
W,
|
|
900
923
|
l,
|
|
901
|
-
|
|
902
|
-
|
|
924
|
+
Le,
|
|
925
|
+
qe
|
|
903
926
|
];
|
|
904
927
|
}
|
|
905
|
-
class
|
|
928
|
+
class wt extends nt {
|
|
906
929
|
constructor(e) {
|
|
907
|
-
super(),
|
|
930
|
+
super(), et(
|
|
908
931
|
this,
|
|
909
932
|
e,
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
933
|
+
mt,
|
|
934
|
+
gt,
|
|
935
|
+
Ae,
|
|
913
936
|
{
|
|
914
937
|
auto: 0,
|
|
915
|
-
challengeurl:
|
|
916
|
-
challengejson:
|
|
917
|
-
debug:
|
|
938
|
+
challengeurl: 12,
|
|
939
|
+
challengejson: 13,
|
|
940
|
+
debug: 14,
|
|
918
941
|
hidefooter: 1,
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
942
|
+
hidelogo: 2,
|
|
943
|
+
name: 3,
|
|
944
|
+
maxnumber: 15,
|
|
945
|
+
mockerror: 16,
|
|
946
|
+
strings: 17,
|
|
947
|
+
test: 18,
|
|
948
|
+
reset: 19,
|
|
949
|
+
verify: 20
|
|
926
950
|
},
|
|
927
|
-
|
|
951
|
+
ft,
|
|
928
952
|
[-1, -1]
|
|
929
953
|
);
|
|
930
954
|
}
|
|
@@ -932,70 +956,76 @@ class dt extends Qe {
|
|
|
932
956
|
return this.$$.ctx[0];
|
|
933
957
|
}
|
|
934
958
|
set auto(e) {
|
|
935
|
-
this.$$set({ auto: e }),
|
|
959
|
+
this.$$set({ auto: e }), C();
|
|
936
960
|
}
|
|
937
961
|
get challengeurl() {
|
|
938
|
-
return this.$$.ctx[
|
|
962
|
+
return this.$$.ctx[12];
|
|
939
963
|
}
|
|
940
964
|
set challengeurl(e) {
|
|
941
|
-
this.$$set({ challengeurl: e }),
|
|
965
|
+
this.$$set({ challengeurl: e }), C();
|
|
942
966
|
}
|
|
943
967
|
get challengejson() {
|
|
944
|
-
return this.$$.ctx[
|
|
968
|
+
return this.$$.ctx[13];
|
|
945
969
|
}
|
|
946
970
|
set challengejson(e) {
|
|
947
|
-
this.$$set({ challengejson: e }),
|
|
971
|
+
this.$$set({ challengejson: e }), C();
|
|
948
972
|
}
|
|
949
973
|
get debug() {
|
|
950
|
-
return this.$$.ctx[
|
|
974
|
+
return this.$$.ctx[14];
|
|
951
975
|
}
|
|
952
976
|
set debug(e) {
|
|
953
|
-
this.$$set({ debug: e }),
|
|
977
|
+
this.$$set({ debug: e }), C();
|
|
954
978
|
}
|
|
955
979
|
get hidefooter() {
|
|
956
980
|
return this.$$.ctx[1];
|
|
957
981
|
}
|
|
958
982
|
set hidefooter(e) {
|
|
959
|
-
this.$$set({ hidefooter: e }),
|
|
983
|
+
this.$$set({ hidefooter: e }), C();
|
|
960
984
|
}
|
|
961
|
-
get
|
|
985
|
+
get hidelogo() {
|
|
962
986
|
return this.$$.ctx[2];
|
|
963
987
|
}
|
|
988
|
+
set hidelogo(e) {
|
|
989
|
+
this.$$set({ hidelogo: e }), C();
|
|
990
|
+
}
|
|
991
|
+
get name() {
|
|
992
|
+
return this.$$.ctx[3];
|
|
993
|
+
}
|
|
964
994
|
set name(e) {
|
|
965
|
-
this.$$set({ name: e }),
|
|
995
|
+
this.$$set({ name: e }), C();
|
|
966
996
|
}
|
|
967
997
|
get maxnumber() {
|
|
968
|
-
return this.$$.ctx[
|
|
998
|
+
return this.$$.ctx[15];
|
|
969
999
|
}
|
|
970
1000
|
set maxnumber(e) {
|
|
971
|
-
this.$$set({ maxnumber: e }),
|
|
1001
|
+
this.$$set({ maxnumber: e }), C();
|
|
972
1002
|
}
|
|
973
1003
|
get mockerror() {
|
|
974
|
-
return this.$$.ctx[
|
|
1004
|
+
return this.$$.ctx[16];
|
|
975
1005
|
}
|
|
976
1006
|
set mockerror(e) {
|
|
977
|
-
this.$$set({ mockerror: e }),
|
|
1007
|
+
this.$$set({ mockerror: e }), C();
|
|
978
1008
|
}
|
|
979
1009
|
get strings() {
|
|
980
|
-
return this.$$.ctx[
|
|
1010
|
+
return this.$$.ctx[17];
|
|
981
1011
|
}
|
|
982
1012
|
set strings(e) {
|
|
983
|
-
this.$$set({ strings: e }),
|
|
1013
|
+
this.$$set({ strings: e }), C();
|
|
984
1014
|
}
|
|
985
1015
|
get test() {
|
|
986
|
-
return this.$$.ctx[
|
|
1016
|
+
return this.$$.ctx[18];
|
|
987
1017
|
}
|
|
988
1018
|
set test(e) {
|
|
989
|
-
this.$$set({ test: e }),
|
|
1019
|
+
this.$$set({ test: e }), C();
|
|
990
1020
|
}
|
|
991
1021
|
get reset() {
|
|
992
|
-
return this.$$.ctx[
|
|
1022
|
+
return this.$$.ctx[19];
|
|
993
1023
|
}
|
|
994
1024
|
get verify() {
|
|
995
|
-
return this.$$.ctx[
|
|
1025
|
+
return this.$$.ctx[20];
|
|
996
1026
|
}
|
|
997
1027
|
}
|
|
998
|
-
customElements.define("altcha-widget",
|
|
1028
|
+
customElements.define("altcha-widget", tt(wt, { auto: {}, challengeurl: {}, challengejson: {}, debug: { type: "Boolean" }, hidefooter: { type: "Boolean" }, hidelogo: { type: "Boolean" }, name: {}, maxnumber: {}, mockerror: { type: "Boolean" }, strings: {}, test: { type: "Boolean" } }, [], ["reset", "verify"], !1));
|
|
999
1029
|
export {
|
|
1000
|
-
|
|
1030
|
+
wt as Altcha
|
|
1001
1031
|
};
|