function scrollToTop(){const e=document.getElementById("scroll-to-top");window.scrollY>window.innerHeight*.5?(e.classList.remove("translate-y-4","opacity-0"),e.classList.add("translate-y-0","opacity-100")):(e.classList.remove("translate-y-0","opacity-100"),e.classList.add("translate-y-4","opacity-0"))}window.addEventListener("scroll",scrollToTop),window.addEventListener("load",scrollToTop),e=this,t=function(){"use strict";function N(e,t){var n,s=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,n)),s}function u(e){for(var t,n=1;ne.length)&&(t=e.length);for(var n=0,s=new Array(t);n0&&0[0]!==arguments[0]?arguments[0]:{},s=t.getFn,a=0[0]===s?e.getFn:s,o=t.fieldNormWeight,r=0[0]===o?e.fieldNormWeight:o;n(this,i),this.norm=function(){var n=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:1,s=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:3,e=new Map,t=10**s;return{get:function(s){if(o=s.match(ue).length,e.has(o))return e.get(o);var o,a=1/o**(.5*n),i=parseFloat(Math.round(a*t)/t);return e.set(o,i),i},clear:function(){e.clear()}}}(r,3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}return t(i,[{key:"setSources",value:function(){var e=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var t=this,e=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:[];this.keys=e,this._keysMap={},e.forEach(function(e,n){t._keysMap[e.id]=n})}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,o(this.docs[0])?this.docs.forEach(function(t,n){e._addString(t,n)}):this.docs.forEach(function(t,n){e._addObject(t,n)}),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();o(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t=0;t-=1)this.records.splice(e[t],1);for(var t,n=0,s=this.records.length;n2&&0[0]!==arguments[2]?arguments[2]:{},i=o.getFn,r=0[0]===i?e.getFn:i,a=o.fieldNormWeight,c=0[0]===a?e.fieldNormWeight:a,s=new v({getFn:r,fieldNormWeight:c});return s.setKeys(t.map(H)),s.setSources(n),s.create(),s}c=32;function ce(t,n,s){var o,i,p,g,j,w,E,k,T,d=arguments.length>3&&0[0]!==arguments[3]?arguments[3]:{},M=d.location,$=0[0]===M?e.location:M,S=d.distance,N=0[0]===S?e.distance:S,R=d.threshold,U=0[0]===R?e.threshold:R,z=d.findAllMatches,V=0[0]===z?e.findAllMatches:z,I=d.minMatchCharLength,L=0[0]===I?e.minMatchCharLength:I,F=d.includeMatches,D=0[0]===F?e.includeMatches:F,H=d.ignoreLocation,W=0[0]===H?e.ignoreLocation:H;if(n.length>c)throw new Error("Pattern length exceeds max of ".concat(c,"."));for(var v,r=n.length,f=t.length,a=Math.max(0,Math.min($,f)),m=U,u=a,b=function(e,t){var s,n=e/r;return W?n:(s=Math.abs(a-t),N?n+s/N:s?1:n)},O=L>1||D,A=O?Array(f):[];(v=t.indexOf(n,u))>-1;)if(T=b(0,v),m=Math.min(T,m),u=v+r,O)for(w=0;w=P;o-=1)if(p=o-1,k=s[t[p]],O&&(A[p]=+!!k),h[o]=(h[o+1]<<1|1)&k,l&&(h[o]|=(_[o+1]|_[o])<<1|1|_[o+1]),h[o]&B&&(C=b(l,p))<=m){if(m=C,(u=p)<=a)break;P=Math.max(1,2*a-u)}if(b(l+1,a)>m)break;_=h}return j={isMatch:u>=0,score:Math.max(.001,C)},O&&(E=function(){for(var i,s=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:[],a=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:e.minMatchCharLength,o=[],t=-1,r=-1,n=0,c=s.length;n=a&&o.push([t,r]),t=-1);return s[n-1]&&n-t>=a&&o.push([t,n-1]),o}(A,L),E.length?D&&(j.indices=E):j.isMatch=!1),j}function G(e){for(var s,n={},t=0,o=e.length;t1&&0[0]!==arguments[1]?arguments[1]:{},h=o.location,A=0[0]===h?e.location:h,u=o.threshold,E=0[0]===u?e.threshold:u,v=o.distance,F=0[0]===v?e.distance:v,m=o.includeMatches,S=0[0]===m?e.includeMatches:m,g=o.findAllMatches,k=0[0]===g?e.findAllMatches:g,d=o.minMatchCharLength,O=0[0]===d?e.minMatchCharLength:d,y=o.isCaseSensitive,_=0[0]===y?e.isCaseSensitive:y,w=o.ignoreDiacritics,j=0[0]===w?e.ignoreDiacritics:w,b=o.ignoreLocation,C=0[0]===b?e.ignoreLocation:b;if(n(this,s),this.options={location:A,threshold:E,distance:F,includeMatches:S,findAllMatches:k,minMatchCharLength:O,isCaseSensitive:_,ignoreDiacritics:j,ignoreLocation:C},t=_?t:t.toLowerCase(),t=j?p(t):t,this.pattern=t,this.chunks=[],this.pattern.length)if(a=function(e,t){x.chunks.push({pattern:e,alphabet:G(e),startIndex:t})},i=this.pattern.length,i>c){for(var r=0,f=i%c,M=i-f;r1&&0[0]!==arguments[1]?arguments[1]:{},r=s.location,O=0[0]===r?e.location:r,l=s.threshold,g=0[0]===l?e.threshold:l,u=s.distance,_=0[0]===u?e.distance:u,m=s.includeMatches,j=0[0]===m?e.includeMatches:m,p=s.findAllMatches,v=0[0]===p?e.findAllMatches:p,a=s.minMatchCharLength,b=0[0]===a?e.minMatchCharLength:a,f=s.isCaseSensitive,y=0[0]===f?e.isCaseSensitive:f,h=s.ignoreDiacritics,w=0[0]===h?e.ignoreDiacritics:h,c=s.ignoreLocation,x=0[0]===c?e.ignoreLocation:c;return n(this,o),(d=i.call(this,t))._bitapSearch=new B(t,{location:O,threshold:g,distance:_,includeMatches:j,findAllMatches:v,minMatchCharLength:b,isCaseSensitive:y,ignoreDiacritics:w,ignoreLocation:x}),d}return t(o,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),o}(i),Y=function(e){a(s,e);var o=l(s);function s(e){return n(this,s),o.call(this,e)}return t(s,[{key:"search",value:function(e){for(var t,o,n=0,s=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,s.push([t,n-1]);return o=!!s.length,{isMatch:o,score:o?0:1,indices:s}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),s}(i),x=[oe,Y,J,Z,ae,Q,se,S],K=x.length,ee=/ +(?=(?:[^"]*"[^"]*")*[^"]*$)/,te=new Set([S.type,Y.type]),ne=function(){function s(t){var o=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},a=o.isCaseSensitive,r=0[0]===a?e.isCaseSensitive:a,c=o.ignoreDiacritics,l=0[0]===c?e.ignoreDiacritics:c,d=o.includeMatches,w=0[0]===d?e.includeMatches:d,h=o.minMatchCharLength,v=0[0]===h?e.minMatchCharLength:h,m=o.ignoreLocation,y=0[0]===m?e.ignoreLocation:m,g=o.findAllMatches,b=0[0]===g?e.findAllMatches:g,i=o.location,j=0[0]===i?e.location:i,f=o.threshold,_=0[0]===f?e.threshold:f,u=o.distance,O=0[0]===u?e.distance:u;n(this,s),this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:l,includeMatches:w,minMatchCharLength:v,findAllMatches:b,ignoreLocation:y,location:j,threshold:_,distance:O},t=r?t:t.toLowerCase(),t=l?p(t):t,this.pattern=t,this.query=function(e){var t=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{};return e.split("|").map(function(e){for(var a,r,c,l,d=e.trim().split(ee).filter(function(e){return e&&!!e.trim()}),s=[],o=0,h=d.length;o2&&0[0]!==arguments[2]?arguments[2]:{}).auto,s=0[0]===n||n;return w(e)||(e=D(e)),function e(n){var a,c,d,u,i=Object.keys(n),l=function(e){return!!e[P]}(n);if(!l&&i.length>1&&!w(n))return e(D(n));if(function(e){return!r(e)&&T(e)&&!w(e)}(n)){if(a=l?n[P]:i[0],c=l?n[le]:n[a],!o(c))throw new Error(function(e){return"Invalid value for key ".concat(e)}(a));return d={keyId:b(a),pattern:c},s&&(d.searcher=V(c,t)),d}return u={children:[],operator:i[0]},i.forEach(function(t){var s=n[t];r(s)&&s.forEach(function(t){u.children.push(e(t))})}),u}(e)}function _(t,n){var s=n.ignoreFieldNorm,i=0[0]===s?e.ignoreFieldNorm:s,o=1;t.matches.forEach(function(e){var t=e.key,a=e.norm,n=e.score,s=t?t.weight:null;o*=(0===n&&s?Number.EPSILON:n)**((s||1)*(i?1:a))}),t.score=o}F=function(){function e(t){n(this,e),this.limit=t,this.heap=[]}return t(e,[{key:"size",get:function(){return this.heap.length}},{key:"shouldInsert",value:function(e){return this.size0;){if(n=e-1>>1,t[e].score<=t[n].score)break;s=t[e],t[e]=t[n],t[n]=s,e=n}}},{key:"_sinkDown",value:function(e){var s,o,a,t=this.heap,i=t.length,n=e;do s=2*(e=n)+1,o=2*e+2,(st[n].score&&(n=s),ot[n].score&&(n=o),n!==e)&&(a=t[e],t[e]=t[n],t[n]=a);while(n!==e)}}]),e}();function pe(e,t){var n=e.matches;t.matches=[],s(n)&&n.forEach(function(e){if(s(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}})}function ge(e,t){t.score=e.score}return d=function(){function i(t){var s=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:0[0];n(this,i),this.options=u(u({},e),s),this.options.useExtendedSearch,this._keyStore=new fe(this.options.keys),this.setCollection(t,o),this._lastQuery=null,this._lastSearcher=null}return t(i,[{key:"_getSearcher",value:function(e){if(this._lastQuery===e)return this._lastSearcher;var t=V(e,this.options);return this._lastQuery=e,this._lastSearcher=t,t}},{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=t||L(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){s(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var n,o=arguments.length>0&&0[0]!==arguments[0]?arguments[0]:function(){return!1},s=[],t=[],e=0,i=this._docs.length;e=0;n-=1)this._docs.splice(t[n],1);this._myIndex.removeAll(t)}return s}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(t){var n,a,c=(arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{}).limit,s=0[0]===c?-1:c,i=this.options,d=i.includeMatches,u=i.includeScore,h=i.shouldSort,l=i.sortFn,r=i.ignoreFieldNorm;return j(s)&&s>0&&o(t)?(a=new F(s),o(this._docs[0])?this._searchStringList(t,{heap:a,ignoreFieldNorm:r}):this._searchObjectList(t,{heap:a,ignoreFieldNorm:r}),n=a.extractSorted(l)):(function(t,n){var s=n.ignoreFieldNorm,o=0[0]===s?e.ignoreFieldNorm:s;t.forEach(function(e){_(e,{ignoreFieldNorm:o})})}(n=o(t)?o(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t),{ignoreFieldNorm:r}),h&&n.sort(l),j(s)&&s>-1&&(n=n.slice(0,s))),function(t,n){var o=arguments.length>2&&0[0]!==arguments[2]?arguments[2]:{},i=o.includeMatches,r=0[0]===i?e.includeMatches:i,a=o.includeScore,c=0[0]===a?e.includeScore:a,s=[];return r&&s.push(pe),c&&s.push(ge),t.map(function(e){var t=e.idx,o={item:n[t],refIndex:t};return s.length&&s.forEach(function(t){t(e,o)}),o})}(n,this._docs,{includeMatches:d,includeScore:u})}},{key:"_searchStringList",value:function(e){var n=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},t=n.heap,i=n.ignoreFieldNorm,a=this._getSearcher(e),r=this._myIndex.records,o=t?null:[];return r.forEach(function(e){var r=e.v,l=e.i,d=e.n;if(s(r)){var n,c=a.searchIn(r),u=c.isMatch,h=c.score,m=c.indices;u&&(n={item:r,idx:l,matches:[{score:h,value:r,norm:d,indices:m}]},t?(_(n,{ignoreFieldNorm:i}),t.shouldInsert(n.score)&&t.insert(n)):o.push(n))}}),o}},{key:"_searchLogical",value:function(e){var n=this,i=he(e,this.options),a=function e(t,s,o){if(!t.children){var c,l=t.keyId,d=t.searcher,i=n._findMatches({key:n._keyStore.get(l),value:n._myIndex.getValueForItemAtKeyId(s,l),searcher:d});return i&&i.length?[{idx:o,item:s,matches:i}]:[]}for(var a=[],r=0,u=t.children.length;r1&&0[0]!==arguments[1]?arguments[1]:{},t=n.heap,r=n.ignoreFieldNorm,c=this._getSearcher(e),o=this._myIndex,l=o.keys,d=o.records,i=t?null:[];return d.forEach(function(e){var n,o,d=e.$,u=e.i;s(d)&&(n=[],(l.forEach(function(e,t){n.push.apply(n,h(a._findMatches({key:e,value:d[t],searcher:c})))}),n.length)&&(o={idx:u,item:d,matches:n},t?(_(o,{ignoreFieldNorm:r}),t.shouldInsert(o.score)&&t.insert(o)):i.push(o)))}),i}},{key:"_findMatches",value:function(e){var i=e.key,t=e.value,a=e.searcher;if(!s(t))return[];if(n=[],r(t))t.forEach(function(e){var t=e.v,r=e.i,c=e.n;if(s(t)){var o=a.searchIn(t),l=o.isMatch,d=o.score,u=o.indices;l&&n.push({score:d,key:i,value:t,idx:r,norm:c,indices:u})}});else{var n,c=t.v,l=t.n,o=a.searchIn(c),d=o.isMatch,u=o.score,h=o.indices;d&&n.push({score:u,key:i,value:c,norm:l,indices:h})}return n}}]),i}(),d.version="7.2.0",d.createIndex=L,d.parseIndex=function(t){var s=arguments.length>1&&0[0]!==arguments[1]?arguments[1]:{},o=s.getFn,a=0[0]===o?e.getFn:o,i=s.fieldNormWeight,r=0[0]===i?e.fieldNormWeight:i,c=t.keys,l=t.records,n=new v({getFn:a,fieldNormWeight:r});return n.setKeys(c),n.setIndexRecords(l),n},d.config=e,A(ne),d.use=function(){for(var t=arguments.length,n=new Array(t),e=0;e0?(n.forEach(function(e){var o,i,a=e.item.summary,s=document.createElement("div");s.innerHTML=a,e.item.summary=s.textContent||s.innerText||"",o=e.item.externalUrl?e.item.title+''+e.item.externalUrl+"":e.item.title,i=e.item.externalUrl?'target="_blank" rel="noopener" href="'+e.item.externalUrl+'"':'href="'+e.item.permalink+'"',t=t+`
  • ${o}
    ${e.item.section}·${e.item.date?e.item.date:""}
    ${e.item.summary}
  • `}),hasResults=!0):(t="",hasResults=!1),output.innerHTML=t,n.length>0&&(first=output.firstChild.firstElementChild,last=output.lastChild.firstElementChild)}document.getElementById("katex-render")&&document.getElementById("katex-render").addEventListener("load",()=>{renderMathInElement(document.body)}),function(){"use strict";var e=[];window.addEventListener("beforeprint",function(){for(var n=document.querySelectorAll("details:not([open])"),t=0;t{let t=atob(e.getAttribute("data-email"));const s=e.getAttribute("data-subject");let n=t.startsWith("mailto:")?t:"mailto:"+t;s&&(n+=(n.includes("?")?"&":"?")+"subject="+encodeURIComponent(s)),e.href=n})}()