altcha 2.2.2 → 2.2.3

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,16 +1,16 @@
1
- var Bo = Object.defineProperty;
2
- var Vn = (e) => {
1
+ var Ho = Object.defineProperty;
2
+ var Un = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Ho = (e, t, r) => t in e ? Bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
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)), $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
- 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
- `, jn = typeof self < "u" && self.Blob && new Blob([ni], { type: "text/javascript;charset=utf-8" });
10
- function Go(e) {
5
+ var Go = (e, t, r) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
+ var ye = (e, t, r) => Go(e, typeof t != "symbol" ? t + "" : t, r), jn = (e, t, r) => t.has(e) || Un("Cannot " + r);
7
+ var se = (e, t, r) => (jn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), $r = (e, t, r) => t.has(e) ? Un("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Tr = (e, t, r, i) => (jn(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
8
+ const ii = `(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
+ `, qn = typeof self < "u" && self.Blob && new Blob([ii], { type: "text/javascript;charset=utf-8" });
10
+ function Wo(e) {
11
11
  let t;
12
12
  try {
13
- if (t = jn && (self.URL || self.webkitURL).createObjectURL(jn), !t) throw "";
13
+ if (t = qn && (self.URL || self.webkitURL).createObjectURL(qn), !t) throw "";
14
14
  const r = new Worker(t, {
15
15
  name: e == null ? void 0 : e.name
16
16
  });
@@ -19,7 +19,7 @@ function Go(e) {
19
19
  }), r;
20
20
  } catch {
21
21
  return new Worker(
22
- "data:text/javascript;charset=utf-8," + encodeURIComponent(ni),
22
+ "data:text/javascript;charset=utf-8," + encodeURIComponent(ii),
23
23
  {
24
24
  name: e == null ? void 0 : e.name
25
25
  }
@@ -28,21 +28,21 @@ function Go(e) {
28
28
  t && (self.URL || self.webkitURL).revokeObjectURL(t);
29
29
  }
30
30
  }
31
- const Wo = "5";
32
- var ri;
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, qr = "[", ii = "[!", oi = "]", Et = {}, ue = Symbol(), Qo = "http://www.w3.org/1999/xhtml", qn = !1;
35
- function ai(e) {
31
+ const Yo = "5";
32
+ var ni;
33
+ typeof window < "u" && ((ni = window.__svelte ?? (window.__svelte = {})).v ?? (ni.v = /* @__PURE__ */ new Set())).add(Yo);
34
+ const Zo = 1, zo = 4, Jo = 8, Ko = 16, Xo = 1, Qo = 2, Br = "[", oi = "[!", ai = "]", xt = {}, ue = Symbol(), ea = "http://www.w3.org/1999/xhtml", Bn = !1;
35
+ function li(e) {
36
36
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
37
37
  }
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 Ct = () => {
38
+ var si = Array.isArray, ta = Array.prototype.indexOf, ra = Array.from, sr = Object.keys, Bt = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, na = Object.getOwnPropertyDescriptors, ia = Object.prototype, oa = Array.prototype, ui = Object.getPrototypeOf, Hn = Object.isExtensible;
39
+ const kt = () => {
40
40
  };
41
- function ui(e) {
41
+ function fi(e) {
42
42
  for (var t = 0; t < e.length; t++)
43
43
  e[t]();
44
44
  }
45
- function oa(e, t, r = !1) {
45
+ function aa(e, t, r = !1) {
46
46
  return e === void 0 ? r ? (
47
47
  /** @type {() => V} */
48
48
  t()
@@ -51,93 +51,93 @@ function oa(e, t, r = !1) {
51
51
  t
52
52
  ) : e;
53
53
  }
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
- function ua(e) {
54
+ const we = 2, ci = 4, gr = 8, Hr = 16, Fe = 32, ft = 64, ur = 128, he = 256, fr = 512, fe = 1024, De = 2048, ct = 4096, At = 8192, pr = 16384, la = 32768, Gr = 65536, sa = 1 << 19, di = 1 << 20, Pr = 1 << 21, jt = Symbol("$state"), hi = Symbol("legacy props"), ua = Symbol("");
55
+ function fa(e) {
56
56
  throw new Error("https://svelte.dev/e/effect_in_teardown");
57
57
  }
58
- function fa() {
58
+ function ca() {
59
59
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
60
60
  }
61
- function ca(e) {
61
+ function da(e) {
62
62
  throw new Error("https://svelte.dev/e/effect_orphan");
63
63
  }
64
- function da() {
64
+ function ha() {
65
65
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
66
66
  }
67
- function ha() {
67
+ function va() {
68
68
  throw new Error("https://svelte.dev/e/hydration_failed");
69
69
  }
70
- function va(e) {
70
+ function ga(e) {
71
71
  throw new Error("https://svelte.dev/e/props_invalid_value");
72
72
  }
73
- function ga() {
73
+ function pa() {
74
74
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
75
75
  }
76
- function pa() {
76
+ function ma() {
77
77
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
78
78
  }
79
- function ma() {
79
+ function ba() {
80
80
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
81
81
  }
82
- function pr(e) {
82
+ function mr(e) {
83
83
  console.warn("https://svelte.dev/e/hydration_mismatch");
84
84
  }
85
- let F = !1;
86
- function wt(e) {
87
- F = e;
85
+ let M = !1;
86
+ function Ct(e) {
87
+ M = e;
88
88
  }
89
- let O;
90
- function Ge(e) {
89
+ let F;
90
+ function We(e) {
91
91
  if (e === null)
92
- throw pr(), Et;
93
- return O = e;
92
+ throw mr(), xt;
93
+ return F = e;
94
94
  }
95
- function kt() {
96
- return Ge(
95
+ function It() {
96
+ return We(
97
97
  /** @type {TemplateNode} */
98
- /* @__PURE__ */ Ze(O)
98
+ /* @__PURE__ */ ze(F)
99
99
  );
100
100
  }
101
- function Y(e) {
102
- if (F) {
103
- if (/* @__PURE__ */ Ze(O) !== null)
104
- throw pr(), Et;
105
- O = e;
101
+ function Z(e) {
102
+ if (M) {
103
+ if (/* @__PURE__ */ ze(F) !== null)
104
+ throw mr(), xt;
105
+ F = e;
106
106
  }
107
107
  }
108
108
  function _a() {
109
- for (var e = 0, t = O; ; ) {
109
+ for (var e = 0, t = F; ; ) {
110
110
  if (t.nodeType === 8) {
111
111
  var r = (
112
112
  /** @type {Comment} */
113
113
  t.data
114
114
  );
115
- if (r === oi) {
115
+ if (r === ai) {
116
116
  if (e === 0) return t;
117
117
  e -= 1;
118
- } else (r === qr || r === ii) && (e += 1);
118
+ } else (r === Br || r === oi) && (e += 1);
119
119
  }
120
120
  var i = (
121
121
  /** @type {TemplateNode} */
122
- /* @__PURE__ */ Ze(t)
122
+ /* @__PURE__ */ ze(t)
123
123
  );
124
124
  t.remove(), t = i;
125
125
  }
126
126
  }
127
- let ba = !1;
128
- function Be(e) {
129
- if (typeof e != "object" || e === null || Ut in e)
127
+ let ya = !1;
128
+ function He(e) {
129
+ if (typeof e != "object" || e === null || jt in e)
130
130
  return e;
131
- const t = si(e);
132
- if (t !== na && t !== ia)
131
+ const t = ui(e);
132
+ if (t !== ia && t !== oa)
133
133
  return e;
134
- var r = /* @__PURE__ */ new Map(), i = li(e), l = /* @__PURE__ */ L(0), o = T, f = (s) => {
135
- var c = T;
136
- Le(o);
134
+ var r = /* @__PURE__ */ new Map(), i = si(e), l = /* @__PURE__ */ P(0), o = $, f = (s) => {
135
+ var c = $;
136
+ Ne(o);
137
137
  var d = s();
138
- return Le(c), d;
138
+ return Ne(c), d;
139
139
  };
140
- return i && r.set("length", /* @__PURE__ */ L(
140
+ return i && r.set("length", /* @__PURE__ */ P(
141
141
  /** @type {any[]} */
142
142
  e.length
143
143
  )), new Proxy(
@@ -145,11 +145,11 @@ function Be(e) {
145
145
  e,
146
146
  {
147
147
  defineProperty(s, c, d) {
148
- (!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && ga();
149
- var _ = r.get(c);
150
- return _ === void 0 ? (_ = f(() => /* @__PURE__ */ L(d.value)), r.set(c, _)) : b(
151
- _,
152
- f(() => Be(d.value))
148
+ (!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && pa();
149
+ var b = r.get(c);
150
+ return b === void 0 ? (b = f(() => /* @__PURE__ */ P(d.value)), r.set(c, b)) : _(
151
+ b,
152
+ f(() => He(d.value))
153
153
  ), !0;
154
154
  },
155
155
  deleteProperty(s, c) {
@@ -157,27 +157,27 @@ function Be(e) {
157
157
  if (d === void 0)
158
158
  c in s && (r.set(
159
159
  c,
160
- f(() => /* @__PURE__ */ L(ue))
161
- ), Tr(l));
160
+ f(() => /* @__PURE__ */ P(ue))
161
+ ), Dr(l));
162
162
  else {
163
163
  if (i && typeof c == "string") {
164
- var _ = (
164
+ var b = (
165
165
  /** @type {Source<number>} */
166
166
  r.get("length")
167
167
  ), v = Number(c);
168
- Number.isInteger(v) && v < _.v && b(_, v);
168
+ Number.isInteger(v) && v < b.v && _(b, v);
169
169
  }
170
- b(d, ue), Tr(l);
170
+ _(d, ue), Dr(l);
171
171
  }
172
172
  return !0;
173
173
  },
174
174
  get(s, c, d) {
175
175
  var y;
176
- if (c === Ut)
176
+ if (c === jt)
177
177
  return e;
178
- var _ = r.get(c), v = c in s;
179
- if (_ === void 0 && (!v || (y = it(s, c)) != null && y.writable) && (_ = f(() => /* @__PURE__ */ L(Be(v ? s[c] : ue))), r.set(c, _)), _ !== void 0) {
180
- var m = a(_);
178
+ var b = r.get(c), v = c in s;
179
+ if (b === void 0 && (!v || (y = lt(s, c)) != null && y.writable) && (b = f(() => /* @__PURE__ */ P(He(v ? s[c] : ue))), r.set(c, b)), b !== void 0) {
180
+ var m = a(b);
181
181
  return m === ue ? void 0 : m;
182
182
  }
183
183
  return Reflect.get(s, c, d);
@@ -185,8 +185,8 @@ function Be(e) {
185
185
  getOwnPropertyDescriptor(s, c) {
186
186
  var d = Reflect.getOwnPropertyDescriptor(s, c);
187
187
  if (d && "value" in d) {
188
- var _ = r.get(c);
189
- _ && (d.value = a(_));
188
+ var b = r.get(c);
189
+ b && (d.value = a(b));
190
190
  } else if (d === void 0) {
191
191
  var v = r.get(c), m = v == null ? void 0 : v.v;
192
192
  if (v !== void 0 && m !== ue)
@@ -201,43 +201,43 @@ function Be(e) {
201
201
  },
202
202
  has(s, c) {
203
203
  var m;
204
- if (c === Ut)
204
+ if (c === jt)
205
205
  return !0;
206
- var d = r.get(c), _ = d !== void 0 && d.v !== ue || Reflect.has(s, c);
207
- if (d !== void 0 || D !== null && (!_ || (m = it(s, c)) != null && m.writable)) {
208
- d === void 0 && (d = f(() => /* @__PURE__ */ L(_ ? Be(s[c]) : ue)), r.set(c, d));
206
+ var d = r.get(c), b = d !== void 0 && d.v !== ue || Reflect.has(s, c);
207
+ if (d !== void 0 || T !== null && (!b || (m = lt(s, c)) != null && m.writable)) {
208
+ d === void 0 && (d = f(() => /* @__PURE__ */ P(b ? He(s[c]) : ue)), r.set(c, d));
209
209
  var v = a(d);
210
210
  if (v === ue)
211
211
  return !1;
212
212
  }
213
- return _;
213
+ return b;
214
214
  },
215
- set(s, c, d, _) {
216
- var K;
215
+ set(s, c, d, b) {
216
+ var X;
217
217
  var v = r.get(c), m = c in s;
218
218
  if (i && c === "length")
219
219
  for (var y = d; y < /** @type {Source<number>} */
220
220
  v.v; y += 1) {
221
- var $ = r.get(y + "");
222
- $ !== void 0 ? b($, ue) : y in s && ($ = f(() => /* @__PURE__ */ L(ue)), r.set(y + "", $));
221
+ var D = r.get(y + "");
222
+ D !== void 0 ? _(D, ue) : y in s && (D = f(() => /* @__PURE__ */ P(ue)), r.set(y + "", D));
223
223
  }
224
- v === void 0 ? (!m || (K = it(s, c)) != null && K.writable) && (v = f(() => /* @__PURE__ */ L(void 0)), b(
224
+ v === void 0 ? (!m || (X = lt(s, c)) != null && X.writable) && (v = f(() => /* @__PURE__ */ P(void 0)), _(
225
225
  v,
226
- f(() => Be(d))
227
- ), r.set(c, v)) : (m = v.v !== ue, b(
226
+ f(() => He(d))
227
+ ), r.set(c, v)) : (m = v.v !== ue, _(
228
228
  v,
229
- f(() => Be(d))
229
+ f(() => He(d))
230
230
  ));
231
- var E = Reflect.getOwnPropertyDescriptor(s, c);
232
- if (E != null && E.set && E.set.call(_, d), !m) {
231
+ var N = Reflect.getOwnPropertyDescriptor(s, c);
232
+ if (N != null && N.set && N.set.call(b, d), !m) {
233
233
  if (i && typeof c == "string") {
234
- var U = (
234
+ var j = (
235
235
  /** @type {Source<number>} */
236
236
  r.get("length")
237
- ), ce = Number(c);
238
- Number.isInteger(ce) && ce >= U.v && b(U, ce + 1);
237
+ ), R = Number(c);
238
+ Number.isInteger(R) && R >= j.v && _(j, R + 1);
239
239
  }
240
- Tr(l);
240
+ Dr(l);
241
241
  }
242
242
  return !0;
243
243
  },
@@ -247,98 +247,98 @@ function Be(e) {
247
247
  var m = r.get(v);
248
248
  return m === void 0 || m.v !== ue;
249
249
  });
250
- for (var [d, _] of r)
251
- _.v !== ue && !(d in s) && c.push(d);
250
+ for (var [d, b] of r)
251
+ b.v !== ue && !(d in s) && c.push(d);
252
252
  return c;
253
253
  },
254
254
  setPrototypeOf() {
255
- pa();
255
+ ma();
256
256
  }
257
257
  }
258
258
  );
259
259
  }
260
- function Tr(e, t = 1) {
261
- b(e, e.v + t);
260
+ function Dr(e, t = 1) {
261
+ _(e, e.v + t);
262
262
  }
263
- var Hn, hi, vi, gi;
264
- function Pr() {
265
- if (Hn === void 0) {
266
- Hn = window, hi = /Firefox/.test(navigator.userAgent);
263
+ var Gn, vi, gi, pi;
264
+ function Or() {
265
+ if (Gn === void 0) {
266
+ Gn = window, vi = /Firefox/.test(navigator.userAgent);
267
267
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
268
- vi = it(t, "firstChild").get, gi = it(t, "nextSibling").get, Bn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Bn(r) && (r.__t = void 0);
268
+ gi = lt(t, "firstChild").get, pi = lt(t, "nextSibling").get, Hn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Hn(r) && (r.__t = void 0);
269
269
  }
270
270
  }
271
- function mr(e = "") {
271
+ function br(e = "") {
272
272
  return document.createTextNode(e);
273
273
  }
274
274
  // @__NO_SIDE_EFFECTS__
275
- function _e(e) {
276
- return vi.call(e);
275
+ function me(e) {
276
+ return gi.call(e);
277
277
  }
278
278
  // @__NO_SIDE_EFFECTS__
279
- function Ze(e) {
280
- return gi.call(e);
279
+ function ze(e) {
280
+ return pi.call(e);
281
281
  }
282
- function Z(e, t) {
283
- if (!F)
284
- return /* @__PURE__ */ _e(e);
282
+ function z(e, t) {
283
+ if (!M)
284
+ return /* @__PURE__ */ me(e);
285
285
  var r = (
286
286
  /** @type {TemplateNode} */
287
- /* @__PURE__ */ _e(O)
287
+ /* @__PURE__ */ me(F)
288
288
  );
289
- return r === null && (r = O.appendChild(mr())), Ge(r), r;
289
+ return r === null && (r = F.appendChild(br())), We(r), r;
290
290
  }
291
- function Ft(e, t) {
292
- if (!F) {
291
+ function Mt(e, t) {
292
+ if (!M) {
293
293
  var r = (
294
294
  /** @type {DocumentFragment} */
295
- /* @__PURE__ */ _e(
295
+ /* @__PURE__ */ me(
296
296
  /** @type {Node} */
297
297
  e
298
298
  )
299
299
  );
300
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ze(r) : r;
300
+ return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ze(r) : r;
301
301
  }
302
- return O;
302
+ return F;
303
303
  }
304
- function z(e, t = 1, r = !1) {
305
- let i = F ? O : e;
304
+ function J(e, t = 1, r = !1) {
305
+ let i = M ? F : e;
306
306
  for (var l; t--; )
307
307
  l = i, i = /** @type {TemplateNode} */
308
- /* @__PURE__ */ Ze(i);
309
- if (!F)
308
+ /* @__PURE__ */ ze(i);
309
+ if (!M)
310
310
  return i;
311
311
  var o = i == null ? void 0 : i.nodeType;
312
312
  if (r && o !== 3) {
313
- var f = mr();
314
- return i === null ? l == null || l.after(f) : i.before(f), Ge(f), f;
313
+ var f = br();
314
+ return i === null ? l == null || l.after(f) : i.before(f), We(f), f;
315
315
  }
316
- return Ge(i), /** @type {TemplateNode} */
316
+ return We(i), /** @type {TemplateNode} */
317
317
  i;
318
318
  }
319
- function ya(e) {
319
+ function wa(e) {
320
320
  e.textContent = "";
321
321
  }
322
- function pi(e) {
322
+ function mi(e) {
323
323
  return e === this.v;
324
324
  }
325
- function mi(e, t) {
325
+ function bi(e, t) {
326
326
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
327
327
  }
328
- function Gr(e) {
329
- return !mi(e, this.v);
328
+ function Wr(e) {
329
+ return !bi(e, this.v);
330
330
  }
331
331
  // @__NO_SIDE_EFFECTS__
332
332
  function _r(e) {
333
- var t = Ce | Ne, r = T !== null && (T.f & Ce) !== 0 ? (
333
+ var t = we | De, r = $ !== null && ($.f & we) !== 0 ? (
334
334
  /** @type {Derived} */
335
- T
335
+ $
336
336
  ) : null;
337
- return D === null || r !== null && (r.f & ve) !== 0 ? t |= ve : D.f |= ci, {
337
+ return T === null || r !== null && (r.f & he) !== 0 ? t |= he : T.f |= di, {
338
338
  ctx: oe,
339
339
  deps: null,
340
340
  effects: null,
341
- equals: pi,
341
+ equals: mi,
342
342
  f: t,
343
343
  fn: e,
344
344
  reactions: null,
@@ -348,33 +348,33 @@ function _r(e) {
348
348
  null
349
349
  ),
350
350
  wv: 0,
351
- parent: r ?? D
351
+ parent: r ?? T
352
352
  };
353
353
  }
354
354
  // @__NO_SIDE_EFFECTS__
355
- function Mt(e) {
355
+ function Vt(e) {
356
356
  const t = /* @__PURE__ */ _r(e);
357
- return Si(t), t;
357
+ return Ti(t), t;
358
358
  }
359
359
  // @__NO_SIDE_EFFECTS__
360
- function wa(e) {
360
+ function Ea(e) {
361
361
  const t = /* @__PURE__ */ _r(e);
362
- return t.equals = Gr, t;
362
+ return t.equals = Wr, t;
363
363
  }
364
364
  function _i(e) {
365
365
  var t = e.effects;
366
366
  if (t !== null) {
367
367
  e.effects = null;
368
368
  for (var r = 0; r < t.length; r += 1)
369
- We(
369
+ Ye(
370
370
  /** @type {Effect} */
371
371
  t[r]
372
372
  );
373
373
  }
374
374
  }
375
- function Ea(e) {
375
+ function Ca(e) {
376
376
  for (var t = e.parent; t !== null; ) {
377
- if ((t.f & Ce) === 0)
377
+ if ((t.f & we) === 0)
378
378
  return (
379
379
  /** @type {Effect} */
380
380
  t
@@ -383,34 +383,34 @@ function Ea(e) {
383
383
  }
384
384
  return null;
385
385
  }
386
- function bi(e) {
387
- var t, r = D;
388
- Ye(Ea(e));
386
+ function yi(e) {
387
+ var t, r = T;
388
+ Ze(Ca(e));
389
389
  try {
390
- _i(e), t = Li(e);
390
+ _i(e), t = Pi(e);
391
391
  } finally {
392
- Ye(r);
392
+ Ze(r);
393
393
  }
394
394
  return t;
395
395
  }
396
- function yi(e) {
397
- var t = bi(e), r = (He || (e.f & ve) !== 0) && e.deps !== null ? st : fe;
398
- xe(e, r), e.equals(t) || (e.v = t, e.wv = Di());
396
+ function wi(e) {
397
+ var t = yi(e), r = (Ge || (e.f & he) !== 0) && e.deps !== null ? ct : fe;
398
+ Ee(e, r), e.equals(t) || (e.v = t, e.wv = Ni());
399
399
  }
400
- function Ca(e) {
401
- D === null && T === null && ca(), T !== null && (T.f & ve) !== 0 && D === null && fa(), Wt && ua();
400
+ function xa(e) {
401
+ T === null && $ === null && da(), $ !== null && ($.f & he) !== 0 && T === null && ca(), Yt && fa();
402
402
  }
403
- function xa(e, t) {
403
+ function ka(e, t) {
404
404
  var r = t.last;
405
405
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
406
406
  }
407
- function ut(e, t, r, i = !0) {
408
- var l = D, o = {
407
+ function dt(e, t, r, i = !0) {
408
+ var l = T, o = {
409
409
  ctx: oe,
410
410
  deps: null,
411
411
  nodes_start: null,
412
412
  nodes_end: null,
413
- f: e | Ne,
413
+ f: e | De,
414
414
  first: null,
415
415
  fn: t,
416
416
  last: null,
@@ -423,28 +423,28 @@ function ut(e, t, r, i = !0) {
423
423
  };
424
424
  if (r)
425
425
  try {
426
- Jr(o), o.f |= aa;
426
+ Kr(o), o.f |= la;
427
427
  } catch (c) {
428
- throw We(o), c;
428
+ throw Ye(o), c;
429
429
  }
430
- else t !== null && yr(o);
431
- var f = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (ci | sr)) === 0;
432
- if (!f && i && (l !== null && xa(o, l), T !== null && (T.f & Ce) !== 0)) {
430
+ else t !== null && wr(o);
431
+ var f = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (di | ur)) === 0;
432
+ if (!f && i && (l !== null && ka(o, l), $ !== null && ($.f & we) !== 0)) {
433
433
  var s = (
434
434
  /** @type {Derived} */
435
- T
435
+ $
436
436
  );
437
437
  (s.effects ?? (s.effects = [])).push(o);
438
438
  }
439
439
  return o;
440
440
  }
441
- function Wr(e) {
442
- const t = ut(vr, null, !1);
443
- return xe(t, fe), t.teardown = e, t;
441
+ function Yr(e) {
442
+ const t = dt(gr, null, !1);
443
+ return Ee(t, fe), t.teardown = e, t;
444
444
  }
445
- function Or(e) {
446
- Ca();
447
- var t = D !== null && (D.f & Fe) !== 0 && oe !== null && !oe.m;
445
+ function Fr(e) {
446
+ xa();
447
+ var t = T !== null && (T.f & Fe) !== 0 && oe !== null && !oe.m;
448
448
  if (t) {
449
449
  var r = (
450
450
  /** @type {ComponentContext} */
@@ -452,104 +452,104 @@ function Or(e) {
452
452
  );
453
453
  (r.e ?? (r.e = [])).push({
454
454
  fn: e,
455
- effect: D,
456
- reaction: T
455
+ effect: T,
456
+ reaction: $
457
457
  });
458
458
  } else {
459
- var i = Yr(e);
459
+ var i = Zr(e);
460
460
  return i;
461
461
  }
462
462
  }
463
- function ka(e) {
464
- const t = ut(lt, e, !0);
463
+ function Aa(e) {
464
+ const t = dt(ft, e, !0);
465
465
  return () => {
466
- We(t);
466
+ Ye(t);
467
467
  };
468
468
  }
469
- function Aa(e) {
470
- const t = ut(lt, e, !0);
469
+ function Ia(e) {
470
+ const t = dt(ft, e, !0);
471
471
  return (r = {}) => new Promise((i) => {
472
- r.outro ? Mr(t, () => {
473
- We(t), i(void 0);
474
- }) : (We(t), i(void 0));
472
+ r.outro ? Vr(t, () => {
473
+ Ye(t), i(void 0);
474
+ }) : (Ye(t), i(void 0));
475
475
  });
476
476
  }
477
- function Yr(e) {
478
- return ut(fi, e, !1);
479
- }
480
477
  function Zr(e) {
481
- return ut(vr, e, !0);
478
+ return dt(ci, e, !1);
479
+ }
480
+ function zr(e) {
481
+ return dt(gr, e, !0);
482
482
  }
483
483
  function Se(e, t = [], r = _r) {
484
484
  const i = t.map(r);
485
- return wi(() => e(...i.map(a)));
485
+ return Ei(() => e(...i.map(a)));
486
486
  }
487
- function wi(e, t = 0) {
488
- return ut(vr | Br | t, e, !0);
487
+ function Ei(e, t = 0) {
488
+ return dt(gr | Hr | t, e, !0);
489
489
  }
490
- function Fr(e, t = !0) {
491
- return ut(vr | Fe, e, !0, t);
490
+ function Mr(e, t = !0) {
491
+ return dt(gr | Fe, e, !0, t);
492
492
  }
493
- function Ei(e) {
493
+ function Ci(e) {
494
494
  var t = e.teardown;
495
495
  if (t !== null) {
496
- const r = Wt, i = T;
497
- Wn(!0), Le(null);
496
+ const r = Yt, i = $;
497
+ Yn(!0), Ne(null);
498
498
  try {
499
499
  t.call(null);
500
500
  } finally {
501
- Wn(r), Le(i);
501
+ Yn(r), Ne(i);
502
502
  }
503
503
  }
504
504
  }
505
- function Ci(e, t = !1) {
505
+ function xi(e, t = !1) {
506
506
  var r = e.first;
507
507
  for (e.first = e.last = null; r !== null; ) {
508
508
  var i = r.next;
509
- (r.f & lt) !== 0 ? r.parent = null : We(r, t), r = i;
509
+ (r.f & ft) !== 0 ? r.parent = null : Ye(r, t), r = i;
510
510
  }
511
511
  }
512
- function Ia(e) {
512
+ function Ra(e) {
513
513
  for (var t = e.first; t !== null; ) {
514
514
  var r = t.next;
515
- (t.f & Fe) === 0 && We(t), t = r;
515
+ (t.f & Fe) === 0 && Ye(t), t = r;
516
516
  }
517
517
  }
518
- function We(e, t = !0) {
518
+ function Ye(e, t = !0) {
519
519
  var r = !1;
520
- (t || (e.f & la) !== 0) && e.nodes_start !== null && (xi(
520
+ (t || (e.f & sa) !== 0) && e.nodes_start !== null && (ki(
521
521
  e.nodes_start,
522
522
  /** @type {TemplateNode} */
523
523
  e.nodes_end
524
- ), r = !0), Ci(e, t && !r), hr(e, 0), xe(e, gr);
524
+ ), r = !0), xi(e, t && !r), vr(e, 0), Ee(e, pr);
525
525
  var i = e.transitions;
526
526
  if (i !== null)
527
527
  for (const o of i)
528
528
  o.stop();
529
- Ei(e);
529
+ Ci(e);
530
530
  var l = e.parent;
531
- l !== null && l.first !== null && ki(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
531
+ l !== null && l.first !== null && Ai(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
532
532
  }
533
- function xi(e, t) {
533
+ function ki(e, t) {
534
534
  for (; e !== null; ) {
535
535
  var r = e === t ? null : (
536
536
  /** @type {TemplateNode} */
537
- /* @__PURE__ */ Ze(e)
537
+ /* @__PURE__ */ ze(e)
538
538
  );
539
539
  e.remove(), e = r;
540
540
  }
541
541
  }
542
- function ki(e) {
542
+ function Ai(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 Mr(e, t) {
546
+ function Vr(e, t) {
547
547
  var r = [];
548
- Ai(e, r, !0), Ra(r, () => {
549
- We(e), t && t();
548
+ Ii(e, r, !0), Sa(r, () => {
549
+ Ye(e), t && t();
550
550
  });
551
551
  }
552
- function Ra(e, t) {
552
+ function Sa(e, t) {
553
553
  var r = e.length;
554
554
  if (r > 0) {
555
555
  var i = () => --r || t();
@@ -558,26 +558,26 @@ function Ra(e, t) {
558
558
  } else
559
559
  t();
560
560
  }
561
- function Ai(e, t, r) {
562
- if ((e.f & xt) === 0) {
563
- if (e.f ^= xt, e.transitions !== null)
561
+ function Ii(e, t, r) {
562
+ if ((e.f & At) === 0) {
563
+ if (e.f ^= At, 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 & Hr) !== 0 || (i.f & Fe) !== 0;
568
- Ai(i, t, o ? r : !1), i = l;
567
+ var l = i.next, o = (i.f & Gr) !== 0 || (i.f & Fe) !== 0;
568
+ Ii(i, t, o ? r : !1), i = l;
569
569
  }
570
570
  }
571
571
  }
572
- function Gn(e) {
573
- Ii(e, !0);
572
+ function Wn(e) {
573
+ Ri(e, !0);
574
574
  }
575
- function Ii(e, t) {
576
- if ((e.f & xt) !== 0) {
577
- e.f ^= xt, (e.f & fe) === 0 && (e.f ^= fe), Yt(e) && (xe(e, Ne), yr(e));
575
+ function Ri(e, t) {
576
+ if ((e.f & At) !== 0) {
577
+ e.f ^= At, (e.f & fe) === 0 && (e.f ^= fe), Zt(e) && (Ee(e, De), wr(e));
578
578
  for (var r = e.first; r !== null; ) {
579
- var i = r.next, l = (r.f & Hr) !== 0 || (r.f & Fe) !== 0;
580
- Ii(r, l ? t : !1), r = i;
579
+ var i = r.next, l = (r.f & Gr) !== 0 || (r.f & Fe) !== 0;
580
+ Ri(r, l ? t : !1), r = i;
581
581
  }
582
582
  if (e.transitions !== null)
583
583
  for (const o of e.transitions)
@@ -585,269 +585,269 @@ function Ii(e, t) {
585
585
  }
586
586
  }
587
587
  const $a = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
588
- let Bt = [], Ht = [];
589
- function Ri() {
590
- var e = Bt;
591
- Bt = [], ui(e);
588
+ let Ht = [], Gt = [];
589
+ function Si() {
590
+ var e = Ht;
591
+ Ht = [], fi(e);
592
592
  }
593
593
  function $i() {
594
- var e = Ht;
595
- Ht = [], ui(e);
594
+ var e = Gt;
595
+ Gt = [], fi(e);
596
596
  }
597
- function zr(e) {
598
- Bt.length === 0 && queueMicrotask(Ri), Bt.push(e);
597
+ function Jr(e) {
598
+ Ht.length === 0 && queueMicrotask(Si), Ht.push(e);
599
599
  }
600
- function Sa(e) {
601
- Ht.length === 0 && $a($i), Ht.push(e);
600
+ function Ta(e) {
601
+ Gt.length === 0 && $a($i), Gt.push(e);
602
602
  }
603
- function Ta() {
604
- Bt.length > 0 && Ri(), Ht.length > 0 && $i();
603
+ function Da() {
604
+ Ht.length > 0 && Si(), Gt.length > 0 && $i();
605
605
  }
606
- let ir = !1, fr = !1, cr = null, ot = !1, Wt = !1;
607
- function Wn(e) {
608
- Wt = e;
606
+ let or = !1, cr = !1, dr = null, st = !1, Yt = !1;
607
+ function Yn(e) {
608
+ Yt = e;
609
609
  }
610
- let jt = [];
611
- let T = null, Te = !1;
612
- function Le(e) {
613
- T = e;
610
+ let qt = [];
611
+ let $ = null, $e = !1;
612
+ function Ne(e) {
613
+ $ = e;
614
614
  }
615
- let D = null;
616
- function Ye(e) {
617
- D = e;
615
+ let T = null;
616
+ function Ze(e) {
617
+ T = e;
618
618
  }
619
619
  let ie = null;
620
- function Si(e) {
621
- T !== null && T.f & Lr && (ie === null ? ie = [e] : ie.push(e));
620
+ function Ti(e) {
621
+ $ !== null && $.f & Pr && (ie === null ? ie = [e] : ie.push(e));
622
622
  }
623
- let ne = null, he = 0, pe = null;
624
- function Da(e) {
625
- pe = e;
623
+ let ne = null, de = 0, ge = null;
624
+ function Na(e) {
625
+ ge = e;
626
626
  }
627
- let Ti = 1, dr = 0, He = !1;
628
- function Di() {
629
- return ++Ti;
627
+ let Di = 1, hr = 0, Ge = !1;
628
+ function Ni() {
629
+ return ++Di;
630
630
  }
631
- function Yt(e) {
631
+ function Zt(e) {
632
632
  var v;
633
633
  var t = e.f;
634
- if ((t & Ne) !== 0)
634
+ if ((t & De) !== 0)
635
635
  return !0;
636
- if ((t & st) !== 0) {
637
- var r = e.deps, i = (t & ve) !== 0;
636
+ if ((t & ct) !== 0) {
637
+ var r = e.deps, i = (t & he) !== 0;
638
638
  if (r !== null) {
639
- var l, o, f = (t & ur) !== 0, s = i && D !== null && !He, c = r.length;
639
+ var l, o, f = (t & fr) !== 0, s = i && T !== null && !Ge, c = r.length;
640
640
  if (f || s) {
641
641
  var d = (
642
642
  /** @type {Derived} */
643
643
  e
644
- ), _ = d.parent;
644
+ ), b = d.parent;
645
645
  for (l = 0; l < c; l++)
646
646
  o = r[l], (f || !((v = o == null ? void 0 : o.reactions) != null && v.includes(d))) && (o.reactions ?? (o.reactions = [])).push(d);
647
- f && (d.f ^= ur), s && _ !== null && (_.f & ve) === 0 && (d.f ^= ve);
647
+ f && (d.f ^= fr), s && b !== null && (b.f & he) === 0 && (d.f ^= he);
648
648
  }
649
649
  for (l = 0; l < c; l++)
650
- if (o = r[l], Yt(
650
+ if (o = r[l], Zt(
651
651
  /** @type {Derived} */
652
652
  o
653
- ) && yi(
653
+ ) && wi(
654
654
  /** @type {Derived} */
655
655
  o
656
656
  ), o.wv > e.wv)
657
657
  return !0;
658
658
  }
659
- (!i || D !== null && !He) && xe(e, fe);
659
+ (!i || T !== null && !Ge) && Ee(e, fe);
660
660
  }
661
661
  return !1;
662
662
  }
663
- function Na(e, t) {
663
+ function La(e, t) {
664
664
  for (var r = t; r !== null; ) {
665
- if ((r.f & sr) !== 0)
665
+ if ((r.f & ur) !== 0)
666
666
  try {
667
667
  r.fn(e);
668
668
  return;
669
669
  } catch {
670
- r.f ^= sr;
670
+ r.f ^= ur;
671
671
  }
672
672
  r = r.parent;
673
673
  }
674
- throw ir = !1, e;
674
+ throw or = !1, e;
675
675
  }
676
- function Yn(e) {
677
- return (e.f & gr) === 0 && (e.parent === null || (e.parent.f & sr) === 0);
676
+ function Zn(e) {
677
+ return (e.f & pr) === 0 && (e.parent === null || (e.parent.f & ur) === 0);
678
678
  }
679
- function br(e, t, r, i) {
680
- if (ir) {
681
- if (r === null && (ir = !1), Yn(t))
679
+ function yr(e, t, r, i) {
680
+ if (or) {
681
+ if (r === null && (or = !1), Zn(t))
682
682
  throw e;
683
683
  return;
684
684
  }
685
- if (r !== null && (ir = !0), Na(e, t), Yn(t))
685
+ if (r !== null && (or = !0), La(e, t), Zn(t))
686
686
  throw e;
687
687
  }
688
- function Ni(e, t, r = !0) {
688
+ function Li(e, t, r = !0) {
689
689
  var i = e.reactions;
690
690
  if (i !== null)
691
691
  for (var l = 0; l < i.length; l++) {
692
692
  var o = i[l];
693
- ie != null && ie.includes(e) || ((o.f & Ce) !== 0 ? Ni(
693
+ ie != null && ie.includes(e) || ((o.f & we) !== 0 ? Li(
694
694
  /** @type {Derived} */
695
695
  o,
696
696
  t,
697
697
  !1
698
- ) : t === o && (r ? xe(o, Ne) : (o.f & fe) !== 0 && xe(o, st), yr(
698
+ ) : t === o && (r ? Ee(o, De) : (o.f & fe) !== 0 && Ee(o, ct), wr(
699
699
  /** @type {Effect} */
700
700
  o
701
701
  )));
702
702
  }
703
703
  }
704
- function Li(e) {
704
+ function Pi(e) {
705
705
  var y;
706
- var t = ne, r = he, i = pe, l = T, o = He, f = ie, s = oe, c = Te, d = e.f;
706
+ var t = ne, r = de, i = ge, l = $, o = Ge, f = ie, s = oe, c = $e, 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 |= Lr;
708
+ null, de = 0, ge = null, Ge = (d & he) !== 0 && ($e || !st || $ === null), $ = (d & (Fe | ft)) === 0 ? e : null, ie = null, zn(e.ctx), $e = !1, hr++, e.f |= Pr;
709
709
  try {
710
- var _ = (
710
+ var b = (
711
711
  /** @type {Function} */
712
712
  (0, e.fn)()
713
713
  ), v = e.deps;
714
714
  if (ne !== null) {
715
715
  var m;
716
- if (hr(e, he), v !== null && he > 0)
717
- for (v.length = he + ne.length, m = 0; m < ne.length; m++)
718
- v[he + m] = ne[m];
716
+ if (vr(e, de), v !== null && de > 0)
717
+ for (v.length = de + ne.length, m = 0; m < ne.length; m++)
718
+ v[de + m] = ne[m];
719
719
  else
720
720
  e.deps = v = ne;
721
- if (!He)
722
- for (m = he; m < v.length; m++)
721
+ if (!Ge)
722
+ for (m = de; m < v.length; m++)
723
723
  ((y = v[m]).reactions ?? (y.reactions = [])).push(e);
724
- } else v !== null && he < v.length && (hr(e, he), v.length = he);
725
- if (Ui() && pe !== null && !Te && v !== null && (e.f & (Ce | st | Ne)) === 0)
724
+ } else v !== null && de < v.length && (vr(e, de), v.length = de);
725
+ if (ji() && ge !== null && !$e && v !== null && (e.f & (we | ct | De)) === 0)
726
726
  for (m = 0; m < /** @type {Source[]} */
727
- pe.length; m++)
728
- Ni(
729
- pe[m],
727
+ ge.length; m++)
728
+ Li(
729
+ ge[m],
730
730
  /** @type {Effect} */
731
731
  e
732
732
  );
733
- return l !== null && l !== e && (dr++, pe !== null && (i === null ? i = pe : i.push(.../** @type {Source[]} */
734
- pe))), _;
733
+ return l !== null && l !== e && (hr++, ge !== null && (i === null ? i = ge : i.push(.../** @type {Source[]} */
734
+ ge))), b;
735
735
  } finally {
736
- ne = t, he = r, pe = i, T = l, He = o, ie = f, Zn(s), Te = c, e.f ^= Lr;
736
+ ne = t, de = r, ge = i, $ = l, Ge = o, ie = f, zn(s), $e = c, e.f ^= Pr;
737
737
  }
738
738
  }
739
- function La(e, t) {
739
+ function Pa(e, t) {
740
740
  let r = t.reactions;
741
741
  if (r !== null) {
742
- var i = ea.call(r, e);
742
+ var i = ta.call(r, e);
743
743
  if (i !== -1) {
744
744
  var l = r.length - 1;
745
745
  l === 0 ? r = t.reactions = null : (r[i] = r[l], r.pop());
746
746
  }
747
747
  }
748
- r === null && (t.f & Ce) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
748
+ r === null && (t.f & we) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
749
749
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
750
750
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
751
- (ne === null || !ne.includes(t)) && (xe(t, st), (t.f & (ve | ur)) === 0 && (t.f ^= ur), _i(
751
+ (ne === null || !ne.includes(t)) && (Ee(t, ct), (t.f & (he | fr)) === 0 && (t.f ^= fr), _i(
752
752
  /** @type {Derived} **/
753
753
  t
754
- ), hr(
754
+ ), vr(
755
755
  /** @type {Derived} **/
756
756
  t,
757
757
  0
758
758
  ));
759
759
  }
760
- function hr(e, t) {
760
+ function vr(e, t) {
761
761
  var r = e.deps;
762
762
  if (r !== null)
763
763
  for (var i = t; i < r.length; i++)
764
- La(e, r[i]);
764
+ Pa(e, r[i]);
765
765
  }
766
- function Jr(e) {
766
+ function Kr(e) {
767
767
  var t = e.f;
768
- if ((t & gr) === 0) {
769
- xe(e, fe);
770
- var r = D, i = oe, l = ot;
771
- D = e, ot = !0;
768
+ if ((t & pr) === 0) {
769
+ Ee(e, fe);
770
+ var r = T, i = oe, l = st;
771
+ T = e, st = !0;
772
772
  try {
773
- (t & Br) !== 0 ? Ia(e) : Ci(e), Ei(e);
774
- var o = Li(e);
775
- e.teardown = typeof o == "function" ? o : null, e.wv = Ti;
773
+ (t & Hr) !== 0 ? Ra(e) : xi(e), Ci(e);
774
+ var o = Pi(e);
775
+ e.teardown = typeof o == "function" ? o : null, e.wv = Di;
776
776
  var f = e.deps, s;
777
- qn && ba && e.f & Ne;
777
+ Bn && ya && e.f & De;
778
778
  } catch (c) {
779
- br(c, e, r, i || e.ctx);
779
+ yr(c, e, r, i || e.ctx);
780
780
  } finally {
781
- ot = l, D = r;
781
+ st = l, T = r;
782
782
  }
783
783
  }
784
784
  }
785
- function Pa() {
785
+ function Oa() {
786
786
  try {
787
- da();
787
+ ha();
788
788
  } catch (e) {
789
- if (cr !== null)
790
- br(e, cr, null);
789
+ if (dr !== null)
790
+ yr(e, dr, null);
791
791
  else
792
792
  throw e;
793
793
  }
794
794
  }
795
- function Pi() {
796
- var e = ot;
795
+ function Oi() {
796
+ var e = st;
797
797
  try {
798
798
  var t = 0;
799
- for (ot = !0; jt.length > 0; ) {
800
- t++ > 1e3 && Pa();
801
- var r = jt, i = r.length;
802
- jt = [];
799
+ for (st = !0; qt.length > 0; ) {
800
+ t++ > 1e3 && Oa();
801
+ var r = qt, i = r.length;
802
+ qt = [];
803
803
  for (var l = 0; l < i; l++) {
804
- var o = Fa(r[l]);
805
- Oa(o);
804
+ var o = Ma(r[l]);
805
+ Fa(o);
806
806
  }
807
- Gt.clear();
807
+ Wt.clear();
808
808
  }
809
809
  } finally {
810
- fr = !1, ot = e, cr = null;
810
+ cr = !1, st = e, dr = null;
811
811
  }
812
812
  }
813
- function Oa(e) {
813
+ function Fa(e) {
814
814
  var t = e.length;
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 | xt)) === 0)
818
+ if ((i.f & (pr | At)) === 0)
819
819
  try {
820
- Yt(i) && (Jr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? ki(i) : i.fn = null));
820
+ Zt(i) && (Kr(i), i.deps === null && i.first === null && i.nodes_start === null && (i.teardown === null ? Ai(i) : i.fn = null));
821
821
  } catch (l) {
822
- br(l, i, null, i.ctx);
822
+ yr(l, i, null, i.ctx);
823
823
  }
824
824
  }
825
825
  }
826
- function yr(e) {
827
- fr || (fr = !0, queueMicrotask(Pi));
828
- for (var t = cr = e; t.parent !== null; ) {
826
+ function wr(e) {
827
+ cr || (cr = !0, queueMicrotask(Oi));
828
+ for (var t = dr = e; t.parent !== null; ) {
829
829
  t = t.parent;
830
830
  var r = t.f;
831
- if ((r & (lt | Fe)) !== 0) {
831
+ if ((r & (ft | Fe)) !== 0) {
832
832
  if ((r & fe) === 0) return;
833
833
  t.f ^= fe;
834
834
  }
835
835
  }
836
- jt.push(t);
836
+ qt.push(t);
837
837
  }
838
- function Fa(e) {
838
+ function Ma(e) {
839
839
  for (var t = [], r = e; r !== null; ) {
840
- var i = r.f, l = (i & (Fe | lt)) !== 0, o = l && (i & fe) !== 0;
841
- if (!o && (i & xt) === 0) {
842
- if ((i & fi) !== 0)
840
+ var i = r.f, l = (i & (Fe | ft)) !== 0, o = l && (i & fe) !== 0;
841
+ if (!o && (i & At) === 0) {
842
+ if ((i & ci) !== 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) && Jr(r);
848
+ Zt(r) && Kr(r);
849
849
  } catch (c) {
850
- br(c, r, null, r.ctx);
850
+ yr(c, r, null, r.ctx);
851
851
  }
852
852
  var f = r.first;
853
853
  if (f !== null) {
@@ -861,25 +861,25 @@ function Fa(e) {
861
861
  }
862
862
  return t;
863
863
  }
864
- function x(e) {
864
+ function C(e) {
865
865
  for (var t; ; ) {
866
- if (Ta(), jt.length === 0)
866
+ if (Da(), qt.length === 0)
867
867
  return (
868
868
  /** @type {T} */
869
869
  t
870
870
  );
871
- fr = !0, Pi();
871
+ cr = !0, Oi();
872
872
  }
873
873
  }
874
- async function Dr() {
875
- await Promise.resolve(), x();
874
+ async function Nr() {
875
+ await Promise.resolve(), C();
876
876
  }
877
877
  function a(e) {
878
- var t = e.f, r = (t & Ce) !== 0;
879
- if (T !== null && !Te) {
878
+ var t = e.f, r = (t & we) !== 0;
879
+ if ($ !== null && !$e) {
880
880
  if (!(ie != null && ie.includes(e))) {
881
- var i = T.deps;
882
- e.rv < dr && (e.rv = dr, ne === null && i !== null && i[he] === e ? he++ : ne === null ? ne = [e] : (!He || !ne.includes(e)) && ne.push(e));
881
+ var i = $.deps;
882
+ e.rv < hr && (e.rv = hr, ne === null && i !== null && i[de] === e ? de++ : ne === null ? ne = [e] : (!Ge || !ne.includes(e)) && ne.push(e));
883
883
  }
884
884
  } else if (r && /** @type {Derived} */
885
885
  e.deps === null && /** @type {Derived} */
@@ -888,81 +888,81 @@ function a(e) {
888
888
  /** @type {Derived} */
889
889
  e
890
890
  ), o = l.parent;
891
- o !== null && (o.f & ve) === 0 && (l.f ^= ve);
891
+ o !== null && (o.f & he) === 0 && (l.f ^= he);
892
892
  }
893
893
  return r && (l = /** @type {Derived} */
894
- e, Yt(l) && yi(l)), Wt && Gt.has(e) ? Gt.get(e) : e.v;
894
+ e, Zt(l) && wi(l)), Yt && Wt.has(e) ? Wt.get(e) : e.v;
895
895
  }
896
- function at(e) {
897
- var t = Te;
896
+ function ut(e) {
897
+ var t = $e;
898
898
  try {
899
- return Te = !0, e();
899
+ return $e = !0, e();
900
900
  } finally {
901
- Te = t;
901
+ $e = t;
902
902
  }
903
903
  }
904
- const Ma = -7169;
905
- function xe(e, t) {
906
- e.f = e.f & Ma | t;
904
+ const Va = -7169;
905
+ function Ee(e, t) {
906
+ e.f = e.f & Va | t;
907
907
  }
908
- const Gt = /* @__PURE__ */ new Map();
909
- function Oi(e, t) {
908
+ const Wt = /* @__PURE__ */ new Map();
909
+ function Fi(e, t) {
910
910
  var r = {
911
911
  f: 0,
912
912
  // TODO ideally we could skip this altogether, but it causes type errors
913
913
  v: e,
914
914
  reactions: null,
915
- equals: pi,
915
+ equals: mi,
916
916
  rv: 0,
917
917
  wv: 0
918
918
  };
919
919
  return r;
920
920
  }
921
921
  // @__NO_SIDE_EFFECTS__
922
- function L(e, t) {
923
- const r = Oi(e);
924
- return Si(r), r;
922
+ function P(e, t) {
923
+ const r = Fi(e);
924
+ return Ti(r), r;
925
925
  }
926
926
  // @__NO_SIDE_EFFECTS__
927
- function Kr(e, t = !1) {
928
- const r = Oi(e);
929
- return t || (r.equals = Gr), r;
927
+ function Xr(e, t = !1) {
928
+ const r = Fi(e);
929
+ return t || (r.equals = Wr), r;
930
930
  }
931
- function b(e, t, r = !1) {
932
- T !== null && !Te && Ui() && (T.f & (Ce | Br)) !== 0 && !(ie != null && ie.includes(e)) && ma();
933
- let i = r ? Be(t) : t;
934
- return Va(e, i);
931
+ function _(e, t, r = !1) {
932
+ $ !== null && !$e && ji() && ($.f & (we | Hr)) !== 0 && !(ie != null && ie.includes(e)) && ba();
933
+ let i = r ? He(t) : t;
934
+ return Ua(e, i);
935
935
  }
936
- function Va(e, t) {
936
+ function Ua(e, t) {
937
937
  if (!e.equals(t)) {
938
938
  var r = e.v;
939
- Wt ? Gt.set(e, t) : Gt.set(e, r), e.v = t, (e.f & Ce) !== 0 && ((e.f & Ne) !== 0 && bi(
939
+ Yt ? Wt.set(e, t) : Wt.set(e, r), e.v = t, (e.f & we) !== 0 && ((e.f & De) !== 0 && yi(
940
940
  /** @type {Derived} */
941
941
  e
942
- ), xe(e, (e.f & ve) === 0 ? fe : st)), e.wv = Di(), Fi(e, Ne), D !== null && (D.f & fe) !== 0 && (D.f & (Fe | lt)) === 0 && (pe === null ? Da([e]) : pe.push(e));
942
+ ), Ee(e, (e.f & he) === 0 ? fe : ct)), e.wv = Ni(), Mi(e, De), T !== null && (T.f & fe) !== 0 && (T.f & (Fe | ft)) === 0 && (ge === null ? Na([e]) : ge.push(e));
943
943
  }
944
944
  return t;
945
945
  }
946
- function Fi(e, t) {
946
+ function Mi(e, t) {
947
947
  var r = e.reactions;
948
948
  if (r !== null)
949
949
  for (var i = r.length, l = 0; l < i; l++) {
950
950
  var o = r[l], f = o.f;
951
- (f & Ne) === 0 && (xe(o, t), (f & (fe | ve)) !== 0 && ((f & Ce) !== 0 ? Fi(
951
+ (f & De) === 0 && (Ee(o, t), (f & (fe | he)) !== 0 && ((f & we) !== 0 ? Mi(
952
952
  /** @type {Derived} */
953
953
  o,
954
- st
955
- ) : yr(
954
+ ct
955
+ ) : wr(
956
956
  /** @type {Effect} */
957
957
  o
958
958
  )));
959
959
  }
960
960
  }
961
961
  let oe = null;
962
- function Zn(e) {
962
+ function zn(e) {
963
963
  oe = e;
964
964
  }
965
- function Mi(e, t = !1, r) {
965
+ function Vi(e, t = !1, r) {
966
966
  var i = oe = {
967
967
  p: oe,
968
968
  c: null,
@@ -973,25 +973,25 @@ function Mi(e, t = !1, r) {
973
973
  x: null,
974
974
  l: null
975
975
  };
976
- Wr(() => {
976
+ Yr(() => {
977
977
  i.d = !0;
978
978
  });
979
979
  }
980
- function Vi(e) {
980
+ function Ui(e) {
981
981
  const t = oe;
982
982
  if (t !== null) {
983
983
  e !== void 0 && (t.x = e);
984
984
  const f = t.e;
985
985
  if (f !== null) {
986
- var r = D, i = T;
986
+ var r = T, i = $;
987
987
  t.e = null;
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), Yr(o.fn);
991
+ Ze(o.effect), Ne(o.reaction), Zr(o.fn);
992
992
  }
993
993
  } finally {
994
- Ye(r), Le(i);
994
+ Ze(r), Ne(i);
995
995
  }
996
996
  }
997
997
  oe = t.p, t.m = !0;
@@ -999,24 +999,24 @@ function Vi(e) {
999
999
  return e || /** @type {T} */
1000
1000
  {};
1001
1001
  }
1002
- function Ui() {
1002
+ function ji() {
1003
1003
  return !0;
1004
1004
  }
1005
- const Ua = ["touchstart", "touchmove"];
1006
- function ja(e) {
1007
- return Ua.includes(e);
1005
+ const ja = ["touchstart", "touchmove"];
1006
+ function qa(e) {
1007
+ return ja.includes(e);
1008
1008
  }
1009
- function qa(e, t) {
1009
+ function Ba(e, t) {
1010
1010
  if (t) {
1011
1011
  const r = document.body;
1012
- e.autofocus = !0, zr(() => {
1012
+ e.autofocus = !0, Jr(() => {
1013
1013
  document.activeElement === r && e.focus();
1014
1014
  });
1015
1015
  }
1016
1016
  }
1017
- let zn = !1;
1018
- function ji() {
1019
- zn || (zn = !0, document.addEventListener(
1017
+ let Jn = !1;
1018
+ function qi() {
1019
+ Jn || (Jn = !0, document.addEventListener(
1020
1020
  "reset",
1021
1021
  (e) => {
1022
1022
  Promise.resolve().then(() => {
@@ -1034,50 +1034,50 @@ function ji() {
1034
1034
  { capture: !0 }
1035
1035
  ));
1036
1036
  }
1037
- function qi(e) {
1038
- var t = T, r = D;
1039
- Le(null), Ye(null);
1037
+ function Bi(e) {
1038
+ var t = $, r = T;
1039
+ Ne(null), Ze(null);
1040
1040
  try {
1041
1041
  return e();
1042
1042
  } finally {
1043
- Le(t), Ye(r);
1043
+ Ne(t), Ze(r);
1044
1044
  }
1045
1045
  }
1046
- function Ba(e, t, r, i = r) {
1047
- e.addEventListener(t, () => qi(r));
1046
+ function Ha(e, t, r, i = r) {
1047
+ e.addEventListener(t, () => Bi(r));
1048
1048
  const l = e.__on_r;
1049
1049
  l ? e.__on_r = () => {
1050
1050
  l(), i(!0);
1051
- } : e.__on_r = () => i(!0), ji();
1051
+ } : e.__on_r = () => i(!0), qi();
1052
1052
  }
1053
- const Bi = /* @__PURE__ */ new Set(), Vr = /* @__PURE__ */ new Set();
1054
- function Ha(e, t, r, i = {}) {
1053
+ const Hi = /* @__PURE__ */ new Set(), Ur = /* @__PURE__ */ new Set();
1054
+ function Ga(e, t, r, i = {}) {
1055
1055
  function l(o) {
1056
- if (i.capture || Vt.call(t, o), !o.cancelBubble)
1057
- return qi(() => r == null ? void 0 : r.call(this, o));
1056
+ if (i.capture || Ut.call(t, o), !o.cancelBubble)
1057
+ return Bi(() => r == null ? void 0 : r.call(this, o));
1058
1058
  }
1059
- return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? zr(() => {
1059
+ return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Jr(() => {
1060
1060
  t.addEventListener(e, l, i);
1061
1061
  }) : t.addEventListener(e, l, i), l;
1062
1062
  }
1063
- function qe(e, t, r, i, l) {
1064
- var o = { capture: i, passive: l }, f = Ha(e, t, r, o);
1065
- (t === document.body || t === window || t === document) && Wr(() => {
1063
+ function Be(e, t, r, i, l) {
1064
+ var o = { capture: i, passive: l }, f = Ga(e, t, r, o);
1065
+ (t === document.body || t === window || t === document) && Yr(() => {
1066
1066
  t.removeEventListener(e, f, o);
1067
1067
  });
1068
1068
  }
1069
- function Ga(e) {
1069
+ function Wa(e) {
1070
1070
  for (var t = 0; t < e.length; t++)
1071
- Bi.add(e[t]);
1072
- for (var r of Vr)
1071
+ Hi.add(e[t]);
1072
+ for (var r of Ur)
1073
1073
  r(e);
1074
1074
  }
1075
- function Vt(e) {
1076
- var K;
1075
+ function Ut(e) {
1076
+ var X;
1077
1077
  var t = this, r = (
1078
1078
  /** @type {Node} */
1079
1079
  t.ownerDocument
1080
- ), i = e.type, l = ((K = e.composedPath) == null ? void 0 : K.call(e)) || [], o = (
1080
+ ), i = e.type, l = ((X = e.composedPath) == null ? void 0 : X.call(e)) || [], o = (
1081
1081
  /** @type {null | Element} */
1082
1082
  l[0] || e.target
1083
1083
  ), f = 0, s = e.__root;
@@ -1095,118 +1095,118 @@ function Vt(e) {
1095
1095
  }
1096
1096
  if (o = /** @type {Element} */
1097
1097
  l[f] || e.target, o !== t) {
1098
- qt(e, "currentTarget", {
1098
+ Bt(e, "currentTarget", {
1099
1099
  configurable: !0,
1100
1100
  get() {
1101
1101
  return o || r;
1102
1102
  }
1103
1103
  });
1104
- var _ = T, v = D;
1105
- Le(null), Ye(null);
1104
+ var b = $, v = T;
1105
+ Ne(null), Ze(null);
1106
1106
  try {
1107
1107
  for (var m, y = []; o !== null; ) {
1108
- var $ = o.assignedSlot || o.parentNode || /** @type {any} */
1108
+ var D = o.assignedSlot || o.parentNode || /** @type {any} */
1109
1109
  o.host || null;
1110
1110
  try {
1111
- var E = o["__" + i];
1112
- if (E != null && (!/** @type {any} */
1111
+ var N = o["__" + i];
1112
+ if (N != null && (!/** @type {any} */
1113
1113
  o.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1114
1114
  // -> the target could not have been disabled because it emits the event in the first place
1115
1115
  e.target === o))
1116
- if (li(E)) {
1117
- var [U, ...ce] = E;
1118
- U.apply(o, [e, ...ce]);
1116
+ if (si(N)) {
1117
+ var [j, ...R] = N;
1118
+ j.apply(o, [e, ...R]);
1119
1119
  } else
1120
- E.call(o, e);
1121
- } catch (te) {
1122
- m ? y.push(te) : m = te;
1120
+ N.call(o, e);
1121
+ } catch (ae) {
1122
+ m ? y.push(ae) : m = ae;
1123
1123
  }
1124
- if (e.cancelBubble || $ === t || $ === null)
1124
+ if (e.cancelBubble || D === t || D === null)
1125
1125
  break;
1126
- o = $;
1126
+ o = D;
1127
1127
  }
1128
1128
  if (m) {
1129
- for (let te of y)
1129
+ for (let ae of y)
1130
1130
  queueMicrotask(() => {
1131
- throw te;
1131
+ throw ae;
1132
1132
  });
1133
1133
  throw m;
1134
1134
  }
1135
1135
  } finally {
1136
- e.__root = t, delete e.currentTarget, Le(_), Ye(v);
1136
+ e.__root = t, delete e.currentTarget, Ne(b), Ze(v);
1137
1137
  }
1138
1138
  }
1139
1139
  }
1140
- function Xr(e) {
1140
+ function Qr(e) {
1141
1141
  var t = document.createElement("template");
1142
1142
  return t.innerHTML = e, t.content;
1143
1143
  }
1144
- function De(e, t) {
1144
+ function Te(e, t) {
1145
1145
  var r = (
1146
1146
  /** @type {Effect} */
1147
- D
1147
+ T
1148
1148
  );
1149
1149
  r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
1150
1150
  }
1151
1151
  // @__NO_SIDE_EFFECTS__
1152
- function ke(e, t) {
1153
- var r = (t & Ko) !== 0, i = (t & Xo) !== 0, l, o = !e.startsWith("<!>");
1152
+ function Ce(e, t) {
1153
+ var r = (t & Xo) !== 0, i = (t & Qo) !== 0, l, o = !e.startsWith("<!>");
1154
1154
  return () => {
1155
- if (F)
1156
- return De(O, null), O;
1157
- l === void 0 && (l = Xr(o ? e : "<!>" + e), r || (l = /** @type {Node} */
1158
- /* @__PURE__ */ _e(l)));
1155
+ if (M)
1156
+ return Te(F, null), F;
1157
+ l === void 0 && (l = Qr(o ? e : "<!>" + e), r || (l = /** @type {Node} */
1158
+ /* @__PURE__ */ me(l)));
1159
1159
  var f = (
1160
1160
  /** @type {TemplateNode} */
1161
- i || hi ? document.importNode(l, !0) : l.cloneNode(!0)
1161
+ i || vi ? document.importNode(l, !0) : l.cloneNode(!0)
1162
1162
  );
1163
1163
  if (r) {
1164
1164
  var s = (
1165
1165
  /** @type {TemplateNode} */
1166
- /* @__PURE__ */ _e(f)
1166
+ /* @__PURE__ */ me(f)
1167
1167
  ), c = (
1168
1168
  /** @type {TemplateNode} */
1169
1169
  f.lastChild
1170
1170
  );
1171
- De(s, c);
1171
+ Te(s, c);
1172
1172
  } else
1173
- De(f, f);
1173
+ Te(f, f);
1174
1174
  return f;
1175
1175
  };
1176
1176
  }
1177
1177
  // @__NO_SIDE_EFFECTS__
1178
- function wr(e, t, r = "svg") {
1178
+ function Er(e, t, r = "svg") {
1179
1179
  var i = !e.startsWith("<!>"), l = `<${r}>${i ? e : "<!>" + e}</${r}>`, o;
1180
1180
  return () => {
1181
- if (F)
1182
- return De(O, null), O;
1181
+ if (M)
1182
+ return Te(F, null), F;
1183
1183
  if (!o) {
1184
1184
  var f = (
1185
1185
  /** @type {DocumentFragment} */
1186
- Xr(l)
1186
+ Qr(l)
1187
1187
  ), s = (
1188
1188
  /** @type {Element} */
1189
- /* @__PURE__ */ _e(f)
1189
+ /* @__PURE__ */ me(f)
1190
1190
  );
1191
1191
  o = /** @type {Element} */
1192
- /* @__PURE__ */ _e(s);
1192
+ /* @__PURE__ */ me(s);
1193
1193
  }
1194
1194
  var c = (
1195
1195
  /** @type {TemplateNode} */
1196
1196
  o.cloneNode(!0)
1197
1197
  );
1198
- return De(c, c), c;
1198
+ return Te(c, c), c;
1199
1199
  };
1200
1200
  }
1201
- function tr() {
1202
- if (F)
1203
- return De(O, null), O;
1204
- var e = document.createDocumentFragment(), t = document.createComment(""), r = mr();
1205
- return e.append(t, r), De(t, r), e;
1201
+ function rr() {
1202
+ if (M)
1203
+ return Te(F, null), F;
1204
+ var e = document.createDocumentFragment(), t = document.createComment(""), r = br();
1205
+ return e.append(t, r), Te(t, r), e;
1206
1206
  }
1207
- function j(e, t) {
1208
- if (F) {
1209
- D.nodes_end = O, kt();
1207
+ function B(e, t) {
1208
+ if (M) {
1209
+ T.nodes_end = F, It();
1210
1210
  return;
1211
1211
  }
1212
1212
  e !== null && e.before(
@@ -1214,181 +1214,181 @@ function j(e, t) {
1214
1214
  t
1215
1215
  );
1216
1216
  }
1217
- function Wa(e, t) {
1217
+ function Ya(e, t) {
1218
1218
  var r = t == null ? "" : typeof t == "object" ? t + "" : t;
1219
1219
  r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + "");
1220
1220
  }
1221
- function Hi(e, t) {
1222
- return Gi(e, t);
1221
+ function Gi(e, t) {
1222
+ return Wi(e, t);
1223
1223
  }
1224
- function Ya(e, t) {
1225
- Pr(), t.intro = t.intro ?? !1;
1226
- const r = t.target, i = F, l = O;
1224
+ function Za(e, t) {
1225
+ Or(), t.intro = t.intro ?? !1;
1226
+ const r = t.target, i = M, l = F;
1227
1227
  try {
1228
1228
  for (var o = (
1229
1229
  /** @type {TemplateNode} */
1230
- /* @__PURE__ */ _e(r)
1230
+ /* @__PURE__ */ me(r)
1231
1231
  ); o && (o.nodeType !== 8 || /** @type {Comment} */
1232
- o.data !== qr); )
1232
+ o.data !== Br); )
1233
1233
  o = /** @type {TemplateNode} */
1234
- /* @__PURE__ */ Ze(o);
1234
+ /* @__PURE__ */ ze(o);
1235
1235
  if (!o)
1236
- throw Et;
1237
- wt(!0), Ge(
1236
+ throw xt;
1237
+ Ct(!0), We(
1238
1238
  /** @type {Comment} */
1239
1239
  o
1240
- ), kt();
1241
- const f = Gi(e, { ...t, anchor: o });
1242
- if (O === null || O.nodeType !== 8 || /** @type {Comment} */
1243
- O.data !== oi)
1244
- throw pr(), Et;
1245
- return wt(!1), /** @type {Exports} */
1240
+ ), It();
1241
+ const f = Wi(e, { ...t, anchor: o });
1242
+ if (F === null || F.nodeType !== 8 || /** @type {Comment} */
1243
+ F.data !== ai)
1244
+ throw mr(), xt;
1245
+ return Ct(!1), /** @type {Exports} */
1246
1246
  f;
1247
1247
  } catch (f) {
1248
- if (f === Et)
1249
- return t.recover === !1 && ha(), Pr(), ya(r), wt(!1), Hi(e, t);
1248
+ if (f === xt)
1249
+ return t.recover === !1 && va(), Or(), wa(r), Ct(!1), Gi(e, t);
1250
1250
  throw f;
1251
1251
  } finally {
1252
- wt(i), Ge(l);
1252
+ Ct(i), We(l);
1253
1253
  }
1254
1254
  }
1255
- const bt = /* @__PURE__ */ new Map();
1256
- function Gi(e, { target: t, anchor: r, props: i = {}, events: l, context: o, intro: f = !0 }) {
1257
- Pr();
1255
+ const wt = /* @__PURE__ */ new Map();
1256
+ function Wi(e, { target: t, anchor: r, props: i = {}, events: l, context: o, intro: f = !0 }) {
1257
+ Or();
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];
1261
1261
  if (!s.has(y)) {
1262
1262
  s.add(y);
1263
- var $ = ja(y);
1264
- t.addEventListener(y, Vt, { passive: $ });
1265
- var E = bt.get(y);
1266
- E === void 0 ? (document.addEventListener(y, Vt, { passive: $ }), bt.set(y, 1)) : bt.set(y, E + 1);
1263
+ var D = qa(y);
1264
+ t.addEventListener(y, Ut, { passive: D });
1265
+ var N = wt.get(y);
1266
+ N === void 0 ? (document.addEventListener(y, Ut, { passive: D }), wt.set(y, 1)) : wt.set(y, N + 1);
1267
1267
  }
1268
1268
  }
1269
1269
  };
1270
- c(ta(Bi)), Vr.add(c);
1271
- var d = void 0, _ = Aa(() => {
1272
- var v = r ?? t.appendChild(mr());
1273
- return Fr(() => {
1270
+ c(ra(Hi)), Ur.add(c);
1271
+ var d = void 0, b = Ia(() => {
1272
+ var v = r ?? t.appendChild(br());
1273
+ return Mr(() => {
1274
1274
  if (o) {
1275
- Mi({});
1275
+ Vi({});
1276
1276
  var m = (
1277
1277
  /** @type {ComponentContext} */
1278
1278
  oe
1279
1279
  );
1280
1280
  m.c = o;
1281
1281
  }
1282
- l && (i.$$events = l), F && De(
1282
+ l && (i.$$events = l), M && Te(
1283
1283
  /** @type {TemplateNode} */
1284
1284
  v,
1285
1285
  null
1286
- ), d = e(v, i) || {}, F && (D.nodes_end = O), o && Vi();
1286
+ ), d = e(v, i) || {}, M && (T.nodes_end = F), o && Ui();
1287
1287
  }), () => {
1288
- var $;
1288
+ var D;
1289
1289
  for (var m of s) {
1290
- t.removeEventListener(m, Vt);
1290
+ t.removeEventListener(m, Ut);
1291
1291
  var y = (
1292
1292
  /** @type {number} */
1293
- bt.get(m)
1293
+ wt.get(m)
1294
1294
  );
1295
- --y === 0 ? (document.removeEventListener(m, Vt), bt.delete(m)) : bt.set(m, y);
1295
+ --y === 0 ? (document.removeEventListener(m, Ut), wt.delete(m)) : wt.set(m, y);
1296
1296
  }
1297
- Vr.delete(c), v !== r && (($ = v.parentNode) == null || $.removeChild(v));
1297
+ Ur.delete(c), v !== r && ((D = v.parentNode) == null || D.removeChild(v));
1298
1298
  };
1299
1299
  });
1300
- return Ur.set(d, _), d;
1300
+ return jr.set(d, b), d;
1301
1301
  }
1302
- let Ur = /* @__PURE__ */ new WeakMap();
1303
- function Za(e, t) {
1304
- const r = Ur.get(e);
1305
- return r ? (Ur.delete(e), r(t)) : Promise.resolve();
1302
+ let jr = /* @__PURE__ */ new WeakMap();
1303
+ function za(e, t) {
1304
+ const r = jr.get(e);
1305
+ return r ? (jr.delete(e), r(t)) : Promise.resolve();
1306
1306
  }
1307
- function J(e, t, [r, i] = [0, 0]) {
1308
- F && r === 0 && kt();
1309
- var l = e, o = null, f = null, s = ue, c = r > 0 ? Hr : 0, d = !1;
1310
- const _ = (m, y = !0) => {
1307
+ function K(e, t, [r, i] = [0, 0]) {
1308
+ M && r === 0 && It();
1309
+ var l = e, o = null, f = null, s = ue, c = r > 0 ? Gr : 0, d = !1;
1310
+ const b = (m, y = !0) => {
1311
1311
  d = !0, v(y, m);
1312
1312
  }, v = (m, y) => {
1313
1313
  if (s === (s = m)) return;
1314
- let $ = !1;
1315
- if (F && i !== -1) {
1314
+ let D = !1;
1315
+ if (M && i !== -1) {
1316
1316
  if (r === 0) {
1317
- const U = (
1317
+ const j = (
1318
1318
  /** @type {Comment} */
1319
1319
  l.data
1320
1320
  );
1321
- U === qr ? i = 0 : U === ii ? i = 1 / 0 : (i = parseInt(U.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
1321
+ j === Br ? i = 0 : j === oi ? i = 1 / 0 : (i = parseInt(j.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
1322
1322
  }
1323
- const E = i > r;
1324
- !!s === E && (l = _a(), Ge(l), wt(!1), $ = !0, i = -1);
1323
+ const N = i > r;
1324
+ !!s === N && (l = _a(), We(l), Ct(!1), D = !0, i = -1);
1325
1325
  }
1326
- s ? (o ? Gn(o) : y && (o = Fr(() => y(l))), f && Mr(f, () => {
1326
+ s ? (o ? Wn(o) : y && (o = Mr(() => y(l))), f && Vr(f, () => {
1327
1327
  f = null;
1328
- })) : (f ? Gn(f) : y && (f = Fr(() => y(l, [r + 1, i]))), o && Mr(o, () => {
1328
+ })) : (f ? Wn(f) : y && (f = Mr(() => y(l, [r + 1, i]))), o && Vr(o, () => {
1329
1329
  o = null;
1330
- })), $ && wt(!0);
1330
+ })), D && Ct(!0);
1331
1331
  };
1332
- wi(() => {
1333
- d = !1, t(_), d || v(null, null);
1334
- }, c), F && (l = O);
1332
+ Ei(() => {
1333
+ d = !1, t(b), d || v(null, null);
1334
+ }, c), M && (l = F);
1335
1335
  }
1336
- function nt(e, t, r = !1, i = !1, l = !1) {
1336
+ function at(e, t, r = !1, i = !1, l = !1) {
1337
1337
  var o = e, f = "";
1338
1338
  Se(() => {
1339
1339
  var s = (
1340
1340
  /** @type {Effect} */
1341
- D
1341
+ T
1342
1342
  );
1343
1343
  if (f === (f = t() ?? "")) {
1344
- F && kt();
1344
+ M && It();
1345
1345
  return;
1346
1346
  }
1347
- if (s.nodes_start !== null && (xi(
1347
+ if (s.nodes_start !== null && (ki(
1348
1348
  s.nodes_start,
1349
1349
  /** @type {TemplateNode} */
1350
1350
  s.nodes_end
1351
1351
  ), s.nodes_start = s.nodes_end = null), f !== "") {
1352
- if (F) {
1353
- O.data;
1354
- for (var c = kt(), d = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
1352
+ if (M) {
1353
+ F.data;
1354
+ for (var c = It(), d = c; c !== null && (c.nodeType !== 8 || /** @type {Comment} */
1355
1355
  c.data !== ""); )
1356
1356
  d = c, c = /** @type {TemplateNode} */
1357
- /* @__PURE__ */ Ze(c);
1357
+ /* @__PURE__ */ ze(c);
1358
1358
  if (c === null)
1359
- throw pr(), Et;
1360
- De(O, d), o = Ge(c);
1359
+ throw mr(), xt;
1360
+ Te(F, d), o = We(c);
1361
1361
  return;
1362
1362
  }
1363
- var _ = f + "";
1364
- r ? _ = `<svg>${_}</svg>` : i && (_ = `<math>${_}</math>`);
1365
- var v = Xr(_);
1363
+ var b = f + "";
1364
+ r ? b = `<svg>${b}</svg>` : i && (b = `<math>${b}</math>`);
1365
+ var v = Qr(b);
1366
1366
  if ((r || i) && (v = /** @type {Element} */
1367
- /* @__PURE__ */ _e(v)), De(
1367
+ /* @__PURE__ */ me(v)), Te(
1368
1368
  /** @type {TemplateNode} */
1369
- /* @__PURE__ */ _e(v),
1369
+ /* @__PURE__ */ me(v),
1370
1370
  /** @type {TemplateNode} */
1371
1371
  v.lastChild
1372
1372
  ), r || i)
1373
- for (; /* @__PURE__ */ _e(v); )
1373
+ for (; /* @__PURE__ */ me(v); )
1374
1374
  o.before(
1375
1375
  /** @type {Node} */
1376
- /* @__PURE__ */ _e(v)
1376
+ /* @__PURE__ */ me(v)
1377
1377
  );
1378
1378
  else
1379
1379
  o.before(v);
1380
1380
  }
1381
1381
  });
1382
1382
  }
1383
- function za(e, t, r, i, l) {
1383
+ function Ja(e, t, r, i, l) {
1384
1384
  var s;
1385
- F && kt();
1385
+ M && It();
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
  }
1389
- const Jn = [...`
1389
+ const Kn = [...`
1390
1390
  \r\f \v\uFEFF`];
1391
- function Ja(e, t, r) {
1391
+ function Ka(e, t, r) {
1392
1392
  var i = "" + e;
1393
1393
  if (r) {
1394
1394
  for (var l in r)
@@ -1397,16 +1397,16 @@ function Ja(e, t, r) {
1397
1397
  else if (i.length)
1398
1398
  for (var o = l.length, f = 0; (f = i.indexOf(l, f)) >= 0; ) {
1399
1399
  var s = f + o;
1400
- (f === 0 || Jn.includes(i[f - 1])) && (s === i.length || Jn.includes(i[s])) ? i = (f === 0 ? "" : i.substring(0, f)) + i.substring(s + 1) : f = s;
1400
+ (f === 0 || Kn.includes(i[f - 1])) && (s === i.length || Kn.includes(i[s])) ? i = (f === 0 ? "" : i.substring(0, f)) + i.substring(s + 1) : f = s;
1401
1401
  }
1402
1402
  }
1403
1403
  return i === "" ? null : i;
1404
1404
  }
1405
- function Ka(e, t, r, i, l, o) {
1405
+ function Xa(e, t, r, i, l, o) {
1406
1406
  var f = e.__className;
1407
- if (F || f !== r || f === void 0) {
1408
- var s = Ja(r, i, o);
1409
- (!F || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : e.className = s), e.__className = r;
1407
+ if (M || f !== r || f === void 0) {
1408
+ var s = Ka(r, i, o);
1409
+ (!M || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : e.className = s), e.__className = r;
1410
1410
  } else if (o && l !== o)
1411
1411
  for (var c in o) {
1412
1412
  var d = !!o[c];
@@ -1414,9 +1414,9 @@ function Ka(e, t, r, i, l, o) {
1414
1414
  }
1415
1415
  return o;
1416
1416
  }
1417
- const Xa = Symbol("is custom element"), Qa = Symbol("is html");
1418
- function Kn(e) {
1419
- if (F) {
1417
+ const Qa = Symbol("is custom element"), el = Symbol("is html");
1418
+ function Xn(e) {
1419
+ if (M) {
1420
1420
  var t = !1, r = () => {
1421
1421
  if (!t) {
1422
1422
  if (t = !0, e.hasAttribute("value")) {
@@ -1429,88 +1429,88 @@ function Kn(e) {
1429
1429
  }
1430
1430
  }
1431
1431
  };
1432
- e.__on_r = r, Sa(r), ji();
1432
+ e.__on_r = r, Ta(r), qi();
1433
1433
  }
1434
1434
  }
1435
- function el(e, t) {
1436
- var r = Wi(e);
1435
+ function tl(e, t) {
1436
+ var r = Yi(e);
1437
1437
  r.value === (r.value = // treat null and undefined the same for the initial value
1438
1438
  t ?? void 0) || // @ts-expect-error
1439
1439
  // `progress` elements always need their value set when it's `0`
1440
1440
  e.value === t && (t !== 0 || e.nodeName !== "PROGRESS") || (e.value = t ?? "");
1441
1441
  }
1442
1442
  function S(e, t, r, i) {
1443
- var l = Wi(e);
1444
- F && (l[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || l[t] !== (l[t] = r) && (t === "loading" && (e[sa] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && tl(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1443
+ var l = Yi(e);
1444
+ M && (l[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || l[t] !== (l[t] = r) && (t === "loading" && (e[ua] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && rl(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1445
1445
  }
1446
- function Wi(e) {
1446
+ function Yi(e) {
1447
1447
  return (
1448
1448
  /** @type {Record<string | symbol, unknown>} **/
1449
1449
  // @ts-expect-error
1450
1450
  e.__attributes ?? (e.__attributes = {
1451
- [Xa]: e.nodeName.includes("-"),
1452
- [Qa]: e.namespaceURI === Qo
1451
+ [Qa]: e.nodeName.includes("-"),
1452
+ [el]: e.namespaceURI === ea
1453
1453
  })
1454
1454
  );
1455
1455
  }
1456
- var Xn = /* @__PURE__ */ new Map();
1457
- function tl(e) {
1458
- var t = Xn.get(e.nodeName);
1456
+ var Qn = /* @__PURE__ */ new Map();
1457
+ function rl(e) {
1458
+ var t = Qn.get(e.nodeName);
1459
1459
  if (t) return t;
1460
- Xn.set(e.nodeName, t = []);
1460
+ Qn.set(e.nodeName, t = []);
1461
1461
  for (var r, i = e, l = Element.prototype; l !== i; ) {
1462
- r = ra(i);
1462
+ r = na(i);
1463
1463
  for (var o in r)
1464
1464
  r[o].set && t.push(o);
1465
- i = si(i);
1465
+ i = ui(i);
1466
1466
  }
1467
1467
  return t;
1468
1468
  }
1469
- function rl(e, t, r = t) {
1470
- Ba(e, "change", (i) => {
1469
+ function nl(e, t, r = t) {
1470
+ Ha(e, "change", (i) => {
1471
1471
  var l = i ? e.defaultChecked : e.checked;
1472
1472
  r(l);
1473
1473
  }), // If we are hydrating and the value has since changed,
1474
1474
  // then use the update value from the input instead.
1475
- (F && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
1476
- at(t) == null) && r(e.checked), Zr(() => {
1475
+ (M && e.defaultChecked !== e.checked || // If defaultChecked is set, then checked == defaultChecked
1476
+ ut(t) == null) && r(e.checked), zr(() => {
1477
1477
  var i = t();
1478
1478
  e.checked = !!i;
1479
1479
  });
1480
1480
  }
1481
- function Qn(e, t) {
1482
- return e === t || (e == null ? void 0 : e[Ut]) === t;
1481
+ function ei(e, t) {
1482
+ return e === t || (e == null ? void 0 : e[jt]) === t;
1483
1483
  }
1484
- function rr(e = {}, t, r, i) {
1485
- return Yr(() => {
1484
+ function nr(e = {}, t, r, i) {
1485
+ return Zr(() => {
1486
1486
  var l, o;
1487
- return Zr(() => {
1488
- l = o, o = [], at(() => {
1489
- e !== r(...o) && (t(e, ...o), l && Qn(r(...l), e) && t(null, ...l));
1487
+ return zr(() => {
1488
+ l = o, o = [], ut(() => {
1489
+ e !== r(...o) && (t(e, ...o), l && ei(r(...l), e) && t(null, ...l));
1490
1490
  });
1491
1491
  }), () => {
1492
- zr(() => {
1493
- o && Qn(r(...o), e) && t(null, ...o);
1492
+ Jr(() => {
1493
+ o && ei(r(...o), e) && t(null, ...o);
1494
1494
  });
1495
1495
  };
1496
1496
  }), e;
1497
1497
  }
1498
- function Yi(e) {
1499
- oe === null && ai(), Or(() => {
1500
- const t = at(e);
1498
+ function Zi(e) {
1499
+ oe === null && li(), Fr(() => {
1500
+ const t = ut(e);
1501
1501
  if (typeof t == "function") return (
1502
1502
  /** @type {() => void} */
1503
1503
  t
1504
1504
  );
1505
1505
  });
1506
1506
  }
1507
- function nl(e) {
1508
- oe === null && ai(), Yi(() => () => at(e));
1507
+ function il(e) {
1508
+ oe === null && li(), Zi(() => () => ut(e));
1509
1509
  }
1510
- function Zi(e, t, r) {
1510
+ function zi(e, t, r) {
1511
1511
  if (e == null)
1512
- return t(void 0), Ct;
1513
- const i = at(
1512
+ return t(void 0), kt;
1513
+ const i = ut(
1514
1514
  () => e.subscribe(
1515
1515
  t,
1516
1516
  // @ts-expect-error
@@ -1519,19 +1519,19 @@ function Zi(e, t, r) {
1519
1519
  );
1520
1520
  return i.unsubscribe ? () => i.unsubscribe() : i;
1521
1521
  }
1522
- const yt = [];
1523
- function il(e, t = Ct) {
1522
+ const Et = [];
1523
+ function ol(e, t = kt) {
1524
1524
  let r = null;
1525
1525
  const i = /* @__PURE__ */ new Set();
1526
1526
  function l(s) {
1527
- if (mi(e, s) && (e = s, r)) {
1528
- const c = !yt.length;
1527
+ if (bi(e, s) && (e = s, r)) {
1528
+ const c = !Et.length;
1529
1529
  for (const d of i)
1530
- d[1](), yt.push(d, e);
1530
+ d[1](), Et.push(d, e);
1531
1531
  if (c) {
1532
- for (let d = 0; d < yt.length; d += 2)
1533
- yt[d][0](yt[d + 1]);
1534
- yt.length = 0;
1532
+ for (let d = 0; d < Et.length; d += 2)
1533
+ Et[d][0](Et[d + 1]);
1534
+ Et.length = 0;
1535
1535
  }
1536
1536
  }
1537
1537
  }
@@ -1541,9 +1541,9 @@ function il(e, t = Ct) {
1541
1541
  e
1542
1542
  ));
1543
1543
  }
1544
- function f(s, c = Ct) {
1544
+ function f(s, c = kt) {
1545
1545
  const d = [s, c];
1546
- return i.add(d), i.size === 1 && (r = t(l, o) || Ct), s(
1546
+ return i.add(d), i.size === 1 && (r = t(l, o) || kt), s(
1547
1547
  /** @type {T} */
1548
1548
  e
1549
1549
  ), () => {
@@ -1552,35 +1552,35 @@ function il(e, t = Ct) {
1552
1552
  }
1553
1553
  return { set: l, update: o, subscribe: f };
1554
1554
  }
1555
- function or(e) {
1555
+ function ar(e) {
1556
1556
  let t;
1557
- return Zi(e, (r) => t = r)(), t;
1557
+ return zi(e, (r) => t = r)(), t;
1558
1558
  }
1559
- let nr = !1, jr = Symbol();
1560
- function ol(e, t, r) {
1559
+ let ir = !1, qr = Symbol();
1560
+ function al(e, t, r) {
1561
1561
  const i = r[t] ?? (r[t] = {
1562
1562
  store: null,
1563
- source: /* @__PURE__ */ Kr(void 0),
1564
- unsubscribe: Ct
1563
+ source: /* @__PURE__ */ Xr(void 0),
1564
+ unsubscribe: kt
1565
1565
  });
1566
- if (i.store !== e && !(jr in r))
1566
+ if (i.store !== e && !(qr in r))
1567
1567
  if (i.unsubscribe(), i.store = e ?? null, e == null)
1568
- i.source.v = void 0, i.unsubscribe = Ct;
1568
+ i.source.v = void 0, i.unsubscribe = kt;
1569
1569
  else {
1570
1570
  var l = !0;
1571
- i.unsubscribe = Zi(e, (o) => {
1572
- l ? i.source.v = o : b(i.source, o);
1571
+ i.unsubscribe = zi(e, (o) => {
1572
+ l ? i.source.v = o : _(i.source, o);
1573
1573
  }), l = !1;
1574
1574
  }
1575
- return e && jr in r ? or(e) : a(i.source);
1575
+ return e && qr in r ? ar(e) : a(i.source);
1576
1576
  }
1577
- function al() {
1577
+ function ll() {
1578
1578
  const e = {};
1579
1579
  function t() {
1580
- Wr(() => {
1580
+ Yr(() => {
1581
1581
  for (var r in e)
1582
1582
  e[r].unsubscribe();
1583
- qt(e, jr, {
1583
+ Bt(e, qr, {
1584
1584
  enumerable: !1,
1585
1585
  value: !0
1586
1586
  });
@@ -1588,72 +1588,72 @@ function al() {
1588
1588
  }
1589
1589
  return [e, t];
1590
1590
  }
1591
- function ll(e) {
1592
- var t = nr;
1591
+ function sl(e) {
1592
+ var t = ir;
1593
1593
  try {
1594
- return nr = !1, [e(), nr];
1594
+ return ir = !1, [e(), ir];
1595
1595
  } finally {
1596
- nr = t;
1596
+ ir = t;
1597
1597
  }
1598
1598
  }
1599
- function ei(e) {
1599
+ function ti(e) {
1600
1600
  var t;
1601
1601
  return ((t = e.ctx) == null ? void 0 : t.d) ?? !1;
1602
1602
  }
1603
- function k(e, t, r, i) {
1604
- var ft;
1605
- var l = (r & Yo) !== 0, o = !0, f = (r & zo) !== 0, s = (r & Jo) !== 0, c = !1, d;
1606
- f ? [d, c] = ll(() => (
1603
+ function x(e, t, r, i) {
1604
+ var Le;
1605
+ var l = (r & Zo) !== 0, o = !0, f = (r & Jo) !== 0, s = (r & Ko) !== 0, c = !1, d;
1606
+ f ? [d, c] = sl(() => (
1607
1607
  /** @type {V} */
1608
1608
  e[t]
1609
1609
  )) : d = /** @type {V} */
1610
1610
  e[t];
1611
- var _ = Ut in e || di in e, v = f && (((ft = it(e, t)) == null ? void 0 : ft.set) ?? (_ && t in e && ((q) => e[t] = q))) || void 0, m = (
1611
+ var b = jt in e || hi in e, v = f && (((Le = lt(e, t)) == null ? void 0 : Le.set) ?? (b && t in e && ((q) => e[t] = q))) || void 0, m = (
1612
1612
  /** @type {V} */
1613
1613
  i
1614
- ), y = !0, $ = !1, E = () => ($ = !0, y && (y = !1, s ? m = at(
1614
+ ), y = !0, D = !1, N = () => (D = !0, y && (y = !1, s ? m = ut(
1615
1615
  /** @type {() => V} */
1616
1616
  i
1617
1617
  ) : m = /** @type {V} */
1618
1618
  i), m);
1619
- d === void 0 && i !== void 0 && (v && o && va(), d = E(), v && v(d));
1620
- var U;
1621
- if (U = () => {
1619
+ d === void 0 && i !== void 0 && (v && o && ga(), d = N(), v && v(d));
1620
+ var j;
1621
+ if (j = () => {
1622
1622
  var q = (
1623
1623
  /** @type {V} */
1624
1624
  e[t]
1625
1625
  );
1626
- return q === void 0 ? E() : (y = !0, $ = !1, q);
1627
- }, (r & Zo) === 0)
1628
- return U;
1626
+ return q === void 0 ? N() : (y = !0, D = !1, q);
1627
+ }, (r & zo) === 0)
1628
+ return j;
1629
1629
  if (v) {
1630
- var ce = e.$$legacy;
1631
- return function(q, ae) {
1632
- return arguments.length > 0 ? ((!ae || ce || c) && v(ae ? U() : q), q) : U();
1630
+ var R = e.$$legacy;
1631
+ return function(q, xe) {
1632
+ return arguments.length > 0 ? ((!xe || R || c) && v(xe ? j() : q), q) : j();
1633
1633
  };
1634
1634
  }
1635
- var K = !1, te = /* @__PURE__ */ Kr(d), X = /* @__PURE__ */ _r(() => {
1636
- var q = U(), ae = a(te);
1637
- return K ? (K = !1, ae) : te.v = q;
1635
+ var X = !1, ae = /* @__PURE__ */ Xr(d), Q = /* @__PURE__ */ _r(() => {
1636
+ var q = j(), xe = a(ae);
1637
+ return X ? (X = !1, xe) : ae.v = q;
1638
1638
  });
1639
- return f && a(X), l || (X.equals = Gr), function(q, ae) {
1639
+ return f && a(Q), l || (Q.equals = Wr), function(q, xe) {
1640
1640
  if (arguments.length > 0) {
1641
- const be = ae ? a(X) : f ? Be(q) : q;
1642
- if (!X.equals(be)) {
1643
- if (K = !0, b(te, be), $ && m !== void 0 && (m = be), ei(X))
1641
+ const Me = xe ? a(Q) : f ? He(q) : q;
1642
+ if (!Q.equals(Me)) {
1643
+ if (X = !0, _(ae, Me), D && m !== void 0 && (m = Me), ti(Q))
1644
1644
  return q;
1645
- at(() => a(X));
1645
+ ut(() => a(Q));
1646
1646
  }
1647
1647
  return q;
1648
1648
  }
1649
- return ei(X) ? X.v : a(X);
1649
+ return ti(Q) ? Q.v : a(Q);
1650
1650
  };
1651
1651
  }
1652
- function sl(e) {
1653
- return new ul(e);
1652
+ function ul(e) {
1653
+ return new fl(e);
1654
1654
  }
1655
- var Oe, me;
1656
- class ul {
1655
+ var Oe, pe;
1656
+ class fl {
1657
1657
  /**
1658
1658
  * @param {ComponentConstructorOptions & {
1659
1659
  * component: any;
@@ -1663,10 +1663,10 @@ class ul {
1663
1663
  /** @type {any} */
1664
1664
  $r(this, Oe);
1665
1665
  /** @type {Record<string, any>} */
1666
- $r(this, me);
1666
+ $r(this, pe);
1667
1667
  var o;
1668
1668
  var r = /* @__PURE__ */ new Map(), i = (f, s) => {
1669
- var c = /* @__PURE__ */ Kr(s);
1669
+ var c = /* @__PURE__ */ Xr(s);
1670
1670
  return r.set(f, c), c;
1671
1671
  };
1672
1672
  const l = new Proxy(
@@ -1676,42 +1676,42 @@ class ul {
1676
1676
  return a(r.get(s) ?? i(s, Reflect.get(f, s)));
1677
1677
  },
1678
1678
  has(f, s) {
1679
- return s === di ? !0 : (a(r.get(s) ?? i(s, Reflect.get(f, s))), Reflect.has(f, s));
1679
+ return s === hi ? !0 : (a(r.get(s) ?? i(s, Reflect.get(f, s))), Reflect.has(f, s));
1680
1680
  },
1681
1681
  set(f, s, c) {
1682
- return b(r.get(s) ?? i(s, c), c), Reflect.set(f, s, c);
1682
+ return _(r.get(s) ?? i(s, c), c), Reflect.set(f, s, c);
1683
1683
  }
1684
1684
  }
1685
1685
  );
1686
- Sr(this, me, (t.hydrate ? Ya : Hi)(t.component, {
1686
+ Tr(this, pe, (t.hydrate ? Za : Gi)(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(), Sr(this, Oe, l.$$events);
1694
- for (const f of Object.keys(se(this, me)))
1695
- f === "$set" || f === "$destroy" || f === "$on" || qt(this, f, {
1693
+ })), (!((o = t == null ? void 0 : t.props) != null && o.$$host) || t.sync === !1) && C(), Tr(this, Oe, l.$$events);
1694
+ for (const f of Object.keys(se(this, pe)))
1695
+ f === "$set" || f === "$destroy" || f === "$on" || Bt(this, f, {
1696
1696
  get() {
1697
- return se(this, me)[f];
1697
+ return se(this, pe)[f];
1698
1698
  },
1699
1699
  /** @param {any} value */
1700
1700
  set(s) {
1701
- se(this, me)[f] = s;
1701
+ se(this, pe)[f] = s;
1702
1702
  },
1703
1703
  enumerable: !0
1704
1704
  });
1705
- se(this, me).$set = /** @param {Record<string, any>} next */
1705
+ se(this, pe).$set = /** @param {Record<string, any>} next */
1706
1706
  (f) => {
1707
1707
  Object.assign(l, f);
1708
- }, se(this, me).$destroy = () => {
1709
- Za(se(this, me));
1708
+ }, se(this, pe).$destroy = () => {
1709
+ za(se(this, pe));
1710
1710
  };
1711
1711
  }
1712
1712
  /** @param {Record<string, any>} props */
1713
1713
  $set(t) {
1714
- se(this, me).$set(t);
1714
+ se(this, pe).$set(t);
1715
1715
  }
1716
1716
  /**
1717
1717
  * @param {string} event
@@ -1729,12 +1729,12 @@ class ul {
1729
1729
  };
1730
1730
  }
1731
1731
  $destroy() {
1732
- se(this, me).$destroy();
1732
+ se(this, pe).$destroy();
1733
1733
  }
1734
1734
  }
1735
- Oe = new WeakMap(), me = new WeakMap();
1736
- let zi;
1737
- typeof HTMLElement == "function" && (zi = class extends HTMLElement {
1735
+ Oe = new WeakMap(), pe = new WeakMap();
1736
+ let Ji;
1737
+ typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
1738
1738
  /**
1739
1739
  * @param {*} $$componentCtor
1740
1740
  * @param {*} $$slots
@@ -1743,25 +1743,25 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
1743
1743
  constructor(t, r, i) {
1744
1744
  super();
1745
1745
  /** The Svelte component constructor */
1746
- Ee(this, "$$ctor");
1746
+ ye(this, "$$ctor");
1747
1747
  /** Slots */
1748
- Ee(this, "$$s");
1748
+ ye(this, "$$s");
1749
1749
  /** @type {any} The Svelte component instance */
1750
- Ee(this, "$$c");
1750
+ ye(this, "$$c");
1751
1751
  /** Whether or not the custom element is connected */
1752
- Ee(this, "$$cn", !1);
1752
+ ye(this, "$$cn", !1);
1753
1753
  /** @type {Record<string, any>} Component props data */
1754
- Ee(this, "$$d", {});
1754
+ ye(this, "$$d", {});
1755
1755
  /** `true` if currently in the process of reflecting component props back to attributes */
1756
- Ee(this, "$$r", !1);
1756
+ ye(this, "$$r", !1);
1757
1757
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
1758
- Ee(this, "$$p_d", {});
1758
+ ye(this, "$$p_d", {});
1759
1759
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
1760
- Ee(this, "$$l", {});
1760
+ ye(this, "$$l", {});
1761
1761
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
1762
- Ee(this, "$$l_u", /* @__PURE__ */ new Map());
1762
+ ye(this, "$$l_u", /* @__PURE__ */ new Map());
1763
1763
  /** @type {any} The managed render effect for reflecting attributes */
1764
- Ee(this, "$$me");
1764
+ ye(this, "$$me");
1765
1765
  this.$$ctor = t, this.$$s = r, i && this.attachShadow({ mode: "open" });
1766
1766
  }
1767
1767
  /**
@@ -1792,21 +1792,21 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
1792
1792
  let t = function(l) {
1793
1793
  return (o) => {
1794
1794
  const f = document.createElement("slot");
1795
- l !== "default" && (f.name = l), j(o, f);
1795
+ l !== "default" && (f.name = l), B(o, f);
1796
1796
  };
1797
1797
  };
1798
1798
  if (await Promise.resolve(), !this.$$cn || this.$$c)
1799
1799
  return;
1800
- const r = {}, i = fl(this);
1800
+ const r = {}, i = cl(this);
1801
1801
  for (const l of this.$$s)
1802
1802
  l in i && (l === "default" && !this.$$d.children ? (this.$$d.children = t(l), r.default = !0) : r[l] = t(l));
1803
1803
  for (const l of this.attributes) {
1804
1804
  const o = this.$$g_p(l.name);
1805
- o in this.$$d || (this.$$d[o] = ar(o, l.value, this.$$p_d, "toProp"));
1805
+ o in this.$$d || (this.$$d[o] = lr(o, l.value, this.$$p_d, "toProp"));
1806
1806
  }
1807
1807
  for (const l in this.$$p_d)
1808
1808
  !(l in this.$$d) && this[l] !== void 0 && (this.$$d[l] = this[l], delete this[l]);
1809
- this.$$c = sl({
1809
+ this.$$c = ul({
1810
1810
  component: this.$$ctor,
1811
1811
  target: this.shadowRoot || this,
1812
1812
  props: {
@@ -1814,14 +1814,14 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
1814
1814
  $$slots: r,
1815
1815
  $$host: this
1816
1816
  }
1817
- }), this.$$me = ka(() => {
1818
- Zr(() => {
1817
+ }), this.$$me = Aa(() => {
1818
+ zr(() => {
1819
1819
  var l;
1820
1820
  this.$$r = !0;
1821
- for (const o of lr(this.$$c)) {
1821
+ for (const o of sr(this.$$c)) {
1822
1822
  if (!((l = this.$$p_d[o]) != null && l.reflect)) continue;
1823
1823
  this.$$d[o] = this.$$c[o];
1824
- const f = ar(
1824
+ const f = lr(
1825
1825
  o,
1826
1826
  this.$$d[o],
1827
1827
  this.$$p_d,
@@ -1849,7 +1849,7 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
1849
1849
  */
1850
1850
  attributeChangedCallback(t, r, i) {
1851
1851
  var l;
1852
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = ar(t, i, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [t]: this.$$d[t] }));
1852
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = lr(t, i, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [t]: this.$$d[t] }));
1853
1853
  }
1854
1854
  disconnectedCallback() {
1855
1855
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -1860,12 +1860,12 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
1860
1860
  * @param {string} attribute_name
1861
1861
  */
1862
1862
  $$g_p(t) {
1863
- return lr(this.$$p_d).find(
1863
+ return sr(this.$$p_d).find(
1864
1864
  (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
1865
1865
  ) || t;
1866
1866
  }
1867
1867
  });
1868
- function ar(e, t, r, i) {
1868
+ function lr(e, t, r, i) {
1869
1869
  var o;
1870
1870
  const l = (o = r[e]) == null ? void 0 : o.type;
1871
1871
  if (t = l === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e])
@@ -1896,7 +1896,7 @@ function ar(e, t, r, i) {
1896
1896
  return t;
1897
1897
  }
1898
1898
  }
1899
- function fl(e) {
1899
+ function cl(e) {
1900
1900
  const t = {};
1901
1901
  return e.childNodes.forEach((r) => {
1902
1902
  t[
@@ -1905,34 +1905,34 @@ function fl(e) {
1905
1905
  ] = !0;
1906
1906
  }), t;
1907
1907
  }
1908
- function cl(e, t, r, i, l, o) {
1909
- let f = class extends zi {
1908
+ function dl(e, t, r, i, l, o) {
1909
+ let f = class extends Ji {
1910
1910
  constructor() {
1911
1911
  super(e, r, l), this.$$p_d = t;
1912
1912
  }
1913
1913
  static get observedAttributes() {
1914
- return lr(t).map(
1914
+ return sr(t).map(
1915
1915
  (s) => (t[s].attribute || s).toLowerCase()
1916
1916
  );
1917
1917
  }
1918
1918
  };
1919
- return lr(t).forEach((s) => {
1920
- qt(f.prototype, s, {
1919
+ return sr(t).forEach((s) => {
1920
+ Bt(f.prototype, s, {
1921
1921
  get() {
1922
1922
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
1923
1923
  },
1924
1924
  set(c) {
1925
1925
  var v;
1926
- c = ar(s, c, t), this.$$d[s] = c;
1926
+ c = lr(s, c, t), this.$$d[s] = c;
1927
1927
  var d = this.$$c;
1928
1928
  if (d) {
1929
- var _ = (v = it(d, s)) == null ? void 0 : v.get;
1930
- _ ? d[s] = c : d.$set({ [s]: c });
1929
+ var b = (v = lt(d, s)) == null ? void 0 : v.get;
1930
+ b ? d[s] = c : d.$set({ [s]: c });
1931
1931
  }
1932
1932
  }
1933
1933
  });
1934
1934
  }), i.forEach((s) => {
1935
- qt(f.prototype, s, {
1935
+ Bt(f.prototype, s, {
1936
1936
  get() {
1937
1937
  var c;
1938
1938
  return (c = this.$$c) == null ? void 0 : c[s];
@@ -1941,14 +1941,14 @@ function cl(e, t, r, i, l, o) {
1941
1941
  }), e.element = /** @type {any} */
1942
1942
  f, f;
1943
1943
  }
1944
- const Ji = new TextEncoder();
1945
- function dl(e) {
1944
+ const Ki = new TextEncoder();
1945
+ function hl(e) {
1946
1946
  return [...new Uint8Array(e)].map((t) => t.toString(16).padStart(2, "0")).join("");
1947
1947
  }
1948
- async function hl(e, t = "SHA-256", r = 1e5) {
1948
+ async function vl(e, t = "SHA-256", r = 1e5) {
1949
1949
  const i = Date.now().toString(16);
1950
1950
  e || (e = Math.round(Math.random() * r));
1951
- const l = await Ki(i, e, t);
1951
+ const l = await Xi(i, e, t);
1952
1952
  return {
1953
1953
  algorithm: t,
1954
1954
  challenge: l,
@@ -1956,24 +1956,24 @@ async function hl(e, t = "SHA-256", r = 1e5) {
1956
1956
  signature: ""
1957
1957
  };
1958
1958
  }
1959
- async function Ki(e, t, r) {
1959
+ async function Xi(e, t, r) {
1960
1960
  if (typeof crypto > "u" || !("subtle" in crypto) || !("digest" in crypto.subtle))
1961
1961
  throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");
1962
- return dl(
1962
+ return hl(
1963
1963
  await crypto.subtle.digest(
1964
1964
  r.toUpperCase(),
1965
- Ji.encode(e + t)
1965
+ Ki.encode(e + t)
1966
1966
  )
1967
1967
  );
1968
1968
  }
1969
- function vl(e, t, r = "SHA-256", i = 1e6, l = 0) {
1969
+ function gl(e, t, r = "SHA-256", i = 1e6, l = 0) {
1970
1970
  const o = new AbortController(), f = Date.now();
1971
1971
  return {
1972
1972
  promise: (async () => {
1973
1973
  for (let c = l; c <= i; c += 1) {
1974
1974
  if (o.signal.aborted)
1975
1975
  return null;
1976
- if (await Ki(t, c, r) === e)
1976
+ if (await Xi(t, c, r) === e)
1977
1977
  return {
1978
1978
  number: c,
1979
1979
  took: Date.now() - f
@@ -1984,34 +1984,34 @@ function vl(e, t, r = "SHA-256", i = 1e6, l = 0) {
1984
1984
  controller: o
1985
1985
  };
1986
1986
  }
1987
- function ti() {
1987
+ function ri() {
1988
1988
  try {
1989
1989
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
1990
1990
  } catch {
1991
1991
  }
1992
1992
  }
1993
- function gl(e) {
1993
+ function pl(e) {
1994
1994
  const t = atob(e), r = new Uint8Array(t.length);
1995
1995
  for (let i = 0; i < t.length; i++)
1996
1996
  r[i] = t.charCodeAt(i);
1997
1997
  return r;
1998
1998
  }
1999
- function pl(e, t = 12) {
1999
+ function ml(e, t = 12) {
2000
2000
  const r = new Uint8Array(t);
2001
2001
  for (let i = 0; i < t; i++)
2002
2002
  r[i] = e % 256, e = Math.floor(e / 256);
2003
2003
  return r;
2004
2004
  }
2005
- async function ml(e, t = "", r = 1e6, i = 0) {
2005
+ async function bl(e, t = "", r = 1e6, i = 0) {
2006
2006
  const l = "AES-GCM", o = new AbortController(), f = Date.now(), s = async () => {
2007
- for (let _ = i; _ <= r; _ += 1) {
2007
+ for (let b = i; b <= r; b += 1) {
2008
2008
  if (o.signal.aborted || !c || !d)
2009
2009
  return null;
2010
2010
  try {
2011
2011
  const v = await crypto.subtle.decrypt(
2012
2012
  {
2013
2013
  name: l,
2014
- iv: pl(_)
2014
+ iv: ml(b)
2015
2015
  },
2016
2016
  c,
2017
2017
  d
@@ -2028,14 +2028,14 @@ async function ml(e, t = "", r = 1e6, i = 0) {
2028
2028
  };
2029
2029
  let c = null, d = null;
2030
2030
  try {
2031
- d = gl(e);
2032
- const _ = await crypto.subtle.digest(
2031
+ d = pl(e);
2032
+ const b = await crypto.subtle.digest(
2033
2033
  "SHA-256",
2034
- Ji.encode(t)
2034
+ Ki.encode(t)
2035
2035
  );
2036
2036
  c = await crypto.subtle.importKey(
2037
2037
  "raw",
2038
- _,
2038
+ b,
2039
2039
  l,
2040
2040
  !1,
2041
2041
  ["decrypt"]
@@ -2051,16 +2051,16 @@ async function ml(e, t = "", r = 1e6, i = 0) {
2051
2051
  controller: o
2052
2052
  };
2053
2053
  }
2054
- var w = /* @__PURE__ */ ((e) => (e.CODE = "code", e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(w || {}), ee = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.READY = "ready", e))(ee || {});
2054
+ var w = /* @__PURE__ */ ((e) => (e.CODE = "code", e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(w || {}), te = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.READY = "ready", e))(te || {});
2055
2055
  globalThis.altchaPlugins = globalThis.altchaPlugins || [];
2056
2056
  globalThis.altchaI18n = globalThis.altchaI18n || {
2057
- get: (e) => or(globalThis.altchaI18n.store)[e],
2057
+ get: (e) => ar(globalThis.altchaI18n.store)[e],
2058
2058
  set: (e, t) => {
2059
- Object.assign(or(globalThis.altchaI18n.store), {
2059
+ Object.assign(ar(globalThis.altchaI18n.store), {
2060
2060
  [e]: t
2061
- }), globalThis.altchaI18n.store.set(or(globalThis.altchaI18n.store));
2061
+ }), globalThis.altchaI18n.store.set(ar(globalThis.altchaI18n.store));
2062
2062
  },
2063
- store: il({})
2063
+ store: ol({})
2064
2064
  };
2065
2065
  const _l = {
2066
2066
  ariaLinkLabel: "Visit Altcha.org",
@@ -2080,136 +2080,136 @@ const _l = {
2080
2080
  waitAlert: "Verifying... please wait."
2081
2081
  };
2082
2082
  globalThis.altchaI18n.set("en", _l);
2083
- const Nr = (e, t) => {
2084
- let r = /* @__PURE__ */ wa(() => oa(t == null ? void 0 : t(), 24));
2085
- var i = El();
2083
+ const Lr = (e, t) => {
2084
+ let r = /* @__PURE__ */ Ea(() => aa(t == null ? void 0 : t(), 24));
2085
+ var i = Cl();
2086
2086
  Se(() => {
2087
2087
  S(i, "width", a(r)), S(i, "height", a(r));
2088
- }), j(e, i);
2088
+ }), B(e, i);
2089
2089
  };
2090
- function bl(e, t) {
2090
+ function yl(e, t) {
2091
2091
  e.code === "Space" && (e.preventDefault(), e.stopImmediatePropagation(), t());
2092
2092
  }
2093
- function yl(e, t) {
2093
+ function wl(e, t) {
2094
2094
  e.preventDefault(), t();
2095
2095
  }
2096
- function wl(e, t, r, i, l, o, f, s) {
2096
+ function El(e, t, r, i, l, o, f, s) {
2097
2097
  var c;
2098
2098
  [
2099
2099
  w.UNVERIFIED,
2100
2100
  w.ERROR,
2101
2101
  w.EXPIRED,
2102
2102
  w.CODE
2103
- ].includes(a(t)) ? r() !== !1 && ((c = a(i)) == null ? void 0 : c.reportValidity()) === !1 ? b(l, !1) : o() ? f() : s() : b(l, !0);
2104
- }
2105
- var El = /* @__PURE__ */ wr('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'), Cl = /* @__PURE__ */ ke('<input type="hidden">'), xl = /* @__PURE__ */ ke('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>'), kl = /* @__PURE__ */ wr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'), Al = /* @__PURE__ */ wr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'), Il = /* @__PURE__ */ wr('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'), Rl = /* @__PURE__ */ ke('<button type="button" class="altcha-code-challenge-audio"><!></button>'), $l = /* @__PURE__ */ ke("<audio hidden autoplay><source></audio>"), Sl = /* @__PURE__ */ ke('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'), Tl = /* @__PURE__ */ ke("<div><!></div>"), Dl = /* @__PURE__ */ ke("<div><!></div>"), Nl = /* @__PURE__ */ ke('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), Ll = /* @__PURE__ */ ke('<div class="altcha-footer"><div><!></div></div>'), Pl = /* @__PURE__ */ ke('<div class="altcha-anchor-arrow"></div>'), Ol = /* @__PURE__ */ ke('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>', 1);
2106
- function Fl(e, t) {
2107
- var Fn, Mn;
2108
- Mi(t, !0);
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), 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) => {
2103
+ ].includes(a(t)) ? r() !== !1 && ((c = a(i)) == null ? void 0 : c.reportValidity()) === !1 ? _(l, !1) : o() ? f() : s() : _(l, !0);
2104
+ }
2105
+ var Cl = /* @__PURE__ */ Er('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="altcha-spinner"><path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" fill="currentColor" opacity=".25"></path><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" fill="currentColor"></path></svg>'), xl = /* @__PURE__ */ Ce('<input type="hidden">'), kl = /* @__PURE__ */ Ce('<div><a target="_blank" class="altcha-logo" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>'), Al = /* @__PURE__ */ Er('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'), Il = /* @__PURE__ */ Er('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'), Rl = /* @__PURE__ */ Er('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'), Sl = /* @__PURE__ */ Ce('<button type="button" class="altcha-code-challenge-audio"><!></button>'), $l = /* @__PURE__ */ Ce("<audio hidden autoplay><source></audio>"), Tl = /* @__PURE__ */ Ce('<div class="altcha-code-challenge" role="dialog"><div class="altcha-code-challenge-arrow"></div> <form data-code-challenge-form="1"><img class="altcha-code-challenge-image" alt=""> <input type="text" autocomplete="off" name="code" class="altcha-code-challenge-input" required> <div class="altcha-code-challenge-buttons"><div class="altcha-code-challenge-buttons-left"><!> <button type="button" class="altcha-code-challenge-reload"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <button type="submit" class="altcha-code-challenge-verify"><!> </button></div> <!></form></div>'), Dl = /* @__PURE__ */ Ce("<div><!></div>"), Nl = /* @__PURE__ */ Ce("<div><!></div>"), Ll = /* @__PURE__ */ Ce('<div class="altcha-error"><svg width="14" height="14" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), Pl = /* @__PURE__ */ Ce('<div class="altcha-footer"><div><!></div></div>'), Ol = /* @__PURE__ */ Ce('<div class="altcha-anchor-arrow"></div>'), Fl = /* @__PURE__ */ Ce('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>', 1);
2106
+ function Ml(e, t) {
2107
+ var Mn, Vn;
2108
+ Vi(t, !0);
2109
+ const [r, i] = ll(), l = () => al(ro, "$altchaI18nStore", r);
2110
+ let o = x(t, "auto", 7, void 0), f = x(t, "blockspam", 7, void 0), s = x(t, "challengeurl", 7, void 0), c = x(t, "challengejson", 7, void 0), d = x(t, "credentials", 7, void 0), b = x(t, "customfetch", 7, void 0), v = x(t, "debug", 7, !1), m = x(t, "delay", 7, 0), y = x(t, "disableautofocus", 7, !1), D = x(t, "refetchonexpire", 7, !0), N = x(t, "disablerefetchonexpire", 23, () => !D()), j = x(t, "expire", 7, void 0), R = x(t, "floating", 7, void 0), X = x(t, "floatinganchor", 7, void 0), ae = x(t, "floatingoffset", 7, void 0), Q = x(t, "floatingpersist", 7, !1), Le = x(t, "hidefooter", 7, !1), q = x(t, "hidelogo", 7, !1), xe = x(t, "id", 7, void 0), Me = x(t, "language", 7, void 0), Je = x(t, "name", 7, "altcha"), Ke = x(t, "maxnumber", 7, 1e6), Rt = x(t, "mockerror", 7, !1), Ve = x(t, "obfuscated", 7, void 0), be = x(t, "overlay", 7, void 0), St = x(t, "overlaycontent", 7, void 0), zt = x(t, "plugins", 7, void 0), Xe = x(t, "sentinel", 7, void 0), ke = x(t, "spamfilter", 7, !1), ht = x(t, "strings", 7, void 0), ve = x(t, "test", 7, !1), re = x(t, "verifyurl", 7, void 0), vt = x(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), $t = x(t, "workerurl", 7, void 0);
2111
+ const { altchaI18n: to } = globalThis, ro = to.store, en = ["SHA-256", "SHA-384", "SHA-512"], no = "https://altcha.org/", Ue = (n, u) => {
2112
2112
  t.$$host.dispatchEvent(new CustomEvent(n, { detail: u }));
2113
- }, en = (Mn = (Fn = document.documentElement.lang) == null ? void 0 : Fn.split("-")) == null ? void 0 : Mn[0], Er = /* @__PURE__ */ Mt(() => {
2113
+ }, tn = (Vn = (Mn = document.documentElement.lang) == null ? void 0 : Mn.split("-")) == null ? void 0 : Vn[0], Cr = /* @__PURE__ */ Vt(() => {
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() ? pn(c()) : void 0), no = /* @__PURE__ */ Mt(() => ct() ? pn(ct()) : {}), P = /* @__PURE__ */ Mt(() => ({
2117
- ...on(l()),
2118
- ...a(no)
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
- mo(a(Ke));
2123
- }), Or(() => {
2124
- _o(a(I));
2125
- }), nl(() => {
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
- }), Yi(() => {
2116
+ }), Jt = /* @__PURE__ */ Vt(() => c() ? mn(c()) : void 0), io = /* @__PURE__ */ Vt(() => ht() ? mn(ht()) : {}), O = /* @__PURE__ */ Vt(() => ({
2117
+ ...an(l()),
2118
+ ...a(io)
2119
+ })), rn = /* @__PURE__ */ Vt(() => `${xe() || Je()}_checkbox_${Math.round(Math.random() * 1e8)}`);
2120
+ let Qe = /* @__PURE__ */ P(null), Tt = /* @__PURE__ */ P(!1), G = /* @__PURE__ */ P(null), A = /* @__PURE__ */ P(He(w.UNVERIFIED)), V = /* @__PURE__ */ P(void 0), Dt = /* @__PURE__ */ P(null), je = /* @__PURE__ */ P(null), ce = /* @__PURE__ */ P(null), xr = /* @__PURE__ */ P(null), gt = /* @__PURE__ */ P(null), L = /* @__PURE__ */ P(null), Nt = /* @__PURE__ */ P(null), et = /* @__PURE__ */ P(null), Ae = null, W = /* @__PURE__ */ P(null), tt = /* @__PURE__ */ P(!1), qe = [], kr = /* @__PURE__ */ P(!1), Ie = /* @__PURE__ */ P(null);
2121
+ Fr(() => {
2122
+ bo(a(et));
2123
+ }), Fr(() => {
2124
+ _o(a(A));
2125
+ }), il(() => {
2126
+ oo(), _(Nt, null), a(L) && (a(L).removeEventListener("submit", dn), a(L).removeEventListener("reset", hn), a(L).removeEventListener("focusin", cn), _(L, null)), Ae && (clearTimeout(Ae), Ae = null), document.removeEventListener("click", un), document.removeEventListener("scroll", fn), window.removeEventListener("resize", pn);
2127
+ }), Zi(() => {
2128
2128
  var n;
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
- Ve("load");
2129
+ I("mounted", "2.2.3"), I("workers", vt()), uo(), I("plugins", qe.length ? qe.map((u) => u.constructor.pluginName).join(", ") : "none"), ve() && I("using test mode"), j() && Ar(j()), o() !== void 0 && I("auto", o()), R() !== void 0 && wn(R()), _(L, (n = a(V)) == null ? void 0 : n.closest("form"), !0), a(L) && (a(L).addEventListener("submit", dn, { capture: !0 }), a(L).addEventListener("reset", hn), (o() === "onfocus" || Q() === "focus") && a(L).addEventListener("focusin", cn)), be() && En(!0), o() === "onload" && (Ve() ? Lt() : Pe()), a(Cr) && (Le() || q()) && I("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
2130
+ Ue("load");
2131
2131
  });
2132
2132
  });
2133
- function Jt(n, u) {
2133
+ function Kt(n, u) {
2134
2134
  return btoa(JSON.stringify({
2135
2135
  algorithm: n.algorithm,
2136
2136
  challenge: n.challenge,
2137
2137
  number: u.number,
2138
2138
  salt: n.salt,
2139
2139
  signature: n.signature,
2140
- test: ge() ? !0 : void 0,
2140
+ test: ve() ? !0 : void 0,
2141
2141
  took: u.took
2142
2142
  }));
2143
2143
  }
2144
- function io() {
2145
- for (const n of je)
2144
+ function oo() {
2145
+ for (const n of qe)
2146
2146
  n.destroy();
2147
2147
  }
2148
- function rn() {
2149
- s() && Rt() && a(I) === w.VERIFIED ? Pe() : Qe(w.EXPIRED, a(P).expired);
2150
- }
2151
- async function oo() {
2152
- if (At())
2153
- throw R("mocking error"), new Error("Mocked error.");
2154
- if (a(zt))
2155
- return R("using provided json data"), mn(a(zt).salt), a(zt);
2156
- if (ge())
2157
- return R("generating test challenge", { test: ge() }), hl(typeof ge() != "boolean" ? +ge() : void 0);
2148
+ function nn() {
2149
+ s() && !N() && a(A) === w.VERIFIED ? Pe() : rt(w.EXPIRED, a(O).expired);
2150
+ }
2151
+ async function ao() {
2152
+ if (Rt())
2153
+ throw I("mocking error"), new Error("Mocked error.");
2154
+ if (a(Jt))
2155
+ return I("using provided json data"), bn(a(Jt).salt), a(Jt);
2156
+ if (ve())
2157
+ return I("generating test challenge", { test: ve() }), vl(typeof ve() != "boolean" ? +ve() : void 0);
2158
2158
  {
2159
- if (!s() && a(N)) {
2160
- const h = a(N).getAttribute("action");
2159
+ if (!s() && a(L)) {
2160
+ const h = a(L).getAttribute("action");
2161
2161
  h != null && h.includes("/form/") && s(h + "/altcha");
2162
2162
  }
2163
2163
  if (!s())
2164
2164
  throw new Error("Attribute challengeurl not set.");
2165
- R("fetching challenge from", s());
2165
+ I("fetching challenge from", s());
2166
2166
  const n = {
2167
2167
  credentials: typeof d() == "boolean" ? "include" : d(),
2168
- headers: Ae() !== !1 ? { "x-altcha-spam-filter": "1" } : {}
2169
- }, u = await nn()(s(), n);
2168
+ headers: ke() !== !1 ? { "x-altcha-spam-filter": "1" } : {}
2169
+ }, u = await on()(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 (mn(p.salt), g)
2175
+ if (bn(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 = ln(h.verifyurl)), xn(h));
2178
+ h && typeof h == "object" && (h.verifyurl && !h.verifyurl.startsWith("fn:") && (h.verifyurl = sn(h.verifyurl)), kn(h));
2179
2179
  } catch (h) {
2180
- R("unable to configure from X-Altcha-Config", h);
2180
+ I("unable to configure from X-Altcha-Config", h);
2181
2181
  }
2182
2182
  return p;
2183
2183
  }
2184
2184
  }
2185
- function ao(n) {
2185
+ function lo(n) {
2186
2186
  var g, p;
2187
- const u = (g = a(N)) == null ? void 0 : g.querySelector(typeof n == "string" ? `input[name="${n}"]` : 'input[type="email"]:not([data-no-spamfilter])');
2187
+ const u = (g = a(L)) == 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 nn() {
2190
+ function on() {
2191
2191
  let n = fetch;
2192
- if (_())
2193
- if (R("using customfetch"), typeof _() == "string") {
2194
- if (n = globalThis[_()] || null, !n)
2195
- throw new Error(`Custom fetch function not found: ${_()}`);
2192
+ if (b())
2193
+ if (I("using customfetch"), typeof b() == "string") {
2194
+ if (n = globalThis[b()] || null, !n)
2195
+ throw new Error(`Custom fetch function not found: ${b()}`);
2196
2196
  } else
2197
- n = _();
2197
+ n = b();
2198
2198
  return n;
2199
2199
  }
2200
- function on(n, u = [
2201
- q() || "",
2200
+ function an(n, u = [
2201
+ Me() || "",
2202
2202
  document.documentElement.lang || "",
2203
2203
  ...navigator.languages
2204
2204
  ]) {
2205
2205
  const g = Object.keys(n).map((h) => h.toLowerCase()), p = u.reduce(
2206
- (h, C) => (C = C.toLowerCase(), h || (n[C] ? C : null) || g.find((A) => C.split("-")[0] === A.split("-")[0]) || null),
2206
+ (h, E) => (E = E.toLowerCase(), h || (n[E] ? E : null) || g.find((k) => E.split("-")[0] === k.split("-")[0]) || null),
2207
2207
  null
2208
2208
  );
2209
2209
  return n[p || "en"];
2210
2210
  }
2211
- function lo() {
2212
- return Ae() === "ipAddress" ? {
2211
+ function so() {
2212
+ return ke() === "ipAddress" ? {
2213
2213
  blockedCountries: void 0,
2214
2214
  classifier: void 0,
2215
2215
  disableRules: void 0,
@@ -2220,7 +2220,7 @@ function Fl(e, t) {
2220
2220
  ipAddress: void 0,
2221
2221
  text: void 0,
2222
2222
  timeZone: void 0
2223
- } : typeof Ae() == "object" ? Ae() : {
2223
+ } : typeof ke() == "object" ? ke() : {
2224
2224
  blockedCountries: void 0,
2225
2225
  classifier: void 0,
2226
2226
  disableRules: void 0,
@@ -2233,167 +2233,167 @@ function Fl(e, t) {
2233
2233
  timeZone: void 0
2234
2234
  };
2235
2235
  }
2236
- function an(n) {
2236
+ function ln(n) {
2237
2237
  var g;
2238
2238
  return [
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])')) || []
2239
+ ...((g = a(L)) == 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])')) || []
2240
2240
  ].reduce(
2241
2241
  (p, h) => {
2242
- const C = h.name, A = h.value;
2243
- return C && A && (p[C] = /\n/.test(A) ? A.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
2244
- `) : A), p;
2242
+ const E = h.name, k = h.value;
2243
+ return E && k && (p[E] = /\n/.test(k) ? k.replace(new RegExp("(?<!\\r)\\n", "g"), `\r
2244
+ `) : k), p;
2245
2245
  },
2246
2246
  {}
2247
2247
  );
2248
2248
  }
2249
- function ln(n, u) {
2249
+ function sn(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)
2253
2253
  u[h] !== void 0 && u[h] !== null && p.searchParams.set(h, u[h]);
2254
2254
  return p.toString();
2255
2255
  }
2256
- function so() {
2257
- const n = Zt() !== void 0 ? Zt().split(",") : void 0;
2256
+ function uo() {
2257
+ const n = zt() !== void 0 ? zt().split(",") : void 0;
2258
2258
  for (const u of globalThis.altchaPlugins)
2259
- (!n || n.includes(u.pluginName)) && je.push(new u({
2260
- el: a(M),
2261
- clarify: Nt,
2262
- dispatch: Ve,
2263
- getConfiguration: kn,
2264
- getFloatingAnchor: An,
2265
- getState: In,
2266
- log: R,
2267
- reset: Qe,
2268
- solve: Cn,
2269
- setState: $e,
2270
- setFloatingAnchor: Rn,
2259
+ (!n || n.includes(u.pluginName)) && qe.push(new u({
2260
+ el: a(V),
2261
+ clarify: Lt,
2262
+ dispatch: Ue,
2263
+ getConfiguration: An,
2264
+ getFloatingAnchor: In,
2265
+ getState: Rn,
2266
+ log: I,
2267
+ reset: rt,
2268
+ solve: xn,
2269
+ setState: Re,
2270
+ setFloatingAnchor: Sn,
2271
2271
  verify: Pe
2272
2272
  }));
2273
2273
  }
2274
- function R(...n) {
2275
- (v() || n.some((u) => u instanceof Error)) && console[n[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${ae()}]`, ...n);
2276
- }
2277
- function uo() {
2278
- b(G, ee.PAUSED, !0);
2274
+ function I(...n) {
2275
+ (v() || n.some((u) => u instanceof Error)) && console[n[0] instanceof Error ? "error" : "log"]("ALTCHA", `[name=${Je()}]`, ...n);
2279
2276
  }
2280
- function fo(n) {
2281
- b(G, ee.ERROR, !0);
2277
+ function fo() {
2278
+ _(W, te.PAUSED, !0);
2282
2279
  }
2283
- function co() {
2284
- b(G, ee.READY, !0);
2280
+ function co(n) {
2281
+ _(W, te.ERROR, !0);
2285
2282
  }
2286
2283
  function ho() {
2287
- b(G, ee.LOADING, !0);
2284
+ _(W, te.READY, !0);
2288
2285
  }
2289
2286
  function vo() {
2290
- b(G, ee.PLAYING, !0);
2287
+ _(W, te.LOADING, !0);
2291
2288
  }
2292
2289
  function go() {
2293
- b(G, ee.PAUSED, !0);
2290
+ _(W, te.PLAYING, !0);
2294
2291
  }
2295
- function po(n) {
2292
+ function po() {
2293
+ _(W, te.PAUSED, !0);
2294
+ }
2295
+ function mo(n) {
2296
2296
  var u;
2297
- if (n.preventDefault(), n.stopPropagation(), a(H)) {
2297
+ if (n.preventDefault(), n.stopPropagation(), a(G)) {
2298
2298
  const g = new FormData(n.target), p = String(g.get("code"));
2299
2299
  if ((u = re()) != null && u.startsWith("fn:")) {
2300
2300
  const h = re().replace(/^fn:/, "");
2301
- if (R(`calling ${h} function instead of verifyurl`), !(h in globalThis))
2301
+ if (I(`calling ${h} function instead of verifyurl`), !(h in globalThis))
2302
2302
  throw new Error(`Global function "${h}" is undefined.`);
2303
2303
  return globalThis[h]({
2304
- challenge: a(H).challenge,
2304
+ challenge: a(G).challenge,
2305
2305
  code: p,
2306
- solution: a(H).solution
2306
+ solution: a(G).solution
2307
2307
  });
2308
2308
  }
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
- var A;
2312
- (A = a(Cr)) == null || A.focus(), Ve("verified", { payload: a(Re) }), o() === "onsubmit" ? bn(a(Dt)) : ye() && Lt();
2313
- })) : (Qe(), b(Ke, h || "Verification failed", !0));
2309
+ _(tt, !0), _n(Kt(a(G).challenge, a(G).solution), p).then(({ reason: h, verified: E }) => {
2310
+ E ? (_(G, null), Re(w.VERIFIED), I("verified"), Nr().then(() => {
2311
+ var k;
2312
+ (k = a(xr)) == null || k.focus(), Ue("verified", { payload: a(Ie) }), o() === "onsubmit" ? yn(a(Nt)) : be() && Pt();
2313
+ })) : (rt(), _(et, h || "Verification failed", !0));
2314
2314
  }).catch((h) => {
2315
- b(H, null), $e(w.ERROR, h), R("sentinel verification failed:", h);
2315
+ _(G, null), Re(w.ERROR, h), I("sentinel verification failed:", h);
2316
2316
  }).finally(() => {
2317
- b(Xe, !1);
2317
+ _(tt, !1);
2318
2318
  });
2319
2319
  }
2320
2320
  }
2321
- function sn(n) {
2321
+ function un(n) {
2322
2322
  var g;
2323
2323
  const u = n.target;
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();
2324
+ R() && u && !a(V).contains(u) && (a(A) === w.VERIFIED && Q() === !1 || a(A) === w.VERIFIED && Q() === "focus" && !((g = a(L)) != null && g.matches(":focus-within")) || o() === "off" && a(A) === w.UNVERIFIED) && Pt();
2325
2325
  }
2326
- function un() {
2327
- E() && a(I) !== w.UNVERIFIED && Pt();
2328
- }
2329
- function mo(n) {
2330
- for (const u of je)
2331
- typeof u.onErrorChange == "function" && u.onErrorChange(a(Ke));
2326
+ function fn() {
2327
+ R() && a(A) !== w.UNVERIFIED && Ot();
2332
2328
  }
2333
- function fn(n) {
2334
- a(I) === w.UNVERIFIED ? Pe() : E() && K() === "focus" && a(I) === w.VERIFIED && Kt();
2329
+ function bo(n) {
2330
+ for (const u of qe)
2331
+ typeof u.onErrorChange == "function" && u.onErrorChange(a(et));
2335
2332
  }
2336
2333
  function cn(n) {
2334
+ a(A) === w.UNVERIFIED ? Pe() : R() && Q() === "focus" && a(A) === w.VERIFIED && Xt();
2335
+ }
2336
+ function dn(n) {
2337
2337
  var p;
2338
2338
  const u = n.target;
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
- }
2343
- function dn() {
2344
- Qe();
2339
+ u != null && u.hasAttribute("data-code-challenge-form") || (_(Nt, n.submitter, !0), a(L) && o() === "onsubmit" ? ((p = a(Nt)) == null || p.blur(), a(A) === w.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), Pe().then(() => {
2340
+ yn(a(Nt));
2341
+ })) : a(A) !== w.VERIFIED && (n.preventDefault(), n.stopPropagation(), a(A) === w.VERIFYING && vn())) : a(L) && R() && o() === "off" && a(A) === w.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), Xt()));
2345
2342
  }
2346
2343
  function hn() {
2347
- a(I) === w.VERIFYING && a(P).waitAlert && alert(a(P).waitAlert);
2344
+ rt();
2348
2345
  }
2349
2346
  function vn() {
2350
- a(Ue) ? a(Ue).paused ? (a(Ue).currentTime = 0, a(Ue).play()) : a(Ue).pause() : (b(xr, !0), requestAnimationFrame(() => {
2347
+ a(A) === w.VERIFYING && a(O).waitAlert && alert(a(O).waitAlert);
2348
+ }
2349
+ function gn() {
2350
+ a(je) ? a(je).paused ? (a(je).currentTime = 0, a(je).play()) : a(je).pause() : (_(kr, !0), requestAnimationFrame(() => {
2351
2351
  var n;
2352
- (n = a(Ue)) == null || n.play();
2352
+ (n = a(je)) == null || n.play();
2353
2353
  }));
2354
2354
  }
2355
2355
  function _o(n) {
2356
- for (const u of je)
2357
- typeof u.onStateChange == "function" && u.onStateChange(a(I));
2358
- E() && a(I) !== w.UNVERIFIED && requestAnimationFrame(() => {
2359
- Pt();
2360
- }), b(St, a(I) === w.VERIFIED), ye() && a(de) && (a(I) !== w.UNVERIFIED ? Kt() : Lt());
2356
+ for (const u of qe)
2357
+ typeof u.onStateChange == "function" && u.onStateChange(a(A));
2358
+ R() && a(A) !== w.UNVERIFIED && requestAnimationFrame(() => {
2359
+ Ot();
2360
+ }), _(Tt, a(A) === w.VERIFIED), be() && a(ce) && (a(A) !== w.UNVERIFIED ? Xt() : Pt());
2361
2361
  }
2362
- function gn() {
2363
- E() && Pt();
2362
+ function pn() {
2363
+ R() && Ot();
2364
2364
  }
2365
- function pn(n) {
2365
+ function mn(n) {
2366
2366
  return JSON.parse(n);
2367
2367
  }
2368
- function mn(n) {
2368
+ function bn(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
- const h = new Date(+g * 1e3), C = isNaN(h.getTime()) ? 0 : h.getTime() - Date.now();
2373
- C > 0 && kr(C);
2374
- } else Ie && (clearTimeout(Ie), Ie = null);
2372
+ const h = new Date(+g * 1e3), E = isNaN(h.getTime()) ? 0 : h.getTime() - Date.now();
2373
+ E > 0 && Ar(E);
2374
+ } else Ae && (clearTimeout(Ae), Ae = null);
2375
2375
  }
2376
- async function bo(n) {
2376
+ async function yo(n) {
2377
2377
  if (!re())
2378
2378
  throw new Error("Attribute verifyurl not set.");
2379
- R("requesting server verification from", re());
2379
+ I("requesting server verification from", re());
2380
2380
  const u = { payload: n };
2381
- if (Ae() !== !1) {
2381
+ if (ke() !== !1) {
2382
2382
  const {
2383
2383
  blockedCountries: h,
2384
- classifier: C,
2385
- disableRules: A,
2386
- email: B,
2387
- expectedLanguages: V,
2388
- expectedCountries: Q,
2384
+ classifier: E,
2385
+ disableRules: k,
2386
+ email: H,
2387
+ expectedLanguages: U,
2388
+ expectedCountries: ee,
2389
2389
  fields: le,
2390
- ipAddress: tt,
2391
- text: gt,
2392
- timeZone: rt
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 || (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();
2390
+ ipAddress: it,
2391
+ text: mt,
2392
+ timeZone: ot
2393
+ } = so();
2394
+ u.blockedCountries = h, u.classifier = E, u.disableRules = k, u.email = H === !1 ? void 0 : lo(H), u.expectedCountries = ee, u.expectedLanguages = U || (tn ? [tn] : void 0), u.fields = le === !1 ? void 0 : ln(le), u.ipAddress = it === !1 ? void 0 : it || "auto", u.text = mt, u.timeZone = ot === !1 ? void 0 : ot || ri();
2395
2395
  }
2396
- const g = await nn()(re(), {
2396
+ const g = await on()(re(), {
2397
2397
  body: JSON.stringify(u),
2398
2398
  headers: { "content-type": "application/json" },
2399
2399
  method: "POST"
@@ -2403,15 +2403,15 @@ function Fl(e, t) {
2403
2403
  if (g.status !== 200)
2404
2404
  throw new Error(`Server responded with ${g.status}.`);
2405
2405
  const p = await g.json();
2406
- if (p != null && p.payload && b(Re, p.payload, !0), Ve("serververification", p), f() && p.classification === "BAD")
2406
+ if (p != null && p.payload && _(Ie, p.payload, !0), Ue("serververification", p), f() && p.classification === "BAD")
2407
2407
  throw new Error("SpamFilter returned negative classification.");
2408
2408
  }
2409
2409
  async function _n(n, u) {
2410
2410
  if (!re())
2411
2411
  throw new Error("Attribute verifyurl not set.");
2412
- R("requesting sentinel verification from", re());
2412
+ I("requesting sentinel verification from", re());
2413
2413
  const g = { code: u, payload: n };
2414
- ze() && (g.fields = ze().fields ? an() : void 0, g.timeZone = ze().timeZone ? ti() : void 0);
2414
+ Xe() && (g.fields = Xe().fields ? ln() : void 0, g.timeZone = Xe().timeZone ? ri() : void 0);
2415
2415
  const p = await fetch(re(), {
2416
2416
  body: JSON.stringify(g),
2417
2417
  headers: { "content-type": "application/json" },
@@ -2422,667 +2422,676 @@ function Fl(e, t) {
2422
2422
  if (p.status !== 200)
2423
2423
  throw new Error(`Server responded with ${p.status}.`);
2424
2424
  const h = await p.json();
2425
- return h != null && h.payload && b(Re, h.payload, !0), Ve("sentinelverification", h), h;
2425
+ return h != null && h.payload && _(Ie, h.payload, !0), Ue("sentinelverification", h), h;
2426
2426
  }
2427
- function bn(n) {
2427
+ function yn(n) {
2428
2428
  var u;
2429
- a(N) && "requestSubmit" in a(N) ? a(N).requestSubmit(n) : (u = a(N)) != null && u.reportValidity() && (n ? n.click() : a(N).submit());
2429
+ a(L) && "requestSubmit" in a(L) ? a(L).requestSubmit(n) : (u = a(L)) != null && u.reportValidity() && (n ? n.click() : a(L).submit());
2430
2430
  }
2431
- function kr(n) {
2432
- R("expire", n), Ie && (clearTimeout(Ie), Ie = null), n < 1 ? rn() : Ie = setTimeout(rn, n);
2433
- }
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", un), document.addEventListener("click", sn), window.addEventListener("resize", gn)) : o() === "onsubmit" && o(void 0);
2431
+ function Ar(n) {
2432
+ I("expire", n), Ae && (clearTimeout(Ae), Ae = null), n < 1 ? nn() : Ae = setTimeout(nn, n);
2436
2433
  }
2437
2434
  function wn(n) {
2435
+ I("floating", n), R() !== n && (a(V).style.left = "", a(V).style.top = ""), R(n === !0 || n === "" ? "auto" : n === !1 || n === "false" ? void 0 : R()), R() ? (o() || o("onsubmit"), document.addEventListener("scroll", fn), document.addEventListener("click", un), window.addEventListener("resize", pn)) : o() === "onsubmit" && o(void 0);
2436
+ }
2437
+ function En(n) {
2438
2438
  var u, g;
2439
- if (R("overlay", n), ye(n), n) {
2440
- if (o() || o("onsubmit"), a(de) && a(M).parentElement && a(de).replaceWith(a(M).parentElement), (g = (u = a(M)) == null ? void 0 : u.parentElement) != null && g.parentElement) {
2441
- b(de, document.createElement("div"), !0), a(M).parentElement.parentElement.appendChild(a(de));
2439
+ if (I("overlay", n), be(n), n) {
2440
+ if (o() || o("onsubmit"), a(ce) && a(V).parentElement && a(ce).replaceWith(a(V).parentElement), (g = (u = a(V)) == null ? void 0 : u.parentElement) != null && g.parentElement) {
2441
+ _(ce, document.createElement("div"), !0), a(V).parentElement.parentElement.appendChild(a(ce));
2442
2442
  const p = document.createElement("div"), h = document.createElement("button");
2443
- h.type = "button", h.innerHTML = "&times;", h.addEventListener("click", (C) => {
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), It() && p.append(...document.querySelectorAll(It())), p.append(a(M).parentElement);
2443
+ h.type = "button", h.innerHTML = "&times;", h.addEventListener("click", (E) => {
2444
+ E.preventDefault(), rt();
2445
+ }), a(ce).classList.add("altcha-overlay-backdrop"), h.classList.add("altcha-overlay-close-button"), p.classList.add("altcha-overlay"), a(ce).append(p), p.append(h), St() && p.append(...document.querySelectorAll(St())), p.append(a(V).parentElement);
2446
2446
  }
2447
- } else a(de) && a(M).parentElement && (a(de).replaceWith(a(M).parentElement), a(M).style.display = "block");
2447
+ } else a(ce) && a(V).parentElement && (a(ce).replaceWith(a(V).parentElement), a(V).style.display = "block");
2448
2448
  }
2449
- function En(n) {
2449
+ function Cn(n) {
2450
2450
  if (!n.algorithm)
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 (!Qr.includes(n.algorithm.toUpperCase()))
2455
- throw new Error(`Unknown algorithm value. Allowed values: ${Qr.join(", ")}`);
2454
+ if (!en.includes(n.algorithm.toUpperCase()))
2455
+ throw new Error(`Unknown algorithm value. Allowed values: ${en.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)
2459
2459
  throw new Error("Salt is too short. Min. 10 chars.");
2460
2460
  }
2461
- async function Cn(n) {
2461
+ async function xn(n) {
2462
2462
  let u = null, g = null;
2463
2463
  if ("Worker" in window) {
2464
2464
  try {
2465
- u = yo(n, n.maxNumber || n.maxnumber || be()), b(Je, u.controller, !0), g = await u.promise;
2465
+ u = wo(n, n.maxNumber || n.maxnumber || Ke()), _(Qe, u.controller, !0), g = await u.promise;
2466
2466
  } catch (p) {
2467
- R(p);
2467
+ I(p);
2468
2468
  } finally {
2469
- b(Je, null);
2469
+ _(Qe, null);
2470
2470
  }
2471
2471
  if (g === null || (g == null ? void 0 : g.number) !== void 0 || "obfuscated" in n)
2472
2472
  return { data: n, solution: g };
2473
2473
  }
2474
2474
  if ("obfuscated" in n) {
2475
- const p = await ml(n.obfuscated, n.key, n.maxNumber || n.maxnumber);
2475
+ const p = await bl(n.obfuscated, n.key, n.maxNumber || n.maxnumber);
2476
2476
  return { data: n, solution: await p.promise };
2477
2477
  }
2478
- u = vl(n.challenge, n.salt, n.algorithm, n.maxNumber || n.maxnumber || be()), b(Je, u.controller, !0);
2478
+ u = gl(n.challenge, n.salt, n.algorithm, n.maxNumber || n.maxnumber || Ke()), _(Qe, u.controller, !0);
2479
2479
  try {
2480
2480
  g = await u.promise;
2481
2481
  } catch (p) {
2482
- R(p);
2482
+ I(p);
2483
2483
  } finally {
2484
- b(Je, null);
2484
+ _(Qe, null);
2485
2485
  }
2486
2486
  return { data: n, solution: g };
2487
2487
  }
2488
- function yo(n, u = typeof ge() == "number" ? ge() : n.maxNumber || n.maxnumber || be(), g = Math.ceil(dt())) {
2488
+ function wo(n, u = typeof ve() == "number" ? ve() : n.maxNumber || n.maxnumber || Ke(), g = Math.ceil(vt())) {
2489
2489
  const p = new AbortController(), h = [];
2490
2490
  g = Math.min(16, u, Math.max(1, g));
2491
- for (let B = 0; B < g; B++)
2491
+ for (let H = 0; H < g; H++)
2492
2492
  h.push(altchaCreateWorker($t()));
2493
- const C = Math.ceil(u / g);
2493
+ const E = Math.ceil(u / g);
2494
2494
  return { promise: (async () => {
2495
- const B = await Promise.all(h.map((V, Q) => {
2496
- const le = Q * C;
2495
+ const H = await Promise.all(h.map((U, ee) => {
2496
+ const le = ee * E;
2497
2497
  return p.signal.addEventListener("abort", () => {
2498
- V.postMessage({ type: "abort" });
2499
- }), new Promise((tt) => {
2500
- V.addEventListener("message", (gt) => {
2501
- if (gt.data)
2502
- for (const rt of h)
2503
- rt !== V && rt.postMessage({ type: "abort" });
2504
- tt(gt.data);
2505
- }), V.postMessage({
2498
+ U.postMessage({ type: "abort" });
2499
+ }), new Promise((it) => {
2500
+ U.addEventListener("message", (mt) => {
2501
+ if (mt.data)
2502
+ for (const ot of h)
2503
+ ot !== U && ot.postMessage({ type: "abort" });
2504
+ it(mt.data);
2505
+ }), U.postMessage({
2506
2506
  payload: n,
2507
- max: le + C,
2507
+ max: le + E,
2508
2508
  start: le,
2509
2509
  type: "work"
2510
2510
  });
2511
2511
  });
2512
2512
  }));
2513
- for (const V of h)
2514
- V.terminate();
2515
- return B.find((V) => !!V) || null;
2513
+ for (const U of h)
2514
+ U.terminate();
2515
+ return H.find((U) => !!U) || null;
2516
2516
  })(), controller: p };
2517
2517
  }
2518
- async function Nt() {
2519
- if (!Me()) {
2520
- $e(w.ERROR);
2518
+ async function Lt() {
2519
+ if (!Ve()) {
2520
+ Re(w.ERROR);
2521
2521
  return;
2522
2522
  }
2523
- const n = je.find((u) => u.constructor.pluginName === "obfuscation");
2523
+ const n = qe.find((u) => u.constructor.pluginName === "obfuscation");
2524
2524
  if (!n || !("clarify" in n)) {
2525
- $e(w.ERROR), R("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");
2525
+ Re(w.ERROR), I("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");
2526
2526
  return;
2527
2527
  }
2528
2528
  if ("clarify" in n && typeof n.clarify == "function")
2529
2529
  return n.clarify();
2530
2530
  }
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 && (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);
2531
+ function kn(n) {
2532
+ n.obfuscated !== void 0 && Ve(n.obfuscated), n.auto !== void 0 && (o(n.auto), o() === "onload" && (Ve() ? Lt() : Pe())), n.blockspam !== void 0 && f(!!n.blockspam), n.customfetch !== void 0 && b(n.customfetch), n.floatinganchor !== void 0 && X(n.floatinganchor), n.delay !== void 0 && m(n.delay), n.floatingoffset !== void 0 && ae(n.floatingoffset), n.floating !== void 0 && wn(n.floating), n.expire !== void 0 && (Ar(n.expire), j(n.expire)), n.challenge && (c(typeof n.challenge == "string" ? n.challenge : JSON.stringify(n.challenge)), Cn(a(Jt))), n.challengeurl !== void 0 && s(n.challengeurl), n.debug !== void 0 && v(!!n.debug), n.hidefooter !== void 0 && Le(!!n.hidefooter), n.hidelogo !== void 0 && q(!!n.hidelogo), n.language !== void 0 && ht(an(l(), [n.language])), n.maxnumber !== void 0 && Ke(+n.maxnumber), n.mockerror !== void 0 && Rt(!!n.mockerror), n.name !== void 0 && Je(n.name), n.overlaycontent !== void 0 && St(n.overlaycontent), n.overlay !== void 0 && En(n.overlay), n.refetchonexpire !== void 0 && N(!n.refetchonexpire), n.disablerefetchonexpire !== void 0 && N(!n.disablerefetchonexpire), n.sentinel !== void 0 && typeof n.sentinel == "object" && Xe(n.sentinel), n.spamfilter !== void 0 && ke(typeof n.spamfilter == "object" ? n.spamfilter : !!n.spamfilter), n.strings && ht(typeof n.strings == "string" ? n.strings : JSON.stringify(n.strings)), n.test !== void 0 && ve(typeof n.test == "number" ? n.test : !!n.test), n.verifyurl !== void 0 && re(n.verifyurl), n.workers !== void 0 && vt(+n.workers), n.workerurl !== void 0 && $t(n.workerurl);
2533
2533
  }
2534
- function kn() {
2534
+ function An() {
2535
2535
  return {
2536
2536
  auto: o(),
2537
2537
  blockspam: f(),
2538
2538
  challengeurl: s(),
2539
2539
  debug: v(),
2540
2540
  delay: m(),
2541
- expire: $(),
2542
- floating: E(),
2543
- floatinganchor: U(),
2544
- floatingoffset: ce(),
2545
- hidefooter: te(),
2546
- hidelogo: X(),
2547
- name: ae(),
2548
- maxnumber: be(),
2549
- mockerror: At(),
2550
- obfuscated: Me(),
2551
- overlay: ye(),
2552
- refetchonexpire: Rt(),
2553
- spamfilter: Ae(),
2554
- strings: a(P),
2555
- test: ge(),
2541
+ disableautofocus: y(),
2542
+ disablerefetchonexpire: N(),
2543
+ expire: j(),
2544
+ floating: R(),
2545
+ floatinganchor: X(),
2546
+ floatingoffset: ae(),
2547
+ hidefooter: Le(),
2548
+ hidelogo: q(),
2549
+ name: Je(),
2550
+ maxnumber: Ke(),
2551
+ mockerror: Rt(),
2552
+ obfuscated: Ve(),
2553
+ overlay: be(),
2554
+ refetchonexpire: !N(),
2555
+ spamfilter: ke(),
2556
+ strings: a(O),
2557
+ test: ve(),
2556
2558
  verifyurl: re(),
2557
- workers: dt(),
2559
+ workers: vt(),
2558
2560
  workerurl: $t()
2559
2561
  };
2560
2562
  }
2561
- function An() {
2562
- return a(ht);
2563
+ function In() {
2564
+ return a(gt);
2563
2565
  }
2564
- function wo(n) {
2565
- return je.find((u) => u.constructor.pluginName === n);
2566
+ function Eo(n) {
2567
+ return qe.find((u) => u.constructor.pluginName === n);
2566
2568
  }
2567
- function In() {
2568
- return a(I);
2569
+ function Rn() {
2570
+ return a(A);
2569
2571
  }
2570
- function Lt() {
2571
- a(M).style.display = "none", ye() && a(de) && (a(de).style.display = "none");
2572
+ function Pt() {
2573
+ a(V).style.display = "none", be() && a(ce) && (a(ce).style.display = "none");
2572
2574
  }
2573
- function Pt(n = 20) {
2575
+ function Ot(n = 20) {
2574
2576
  var u;
2575
- if (a(M))
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
- 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(Tt)) {
2579
- const Q = a(Tt).getBoundingClientRect();
2580
- a(Tt).style.left = p.left - V + p.width / 2 - Q.width / 2 + "px";
2577
+ if (a(V))
2578
+ if (a(gt) || _(gt, (X() ? document.querySelector(X()) : (u = a(L)) == null ? void 0 : u.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])')) || a(L), !0), a(gt)) {
2579
+ const g = parseInt(ae(), 10) || 12, p = a(gt).getBoundingClientRect(), h = a(V).getBoundingClientRect(), E = document.documentElement.clientHeight, k = document.documentElement.clientWidth, H = R() === "auto" ? p.bottom + h.height + g + n > E : R() === "top", U = Math.max(n, Math.min(k - n - h.width, p.left + p.width / 2 - h.width / 2));
2580
+ if (H ? a(V).style.top = `${p.top - (h.height + g)}px` : a(V).style.top = `${p.bottom + g}px`, a(V).style.left = `${U}px`, a(V).setAttribute("data-floating", H ? "top" : "bottom"), a(Dt)) {
2581
+ const ee = a(Dt).getBoundingClientRect();
2582
+ a(Dt).style.left = p.left - U + p.width / 2 - ee.width / 2 + "px";
2581
2583
  }
2582
2584
  } else
2583
- R("unable to find floating anchor element");
2585
+ I("unable to find floating anchor element");
2584
2586
  }
2585
- function Qe(n = w.UNVERIFIED, u = null) {
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
+ function rt(n = w.UNVERIFIED, u = null) {
2588
+ a(Qe) && (a(Qe).abort(), _(Qe, null)), _(Tt, !1), _(Ie, null), _(G, null), _(kr, !1), _(W, null), Re(n, u);
2587
2589
  }
2588
- function Rn(n) {
2589
- b(ht, n, !0);
2590
+ function Sn(n) {
2591
+ _(gt, n, !0);
2590
2592
  }
2591
- function $e(n, u = null) {
2592
- b(I, n, !0), b(Ke, u, !0), Ve("statechange", {
2593
- payload: a(Re),
2594
- state: a(I)
2593
+ function Re(n, u = null) {
2594
+ _(A, n, !0), _(et, u, !0), Ue("statechange", {
2595
+ payload: a(Ie),
2596
+ state: a(A)
2595
2597
  });
2596
2598
  }
2597
- function Kt() {
2598
- a(M).style.display = "block", E() && Pt(), ye() && a(de) && (a(de).style.display = "flex");
2599
+ function Xt() {
2600
+ a(V).style.display = "block", R() && Ot(), be() && a(ce) && (a(ce).style.display = "flex");
2599
2601
  }
2600
2602
  async function Pe() {
2601
- return Qe(w.VERIFYING), await new Promise((n) => setTimeout(n, m() || 0)), oo().then((n) => (En(n), R("challenge", n), Cn(n))).then(({ data: n, solution: u }) => {
2603
+ return rt(w.VERIFYING), await new Promise((n) => setTimeout(n, m() || 0)), ao().then((n) => (Cn(n), I("challenge", n), xn(n))).then(({ data: n, solution: u }) => {
2602
2604
  var g;
2603
- if (R("solution", u), !u || n && "challenge" in n && !("clearText" in u)) {
2605
+ if (I("solution", u), !u || n && "challenge" in n && !("clearText" in u)) {
2604
2606
  if ((u == null ? void 0 : u.number) !== void 0 && "challenge" in n)
2605
2607
  if (re() && "codeChallenge" in n)
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);
2608
+ ["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(((g = document.activeElement) == null ? void 0 : g.tagName) || "") && y() === !1 && document.activeElement.blur(), _(G, { challenge: n, solution: u }, !0);
2607
2609
  else {
2608
- if (re() && ze() !== void 0)
2609
- return _n(Jt(n, u));
2610
+ if (re() && Xe() !== void 0)
2611
+ return _n(Kt(n, u));
2610
2612
  if (re())
2611
- return bo(Jt(n, u));
2612
- b(Re, Jt(n, u), !0), R("payload", a(Re));
2613
+ return yo(Kt(n, u));
2614
+ _(Ie, Kt(n, u), !0), I("payload", a(Ie));
2613
2615
  }
2614
- else if (a(I) !== w.EXPIRED)
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
+ else if (a(A) !== w.EXPIRED)
2617
+ throw I("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
2616
2618
  }
2617
2619
  }).then(() => {
2618
- a(H) ? ($e(w.CODE), Dr().then(() => {
2619
- Ve("code", { codeChallenge: a(H) });
2620
- })) : a(Re) && ($e(w.VERIFIED), R("verified"), Dr().then(() => {
2621
- Ve("verified", { payload: a(Re) }), ye() && Lt();
2620
+ a(G) ? (Re(w.CODE), Nr().then(() => {
2621
+ Ue("code", { codeChallenge: a(G) });
2622
+ })) : a(Ie) && (Re(w.VERIFIED), I("verified"), Nr().then(() => {
2623
+ Ue("verified", { payload: a(Ie) }), be() && Pt();
2622
2624
  }));
2623
2625
  }).catch((n) => {
2624
- R(n), $e(w.ERROR, n.message);
2626
+ I(n), Re(w.ERROR, n.message);
2625
2627
  });
2626
2628
  }
2627
- var $n = Ol(), Sn = Ft($n);
2628
- za(Sn, t, "default", {});
2629
- var vt = z(Sn, 2), Ar = Z(vt), Xt = Z(Ar);
2630
- let Tn;
2631
- var Dn = Z(Xt);
2629
+ var $n = Fl(), Tn = Mt($n);
2630
+ Ja(Tn, t, "default", {});
2631
+ var pt = J(Tn, 2), Ir = z(pt), Qt = z(Ir);
2632
+ let Dn;
2633
+ var Nn = z(Qt);
2632
2634
  {
2633
- var Eo = (n) => {
2634
- Nr(n);
2635
+ var Co = (n) => {
2636
+ Lr(n);
2635
2637
  };
2636
- J(Dn, (n) => {
2637
- a(I) === w.VERIFYING && n(Eo);
2638
+ K(Nn, (n) => {
2639
+ a(A) === w.VERIFYING && n(Co);
2638
2640
  });
2639
2641
  }
2640
- var et = z(Dn, 2);
2641
- Kn(et), et.__change = [
2642
- wl,
2643
- I,
2644
- Ae,
2645
- N,
2646
- St,
2647
- Me,
2648
- Nt,
2642
+ var nt = J(Nn, 2);
2643
+ Xn(nt), nt.__change = [
2644
+ El,
2645
+ A,
2646
+ ke,
2647
+ L,
2648
+ Tt,
2649
+ Ve,
2650
+ Lt,
2649
2651
  Pe
2650
- ], rr(et, (n) => b(Cr, n), () => a(Cr)), Y(Xt);
2651
- var Qt = z(Xt, 2), Co = Z(Qt);
2652
+ ], nr(nt, (n) => _(xr, n), () => a(xr)), Z(Qt);
2653
+ var er = J(Qt, 2), xo = z(er);
2652
2654
  {
2653
- var xo = (n) => {
2654
- var u = tr(), g = Ft(u);
2655
- nt(g, () => a(P).verified), j(n, u);
2656
- }, ko = (n, u) => {
2655
+ var ko = (n) => {
2656
+ var u = rr(), g = Mt(u);
2657
+ at(g, () => a(O).verified), B(n, u);
2658
+ }, Ao = (n, u) => {
2657
2659
  {
2658
2660
  var g = (h) => {
2659
- var C = tr(), A = Ft(C);
2660
- nt(A, () => a(P).verifying), j(h, C);
2661
- }, p = (h, C) => {
2661
+ var E = rr(), k = Mt(E);
2662
+ at(k, () => a(O).verifying), B(h, E);
2663
+ }, p = (h, E) => {
2662
2664
  {
2663
- var A = (V) => {
2664
- var Q = tr(), le = Ft(Q);
2665
- nt(le, () => a(P).verificationRequired), j(V, Q);
2666
- }, B = (V) => {
2667
- var Q = tr(), le = Ft(Q);
2668
- nt(le, () => a(P).label), j(V, Q);
2665
+ var k = (U) => {
2666
+ var ee = rr(), le = Mt(ee);
2667
+ at(le, () => a(O).verificationRequired), B(U, ee);
2668
+ }, H = (U) => {
2669
+ var ee = rr(), le = Mt(ee);
2670
+ at(le, () => a(O).label), B(U, ee);
2669
2671
  };
2670
- J(
2672
+ K(
2671
2673
  h,
2672
- (V) => {
2673
- a(I) === w.CODE ? V(A) : V(B, !1);
2674
+ (U) => {
2675
+ a(A) === w.CODE ? U(k) : U(H, !1);
2674
2676
  },
2675
- C
2677
+ E
2676
2678
  );
2677
2679
  }
2678
2680
  };
2679
- J(
2681
+ K(
2680
2682
  n,
2681
2683
  (h) => {
2682
- a(I) === w.VERIFYING ? h(g) : h(p, !1);
2684
+ a(A) === w.VERIFYING ? h(g) : h(p, !1);
2683
2685
  },
2684
2686
  u
2685
2687
  );
2686
2688
  }
2687
2689
  };
2688
- J(Co, (n) => {
2689
- a(I) === w.VERIFIED ? n(xo) : n(ko, !1);
2690
+ K(xo, (n) => {
2691
+ a(A) === w.VERIFIED ? n(ko) : n(Ao, !1);
2690
2692
  });
2691
2693
  }
2692
- Y(Qt);
2693
- var Nn = z(Qt, 2);
2694
+ Z(er);
2695
+ var Ln = J(er, 2);
2694
2696
  {
2695
- var Ao = (n) => {
2696
- var u = Cl();
2697
- Kn(u), Se(() => {
2698
- S(u, "name", ae()), el(u, a(Re));
2699
- }), j(n, u);
2697
+ var Io = (n) => {
2698
+ var u = xl();
2699
+ Xn(u), Se(() => {
2700
+ S(u, "name", Je()), tl(u, a(Ie));
2701
+ }), B(n, u);
2700
2702
  };
2701
- J(Nn, (n) => {
2702
- a(I) === w.VERIFIED && n(Ao);
2703
+ K(Ln, (n) => {
2704
+ a(A) === w.VERIFIED && n(Io);
2703
2705
  });
2704
2706
  }
2705
- var Ln = z(Nn, 2);
2707
+ var Pn = J(Ln, 2);
2706
2708
  {
2707
- var Io = (n) => {
2708
- var u = xl(), g = Z(u);
2709
- S(g, "href", ro), Y(u), Se(() => S(g, "aria-label", a(P).ariaLinkLabel)), j(n, u);
2709
+ var Ro = (n) => {
2710
+ var u = kl(), g = z(u);
2711
+ S(g, "href", no), Z(u), Se(() => S(g, "aria-label", a(O).ariaLinkLabel)), B(n, u);
2710
2712
  };
2711
- J(Ln, (n) => {
2712
- (X() !== !0 || a(Er)) && n(Io);
2713
+ K(Pn, (n) => {
2714
+ (q() !== !0 || a(Cr)) && n(Ro);
2713
2715
  });
2714
2716
  }
2715
- var Ro = z(Ln, 2);
2717
+ var So = J(Pn, 2);
2716
2718
  {
2717
2719
  var $o = (n) => {
2718
- var u = Sl(), g = z(Z(u), 2), p = Z(g), h = z(p, 2);
2719
- qa(h, !y()), h.__keydown = [
2720
- bl,
2721
- vn
2720
+ var u = Tl(), g = J(z(u), 2), p = z(g), h = J(p, 2);
2721
+ Ba(h, !y()), h.__keydown = [
2722
+ yl,
2723
+ gn
2722
2724
  ];
2723
- var C = z(h, 2), A = Z(C), B = Z(A);
2725
+ var E = J(h, 2), k = z(E), H = z(k);
2724
2726
  {
2725
- var V = (we) => {
2726
- var W = Rl();
2727
- W.__click = vn;
2728
- var er = Z(W);
2727
+ var U = (_e) => {
2728
+ var Y = Sl();
2729
+ Y.__click = gn;
2730
+ var tr = z(Y);
2729
2731
  {
2730
- var Ot = (pt) => {
2731
- Nr(pt, () => 20);
2732
- }, Fo = (pt, Mo) => {
2732
+ var Ft = (bt) => {
2733
+ Lr(bt, () => 20);
2734
+ }, Mo = (bt, Vo) => {
2733
2735
  {
2734
- var Vo = (mt) => {
2735
- var Ir = kl();
2736
- j(mt, Ir);
2737
- }, Uo = (mt, Ir) => {
2736
+ var Uo = (_t) => {
2737
+ var Rr = Al();
2738
+ B(_t, Rr);
2739
+ }, jo = (_t, Rr) => {
2738
2740
  {
2739
- var jo = (_t) => {
2740
- var Rr = Al();
2741
- j(_t, Rr);
2742
- }, qo = (_t) => {
2743
- var Rr = Il();
2744
- j(_t, Rr);
2741
+ var qo = (yt) => {
2742
+ var Sr = Il();
2743
+ B(yt, Sr);
2744
+ }, Bo = (yt) => {
2745
+ var Sr = Rl();
2746
+ B(yt, Sr);
2745
2747
  };
2746
- J(
2747
- mt,
2748
- (_t) => {
2749
- a(G) === ee.PLAYING ? _t(jo) : _t(qo, !1);
2748
+ K(
2749
+ _t,
2750
+ (yt) => {
2751
+ a(W) === te.PLAYING ? yt(qo) : yt(Bo, !1);
2750
2752
  },
2751
- Ir
2753
+ Rr
2752
2754
  );
2753
2755
  }
2754
2756
  };
2755
- J(
2756
- pt,
2757
- (mt) => {
2758
- a(G) === ee.ERROR ? mt(Vo) : mt(Uo, !1);
2757
+ K(
2758
+ bt,
2759
+ (_t) => {
2760
+ a(W) === te.ERROR ? _t(Uo) : _t(jo, !1);
2759
2761
  },
2760
- Mo
2762
+ Vo
2761
2763
  );
2762
2764
  }
2763
2765
  };
2764
- J(er, (pt) => {
2765
- a(G) === ee.LOADING ? pt(Ot) : pt(Fo, !1);
2766
+ K(tr, (bt) => {
2767
+ a(W) === te.LOADING ? bt(Ft) : bt(Mo, !1);
2766
2768
  });
2767
2769
  }
2768
- Y(W), Se(() => {
2769
- S(W, "title", a(P).getAudioChallenge), W.disabled = a(G) === ee.LOADING || a(G) === ee.ERROR || a(Xe), S(W, "aria-label", a(G) === ee.LOADING ? a(P).loading : a(P).getAudioChallenge);
2770
- }), j(we, W);
2770
+ Z(Y), Se(() => {
2771
+ S(Y, "title", a(O).getAudioChallenge), Y.disabled = a(W) === te.LOADING || a(W) === te.ERROR || a(tt), S(Y, "aria-label", a(W) === te.LOADING ? a(O).loading : a(O).getAudioChallenge);
2772
+ }), B(_e, Y);
2771
2773
  };
2772
- J(B, (we) => {
2773
- a(H).challenge.codeChallenge.audio && we(V);
2774
+ K(H, (_e) => {
2775
+ a(G).challenge.codeChallenge.audio && _e(U);
2774
2776
  });
2775
2777
  }
2776
- var Q = z(B, 2);
2777
- Q.__click = [yl, Pe], Y(A);
2778
- var le = z(A, 2), tt = Z(le);
2778
+ var ee = J(H, 2);
2779
+ ee.__click = [wl, Pe], Z(k);
2780
+ var le = J(k, 2), it = z(le);
2779
2781
  {
2780
- var gt = (we) => {
2781
- Nr(we, () => 16);
2782
+ var mt = (_e) => {
2783
+ Lr(_e, () => 16);
2782
2784
  };
2783
- J(tt, (we) => {
2784
- a(Xe) && we(gt);
2785
+ K(it, (_e) => {
2786
+ a(tt) && _e(mt);
2785
2787
  });
2786
2788
  }
2787
- var rt = z(tt);
2788
- Y(le), Y(C);
2789
- var Po = z(C, 2);
2789
+ var ot = J(it);
2790
+ Z(le), Z(E);
2791
+ var Oo = J(E, 2);
2790
2792
  {
2791
- var Oo = (we) => {
2792
- var W = $l(), er = Z(W);
2793
- Y(W), rr(W, (Ot) => b(Ue, Ot), () => a(Ue)), Se((Ot) => S(er, "src", Ot), [
2794
- () => ln(a(H).challenge.codeChallenge.audio, { language: q() })
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);
2793
+ var Fo = (_e) => {
2794
+ var Y = $l(), tr = z(Y);
2795
+ Z(Y), nr(Y, (Ft) => _(je, Ft), () => a(je)), Se((Ft) => S(tr, "src", Ft), [
2796
+ () => sn(a(G).challenge.codeChallenge.audio, { language: Me() })
2797
+ ]), Be("loadstart", Y, vo), Be("canplay", Y, ho), Be("pause", Y, po), Be("playing", Y, go), Be("ended", Y, fo), Be("error", tr, co), B(_e, Y);
2796
2798
  };
2797
- J(Po, (we) => {
2798
- a(H).challenge.codeChallenge.audio && a(xr) && we(Oo);
2799
+ K(Oo, (_e) => {
2800
+ a(G).challenge.codeChallenge.audio && a(kr) && _e(Fo);
2799
2801
  });
2800
2802
  }
2801
- Y(g), Y(u), Se(() => {
2802
- S(u, "aria-label", a(P).verificationRequired), S(p, "src", a(H).challenge.codeChallenge.image), S(h, "minlength", a(H).challenge.codeChallenge.length || 1), S(h, "maxlength", a(H).challenge.codeChallenge.length), S(h, "placeholder", a(P).enterCode), S(h, "aria-label", a(G) === ee.LOADING ? a(P).loading : a(G) === ee.PLAYING ? "" : a(P).enterCodeAria), S(h, "aria-live", a(G) ? "assertive" : "polite"), S(h, "aria-busy", a(G) === ee.LOADING), h.disabled = a(Xe), S(Q, "aria-label", a(P).reload), S(Q, "title", a(P).reload), Q.disabled = a(Xe), le.disabled = a(Xe), S(le, "aria-label", a(P).verify), Wa(rt, ` ${a(P).verify ?? ""}`);
2803
- }), qe("submit", g, po, !0), j(n, u);
2803
+ Z(g), Z(u), Se(() => {
2804
+ S(u, "aria-label", a(O).verificationRequired), S(p, "src", a(G).challenge.codeChallenge.image), S(h, "minlength", a(G).challenge.codeChallenge.length || 1), S(h, "maxlength", a(G).challenge.codeChallenge.length), S(h, "placeholder", a(O).enterCode), S(h, "aria-label", a(W) === te.LOADING ? a(O).loading : a(W) === te.PLAYING ? "" : a(O).enterCodeAria), S(h, "aria-live", a(W) ? "assertive" : "polite"), S(h, "aria-busy", a(W) === te.LOADING), h.disabled = a(tt), S(ee, "aria-label", a(O).reload), S(ee, "title", a(O).reload), ee.disabled = a(tt), le.disabled = a(tt), S(le, "aria-label", a(O).verify), Ya(ot, ` ${a(O).verify ?? ""}`);
2805
+ }), Be("submit", g, mo, !0), B(n, u);
2804
2806
  };
2805
- J(Ro, (n) => {
2807
+ K(So, (n) => {
2806
2808
  var u;
2807
- (u = a(H)) != null && u.challenge.codeChallenge && n($o);
2809
+ (u = a(G)) != null && u.challenge.codeChallenge && n($o);
2808
2810
  });
2809
2811
  }
2810
- Y(Ar);
2811
- var Pn = z(Ar, 2);
2812
+ Z(Ir);
2813
+ var On = J(Ir, 2);
2812
2814
  {
2813
- var So = (n) => {
2814
- var u = Nl(), g = z(Z(u), 2);
2815
+ var To = (n) => {
2816
+ var u = Ll(), g = J(z(u), 2);
2815
2817
  {
2816
- var p = (C) => {
2817
- var A = Tl(), B = Z(A);
2818
- nt(B, () => a(P).expired), Y(A), Se(() => S(A, "title", a(Ke))), j(C, A);
2819
- }, h = (C) => {
2820
- var A = Dl(), B = Z(A);
2821
- nt(B, () => a(P).error), Y(A), Se(() => S(A, "title", a(Ke))), j(C, A);
2818
+ var p = (E) => {
2819
+ var k = Dl(), H = z(k);
2820
+ at(H, () => a(O).expired), Z(k), Se(() => S(k, "title", a(et))), B(E, k);
2821
+ }, h = (E) => {
2822
+ var k = Nl(), H = z(k);
2823
+ at(H, () => a(O).error), Z(k), Se(() => S(k, "title", a(et))), B(E, k);
2822
2824
  };
2823
- J(g, (C) => {
2824
- a(I) === w.EXPIRED ? C(p) : C(h, !1);
2825
+ K(g, (E) => {
2826
+ a(A) === w.EXPIRED ? E(p) : E(h, !1);
2825
2827
  });
2826
2828
  }
2827
- Y(u), j(n, u);
2829
+ Z(u), B(n, u);
2828
2830
  };
2829
- J(Pn, (n) => {
2830
- (a(Ke) || a(I) === w.EXPIRED) && n(So);
2831
+ K(On, (n) => {
2832
+ (a(et) || a(A) === w.EXPIRED) && n(To);
2831
2833
  });
2832
2834
  }
2833
- var On = z(Pn, 2);
2835
+ var Fn = J(On, 2);
2834
2836
  {
2835
- var To = (n) => {
2836
- var u = Ll(), g = Z(u), p = Z(g);
2837
- nt(p, () => a(P).footer), Y(g), Y(u), j(n, u);
2837
+ var Do = (n) => {
2838
+ var u = Pl(), g = z(u), p = z(g);
2839
+ at(p, () => a(O).footer), Z(g), Z(u), B(n, u);
2838
2840
  };
2839
- J(On, (n) => {
2840
- a(P).footer && (te() !== !0 || a(Er)) && n(To);
2841
+ K(Fn, (n) => {
2842
+ a(O).footer && (Le() !== !0 || a(Cr)) && n(Do);
2841
2843
  });
2842
2844
  }
2843
- var Do = z(On, 2);
2845
+ var No = J(Fn, 2);
2844
2846
  {
2845
- var No = (n) => {
2846
- var u = Pl();
2847
- rr(u, (g) => b(Tt, g), () => a(Tt)), j(n, u);
2847
+ var Lo = (n) => {
2848
+ var u = Ol();
2849
+ nr(u, (g) => _(Dt, g), () => a(Dt)), B(n, u);
2848
2850
  };
2849
- J(Do, (n) => {
2850
- E() && n(No);
2851
+ K(No, (n) => {
2852
+ R() && n(Lo);
2851
2853
  });
2852
2854
  }
2853
- Y(vt), rr(vt, (n) => b(M, n), () => a(M)), Se(
2855
+ Z(pt), nr(pt, (n) => _(V, n), () => a(V)), Se(
2854
2856
  (n) => {
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));
2857
+ S(pt, "data-state", a(A)), S(pt, "data-floating", R()), S(pt, "data-overlay", be()), Dn = Xa(Qt, 1, "altcha-checkbox", null, Dn, n), S(nt, "id", a(rn)), nt.required = o() !== "onsubmit" && (!R() || o() !== "off"), S(er, "for", a(rn));
2856
2858
  },
2857
2859
  [
2858
2860
  () => ({
2859
- "altcha-checkbox-verifying": a(I) === w.VERIFYING
2861
+ "altcha-checkbox-verifying": a(A) === w.VERIFYING
2860
2862
  })
2861
2863
  ]
2862
- ), qe("invalid", et, hn), rl(et, () => a(St), (n) => b(St, n)), j(e, $n);
2863
- var Lo = Vi({
2864
- clarify: Nt,
2865
- configure: xn,
2866
- getConfiguration: kn,
2867
- getFloatingAnchor: An,
2868
- getPlugin: wo,
2869
- getState: In,
2870
- hide: Lt,
2871
- repositionFloating: Pt,
2872
- reset: Qe,
2873
- setFloatingAnchor: Rn,
2874
- setState: $e,
2875
- show: Kt,
2864
+ ), Be("invalid", nt, vn), nl(nt, () => a(Tt), (n) => _(Tt, n)), B(e, $n);
2865
+ var Po = Ui({
2866
+ clarify: Lt,
2867
+ configure: kn,
2868
+ getConfiguration: An,
2869
+ getFloatingAnchor: In,
2870
+ getPlugin: Eo,
2871
+ getState: Rn,
2872
+ hide: Pt,
2873
+ repositionFloating: Ot,
2874
+ reset: rt,
2875
+ setFloatingAnchor: Sn,
2876
+ setState: Re,
2877
+ show: Xt,
2876
2878
  verify: Pe,
2877
2879
  get auto() {
2878
2880
  return o();
2879
2881
  },
2880
2882
  set auto(n = void 0) {
2881
- o(n), x();
2883
+ o(n), C();
2882
2884
  },
2883
2885
  get blockspam() {
2884
2886
  return f();
2885
2887
  },
2886
2888
  set blockspam(n = void 0) {
2887
- f(n), x();
2889
+ f(n), C();
2888
2890
  },
2889
2891
  get challengeurl() {
2890
2892
  return s();
2891
2893
  },
2892
2894
  set challengeurl(n = void 0) {
2893
- s(n), x();
2895
+ s(n), C();
2894
2896
  },
2895
2897
  get challengejson() {
2896
2898
  return c();
2897
2899
  },
2898
2900
  set challengejson(n = void 0) {
2899
- c(n), x();
2901
+ c(n), C();
2900
2902
  },
2901
2903
  get credentials() {
2902
2904
  return d();
2903
2905
  },
2904
2906
  set credentials(n = void 0) {
2905
- d(n), x();
2907
+ d(n), C();
2906
2908
  },
2907
2909
  get customfetch() {
2908
- return _();
2910
+ return b();
2909
2911
  },
2910
2912
  set customfetch(n = void 0) {
2911
- _(n), x();
2913
+ b(n), C();
2912
2914
  },
2913
2915
  get debug() {
2914
2916
  return v();
2915
2917
  },
2916
2918
  set debug(n = !1) {
2917
- v(n), x();
2919
+ v(n), C();
2918
2920
  },
2919
2921
  get delay() {
2920
2922
  return m();
2921
2923
  },
2922
2924
  set delay(n = 0) {
2923
- m(n), x();
2925
+ m(n), C();
2924
2926
  },
2925
2927
  get disableautofocus() {
2926
2928
  return y();
2927
2929
  },
2928
2930
  set disableautofocus(n = !1) {
2929
- y(n), x();
2931
+ y(n), C();
2932
+ },
2933
+ get refetchonexpire() {
2934
+ return D();
2935
+ },
2936
+ set refetchonexpire(n = !0) {
2937
+ D(n), C();
2938
+ },
2939
+ get disablerefetchonexpire() {
2940
+ return N();
2941
+ },
2942
+ set disablerefetchonexpire(n = !D) {
2943
+ N(n), C();
2930
2944
  },
2931
2945
  get expire() {
2932
- return $();
2946
+ return j();
2933
2947
  },
2934
2948
  set expire(n = void 0) {
2935
- $(n), x();
2949
+ j(n), C();
2936
2950
  },
2937
2951
  get floating() {
2938
- return E();
2952
+ return R();
2939
2953
  },
2940
2954
  set floating(n = void 0) {
2941
- E(n), x();
2955
+ R(n), C();
2942
2956
  },
2943
2957
  get floatinganchor() {
2944
- return U();
2958
+ return X();
2945
2959
  },
2946
2960
  set floatinganchor(n = void 0) {
2947
- U(n), x();
2961
+ X(n), C();
2948
2962
  },
2949
2963
  get floatingoffset() {
2950
- return ce();
2964
+ return ae();
2951
2965
  },
2952
2966
  set floatingoffset(n = void 0) {
2953
- ce(n), x();
2967
+ ae(n), C();
2954
2968
  },
2955
2969
  get floatingpersist() {
2956
- return K();
2970
+ return Q();
2957
2971
  },
2958
2972
  set floatingpersist(n = !1) {
2959
- K(n), x();
2973
+ Q(n), C();
2960
2974
  },
2961
2975
  get hidefooter() {
2962
- return te();
2976
+ return Le();
2963
2977
  },
2964
2978
  set hidefooter(n = !1) {
2965
- te(n), x();
2979
+ Le(n), C();
2966
2980
  },
2967
2981
  get hidelogo() {
2968
- return X();
2982
+ return q();
2969
2983
  },
2970
2984
  set hidelogo(n = !1) {
2971
- X(n), x();
2985
+ q(n), C();
2972
2986
  },
2973
2987
  get id() {
2974
- return ft();
2988
+ return xe();
2975
2989
  },
2976
2990
  set id(n = void 0) {
2977
- ft(n), x();
2991
+ xe(n), C();
2978
2992
  },
2979
2993
  get language() {
2980
- return q();
2994
+ return Me();
2981
2995
  },
2982
2996
  set language(n = void 0) {
2983
- q(n), x();
2997
+ Me(n), C();
2984
2998
  },
2985
2999
  get name() {
2986
- return ae();
3000
+ return Je();
2987
3001
  },
2988
3002
  set name(n = "altcha") {
2989
- ae(n), x();
3003
+ Je(n), C();
2990
3004
  },
2991
3005
  get maxnumber() {
2992
- return be();
3006
+ return Ke();
2993
3007
  },
2994
3008
  set maxnumber(n = 1e6) {
2995
- be(n), x();
3009
+ Ke(n), C();
2996
3010
  },
2997
3011
  get mockerror() {
2998
- return At();
3012
+ return Rt();
2999
3013
  },
3000
3014
  set mockerror(n = !1) {
3001
- At(n), x();
3015
+ Rt(n), C();
3002
3016
  },
3003
3017
  get obfuscated() {
3004
- return Me();
3018
+ return Ve();
3005
3019
  },
3006
3020
  set obfuscated(n = void 0) {
3007
- Me(n), x();
3021
+ Ve(n), C();
3008
3022
  },
3009
3023
  get overlay() {
3010
- return ye();
3024
+ return be();
3011
3025
  },
3012
3026
  set overlay(n = void 0) {
3013
- ye(n), x();
3027
+ be(n), C();
3014
3028
  },
3015
3029
  get overlaycontent() {
3016
- return It();
3030
+ return St();
3017
3031
  },
3018
3032
  set overlaycontent(n = void 0) {
3019
- It(n), x();
3033
+ St(n), C();
3020
3034
  },
3021
3035
  get plugins() {
3022
- return Zt();
3036
+ return zt();
3023
3037
  },
3024
3038
  set plugins(n = void 0) {
3025
- Zt(n), x();
3026
- },
3027
- get refetchonexpire() {
3028
- return Rt();
3029
- },
3030
- set refetchonexpire(n = !0) {
3031
- Rt(n), x();
3039
+ zt(n), C();
3032
3040
  },
3033
3041
  get sentinel() {
3034
- return ze();
3042
+ return Xe();
3035
3043
  },
3036
3044
  set sentinel(n = void 0) {
3037
- ze(n), x();
3045
+ Xe(n), C();
3038
3046
  },
3039
3047
  get spamfilter() {
3040
- return Ae();
3048
+ return ke();
3041
3049
  },
3042
3050
  set spamfilter(n = !1) {
3043
- Ae(n), x();
3051
+ ke(n), C();
3044
3052
  },
3045
3053
  get strings() {
3046
- return ct();
3054
+ return ht();
3047
3055
  },
3048
3056
  set strings(n = void 0) {
3049
- ct(n), x();
3057
+ ht(n), C();
3050
3058
  },
3051
3059
  get test() {
3052
- return ge();
3060
+ return ve();
3053
3061
  },
3054
3062
  set test(n = !1) {
3055
- ge(n), x();
3063
+ ve(n), C();
3056
3064
  },
3057
3065
  get verifyurl() {
3058
3066
  return re();
3059
3067
  },
3060
3068
  set verifyurl(n = void 0) {
3061
- re(n), x();
3069
+ re(n), C();
3062
3070
  },
3063
3071
  get workers() {
3064
- return dt();
3072
+ return vt();
3065
3073
  },
3066
3074
  set workers(n = Math.min(16, navigator.hardwareConcurrency || 8)) {
3067
- dt(n), x();
3075
+ vt(n), C();
3068
3076
  },
3069
3077
  get workerurl() {
3070
3078
  return $t();
3071
3079
  },
3072
3080
  set workerurl(n = void 0) {
3073
- $t(n), x();
3081
+ $t(n), C();
3074
3082
  }
3075
3083
  });
3076
- return i(), Lo;
3084
+ return i(), Po;
3077
3085
  }
3078
- Ga(["change", "keydown", "click"]);
3079
- customElements.define("altcha-widget", cl(
3080
- Fl,
3086
+ Wa(["change", "keydown", "click"]);
3087
+ customElements.define("altcha-widget", dl(
3088
+ Ml,
3081
3089
  {
3082
3090
  blockspam: { type: "Boolean" },
3083
3091
  debug: { type: "Boolean" },
3084
3092
  delay: { type: "Number" },
3085
3093
  disableautofocus: { type: "Boolean" },
3094
+ disablerefetchonexpire: { type: "Boolean" },
3086
3095
  expire: { type: "Number" },
3087
3096
  floatingoffset: { type: "Number" },
3088
3097
  hidefooter: { type: "Boolean" },
@@ -3131,16 +3140,16 @@ customElements.define("altcha-widget", cl(
3131
3140
  ],
3132
3141
  !1
3133
3142
  ));
3134
- const Xi = '@keyframes overlay-slidein{to{opacity:1;top:50%}}@keyframes altcha-spinner{to{transform:rotate(360deg)}}.altcha{background:var(--altcha-color-base, transparent);border:var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0);border-radius:var(--altcha-border-radius, 3px);color:var(--altcha-color-text, currentColor);display:flex;flex-direction:column;max-width:var(--altcha-max-width, 260px);position:relative}.altcha:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]{background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999}.altcha[data-floating=top] .altcha-anchor-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom]:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top]:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]:not([data-state=unverified]){display:block}.altcha-anchor-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, #a0a0a0);content:"";height:0;left:12px;position:absolute;top:-12px;width:0}.altcha-main{align-items:center;display:flex;gap:.4rem;padding:.7rem;position:relative}.altcha-code-challenge{background:var(--altcha-color-base, white);border:1px solid var(--altcha-color-border-focus, currentColor);border-radius:var(--altcha-border-radius, 3px);filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));padding:.5rem;position:absolute;top:2.5rem;z-index:9999999}.altcha-code-challenge>form{display:flex;flex-direction:column;gap:.5rem}.altcha-code-challenge-input{border:1px solid currentColor;border-radius:3px;box-sizing:border-box;outline:0;font-size:16px;padding:.35rem;width:220px}.altcha-code-challenge-input:focus{outline:2px solid color-mix(in srgb,var(--altcha-color-active, #1D1DC9) 20%,transparent)}.altcha-code-challenge-input:disabled{opacity:.7}.altcha-code-challenge-image{background-color:#fff;border:1px solid currentColor;border-radius:3px;box-sizing:border-box;object-fit:contain;height:50px;width:220px}.altcha-code-challenge-audio,.altcha-code-challenge-reload{background:color-mix(in srgb,var(--altcha-color-text, currentColor) 10%,transparent);border:0;border-radius:3px;color:var(--altcha-color-text, currentColor);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:.35rem}.altcha-code-challenge-audio:disabled,.altcha-code-challenge-reload:disabled,.altcha-code-challenge-verify:disabled{opacity:.7;pointer-events:none}.altcha-code-challenge-audio>*,.altcha-code-challenge-reload>*{height:20px;width:20px}.altcha-code-challenge-buttons{display:flex;justify-content:space-between}.altcha-code-challenge-buttons-left{display:flex;gap:.25rem}.altcha-code-challenge-verify{align-items:center;background:var(--altcha-color-active, #1D1DC9);border:0;border-radius:3px;color:#fff;cursor:pointer;display:flex;gap:.5rem;font-size:100%;padding:.35rem 1rem}.altcha-code-challenge-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, currentColor);content:"";height:0;left:.15rem;position:absolute;top:-12px;width:0}.altcha[data-floating=top] .altcha-code-challenge{top:-150px}.altcha[data-floating=top] .altcha-code-challenge-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, currentColor);bottom:-12px;top:auto}.altcha-label{cursor:pointer;flex-grow:1}.altcha-logo{color:currentColor!important;opacity:.7}.altcha-footer:hover,.altcha-logo:hover{opacity:1}.altcha-error{color:var(--altcha-color-error-text, #f23939);display:flex;font-size:.85rem;gap:.3rem;padding:0 .7rem .7rem}.altcha-footer{align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:.75rem;opacity:.7;justify-content:end;padding:.2rem .7rem}.altcha-footer a{color:currentColor}.altcha-checkbox{display:flex;align-items:center;justify-content:center;height:24px;position:relative;width:24px}.altcha-checkbox .altcha-spinner{bottom:0;left:0;position:absolute;right:0;top:0}.altcha-checkbox input{width:18px;height:18px;margin:0}.altcha-checkbox-verifying input{appearance:none;opacity:0;pointer-events:none}.altcha-spinner{animation:altcha-spinner .75s infinite linear;transform-origin:center}.altcha-overlay{--altcha-color-base:#fff;--altcha-color-text:#000;animation:overlay-slidein .5s forwards;display:flex;flex-direction:column;gap:.5rem;left:50%;width:260px;opacity:0;position:fixed;top:45%;transform:translate(-50%,-50%)}.altcha-overlay-backdrop{background:rgba(0,0,0,.5);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:99999999}.altcha-overlay-close-button{align-self:flex-end;background:0 0;border:0;padding:.25rem;cursor:pointer;color:currentColor;font-size:130%;line-height:1;opacity:.7}@media (max-height:450px){.altcha-overlay{top:10%!important;transform:translate(-50%,0)}}';
3135
- function Qi(e, t = "__altcha-css") {
3143
+ const Qi = '@keyframes overlay-slidein{to{opacity:1;top:50%}}@keyframes altcha-spinner{to{transform:rotate(360deg)}}.altcha{background:var(--altcha-color-base, transparent);border:var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0);border-radius:var(--altcha-border-radius, 3px);color:var(--altcha-color-text, currentColor);display:flex;flex-direction:column;max-width:var(--altcha-max-width, 260px);position:relative}.altcha:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]{background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999}.altcha[data-floating=top] .altcha-anchor-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom]:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top]:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating]:not([data-state=unverified]){display:block}.altcha-anchor-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, #a0a0a0);content:"";height:0;left:12px;position:absolute;top:-12px;width:0}.altcha-main{align-items:center;display:flex;gap:.4rem;padding:.7rem;position:relative}.altcha-code-challenge{background:var(--altcha-color-base, white);border:1px solid var(--altcha-color-border-focus, currentColor);border-radius:var(--altcha-border-radius, 3px);filter:drop-shadow(3px 3px 6px rgba(0,0,0,.2));padding:.5rem;position:absolute;top:2.5rem;z-index:9999999}.altcha-code-challenge>form{display:flex;flex-direction:column;gap:.5rem}.altcha-code-challenge-input{border:1px solid currentColor;border-radius:3px;box-sizing:border-box;outline:0;font-size:16px;padding:.35rem;width:220px}.altcha-code-challenge-input:focus{outline:2px solid color-mix(in srgb,var(--altcha-color-active, #1D1DC9) 20%,transparent)}.altcha-code-challenge-input:disabled{opacity:.7}.altcha-code-challenge-image{background-color:#fff;border:1px solid currentColor;border-radius:3px;box-sizing:border-box;object-fit:contain;height:50px;width:220px}.altcha-code-challenge-audio,.altcha-code-challenge-reload{background:color-mix(in srgb,var(--altcha-color-text, currentColor) 10%,transparent);border:0;border-radius:3px;color:var(--altcha-color-text, currentColor);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:.35rem}.altcha-code-challenge-audio:disabled,.altcha-code-challenge-reload:disabled,.altcha-code-challenge-verify:disabled{opacity:.7;pointer-events:none}.altcha-code-challenge-audio>*,.altcha-code-challenge-reload>*{height:20px;width:20px}.altcha-code-challenge-buttons{display:flex;justify-content:space-between}.altcha-code-challenge-buttons-left{display:flex;gap:.25rem}.altcha-code-challenge-verify{align-items:center;background:var(--altcha-color-active, #1D1DC9);border:0;border-radius:3px;color:#fff;cursor:pointer;display:flex;gap:.5rem;font-size:100%;padding:.35rem 1rem}.altcha-code-challenge-arrow{border:6px solid transparent;border-bottom-color:var(--altcha-color-border, currentColor);content:"";height:0;left:.15rem;position:absolute;top:-12px;width:0}.altcha[data-floating=top] .altcha-code-challenge{top:-150px}.altcha[data-floating=top] .altcha-code-challenge-arrow{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, currentColor);bottom:-12px;top:auto}.altcha-label{cursor:pointer;flex-grow:1}.altcha-logo{color:currentColor!important;opacity:.7}.altcha-footer:hover,.altcha-logo:hover{opacity:1}.altcha-error{color:var(--altcha-color-error-text, #f23939);display:flex;font-size:.85rem;gap:.3rem;padding:0 .7rem .7rem}.altcha-footer{align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:.75rem;opacity:.7;justify-content:end;padding:.2rem .7rem}.altcha-footer a{color:currentColor}.altcha-checkbox{display:flex;align-items:center;justify-content:center;height:24px;position:relative;width:24px}.altcha-checkbox .altcha-spinner{bottom:0;left:0;position:absolute;right:0;top:0}.altcha-checkbox input{width:18px;height:18px;margin:0}.altcha-checkbox-verifying input{appearance:none;opacity:0;pointer-events:none}.altcha-spinner{animation:altcha-spinner .75s infinite linear;transform-origin:center}.altcha-overlay{--altcha-color-base:#fff;--altcha-color-text:#000;animation:overlay-slidein .5s forwards;display:flex;flex-direction:column;gap:.5rem;left:50%;width:260px;opacity:0;position:fixed;top:45%;transform:translate(-50%,-50%)}.altcha-overlay-backdrop{background:rgba(0,0,0,.5);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:99999999}.altcha-overlay-close-button{align-self:flex-end;background:0 0;border:0;padding:.25rem;cursor:pointer;color:currentColor;font-size:130%;line-height:1;opacity:.7}@media (max-height:450px){.altcha-overlay{top:10%!important;transform:translate(-50%,0)}}';
3144
+ function eo(e, t = "__altcha-css") {
3136
3145
  if (!document.getElementById(t)) {
3137
3146
  const r = document.createElement("style");
3138
3147
  r.id = t, r.textContent = e, document.head.appendChild(r);
3139
3148
  }
3140
3149
  }
3141
- globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new Go();
3142
- Qi(Xi);
3143
- Qi(Xi);
3150
+ globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new Wo();
3151
+ eo(Qi);
3152
+ eo(Qi);
3144
3153
  export {
3145
- Fl as Altcha
3154
+ Ml as Altcha
3146
3155
  };