1!function(){"use strict";if(!window.__thn){window.__thn=1;var t="/ga/c",e=730,n=/^[0-9a-f]{32}$/,i=!1,r=null,a=null,o="",c=null,s=null,l=!1,u=!1,d=null,f=0,v=null,p=null,h=1,m=0,_=null,g=!1,y=0,w=0,b=!1,x=0,S=0,T=[],E=0,k=0,I=0,A=0,O=null,N=[],L=null,j=null,C=[],H=0,q=0,M=[],D=null,R={},P=null,F=null,U=null,B=null,J=new Map,W={},z="undefined"!=typeof WeakSet?new WeakSet:{_s:[],has:function(t){return this._s.indexOf(t)>=0},add:function(t){this._s.push(t)}},$=new Map,V=null,Y="undefined"!=typeof WeakSet?new WeakSet:{_s:[],has:function(t){return this._s.indexOf(t)>=0},add:function(t){this._s.push(t)}},K={},G=!1,Z=!1,Q=null,X={},tt={_e:{},on:function(t,e){(tt._e[t]=tt._e[t]||[]).push(e)},off:function(t,e){var n=tt._e[t];n&&(tt._e[t]=n.filter(function(t){return t!==e}))},emit:function(t,e){var n=tt._e[t];n&&n.slice().forEach(function(t){try{t(e)}catch(t){}})}};window._q=tt,window.addEventListener("online",mt);var et=document.currentScript,nt={mousemove:1,scroll:2,touchstart:4,click:8,keydown:16},it=/^[0-9a-f]{1,16}$/i;window._a={identify:function(e,n){if(n=n||{},!l){var i={type:"identify",vid:v,email:e,name:n.name||null,phone:n.phone||null,company:n.company||null,source:n.source||"self",rid:ut().substr(0,8),v:5};fetch(t,{method:"POST",body:JSON.stringify(i),keepalive:!0,headers:{"Content-Type":"application/json"}}).then(function(t){return t.json()}).then(function(t){tt.emit("identify",{email:e,result:t})}).catch(function(){})}},goal:function(t,e){Jt(t,e||{})},event:function(t,e){t&&zt(t,"object"==typeof e&&null!==e?Object.values(e)[0]||"":e||"")},getVid:function(){return v},getSid:function(){return p},getState:function(){return{sessCount:h,sessPV:m}},bus:tt},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ae):ae()}function rt(t,e){try{if(void 0===e)return void 0!==X[t]?X[t]:X[t]=localStorage.getItem(t);if(null===e)return delete X[t],void localStorage.removeItem(t);var n="object"==typeof e?JSON.stringify(e):String(e);X[t]=n,localStorage.setItem(t,n)}catch(t){return u=!0,null}}function at(t){try{var e=rt(t);return e?JSON.parse(e):null}catch(t){return null}}function ot(t,e){try{if(void 0===e)return sessionStorage.getItem(t);if(null===e)return void sessionStorage.removeItem(t);sessionStorage.setItem(t,"object"==typeof e?JSON.stringify(e):e)}catch(t){return null}}function ct(t){try{var e=ot(t);return e?JSON.parse(e):null}catch(t){return null}}function st(t,e,n){if(void 0===e){var i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=document.cookie.match(new RegExp("(?:^|; )"+i+"=([^;]*)"));return r?r[1]:null}var a=n?";expires="+new Date(Date.now()+864e5*n).toUTCString():"",o=location.hostname.replace(/^[^.]+/,"");o=o&&o.indexOf(".")>=0?";domain="+o:"",document.cookie=t+"="+e+a+o+";path=/;SameSite=Lax;Secure"}function lt(){return Date.now()}function ut(){var t=new Uint8Array(16);crypto.getRandomValues(t);for(var e="",n=0;n<16;n++)e+=(t[n]<16?"0":"")+t[n].toString(16);return e}function dt(){if(Q)return Q;var t=ot("_dh");if(t)return Q=t,t;var e=screen||{},n=function(t){for(var e=0,n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n)|0;return(e>>>0).toString(16).padStart(8,"0")}([e.width,e.height,e.colorDepth,navigator.hardwareConcurrency||0,Intl.DateTimeFormat().resolvedOptions().timeZone||""].join("|"));return Q=n,ot("_dh",n),n}function ft(t){try{var e=t.match(/^https?:\/\/([^\/?#]+)/i);return e?e[1].replace(/^www\./,"").toLowerCase():null}catch(t){return null}}function vt(t,e){var n=JSON.stringify(e);if(navigator.sendBeacon&&navigator.sendBeacon(t,new Blob([n],{type:"application/json"})))return!0;try{return fetch(t,{method:"POST",body:n,keepalive:!0,headers:{"Content-Type":"application/json"}}),!0}catch(t){return!1}}function pt(e){e.v=5,e.rid=ut().substr(0,8),l||vt(t,e)||ht(e)}function ht(t){var e=at("_fq")||[];e.push({payload:t,ts:lt()}),e.length>20&&e.shift(),rt("_fq",e)}function mt(){var t=at("_fq");if(t&&t.length){for(var e=[],n=lt(),i=0;i<t.length;i++)n-t[i].ts<=6e5&&e.push(t[i]);rt("_fq",null),e.length&&_t(e,0)}}function _t(e,n){n>=e.length||(e[n].payload.v=5,vt(t,e[n].payload),setTimeout(function(){_t(e,n+1)},200))}function gt(){d||f>=5||(d=setInterval(function(){f++;var t=at("_fq");t&&t.length>0&&mt(),(f>=5||!(at("_fq")||[]).length)&&(clearInterval(d),d=null)},6e4))}function yt(t){try{var e=indexedDB.open("_x",1);e.onupgradeneeded=function(t){t.target.result.createObjectStore("_x")},e.onsuccess=function(e){t(e.target.result)},e.onerror=function(){t(null)}}catch(e){t(null)}}function wt(t,e){yt(function(n){if(!n)return e(null);try{var i=n.transaction("_x","readonly").objectStore("_x").get(t);i.onsuccess=function(){e(i.result||null)},i.onerror=function(){e(null)}}catch(t){e(null)}})}function bt(t,e){yt(function(n){if(n)try{n.transaction("_x","readwrite").objectStore("_x").put(e,t)}catch(t){}})}
1function xt(){if(null!==_)return _;var t=0,e=navigator,n=screen||{};return e.webdriver||(t+=3),e.languages&&e.languages.length>0&&t++,n.width>0&&n.height>0&&t++,/Mobi|Android/i.test(e.userAgent)?("undefined"!=typeof DeviceMotionEvent&&t++,"ontouchstart"in window&&t++,(n.orientation||void 0!==window.orientation)&&t++,e.maxTouchPoints>0&&t++):(window.outerWidth>0&&t++,void 0!==window.speechSynthesis&&t++,n.colorDepth>=24&&t++,e.hardwareConcurrency>1&&t++),_=Math.min(t,14)}function St(){var t=0,e=navigator;try{e.webdriver&&(t|=1)}catch(t){}try{e.plugins&&0!==e.plugins.length||(t|=2)}catch(t){}try{e.languages&&0!==e.languages.length||(t|=4)}catch(t){}try{/chrome/i.test(e.userAgent)&&void 0===window.chrome&&(t|=8)}catch(t){}try{0===window.outerHeight&&(t|=16)}catch(t){}return t}function Tt(t){var e=ct("_lpv"),n=lt();if(e){var i=n-(e.ts||0);if(e.path===t&&i<5e3)return!1;if(e.path!==t&&i<300)return!1}var r=ct("_dd");if(r&&r.p===t){if(r.c++,ot("_dd",r),r.c>3)return ot("_lpv",{path:t,ts:n}),!1}else ot("_dd",{p:t,c:1});return ot("_lpv",{path:t,ts:n}),!0}function Et(){y=lt(),w=0,b=!1}function kt(){var t=w;return!b&&y>0&&(t+=lt()-y),Math.min(t,864e5)}function It(){k=lt()}function At(){return E}function Ot(){I||(A=lt(),I=setInterval(function(){var t=lt();"visible"===document.visibilityState&&(!document.hasFocus||document.hasFocus())&&k>0&&t-k<=5e3&&(E+=Math.min(1e3,t-A)),A=t},1e3))}function Nt(){var t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,1),e=window.innerHeight||document.documentElement.clientHeight||0,n=Math.round(((window.scrollY||window.pageYOffset||0)+e)/t*100);n>x&&(x=Math.min(n,100))}function Lt(){Object.keys(nt).forEach(function(t){document.addEventListener(t,function(){S|=nt[t]},{once:!0,passive:!0})})}function jt(t,e){var n=$.get(t);n||(n={ms:0,start:0,vis:!1},$.set(t,n));var i=lt();e&&!n.vis?(n.start=i,n.vis=!0):!e&&n.vis&&(n.ms+=i-n.start,n.vis=!1)}function Ct(){var t=0,e=lt();return $.forEach(function(n){t+=n.ms,n.vis&&(t+=e-n.start)}),t}function Ht(){"undefined"!=typeof IntersectionObserver&&(B=new IntersectionObserver(function(t){t.forEach(function(t){var e=t.target;if(!z.has(e)||e.hasAttribute("data-content"))if(t.isIntersecting&&t.intersectionRatio>=.1)J.has(e)||z.has(e)||J.set(e,setTimeout(function(){J.delete(e),z.has(e)||(z.add(e),function(t){if(!(T.length>=100)){if(t.hasAttribute("data-cv")){var e=parseInt(t.getAttribute("data-cv"),10);if(e){if(O||(O="undefined"!=typeof Set?new Set:{_s:[],has:function(t){return this._s.indexOf(t)>=0},add:function(t){this._s.push(t)}}),O.has(e))return;O.add(e),T.push({type:"cv",cid:e,ts:lt()}),rt("_fc"+e,parseInt(rt("_fc"+e)||"0",10)+1),ot("_sf"+e,parseInt(ot("_sf"+e)||"0",10)+1)}}if(t.hasAttribute("data-ev")){var n=(t.getAttribute("data-ev")||"").trim().toLowerCase().slice(0,100),i=(t.getAttribute("data-ev-val")||"").trim().slice(0,200);n&&T.push({type:"ev",name:n,value:i,ts:lt()})}if(t.attributes)for(var r=0;r<t.attributes.length;r++)if(0===t.attributes[r].name.indexOf("data-ste-")){var a=parseInt(t.attributes[r].name.substr(9),10);a&&tt.emit("ste_trigger",{cid:a});break}}}(e))},1e3)),e.hasAttribute("data-content")&&jt(e,!0);else{var n=J.get(e);n&&(clearTimeout(n),J.delete(e)),e.hasAttribute("data-content")&&jt(e,!1)}})},{threshold:.1}),(V=new MutationObserver(function(t){t.forEach(function(t){t.addedNodes.forEach(function(t){var e;1===t.nodeType&&((e=t).hasAttribute&&(e.hasAttribute("data-cv")||e.hasAttribute("data-ev")||e.hasAttribute("data-content"))&&qt(e),t.querySelectorAll&&t.querySelectorAll("[data-cv],[data-ev],[data-content]").forEach(qt))})})})).observe(document.body,{childList:!0,subtree:!0}),document.querySelectorAll("[data-ev],[data-content]").forEach(qt))}function qt(t){B&&!z.has(t)&&B.observe(t)}function Mt(){if(L&&(clearTimeout(L),L=null),N.length){var t=N.splice(0);1===t.length?pt({type:"outbound",vid:v,sid:p,ts:t[0].ts,url:t[0].url,path:t[0].path}):pt({type:"outbound_batch",vid:v,sid:p,clicks:t.map(function(t){return{ts:t.ts,url:t.url,path:t.path}})})}}function Dt(){j||(j=ct("_pr")),j&&(C.push({url:j.url,return_after_ms:lt()-j.left_at}),j=null,ot("_pr",null))}function Rt(t){if(!t||!t.length)return!0;for(var e=0;e<t.length;e++){var n=t[e];if("scroll_depth"===n.field&&"gte"===n.op&&x<(n.value||0))return!1;
1if("has_interacted"===n.field&&"eq"===n.op&&!0===n.value&&0===S)return!1;if("css_exists"===n.field&&"eq"===n.op&&n.value&&!document.querySelector(n.value))return!1}return!0}function Pt(t){var e=t.id;return!("1"===rt("_cg"+e)||!t.fire_after_dismiss&&"1"===rt("_cd"+e)||t.max_fires>0&&parseInt(rt("_fc"+e)||"0",10)>=t.max_fires||t.max_per_session>0&&parseInt(ot("_sf"+e)||"0",10)>=t.max_per_session)}function Ft(t,e){var n=t.display||{};if(n.triggers&&n.triggers.length){var i=!1,r=[],a=function(){i||(i=!0,r.forEach(function(t){t()}),Bt(t,e))};n.triggers.forEach(function(e){var i=Ut(t,e.type,e.value,n,a);i&&r.push(i)})}else{var o=n.trigger||"immediate",c=n.value||0;Ut(t,o,c,n,function(){Bt(t,e)})}}function Ut(t,e,n,i,r){switch(e){case"immediate":return r(),null;case"dwell":var a=setTimeout(r,1e3*(n||5));return function(){clearTimeout(a)};case"scroll":var o=function(){Nt(),x>=(n||50)&&(window.removeEventListener("scroll",o),r())};return window.addEventListener("scroll",o,{passive:!0}),function(){window.removeEventListener("scroll",o)};case"scroll_to_element":var c=n||i.target_selector;if(c){var s=document.querySelector(c);if(s){var l=document.createElement("div");l.setAttribute("data-ste-"+t.id,"1"),l.style.cssText="width:1px;height:1px;position:absolute;pointer-events:none",s.appendChild(l),qt(l);var u=function(e){e.cid===t.id&&(tt.off("ste_trigger",u),r())};return tt.on("ste_trigger",u),function(){tt.off("ste_trigger",u)}}}return null;case"exit_intent":if(!/Mobi|Android/i.test(navigator.userAgent)){var d=function(t){t.clientY<=0&&(document.removeEventListener("mouseout",d),r())};return document.addEventListener("mouseout",d),function(){document.removeEventListener("mouseout",d)}}return null;default:return null}}function Bt(t,e){var n=t.id;if(!R[n]){var i=t.payload_type||"custom";if(F&&("corner"===i||"sticky"===i||"footer"===i))return f("broadcast banner active");R[n]=t;var r=document.createElement("div");if(r.id="_c"+n,r.setAttribute("data-cv",String(n)),r.setAttribute("data-type",i),r.style.cssText="all:initial;",t.payload_css){var a=document.createElement("style");a.textContent=t.payload_css,r.appendChild(a)}if(t.payload_html){var o=document.createElement("div");o.innerHTML=t.payload_html,r.appendChild(o)}var c=t.display||{},s="modal"===i||"fullscreen"===i?"99999":"99998";if("inline"===i||"embed"===i){var u=c.target_selector?document.querySelector(c.target_selector):null;if(!u)return delete R[n],f("target_selector not found: "+c.target_selector);u.insertAdjacentElement("afterend",r)}else if("popover"===i){var d=c.target_selector?document.querySelector(c.target_selector):null;if(!d)return delete R[n],f("popover anchor not found: "+c.target_selector);r.style.cssText+="position:absolute;z-index:"+s+";",d.style.position=d.style.position||"relative",d.appendChild(r)}else r.style.cssText+="position:fixed;z-index:"+s+";",document.body.appendChild(r);if(qt(r),t.payload_js)try{new Function("wrapper","vid","sid","cid","bus","_a",t.payload_js)(r,v,p,n,tt,window._a)}catch(t){l&&console.warn("[THN preview] payload_js error for campaign "+n+":",t)}}function f(t){if(l)try{console.warn("[THN preview] campaign "+n+" render aborted ("+t+")"+(e&&e.length?" â trying fallback":""))}catch(t){}e&&e.length&&Bt(e.shift(),e)}}function Jt(e,n){if(!l){rt("_cg"+e,"1");var i={type:"campaign_goal",vid:v,cid:e,goal_data:n||{},rid:ut().substr(0,8),v:5};s&&(i.test_token=s),fetch(t,{method:"POST",body:JSON.stringify(i),keepalive:!0,headers:{"Content-Type":"application/json"}}).then(function(t){return t.json()}).then(function(t){if(t&&t.chain){var i=at("_cp")||{};i[t.chain.campaign_id]={timing:t.chain.timing||"next_pv",expires:t.chain.expires||0,created:lt()},rt("_cp",i)}tt.emit("goal",{cid:e,data:n,chain:t&&t.chain})}).catch(function(){ht(i),gt()})}}function Wt(){rt("_stp",null),rt("_stpt",null);try{bt("stp","")}catch(t){}}function zt(e,n){var i=(e+"").trim().toLowerCase().slice(0,100);if(i){var o=null!=n?(n+"").trim().slice(0,200):"";vt(t,{type:"event",vid:v,sid:p,hit_id:r,dt:a,event_name:i,event_type:"click",event_value:o})}}function $t(){if(!i&&r){i=!0,Gt();var e=kt(),n=Ct();Nt();var o=x,c={type:"unload",vid:v,sid:p,ts:lt(),hit_id:r,dt:a,dw:e,sd:o,iact:S,sc:h,fc:H,oc:q,et:At(),v:5};n>0&&(c.content_dwell=n),T.length&&(c.events=T),C.length&&(c.outbound_returns=C),G&&(c.mt=1),Z&&(c.cp=1),s&&(c.test_token=s),c.rid=ut().substr(0,8),vt(t,c),Vt(!0,c.rid),T=[],C=[]}}function Vt(t,e){rt("_rs",{hit_id:r,dt:a,dw:kt(),content_dwell:Ct(),engaged:E,iact:S,sd:x,events:T,vid:v,sid:p,test_token:s,sc:h,fc:H,oc:q,mt:G?1:0,cp:Z?1:0,rid:e||null,sent:!!t})}function Yt(){if(r&&!i){var e=Ct();Nt();try{var n=at("_s");n&&(n.lastActive=lt(),rt("_s",n))}catch(t){}vt(t,{type:"pulse",vid:v,sid:p,hit_id:r,dt:a,dw:kt(),sd:x,iact:S,cd:e,sc:h,fc:H,et:At()}),Vt(!1)}}function Kt(){D||(D=setTimeout(function(){Yt(),D=setInterval(Yt,6e4)},12e3))}function Gt(){D&&(clearTimeout(D),clearInterval(D),D=null)}function Zt(){P||(Qt(),P=setInterval(Qt,3e4))}function Qt(){var e=t.substring(0,t.lastIndexOf("/"))+"/n";fetch(e,{method:"GET"}).then(function(t){return 204===t.status?null:t.json()}).then(function(t){if(!t)return F&&F._expired&&te(),void(F&&(F._expired=!0));if((!F||F.id!==t.id)&&"1"!==rt("_bnc_"+t.id)){var e=t.max_show||1;parseInt(ot("_bn_"+t.id)||"0",10)>=e||function(t){if(t.filter_devices&&t.filter_devices.length){var e=/Mobi|Android/i.test(navigator.userAgent)?"m":"d";if(/iPad|Tablet/i.test(navigator.userAgent)&&(e="t"),t.filter_devices.indexOf(e)<0)return!1}if(t.filter_countries&&t.filter_countries.length&&(!o||t.filter_countries.indexOf(o.toUpperCase())<0))return!1;if(t.filter_path_pattern){if(t.filter_path_pattern.length>200)return!1;try{if(!new RegExp(t.filter_path_pattern).test(location.pathname))return!1}catch(t){return!1}}return!0}(t)&&(t.delay_minutes>0&&Date.now()<(t.activated_at||0)+6e4*t.delay_minutes||Xt(t))}}).catch(function(){})}function Xt(e){if(te(),F=e,!l){var n=parseInt(ot("_bn_"+e.id)||"0",10)+1;ot("_bn_"+e.id,String(n))}var i=document.createElement("div");if(i.id="_bn",i.style.cssText="all:initial;position:fixed;z-index:100000;",e.payload_css){var r=document.createElement("style");r.textContent=e.payload_css,i.appendChild(r)}if(e.payload_html){var a=document.createElement("div");a.innerHTML=e.payload_html,i.appendChild(a)}document.body.appendChild(i),U=i;var o=e.id,c=!1;function s(){c||(c=!0,l||(rt("_bnc_"+o,"1"),vt(t,{type:"broadcast_click",vid:v,bid:o})))}if(i.addEventListener("click",function(t){var e=t.target.closest?t.target.closest("a"):null;e&&e.href&&s()},!0),e.payload_js)try{new Function("wrapper","dismiss","trackClick",e.payload_js)(i,function(){te()},s)}catch(t){l&&console.warn("[THN preview] broadcast payload_js error:",t)}l||vt(t,{type:"broadcast_imp",vid:v,bid:o})}function te(){U&&U.parentNode&&U.parentNode.removeChild(U),U=null,F=null}function ee(){var t;"hidden"===document.visibilityState?(!b&&y>0&&(w+=lt()-y,b=!0),$.forEach(function(t){t.vis&&(t.ms+=lt()-t.start,t.vis=!1,t._w=!0)}),I&&(clearInterval(I),I=0),Mt(),Vt(!1),$t(),P&&(clearInterval(P),P=null),d&&(clearInterval(d),d=null)):(i&&(i=!1),b&&(y=lt(),b=!1),t=lt(),$.forEach(function(e){e._w&&(e.start=t,e.vis=!0,e._w=!1)}),Dt(),Kt(),Zt(),Ot())}function ne(){i||(Mt(),$t())}function ie(t){if(t.persisted){if(!Tt(location.pathname))return;Gt(),Dt(),i=!1,r=null,T=[],O=null,R={},Et(),x=0,S=0,E=0,k=0,z="undefined"!=typeof WeakSet?new WeakSet:{_s:[],has:function(t){return this._s.indexOf(t)>=0},add:function(t){this._s.push(t)}},$=new Map,B&&(B.disconnect(),B=null),V&&(V.disconnect(),V=null),Lt(),re(),Ht(),Ot(),Kt(),Zt()}}function re(){if(!document.title||0!==document.title.indexOf("Page Not Found")){var e=location.pathname,n={type:"pageview",vid:v,sid:p,ts:lt(),path:e,ref:document.referrer?ft(document.referrer):null,env:xt(),dh:dt(),hl:St(),sc:h,spv:m,rid:ut().substr(0,8),v:5};s&&(n.test_token=s),c&&(n._t=c);var i=new AbortController,l=setTimeout(function(){i.abort()},5e3);fetch(t,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json"},keepalive:!0,signal:i.signal}).then(function(t){return clearTimeout(l),t.json()}).then(function(t){r=t.hit_id,a=t.dt,o=t.co||"",t.region,O=null,t.tag&&function(t){if(t&&"pending"!==t){if("applied"===t||"duplicate"===t){var e=rt("_stc")||"";e=e?e.split(","):[],c&&e.indexOf(c)<0&&e.push(c),rt("_stc",e.join(","))}Wt(),tt.emit("smart_tag",{status:t,tid:c}),c=null}}(t.tag),tt.emit("pageview",{hit_id:r,co:o}),function(t){if(t&&t.length){var e=at("_cp")||{},n=!1;for(var i in e){var r=e[i],a="string"==typeof r?r:r&&r.timing||"next_pv",o="object"==typeof r&&r&&r.expires||0,c="object"==typeof r&&r&&r.created||0,s="object"==typeof r&&r&&r.attempts||0;if(o>0&<()>o||c>0&<()-c>6048e5)delete e[i],n=!0;else if("next_pv"===a||"immediate"===a){for(var l=!1,u=0;u<t.length;u++)if(t[u].id===parseInt(i,10)){t[u]._chained=!0,l=!0;break}if(!l){if(s+=1,"object"==typeof r&&r?(r.attempts=s,e[i]=r):e[i]={timing:a,expires:o,created:c,attempts:s},n=!0,3===s&&!ot("_cw_"+i)){try{console.warn("[THN] chain pending for campaign "+i+" but target not in
1worker response â its rules may not match this page, or it may be paused/expired. Attempts:",s)}catch(t){}ot("_cw_"+i,"1")}s>=10&&delete e[i]}}}n&&rt("_cp",Object.keys(e).length?e:null);for(var d=t.slice().sort(function(t,e){return(t.priority||0)-(e.priority||0)||(t.id||0)-(e.id||0)}),f=0;f<d.length;f++){var v=d[f];if(v._chained){if(!Rt(v.client_rules))continue;Ft(v,[]),delete e[v.id],rt("_cp",Object.keys(e).length?e:null)}else Pt(v)&&Rt(v.client_rules)&&Ft(v,[])}}}(t.campaigns||[]),Zt()}).catch(function(){clearTimeout(l),ht(n),gt()})}}function ae(){var r,a,o,d,f;document.prerendering?document.addEventListener("prerenderingchange",function(){ae()},{once:!0}):"hidden"!==document.visibilityState?(window.addEventListener("pageshow",ie),function(){try{if(!et)return;var t=(et.src||"").match(/[?&]i=([^&]*)/);if(!t)return;var e=t[1],n=rt("_iid");if(n&&n!==e){rt("_0",null),rt("_s",null),rt("_rs",null),rt("_fq",null),rt("_cp",null),rt("_ct",null),rt("_cte",null),st("_0",null,0);try{indexedDB.deleteDatabase("_x")}catch(t){}X={},v=null,p=null,h=1,m=0}n!==e&&rt("_iid",e)}catch(t){}}(),(r=rt("_0"))&&n.test(r)?(v=r,st("_0",r,e)):(r=st("_0"))&&n.test(r)?(v=r,rt("_0",r)):u&&(r=ot("_0"))&&n.test(r)?(v=r,st("_0",r,e)):(r=ut(),v=r,g=!0,rt("_0",r),st("_0",r,e),u&&ot("_0",r)),g?wt("vid",function(t){t&&n.test(t)&&t!==v?(v=t,g=!1,rt("_0",t),st("_0",t,e),tt.emit("vid_merge",{vid:t,source:"idb"})):bt("vid",v)}):v&&bt("vid",v),mt(),function(){var e=at("_rs");if(e&&!e.sent&&e.hit_id){var n={type:"unload",vid:e.vid||v,sid:e.sid||p,ts:lt(),hit_id:e.hit_id,dt:e.dt,dw:e.dw||0,sd:e.sd||0,iact:e.iact||0,sc:e.sc||1,fc:e.fc||0,oc:e.oc||0,et:e.engaged||0,v:5};e.content_dwell>0&&(n.content_dwell=e.content_dwell),e.events&&e.events.length&&(n.events=e.events),e.mt&&(n.mt=1),e.cp&&(n.cp=1),e.test_token&&(n.test_token=e.test_token),n.rid=e.rid||ut().substr(0,8),vt(t,n),rt("_rs",null)}else rt("_rs",null)}(),a=at("_s"),o=lt(),a&&a.sid&&o-a.lastActive<=18e5?(p=a.sid,h=a.sessCount||1,a.lastActive=o,rt("_s",a)):(p=ut(),h=a&&a.sessCount?a.sessCount+1:1,rt("_s",{sid:p,lastActive:o,sessCount:h,fires:{}}),ot("_spv",null)),m=parseInt(ot("_spv")||"0",10)+1,ot("_spv",String(m)),function(){var t=new URLSearchParams(location.search),e=t.get("_t"),n=(rt("_stc")||"").split(",");if(e){t.delete("_t");try{history.replaceState(null,"",location.pathname+(t.toString()?"?"+t.toString():"")+location.hash)}catch(t){}if(!it.test(e))return;if(n.indexOf(e)>=0)return;return c=e,rt("_stp",e),rt("_stpt",String(lt())),void bt("stp",e)}var i=rt("_stp");if(i){var r=parseInt(rt("_stpt")||"0",10);return!it.test(i)||n.indexOf(i)>=0||r&<()-r>3888e6?void Wt():void(c=i)}wt("stp",function(t){t&&it.test(t)&&!c&&(rt("_stc")||"").split(",").indexOf(t)<0&&(c=t,rt("_stp",t),rt("_stpt")||rt("_stpt",String(lt())))})}(),function(){var e=new URLSearchParams(location.search),n=e.get("_cp"),i=e.get("_bp"),r=e.get("_tp");if(!n&&!i&&!r)return!1;if(l=!0,n){var a=n.match(/^(\d+):/);if(!a)return console.warn("[THN preview] _cp token missing cid prefix:",n),!0;var o=t.substring(0,t.lastIndexOf("/"))+"/c/"+a[1]+"/payload?_cp="+encodeURIComponent(n);console.log("[THN preview] fetching campaign payload:",o),fetch(o).then(function(t){return t.ok?t.json():(console.warn("[THN preview] fetch returned",t.status,t.statusText),t.text().then(function(t){return console.warn("[THN preview] body:",t),null}))}).then(function(t){t&&(t.error?console.warn("[THN preview] worker error:",t):t.id?(console.log("[THN preview] rendering campaign",t.id,"type:",t.payload_type),Bt(t)):console.warn("[THN preview] response missing id:",t))}).catch(function(t){console.warn("[THN preview] fetch failed:",t)})}if(i){var c=i.match(/^(\d+):/);if(!c)return console.warn("[THN preview] _bp token missing bid prefix:",i),!0;var s=t.substring(0,t.lastIndexOf("/"))+"/n/"+c[1]+"/preview?_bp="+encodeURIComponent(i);console.log("[THN preview] fetching broadcast payload:",s),fetch(s).then(function(t){return t.ok?t.json():(console.warn("[THN preview] broadcast fetch returned",t.status,t.statusText),t.text().then(function(t){return console.warn("[THN preview] body:",t),null}))}).then(function(t){t&&(t.error?console.warn("[THN preview] broadcast worker error:",t):t.id?(console.log("[THN preview] rendering broadcast",t.id,"status:",t.status),Xt(t)):console.warn("[THN preview] broadcast response missing id:",t))}).catch(function(t){console.warn("[THN preview] broadcast fetch failed:",t)})}if(r){var u=r.match(/^(\d+):/);if(!u)return console.warn("[THN preview] _tp token missing tpl_id prefix:",r),!0;var d=t.substring(0,t.lastIndexOf("/"))+"/t/"+u[1]+"/preview?_tp="+encodeURIComponent(r);console.log("[THN preview] fetching template payload:",d),fetch(d).then(function(t){return t.ok?t.json():(console.warn("[THN preview] template fetch returned",t.status,t.statusText),t.text().then(function(t){return console.warn("[THN preview] body:",t),null}))}).then(function(t){t&&(t.error?console.warn("[THN preview] template worker error:",t):t.id?(console.log("[THN preview] rendering template",t.id),Xt(t)):console.warn("[THN preview] template response missing id:",t))}).catch(function(t){console.warn("[THN preview] template fetch failed:",t)})}return!0}()?tt.emit("ready",{preview:!0}):(function(){var t=new URLSearchParams(location.search),e=t.get("_ctest");
1if(e){rt("_ct",e);try{var n=atob(e).split(":"),i=parseInt(n[n.length-1],10);i&&rt("_cte",String(i))}catch(t){}t.delete("_ctest"),history.replaceState(null,"",location.pathname+(t.toString()?"?"+t.toString():"")+location.hash)}var r=rt("_ct"),a=parseInt(rt("_cte")||"0",10);r&&a&&Date.now()/1e3<=a?s=r:r&&(rt("_ct",null),rt("_cte",null),s=null)}(),Tt(location.pathname)&&(xt(),re(),Ht(),document.body.addEventListener("click",function(e){var n=e.target,i=n.closest?n.closest("[data-cx]"):null;if(i){var r=i.closest("[data-cv]"),a=parseInt(r?r.getAttribute("data-cv"):i.getAttribute("data-cx"),10);a&&(function(t){if(!l){var e={type:"campaign_click",vid:v,cid:t};s&&(e.test_token=s),pt(e)}}(a),tt.emit("campaign_click",{cid:a}))}var o=n.closest?n.closest("[data-cd]"):null;if(o){var c=o.closest("[data-cv]"),u=parseInt(c?c.getAttribute("data-cv"):o.getAttribute("data-cd"),10);if(u){!function(e){if(!l){var n={type:"campaign_dismiss",vid:v,cid:e};s&&(n.test_token=s),fetch(t,{method:"POST",body:JSON.stringify(n),keepalive:!0,headers:{"Content-Type":"application/json"}}).then(function(t){return t.json()}).then(function(t){if(t&&t.chain){var e=at("_cp")||{};e[t.chain.campaign_id]={timing:t.chain.timing||"next_pv",expires:t.chain.expires||0,created:lt()},rt("_cp",e)}}).catch(function(){ht(n),gt()})}}(u),rt("_cd"+u,"1");var d=document.getElementById("_c"+u);d&&d.remove(),tt.emit("campaign_dismiss",{cid:u})}}var f=n.closest?n.closest("[data-cg]"):null;if(f){var p=f.closest("[data-cv]"),h=parseInt(p?p.getAttribute("data-cv"):f.getAttribute("data-cg"),10);h&&Jt(h,function(t,e){var n=Object.assign({},K[e]||{}),i=t.querySelector("form");
1return i&&new FormData(i).forEach(function(t,e){var r=i.elements[e];(!r||"password"!==r.type&&"hidden"!==r.type)&&(n[e]=t)}),n}(f,h))}var m=n.closest?n.closest("[data-cf-val]"):null;if(m){var _=m.closest("[data-cv]");if(_){var g=parseInt(_.getAttribute("data-cv"),10),y=m.getAttribute("data-cf-key")||"value",w=m.getAttribute("data-cf-val");K[g]||(K[g]={}),K[g][y]=w}}var b=n.closest?n.closest("[data-ex]"):null;if(b&&!Y.has(b)){Y.add(b);var x=b.getAttribute("data-ex");x&&zt(x,b.getAttribute("data-ex-val")||"")}},!0),document.body.addEventListener("submit",function(t){var e=t.target;if(e&&"FORM"===e.tagName){var n=e.closest("[data-cv]");if(n){t.preventDefault();var i=parseInt(n.getAttribute("data-cv"),10);i&&Jt(i,function(t,e){var n=Object.assign({},K[e]||{});return new FormData(t).forEach(function(e,i){var r=t.elements[i];(!r||"password"!==r.type&&"hidden"!==r.type)&&(n[i]=e)}),n}(e,i))}}},!0),d=window._thn&&!0===window._thn.autoIdentify,document.body.addEventListener("submit",function(t){if(!l){var e=t.target;if(e&&"FORM"===e.tagName&&!e.closest("[data-cv]")){var n=e.hasAttribute("data-thn-identify");if(!e.hasAttribute("data-thn-no-identify")&&(d||n)){var i=e.querySelector('input[type="email"]')||e.querySelector('input[name="email"]')||e.querySelector('input[name="e-mail"]');if(i){var r=(i.value||"").trim().toLowerCase();if(r&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)&&!W[r]){W[r]=!0;var a="form:";if(e.id)a+=e.id;else try{a+=new URL(e.action,location.href).pathname}catch(t){a+="unknown"}var o=e.querySelector('input[name="name"]')||e.querySelector('input[name="full_name"]')||e.querySelector('input[name="fullname"]'),c=o?(o.value||"").trim():null;window._a.identify(r,{source:a,name:c})}}}}}},!0),(f=document.getElementById("searchform"))&&f.addEventListener("submit",function(){var t=document.getElementById("s");if(t){var e=(t.value||"").trim();e&&zt("site_search",e.slice(0,100))}}),function(){if("undefined"!=typeof BroadcastChannel)try{var t=new BroadcastChannel("thn_tab");t.onmessage=function(e){"ping"===e.data?(G=!0,t.postMessage("pong")):"pong"===e.data&&(G=!0)},t.postMessage("ping"),window.addEventListener("pagehide",function(){try{t.close()}catch(t){}},{once:!0})}catch(t){}}(),document.addEventListener("copy",function(){Z=!0},{once:!0,passive:!0}),Et(),Lt(),function(){["scroll","keydown","touchstart","click"].forEach(function(t){document.addEventListener(t,It,{passive:!0})});var t=0;document.addEventListener("mousemove",function(){var e=lt();e-t>500&&(t=e,It())},{passive:!0})}(),Ot(),Kt(),window.addEventListener("scroll",Nt,{passive:!0}),Nt(),function(){var t=location.hostname;function e(e){if(2!==e.button){var n=e.target;if(n&&("A"!==n.tagName&&(n=n.closest?n.closest("a"):null),n&&n.href)){var i=n.href;if(0!==i.indexOf("javascript:")&&0!==i.indexOf("mailto:")&&0!==i.indexOf("tel:")&&"#"!==i.charAt(0))try{var r=new URL(i,location.origin);if(r.hostname===t||r.hostname==="www."+t||t==="www."+r.hostname)return;var a=(r.pathname.split(".").pop()||"").toLowerCase();if(/^(jpe?g|png|gif|webp|svg|avif|bmp|ico|tiff?|pdf|docx?|xlsx?|pptx?|csv|txt|rtf|zip|rar|7z|tar|gz|mp[34]|wav|ogg|avi|mov|mkv|flv|wmv)$/.test(a))return H++,N.push({url:i,ts:lt(),path:location.pathname}),L&&clearTimeout(L),void(L=setTimeout(Mt,500));if(q++,N.push({url:i,ts:lt(),path:location.pathname}),"_blank"===n.target||e.metaKey||e.ctrlKey||1===e.button){var o=lt(),c=i,s=setInterval(function(){if(document.hasFocus()){clearInterval(s);var t=M.indexOf(s);t>=0&&M.splice(t,1),C.push({url:c,return_after_ms:lt()-o})}},1e3);M.push(s),M.length>10&&clearInterval(M.shift()),setTimeout(function(){clearInterval(s);var t=M.indexOf(s);t>=0&&M.splice(t,1)},3e5)}else ot("_pr",j={url:i,left_at:lt()});L&&clearTimeout(L),L=setTimeout(Mt,500)}catch(t){}}}}document.addEventListener("click",e,!0),document.addEventListener("auxclick",e,!0)}(),document.addEventListener("visibilitychange",ee),window.addEventListener("pagehide",ne),document.addEventListener("visibilitychange",function(){i||Vt(!1)}),tt.emit("ready",{vid:v,sid:p})))):document.addEventListener("visibilitychange",function t(){"visible"===document.visibilityState&&(document.removeEventListener("visibilitychange",t),ae())})}}();
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.