PageSourceSearch

https://trumpethelms.com/_astro/hoisted.c7e621b0.js

js trumpethelms.com collected 2026-09-29 07:10:47 UTC 7,465 bytes, 1 lines download raw bytes

1const q=()=>{document.getElementById("MobileMenu")?.classList.toggle("hidden")};document.addEventListener("astro:page-load",t=>{const e=document.getElementById("MobileMenuButton");e&&e.addEventListener("click",q)});const H=t=>history.state&&history.replaceState(t,""),b=!!document.startViewTransition,g=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),v=t=>location.pathname===t.pathname&&location.search===t.search,S=t=>document.dispatchEvent(new Event(t)),x=()=>S("astro:page-load"),R=()=>{let t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.setAttribute("style","position:absolute;left:0;top:0;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap;width:1px;height:1px"),document.body.append(t),setTimeout(()=>{let e=document.title||document.querySelector("h1")?.textContent||location.pathname;t.textContent=e},60)},h="data-astro-transition-persist";let A,p=0;history.state?(p=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):g()&&history.replaceState({index:p,scrollX,scrollY,intraPage:!1},"");const $=(t,e)=>{let n=!1,s=!1;return(...a)=>{if(n){s=!0;return}t(...a),n=!0,setTimeout(()=>{s&&(s=!1,t(...a)),n=!1},e)}};async function I(t){try{const e=await fetch(t),n=e.headers.get("content-type")?.replace(/;.*$/,"");return n!=="text/html"&&n!=="application/xhtml+xml"?null:{html:await e.text(),redirected:e.redirected?e.url:void 0,mediaType:n}}catch{return null}}function k(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function M(){for(const t of document.scripts)t.dataset.astroExec=""}function F(){let t=Promise.resolve();for(const e of Array.from(document.scripts)){if(e.dataset.astroExec==="")continue;const n=document.createElement("script");n.innerHTML=e.innerHTML;for(const s of e.attributes){if(s.name==="src"){const a=new Promise(u=>{n.onload=u});t=t.then(()=>a)}n.setAttribute(s.name,s.value)}n.dataset.astroExec="",e.replaceWith(n)}return t}function X(t){const e=t.effect;return!e||!(e instanceof KeyframeEffect)||!e.target?!1:window.getComputedStyle(e.target,e.pseudoElement).animationIterationCount==="infinite"}const P=(t,e,n)=>{const s=!v(t);let a=!1;t.href!==location.href&&(e?history.replaceState({...history.state},"",t.href):(history.replaceState({...history.state,intraPage:n},""),history.pushState({index:++p,scrollX:0,scrollY:0},"",t.href)),s&&(scrollTo({left:0,top:0,behavior:"instant"}),a=!0)),t.hash?location.href=t.href:a||scrollTo({left:0,top:0,behavior:"instant"})};async function T(t,e,n,s,a){const u=r=>{const i=r.getAttribute(h),l=i&&t.head.querySelector(`[${h}="${i}"]`);if(l)return l;if(r.matches("link[rel=stylesheet]")){const f=r.getAttribute("href");return t.head.querySelector(`link[rel=stylesheet][href="${f}"]`)}return null},d=()=>{const r=document.activeElement;if(r?.closest("[data-astro-transition-persist]")){if(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement){const i=r.selectionStart,l=r.selectionEnd;return{activeElement:r,start:i,end:l}}return{activeElement:r}}else return{activeElement:null}},m=({activeElement:r,start:i,end:l})=>{r&&(r.focus(),(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)&&(r.selectionStart=i,r.selectionEnd=l))},y=()=>{const r=document.documentElement,i=[...r.attributes].filter(({name:o})=>(r.removeAttribute(o),o.startsWith("data-astro-")));[...t.documentElement.attributes,...i].forEach(({name:o,value:c})=>r.setAttribute(o,c));for(const o of document.scripts)for(const c of t.scripts)if(!o.src&&o.textContent===c.textContent||o.src&&o.type===c.type&&o.src===c.src){c.dataset.astroExec="";break}for(const o of Array.from(document.head.children)){const c=u(o);c?c.remove():o.remove()}document.head.append(...t.head.children);const l=document.body,f=d();document.body.replaceWith(t.body);for(const o of l.querySelectorAll(`[${h}]`)){const c=o.getAttribute(h),w=document.querySelector(`[${h}="${c}"]`);w&&w.replaceWith(o)}m(f),s?scrollTo(s.scrollX,s.scrollY):P(e,n.history==="replace",!1),S("astro:after-swap")},E=[];for(const r of t.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${h}="${r.getAttribute(h)}"], link[rel=stylesheet][href="${r.getAttribute("href")}"]`)){const i=document.createElement("link");i.setAttribute("rel","preload"),i.setAttribute("as","style"),i.setAttribute("href",r.getAttribute("href")),E.push(new Promise(l=>{["load","error"].forEach(f=>i.addEventListener(f,l)),document.head.append(i)}))}if(E.length&&await Promise.all(E),a==="animate"){const r=document.getAnimations();document.documentElement.dataset.astroTransitionFallback="old";const i=document.getAnimations().filter(o=>!r.includes(o)&&!X(o)),l=Promise.all(i.map(o=>o.finished)),f=()=>{y(),document.documentElement.dataset.astroTransitionFallback="new"};await l,f()}else y()}async function L(t,e,n,s){let a;const u=e.href,d=await I(u);if(d===null){location.href=u;return}d.redirected&&(e=new URL(d.redirected)),A??=new DOMParser;const m=A.parseFromString(d.html,d.mediaType);if(m.querySelectorAll("noscript").forEach(y=>y.remove()),!m.querySelector('[name="astro-view-transitions-enabled"]')){location.href=u;return}s||history.replaceState({...history.state,scrollX,scrollY},""),document.documentElement.dataset.astroTransition=t,b?a=document.startViewTransition(()=>T(m,e,n,s)).finished:a=T(m,e,n,s,k());try{await a}finally{await F(),M(),x(),R()}}function Y(t,e){if(!g()){location.href=t;return}const n=new URL(t,location.href);location.origin===n.origin&&v(n)?P(n,e?.history==="replace",!0):L("forward",n,e??{})}function C(t){if(!g()&&t.state){history.scrollRestoration&&(history.scrollRestoration="manual"),location.reload();return}if(t.state===null){history.scrollRestoration&&(history.scrollRestoration="auto");return}history.scrollRestoration&&(history.scrollRestoration="manual");const e=history.state;if(e.intraPage)scrollTo(e.scrollX,e.scrollY);else{const n=e.index,s=n>p?"forward":"back";p=n,L(s,new URL(location.href),{},e)}}if(b||k()!=="none"){addEventListener("popstate",C),addEventListener("load",x);const t=()=>{H({...history.state,scrollX,scrollY})};"onscrollend"in window?addEventListener("scrollend",t):addEventListener("scroll",$(t,300)),M()}function B(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}function K(t){if(document.querySelector(`link[rel=prefetch][href="${t}"]`))return;if(navigator.connection){let n=navigator.connection;if(n.saveData||/(2|3)g/.test(n.effectiveType||""))return}
1let e=document.createElement("link");e.setAttribute("rel","prefetch"),e.setAttribute("href",t),document.head.append(e)}(b||B()!=="none")&&(document.addEventListener("click",t=>{let e=t.target;e instanceof Element&&e.tagName!=="A"&&(e=e.closest("a")),!(!e||!(e instanceof HTMLAnchorElement)||e.dataset.astroReload!==void 0||e.hasAttribute("download")||!e.href||e.target&&e.target!=="_self"||e.origin!==location.origin||t.button!==0||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented)&&(t.preventDefault(),Y(e.href,{history:e.dataset.astroHistory==="replace"?"replace":"auto"}))}),["mouseenter","touchstart","focus"].forEach(t=>{document.addEventListener(t,e=>{if(e.target instanceof HTMLAnchorElement){let n=e.target;n.origin===location.origin&&n.pathname!==location.pathname&&g()&&K(n.pathname)}},{passive:!0,capture:!0})}));

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.