altcha 1.5.0 → 1.5.1
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 +184 -319
- package/dist/altcha.umd.cjs +4 -142
- package/dist_external/altcha.js +214 -211
- package/dist_external/altcha.umd.cjs +3 -3
- package/package.json +3 -1
package/dist/altcha.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ri = Object.defineProperty;
|
|
2
2
|
var Vr = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var le = (e, t, r) =>
|
|
5
|
+
var Ii = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var le = (e, t, r) => Ii(e, typeof t != "symbol" ? t + "" : t, r), Br = (e, t, r) => t.has(e) || Vr("Cannot " + r);
|
|
7
7
|
var G = (e, t, r) => (Br(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Vt = (e, t, r) => t.has(e) ? Vr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Bt = (e, t, r, i) => (Br(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r);
|
|
8
8
|
const ln = `(function(){"use strict";const d=new TextEncoder;function p(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function b(e,t,r){if(typeof crypto>"u"||!("subtle"in crypto)||!("digest"in crypto.subtle))throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");return p(await crypto.subtle.digest(r.toUpperCase(),d.encode(e+t)))}function w(e,t,r="SHA-256",n=1e6,s=0){const o=new AbortController,a=Date.now();return{promise:(async()=>{for(let c=s;c<=n;c+=1){if(o.signal.aborted)return null;if(await b(t,c,r)===e)return{number:c,took:Date.now()-a}}return null})(),controller:o}}function h(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function g(e,t=12){const r=new Uint8Array(t);for(let n=0;n<t;n++)r[n]=e%256,e=Math.floor(e/256);return r}async function m(e,t="",r=1e6,n=0){const s="AES-GCM",o=new AbortController,a=Date.now(),l=async()=>{for(let u=n;u<=r;u+=1){if(o.signal.aborted||!c||!y)return null;try{const f=await crypto.subtle.decrypt({name:s,iv:g(u)},c,y);if(f)return{clearText:new TextDecoder().decode(f),took:Date.now()-a}}catch{}}return null};let c=null,y=null;try{y=h(e);const u=await crypto.subtle.digest("SHA-256",d.encode(t));c=await crypto.subtle.importKey("raw",u,s,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:l(),controller:o}}let i;onmessage=async e=>{const{type:t,payload:r,start:n,max:s}=e.data;let o=null;if(t==="abort")i==null||i.abort(),i=void 0;else if(t==="work"){if("obfuscated"in r){const{key:a,obfuscated:l}=r||{};o=await m(l,a,s,n)}else{const{algorithm:a,challenge:l,salt:c}=r||{};o=w(l,c,a,s,n)}i=o.controller,o.promise.then(a=>{self.postMessage(a&&{...a,worker:!0})})}}})();
|
|
9
9
|
`, qr = typeof self < "u" && self.Blob && new Blob([ln], { type: "text/javascript;charset=utf-8" });
|
|
10
|
-
function
|
|
10
|
+
function Si(e) {
|
|
11
11
|
let t;
|
|
12
12
|
try {
|
|
13
13
|
if (t = qr && (self.URL || self.webkitURL).createObjectURL(qr), !t) throw "";
|
|
@@ -28,44 +28,44 @@ function Ii(e) {
|
|
|
28
28
|
t && (self.URL || self.webkitURL).revokeObjectURL(t);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const Ti = "5";
|
|
32
32
|
var an;
|
|
33
|
-
typeof window < "u" && ((an = window.__svelte ?? (window.__svelte = {})).v ?? (an.v = /* @__PURE__ */ new Set())).add(
|
|
34
|
-
const
|
|
33
|
+
typeof window < "u" && ((an = window.__svelte ?? (window.__svelte = {})).v ?? (an.v = /* @__PURE__ */ new Set())).add(Ti);
|
|
34
|
+
const Ni = 1, Li = 4, Di = 8, Pi = 16, Oi = 1, Fi = 2, zt = "[", sn = "[!", fn = "]", Je = {}, Z = Symbol(), Mi = "http://www.w3.org/1999/xhtml", Hr = !1;
|
|
35
35
|
function un(e) {
|
|
36
36
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
37
37
|
}
|
|
38
|
-
var cn = Array.isArray,
|
|
38
|
+
var cn = Array.isArray, Ui = Array.prototype.indexOf, ji = Array.from, yt = Object.keys, Et = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, Vi = Object.getOwnPropertyDescriptors, Bi = Object.prototype, qi = Array.prototype, dn = Object.getPrototypeOf, Wr = Object.isExtensible;
|
|
39
39
|
function hn(e) {
|
|
40
40
|
for (var t = 0; t < e.length; t++)
|
|
41
41
|
e[t]();
|
|
42
42
|
}
|
|
43
|
-
const fe = 2, vn = 4, It = 8, Xt = 16, be = 32, Me = 64, xt = 128, ee = 256, $t = 512, K = 1024, he = 2048, Ue = 4096, Ke = 8192, St = 16384,
|
|
44
|
-
function
|
|
43
|
+
const fe = 2, vn = 4, It = 8, Xt = 16, be = 32, Me = 64, xt = 128, ee = 256, $t = 512, K = 1024, he = 2048, Ue = 4096, Ke = 8192, St = 16384, Hi = 32768, Qt = 65536, Wi = 1 << 19, gn = 1 << 20, Ht = 1 << 21, ut = Symbol("$state"), _n = Symbol("legacy props"), Yi = Symbol("");
|
|
44
|
+
function Gi(e) {
|
|
45
45
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Zi() {
|
|
48
48
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ji(e) {
|
|
51
51
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ki() {
|
|
54
54
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function zi() {
|
|
57
57
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Xi(e) {
|
|
60
60
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Qi() {
|
|
63
63
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function eo() {
|
|
66
66
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function to() {
|
|
69
69
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
70
70
|
}
|
|
71
71
|
function Tt(e) {
|
|
@@ -94,7 +94,7 @@ function z(e) {
|
|
|
94
94
|
P = e;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function ro() {
|
|
98
98
|
for (var e = 0, t = P; ; ) {
|
|
99
99
|
if (t.nodeType === 8) {
|
|
100
100
|
var r = (
|
|
@@ -113,12 +113,12 @@ function to() {
|
|
|
113
113
|
t.remove(), t = i;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
let
|
|
116
|
+
let no = !1;
|
|
117
117
|
function ke(e) {
|
|
118
118
|
if (typeof e != "object" || e === null || ut in e)
|
|
119
119
|
return e;
|
|
120
120
|
const t = dn(e);
|
|
121
|
-
if (t !==
|
|
121
|
+
if (t !== Bi && t !== qi)
|
|
122
122
|
return e;
|
|
123
123
|
var r = /* @__PURE__ */ new Map(), i = cn(e), o = /* @__PURE__ */ J(0), a = R, l = (s) => {
|
|
124
124
|
var f = R;
|
|
@@ -134,7 +134,7 @@ function ke(e) {
|
|
|
134
134
|
e,
|
|
135
135
|
{
|
|
136
136
|
defineProperty(s, f, d) {
|
|
137
|
-
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) &&
|
|
137
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Qi();
|
|
138
138
|
var v = r.get(f);
|
|
139
139
|
return v === void 0 ? (v = l(() => /* @__PURE__ */ J(d.value)), r.set(f, v)) : D(
|
|
140
140
|
v,
|
|
@@ -241,7 +241,7 @@ function ke(e) {
|
|
|
241
241
|
return f;
|
|
242
242
|
},
|
|
243
243
|
setPrototypeOf() {
|
|
244
|
-
|
|
244
|
+
eo();
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
);
|
|
@@ -305,17 +305,17 @@ function we(e, t = 1, r = !1) {
|
|
|
305
305
|
return Re(i), /** @type {TemplateNode} */
|
|
306
306
|
i;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function io(e) {
|
|
309
309
|
e.textContent = "";
|
|
310
310
|
}
|
|
311
311
|
function bn(e) {
|
|
312
312
|
return e === this.v;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function oo(e, t) {
|
|
315
315
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
316
316
|
}
|
|
317
317
|
function yn(e) {
|
|
318
|
-
return !
|
|
318
|
+
return !oo(e, this.v);
|
|
319
319
|
}
|
|
320
320
|
// @__NO_SIDE_EFFECTS__
|
|
321
321
|
function tr(e) {
|
|
@@ -356,7 +356,7 @@ function En(e) {
|
|
|
356
356
|
);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function ao(e) {
|
|
360
360
|
for (var t = e.parent; t !== null; ) {
|
|
361
361
|
if ((t.f & fe) === 0)
|
|
362
362
|
return (
|
|
@@ -369,7 +369,7 @@ function oo(e) {
|
|
|
369
369
|
}
|
|
370
370
|
function xn(e) {
|
|
371
371
|
var t, r = I;
|
|
372
|
-
Se(
|
|
372
|
+
Se(ao(e));
|
|
373
373
|
try {
|
|
374
374
|
En(e), t = jn(e);
|
|
375
375
|
} finally {
|
|
@@ -381,10 +381,10 @@ function $n(e) {
|
|
|
381
381
|
var t = xn(e), r = (Ce || (e.f & ee) !== 0) && e.deps !== null ? Ue : K;
|
|
382
382
|
ue(e, r), e.equals(t) || (e.v = t, e.wv = Mn());
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
I === null && R === null &&
|
|
384
|
+
function lo(e) {
|
|
385
|
+
I === null && R === null && Ji(), R !== null && (R.f & ee) !== 0 && I === null && Zi(), gt && Gi();
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function so(e, t) {
|
|
388
388
|
var r = t.last;
|
|
389
389
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
390
390
|
}
|
|
@@ -407,13 +407,13 @@ function je(e, t, r, i = !0) {
|
|
|
407
407
|
};
|
|
408
408
|
if (r)
|
|
409
409
|
try {
|
|
410
|
-
ir(a), a.f |=
|
|
410
|
+
ir(a), a.f |= Hi;
|
|
411
411
|
} catch (f) {
|
|
412
412
|
throw Ie(a), f;
|
|
413
413
|
}
|
|
414
414
|
else t !== null && Lt(a);
|
|
415
415
|
var l = r && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (gn | xt)) === 0;
|
|
416
|
-
if (!l && i && (o !== null &&
|
|
416
|
+
if (!l && i && (o !== null && so(a, o), R !== null && (R.f & fe) !== 0)) {
|
|
417
417
|
var s = (
|
|
418
418
|
/** @type {Derived} */
|
|
419
419
|
R
|
|
@@ -427,7 +427,7 @@ function kn(e) {
|
|
|
427
427
|
return ue(t, K), t.teardown = e, t;
|
|
428
428
|
}
|
|
429
429
|
function Yt(e) {
|
|
430
|
-
|
|
430
|
+
lo();
|
|
431
431
|
var t = I !== null && (I.f & be) !== 0 && W !== null && !W.m;
|
|
432
432
|
if (t) {
|
|
433
433
|
var r = (
|
|
@@ -444,13 +444,13 @@ function Yt(e) {
|
|
|
444
444
|
return i;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function fo(e) {
|
|
448
448
|
const t = je(Me, e, !0);
|
|
449
449
|
return () => {
|
|
450
450
|
Ie(t);
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function uo(e) {
|
|
454
454
|
const t = je(Me, e, !0);
|
|
455
455
|
return (r = {}) => new Promise((i) => {
|
|
456
456
|
r.outro ? Zt(t, () => {
|
|
@@ -493,7 +493,7 @@ function Rn(e, t = !1) {
|
|
|
493
493
|
(r.f & Me) !== 0 ? r.parent = null : Ie(r, t), r = i;
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function co(e) {
|
|
497
497
|
for (var t = e.first; t !== null; ) {
|
|
498
498
|
var r = t.next;
|
|
499
499
|
(t.f & be) === 0 && Ie(t), t = r;
|
|
@@ -501,7 +501,7 @@ function uo(e) {
|
|
|
501
501
|
}
|
|
502
502
|
function Ie(e, t = !0) {
|
|
503
503
|
var r = !1;
|
|
504
|
-
(t || (e.f &
|
|
504
|
+
(t || (e.f & Wi) !== 0) && e.nodes_start !== null && (In(
|
|
505
505
|
e.nodes_start,
|
|
506
506
|
/** @type {TemplateNode} */
|
|
507
507
|
e.nodes_end
|
|
@@ -529,11 +529,11 @@ function Sn(e) {
|
|
|
529
529
|
}
|
|
530
530
|
function Zt(e, t) {
|
|
531
531
|
var r = [];
|
|
532
|
-
Tn(e, r, !0),
|
|
532
|
+
Tn(e, r, !0), ho(r, () => {
|
|
533
533
|
Ie(e), t && t();
|
|
534
534
|
});
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function ho(e, t) {
|
|
537
537
|
var r = e.length;
|
|
538
538
|
if (r > 0) {
|
|
539
539
|
var i = () => --r || t();
|
|
@@ -568,7 +568,7 @@ function Nn(e, t) {
|
|
|
568
568
|
(a.is_global || t) && a.in();
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
const
|
|
571
|
+
const vo = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback;
|
|
572
572
|
let dt = [], ht = [];
|
|
573
573
|
function Ln() {
|
|
574
574
|
var e = dt;
|
|
@@ -581,10 +581,10 @@ function Dn() {
|
|
|
581
581
|
function Pn(e) {
|
|
582
582
|
dt.length === 0 && queueMicrotask(Ln), dt.push(e);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
ht.length === 0 &&
|
|
584
|
+
function go(e) {
|
|
585
|
+
ht.length === 0 && vo(Dn), ht.push(e);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function _o() {
|
|
588
588
|
dt.length > 0 && Ln(), ht.length > 0 && Dn();
|
|
589
589
|
}
|
|
590
590
|
let pt = !1, kt = !1, Ct = null, Fe = !1, gt = !1;
|
|
@@ -605,7 +605,7 @@ function On(e) {
|
|
|
605
605
|
R !== null && R.f & Ht && (H === null ? H = [e] : H.push(e));
|
|
606
606
|
}
|
|
607
607
|
let q = null, Q = 0, ie = null;
|
|
608
|
-
function
|
|
608
|
+
function mo(e) {
|
|
609
609
|
ie = e;
|
|
610
610
|
}
|
|
611
611
|
let Fn = 1, At = 0, Ce = !1;
|
|
@@ -644,7 +644,7 @@ function _t(e) {
|
|
|
644
644
|
}
|
|
645
645
|
return !1;
|
|
646
646
|
}
|
|
647
|
-
function
|
|
647
|
+
function wo(e, t) {
|
|
648
648
|
for (var r = t; r !== null; ) {
|
|
649
649
|
if ((r.f & xt) !== 0)
|
|
650
650
|
try {
|
|
@@ -666,7 +666,7 @@ function Nt(e, t, r, i) {
|
|
|
666
666
|
throw e;
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
|
-
if (r !== null && (pt = !0),
|
|
669
|
+
if (r !== null && (pt = !0), wo(e, t), Kr(t))
|
|
670
670
|
throw e;
|
|
671
671
|
}
|
|
672
672
|
function Un(e, t, r = !0) {
|
|
@@ -720,10 +720,10 @@ function jn(e) {
|
|
|
720
720
|
q = t, Q = r, ie = i, R = o, Ce = a, H = l, zr(s), de = f, e.f ^= Ht;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function po(e, t) {
|
|
724
724
|
let r = t.reactions;
|
|
725
725
|
if (r !== null) {
|
|
726
|
-
var i =
|
|
726
|
+
var i = Ui.call(r, e);
|
|
727
727
|
if (i !== -1) {
|
|
728
728
|
var o = r.length - 1;
|
|
729
729
|
o === 0 ? r = t.reactions = null : (r[i] = r[o], r.pop());
|
|
@@ -745,7 +745,7 @@ function Rt(e, t) {
|
|
|
745
745
|
var r = e.deps;
|
|
746
746
|
if (r !== null)
|
|
747
747
|
for (var i = t; i < r.length; i++)
|
|
748
|
-
|
|
748
|
+
po(e, r[i]);
|
|
749
749
|
}
|
|
750
750
|
function ir(e) {
|
|
751
751
|
var t = e.f;
|
|
@@ -754,11 +754,11 @@ function ir(e) {
|
|
|
754
754
|
var r = I, i = W, o = Fe;
|
|
755
755
|
I = e, Fe = !0;
|
|
756
756
|
try {
|
|
757
|
-
(t & Xt) !== 0 ?
|
|
757
|
+
(t & Xt) !== 0 ? co(e) : Rn(e), An(e);
|
|
758
758
|
var a = jn(e);
|
|
759
759
|
e.teardown = typeof a == "function" ? a : null, e.wv = Fn;
|
|
760
760
|
var l = e.deps, s;
|
|
761
|
-
Hr &&
|
|
761
|
+
Hr && no && e.f & he;
|
|
762
762
|
} catch (f) {
|
|
763
763
|
Nt(f, e, r, i || e.ctx);
|
|
764
764
|
} finally {
|
|
@@ -766,9 +766,9 @@ function ir(e) {
|
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function bo() {
|
|
770
770
|
try {
|
|
771
|
-
|
|
771
|
+
Ki();
|
|
772
772
|
} catch (e) {
|
|
773
773
|
if (Ct !== null)
|
|
774
774
|
Nt(e, Ct, null);
|
|
@@ -781,12 +781,12 @@ function Vn() {
|
|
|
781
781
|
try {
|
|
782
782
|
var t = 0;
|
|
783
783
|
for (Fe = !0; ct.length > 0; ) {
|
|
784
|
-
t++ > 1e3 &&
|
|
784
|
+
t++ > 1e3 && bo();
|
|
785
785
|
var r = ct, i = r.length;
|
|
786
786
|
ct = [];
|
|
787
787
|
for (var o = 0; o < i; o++) {
|
|
788
|
-
var a =
|
|
789
|
-
|
|
788
|
+
var a = Eo(r[o]);
|
|
789
|
+
yo(a);
|
|
790
790
|
}
|
|
791
791
|
vt.clear();
|
|
792
792
|
}
|
|
@@ -794,7 +794,7 @@ function Vn() {
|
|
|
794
794
|
kt = !1, Fe = e, Ct = null;
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function yo(e) {
|
|
798
798
|
var t = e.length;
|
|
799
799
|
if (t !== 0)
|
|
800
800
|
for (var r = 0; r < t; r++) {
|
|
@@ -819,7 +819,7 @@ function Lt(e) {
|
|
|
819
819
|
}
|
|
820
820
|
ct.push(t);
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Eo(e) {
|
|
823
823
|
for (var t = [], r = e; r !== null; ) {
|
|
824
824
|
var i = r.f, o = (i & (be | Me)) !== 0, a = o && (i & K) !== 0;
|
|
825
825
|
if (!a && (i & Ke) === 0) {
|
|
@@ -847,7 +847,7 @@ function yo(e) {
|
|
|
847
847
|
}
|
|
848
848
|
function $(e) {
|
|
849
849
|
for (var t; ; ) {
|
|
850
|
-
if (
|
|
850
|
+
if (_o(), ct.length === 0)
|
|
851
851
|
return (
|
|
852
852
|
/** @type {T} */
|
|
853
853
|
t
|
|
@@ -855,7 +855,7 @@ function $(e) {
|
|
|
855
855
|
kt = !0, Vn();
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
|
-
async function
|
|
858
|
+
async function xo() {
|
|
859
859
|
await Promise.resolve(), $();
|
|
860
860
|
}
|
|
861
861
|
function c(e) {
|
|
@@ -885,9 +885,9 @@ function Xe(e) {
|
|
|
885
885
|
de = t;
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
|
-
const
|
|
888
|
+
const $o = -7169;
|
|
889
889
|
function ue(e, t) {
|
|
890
|
-
e.f = e.f &
|
|
890
|
+
e.f = e.f & $o | t;
|
|
891
891
|
}
|
|
892
892
|
const vt = /* @__PURE__ */ new Map();
|
|
893
893
|
function Bn(e, t) {
|
|
@@ -913,17 +913,17 @@ function qn(e, t = !1) {
|
|
|
913
913
|
return t || (r.equals = yn), r;
|
|
914
914
|
}
|
|
915
915
|
function D(e, t, r = !1) {
|
|
916
|
-
R !== null && !de && Gn() && (R.f & (fe | Xt)) !== 0 && !(H != null && H.includes(e)) &&
|
|
916
|
+
R !== null && !de && Gn() && (R.f & (fe | Xt)) !== 0 && !(H != null && H.includes(e)) && to();
|
|
917
917
|
let i = r ? ke(t) : t;
|
|
918
|
-
return
|
|
918
|
+
return ko(e, i);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function ko(e, t) {
|
|
921
921
|
if (!e.equals(t)) {
|
|
922
922
|
var r = e.v;
|
|
923
923
|
gt ? vt.set(e, t) : vt.set(e, r), e.v = t, (e.f & fe) !== 0 && ((e.f & he) !== 0 && xn(
|
|
924
924
|
/** @type {Derived} */
|
|
925
925
|
e
|
|
926
|
-
), ue(e, (e.f & ee) === 0 ? K : Ue)), e.wv = Mn(), Hn(e, he), I !== null && (I.f & K) !== 0 && (I.f & (be | Me)) === 0 && (ie === null ?
|
|
926
|
+
), ue(e, (e.f & ee) === 0 ? K : Ue)), e.wv = Mn(), Hn(e, he), I !== null && (I.f & K) !== 0 && (I.f & (be | Me)) === 0 && (ie === null ? mo([e]) : ie.push(e));
|
|
927
927
|
}
|
|
928
928
|
return t;
|
|
929
929
|
}
|
|
@@ -986,9 +986,9 @@ function Yn(e) {
|
|
|
986
986
|
function Gn() {
|
|
987
987
|
return !0;
|
|
988
988
|
}
|
|
989
|
-
const
|
|
990
|
-
function
|
|
991
|
-
return
|
|
989
|
+
const Co = ["touchstart", "touchmove"];
|
|
990
|
+
function Ao(e) {
|
|
991
|
+
return Co.includes(e);
|
|
992
992
|
}
|
|
993
993
|
let Xr = !1;
|
|
994
994
|
function Zn() {
|
|
@@ -1019,7 +1019,7 @@ function Jn(e) {
|
|
|
1019
1019
|
ve(t), Se(r);
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function Ro(e, t, r, i = r) {
|
|
1023
1023
|
e.addEventListener(t, () => Jn(r));
|
|
1024
1024
|
const o = e.__on_r;
|
|
1025
1025
|
o ? e.__on_r = () => {
|
|
@@ -1027,7 +1027,7 @@ function Ao(e, t, r, i = r) {
|
|
|
1027
1027
|
} : e.__on_r = () => i(!0), Zn();
|
|
1028
1028
|
}
|
|
1029
1029
|
const Kn = /* @__PURE__ */ new Set(), Jt = /* @__PURE__ */ new Set();
|
|
1030
|
-
function
|
|
1030
|
+
function Io(e, t, r, i = {}) {
|
|
1031
1031
|
function o(a) {
|
|
1032
1032
|
if (i.capture || ft.call(t, a), !a.cancelBubble)
|
|
1033
1033
|
return Jn(() => r == null ? void 0 : r.call(this, a));
|
|
@@ -1036,13 +1036,13 @@ function Ro(e, t, r, i = {}) {
|
|
|
1036
1036
|
t.addEventListener(e, o, i);
|
|
1037
1037
|
}) : t.addEventListener(e, o, i), o;
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1040
|
-
var a = { capture: i, passive: o }, l =
|
|
1039
|
+
function So(e, t, r, i, o) {
|
|
1040
|
+
var a = { capture: i, passive: o }, l = Io(e, t, r, a);
|
|
1041
1041
|
(t === document.body || t === window || t === document) && kn(() => {
|
|
1042
1042
|
t.removeEventListener(e, l, a);
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function To(e) {
|
|
1046
1046
|
for (var t = 0; t < e.length; t++)
|
|
1047
1047
|
Kn.add(e[t]);
|
|
1048
1048
|
for (var r of Jt)
|
|
@@ -1126,7 +1126,7 @@ function Ae(e, t) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
// @__NO_SIDE_EFFECTS__
|
|
1128
1128
|
function ge(e, t) {
|
|
1129
|
-
var r = (t &
|
|
1129
|
+
var r = (t & Oi) !== 0, i = (t & Fi) !== 0, o, a = !e.startsWith("<!>");
|
|
1130
1130
|
return () => {
|
|
1131
1131
|
if (L)
|
|
1132
1132
|
return Ae(P, null), P;
|
|
@@ -1151,7 +1151,7 @@ function ge(e, t) {
|
|
|
1151
1151
|
};
|
|
1152
1152
|
}
|
|
1153
1153
|
// @__NO_SIDE_EFFECTS__
|
|
1154
|
-
function
|
|
1154
|
+
function No(e, t, r = "svg") {
|
|
1155
1155
|
var i = !e.startsWith("<!>"), o = `<${r}>${i ? e : "<!>" + e}</${r}>`, a;
|
|
1156
1156
|
return () => {
|
|
1157
1157
|
if (L)
|
|
@@ -1187,7 +1187,7 @@ function ne(e, t) {
|
|
|
1187
1187
|
function zn(e, t) {
|
|
1188
1188
|
return Xn(e, t);
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function Lo(e, t) {
|
|
1191
1191
|
Wt(), t.intro = t.intro ?? !1;
|
|
1192
1192
|
const r = t.target, i = L, o = P;
|
|
1193
1193
|
try {
|
|
@@ -1212,7 +1212,7 @@ function No(e, t) {
|
|
|
1212
1212
|
l;
|
|
1213
1213
|
} catch (l) {
|
|
1214
1214
|
if (l === Je)
|
|
1215
|
-
return t.recover === !1 &&
|
|
1215
|
+
return t.recover === !1 && zi(), Wt(), io(r), Ze(!1), zn(e, t);
|
|
1216
1216
|
throw l;
|
|
1217
1217
|
} finally {
|
|
1218
1218
|
Ze(i), Re(o);
|
|
@@ -1226,15 +1226,15 @@ function Xn(e, { target: t, anchor: r, props: i = {}, events: o, context: a, int
|
|
|
1226
1226
|
var m = h[g];
|
|
1227
1227
|
if (!s.has(m)) {
|
|
1228
1228
|
s.add(m);
|
|
1229
|
-
var k =
|
|
1229
|
+
var k = Ao(m);
|
|
1230
1230
|
t.addEventListener(m, ft, { passive: k });
|
|
1231
1231
|
var N = Ye.get(m);
|
|
1232
1232
|
N === void 0 ? (document.addEventListener(m, ft, { passive: k }), Ye.set(m, 1)) : Ye.set(m, N + 1);
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
};
|
|
1236
|
-
f(
|
|
1237
|
-
var d = void 0, v =
|
|
1236
|
+
f(ji(Kn)), Jt.add(f);
|
|
1237
|
+
var d = void 0, v = uo(() => {
|
|
1238
1238
|
var h = r ?? t.appendChild(er());
|
|
1239
1239
|
return Gt(() => {
|
|
1240
1240
|
if (a) {
|
|
@@ -1266,7 +1266,7 @@ function Xn(e, { target: t, anchor: r, props: i = {}, events: o, context: a, int
|
|
|
1266
1266
|
return Kt.set(d, v), d;
|
|
1267
1267
|
}
|
|
1268
1268
|
let Kt = /* @__PURE__ */ new WeakMap();
|
|
1269
|
-
function
|
|
1269
|
+
function Do(e, t) {
|
|
1270
1270
|
const r = Kt.get(e);
|
|
1271
1271
|
return r ? (Kt.delete(e), r(t)) : Promise.resolve();
|
|
1272
1272
|
}
|
|
@@ -1287,7 +1287,7 @@ function $e(e, t, [r, i] = [0, 0]) {
|
|
|
1287
1287
|
F === zt ? i = 0 : F === sn ? i = 1 / 0 : (i = parseInt(F.substring(1)), i !== i && (i = s ? 1 / 0 : -1));
|
|
1288
1288
|
}
|
|
1289
1289
|
const N = i > r;
|
|
1290
|
-
!!s === N && (o =
|
|
1290
|
+
!!s === N && (o = ro(), Re(o), Ze(!1), k = !0, i = -1);
|
|
1291
1291
|
}
|
|
1292
1292
|
s ? (a ? Zr(a) : m && (a = Gt(() => m(o))), l && Zt(l, () => {
|
|
1293
1293
|
l = null;
|
|
@@ -1346,7 +1346,7 @@ function Ge(e, t, r = !1, i = !1, o = !1) {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
});
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function Po(e, t, r, i, o) {
|
|
1350
1350
|
var s;
|
|
1351
1351
|
L && ze();
|
|
1352
1352
|
var a = (s = t.$$slots) == null ? void 0 : s[r], l = !1;
|
|
@@ -1354,7 +1354,7 @@ function Do(e, t, r, i, o) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
const Qr = [...`
|
|
1356
1356
|
\r\f \v\uFEFF`];
|
|
1357
|
-
function
|
|
1357
|
+
function Oo(e, t, r) {
|
|
1358
1358
|
var i = "" + e;
|
|
1359
1359
|
if (r) {
|
|
1360
1360
|
for (var o in r)
|
|
@@ -1368,10 +1368,10 @@ function Po(e, t, r) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
return i === "" ? null : i;
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function Fo(e, t, r, i, o, a) {
|
|
1372
1372
|
var l = e.__className;
|
|
1373
1373
|
if (L || l !== r || l === void 0) {
|
|
1374
|
-
var s =
|
|
1374
|
+
var s = Oo(r, i, a);
|
|
1375
1375
|
(!L || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : e.className = s), e.__className = r;
|
|
1376
1376
|
} else if (a && o !== a)
|
|
1377
1377
|
for (var f in a) {
|
|
@@ -1380,7 +1380,7 @@ function Oo(e, t, r, i, o, a) {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
return a;
|
|
1382
1382
|
}
|
|
1383
|
-
const
|
|
1383
|
+
const Mo = Symbol("is custom element"), Uo = Symbol("is html");
|
|
1384
1384
|
function en(e) {
|
|
1385
1385
|
if (L) {
|
|
1386
1386
|
var t = !1, r = () => {
|
|
@@ -1395,10 +1395,10 @@ function en(e) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
|
-
e.__on_r = r,
|
|
1398
|
+
e.__on_r = r, go(r), Zn();
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function jo(e, t) {
|
|
1402
1402
|
var r = Qn(e);
|
|
1403
1403
|
r.value === (r.value = // treat null and undefined the same for the initial value
|
|
1404
1404
|
t ?? void 0) || // @ts-expect-error
|
|
@@ -1407,33 +1407,33 @@ function Uo(e, t) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
function se(e, t, r, i) {
|
|
1409
1409
|
var o = Qn(e);
|
|
1410
|
-
L && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || o[t] !== (o[t] = r) && (t === "loading" && (e[
|
|
1410
|
+
L && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || o[t] !== (o[t] = r) && (t === "loading" && (e[Yi] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Vo(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1411
1411
|
}
|
|
1412
1412
|
function Qn(e) {
|
|
1413
1413
|
return (
|
|
1414
1414
|
/** @type {Record<string | symbol, unknown>} **/
|
|
1415
1415
|
// @ts-expect-error
|
|
1416
1416
|
e.__attributes ?? (e.__attributes = {
|
|
1417
|
-
[
|
|
1418
|
-
[
|
|
1417
|
+
[Mo]: e.nodeName.includes("-"),
|
|
1418
|
+
[Uo]: e.namespaceURI === Mi
|
|
1419
1419
|
})
|
|
1420
1420
|
);
|
|
1421
1421
|
}
|
|
1422
1422
|
var tn = /* @__PURE__ */ new Map();
|
|
1423
|
-
function
|
|
1423
|
+
function Vo(e) {
|
|
1424
1424
|
var t = tn.get(e.nodeName);
|
|
1425
1425
|
if (t) return t;
|
|
1426
1426
|
tn.set(e.nodeName, t = []);
|
|
1427
1427
|
for (var r, i = e, o = Element.prototype; o !== i; ) {
|
|
1428
|
-
r =
|
|
1428
|
+
r = Vi(i);
|
|
1429
1429
|
for (var a in r)
|
|
1430
1430
|
r[a].set && t.push(a);
|
|
1431
1431
|
i = dn(i);
|
|
1432
1432
|
}
|
|
1433
1433
|
return t;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1436
|
-
|
|
1435
|
+
function Bo(e, t, r = t) {
|
|
1436
|
+
Ro(e, "change", (i) => {
|
|
1437
1437
|
var o = i ? e.defaultChecked : e.checked;
|
|
1438
1438
|
r(o);
|
|
1439
1439
|
}), // If we are hydrating and the value has since changed,
|
|
@@ -1470,11 +1470,11 @@ function ei(e) {
|
|
|
1470
1470
|
);
|
|
1471
1471
|
});
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function qo(e) {
|
|
1474
1474
|
W === null && un(), ei(() => () => Xe(e));
|
|
1475
1475
|
}
|
|
1476
1476
|
let wt = !1;
|
|
1477
|
-
function
|
|
1477
|
+
function Ho(e) {
|
|
1478
1478
|
var t = wt;
|
|
1479
1479
|
try {
|
|
1480
1480
|
return wt = !1, [e(), wt];
|
|
@@ -1488,8 +1488,8 @@ function on(e) {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
function A(e, t, r, i) {
|
|
1490
1490
|
var Ne;
|
|
1491
|
-
var o = (r &
|
|
1492
|
-
l ? [d, f] =
|
|
1491
|
+
var o = (r & Ni) !== 0, a = !0, l = (r & Di) !== 0, s = (r & Pi) !== 0, f = !1, d;
|
|
1492
|
+
l ? [d, f] = Ho(() => (
|
|
1493
1493
|
/** @type {V} */
|
|
1494
1494
|
e[t]
|
|
1495
1495
|
)) : d = /** @type {V} */
|
|
@@ -1502,7 +1502,7 @@ function A(e, t, r, i) {
|
|
|
1502
1502
|
i
|
|
1503
1503
|
) : g = /** @type {V} */
|
|
1504
1504
|
i), g);
|
|
1505
|
-
d === void 0 && i !== void 0 && (h && a &&
|
|
1505
|
+
d === void 0 && i !== void 0 && (h && a && Xi(), d = N(), h && h(d));
|
|
1506
1506
|
var F;
|
|
1507
1507
|
if (F = () => {
|
|
1508
1508
|
var O = (
|
|
@@ -1510,7 +1510,7 @@ function A(e, t, r, i) {
|
|
|
1510
1510
|
e[t]
|
|
1511
1511
|
);
|
|
1512
1512
|
return O === void 0 ? N() : (m = !0, k = !1, O);
|
|
1513
|
-
}, (r &
|
|
1513
|
+
}, (r & Li) === 0)
|
|
1514
1514
|
return F;
|
|
1515
1515
|
if (h) {
|
|
1516
1516
|
var V = e.$$legacy;
|
|
@@ -1535,11 +1535,11 @@ function A(e, t, r, i) {
|
|
|
1535
1535
|
return on(M) ? M.v : c(M);
|
|
1536
1536
|
};
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1539
|
-
return new
|
|
1538
|
+
function Wo(e) {
|
|
1539
|
+
return new Yo(e);
|
|
1540
1540
|
}
|
|
1541
1541
|
var pe, oe;
|
|
1542
|
-
class
|
|
1542
|
+
class Yo {
|
|
1543
1543
|
/**
|
|
1544
1544
|
* @param {ComponentConstructorOptions & {
|
|
1545
1545
|
* component: any;
|
|
@@ -1569,7 +1569,7 @@ class Wo {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
1571
|
);
|
|
1572
|
-
Bt(this, oe, (t.hydrate ?
|
|
1572
|
+
Bt(this, oe, (t.hydrate ? Lo : zn)(t.component, {
|
|
1573
1573
|
target: t.target,
|
|
1574
1574
|
anchor: t.anchor,
|
|
1575
1575
|
props: o,
|
|
@@ -1592,7 +1592,7 @@ class Wo {
|
|
|
1592
1592
|
(l) => {
|
|
1593
1593
|
Object.assign(o, l);
|
|
1594
1594
|
}, G(this, oe).$destroy = () => {
|
|
1595
|
-
|
|
1595
|
+
Do(G(this, oe));
|
|
1596
1596
|
};
|
|
1597
1597
|
}
|
|
1598
1598
|
/** @param {Record<string, any>} props */
|
|
@@ -1683,7 +1683,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
1683
1683
|
};
|
|
1684
1684
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1685
1685
|
return;
|
|
1686
|
-
const r = {}, i =
|
|
1686
|
+
const r = {}, i = Go(this);
|
|
1687
1687
|
for (const o of this.$$s)
|
|
1688
1688
|
o in i && (o === "default" && !this.$$d.children ? (this.$$d.children = t(o), r.default = !0) : r[o] = t(o));
|
|
1689
1689
|
for (const o of this.attributes) {
|
|
@@ -1692,7 +1692,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
1692
1692
|
}
|
|
1693
1693
|
for (const o in this.$$p_d)
|
|
1694
1694
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
1695
|
-
this.$$c =
|
|
1695
|
+
this.$$c = Wo({
|
|
1696
1696
|
component: this.$$ctor,
|
|
1697
1697
|
target: this.shadowRoot || this,
|
|
1698
1698
|
props: {
|
|
@@ -1700,7 +1700,7 @@ typeof HTMLElement == "function" && (ti = class extends HTMLElement {
|
|
|
1700
1700
|
$$slots: r,
|
|
1701
1701
|
$$host: this
|
|
1702
1702
|
}
|
|
1703
|
-
}), this.$$me =
|
|
1703
|
+
}), this.$$me = fo(() => {
|
|
1704
1704
|
nr(() => {
|
|
1705
1705
|
var o;
|
|
1706
1706
|
this.$$r = !0;
|
|
@@ -1782,7 +1782,7 @@ function bt(e, t, r, i) {
|
|
|
1782
1782
|
return t;
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1785
|
+
function Go(e) {
|
|
1786
1786
|
const t = {};
|
|
1787
1787
|
return e.childNodes.forEach((r) => {
|
|
1788
1788
|
t[
|
|
@@ -1791,7 +1791,7 @@ function Yo(e) {
|
|
|
1791
1791
|
] = !0;
|
|
1792
1792
|
}), t;
|
|
1793
1793
|
}
|
|
1794
|
-
function
|
|
1794
|
+
function Zo(e, t, r, i, o, a) {
|
|
1795
1795
|
let l = class extends ti {
|
|
1796
1796
|
constructor() {
|
|
1797
1797
|
super(e, r, o), this.$$p_d = t;
|
|
@@ -1828,10 +1828,10 @@ function Go(e, t, r, i, o, a) {
|
|
|
1828
1828
|
l, l;
|
|
1829
1829
|
}
|
|
1830
1830
|
const ri = new TextEncoder();
|
|
1831
|
-
function
|
|
1831
|
+
function Jo(e) {
|
|
1832
1832
|
return [...new Uint8Array(e)].map((t) => t.toString(16).padStart(2, "0")).join("");
|
|
1833
1833
|
}
|
|
1834
|
-
async function
|
|
1834
|
+
async function Ko(e, t = "SHA-256", r = 1e5) {
|
|
1835
1835
|
const i = Date.now().toString(16);
|
|
1836
1836
|
e || (e = Math.round(Math.random() * r));
|
|
1837
1837
|
const o = await ni(i, e, t);
|
|
@@ -1845,14 +1845,14 @@ async function Jo(e, t = "SHA-256", r = 1e5) {
|
|
|
1845
1845
|
async function ni(e, t, r) {
|
|
1846
1846
|
if (typeof crypto > "u" || !("subtle" in crypto) || !("digest" in crypto.subtle))
|
|
1847
1847
|
throw new Error("Web Crypto is not available. Secure context is required (https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).");
|
|
1848
|
-
return
|
|
1848
|
+
return Jo(
|
|
1849
1849
|
await crypto.subtle.digest(
|
|
1850
1850
|
r.toUpperCase(),
|
|
1851
1851
|
ri.encode(e + t)
|
|
1852
1852
|
)
|
|
1853
1853
|
);
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function zo(e, t, r = "SHA-256", i = 1e6, o = 0) {
|
|
1856
1856
|
const a = new AbortController(), l = Date.now();
|
|
1857
1857
|
return {
|
|
1858
1858
|
promise: (async () => {
|
|
@@ -1870,25 +1870,25 @@ function Ko(e, t, r = "SHA-256", i = 1e6, o = 0) {
|
|
|
1870
1870
|
controller: a
|
|
1871
1871
|
};
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function Xo() {
|
|
1874
1874
|
try {
|
|
1875
1875
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1876
1876
|
} catch {
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function Qo(e) {
|
|
1880
1880
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
1881
1881
|
for (let i = 0; i < t.length; i++)
|
|
1882
1882
|
r[i] = t.charCodeAt(i);
|
|
1883
1883
|
return r;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function ea(e, t = 12) {
|
|
1886
1886
|
const r = new Uint8Array(t);
|
|
1887
1887
|
for (let i = 0; i < t; i++)
|
|
1888
1888
|
r[i] = e % 256, e = Math.floor(e / 256);
|
|
1889
1889
|
return r;
|
|
1890
1890
|
}
|
|
1891
|
-
async function
|
|
1891
|
+
async function ta(e, t = "", r = 1e6, i = 0) {
|
|
1892
1892
|
const o = "AES-GCM", a = new AbortController(), l = Date.now(), s = async () => {
|
|
1893
1893
|
for (let v = i; v <= r; v += 1) {
|
|
1894
1894
|
if (a.signal.aborted || !f || !d)
|
|
@@ -1897,7 +1897,7 @@ async function ea(e, t = "", r = 1e6, i = 0) {
|
|
|
1897
1897
|
const h = await crypto.subtle.decrypt(
|
|
1898
1898
|
{
|
|
1899
1899
|
name: o,
|
|
1900
|
-
iv:
|
|
1900
|
+
iv: ea(v)
|
|
1901
1901
|
},
|
|
1902
1902
|
f,
|
|
1903
1903
|
d
|
|
@@ -1914,7 +1914,7 @@ async function ea(e, t = "", r = 1e6, i = 0) {
|
|
|
1914
1914
|
};
|
|
1915
1915
|
let f = null, d = null;
|
|
1916
1916
|
try {
|
|
1917
|
-
d =
|
|
1917
|
+
d = Qo(e);
|
|
1918
1918
|
const v = await crypto.subtle.digest(
|
|
1919
1919
|
"SHA-256",
|
|
1920
1920
|
ri.encode(t)
|
|
@@ -1937,8 +1937,8 @@ async function ea(e, t = "", r = 1e6, i = 0) {
|
|
|
1937
1937
|
controller: a
|
|
1938
1938
|
};
|
|
1939
1939
|
}
|
|
1940
|
-
var b = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(b || {}),
|
|
1941
|
-
function
|
|
1940
|
+
var b = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.VERIFIED = "verified", e.VERIFYING = "verifying", e.UNVERIFIED = "unverified", e.EXPIRED = "expired", e))(b || {}), ra = /* @__PURE__ */ No('<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><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" class="altcha-spinner"></path></svg>'), na = /* @__PURE__ */ ge('<span role="status" aria-live="polite"><!></span> <input type="hidden">', 1), ia = /* @__PURE__ */ ge('<span role="status" aria-live="polite"><!></span>'), oa = /* @__PURE__ */ ge("<label><!></label>"), aa = /* @__PURE__ */ ge('<div><a target="_blank" class="altcha-logo"><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>'), la = /* @__PURE__ */ ge("<div><!></div>"), sa = /* @__PURE__ */ ge("<div><!></div>"), fa = /* @__PURE__ */ ge('<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"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg> <!></div>'), ua = /* @__PURE__ */ ge('<div class="altcha-footer"><div><!></div></div>'), ca = /* @__PURE__ */ ge('<div class="altcha-anchor-arrow"></div>'), da = /* @__PURE__ */ ge('<!> <div class="altcha"><div class="altcha-main"><!> <div><input type="checkbox"></div> <div class="altcha-label"><!></div> <!></div> <!> <!> <!></div>', 1);
|
|
1941
|
+
function ha(e, t) {
|
|
1942
1942
|
var Mr, Ur;
|
|
1943
1943
|
Wn(t, !0);
|
|
1944
1944
|
let r = A(t, "auto", 7, void 0), i = A(t, "blockspam", 7, void 0), o = A(t, "challengeurl", 7, void 0), a = A(t, "challengejson", 7, void 0), l = A(t, "customfetch", 7, void 0), s = A(t, "debug", 7, !1), f = A(t, "delay", 7, 0), d = A(t, "expire", 7, void 0), v = A(t, "floating", 7, void 0), h = A(t, "floatinganchor", 7, void 0), g = A(t, "floatingoffset", 7, void 0), m = A(t, "floatingpersist", 7, !1), k = A(t, "hidefooter", 7, !1), N = A(t, "hidelogo", 7, !1), F = A(t, "id", 7, void 0), V = A(t, "name", 7, "altcha"), U = A(t, "maxnumber", 7, 1e6), Y = A(t, "mockerror", 7, !1), M = A(t, "obfuscated", 7, void 0), Ne = A(t, "plugins", 7, void 0), O = A(t, "refetchonexpire", 7, !0), j = A(t, "spamfilter", 7, !1), _e = A(t, "strings", 7, void 0), te = A(t, "test", 7, !1), ye = A(t, "verifyurl", 7, void 0), Ve = A(t, "workers", 23, () => Math.min(16, navigator.hardwareConcurrency || 8)), Qe = A(t, "workerurl", 7, void 0);
|
|
@@ -1966,11 +1966,11 @@ function da(e, t) {
|
|
|
1966
1966
|
ci(c(He));
|
|
1967
1967
|
}), Yt(() => {
|
|
1968
1968
|
di(c(C));
|
|
1969
|
-
}),
|
|
1969
|
+
}), qo(() => {
|
|
1970
1970
|
ii(), w && (w.removeEventListener("submit", wr), w.removeEventListener("reset", pr), w.removeEventListener("focusin", mr), w = null), ce && (clearTimeout(ce), ce = null), document.removeEventListener("click", gr), document.removeEventListener("scroll", _r), window.removeEventListener("resize", yr);
|
|
1971
1971
|
}), ei(() => {
|
|
1972
1972
|
var n;
|
|
1973
|
-
S("mounted", "1.5.
|
|
1973
|
+
S("mounted", "1.5.1"), S("workers", Ve()), fi(), S("plugins", Ee.length ? Ee.map((u) => u.constructor.pluginName).join(", ") : "none"), te() && S("using test mode"), d() && Ot(d()), r() !== void 0 && S("auto", r()), v() !== void 0 && xr(v()), w = (n = c(B)) == null ? void 0 : n.closest("form"), w && (w.addEventListener("submit", wr, { capture: !0 }), w.addEventListener("reset", pr), (r() === "onfocus" || m() === "focus") && w.addEventListener("focusin", mr)), r() === "onload" && (M() ? rt() : xe()), c(Dt) && (k() || N()) && S("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."), requestAnimationFrame(() => {
|
|
1974
1974
|
et("load");
|
|
1975
1975
|
});
|
|
1976
1976
|
});
|
|
@@ -1999,7 +1999,7 @@ function da(e, t) {
|
|
|
1999
1999
|
if (c(Pt))
|
|
2000
2000
|
return S("using provided json data"), c(Pt);
|
|
2001
2001
|
if (te())
|
|
2002
|
-
return S("generating test challenge", { test: te() }),
|
|
2002
|
+
return S("generating test challenge", { test: te() }), Ko(typeof te() != "boolean" ? +te() : void 0);
|
|
2003
2003
|
{
|
|
2004
2004
|
if (!o() && w) {
|
|
2005
2005
|
const x = w.getAttribute("action");
|
|
@@ -2122,7 +2122,7 @@ function da(e, t) {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
function wr(n) {
|
|
2124
2124
|
w && r() === "onsubmit" ? c(C) === b.UNVERIFIED ? (n.preventDefault(), n.stopPropagation(), xe().then(() => {
|
|
2125
|
-
|
|
2125
|
+
vi();
|
|
2126
2126
|
})) : c(C) !== b.VERIFIED && (n.preventDefault(), n.stopPropagation(), c(C) === b.VERIFYING && br()) : w && v() && r() === "off" && c(C) === b.UNVERIFIED && (n.preventDefault(), n.stopPropagation(), Ft());
|
|
2127
2127
|
}
|
|
2128
2128
|
function pr() {
|
|
@@ -2159,10 +2159,10 @@ function da(e, t) {
|
|
|
2159
2159
|
expectedCountries: jt,
|
|
2160
2160
|
fields: at,
|
|
2161
2161
|
ipAddress: lt,
|
|
2162
|
-
text:
|
|
2162
|
+
text: Ai,
|
|
2163
2163
|
timeZone: jr
|
|
2164
2164
|
} = li();
|
|
2165
|
-
u.blockedCountries = T, u.classifier = E, u.disableRules = p, u.email = x === !1 ? void 0 : ai(x), u.expectedCountries = jt, u.expectedLanguages = me || (fr ? [fr] : void 0), u.fields = at === !1 ? void 0 : si(at), u.ipAddress = lt === !1 ? void 0 : lt || "auto", u.text =
|
|
2165
|
+
u.blockedCountries = T, u.classifier = E, u.disableRules = p, u.email = x === !1 ? void 0 : ai(x), u.expectedCountries = jt, u.expectedLanguages = me || (fr ? [fr] : void 0), u.fields = at === !1 ? void 0 : si(at), u.ipAddress = lt === !1 ? void 0 : lt || "auto", u.text = Ai, u.timeZone = jr === !1 ? void 0 : jr || Xo();
|
|
2166
2166
|
}
|
|
2167
2167
|
const _ = await vr()(ye(), {
|
|
2168
2168
|
body: JSON.stringify(u),
|
|
@@ -2177,6 +2177,9 @@ function da(e, t) {
|
|
|
2177
2177
|
if (y != null && y.payload && D(Le, y.payload, !0), et("serververification", y), i() && y.classification === "BAD")
|
|
2178
2178
|
throw new Error("SpamFilter returned negative classification.");
|
|
2179
2179
|
}
|
|
2180
|
+
function vi() {
|
|
2181
|
+
w && "requestSubmit" in w ? w.requestSubmit() : w != null && w.reportValidity() && w.submit();
|
|
2182
|
+
}
|
|
2180
2183
|
function Ot(n) {
|
|
2181
2184
|
S("expire", n), ce && (clearTimeout(ce), ce = null), n < 1 ? hr() : ce = setTimeout(hr, n);
|
|
2182
2185
|
}
|
|
@@ -2199,7 +2202,7 @@ function da(e, t) {
|
|
|
2199
2202
|
let u = null;
|
|
2200
2203
|
if ("Worker" in window) {
|
|
2201
2204
|
try {
|
|
2202
|
-
u = await
|
|
2205
|
+
u = await gi(n, n.maxNumber || n.maxnumber || U());
|
|
2203
2206
|
} catch (_) {
|
|
2204
2207
|
S(_);
|
|
2205
2208
|
}
|
|
@@ -2207,15 +2210,15 @@ function da(e, t) {
|
|
|
2207
2210
|
return { data: n, solution: u };
|
|
2208
2211
|
}
|
|
2209
2212
|
if ("obfuscated" in n) {
|
|
2210
|
-
const _ = await
|
|
2213
|
+
const _ = await ta(n.obfuscated, n.key, n.maxNumber || n.maxnumber);
|
|
2211
2214
|
return { data: n, solution: await _.promise };
|
|
2212
2215
|
}
|
|
2213
2216
|
return {
|
|
2214
2217
|
data: n,
|
|
2215
|
-
solution: await
|
|
2218
|
+
solution: await zo(n.challenge, n.salt, n.algorithm, n.maxNumber || n.maxnumber || U()).promise
|
|
2216
2219
|
};
|
|
2217
2220
|
}
|
|
2218
|
-
async function
|
|
2221
|
+
async function gi(n, u = typeof te() == "number" ? te() : n.maxNumber || n.maxnumber || U(), _ = Math.ceil(Ve())) {
|
|
2219
2222
|
const y = [];
|
|
2220
2223
|
_ = Math.min(16, u, Math.max(1, _));
|
|
2221
2224
|
for (let p = 0; p < _; p++)
|
|
@@ -2285,7 +2288,7 @@ function da(e, t) {
|
|
|
2285
2288
|
function Rr() {
|
|
2286
2289
|
return qe;
|
|
2287
2290
|
}
|
|
2288
|
-
function
|
|
2291
|
+
function _i(n) {
|
|
2289
2292
|
return Ee.find((u) => u.constructor.pluginName === n);
|
|
2290
2293
|
}
|
|
2291
2294
|
function Ir() {
|
|
@@ -2330,45 +2333,45 @@ function da(e, t) {
|
|
|
2330
2333
|
} else
|
|
2331
2334
|
throw S("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."), new Error("Unexpected result returned.");
|
|
2332
2335
|
}).then(() => {
|
|
2333
|
-
De(b.VERIFIED), S("verified"),
|
|
2336
|
+
De(b.VERIFIED), S("verified"), xo().then(() => {
|
|
2334
2337
|
et("verified", { payload: c(Le) });
|
|
2335
2338
|
});
|
|
2336
2339
|
}).catch((n) => {
|
|
2337
2340
|
S(n), De(b.ERROR, n.message);
|
|
2338
2341
|
});
|
|
2339
2342
|
}
|
|
2340
|
-
var Nr =
|
|
2341
|
-
|
|
2343
|
+
var Nr = da(), Lr = Gr(Nr);
|
|
2344
|
+
Po(Lr, t, "default", {});
|
|
2342
2345
|
var ot = we(Lr, 2), Mt = X(ot), Dr = X(Mt);
|
|
2343
2346
|
{
|
|
2344
|
-
var
|
|
2345
|
-
var u =
|
|
2347
|
+
var mi = (n) => {
|
|
2348
|
+
var u = ra();
|
|
2346
2349
|
ne(n, u);
|
|
2347
2350
|
};
|
|
2348
2351
|
$e(Dr, (n) => {
|
|
2349
|
-
c(C) === b.VERIFYING && n(
|
|
2352
|
+
c(C) === b.VERIFYING && n(mi);
|
|
2350
2353
|
});
|
|
2351
2354
|
}
|
|
2352
2355
|
var mt = we(Dr, 2);
|
|
2353
2356
|
let Pr;
|
|
2354
2357
|
var We = X(mt);
|
|
2355
2358
|
en(We), We.__change = ui, z(mt);
|
|
2356
|
-
var Ut = we(mt, 2),
|
|
2359
|
+
var Ut = we(mt, 2), wi = X(Ut);
|
|
2357
2360
|
{
|
|
2358
|
-
var
|
|
2359
|
-
var u =
|
|
2361
|
+
var pi = (n) => {
|
|
2362
|
+
var u = na(), _ = Gr(u), y = X(_);
|
|
2360
2363
|
Ge(y, () => c(re).verified), z(_);
|
|
2361
2364
|
var T = we(_, 2);
|
|
2362
2365
|
en(T), Pe(() => {
|
|
2363
|
-
se(T, "name", V()),
|
|
2366
|
+
se(T, "name", V()), jo(T, c(Le));
|
|
2364
2367
|
}), ne(n, u);
|
|
2365
|
-
},
|
|
2368
|
+
}, bi = (n, u) => {
|
|
2366
2369
|
{
|
|
2367
2370
|
var _ = (T) => {
|
|
2368
|
-
var E =
|
|
2371
|
+
var E = ia(), p = X(E);
|
|
2369
2372
|
Ge(p, () => c(re).verifying), z(E), ne(T, E);
|
|
2370
2373
|
}, y = (T) => {
|
|
2371
|
-
var E =
|
|
2374
|
+
var E = oa(), p = X(E);
|
|
2372
2375
|
Ge(p, () => c(re).label), z(E), Pe(() => se(E, "for", c(cr))), ne(T, E);
|
|
2373
2376
|
};
|
|
2374
2377
|
$e(
|
|
@@ -2380,32 +2383,32 @@ function da(e, t) {
|
|
|
2380
2383
|
);
|
|
2381
2384
|
}
|
|
2382
2385
|
};
|
|
2383
|
-
$e(
|
|
2384
|
-
c(C) === b.VERIFIED ? n(
|
|
2386
|
+
$e(wi, (n) => {
|
|
2387
|
+
c(C) === b.VERIFIED ? n(pi) : n(bi, !1);
|
|
2385
2388
|
});
|
|
2386
2389
|
}
|
|
2387
2390
|
z(Ut);
|
|
2388
|
-
var
|
|
2391
|
+
var yi = we(Ut, 2);
|
|
2389
2392
|
{
|
|
2390
|
-
var
|
|
2391
|
-
var u =
|
|
2393
|
+
var Ei = (n) => {
|
|
2394
|
+
var u = aa(), _ = X(u);
|
|
2392
2395
|
se(_, "href", sr), z(u), Pe(() => se(_, "aria-label", c(re).ariaLinkLabel)), ne(n, u);
|
|
2393
2396
|
};
|
|
2394
|
-
$e(
|
|
2395
|
-
(N() !== !0 || c(Dt)) && n(
|
|
2397
|
+
$e(yi, (n) => {
|
|
2398
|
+
(N() !== !0 || c(Dt)) && n(Ei);
|
|
2396
2399
|
});
|
|
2397
2400
|
}
|
|
2398
2401
|
z(Mt);
|
|
2399
2402
|
var Or = we(Mt, 2);
|
|
2400
2403
|
{
|
|
2401
|
-
var
|
|
2402
|
-
var u =
|
|
2404
|
+
var xi = (n) => {
|
|
2405
|
+
var u = fa(), _ = we(X(u), 2);
|
|
2403
2406
|
{
|
|
2404
2407
|
var y = (E) => {
|
|
2405
|
-
var p =
|
|
2408
|
+
var p = la(), x = X(p);
|
|
2406
2409
|
Ge(x, () => c(re).expired), z(p), Pe(() => se(p, "title", c(He))), ne(E, p);
|
|
2407
2410
|
}, T = (E) => {
|
|
2408
|
-
var p =
|
|
2411
|
+
var p = sa(), x = X(p);
|
|
2409
2412
|
Ge(x, () => c(re).error), z(p), Pe(() => se(p, "title", c(He))), ne(E, p);
|
|
2410
2413
|
};
|
|
2411
2414
|
$e(_, (E) => {
|
|
@@ -2415,44 +2418,44 @@ function da(e, t) {
|
|
|
2415
2418
|
z(u), ne(n, u);
|
|
2416
2419
|
};
|
|
2417
2420
|
$e(Or, (n) => {
|
|
2418
|
-
(c(He) || c(C) === b.EXPIRED) && n(
|
|
2421
|
+
(c(He) || c(C) === b.EXPIRED) && n(xi);
|
|
2419
2422
|
});
|
|
2420
2423
|
}
|
|
2421
2424
|
var Fr = we(Or, 2);
|
|
2422
2425
|
{
|
|
2423
|
-
var
|
|
2424
|
-
var u =
|
|
2426
|
+
var $i = (n) => {
|
|
2427
|
+
var u = ua(), _ = X(u), y = X(_);
|
|
2425
2428
|
Ge(y, () => c(re).footer), z(_), z(u), ne(n, u);
|
|
2426
2429
|
};
|
|
2427
2430
|
$e(Fr, (n) => {
|
|
2428
|
-
c(re).footer && (k() !== !0 || c(Dt)) && n(
|
|
2431
|
+
c(re).footer && (k() !== !0 || c(Dt)) && n($i);
|
|
2429
2432
|
});
|
|
2430
2433
|
}
|
|
2431
|
-
var
|
|
2434
|
+
var ki = we(Fr, 2);
|
|
2432
2435
|
{
|
|
2433
|
-
var
|
|
2434
|
-
var u =
|
|
2436
|
+
var Ci = (n) => {
|
|
2437
|
+
var u = ca();
|
|
2435
2438
|
nn(u, (_) => D(tt, _), () => c(tt)), ne(n, u);
|
|
2436
2439
|
};
|
|
2437
|
-
$e(
|
|
2438
|
-
v() && n(
|
|
2440
|
+
$e(ki, (n) => {
|
|
2441
|
+
v() && n(Ci);
|
|
2439
2442
|
});
|
|
2440
2443
|
}
|
|
2441
2444
|
return z(ot), nn(ot, (n) => D(B, n), () => c(B)), Pe(
|
|
2442
2445
|
(n) => {
|
|
2443
|
-
se(ot, "data-state", c(C)), se(ot, "data-floating", v()), Pr =
|
|
2446
|
+
se(ot, "data-state", c(C)), se(ot, "data-floating", v()), Pr = Fo(mt, 1, "altcha-checkbox", null, Pr, n), se(We, "id", c(cr)), We.required = r() !== "onsubmit" && (!v() || r() !== "off");
|
|
2444
2447
|
},
|
|
2445
2448
|
[
|
|
2446
2449
|
() => ({
|
|
2447
2450
|
"altcha-hidden": c(C) === b.VERIFYING
|
|
2448
2451
|
})
|
|
2449
2452
|
]
|
|
2450
|
-
),
|
|
2453
|
+
), So("invalid", We, br), Bo(We, () => c(Be), (n) => D(Be, n)), ne(e, Nr), Yn({
|
|
2451
2454
|
clarify: rt,
|
|
2452
2455
|
configure: Cr,
|
|
2453
2456
|
getConfiguration: Ar,
|
|
2454
2457
|
getFloatingAnchor: Rr,
|
|
2455
|
-
getPlugin:
|
|
2458
|
+
getPlugin: _i,
|
|
2456
2459
|
getState: Ir,
|
|
2457
2460
|
hide: Sr,
|
|
2458
2461
|
repositionFloating: nt,
|
|
@@ -2625,9 +2628,9 @@ function da(e, t) {
|
|
|
2625
2628
|
}
|
|
2626
2629
|
});
|
|
2627
2630
|
}
|
|
2628
|
-
|
|
2629
|
-
customElements.define("altcha-widget",
|
|
2630
|
-
|
|
2631
|
+
To(["change"]);
|
|
2632
|
+
customElements.define("altcha-widget", Zo(
|
|
2633
|
+
ha,
|
|
2631
2634
|
{
|
|
2632
2635
|
blockspam: { type: "Boolean" },
|
|
2633
2636
|
debug: { type: "Boolean" },
|
|
@@ -2675,154 +2678,16 @@ customElements.define("altcha-widget", Go(
|
|
|
2675
2678
|
],
|
|
2676
2679
|
!1
|
|
2677
2680
|
));
|
|
2678
|
-
const
|
|
2679
|
-
|
|
2680
|
-
border: var(--altcha-border-width, 1px) solid
|
|
2681
|
-
var(--altcha-color-border, #a0a0a0);
|
|
2682
|
-
border-radius: var(--altcha-border-radius, 3px);
|
|
2683
|
-
color: var(--altcha-color-text, currentColor);
|
|
2684
|
-
display: flex;
|
|
2685
|
-
flex-direction: column;
|
|
2686
|
-
max-width: var(--altcha-max-width, 260px);
|
|
2687
|
-
position: relative;
|
|
2688
|
-
text-align: left;
|
|
2689
|
-
}
|
|
2690
|
-
|
|
2691
|
-
.altcha:focus-within {
|
|
2692
|
-
border-color: var(--altcha-color-border-focus, currentColor);
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
.altcha[data-floating] {
|
|
2696
|
-
background: var(--altcha-color-base, white);
|
|
2697
|
-
display: none;
|
|
2698
|
-
filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.2));
|
|
2699
|
-
left: -100%;
|
|
2700
|
-
position: fixed;
|
|
2701
|
-
top: -100%;
|
|
2702
|
-
width: var(--altcha-max-width, 260px);
|
|
2703
|
-
z-index: 999999;
|
|
2704
|
-
}
|
|
2705
|
-
|
|
2706
|
-
.altcha[data-floating="top"] .altcha-anchor-arrow {
|
|
2707
|
-
border-bottom-color: transparent;
|
|
2708
|
-
border-top-color: var(--altcha-color-border, #a0a0a0);
|
|
2709
|
-
bottom: -12px;
|
|
2710
|
-
top: auto;
|
|
2711
|
-
}
|
|
2712
|
-
|
|
2713
|
-
.altcha[data-floating="bottom"]:focus-within::after {
|
|
2714
|
-
border-bottom-color: var(--altcha-color-border-focus, currentColor);
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
.altcha[data-floating="top"]:focus-within::after {
|
|
2718
|
-
border-top-color: var(--altcha-color-border-focus, currentColor);
|
|
2719
|
-
}
|
|
2720
|
-
|
|
2721
|
-
.altcha[data-floating]:not([data-state="unverified"]) {
|
|
2722
|
-
display: block;
|
|
2723
|
-
}
|
|
2724
|
-
|
|
2725
|
-
.altcha-anchor-arrow {
|
|
2726
|
-
border: 6px solid transparent;
|
|
2727
|
-
border-bottom-color: var(--altcha-color-border, #a0a0a0);
|
|
2728
|
-
content: '';
|
|
2729
|
-
height: 0;
|
|
2730
|
-
left: 12px;
|
|
2731
|
-
position: absolute;
|
|
2732
|
-
top: -12px;
|
|
2733
|
-
width: 0;
|
|
2734
|
-
}
|
|
2735
|
-
|
|
2736
|
-
.altcha-main {
|
|
2737
|
-
align-items: center;
|
|
2738
|
-
display: flex;
|
|
2739
|
-
gap: 0.4rem;
|
|
2740
|
-
padding: 0.7rem;
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
|
-
.altcha-label {
|
|
2744
|
-
flex-grow: 1;
|
|
2745
|
-
}
|
|
2746
|
-
|
|
2747
|
-
.altcha-label label {
|
|
2748
|
-
cursor: pointer;
|
|
2749
|
-
}
|
|
2750
|
-
|
|
2751
|
-
.altcha-logo {
|
|
2752
|
-
color: currentColor;
|
|
2753
|
-
opacity: 0.3;
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
.altcha-logo:hover {
|
|
2757
|
-
opacity: 1;
|
|
2758
|
-
}
|
|
2759
|
-
|
|
2760
|
-
.altcha-error {
|
|
2761
|
-
color: var(--altcha-color-error-text, #f23939);
|
|
2762
|
-
display: flex;
|
|
2763
|
-
font-size: 0.85rem;
|
|
2764
|
-
gap: 0.3rem;
|
|
2765
|
-
padding: 0 0.7rem 0.7rem;
|
|
2766
|
-
}
|
|
2767
|
-
|
|
2768
|
-
.altcha-footer {
|
|
2769
|
-
align-items: center;
|
|
2770
|
-
background-color: var(--altcha-color-footer-bg, transparent);
|
|
2771
|
-
display: flex;
|
|
2772
|
-
font-size: 0.75rem;
|
|
2773
|
-
opacity: 0.4;
|
|
2774
|
-
padding: 0.2rem 0.7rem;
|
|
2775
|
-
text-align: right;
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
.altcha-footer:hover {
|
|
2779
|
-
opacity: 1;
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
.altcha-footer > *:first-child {
|
|
2783
|
-
flex-grow: 1;
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
.altcha-footer a {
|
|
2787
|
-
color: currentColor;
|
|
2788
|
-
}
|
|
2789
|
-
|
|
2790
|
-
.altcha-checkbox {
|
|
2791
|
-
display: flex;
|
|
2792
|
-
align-items: center;
|
|
2793
|
-
height: 24px;
|
|
2794
|
-
width: 24px;
|
|
2795
|
-
}
|
|
2796
|
-
|
|
2797
|
-
.altcha-checkbox input {
|
|
2798
|
-
width: 18px;
|
|
2799
|
-
height: 18px;
|
|
2800
|
-
margin: 0;
|
|
2801
|
-
}
|
|
2802
|
-
|
|
2803
|
-
.altcha-hidden {
|
|
2804
|
-
display: none;
|
|
2805
|
-
}
|
|
2806
|
-
|
|
2807
|
-
.altcha-spinner {
|
|
2808
|
-
animation: altcha-spinner 0.75s infinite linear;
|
|
2809
|
-
transform-origin: center;
|
|
2810
|
-
}
|
|
2811
|
-
|
|
2812
|
-
@keyframes altcha-spinner {
|
|
2813
|
-
100% {
|
|
2814
|
-
transform: rotate(360deg);
|
|
2815
|
-
}
|
|
2816
|
-
}`;
|
|
2817
|
-
function va(e, t = "__altcha-css") {
|
|
2681
|
+
const va = '@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;text-align:left}.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}.altcha-label{flex-grow:1}.altcha-label label{cursor:pointer}.altcha-logo{color:currentColor;opacity:.3}.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:.4;padding:.2rem .7rem;text-align:right}.altcha-footer>:first-child{flex-grow:1}.altcha-footer a{color:currentColor}.altcha-checkbox{display:flex;align-items:center;height:24px;width:24px}.altcha-checkbox input{width:18px;height:18px;margin:0}.altcha-hidden{display:none}.altcha-spinner{animation:altcha-spinner .75s infinite linear;transform-origin:center}';
|
|
2682
|
+
function ga(e, t = "__altcha-css") {
|
|
2818
2683
|
if (!document.getElementById(t)) {
|
|
2819
2684
|
const r = document.createElement("style");
|
|
2820
2685
|
r.id = t, r.textContent = e, document.head.appendChild(r);
|
|
2821
2686
|
}
|
|
2822
2687
|
}
|
|
2823
|
-
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new
|
|
2688
|
+
globalThis.altchaCreateWorker = (e) => e ? new Worker(new URL(e)) : new Si();
|
|
2824
2689
|
globalThis.altchaPlugins = globalThis.altchaPlugins || [];
|
|
2825
|
-
va
|
|
2690
|
+
ga(va);
|
|
2826
2691
|
export {
|
|
2827
|
-
|
|
2692
|
+
ha as Altcha
|
|
2828
2693
|
};
|