PageSourceSearch

http://energetikaitanusitvanyveszprem.hu/js/altcha.min.js

js energetikaitanusitvanyveszprem.hu collected 2026-09-28 13:20:39 UTC 39,685 bytes, 8 lines download raw bytes

1/**
2 * Minified by jsDelivr using Terser v5.37.0.
3 * Original file: /gh/altcha-org/altcha@main/dist/altcha.js
4 *
5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6 */
7var jt=Object.defineProperty,Pt=(t,e,n)=>e in t?jt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,B=(t,e,n)=>Pt(t,"symbol"!=typeof e?e+"":e,n);const ht="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0IGQ9bmV3IFRleHRFbmNvZGVyO2Z1bmN0aW9uIHAoZSl7cmV0dXJuWy4uLm5ldyBVaW50OEFycmF5KGUpXS5tYXAodD0+dC50b1N0cmluZygxNikucGFkU3RhcnQoMiwiMCIpKS5qb2luKCIiKX1hc3luYyBmdW5jdGlvbiBiKGUsdCxyKXtpZih0eXBlb2YgY3J5cHRvPiJ1Inx8ISgic3VidGxlImluIGNyeXB0byl8fCEoImRpZ2VzdCJpbiBjcnlwdG8uc3VidGxlKSl0aHJvdyBuZXcgRXJyb3IoIldlYiBDcnlwdG8gaXMgbm90IGF2YWlsYWJsZS4gU2VjdXJlIGNvbnRleHQgaXMgcmVxdWlyZWQgKGh0dHBzOi8vZGV2ZWxvcGVyLm1vemlsbGEub3JnL2VuLVVTL2RvY3MvV2ViL1NlY3VyaXR5L1NlY3VyZV9Db250ZXh0cykuIik7cmV0dXJuIHAoYXdhaXQgY3J5cHRvLnN1YnRsZS5kaWdlc3Qoci50b1VwcGVyQ2FzZSgpLGQuZW5jb2RlKGUrdCkpKX1mdW5jdGlvbiB3KGUsdCxyPSJTSEEtMjU2IixuPTFlNixzPTApe2NvbnN0IG89bmV3IEFib3J0Q29udHJvbGxlcixhPURhdGUubm93KCk7cmV0dXJue3Byb21pc2U6KGFzeW5jKCk9Pntmb3IobGV0IGM9cztjPD1uO2MrPTEpe2lmKG8uc2lnbmFsLmFib3J0ZWQpcmV0dXJuIG51bGw7aWYoYXdhaXQgYih0LGMscik9PT1lKXJldHVybntudW1iZXI6Yyx0b29rOkRhdGUubm93KCktYX19cmV0dXJuIG51bGx9KSgpLGNvbnRyb2xsZXI6b319ZnVuY3Rpb24gaChlKXtjb25zdCB0PWF0b2IoZSkscj1uZXcgVWludDhBcnJheSh0Lmxlbmd0aCk7Zm9yKGxldCBuPTA7bjx0Lmxlbmd0aDtuKyspcltuXT10LmNoYXJDb2RlQXQobik7cmV0dXJuIHJ9ZnVuY3Rpb24gZyhlLHQ9MTIpe2NvbnN0IHI9bmV3IFVpbnQ4QXJyYXkodCk7Zm9yKGxldCBuPTA7bjx0O24rKylyW25dPWUlMjU2LGU9TWF0aC5mbG9vcihlLzI1Nik7cmV0dXJuIHJ9YXN5bmMgZnVuY3Rpb24gbShlLHQ9IiIscj0xZTYsbj0wKXtjb25zdCBzPSJBRVMtR0NNIixvPW5ldyBBYm9ydENvbnRyb2xsZXIsYT1EYXRlLm5vdygpLGw9YXN5bmMoKT0+e2ZvcihsZXQgdT1uO3U8PXI7dSs9MSl7aWYoby5zaWduYWwuYWJvcnRlZHx8IWN8fCF5KXJldHVybiBudWxsO3RyeXtjb25zdCBmPWF3YWl0IGNyeXB0by5zdWJ0bGUuZGVjcnlwdCh7bmFtZTpzLGl2OmcodSl9LGMseSk7aWYoZilyZXR1cm57Y2xlYXJUZXh0Om5ldyBUZXh0RGVjb2RlcigpLmRlY29kZShmKSx0b29rOkRhdGUubm93KCktYX19Y2F0Y2h7fX1yZXR1cm4gbnVsbH07bGV0IGM9bnVsbCx5PW51bGw7dHJ5e3k9aChlKTtjb25zdCB1PWF3YWl0IGNyeXB0by5zdWJ0bGUuZGlnZXN0KCJTSEEtMjU2IixkLmVuY29kZSh0KSk7Yz1hd2FpdCBjcnlwdG8uc3VidGxlLmltcG9ydEtleSgicmF3Iix1LHMsITEsWyJkZWNyeXB0Il0pfWNhdGNoe3JldHVybntwcm9taXNlOlByb21pc2UucmVqZWN0KCksY29udHJvbGxlcjpvfX1yZXR1cm57cHJvbWlzZTpsKCksY29udHJvbGxlcjpvfX1sZXQgaTtvbm1lc3NhZ2U9YXN5bmMgZT0+e2NvbnN0e3R5cGU6dCxwYXlsb2FkOnIsc3RhcnQ6bixtYXg6c309ZS5kYXRhO2xldCBvPW51bGw7aWYodD09PSJhYm9ydCIpaT09bnVsbHx8aS5hYm9ydCgpLGk9dm9pZCAwO2Vsc2UgaWYodD09PSJ3b3JrIil7aWYoIm9iZnVzY2F0ZWQiaW4gcil7Y29uc3R7a2V5OmEsb2JmdXNjYXRlZDpsfT1yfHx7fTtvPWF3YWl0IG0obCxhLHMsbil9ZWxzZXtjb25zdHthbGdvcml0aG06YSxjaGFsbGVuZ2U6bCxzYWx0OmN9PXJ8fHt9O289dyhsLGMsYSxzLG4pfWk9by5jb250cm9sbGVyLG8ucHJvbWlzZS50aGVuKGE9PntzZWxmLnBvc3RNZXNzYWdlKGEmJnsuLi5hLHdvcmtlcjohMH0pfSl9fX0pKCk7Cg==",Ft=t=>Uint8Array.from(atob(t),(t=>t.charCodeAt(0))),nt=typeof self<"u"&&self.Blob&&new Blob([Ft(ht)],{type:"text/javascript;charset=utf-8"});function Mt(t){let e;try{if(e=nt&&(self.URL||self.webkitURL).createObjectURL(nt),!e)throw"";const n=new Worker(e,{name:null==t?void 0:t.name});return n.addEventListener("error",(()=>{(self.URL||self.webkitURL).revokeObjectURL(e)})),n}catch{return new Worker("data:text/javascript;base64,"+ht,{name:null==t?void 0:t.name})}finally{e&&(self.URL||self.webkitURL).revokeObjectURL(e)}}function Ce(){}function Ut(t,e){for(const n in e)t[n]=e[n];return t}function gt(t){return t()}function rt(){return Object.create(null)}function we(t){t.forEach(gt)}function mt(t){return"function"==typeof t}function Ht(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Bt(t){return 0===Object.keys(t).length}function Dt(t,e,n,r){if(t){const o=bt(t,e,n,r);return t[0](o)}}function bt(t,e,n,r){return t[1]&&r?Ut(n.ctx.slice(),t[1](r(e))):n.ctx}function Jt(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}
7function Ot(t,e,n,r,o,i){if(o){const a=bt(e,n,r,i);t.p(a,o)}}function Kt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function L(t,e){t.appendChild(e)}function $t(t,e,n){const r=Qt(t);if(!r.getElementById(e)){const t=A("style");t.id=e,t.textContent=n,qt(r,t)}}function Qt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function qt(t,e){return L(t.head||t,e),e.sheet}function T(t,e,n){t.insertBefore(e,n||null)}function W(t){t.parentNode&&t.parentNode.removeChild(t)}function A(t){return document.createElement(t)}function Q(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function en(t){return document.createTextNode(t)}function $(){return en(" ")}function Le(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function a(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function tn(t){return Array.from(t.childNodes)}function it(t,e,n){t.classList.toggle(e,!!n)}function nn(t,e,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}function rn(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}let pe;function ve(t){pe=t}function Ge(){if(!pe)throw new Error("Function called outside component initialization");return pe}function on(t){Ge().$$.on_mount.push(t)}function ln(t){Ge().$$.on_destroy.push(t)}
7function sn(){const t=Ge();return(e,n,{cancelable:r=!1}={})=>{const o=t.$$.callbacks[e];if(o){const i=nn(e,n,{cancelable:r});return o.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}const ae=[],Ie=[];let fe=[];const ot=[],yt=Promise.resolve();let Ve=!1;function vt(){Ve||(Ve=!0,yt.then(w))}function cn(){return vt(),yt}function Se(t){fe.push(t)}const ze=new Set;let ce=0;function w(){if(0!==ce)return;const t=pe;do{try{for(;ce<ae.length;){const t=ae[ce];ce++,ve(t),an(t.$$)}}catch(t){throw ae.length=0,ce=0,t}for(ve(null),ae.length=0,ce=0;Ie.length;)Ie.pop()();for(let t=0;t<fe.length;t+=1){const e=fe[t];ze.has(e)||(ze.add(e),e())}fe.length=0}while(ae.length);for(;ot.length;)ot.pop()();Ve=!1,ze.clear(),ve(t)}function an(t){if(null!==t.fragment){t.update(),we(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Se)}}function fn(t){const e=[],n=[];fe.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),fe=e}const xe=new Set;let un,wt;function pt(t,e){t&&t.i&&(xe.delete(t),t.i(e))}function dn(t,e,n,r){if(t&&t.o){if(xe.has(t))return;xe.add(t),un.c.push((()=>{xe.delete(t)})),t.o(e)}}function hn(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),Se((()=>{const e=t.$$.on_mount.map(gt).filter(mt);t.$$.on_destroy?t.$$.on_destroy.push(...e):we(e),t.$$.on_mount=[]})),o.forEach(Se)}function gn(t,e){const n=t.$$;null!==n.fragment&&(fn(n.after_update),we(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function mn(t,e){-1===t.$$.dirty[0]&&(ae.push(t),vt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function bn(t,e,n,r,o,i,a=null,l=[-1]){const s=pe;ve(t);const c=t.$$={fragment:null,ctx:[],props:i,update:Ce,not_equal:o,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:rt(),dirty:l,skip_bound:!1,root:e.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...r)=>{const i=r.length?r[0]:n;return c.ctx&&o(c.ctx[e],c.ctx[e]=i)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](i),u&&mn(t,e)),n})):[],c.update(),u=!0,we(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const t=tn(e.target);c.fragment&&c.fragment.l(t),t.forEach(W)}else c.fragment&&c.fragment.c();e.intro&&pt(t.$$.fragment),hn(t,e.target,e.anchor),w()}ve(s)}function Ee(t,e,n,r){var o;const i=null==(o=n[t])?void 0:o.type;if(e="Boolean"===i&&"boolean"!=typeof e?null!=e:e,!r||!n[t])return e;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}function yn(t,e,n,r,o,i){let a=class extends wt{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map((t=>(e[t].attribute||t).toLowerCase()))}};return Object.keys(e).forEach((t=>{Object.defineProperty(a.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(n){var r;n=Ee(t,n,e),this.$$d[t]=n,null==(r=this.$$c)||r.$set({[t]:n})}})})),r.forEach((t=>{Object.defineProperty(a.prototype,t,{get(){var e;return null==(e=this.$$c)?void 0:e[t]}})})),t.element=a,a}"function"==typeof HTMLElement&&(wt=class extends HTMLElement{constructor(t,e,n){super(),B(this,"$$ctor"),B(this,"$$s"),B(this,"$$c"),B(this,"$$cn",!1),B(this,"$$d",{}),B(this,"$$r",!1),B(this,"$$p_d",{}),B(this,"$$l",{}),B(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}if(this.$$l[t]){const n=this.$$l[t].indexOf(e);n>=0&&this.$$l[t].splice(n,1)}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(t){return()=>{let e;return{c:function(){e=A("slot"),"default"!==t&&a(e,"name",t)},m:function(t,n){T(t,e,n)},d:function(t){t&&W(e)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=rn(this);for(const r of this.$$s)r in n&&(e[r]=[t(r)]);for(const t of this.attributes){const e=this.$$g_p(t.name);e in this.$$d||(this.$$d[e]=Ee(e,t.value,this.$$p_d,"toProp"))}for(const t in this.$$p_d)!(t in this.$$d)&&void 0!==this[t]&&(this.$$d[t]=this[t],delete this[t]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=Ee(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}
7this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const t in this.$$l)for(const e of this.$$l[t]){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ee(t,n,this.$$p_d,"toProp"),null==(r=this.$$c)||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class vn{constructor(){B(this,"$$"),B(this,"$$set")}$destroy(){gn(this,1),this.$destroy=Ce}$on(t,e){if(!mt(e))return Ce;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!Bt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const pn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(pn);const _t=new TextEncoder;function wn(t){return[...new Uint8Array(t)].map((t=>t.toString(16).padStart(2,"0"))).join("")}async function _n(t,e="SHA-256",n=1e5){const r=Date.now().toString(16);t||(t=Math.round(Math.random()*n));return{algorithm:e,challenge:await kt(r,t,e),salt:r,signature:""}}async function kt(t,e,n){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 wn(await crypto.subtle.digest(n.toUpperCase(),_t.encode(t+e)))}function kn(t,e,n="SHA-256",r=1e6,o=0){const i=new AbortController,a=Date.now();return{promise:(async()=>{for(let l=o;l<=r;l+=1){if(i.signal.aborted)return null;if(await kt(e,l,n)===t)return{number:l,took:Date.now()-a}}return null})(),controller:i}}function xn(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function En(t){const e=atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n}function Cn(t,e=12){const n=new Uint8Array(e);for(let r=0;r<e;r++)n[r]=t%256,t=Math.floor(t/256);return n}async function In(t,e="",n=1e6,r=0){const o="AES-GCM",i=new AbortController,a=Date.now();let l=null,s=null;try{s=En(t);const n=await crypto.subtle.digest("SHA-256",_t.encode(e));l=await crypto.subtle.importKey("raw",n,o,!1,["decrypt"])}catch{return{promise:Promise.reject(),controller:i}}return{promise:(async()=>{for(let t=r;t<=n;t+=1){if(i.signal.aborted||!l||!s)return null;try{const e=await crypto.subtle.decrypt({name:o,iv:Cn(t)},l,s);if(e)return{clearText:(new TextDecoder).decode(e),took:Date.now()-a}}catch{}}return null})(),controller:i}}var m=(t=>(t.ERROR="error",t.VERIFIED="verified",t.VERIFYING="verifying",t.UNVERIFIED="unverified",t.EXPIRED="expired",t))(m||{});function Rn(t){$t(t,"svelte-ddsc3z",'.altcha.svelte-ddsc3z.svelte-ddsc3z{background:var(--altcha-color-base, transparent);border:var(--altcha-border-width, 1px) solid var(--altcha-color-border, #a0a0a0);border-radius:var(--altcha-border-radius, 3px);color:var(--altcha-color-text, currentColor);display:flex;flex-direction:column;max-width:var(--altcha-max-width, 260px);position:relative;text-align:left}.altcha.svelte-ddsc3z.svelte-ddsc3z:focus-within{border-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.svelte-ddsc3z{background:var(--altcha-color-base, white);display:none;filter:drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));left:-100%;position:fixed;top:-100%;width:var(--altcha-max-width, 260px);z-index:999999}.altcha[data-floating=top].svelte-ddsc3z .altcha-anchor-arrow.svelte-ddsc3z{border-bottom-color:transparent;border-top-color:var(--altcha-color-border, #a0a0a0);bottom:-12px;top:auto}.altcha[data-floating=bottom].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-bottom-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating=top].svelte-ddsc3z.svelte-ddsc3z:focus-within::after{border-top-color:var(--altcha-color-border-focus, currentColor)}.altcha[data-floating].svelte-ddsc3z.svelte-ddsc3z:not([data-state=unverified
7]){display:block}.altcha-anchor-arrow.svelte-ddsc3z.svelte-ddsc3z{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.svelte-ddsc3z.svelte-ddsc3z{align-items:center;display:flex;gap:0.4rem;padding:0.7rem}.altcha-label.svelte-ddsc3z.svelte-ddsc3z{flex-grow:1}.altcha-label.svelte-ddsc3z label.svelte-ddsc3z{cursor:pointer}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z{color:currentColor;opacity:0.3}.altcha-logo.svelte-ddsc3z.svelte-ddsc3z:hover{opacity:1}.altcha-error.svelte-ddsc3z.svelte-ddsc3z{color:var(--altcha-color-error-text, #f23939);display:flex;font-size:0.85rem;gap:0.3rem;padding:0 0.7rem 0.7rem}.altcha-footer.svelte-ddsc3z.svelte-ddsc3z{align-items:center;background-color:var(--altcha-color-footer-bg, transparent);display:flex;font-size:0.75rem;opacity:0.4;padding:0.2rem 0.7rem;text-align:right}.altcha-footer.svelte-ddsc3z.svelte-ddsc3z:hover{opacity:1}.altcha-footer.svelte-ddsc3z>.svelte-ddsc3z:first-child{flex-grow:1}.altcha-footer.svelte-ddsc3z a{color:currentColor}.altcha-checkbox.svelte-ddsc3z.svelte-ddsc3z{display:flex;align-items:center;height:24px;width:24px}.altcha-checkbox.svelte-ddsc3z input.svelte-ddsc3z{width:18px;height:18px;margin:0}.altcha-hidden.svelte-ddsc3z.svelte-ddsc3z{display:none}.altcha-spinner.svelte-ddsc3z.svelte-ddsc3z{animation:svelte-ddsc3z-altcha-spinner 0.75s infinite linear;transform-origin:center}@keyframes svelte-ddsc3z-altcha-spinner{100%{transform:rotate(360deg)}}')}function lt(t){let e,n,r;return{c(){e=Q("svg"),n=Q("path"),r=Q("path"),a(n,"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"),a(n,"fill","currentColor"),a(n,"opacity",".25"),a(r,"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"),a(r,"fill","currentColor"),a(r,"class","altcha-spinner svelte-ddsc3z"),a(e,"width","24"),a(e,"height","24"),a(e,"viewBox","0 0 24 24"),a(e,"xmlns","http://www.w3.org/2000/svg")},m(t,o){T(t,e,o),L(e,n),L(e,r)},d(t){t&&W(e)}}}function Ln(t){let e,n,r=t[11].label+"";return{c(){e=A("label"),a(e,"for",n=t[4]+"_checkbox"),a(e,"class","svelte-ddsc3z")},m(t,n){T(t,e,n),e.innerHTML=r},p(t,o){2048&o[0]&&r!==(r=t[11].label+"")&&(e.innerHTML=r),16&o[0]&&n!==(n=t[4]+"_checkbox")&&a(e,"for",n)},d(t){t&&W(e)}}}function zn(t){let e,n=t[11].verifying+"";return{c(){e=A("span")},m(t,r){T(t,e,r),e.innerHTML=n},p(t,r){2048&r[0]&&n!==(n=t[11].verifying+"")&&(e.innerHTML=n)},d(t){t&&W(e)}}}function Vn(t){let e,n,r,o=t[11].verified+"";return{c(){e=A("span"),n=$(),r=A("input"),a(r,"type","hidden"),a(r,"name",t[4]),r.value=t[6]},m(t,i){T(t,e,i),e.innerHTML=o,T(t,n,i),T(t,r,i)},p(t,n){2048&n[0]&&o!==(o=t[11].verified+"")&&(e.innerHTML=o),16&n[0]&&a(r,"name",t[4]),64&n[0]&&(r.value=t[6])},d(t){t&&(W(e),W(n),W(r))}}}function st(t){let e,n,r,o,i,l,s;return{c(){e=A("div"),n=A("a"),r=Q("svg"),o=Q("path"),i=Q("path"),l=Q("path"),a(o,"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"),a(o,"fill","currentColor"),a(i,"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"),a(i,"fill","currentColor"),a(l,"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"),a(l,"fill","currentColor"),a(r,"width","22"),a(r,"height","22"),a(r,"viewBox","0 0 20 20"),a(r,"fill","none"),a(r,"xmlns","http://www.w3.org/2000/svg"),a(n,"href",xt),a(n,"target","_blank"),a(n,"class","altcha-logo svelte-ddsc3z"),a(n,"aria-label",s=t[11].ariaLinkLabel)}
7,m(t,a){T(t,e,a),L(e,n),L(n,r),L(r,o),L(r,i),L(r,l)},p(t,e){2048&e[0]&&s!==(s=t[11].ariaLinkLabel)&&a(n,"aria-label",s)},d(t){t&&W(e)}}}function ct(t){let e,n,r,o;function i(t,e){return t[7]===m.EXPIRED?Gn:Sn}let l=i(t),s=l(t);return{c(){e=A("div"),n=Q("svg"),r=Q("path"),o=$(),s.c(),a(r,"stroke-linecap","round"),a(r,"stroke-linejoin","round"),a(r,"d","M6 18L18 6M6 6l12 12"),a(n,"width","14"),a(n,"height","14"),a(n,"xmlns","http://www.w3.org/2000/svg"),a(n,"fill","none"),a(n,"viewBox","0 0 24 24"),a(n,"stroke-width","1.5"),a(n,"stroke","currentColor"),a(e,"class","altcha-error svelte-ddsc3z")},m(t,i){T(t,e,i),L(e,n),L(n,r),L(e,o),s.m(e,null)},p(t,n){l===(l=i(t))&&s?s.p(t,n):(s.d(1),s=l(t),s&&(s.c(),s.m(e,null)))},d(t){t&&W(e),s.d()}}}function Sn(t){let e,n=t[11].error+"";return{c(){e=A("div"),a(e,"title",t[5])},m(t,r){T(t,e,r),e.innerHTML=n},p(t,r){2048&r[0]&&n!==(n=t[11].error+"")&&(e.innerHTML=n),32&r[0]&&a(e,"title",t[5])},d(t){t&&W(e)}}}function Gn(t){let e,n=t[11].expired+"";return{c(){e=A("div"),a(e,"title",t[5])},m(t,r){T(t,e,r),e.innerHTML=n},p(t,r){2048&r[0]&&n!==(n=t[11].expired+"")&&(e.innerHTML=n),32&r[0]&&a(e,"title",t[5])},d(t){t&&W(e)}}}function at(t){let e,n,r=t[11].footer+"";return{c(){e=A("div"),n=A("div"),a(n,"class","svelte-ddsc3z"),a(e,"class","altcha-footer svelte-ddsc3z")},m(t,o){T(t,e,o),L(e,n),n.innerHTML=r},p(t,e){2048&e[0]&&r!==(r=t[11].footer+"")&&(n.innerHTML=r)},d(t){t&&W(e)}}}function ft(t){let e;return{c(){e=A("div"),a(e,"class","altcha-anchor-arrow svelte-ddsc3z")},m(n,r){T(n,e,r),t[48](e)},p:Ce,d(n){n&&W(e),t[48](null)}}}function Nn(t){let e,n,r,o,i,l,s,c,u,d,f,h,p,g,b,v,y;const x=t[46].default,w=Dt(x,t,t[45],null);let k=t[7]===m.VERIFYING&&lt();function E(t,e){return t[7]===m.VERIFIED?Vn:t[7]===m.VERIFYING?zn:Ln}let I=E(t),C=I(t),R=(!0!==t[3]||t[12])&&st(t),z=(t[5]||t[7]===m.EXPIRED)&&ct(t),V=t[11].footer&&(!0!==t[2]||t[12])&&at(t),G=t[1]&&ft(t);return{c(){w&&w.c(),e=$(),n=A("div"),r=A("div"),k&&k.c(),o=$(),i=A("div"),l=A("input"),u=$(),d=A("div"),C.c(),f=$(),R&&R.c(),h=$(),z&&z.c(),p=$(),V&&V.c(),g=$(),G&&G.c(),a(l,"type","checkbox"),a(l,"id",s=t[4]+"_checkbox"),l.required=c="onsubmit"!==t[0]&&(!t[1]||"off"!==t[0]),a(l,"class","svelte-ddsc3z"),a(i,"class","altcha-checkbox svelte-ddsc3z"),it(i,"altcha-hidden",t[7]===m.VERIFYING),a(d,"class","altcha-label svelte-ddsc3z"),a(r,"class","altcha-main svelte-ddsc3z"),a(n,"class","altcha svelte-ddsc3z"),a(n,"data-state",t[7]),a(n,"data-floating",t[1])},m(a,s){w&&w.m(a,s),T(a,e,s),T(a,n,s),L(n,r),k&&k.m(r,null),L(r,o),L(r,i),L(i,l),l.checked=t[8],L(r,u),L(r,d),C.m(d,null),L(r,f),R&&R.m(r,null),L(n,h),z&&z.m(n,null),L(n,p),V&&V.m(n,null),L(n,g),G&&G.m(n,null),t[49](n),b=!0,v||(y=[Le(l,"change",t[47]),Le(l,"change",t[13]),Le(l,"invalid",t[14])],v=!0)},p(t,e){w&&w.p&&(!b||16384&e[1])&&Ot(w,x,t,t[45],b?Jt(x,t[45],e,null):Kt(t[45]),null),t[7]===m.VERIFYING?k||(k=lt(),k.c(),k.m(r,o)):k&&(k.d(1),k=null),(!b||16&e[0]&&s!==(s=t[4]+"_checkbox"))&&a(l,"id",s),(!b||3&e[0]&&c!==(c="onsubmit"!==t[0]&&(!t[1]||"off"!==t[0])))&&(l.required=c),256&e[0]&&(l.checked=t[8]),(!b||128&e[0])&&it(i,"altcha-hidden",t[7]===m.VERIFYING),I===(I=E(t))&&C?C.p(t,e):(C.d(1),C=I(t),C&&(C.c(),C.m(d,null))),!0!==t[3]||t[12]?R?R.p(t,e):(R=st(t),R.c(),R.m(r,null)):R&&(R.d(1),R=null),t[5]||t[7]===m.EXPIRED?z?z.p(t,e):(z=ct(t),z.c(),z.m(n,p)):z&&(z.d(1),z=null),t[11].footer&&(!0!==t[2]||t[12])?V?V.p(t,e):(V=at(t),V.c(),V.m(n,g)):V&&(V.d(1),V=null),t[1]?G?G.p(t,e):(G=ft(t),G.c(),G.m(n,null)):G&&(G.d(1),G=null),(!b||128&e[0])&&a(n,"data-state",t[7]),(!b||2&e[0])&&a(n,"data-floating",t[1])},i(t){b||(pt(w,t),b=!0)},o(t){dn(w,t),b=!1},d(r){r&&(W(e),W(n)),w&&w.d(r),k&&k.d(),C.d(),R&&R.d(),z&&z.d(),V&&V.d(),G&&G.d(),t[49](null),v=!1,we(y)}}}const ut="Visit Altcha.org",xt="https://altcha.org/";function dt(t){return JSON.parse(t)}function An(t,e,n){var r,o;let i,a,l,s,{$$slots:c={},$$scope:u}=e,{auto:d}=e,{blockspam:f}=e,{challengeurl:h}=e,{challengejson:p}=e,{debug:g=!1}=e,{delay:$=0}=e,{expire:b}=e,{floating:v}=e,{floatinganchor:y}=e,{floatingoffset:x}=e,{hidefooter:w=!1}=e,{hidelogo:k=!1}=e,{name:E="altcha"}=e,{maxnumber:L=1e6}=e,{mockerror:I=!1}=e,{obfuscated:C}=e,{plugins:R}=e,{refetchonexpire:z=!0}=e,{spamfilter:A=!1}=e,{strings:V}=e,{test:G=!1}=e,{verifyurl:S}=e,{workers:N=Math.min(16,navigator.hardwareConcurrency||8)}=e,{workerurl:W}=e;const X=sn(),T=["SHA-256","SHA-384","SHA-512"],Z=null==(o=null==(r=document.documentElement.lang)?void 0:r.split("-"))?void 0:o[0];let Y,j=!1,F=null,B=null,M=null,P=null,U=null,_=null,H=[],J=m.UNVERIFIED;function D(t,e){return btoa(JSON.stringify({algorithm:t.algorithm,challenge:t.challenge,number:e.number,salt:t.salt,signature:t.signature,test:!!G||void 0,took:e.took}))}function O(){h&&z&&J===m.VERIFIED?wt():bt(m.EXPIRED,s.expired)}function K(...t){(g||t.some((t=>t instanceof Error)))&&console[t[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${E}]`,...t)}function Q(t){const e=t.target;v&&e&&!Y.contains(e)&&(J===m.VERIFIED||"off"===d&&J===m.UNVERIFIED)&&n(9,Y.style.display="none",Y)}function q(){v&&J!==m.UNVERIFIED&&it()}function tt(t){J===m.UNVERIFIED&&wt()}function et(t){M&&"onsubmit"===d?J===m.UNVERIFIED?(t.preventDefault(),t.stopPropagation(),wt().then((()=>{null==M||M.requestSubmit()}))):J!==m.VERIFIED&&(t.preventDefault(),t.stopPropagation(),J===m.VERIFYING&&rt()):M&&v&&"off"===d&&J===m.UNVERIFIED&&(t.preventDefault(),t.stopPropagation(),n(9,Y.style.display="block",Y),it())}function nt(){bt()}function rt(){J===m.VERIFYING&&s.waitAlert&&alert(s.waitAlert)}
7function ot(){v&&it()}function it(t=20){if(Y)if(B||(B=(y?document.querySelector(y):null==M?void 0:M.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||M),B){const e=parseInt(x,10)||12,r=B.getBoundingClientRect(),o=Y.getBoundingClientRect(),i=document.documentElement.clientHeight,a=document.documentElement.clientWidth,l="auto"===v?r.bottom+o.height+e+t>i:"top"===v,s=Math.max(t,Math.min(a-t-o.width,r.left+r.width/2-o.width/2));if(n(9,Y.style.top=l?r.top-(o.height+e)+"px":`${r.bottom+e}px`,Y),n(9,Y.style.left=`${s}px`,Y),Y.setAttribute("data-floating",l?"top":"bottom"),F){const t=F.getBoundingClientRect();n(10,F.style.left=r.left-s+r.width/2-t.width/2+"px",F)}}else K("unable to find floating anchor element")}async function at(t){if(!S)throw new Error("Attribute verifyurl not set.");K("requesting server verification from",S);const e={payload:t};if(A){const{blockedCountries:t,classifier:n,disableRules:r,email:o,expectedLanguages:i,expectedCountries:a,fields:l,ipAddress:s,text:c,timeZone:u}="ipAddress"===A?{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}:"object"==typeof A?A:{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};e.blockedCountries=t,e.classifier=n,e.disableRules=r,e.email=!1===o?void 0:function(t){var e;const n=null==M?void 0:M.querySelector("string"==typeof t?`input[name="${t}"]`:'input[type="email"]:not([data-no-spamfilter])');return(null==(e=null==n?void 0:n.value)?void 0:e.slice(n.value.indexOf("@")))||void 0}(o),e.expectedCountries=a,e.expectedLanguages=i||(Z?[Z]:void 0),e.fields=!1===l?void 0:function(t){return[...(null==M?void 0:M.querySelectorAll(null!=t&&t.length?t.map((t=>`input[name="${t}"]`)).join(", "):'input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])'))||[]].reduce(((t,e)=>{const n=e.name,r=e.value;return n&&r&&(t[n]=/\n/.test(r)?r.replace(new RegExp("(?<!\\r)\\n","g"),"\r\n"):r),t}),{})}(l),e.ipAddress=!1===s?void 0:s||"auto",e.text=c,e.timeZone=!1===u?void 0:u||xn()}const r=await fetch(S,{body:JSON.stringify(e),headers:{"content-type":"application/json"},method:"POST"});if(200!==r.status)throw new Error(`Server responded with ${r.status}.`);const o=await r.json();if(null!=o&&o.payload&&n(6,_=o.payload),X("serververification",o),f&&"BAD"===o.classification)throw new Error("SpamFilter returned negative classification.")}function lt(t){K("expire",t),U&&(clearTimeout(U),U=null),t<1?O():U=setTimeout(O,t)}function st(t){K("floating",t),v!==t&&(n(9,Y.style.left="",Y),n(9,Y.style.top="",Y)),n(1,v=!0===t||""===t?"auto":!1===t||"false"===t?void 0:v),v?(d||n(0,d="onsubmit"),document.addEventListener("scroll",q),document.addEventListener("click",Q),window.addEventListener("resize",ot)):"onsubmit"===d&&n(0,d=void 0)}function ct(t){if(!t.algorithm)throw new Error("Invalid challenge. Property algorithm is missing.");if(void 0===t.signature)throw new Error("Invalid challenge. Property signature is missing.");if(!T.includes(t.algorithm.toUpperCase()))throw new Error(`Unknown algorithm value. Allowed values: ${T.join(", ")}`);if(!t.challenge||t.challenge.length<40)throw new Error("Challenge is too short. Min. 40 chars.");if(!t.salt||t.salt.length<10)throw new Error("Salt is too short. Min. 10 chars.")}async function ft(t){let e=null;if("Worker"in window){try{e=await async function(t,e=("number"==typeof G?G:L),n=Math.ceil(N)){const r=[];n=Math.min(16,Math.max(1,n));for(let t=0;t<n;t++)r.push(altchaCreateWorker(W));const o=Math.ceil(e/n),i=await Promise.all(r.map(((e,n)=>{const i=n*o;return new Promise((n=>{e.addEventListener("message",(t=>{if(t.data)for(const t of r)t!==e&&t.postMessage({type:"abort"});n(t.data)})),e.postMessage({payload:t,max:i+o,start:i,type:"work"})}))})));for(const t of r)t.terminate();return i.find((t=>!!t))||null}(t,t.maxnumber)}catch(t){K(t)}if(void 0!==(null==e?void 0:e.number)||"obfuscated"in t)return{data:t,solution:e}}if("obfuscated"in t){const e=await In(t.obfuscated,t.key,t.maxnumber);return{data:t,solution:await e.promise}}return{data:t,solution:await kn(t.challenge,t.salt,t.algorithm,t.maxnumber||L).promise}}async function ht(){if(!C)return void n(7,J=m.ERROR);const t=H.find((t=>"obfuscation"===t.constructor.pluginName));return t&&"clarify"in t?"clarify"in t&&"function"==typeof t.clarify?t.clarify():void 0:(n(7,J=m.ERROR),void K("Plugin `obfuscation` not found. Import `altcha/plugins/obfuscation` to load it."))}function pt(t){void 0!==t.obfuscated&&n(24,C=t.obfuscated),void 0!==t.auto&&(n(0,d=t.auto),"onload"===d&&(C?ht():wt())),void 0!==t.blockspam&&n(16,f=!!t.blockspam),void 0!==t.floatinganchor&&n(20,y=t.floatinganchor),void 0!==t.delay&&n(18,$=t.delay),void 0!==t.floatingoffset&&n(21,x=t.floatingoffset),void 0!==t.floating&&st(t.floating),void 0!==t.expire&&(lt(t.expire),n(19,b=t.expire)),t.challenge&&(ct(t.challenge),a=t.challenge),void 0!==t.challengeurl&&n(15,h=t.challengeurl),void 0!==t.debug&&n(17,g=!!t.debug),void 0!==t.hidefooter&&n(2,w=!!t.hidefooter),void 0!==t.hidelogo&&n(3,k=!!t.hidelogo),void 0!==t.maxnumber&&n(22,L=+t.maxnumber),void 0!==t.mockerror&&n(23,I=!!t.mockerror),void 0!==t.name&&n(4,E=t.name),void 0!==t.refetchonexpire&&n(25,z=!!t.refetchonexpire),void 0!==t.spamfilter&&n(26,A="object"==typeof t.spamfilter?t.spamfilter:!!t.spamfilter),t.strings&&n(44,l=t.strings),void 0!==t.test&&n(27,G="number"==typeof t.test?t.test:!!t.test),void 0!==t.verifyurl&&n(28,S=t.verifyurl),void 0!==t.workers&&n(29,N=+t.workers),void 0!==t.workerurl&&n(30,W=t.workerurl)}function gt(){return{auto:d,blockspam:f,challengeurl:h,debug:g,delay:$,expire:b,floating:v,floatinganchor:y,floatingoffset:x,hidefooter:w,hidelogo:k,name:E,maxnumber:L,mockerror:I,obfuscated:C,refetchonexpire:z,spamfilter:A,strings:s,test:G,verifyurl:S,workers:N,workerurl:W}}function mt(){return B}function $t(){return J}function bt(t=m.UNVERIFIED,e=null){U&&(clearTimeout(U),U=null),n(8,j=!1),n(5,P=e),n(6,_=null),n(7,J=t)}function vt(t){B=t}function yt(t,e=null){n(7,J=t),n(5,P=e)}async function wt(){return bt(m.VERIFYING),await new Promise((t=>setTimeout(t,$||0))),async function(){var t;if(I)throw K("mocking error"),new Error("Mocked error.");if(a)return K("using provided json data"),a;if(G)return K("generating test challenge",{test:G}),_n("boolean"!=typeof G?+G:void 0);{if(!h&&M){const t=M.getAttribute("action");null!=t&&t.includes("/form/")&&n(15,h=t+"/altcha")}if(!h)throw new Error("Attribute challengeurl not set.");K("fetching challenge from",h);const e=await fetch(h,{headers:A?{"x-altcha-spam-filter":"1"}:{}});if(200!==e.status)throw new Error(`Server responded with ${e.status}.`);const r=e.headers.get("Expires"),o=e.headers.get("X-Altcha-Config"),i=await e.json(),a=new URLSearchParams(null==(t=i.salt.split("?"))?void 0:t[1]),l=a.get("expires")||a.get("expire");if(l){const t=new Date(1e3*+l),e=isNaN(t.getTime())?0:t.getTime()-Date.now();e>0&&lt(e)}if(o)try{const t=JSON.parse(o);t&&"object"==typeof t&&(t.verifyurl&&(t.verifyurl=new URL(t.verifyurl,new URL(h)).toString()),pt(t))}catch(t){K("unable to configure from X-Altcha-Config",t)}if(!b&&null!=r&&r.length){const t=Date.parse(r);if(t){const e=t-Date.now();e>0&&lt(e)}}return i}}().then((t=>(ct(t),K("challenge",t),ft(t)))).then((({data:t,solution:e})=>
7{if(K("solution",e),"challenge"in t&&e&&!("clearText"in e)){if(void 0===(null==e?void 0:e.number))throw K("Unable to find a solution. Ensure that the 'maxnumber' attribute is greater than the randomly generated number."),new Error("Unexpected result returned.");if(S)return at(D(t,e));n(6,_=D(t,e)),K("payload",_)}})).then((()=>{n(7,J=m.VERIFIED),K("verified"),cn().then((()=>{X("verified",{payload:_})}))})).catch((t=>{K(t),n(7,J=m.ERROR),n(5,P=t.message)}))}return ln((()=>{(function(){for(const t of H)t.destroy()})(),M&&(M.removeEventListener("submit",et),M.removeEventListener("reset",nt),M.removeEventListener("focusin",tt),M=null),U&&(clearTimeout(U),U=null),document.removeEventListener("click",Q),document.removeEventListener("scroll",q),window.removeEventListener("resize",ot)})),on((()=>{K("mounted","1.0.7"),K("workers",N),function(){const t=void 0!==R?R.split(","):void 0;for(const e of globalThis.altchaPlugins)(!t||t.includes(e.pluginName))&&H.push(new e({el:Y,clarify:ht,dispatch:X,getConfiguration:gt,getFloatingAnchor:mt,getState:$t,log:K,reset:bt,solve:ft,setState:yt,setFloatingAnchor:vt,verify:wt}))}(),K("plugins",H.length?H.map((t=>t.constructor.pluginName)).join(", "):"none"),G&&K("using test mode"),b&&lt(b),void 0!==d&&K("auto",d),void 0!==v&&st(v),M=Y.closest("form"),M&&(M.addEventListener("submit",et,{capture:!0}),M.addEventListener("reset",nt),"onfocus"===d&&M.addEventListener("focusin",tt)),"onload"===d&&(C?ht():wt()),i&&(w||k)&&K("Attributes hidefooter and hidelogo ignored because usage with free API Keys requires attribution."),requestAnimationFrame((()=>{X("load")}))})),t.$$set=t=>{"auto"in t&&n(0,d=t.auto),"blockspam"in t&&n(16,f=t.blockspam),"challengeurl"in t&&n(15,h=t.challengeurl),"challengejson"in t&&n(31,p=t.challengejson),"debug"in t&&n(17,g=t.debug),"delay"in t&&n(18,$=t.delay),"expire"in t&&n(19,b=t.expire),"floating"in t&&n(1,v=t.floating),"floatinganchor"in t&&n(20,y=t.floatinganchor),"floatingoffset"in t&&n(21,x=t.floatingoffset),"hidefooter"in t&&n(2,w=t.hidefooter),"hidelogo"in t&&n(3,k=t.hidelogo),"name"in t&&n(4,E=t.name),"maxnumber"in t&&n(22,L=t.maxnumber),"mockerror"in t&&n(23,I=t.mockerror),"obfuscated"in t&&n(24,C=t.obfuscated),"plugins"in t&&n(32,R=t.plugins),"refetchonexpire"in t&&n(25,z=t.refetchonexpire),"spamfilter"in t&&n(26,A=t.spamfilter),"strings"in t&&n(33,V=t.strings),"test"in t&&n(27,G=t.test),"verifyurl"in t&&n(28,S=t.verifyurl),"workers"in t&&n(29,N=t.workers),"workerurl"in t&&n(30,W=t.workerurl),"$$scope"in t&&n(45,u=t.$$scope)},t.$$.update=()=>{32768&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(12,i=p&&new URL(p,location.origin).host.endsWith(".altcha.org")&&!(null==h||!h.includes("apiKey=ckey_"))),1&t.$$.dirty[1]&&(a=p?dt(p):void 0),4&t.$$.dirty[1]&&n(44,l=V?dt(V):{}),8192&t.$$.dirty[1]&&n(11,s={ariaLinkLabel:ut,error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:`Protected by <a href="${xt}" target="_blank" aria-label="${l.ariaLinkLabel||ut}">ALTCHA</a>`,label:"I'm not a robot",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait.",...l}),192&t.$$.dirty[0]&&X("statechange",{payload:_,state:J}),32&t.$$.dirty[0]&&function(){for(const t of H)"function"==typeof t.onErrorChange&&t.onErrorChange(P)}(),128&t.$$.dirty[0]&&function(){for(const t of H)"function"==typeof t.onStateChange&&t.onStateChange(J);v&&J!==m.UNVERIFIED&&requestAnimationFrame((()=>{it()})),n(8,j=J===m.VERIFIED)}()},[d,v,w,k,E,P,_,J,j,Y,F,s,i,function(){[m.UNVERIFIED,m.ERROR,m.EXPIRED].includes(J)?A&&!1===(null==M?void 0:M.reportValidity())?n(8,j=!1):C?ht():wt():n(8,j=!0)},rt,h,f,g,$,b,y,x,L,I,C,z,A,G,S,N,W,p,R,V,ht,pt,gt,mt,function(t){return H.find((e=>e.constructor.pluginName===t))},$t,bt,vt,yt,wt,l,u,c,function(){j=this.checked,n(8,j)},function(t){Ie[t?"unshift":"push"]((()=>{F=t,n(10,F)}))},function(t){Ie[t?"unshift":"push"]((()=>{Y=t,n(9,Y)}))}]}class Xn extends vn{constructor(t){super(),bn(this,t,An,Nn,Ht,{auto:0,blockspam:16,challengeurl:15,challengejson:31,debug:17,delay:18,expire:19,floating:1,floatinganchor:20,floatingoffset:21,hidefooter:2,hidelogo:3,name:4,maxnumber:22,mockerror:23,obfuscated:24,plugins:32,refetchonexpire:25,spamfilter:26,strings:33,test:27,verifyurl:28,workers:29,workerurl:30,clarify:34,configure:35,getConfiguration:36,getFloatingAnchor:37,getPlugin:38,getState:39,reset:40,setFloatingAnchor:41,setState:42,verify:43},Rn,[-1,-1,-1])}get auto(){return this.$$.ctx[0]}set auto(t){this.$$set({auto:t}),w()}get blockspam(){return this.$$.ctx[16]}set blockspam(t){this.$$set({blockspam:t}),w()}get challengeurl(){return this.$$.ctx[15]}set challengeurl(t){this.$$set({challengeurl:t}),w()}get challengejson(){return this.$$.ctx[31]}set challengejson(t){this.$$set({challengejson:t}),w()}get debug(){return this.$$.ctx[17]}set debug(t){this.$$set({debug:t}),w()}get delay(){return this.$$.ctx[18]}set delay(t){this.$$set({delay:t}),w()}get expire(){return this.$$.ctx[19]}set expire(t){this.$$set({expire:t}),w()}get floating(){return this.$$.ctx[1]}set floating(t){this.$$set({floating:t}),w()}get floatinganchor(){return this.$$.ctx[20]}set floatinganchor(t){this.$$set({floatinganchor:t}),w()}get floatingoffset(){return this.$$.ctx[21]}set floatingoffset(t){this.$$set({floatingoffset:t}),w()}get hidefooter(){return this.$$.ctx[2]}set hidefooter(t){this.$$set({hidefooter:t}),w()}get hidelogo(){return this.$$.ctx[3]}set hidelogo(t){this.$$set({hidelogo:t}),w()}get name(){return this.$$.ctx[4]}set name(t){this.$$set({name:t}),w()}get maxnumber(){return this.$$.ctx[22]}set maxnumber(t){this.$$set({maxnumber:t}),w()}get mockerror(){return this.$$.ctx[23]}set mockerror(t){this.$$set({mockerror:t}),w()}get obfuscated(){return this.$$.ctx[24]}set obfuscated(t){this.$$set({obfuscated:t}),w()}get plugins(){return this.$$.ctx[32]}set plugins(t){this.$$set({plugins:t}),w()}
7get refetchonexpire(){return this.$$.ctx[25]}set refetchonexpire(t){this.$$set({refetchonexpire:t}),w()}get spamfilter(){return this.$$.ctx[26]}set spamfilter(t){this.$$set({spamfilter:t}),w()}get strings(){return this.$$.ctx[33]}set strings(t){this.$$set({strings:t}),w()}get test(){return this.$$.ctx[27]}set test(t){this.$$set({test:t}),w()}get verifyurl(){return this.$$.ctx[28]}set verifyurl(t){this.$$set({verifyurl:t}),w()}get workers(){return this.$$.ctx[29]}set workers(t){this.$$set({workers:t}),w()}get workerurl(){return this.$$.ctx[30]}set workerurl(t){this.$$set({workerurl:t}),w()}get clarify(){return this.$$.ctx[34]}get configure(){return this.$$.ctx[35]}get getConfiguration(){return this.$$.ctx[36]}get getFloatingAnchor(){return this.$$.ctx[37]}get getPlugin(){return this.$$.ctx[38]}get getState(){return this.$$.ctx[39]}get reset(){return this.$$.ctx[40]}get setFloatingAnchor(){return this.$$.ctx[41]}get setState(){return this.$$.ctx[42]}get verify(){return this.$$.ctx[43]}}customElements.define("altcha-widget",yn(Xn,{auto:{},blockspam:{},challengeurl:{},challengejson:{},debug:{type:"Boolean"},delay:{},expire:{},floating:{},floatinganchor:{},floatingoffset:{},hidefooter:{type:"Boolean"},hidelogo:{type:"Boolean"},name:{},maxnumber:{},mockerror:{type:"Boolean"},obfuscated:{},plugins:{},refetchonexpire:{type:"Boolean"},spamfilter:{type:"Boolean"},strings:{},test:{type:"Boolean"},verifyurl:{},workers:{},workerurl:{}},["default"],["clarify","configure","getConfiguration","getFloatingAnchor","getPlugin","getState","reset","setFloatingAnchor","setState","verify"],!1)),globalThis.altchaCreateWorker=t=>t?new Worker(new URL(t)):new Mt,globalThis.altchaPlugins=globalThis.altchaPlugins||[];export{Xn as Altcha};
8//# sourceMappingURL=/sm/c915469f81d8a205c2252d60bd959510b0e975616c713f6beb551f7fec3ad6b2.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.