@jnrs/shared 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/date-fns.cjs +11 -0
- package/dist/date-fns.cjs.map +1 -0
- package/dist/date-fns.d.ts +2 -0
- package/dist/date-fns.d.ts.map +1 -0
- package/dist/date-fns.js +2 -0
- package/dist/date-fns.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lodash.d.ts +5 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.cjs +10 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js +8 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.cjs +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js +12 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.cjs +35 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js +33 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.cjs +55 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js +50 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.cjs +57 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.js +52 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs +13 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +11 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs +67 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +65 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs +62 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +60 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs +25 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +23 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.cjs +201 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.js +199 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.cjs +45 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.js +43 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.cjs +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.cjs +196 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.js +194 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.cjs +139 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.js +137 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.cjs +37 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/de.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs +106 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +104 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs +192 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js +190 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.cjs +137 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js +135 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.cjs +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js +29 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.cjs +106 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.js +104 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.cjs +30 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.js +28 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.cjs +169 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.js +167 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.cjs +143 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.js +141 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.cjs +37 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/es.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs +105 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +103 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.cjs +170 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +168 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.cjs +138 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +136 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.cjs +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +29 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs +120 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.js +118 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs +17 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.js +15 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.cjs +182 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.js +180 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.cjs +123 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.js +121 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.cjs +37 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ja.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs +106 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.js +104 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs +16 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.js +14 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.cjs +172 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.js +170 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.cjs +120 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.js +118 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.cjs +35 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js +30 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ko.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs +251 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.js +249 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.cjs +41 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js +39 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs +93 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js +91 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.cjs +215 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.js +213 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.cjs +143 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.js +141 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.cjs +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.js +29 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/ru.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.cjs +106 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +104 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.cjs +44 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js +42 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.cjs +36 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js +34 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.cjs +188 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.js +186 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/localize.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.cjs +135 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.js +133 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN/_lib/match.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.cjs +37 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.js +32 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/zh-CN.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.cjs +59 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js +54 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.cjs +52 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.cjs.map +1 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js +47 -0
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js.map +1 -0
- package/dist/utils/date.cjs +16 -9
- package/dist/utils/date.cjs.map +1 -1
- package/dist/utils/date.d.ts +10 -12
- package/dist/utils/date.js +8 -1
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/fullscreen.d.ts +2 -3
- package/dist/uuid.d.ts +3 -1
- package/package.json +7 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const formatDistanceLocale = {
|
|
4
|
+
lessThanXSeconds: {
|
|
5
|
+
one: "less than a second",
|
|
6
|
+
other: "less than {{count}} seconds",
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
xSeconds: {
|
|
10
|
+
one: "1 second",
|
|
11
|
+
other: "{{count}} seconds",
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
halfAMinute: "half a minute",
|
|
15
|
+
|
|
16
|
+
lessThanXMinutes: {
|
|
17
|
+
one: "less than a minute",
|
|
18
|
+
other: "less than {{count}} minutes",
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
xMinutes: {
|
|
22
|
+
one: "1 minute",
|
|
23
|
+
other: "{{count}} minutes",
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
aboutXHours: {
|
|
27
|
+
one: "about 1 hour",
|
|
28
|
+
other: "about {{count}} hours",
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
xHours: {
|
|
32
|
+
one: "1 hour",
|
|
33
|
+
other: "{{count}} hours",
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
xDays: {
|
|
37
|
+
one: "1 day",
|
|
38
|
+
other: "{{count}} days",
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
aboutXWeeks: {
|
|
42
|
+
one: "about 1 week",
|
|
43
|
+
other: "about {{count}} weeks",
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
xWeeks: {
|
|
47
|
+
one: "1 week",
|
|
48
|
+
other: "{{count}} weeks",
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
aboutXMonths: {
|
|
52
|
+
one: "about 1 month",
|
|
53
|
+
other: "about {{count}} months",
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
xMonths: {
|
|
57
|
+
one: "1 month",
|
|
58
|
+
other: "{{count}} months",
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
aboutXYears: {
|
|
62
|
+
one: "about 1 year",
|
|
63
|
+
other: "about {{count}} years",
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
xYears: {
|
|
67
|
+
one: "1 year",
|
|
68
|
+
other: "{{count}} years",
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
overXYears: {
|
|
72
|
+
one: "over 1 year",
|
|
73
|
+
other: "over {{count}} years",
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
almostXYears: {
|
|
77
|
+
one: "almost 1 year",
|
|
78
|
+
other: "almost {{count}} years",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const formatDistance = (token, count, options) => {
|
|
83
|
+
let result;
|
|
84
|
+
|
|
85
|
+
const tokenValue = formatDistanceLocale[token];
|
|
86
|
+
if (typeof tokenValue === "string") {
|
|
87
|
+
result = tokenValue;
|
|
88
|
+
} else if (count === 1) {
|
|
89
|
+
result = tokenValue.one;
|
|
90
|
+
} else {
|
|
91
|
+
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (options?.addSuffix) {
|
|
95
|
+
if (options.comparison && options.comparison > 0) {
|
|
96
|
+
return "in " + result;
|
|
97
|
+
} else {
|
|
98
|
+
return result + " ago";
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return result;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
exports.formatDistance = formatDistance;
|
|
106
|
+
//# sourceMappingURL=formatDistance.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatDistance.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js"],"sourcesContent":["const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return result + \" ago\";\n }\n }\n\n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+
one: "less than a second",
|
|
4
|
+
other: "less than {{count}} seconds",
|
|
5
|
+
},
|
|
6
|
+
|
|
7
|
+
xSeconds: {
|
|
8
|
+
one: "1 second",
|
|
9
|
+
other: "{{count}} seconds",
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
halfAMinute: "half a minute",
|
|
13
|
+
|
|
14
|
+
lessThanXMinutes: {
|
|
15
|
+
one: "less than a minute",
|
|
16
|
+
other: "less than {{count}} minutes",
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
xMinutes: {
|
|
20
|
+
one: "1 minute",
|
|
21
|
+
other: "{{count}} minutes",
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
aboutXHours: {
|
|
25
|
+
one: "about 1 hour",
|
|
26
|
+
other: "about {{count}} hours",
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
xHours: {
|
|
30
|
+
one: "1 hour",
|
|
31
|
+
other: "{{count}} hours",
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
xDays: {
|
|
35
|
+
one: "1 day",
|
|
36
|
+
other: "{{count}} days",
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
aboutXWeeks: {
|
|
40
|
+
one: "about 1 week",
|
|
41
|
+
other: "about {{count}} weeks",
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
xWeeks: {
|
|
45
|
+
one: "1 week",
|
|
46
|
+
other: "{{count}} weeks",
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
aboutXMonths: {
|
|
50
|
+
one: "about 1 month",
|
|
51
|
+
other: "about {{count}} months",
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
xMonths: {
|
|
55
|
+
one: "1 month",
|
|
56
|
+
other: "{{count}} months",
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
aboutXYears: {
|
|
60
|
+
one: "about 1 year",
|
|
61
|
+
other: "about {{count}} years",
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
xYears: {
|
|
65
|
+
one: "1 year",
|
|
66
|
+
other: "{{count}} years",
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
overXYears: {
|
|
70
|
+
one: "over 1 year",
|
|
71
|
+
other: "over {{count}} years",
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
almostXYears: {
|
|
75
|
+
one: "almost 1 year",
|
|
76
|
+
other: "almost {{count}} years",
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const formatDistance = (token, count, options) => {
|
|
81
|
+
let result;
|
|
82
|
+
|
|
83
|
+
const tokenValue = formatDistanceLocale[token];
|
|
84
|
+
if (typeof tokenValue === "string") {
|
|
85
|
+
result = tokenValue;
|
|
86
|
+
} else if (count === 1) {
|
|
87
|
+
result = tokenValue.one;
|
|
88
|
+
} else {
|
|
89
|
+
result = tokenValue.other.replace("{{count}}", count.toString());
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (options?.addSuffix) {
|
|
93
|
+
if (options.comparison && options.comparison > 0) {
|
|
94
|
+
return "in " + result;
|
|
95
|
+
} else {
|
|
96
|
+
return result + " ago";
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return result;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export { formatDistance };
|
|
104
|
+
//# sourceMappingURL=formatDistance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatDistance.js","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js"],"sourcesContent":["const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return result + \" ago\";\n }\n }\n\n return result;\n};\n"],"names":[],"mappings":"AAAA,MAAM,oBAAoB,GAAG;AAC7B,EAAE,gBAAgB,EAAE;AACpB,IAAI,GAAG,EAAE,oBAAoB;AAC7B,IAAI,KAAK,EAAE,6BAA6B;AACxC,GAAG;;AAEH,EAAE,QAAQ,EAAE;AACZ,IAAI,GAAG,EAAE,UAAU;AACnB,IAAI,KAAK,EAAE,mBAAmB;AAC9B,GAAG;;AAEH,EAAE,WAAW,EAAE,eAAe;;AAE9B,EAAE,gBAAgB,EAAE;AACpB,IAAI,GAAG,EAAE,oBAAoB;AAC7B,IAAI,KAAK,EAAE,6BAA6B;AACxC,GAAG;;AAEH,EAAE,QAAQ,EAAE;A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EAAE,OAAO,KAAK;AACzD,EAAE,IAAI,MAAM;;AAEZ,EAAE,MAAM,UAAU,GAAG,oBAAoB,CAAC,KAAK,CAAC;AAChD,EAAE,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;AACtC,IAAI,MAAM,GAAG,UAAU;AACvB,EAAE,CAAC,MAAM,IAAI,KAAK,KAAK,CAAC,EAAE;AAC1B,IAAI,MAAM,GAAG,UAAU,CAAC,GAAG;AAC3B,EAAE,CAAC,MAAM;AACT,IAAI,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;AACpE,EAAE;;AAEF,EAAE,IAAI,OAAO,EAAE,SAAS,EAAE;AAC1B,IAAI,IAAI,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,GAAG,CAAC,EAAE;AACtD,MAAM,OAAO,KAAK,GAAG,MAAM;AAC3B,IAAI,CAAC,MAAM;AACX,MAAM,OAAO,MAAM,GAAG,MAAM;AAC5B,IAAI;AACJ,EAAE;;AAEF,EAAE,OAAO,MAAM;AACf;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var buildFormatLongFn = require('../../_lib/buildFormatLongFn.cjs');
|
|
4
|
+
|
|
5
|
+
const dateFormats = {
|
|
6
|
+
full: "EEEE, MMMM do, y",
|
|
7
|
+
long: "MMMM do, y",
|
|
8
|
+
medium: "MMM d, y",
|
|
9
|
+
short: "MM/dd/yyyy",
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const timeFormats = {
|
|
13
|
+
full: "h:mm:ss a zzzz",
|
|
14
|
+
long: "h:mm:ss a z",
|
|
15
|
+
medium: "h:mm:ss a",
|
|
16
|
+
short: "h:mm a",
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const dateTimeFormats = {
|
|
20
|
+
full: "{{date}} 'at' {{time}}",
|
|
21
|
+
long: "{{date}} 'at' {{time}}",
|
|
22
|
+
medium: "{{date}}, {{time}}",
|
|
23
|
+
short: "{{date}}, {{time}}",
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const formatLong = {
|
|
27
|
+
date: buildFormatLongFn.buildFormatLongFn({
|
|
28
|
+
formats: dateFormats,
|
|
29
|
+
defaultWidth: "full",
|
|
30
|
+
}),
|
|
31
|
+
|
|
32
|
+
time: buildFormatLongFn.buildFormatLongFn({
|
|
33
|
+
formats: timeFormats,
|
|
34
|
+
defaultWidth: "full",
|
|
35
|
+
}),
|
|
36
|
+
|
|
37
|
+
dateTime: buildFormatLongFn.buildFormatLongFn({
|
|
38
|
+
formats: dateTimeFormats,
|
|
39
|
+
defaultWidth: "full",
|
|
40
|
+
}),
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
exports.formatLong = formatLong;
|
|
44
|
+
//# sourceMappingURL=formatLong.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatLong.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js"],"sourcesContent":["import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, MMMM do, y\",\n long: \"MMMM do, y\",\n medium: \"MMM d, y\",\n short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n"],"names":["buildFormatLongFn"],"mappings":";;;;AAEA,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,kBAAkB;AAC1B,EAAE,IAAI,EAAE,YAAY;AACpB,EAAE,MAAM,EAAE,UAAU;AACpB,EAAE,KAAK,EAAE,YAAY;AACrB,CAAC;;AAED,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,IAAI,EAAE,aAAa;AACrB,EAAE,MAAM,EAAE,WAAW;AACrB,EAAE,KAAK,EAAE,QAAQ;AACjB,CAAC;;AAED,MAAM,eAAe,GAAG;AACxB,EAAE,IAAI,EAAE,wBAAwB;AAChC,EAAE,IAAI,EAAE,wBAAwB;AAChC,EAAE,MAAM,EAAE,oBAAoB;AAC9B,EAAE,KAAK,EAAE,oBAAoB;AAC7B,CAAC;;AAEW,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAEA,mCAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,IAAI,EAAEA,mCAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,QAAQ,EAAEA,mCAAiB,CAAC;AAC9B,IAAI,OAAO,EAAE,eAAe;AAC5B,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { buildFormatLongFn } from '../../_lib/buildFormatLongFn.js';
|
|
2
|
+
|
|
3
|
+
const dateFormats = {
|
|
4
|
+
full: "EEEE, MMMM do, y",
|
|
5
|
+
long: "MMMM do, y",
|
|
6
|
+
medium: "MMM d, y",
|
|
7
|
+
short: "MM/dd/yyyy",
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const timeFormats = {
|
|
11
|
+
full: "h:mm:ss a zzzz",
|
|
12
|
+
long: "h:mm:ss a z",
|
|
13
|
+
medium: "h:mm:ss a",
|
|
14
|
+
short: "h:mm a",
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const dateTimeFormats = {
|
|
18
|
+
full: "{{date}} 'at' {{time}}",
|
|
19
|
+
long: "{{date}} 'at' {{time}}",
|
|
20
|
+
medium: "{{date}}, {{time}}",
|
|
21
|
+
short: "{{date}}, {{time}}",
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const formatLong = {
|
|
25
|
+
date: buildFormatLongFn({
|
|
26
|
+
formats: dateFormats,
|
|
27
|
+
defaultWidth: "full",
|
|
28
|
+
}),
|
|
29
|
+
|
|
30
|
+
time: buildFormatLongFn({
|
|
31
|
+
formats: timeFormats,
|
|
32
|
+
defaultWidth: "full",
|
|
33
|
+
}),
|
|
34
|
+
|
|
35
|
+
dateTime: buildFormatLongFn({
|
|
36
|
+
formats: dateTimeFormats,
|
|
37
|
+
defaultWidth: "full",
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { formatLong };
|
|
42
|
+
//# sourceMappingURL=formatLong.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatLong.js","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js"],"sourcesContent":["import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, MMMM do, y\",\n long: \"MMMM do, y\",\n medium: \"MMM d, y\",\n short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n"],"names":[],"mappings":";;AAEA,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,kBAAkB;AAC1B,EAAE,IAAI,EAAE,YAAY;AACpB,EAAE,MAAM,EAAE,UAAU;AACpB,EAAE,KAAK,EAAE,YAAY;AACrB,CAAC;;AAED,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,gBAAgB;AACxB,EAAE,IAAI,EAAE,aAAa;AACrB,EAAE,MAAM,EAAE,WAAW;AACrB,EAAE,KAAK,EAAE,QAAQ;AACjB,CAAC;;AAED,MAAM,eAAe,GAAG;AACxB,EAAE,IAAI,EAAE,wBAAwB;AAChC,EAAE,IAAI,EAAE,wBAAwB;AAChC,EAAE,MAAM,EAAE,oBAAoB;AAC9B,EAAE,KAAK,EAAE,oBAAoB;AAC7B,CAAC;;AAEW,MAAC,UAAU,GAAG;AAC1B,EAAE,IAAI,EAAE,iBAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,IAAI,EAAE,iBAAiB,CAAC;AAC1B,IAAI,OAAO,EAAE,WAAW;AACxB,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;;AAEJ,EAAE,QAAQ,EAAE,iBAAiB,CAAC;AAC9B,IAAI,OAAO,EAAE,eAAe;AAC5B,IAAI,YAAY,EAAE,MAAM;AACxB,GAAG,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const formatRelativeLocale = {
|
|
4
|
+
lastWeek: "'last' eeee 'at' p",
|
|
5
|
+
yesterday: "'yesterday at' p",
|
|
6
|
+
today: "'today at' p",
|
|
7
|
+
tomorrow: "'tomorrow at' p",
|
|
8
|
+
nextWeek: "eeee 'at' p",
|
|
9
|
+
other: "P",
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const formatRelative = (token, _date, _baseDate, _options) =>
|
|
13
|
+
formatRelativeLocale[token];
|
|
14
|
+
|
|
15
|
+
exports.formatRelative = formatRelative;
|
|
16
|
+
//# sourceMappingURL=formatRelative.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatRelative.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js"],"sourcesContent":["const formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n"],"names":[],"mappings":";;AAAA,MAAM,oBAAoB,GAAG;AAC7B,EAAE,QAAQ,EAAE,oBAAoB;AAChC,EAAE,SAAS,EAAE,kBAAkB;AAC/B,EAAE,KAAK,EAAE,cAAc;AACvB,EAAE,QAAQ,EAAE,iBAAiB;AAC7B,EAAE,QAAQ,EAAE,aAAa;AACzB,EAAE,KAAK,EAAE,GAAG;AACZ,CAAC;;AAEW,MAAC,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ;AAChE,EAAE,oBAAoB,CAAC,KAAK;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const formatRelativeLocale = {
|
|
2
|
+
lastWeek: "'last' eeee 'at' p",
|
|
3
|
+
yesterday: "'yesterday at' p",
|
|
4
|
+
today: "'today at' p",
|
|
5
|
+
tomorrow: "'tomorrow at' p",
|
|
6
|
+
nextWeek: "eeee 'at' p",
|
|
7
|
+
other: "P",
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const formatRelative = (token, _date, _baseDate, _options) =>
|
|
11
|
+
formatRelativeLocale[token];
|
|
12
|
+
|
|
13
|
+
export { formatRelative };
|
|
14
|
+
//# sourceMappingURL=formatRelative.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatRelative.js","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js"],"sourcesContent":["const formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n"],"names":[],"mappings":"AAAA,MAAM,oBAAoB,GAAG;AAC7B,EAAE,QAAQ,EAAE,oBAAoB;AAChC,EAAE,SAAS,EAAE,kBAAkB;AAC/B,EAAE,KAAK,EAAE,cAAc;AACvB,EAAE,QAAQ,EAAE,iBAAiB;AAC7B,EAAE,QAAQ,EAAE,aAAa;AACzB,EAAE,KAAK,EAAE,GAAG;AACZ,CAAC;;AAEW,MAAC,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ;AAChE,EAAE,oBAAoB,CAAC,KAAK;;;;","x_google_ignoreList":[0]}
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.cjs
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var buildLocalizeFn = require('../../_lib/buildLocalizeFn.cjs');
|
|
4
|
+
|
|
5
|
+
const eraValues = {
|
|
6
|
+
narrow: ["B", "A"],
|
|
7
|
+
abbreviated: ["BC", "AD"],
|
|
8
|
+
wide: ["Before Christ", "Anno Domini"],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const quarterValues = {
|
|
12
|
+
narrow: ["1", "2", "3", "4"],
|
|
13
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
14
|
+
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"],
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// Note: in English, the names of days of the week and months are capitalized.
|
|
18
|
+
// If you are making a new locale based on this one, check if the same is true for the language you're working on.
|
|
19
|
+
// Generally, formatted dates should look like they are in the middle of a sentence,
|
|
20
|
+
// e.g. in Spanish language the weekdays and months should be in the lowercase.
|
|
21
|
+
const monthValues = {
|
|
22
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
23
|
+
abbreviated: [
|
|
24
|
+
"Jan",
|
|
25
|
+
"Feb",
|
|
26
|
+
"Mar",
|
|
27
|
+
"Apr",
|
|
28
|
+
"May",
|
|
29
|
+
"Jun",
|
|
30
|
+
"Jul",
|
|
31
|
+
"Aug",
|
|
32
|
+
"Sep",
|
|
33
|
+
"Oct",
|
|
34
|
+
"Nov",
|
|
35
|
+
"Dec",
|
|
36
|
+
],
|
|
37
|
+
|
|
38
|
+
wide: [
|
|
39
|
+
"January",
|
|
40
|
+
"February",
|
|
41
|
+
"March",
|
|
42
|
+
"April",
|
|
43
|
+
"May",
|
|
44
|
+
"June",
|
|
45
|
+
"July",
|
|
46
|
+
"August",
|
|
47
|
+
"September",
|
|
48
|
+
"October",
|
|
49
|
+
"November",
|
|
50
|
+
"December",
|
|
51
|
+
],
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const dayValues = {
|
|
55
|
+
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
56
|
+
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
57
|
+
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
58
|
+
wide: [
|
|
59
|
+
"Sunday",
|
|
60
|
+
"Monday",
|
|
61
|
+
"Tuesday",
|
|
62
|
+
"Wednesday",
|
|
63
|
+
"Thursday",
|
|
64
|
+
"Friday",
|
|
65
|
+
"Saturday",
|
|
66
|
+
],
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const dayPeriodValues = {
|
|
70
|
+
narrow: {
|
|
71
|
+
am: "a",
|
|
72
|
+
pm: "p",
|
|
73
|
+
midnight: "mi",
|
|
74
|
+
noon: "n",
|
|
75
|
+
morning: "morning",
|
|
76
|
+
afternoon: "afternoon",
|
|
77
|
+
evening: "evening",
|
|
78
|
+
night: "night",
|
|
79
|
+
},
|
|
80
|
+
abbreviated: {
|
|
81
|
+
am: "AM",
|
|
82
|
+
pm: "PM",
|
|
83
|
+
midnight: "midnight",
|
|
84
|
+
noon: "noon",
|
|
85
|
+
morning: "morning",
|
|
86
|
+
afternoon: "afternoon",
|
|
87
|
+
evening: "evening",
|
|
88
|
+
night: "night",
|
|
89
|
+
},
|
|
90
|
+
wide: {
|
|
91
|
+
am: "a.m.",
|
|
92
|
+
pm: "p.m.",
|
|
93
|
+
midnight: "midnight",
|
|
94
|
+
noon: "noon",
|
|
95
|
+
morning: "morning",
|
|
96
|
+
afternoon: "afternoon",
|
|
97
|
+
evening: "evening",
|
|
98
|
+
night: "night",
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const formattingDayPeriodValues = {
|
|
103
|
+
narrow: {
|
|
104
|
+
am: "a",
|
|
105
|
+
pm: "p",
|
|
106
|
+
midnight: "mi",
|
|
107
|
+
noon: "n",
|
|
108
|
+
morning: "in the morning",
|
|
109
|
+
afternoon: "in the afternoon",
|
|
110
|
+
evening: "in the evening",
|
|
111
|
+
night: "at night",
|
|
112
|
+
},
|
|
113
|
+
abbreviated: {
|
|
114
|
+
am: "AM",
|
|
115
|
+
pm: "PM",
|
|
116
|
+
midnight: "midnight",
|
|
117
|
+
noon: "noon",
|
|
118
|
+
morning: "in the morning",
|
|
119
|
+
afternoon: "in the afternoon",
|
|
120
|
+
evening: "in the evening",
|
|
121
|
+
night: "at night",
|
|
122
|
+
},
|
|
123
|
+
wide: {
|
|
124
|
+
am: "a.m.",
|
|
125
|
+
pm: "p.m.",
|
|
126
|
+
midnight: "midnight",
|
|
127
|
+
noon: "noon",
|
|
128
|
+
morning: "in the morning",
|
|
129
|
+
afternoon: "in the afternoon",
|
|
130
|
+
evening: "in the evening",
|
|
131
|
+
night: "at night",
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const ordinalNumber = (dirtyNumber, _options) => {
|
|
136
|
+
const number = Number(dirtyNumber);
|
|
137
|
+
|
|
138
|
+
// If ordinal numbers depend on context, for example,
|
|
139
|
+
// if they are different for different grammatical genders,
|
|
140
|
+
// use `options.unit`.
|
|
141
|
+
//
|
|
142
|
+
// `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
|
|
143
|
+
// 'day', 'hour', 'minute', 'second'.
|
|
144
|
+
|
|
145
|
+
const rem100 = number % 100;
|
|
146
|
+
if (rem100 > 20 || rem100 < 10) {
|
|
147
|
+
switch (rem100 % 10) {
|
|
148
|
+
case 1:
|
|
149
|
+
return number + "st";
|
|
150
|
+
case 2:
|
|
151
|
+
return number + "nd";
|
|
152
|
+
case 3:
|
|
153
|
+
return number + "rd";
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return number + "th";
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const localize = {
|
|
160
|
+
ordinalNumber,
|
|
161
|
+
|
|
162
|
+
era: buildLocalizeFn.buildLocalizeFn({
|
|
163
|
+
values: eraValues,
|
|
164
|
+
defaultWidth: "wide",
|
|
165
|
+
}),
|
|
166
|
+
|
|
167
|
+
quarter: buildLocalizeFn.buildLocalizeFn({
|
|
168
|
+
values: quarterValues,
|
|
169
|
+
defaultWidth: "wide",
|
|
170
|
+
argumentCallback: (quarter) => quarter - 1,
|
|
171
|
+
}),
|
|
172
|
+
|
|
173
|
+
month: buildLocalizeFn.buildLocalizeFn({
|
|
174
|
+
values: monthValues,
|
|
175
|
+
defaultWidth: "wide",
|
|
176
|
+
}),
|
|
177
|
+
|
|
178
|
+
day: buildLocalizeFn.buildLocalizeFn({
|
|
179
|
+
values: dayValues,
|
|
180
|
+
defaultWidth: "wide",
|
|
181
|
+
}),
|
|
182
|
+
|
|
183
|
+
dayPeriod: buildLocalizeFn.buildLocalizeFn({
|
|
184
|
+
values: dayPeriodValues,
|
|
185
|
+
defaultWidth: "wide",
|
|
186
|
+
formattingValues: formattingDayPeriodValues,
|
|
187
|
+
defaultFormattingWidth: "wide",
|
|
188
|
+
}),
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
exports.localize = localize;
|
|
192
|
+
//# sourceMappingURL=localize.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localize.cjs","sources":["../../../../../../../../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js"],"sourcesContent":["import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.js\";\n\nconst eraValues = {\n narrow: [\"B\", \"A\"],\n abbreviated: [\"BC\", \"AD\"],\n wide: [\"Before Christ\", \"Anno Domini\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n wide: [\"1st quarter\", \"2nd quarter\", \"3rd quarter\", \"4th quarter\"],\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n ],\n\n wide: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"],\n short: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n abbreviated: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n wide: [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n const rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + \"st\";\n case 2:\n return number + \"nd\";\n case 3:\n return number + \"rd\";\n }\n }\n return number + \"th\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n"],"names":["buildLocalizeFn"],"mappings":";;;;AAEA,MAAM,SAAS,GAAG;AAClB,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;AACpB,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;AAC3B,EAAE,IAAI,EAAE,CAAC,eAAe,EAAE,aAAa,CAAC;AACxC,CAAC;;AAED,MAAM,aAAa,GAAG;AACtB,EAAE,MAAM,EAAE,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