PageSourceSearch

https://www.dynamoretailgroup.com/ui/uibase/vendor/altcha/dist/main/altcha.min.js?rev=

js dynamoretailgroup.com collected 2026-09-30 15:24:36 UTC 115,652 bytes, 1 lines download raw bytes

vendor: 115,652 bytes, line 1
1const e=!1;var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,a=Array.from,o=Object.keys,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,u=Array.prototype,f=Object.getPrototypeOf,d=Object.isExtensible;const h=()=>{};function p(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const v=1<<24,g=16,m=32,b=64,y=512,w=1024,x=2048,_=4096,k=8192,$=16384,S=32768,E=1<<25,C=65536,T=1<<17,A=1<<19,I=65536,O=1<<21,P=1<<23,R=Symbol("$state"),L=Symbol("component"),M=Symbol("legacy props"),V=Symbol(""),D=Symbol("attributes"),U=Symbol("class"),N=Symbol("style"),j=Symbol("text"),z=Symbol("form reset"),B=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},F=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function H(e){return e===this.v}function K(e,t){return e!=e?t==t:e!==t||null!==e&&"object"==typeof e||"function"==typeof e}function q(e){return!K(e,this.v)}const Y={},G=Symbol("uninitialized"),W="http://www.w3.org/1999/xhtml";let J=null;function Z(e){J=e}function X(e,t=!1,n){J={p:J,i:!1,c:null,e:null,s:e,x:null,r:Bt,l:null}}function Q(e){var t=J,n=t.e;if(null!==n)for(var r of(t.e=null,n))bn(r);return void 0!==e&&(t.x=e),t.i=!0,J=t.p,ee(e)}function ee(e={}){return i(e,L,{value:!0}),e}let te=[];function ne(){var e=te;te=[],function(e){for(var t=0;t<e.length;t++)e[t]()}(e)}function re(e){if(0===te.length&&!ft){var t=te;queueMicrotask(()=>{t===te&&ne()})}te.push(e)}function ae(){for(;te.length>0;)ne()}function oe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let ie,le=!1;function se(e){le=e}function ce(e){if(null===e)throw oe(),Y;return ie=e}function ue(){return ce(Ee(ie))}function fe(e){if(le){if(null!==Ee(ie))throw oe(),Y;ie=e}}function de(e=1){if(le){for(var t=e,n=ie;t--;)n=Ee(n);ie=n}}function he(e=!0){for(var t=0,n=ie;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else("["===r||"[!"===r||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var a=Ee(n);e&&n.remove(),n=a}}function pe(e){if(!e||8!==e.nodeType)throw oe(),Y;return e.data}function ve(e){if("object"!=typeof e||null===e||R in e||L in e)return e;const n=f(e);if(n!==c&&n!==u)return e;var r=new Map,a=t(e),o=It(0),i=Zt,s=e=>{if(Zt===i)return e();var t=Nt,n=Zt;zt(null),Xt(i);var r=e();return zt(t),Xt(n),r};return a&&r.set("length",It(e.length)),new Proxy(e,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var a=r.get(t);return void 0===a?s(()=>{var e=It(n.value);return r.set(t,e),e}):Pt(a,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(void 0===n){if(t in e){const e=s(()=>It(G));r.set(t,e),Lt(o)}}else Pt(n,G),Lt(o);return!0},get(t,n,a){if(n===R)return e;var o=r.get(n),i=n in t;if(void 0!==o||i&&!l(t,n)?.writable||(o=s(()=>It(ve(i?t[n]:G))),r.set(n,o)),void 0!==o){var c=cn(o);return c===G?void 0:c}return Reflect.get(t,n,a)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&"value"in n){var a=r.get(t);a&&(n.value=cn(a))}else if(void 0===n){var o=r.get(t),i=o?.v;if(void 0!==o&&i!==G)return{enumerable:!0,configurable:!0,value:i,writable:!0}}return n},has(e,t){if(t===R)return!0;var n=r.get(t),a=void 0!==n&&n.v!==G||Reflect.has(e,t);if((void 0!==n||null!==Bt&&(!a||l(e,t)?.writable))&&(void 0===n&&(n=s(()=>It(a?ve(e[t]):G)),r.set(t,n)),cn(n)===G))return!1;return a},set(e,t,n,i){var c=r.get(t),u=t in e;if(a&&"length"===t)for(var f=n;f<c.v;f+=1){var d=r.get(f+"");void 0!==d?Pt(d,G):f in e&&(d=s(()=>It(G)),r.set(f+"",d))}void 0===c?u&&!l(e,t)?.writable||(Pt(c=s(()=>It(void 0)),ve(n)),r.set(t,c)):(u=c.v!==G,Pt(c,s(()=>ve(n))));var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(i,n),!u){if(a&&"string"==typeof t){var p=r.get("length"),v=Number(t);Number.isInteger(v)&&v>=p.v&&Pt(p,v+1)}Lt(o)}return!0},ownKeys(e){cn(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return void 0===t||t.v!==G});for(var[n,a]of r)a.v===G||n in e||t.push(n);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function ge(e){try{if(null!==e&&"object"==typeof e&&R in e)return e[R]}catch{}return e}function me(e,t){return Object.is(ge(e),ge(t))}var be,ye,we,xe,_e;function ke(){if(void 0===be){be=window,ye=document,we=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;xe=l(t,"firstChild").get,_e=l(t,"nextSibling").get,d(e)&&(e[U]=void 0,e[D]=null,e[N]=void 0,e.__e=void 0),d(n)&&(n[j]=void 0)}}function $e(e=""){return document.createTextNode(e)}function Se(e){return xe.call(e)}function Ee(e){return _e.call(e)}function Ce(e,t){if(!le)return Se(e);var n=Se(ie);if(null===n)n=ie.appendChild($e());else if(t&&3!==n.nodeType){var r=$e();return n?.before(r),ce(r),r}return t&&Pe(n),ce(n),n}function Te(e,t=!1){if(!le){var n=Se(e);return n instanceof Comment&&""===n.data?Ee(n):n}if(t){if(3!==ie?.nodeType){var r=$e();return ie?.before(r),ce(r),r}Pe(ie)}return ie}function Ae(e,t=!1){if(!le)return Se(e);var n=Ce(e,t);return fe(e),n}function Ie(e,t=1,n=!1){let r=le?ie:e;for(var a;t--;)a=r,r=Ee(r);if(!le)return r;if(n){if(3!==r?.nodeType){var o=$e();return null===r?a?.after(o):r.before(o),ce(o),o}Pe(r)}return ce(r),r}function Oe(e,t,n){return null==t||t===W?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Pe(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Re(e,t){if(null===t||0===(t.f&$)){for(;null!==t;){if(128&t.f&&!(33570816&t.f)){if(0===(t.f&S))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw e}}const Le=-7169;function Me(e,t){e.f=e.f&Le|t}function Ve(e){0!==(e.f&y)||null===e.deps?Me(e,w):Me(e,_)}function De(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&I)&&(t.f^=I,De(t.deps))}function Ue(e,t,n){0!==(e.f&x)?t.add(e):0!==(e.f&_)&&n.add(e),De(e.deps),Me(e,w)}function Ne(e,t,n){if(null==e)return t(void 0),h;const r=dn(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const je=[];function ze(e,t=h){let n=null;const r=new Set;function a(t){if(K(e,t)&&(e=t,n)){const t=!je.length;for(const t of r)t[1](),je.push(t,e);if(t){for(let e=0;e<je.length;e+=2)je[e][0](je[e+1]);je.length=0}}}function o(t){a(t(e))}return{set:a,update:o,subscribe:function(i,l=h){const s=[i,l];return r.add(s),1===r.size&&(n=t(a,o)||h),i(e),()=>{r.delete(s),0===r.size&&n&&(n(),n=null)}}}}function Be(e){let t;return Ne(e,e=>t=e)(),t}let Fe=Symbol("unmounted");function He(e,t,n){const r=n[t]??={store:null,source:Ot(void 0),unsubscribe:h};if(r.store!==e&&!(Fe in n))if(r.unsubscribe(),r.store=e??null,null==e)r.source.v=void 0,r.unsubscribe=h;else{var a=!0;r.unsubscribe=Ne(e,e=>{a?r.source.v=e:Pt(r.source,e)}),a=!1}return e&&Fe in n?Be(e):cn(r.source)}function Ke(e,t){if(t){const t=document.body;e.autofocus=!0,re(()=>{document.activeElement===t&&e.focus()})}}let qe=!1;function Ye(){qe||(qe=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t[z]?.()})},{capture:!0}))}function Ge(e){var t=Nt,n=Bt;zt(null),Ft(null);try{return e()}finally{zt(t),Ft(n)}}function We(e,t,n,r){const a=Xe;var o=e.filter(e=>!e.settled),i=t.map(a);if(0!==n.length||0!==o.length){var l,s,c,u,f=Bt,d=(l=Bt,s=Nt,c=J,u=lt,function(e=!0){Ft(l),zt(s),Z(c),e&&0===(l.f&$)&&(u?.activate(),u?.apply())}),h=1===o.length?o[0].promise:o.length>1?Promise.all(o.map(e=>e.promise)):null,p=Ze();0!==n.length?h?h.then(()=>{d(),g(),Je()}):g():h.then(()=>v([])).finally(p)}else r(i);function v(e){if(0===(f.f&$)){d();try{r([...i,...e])}catch(e){Re(e,f)}Je()}}function g(){Promise.all(n.map(e=>et(e))).then(v).catch(e=>Re(e,f)).finally(p)}}function Je(e=!0){Ft(null),zt(null),Z(null),e&&lt?.deactivate()}function Ze(){var e=Bt,t=e.b,n=lt,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Xe(e){null!==Bt&&(Bt.f|=A);return{ctx:J,deps:null,effects:null,equals:H,f:2050,fn:e,reactions:null,rv:0,v:G,wv:0,parent:Bt,ac:null}}const Qe=Symbol("obsolete");function et(e,t,n){let r=Bt;null===r&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var a=void 0,o=At(G),i=!Nt,l=new Set;return function(e){pn(4718592,e)}(()=>{var t=Bt,n=p();a=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==B&&n.reject(e)}).finally(Je)}catch(e){n.reject(e),Je()}var s=lt;if(i){if(0!==(t.f&S))var c=Ze();if(r.b?.is_rendered())s.async_deriveds.get(t)?.reject(Qe);else for(const e of l.values())e.reject(Qe);l.add(n),s.async_deriveds.set(t,n)}const u=(e,t=void 0)=>{c?.(),l.delete(n),t!==Qe&&(s.activate(),t?(o.f|=P,Rt(o,t)):(0!==(o.f&P)&&(o.f^=P),Rt(o,e)),s.deactivate())};n.promise.then(u,e=>u(null,e||"unknown"))}),gn(()=>{for(const e of l)e.reject(Qe)}),new Promise(e=>{!function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}(a)})}function tt(e){const t=Xe(e);return Kt(t),t}function nt(e){var t,n=Bt,r=e.parent;if(!Dt&&null!==r&&e.v!==G&&24576&r.f)return console.warn("https://svelte.dev/e/derived_inert"),e.v;Ft(r);try{e.f&=-65537,function(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Cn(t[n])}}(e),t=nn(e)}finally{Ft(n)}return t}function rt(e){var t=nt(e);e.equals(t)||(e.wv=Qt(),lt?.is_fork&&null!==e.deps||(null!==lt?(lt.capture(e,t,!0),st?.capture(e,t,!0)):e.v=t,null!==e.deps))?Dt||(null!==ct?(vn()||lt?.is_fork)&&ct.set(e,t):Ve(e)):Me(e,w)}function at(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&null!==t.fn&&ln(t)}let ot=null,it=null,lt=null,st=null,ct=null,ut=null,ft=!1,dt=!1,ht=null,pt=null;var vt=0;let gt=1;class mt{id=gt++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#a=new Set;#o=0;#i=new Map;#l=null;#s=[];#c=[];#u=new Set;#f=new Set;#d=new Map;#h=new Set;is_fork=!1;#p=!1;constructor(){null===it?ot=it=this:(it.#n=this,this.#t=it),it=this}#v(){if(this.is_fork)return!0;for(const n of this.#i.keys()){for(var e=n,t=!1;null!==e.parent;){if(this.#d.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#d.has(e)||this.#d.set(e,{d:[],m:[]}),this.#h.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#d.get(e);if(n){for(var r of(this.#d.delete(e),n.d))Me(r,x),t(r);for(r of n.m)Me(r,_),t(r)}this.#h.add(e)}#g(){this.#e=!0,vt++>1e3&&(this.#m(),function(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){Re(e,ut)}}());for(const e of this.#u)this.#f.delete(e),Me(e,x),this.schedule(e);for(const e of this.#f)Me(e,_),this.schedule(e);const e=this.#s;this.#s=[],this.apply();var t=ht=[],n=[],r=pt=[];for(const r of e)try{this.#b(r,t,n)}catch(e){throw St(r),this.#v()||this.discard(),e}if(lt=null,r.length>0){var a=mt.ensure();for(const e of r)a.schedule(e)}if(ht=null,pt=null,this.#v()){this.#y(n),this.#y(t);for(const[e,t]of this.#d)$t(e,t);return void(r.length>0&&lt.#g())}const o=this.#w();if(o)return this.#y(n),this.#y(t),void o.#x(this);this.#u.clear(),this.#f.clear();for(const e of this.#r)e(this);this.#r.clear(),st=this,wt(n),wt(t),st=null,this.#l?.resolve();var i=lt;if(0!==this.#o||0!==this.#s.length&&null===i||this.#m(),this.#s.length>0)if(null!==i){const e=i;e.#s.push(...this.#s.filter(t=>!e.#s.includes(t)))}else i=this;null!==i&&(Ct.clear(),i.#g())}#b(e,t,n){e.f^=w;for(var r=e.first;null!==r;){var a=r.f,o=!!(96&a);if(!(o&&0!==(a&w)||0!==(a&k)||this.#d.has(r))&&null!==r.fn){o?r.f^=w:4&a?t.push(r):en(r)&&(0!==(a&g)&&this.#f.add(r),ln(r));var i=r.first;if(null!==i){r=i;continue}}for(;null!==r;){var l=r.next;if(null!==l){r=l;break}r=r.parent}}}#w(){for(var e=this.#t;null!==e;){if(!e.is_fork)for(const[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e;e=e.#t}return null}#x(e){for(const[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(const[t,n]of e.async_deriveds){const e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#f);const t=e=>{var n=e.reactions;if(null!==n&&(!(2&e.f)||6144&e.f))for(const e of n){var r=e.f;if(2&r)t(e);else{var a=e;4194320&r&&!this.async_deriveds.has(a)&&(this.#f.delete(a),Me(a,x),this.schedule(a))}}};for(const e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#m(),lt=this,this.#g()}#y(e){for(var t=0;t<e.length;t+=1)Ue(e[t],this.#u,this.#f)}capture(e,t,n=!1){e.v===G||this.previous.has(e)||this.previous.set(e,e.v),0===(e.f&P)&&(this.current.set(e,[t,n]),ct?.set(e,t)),this.is_fork||(e.v=t)}activate(){lt=this}deactivate(){lt=null,ct=null}flush(){try{e,dt=!0,lt=this,this.#g()}finally{vt=0,ut=null,ht=null,pt=null,dt=!1,lt=null,ct=null,Ct.clear()}}discard(){for(const e of this.#a)e(this);this.#a.clear();for(const e of this.async_deriveds.values())e.reject(Qe);this.#m(),this.#l?.resolve()}register_created_effect(e){this.#c.push(e)}#_(){for(let u=ot;null!==u;u=u.#n){var e=u.id<this.id,t=[];for(const[r,[a,o]]of this.current){if(u.current.has(r)){var n=u.current.get(r)[0];if(!e||a===n)continue;u.current.set(r,[a,o])}t.push(r)}if(e)for(const[e,t]of this.async_deriveds){const n=u.async_deriveds.get(e);n&&t.promise.then(n.resolve).catch(n.reject)}var r=[...u.current.keys()].filter(e=>!u.current.get(e)[1]);if(u.#e&&0!==r.length){var a=r.filter(e=>!this.current.has(e));if(0===a.length)e&&u.discard();else if(t.length>0){if(e)for(const e of this.#h)u.unskip_effect(e,e=>{4194320&e.f?u.schedule(e):u.#y([e])});u.activate();var o=new Set,i=new Map;for(var l of t)xt(l,a,o,i);i=new Map;var s=[...u.current].filter(([e,t])=>{const n=this.current.get(e);return!n||(n[0]!==t[0]||n[1]!==t[1])}).map(([e])=>e);if(s.length>0)for(const e of this.#c)155648&e.f||!_t(e,s,i)||(4194320&e.f?(Me(e,x),u.schedule(e)):u.#u.add(e));if(u.#s.length>0&&!u.#p){for(var c of(u.apply(),u.#s))u.#b(c,[],[]);u.#s=[]}u.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#i.get(t)??0;this.#i.set(t,e+1)}}decrement(e,t){if(this.#o-=1,e){let e=this.#i.get(t)??0;1===e?this.#i.delete(t):this.#i.set(t,e-1)}this.#p||(this.#p=!0,re(()=>{this.#p=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(const t of e)this.#u.add(t);for(const e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#a.add(e)}settled(){return(this.#l??=p()).promise}static ensure(){if(null===lt){const e=lt=new mt;dt||ft||re(()=>{e.#e||e.flush()})}return lt}apply(){ct=null}schedule(e){if(ut=e,e.b?.is_pending&&16777228&e.f&&0===(e.f&S))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(!(null===ht||t!==Bt||null!==Nt&&2&Nt.f))return;if(96&n){if(0===(n&w))return;t.f^=w}}this.#s.push(t)}}#m(){if(this.linked){var e=this.#t,t=this.#n;null===e?ot=t:e.#n=t,null===t?it=e:t.#t=e,this.linked=!1}}}function bt(e){var t=ft;ft=!0;try{for(;;){if(ae(),null===lt)return;lt.flush()}}finally{ft=t}}let yt=null;function wt(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&en(r)&&(yt=new Set,ln(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&An(r),yt?.size>0)){Ct.clear();for(const e of yt){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)yt.has(n)&&(yt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||ln(n)}}yt.clear()}}yt=null}}function xt(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const a of e.reactions){const e=a.f;2&e?xt(a,t,n,r):4194320&e&&0===(e&x)&&_t(a,t,r)&&(Me(a,x),kt(a))}}function _t(e,t,n){const a=n.get(e);if(void 0!==a)return a;if(null!==e.deps)for(const a of e.deps){if(r.call(t,a))return!0;if(2&a.f&&_t(a,t,n))return n.set(a,!0),!0}return n.set(e,!1),!1}function kt(e){lt.schedule(e)}function $t(e,t){if(0===(e.f&m)||0===(e.f&w)){0!==(e.f&x)?t.d.push(e):0!==(e.f&_)&&t.m.push(e),Me(e,w);for(var n=e.first;null!==n;)$t(n,t),n=n.next}}function St(e){Me(e,w);for(var t=e.first;null!==t;)St(t),t=t.next}let Et=new Set;const Ct=new Map;let Tt=!1;function At(e,t){return{f:0,v:e,reactions:null,equals:H,rv:0,wv:0}}function It(e,t){const n=At(e);return Kt(n),n}function Ot(e,t=!1,n=!0){const r=At(e);return t||(r.equals=q),r}function Pt(e,t,n=!1){return null===Nt||jt&&0===(Nt.f&T)||!(4325394&Nt.f)||null!==Ht&&Ht.has(e)||function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),Rt(e,n?ve(t):t,pt)}function Rt(e,t,n=null){if(!e.equals(t)){Dt?Ct.set(e,t):Ct.has(e)||Ct.set(e,e.v);var r=mt.ensure();if(r.capture(e,t),2&e.f){const t=e;0!==(e.f&x)&&nt(t),null===ct&&Ve(t)}e.wv=Qt(),Mt(e,x,n),null===Bt||0===(Bt.f&w)||96&Bt.f||(null===Gt?function(e){Gt=e}([e]):Gt.push(e)),!r.is_fork&&Et.size>0&&!Tt&&function(){Tt=!1;for(const e of Et){let t;0!==(e.f&w)&&Me(e,_);try{t=en(e)}catch{t=!0}t&&ln(e)}Et.clear()}()}return t}function Lt(e){Pt(e,e.v+1)}function Mt(e,t,n){var r=e.reactions;if(null!==r)for(var a=r.length,o=0;o<a;o++){var i=r[o],l=i.f,s=0===(l&x);if(s&&Me(i,t),0!==(l&T))Et.add(i);else if(2&l){var c=i;ct?.delete(c),0===(l&I)&&(l&y&&(null===Bt||0===(Bt.f&O))&&(i.f|=I),Mt(c,_,n))}else if(s){var u=i;0!==(l&g)&&null!==yt&&yt.add(u),null!==n?n.push(u):kt(u)}}}let Vt=!1,Dt=!1;function Ut(e){Dt=e}let Nt=null,jt=!1;function zt(e){Nt=e}let Bt=null;function Ft(e){Bt=e}let Ht=null;function Kt(e){null!==Nt&&(Ht??=new Set).add(e)}let qt=null,Yt=0,Gt=null;let Wt=1,Jt=0,Zt=Jt;function Xt(e){Zt=e}function Qt(){return++Wt}function en(e){var t=e.f;if(0!==(t&x))return!0;if(2&t&&(e.f&=-65537),0!==(t&_)){for(var n=e.deps,r=n.length,a=0;a<r;a++){var o=n[a];if(en(o)&&rt(o),o.wv>e.wv)return!0}0!==(t&y)&&null===ct&&Me(e,w)}return!1}function tn(e,t,n=!0){var r=e.reactions;if(null!==r&&(null===Ht||!Ht.has(e)))for(var a=0;a<r.length;a++){var o=r[a];2&o.f?tn(o,t,!1):t===o&&(n?Me(o,x):0!==(o.f&w)&&Me(o,_),kt(o))}}function nn(e){var t=qt,n=Yt,r=Gt,a=Nt,o=Ht,i=J,l=jt,s=Zt,c=e.f;qt=null,Yt=0,Gt=null,Nt=96&c?null:e,Ht=null,Z(e.ctx),jt=!1,Zt=++Jt,null!==e.ac&&(Ge(()=>{e.ac.abort(B)}),e.ac=null);try{e.f|=O;var u=(0,e.fn)();e.f|=S;var f=rn(e);if(!(null===Gt||jt||null===f||6146&e.f))for(var d=0;d<Gt.length;d++)tn(Gt[d],e);if(null!==a&&a!==e){if(Jt++,null!==a.deps)for(let e=0;e<n;e+=1)a.deps[e].rv=Jt;if(null!==t)for(const e of t)e.rv=Jt;null!==Gt&&(null===r?r=Gt:r.push(...Gt))}return 0!==(e.f&P)&&(e.f^=P),u}catch(t){return rn(e),function(e){var t=Bt;if(null===t)return Nt.f|=P,e;if(0===(t.f&S)&&!(4&t.f))throw e;Re(e,t)}(t)}finally{e.f^=O,qt=t,Yt=n,Gt=r,Nt=a,Ht=o,Z(i),jt=l,Zt=s}}function rn(e){var t=e.deps,n=lt?.is_fork;if(null!==qt){var r;if(n||on(e,Yt),null!==t&&Yt>0)for(t.length=Yt+qt.length,r=0;r<qt.length;r++)t[Yt+r]=qt[r];else e.deps=t=qt;if(vn()&&0!==(e.f&y))for(r=Yt;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&null!==t&&Yt<t.length&&(on(e,Yt),t.length=Yt);return t}function an(e,t){let a=t.reactions;if(null!==a){var o=n.call(a,e);if(-1!==o){var i=a.length-1;0===i?a=t.reactions=null:(a[o]=a[i],a.pop())}}if(null===a&&2&t.f&&(null===qt||!r.call(qt,t))){var l=t;0!==(l.f&y)&&(l.f^=y,l.f&=-65537),l.v!==G&&Ve(l),null!==l.ac&&Ge(()=>{l.ac.abort(B),l.ac=null,Me(l,x)}),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),null!==t.ac&&Ge(()=>{t.ac.abort(B),t.ac=null}),null!==t.fn&&(t.teardown=h),on(t,0),En(t))}(l),on(l,0)}}function on(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)an(e,n[r])}function ln(e){var t=e.f;if(0===(t&$)){Me(e,w);var n=Bt,r=Vt;Bt=e,Vt=!(96&t);try{16777232&t?function(e){var t=e.first;for(;null!==t;){var n=t.next;0===(t.f&m)&&Cn(t),t=n}}(e):En(e),Sn(e);var a=nn(e);e.teardown="function"==typeof a?a:null,e.wv=Wt}finally{Vt=r,Bt=n}}}async function sn(){await Promise.resolve(),bt()}function cn(e){var t=!!(2&e.f);if(null!==Nt&&!jt&&!(null!==Bt&&0!==(Bt.f&$)||null!==Ht&&Ht.has(e))){var n=Nt.deps;if(0!==(Nt.f&O))e.rv<Jt&&(e.rv=Jt,null===qt&&null!==n&&n[Yt]===e?Yt++:null===qt?qt=[e]:qt.push(e));else{Nt.deps??=[],r.call(Nt.deps,e)||Nt.deps.push(e);var a=e.reactions;null===a?e.reactions=[Nt]:r.call(a,Nt)||a.push(Nt)}}if(Dt&&Ct.has(e))return Ct.get(e);if(t){var o=e;if(Dt){var i=o.v;return(0===(o.f&w)&&null!==o.reactions||fn(o))&&(i=nt(o)),Ct.set(o,i),i}var l=0===(o.f&y)&&!jt&&null!==Nt&&(Vt||0!==(Nt.f&y)),s=0===(o.f&S);en(o)&&(l&&(o.f|=y),rt(o)),l&&!s&&(at(o),un(o))}if(ct?.has(e))return ct.get(e);if(0!==(e.f&P))throw e.v;return e.v}function un(e){if(e.f|=y,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&y)&&(at(t),un(t))}function fn(e){if(e.v===G)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(Ct.has(t))return!0;if(2&t.f&&fn(t))return!0}return!1}function dn(e){var t=jt;try{return jt=!0,e()}finally{jt=t}}function hn(e){null===Bt&&(null===Nt&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Dt&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function pn(e,t){var n=Bt;null!==n&&0!==(n.f&k)&&(e|=k);var r={ctx:J,deps:null,nodes:null,f:e|x|y,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};lt?.register_created_effect(r);var a=r;if(4&e)null!==ht?ht.push(r):mt.ensure().schedule(r);else if(null!==t){try{ln(r)}catch(e){throw Cn(r),e}null===a.deps&&null===a.teardown&&null===a.nodes&&a.first===a.last&&0===(a.f&A)&&(a=a.first,0!==(e&g)&&0!==(e&C)&&null!==a&&(a.f|=C))}if(null!==a&&(a.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(a,n),null!==Nt&&2&Nt.f&&0===(e&b))){var o=Nt;(o.effects??=[]).push(a)}return r}function vn(){return null!==Nt&&!jt}function gn(e){const t=pn(8,null);return Me(t,w),t.teardown=e,t}function mn(e){hn();var t=Bt.f;if(!(!Nt&&0!==(t&m)&&null!==J&&!J.i))return bn(e);var n=J;(n.e??=[]).push(e)}function bn(e){return pn(1048580,e)}function yn(e){return pn(4,e)}function wn(e,t=0){return pn(8|t,e)}function xn(e,t=[],n=[],r=[]){We(r,t,n,t=>{pn(8,()=>{e(...t.map(cn))})})}function _n(e,t=0){return pn(g|t,e)}function kn(e,t=0){return pn(v|t,e)}function $n(e){return pn(524320,e)}function Sn(e){var t=e.teardown;if(null!==t){const n=Dt,r=Nt;Ut(!0),zt(null);try{t.call(null)}catch(t){Re(t,e.parent)}finally{Ut(n),zt(r)}}}function En(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&Ge(()=>{e.abort(B)});var r=n.next;0!==(n.f&b)?n.parent=null:Cn(n,t),n=r}}function Cn(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(Tn(e.nodes.start,e.nodes.end),n=!0),e.f|=E,En(e,t&&!n),on(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();Sn(e),e.f^=E,e.f|=$;var a=e.parent;null!==a&&null!==a.first&&An(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Tn(e,t){for(;null!==e;){var n=e===t?null:Ee(e);e.remove(),e=n}}function An(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function In(e,t,n=!0){var r=[];e.f|=256,On(e,r,!0);var a=()=>{n&&Cn(e),t&&t()},o=r.length;if(o>0){var i=()=>--o||a();for(var l of r)l.out(i)}else a()}function On(e,t,n){if(0===(e.f&k)){e.f^=k;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var a=e.first;null!==a;){var o=a.next;if(0===(a.f&b))On(a,t,!!(0!==(a.f&C)||0!==(a.f&m)&&0!==(e.f&g))&&n);a=o}}}function Pn(e){e.f&=-257,Rn(e,!0)}function Rn(e,t){if(!(256&e.f)&&0!==(e.f&k)){e.f^=k,0===(e.f&w)&&(Me(e,x),mt.ensure().schedule(e));for(var n=e.first;null!==n;){var r=n.next;Rn(n,!!(0!==(n.f&C)||0!==(n.f&m))&&t),n=r}var a=e.nodes&&e.nodes.t;if(null!==a)for(const e of a)(e.is_global||t)&&e.in()}}function Ln(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var a=n===r?null:Ee(n);t.append(n),n=a}}function Mn(e){const t={get:e=>Be(t.store)[e],set:(e,n)=>{"string"==typeof e?Object.assign(Be(t.store),{[e]:n}):Object.assign(Be(t.store),e),t.store.set(Be(t.store))},store:ze(e)};return t}globalThis.$altcha=globalThis.$altcha||{algorithms:new Map,defaults:Mn({}),i18n:Mn({}),instances:new Set,plugins:new Set};globalThis.$altcha.i18n.set("en",{ariaLinkLabel:"Altcha (official website)",cancel:"Cancel",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",enterCodeFromImage:"To proceed, please enter the code from the image below.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" tabindex="-1" target="_blank" rel="noopener" aria-label="Altcha (official website)">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."});"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");const Vn=Symbol("events"),Dn=new Set,Un=new Set;function Nn(e,t,n,r={}){function a(e){if(r.capture||Kn.call(t,e),!e.cancelBubble)return Ge(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?re(()=>{t.addEventListener(e,a,r)}):t.addEventListener(e,a,r),a}function jn(e,t,n,r,a){var o={capture:r,passive:a},i=Nn(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&gn(()=>{t.removeEventListener(e,i,o)})}function zn(e,t,n){(t[Vn]??={})[e]=n}function Bn(e){for(var t=0;t<e.length;t++)Dn.add(e[t]);for(var n of Un)n(e)}let Fn=null,Hn=!1;function Kn(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;Fn=e,Hn||(Hn=!0,setTimeout(()=>{Hn=!1,Fn=null}));var l=0,s=Fn===e&&e[Vn];if(s){var c=a.indexOf(s);if(-1!==c&&(t===document||t===window))return void(e[Vn]=t);var u=a.indexOf(t);if(-1===u)return;c<=u&&(l=c)}if((o=a[l]||e.target)!==t){i(e,"currentTarget",{configurable:!0,get:()=>o||n});var f=Nt,d=Bt;zt(null),Ft(null);try{for(var h,p=[];null!==o&&o!==t;){try{var v=o[Vn]?.[r];null==v||o.disabled&&e.target!==o||v.call(o,e)}catch(e){h?p.push(e):h=e}if(e.cancelBubble)break;l++,o=l<a.length?a[l]:null}if(h){for(let e of p)queueMicrotask(()=>{throw e});throw h}}finally{e[Vn]=t,delete e.currentTarget,zt(f),Ft(d)}}}const qn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Yn(e){var t=Oe("template");return t.innerHTML=function(e){return qn?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Gn(e,t){var n=Bt;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Wn(e,t){var n,r=!!(1&t),a=!!(2&t),o=!e.startsWith("<!>");return()=>{if(le)return Gn(ie,null),ie;void 0===n&&(n=Yn(o?e:"<!>"+e),r||(n=Se(n)));var t=a||we?document.importNode(n,!0):n.cloneNode(!0);r?Gn(Se(t),t.lastChild):Gn(t,t);return t}}function Jn(e,t,n="svg"){var r,a=`<${n}>${!e.startsWith("<!>")?e:"<!>"+e}</${n}>`;return()=>{if(le)return Gn(ie,null),ie;if(!r){var e=Yn(a);r=Se(Se(e))}var t=r.cloneNode(!0);return Gn(t,t),t}}function Zn(e,t){return Jn(e,0,"svg")}function Xn(e=""){if(!le){var t=$e(e+"");return Gn(t,t),t}var n=ie;return 3!==n.nodeType?(n.before(n=$e()),ce(n)):Pe(n),Gn(n,n),n}function Qn(){if(le)return Gn(ie,null),ie;var e=document.createDocumentFragment(),t=document.createComment(""),n=$e();return e.append(t,n),Gn(t,n),e}function er(e,t){if(le){var n=Bt;return 0!==(n.f&S)&&null!==n.nodes.end||(n.nodes.end=ie),void ue()}null!==e&&e.before(t)}function tr(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const nr=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function rr(e){return nr.includes(e)}const ar={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function or(e){return e=e.toLowerCase(),ar[e]??e}const ir=["touchstart","touchmove"];function lr(e){return ir.includes(e)}class sr{parent;is_pending=!1;transform_error;#k;#$=le?ie:null;#S;#E;#C;#T=null;#A=null;#I=null;#O=null;#P=0;#R=0;#L=!1;#u=new Set;#f=new Set;#M=null;#V=function(e){let t,n=0,r=At(0);return()=>{vn()&&(cn(r),wn(()=>(0===n&&(t=dn(()=>e(()=>Lt(r)))),n+=1,()=>{re(()=>{n-=1,0===n&&(t?.(),t=void 0,Lt(r))})})))}}(()=>(this.#M=At(this.#P),()=>{this.#M=null}));constructor(e,t,n,r){this.#k=e,this.#S=t,this.#E=e=>{var t=Bt;t.b=this,t.f|=128,n(e)},this.parent=Bt.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#C=_n(()=>{if(le){const e=this.#$;ue();const t="[!"===e.data;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#D(t)}else t?this.#U():this.#N()}else this.#j()},589824),le&&(this.#k=ie)}#N(){try{this.#T=$n(()=>this.#E(this.#k))}catch(e){this.error(e)}}#D(e){const t=this.#S.failed,{reset:n,invoke_onerror:r}=this.#z(e);re(r),t&&(this.#I=$n(()=>{t(this.#k,()=>e,()=>n)}))}#z(e){var t=!1,n=!1;const r=()=>{t?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(t=!0,n&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#I&&In(this.#I,()=>{this.#I=null}),this.#B(()=>{this.#j()}))};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#S.onerror?.(e,r),n=!1}catch(e){Re(e,this.#C&&this.#C.parent)}}}}#U(){const e=this.#S.pending;e&&(this.is_pending=!0,this.#A=$n(()=>e(this.#k)),re(()=>{var e=this.#O=document.createDocumentFragment(),t=$e(),n=!1;if(e.append(t),this.#T=this.#B(()=>{try{return $n(()=>this.#E(t))}catch(e){try{this.error(e),n=!0}catch(e){Re(e,this.#C.parent)}return null}}),null===this.#T)return this.#O=null,void(n&&this.#F(lt));0===this.#R&&(this.#k.before(e),this.#O=null,In(this.#A,()=>{this.#A=null}),this.#F(lt))}))}#j(){try{if(this.is_pending=this.has_pending_snippet(),this.#R=0,this.#P=0,this.#T=$n(()=>{this.#E(this.#k)}),this.#R>0){var e=this.#O=document.createDocumentFragment();Ln(this.#T,e);const t=this.#S.pending;this.#A=$n(()=>t(this.#k))}else this.#F(lt)}catch(e){this.error(e)}}#F(e){this.is_pending=!1,e.transfer_effects(this.#u,this.#f)}defer_effect(e){Ue(e,this.#u,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#S.pending}#B(e){var t=Bt,n=Nt,r=J;Ft(this.#C),zt(this.#C),Z(this.#C.ctx);try{return mt.ensure(),e()}finally{Ft(t),zt(n),Z(r)}}#H(e,t){this.has_pending_snippet()?(this.#R+=e,0===this.#R&&(this.#F(t),this.#A&&In(this.#A,()=>{this.#A=null}),this.#O&&(this.#k.before(this.#O),this.#O=null))):this.parent&&this.parent.#H(e,t)}update_pending_count(e,t){this.#H(e,t),this.#P+=e,this.#M&&!this.#L&&(this.#L=!0,re(()=>{this.#L=!1,this.#M&&Rt(this.#M,this.#P)}))}get_effect_pending(){return this.#V(),cn(this.#M)}error(e){if(!this.#S.onerror&&!this.#S.failed)throw e;lt?.is_fork?(this.#T&&lt.skip_effect(this.#T),this.#A&&lt.skip_effect(this.#A),this.#I&&lt.skip_effect(this.#I),lt.oncommit(()=>{this.#K(e)})):this.#K(e)}#K(e){this.#T&&(Cn(this.#T),this.#T=null),this.#A&&(Cn(this.#A),this.#A=null),this.#I&&(Cn(this.#I),this.#I=null),le&&(ce(this.#$),de(),ce(he()));let t=this.#S.failed;const n=e=>{const{reset:n,invoke_onerror:r}=this.#z(e);r(),t&&(this.#I=this.#B(()=>{try{return $n(()=>{var r=Bt;r.b=this,r.f|=128,t(this.#k,()=>e,()=>n)})}catch(e){return Re(e,this.#C.parent),null}}))};re(()=>{var t;try{t=this.transform_error(e)}catch(e){return void Re(e,this.#C&&this.#C.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(n,e=>Re(e,this.#C&&this.#C.parent)):n(t)})}}function cr(e,t){var n=null==t?"":"object"==typeof t?`${t}`:t;n!==(e[j]??=e.nodeValue)&&(e[j]=n,e.nodeValue=`${n}`)}function ur(e,t){return hr(e,t)}function fr(e,t){ke(),t.intro=t.intro??!1;const n=t.target,r=le,a=ie;try{for(var o=Se(n);o&&(8!==o.nodeType||"["!==o.data);)o=Ee(o);if(!o)throw Y;se(!0),ce(o);const r=hr(e,{...t,anchor:o});return se(!1),r}catch(r){if(r instanceof Error&&r.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw r;return r!==Y&&console.warn("Failed to hydrate: ",r),!1===t.recover&&function(){throw new Error("https://svelte.dev/e/hydration_failed")}(),ke(),n.textContent="",se(!1),ur(e,t)}finally{se(r),ce(a)}}const dr=new Map;function hr(e,{target:t,anchor:n,props:r={},events:o,context:i,intro:l=!0,transformError:s}){ke();var c=void 0,u=function(e){mt.ensure();const t=pn(524352,e);return(e={})=>new Promise(n=>{e.outro?In(t,()=>{Cn(t),n(void 0)}):(Cn(t),n(void 0))})}(()=>{var l=n??t.appendChild($e());!function(e,t,n,r){new sr(e,t,n,r)}(l,{pending:()=>{}},t=>{if(X({}),i&&(J.c=i),o&&(r.$$events=o),le&&Gn(t,null),c=e(t,r)||ee(),le&&(Bt.nodes.end=ie,null===ie||8!==ie.nodeType||"]"!==ie.data))throw oe(),Y;Q()},s);var u=new Set,f=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var a=lr(r);for(const e of[t,document]){var o=dr.get(e);void 0===o&&(o=new Map,dr.set(e,o));var i=o.get(r);void 0===i?(e.addEventListener(r,Kn,{passive:a}),o.set(r,1)):o.set(r,i+1)}}}};return f(a(Dn)),Un.add(f),()=>{for(var e of u)for(const n of[t,document]){var r=dr.get(n),a=r.get(e);0==--a?(n.removeEventListener(e,Kn),r.delete(e),0===r.size&&dr.delete(n)):r.set(e,a)}Un.delete(f),l!==n&&l.parentNode?.removeChild(l)}});return pr.set(c,u),c}let pr=new WeakMap;class vr{anchor;#q=new Map;#Y=new Map;#G=new Map;#W=new Set;#J=!0;constructor(e,t=!0){this.anchor=e,this.#J=t}#_=e=>{if(this.#q.has(e)){var t=this.#q.get(e),n=this.#Y.get(t);if(n)Pn(n),this.#W.delete(t);else{var r=this.#G.get(t);r&&(Pn(r.effect),this.#Y.set(t,r.effect),this.#G.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#q){if(this.#q.delete(t),t===e)break;const r=this.#G.get(n);r&&(Cn(r.effect),this.#G.delete(n))}for(const[e,r]of this.#Y){if(e===t||this.#W.has(e))continue;const a=()=>{if(Array.from(this.#q.values()).includes(e)){var t=document.createDocumentFragment();Ln(r,t),t.append($e()),this.#G.set(e,{effect:r,fragment:t})}else Cn(r);this.#W.delete(e),this.#Y.delete(e)};this.#J||!n?(this.#W.add(e),In(r,a,!1)):a()}}};#Z=e=>{this.#q.delete(e);const t=Array.from(this.#q.values());for(const[e,n]of this.#G)t.includes(e)||(Cn(n.effect),this.#G.delete(e))};ensure(e,t){var n=lt;!t||this.#Y.has(e)||this.#G.has(e)||this.#Y.set(e,$n(()=>t(this.anchor)));this.#q.set(n,e),le&&(this.anchor=ie),this.#_(n)}}function gr(e){null===J&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),mn(()=>{const t=dn(e);if("function"==typeof t)return t})}function mr(e,t,n=!1){var r;le&&(r=ie,ue());var a=new vr(e);function o(e,t){if(le){var n=pe(r);if(e!==parseInt(n.substring(1))){var o=he();return ce(o),a.anchor=o,se(!1),a.ensure(e,t),void se(!0)}}a.ensure(e,t)}_n(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},n?C:0)}const br=Symbol("NaN");function yr(e,t,n=!1,r=!1,a=!1,o=!1){var i=e,l="";if(n){var s=e;le&&(i=ce(Se(s)))}xn(()=>{var e=Bt;if(l!==(l=t()??"")){if(n&&!le)return e.nodes=null,s.innerHTML=l,void(""!==l&&Gn(Se(s),s.lastChild));if(null!==e.nodes&&(Tn(e.nodes.start,e.nodes.end),e.nodes=null),""!==l){if(le){ie.data;for(var o=ue(),c=o;null!==o&&(8!==o.nodeType||""!==o.data);)c=o,o=Ee(o);if(null===o)throw oe(),Y;return Gn(ie,c),void(i=ce(o))}var u=Oe(r?"svg":a?"math":"template",r?"http://www.w3.org/2000/svg":a?"http://www.w3.org/1998/Math/MathML":void 0);u.innerHTML=l;var f=r||a?u:u.content;if(Gn(Se(f),f.lastChild),r||a)for(;Se(f);)i.before(Se(f));else i.before(f)}}else le&&ue()})}function wr(e,t){var n,r=void 0;kn(()=>{r!==(r=t())&&(n&&(Cn(n),n=null),r&&(n=$n(()=>{yn(()=>r(e))})))})}function xr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=xr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _r(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=xr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const kr=[..." \t\n\r\f \v\ufeff"];function $r(e,t=!1){var n=t?" !important;":";",r="";for(var a of Object.keys(e)){var o=e[a];null!=o&&""!==o&&(r+=" "+a+": "+o+n)}return r}function Sr(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function Er(e,t,n,r,a,o){var i=e[U];if(le||i!==n||void 0===i){var l=function(e,t,n){var r=null==e?"":""+e;if(n)for(var a of Object.keys(n))if(n[a])r=r?r+" "+a:a;else if(r.length)for(var o=a.length,i=0;(i=r.indexOf(a,i))>=0;){var l=i+o;0!==i&&!kr.includes(r[i-1])||l!==r.length&&!kr.includes(r[l])?i=l:r=(0===i?"":r.substring(0,i))+r.substring(l+1)}return""===r?null:r}(n,0,o);le&&l===e.getAttribute("class")||(null==l?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e[U]=n}else if(o&&a!==o)for(var s in o){var c=!!o[s];null!=a&&c===!!a[s]||e.classList.toggle(s,c)}return o}function Cr(e,t={},n,r){for(var a in n){var o=n[a];t[a]!==o&&(null==n[a]?e.style.removeProperty(a):e.style.setProperty(a,o,r))}}function Tr(e,t,n,r){var a=e[N];if(le||a!==t){var o=function(e,t){if(t){var n,r,a="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,"").trim();var o=!1,i=0,l=!1,s=[];n&&s.push(...Object.keys(n).map(Sr)),r&&s.push(...Object.keys(r).map(Sr));var c=0,u=-1;const t=e.length;for(var f=0;f<t;f++){var d=e[f];if(l?"/"===d&&"*"===e[f-1]&&(l=!1):o?o===d&&(o=!1):"/"===d&&"*"===e[f+1]?l=!0:'"'===d||"'"===d?o=d:"("===d?i++:")"===d&&i--,!l&&!1===o&&0===i)if(":"===d&&-1===u)u=f;else if(";"===d||f===t-1){if(-1!==u){var h=Sr(e.substring(c,u).trim());s.includes(h)||(";"!==d&&f++,a+=" "+e.substring(c,f).trim()+";")}c=f+1,u=-1}}}return n&&(a+=$r(n)),r&&(a+=$r(r,!0)),""===(a=a.trim())?null:a}return null==e?null:String(e)}(t,r);le&&o===e.getAttribute("style")||(null==o?e.removeAttribute("style"):e.style.cssText=o),e[N]=t}else r&&(Array.isArray(r)?(Cr(e,n?.[0],r[0]),Cr(e,n?.[1],r[1],"important")):Cr(e,n,r));return r}function Ar(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Ir(e,t){var n=!("__defaultValue"in e);(n||e.__defaultValue!==t)&&(e.__defaultValue=t,Or(e,!n||"__value"in e))}function Or(e,n){var r=e.__defaultValue,a=e.multiple,o=a?r??[]:null;if(!a||t(o)){var i=e.selectedIndex,l=n&&a?new Set(e.selectedOptions):null;for(var s of e.options){var c=Rr(s);Ar(s,a?o.includes(c):me(c,r))}if(n)if(null!==l)for(s of e.options){var u=l.has(s);s.selected!==u&&(s.selected=u)}else e.selectedIndex!==i&&(e.selectedIndex=i)}}function Pr(e,n,r=!1){if(e.multiple){if(null==n)return;if(!t(n))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var a of e.options)a.selected=n.includes(Rr(a))}else{for(a of e.options){if(me(Rr(a),n))return void(a.selected=!0)}r&&void 0===n||(e.selectedIndex=-1)}}function Rr(e){return"__value"in e?e.__value:e.value}function Lr(e){if(null!==e.target.closest("selectedcontent"))return!0;if("childList"===e.type){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>"SELECTEDCONTENT"===e.nodeName)}return!1}const Mr=Symbol("class"),Vr=Symbol("style"),Dr=Symbol("is custom element"),Ur=Symbol("is html"),Nr=F?"link":"LINK",jr=F?"input":"INPUT",zr=F?"option":"OPTION",Br=F?"select":"SELECT",Fr=F?"progress":"PROGRESS";function Hr(e){if(le){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Kr(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var r=e.checked;Kr(e,"checked",null),e.checked=r}}};e[z]=n,re(n),Ye()}}function Kr(e,t,n,r){var a=Yr(e);le&&(a[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===Nr)||a[t]!==(a[t]=n)&&("loading"===t&&(e[V]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&Wr(e).has(t)?e[t]=n:e.setAttribute(t,n))}function qr(e,t,n=[],r=[],a=[],o,i=!1,l=!1){We(a,n,r,n=>{var r=void 0,a={},o=e.nodeName===Br,s=!1;if(kn(()=>{var c=t(...n.map(cn)),u=function(e,t,n,r,a=!1){le&&a&&e.nodeName===jr&&("defaultValue"in n||"defaultChecked"in n||Hr(e));var o=Yr(e),i=o[Dr],l=!o[Ur];let s=le&&i;s&&se(!1);var c=t||{},u=e.nodeName===zr,f=e.nodeName===Br;for(var d in t)d in n||d[0]+d[1]==="$$"||(n[d]=null);n.class?n.class=_r(n.class):n[Mr]&&(n.class=null),n[Vr]&&(n.style??=null);var h=Wr(e);if(e.nodeName===jr&&"type"in n&&("value"in n||"__value"in n)){var p=n.type;(p!==c.type||void 0===p&&e.hasAttribute("type"))&&(c.type=p,Kr(e,"type",p))}for(const r in n){let a=n[r];if(u&&"value"===r&&null==a)e.value=e.__value="",c[r]=a;else if("class"!==r)if("style"!==r){var v=c[r];if(a!==v||void 0===a&&e.hasAttribute(r)){c[r]=a;var g=r[0]+r[1];if("$$"!==g)if("on"===g){const t={},n="$$"+r;let o=r.slice(2);var m=rr(o);if(tr(o)&&(o=o.slice(0,-7),t.capture=!0),!m&&v){if(null!=a)continue;e.removeEventListener(o,c[n],t),c[n]=null}if(m)zn(o,e,a),Bn([o]);else if(null!=a){let a=function(e){c[r].call(this,e)};c[n]=Nn(o,e,a,t)}}else if("style"===r)Kr(e,r,a);else if("autofocus"===r)Ke(e,Boolean(a));else if(i||"__value"!==r&&("value"!==r||null==a))if("selected"===r&&u)Ar(e,a);else{var b=r;l||(b=or(b));var y="defaultValue"===b||"defaultChecked"===b;if(f&&"defaultValue"===b)continue;if(null!=a||i||y)y||(i||"string"!=typeof a)&&h.has(b)?(e[b]=a,b in o&&(o[b]=G)):"function"!=typeof a&&Kr(e,b,a);else if(o[r]=null,"value"===b||"checked"===b){let n=e;const r=void 0===t;if("value"===b){let e=n.defaultValue;n.removeAttribute(b),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(b),n.defaultChecked=e,n.checked=!!r&&e}}else e.removeAttribute(r)}else e.value=e.__value=a}}else Tr(e,a,t?.[Vr],n[Vr]),c[r]=a,c[Vr]=n[Vr];else Er(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,a,0,t?.[Mr],n[Mr]),c[r]=a,c[Mr]=n[Mr]}return s&&se(!0),c}(e,r,c,0,i,l);if(s&&o){var f=e;"defaultValue"in c&&Ir(f,c.defaultValue),"value"in c&&Pr(f,c.value)}for(let e of Object.getOwnPropertySymbols(a))c[e]||Cn(a[e]);for(let t of Object.getOwnPropertySymbols(c)){var d=c[t];"@attach"!==t.description||r&&d===r[t]||(a[t]&&Cn(a[t]),a[t]=$n(()=>wr(e,()=>d))),u[t]=d}r=u}),o){var c=e;yn(()=>{var e=r;"defaultValue"in e&&Ir(c,e.defaultValue),Pr(c,e.value,!0),function(e){var t=new MutationObserver(t=>{t.every(Lr)||("__defaultValue"in e&&Or(e,!1),"__value"in e&&Pr(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),gn(()=>{t.disconnect()})}(c)})}s=!0})}function Yr(e){return e[D]??={[Dr]:e.nodeName.includes("-"),[Ur]:e.namespaceURI===W}}var Gr=new Map;function Wr(e){var t,n=e.getAttribute("is")||e.nodeName,r=Gr.get(n);if(r)return r;Gr.set(n,r=new Set);for(var a=e,o=Element.prototype;o!==a;){for(var i in t=s(a))t[i].set&&"innerHTML"!==i&&"textContent"!==i&&"innerText"!==i&&r.add(i);a=f(a)}return r}function Jr(e,t,n=t){var r=new WeakSet;!function(e,t,n,r=n){e.addEventListener(t,()=>Ge(n));const a=e[z];e[z]=a?()=>{a(),r(!0)}:()=>r(!0),Ye()}(e,"input",async a=>{var o=a?e.defaultValue:e.value;if(o=Zr(e)?Xr(o):o,n(o),null!==lt&&r.add(lt),await sn(),o!==(o=t())){var i=e.selectionStart,l=e.selectionEnd,s=e.value.length;if(e.value=o??"",null!==l){var c=e.value.length;i===l&&l===s&&c>s?(e.selectionStart=c,e.selectionEnd=c):(e.selectionStart=i,e.selectionEnd=Math.min(l,c))}}}),(le&&e.defaultValue!==e.value||null==dn(t)&&e.value)&&(n(Zr(e)?Xr(e.value):e.value),null!==lt&&r.add(lt)),wn(()=>{var n=t();if(e===document.activeElement){var a=lt;if(r.has(a))return}Zr(e)&&n===Xr(e.value)||("date"!==e.type||n||e.value)&&n!==e.value&&(e.value=n??"")})}function Zr(e){var t=e.type;return"number"===t||"range"===t}function Xr(e){return""===e?null:+e}function Qr(e,t){return e===t||e?.[R]===t}function ea(e=ee(),t,n,r){var a=J.r,o=Bt;return yn(()=>{var r,i;return wn(()=>{r=i,i=[],dn(()=>{Qr(n(...i),e)||(t(e,...i),r&&Qr(n(...r),e)&&t(null,...r))})}),()=>{let r=o;for(;r!==a&&null!==r.parent&&r.parent.f&E;)r=r.parent;const l=r.teardown;r.teardown=()=>{i&&Qr(n(...i),e)&&t(null,...i),l?.()}}}),e}const ta={get(e,t){if(!e.exclude.has(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},has:(e,t)=>!e.exclude.has(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))};function na(e,t,n){return new Proxy({props:e,exclude:t},ta)}function ra(e,t,n,r){var a,o=r,i=!0,l=()=>(i&&(i=!1,o=r),o);void 0===e[t]&&void 0!==r&&l(),a=()=>{var n=e[t];return void 0===n?l():(i=!0,n)};var s=!1,c=Xe(()=>(s=!1,a())),u=Bt;return function(e,t){if(arguments.length>0){const n=t?cn(c):e;return Pt(c,n),s=!0,void 0!==o&&(o=n),e}return Dt&&s||0!==(u.f&$)?c.v:cn(c)}}class aa{#X;#Q;constructor(e){var t=new Map,n=(e,n)=>{var r=Ot(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>cn(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===M||(cn(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,a)=>(Pt(t.get(r)??n(r,a),a),Reflect.set(e,r,a))});this.#Q=(e.hydrate?fr:ur)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||bt(),this.#X=r.$$events;for(const e of Object.keys(this.#Q))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&i(this,e,{get(){return this.#Q[e]},set(t){this.#Q[e]=t},enumerable:!0});this.#Q.$set=e=>{Object.assign(r,e)},this.#Q.$destroy=()=>{!function(e,t){const n=pr.get(e);n?(pr.delete(e),n(t)):Promise.resolve()}(this.#Q)}}$set(e){this.#Q.$set(e)}$on(e,t){this.#X[e]=this.#X[e]||[];const n=(...e)=>t.call(this,...e);return this.#X[e].push(n),()=>{this.#X[e]=this.#X[e].filter(e=>e!==n)}}$destroy(){this.#Q.$destroy()}}let oa=class{};function ia(e,t,n,r){const a=n[e]?.type;if(t="Boolean"===a&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(a){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function la(e,t,n,r,a,s){let c=class extends oa{constructor(){super(e,n,a),this.$$p_d=t}static get observedAttributes(){return o(t).map(e=>(t[e].attribute||e).toLowerCase())}};return o(t).forEach(e=>{i(c.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=ia(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var a=l(r,e)?.get;a?r[e]=n:r.$set({[e]:n})}}})}),r.forEach(e=>{i(c.prototype,e,{get(){return this.$$c?.[e]}})}),e.element=c,c}"function"==typeof HTMLElement&&(oa=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(e){return t=>{const n=Oe("slot");"default"!==e&&(n.name=e),er(t,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=function(e){const t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(const e of this.$$s)e in r&&("default"!==e||this.$$d.children?n[e]=t(e):(this.$$d.children=t(e),n.default=!0));for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=ia(t,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)e in this.$$d||void 0===this[e]||(this.$$d[e]=this[e],delete this[e]);this.$$c=(e={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}},new aa(e)),this.$$me=function(e){mt.ensure();const t=pn(524352,e);return()=>{Cn(t)}}(()=>{wn(()=>{this.$$r=!0;for(const e of o(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=ia(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(const e in this.$$l)for(const t of this.$$l[e]){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ia(e,n,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 o(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});var sa=new Set(["$$slots","$$events","$$legacy","$$host","loading"]),ca=Wn('<div class="altcha-checkbox"><input/> <svg aria-hidden="true" width="12" height="9" viewBox="0 0 12 9"><polyline points="1 5 4 8 11 1"></polyline></svg> <div class="altcha-spinner altcha-checkbox-spinner" aria-hidden="true"></div></div>');function ua(e,t){X(t,!0);let n,r=ra(t,"loading"),a=na(t,sa);var o={get loading(){return r()},set loading(e){r(e),bt()}},i=ca(),l=Ce(i);qr(l,()=>({type:"checkbox",...a}),void 0,void 0,void 0,0,!0),ea(l,e=>n=e,()=>n);var s=Ie(l,2);return de(2),fe(i),xn(()=>Kr(i,"data-loading",r())),zn("click",s,function(){n?.click()}),er(e,i),Q(o)}Bn(["click"]),la(ua,{loading:{}},[],[],{mode:"open"});var fa=new Set(["$$slots","$$events","$$legacy","$$host","loading"]),da=Wn('<div class="altcha-checkbox-native"><input/> <div class="altcha-spinner altcha-checkbox-native-spinner"></div></div>');function ha(e,t){X(t,!0);let n=ra(t,"loading"),r=na(t,fa);var a={get loading(){return n()},set loading(e){n(e),bt()}},o=da();return qr(Ce(o),()=>({type:"checkbox",...r}),void 0,void 0,void 0,0,!0),de(2),fe(o),xn(()=>Kr(o,"data-loading",n())),er(e,o),Q(a)}la(ha,{loading:{}},[],[],{mode:"open"});var pa=Wn('<div><a target="_blank" rel="noopener" class="altcha-logo" aria-hidden="true" tabindex="-1"><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>');function va(e,t){X(t,!0);let n=ra(t,"strings");var r={get strings(){return n()},set strings(e){n(e),bt()}},a=pa(),o=Ce(a);return Kr(o,"href","https://altcha.org"),fe(a),xn(()=>Kr(o,"aria-label",n().ariaLinkLabel)),er(e,a),Q(r)}la(va,{strings:{}},[],[],{mode:"open"});var ga=Wn('<div class="altcha-footer"><p></p> <!></div>');function ma(e,t){X(t,!0);let n=ra(t,"logo"),r=ra(t,"strings");var a={get logo(){return n()},set logo(e){n(e),bt()},get strings(){return r()},set strings(e){r(e),bt()}},o=ga(),i=Ce(o);yr(i,()=>r().footer,!0),fe(i);var l=Ie(i,2),s=e=>{va(e,{get strings(){return r()}})};return mr(l,e=>{n()&&e(s)}),fe(o),er(e,o),Q(a)}la(ma,{logo:{},strings:{}},[],[],{mode:"open"});var ba=new Set(["$$slots","$$events","$$legacy","$$host","loading"]),ya=Wn('<div class="altcha-switch"><input/>  <div class="altcha-switch-toggle"><div class="altcha-spinner altcha-switch-spinner"></div></div></div>');function wa(e,t){X(t,!0);let n,r=ra(t,"loading"),a=na(t,ba);var o={get loading(){return r()},set loading(e){r(e),bt()}},i=ya(),l=Ce(i);qr(l,()=>({type:"checkbox",...a}),void 0,void 0,void 0,0,!0),ea(l,e=>n=e,()=>n);var s=Ie(l,2);return fe(i),xn(()=>Kr(i,"data-loading",r())),zn("click",s,function(){n?.click()}),er(e,i),Q(o)}Bn(["click"]),la(wa,{loading:{}},[],[],{mode:"open"});var xa=(e=>(e.ERROR="error",e.LOADING="loading",e.PLAYING="playing",e.PAUSED="paused",e.READY="ready",e))(xa||{}),_a=(e=>(e.CODE="code",e.ERROR="error",e.VERIFIED="verified",e.VERIFYING="verifying",e.UNVERIFIED="unverified",e.EXPIRED="expired",e))(_a||{}),ka=Wn('<div class="altcha-code-challenge-title"> </div>'),$a=Wn('<div class="altcha-spinner"></div>'),Sa=Zn('<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>'),Ea=Zn('<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>'),Ca=Zn('<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>'),Ta=Wn('<button type="button" class="altcha-button altcha-button-secondary"><!></button>'),Aa=Wn('<audio hidden="" autoplay=""></audio>'),Ia=Wn('<div class="altcha-code-challenge"><form data-code-challenge="true"><!> <div class="altcha-code-challenge-text"> </div> <img class="altcha-code-challenge-image" alt=""/> <div class="altcha-code-challenge-row"><input type="text" class="altcha-input" autocomplete="off" name="" required=""/> <!> <button type="button" class="altcha-button altcha-button-secondary"><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> <div class="altcha-code-challenge-buttons"><button type="submit" class="altcha-button"> </button> <button type="button" class="altcha-button altcha-button-secondary"> </button></div></form> <!></div>');function Oa(e,t){X(t,!0);let n=ra(t,"audioUrl"),r=ra(t,"codeChallenge"),a=ra(t,"config"),o=ra(t,"imageUrl"),i=ra(t,"onCancel"),l=ra(t,"onReload"),s=ra(t,"onSubmit"),c=ra(t,"strings"),u=It(void 0),f=It(void 0),d=It(void 0),h=It(!1),p=It(""),v=It(!1);function g(){Pt(u,xa.PAUSED,!0)}function m(e){Pt(u,xa.ERROR,!0)}function b(){Pt(u,xa.READY,!0)}function y(){Pt(u,xa.LOADING,!0)}function w(){Pt(u,xa.PLAYING,!0)}function x(){Pt(u,xa.PAUSED,!0)}function _(){cn(f)?cn(u)===xa.LOADING||(cn(f).paused?(n()&&cn(f).src!==n()&&(cn(f).src=n()),cn(f).currentTime=0,cn(f).play()):cn(f).pause()):(Pt(v,!0),requestAnimationFrame(()=>{cn(f)&&n()&&(cn(f).src=n(),cn(f).play())}))}gr(()=>(a().disableAutoFocus||sn().then(()=>{cn(d)?.focus()}),()=>{cn(f)&&(cn(f).pause(),Pt(f,void 0))}));var k={get audioUrl(){return n()},set audioUrl(e){n(e),bt()},get codeChallenge(){return r()},set codeChallenge(e){r(e),bt()},get config(){return a()},set config(e){a(e),bt()},get imageUrl(){return o()},set imageUrl(e){o(e),bt()},get onCancel(){return i()},set onCancel(e){i(e),bt()},get onReload(){return l()},set onReload(e){l(e),bt()},get onSubmit(){return s()},set onSubmit(e){s(e),bt()},get strings(){return c()},set strings(e){c(e),bt()}},$=Ia(),S=Ce($),E=Ce(S),C=e=>{var t=ka(),n=Ae(t,!0);xn(()=>cr(n,c().verificationRequired)),er(e,t)};mr(E,e=>{"standard"!==a().codeChallengeDisplay&&e(C)});var T=Ie(E,2),A=Ae(T,!0),I=Ie(T,2),O=Ie(I,2),P=Ce(O);Hr(P),P.disabled=cn(h),ea(P,e=>Pt(d,e),()=>cn(d));var R=Ie(P,2),L=e=>{var t=Ta(),n=Ce(t),r=e=>{er(e,$a())},a=e=>{er(e,Sa())},o=e=>{er(e,Ea())},i=e=>{er(e,Ca())};mr(n,e=>{cn(u)===xa.LOADING?e(r):cn(u)===xa.ERROR?e(a,1):cn(u)===xa.PLAYING?e(o,2):e(i,-1)}),fe(t),xn(()=>{Kr(t,"title",c().getAudioChallenge),t.disabled=cn(u)===xa.LOADING||cn(u)===xa.ERROR,Kr(t,"aria-label",cn(u)===xa.LOADING?c().loading:c().getAudioChallenge)}),jn("click",t,()=>_(),!0),er(e,t)};mr(R,e=>{r().audio&&e(L)});var M=Ie(R,2);fe(O);var V=Ie(O,2),D=Ce(V),U=Ae(D,!0),N=Ie(D,2),j=Ae(N,!0);fe(V),fe(S);var z=Ie(S,2),B=e=>{var t=Aa();ea(t,e=>Pt(f,e),()=>cn(f)),jn("error",t,m),jn("loadstart",t,y),jn("canplay",t,b),jn("pause",t,x),jn("playing",t,w),jn("ended",t,g),er(e,t)};return mr(z,e=>{cn(v)&&e(B)}),fe($),xn(()=>{cr(A,c().enterCodeFromImage),Kr(I,"src",o()),Kr(P,"minlength",r().length||1),Kr(P,"maxlength",r().length),Kr(P,"placeholder",c().enterCode),Kr(P,"aria-label",cn(u)===xa.LOADING?c().loading:cn(u)===xa.PLAYING?"":c().enterCodeAria),Kr(P,"aria-live",cn(u)?"assertive":"polite"),Kr(P,"aria-busy",cn(u)===xa.LOADING),Kr(M,"title",c().reload),Kr(M,"aria-label",c().reload),Kr(D,"aria-label",c().verify),cr(U,c().verify),Kr(N,"aria-label",c().cancel),cr(j,c().cancel)}),jn("submit",S,function(e){e.preventDefault(),e.stopPropagation(),s()?.(cn(p))},!0),zn("keydown",P,function(e){"Space"===e.code?(e.preventDefault(),e.stopPropagation(),_()):"Escape"===e.code&&(e.preventDefault(),e.stopPropagation(),i()?.())}),Jr(P,()=>cn(p),e=>Pt(p,e)),jn("click",M,()=>l()?.(),!0),jn("click",N,()=>i()?.(),!0),er(e,$),Q(k)}Bn(["keydown"]),la(Oa,{audioUrl:{},codeChallenge:{},config:{},imageUrl:{},onCancel:{},onReload:{},onSubmit:{},strings:{}},[],[],{mode:"open"});var Pa=new Set(["$$slots","$$events","$$legacy","$$host","anchor","children","display","backdrop","onClickOutside","onClickOutsideDelay","onClose","placement","updateUISignal","variant"]),Ra=Wn('<div class="altcha-popover-backdrop" data-backdrop=""></div>'),La=Wn('<div class="altcha-popover-arrow"></div>'),Ma=Wn('<div role="button" class="altcha-popover-close">&times;</div>'),Va=Wn('<!> <div><!> <!> <div class="altcha-popover-content"><!></div></div>',1);function Da(e,t){X(t,!0);let n=ra(t,"anchor"),r=ra(t,"children"),a=ra(t,"display",0,"standard"),o=ra(t,"backdrop",0,!1),i=ra(t,"onClickOutside"),l=ra(t,"onClickOutsideDelay",0,600),s=ra(t,"onClose"),c=ra(t,"placement",0,"auto"),u=ra(t,"updateUISignal"),f=ra(t,"variant",0,"neutral"),d=na(t,Pa),p=It(void 0),v=It(void 0),g=It(!1),m=It(0);function b(){s()?.()}function y(){if(n()&&"auto"===c()&&cn(p)){const e=n().getBoundingClientRect(),t=document.documentElement.clientHeight-(e.top+e.height)<cn(p).clientHeight;cn(g)!==t&&Pt(g,t)}}mn(()=>{"auto"!==c()&&Pt(g,"top"===c())}),mn(()=>{u()&&y()}),gr(()=>{const e="bottomsheet"===a()||"overlay"===a();return e&&(cn(v)&&document.body.append(cn(v)),cn(p)&&document.body.append(cn(p))),y(),sn().then(()=>{Pt(m,Date.now(),!0)}),()=>{e&&(cn(v)&&document.body.removeChild(cn(v)),cn(p)&&document.body.removeChild(cn(p)))}});var w={get anchor(){return n()},set anchor(e){n(e),bt()},get children(){return r()},set children(e){r(e),bt()},get display(){return a()},set display(e="standard"){a(e),bt()},get backdrop(){return o()},set backdrop(e=!1){o(e),bt()},get onClickOutside(){return i()},set onClickOutside(e){i(e),bt()},get onClickOutsideDelay(){return l()},set onClickOutsideDelay(e=600){l(e),bt()},get onClose(){return s()},set onClose(e){s(e),bt()},get placement(){return c()},set placement(e="auto"){c(e),bt()},get updateUISignal(){return u()},set updateUISignal(e){u(e),bt()},get variant(){return f()},set variant(e="neutral"){f(e),bt()}},x=Va();jn("click",be,function(e){const t=e.target;cn(p)?.contains(t)||l()&&!(cn(m)+l()<Date.now())||i()?.()},!0),jn("resize",be,function(){y()}),jn("scroll",be,function(){y()});var _=Te(x),k=e=>{var t=Ra();ea(t,e=>Pt(v,e),()=>cn(v)),er(e,t)};mr(_,e=>{o()&&e(k)});var $=Ie(_,2);qr($,()=>({...d,class:`altcha-popover ${(t.class||"")??""}`,"data-popover":!0,"data-variant":f(),"data-top":cn(g),"data-display":a()}));var S=Ce($),E=e=>{er(e,La())};mr(S,e=>{"standard"===a()&&e(E)});var T=Ie(S,2),A=e=>{var t=Ma();jn("click",t,b,!0),er(e,t)};mr(T,e=>{"standard"!==a()&&e(A)});var I=Ie(T,2);return function(e,t,...n){var r=new vr(e);_n(()=>{const e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},C)}(Ce(I),()=>r()??h),fe(I),fe($),ea($,e=>Pt(p,e),()=>cn(p)),er(e,x),Q(w)}async function Ua(e){const{challenge:t,concurrency:n=navigator.hardwareConcurrency,controller:r=new AbortController,createWorker:a,onOutOfMemory:o=e=>e>1?Math.floor(e/2):0,counterMode:i,timeout:l=9e4}=e,s=Math.min(16,Math.max(1,n)),c=[],u=()=>{for(const e of c)e.terminate()};for(let e=0;e<s;e++)c.push(await a(t.parameters.algorithm));let f=null;try{f=await Promise.race(c.map((e,n)=>(r.signal.addEventListener("abort",()=>{e.postMessage({type:"abort"})}),new Promise((r,a)=>{e.addEventListener("error",e=>{a(e)}),e.addEventListener("message",t=>{if(t.data){for(const t of c)t!==e&&t.postMessage({type:"abort"});if(t.data.error)return a(new Error(t.data.error))}r(t.data)}),e.postMessage({challenge:t,counterMode:i,counterStart:n,counterStep:s,timeout:l,type:"work"})}))))}catch(n){if(n instanceof Error&&!!n?.message?.includes("Out of memory")&&o){u();const n=o(s);if(n)return Ua({...e,challenge:t,controller:r,concurrency:n,createWorker:a})}throw n}finally{u()}return r.signal.aborted?null:f||null}la(Da,{anchor:{},children:{},display:{},backdrop:{},onClickOutside:{},onClickOutsideDelay:{},onClose:{},placement:{},updateUISignal:{},variant:{}},[],[],{mode:"open"});class Na{TAG_CODES={INPUT:1,TEXTAREA:2,SELECT:3,BUTTON:4,A:5,DETAILS:6,SUMMARY:7,IFRAME:8,VIDEO:9,AUDIO:10};maxSamples;sampleInterval;target;focusStartTime=0;focusInteraction=0;focusInteractionTimer=null;lastPointerSample=0;lastTouchSample=0;lastScrollSample=0;pendingPointer=null;pendingTouch=null;focus=[];pointer=[];scroll=[];touch=[];constructor(e={}){const{maxSamples:t=60,sampleInterval:n=50,target:r=window}=e;this.maxSamples=t,this.sampleInterval=n,this.target=r,this.attach()}destroy(){const e={capture:!0};this.target.removeEventListener("focusin",this.onFocus,e),this.target.removeEventListener("keydown",this.onInteraction,e),this.target.removeEventListener("pointerdown",this.onInteraction,e),this.target.removeEventListener("pointermove",this.onPointer,e),this.target.removeEventListener("scroll",this.onScroll,e),this.target.removeEventListener("touchmove",this.onTouchMove,e)}export(){return{focus:this.focus,maxTouchPoints:navigator.maxTouchPoints||0,pointer:this.pointer,scroll:this.scroll,time:Date.now(),touch:this.touch}}attach(){const e={passive:!0,capture:!0};this.target.addEventListener("focusin",this.onFocus,e),this.target.addEventListener("keydown",this.onInteraction,e),this.target.addEventListener("pointerdown",this.onInteraction,e),this.target.addEventListener("pointermove",this.onPointer,e),this.target.addEventListener("scroll",this.onScroll,e),this.target.addEventListener("touchmove",this.onTouchMove,e)}evict(e){e.length>this.maxSamples&&e.splice(0,e.length-this.maxSamples)}onFocus=e=>{if(2===this.focusInteraction)return;const t=e.target;if(!(t instanceof Element))return;const n=performance.now();0===this.focusStartTime&&(this.focusStartTime=n),this.focus.push([Math.round(n-this.focusStartTime),t.tabIndex,this.TAG_CODES[t.tagName]??0,this.focusInteraction?1:0]),this.evict(this.focus)};onInteraction=e=>{this.focusInteraction="keyCode"in e?1:2,this.focusInteractionTimer&&clearTimeout(this.focusInteractionTimer),this.focusInteractionTimer=setTimeout(()=>{this.focusInteraction=0},100)};onPointer=e=>{if("touch"===e.pointerType)return;const t=e.timeStamp||performance.now();this.pendingPointer=[Math.round(e.clientX),Math.round(e.clientY),Math.round(t)],t-this.lastPointerSample>=this.sampleInterval&&(this.pointer.push(this.pendingPointer),this.lastPointerSample=t,this.pendingPointer=null,this.evict(this.pointer))};onScroll=()=>{const e=performance.now();e-this.lastScrollSample<this.sampleInterval||(this.scroll.push([Math.round(window.scrollY),Math.round(e)]),this.lastScrollSample=e,this.evict(this.scroll))};onTouchMove=e=>{const t=e.timeStamp||performance.now(),n=e.touches[0];n&&(this.pendingTouch=[Math.round(n.clientX),Math.round(n.clientY),Math.round(t),Math.round(1e3*n.force)/1e3,Math.round(n.radiusX||0),Math.round(n.radiusY||0)],t-this.lastTouchSample>=this.sampleInterval&&(this.touch.push(this.pendingTouch),this.lastTouchSample=t,this.pendingTouch=null,this.evict(this.touch)))}}var ja=Wn('<div class="altcha-overlay-backdrop" data-backdrop=""></div>'),za=Wn('<div class="altcha-overlay-content"></div>'),Ba=Wn('<div role="button" class="altcha-overlay-close">&times;</div> <!>',1),Fa=Wn('<div class="altcha-floating-arrow"></div>'),Ha=Wn('<input type="hidden"/>'),Ka=Wn('<div class="altcha-error">Secure context (HTTPS) required.</div>'),qa=Wn('<div class="altcha-error"> </div>'),Ya=Wn("<!> <!>",1),Ga=Wn('<!> <div class="altcha"><!> <div class="altcha-main"><div><div class="altcha-checkbox-wrap"><!> <label><!></label></div> <!></div> <!> <!> <!></div> <!></div>',1);"undefined"!=typeof window&&window.customElements&&!customElements.get("altcha-widget")&&customElements.define("altcha-widget",la(function(e,t){X(t,!0);const[n,r]=function(){const e={};return[e,function(){gn(()=>{for(var t in e)e[t].unsubscribe();i(e,Fe,{enumerable:!1,value:!0})})}]}(),a=["ar","fa","he","ur"],{isSecureContext:o}=globalThis,{store:l}=globalThis.$altcha.defaults,s=navigator.hardwareConcurrency||2,c=navigator.deviceMemory||0,u=c&&c<=4?Math.min(4,s):s,f=globalThis.$altcha.i18n.store,d=t.$$host,h=(e,t)=>{sn().then(()=>{d?.dispatchEvent(new CustomEvent(e,{detail:t}))})};let p=null,v=It(ve(new URL(location.origin))),g=It(!1),m=It(null),b=It(null),y=It(null),w=It(ve(_a.UNVERIFIED)),x=It(void 0),_=It(void 0),k=It(null),$=It(void 0),S=It(null),E=It(null),T=It(null),A=It(null),I=It(ve([])),O=It(0),P=It(ve({})),R=It(!0);const L=tt(()=>({fetch:(e,t)=>fetch(e,t),audioChallengeLanguage:"",auto:"off",barPlacement:"bottom",challenge:"",codeChallenge:null,codeChallengeDisplay:"standard",credentials:null,debug:!1,disableAutoFocus:!1,display:"standard",floatingAnchor:"",floatingOffset:8,floatingPersist:!1,floatingPlacement:"auto",hideFooter:!1,hideLogo:!1,humanInteractionSignature:!0,language:"",mockError:!1,minDuration:500,overlayContent:"",name:"altcha",popoverPlacement:"auto",retryOnOutOfMemoryError:!0,setCookie:null,serverVerificationFields:!1,serverVerificationTimeZone:!1,test:!1,timeout:9e4,type:"checkbox",validationMessage:"",verifyFunction:null,verifyUrl:"",workers:u,...He(l,"$altchaDefaults",n),...cn(P)})),M=tt(()=>`altcha-checkbox-${t.id||Math.floor(1e12*Math.random()).toString(16)}`),V=tt(()=>function(e){switch(e){case"checkbox":return ua;case"switch":return wa;default:return ha}}(cn(L).type)),D=tt(()=>cn(L).auto),U=tt(()=>cn(w)===_a.VERIFYING),N=tt(()=>!cn(L).hideFooter),j=tt(()=>!cn(L).hideLogo&&"bar"!==cn(L).display),z=tt(()=>function(e,t){const n=Object.keys(e).map(e=>e.toLowerCase());let r=t.reduce((t,r)=>(r=r.toLowerCase(),t||(e[r]?r:null)||n.find(e=>r.split("-")[0]===e.split("-")[0])||null),null);e[r||""]||(r="en");return{language:r,strings:e[r]}}(He(f,"$altchaI18nStore",n),[cn(L).language,document.documentElement.lang,...navigator.languages])),B=tt(()=>a.includes(cn(z).language)?"rtl":void 0),F=tt(()=>({...cn(z).strings})),H=tt(()=>cn(m)?.audio?.match(/^(https?:)?\//)?Z(cn(m).audio,cn(v),{language:cn(L).audioChallengeLanguage||cn(z).language}).toString():cn(m)?.audio),K=tt(()=>cn(m)?.image?.match(/^(https?:)?\//)?Z(cn(m).image,cn(v)):cn(m)?.image);async function q(e,...t){let n;for(const r of cn(I))n=await r[e].call(r,...t);return n}async function Y(e){await new Promise(t=>setTimeout(t,e))}async function G(e=cn(L).challenge,t){const n=await q("onFetchChallenge",e);let r=null;if(void 0!==n)return n;if("string"==typeof e)if(e.startsWith("{")){ke("parsing JSON challenge");try{r=JSON.parse(e)}catch{throw new Error("Unable to parse JSON challenge.")}}else{ke("fetching challenge from",t?.method||"GET",e),Pt(v,new URL(e,location.origin),!0);const n=await cn(L).fetch(e,{credentials:cn(L).credentials||void 0,...t});await me(n);const a=n.headers.get("x-altcha-config");a&&function(e){try{const t=JSON.parse(e);t&&"object"==typeof t&&xe({serverVerificationFields:t?.sentinel?.fields,serverVerificationTimeZone:t?.sentinel?.timeZone,verifyUrl:t.verifyurl,...t})}catch(e){ke("unable to configure from x-altcha-config header",e)}}(a);const o=await n.json();if(o&&"his"in o&&o.his){if(ke("requested HIS"),!p)throw new Error("Server requested HIS data but collector is disabled.");return G(Z(o.his.url,cn(v)),{body:JSON.stringify({his:p.export()}),headers:{"content-type":"application/json"},method:"POST"})}o&&"hisResult"in o&&o.hisResult&&ke("HIS result",o.hisResult),r=o}else if(e&&"object"==typeof e)try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("Unable to parse JSON challenge.")}if(function(e){return"object"==typeof e&&"challenge"in e}(r)&&(r=function(e){const[t,n]=e.salt.split("?"),r={};if(n)try{Object.assign(r,Object.fromEntries(new URLSearchParams(n).entries()))}catch{}const a={codeChallenge:e.codeChallenge,parameters:{algorithm:e.algorithm,cost:1,data:r,expiresAt:r?.expires?parseInt(r.expires,10):void 0,keyLength:"SHA-512"===e.algorithm?64:"SHA-384"===e.algorithm?48:32,nonce:(o=(new TextEncoder).encode(e.salt),Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,"0")).join("")),keyPrefix:e.challenge,salt:""},signature:e.signature};var o;return Object.defineProperties(a,{_originalSalt:{enumerable:!1,value:e.salt,writable:!1},_version:{enumerable:!1,value:1,writable:!1}}),a}(r)),!function(e){return!!e&&"object"==typeof e&&"parameters"in e&&!!e.parameters&&"object"==typeof e.parameters&&"algorithm"in e.parameters&&"nonce"in e.parameters&&"salt"in e.parameters&&"keyPrefix"in e.parameters}(r))throw new Error("Challenge validation failed.");return r}function W(){return document.getElementById(cn(M))}function J(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Z(e,t,n){const r=new URL(e,t);if(r.search||(r.search=t.search),n)for(const e in n)void 0!==n[e]&&null!==n[e]&&r.searchParams.set(e,n[e]);return r.toString()}function ee(e){!cn(g)&&e.currentTarget.checked?(e.preventDefault(),e.currentTarget.checked=!1,cn(w)!==_a.VERIFYING&&Pe()):e.currentTarget.checked||(e.preventDefault(),$e())}function te(e){cn(w)===_a.VERIFYING?e.currentTarget.setCustomValidity(cn(F).waitAlert):cn(L).validationMessage&&e.currentTarget.setCustomValidity(cn(L).validationMessage)}function ne(){ge(cn(L).display),$e()}function re(e){"onfocus"===cn(D)&&cn(w)===_a.UNVERIFIED&&Pe()}function ae(){ge(cn(L).display),$e()}function oe(e){const t=e.target;"true"!==t?.getAttribute("data-code-challenge")&&"onsubmit"===cn(D)&&cn(w)===_a.UNVERIFIED&&(e.preventDefault(),e.stopPropagation(),Pt(S,e.submitter,!0),Ee(),Pe().then(e=>{e&&!cn(m)&&sn().then(()=>{de(cn(S))})}))}function de(e){cn(k)&&"requestSubmit"in cn(k)?cn(k).requestSubmit(e):cn(k)?.reportValidity()&&(e?e.click():cn(k).submit())}function ge(e){switch(e){case"bar":case"floating":case"overlay":_e(),cn(D)&&"off"!==cn(D)||(cn(P).auto="onsubmit");break;case"standard":Ee()}cn(y)!==e&&Pt(y,e,!0)}async function me(e){if(e.status>=400){if(e.headers.get("content-type")?.includes("/json")){let t;try{t=await e.json()}catch{}if(t&&"error"in t)throw new Error(`Server responded with ${e.status} - ${t.error}`)}throw new Error(`Server responded with ${e.status}.`)}const t=e.headers.get("content-type");if(!t||!t.includes("/json"))throw new Error(`Server responded with invalid content-type. Expected application/json, received ${t}.`)}async function we(e){if(!cn(A))return void Se(_a.ERROR,"Cannot verify code challenge without PoW payload.");Se(_a.VERIFYING);let t=null;if(cn(L).verifyUrl)t=await async function(e,t){const n=await q("onRequestServerVerification",e,t);if(void 0!==n)return n;if(ke("requesting server verification from",cn(L).verifyUrl),!cn(L).verifyUrl)throw new Error("Parameter verifyUrl must be set for server verification.");const r=await cn(L).fetch(Z(cn(L).verifyUrl,cn(v)),{body:JSON.stringify({code:t,fields:cn(L).serverVerificationFields?[...cn(k)?.querySelectorAll('input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((e,t)=>{const n=t.name,r=t.value;return n&&r&&(e[n]=/\n/.test(r)?r.replace(new RegExp("(?<!\\r)\\n","g"),"\r\n"):r),e},{}):void 0,payload:e,timeZone:cn(L).serverVerificationTimeZone?J():void 0}),credentials:cn(L).credentials||void 0,headers:{"Content-Type":"application/json"},method:"POST"});await me(r);const a=await r.json();return a&&"object"==typeof a&&"payload"in a&&a.payload&&h("serververification",a),a}(cn(A),e);else{if(!cn(L).verifyFunction)return void Se(_a.ERROR,"Parameter verifyUrl is required for code challenge verification.");t=await cn(L).verifyFunction(cn(A),e)}t?.payload&&(Pt(A,t.payload,!0),ke("server payload",cn(A))),!0===t?.verified?(ke("verified"),Se(_a.VERIFIED),h("verified",{payload:cn(A)}),"onsubmit"===cn(D)&&sn().then(()=>{de(cn(S))})):Se(_a.ERROR,t?.reason||"Verification failed."),cn(L).disableAutoFocus||W()?.focus()}function xe(e){Object.assign(cn(P),{...Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t))})}function _e(){Pt(R,!1)}function ke(...e){(cn(L).debug||e.some(e=>e instanceof Error))&&console[e[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${cn(L).name}]`,...e)}function $e(e=_a.UNVERIFIED,t=null){Pt(g,!1),Pt(E,t,!0),Pt(A,null),cn(b)&&cn(b).abort(),cn(T)&&(clearTimeout(cn(T)),Pt(T,null)),Se(e)}function Se(e,t=null){Pt(w,e,!0),Pt(E,t,!0),h("statechange",{payload:cn(A),state:cn(w)})}function Ee(){Pt(R,!0),sn().then(()=>{Oe()})}function Oe(){if("floating"===cn(L).display)return function(e=20){if(!cn($))return;const t=cn(L).floatingPlacement;if(!cn(_)&&(Pt(_,(cn(L).floatingAnchor instanceof HTMLElement?cn(L).floatingAnchor:cn(L).floatingAnchor?document.querySelector(cn(L).floatingAnchor):cn(k)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||cn(k),!0),!cn(_)))return void ke("unable to find floating anchor element");const n=parseInt(cn(L).floatingOffset,10)||12,r=cn(_).getBoundingClientRect(),a=cn($).getBoundingClientRect(),o=document.documentElement.clientHeight,i=document.documentElement.clientWidth,l=t&&"auto"!==t?"top"===t:r.bottom+a.height+n+e>o,s=Math.max(e,Math.min(i-e-a.width,r.left+r.width/2-a.width/2));if(cn($).style.setProperty("--altcha-floating-left",`${s}px`),cn($).style.setProperty("--altcha-floating-top",l?r.top-(a.height+n)+"px":`${r.bottom+n}px`),cn($).setAttribute("data-floating-position",l?"top":"bottom"),cn(x)){const e=cn(x).getBoundingClientRect();cn(x).style.left=r.left-s+r.width/2-e.width/2+"px"}}();Pt(O,cn(O)+1)}async function Pe(e={}){const{concurrency:t=Math.max(1,cn(L).workers),controller:n=new AbortController,minDuration:r=cn(L).minDuration}=e,a=performance.now();let i=null,l=null,s=!1;const c=await q("onVerify",e);if(void 0!==c)return c;$e(_a.VERIFYING),Pt(b,n,!0);try{if(!o)throw new Error("Secure context (HTTPS) required.");if(cn(L).mockError)throw new Error("Mock error.");if(cn(L).test)return ke("running test mode with null challenge"),await Y(Math.max(0,r-(performance.now()-a))),cn(b)?.signal.aborted?($e(),null):(Pt(A,btoa(JSON.stringify({challenge:null,solution:null,test:!0})),!0),ke("verified"),Se(_a.VERIFIED),h("verified",{payload:cn(A)}),{payload:cn(A)});if(i=await G(),!i)throw new Error("Failed to fetch challenge.");ke("challenge",i),"configuration"in i&&(ke("re-configuring from challenge",i.configuration),xe(i.configuration)),i.parameters.expiresAt&&function(e){cn(T)&&clearTimeout(cn(T));const t=()=>{cn(w)!==_a.UNVERIFIED?(Pt(g,!1),Se(_a.EXPIRED)):$e(),h("expired")},n=1e3*e-Date.now();n>=1?Pt(T,setTimeout(t,n),!0):t()}(i.parameters.expiresAt),s="_version"in i&&1===i._version;const e=globalThis.$altcha.algorithms.get(i.parameters.algorithm);if(!e)throw new Error(`Unsupported algorithm ${i.parameters.algorithm}.`);if(l=await Ua({challenge:i,concurrency:t,controller:n,createWorker:e,counterMode:s?"string":"uint32",onOutOfMemory:e=>{if(ke("out of memory error received"),h("outofmemory"),cn(L).retryOnOutOfMemoryError&&e>1){const t=Math.floor(e/2);return ke(`retrying with ${t} workers...`),t}},timeout:cn(L).timeout}),cn(b)?.signal.aborted)return $e(),null;if(!l)throw new Error("Failed to find solution.");ke("solution",l),await Y(Math.max(0,r-(performance.now()-a))),Pt(m,i.codeChallenge||cn(L).codeChallenge||null,!0),Pt(A,s?btoa(JSON.stringify(function(e,t){return{algorithm:e.parameters.algorithm,challenge:e.parameters.keyPrefix,number:t.counter,salt:"_originalSalt"in e?e._originalSalt:e.parameters.nonce,signature:e.signature,took:t.time||0}}(i,l))):btoa(JSON.stringify({challenge:{parameters:i.parameters,signature:i.signature},solution:l})),!0),cn(m)?(ke("requesting code verification"),Se(_a.CODE),h("codechallenge",{codeChallenge:cn(m)})):cn(L).verifyUrl?await we():(ke("verified"),Se(_a.VERIFIED),h("verified",{payload:cn(A)}))}catch(e){return ke("verification failed",e),Se(_a.ERROR,String(e)),null}finally{Pt(b,null)}return{challenge:i,payload:cn(A),solution:l}}mn(()=>{xe({auto:t.auto,challenge:t.challenge,display:t.display,language:t.language,name:t.name,type:t.type,workers:t.workers})}),mn(()=>{t.theme?d?.setAttribute("theme",t.theme):d?.removeAttribute("theme")}),mn(()=>{if(t.configuration)try{xe(JSON.parse(t.configuration))}catch{ke("unable to parse the `configuration` attribute (JSON expected)")}}),mn(()=>{cn(y)!==cn(L).display&&ge(cn(L).display)}),mn(()=>{cn(g)&&cn(w)===_a.VERIFYING&&Pt(g,!1)}),mn(()=>{cn(g)||cn(w)!==_a.VERIFIED||Pt(g,!0)}),mn(()=>{if(!cn(g)){const e=W();e&&e.checked&&(e.checked=!1)}}),mn(()=>{cn(w)===_a.VERIFIED&&W()?.setCustomValidity("")}),mn(()=>{if("onload"===cn(D)){const e=setTimeout(()=>{Pe()},1);return()=>{e&&clearTimeout(e)}}}),mn(()=>{cn(E)&&ke("error:",cn(E))}),mn(()=>{cn(A)&&cn(L).setCookie&&function(e,t={}){const{domain:n,name:r=cn(L).name,maxAge:a,path:o,sameSite:i,secure:l}=t;let s=`${encodeURIComponent(r)}=${encodeURIComponent(e)}`;n&&(s+=`; Domain=${n}`);null!=a&&(s+=`; Max-Age=${a}`);o&&(s+=`; Path=${o}`);i&&(s+=`; SameSite=${i}`);l&&(s+="; Secure");document.cookie=s}(cn(A),cn(L).setCookie)}),gr(()=>(ke("mounted","3.2.3"),d&&globalThis.$altcha.instances.add(d),Pt(k,cn($)?.closest("form"),!0),cn(k)?.addEventListener("reset",ae),cn(k)?.addEventListener("submit",oe,{capture:!0}),cn(k)?.addEventListener("focusin",re),function(){Pt(I,[...globalThis.$altcha.plugins].map(e=>new e(d)),!0),ke("activating plugins",cn(I).map(e=>e.constructor.name));for(const e of cn(I))e.activate()}(),cn(L).humanInteractionSignature&&(ke("human interaction signature enabled"),p=new Na),h("load"),o||ke("secure context (HTTPS) required"),()=>{!function(){for(const e of cn(I))e.destroy()}(),d&&globalThis.$altcha.instances.delete(d),cn(T)&&clearTimeout(cn(T)),cn(k)?.removeEventListener("reset",ae),cn(k)?.removeEventListener("submit",oe,{capture:!0}),cn(k)?.removeEventListener("focusin",re),p?.destroy()}));var Re={configure:xe,getConfiguration:function(){return{...cn(L)}},getState:function(){return cn(w)},hide:_e,log:ke,reset:$e,setState:Se,show:Ee,updateUI:Oe,verify:Pe},Le=Ga();jn("scroll",ye,function(){Oe()}),jn("click",ye,function(e){const t=e.target;"floating"!==cn(L).display||!t||d?.contains(t)||t.hasAttribute("data-backdrop")||t.closest("[data-popover]")||cn(w)===_a.VERIFIED||cn(L).floatingPersist||_e()}),jn("pageshow",be,function(e){e.persisted&&(ge(cn(L).display),$e())}),jn("resize",be,function(){Oe()});var Me=Te(Le),Ve=e=>{er(e,ja())};mr(Me,e=>{"overlay"===cn(L).display&&cn(R)&&e(Ve)});var De=Ie(Me,2),Ue=Ce(De),Ne=e=>{var t=Ba(),n=Te(t),r=Ie(n,2),a=e=>{var t=za();yr(t,()=>document.querySelector(cn(L).overlayContent)?.innerHTML,!0),fe(t),er(e,t)};mr(r,e=>{cn(L).overlayContent&&e(a)}),jn("click",n,ne,!0),er(e,t)};mr(Ue,e=>{"overlay"===cn(L).display&&cn(R)&&e(Ne)});var je=Ie(Ue,2),ze=Ce(je),Be=Ce(ze),Ke=Ce(Be);{let e=tt(()=>"standard"===cn(L).display&&"onsubmit"!==cn(D)||cn(w)===_a.VERIFYING);!function(e,t,n){var r;le&&(r=ie,ue());var a=new vr(e);_n(()=>{var e=t()??null;if(le&&"["===pe(r)!=(null!==e)){var o=he();return ce(o),a.anchor=o,se(!1),a.ensure(e,e&&(t=>n(t,e))),void se(!0)}a.ensure(e,e&&(t=>n(t,e)))},C)}(Ke,()=>cn(V),(t,n)=>{n(t,{get id(){return cn(M)},name:"",get required(){return cn(e)},get loading(){return cn(U)},get checked(){return cn(g)},onchange:ee,oninvalid:te})})}var qe=Ie(Ke,2),Ye=Ce(qe),Ge=e=>{var t=Xn();xn(()=>cr(t,cn(F).verificationRequired)),er(e,t)},We=e=>{var t=Xn();xn(()=>cr(t,cn(F).verifying)),er(e,t)},Je=e=>{var t=Xn();xn(()=>cr(t,cn(F).verified)),er(e,t)},Ze=e=>{var t=Xn();xn(()=>cr(t,cn(F).label)),er(e,t)};mr(Ye,e=>{cn(w)===_a.CODE&&cn(m)?e(Ge):cn(w)===_a.VERIFYING?e(We,1):cn(w)===_a.VERIFIED?e(Je,2):e(Ze,-1)}),fe(qe),fe(Be);var Xe=Ie(Be,2),Qe=e=>{va(e,{get strings(){return cn(F)}})};mr(Xe,e=>{cn(j)&&e(Qe)}),fe(ze);var et=Ie(ze,2),nt=e=>{{let t=tt(()=>"bar"===cn(L).display&&cn(j));ma(e,{get logo(){return cn(t)},get strings(){return cn(F)}})}};mr(et,e=>{cn(N)&&e(nt)});var rt=Ie(et,2),at=e=>{var t=Fa();ea(t,e=>Pt(x,e),()=>cn(x)),er(e,t)};mr(rt,e=>{"floating"===cn(L).display&&e(at)});var ot=Ie(rt,2),it=e=>{var t=Ha();Hr(t),xn(()=>{var e,n,r;Kr(t,"name",cn(L).name),e=t,n=cn(A),(r=Yr(e)).value!==(r.value=n??void 0)&&(e.value!==n||0===n&&e.nodeName===Fr)&&(e.value=n??"")}),er(e,t)};mr(ot,e=>{cn(L).setCookie||e(it)}),fe(je);var lt=Ie(je,2),st=e=>{Da(e,{get anchor(){return cn($)},onClickOutside:()=>{o&&$e()},get placement(){return cn(L).popoverPlacement},role:"alert",variant:"error",get dir(){return cn(B)},get updateUISignal(){return cn(O)},children:(e,t)=>{var n=Qn(),r=Te(n),a=e=>{er(e,Ka())},i=e=>{var t=qa(),n=Ae(t,!0);xn(()=>cr(n,cn(F).expired)),er(e,t)},l=e=>{var t=qa(),n=Ae(t,!0);xn(()=>{Kr(t,"title",cn(E)),cr(n,cn(F).error)}),er(e,t)};mr(r,e=>{cn(E)||o?cn(E)||cn(w)!==_a.EXPIRED?e(l,-1):e(i,1):e(a)}),er(e,n)},$$slots:{default:!0}})},ct=e=>{var t=Qn();!function(e,t,n){le&&ue();var r=new vr(e);_n(()=>{var e=t();e!=e&&(e=br),r.ensure(e,n)})}(Te(t),()=>cn(m),e=>{{let t=tt(()=>"standard"!==cn(L).codeChallengeDisplay);Da(e,{get anchor(){return cn($)},get backdrop(){return cn(t)},get display(){return cn(L).codeChallengeDisplay},onClose:()=>{$e()},get placement(){return cn(L).popoverPlacement},role:"dialog",get"aria-label"(){return cn(F).verificationRequired},get dir(){return cn(B)},get updateUISignal(){return cn(O)},children:(e,t)=>{var n=Ya(),r=Te(n);Oa(r,{get audioUrl(){return cn(H)},get imageUrl(){return cn(K)},onCancel:()=>$e(),onReload:()=>Pe(),onSubmit:e=>we(e),get codeChallenge(){return cn(m)},get config(){return cn(L)},get strings(){return cn(F)}});var a=Ie(r,2),o=e=>{ma(e,{get logo(){return cn(j)},get strings(){return cn(F)}})};mr(a,e=>{cn(N)&&"standard"!==cn(L).codeChallengeDisplay&&e(o)}),er(e,n)},$$slots:{default:!0}})}}),er(e,t)};mr(lt,e=>{cn(E)||cn(w)===_a.EXPIRED||!o?e(st):cn(m)&&cn(w)===_a.CODE&&e(ct,1)}),fe(De),ea(De,e=>Pt($,e),()=>cn($)),xn(e=>{Kr(De,"data-state",cn(w)),Kr(De,"data-display",cn(L).display||void 0),Kr(De,"data-placement",e),Kr(De,"data-visible",cn(R)||void 0),Kr(De,"dir",cn(B)),Kr(qe,"for",cn(M)),De.dir=De.dir},[()=>function(e){switch(e){case"bar":return cn(L).barPlacement||"bottom";case"floating":return cn(L).floatingPlacement||"auto";default:return}}(cn(L).display)]),er(e,Le);var ut=Q(Re);return r(),ut},{auto:{type:"String"},challenge:{type:"String"},configuration:{type:"String"},display:{type:"String"},language:{type:"String"},name:{type:"String"},theme:{type:"String"},type:{type:"String"},workers:{type:"Number"}},[],["configure","getConfiguration","getState","hide","log","reset","setState","show","updateUI","verify"]));const Wa='(function() {\n  "use strict";\n  function bufferStartsWith(buffer, prefix) {\n    if (prefix.length > buffer.length) {\n      return false;\n    }\n    for (let i = 0; i < prefix.length; i++) {\n      if (buffer[i] !== prefix[i]) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function bufferToHex(buffer) {\n    return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join("");\n  }\n  function concatBuffers(a, b) {\n    const out = new Uint8Array(a.length + b.length);\n    out.set(a, 0);\n    out.set(b, a.length);\n    return out;\n  }\n  function hexToBuffer(hex) {\n    if (hex.length % 2 !== 0) {\n      throw new Error(`Hex string must have an even length. Got: ${hex}`);\n    }\n    const buffer = new ArrayBuffer(hex.length / 2);\n    const view = new DataView(buffer);\n    for (let i = 0; i < hex.length; i += 2) {\n      const byteString = hex.substring(i, i + 2);\n      const byteValue = parseInt(byteString, 16);\n      view.setUint8(i / 2, byteValue);\n    }\n    return new Uint8Array(buffer);\n  }\n  async function delay(ms) {\n    await new Promise((resolve) => setTimeout(resolve, ms));\n  }\n  function timeDuration(start) {\n    return Math.floor((performance.now() - start) * 10) / 10;\n  }\n  class PasswordBuffer {\n    constructor(nonce, mode = "uint32") {\n      this.nonce = nonce;\n      this.mode = mode;\n      this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES);\n      this.buffer.set(this.nonce, 0);\n      this.dataView = new DataView(this.buffer.buffer);\n    }\n    nonce;\n    mode;\n    COUNTER_BYTES = 4;\n    buffer;\n    dataView;\n    encoder = new TextEncoder();\n    /**\n     * Appends the counter to the nonce buffer.\n     * In \'string\' mode, encodes the counter as a UTF-8 string.\n     * In \'uint32\' mode, writes the counter as a big-endian 32-bit integer.\n     */\n    setCounter(n) {\n      if (this.mode === "string") {\n        return concatBuffers(this.nonce, this.encoder.encode(n.toString()));\n      }\n      this.dataView.setUint32(this.nonce.length, n, false);\n      return this.buffer;\n    }\n  }\n  async function solveChallenge(options) {\n    const {\n      challenge,\n      controller,\n      counterMode = "uint32",\n      counterStart = 0,\n      counterStep = 1,\n      deriveKey: deriveKey2,\n      timeout = 9e4\n    } = options;\n    const { nonce, keyPrefix, salt } = challenge.parameters;\n    const nonceBuf = hexToBuffer(nonce);\n    const saltBuf = hexToBuffer(salt);\n    const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null;\n    const password = new PasswordBuffer(nonceBuf, counterMode);\n    const start = performance.now();\n    let counter = counterStart;\n    let iterations = 0;\n    let derivedKeyHex = "";\n    let lastYield = start;\n    while (true) {\n      if (controller?.signal.aborted || timeout && iterations % 10 === 0 && performance.now() - start > timeout) {\n        return null;\n      }\n      const { derivedKey } = await deriveKey2(\n        challenge.parameters,\n        saltBuf,\n        password.setCounter(counter)\n      );\n      if (iterations % 10 === 0 && performance.now() - lastYield > 200) {\n        await delay(0);\n        lastYield = performance.now();\n      }\n      if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) {\n        derivedKeyHex = bufferToHex(derivedKey);\n        break;\n      }\n      counter = counter + counterStep;\n      iterations = iterations + 1;\n    }\n    return {\n      counter,\n      derivedKey: derivedKeyHex,\n      time: timeDuration(start)\n    };\n  }\n  function handler(options) {\n    const { deriveKey: deriveKey2 } = options;\n    let controller = void 0;\n    self.onmessage = async (message) => {\n      const { challenge, counterMode, counterStart, counterStep, timeout, type } = message.data;\n      if (type === "abort") {\n        controller?.abort();\n      } else if (type === "work") {\n        controller = new AbortController();\n        let solution;\n        try {\n          solution = await solveChallenge({\n            challenge,\n            controller,\n            counterStart,\n            counterStep,\n            deriveKey: deriveKey2,\n            counterMode,\n            timeout\n          });\n        } catch (err) {\n          return self.postMessage({ error: err });\n        }\n        self.postMessage(solution);\n      }\n    };\n  }\n  function getDigest(algorithm) {\n    switch (algorithm) {\n      case "PBKDF2/SHA-512":\n        return "SHA-512";\n      case "PBKDF2/SHA-384":\n        return "SHA-384";\n      case "PBKDF2/SHA-256":\n      default:\n        return "SHA-256";\n    }\n  }\n  async function deriveKey(parameters, salt, password) {\n    const { algorithm, cost, keyLength = 32 } = parameters;\n    const passwordKey = await crypto.subtle.importKey(\n      "raw",\n      password,\n      { name: "PBKDF2" },\n      false,\n      ["deriveKey"]\n    );\n    const derivedKey = await crypto.subtle.deriveKey(\n      {\n        name: "PBKDF2",\n        salt,\n        iterations: cost,\n        hash: getDigest(algorithm)\n      },\n      passwordKey,\n      { name: "AES-GCM", length: keyLength * 8 },\n      true,\n      ["encrypt"]\n    );\n    return {\n      derivedKey: new Uint8Array(await crypto.subtle.exportKey("raw", derivedKey))\n    };\n  }\n  handler({\n    deriveKey\n  });\n})();\n',Ja="undefined"!=typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",Wa],{type:"text/javascript;charset=utf-8"});function Za(e){let t;try{if(t=Ja&&(self.URL||self.webkitURL).createObjectURL(Ja),!t)throw"";const n=new Worker(t,{name:e?.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Wa),{name:e?.name})}}const Xa='(function() {\n  "use strict";\n  function bufferStartsWith(buffer, prefix) {\n    if (prefix.length > buffer.length) {\n      return false;\n    }\n    for (let i = 0; i < prefix.length; i++) {\n      if (buffer[i] !== prefix[i]) {\n        return false;\n      }\n    }\n    return true;\n  }\n  function bufferToHex(buffer) {\n    return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join("");\n  }\n  function concatBuffers(a, b) {\n    const out = new Uint8Array(a.length + b.length);\n    out.set(a, 0);\n    out.set(b, a.length);\n    return out;\n  }\n  function hexToBuffer(hex) {\n    if (hex.length % 2 !== 0) {\n      throw new Error(`Hex string must have an even length. Got: ${hex}`);\n    }\n    const buffer = new ArrayBuffer(hex.length / 2);\n    const view = new DataView(buffer);\n    for (let i = 0; i < hex.length; i += 2) {\n      const byteString = hex.substring(i, i + 2);\n      const byteValue = parseInt(byteString, 16);\n      view.setUint8(i / 2, byteValue);\n    }\n    return new Uint8Array(buffer);\n  }\n  async function delay(ms) {\n    await new Promise((resolve) => setTimeout(resolve, ms));\n  }\n  function timeDuration(start) {\n    return Math.floor((performance.now() - start) * 10) / 10;\n  }\n  class PasswordBuffer {\n    constructor(nonce, mode = "uint32") {\n      this.nonce = nonce;\n      this.mode = mode;\n      this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES);\n      this.buffer.set(this.nonce, 0);\n      this.dataView = new DataView(this.buffer.buffer);\n    }\n    nonce;\n    mode;\n    COUNTER_BYTES = 4;\n    buffer;\n    dataView;\n    encoder = new TextEncoder();\n    /**\n     * Appends the counter to the nonce buffer.\n     * In \'string\' mode, encodes the counter as a UTF-8 string.\n     * In \'uint32\' mode, writes the counter as a big-endian 32-bit integer.\n     */\n    setCounter(n) {\n      if (this.mode === "string") {\n        return concatBuffers(this.nonce, this.encoder.encode(n.toString()));\n      }\n      this.dataView.setUint32(this.nonce.length, n, false);\n      return this.buffer;\n    }\n  }\n  async function solveChallenge(options) {\n    const {\n      challenge,\n      controller,\n      counterMode = "uint32",\n      counterStart = 0,\n      counterStep = 1,\n      deriveKey: deriveKey2,\n      timeout = 9e4\n    } = options;\n    const { nonce, keyPrefix, salt } = challenge.parameters;\n    const nonceBuf = hexToBuffer(nonce);\n    const saltBuf = hexToBuffer(salt);\n    const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null;\n    const password = new PasswordBuffer(nonceBuf, counterMode);\n    const start = performance.now();\n    let counter = counterStart;\n    let iterations = 0;\n    let derivedKeyHex = "";\n    let lastYield = start;\n    while (true) {\n      if (controller?.signal.aborted || timeout && iterations % 10 === 0 && performance.now() - start > timeout) {\n        return null;\n      }\n      const { derivedKey } = await deriveKey2(\n        challenge.parameters,\n        saltBuf,\n        password.setCounter(counter)\n      );\n      if (iterations % 10 === 0 && performance.now() - lastYield > 200) {\n        await delay(0);\n        lastYield = performance.now();\n      }\n      if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) {\n        derivedKeyHex = bufferToHex(derivedKey);\n        break;\n      }\n      counter = counter + counterStep;\n      iterations = iterations + 1;\n    }\n    return {\n      counter,\n      derivedKey: derivedKeyHex,\n      time: timeDuration(start)\n    };\n  }\n  function handler(options) {\n    const { deriveKey: deriveKey2 } = options;\n    let controller = void 0;\n    self.onmessage = async (message) => {\n      const { challenge, counterMode, counterStart, counterStep, timeout, type } = message.data;\n      if (type === "abort") {\n        controller?.abort();\n      } else if (type === "work") {\n        controller = new AbortController();\n        let solution;\n        try {\n          solution = await solveChallenge({\n            challenge,\n            controller,\n            counterStart,\n            counterStep,\n            deriveKey: deriveKey2,\n            counterMode,\n            timeout\n          });\n        } catch (err) {\n          return self.postMessage({ error: err });\n        }\n        self.postMessage(solution);\n      }\n    };\n  }\n  async function deriveKey(parameters, salt, password) {\n    const { algorithm, keyLength = 32 } = parameters;\n    const iterations = Math.max(1, parameters.cost);\n    let data = void 0;\n    let derivedKey = void 0;\n    for (let i = 0; i < iterations; i++) {\n      if (i === 0) {\n        data = concatBuffers(salt, password);\n      } else {\n        data = derivedKey;\n      }\n      derivedKey = new Uint8Array(\n        (await crypto.subtle.digest(algorithm, data)).slice(0, keyLength)\n      );\n    }\n    return {\n      parameters: {},\n      derivedKey\n    };\n  }\n  handler({\n    deriveKey\n  });\n})();\n',Qa="undefined"!=typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",Xa],{type:"text/javascript;charset=utf-8"});function eo(e){let t;try{if(t=Qa&&(self.URL||self.webkitURL).createObjectURL(Qa),!t)throw"";const n=new Worker(t,{name:e?.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch(t){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Xa),{name:e?.name})}}!function(e,t="altcha-css"){if("undefined"!=typeof document&&document&&!document.getElementById(t)){const n=document.createElement("style");n.id=t,n.textContent=e;const r=document.currentScript?.nonce??document.querySelector('meta[name="csp-nonce"]')?.content;r&&(n.nonce=r),document.head.appendChild(n)}}(':root {\n  --altcha-border-color: var(--altcha-color-neutral);\n  --altcha-border-width: 1px;\n  --altcha-border-radius: 6px;\n  --altcha-color-base: light-dark(oklch(100% 0.00011 271.152), oklch(20.904% 0.00002 271.152));\n  --altcha-color-base-content: light-dark(\n  \toklch(20.904% 0.00002 271.152),\n  \toklch(100% 0.00011 271.152)\n  );\n  --altcha-color-error: oklch(51.284% 0.20527 28.678);\n  --altcha-color-error-content: oklch(100% 0.00011 271.152);\n  --altcha-color-neutral: light-dark(oklch(83.591% 0.0001 271.152), oklch(46.04% 0.00005 271.152));\n  --altcha-color-neutral-content: light-dark(\n  \toklch(46.76% 0.00005 271.152),\n  \toklch(100% 0.00011 271.152)\n  );\n  --altcha-color-primary: oklch(40.279% 0.2449 268.131);\n  --altcha-color-primary-content: oklch(100% 0.00011 271.152);\n  --altcha-color-success: oklch(55.748% 0.18968 142.511);\n  --altcha-color-success-content: oklch(100% 0.00011 271.152);\n  --altcha-checkbox-border-color: light-dark(\n  \toklch(66.494% 0.00233 15.434),\n  \toklch(51.028% 0.00006 271.152)\n  );\n  --altcha-checkbox-border-radius: 5px;\n  --altcha-checkbox-border-width: var(--altcha-border-width);\n  --altcha-checkbox-outline: 2px solid var(--altcha-checkbox-outline-color);\n  --altcha-checkbox-outline-color: -webkit-focus-ring-color;\n  --altcha-checkbox-outline-offset: 2px;\n  --altcha-checkbox-size: 22px;\n  --altcha-checkbox-transition-duration: var(--altcha-transition-duration);\n  --altcha-input-background-color: var(--altcha-color-base);\n  --altcha-input-border-radius: 3px;\n  --altcha-input-border-width: 1px;\n  --altcha-input-color: var(--altcha-color-base-content);\n  --altcha-max-width: 320px;\n  --altcha-padding: 0.75rem;\n  --altcha-popover-arrow-size: 6px;\n  --altcha-popover-color: var(--altcha-border-color);\n  --altcha-shadow: drop-shadow(3px 3px 6px oklch(0% 0 0 / 0.2));\n  --altcha-spinner-color: var(--altcha-color-base-content);\n  --altcha-switch-background-color: var(--altcha-color-neutral);\n  --altcha-switch-border-radius: calc(infinity * 1px);\n  --altcha-switch-height: var(--altcha-checkbox-size);\n  --altcha-switch-padding: 0.25rem;\n  --altcha-switch-width: calc(var(--altcha-checkbox-size) * 1.75);\n  --altcha-switch-toggle-border-radius: 100%;\n  --altcha-switch-toggle-color: var(--altcha-color-neutral-content);\n  --altcha-switch-toggle-size: calc(\n  \tvar(--altcha-switch-height) - calc(var(--altcha-switch-padding) * 2)\n  );\n  --altcha-transition-duration: 0.6s;\n  --altcha-z-index: 99999999;\n  --altcha-z-index-popover: 999999999;\n}\n\n@supports (-moz-appearance: none) {\n  :root {\n    --altcha-checkbox-outline-color: var(--altcha-color-primary);\n  }\n}\n.altcha {\n  all: revert-layer;\n  display: none;\n  font-family: inherit;\n  font-size: inherit;\n  position: relative;\n}\n.altcha[data-visible] {\n  display: block;\n}\n.altcha-popover, .altcha-popover * {\n  all: revert-layer;\n  box-sizing: border-box;\n  font-family: inherit;\n  font-size: inherit;\n  line-height: 1.25;\n}\n.altcha * {\n  all: revert-layer;\n  box-sizing: border-box;\n  font-family: inherit;\n  font-size: inherit;\n  line-height: 1.25;\n}\n.altcha a, .altcha-popover a {\n  color: currentColor;\n  text-decoration: none;\n}\n.altcha a:hover, .altcha-popover a:hover {\n  color: currentColor;\n}\n.altcha-main {\n  align-items: start;\n  background-color: var(--altcha-color-base);\n  border: var(--altcha-border-width, 1px) solid var(--altcha-border-color);\n  border-radius: var(--altcha-border-radius, 0);\n  color: var(--altcha-color-base-content);\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n  justify-content: space-between;\n  padding: var(--altcha-padding);\n  max-width: var(--altcha-max-width, 100%);\n}\n.altcha-main > * {\n  display: flex;\n  width: 100%;\n}\n.altcha-main > *:first-child {\n  flex-grow: 1;\n}\n.altcha-checkbox-wrap {\n  align-items: center;\n  display: flex;\n  flex-direction: row;\n  flex-grow: 1;\n  gap: 0.5rem;\n}\n.altcha-checkbox-wrap > * {\n  display: flex;\n}\n.altcha-logo {\n  opacity: 0.7;\n}\n.altcha-footer {\n  align-items: center;\n  display: flex;\n  flex-grow: 1;\n  gap: 0.5rem;\n  justify-content: flex-end;\n  font-size: 0.7rem;\n  opacity: 0.7;\n}\n.altcha-footer p {\n  margin: 0;\n  padding: 0;\n}\n.altcha-error {\n  font-size: 0.85rem;\n}\n.altcha-button {\n  align-items: center;\n  background: var(--altcha-color-primary);\n  border: var(--altcha-input-border-width) solid var(--altcha-color-primary);\n  border-radius: var(--altcha-input-border-radius);\n  color: var(--altcha-color-primary-content);\n  cursor: pointer;\n  display: flex;\n  font-size: 0.9rem;\n  gap: 0.5rem;\n  padding: 0.35rem;\n}\n.altcha-button:focus {\n  border-color: var(--altcha-color-primary);\n  outline: var(--altcha-checkbox-outline);\n  outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-button > .altcha-spinner, .altcha-button > svg {\n  height: 20px;\n  width: 20px;\n}\n.altcha-button-secondary {\n  background: transparent;\n  border-color: var(--altcha-color-neutral);\n  color: var(--altcha-color-neutral-content);\n}\n.altcha-input {\n  background: var(--altcha-input-background-color);\n  border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n  border-radius: var(--altcha-input-border-radius);\n  color: var(--altcha-input-color);\n  flex-grow: 1;\n  font-size: 1rem;\n  min-width: 0;\n  padding: 0.25rem;\n  width: auto;\n}\n.altcha-input:focus {\n  border-color: var(--altcha-color-primary);\n  outline: var(--altcha-checkbox-outline);\n  outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-spinner {\n  animation: altcha-rotate 0.6s linear infinite;\n  border-radius: 100%;\n  border: var(--altcha-checkbox-border-width) solid var(--altcha-spinner-color);\n  border-bottom-color: transparent;\n  border-right-color: transparent;\n  opacity: 0.7;\n}\n.altcha-popover {\n  background-color: var(--altcha-color-base);\n  border: var(--altcha-border-width) solid var(--altcha-border-color);\n  border-radius: var(--altcha-border-radius);\n  color: var(--altcha-color-base-content);\n  filter: var(--altcha-shadow);\n  position: absolute;\n  left: calc(var(--altcha-padding) / 2);\n  max-width: calc(var(--altcha-max-width) - var(--altcha-padding));\n  top: calc(var(--altcha-padding) + var(--altcha-checkbox-size) + var(--altcha-popover-arrow-size));\n  z-index: var(--altcha-z-index-popover);\n}\n.altcha-popover-arrow {\n  border: var(--altcha-popover-arrow-size) solid transparent;\n  border-bottom-color: var(--altcha-popover-color);\n  content: "";\n  height: 0;\n  left: calc(var(--altcha-checkbox-size) / 2);\n  position: absolute;\n  top: calc(var(--altcha-popover-arrow-size) * -2);\n  width: 0;\n}\n.altcha-popover-content {\n  max-height: 100dvh;\n  overflow: auto;\n  padding: var(--altcha-padding);\n}\n.altcha-popover[data-top=true][data-display=standard] {\n  bottom: calc(100% - (var(--altcha-padding) - var(--altcha-popover-arrow-size)));\n  top: auto;\n}\n.altcha-popover[data-top=true][data-display=standard] .altcha-popover-arrow {\n  border-bottom-color: transparent;\n  border-top-color: var(--altcha-popover-color);\n  bottom: calc(var(--altcha-popover-arrow-size) * -2);\n  top: auto;\n}\n.altcha-popover[data-variant=error] {\n  --altcha-popover-color: var(--altcha-color-error);\n  background-color: var(--altcha-color-error);\n  border-color: var(--altcha-color-error);\n  color: var(--altcha-color-error-content);\n}\n.altcha-popover[data-variant=error] .altcha-popover-content {\n  padding: calc(var(--altcha-padding) / 1.5) var(--altcha-padding);\n}\n.altcha-popover[data-display=overlay] {\n  animation: altcha-overlay-slidein 0.5s forwards;\n  left: 50%;\n  position: fixed;\n  top: 45%;\n  transform: translate(-50%, -50%);\n  width: var(--altcha-max-width);\n  z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] {\n  animation: altcha-bottomsheet-slideup 0.5s forwards;\n  border-bottom-left-radius: 0;\n  border-bottom-right-radius: 0;\n  border-bottom: 0;\n  bottom: -100%;\n  left: 50%;\n  position: fixed;\n  top: auto;\n  transform: translate(-50%, 0);\n  width: var(--altcha-max-width);\n  z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] .altcha-popover-content {\n  padding-bottom: calc(var(--altcha-padding) * 2);\n}\n.altcha-popover-backdrop {\n  background: var(--altcha-color-base-content);\n  bottom: 0;\n  left: 0;\n  opacity: 0.1;\n  position: fixed;\n  right: 0;\n  top: 0;\n  transition: opacity 0.5s;\n  z-index: var(--altcha-z-index);\n}\n.altcha-popover-close {\n  color: var(--altcha-color-base-content);\n  cursor: pointer;\n  display: inline-block;\n  font-size: 1rem;\n  height: 1.25rem;\n  line-height: 0.95;\n  position: absolute;\n  right: 0;\n  text-align: center;\n  text-shadow: 0 0 1px var(--altcha-color-base);\n  top: -1.5rem;\n  width: 1.25rem;\n  z-index: var(--altcha-z-index);\n}\n[dir=rtl] .altcha-popover {\n  left: auto;\n  right: calc(var(--altcha-padding) / 2);\n}\n[dir=rtl] .altcha-popover-arrow {\n  left: auto;\n  right: calc(var(--altcha-checkbox-size) / 2);\n}\n[dir=rtl] .altcha-popover-close {\n  left: 0;\n  right: auto;\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer, .altcha-popover[data-display=overlay] .altcha-footer {\n  align-items: center;\n  justify-content: center;\n  padding-top: 1rem;\n  gap: 0.5rem;\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer svg, .altcha-popover[data-display=overlay] .altcha-footer svg {\n  height: 18px;\n  width: 18px;\n  vertical-align: middle;\n}\n.altcha-code-challenge > form {\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n}\n.altcha-code-challenge-title {\n  font-weight: 600;\n}\n.altcha-code-challenge-text {\n  font-size: 0.85rem;\n}\n.altcha-code-challenge-image {\n  background: white;\n  border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n  border-radius: var(--altcha-input-border-radius);\n  object-fit: contain;\n  height: 50px;\n}\n.altcha-code-challenge-row {\n  display: flex;\n  gap: 0.5rem;\n}\n.altcha-code-challenge-buttons {\n  align-items: center;\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n  margin-top: var(--altcha-padding);\n  justify-content: space-between;\n}\n.altcha-code-challenge-buttons button {\n  justify-content: center;\n  width: 100%;\n}\n.altcha-checkbox {\n  cursor: pointer;\n  height: var(--altcha-checkbox-size);\n  position: relative;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox input {\n  appearance: none;\n  background: var(--altcha-input-background-color);\n  border: var(--altcha-checkbox-border-width, 2px) solid var(--altcha-checkbox-border-color);\n  border-radius: var(--altcha-checkbox-border-radius);\n  cursor: pointer;\n  height: var(--altcha-checkbox-size);\n  left: 0;\n  margin: 0;\n  padding: 0;\n  position: absolute;\n  top: 0;\n  width: var(--altcha-checkbox-size);\n}\n@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {\n  .altcha-checkbox input {\n    /* Safari-only: fixes focus outline */\n  }\n  .altcha-checkbox input:focus {\n    outline-width: 2px;\n    outline-style: solid;\n  }\n}\n.altcha-checkbox input:before {\n  border-radius: var(--altcha-checkbox-border-radius);\n  content: "";\n  width: 100%;\n  height: 100%;\n  background: var(--altcha-color-neutral);\n  display: block;\n  transform: scale(0);\n}\n.altcha-checkbox input:checked {\n  background-color: var(--altcha-color-success);\n  border-color: var(--altcha-color-success);\n}\n.altcha-checkbox input:checked::before {\n  background-color: var(--altcha-color-success);\n  opacity: 0;\n  transform: scale(2.2);\n  transition: all var(--altcha-checkbox-transition-duration) ease;\n  transition-delay: 0.1s;\n}\n.altcha-checkbox svg {\n  --altcha-radio-svg-size: calc(var(--altcha-checkbox-size) * 0.5);\n  --altcha-radio-svg-offset: calc(var(--altcha-checkbox-size) * 0.25);\n  fill: none;\n  left: var(--altcha-radio-svg-offset);\n  height: var(--altcha-radio-svg-size);\n  opacity: 0;\n  position: absolute;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  stroke-dasharray: 16px;\n  stroke-dashoffset: 16px;\n  top: var(--altcha-radio-svg-offset);\n  transform: translate3d(0, 0, 0);\n  width: var(--altcha-radio-svg-size);\n}\n.altcha-checkbox input:checked + svg {\n  color: var(--altcha-color-success-content);\n  opacity: 1;\n  stroke-dashoffset: 0;\n  transition: all var(--altcha-checkbox-transition-duration) ease;\n  transition-delay: 0.1s;\n}\n.altcha-checkbox-spinner {\n  display: none;\n  left: 0;\n  height: var(--altcha-checkbox-size);\n  position: absolute;\n  top: 0;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox[data-loading=true] input {\n  appearance: none;\n  opacity: 0;\n  pointer-events: none;\n}\n.altcha-checkbox[data-loading=true] .altcha-checkbox-spinner {\n  display: block;\n}\n.altcha-checkbox-native {\n  height: var(--altcha-checkbox-size);\n  position: relative;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native input {\n  height: var(--altcha-checkbox-size);\n  margin: 0;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native-spinner {\n  display: none;\n  left: 0;\n  height: var(--altcha-checkbox-size);\n  position: absolute;\n  top: 0;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native[data-loading=true] input {\n  appearance: none;\n  opacity: 0;\n  pointer-events: none;\n}\n.altcha-checkbox-native[data-loading=true] .altcha-checkbox-native-spinner {\n  display: block;\n}\n.altcha-switch {\n  align-items: center;\n  border-radius: var(--altcha-switch-border-radius);\n  background-color: var(--altcha-switch-background-color);\n  display: flex;\n  height: var(--altcha-switch-height);\n  padding: var(--altcha-switch-padding);\n  position: relative;\n  width: var(--altcha-switch-width);\n}\n.altcha-switch:focus-within {\n  outline: var(--altcha-checkbox-outline);\n  outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-switch input {\n  appearance: none;\n  cursor: pointer;\n  height: 100%;\n  left: 0;\n  opacity: 0;\n  position: absolute;\n  top: 0;\n  width: 100%;\n}\n.altcha-switch-toggle {\n  align-items: center;\n  background-color: var(--altcha-switch-toggle-color);\n  border-radius: var(--altcha-switch-toggle-border-radius);\n  cursor: pointer;\n  display: flex;\n  height: var(--altcha-switch-toggle-size);\n  justify-content: center;\n  left: var(--altcha-switch-padding);\n  position: absolute;\n  transition: width 150ms ease-out, left 150ms ease-out;\n  width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch-spinner {\n  display: none;\n  height: var(--altcha-switch-toggle-size);\n  width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch[data-loading=true] {\n  pointer-events: none;\n}\n.altcha-switch[data-loading=true] .altcha-switch-spinner {\n  display: block;\n}\n.altcha-switch[data-loading=true] .altcha-switch-toggle {\n  background-color: transparent;\n  left: calc(50% - var(--altcha-switch-toggle-size) / 2);\n}\n[data-state=verified] .altcha-switch {\n  --altcha-switch-background-color: var(--altcha-color-success);\n}\n[data-state=verified] .altcha-switch-toggle {\n  background-color: var(--altcha-color-success-content);\n  left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl] .altcha-switch-toggle {\n  left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl][data-state=verified] .altcha-switch-toggle {\n  left: var(--altcha-switch-padding);\n}\n.altcha-floating-arrow {\n  border: 6px solid transparent;\n  border-bottom-color: var(--altcha-border-color);\n  content: "";\n  height: 0;\n  left: 12px;\n  position: absolute;\n  top: -12px;\n  width: 0;\n}\n.altcha-overlay-backdrop {\n  bottom: 0;\n  left: 0;\n  position: fixed;\n  right: 0;\n  top: 0;\n  transition: opacity var(--altcha-transition-duration);\n  z-index: var(--altcha-z-index);\n}\n.altcha-overlay-close {\n  display: inline-block;\n  color: currentColor;\n  cursor: pointer;\n  font-size: 1rem;\n  height: 1rem;\n  line-height: 0.85;\n  position: absolute;\n  right: 0;\n  text-align: center;\n  text-shadow: 0 0 1px var(--altcha-color-base);\n  top: -1.5rem;\n  width: 1rem;\n  z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] {\n  animation: altcha-overlay-slidein var(--altcha-transition-duration) forwards;\n  filter: var(--altcha-shadow);\n  left: 50%;\n  opacity: 0;\n  position: fixed;\n  top: 45%;\n  transform: translate(-50%, -50%);\n  z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] .altcha-main {\n  width: var(--altcha-max-width);\n}\n.altcha[data-display=floating] {\n  display: none;\n  filter: var(--altcha-shadow);\n  left: var(--altcha-floating-left, -100%);\n  position: fixed;\n  top: var(--altcha-floating-top, -100%);\n  z-index: var(--altcha-z-index);\n}\n.altcha[data-display=floating] .altcha-main {\n  width: var(--altcha-max-width);\n}\n.altcha[data-display=floating][data-floating-position=top] .altcha-floating-arrow {\n  border-bottom-color: transparent;\n  border-top-color: var(--altcha-border-color);\n  bottom: -12px;\n  top: auto;\n}\n.altcha[data-display=floating][data-visible] {\n  display: flex;\n}\n.altcha[data-display=bar] {\n  bottom: -100%;\n  filter: var(--altcha-shadow);\n  left: 0;\n  position: fixed;\n  right: 0;\n  transition: bottom var(--altcha-transition-duration), top var(--altcha-transition-duration);\n  z-index: var(--altcha-z-index);\n}\n.altcha[data-display=bar] .altcha-main {\n  align-items: center;\n  border-radius: 0;\n  border-width: var(--altcha-border-width) 0 0 0;\n  flex-direction: row;\n  max-width: 100% !important;\n}\n.altcha[data-display=bar] .altcha-main > * {\n  width: auto;\n}\n.altcha[data-display=bar][data-placement=top] {\n  bottom: auto;\n  top: -100%;\n}\n.altcha[data-display=bar][data-placement=top] .altcha-main {\n  border-width: 0 0 var(--altcha-border-width) 0;\n}\n.altcha[data-display=bar][data-placement=bottom]:not([data-state=unverified]) {\n  bottom: 0;\n}\n.altcha[data-display=bar][data-placement=top]:not([data-state=unverified]) {\n  top: 0;\n}\n.altcha[data-display=invisible] {\n  display: none;\n}\n\n@keyframes altcha-rotate {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n@keyframes altcha-bottomsheet-slideup {\n  100% {\n    bottom: 0;\n  }\n}\n@keyframes altcha-overlay-slidein {\n  100% {\n    opacity: 1;\n    top: 50%;\n  }\n}'),$altcha.algorithms.set("SHA-256",()=>new eo),$altcha.algorithms.set("SHA-384",()=>new eo),$altcha.algorithms.set("SHA-512",()=>new eo),$altcha.algorithms.set("PBKDF2/SHA-256",()=>new Za),$altcha.algorithms.set("PBKDF2/SHA-384",()=>new Za),$altcha.algorithms.set("PBKDF2/SHA-512",()=>new Za);

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.