1import"./index-DQ7N0lmW.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d6252239-162b-4918-996c-530f2814517b",e._sentryDebugIdIdentifier="sentry-dbid-d6252239-162b-4918-996c-530f2814517b")}catch{}const D=50,d=new Map,w=[{unit:"year",milliseconds:365*24*60*60*1e3},{unit:"month",milliseconds:720*60*60*1e3},{unit:"week",milliseconds:10080*60*1e3},{unit:"day",milliseconds:1440*60*1e3},{unit:"hour",milliseconds:3600*1e3},{unit:"minute",milliseconds:60*1e3}];function y(e){return typeof e=="string"?new Date(e):e}function T(e,t){const m=e.formatToParts(t);return m.filter((r,s)=>!(r.type==="literal"&&r.value.trim()===""&&m[s+1]?.type==="dayPeriod")).map(r=>r.value).join("")}function h(e){const t=y(e);return t instanceof Date?t.getTime():t}const u={date:{month:"short",day:"numeric",year:"numeric"},dateTime:{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"},longDate:{month:"long",day:"numeric",year:"numeric"},numericDate:{dateStyle:"short"},numericMonth:{month:"numeric"},shortDate:{month:"short",day:"numeric"},shortDateTime:{month:"short",day:"numeric",hour:"numeric",minute:"numeric"},shortDateWithWeekday:{weekday:"short",month:"short",day:"numeric"},shortDateWithFullWeekday:{weekday:"long",month:"short",day:"numeric"},dateWithFullWeekday:{weekday:"long",month:"short",day:"numeric",year:"numeric"},longMonthDay:{month:"long",day:"numeric"},longMonthDayTime:{month:"long",day:"numeric",hour:"numeric",minute:"numeric"},longMonthDayWithWeekday:{weekday:"short",month:"long",day:"numeric"},longMonthDayWithFullWeekday:{weekday:"long",month:"long",day:"numeric"},monthName:{month:"short"},longMonthName:{month:"long"},monthAndYear:{month:"short",year:"numeric"},longMonthAndYear:{month:"long",year:"numeric"},weekday:{weekday:"short"},fullWeekday:{weekday:"long"},dayOfMonth:{day:"numeric"},year:{year:"numeric"},time:{hour:"numeric",minute:"numeric"}},E=Object.keys(u),I="en";function k({locale:e,timeZone:t}){const m=Object.fromEntries(Object.entries(u).map(([o,n])=>[o,new Intl.DateTimeFormat(e,{...n,timeZone:t})])),r=new Intl.RelativeTimeFormat(e,{numeric:"auto"}),s=new Intl.DateTimeFormat(e,{timeZone:t,timeZoneName:"short"}),l=new Map,g=(o,n)=>{if(!n?.twoDigitHour&&!n?.twoDigitDay)return m[o];const i=`${o}:${n.twoDigitHour?"h":""}${n.twoDigitDay?"d":""}`,a=l.get(i);if(a)return a;const c={...u[o]};n.twoDigitHour&&c.hour&&(c.hour="2-digit"),n.twoDigitDay&&c.day&&(c.day="2-digit");const f=new Intl.DateTimeFormat(e,{...c,timeZone:t});return l.set(i,f),f};return{...Object.fromEntries(Object.keys(u).map(o=>[o,(n,i)=>{const a=g(o,i);return i?.tightDayPeriod?T(a,new Date(h(n))):a.format(y(n))}])),timeZoneName:o=>s.formatToParts(y(o)).find(n=>n.type==="timeZoneName")?.value??"",relative:(o,n=Date.now())=>{const i=h(o)-h(n),a=w.find(({milliseconds:c})=>Math.abs(i)>=c);return a?r.format(Math.round(i/a.milliseconds),a.unit):r.format(Math.round(i/1e3),"second")}}}function F(e){const t=`${e.locale}:${e.timeZone}`,m=d.get(t);if(m)return m;const r=k(e);if(d.size>=D){const s=d.keys().next().value;s&&d.delete(s)}return d.set(t,r),r}export{I as D,E as S,F as g};
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.