function deepExtend(r){r=r||{};for(var e=arguments.length,n=1;n<e;n++){var t=arguments[n];if(t)for(var a in t)Object.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r}
function getClosest(e,n){for(n=n.toUpperCase();e;){if(e.nodeName===n)return e;e=e.parentNode}return null}
function httpBuildQuery(n){var r=[];for(var t in n){var o=function n(r,t,o){null===t&&(t=""),!0===t?t="1":!1===t&&(t="0");var u=typeof t;if("function"===u)return"";if("object"===u){var e=[];for(let u in t)e.push(n(r+"["+u+"]",t[u],o));return e.join("&")}return r+"="+encodeURIComponent(t)}(t,n[t],r);""!==o&&r.push(o)}return r.join("&")}
function triggerEventCrossBrowser(e,n){var t;return"function"==typeof window.Event?t=new Event(n,{bubbles:!0,cancelable:!0}):(t=document.createEvent("Event")).initEvent(n,!0,!0,!0),e.dispatchEvent(t)}
function ajaxRequest(e){if(e.onTrigger&&("string"==typeof e.onTrigger&&(e.onTrigger=Function(e.onTrigger)),!1===e.onTrigger()))return;var a=e._GET||{},t=e._POST||{};if(e.ajaxparams&&deepExtend(a,e.ajaxparams),e.dataIncludeJS){var n="";"undefined"!=typeof g_arrLoadedJavaScript&&(n=g_arrLoadedJavaScript.join("|")),t._ajaxjs=n}if(e.dataIncludeCSS){let e="";"undefined"!=typeof g_arrLoadedCSS&&(e=g_arrLoadedCSS.join("|")),t._ajaxcss=e}if(e.dataIncludeURL&&!t._ajaxurl){var o=location.href;o=(o=o.substring(o.indexOf("//")+2)).substring(o.indexOf("/")),t._ajaxurl=o}let r=[];if(!1!==e.alwaysPost){let e=document.getElementsByClassName("alwayspost");for(let a=0;a<e.length;a++){let n=e[a],o=n.getAttribute("name"),s=n.form;o&&("radio"!=n.type&&"checkbox"!=n.type||n.checked)&&(s&&-1===r.indexOf(s)&&(triggerEventCrossBrowser(s,"updatevalues"),r.push(s)),"[]"===o.substr(o.length-2)?(void 0===t[o=o.substr(0,o.length-2)]&&(t[o]=[]),t[o].push(n.value)):void 0===t[o]&&(t[o]=n.value))}}if(e.dataIncludeState){var s=e.dataIncludeState;s.data&&s.data("ajaxparams")&&deepExtend(t,s.data("ajaxparams"));var i=getClosest(s,"form");if(i){if(i.getAttribute("action")){var d=document.createElement("div");d.innerHTML=i.getAttribute("action"),t._ajaxurl=d.textContent}else t._ajaxurl||(e.dataIncludeURL=!0);-1===r.indexOf(i)&&triggerEventCrossBrowser(i,"updatevalues");var l=new FormData(i);for(var u in t)!function e(a,t,n){if(t instanceof Array)for(let o=0;o<t.length;o++)e(a+"[]",t[o],n);else if(t instanceof Object)for(let o in t)e(a+"["+o+"]",t[o],n);else n.has(a)&&-1!==a.indexOf("[")?n.append(a,t):n.set(a,t)}(u,t[u],l);t=l}}e.method?e.method=e.method.toUpperCase():e.method="POST","POST"!==e.method&&deepExtend(a,t),(a=httpBuildQuery(a))&&(-1===e.url.indexOf("?")?e.url+="?":"&"!==e.url.substr(-1)&&(e.url+="&"),e.url+=a);let c=new XMLHttpRequest;c.bHasFiredBeforeLoadEvent=!1,c.open(e.method,e.url,void 0===e.async||e.async),c.setRequestHeader("x-requested-with","XMLHttpRequest");let g="",x=0,f=0;function p(){if(!e.precacheOnly){if(!c.bHasFiredBeforeLoadEvent&&c.response.length&&-1!==c.response.indexOf("\n\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\n\n")&&(triggerEventCrossBrowser(window,"loadajaxbeforesuccess"),e.beforeSuccess&&e.beforeSuccess(),c.bHasFiredBeforeLoadEvent=!0),e.evalChunkedResponse){let e=c.response;g+=e.substr(x),x=e.length,f+=ajaxEvalChunkedResponse(g.substr(f))}if(4===c.readyState){let a=function(){e.success&&!c.successHandlerCalled&&(c.successHandlerCalled=!0,e.success(c.response)),e.onSuccessEval&&Function(e.onSuccessEval)(c.response)};!e.evalChunkedResponse&&(e.evalResponse||void 0===e.evalResponse)?ajaxEvalResponse(c.response,a):a()}}}return c.addEventListener("progress",p),c.onload=function(){c.status>=200&&c.status<400?(p(),triggerEventCrossBrowser(window,"loadajax")):e.error&&e.error(c.responseText,c.status,e),ajaxPop(c)},c.onerror=function(){e.error&&e.error(c.responseText,c.status,e),ajaxPop(c)},e.abort&&(c.onabort=e.abort),"GET"===e.method?c.send():(t instanceof FormData||(c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t=httpBuildQuery(t)),c.send(t)),c.executePrecachedResult=function(){e.precacheOnly=!1,p()},c._showLoading=e.showLoading,g_arrAjaxRequests.push(c),e.showLoading&&ajaxShowLoading(e.showLoadingMessage),c}function ajaxAbort(e){e.abort(),ajaxPop(e)}function ajaxPop(e){var a=g_arrAjaxRequests.length;if(a>1){for(var t=0;t<a;t++)if(g_arrAjaxRequests[t]===e){g_arrAjaxRequests.splice(t,1);break}}else g_arrAjaxRequests=[];g_arrAjaxRequests.length||triggerAjaxDone();let n=!0;for(var t=0;t<g_arrAjaxRequests.length;t++)g_arrAjaxRequests._showLoading&&(n=!1);n&&ajaxHideLoading()}function ajaxAbortAll(){for(var e=0;e<g_arrAjaxRequests.length;e++)g_arrAjaxRequests[e].abort();g_arrAjaxRequests=[],ajaxHideLoading(),triggerAjaxDone()}function ajaxShowLoading(e){ajaxLoadingTimeout||(ajaxLoadingHideTimeout&&(clearTimeout(ajaxLoadingHideTimeout),ajaxLoadingHideTimeout=null),ajaxLoadingTimeout=setTimeout(function(){var a=document.getElementById("ajaxLoading");a&&a.parentNode.removeChild(a),(a=document.createElement("div")).id="ajaxLoading",e&&(a.innerHTML='<div class="ajaxLoadingMessage">'+e+"</div>"),document.body.appendChild(a),a.classList.add("ajaxLoadingShow"),ajaxLoadingTimeout=null},400))}function ajaxHideLoading(){ajaxLoadingTimeout&&(clearTimeout(ajaxLoadingTimeout),ajaxLoadingTimeout=null);var e=document.getElementById("ajaxLoading");e&&(e.classList.add("ajaxLoadingHide"),ajaxLoadingHideTimeout&&clearTimeout(ajaxLoadingHideTimeout),ajaxLoadingHideTimeout=setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},500))}function ajaxEvalChunkedResponse(e){let a=0,t=[],n="\n\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\n\n",o=e.indexOf(n),r=0;for(;-1!==o;){let s=e.indexOf("\n"),i=e.substr(0,s),d=e.substr(s+1,o-s-1);if("js"==i)a?t.push(d):ajaxEvalResponse(d);else if("css"==i){let e=document.createElement("style");e.styleSheet?e.styleSheet.cssText=d:e.appendChild(document.createTextNode(d)),document.getElementsByTagName("head")[0].appendChild(e)}else if("cssRemote"==i){let e=JSON.parse(d);for(let a=0;a<e.length;a++){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e[a]),t.addEventListener("load",function(){triggerEventCrossBrowser(window,"loadajaxcss")}),document.getElementsByTagName("head")[0].appendChild(t)}}else if("jsRemote"==i){let e=JSON.parse(d);for(let n=0;n<e.length;n++){a++;let o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");r.onload=function(){if(!--a){for(let e=0;e<t.length;e++)ajaxEvalResponse(t[e]);t=[]}},r.onerror=r.onload,r.setAttribute("src",e[n]),o.appendChild(r)}}r+=o+n.length,o=(e=e.substr(o+n.length)).indexOf(n)}return r}function ajaxEvalResponse(e){if(e)try{window.execScript?window.execScript(e):eval.call(window,e)}catch(a){window.console&&window.console.error&&(console.error(e),console.log(a))}}function triggerAjaxDone(){for(let e in g_arrOnAJAXDone)g_arrOnAJAXDone[e]();g_arrOnAJAXDone=[]}window.ajaxLoadingTimeout=window.ajaxLoadingTimeout||null,window.ajaxLoadingHideTimeout=window.ajaxLoadingHideTimeout||null,window.g_arrAjaxRequests=window.g_arrAjaxRequests||[],window.g_arrOnAJAXDone=window.g_arrOnAJAXDone||[];
let g_arrDialogBoxes,g_iDialogBoxZIndex;function DialogBox(e){this.id=e.id,this.senderId=e.senderId,this.width=e.width,this.noajax=e.noajax,this.closable=e.closable,this.onAjaxComplete=e.onAjaxComplete,this.backdrop=e.backdrop,this._GET=e._GET,this.m_arrAJAXCache={},g_arrDialogBoxes[this.id]=this}g_arrDialogBoxes||(g_arrDialogBoxes={},g_iDialogBoxZIndex=100),DialogBox.prototype.open=function(e){for(let o in e)this[o]=e[o];let o=this,t=document.getElementById(this.id);if(!t)return;t._dialogTableRow&&t._dialogTableRow.classList.remove("tableRow-active");let i=document.getElementById(this.id+"_opened");if(i&&i.classList.add("alwayspost"),this.backdrop&&(!t.previousSibling||"dialogboxoverlay"!==t.previousSibling.nodeName.toLowerCase())){let e=document.createElement("dialogboxoverlay");e.style.zIndex=g_iDialogBoxZIndex,t.parentNode.insertBefore(e,t),e.classList.remove("dialogBoxClose"),e.classList.add("dialogBoxOpen"),o.closable&&e.addEventListener("click",function(){let e=t.getElementsByTagName("form");for(let o=0;o<e.length;o++){let t=e[o].getAttribute("id");if(t&&g_arrForms&&g_arrForms[t]&&g_arrForms[t].isModified())return}o.fnOnClose&&o.fnOnClose(),o.close()})}else{let e=t.previousSibling;e.style.zIndex=g_iDialogBoxZIndex,e.classList.remove("dialogBoxClose"),e.closeTimeout&&clearTimeout(e.closeTimeout)}function a(){requestAnimationFrame(function(){o.width&&"auto"!==o.width&&(!isNaN(parseFloat(o.width))&&isFinite(o.width)&&(o.width+="px"),t.style.width=o.width),t.classList.remove("dialogBoxClose"),t.style.display="block",t.classList.add("dialogBoxOpen"),t.classList.contains("dialogBoxFullScreen")&&t.classList.remove("dialogBoxFullScreen"),t.offsetWidth>window.innerWidth-100&&t.offsetHeight>window.innerHeight-100&&t.classList.add("dialogBoxFullScreen");let e=void 0!==window.scrollY?window.scrollY:document.documentElement.scrollTop,i=Math.round(window.innerHeight/2.5-t.offsetHeight/2.5);if(i+=e,i=Math.max(e,i),t.style.top=i+"px","auto"===o.width&&(t.style.width="auto",t.style.left="auto",t.style.right="auto",t.style.left=window.innerWidth/2-t.offsetWidth/2+"px"),o.closable){t.addEventListener("keydown",function(e){27===e.keyCode&&(o.fnOnClose&&o.fnOnClose(),o.close())});let e=document.createElement("dialogboxclose");t.appendChild(e),e.addEventListener("click",function(){o.fnOnClose&&o.fnOnClose(),o.close()})}triggerEventCrossBrowser(window,"dialogboxopen")})}if(void 0!==this.noajax&&this.noajax)a();else{let e=null;this._GET&&(e=this._GET);let t=null;this.nSender&&(t=this.nSender),this.ajax(this.ajaxparams,e,function(){a(),o.onAjaxComplete&&setTimeout(function(){o.onAjaxComplete()},0)},t)}if(this.nSender){let e=this.nSender;for(;e=e.parentElement;)if(e.classList.contains("tableRow")){e.classList.add("tableRow-active"),t._dialogTableRow=e;break}if(this.nSender.parentNode&&this.nSender.parentNode.parentNode&&this.nSender.parentNode.parentNode._contextMenuTableRow){let e=this.nSender.parentNode.parentNode._contextMenuTableRow;e.classList.add("tableRow-active"),t._dialogTableRow=e}}t.style.zIndex=g_iDialogBoxZIndex+1,g_iDialogBoxZIndex+=2},DialogBox.prototype.close=function(){this.noajax=!1;let e=document.getElementById(this.id);if(!e||!e.classList.contains("dialogBoxOpen"))return;e.classList.remove("dialogBoxOpen"),e.classList.remove("dialogBoxFullScreen"),e.classList.add("dialogBoxClose");let o=document.getElementById(this.id+"_opened");o&&o.classList.remove("alwayspost");let t=e.previousSibling;t&&"dialogboxoverlay"===t.nodeName.toLowerCase()&&(t.classList.add("dialogBoxClose"),t.closeTimeout=setTimeout(function(){t.classList.remove("dialogBoxOpen"),t.parentNode&&t.parentNode.removeChild(t)},100)),setTimeout(function(){e.style.display="",e.innerHTML=""},100),triggerEventCrossBrowser(e,"close"),e._dialogTableRow&&e._dialogTableRow.classList.remove("tableRow-active"),g_iDialogBoxZIndex-=2},DialogBox.prototype.generateCacheKey=function(e,o){let t=this.id;return e&&(t+=httpBuildQuery(e)),o&&(t+=httpBuildQuery(o)),t},DialogBox.prototype.ajax=function(e,o,t,i){let a=this.generateCacheKey(e,o);if(this.m_arrAJAXCache[a]){t&&this.m_arrAJAXCache[a].result?(ajaxEvalChunkedResponse(this.m_arrAJAXCache[a].result),t(this.m_arrAJAXCache[a].result),delete this.m_arrAJAXCache[a],requestAnimationFrame(()=>{document.body.querySelector("#"+this.id+" *[autofocus]")?.focus()})):this.m_arrAJAXCache[a].fnSuccess=t;return}let l={};l.type="POST",l.url="/_public/Controls/Forms/DialogBox/dialogbox.php",l.dataIncludeURL=!0,l.dataIncludeJS=!0,l.dataIncludeCSS=!0,l.dataIncludeState=!0,l.evalResponse=!1,i&&(l.dataIncludeState=i),o&&(l._GET=o),l._POST={},l._POST.dialogid=this.id,l.ajaxparams=e;let s=this;l.success=function(e){s.m_arrAJAXCache[a]&&(s.m_arrAJAXCache[a].fnSuccess?(ajaxEvalChunkedResponse(e),s.m_arrAJAXCache[a].fnSuccess(e),delete s.m_arrAJAXCache[a],requestAnimationFrame(()=>{document.body.querySelector("#"+this.id+" *[autofocus]")?.focus()})):s.m_arrAJAXCache[a].result=e)},this.m_arrAJAXCache[a]={result:null,fnSuccess:t},ajaxRequest(l)},DialogBox.get=function(e){return g_arrDialogBoxes[e]},DialogBox.open=function(e,o){if(!g_arrDialogBoxes[e])throw"Could not find dialog box with id "+e;g_arrDialogBoxes[e].open(o)},DialogBox.cache=function(e,o,t){if(!g_arrDialogBoxes[e])throw"Could not find dialog box with id "+e;g_arrDialogBoxes[e].ajax(null,o,null,t)},DialogBox.close=function(e){if(!g_arrDialogBoxes[e])throw"Could not find dialog box with id "+e;g_arrDialogBoxes[e].close()},DialogBox.closeClosest=function(e){let o=getClosest(e,"dialogbox");o&&DialogBox.close(o.getAttribute("id"))},DialogBox.isOpen=function(e){if(!g_arrDialogBoxes[e])return!1;let o=document.getElementById(e);return!!o&&o.classList.contains("dialogBoxOpen")},DialogBox.linkCache=function(e){let o=e.getAttribute("data-dialog");DialogBox.cache(o,JSON.parse(e.getAttribute("data-dialogget")),e)},DialogBox.linkOpen=function(e){let o=DialogBox.get(e.getAttribute("data-dialog"));return o._GET=JSON.parse(e.getAttribute("data-dialogget")),o.nSender=e,o.open(),!1},window.addEventListener("ajaxNavigate",function(){for(let e in g_arrDialogBoxes)g_arrDialogBoxes[e].close()});
!function(){var t=/^hsla\(\s*([\d]{1,3})\s*\,\s*([\d]{1,3})%\s*,\s*([\d]{1,3})%\s*\,\s*(1|0\.[\d]+)\s*\)$/i,e=/^rgba\(\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\,\s*(1|0\.[\d]+)\s*\)$/i,r=/^rgb\(\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\)$/i,i=/^#([\da-f])([\da-f])([\da-f])$/i,a=/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i;function s(t,e,r){function i(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t/=360,r/=100,e/=100){var a,s,n,o=r<.5?r*(1+e):r+e-r*e,l=2*r-o;a=i(l,o,t+1/3),s=i(l,o,t),n=i(l,o,t-1/3)}else a=s=n=r;return{r:Math.round(255*a),g:Math.round(255*s),b:Math.round(255*n)}}function n(t,e,r){var i,a,s=Math.max(t/=255,e/=255,r/=255),n=Math.min(t,e,r),o=(s+n)/2;if(s==n)i=0,a=0;else{var l=s-n;switch(a=o>.5?l/(2-s-n):l/(s+n),s){case t:i=(e-r)/l+(e<r?6:0);break;case e:i=(r-t)/l+2;break;case r:i=(t-e)/l+4}i/=6}return{h:i,s:a,l:o}}function o(t){this.h=0,this.s=0,this.l=0,this.a=1,this.strReadFormat=null,this.setFromString(t)}o.prototype.setFromString=function(s){if(!s||"null"==s)return this.strReadFormat="null",this.h=this.s=this.l=0,this.a=0,!1;if(s.match(t))return this.setHSLAFromString(s),!0;if(s.match(r)||s.match(e))return this.setRGBAFromString(s),!0;if(s.match(i)||s.match(a))return this.setHex(s),!0;let n=window.CSSColorNames.getHexForName(s);return!!n&&(this.setHex(n),!0)},o.prototype.getValue=function(){return"null"===this.strReadFormat?null:"rgba"===this.strReadFormat?this.getRGBAString():"hsla"===this.strReadFormat?this.getHSLAString():this.getHexString()},o.prototype.setHSLA=function(t,e,r,i){this.strReadFormat="hsla",this.h=t,this.s=e,this.l=r,this.a=i},o.prototype.setHSLAFromString=function(e){var r=t.exec(e);if(r)return this.strReadFormat="hsla",this.h=parseInt(r[1]),this.s=parseInt(r[2]),this.l=parseInt(r[3]),this.a=parseFloat(r[4]),!0},o.prototype.getHSLA=function(){return"null"===this.strReadFormat?null:{h:this.h,s:this.s,l:this.l,a:this.a}},o.prototype.getHSLAString=function(){return"null"===this.strReadFormat?null:"hsla("+Math.floor(this.h)+", "+Math.floor(this.s)+"%, "+Math.floor(this.l)+"%, "+this.a+")"},o.prototype.setRGBA=function(t,e,r,i){var a=n(t,e,r);this.strReadFormat="rgba",this.h=a.h,this.s=a.s,this.l=a.l,this.a=i},o.prototype.setRGBAFromString=function(t){t.match(/^rgba/i)?i=e.exec(t):(i=r.exec(t))[4]=1,this.strReadFormat="rgba";var i,a=n(i[1],i[2],i[3]);return this.h=360*a.h,this.s=100*a.s,this.l=100*a.l,this.a=i[4],!0},o.prototype.getRGBA=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l);return t.a=this.a,t},o.prototype.getRGBAString=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l);return 1===this.a?"rgb("+t.r+", "+t.g+", "+t.b+")":"rgba("+t.r+", "+t.g+", "+t.b+", "+this.a+")"},o.prototype.setHex=function(t){var e=4==t.length,r=e?i.exec(t):a.exec(t);if(!r)return!1;this.strReadFormat="hex";var s=n(parseInt(e?r[1]+r[1]:r[1],16),parseInt(e?r[2]+r[2]:r[2],16),parseInt(e?r[3]+r[3]:r[3],16));return this.h=360*s.h,this.s=100*s.s,this.l=100*s.l,this.a=1,!0},o.prototype.getHexString=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l);return 1!==this.a?"rgba("+Math.floor(t.r)+","+Math.floor(t.g)+","+Math.floor(t.b)+","+this.a+")":"#"+(16777216+(Math.floor(t.r)<<16)+(Math.floor(t.g)<<8)+Math.floor(t.b)).toString(16).slice(1)},o.prototype.getRelativeLuminance=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l),e=t.r/255,r=t.g/255,i=t.b/255;return(.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)))*100},o.prototype.hueShift=function(t){this.h=(this.h+t)%360},o.prototype.clone=function(){var t=new o;return t.h=this.h,t.s=this.s,t.l=this.l,t.a=this.a,t.strReadFormat=this.strReadFormat,t},o.prototype.createComplement=function(){if("null"===this.strReadFormat)return null;var t=this.clone();return t.hueShift(180),t},o.prototype.getComplimentaryTextColor=function(){return new o(this.getRelativeLuminance()>=50?"rgba(0,0,0,1)":"rgba(255,255,255,1)")},o.prototype.createGradient=function(){var t=(this.h-25+360)%360,e=Math.min(Math.max(this.s-20,50),100),r=Math.min(Math.max(this.l+10,0),100),i=new o;return i.setHSLA(t,e,r,1),{strStartColor:this.getRGBAString(),strEndColor:i.getRGBAString(),bLightFont:128>this.getRelativeLuminance()}},o.prototype.createAnalogousPallate=function(){let t={},e=this.clone();e.hueShift(-30);let r=this.clone();return r.hueShift(30),t.pPrimary=this,t.pSecondary=e,t.pTertiary=r,t},o.prototype.createTriadicPallate=function(){let t={},e=this.clone();e.hueShift(-120);let r=this.clone();return r.hueShift(120),t.pPrimary=this,t.pSecondary=e,t.pTertiary=r,t},o.prototype.createSplitComplementaryPallate=function(){let t={},e=this.clone();e.hueShift(-72);let r=this.clone();return r.hueShift(72),t.pPrimary=this,t.pSecondary=e,t.pTertiary=r,t},window.Color=o}(),function(){let t={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};window.CSSColorNames={getHexForName:function(e){return e&&t[e.toLowerCase()]||null}}}();
!function(){let t={LIST_ITEM_OPEN:"s8-navigationPrimaryLI-open",MOBILE_CLOSE_SHOW:"s8-navigationPrimary__mobileCloseButton--show",DISPLAY_STATE_MOBILE:"s8-navigationPrimary--displayStateMobile",DISPLAY_STATE_MOBILE_IS_OPEN:"s8-navigationPrimary--displayStateMobile-open"};function e(t,e){this.config={bOpenOnHover:e.bOpenOnHover,strOrientation:e.strOrientation,bPreventWrap:e.bPreventWrap,pMobileMediaQuery:window.matchMedia(`(max-width: ${parseInt(e.iMobileBreakPoint)}px)`)},this.classlicurrent=e.classlicurrent||"active",this.pNavList=new i(t),this.nMobileMenuUL=this.pNavList.getListNode().previousElementSibling,this.mouseoutCloseTimer=null,this.mobileMenuCloseTimer=null,this.init()}function i(t){this.nList=t,this.arrListItems=[],this.init()}function n(t){this.nListItem=t,t._pListItem=this,this.nLink=t.querySelector("a"),this.pSubNavList=null,this.init()}window.PrimaryNavigation=e,e.prototype={init:function(){let t=this.pNavList.getListNode();this.nMobileCloseButton=document.createElement("div"),this.nMobileCloseButton.classList.add("s8-navigationPrimary__mobileCloseButton"),this.nMobileCloseButton.setAttribute("tabindex","0"),t.parentElement.appendChild(this.nMobileCloseButton),this._fixColors(),this._bindInteractions();let e=null;"function"==typeof Event?e=new Event("initialised"):(e=document.createEvent("Event")).initEvent("initialised",!0,!0),t.dispatchEvent(e)},_bindInteractions:function(){for(let t=0,e=Object.keys(this.interactions);t<e.length;t++){let i=e[t],n=this.interactions[i];n.eventTriggers.forEach((function(t){if(t.triggerShouldApply&&!t.triggerShouldApply.call(this))return;let e=t.eventNames;if(!e||!e.length)return;let i=t.getBindTarget.call(this),s=(function(e){t.processEvent?t.processEvent.call(this,e)&&n.handler.call(this,e):n.handler.call(this,e)}).bind(this);for(let n=0;n<e.length;n++)i.addEventListener(e[n],s,t.options)}).bind(this))}},interactions:{preventFirstClick:{handler:function(t){let e=this.pNavList.getClosestListItemToEvent(t);if(e&&!e.isOpen()){let t=(function(e){e.preventDefault();try{let t=new Event("focus");e.target.dispatchEvent(t)}catch(t){}this.pNavList.getListNode().removeEventListener("click",t)}).bind(this);this.pNavList.getListNode().addEventListener("click",t)}},eventTriggers:[{eventNames:["mousedown"],getBindTarget:function(){return this.pNavList.getListNode()},processEvent:function(t){return!this.config.bOpenOnHover||this.pNavList.inMobileDisplay()},options:{capture:!0,passive:!0}},{eventNames:["touchstart"],getBindTarget:function(){return this.pNavList.getListNode()},options:{capture:!0,passive:!0}}]},openListItemTree:{handler:function(t){this.pNavList.openListItemTree(this.pNavList.getClosestListItemToEvent(t))},eventTriggers:[{eventNames:["focus"],getBindTarget:function(){return this.pNavList.getListNode()},processEvent:function(t){let e=this.pNavList.getClosestListItemToEvent(t);if(e)return!(this.pNavList.inMobileDisplay()&&e.isOpen())},options:{capture:!0}},{eventNames:["mouseover","mouseenter"],getBindTarget:function(){return this.pNavList.getListNode()},triggerShouldApply:function(){return this.config.bOpenOnHover},processEvent:function(t){return!this.pNavList.inMobileDisplay()&&(this.mouseoutCloseTimer=clearTimeout(this.mouseoutCloseTimer),!0)}}]},closeAllListItems:{handler:function(){this.pNavList.closeAll()},eventTriggers:[{eventNames:["ajaxNavigate"],getBindTarget:function(){return window}},{eventNames:["mousedown"],getBindTarget:function(){return document},triggerShouldApply:function(){return!this.config.bOpenOnHover},processEvent:function(t){return!this.pNavList.getClosestListItemToEvent(t)}},{eventNames:["mouseout"],getBindTarget:function(){return this.pNavList.getListNode()},triggerShouldApply:function(){return this.config.bOpenOnHover},processEvent:function(t){return!this.pNavList.inMobileDisplay()&&(!this.pNavList.hasOpenListItems()||(this.mouseoutCloseTimer=setTimeout((function(){this.pNavList.closeAll()}).bind(this),500),!1))}}]},openMobileMenu:{handler:function(e){document.body.addEventListener("touchmove",this._disableScroll);let i=window.getComputedStyle(document.body);this._oldBodyMarginRight=i.marginRight,document.body.style.marginRight=parseFloat(this._oldBodyMarginRight)+window.innerWidth-document.documentElement.clientWidth+"px",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",e.preventDefault(),this.nMobileMenuUL.classList.add(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.pNavList.getListNode().classList.add(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.nMobileCloseButton.classList.add(t.MOBILE_CLOSE_SHOW)},eventTriggers:[{eventNames:["click"],getBindTarget:function(){return this.nMobileMenuUL},options:{capture:!0}}]},closeMobileMenu:{handler:function(e){document.body.removeEventListener("touchmove",this._disableScroll),document.body.style.marginRight=this._oldBodyMarginRight,document.body.style.overflow="",document.documentElement.style.overflow="",this.nMobileMenuUL.classList.remove(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.nMobileCloseButton.classList.remove(t.MOBILE_CLOSE_SHOW),this.pNavList.getListNode().classList.remove(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.pNavList.closeAll()},eventTriggers:[{eventNames:["click"],getBindTarget:function(){return this.nMobileCloseButton},processEvent:function(t){return t.preventDefault(),!0}},{eventNames:["ajaxNavigate"],getBindTarget:function(){return window}},{eventNames:["click"],getBindTarget:function(){return this.pNavList.getListNode()},processEvent:function(t){if(!this.config.pMobileMediaQuery.matches)return!1;let e=this.pNavList.getClosestListItemToEvent(t);return!!e&&!!e.nLink.hash}},{eventNames:["resize"],getBindTarget:function(){return window},options:{passive:!0},triggerShouldApply:function(){return"horizontal"==this.config.strOrientation},processEvent:function(t){return!this.config.pMobileMediaQuery.matches}}]},showHideMobileMenu:{handler:function(e){this.pNavList.getListNode().classList.remove(t.DISPLAY_STATE_MOBILE),this.nMobileMenuUL.classList.remove(t.DISPLAY_STATE_MOBILE);let i=this.config.pMobileMediaQuery.matches,n=this.config.bPreventWrap&&this._widthIsTooSmallForListItems();i||n?(this.pNavList.getListNode().classList.add(t.DISPLAY_STATE_MOBILE),this.nMobileMenuUL.classList.add(t.DISPLAY_STATE_MOBILE)):this.interactions.closeMobileMenu.handler.call(this,e)},eventTriggers:[{eventNames:["resize","DOMContentLoaded"],getBindTarget:function(){return window},options:{passive:!0},triggerShouldApply:function(){return"horizontal"==this.config.strOrientation}},{eventNames:["initialised"],getBindTarget:function(){return this.pNavList.getListNode()},options:{passive:!0},triggerShouldApply:function(){return"horizontal"==this.config.strOrientation}},{eventNames:["visibilitychange"],getBindTarget:function(){return document},processEvent:function(t){return"visible"===document.visibilityState}}]},removeHiddenState:{handler:function(e){this.pNavList.getListNode().classList.remove(t.LIST_HIDDEN)},eventTriggers:[{eventNames:["initialised"],getBindTarget:function(){return this.pNavList.getListNode()},options:{passive:!0}}]},setActiveLinkOnAjaxNavigation:{handler:function(){let t=window.location.pathname,e=this.pNavList.getLinkByHref(t);e&&this.pNavList.setActiveLink(e,this.classlicurrent)},eventTriggers:[{eventNames:["ajaxNavigate"],getBindTarget:function(){return window}}]}},_disableScroll:function(t){t.preventDefault()},_fixColors:function(){let t=this.pNavList.getListNode(),e=window.getComputedStyle(t);("rgba(0, 0, 0, 0)"===e.backgroundColor||"transparent"===e.backgroundColor)&&(new Color(e.color).getRelativeLuminance()>50?t.classList.add("s8-navigationPrimary--fallback-bg-black"):t.classList.add("s8-navigationPrimary--fallback-bg-white"));let i=t.querySelector("ul");if(i){let e=window.getComputedStyle(i);("rgba(0, 0, 0, 0)"===e.backgroundColor||"transparent"===e.backgroundColor)&&(new Color(e.color).getRelativeLuminance()>50?t.classList.add("s8-navigationPrimary--fallback-submenus-bg-black"):t.classList.add("s8-navigationPrimary--fallback-submenus-bg-white"))}},_widthIsTooSmallForListItems:function(){let t=this.pNavList.getListNode();return t.scrollWidth>t.clientWidth}},i.prototype={init:function(){for(let t=0;t<this.nList.childNodes.length;t++){let e=this.nList.childNodes[t];"LI"===e.nodeName&&this.arrListItems.push(new n(e))}},getListNode:function(){return this.nList},getClosestListItemToEvent:function(t){let e=t.target;for(;e;){if(e._pListItem)return e._pListItem;e=e.parentNode}return null},openListItemTree:function(t){t&&this.arrListItems.forEach(function(e){e.contains(t)?(e.open(),e.pSubNavList&&e.pSubNavList.openListItemTree(t)):e.close()})},closeAll:function(){this.arrListItems.forEach(function(t){t.close()})},hasOpenListItems:function(){return this.arrListItems.some(function(t){return t.isOpen()||!!t.pSubNavList&&t.pSubNavList.hasOpenListItems()})},getLinkByHref:function(t){let e=null;if(this.arrListItems.some(function(i){return e=i.getLinkByHref(t)}),!e){let i=t.split("/").filter(Boolean);for(;!e&&i.length>0;){i.pop();let t="/"+i.join("/")+"/";this.arrListItems.some(function(i){return e=i.getLinkByHref(t)})}}return e},setActiveLink:function(t,e){this.arrListItems.forEach(function(i){i.nLink===t||i.pSubNavList&&i.pSubNavList.getLinkByHref(t.href)?i.setActive(!0,e):i.setActive(!1,e)})},inMobileDisplay:function(){return this.nList.classList.contains(t.DISPLAY_STATE_MOBILE)}},n.prototype={init:function(){let t=this.nListItem.querySelector("ul");t&&(this.pSubNavList=new i(t))},open:function(){this.isOpen()||this.nListItem.classList.add(t.LIST_ITEM_OPEN)},close:function(){this.isOpen()&&this.nListItem.classList.remove(t.LIST_ITEM_OPEN),this.pSubNavList&&this.pSubNavList.closeAll()},isOpen:function(){return!this.pSubNavList||this.nListItem.classList.contains(t.LIST_ITEM_OPEN)},contains:function(t){return this.nListItem.contains(t.nListItem)},setActive:function(t,e){this.nListItem.classList[t?"add":"remove"](e),this.pSubNavList&&this.pSubNavList.arrListItems.forEach(function(i){i.setActive(t,e)})},getLinkByHref:function(t){return new window.URL(this.nLink.href).pathname===t||this.nLink.href===t?this.nLink:this.pSubNavList?this.pSubNavList.getLinkByHref(t):null}}}();
!function(){let e=[];function t(e,t,n){if(e){let a=window.innerHeight*n;e.style.height=t.height+a+"px"}}function n(){let t=[];for(let n=0;n<e.length;n++)if(e[n].nParallaxContainer){let a=e[n].nParallaxContainer,i=a.parentNode.getBoundingClientRect();t.push({oSectionRect:i,nBackgroundDiv:a,speed:e[n].speed})}return t}function a(){i(n())}function i(e){for(let t=0;t<e.length;t++){let n=e[t],a=n.oSectionRect,i=n.nBackgroundDiv,l=-((a.top+a.height)*n.speed);i.style.top=l+"px"}}function l(){let e=n();for(let n=0;n<e.length;n++){let a=e[n],i=a.oSectionRect;t(a.nBackgroundDiv,i,a.speed)}i(e)}window.Section=function(n,i){if(this.nElement=n,i=i||{},this.bParallax=i.bParallax||"true"==i.bParallax,this.bParallax){let o=n.ownerDocument.defaultView,r=i.iParallaxSpeed?parseInt(i.iParallaxSpeed)/100:.3;if(!o)return;let d=n.getElementsByClassName("s8-templates-section-parallax")[0],s=n.getBoundingClientRect();e.push({nParallaxContainer:d,speed:r}),t(d,s,r),o.addEventListener("DOMContentLoaded",function(){t(d,s,r),a(),d.style.opacity=1}),o.SectionBound||(o.addEventListener("scroll",a,{passive:!0,capture:!0}),o.addEventListener("load",a,{passive:!0,capture:!0}),o.addEventListener("DOMContentLoaded",function(){o.addEventListener("resize",l,{passive:!0,capture:!0})}),o.SectionBound=!0)}}}();
!function(){if(window.ToolTip)return;let t={TOP:"top",TOP_RIGHT:"topright",RIGHT:"right",BOTTOM_RIGHT:"bottomright",BOTTOM:"bottom",BOTTOM_LEFT:"bottomleft",LEFT:"left",TOP_LEFT:"topleft"},e={[t.LEFT]:t.RIGHT,[t.TOP_LEFT]:t.BOTTOM_LEFT,[t.TOP]:t.BOTTOM,[t.TOP_RIGHT]:t.BOTTOM_RIGHT,[t.RIGHT]:t.LEFT,[t.BOTTOM_LEFT]:t.TOP_LEFT,[t.BOTTOM]:t.TOP,[t.BOTTOM_RIGHT]:t.TOP_RIGHT},n=function(t){if("string"==typeof t.target){if(t.target=document.querySelectorAll(t.target),!t.target.length)return;t.target=t.target[0]}let o=this;for(let e in this.title="",this.content="",this.container=document.body,this.target=null,this.position="bottom",this.arrowPosition=null,this.positionOffsetX=0,this.positionOffsetY=0,this.marginX=0,this.marginY=0,this.hasCloseButton=!1,this.positionDynamic=!1,this.showOn=null,this.hideOn=null,this.toggleOn=null,this.onShow=null,this.onHide=null,this.arrClasses=[],this.theme="standard",this.animation=!1,this.ignoreCollision=!1,t)this[e]=t[e];for(let e in this.target||(this.target=document.body,this.positionDynamic=!1,this.position="topright"),this.container||(this.container=document.body),this.id=t.id?t.id:n._id++,this.nWrapper=this.container.ownerDocument.createElement("tooltip"),this._arrChevrons=[],this.nWrapper.toolTip=this,this.nWrapper.id=this.id,this.nWrapper.classList.add("tooltipTheme-"+this.theme),this.arrClasses)this.nWrapper.classList.add(this.arrClasses[e]);if(this.nWrapperContent=this.container.ownerDocument.createElement("tooltipcontent"),this.nWrapper.appendChild(this.nWrapperContent),this.hasCloseButton){let t=this.container.ownerDocument.createElement("tooltipclose");t.addEventListener("click",function(){o.hide()}),this.nWrapperContent.appendChild(t)}this.nTitle=this.container.ownerDocument.createElement("div"),this.nTitle.classList.add("s8ToolTip_Title"),this.nWrapperContent.appendChild(this.nTitle),this.nContent=this.container.ownerDocument.createElement("div"),this.nContent.classList.add("s8ToolTip_Text"),this.nWrapperContent.appendChild(this.nContent),this.container.appendChild(this.nWrapper),this._hookEvents(),window.ToolTipThemes[this.theme].construct(this),this.arrowPosition=this.arrowPosition?this.arrowPosition:e[this.position],this._addChevron(this.arrowPosition),this._update(),n._arrTooltips.push(this)};n._id=0,n._arrTooltips=[],n.getByElementId=function(t){for(let e=0;e<n._arrTooltips.length;e++){let o=n._arrTooltips[e];if(o.id===t&&o.nWrapper.ownerDocument.body.contains(o.nWrapper))return o}return null},n.prototype.setTarget=function(t){let[e=document.body]="string"==typeof t?document.querySelectorAll(t):[t];this.target=e},n.prototype.show=function(){!this.visible&&this.nWrapper&&(this.nWrapper.classList.remove("animationDisable"),this.nContent.childNodes.length||this._setContent(),s[this.theme].show(this),this.visible=!0,this._update(),this.onShow&&this.onShow())},n.prototype.hide=function(t){this.visible&&(t?this.nWrapper.style.display="none":s[this.theme].hide(this),this.visible=!1,this.onHide&&this.onHide())},n.prototype.destroy=function(){this.nWrapper.parentNode&&this.nWrapper.parentNode.removeChild(this.nWrapper)},n.prototype._update=function(t){let e;if(!this.visible||!this.target||!this.nWrapper)return;let n=this.nWrapper.getBoundingClientRect(),o=this.target,s=o.getBoundingClientRect();if(!s||!o.ownerDocument.defaultView){this.hide();return}if(this.target===document.body){this.nWrapper.style.position="absolute",this.nWrapper.style.top="0px",this.nWrapper.style.right="0px",this.nWrapper.style.left="auto",this._clearChevrons();return}let r={top:s.top,right:s.right,bottom:s.bottom,left:s.left,width:s.width,height:s.height},a="";for(let t in r)a+=Math.round(r[t])+",";if(t&&this._strCachedRect===a)return;if(this._strCachedRect=a,o.firstElementChild){let t=o.currentStyle||o.ownerDocument.defaultView.getComputedStyle(o,null),e=o.firstElementChild,n=[];e&&e!==this.nWrapper&&(n.push(e),"A"===e.nodeName&&e.firstElementChild&&n.push(e.firstElementChild));for(let e=0;e<n.length;e++){let o=n[e].getBoundingClientRect();"hidden"!==t.overflowY&&o.top&&o.top<r.top&&(r.top=o.top,r.height=o.bottom-r.top),"hidden"!==t.overflowX&&o.bottom&&o.bottom>r.bottom&&(r.bottom=o.bottom,r.height=o.bottom-r.top)}}let h=this.position;if(this.positionDynamic){let t,e=this.container.parentNode,o=0,s=0;for(;e;){if((e.currentStyle||e.ownerDocument)&&"hidden"===(e.currentStyle||e.ownerDocument.defaultView.getComputedStyle(e,"")).overflow){let t=e.getBoundingClientRect();if(t&&t.width){o=t.left,s=t.top;break}}e=e.parentNode}e||(e=this.container.ownerDocument.documentElement);let a=e.clientWidth,l=e.clientHeight,p={side:"top",opposed:"bottom",x:a,y:r.top-s};p.size=p.x*p.y;let d={side:"right",opposed:"left",x:a-r.right-o,y:l};d.size=d.x*d.y;let c={side:"bottom",opposed:"top",x:a,y:l-r.bottom-s};c.size=c.x*c.y;let f={side:"left",opposed:"right",x:r.left-o,y:r.top-s};f.size=f.x*f.y,t=({topleft:p,top:p,topright:p,bottomleft:c,bottom:c,bottomright:c,left:f,right:d})[h];let u=[p,d,c,f];for(i=0;i<u.length;i++)u[i].hides=Math.max(0,n.width-u[i].x)*n.height+Math.max(0,n.height-u[i].y)*n.width;if(t||(u.sort(function(t,e){return e.size-t.size}),t=u[0]),t.hides&&(u.sort(function(t,e){return t.hides-e.hides}),t=u[0]),"top"==(h=t.side)){this.arrowPosition="bottom";let t=e.getBoundingClientRect();r.left-t.left<(t.right-r.right)*.8&&(this.arrowPosition="bottomleft")}else if("right"==h){let t=document.querySelectorAll("input,textarea,select"),e=r.right+30,n=r.top+r.height/2;t:for(let o of t){if(o===this.target)continue;let s=o.getBoundingClientRect();if(s&&s.left<e&&s.right>e&&s.top<n&&s.bottom>n){if(r.left>400){let e=r.left+r.width/2,n=r.top-30;for(let o of t)if(o!==this.target&&(s=o.getBoundingClientRect())&&s.left<e&&s.right>e&&s.top<n&&s.bottom>n){h="left",this.arrowPosition="right";break t}}h="top",this.arrowPosition="bottom";break}}}this._clearChevrons(),this._addChevron(this.arrowPosition),t||(this.position=h)}e=this._arrChevrons[0].chevron.getBoundingClientRect();let l=r.left+r.width*this._positionMatrix[h].w-(e.left+e.width*this._positionMatrix[this.arrowPosition].w),p=r.top+r.height*this._positionMatrix[h].h-(e.top+e.height*this._positionMatrix[this.arrowPosition].h);if(l+=parseInt(this.marginX)+parseInt(this.positionOffsetX),(p+=parseInt(this.marginY)+parseInt(this.positionOffsetY))<0&&this.container.offsetParent&&"hidden"==this.container.offsetParent.ownerDocument.defaultView.getComputedStyle(this.container.offsetParent,null).overflowY&&(p=0),this.nWrapper._iTransLeft=Math.floor((this.nWrapper._iTransLeft||0)+l),this.nWrapper._iTransTop=Math.floor((this.nWrapper._iTransTop||0)+p),this.nWrapper.style.transform="translate("+this.nWrapper._iTransLeft+"px, "+this.nWrapper._iTransTop+"px)",!this.ignoreCollision){let t=this.nWrapper.ownerDocument.getElementsByTagName("tooltip"),e=this.nWrapper.getBoundingClientRect();for(let n=0;n<t.length;n++){if(t[n]===this.nWrapper||t[n].classList.contains("tooltipHide"))continue;let o=t[n].getBoundingClientRect();e.left>=o.left-5&&e.left<=o.right+5&&e.top>=o.top-5&&e.top<=o.bottom-5&&(this.nWrapper._iTransLeft+=Math.floor(o.width)+10,this.nWrapper.style.transform="translate("+this.nWrapper._iTransLeft+"px, "+this.nWrapper._iTransTop+"px)")}}this.animation&&this.nWrapper.classList.add("tooltipAnimated-"+this.animation)},n.prototype._setContent=function(){this.nWrapper.className=this.nWrapper.className.replace(/\sTitle/ig,""),"string"==typeof this.title&&this.title.length?(this.nTitle.innerHTML=this.title,this.nTitle.style.display="block"):"function"==typeof this.title?(this.nTitle.innerHTML="",this.nTitle.appendChild(this.title(this)),this.nTitle.style.display="block"):this.title?this.title!==this.title.firstChild&&(this.nTitle.appendChild(this.title),this.nTitle.style.display="block"):this.nTitle.innerHTML="","string"==typeof this.content?this.nContent.innerHTML=this.content:"function"==typeof this.content?(this.nContent.innerHTML="",this.nContent.appendChild(this.content(this))):this.content?this.content!==this.nContent.firstChild&&this.nContent.appendChild(this.content):this.nContent.innerHTML=""},n.prototype._addChevron=function(t){let e="tooltip--arrow-"+t,n=this.container.ownerDocument.createElement("tooltipchevronwrapper"),o=this.container.ownerDocument.createElement("tooltipchevron");return n.appendChild(o),this.nWrapper.classList.add(e),this._arrChevrons.unshift({class:e,wrapper:n,chevron:o}),this.nWrapperContent.appendChild(n),n},n.prototype._clearChevrons=function(){for(;this._arrChevrons.length;){let t=this._arrChevrons.pop();t.wrapper.parentNode.removeChild(t.wrapper),this.nWrapper.classList.remove(t.class)}},n.prototype.disableAnimation=function(){this.nWrapper.classList.add("animationDisable")},n.prototype._hookEvents=function(){let t=this;function e(n){if(!t.nWrapper.contains(n.target)&&!t.target.contains(n.target)){if(!document.body.contains(t.nWrapper)){window.removeEventListener("click",e);return}t.hide()}}function n(n,o){if(o){n instanceof Array||(n=[n]);for(let s=0;s<n.length;s++){if("unfocus"===n[s]){window.addEventListener("click",e);continue}t.target.addEventListener(n[s],function(e){o.call(t,e)},!0)}}}n(this.showOn,function(t){this.visible||this.show()}),n(this.toggleOn,function(e){!(e.target===t.nWrapper||t.nWrapper.contains(e.target))&&(this.visible?this.hide():(e.target===this.target||this.target.contains(e.target))&&this.show())}),n(this.hideOn,function(){this.visible&&this.hide()})},n.prototype._positionMatrix={topleft:{w:0,h:0},top:{w:.5,h:0},topright:{w:1,h:0},right:{w:1,h:.5},bottomright:{w:1,h:1},bottom:{w:.5,h:1},bottomleft:{w:0,h:1},left:{w:0,h:.5}},window.ToolTip=n;let o={cornerDeadZone:11,show:function(t){t.nWrapper.className=t.nWrapper.className.replace(/\stooltipHide/gi,""),t.nWrapper.style.display="block"},hide:function(t){t.nWrapper.classList.add("tooltipHide"),t.nWrapper.classList.contains("animationDisable")?t.visible||(t.nWrapper.style.display="none"):setTimeout(function(){t.visible||(t.nWrapper.style.display="none")},210)},construct:function(t){},animation:null},s={standard:o,dark:o,setup:{cornerDeadZone:11,show:function(t){t.nWrapper.className=t.nWrapper.className.replace(/\stooltipHide/gi,""),t.nWrapper.style.display="block"},hide:function(t){-1===t.nWrapper.className.indexOf("tooltipHide")&&(t.nWrapper.className+=" tooltipHide"),setTimeout(function(){t.visible||(t.nWrapper.style.display="none")},210)},construct:function(t){},animation:"bounce"},DesignGeneratorTutorial:o,error:{cornerDeadZone:11,show:function(t){t.nWrapper.className=t.nWrapper.className.replace(/\stooltipHide/gi,""),t.nWrapper.style.display="block"},hide:function(t){t.nWrapper.classList.add("tooltipHide"),t.nWrapper.classList.contains("animationDisable")?t.visible||(t.nWrapper.style.display="none"):setTimeout(function(){t.visible||(t.nWrapper.style.display="none")},210)},construct:function(t){},animation:"bounce"},editor:o,editorTable:o,editorToolbar:o,editorDark:o,pro:o};window.ToolTipThemes=s,n.updateAll=function(){for(let t=0;t<n._arrTooltips.length;t++){let e=n._arrTooltips[t].nWrapper;!e.ownerDocument.body.contains(e)&&(n._arrTooltips.splice(t,1),t--)}function t(){for(let t=0;t<n._arrTooltips.length;t++)n._arrTooltips[t]._update(!0)}t(),setTimeout(t,0),setTimeout(t,1e3),setTimeout(t,1e4)},window.addEventListener("load",n.updateAll,!0),document.addEventListener("load",n.updateAll,!0),window.addEventListener("loadajax",n.updateAll),window.addEventListener("resize",n.updateAll),window.addEventListener("tooltipupdate",n.updateAll)}();
window.addEventListener("keydown",e=>{if("Space"===e.code){let t=document.activeElement;if(t.classList.contains("s8-checkbox-wrapper")){let n=t.firstElementChild.firstElementChild;n.checked=!n.checked,e.preventDefault(),n.dispatchEvent(new Event("change"))}}});
function Form(t,e){e=e||{};var r=document.getElementById(t);if(!r)return;this.m_strId=t,this.arrValidations=[],this.m_bShowLeavePageWarning=e.bShowLeavePageWarning||!1,this.m_bControlSSubmit=e.bControlSSubmit||!1,this.m_strMethod=e.strMethod,window.g_arrForms[t]=this;let a=function(){let t=r.querySelector("input[name=_asevtcount]"),e=r.querySelector("input[name=_astime]"),a=r.querySelector("input[name=_ashl]");if(t&&(t.value=t.value?parseInt(t.value)+1:1),e&&(e.value=new Date().toISOString()),a){let t=0;navigator.webdriver&&(t+=40),navigator.mimeTypes&&navigator.mimeTypes.length||(t+=12),navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||(t+=11),1===window.navigator.hardwareConcurrency&&(t+=5),"Linux x86_64"===navigator.platform&&(t+=9),a.value=t}};r.addEventListener("touchstart",a,{passive:!0}),r.addEventListener("mousedown",a),r.addEventListener("submit",this.onSubmit.bind(this)),"ajax"===e.strMethod&&(this.m_strOnSubmitAttrValue=r.getAttribute("onsubmit"),r.setAttribute("onsubmit","")),requestAnimationFrame(function(){if("off"===r.getAttribute("autocomplete")||"nope"===r.getAttribute("autocomplete"))for(var t=r.querySelectorAll("input,textarea"),e=0;e<t.length;e++)t[e].getAttribute("autocomplete")||t[e].setAttribute("autocomplete","nope")})}window.g_arrForms||(window.g_arrForms={}),window.g_strLastButtonClicked||(window.g_strLastButtonClicked=null),Form.arrValidationMethods={},Form.prototype.getDOMElement=function(){return document.getElementById(this.m_strId)},Form.prototype.isElementSubmittable=function(t){return!!(void 0!=t.defaultValue&&t.getAttribute("name")&&t.getAttribute("id"))&&(!t.id||-1===t.id.indexOf("___"))},Form.prototype.isModified=function(){var t=this.getDOMElement();triggerEventCrossBrowser(t,"updatevalues");for(var e=0;e<t.elements.length;e++){var r=t.elements[e];if(this.isElementSubmittable(r)){var a=r.value,o=r.defaultValue;if(void 0!==r.dataset.oncordDefaultValue&&(o=r.dataset.oncordDefaultValue),a!=o&&(isNaN(a)||isNaN(o)||Math.round(a,2)!=Math.round(o,2)))return!0}}return!1},Form.prototype.clearModifiedState=function(){var t=this.getDOMElement();if(t)for(var e=0;e<t.elements.length;e++){var r=t.elements[e];this.isElementSubmittable(r)&&(r.defaultValue=r.value,void 0!=r.dataset.oncordDefaultValue&&(r.dataset.oncordDefaultValue=r.value))}},Form.prototype.validate=function(t){t||(t=this.getDOMElement());var e=this.getValidationErrors(t);if(e.length){for(var r=0;r<e.length;r++){var a=e[r][0],o=e[r][1];this.showValidationError(a,o,0!==r)}return!1}return!0},Form.prototype.getValidationErrors=function(t){t||(t=this.getDOMElement());for(var e=t.querySelectorAll("[data-validations]"),r=[],a=0;a<e.length;a++){var o=e[a],n=o.getAttribute("data-validations").split(",");if(n)for(var i=0;i<n.length;i++){var s=Form.arrValidationMethods[n[i]](o);if(s){r.push([o,s]);break}}}return r.length?r:[]},Form.prototype.showValidationError=function(t,e,r){let a={content:e,hideOn:["keypress","change"],target:t,position:"right",theme:"error",animation:"bounce",positionDynamic:!0},o=t;if(t.type&&"hidden"==t.type&&t.dataset&&t.dataset.layout&&t.parentNode&&"ADDRESSFORM"==t.parentNode.nodeName){let e=t.parentNode.addressForm;e&&e.layout&&e.layout.inputs&&e.layout.inputs[t.dataset.layout]&&(t=e.layout.inputs[t.dataset.layout])}for(;0===t.offsetWidth&&0===t.offsetHeight;){if(t&&t.classList&&t.classList.contains&&t.classList.contains("tablistItem")){let e=0;for(let r=0;r<t.parentNode.childNodes.length;r++){let a=t.parentNode.childNodes[r];if(a===t){let r=a.parentNode.parentNode.firstElementChild.getElementsByTagName("li");r[e]&&triggerEventCrossBrowser&&(triggerEventCrossBrowser(r[e],"click"),t=o);break}a.classList&&a.classList.contains("tablistItem")&&e++}break}t=t.parentNode}if(t.nValidationContainer)t.nValidationContainer.innerHTML="";else{let e=t.parentNode,r=e,o=t.getBoundingClientRect();for(;o&&r&&1===r.nodeType&&"BODY"!==r.nodeName;){let t=getComputedStyle(r);if(("hidden"===t.overflowX||"scroll"===t.overflowX||"auto"===t.overflowX)&&r.parentNode&&1===r.nodeType){let t=r.getBoundingClientRect();(t&&180>Math.abs(o.right-t.right)||o.left+o.width/2-t.left<60)&&(o.top>t.top+50?(a.arrowPosition="bottom",a.position="top"):e=r.parentNode)}if(("hidden"===t.overflowY||"scroll"===t.overflowY||"auto"===t.overflowY)&&r.parentNode&&1===r.nodeType){let t=r.getBoundingClientRect();(t&&o.top-t.top<50||o.bottom-t.bottom>5)&&(e=r.parentNode)}r=r.parentNode}let n=document.createElement("tooltipvalidation");t.nValidationContainer=n}t.parentNode.contains(t.nValidationContainer)||t.parentNode.appendChild(t.nValidationContainer),a.container=t.nValidationContainer,a.target=t,("LABEL"==t.nodeName||t.getAttribute("type")&&("checkbox"===t.getAttribute("type").toLowerCase()||"radio"===t.getAttribute("type").toLowerCase()))&&(a.arrowPosition="bottom",a.position="top"),new ToolTip(a).show();try{!r&&t.focus&&t.focus()}catch(t){}},Form.prototype.onSubmit=function(t){var e,r,a=this,o=this.getDOMElement();if(triggerEventCrossBrowser(o,"updatevalues"),!a.validate())return t.preventDefault(),!1;"ajax"===a.m_strMethod&&(a.m_strOnSubmitAttrValue&&Function("event",this.m_strOnSubmitAttrValue).bind(o)(t),t.preventDefault(),this.clearModifiedState()),a.m_bShowLeavePageWarning=!1;var n=!1;if(window.g_arrAjaxRequests&&g_arrAjaxRequests.length&&"ajax"!==a.m_strMethod)for(var i=0;i<window.g_arrAjaxRequests.length;i++)4!==window.g_arrAjaxRequests[i].readyState&&(n=!0);function s(){for(var t=document.getElementsByClassName("alwayspost"),e=[],r=0;r<t.length;r++){var n=t[r],i=n.getAttribute("name"),s=n.form;s&&s!==o&&triggerEventCrossBrowser(s,"updatevalues");var l=document.createElement("input");l.type="hidden",l.setAttribute("name",i),l.value=n.value,o.appendChild(l),e.push(l)}if(requestAnimationFrame(function(){for(var t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}),o.hasAttribute("onsuccess")&&Function(o.getAttribute("onsuccess")).call(o),triggerEventCrossBrowser(o,"success"),a.clearModifiedState(),o.submitButton&&!o.submitButton.hasAttribute("data-nosubmitted-class")&&(o.submitButton.classList.add("submitButtonSubmitted"),"ajax"===a.m_strMethod))for(var r=1;r<50;r++)setTimeout(function(){window.g_arrAjaxRequests&&!g_arrAjaxRequests.length&&o.submitButton.classList.remove("submitButtonSubmitted")},500*r)}return n||window.g_arrAjaxKeyUp&&Object.keys(window.g_arrAjaxKeyUp).length?(g_arrOnAJAXDone[o.id]||(g_arrOnAJAXDone[o.id]=(e=o.id,r=g_strLastButtonClicked,function(){let t=g_arrForms[e]?g_arrForms[e]:null,a=document.getElementById(r);if(delete g_arrOnAJAXDone[e],t&&a){let e=null;a.getAttribute("name")&&"submit"===a.getAttribute("type")&&((e=document.createElement("input")).setAttribute("name",a.getAttribute("name")),e.setAttribute("value",a.getAttribute("value")),t.getDOMElement().appendChild(e)),s(),t.getDOMElement().submit(),e&&e.parentNode.removeChild(e)}})),t.preventDefault(),!1):this.iSubmittedTime&&this.iSubmittedTime>Date.now()-7e3?(t.preventDefault(),!1):(this.iSubmittedTime=Date.now(),s(),!0)},Form.prototype.submitWithEvents=function(t){if(!t||!1!==triggerEventCrossBrowser(t,"click")){var e=this.getDOMElement();!1!==triggerEventCrossBrowser(e,"submit")&&e.submit()}},Form.HandleLeavePageWarning=function(){for(var t in g_arrForms){if(!document.getElementById(t)){delete g_arrForms[t];continue}if(g_arrForms[t].m_bShowLeavePageWarning&&g_arrForms[t].isModified())return"If you leave this page, changes made to the form will be lost."}},window.onbeforeunload=Form.HandleLeavePageWarning,window.addEventListener("beforeAjaxNavigateValidate",function(t){var e=Form.HandleLeavePageWarning();if(void 0!==e&&!confirm(e+"  Are you sure you want to navigate away?")){t.preventDefault(),t.stopImmediatePropagation();return}for(var r in g_arrForms)g_arrForms[r].clearModifiedState()},!0),window.addEventListener("click",function(t){t.target&&t.target.id&&(g_strLastButtonClicked=t.target.id)}),window.addEventListener("keydown",function(t){if((t.ctrlKey||-1!==navigator.platform.toLowerCase().indexOf("mac")&&t.metaKey)&&83==(document.all?t.keyCode:t.which)){var e,r=document.activeElement,a=getClosest(r,"form");a&&a.id&&g_arrForms[a.id]?e=g_arrForms[a.id]:1===document.forms.length&&(a=document.forms[0]).id&&g_arrForms[a.id]&&(e=g_arrForms[a.id]),e&&e.m_bControlSSubmit&&(e.submitWithEvents(),t.preventDefault())}});
!function(){let e=!1;function t(){if(e)return;e=!0;let t="sw="+screen.width+"&sh="+screen.height+"&ww="+(void 0!==window.innerHeight?window.innerHeight:document.documentElement.offsetHeight)+"&wh="+(void 0!==window.innerWidth?window.innerWidth:document.documentElement.offsetWidth)+"&dpr="+(void 0!==window.devicePixelRatio?window.devicePixelRatio:1);try{t+="&tzo="+encodeURIComponent(Intl.DateTimeFormat().resolvedOptions().timeZone)}catch(e){}fetch("/_public/Components/Website/t.php?"+t,{priority:"low"}).catch(e=>{})}document.onmousemove=t,document.onscroll=t,document.ontouchstart=t}();
(()=>{let e=Date.now();function t(){let t=Date.now();t-e<25e3||(fetch("/_public/Components/Website/_keepalive").catch(e=>{}),e=t)}document.addEventListener("mousemove",t),document.addEventListener("scroll",t),document.addEventListener("touchstart",t)})();
Form.arrValidationMethods["\\Controls\\Forms\\Validations\\Mandatory"]=function(e){if("select"===e.nodeName.toLowerCase()){var t=e.options[e.selectedIndex].value;if(!t||"null"===t)return"Please select a value"}else if(e.getAttribute("type")&&("checkbox"===e.getAttribute("type").toLowerCase()||"radio"===e.getAttribute("type").toLowerCase())){if(e.form){for(var a=e.form.querySelectorAll('input[name="'+e.getAttribute("name")+'"]'),r=!1,l=0;l<a.length;l++)if(a[l].checked){r=!0;break}if(a.length&&e!==a[0])return!1;if(!r)return a.length>1?"Please select an option":"Please select"}}else if(e.getAttribute("data-validation-mandatory")){let t=typeof e.value;if("string"===t&&!e.value.length||"string"!==t&&!e.value)return e.getAttribute("data-validation-mandatory")}else if(void 0!==e.value&&!e.value.trim().length)return"Please fill in this field";return!1};
Form.arrValidationMethods["\\Controls\\Forms\\Validations\\Email"]=function(a){return!!a.value&&!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a.value.trim())&&"Please enter a valid e-mail address."};
(()=>{if(Object.prototype.hasOwnProperty.call(window,"g_arrAjaxEvents")){console.log("Warning: Reinclusion of window.g_arrAjaxEvents - a possible version upgrade has taken place.");return}window.g_arrAjaxEvents={},window.g_arrAjaxKeyUp={},window.g_arrAjaxEventLastRequest=[],window.triggerEventAjax=function(e,t,n,a,o){if(-1!=n.indexOf(",")){let o=n.split(",");for(let r=0;r<o.length;r++)n=(n=o[r]).replace(/^\s+|\s+$/g,""),window.triggerEventAjax(e,t,n,a);return}if(void 0===window.g_arrAjaxEvents[n]){let e="";for(let t in window.g_arrAjaxEvents)e+=t+"\r\n";"undefined"!=typeof console&&console.log("Could not locate <ajax:event> with id "+n+"\r\nValid events: \r\n"+e);return}let r={};r.showLoading=window.g_arrAjaxEvents[n].showLoading,r.showLoadingMessage=window.g_arrAjaxEvents[n].showLoadingMessage,r.onTrigger=window.g_arrAjaxEvents[n].onTrigger,r.onSuccessEval=window.g_arrAjaxEvents[n].onSuccessEval;let i=function(){window.g_arrAjaxEventLastRequest[t+n]&&ajaxAbort(window.g_arrAjaxEventLastRequest[t+n],!0);let o=e.nodeType?e.id:e;r.url="/_public/Framework/HTTP/AJAX/server.php",r.dataIncludeJS=!0,r.dataIncludeCSS=!0,r.dataIncludeURL=!0,r.dataIncludeState=e,r._POST={},r._POST._ajaxsenderid=o,r._POST._ajaxevent=t,r._POST._ajaxeventid=n,r._POST._ajaxeventparameter=a,r.evalChunkedResponse=!0;let i=null,l={},d=["value","selectionStart","selectionEnd","selectionDirection"],s=null,c=[],u=[];r.beforeSuccess=function(){let t=document.activeElement;if(i=t&&void 0!==t.id?t.id:null,"SELECT"!==t.nodeName&&"checkbox"!==t.type&&"radio"!==t.type)for(let e=0;e<d.length;e++){let n=d[e];try{l[n]=t[n]}catch(e){delete l[n]}}let n=e;for("string"==typeof n&&(n=document.getElementById(n)),n&&!n.isConnected&&n.id&&(n=document.getElementById(n.id));n&&"BODY"!==n.nodeName;){if(!s){let e=n.getAttribute("id");e&&(s=e)}s&&(c.push(n.scrollTop),u.push(n.scrollLeft)),n=n.parentNode}},r.success=function(){if((!document.activeElement||document.activeElement&&document.activeElement.nodeName)&&i){let e=document.getElementById(i);if(e){let r=new CustomEvent("beforeAjaxFocus",{bubbles:!0,cancelable:!0,detail:{ajaxEvent:t,ajaxEventId:n,ajaxEventParameter:a,ajaxSender:o}});if(e.dispatchEvent(r),e.focus(),i===o)for(let t=0;t<d.length;t++){let n=d[t];if(void 0!==l[n])try{e[n]=l[n]}catch(e){}}}i=null,l={}}function e(){if(s){let e=document.getElementById(s),t=0;for(;e&&"BODY"!==e.nodeName&&t<c.length;)e.scrollTo({top:c[t],left:u[t],behavior:"instant"}),e.scrollTop=c[t],e.scrollLeft=u[t],e=e.parentNode,t++}}e(),requestAnimationFrame(e),setTimeout(()=>{e(),s=null,c=null,u=null},1)},window.g_arrAjaxEventLastRequest[t+n]=ajaxRequest(r)};if("onkeyup"==t){if(o&&(27==o.keyCode||13==o.keyCode))return;window.g_arrAjaxKeyUp[n]&&clearTimeout(window.g_arrAjaxKeyUp[n]),window.g_arrAjaxKeyUp[n]=setTimeout(function(){i(),delete window.g_arrAjaxKeyUp[n]},300);return}i()}})();
if(typeof(g_arrLoadedJavaScript) == 'undefined')
	var g_arrLoadedJavaScript = [3969419406];
else
	g_arrLoadedJavaScript.push(3969419406);
if(typeof(g_arrLoadedCSS) == 'undefined')
	var g_arrLoadedCSS = ["2193075175"];
else
	g_arrLoadedCSS.push("2193075175");
