PageSourceSearch

https://thesolutionsproject.org/wp-content/themes/solutions-project-theme/js/main.min.js?ver=1790602600

js thesolutionsproject.org collected 2026-10-01 13:05:13 UTC 24,303 bytes, 1 lines download raw bytes

1window.tsp=window.tsp||{themePath:"/wp-content/themes/solutions-project-theme/",colors:{pink:"#FF83DA"},el:{body:jQuery("body"),header:jQuery("#site-header")},accordion:function(){function e(e){let t=e.querySelector("button"),n=e.querySelector(".accordion__content");t.setAttribute("aria-expanded",!0),n.hidden=!1;var i=n.scrollHeight;n.style.height=i+"px",n.addEventListener("transitionend",(function e(){n.removeEventListener("transitionend",e),n.style.height=null})),n.hidden=!1}const t=document.querySelectorAll(".accordion__item");Array.prototype.forEach.call(t,(t=>{let n=t.querySelector(".accordion-button");t.querySelector(".accordion__content").style.height=0,n.onclick=()=>{t.classList.toggle("expanded"),"true"===n.getAttribute("aria-expanded")?function(e){let t=e.querySelector("button");if("true"===t.getAttribute("aria-expanded")){let r=e.querySelector(".accordion__content");t.setAttribute("aria-expanded",!1);var n=r.scrollHeight,i=r.style.transition;r.style.transition="",requestAnimationFrame((function(){r.style.height=n+"px",r.style.transition=i,requestAnimationFrame((function(){r.style.height="0px"}))}))}}(t):e(t)},t.classList.contains("open-first")&&e(t)}))},advancedTimelineIcons:function(){document.querySelectorAll(".advanced-timeline .accordion__item").forEach((function(e){const t=e.querySelector(".accordion-button"),n=e.querySelectorAll(".advanced-timeline__events .advanced-timeline__event"),i=e.querySelector(".advanced-timeline__year");let r=function(e){e.forEach((function(e){new IntersectionObserver((e=>{e.forEach((e=>{let t=e.target.querySelector(".advanced-timeline__event-type");e.isIntersecting&&(t.style.opacity=1)}))}),{rootMargin:"-20% 0px 0px 0px",threshold:1}).observe(e)}))};n.forEach((function(e){const t=e.querySelector(".advanced-timeline__event-type");t&&(t.style.opacity=0)})),e.classList.contains("open-first")&&(i&&i.classList.add("sticky"),r(n)),t.addEventListener("click",(function(){i&&i.classList.toggle("sticky"),r(n)}))}))},advancedTimelineHighlight:function(){const e=document.querySelectorAll(".advanced-timeline__event--text-sub_heading span.highlight-text");e&&e.forEach((function(e){new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&e.target.classList.add("visible")}))}),{threshold:.1}).observe(e)}))},animatedLazyLoad:function(){document.querySelectorAll("[loading=lazy]").forEach((function(e){e.addEventListener("load",(function(){e.classList.add("lazy-loaded")}))}))},animations:function(){AOS.init({disable:"mobile"}),window.addEventListener("load",(function(){AOS.refresh()})),document.addEventListener("aos:in",(({detail:e})=>{})),document.addEventListener("aos:out",(({detail:e})=>{}))},blogFilter:function(){var e=document.getElementById("button-grid-filter");if(e){var t=e.nextElementSibling,n=function(e){tsp.escapeHandler(e,r)},i=function(n){n.composedPath().includes(t.parentElement)||(e.blur(),r())};e.addEventListener("click",(function(a){"true"===this.getAttribute("aria-expanded")?r():(e.setAttribute("aria-expanded",!0),t.classList.add("open"),document.addEventListener("keydown",n),document.addEventListener("click",i))}),!1)}function r(){e.setAttribute("aria-expanded",!1),t.classList.remove("open"),document.removeEventListener("keydown",n),document.removeEventListener("click",i)}},carousels:function(){var e=document.querySelector(".glider");if(e){var t,n=jQuery(e).find(".grantees-grid__item"),i=Number(jQuery(e).css("zIndex"));e.addEventListener("glider-loaded",(function(e){AOS.refresh()})),e.addEventListener("glider-refresh",(function(e){AOS.refresh()})),a(o(i)),t=new Glider(e,{slidesToShow:1,dots:"#dots",arrows:{prev:".glider-prev",next:".glider-next"}}),jQuery(window).on("resize",(function(){jQuery(e).css("zIndex")!=i&&(i=Number(jQuery(e).css("zIndex")),n.unwrap(),a(o(i)),t.refresh(!0))}));var r=document.querySelector(".image-carousel");r.addEventListener("glider-loaded",(function(e){AOS.refresh()})),new Glider(r,{slidesToShow:1,type:"carousel",dots:"#slideshow-dots",draggable:!1,arrows:{prev:".image-carousel__prev",next:".image-carousel__next"}})}function a(e){for(var t=0;t<n.length;t+=e)n.slice(t,t+e).wrapAll("<div class='grantees-grid__group'></div>")}function o(e){return 1==e?4:2==e?8:12}},disclosureWidget:function(){var e;(e=jQuery)(".disclosure-button").each((function(){if(e(this).attr("aria-controls"))var t=e("#"+e(this).attr("aria-controls"));else t=e(this).next(".disclosure-content");e(this).click((function(n){e(this).attr("aria-expanded",(function(e,t){return"true"==t?"false":"true"})),t.stop().slideToggle("fast",(function(){AOS.refresh()}))}))}))},escapeHandler:function(e,t){("key"in(e=e||window.event)?"Escape"===e.key||"Esc"===e.key:27===e.ke
1yCode)&&t()},fullNav:function(){const e=document.querySelectorAll(".primary-menu__item--lvl-1.menu-item-has-children");e&&Array.prototype.forEach.call(e,(e=>{e.addEventListener("mouseover",(function(t){window.matchMedia("(min-width: 1024px)").matches&&(e.classList.add("js-hover"),e.classList.add("hover"),setTimeout((function(){e.classList.contains("hover")&&e.classList.add("open-l2")}),400))}),!1),e.addEventListener("mouseout",(function(t){e.classList.remove("hover"),setTimeout((function(){e.classList.contains("hover")||e.classList.remove("open-l2")}),400)}),!1)}))},insertIcon:function(e){return"<svg class='icon icon--"+e+"' aria-hidden='true'><use xlink:href='"+window.location.origin+tsp.themePath+"icons/sprite.svg#"+e+"'></use></svg>"},ir2020:function(){tsp.stickyNav("ir2020-nav")},ir2020VidTabs:function(){var e;(e=jQuery)(".ir2020-vidgrid__tabs").each((function(){var t=e(this).find("button"),n=e(this).next(),i=n.children();t.on("click",(function(){t.removeClass("active"),e(this).addClass("active"),i.removeClass("visible"),i.eq(e(this).index()).addClass("visible"),n.addClass("visible")})),i.find(".ir2020-vidgrid__closetab").on("click",(function(){i.removeClass("visible"),n.removeClass("visible"),t.removeClass("active")}))}))},ir2020GranteesGrid:function(){var e;(e=jQuery)(".ir2020-grantees-grid__item").each((function(){var t=e(this).find("button");e(this).find(".ir2020-grantees-grid__description"),t.on("click",(function(){"true"==e(this).attr("aria-expanded")?e(this).attr("aria-expanded","false"):e(this).attr("aria-expanded","true")}))}))},ir2020:function(){tsp.stickyNav(document.getElementById("ir2020-nav"))},mobileNav:function(){var e=document.getElementById("btn-menu"),t=document.getElementById("primary-menu");if(e&&t){var n=t.querySelectorAll(".btn-toggle-submenu");e.addEventListener("click",(function(n){"true"===e.getAttribute("aria-expanded")?s(t,e):o(t,e)}));for(var i=0;i<n.length;i++)n[i].addEventListener("click",(function(e){var t=e.currentTarget,n=t.parentNode.children[Object.keys(t.parentNode.children).pop()];"true"===t.getAttribute("aria-expanded")?s(n,t):o(n,t)}))}
1function r(){e.setAttribute("disabled",!0),n.forEach((function(e){e.setAttribute("disabled",!0)}))}function a(){e.removeAttribute("disabled"),n.forEach((function(e){e.removeAttribute("disabled")}))}function o(e,t){t.classList.add("active"),t.setAttribute("aria-expanded",!0),document.body.style.overflow="hidden",r(),e.style.cssText="display: block; transition: none";var n=e.getBoundingClientRect().height;function i(){e.removeEventListener("transitionend",i),e.style.height=null,a()}requestAnimationFrame((function(){e.style.cssText="height:0",requestAnimationFrame((function(){e.classList.add("open"),requestAnimationFrame((function(){e.addEventListener("transitionend",i),e.style.height=n+"px"}))}))}))}function s(e,t){let n=e.getBoundingClientRect().height;t.setAttribute("aria-expanded",!1),t.classList.remove("active"),document.body.style.overflow=null,r();var i=e.style.transition;e.style.transition="",requestAnimationFrame((function(){e.style.height=n+"px",e.style.transition=i,requestAnimationFrame((function(){e.style.height="0px",e.addEventListener("transitionend",(function t(){e.removeEventListener("transitionend",t),e.classList.remove("open"),e.style.height=null,a()}))}))}))}},mobileSocialIcons(){var e=document.getElementById("main-nav-social-links"),t=document.getElementById("mobile-social-links");e&&t&&(t.innerHTML=e.innerHTML)},modals:function(){MicroModal.init({awaitCloseAnimation:!0,disableFocus:!0,disableScroll:!0,onShow:function(e){const t=e.querySelector(".modal__content .video-embed");t&&t.dataset.iframeHtml&&(t.innerHTML=t.dataset.iframeHtml)},onClose:function(e){const t=e.querySelector(".modal__content .video-embed");if(t){const e=t.querySelector("iframe");e&&(t.dataset.iframeHtml=e.outerHTML,e.remove())}}}),document.querySelectorAll(".tile__modal-link").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault()}))})),jQuery(document).ready((function(){var e=jQuery("#news-subscribe-form");e.length&&setTimeout((function(){tsp.setCookie("STYXKEY_news_modal",!0),MicroModal.show(e.attr("id"))}),2e3)}))},notificationBars:function(){var e;(e=jQuery)(".notifications__close").on("click",(function(){var t=e(this).closest(".notification-bar");tsp.setCookie("STYXKEY_"+t.attr("id"),!0),t.slideUp(300,(function(){t.remove(),tsp.el.header.css("height","auto").css("height",tsp.el.header.outerHeight()),AOS.refresh()}))}))},radioSelectWidget:function(){var e;e=jQuery,$widgets=e(".radios-filter-widget"),$widgets.each((function(){var t=e(this).find(".radios-filter-widget__button"),n=e(this).find('input[type="radio"]');function i(){t.attr("aria-expanded","false"),document.removeEventListener("keydown",r),document.removeEventListener("click",a)}e(this).find(".radios-filter-widget__button").on("click",(function(){"true"===e(this).attr("aria-expanded")?i():(t.attr("aria-expanded","true"),document.addEventListener("keydown",r),document.addEventListener("click",a))}));var r=function(e){tsp.escapeHandler(e,i)},a=function(e){e.composedPath().includes(t.get(0).parentElement)||(t.blur(),i())};n.on("change",(function(){i(),t.text(e(this).next("span").text())}))}))},parallax:function(){document.querySelectorAll(".ir2019-photo-bg").forEach((function(e){var t=!1;window.addEventListener("scroll",(function(){e.getBoundingClientRect().top<=0?t||(t=!0,e.classList.add("fixed")):t&&(t=!1,e.classList.remove("fixed"))}))}))},setCookie:function(e,t,n){var i=new Date;i.setDate(i.getDate()+n);var r=escape(t)+(null==n?"":"; expires="+i.toUTCString());document.cookie=e+"="+r+"; path=/"},shareStory:function(){let e=document.querySelectorAll("#share-story__link");0!==e.length&&e.forEach((function(e){e.addEventListener("click",(function(t){const n=e.getAttribute("data-url")||window.location.href;navigator.clipboard.writeText(n).then((function(){let t=document.querySelector("#confirmationMessage");t?t.style.display="block":(t=document.createElement("p"),t.id="confirmationMessage",t.textContent="URL copied to clipboard!",e.parentNode.insertBefore(t,e.nextSibling)),setTimeout((function(){t.style.display="none"}),3e3)})).catch((function(e){console.error("Error copying URL: ",e)}))}
1))}))},stickyHeader:function(){if(!document.body.classList.contains("no-sticky-header")){var e=document.getElementById("site-header"),t=!1;window.addEventListener("scroll",(function(){e.getBoundingClientRect().top<=0&&window.scrollY>99?t||(t=!0,document.body.classList.add("scrolled")):!0===t&&(t=!1,document.body.classList.remove("scrolled"))}))}},stickyNav:function(e){var t=e;if(t){var n=t.querySelectorAll("a");n.forEach((e=>{e.section=document.getElementById(e.hash.substr(1))})),window.addEventListener("scroll",tsp.throttle((function(e){var i=null;n.forEach((e=>{e.section.getBoundingClientRect().top<=.4*window.innerHeight&&(i=e)})),n.forEach((e=>{null!=i&&e==i||e.classList.remove("active")})),i?(t.classList.add("site-nav--active"),i.classList.add("active")):t.classList.remove("site-nav--active")}),50))}},tabs:function(){const e=document.querySelector(".tabbed");if(!e)return;const t=e.querySelector(".tabbed__tablist"),n=t.querySelectorAll("a"),i=e.querySelectorAll(".tabbed__tabpanel"),r=e.querySelector(".tabbed__next"),a=e.querySelector(".tabbed__prev"),o=(e,t)=>{t.focus(),t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true"),e.removeAttribute("aria-selected"),e.setAttribute("tabindex","-1");let o=Array.prototype.indexOf.call(n,t),s=Array.prototype.indexOf.call(n,e);i[s].hidden=!0,i[o].hidden=!1,r&&(t.parentElement.nextElementSibling?r.removeAttribute("disabled"):r.setAttribute("disabled","true")),a&&(t.parentElement.previousElementSibling?a.removeAttribute("disabled"):a.setAttribute("disabled","true"))};Array.prototype.forEach.call(n,((e,r)=>{e.setAttribute("role","tab"),e.setAttribute("id","tab"+(r+1)),e.setAttribute("tabindex","-1"),e.parentNode.setAttribute("role","presentation"),e.addEventListener("click",(e=>{e.preventDefault();let n=t.querySelector("[aria-selected]");e.currentTarget!==n&&o(n,e.currentTarget)})),e.addEventListener("keydown",(e=>{let t=Array.prototype.indexOf.call(n,e.currentTarget),a=37===e.which?t-1:39===e.which?t+1:40===e.which?"down":null;null!==a&&(e.preventDefault(),"down"===a?i[r].focus():n[a]&&o(e.currentTarget,n[a]))}))})),Array.prototype.forEach.call(i,((e,t)=>{e.setAttribute("role","tabpanel"),e.setAttribute("tabindex","-1"),e.getAttribute("id"),e.setAttribute("aria-labelledby",n[t].id),e.hidden=!0})),n.length&&(n[0].removeAttribute("tabindex"),n[0].setAttribute("aria-selected","true")),i.length&&(i[0].hidden=!1),r&&r.addEventListener("click",(function(e){e.preventDefault();let n=t.querySelector('[aria-selected="true"]');if(n.parentElement.nextElementSibling){let e=n.parentElement.nextElementSibling.querySelector("a");o(n,e)}})),a&&a.addEventListener("click",(function(e){e.preventDefault();let n=t.querySelector('[aria-selected="true"]');if(n.parentElement.previousElementSibling){let e=n.parentElement.previousElementSibling.querySelector("a");o(n,e)}}))},throttle:function(e,t){let n=!0;return function(...i){n&&(n=!1,e.apply(this,i),setTimeout((()=>n=!0),t))}},ir2021:function(){var e=document.getElementById("ir2021-subnav");if(e){tsp.stickyNav(e),document.documentElement.classList.add("smooth-scroll");var t=document.getElementById("site-header");document.addEventListener("scroll",(function(n){var i=e.getBoundingClientRect(),r=t.getBoundingClientRect();i.top<=r.bottom?(t.classList.add("vh"),e.classList.remove("vh")):(t.classList.remove("vh"),e.classList.add("vh"))}));var n=document.getElementById("ir2021-subnav-button");n.addEventListener("click",(function(e){"true"===n.getAttribute("aria-expanded")?n.setAttribute("aria-expanded",!1):n.setAttribute("aria-expanded",!0)}))}},ir2021Books:function(){var e=document.querySelectorAll(".ir2021-book");e.length&&e.forEach((function(e){var t=e.querySelector(".ir2021-book-button"),n=e.querySelector(".ir2021-book-heading"),i=e.querySelector(".ir2021-book-content");function r(){t.setAttribute("aria-expanded",!1),i.classList.remove("open");var n=t.scrollHeight,r=i.scrollHeight;requestAnimationFrame((function(){e.style.height=r+"px",requestAnimationFrame((function(){e.style.height=n+"px"}))}))}e.addEventListener("transitionend",(function(){e.removeAttribute("style"),AOS.refresh()})),t.addEventListener("click",(function(n){"true"===t.getAttribute("aria-expanded")?r():function(){t.setAttribute("aria-expanded",!0),i.classList.add("open");var n=t.scrollHeight,r=i.scrollHeight;requestAnimationFrame((function(){e.style.height=n+"px",requestAnimationFrame((function(){e.style.height=r+"px"}))}))}()})),n.addEventListener("click",(function(e){r()}))}))},ir2021Carousel:function(){var e=document.querySelectorAll(".ir2021-glider");e.length&&e.forEach((function(e){new Glider(e,{slidesToShow:1,slidesToScroll:1,dots:e.parentElement.nextElementSibling,draggable:!1,arrows:{prev:e.nextElementSibling.firstElementChild,next:e.nextElementSibling.lastElementChild},responsive:[{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:3}}]}),e.addEventListener("glider-animated",(function(e){console.clear()}
1))}))},ir2021Slider:function(){var e=document.querySelectorAll(".ir2021-slider");e.length&&e.forEach((function(e){var t=e.querySelectorAll(".ir2021-slider-card__button"),n=e.querySelector(".ir2021-slider-content"),i=n.querySelectorAll(".ir2021-slider-tab"),r=n.querySelectorAll(".ir2021-slider-slide"),a=n.querySelector(".ir2021-slider-close"),o=n.querySelector(".ir2021-slider-direction--next"),s=n.querySelector(".ir2021-slider-direction--previous");function c(e){e.setAttribute("aria-expanded",!0),Array.from(i).filter((t=>t!==e)).forEach((function(e){e.setAttribute("aria-expanded",!1)})),e.nextElementSibling?o.classList.remove("disabled"):o.classList.add("disabled"),e.previousElementSibling?s.classList.remove("disabled"):s.classList.add("disabled");var t=n.querySelector("#"+e.dataset.slide);t.classList.add("active"),AOS.refresh(),Array.from(r).filter((e=>e!==t)).forEach((function(e){e.classList.remove("active")}))}i.forEach((function(e){e.addEventListener("click",(function(t){c(e)}))})),t.forEach((function(e){e.addEventListener("click",(function(t){var i=n.querySelector("#"+e.dataset.tab);i.classList.add("already-open"),n.classList.add("active"),c(i)}))})),a.addEventListener("click",(function(e){n.classList.remove("active"),AOS.refresh()})),o.addEventListener("click",(function(e){var t=n.querySelector('[aria-expanded="true"]');t.nextElementSibling&&c(t.nextElementSibling)})),s.addEventListener("click",(function(e){var t=n.querySelector('[aria-expanded="true"]');t.previousElementSibling&&c(t.previousElementSibling)}))}))},ir2021map:function(){var e=document.getElementById("ir2021-map");if(e){var t=e.querySelectorAll(".ir2021-map-opening__links button"),n=e.querySelectorAll(".ir2021-map-tabs button"),i=e.querySelectorAll("circle"),r=e.querySelectorAll(".ir2021-map-slide"),a=e.querySelector(".ir2021-slider-direction--next"),o=e.querySelector(".ir2021-slider-direction--previous"),s=e.querySelector("#ir2021-map-content"),c=e.querySelector("#ir2021-map-close");t.forEach((function(e){e.addEventListener("mouseover",(function(t){l(e)})),e.addEventListener("focus",(function(t){l(e)})),e.addEventListener("mouseout",(function(e){d()})),e.addEventListener("blur",(function(e){d()})),e.addEventListener("click",(function(t){s.classList.add("open"),u(n[e.dataset.tab])}))})),i.forEach((function(e){var i;t.forEach((function(t){t.dataset.color===e.dataset.color&&(i=t)})),e.addEventListener("mouseover",(function(e){i.classList.add("active"),l(i)})),e.addEventListener("mouseout",(function(e){i.classList.remove("active"),d()})),e.addEventListener("click",(function(e){s.classList.add("open"),u(n[i.dataset.tab])}))})),n.forEach((function(e){e.addEventListener("click",(function(t){u(e)}))})),a.addEventListener("click",(function(t){var n=e.querySelector('[aria-expanded="true"]');n.parentElement.nextElementSibling&&u(n.parentElement.nextElementSibling.firstElementChild)})),o.addEventListener("click",(function(t){var n=e.querySelector('[aria-expanded="true"]');n.parentElement.previousElementSibling&&u(n.parentElement.previousElementSibling.firstElementChild)})),c.addEventListener("click",(function(e){s.classList.remove("open"),AOS.refresh()}))}function l(e){i.forEach((function(t){e.dataset.color===t.dataset.color?(t.classList.add("active"),t.classList.remove("inactive")):(t.classList.remove("active"),t.classList.add("inactive"))}))}function d(){i.forEach((function(e){e.classList.remove("active"),e.classList.remove("inactive")}))}function u(e){e.setAttribute("aria-expanded",!0),Array.from(n).filter((t=>t!==e)).forEach((function(e){e.setAttribute("aria-expanded",!1)})),e.parentElement.nextElementSibling?a.classList.remove("disabled"):a.classList.add("disabled"),e.parentElement.previousElementSibling?o.classList.remove("disabled"):o.classList.add("disabled"),Array.from(r).forEach((function(t){t.dataset.slide===e.dataset.slide?t.classList.add("active"):t.classList.remove("active")})),AOS.refresh()}},ir22map:function(){var e,t,n,i;e=jQuery,t=e("#stories-map"),n=t.find("[data-region]"),i=e(".ir22-flipcard"),n.hover((function(){if(2==t.css("zIndex")){n.not(e(this)).addClass("disabled");var r=i.filter('[data-region="'+e(this).data().region+'"]');r.get(0).scrollIntoView({block:"nearest"}),r.addClass("flipped"),i.not(r).addClass("dim")}}),(function(){2==t.css("zIndex")&&(n.removeClass("disabled"),i.removeClass("flipped").removeClass("dim"))})),i.hover((function(){if(2==t.css("zIndex")){i.not(e(this)).addClass("dim");var r=n.filter('[data-region="'+e(this).data().region+'"]');n.not(r).addClass("disabled")}}),(function(){2==t.css("zIndex")&&(n.removeClass("disabled"),i.removeClass("dim"))}))},ir22map2:function(){var e,t,n,i,r;
1t=(e=jQuery)("#ir22-solutions-map"),n=t.find(".ir22-solutions-tab"),i=t.find(".ir22-grantee-panel"),r=t.find(".ir22-grantee-panel__close"),n.click((function(t){n.removeClass("active"),e(this).addClass("active"),i.hide(),i.filter("#"+e(this).data().contentId).show(),AOS.refresh()})),r.click((function(e){n.removeClass("active"),i.hide(),AOS.refresh()})),i.each((function(){var t=e(this).find(".ir22-grantee-panel__button"),n=e(this).find(".ir22-grantee-panel__panel");t.click((function(i){t.removeClass("active"),e(this).addClass("active"),n.removeClass("active"),n.filter('[data-panel-id="'+e(this).data().panel+'"]').addClass("active"),AOS.refresh()}))}))},ir22funding:function(){var e,t,n,i;n=(t=(e=jQuery)("#ir22-climate-justice")).find(".ir22-climate-sector"),i=t.find(".ir22-climate-content__panel"),t.find(".ir22-climate-content__close").click((function(e){i.removeClass("active")})),n.click((function(t){i.removeClass("active"),i.filter('[data-panel-id="'+e(this).data().panel+'"]').addClass("active")}))},ir23:{map:function(){var e=document.getElementById("funding-map");if(e){var t=e.querySelectorAll("[data-region]"),n=e.querySelectorAll("[data-map-popup]");t.forEach((function(e){const i=e.getAttribute("data-region"),r=document.querySelector('[data-map-popup="'+i+'"]');e.addEventListener("click",(function(i){t.forEach((function(e){e.classList.remove("active")})),n.forEach((function(e){e.classList.remove("active")})),e.classList.add("active"),r.classList.add("active")}))}))}},shuffle:function(){document.querySelectorAll(".ir23-shuffle-card").forEach((function(e){const t=e.querySelector("button");t.addEventListener("click",(function(n){"true"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded",!1),e.classList.remove("shuffled"),e.classList.add("unshuffled")):(t.setAttribute("aria-expanded",!0),e.classList.add("shuffled"),e.classList.remove("unshuffled"))}))}))},quoteCarousel:function(){var e=document.querySelectorAll(".quote-carousel");e&&e.forEach((function(e){new Glider(e,{slidesToShow:1,dots:".dots",draggable:!1,arrows:{prev:".glider-prev",next:".glider-next"}})}))},nav:function(){var e=document.getElementById("ir23-nav");if(e){tsp.stickyNav(e);var t=e.querySelector("button");t.addEventListener("click",(function(e){"true"===t.getAttribute("aria-expanded")?t.setAttribute("aria-expanded",!1):t.setAttribute("aria-expanded",!0)}))}},lines:function(){const e=document.querySelectorAll(".ir23-line");let t=new IntersectionObserver((function(e,t){e.forEach((e=>{e.isIntersecting&&e.target.classList.add("intersecting")}))}),{rootMargin:"0px 0px -20% 0px",threshold:0});e.forEach((function(e){t.observe(e)}))},graphics:function(){const e=document.querySelectorAll(".ir23-animated-header svg");let t=new IntersectionObserver((function(e,t){e.forEach((e=>{if(e.isIntersecting){let n=e.target.querySelectorAll(':scope [begin="indefinite"]');for(let i of n)i.beginElement(),t.unobserve(e.target)}}))}),{rootMargin:"0px 0px -20% 0px",threshold:0});e.forEach((function(e){t.observe(e)}))},init:function(){tsp.ir23.shuffle(),tsp.ir23.map(),tsp.ir23.nav(),tsp.ir23.quoteCarousel(),tsp.ir23.lines(),tsp.ir23.graphics()}},init:function(){tsp.carousels(),tsp.modals(),tsp.tabs(),tsp.mobileNav(),tsp.mobileSocialIcons(),tsp.fullNav(),tsp.shareStory(),tsp.stickyHeader(),tsp.accordion(),tsp.advancedTimelineIcons(),tsp.advancedTimelineHighlight(),tsp.animations(),tsp.parallax(),tsp.animatedLazyLoad(),tsp.notificationBars(),tsp.radioSelectWidget(),tsp.ir2020(),tsp.ir2020VidTabs(),tsp.ir2020GranteesGrid(),tsp.ir2021(),tsp.ir2021Slider(),tsp.ir2021Books(),tsp.ir2021Carousel(),tsp.ir2021map(),tsp.ir22map(),tsp.ir22map2(),tsp.ir22funding(),tsp.blogFilter(),tsp.disclosureWidget(),tsp.ir23.init()}},window.tsp.init();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.