altcha
Version:
Privacy-first CAPTCHA widget, compliant with global regulations (GDPR/HIPAA/CCPA/LGDP/DPDPA/PIPL) and WCAG accessible. No tracking, self-verifying.
2 lines (1 loc) • 2.02 kB
JavaScript
(function(s,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(s=typeof globalThis<"u"?globalThis:s||self,r(s["[name]"]={}))})(this,function(s){"use strict";const r=()=>{};function g(e,i){return e!=e?i==i:e!==i||e!==null&&typeof e=="object"||typeof e=="function"}let u=!1;function p(e){var i=u;try{return u=!0,e()}finally{u=i}}function y(e,i,t){if(e==null)return i(void 0),r;const o=p(()=>e.subscribe(i,t));return o.unsubscribe?()=>o.unsubscribe():o}const l=[];function w(e,i=r){let t=null;const o=new Set;function f(a){if(g(e,a)&&(e=a,t)){const b=!l.length;for(const n of o)n[1](),l.push(n,e);if(b){for(let n=0;n<l.length;n+=2)l[n][0](l[n+1]);l.length=0}}}function h(a){f(a(e))}function k(a,b=r){const n=[a,b];return o.add(n),o.size===1&&(t=i(f,h)||r),a(e),()=>{o.delete(n),o.size===0&&t&&(t(),t=null)}}return{set:f,update:h,subscribe:k}}function c(e){let i;return y(e,t=>i=t)(),i}globalThis.altchaPlugins=globalThis.altchaPlugins||[],globalThis.altchaI18n=globalThis.altchaI18n||{get:e=>c(globalThis.altchaI18n.store)[e],set:(e,i)=>{Object.assign(c(globalThis.altchaI18n.store),{[e]:i}),globalThis.altchaI18n.store.set(c(globalThis.altchaI18n.store))},store:w({})};const d={ariaLinkLabel:"Odwiedź Altcha.org",enterCode:"Wprowadź kod",enterCodeAria:"Wpisz kod, który słyszysz. Naciśnij Spację, aby odtworzyć dźwięk.",error:"Weryfikacja nie powiodła się. Spróbuj ponownie później.",expired:"Weryfikacja wygasła. Spróbuj ponownie.",verificationRequired:"Wymagana weryfikacja!",footer:'Chronione przez <a href="https://altcha.org/" target="_blank" aria-label="Odwiedź Altcha.org">ALTCHA</a>',getAudioChallenge:"Pobierz zadanie dźwiękowe",label:"Nie jestem robotem",loading:"Ładowanie...",reload:"Odśwież",verify:"Zweryfikuj",verified:"Zweryfikowano",verifying:"Weryfikacja...",waitAlert:"Trwa weryfikacja... proszę czekać."};globalThis.altchaI18n.set("pl",d),s.i18n=d,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});