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AAKV,SAASW,iBAA8B,gCAAgCE,SAASkN,I,MAC1F,MAAMC,EAAsD,QAA7B,EAAAD,EAAgB9K,qBAAa,eAAElC,cAAc,yBAC5EgN,EAAgBvL,UAAUW,OAAO,WAC7B6K,IACHA,EAAuBC,SAAU,SAKpCH,EAAoBjN,SAAQqN,I,MAC3B,MAAMC,EAAkBD,EAAmBjL,cACrC8K,EAAkBI,MAAAA,OAAe,EAAfA,EAAiBpN,cAAc,qBACjDiN,EAAyBG,MAAAA,OAAe,EAAfA,EAAiBpN,cAAc,yBAE9DoN,MAAAA,GAAAA,EAAiB7N,iBAAiB,SAAS8N,IAC1CA,EAAEjN,qBAG0BV,MAAMC,KAAsG,QAAjG,EAAAyN,MAAAA,OAAe,EAAfA,EAAiBxN,iBAAiB,uEAA+D,QAAI,IAExHE,SAAQwN,IAC5BA,EAAoB/N,iBAAiB,SAAS,KAC7CyN,EAAgBvL,UAAUW,OAAO,WAC7B6K,IACHA,EAAuBC,SAAU,SAKhCC,aAA8BI,kBAAoBN,GAItDE,EAAmB5N,iBAAiB,SAAS,KAC5CyN,EAAgBvL,UAAUC,IAAI,WAC1BuL,IACHA,EAAuBC,SAAU,UAOtCjO,SAASM,iBAAiB,oBAAoB,MACxB,IAAIuN,GACZtN,U","sources":["webpack://aandotcom/./Scripts/src/components/dialog.ts","webpack://aandotcom/./Scripts/src/components/login-dialog.ts","webpack://aandotcom/./Scripts/src/components/main-nav.ts","webpack://aandotcom/./Scripts/src/components/page-actions.ts","webpack://aandotcom/./Scripts/src/components/scroll-follow.ts","webpack://aandotcom/./Scripts/src/components/side-nav.ts","webpack://aandotcom/./Scripts/src/components/sponsored-by.ts","webpack://aandotcom/./Scripts/src/components/subscribe-form.ts","webpack://aandotcom/./Scripts/src/components/tab-nav.ts","webpack://aandotcom/./Scripts/src/components/tables.ts","webpack://aandotcom/./Scripts/src/components/top-search.ts","webpack://aandotcom/webpack/bootstrap","webpack://aandotcom/./Scripts/src/components/banner-scripts.ts","webpack://aandotcom/./Scripts/src/components/gdpr-banner.ts","webpack://aandotcom/./Scripts/src/components/top-nav.ts","webpack://aandotcom/./Scripts/src/components/scroll-top.ts","webpack://aandotcom/./Scripts/src/components/faq-drawer.ts","webpack://aandotcom/./Scripts/src/components/announcement.ts","webpack://aandotcom/./Scripts/src/components/publications-dialog.ts","webpack://aandotcom/./Scripts/src/components/dropdown-form.ts"],"sourcesContent":["class AANDialog {\r\n\tstatic openDialog(dialogId: string): void {\r\n\t\tconst dialog = document.getElementById(dialogId);\r\n\r\n\t\tif(!dialog) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Not all browsers support the dialog element yet. as a result TypeScrupt doesn't recognize it.\r\n\t\t// We are polyfilling it so this will make TypeScript ignore the call.\r\n\t\t(dialog as any).showModal();\r\n\t\t// When displaying the login dialog, disable scrolling on the main body element,\r\n\t\t// not having this causes mobile browsers to get confused as to what element should be scrolled.\r\n\t\tdocument.body.style.overflow = \"hidden\";\r\n\r\n\t\tdialog.addEventListener(\"close\", () => {\r\n\t\t\tdocument.body.style.overflow = \"\";\r\n\t\t});\r\n\t};\r\n\r\n\tinit() {\r\n\t\tconst dialogs = Array.from(document.querySelectorAll(\"dialog\")) as HTMLDialogElement[];\r\n\r\n\t\tif (!dialogs || dialogs.length === 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdialogs.forEach(dialog => {\r\n\t\t\tconst closeButton = dialog.querySelector(\".btn-close\");\r\n\r\n\t\t\tcloseButton?.addEventListener(\"click\", event => {\r\n\t\t\t\t// Not all browsers support the dialog element yet. as a result TypeScrupt doesn't recognize it.\r\n\t\t\t\t// We are polyfilling it so this will make TypeScript ignore the call.\r\n\t\t\t\t(dialog as any).close();\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\tevent.stopPropagation();\r\n\t\t\t});\r\n\r\n\t\t\t// Close the dialog when the backdrop is clicked.\r\n\t\t\tdialog.addEventListener(\"click\", function (event) {\r\n\t\t\t\tconst rect = dialog.getBoundingClientRect();\r\n\t\t\t\tconst isInDialog = (rect.top <= event.clientY && event.clientY <= rect.top + rect.height\r\n\t\t\t\t\t&& rect.left <= event.clientX && event.clientX <= rect.left + rect.width);\r\n\r\n\t\t\t\tif (!isInDialog && !(event.target instanceof HTMLButtonElement)) {\r\n\t\t\t\t\t// Not all browsers support the dialog element yet. as a result TypeScrupt doesn't recognize it.\r\n\t\t\t\t\t// We are polyfilling it so this will make TypeScript ignore the call.\r\n\t\t\t\t\t(dialog as any).close();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n\r\n// allow AanDialog to be accessable outside of our scripts.\r\n(window as any).AANDialog = AANDialog;\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst dialogs = new AANDialog();\r\n\r\n\tdialogs.init();\r\n});\r\n","class AANLoginDialog {\r\n\tprivate loginDialog?: HTMLDialogElement;\r\n\r\n\tdisplayLoginError() {\r\n\t\tif (window.location.toString().indexOf(\"LoginError=true\") === -1) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst loginErrorElement = document.querySelector(\"#loginDialog .login-error\") as HTMLSpanElement;\r\n\t\tloginErrorElement.innerText = \"The Username or Password provided is incorrect.\";\r\n\t}\r\n\r\n\tinit() {\r\n\t\tthis.loginDialog = document.querySelector(\"#loginDialog\") as HTMLDialogElement;\r\n\r\n\t\tif (!this.loginDialog) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst form: HTMLFormElement | null = this.loginDialog.querySelector(\"form\");\r\n\t\tform?.addEventListener(\"submit\", event => {\r\n\t\t\tthis.loginDialog?.classList.add(\"submitted\");\r\n\t\t});\r\n\r\n\t\tthis.displayLoginError();\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst loginDialog = new AANLoginDialog();\r\n\r\n\tloginDialog.init();\r\n});\r\n","class AANMainNav {\r\n\tsetAriaExpanded(button: HTMLButtonElement, expandValue: boolean) {\r\n\t\tif (button.hasAttribute(\"aria-expanded\")) {\r\n\t\t\tbutton.setAttribute(\"aria-expanded\", expandValue.toString());\r\n\t\t}\r\n\t}\r\n\r\n\ttoggleMobileMenu (button: HTMLButtonElement) {\r\n\t\tif (button.parentElement?.classList.contains(\"submenu-open\")) {\r\n\t\t\tbutton.parentElement.classList.remove(\"submenu-open\");\r\n\t\t\tbutton.parentElement.parentElement?.classList.remove(\"submenu-open\");\r\n\t\t\tthis.setAriaExpanded(button, false);\r\n\t\t} else {\r\n\t\t\tbutton.parentElement?.classList.add(\"submenu-open\");\r\n\t\t\tbutton.parentElement?.parentElement?.classList.add(\"submenu-open\");\r\n\t\t\tthis.setAriaExpanded(button, true);\r\n\t\t}\r\n\t};\r\n\r\n\ttoggleMobileSubnav (button: HTMLButtonElement) {\r\n\t\tif (button.parentElement?.classList.contains(\"submenu-open\")) {\r\n\t\t\tbutton.parentElement.classList.remove(\"submenu-open\");\r\n\t\t\tthis.setAriaExpanded(button, false);\r\n\t\t} else {\r\n\t\t\tbutton.parentElement?.classList.add(\"submenu-open\");\r\n\t\t\tthis.setAriaExpanded(button, true);\r\n\t\t}\r\n\t};\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst mainNav = new AANMainNav();\r\n\tconst mainNavButtons: HTMLButtonElement[] = Array.from(document.querySelectorAll(\".main-nav .toggle-nav\"));\r\n\tconst subnavButtons: HTMLButtonElement[] = Array.from(document.querySelectorAll(\".main-nav .toggle-subnav\"));\r\n\r\n\tmainNavButtons.forEach(button => {\r\n\t\tbutton.addEventListener(\"click\", () => {\r\n\t\t\tmainNav.toggleMobileMenu(button);\r\n\t\t});\r\n\t});\r\n\r\n\tsubnavButtons.forEach(subnavButton => {\r\n\t\tsubnavButton.addEventListener(\"click\", () => {\r\n\t\t\tmainNav.toggleMobileSubnav(subnavButton);\r\n\t\t});\r\n\t});\r\n});\r\n","class PageActions {\r\n\tprivate pageActionsElement?: HTMLElement;\r\n\tprivate bannerElement?: HTMLElement | null;\r\n\r\n\tsetPageActionsLocation() {\r\n\r\n\t\tif (!this.pageActionsElement) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (!this.bannerElement) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst bannerStyles = getComputedStyle(this.bannerElement);\r\n\r\n\t\tif (bannerStyles.display === \"none\") {\r\n\t\t\tthis.pageActionsElement.style.bottom = \"35px\";\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst gdprBannerHeight = parseInt(bannerStyles.height);\r\n\r\n\t\tthis.pageActionsElement.style.bottom = `${gdprBannerHeight + 1}px`;\r\n\t}\r\n\r\n\tinit() {\r\n\t\tthis.pageActionsElement = document.querySelector(\".page-actions\") as HTMLElement;\r\n\t\tthis.bannerElement = document.querySelector(\".gdpr-banner\");\r\n\r\n\t\tif (!this.bannerElement) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.setPageActionsLocation();\r\n\r\n\t\twindow.addEventListener(\"resize\", () => {\r\n\t\t\tthis.setPageActionsLocation();\r\n\t\t});\r\n\t}\r\n}\r\n\r\nwindow.addEventListener(\"load\", () => {\r\n\tconst pageActions = new PageActions();\r\n\tpageActions.init();\r\n});\r\n","class ScrollFollow {\r\n\tprivate static scrollFollowClasses = [\"pin-top\", \"follow\", \"pin-bottom\", \"fixed\"];\r\n\r\n\tsetClass(element: HTMLElement, className: string, setTop: string | null = null) {\r\n\t\tif (element.classList.contains(className)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tScrollFollow.scrollFollowClasses.filter(x => x !== className).forEach(removeClass => {\r\n\t\t\telement.classList.remove(removeClass);\r\n\t\t});\r\n\t\telement.classList.add(className);\r\n\t\telement.style.top = setTop ?? \"\";\r\n\t}\r\n\r\n\tpositionScrollFollow(element: HTMLElement) {\r\n\t\t// Run this code between FPS frames. This will make the page run smoother as updates are not happenning between FPS frames.\r\n\t\trequestAnimationFrame(() => {\r\n\t\t\t// debugger;\r\n\t\t\tconst windowHeight = window.innerHeight;\r\n\t\t\tconst elementBoundingRec = element.getBoundingClientRect();\r\n\t\t\tconst parentBoundingRec = element.parentElement?.getBoundingClientRect();\r\n\r\n\t\t\tif(!parentBoundingRec) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tconst elementExtendsBelowWindow = elementBoundingRec.bottom > windowHeight;\r\n\t\t\tconst parentBelowTopOfWindow = parentBoundingRec.top >= 0;\r\n\t\t\tconst topAlignment = Math.min(0, windowHeight - elementBoundingRec.height);\r\n\t\t\tconst elementAboveTopOfParent = elementBoundingRec.top < parentBoundingRec.top;\r\n\r\n\t\t\tconst pinToTop = parentBelowTopOfWindow || elementExtendsBelowWindow || elementAboveTopOfParent;\r\n\r\n\t\t\t// If the element bottom will extend below the bottom of the parent, pin it to the bottom.\r\n\t\t\tconst pinToBottom = elementBoundingRec.height + topAlignment >= parentBoundingRec.bottom;\r\n\r\n\t\t\tif (parentBoundingRec.height <= elementBoundingRec.height + 100) {\r\n\t\t\t\t// If the scroll follow is the smae height or bigger than the contents, leave it in a fixed position.\r\n\t\t\t\tthis.setClass(element, \"fixed\");\r\n\t\t\t} else if (pinToTop) {\r\n\t\t\t\t// Pin the scroll follow to the top of the parent element.\r\n\t\t\t\tthis.setClass(element, \"pin-top\");\r\n\t\t\t} else if (pinToBottom) {\r\n\t\t\t\t// Pin the scroll follow element to the bottom of the parent element.\r\n\t\t\t\tthis.setClass(element, \"pin-bottom\");\r\n\t\t\t} else {\r\n\t\t\t\t// Pin the scroll follow to a sopt on the visible window so it is following you down the page.\r\n\t\t\t\tthis.setClass(element, \"follow\", `${topAlignment}px`);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tinit() {\r\n\t\tconst scrollFollowElements: HTMLElement[] = Array.from(document.querySelectorAll(\".scroll-follow\"));\r\n\t\tif (scrollFollowElements.length === 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tscrollFollowElements.forEach(scrollFollowElement => {\r\n\t\t\tthis.positionScrollFollow(scrollFollowElement);\r\n\r\n\t\t\twindow.addEventListener(\"scroll\", () => {\r\n\t\t\t\tthis.positionScrollFollow(scrollFollowElement);\r\n\t\t\t});\r\n\t\t});\r\n\t};\r\n}\r\n\r\nwindow.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst scrollFollow = new ScrollFollow();\r\n\tscrollFollow.init();\r\n});\r\n","class SideNav {\r\n\tinit() {\r\n\t\tconst sideNavs = Array.from(document.querySelectorAll(\".side-nav\"));\r\n\t\tconst sideNavHrefs = sideNavs.map(sideNav => Array.from(sideNav.querySelectorAll(\"a[href^='#']\")).map(anchor => anchor.getAttribute(\"href\")))\r\n\t\t\t.reduce((prev, curr) => [...prev, ...curr], []);\r\n\t\tconst pageAnchors = Array.from(document.querySelectorAll(\"[id]\"))\r\n\t\t\t.filter(pageAnchor => sideNavHrefs.some(sideNavHref => sideNavHref === pageAnchor.id));\r\n\r\n\t\tif ((pageAnchors?.length ?? 0) <= 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\twindow.addEventListener(\"scroll\", () => {\r\n\t\t\tconst activeAnchor = pageAnchors.filter(pageAnchor => pageAnchor.getBoundingClientRect().top < 100).sort((a, b) => {\r\n\t\t\t\tconst aTop = a.getBoundingClientRect().top;\r\n\t\t\t\tconst bTop = b.getBoundingClientRect().top;\r\n\r\n\t\t\t\tif (aTop > bTop) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t\tif (aTop === bTop) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn -1;\r\n\t\t\t})[0];\r\n\r\n\t\t\tif (!activeAnchor) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tsideNavs.forEach(sideNav => {\r\n\t\t\t\tif (sideNav.getAttribute(\"href\") === activeAnchor.id) {\r\n\t\t\t\t\tsideNav.classList.add(\"active\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsideNav.classList.remove(\"active\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst sideNav = new SideNav();\r\n\r\n\tsideNav.init();\r\n});\r\n","class SponsoredBy {\r\n\tinit() {\r\n\t\tconst sponsoredItems = Array.from(document.querySelectorAll(\"aside.sponsored-by\"));\r\n\r\n\t\tsponsoredItems.forEach(sponsoredItem => {\r\n\t\t\tconst closeButtons = Array.from(sponsoredItem.querySelectorAll(\".btn-close\"));\r\n\r\n\t\t\tcloseButtons.forEach(closeButton => {\r\n\t\t\t\tcloseButton.addEventListener(\"click\", event => {\r\n\t\t\t\t\tsponsoredItem.classList.remove(\"open\");\r\n\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\tevent.stopPropagation();\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t\tsponsoredItem.addEventListener(\"click\", event => {\r\n\t\t\t\tsponsoredItem.classList.add(\"open\");\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\tevent.stopPropagation();\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tdocument.addEventListener(\"click\", event => {\r\n\t\t\tsponsoredItems.filter(sponsoredItem => sponsoredItem.classList.contains(\"open\")).forEach(sponsoredItem => {\r\n\t\t\t\tconst rect = sponsoredItem.getBoundingClientRect();\r\n\t\t\t\tconst isInContent = (rect.top <= event.clientY && event.clientY <= rect.top + rect.height\r\n\t\t\t\t\t&& rect.left <= event.clientX && event.clientX <= rect.left + rect.width);\r\n\r\n\t\t\t\tif (!isInContent) {\r\n\t\t\t\t\tsponsoredItem.classList.remove(\"open\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst sponsoredBy = new SponsoredBy();\r\n\tsponsoredBy.init();\r\n});\r\n","declare const $$epiforms: any;\r\n\r\nclass AANSubscribe {\r\n\tinit() {\r\n\t\tif (typeof $$epiforms === \"undefined\") {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t$$epiforms(\".EPiServerForms[data-f-metadata=\\\"subscribe\\\"]\").on(\"formsSubmitted\", (event: Event) => {\r\n\t\t\tconst subscribeForm: HTMLFormElement = event.currentTarget as HTMLFormElement;\r\n\t\t\tconst previousElement: HTMLElement = subscribeForm.previousElementSibling as HTMLElement;\r\n\t\t\tconst nextElement: HTMLElement = subscribeForm.nextElementSibling as HTMLElement;\r\n\t\t\t\r\n\t\t\tpreviousElement.style.display = \"none\";\r\n\t\t\tnextElement.style.display = \"block\";\r\n\t\t});\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst subscribe = new AANSubscribe();\r\n\r\n\tsubscribe.init();\r\n});\r\n","class AANTabNav {\r\n\tinit(): void {\r\n\t\tconst tabNavs: HTMLElement[] = Array.from(document.querySelectorAll(\".tab-nav\"));\r\n\r\n\t\ttabNavs.forEach(tabNav => {\r\n\t\t\tconst menuLabel: HTMLLabelElement | null = tabNav.querySelector(\".dropdown-menu-label\");\r\n\t\t\tmenuLabel?.addEventListener(\"click\", () => {\r\n\t\t\t\tif (menuLabel.classList.contains(\"show\")) {\r\n\t\t\t\t\tmenuLabel.classList.remove(\"show\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmenuLabel.classList.add(\"show\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tconst activeTab: HTMLLIElement | null = tabNav.querySelector(\".active\");\r\n\t\t\tconst tabMenu = tabNav.querySelector(\"ul\");\r\n\r\n\t\t\tif (!activeTab || !tabMenu) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\ttabMenu.scrollLeft = activeTab.offsetLeft - (parseInt(getComputedStyle(activeTab).width) / 2);\r\n\t\t});\r\n\r\n\t\tif (tabNavs && tabNavs.length > 0) {\r\n\t\t\t// If the user clicks outside of the nav menu stop showing all the nav menu items.\r\n\t\t\tdocument.addEventListener(\"click\", event => {\r\n\t\t\t\tconst anyTabMenusDisplaying = Array.from(document.querySelectorAll(\".tab-nav .dropdown-menu-label.show\")).length > 0;\r\n\t\t\t\t// If we don't have a tab menu being displayed, don't run the other logic as it is unnecessary work.\r\n\t\t\t\tif (!anyTabMenusDisplaying) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// If we are clicking in a tab menu, don't run the logic to close the tab menu.\r\n\t\t\t\tif (tabNavs.some(tabNav => tabNav === event.target || tabNav.contains(event.target as HTMLElement))) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\ttabNavs.forEach(tabNav => {\r\n\t\t\t\t\ttabNav.querySelector(\".dropdown-menu-label\")?.classList.remove(\"show\");\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst tabNav = new AANTabNav();\r\n\r\n\ttabNav.init();\r\n});\r\n","class AANTable {\r\n\tinit() {\r\n\t\tconst tables = Array.from(document.querySelectorAll(\"table\")) as HTMLTableElement[];\r\n\r\n\t\ttables.forEach(table => {\r\n\t\t\tconst tableHeaders = Array.from(table.querySelectorAll(\"thead th, thead td\")) as HTMLTableHeaderCellElement[];\r\n\t\t\tconst tableRows = Array.from(table.querySelectorAll(\"thead ~ tbody tr\")) as HTMLTableRowElement[];\r\n\r\n\t\t\tthis.forceMobileIfNeeded(table);\r\n\r\n\t\t\tif (!tableHeaders || tableHeaders.length === 0) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\ttableRows.forEach(row => {\r\n\t\t\t\tconst columns = row.querySelectorAll(\"td\");\r\n\r\n\t\t\t\tfor (let i = 0, len = columns.length; i < len; i++) {\r\n\t\t\t\t\tconst column = columns[i];\r\n\t\t\t\t\tconst tableHeader = tableHeaders[i];\r\n\t\t\t\t\tif (!column.hasAttribute(\"data-label\") && tableHeader) {\r\n\t\t\t\t\t\tcolumn.setAttribute(\"data-label\", tableHeader.innerText);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\twindow.addEventListener(\"resize\", () => {\r\n\t\t\ttables.forEach(table => {\r\n\t\t\t\tthis.forceMobileIfNeeded(table);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Check if the table is too wide compared to the parent, if so then add a class to force it to display as mobile.\r\n\t * */\r\n\tprivate forceMobileIfNeeded(table: HTMLTableElement) {\r\n\t\ttable.classList.remove(\"force-mobile\");\r\n\t\tif(!table.parentElement) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst parentStyles = getComputedStyle(table.parentElement);\r\n\t\tconst tableStyles = getComputedStyle(table);\r\n\t\tconst parentWidth = parseInt(parentStyles.width);\r\n\t\tconst tableWidth = parseInt(tableStyles.width) + parseInt(tableStyles.marginLeft) + parseInt(tableStyles.marginRight);\r\n\t\t// debugger;\r\n\r\n\t\tif (parentWidth < tableWidth) {\r\n\t\t\ttable.classList.add(\"force-mobile\");\r\n\t\t}\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst table = new AANTable();\r\n\ttable.init();\r\n});\r\n","class TopSearch {\r\n\tprivate showSeachButton = document.querySelector(\".show-search\");\r\n\tprivate closeSearchButton = document.querySelector(\".close-search\");\r\n\tprivate pageHeader = document.querySelector(\".page-header\");\r\n\r\n\tinit() {\r\n\t\tthis.showSeachButton?.addEventListener(\"click\", () => {\r\n\t\t\tthis.pageHeader?.classList.add(\"search\");\r\n\t\t});\r\n\t\tthis.closeSearchButton?.addEventListener(\"click\", () => {\r\n\t\t\tthis.pageHeader?.classList.remove(\"search\");\r\n\t\t});\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst topSearch = new TopSearch();\r\n\r\n\ttopSearch.init();\r\n});\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","export class AANBanner {\r\n\r\n\tinit(): void {\r\n\t\tconst bannerElements: HTMLElement[] = [].slice.call(document.querySelectorAll(\".banner\"));\r\n\r\n\t\tif(!bannerElements?.length){\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst closedBanners = JSON.parse(window.localStorage.closeBanner || \"{}\");\r\n\r\n\t\tbannerElements.forEach(banner => {\r\n\t\t\tconst bannerId = this.bannerid(banner);\r\n\t\t\tconst closeButton = banner.querySelector(\".btn-close\");\r\n\t\t\tif (!closedBanners[bannerId]) {\r\n\t\t\t\tbanner.style.display = \"block\";\r\n\t\t\t} else {\r\n\t\t\t\tbanner.style.display = \"none\";\r\n\t\t\t}\r\n\r\n\t\t\tif(closeButton) {\r\n\t\t\t\tcloseButton.addEventListener(\"click\", this.bannerClick);\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\tprivate bannerid(element: HTMLElement) {\r\n\t\tconst id = element.id || element.classList[element.classList.length - 1];\r\n\r\n\t\treturn id;\r\n\t};\r\n\r\n\tprivate getBanner(element: HTMLElement | null): HTMLElement | null {\r\n\t\tif(!element) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tif (element.classList.contains(\"banner\")) {\r\n\t\t\treturn element;\r\n\t\t} else if (element.tagName.toLowerCase() === \"body\") {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\treturn this.getBanner(element.parentElement);\r\n\t\t}\r\n\t};\r\n\r\n\tprivate bannerClick = (event: Event) => {\r\n\t\tconst banner = this.getBanner(event.target as HTMLElement);\r\n\r\n\t\tif (!banner) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst id: string = this.bannerid(banner);\r\n\t\tconst closedBanners = JSON.parse(window.localStorage.closeBanner || \"{}\");\r\n\r\n\t\tclosedBanners[id] = \"true\";\r\n\t\tbanner.style.display = \"none\";\r\n\r\n\t\twindow.localStorage.closeBanner = JSON.stringify(closedBanners);\r\n\t};\r\n}\r\n\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst banner = new AANBanner();\r\n\r\n\tbanner.init();\r\n});\r\n","export class AANGDPRBanner {\r\n\tprivate bannerClick(event: Event, bannerElement: HTMLElement) {\r\n\t\twindow.localStorage.gdprClosed = \"true\";\r\n\t\tbannerElement.style.display = \"none\";\r\n\t};\r\n\r\n\tinit(): void {\r\n\t\tconst bannerElement: HTMLElement | null = document.querySelector(\".gdpr-banner\");\r\n\r\n\t\tif (!bannerElement) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (window.localStorage.gdprClosed) {\r\n\t\t\tbannerElement.style.display = \"none\";\r\n\t\t}\r\n\r\n\t\tbannerElement.querySelector(\".btn-close\")?.addEventListener(\"click\", (event) => this.bannerClick(event, bannerElement));\r\n\t};\r\n}\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst gdprBanner = new AANGDPRBanner();\r\n\r\n\tgdprBanner.init();\r\n});\r\n","// ToDo: Delete this when we don't need to support the old nav\r\nexport class AANTopNav {\r\n\tinit(): void {\r\n\t\tconst mainNavButtons: HTMLButtonElement[] = Array.from(document.querySelectorAll(\"#main-nav button\"));\r\n\r\n\t\tconst toggleMobileMenu = (button: HTMLButtonElement) => {\r\n\t\t\tif (button.parentElement?.classList.contains(\"submenu-open\")) {\r\n\t\t\t\tbutton.parentElement.classList.remove(\"submenu-open\");\r\n\t\t\t} else {\r\n\t\t\t\tbutton.parentElement?.classList.add(\"submenu-open\");\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tmainNavButtons.forEach(button => {\r\n\t\t\tbutton.addEventListener(\"click\", () => {\r\n\t\t\t\ttoggleMobileMenu(button);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst topNav = new AANTopNav();\r\n\r\n\ttopNav.init();\r\n});\r\n","export class AANScrollTop {\r\n\tprivate scrollTopElement?: HTMLElement;\r\n\r\n\tprivate scrollTopVisible() {\r\n\t\tconst windowHeight: number = window.innerHeight\r\n\t\t\t|| Math.max(document.documentElement.clientHeight, document.body.clientHeight);\r\n\t\tconst showpoint: number = windowHeight / 2;\r\n\r\n\t\tif (document.documentElement.scrollTop > showpoint) {\r\n\t\t\tthis.scrollTopElement?.classList.add(\"visible\");\r\n\t\t} else {\r\n\t\t\tthis.scrollTopElement?.classList.remove(\"visible\");\r\n\t\t}\r\n\t}\r\n\r\n\tinit(): void {\r\n\t\tthis.scrollTopElement = document.querySelector(\".scroll-top\") as HTMLElement;\r\n\r\n\t\tif (!this.scrollTopElement) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.scrollTopVisible();\r\n\r\n\t\twindow.addEventListener(\"scroll\", () => {\r\n\t\t\tthis.scrollTopVisible();\r\n\t\t});\r\n\r\n\t\tthis.scrollTopElement.addEventListener(\"click\", () => {\r\n\t\t\tconst windowHeight: number = document.documentElement.scrollTop;\r\n\t\t\tconst animationLength = 500; // milliseconds\r\n\t\t\tconst stepUnit = Math.ceil(windowHeight / (animationLength / 10));\r\n\r\n\t\t\tconst scrollAnimation = () => {\r\n\t\t\t\twindow.scrollTo(document.documentElement.scrollLeft, document.documentElement.scrollTop - stepUnit);\r\n\r\n\t\t\t\tif (document.documentElement.scrollTop <= 10) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tsetTimeout(scrollAnimation, 10);\r\n\t\t\t};\r\n\r\n\t\t\tscrollAnimation();\r\n\t\t});\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst scrollTop = new AANScrollTop();\r\n\r\n\tscrollTop.init();\r\n});\r\n","export class AANFaqDrawer {\r\n\tinit(): void {\r\n\t\tconst faqDrawers: HTMLElement[] = Array.from(document.querySelectorAll(\".faq-drawer\"));\r\n\t\tfaqDrawers.forEach(faqDrawer => {\r\n\t\t\tconst header = faqDrawer.querySelector(\"header\") as HTMLElement;\r\n\t\t\tconst list = faqDrawer.querySelector(\".list\") as HTMLElement;\r\n\t\t\tconst footer = faqDrawer.querySelector(\"footer\") as HTMLElement;\r\n\r\n\t\t\theader.addEventListener(\"click\", () => this.slideToggle(list));\r\n\t\t\tfooter.addEventListener(\"click\", () => this.slideToggle(list));\r\n\t\t});\r\n\t}\r\n\r\n\tprivate slideUp (target: HTMLElement, duration = 500) {\r\n\t\ttarget.style.transitionProperty = \"height, margin, padding\";\r\n\t\ttarget.style.transitionDuration = duration + \"ms\";\r\n\t\ttarget.style.height = target.offsetHeight + \"px\";\r\n\t\t// Not sure why this is needed, but unless it is here this breaks for all browsers.\r\n\t\t// eslint-disable-next-line no-unused-expressions\r\n\t\ttarget.offsetHeight;\r\n\t\ttarget.style.overflow = \"hidden\";\r\n\t\ttarget.style.height = \"0\";\r\n\t\ttarget.style.paddingTop = \"0\";\r\n\t\ttarget.style.paddingBottom = \"0\";\r\n\t\ttarget.style.marginTop = \"0\";\r\n\t\ttarget.style.marginBottom = \"0\";\r\n\t\twindow.setTimeout(() => {\r\n\t\t\ttarget.style.display = \"none\";\r\n\t\t\ttarget.style.removeProperty(\"height\");\r\n\t\t\ttarget.style.removeProperty(\"padding-top\");\r\n\t\t\ttarget.style.removeProperty(\"padding-bottom\");\r\n\t\t\ttarget.style.removeProperty(\"margin-top\");\r\n\t\t\ttarget.style.removeProperty(\"margin-bottom\");\r\n\t\t\ttarget.style.removeProperty(\"overflow\");\r\n\t\t\ttarget.style.removeProperty(\"transition-duration\");\r\n\t\t\ttarget.style.removeProperty(\"transition-property\");\r\n\t\t}, duration);\r\n\t};\r\n\r\n\tprivate slideDown (target: HTMLElement, duration = 500) {\r\n\t\ttarget.style.removeProperty(\"display\");\r\n\t\tlet display = window.getComputedStyle(target).display;\r\n\r\n\t\tif (display === \"none\") {\r\n\t\t\tdisplay = \"block\";\r\n\t\t}\r\n\r\n\t\ttarget.style.display = display;\r\n\t\tconst height = target.offsetHeight;\r\n\t\ttarget.style.overflow = \"hidden\";\r\n\t\ttarget.style.height = \"0\";\r\n\t\ttarget.style.paddingTop = \"0\";\r\n\t\ttarget.style.paddingBottom = \"0\";\r\n\t\ttarget.style.marginTop = \"0\";\r\n\t\ttarget.style.marginBottom = \"0\";\r\n\t\t// eslint-disable-next-line no-unused-expressions\r\n\t\ttarget.offsetHeight;\r\n\t\ttarget.style.transitionProperty = \"height, margin, padding\";\r\n\t\ttarget.style.transitionDuration = duration + \"ms\";\r\n\t\ttarget.style.height = height + \"px\";\r\n\t\ttarget.style.removeProperty(\"padding-top\");\r\n\t\ttarget.style.removeProperty(\"padding-bottom\");\r\n\t\ttarget.style.removeProperty(\"margin-top\");\r\n\t\ttarget.style.removeProperty(\"margin-bottom\");\r\n\t\twindow.setTimeout(() => {\r\n\t\t\ttarget.style.removeProperty(\"height\");\r\n\t\t\ttarget.style.removeProperty(\"overflow\");\r\n\t\t\ttarget.style.removeProperty(\"transition-duration\");\r\n\t\t\ttarget.style.removeProperty(\"transition-property\");\r\n\t\t}, duration);\r\n\t};\r\n\r\n\tprivate slideToggle(target: HTMLElement, duration = 500) {\r\n\t\tif (window.getComputedStyle(target).display === \"none\") {\r\n\t\t\treturn this.slideDown(target, duration);\r\n\t\t} else {\r\n\t\t\treturn this.slideUp(target, duration);\r\n\t\t}\r\n\t};\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst faqDrawer = new AANFaqDrawer();\r\n\r\n\tfaqDrawer.init();\r\n});\r\n","export class AANAnnouncements {\r\n\tprivate minHeight = \"190px\";\r\n\r\n\tinit(): void {\r\n\t\tconst announcements: HTMLElement[] = Array.from(document.querySelectorAll(\".announcement.see-more\"));\r\n\r\n\t\tannouncements.forEach(announcement => {\r\n\t\t\tconst button = announcement.querySelector(\".expand-button\") as HTMLElement;\r\n\r\n\t\t\tbutton.addEventListener(\"click\", () => this.slideToggle(announcement));\r\n\t\t});\r\n\t}\r\n\r\n\tprivate slideUp(target: HTMLElement, duration = 500) {\r\n\t\tconst button = target.querySelector(\".expand-button\") as HTMLElement;\r\n\r\n\t\tbutton.innerText = \"Read More\";\r\n\r\n\t\ttarget.style.transitionProperty = \"height, margin, padding\";\r\n\t\ttarget.style.transitionDuration = duration + \"ms\";\r\n\t\ttarget.style.height = target.offsetHeight + \"px\";\r\n\r\n\t\t// Not sure why this is needed, but unless it is here this breaks for all browsers.\r\n\t\t// eslint-disable-next-line no-unused-expressions\r\n\t\ttarget.offsetHeight;\r\n\t\ttarget.style.overflow = \"hidden\";\r\n\t\ttarget.style.height = this.minHeight;\r\n\t\twindow.setTimeout(() => {\r\n\t\t\ttarget.style.removeProperty(\"height\");\r\n\t\t\ttarget.style.removeProperty(\"overflow\");\r\n\t\t\ttarget.style.removeProperty(\"transition-duration\");\r\n\t\t\ttarget.style.removeProperty(\"transition-property\");\r\n\r\n\t\t\ttarget.classList.remove(\"open\");\r\n\t\t}, duration);\r\n\t};\r\n\r\n\tprivate slideDown(target: HTMLElement, duration = 500) {\r\n\t\tconst button = target.querySelector(\".expand-button\") as HTMLElement;\r\n\t\tconst computedStyles = getComputedStyle(target);\r\n\r\n\t\tbutton.innerText = \"Show Less\";\r\n\r\n\t\tconst height = Array.from(target.children as any).map(x => x.offsetHeight).reduce((a, b) => a + b, 0)\r\n\t\t\t+ parseInt(computedStyles.paddingTop.replace(\"px\", \"\"), 10)\r\n\t\t\t+ parseInt(computedStyles.marginTop.replace(\"px\", \"\"), 10)\r\n\t\t\t+ parseInt(computedStyles.paddingBottom.replace(\"px\", \"\"), 10)\r\n\t\t\t+ parseInt(computedStyles.marginBottom.replace(\"px\", \"\"), 10);\r\n\r\n\t\ttarget.style.overflow = \"hidden\";\r\n\t\ttarget.style.height = this.minHeight;\r\n\t\t// eslint-disable-next-line no-unused-expressions\r\n\t\ttarget.offsetHeight;\r\n\t\ttarget.style.transitionProperty = \"height, margin, padding\";\r\n\t\ttarget.style.transitionDuration = duration + \"ms\";\r\n\t\ttarget.style.height = height + \"px\";\r\n\t\twindow.setTimeout(() => {\r\n\t\t\ttarget.classList.add(\"open\");\r\n\r\n\t\t\ttarget.style.removeProperty(\"height\");\r\n\t\t\ttarget.style.removeProperty(\"overflow\");\r\n\t\t\ttarget.style.removeProperty(\"transition-duration\");\r\n\t\t\ttarget.style.removeProperty(\"transition-property\");\r\n\t\t}, duration);\r\n\t};\r\n\r\n\tprivate slideToggle(target: HTMLElement, duration = 500) {\r\n\t\tif (window.getComputedStyle(target).height === this.minHeight) {\r\n\t\t\treturn this.slideDown(target, duration);\r\n\t\t} else {\r\n\t\t\treturn this.slideUp(target, duration);\r\n\t\t}\r\n\t};\r\n}\r\n\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst announcements = new AANAnnouncements();\r\n\r\n\tannouncements.init();\r\n});\r\n","export class AANPublicationsDialog {\r\n\tinit(): void {\r\n\t\tconst showPublicationsButtons = Array.from(document.querySelectorAll(\"button.show-publications\"));\r\n\t\tconst publicationsDialog = document.getElementById(\"publications\") as HTMLDialogElement;\r\n\r\n\t\tif (!publicationsDialog) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tshowPublicationsButtons.forEach(showPublicationsButton => {\r\n\t\t\tshowPublicationsButton.addEventListener(\"click\", () => {\r\n\t\t\t\tif (!publicationsDialog.hasAttribute(\"open\")) {\r\n\t\t\t\t\t// Not all browsers support the dialog element yet. as a result TypeScrupt doesn't recognize it.\r\n\t\t\t\t\t// We are polyfilling it so this will make TypeScript ignore the call.\r\n\t\t\t\t\t(publicationsDialog as any).showModal();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t(publicationsDialog as any).close();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst publicationsDialog = new AANPublicationsDialog();\r\n\r\n\tpublicationsDialog.init();\r\n});\r\n","export class AANDropdownForm {\r\n\tinit(): void {\r\n\t\tconst openDropdownButtons: (HTMLButtonElement | HTMLLabelElement)[] = Array.from(document.querySelectorAll(\".dropdown .dropdown-trigger\"));\r\n\r\n\t\tdocument.addEventListener(\"click\", () => {\r\n\t\t\tArray.from(document.querySelectorAll(\".dropdown .dropdown-content\")).forEach((dropdownContent: HTMLElement) => {\r\n\t\t\t\tconst contentVisibleCheckBox = dropdownContent.parentElement?.querySelector(\"input.content-visible\") as HTMLInputElement;\r\n\t\t\t\tdropdownContent.classList.remove(\"visible\");\r\n\t\t\t\tif (contentVisibleCheckBox) {\r\n\t\t\t\t\tcontentVisibleCheckBox.checked = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\topenDropdownButtons.forEach(openDropdownButton => {\r\n\t\t\tconst dropdownElement = openDropdownButton.parentElement;\r\n\t\t\tconst dropdownContent = dropdownElement?.querySelector(\".dropdown-content\") as HTMLElement;\r\n\t\t\tconst contentVisibleCheckBox = dropdownElement?.querySelector(\"input.content-visible\") as HTMLInputElement;\r\n\r\n\t\t\tdropdownElement?.addEventListener(\"click\", e => {\r\n\t\t\t\te.stopPropagation();\r\n\t\t\t});\r\n\r\n\t\t\tconst closeDropdownButtons = Array.from(dropdownElement?.querySelectorAll(\".btn-close:not(label), .cancel:not(label), .apply:not(label)\") ?? []);\r\n\r\n\t\t\tcloseDropdownButtons.forEach(closeDropdownButton => {\r\n\t\t\t\tcloseDropdownButton.addEventListener(\"click\", () => {\r\n\t\t\t\t\tdropdownContent.classList.remove(\"visible\");\r\n\t\t\t\t\tif (contentVisibleCheckBox) {\r\n\t\t\t\t\t\tcontentVisibleCheckBox.checked = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t\tif (openDropdownButton instanceof HTMLLabelElement && contentVisibleCheckBox) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\topenDropdownButton.addEventListener(\"click\", () => {\r\n\t\t\t\tdropdownContent.classList.add(\"visible\");\r\n\t\t\t\tif (contentVisibleCheckBox) {\r\n\t\t\t\t\tcontentVisibleCheckBox.checked = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", () => {\r\n\tconst dropdownForm = new AANDropdownForm();\r\n\tdropdownForm.init();\r\n});\r\n"],"names":["AANDialog","static","dialogId","dialog","document","getElementById","showModal","body","style","overflow","addEventListener","init","dialogs","Array","from","querySelectorAll","length","forEach","closeButton","querySelector","event","close","preventDefault","stopPropagation","rect","getBoundingClientRect","top","clientY","height","left","clientX","width","target","HTMLButtonElement","window","AANLoginDialog","displayLoginError","location","toString","indexOf","innerText","this","loginDialog","form","classList","add","AANMainNav","setAriaExpanded","button","expandValue","hasAttribute","setAttribute","toggleMobileMenu","parentElement","contains","remove","toggleMobileSubnav","mainNav","mainNavButtons","subnavButtons","subnavButton","PageActions","setPageActionsLocation","pageActionsElement","bannerElement","bannerStyles","getComputedStyle","display","bottom","gdprBannerHeight","parseInt","ScrollFollow","setClass","element","className","setTop","scrollFollowClasses","filter","x","removeClass","positionScrollFollow","requestAnimationFrame","windowHeight","innerHeight","elementBoundingRec","parentBoundingRec","elementExtendsBelowWindow","parentBelowTopOfWindow","topAlignment","Math","min","elementAboveTopOfParent","pinToTop","pinToBottom","scrollFollowElements","scrollFollowElement","SideNav","sideNavs","sideNavHrefs","map","sideNav","anchor","getAttribute","reduce","prev","curr","pageAnchors","pageAnchor","some","sideNavHref","id","activeAnchor","sort","a","b","aTop","bTop","SponsoredBy","sponsoredItems","sponsoredItem","AANSubscribe","$$epiforms","on","subscribeForm","currentTarget","previousElement","previousElementSibling","nextElement","nextElementSibling","AANTabNav","tabNavs","tabNav","menuLabel","activeTab","tabMenu","scrollLeft","offsetLeft","AANTable","tables","table","tableHeaders","tableRows","forceMobileIfNeeded","row","columns","i","len","column","tableHeader","parentStyles","tableStyles","marginLeft","marginRight","TopSearch","showSeachButton","closeSearchButton","pageHeader","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","AANBanner","bannerClick","banner","getBanner","bannerid","closedBanners","JSON","parse","localStorage","closeBanner","stringify","bannerElements","slice","call","bannerId","tagName","toLowerCase","AANGDPRBanner","gdprClosed","AANTopNav","AANScrollTop","scrollTopVisible","showpoint","max","documentElement","clientHeight","scrollTop","scrollTopElement","stepUnit","ceil","scrollAnimation","scrollTo","setTimeout","AANFaqDrawer","faqDrawer","header","list","footer","slideToggle","slideUp","duration","transitionProperty","transitionDuration","offsetHeight","paddingTop","paddingBottom","marginTop","marginBottom","removeProperty","slideDown","AANAnnouncements","minHeight","announcement","computedStyles","children","replace","AANPublicationsDialog","showPublicationsButtons","publicationsDialog","showPublicationsButton","AANDropdownForm","openDropdownButtons","dropdownContent","contentVisibleCheckBox","checked","openDropdownButton","dropdownElement","e","closeDropdownButton","HTMLLabelElement"],"sourceRoot":""}