PageSourceSearch

https://www.bostonindicators.org/dist/scripts/search-header-865a97d6.js

js bostonindicators.org collected 2026-10-02 05:09:42 UTC 2,133 bytes, 2 lines download raw bytes

1import{C as u}from"./vendor-01ee06e3.js";const a=(e,t,i)=>{const n=new Date;n.setTime(n.getTime()+i*24*60*60*1e3);const o=`expires=${n.toUTCString()}`;document.cookie=`${e}=${t};${o};path=/`},s=e=>{const t=`${e}=`,n=decodeURIComponent(document.cookie).split(";");for(let o=0;o<n.length;o++){let r=n[o];for(;r.charAt(0)===" ";)r=r.substring(1);if(r.indexOf(t)===0)return r.substring(t.length,r.length)}};function d(e){return String.fromCharCode(e<10?e+48:e<36?e+87:e+29)}const l=e=>{let i="xx-xx-4x-1p-".replace(/[x]/g,()=>d(Math.random()*36|0));for(let o=0;o<5;o++)i+=("0000"+(Math.random()*1679615|0).toString(36)).slice(-4);let n=e;return n+="-"+i+"-"+Date.now(),n},p=async()=>{let e;try{return e=s("currentIp"),e||(e=(await(await fetch("https://api.ipify.org?format=json")).json()).ip,a("currentIp",e,1),e)}catch(t){console.error("Error:",t)}return e},c=()=>{let e=s("__ruid");return e||(e=l("242495364"),a("__ruid",e,1),e)},g=async()=>({page:{uri:window.location.pathname},user:{cuid:c()},geo:{ip:await p()},browser:{user_agent:navigator.userAgent},locale:{language:"en",country:"us"}}),h=async(e,t)=>({name:"entity_page",action:"view",uuid:c(),client_time_ms:Date.now(),value:{context:await g(),entities:t,rfk_id:e}}),m=async e=>await fetch("https://discover.sitecorecloud.io/event/63296762-242495364/v4/publish",{method:"POST",headers:{Authorization:"01-72ba0ed0-1cffd67943e2b831f72d43242686d9412ff1efb3","Content-type":"application/json; charset=UTF-8"},body:JSON.stringify(e)});class w extends u{setupDefaults(){this.dom={input:this.el.querySelector('[name="Keyword"]')},this.triggerPageView()}addListeners(){this.el.addEventListener("submit",this.onSubmit.bind(this))}async triggerPageView(){const{sourceId:t="872980",rkfId:i="rfkid_7"}=this.el.dataset,{title:n}=document,o=`${window.location.origin}${window.location.pathname}`.replaceAll("/","_").replaceAll(".","_").replaceAll(":","_");await m(await h(i,[{entity_type:"content",id:o,source_id:t,title:n}]))}onSubmit(t){t.preventDefault(),window.location.href=`/search?q=${this.dom.input.value}`}}export{w as default};
2//# sourceMappingURL=search-header-865a97d6.js.map

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.