/*! For license information please see cursor-helper.min.js.LICENSE.txt */ (()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){e=function(){return n};var r,n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(r){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),a=new C(n||[]);return c(i,"_invoke",{value:T(t,r,a)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var d="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function E(){}var S={};f(S,u,(function(){return this}));var O=Object.getPrototypeOf,L=O&&O(O(I([])));L&&L!==o&&i.call(L,u)&&(S=L);var x=E.prototype=b.prototype=Object.create(S);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,r){function n(o,c,a,u){var l=h(e[o],e,c);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(l.arg)}var o;c(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}})}function T(t,e,n){var o=d;return function(i,c){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===i)throw c;return{value:r,done:!0}}for(n.method=i,n.arg=c;;){var a=n.delegate;if(a){var u=_(a,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=h(t,e,n);if("normal"===l.type){if(o=n.done?v:m,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function _(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,c=function t(){for(;++o=0;--o){var c=this.tryEntries[o],a=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var u=i.call(c,"catchLoc"),l=i.call(c,"finallyLoc");if(u&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e=0;--i){var c=this.tryEntries[i],a=c.completion;if("root"===c.tryLoc)return o("end");if(c.tryLoc<=this.prev){var u=n.call(c,"catchLoc"),l=n.call(c,"finallyLoc");if(u&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),D(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function m(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,o)}var y=function(){var t,e=(t=d().mark((function t(e,r){var n,o,i,c,a,u,l;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return n=t.sent,t.next=5,n.text();case 5:if(o=t.sent,i=new DOMParser,c=i.parseFromString(o,"image/svg+xml"),(a=c.getElementsByTagName("svg")).length){for(a=a[0],u=a.attributes,l=0;l3&&void 0!==arguments[3]?arguments[3]:{},c=new CustomEvent(e,{detail:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},bubbles:null===(r=i.bubbles)||void 0===r||r,cancelable:null===(n=i.cancelable)||void 0===n||n,composed:null!==(o=i.composed)&&void 0!==o&&o});t.dispatchEvent(c)},L={};"undefined"!=typeof window&&(window.SinchDS=window.SinchDS||L);var x=function(t,e){L[t]=e};function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var n=window.scrollY||window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;if(!r&&null===e&&(t=window.innerHeight,!(A!==t?(A=t,0):k)))return I=n,!1;var o={previousScroll:I,currentScroll:n,forcedDirection:e},i=O(document,C.BEFORE_CHANGE,o,{cancelable:!0});if(i&&i.defaultPrevented)return!1;var c,a=function(t){if(!t)return null;var e=t.toLowerCase().split(",").map((function(t){return t.trim()}));return e.every((function(t){return Object.values(N).includes(t)}))?{direction:e[0],includeTop:e.includes(N.TOP)}:null}(e);return a?(document.body.classList.toggle("scrolling-up",a.direction===N.UP),document.body.classList.toggle("scrolling-down",a.direction===N.DOWN),a.includeTop&&document.body.classList.toggle("is-scrolled-top",n<100)):(n<100?document.body.classList.add("is-scrolled-top"):document.body.classList.remove("is-scrolled-top"),null!==(c=window.SinchDS)&&void 0!==c&&c.__smoothScrollInProgress||Math.abs(n-I)>=1&&(n>I?(document.body.classList.remove("scrolling-up"),document.body.classList.add("scrolling-down")):(document.body.classList.add("scrolling-up"),document.body.classList.remove("scrolling-down")))),I=n,O(document,C.AFTER_CHANGE,T(T({},o),{},{appliedClasses:{isScrolledTop:document.body.classList.contains("is-scrolled-top"),scrollingUp:document.body.classList.contains("scrolling-up"),scrollingDown:document.body.classList.contains("scrolling-down")}})),setTimeout((function(){k=!1}),50),!0}catch(t){return O(document,C.ERROR,{error:t.message,timestamp:(new Date).getTime()}),console.error("Scroll direction error:",t),!1}})),document.getElementById("topSubnavContainer"),document.getElementById("topSubnavIcon"),document.getElementById("topSubnavIconInner"),document.getElementById("topSubnavSiteTitle"),document.getElementById("topSubnavSiteTitleInner"),document.getElementById("topSubnavSectionTitle"),document.getElementById("topSubnavMenuInner"),document.getElementById("topSubnavMoreInner"),document.getElementById("topSubnavExtraContent"),document.getElementById("topSubnavExtraContentInner");x("scrollToElement",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&document.querySelectorAll("[data-smoothscroll-offset=true], #wpadminbar").forEach((function(t){r-=t.offsetHeight}));var n=t.getBoundingClientRect().top+window.scrollY+r,o=window.scrollY,i=n-o,c=null;window.SinchDS||(window.SinchDS={}),requestAnimationFrame((function t(r){null===c&&(window.SinchDS.__smoothScrollInProgress=!0,c=r);var n,a,u,l,s=r-c,f=(n=s,a=o,u=i,(n/=e/2)<1?u/2*n*n+a:-u/2*(--n*(n-2)-1)+a);window.scrollTo(0,f),s0&&void 0!==arguments[0]?arguments[0]:{};(t=document.createElement("style")).type="text/css",t.appendChild(document.createTextNode("\n .cursor-helper-scale {\n transform: scale(0.5);\n transform-origin: bottom right;\n transition: transform .15s linear;\n \n }\n \n .cursor-helper.show .cursor-helper-scale {\n transform: scale(1);\n }\n ")),document.head.appendChild(t),c.config=n(n({},c.config),e),console.log("Cursor Helper initialized with config:",c.config),document.addEventListener("mouseover",s),document.addEventListener("mouseout",f),document.addEventListener("mousemove",p)}(cursorHelperPhpData)})();