import{t as e}from"../../shared/js/rolldown-runtime.WmLfqUcM.js";import{i as t}from"./buildMatchPatternFn.mmBdnLkI.js";import{n,r,t as i}from"./match.5uIOEli3.js";var a=e((e=>{e.formatDistance=void 0;var t={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`a second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`a minute`,other:`{{count}} minutes`},aboutXHours:{one:`about an hour`,other:`about {{count}} hours`},xHours:{one:`an hour`,other:`{{count}} hours`},xDays:{one:`a day`,other:`{{count}} days`},aboutXWeeks:{one:`about a week`,other:`about {{count}} weeks`},xWeeks:{one:`a week`,other:`{{count}} weeks`},aboutXMonths:{one:`about a month`,other:`about {{count}} months`},xMonths:{one:`a month`,other:`{{count}} months`},aboutXYears:{one:`about a year`,other:`about {{count}} years`},xYears:{one:`a year`,other:`{{count}} years`},overXYears:{one:`over a year`,other:`over {{count}} years`},almostXYears:{one:`almost a year`,other:`almost {{count}} years`}};e.formatDistance=(e,n,r)=>{let i,a=t[e];return i=typeof a==`string`?a:n===1?a.one:a.other.replace(`{{count}}`,n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?`in `+i:i+` ago`:i}})),o=e((e=>{e.formatLong=void 0;var n=t();e.formatLong={date:(0,n.buildFormatLongFn)({formats:{full:`EEEE, MMMM do, yyyy`,long:`MMMM do, yyyy`,medium:`MMM d, yyyy`,short:`yyyy-MM-dd`},defaultWidth:`full`}),time:(0,n.buildFormatLongFn)({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:(0,n.buildFormatLongFn)({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})}})),s=e((e=>{e.enCA=void 0;var t=r(),s=n(),c=i(),l=a(),u=o();e.enCA={code:`en-CA`,formatDistance:l.formatDistance,formatLong:u.formatLong,formatRelative:t.formatRelative,localize:s.localize,match:c.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}}));export default s();