PageSourceSearch

https://birdinginvermont.com/static/js/466.b03a69a1.chunk.js

js birdinginvermont.com collected 2026-10-04 16:46:10 UTC 2,851 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkbirdinginvermont||=[]).push([[466],{9466(t,e,i){var a=i(6171),n=(i(6578),i(3536)),s=i(6178),o=i(5766),r=i(8874),d=i(1881),u=i(2015);const f=()=>Promise.all([i.e(382),i.e(966)]).then(()=>i(4966)),c=["ID","Country","State/Province","Region","Latitude","Longitude","Name","Last visited","Species","Checklists"];const l={csvToJsonHotspots:async function(t){let e=await(await f()).readText(t.input);e=e.split(/\r?\n/),e.unshift(c.join(",")),e=e.join("\n").trim();const i=o.parse(e,{header:!0}).data.map(t=>{const e={};return c.forEach(i=>{var a;e[i]=null!==(a=t[i])&&void 0!==a?a:""}),e});await(await f()).writeFile("data/hotspots.json",JSON.stringify(i)),await(await f()).writeFile("data/novisits-hotspots.json",JSON.stringify(i.filter(t=>!t["Last visited"])));const a=i.map(t=>t.Name).join("\n");await(await f()).writeFile("data/hotspotsList.md",a)},unbirdedHotspots:async function(t){let e;t.state||(t.state="Vermont"),t.input&&(e=await r.bQ(t.input,{keepSpuh:!0}));let i=await(await f()).readJSON("data/hotspots.json");if(t.currentYear){const t=s().year();i=i.filter(e=>{if(e["Last visited"]){return!(s(e["Last visited"],d.qn(e["Last visited"])).format("YYYY")===t.toString())}return!0})}if(t.sinceYear){const e=t.sinceYear;i=i.filter(t=>{if(t["Last visited"]){return!(s(t["Last visited"],d.qn(t["Last visited"])).format("YYYY")>e)}return!0})}return e&&(i=i.filter(t=>!e.find(e=>e["Location ID"]===t.ID))),i.sort((t,e)=>{if(t["Last visited"]&&e["Last visited"]){return s(t["Last visited"]).diff(s(e["Last visited"]))}return t["Last visited"]?1:e["Last visited"]?-1:0})},townHotspots:async function(t){t.state||(t.state="Vermont");let e=u._Q(a.map(t=>({...t,County:r.Jg[Number(t.Region.split("US-VT-")[1])]})),t);return t.noVisits?e.filter(t=>!t["Last visited"]):(t.town&&!t.all&&(e=e.filter(e=>e.Town===t.town.toUpperCase())),e)},weeksYouveBirdedAtHotspot:async function(t){if(!t.id)throw new Error("Get the ID for this location first, manually. Send it as --id.");const e=await r.bQ(t.input,{keepSpuh:!0}),i=[],o=Array.from({length:52},(t,e)=>e+1);e.filter(e=>e["Location ID"]===t.id).forEach(t=>{const e=Math.min(s(t.Date).week(),52);-1===i.indexOf(e)&&i.push(e)});const d=n.difference(o,i.sort((t,e)=>Number(t)-Number(e))),u=a.find(e=>e.ID===t.id),f={id:t.id,name:u&&u.Name,unbirdedWeeks:d,nextWeek:void 0,nextWeekStart:void 0};if(d.length){let t=s().weekYear(),e=d.find(t=>t>s().week());e||(e=d[0],t+=1),f.nextWeek=e,f.nextWeekStart=s().year(t).startOf("year").week(e).startOf("week").format("YYYY-MM-DD")}return f},hotspotsForTown:async function(t){const e=await(await f()).readJSON("data/hotspots.json");return u._Q(e.map(t=>(void 0===t.Latitude&&(t.Latitude=t.lat),void 0===t.Longitude&&(t.Longitude=t.lng),t.State="Vermont",t)),t)}};i.d(e,["default",0,l])}}]);
2//# sourceMappingURL=466.b03a69a1.chunk.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.