'use strict';(function(){function d(){$("a.ms-rte-link").on("click",function(c){var a=this.getAttribute("href");if(a&&"#"===a.charAt(0)){var f=$(a),b=document.querySelector(".pagenav .bg-body.stuck-depth");b&&(c.preventDefault(),(c=f.offset())&&window.scrollTo({top:c.top-2*b.offsetHeight-10,left:0,behavior:"smooth"}));a=a.substring(1);if(a=document.getElementById(a))(b=this.getAttribute("id"))?a.setAttribute("href","#"+b):(b="__footnote"+e,this.setAttribute("id",b),a.setAttribute("href","#"+b),e++)}})} let e=0;"loading"!==document.readyState?d():document.addEventListener("DOMContentLoaded",d)})();