1 2"use strict";(()=>{function e(e){for(;"FORM"!==e.tagName;)if(!(e=e.parentElement))return null;return e}function t(e,t){e.addEventListener("focusin",t,{once:!0,passive:!0})}function n(e,t){const n=document.createElement("input");return n.type="hidden",n.style.display="none",n.name=t,e.appendChild(n),n}function i(e,t,n){""===e.style[t]&&(e.style[t]=n)}function r(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function o(e,t){let n;"function"==typeof window.CustomEvent?n=new CustomEvent(t.name,{bubbles:!0,detail:t}):(n=document.createEvent("CustomEvent"),n.initCustomEvent(t.name,!0,!1,t)),e.dispatchEvent(n)}function s(e){let t,n;const i=new Promise(((e,i)=>{t=e,n=i}));return e&&e(t,n),{promise:i,resolve:t,reject:n}}function a(e,t){return 0===e.lastIndexOf(t,0)}function c(e){let t=[];const n=Object.keys(e),i=encodeURIComponent;for(let r=0;r<n.length;r++)t.push(`${i(n[r])}=${i(e[n[r]])}`);return t.join("&")}function l(e){const t=document.location;if(a(e,"/")||a(e,"."))return t.origin?t.origin:t.protocol+"//"+t.host;const n=e.match(L);if(!n)throw new Error("Invalid URL: "+e);return n[1]}function d(e,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"){let n="";for(let i=0;i<e;i++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function h(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function g(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const i=h(n);return(e,n)=>i.then((i=>n(i.transaction(t,e).objectStore(t))))}function u(){return O||(O=g("keyval-store","keyval")),O}function m(e){if(!q){let n=0;try{n=parseInt(sessionStorage.getItem(X)||"",10)}catch(t){}isNaN(n)&&(n=0),e&&n++,H=n.toString();try{sessionStorage.setItem(X,H)}catch(t){}}return H}function f(){let e;try{e=sessionStorage.getItem(Y)}catch(t){return K}return e||(e=d(12),sessionStorage.setItem(Y,e)),e}function p(e){return e.toLowerCase().split("-")[0].split("_")[0]}function y(e){return e=p(e),-1!==G.indexOf(e)}function v(e){return e=p(e),(U[e]||U.en).title+" - Widget"}function b(e,t){return e=p(e),(U[e]||U.en)[t]}function w(e){e.textDecoration=e.fontStyle="none",e.fontWeight="500",e.fontFamily='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',e.lineHeight="1",e.letterSpacing="-0.0125rem"}function k(e){let t=e.language;return t&&"html"!==t||(t=function(e){for(;!e.lang||"string"!=typeof e.lang;)if(!(e=e.parentElement))return null;return e.lang}(e.element)||""),t}function _(){const e=window.performance;return e?e.now():0}function E(e,...t){for(let i=0;i<t.length;i++){const r=t[i];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function R(){const e=[0,0,0,0,0,0,0];return{s:e,add(t){const n=++e[0],i=t-e[1],r=i/n,o=r*r,s=i*r*(n-1);e[1]+=r,e[4]+=s*o*(n*n-3*n+3)+6*o*e[2]-4*r*e[3],e[3]+=s*r*(n-2)-3*r*e[2],e[2]+=s,1==n?e[5]=e[6]=t:(t<e[5]&&(e[5]=t),t>e[6]&&(e[6]=t))}}}function S(){return/Android/i.test(navigator.userAgent)}function A(e,t,n=!1,i){const o=R();let s,a=!1;return r((()=>{(i=i||document.body)[ee](e,(e=>{a&&!n||(s=e.timeStamp,a=!0)})),i[ee](t,(e=>{a&&(o.add(e.timeStamp-s),a=!1)}))})),o.s}function x(e){const t=[];for(let n=0;n<e.length;n++)t.push(0),document[ee](e[n],(()=>t[n]++));return t}function I(){const e=[0,0,0,0,0,0,0,0],t={8:1,46:1,9:2,45:3,17:4,13:5,37:6,38:6,39:6,40:6,33:7,34:7};return document[ee]("keydown",(n=>{const i=n.keyCode;t[i]?e[t[i]]++:i>=112&&i<=123&&e[0]++})),e}function M(e,t,n,i){return te.sqrt(te.pow(e-t,2)+te.pow(n-i,2))}function C(e,t,n){return te.sqrt(te.pow(e,2)+te.pow(t,2)+te.pow(n,2))}function F(e,t){let n=t-e;return n+=n>180?-360:n<-180?360:0,n}function P(e){let t=e;return t?ie[t]&&(t=ie[t]):t=ie.global,l(t)}function D(){const e=document.querySelector('meta[name="frc-disable-eval-patching"]');return!!e&&!!e.content}function T(){const e=document.querySelector('meta[name="frc-api-endpoint"]');if(e)return e.content;const t=document.currentScript;if(t){const e=t.dataset.frcApiEndpoint;if(e)return e}
2const n=document.querySelector(".frc-captcha[data-api-endpoint]");if(n){const e=n.dataset.apiEndpoint;if(e)return e}}function z(){const e=window.Intl;if(!e||!e.DateTimeFormat)return;const t=new e.DateTimeFormat;return t&&t.resolvedOptions?t.resolvedOptions().timeZone:void 0}var O,N,j,L=/^((?:\w+:)?\/\/([^\/]+))/,W=class{constructor(e){this.ready=!1,this.buffer=[],this.id=e.id,this.type=e.type,this.element=e.element,this.onReady=e.onReady,this.origin=l(e.element.src)}send(e){this.ready?this.element.contentWindow.postMessage(e,this.origin):this.buffer.push(e)}setReady(e){this.onReady(),this.ready=e,this.ready&&this.flush()}flush(){for(let e=0;e<this.buffer.length;e++)this.element.contentWindow.postMessage(this.buffer[e],this.origin);this.buffer=[]}},V=class{constructor(){this.origins=new Set,this.targets={},this.answered=new Set,this.onReceiveRootMessage=()=>{},window.addEventListener("message",(e=>{this.onReceive(e)}))}listen(e){let t=this.onReceiveRootMessage;this.onReceiveRootMessage=n=>{t(n),e(n)}}addOrigin(e){this.origins.add(e)}send(e){if(e.from_id){const t=this.targets[e.from_id];if(!t)return void console.error(`[bus] Unexpected message from unknown sender ${e.from_id}`,e);"widget_announce"!==e.type&&"agent_announce"!==e.type||t.setReady(!0)}const t=e.rid;if(t){if(this.answered.has(t+e.to_id))return;this.answered.add(t+e.to_id)}if(""===e.to_id)return void this.onReceiveRootMessage(e);const n=this.targets[e.to_id];n?n.send(e):console.error(`[bus] Unexpected message to unknown target ${e.to_id}`,e)}onReceive(e){if(t=e.origin,n=this.origins,"*"!==t&&!n.has(t))return;var t,n;const i=e.data;i&&i._frc&&this.send(i)}registerTarget(e){this.targets[e.id]=e}registerTargetIFrame(e,t,n,i){const r=s();let o=new Promise((e=>setTimeout((()=>e("timeout")),i)));const a=new W({id:t,element:n,type:e,onReady:()=>r.resolve("registered")});return this.registerTarget(a),Promise.race([r.promise,o])}removeTarget(e){delete this.targets[e]}},X="frc_sc",Y="frc_sid",q=!1,H="0",K="__"+d(10),$=class{constructor(e){this.mem=new Map,this.storePrefix=e}setup(){return new Promise(((e,t)=>{if(void 0!==this._hasSA)return e(this._hasSA);try{indexedDB.open("")}catch(n){return e(this._hasSA=!1)}if(!document.hasStorageAccess)return e(this._hasSA=!0);document.hasStorageAccess().then((t=>(this._hasSA=t,this._hasSA?this.idb=g("friendlycaptcha","frc"):console.debug("FRC has no storage access"),e(this._hasSA)))).catch(t)}))}get(e,t){return this.setup().then((n=>{const i=this.storePrefix+"__"+e;if(t.p)return n?function(e,t=u()){return t("readonly",(t=>h(t.get(e))))}(i,this.idb):this.mem.get(e);try{const e=sessionStorage.getItem(i);return null===e?void 0:e}catch(r){}return this.mem.get(e)}))}set(e,t,n){return this.setup().then((i=>{const r=this.storePrefix+"__"+e;if(n.p){if(i)return function(e,t,n=u()){return n("readwrite",(n=>(n.put(t,e),h(n.transaction))))}(r,t,this.idb);void 0===t?this.mem.delete(e):this.mem.set(e,t)}else try{void 0===t?(this.mem.delete(e),sessionStorage.removeItem(r)):(this.mem.set(e,t),sessionStorage.setItem(r,t))}catch(o){}}))}hasSA(){return this._hasSA}},B="undefined"!=typeof navigator&&void 0!==navigator.userAgentData,U={ar:{title:"Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª",connecting:"Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª ÙÙØ¯ Ø§ÙØ§ØªØµØ§Ùâ¦",retrying:"Ø§Ø³ØªØºØ±Ù Ø§ÙØ§ØªØµØ§Ù Ø¨Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª ÙÙØªÙا Ø·ÙÙÙØ§Ù.\n\nإعادة اÙÙ
ØØ§ÙÙØ©â¦",failed:"ÙØ´Ù Ø§ÙØ§ØªØµØ§Ù Ø¨Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª."},bg:{title:"ÐÑовеÑка ÑÑеÑÑ ÑобоÑи",connecting:"ÐаÑежда Ñе задаÑаÑаâ¦",retrying:"ÐеÑÑпеÑно ÑвÑÑзване.\n\nÐÐ¿Ð¸Ñ Ð·Ð° повÑоÑно ÑвÑÑзванеâ¦",failed:"ÐеÑÑпеÑно ÑвÑÑзване."},ca:{title:"Verificació anti-robot",connecting:"Carregant el desafiamentâ¦",retrying:"Errada de conexió.\n\nReintentantâ¦",failed:"Errada de conexió."},cs:{title:"OvÄÅenà proti robotům",connecting:"PÅipojovánà kontroly proti robotůmâ¦",retrying:"PÅipojenà kontroly proti robotům trvalo pÅÃliÅ¡ dlouho.\n\nOpakuji pokusâ¦",failed:"Kontrola proti robotům se nepodaÅilo pÅipojit."},da:{title:"Anti-robot-verifikation",connecting:"Anti-robot-kontrol forbinderâ¦",retrying:"Anti-robot-kontrol tog for lang tid at oprette forbindelse.\n\nPrøver igenâ¦",failed:"Anti-robot-kontrol kunne ikke oprette forbindelse."},nl:{title:"Anti-robotcheck",connecting:"Verbinden met Anti-robotcheckâ¦",retrying:"Verbinden met Anti-robotcheck mislukt.\n\nOpnieuw aan het proberenâ¦",failed:"Verbinden met Anti-robotcheck mislukt."},en:{title:"Anti-Robot verification",connecting:"Anti-Robot check connectingâ¦",retrying:"Anti-Robot check took too long to connect.\n\nRetryingâ¦",failed:"Anti-Robot check failed to connect."},fi:{title:"Robottien torjunnan vahvistus",connecting:"Robottien torjunnan tarkistus käynnissäâ¦",retrying:"Robottien torjunnan tarkistus kesti liian kauan.\n\nYritetään uudelleenâ¦",failed:"Robottien torjunnan tarkistus epäonnistui."},fr:{title:"Vérification anti-robot",connecting:"Connexion à la vérification anti-robotâ¦",retrying:"La connexion à la vérification anti-robot a pris trop de temps.\n\nNouvelle tentativeâ¦",failed:"Ãchec de la connexion à la vérification anti-robot."},de:{title:"Anti-Roboter-Verifizierung",connecting:"Verbindung zur Anti-Roboter-Verifizierung wird hergestelltâ¦",retrying:"Verbindung zur Anti-Roboter-Verifizierung hat zu lange gedauert.\n\nErneuter Versuchâ¦",failed:"Verbindung zur Anti-Roboter-Verifizierung ist fehlgeschlagen."},hi:{title:"à¤à¤à¤à¥-रà¥à¤¬à¥à¤ सतà¥à¤¯à¤¾à¤ªà¤¨",connecting:"à¤à¥à¤¨à¥à¤¤à¥ लà¥à¤¡ हॠरहॠहà¥â¦",retrying:"à¤à¤¨à¥à¤à¥à¤¶à¤¨ विफल.\n\nपà¥à¤¨à¤ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤° रहॠहà¥à¤â¦",failed:"à¤à¤¨à¥à¤à¥à¤¶à¤¨ विफल."},hu:{title:"RobotellenÅrzés",connecting:"RobotellenÅrzés csatlakozásâ¦",retrying:"A robotellenÅrzés túl sokáig tartott a csatlakozáshoz.\n\nÃjrapróbálomâ¦",failed:"A robotellenÅrzés nem tudott csatlakozni."},id:{title:"Verifikasi Anti-Robot",connecting:"Pemeriksaan Anti-Robot sedang terhubungâ¦",retrying:"Pemeriksaan Anti-Robot memakan waktu terlalu lama untuk terhubung.\n\nMencoba lagiâ¦",failed:"Pemeriksaan Anti-Robot gagal terhubung."},ja:{title:"ãããã鲿¢èªè¨¼",connecting:"ãã£ã¬ã³ã¸ãèªã¿è¾¼ãã§ãã¾ãâ¦",retrying:"æ¥ç¶å¤±æ.\n\nå試è¡ä¸â¦",failed:"æ¥ç¶å¤±æ."},it:{title:"Verifica anti-robot",connecting:"Connessione verifica anti-robot in corsoâ¦",retrying:"La connessione alla verifica anti-robot ha richiesto troppo tempo.\n\nRiprovandoâ¦",failed:"Impossibile connettersi alla verifica anti-robot."},nb:{title:"Anti-robot-verifisering",connecting:"Laster inn utfordringâ¦",retrying:"Klarte ikke Ã¥ koble til.\n\nPrøver igjenâ¦",failed:"Klarte ikke Ã¥ koble til."},pl:{title:"Weryfikacja antyrobotowa",connecting:"ÅÄ
czenie siÄ z kontrolÄ
antyrobotowÄ
â¦",retrying:"ÅÄ
czenie siÄ z kontrolÄ
antyrobotowÄ
trwaÅo zbyt dÅugo. \n\nPonowna próbaâ¦",failed:"Nie udaÅo siÄ poÅÄ
czyÄ z kontrolÄ
antyrobotowÄ
."},ro:{title:"Verificare anti-robot",connecting:"Se incarca testulâ¦",retrying:"Conexiunea a esuat.\n\nReincercareâ¦",failed:"Conexiunea a esuat."},pt:{title:"Verificação anti-robô",connecting:"Verificação anti-robô a ligarâ¦",retrying:"A verificação anti-robô demorou demasiado tempo a ligar-se.\n\nA tentar novamenteâ¦",failed:"A verificação anti-robô não conseguiu ligar-se."},ru:{title:"ÐÑовеÑка анÑиÑобоÑа",connecting:"ÐодклÑÑение к пÑовеÑке анÑиÑобоÑаâ¦",retrying:"ÐодклÑÑение к пÑовеÑке анÑиÑобоÑа занÑло ÑлиÑком много вÑемени.\n\nÐовÑоÑÑем попÑÑкÑâ¦",failed:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÐºÐ»ÑÑиÑÑÑÑ Ðº пÑовеÑке анÑиÑобоÑа."},sk:{title:"Overovanie proti robotom",connecting:"Pripojenie kontroly proti robotomâ¦",retrying:"Pripojenie kontroly proti robotom trvalo prÃliÅ¡ dlho.\n\nOpakujem pokusâ¦",failed:"Pripojenie kontroly proti robotom sa nepod
2arilo."},sl:{title:"Preverjanje proti robotom",connecting:"Nalaganje izzivaâ¦",retrying:"Povezava ni uspela.\n\nPonovni poskusâ¦",failed:"Povezava ni uspela."},es:{title:"Verificación antirrobot",connecting:"Conectando verificación antirrobotâ¦",retrying:"La verificación antirrobot tardó demasiado en conectarse.\n\nReintentandoâ¦",failed:"Error al conectar la verificación antirrobot."},sv:{title:"Anti-robotverifiering",connecting:"Anti-robotverifiering ansluterâ¦",retrying:"Anti-robotverifiering tog för lÃ¥ng tid att ansluta.\n\nFörsöker igenâ¦",failed:"Anti-robotverifiering kunde inte ansluta."},th:{title:"à¸à¸²à¸£à¸à¸£à¸§à¸à¸ªà¸à¸à¸à¹à¸à¸à¸à¸±à¸à¸à¸à¸",connecting:"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸à¸à¸²à¸£à¸à¹à¸²à¸à¸²à¸¢â¦",retrying:"à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸à¹à¸¡à¹à¸ªà¸³à¹à¸£à¹à¸.\n\nà¸à¸³à¸¥à¸±à¸à¸¥à¸à¸à¹à¸«à¸¡à¹â¦",failed:"à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸à¹à¸¡à¹à¸ªà¸³à¹à¸£à¹à¸."},tr:{title:"Robot önleme doÄrulaması",connecting:"Robot önleme kontrolü baÄlanıyorâ¦",retrying:"Robot önleme kontrolü baÄlanmak için çok uzun sürdü.\n\nYeniden deniyorâ¦",failed:"Robot önleme kontrolü baÄlanamadı."},vi:{title:"Xác minh chá»ng robot",connecting:"Kiá»m tra robot Äang kết ná»iâ¦",retrying:"Kiá»m tra chá»ng robot mất quá nhiá»u thá»i gian Äá» kết ná»i.\n\nÄang thá» lạiâ¦",failed:"Kiá»m tra chá»ng robot không thá» kết ná»i."},zh:{title:"åæºå¨äººéªè¯",connecting:"åæºå¨äººéªè¯æ£å¨è¿æ¥â¦",retrying:"åæºå¨äººéªè¯è¿æ¥èæ¶è¿é¿ã\n\næ£å¨éè¯â¦",failed:"åæºå¨äººéªè¯è¿æ¥å¤±è´¥ã"}},G=["ar","he","fa","ur","ps","sd","yi"],Z="FrcFrameId",J="frc-i-agent",Q=class{constructor(e){this.state="init",this.response=".UNINITIALIZED",this.focusEventPending=!1,this.isDestroyed=!1,this.id=e.id;const t=e.createOpts;if(this.e=t.element,this.ready=e.registered,!this.e)throw new Error("No element provided to mount widget under.");this.e.frcWidget=this,this.formFieldName=void 0===t.formFieldName?"frc-captcha-response":t.formFieldName,this.sitekey=t.sitekey,this._reset=e.callbacks.onReset,this._destroy=e.callbacks.onDestroy,this._trigger=e.callbacks.onTrigger,this.startMode=e.createOpts.startMode||"focus",null!==this.formFieldName&&(this.hiddenFormEl=n(this.e,this.formFieldName)),this.setState({response:".UNCONNECTED",state:"init"}),this.ready.then((()=>{this.handleStartMode()}))}handleStartMode(){if("focus"!==this.startMode||this.focusEventPending||this.isDestroyed)"auto"===this.startMode&&this.trigger("auto");else{const n=e(this.e);n&&(this.focusEventPending=!0,t(n,(e=>{this.trigger("focus",{ev:e}),this.focusEventPending=!1})))}}reset(e={trigger:"root"}){if(this.isDestroyed)throw new Error("Can not reset destroyed widget.");this.setState({response:".RESET",state:"reset",resetTrigger:e.trigger}),this._reset(e),this.handleStartMode()}destroy(){this.isDestroyed=!0,this.hiddenFormEl&&this.hiddenFormEl.remove(),this.hiddenFormEl=void 0,this.setState({response:".DESTROYED",state:"destroyed"}),this._destroy()}trigger(e,t={}){if(this.isDestroyed)throw new Error("Can not start destroyed widget.");const n=function(e,t,n,i){const r=_(),o=n.getBoundingClientRect(),s={v:1,tt:e,pnow:r,sm:t,el:{bcr:[o.left,o.top,o.width,o.height],con:document.body.contains(n)},stack:(new Error).stack||"",we:!!window.event,weit:!!window.event&&!!window.event.isTrusted};return i&&(s.ev={ts:i.timeStamp,rt:!!i.relatedTarget,eot:!!i.explicitOriginalTarget,it:i.isTrusted}),s}(e,this.startMode,this.e,t.ev);this._trigger({trigger:n})}start(){this.trigger("programmatic")}setState(e){const t=this.state!==e.state;this.response=e.response,this.state=e.state,this.hiddenFormEl&&!1!==this.e.isConnected&&(this.hiddenFormEl.value=e.response),t&&this.dispatchWidgetEvent({name:"frc:widget.statechange",error:e.error,mode:e.mode}),"expired"===this.state?this.dispatchWidgetEvent({name:"frc:widget.expire"}):"completed"===this.state?this.dispatchWidgetEvent({name:"frc:widget.complete"}):"error"===this.state?this.dispatchWidgetEvent({name:"frc:widget.error",error:e.error}):"reset"===this.state&&this.dispatchWidgetEvent({name:"frc:widget.reset",trigger:e.resetTrigger})}dispatchWidgetEvent(e){const t={response:this.response,state:this.state,id:this.id};E(t,e),o(this.e,t)}addEventListener(e,t,n){this.e.addEventListener(e,t,n)}removeEventListener(e,t,n){this.e.removeEventListener(e,t,n)}getState(){return this.state}getResponse(){return this.response}getElement(){return this.e}},ee="addEventListener",te=Math,ne=class{constructor(e){this.rn=0,this.i=0,this.smel={n:0,ts:0,d:0};const t="mouse",n=this.smel,i=e=>{n.n||(n.fts=e.timeStamp,n.fxy=[e.clientX,e.clientY,e.screenX,e.screenY]),n.n++,e.type===t+"leave"&&(n.d+=e.timeStamp-n.ts),n.ts=e.timeStamp,n.xy=[e.clientX,e.clientY]},o=document;r((()=>{const e=o.body;e[ee](t+"enter",i),e[ee](t+"leave",i)}
vendor: 6,259 bytes, line 2
2)),this.bh={onoff:{kdu:A("keydown","keyup"),cse:A("compositionstart","compositionend"),mdu:A(t+"down",t+"up"),mle:A(t+"leave",t+"enter"),med:A(t+"enter",t+"down",!0),semd:A("scrollend",t+"down",!0,o),se:A("scroll","scrollend",!1,o),pdc:A("pointerdown","pointercancel",!0),mmc:A(t+"move","click",!0),tse:A("touchstart","touchend"),fikd:A("focusin","keydown",!0)},nev:x([t+"out","pointercancel","focus","focusin","blur","visibilitychange","copy","paste","cut","contextmenu","click","auxclick","wheel","resize"]),nk:I(),mov:this.setupMovementMetrics(),dm:this.setupMotionMetrics(),do:this.setupOrientationMetrics()},this.dep=e.disableEvalPatching||!1,this.takeTraceRecords=function(e){const t=[],n=new Map,i=window,r=function(){try{const e=document.createElement("iframe");e.style.display="none",(document.body||document.head).appendChild(e);const t=e?e.contentWindow:0;return e.remove(),t||i}catch(e){return i}}(),o=Function.prototype.toString,s=function(...e){const t="function"==typeof this&&n.get(this),i=this===s?o:t||this;return o.apply(i,e)};Function.prototype.toString=s;const a="prototype",c=i.EventTarget?i.EventTarget[a].dispatchEvent:{},l=[["Document."+a+".documentElement",i.Document[a],"documentElement"],["Element."+a+".shadowRoot",i.Element[a],"shadowRoot"],["Node."+a+".nodeType",i.Node[a],"nodeType"],["Object.is",i.Object,"is"],["Array."+a+".slice",i.Array[a],"slice"],["Document."+a+".querySelectorAll",i.Document[a],"querySelectorAll"],["Document."+a+".createElement",i.Document[a],"createElement"],["EventTarget."+a+".dispatchEvent",c,"dispatchEvent"]];return e.disableEvalPatching||l.push(["eval",i,"eval"]),l.forEach((function([e,o,s]){const a=Object.getOwnPropertyDescriptor(o,s),c=a&&(a.get||a.set);if(!a)return;if(c){if(!a.get)return}else if("object"!=typeof a.value&&"function"!=typeof a.value)return;let l=0,d=0;const h=function(...n){const o=Date.now();if(o-l>=1e3&&(d=0,l=o),d<50){const n={d:o,pnow:_(),n:e,st:(r.Error||i.Error)("FriendlyCaptcha_DummyTrace").stack||""};t.length>2e4&&t.splice(0,1e3),t.push(n),d++}return(c?a.get:a.value).apply(this,n)};try{const e=c?a.get?a.get():void 0:a.value();e&&(h.length=e.length,h.name=e.name)}catch(g){}try{const e=E({},a);c?e.get=h:e.value=h,Object.defineProperty(o,s,e),n.set(h,c?a.get:a.value)}catch(g){}})),function(){return t.splice(0,t.length)}}(e)}setupMovementMetrics(){let e,t=[];const n=R(),i=R(),o=R(),s={t:n.s,v:o.s,d:i.s,ns:0},a=()=>{const r=t[t.length-1];if(t.length>=200||r&&(r[0]&&this.tm.timeStamp===r[1]||!r[0]&&this.mm.timeStamp===r[1])){if(clearInterval(e),e=void 0,1===t.length)return s.ns++,void(t=[]);const a=t[0];n.add(r[1]-a[1]),i.add(M(r[2],a[2],r[3],a[3]));for(let e=1;e<t.length;e++){const n=t[e],i=t[e-1],r=1e3*M(n[2],i[2],n[3],i[3]),s=n[1]-i[1];o.add(r/s)}return void(t=[])}let a=0;if(r?a=r[0]:this.mm&&this.tm?a=this.mm.timeStamp>this.tm.timeStamp?0:1:this.mm||(a=1),a){const e=this.tm.touches[0];e&&t.push([1,this.tm.timeStamp,e.screenX,e.screenY])}else t.push([0,this.mm.timeStamp,this.mm.screenX,this.mm.screenY])};let c=-1;return r((()=>{const t=document.body;t[ee]("mousemove",(t=>{this.mm=t,void 0===e&&(a(),e=setInterval(a,50))})),t[ee]("touchmove",(t=>{this.tm=t;const n=t.touches[0];if(n){const e=n.radiusX+1.234*n.radiusY;e!==c&&(c=e,this.rn++)}void 0===e&&(a(),e=setInterval(a,50))}))})),s}setupMotionMetrics(){const e=R(),t=R(),n={n:0,ts:0,ac:e.s,rr:t.s,i:0,g:!1};return S()?(window[ee]("devicemotion",(i=>{n.ts=i.timeStamp,n.i=i.interval,n.g=!i.acceleration;const r=i.acceleration||i.accelerationIncludingGravity;r&&e.add(C(r.x,r.y,r.z));const o=i.rotationRate;o&&t.add(C(o.alpha,o.beta,o.gamma))})),n):n}setupOrientationMetrics(){const e=R(),t=R(),n={fts:0,ts:0,gd:e.s,bd:t.s};if(!S())return n;let i;return window[ee]("deviceorientation",(r=>{null!=r.gamma&&null!=r.beta&&null!=r.alpha&&(n.ts=r.timeStamp,n.a=r.alpha,n.b=r.beta,n.g=r.gamma,i?(e.add(F(r.gamma,n.g)),t.add(F(n.b,r.beta))):(n.fts=n.ts,i=!0))})),n}gmm(){const e=this.mm;return e&&{xy:[e.clientX,e.clientY,e.screenX,e.screenY,e.offsetX,e.offsetY,e.pageX,e.pageY,e.movementX,e.movementY],ts:e.timeStamp}}gtm(){const e=this.tm,t=e&&e.touches,n=t&&t[0];return e&&n&&{id:n.identifier,xy:[n.clientX,n.clientY,n.screenX,n.screenY,n.pageX,n.pageY],r:[n.radiusX,n.radiusX,n.rotationAngle,n.force],n:t.length,ts:e.timeStamp,rn:this.rn}}get(e){const t=document.body,n=window,i=n.performance;return{v:1,i:++this.i,hl:history.length,fe:!!window.frameElement,dep:this.dep,wid:e,sc:parseInt(m(!1)),sid:f(),conv:0,t:{pnow:_(),pto:i&&i.timeOrigin||0,ts:Date.now()},dims:{d:[n.innerWidth,n.innerHeight,n.outerWidth,n.outerHeight,n.screenX,n.screenY,n.pageXOffset,n.pageYOffset,t.clientWidth,t.clientHeight],dpr:n.devicePixelRatio},mel:this.smel,mm:this.gmm(),tm:this.gtm(),bh:this.bh,stack:(new Error).stack||"",trc:this.takeTraceRecords()}}},ie={eu:"https://eu.frcapi.com",global:"https://global.frcapi.com"},re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",oe=class{constructor(e){if(this.timeout=null,this.data=null,this.e=e.element,!this.e)throw new Error("No element provided for mounting Risk Intelligence handle.");this.e.frcRiskIntelligence=this,this.formFieldName=void 0===e.formFieldName?"frc-risk-intelligence-token":e.formFieldName,null!==this.formFieldName&&(this.hiddenFormEl=n(this.e,this.formFieldName)),this.startMode=e.startMode||"focus",this.requestRiskIntelligence=e.riskIntelligence,this.handleStartMode()}handleStartMode(){if("none"===this.startMode)console.warn('Risk Intelligence <div> found with data-start="none" (no-op), skipping...',this.e);else if("auto"===this.startMode)this.request();else{const n=e(this.e);n?t(n,(()=>{this.request()})):console.warn('Risk Intelligence <div> with startMode of "focus" found without a parent <form> element, skipping...',this.e)}}request(){this.requestRiskIntelligence().then((e=>{null!==this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((()=>{o(this.e,{name:"frc:riskintelligence.expire"})}),e.expiresAt-Date.now()),this.data={token:e.token,expiresAt:e.expiresAt},this.hiddenFormEl&&(this.hiddenFormEl.value=e.token),o(this.e,{name:"frc:riskintelligence.complete",token:e.token,expiresAt:e.expiresAt})})).catch((e=>{o(this.e,{name:"frc:riskintelligence.error",error:{code:e.code,detail:e.detail}})}
2))}getData(){return this.data}getElement(){return this.e}addEventListener(e,t,n){this.e.addEventListener(e,t,n)}removeEventListener(e,t,n){this.e.removeEventListener(e,t,n)}},se="FrcFrameId",ae=0;window.frcaptcha=new class{constructor(e={}){if(this.agents=new Map,this.agentState=new Map,this.widgets=new Map,this._attached=s(),this.attached=this._attached.promise,this.riskIntelligencePromises=new Map,this.clearRiskIntelligencePromises=new Map,this.riskIntelligenceHandles=[],this.apiEndpoint=e.apiEndpoint,(j=j||new V).listen((e=>this.onReceiveMessage(e))),this.bus=j,++ae>1&&console.warn("Multiple Friendly Captcha SDKs created, this is not recommended. Please use a single SDK instance."),this.signals=function(e){return N||(N=new ne(e))}({disableEvalPatching:e.disableEvalPatching||D()}),e.startAgent){const e=P(this.apiEndpoint||T());this.ensureAgentIFrame(e)}this.setupPeriodicRefresh()}onReceiveMessage(e){if("root_set_response"===e.type){const t=this.widgets.get(e.widget_id);if(!t)return void(1===ae&&console.warn(`Received set response message for widget ${e.widget_id} that doesn't exist`));t.setState(e)}else if(a(e.type,"root_store"))this.handleStoreMessage(e);else if("root_signals_get"===e.type)this.handleSignalsGetMessage(e);else if("widget_language_change"===e.type)this.handleWidgetLanguageChange(e);else if("widget_reset"===e.type){const t=this.widgets.get(e.from_id);if(!t)return void(1===ae&&console.warn(`Received reset message for widget ${e.from_id} that doesn't exist`));t.reset({trigger:"widget"})}else a(e.type,"root_risk_intelligence")&&this.handleRiskIntelligenceMessage(e)}handleRiskIntelligenceMessage(e){if("root_risk_intelligence_generate_reply"===e.type){const t=this.riskIntelligencePromises.get(e.uid);t?(e.data?t.resolve(e.data):e.error?t.reject(e.error):console.warn("Received risk intelligence generate reply message with no data"),this.riskIntelligencePromises.delete(e.uid)):console.warn("Received risk intelligence generate reply message with no promise to resolve")}else if("root_risk_intelligence_clear_reply"===e.type){const t=this.clearRiskIntelligencePromises.get(e.uid);t?e.error?t.reject(e.error):t.resolve():console.warn("Received risk intelligence clear reply message with no promise to resolve"),this.clearRiskIntelligencePromises.delete(e.uid)}}handleWidgetLanguageChange(e){const t=this.widgets.get(e.from_id);if(!t)return void(1===ae&&console.warn(`Received language change message for widget ${e.from_id} that doesn't exist`));const n=t.getElement(),i=n.querySelector("iframe");
2i&&(i.title=v(e.language));const r=n.querySelector(".frc-banner");if(r){const t=r.style;y(e.language)?(t.left="6px",t.right="auto"):(t.left="auto",t.right="6px")}}handleSignalsGetMessage(e){const t=this.signals.get(e.widget_id);this.bus.send({type:"root_signals_get_reply",from_id:"",to_id:e.from_id,_frc:1,rid:e.rid,value:t})}handleStoreMessage(e){const t=e.from_id,n=this.agentState.get(t);n?"root_store_get"===e.type?n.store.get(e.key,{p:e.p}).then((i=>{this.bus.send({type:"root_store_get_reply",from_id:"",to_id:t,_frc:1,rid:e.rid,value:i,sa:n.store.hasSA()})})):"root_store_set"===e.type&&n.store.set(e.key,e.value,{p:e.p}).then((()=>{this.bus.send({type:"root_store_set_reply",from_id:"",to_id:t,_frc:1,rid:e.rid,sa:n.store.hasSA()})})):console.error(`Store not found ${t}`)}ensureAgentIFrame(e){const t=e+"/api/v2/captcha/agent";let n=document.getElementsByClassName(J);for(let a=0;a<n.length;a++){const t=n[a];if(l(t.src)===e&&t.dataset[se])return t.dataset[se]}const i="a_"+d(12),r=function(e,t,n){const i={origin:document.location.origin,sess_id:f(),sess_c:m(!0),comm_id:t,sdk_v:"0.2.0",v:"1",agent_id:t,ts:Date.now().toString()},r=document.createElement("iframe");r.className=J,r.dataset[Z]=t,r.src=n+"?"+c(i),r.frcSDK=e;const o=r.style;return o.width=o.height=o.border=o.visibility="0",o.display="none",r}(this,i,t);this.agents.set(e,r),this.agentState.set(i,{store:new $(e),origin:e}),document.body.appendChild(r);let o=1;const s=()=>{this.bus.registerTargetIFrame("agent",i,r,this.getRetryTimeout(o)).then((t=>{if("timeout"===t){if(o>4)return console.error("[Friendly Captcha] Failed to load agent iframe after 4 retries."),r.remove(),void this.agents.delete(e);console.warn("[Friendly Captcha] Retrying agent iframe load."),r.src+="&retry="+o++,s()}}))};return s(),i}setupPeriodicRefresh(){let e=1;setInterval((()=>{const t="&expire="+e++;this.agents.forEach((e=>{e.src+=t})),this.widgets.forEach((e=>{e.getElement().querySelector("iframe").src+=t}))}),1296e5)}getRetryTimeout(e){return 1e3*Math.pow(e,1.8)+2e3}attach(e){const[t,n]=[document.querySelectorAll(".frc-captcha"),document.querySelectorAll(".frc-risk-intelligence")];for(let o=0;o<n.length;o++){const e=n[o];if(e&&!e.frcRiskIntelligence){const t=e.dataset,n=t.sitekey;if(!n){console.warn("Risk Intelligence <div> found with no sitekey, skipping...",e);continue}this.riskIntelligenceHandles.push(new oe({element:e,formFieldName:t.formFieldName,startMode:t.start,riskIntelligence:()=>this.riskIntelligence({sitekey:n,apiEndpoint:t.apiEndpoint})}))}}void 0===e&&(e=t),Array.isArray(e)||e instanceof NodeList||(e=[e]);const i=[];for(let o=0;o<e.length;o++){const t=e[o];if(t&&!t.frcWidget){const e=t.dataset,n={element:t,sitekey:e.sitekey,formFieldName:e.formFieldName,apiEndpoint:e.apiEndpoint,language:e.lang,theme:e.theme,startMode:e.start};i.push(this.createWidget(n))}}const r=this.getAllWidgets();return this._attached.resolve(r),this.attached=Promise.resolve(r),i}createWidget(e){function t(t){const i=(r=JSON.stringify({sdk_v:"0.2.0",sitekey:e.sitekey||"",retry:A+"",endpoint:n,ua:navigator.userAgent,tz:z()||""}),window.TextEncoder?function(e){const t=e.length;let n="";for(let i=0;i<t;i+=3){const t=e[i+0],r=e[i+1],o=e[i+2];let s="";s+=re.charAt(t>>>2),s+=re.charAt((3&t)<<4|r>>>4),s+=re.charAt((15&r)<<2|o>>>6),s+=re.charAt(63&o),n+=s}return t%3==2?n=n.substring(0,n.length-1)+"=":t%3==1&&(n=n.substring(0,n.length-2)+"=="),n}((new TextEncoder).encode(r)):"");var r;let o=".ERROR.UNREACHABLE";i&&(o+="~"+i),u.setState({state:"error",response:o,error:{code:"network_error",detail:t}})}const n=P(e.apiEndpoint||this.apiEndpoint||T());this.bus.addOrigin(n);const r=this.ensureAgentIFrame(n),o="w_"+d(12),a=e=>{const t={from_id:o,to_id:r,_frc:1};this.bus.send(E(t,e))},h={onDestroy:()=>{a({type:"root_destroy_widget"}),this.bus.removeTarget(o),this.widgets.delete(o),e.element.innerHTML="",e.element.removeAttribute("style")},onReset:()=>{a({type:"root_reset_widget"})},onTrigger:e=>{a({type:"root_trigger_widget",trigger:e.trigger})}},g=s(),u=new Q({id:o,createOpts:e,callbacks:h,registered:g.promise});this.widgets.set(o,u);const p=function(e,t,n,i){const r=document.createElement("iframe"),o=k(i),s={origin:document.location.origin,sess_id:f(),sess_c:m(!0),comm_id:t,sdk_v:"0.2.0",v:"1",agent_id:e,lang:o,sitekey:i.sitekey||"",ts:Date.now().toString()};i.theme&&(s.theme=i.theme),B&&(r.allow="clipboard-write"),r.frameBorder="0",r.src=n+"?"+c(s),r.className="frc-i-widget",r.title=v(o),r.dataset[Z]=t;const a=r.style;return a.border=a.visibility="0",a.position="absolute",a.height=a.width="100%",a.userSelect="none",a["-webkit-tap-highlight-color"]="transparent",a.display="none",i.element.appendChild(r),r}(r,o,n+"/api/v2/captcha/widget",e),_=function(e){const t=document.createElement("div");t.classList.add("frc-widget-placeholder");const n=t.style,i="dark"===e.theme||"auto"===e.theme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return n.color=i?"#fff":"#222",n.backgroundColor=i?"#171717":"#fafafa",n.borderRadius="4px",n.border="1px solid",n.borderColor="#ddd",n.padding="8px",n.height=n.width="100%",n.fontSize="14px",n.boxSizing="border-box",w(n),e.element.appendChild(t),t}(e);!function(e){const t=i;t(e,"position","relative"),t(e,"height","70px"),t(e,"padding","0"),t(e,"width","316px"),t(e,"maxWidth","100%"),t(e,"maxHeight","100%"),t(e,"overflow","hidden"),t(e,"borderRadius","4px")}(e.element),function(e){const t=document.createElement("div");t.classList.add("frc-banner");const n=k(e),i="dark"===e.theme||"auto"===e.theme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;let r="#565656",o="#a2a2a2";i&&(r="#a2a2a2",o="#565656");const s=t.style;s.position="absolute",s.bottom="6px",y(n)?s.left="6px":s.right="6px",s.lineHeight="1";const a=document.createElement("a");a.href="https://friendlycaptcha.com",a.rel="noopener";const c=a.style;w(c),c.color=r,c.fontSize="10px",c.userSelect="none",c.textDecorationLine="underline",c.textDecorationThickness="1px",c.textDecorationColor=o,c.letterSpacing="-0.0125rem",a.target="_blank",a.textContent="Friendly Captcha",a.onmouseenter=()=>c.textDecorationColor=r,a.onmouseleave=()=>c.textDecorationColor=o,t.appendChild(a),e.element.appendChild(t)}(e);let R=k(e);y(R)&&(e.element.dir="rtl");const S=_.style;_.textContent=b(R,"connecting");let A=1;const x=()=>{this.bus.registerTargetIFrame("widget",o,p,this.getRetryTimeout(A)).then((n=>{if("timeout"===n){if(A>4)return console.error("[Friendly Captcha] Failed to load widget iframe after 4 retries."),t("Widget load timeout, stopped retrying"),S.borderColor="#f00",S.fontSize="12px",void function(e,t,n){const i=[((e,t)=>{const n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener",n.textContent=t;
2const i=n.style;return w(i),i.textDecoration="underline",i.color="#565656",n.onmouseenter=()=>i.textDecoration="none",n.onmouseleave=()=>i.textDecoration="underline",n})(`${t}/connectionTest`,b(n,"failed"))];e.textContent="",i.forEach((t=>e.appendChild(t)))}(_,l(p.src),R);S.backgroundColor="#fee",S.color="#222",_.textContent=b(R,"retrying")+` (${A})`,console.warn(`[Friendly Captcha] Retrying widget ${o} iframe load.`),t("Widget load timeout, will retry"),p.src+="&retry="+A++,x()}else"registered"===n&&(e.element.removeChild(_),p.style.display="")}))};return x(),g.resolve(),u}riskIntelligence(e){const t=P(e.apiEndpoint||this.apiEndpoint||T());this.bus.addOrigin(t);const n=this.ensureAgentIFrame(t),i=d(8);this.bus.send({type:"root_risk_intelligence_generate",to_id:n,from_id:"",_frc:1,sitekey:e.sitekey,bypassCache:e.bypassCache||!1,uid:i});const r=s();return this.riskIntelligencePromises.set(i,r),r.promise}clearRiskIntelligence(e){const t=P((null==e?void 0:e.apiEndpoint)||this.apiEndpoint||T());this.bus.addOrigin(t);const n=this.ensureAgentIFrame(t),i=d(8);this.bus.send({type:"root_risk_intelligence_clear",to_id:n,from_id:"",_frc:1,sitekey:null==e?void 0:e.sitekey,uid:i});const r=s();return this.clearRiskIntelligencePromises.set(i,r),r.promise}getAllWidgets(){const e=[];return this.widgets.forEach((t=>{e.push(t)})),e}getWidgetById(e){return this.widgets.get(e)}getAllRiskIntelligenceHandles(){const e=[];return this.riskIntelligenceHandles.forEach((t=>{e.push(t)})),e}clear(){this.widgets.forEach((e=>{e.destroy()})),this.agents.forEach((e=>{e.remove()})),this.agents.clear()}},r((function(){window.frcaptcha.attach()}))})(); 3/*! 4 * Copyright (c) Friendly Captcha GmbH 2023. 5 * This Source Code Form is subject to the terms of the Mozilla Public 6 * License, v. 2.0. If a copy of the MPL was not distributed with this 7 * file, You can obtain one at https://mozilla.org/MPL/2.0/. 8 */ 9/*! 10 * Copyright (c) Friendly Captcha GmbH 2026. 11 * This Source Code Form is subject to the terms of the Mozilla Public 12 * License, v. 2.0. If a copy of the MPL was not distributed with this 13 * file, You can obtain one at https://mozilla.org/MPL/2.0/. 14 */ 15function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _slicedToArray(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(r=function(e){if("object"!==_typeof(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===_typeof(r)?r:String(r)),i)}var r}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}!function(){"use strict";function e(){for(;s.length;)s[0](),s.shift()}function t(e){this.a=c,this.b=void 0,this.f=[];var t=this;try{e((function(e){i(t,e)}),(function(e){r(t,e)}))}catch(n){r(t,n)}}function n(e){return new t((function(t){t(e)}))}function i(e,t){if(e.a==c){if(t==e)throw new TypeError;var n=!1;try{var a=t&&t.then;if(null!=t&&"object"==typeof t&&"function"==typeof a)return void a.call(t,(function(t){n||i(e,t),n=!0}),(function(t){n||r(e,t),n=!0}))}catch(s){return void(n||r(e,s))}e.a=0,e.b=t,o(e)}}function r(e,t){if(e.a==c){if(t==e)throw new TypeError;e.a=1,e.b=t,o(e)}}function o(e){!function(e){s.push(e),1==s.length&&a()}((function(){if(e.a!=c)for(;e.f.length;){var t=(r=e.f.shift())[0],n=r[1],i=r[2],r=r[3];try{0==e.a?i("function"==typeof t?t.call(void 0,e.b):e.b):1==e.a&&("function"==typeof n?i(n.call(void 0,e.b)):r(e.b))}catch(o){r(o)}}}))}var a,s=[];a=function(){setTimeout(e)};var c=2;t.prototype.g=function(e){return this.c(void 0,e)},t.prototype.c=function(e,n){var i=this;return new t((function(t,r){i.f.push([e,n,t,r]),o(i)}))},window.Promise||(window.Promise=t,window.Promise.resolve=n,window.Promise.reject=function(e){return new t((function(t,n){n(e)}))},window.Promise.race=function(e){return new t((function(t,i){for(var r=0;r<e.length;r+=1)n(e[r]).c(t,i)}))},window.Promise.all=function(e){return new t((function(t,i){function r(n){return function(i){a[n]=i,(o+=1)==e.length&&t(a)}}var o=0,a=[];0==e.length&&t(a);for(var s=0;s<e.length;s+=1)n(e[s]).c(r(s),i)}))},window.Promise.prototype.then=t.prototype.c,window.Promise.prototype.catch=t.prototype.g)}(),"undefined"!=typeof Map&&Map.prototype.keys&&"undefined"!=typeof Set&&Set.prototype.keys||function(){function e(e,t){if(t==t)return e.indexOf(t);for(n=0,i=e.length;e[n]==e[n]&&++n!==i;);return n}var t,n,i,r,o,a,s={delete:function(n){return!!~(t=e(this.k,n))&&(this.k.splice(t,1),this.v.splice(t,1),--this.size,!0)},get:function(t){return this.v[e(this.k,t)]},set:function(n,i){return~(t=e(this.k,n))||(this.k[t=this.size++]=n),this.v[t]=i,this},has:function(t){return e(this.k,t)>-1},clear:function(){this.k.length=this.v.length=this.size=0}
vendor: 4,991 bytes, line 15
15,forEach:function(e,t){t&&(e=e.bind(t));for(var n=-1,i=this.size;++n!==i;)e(this.v[n],this.k[n],this)},entries:function(){var e=0,t=this;return{next:function(){return e!==t.size?{value:[t.k[e++],t.v[e]],done:!1}:{done:!0}}}},keys:function(){var e=0,t=this;return{next:function(){return e!==t.size?{value:t.k[e++],done:!1}:{done:!0}}}},values:function(){var e=0,t=this;return{next:function(){return e!==t.size?{value:t.v[e++],done:!1}:{done:!0}}}},toString:function(){return"[object Map]"}};WeakMap=Map=function(t){if(r=this.k=[],o=this.v=[],i=0,null!=t){if(a=Object(t),(n=+a.length)!=n)throw new TypeError("("+(t.toString||a.toString)()+") is not iterable");for(;n--;){if(!(a[n]instanceof Object))throw new TypeError("Iterator value "+a[n]+" is not an entry object");~e(r,a[n][0])||(r[i]=a[n][0],o[i++]=a[n][1])}r.reverse(),o.reverse()}this.size=i},Map.prototype=s,WeakSet=Set=function(t){if(r=this.k=this.v=[],i=0,null!=t){if(a=Object(t),(n=+a.length)!=n)throw new TypeError("("+(t.toString||a.toString)()+") is not iterable");for(;n--;)~e(r,a[n])||(r[i++]=a[n]);r.reverse()}this.size=i},Set.prototype={delete:function(n){return!!~(t=e(this.k,n))&&(this.k.splice(t,1),--this.size,!0)},add:function(n){return~(t=e(this.k,n))||(t=this.size++),this.k[t]=n,this},has:s.has,clear:s.clear,forEach:s.forEach,entries:s.entries,keys:s.keys,values:s.keys,toString:function(){return"[object Set]"}}}(),function(){function e(e){for(;"FORM"!==e.tagName;)if(!(e=e.parentElement))return null;return e}function t(e,t){e.addEventListener("focusin",t,{once:!0,passive:!0})}function n(e,t){var n=document.createElement("input");return n.type="hidden",n.style.display="none",n.name=t,e.appendChild(n),n}function i(e,t,n){""===e.style[t]&&(e.style[t]=n)}function r(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function o(e,t){var n;"function"==typeof window.CustomEvent?n=new CustomEvent(t.name,{bubbles:!0,detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(t.name,!0,!1,t),e.dispatchEvent(n)}function a(e){var t,n,i=new Promise((function(e,i){t=e,n=i}));return e&&e(t,n),{promise:i,resolve:t,reject:n}}function s(e,t){return 0===e.lastIndexOf(t,0)}function c(e){for(var t=[],n=Object.keys(e),i=encodeURIComponent,r=0;r<n.length;r++)t.push("".concat(i(n[r]),"=").concat(i(e[n[r]])));return t.join("&")}function l(e){var t=document.location;if(s(e,"/")||s(e,"."))return t.origin?t.origin:t.protocol+"//"+t.host;var n=e.match(D);if(!n)throw new Error("Invalid URL: "+e);return n[1]}function u(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<e;i++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}function d(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function f(e,t){var n=indexedDB.open(e);n.onupgradeneeded=function(){return n.result.createObjectStore(t)};var i=d(n);return function(e,n){return i.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function h(){return j||(j=f("keyval-store","keyval")),j}function g(e){if(!X){var t=0;try{t=parseInt(sessionStorage.getItem(W)||"",10)}catch(n){}isNaN(t)&&(t=0),e&&t++,Y=t.toString();try{sessionStorage.setItem(W,Y)}catch(n){}}return Y}function m(){var e;try{e=sessionStorage.getItem(V)}catch(t){return q}return e||(e=u(12),sessionStorage.setItem(V,e)),e}function v(e){return e.toLowerCase().split("-")[0].split("_")[0]}function p(e){return e=v(e),-1!==B.indexOf(e)}function y(e){return e=v(e),(U[e]||U.en).title+" - Widget"}function k(e,t){return e=v(e),(U[e]||U.en)[t]}function b(e){e.textDecoration=e.fontStyle="none",e.fontWeight="500",e.fontFamily='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',e.lineHeight="1",e.letterSpacing="-0.0125rem"}function w(e){var t=e.language;return t&&"html"!==t||(t=function(e){for(;!e.lang||"string"!=typeof e.lang;)if(!(e=e.parentElement))return null;return e.lang}(e.element)||""),t}function _(){var e=window.performance;return e?e.now():0}function E(e){for(var t=0;t<(arguments.length<=1?0:arguments.length-1);t++){var n=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}function S(){var e=[0,0,0,0,0,0,0];return{s:e,add:function(t){var n=++e[0],i=t-e[1],r=i/n,o=r*r,a=i*r*(n-1);e[1]+=r,e[4]+=a*o*(n*n-3*n+3)+6*o*e[2]-4*r*e[3],e[3]+=a*r*(n-2)-3*r*e[2],e[2]+=a,1==n?e[5]=e[6]=t:(t<e[5]&&(e[5]=t),t>e[6]&&(e[6]=t))}}}function R(){return/Android/i.test(navigator.userAgent)}function A(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3?arguments[3]:void 0,a=S(),s=!1;return r((function(){(o=o||document.body)[Q](e,(function(e){s&&!i||(n=e.timeStamp,s=!0)})),o[Q](t,(function(e){s&&(a.add(e.timeStamp-n),s=!1)}))})),a.s}function C(e){for(var t=[],n=function(n){t.push(0),document[Q](e[n],(function(){return t[n]++}
15))},i=0;i<e.length;i++)n(i);return t}function x(e,t,n,i){return $.sqrt($.pow(e-t,2)+$.pow(n-i,2))}function M(e,t,n){return $.sqrt($.pow(e,2)+$.pow(t,2)+$.pow(n,2))}function I(e,t){var n=t-e;return n+(n>180?-360:n<-180?360:0)}function P(e){var t=e;return t?te[t]&&(t=te[t]):t=te.global,l(t)}function T(){var e=document.querySelector('meta[name="frc-api-endpoint"]');if(e)return e.content;var t=document.currentScript;if(t){var n=t.dataset.frcApiEndpoint;if(n)return n}var i=document.querySelector(".frc-captcha[data-api-endpoint]");if(i){var r=i.dataset.apiEndpoint;if(r)return r}}function F(){var e=window.Intl;if(e&&e.DateTimeFormat){var t=new e.DateTimeFormat;if(t&&t.resolvedOptions)return t.resolvedOptions().timeZone}}var j,z,O,D=/^((?:\w+:)?\/\/([^\/]+))/,N=function(){function e(t){_classCallCheck(this,e),this.ready=!1,this.buffer=[],this.id=t.id,this.type=t.type,this.element=t.element,this.onReady=t.onReady,this.origin=l(t.element.src)}return _createClass(e,[{key:"send",value:function(e){this.ready?this.element.contentWindow.postMessage(e,this.origin):this.buffer.push(e)}},{key:"setReady",value:function(e){this.onReady(),this.ready=e,this.ready&&this.flush()}},{key:"flush",value:function(){for(var e=0;e<this.buffer.length;e++)this.element.contentWindow.postMessage(this.buffer[e],this.origin);this.buffer=[]}}]),e}(),L=function(){function e(){var t=this;_classCallCheck(this,e),this.origins=new Set,this.targets={},this.answered=new Set,this.onReceiveRootMessage=function(){},window.addEventListener("message",(function(e){t.onReceive(e)}))}return _createClass(e,[{key:"listen",value:function(e){var t=this.onReceiveRootMessage;this.onReceiveRootMessage=function(n){t(n),e(n)}}},{key:"addOrigin",value:function(e){this.origins.add(e)}},{key:"send",value:function(e){if(e.from_id){var t=this.targets[e.from_id];if(!t)return void console.error("[bus] Unexpected message from unknown sender ".concat(e.from_id),e);"widget_announce"!==e.type&&"agent_announce"!==e.type||t.setReady(!0)}var n=e.rid;if(n){if(this.answered.has(n+e.to_id))return;this.answered.add(n+e.to_id)}if(""!==e.to_id){var i=this.targets[e.to_id];i?i.send(e):console.error("[bus] Unexpected message to unknown target ".concat(e.to_id),e)}else this.onReceiveRootMessage(e)}},{key:"onReceive",value:function(e){if(t=e.origin,n=this.origins,"*"===t||n.has(t)){var t,n,i=e.data;i&&i._frc&&this.send(i)}}},{key:"registerTarget",value:function(e){this.targets[e.id]=e}},{key:"registerTargetIFrame",value:function(e,t,n,i){var r=a(),o=new Promise((function(e){return setTimeout((function(){return e("timeout")}),i)})),s=new N({id:t,element:n,type:e,onReady:function(){return r.resolve("registered")}});return this.registerTarget(s),Promise.race([r.promise,o])}},{key:"removeTarget",value:function(e){delete this.targets[e]}}]),e}(),W="frc_sc",V="frc_sid",X=!1,Y="0",q="__"+u(10),H=function(){function e(t){_classCallCheck(this,e),this.mem=new Map,this.storePrefix=t}return _createClass(e,[{key:"setup",value:function(){var e=this;return new Promise((function(t,n){if(void 0!==e._hasSA)return t(e._hasSA);try{indexedDB.open("")}catch(i){return t(e._hasSA=!1)}if(!document.hasStorageAccess)return t(e._hasSA=!0);document.hasStorageAccess().then((function(n){return e._hasSA=n,e._hasSA?e.idb=f("friendlycaptcha","frc"):console.debug("FRC has no storage access"),t(e._hasSA)})).catch(n)}))}},{key:"get",value:function(e,t){var n=this;return this.setup().then((function(i){var r=n.storePrefix+"__"+e;if(t.p)return i?function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h())("readonly",(function(t){return d(t.get(e))}))}(r,n.idb):n.mem.get(e);try{var o=sessionStorage.getItem(r);return null===o?void 0:o}catch(a){}return n.mem.get(e)}))}},{key:"set",value:function(e,t,n){var i=this;return this.setup().then((function(r){var o=i.storePrefix+"__"+e;if(n.p){if(r)return function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:h())("readwrite",(function(n){return n.put(t,e),d(n.transaction)}))}(o,t,i.idb);void 0===t?i.mem.delete(e):i.mem.set(e,t)}else try{void 0===t?(i.mem.delete(e),sessionStorage.removeItem(o)):(i.mem.set(e,t),sessionStorage.setItem(o,t))}catch(a){}}))}},{key:"hasSA",value:function(){return this._hasSA}}]),e}(),K="undefined"!=typeof navigator&&void 0!==navigator.userAgentData,U={ar:{title:"Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª",connecting:"Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª ÙÙØ¯ Ø§ÙØ§ØªØµØ§Ùâ¦",retrying:"Ø§Ø³ØªØºØ±Ù Ø§ÙØ§ØªØµØ§Ù Ø¨Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª ÙÙØªÙا Ø·ÙÙÙØ§Ù.\n\nإعادة اÙÙ
ØØ§ÙÙØ©â¦",failed:"ÙØ´Ù Ø§ÙØ§ØªØµØ§Ù Ø¨Ø§ÙØªØÙÙ Ù
Ù Ù
ÙØ§ÙØØ© Ø§ÙØ±ÙØ¨ÙØªØ§Øª."},bg:{title:"ÐÑовеÑка ÑÑеÑÑ ÑобоÑи",connecting:"ÐаÑежда Ñе задаÑаÑаâ¦",retrying:"ÐеÑÑпеÑно ÑвÑÑзване.\n\nÐÐ¿Ð¸Ñ Ð·Ð° повÑоÑно ÑвÑÑзванеâ¦",failed:"ÐеÑÑпеÑно ÑвÑÑзване."},ca:{title:"Verificació anti-robot",connecting:"Carregant el desafiamentâ¦",retrying:"Errada de conexió.\n\nReintentantâ¦",failed:"Errada de conexió."},cs:{title:"OvÄÅenà proti robotům",connecting:"PÅipojovánà kontroly proti robotůmâ¦",retrying:"PÅipojenà kontroly proti robotům trvalo pÅÃliÅ¡ dlouho.\n\nOpakuji pokusâ¦",failed:"Kontrola proti robotům se nepodaÅilo pÅipojit."},da:{title:"Anti-robot-verifikation",connecting:"Anti-robot-kontrol forbinderâ¦",retrying:"Anti-robot-kontrol tog for lang tid at oprette forbindelse.\n\nPrøver igenâ¦",failed:"Anti-robot-kontrol kunne ikke oprette forbindelse."},nl:{title:"Anti-robotcheck",connecting:"Verbinden met Anti-robotcheckâ¦",retrying:"Verbinden met Anti-robotcheck mislukt.\n\nOpnieuw aan het proberenâ¦",failed:"Verbinden met Anti-robotcheck mislukt."},en:{title:"Anti-Robot verification",connecting:"Anti-Robot check connectingâ¦",retrying:"Anti-Robot check took too long to connect.\n\nRetryingâ¦",failed:"Anti-Robot check failed to connect."},fi:{title:"Robottien torjunnan vahvistus",connecting:"Robottien torjunnan tarkistus käynnissäâ¦",retrying:"Robottien torjunnan tarkistus kesti liian kauan.\n\nYritetään uudelleenâ¦",failed:"Robottien torjunnan tarkistus epäonnistui."},fr:{title:"Vérification anti-robot",connecting:"Connexion à la vérification anti-robotâ¦",retrying:"La connexion à la vérification anti-robot a pris trop de temps.\n\nNouvelle tentativeâ¦",failed:"Ãchec de la connexion à la vérification anti-robot."},de:{title:"Anti-Roboter-Verifizierung",connecting:"Verbindung zur Anti-Roboter-Verifizierung wird hergestelltâ¦",retrying:"Verbindung zur Anti-Roboter-Verifizierung hat zu lange gedauert.\n\nErneuter Versuchâ¦",failed:"Verbindung zur Anti-Roboter-Verifizierung ist fehlgeschlagen."},hi:{title:"à¤à¤à¤à¥-रà¥à¤¬à¥à¤ सतà¥à¤¯à¤¾à¤ªà¤¨",connecting:"à¤à¥à¤¨à¥à¤¤à¥ लà¥à¤¡ हॠरहॠहà¥â¦",retrying:"à¤à¤¨à¥à¤à¥à¤¶à¤¨ विफल.\n\nपà¥à¤¨à¤ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤° रहॠहà¥à¤â¦",failed:"à¤à¤¨à¥à¤à¥à¤¶à¤¨ विफल."},hu:{title:"RobotellenÅrzés",connecting:"RobotellenÅrzés csatlakozásâ¦",retrying:"A robotellenÅrzés túl sokáig tartott a csatlakozáshoz.\n\nÃjrapróbálomâ¦",failed:"A robotellenÅrzés nem tudott csatlakozni."},id:{title:"Verifikasi Anti-Robot",connecting:"Pemeriksaan Anti-Robot sedang terhubungâ¦",retrying:"Pemeriksaan Anti-Robot memakan waktu terlalu lama untuk terhubung.\n\nMencoba lagiâ¦",failed:"Pemeriksaan Anti-Robot gagal terhubung."},ja:{title:"ãããã鲿¢èªè¨¼",connecting:"ãã£ã¬ã³ã¸ãèªã¿è¾¼ãã§ãã¾ãâ¦",retrying:"æ¥ç¶å¤±æ.\n\nå試è¡ä¸â¦",failed:"æ¥ç¶å¤±æ."},it:{title:"Verifica anti-robot",connecting:"Connessione verifica anti-robot in corsoâ¦",retrying:"La connessione alla verifica anti-robot ha richiesto troppo tempo.\n\nRiprovandoâ¦",failed:"Impossibile connettersi alla verifica anti-robot."},nb:{title:"Anti-robot-verifisering",connecting:"Laster inn utfordringâ¦",retrying:"Klarte ikke Ã¥ koble til.\n\nPrøver igjenâ¦",failed:"Klarte ikke Ã¥ koble til."},pl:{title:"Weryfikacja antyrobotowa",connecting:"ÅÄ
czenie siÄ z kontrolÄ
antyrobotowÄ
â¦",retrying:"ÅÄ
czenie siÄ z kontrolÄ
antyrobotowÄ
trwaÅo zbyt dÅugo. \n\nPonowna próbaâ¦",failed:"Nie udaÅo siÄ poÅÄ
czyÄ z kontrolÄ
antyrobotowÄ
."},ro:{title:"Verificare anti-robot",connecting:"Se incarca testulâ¦",retrying:"Conexiunea a esuat.\n\nReincercareâ¦",failed:"Conexiunea a esuat."},pt:{title:"Verificação anti-robô",connecting:"Verificação anti-robô a ligarâ¦",retrying:"A verificação anti-robô demorou demasiado tempo a ligar-se.\n\nA tentar novamenteâ¦",failed:"A verificação anti-robô não conseguiu ligar-se."},ru:{title:"ÐÑовеÑка анÑиÑобоÑа",connecting:"ÐодклÑÑение к пÑовеÑке анÑиÑобоÑаâ¦",retrying:"ÐодклÑÑение к пÑовеÑке анÑиÑобоÑа занÑло ÑлиÑком много вÑемени.\n\nÐовÑоÑÑем попÑÑкÑâ¦",failed:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÐºÐ»ÑÑиÑÑÑÑ Ðº пÑовеÑке анÑиÑобоÑа."},sk:{title:"Overovanie proti robotom",connecting:"Pripojenie kontroly proti robotomâ¦",retrying:"Pripojenie kontroly proti robotom trvalo prÃliÅ¡ dlho.\n\nOpakujem pokusâ¦",failed:"Pripojenie kontroly proti robotom sa nepod
15arilo."},sl:{title:"Preverjanje proti robotom",connecting:"Nalaganje izzivaâ¦",retrying:"Povezava ni uspela.\n\nPonovni poskusâ¦",failed:"Povezava ni uspela."},es:{title:"Verificación antirrobot",connecting:"Conectando verificación antirrobotâ¦",retrying:"La verificación antirrobot tardó demasiado en conectarse.\n\nReintentandoâ¦",failed:"Error al conectar la verificación antirrobot."},sv:{title:"Anti-robotverifiering",connecting:"Anti-robotverifiering ansluterâ¦",retrying:"Anti-robotverifiering tog för lÃ¥ng tid att ansluta.\n\nFörsöker igenâ¦",failed:"Anti-robotverifiering kunde inte ansluta."},th:{title:"à¸à¸²à¸£à¸à¸£à¸§à¸à¸ªà¸à¸à¸à¹à¸à¸à¸à¸±à¸à¸à¸à¸",connecting:"à¸à¸³à¸¥à¸±à¸à¹à¸«à¸¥à¸à¸à¸²à¸£à¸à¹à¸²à¸à¸²à¸¢â¦",retrying:"à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸à¹à¸¡à¹à¸ªà¸³à¹à¸£à¹à¸.\n\nà¸à¸³à¸¥à¸±à¸à¸¥à¸à¸à¹à¸«à¸¡à¹â¦",failed:"à¹à¸à¸·à¹à¸à¸¡à¸à¹à¸à¹à¸¡à¹à¸ªà¸³à¹à¸£à¹à¸."},tr:{title:"Robot önleme doÄrulaması",connecting:"Robot önleme kontrolü baÄlanıyorâ¦",retrying:"Robot önleme kontrolü baÄlanmak için çok uzun sürdü.\n\nYeniden deniyorâ¦",failed:"Robot önleme kontrolü baÄlanamadı."},vi:{title:"Xác minh chá»ng robot",connecting:"Kiá»m tra robot Äang kết ná»iâ¦",retrying:"Kiá»m tra chá»ng robot mất quá nhiá»u thá»i gian Äá» kết ná»i.\n\nÄang thá» lạiâ¦",failed:"Kiá»m tra chá»ng robot không thá» kết ná»i."},zh:{title:"åæºå¨äººéªè¯",connecting:"åæºå¨äººéªè¯æ£å¨è¿æ¥â¦",retrying:"åæºå¨äººéªè¯è¿æ¥èæ¶è¿é¿ã\n\næ£å¨éè¯â¦",failed:"åæºå¨äººéªè¯è¿æ¥å¤±è´¥ã"}},B=["ar","he","fa","ur","ps","sd","yi"],G="FrcFrameId",Z="frc-i-agent",J=function(){function i(e){var t=this;_classCallCheck(this,i),this.state="init",this.response=".UNINITIALIZED",this.focusEventPending=!1,this.isDestroyed=!1,this.id=e.id;var r=e.createOpts;if(this.e=r.element,this.ready=e.registered,!this.e)throw new Error("No element provided to mount widget under.");this.e.frcWidget=this,this.formFieldName=void 0===r.formFieldName?"frc-captcha-response":r.formFieldName,this.sitekey=r.sitekey,this._reset=e.callbacks.onReset,this._destroy=e.callbacks.onDestroy,this._trigger=e.callbacks.onTrigger,this.startMode=e.createOpts.startMode||"focus",null!==this.formFieldName&&(this.hiddenFormEl=n(this.e,this.formFieldName)),this.setState({response:".UNCONNECTED",state:"init"}),this.ready.then((function(){t.handleStartMode()}))}return _createClass(i,[{key:"handleStartMode",value:function(){var n=this;if("focus"!==this.startMode||this.focusEventPending||this.isDestroyed)"auto"===this.startMode&&this.trigger("auto");else{var i=e(this.e);i&&(this.focusEventPending=!0,t(i,(function(e){n.trigger("focus",{ev:e}),n.focusEventPending=!1})))}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{trigger:"root"};if(this.isDestroyed)throw new Error("Can not reset destroyed widget.");this.setState({response:".RESET",state:"reset",resetTrigger:e.trigger}),this._reset(e),this.handleStartMode()}},{key:"destroy",value:function(){this.isDestroyed=!0,this.hiddenFormEl&&this.hiddenFormEl.remove(),this.hiddenFormEl=void 0,this.setState({response:".DESTROYED",state:"destroyed"}),this._destroy()}},{key:"trigger",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isDestroyed)throw new Error("Can not start destroyed widget.");var n=function(e,t,n,i){var r=_(),o=n.getBoundingClientRect(),a={v:1,tt:e,pnow:r,sm:t,el:{bcr:[o.left,o.top,o.width,o.height],con:document.body.contains(n)},stack:(new Error).stack||"",we:!!window.event,weit:!!window.event&&!!window.event.isTrusted};return i&&(a.ev={ts:i.timeStamp,rt:!!i.relatedTarget,eot:!!i.explicitOriginalTarget,it:i.isTrusted}),a}(e,this.startMode,this.e,t.ev);this._trigger({trigger:n})}},{key:"start",value:function(){this.trigger("programmatic")}},{key:"setState",value:function(e){var t=this.state!==e.state;this.response=e.response,this.state=e.state,this.hiddenFormEl&&!1!==this.e.isConnected&&(this.hiddenFormEl.value=e.response),t&&this.dispatchWidgetEvent({name:"frc:widget.statechange",error:e.error,mode:e.mode}),"expired"===this.state?this.dispatchWidgetEvent({name:"frc:widget.expire"}):"completed"===this.state?this.dispatchWidgetEvent({name:"frc:widget.complete"}):"error"===this.state?this.dispatchWidgetEvent({name:"frc:widget.error",error:e.error}):"reset"===this.state&&this.dispatchWidgetEvent({name:"frc:widget.reset",trigger:e.resetTrigger})}},{key:"dispatchWidgetEvent",value:function(e){var t={response:this.response,state:this.state,id:this.id};E(t,e),o(this.e,t)}},{key:"addEventListener",value:function(e,t,n){this.e.addEventListener(e,t,n)}},{key:"removeEventListener",value:function(e,t,n){this.e.removeEventListener(e,t,n)}},{key:"getState",value:function(){return this.state}},{key:"getResponse",value:function(){return this.response}},{key:"getElement",value:function(){return this.e}}]),i}(),Q="addEventListener",$=Math,ee=function(){function e(t){_classCallCheck(this,e),this.rn=0,this.i=0,this.smel={n:0,ts:0,d:0};var n,i,o="mouse",a=this.smel,s=function(e){a.n||(a.fts=e.timeStamp,a.fxy=[e.clientX,e.clientY,e.screenX,e.screenY]),a.n++,e.type===o+"leave"&&(a.d+=e.timeStamp-a.ts
vendor: 9,589 bytes, line 15
15),a.ts=e.timeStamp,a.xy=[e.clientX,e.clientY]},c=document;r((function(){var e=c.body;e[Q](o+"enter",s),e[Q](o+"leave",s)})),this.bh={onoff:{kdu:A("keydown","keyup"),cse:A("compositionstart","compositionend"),mdu:A(o+"down",o+"up"),mle:A(o+"leave",o+"enter"),med:A(o+"enter",o+"down",!0),semd:A("scrollend",o+"down",!0,c),se:A("scroll","scrollend",!1,c),pdc:A("pointerdown","pointercancel",!0),mmc:A(o+"move","click",!0),tse:A("touchstart","touchend"),fikd:A("focusin","keydown",!0)},nev:C([o+"out","pointercancel","focus","focusin","blur","visibilitychange","copy","paste","cut","contextmenu","click","auxclick","wheel","resize"]),nk:(n=[0,0,0,0,0,0,0,0],i={8:1,46:1,9:2,45:3,17:4,13:5,37:6,38:6,39:6,40:6,33:7,34:7},document[Q]("keydown",(function(e){var t=e.keyCode;i[t]?n[i[t]]++:t>=112&&t<=123&&n[0]++})),n),mov:this.setupMovementMetrics(),dm:this.setupMotionMetrics(),do:this.setupOrientationMetrics()},this.dep=t.disableEvalPatching||!1,this.takeTraceRecords=function(e){var t=[],n=new Map,i=window,r=function(){try{var e=document.createElement("iframe");e.style.display="none",(document.body||document.head).appendChild(e);var t=e?e.contentWindow:0;return e.remove(),t||i}catch(n){return i}}(),o=Function.prototype.toString,a=function(){for(var e="function"==typeof this&&n.get(this),t=this===a?o:e||this,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return o.apply(t,r)};Function.prototype.toString=a;var s="prototype",c=i.EventTarget?i.EventTarget[s].dispatchEvent:{},l=[["Document."+s+".documentElement",i.Document[s],"documentElement"],["Element."+s+".shadowRoot",i.Element[s],"shadowRoot"],["Node."+s+".nodeType",i.Node[s],"nodeType"],["Object.is",i.Object,"is"],["Array."+s+".slice",i.Array[s],"slice"],["Document."+s+".querySelectorAll",i.Document[s],"querySelectorAll"],["Document."+s+".createElement",i.Document[s],"createElement"],["EventTarget."+s+".dispatchEvent",c,"dispatchEvent"]];return e.disableEvalPatching||l.push(["eval",i,"eval"]),l.forEach((function(e){var o=_slicedToArray(e,3),a=o[0],s=o[1],c=o[2],l=Object.getOwnPropertyDescriptor(s,c),u=l&&(l.get||l.set);if(l){if(u){if(!l.get)return}else if("object"!==_typeof(l.value)&&"function"!=typeof l.value)return;var d=0,f=0,h=function(){var e=Date.now();if(e-d>=1e3&&(f=0,d=e),f<50){var n={d:e,pnow:_(),n:a,st:(r.Error||i.Error)("FriendlyCaptcha_DummyTrace").stack||""};t.length>2e4&&t.splice(0,1e3),t.push(n),f++}for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return(u?l.get:l.value).apply(this,s)};try{var g=u?l.get?l.get():void 0:l.value();g&&(h.length=g.length,h.name=g.name)}catch(v){}try{var m=E({},l);u?m.get=h:m.value=h,Object.defineProperty(s,c,m),n.set(h,u?l.get:l.value)}catch(v){}}})),function(){return t.splice(0,t.length)}}(t)}return _createClass(e,[{key:"setupMovementMetrics",value:function(){var e=this,t=void 0,n=[],i=S(),o=S(),a=S(),s={t:i.s,v:a.s,d:o.s,ns:0},c=function(){var r=n[n.length-1];if(n.length>=200||r&&(r[0]&&e.tm.timeStamp===r[1]||!r[0]&&e.mm.timeStamp===r[1])){if(clearInterval(t),t=void 0,1===n.length)return s.ns++,void(n=[]);var c=n[0];i.add(r[1]-c[1]),o.add(x(r[2],c[2],r[3],c[3]));for(var l=1;l<n.length;l++){var u=n[l],d=n[l-1],f=1e3*x(u[2],d[2],u[3],d[3]),h=u[1]-d[1];a.add(f/h)}n=[]}else{var g=0;if(r?g=r[0]:e.mm&&e.tm?g=e.mm.timeStamp>e.tm.timeStamp?0:1:e.mm||(g=1),g){var m=e.tm.touches[0];m&&n.push([1,e.tm.timeStamp,m.screenX,m.screenY])}else n.push([0,e.mm.timeStamp,e.mm.screenX,e.mm.screenY])}},l=-1;return r((function(){var n=document.body;n[Q]("mousemove",(function(n){e.mm=n,void 0===t&&(c(),t=setInterval(c,50))})),n[Q]("touchmove",(function(n){e.tm=n;var i=n.touches[0];if(i){var r=i.radiusX+1.234*i.radiusY;r!==l&&(l=r,e.rn++)}void 0===t&&(c(),t=setInterval(c,50))}))})),s}},{key:"setupMotionMetrics",value:function(){var e=S(),t=S(),n={n:0,ts:0,ac:e.s,rr:t.s,i:0,g:!1};return R()?(window[Q]("devicemotion",(function(i){n.ts=i.timeStamp,n.i=i.interval,n.g=!i.acceleration;var r=i.acceleration||i.accelerationIncludingGravity;r&&e.add(M(r.x,r.y,r.z));var o=i.rotationRate;o&&t.add(M(o.alpha,o.beta,o.gamma))})),n):n}},{key:"setupOrientationMetrics",value:function(){var e,t=S(),n=S(),i={fts:0,ts:0,gd:t.s,bd:n.s};return R()?(window[Q]("deviceorientation",(function(r){null!=r.gamma&&null!=r.beta&&null!=r.alpha&&(i.ts=r.timeStamp,i.a=r.alpha,i.b=r.beta,i.g=r.gamma,e?(t.add(I(r.gamma,i.g)),n.add(I(i.b,r.beta))):(i.fts=i.ts,e=!0))})),i):i}},{key:"gmm",value:function(){var e=this.mm;return e&&{xy:[e.clientX,e.clientY,e.screenX,e.screenY,e.offsetX,e.offsetY,e.pageX,e.pageY,e.movementX,e.movementY],ts:e.timeStamp}}},{key:"gtm",value:function(){var e=this.tm,t=e&&e.touches,n=t&&t[0];return e&&n&&{id:n.identifier,xy:[n.clientX,n.clientY,n.screenX,n.screenY,n.pageX,n.pageY],r:[n.radiusX,n.radiusX,n.rotationAngle,n.force],n:t.length,ts:e.timeStamp,rn:this.rn}}},{key:"get",value:function(e){var t=document.body,n=window,i=n.performance;return{v:1,i:++this.i,hl:history.length,fe:!!window.frameElement,dep:this.dep,wid:e,sc:parseInt(g(!1)),sid:m(),conv:0,t:{pnow:_(),pto:i&&i.timeOrigin||0,ts:Date.now()},dims:{d:[n.innerWidth,n.innerHeight,n.outerWidth,n.outerHeight,n.screenX,n.screenY,n.pageXOffset,n.pageYOffset,t.clientWidth,t.clientHeight],dpr:n.devicePixelRatio},mel:this.smel,mm:this.gmm(),tm:this.gtm(),bh:this.bh,stack:(new Error).stack||"",trc:this.takeTraceRecords()}}}]),e}(),te={eu:"https://eu.frcapi.com",global:"https://global.frcapi.com"},ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",ie=function(){function i(e){if(_classCallCheck(this,i),this.timeout=null,this.data=null,this.e=e.element,!this.e)throw new Error("No element provided for mounting Risk Intelligence handle.");this.e.frcRiskIntelligence=this,this.formFieldName=void 0===e.formFieldName?"frc-risk-intelligence-token":e.formFieldName,null!==this.formFieldName&&(this.hiddenFormEl=n(this.e,this.formFieldName)),this.startMode=e.startMode||"focus",this.requestRiskIntelligence=e.riskIntelligence,this.handleStartMode()}return _createClass(i,[{key:"handleStartMode",value:function(){var n=this;if("none"===this.startMode)console.warn('Risk Intelligence <div> found with data-start="none" (no-op), skipping...',this.e);else if("auto"===this.startMode)this.request();else{var i=e(this.e);i?t(i,(function(){n.request()})):console.warn('Risk Intelligence <div> with startMode of "focus" found without a parent <form> element, skipping...',this.e)}}},{key:"request",value:function(){var e=this;this.requestRiskIntelligence().then((function(t){null!==e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout((function(){o(e.e,{name:"frc:riskintelligence.expire"})}),t.expiresAt-Date.now()),e.data={token:t.token,expiresAt:t.expiresAt},e.hiddenFormEl&&(e.hiddenFormEl.value=t.token),o(e.e,{name:"frc:riskintelligence.complete",token:t.token,expiresAt:t.expiresAt})})).catch((function(t){o(e.e,{name:"frc:riskintelligence.error",error:{code:t.code,detail:t.detail}})}))}},{key:"getData",value:function(){return this.data}},{key:"getElement",value:function(){return this.e}},{key:"addEventListener",value:function(e,t,n){this.e.addEventListener(e,t,n)}},{key:"removeEventListener",value:function(e,t,n){this.e.removeEventListener(e,t,n)}}]),i}(),re="FrcFrameId",oe=0,ae=function(){function e(){var t,n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.agents=new Map,this.agentState=new Map,this.widgets=new Map,this._attached=a(),this.attached=this._attached.promise,this.riskIntelligencePromises=new Map,this.clearRiskIntelligencePromises=new Map,this.riskIntelligenceHandles=[],this.apiEndpoint=i.apiEndpoint,(O=O||new L).listen((function(e){return n.onReceiveMessage(e)})),this.bus=O,++oe>1&&console.warn("Multiple Friendly Captcha SDKs created, this is not recommended. Please use a single SDK instance."),this.signals=function(e){return z||(z=new ee(e))}({disableEvalPatching:i.disableEvalPatching||(t=document.querySelector('meta[name="frc-disable-eval-patching"]'),!!t&&!!t.content)}),i.startAgent){var r=P(this.apiEndpoint||T());this.ensureAgentIFrame(r)}this.setupPeriodicRefresh()}return _createClass(e,[{key:"onReceiveMessage",value:function(e){if("root_set_response"===e.type){var t=this.widgets.get(e.widget_id);if(!t)return void(1===oe&&console.warn("Received set response message for widget ".concat(e.widget_id," that doesn't exist")));t.setState(e)}else if(s(e.type,"root_store"))this.handleStoreMessage(e);else if("root_signals_get"===e.type)this.handleSignalsGetMessage(e);else if("widget_language_change"===e.type)this.handleWidgetLanguageChange(e);else if("widget_reset"===e.type){var n=this.widgets.get(e.from_id);if(!n)return void(1===oe&&console.warn("Received reset message for widget ".concat(e.from_id," that doesn't exist")));n.reset({trigger:"widget"})}else s(e.type,"root_risk_intelligence")&&this.handleRiskIntelligenceMessage(e)}},{key:"handleRiskIntelligenceMessage",value:function(e){if("root_risk_intelligence_generate_reply"===e.type){var t=this.riskIntelligencePromises.get(e.uid);t?(e.data?t.resolve(e.data):e.error?t.reject(e.error):console.warn("Received risk intelligence generate reply message with no data"),this.riskIntelligencePromises.delete(e.uid)):console.warn("Received risk intelligence generate reply message with no promise to resolve")}else if("root_risk_intelligence_clear_reply"===e.type){var n=this.clearRiskIntelligencePromises.get(e.uid);n?e.error?n.reject(e.error):n.resolve():console.warn("Received risk intelligence clear reply message with no promise to resolve"),this.clearRiskIntelligencePromises.delete(e.uid)}}}
15,{key:"handleWidgetLanguageChange",value:function(e){var t=this.widgets.get(e.from_id);if(t){var n=t.getElement(),i=n.querySelector("iframe");i&&(i.title=y(e.language));var r=n.querySelector(".frc-banner");if(r){var o=r.style;p(e.language)?(o.left="6px",o.right="auto"):(o.left="auto",o.right="6px")}}else 1===oe&&console.warn("Received language change message for widget ".concat(e.from_id," that doesn't exist"))}},{key:"handleSignalsGetMessage",value:function(e){var t=this.signals.get(e.widget_id);this.bus.send({type:"root_signals_get_reply",from_id:"",to_id:e.from_id,_frc:1,rid:e.rid,value:t})}},{key:"handleStoreMessage",value:function(e){var t=this,n=e.from_id,i=this.agentState.get(n);i?"root_store_get"===e.type?i.store.get(e.key,{p:e.p}).then((function(r){t.bus.send({type:"root_store_get_reply",from_id:"",to_id:n,_frc:1,rid:e.rid,value:r,sa:i.store.hasSA()})})):"root_store_set"===e.type&&i.store.set(e.key,e.value,{p:e.p}).then((function(){t.bus.send({type:"root_store_set_reply",from_id:"",to_id:n,_frc:1,rid:e.rid,sa:i.store.hasSA()})})):console.error("Store not found ".concat(n))}},{key:"ensureAgentIFrame",value:function(e){for(var t=this,n=e+"/api/v2/captcha/agent",i=document.getElementsByClassName(Z),r=0;r<i.length;r++){var o=i[r];if(l(o.src)===e&&o.dataset[re])return o.dataset[re]}var a="a_"+u(12),s=function(e,t,n){var i={origin:document.location.origin,sess_id:m(),sess_c:g(!0),comm_id:t,sdk_v:"0.2.0",v:"1",agent_id:t,ts:Date.now().toString()},r=document.createElement("iframe");r.className=Z,r.dataset[G]=t,r.src=n+"?"+c(i),r.frcSDK=e;var o=r.style;return o.width=o.height=o.border=o.visibility="0",o.display="none",r}(this,a,n);this.agents.set(e,s),this.agentState.set(a,{store:new H(e),origin:e}),document.body.appendChild(s);var d=1;return function n(){t.bus.registerTargetIFrame("agent",a,s,t.getRetryTimeout(d)).then((function(i){if("timeout"===i){if(d>4)return console.error("[Friendly Captcha] Failed to load agent iframe after 4 retries."),s.remove(),void t.agents.delete(e);console.warn("[Friendly Captcha] Retrying agent iframe load."),s.src+="&retry="+d++,n()}}))}(),a}},{key:"setupPeriodicRefresh",value:function(){var e=this,t=1;setInterval((function(){var n="&expire="+t++;e.agents.forEach((function(e){e.src+=n})),e.widgets.forEach((function(e){e.getElement().querySelector("iframe").src+=n}))}),1296e5)}},{key:"getRetryTimeout",value:function(e){return 1e3*Math.pow(e,1.8)+2e3}},{key:"attach",value:function(e){for(var t=this,n=_slicedToArray([document.querySelectorAll(".frc-captcha"),document.querySelectorAll(".frc-risk-intelligence")],2),i=n[0],r=n[1],o=function(){var e=r[a];if(e&&!e.frcRiskIntelligence){var n=e.dataset,i=n.sitekey;if(!i)return console.warn("Risk Intelligence <div> found with no sitekey, skipping...",e),1;t.riskIntelligenceHandles.push(new ie({element:e,formFieldName:n.formFieldName,startMode:n.start,riskIntelligence:function(){return t.riskIntelligence({sitekey:i,apiEndpoint:n.apiEndpoint})}}))}},a=0;a<r.length;a++)o();void 0===e&&(e=i),Array.isArray(e)||e instanceof NodeList||(e=[e]);for(var s=[],c=0;c<e.length;c++){var l=e[c];if(l&&!l.frcWidget){var u=l.dataset,d={element:l,sitekey:u.sitekey,formFieldName:u.formFieldName,apiEndpoint:u.apiEndpoint,language:u.lang,theme:u.theme,startMode:u.start};s.push(this.createWidget(d))}}var f=this.getAllWidgets();return this._attached.resolve(f),this.attached=Promise.resolve(f),s}},{key:"createWidget",value:function(e){function t(t){var n,i=(n=JSON.stringify({sdk_v:"0.2.0",sitekey:e.sitekey||"",retry:M+"",endpoint:r,ua:navigator.userAgent,tz:F()||""}),window.TextEncoder?function(e){for(var t=e.length,n="",i=0;i<t;i+=3){var r=e[i+0],o=e[i+1],a=e[i+2],s="";s+=ne.charAt(r>>>2),s+=ne.charAt((3&r)<<4|o>>>4),s+=ne.charAt((15&o)<<2|a>>>6),n+=s+=ne.charAt(63&a)}return t%3==2?n=n.substring(0,n.length-1)+"=":t%3==1&&(n=n.substring(0,n.length-2)+"=="),n}((new TextEncoder).encode(n)):""),o=".ERROR.UNREACHABLE";i&&(o+="~"+i),v.setState({state:"error",response:o,error:{code:"network_error",detail:t}})}var n=this,r=P(e.apiEndpoint||this.apiEndpoint||T());this.bus.addOrigin(r);var o=this.ensureAgentIFrame(r),s="w_"+u(12),d=function(e){var t={from_id:s,to_id:o,_frc:1};n.bus.send(E(t,e))},f={onDestroy:function(){d({type:"root_destroy_widget"}),n.bus.removeTarget(s),n.widgets.delete(s),e.element.innerHTML="",e.element.removeAttribute("style")},onReset:function(){d({type:"root_reset_widget"})},onTrigger:function(e){d({type:"root_trigger_widget",trigger:e.trigger})}},h=a(),v=new J({id:s,createOpts:e,callbacks:f,registered:h.promise});this.widgets.set(s,v);var _,S,R=function(e,t,n,i){var r=document.createElement("iframe"),o=w(i),a={origin:document.location.origin,sess_id:m(),sess_c:g(!0),comm_id:t,sdk_v:"0.2.0",v:"1",agent_id:e,lang:o,sitekey:i.sitekey||"",ts:Date.now().toString()};i.theme&&(a.theme=i.theme),K&&(r.allow="clipboard-write"),r.frameBorder="0",r.src=n+"?"+c(a),r.className="frc-i-widget",r.title=y(o),r.dataset[G]=t;var s=r.style;return s.border=s.visibility="0",s.position="absolute",s.height=s.width="100%",s.userSelect="none",s["
15-webkit-tap-highlight-color"]="transparent",s.display="none",i.element.appendChild(r),r}(o,s,r+"/api/v2/captcha/widget",e),A=function(e){var t=document.createElement("div");t.classList.add("frc-widget-placeholder");var n=t.style,i="dark"===e.theme||"auto"===e.theme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return n.color=i?"#fff":"#222",n.backgroundColor=i?"#171717":"#fafafa",n.borderRadius="4px",n.border="1px solid",n.borderColor="#ddd",n.padding="8px",n.height=n.width="100%",n.fontSize="14px",n.boxSizing="border-box",b(n),e.element.appendChild(t),t}(e);(S=i)(_=e.element,"position","relative"),S(_,"height","70px"),S(_,"padding","0"),S(_,"width","316px"),S(_,"maxWidth","100%"),S(_,"maxHeight","100%"),S(_,"overflow","hidden"),S(_,"borderRadius","4px"),function(e){var t=document.createElement("div");t.classList.add("frc-banner");var n=w(e),i="dark"===e.theme||"auto"===e.theme&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,r="#565656",o="#a2a2a2";i&&(r="#a2a2a2",o="#565656");var a=t.style;a.position="absolute",a.bottom="6px",p(n)?a.left="6px":a.right="6px",a.lineHeight="1";var s=document.createElement("a");s.href="https://friendlycaptcha.com",s.rel="noopener";var c=s.style;b(c),c.color=r,c.fontSize="10px",c.userSelect="none",c.textDecorationLine="underline",c.textDecorationThickness="1px",c.textDecorationColor=o,c.letterSpacing="-0.0125rem",s.target="_blank",s.textContent="Friendly Captcha",s.onmouseenter=function(){return c.textDecorationColor=r},s.onmouseleave=function(){return c.textDecorationColor=o},t.appendChild(s),e.element.appendChild(t)}(e);var C=w(e);p(C)&&(e.element.dir="rtl");var x=A.style;A.textContent=k(C,"connecting");var M=1;return function i(){n.bus.registerTargetIFrame("widget",s,R,n.getRetryTimeout(M)).then((function(n){if("timeout"===n){if(M>4)return console.error("[Friendly Captcha] Failed to load widget iframe after 4 retries."),t("Widget load timeout, stopped retrying"),x.borderColor="#f00",x.fontSize="12px",void function(e,t,n){var i=k(n,"failed"),r=[function(e,t){var n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener",n.textContent=t;var i=n.style;return b(i),i.textDecoration="underline",i.color="#565656",n.onmouseenter=function(){return i.textDecoration="none"},n.onmouseleave=function(){return i.textDecoration="underline"},n}("".concat(t,"/connectionTest"),i)];e.textContent="",r.forEach((function(t){return e.appendChild(t)}))}(A,l(R.src),C);x.backgroundColor="#fee",x.color="#222",A.textContent=k(C,"retrying")+" (".concat(M,")"),console.warn("[Friendly Captcha] Retrying widget ".concat(s," iframe load.")),t("Widget load timeout, will retry"),R.src+="&retry="+M++,i()}else"registered"===n&&(e.element.removeChild(A),R.style.display="")}))}(),h.resolve(),v}},{key:"riskIntelligence",value:function(e){var t=P(e.apiEndpoint||this.apiEndpoint||T());this.bus.addOrigin(t);var n=this.ensureAgentIFrame(t),i=u(8);this.bus.send({type:"root_risk_intelligence_generate",to_id:n,from_id:"",_frc:1,sitekey:e.sitekey,bypassCache:e.bypassCache||!1,uid:i});var r=a();return this.riskIntelligencePromises.set(i,r),r.promise}},{key:"clearRiskIntelligence",value:function(e){var t=P((null==e?void 0:e.apiEndpoint)||this.apiEndpoint||T());this.bus.addOrigin(t);var n=this.ensureAgentIFrame(t),i=u(8);this.bus.send({type:"root_risk_intelligence_clear",to_id:n,from_id:"",_frc:1,sitekey:null==e?void 0:e.sitekey,uid:i});var r=a();return this.clearRiskIntelligencePromises.set(i,r),r.promise}},{key:"getAllWidgets",value:function(){var e=[];return this.widgets.forEach((function(t){e.push(t)})),e}},{key:"getWidgetById",value:function(e){return this.widgets.get(e)}},{key:"getAllRiskIntelligenceHandles",value:function(){var e=[];return this.riskIntelligenceHandles.forEach((function(t){e.push(t)})),e}},{key:"clear",value:function(){this.widgets.forEach((function(e){e.destroy()})),this.agents.forEach((function(e){e.remove()})),this.agents.clear()}}]),e}();window.frcaptcha=new ae,r((function(){window.frcaptcha.attach()}))}(); 16/*! 17 * Copyright (c) Friendly Captcha GmbH 2023. 18 * This Source Code Form is subject to the terms of the Mozilla Public 19 * License, v. 2.0. If a copy of the MPL was not distributed with this 20 * file, You can obtain one at https://mozilla.org/MPL/2.0/. 21 */ 22/*! 23 * Copyright (c) Friendly Captcha GmbH 2026. 24 * This Source Code Form is subject to the terms of the Mozilla Public 25 * License, v. 2.0. If a copy of the MPL was not distributed with this 26 * file, You can obtain one at https://mozilla.org/MPL/2.0/. 27 */ 28var $phoneSelect = $("input[name*='phone']"); 29 30if ($phoneSelect.length > 0) { 31 var $phoneSelectLabel = $phoneSelect.closest('.form-group').find('.control-label'), 32 phoneSelectInitialPlaceholder = $phoneSelect.attr('placeholder'); 33 34 $("select[name*='appointmenttype']").on('change', function () { 35 var appointmentType = this.value; 36 37 if (appointmentType === 'online' || appointmentType === 'telefonisch' || appointmentType === 'praesent') { 38 $phoneSelect.attr('required', true); 39 $phoneSelect.attr('placeholder', phoneSelectInitialPlaceholder + ' *'); 40 41 if ($phoneSelectLabel.find('.required').length === 0) { 42 $phoneSelectLabel.append('<span class="required">*</span>'); 43 } 44 } else { 45 $phoneSelect.attr('required', false); 46 $phoneSelect.attr('placeholder', phoneSelectInitialPlaceholder); 47 48 if ($phoneSelectLabel.find('.required').length > 0) { 49 $phoneSelectLabel.find('.required').remove(); 50 } 51 } 52 }); 53} 54 55var $ratenzahlungForm = $('.form-ratenzahlung').find('form'); 56 57if ($ratenzahlungForm.length > 0) { 58 var $toggleInputOption = $ratenzahlungForm.find('.inputs-list .form-check-input'), 59 $toggleInputOptionChecked = $ratenzahlungForm.find('.inputs-list .form-check-input:checked'); 60 61 if ($toggleInputOptionChecked.length > 0) { 62 var checkedValue = $toggleInputOptionChecked.val(); 63 64 if (checkedValue === '1') { 65 toggleFields($ratenzahlungForm, 'existing-customer', 'no-customer'); 66 } else if (checkedValue === '0') { 67 toggleFields($ratenzahlungForm, 'no-customer', 'existing-customer'); 68 } 69 } 70 71 $toggleInputOption.on('change', function (e) { 72 var checkedValue = $(this).val(); 73 74 if (checkedValue === '1') { 75 toggleFields($ratenzahlungForm, 'existing-customer', 'no-customer'); 76 } else if (checkedValue === '0') { 77 toggleFields($ratenzahlungForm, 'no-customer', 'existing-customer'); 78 } 79 }); 80} 81 82var toggleFields = function (form, toggleSelector, toggleHideSelector) { 83 var $toggleElements = $(form).find('[data-selector="' + toggleSelector + '"]'), 84 $toggleHideElements = $(form).find('[data-selector="' + toggleHideSelector + '"]'); 85 86 if ($toggleElements.length > 0) { 87 $toggleElements.each(function () { 88 var $this = $(this), 89 $elements = $this.find('[data-option-required="1"]'); 90 91 $this.removeClass('hide'); 92 93 if ($elements.length > 0) { 94 $elements.each(function () { 95 $(this).prop('required', true); 96 }); 97 } 98 }); 99 100 if ($toggleHideElements.length > 0) { 101 $toggleHideElements.each(function () { 102 var $this = $(this), 103 $elements = $this.find('[data-option-required="1"]'); 104 105 $this.addClass('hide'); 106 107 if ($elements.length > 0) { 108 $elements.each(function () { 109 $(this).prop('required', false); 110 }); 111 } 112 }); 113 } 114 } 115}; 116 117document.addEventListener('DOMContentLoaded', function () { 118 const typeOfAppointment = document.querySelector('[name$="[typeOfAppointment]"]'); 119 const telephone = document.querySelector('[name$="[telephone]"]'); 120 121 if (!typeOfAppointment || !telephone) return; 122 123 const telephoneId = telephone.getAttribute('id'); 124 const label = document.querySelector('label[for="' + telephoneId + '"]'); 125 126 const updateRequirement = () => { 127 const isRequired = typeOfAppointment.value && typeOfAppointment.value !== ''; 128 if (isRequired) { 129 telephone.setAttribute('required', 'required'); 130 if (label && !label.textContent.includes('*')) { 131 label.innerHTML += ' <span class="required">*</span>'; 132 } 133 } else { 134 telephone.removeAttribute('required'); 135 if (label) { 136 label.innerHTML = label.innerHTML.replace(/\s*<span class="required">\*<\/span>/, ''); 137 } 138 } 139 }; 140 141 typeOfAppointment.addEventListener('change', updateRequirement);
vendor: 4,483 bytes, lines 142-157
142 updateRequirement(); 143}); 144 145/*! 146 * headroom.js v0.10.3 - Give your page some headroom. Hide your header until you need it 147 * Copyright (c) 2019 Nick Williams - http://wicky.nillia.ms/headroom.js 148 * License: MIT 149 */ 150 151!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).Headroom=n()}(this,function(){"use strict";function t(){return"undefined"!=typeof window}function d(t){return function(t){return t&&t.document&&function(t){return 9===t.nodeType}(t.document)}(t)?function(t){var n=t.document,o=n.body,e=n.documentElement;return{scrollHeight:function(){return Math.max(o.scrollHeight,e.scrollHeight,o.offsetHeight,e.offsetHeight,o.clientHeight,e.clientHeight)},height:function(){return t.innerHeight||e.clientHeight||o.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(e||o.parentNode||o).scrollTop}}}(t):function(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}(t)}function n(t,e,s){var n,o=function(){var n=!1;try{var t={get passive(){n=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){n=!1}return n}(),i=!1,r=d(t),a=r.scrollY(),c={};function l(){var t=Math.round(r.scrollY()),n=r.height(),o=r.scrollHeight();c.scrollY=t,c.lastScrollY=a,c.direction=a<t?"down":"up",c.distance=Math.abs(t-a),c.isOutOfBounds=t<0||o<t+n,c.top=t<=e.offset,c.bottom=o<=t+n,c.toleranceExceeded=c.distance>e.tolerance[c.direction],s(c),a=t,i=!1}function h(){i||(i=!0,n=requestAnimationFrame(l))}var u=!!o&&{passive:!0,capture:!1};return t.addEventListener("scroll",h,u),{destroy:function(){cancelAnimationFrame(n),t.removeEventListener("scroll",h,u)}}}function o(t,n){n=n||{},Object.assign(this,o.options,n),this.classes=Object.assign({},o.options.classes,n.classes),this.elem=t,this.tolerance=function(t){return t===Object(t)?t:{down:t,up:t}}(this.tolerance),this.initialised=!1,this.frozen=!1}return o.prototype={constructor:o,init:function(){return o.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=n(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add(this.classes[t])},removeClass:function(t){this.elem.classList.remove(this.classes[t])},hasClass:function(t){return this.elem.classList.contains(this.classes[t])},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},o.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},o.cutsTheMustard=!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),o}); 152(function($) { 153 154 if(!$) { 155 return; 156 } 157
158 //////////// 159 // Plugin // 160 //////////// 161 162 $.fn.headroom = function(option) { 163 return this.each(function() { 164 var $this = $(this), 165 data = $this.data('headroom'), 166 options = typeof option === 'object' && option; 167 168 options = $.extend(true, {}, Headroom.options, options); 169 170 if (!data) { 171 data = new Headroom(this, options); 172 data.init(); 173 $this.data('headroom', data); 174 } 175 if (typeof option === 'string') { 176 data[option](); 177 178 if(option === 'destroy'){ 179 $this.removeData('headroom'); 180 } 181 } 182 }); 183 }; 184 185 ////////////// 186 // Data API // 187 ////////////// 188 189 $('[data-headroom]').each(function() { 190 var $this = $(this); 191 $this.headroom($this.data()); 192 }); 193 194}(window.Zepto || window.jQuery)); 195$(function() { 196 if ($('html').hasClass('no-js')) { 197 $('html').removeClass('no-js'); 198 $('html').addClass('js'); 199 } 200}); 201 202window.addEventListener('CookiebotOnDialogDisplay', function (e) { 203 $('[data-toggle="toggle"]').bootstrapToggle(); 204}, false); 205 206/** 207 * Close modals and call Cookiebot renew 208 */ 209function closeModalsAndRenew() { 210 $('.modal').modal('hide'); 211 212 Cookiebot.renew(); 213} 214 215/** 216 * Show cookiebot settings overlay 217 */ 218function showCookiebotSettings() { 219 $('#cookiebotSettingsOverlay').modal('show'); 220} 221 222 223/** 224 * Renew and show cookiebot settings overlay 225 */ 226function renewAndShowCookiebotSettingsOverlay() { 227 Cookiebot.renew(); 228 229 window.addEventListener('CookiebotOnDialogDisplay', function (e) { 230 var cookiebanner = document.getElementById("cookiebotOverlay"), 231 cookiebannerSettings = document.getElementById("cookiebotSettingsOverlay"); 232 233 cookiebanner.classList.remove("in"); 234 cookiebanner.style.display = "none"; 235 236 cookiebannerSettings.classList.add("in"); 237 cookiebannerSettings.style.display = "block"; 238 }, false); 239} 240 241$(function() { 242 // Navigation 243 var currentDropdownHeight = 0, 244 firstLevelDropdownHeight = 0; 245 246 $('#nav .navbar-nav .dropdown-toggle').parent().on('show.bs.dropdown', function (e) { 247 $(this).closest('.navbar-collapse').addClass("show-dropdown"); 248 }); 249 250 $('#nav .navbar-nav .dropdown-toggle').parent().on('shown.bs.dropdown', function (e) { 251 currentDropdownHeight = $(this).find('.dropdown-menu').outerHeight() + 32; 252 firstLevelDropdownHeight = currentDropdownHeight; 253 $('.navbar-collapse').css('height', currentDropdownHeight); 254 }); 255 256 $('#nav .navbar-nav .dropdown-toggle').parent().on('hide.bs.dropdown', function (e) { 257 $(this).closest('.navbar-collapse').removeClass("show-dropdown show-dropdown-sub"); 258 $('.navbar-collapse').css('height', ''); 259 }); 260 261 $('#nav .navbar-nav .dropdown-toggle-close').click(function (e) { 262 e.stopPropagation(); 263 e.preventDefault(); 264 var close = $(this).data("close"); 265 266 if(close === 'show-dropdown-sub') { 267 if(firstLevelDropdownHeight) { 268 $('.navbar-collapse').css('height', firstLevelDropdownHeight); 269 } 270 } else { 271 $('.navbar-collapse').css('height', ''); 272 } 273 274 $(this).closest('.navbar-collapse').removeClass(close); 275 $(this).closest('.open').removeClass("open"); 276 }); 277 278 $('#nav .navbar-nav .dropdown-toggle-sub').click(function (e) { 279 e.stopPropagation(); 280 e.preventDefault(); 281 282 currentDropdownHeight = $(this).parent().find('.dropown-submenu').outerHeight() + 32; 283 $('.navbar-collapse').css('height', currentDropdownHeight); 284 285 $(this).parent().addClass("open"); 286 $(this).closest('.navbar-collapse').addClass("show-dropdown-sub"); 287 }); 288 289 $('#nav .navbar-collapse a').click(function (e) { 290 if($(this).attr('href') != '#') { 291 $('#navbar-collapse-1').collapse('hide'); 292 } 293 }); 294 295 $("#nav .navbar-nav .dropdown-menu").click(function(e){ 296 e.stopPropagation(); 297 }) 298});
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.