/*! For license information please see lazy-svg.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 d(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),a=new A(n||[]);return c(i,"_invoke",{value:D(t,r,a)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=d;var h="suspendedStart",y="suspendedYield",m="executing",v="completed",g={};function b(){}function w(){}function S(){}var E={};f(E,u,(function(){return this}));var O=Object.getPrototypeOf,L=O&&O(O(C([])));L&&L!==o&&i.call(L,u)&&(E=L);var j=S.prototype=b.prototype=Object.create(E);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(o,c,a,u){var l=p(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 D(t,e,n){var o=h;return function(i,c){if(o===m)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=I(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===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var l=p(t,e,n);if("normal"===l.type){if(o=n.done?v:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function I(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,I(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=p(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 T(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function C(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),_(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;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(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 n=function(){var t,n=(t=e().mark((function t(r,n){var o,i,c,a,u,l,s;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(r);case 2:return o=t.sent,t.next=5,o.text();case 5:if(i=t.sent,c=new DOMParser,a=c.parseFromString(i,"image/svg+xml"),(u=a.getElementsByTagName("svg")).length){for(u=u[0],l=u.attributes,s=0;s3&&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)},p={};"undefined"!=typeof window&&(window.SinchDS=window.SinchDS||p);var h=function(t,e){p[t]=e};function y(t){return y="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},y(t)}function m(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 v(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,!(O!==t?(O=t,0):L)))return E=n,!1;var o={previousScroll:E,currentScroll:n,forcedDirection:e},i=d(document,S.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(b).includes(t)}))?{direction:e[0],includeTop:e.includes(b.TOP)}:null}(e);return a?(document.body.classList.toggle("scrolling-up",a.direction===b.UP),document.body.classList.toggle("scrolling-down",a.direction===b.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-E)>=1&&(n>E?(document.body.classList.remove("scrolling-up"),document.body.classList.add("scrolling-down")):(document.body.classList.add("scrolling-up"),document.body.classList.remove("scrolling-down")))),E=n,d(document,S.AFTER_CHANGE,v(v({},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(){L=!1}),50),!0}catch(t){return d(document,S.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");h("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];document.addEventListener("DOMContentLoaded",(function(){i(),t&&setInterval((function(){i()}),1e3)}))}("undefined"!=typeof isAdmin&&isAdmin)})();