PageSourceSearch

https://kresy24.pl/wp-content/cache/wpo-minify/1790755899/assets/wpo-minify-header-afb013d3.min.js

js kresy24.pl collected 2026-10-02 11:19:06 UTC 133,011 bytes, 8 lines download raw bytes

1
2(()=>{var O=(e,t,n)=>new Promise((o,c)=>{var s=u=>{try{l(n.next(u))}catch(d){c(d)}},i=u=>{try{l(n.throw(u))}catch(d){c(d)}},l=u=>u.done?o(u.value):Promise.resolve(u.value).then(s,i);l((n=n.apply(e,t)).next())});const r=window._ckyConfig,W=window._ckyStyles;r._backupNodes=[];r._resetConsentID=!1;r._bannerState=!1;r._preferenceOriginTag=!1;r._optoutSuccessCountdownInterval=null;r._optoutSuccessAutoCloseTimer=null;r._optoutSuccessSubtextTemplate="";const ue=15e3,V=15;window.cookieyes=window.cookieyes||{};const a=window.cookieyes;a._ckyConsentStore=new Map;a._ckyGetCookieMap=function(){const e={};try{document.cookie.split(";").map(t=>{const[n,o]=t.split("=");if(n)return e[n.trim()]=o,o})}catch(t){}return e};const de=a._ckyGetCookieMap();a._ckyGetFromStore=function(e){return a._ckyConsentStore.get(e)||""};a._ckySetInStore=function(e,t){a._ckyConsentStore.set(e,t);let n=[];for(const[c,s]of a._ckyConsentStore)n.push(`${c}:${s}`);const o=r&&r._expiry?r._expiry:365;a._ckySetCookie("cookieyes-consent",n.join(","),o)};const ye=(de["cookieyes-consent"]||"").split(",").reduce((e,t)=>{if(!t)return e;const[n,o]=t.split(":");return e[n]=o,e},{});["consentid","consent","action"].concat(r._categories.map(({slug:e})=>e)).map(e=>a._ckyConsentStore.set(e,ye[e]||""));a._ckyGetCookie=function(e){const t=new RegExp(`${e}=([^;]+)`).exec(document.cookie);return t&&Array.isArray(t)&&t[1]?unescape(t[1]):null};a._ckySetCookie=function(e,t,n=0,o=r._rootDomain){const c=new Date;o&&(o=`domain=${o}`);const s=n===0?0:c.setTime(c.getTime()+n*24*60*60*1e3);document.cookie=`${e}=${t}; expires=${new Date(s).toUTCString()}; path=/;${o}; SameSite=Strict;`};function fe(){if(a._ckyGetFromStore("consentid"))return;const t=a._ckyRandomString(32);a._ckySetInStore("consentid",t),r._resetConsentID=!0}const E=function(){p()==="classic"&&$(),P(),Ae()};function f(e){const t=document.querySelector("[data-cky-tag="+e+"]");return t||!1}function ke(e){return e.replace(/[.*+?^${}()[\]\\]/g,"\\$&")}function y(e,t){const n=q(e);n&&n.addEventListener("click",t)}function Y(){return N("add",...arguments)}function x(){return N("remove",...arguments)}function Q(){return N("toggle",...arguments)}function N(e,t,n,o=!0){const c=q(t,o);return c&&c.classList[e](n)}function q(e,t){let n=e;switch(!0){case e.startsWith("="):n=`[data-cky-tag="${e.substring(1)}"]`;break;default:break}const o=document.querySelector(n);return!o||t&&!o.parentElement?null:t?o.parentElement:o}function z(e){const t=new CustomEvent("cookieyes_consent_update",{detail:e});document.dispatchEvent(t)}function pe(){const e=document.getElementById("cky-style-inline");e&&e.remove()}a._ckyRandomString=function(e,t=!0){const n=`${t?"0123456789":""}ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghiklmnopqrstuvwxyz`,o=[];for(let c=0;c<e;c++)o.push(n[Math.floor(Math.random()*n.length)]);return t?btoa(o.join("")).replace(/\=+$/,""):o.join("")};function I(){H(),r._bannerConfig.config.revisitConsent.status===!0&&R()}function ge(){Xe(),je(),He(),Re(),!a._ckyGetFromStore("action")||me()?($(),_e(),fe()):I()}function me(){let e=new URL(document.location).searchParams;return e.get("cky_preview")&&e.get("cky_preview")==="true"}function m(e,t=null){const n=q(e);if(!n)return;if(n.classList.contains("cky-accordion-btn")){const s=n.closest(".cky-accordion");if(s){const i=s.querySelector(".cky-accordion-body");if(i){let l=i.id;l||(l=`ckyDetailCategory${s.id.replace("ckyDetailCategory","")}Body`,i.id=l),n.setAttribute("aria-controls",l)}}}const o=n.getAttribute("aria-expanded"),c=t||(o==="true"?"false":"true");n.setAttribute("aria-expanded",c)}function _e(){const e=k();a._ckySetInStore("consent","no");const t=T(),n={accepted:[],rejected:[]};let o="yes";for(const c of r._categories)(e==="gdpr"&&!c.isNecessary&&!c.defaultConsent[e]||e==="ccpa"&&t&&!c.defaultConsent.ccpa)&&(o="no"),o==="no"?n.rejected.push(c.slug):n.accepted.push(c.slug),a._ckySetInStore(`${c.slug}`,o);re(),z(n)}function Ce(){const e=f("notice");if(!e)return!1;const t=e.closest(".cky-consent-container");if(!t)return!1;t.setAttribute("aria-label","We value your privacy"),t.setAttribute("role","regi
2on");const n=r._bannerConfig.settings.type;let o=r._bannerConfig.settings.position,c=n;c==="popup"&&(o="center"),c=S()==="pushdown"?"classic":c;const s=`cky-${c}-${o}`;t.classList.add(s);const i=f("revisit-consent");if(!i)return!1;const l="cky-revisit-"+r._bannerConfig.config.revisitConsent.position;i.classList.add(l)}function be(){const e=k()==="ccpa"?f("optout-popup"):f("detail");if(!e)return!1;const t=e.closest(".cky-modal");if(!t)return!1;if(S()!=="pushdown"&&S()!=="popup"){const c=`cky-${r._bannerConfig.settings.preferenceCenterType}`;t.classList.add(c)}const n=t.querySelector(".cky-preference-center");if(n){const o=k()==="ccpa"?"ckyOptoutPreferenceCenter":"ckyPreferenceCenter";n.setAttribute("id",o),n.setAttribute("role","dialog"),n.setAttribute("aria-modal","true");const c=k()==="ccpa"?"Opt-out Preferences":"Customise Consent Preferences";n.setAttribute("aria-label",c)}}function he(){return O(this,null,function*(){try{ge(),rt(),ct()}catch(e){console.error(e)}})}function Se(e){if(typeof document!="undefined"){if(document.readyState==="complete"||document.readyState==="interactive")return void e();document.addEventListener("DOMContentLoaded",e)}}Se(function(){return O(this,null,function*(){try{yield he()}catch(e){console.error(e)}})});function ve(){for(const{slug:e}of r._categories)y("detail-category-title",()=>document.getElementById(`ckyCategory${e}`).classList.toggle("cky-tab-active"));y("=settings-button",()=>P("settings-button")),y("=detail-close",()=>v()),y("=optout-cancel-button",()=>v()),y("=close-button",()=>Fe()),y("=donotsell-button",()=>P("donotsell-button")),y("=reject-button",b("reject")),y("=accept-button",b("all")),y("=detail-accept-button",b("all")),y("=detail-save-button",b()),y("=detail-category-preview-save-button",b()),y("=optout-confirm-button",qe()),y("=detail-reject-button",b("reject")),y("=revisit-consent",()=>E()),y("=optout-close",()=>Ge())}function we(){if(!r._bannerConfig.config.auditTable.status)return;const e=r._categories.map(({slug:t})=>t);e.map(t=>{const n=`#ckyDetailCategory${t}`,o=`${n}  .cky-accordion-btn`,c=document.querySelector(o);if(c){const s=c.closest(".cky-accordion");if(s){const i=s.querySelector(".cky-accordion-body");if(i){let l=i.id;l||(l=`ckyDetailCategory${s.id.replace("ckyDetailCategory","")}Body`,i.id=l),c.setAttribute("aria-controls",l)}}}return m(o,"false"),y(n,({target:{id:s}})=>{if(s===`ckySwitch${t}`||!Q(n,"cky-accordion-active",!1)){m(o,"false");return}m(o,"true"),e.filter(i=>i!==t).map(i=>(x(`#ckyDetailCategory${i}`,"cky-accordion-active",!1),m(`#ckyDetailCategory${i} .cky-accordion-btn`,"false"),i))}),t})}function Ae(e=!1){const t=Z();t&&(e===!0?_ckyRevisitHide():t.classList.toggle("cky-revisit-hide"))}function k(){return r._bannerConfig.settings.applicableLaw}function p(){return r._bannerConfig.settings.type}function S(){return p()==="classic"?"pushdown":r._bannerConfig.settings.preferenceCenterType}function G(){const e=f("notice"),t=e&&e.closest(".cky-consent-container")||!1;return t&&t||!1}function H(){const e=G();e&&e.classList.add("cky-hide")}function $(){const e=G();e&&e.classList.remove("cky-hide")}function J(){const e=document.querySelector(".cky-overlay");e&&e.classList.add("cky-hide")}function X(){const e=document.querySelector(".cky-overlay");e&&e.classList.remove("cky-hide")}function Le(){const e=document.querySelector(".cky-overlay");e&&e.classList.toggle("cky-hide")}function F(){if(p()==="classic")return G();let e=k()==="ccpa"?f("optout-popup"):f("detail");return e&&e.closest(".cky-modal")||!1}function v(){Ne();const e=F();e&&e.classList.remove(h()),p()!=="classic"?(J(),a._ckyGetFromStore("action")||$()):(m("=settings-button","false"),x("=notice","cky-consent-bar-expand")),a._ckyGetFromStore("action")&&R();const t=r._preferenceOriginTag;t&&ae(t)}function Te(){const e=F();if(e&&e.classList.add(h()),e){const t=e.querySelector(".cky-preference-center");if(t){const n=k()==="ccpa"?"ckyOptoutPreferenceCenter":"ckyPreferenceCenter";t.setAttribute("id",n),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true");
2const o=k()==="ccpa"?"Opt-out Preferences":"Customise Consent Preferences";t.setAttribute("aria-label",o)}}p()!=="classic"?(X(),H()):(m("=settings-button"),Y("=notice","cky-consent-bar-expand"))}function Ee(){const e=F();if(!e)return;e.classList.toggle(h()),S()!=="pushdown"&&Le();const t=e.classList.contains(h());if(e.classList.toggle(h()),p()==="classic"){const o=e.querySelector(".cky-preference-center");if(o){const c=k()==="ccpa"?"ckyOptoutPreferenceCenter":"ckyPreferenceCenter";o.setAttribute("id",c),o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true");const s=k()==="ccpa"?"Opt-out Preferences":"Customise Consent Preferences";o.setAttribute("aria-label",s)}m("=settings-button"),Q("=notice","cky-consent-bar-expand")}else t?(J(),a._ckyGetFromStore("action")||$()):(X(),H());a._ckyGetFromStore("action")&&R();const n=r._preferenceOriginTag;n&&ae(n)}function h(){return S()==="pushdown"?"cky-consent-bar-expand":"cky-modal-open"}function Z(){const e=f("revisit-consent");return e&&e||!1}function R(){const e=Z();e&&e.classList.remove("cky-revisit-hide")}function P(e=!1){r._preferenceOriginTag=e,p()==="classic"?(Ee(),m("=settings-button")):Te()}function K(e){const t=document.querySelector(`[data-cky-tag="${e}"]`);if(!t)return[];const n=Array.from(t.querySelectorAll('a:not([disabled]), button:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])')).filter(o=>o.style.display!=="none");return n.length<=0?[]:[n[0],n[n.length-1]]}function xe(){const e=k(),t=p();if(t==="classic")return;if(t==="popup"){const[c,s]=K("notice");w(c,s,!0),w(s,c)}const[n,o]=K(e==="ccpa"?"optout-popup":"detail");w(n,o,!0),w(o,n)}function w(e,t,n=!1){!e||!t||e.addEventListener("keydown",o=>{o.which!==9||n&&!o.shiftKey||!n&&o.shiftKey||(o.preventDefault(),t.focus())})}function Ie(e){const t=e.querySelector('[data-cky-tag="detail"] .cky-footer-shadow'),n=e.querySelector('[data-cky-tag="detail"]');if(!t)return;const o=n&&n.style.backgroundColor||"#ffffff";t.style.background=`linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, ${o} 100%)`}function ee({cookies:e}){const t=a._ckyGetCookieMap();for(const{cookieID:n,domain:o}of e)t[n]&&[o,""].map(c=>a._ckySetCookie(n,"",0,c))}function te(e=!1){for(const t of r._categories){const n=a._ckyGetFromStore(t.slug),o=n==="yes"||!n&&t.defaultConsent[k()]||t.isNecessary,c=t.isNecessary,i=r._shortCodes.find(l=>l.key==="cky_category_toggle_label").content.replace("[cky_preference_{{category_slug}}_title]",t.name);$e(t,o,c,i,e),Me(t)}}function $e(e,t,n,o,c=!1){const s=r._bannerConfig.config.preferenceCenter.toggle,i=s.states.active.styles["background-color"],l=s.states.inactive.styles["background-color"];["ckyCategoryDirect","ckySwitch"].map(u=>{const d=document.getElementById(`${u}${e.slug}`);if(d&&(Be(d,e,c),d.checked=t,d.disabled=n,d.style.backgroundColor=t?i:l,A(d,t,o),!c))return d.addEventListener("change",({currentTarget:g})=>{const _=g.checked;g.style.backgroundColor=_?i:l,A(d,_,o)}),d})}function Be(e,t={},n=!1){if(!n&&(e.parentElement.getAttribute("data-cky-tag")==="detail-category-toggle"?Oe(e,t):e.parentElement.getAttribute("data-cky-tag")==="detail-category-preview-toggle"&&Pe(e,t),!t.isNecessary)){const o=t.name,c=document.querySelector(`[data-cky-tag="detail-category-title"][aria-label="${o}"]`);if(c){const i=c.closest(".cky-accordion-item").querySelector(".cky-always-active");i&&i.remove()}}}function Oe(e,t){let n=e.closest(".cky-accordion-item");if(!n)return;const o=n.querySelector(".cky-switch");t.isNecessary?o&&o.remove():(p()==="classic"&&r._bannerConfig.config.categoryPreview.status||t.cookies&&t.cookies.length===0)&&o&&o.remove()}function Me(e){if(r._bannerConfig.config.auditTable.status===!1){const t=document.querySelector(`#ckyDetailCategory${e.slug} [data-cky-tag="audit-table"]`);t&&t.remove();const n=document.querySelector(`#ckyDetailCategory${e.slug} .cky-accordion-chevron`);n&&n.classList.add("cky-accordion-chevron-hide")}}function Pe(e,t){t.cookies&&t.cookies.length===0&&!t.isNecessary&&e.parentElement.parentElement.remove()}function A(e,t,n,o=!1){if(!e)return;const c=t?"disable":"enable",s=`cky_${c}_${o?"optout":"category"}_label`,i=r._shortCodes.find(u=>u.key===s);if(!i)return;const l=n.replace(/{{status}}/g,c).replace(`[${s}]`,i.content);e.setAttribute("aria-label",l)}function ne(){r._optoutSuccessCountdownInterval&&(clearInterval(r._optoutSuccessCountdownInterval),r._optoutSuccessCountdownInterval=null),r._optoutSuccessAutoCloseTimer&&(clearTimeout(r._optoutSuccessAutoCloseTimer),r._optoutSuccessAutoCloseTimer=null)}function oe(){const e=f("optout-success");return!!(e&&!e.classList.contains("cky-hide"))}function L(){I(),v(),ie()}function De(){ne();const e=f("optout-buttons"),t=f("optout-success"),n=f("optout-success-subtext"),o=document.getElementById("ckyCCPAOptOut");if(!e||!t){L();return}e.style.display="none",t.classList.remove("cky-hide"),t.setAttribute("aria-live","polite"),t.focu
2s(),o&&(o.disabled=!0),Y("=optout-option","cky-disabled",!1);const c=n&&n.querySelector("#ckyCountdownTimer")||document.getElementById("ckyCountdownTimer");let s=V;n&&!c&&!r._optoutSuccessSubtextTemplate&&(r._optoutSuccessSubtextTemplate=n.textContent||`Banner closes automatically in ${V} s...`);const i=r._optoutSuccessSubtextTemplate,l=i&&/\d+/.test(i),u=()=>{if(n){if(c){c.textContent=String(s);return}n.textContent=l?i.replace(/\d+/,String(s)):`Banner closes automatically in ${s} s...`}};u(),r._optoutSuccessCountdownInterval=setInterval(()=>{s-=1,s>=0&&u()},1e3),r._optoutSuccessAutoCloseTimer=setTimeout(L,ue)}function Ne(){ne();const e=f("optout-buttons"),t=f("optout-success"),n=f("optout-success-subtext"),o=document.getElementById("ckyCCPAOptOut");e&&(e.style.display=""),t&&t.classList.add("cky-hide"),o&&(o.disabled=!1),x("=optout-option","cky-disabled",!1);const c=n&&n.querySelector("#ckyCountdownTimer")||document.getElementById("ckyCountdownTimer");c?c.textContent="":n&&r._optoutSuccessSubtextTemplate&&(n.textContent=r._optoutSuccessSubtextTemplate)}function qe(){return()=>{if(k()!=="ccpa"||!T()){b()();return}ce(),De()}}function Ge(){if(oe()){a._ckySetInStore("action","yes"),L();return}v()}function He(){const t=document.getElementById("ckyBannerTemplate").innerHTML,n=new DOMParser().parseFromString(t,"text/html");Ie(n),document.body.insertAdjacentHTML("afterbegin",n.body.innerHTML),p()==="classic"&&m("=settings-button","false"),te(),we(),ve(),st(),tt(),Qe(),D(),ze(),Je(),pe(),Ce(),nt(),ot(),xe(),be()}function b(e="custom"){return()=>{ce(e),I(),v(),ie()}}function Fe(){if(a._ckySetInStore("action","yes"),oe()){L();return}I()}function ce(e="all"){const t=k(),n=T();a._ckySetInStore("action","yes"),t==="gdpr"?a._ckySetInStore("consent",e==="reject"?"no":"yes"):a._ckySetInStore("consent",n?"yes":"no");const o={accepted:[],rejected:[]};for(const c of r._categories){let s="no";t==="gdpr"?s=!c.isNecessary&&(e==="reject"||e==="custom"&&!T(c.slug))?"no":"yes":s=n&&!c.defaultConsent.ccpa?"no":"yes",a._ckySetInStore(`${c.slug}`,s),s==="no"?(o.rejected.push(c.slug),ee(c)):o.accepted.push(c.slug)}re(),z(o)}function Re(){const e=k(),t=r._shortCodes.find(C=>C.key==="cky_show_desc"),n=r._shortCodes.find(C=>C.key==="cky_hide_desc");if(!t||!n)return;const o=n.content,c=t.content,s=window.innerWidth<376?150:300,i=document.querySelector(`[data-cky-tag="${e==="gdpr"?"detail":"optout"}-description"]`);if(!i||i.textContent.length<s)return;const u=i.innerHTML,g=new DOMParser().parseFromString(u,"text/html").querySelectorAll("body > p");if(g.length<=1)return;let _="";for(let C=0;C<g.length;C++){if(C===g.length-1)continue;const B=g[C];if(`${_}${B.outerHTML}`.length>s&&B.insertAdjacentHTML("beforeend",`...&nbsp;${c}`),_=`${_}${B.outerHTML}`,_.length>s)break}function le(){i.innerHTML=`${u}${o}`,y("=hide-desc-button",U),D()}function U(){i.innerHTML=_,y("=show-desc-button",le),D()}U()}function je(){const e=r._tags;Array.prototype.forEach.call(e,function(t){document.querySelectorAll("[data-cky-tag="+t.tag+"]").forEach(function(n){let o="";for(const c in t.styles)o+=`${c}: ${t.styles[c]};`;n.style.cssText=o})})}const Ue=document.createElement;document.createElement=(...e)=>{const t=Ue.call(document,...e);if(t.nodeName.toLowerCase()!=="script")return t;const n=t.setAttribute.bind(t);return Object.defineProperties(t,{src:{get:function(){return t.getAttribute("src")},set:function(o){return M(t,o)&&n("type","javascript/blocked"),n("src",o),!0}},type:{get:function(){return t.getAttribute("type")},set:function(o){return o=M(t)?"javascript/blocked":o,n("type",o),!0}}}),t.setAttribute=(o,c)=>{if(o==="type"||o==="src")return t[o]=c;n(o,c),o==="data-cookieyes"&&!M(t)&&n("type","text/javascript")},t};function We(e){for(const{addedNodes:t}of e)for(const n of t)if(!(!n.src||!n.nodeName||!["script","iframe"].includes(n.nodeName.toLowerCase())))try{const o=n.src.startsWith("//")?`${window.location.protocol}${n.src}`:n.src,{hostname:c,pathname:s}=new URL(o),i=Ye(`${c}${s}`);if(Ve(n,i),!j(i))continue;const l=a._ckyRandomString(8,!1);if(n.nodeName.toLowerCase()==="iframe")Ze(n,l);else{n.type="javascript/blocked";const d=function(g){g.preventDefault(),n.removeEventListener("beforescriptexecute",d)};n.addEventListener("beforescriptexecute",d)}const u=document.head.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY?"head":"body";n.remove(),r._backupNodes.push({position:u,node:n.cloneNode(),uniqueID:l})}catch(o){}}function re(){if(navigator.doNotTrack===1)return;const e=a._ckyGetFromStore("consent");k()==="gdpr"&&(!e||e!=="yes")||(r._backupNodes=r._backupNodes.filter(({position:t,node:n,uniqueID:o})=>{try{if(j(n.src))return!0;
2if(n.nodeName.toLowerCase()==="script"){const c=document.createElement("script");c.src=n.src,c.type="text/javascript",document[t].appendChild(c)}else{const c=document.getElementById(o);if(!c)return!1;const s=document.createElement("iframe");s.src=n.src,s.width=c.offsetWidth,s.height=c.offsetHeight,c.parentNode.insertBefore(s,c),c.parentNode.removeChild(c)}return!1}catch(c){return console.error(c),!1}}))}function Ve(e,t){const n=e.hasAttribute("data-cookieyes")&&e.getAttribute("data-cookieyes");if(!n)return;const o=n.replace("cookieyes-","");for(const s of r._categories)if(s.isNecessary&&s.slug===o)return;const c=r._providersToBlock.find(({re:s})=>s===t);c?c.isOverridden?c.categories.includes(o)||c.categories.push(o):(c.categories=[o],c.isOverridden=!0):r._providersToBlock.push({re:t,categories:[o],fullPath:!1})}const Ke=new MutationObserver(We);Ke.observe(document.documentElement,{childList:!0,subtree:!0});function Ye(e){return e.replace(/^www./,"")}function se(e){const t=a._ckyGetFromStore(e);return t==="no"||!t&&r._categories.some(n=>n.slug===e&&!n.isNecessary)}function j(e){const t=r._providersToBlock.find(({re:n})=>new RegExp(ke(n)).test(e));return t&&t.categories.some(n=>se(n))}function M(e,t){return e.hasAttribute("data-cookieyes")&&se(e.getAttribute("data-cookieyes").replace("cookieyes-",""))||j(t||e.src)}function Qe(){const e=r._shortCodes.find(s=>s.key==="cky_readmore");if(!e.status)return;const t=e.content,n=r._bannerConfig.config.readMore.styles,o=document.querySelector('[data-cky-tag="description"]');if(!o)return;if(o.childNodes.length>1){const s=document.querySelector('[data-cky-tag="description"] p:last-child');s&&s.insertAdjacentHTML("beforeend",`&nbsp;${t}`)}else o.insertAdjacentHTML("beforeend",`&nbsp;${t}`);const c=document.querySelectorAll('[data-cky-tag="readmore-button"]');c.length<1||Array.from(c).forEach(s=>{for(const i in n)n[i]&&(s.style[i]=n[i])})}function D(){if(!r._bannerConfig.config.showMore||!r._bannerConfig.config.showLess)return;const e=r._bannerConfig.config.showMore.styles,t=r._bannerConfig.config.showLess.styles;if(e){const n=document.querySelectorAll('[data-cky-tag="show-desc-button"]');n.length>0&&Array.from(n).forEach(o=>{for(const c in e)e[c]&&(o.style[c]=e[c])})}if(t){const n=document.querySelectorAll('[data-cky-tag="hide-desc-button"]');n.length>0&&Array.from(n).forEach(o=>{for(const c in t)t[c]&&(o.style[c]=t[c])})}}function ze(){if(!r._bannerConfig.config.alwaysActive)return;const e=r._bannerConfig.config.alwaysActive.styles;if(!e)return;const t=document.querySelectorAll(".cky-always-active");t.length<1||Array.from(t).forEach(n=>{for(const o in e)e[o]&&(n.style[o]=e[o])})}function Je(){if(!r._bannerConfig.config.manualLinks)return;const e=r._bannerConfig.config.manualLinks.styles;if(!e)return;const t=document.querySelectorAll('.cky-link, a.cky-link, [data-cky-tag="detail"] a, [data-cky-tag="optout-popup"] a, [data-cky-tag="notice"] a');t.length<1||Array.from(t).forEach(n=>{if(n.getAttribute("data-cky-tag")!=="readmore-button"){for(const o in e)e[o]&&(n.style[o]=e[o]);e.color&&(n.style.textDecorationColor=e.color)}})}function ie(){k()==="gdpr"&&te(!0),r._bannerConfig.behaviours.reloadBannerOnAccept===!0&&window.location.reload()}function Xe(){document.getElementById("cky-style")||!W||document.head.insertAdjacentHTML("beforeend",` <style id="cky-style">${W.css}</style>`)}function T(e=""){return(e?["ckySwitch","ckyCategoryDirect"]:["ckyCCPAOptOut"]).some(n=>{const o=document.getElementById(`${n}${e}`);return o&&o.checked})}function Ze(e,t){const o=r._shortCodes.find(d=>d.key==="cky_video_placeholder").content,{offsetWidth:c,offsetHeight:s}=e;if(c===0||s===0)return;e.insertAdjacentHTML("beforebegin",`${o}`.replace("[UNIQUEID]",t));const i=document.getElementById(t);i.style.width=`${c}px`,i.style.height=`${s}px`;const l=document.querySelector(`#${t} .video-placeholder-text-normal`);l.style.display="none";const u=et(e.src);u&&(i.classList.replace("video-placeholder-normal","video-placeholder-youtube"),i.style.backgroundImage=`linear-gradient(rgba(76,72,72,.7),rgba(76,72,72,.7)),url('https://img.youtube.com/vi/${u}/maxresdefault.jpg')`,l.classList.replace("video-placeholder-text-normal","video-placeholder-text-youtube"))}function et(e){const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return t&&Array.isArray(t)&&t[2]&&t[2].length===11?t[2]:!1}function tt(){const e=r._bannerConfig.config.videoPlaceholder.status,t=r._bannerConfig.config.videoPlaceholder.styles;if(!e||!e)return;const n=document.querySelectorAll('[data-cky-tag="placeholder-title"]');
2n.length<1||Array.from(n).forEach(o=>{o.style.display="block",o.addEventListener("click",()=>{a._ckyGetFromStore("action")&&E()});for(const c in t)t[c]&&(o.style[c]=t[c])})}function nt(){if(!r._rtl)return;["notice","detail","optout-popup","revisit-consent","video-placeholder"].forEach(function(t){f(t)&&f(t).classList.add("cky-rtl")})}function ae(e){const t=f(e);t&&t.focus()}function ot(){let e="flex-end";["detail-powered-by","optout-powered-by"].map(t=>{const n=document.querySelector(`[data-cky-tag="${t}"]`);if(n)return n.style.display="flex",n.style.justifyContent=e,n.style.alignItems="center",n})}function ct(){document.querySelector("body").addEventListener("click",e=>{const t=".cky-banner-element, .cky-banner-element *";(e.target.matches?e.target.matches(t):e.target.msMatchesSelector(t))&&E()})}function rt(){for(const e of r._categories)a._ckyGetFromStore(e.slug)!=="yes"&&ee(e)}function st(){const e=r._bannerConfig.config.optOption.toggle,t=e.states.active.styles["background-color"],n=e.states.inactive.styles["background-color"];x("=optout-option","cky-disabled",!1);const o=r._shortCodes.find(l=>l.key==="cky_optout_toggle_label"),c=r._shortCodes.find(l=>l.key==="cky_optout_option_title"),s=o.content.replace("[cky_optout_option_title]",c.content),i=a._ckyGetFromStore("consent")==="yes";it(document.getElementById("ckyCCPAOptOut"),s,{checked:i,disabled:!1,addListeners:!0},{activeColor:t,inactiveColor:n},!0)}function it(e,t,{checked:n,disabled:o,addListeners:c},{activeColor:s,inactiveColor:i},l=!1){e&&(l&&c&&y("=optout-option-title",()=>e.click()),e.checked=n,e.disabled=o,e.style.backgroundColor=n?s:i,A(e,n,t,l),c&&e.addEventListener("change",({currentTarget:u})=>{const d=u.checked;u.style.backgroundColor=d?s:i,A(e,d,t,l)}))}window.revisitCkyConsent=()=>E();window.getCkyConsent=function(){const e={activeLaw:"",categories:{},isUserActionCompleted:!1,consentID:"",languageCode:""};try{e.activeLaw=k(),r._categories.forEach(t=>{e.categories[t.slug]=a._ckyGetFromStore(t.slug)==="yes"}),e.isUserActionCompleted=a._ckyGetFromStore("action")==="yes",e.consentID=a._ckyGetFromStore("consentid")||"",e.languageCode=r._language||""}catch(t){}return e};})();
3
4
5
6function ownKeys(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _regenerator(){var _,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",n=e.toStringTag||"@@toStringTag";function o(e,t,n,o){var a,r,i,c,l,s,u,d,p,t=t&&t.prototype instanceof b?t:b,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(a=e,r=n,u=o||[],d=!1,p={p:s=0,n:0,v:_,a:f,f:f.bind(_,4),d:function(e,t){return i=e,c=0,l=_,p.n=t,m}},function(e,t,n){if(1<s)throw TypeError("Generator is already running");for(d&&1===t&&f(t,n),c=t,l=n;(h=c<2?_:l)||!d;){i||(c?c<3?(1<c&&(p.n=-1),f(c,l)):p.n=l:p.v=l);try{if(s=2,i){if(h=i[e=c?e:"next"]){if(!(h=h.call(i,l)))throw TypeError("iterator result is not an object");if(!h.done)return h;l=h.value,c<2&&(c=0)}else 1===c&&(h=i.return)&&h.call(i),c<2&&(l=TypeError("The iterator does not provide a '"+e+"' method"),c=1);i=_}else if((h=(d=p.n<0)?l:a.call(r,p))!==m)break}catch(e){i=_,c=1,l=e}finally{s=1}}return{value:h,done:d}}),!0),t;function f(e,t){for(c=e,l=t,h=0;!d&&s&&!n&&h<u.length;h++){var n,o=u[h],a=p.p,r=o[2];3<e?(n=r===t)&&(l=o[(c=o[4])?5:c=3],o[4]=o[5]=_):o[0]<=a&&((n=e<2&&a<o[1])?(c=0,p.v=t,p.n=o[1]):a<r&&(n=e<3||o[0]>t||r<t)&&(o[4]=e,o[5]=t,p.n=r,c=0))}if(n||1<e)return m;throw d=!0,t}}var m={};function b(){}function a(){}function r(){}var h=Object.getPrototypeOf,e=[][t]?h(h([][t]())):(_regeneratorDefine2(h={},t,function(){return this}),h),i=r.prototype=b.prototype=Object.create(e);function c(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,r):(e.__proto__=r,_regeneratorDefine2(e,n,"GeneratorFunction")),e.prototype=Object.create(i),e}return _regeneratorDefine2(i,"constructor",a.prototype=r),_regeneratorDefine2(r,"constructor",a),_regeneratorDefine2(r,n,a.displayName="GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,n,"Generator"),_regeneratorDefine2(i,t,function(){return this}),_regeneratorDefine2(i,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:o,m:c}})()}function _regeneratorDefine2(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(_regeneratorDefine2=function(e,t,n,o){function a(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(a("next",0),a("throw",1),a("return",2))})(e,t,n,o)}function asyncGeneratorStep(e,t,n,o,a,r,i){try{var c=e[r](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(o,a)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(t,n){var o=c.apply(e,i);function a(e){asyncGeneratorStep(o,t,n,a,r,"next",e)}function r(e){asyncGeneratorStep(o,t,n,a,r,"throw",e)}a(void 0)})}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to de
6structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,c=[],l=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=r.call(n)).done)&&(c.push(o.value),c.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _createForOfIteratorHelper(e,t){var n,o,a,r,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return a=!(o=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){a=!0,n=e},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw n}}};if(Array.isArray(e)||(i=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),r=0,{s:t=function(){},n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _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})(e)}function apbctSetEmailDecoderPopupAnimation(){var e=["apbct_dog_one","apbct_dog_tw
6o","apbct_dog_three"],t=document.createElement("div");t.classList="apbct-ee-animation-wrapper";for(var n=0;n<e.length;n++){var o=document.createElement("span");o.classList="apbct_dog "+e[n],o.innerText="@",t.append(o)}return t}function ctFillDecodedEmailHandler(){var e,t,n,o=0<arguments.length&&void 0!==arguments[0]&&arguments[0],a=!1,r="",i="",c=("undefined"!=typeof ctPublic?(this.removeEventListener("click",ctFillDecodedEmailHandler),a=this,ctPublic.encodedEmailNodesIsMixed=!1,r=ctPublic.wl_brandname,i=ctPublic.encodedEmailNodes):"undefined"!=typeof ctAdminCommon&&(r=ctAdminCommon.plugin_name,i=ctAdminCommon.encodedEmailNode),document.body.classList.add("apbct-popup-fade"),document.getElementById("apbct_popup"));c?(c.setAttribute("style","display: inherit"),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_wait_for_decoding?document.getElementById("apbct_popup_text").innerHTML=ctPublicFunctions.text__ee_wait_for_decoding:document.getElementById("apbct_popup_text").innerHTML=ctAdminCommon.text__ee_wait_for_decoding):((c=document.createElement("div")).setAttribute("class","apbct-popup apbct-email-encoder-popup"),c.setAttribute("id","apbct_popup"),(e=document.createElement("span")).classList="apbct-email-encoder-elements_center",(t=document.createElement("p")).innerText=r,t.setAttribute("class","apbct-email-encoder--popup-header"),e.append(t),(r=document.createElement("div")).setAttribute("id","apbct_popup_text"),r.setAttribute("class","apbct-email-encoder-elements_center"),r.style.color="black",(t=document.createElement("p")).id="apbct_email_ecoder__popup_text_node_first","undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_wait_for_decoding?t.innerText=ctPublicFunctions.text__ee_wait_for_decoding:t.innerText=ctAdminCommon.text__ee_wait_for_decoding,t.setAttribute("class","apbct-email-encoder-elements_center"),(n=document.createElement("p")).id="apbct_email_ecoder__popup_text_node_second","undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_decoding_process?n.innerText=ctPublicFunctions.text__ee_decoding_process:n.innerText=ctAdminCommon.text__ee_decoding_process,r.append(t),r.append(n),c.append(e),c.append(r),c.append(apbctSetEmailDecoderPopupAnimation()),document.body.append(c)),apbctAjaxEmailDecodeBulk(o,i,a)}function apbctAjaxEmailDecodeBulk(e,t,n){if(e&&n){for(var o={post_url:document.location.href,referrer:document.referrer,encodedEmails:""},a=(+ctPublic.bot_detector_enabled?o.event_token=apbctLocalStorage.get("bot_detector_event_token"):o.event_javascript_data=getJavascriptClientData(),{}),r=0;r<t.length;r++){void 0!==t[r].href&&0===t[r].href.indexOf("mailto:")&&(e.preventDefault(),ctPublic.encodedEmailNodesIsMixed=!0);var i=document.createElement("div");i.setAttribute("class","apbct-tooltip"),apbct(t[r]).append(i),a[r]=t[r].dataset.originalString}o.encodedEmails=JSON.stringify(a),"rest"===ctPublicFunctions.data__ajax_type?apbct_public_sendREST("apbct_decode_email",{data:o,method:"POST",callback:function(e){ctSetCookie("apbct_email_encoder_passed",ctPublic.emailEncoderPassKey,""),apbctEmailEncoderCallbackBulk(e,t,n)},onErrorCallback:function(e){resetEncodedNodes(),ctShowDecodeComment(e)}}):(o.action="apbct_decode_email",apbct_public_sendAJAX(o,{notJson:!1,callback:function(e){ctSetCookie("apbct_email_encoder_passed",ctPublic.emailEncoderPassKey,""),apbctEmailEncoderCallbackBulk(e,t,n)},onErrorCallback:function(e){resetEncodedNodes(),ctShowDecodeComment(e)}}))}else{var o=t.dataset.originalString,o={encodedEmails:JSON.stringify({0:o})},c=document.createElement("div");c.setAttribute("class","apbct-tooltip"),t.appendChild(c),apbct_admin_sendAJAX({action:"apbct_decode_email",encodedEmails:o.encodedEmails},{callback:function(e){apbctEmailEncoderCallbackBulk(e,t,!1)},notJson:!0})}}function apbctEmailEncoderCallbackBulk(r,i){var e,c=2<arguments.length&&void 0!==arguments[2]&&arguments[2];r.success&&!0===r.data[0].is_allowed?setTimeout(function(){var t,e,n,o,a=document.getElementById("apbct_popup");null!==a&&(o="",o=c?(r.data.forEach(function(e){e.encoded_email===c.dataset.originalString&&(t=e)}),t.decoded_email.split(/[&?]/)[0]):r.data[0].decoded_email,n=a.querySelector("#apbct_email_ec
6oder__popup_text_node_first"),(e=document.createElement("b")).setAttribute("class","apbct-email-encoder-select-whole-email"),e.innerText=o,"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_click_to_select?e.title=ctPublicFunctions.text__ee_click_to_select:e.title=ctAdminCommon.text__ee_click_to_select,n&&("undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_original_email?n.innerHTML=ctPublicFunctions.text__ee_original_email+"&nbsp;"+e.outerHTML:n.innerHTML=ctAdminCommon.text__ee_original_email+"&nbsp;"+e.outerHTML,n.setAttribute("style","flex-direction: row;")),(o=a.querySelector(".apbct-ee-animation-wrapper"))&&o.remove(),(e=a.querySelector("#apbct_email_ecoder__popup_text_node_second"))&&e.remove(),(n=document.createElement("span")).classList="apbct-email-encoder-elements_center top-margin-long",document.querySelector(".apbct-email-encoder-got-it-button")||(o=document.createElement("button"),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_got_it?o.innerText=ctPublicFunctions.text__ee_got_it:o.innerText=ctAdminCommon.text__ee_got_it,o.classList="apbct-email-encoder-got-it-button",o.addEventListener("click",function(){document.body.classList.remove("apbct-popup-fade"),a.setAttribute("style","display:none"),fillDecodedNodes(i,r),"undefined"!=typeof ctPublic&&ctPublic.encodedEmailNodesIsMixed&&c&&c.click()}),n.append(o),a.append(n)))},3e3):c?(e="unknown_error",r.hasOwnProperty("data")&&0<r.data.length&&"object"===_typeof(r.data[0])&&"string"==typeof r.data[0].comment&&(e=r.data[0].comment),r.success?(resetEncodedNodes(),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_blocked?ctShowDecodeComment(ctPublicFunctions.text__ee_blocked+": "+e):ctShowDecodeComment(ctAdminCommon.text__ee_blocked+": "+e)):(resetEncodedNodes(),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_cannot_connect?ctShowDecodeComment(ctPublicFunctions.text__ee_cannot_connect+": "+e):ctShowDecodeComment(ctAdminCommon.text__ee_cannot_connect+": "+e))):console.log("result",r)}function resetEncodedNodes(){void 0!==ctPublic.encodedEmailNodes&&ctPublic.encodedEmailNodes.forEach(function(e){e.addEventListener("click",ctFillDecodedEmailHandler)})}function ctShowDecodeComment(e){e=e||("undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_cannot_decode?ctPublicFunctions:ctAdminCommon).text__ee_cannot_decode;var t=document.getElementById("apbct_popup"),n=document.getElementById("apbct_popup_text");null!==t&&(document.body.classList.remove("apbct-popup-fade"),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_email_decoder?n.innerText=ctPublicFunctions.text__ee_email_decoder+": "+e:n.innerText=ctAdminCommon.text__ee_email_decoder+": "+e,setTimeout(function(){t.setAttribute("style","display:none")},3e3))}function fillDecodedNodes(r,i){if(0<r.length){for(var e,t=0;t<r.length;t++)if(0!==(e=(t=>{var n,e;if(i.data.forEach(function(e){e.encoded_email===r[t].dataset.originalString&&(n=e)}),!1===n.is_allowed)return{v:void 0};if(void 0===r[t].href||0!==r[t].href.indexOf("mailto:")&&0!==r[t].href.indexOf("tel:"))r[t].classList.add("no-blur"),setTimeout(function(){ctProcessDecodedDataResult(n,r[t])},2e3);else{if(0===r[t].href.indexOf("mailto:"))e="mailto:";else{if(0!==r[t].href.indexOf("tel:"))return 0;e="tel:"}var o=r[t].href.replace(e,""),a=r[t].innerHTML;r[t].innerHTML=a.replace(o,n.decoded_email),r[t].href=e+n.decoded_email,r[t].querySelectorAll("span.apbct-email-encoder").forEach(function(t){var n="";i.data.forEach(function(e){e.encoded_email===t.dataset.originalString&&(n=e.decoded_email)}),t.innerHTML=n})}r[t].removeEventListener("click",ctFillDecodedEmailHandler)})(t))&&e)return e.v}else{var n=i.data[0];r.classList.add("no-blur"),setTimeout(function(){ctProcessDecodedDataResult(n,r)},2e3),r.removeEventListener("click",ctFillDecodedEmailHandler)}}function ctProcessDecodedDataResult(e,t){t.setAttribute("title",""),t.removeAttribute("style"),ctFillDecodedEmail(t,e.decoded_email)}function ctFillDecodedEmail(e,t){e.innerHTML=e.innerHTML.replace(/.+?(<div class=["']apbct-tooltip["'].+?<\/div>)/,t+"$1")}document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll("[data-original-string]");if("undefined"!=typeof ctPublic&&(ctPublic.encodedEmailNodes=e),e.length)for(var t=0;t<e.length;++t){var n,o=e[t];o.parentNode&&"A"===o.parentNode.tagName&&null!=(n=o.parentNode.getAttribute("href"))&&n.includes("mailto:")&&o.parentNode.hasAttribute("data-original-string")||o.addEventListener("click",ctFillDecodedEmailHandler)}});var cleantalkModal=cleantalkModal||{loaded:!1,loading:!1,opened:!1,opening:!1,ignoreURLConvert:!1,load:function(e){var t;this.loaded||(this.loading=!0,t=function(e,t,n,o){cleantalkModal.loading=!1,cleantalkModal.loaded=e,document.dispatchEvent(new CustomEvent("cleantalkModalContentLoaded",{bubbles:!0}))},("function"==typeof apbct_admin_sendAJAX?apbct_admin_sendAJAX:apbct_public_sendAJAX
6)({action:e},{callback:t,notJson:!0}))},open:function(){function e(){var e,t="";for(e in this.styles)t+=e+":"+this.styles[e]+";";return t}var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"get_options_template",n={styles:{"z-index":"9999999999",position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0,0,0,0.5)",display:"flex","justify-content":"center","align-items":"center"},toString:e},o={styles:{position:"relative",padding:"30px",background:"#FFF",border:"1px solid rgba(0,0,0,0.75)","border-radius":"4px","box-shadow":"7px 7px 5px 0px rgba(50,50,50,0.75)"},toString:e},a={styles:{position:"absolute",background:"#FFF",width:"20px",height:"20px",border:"2px solid rgba(0,0,0,0.75)","border-radius":"15px",cursor:"pointer",top:"-8px",right:"-8px","box-sizing":"content-box"},toString:e},r={styles:{content:'""',display:"block",position:"absolute",background:"#000","border-radius":"1px",width:"2px",height:"16px",top:"2px",left:"9px",transform:"rotate(45deg)"},toString:e},i={styles:{content:'""',display:"block",position:"absolute",background:"#000","border-radius":"1px",width:"2px",height:"16px",top:"2px",left:"9px",transform:"rotate(-45deg)"},toString:e},c={styles:{overflow:"hidden"},toString:e},l=document.createElement("style"),c=(l.setAttribute("id","cleantalk-modal-styles"),l.innerHTML="body.cleantalk-modal-opened{"+c+"}",l.innerHTML+="#cleantalk-modal-overlay{"+n+"}",l.innerHTML+="#cleantalk-modal-close{"+a+"}",l.innerHTML+="#cleantalk-modal-close:before{"+r+"}",l.innerHTML+="#cleantalk-modal-close:after{"+i+"}",document.body.append(l),document.createElement("div")),n=(c.setAttribute("id","cleantalk-modal-overlay"),document.body.append(c),document.body.classList.add("cleantalk-modal-opened"),document.createElement("div")),a=(n.setAttribute("id","cleantalk-modal-inner"),n.setAttribute("style",o),c.append(n),document.createElement("div")),r=(a.setAttribute("id","cleantalk-modal-close"),n.append(a),document.createElement("div"));this.loaded?/.*\/inc/g.test(this.loaded)||this.ignoreURLConvert?r.innerHTML=this.sanitizeHtml(this.loaded):r.innerHTML=this.sanitizeHtml(this.loaded.replace(/(https?:\/\/[^\s]+)/g,'<a href="$1" target="_blank">$1</a>')):(r.innerHTML="Loading...",t&&this.load(t)),r.setAttribute("id","cleantalk-modal-content"),n.append(r),this.opened=!0},confirm:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",a=3<arguments.length?arguments[3]:void 0,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"Yes",i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:"No",c=(cleantalkModal.loading=!1,document.getElementById("cleantalk-modal-content"));c&&(c.innerHTML="",(t=document.createElement("div")).className="cleantalk-confirm-modal_header",t.textContent=e,c.append(t),(e=document.createElement("div")).className="cleantalk-confirm-modal_text-block",c.append(e),o&&60<o.length&&(o="..."+o.slice(o.length-60)),(t=document.createElement("div")).className="cleantalk-confirm-modal_text",t.textContent=n,e.append(t),(o=document.createElement("div")).className="cleantalk-confirm-modal_buttons-block",c.append(o),(n=document.createElement("button")).className="cleantalk_link cleantalk_link-auto",n.textContent=r,n.onclick=function(){a(!0),cleantalkModal.close()},o.append(n),(e=document.createElement("button")).className="cleantalk_link cleantalk_link-auto",e.textContent=i,e.onclick=function(){cleantalkModal.close()},o.append(e)),document.dispatchEvent(new CustomEvent("cleantalkModalContentLoaded",{bubbles:!0}))},allowedTags:["A","B","BLOCKQUOTE","BR","BUTTON","CODE","DD","DIV","DL","DT","EM","FIELDSET","H1","H2","H3","H4","H5","H6","HR","I","IMG","INPUT","LABEL","LEGEND","LI","OL","OPTGROUP","OPTION","P","PRE","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TABLE","TBODY","TD","TEXTAREA","TFOOT","TH","THEAD","TR","U","UL"],allowedAttributes:["alt","checked","class","cols","disabled","for","height","href","id","maxlength","multiple","name","placeholder","readonly","rel","required","rows","selected","size","src","style","target","title","type","value","width"],allowedUrlAttributes:["href","src"],allowedUrlSchemes:["http","https","mailto"],sanitizeHtml:function(e){if("string"!=typeof e||""===e)return"";for(var t=document.createElement("template"),n=(t.innerHTML=e,document.createTreeWalker(t.content,NodeFilter.SHOW_COMMENT)),o=[];
6n.nextNode();)o.push(n.currentNode);o.forEach(function(e){e.remove()});var a=this;return t.content.querySelectorAll("*").forEach(function(t){-1===a.allowedTags.indexOf(t.tagName)?t.remove():Array.prototype.slice.call(t.attributes).forEach(function(e){a.isAttributeAllowed(e)||t.removeAttribute(e.name)})}),t.innerHTML},isAttributeAllowed:function(e){var t;return null===e.namespaceURI&&(0===(t=e.name.toLowerCase()).indexOf("data-")||-1!==this.allowedAttributes.indexOf(t)&&(-1!==this.allowedUrlAttributes.indexOf(t)?this.isSafeUrl(e.value):"style"!==t||this.isSafeCss(e.value)))},isSafeUrl:function(e){e=String(e).replace(/[\u0000-\u0020\u007F-\u00A0]+/g,"").toLowerCase().match(/^([a-z][a-z0-9+.\-]*):/);return null===e||-1!==this.allowedUrlSchemes.indexOf(e[1])},isSafeCss:function(e){e=String(e).replace(/[\u0000-\u0020\u007F]+/g,"").toLowerCase();return!/(expression\(|javascript:|vbscript:|url\(|@import|-moz-binding|behavior:)/.test(e)},close:function(){document.body.classList.remove("cleantalk-modal-opened");var e=document.getElementById("cleantalk-modal-overlay"),t=document.getElementById("cleantalk-modal-styles");null!==e&&e.remove(),null!==t&&t.remove(),document.dispatchEvent(new CustomEvent("cleantalkModalClosed",{bubbles:!0}))}},ApbctCore=(document.addEventListener("click",function(e){!e.target||"cleantalk-modal-overlay"!==e.target.id&&"cleantalk-modal-close"!==e.target.id||cleantalkModal.close()}),document.addEventListener("cleantalkModalContentLoaded",function(e){cleantalkModal.opened&&cleantalkModal.loaded&&(document.getElementById("cleantalk-modal-content").innerHTML=cleantalkModal.sanitizeHtml(cleantalkModal.loaded))}),(()=>_createClass(function e(t){_classCallCheck(this,e),_defineProperty(this,"ajax_parameters",{}),_defineProperty(this,"restParameters",{}),_defineProperty(this,"selector",null),_defineProperty(this,"elements",[]),_defineProperty(this,"eventCallback",void 0),_defineProperty(this,"eventSelector",void 0),_defineProperty(this,"event",void 0),this.select(t)},[{key:"select",value:function(e){return e instanceof HTMLCollection?(this.selector=null,this.elements=[],this.elements=Array.prototype.slice.call(e)):"object"===_typeof(e)?(this.selector=null,this.elements=[],this.elements[0]=e):"string"==typeof e?(this.selector=e,this.elements=Array.prototype.slice.call(document.querySelectorAll(e))):this.deselect(),this}},{key:"addElement",value:function(e){"object"===_typeof(e)?this.elements.push(e):"string"==typeof e?(this.selector=e,this.elements=Array.prototype.slice.call(document.querySelectorAll(e))):this.deselect()}},{key:"push",value:function(e){this.elements.push(e)}},{key:"reduce",value:function(){this.elements=this.elements.slice(0,-1)}},{key:"deselect",value:function(){this.elements=[]}},{key:"css",value:function(e,t){if(t=t||!1,"object"===_typeof(e)){for(var n in e)if(Object.hasOwn(e,n))for(var o=n.replace(/([-_][a-z])/g,function(e){return e.toUpperCase().replace("-","").replace("_","")}),a=0;a<this.elements.length;a++)this.elements[a].style[o]=e[n];return this}var r;if("string"==typeof e)return void 0!==(r=getComputedStyle(this.elements[0])[e])&&!t&&(r=r.replace(/(\d)(em|pt|%|px){1,2}$/,"$1"),Number(r)==r)?Number(r):r}},{key:"hide",value:function(){this.prop("prev-display",this.css("display")),this.css({display:"none"})}},{key:"show",value:function(){this.css({display:this.prop("prev-display")})}},{key:"addClass",value:function(){for(var e=0;e<this.elements.length;e++)this.elements[e].classList.add(className)}},{key:"removeClass",value:function(){for(var e=0;e<this.elements.length;e++)this.elements[e].classList.remove(className)}},{key:"toggleClass",value:function(e){for(var t=0;t<this.elements.length;t++)this.elements[t].classList.toggle(e)}},{key:"ajax",value:function(e){return this.ajax_parameters=e,new ApbctAjax(e)}},{key:"rest",value:function(e){return this.restParameters=e,new ApbctRest(e)}},{key:"on",value:function(){this.event=arguments.length<=0?void 0:arguments[0],this.eventCallback=(arguments.length<=2?void 0:arguments[2])||(arguments.length<=1?void 0:arguments[1]),this.eventSelector="string"==typeof(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:null;for(var e=0;e<this.elements.length;e++)this.elements[e].addEventListener(this.event,null!==this.eventSelector?this.onChecker.bind(this):this.eventCallback)}},{key:"onChecker",value:function(e){if(e.target===document.querySelector(this.eventSelector))return e.stopPropagation(),this.eventCallback(e)}},{key:"ready",value:function(e){document.addEventListener("DOMContentLoaded",e)}},{key:"change",value:function(e){this.on("change",e)}},{key:"attr",value:function(e){for(var t=[],n=0;n<this.elements.length;n++)void 0!==this.elements[n][e]?t.push(this.elements[n][e]):t.push(this.elements[n].getAttribute(e));return 1===t.length?t[0]:t}},{key:"prop",value:function(e,t){if(void 0!==t){for(var n=0;n<this.elements.length;n++)this.elements[n][e]=t;return this}for(var o=[],a=0;a<this.elements.length;a++)o.push(this.elements[a][e]);return 1===o.length?o[0]:o}},{key:"html",value:function(e){return void 0!==e?this.prop("innerHTML",e):this.prop("innerHTML")}},{key:"val",value:function(e){return void 0!==e?this.prop("value",e):this.prop("value")}},{key:"data",value:function(e,t){return void 0!==t?this.prop("apbct-data",e,t):this.prop("apbct-data")}},{key:"is",value:function(e){var t,n=!1,o=_createForOfIteratorHelper(this.elements);try{for(o.s();!(t=o.n()).done;)var a=t.value,n=n||this.isElem(a,e)}catch(e){o.e(e)}finally{o.f()}return n}},{key:"isElem",value:function(e,t){var n=!1;return"function"==typeof t&&(n=n||t.call(this,e)),n="string"==typeof t?t.match(/^[a-z]/)&&(e=>(e=document.createElement(e).constructor,!Boolean(~[HTMLElement,HTMLUnknownElement].indexOf(e))))(t)?n||e.tagName.toLowerCase()===t.toLowerCase():t.match(/^[a-z]/)?n||Boolean(e[t]):n||(null!==this.selector?null!==document.querySelector(this.selector+t):this.isWithoutSelector(e,t)):n}},{key:"isWithoutSelector",value:function(e,t){var n,o=!1,a=_createForOfIteratorHelper(document.querySelectorAll(t));try{for(a.s();!(n=a.n()).done;)o=o||e===n.value}catch(e){a.e(e)}finally{a.f()}return o}},{key:"filter",value:function(e){this.selector=null;for(var t=this.elements.length-1;0<=t;t--)this.isElem(this.elements[t],e)||this.elements.splice(Number(t),1);return this}},{key:"parent",value:function(e){return this.select(this.elements[0].parentElement),void 0===e||this.is(e)||this.deselect(),this}},{key:"parents",value:function(e){for(this.select(this.elements[0]);null!==this.elements[this.elements.length-1].parentElement;)this.push(this.elements[this.elements.length-1].parentElement);return this.elements.splice(0,1),void 0!==e&&this.filter(e),this}},{key:"children",value:function(e){return this.select(this.elements[0].children),void 0!==e&&this.filter(e),this}},{key:"siblings",value:function(e){var t=this.elements[0];return this.parent(),this.children(e),this.elements.splice(this.elements.indexOf(t),1),this}},{key:"remove",value:function(){var e,t=_createForOfIteratorHelper(this.elements);try{for(t.s();!(e=t.n()).done;)e.value.remove()}catch(e){t.e(e)}finally{t.f()}}},{key:"after",value:function(e){var t,n=_createForOfIteratorHelper(this.elements);try{for(n.s();!(t=n.n()).done;)t.value.after(e)}catch(e){n.e(e)}finally{n.f()}}},{key:"append",value:function(e){var t,n=_createForOfIteratorHelper(this.elements);try{for(n.s();!(t=n.n()).done;
6)t.value.append(e)}catch(e){n.e(e)}finally{n.f()}}},{key:"fadeIn",value:function(o){var a,t=_createForOfIteratorHelper(this.elements);try{for(t.s();!(a=t.n()).done;)(()=>{function e(){t.style.opacity=+t.style.opacity+(new Date-n)/o,n=+new Date,+t.style.opacity<1&&(window.requestAnimationFrame&&requestAnimationFrame(e)||setTimeout(e,16))}var t=a.value,n=(t.style.opacity=0,t.style.display="block",+new Date);e()})()}catch(e){t.e(e)}finally{t.f()}}},{key:"fadeOut",value:function(o){var a,t=_createForOfIteratorHelper(this.elements);try{for(t.s();!(a=t.n()).done;)(()=>{function e(){t.style.opacity=+t.style.opacity-(new Date-n)/o,n=+new Date,0<+t.style.opacity?window.requestAnimationFrame&&requestAnimationFrame(e)||setTimeout(e,16):t.style.display="none"}var t=a.value,n=(t.style.opacity=1,+new Date);e()})()}catch(e){t.e(e)}finally{t.f()}}}]))());function selectActualNonce(){var e="";return ctPublicFunctions.hasOwnProperty("_fresh_nonce")&&"string"==typeof ctPublicFunctions._fresh_nonce&&0<ctPublicFunctions._fresh_nonce.length?ctPublicFunctions._fresh_nonce:("admin_ajax"===ctPublicFunctions.data__ajax_type&&ctPublicFunctions.hasOwnProperty("_ajax_nonce")&&"string"==typeof ctPublicFunctions._ajax_nonce&&0<ctPublicFunctions._ajax_nonce.length&&(e=ctPublicFunctions._ajax_nonce),"rest"===ctPublicFunctions.data__ajax_type&&ctPublicFunctions.hasOwnProperty("_rest_nonce")&&"string"==typeof ctPublicFunctions._rest_nonce&&0<ctPublicFunctions._rest_nonce.length?ctPublicFunctions._rest_nonce:e)}function apbct(e){return(new ApbctCore).select(e)}var ApbctXhr=(()=>{function o(e){for(var t in _classCallCheck(this,o),_defineProperty(this,"xhr",new XMLHttpRequest),_defineProperty(this,"method","POST"),_defineProperty(this,"url",""),_defineProperty(this,"async",!0),_defineProperty(this,"user",null),_defineProperty(this,"password",null),_defineProperty(this,"data",{}),_defineProperty(this,"button",null),_defineProperty(this,"spinner",null),_defineProperty(this,"progressbar",null),_defineProperty(this,"context",this),_defineProperty(this,"callback",null),_defineProperty(this,"onErrorCallback",null),_defineProperty(this,"responseType","json"),_defineProperty(this,"headers",{}),_defineProperty(this,"timeout",15e3),_defineProperty(this,"methods_to_convert_data_to_URL",["GET","HEAD"]),_defineProperty(this,"body",null),_defineProperty(this,"http_code",0),_defineProperty(this,"status_text",""),e)void 0!==this[t]&&(this[t]=e[t]);if(this.prepare(),Object.keys(this.data).length&&(this.deleteDoubleJSONEncoding(this.data),this.convertData()),!this.url)return console.log("%cXHR%c not URL provided","color: red; font-weight: bold;","color: grey; font-weight: normal;"),!1;this.xhr.open(this.method,this.url,this.async,this.user,this.password),this.setHeaders(),this.xhr.responseType=this.responseType,this.xhr.timeout=this.timeout,this.xhr.onreadystatechange=function(){this.isWpNonceError()?this.getFreshNonceAndRerunXHR(e):this.onReadyStateChange()}.bind(this),this.xhr.onload=function(){this.onLoad()}.bind(this),this.xhr.onprogress=function(e){this.onProgress(e)}.bind(this),this.xhr.onerror=function(){this.onError()}.bind(this),this.xhr.ontimeout=function(){this.onTimeout()}.bind(this),this.xhr.send(this.body)}return _createClass(o,[{key:"prepare",value:function(){this.button&&(this.button.setAttribute("disabled","disabled"),this.button.style.cursor="not-allowed"),this.spinner&&(this.spinner.style.display="inline")}},{key:"complete",value:function(){this.http_code=this.xhr.status,this.status_text=this.xhr.statusText,this.button&&(this.button.removeAttribute("disabled"),this.button.style.cursor="auto"),this.spinner&&(this.spinner.style.display="none"),this.progressbar&&this.progressbar.fadeOut("slow")}},{key:"onReadyStateChange",value:function(){null!==this.on_ready_state_change&&"function"==typeof this.on_ready_state_change&&this.on_ready_state_change()}},{key:"onProgress",value:function(e){null!==this.on_progress&&"function"==typeof this.on_progress&&this.on_progress()}},{key:"onError",value:function(){console.log("error"),this.complete(),this.error(this.http_code,this.status_text),null!==this.onErrorCallback&&"function"==typeof this.onErrorCallback&&this.onErrorCallback(this.status_text)}},{key:"onTimeout",value:function(){this.complete(),this.error(0,"timeout"),null!==this.onErrorCallback&&"function"==typeof this.onErrorCallback&&this.onErrorCallback("Timeout")}},{key:"onLoad",value:function(){if(this.complete(),"json"===this.responseType){if(null===this.xhr.response)return this.error(this.http_code,this.status_text,"No response"),
6!1;if(void 0!==this.xhr.response.error)return this.error(this.http_code,this.status_text,this.xhr.response.error),!1}null!==this.callback&&"function"==typeof this.callback&&this.callback.call(this.context,this.xhr.response,this.data)}},{key:"isWpNonceError",value:function(){var e=!1,t=!1;return 4==this.xhr.readyState&&(e="object"===_typeof(this.xhr.response)&&null!==this.xhr.response&&this.xhr.response.hasOwnProperty("data")&&this.xhr.response.data.hasOwnProperty("status")&&403===this.xhr.response.data.status,t="-1"===this.xhr.response&&403===this.xhr.status),e||t}},{key:"getFreshNonceAndRerunXHR",value:function(e){var t,n="";e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("X-WP-Nonce")&&(n=e.headers["X-WP-Nonce"]),""!==(n=e.hasOwnProperty("data")&&e.data.hasOwnProperty("_ajax_nonce")?e.data._ajax_nonce:n)&&((t={method:"POST"}).data={spbc_remote_call_action:"get_fresh_wpnonce",plugin_name:"antispam",nonce_prev:n,initial_request_params:e},t.notJson=!0,t.url=ctPublicFunctions.host_url,t.callback=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],a=!1;(a=void 0!==t[1]&&t[1].hasOwnProperty("initial_request_params")?t[1].initial_request_params:a)&&o.hasOwnProperty("wpnonce")&&(ctPublicFunctions._fresh_nonce=o.wpnonce,"rest"===ctPublicFunctions.data__ajax_type?(new ApbctCore).rest(a):(new ApbctCore).ajax(a))},new o(t))}},{key:"error",value:function(e,t,n){var o="";"timeout"===t?o+="Server response timeout":200===e?"parsererror"===t?o+="Unexpected response from server. See console for details.":(o+="Unexpected error. Status: "+t+".",void 0!==n&&(o+=" Additional error info: "+n)):o+=500===e?"Internal server error.":"Unexpected response code:"+e,this.errorOutput(o),null!==this.onErrorCallback&&"function"==typeof this.onErrorCallback&&this.onErrorCallback(this.status_text)}},{key:"errorOutput",value:function(e){console.log("%c ctXHR error: %c"+e,"color: red;","color: grey;")}},{key:"setHeaders",value:function(){for(var e in this.headers)void 0!==this.headers[e]&&this.xhr.setRequestHeader(e,this.headers[e])}},{key:"convertData",value:function(){return~this.methods_to_convert_data_to_URL.indexOf(this.method)?this.convertDataToURL():this.convertDataToBody()}},{key:"convertDataToURL",value:function(){var e=new URLSearchParams(this.data).toString(),t=this.url.match(/^(https?:\/{2})?[a-z0-9.]+\?/)?"&":"?";return this.url+=t+e,this.url}},{key:"convertDataToBody",value:function(){for(var e in this.body=new FormData,this.data)Object.hasOwn(this.data,e)&&this.body.append(e,"object"===_typeof(this.data[e])?JSON.stringify(this.data[e]):this.data[e]);return this.body}},{key:"deleteDoubleJSONEncoding",value:function(e){if("object"===_typeof(e))for(var t in e){var n;Object.hasOwn(e,t)&&("object"===_typeof(e[t])&&(e[t]=this.deleteDoubleJSONEncoding(e[t])),"string"==typeof e[t])&&null!==e[t].match(/^[\[{].*?[\]}]$/)&&"object"===_typeof(n=JSON.parse(e[t]))&&(e[t]=n)}return e}}])})(),ApbctAjax=(()=>{function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _classCallCheck(this,o),(t=t[0]).data._ajax_nonce=selectActualNonce(),_callSuper(this,o,[t])}return _inherits(o,ApbctXhr),_createClass(o)})(),ApbctRest=(()=>{function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_classCallCheck(this,a);var t=t[0],o=selectActualNonce();return t.url=a.default_route+t.route,t.headers={"X-WP-Nonce":o},_defineProperty(o=_callSuper(this,a,[t]),"route",""),o}return _inherits(a,ApbctXhr),_createClass(a)})(),ApbctFetchProxyCallbacks=(_defineProperty(ApbctRest,"default_route",ctPublicFunctions._rest_url+"cleantalk-antispam/v1/"),Object.prototype.hasOwn||Object.defineProperty(Object.prototype,"hasOwn",{value:function(e){return Object.prototype.hasOwnProperty.call(this,e)},enumerable:!1,configurable:!0,writable:!0}),{mailchimpBlock:function(e){try{for(var t=localStorage.length-1;0<=t;t--){var n=localStorage.key(t);n&&-1!==n.indexOf("mcforms")&&localStorage.removeItem(n)}}catch(e){console.warn("Error clearing localStorage by mcforms mask:",e)}}}),ApbctFetchProxyConfig={mailchimp:{selector:".mcforms-wrapper",urlPattern:"mcf-integrations-mcmktg.mlchmpcompprduse2.iks2.a.intuit.com/gateway/receive",externalForm:!0,action:"cleantalk_force_mailchimp_shadowroot_check",callbackAllow:!1,callbackBlock:ApbctFetchProxyCallbacks.mailchimpBlock},otterform:{selector:".otter-form__container",urlPattern:"otter/v1/form/frontend",externalForm:!1,action:"cleantalk_force_otterform_check",callbackAllow:!1,callbackBlock:!1},elfsight:{selector:'[class*="elfsight-app"]',urlPattern:"data.elfsight.com/public/resources/form-submissions",externalForm:!0,action:"cleantalk_force_elfsight_check",payloadKey:"elfsight_payload",callbackAllow:!1,callbackBlock:!1}},ApbctFetchProxyProtection=(()=>{return _createClass(function e(){_classCallCheck(this,e),this.config=ApbctFetchProxyConfig},[{key:"findMatchingConfig",value:function(e){for(var t="string"==typeof e?e:null!=e&&"string"==typeof e.href?e.href:"",n=0,o=Object.entries(this.config);n<o.length;
6n++){var a=_slicedToArray(o[n],2),r=a[0],a=a[1];if((!a.externalForm||+ctPublic.settings__forms__check_external)&&0<document.querySelectorAll(a.selector).length&&t&&t.includes(a.urlPattern))return{formKey:r,config:a}}return null}},{key:"checkRequest",value:(o=_asyncToGenerator(_regenerator().m(function e(t,i,c){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(t){var n={action:i.action};try{var e=JSON.parse(c);if(i.payloadKey)n[i.payloadKey]=c;else for(var o=0,a=Object.entries(e);o<a.length;o++){var r=_slicedToArray(a[o],2);n[r[0]]=r[1]}}catch(e){n.raw_body=c}+ctPublic.bot_detector_enabled?(e=(new ApbctHandler).toolGetEventToken())&&(n.ct_bot_detector_event_token=e):n.ct_no_cookie_hidden_field=getNoCookieData(),apbct_public_sendAJAX(n,{async:!0,callback:function(e){void 0===e.apbct&&void 0===e.data||void 0!==e.apbct&&!+e.apbct.blocked?("function"==typeof i.callbackAllow&&i.callbackAllow(e),t(!1)):void 0!==e.apbct&&+e.apbct.blocked||void 0!==e.data&&void 0!==e.data.message?((new ApbctShowForbidden).parseBlockMessage(e),"function"==typeof i.callbackBlock&&i.callbackBlock(e),t(!0)):t(!1)},onErrorCallback:function(e){console.log("APBCT FetchProxy check error:",e),t(!1)}})}))},e)})),function(e,t,n){return o.apply(this,arguments)})},{key:"extractBodyText",value:function(e){var e=e[1]&&e[1].body,t="";if(e instanceof FormData){var n,o={},a=_createForOfIteratorHelper(e.entries());try{for(a.s();!(n=a.n()).done;){var r=_slicedToArray(n.value,2);o[r[0]]=r[1]}}catch(e){a.e(e)}finally{a.f()}t=JSON.stringify(o)}else"string"==typeof e&&(t=e);return t}},{key:"processFetch",value:(t=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(n="string"==typeof t[0]?t[0]:(null==(n=t[0])?void 0:n.url)||"",o=this.findMatchingConfig(n)){e.n=1;break}return e.a(2,null);case 1:return a=this.extractBodyText(t),e.n=2,this.checkRequest(o.formKey,o.config,a);case 2:return e.a(2,e.v)}},e,this)})),function(e){return t.apply(this,arguments)})}]);var t,o})();function initParams(e){var t=new Date,n=navigator.webdriver,o="undefined"!=typeof ApbctGatheringData&&"function"==typeof ApbctGatheringData.prototype.getScreenInfo?(new ApbctGatheringData).getScreenInfo():"",a=[["ct_ps_timestamp",Math.floor((new Date).getTime()/1e3)],["ct_fkp_timestamp","0"],["ct_pointer_data","0"],["ct_timezone",t.getTimezoneOffset()/60*-1],["ct_screen_info",o],["apbct_headless",n]];if(apbctLocalStorage.set("ct_ps_timestamp",Math.floor((new Date).getTime()/1e3)),apbctLocalStorage.set("ct_fkp_timestamp","0"),apbctLocalStorage.set("ct_pointer_data","0"),apbctLocalStorage.set("ct_timezone",t.getTimezoneOffset()/60*-1),apbctLocalStorage.set("ct_screen_info",o),apbctLocalStorage.set("apbct_headless",n),"native"!==ctPublic.data__cookies_type)a.push(["apbct_visible_fields","0"]);else{var r=document.cookie.split(";");if(0!==r.length)for(var i=0;i<r.length;i++){var c=r[i].trim().split("=")[0];0===c.indexOf("apbct_visible_fields_")&&ctDeleteCookie(c)}}+ctPublic.pixel__setting&&3!=+ctPublic.pixel__setting&&("function"==typeof ctIsDrawPixel&&ctIsDrawPixel()?"function"==typeof ctGetPixelUrl&&ctGetPixelUrl():a.push(["apbct_pixel_url",ctPublic.pixel__url])),+ctPublic.data__email_check_before_post&&(a.push(["ct_checked_emails","0"]),"function"==typeof apbct)&&apbct('input[type = "email"], #email').on("blur",checkEmail),+ctPublic.data__email_check_exist_post&&(a.push(["ct_checked_emails_exist","0"]),"function"==typeof apbct)&&(apbct('.comment-form input[name = "email"], input#email').on("blur",checkEmailExist),apbct('.frm-fluent-form input[name = "email"], input#email').on("blur",checkEmailExist),apbct('#registerform input[name = "user_email"]').on("blur",checkEmailExist),apbct('form.wc-block-checkout__form input[type = "email"]').on("blur",checkEmailExist),apbct('form.checkout input[type = "email"]').on("blur",checkEmailExist),apbct('form.wpcf7-form input[type = "email"]').on("blur",ctDebounceFuncExec(checkEmailExist,300)),apbct('form.wpforms-form input[type = "email"]').on("blur",checkEmailExist),apbct('form[id^="gform_"] 
6input[type = "email"]').on("blur",checkEmailExist),apbctIntegrateDynamicEmailCheck({formSelector:".nf-form-content",emailSelector:'input[type="email"], input[type="email"].ninja-forms-field',handler:checkEmailExist,debounce:300})),apbctLocalStorage.isSet("ct_checkjs")?a.push(["ct_checkjs",apbctLocalStorage.get("ct_checkjs")]):a.push(["ct_checkjs",0]),e&&a.push(["ct_gathering_loaded",e]),ctSetCookie(a)}function ctSetCookie(e,t){var n,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",a=["ct_sfw_pass_key","ct_sfw_passed","apbct_antibot","apbct_anticrawler_passed","apbct_bot_detector_exist","apbct_antiflood_passed","apbct_email_encoder_passed"],r=!1;"string"==typeof e&&(r="ct_pointer_data"===e,"string"!=typeof t&&"number"!=typeof t||(e=[[e,t,o]])),"none"===ctPublicFunctions.data__cookies_type?(n=[],e.forEach(function(e){-1!==a.indexOf(e[0])?n.push(e):apbctLocalStorage.set(e[0],e[1])}),0<n.length&&ctSetAlternativeCookie(n),ctPublic.force_alt_cookies&&!r?ctSetAlternativeCookie(e,{forceAltCookies:!0}):ctNoCookieAttachHiddenFieldsToForms()):"native"===ctPublicFunctions.data__cookies_type?(ctPublic.force_alt_cookies&&!r&&ctSetAlternativeCookie(e,{forceAltCookies:!0}),e.forEach(function(e){var t=void 0!==e[2]?"expires="+o+"; ":"",n="https:"===location.protocol?"; secure":"";document.cookie=ctPublicFunctions.cookiePrefix+e[0]+"="+encodeURIComponent(e[1])+"; "+t+"path=/; samesite=lax"+n})):"alternative"!==ctPublicFunctions.data__cookies_type||r||ctSetAlternativeCookie(e)}function ctSetAlternativeCookie(e,t){if("function"==typeof getJavascriptClientData?Array.isArray(e)&&(e=getJavascriptClientData(e)):+ctPublic.bot_detector_enabled||console.log("APBCT ERROR: getJavascriptClientData() is not loaded"),"string"==typeof(e=Array.isArray(e)&&e[0]&&"apbct_bot_detector_exist"===e[0][0]?{apbct_bot_detector_exist:e[0][1]}:e))try{e=JSON.parse(e)}catch(e){return void console.log("APBCT ERROR: JSON parse error:"+e)}var n=t&&t.callback||null,o=t&&t.onErrorCallback||null;t&&t.forceAltCookies&&(e.apbct_force_alt_cookies=!0),"rest"===ctPublicFunctions.data__ajax_type?("string"==typeof e.apbct_pixel_url&&-1!==e.apbct_pixel_url.indexOf("%3A")&&(e.apbct_pixel_url=decodeURIComponent(e.apbct_pixel_url)),apbct_public_sendREST("alt_sessions",{method:"POST",data:{cookies:e},callback:n,onErrorCallback:o})):"admin_ajax"===ctPublicFunctions.data__ajax_type&&apbct_public_sendAJAX({action:"apbct_alt_session__save__AJAX",cookies:e},{notJson:1,callback:n,onErrorCallback:o,beforeSend:function(e){e.setRequestHeader("X-Robots-Tag","noindex, nofollow")}})}function ctGetCookie(e){e=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0}function ctDeleteCookie(e){var t;"none"!==ctPublicFunctions.data__cookies_type&&("native"===ctPublicFunctions.data__cookies_type?(t="https:"===location.protocol?"; secure":"",document.cookie=e+'=""; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax'+t):ctPublicFunctions.data__cookies_type)}function apbct_public_sendAJAX(e,t,n){var o=[],n=(o.callback=t.callback||null,o.onErrorCallback=t.onErrorCallback||null,o.callback_context=t.callback_context||null,o.callback_params=t.callback_params||null,o.async=t.async||!0,o.notJson=t.notJson||null,o.responseType=t.notJson?"text":"json",o.timeout=t.timeout||15e3,o.obj=n||null,o.button=t.button||null,o.spinner=t.spinner||null,o.progressbar=t.progressbar||null,o.silent=t.silent||null,o.no_nonce=t.no_nonce||null,o.data=e,o.url=ctPublicFunctions._ajax_url,selectActualNonce());"string"==typeof e?(o.no_nonce||(o.data=o.data+"&_ajax_nonce="+n),o.data=o.data+"&no_cache="+Math.random()):(o.no_nonce||(o.data._ajax_nonce=n),o.data.no_cache=Math.random()),(new ApbctCore).ajax(o)}function apbct_public_sendREST(e,t){var n=[];n.route=e,n.callback=t.callback||null,n.onErrorCallback=t.onErrorCallback||null,n.data=t.data||[],n.method=t.method||"POST",(new ApbctCore).rest(n)}function apbct_attach_event_handler(e,t,n){"function"==typeof window.addEventListener?e.addEventListener(t,n):e.attachEvent(t,n)}function apbct_remove_event_handler(e,t,n){"function"==typeof window.removeEventListener?e.removeEventListener(t,n):e.detachEvent(t,n)}function removeDoubleJsonEncoding(e){if("object"===_typeof(e))for(var t in e){var n;"object"===_typeof(e[t])&&(e[t]=removeDoubleJsonEncoding(e[t])),"string"==typeof e[t]&&null!==e[t].match(/^[\[{].*?[\]}]$/)&&"object"===_typeof(n=JSON.parse(e[t]))&&(e[t]=n)}return e}function ctGetPageForms(){var e=document.forms;return e||!1}function apbct_js_keys__set_input_value(e,t,n,o){if(0<document.querySelectorAll("[name^=ct_checkjs]").length)for(var a=document.querySelectorAll("[name^=ct_checkjs]"),r=0;r<a.length;r++)a[r].value=e.js_key}var apbctLocalStorage={get:function(t,n){void 0===n&&(n="value");t=localStorage.getItem(t);if(null!==t)try{var o=JSON.parse(t);if(!o.hasOwnProperty(n))return o;try{var e=JSON.parse(o[n]);return null!==e&&"object"===_typeof(e)?o[n].toString():e}catch(e){return o[n].toString()}}catch(e){return t}return!1},set:function(e,t){var n;!(2<arguments.length&&void 0!==arguments[2])||arguments[2]?(n={value:JSON.stringify(t),timestamp:Math.floor((new Date).getTime()/1e3)},localStorage.setItem(e,JSON.stringify(n))):localStorage.setItem(e,t)},isAlive:function(e,t){return void 0===t&&(t=86400),this.get(e,"timestamp")+t>Math.floor((new Date).getTime()/1e3)},isSet:function(e){return null!==localStorage.getItem(e)},delete:function(e){localStorage.removeItem(e)},getCleanTalkData:function(){for(var e={},t=0;t<localStorage.length;t++){var n=localStorage.key(t);-1===n.indexOf("ct_")&&-1===n.indexOf("apbct_")||(e[n.toString()]=apbctLocalStorage.get(n))}return e}},apbctSessionStorage={get:function(t,e){void 0===e&&(e="value");t=sessionStorage.getItem(t);if(null!==t)try{var n=JSON.parse(t);return n.hasOwnProperty(e)?JSON.parse(n[e]):n}catch(e){return t}return!1},set:function(e,t){var n;!(2<arguments.length&&void 0!==arguments[2])||arguments[2]?(n={value:JSON.stringify(t),timestamp:Math.floor((new Date).getTime()/1e3)},sessionStorage.setItem(e,JSON.stringify(n))):sessionStorage.setItem(e,t)},isSet:function(e){return null!==sessionStorage.getItem(e)},delete:function(e){sessionStorage.removeItem(e)},getCleanTalkData:function(){for(var e={},t=0;t<sessionStorage.length;t++){var n=sessionStorage.key(t);-1===n.indexOf("ct_")&&-1===n.indexOf("apbct_")||(e[n.toString()]=apbctSessionStorage.get(n))}return e}};function getNoCookieData(){var e=apbctLocalStorage.getCleanTalkData(),t=apbctSessionStorage.getCleanTalkData(),e=_objectSpread(_objectSpread({},e),t);return"function"==typeof apbctGetBrowserStatePair&&(t=apbctGetBrowserStatePair())&&(e[t.key]=t.value),e=JSON.stringify(e),"_ct_no_co
6okie_data_"+btoa(unescape(encodeURIComponent(e)))}function getCleanTalkStorageDataArray(){var e,t=apbctLocalStorage.getCleanTalkData(),n=apbctSessionStorage.getCleanTalkData(),o={typo:[]},a=(document.ctTypoData&&document.ctTypoData.data&&(o={typo:document.ctTypoData.data}),{collecting_user_activity_data:[]}),r=(document.ctCollectingUserActivityData&&(a={collecting_user_activity_data:JSON.parse(JSON.stringify(document.ctCollectingUserActivityData))}),{});return"function"==typeof apbctGetBrowserStatePair&&(e=apbctGetBrowserStatePair())&&(r[e.key]=e.value),_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},t),n),o),a),r)}function ctDebounceFuncExec(a,r){var i;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=this;clearTimeout(i),i=setTimeout(function(){a.apply(o,t)},r)}}function ctNoCookieAttachHiddenFieldsToForms(){if("none"===ctPublic.data__cookies_type){var e=ctGetPageForms();if(e)for(var t=0;t<e.length;t++)if(!(new ApbctHandler).checkHiddenFieldsExclusions(document.forms[t],"no_cookie")&&(null===document.forms[t].getAttribute("method")||"post"===document.forms[t].getAttribute("method").toLowerCase())){for(var n=e[t].querySelectorAll(".ct_no_cookie_hidden_field"),o=0;o<n.length;o++)n[o].outerHTML="";document.forms[t].append((new ApbctAttachData).constructNoCookieHiddenField())}}}var ApbctEventTokenTransport=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"attachEventTokenToMultipageGravityForms",value:function(){document.addEventListener("gform_page_loaded",function(){void 0!==ctPublic.force_alt_cookies&&("undefined"===ctPublic.force_alt_cookies||ctPublic.force_alt_cookies)||"function"!=typeof setEventTokenField||"function"!=typeof botDetectorLocalStorage||setEventTokenField(botDetectorLocalStorage.get("bot_detector_event_token"))})}},{key:"attachEventTokenToWoocommerceGetRequestAddToCart",value:function(){ctPublic.wc_ajax_add_to_cart||document.querySelectorAll("a.add_to_cart_button:not(.product_type_variable):not(.wc-interactive)").forEach(function(o){o.addEventListener("click",function(e){var t=o.getAttribute("href"),n=apbctLocalStorage.get("bot_detector_event_token");n&&(-1===t.indexOf("?")?t+="?":t+="&",o.setAttribute("href",t+="ct_bot_detector_event_token="+n))})})}},{key:"restartBotDetectorEventTokenAttach",value:function(){var e,t=0<document.getElementsByClassName("latepoint-form").length||0<document.getElementsByClassName("mec-booking-form-container").length||null!==document.getElementById("login-form-popup");try{t&&(e=apbctLocalStorage.get("bot_detector_event_token"),"function"==typeof setEventTokenField)&&void 0!==e&&64===e.length&&setEventTokenField(e)}catch(e){console.log(e.toString())}}}]))(),ApbctAttachData=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"attachHiddenFieldsToForms",value:function(e){void 0!==ctPublic.force_alt_cookies&&("undefined"===ctPublic.force_alt_cookies||ctPublic.force_alt_cookies)||+ctPublic.bot_detector_enabled&&!e||(ctNoCookieAttachHiddenFieldsToForms(),document.addEventListener("gform_page_loaded",ctNoCookieAttachHiddenFieldsToForms))}},{key:"attachVisibleFieldsToForm",value:function(e,t){var n=document.createElement("input"),t=(n.setAttribute("type","hidden"),n.setAttribute("id","apbct_visible_fields_"+t),n.setAttribute("name","apbct_visible_fields"),{});t[0]=this.collectVisibleFields(e),n.value=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),e.append(n)}},{key:"attachVisibleFieldsDuringSubmit",value:function(e,t){"native"!==ctPublic.data__cookies_type&&void 0!==e.target.ctFormIndex&&this.setVisibleFieldsCookie(this.collectVisibleFields(t),e.target.ctFormIndex)}},{key:"constructNoCookieHiddenField",value:function(e){var t="hidden",e=("submit"===e&&(t="submit"),""),n=getCleanTalkStorageDataArray(),n=JSON.stringify(n);return n="_ct_no_cookie_data_"+btoa(unescape(encodeURIComponent(n))),(e=document.createElement("input")).setAttribute("name","ct_no_cookie_hidden_field"),e.setAttribute("value",n),e.setAttribute("type",t),e.classList.add("apbct_special_field"),e.classList.add("ct_no_co
6okie_hidden_field"),e}},{key:"attachNoCookieDuringSubmit",value:function(e){"none"===ctPublic.data__cookies_type&&e.target&&e.target.action&&-1!==e.target.action.toString().indexOf("mailpoet_subscription_form")&&(window.XMLHttpRequest.prototype.send=function(e){var t,n;+ctPublic.bot_detector_enabled?(t=(new ApbctHandler).toolGetEventToken())&&(n="data%5Bct_no_cookie_hidden_field%5D="+getNoCookieData()+"&",defaultSend.call(this,n+("data%5Bct_bot_detector_event_token%5D="+t+"&")+e)):(n="data%5Bct_no_cookie_hidden_field%5D="+getNoCookieData()+"&",defaultSend.call(this,n+e)),setTimeout(function(){window.XMLHttpRequest.prototype.send=defaultSend},0)})}},{key:"setVisibleFieldsCookie",value:function(e,t){var n="object"===_typeof(e)&&null!==e?e:{};if("native"===ctPublic.data__cookies_type)for(var o in n){if(10<o)return;ctSetCookie("apbct_visible_fields_"+(void 0!==t?t:o),JSON.stringify(n[o]))}else ctSetCookie("apbct_visible_fields",JSON.stringify(n))}},{key:"collectVisibleFields",value:function(e){var t,n=[],o="",a=0,r="",i=0,c=[];for(t in e.elements)isNaN(+t)||(n[t]=e.elements[t]);return(n=n.filter(function(e){return-1===c.indexOf(e.getAttribute("name"))&&(-1===["radio","checkbox"].indexOf(e.getAttribute("type"))||(c.push(e.getAttribute("name")),!1))})).map(function(e){var t;return"submit"===e.getAttribute("type")||null===e.getAttribute("name")||"ct_checkjs"===e.getAttribute("name")?{elem:e,ski
6p:!0}:"hidden"===e.getAttribute("type")?{elem:e,isVisible:!1,isWpEditor:e.classList.contains("wp-editor-area")}:{elem:e,isVisible:!("none"===(t=getComputedStyle(e)).display||"hidden"===t.visibility||"0"===t.opacity),isWpEditor:e.classList.contains("wp-editor-area")}}).forEach(function(e){e.skip||(e.isVisible||e.isWpEditor?(o+=" "+e.elem.getAttribute("name"),a++):(r+=" "+e.elem.getAttribute("name"),i++))}),r=r.trim(),{visible_fields:o=o.trim(),visible_fields_count:a,invisible_fields:r,invisible_fields_count:i}}}]))(),ApbctHandler=(()=>{function p(){_classCallCheck(this,p)}return _createClass(p,[{key:"excludeForm",value:function(e){return!!this.checkHiddenFieldsExclusions(e,"visible_fields")||!!(e.querySelector('input[name="wspsc_add_cart_submit"]')||e.querySelector('input[name="option"][value="com_vikrentcar"]')||e.querySelector('input[name="option"][value="com_vikbooking"]'))||void 0!==e.elements.apbct_visible_fields&&0<e.elements.apbct_visible_fields.length}},{key:"checkHiddenFieldsExclusions",value:function(e,t){var n="string"==typeof e.action?e.action:"";return!!Boolean(e.querySelector("fieldset.asl_sett_scroll"))||!!e.classList.contains("swpf-instant-filtering")||-1!==n.indexOf("secure.payu.com")||-1!==n.indexOf("hsforms")||-1!==n.indexOf("secureinternetbank.com")||"string"==typeof t&&-1!==["visible_fields","no_cookie"].indexOf(t)&&1===this.getHiddenFieldExclusionsType(e)[t]}},{key:"getHiddenFieldExclusionsType",value:function(e){var t={no_cookie:0,visible_fields:0},n=((0==+ctPublic.data__visible_fields_required||"get"===e.method.toString().toLowerCase()&&0===e.querySelectorAll(".nf-form-content").length&&"twt_cc_signup"!==e.id||e.classList.contains("slp_search_form")||e.parentElement.classList.contains("mec-booking")||-1!==e.action.toString().indexOf("activehosted.com")||e.id&&"caspioform"===e.id||e.classList&&e.classList.contains("tinkoffPayRow")||e.classList&&e.classList.contains("give-form")||e.id&&"ult-forgot-password-form"===e.id||e.id&&-1!==e.id.toString().indexOf("calculatedfields")||e.id&&-1!==e.id.toString().indexOf("sac-form")||e.id&&-1!==e.id.toString().indexOf("cp_tslotsbooking_pform")||e.name&&-1!==e.name.toString().indexOf("cp_tslotsbooking_pform")||"https://epayment.epymtservice.com/epay.jhtml"===e.action.toString()||e.name&&-1!==e.name.toString().indexOf("tribe-bar-form")||e.id&&"ihf-login-form"===e.id||e.id&&"subscriberForm"===e.id&&-1!==e.action.toString().indexOf("actionType=update")||e.id&&"ihf-main-search-form"===e.id||e.id&&"frmCalc"===e.id||-1!==e.action.toString().indexOf("property-organizer-delete-saved-search-submit")||null!==e.querySelector('a[name="login"]'))&&(t.visible_fields=1),e.parentNode);return(n&&n.classList.contains("proinput")||"options"===e.name&&e.classList.contains("asp-fss-flex"))&&(t.no_cookie=1),e&&e.classList.contains("woocommerce-form-login")&&(t.visible_fields=1,t.no_cookie=1),(e.id&&"loginform"===e.id||-1!==e.action.toString().indexOf("wp-login.php"))&&(t.visible_fields=1,t.no_cookie=1),t}},{key:"prevCallExclude",value:function(e){return!!e.classList.contains("hb-booking-search-form")}},{key:"catchMain",value:function(t,e){t.onsubmit_prev=t.onsubmit,t.ctFormIndex=e;var n=this;t.onsubmit=function(e){(new ApbctAttachData).attachVisibleFieldsDuringSubmit(e,t),e.target.onsubmit_prev instanceof Function&&!n.prevCallExclude(e.target)&&(void 0!==e.target.classList&&e.target.classList.contains("brave_form_form")&&e.preventDefault(),setTimeout(function(){e.target.onsubmit_prev.call(e.target,e)},0))}}},{key:"cronFormsHandler",value:function(){setTimeout(function(){setInterval(function(){+ctPublic.bot_detector_enabled||"undefined"==typeof ApbctGatheringData||(new ApbctGatheringData).restartFieldsListening(),(new ApbctEventTokenTransport).restartBotDetectorEventTokenAttach()},2e3)},0<arguments.length&&void 0!==arguments[0]?arguments[0]:2e3)}},{key:"detectForcedAltCookiesForms",value:function(){var e=0<document.querySelectorAll('iframe[name="jetpack_remote_comment"]').length;ctPublic.force_alt_cookies=e,setTimeout(function(){var e;ctPublic.force_alt_cookies||(e=0<document.querySelectorAll('main[id^="bookingpress_booking_form"]').length||0<document.querySelectorAll(".bpa-frontend-main-container").length,ctPublic.force_alt_cookies=e)},1e3)}},{key:"catchXmlHttpRequest",value:function(){var r,d;(null!==document.querySelector("div.wfu_container")||null!==document.querySelector("#newAppointmentForm")||null!==document.querySelector(".booked-calendar-shortcode-wrap")||null!==document.querySelector(".et_pb_newsletter_form")||null!==document.querySelector("form.mailpoet_form")||document.body.classList.contains("single-product")&&"undefined"!=typeof cwginstock||null!==document.querySelector("div.fluent_booking_wrap")||null!==document.querySelector("div.fcal_
6calendar_slot_wrap ")||0<document.querySelectorAll('script[id*="smart-forms"]').length||null!==document.querySelector('[id^="amelia-app-booking"], .amelia-frontend, .amelia-v2-booking'))&&(r=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(e,t){try{this._apbctAjaxCallUrl="string"==typeof t?t:""}catch(e){}for(var n=arguments.length,o=new Array(2<n?n-2:0),a=2;a<n;a++)o[a-2]=arguments[a];return r.call.apply(r,[this,e,t].concat(o))},d=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.send=function(e){var t,n=e&&"string"==typeof e&&(-1!==e.indexOf("action=wfu_ajax_action_ask_server")||-1!==e.indexOf("action=booked_add_appt")||-1!==e.indexOf("action=cwginstock_product_subscribe")||-1!==e.indexOf("action=et_pb_submit_subscribe_form")||-1!==e.indexOf("rednao_smart_forms_save_form_values")||-1!==e.indexOf("action=mailpoet")&&-1!==e.indexOf("method=subscribe")),o=e&&"string"==typeof e&&-1!==e.indexOf("action=et_pb_submit_subscribe_form"),a=e&&"string"==typeof e&&-1!==e.indexOf("rednao_smart_forms_save_form_values"),r=e&&"object"===_typeof(e)&&e instanceof FormData&&e.has("action")&&"fluent_cal_schedule_meeting"===e.get("action"),i=e&&"string"==typeof e&&"string"==typeof this._apbctAjaxCallUrl&&-1!==this._apbctAjaxCallUrl.indexOf("action=wpamelia_api");if(n&&(n="",a=(o=o||a)?"ct_no_cookie_hidden_field":"data%5Bct_no_cookie_hidden_field%5D",t=o?"ct_bot_detector_event_token":"data%5Bct_bot_detector_event_token%5D",o=o?"apbct_browser_state":"data%5Bapbct_browser_state%5D",+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?(c=(new p).toolGetEventToken())&&-1===e.indexOf("ct_bot_detector_event_token=")&&-1===e.indexOf("data%5Bct_bot_detector_event_token%5D=")&&(n+="&"+t+"="+c):(t=getNoCookieData(),-1===e.indexOf("ct_no_cookie_hidden_field=")&&-1===e.indexOf("data%5Bct_no_cookie_hidden_field%5D=")&&(n+="&"+a+"="+t)),(c=apbctGetBrowserStatePair())&&-1===e.indexOf("apbct_browser_state")&&(n+="&"+o+"="+encodeURIComponent(c.value)),e+=n),r&&(+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?(a=(new p).toolGetEventToken())&&e.append("ct_bot_detector_event_token",a):(t=getNoCookieData(),e.append("ct_no_cookie_hidden_field",t)),o=apbctGetBrowserStatePair())&&!e.has(o.key)&&e.append(o.key,o.value),i){if(+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")){var c=(new p).toolGetEventToken();if(c)try{var l=JSON.parse(e);l&&"object"===_typeof(l)&&!Object.prototype.hasOwnProperty.call(l,"ct_bot_detector_event_token")&&(l.ct_bot_detector_event_token=c,e=JSON.stringify(l))}catch(e){}}else{n=getNoCookieData();try{var s=JSON.parse(e);s&&"object"===_typeof(s)&&!Object.prototype.hasOwnProperty.call(s,"ct_no_cookie_hidden_field")&&(s.ct_no_cookie_hidden_field=n,e=JSON.stringify(s))}catch(e){}}r=apbctGetBrowserStatePair();if(r)try{var u=JSON.parse(e);u&&"object"===_typeof(u)&&!Object.prototype.hasOwnProperty.call(u,r.key)&&(u[r.key]=r.value,e=JSON.stringify(u))}catch(e){}}return d.apply(this,[e])})}},{key:"catchIframeFetchRequest",value:function(){setTimeout(function(){try{var i,e=Array.from(document.querySelectorAll("iframe")).find(function(e){return null==(e=e.src)?void 0:e.includes("givewp-route")});if(e){try{if(!(i=e.contentWindow)||!i.fetch)return}catch(e){return}var c=i.fetch;i.fetch=_asyncToGenerator(_regenerator().m(function e(){var t,n,o,a,r=arguments;return _regenerator().w(function(e){for(;;)if(0===e.n){for(t=r.length,n=new Array(t),o=0;o<t;o++)n[o]=r[o];try{n&&n[1]&&n[1].body&&(n[1].body instanceof FormData||"function"==typeof n[1].body.append)&&(+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?n[1].body.append("ct_bot_detector_event_token",apbctLocalStorage.get("bot_detector_event_token")):n[1].body.append("ct_no_cookie_hidden_field",getNoCookieData()),a=apbctGetBrowserStatePair())&&n[1].body.append(a.key,a.value)}catch(e){}return e.a(2,c.apply(i,n))}},e)}))}}catch(e){}},1e3)}},{key:"catchFetchRequest",value:function(){function f(e){var t={key:null,value:null};return e?(t.key="ct_bot_detector_event_token",t.value=apbctLocalStorage.get("bot_detector_event_token")):(t.key="ct_no_co
6okie_hidden_field",t.value=getNoCookieData()),!(!t.key||!t.value)&&t}function _(e){for(var t=0,n=[1<arguments.length&&void 0!==arguments[1]&&arguments[1],apbctGetBrowserStatePair()];t<n.length;t++)e=o(e,n[t]);return e}function o(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(t)if(e instanceof FormData||"function"==typeof e.append)e.append(t.key,t.value);else try{var n=JSON.parse(e);n.hasOwnProperty(t.key)||(n[t.key]=t.value,e=JSON.stringify(n))}catch(e){}return e}var m=new ApbctFetchProxyProtection,b=!1,h=window.fetch,y=(()=>{var n=_asyncToGenerator(_regenerator().m(function e(t,n){var o,a;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(+ctPublic.settings__forms__check_external){e.n=1;break}return e.a(2,!1);case 1:o=_createForOfIteratorHelper(r),e.p=2,o.s();case 3:if((a=o.n()).done)e.n=6;else{if((a=a.value).matches(t,n))return a=a.getForm(),e.n=4,i(a);e.n=5}break;case 4:if(e.v)return e.a(2,!0);e.n=5;break;case 5:e.n=3;break;case 6:e.n=8;break;case 7:e.p=7,a=e.v,o.e(a);case 8:return e.p=8,o.f(),e.f(8);case 9:return e.a(2,!1)}},e,null,[[2,7,8,9]])}));return function(e,t){return n.apply(this,arguments)}})(),r=[{name:"bitrix24",matches:function(e,t){return document.querySelector(".b24-form")&&e.includes("bitrix/services/main/ajax.php?action=crm.site.form.fill")&&t[1].body instanceof FormData},getForm:function(){return document.querySelector(".b24-form form")}},{name:"sender",matches:function(e,t){return e.includes("stats.sender.net/forms")&&"string"==typeof t[1].body},getForm:function(){for(var e=document.querySelectorAll("iframe"),t=0;t<e.length;t++)try{var n=e[t].contentDocument;if(n&&0<n.querySelectorAll("#sender-form-content").length)return n.querySelector("#sender-form-content")}catch(e){}return null}}],i=(()=>{var t=_asyncToGenerator(_regenerator().m(function e(t){var n,o,a;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2,!1);case 1:return n=c(t),b=!0,e.p=2,e.n=3,new Promise(function(e,t){apbct_public_sendAJAX(n,{async:!0,callback:e,onErrorCallback:t})});case 3:return o=e.v,(a=void 0!==o.apbct&&+o.apbct.blocked||void 0!==o.data&&void 0!==o.data.message)&&(new ApbctShowForbidden).parseBlockMessage(o),e.a(2,a);case 4:return e.p=4,e.a(2,!1);case 5:return e.p=5,b=!1,e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(e){return t.apply(this,arguments)}})(),c=function(e){var t,n={action:"cleantalk_force_ajax_check"},o=_createForOfIteratorHelper(e.elements);try{for(o.s();!(t=o.n()).done;){var a=t.value;a.name&&(n[a.name]=a.value)}}catch(e){o.e(e)}finally{o.f()}return+ctPublic.bot_detector_enabled?n.ct_bot_detector_event_token=apbctLocalStorage.get("bot_detector_event_token"):n.ct_no_cookie_hidden_field=getNoCookieData(),n};window.fetch=_asyncToGenerator(_regenerator().m(function e(){var t,n,o,a,r,i,c,l,s,u,d,p=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:for(t=p.length,n=new Array(t),o=0;o<t;o++)n[o]=p[o];if(b)return e.a(2,h.apply(this,n));e.n=1;break;case 1:if(e.p=1,(t=>!(!t||"string"!=typeof t)&&["google.com/recaptcha","gstatic.com/recaptcha","recaptcha.google.com","recaptcha.net","www.google.com/recaptcha","apis.google.com","paypal.com","api.paypal.com","www.paypal.com","js.stripe.com","api.stripe.com","checkout.stripe.com","api.doboard.com"].some(function(e){return t.includes(e)}))(a="string"==typeof n[0]?n[0]:(null==(a=n[0])?void 0:a.url)||""))return e.a(2,h.apply(this,n));e.n=2;break;case 2:if(n&&n[0]&&n[1]&&n[1].body){e.n=3;break}return e.a(2,h.apply(this,n));
6case 3:return e.n=4,m.processFetch(n);case 4:if(!0===e.v)return e.a(2,Promise.reject(new Error("Forbidden")));e.n=5;break;case 5:if(0<document.querySelectorAll("form.metform-form-content").length&&"function"==typeof n[0].includes&&(n[0].includes("/wp-json/metform/")||ctPublicFunctions._rest_url&&(()=>{try{return n[0].includes(new URL(ctPublicFunctions._rest_url).pathname+"metform/")}catch(e){}})()))try{n[1].body=_(n[1].body,f(+ctPublic.bot_detector_enabled))}catch(e){}if(0<document.querySelectorAll("form.wprm-user-ratings-modal-stars-container").length&&"function"==typeof n[0].includes&&n[0].includes("/wp-json/wp-recipe-maker/"))try{n[1].body=_(n[1].body,f(+ctPublic.bot_detector_enabled))}catch(e){}if((0<document.querySelectorAll("button.add_to_cart_button, button.ajax_add_to_cart, button.single_add_to_cart_button").length||0<document.querySelectorAll("a.add_to_cart_button").length)&&n[0].includes("/wc/store/v1/cart/add-item"))try{+ctPublic.settings__forms__wc_add_to_cart&&(n[1].body=_(n[1].body,f(+ctPublic.bot_detector_enabled)))}catch(e){}if(+ctPublic.settings__forms__wc_add_to_cart&&(0<document.querySelectorAll("button.add_to_cart_button, button.ajax_add_to_cart, button.single_add_to_cart_button").length||0<document.querySelectorAll("a.add_to_cart_button").length)&&n[0].includes("/wc/store/v1/batch")&&"string"==typeof n[1].body)try{if((r=JSON.parse(n[1].body)).requests&&Array.isArray(r.requests)){i=f(+ctPublic.bot_detector_enabled),c=apbctGetBrowserStatePair(),l=_createForOfIteratorHelper(r.requests);try{for(l.s();!(s=l.n()).done;)(d="/wc/store/v1/cart/add-item"===(u=s.value).path)&&u.body&&i&&i.key&&(u.body[i.key]=i.value),d&&u.body&&c&&(u.body[c.key]=c.value)}catch(e){l.e(e)}finally{l.f()}n[1].body=JSON.stringify(r)}}catch(e){}return e.n=6,y(a,n);case 6:if(e.v){e.n=7;break}return e.a(2,h.apply(this,n));case 7:e.n=9;break;case 8:return e.p=8,e.a(2,h.apply(this,n));case 9:return e.a(2)}},e,this,[[1,8]])}))}},{key:"catchJqueryAjax",value:function(){"undefined"!=typeof jQuery&&"function"==typeof jQuery.ajaxPrefilter&&jQuery.ajaxPrefilter(function(e,t,n){var o=new p,a=o.searchSignsForJQAjaxInjection(e,t);!1!==a.found&&(e.data=o.injectCleantalkDataToJQAjax(a,o.getJQAjaxPayloadForInject(e,t),e))})}},{key:"getJQAjaxPayloadForInject",value:function(e,t){e=e&&e.data,t=t&&t.data;return this.jqAjaxPayloadWasCollapsed(e,t)?t:e}},{key:"jqAjaxPayloadWasCollapsed",value:function(e,t){return null!=t&&e!==t&&(""===e||null==e)&&("string"==typeof t?""!==t:this.isJQAjaxFormData(t)||this.isJQAjaxURLSearchParams(t)||this.isJQAjaxPlainObjectOrArray(t))}},{key:"getJQAjaxDataAsString",value:function(e){var t;return e&&"object"===_typeof(e)?(t="","string"==typeof e.data?t=e.data:this.isJQAjaxPlainObjectOrArray(e.data)?t=this.getStructuredJQAjaxSignString(e.data):(this.isJQAjaxURLSearchParams(e.data)||this.isJQAjaxFormData(e.data))&&(t=this.collectKnownSignStringFromKeyValueBag(e.data)),e=this.collectKnownSignStringFromUrl(e.url),t&&e?t+"&"+e:t||e):""}},{key:"getStructuredJQAjaxSignString",value:function(e){var t,n;return"[object Array]"===Object.prototype.toString.call(e)?this.getSerializeArraySignString(e):(t=[],"string"==typeof(n=this.getPlainObjectSignField(e,"action"))&&""!==n&&t.push("action="+n),null!==(n=this.getPlainObjectSignField(e,"ur_frontend_form_nonce"))&&t.push("ur_frontend_form_nonce="+n),this.plainObjectHasTwtCcSignup(e)&&t.push("twt_cc_signup=1"),t.join("&"))}},{key:"getPlainObjectSignField",value:function(e,t){var n;return e&&"object"===_typeof(e)?this.isJQAjaxScalarSignValue(e[t])?e[t]:this.isJQAjaxScalarSignValue(e[n="data["+t+"]"])?e[n]:e.data&&"object"===_typeof(e.data)&&"[object Array]"!==Object.prototype.toString.call(e.data)&&this.isJQAjaxScalarSignValue(e.data[t])?e.data[t]:null:null}},{key:"isJQAjaxScalarSignValue",value:function(e){return"string"==typeof e||"number"==typeof e}},{key:"plainObjectHasTwtCcSignup",value:function(e,t){if(e&&"object"===_typeof(e)&&!(2<(t=void 0===t?0:t)))for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if("twt_cc_signup"===this.unwrapJQAjaxFormDataKey(n)||-1!==n.indexOf("twt_cc_signup"))return!0;n=e[n];if("string"==typeof n&&-1!==n.indexOf("twt_cc_signup"))return!0;
6if(n&&"object"===_typeof(n)&&"[object Array]"!==Object.prototype.toString.call(n)&&this.plainObjectHasTwtCcSignup(n,t+1))return!0}return!1}},{key:"getSerializeArraySignString",value:function(e){for(var t=[],n=0;n<e.length;n++){var o,a=e[n];a&&"object"===_typeof(a)&&"string"==typeof a.name&&(o=a.value,a=this.unwrapJQAjaxFormDataKey(a.name),this.isJQAjaxKnownSignField(a,o))&&t.push(a+"="+o)}return t.join("&")}},{key:"isJQAjaxSerializeArray",value:function(e){if("[object Array]"!==Object.prototype.toString.call(e))return!1;for(var t=0;t<e.length;t++){var n=e[t];if(!n||"object"!==_typeof(n)||"string"!=typeof n.name)return!1}return!0}},{key:"isJQAjaxURLSearchParams",value:function(e){var t;return!(!e||"object"!==_typeof(e)||"function"!=typeof e.append||this.isJQAjaxPlainObjectOrArray(e)||"[object URLSearchParams]"!==(t=Object.prototype.toString.call(e))&&("[object FormData]"===t||"function"!=typeof e.sort||"function"!=typeof e.get))}},{key:"isJQAjaxFormData",value:function(e){var t;return!(!e||"object"!==_typeof(e)||"function"!=typeof e.append||this.isJQAjaxPlainObjectOrArray(e)||this.isJQAjaxURLSearchParams(e)||"[object FormData]"!==(t=Object.prototype.toString.call(e))&&("[object Headers]"===t||"function"==typeof e.getSetCookie||"function"!=typeof e.forEach&&"function"!=typeof e.get&&"function"!=typeof e.entries))}},{key:"collectKnownSignStringFromKeyValueBag",value:function(e){var n=this.getJQAjaxKnownSignKeys(),o=this.unwrapJQAjaxFormDataKey,a=[];if(this.forEachJQAjaxKeyValueBag(e,function(e,t){"string"!=typeof e&&"number"!=typeof e||(e=String(e),t=o(t),!n[t]&&-1===e.indexOf("twt_cc_signup")&&-1===t.indexOf("twt_cc_signup"))||a.push(t+"="+e)}))return a.join("&");if("function"!=typeof e.get)return"";for(var t=["action","ur_frontend_form_nonce","twt_cc_signup"],r=[],i=0;i<t.length;i++){var c=t[i],l=this.getFormDataScalarValue(e,[c,"data["+c+"]"]);null!==l&&r.push(c+"="+l)}return r.join("&")}},{key:"collectKnownSignStringFromUrl",value:function(e){if("string"!=typeof e||""===e)return"";var t=e.indexOf("?");if(-1===t||t===e.length-1)return"";for(var n=e.indexOf("#",t),e=-1===n?e.slice(t+1):e.slice(t+1,n),o=this.getJQAjaxKnownSignKeys(),a=this.unwrapJQAjaxFormDataKey,r=[],i=e.split("&"),c=0;c<i.length;c++){var l=i[c];if(l){var s=l.indexOf("="),u=-1===s?l:l.slice(0,s),l=-1===s?"":l.slice(s+1);try{u=decodeURIComponent(u.replace(/\+/g," ")),l=decodeURIComponent(l.replace(/\+/g," "))}catch(e){continue}s=a(u);!o[s]&&-1===l.indexOf("twt_cc_signup")&&-1===s.indexOf("twt_cc_signup")||r.push(s+"="+l)}}return r.join("&")}},{key:"forEachJQAjaxKeyValueBag",value:function(e,t){if("function"==typeof e.forEach)try{return e.forEach(t),!0}catch(e){}if("function"!=typeof e.entries)return!1;try{var n=e.entries();if(!n||"function"!=typeof n.next)return!1;for(var o=n.next();!o.done;){var a=o.value;a&&t(a[1],a[0]),o=n.next()}return!0}catch(e){return!1}}},{key:"getJQAjaxKnownSignKeys",value:function(){var e=Object.create(null);return e.action=!0,e.ur_frontend_form_nonce=!0,e.twt_cc_signup=!0,e}},{key:"isJQAjaxKnownSignField",value:function(e,t){return"action"===e||"ur_frontend_form_nonce"===e||"twt_cc_signup"===e||-1!==e.indexOf("twt_cc_signup")||"string"==typeof t&&-1!==t.indexOf("twt_cc_signup")}},{key:"unwrapJQAjaxFormDataKey",value:function(e){return"string"!=typeof e?"":6<e.length&&0===e.indexOf("data[")&&"]"===e.charAt(e.length-1)?e.slice(5,-1):e}},{key:"getFormDataScalarValue",value:function(e,t){for(var n=0;n<t.length;n++){var o=e.get(t[n]);if(null!==o&&("string"==typeof o||"number"==typeof o))return o}return null}},{key:"isJQAjaxPlainObjectOrArray",value:function(e){return null!==e&&"object"===_typeof(e)&&("[object Array]"===Object.prototype.toString.call(e)||("undefined"!=typeof jQuery&&"function"==typeof jQuery.isPlainObject?jQuery.isPlainObject(e):(e=Object.getPrototypeOf(e))===Object.prototype||null===e))}},{key:"searchSignsForJQAjaxInjection",value:function(e,t){var n={found:!1,keepUnwrapped:!1,attachVisibleFieldsData:!1},o=this.getJQAjaxDataAsString(e);return-1!==(o=!o&&t&&t!==e?this.getJQAjaxDataAsString(t):o).indexOf("action=fl_builder_subscribe_form_submit")&&(n.found="fl_builder_subscribe_form_submit"),-1!==o.indexOf("twt_cc_signup")&&(n.found="twt_cc_signup"),-1!==o.indexOf("action=mailpoet")&&(n.found="action=mailpoet",n.attachVisibleFieldsData=!0),-1!==o.indexOf("action=user_registration")&&-1!==o.indexOf("ur_frontend_form_nonce")&&(n.found="action=user_registration"),-1!==o.indexOf("action=happyforms_message")&&(n.found="action=happyforms_message"),-1!==o.indexOf("action=new_activity_comment")&&(n.found="action=new_activity_comment"),-1!==o.indexOf("action=wwlc_create_user")&&(n.found="action=wwlc_create_user"),-1!==o.indexOf("action=WPBC_AJX_BOOKING__CREATE")&&(n.found="action=WPBC_AJX_BOOKING__CREATE",n.keepUnwrapped=!0,n.attachVisibleFieldsData=!0),-1!==o.indexOf("action=drplus_signup")&&(n.found="action=drplus_signup",n.keepUnwrapped=!0),-1!==o.indexOf("action=bt_cc")&&(n.found="action=bt_cc",n.keepUnwrapped=!0),-1!==o.indexOf("action=wpr_form_builder_email")&&(n.found="action=wpr_form_builder_email",n.keepUnwrapped=!0),-1!==o.indexOf("action=nf_ajax_submit")&&(n.found="action=nf_ajax_submit",n.keepUnwrapped=!0,n.attachVisibleFieldsData=!0),-1!==o.indexOf("action=uael_register_user")&&"none"===ctPublic.data__cookies_type&&(n.found="action=uael_register_user",n.keepUnwrapped=!0),-1!==o.indexOf("action=SQBSubmitQuizAjax")&&(n.found="action=SQBSubmitQuizAjax",n.keepUnwrapped=!0),-1!==o.indexOf("action=user_registration_user_form_submit")&&(n.found="action=user_registration_user_form_submit",n.keepUnwrapped=!0,n.attachVisibleFieldsData=!0),-1!==o.indexOf("action=bloom_subscribe")&&(n.found="action=bloom_subscribe",n.keepUnwrapped=!0),(this.isJQAjaxFormData(e.data)&&"function"==typeof e.data.get&&"pafe_ajax_form_builder"===e.data.get("action")||-1!==o.indexOf("action=pafe_ajax_form_builder"))&&(n.found="action=pafe_ajax_form_builder",n.keepUnwrapped=!0),"string"==typeof e.url&&-1!==e.url.indexOf("wc-ajax=add_to_cart")&&(n.found="wc-ajax=add_to_cart",this.isJQAjaxNoContentMethod(e))&&(n.keepUnwrapped=!0),n}},{key:"injectCleantalkDataToJQAjax",value:function(e,t,n){var o=n&&n.traditional,a=!this.isJQAjaxNoContentMethod(n)&&!(!n||!1!==n.processData&&!1!==n.contentType);if(null==t)return this.injectCleantalkDataToJQAjaxString(e,"");if("string"==typeof t)return this.injectCleantalkDataToJQAjaxString(e,t);if(this.isJQAjaxPlainObjectOrArray(t)){if(a)return"[object Array]"===Object.prototype.toString.call(t)?this.isJQAjaxSerializeArray(t)?this.injectCleantalkDataToJQAjaxSerializeArray(e,t):t:this.injectCleantalkDataToJQAjaxPlainObject(e,t);try{if("undefined"!=typeof jQuery&&"function"==typeof jQuery.param)return this.injectCleantalkDataToJQAjaxString(e,jQuery.param(t,o))}catch(e){}return t}return this.isJQAjaxURLSearchParams(t)?a?(this.preserveJQAjaxURLSearchParamsOptions(n),this.injectCleantalkDataToJQAjaxKeyValue(e,this.cloneURLSearchParams(t))):this.injectCleantalkDataToJQAjaxString(e,t.toString()):this.isJQAjaxFormData(t)?this.isJQAjaxNoContentMethod(n)?this.injectCleantalkDataToJQAjaxString(e,this.serializeJQAjaxKeyValueBag(t)):(this.preserveJQAjaxFormDataOptions(n),this.injectCleantalkDataToJQAjaxFormData(e,this.cloneFormData(t))):t}},{key:"isJQAjaxNoContentMethod",value:function(e){return!(!e||"object"!==_typeof(e)||"string"==typeof(e=e.type||e.method)&&""!==e&&"GET"!==(e=e.toUpperCase())&&"HEAD"!==e)}},{key:"getCleantalkJQAjaxFieldPairs",value:function(t){function e(e){return t.keepUnwrapped?e:"data["+e+"]"}var n,o=[],a=(+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?(a=this.toolGetEventToken())&&o.push([e("ct_bot_detector_event_token"),a]):(a=getNoCookieData())&&o.push([e("ct_no_co
6okie_hidden_field"),a]),apbctGetBrowserStatePair());return a&&(n=t.keepUnwrapped?a.key:"data["+a.key+"]",o.push([n,a.value])),o}},{key:"preserveJQAjaxFormDataOptions",value:function(e){e&&"object"===_typeof(e)&&(e.processData=!1,e.contentType=!1)}},{key:"preserveJQAjaxURLSearchParamsOptions",value:function(e){e&&"object"===_typeof(e)&&(e.processData=!1)}},{key:"getFormDataField",value:function(e,o){if("function"==typeof e.get)for(var t=0;t<o.length;t++){var n=e.get(o[t]);if(null!=n)return n}if("function"==typeof e.forEach){var a=null;if(e.forEach(function(e,t){if(null===a)for(var n=0;n<o.length;n++)if(t===o[n])return void(a=e)}),null!==a)return a}if("function"==typeof e.entries)try{var r=e.entries();if(r&&"function"==typeof r.next)for(var i=r.next();!i.done;){var c=i.value;if(c)for(var l=0;l<o.length;l++)if(c[0]===o[l])return c[1];i=r.next()}}catch(e){}return null}},{key:"cloneURLSearchParams",value:function(e){var t="function"==typeof e.toString?e.toString():"";if("function"==typeof e.constructor&&e.constructor!==Object)try{return new e.constructor(t)}catch(e){}if("function"==typeof URLSearchParams)try{return new URLSearchParams(t)}catch(e){}return e}},{key:"cloneFormData",value:function(e){try{var n=new FormData;if(this.forEachJQAjaxKeyValueBag(e,function(e,t){n.append(t,e)}))return n}catch(e){}return e}},{key:"serializeJQAjaxKeyValueBag",value:function(e){var n=[];return this.forEachJQAjaxKeyValueBag(e,function(e,t){"string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e||n.push(encodeURIComponent(String(t))+"="+encodeURIComponent(String(e)))})?n.join("&"):""}},{key:"injectCleantalkDataToJQAjaxKeyValue",value:function(e,t){for(var n=this.getCleantalkJQAjaxFieldPairs(e),o=0;o<n.length;o++)t.append(n[o][0],n[o][1]);return e.attachVisibleFieldsData&&(e=ApbctVisibleFieldsExtractor.createExtractor(e.found))&&"string"==typeof(e=e.extract(t.toString()))&&t.append("apbct_visible_fields",e),t}},{key:"injectCleantalkDataToJQAjaxSerializeArray",value:function(e,t){for(var n=t.slice(),o=this.getCleantalkJQAjaxFieldPairs(e),a=0;a<o.length;a++)n.push({name:o[a][0],value:o[a][1]});return e.attachVisibleFieldsData&&(e=ApbctVisibleFieldsExtractor.createExtractor(e.found))&&"undefined"!=typeof jQuery&&"function"==typeof jQuery.param&&"string"==typeof(e=e.extract(jQuery.param(t)))&&n.push({name:"apbct_visible_fields",value:e}),n}},{key:"injectCleantalkDataToJQAjaxPlainObject",value:function(e,t){for(var n="undefined"!=typeof jQuery&&"function"==typeof jQuery.extend?jQuery.extend({},t):this.clonePlainObject(t),o=this.getCleantalkJQAjaxFieldPairs(e),a=0;a<o.length;a++)n[o[a][0]]=o[a][1];return e.attachVisibleFieldsData&&(e=ApbctVisibleFieldsExtractor.createExtractor(e.found))&&"undefined"!=typeof jQuery&&"function"==typeof jQuery.param&&"string"==typeof(e=e.extract(jQuery.param(t)))&&(n.apbct_visible_fields=e),n}},{key:"clonePlainObject",value:function(e){var t,n={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}},{key:"injectCleantalkDataToJQAjaxFormData",value:function(e,t){if("object"===_typeof(e)&&this.isJQAjaxFormData(t))try{+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?(n=this.toolGetEventToken())&&(e.keepUnwrapped?t.append("ct_bot_detector_event_token",n):t.append("data[ct_bot_detector_event_token]",n)):(o=getNoCookieData())&&(e.keepUnwrapped?t.append("ct_no_cookie_hidden_field",o):t.append("data[ct_no_cookie_hidden_field]",o));var n,o,a,r,i,c,l,s,u=apbctGetBrowserStatePair();
6u&&(e.keepUnwrapped?t.append(u.key,u.value):t.append("data["+u.key+"]",u.value)),e.attachVisibleFieldsData&&(s=!1,ApbctVisibleFieldsExtractor.createExtractor(e.found)&&(a=this.getFormDataField(t,["form_id","data[form_id]"]),i=null,a&&"string"==typeof a&&(r=a.replace(/["\\]/g,""),i=(i=document.getElementById(r))||document.querySelector('[data-id="'+r+'"]')),i)&&(c=i.querySelectorAll("input, select, textarea"),l=(new ApbctAttachData).collectVisibleFields({elements:c}),s=JSON.stringify(l)),"string"==typeof s)&&0<s.length&&t.append("apbct_visible_fields",s)}catch(e){}return t}},{key:"injectCleantalkDataToJQAjaxString",value:function(e,t){if("object"!==_typeof(e)||"string"!=typeof t)return t;var n="",o="",a="",r="",i=apbctGetBrowserStatePair();if(i&&(r=(e.keepUnwrapped?"apbct_browser_state":"data%5Bapbct_browser_state%5D")+"="+encodeURIComponent(i.value)+"&"),+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?(i=(new p).toolGetEventToken())&&(n=e.keepUnwrapped?"ct_bot_detector_event_token="+i+"&":"data%5Bct_bot_detector_event_token%5D="+i+"&"):(o=getNoCookieData(),o=e.keepUnwrapped?"ct_no_cookie_hidden_field="+encodeURIComponent(o)+"&":"data%5Bct_no_cookie_hidden_field%5D="+encodeURIComponent(o)+"&"),e.attachVisibleFieldsData){i=!1,e=ApbctVisibleFieldsExtractor.createExtractor(e.found);if("string"==typeof(i=e?e.extract(t):i))try{a="apbct_visible_fields="+encodeURIComponent(i)+"&"}catch(e){}}return o+n+r+a+t}},{key:"catchWCRestRequestAsMiddleware",value:function(){window.hasOwnProperty("wp")&&window.wp.hasOwnProperty("apiFetch")&&"function"==typeof window.wp.apiFetch.use&&window.wp.apiFetch.use(function(e,t){var n;return"object"===_typeof(e)&&null!==e&&e.hasOwnProperty("data")&&void 0!==e.data&&e.hasOwnProperty("path")&&void 0!==e.path&&(e.data.hasOwnProperty("requests")&&0<e.data.requests.length&&e.data.requests[0].hasOwnProperty("path")&&"/wc/store/v1/cart/add-item"===e.data.requests[0].path&&(n=e.data.requests[0].body||(e.data.requests[0].body={}),+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?n.ct_bot_detector_event_token=localStorage.getItem("bot_detector_event_token"):"none"===ctPublic.data__cookies_type&&(n.ct_no_cookie_hidden_field=getNoCookieData())),e.path.includes("/wc/store/v1/checkout"))&&(+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?e.data.ct_bot_detector_event_token=localStorage.getItem("bot_detector_event_token"):"none"===ctPublic.data__cookies_type&&(e.data.ct_no_cookie_hidden_field=getNoCookieData())),t(e)})}},{key:"searchFormMiddleware",value:function(){var e,n=this,t=_createForOfIteratorHelper(document.forms);try{for(t.s();!(e=t.n()).done;)(()=>{var t=e.value;"undefined"!=typeof ctPublic&&1==+ctPublic.settings__forms__search_test&&null!==t.getAttribute("apbct-form-sign")&&"native_search"===t.getAttribute("apbct-form-sign")&&(t.apbctSearchPrevOnsubmit=t.onsubmit,t.onsubmit=function(e){return n.searchFormHandler(e,t)})})()}catch(e){t.e(e)}finally{t.f()}}},{key:"searchFormHandler",value:function(e,t){try{var n,o,a,r=t.querySelector('[name*="apbct__email_id__"]'),i=null,c=(null!==r&&null!==r.value&&(i=r.value),getCleanTalkStorageDataArray()),l=apbctLocalStorage.get("bot_detector_event_token");null===c&&null===r&&null===l||(e.preventDefault(),n=function(){null!==r&&r.parentNode.removeChild(r),"function"==typeof t.apbctSearchPrevOnsubmit?t.apbctSearchPrevOnsubmit():HTMLFormElement.prototype.submit.call(t)},o=c,null!==i&&(o.apbct_search_form__honeypot_value=i),o.ct_bot_detector_event_token=l,"string"==typeof o.apbct_pixel_url&&-1!==o.apbct_pixel_url.indexOf("%3A")&&(o.apbct_pixel_url=decodeURIComponent(o.apbct_pixel_url)),void 0!==(a=JSON.stringify(o))&&0!==a.length?ctSetAlternativeCookie(a,{callback:n,onErrorCallback:n,forceAltCookies:!0}):n())}catch(e){console.warn("APBCT search form onsubmit handler error. "+e)}}},{key:"toolForAntiCrawlerCheckDuringBotDetector",value:function(){var e=setInterval(function(){localStorage.bot_detector_event_token&&(ctSetCookie("apbct_bot_detector_exist","1","3600"),clearInterval(e))},500)}},{key:"toolGetEventToken",value:function(){var t=localStorage.getItem("bot_detector_event_token");try{t=JSON.parse(t)}catch(e){t=!1}return!(null===t||!1===t||!t.hasOwnProperty("value")||""===t.value)&&t.value}}])})(),ApbctShowForbidden=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"prepareBlockForAjaxForms",value:function(){var o=function(e){if(e.responseText&&-1!==e.responseText.indexOf('"apbct')&&-1===e.responseText.indexOf("DOCTYPE"))try{this.parseBlockMessage(JSON.parse(e.responseText))}catch(e){console.log(e.toString())}}.bind(this);"undefined"!=typeof jQuery?"function"!=typeof jQuery(document).ajaxComplete()?jQuery(document).on("ajaxComplete",function(e,t,n){o(t)}):jQuery(document).ajaxComplete(function(e,t,n){o(t)}):"undefined"!=typeof XMLHttpRequest&&document.addEventListener("readystatechange",function(e){4===e.target.readyState&&o(e.target)})}},{key:"parseBlockMessage",value:function(e){var t,n="";if((void 0!==e.apbct&&(e=e.apbct).blocked&&(n=e.comment),n=void 0!==e.data&&void 0!==(e=e.data).message?e.message:n)&&(document.dispatchEvent(new CustomEvent("apbctAjaxBockAlert",{bubbles:!0,detail:{message:n}})),cleantalkModal.loaded=n,cleantalkModal.open(),1==+e.stop_script&&(window.stop(),e.integration&&"NEXForms"===e.integration&&((t=document.querySelector("form.submit-nex-form button.nex-submit"))&&(t.disabled=!0,t.style.opacity="0.5",t.style.cursor="not-allowed",t.style.pointerEvents="none",t.style.backgroundColor="#ccc",t.style.color="#fff"),t=document.querySelector("div.nex_success_message"))&&(t.style.display="none"),e.integration)&&"ElfsightForm"===e.integration)){var o=[document];try{document.querySelectorAll("iframe").forEach(function(e){try{e.contentDocument&&o.push(e.contentDocument)}catch(e){}})}catch(e){}for(var a=0,r=o;a<r.length;a++){var i=r[a],c=i.querySelector('[class*="elfsight-app"]');if(c){var l=c.querySelector('button[type="submit"]')||Array.from(c.querySelectorAll('button, [role="button"]')).find(function(e){return"Submit"===e.textContent.trim()||"Submit"===e.getAttribute("aria-label")});l&&(l.disabled=!1,l.removeAttribute("aria-busy"));c.querySelectorAll('[class*="Loader__Spinner"]').forEach(function(e){e.style.display="none"});var s=c.querySelector(".apbct-elfsight-forbidden-msg");s||((s=i.createElement("div")).className="apbct-elfsight-forbidden-msg",s.style.cssText="margin-top:12px;padding:10px;color:#c0392b;font-size:14px;line-height:1.4;",l?l.insertAdjacentElement("afterend",s):c.appendChild(s)),s.textContent=n,s.style.display="";break}}}}}]))(),ApbctVisibleFieldsExtractor=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"extract",value:function(e){if(e&&"string"==typeof e){try{e=decodeURIComponent(e)}catch(e){return!1}var t=document.querySelectorAll("form"),n=this.getIdFromAjax(e);if(n){var o,a=_createForOfIteratorHelper(t);try{for(a.s();!(o=a.n()).done;){var r=o.value,i=this.findParentContainer(r);if(i){var c=this.getIdFromHTML(i);if(c===n){var l=i.querySelector("input[id^=apbct_visible_fields_]");if(null!=l&&l.value)return l.value}}}}catch(e){a.e(e)}finally{a.f()}}}return!1}},{key:"getIdFromAjax",value:function(e){return console.warn("getIdFromAjax must be implemented by child class"),null}},{key:"findParentContainer",value:function(e){return console.warn("findParentContainer must be implemented by child class"),null}},{key:"getIdFromHTML",value:function(e){return console.warn("getIdFromHTML must be implemented by child class"),null}}],[{key:"createExtractor",value:function(e){switch(e){case"action=nf_ajax_submit":return new ApbctNinjaFormsVisibleFields;case"action=mailpoet":return new ApbctMailpoetVisibleFields;default:return null}}}]))(),ApbctNinjaFormsVisibleFields=(()=>{function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,ApbctVisibleFieldsExtractor),_createClass(e,[{key:"getIdFromAjax",value:function(e){for(var t=0,n=[/"id"\s*:\s*"?(\d+)"/,/form_id\s*[:\s]*"?(\d+)"/,/nf-form-(\d+)/,/"id":(\d+)/];t<n.length;t++){var o=e.match(n[t]);if(o&&o[1])return parseInt(o[1],10)}return null}},{key:"findParentContainer",value:function(e){for(var t=e;t&&t!==document.body;){if(t.id&&/^nf-form-\d+-cont$/.test(t.id))return t;t=t.parentElement}return null}},{key:"getIdFromHTML",value:function(e){e=e.id.match(/^nf-form-(\d+)-cont$/);return e?parseInt(e[1],10):null}}])})(),ApbctMailpoetVisibleFields=(()=>{function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,ApbctVisibleFieldsExtractor),_createClass(e,[{key:"getIdFromAjax",value:function(e){for(var t=0,n=[/form_id\s*[:\s]*"?(\d+)"/,/data\[form_id\]=(\d+)/,/form_id=(\d+)/];t<n.length;t++){var o=e.match(n[t]);if(o&&o[1])return parseInt(o[1],10)}return null}},{key:"findParentContainer",value:function(e){return e}},{key:"getIdFromHTML",value:function(e){return e.action&&e.action.match(/mailpoet_subscription_form/)&&(e=e.querySelector('input[type="hidden"][name="data[form_id]"]'))&&e.value?parseInt(e.value,10):null}}])})();function getApbctBasePath(){var e,t=_createForOfIteratorHelper(document.getElementsByTagName("script"));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.src&&n.src.includes("apbct-public-bundle")){var o=n.src.match(/^(.*\/js\/)/);if(o&&o[1])return o[1]}}}catch(e){t.e(e)}finally{t.f()}return null}function apbctImportScript(e){return _apbctImportScript.apply(this,arguments)}function _apbctImportScript(){return(_apbctImportScript=_asyncToGenerator(_regenerator().m(function e(o){var t,n,a;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:t=o.replace(/\/$/,""),n=document.querySelectorAll("script[src]"),n=_createForOfIteratorHelper(n),e.p=1,n.s();case 2:if((a=n.n()).done)e.n=4;else{if(a.value.src.replace(/\/$/,"")===t)return e.a(2,!0);e.n=3}break;case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,a=e.v,n.e(a);case 6:return e.p=6,n.f(),e.f(6);case 7:return e.a(2,new Promise(function(e,t){var n=document.createElement("script");n.src=o,n.async=!0,n.onload=function(){e(!0)},n.onerror=function(){t(new Error("Script loading failed: "+o))},document.head.appendChild(n)}).catch(function(e){return!1}))}},e,null,[[1,5,6,7]])}))).apply(this,arguments)}function apbct_ready(){return _apbct_ready.apply(this,arguments)}function _apbct_ready(){return(_apbct_ready=_asyncToGenerator(_regenerator().m(function e(){var a,t,r,n,o;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:null!=ctPublic.ct_checkjs_key&&(apbctLocalStorage.set("ct_checkjs",ctPublic.ct_checkjs_key,!0),ctSetCo
6okie("ct_checkjs",ctPublic.ct_checkjs_key)),(new ApbctShowForbidden).prepareBlockForAjaxForms(),a=!1,apbctLocalStorage.get("apbct_existing_visitor")&&+ctPublic.bot_detector_enabled&&!apbctLocalStorage.get("bot_detector_event_token")&&"undefined"==typeof ApbctGatheringData?(t=getApbctBasePath(),e.n=t?1:3):e.n=3;break;case 1:return n=t+"public-2-gathering-data.min.js",e.n=2,apbctImportScript(n);case 2:a=e.v;case 3:if((r=new ApbctHandler).detectForcedAltCookiesForms(),+ctPublic.bot_detector_enabled&&!a||"undefined"==typeof ApbctGatheringData||((n=new ApbctGatheringData).setSessionId(),n.writeReferrersToSessionStorage(),n.setCookiesType(),n.startFieldsListening(),n.listenAutocomplete(),n.gatheringTypoData()),"function"==typeof initParams)try{initParams(a)}catch(e){console.log("initParams error:",e)}setTimeout(function(){+ctPublic.bot_detector_enabled&&((e=new ApbctEventTokenTransport).attachEventTokenToMultipageGravityForms(),e.attachEventTokenToWoocommerceGetRequestAddToCart());var e,t=new ApbctAttachData;+ctPublic.bot_detector_enabled&&!a||t.attachHiddenFieldsToForms(a);for(var n=0;n<document.forms.length;n++){var o=document.forms[n];r.excludeForm(o)||(t.attachVisibleFieldsToForm(o,n),r.catchMain(o,n))}},1e3),1==+ctPublic.settings__forms__search_test&&r.searchFormMiddleware(),r.catchXmlHttpRequest(),r.catchFetchRequest(),r.catchIframeFetchRequest(),r.catchJqueryAjax(),r.catchWCRestRequestAsMiddleware(),+ctPublic.bot_detector_enabled&&(o=!1,window.addEventListener("botDetectorEventTokenUpdated",function(e){e=null==(e=e.detail)?void 0:e.eventToken;e&&!o&&(ctSetCookie([["ct_bot_detector_event_token",e]]),o=!0,void 0!==ctPublic.force_alt_cookies)&&ctPublic.force_alt_cookies&&ctSetAlternativeCookie(JSON.stringify({ct_bot_detector_event_token:e}),{forceAltCookies:!0})})),ctPublic.settings__sfw__anti_crawler&&+ctPublic.bot_detector_enabled&&r.toolForAntiCrawlerCheckDuringBotDetector(),apbctLocalStorage.set("apbct_existing_visitor",1);case 4:return e.a(2)}},e)}))).apply(this,arguments)}var tokenCheckerIntervalId,defaultSend=XMLHttpRequest.prototype.send,ApbctBrowserState=("loading"!==document.readyState?apbct_ready():apbct_attach_event_handler(document,"DOMContentLoaded",apbct_ready),(new ApbctHandler).cronFormsHandler(2e3),(()=>{function o(){_classCallCheck(this,o)}return _createClass(o,null,[{key:"getFrontendDataLog",value:function(){var e=("undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.cookiePrefix?ctPublicFunctions.cookiePrefix:"")+o.LOG_KEY,t=o.LOG_KEY;if(void 0!==apbctLocalStorage&&apbctLocalStorage.get){var n=apbctLocalStorage.get(e)||apbctLocalStorage.get(t)||null;if(n&&"string"==typeof n)try{return JSON.parse(n)}catch(e){return""}return n}n=(n=localStorage.getItem(e))||localStorage.getItem(t)||null;try{return"string"==typeof n?JSON.parse(n):n}catch(e){return""}}},{key:"asDTO",value:function(){return{botd_logic_loaded:o.botdLogicLoaded,botd_wrapper_loaded:o.botdWrapperLoaded,frontend_data_log:"",transport_enabled:1}}},{key:"detectScripts",value:function(){if(o.botdWrapperLoaded&&o.botdLogicLoaded)return!0;for(var e=document.getElementsByTagName("script"),t=0;t<e.length;t++){var n=e[t].getAttribute("src");n&&(-1!==n.indexOf(o.SCRIPT_SIGNS.botd_wrapper_loaded)?o.botdWrapperLoaded=1:-1!==n.indexOf(o.SCRIPT_SIGNS.botd_logic_loaded)&&(o.botdLogicLoaded=1))}return!!o.botdWrapperLoaded&&!!o.botdLogicLoaded}}])})());function apbctGetBrowserStatePair(){try{ApbctBrowserState.detectScripts();var e=ApbctBrowserState.asDTO();return!ApbctBrowserState.botdLogicLoaded||"1"===localStorage.getItem(ApbctBrowserState.TRANSPORT_ENABLED_SIGN_KEY)?e.frontend_data_log=ApbctBrowserState.getFrontendDataLog():e.transport_enabled=0,{key:ApbctBrowserState.STATE_KEY,value:JSON.stringify(e)}}catch(e){return!1}}_defineProperty(ApbctBrowserState,"STATE_KEY","apbct_browser_state"),_defineProperty(ApbctBrowserState,"LOG_KEY","ct_bot_detector_frontend_data_log"),_defineProperty(ApbctBrowserState,"SCRIPT_SIGNS",{botd_wrapper_loaded:"ct-bot-detector-wrapper",botd_logic_loaded:"ct-bot-detector.min"}),_defineProperty(ApbctBrowserState,"TRANSPORT_ENABLED_SIGN_KEY","bot_detector_log_transport_enabled"),_defineProperty(ApbctBrowserState,"botdWrapperLoaded",0),_defineProperty(ApbctBrowserState,"botdLogicLoaded",0);var ctCheckedEmails={},ctCheckedEmailsExist={};function checkEmail(e){var t=e.target.value;!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||!t||t in ctCheckedEmails||("rest"===ctPublicFunctions.data__ajax_type?apbct_public_sendREST("check_email_before_post",{method:"POST",data:{email:t},callback:function(e){e.result&&(ctCheckedEmails[t]={result:e.result,timestamp:Date.now()/1e3|0}
6,ctSetCookie("ct_checked_emails",JSON.stringify(ctCheckedEmails)))}}):"admin_ajax"===ctPublicFunctions.data__ajax_type&&apbct_public_sendAJAX({action:"apbct_email_check_before_post",email:t},{callback:function(e){e.result&&(ctCheckedEmails[t]={result:e.result,timestamp:Date.now()/1e3|0},ctSetCookie("ct_checked_emails",JSON.stringify(ctCheckedEmails)))}}))}function checkEmailExist(t){var e,n=t.target.value;n&&n.length?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)&&(n in ctCheckedEmailsExist?(e=ctCheckedEmailsExist[n],getResultCheckEmailExist(t,e,n)):(viewCheckEmailExist(t,"load"),(ctPublicFunctions.data__ajax_type="rest")===ctPublicFunctions.data__ajax_type?apbct_public_sendREST("check_email_exist_post",{method:"POST",data:{email:n},callback:function(e){getResultCheckEmailExist(t,e,n)}}):"admin_ajax"===ctPublicFunctions.data__ajax_type&&apbct_public_sendAJAX({action:"apbct_email_check_exist_post",email:n},{callback:function(e){getResultCheckEmailExist(t,e,n)}}))):((e=document.getElementById("apbct-check_email_exist-block"))&&e.remove(),(e=document.getElementById("apbct-check_email_exist-popup_description"))&&e.remove())}function getResultCheckEmailExist(e,t,n){t&&t.result&&(t=t.result,ctCheckedEmailsExist[n]={result:t,timestamp:Date.now()/1e3|0},"EXISTS"==t.result?viewCheckEmailExist(e,"good_email",t.text_result):viewCheckEmailExist(e,"bad_email",t.text_result),ctSetCookie("ct_checked_emails_exist",JSON.stringify(ctCheckedEmailsExist)))}function viewCheckEmailExist(e,t,n){var o,a,e=e.target.parentElement,r=(r=e.querySelector('[name*="email"]'))||e.querySelector('[type*="email"]');if(r)switch(document.getElementById("apbct-check_email_exist-block")?o=document.getElementById("apbct-check_email_exist-block"):((o=document.createElement("div")).setAttribute("class","apbct-check_email_exist-block"),o.setAttribute("id","apbct-check_email_exist-block"),window.addEventListener("scroll",function(){o.style.top=r.getBoundingClientRect().top+"px"}),e.after(o)),document.getElementById("apbct-check_email_exist-popup_description")?a=document.getElementById("apbct-check_email_exist-popup_description"):((a=document.createElement("div")).setAttribute("class","apbct-check_email_exist-popup_description"),a.setAttribute("id","apbct-check_email_exist-popup_description"),window.addEventListener("scroll",function(){a.style.top=o.getBoundingClientRect().top+"px"}),o.after(a)),ctEmailExistSetElementsPositions(r),ctListenRequiredRedrawing(r),t){case"load":o.classList.remove("apbct-check_email_exist-good_email","apbct-check_email_exist-bad_email"),o.classList.add("apbct-check_email_exist-load");break;case"good_email":o.classList.remove("apbct-check_email_exist-load","apbct-check_email_exist-bad_email"),o.classList.add("apbct-check_email_exist-good_email"),o.onmouseover=function(){a.textContent=n,a.style.display="block",a.style.top=r.getBoundingClientRect().top-a.getBoundingClientRect().height+"px",a.style.color="#1C7129"},o.onmouseout=function(){a.style.display="none"};break;case"bad_email":o.classList.remove("apbct-check_email_exist-load","apbct-check_email_exist-good_email"),o.classList.add("apbct-check_email_exist-bad_email"),o.onmouseover=function(){a.textContent=n,a.style.display="block",a.style.top=r.getBoundingClientRect().top-a.getBoundingClientRect().height+"px",a.style.color="#E01111"},o.onmouseout=function(){a.style.display="none"}}}function ctEmailExistSetElementsPositions(e){if(!(!e instanceof HTMLInputElement)){var t=e.getBoundingClientRect(),n=e.offsetHeight,o=e.offsetWidth,a=1.2*n,r=0,i=!1;try{var c=window.getComputedStyle(e),l=e.parentElement||e,s=window.getComputedStyle(l,"::after"),u=s.getPropertyValue("content"),r=s.getPropertyValue("font-size")||s.getPropertyValue("width"),d=(u&&"none"!==u&&0<parseFloat(r)&&(i=!0),"string"==typeof c.fontSize&&c.fontSize),p=d||"inherit"}catch(e){p="inherit"}e=document.getElementById("apbct-check_email_exist-block"),s=(e&&(l=0,i&&(l=parseFloat(r)),e.style.cssText="\n            top: ".concat(t.top,"px;\n            left: ").concat(t.right-a-l,"px;\n            height: ").concat(n,"px;\n            width: ").concat(a,"px;\n            background-size: ").concat(p,";\n            background-position: center;\n        ")),document.getElementById("apbct-check_email_exist-popup_description"));s&&(s.style.width="".concat(o,"px"),s.style.left="".concat(t.left,"px"))}}function ctListenRequiredRedrawing(t){window.addEventListener("resize",function(e){ctEmailExistSetElementsPositions(t)}),[{selector:"form.wpcf7-form",observerConfig:{childList:!0,subtree:!0},emailElement:t},{selector:"form.hp-form--user-register",observerConfig:{childList:!0,subtree:!0},emailElement:t}
6].forEach(function(e){ctWatchFormChanges(e.selector,e.observerConfig,function(){ctEmailExistSetElementsPositions(e.emailElement)})})}function ctWatchFormChanges(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=2<arguments.length?arguments[2]:void 0,o=document.querySelector(e);return!(!o||!t)&&((e=new MutationObserver(function(e){e.forEach(function(e){"childList"!==e.type&&"attributes"!==e.type||n(o,e)})})).observe(o,t),e)}function apbctIntegrateDynamicEmailCheck(e){var t=e.formSelector,n=e.emailSelector,o=e.handler,a=e.debounce,r=void 0===a?300:a,a=e.attribute,i=void 0===a?"data-apbct-email-exist":a;document.querySelectorAll(t+" "+n).forEach(function(e){e.hasAttribute(i)||(e.addEventListener("blur",ctDebounceFuncExec(o,r)),e.setAttribute(i,"1"))}),new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){1===e.nodeType&&(e.matches&&e.matches(t+" "+n)&&(e.hasAttribute(i)||(e.addEventListener("blur",ctDebounceFuncExec(o,r)),e.setAttribute(i,"1"))),e.querySelectorAll)&&e.querySelectorAll(n).forEach(function(e){e.hasAttribute(i)||(e.addEventListener("blur",ctDebounceFuncExec(o,r)),e.setAttribute(i,"1"))})})})}).observe(document.body,{childList:!0,subtree:!0})}function ctProcessError(e,t){var n={},e=(e&&e.message?n.err={msg:e.message,file:e.fileName||!1,ln:e.lineNumber||lineNo||!1,col:e.columnNumber||columnNo||!1,stacktrace:e.stack||!1,cause:!!t&&JSON.stringify(t),errorObj:error||!1}:(n.err={msg:e},t&&(n.err.file=t)),n.url=window.location.href,n.userAgent=window.navigator.userAgent,"ct_js_errors");null===(o=localStorage.getItem(e))&&(o="[]");for(var o=JSON.parse(o),a=0;a<o.length;a++)if(o[a].err.msg===n.err.msg)return;o.push(n),localStorage.setItem(e,JSON.stringify(o))}function closeAllPopupTRP(){var e=document.querySelectorAll(".apbct-real-user-popup.visible");0<e.length&&e.forEach(function(e){e.classList.remove("visible")})}1===Math.floor(100*Math.random())&&(window.onerror=function(e,t){for(var n=["apbct","ctPublic"],o=n.length;o--;)-1!==e.indexOf(n[o])&&ctProcessError(e,t);return!1}),document.addEventListener("DOMContentLoaded",function(){var e,t=this,d=void 0,p=!1;"undefined"==typeof ctPublic&&"undefined"==typeof ctTrpAdminLocalize||void 0===(d="undefined"!=typeof ctPublic&&ctPublic.theRealPerson?ctPublic.theRealPerson:d)&&"undefined"!=typeof ctTrpAdminLocalize&&ctTrpAdminLocalize.theRealPerson&&(d=ctTrpAdminLocalize.theRealPerson,p=!0),d&&(e='.apbct-trp > .comment-body *[class*="comment-author"]',document.querySelector(".apbct-trp .comment-author .comment-author-link")&&(e='.apbct-trp *[class*="comment-author-link"]'),0!==(e=document.querySelectorAll(e+',.apbct-trp > .wp-block-group *[class*="comment-author"],.apbct-trp *[class*="review__author"],.apbct-trp td[class*="column-author"] > strong')).length)&&(e.forEach(function(e,t){var n,o,a,r,i,c,l,s,u;e.className.indexOf("review")<0&&"undefined"==typeof pagenow&&e.parentElement.className.indexOf("group")<0&&"DIV"!=e.tagName||e.querySelector(".comment-metadata")||((n=document.createElement("div")).setAttribute("class","apbct-real-user-badge"),(o=document.createElement("img")).setAttribute("src",d.imgPersonUrl),o.setAttribute("class","apbct-real-user-popup-img"),(a=document.createElement("div")).setAttribute("class","apbct-real-user-popup"),(c=document.createElement("strong")).append(d.phrases.trpHeading),(r=document.createElement("div")).setAttribute("class","apbct-real-user-popup-content_row"),(i=document.createElement("div")).append(" "),i.append(c),i.append(d.phrases.trpContent1),(c=document.createElement("div")).style.display="flex",c.style.gap="5px",(l=document.createElement("div")).append(d.phrases.trpContent2),c.append(l),p&&(l=document.createElement("div"),(s=document.createElement("a")).setAttribute("href",d.trpContentLink),s.setAttribute("target","_blank"),(u=document.createElement("img")).setAttribute("src",ctAdminCommon.new_window_gif),u.setAttribute("alt","New window"),u.setAttribute("style","padding-top:3px"),s.append(u),l.append(s),c.append(l)),r.append(i,c),a.append(r),n.append(o),e.append(n),e.append(a))}),document.querySelectorAll(".apbct-real-user-badge").forEach(function(o){var a=void 0,e=(t.body.addEventListener("click",function(e){-1==e.target.className.indexOf("apbct-real-user")&&-1==e.target.parentElement.className.indexOf("apbct-real-user")&&closeAllPopupTRP()}),o.addEventListener("click",function(){var e=this.nextElementSibling;e&&e.classList.contains("apbct-real-user-popup")&&e.classList.toggle("visible")}),o.addEventListener("mouseenter",function(){closeAllPopupTRP();var e=this.nextElementSibling;e&&e.classList.contains("apbct-real-user-popup")&&e.classList.add("visible")}),o.addEventListener("mouseleave",function(){var t=this;a=setTimeout(function(){var e=t.nextElementSibling;e&&e.classList.contains("apbct-real-user-popup")&&e.classList.remove("visible")},1e3)}),o.nextElementSibling);e.addEventListener("mouseenter",function(){clearTimeout(a),e.classList.add("visible")}),e.addEventListener("mouseleave",function(){a=setTimeout(function(){e.classList.contains("apbct-real-user-popup")&&e.classList.remove("visible")},1e3)}),o.addEventListener("touchend",function(){var n=this;a=setTimeout(function(){var e=n.nextElementSibling,t=window.getSelection();e&&t&&e.classList.contains("apbct-real-user-popup")&&0===t.toString().length?e.classList.remove("visible"):(clearTimeout(a),document.addEventListener("selectionchange",function e(){var t=window.getSelection();t&&0===t.toString().length&&(a=setTimeout(function(){var e=o.nextElementSibling;e&&e.classList.contains("apbct-real-user-popup")&&e.classList.remove("visible")},3e3),document.removeEventListener("selectionchange",e))}))},3e3)})}))});
7
8

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.