altcha 2.2.0 → 2.2.2

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
@@ -4,7 +4,7 @@ var Vn = (e) => {
4
4
  };
5
5
  var Ho = (e, t, r) => t in e ? Bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
6
  var Ee = (e, t, r) => Ho(e, typeof t != "symbol" ? t + "" : t, r), Un = (e, t, r) => t.has(e) || Vn("Cannot " + r);
7
- var se = (e, t, r) => (Un(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Sr = (e, t, r) => t.has(e) ? Vn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Tr = (e, t, r, i) => (Un(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
7
+ var se = (e, t, r) => (Un(e, t, "read from private field"), r ? r.call(e) : t.get(e)), $r = (e, t, r) => t.has(e) ? Vn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Sr = (e, t, r, i) => (Un(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
8
8
  const ni = `(function(){"use strict";const d=new TextEncoder;function p(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function b(e,t,r){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return p(await crypto.subtle.digest(r.toUpperCase(),d.encode(e+t)))}function w(e,t,r="SHA-256",n=1e6,s=0){const o=new AbortController,a=Date.now();return{promise:(async()=>{for(let c=s;c<=n;c+=1){if(o.signal.aborted)return null;if(await b(t,c,r)===e)return{number:c,took:Date.now()-a}}return null})(),controller:o}}function h(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function g(e,t=12){const r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e%256,e=Math.floor(e/256);return r}async function m(e,t="",r=1e6,n=0){const s="AES-GCM",o=new AbortController,a=Date.now(),l=async()=>{for(let u=n;u<=r;u+=1){if(o.signal.aborted||!c||!y)return null;try{const f=await crypto.subtle.decrypt({name:s,iv:g(u)},c,y);if(f)return{clearText:new TextDecoder().decode(f),took:Date.now()-a}}catch{}}return null};let c=null,y=null;try{y=h(e);const u=await crypto.subtle.digest("SHA-256",d.encode(t));c=await crypto.subtle.importKey("raw",u,s,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:l(),controller:o}}let i;onmessage=async e=>{const{type:t,payload:r,start:n,max:s}=e.data;let o=null;if(t==="abort")i==null||i.abort(),i=void 0;else if(t==="work"){if("obfuscated"in r){const{key:a,obfuscated:l}=r||{};o=await m(l,a,s,n)}else{const{algorithm:a,challenge:l,salt:c}=r||{};o=w(l,c,a,s,n)}i=o.controller,o.promise.then(a=>{self.postMessage(a&&{...a,worker:!0})})}}})();
9
9
  `, jn = typeof self < "u" && self.Blob && new Blob([ni], { type: "text/javascript;charset=utf-8" });
10
10
  function Go(e) {
@@ -31,12 +31,12 @@ function Go(e) {
31
31
  const Wo = "5";
32
32
  var ri;
33
33
  typeof window < "u" && ((ri = window.__svelte ?? (window.__svelte = {})).v ?? (ri.v = /* @__PURE__ */ new Set())).add(Wo);
34
- const Yo = 1, Zo = 4, zo = 8, Jo = 16, Ko = 1, Xo = 2, Br = "[", ii = "[!", oi = "]", Ct = {}, ue = Symbol(), Qo = "http://www.w3.org/1999/xhtml", qn = !1;
34
+ const Yo = 1, Zo = 4, zo = 8, Jo = 16, Ko = 1, Xo = 2, qr = "[", ii = "[!", oi = "]", Et = {}, ue = Symbol(), Qo = "http://www.w3.org/1999/xhtml", qn = !1;
35
35
  function ai(e) {
36
36
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
37
37
  }
38
38
  var li = Array.isArray, ea = Array.prototype.indexOf, ta = Array.from, lr = Object.keys, qt = Object.defineProperty, it = Object.getOwnPropertyDescriptor, ra = Object.getOwnPropertyDescriptors, na = Object.prototype, ia = Array.prototype, si = Object.getPrototypeOf, Bn = Object.isExtensible;
39
- const xt = () => {
39
+ const Ct = () => {
40
40
  };
41
41
  function ui(e) {
42
42
  for (var t = 0; t < e.length; t++)
@@ -51,7 +51,7 @@ function oa(e, t, r = !1) {
51
51
  t
52
52
  ) : e;
53
53
  }
54
- const Ce = 2, fi = 4, vr = 8, Hr = 16, Fe = 32, lt = 64, sr = 128, ve = 256, ur = 512, fe = 1024, Ne = 2048, st = 4096, kt = 8192, gr = 16384, aa = 32768, Gr = 65536, la = 1 << 19, ci = 1 << 20, Pr = 1 << 21, Ut = Symbol("$state"), di = Symbol("legacy props"), sa = Symbol("");
54
+ const Ce = 2, fi = 4, vr = 8, Br = 16, Fe = 32, lt = 64, sr = 128, ve = 256, ur = 512, fe = 1024, Ne = 2048, st = 4096, xt = 8192, gr = 16384, aa = 32768, Hr = 65536, la = 1 << 19, ci = 1 << 20, Lr = 1 << 21, Ut = Symbol("$state"), di = Symbol("legacy props"), sa = Symbol("");
55
55
  function ua(e) {
56
56
  throw new Error("https://svelte.dev/e/effect_in_teardown");
57
57
  }
@@ -83,16 +83,16 @@ function pr(e) {
83
83
  console.warn("https://svelte.dev/e/hydration_mismatch");
84
84
  }
85
85
  let F = !1;
86
- function Et(e) {
86
+ function wt(e) {
87
87
  F = e;
88
88
  }
89
89
  let O;
90
90
  function Ge(e) {
91
91
  if (e === null)
92
- throw pr(), Ct;
92
+ throw pr(), Et;
93
93
  return O = e;
94
94
  }
95
- function At() {
95
+ function kt() {
96
96
  return Ge(
97
97
  /** @type {TemplateNode} */
98
98
  /* @__PURE__ */ Ze(O)
@@ -101,7 +101,7 @@ function At() {
101
101
  function Y(e) {
102
102
  if (F) {
103
103
  if (/* @__PURE__ */ Ze(O) !== null)
104
- throw pr(), Ct;
104
+ throw pr(), Et;
105
105
  O = e;
106
106
  }
107
107
  }
@@ -115,7 +115,7 @@ function _a() {
115
115
  if (r === oi) {
116
116
  if (e === 0) return t;
117
117
  e -= 1;
118
- } else (r === Br || r === ii) && (e += 1);
118
+ } else (r === qr || r === ii) && (e += 1);
119
119
  }
120
120
  var i = (
121
121
  /** @type {TemplateNode} */
@@ -158,7 +158,7 @@ function Be(e) {
158
158
  c in s && (r.set(
159
159
  c,
160
160
  f(() => /* @__PURE__ */ L(ue))
161
- ), Dr(l));
161
+ ), Tr(l));
162
162
  else {
163
163
  if (i && typeof c == "string") {
164
164
  var _ = (
@@ -167,7 +167,7 @@ function Be(e) {
167
167
  ), v = Number(c);
168
168
  Number.isInteger(v) && v < _.v && b(_, v);
169
169
  }
170
- b(d, ue), Dr(l);
170
+ b(d, ue), Tr(l);
171
171
  }
172
172
  return !0;
173
173
  },
@@ -237,7 +237,7 @@ function Be(e) {
237
237
  ), ce = Number(c);
238
238
  Number.isInteger(ce) && ce >= U.v && b(U, ce + 1);
239
239
  }
240
- Dr(l);
240
+ Tr(l);
241
241
  }
242
242
  return !0;
243
243
  },
@@ -257,11 +257,11 @@ function Be(e) {
257
257
  }
258
258
  );
259
259
  }
260
- function Dr(e, t = 1) {
260
+ function Tr(e, t = 1) {
261
261
  b(e, e.v + t);
262
262
  }
263
263
  var Hn, hi, vi, gi;
264
- function Or() {
264
+ function Pr() {
265
265
  if (Hn === void 0) {
266
266
  Hn = window, hi = /Firefox/.test(navigator.userAgent);
267
267
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
@@ -325,7 +325,7 @@ function pi(e) {
325
325
  function mi(e, t) {
326
326
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
327
327
  }
328
- function Wr(e) {
328
+ function Gr(e) {
329
329
  return !mi(e, this.v);
330
330
  }
331
331
  // @__NO_SIDE_EFFECTS__
@@ -359,7 +359,7 @@ function Mt(e) {
359
359
  // @__NO_SIDE_EFFECTS__
360
360
  function wa(e) {
361
361
  const t = /* @__PURE__ */ _r(e);
362
- return t.equals = Wr, t;
362
+ return t.equals = Gr, t;
363
363
  }
364
364
  function _i(e) {
365
365
  var t = e.effects;
@@ -423,7 +423,7 @@ function ut(e, t, r, i = !0) {
423
423
  };
424
424
  if (r)
425
425
  try {
426
- Kr(o), o.f |= aa;
426
+ Jr(o), o.f |= aa;
427
427
  } catch (c) {
428
428
  throw We(o), c;
429
429
  }
@@ -438,11 +438,11 @@ function ut(e, t, r, i = !0) {
438
438
  }
439
439
  return o;
440
440
  }
441
- function Yr(e) {
441
+ function Wr(e) {
442
442
  const t = ut(vr, null, !1);
443
443
  return xe(t, fe), t.teardown = e, t;
444
444
  }
445
- function Fr(e) {
445
+ function Or(e) {
446
446
  Ca();
447
447
  var t = D !== null && (D.f & Fe) !== 0 && oe !== null && !oe.m;
448
448
  if (t) {
@@ -456,7 +456,7 @@ function Fr(e) {
456
456
  reaction: T
457
457
  });
458
458
  } else {
459
- var i = Zr(e);
459
+ var i = Yr(e);
460
460
  return i;
461
461
  }
462
462
  }
@@ -469,15 +469,15 @@ function ka(e) {
469
469
  function Aa(e) {
470
470
  const t = ut(lt, e, !0);
471
471
  return (r = {}) => new Promise((i) => {
472
- r.outro ? Vr(t, () => {
472
+ r.outro ? Mr(t, () => {
473
473
  We(t), i(void 0);
474
474
  }) : (We(t), i(void 0));
475
475
  });
476
476
  }
477
- function Zr(e) {
477
+ function Yr(e) {
478
478
  return ut(fi, e, !1);
479
479
  }
480
- function zr(e) {
480
+ function Zr(e) {
481
481
  return ut(vr, e, !0);
482
482
  }
483
483
  function Se(e, t = [], r = _r) {
@@ -485,9 +485,9 @@ function Se(e, t = [], r = _r) {
485
485
  return wi(() => e(...i.map(a)));
486
486
  }
487
487
  function wi(e, t = 0) {
488
- return ut(vr | Hr | t, e, !0);
488
+ return ut(vr | Br | t, e, !0);
489
489
  }
490
- function Mr(e, t = !0) {
490
+ function Fr(e, t = !0) {
491
491
  return ut(vr | Fe, e, !0, t);
492
492
  }
493
493
  function Ei(e) {
@@ -543,7 +543,7 @@ function ki(e) {
543
543
  var t = e.parent, r = e.prev, i = e.next;
544
544
  r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
545
545
  }
546
- function Vr(e, t) {
546
+ function Mr(e, t) {
547
547
  var r = [];
548
548
  Ai(e, r, !0), Ra(r, () => {
549
549
  We(e), t && t();
@@ -559,12 +559,12 @@ function Ra(e, t) {
559
559
  t();
560
560
  }
561
561
  function Ai(e, t, r) {
562
- if ((e.f & kt) === 0) {
563
- if (e.f ^= kt, e.transitions !== null)
562
+ if ((e.f & xt) === 0) {
563
+ if (e.f ^= xt, e.transitions !== null)
564
564
  for (const f of e.transitions)
565
565
  (f.is_global || r) && t.push(f);
566
566
  for (var i = e.first; i !== null; ) {
567
- var l = i.next, o = (i.f & Gr) !== 0 || (i.f & Fe) !== 0;
567
+ var l = i.next, o = (i.f & Hr) !== 0 || (i.f & Fe) !== 0;
568
568
  Ai(i, t, o ? r : !1), i = l;
569
569
  }
570
570
  }
@@ -573,10 +573,10 @@ function Gn(e) {
573
573
  Ii(e, !0);
574
574
  }
575
575
  function Ii(e, t) {
576
- if ((e.f & kt) !== 0) {
577
- e.f ^= kt, (e.f & fe) === 0 && (e.f ^= fe), Yt(e) && (xe(e, Ne), yr(e));
576
+ if ((e.f & xt) !== 0) {
577
+ e.f ^= xt, (e.f & fe) === 0 && (e.f ^= fe), Yt(e) && (xe(e, Ne), yr(e));
578
578
  for (var r = e.first; r !== null; ) {
579
- var i = r.next, l = (r.f & Gr) !== 0 || (r.f & Fe) !== 0;
579
+ var i = r.next, l = (r.f & Hr) !== 0 || (r.f & Fe) !== 0;
580
580
  Ii(r, l ? t : !1), r = i;
581
581
  }
582
582
  if (e.transitions !== null)
@@ -594,7 +594,7 @@ function $i() {
594
594
  var e = Ht;
595
595
  Ht = [], ui(e);
596
596
  }
597
- function Jr(e) {
597
+ function zr(e) {
598
598
  Bt.length === 0 && queueMicrotask(Ri), Bt.push(e);
599
599
  }
600
600
  function Sa(e) {
@@ -618,7 +618,7 @@ function Ye(e) {
618
618
  }
619
619
  let ie = null;
620
620
  function Si(e) {
621
- T !== null && T.f & Pr && (ie === null ? ie = [e] : ie.push(e));
621
+ T !== null && T.f & Lr && (ie === null ? ie = [e] : ie.push(e));
622
622
  }
623
623
  let ne = null, he = 0, pe = null;
624
624
  function Da(e) {
@@ -705,7 +705,7 @@ function Li(e) {
705
705
  var y;
706
706
  var t = ne, r = he, i = pe, l = T, o = He, f = ie, s = oe, c = Te, d = e.f;
707
707
  ne = /** @type {null | Value[]} */
708
- null, he = 0, pe = null, He = (d & ve) !== 0 && (Te || !ot || T === null), T = (d & (Fe | lt)) === 0 ? e : null, ie = null, Zn(e.ctx), Te = !1, dr++, e.f |= Pr;
708
+ null, he = 0, pe = null, He = (d & ve) !== 0 && (Te || !ot || T === null), T = (d & (Fe | lt)) === 0 ? e : null, ie = null, Zn(e.ctx), Te = !1, dr++, e.f |= Lr;
709
709
  try {
710
710
  var _ = (
711
711
  /** @type {Function} */
@@ -733,7 +733,7 @@ function Li(e) {
733
733
  return l !== null && l !== e && (dr++, pe !== null && (i === null ? i = pe : i.push(.../** @type {Source[]} */
734
734
  pe))), _;
735
735
  } finally {
736
- ne = t, he = r, pe = i, T = l, He = o, ie = f, Zn(s), Te = c, e.f ^= Pr;
736
+ ne = t, he = r, pe = i, T = l, He = o, ie = f, Zn(s), Te = c, e.f ^= Lr;
737
737
  }
738
738
  }
739
739
  function La(e, t) {
@@ -763,14 +763,14 @@ function hr(e, t) {
763
763
  for (var i = t; i < r.length; i++)
764
764
  La(e, r[i]);
765
765
  }
766
- function Kr(e) {
766
+ function Jr(e) {
767
767
  var t = e.f;
768
768
  if ((t & gr) === 0) {
769
769
  xe(e, fe);
770
770
  var r = D, i = oe, l = ot;
771
771
  D = e, ot = !0;
772
772
  try {
773
- (t & Hr) !== 0 ? Ia(e) : Ci(e), Ei(e);
773
+ (t & Br) !== 0 ? Ia(e) : Ci(e), Ei(e);
774
774
  var o = Li(e);
775
775
  e.teardown = typeof o == "function" ? o : null, e.wv = Ti;
776
776
  var f = e.deps, s;
@@ -815,9 +815,9 @@ function Oa(e) {
815
815
  if (t !== 0)
816
816
  for (var r = 0; r < t; r++) {
817
817
  var i = e[r];
818
- if ((i.f & (gr | kt)) === 0)
818
+ if ((i.f & (gr | xt)) === 0)
819
819
  try {
820
- Yt(i) && (Kr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? ki(i) : i.fn = null));
820
+ Yt(i) && (Jr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? ki(i) : i.fn = null));
821
821
  } catch (l) {
822
822
  br(l, i, null, i.ctx);
823
823
  }
@@ -838,14 +838,14 @@ function yr(e) {
838
838
  function Fa(e) {
839
839
  for (var t = [], r = e; r !== null; ) {
840
840
  var i = r.f, l = (i & (Fe | lt)) !== 0, o = l && (i & fe) !== 0;
841
- if (!o && (i & kt) === 0) {
841
+ if (!o && (i & xt) === 0) {
842
842
  if ((i & fi) !== 0)
843
843
  t.push(r);
844
844
  else if (l)
845
845
  r.f ^= fe;
846
846
  else
847
847
  try {
848
- Yt(r) && Kr(r);
848
+ Yt(r) && Jr(r);
849
849
  } catch (c) {
850
850
  br(c, r, null, r.ctx);
851
851
  }
@@ -871,7 +871,7 @@ function x(e) {
871
871
  fr = !0, Pi();
872
872
  }
873
873
  }
874
- async function Nr() {
874
+ async function Dr() {
875
875
  await Promise.resolve(), x();
876
876
  }
877
877
  function a(e) {
@@ -924,12 +924,12 @@ function L(e, t) {
924
924
  return Si(r), r;
925
925
  }
926
926
  // @__NO_SIDE_EFFECTS__
927
- function Xr(e, t = !1) {
927
+ function Kr(e, t = !1) {
928
928
  const r = Oi(e);
929
- return t || (r.equals = Wr), r;
929
+ return t || (r.equals = Gr), r;
930
930
  }
931
931
  function b(e, t, r = !1) {
932
- T !== null && !Te && Ui() && (T.f & (Ce | Hr)) !== 0 && !(ie != null && ie.includes(e)) && ma();
932
+ T !== null && !Te && Ui() && (T.f & (Ce | Br)) !== 0 && !(ie != null && ie.includes(e)) && ma();
933
933
  let i = r ? Be(t) : t;
934
934
  return Va(e, i);
935
935
  }
@@ -973,7 +973,7 @@ function Mi(e, t = !1, r) {
973
973
  x: null,
974
974
  l: null
975
975
  };
976
- Yr(() => {
976
+ Wr(() => {
977
977
  i.d = !0;
978
978
  });
979
979
  }
@@ -988,7 +988,7 @@ function Vi(e) {
988
988
  try {
989
989
  for (var l = 0; l < f.length; l++) {
990
990
  var o = f[l];
991
- Ye(o.effect), Le(o.reaction), Zr(o.fn);
991
+ Ye(o.effect), Le(o.reaction), Yr(o.fn);
992
992
  }
993
993
  } finally {
994
994
  Ye(r), Le(i);
@@ -1009,7 +1009,7 @@ function ja(e) {
1009
1009
  function qa(e, t) {
1010
1010
  if (t) {
1011
1011
  const r = document.body;
1012
- e.autofocus = !0, Jr(() => {
1012
+ e.autofocus = !0, zr(() => {
1013
1013
  document.activeElement === r && e.focus();
1014
1014
  });
1015
1015
  }
@@ -1050,26 +1050,26 @@ function Ba(e, t, r, i = r) {
1050
1050
  l(), i(!0);
1051
1051
  } : e.__on_r = () => i(!0), ji();
1052
1052
  }
1053
- const Bi = /* @__PURE__ */ new Set(), Ur = /* @__PURE__ */ new Set();
1053
+ const Bi = /* @__PURE__ */ new Set(), Vr = /* @__PURE__ */ new Set();
1054
1054
  function Ha(e, t, r, i = {}) {
1055
1055
  function l(o) {
1056
1056
  if (i.capture || Vt.call(t, o), !o.cancelBubble)
1057
1057
  return qi(() => r == null ? void 0 : r.call(this, o));
1058
1058
  }
1059
- return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Jr(() => {
1059
+ return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? zr(() => {
1060
1060
  t.addEventListener(e, l, i);
1061
1061
  }) : t.addEventListener(e, l, i), l;
1062
1062
  }
1063
1063
  function qe(e, t, r, i, l) {
1064
1064
  var o = { capture: i, passive: l }, f = Ha(e, t, r, o);
1065
- (t === document.body || t === window || t === document) && Yr(() => {
1065
+ (t === document.body || t === window || t === document) && Wr(() => {
1066
1066
  t.removeEventListener(e, f, o);
1067
1067
  });
1068
1068
  }
1069
1069
  function Ga(e) {
1070
1070
  for (var t = 0; t < e.length; t++)
1071
1071
  Bi.add(e[t]);
1072
- for (var r of Ur)
1072
+ for (var r of Vr)
1073
1073
  r(e);
1074
1074
  }
1075
1075
  function Vt(e) {
@@ -1137,7 +1137,7 @@ function Vt(e) {
1137
1137
  }
1138
1138
  }
1139
1139
  }
1140
- function Qr(e) {
1140
+ function Xr(e) {
1141
1141
  var t = document.createElement("template");
1142
1142
  return t.innerHTML = e, t.content;
1143
1143
  }
@@ -1154,7 +1154,7 @@ function ke(e, t) {
1154
1154
  return () => {
1155
1155
  if (F)
1156
1156
  return De(O, null), O;
1157
- l === void 0 && (l = Qr(o ? e : "<!>" + e), r || (l = /** @type {Node} */
1157
+ l === void 0 && (l = Xr(o ? e : "<!>" + e), r || (l = /** @type {Node} */
1158
1158
  /* @__PURE__ */ _e(l)));
1159
1159
  var f = (
1160
1160
  /** @type {TemplateNode} */
@@ -1183,7 +1183,7 @@ function wr(e, t, r = "svg") {
1183
1183
  if (!o) {
1184
1184
  var f = (
1185
1185
  /** @type {DocumentFragment} */
1186
- Qr(l)
1186
+ Xr(l)
1187
1187
  ), s = (
1188
1188
  /** @type {Element} */
1189
1189
  /* @__PURE__ */ _e(f)
@@ -1206,7 +1206,7 @@ function tr() {
1206
1206
  }
1207
1207
  function j(e, t) {
1208
1208
  if (F) {
1209
- D.nodes_end = O, At();
1209
+ D.nodes_end = O, kt();
1210
1210
  return;
1211
1211
  }
1212
1212
  e !== null && e.before(
@@ -1222,39 +1222,39 @@ function Hi(e, t) {
1222
1222
  return Gi(e, t);
1223
1223
  }
1224
1224
  function Ya(e, t) {
1225
- Or(), t.intro = t.intro ?? !1;
1225
+ Pr(), t.intro = t.intro ?? !1;
1226
1226
  const r = t.target, i = F, l = O;
1227
1227
  try {
1228
1228
  for (var o = (
1229
1229
  /** @type {TemplateNode} */
1230
1230
  /* @__PURE__ */ _e(r)
1231
1231
  ); o && (o.nodeType !== 8 || /** @type {Comment} */
1232
- o.data !== Br); )
1232
+ o.data !== qr); )
1233
1233
  o = /** @type {TemplateNode} */
1234
1234
  /* @__PURE__ */ Ze(o);
1235
1235
  if (!o)
1236
- throw Ct;
1237
- Et(!0), Ge(
1236
+ throw Et;
1237
+ wt(!0), Ge(
1238
1238
  /** @type {Comment} */
1239
1239
  o
1240
- ), At();
1240
+ ), kt();
1241
1241
  const f = Gi(e, { ...t, anchor: o });
1242
1242
  if (O === null || O.nodeType !== 8 || /** @type {Comment} */
1243
1243
  O.data !== oi)
1244
- throw pr(), Ct;
1245
- return Et(!1), /** @type {Exports} */
1244
+ throw pr(), Et;
1245
+ return wt(!1), /** @type {Exports} */
1246
1246
  f;
1247
1247
  } catch (f) {
1248
- if (f === Ct)
1249
- return t.recover === !1 && ha(), Or(), ya(r), Et(!1), Hi(e, t);
1248
+ if (f === Et)
1249
+ return t.recover === !1 && ha(), Pr(), ya(r), wt(!1), Hi(e, t);
1250
1250
  throw f;
1251
1251
  } finally {
1252
- Et(i), Ge(l);
1252
+ wt(i), Ge(l);
1253
1253
  }
1254
1254
  }
1255
- const yt = /* @__PURE__ */ new Map();
1255
+ const bt = /* @__PURE__ */ new Map();
1256
1256
  function Gi(e, { target: t, anchor: r, props: i = {}, events: l, context: o, intro: f = !0 }) {
1257
- Or();
1257
+ Pr();
1258
1258
  var s = /* @__PURE__ */ new Set(), c = (v) => {
1259
1259
  for (var m = 0; m < v.length; m++) {
1260
1260
  var y = v[m];
@@ -1262,15 +1262,15 @@ function Gi(e, { target: t, anchor: r, props: i = {}, events: l, context: o, int
1262
1262
  s.add(y);
1263
1263
  var $ = ja(y);
1264
1264
  t.addEventListener(y, Vt, { passive: $ });
1265
- var E = yt.get(y);
1266
- E === void 0 ? (document.addEventListener(y, Vt, { passive: $ }), yt.set(y, 1)) : yt.set(y, E + 1);
1265
+ var E = bt.get(y);
1266
+ E === void 0 ? (document.addEventListener(y, Vt, { passive: $ }), bt.set(y, 1)) : bt.set(y, E + 1);
1267
1267
  }
1268
1268
  }
1269
1269
  };
1270
- c(ta(Bi)), Ur.add(c);
1270
+ c(ta(Bi)), Vr.add(c);
1271
1271
  var d = void 0, _ = Aa(() => {
1272
1272
  var v = r ?? t.appendChild(mr());
1273
- return Mr(() => {
1273
+ return Fr(() => {
1274
1274
  if (o) {
1275
1275
  Mi({});
1276
1276
  var m = (
@@ -1290,23 +1290,23 @@ function Gi(e, { target: t, anchor: r, props: i = {}, events: l, context: o, int
1290
1290
  t.removeEventListener(m, Vt);
1291
1291
  var y = (
1292
1292
  /** @type {number} */
1293
- yt.get(m)
1293
+ bt.get(m)
1294
1294
  );
1295
- --y === 0 ? (document.removeEventListener(m, Vt), yt.delete(m)) : yt.set(m, y);
1295
+ --y === 0 ? (document.removeEventListener(m, Vt), bt.delete(m)) : bt.set(m, y);
1296
1296
  }
1297
- Ur.delete(c), v !== r && (($ = v.parentNode) == null || $.removeChild(v));
1297
+ Vr.delete(c), v !== r && (($ = v.parentNode) == null || $.removeChild(v));
1298
1298
  };
1299
1299
  });
1300
- return jr.set(d, _), d;
1300
+ return Ur.set(d, _), d;
1301
1301
  }
1302
- let jr = /* @__PURE__ */ new WeakMap();
1302
+ let Ur = /* @__PURE__ */ new WeakMap();
1303
1303
  function Za(e, t) {
1304
- const r = jr.get(e);
1305
- return r ? (jr.delete(e), r(t)) : Promise.resolve();
1304
+ const r = Ur.get(e);
1305
+ return r ? (Ur.delete(e), r(t)) : Promise.resolve();
1306
1306
  }
1307
1307
  function J(e, t, [r, i] = [0, 0]) {
1308
- F && r === 0 && At();
1309
- var l = e, o = null, f = null, s = ue, c = r > 0 ? Gr : 0, d = !1;
1308
+ F && r === 0 && kt();
1309
+ var l = e, o = null, f = null, s = ue, c = r > 0 ? Hr : 0, d = !1;
1310
1310
  const _ = (m, y = !0) => {
1311
1311
  d = !0, v(y, m);
1312
1312
  }, v = (m, y) => {
@@ -1318,16 +1318,16 @@ function J(e, t, [r, i] = [0, 0]) {
1318
1318
  /** @type {Comment} */
1319
1319
  l.data
1320
1320
  );
1321
- U === Br ? i = 0 : U === ii ? i = 1 / 0 : (i = parseInt(U.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
1321
+ U === qr ? i = 0 : U === ii ? i = 1 / 0 : (i = parseInt(U.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
1322
1322
  }
1323
1323
  const E = i > r;
1324
- !!s === E && (l = _a(), Ge(l), Et(!1), $ = !0, i = -1);
1324
+ !!s === E && (l = _a(), Ge(l), wt(!1), $ = !0, i = -1);
1325
1325
  }
1326
- s ? (o ? Gn(o) : y && (o = Mr(() => y(l))), f && Vr(f, () => {
1326
+ s ? (o ? Gn(o) : y && (o = Fr(() => y(l))), f && Mr(f, () => {
1327
1327
  f = null;
1328
- })) : (f ? Gn(f) : y && (f = Mr(() => y(l, [r + 1, i]))), o && Vr(o, () => {
1328
+ })) : (f ? Gn(f) : y && (f = Fr(() => y(l, [r + 1, i]))), o && Mr(o, () => {
1329
1329
  o = null;
1330
- })), $ && Et(!0);
1330
+ })), $ && wt(!0);
1331
1331
  };
1332
1332
  wi(() => {
1333
1333
  d = !1, t(_), d || v(null, null);
@@ -1341,7 +1341,7 @@ function nt(e, t, r = !1, i = !1, l = !1) {
1341
1341
  D
1342
1342
  );
1343
1343
  if (f === (f = t() ?? "")) {
1344
- F && At();
1344
+ F && kt();
1345
1345
  return;
1346
1346
  }
1347
1347
  if (s.nodes_start !== null && (xi(
@@ -1351,18 +1351,18 @@ function nt(e, t, r = !1, i = !1, l = !1) {
1351
1351
  ), s.nodes_start = s.nodes_end = null), f !== "") {
1352
1352
  if (F) {
1353
1353
  O.data;
1354
- for (var c = At(), d = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
1354
+ for (var c = kt(), d = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
1355
1355
  c.data !== ""); )
1356
1356
  d = c, c = /** @type {TemplateNode} */
1357
1357
  /* @__PURE__ */ Ze(c);
1358
1358
  if (c === null)
1359
- throw pr(), Ct;
1359
+ throw pr(), Et;
1360
1360
  De(O, d), o = Ge(c);
1361
1361
  return;
1362
1362
  }
1363
1363
  var _ = f + "";
1364
1364
  r ? _ = `<svg>${_}</svg>` : i && (_ = `<math>${_}</math>`);
1365
- var v = Qr(_);
1365
+ var v = Xr(_);
1366
1366
  if ((r || i) && (v = /** @type {Element} */
1367
1367
  /* @__PURE__ */ _e(v)), De(
1368
1368
  /** @type {TemplateNode} */
@@ -1382,7 +1382,7 @@ function nt(e, t, r = !1, i = !1, l = !1) {
1382
1382
  }
1383
1383
  function za(e, t, r, i, l) {
1384
1384
  var s;
1385
- F && At();
1385
+ F && kt();
1386
1386
  var o = (s = t.$$slots) == null ? void 0 : s[r], f = !1;
1387
1387
  o === !0 && (o = t.children, f = !0), o === void 0 || o(e, f ? () => i : i);
1388
1388
  }
@@ -1473,7 +1473,7 @@ function rl(e, t, r = t) {
1473
1473
  }), // If we are hydrating and the value has since changed,
1474
1474
  // then use the update value from the input instead.
1475
1475
  (F && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
1476
- at(t) == null) && r(e.checked), zr(() => {
1476
+ at(t) == null) && r(e.checked), Zr(() => {
1477
1477
  var i = t();
1478
1478
  e.checked = !!i;
1479
1479
  });
@@ -1482,21 +1482,21 @@ function Qn(e, t) {
1482
1482
  return e === t || (e == null ? void 0 : e[Ut]) === t;
1483
1483
  }
1484
1484
  function rr(e = {}, t, r, i) {
1485
- return Zr(() => {
1485
+ return Yr(() => {
1486
1486
  var l, o;
1487
- return zr(() => {
1487
+ return Zr(() => {
1488
1488
  l = o, o = [], at(() => {
1489
1489
  e !== r(...o) && (t(e, ...o), l && Qn(r(...l), e) && t(null, ...l));
1490
1490
  });
1491
1491
  }), () => {
1492
- Jr(() => {
1492
+ zr(() => {
1493
1493
  o && Qn(r(...o), e) && t(null, ...o);
1494
1494
  });
1495
1495
  };
1496
1496
  }), e;
1497
1497
  }
1498
1498
  function Yi(e) {
1499
- oe === null && ai(), Fr(() => {
1499
+ oe === null && ai(), Or(() => {
1500
1500
  const t = at(e);
1501
1501
  if (typeof t == "function") return (
1502
1502
  /** @type {() => void} */
@@ -1509,7 +1509,7 @@ function nl(e) {
1509
1509
  }
1510
1510
  function Zi(e, t, r) {
1511
1511
  if (e == null)
1512
- return t(void 0), xt;
1512
+ return t(void 0), Ct;
1513
1513
  const i = at(
1514
1514
  () => e.subscribe(
1515
1515
  t,
@@ -1519,19 +1519,19 @@ function Zi(e, t, r) {
1519
1519
  );
1520
1520
  return i.unsubscribe ? () => i.unsubscribe() : i;
1521
1521
  }
1522
- const wt = [];
1523
- function il(e, t = xt) {
1522
+ const yt = [];
1523
+ function il(e, t = Ct) {
1524
1524
  let r = null;
1525
1525
  const i = /* @__PURE__ */ new Set();
1526
1526
  function l(s) {
1527
1527
  if (mi(e, s) && (e = s, r)) {
1528
- const c = !wt.length;
1528
+ const c = !yt.length;
1529
1529
  for (const d of i)
1530
- d[1](), wt.push(d, e);
1530
+ d[1](), yt.push(d, e);
1531
1531
  if (c) {
1532
- for (let d = 0; d < wt.length; d += 2)
1533
- wt[d][0](wt[d + 1]);
1534
- wt.length = 0;
1532
+ for (let d = 0; d < yt.length; d += 2)
1533
+ yt[d][0](yt[d + 1]);
1534
+ yt.length = 0;
1535
1535
  }
1536
1536
  }
1537
1537
  }
@@ -1541,9 +1541,9 @@ function il(e, t = xt) {
1541
1541
  e
1542
1542
  ));
1543
1543
  }
1544
- function f(s, c = xt) {
1544
+ function f(s, c = Ct) {
1545
1545
  const d = [s, c];
1546
- return i.add(d), i.size === 1 && (r = t(l, o) || xt), s(
1546
+ return i.add(d), i.size === 1 && (r = t(l, o) || Ct), s(
1547
1547
  /** @type {T} */
1548
1548
  e
1549
1549
  ), () => {
@@ -1556,31 +1556,31 @@ function or(e) {
1556
1556
  let t;
1557
1557
  return Zi(e, (r) => t = r)(), t;
1558
1558
  }
1559
- let nr = !1, qr = Symbol();
1559
+ let nr = !1, jr = Symbol();
1560
1560
  function ol(e, t, r) {
1561
1561
  const i = r[t] ?? (r[t] = {
1562
1562
  store: null,
1563
- source: /* @__PURE__ */ Xr(void 0),
1564
- unsubscribe: xt
1563
+ source: /* @__PURE__ */ Kr(void 0),
1564
+ unsubscribe: Ct
1565
1565
  });
1566
- if (i.store !== e && !(qr in r))
1566
+ if (i.store !== e && !(jr in r))
1567
1567
  if (i.unsubscribe(), i.store = e ?? null, e == null)
1568
- i.source.v = void 0, i.unsubscribe = xt;
1568
+ i.source.v = void 0, i.unsubscribe = Ct;
1569
1569
  else {
1570
1570
  var l = !0;
1571
1571
  i.unsubscribe = Zi(e, (o) => {
1572
1572
  l ? i.source.v = o : b(i.source, o);
1573
1573
  }), l = !1;
1574
1574
  }
1575
- return e && qr in r ? or(e) : a(i.source);
1575
+ return e && jr in r ? or(e) : a(i.source);
1576
1576
  }
1577
1577
  function al() {
1578
1578
  const e = {};
1579
1579
  function t() {
1580
- Yr(() => {
1580
+ Wr(() => {
1581
1581
  for (var r in e)
1582
1582
  e[r].unsubscribe();
1583
- qt(e, qr, {
1583
+ qt(e, jr, {
1584
1584
  enumerable: !1,
1585
1585
  value: !0
1586
1586
  });
@@ -1632,11 +1632,11 @@ function k(e, t, r, i) {
1632
1632
  return arguments.length > 0 ? ((!ae || ce || c) && v(ae ? U() : q), q) : U();
1633
1633
  };
1634
1634
  }
1635
- var K = !1, te = /* @__PURE__ */ Xr(d), X = /* @__PURE__ */ _r(() => {
1635
+ var K = !1, te = /* @__PURE__ */ Kr(d), X = /* @__PURE__ */ _r(() => {
1636
1636
  var q = U(), ae = a(te);
1637
1637
  return K ? (K = !1, ae) : te.v = q;
1638
1638
  });
1639
- return f && a(X), l || (X.equals = Wr), function(q, ae) {
1639
+ return f && a(X), l || (X.equals = Gr), function(q, ae) {
1640
1640
  if (arguments.length > 0) {
1641
1641
  const be = ae ? a(X) : f ? Be(q) : q;
1642
1642
  if (!X.equals(be)) {
@@ -1661,12 +1661,12 @@ class ul {
1661
1661
  */
1662
1662
  constructor(t) {
1663
1663
  /** @type {any} */
1664
- Sr(this, Oe);
1664
+ $r(this, Oe);
1665
1665
  /** @type {Record<string, any>} */
1666
- Sr(this, me);
1666
+ $r(this, me);
1667
1667
  var o;
1668
1668
  var r = /* @__PURE__ */ new Map(), i = (f, s) => {
1669
- var c = /* @__PURE__ */ Xr(s);
1669
+ var c = /* @__PURE__ */ Kr(s);
1670
1670
  return r.set(f, c), c;
1671
1671
  };
1672
1672
  const l = new Proxy(
@@ -1683,14 +1683,14 @@ class ul {
1683
1683
  }
1684
1684
  }
1685
1685
  );
1686
- Tr(this, me, (t.hydrate ? Ya : Hi)(t.component, {
1686
+ Sr(this, me, (t.hydrate ? Ya : Hi)(t.component, {
1687
1687
  target: t.target,
1688
1688
  anchor: t.anchor,
1689
1689
  props: l,
1690
1690
  context: t.context,
1691
1691
  intro: t.intro ?? !1,
1692
1692
  recover: t.recover
1693
- })), (!((o = t == null ? void 0 : t.props) != null && o.$$host) || t.sync === !1) && x(), Tr(this, Oe, l.$$events);
1693
+ })), (!((o = t == null ? void 0 : t.props) != null && o.$$host) || t.sync === !1) && x(), Sr(this, Oe, l.$$events);
1694
1694
  for (const f of Object.keys(se(this, me)))
1695
1695
  f === "$set" || f === "$destroy" || f === "$on" || qt(this, f, {
1696
1696
  get() {
@@ -1815,7 +1815,7 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
1815
1815
  $$host: this
1816
1816
  }
1817
1817
  }), this.$$me = ka(() => {
1818
- zr(() => {
1818
+ Zr(() => {
1819
1819
  var l;
1820
1820
  this.$$r = !0;
1821
1821
  for (const o of lr(this.$$c)) {
@@ -2080,7 +2080,7 @@ const _l = {
2080
2080
  waitAlert: "Verifying... please wait."
2081
2081
  };
2082
2082
  globalThis.altchaI18n.set("en", _l);
2083
- const Lr = (e, t) => {
2083
+ const Nr = (e, t) => {
2084
2084
  let r = /* @__PURE__ */ wa(() => oa(t == null ? void 0 : t(), 24));
2085
2085
  var i = El();
2086
2086
  Se(() => {
@@ -2107,26 +2107,26 @@ function Fl(e, t) {
2107
2107
  var Fn, Mn;
2108
2108
  Mi(t, !0);
2109
2109
  const [r, i] = al(), l = () => ol(to, "$altchaI18nStore", r);
2110
- let o = k(t, "auto", 7, void 0), f = k(t, "blockspam", 7, void 0), s = k(t, "challengeurl", 7, void 0), c = k(t, "challengejson", 7, void 0), d = k(t, "credentials", 7, void 0), _ = k(t, "customfetch", 7, void 0), v = k(t, "debug", 7, !1), m = k(t, "delay", 7, 0), y = k(t, "disableautofocus", 7, !1), $ = k(t, "expire", 7, void 0), E = k(t, "floating", 7, void 0), U = k(t, "floatinganchor", 7, void 0), ce = k(t, "floatingoffset", 7, void 0), K = k(t, "floatingpersist", 7, !1), te = k(t, "hidefooter", 7, !1), X = k(t, "hidelogo", 7, !1), ft = k(t, "id", 7, void 0), q = k(t, "language", 7, void 0), ae = k(t, "name", 7, "altcha"), be = k(t, "maxnumber", 7, 1e6), It = k(t, "mockerror", 7, !1), Me = k(t, "obfuscated", 7, void 0), ye = k(t, "overlay", 7, void 0), Rt = k(t, "overlaycontent", 7, void 0), Zt = k(t, "plugins", 7, void 0), $t = k(t, "refetchonexpire", 7, !0), ze = k(t, "sentinel", 7, void 0), Ae = k(t, "spamfilter", 7, !1), ct = k(t, "strings", 7, void 0), ge = k(t, "test", 7, !1), re = k(t, "verifyurl", 7, void 0), dt = k(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), St = k(t, "workerurl", 7, void 0);
2111
- const { altchaI18n: eo } = globalThis, to = eo.store, en = ["SHA-256", "SHA-384", "SHA-512"], ro = "https://altcha.org/", Ve = (n, u) => {
2110
+ let o = k(t, "auto", 7, void 0), f = k(t, "blockspam", 7, void 0), s = k(t, "challengeurl", 7, void 0), c = k(t, "challengejson", 7, void 0), d = k(t, "credentials", 7, void 0), _ = k(t, "customfetch", 7, void 0), v = k(t, "debug", 7, !1), m = k(t, "delay", 7, 0), y = k(t, "disableautofocus", 7, !1), $ = k(t, "expire", 7, void 0), E = k(t, "floating", 7, void 0), U = k(t, "floatinganchor", 7, void 0), ce = k(t, "floatingoffset", 7, void 0), K = k(t, "floatingpersist", 7, !1), te = k(t, "hidefooter", 7, !1), X = k(t, "hidelogo", 7, !1), ft = k(t, "id", 7, void 0), q = k(t, "language", 7, void 0), ae = k(t, "name", 7, "altcha"), be = k(t, "maxnumber", 7, 1e6), At = k(t, "mockerror", 7, !1), Me = k(t, "obfuscated", 7, void 0), ye = k(t, "overlay", 7, void 0), It = k(t, "overlaycontent", 7, void 0), Zt = k(t, "plugins", 7, void 0), Rt = k(t, "refetchonexpire", 7, !0), ze = k(t, "sentinel", 7, void 0), Ae = k(t, "spamfilter", 7, !1), ct = k(t, "strings", 7, void 0), ge = k(t, "test", 7, !1), re = k(t, "verifyurl", 7, void 0), dt = k(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), $t = k(t, "workerurl", 7, void 0);
2111
+ const { altchaI18n: eo } = globalThis, to = eo.store, Qr = ["SHA-256", "SHA-384", "SHA-512"], ro = "https://altcha.org/", Ve = (n, u) => {
2112
2112
  t.$$host.dispatchEvent(new CustomEvent(n, { detail: u }));
2113
- }, tn = (Mn = (Fn = document.documentElement.lang) == null ? void 0 : Fn.split("-")) == null ? void 0 : Mn[0], Er = /* @__PURE__ */ Mt(() => {
2113
+ }, en = (Mn = (Fn = document.documentElement.lang) == null ? void 0 : Fn.split("-")) == null ? void 0 : Mn[0], Er = /* @__PURE__ */ Mt(() => {
2114
2114
  var n;
2115
2115
  return s() && new URL(s(), location.origin).host.endsWith(".altcha.org") && !!((n = s()) != null && n.includes("apiKey=ckey_"));
2116
- }), zt = /* @__PURE__ */ Mt(() => c() ? mn(c()) : void 0), no = /* @__PURE__ */ Mt(() => ct() ? mn(ct()) : {}), P = /* @__PURE__ */ Mt(() => ({
2117
- ...an(l()),
2116
+ }), zt = /* @__PURE__ */ Mt(() => c() ? pn(c()) : void 0), no = /* @__PURE__ */ Mt(() => ct() ? pn(ct()) : {}), P = /* @__PURE__ */ Mt(() => ({
2117
+ ...on(l()),
2118
2118
  ...a(no)
2119
- })), rn = /* @__PURE__ */ Mt(() => `${ft() || ae()}_checkbox_${Math.round(Math.random() * 1e8)}`);
2120
- let Je = /* @__PURE__ */ L(null), Tt = /* @__PURE__ */ L(!1), H = /* @__PURE__ */ L(null), I = /* @__PURE__ */ L(Be(w.UNVERIFIED)), M = /* @__PURE__ */ L(void 0), Dt = /* @__PURE__ */ L(null), Ue = /* @__PURE__ */ L(null), de = /* @__PURE__ */ L(null), Cr = /* @__PURE__ */ L(null), ht = /* @__PURE__ */ L(null), N = /* @__PURE__ */ L(null), vt = /* @__PURE__ */ L(null), Ke = /* @__PURE__ */ L(null), Ie = null, G = /* @__PURE__ */ L(null), Xe = /* @__PURE__ */ L(!1), je = [], xr = /* @__PURE__ */ L(!1), Re = /* @__PURE__ */ L(null);
2121
- Fr(() => {
2119
+ })), tn = /* @__PURE__ */ Mt(() => `${ft() || ae()}_checkbox_${Math.round(Math.random() * 1e8)}`);
2120
+ let Je = /* @__PURE__ */ L(null), St = /* @__PURE__ */ L(!1), H = /* @__PURE__ */ L(null), I = /* @__PURE__ */ L(Be(w.UNVERIFIED)), M = /* @__PURE__ */ L(void 0), Tt = /* @__PURE__ */ L(null), Ue = /* @__PURE__ */ L(null), de = /* @__PURE__ */ L(null), Cr = /* @__PURE__ */ L(null), ht = /* @__PURE__ */ L(null), N = /* @__PURE__ */ L(null), Dt = /* @__PURE__ */ L(null), Ke = /* @__PURE__ */ L(null), Ie = null, G = /* @__PURE__ */ L(null), Xe = /* @__PURE__ */ L(!1), je = [], xr = /* @__PURE__ */ L(!1), Re = /* @__PURE__ */ L(null);
2121
+ Or(() => {
2122
2122
  mo(a(Ke));
2123
- }), Fr(() => {
2123
+ }), Or(() => {
2124
2124
  _o(a(I));
2125
2125
  }), nl(() => {
2126
- io(), b(vt, null), a(N) && (a(N).removeEventListener("submit", dn), a(N).removeEventListener("reset", hn), a(N).removeEventListener("focusin", cn), b(N, null)), Ie && (clearTimeout(Ie), Ie = null), document.removeEventListener("click", un), document.removeEventListener("scroll", fn), window.removeEventListener("resize", pn);
2126
+ io(), b(Dt, null), a(N) && (a(N).removeEventListener("submit", cn), a(N).removeEventListener("reset", dn), a(N).removeEventListener("focusin", fn), b(N, null)), Ie && (clearTimeout(Ie), Ie = null), document.removeEventListener("click", sn), document.removeEventListener("scroll", un), window.removeEventListener("resize", gn);
2127
2127
  }), Yi(() => {
2128
2128
  var n;
2129
- R("mounted", "2.2.0-beta.2"), R("workers", dt()), so(), R("plugins", je.length ? je.map((u) => u.constructor.pluginName).join(", ") : "none"), ge() && R("using test mode"), $() && Ar($()), o() !== void 0 && R("auto", o()), E() !== void 0 && yn(E()), b(N, (n = a(M)) == null ? void 0 : n.closest("form"), !0), a(N) && (a(N).addEventListener("submit", dn, { capture: !0 }), a(N).addEventListener("reset", hn), (o() === "onfocus" || K() === "focus") && a(N).addEventListener("focusin", cn)), ye() && wn(!0), o() === "onload" && (Me() ? Nt() : Pe()), a(Er) && (te() || X()) && R("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
2129
+ R("mounted", "2.2.2"), R("workers", dt()), so(), R("plugins", je.length ? je.map((u) => u.constructor.pluginName).join(", ") : "none"), ge() && R("using test mode"), $() && kr($()), o() !== void 0 && R("auto", o()), E() !== void 0 && yn(E()), b(N, (n = a(M)) == null ? void 0 : n.closest("form"), !0), a(N) && (a(N).addEventListener("submit", cn, { capture: !0 }), a(N).addEventListener("reset", dn), (o() === "onfocus" || K() === "focus") && a(N).addEventListener("focusin", fn)), ye() && wn(!0), o() === "onload" && (Me() ? Nt() : Pe()), a(Er) && (te() || X()) && R("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
2130
2130
  Ve("load");
2131
2131
  });
2132
2132
  });
@@ -2145,14 +2145,14 @@ function Fl(e, t) {
2145
2145
  for (const n of je)
2146
2146
  n.destroy();
2147
2147
  }
2148
- function nn() {
2149
- s() && $t() && a(I) === w.VERIFIED ? Pe() : Qe(w.EXPIRED, a(P).expired);
2148
+ function rn() {
2149
+ s() && Rt() && a(I) === w.VERIFIED ? Pe() : Qe(w.EXPIRED, a(P).expired);
2150
2150
  }
2151
2151
  async function oo() {
2152
- if (It())
2152
+ if (At())
2153
2153
  throw R("mocking error"), new Error("Mocked error.");
2154
2154
  if (a(zt))
2155
- return R("using provided json data"), _n(a(zt).salt), a(zt);
2155
+ return R("using provided json data"), mn(a(zt).salt), a(zt);
2156
2156
  if (ge())
2157
2157
  return R("generating test challenge", { test: ge() }), hl(typeof ge() != "boolean" ? +ge() : void 0);
2158
2158
  {
@@ -2166,16 +2166,16 @@ function Fl(e, t) {
2166
2166
  const n = {
2167
2167
  credentials: typeof d() == "boolean" ? "include" : d(),
2168
2168
  headers: Ae() !== !1 ? { "x-altcha-spam-filter": "1" } : {}
2169
- }, u = await on()(s(), n);
2169
+ }, u = await nn()(s(), n);
2170
2170
  if (!u || !(u instanceof Response))
2171
2171
  throw new Error("Custom fetch function did not return a response.");
2172
2172
  if (u.status !== 200)
2173
2173
  throw new Error(`Server responded with ${u.status}.`);
2174
2174
  const g = u.headers.get("X-Altcha-Config"), p = await u.json();
2175
- if (_n(p.salt), g)
2175
+ if (mn(p.salt), g)
2176
2176
  try {
2177
2177
  const h = JSON.parse(g);
2178
- h && typeof h == "object" && (h.verifyurl && !h.verifyurl.startsWith("fn:") && (h.verifyurl = sn(h.verifyurl)), xn(h));
2178
+ h && typeof h == "object" && (h.verifyurl && !h.verifyurl.startsWith("fn:") && (h.verifyurl = ln(h.verifyurl)), xn(h));
2179
2179
  } catch (h) {
2180
2180
  R("unable to configure from X-Altcha-Config", h);
2181
2181
  }
@@ -2187,7 +2187,7 @@ function Fl(e, t) {
2187
2187
  const u = (g = a(N)) == null ? void 0 : g.querySelector(typeof n == "string" ? `input[name="${n}"]` : 'input[type="email"]:not([data-no-spamfilter])');
2188
2188
  return ((p = u == null ? void 0 : u.value) == null ? void 0 : p.slice(u.value.indexOf("@"))) || void 0;
2189
2189
  }
2190
- function on() {
2190
+ function nn() {
2191
2191
  let n = fetch;
2192
2192
  if (_())
2193
2193
  if (R("using customfetch"), typeof _() == "string") {
@@ -2197,7 +2197,7 @@ function Fl(e, t) {
2197
2197
  n = _();
2198
2198
  return n;
2199
2199
  }
2200
- function an(n, u = [
2200
+ function on(n, u = [
2201
2201
  q() || "",
2202
2202
  document.documentElement.lang || "",
2203
2203
  ...navigator.languages
@@ -2233,7 +2233,7 @@ function Fl(e, t) {
2233
2233
  timeZone: void 0
2234
2234
  };
2235
2235
  }
2236
- function ln(n) {
2236
+ function an(n) {
2237
2237
  var g;
2238
2238
  return [
2239
2239
  ...((g = a(N)) == null ? void 0 : g.querySelectorAll(n != null && n.length ? n.map((p) => `input[name="${p}"]`).join(", ") : 'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')) || []
@@ -2246,7 +2246,7 @@ function Fl(e, t) {
2246
2246
  {}
2247
2247
  );
2248
2248
  }
2249
- function sn(n, u) {
2249
+ function ln(n, u) {
2250
2250
  const g = new URL(s() || location.origin), p = new URL(n, g);
2251
2251
  if (p.search || (p.search = g.search), u)
2252
2252
  for (const h in u)
@@ -2306,10 +2306,10 @@ function Fl(e, t) {
2306
2306
  solution: a(H).solution
2307
2307
  });
2308
2308
  }
2309
- b(Xe, !0), bn(Jt(a(H).challenge, a(H).solution), p).then(({ reason: h, verified: C }) => {
2310
- C ? (b(H, null), $e(w.VERIFIED), R("verified"), Nr().then(() => {
2309
+ b(Xe, !0), _n(Jt(a(H).challenge, a(H).solution), p).then(({ reason: h, verified: C }) => {
2310
+ C ? (b(H, null), $e(w.VERIFIED), R("verified"), Dr().then(() => {
2311
2311
  var A;
2312
- (A = a(Cr)) == null || A.focus(), Ve("verified", { payload: a(Re) }), o() === "onsubmit" ? kr(a(vt)) : ye() && Lt();
2312
+ (A = a(Cr)) == null || A.focus(), Ve("verified", { payload: a(Re) }), o() === "onsubmit" ? bn(a(Dt)) : ye() && Lt();
2313
2313
  })) : (Qe(), b(Ke, h || "Verification failed", !0));
2314
2314
  }).catch((h) => {
2315
2315
  b(H, null), $e(w.ERROR, h), R("sentinel verification failed:", h);
@@ -2318,35 +2318,35 @@ function Fl(e, t) {
2318
2318
  });
2319
2319
  }
2320
2320
  }
2321
- function un(n) {
2321
+ function sn(n) {
2322
2322
  var g;
2323
2323
  const u = n.target;
2324
2324
  E() && u && !a(M).contains(u) && (a(I) === w.VERIFIED && K() === !1 || a(I) === w.VERIFIED && K() === "focus" && !((g = a(N)) != null && g.matches(":focus-within")) || o() === "off" && a(I) === w.UNVERIFIED) && Lt();
2325
2325
  }
2326
- function fn() {
2326
+ function un() {
2327
2327
  E() && a(I) !== w.UNVERIFIED && Pt();
2328
2328
  }
2329
2329
  function mo(n) {
2330
2330
  for (const u of je)
2331
2331
  typeof u.onErrorChange == "function" && u.onErrorChange(a(Ke));
2332
2332
  }
2333
- function cn(n) {
2333
+ function fn(n) {
2334
2334
  a(I) === w.UNVERIFIED ? Pe() : E() && K() === "focus" && a(I) === w.VERIFIED && Kt();
2335
2335
  }
2336
- function dn(n) {
2336
+ function cn(n) {
2337
2337
  var p;
2338
2338
  const u = n.target;
2339
- u != null && u.hasAttribute("data-code-challenge-form") || (b(vt, n.submitter, !0), a(N) && o() === "onsubmit" ? ((p = a(vt)) == null || p.blur(), a(I) === w.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), Pe().then(() => {
2340
- kr(a(vt));
2341
- })) : a(I) !== w.VERIFIED && (n.preventDefault(), n.stopPropagation(), a(I) === w.VERIFYING && vn())) : a(N) && E() && o() === "off" && a(I) === w.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), Kt()));
2339
+ u != null && u.hasAttribute("data-code-challenge-form") || (b(Dt, n.submitter, !0), a(N) && o() === "onsubmit" ? ((p = a(Dt)) == null || p.blur(), a(I) === w.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), Pe().then(() => {
2340
+ bn(a(Dt));
2341
+ })) : a(I) !== w.VERIFIED && (n.preventDefault(), n.stopPropagation(), a(I) === w.VERIFYING && hn())) : a(N) && E() && o() === "off" && a(I) === w.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), Kt()));
2342
2342
  }
2343
- function hn() {
2343
+ function dn() {
2344
2344
  Qe();
2345
2345
  }
2346
- function vn() {
2346
+ function hn() {
2347
2347
  a(I) === w.VERIFYING && a(P).waitAlert && alert(a(P).waitAlert);
2348
2348
  }
2349
- function gn() {
2349
+ function vn() {
2350
2350
  a(Ue) ? a(Ue).paused ? (a(Ue).currentTime = 0, a(Ue).play()) : a(Ue).pause() : (b(xr, !0), requestAnimationFrame(() => {
2351
2351
  var n;
2352
2352
  (n = a(Ue)) == null || n.play();
@@ -2357,20 +2357,20 @@ function Fl(e, t) {
2357
2357
  typeof u.onStateChange == "function" && u.onStateChange(a(I));
2358
2358
  E() && a(I) !== w.UNVERIFIED && requestAnimationFrame(() => {
2359
2359
  Pt();
2360
- }), b(Tt, a(I) === w.VERIFIED), ye() && a(de) && (a(I) !== w.UNVERIFIED ? Kt() : Lt());
2360
+ }), b(St, a(I) === w.VERIFIED), ye() && a(de) && (a(I) !== w.UNVERIFIED ? Kt() : Lt());
2361
2361
  }
2362
- function pn() {
2362
+ function gn() {
2363
2363
  E() && Pt();
2364
2364
  }
2365
- function mn(n) {
2365
+ function pn(n) {
2366
2366
  return JSON.parse(n);
2367
2367
  }
2368
- function _n(n) {
2368
+ function mn(n) {
2369
2369
  var p;
2370
2370
  const u = new URLSearchParams((p = n.split("?")) == null ? void 0 : p[1]), g = u.get("expires") || u.get("expire");
2371
2371
  if (g) {
2372
2372
  const h = new Date(+g * 1e3), C = isNaN(h.getTime()) ? 0 : h.getTime() - Date.now();
2373
- C > 0 && Ar(C);
2373
+ C > 0 && kr(C);
2374
2374
  } else Ie && (clearTimeout(Ie), Ie = null);
2375
2375
  }
2376
2376
  async function bo(n) {
@@ -2388,12 +2388,12 @@ function Fl(e, t) {
2388
2388
  expectedCountries: Q,
2389
2389
  fields: le,
2390
2390
  ipAddress: tt,
2391
- text: pt,
2391
+ text: gt,
2392
2392
  timeZone: rt
2393
2393
  } = lo();
2394
- u.blockedCountries = h, u.classifier = C, u.disableRules = A, u.email = B === !1 ? void 0 : ao(B), u.expectedCountries = Q, u.expectedLanguages = V || (tn ? [tn] : void 0), u.fields = le === !1 ? void 0 : ln(le), u.ipAddress = tt === !1 ? void 0 : tt || "auto", u.text = pt, u.timeZone = rt === !1 ? void 0 : rt || ti();
2394
+ u.blockedCountries = h, u.classifier = C, u.disableRules = A, u.email = B === !1 ? void 0 : ao(B), u.expectedCountries = Q, u.expectedLanguages = V || (en ? [en] : void 0), u.fields = le === !1 ? void 0 : an(le), u.ipAddress = tt === !1 ? void 0 : tt || "auto", u.text = gt, u.timeZone = rt === !1 ? void 0 : rt || ti();
2395
2395
  }
2396
- const g = await on()(re(), {
2396
+ const g = await nn()(re(), {
2397
2397
  body: JSON.stringify(u),
2398
2398
  headers: { "content-type": "application/json" },
2399
2399
  method: "POST"
@@ -2406,12 +2406,12 @@ function Fl(e, t) {
2406
2406
  if (p != null && p.payload && b(Re, p.payload, !0), Ve("serververification", p), f() && p.classification === "BAD")
2407
2407
  throw new Error("SpamFilter returned negative classification.");
2408
2408
  }
2409
- async function bn(n, u) {
2409
+ async function _n(n, u) {
2410
2410
  if (!re())
2411
2411
  throw new Error("Attribute verifyurl not set.");
2412
2412
  R("requesting sentinel verification from", re());
2413
2413
  const g = { code: u, payload: n };
2414
- ze() && (g.fields = ze().fields ? ln() : void 0, g.timeZone = ze().timeZone ? ti() : void 0);
2414
+ ze() && (g.fields = ze().fields ? an() : void 0, g.timeZone = ze().timeZone ? ti() : void 0);
2415
2415
  const p = await fetch(re(), {
2416
2416
  body: JSON.stringify(g),
2417
2417
  headers: { "content-type": "application/json" },
@@ -2424,15 +2424,15 @@ function Fl(e, t) {
2424
2424
  const h = await p.json();
2425
2425
  return h != null && h.payload && b(Re, h.payload, !0), Ve("sentinelverification", h), h;
2426
2426
  }
2427
- function kr(n) {
2427
+ function bn(n) {
2428
2428
  var u;
2429
2429
  a(N) && "requestSubmit" in a(N) ? a(N).requestSubmit(n) : (u = a(N)) != null && u.reportValidity() && (n ? n.click() : a(N).submit());
2430
2430
  }
2431
- function Ar(n) {
2432
- R("expire", n), Ie && (clearTimeout(Ie), Ie = null), n < 1 ? nn() : Ie = setTimeout(nn, n);
2431
+ function kr(n) {
2432
+ R("expire", n), Ie && (clearTimeout(Ie), Ie = null), n < 1 ? rn() : Ie = setTimeout(rn, n);
2433
2433
  }
2434
2434
  function yn(n) {
2435
- R("floating", n), E() !== n && (a(M).style.left = "", a(M).style.top = ""), E(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : E()), E() ? (o() || o("onsubmit"), document.addEventListener("scroll", fn), document.addEventListener("click", un), window.addEventListener("resize", pn)) : o() === "onsubmit" && o(void 0);
2435
+ R("floating", n), E() !== n && (a(M).style.left = "", a(M).style.top = ""), E(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : E()), E() ? (o() || o("onsubmit"), document.addEventListener("scroll", un), document.addEventListener("click", sn), window.addEventListener("resize", gn)) : o() === "onsubmit" && o(void 0);
2436
2436
  }
2437
2437
  function wn(n) {
2438
2438
  var u, g;
@@ -2442,7 +2442,7 @@ function Fl(e, t) {
2442
2442
  const p = document.createElement("div"), h = document.createElement("button");
2443
2443
  h.type = "button", h.innerHTML = "&times;", h.addEventListener("click", (C) => {
2444
2444
  C.preventDefault(), Qe();
2445
- }), a(de).classList.add("altcha-overlay-backdrop"), h.classList.add("altcha-overlay-close-button"), p.classList.add("altcha-overlay"), a(de).append(p), p.append(h), Rt() && p.append(...document.querySelectorAll(Rt())), p.append(a(M).parentElement);
2445
+ }), a(de).classList.add("altcha-overlay-backdrop"), h.classList.add("altcha-overlay-close-button"), p.classList.add("altcha-overlay"), a(de).append(p), p.append(h), It() && p.append(...document.querySelectorAll(It())), p.append(a(M).parentElement);
2446
2446
  }
2447
2447
  } else a(de) && a(M).parentElement && (a(de).replaceWith(a(M).parentElement), a(M).style.display = "block");
2448
2448
  }
@@ -2451,8 +2451,8 @@ function Fl(e, t) {
2451
2451
  throw new Error("Invalid challenge. Property algorithm is missing.");
2452
2452
  if (n.signature === void 0)
2453
2453
  throw new Error("Invalid challenge. Property signature is missing.");
2454
- if (!en.includes(n.algorithm.toUpperCase()))
2455
- throw new Error(`Unknown algorithm value. Allowed values: ${en.join(", ")}`);
2454
+ if (!Qr.includes(n.algorithm.toUpperCase()))
2455
+ throw new Error(`Unknown algorithm value. Allowed values: ${Qr.join(", ")}`);
2456
2456
  if (!n.challenge || n.challenge.length < 40)
2457
2457
  throw new Error("Challenge is too short. Min. 40 chars.");
2458
2458
  if (!n.salt || n.salt.length < 10)
@@ -2489,7 +2489,7 @@ function Fl(e, t) {
2489
2489
  const p = new AbortController(), h = [];
2490
2490
  g = Math.min(16, u, Math.max(1, g));
2491
2491
  for (let B = 0; B < g; B++)
2492
- h.push(altchaCreateWorker(St()));
2492
+ h.push(altchaCreateWorker($t()));
2493
2493
  const C = Math.ceil(u / g);
2494
2494
  return { promise: (async () => {
2495
2495
  const B = await Promise.all(h.map((V, Q) => {
@@ -2497,11 +2497,11 @@ function Fl(e, t) {
2497
2497
  return p.signal.addEventListener("abort", () => {
2498
2498
  V.postMessage({ type: "abort" });
2499
2499
  }), new Promise((tt) => {
2500
- V.addEventListener("message", (pt) => {
2501
- if (pt.data)
2500
+ V.addEventListener("message", (gt) => {
2501
+ if (gt.data)
2502
2502
  for (const rt of h)
2503
2503
  rt !== V && rt.postMessage({ type: "abort" });
2504
- tt(pt.data);
2504
+ tt(gt.data);
2505
2505
  }), V.postMessage({
2506
2506
  payload: n,
2507
2507
  max: le + C,
@@ -2529,7 +2529,7 @@ function Fl(e, t) {
2529
2529
  return n.clarify();
2530
2530
  }
2531
2531
  function xn(n) {
2532
- n.obfuscated !== void 0 && Me(n.obfuscated), n.auto !== void 0 && (o(n.auto), o() === "onload" && (Me() ? Nt() : Pe())), n.blockspam !== void 0 && f(!!n.blockspam), n.customfetch !== void 0 && _(n.customfetch), n.floatinganchor !== void 0 && U(n.floatinganchor), n.delay !== void 0 && m(n.delay), n.floatingoffset !== void 0 && ce(n.floatingoffset), n.floating !== void 0 && yn(n.floating), n.expire !== void 0 && (Ar(n.expire), $(n.expire)), n.challenge && (c(typeof n.challenge == "string" ? n.challenge : JSON.stringify(n.challenge)), En(a(zt))), n.challengeurl !== void 0 && s(n.challengeurl), n.debug !== void 0 && v(!!n.debug), n.hidefooter !== void 0 && te(!!n.hidefooter), n.hidelogo !== void 0 && X(!!n.hidelogo), n.language !== void 0 && ct(an(l(), [n.language])), n.maxnumber !== void 0 && be(+n.maxnumber), n.mockerror !== void 0 && It(!!n.mockerror), n.name !== void 0 && ae(n.name), n.overlaycontent !== void 0 && Rt(n.overlaycontent), n.overlay !== void 0 && wn(n.overlay), n.refetchonexpire !== void 0 && $t(!!n.refetchonexpire), n.sentinel !== void 0 && typeof n.sentinel == "object" && ze(n.sentinel), n.spamfilter !== void 0 && Ae(typeof n.spamfilter == "object" ? n.spamfilter : !!n.spamfilter), n.strings && ct(typeof n.strings == "string" ? n.strings : JSON.stringify(n.strings)), n.test !== void 0 && ge(typeof n.test == "number" ? n.test : !!n.test), n.verifyurl !== void 0 && re(n.verifyurl), n.workers !== void 0 && dt(+n.workers), n.workerurl !== void 0 && St(n.workerurl);
2532
+ n.obfuscated !== void 0 && Me(n.obfuscated), n.auto !== void 0 && (o(n.auto), o() === "onload" && (Me() ? Nt() : Pe())), n.blockspam !== void 0 && f(!!n.blockspam), n.customfetch !== void 0 && _(n.customfetch), n.floatinganchor !== void 0 && U(n.floatinganchor), n.delay !== void 0 && m(n.delay), n.floatingoffset !== void 0 && ce(n.floatingoffset), n.floating !== void 0 && yn(n.floating), n.expire !== void 0 && (kr(n.expire), $(n.expire)), n.challenge && (c(typeof n.challenge == "string" ? n.challenge : JSON.stringify(n.challenge)), En(a(zt))), n.challengeurl !== void 0 && s(n.challengeurl), n.debug !== void 0 && v(!!n.debug), n.hidefooter !== void 0 && te(!!n.hidefooter), n.hidelogo !== void 0 && X(!!n.hidelogo), n.language !== void 0 && ct(on(l(), [n.language])), n.maxnumber !== void 0 && be(+n.maxnumber), n.mockerror !== void 0 && At(!!n.mockerror), n.name !== void 0 && ae(n.name), n.overlaycontent !== void 0 && It(n.overlaycontent), n.overlay !== void 0 && wn(n.overlay), n.refetchonexpire !== void 0 && Rt(!!n.refetchonexpire), n.sentinel !== void 0 && typeof n.sentinel == "object" && ze(n.sentinel), n.spamfilter !== void 0 && Ae(typeof n.spamfilter == "object" ? n.spamfilter : !!n.spamfilter), n.strings && ct(typeof n.strings == "string" ? n.strings : JSON.stringify(n.strings)), n.test !== void 0 && ge(typeof n.test == "number" ? n.test : !!n.test), n.verifyurl !== void 0 && re(n.verifyurl), n.workers !== void 0 && dt(+n.workers), n.workerurl !== void 0 && $t(n.workerurl);
2533
2533
  }
2534
2534
  function kn() {
2535
2535
  return {
@@ -2546,16 +2546,16 @@ function Fl(e, t) {
2546
2546
  hidelogo: X(),
2547
2547
  name: ae(),
2548
2548
  maxnumber: be(),
2549
- mockerror: It(),
2549
+ mockerror: At(),
2550
2550
  obfuscated: Me(),
2551
2551
  overlay: ye(),
2552
- refetchonexpire: $t(),
2552
+ refetchonexpire: Rt(),
2553
2553
  spamfilter: Ae(),
2554
2554
  strings: a(P),
2555
2555
  test: ge(),
2556
2556
  verifyurl: re(),
2557
2557
  workers: dt(),
2558
- workerurl: St()
2558
+ workerurl: $t()
2559
2559
  };
2560
2560
  }
2561
2561
  function An() {
@@ -2575,15 +2575,15 @@ function Fl(e, t) {
2575
2575
  if (a(M))
2576
2576
  if (a(ht) || b(ht, (U() ? document.querySelector(U()) : (u = a(N)) == null ? void 0 : u.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || a(N), !0), a(ht)) {
2577
2577
  const g = parseInt(ce(), 10) || 12, p = a(ht).getBoundingClientRect(), h = a(M).getBoundingClientRect(), C = document.documentElement.clientHeight, A = document.documentElement.clientWidth, B = E() === "auto" ? p.bottom + h.height + g + n > C : E() === "top", V = Math.max(n, Math.min(A - n - h.width, p.left + p.width / 2 - h.width / 2));
2578
- if (B ? a(M).style.top = `${p.top - (h.height + g)}px` : a(M).style.top = `${p.bottom + g}px`, a(M).style.left = `${V}px`, a(M).setAttribute("data-floating", B ? "top" : "bottom"), a(Dt)) {
2579
- const Q = a(Dt).getBoundingClientRect();
2580
- a(Dt).style.left = p.left - V + p.width / 2 - Q.width / 2 + "px";
2578
+ if (B ? a(M).style.top = `${p.top - (h.height + g)}px` : a(M).style.top = `${p.bottom + g}px`, a(M).style.left = `${V}px`, a(M).setAttribute("data-floating", B ? "top" : "bottom"), a(Tt)) {
2579
+ const Q = a(Tt).getBoundingClientRect();
2580
+ a(Tt).style.left = p.left - V + p.width / 2 - Q.width / 2 + "px";
2581
2581
  }
2582
2582
  } else
2583
2583
  R("unable to find floating anchor element");
2584
2584
  }
2585
2585
  function Qe(n = w.UNVERIFIED, u = null) {
2586
- a(Je) && (a(Je).abort(), b(Je, null)), b(Tt, !1), b(Re, null), b(H, null), b(xr, !1), b(G, null), $e(n, u);
2586
+ a(Je) && (a(Je).abort(), b(Je, null)), b(St, !1), b(Re, null), b(H, null), b(xr, !1), b(G, null), $e(n, u);
2587
2587
  }
2588
2588
  function Rn(n) {
2589
2589
  b(ht, n, !0);
@@ -2606,7 +2606,7 @@ function Fl(e, t) {
2606
2606
  ["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(((g = document.activeElement) == null ? void 0 : g.tagName) || "") && y() === !1 && document.activeElement.blur(), b(H, { challenge: n, solution: u }, !0);
2607
2607
  else {
2608
2608
  if (re() && ze() !== void 0)
2609
- return bn(Jt(n, u));
2609
+ return _n(Jt(n, u));
2610
2610
  if (re())
2611
2611
  return bo(Jt(n, u));
2612
2612
  b(Re, Jt(n, u), !0), R("payload", a(Re));
@@ -2615,10 +2615,10 @@ function Fl(e, t) {
2615
2615
  throw R("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
2616
2616
  }
2617
2617
  }).then(() => {
2618
- a(H) ? ($e(w.CODE), Nr().then(() => {
2618
+ a(H) ? ($e(w.CODE), Dr().then(() => {
2619
2619
  Ve("code", { codeChallenge: a(H) });
2620
- })) : a(Re) && ($e(w.VERIFIED), R("verified"), Nr().then(() => {
2621
- Ve("verified", { payload: a(Re) }), o() === "onsubmit" ? kr(a(vt)) : ye() && Lt();
2620
+ })) : a(Re) && ($e(w.VERIFIED), R("verified"), Dr().then(() => {
2621
+ Ve("verified", { payload: a(Re) }), ye() && Lt();
2622
2622
  }));
2623
2623
  }).catch((n) => {
2624
2624
  R(n), $e(w.ERROR, n.message);
@@ -2626,12 +2626,12 @@ function Fl(e, t) {
2626
2626
  }
2627
2627
  var $n = Ol(), Sn = Ft($n);
2628
2628
  za(Sn, t, "default", {});
2629
- var gt = z(Sn, 2), Ir = Z(gt), Xt = Z(Ir);
2629
+ var vt = z(Sn, 2), Ar = Z(vt), Xt = Z(Ar);
2630
2630
  let Tn;
2631
2631
  var Dn = Z(Xt);
2632
2632
  {
2633
2633
  var Eo = (n) => {
2634
- Lr(n);
2634
+ Nr(n);
2635
2635
  };
2636
2636
  J(Dn, (n) => {
2637
2637
  a(I) === w.VERIFYING && n(Eo);
@@ -2643,7 +2643,7 @@ function Fl(e, t) {
2643
2643
  I,
2644
2644
  Ae,
2645
2645
  N,
2646
- Tt,
2646
+ St,
2647
2647
  Me,
2648
2648
  Nt,
2649
2649
  Pe
@@ -2718,51 +2718,51 @@ function Fl(e, t) {
2718
2718
  var u = Sl(), g = z(Z(u), 2), p = Z(g), h = z(p, 2);
2719
2719
  qa(h, !y()), h.__keydown = [
2720
2720
  bl,
2721
- gn
2721
+ vn
2722
2722
  ];
2723
2723
  var C = z(h, 2), A = Z(C), B = Z(A);
2724
2724
  {
2725
2725
  var V = (we) => {
2726
2726
  var W = Rl();
2727
- W.__click = gn;
2727
+ W.__click = vn;
2728
2728
  var er = Z(W);
2729
2729
  {
2730
- var Ot = (mt) => {
2731
- Lr(mt, () => 20);
2732
- }, Fo = (mt, Mo) => {
2730
+ var Ot = (pt) => {
2731
+ Nr(pt, () => 20);
2732
+ }, Fo = (pt, Mo) => {
2733
2733
  {
2734
- var Vo = (_t) => {
2735
- var Rr = kl();
2736
- j(_t, Rr);
2737
- }, Uo = (_t, Rr) => {
2734
+ var Vo = (mt) => {
2735
+ var Ir = kl();
2736
+ j(mt, Ir);
2737
+ }, Uo = (mt, Ir) => {
2738
2738
  {
2739
- var jo = (bt) => {
2740
- var $r = Al();
2741
- j(bt, $r);
2742
- }, qo = (bt) => {
2743
- var $r = Il();
2744
- j(bt, $r);
2739
+ var jo = (_t) => {
2740
+ var Rr = Al();
2741
+ j(_t, Rr);
2742
+ }, qo = (_t) => {
2743
+ var Rr = Il();
2744
+ j(_t, Rr);
2745
2745
  };
2746
2746
  J(
2747
- _t,
2748
- (bt) => {
2749
- a(G) === ee.PLAYING ? bt(jo) : bt(qo, !1);
2747
+ mt,
2748
+ (_t) => {
2749
+ a(G) === ee.PLAYING ? _t(jo) : _t(qo, !1);
2750
2750
  },
2751
- Rr
2751
+ Ir
2752
2752
  );
2753
2753
  }
2754
2754
  };
2755
2755
  J(
2756
- mt,
2757
- (_t) => {
2758
- a(G) === ee.ERROR ? _t(Vo) : _t(Uo, !1);
2756
+ pt,
2757
+ (mt) => {
2758
+ a(G) === ee.ERROR ? mt(Vo) : mt(Uo, !1);
2759
2759
  },
2760
2760
  Mo
2761
2761
  );
2762
2762
  }
2763
2763
  };
2764
- J(er, (mt) => {
2765
- a(G) === ee.LOADING ? mt(Ot) : mt(Fo, !1);
2764
+ J(er, (pt) => {
2765
+ a(G) === ee.LOADING ? pt(Ot) : pt(Fo, !1);
2766
2766
  });
2767
2767
  }
2768
2768
  Y(W), Se(() => {
@@ -2777,11 +2777,11 @@ function Fl(e, t) {
2777
2777
  Q.__click = [yl, Pe], Y(A);
2778
2778
  var le = z(A, 2), tt = Z(le);
2779
2779
  {
2780
- var pt = (we) => {
2781
- Lr(we, () => 16);
2780
+ var gt = (we) => {
2781
+ Nr(we, () => 16);
2782
2782
  };
2783
2783
  J(tt, (we) => {
2784
- a(Xe) && we(pt);
2784
+ a(Xe) && we(gt);
2785
2785
  });
2786
2786
  }
2787
2787
  var rt = z(tt);
@@ -2791,7 +2791,7 @@ function Fl(e, t) {
2791
2791
  var Oo = (we) => {
2792
2792
  var W = $l(), er = Z(W);
2793
2793
  Y(W), rr(W, (Ot) => b(Ue, Ot), () => a(Ue)), Se((Ot) => S(er, "src", Ot), [
2794
- () => sn(a(H).challenge.codeChallenge.audio, { language: q() })
2794
+ () => ln(a(H).challenge.codeChallenge.audio, { language: q() })
2795
2795
  ]), qe("loadstart", W, ho), qe("canplay", W, co), qe("pause", W, go), qe("playing", W, vo), qe("ended", W, uo), qe("error", er, fo), j(we, W);
2796
2796
  };
2797
2797
  J(Po, (we) => {
@@ -2807,8 +2807,8 @@ function Fl(e, t) {
2807
2807
  (u = a(H)) != null && u.challenge.codeChallenge && n($o);
2808
2808
  });
2809
2809
  }
2810
- Y(Ir);
2811
- var Pn = z(Ir, 2);
2810
+ Y(Ar);
2811
+ var Pn = z(Ar, 2);
2812
2812
  {
2813
2813
  var So = (n) => {
2814
2814
  var u = Nl(), g = z(Z(u), 2);
@@ -2844,22 +2844,22 @@ function Fl(e, t) {
2844
2844
  {
2845
2845
  var No = (n) => {
2846
2846
  var u = Pl();
2847
- rr(u, (g) => b(Dt, g), () => a(Dt)), j(n, u);
2847
+ rr(u, (g) => b(Tt, g), () => a(Tt)), j(n, u);
2848
2848
  };
2849
2849
  J(Do, (n) => {
2850
2850
  E() && n(No);
2851
2851
  });
2852
2852
  }
2853
- Y(gt), rr(gt, (n) => b(M, n), () => a(M)), Se(
2853
+ Y(vt), rr(vt, (n) => b(M, n), () => a(M)), Se(
2854
2854
  (n) => {
2855
- S(gt, "data-state", a(I)), S(gt, "data-floating", E()), S(gt, "data-overlay", ye()), Tn = Ka(Xt, 1, "altcha-checkbox", null, Tn, n), S(et, "id", a(rn)), et.required = o() !== "onsubmit" && (!E() || o() !== "off"), S(Qt, "for", a(rn));
2855
+ S(vt, "data-state", a(I)), S(vt, "data-floating", E()), S(vt, "data-overlay", ye()), Tn = Ka(Xt, 1, "altcha-checkbox", null, Tn, n), S(et, "id", a(tn)), et.required = o() !== "onsubmit" && (!E() || o() !== "off"), S(Qt, "for", a(tn));
2856
2856
  },
2857
2857
  [
2858
2858
  () => ({
2859
2859
  "altcha-checkbox-verifying": a(I) === w.VERIFYING
2860
2860
  })
2861
2861
  ]
2862
- ), qe("invalid", et, vn), rl(et, () => a(Tt), (n) => b(Tt, n)), j(e, $n);
2862
+ ), qe("invalid", et, hn), rl(et, () => a(St), (n) => b(St, n)), j(e, $n);
2863
2863
  var Lo = Vi({
2864
2864
  clarify: Nt,
2865
2865
  configure: xn,
@@ -2995,10 +2995,10 @@ function Fl(e, t) {
2995
2995
  be(n), x();
2996
2996
  },
2997
2997
  get mockerror() {
2998
- return It();
2998
+ return At();
2999
2999
  },
3000
3000
  set mockerror(n = !1) {
3001
- It(n), x();
3001
+ At(n), x();
3002
3002
  },
3003
3003
  get obfuscated() {
3004
3004
  return Me();
@@ -3013,10 +3013,10 @@ function Fl(e, t) {
3013
3013
  ye(n), x();
3014
3014
  },
3015
3015
  get overlaycontent() {
3016
- return Rt();
3016
+ return It();
3017
3017
  },
3018
3018
  set overlaycontent(n = void 0) {
3019
- Rt(n), x();
3019
+ It(n), x();
3020
3020
  },
3021
3021
  get plugins() {
3022
3022
  return Zt();
@@ -3025,10 +3025,10 @@ function Fl(e, t) {
3025
3025
  Zt(n), x();
3026
3026
  },
3027
3027
  get refetchonexpire() {
3028
- return $t();
3028
+ return Rt();
3029
3029
  },
3030
3030
  set refetchonexpire(n = !0) {
3031
- $t(n), x();
3031
+ Rt(n), x();
3032
3032
  },
3033
3033
  get sentinel() {
3034
3034
  return ze();
@@ -3067,10 +3067,10 @@ function Fl(e, t) {
3067
3067
  dt(n), x();
3068
3068
  },
3069
3069
  get workerurl() {
3070
- return St();
3070
+ return $t();
3071
3071
  },
3072
3072
  set workerurl(n = void 0) {
3073
- St(n), x();
3073
+ $t(n), x();
3074
3074
  }
3075
3075
  });
3076
3076
  return i(), Lo;