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