Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blackbaud/auth-client

Package Overview
Dependencies
Maintainers
2
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackbaud/auth-client - npm Package Compare versions

Comparing version 2.17.0 to 2.17.1

2

bundles/auth-client.global-es2015.min.js

@@ -1,1 +0,1 @@

window.BBAuthClient=function(e){var t={};function n(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(o,s,function(t){return e[t]}.bind(null,s));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s="https://signin.blackbaud.com/signin/",i="https://host.nxt.blackbaud.com/errors/",r=encodeURIComponent;function a(e){let t=`${s}?redirectUrl=${r(location.href)}`;return e&&(t+="&inactivity=1"),t}t.BBAuthNavigator=class{static navigate(e,t){t?location.replace(e):location.href=e}static redirectToSignin(e){let t=a();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${r(n)}=${r(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=a(!0),t=`${s}sign-out?redirectUrl=${r(e)}`;this.navigate(t)}static redirectToError(e){let t,n;switch(e){case o.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}let s=`${i}${t}?source=auth-client&url=${r(location.href)}`;n&&(s+=`&code=${r(n)}`),this.navigate(s)}}},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(7)),o(n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf",s=n(1),i=n(0);function r(e,t,n,o){return(o||void 0===o&&n)&&((e=e||{})[t]=n),e}function a(e,t,n,o,i){let a;return a=r(a,"environment_id",n),a=r(a,"legal_entity_id",i),a=r(a,"permission_scope",o,!(!n&&!i||!o)),new Promise((n,o)=>{!function(e,t,n,o,i){const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 0:i({code:s.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(r.responseText);break;case 401:i({code:s.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:i({code:s.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:r.status>=400&&i({code:s.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},r.open("POST",e,!0),r.setRequestHeader(t.name,t.value),r.setRequestHeader("Accept","application/json"),r.setRequestHeader("Content-Type","application/json"),r.withCredentials=!0,n?r.send(JSON.stringify(n)):r.send()}(e,{name:"X-CSRF",value:t},a,e=>{const t=e?JSON.parse(e):void 0;n(t)},o)})}t.BBCsrfXhr=class{static request(e,t,n,r,c,d,u){return!c||r||d?new Promise((l,m)=>{new Promise((e,t)=>{u?e({csrf_token:"token_needed"}):a(o,"token_needed").then(e).catch(t)}).then(t=>a(e,t.csrf_token,r,c,d)).then(l).catch(e=>{if(n||e.code===s.BBAuthTokenErrorCode.Offline)m(e);else switch(e.code){case s.BBAuthTokenErrorCode.NotLoggedIn:i.BBAuthNavigator.redirectToSignin(t);break;default:i.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:s.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})}static requestWithToken(e,t){return new Promise((n,o)=>{const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(4===s.readyState)switch(s.status){case 200:n(JSON.parse(s.responseText));break;default:o()}},s.open("GET",e,!0),s.setRequestHeader("Authorization","Bearer "+t),s.setRequestHeader("Accept","application/json"),s.send()})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBAuthDomUtility=class{static addCss(e){const t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}static addIframe(e,t,n){const o=document.createElement("iframe");return o.className=t,o.title=n,o.src=e,this.addElToBodyTop(o),o}static removeCss(e){this.removeEl(e,document.head)}static removeEl(e,t=document.body){t.contains(e)&&t.removeChild(e)}static addElToBodyTop(e){const t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o="https://host.nxt.blackbaud.com";t.BBAuthInterop=class{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||o)}static messageIsFromOmnibar(e){if(e.origin===o){const t=e.data;return!!t&&"skyux-spa-omnibar"===t.source}return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(1)),o(n(10)),o(n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(8),s=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class i{static getUrl(e,t){const n=s.exec(e);let o=e,i=t?t.zone:void 0;return n&&(n[3]&&(i=n[3].substring(1)),o=`https://${n[1]}-${i}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(o)}static getToken(e){return i.getTokenInternal(e)}static clearTokenCache(){i.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(i.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");const s=function(e){const{envId:t,permissionScope:n,leId:o}=e;return"token|"+(o||"-")+"|"+(t||"-")+"|"+(n||"-")}(e),r=i.tokenCache[s]=i.tokenCache[s]||{},a=(new Date).valueOf();return!t&&r.lastToken&&r.expirationTime&&r.expirationTime-a>6e4?Promise.resolve(r.lastToken):(r.pendingLookupPromise||(r.pendingLookupPromise=o.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then(e=>(r.expirationTime=(new Date).valueOf()+1e3*e.expires_in,r.lastToken=e.access_token,r.pendingLookupPromise=null,r.lastToken)).catch(e=>{throw r.pendingLookupPromise=null,e})),r.pendingLookupPromise)}}i.mock=!1,i.tokenCache={},t.BBAuth=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(2),s=n(9);t.BBAuthTokenIntegration=class{static getToken(e,t,n,i){return this.hostNameEndsWith("blackbaud.com")?o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",void 0,e,t,n,i,!0):s.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:i,permissionScope:n})}static hostNameEndsWith(e){return this.getLocationHostname().substr(-e.length)===e}static getLocationHostname(){return window.location.hostname}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3),s=n(0),i=n(5),r="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/Iframes/CrossDomainAuthFrame.html",a="security-token-svc",c="auth-client";class d{static reset(){this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(e=>this.iframeReadyResolve=e),this.listenerSetup=!1}static TARGET_ORIGIN(){return this.TARGETORIGIN}static getOrMakeIframe(){return d.iframeEl=document.getElementById("auth-cross-domain-iframe"),d.iframeEl||(d.iframeEl=o.BBAuthDomUtility.addIframe(r,"auth-cross-domain-iframe",""),d.iframeEl.id="auth-cross-domain-iframe",d.iframeEl.hidden=!0),d.iframeEl}static getToken(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)}static setupListenersForIframe(){this.listenerSetup||(window.addEventListener("message",e=>{const t=e.data,n=t.requestId,o=this.tokenRequests[n];if(t.source===a||t.origin===this.TARGET_ORIGIN())switch(t.messageType){case"ready":this.iframeReadyResolve(!0);break;case"error":this.handleErrorMessage(t.value,o.reject,o.args.disableRedirect);break;case"getToken":const e={access_token:t.value,expires_in:0};o.resolve(e)}}),this.listenerSetup=!0)}static getTokenFromIframe(e,t){return new Promise((n,o)=>{const s=this.requestCounter++;d.tokenRequests[s]={args:t,reject:o,resolve:n},d.iframeReadyPromise.then(()=>{e.contentWindow.postMessage({messageType:"getToken",requestId:s,source:c,value:t},d.TARGET_ORIGIN())})})}static handleErrorMessage(e,t,n){if(n)t(e);else switch(e.code){case i.BBAuthTokenErrorCode.Offline:t(e);break;case i.BBAuthTokenErrorCode.NotLoggedIn:s.BBAuthNavigator.redirectToSignin(void 0);break;default:s.BBAuthNavigator.redirectToError(e.code)}}}d.listenerSetup=!1,d.iframeReadyPromise=new Promise(e=>d.iframeReadyResolve=e),d.tokenRequests={},d.requestCounter=0,d.TARGETORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBAuthCrossDomainIframe=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(11))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s=n(4),i=n(2),r=n(3),a=n(0);function c(e,t,n,i){let a,c;function d(){r.BBAuthDomUtility.removeEl(c),r.BBAuthDomUtility.removeCss(a),c=a=void 0,window.removeEventListener("message",l)}function l(r){if(!s.BBAuthInterop.messageIsFromOmnibar(r))return;const a=r.data;switch(a.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,l=a.disableRedirect,o.BBAuth.getToken({disableRedirect:l}).then(e=>{s.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:u})},e=>{s.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:u})});break;case"welcome-cancel":d(),i({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout(()=>{e.envId=a.envId,n(e)},10)}var u,l}a=r.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),function(){const t=u.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url);c=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",l)}function d(){a.BBAuthNavigator.redirectToError(o.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:s,leIdRequired:r,svcId:a}=e;return!t&&n||!s&&r?new Promise((t,n)=>{a?o.BBAuth.getToken().then(o=>{let s="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/destinations?svcid="+encodeURIComponent(a);e.url&&(s+="&referringurl="+encodeURIComponent(e.url)),i.BBCsrfXhr.requestWithToken(s,o).then(o=>{const s=o&&o.items,i=s&&s.length;1===i?(e.url=s[0].url,t(e)):i>1?c(e,o,t,n):d()})}):d()}):Promise.resolve(e)}}u.url="https://host.nxt.blackbaud.com/omnibar/welcome",t.BBContextProvider=u},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(13)),o(n(19)),o(n(21))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s=n(4),i=n(14),r=n(18),a=n(0),c=n(3),d="sky-omnibar-iframe-expanded",u="sky-omnibar-loading";let l,m,p,h,f,b,v;function y(){h=c.BBAuthDomUtility.addIframe(f.url||"https://host.nxt.blackbaud.com/omnibar/",`sky-omnibar-iframe ${u}`,"Navigation")}function g(){s.BBAuthInterop.postOmnibarMessage(h,{href:document.location.href,messageType:"location-change"})}function B(){function e(e){s.BBAuthInterop.postOmnibarMessage(h,{messageType:"refresh-user",token:e})}o.BBAuth.clearTokenCache(),o.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0}).then(e).catch(()=>e(void 0))}function k(){r.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{i.BBOmnibarUserActivity.userRenewedSession()}})}function I(){r.BBOmnibarUserActivityPrompt.hide()}function T(){i.BBOmnibarUserActivity.startTracking(B,k,I,f.allowAnonymous,b)}function A(e){if(!s.BBAuthInterop.messageIsFromOmnibar(e))return;const t=e.data,n=f.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(h,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(){const t=e.apply(history,arguments);return g(),t},history.replaceState=function(){const e=t.apply(history,arguments);return g(),e}}(),s.BBAuthInterop.postOmnibarMessage(h,{compactNavOnly:f.compactNavOnly,enableHelp:f.enableHelp,envId:f.envId,hideResourceLinks:f.hideResourceLinks,leId:f.leId,localNavItems:n&&n.localNavItems,localNotifications:!!f.notifications,localSearch:!!f.onSearch,messageType:"nav-ready",navVersion:f.navVersion,services:n&&n.services,svcId:f.svcId,theme:f.theme}),function(){const e=f.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(h,{messageType:"notifications-update",notifications:e})}})}(),g(),v();break;case"display-ready":m.classList.remove(u),h.classList.remove(u);break;case"expand":h.classList.add(d);break;case"collapse":h.classList.remove(d);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":const e=t.navItem;n&&n.beforeNavCallback&&!1===n.beforeNavCallback(e)||a.BBAuthNavigator.navigate(e.url);break;case"search":p=t.searchArgs,f.onSearch&&f.onSearch(p).then(e=>{s.BBAuthInterop.postOmnibarMessage(h,{messageType:"search-results",results:e})});break;case"get-token":r=t.tokenRequestId,c=t.disableRedirect,o.BBAuth.getToken({disableRedirect:c}).then(e=>{T(),s.BBAuthInterop.postOmnibarMessage(h,{messageType:"token",token:e,tokenRequestId:r})},e=>{T(),s.BBAuthInterop.postOmnibarMessage(h,{messageType:"token-fail",reason:e,tokenRequestId:r})});break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=f.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"session-renew":i.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e){const t="sky-omnibar-environment-visible",n=document.body.classList;e=e||"",l.innerText=e,e?n.add(t):n.remove(t)}(t.name);break;case"legacy-keep-alive-url-change":b=t.url,T()}var r,c,p}t.BBOmnibar=class{static load(e){return f=f=e,b=f.legacyKeepAliveUrl,new Promise(e=>{v=e,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="#4d5259";const n=f.theme;if(n){const o=n.accent;t=n.backgroundColor||t,!1===o?e="display: none;":o&&o.color&&(e=`background-color: ${o.color};`)}p=c.BBAuthDomUtility.addCss(`\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: ${t};\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: 5px;\n ${e}\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n`)}(),(m=document.createElement("div")).className=`sky-omnibar-placeholder ${u}`,m.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(m),(l=document.createElement("div")).className="sky-omnibar-environment",c.BBAuthDomUtility.addElToBodyTop(l),y(),window.addEventListener("message",A)})}static update(e){s.BBAuthInterop.postOmnibarMessage(h,{messageType:"update",updateArgs:e})}static destroy(){c.BBAuthDomUtility.removeCss(p),c.BBAuthDomUtility.removeEl(m),c.BBAuthDomUtility.removeEl(h),c.BBAuthDomUtility.removeEl(l),window.removeEventListener("message",A),f=p=m=h=l=v=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(15),s=n(16),i=n(17),r=n(2),a=n(0);let c,d,u,l,m,p,h,f,b,v,y,g,B,k,I="";function T(){f=Date.now()}function A(e){e.clientX===d&&e.clientY===u||(d=e.clientX,u=e.clientY,T())}function E(){const e=Date.now();(!b||e-b>R.MIN_RENEWAL_RETRY)&&(b=e,r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(()=>void 0))}function O(){h=!0,p()}function w(){h=!1,T(),l()}function _(){k?a.BBAuthNavigator.navigate(k):a.BBAuthNavigator.redirectToSignoutForInactivity()}class R{static startTracking(e,t,n,r,a){c&&r===y&&a===g||(R.stopTracking(),m=e,p=t,l=n,y=r,g=a,document.addEventListener("keypress",T),document.addEventListener("mousemove",A),y||E(),v=setInterval(()=>{s.BBOmnibarUserSessionExpiration.getSessionExpiration(I,B,y).then(e=>{o.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:w,expirationDate:e,inactivityPromptDuration:R.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:h,lastActivity:f,maxSessionAge:R.MAX_SESSION_AGE,minRenewalAge:R.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:O})})},R.ACTIVITY_TIMER_INTERVAL),i.BBOmnibarUserSessionWatcher.start(r,a,m,e=>{B=e.legacyTtl,I=e.refreshId,k=e.legacySigninUrl}),c=!0)}static userRenewedSession(){w(),E()}static stopTracking(){i.BBOmnibarUserSessionWatcher.stop(),s.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",T),document.removeEventListener("mousemove",A),v&&(clearInterval(v),v=void 0),c=d=u=f=b=h=m=p=l=y=g=void 0}}R.ACTIVITY_TIMER_INTERVAL=1e3,R.MIN_RENEWAL_RETRY=6e4,R.INACTIVITY_PROMPT_DURATION=12e4,R.MIN_RENEWAL_AGE=3e5,R.MAX_SESSION_AGE=54e5,R.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBOmnibarUserActivity=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBOmnibarUserActivityProcessor=class{static process(e){const{allowAnonymous:t,closeInactivityPrompt:n,expirationDate:o,inactivityPromptDuration:s,isShowingInactivityPrompt:i,lastActivity:r,maxSessionAge:a,minRenewalAge:c,redirectForInactivity:d,renewSession:u,showInactivityPrompt:l}=e,m=Date.now();if(null===o)return;!t&&m>o&&d();const p=o-s,h=o-a+c;i?m<p&&n():r>h?u():!t&&m>p&&l()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(2);let s;t.BBOmnibarUserSessionExpiration=class{static getSessionExpiration(e,t,n){const i=function(e,t){if(s&&s.refreshId===e&&s.allowAnonymous===t)return s.promise;const n=new Promise((e,n)=>{o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",void 0,t).then(t=>{const n=null===t?null:Date.now()+1e3*t;e(n)},()=>{e(null)})});return s={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((e,n)=>{i.then(n=>{let o;if(null===n)o=null;else if("number"==typeof t){const e=Date.now()+t;o=Math.min(n,e)}else o=n;e(o)})})}static reset(){s=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(4),s=n(0);let i,r,a,c,d,u,l,m,p={};function h(e){if(e){const t=e.split("://");return`${t[0]}://${t[1].split("/")[0]}`}}function f(e,t){const n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){if("string"==typeof e.data){let t;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){const e=t.message,n=e&&e.sessionId,i=e&&e.refreshId;n||d||(m?s.BBAuthNavigator.navigate(m):s.BBAuthNavigator.redirectToSignin()),void 0!==p.refreshId&&i!==p.refreshId&&function(e){l&&o.BBAuthInterop.postOmnibarMessage(l,e,h(r))}({messageType:"session-refresh"}),void 0!==p.sessionId&&n!==p.sessionId&&a(),p.refreshId=i,p.sessionId=n,c(p)}}}function v(e){switch(e.origin){case y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case h(r):!function(e){const t=e.data;switch(t.messageType){case"ready":p.legacyTtl=t.ttl,m=t.signinUrl,c(p)}}(e)}}class y{static start(e,t,n,o){i&&e===d&&t===r||(y.stop(),d=e,a=n,r=t,c=o,function(){const e=y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);u=f("sky-omnibar-iframe-session-watcher",e)}(),r&&(l=f("sky-omnibar-iframe-legacy-keep-alive",r)),window.addEventListener("message",v,!1),i=!0)}static stop(){window.removeEventListener("message",v,!1),u&&(document.body.removeChild(u),u=void 0),l&&(document.body.removeChild(l),l=void 0),p={},i=d=a=r=m=c=void 0}}y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBOmnibarUserSessionWatcher=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3),s=n(4);let i,r,a;function c(e){if(!s.BBAuthInterop.messageIsFromOmnibar(e))return;switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":a()}}class d{static show(e){this.hide(),a=e.sessionRenewCallback,i=o.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),function(){const e=d.url;r=o.BBAuthDomUtility.addIframe(e,"sky-omnibar-inactivity-iframe","Inactivity Prompt")}(),window.addEventListener("message",c)}static hide(){r&&(o.BBAuthDomUtility.removeEl(r),o.BBAuthDomUtility.removeCss(i),r=i=a=void 0,window.removeEventListener("message",c))}}d.url="https://host.nxt.blackbaud.com/omnibar/inactivity",t.BBOmnibarUserActivityPrompt=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(20);function s(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise(t=>{const n=s(),i=n&&n.fn&&n.fn.jquery;o.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",i).then(()=>o.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")).then(()=>o.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")).then(()=>{document.body.classList.add("bb-omnibar-height-padding");const n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=s()(e.menuEl)),BBAUTH.Omnibar.load(n,e)})})}}},function(e,t,n){"use strict";function o(e){const t=e.split("."),n=[];for(const e of t){const t=parseInt(e,10)||0;n.push(t)}return n}Object.defineProperty(t,"__esModule",{value:!0});class s{static registerScript(e){return new Promise((t,n)=>{const o=document.createElement("script");o.onload=t,o.onerror=n,o.src=e,document.body.appendChild(o)})}static smartRegisterScript(e,t,n){return n&&function(e,t){const n=o(e),s=o(t);for(let e=0;e<n.length;e++)if(e<s.length){if(s[e]>n[e])return!0;if(s[e]<n[e])return!1}return!0}(t,n)?Promise.resolve():s.registerScript(e)}}t.BBOmnibarScriptLoader=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}]);
window.BBAuthClient=function(e){var t={};function n(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(o,s,function(t){return e[t]}.bind(null,s));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s="https://signin.blackbaud.com/signin/",i="https://host.nxt.blackbaud.com/errors/",r=encodeURIComponent;function a(e){let t=`${s}?redirectUrl=${r(location.href)}`;return e&&(t+="&inactivity=1"),t}t.BBAuthNavigator=class{static navigate(e,t){t?location.replace(e):location.href=e}static redirectToSignin(e){let t=a();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${r(n)}=${r(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=a(!0),t=`${s}sign-out?redirectUrl=${r(e)}`;this.navigate(t)}static redirectToError(e){let t,n;switch(e){case o.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}let s=`${i}${t}?source=auth-client&url=${r(location.href)}`;n&&(s+=`&code=${r(n)}`),this.navigate(s)}}},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(7)),o(n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf",s=n(1),i=n(0);function r(e,t,n,o){return(o||void 0===o&&n)&&((e=e||{})[t]=n),e}function a(e,t,n,o,i){let a;return a=r(a,"environment_id",n),a=r(a,"legal_entity_id",i),a=r(a,"permission_scope",o,!(!n&&!i||!o)),new Promise((n,o)=>{!function(e,t,n,o,i){const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 0:i({code:s.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(r.responseText);break;case 401:i({code:s.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:i({code:s.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:r.status>=400&&i({code:s.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},r.open("POST",e,!0),r.setRequestHeader(t.name,t.value),r.setRequestHeader("Accept","application/json"),r.setRequestHeader("Content-Type","application/json"),r.withCredentials=!0,n?r.send(JSON.stringify(n)):r.send()}(e,{name:"X-CSRF",value:t},a,e=>{const t=e?JSON.parse(e):void 0;n(t)},o)})}t.BBCsrfXhr=class{static request(e,t,n,r,c,d,u){return!c||r||d?new Promise((l,m)=>{new Promise((e,t)=>{u?e({csrf_token:"token_needed"}):a(o,"token_needed").then(e).catch(t)}).then(t=>a(e,t.csrf_token,r,c,d)).then(l).catch(e=>{if(n||e.code===s.BBAuthTokenErrorCode.Offline)m(e);else switch(e.code){case s.BBAuthTokenErrorCode.NotLoggedIn:i.BBAuthNavigator.redirectToSignin(t);break;default:i.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:s.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})}static requestWithToken(e,t){return new Promise((n,o)=>{const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(4===s.readyState)switch(s.status){case 200:n(JSON.parse(s.responseText));break;default:o()}},s.open("GET",e,!0),s.setRequestHeader("Authorization","Bearer "+t),s.setRequestHeader("Accept","application/json"),s.send()})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBAuthDomUtility=class{static addCss(e){const t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}static addIframe(e,t,n){const o=document.createElement("iframe");return o.className=t,o.title=n,o.src=e,this.addElToBodyTop(o),o}static removeCss(e){this.removeEl(e,document.head)}static removeEl(e,t=document.body){t.contains(e)&&t.removeChild(e)}static addElToBodyTop(e){const t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o="https://host.nxt.blackbaud.com";t.BBAuthInterop=class{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||o)}static messageIsFromOmnibar(e){if(e.origin===o){const t=e.data;return!!t&&"skyux-spa-omnibar"===t.source}return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(1)),o(n(10)),o(n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(8),s=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class i{static getUrl(e,t){const n=s.exec(e);let o=e,i=t?t.zone:void 0;return i&&(i=i.replace("-","")),n&&(n[3]&&(i=n[3].substring(1)),o=`https://${n[1]}-${i}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(o)}static getToken(e){return i.getTokenInternal(e)}static clearTokenCache(){i.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(i.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");const s=function(e){const{envId:t,permissionScope:n,leId:o}=e;return"token|"+(o||"-")+"|"+(t||"-")+"|"+(n||"-")}(e),r=i.tokenCache[s]=i.tokenCache[s]||{},a=(new Date).valueOf();return!t&&r.lastToken&&r.expirationTime&&r.expirationTime-a>6e4?Promise.resolve(r.lastToken):(r.pendingLookupPromise||(r.pendingLookupPromise=o.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then(e=>(r.expirationTime=(new Date).valueOf()+1e3*e.expires_in,r.lastToken=e.access_token,r.pendingLookupPromise=null,r.lastToken)).catch(e=>{throw r.pendingLookupPromise=null,e})),r.pendingLookupPromise)}}i.mock=!1,i.tokenCache={},t.BBAuth=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(2),s=n(9);t.BBAuthTokenIntegration=class{static getToken(e,t,n,i){return this.hostNameEndsWith("blackbaud.com")?o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",void 0,e,t,n,i,!0):s.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:i,permissionScope:n})}static hostNameEndsWith(e){return this.getLocationHostname().substr(-e.length)===e}static getLocationHostname(){return window.location.hostname}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3),s=n(0),i=n(5),r="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/Iframes/CrossDomainAuthFrame.html",a="security-token-svc",c="auth-client";class d{static reset(){this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(e=>this.iframeReadyResolve=e),this.listenerSetup=!1}static TARGET_ORIGIN(){return this.TARGETORIGIN}static getOrMakeIframe(){return d.iframeEl=document.getElementById("auth-cross-domain-iframe"),d.iframeEl||(d.iframeEl=o.BBAuthDomUtility.addIframe(r,"auth-cross-domain-iframe",""),d.iframeEl.id="auth-cross-domain-iframe",d.iframeEl.hidden=!0),d.iframeEl}static getToken(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)}static setupListenersForIframe(){this.listenerSetup||(window.addEventListener("message",e=>{const t=e.data,n=t.requestId,o=this.tokenRequests[n];if(t.source===a||t.origin===this.TARGET_ORIGIN())switch(t.messageType){case"ready":this.iframeReadyResolve(!0);break;case"error":this.handleErrorMessage(t.value,o.reject,o.args.disableRedirect);break;case"getToken":const e={access_token:t.value,expires_in:0};o.resolve(e)}}),this.listenerSetup=!0)}static getTokenFromIframe(e,t){return new Promise((n,o)=>{const s=this.requestCounter++;d.tokenRequests[s]={args:t,reject:o,resolve:n},d.iframeReadyPromise.then(()=>{e.contentWindow.postMessage({messageType:"getToken",requestId:s,source:c,value:t},d.TARGET_ORIGIN())})})}static handleErrorMessage(e,t,n){if(n)t(e);else switch(e.code){case i.BBAuthTokenErrorCode.Offline:t(e);break;case i.BBAuthTokenErrorCode.NotLoggedIn:s.BBAuthNavigator.redirectToSignin(void 0);break;default:s.BBAuthNavigator.redirectToError(e.code)}}}d.listenerSetup=!1,d.iframeReadyPromise=new Promise(e=>d.iframeReadyResolve=e),d.tokenRequests={},d.requestCounter=0,d.TARGETORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBAuthCrossDomainIframe=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(11))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s=n(4),i=n(2),r=n(3),a=n(0);function c(e,t,n,i){let a,c;function d(){r.BBAuthDomUtility.removeEl(c),r.BBAuthDomUtility.removeCss(a),c=a=void 0,window.removeEventListener("message",l)}function l(r){if(!s.BBAuthInterop.messageIsFromOmnibar(r))return;const a=r.data;switch(a.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,l=a.disableRedirect,o.BBAuth.getToken({disableRedirect:l}).then(e=>{s.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:u})},e=>{s.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:u})});break;case"welcome-cancel":d(),i({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout(()=>{e.envId=a.envId,n(e)},10)}var u,l}a=r.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),function(){const t=u.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url);c=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",l)}function d(){a.BBAuthNavigator.redirectToError(o.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:s,leIdRequired:r,svcId:a}=e;return!t&&n||!s&&r?new Promise((t,n)=>{a?o.BBAuth.getToken().then(o=>{let s="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/destinations?svcid="+encodeURIComponent(a);e.url&&(s+="&referringurl="+encodeURIComponent(e.url)),i.BBCsrfXhr.requestWithToken(s,o).then(o=>{const s=o&&o.items,i=s&&s.length;1===i?(e.url=s[0].url,t(e)):i>1?c(e,o,t,n):d()})}):d()}):Promise.resolve(e)}}u.url="https://host.nxt.blackbaud.com/omnibar/welcome",t.BBContextProvider=u},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(13)),o(n(19)),o(n(21))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s=n(4),i=n(14),r=n(18),a=n(0),c=n(3),d="sky-omnibar-iframe-expanded",u="sky-omnibar-loading";let l,m,p,h,f,b,v;function y(){h=c.BBAuthDomUtility.addIframe(f.url||"https://host.nxt.blackbaud.com/omnibar/",`sky-omnibar-iframe ${u}`,"Navigation")}function g(){s.BBAuthInterop.postOmnibarMessage(h,{href:document.location.href,messageType:"location-change"})}function B(){function e(e){s.BBAuthInterop.postOmnibarMessage(h,{messageType:"refresh-user",token:e})}o.BBAuth.clearTokenCache(),o.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0}).then(e).catch(()=>e(void 0))}function k(){r.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{i.BBOmnibarUserActivity.userRenewedSession()}})}function I(){r.BBOmnibarUserActivityPrompt.hide()}function T(){i.BBOmnibarUserActivity.startTracking(B,k,I,f.allowAnonymous,b)}function A(e){if(!s.BBAuthInterop.messageIsFromOmnibar(e))return;const t=e.data,n=f.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(h,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(){const t=e.apply(history,arguments);return g(),t},history.replaceState=function(){const e=t.apply(history,arguments);return g(),e}}(),s.BBAuthInterop.postOmnibarMessage(h,{compactNavOnly:f.compactNavOnly,enableHelp:f.enableHelp,envId:f.envId,hideResourceLinks:f.hideResourceLinks,leId:f.leId,localNavItems:n&&n.localNavItems,localNotifications:!!f.notifications,localSearch:!!f.onSearch,messageType:"nav-ready",navVersion:f.navVersion,services:n&&n.services,svcId:f.svcId,theme:f.theme}),function(){const e=f.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(h,{messageType:"notifications-update",notifications:e})}})}(),g(),v();break;case"display-ready":m.classList.remove(u),h.classList.remove(u);break;case"expand":h.classList.add(d);break;case"collapse":h.classList.remove(d);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":const e=t.navItem;n&&n.beforeNavCallback&&!1===n.beforeNavCallback(e)||a.BBAuthNavigator.navigate(e.url);break;case"search":p=t.searchArgs,f.onSearch&&f.onSearch(p).then(e=>{s.BBAuthInterop.postOmnibarMessage(h,{messageType:"search-results",results:e})});break;case"get-token":r=t.tokenRequestId,c=t.disableRedirect,o.BBAuth.getToken({disableRedirect:c}).then(e=>{T(),s.BBAuthInterop.postOmnibarMessage(h,{messageType:"token",token:e,tokenRequestId:r})},e=>{T(),s.BBAuthInterop.postOmnibarMessage(h,{messageType:"token-fail",reason:e,tokenRequestId:r})});break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=f.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"session-renew":i.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e){const t="sky-omnibar-environment-visible",n=document.body.classList;e=e||"",l.innerText=e,e?n.add(t):n.remove(t)}(t.name);break;case"legacy-keep-alive-url-change":b=t.url,T()}var r,c,p}t.BBOmnibar=class{static load(e){return f=f=e,b=f.legacyKeepAliveUrl,new Promise(e=>{v=e,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="#4d5259";const n=f.theme;if(n){const o=n.accent;t=n.backgroundColor||t,!1===o?e="display: none;":o&&o.color&&(e=`background-color: ${o.color};`)}p=c.BBAuthDomUtility.addCss(`\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: ${t};\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: 5px;\n ${e}\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n`)}(),(m=document.createElement("div")).className=`sky-omnibar-placeholder ${u}`,m.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(m),(l=document.createElement("div")).className="sky-omnibar-environment",c.BBAuthDomUtility.addElToBodyTop(l),y(),window.addEventListener("message",A)})}static update(e){s.BBAuthInterop.postOmnibarMessage(h,{messageType:"update",updateArgs:e})}static destroy(){c.BBAuthDomUtility.removeCss(p),c.BBAuthDomUtility.removeEl(m),c.BBAuthDomUtility.removeEl(h),c.BBAuthDomUtility.removeEl(l),window.removeEventListener("message",A),f=p=m=h=l=v=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(15),s=n(16),i=n(17),r=n(2),a=n(0);let c,d,u,l,m,p,h,f,b,v,y,g,B,k,I="";function T(){f=Date.now()}function A(e){e.clientX===d&&e.clientY===u||(d=e.clientX,u=e.clientY,T())}function E(){const e=Date.now();(!b||e-b>R.MIN_RENEWAL_RETRY)&&(b=e,r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(()=>void 0))}function O(){h=!0,p()}function w(){h=!1,T(),l()}function _(){k?a.BBAuthNavigator.navigate(k):a.BBAuthNavigator.redirectToSignoutForInactivity()}class R{static startTracking(e,t,n,r,a){c&&r===y&&a===g||(R.stopTracking(),m=e,p=t,l=n,y=r,g=a,document.addEventListener("keypress",T),document.addEventListener("mousemove",A),y||E(),v=setInterval(()=>{s.BBOmnibarUserSessionExpiration.getSessionExpiration(I,B,y).then(e=>{o.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:w,expirationDate:e,inactivityPromptDuration:R.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:h,lastActivity:f,maxSessionAge:R.MAX_SESSION_AGE,minRenewalAge:R.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:O})})},R.ACTIVITY_TIMER_INTERVAL),i.BBOmnibarUserSessionWatcher.start(r,a,m,e=>{B=e.legacyTtl,I=e.refreshId,k=e.legacySigninUrl}),c=!0)}static userRenewedSession(){w(),E()}static stopTracking(){i.BBOmnibarUserSessionWatcher.stop(),s.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",T),document.removeEventListener("mousemove",A),v&&(clearInterval(v),v=void 0),c=d=u=f=b=h=m=p=l=y=g=void 0}}R.ACTIVITY_TIMER_INTERVAL=1e3,R.MIN_RENEWAL_RETRY=6e4,R.INACTIVITY_PROMPT_DURATION=12e4,R.MIN_RENEWAL_AGE=3e5,R.MAX_SESSION_AGE=54e5,R.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBOmnibarUserActivity=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBOmnibarUserActivityProcessor=class{static process(e){const{allowAnonymous:t,closeInactivityPrompt:n,expirationDate:o,inactivityPromptDuration:s,isShowingInactivityPrompt:i,lastActivity:r,maxSessionAge:a,minRenewalAge:c,redirectForInactivity:d,renewSession:u,showInactivityPrompt:l}=e,m=Date.now();if(null===o)return;!t&&m>o&&d();const p=o-s,h=o-a+c;i?m<p&&n():r>h?u():!t&&m>p&&l()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(2);let s;t.BBOmnibarUserSessionExpiration=class{static getSessionExpiration(e,t,n){const i=function(e,t){if(s&&s.refreshId===e&&s.allowAnonymous===t)return s.promise;const n=new Promise((e,n)=>{o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",void 0,t).then(t=>{const n=null===t?null:Date.now()+1e3*t;e(n)},()=>{e(null)})});return s={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((e,n)=>{i.then(n=>{let o;if(null===n)o=null;else if("number"==typeof t){const e=Date.now()+t;o=Math.min(n,e)}else o=n;e(o)})})}static reset(){s=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(4),s=n(0);let i,r,a,c,d,u,l,m,p={};function h(e){if(e){const t=e.split("://");return`${t[0]}://${t[1].split("/")[0]}`}}function f(e,t){const n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){if("string"==typeof e.data){let t;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){const e=t.message,n=e&&e.sessionId,i=e&&e.refreshId;n||d||(m?s.BBAuthNavigator.navigate(m):s.BBAuthNavigator.redirectToSignin()),void 0!==p.refreshId&&i!==p.refreshId&&function(e){l&&o.BBAuthInterop.postOmnibarMessage(l,e,h(r))}({messageType:"session-refresh"}),void 0!==p.sessionId&&n!==p.sessionId&&a(),p.refreshId=i,p.sessionId=n,c(p)}}}function v(e){switch(e.origin){case y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case h(r):!function(e){const t=e.data;switch(t.messageType){case"ready":p.legacyTtl=t.ttl,m=t.signinUrl,c(p)}}(e)}}class y{static start(e,t,n,o){i&&e===d&&t===r||(y.stop(),d=e,a=n,r=t,c=o,function(){const e=y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);u=f("sky-omnibar-iframe-session-watcher",e)}(),r&&(l=f("sky-omnibar-iframe-legacy-keep-alive",r)),window.addEventListener("message",v,!1),i=!0)}static stop(){window.removeEventListener("message",v,!1),u&&(document.body.removeChild(u),u=void 0),l&&(document.body.removeChild(l),l=void 0),p={},i=d=a=r=m=c=void 0}}y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBOmnibarUserSessionWatcher=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3),s=n(4);let i,r,a;function c(e){if(!s.BBAuthInterop.messageIsFromOmnibar(e))return;switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":a()}}class d{static show(e){this.hide(),a=e.sessionRenewCallback,i=o.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),function(){const e=d.url;r=o.BBAuthDomUtility.addIframe(e,"sky-omnibar-inactivity-iframe","Inactivity Prompt")}(),window.addEventListener("message",c)}static hide(){r&&(o.BBAuthDomUtility.removeEl(r),o.BBAuthDomUtility.removeCss(i),r=i=a=void 0,window.removeEventListener("message",c))}}d.url="https://host.nxt.blackbaud.com/omnibar/inactivity",t.BBOmnibarUserActivityPrompt=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(20);function s(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise(t=>{const n=s(),i=n&&n.fn&&n.fn.jquery;o.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",i).then(()=>o.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")).then(()=>o.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")).then(()=>{document.body.classList.add("bb-omnibar-height-padding");const n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=s()(e.menuEl)),BBAUTH.Omnibar.load(n,e)})})}}},function(e,t,n){"use strict";function o(e){const t=e.split("."),n=[];for(const e of t){const t=parseInt(e,10)||0;n.push(t)}return n}Object.defineProperty(t,"__esModule",{value:!0});class s{static registerScript(e){return new Promise((t,n)=>{const o=document.createElement("script");o.onload=t,o.onerror=n,o.src=e,document.body.appendChild(o)})}static smartRegisterScript(e,t,n){return n&&function(e,t){const n=o(e),s=o(t);for(let e=0;e<n.length;e++)if(e<s.length){if(s[e]>n[e])return!0;if(s[e]<n[e])return!1}return!0}(t,n)?Promise.resolve():s.registerScript(e)}}t.BBOmnibarScriptLoader=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}]);

@@ -1,1 +0,1 @@

window.BBAuthClient=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=6)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(1),o="https://signin.blackbaud.com/signin/",i=encodeURIComponent;function a(e){var n=o+"?redirectUrl="+i(location.href);return e&&(n+="&inactivity=1"),n}var s=function(){function e(){}return e.navigate=function(e,n){n?location.replace(e):location.href=e},e.redirectToSignin=function(e){var n=a();e&&(n+="&"+function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(i(t)+"="+i(e[t]));return n.join("&")}(e)),this.navigate(n)},e.redirectToSignoutForInactivity=function(){var e=a(!0),n=o+"sign-out?redirectUrl="+i(e);this.navigate(n)},e.redirectToError=function(e){var n,t;switch(e){case r.BBAuthTokenErrorCode.InvalidEnvironment:t="invalid_env",n="security";break;default:n="broken"}var o="https://host.nxt.blackbaud.com/errors/"+n+"?source=auth-client&url="+i(location.href);t&&(o+="&code="+i(t)),this.navigate(o)},e}();n.BBAuthNavigator=s},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(7)),r(t(5))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(1),o=t(0);function i(e,n,t,r){return(r||void 0===r&&t)&&((e=e||{})[n]=t),e}function a(e,n,t,o,a){var s;return s=i(s,"environment_id",t),s=i(s,"legal_entity_id",a),s=i(s,"permission_scope",o,!(!t&&!a||!o)),new Promise(function(t,o){!function(e,n,t,o,i){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 0:i({code:r.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(a.responseText);break;case 401:i({code:r.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:i({code:r.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:a.status>=400&&i({code:r.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},a.open("POST",e,!0),a.setRequestHeader(n.name,n.value),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/json"),a.withCredentials=!0,t?a.send(JSON.stringify(t)):a.send()}(e,{name:"X-CSRF",value:n},s,function(e){var n=e?JSON.parse(e):void 0;t(n)},o)})}var s=function(){function e(){}return e.request=function(e,n,t,i,s,c,u){return!s||i||c?new Promise(function(d,l){new Promise(function(e,n){u?e({csrf_token:"token_needed"}):a("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf","token_needed").then(e).catch(n)}).then(function(n){return a(e,n.csrf_token,i,s,c)}).then(d).catch(function(e){if(t||e.code===r.BBAuthTokenErrorCode.Offline)l(e);else switch(e.code){case r.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(n);break;default:o.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:r.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})},e.requestWithToken=function(e,n){return new Promise(function(t,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===o.readyState)switch(o.status){case 200:t(JSON.parse(o.responseText));break;default:r()}},o.open("GET",e,!0),o.setRequestHeader("Authorization","Bearer "+n),o.setRequestHeader("Accept","application/json"),o.send()})},e}();n.BBCsrfXhr=s},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.addCss=function(e){var n=document.createElement("style");return n.appendChild(document.createTextNode(e)),document.head.appendChild(n),n},e.addIframe=function(e,n,t){var r=document.createElement("iframe");return r.className=n,r.title=t,r.src=e,this.addElToBodyTop(r),r},e.removeCss=function(e){this.removeEl(e,document.head)},e.removeEl=function(e,n){void 0===n&&(n=document.body),n.contains(e)&&n.removeChild(e)},e.addElToBodyTop=function(e){var n=document.body;n.firstChild?n.insertBefore(e,n.firstChild):n.appendChild(e)},e}();n.BBAuthDomUtility=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.postOmnibarMessage=function(e,n,t){n.source="auth-client",e.contentWindow.postMessage(n,t||"https://host.nxt.blackbaud.com")},e.messageIsFromOmnibar=function(e){if("https://host.nxt.blackbaud.com"===e.origin){var n=e.data;return!!n&&"skyux-spa-omnibar"===n.source}return!1},e}();n.BBAuthInterop=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(n.BBAuthTokenErrorCode||(n.BBAuthTokenErrorCode={}))},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(1)),r(t(10)),r(t(12))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(8),o=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;var i=function(){function e(){}return e.getUrl=function(e,n){var t=o.exec(e),r=e,i=n?n.zone:void 0;return t&&(t[3]&&(i=t[3].substring(1)),r="https://"+t[1]+"-"+i+".app.blackbaud.net/"+t[2]+"/"+t[4]),Promise.resolve(r)},e.getToken=function(n){return e.getTokenInternal(n)},e.clearTokenCache=function(){e.tokenCache={}},e.getTokenInternal=function(n){var t=(n=n||{}).forceNewToken,o=n.disableRedirect;if(e.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");var i=function(e){var n=e.envId,t=e.permissionScope;return"token|"+(e.leId||"-")+"|"+(n||"-")+"|"+(t||"-")}(n),a=e.tokenCache[i]=e.tokenCache[i]||{},s=(new Date).valueOf();return!t&&a.lastToken&&a.expirationTime&&a.expirationTime-s>6e4?Promise.resolve(a.lastToken):(a.pendingLookupPromise||(a.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(o,n.envId,n.permissionScope,n.leId).then(function(e){return a.expirationTime=(new Date).valueOf()+1e3*e.expires_in,a.lastToken=e.access_token,a.pendingLookupPromise=null,a.lastToken}).catch(function(e){throw a.pendingLookupPromise=null,e})),a.pendingLookupPromise)},e.mock=!1,e.tokenCache={},e}();n.BBAuth=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(2),o=t(9),i=function(){function e(){}return e.getToken=function(e,n,t,i){return this.hostNameEndsWith("blackbaud.com")?r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",void 0,e,n,t,i,!0):o.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:n,leId:i,permissionScope:t})},e.hostNameEndsWith=function(e){return this.getLocationHostname().substr(-e.length)===e},e.getLocationHostname=function(){return window.location.hostname},e}();n.BBAuthTokenIntegration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(3),o=t(0),i=t(5),a=function(){function e(){}return e.reset=function(){var e=this;this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(function(n){return e.iframeReadyResolve=n}),this.listenerSetup=!1},e.TARGET_ORIGIN=function(){return this.TARGETORIGIN},e.getOrMakeIframe=function(){return e.iframeEl=document.getElementById("auth-cross-domain-iframe"),e.iframeEl||(e.iframeEl=r.BBAuthDomUtility.addIframe("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),e.iframeEl.id="auth-cross-domain-iframe",e.iframeEl.hidden=!0),e.iframeEl},e.getToken=function(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)},e.setupListenersForIframe=function(){var e=this;this.listenerSetup||(window.addEventListener("message",function(n){var t=n.data,r=t.requestId,o=e.tokenRequests[r];if("security-token-svc"===t.source||t.origin===e.TARGET_ORIGIN())switch(t.messageType){case"ready":e.iframeReadyResolve(!0);break;case"error":e.handleErrorMessage(t.value,o.reject,o.args.disableRedirect);break;case"getToken":var i={access_token:t.value,expires_in:0};o.resolve(i)}}),this.listenerSetup=!0)},e.getTokenFromIframe=function(n,t){var r=this;return new Promise(function(o,i){var a=r.requestCounter++;e.tokenRequests[a]={args:t,reject:i,resolve:o},e.iframeReadyPromise.then(function(){n.contentWindow.postMessage({messageType:"getToken",requestId:a,source:"auth-client",value:t},e.TARGET_ORIGIN())})})},e.handleErrorMessage=function(e,n,t){if(t)n(e);else switch(e.code){case i.BBAuthTokenErrorCode.Offline:n(e);break;case i.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(void 0);break;default:o.BBAuthNavigator.redirectToError(e.code)}},e.listenerSetup=!1,e.iframeReadyPromise=new Promise(function(n){return e.iframeReadyResolve=n}),e.tokenRequests={},e.requestCounter=0,e.TARGETORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBAuthCrossDomainIframe=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t(11))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(1),o=t(4),i=t(2),a=t(3),s=t(0);function c(e,n,t,i){var s,c,u;function l(){a.BBAuthDomUtility.removeEl(c),a.BBAuthDomUtility.removeCss(s),c=s=void 0,window.removeEventListener("message",m)}function m(a){if(o.BBAuthInterop.messageIsFromOmnibar(a)){var s,u,d=a.data;switch(d.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:n,messageType:"context-provide"});break;case"get-token":s=d.tokenRequestId,u=d.disableRedirect,r.BBAuth.getToken({disableRedirect:u}).then(function(e){o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:s})},function(e){o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:s})});break;case"welcome-cancel":l(),i({reason:"canceled"});break;case"welcome-environment-selected":l(),setTimeout(function(){e.envId=d.envId,t(e)},10)}}}s=a.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),u=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url),c=a.BBAuthDomUtility.addIframe(u,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",m)}function u(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var d=function(){function e(){}return e.ensureContext=function(e){var n=e.envId,t=e.envIdRequired,o=e.leId,a=e.leIdRequired,s=e.svcId;return!n&&t||!o&&a?new Promise(function(n,t){s?r.BBAuth.getToken().then(function(r){var o="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/destinations?svcid="+encodeURIComponent(s);e.url&&(o+="&referringurl="+encodeURIComponent(e.url)),i.BBCsrfXhr.requestWithToken(o,r).then(function(r){var o=r&&r.items,i=o&&o.length;1===i?(e.url=o[0].url,n(e)):i>1?c(e,r,n,t):u()})}):u()}):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();n.BBContextProvider=d},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(13)),r(t(19)),r(t(21))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o,i,a,s,c,u,d=t(1),l=t(4),m=t(14),f=t(18),p=t(0),v=t(3),h="sky-omnibar-iframe-expanded",b="sky-omnibar-loading";function y(){a=v.BBAuthDomUtility.addIframe(s.url||"https://host.nxt.blackbaud.com/omnibar/","sky-omnibar-iframe "+b,"Navigation")}function g(){l.BBAuthInterop.postOmnibarMessage(a,{href:document.location.href,messageType:"location-change"})}function B(){function e(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"refresh-user",token:e})}d.BBAuth.clearTokenCache(),d.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0}).then(e).catch(function(){return e(void 0)})}function k(){f.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){m.BBOmnibarUserActivity.userRenewedSession()}})}function I(){f.BBOmnibarUserActivityPrompt.hide()}function T(){m.BBOmnibarUserActivity.startTracking(B,k,I,s.allowAnonymous,c)}function A(e){if(l.BBAuthInterop.messageIsFromOmnibar(e)){var n,t,i,f,v,y,B,k,I,A,E=e.data,O=s.nav;switch(E.messageType){case"ready":l.BBAuthInterop.postOmnibarMessage(a,{messageType:"host-ready"}),I=history.pushState,A=history.replaceState,history.pushState=function(){var e=I.apply(history,arguments);return g(),e},history.replaceState=function(){var e=A.apply(history,arguments);return g(),e},l.BBAuthInterop.postOmnibarMessage(a,{compactNavOnly:s.compactNavOnly,enableHelp:s.enableHelp,envId:s.envId,hideResourceLinks:s.hideResourceLinks,leId:s.leId,localNavItems:O&&O.localNavItems,localNotifications:!!s.notifications,localSearch:!!s.onSearch,messageType:"nav-ready",navVersion:s.navVersion,services:O&&O.services,svcId:s.svcId,theme:s.theme}),(k=s.notifications)&&k.onReady({updateNotifications:function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"notifications-update",notifications:e})}}),g(),u();break;case"display-ready":o.classList.remove(b),a.classList.remove(b);break;case"expand":a.classList.add(h);break;case"collapse":a.classList.remove(h);break;case"navigate-url":p.BBAuthNavigator.navigate(E.url);break;case"navigate":var w=E.navItem;O&&O.beforeNavCallback&&!1===O.beforeNavCallback(w)||p.BBAuthNavigator.navigate(w.url);break;case"search":B=E.searchArgs,s.onSearch&&s.onSearch(B).then(function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"search-results",results:e})});break;case"get-token":v=E.tokenRequestId,y=E.disableRedirect,d.BBAuth.getToken({disableRedirect:y}).then(function(e){T(),l.BBAuthInterop.postOmnibarMessage(a,{messageType:"token",token:e,tokenRequestId:v})},function(e){T(),l.BBAuthInterop.postOmnibarMessage(a,{messageType:"token-fail",reason:e,tokenRequestId:v})});break;case"help-open":(f=window.BBHELP)&&f.HelpWidget.open();break;case"notification-read":!function(e){var n=s.notifications;n&&n.onNotificationRead&&n.onNotificationRead(e)}(E.notification);break;case"session-renew":m.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":n=E.name,t="sky-omnibar-environment-visible",i=document.body.classList,n=n||"",r.innerText=n,n?i.add(t):i.remove(t);break;case"legacy-keep-alive-url-change":c=E.url,T()}}}var E=function(){function e(){}return e.load=function(e){return s=s=e,c=s.legacyKeepAliveUrl,new Promise(function(e){u=e,function(){var e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",n="#4d5259",t=s.theme;if(t){var r=t.accent;n=t.backgroundColor||n,!1===r?e="display: none;":r&&r.color&&(e="background-color: "+r.color+";")}i=v.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: "+n+";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: 5px;\n "+e+'\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}(),(o=document.createElement("div")).className="sky-omnibar-placeholder "+b,o.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(o),(r=document.createElement("div")).className="sky-omnibar-environment",v.BBAuthDomUtility.addElToBodyTop(r),y(),window.addEventListener("message",A)})},e.update=function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"update",updateArgs:e})},e.destroy=function(){v.BBAuthDomUtility.removeCss(i),v.BBAuthDomUtility.removeEl(o),v.BBAuthDomUtility.removeEl(a),v.BBAuthDomUtility.removeEl(r),window.removeEventListener("message",A),s=i=o=a=r=u=void 0},e}();n.BBOmnibar=E},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o,i,a,s,c,u,d,l,m,f,p,v,h,b=t(15),y=t(16),g=t(17),B=t(2),k=t(0),I="";function T(){d=Date.now()}function A(e){e.clientX===o&&e.clientY===i||(o=e.clientX,i=e.clientY,T())}function E(){var e=Date.now();(!l||e-l>P.MIN_RENEWAL_RETRY)&&(l=e,B.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(function(){}))}function O(){u=!0,c()}function w(){u=!1,T(),a()}function _(){h?k.BBAuthNavigator.navigate(h):k.BBAuthNavigator.redirectToSignoutForInactivity()}function R(){f||E(),m=setInterval(function(){y.BBOmnibarUserSessionExpiration.getSessionExpiration(I,v,f).then(function(e){b.BBOmnibarUserActivityProcessor.process({allowAnonymous:f,closeInactivityPrompt:w,expirationDate:e,inactivityPromptDuration:P.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:u,lastActivity:d,maxSessionAge:P.MAX_SESSION_AGE,minRenewalAge:P.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:O})})},P.ACTIVITY_TIMER_INTERVAL)}var P=function(){function e(){}return e.startTracking=function(n,t,o,i,u){r&&i===f&&u===p||(e.stopTracking(),s=n,c=t,a=o,f=i,p=u,document.addEventListener("keypress",T),document.addEventListener("mousemove",A),R(),g.BBOmnibarUserSessionWatcher.start(i,u,s,function(e){v=e.legacyTtl,I=e.refreshId,h=e.legacySigninUrl}),r=!0)},e.userRenewedSession=function(){w(),E()},e.stopTracking=function(){g.BBOmnibarUserSessionWatcher.stop(),y.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",T),document.removeEventListener("mousemove",A),m&&(clearInterval(m),m=void 0),r=o=i=d=l=u=s=c=a=f=p=void 0},e.ACTIVITY_TIMER_INTERVAL=1e3,e.MIN_RENEWAL_RETRY=6e4,e.INACTIVITY_PROMPT_DURATION=12e4,e.MIN_RENEWAL_AGE=3e5,e.MAX_SESSION_AGE=54e5,e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBOmnibarUserActivity=P},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.process=function(e){var n=e.allowAnonymous,t=e.closeInactivityPrompt,r=e.expirationDate,o=e.inactivityPromptDuration,i=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,c=e.minRenewalAge,u=e.redirectForInactivity,d=e.renewSession,l=e.showInactivityPrompt,m=Date.now();if(null!==r){!n&&m>r&&u();var f=r-o,p=r-s+c;i?m<f&&t():a>p?d():!n&&m>f&&l()}},e}();n.BBOmnibarUserActivityProcessor=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o=t(2);var i=function(){function e(){}return e.getSessionExpiration=function(e,n,t){var i=function(e,n){if(r&&r.refreshId===e&&r.allowAnonymous===n)return r.promise;var t=new Promise(function(e,t){o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",void 0,n).then(function(n){var t=null===n?null:Date.now()+1e3*n;e(t)},function(){e(null)})});return r={allowAnonymous:n,promise:t,refreshId:e},t}(e,t);return new Promise(function(e,t){i.then(function(t){var r;if(null===t)r=null;else if("number"==typeof n){var o=Date.now()+n;r=Math.min(t,o)}else r=t;e(r)})})},e.reset=function(){r=void 0},e}();n.BBOmnibarUserSessionExpiration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o,i,a,s,c,u,d,l=t(4),m=t(0),f={};function p(e){if(e){var n=e.split("://");return n[0]+"://"+n[1].split("/")[0]}}function v(e,n){var t=document.createElement("iframe");return t.className=e,t.width="0",t.height="0",t.frameBorder="0",t.src=n,t.tabIndex=-1,t.setAttribute("aria-hidden","true"),document.body.appendChild(t),t}function h(){var e=g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function b(e){if("string"==typeof e.data){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if("session_change"===n.messageType){var t=n.message,r=t&&t.sessionId,c=t&&t.refreshId;r||s||(d?m.BBAuthNavigator.navigate(d):m.BBAuthNavigator.redirectToSignin()),void 0!==f.refreshId&&c!==f.refreshId&&function(e){u&&l.BBAuthInterop.postOmnibarMessage(u,e,p(o))}({messageType:"session-refresh"}),void 0!==f.sessionId&&r!==f.sessionId&&i(),f.refreshId=c,f.sessionId=r,a(f)}}}function y(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case p(o):!function(e){var n=e.data;switch(n.messageType){case"ready":f.legacyTtl=n.ttl,d=n.signinUrl,a(f)}}(e)}}var g=function(){function e(){}return e.start=function(n,t,c,d){r&&n===s&&t===o||(e.stop(),s=n,i=c,o=t,a=d,h(),o&&(u=v("sky-omnibar-iframe-legacy-keep-alive",o)),window.addEventListener("message",y,!1),r=!0)},e.stop=function(){window.removeEventListener("message",y,!1),c&&(document.body.removeChild(c),c=void 0),u&&(document.body.removeChild(u),u=void 0),f={},r=s=i=o=d=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBOmnibarUserSessionWatcher=g},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o,i,a=t(3),s=t(4);function c(e){if(s.BBAuthInterop.messageIsFromOmnibar(e))switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(o,{messageType:"host-ready"}),o.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":i()}}var u=function(){function e(){}return e.show=function(n){var t;this.hide(),i=n.sessionRenewCallback,r=a.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),t=e.url,o=a.BBAuthDomUtility.addIframe(t,"sky-omnibar-inactivity-iframe","Inactivity Prompt"),window.addEventListener("message",c)},e.hide=function(){o&&(a.BBAuthDomUtility.removeEl(o),a.BBAuthDomUtility.removeCss(r),o=r=i=void 0,window.removeEventListener("message",c))},e.url="https://host.nxt.blackbaud.com/omnibar/inactivity",e}();n.BBOmnibarUserActivityPrompt=u},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(20);function o(){return window.jQuery}var i=function(){function e(){}return e.load=function(e){return new Promise(function(n){var t=o(),i=t&&t.fn&&t.fn.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",i).then(function(){return r.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")}).then(function(){return r.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")}).then(function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el",""),document.body.appendChild(t),(e=e||{})["z-index"]=1e3,e.afterLoad=n,e.menuEl&&(e.menuEl=o()(e.menuEl)),BBAUTH.Omnibar.load(t,e)})})},e}();n.BBOmnibarLegacy=i},function(e,n,t){"use strict";function r(e){for(var n=[],t=0,r=e.split(".");t<r.length;t++){var o=r[t],i=parseInt(o,10)||0;n.push(i)}return n}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.registerScript=function(e){return new Promise(function(n,t){var r=document.createElement("script");r.onload=n,r.onerror=t,r.src=e,document.body.appendChild(r)})},e.smartRegisterScript=function(n,t,o){return o&&function(e,n){for(var t=r(e),o=r(n),i=0;i<t.length;i++)if(i<o.length){if(o[i]>t[i])return!0;if(o[i]<t[i])return!1}return!0}(t,o)?Promise.resolve():e.registerScript(n)},e}();n.BBOmnibarScriptLoader=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0})}]);
window.BBAuthClient=function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=6)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(1),o="https://signin.blackbaud.com/signin/",i=encodeURIComponent;function a(e){var n=o+"?redirectUrl="+i(location.href);return e&&(n+="&inactivity=1"),n}var s=function(){function e(){}return e.navigate=function(e,n){n?location.replace(e):location.href=e},e.redirectToSignin=function(e){var n=a();e&&(n+="&"+function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(i(t)+"="+i(e[t]));return n.join("&")}(e)),this.navigate(n)},e.redirectToSignoutForInactivity=function(){var e=a(!0),n=o+"sign-out?redirectUrl="+i(e);this.navigate(n)},e.redirectToError=function(e){var n,t;switch(e){case r.BBAuthTokenErrorCode.InvalidEnvironment:t="invalid_env",n="security";break;default:n="broken"}var o="https://host.nxt.blackbaud.com/errors/"+n+"?source=auth-client&url="+i(location.href);t&&(o+="&code="+i(t)),this.navigate(o)},e}();n.BBAuthNavigator=s},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(7)),r(t(5))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(1),o=t(0);function i(e,n,t,r){return(r||void 0===r&&t)&&((e=e||{})[n]=t),e}function a(e,n,t,o,a){var s;return s=i(s,"environment_id",t),s=i(s,"legal_entity_id",a),s=i(s,"permission_scope",o,!(!t&&!a||!o)),new Promise(function(t,o){!function(e,n,t,o,i){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 0:i({code:r.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(a.responseText);break;case 401:i({code:r.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:i({code:r.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:a.status>=400&&i({code:r.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},a.open("POST",e,!0),a.setRequestHeader(n.name,n.value),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/json"),a.withCredentials=!0,t?a.send(JSON.stringify(t)):a.send()}(e,{name:"X-CSRF",value:n},s,function(e){var n=e?JSON.parse(e):void 0;t(n)},o)})}var s=function(){function e(){}return e.request=function(e,n,t,i,s,c,u){return!s||i||c?new Promise(function(d,l){new Promise(function(e,n){u?e({csrf_token:"token_needed"}):a("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf","token_needed").then(e).catch(n)}).then(function(n){return a(e,n.csrf_token,i,s,c)}).then(d).catch(function(e){if(t||e.code===r.BBAuthTokenErrorCode.Offline)l(e);else switch(e.code){case r.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(n);break;default:o.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:r.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})},e.requestWithToken=function(e,n){return new Promise(function(t,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===o.readyState)switch(o.status){case 200:t(JSON.parse(o.responseText));break;default:r()}},o.open("GET",e,!0),o.setRequestHeader("Authorization","Bearer "+n),o.setRequestHeader("Accept","application/json"),o.send()})},e}();n.BBCsrfXhr=s},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.addCss=function(e){var n=document.createElement("style");return n.appendChild(document.createTextNode(e)),document.head.appendChild(n),n},e.addIframe=function(e,n,t){var r=document.createElement("iframe");return r.className=n,r.title=t,r.src=e,this.addElToBodyTop(r),r},e.removeCss=function(e){this.removeEl(e,document.head)},e.removeEl=function(e,n){void 0===n&&(n=document.body),n.contains(e)&&n.removeChild(e)},e.addElToBodyTop=function(e){var n=document.body;n.firstChild?n.insertBefore(e,n.firstChild):n.appendChild(e)},e}();n.BBAuthDomUtility=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.postOmnibarMessage=function(e,n,t){n.source="auth-client",e.contentWindow.postMessage(n,t||"https://host.nxt.blackbaud.com")},e.messageIsFromOmnibar=function(e){if("https://host.nxt.blackbaud.com"===e.origin){var n=e.data;return!!n&&"skyux-spa-omnibar"===n.source}return!1},e}();n.BBAuthInterop=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(n.BBAuthTokenErrorCode||(n.BBAuthTokenErrorCode={}))},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(1)),r(t(10)),r(t(12))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(8),o=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;var i=function(){function e(){}return e.getUrl=function(e,n){var t=o.exec(e),r=e,i=n?n.zone:void 0;return i&&(i=i.replace("-","")),t&&(t[3]&&(i=t[3].substring(1)),r="https://"+t[1]+"-"+i+".app.blackbaud.net/"+t[2]+"/"+t[4]),Promise.resolve(r)},e.getToken=function(n){return e.getTokenInternal(n)},e.clearTokenCache=function(){e.tokenCache={}},e.getTokenInternal=function(n){var t=(n=n||{}).forceNewToken,o=n.disableRedirect;if(e.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");var i=function(e){var n=e.envId,t=e.permissionScope;return"token|"+(e.leId||"-")+"|"+(n||"-")+"|"+(t||"-")}(n),a=e.tokenCache[i]=e.tokenCache[i]||{},s=(new Date).valueOf();return!t&&a.lastToken&&a.expirationTime&&a.expirationTime-s>6e4?Promise.resolve(a.lastToken):(a.pendingLookupPromise||(a.pendingLookupPromise=r.BBAuthTokenIntegration.getToken(o,n.envId,n.permissionScope,n.leId).then(function(e){return a.expirationTime=(new Date).valueOf()+1e3*e.expires_in,a.lastToken=e.access_token,a.pendingLookupPromise=null,a.lastToken}).catch(function(e){throw a.pendingLookupPromise=null,e})),a.pendingLookupPromise)},e.mock=!1,e.tokenCache={},e}();n.BBAuth=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(2),o=t(9),i=function(){function e(){}return e.getToken=function(e,n,t,i){return this.hostNameEndsWith("blackbaud.com")?r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",void 0,e,n,t,i,!0):o.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:n,leId:i,permissionScope:t})},e.hostNameEndsWith=function(e){return this.getLocationHostname().substr(-e.length)===e},e.getLocationHostname=function(){return window.location.hostname},e}();n.BBAuthTokenIntegration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(3),o=t(0),i=t(5),a=function(){function e(){}return e.reset=function(){var e=this;this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(function(n){return e.iframeReadyResolve=n}),this.listenerSetup=!1},e.TARGET_ORIGIN=function(){return this.TARGETORIGIN},e.getOrMakeIframe=function(){return e.iframeEl=document.getElementById("auth-cross-domain-iframe"),e.iframeEl||(e.iframeEl=r.BBAuthDomUtility.addIframe("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),e.iframeEl.id="auth-cross-domain-iframe",e.iframeEl.hidden=!0),e.iframeEl},e.getToken=function(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)},e.setupListenersForIframe=function(){var e=this;this.listenerSetup||(window.addEventListener("message",function(n){var t=n.data,r=t.requestId,o=e.tokenRequests[r];if("security-token-svc"===t.source||t.origin===e.TARGET_ORIGIN())switch(t.messageType){case"ready":e.iframeReadyResolve(!0);break;case"error":e.handleErrorMessage(t.value,o.reject,o.args.disableRedirect);break;case"getToken":var i={access_token:t.value,expires_in:0};o.resolve(i)}}),this.listenerSetup=!0)},e.getTokenFromIframe=function(n,t){var r=this;return new Promise(function(o,i){var a=r.requestCounter++;e.tokenRequests[a]={args:t,reject:i,resolve:o},e.iframeReadyPromise.then(function(){n.contentWindow.postMessage({messageType:"getToken",requestId:a,source:"auth-client",value:t},e.TARGET_ORIGIN())})})},e.handleErrorMessage=function(e,n,t){if(t)n(e);else switch(e.code){case i.BBAuthTokenErrorCode.Offline:n(e);break;case i.BBAuthTokenErrorCode.NotLoggedIn:o.BBAuthNavigator.redirectToSignin(void 0);break;default:o.BBAuthNavigator.redirectToError(e.code)}},e.listenerSetup=!1,e.iframeReadyPromise=new Promise(function(n){return e.iframeReadyResolve=n}),e.tokenRequests={},e.requestCounter=0,e.TARGETORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBAuthCrossDomainIframe=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t(11))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(1),o=t(4),i=t(2),a=t(3),s=t(0);function c(e,n,t,i){var s,c,u;function l(){a.BBAuthDomUtility.removeEl(c),a.BBAuthDomUtility.removeCss(s),c=s=void 0,window.removeEventListener("message",m)}function m(a){if(o.BBAuthInterop.messageIsFromOmnibar(a)){var s,u,d=a.data;switch(d.messageType){case"ready":o.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),o.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:n,messageType:"context-provide"});break;case"get-token":s=d.tokenRequestId,u=d.disableRedirect,r.BBAuth.getToken({disableRedirect:u}).then(function(e){o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:s})},function(e){o.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:s})});break;case"welcome-cancel":l(),i({reason:"canceled"});break;case"welcome-environment-selected":l(),setTimeout(function(){e.envId=d.envId,t(e)},10)}}}s=a.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),u=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url),c=a.BBAuthDomUtility.addIframe(u,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",m)}function u(){s.BBAuthNavigator.redirectToError(r.BBAuthTokenErrorCode.InvalidEnvironment)}var d=function(){function e(){}return e.ensureContext=function(e){var n=e.envId,t=e.envIdRequired,o=e.leId,a=e.leIdRequired,s=e.svcId;return!n&&t||!o&&a?new Promise(function(n,t){s?r.BBAuth.getToken().then(function(r){var o="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/destinations?svcid="+encodeURIComponent(s);e.url&&(o+="&referringurl="+encodeURIComponent(e.url)),i.BBCsrfXhr.requestWithToken(o,r).then(function(r){var o=r&&r.items,i=o&&o.length;1===i?(e.url=o[0].url,n(e)):i>1?c(e,r,n,t):u()})}):u()}):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();n.BBContextProvider=d},function(e,n,t){"use strict";function r(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),r(t(13)),r(t(19)),r(t(21))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o,i,a,s,c,u,d=t(1),l=t(4),m=t(14),f=t(18),p=t(0),v=t(3),h="sky-omnibar-iframe-expanded",b="sky-omnibar-loading";function y(){a=v.BBAuthDomUtility.addIframe(s.url||"https://host.nxt.blackbaud.com/omnibar/","sky-omnibar-iframe "+b,"Navigation")}function g(){l.BBAuthInterop.postOmnibarMessage(a,{href:document.location.href,messageType:"location-change"})}function B(){function e(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"refresh-user",token:e})}d.BBAuth.clearTokenCache(),d.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0}).then(e).catch(function(){return e(void 0)})}function k(){f.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){m.BBOmnibarUserActivity.userRenewedSession()}})}function I(){f.BBOmnibarUserActivityPrompt.hide()}function T(){m.BBOmnibarUserActivity.startTracking(B,k,I,s.allowAnonymous,c)}function A(e){if(l.BBAuthInterop.messageIsFromOmnibar(e)){var n,t,i,f,v,y,B,k,I,A,E=e.data,O=s.nav;switch(E.messageType){case"ready":l.BBAuthInterop.postOmnibarMessage(a,{messageType:"host-ready"}),I=history.pushState,A=history.replaceState,history.pushState=function(){var e=I.apply(history,arguments);return g(),e},history.replaceState=function(){var e=A.apply(history,arguments);return g(),e},l.BBAuthInterop.postOmnibarMessage(a,{compactNavOnly:s.compactNavOnly,enableHelp:s.enableHelp,envId:s.envId,hideResourceLinks:s.hideResourceLinks,leId:s.leId,localNavItems:O&&O.localNavItems,localNotifications:!!s.notifications,localSearch:!!s.onSearch,messageType:"nav-ready",navVersion:s.navVersion,services:O&&O.services,svcId:s.svcId,theme:s.theme}),(k=s.notifications)&&k.onReady({updateNotifications:function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"notifications-update",notifications:e})}}),g(),u();break;case"display-ready":o.classList.remove(b),a.classList.remove(b);break;case"expand":a.classList.add(h);break;case"collapse":a.classList.remove(h);break;case"navigate-url":p.BBAuthNavigator.navigate(E.url);break;case"navigate":var w=E.navItem;O&&O.beforeNavCallback&&!1===O.beforeNavCallback(w)||p.BBAuthNavigator.navigate(w.url);break;case"search":B=E.searchArgs,s.onSearch&&s.onSearch(B).then(function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"search-results",results:e})});break;case"get-token":v=E.tokenRequestId,y=E.disableRedirect,d.BBAuth.getToken({disableRedirect:y}).then(function(e){T(),l.BBAuthInterop.postOmnibarMessage(a,{messageType:"token",token:e,tokenRequestId:v})},function(e){T(),l.BBAuthInterop.postOmnibarMessage(a,{messageType:"token-fail",reason:e,tokenRequestId:v})});break;case"help-open":(f=window.BBHELP)&&f.HelpWidget.open();break;case"notification-read":!function(e){var n=s.notifications;n&&n.onNotificationRead&&n.onNotificationRead(e)}(E.notification);break;case"session-renew":m.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":n=E.name,t="sky-omnibar-environment-visible",i=document.body.classList,n=n||"",r.innerText=n,n?i.add(t):i.remove(t);break;case"legacy-keep-alive-url-change":c=E.url,T()}}}var E=function(){function e(){}return e.load=function(e){return s=s=e,c=s.legacyKeepAliveUrl,new Promise(function(e){u=e,function(){var e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",n="#4d5259",t=s.theme;if(t){var r=t.accent;n=t.backgroundColor||n,!1===r?e="display: none;":r&&r.color&&(e="background-color: "+r.color+";")}i=v.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: "+n+";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: 5px;\n "+e+'\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}(),(o=document.createElement("div")).className="sky-omnibar-placeholder "+b,o.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(o),(r=document.createElement("div")).className="sky-omnibar-environment",v.BBAuthDomUtility.addElToBodyTop(r),y(),window.addEventListener("message",A)})},e.update=function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"update",updateArgs:e})},e.destroy=function(){v.BBAuthDomUtility.removeCss(i),v.BBAuthDomUtility.removeEl(o),v.BBAuthDomUtility.removeEl(a),v.BBAuthDomUtility.removeEl(r),window.removeEventListener("message",A),s=i=o=a=r=u=void 0},e}();n.BBOmnibar=E},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o,i,a,s,c,u,d,l,m,f,p,v,h,b=t(15),y=t(16),g=t(17),B=t(2),k=t(0),I="";function T(){d=Date.now()}function A(e){e.clientX===o&&e.clientY===i||(o=e.clientX,i=e.clientY,T())}function E(){var e=Date.now();(!l||e-l>P.MIN_RENEWAL_RETRY)&&(l=e,B.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(function(){}))}function O(){u=!0,c()}function w(){u=!1,T(),a()}function _(){h?k.BBAuthNavigator.navigate(h):k.BBAuthNavigator.redirectToSignoutForInactivity()}function R(){f||E(),m=setInterval(function(){y.BBOmnibarUserSessionExpiration.getSessionExpiration(I,v,f).then(function(e){b.BBOmnibarUserActivityProcessor.process({allowAnonymous:f,closeInactivityPrompt:w,expirationDate:e,inactivityPromptDuration:P.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:u,lastActivity:d,maxSessionAge:P.MAX_SESSION_AGE,minRenewalAge:P.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:O})})},P.ACTIVITY_TIMER_INTERVAL)}var P=function(){function e(){}return e.startTracking=function(n,t,o,i,u){r&&i===f&&u===p||(e.stopTracking(),s=n,c=t,a=o,f=i,p=u,document.addEventListener("keypress",T),document.addEventListener("mousemove",A),R(),g.BBOmnibarUserSessionWatcher.start(i,u,s,function(e){v=e.legacyTtl,I=e.refreshId,h=e.legacySigninUrl}),r=!0)},e.userRenewedSession=function(){w(),E()},e.stopTracking=function(){g.BBOmnibarUserSessionWatcher.stop(),y.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",T),document.removeEventListener("mousemove",A),m&&(clearInterval(m),m=void 0),r=o=i=d=l=u=s=c=a=f=p=void 0},e.ACTIVITY_TIMER_INTERVAL=1e3,e.MIN_RENEWAL_RETRY=6e4,e.INACTIVITY_PROMPT_DURATION=12e4,e.MIN_RENEWAL_AGE=3e5,e.MAX_SESSION_AGE=54e5,e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBOmnibarUserActivity=P},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.process=function(e){var n=e.allowAnonymous,t=e.closeInactivityPrompt,r=e.expirationDate,o=e.inactivityPromptDuration,i=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,c=e.minRenewalAge,u=e.redirectForInactivity,d=e.renewSession,l=e.showInactivityPrompt,m=Date.now();if(null!==r){!n&&m>r&&u();var f=r-o,p=r-s+c;i?m<f&&t():a>p?d():!n&&m>f&&l()}},e}();n.BBOmnibarUserActivityProcessor=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o=t(2);var i=function(){function e(){}return e.getSessionExpiration=function(e,n,t){var i=function(e,n){if(r&&r.refreshId===e&&r.allowAnonymous===n)return r.promise;var t=new Promise(function(e,t){o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",void 0,n).then(function(n){var t=null===n?null:Date.now()+1e3*n;e(t)},function(){e(null)})});return r={allowAnonymous:n,promise:t,refreshId:e},t}(e,t);return new Promise(function(e,t){i.then(function(t){var r;if(null===t)r=null;else if("number"==typeof n){var o=Date.now()+n;r=Math.min(t,o)}else r=t;e(r)})})},e.reset=function(){r=void 0},e}();n.BBOmnibarUserSessionExpiration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o,i,a,s,c,u,d,l=t(4),m=t(0),f={};function p(e){if(e){var n=e.split("://");return n[0]+"://"+n[1].split("/")[0]}}function v(e,n){var t=document.createElement("iframe");return t.className=e,t.width="0",t.height="0",t.frameBorder="0",t.src=n,t.tabIndex=-1,t.setAttribute("aria-hidden","true"),document.body.appendChild(t),t}function h(){var e=g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function b(e){if("string"==typeof e.data){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if("session_change"===n.messageType){var t=n.message,r=t&&t.sessionId,c=t&&t.refreshId;r||s||(d?m.BBAuthNavigator.navigate(d):m.BBAuthNavigator.redirectToSignin()),void 0!==f.refreshId&&c!==f.refreshId&&function(e){u&&l.BBAuthInterop.postOmnibarMessage(u,e,p(o))}({messageType:"session-refresh"}),void 0!==f.sessionId&&r!==f.sessionId&&i(),f.refreshId=c,f.sessionId=r,a(f)}}}function y(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case p(o):!function(e){var n=e.data;switch(n.messageType){case"ready":f.legacyTtl=n.ttl,d=n.signinUrl,a(f)}}(e)}}var g=function(){function e(){}return e.start=function(n,t,c,d){r&&n===s&&t===o||(e.stop(),s=n,i=c,o=t,a=d,h(),o&&(u=v("sky-omnibar-iframe-legacy-keep-alive",o)),window.addEventListener("message",y,!1),r=!0)},e.stop=function(){window.removeEventListener("message",y,!1),c&&(document.body.removeChild(c),c=void 0),u&&(document.body.removeChild(u),u=void 0),f={},r=s=i=o=d=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBOmnibarUserSessionWatcher=g},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,o,i,a=t(3),s=t(4);function c(e){if(s.BBAuthInterop.messageIsFromOmnibar(e))switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(o,{messageType:"host-ready"}),o.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":i()}}var u=function(){function e(){}return e.show=function(n){var t;this.hide(),i=n.sessionRenewCallback,r=a.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),t=e.url,o=a.BBAuthDomUtility.addIframe(t,"sky-omnibar-inactivity-iframe","Inactivity Prompt"),window.addEventListener("message",c)},e.hide=function(){o&&(a.BBAuthDomUtility.removeEl(o),a.BBAuthDomUtility.removeCss(r),o=r=i=void 0,window.removeEventListener("message",c))},e.url="https://host.nxt.blackbaud.com/omnibar/inactivity",e}();n.BBOmnibarUserActivityPrompt=u},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(20);function o(){return window.jQuery}var i=function(){function e(){}return e.load=function(e){return new Promise(function(n){var t=o(),i=t&&t.fn&&t.fn.jquery;r.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",i).then(function(){return r.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")}).then(function(){return r.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")}).then(function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el",""),document.body.appendChild(t),(e=e||{})["z-index"]=1e3,e.afterLoad=n,e.menuEl&&(e.menuEl=o()(e.menuEl)),BBAUTH.Omnibar.load(t,e)})})},e}();n.BBOmnibarLegacy=i},function(e,n,t){"use strict";function r(e){for(var n=[],t=0,r=e.split(".");t<r.length;t++){var o=r[t],i=parseInt(o,10)||0;n.push(i)}return n}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.registerScript=function(e){return new Promise(function(n,t){var r=document.createElement("script");r.onload=n,r.onerror=t,r.src=e,document.body.appendChild(r)})},e.smartRegisterScript=function(n,t,o){return o&&function(e,n){for(var t=r(e),o=r(n),i=0;i<t.length;i++)if(i<o.length){if(o[i]>t[i])return!0;if(o[i]<t[i])return!1}return!0}(t,o)?Promise.resolve():e.registerScript(n)},e}();n.BBOmnibarScriptLoader=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0})}]);

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BBAuthClient=t():e.BBAuthClient=t()}(window,function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(o,s,function(t){return e[t]}.bind(null,s));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s="https://signin.blackbaud.com/signin/",i="https://host.nxt.blackbaud.com/errors/",r=encodeURIComponent;function a(e){let t=`${s}?redirectUrl=${r(location.href)}`;return e&&(t+="&inactivity=1"),t}t.BBAuthNavigator=class{static navigate(e,t){t?location.replace(e):location.href=e}static redirectToSignin(e){let t=a();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${r(n)}=${r(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=a(!0),t=`${s}sign-out?redirectUrl=${r(e)}`;this.navigate(t)}static redirectToError(e){let t,n;switch(e){case o.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}let s=`${i}${t}?source=auth-client&url=${r(location.href)}`;n&&(s+=`&code=${r(n)}`),this.navigate(s)}}},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(7)),o(n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf",s=n(1),i=n(0);function r(e,t,n,o){return(o||void 0===o&&n)&&((e=e||{})[t]=n),e}function a(e,t,n,o,i){let a;return a=r(a,"environment_id",n),a=r(a,"legal_entity_id",i),a=r(a,"permission_scope",o,!(!n&&!i||!o)),new Promise((n,o)=>{!function(e,t,n,o,i){const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 0:i({code:s.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(r.responseText);break;case 401:i({code:s.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:i({code:s.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:r.status>=400&&i({code:s.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},r.open("POST",e,!0),r.setRequestHeader(t.name,t.value),r.setRequestHeader("Accept","application/json"),r.setRequestHeader("Content-Type","application/json"),r.withCredentials=!0,n?r.send(JSON.stringify(n)):r.send()}(e,{name:"X-CSRF",value:t},a,e=>{const t=e?JSON.parse(e):void 0;n(t)},o)})}t.BBCsrfXhr=class{static request(e,t,n,r,c,d,u){return!c||r||d?new Promise((l,m)=>{new Promise((e,t)=>{u?e({csrf_token:"token_needed"}):a(o,"token_needed").then(e).catch(t)}).then(t=>a(e,t.csrf_token,r,c,d)).then(l).catch(e=>{if(n||e.code===s.BBAuthTokenErrorCode.Offline)m(e);else switch(e.code){case s.BBAuthTokenErrorCode.NotLoggedIn:i.BBAuthNavigator.redirectToSignin(t);break;default:i.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:s.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})}static requestWithToken(e,t){return new Promise((n,o)=>{const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(4===s.readyState)switch(s.status){case 200:n(JSON.parse(s.responseText));break;default:o()}},s.open("GET",e,!0),s.setRequestHeader("Authorization","Bearer "+t),s.setRequestHeader("Accept","application/json"),s.send()})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBAuthDomUtility=class{static addCss(e){const t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}static addIframe(e,t,n){const o=document.createElement("iframe");return o.className=t,o.title=n,o.src=e,this.addElToBodyTop(o),o}static removeCss(e){this.removeEl(e,document.head)}static removeEl(e,t=document.body){t.contains(e)&&t.removeChild(e)}static addElToBodyTop(e){const t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o="https://host.nxt.blackbaud.com";t.BBAuthInterop=class{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||o)}static messageIsFromOmnibar(e){if(e.origin===o){const t=e.data;return!!t&&"skyux-spa-omnibar"===t.source}return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(1)),o(n(10)),o(n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(8),s=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class i{static getUrl(e,t){const n=s.exec(e);let o=e,i=t?t.zone:void 0;return n&&(n[3]&&(i=n[3].substring(1)),o=`https://${n[1]}-${i}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(o)}static getToken(e){return i.getTokenInternal(e)}static clearTokenCache(){i.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(i.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");const s=function(e){const{envId:t,permissionScope:n,leId:o}=e;return"token|"+(o||"-")+"|"+(t||"-")+"|"+(n||"-")}(e),r=i.tokenCache[s]=i.tokenCache[s]||{},a=(new Date).valueOf();return!t&&r.lastToken&&r.expirationTime&&r.expirationTime-a>6e4?Promise.resolve(r.lastToken):(r.pendingLookupPromise||(r.pendingLookupPromise=o.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then(e=>(r.expirationTime=(new Date).valueOf()+1e3*e.expires_in,r.lastToken=e.access_token,r.pendingLookupPromise=null,r.lastToken)).catch(e=>{throw r.pendingLookupPromise=null,e})),r.pendingLookupPromise)}}i.mock=!1,i.tokenCache={},t.BBAuth=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(2),s=n(9);t.BBAuthTokenIntegration=class{static getToken(e,t,n,i){return this.hostNameEndsWith("blackbaud.com")?o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",void 0,e,t,n,i,!0):s.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:i,permissionScope:n})}static hostNameEndsWith(e){return this.getLocationHostname().substr(-e.length)===e}static getLocationHostname(){return window.location.hostname}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3),s=n(0),i=n(5),r="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/Iframes/CrossDomainAuthFrame.html",a="security-token-svc",c="auth-client";class d{static reset(){this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(e=>this.iframeReadyResolve=e),this.listenerSetup=!1}static TARGET_ORIGIN(){return this.TARGETORIGIN}static getOrMakeIframe(){return d.iframeEl=document.getElementById("auth-cross-domain-iframe"),d.iframeEl||(d.iframeEl=o.BBAuthDomUtility.addIframe(r,"auth-cross-domain-iframe",""),d.iframeEl.id="auth-cross-domain-iframe",d.iframeEl.hidden=!0),d.iframeEl}static getToken(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)}static setupListenersForIframe(){this.listenerSetup||(window.addEventListener("message",e=>{const t=e.data,n=t.requestId,o=this.tokenRequests[n];if(t.source===a||t.origin===this.TARGET_ORIGIN())switch(t.messageType){case"ready":this.iframeReadyResolve(!0);break;case"error":this.handleErrorMessage(t.value,o.reject,o.args.disableRedirect);break;case"getToken":const e={access_token:t.value,expires_in:0};o.resolve(e)}}),this.listenerSetup=!0)}static getTokenFromIframe(e,t){return new Promise((n,o)=>{const s=this.requestCounter++;d.tokenRequests[s]={args:t,reject:o,resolve:n},d.iframeReadyPromise.then(()=>{e.contentWindow.postMessage({messageType:"getToken",requestId:s,source:c,value:t},d.TARGET_ORIGIN())})})}static handleErrorMessage(e,t,n){if(n)t(e);else switch(e.code){case i.BBAuthTokenErrorCode.Offline:t(e);break;case i.BBAuthTokenErrorCode.NotLoggedIn:s.BBAuthNavigator.redirectToSignin(void 0);break;default:s.BBAuthNavigator.redirectToError(e.code)}}}d.listenerSetup=!1,d.iframeReadyPromise=new Promise(e=>d.iframeReadyResolve=e),d.tokenRequests={},d.requestCounter=0,d.TARGETORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBAuthCrossDomainIframe=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(11))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s=n(4),i=n(2),r=n(3),a=n(0);function c(e,t,n,i){let a,c;function d(){r.BBAuthDomUtility.removeEl(c),r.BBAuthDomUtility.removeCss(a),c=a=void 0,window.removeEventListener("message",l)}function l(r){if(!s.BBAuthInterop.messageIsFromOmnibar(r))return;const a=r.data;switch(a.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,l=a.disableRedirect,o.BBAuth.getToken({disableRedirect:l}).then(e=>{s.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:u})},e=>{s.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:u})});break;case"welcome-cancel":d(),i({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout(()=>{e.envId=a.envId,n(e)},10)}var u,l}a=r.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),function(){const t=u.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url);c=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",l)}function d(){a.BBAuthNavigator.redirectToError(o.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:s,leIdRequired:r,svcId:a}=e;return!t&&n||!s&&r?new Promise((t,n)=>{a?o.BBAuth.getToken().then(o=>{let s="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/destinations?svcid="+encodeURIComponent(a);e.url&&(s+="&referringurl="+encodeURIComponent(e.url)),i.BBCsrfXhr.requestWithToken(s,o).then(o=>{const s=o&&o.items,i=s&&s.length;1===i?(e.url=s[0].url,t(e)):i>1?c(e,o,t,n):d()})}):d()}):Promise.resolve(e)}}u.url="https://host.nxt.blackbaud.com/omnibar/welcome",t.BBContextProvider=u},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(13)),o(n(19)),o(n(21))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s=n(4),i=n(14),r=n(18),a=n(0),c=n(3),d="sky-omnibar-iframe-expanded",u="sky-omnibar-loading";let l,m,p,h,f,b,v;function y(){h=c.BBAuthDomUtility.addIframe(f.url||"https://host.nxt.blackbaud.com/omnibar/",`sky-omnibar-iframe ${u}`,"Navigation")}function g(){s.BBAuthInterop.postOmnibarMessage(h,{href:document.location.href,messageType:"location-change"})}function B(){function e(e){s.BBAuthInterop.postOmnibarMessage(h,{messageType:"refresh-user",token:e})}o.BBAuth.clearTokenCache(),o.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0}).then(e).catch(()=>e(void 0))}function k(){r.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{i.BBOmnibarUserActivity.userRenewedSession()}})}function I(){r.BBOmnibarUserActivityPrompt.hide()}function T(){i.BBOmnibarUserActivity.startTracking(B,k,I,f.allowAnonymous,b)}function A(e){if(!s.BBAuthInterop.messageIsFromOmnibar(e))return;const t=e.data,n=f.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(h,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(){const t=e.apply(history,arguments);return g(),t},history.replaceState=function(){const e=t.apply(history,arguments);return g(),e}}(),s.BBAuthInterop.postOmnibarMessage(h,{compactNavOnly:f.compactNavOnly,enableHelp:f.enableHelp,envId:f.envId,hideResourceLinks:f.hideResourceLinks,leId:f.leId,localNavItems:n&&n.localNavItems,localNotifications:!!f.notifications,localSearch:!!f.onSearch,messageType:"nav-ready",navVersion:f.navVersion,services:n&&n.services,svcId:f.svcId,theme:f.theme}),function(){const e=f.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(h,{messageType:"notifications-update",notifications:e})}})}(),g(),v();break;case"display-ready":m.classList.remove(u),h.classList.remove(u);break;case"expand":h.classList.add(d);break;case"collapse":h.classList.remove(d);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":const e=t.navItem;n&&n.beforeNavCallback&&!1===n.beforeNavCallback(e)||a.BBAuthNavigator.navigate(e.url);break;case"search":p=t.searchArgs,f.onSearch&&f.onSearch(p).then(e=>{s.BBAuthInterop.postOmnibarMessage(h,{messageType:"search-results",results:e})});break;case"get-token":r=t.tokenRequestId,c=t.disableRedirect,o.BBAuth.getToken({disableRedirect:c}).then(e=>{T(),s.BBAuthInterop.postOmnibarMessage(h,{messageType:"token",token:e,tokenRequestId:r})},e=>{T(),s.BBAuthInterop.postOmnibarMessage(h,{messageType:"token-fail",reason:e,tokenRequestId:r})});break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=f.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"session-renew":i.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e){const t="sky-omnibar-environment-visible",n=document.body.classList;e=e||"",l.innerText=e,e?n.add(t):n.remove(t)}(t.name);break;case"legacy-keep-alive-url-change":b=t.url,T()}var r,c,p}t.BBOmnibar=class{static load(e){return f=f=e,b=f.legacyKeepAliveUrl,new Promise(e=>{v=e,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="#4d5259";const n=f.theme;if(n){const o=n.accent;t=n.backgroundColor||t,!1===o?e="display: none;":o&&o.color&&(e=`background-color: ${o.color};`)}p=c.BBAuthDomUtility.addCss(`\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: ${t};\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: 5px;\n ${e}\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n`)}(),(m=document.createElement("div")).className=`sky-omnibar-placeholder ${u}`,m.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(m),(l=document.createElement("div")).className="sky-omnibar-environment",c.BBAuthDomUtility.addElToBodyTop(l),y(),window.addEventListener("message",A)})}static update(e){s.BBAuthInterop.postOmnibarMessage(h,{messageType:"update",updateArgs:e})}static destroy(){c.BBAuthDomUtility.removeCss(p),c.BBAuthDomUtility.removeEl(m),c.BBAuthDomUtility.removeEl(h),c.BBAuthDomUtility.removeEl(l),window.removeEventListener("message",A),f=p=m=h=l=v=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(15),s=n(16),i=n(17),r=n(2),a=n(0);let c,d,u,l,m,p,h,f,b,v,y,g,B,k,I="";function T(){f=Date.now()}function A(e){e.clientX===d&&e.clientY===u||(d=e.clientX,u=e.clientY,T())}function E(){const e=Date.now();(!b||e-b>R.MIN_RENEWAL_RETRY)&&(b=e,r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(()=>void 0))}function O(){h=!0,p()}function w(){h=!1,T(),l()}function _(){k?a.BBAuthNavigator.navigate(k):a.BBAuthNavigator.redirectToSignoutForInactivity()}class R{static startTracking(e,t,n,r,a){c&&r===y&&a===g||(R.stopTracking(),m=e,p=t,l=n,y=r,g=a,document.addEventListener("keypress",T),document.addEventListener("mousemove",A),y||E(),v=setInterval(()=>{s.BBOmnibarUserSessionExpiration.getSessionExpiration(I,B,y).then(e=>{o.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:w,expirationDate:e,inactivityPromptDuration:R.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:h,lastActivity:f,maxSessionAge:R.MAX_SESSION_AGE,minRenewalAge:R.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:O})})},R.ACTIVITY_TIMER_INTERVAL),i.BBOmnibarUserSessionWatcher.start(r,a,m,e=>{B=e.legacyTtl,I=e.refreshId,k=e.legacySigninUrl}),c=!0)}static userRenewedSession(){w(),E()}static stopTracking(){i.BBOmnibarUserSessionWatcher.stop(),s.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",T),document.removeEventListener("mousemove",A),v&&(clearInterval(v),v=void 0),c=d=u=f=b=h=m=p=l=y=g=void 0}}R.ACTIVITY_TIMER_INTERVAL=1e3,R.MIN_RENEWAL_RETRY=6e4,R.INACTIVITY_PROMPT_DURATION=12e4,R.MIN_RENEWAL_AGE=3e5,R.MAX_SESSION_AGE=54e5,R.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBOmnibarUserActivity=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBOmnibarUserActivityProcessor=class{static process(e){const{allowAnonymous:t,closeInactivityPrompt:n,expirationDate:o,inactivityPromptDuration:s,isShowingInactivityPrompt:i,lastActivity:r,maxSessionAge:a,minRenewalAge:c,redirectForInactivity:d,renewSession:u,showInactivityPrompt:l}=e,m=Date.now();if(null===o)return;!t&&m>o&&d();const p=o-s,h=o-a+c;i?m<p&&n():r>h?u():!t&&m>p&&l()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(2);let s;t.BBOmnibarUserSessionExpiration=class{static getSessionExpiration(e,t,n){const i=function(e,t){if(s&&s.refreshId===e&&s.allowAnonymous===t)return s.promise;const n=new Promise((e,n)=>{o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",void 0,t).then(t=>{const n=null===t?null:Date.now()+1e3*t;e(n)},()=>{e(null)})});return s={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((e,n)=>{i.then(n=>{let o;if(null===n)o=null;else if("number"==typeof t){const e=Date.now()+t;o=Math.min(n,e)}else o=n;e(o)})})}static reset(){s=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(4),s=n(0);let i,r,a,c,d,u,l,m,p={};function h(e){if(e){const t=e.split("://");return`${t[0]}://${t[1].split("/")[0]}`}}function f(e,t){const n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){if("string"==typeof e.data){let t;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){const e=t.message,n=e&&e.sessionId,i=e&&e.refreshId;n||d||(m?s.BBAuthNavigator.navigate(m):s.BBAuthNavigator.redirectToSignin()),void 0!==p.refreshId&&i!==p.refreshId&&function(e){l&&o.BBAuthInterop.postOmnibarMessage(l,e,h(r))}({messageType:"session-refresh"}),void 0!==p.sessionId&&n!==p.sessionId&&a(),p.refreshId=i,p.sessionId=n,c(p)}}}function v(e){switch(e.origin){case y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case h(r):!function(e){const t=e.data;switch(t.messageType){case"ready":p.legacyTtl=t.ttl,m=t.signinUrl,c(p)}}(e)}}class y{static start(e,t,n,o){i&&e===d&&t===r||(y.stop(),d=e,a=n,r=t,c=o,function(){const e=y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);u=f("sky-omnibar-iframe-session-watcher",e)}(),r&&(l=f("sky-omnibar-iframe-legacy-keep-alive",r)),window.addEventListener("message",v,!1),i=!0)}static stop(){window.removeEventListener("message",v,!1),u&&(document.body.removeChild(u),u=void 0),l&&(document.body.removeChild(l),l=void 0),p={},i=d=a=r=m=c=void 0}}y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBOmnibarUserSessionWatcher=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3),s=n(4);let i,r,a;function c(e){if(!s.BBAuthInterop.messageIsFromOmnibar(e))return;switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":a()}}class d{static show(e){this.hide(),a=e.sessionRenewCallback,i=o.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),function(){const e=d.url;r=o.BBAuthDomUtility.addIframe(e,"sky-omnibar-inactivity-iframe","Inactivity Prompt")}(),window.addEventListener("message",c)}static hide(){r&&(o.BBAuthDomUtility.removeEl(r),o.BBAuthDomUtility.removeCss(i),r=i=a=void 0,window.removeEventListener("message",c))}}d.url="https://host.nxt.blackbaud.com/omnibar/inactivity",t.BBOmnibarUserActivityPrompt=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(20);function s(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise(t=>{const n=s(),i=n&&n.fn&&n.fn.jquery;o.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",i).then(()=>o.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")).then(()=>o.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")).then(()=>{document.body.classList.add("bb-omnibar-height-padding");const n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=s()(e.menuEl)),BBAUTH.Omnibar.load(n,e)})})}}},function(e,t,n){"use strict";function o(e){const t=e.split("."),n=[];for(const e of t){const t=parseInt(e,10)||0;n.push(t)}return n}Object.defineProperty(t,"__esModule",{value:!0});class s{static registerScript(e){return new Promise((t,n)=>{const o=document.createElement("script");o.onload=t,o.onerror=n,o.src=e,document.body.appendChild(o)})}static smartRegisterScript(e,t,n){return n&&function(e,t){const n=o(e),s=o(t);for(let e=0;e<n.length;e++)if(e<s.length){if(s[e]>n[e])return!0;if(s[e]<n[e])return!1}return!0}(t,n)?Promise.resolve():s.registerScript(e)}}t.BBOmnibarScriptLoader=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.BBAuthClient=t():e.BBAuthClient=t()}(window,function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(o,s,function(t){return e[t]}.bind(null,s));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s="https://signin.blackbaud.com/signin/",i="https://host.nxt.blackbaud.com/errors/",r=encodeURIComponent;function a(e){let t=`${s}?redirectUrl=${r(location.href)}`;return e&&(t+="&inactivity=1"),t}t.BBAuthNavigator=class{static navigate(e,t){t?location.replace(e):location.href=e}static redirectToSignin(e){let t=a();e&&(t+="&"+function(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(`${r(n)}=${r(e[n])}`);return t.join("&")}(e)),this.navigate(t)}static redirectToSignoutForInactivity(){const e=a(!0),t=`${s}sign-out?redirectUrl=${r(e)}`;this.navigate(t)}static redirectToError(e){let t,n;switch(e){case o.BBAuthTokenErrorCode.InvalidEnvironment:n="invalid_env",t="security";break;default:t="broken"}let s=`${i}${t}?source=auth-client&url=${r(location.href)}`;n&&(s+=`&code=${r(n)}`),this.navigate(s)}}},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(7)),o(n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf",s=n(1),i=n(0);function r(e,t,n,o){return(o||void 0===o&&n)&&((e=e||{})[t]=n),e}function a(e,t,n,o,i){let a;return a=r(a,"environment_id",n),a=r(a,"legal_entity_id",i),a=r(a,"permission_scope",o,!(!n&&!i||!o)),new Promise((n,o)=>{!function(e,t,n,o,i){const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState)switch(r.status){case 0:i({code:s.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:o(r.responseText);break;case 401:i({code:s.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:i({code:s.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:r.status>=400&&i({code:s.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},r.open("POST",e,!0),r.setRequestHeader(t.name,t.value),r.setRequestHeader("Accept","application/json"),r.setRequestHeader("Content-Type","application/json"),r.withCredentials=!0,n?r.send(JSON.stringify(n)):r.send()}(e,{name:"X-CSRF",value:t},a,e=>{const t=e?JSON.parse(e):void 0;n(t)},o)})}t.BBCsrfXhr=class{static request(e,t,n,r,c,d,u){return!c||r||d?new Promise((l,m)=>{new Promise((e,t)=>{u?e({csrf_token:"token_needed"}):a(o,"token_needed").then(e).catch(t)}).then(t=>a(e,t.csrf_token,r,c,d)).then(l).catch(e=>{if(n||e.code===s.BBAuthTokenErrorCode.Offline)m(e);else switch(e.code){case s.BBAuthTokenErrorCode.NotLoggedIn:i.BBAuthNavigator.redirectToSignin(t);break;default:i.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:s.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})}static requestWithToken(e,t){return new Promise((n,o)=>{const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(4===s.readyState)switch(s.status){case 200:n(JSON.parse(s.responseText));break;default:o()}},s.open("GET",e,!0),s.setRequestHeader("Authorization","Bearer "+t),s.setRequestHeader("Accept","application/json"),s.send()})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBAuthDomUtility=class{static addCss(e){const t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t}static addIframe(e,t,n){const o=document.createElement("iframe");return o.className=t,o.title=n,o.src=e,this.addElToBodyTop(o),o}static removeCss(e){this.removeEl(e,document.head)}static removeEl(e,t=document.body){t.contains(e)&&t.removeChild(e)}static addElToBodyTop(e){const t=document.body;t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o="https://host.nxt.blackbaud.com";t.BBAuthInterop=class{static postOmnibarMessage(e,t,n){t.source="auth-client",e.contentWindow.postMessage(t,n||o)}static messageIsFromOmnibar(e){if(e.origin===o){const t=e.data;return!!t&&"skyux-spa-omnibar"===t.source}return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(t.BBAuthTokenErrorCode||(t.BBAuthTokenErrorCode={}))},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(1)),o(n(10)),o(n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(8),s=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;class i{static getUrl(e,t){const n=s.exec(e);let o=e,i=t?t.zone:void 0;return i&&(i=i.replace("-","")),n&&(n[3]&&(i=n[3].substring(1)),o=`https://${n[1]}-${i}.app.blackbaud.net/${n[2]}/${n[4]}`),Promise.resolve(o)}static getToken(e){return i.getTokenInternal(e)}static clearTokenCache(){i.tokenCache={}}static getTokenInternal(e){e=e||{};const{forceNewToken:t,disableRedirect:n}=e;if(i.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");const s=function(e){const{envId:t,permissionScope:n,leId:o}=e;return"token|"+(o||"-")+"|"+(t||"-")+"|"+(n||"-")}(e),r=i.tokenCache[s]=i.tokenCache[s]||{},a=(new Date).valueOf();return!t&&r.lastToken&&r.expirationTime&&r.expirationTime-a>6e4?Promise.resolve(r.lastToken):(r.pendingLookupPromise||(r.pendingLookupPromise=o.BBAuthTokenIntegration.getToken(n,e.envId,e.permissionScope,e.leId).then(e=>(r.expirationTime=(new Date).valueOf()+1e3*e.expires_in,r.lastToken=e.access_token,r.pendingLookupPromise=null,r.lastToken)).catch(e=>{throw r.pendingLookupPromise=null,e})),r.pendingLookupPromise)}}i.mock=!1,i.tokenCache={},t.BBAuth=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(2),s=n(9);t.BBAuthTokenIntegration=class{static getToken(e,t,n,i){return this.hostNameEndsWith("blackbaud.com")?o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",void 0,e,t,n,i,!0):s.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:t,leId:i,permissionScope:n})}static hostNameEndsWith(e){return this.getLocationHostname().substr(-e.length)===e}static getLocationHostname(){return window.location.hostname}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3),s=n(0),i=n(5),r="https://s21aidntoken00blkbapp01.nxt.blackbaud.com/Iframes/CrossDomainAuthFrame.html",a="security-token-svc",c="auth-client";class d{static reset(){this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(e=>this.iframeReadyResolve=e),this.listenerSetup=!1}static TARGET_ORIGIN(){return this.TARGETORIGIN}static getOrMakeIframe(){return d.iframeEl=document.getElementById("auth-cross-domain-iframe"),d.iframeEl||(d.iframeEl=o.BBAuthDomUtility.addIframe(r,"auth-cross-domain-iframe",""),d.iframeEl.id="auth-cross-domain-iframe",d.iframeEl.hidden=!0),d.iframeEl}static getToken(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)}static setupListenersForIframe(){this.listenerSetup||(window.addEventListener("message",e=>{const t=e.data,n=t.requestId,o=this.tokenRequests[n];if(t.source===a||t.origin===this.TARGET_ORIGIN())switch(t.messageType){case"ready":this.iframeReadyResolve(!0);break;case"error":this.handleErrorMessage(t.value,o.reject,o.args.disableRedirect);break;case"getToken":const e={access_token:t.value,expires_in:0};o.resolve(e)}}),this.listenerSetup=!0)}static getTokenFromIframe(e,t){return new Promise((n,o)=>{const s=this.requestCounter++;d.tokenRequests[s]={args:t,reject:o,resolve:n},d.iframeReadyPromise.then(()=>{e.contentWindow.postMessage({messageType:"getToken",requestId:s,source:c,value:t},d.TARGET_ORIGIN())})})}static handleErrorMessage(e,t,n){if(n)t(e);else switch(e.code){case i.BBAuthTokenErrorCode.Offline:t(e);break;case i.BBAuthTokenErrorCode.NotLoggedIn:s.BBAuthNavigator.redirectToSignin(void 0);break;default:s.BBAuthNavigator.redirectToError(e.code)}}}d.listenerSetup=!1,d.iframeReadyPromise=new Promise(e=>d.iframeReadyResolve=e),d.tokenRequests={},d.requestCounter=0,d.TARGETORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBAuthCrossDomainIframe=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(11))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s=n(4),i=n(2),r=n(3),a=n(0);function c(e,t,n,i){let a,c;function d(){r.BBAuthDomUtility.removeEl(c),r.BBAuthDomUtility.removeCss(a),c=a=void 0,window.removeEventListener("message",l)}function l(r){if(!s.BBAuthInterop.messageIsFromOmnibar(r))return;const a=r.data;switch(a.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),s.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:t,messageType:"context-provide"});break;case"get-token":u=a.tokenRequestId,l=a.disableRedirect,o.BBAuth.getToken({disableRedirect:l}).then(e=>{s.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:u})},e=>{s.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:u})});break;case"welcome-cancel":d(),i({reason:"canceled"});break;case"welcome-environment-selected":d(),setTimeout(()=>{e.envId=a.envId,n(e)},10)}var u,l}a=r.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),function(){const t=u.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url);c=r.BBAuthDomUtility.addIframe(t,"sky-omnibar-welcome-iframe","Welcome")}(),window.addEventListener("message",l)}function d(){a.BBAuthNavigator.redirectToError(o.BBAuthTokenErrorCode.InvalidEnvironment)}class u{static ensureContext(e){const{envId:t,envIdRequired:n,leId:s,leIdRequired:r,svcId:a}=e;return!t&&n||!s&&r?new Promise((t,n)=>{a?o.BBAuth.getToken().then(o=>{let s="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/destinations?svcid="+encodeURIComponent(a);e.url&&(s+="&referringurl="+encodeURIComponent(e.url)),i.BBCsrfXhr.requestWithToken(s,o).then(o=>{const s=o&&o.items,i=s&&s.length;1===i?(e.url=s[0].url,t(e)):i>1?c(e,o,t,n):d()})}):d()}):Promise.resolve(e)}}u.url="https://host.nxt.blackbaud.com/omnibar/welcome",t.BBContextProvider=u},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n(13)),o(n(19)),o(n(21))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),s=n(4),i=n(14),r=n(18),a=n(0),c=n(3),d="sky-omnibar-iframe-expanded",u="sky-omnibar-loading";let l,m,p,h,f,b,v;function y(){h=c.BBAuthDomUtility.addIframe(f.url||"https://host.nxt.blackbaud.com/omnibar/",`sky-omnibar-iframe ${u}`,"Navigation")}function g(){s.BBAuthInterop.postOmnibarMessage(h,{href:document.location.href,messageType:"location-change"})}function B(){function e(e){s.BBAuthInterop.postOmnibarMessage(h,{messageType:"refresh-user",token:e})}o.BBAuth.clearTokenCache(),o.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0}).then(e).catch(()=>e(void 0))}function k(){r.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:()=>{i.BBOmnibarUserActivity.userRenewedSession()}})}function I(){r.BBOmnibarUserActivityPrompt.hide()}function T(){i.BBOmnibarUserActivity.startTracking(B,k,I,f.allowAnonymous,b)}function A(e){if(!s.BBAuthInterop.messageIsFromOmnibar(e))return;const t=e.data,n=f.nav;switch(t.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(h,{messageType:"host-ready"}),function(){const e=history.pushState,t=history.replaceState;history.pushState=function(){const t=e.apply(history,arguments);return g(),t},history.replaceState=function(){const e=t.apply(history,arguments);return g(),e}}(),s.BBAuthInterop.postOmnibarMessage(h,{compactNavOnly:f.compactNavOnly,enableHelp:f.enableHelp,envId:f.envId,hideResourceLinks:f.hideResourceLinks,leId:f.leId,localNavItems:n&&n.localNavItems,localNotifications:!!f.notifications,localSearch:!!f.onSearch,messageType:"nav-ready",navVersion:f.navVersion,services:n&&n.services,svcId:f.svcId,theme:f.theme}),function(){const e=f.notifications;e&&e.onReady({updateNotifications:e=>{s.BBAuthInterop.postOmnibarMessage(h,{messageType:"notifications-update",notifications:e})}})}(),g(),v();break;case"display-ready":m.classList.remove(u),h.classList.remove(u);break;case"expand":h.classList.add(d);break;case"collapse":h.classList.remove(d);break;case"navigate-url":a.BBAuthNavigator.navigate(t.url);break;case"navigate":const e=t.navItem;n&&n.beforeNavCallback&&!1===n.beforeNavCallback(e)||a.BBAuthNavigator.navigate(e.url);break;case"search":p=t.searchArgs,f.onSearch&&f.onSearch(p).then(e=>{s.BBAuthInterop.postOmnibarMessage(h,{messageType:"search-results",results:e})});break;case"get-token":r=t.tokenRequestId,c=t.disableRedirect,o.BBAuth.getToken({disableRedirect:c}).then(e=>{T(),s.BBAuthInterop.postOmnibarMessage(h,{messageType:"token",token:e,tokenRequestId:r})},e=>{T(),s.BBAuthInterop.postOmnibarMessage(h,{messageType:"token-fail",reason:e,tokenRequestId:r})});break;case"help-open":!function(){const e=window.BBHELP;e&&e.HelpWidget.open()}();break;case"notification-read":!function(e){const t=f.notifications;t&&t.onNotificationRead&&t.onNotificationRead(e)}(t.notification);break;case"session-renew":i.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":!function(e){const t="sky-omnibar-environment-visible",n=document.body.classList;e=e||"",l.innerText=e,e?n.add(t):n.remove(t)}(t.name);break;case"legacy-keep-alive-url-change":b=t.url,T()}var r,c,p}t.BBOmnibar=class{static load(e){return f=f=e,b=f.legacyKeepAliveUrl,new Promise(e=>{v=e,function(){let e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",t="#4d5259";const n=f.theme;if(n){const o=n.accent;t=n.backgroundColor||t,!1===o?e="display: none;":o&&o.color&&(e=`background-color: ${o.color};`)}p=c.BBAuthDomUtility.addCss(`\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: ${t};\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: 5px;\n ${e}\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n`)}(),(m=document.createElement("div")).className=`sky-omnibar-placeholder ${u}`,m.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(m),(l=document.createElement("div")).className="sky-omnibar-environment",c.BBAuthDomUtility.addElToBodyTop(l),y(),window.addEventListener("message",A)})}static update(e){s.BBAuthInterop.postOmnibarMessage(h,{messageType:"update",updateArgs:e})}static destroy(){c.BBAuthDomUtility.removeCss(p),c.BBAuthDomUtility.removeEl(m),c.BBAuthDomUtility.removeEl(h),c.BBAuthDomUtility.removeEl(l),window.removeEventListener("message",A),f=p=m=h=l=v=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(15),s=n(16),i=n(17),r=n(2),a=n(0);let c,d,u,l,m,p,h,f,b,v,y,g,B,k,I="";function T(){f=Date.now()}function A(e){e.clientX===d&&e.clientY===u||(d=e.clientX,u=e.clientY,T())}function E(){const e=Date.now();(!b||e-b>R.MIN_RENEWAL_RETRY)&&(b=e,r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(()=>void 0))}function O(){h=!0,p()}function w(){h=!1,T(),l()}function _(){k?a.BBAuthNavigator.navigate(k):a.BBAuthNavigator.redirectToSignoutForInactivity()}class R{static startTracking(e,t,n,r,a){c&&r===y&&a===g||(R.stopTracking(),m=e,p=t,l=n,y=r,g=a,document.addEventListener("keypress",T),document.addEventListener("mousemove",A),y||E(),v=setInterval(()=>{s.BBOmnibarUserSessionExpiration.getSessionExpiration(I,B,y).then(e=>{o.BBOmnibarUserActivityProcessor.process({allowAnonymous:y,closeInactivityPrompt:w,expirationDate:e,inactivityPromptDuration:R.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:h,lastActivity:f,maxSessionAge:R.MAX_SESSION_AGE,minRenewalAge:R.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:O})})},R.ACTIVITY_TIMER_INTERVAL),i.BBOmnibarUserSessionWatcher.start(r,a,m,e=>{B=e.legacyTtl,I=e.refreshId,k=e.legacySigninUrl}),c=!0)}static userRenewedSession(){w(),E()}static stopTracking(){i.BBOmnibarUserSessionWatcher.stop(),s.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",T),document.removeEventListener("mousemove",A),v&&(clearInterval(v),v=void 0),c=d=u=f=b=h=m=p=l=y=g=void 0}}R.ACTIVITY_TIMER_INTERVAL=1e3,R.MIN_RENEWAL_RETRY=6e4,R.INACTIVITY_PROMPT_DURATION=12e4,R.MIN_RENEWAL_AGE=3e5,R.MAX_SESSION_AGE=54e5,R.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBOmnibarUserActivity=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BBOmnibarUserActivityProcessor=class{static process(e){const{allowAnonymous:t,closeInactivityPrompt:n,expirationDate:o,inactivityPromptDuration:s,isShowingInactivityPrompt:i,lastActivity:r,maxSessionAge:a,minRenewalAge:c,redirectForInactivity:d,renewSession:u,showInactivityPrompt:l}=e,m=Date.now();if(null===o)return;!t&&m>o&&d();const p=o-s,h=o-a+c;i?m<p&&n():r>h?u():!t&&m>p&&l()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(2);let s;t.BBOmnibarUserSessionExpiration=class{static getSessionExpiration(e,t,n){const i=function(e,t){if(s&&s.refreshId===e&&s.allowAnonymous===t)return s.promise;const n=new Promise((e,n)=>{o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",void 0,t).then(t=>{const n=null===t?null:Date.now()+1e3*t;e(n)},()=>{e(null)})});return s={allowAnonymous:t,promise:n,refreshId:e},n}(e,n);return new Promise((e,n)=>{i.then(n=>{let o;if(null===n)o=null;else if("number"==typeof t){const e=Date.now()+t;o=Math.min(n,e)}else o=n;e(o)})})}static reset(){s=void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(4),s=n(0);let i,r,a,c,d,u,l,m,p={};function h(e){if(e){const t=e.split("://");return`${t[0]}://${t[1].split("/")[0]}`}}function f(e,t){const n=document.createElement("iframe");return n.className=e,n.width="0",n.height="0",n.frameBorder="0",n.src=t,n.tabIndex=-1,n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n}function b(e){if("string"==typeof e.data){let t;try{t=JSON.parse(e.data)}catch(e){return}if("session_change"===t.messageType){const e=t.message,n=e&&e.sessionId,i=e&&e.refreshId;n||d||(m?s.BBAuthNavigator.navigate(m):s.BBAuthNavigator.redirectToSignin()),void 0!==p.refreshId&&i!==p.refreshId&&function(e){l&&o.BBAuthInterop.postOmnibarMessage(l,e,h(r))}({messageType:"session-refresh"}),void 0!==p.sessionId&&n!==p.sessionId&&a(),p.refreshId=i,p.sessionId=n,c(p)}}}function v(e){switch(e.origin){case y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case h(r):!function(e){const t=e.data;switch(t.messageType){case"ready":p.legacyTtl=t.ttl,m=t.signinUrl,c(p)}}(e)}}class y{static start(e,t,n,o){i&&e===d&&t===r||(y.stop(),d=e,a=n,r=t,c=o,function(){const e=y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);u=f("sky-omnibar-iframe-session-watcher",e)}(),r&&(l=f("sky-omnibar-iframe-legacy-keep-alive",r)),window.addEventListener("message",v,!1),i=!0)}static stop(){window.removeEventListener("message",v,!1),u&&(document.body.removeChild(u),u=void 0),l&&(document.body.removeChild(l),l=void 0),p={},i=d=a=r=m=c=void 0}}y.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",t.BBOmnibarUserSessionWatcher=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(3),s=n(4);let i,r,a;function c(e){if(!s.BBAuthInterop.messageIsFromOmnibar(e))return;switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":a()}}class d{static show(e){this.hide(),a=e.sessionRenewCallback,i=o.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),function(){const e=d.url;r=o.BBAuthDomUtility.addIframe(e,"sky-omnibar-inactivity-iframe","Inactivity Prompt")}(),window.addEventListener("message",c)}static hide(){r&&(o.BBAuthDomUtility.removeEl(r),o.BBAuthDomUtility.removeCss(i),r=i=a=void 0,window.removeEventListener("message",c))}}d.url="https://host.nxt.blackbaud.com/omnibar/inactivity",t.BBOmnibarUserActivityPrompt=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(20);function s(){return window.jQuery}t.BBOmnibarLegacy=class{static load(e){return new Promise(t=>{const n=s(),i=n&&n.fn&&n.fn.jquery;o.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",i).then(()=>o.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")).then(()=>o.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")).then(()=>{document.body.classList.add("bb-omnibar-height-padding");const n=document.createElement("div");n.setAttribute("data-omnibar-el",""),document.body.appendChild(n),(e=e||{})["z-index"]=1e3,e.afterLoad=t,e.menuEl&&(e.menuEl=s()(e.menuEl)),BBAUTH.Omnibar.load(n,e)})})}}},function(e,t,n){"use strict";function o(e){const t=e.split("."),n=[];for(const e of t){const t=parseInt(e,10)||0;n.push(t)}return n}Object.defineProperty(t,"__esModule",{value:!0});class s{static registerScript(e){return new Promise((t,n)=>{const o=document.createElement("script");o.onload=t,o.onerror=n,o.src=e,document.body.appendChild(o)})}static smartRegisterScript(e,t,n){return n&&function(e,t){const n=o(e),s=o(t);for(let e=0;e<n.length;e++)if(e<s.length){if(s[e]>n[e])return!0;if(s[e]<n[e])return!1}return!0}(t,n)?Promise.resolve():s.registerScript(e)}}t.BBOmnibarScriptLoader=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})}])});

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.BBAuthClient=n():e.BBAuthClient=n()}(window,function(){return function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=6)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(1),r="https://signin.blackbaud.com/signin/",i=encodeURIComponent;function a(e){var n=r+"?redirectUrl="+i(location.href);return e&&(n+="&inactivity=1"),n}var s=function(){function e(){}return e.navigate=function(e,n){n?location.replace(e):location.href=e},e.redirectToSignin=function(e){var n=a();e&&(n+="&"+function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(i(t)+"="+i(e[t]));return n.join("&")}(e)),this.navigate(n)},e.redirectToSignoutForInactivity=function(){var e=a(!0),n=r+"sign-out?redirectUrl="+i(e);this.navigate(n)},e.redirectToError=function(e){var n,t;switch(e){case o.BBAuthTokenErrorCode.InvalidEnvironment:t="invalid_env",n="security";break;default:n="broken"}var r="https://host.nxt.blackbaud.com/errors/"+n+"?source=auth-client&url="+i(location.href);t&&(r+="&code="+i(t)),this.navigate(r)},e}();n.BBAuthNavigator=s},function(e,n,t){"use strict";function o(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),o(t(7)),o(t(5))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(1),r=t(0);function i(e,n,t,o){return(o||void 0===o&&t)&&((e=e||{})[n]=t),e}function a(e,n,t,r,a){var s;return s=i(s,"environment_id",t),s=i(s,"legal_entity_id",a),s=i(s,"permission_scope",r,!(!t&&!a||!r)),new Promise(function(t,r){!function(e,n,t,r,i){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 0:i({code:o.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:r(a.responseText);break;case 401:i({code:o.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:i({code:o.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:a.status>=400&&i({code:o.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},a.open("POST",e,!0),a.setRequestHeader(n.name,n.value),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/json"),a.withCredentials=!0,t?a.send(JSON.stringify(t)):a.send()}(e,{name:"X-CSRF",value:n},s,function(e){var n=e?JSON.parse(e):void 0;t(n)},r)})}var s=function(){function e(){}return e.request=function(e,n,t,i,s,c,u){return!s||i||c?new Promise(function(d,l){new Promise(function(e,n){u?e({csrf_token:"token_needed"}):a("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf","token_needed").then(e).catch(n)}).then(function(n){return a(e,n.csrf_token,i,s,c)}).then(d).catch(function(e){if(t||e.code===o.BBAuthTokenErrorCode.Offline)l(e);else switch(e.code){case o.BBAuthTokenErrorCode.NotLoggedIn:r.BBAuthNavigator.redirectToSignin(n);break;default:r.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:o.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})},e.requestWithToken=function(e,n){return new Promise(function(t,o){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState)switch(r.status){case 200:t(JSON.parse(r.responseText));break;default:o()}},r.open("GET",e,!0),r.setRequestHeader("Authorization","Bearer "+n),r.setRequestHeader("Accept","application/json"),r.send()})},e}();n.BBCsrfXhr=s},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.addCss=function(e){var n=document.createElement("style");return n.appendChild(document.createTextNode(e)),document.head.appendChild(n),n},e.addIframe=function(e,n,t){var o=document.createElement("iframe");return o.className=n,o.title=t,o.src=e,this.addElToBodyTop(o),o},e.removeCss=function(e){this.removeEl(e,document.head)},e.removeEl=function(e,n){void 0===n&&(n=document.body),n.contains(e)&&n.removeChild(e)},e.addElToBodyTop=function(e){var n=document.body;n.firstChild?n.insertBefore(e,n.firstChild):n.appendChild(e)},e}();n.BBAuthDomUtility=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.postOmnibarMessage=function(e,n,t){n.source="auth-client",e.contentWindow.postMessage(n,t||"https://host.nxt.blackbaud.com")},e.messageIsFromOmnibar=function(e){if("https://host.nxt.blackbaud.com"===e.origin){var n=e.data;return!!n&&"skyux-spa-omnibar"===n.source}return!1},e}();n.BBAuthInterop=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(n.BBAuthTokenErrorCode||(n.BBAuthTokenErrorCode={}))},function(e,n,t){"use strict";function o(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),o(t(1)),o(t(10)),o(t(12))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(8),r=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;var i=function(){function e(){}return e.getUrl=function(e,n){var t=r.exec(e),o=e,i=n?n.zone:void 0;return t&&(t[3]&&(i=t[3].substring(1)),o="https://"+t[1]+"-"+i+".app.blackbaud.net/"+t[2]+"/"+t[4]),Promise.resolve(o)},e.getToken=function(n){return e.getTokenInternal(n)},e.clearTokenCache=function(){e.tokenCache={}},e.getTokenInternal=function(n){var t=(n=n||{}).forceNewToken,r=n.disableRedirect;if(e.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");var i=function(e){var n=e.envId,t=e.permissionScope;return"token|"+(e.leId||"-")+"|"+(n||"-")+"|"+(t||"-")}(n),a=e.tokenCache[i]=e.tokenCache[i]||{},s=(new Date).valueOf();return!t&&a.lastToken&&a.expirationTime&&a.expirationTime-s>6e4?Promise.resolve(a.lastToken):(a.pendingLookupPromise||(a.pendingLookupPromise=o.BBAuthTokenIntegration.getToken(r,n.envId,n.permissionScope,n.leId).then(function(e){return a.expirationTime=(new Date).valueOf()+1e3*e.expires_in,a.lastToken=e.access_token,a.pendingLookupPromise=null,a.lastToken}).catch(function(e){throw a.pendingLookupPromise=null,e})),a.pendingLookupPromise)},e.mock=!1,e.tokenCache={},e}();n.BBAuth=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(2),r=t(9),i=function(){function e(){}return e.getToken=function(e,n,t,i){return this.hostNameEndsWith("blackbaud.com")?o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",void 0,e,n,t,i,!0):r.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:n,leId:i,permissionScope:t})},e.hostNameEndsWith=function(e){return this.getLocationHostname().substr(-e.length)===e},e.getLocationHostname=function(){return window.location.hostname},e}();n.BBAuthTokenIntegration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(3),r=t(0),i=t(5),a=function(){function e(){}return e.reset=function(){var e=this;this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(function(n){return e.iframeReadyResolve=n}),this.listenerSetup=!1},e.TARGET_ORIGIN=function(){return this.TARGETORIGIN},e.getOrMakeIframe=function(){return e.iframeEl=document.getElementById("auth-cross-domain-iframe"),e.iframeEl||(e.iframeEl=o.BBAuthDomUtility.addIframe("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),e.iframeEl.id="auth-cross-domain-iframe",e.iframeEl.hidden=!0),e.iframeEl},e.getToken=function(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)},e.setupListenersForIframe=function(){var e=this;this.listenerSetup||(window.addEventListener("message",function(n){var t=n.data,o=t.requestId,r=e.tokenRequests[o];if("security-token-svc"===t.source||t.origin===e.TARGET_ORIGIN())switch(t.messageType){case"ready":e.iframeReadyResolve(!0);break;case"error":e.handleErrorMessage(t.value,r.reject,r.args.disableRedirect);break;case"getToken":var i={access_token:t.value,expires_in:0};r.resolve(i)}}),this.listenerSetup=!0)},e.getTokenFromIframe=function(n,t){var o=this;return new Promise(function(r,i){var a=o.requestCounter++;e.tokenRequests[a]={args:t,reject:i,resolve:r},e.iframeReadyPromise.then(function(){n.contentWindow.postMessage({messageType:"getToken",requestId:a,source:"auth-client",value:t},e.TARGET_ORIGIN())})})},e.handleErrorMessage=function(e,n,t){if(t)n(e);else switch(e.code){case i.BBAuthTokenErrorCode.Offline:n(e);break;case i.BBAuthTokenErrorCode.NotLoggedIn:r.BBAuthNavigator.redirectToSignin(void 0);break;default:r.BBAuthNavigator.redirectToError(e.code)}},e.listenerSetup=!1,e.iframeReadyPromise=new Promise(function(n){return e.iframeReadyResolve=n}),e.tokenRequests={},e.requestCounter=0,e.TARGETORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBAuthCrossDomainIframe=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t(11))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(1),r=t(4),i=t(2),a=t(3),s=t(0);function c(e,n,t,i){var s,c,u;function l(){a.BBAuthDomUtility.removeEl(c),a.BBAuthDomUtility.removeCss(s),c=s=void 0,window.removeEventListener("message",m)}function m(a){if(r.BBAuthInterop.messageIsFromOmnibar(a)){var s,u,d=a.data;switch(d.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:n,messageType:"context-provide"});break;case"get-token":s=d.tokenRequestId,u=d.disableRedirect,o.BBAuth.getToken({disableRedirect:u}).then(function(e){r.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:s})},function(e){r.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:s})});break;case"welcome-cancel":l(),i({reason:"canceled"});break;case"welcome-environment-selected":l(),setTimeout(function(){e.envId=d.envId,t(e)},10)}}}s=a.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),u=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url),c=a.BBAuthDomUtility.addIframe(u,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",m)}function u(){s.BBAuthNavigator.redirectToError(o.BBAuthTokenErrorCode.InvalidEnvironment)}var d=function(){function e(){}return e.ensureContext=function(e){var n=e.envId,t=e.envIdRequired,r=e.leId,a=e.leIdRequired,s=e.svcId;return!n&&t||!r&&a?new Promise(function(n,t){s?o.BBAuth.getToken().then(function(o){var r="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/destinations?svcid="+encodeURIComponent(s);e.url&&(r+="&referringurl="+encodeURIComponent(e.url)),i.BBCsrfXhr.requestWithToken(r,o).then(function(o){var r=o&&o.items,i=r&&r.length;1===i?(e.url=r[0].url,n(e)):i>1?c(e,o,n,t):u()})}):u()}):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();n.BBContextProvider=d},function(e,n,t){"use strict";function o(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),o(t(13)),o(t(19)),o(t(21))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r,i,a,s,c,u,d=t(1),l=t(4),m=t(14),f=t(18),p=t(0),v=t(3),h="sky-omnibar-iframe-expanded",b="sky-omnibar-loading";function y(){a=v.BBAuthDomUtility.addIframe(s.url||"https://host.nxt.blackbaud.com/omnibar/","sky-omnibar-iframe "+b,"Navigation")}function g(){l.BBAuthInterop.postOmnibarMessage(a,{href:document.location.href,messageType:"location-change"})}function B(){function e(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"refresh-user",token:e})}d.BBAuth.clearTokenCache(),d.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0}).then(e).catch(function(){return e(void 0)})}function k(){f.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){m.BBOmnibarUserActivity.userRenewedSession()}})}function I(){f.BBOmnibarUserActivityPrompt.hide()}function T(){m.BBOmnibarUserActivity.startTracking(B,k,I,s.allowAnonymous,c)}function A(e){if(l.BBAuthInterop.messageIsFromOmnibar(e)){var n,t,i,f,v,y,B,k,I,A,E=e.data,O=s.nav;switch(E.messageType){case"ready":l.BBAuthInterop.postOmnibarMessage(a,{messageType:"host-ready"}),I=history.pushState,A=history.replaceState,history.pushState=function(){var e=I.apply(history,arguments);return g(),e},history.replaceState=function(){var e=A.apply(history,arguments);return g(),e},l.BBAuthInterop.postOmnibarMessage(a,{compactNavOnly:s.compactNavOnly,enableHelp:s.enableHelp,envId:s.envId,hideResourceLinks:s.hideResourceLinks,leId:s.leId,localNavItems:O&&O.localNavItems,localNotifications:!!s.notifications,localSearch:!!s.onSearch,messageType:"nav-ready",navVersion:s.navVersion,services:O&&O.services,svcId:s.svcId,theme:s.theme}),(k=s.notifications)&&k.onReady({updateNotifications:function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"notifications-update",notifications:e})}}),g(),u();break;case"display-ready":r.classList.remove(b),a.classList.remove(b);break;case"expand":a.classList.add(h);break;case"collapse":a.classList.remove(h);break;case"navigate-url":p.BBAuthNavigator.navigate(E.url);break;case"navigate":var w=E.navItem;O&&O.beforeNavCallback&&!1===O.beforeNavCallback(w)||p.BBAuthNavigator.navigate(w.url);break;case"search":B=E.searchArgs,s.onSearch&&s.onSearch(B).then(function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"search-results",results:e})});break;case"get-token":v=E.tokenRequestId,y=E.disableRedirect,d.BBAuth.getToken({disableRedirect:y}).then(function(e){T(),l.BBAuthInterop.postOmnibarMessage(a,{messageType:"token",token:e,tokenRequestId:v})},function(e){T(),l.BBAuthInterop.postOmnibarMessage(a,{messageType:"token-fail",reason:e,tokenRequestId:v})});break;case"help-open":(f=window.BBHELP)&&f.HelpWidget.open();break;case"notification-read":!function(e){var n=s.notifications;n&&n.onNotificationRead&&n.onNotificationRead(e)}(E.notification);break;case"session-renew":m.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":n=E.name,t="sky-omnibar-environment-visible",i=document.body.classList,n=n||"",o.innerText=n,n?i.add(t):i.remove(t);break;case"legacy-keep-alive-url-change":c=E.url,T()}}}var E=function(){function e(){}return e.load=function(e){return s=s=e,c=s.legacyKeepAliveUrl,new Promise(function(e){u=e,function(){var e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",n="#4d5259",t=s.theme;if(t){var o=t.accent;n=t.backgroundColor||n,!1===o?e="display: none;":o&&o.color&&(e="background-color: "+o.color+";")}i=v.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: "+n+";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: 5px;\n "+e+'\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}(),(r=document.createElement("div")).className="sky-omnibar-placeholder "+b,r.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(r),(o=document.createElement("div")).className="sky-omnibar-environment",v.BBAuthDomUtility.addElToBodyTop(o),y(),window.addEventListener("message",A)})},e.update=function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"update",updateArgs:e})},e.destroy=function(){v.BBAuthDomUtility.removeCss(i),v.BBAuthDomUtility.removeEl(r),v.BBAuthDomUtility.removeEl(a),v.BBAuthDomUtility.removeEl(o),window.removeEventListener("message",A),s=i=r=a=o=u=void 0},e}();n.BBOmnibar=E},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r,i,a,s,c,u,d,l,m,f,p,v,h,b=t(15),y=t(16),g=t(17),B=t(2),k=t(0),I="";function T(){d=Date.now()}function A(e){e.clientX===r&&e.clientY===i||(r=e.clientX,i=e.clientY,T())}function E(){var e=Date.now();(!l||e-l>P.MIN_RENEWAL_RETRY)&&(l=e,B.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(function(){}))}function O(){u=!0,c()}function w(){u=!1,T(),a()}function _(){h?k.BBAuthNavigator.navigate(h):k.BBAuthNavigator.redirectToSignoutForInactivity()}function R(){f||E(),m=setInterval(function(){y.BBOmnibarUserSessionExpiration.getSessionExpiration(I,v,f).then(function(e){b.BBOmnibarUserActivityProcessor.process({allowAnonymous:f,closeInactivityPrompt:w,expirationDate:e,inactivityPromptDuration:P.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:u,lastActivity:d,maxSessionAge:P.MAX_SESSION_AGE,minRenewalAge:P.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:O})})},P.ACTIVITY_TIMER_INTERVAL)}var P=function(){function e(){}return e.startTracking=function(n,t,r,i,u){o&&i===f&&u===p||(e.stopTracking(),s=n,c=t,a=r,f=i,p=u,document.addEventListener("keypress",T),document.addEventListener("mousemove",A),R(),g.BBOmnibarUserSessionWatcher.start(i,u,s,function(e){v=e.legacyTtl,I=e.refreshId,h=e.legacySigninUrl}),o=!0)},e.userRenewedSession=function(){w(),E()},e.stopTracking=function(){g.BBOmnibarUserSessionWatcher.stop(),y.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",T),document.removeEventListener("mousemove",A),m&&(clearInterval(m),m=void 0),o=r=i=d=l=u=s=c=a=f=p=void 0},e.ACTIVITY_TIMER_INTERVAL=1e3,e.MIN_RENEWAL_RETRY=6e4,e.INACTIVITY_PROMPT_DURATION=12e4,e.MIN_RENEWAL_AGE=3e5,e.MAX_SESSION_AGE=54e5,e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBOmnibarUserActivity=P},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.process=function(e){var n=e.allowAnonymous,t=e.closeInactivityPrompt,o=e.expirationDate,r=e.inactivityPromptDuration,i=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,c=e.minRenewalAge,u=e.redirectForInactivity,d=e.renewSession,l=e.showInactivityPrompt,m=Date.now();if(null!==o){!n&&m>o&&u();var f=o-r,p=o-s+c;i?m<f&&t():a>p?d():!n&&m>f&&l()}},e}();n.BBOmnibarUserActivityProcessor=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r=t(2);var i=function(){function e(){}return e.getSessionExpiration=function(e,n,t){var i=function(e,n){if(o&&o.refreshId===e&&o.allowAnonymous===n)return o.promise;var t=new Promise(function(e,t){r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",void 0,n).then(function(n){var t=null===n?null:Date.now()+1e3*n;e(t)},function(){e(null)})});return o={allowAnonymous:n,promise:t,refreshId:e},t}(e,t);return new Promise(function(e,t){i.then(function(t){var o;if(null===t)o=null;else if("number"==typeof n){var r=Date.now()+n;o=Math.min(t,r)}else o=t;e(o)})})},e.reset=function(){o=void 0},e}();n.BBOmnibarUserSessionExpiration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r,i,a,s,c,u,d,l=t(4),m=t(0),f={};function p(e){if(e){var n=e.split("://");return n[0]+"://"+n[1].split("/")[0]}}function v(e,n){var t=document.createElement("iframe");return t.className=e,t.width="0",t.height="0",t.frameBorder="0",t.src=n,t.tabIndex=-1,t.setAttribute("aria-hidden","true"),document.body.appendChild(t),t}function h(){var e=g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function b(e){if("string"==typeof e.data){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if("session_change"===n.messageType){var t=n.message,o=t&&t.sessionId,c=t&&t.refreshId;o||s||(d?m.BBAuthNavigator.navigate(d):m.BBAuthNavigator.redirectToSignin()),void 0!==f.refreshId&&c!==f.refreshId&&function(e){u&&l.BBAuthInterop.postOmnibarMessage(u,e,p(r))}({messageType:"session-refresh"}),void 0!==f.sessionId&&o!==f.sessionId&&i(),f.refreshId=c,f.sessionId=o,a(f)}}}function y(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case p(r):!function(e){var n=e.data;switch(n.messageType){case"ready":f.legacyTtl=n.ttl,d=n.signinUrl,a(f)}}(e)}}var g=function(){function e(){}return e.start=function(n,t,c,d){o&&n===s&&t===r||(e.stop(),s=n,i=c,r=t,a=d,h(),r&&(u=v("sky-omnibar-iframe-legacy-keep-alive",r)),window.addEventListener("message",y,!1),o=!0)},e.stop=function(){window.removeEventListener("message",y,!1),c&&(document.body.removeChild(c),c=void 0),u&&(document.body.removeChild(u),u=void 0),f={},o=s=i=r=d=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBOmnibarUserSessionWatcher=g},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r,i,a=t(3),s=t(4);function c(e){if(s.BBAuthInterop.messageIsFromOmnibar(e))switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":i()}}var u=function(){function e(){}return e.show=function(n){var t;this.hide(),i=n.sessionRenewCallback,o=a.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),t=e.url,r=a.BBAuthDomUtility.addIframe(t,"sky-omnibar-inactivity-iframe","Inactivity Prompt"),window.addEventListener("message",c)},e.hide=function(){r&&(a.BBAuthDomUtility.removeEl(r),a.BBAuthDomUtility.removeCss(o),r=o=i=void 0,window.removeEventListener("message",c))},e.url="https://host.nxt.blackbaud.com/omnibar/inactivity",e}();n.BBOmnibarUserActivityPrompt=u},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(20);function r(){return window.jQuery}var i=function(){function e(){}return e.load=function(e){return new Promise(function(n){var t=r(),i=t&&t.fn&&t.fn.jquery;o.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",i).then(function(){return o.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")}).then(function(){return o.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")}).then(function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el",""),document.body.appendChild(t),(e=e||{})["z-index"]=1e3,e.afterLoad=n,e.menuEl&&(e.menuEl=r()(e.menuEl)),BBAUTH.Omnibar.load(t,e)})})},e}();n.BBOmnibarLegacy=i},function(e,n,t){"use strict";function o(e){for(var n=[],t=0,o=e.split(".");t<o.length;t++){var r=o[t],i=parseInt(r,10)||0;n.push(i)}return n}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.registerScript=function(e){return new Promise(function(n,t){var o=document.createElement("script");o.onload=n,o.onerror=t,o.src=e,document.body.appendChild(o)})},e.smartRegisterScript=function(n,t,r){return r&&function(e,n){for(var t=o(e),r=o(n),i=0;i<t.length;i++)if(i<r.length){if(r[i]>t[i])return!0;if(r[i]<t[i])return!1}return!0}(t,r)?Promise.resolve():e.registerScript(n)},e}();n.BBOmnibarScriptLoader=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0})}])});
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.BBAuthClient=n():e.BBAuthClient=n()}(window,function(){return function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=6)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(1),r="https://signin.blackbaud.com/signin/",i=encodeURIComponent;function a(e){var n=r+"?redirectUrl="+i(location.href);return e&&(n+="&inactivity=1"),n}var s=function(){function e(){}return e.navigate=function(e,n){n?location.replace(e):location.href=e},e.redirectToSignin=function(e){var n=a();e&&(n+="&"+function(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(i(t)+"="+i(e[t]));return n.join("&")}(e)),this.navigate(n)},e.redirectToSignoutForInactivity=function(){var e=a(!0),n=r+"sign-out?redirectUrl="+i(e);this.navigate(n)},e.redirectToError=function(e){var n,t;switch(e){case o.BBAuthTokenErrorCode.InvalidEnvironment:t="invalid_env",n="security";break;default:n="broken"}var r="https://host.nxt.blackbaud.com/errors/"+n+"?source=auth-client&url="+i(location.href);t&&(r+="&code="+i(t)),this.navigate(r)},e}();n.BBAuthNavigator=s},function(e,n,t){"use strict";function o(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),o(t(7)),o(t(5))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(1),r=t(0);function i(e,n,t,o){return(o||void 0===o&&t)&&((e=e||{})[n]=t),e}function a(e,n,t,r,a){var s;return s=i(s,"environment_id",t),s=i(s,"legal_entity_id",a),s=i(s,"permission_scope",r,!(!t&&!a||!r)),new Promise(function(t,r){!function(e,n,t,r,i){var a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState)switch(a.status){case 0:i({code:o.BBAuthTokenErrorCode.Offline,message:"The user is offline."});break;case 200:r(a.responseText);break;case 401:i({code:o.BBAuthTokenErrorCode.NotLoggedIn,message:"The user is not logged in."});break;case 403:i({code:o.BBAuthTokenErrorCode.InvalidEnvironment,message:"The user is not a member of the specified environment."});break;default:a.status>=400&&i({code:o.BBAuthTokenErrorCode.Unspecified,message:"An unknown error occurred."})}},a.open("POST",e,!0),a.setRequestHeader(n.name,n.value),a.setRequestHeader("Accept","application/json"),a.setRequestHeader("Content-Type","application/json"),a.withCredentials=!0,t?a.send(JSON.stringify(t)):a.send()}(e,{name:"X-CSRF",value:n},s,function(e){var n=e?JSON.parse(e):void 0;t(n)},r)})}var s=function(){function e(){}return e.request=function(e,n,t,i,s,c,u){return!s||i||c?new Promise(function(d,l){new Promise(function(e,n){u?e({csrf_token:"token_needed"}):a("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/csrf","token_needed").then(e).catch(n)}).then(function(n){return a(e,n.csrf_token,i,s,c)}).then(d).catch(function(e){if(t||e.code===o.BBAuthTokenErrorCode.Offline)l(e);else switch(e.code){case o.BBAuthTokenErrorCode.NotLoggedIn:r.BBAuthNavigator.redirectToSignin(n);break;default:r.BBAuthNavigator.redirectToError(e.code)}})}):Promise.reject({code:o.BBAuthTokenErrorCode.PermissionScopeNoEnvironment,message:"You must also specify an environment or legal entity when specifying a permission scope."})},e.requestWithToken=function(e,n){return new Promise(function(t,o){var r=new XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState)switch(r.status){case 200:t(JSON.parse(r.responseText));break;default:o()}},r.open("GET",e,!0),r.setRequestHeader("Authorization","Bearer "+n),r.setRequestHeader("Accept","application/json"),r.send()})},e}();n.BBCsrfXhr=s},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.addCss=function(e){var n=document.createElement("style");return n.appendChild(document.createTextNode(e)),document.head.appendChild(n),n},e.addIframe=function(e,n,t){var o=document.createElement("iframe");return o.className=n,o.title=t,o.src=e,this.addElToBodyTop(o),o},e.removeCss=function(e){this.removeEl(e,document.head)},e.removeEl=function(e,n){void 0===n&&(n=document.body),n.contains(e)&&n.removeChild(e)},e.addElToBodyTop=function(e){var n=document.body;n.firstChild?n.insertBefore(e,n.firstChild):n.appendChild(e)},e}();n.BBAuthDomUtility=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.postOmnibarMessage=function(e,n,t){n.source="auth-client",e.contentWindow.postMessage(n,t||"https://host.nxt.blackbaud.com")},e.messageIsFromOmnibar=function(e){if("https://host.nxt.blackbaud.com"===e.origin){var n=e.data;return!!n&&"skyux-spa-omnibar"===n.source}return!1},e}();n.BBAuthInterop=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){e[e.Unspecified=0]="Unspecified",e[e.NotLoggedIn=1]="NotLoggedIn",e[e.InvalidEnvironment=2]="InvalidEnvironment",e[e.PermissionScopeNoEnvironment=3]="PermissionScopeNoEnvironment",e[e.Offline=4]="Offline"}(n.BBAuthTokenErrorCode||(n.BBAuthTokenErrorCode={}))},function(e,n,t){"use strict";function o(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),o(t(1)),o(t(10)),o(t(12))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(8),r=/1bb:\/\/([a-z]{3})-([a-z0-9]{5})(-[a-z]{4}[0-9]{2})?\/(.*)/;var i=function(){function e(){}return e.getUrl=function(e,n){var t=r.exec(e),o=e,i=n?n.zone:void 0;return i&&(i=i.replace("-","")),t&&(t[3]&&(i=t[3].substring(1)),o="https://"+t[1]+"-"+i+".app.blackbaud.net/"+t[2]+"/"+t[4]),Promise.resolve(o)},e.getToken=function(n){return e.getTokenInternal(n)},e.clearTokenCache=function(){e.tokenCache={}},e.getTokenInternal=function(n){var t=(n=n||{}).forceNewToken,r=n.disableRedirect;if(e.mock)return Promise.resolve("mock_access_token_auth-client@blackbaud.com");var i=function(e){var n=e.envId,t=e.permissionScope;return"token|"+(e.leId||"-")+"|"+(n||"-")+"|"+(t||"-")}(n),a=e.tokenCache[i]=e.tokenCache[i]||{},s=(new Date).valueOf();return!t&&a.lastToken&&a.expirationTime&&a.expirationTime-s>6e4?Promise.resolve(a.lastToken):(a.pendingLookupPromise||(a.pendingLookupPromise=o.BBAuthTokenIntegration.getToken(r,n.envId,n.permissionScope,n.leId).then(function(e){return a.expirationTime=(new Date).valueOf()+1e3*e.expires_in,a.lastToken=e.access_token,a.pendingLookupPromise=null,a.lastToken}).catch(function(e){throw a.pendingLookupPromise=null,e})),a.pendingLookupPromise)},e.mock=!1,e.tokenCache={},e}();n.BBAuth=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(2),r=t(9),i=function(){function e(){}return e.getToken=function(e,n,t,i){return this.hostNameEndsWith("blackbaud.com")?o.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/oauth2/token",void 0,e,n,t,i,!0):r.BBAuthCrossDomainIframe.getToken({disableRedirect:e,envId:n,leId:i,permissionScope:t})},e.hostNameEndsWith=function(e){return this.getLocationHostname().substr(-e.length)===e},e.getLocationHostname=function(){return window.location.hostname},e}();n.BBAuthTokenIntegration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(3),r=t(0),i=t(5),a=function(){function e(){}return e.reset=function(){var e=this;this.requestCounter=0,this.tokenRequests={},this.iframeReadyPromise=new Promise(function(n){return e.iframeReadyResolve=n}),this.listenerSetup=!1},e.TARGET_ORIGIN=function(){return this.TARGETORIGIN},e.getOrMakeIframe=function(){return e.iframeEl=document.getElementById("auth-cross-domain-iframe"),e.iframeEl||(e.iframeEl=o.BBAuthDomUtility.addIframe("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/Iframes/CrossDomainAuthFrame.html","auth-cross-domain-iframe",""),e.iframeEl.id="auth-cross-domain-iframe",e.iframeEl.hidden=!0),e.iframeEl},e.getToken=function(e){return this.setupListenersForIframe(),this.getTokenFromIframe(this.getOrMakeIframe(),e)},e.setupListenersForIframe=function(){var e=this;this.listenerSetup||(window.addEventListener("message",function(n){var t=n.data,o=t.requestId,r=e.tokenRequests[o];if("security-token-svc"===t.source||t.origin===e.TARGET_ORIGIN())switch(t.messageType){case"ready":e.iframeReadyResolve(!0);break;case"error":e.handleErrorMessage(t.value,r.reject,r.args.disableRedirect);break;case"getToken":var i={access_token:t.value,expires_in:0};r.resolve(i)}}),this.listenerSetup=!0)},e.getTokenFromIframe=function(n,t){var o=this;return new Promise(function(r,i){var a=o.requestCounter++;e.tokenRequests[a]={args:t,reject:i,resolve:r},e.iframeReadyPromise.then(function(){n.contentWindow.postMessage({messageType:"getToken",requestId:a,source:"auth-client",value:t},e.TARGET_ORIGIN())})})},e.handleErrorMessage=function(e,n,t){if(t)n(e);else switch(e.code){case i.BBAuthTokenErrorCode.Offline:n(e);break;case i.BBAuthTokenErrorCode.NotLoggedIn:r.BBAuthNavigator.redirectToSignin(void 0);break;default:r.BBAuthNavigator.redirectToError(e.code)}},e.listenerSetup=!1,e.iframeReadyPromise=new Promise(function(n){return e.iframeReadyResolve=n}),e.tokenRequests={},e.requestCounter=0,e.TARGETORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBAuthCrossDomainIframe=a},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t(11))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(1),r=t(4),i=t(2),a=t(3),s=t(0);function c(e,n,t,i){var s,c,u;function l(){a.BBAuthDomUtility.removeEl(c),a.BBAuthDomUtility.removeCss(s),c=s=void 0,window.removeEventListener("message",m)}function m(a){if(r.BBAuthInterop.messageIsFromOmnibar(a)){var s,u,d=a.data;switch(d.messageType){case"ready":r.BBAuthInterop.postOmnibarMessage(c,{messageType:"host-ready"}),r.BBAuthInterop.postOmnibarMessage(c,{contextDestinations:n,messageType:"context-provide"});break;case"get-token":s=d.tokenRequestId,u=d.disableRedirect,o.BBAuth.getToken({disableRedirect:u}).then(function(e){r.BBAuthInterop.postOmnibarMessage(c,{messageType:"token",token:e,tokenRequestId:s})},function(e){r.BBAuthInterop.postOmnibarMessage(c,{messageType:"token-fail",reason:e,tokenRequestId:s})});break;case"welcome-cancel":l(),i({reason:"canceled"});break;case"welcome-environment-selected":l(),setTimeout(function(){e.envId=d.envId,t(e)},10)}}}s=a.BBAuthDomUtility.addCss("\n.sky-omnibar-welcome-iframe {\n background-color: #fff;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 10000;\n}\n"),u=d.url+"?hosted=1&svcid="+encodeURIComponent(e.svcId)+"&url="+encodeURIComponent(e.url),c=a.BBAuthDomUtility.addIframe(u,"sky-omnibar-welcome-iframe","Welcome"),window.addEventListener("message",m)}function u(){s.BBAuthNavigator.redirectToError(o.BBAuthTokenErrorCode.InvalidEnvironment)}var d=function(){function e(){}return e.ensureContext=function(e){var n=e.envId,t=e.envIdRequired,r=e.leId,a=e.leIdRequired,s=e.svcId;return!n&&t||!r&&a?new Promise(function(n,t){s?o.BBAuth.getToken().then(function(o){var r="https://s21anavnavaf00blkbapp01.sky.blackbaud.com/user/destinations?svcid="+encodeURIComponent(s);e.url&&(r+="&referringurl="+encodeURIComponent(e.url)),i.BBCsrfXhr.requestWithToken(r,o).then(function(o){var r=o&&o.items,i=r&&r.length;1===i?(e.url=r[0].url,n(e)):i>1?c(e,o,n,t):u()})}):u()}):Promise.resolve(e)},e.url="https://host.nxt.blackbaud.com/omnibar/welcome",e}();n.BBContextProvider=d},function(e,n,t){"use strict";function o(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),o(t(13)),o(t(19)),o(t(21))},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r,i,a,s,c,u,d=t(1),l=t(4),m=t(14),f=t(18),p=t(0),v=t(3),h="sky-omnibar-iframe-expanded",b="sky-omnibar-loading";function y(){a=v.BBAuthDomUtility.addIframe(s.url||"https://host.nxt.blackbaud.com/omnibar/","sky-omnibar-iframe "+b,"Navigation")}function g(){l.BBAuthInterop.postOmnibarMessage(a,{href:document.location.href,messageType:"location-change"})}function B(){function e(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"refresh-user",token:e})}d.BBAuth.clearTokenCache(),d.BBAuth.getToken({disableRedirect:!0,forceNewToken:!0}).then(e).catch(function(){return e(void 0)})}function k(){f.BBOmnibarUserActivityPrompt.show({sessionRenewCallback:function(){m.BBOmnibarUserActivity.userRenewedSession()}})}function I(){f.BBOmnibarUserActivityPrompt.hide()}function T(){m.BBOmnibarUserActivity.startTracking(B,k,I,s.allowAnonymous,c)}function A(e){if(l.BBAuthInterop.messageIsFromOmnibar(e)){var n,t,i,f,v,y,B,k,I,A,E=e.data,O=s.nav;switch(E.messageType){case"ready":l.BBAuthInterop.postOmnibarMessage(a,{messageType:"host-ready"}),I=history.pushState,A=history.replaceState,history.pushState=function(){var e=I.apply(history,arguments);return g(),e},history.replaceState=function(){var e=A.apply(history,arguments);return g(),e},l.BBAuthInterop.postOmnibarMessage(a,{compactNavOnly:s.compactNavOnly,enableHelp:s.enableHelp,envId:s.envId,hideResourceLinks:s.hideResourceLinks,leId:s.leId,localNavItems:O&&O.localNavItems,localNotifications:!!s.notifications,localSearch:!!s.onSearch,messageType:"nav-ready",navVersion:s.navVersion,services:O&&O.services,svcId:s.svcId,theme:s.theme}),(k=s.notifications)&&k.onReady({updateNotifications:function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"notifications-update",notifications:e})}}),g(),u();break;case"display-ready":r.classList.remove(b),a.classList.remove(b);break;case"expand":a.classList.add(h);break;case"collapse":a.classList.remove(h);break;case"navigate-url":p.BBAuthNavigator.navigate(E.url);break;case"navigate":var w=E.navItem;O&&O.beforeNavCallback&&!1===O.beforeNavCallback(w)||p.BBAuthNavigator.navigate(w.url);break;case"search":B=E.searchArgs,s.onSearch&&s.onSearch(B).then(function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"search-results",results:e})});break;case"get-token":v=E.tokenRequestId,y=E.disableRedirect,d.BBAuth.getToken({disableRedirect:y}).then(function(e){T(),l.BBAuthInterop.postOmnibarMessage(a,{messageType:"token",token:e,tokenRequestId:v})},function(e){T(),l.BBAuthInterop.postOmnibarMessage(a,{messageType:"token-fail",reason:e,tokenRequestId:v})});break;case"help-open":(f=window.BBHELP)&&f.HelpWidget.open();break;case"notification-read":!function(e){var n=s.notifications;n&&n.onNotificationRead&&n.onNotificationRead(e)}(E.notification);break;case"session-renew":m.BBOmnibarUserActivity.userRenewedSession();break;case"environment-update":n=E.name,t="sky-omnibar-environment-visible",i=document.body.classList,n=n||"",o.innerText=n,n?i.add(t):i.remove(t);break;case"legacy-keep-alive-url-change":c=E.url,T()}}}var E=function(){function e(){}return e.load=function(e){return s=s=e,c=s.legacyKeepAliveUrl,new Promise(function(e){u=e,function(){var e="background: linear-gradient(to right, #71bf44 0, #31b986 50%, #00b2ec 100%);",n="#4d5259",t=s.theme;if(t){var o=t.accent;n=t.backgroundColor||n,!1===o?e="display: none;":o&&o.color&&(e="background-color: "+o.color+";")}i=v.BBAuthDomUtility.addCss("\nbody {\n margin-top: 50px;\n}\n\n#bb-help-container {\n padding-top: 1px;\n}\n\n.sky-omnibar-iframe,\n.sky-omnibar-placeholder {\n border: none;\n height: 50px;\n width: 100%;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n z-index: 1000;\n}\n\n.sky-omnibar-placeholder {\n background-color: "+n+";\n display: none;\n}\n\n.sky-omnibar-placeholder-accent {\n height: 5px;\n "+e+'\n}\n\n.sky-omnibar-placeholder.sky-omnibar-loading {\n display: block;\n}\n\n.sky-omnibar-iframe.sky-omnibar-loading {\n visibility: hidden;\n}\n\n.sky-omnibar-iframe-expanded {\n height: 100%;\n}\n\n.sky-omnibar-environment {\n background-color: #e1e1e3;\n color: #282b31;\n font-family: "Blackbaud Sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;\n font-size: 12px;\n font-weight: 400;\n height: 0;\n line-height: 24px;\n overflow: hidden;\n padding: 0 15px;\n text-align: right;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.sky-omnibar-environment-visible .sky-omnibar-environment {\n height: 24px;\n}\n')}(),(r=document.createElement("div")).className="sky-omnibar-placeholder "+b,r.innerHTML='<div class="sky-omnibar-placeholder-accent"></div>',document.body.appendChild(r),(o=document.createElement("div")).className="sky-omnibar-environment",v.BBAuthDomUtility.addElToBodyTop(o),y(),window.addEventListener("message",A)})},e.update=function(e){l.BBAuthInterop.postOmnibarMessage(a,{messageType:"update",updateArgs:e})},e.destroy=function(){v.BBAuthDomUtility.removeCss(i),v.BBAuthDomUtility.removeEl(r),v.BBAuthDomUtility.removeEl(a),v.BBAuthDomUtility.removeEl(o),window.removeEventListener("message",A),s=i=r=a=o=u=void 0},e}();n.BBOmnibar=E},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r,i,a,s,c,u,d,l,m,f,p,v,h,b=t(15),y=t(16),g=t(17),B=t(2),k=t(0),I="";function T(){d=Date.now()}function A(e){e.clientX===r&&e.clientY===i||(r=e.clientX,i=e.clientY,T())}function E(){var e=Date.now();(!l||e-l>P.MIN_RENEWAL_RETRY)&&(l=e,B.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/renew",{inactivity:1}).catch(function(){}))}function O(){u=!0,c()}function w(){u=!1,T(),a()}function _(){h?k.BBAuthNavigator.navigate(h):k.BBAuthNavigator.redirectToSignoutForInactivity()}function R(){f||E(),m=setInterval(function(){y.BBOmnibarUserSessionExpiration.getSessionExpiration(I,v,f).then(function(e){b.BBOmnibarUserActivityProcessor.process({allowAnonymous:f,closeInactivityPrompt:w,expirationDate:e,inactivityPromptDuration:P.INACTIVITY_PROMPT_DURATION,isShowingInactivityPrompt:u,lastActivity:d,maxSessionAge:P.MAX_SESSION_AGE,minRenewalAge:P.MIN_RENEWAL_AGE,redirectForInactivity:_,renewSession:E,showInactivityPrompt:O})})},P.ACTIVITY_TIMER_INTERVAL)}var P=function(){function e(){}return e.startTracking=function(n,t,r,i,u){o&&i===f&&u===p||(e.stopTracking(),s=n,c=t,a=r,f=i,p=u,document.addEventListener("keypress",T),document.addEventListener("mousemove",A),R(),g.BBOmnibarUserSessionWatcher.start(i,u,s,function(e){v=e.legacyTtl,I=e.refreshId,h=e.legacySigninUrl}),o=!0)},e.userRenewedSession=function(){w(),E()},e.stopTracking=function(){g.BBOmnibarUserSessionWatcher.stop(),y.BBOmnibarUserSessionExpiration.reset(),document.removeEventListener("keypress",T),document.removeEventListener("mousemove",A),m&&(clearInterval(m),m=void 0),o=r=i=d=l=u=s=c=a=f=p=void 0},e.ACTIVITY_TIMER_INTERVAL=1e3,e.MIN_RENEWAL_RETRY=6e4,e.INACTIVITY_PROMPT_DURATION=12e4,e.MIN_RENEWAL_AGE=3e5,e.MAX_SESSION_AGE=54e5,e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBOmnibarUserActivity=P},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(){}return e.process=function(e){var n=e.allowAnonymous,t=e.closeInactivityPrompt,o=e.expirationDate,r=e.inactivityPromptDuration,i=e.isShowingInactivityPrompt,a=e.lastActivity,s=e.maxSessionAge,c=e.minRenewalAge,u=e.redirectForInactivity,d=e.renewSession,l=e.showInactivityPrompt,m=Date.now();if(null!==o){!n&&m>o&&u();var f=o-r,p=o-s+c;i?m<f&&t():a>p?d():!n&&m>f&&l()}},e}();n.BBOmnibarUserActivityProcessor=o},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r=t(2);var i=function(){function e(){}return e.getSessionExpiration=function(e,n,t){var i=function(e,n){if(o&&o.refreshId===e&&o.allowAnonymous===n)return o.promise;var t=new Promise(function(e,t){r.BBCsrfXhr.request("https://s21aidntoken00blkbapp01.nxt.blackbaud.com/session/ttl",void 0,n).then(function(n){var t=null===n?null:Date.now()+1e3*n;e(t)},function(){e(null)})});return o={allowAnonymous:n,promise:t,refreshId:e},t}(e,t);return new Promise(function(e,t){i.then(function(t){var o;if(null===t)o=null;else if("number"==typeof n){var r=Date.now()+n;o=Math.min(t,r)}else o=t;e(o)})})},e.reset=function(){o=void 0},e}();n.BBOmnibarUserSessionExpiration=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r,i,a,s,c,u,d,l=t(4),m=t(0),f={};function p(e){if(e){var n=e.split("://");return n[0]+"://"+n[1].split("/")[0]}}function v(e,n){var t=document.createElement("iframe");return t.className=e,t.width="0",t.height="0",t.frameBorder="0",t.src=n,t.tabIndex=-1,t.setAttribute("aria-hidden","true"),document.body.appendChild(t),t}function h(){var e=g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN+"/SessionWatcher.html?origin="+encodeURIComponent(location.origin);c=v("sky-omnibar-iframe-session-watcher",e)}function b(e){if("string"==typeof e.data){var n=void 0;try{n=JSON.parse(e.data)}catch(e){return}if("session_change"===n.messageType){var t=n.message,o=t&&t.sessionId,c=t&&t.refreshId;o||s||(d?m.BBAuthNavigator.navigate(d):m.BBAuthNavigator.redirectToSignin()),void 0!==f.refreshId&&c!==f.refreshId&&function(e){u&&l.BBAuthInterop.postOmnibarMessage(u,e,p(r))}({messageType:"session-refresh"}),void 0!==f.sessionId&&o!==f.sessionId&&i(),f.refreshId=c,f.sessionId=o,a(f)}}}function y(e){switch(e.origin){case g.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN:b(e);break;case p(r):!function(e){var n=e.data;switch(n.messageType){case"ready":f.legacyTtl=n.ttl,d=n.signinUrl,a(f)}}(e)}}var g=function(){function e(){}return e.start=function(n,t,c,d){o&&n===s&&t===r||(e.stop(),s=n,i=c,r=t,a=d,h(),r&&(u=v("sky-omnibar-iframe-legacy-keep-alive",r)),window.addEventListener("message",y,!1),o=!0)},e.stop=function(){window.removeEventListener("message",y,!1),c&&(document.body.removeChild(c),c=void 0),u&&(document.body.removeChild(u),u=void 0),f={},o=s=i=r=d=a=void 0},e.IDENTITY_SECURITY_TOKEN_SERVICE_ORIGIN="https://s21aidntoken00blkbapp01.nxt.blackbaud.com",e}();n.BBOmnibarUserSessionWatcher=g},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,r,i,a=t(3),s=t(4);function c(e){if(s.BBAuthInterop.messageIsFromOmnibar(e))switch(e.data.messageType){case"ready":s.BBAuthInterop.postOmnibarMessage(r,{messageType:"host-ready"}),r.classList.add("sky-omnibar-inactivity-iframe-ready");break;case"session-renew":i()}}var u=function(){function e(){}return e.show=function(n){var t;this.hide(),i=n.sessionRenewCallback,o=a.BBAuthDomUtility.addCss("\n .sky-omnibar-inactivity-iframe {\n background-color: transparent;\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 100000;\n visibility: hidden;\n }\n\n .sky-omnibar-inactivity-iframe-ready {\n visibility: visible;\n }\n "),t=e.url,r=a.BBAuthDomUtility.addIframe(t,"sky-omnibar-inactivity-iframe","Inactivity Prompt"),window.addEventListener("message",c)},e.hide=function(){r&&(a.BBAuthDomUtility.removeEl(r),a.BBAuthDomUtility.removeCss(o),r=o=i=void 0,window.removeEventListener("message",c))},e.url="https://host.nxt.blackbaud.com/omnibar/inactivity",e}();n.BBOmnibarUserActivityPrompt=u},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t(20);function r(){return window.jQuery}var i=function(){function e(){}return e.load=function(e){return new Promise(function(n){var t=r(),i=t&&t.fn&&t.fn.jquery;o.BBOmnibarScriptLoader.smartRegisterScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.js","2.1.0",i).then(function(){return o.BBOmnibarScriptLoader.registerScript("https://cdnjs.cloudflare.com/ajax/libs/easyXDM/2.4.17.1/easyXDM.min.js")}).then(function(){return o.BBOmnibarScriptLoader.registerScript("https://signin.blackbaud.com/Omnibar.min.js")}).then(function(){document.body.classList.add("bb-omnibar-height-padding");var t=document.createElement("div");t.setAttribute("data-omnibar-el",""),document.body.appendChild(t),(e=e||{})["z-index"]=1e3,e.afterLoad=n,e.menuEl&&(e.menuEl=r()(e.menuEl)),BBAUTH.Omnibar.load(t,e)})})},e}();n.BBOmnibarLegacy=i},function(e,n,t){"use strict";function o(e){for(var n=[],t=0,o=e.split(".");t<o.length;t++){var r=o[t],i=parseInt(r,10)||0;n.push(i)}return n}Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){}return e.registerScript=function(e){return new Promise(function(n,t){var o=document.createElement("script");o.onload=n,o.onerror=t,o.src=e,document.body.appendChild(o)})},e.smartRegisterScript=function(n,t,r){return r&&function(e,n){for(var t=o(e),r=o(n),i=0;i<t.length;i++)if(i<r.length){if(r[i]>t[i])return!0;if(r[i]<t[i])return!1}return!0}(t,r)?Promise.resolve():e.registerScript(n)},e}();n.BBOmnibarScriptLoader=r},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0})}])});

@@ -0,1 +1,5 @@

# 2.17.1 (2019-07-19)
- Added logic to correctly format the zone when it is added to a tokenized URL. [#102](https://github.com/blackbaud/auth-client/pull/102) (Thanks @Blackbaud-JonathanBell!)
# 2.17.0 (2019-07-11)

@@ -2,0 +6,0 @@

{
"name": "@blackbaud/auth-client",
"version": "2.17.0",
"version": "2.17.1",
"description": "Provides methods for obtaining an authentication token from the Blackbaud authentication service.",

@@ -5,0 +5,0 @@ "main": "dist/bundles/auth-client.umd.js",

@@ -25,2 +25,5 @@ "use strict";

var zone = args ? args.zone : undefined;
if (zone) {
zone = zone.replace('-', '');
}
if (match) {

@@ -27,0 +30,0 @@ if (match[3]) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc