altcha 2.2.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -6
- package/dist/altcha.i18n.js +1664 -1714
- package/dist/altcha.i18n.umd.js +4 -4
- package/dist/altcha.js +1614 -1664
- package/dist/altcha.umd.cjs +4 -4
- package/dist_external/altcha.css +1 -1
- package/dist_external/altcha.js +1665 -1713
- package/dist_external/altcha.umd.cjs +3 -3
- package/dist_external/worker.js +1 -1
- package/package.json +9 -20
- package/dist_plugins/analytics.d.ts +0 -1
- package/dist_plugins/analytics.js +0 -290
- package/dist_plugins/analytics.umd.cjs +0 -1
- package/dist_plugins/obfuscation.d.ts +0 -1
- package/dist_plugins/obfuscation.js +0 -138
- package/dist_plugins/obfuscation.umd.cjs +0 -1
- package/dist_plugins/upload.d.ts +0 -1
- package/dist_plugins/upload.js +0 -475
- package/dist_plugins/upload.umd.cjs +0 -4
package/dist/altcha.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`,Y=typeof self<"u"&&self.Blob&&new Blob([T],{type:"text/javascript;charset=utf-8"});function Xt(e){let t;try{if(t=Y&&(self.URL||self.webkitURL).createObjectURL(Y),!t)throw"";const r=new Worker(t,{name:e==null?void 0:e.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(T),{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}const io="5";typeof window<"u"&&((pi=window.__svelte??(window.__svelte={})).v??(pi.v=new Set)).add(io);const oo=1,ao=4,lo=8,so=16,uo=1,fo=2,Ir="[",on="[!",an="]",pt={},ue=Symbol(),co="http://www.w3.org/1999/xhtml",ln=!1;function sn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var un=Array.isArray,ho=Array.prototype.indexOf,vo=Array.from,Qt=Object.keys,Tt=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,go=Object.getOwnPropertyDescriptors,po=Object.prototype,mo=Array.prototype,fn=Object.getPrototypeOf,cn=Object.isExtensible;const mt=()=>{};function dn(e){for(var t=0;t<e.length;t++)e[t]()}function bo(e,t,r=!1){return e===void 0?r?t():t:e}const we=2,hn=4,er=8,Rr=16,Fe=32,et=64,tr=128,ve=256,rr=512,fe=1024,Ie=2048,tt=4096,bt=8192,nr=16384,_o=32768,Sr=65536,yo=1<<19,vn=1<<20,$r=1<<21,Dt=Symbol("$state"),gn=Symbol("legacy props"),wo=Symbol("");function Eo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Co(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ko(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ao(){throw new Error("https://svelte.dev/e/hydration_failed")}function Io(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ro(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function So(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $o(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ir(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let M=!1;function _t(e){M=e}let V;function je(e){if(e===null)throw ir(),pt;return V=e}function yt(){return je(Be(V))}function z(e){if(M){if(Be(V)!==null)throw ir(),pt;V=e}}function To(){for(var e=0,t=V;;){if(t.nodeType===8){var r=t.data;if(r===an){if(e===0)return t;e-=1}else(r===Ir||r===on)&&(e+=1)}var i=Be(t);t.remove(),t=i}}let Do=!1;function qe(e){if(typeof e!="object"||e===null||Dt in e)return e;const t=fn(e);if(t!==po&&t!==mo)return e;var r=new Map,i=un(e),l=P(0),o=D,f=s=>{var c=D;$e(o);var d=s();return $e(c),d};return i&&r.set("length",P(e.length)),new Proxy(e,{defineProperty(s,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Ro();var b=r.get(c);return b===void 0?(b=f(()=>P(d.value)),r.set(c,b)):_(b,f(()=>qe(d.value))),!0},deleteProperty(s,c){var d=r.get(c);if(d===void 0)c in s&&(r.set(c,f(()=>P(ue))),Tr(l));else{if(i&&typeof c=="string"){var b=r.get("length"),v=Number(c);Number.isInteger(v)&&v<b.v&&_(b,v)}_(d,ue),Tr(l)}return!0},get(s,c,d){var y;if(c===Dt)return e;var b=r.get(c),v=c in s;if(b===void 0&&(!v||(y=Qe(s,c))!=null&&y.writable)&&(b=f(()=>P(qe(v?s[c]:ue))),r.set(c,b)),b!==void 0){var m=a(b);return m===ue?void 0:m}return Reflect.get(s,c,d)},getOwnPropertyDescriptor(s,c){var d=Reflect.getOwnPropertyDescriptor(s,c);if(d&&"value"in d){var b=r.get(c);b&&(d.value=a(b))}else if(d===void 0){var v=r.get(c),m=v==null?void 0:v.v;if(v!==void 0&&m!==ue)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return d},has(s,c){var m;if(c===Dt)return!0;var d=r.get(c),b=d!==void 0&&d.v!==ue||Reflect.has(s,c);if(d!==void 0||N!==null&&(!b||(m=Qe(s,c))!=null&&m.writable)){d===void 0&&(d=f(()=>P(b?qe(s[c]):ue)),r.set(c,d));var v=a(d);if(v===ue)return!1}return b},set(s,c,d,b){var re;var v=r.get(c),m=c in s;if(i&&c==="length")for(var y=d;y<v.v;y+=1){var L=r.get(y+"");L!==void 0?_(L,ue):y in s&&(L=f(()=>P(ue)),r.set(y+"",L))}v===void 0?(!m||(re=Qe(s,c))!=null&&re.writable)&&(v=f(()=>P(void 0)),_(v,f(()=>qe(d))),r.set(c,v)):(m=v.v!==ue,_(v,f(()=>qe(d))));var O=Reflect.getOwnPropertyDescriptor(s,c);if(O!=null&&O.set&&O.set.call(b,d),!m){if(i&&typeof c=="string"){var B=r.get("length"),R=Number(c);Number.isInteger(R)&&R>=B.v&&_(B,R+1)}Tr(l)}return!0},ownKeys(s){a(l);var c=Reflect.ownKeys(s).filter(v=>{var m=r.get(v);return m===void 0||m.v!==ue});for(var[d,b]of r)b.v!==ue&&!(d in s)&&c.push(d);return c},setPrototypeOf(){So()}})}function Tr(e,t=1){_(e,e.v+t)}var pn,mn,bn,_n;function Dr(){if(pn===void 0){pn=window,mn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;bn=Qe(t,"firstChild").get,_n=Qe(t,"nextSibling").get,cn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),cn(r)&&(r.__t=void 0)}}function or(e=""){return document.createTextNode(e)}function me(e){return bn.call(e)}function Be(e){return _n.call(e)}function J(e,t){if(!M)return me(e);var r=me(V);return r===null&&(r=V.appendChild(or())),je(r),r}function Nt(e,t){if(!M){var r=me(e);return r instanceof Comment&&r.data===""?Be(r):r}return V}function K(e,t=1,r=!1){let i=M?V:e;for(var l;t--;)l=i,i=Be(i);if(!M)return i;var o=i==null?void 0:i.nodeType;if(r&&o!==3){var f=or();return i===null?l==null||l.after(f):i.before(f),je(f),f}return je(i),i}function No(e){e.textContent=""}function yn(e){return e===this.v}function wn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Nr(e){return!wn(e,this.v)}function ar(e){var t=we|Ie,r=D!==null&&(D.f&we)!==0?D:null;return N===null||r!==null&&(r.f&ve)!==0?t|=ve:N.f|=vn,{ctx:le,deps:null,effects:null,equals:yn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??N}}function Lt(e){const t=ar(e);return On(t),t}function Lo(e){const t=ar(e);return t.equals=Nr,t}function En(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)He(t[r])}}function Po(e){for(var t=e.parent;t!==null;){if((t.f&we)===0)return t;t=t.parent}return null}function Cn(e){var t,r=N;Ge(Po(e));try{En(e),t=jn(e)}finally{Ge(r)}return t}function xn(e){var t=Cn(e),r=(We||(e.f&ve)!==0)&&e.deps!==null?tt:fe;Ee(e,r),e.equals(t)||(e.v=t,e.wv=Mn())}function Oo(e){N===null&&D===null&&xo(),D!==null&&(D.f&ve)!==0&&N===null&&Co(),Ft&&Eo()}function Fo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function rt(e,t,r,i=!0){var l=N,o={ctx:le,deps:null,nodes_start:null,nodes_end:null,f:e|Ie,first:null,fn:t,last:null,next:null,parent:l,prev:null,teardown:null,transitions:null,wv:0};if(r)try{jr(o),o.f|=_o}catch(c){throw He(o),c}else t!==null&&hr(o);var f=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(vn|tr))===0;if(!f&&i&&(l!==null&&Fo(o,l),D!==null&&(D.f&we)!==0)){var s=D;(s.effects??(s.effects=[])).push(o)}return o}function Lr(e){const t=rt(er,null,!1);return Ee(t,fe),t.teardown=e,t}function Pr(e){Oo();var t=N!==null&&(N.f&Fe)!==0&&le!==null&&!le.m;if(t){var r=le;(r.e??(r.e=[])).push({fn:e,effect:N,reaction:D})}else{var i=Or(e);return i}}function Mo(e){const t=rt(et,e,!0);return()=>{He(t)}}function Vo(e){const t=rt(et,e,!0);return(r={})=>new Promise(i=>{r.outro?Vr(t,()=>{He(t),i(void 0)}):(He(t),i(void 0))})}function Or(e){return rt(hn,e,!1)}function Fr(e){return rt(er,e,!0)}function Re(e,t=[],r=ar){const i=t.map(r);return kn(()=>e(...i.map(a)))}function kn(e,t=0){return rt(er|Rr|t,e,!0)}function Mr(e,t=!0){return rt(er|Fe,e,!0,t)}function An(e){var t=e.teardown;if(t!==null){const r=Ft,i=D;Pn(!0),$e(null);try{t.call(null)}finally{Pn(r),$e(i)}}}function In(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;(r.f&et)!==0?r.parent=null:He(r,t),r=i}}function Uo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Fe)===0&&He(t),t=r}}function He(e,t=!0){var r=!1;(t||(e.f&yo)!==0)&&e.nodes_start!==null&&(Rn(e.nodes_start,e.nodes_end),r=!0),In(e,t&&!r),dr(e,0),Ee(e,nr);var i=e.transitions;if(i!==null)for(const o of i)o.stop();An(e);var l=e.parent;l!==null&&l.first!==null&&Sn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Rn(e,t){for(;e!==null;){var r=e===t?null:Be(e);e.remove(),e=r}}function Sn(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function Vr(e,t){var r=[];$n(e,r,!0),jo(r,()=>{He(e),t&&t()})}function jo(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var l of e)l.out(i)}else t()}function $n(e,t,r){if((e.f&bt)===0){if(e.f^=bt,e.transitions!==null)for(const f of e.transitions)(f.is_global||r)&&t.push(f);for(var i=e.first;i!==null;){var l=i.next,o=(i.f&Sr)!==0||(i.f&Fe)!==0;$n(i,t,o?r:!1),i=l}}}function Tn(e){Dn(e,!0)}function Dn(e,t){if((e.f&bt)!==0){e.f^=bt,(e.f&fe)===0&&(e.f^=fe),Vt(e)&&(Ee(e,Ie),hr(e));for(var r=e.first;r!==null;){var i=r.next,l=(r.f&Sr)!==0||(r.f&Fe)!==0;Dn(r,l?t:!1),r=i}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}const qo=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let Pt=[],Ot=[];function Nn(){var e=Pt;Pt=[],dn(e)}function Ln(){var e=Ot;Ot=[],dn(e)}function Ur(e){Pt.length===0&&queueMicrotask(Nn),Pt.push(e)}function Bo(e){Ot.length===0&&qo(Ln),Ot.push(e)}function Ho(){Pt.length>0&&Nn(),Ot.length>0&&Ln()}let lr=!1,sr=!1,ur=null,nt=!1,Ft=!1;function Pn(e){Ft=e}let Mt=[],Ul=[],D=null,Se=!1;function $e(e){D=e}let N=null;function Ge(e){N=e}let oe=null;function On(e){D!==null&&D.f&$r&&(oe===null?oe=[e]:oe.push(e))}let ae=null,ge=0,be=null;function Go(e){be=e}let Fn=1,fr=0,We=!1;function Mn(){return++Fn}function Vt(e){var v;var t=e.f;if((t&Ie)!==0)return!0;if((t&tt)!==0){var r=e.deps,i=(t&ve)!==0;if(r!==null){var l,o,f=(t&rr)!==0,s=i&&N!==null&&!We,c=r.length;if(f||s){var d=e,b=d.parent;for(l=0;l<c;l++)o=r[l],(f||!((v=o==null?void 0:o.reactions)!=null&&v.includes(d)))&&(o.reactions??(o.reactions=[])).push(d);f&&(d.f^=rr),s&&b!==null&&(b.f&ve)===0&&(d.f^=ve)}for(l=0;l<c;l++)if(o=r[l],Vt(o)&&xn(o),o.wv>e.wv)return!0}(!i||N!==null&&!We)&&Ee(e,fe)}return!1}function Wo(e,t){for(var r=t;r!==null;){if((r.f&tr)!==0)try{r.fn(e);return}catch{r.f^=tr}r=r.parent}throw lr=!1,e}function Vn(e){return(e.f&nr)===0&&(e.parent===null||(e.parent.f&tr)===0)}function cr(e,t,r,i){if(lr){if(r===null&&(lr=!1),Vn(t))throw e;return}if(r!==null&&(lr=!0),Wo(e,t),Vn(t))throw e}function Un(e,t,r=!0){var i=e.reactions;if(i!==null)for(var l=0;l<i.length;l++){var o=i[l];oe!=null&&oe.includes(e)||((o.f&we)!==0?Un(o,t,!1):t===o&&(r?Ee(o,Ie):(o.f&fe)!==0&&Ee(o,tt),hr(o)))}}function jn(e){var y;var t=ae,r=ge,i=be,l=D,o=We,f=oe,s=le,c=Se,d=e.f;ae=null,ge=0,be=null,We=(d&ve)!==0&&(Se||!nt||D===null),D=(d&(Fe|et))===0?e:null,oe=null,Gn(e.ctx),Se=!1,fr++,e.f|=$r;try{var b=(0,e.fn)(),v=e.deps;if(ae!==null){var m;if(dr(e,ge),v!==null&&ge>0)for(v.length=ge+ae.length,m=0;m<ae.length;m++)v[ge+m]=ae[m];else e.deps=v=ae;if(!We)for(m=ge;m<v.length;m++)((y=v[m]).reactions??(y.reactions=[])).push(e)}else v!==null&&ge<v.length&&(dr(e,ge),v.length=ge);if(Zn()&&be!==null&&!Se&&v!==null&&(e.f&(we|tt|Ie))===0)for(m=0;m<be.length;m++)Un(be[m],e);return l!==null&&l!==e&&(fr++,be!==null&&(i===null?i=be:i.push(...be))),b}finally{ae=t,ge=r,be=i,D=l,We=o,oe=f,Gn(s),Se=c,e.f^=$r}}function Yo(e,t){let r=t.reactions;if(r!==null){var i=ho.call(r,e);if(i!==-1){var l=r.length-1;l===0?r=t.reactions=null:(r[i]=r[l],r.pop())}}r===null&&(t.f&we)!==0&&(ae===null||!ae.includes(t))&&(Ee(t,tt),(t.f&(ve|rr))===0&&(t.f^=rr),En(t),dr(t,0))}function dr(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Yo(e,r[i])}function jr(e){var t=e.f;if((t&nr)===0){Ee(e,fe);var r=N,i=le,l=nt;N=e,nt=!0;try{(t&Rr)!==0?Uo(e):In(e),An(e);var o=jn(e);e.teardown=typeof o=="function"?o:null,e.wv=Fn;var f=e.deps,s;ln&&Do&&e.f&Ie}catch(c){cr(c,e,r,i||e.ctx)}finally{nt=l,N=r}}}function Zo(){try{ko()}catch(e){if(ur!==null)cr(e,ur,null);else throw e}}function qn(){var e=nt;try{var t=0;for(nt=!0;Mt.length>0;){t++>1e3&&Zo();var r=Mt,i=r.length;Mt=[];for(var l=0;l<i;l++){var o=Jo(r[l]);zo(o)}Ut.clear()}}finally{sr=!1,nt=e,ur=null}}function zo(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if((i.f&(nr|bt))===0)try{Vt(i)&&(jr(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Sn(i):i.fn=null))}catch(l){cr(l,i,null,i.ctx)}}}function hr(e){sr||(sr=!0,queueMicrotask(qn));for(var t=ur=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(et|Fe))!==0){if((r&fe)===0)return;t.f^=fe}}Mt.push(t)}function Jo(e){for(var t=[],r=e;r!==null;){var i=r.f,l=(i&(Fe|et))!==0,o=l&&(i&fe)!==0;if(!o&&(i&bt)===0){if((i&hn)!==0)t.push(r);else if(l)r.f^=fe;else try{Vt(r)&&jr(r)}catch(c){cr(c,r,null,r.ctx)}var f=r.first;if(f!==null){r=f;continue}}var s=r.parent;for(r=r.next;r===null&&s!==null;)r=s.next,s=s.parent}return t}function C(e){for(var t;;){if(Ho(),Mt.length===0)return t;sr=!0,qn()}}async function qr(){await Promise.resolve(),C()}function a(e){var t=e.f,r=(t&we)!==0;if(D!==null&&!Se){if(!(oe!=null&&oe.includes(e))){var i=D.deps;e.rv<fr&&(e.rv=fr,ae===null&&i!==null&&i[ge]===e?ge++:ae===null?ae=[e]:(!We||!ae.includes(e))&&ae.push(e))}}else if(r&&e.deps===null&&e.effects===null){var l=e,o=l.parent;o!==null&&(o.f&ve)===0&&(l.f^=ve)}return r&&(l=e,Vt(l)&&xn(l)),Ft&&Ut.has(e)?Ut.get(e):e.v}function it(e){var t=Se;try{return Se=!0,e()}finally{Se=t}}const Ko=-7169;function Ee(e,t){e.f=e.f&Ko|t}const Ut=new Map;function Bn(e,t){var r={f:0,v:e,reactions:null,equals:yn,rv:0,wv:0};return r}function P(e,t){const r=Bn(e);return On(r),r}function Br(e,t=!1){const r=Bn(e);return t||(r.equals=Nr),r}function _(e,t,r=!1){D!==null&&!Se&&Zn()&&(D.f&(we|Rr))!==0&&!(oe!=null&&oe.includes(e))&&$o();let i=r?qe(t):t;return Xo(e,i)}function Xo(e,t){if(!e.equals(t)){var r=e.v;Ft?Ut.set(e,t):Ut.set(e,r),e.v=t,(e.f&we)!==0&&((e.f&Ie)!==0&&Cn(e),Ee(e,(e.f&ve)===0?fe:tt)),e.wv=Mn(),Hn(e,Ie),N!==null&&(N.f&fe)!==0&&(N.f&(Fe|et))===0&&(be===null?Go([e]):be.push(e))}return t}function Hn(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,l=0;l<i;l++){var o=r[l],f=o.f;(f&Ie)===0&&(Ee(o,t),(f&(fe|ve))!==0&&((f&we)!==0?Hn(o,tt):hr(o)))}}let le=null;function Gn(e){le=e}function Wn(e,t=!1,r){var i=le={p:le,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Lr(()=>{i.d=!0})}function Yn(e){const t=le;if(t!==null){e!==void 0&&(t.x=e);const f=t.e;if(f!==null){var r=N,i=D;t.e=null;try{for(var l=0;l<f.length;l++){var o=f[l];Ge(o.effect),$e(o.reaction),Or(o.fn)}}finally{Ge(r),$e(i)}}le=t.p,t.m=!0}return e||{}}function Zn(){return!0}const Qo=["touchstart","touchmove"];function ea(e){return Qo.includes(e)}function ta(e,t){if(t){const r=document.body;e.autofocus=!0,Ur(()=>{document.activeElement===r&&e.focus()})}}let zn=!1;function Jn(){zn||(zn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function Kn(e){var t=D,r=N;$e(null),Ge(null);try{return e()}finally{$e(t),Ge(r)}}function ra(e,t,r,i=r){e.addEventListener(t,()=>Kn(r));const l=e.__on_r;l?e.__on_r=()=>{l(),i(!0)}:e.__on_r=()=>i(!0),Jn()}const Xn=new Set,Hr=new Set;function na(e,t,r,i={}){function l(o){if(i.capture||jt.call(t,o),!o.cancelBubble)return Kn(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ur(()=>{t.addEventListener(e,l,i)}):t.addEventListener(e,l,i),l}function Ye(e,t,r,i,l){var o={capture:i,passive:l},f=na(e,t,r,o);(t===document.body||t===window||t===document)&&Lr(()=>{t.removeEventListener(e,f,o)})}function ia(e){for(var t=0;t<e.length;t++)Xn.add(e[t]);for(var r of Hr)r(e)}function jt(e){var re;var t=this,r=t.ownerDocument,i=e.type,l=((re=e.composedPath)==null?void 0:re.call(e))||[],o=l[0]||e.target,f=0,s=e.__root;if(s){var c=l.indexOf(s);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var d=l.indexOf(t);if(d===-1)return;c<=d&&(f=c)}if(o=l[f]||e.target,o!==t){Tt(e,"currentTarget",{configurable:!0,get(){return o||r}});var b=D,v=N;$e(null),Ge(null);try{for(var m,y=[];o!==null;){var L=o.assignedSlot||o.parentNode||o.host||null;try{var O=o["__"+i];if(O!=null&&(!o.disabled||e.target===o))if(un(O)){var[B,...R]=O;B.apply(o,[e,...R])}else O.call(o,e)}catch(ce){m?y.push(ce):m=ce}if(e.cancelBubble||L===t||L===null)break;o=L}if(m){for(let ce of y)queueMicrotask(()=>{throw ce});throw m}}finally{e.__root=t,delete e.currentTarget,$e(b),Ge(v)}}}function Gr(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Te(e,t){var r=N;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ce(e,t){var r=(t&uo)!==0,i=(t&fo)!==0,l,o=!e.startsWith("<!>");return()=>{if(M)return Te(V,null),V;l===void 0&&(l=Gr(o?e:"<!>"+e),r||(l=me(l)));var f=i||mn?document.importNode(l,!0):l.cloneNode(!0);if(r){var s=me(f),c=f.lastChild;Te(s,c)}else Te(f,f);return f}}function vr(e,t,r="svg"){var i=!e.startsWith("<!>"),l=`<${r}>${i?e:"<!>"+e}</${r}>`,o;return()=>{if(M)return Te(V,null),V;if(!o){var f=Gr(l),s=me(f);o=me(s)}var c=o.cloneNode(!0);return Te(c,c),c}}function gr(){if(M)return Te(V,null),V;var e=document.createDocumentFragment(),t=document.createComment(""),r=or();return e.append(t,r),Te(t,r),e}function G(e,t){if(M){N.nodes_end=V,yt();return}e!==null&&e.before(t)}function oa(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function Qn(e,t){return ei(e,t)}function aa(e,t){Dr(),t.intro=t.intro??!1;const r=t.target,i=M,l=V;try{for(var o=me(r);o&&(o.nodeType!==8||o.data!==Ir);)o=Be(o);if(!o)throw pt;_t(!0),je(o),yt();const f=ei(e,{...t,anchor:o});if(V===null||V.nodeType!==8||V.data!==an)throw ir(),pt;return _t(!1),f}catch(f){if(f===pt)return t.recover===!1&&Ao(),Dr(),No(r),_t(!1),Qn(e,t);throw f}finally{_t(i),je(l)}}const wt=new Map;function ei(e,{target:t,anchor:r,props:i={},events:l,context:o,intro:f=!0}){Dr();var s=new Set,c=v=>{for(var m=0;m<v.length;m++){var y=v[m];if(!s.has(y)){s.add(y);var L=ea(y);t.addEventListener(y,jt,{passive:L});var O=wt.get(y);O===void 0?(document.addEventListener(y,jt,{passive:L}),wt.set(y,1)):wt.set(y,O+1)}}};c(vo(Xn)),Hr.add(c);var d=void 0,b=Vo(()=>{var v=r??t.appendChild(or());return Mr(()=>{if(o){Wn({});var m=le;m.c=o}l&&(i.$$events=l),M&&Te(v,null),d=e(v,i)||{},M&&(N.nodes_end=V),o&&Yn()}),()=>{var L;for(var m of s){t.removeEventListener(m,jt);var y=wt.get(m);--y===0?(document.removeEventListener(m,jt),wt.delete(m)):wt.set(m,y)}Hr.delete(c),v!==r&&((L=v.parentNode)==null||L.removeChild(v))}});return Wr.set(d,b),d}let Wr=new WeakMap;function la(e,t){const r=Wr.get(e);return r?(Wr.delete(e),r(t)):Promise.resolve()}function X(e,t,[r,i]=[0,0]){M&&r===0&&yt();var l=e,o=null,f=null,s=ue,c=r>0?Sr:0,d=!1;const b=(m,y=!0)=>{d=!0,v(y,m)},v=(m,y)=>{if(s===(s=m))return;let L=!1;if(M&&i!==-1){if(r===0){const B=l.data;B===Ir?i=0:B===on?i=1/0:(i=parseInt(B.substring(1)),i!==i&&(i=s?1/0:-1))}const O=i>r;!!s===O&&(l=To(),je(l),_t(!1),L=!0,i=-1)}s?(o?Tn(o):y&&(o=Mr(()=>y(l))),f&&Vr(f,()=>{f=null})):(f?Tn(f):y&&(f=Mr(()=>y(l,[r+1,i]))),o&&Vr(o,()=>{o=null})),L&&_t(!0)};kn(()=>{d=!1,t(b),d||v(null,null)},c),M&&(l=V)}function ot(e,t,r=!1,i=!1,l=!1){var o=e,f="";Re(()=>{var s=N;if(f===(f=t()??"")){M&&yt();return}if(s.nodes_start!==null&&(Rn(s.nodes_start,s.nodes_end),s.nodes_start=s.nodes_end=null),f!==""){if(M){V.data;for(var c=yt(),d=c;c!==null&&(c.nodeType!==8||c.data!=="");)d=c,c=Be(c);if(c===null)throw ir(),pt;Te(V,d),o=je(c);return}var b=f+"";r?b=`<svg>${b}</svg>`:i&&(b=`<math>${b}</math>`);var v=Gr(b);if((r||i)&&(v=me(v)),Te(me(v),v.lastChild),r||i)for(;me(v);)o.before(me(v));else o.before(v)}})}function sa(e,t,r,i,l){var s;M&&yt();var o=(s=t.$$slots)==null?void 0:s[r],f=!1;o===!0&&(o=t.children,f=!0),o===void 0||o(e,f?()=>i:i)}const ti=[...`
|
|
3
|
-
\r\f \v\uFEFF`];function ua(e,t,r){var i=""+e;if(r){for(var l in r)if(r[l])i=i?i+" "+l:l;else if(i.length)for(var o=l.length,f=0;(f=i.indexOf(l,f))>=0;){var s=f+o;(f===0||ti.includes(i[f-1]))&&(s===i.length||ti.includes(i[s]))?i=(f===0?"":i.substring(0,f))+i.substring(s+1):f=s}}return i===""?null:i}function fa(e,t,r,i,l,o){var f=e.__className;if(M||f!==r||f===void 0){var s=ua(r,i,o);(!M||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):e.className=s),e.__className=r}else if(o&&l!==o)for(var c in o){var d=!!o[c];(l==null||d!==!!l[c])&&e.classList.toggle(c,d)}return o}const ca=Symbol("is custom element"),da=Symbol("is html");function ri(e){if(M){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;$(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var l=e.checked;$(e,"checked",null),e.checked=l}}};e.__on_r=r,Bo(r),Jn()}}function ha(e,t){var r=ni(e);r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function $(e,t,r,i){var l=ni(e);M&&(l[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||l[t]!==(l[t]=r)&&(t==="loading"&&(e[wo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&va(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ni(e){return e.__attributes??(e.__attributes={[ca]:e.nodeName.includes("-"),[da]:e.namespaceURI===co})}var ii=new Map;function va(e){var t=ii.get(e.nodeName);if(t)return t;ii.set(e.nodeName,t=[]);for(var r,i=e,l=Element.prototype;l!==i;){r=go(i);for(var o in r)r[o].set&&t.push(o);i=fn(i)}return t}function ga(e,t,r=t){ra(e,"change",i=>{var l=i?e.defaultChecked:e.checked;r(l)}),(M&&e.defaultChecked!==e.checked||it(t)==null)&&r(e.checked),Fr(()=>{var i=t();e.checked=!!i})}function oi(e,t){return e===t||(e==null?void 0:e[Dt])===t}function pr(e={},t,r,i){return Or(()=>{var l,o;return Fr(()=>{l=o,o=[],it(()=>{e!==r(...o)&&(t(e,...o),l&&oi(r(...l),e)&&t(null,...l))})}),()=>{Ur(()=>{o&&oi(r(...o),e)&&t(null,...o)})}}),e}function ai(e){le===null&&sn(),Pr(()=>{const t=it(e);if(typeof t=="function")return t})}function pa(e){le===null&&sn(),ai(()=>()=>it(e))}function li(e,t,r){if(e==null)return t(void 0),mt;const i=it(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}const Et=[];function ma(e,t=mt){let r=null;const i=new Set;function l(s){if(wn(e,s)&&(e=s,r)){const c=!Et.length;for(const d of i)d[1](),Et.push(d,e);if(c){for(let d=0;d<Et.length;d+=2)Et[d][0](Et[d+1]);Et.length=0}}}function o(s){l(s(e))}function f(s,c=mt){const d=[s,c];return i.add(d),i.size===1&&(r=t(l,o)||mt),s(e),()=>{i.delete(d),i.size===0&&r&&(r(),r=null)}}return{set:l,update:o,subscribe:f}}function mr(e){let t;return li(e,r=>t=r)(),t}let br=!1,Yr=Symbol();function ba(e,t,r){const i=r[t]??(r[t]={store:null,source:Br(void 0),unsubscribe:mt});if(i.store!==e&&!(Yr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=mt;else{var l=!0;i.unsubscribe=li(e,o=>{l?i.source.v=o:_(i.source,o)}),l=!1}return e&&Yr in r?mr(e):a(i.source)}function _a(){const e={};function t(){Lr(()=>{for(var r in e)e[r].unsubscribe();Tt(e,Yr,{enumerable:!1,value:!0})})}return[e,t]}function ya(e){var t=br;try{return br=!1,[e(),br]}finally{br=t}}function si(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function x(e,t,r,i){var Ve;var l=(r&oo)!==0,o=!0,f=(r&lo)!==0,s=(r&so)!==0,c=!1,d;f?[d,c]=ya(()=>e[t]):d=e[t];var b=Dt in e||gn in e,v=f&&(((Ve=Qe(e,t))==null?void 0:Ve.set)??(b&&t in e&&(H=>e[t]=H)))||void 0,m=i,y=!0,L=!1,O=()=>(L=!0,y&&(y=!1,s?m=it(i):m=i),m);d===void 0&&i!==void 0&&(v&&o&&Io(),d=O(),v&&v(d));var B;if(B=()=>{var H=e[t];return H===void 0?O():(y=!0,L=!1,H)},(r&ao)===0)return B;if(v){var R=e.$$legacy;return function(H,De){return arguments.length>0?((!De||R||c)&&v(De?B():H),H):B()}}var re=!1,ce=Br(d),ne=ar(()=>{var H=B(),De=a(ce);return re?(re=!1,De):ce.v=H});return f&&a(ne),l||(ne.equals=Nr),function(H,De){if(arguments.length>0){const Ze=De?a(ne):f?qe(H):H;if(!ne.equals(Ze)){if(re=!0,_(ce,Ze),L&&m!==void 0&&(m=Ze),si(ne))return H;it(()=>a(ne))}return H}return si(ne)?ne.v:a(ne)}}function wa(e){return new Ea(e)}class Ea{constructor(t){rn(this,Me);rn(this,_e);var o;var r=new Map,i=(f,s)=>{var c=Br(s);return r.set(f,c),c};const l=new Proxy({...t.props||{},$$events:{}},{get(f,s){return a(r.get(s)??i(s,Reflect.get(f,s)))},has(f,s){return s===gn?!0:(a(r.get(s)??i(s,Reflect.get(f,s))),Reflect.has(f,s))},set(f,s,c){return _(r.get(s)??i(s,c),c),Reflect.set(f,s,c)}});nn(this,_e,(t.hydrate?aa:Qn)(t.component,{target:t.target,anchor:t.anchor,props:l,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&C(),nn(this,Me,l.$$events);for(const f of Object.keys(he(this,_e)))f==="$set"||f==="$destroy"||f==="$on"||Tt(this,f,{get(){return he(this,_e)[f]},set(s){he(this,_e)[f]=s},enumerable:!0});he(this,_e).$set=f=>{Object.assign(l,f)},he(this,_e).$destroy=()=>{la(he(this,_e))}}$set(t){he(this,_e).$set(t)}$on(t,r){he(this,Me)[t]=he(this,Me)[t]||[];const i=(...l)=>r.call(this,...l);return he(this,Me)[t].push(i),()=>{he(this,Me)[t]=he(this,Me)[t].filter(l=>l!==i)}}$destroy(){he(this,_e).$destroy()}}Me=new WeakMap,_e=new WeakMap;let ui;typeof HTMLElement=="function"&&(ui=class extends HTMLElement{constructor(t,r,i){super();Ae(this,"$$ctor");Ae(this,"$$s");Ae(this,"$$c");Ae(this,"$$cn",!1);Ae(this,"$$d",{});Ae(this,"$$r",!1);Ae(this,"$$p_d",{});Ae(this,"$$l",{});Ae(this,"$$l_u",new Map);Ae(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const l=this.$$c.$on(t,r);this.$$l_u.set(r,l)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return o=>{const f=document.createElement("slot");l!=="default"&&(f.name=l),G(o,f)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Ca(this);for(const l of this.$$s)l in i&&(l==="default"&&!this.$$d.children?(this.$$d.children=t(l),r.default=!0):r[l]=t(l));for(const l of this.attributes){const o=this.$$g_p(l.name);o in this.$$d||(this.$$d[o]=_r(o,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=wa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Mo(()=>{Fr(()=>{var l;this.$$r=!0;for(const o of Qt(this.$$c)){if(!((l=this.$$p_d[o])!=null&&l.reflect))continue;this.$$d[o]=this.$$c[o];const f=_r(o,this.$$d[o],this.$$p_d,"toAttribute");f==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,f)}this.$$r=!1})});for(const l in this.$$l)for(const o of this.$$l[l]){const f=this.$$c.$on(l,o);this.$$l_u.set(o,f)}this.$$l={}}}attributeChangedCallback(t,r,i){var l;this.$$r||(t=this.$$g_p(t),this.$$d[t]=_r(t,i,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Qt(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function _r(e,t,r,i){var o;const l=(o=r[e])==null?void 0:o.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ca(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function xa(e,t,r,i,l,o){let f=class extends ui{constructor(){super(e,r,l),this.$$p_d=t}static get observedAttributes(){return Qt(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Qt(t).forEach(s=>{Tt(f.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(c){var v;c=_r(s,c,t),this.$$d[s]=c;var d=this.$$c;if(d){var b=(v=Qe(d,s))==null?void 0:v.get;b?d[s]=c:d.$set({[s]:c})}}})}),i.forEach(s=>{Tt(f.prototype,s,{get(){var c;return(c=this.$$c)==null?void 0:c[s]}})}),e.element=f,f}const fi=new TextEncoder;function ka(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function Aa(e,t="SHA-256",r=1e5){const i=Date.now().toString(16);e||(e=Math.round(Math.random()*r));const l=await ci(i,e,t);return{algorithm:t,challenge:l,salt:i,signature:""}}async function ci(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 ka(await crypto.subtle.digest(r.toUpperCase(),fi.encode(e+t)))}function Ia(e,t,r="SHA-256",i=1e6,l=0){const o=new AbortController,f=Date.now();return{promise:(async()=>{for(let c=l;c<=i;c+=1){if(o.signal.aborted)return null;if(await ci(t,c,r)===e)return{number:c,took:Date.now()-f}}return null})(),controller:o}}function di(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Ra(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function Sa(e,t=12){const r=new Uint8Array(t);for(let i=0;i<t;i++)r[i]=e%256,e=Math.floor(e/256);return r}async function $a(e,t="",r=1e6,i=0){const l="AES-GCM",o=new AbortController,f=Date.now(),s=async()=>{for(let b=i;b<=r;b+=1){if(o.signal.aborted||!c||!d)return null;try{const v=await crypto.subtle.decrypt({name:l,iv:Sa(b)},c,d);if(v)return{clearText:new TextDecoder().decode(v),took:Date.now()-f}}catch{}}return null};let c=null,d=null;try{d=Ra(e);const b=await crypto.subtle.digest("SHA-256",fi.encode(t));c=await crypto.subtle.importKey("raw",b,l,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:s(),controller:o}}var w=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(w||{}),te=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(te||{});globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>mr(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(mr(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(mr(globalThis.altchaI18n.store))},store:ma({})};const Ta={ariaLinkLabel:"Visit Altcha.org",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" target="_blank" aria-label="Visit Altcha.org">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait."};globalThis.altchaI18n.set("en",Ta);const Zr=(e,t)=>{let r=Lo(()=>bo(t==null?void 0:t(),24));var i=Pa();Re(()=>{$(i,"width",a(r)),$(i,"height",a(r))}),G(e,i)};function Da(e,t){e.code==="Space"&&(e.preventDefault(),e.stopImmediatePropagation(),t())}function Na(e,t){e.preventDefault(),t()}function La(e,t,r,i,l,o,f,s){var c;[w.UNVERIFIED,w.ERROR,w.EXPIRED,w.CODE].includes(a(t))?r()!==!1&&((c=a(i))==null?void 0:c.reportValidity())===!1?_(l,!1):o()?f():s():_(l,!0)}var Pa=vr('<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>'),Oa=Ce('<input type="hidden">'),Fa=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>'),Ma=vr('<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>'),Va=vr('<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>'),Ua=vr('<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>'),ja=Ce('<button type="button" class="altcha-code-challenge-audio"><!></button>'),qa=Ce("<audio hidden autoplay><source></audio>"),Ba=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>'),Ha=Ce("<div><!></div>"),Ga=Ce("<div><!></div>"),Wa=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>'),Ya=Ce('<div class="altcha-footer"><div><!></div></div>'),Za=Ce('<div class="altcha-anchor-arrow"></div>'),za=Ce('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>',1);function hi(e,t){var eo,to;Wn(t,!0);const[r,i]=_a(),l=()=>ba(Ka,"$altchaI18nStore",r);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),L=x(t,"refetchonexpire",7,!0),O=x(t,"disablerefetchonexpire",23,()=>!L()),B=x(t,"expire",7,void 0),R=x(t,"floating",7,void 0),re=x(t,"floatinganchor",7,void 0),ce=x(t,"floatingoffset",7,void 0),ne=x(t,"floatingpersist",7,!1),Ve=x(t,"hidefooter",7,!1),H=x(t,"hidelogo",7,!1),De=x(t,"id",7,void 0),Ze=x(t,"language",7,void 0),at=x(t,"name",7,"altcha"),lt=x(t,"maxnumber",7,1e6),qt=x(t,"mockerror",7,!1),ze=x(t,"obfuscated",7,void 0),xe=x(t,"overlay",7,void 0),Bt=x(t,"overlaycontent",7,void 0),yr=x(t,"plugins",7,void 0),st=x(t,"sentinel",7,void 0),Ne=x(t,"spamfilter",7,!1),Ct=x(t,"strings",7,void 0),ye=x(t,"test",7,!1),se=x(t,"verifyurl",7,void 0),xt=x(t,"workers",23,()=>Math.min(16,navigator.hardwareConcurrency||8)),Ht=x(t,"workerurl",7,void 0);const{altchaI18n:Ja}=globalThis,Ka=Ja.store,mi=["SHA-256","SHA-384","SHA-512"],Xa="https://altcha.org/",Je=(n,u)=>{t.$$host.dispatchEvent(new CustomEvent(n,{detail:u}))},bi=(to=(eo=document.documentElement.lang)==null?void 0:eo.split("-"))==null?void 0:to[0],zr=Lt(()=>{var n;return s()&&new URL(s(),location.origin).host.endsWith(".altcha.org")&&!!((n=s())!=null&&n.includes("apiKey=ckey_"))}),wr=Lt(()=>c()?Ni(c()):void 0),Qa=Lt(()=>Ct()?Ni(Ct()):{}),U=Lt(()=>({...Ei(l()),...a(Qa)})),_i=Lt(()=>`${De()||at()}_checkbox_${Math.round(Math.random()*1e8)}`);let ut=P(null),Gt=P(!1),Z=P(null),A=P(qe(w.UNVERIFIED)),j=P(void 0),Wt=P(null),Ke=P(null),pe=P(null),Jr=P(null),kt=P(null),F=P(null),Yt=P(null),ft=P(null),Le=null,Q=P(null),ct=P(!1),Xe=[],Kr=P(!1),Pe=P(null);Pr(()=>{dl(a(ft))}),Pr(()=>{hl(a(A))}),pa(()=>{el(),_(Yt,null),a(F)&&(a(F).removeEventListener("submit",Ri),a(F).removeEventListener("reset",Si),a(F).removeEventListener("focusin",Ii),_(F,null)),Le&&(clearTimeout(Le),Le=null),document.removeEventListener("click",ki),document.removeEventListener("scroll",Ai),window.removeEventListener("resize",Di)}),ai(()=>{var n;I("mounted","2.2.3"),I("workers",xt()),il(),I("plugins",Xe.length?Xe.map(u=>u.constructor.pluginName).join(", "):"none"),ye()&&I("using test mode"),B()&&Xr(B()),o()!==void 0&&I("auto",o()),R()!==void 0&&Fi(R()),_(F,(n=a(j))==null?void 0:n.closest("form"),!0),a(F)&&(a(F).addEventListener("submit",Ri,{capture:!0}),a(F).addEventListener("reset",Si),(o()==="onfocus"||ne()==="focus")&&a(F).addEventListener("focusin",Ii)),xe()&&Mi(!0),o()==="onload"&&(ze()?Zt():Ue()),a(zr)&&(Ve()||H())&&I("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."),requestAnimationFrame(()=>{Je("load")})});function Er(n,u){return btoa(JSON.stringify({algorithm:n.algorithm,challenge:n.challenge,number:u.number,salt:n.salt,signature:n.signature,test:ye()?!0:void 0,took:u.took}))}function el(){for(const n of Xe)n.destroy()}function yi(){s()&&!O()&&a(A)===w.VERIFIED?Ue():dt(w.EXPIRED,a(U).expired)}async function tl(){if(qt())throw I("mocking error"),new Error("Mocked error.");if(a(wr))return I("using provided json data"),Li(a(wr).salt),a(wr);if(ye())return I("generating test challenge",{test:ye()}),Aa(typeof ye()!="boolean"?+ye():void 0);{if(!s()&&a(F)){const h=a(F).getAttribute("action");h!=null&&h.includes("/form/")&&s(h+"/altcha")}if(!s())throw new Error("Attribute challengeurl not set.");I("fetching challenge from",s());const n={credentials:typeof d()=="boolean"?"include":d(),headers:Ne()!==!1?{"x-altcha-spam-filter":"1"}:{}},u=await wi()(s(),n);if(!u||!(u instanceof Response))throw new Error("Custom fetch function did not return a response.");if(u.status!==200)throw new Error(`Server responded with ${u.status}.`);const g=u.headers.get("X-Altcha-Config"),p=await u.json();if(Li(p.salt),g)try{const h=JSON.parse(g);h&&typeof h=="object"&&(h.verifyurl&&!h.verifyurl.startsWith("fn:")&&(h.verifyurl=xi(h.verifyurl)),ji(h))}catch(h){I("unable to configure from X-Altcha-Config",h)}return p}}function rl(n){var g,p;const u=(g=a(F))==null?void 0:g.querySelector(typeof n=="string"?`input[name="${n}"]`:'input[type="email"]:not([data-no-spamfilter])');return((p=u==null?void 0:u.value)==null?void 0:p.slice(u.value.indexOf("@")))||void 0}function wi(){let n=fetch;if(b())if(I("using customfetch"),typeof b()=="string"){if(n=globalThis[b()]||null,!n)throw new Error(`Custom fetch function not found: ${b()}`)}else n=b();return n}function Ei(n,u=[Ze()||"",document.documentElement.lang||"",...navigator.languages]){const g=Object.keys(n).map(h=>h.toLowerCase()),p=u.reduce((h,E)=>(E=E.toLowerCase(),h||(n[E]?E:null)||g.find(k=>E.split("-")[0]===k.split("-")[0])||null),null);return n[p||"en"]}function nl(){return Ne()==="ipAddress"?{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:!1,expectedCountries:void 0,expectedLanguages:void 0,fields:!1,ipAddress:void 0,text:void 0,timeZone:void 0}:typeof Ne()=="object"?Ne():{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:void 0,expectedCountries:void 0,expectedLanguages:void 0,fields:void 0,ipAddress:void 0,text:void 0,timeZone:void 0}}function Ci(n){var g;return[...((g=a(F))==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])'))||[]].reduce((p,h)=>{const E=h.name,k=h.value;return E&&k&&(p[E]=/\n/.test(k)?k.replace(new RegExp("(?<!\\r)\\n","g"),`\r
|
|
4
|
-
`):k),p},{})}function xi(n,u){const g=new URL(s()||location.origin),p=new URL(n,g);if(p.search||(p.search=g.search),u)for(const h in u)u[h]!==void 0&&u[h]!==null&&p.searchParams.set(h,u[h]);return p.toString()}function il(){const n=yr()!==void 0?yr().split(","):void 0;for(const u of globalThis.altchaPlugins)(!n||n.includes(u.pluginName))&&Xe.push(new u({el:a(j),clarify:Zt,dispatch:Je,getConfiguration:qi,getFloatingAnchor:Bi,getState:Hi,log:I,reset:dt,solve:Ui,setState:Oe,setFloatingAnchor:Gi,verify:Ue}))}function I(...n){(v()||n.some(u=>u instanceof Error))&&console[n[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${at()}]`,...n)}function ol(){_(Q,te.PAUSED,!0)}function al(n){_(Q,te.ERROR,!0)}function ll(){_(Q,te.READY,!0)}function sl(){_(Q,te.LOADING,!0)}function ul(){_(Q,te.PLAYING,!0)}function fl(){_(Q,te.PAUSED,!0)}function cl(n){var u;if(n.preventDefault(),n.stopPropagation(),a(Z)){const g=new FormData(n.target),p=String(g.get("code"));if((u=se())!=null&&u.startsWith("fn:")){const h=se().replace(/^fn:/,"");if(I(`calling ${h} function instead of verifyurl`),!(h in globalThis))throw new Error(`Global function "${h}" is undefined.`);return globalThis[h]({challenge:a(Z).challenge,code:p,solution:a(Z).solution})}_(ct,!0),Pi(Er(a(Z).challenge,a(Z).solution),p).then(({reason:h,verified:E})=>{E?(_(Z,null),Oe(w.VERIFIED),I("verified"),qr().then(()=>{var k;(k=a(Jr))==null||k.focus(),Je("verified",{payload:a(Pe)}),o()==="onsubmit"?Oi(a(Yt)):xe()&&zt()})):(dt(),_(ft,h||"Verification failed",!0))}).catch(h=>{_(Z,null),Oe(w.ERROR,h),I("sentinel verification failed:",h)}).finally(()=>{_(ct,!1)})}}function ki(n){var g;const u=n.target;R()&&u&&!a(j).contains(u)&&(a(A)===w.VERIFIED&&ne()===!1||a(A)===w.VERIFIED&&ne()==="focus"&&!((g=a(F))!=null&&g.matches(":focus-within"))||o()==="off"&&a(A)===w.UNVERIFIED)&&zt()}function Ai(){R()&&a(A)!==w.UNVERIFIED&&Jt()}function dl(n){for(const u of Xe)typeof u.onErrorChange=="function"&&u.onErrorChange(a(ft))}function Ii(n){a(A)===w.UNVERIFIED?Ue():R()&&ne()==="focus"&&a(A)===w.VERIFIED&&Cr()}function Ri(n){var p;const u=n.target;u!=null&&u.hasAttribute("data-code-challenge-form")||(_(Yt,n.submitter,!0),a(F)&&o()==="onsubmit"?((p=a(Yt))==null||p.blur(),a(A)===w.UNVERIFIED?(n.preventDefault(),n.stopPropagation(),Ue().then(()=>{Oi(a(Yt))})):a(A)!==w.VERIFIED&&(n.preventDefault(),n.stopPropagation(),a(A)===w.VERIFYING&&$i())):a(F)&&R()&&o()==="off"&&a(A)===w.UNVERIFIED&&(n.preventDefault(),n.stopPropagation(),Cr()))}function Si(){dt()}function $i(){a(A)===w.VERIFYING&&a(U).waitAlert&&alert(a(U).waitAlert)}function Ti(){a(Ke)?a(Ke).paused?(a(Ke).currentTime=0,a(Ke).play()):a(Ke).pause():(_(Kr,!0),requestAnimationFrame(()=>{var n;(n=a(Ke))==null||n.play()}))}function hl(n){for(const u of Xe)typeof u.onStateChange=="function"&&u.onStateChange(a(A));R()&&a(A)!==w.UNVERIFIED&&requestAnimationFrame(()=>{Jt()}),_(Gt,a(A)===w.VERIFIED),xe()&&a(pe)&&(a(A)!==w.UNVERIFIED?Cr():zt())}function Di(){R()&&Jt()}function Ni(n){return JSON.parse(n)}function Li(n){var p;const u=new URLSearchParams((p=n.split("?"))==null?void 0:p[1]),g=u.get("expires")||u.get("expire");if(g){const h=new Date(+g*1e3),E=isNaN(h.getTime())?0:h.getTime()-Date.now();E>0&&Xr(E)}else Le&&(clearTimeout(Le),Le=null)}async function vl(n){if(!se())throw new Error("Attribute verifyurl not set.");I("requesting server verification from",se());const u={payload:n};if(Ne()!==!1){const{blockedCountries:h,classifier:E,disableRules:k,email:W,expectedLanguages:q,expectedCountries:ie,fields:de,ipAddress:vt,text:It,timeZone:gt}=nl();u.blockedCountries=h,u.classifier=E,u.disableRules=k,u.email=W===!1?void 0:rl(W),u.expectedCountries=ie,u.expectedLanguages=q||(bi?[bi]:void 0),u.fields=de===!1?void 0:Ci(de),u.ipAddress=vt===!1?void 0:vt||"auto",u.text=It,u.timeZone=gt===!1?void 0:gt||di()}const g=await wi()(se(),{body:JSON.stringify(u),headers:{"content-type":"application/json"},method:"POST"});if(!g||!(g instanceof Response))throw new Error("Custom fetch function did not return a response.");if(g.status!==200)throw new Error(`Server responded with ${g.status}.`);const p=await g.json();if(p!=null&&p.payload&&_(Pe,p.payload,!0),Je("serververification",p),f()&&p.classification==="BAD")throw new Error("SpamFilter returned negative classification.")}async function Pi(n,u){if(!se())throw new Error("Attribute verifyurl not set.");I("requesting sentinel verification from",se());const g={code:u,payload:n};st()&&(g.fields=st().fields?Ci():void 0,g.timeZone=st().timeZone?di():void 0);const p=await fetch(se(),{body:JSON.stringify(g),headers:{"content-type":"application/json"},method:"POST"});if(!p||!(p instanceof Response))throw new Error("Fetch function did not return a response.");if(p.status!==200)throw new Error(`Server responded with ${p.status}.`);const h=await p.json();return h!=null&&h.payload&&_(Pe,h.payload,!0),Je("sentinelverification",h),h}function Oi(n){var u;a(F)&&"requestSubmit"in a(F)?a(F).requestSubmit(n):(u=a(F))!=null&&u.reportValidity()&&(n?n.click():a(F).submit())}function Xr(n){I("expire",n),Le&&(clearTimeout(Le),Le=null),n<1?yi():Le=setTimeout(yi,n)}function Fi(n){I("floating",n),R()!==n&&(a(j).style.left="",a(j).style.top=""),R(n===!0||n===""?"auto":n===!1||n==="false"?void 0:R()),R()?(o()||o("onsubmit"),document.addEventListener("scroll",Ai),document.addEventListener("click",ki),window.addEventListener("resize",Di)):o()==="onsubmit"&&o(void 0)}function Mi(n){var u,g;if(I("overlay",n),xe(n),n){if(o()||o("onsubmit"),a(pe)&&a(j).parentElement&&a(pe).replaceWith(a(j).parentElement),(g=(u=a(j))==null?void 0:u.parentElement)!=null&&g.parentElement){_(pe,document.createElement("div"),!0),a(j).parentElement.parentElement.appendChild(a(pe));const p=document.createElement("div"),h=document.createElement("button");h.type="button",h.innerHTML="×",h.addEventListener("click",E=>{E.preventDefault(),dt()}),a(pe).classList.add("altcha-overlay-backdrop"),h.classList.add("altcha-overlay-close-button"),p.classList.add("altcha-overlay"),a(pe).append(p),p.append(h),Bt()&&p.append(...document.querySelectorAll(Bt())),p.append(a(j).parentElement)}}else a(pe)&&a(j).parentElement&&(a(pe).replaceWith(a(j).parentElement),a(j).style.display="block")}function Vi(n){if(!n.algorithm)throw new Error("Invalid challenge. Property algorithm is missing.");if(n.signature===void 0)throw new Error("Invalid challenge. Property signature is missing.");if(!mi.includes(n.algorithm.toUpperCase()))throw new Error(`Unknown algorithm value. Allowed values: ${mi.join(", ")}`);if(!n.challenge||n.challenge.length<40)throw new Error("Challenge is too short. Min. 40 chars.");if(!n.salt||n.salt.length<10)throw new Error("Salt is too short. Min. 10 chars.")}async function Ui(n){let u=null,g=null;if("Worker"in window){try{u=gl(n,n.maxNumber||n.maxnumber||lt()),_(ut,u.controller,!0),g=await u.promise}catch(p){I(p)}finally{_(ut,null)}if(g===null||(g==null?void 0:g.number)!==void 0||"obfuscated"in n)return{data:n,solution:g}}if("obfuscated"in n){const p=await $a(n.obfuscated,n.key,n.maxNumber||n.maxnumber);return{data:n,solution:await p.promise}}u=Ia(n.challenge,n.salt,n.algorithm,n.maxNumber||n.maxnumber||lt()),_(ut,u.controller,!0);try{g=await u.promise}catch(p){I(p)}finally{_(ut,null)}return{data:n,solution:g}}function gl(n,u=typeof ye()=="number"?ye():n.maxNumber||n.maxnumber||lt(),g=Math.ceil(xt())){const p=new AbortController,h=[];g=Math.min(16,u,Math.max(1,g));for(let W=0;W<g;W++)h.push(altchaCreateWorker(Ht()));const E=Math.ceil(u/g);return{promise:(async()=>{const W=await Promise.all(h.map((q,ie)=>{const de=ie*E;return p.signal.addEventListener("abort",()=>{q.postMessage({type:"abort"})}),new Promise(vt=>{q.addEventListener("message",It=>{if(It.data)for(const gt of h)gt!==q&>.postMessage({type:"abort"});vt(It.data)}),q.postMessage({payload:n,max:de+E,start:de,type:"work"})})}));for(const q of h)q.terminate();return W.find(q=>!!q)||null})(),controller:p}}async function Zt(){if(!ze()){Oe(w.ERROR);return}const n=Xe.find(u=>u.constructor.pluginName==="obfuscation");if(!n||!("clarify"in n)){Oe(w.ERROR),I("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");return}if("clarify"in n&&typeof n.clarify=="function")return n.clarify()}function ji(n){n.obfuscated!==void 0&&ze(n.obfuscated),n.auto!==void 0&&(o(n.auto),o()==="onload"&&(ze()?Zt():Ue())),n.blockspam!==void 0&&f(!!n.blockspam),n.customfetch!==void 0&&b(n.customfetch),n.floatinganchor!==void 0&&re(n.floatinganchor),n.delay!==void 0&&m(n.delay),n.floatingoffset!==void 0&&ce(n.floatingoffset),n.floating!==void 0&&Fi(n.floating),n.expire!==void 0&&(Xr(n.expire),B(n.expire)),n.challenge&&(c(typeof n.challenge=="string"?n.challenge:JSON.stringify(n.challenge)),Vi(a(wr))),n.challengeurl!==void 0&&s(n.challengeurl),n.debug!==void 0&&v(!!n.debug),n.hidefooter!==void 0&&Ve(!!n.hidefooter),n.hidelogo!==void 0&&H(!!n.hidelogo),n.language!==void 0&&Ct(Ei(l(),[n.language])),n.maxnumber!==void 0&<(+n.maxnumber),n.mockerror!==void 0&&qt(!!n.mockerror),n.name!==void 0&&at(n.name),n.overlaycontent!==void 0&&Bt(n.overlaycontent),n.overlay!==void 0&&Mi(n.overlay),n.refetchonexpire!==void 0&&O(!n.refetchonexpire),n.disablerefetchonexpire!==void 0&&O(!n.disablerefetchonexpire),n.sentinel!==void 0&&typeof n.sentinel=="object"&&st(n.sentinel),n.spamfilter!==void 0&&Ne(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&&ye(typeof n.test=="number"?n.test:!!n.test),n.verifyurl!==void 0&&se(n.verifyurl),n.workers!==void 0&&xt(+n.workers),n.workerurl!==void 0&&Ht(n.workerurl)}function qi(){return{auto:o(),blockspam:f(),challengeurl:s(),debug:v(),delay:m(),disableautofocus:y(),disablerefetchonexpire:O(),expire:B(),floating:R(),floatinganchor:re(),floatingoffset:ce(),hidefooter:Ve(),hidelogo:H(),name:at(),maxnumber:lt(),mockerror:qt(),obfuscated:ze(),overlay:xe(),refetchonexpire:!O(),spamfilter:Ne(),strings:a(U),test:ye(),verifyurl:se(),workers:xt(),workerurl:Ht()}}function Bi(){return a(kt)}function pl(n){return Xe.find(u=>u.constructor.pluginName===n)}function Hi(){return a(A)}function zt(){a(j).style.display="none",xe()&&a(pe)&&(a(pe).style.display="none")}function Jt(n=20){var u;if(a(j))if(a(kt)||_(kt,(re()?document.querySelector(re()):(u=a(F))==null?void 0:u.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||a(F),!0),a(kt)){const g=parseInt(ce(),10)||12,p=a(kt).getBoundingClientRect(),h=a(j).getBoundingClientRect(),E=document.documentElement.clientHeight,k=document.documentElement.clientWidth,W=R()==="auto"?p.bottom+h.height+g+n>E:R()==="top",q=Math.max(n,Math.min(k-n-h.width,p.left+p.width/2-h.width/2));if(W?a(j).style.top=`${p.top-(h.height+g)}px`:a(j).style.top=`${p.bottom+g}px`,a(j).style.left=`${q}px`,a(j).setAttribute("data-floating",W?"top":"bottom"),a(Wt)){const ie=a(Wt).getBoundingClientRect();a(Wt).style.left=p.left-q+p.width/2-ie.width/2+"px"}}else I("unable to find floating anchor element")}function dt(n=w.UNVERIFIED,u=null){a(ut)&&(a(ut).abort(),_(ut,null)),_(Gt,!1),_(Pe,null),_(Z,null),_(Kr,!1),_(Q,null),Oe(n,u)}function Gi(n){_(kt,n,!0)}function Oe(n,u=null){_(A,n,!0),_(ft,u,!0),Je("statechange",{payload:a(Pe),state:a(A)})}function Cr(){a(j).style.display="block",R()&&Jt(),xe()&&a(pe)&&(a(pe).style.display="flex")}async function Ue(){return dt(w.VERIFYING),await new Promise(n=>setTimeout(n,m()||0)),tl().then(n=>(Vi(n),I("challenge",n),Ui(n))).then(({data:n,solution:u})=>{var g;if(I("solution",u),!u||n&&"challenge"in n&&!("clearText"in u)){if((u==null?void 0:u.number)!==void 0&&"challenge"in n)if(se()&&"codeChallenge"in n)["INPUT","BUTTON","SELECT","TEXTAREA"].includes(((g=document.activeElement)==null?void 0:g.tagName)||"")&&y()===!1&&document.activeElement.blur(),_(Z,{challenge:n,solution:u},!0);else{if(se()&&st()!==void 0)return Pi(Er(n,u));if(se())return vl(Er(n,u));_(Pe,Er(n,u),!0),I("payload",a(Pe))}else if(a(A)!==w.EXPIRED)throw I("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),new Error("Unexpected result returned.")}}).then(()=>{a(Z)?(Oe(w.CODE),qr().then(()=>{Je("code",{codeChallenge:a(Z)})})):a(Pe)&&(Oe(w.VERIFIED),I("verified"),qr().then(()=>{Je("verified",{payload:a(Pe)}),xe()&&zt()}))}).catch(n=>{I(n),Oe(w.ERROR,n.message)})}var Wi=za(),Yi=Nt(Wi);sa(Yi,t,"default",{});var At=K(Yi,2),Qr=J(At),xr=J(Qr);let Zi;var zi=J(xr);{var ml=n=>{Zr(n)};X(zi,n=>{a(A)===w.VERIFYING&&n(ml)})}var ht=K(zi,2);ri(ht),ht.__change=[La,A,Ne,F,Gt,ze,Zt,Ue],pr(ht,n=>_(Jr,n),()=>a(Jr)),z(xr);var kr=K(xr,2),bl=J(kr);{var _l=n=>{var u=gr(),g=Nt(u);ot(g,()=>a(U).verified),G(n,u)},yl=(n,u)=>{{var g=h=>{var E=gr(),k=Nt(E);ot(k,()=>a(U).verifying),G(h,E)},p=(h,E)=>{{var k=q=>{var ie=gr(),de=Nt(ie);ot(de,()=>a(U).verificationRequired),G(q,ie)},W=q=>{var ie=gr(),de=Nt(ie);ot(de,()=>a(U).label),G(q,ie)};X(h,q=>{a(A)===w.CODE?q(k):q(W,!1)},E)}};X(n,h=>{a(A)===w.VERIFYING?h(g):h(p,!1)},u)}};X(bl,n=>{a(A)===w.VERIFIED?n(_l):n(yl,!1)})}z(kr);var Ji=K(kr,2);{var wl=n=>{var u=Oa();ri(u),Re(()=>{$(u,"name",at()),ha(u,a(Pe))}),G(n,u)};X(Ji,n=>{a(A)===w.VERIFIED&&n(wl)})}var Ki=K(Ji,2);{var El=n=>{var u=Fa(),g=J(u);$(g,"href",Xa),z(u),Re(()=>$(g,"aria-label",a(U).ariaLinkLabel)),G(n,u)};X(Ki,n=>{(H()!==!0||a(zr))&&n(El)})}var Cl=K(Ki,2);{var xl=n=>{var u=Ba(),g=K(J(u),2),p=J(g),h=K(p,2);ta(h,!y()),h.__keydown=[Da,Ti];var E=K(h,2),k=J(E),W=J(k);{var q=ke=>{var ee=ja();ee.__click=Ti;var Ar=J(ee);{var Kt=Rt=>{Zr(Rt,()=>20)},Dl=(Rt,Nl)=>{{var Ll=St=>{var en=Ma();G(St,en)},Pl=(St,en)=>{{var Ol=$t=>{var tn=Va();G($t,tn)},Fl=$t=>{var tn=Ua();G($t,tn)};X(St,$t=>{a(Q)===te.PLAYING?$t(Ol):$t(Fl,!1)},en)}};X(Rt,St=>{a(Q)===te.ERROR?St(Ll):St(Pl,!1)},Nl)}};X(Ar,Rt=>{a(Q)===te.LOADING?Rt(Kt):Rt(Dl,!1)})}z(ee),Re(()=>{$(ee,"title",a(U).getAudioChallenge),ee.disabled=a(Q)===te.LOADING||a(Q)===te.ERROR||a(ct),$(ee,"aria-label",a(Q)===te.LOADING?a(U).loading:a(U).getAudioChallenge)}),G(ke,ee)};X(W,ke=>{a(Z).challenge.codeChallenge.audio&&ke(q)})}var ie=K(W,2);ie.__click=[Na,Ue],z(k);var de=K(k,2),vt=J(de);{var It=ke=>{Zr(ke,()=>16)};X(vt,ke=>{a(ct)&&ke(It)})}var gt=K(vt);z(de),z(E);var $l=K(E,2);{var Tl=ke=>{var ee=qa(),Ar=J(ee);z(ee),pr(ee,Kt=>_(Ke,Kt),()=>a(Ke)),Re(Kt=>$(Ar,"src",Kt),[()=>xi(a(Z).challenge.codeChallenge.audio,{language:Ze()})]),Ye("loadstart",ee,sl),Ye("canplay",ee,ll),Ye("pause",ee,fl),Ye("playing",ee,ul),Ye("ended",ee,ol),Ye("error",Ar,al),G(ke,ee)};X($l,ke=>{a(Z).challenge.codeChallenge.audio&&a(Kr)&&ke(Tl)})}z(g),z(u),Re(()=>{$(u,"aria-label",a(U).verificationRequired),$(p,"src",a(Z).challenge.codeChallenge.image),$(h,"minlength",a(Z).challenge.codeChallenge.length||1),$(h,"maxlength",a(Z).challenge.codeChallenge.length),$(h,"placeholder",a(U).enterCode),$(h,"aria-label",a(Q)===te.LOADING?a(U).loading:a(Q)===te.PLAYING?"":a(U).enterCodeAria),$(h,"aria-live",a(Q)?"assertive":"polite"),$(h,"aria-busy",a(Q)===te.LOADING),h.disabled=a(ct),$(ie,"aria-label",a(U).reload),$(ie,"title",a(U).reload),ie.disabled=a(ct),de.disabled=a(ct),$(de,"aria-label",a(U).verify),oa(gt,` ${a(U).verify??""}`)}),Ye("submit",g,cl,!0),G(n,u)};X(Cl,n=>{var u;(u=a(Z))!=null&&u.challenge.codeChallenge&&n(xl)})}z(Qr);var Xi=K(Qr,2);{var kl=n=>{var u=Wa(),g=K(J(u),2);{var p=E=>{var k=Ha(),W=J(k);ot(W,()=>a(U).expired),z(k),Re(()=>$(k,"title",a(ft))),G(E,k)},h=E=>{var k=Ga(),W=J(k);ot(W,()=>a(U).error),z(k),Re(()=>$(k,"title",a(ft))),G(E,k)};X(g,E=>{a(A)===w.EXPIRED?E(p):E(h,!1)})}z(u),G(n,u)};X(Xi,n=>{(a(ft)||a(A)===w.EXPIRED)&&n(kl)})}var Qi=K(Xi,2);{var Al=n=>{var u=Ya(),g=J(u),p=J(g);ot(p,()=>a(U).footer),z(g),z(u),G(n,u)};X(Qi,n=>{a(U).footer&&(Ve()!==!0||a(zr))&&n(Al)})}var Il=K(Qi,2);{var Rl=n=>{var u=Za();pr(u,g=>_(Wt,g),()=>a(Wt)),G(n,u)};X(Il,n=>{R()&&n(Rl)})}z(At),pr(At,n=>_(j,n),()=>a(j)),Re(n=>{$(At,"data-state",a(A)),$(At,"data-floating",R()),$(At,"data-overlay",xe()),Zi=fa(xr,1,"altcha-checkbox",null,Zi,n),$(ht,"id",a(_i)),ht.required=o()!=="onsubmit"&&(!R()||o()!=="off"),$(kr,"for",a(_i))},[()=>({"altcha-checkbox-verifying":a(A)===w.VERIFYING})]),Ye("invalid",ht,$i),ga(ht,()=>a(Gt),n=>_(Gt,n)),G(e,Wi);var Sl=Yn({clarify:Zt,configure:ji,getConfiguration:qi,getFloatingAnchor:Bi,getPlugin:pl,getState:Hi,hide:zt,repositionFloating:Jt,reset:dt,setFloatingAnchor:Gi,setState:Oe,show:Cr,verify:Ue,get auto(){return o()},set auto(n=void 0){o(n),C()},get blockspam(){return f()},set blockspam(n=void 0){f(n),C()},get challengeurl(){return s()},set challengeurl(n=void 0){s(n),C()},get challengejson(){return c()},set challengejson(n=void 0){c(n),C()},get credentials(){return d()},set credentials(n=void 0){d(n),C()},get customfetch(){return b()},set customfetch(n=void 0){b(n),C()},get debug(){return v()},set debug(n=!1){v(n),C()},get delay(){return m()},set delay(n=0){m(n),C()},get disableautofocus(){return y()},set disableautofocus(n=!1){y(n),C()},get refetchonexpire(){return L()},set refetchonexpire(n=!0){L(n),C()},get disablerefetchonexpire(){return O()},set disablerefetchonexpire(n=!L){O(n),C()},get expire(){return B()},set expire(n=void 0){B(n),C()},get floating(){return R()},set floating(n=void 0){R(n),C()},get floatinganchor(){return re()},set floatinganchor(n=void 0){re(n),C()},get floatingoffset(){return ce()},set floatingoffset(n=void 0){ce(n),C()},get floatingpersist(){return ne()},set floatingpersist(n=!1){ne(n),C()},get hidefooter(){return Ve()},set hidefooter(n=!1){Ve(n),C()},get hidelogo(){return H()},set hidelogo(n=!1){H(n),C()},get id(){return De()},set id(n=void 0){De(n),C()},get language(){return Ze()},set language(n=void 0){Ze(n),C()},get name(){return at()},set name(n="altcha"){at(n),C()},get maxnumber(){return lt()},set maxnumber(n=1e6){lt(n),C()},get mockerror(){return qt()},set mockerror(n=!1){qt(n),C()},get obfuscated(){return ze()},set obfuscated(n=void 0){ze(n),C()},get overlay(){return xe()},set overlay(n=void 0){xe(n),C()},get overlaycontent(){return Bt()},set overlaycontent(n=void 0){Bt(n),C()},get plugins(){return yr()},set plugins(n=void 0){yr(n),C()},get sentinel(){return st()},set sentinel(n=void 0){st(n),C()},get spamfilter(){return Ne()},set spamfilter(n=!1){Ne(n),C()},get strings(){return Ct()},set strings(n=void 0){Ct(n),C()},get test(){return ye()},set test(n=!1){ye(n),C()},get verifyurl(){return se()},set verifyurl(n=void 0){se(n),C()},get workers(){return xt()},set workers(n=Math.min(16,navigator.hardwareConcurrency||8)){xt(n),C()},get workerurl(){return Ht()},set workerurl(n=void 0){Ht(n),C()}});return i(),Sl}ia(["change","keydown","click"]),customElements.define("altcha-widget",xa(hi,{blockspam:{type:"Boolean"},debug:{type:"Boolean"},delay:{type:"Number"},disableautofocus:{type:"Boolean"},disablerefetchonexpire:{type:"Boolean"},expire:{type:"Number"},floatingoffset:{type:"Number"},hidefooter:{type:"Boolean"},hidelogo:{type:"Boolean"},maxnumber:{type:"Number"},mockerror:{type:"Boolean"},refetchonexpire:{type:"Boolean"},test:{type:"Boolean"},workers:{type:"Number"},auto:{},challengeurl:{},challengejson:{},credentials:{},customfetch:{},floating:{},floatinganchor:{},floatingpersist:{},id:{},language:{},name:{},obfuscated:{},overlay:{},overlaycontent:{},plugins:{},sentinel:{},spamfilter:{},strings:{},verifyurl:{},workerurl:{}},["default"],["clarify","configure","getConfiguration","getFloatingAnchor","getPlugin","getState","hide","repositionFloating","reset","setFloatingAnchor","setState","show","verify"],!1));const vi='@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)}}';function gi(e,t="__altcha-css"){if(!document.getElementById(t)){const r=document.createElement("style");r.id=t,r.textContent=e,document.head.appendChild(r)}}globalThis.altchaCreateWorker=e=>e?new Worker(new URL(e)):new Xt,gi(vi),gi(vi),S.Altcha=hi,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(st,ut){typeof exports=="object"&&typeof module<"u"?ut(exports):typeof define=="function"&&define.amd?define(["exports"],ut):(st=typeof globalThis<"u"?globalThis:st||self,ut(st.altcha={}))})(this,function(st){"use strict";const ut=`(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,l=0){const o=new AbortController,a=Date.now();return{promise:(async()=>{for(let c=l;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 l="AES-GCM",o=new AbortController,a=Date.now(),s=async()=>{for(let i=n;i<=r;i+=1){if(o.signal.aborted||!c||!u)return null;try{const f=await crypto.subtle.decrypt({name:l,iv:g(i)},c,u);if(f)return{clearText:new TextDecoder().decode(f),took:Date.now()-a}}catch{}}return null};let c=null,u=null;try{u=h(e);const i=await crypto.subtle.digest("SHA-256",d.encode(t));c=await crypto.subtle.importKey("raw",i,l,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:o}}return{promise:s(),controller:o}}let y;onmessage=async e=>{const{type:t,payload:r,start:n,max:l}=e.data;let o=null;if(t==="abort")y?.abort(),y=void 0;else if(t==="work"){if("obfuscated"in r){const{key:a,obfuscated:s}=r||{};o=await m(s,a,l,n)}else{const{algorithm:a,challenge:s,salt:c}=r||{};o=w(s,c,a,l,n)}y=o.controller,o.promise.then(a=>{self.postMessage(a&&{...a,worker:!0})})}}})();
|
|
2
|
+
`,Kr=typeof self<"u"&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",ut],{type:"text/javascript;charset=utf-8"});function Wi(e){let t;try{if(t=Kr&&(self.URL||self.webkitURL).createObjectURL(Kr),!t)throw"";const r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(ut),{name:e?.name})}}const Yi="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Yi);const Zi=1,zi=4,Ji=8,Ki=16,Xi=1,Qi=2,wr="[",Xr="[!",Qr="]",ct={},ie=Symbol(),eo="http://www.w3.org/1999/xhtml",en=!1;function tn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var rn=Array.isArray,to=Array.prototype.indexOf,ro=Array.from,Wt=Object.keys,kt=Object.defineProperty,He=Object.getOwnPropertyDescriptor,no=Object.getOwnPropertyDescriptors,io=Object.prototype,oo=Array.prototype,nn=Object.getPrototypeOf,on=Object.isExtensible;const ft=()=>{};function an(e){for(var t=0;t<e.length;t++)e[t]()}function ao(e,t,r=!1){return e===void 0?r?t():t:e}const ge=2,ln=4,Yt=8,Er=16,$e=32,Ge=64,Zt=128,se=256,zt=512,oe=1024,ye=2048,We=4096,dt=8192,Jt=16384,lo=32768,xr=65536,so=1<<19,sn=1<<20,Cr=1<<21,At=Symbol("$state"),un=Symbol("legacy props"),uo=Symbol("");function co(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ho(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function go(){throw new Error("https://svelte.dev/e/hydration_failed")}function po(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function mo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function _o(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Kt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let L=!1;function ht(e){L=e}let P;function Ne(e){if(e===null)throw Kt(),ct;return P=e}function vt(){return Ne(Pe(P))}function W(e){if(L){if(Pe(P)!==null)throw Kt(),ct;P=e}}function yo(){for(var e=0,t=P;;){if(t.nodeType===8){var r=t.data;if(r===Qr){if(e===0)return t;e-=1}else(r===wr||r===Xr)&&(e+=1)}var i=Pe(t);t.remove(),t=i}}let wo=!1;function Le(e){if(typeof e!="object"||e===null||At in e)return e;const t=nn(e);if(t!==io&&t!==oo)return e;var r=new Map,i=rn(e),l=T(0),a=$,s=c=>{var f=$;xe(a);var d=c();return xe(f),d};return i&&r.set("length",T(e.length)),new Proxy(e,{defineProperty(c,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&mo();var m=r.get(f);return m===void 0?(m=s(()=>T(d.value)),r.set(f,m)):b(m,s(()=>Le(d.value))),!0},deleteProperty(c,f){var d=r.get(f);if(d===void 0)f in c&&(r.set(f,s(()=>T(ie))),kr(l));else{if(i&&typeof f=="string"){var m=r.get("length"),v=Number(f);Number.isInteger(v)&&v<m.v&&b(m,v)}b(d,ie),kr(l)}return!0},get(c,f,d){if(f===At)return e;var m=r.get(f),v=f in c;if(m===void 0&&(!v||He(c,f)?.writable)&&(m=s(()=>T(Le(v?c[f]:ie))),r.set(f,m)),m!==void 0){var _=o(m);return _===ie?void 0:_}return Reflect.get(c,f,d)},getOwnPropertyDescriptor(c,f){var d=Reflect.getOwnPropertyDescriptor(c,f);if(d&&"value"in d){var m=r.get(f);m&&(d.value=o(m))}else if(d===void 0){var v=r.get(f),_=v?.v;if(v!==void 0&&_!==ie)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return d},has(c,f){if(f===At)return!0;var d=r.get(f),m=d!==void 0&&d.v!==ie||Reflect.has(c,f);if(d!==void 0||S!==null&&(!m||He(c,f)?.writable)){d===void 0&&(d=s(()=>T(m?Le(c[f]):ie)),r.set(f,d));var v=o(d);if(v===ie)return!1}return m},set(c,f,d,m){var v=r.get(f),_=f in c;if(i&&f==="length")for(var w=d;w<v.v;w+=1){var F=r.get(w+"");F!==void 0?b(F,ie):w in c&&(F=s(()=>T(ie)),r.set(w+"",F))}v===void 0?(!_||He(c,f)?.writable)&&(v=s(()=>T(void 0)),b(v,s(()=>Le(d))),r.set(f,v)):(_=v.v!==ie,b(v,s(()=>Le(d))));var M=Reflect.getOwnPropertyDescriptor(c,f);if(M?.set&&M.set.call(m,d),!_){if(i&&typeof f=="string"){var U=r.get("length"),I=Number(f);Number.isInteger(I)&&I>=U.v&&b(U,I+1)}kr(l)}return!0},ownKeys(c){o(l);var f=Reflect.ownKeys(c).filter(v=>{var _=r.get(v);return _===void 0||_.v!==ie});for(var[d,m]of r)m.v!==ie&&!(d in c)&&f.push(d);return f},setPrototypeOf(){_o()}})}function kr(e,t=1){b(e,e.v+t)}var cn,fn,dn,hn;function Ar(){if(cn===void 0){cn=window,fn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;dn=He(t,"firstChild").get,hn=He(t,"nextSibling").get,on(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),on(r)&&(r.__t=void 0)}}function Xt(e=""){return document.createTextNode(e)}function de(e){return dn.call(e)}function Pe(e){return hn.call(e)}function Y(e,t){if(!L)return de(e);var r=de(P);return r===null&&(r=P.appendChild(Xt())),Ne(r),r}function It(e,t){if(!L){var r=de(e);return r instanceof Comment&&r.data===""?Pe(r):r}return P}function Z(e,t=1,r=!1){let i=L?P:e;for(var l;t--;)l=i,i=Pe(i);if(!L)return i;var a=i?.nodeType;if(r&&a!==3){var s=Xt();return i===null?l?.after(s):i.before(s),Ne(s),s}return Ne(i),i}function Eo(e){e.textContent=""}function vn(e){return e===this.v}function gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ir(e){return!gn(e,this.v)}function Qt(e){var t=ge|ye,r=$!==null&&($.f&ge)!==0?$:null;return S===null||r!==null&&(r.f&se)!==0?t|=se:S.f|=sn,{ctx:te,deps:null,effects:null,equals:vn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??S}}function Rt(e){const t=Qt(e);return Sn(t),t}function xo(e){const t=Qt(e);return t.equals=Ir,t}function pn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Oe(t[r])}}function Co(e){for(var t=e.parent;t!==null;){if((t.f&ge)===0)return t;t=t.parent}return null}function mn(e){var t,r=S;Fe(Co(e));try{pn(e),t=Pn(e)}finally{Fe(r)}return t}function _n(e){var t=mn(e),r=(Me||(e.f&se)!==0)&&e.deps!==null?We:oe;pe(e,r),e.equals(t)||(e.v=t,e.wv=Dn())}function ko(e){S===null&&$===null&&ho(),$!==null&&($.f&se)!==0&&S===null&&fo(),Tt&&co()}function Ao(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ye(e,t,r,i=!0){var l=S,a={ctx:te,deps:null,nodes_start:null,nodes_end:null,f:e|ye,first:null,fn:t,last:null,next:null,parent:l,prev:null,teardown:null,transitions:null,wv:0};if(r)try{Pr(a),a.f|=lo}catch(f){throw Oe(a),f}else t!==null&&ar(a);var s=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(sn|Zt))===0;if(!s&&i&&(l!==null&&Ao(a,l),$!==null&&($.f&ge)!==0)){var c=$;(c.effects??=[]).push(a)}return a}function Rr(e){const t=Ye(Yt,null,!1);return pe(t,oe),t.teardown=e,t}function $r(e){ko();var t=S!==null&&(S.f&$e)!==0&&te!==null&&!te.m;if(t){var r=te;(r.e??=[]).push({fn:e,effect:S,reaction:$})}else{var i=Sr(e);return i}}function Io(e){const t=Ye(Ge,e,!0);return()=>{Oe(t)}}function Ro(e){const t=Ye(Ge,e,!0);return(r={})=>new Promise(i=>{r.outro?Nr(t,()=>{Oe(t),i(void 0)}):(Oe(t),i(void 0))})}function Sr(e){return Ye(ln,e,!1)}function Tr(e){return Ye(Yt,e,!0)}function we(e,t=[],r=Qt){const i=t.map(r);return bn(()=>e(...i.map(o)))}function bn(e,t=0){return Ye(Yt|Er|t,e,!0)}function Dr(e,t=!0){return Ye(Yt|$e,e,!0,t)}function yn(e){var t=e.teardown;if(t!==null){const r=Tt,i=$;$n(!0),xe(null);try{t.call(null)}finally{$n(r),xe(i)}}}function wn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;(r.f&Ge)!==0?r.parent=null:Oe(r,t),r=i}}function $o(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&$e)===0&&Oe(t),t=r}}function Oe(e,t=!0){var r=!1;(t||(e.f&so)!==0)&&e.nodes_start!==null&&(En(e.nodes_start,e.nodes_end),r=!0),wn(e,t&&!r),or(e,0),pe(e,Jt);var i=e.transitions;if(i!==null)for(const a of i)a.stop();yn(e);var l=e.parent;l!==null&&l.first!==null&&xn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function En(e,t){for(;e!==null;){var r=e===t?null:Pe(e);e.remove(),e=r}}function xn(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function Nr(e,t){var r=[];Cn(e,r,!0),So(r,()=>{Oe(e),t&&t()})}function So(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var l of e)l.out(i)}else t()}function Cn(e,t,r){if((e.f&dt)===0){if(e.f^=dt,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var i=e.first;i!==null;){var l=i.next,a=(i.f&xr)!==0||(i.f&$e)!==0;Cn(i,t,a?r:!1),i=l}}}function kn(e){An(e,!0)}function An(e,t){if((e.f&dt)!==0){e.f^=dt,(e.f&oe)===0&&(e.f^=oe),Nt(e)&&(pe(e,ye),ar(e));for(var r=e.first;r!==null;){var i=r.next,l=(r.f&xr)!==0||(r.f&$e)!==0;An(r,l?t:!1),r=i}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}const To=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let $t=[],St=[];function In(){var e=$t;$t=[],an(e)}function Rn(){var e=St;St=[],an(e)}function Lr(e){$t.length===0&&queueMicrotask(In),$t.push(e)}function Do(e){St.length===0&&To(Rn),St.push(e)}function No(){$t.length>0&&In(),St.length>0&&Rn()}let er=!1,tr=!1,rr=null,Ze=!1,Tt=!1;function $n(e){Tt=e}let Dt=[],Il=[],$=null,Ee=!1;function xe(e){$=e}let S=null;function Fe(e){S=e}let Se=null;function Sn(e){$!==null&&$.f&Cr&&(Se===null?Se=[e]:Se.push(e))}let ee=null,ue=0,he=null;function Lo(e){he=e}let Tn=1,nr=0,Me=!1;function Dn(){return++Tn}function Nt(e){var t=e.f;if((t&ye)!==0)return!0;if((t&We)!==0){var r=e.deps,i=(t&se)!==0;if(r!==null){var l,a,s=(t&zt)!==0,c=i&&S!==null&&!Me,f=r.length;if(s||c){var d=e,m=d.parent;for(l=0;l<f;l++)a=r[l],(s||!a?.reactions?.includes(d))&&(a.reactions??=[]).push(d);s&&(d.f^=zt),c&&m!==null&&(m.f&se)===0&&(d.f^=se)}for(l=0;l<f;l++)if(a=r[l],Nt(a)&&_n(a),a.wv>e.wv)return!0}(!i||S!==null&&!Me)&&pe(e,oe)}return!1}function Po(e,t){for(var r=t;r!==null;){if((r.f&Zt)!==0)try{r.fn(e);return}catch{r.f^=Zt}r=r.parent}throw er=!1,e}function Nn(e){return(e.f&Jt)===0&&(e.parent===null||(e.parent.f&Zt)===0)}function ir(e,t,r,i){if(er){if(r===null&&(er=!1),Nn(t))throw e;return}if(r!==null&&(er=!0),Po(e,t),Nn(t))throw e}function Ln(e,t,r=!0){var i=e.reactions;if(i!==null)for(var l=0;l<i.length;l++){var a=i[l];Se?.includes(e)||((a.f&ge)!==0?Ln(a,t,!1):t===a&&(r?pe(a,ye):(a.f&oe)!==0&&pe(a,We),ar(a)))}}function Pn(e){var t=ee,r=ue,i=he,l=$,a=Me,s=Se,c=te,f=Ee,d=e.f;ee=null,ue=0,he=null,Me=(d&se)!==0&&(Ee||!Ze||$===null),$=(d&($e|Ge))===0?e:null,Se=null,Vn(e.ctx),Ee=!1,nr++,e.f|=Cr;try{var m=(0,e.fn)(),v=e.deps;if(ee!==null){var _;if(or(e,ue),v!==null&&ue>0)for(v.length=ue+ee.length,_=0;_<ee.length;_++)v[ue+_]=ee[_];else e.deps=v=ee;if(!Me)for(_=ue;_<v.length;_++)(v[_].reactions??=[]).push(e)}else v!==null&&ue<v.length&&(or(e,ue),v.length=ue);if(qn()&&he!==null&&!Ee&&v!==null&&(e.f&(ge|We|ye))===0)for(_=0;_<he.length;_++)Ln(he[_],e);return l!==null&&l!==e&&(nr++,he!==null&&(i===null?i=he:i.push(...he))),m}finally{ee=t,ue=r,he=i,$=l,Me=a,Se=s,Vn(c),Ee=f,e.f^=Cr}}function Oo(e,t){let r=t.reactions;if(r!==null){var i=to.call(r,e);if(i!==-1){var l=r.length-1;l===0?r=t.reactions=null:(r[i]=r[l],r.pop())}}r===null&&(t.f&ge)!==0&&(ee===null||!ee.includes(t))&&(pe(t,We),(t.f&(se|zt))===0&&(t.f^=zt),pn(t),or(t,0))}function or(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Oo(e,r[i])}function Pr(e){var t=e.f;if((t&Jt)===0){pe(e,oe);var r=S,i=te,l=Ze;S=e,Ze=!0;try{(t&Er)!==0?$o(e):wn(e),yn(e);var a=Pn(e);e.teardown=typeof a=="function"?a:null,e.wv=Tn;var s=e.deps,c;en&&wo&&e.f&ye}catch(f){ir(f,e,r,i||e.ctx)}finally{Ze=l,S=r}}}function Fo(){try{vo()}catch(e){if(rr!==null)ir(e,rr,null);else throw e}}function On(){var e=Ze;try{var t=0;for(Ze=!0;Dt.length>0;){t++>1e3&&Fo();var r=Dt,i=r.length;Dt=[];for(var l=0;l<i;l++){var a=Vo(r[l]);Mo(a)}Lt.clear()}}finally{tr=!1,Ze=e,rr=null}}function Mo(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if((i.f&(Jt|dt))===0)try{Nt(i)&&(Pr(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?xn(i):i.fn=null))}catch(l){ir(l,i,null,i.ctx)}}}function ar(e){tr||(tr=!0,queueMicrotask(On));for(var t=rr=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(Ge|$e))!==0){if((r&oe)===0)return;t.f^=oe}}Dt.push(t)}function Vo(e){for(var t=[],r=e;r!==null;){var i=r.f,l=(i&($e|Ge))!==0,a=l&&(i&oe)!==0;if(!a&&(i&dt)===0){if((i&ln)!==0)t.push(r);else if(l)r.f^=oe;else try{Nt(r)&&Pr(r)}catch(f){ir(f,r,null,r.ctx)}var s=r.first;if(s!==null){r=s;continue}}var c=r.parent;for(r=r.next;r===null&&c!==null;)r=c.next,c=c.parent}return t}function E(e){for(var t;;){if(No(),Dt.length===0)return t;tr=!0,On()}}async function Or(){await Promise.resolve(),E()}function o(e){var t=e.f,r=(t&ge)!==0;if($!==null&&!Ee){if(!Se?.includes(e)){var i=$.deps;e.rv<nr&&(e.rv=nr,ee===null&&i!==null&&i[ue]===e?ue++:ee===null?ee=[e]:(!Me||!ee.includes(e))&&ee.push(e))}}else if(r&&e.deps===null&&e.effects===null){var l=e,a=l.parent;a!==null&&(a.f&se)===0&&(l.f^=se)}return r&&(l=e,Nt(l)&&_n(l)),Tt&&Lt.has(e)?Lt.get(e):e.v}function ze(e){var t=Ee;try{return Ee=!0,e()}finally{Ee=t}}const Uo=-7169;function pe(e,t){e.f=e.f&Uo|t}const Lt=new Map;function Fn(e,t){var r={f:0,v:e,reactions:null,equals:vn,rv:0,wv:0};return r}function T(e,t){const r=Fn(e);return Sn(r),r}function Fr(e,t=!1){const r=Fn(e);return t||(r.equals=Ir),r}function b(e,t,r=!1){$!==null&&!Ee&&qn()&&($.f&(ge|Er))!==0&&!Se?.includes(e)&&bo();let i=r?Le(t):t;return jo(e,i)}function jo(e,t){if(!e.equals(t)){var r=e.v;Tt?Lt.set(e,t):Lt.set(e,r),e.v=t,(e.f&ge)!==0&&((e.f&ye)!==0&&mn(e),pe(e,(e.f&se)===0?oe:We)),e.wv=Dn(),Mn(e,ye),S!==null&&(S.f&oe)!==0&&(S.f&($e|Ge))===0&&(he===null?Lo([e]):he.push(e))}return t}function Mn(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,l=0;l<i;l++){var a=r[l],s=a.f;(s&ye)===0&&(pe(a,t),(s&(oe|se))!==0&&((s&ge)!==0?Mn(a,We):ar(a)))}}let te=null;function Vn(e){te=e}function Un(e,t=!1,r){var i=te={p:te,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Rr(()=>{i.d=!0})}function jn(e){const t=te;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=S,i=$;t.e=null;try{for(var l=0;l<s.length;l++){var a=s[l];Fe(a.effect),xe(a.reaction),Sr(a.fn)}}finally{Fe(r),xe(i)}}te=t.p,t.m=!0}return e||{}}function qn(){return!0}const qo=["touchstart","touchmove"];function Bo(e){return qo.includes(e)}function Ho(e,t){if(t){const r=document.body;e.autofocus=!0,Lr(()=>{document.activeElement===r&&e.focus()})}}let Bn=!1;function Hn(){Bn||(Bn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Gn(e){var t=$,r=S;xe(null),Fe(null);try{return e()}finally{xe(t),Fe(r)}}function Go(e,t,r,i=r){e.addEventListener(t,()=>Gn(r));const l=e.__on_r;l?e.__on_r=()=>{l(),i(!0)}:e.__on_r=()=>i(!0),Hn()}const Wn=new Set,Mr=new Set;function Wo(e,t,r,i={}){function l(a){if(i.capture||Pt.call(t,a),!a.cancelBubble)return Gn(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Lr(()=>{t.addEventListener(e,l,i)}):t.addEventListener(e,l,i),l}function Ve(e,t,r,i,l){var a={capture:i,passive:l},s=Wo(e,t,r,a);(t===document.body||t===window||t===document)&&Rr(()=>{t.removeEventListener(e,s,a)})}function Yo(e){for(var t=0;t<e.length;t++)Wn.add(e[t]);for(var r of Mr)r(e)}function Pt(e){var t=this,r=t.ownerDocument,i=e.type,l=e.composedPath?.()||[],a=l[0]||e.target,s=0,c=e.__root;if(c){var f=l.indexOf(c);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var d=l.indexOf(t);if(d===-1)return;f<=d&&(s=f)}if(a=l[s]||e.target,a!==t){kt(e,"currentTarget",{configurable:!0,get(){return a||r}});var m=$,v=S;xe(null),Fe(null);try{for(var _,w=[];a!==null;){var F=a.assignedSlot||a.parentNode||a.host||null;try{var M=a["__"+i];if(M!=null&&(!a.disabled||e.target===a))if(rn(M)){var[U,...I]=M;U.apply(a,[e,...I])}else M.call(a,e)}catch(re){_?w.push(re):_=re}if(e.cancelBubble||F===t||F===null)break;a=F}if(_){for(let re of w)queueMicrotask(()=>{throw re});throw _}}finally{e.__root=t,delete e.currentTarget,xe(m),Fe(v)}}}function Vr(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Ce(e,t){var r=S;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function me(e,t){var r=(t&Xi)!==0,i=(t&Qi)!==0,l,a=!e.startsWith("<!>");return()=>{if(L)return Ce(P,null),P;l===void 0&&(l=Vr(a?e:"<!>"+e),r||(l=de(l)));var s=i||fn?document.importNode(l,!0):l.cloneNode(!0);if(r){var c=de(s),f=s.lastChild;Ce(c,f)}else Ce(s,s);return s}}function lr(e,t,r="svg"){var i=!e.startsWith("<!>"),l=`<${r}>${i?e:"<!>"+e}</${r}>`,a;return()=>{if(L)return Ce(P,null),P;if(!a){var s=Vr(l),c=de(s);a=de(c)}var f=a.cloneNode(!0);return Ce(f,f),f}}function sr(){if(L)return Ce(P,null),P;var e=document.createDocumentFragment(),t=document.createComment(""),r=Xt();return e.append(t,r),Ce(t,r),e}function B(e,t){if(L){S.nodes_end=P,vt();return}e!==null&&e.before(t)}function Zo(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Yn(e,t){return Zn(e,t)}function zo(e,t){Ar(),t.intro=t.intro??!1;const r=t.target,i=L,l=P;try{for(var a=de(r);a&&(a.nodeType!==8||a.data!==wr);)a=Pe(a);if(!a)throw ct;ht(!0),Ne(a),vt();const s=Zn(e,{...t,anchor:a});if(P===null||P.nodeType!==8||P.data!==Qr)throw Kt(),ct;return ht(!1),s}catch(s){if(s===ct)return t.recover===!1&&go(),Ar(),Eo(r),ht(!1),Yn(e,t);throw s}finally{ht(i),Ne(l)}}const gt=new Map;function Zn(e,{target:t,anchor:r,props:i={},events:l,context:a,intro:s=!0}){Ar();var c=new Set,f=v=>{for(var _=0;_<v.length;_++){var w=v[_];if(!c.has(w)){c.add(w);var F=Bo(w);t.addEventListener(w,Pt,{passive:F});var M=gt.get(w);M===void 0?(document.addEventListener(w,Pt,{passive:F}),gt.set(w,1)):gt.set(w,M+1)}}};f(ro(Wn)),Mr.add(f);var d=void 0,m=Ro(()=>{var v=r??t.appendChild(Xt());return Dr(()=>{if(a){Un({});var _=te;_.c=a}l&&(i.$$events=l),L&&Ce(v,null),d=e(v,i)||{},L&&(S.nodes_end=P),a&&jn()}),()=>{for(var _ of c){t.removeEventListener(_,Pt);var w=gt.get(_);--w===0?(document.removeEventListener(_,Pt),gt.delete(_)):gt.set(_,w)}Mr.delete(f),v!==r&&v.parentNode?.removeChild(v)}});return Ur.set(d,m),d}let Ur=new WeakMap;function Jo(e,t){const r=Ur.get(e);return r?(Ur.delete(e),r(t)):Promise.resolve()}function z(e,t,[r,i]=[0,0]){L&&r===0&&vt();var l=e,a=null,s=null,c=ie,f=r>0?xr:0,d=!1;const m=(_,w=!0)=>{d=!0,v(w,_)},v=(_,w)=>{if(c===(c=_))return;let F=!1;if(L&&i!==-1){if(r===0){const U=l.data;U===wr?i=0:U===Xr?i=1/0:(i=parseInt(U.substring(1)),i!==i&&(i=c?1/0:-1))}const M=i>r;!!c===M&&(l=yo(),Ne(l),ht(!1),F=!0,i=-1)}c?(a?kn(a):w&&(a=Dr(()=>w(l))),s&&Nr(s,()=>{s=null})):(s?kn(s):w&&(s=Dr(()=>w(l,[r+1,i]))),a&&Nr(a,()=>{a=null})),F&&ht(!0)};bn(()=>{d=!1,t(m),d||v(null,null)},f),L&&(l=P)}function Je(e,t,r=!1,i=!1,l=!1){var a=e,s="";we(()=>{var c=S;if(s===(s=t()??"")){L&&vt();return}if(c.nodes_start!==null&&(En(c.nodes_start,c.nodes_end),c.nodes_start=c.nodes_end=null),s!==""){if(L){P.data;for(var f=vt(),d=f;f!==null&&(f.nodeType!==8||f.data!=="");)d=f,f=Pe(f);if(f===null)throw Kt(),ct;Ce(P,d),a=Ne(f);return}var m=s+"";r?m=`<svg>${m}</svg>`:i&&(m=`<math>${m}</math>`);var v=Vr(m);if((r||i)&&(v=de(v)),Ce(de(v),v.lastChild),r||i)for(;de(v);)a.before(de(v));else a.before(v)}})}function Ko(e,t,r,i,l){L&&vt();var a=t.$$slots?.[r],s=!1;a===!0&&(a=t.children,s=!0),a===void 0||a(e,s?()=>i:i)}const zn=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function Xo(e,t,r){var i=""+e;if(r){for(var l in r)if(r[l])i=i?i+" "+l:l;else if(i.length)for(var a=l.length,s=0;(s=i.indexOf(l,s))>=0;){var c=s+a;(s===0||zn.includes(i[s-1]))&&(c===i.length||zn.includes(i[c]))?i=(s===0?"":i.substring(0,s))+i.substring(c+1):s=c}}return i===""?null:i}function Qo(e,t,r,i,l,a){var s=e.__className;if(L||s!==r||s===void 0){var c=Xo(r,i,a);(!L||c!==e.getAttribute("class"))&&(c==null?e.removeAttribute("class"):e.className=c),e.__className=r}else if(a&&l!==a)for(var f in a){var d=!!a[f];(l==null||d!==!!l[f])&&e.classList.toggle(f,d)}return a}const ea=Symbol("is custom element"),ta=Symbol("is html");function Jn(e){if(L){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var i=e.value;R(e,"value",null),e.value=i}if(e.hasAttribute("checked")){var l=e.checked;R(e,"checked",null),e.checked=l}}};e.__on_r=r,Do(r),Hn()}}function ra(e,t){var r=Kn(e);r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function R(e,t,r,i){var l=Kn(e);L&&(l[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||l[t]!==(l[t]=r)&&(t==="loading"&&(e[uo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&na(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Kn(e){return e.__attributes??={[ea]:e.nodeName.includes("-"),[ta]:e.namespaceURI===eo}}var Xn=new Map;function na(e){var t=Xn.get(e.nodeName);if(t)return t;Xn.set(e.nodeName,t=[]);for(var r,i=e,l=Element.prototype;l!==i;){r=no(i);for(var a in r)r[a].set&&t.push(a);i=nn(i)}return t}function ia(e,t,r=t){Go(e,"change",i=>{var l=i?e.defaultChecked:e.checked;r(l)}),(L&&e.defaultChecked!==e.checked||ze(t)==null)&&r(e.checked),Tr(()=>{var i=t();e.checked=!!i})}function Qn(e,t){return e===t||e?.[At]===t}function ur(e={},t,r,i){return Sr(()=>{var l,a;return Tr(()=>{l=a,a=[],ze(()=>{e!==r(...a)&&(t(e,...a),l&&Qn(r(...l),e)&&t(null,...l))})}),()=>{Lr(()=>{a&&Qn(r(...a),e)&&t(null,...a)})}}),e}function ei(e){te===null&&tn(),$r(()=>{const t=ze(e);if(typeof t=="function")return t})}function oa(e){te===null&&tn(),ei(()=>()=>ze(e))}function ti(e,t,r){if(e==null)return t(void 0),ft;const i=ze(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}const pt=[];function aa(e,t=ft){let r=null;const i=new Set;function l(c){if(gn(e,c)&&(e=c,r)){const f=!pt.length;for(const d of i)d[1](),pt.push(d,e);if(f){for(let d=0;d<pt.length;d+=2)pt[d][0](pt[d+1]);pt.length=0}}}function a(c){l(c(e))}function s(c,f=ft){const d=[c,f];return i.add(d),i.size===1&&(r=t(l,a)||ft),c(e),()=>{i.delete(d),i.size===0&&r&&(r(),r=null)}}return{set:l,update:a,subscribe:s}}function cr(e){let t;return ti(e,r=>t=r)(),t}let fr=!1,jr=Symbol();function la(e,t,r){const i=r[t]??={store:null,source:Fr(void 0),unsubscribe:ft};if(i.store!==e&&!(jr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=ft;else{var l=!0;i.unsubscribe=ti(e,a=>{l?i.source.v=a:b(i.source,a)}),l=!1}return e&&jr in r?cr(e):o(i.source)}function sa(){const e={};function t(){Rr(()=>{for(var r in e)e[r].unsubscribe();kt(e,jr,{enumerable:!1,value:!0})})}return[e,t]}function ua(e){var t=fr;try{return fr=!1,[e(),fr]}finally{fr=t}}function ri(e){return e.ctx?.d??!1}function x(e,t,r,i){var l=(r&Zi)!==0,a=!0,s=(r&Ji)!==0,c=(r&Ki)!==0,f=!1,d;s?[d,f]=ua(()=>e[t]):d=e[t];var m=At in e||un in e,v=s&&(He(e,t)?.set??(m&&t in e&&(j=>e[t]=j)))||void 0,_=i,w=!0,F=!1,M=()=>(F=!0,w&&(w=!1,c?_=ze(i):_=i),_);d===void 0&&i!==void 0&&(v&&a&&po(),d=M(),v&&v(d));var U;if(U=()=>{var j=e[t];return j===void 0?M():(w=!0,F=!1,j)},(r&zi)===0)return U;if(v){var I=e.$$legacy;return function(j,ce){return arguments.length>0?((!ce||I||f)&&v(ce?U():j),j):U()}}var re=!1,Te=Fr(d),Q=Qt(()=>{var j=U(),ce=o(Te);return re?(re=!1,ce):Te.v=j});return s&&o(Q),l||(Q.equals=Ir),function(j,ce){if(arguments.length>0){const Ke=ce?o(Q):s?Le(j):j;if(!Q.equals(Ke)){if(re=!0,b(Te,Ke),F&&_!==void 0&&(_=Ke),ri(Q))return j;ze(()=>o(Q))}return j}return ri(Q)?Q.v:o(Q)}}function ca(e){return new fa(e)}class fa{#t;#e;constructor(t){var r=new Map,i=(a,s)=>{var c=Fr(s);return r.set(a,c),c};const l=new Proxy({...t.props||{},$$events:{}},{get(a,s){return o(r.get(s)??i(s,Reflect.get(a,s)))},has(a,s){return s===un?!0:(o(r.get(s)??i(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,c){return b(r.get(s)??i(s,c),c),Reflect.set(a,s,c)}});this.#e=(t.hydrate?zo:Yn)(t.component,{target:t.target,anchor:t.anchor,props:l,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&E(),this.#t=l.$$events;for(const a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||kt(this,a,{get(){return this.#e[a]},set(s){this.#e[a]=s},enumerable:!0});this.#e.$set=a=>{Object.assign(l,a)},this.#e.$destroy=()=>{Jo(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const i=(...l)=>r.call(this,...l);return this.#t[t].push(i),()=>{this.#t[t]=this.#t[t].filter(l=>l!==i)}}$destroy(){this.#e.$destroy()}}let ni;typeof HTMLElement=="function"&&(ni=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const i=this.$$l_u.get(t);i&&(i(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(i){return l=>{const a=document.createElement("slot");i!=="default"&&(a.name=i),B(l,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=da(this);for(const i of this.$$s)i in r&&(i==="default"&&!this.$$d.children?(this.$$d.children=e(i),t.default=!0):t[i]=e(i));for(const i of this.attributes){const l=this.$$g_p(i.name);l in this.$$d||(this.$$d[l]=dr(l,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=ca({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Io(()=>{Tr(()=>{this.$$r=!0;for(const i of Wt(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const l=dr(i,this.$$d[i],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,l)}this.$$r=!1})});for(const i in this.$$l)for(const l of this.$$l[i]){const a=this.$$c.$on(i,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=dr(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Wt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function dr(e,t,r,i){const l=r[e]?.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function da(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ha(e,t,r,i,l,a){let s=class extends ni{constructor(){super(e,r,l),this.$$p_d=t}static get observedAttributes(){return Wt(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Wt(t).forEach(c=>{kt(s.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(f){f=dr(c,f,t),this.$$d[c]=f;var d=this.$$c;if(d){var m=He(d,c)?.get;m?d[c]=f:d.$set({[c]:f})}}})}),i.forEach(c=>{kt(s.prototype,c,{get(){return this.$$c?.[c]}})}),e.element=s,s}const ii=new TextEncoder;function va(e){return[...new Uint8Array(e)].map(t=>t.toString(16).padStart(2,"0")).join("")}async function ga(e,t="SHA-256",r=1e5){const i=Date.now().toString(16);e||(e=Math.round(Math.random()*r));const l=await oi(i,e,t);return{algorithm:t,challenge:l,salt:i,signature:""}}async function oi(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 va(await crypto.subtle.digest(r.toUpperCase(),ii.encode(e+t)))}function pa(e,t,r="SHA-256",i=1e6,l=0){const a=new AbortController,s=Date.now();return{promise:(async()=>{for(let f=l;f<=i;f+=1){if(a.signal.aborted)return null;if(await oi(t,f,r)===e)return{number:f,took:Date.now()-s}}return null})(),controller:a}}function ai(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function ma(e){const t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function _a(e,t=12){const r=new Uint8Array(t);for(let i=0;i<t;i++)r[i]=e%256,e=Math.floor(e/256);return r}async function ba(e,t="",r=1e6,i=0){const l="AES-GCM",a=new AbortController,s=Date.now(),c=async()=>{for(let m=i;m<=r;m+=1){if(a.signal.aborted||!f||!d)return null;try{const v=await crypto.subtle.decrypt({name:l,iv:_a(m)},f,d);if(v)return{clearText:new TextDecoder().decode(v),took:Date.now()-s}}catch{}}return null};let f=null,d=null;try{d=ma(e);const m=await crypto.subtle.digest("SHA-256",ii.encode(t));f=await crypto.subtle.importKey("raw",m,l,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:a}}return{promise:c(),controller:a}}var y=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(y||{}),X=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(X||{});globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>cr(globalThis.altchaI18n.store)[e],set:(e,t)=>{Object.assign(cr(globalThis.altchaI18n.store),{[e]:t}),globalThis.altchaI18n.store.set(cr(globalThis.altchaI18n.store))},store:aa({})};const ya={ariaLinkLabel:"Visit Altcha.org",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" target="_blank" aria-label="Visit Altcha.org">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait."};globalThis.altchaI18n.set("en",ya);const qr=(e,t)=>{let r=xo(()=>ao(t?.(),24));var i=Ca();we(()=>{R(i,"width",o(r)),R(i,"height",o(r))}),B(e,i)};function wa(e,t){e.code==="Space"&&(e.preventDefault(),e.stopImmediatePropagation(),t())}function Ea(e,t){e.preventDefault(),t()}function xa(e,t,r,i,l,a,s,c){[y.UNVERIFIED,y.ERROR,y.EXPIRED,y.CODE].includes(o(t))?r()!==!1&&o(i)?.reportValidity()===!1?b(l,!1):a()?s():c():b(l,!0)}var Ca=lr('<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>'),ka=me('<input type="hidden">'),Aa=me('<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>'),Ia=lr('<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>'),Ra=lr('<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>'),$a=lr('<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>'),Sa=me('<button type="button" class="altcha-code-challenge-audio"><!></button>'),Ta=me("<audio hidden autoplay><source></audio>"),Da=me('<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>'),Na=me("<div><!></div>"),La=me("<div><!></div>"),Pa=me('<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>'),Oa=me('<div class="altcha-footer"><div><!></div></div>'),Fa=me('<div class="altcha-anchor-arrow"></div>'),Ma=me('<!> <div class="altcha"><div class="altcha-main"><div><!> <input type="checkbox"></div> <label class="altcha-label"><!></label> <!> <!> <!></div> <!> <!> <!></div>',1);function li(e,t){Un(t,!0);const[r,i]=sa(),l=()=>la(Ua,"$altchaI18nStore",r);let a=x(t,"auto",7,void 0),s=x(t,"blockspam",7,void 0),c=x(t,"challengeurl",7,void 0),f=x(t,"challengejson",7,void 0),d=x(t,"credentials",7,void 0),m=x(t,"customfetch",7,void 0),v=x(t,"debug",7,!1),_=x(t,"delay",7,0),w=x(t,"disableautofocus",7,!1),F=x(t,"refetchonexpire",7,!0),M=x(t,"disablerefetchonexpire",23,()=>!F()),U=x(t,"expire",7,void 0),I=x(t,"floating",7,void 0),re=x(t,"floatinganchor",7,void 0),Te=x(t,"floatingoffset",7,void 0),Q=x(t,"floatingpersist",7,!1),j=x(t,"hidefooter",7,!1),ce=x(t,"hidelogo",7,!1),Ke=x(t,"id",7,void 0),hr=x(t,"language",7,void 0),Xe=x(t,"name",7,"altcha"),Qe=x(t,"maxnumber",7,1e6),Ot=x(t,"mockerror",7,!1),Ue=x(t,"obfuscated",7,void 0),_e=x(t,"overlay",7,void 0),Ft=x(t,"overlaycontent",7,void 0),vr=x(t,"plugins",7,void 0),et=x(t,"sentinel",7,void 0),ke=x(t,"spamfilter",7,!1),mt=x(t,"strings",7,void 0),ve=x(t,"test",7,!1),ne=x(t,"verifyurl",7,void 0),_t=x(t,"workers",23,()=>Math.min(16,navigator.hardwareConcurrency||8)),Mt=x(t,"workerurl",7,void 0);const{altchaI18n:Va}=globalThis,Ua=Va.store,ci=["SHA-256","SHA-384","SHA-512"],ja="https://altcha.org/",je=(n,u)=>{t.$$host.dispatchEvent(new CustomEvent(n,{detail:u}))},fi=document.documentElement.lang?.split("-")?.[0],Br=Rt(()=>c()&&new URL(c(),location.origin).host.endsWith(".altcha.org")&&!!c()?.includes("apiKey=ckey_")),gr=Rt(()=>f()?ki(f()):void 0),qa=Rt(()=>mt()?ki(mt()):{}),O=Rt(()=>({...vi(l()),...o(qa)})),di=Rt(()=>`${Ke()||Xe()}_checkbox_${Math.round(Math.random()*1e8)}`);let tt=T(null),Vt=T(!1),G=T(null),k=T(Le(y.UNVERIFIED)),V=T(void 0),Ut=T(null),qe=T(null),fe=T(null),Hr=T(null),bt=T(null),D=T(null),jt=T(null),rt=T(null),Ae=null,J=T(null),nt=T(!1),Be=[],Gr=T(!1),Ie=T(null);$r(()=>{tl(o(rt))}),$r(()=>{rl(o(k))}),oa(()=>{Ba(),b(jt,null),o(D)&&(o(D).removeEventListener("submit",yi),o(D).removeEventListener("reset",wi),o(D).removeEventListener("focusin",bi),b(D,null)),Ae&&(clearTimeout(Ae),Ae=null),document.removeEventListener("click",mi),document.removeEventListener("scroll",_i),window.removeEventListener("resize",Ci)}),ei(()=>{A("mounted","2.2.4"),A("workers",_t()),Ya(),A("plugins",Be.length?Be.map(n=>n.constructor.pluginName).join(", "):"none"),ve()&&A("using test mode"),U()&&Yr(U()),a()!==void 0&&A("auto",a()),I()!==void 0&&$i(I()),b(D,o(V)?.closest("form"),!0),o(D)&&(o(D).addEventListener("submit",yi,{capture:!0}),o(D).addEventListener("reset",wi),(a()==="onfocus"||Q()==="focus")&&o(D).addEventListener("focusin",bi)),_e()&&Si(!0),a()==="onload"&&(Ue()?qt():De()),o(Br)&&(j()||ce())&&A("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."),requestAnimationFrame(()=>{je("load")})});function pr(n,u){return btoa(JSON.stringify({algorithm:n.algorithm,challenge:n.challenge,number:u.number,salt:n.salt,signature:n.signature,test:ve()?!0:void 0,took:u.took}))}function Ba(){for(const n of Be)n.destroy()}function hi(){c()&&!M()&&o(k)===y.VERIFIED?De():it(y.EXPIRED,o(O).expired)}async function Ha(){if(Ot())throw A("mocking error"),new Error("Mocked error.");if(o(gr))return A("using provided json data"),Ai(o(gr).salt),o(gr);if(ve())return A("generating test challenge",{test:ve()}),ga(typeof ve()!="boolean"?+ve():void 0);{if(!c()&&o(D)){const g=o(D).getAttribute("action");g?.includes("/form/")&&c(g+"/altcha")}if(!c())throw new Error("Attribute challengeurl not set.");A("fetching challenge from",c());const n={credentials:typeof d()=="boolean"?"include":d(),headers:ke()!==!1?{"x-altcha-spam-filter":"1"}:{}},u=await Wr()(c(),n);if(!u||!(u instanceof Response))throw new Error("Custom fetch function did not return a response.");if(u.status!==200)throw new Error(`Server responded with ${u.status}.`);const h=u.headers.get("X-Altcha-Config"),p=await u.json();if(Ai(p.salt),h)try{const g=JSON.parse(h);g&&typeof g=="object"&&(g.verifyurl&&!g.verifyurl.startsWith("fn:")&&(g.verifyurl=pi(g.verifyurl)),Ni(g))}catch(g){A("unable to configure from X-Altcha-Config",g)}return p}}function Ga(n){const u=o(D)?.querySelector(typeof n=="string"?`input[name="${n}"]`:'input[type="email"]:not([data-no-spamfilter])');return u?.value?.slice(u.value.indexOf("@"))||void 0}function Wr(){let n=fetch;if(m())if(A("using customfetch"),typeof m()=="string"){if(n=globalThis[m()]||null,!n)throw new Error(`Custom fetch function not found: ${m()}`)}else n=m();return n}function vi(n,u=[hr()||"",document.documentElement.lang||"",...navigator.languages]){const h=Object.keys(n).map(g=>g.toLowerCase()),p=u.reduce((g,C)=>(C=C.toLowerCase(),g||(n[C]?C:null)||h.find(N=>C.split("-")[0]===N.split("-")[0])||null),null);return n[p||"en"]}function Wa(){return ke()==="ipAddress"?{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:!1,expectedCountries:void 0,expectedLanguages:void 0,fields:!1,ipAddress:void 0,text:void 0,timeZone:void 0}:typeof ke()=="object"?ke():{blockedCountries:void 0,classifier:void 0,disableRules:void 0,email:void 0,expectedCountries:void 0,expectedLanguages:void 0,fields:void 0,ipAddress:void 0,text:void 0,timeZone:void 0}}function gi(n){return[...o(D)?.querySelectorAll(n?.length?n.map(h=>`input[name="${h}"]`).join(", "):'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((h,p)=>{const g=p.name,C=p.value;return g&&C&&(h[g]=/\n/.test(C)?C.replace(new RegExp("(?<!\\r)\\n","g"),`\r
|
|
4
|
+
`):C),h},{})}function pi(n,u){const h=new URL(c()||location.origin),p=new URL(n,h);if(p.search||(p.search=h.search),u)for(const g in u)u[g]!==void 0&&u[g]!==null&&p.searchParams.set(g,u[g]);return p.toString()}function Ya(){const n=vr()!==void 0?vr().split(","):void 0;for(const u of globalThis.altchaPlugins)(!n||n.includes(u.pluginName))&&Be.push(new u({el:o(V),clarify:qt,dispatch:je,getConfiguration:Li,getFloatingAnchor:Pi,getState:Oi,log:A,reset:it,solve:Di,setState:Re,setFloatingAnchor:Fi,verify:De}))}function A(...n){(v()||n.some(u=>u instanceof Error))&&console[n[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${Xe()}]`,...n)}function Za(){b(J,X.PAUSED,!0)}function za(n){b(J,X.ERROR,!0)}function Ja(){b(J,X.READY,!0)}function Ka(){b(J,X.LOADING,!0)}function Xa(){b(J,X.PLAYING,!0)}function Qa(){b(J,X.PAUSED,!0)}function el(n){if(n.preventDefault(),n.stopPropagation(),o(G)){const u=new FormData(n.target),h=String(u.get("code"));if(ne()?.startsWith("fn:")){const p=ne().replace(/^fn:/,"");if(A(`calling ${p} function instead of verifyurl`),!(p in globalThis))throw new Error(`Global function "${p}" is undefined.`);return globalThis[p]({challenge:o(G).challenge,code:h,solution:o(G).solution})}b(nt,!0),Ii(pr(o(G).challenge,o(G).solution),h).then(({reason:p,verified:g})=>{g?(b(G,null),Re(y.VERIFIED),A("verified"),Or().then(()=>{o(Hr)?.focus(),je("verified",{payload:o(Ie)}),a()==="onsubmit"?Ri(o(jt)):_e()&&Bt()})):(it(),b(rt,p||"Verification failed",!0))}).catch(p=>{b(G,null),Re(y.ERROR,p),A("sentinel verification failed:",p)}).finally(()=>{b(nt,!1)})}}function mi(n){const u=n.target;I()&&u&&!o(V).contains(u)&&(o(k)===y.VERIFIED&&Q()===!1||o(k)===y.VERIFIED&&Q()==="focus"&&!o(D)?.matches(":focus-within")||a()==="off"&&o(k)===y.UNVERIFIED)&&Bt()}function _i(){I()&&o(k)!==y.UNVERIFIED&&Ht()}function tl(n){for(const u of Be)typeof u.onErrorChange=="function"&&u.onErrorChange(o(rt))}function bi(n){o(k)===y.UNVERIFIED?De():I()&&Q()==="focus"&&o(k)===y.VERIFIED&&mr()}function yi(n){n.target?.hasAttribute("data-code-challenge-form")||(b(jt,n.submitter,!0),o(D)&&a()==="onsubmit"?(o(jt)?.blur(),o(k)===y.UNVERIFIED?(n.preventDefault(),n.stopPropagation(),De().then(()=>{Ri(o(jt))})):o(k)!==y.VERIFIED&&(n.preventDefault(),n.stopPropagation(),o(k)===y.VERIFYING&&Ei())):o(D)&&I()&&a()==="off"&&o(k)===y.UNVERIFIED&&(n.preventDefault(),n.stopPropagation(),mr()))}function wi(){it()}function Ei(){o(k)===y.VERIFYING&&o(O).waitAlert&&alert(o(O).waitAlert)}function xi(){o(qe)?o(qe).paused?(o(qe).currentTime=0,o(qe).play()):o(qe).pause():(b(Gr,!0),requestAnimationFrame(()=>{o(qe)?.play()}))}function rl(n){for(const u of Be)typeof u.onStateChange=="function"&&u.onStateChange(o(k));I()&&o(k)!==y.UNVERIFIED&&requestAnimationFrame(()=>{Ht()}),b(Vt,o(k)===y.VERIFIED),_e()&&o(fe)&&(o(k)!==y.UNVERIFIED?mr():Bt())}function Ci(){I()&&Ht()}function ki(n){return JSON.parse(n)}function Ai(n){const u=new URLSearchParams(n.split("?")?.[1]),h=u.get("expires")||u.get("expire");if(h){const p=new Date(+h*1e3),g=isNaN(p.getTime())?0:p.getTime()-Date.now();g>0&&Yr(g)}else Ae&&(clearTimeout(Ae),Ae=null)}async function nl(n){if(!ne())throw new Error("Attribute verifyurl not set.");A("requesting server verification from",ne());const u={payload:n};if(ke()!==!1){const{blockedCountries:g,classifier:C,disableRules:N,email:H,expectedLanguages:q,expectedCountries:ae,fields:le,ipAddress:at,text:wt,timeZone:lt}=Wa();u.blockedCountries=g,u.classifier=C,u.disableRules=N,u.email=H===!1?void 0:Ga(H),u.expectedCountries=ae,u.expectedLanguages=q||(fi?[fi]:void 0),u.fields=le===!1?void 0:gi(le),u.ipAddress=at===!1?void 0:at||"auto",u.text=wt,u.timeZone=lt===!1?void 0:lt||ai()}const h=await Wr()(ne(),{body:JSON.stringify(u),headers:{"content-type":"application/json"},method:"POST"});if(!h||!(h instanceof Response))throw new Error("Custom fetch function did not return a response.");if(h.status!==200)throw new Error(`Server responded with ${h.status}.`);const p=await h.json();if(p?.payload&&b(Ie,p.payload,!0),je("serververification",p),s()&&p.classification==="BAD")throw new Error("SpamFilter returned negative classification.")}async function Ii(n,u){if(!ne())throw new Error("Attribute verifyurl not set.");A("requesting sentinel verification from",ne());const h={code:u,payload:n};et()&&(h.fields=et().fields?gi():void 0,h.timeZone=et().timeZone?ai():void 0);const p=await Wr()(ne(),{body:JSON.stringify(h),headers:{"content-type":"application/json"},method:"POST"});if(!p||!(p instanceof Response))throw new Error("Fetch function did not return a response.");if(p.status!==200)throw new Error(`Server responded with ${p.status}.`);const g=await p.json();return g?.payload&&b(Ie,g.payload,!0),je("sentinelverification",g),g}function Ri(n){o(D)&&"requestSubmit"in o(D)?o(D).requestSubmit(n):o(D)?.reportValidity()&&(n?n.click():o(D).submit())}function Yr(n){A("expire",n),Ae&&(clearTimeout(Ae),Ae=null),n<1?hi():Ae=setTimeout(hi,n)}function $i(n){A("floating",n),I()!==n&&(o(V).style.left="",o(V).style.top=""),I(n===!0||n===""?"auto":n===!1||n==="false"?void 0:I()),I()?(a()||a("onsubmit"),document.addEventListener("scroll",_i),document.addEventListener("click",mi),window.addEventListener("resize",Ci)):a()==="onsubmit"&&a(void 0)}function Si(n){if(A("overlay",n),_e(n),n){if(a()||a("onsubmit"),o(fe)&&o(V).parentElement&&o(fe).replaceWith(o(V).parentElement),o(V)?.parentElement?.parentElement){b(fe,document.createElement("div"),!0),o(V).parentElement.parentElement.appendChild(o(fe));const u=document.createElement("div"),h=document.createElement("button");h.type="button",h.innerHTML="×",h.addEventListener("click",p=>{p.preventDefault(),it()}),o(fe).classList.add("altcha-overlay-backdrop"),h.classList.add("altcha-overlay-close-button"),u.classList.add("altcha-overlay"),o(fe).append(u),u.append(h),Ft()&&u.append(...document.querySelectorAll(Ft())),u.append(o(V).parentElement)}}else o(fe)&&o(V).parentElement&&(o(fe).replaceWith(o(V).parentElement),o(V).style.display="block")}function Ti(n){if(!n.algorithm)throw new Error("Invalid challenge. Property algorithm is missing.");if(n.signature===void 0)throw new Error("Invalid challenge. Property signature is missing.");if(!ci.includes(n.algorithm.toUpperCase()))throw new Error(`Unknown algorithm value. Allowed values: ${ci.join(", ")}`);if(!n.challenge||n.challenge.length<40)throw new Error("Challenge is too short. Min. 40 chars.");if(!n.salt||n.salt.length<10)throw new Error("Salt is too short. Min. 10 chars.")}async function Di(n){let u=null,h=null;if("Worker"in window){try{u=il(n,n.maxNumber||n.maxnumber||Qe()),b(tt,u.controller,!0),h=await u.promise}catch(p){A(p)}finally{b(tt,null)}if(h===null||h?.number!==void 0||"obfuscated"in n)return{data:n,solution:h}}if("obfuscated"in n){const p=await ba(n.obfuscated,n.key,n.maxNumber||n.maxnumber);return{data:n,solution:await p.promise}}u=pa(n.challenge,n.salt,n.algorithm,n.maxNumber||n.maxnumber||Qe()),b(tt,u.controller,!0);try{h=await u.promise}catch(p){A(p)}finally{b(tt,null)}return{data:n,solution:h}}function il(n,u=typeof ve()=="number"?ve():n.maxNumber||n.maxnumber||Qe(),h=Math.ceil(_t())){const p=new AbortController,g=[];h=Math.min(16,u,Math.max(1,h));for(let H=0;H<h;H++)g.push(altchaCreateWorker(Mt()));const C=Math.ceil(u/h);return{promise:(async()=>{const H=await Promise.all(g.map((q,ae)=>{const le=ae*C;return p.signal.addEventListener("abort",()=>{q.postMessage({type:"abort"})}),new Promise(at=>{q.addEventListener("message",wt=>{if(wt.data)for(const lt of g)lt!==q&<.postMessage({type:"abort"});at(wt.data)}),q.postMessage({payload:n,max:le+C,start:le,type:"work"})})}));for(const q of g)q.terminate();return H.find(q=>!!q)||null})(),controller:p}}async function qt(){if(!Ue()){Re(y.ERROR);return}const n=Be.find(u=>u.constructor.pluginName==="obfuscation");if(!n||!("clarify"in n)){Re(y.ERROR),A("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it.");return}if("clarify"in n&&typeof n.clarify=="function")return n.clarify()}function Ni(n){n.obfuscated!==void 0&&Ue(n.obfuscated),n.auto!==void 0&&(a(n.auto),a()==="onload"&&(Ue()?qt():De())),n.blockspam!==void 0&&s(!!n.blockspam),n.customfetch!==void 0&&m(n.customfetch),n.floatinganchor!==void 0&&re(n.floatinganchor),n.delay!==void 0&&_(n.delay),n.floatingoffset!==void 0&&Te(n.floatingoffset),n.floating!==void 0&&$i(n.floating),n.expire!==void 0&&(Yr(n.expire),U(n.expire)),n.challenge&&(f(typeof n.challenge=="string"?n.challenge:JSON.stringify(n.challenge)),Ti(o(gr))),n.challengeurl!==void 0&&c(n.challengeurl),n.debug!==void 0&&v(!!n.debug),n.hidefooter!==void 0&&j(!!n.hidefooter),n.hidelogo!==void 0&&ce(!!n.hidelogo),n.language!==void 0&&mt(vi(l(),[n.language])),n.maxnumber!==void 0&&Qe(+n.maxnumber),n.mockerror!==void 0&&Ot(!!n.mockerror),n.name!==void 0&&Xe(n.name),n.overlaycontent!==void 0&&Ft(n.overlaycontent),n.overlay!==void 0&&Si(n.overlay),n.refetchonexpire!==void 0&&M(!n.refetchonexpire),n.disablerefetchonexpire!==void 0&&M(!n.disablerefetchonexpire),n.sentinel!==void 0&&typeof n.sentinel=="object"&&et(n.sentinel),n.spamfilter!==void 0&&ke(typeof n.spamfilter=="object"?n.spamfilter:!!n.spamfilter),n.strings&&mt(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&&ne(n.verifyurl),n.workers!==void 0&&_t(+n.workers),n.workerurl!==void 0&&Mt(n.workerurl)}function Li(){return{auto:a(),blockspam:s(),challengeurl:c(),debug:v(),delay:_(),disableautofocus:w(),disablerefetchonexpire:M(),expire:U(),floating:I(),floatinganchor:re(),floatingoffset:Te(),hidefooter:j(),hidelogo:ce(),name:Xe(),maxnumber:Qe(),mockerror:Ot(),obfuscated:Ue(),overlay:_e(),refetchonexpire:!M(),spamfilter:ke(),strings:o(O),test:ve(),verifyurl:ne(),workers:_t(),workerurl:Mt()}}function Pi(){return o(bt)}function ol(n){return Be.find(u=>u.constructor.pluginName===n)}function Oi(){return o(k)}function Bt(){o(V).style.display="none",_e()&&o(fe)&&(o(fe).style.display="none")}function Ht(n=20){if(o(V))if(o(bt)||b(bt,(re()?document.querySelector(re()):o(D)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||o(D),!0),o(bt)){const u=parseInt(Te(),10)||12,h=o(bt).getBoundingClientRect(),p=o(V).getBoundingClientRect(),g=document.documentElement.clientHeight,C=document.documentElement.clientWidth,N=I()==="auto"?h.bottom+p.height+u+n>g:I()==="top",H=Math.max(n,Math.min(C-n-p.width,h.left+h.width/2-p.width/2));if(N?o(V).style.top=`${h.top-(p.height+u)}px`:o(V).style.top=`${h.bottom+u}px`,o(V).style.left=`${H}px`,o(V).setAttribute("data-floating",N?"top":"bottom"),o(Ut)){const q=o(Ut).getBoundingClientRect();o(Ut).style.left=h.left-H+h.width/2-q.width/2+"px"}}else A("unable to find floating anchor element")}function it(n=y.UNVERIFIED,u=null){o(tt)&&(o(tt).abort(),b(tt,null)),b(Vt,!1),b(Ie,null),b(G,null),b(Gr,!1),b(J,null),Re(n,u)}function Fi(n){b(bt,n,!0)}function Re(n,u=null){b(k,n,!0),b(rt,u,!0),je("statechange",{payload:o(Ie),state:o(k)})}function mr(){o(V).style.display="block",I()&&Ht(),_e()&&o(fe)&&(o(fe).style.display="flex")}async function De(){return it(y.VERIFYING),await new Promise(n=>setTimeout(n,_()||0)),Ha().then(n=>(Ti(n),A("challenge",n),Di(n))).then(({data:n,solution:u})=>{if(A("solution",u),!u||n&&"challenge"in n&&!("clearText"in u)){if(u?.number!==void 0&&"challenge"in n)if(ne()&&"codeChallenge"in n)["INPUT","BUTTON","SELECT","TEXTAREA"].includes(document.activeElement?.tagName||"")&&w()===!1&&document.activeElement.blur(),b(G,{challenge:n,solution:u},!0);else{if(ne()&&et()!==void 0)return Ii(pr(n,u));if(ne())return nl(pr(n,u));b(Ie,pr(n,u),!0),A("payload",o(Ie))}else if(o(k)!==y.EXPIRED)throw A("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),new Error("Unexpected result returned.")}}).then(()=>{o(G)?(Re(y.CODE),Or().then(()=>{je("code",{codeChallenge:o(G)})})):o(Ie)&&(Re(y.VERIFIED),A("verified"),Or().then(()=>{je("verified",{payload:o(Ie)}),_e()&&Bt()}))}).catch(n=>{A(n),Re(y.ERROR,n.message)})}var Mi=Ma(),Vi=It(Mi);Ko(Vi,t,"default",{});var yt=Z(Vi,2),Zr=Y(yt),_r=Y(Zr);let Ui;var ji=Y(_r);{var al=n=>{qr(n)};z(ji,n=>{o(k)===y.VERIFYING&&n(al)})}var ot=Z(ji,2);Jn(ot),ot.__change=[xa,k,ke,D,Vt,Ue,qt,De],ur(ot,n=>b(Hr,n),()=>o(Hr)),W(_r);var br=Z(_r,2),ll=Y(br);{var sl=n=>{var u=sr(),h=It(u);Je(h,()=>o(O).verified),B(n,u)},ul=(n,u)=>{{var h=g=>{var C=sr(),N=It(C);Je(N,()=>o(O).verifying),B(g,C)},p=(g,C)=>{{var N=q=>{var ae=sr(),le=It(ae);Je(le,()=>o(O).verificationRequired),B(q,ae)},H=q=>{var ae=sr(),le=It(ae);Je(le,()=>o(O).label),B(q,ae)};z(g,q=>{o(k)===y.CODE?q(N):q(H,!1)},C)}};z(n,g=>{o(k)===y.VERIFYING?g(h):g(p,!1)},u)}};z(ll,n=>{o(k)===y.VERIFIED?n(sl):n(ul,!1)})}W(br);var qi=Z(br,2);{var cl=n=>{var u=ka();Jn(u),we(()=>{R(u,"name",Xe()),ra(u,o(Ie))}),B(n,u)};z(qi,n=>{o(k)===y.VERIFIED&&n(cl)})}var Bi=Z(qi,2);{var fl=n=>{var u=Aa(),h=Y(u);R(h,"href",ja),W(u),we(()=>R(h,"aria-label",o(O).ariaLinkLabel)),B(n,u)};z(Bi,n=>{(ce()!==!0||o(Br))&&n(fl)})}var dl=Z(Bi,2);{var hl=n=>{var u=Da(),h=Z(Y(u),2),p=Y(h),g=Z(p,2);Ho(g,!w()),g.__keydown=[wa,xi];var C=Z(g,2),N=Y(C),H=Y(N);{var q=be=>{var K=Sa();K.__click=xi;var yr=Y(K);{var Gt=Et=>{qr(Et,()=>20)},wl=(Et,El)=>{{var xl=xt=>{var zr=Ia();B(xt,zr)},Cl=(xt,zr)=>{{var kl=Ct=>{var Jr=Ra();B(Ct,Jr)},Al=Ct=>{var Jr=$a();B(Ct,Jr)};z(xt,Ct=>{o(J)===X.PLAYING?Ct(kl):Ct(Al,!1)},zr)}};z(Et,xt=>{o(J)===X.ERROR?xt(xl):xt(Cl,!1)},El)}};z(yr,Et=>{o(J)===X.LOADING?Et(Gt):Et(wl,!1)})}W(K),we(()=>{R(K,"title",o(O).getAudioChallenge),K.disabled=o(J)===X.LOADING||o(J)===X.ERROR||o(nt),R(K,"aria-label",o(J)===X.LOADING?o(O).loading:o(O).getAudioChallenge)}),B(be,K)};z(H,be=>{o(G).challenge.codeChallenge.audio&&be(q)})}var ae=Z(H,2);ae.__click=[Ea,De],W(N);var le=Z(N,2),at=Y(le);{var wt=be=>{qr(be,()=>16)};z(at,be=>{o(nt)&&be(wt)})}var lt=Z(at);W(le),W(C);var bl=Z(C,2);{var yl=be=>{var K=Ta(),yr=Y(K);W(K),ur(K,Gt=>b(qe,Gt),()=>o(qe)),we(Gt=>R(yr,"src",Gt),[()=>pi(o(G).challenge.codeChallenge.audio,{language:hr()})]),Ve("loadstart",K,Ka),Ve("canplay",K,Ja),Ve("pause",K,Qa),Ve("playing",K,Xa),Ve("ended",K,Za),Ve("error",yr,za),B(be,K)};z(bl,be=>{o(G).challenge.codeChallenge.audio&&o(Gr)&&be(yl)})}W(h),W(u),we(()=>{R(u,"aria-label",o(O).verificationRequired),R(p,"src",o(G).challenge.codeChallenge.image),R(g,"minlength",o(G).challenge.codeChallenge.length||1),R(g,"maxlength",o(G).challenge.codeChallenge.length),R(g,"placeholder",o(O).enterCode),R(g,"aria-label",o(J)===X.LOADING?o(O).loading:o(J)===X.PLAYING?"":o(O).enterCodeAria),R(g,"aria-live",o(J)?"assertive":"polite"),R(g,"aria-busy",o(J)===X.LOADING),g.disabled=o(nt),R(ae,"aria-label",o(O).reload),R(ae,"title",o(O).reload),ae.disabled=o(nt),le.disabled=o(nt),R(le,"aria-label",o(O).verify),Zo(lt,` ${o(O).verify??""}`)}),Ve("submit",h,el,!0),B(n,u)};z(dl,n=>{o(G)?.challenge.codeChallenge&&n(hl)})}W(Zr);var Hi=Z(Zr,2);{var vl=n=>{var u=Pa(),h=Z(Y(u),2);{var p=C=>{var N=Na(),H=Y(N);Je(H,()=>o(O).expired),W(N),we(()=>R(N,"title",o(rt))),B(C,N)},g=C=>{var N=La(),H=Y(N);Je(H,()=>o(O).error),W(N),we(()=>R(N,"title",o(rt))),B(C,N)};z(h,C=>{o(k)===y.EXPIRED?C(p):C(g,!1)})}W(u),B(n,u)};z(Hi,n=>{(o(rt)||o(k)===y.EXPIRED)&&n(vl)})}var Gi=Z(Hi,2);{var gl=n=>{var u=Oa(),h=Y(u),p=Y(h);Je(p,()=>o(O).footer),W(h),W(u),B(n,u)};z(Gi,n=>{o(O).footer&&(j()!==!0||o(Br))&&n(gl)})}var pl=Z(Gi,2);{var ml=n=>{var u=Fa();ur(u,h=>b(Ut,h),()=>o(Ut)),B(n,u)};z(pl,n=>{I()&&n(ml)})}W(yt),ur(yt,n=>b(V,n),()=>o(V)),we(n=>{R(yt,"data-state",o(k)),R(yt,"data-floating",I()),R(yt,"data-overlay",_e()),Ui=Qo(_r,1,"altcha-checkbox",null,Ui,n),R(ot,"id",o(di)),ot.required=a()!=="onsubmit"&&(!I()||a()!=="off"),R(br,"for",o(di))},[()=>({"altcha-checkbox-verifying":o(k)===y.VERIFYING})]),Ve("invalid",ot,Ei),ia(ot,()=>o(Vt),n=>b(Vt,n)),B(e,Mi);var _l=jn({clarify:qt,configure:Ni,getConfiguration:Li,getFloatingAnchor:Pi,getPlugin:ol,getState:Oi,hide:Bt,repositionFloating:Ht,reset:it,setFloatingAnchor:Fi,setState:Re,show:mr,verify:De,get auto(){return a()},set auto(n=void 0){a(n),E()},get blockspam(){return s()},set blockspam(n=void 0){s(n),E()},get challengeurl(){return c()},set challengeurl(n=void 0){c(n),E()},get challengejson(){return f()},set challengejson(n=void 0){f(n),E()},get credentials(){return d()},set credentials(n=void 0){d(n),E()},get customfetch(){return m()},set customfetch(n=void 0){m(n),E()},get debug(){return v()},set debug(n=!1){v(n),E()},get delay(){return _()},set delay(n=0){_(n),E()},get disableautofocus(){return w()},set disableautofocus(n=!1){w(n),E()},get refetchonexpire(){return F()},set refetchonexpire(n=!0){F(n),E()},get disablerefetchonexpire(){return M()},set disablerefetchonexpire(n=!F){M(n),E()},get expire(){return U()},set expire(n=void 0){U(n),E()},get floating(){return I()},set floating(n=void 0){I(n),E()},get floatinganchor(){return re()},set floatinganchor(n=void 0){re(n),E()},get floatingoffset(){return Te()},set floatingoffset(n=void 0){Te(n),E()},get floatingpersist(){return Q()},set floatingpersist(n=!1){Q(n),E()},get hidefooter(){return j()},set hidefooter(n=!1){j(n),E()},get hidelogo(){return ce()},set hidelogo(n=!1){ce(n),E()},get id(){return Ke()},set id(n=void 0){Ke(n),E()},get language(){return hr()},set language(n=void 0){hr(n),E()},get name(){return Xe()},set name(n="altcha"){Xe(n),E()},get maxnumber(){return Qe()},set maxnumber(n=1e6){Qe(n),E()},get mockerror(){return Ot()},set mockerror(n=!1){Ot(n),E()},get obfuscated(){return Ue()},set obfuscated(n=void 0){Ue(n),E()},get overlay(){return _e()},set overlay(n=void 0){_e(n),E()},get overlaycontent(){return Ft()},set overlaycontent(n=void 0){Ft(n),E()},get plugins(){return vr()},set plugins(n=void 0){vr(n),E()},get sentinel(){return et()},set sentinel(n=void 0){et(n),E()},get spamfilter(){return ke()},set spamfilter(n=!1){ke(n),E()},get strings(){return mt()},set strings(n=void 0){mt(n),E()},get test(){return ve()},set test(n=!1){ve(n),E()},get verifyurl(){return ne()},set verifyurl(n=void 0){ne(n),E()},get workers(){return _t()},set workers(n=Math.min(16,navigator.hardwareConcurrency||8)){_t(n),E()},get workerurl(){return Mt()},set workerurl(n=void 0){Mt(n),E()}});return i(),_l}Yo(["change","keydown","click"]),customElements.define("altcha-widget",ha(li,{blockspam:{type:"Boolean"},debug:{type:"Boolean"},delay:{type:"Number"},disableautofocus:{type:"Boolean"},disablerefetchonexpire:{type:"Boolean"},expire:{type:"Number"},floatingoffset:{type:"Number"},hidefooter:{type:"Boolean"},hidelogo:{type:"Boolean"},maxnumber:{type:"Number"},mockerror:{type:"Boolean"},refetchonexpire:{type:"Boolean"},test:{type:"Boolean"},workers:{type:"Number"},auto:{},challengeurl:{},challengejson:{},credentials:{},customfetch:{},floating:{},floatinganchor:{},floatingpersist:{},id:{},language:{},name:{},obfuscated:{},overlay:{},overlaycontent:{},plugins:{},sentinel:{},spamfilter:{},strings:{},verifyurl:{},workerurl:{}},["default"],["clarify","configure","getConfiguration","getFloatingAnchor","getPlugin","getState","hide","repositionFloating","reset","setFloatingAnchor","setState","show","verify"],!1));const si='@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)}}';function ui(e,t="__altcha-css"){if(!document.getElementById(t)){const r=document.createElement("style");r.id=t,r.textContent=e,document.head.appendChild(r)}}globalThis.altchaCreateWorker=e=>e?new Worker(new URL(e)):new Wi,ui(si),ui(si),st.Altcha=li,Object.defineProperty(st,Symbol.toStringTag,{value:"Module"})});
|
package/dist_external/altcha.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.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:none;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{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-verify:disabled{opacity:.7;pointer-events:none}.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-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:hover{opacity:1}.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{
|
|
1
|
+
.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:none;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{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-verify:disabled{opacity:.7;pointer-events:none}.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-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:hover{opacity:1}.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{inset:0;position:absolute}.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:#00000080;display:none;inset:0;position:fixed;z-index:99999999}.altcha-overlay-close-button{align-self:flex-end;background:none;border:none;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%)}}@keyframes overlay-slidein{to{opacity:1;top:50%}}@keyframes altcha-spinner{to{transform:rotate(360deg)}}
|