@gobrand/tiempo 2.9.0 → 2.10.0

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.
Files changed (340) hide show
  1. package/dist/addDays.js +3 -3
  2. package/dist/addHours.js +3 -3
  3. package/dist/addMicroseconds.js +3 -3
  4. package/dist/addMilliseconds.js +3 -3
  5. package/dist/addMinutes.js +3 -3
  6. package/dist/addMonths.js +3 -3
  7. package/dist/addNanoseconds.js +3 -3
  8. package/dist/addQuarters.d.ts +29 -0
  9. package/dist/addQuarters.d.ts.map +1 -0
  10. package/dist/addQuarters.js +9 -0
  11. package/dist/addQuarters.js.map +1 -0
  12. package/dist/addQuarters.test.d.ts +2 -0
  13. package/dist/addQuarters.test.d.ts.map +1 -0
  14. package/dist/addSeconds.js +3 -3
  15. package/dist/addWeeks.js +3 -3
  16. package/dist/addYears.js +3 -3
  17. package/dist/{chunk-DGRZ6HO3.js → chunk-2E4KCD3Y.js} +2 -2
  18. package/dist/{chunk-7XVPK2AV.js → chunk-2EFJSF2R.js} +2 -2
  19. package/dist/{chunk-I3RXBZP5.js → chunk-3LTTYG6N.js} +2 -2
  20. package/dist/{chunk-PBT2OZJH.js → chunk-4PGGOVSG.js} +2 -2
  21. package/dist/{chunk-GVZOCS7O.js → chunk-567DXBLA.js} +3 -3
  22. package/dist/{chunk-SFXJV5ZT.js → chunk-5CFWMIHL.js} +2 -2
  23. package/dist/{chunk-DTZPE5PM.js → chunk-6RETOV6A.js} +3 -3
  24. package/dist/chunk-6UBZ5YB3.js +43 -0
  25. package/dist/chunk-6UBZ5YB3.js.map +1 -0
  26. package/dist/{chunk-DHJ353HR.js → chunk-6UMISP3B.js} +2 -2
  27. package/dist/{chunk-5HVHKQTJ.js → chunk-6YU6BQOZ.js} +2 -2
  28. package/dist/{chunk-W6RF44CV.js → chunk-7HUJC5M6.js} +4 -4
  29. package/dist/{chunk-FEUIZJOV.js → chunk-7K5BJ6F7.js} +3 -3
  30. package/dist/{chunk-4ZRJ3EHQ.js → chunk-A42NID5P.js} +4 -4
  31. package/dist/{chunk-SZATPYBI.js → chunk-BEGD73DT.js} +3 -3
  32. package/dist/{chunk-CP4JNCMO.js → chunk-BTXU3OGV.js} +2 -2
  33. package/dist/{chunk-LLN2SKGE.js → chunk-CCVPCHUO.js} +4 -4
  34. package/dist/{chunk-HHPXUFZP.js → chunk-CIA46DWB.js} +2 -2
  35. package/dist/{chunk-L2CNUS43.js → chunk-CSOSM46M.js} +2 -2
  36. package/dist/{chunk-FIX6LQG5.js → chunk-DBVGH55Z.js} +2 -2
  37. package/dist/{chunk-QPGTY5DD.js → chunk-DCCHY45G.js} +2 -2
  38. package/dist/{chunk-NKWGZIOJ.js → chunk-DCFRBZBY.js} +3 -3
  39. package/dist/{chunk-DJRIH2PX.js → chunk-DHFBKOFZ.js} +2 -2
  40. package/dist/{chunk-WLW622M7.js → chunk-DMFV2AL7.js} +11 -11
  41. package/dist/{chunk-ZBEEQUE4.js → chunk-EBVLBLR3.js} +2 -2
  42. package/dist/{chunk-SWDOKPVX.js → chunk-ELUSLRWQ.js} +2 -2
  43. package/dist/{chunk-JVB5IARQ.js → chunk-EMZFQEWM.js} +2 -2
  44. package/dist/{chunk-ESTLMF2X.js → chunk-EU3SYJHM.js} +2 -2
  45. package/dist/{chunk-BIH6JETG.js → chunk-EVEMK2K2.js} +2 -2
  46. package/dist/{chunk-KONRPZXK.js → chunk-FCJO72WG.js} +2 -2
  47. package/dist/chunk-FYZNOTX3.js +18 -0
  48. package/dist/chunk-FYZNOTX3.js.map +1 -0
  49. package/dist/{chunk-G4COVQ5S.js → chunk-G2U5WGRP.js} +2 -2
  50. package/dist/{chunk-PEGMMWZU.js → chunk-H5BHFVEN.js} +2 -2
  51. package/dist/{chunk-KKMM6HYC.js → chunk-IAXVREU5.js} +2 -2
  52. package/dist/{chunk-XRZUPSUB.js → chunk-IONQ6TOR.js} +2 -2
  53. package/dist/{chunk-DN3V4IZC.js → chunk-JBM7DESQ.js} +2 -2
  54. package/dist/{chunk-QRLTVRYC.js → chunk-JK4WDDWU.js} +3 -3
  55. package/dist/{chunk-OZYC3TAR.js → chunk-JQFD563S.js} +2 -2
  56. package/dist/{chunk-WNPPRDN3.js → chunk-KGO3G2QB.js} +3 -3
  57. package/dist/{chunk-ADAN2I34.js → chunk-KN45BU3W.js} +4 -4
  58. package/dist/{chunk-LYPSZYIG.js → chunk-L5AMAEWX.js} +2 -2
  59. package/dist/{chunk-RTANLM3L.js → chunk-LAITZAIG.js} +2 -2
  60. package/dist/{chunk-AAORAX74.js → chunk-LODULPI3.js} +2 -2
  61. package/dist/{chunk-C5HDCIRV.js → chunk-LSKER4FN.js} +2 -2
  62. package/dist/{chunk-SY2S6MMZ.js → chunk-M4KDJ4I4.js} +2 -2
  63. package/dist/{chunk-T6ONGPRF.js → chunk-M7Y67IAB.js} +2 -2
  64. package/dist/{chunk-ZKGR3F4F.js → chunk-MDXN3WMH.js} +2 -2
  65. package/dist/{chunk-RSY3BI3P.js → chunk-MENMDB6M.js} +2 -2
  66. package/dist/{chunk-TIEAKS3O.js → chunk-MM2HIW7M.js} +3 -3
  67. package/dist/{chunk-JXBC2VU2.js → chunk-MNV2H4N6.js} +2 -2
  68. package/dist/{chunk-SHDXBQ7E.js → chunk-NEHYVVTH.js} +2 -2
  69. package/dist/chunk-NOV3D7OM.js +17 -0
  70. package/dist/chunk-NOV3D7OM.js.map +1 -0
  71. package/dist/{chunk-F6EWMA4K.js → chunk-NTMT5XGC.js} +2 -2
  72. package/dist/{chunk-QHQACJEU.js → chunk-NX7MXLFS.js} +2 -2
  73. package/dist/{chunk-VVV5BNLP.js → chunk-OFIPZPEA.js} +2 -2
  74. package/dist/{chunk-7LZPFGGV.js → chunk-OKXCGA4Y.js} +2 -2
  75. package/dist/{chunk-GEMTHX5S.js → chunk-OLLX6YCN.js} +2 -2
  76. package/dist/{chunk-PWPACA4G.js → chunk-OQNFKOPA.js} +2 -2
  77. package/dist/{chunk-NT7VDFLO.js → chunk-PURKYS5T.js} +2 -2
  78. package/dist/{chunk-46EP6MO2.js → chunk-PVOGE6ME.js} +4 -4
  79. package/dist/{chunk-SQJTTKEI.js → chunk-PWIEPZVO.js} +2 -2
  80. package/dist/{chunk-LGLV7RIC.js → chunk-PX2I4GCF.js} +2 -2
  81. package/dist/{chunk-7NQ76UHP.js → chunk-PYALKKWZ.js} +4 -4
  82. package/dist/{chunk-VOZTLX5F.js → chunk-R7ZCA6AQ.js} +4 -2
  83. package/dist/chunk-R7ZCA6AQ.js.map +1 -0
  84. package/dist/{chunk-QVXCG625.js → chunk-RKEZOXD3.js} +2 -2
  85. package/dist/{chunk-U7ZWIAB3.js → chunk-RL2NW7HP.js} +2 -2
  86. package/dist/{chunk-3QC5YINX.js → chunk-RLVCSGRU.js} +2 -2
  87. package/dist/{chunk-MHXSUAPE.js → chunk-RXTGHEHQ.js} +2 -2
  88. package/dist/{chunk-IPWSPA4H.js → chunk-SCD2JNY3.js} +2 -2
  89. package/dist/{chunk-OKPTY2ZQ.js → chunk-SDJJP4HW.js} +4 -4
  90. package/dist/{chunk-TDZ3XUH7.js → chunk-SDW4W3XE.js} +2 -2
  91. package/dist/chunk-SPK7C7RP.js +25 -0
  92. package/dist/chunk-SPK7C7RP.js.map +1 -0
  93. package/dist/{chunk-OPACRBGV.js → chunk-T5WSO6US.js} +2 -2
  94. package/dist/{chunk-GS3J5YVW.js → chunk-TGINH5JV.js} +2 -2
  95. package/dist/{chunk-SRXD4AGD.js → chunk-TQUKIG26.js} +2 -2
  96. package/dist/{chunk-SDCVBRJP.js → chunk-URC6AG2N.js} +2 -2
  97. package/dist/{chunk-2J434XZJ.js → chunk-UTN7ZKL4.js} +3 -3
  98. package/dist/{chunk-XONITURH.js → chunk-UXMNCRG7.js} +2 -2
  99. package/dist/{chunk-RUJC6FOA.js → chunk-VC7RTDJP.js} +2 -2
  100. package/dist/{chunk-R7MM4BDS.js → chunk-VCWP3CZE.js} +4 -4
  101. package/dist/{chunk-3WWRI3NR.js → chunk-VKXN4FQD.js} +2 -2
  102. package/dist/{chunk-OGNREZPA.js → chunk-VQPIPLHX.js} +2 -2
  103. package/dist/{chunk-QGXK664C.js → chunk-VS2VCQLP.js} +2 -2
  104. package/dist/chunk-VUKOSQWW.js +14 -0
  105. package/dist/chunk-VUKOSQWW.js.map +1 -0
  106. package/dist/chunk-W5YDBBNF.js +13 -0
  107. package/dist/chunk-W5YDBBNF.js.map +1 -0
  108. package/dist/{chunk-DOGZ2WBH.js → chunk-WGLZHBJG.js} +2 -2
  109. package/dist/{chunk-76RCTVBW.js → chunk-WTLAKRCT.js} +2 -2
  110. package/dist/{chunk-ERCE3YCO.js → chunk-X3ARINEH.js} +2 -2
  111. package/dist/chunk-XMW72PNW.js +21 -0
  112. package/dist/chunk-XMW72PNW.js.map +1 -0
  113. package/dist/chunk-XS2HUADA.js +13 -0
  114. package/dist/chunk-XS2HUADA.js.map +1 -0
  115. package/dist/{chunk-ZSRCVDZ2.js → chunk-XWBOD6MD.js} +2 -2
  116. package/dist/{chunk-ZFXBHDFB.js → chunk-YOSCEJ36.js} +2 -2
  117. package/dist/chunk-ZEL6JBBH.js +14 -0
  118. package/dist/chunk-ZEL6JBBH.js.map +1 -0
  119. package/dist/{chunk-BOGN7JC3.js → chunk-ZG4ROOWI.js} +2 -2
  120. package/dist/{chunk-Z2LOTP6T.js → chunk-ZGWLIISB.js} +3 -3
  121. package/dist/{chunk-Y4HT4LCB.js → chunk-ZOHYNJUD.js} +4 -4
  122. package/dist/{chunk-WJOGQ6IB.js → chunk-ZYU3P74L.js} +2 -2
  123. package/dist/differenceInDays.js +3 -3
  124. package/dist/differenceInHours.js +3 -3
  125. package/dist/differenceInMicroseconds.js +3 -3
  126. package/dist/differenceInMilliseconds.js +3 -3
  127. package/dist/differenceInMinutes.js +3 -3
  128. package/dist/differenceInMonths.js +3 -3
  129. package/dist/differenceInNanoseconds.js +3 -3
  130. package/dist/differenceInQuarters.d.ts +37 -0
  131. package/dist/differenceInQuarters.d.ts.map +1 -0
  132. package/dist/differenceInQuarters.js +10 -0
  133. package/dist/differenceInQuarters.js.map +1 -0
  134. package/dist/differenceInQuarters.test.d.ts +2 -0
  135. package/dist/differenceInQuarters.test.d.ts.map +1 -0
  136. package/dist/differenceInSeconds.js +3 -3
  137. package/dist/differenceInWeeks.js +3 -3
  138. package/dist/differenceInYears.js +3 -3
  139. package/dist/eachDayOfInterval.js +3 -3
  140. package/dist/eachHourOfInterval.js +3 -3
  141. package/dist/eachMinuteOfInterval.js +3 -3
  142. package/dist/eachMonthOfInterval.js +3 -3
  143. package/dist/eachQuarterOfInterval.d.ts +47 -0
  144. package/dist/eachQuarterOfInterval.d.ts.map +1 -0
  145. package/dist/eachQuarterOfInterval.js +10 -0
  146. package/dist/eachQuarterOfInterval.js.map +1 -0
  147. package/dist/eachQuarterOfInterval.test.d.ts +2 -0
  148. package/dist/eachQuarterOfInterval.test.d.ts.map +1 -0
  149. package/dist/eachWeekOfInterval.js +3 -3
  150. package/dist/eachYearOfInterval.js +3 -3
  151. package/dist/endOfDay.js +5 -5
  152. package/dist/endOfMonth.js +5 -5
  153. package/dist/endOfQuarter.d.ts +38 -0
  154. package/dist/endOfQuarter.d.ts.map +1 -0
  155. package/dist/endOfQuarter.js +13 -0
  156. package/dist/endOfQuarter.js.map +1 -0
  157. package/dist/endOfQuarter.test.d.ts +2 -0
  158. package/dist/endOfQuarter.test.d.ts.map +1 -0
  159. package/dist/endOfWeek.js +4 -4
  160. package/dist/endOfYear.js +5 -5
  161. package/dist/format.js +3 -3
  162. package/dist/formatPlainDate.js +1 -1
  163. package/dist/getQuarter.d.ts +38 -0
  164. package/dist/getQuarter.d.ts.map +1 -0
  165. package/dist/getQuarter.js +12 -0
  166. package/dist/getQuarter.js.map +1 -0
  167. package/dist/getQuarter.test.d.ts +2 -0
  168. package/dist/getQuarter.test.d.ts.map +1 -0
  169. package/dist/index.d.ts +92 -84
  170. package/dist/index.d.ts.map +1 -1
  171. package/dist/index.js +149 -116
  172. package/dist/intlFormatDistance.js +10 -10
  173. package/dist/isAfter.js +4 -4
  174. package/dist/isBefore.js +4 -4
  175. package/dist/isFuture.js +5 -5
  176. package/dist/isPast.js +5 -5
  177. package/dist/isPlainDateAfter.js +2 -2
  178. package/dist/isPlainDateBefore.js +2 -2
  179. package/dist/isPlainDateEqual.js +2 -2
  180. package/dist/isPlainTimeAfter.js +2 -2
  181. package/dist/isPlainTimeBefore.js +2 -2
  182. package/dist/isPlainTimeEqual.js +2 -2
  183. package/dist/isSameDay.js +3 -3
  184. package/dist/isSameHour.js +3 -3
  185. package/dist/isSameMicrosecond.js +3 -3
  186. package/dist/isSameMillisecond.js +3 -3
  187. package/dist/isSameMinute.js +3 -3
  188. package/dist/isSameMonth.js +3 -3
  189. package/dist/isSameNanosecond.js +3 -3
  190. package/dist/isSameQuarter.d.ts +43 -0
  191. package/dist/isSameQuarter.d.ts.map +1 -0
  192. package/dist/isSameQuarter.js +10 -0
  193. package/dist/isSameQuarter.js.map +1 -0
  194. package/dist/isSameQuarter.test.d.ts +2 -0
  195. package/dist/isSameQuarter.test.d.ts.map +1 -0
  196. package/dist/isSameSecond.js +3 -3
  197. package/dist/isSameWeek.js +3 -3
  198. package/dist/isSameYear.js +3 -3
  199. package/dist/isWithinInterval.js +5 -5
  200. package/dist/now.js +2 -2
  201. package/dist/roundToNearestHour.js +3 -3
  202. package/dist/roundToNearestMinute.js +3 -3
  203. package/dist/roundToNearestSecond.js +3 -3
  204. package/dist/shared/differenceInMilliseconds.js +1 -1
  205. package/dist/shared/isAfter.js +2 -2
  206. package/dist/shared/isBefore.js +2 -2
  207. package/dist/shared/normalizeTemporalInput.js +2 -2
  208. package/dist/shared/normalizeWithPlainDate.js +4 -4
  209. package/dist/shared/nowZoned.js +3 -3
  210. package/dist/shared/plainDateToZonedDateTime.js +2 -2
  211. package/dist/shared/quarter.d.ts +12 -0
  212. package/dist/shared/quarter.d.ts.map +1 -0
  213. package/dist/shared/quarter.js +9 -0
  214. package/dist/shared/quarter.js.map +1 -0
  215. package/dist/shared/temporal.d.ts +17 -31
  216. package/dist/shared/temporal.d.ts.map +1 -1
  217. package/dist/shared/temporal.js +1 -1
  218. package/dist/simpleFormat.js +2 -2
  219. package/dist/startOfDay.js +5 -5
  220. package/dist/startOfMonth.js +5 -5
  221. package/dist/startOfQuarter.d.ts +38 -0
  222. package/dist/startOfQuarter.d.ts.map +1 -0
  223. package/dist/startOfQuarter.js +12 -0
  224. package/dist/startOfQuarter.js.map +1 -0
  225. package/dist/startOfQuarter.test.d.ts +2 -0
  226. package/dist/startOfQuarter.test.d.ts.map +1 -0
  227. package/dist/startOfWeek.js +4 -4
  228. package/dist/startOfYear.js +5 -5
  229. package/dist/subDays.js +4 -4
  230. package/dist/subHours.js +4 -4
  231. package/dist/subMicroseconds.js +4 -4
  232. package/dist/subMilliseconds.js +4 -4
  233. package/dist/subMinutes.js +4 -4
  234. package/dist/subMonths.js +4 -4
  235. package/dist/subNanoseconds.js +4 -4
  236. package/dist/subQuarters.d.ts +20 -0
  237. package/dist/subQuarters.d.ts.map +1 -0
  238. package/dist/subQuarters.js +10 -0
  239. package/dist/subQuarters.js.map +1 -0
  240. package/dist/subQuarters.test.d.ts +2 -0
  241. package/dist/subQuarters.test.d.ts.map +1 -0
  242. package/dist/subSeconds.js +4 -4
  243. package/dist/subWeeks.js +4 -4
  244. package/dist/subYears.js +4 -4
  245. package/dist/toDate.js +2 -2
  246. package/dist/toIso.js +2 -2
  247. package/dist/toIso9075.js +2 -2
  248. package/dist/toPlainDate.js +2 -2
  249. package/dist/toPlainTime.js +2 -2
  250. package/dist/toUtc.js +2 -2
  251. package/dist/toZonedTime.js +2 -2
  252. package/dist/today.js +2 -2
  253. package/package.json +1 -1
  254. package/dist/chunk-VOZTLX5F.js.map +0 -1
  255. /package/dist/{chunk-DGRZ6HO3.js.map → chunk-2E4KCD3Y.js.map} +0 -0
  256. /package/dist/{chunk-7XVPK2AV.js.map → chunk-2EFJSF2R.js.map} +0 -0
  257. /package/dist/{chunk-I3RXBZP5.js.map → chunk-3LTTYG6N.js.map} +0 -0
  258. /package/dist/{chunk-PBT2OZJH.js.map → chunk-4PGGOVSG.js.map} +0 -0
  259. /package/dist/{chunk-GVZOCS7O.js.map → chunk-567DXBLA.js.map} +0 -0
  260. /package/dist/{chunk-SFXJV5ZT.js.map → chunk-5CFWMIHL.js.map} +0 -0
  261. /package/dist/{chunk-DTZPE5PM.js.map → chunk-6RETOV6A.js.map} +0 -0
  262. /package/dist/{chunk-DHJ353HR.js.map → chunk-6UMISP3B.js.map} +0 -0
  263. /package/dist/{chunk-5HVHKQTJ.js.map → chunk-6YU6BQOZ.js.map} +0 -0
  264. /package/dist/{chunk-W6RF44CV.js.map → chunk-7HUJC5M6.js.map} +0 -0
  265. /package/dist/{chunk-FEUIZJOV.js.map → chunk-7K5BJ6F7.js.map} +0 -0
  266. /package/dist/{chunk-4ZRJ3EHQ.js.map → chunk-A42NID5P.js.map} +0 -0
  267. /package/dist/{chunk-SZATPYBI.js.map → chunk-BEGD73DT.js.map} +0 -0
  268. /package/dist/{chunk-CP4JNCMO.js.map → chunk-BTXU3OGV.js.map} +0 -0
  269. /package/dist/{chunk-LLN2SKGE.js.map → chunk-CCVPCHUO.js.map} +0 -0
  270. /package/dist/{chunk-HHPXUFZP.js.map → chunk-CIA46DWB.js.map} +0 -0
  271. /package/dist/{chunk-L2CNUS43.js.map → chunk-CSOSM46M.js.map} +0 -0
  272. /package/dist/{chunk-FIX6LQG5.js.map → chunk-DBVGH55Z.js.map} +0 -0
  273. /package/dist/{chunk-QPGTY5DD.js.map → chunk-DCCHY45G.js.map} +0 -0
  274. /package/dist/{chunk-NKWGZIOJ.js.map → chunk-DCFRBZBY.js.map} +0 -0
  275. /package/dist/{chunk-DJRIH2PX.js.map → chunk-DHFBKOFZ.js.map} +0 -0
  276. /package/dist/{chunk-WLW622M7.js.map → chunk-DMFV2AL7.js.map} +0 -0
  277. /package/dist/{chunk-ZBEEQUE4.js.map → chunk-EBVLBLR3.js.map} +0 -0
  278. /package/dist/{chunk-SWDOKPVX.js.map → chunk-ELUSLRWQ.js.map} +0 -0
  279. /package/dist/{chunk-JVB5IARQ.js.map → chunk-EMZFQEWM.js.map} +0 -0
  280. /package/dist/{chunk-ESTLMF2X.js.map → chunk-EU3SYJHM.js.map} +0 -0
  281. /package/dist/{chunk-BIH6JETG.js.map → chunk-EVEMK2K2.js.map} +0 -0
  282. /package/dist/{chunk-KONRPZXK.js.map → chunk-FCJO72WG.js.map} +0 -0
  283. /package/dist/{chunk-G4COVQ5S.js.map → chunk-G2U5WGRP.js.map} +0 -0
  284. /package/dist/{chunk-PEGMMWZU.js.map → chunk-H5BHFVEN.js.map} +0 -0
  285. /package/dist/{chunk-KKMM6HYC.js.map → chunk-IAXVREU5.js.map} +0 -0
  286. /package/dist/{chunk-XRZUPSUB.js.map → chunk-IONQ6TOR.js.map} +0 -0
  287. /package/dist/{chunk-DN3V4IZC.js.map → chunk-JBM7DESQ.js.map} +0 -0
  288. /package/dist/{chunk-QRLTVRYC.js.map → chunk-JK4WDDWU.js.map} +0 -0
  289. /package/dist/{chunk-OZYC3TAR.js.map → chunk-JQFD563S.js.map} +0 -0
  290. /package/dist/{chunk-WNPPRDN3.js.map → chunk-KGO3G2QB.js.map} +0 -0
  291. /package/dist/{chunk-ADAN2I34.js.map → chunk-KN45BU3W.js.map} +0 -0
  292. /package/dist/{chunk-LYPSZYIG.js.map → chunk-L5AMAEWX.js.map} +0 -0
  293. /package/dist/{chunk-RTANLM3L.js.map → chunk-LAITZAIG.js.map} +0 -0
  294. /package/dist/{chunk-AAORAX74.js.map → chunk-LODULPI3.js.map} +0 -0
  295. /package/dist/{chunk-C5HDCIRV.js.map → chunk-LSKER4FN.js.map} +0 -0
  296. /package/dist/{chunk-SY2S6MMZ.js.map → chunk-M4KDJ4I4.js.map} +0 -0
  297. /package/dist/{chunk-T6ONGPRF.js.map → chunk-M7Y67IAB.js.map} +0 -0
  298. /package/dist/{chunk-ZKGR3F4F.js.map → chunk-MDXN3WMH.js.map} +0 -0
  299. /package/dist/{chunk-RSY3BI3P.js.map → chunk-MENMDB6M.js.map} +0 -0
  300. /package/dist/{chunk-TIEAKS3O.js.map → chunk-MM2HIW7M.js.map} +0 -0
  301. /package/dist/{chunk-JXBC2VU2.js.map → chunk-MNV2H4N6.js.map} +0 -0
  302. /package/dist/{chunk-SHDXBQ7E.js.map → chunk-NEHYVVTH.js.map} +0 -0
  303. /package/dist/{chunk-F6EWMA4K.js.map → chunk-NTMT5XGC.js.map} +0 -0
  304. /package/dist/{chunk-QHQACJEU.js.map → chunk-NX7MXLFS.js.map} +0 -0
  305. /package/dist/{chunk-VVV5BNLP.js.map → chunk-OFIPZPEA.js.map} +0 -0
  306. /package/dist/{chunk-7LZPFGGV.js.map → chunk-OKXCGA4Y.js.map} +0 -0
  307. /package/dist/{chunk-GEMTHX5S.js.map → chunk-OLLX6YCN.js.map} +0 -0
  308. /package/dist/{chunk-PWPACA4G.js.map → chunk-OQNFKOPA.js.map} +0 -0
  309. /package/dist/{chunk-NT7VDFLO.js.map → chunk-PURKYS5T.js.map} +0 -0
  310. /package/dist/{chunk-46EP6MO2.js.map → chunk-PVOGE6ME.js.map} +0 -0
  311. /package/dist/{chunk-SQJTTKEI.js.map → chunk-PWIEPZVO.js.map} +0 -0
  312. /package/dist/{chunk-LGLV7RIC.js.map → chunk-PX2I4GCF.js.map} +0 -0
  313. /package/dist/{chunk-7NQ76UHP.js.map → chunk-PYALKKWZ.js.map} +0 -0
  314. /package/dist/{chunk-QVXCG625.js.map → chunk-RKEZOXD3.js.map} +0 -0
  315. /package/dist/{chunk-U7ZWIAB3.js.map → chunk-RL2NW7HP.js.map} +0 -0
  316. /package/dist/{chunk-3QC5YINX.js.map → chunk-RLVCSGRU.js.map} +0 -0
  317. /package/dist/{chunk-MHXSUAPE.js.map → chunk-RXTGHEHQ.js.map} +0 -0
  318. /package/dist/{chunk-IPWSPA4H.js.map → chunk-SCD2JNY3.js.map} +0 -0
  319. /package/dist/{chunk-OKPTY2ZQ.js.map → chunk-SDJJP4HW.js.map} +0 -0
  320. /package/dist/{chunk-TDZ3XUH7.js.map → chunk-SDW4W3XE.js.map} +0 -0
  321. /package/dist/{chunk-OPACRBGV.js.map → chunk-T5WSO6US.js.map} +0 -0
  322. /package/dist/{chunk-GS3J5YVW.js.map → chunk-TGINH5JV.js.map} +0 -0
  323. /package/dist/{chunk-SRXD4AGD.js.map → chunk-TQUKIG26.js.map} +0 -0
  324. /package/dist/{chunk-SDCVBRJP.js.map → chunk-URC6AG2N.js.map} +0 -0
  325. /package/dist/{chunk-2J434XZJ.js.map → chunk-UTN7ZKL4.js.map} +0 -0
  326. /package/dist/{chunk-XONITURH.js.map → chunk-UXMNCRG7.js.map} +0 -0
  327. /package/dist/{chunk-RUJC6FOA.js.map → chunk-VC7RTDJP.js.map} +0 -0
  328. /package/dist/{chunk-R7MM4BDS.js.map → chunk-VCWP3CZE.js.map} +0 -0
  329. /package/dist/{chunk-3WWRI3NR.js.map → chunk-VKXN4FQD.js.map} +0 -0
  330. /package/dist/{chunk-OGNREZPA.js.map → chunk-VQPIPLHX.js.map} +0 -0
  331. /package/dist/{chunk-QGXK664C.js.map → chunk-VS2VCQLP.js.map} +0 -0
  332. /package/dist/{chunk-DOGZ2WBH.js.map → chunk-WGLZHBJG.js.map} +0 -0
  333. /package/dist/{chunk-76RCTVBW.js.map → chunk-WTLAKRCT.js.map} +0 -0
  334. /package/dist/{chunk-ERCE3YCO.js.map → chunk-X3ARINEH.js.map} +0 -0
  335. /package/dist/{chunk-ZSRCVDZ2.js.map → chunk-XWBOD6MD.js.map} +0 -0
  336. /package/dist/{chunk-ZFXBHDFB.js.map → chunk-YOSCEJ36.js.map} +0 -0
  337. /package/dist/{chunk-BOGN7JC3.js.map → chunk-ZG4ROOWI.js.map} +0 -0
  338. /package/dist/{chunk-Z2LOTP6T.js.map → chunk-ZGWLIISB.js.map} +0 -0
  339. /package/dist/{chunk-Y4HT4LCB.js.map → chunk-ZOHYNJUD.js.map} +0 -0
  340. /package/dist/{chunk-WJOGQ6IB.js.map → chunk-ZYU3P74L.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
 
5
5
  // src/roundToNearestSecond.ts
6
6
  var MODE_TO_ROUNDING_MODE = {
@@ -22,4 +22,4 @@ function roundToNearestSecond(input, options) {
22
22
  export {
23
23
  roundToNearestSecond
24
24
  };
25
- //# sourceMappingURL=chunk-QVXCG625.js.map
25
+ //# sourceMappingURL=chunk-RKEZOXD3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isInstant
3
- } from "./chunk-VOZTLX5F.js";
3
+ } from "./chunk-R7ZCA6AQ.js";
4
4
 
5
5
  // src/toIso9075.ts
6
6
  function toIso9075(input, options = {}) {
@@ -30,4 +30,4 @@ function pad(n) {
30
30
  export {
31
31
  toIso9075
32
32
  };
33
- //# sourceMappingURL=chunk-U7ZWIAB3.js.map
33
+ //# sourceMappingURL=chunk-RL2NW7HP.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
 
5
5
  // src/isSameDay.ts
6
6
  function isSameDay(date1, date2) {
@@ -12,4 +12,4 @@ function isSameDay(date1, date2) {
12
12
  export {
13
13
  isSameDay
14
14
  };
15
- //# sourceMappingURL=chunk-3QC5YINX.js.map
15
+ //# sourceMappingURL=chunk-RLVCSGRU.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Temporal
3
- } from "./chunk-VOZTLX5F.js";
3
+ } from "./chunk-R7ZCA6AQ.js";
4
4
 
5
5
  // src/toUtc.ts
6
6
  function toUtc(input) {
@@ -19,4 +19,4 @@ function toUtc(input) {
19
19
  export {
20
20
  toUtc
21
21
  };
22
- //# sourceMappingURL=chunk-MHXSUAPE.js.map
22
+ //# sourceMappingURL=chunk-RXTGHEHQ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
 
5
5
  // src/isSameMonth.ts
6
6
  function isSameMonth(date1, date2) {
@@ -12,4 +12,4 @@ function isSameMonth(date1, date2) {
12
12
  export {
13
13
  isSameMonth
14
14
  };
15
- //# sourceMappingURL=chunk-IPWSPA4H.js.map
15
+ //# sourceMappingURL=chunk-SCD2JNY3.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  plainDateToZonedDateTime
3
- } from "./chunk-LYPSZYIG.js";
3
+ } from "./chunk-L5AMAEWX.js";
4
4
  import {
5
5
  normalizeTemporalInput
6
- } from "./chunk-F6EWMA4K.js";
6
+ } from "./chunk-NTMT5XGC.js";
7
7
  import {
8
8
  isPlainDate
9
- } from "./chunk-VOZTLX5F.js";
9
+ } from "./chunk-R7ZCA6AQ.js";
10
10
 
11
11
  // src/startOfWeek.ts
12
12
  function startOfWeek(input, timezone) {
@@ -20,4 +20,4 @@ function startOfWeek(input, timezone) {
20
20
  export {
21
21
  startOfWeek
22
22
  };
23
- //# sourceMappingURL=chunk-OKPTY2ZQ.js.map
23
+ //# sourceMappingURL=chunk-SDJJP4HW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
 
5
5
  // src/isSameMicrosecond.ts
6
6
  function isSameMicrosecond(date1, date2) {
@@ -12,4 +12,4 @@ function isSameMicrosecond(date1, date2) {
12
12
  export {
13
13
  isSameMicrosecond
14
14
  };
15
- //# sourceMappingURL=chunk-TDZ3XUH7.js.map
15
+ //# sourceMappingURL=chunk-SDW4W3XE.js.map
@@ -0,0 +1,25 @@
1
+ import {
2
+ quarterStartMonth
3
+ } from "./chunk-XS2HUADA.js";
4
+ import {
5
+ getEndOfDay
6
+ } from "./chunk-AVGNRINZ.js";
7
+ import {
8
+ normalizeWithPlainDate
9
+ } from "./chunk-ZOHYNJUD.js";
10
+
11
+ // src/endOfQuarter.ts
12
+ function endOfQuarter(input, timezone) {
13
+ const zonedDateTime = normalizeWithPlainDate(input, timezone);
14
+ const endMonth = zonedDateTime.with({
15
+ month: quarterStartMonth(zonedDateTime.month) + 2,
16
+ day: 1
17
+ });
18
+ const lastDay = endMonth.with({ day: endMonth.daysInMonth });
19
+ return getEndOfDay(lastDay);
20
+ }
21
+
22
+ export {
23
+ endOfQuarter
24
+ };
25
+ //# sourceMappingURL=chunk-SPK7C7RP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/endOfQuarter.ts"],"sourcesContent":["import { Temporal } from \"./shared/temporal\";\nimport type { Timezone } from \"./types\";\nimport { getEndOfDay } from \"./shared/endOfDay\";\nimport { normalizeWithPlainDate } from \"./shared/normalizeWithPlainDate\";\nimport { quarterStartMonth } from \"./shared/quarter\";\n\n/**\n * Returns a ZonedDateTime representing the last moment of the quarter\n * (last day of the quarter's ending month at 23:59:59.999999999).\n *\n * Quarters: Q1 = Jan–Mar, Q2 = Apr–Jun, Q3 = Jul–Sep, Q4 = Oct–Dec.\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @returns ZonedDateTime at the last day of the quarter at 23:59:59.999999999\n *\n * @example\n * ```ts\n * // From Instant (always UTC)\n * const instant = Temporal.Instant.from('2025-05-15T12:00:00Z');\n * const end = endOfQuarter(instant);\n * // 2025-06-30T23:59:59.999999999Z[UTC]\n * ```\n *\n * @example\n * ```ts\n * // From ZonedDateTime (uses its timezone)\n * const zoned = Temporal.ZonedDateTime.from('2025-02-15T15:30:00-05:00[America/New_York]');\n * const end = endOfQuarter(zoned);\n * // 2025-03-31T23:59:59.999999999-04:00[America/New_York]\n * ```\n *\n * @example\n * ```ts\n * // From PlainDate (requires timezone)\n * const date = Temporal.PlainDate.from('2025-11-15');\n * const end = endOfQuarter(date, 'America/New_York');\n * // 2025-12-31T23:59:59.999999999-05:00[America/New_York]\n * ```\n */\nexport function endOfQuarter(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n): Temporal.ZonedDateTime;\nexport function endOfQuarter(input: Temporal.PlainDate, timezone: Timezone): Temporal.ZonedDateTime;\nexport function endOfQuarter(\n input: Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate,\n timezone?: Timezone,\n): Temporal.ZonedDateTime {\n const zonedDateTime = normalizeWithPlainDate(input, timezone!);\n const endMonth = zonedDateTime.with({\n month: quarterStartMonth(zonedDateTime.month) + 2,\n day: 1,\n });\n const lastDay = endMonth.with({ day: endMonth.daysInMonth });\n return getEndOfDay(lastDay);\n}\n"],"mappings":";;;;;;;;;;;AA2CO,SAAS,aACd,OACA,UACwB;AACxB,QAAM,gBAAgB,uBAAuB,OAAO,QAAS;AAC7D,QAAM,WAAW,cAAc,KAAK;AAAA,IAClC,OAAO,kBAAkB,cAAc,KAAK,IAAI;AAAA,IAChD,KAAK;AAAA,EACP,CAAC;AACD,QAAM,UAAU,SAAS,KAAK,EAAE,KAAK,SAAS,YAAY,CAAC;AAC3D,SAAO,YAAY,OAAO;AAC5B;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
 
5
5
  // src/isSameMillisecond.ts
6
6
  function isSameMillisecond(date1, date2) {
@@ -12,4 +12,4 @@ function isSameMillisecond(date1, date2) {
12
12
  export {
13
13
  isSameMillisecond
14
14
  };
15
- //# sourceMappingURL=chunk-OPACRBGV.js.map
15
+ //# sourceMappingURL=chunk-T5WSO6US.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeWithPlainDate
3
- } from "./chunk-Y4HT4LCB.js";
3
+ } from "./chunk-ZOHYNJUD.js";
4
4
 
5
5
  // src/startOfYear.ts
6
6
  function startOfYear(input, timezone) {
@@ -12,4 +12,4 @@ function startOfYear(input, timezone) {
12
12
  export {
13
13
  startOfYear
14
14
  };
15
- //# sourceMappingURL=chunk-GS3J5YVW.js.map
15
+ //# sourceMappingURL=chunk-TGINH5JV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Temporal
3
- } from "./chunk-VOZTLX5F.js";
3
+ } from "./chunk-R7ZCA6AQ.js";
4
4
 
5
5
  // src/isPlainTimeAfter.ts
6
6
  function isPlainTimeAfter(time1, time2) {
@@ -10,4 +10,4 @@ function isPlainTimeAfter(time1, time2) {
10
10
  export {
11
11
  isPlainTimeAfter
12
12
  };
13
- //# sourceMappingURL=chunk-SRXD4AGD.js.map
13
+ //# sourceMappingURL=chunk-TQUKIG26.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  addMicroseconds
3
- } from "./chunk-KKMM6HYC.js";
3
+ } from "./chunk-IAXVREU5.js";
4
4
 
5
5
  // src/subMicroseconds.ts
6
6
  function subMicroseconds(input, microseconds) {
@@ -10,4 +10,4 @@ function subMicroseconds(input, microseconds) {
10
10
  export {
11
11
  subMicroseconds
12
12
  };
13
- //# sourceMappingURL=chunk-SDCVBRJP.js.map
13
+ //# sourceMappingURL=chunk-URC6AG2N.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
  import {
5
5
  Temporal
6
- } from "./chunk-VOZTLX5F.js";
6
+ } from "./chunk-R7ZCA6AQ.js";
7
7
 
8
8
  // src/eachWeekOfInterval.ts
9
9
  function eachWeekOfInterval(interval) {
@@ -27,4 +27,4 @@ function eachWeekOfInterval(interval) {
27
27
  export {
28
28
  eachWeekOfInterval
29
29
  };
30
- //# sourceMappingURL=chunk-2J434XZJ.js.map
30
+ //# sourceMappingURL=chunk-UTN7ZKL4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Temporal
3
- } from "./chunk-VOZTLX5F.js";
3
+ } from "./chunk-R7ZCA6AQ.js";
4
4
 
5
5
  // src/isPlainDateBefore.ts
6
6
  function isPlainDateBefore(date1, date2) {
@@ -10,4 +10,4 @@ function isPlainDateBefore(date1, date2) {
10
10
  export {
11
11
  isPlainDateBefore
12
12
  };
13
- //# sourceMappingURL=chunk-XONITURH.js.map
13
+ //# sourceMappingURL=chunk-UXMNCRG7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
 
5
5
  // src/differenceInNanoseconds.ts
6
6
  function differenceInNanoseconds(laterDate, earlierDate) {
@@ -12,4 +12,4 @@ function differenceInNanoseconds(laterDate, earlierDate) {
12
12
  export {
13
13
  differenceInNanoseconds
14
14
  };
15
- //# sourceMappingURL=chunk-RUJC6FOA.js.map
15
+ //# sourceMappingURL=chunk-VC7RTDJP.js.map
@@ -1,9 +1,9 @@
1
- import {
2
- normalizeWithPlainDate
3
- } from "./chunk-Y4HT4LCB.js";
4
1
  import {
5
2
  getEndOfDay
6
3
  } from "./chunk-AVGNRINZ.js";
4
+ import {
5
+ normalizeWithPlainDate
6
+ } from "./chunk-ZOHYNJUD.js";
7
7
 
8
8
  // src/endOfMonth.ts
9
9
  function endOfMonth(input, timezone) {
@@ -15,4 +15,4 @@ function endOfMonth(input, timezone) {
15
15
  export {
16
16
  endOfMonth
17
17
  };
18
- //# sourceMappingURL=chunk-R7MM4BDS.js.map
18
+ //# sourceMappingURL=chunk-VCWP3CZE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeWithPlainDate
3
- } from "./chunk-Y4HT4LCB.js";
3
+ } from "./chunk-ZOHYNJUD.js";
4
4
 
5
5
  // src/startOfDay.ts
6
6
  function startOfDay(input, timezone) {
@@ -11,4 +11,4 @@ function startOfDay(input, timezone) {
11
11
  export {
12
12
  startOfDay
13
13
  };
14
- //# sourceMappingURL=chunk-3WWRI3NR.js.map
14
+ //# sourceMappingURL=chunk-VKXN4FQD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
 
5
5
  // src/addMonths.ts
6
6
  function addMonths(input, months) {
@@ -11,4 +11,4 @@ function addMonths(input, months) {
11
11
  export {
12
12
  addMonths
13
13
  };
14
- //# sourceMappingURL=chunk-OGNREZPA.js.map
14
+ //# sourceMappingURL=chunk-VQPIPLHX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  addMilliseconds
3
- } from "./chunk-KONRPZXK.js";
3
+ } from "./chunk-FCJO72WG.js";
4
4
 
5
5
  // src/subMilliseconds.ts
6
6
  function subMilliseconds(input, milliseconds) {
@@ -10,4 +10,4 @@ function subMilliseconds(input, milliseconds) {
10
10
  export {
11
11
  subMilliseconds
12
12
  };
13
- //# sourceMappingURL=chunk-QGXK664C.js.map
13
+ //# sourceMappingURL=chunk-VS2VCQLP.js.map
@@ -0,0 +1,14 @@
1
+ import {
2
+ differenceInMonths
3
+ } from "./chunk-CIA46DWB.js";
4
+
5
+ // src/differenceInQuarters.ts
6
+ function differenceInQuarters(laterDate, earlierDate, options) {
7
+ const quarters = differenceInMonths(laterDate, earlierDate, { fractional: true }) / 3;
8
+ return options?.fractional ? quarters : Math.trunc(quarters);
9
+ }
10
+
11
+ export {
12
+ differenceInQuarters
13
+ };
14
+ //# sourceMappingURL=chunk-VUKOSQWW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/differenceInQuarters.ts"],"sourcesContent":["import type { Temporal } from \"@js-temporal/polyfill\";\nimport { differenceInMonths } from \"./differenceInMonths\";\nimport type { DifferenceOptions } from \"./shared/differenceOptions\";\n\n/**\n * Returns the number of quarters (3-month blocks) between two datetimes.\n * The result is positive if laterDate is after earlierDate, negative if before.\n *\n * This function uses calendar-aware calculation, which means it properly handles\n * months with different numbers of days (28, 29, 30, or 31).\n *\n * Instant inputs are converted to UTC for calendar calculations.\n * For ZonedDateTime inputs, their timezone is preserved.\n *\n * @param laterDate - The later datetime (Instant or ZonedDateTime)\n * @param earlierDate - The earlier datetime (Instant or ZonedDateTime)\n * @param options - Optional { fractional } to return the precise value\n * @returns The number of quarters between the dates, truncated toward zero (pass { fractional: true } for the precise value)\n *\n * @example\n * ```ts\n * const later = Temporal.Instant.from('2025-07-20T12:00:00Z');\n * const earlier = Temporal.Instant.from('2025-01-20T12:00:00Z');\n *\n * differenceInQuarters(later, earlier); // 2\n * ```\n *\n * @example\n * ```ts\n * // Pass { fractional: true } for partial-unit precision\n * const later = Temporal.Instant.from('2025-03-20T12:00:00Z');\n * const earlier = Temporal.Instant.from('2025-01-20T12:00:00Z');\n *\n * differenceInQuarters(later, earlier); // 0\n * differenceInQuarters(later, earlier, { fractional: true }); // ~0.67\n * ```\n */\nexport function differenceInQuarters(\n laterDate: Temporal.Instant | Temporal.ZonedDateTime,\n earlierDate: Temporal.Instant | Temporal.ZonedDateTime,\n options?: DifferenceOptions,\n): number {\n // A quarter is three months, so reuse the month difference and divide by 3.\n const quarters = differenceInMonths(laterDate, earlierDate, { fractional: true }) / 3;\n return options?.fractional ? quarters : Math.trunc(quarters);\n}\n"],"mappings":";;;;;AAqCO,SAAS,qBACd,WACA,aACA,SACQ;AAER,QAAM,WAAW,mBAAmB,WAAW,aAAa,EAAE,YAAY,KAAK,CAAC,IAAI;AACpF,SAAO,SAAS,aAAa,WAAW,KAAK,MAAM,QAAQ;AAC7D;","names":[]}
@@ -0,0 +1,13 @@
1
+ import {
2
+ addQuarters
3
+ } from "./chunk-ZEL6JBBH.js";
4
+
5
+ // src/subQuarters.ts
6
+ function subQuarters(input, quarters) {
7
+ return addQuarters(input, -quarters);
8
+ }
9
+
10
+ export {
11
+ subQuarters
12
+ };
13
+ //# sourceMappingURL=chunk-W5YDBBNF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/subQuarters.ts"],"sourcesContent":["import type { Temporal } from \"@js-temporal/polyfill\";\nimport { addQuarters } from \"./addQuarters\";\n\n/**\n * Subtracts the specified number of quarters (3-month blocks) from a datetime.\n *\n * This is a convenience wrapper around addQuarters with negated value.\n * Properly handles month-end dates and calendar edge cases through Temporal API.\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @param quarters - Number of quarters to subtract\n * @returns ZonedDateTime with quarters subtracted, in the same timezone as input\n *\n * @example\n * ```ts\n * const instant = Temporal.Instant.from('2025-07-20T12:00:00Z');\n * const result = subQuarters(instant, 2);\n * // 2025-01-20T12:00:00Z[UTC] (6 months earlier)\n * ```\n */\nexport function subQuarters(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n quarters: number,\n): Temporal.ZonedDateTime {\n return addQuarters(input, -quarters);\n}\n"],"mappings":";;;;;AAoBO,SAAS,YACd,OACA,UACwB;AACxB,SAAO,YAAY,OAAO,CAAC,QAAQ;AACrC;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
 
5
5
  // src/addNanoseconds.ts
6
6
  function addNanoseconds(input, nanoseconds) {
@@ -11,4 +11,4 @@ function addNanoseconds(input, nanoseconds) {
11
11
  export {
12
12
  addNanoseconds
13
13
  };
14
- //# sourceMappingURL=chunk-DOGZ2WBH.js.map
14
+ //# sourceMappingURL=chunk-WGLZHBJG.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-VXOQ7IG5.js";
4
4
  import {
5
5
  normalizeTemporalInput
6
- } from "./chunk-F6EWMA4K.js";
6
+ } from "./chunk-NTMT5XGC.js";
7
7
 
8
8
  // src/differenceInMilliseconds.ts
9
9
  function differenceInMilliseconds2(laterDate, earlierDate) {
@@ -15,4 +15,4 @@ function differenceInMilliseconds2(laterDate, earlierDate) {
15
15
  export {
16
16
  differenceInMilliseconds2 as differenceInMilliseconds
17
17
  };
18
- //# sourceMappingURL=chunk-76RCTVBW.js.map
18
+ //# sourceMappingURL=chunk-WTLAKRCT.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-VXOQ7IG5.js";
4
4
  import {
5
5
  normalizeTemporalInput
6
- } from "./chunk-F6EWMA4K.js";
6
+ } from "./chunk-NTMT5XGC.js";
7
7
 
8
8
  // src/differenceInHours.ts
9
9
  function differenceInHours(laterDate, earlierDate, options) {
@@ -16,4 +16,4 @@ function differenceInHours(laterDate, earlierDate, options) {
16
16
  export {
17
17
  differenceInHours
18
18
  };
19
- //# sourceMappingURL=chunk-ERCE3YCO.js.map
19
+ //# sourceMappingURL=chunk-X3ARINEH.js.map
@@ -0,0 +1,21 @@
1
+ import {
2
+ quarterStartMonth
3
+ } from "./chunk-XS2HUADA.js";
4
+ import {
5
+ normalizeWithPlainDate
6
+ } from "./chunk-ZOHYNJUD.js";
7
+
8
+ // src/startOfQuarter.ts
9
+ function startOfQuarter(input, timezone) {
10
+ const zonedDateTime = normalizeWithPlainDate(input, timezone);
11
+ const firstDay = zonedDateTime.with({
12
+ month: quarterStartMonth(zonedDateTime.month),
13
+ day: 1
14
+ });
15
+ return firstDay.startOfDay();
16
+ }
17
+
18
+ export {
19
+ startOfQuarter
20
+ };
21
+ //# sourceMappingURL=chunk-XMW72PNW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/startOfQuarter.ts"],"sourcesContent":["import { Temporal } from \"./shared/temporal\";\nimport type { Timezone } from \"./types\";\nimport { normalizeWithPlainDate } from \"./shared/normalizeWithPlainDate\";\nimport { quarterStartMonth } from \"./shared/quarter\";\n\n/**\n * Returns a ZonedDateTime representing the first moment of the quarter\n * (first day of the quarter's starting month at midnight).\n *\n * Quarters: Q1 = Jan–Mar, Q2 = Apr–Jun, Q3 = Jul–Sep, Q4 = Oct–Dec.\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @returns ZonedDateTime at the 1st day of the quarter at 00:00:00.000000000\n *\n * @example\n * ```ts\n * // From Instant (always UTC)\n * const instant = Temporal.Instant.from('2025-05-15T12:00:00Z');\n * const start = startOfQuarter(instant);\n * // 2025-04-01T00:00:00Z[UTC]\n * ```\n *\n * @example\n * ```ts\n * // From ZonedDateTime (uses its timezone)\n * const zoned = Temporal.ZonedDateTime.from('2025-08-15T15:30:00-05:00[America/New_York]');\n * const start = startOfQuarter(zoned);\n * // 2025-07-01T00:00:00-04:00[America/New_York]\n * ```\n *\n * @example\n * ```ts\n * // From PlainDate (requires timezone)\n * const date = Temporal.PlainDate.from('2025-11-15');\n * const start = startOfQuarter(date, 'America/New_York');\n * // 2025-10-01T00:00:00-04:00[America/New_York]\n * ```\n */\nexport function startOfQuarter(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n): Temporal.ZonedDateTime;\nexport function startOfQuarter(\n input: Temporal.PlainDate,\n timezone: Timezone,\n): Temporal.ZonedDateTime;\nexport function startOfQuarter(\n input: Temporal.Instant | Temporal.ZonedDateTime | Temporal.PlainDate,\n timezone?: Timezone,\n): Temporal.ZonedDateTime {\n const zonedDateTime = normalizeWithPlainDate(input, timezone!);\n const firstDay = zonedDateTime.with({\n month: quarterStartMonth(zonedDateTime.month),\n day: 1,\n });\n return firstDay.startOfDay();\n}\n"],"mappings":";;;;;;;;AA6CO,SAAS,eACd,OACA,UACwB;AACxB,QAAM,gBAAgB,uBAAuB,OAAO,QAAS;AAC7D,QAAM,WAAW,cAAc,KAAK;AAAA,IAClC,OAAO,kBAAkB,cAAc,KAAK;AAAA,IAC5C,KAAK;AAAA,EACP,CAAC;AACD,SAAO,SAAS,WAAW;AAC7B;","names":[]}
@@ -0,0 +1,13 @@
1
+ // src/shared/quarter.ts
2
+ function quarterOfMonth(month) {
3
+ return Math.floor((month - 1) / 3) + 1;
4
+ }
5
+ function quarterStartMonth(month) {
6
+ return Math.floor((month - 1) / 3) * 3 + 1;
7
+ }
8
+
9
+ export {
10
+ quarterOfMonth,
11
+ quarterStartMonth
12
+ };
13
+ //# sourceMappingURL=chunk-XS2HUADA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared/quarter.ts"],"sourcesContent":["/**\n * @internal\n * Quarter math shared by the quarter family. A quarter spans 3 calendar months:\n * Q1 = Jan–Mar, Q2 = Apr–Jun, Q3 = Jul–Sep, Q4 = Oct–Dec.\n *\n * These are internal helpers - do not use directly.\n */\n\n/** The quarter (1-4) that a calendar month (1-12) belongs to. */\nexport function quarterOfMonth(month: number): 1 | 2 | 3 | 4 {\n return (Math.floor((month - 1) / 3) + 1) as 1 | 2 | 3 | 4;\n}\n\n/** The first month (1, 4, 7, or 10) of the quarter that a calendar month belongs to. */\nexport function quarterStartMonth(month: number): number {\n return Math.floor((month - 1) / 3) * 3 + 1;\n}\n"],"mappings":";AASO,SAAS,eAAe,OAA8B;AAC3D,SAAQ,KAAK,OAAO,QAAQ,KAAK,CAAC,IAAI;AACxC;AAGO,SAAS,kBAAkB,OAAuB;AACvD,SAAO,KAAK,OAAO,QAAQ,KAAK,CAAC,IAAI,IAAI;AAC3C;","names":[]}
@@ -2,7 +2,7 @@ import {
2
2
  Temporal,
3
3
  isInstant,
4
4
  isZonedDateTime
5
- } from "./chunk-VOZTLX5F.js";
5
+ } from "./chunk-R7ZCA6AQ.js";
6
6
 
7
7
  // src/simpleFormat.ts
8
8
  function simpleFormat(input, options) {
@@ -59,4 +59,4 @@ function formatCompactTime(zdt) {
59
59
  export {
60
60
  simpleFormat
61
61
  };
62
- //# sourceMappingURL=chunk-ZSRCVDZ2.js.map
62
+ //# sourceMappingURL=chunk-XWBOD6MD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Temporal
3
- } from "./chunk-VOZTLX5F.js";
3
+ } from "./chunk-R7ZCA6AQ.js";
4
4
 
5
5
  // src/now.ts
6
6
  function now(timezone) {
@@ -10,4 +10,4 @@ function now(timezone) {
10
10
  export {
11
11
  now
12
12
  };
13
- //# sourceMappingURL=chunk-ZFXBHDFB.js.map
13
+ //# sourceMappingURL=chunk-YOSCEJ36.js.map
@@ -0,0 +1,14 @@
1
+ import {
2
+ normalizeTemporalInput
3
+ } from "./chunk-NTMT5XGC.js";
4
+
5
+ // src/addQuarters.ts
6
+ function addQuarters(input, quarters) {
7
+ const zonedDateTime = normalizeTemporalInput(input);
8
+ return zonedDateTime.add({ months: quarters * 3 });
9
+ }
10
+
11
+ export {
12
+ addQuarters
13
+ };
14
+ //# sourceMappingURL=chunk-ZEL6JBBH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/addQuarters.ts"],"sourcesContent":["import type { Temporal } from \"@js-temporal/polyfill\";\nimport { normalizeTemporalInput } from \"./shared/normalizeTemporalInput\";\n\n/**\n * Adds the specified number of quarters (3-month blocks) to a datetime.\n *\n * Properly handles month-end dates and calendar edge cases through Temporal API.\n * Instant inputs are converted to UTC. For ZonedDateTime inputs, their timezone is preserved.\n *\n * @param input - A Temporal.Instant (UTC) or Temporal.ZonedDateTime\n * @param quarters - Number of quarters to add (can be negative to subtract)\n * @returns ZonedDateTime with quarters added, in the same timezone as input\n *\n * @example\n * ```ts\n * // From Instant (always UTC)\n * const instant = Temporal.Instant.from('2025-01-20T12:00:00Z');\n * const result = addQuarters(instant, 2);\n * // 2025-07-20T12:00:00Z[UTC] (6 months later)\n * ```\n *\n * @example\n * ```ts\n * // From ZonedDateTime (preserves timezone)\n * const zoned = Temporal.ZonedDateTime.from('2025-01-20T15:30:00-05:00[America/New_York]');\n * const result = addQuarters(zoned, 1);\n * // 2025-04-20T15:30:00-04:00[America/New_York]\n * ```\n */\nexport function addQuarters(\n input: Temporal.Instant | Temporal.ZonedDateTime,\n quarters: number,\n): Temporal.ZonedDateTime {\n const zonedDateTime = normalizeTemporalInput(input);\n return zonedDateTime.add({ months: quarters * 3 });\n}\n"],"mappings":";;;;;AA6BO,SAAS,YACd,OACA,UACwB;AACxB,QAAM,gBAAgB,uBAAuB,KAAK;AAClD,SAAO,cAAc,IAAI,EAAE,QAAQ,WAAW,EAAE,CAAC;AACnD;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
 
5
5
  // src/addWeeks.ts
6
6
  function addWeeks(input, weeks) {
@@ -11,4 +11,4 @@ function addWeeks(input, weeks) {
11
11
  export {
12
12
  addWeeks
13
13
  };
14
- //# sourceMappingURL=chunk-BOGN7JC3.js.map
14
+ //# sourceMappingURL=chunk-ZG4ROOWI.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  normalizeTemporalInput
3
- } from "./chunk-F6EWMA4K.js";
3
+ } from "./chunk-NTMT5XGC.js";
4
4
  import {
5
5
  Temporal
6
- } from "./chunk-VOZTLX5F.js";
6
+ } from "./chunk-R7ZCA6AQ.js";
7
7
 
8
8
  // src/eachMonthOfInterval.ts
9
9
  function eachMonthOfInterval(interval) {
@@ -37,4 +37,4 @@ function eachMonthOfInterval(interval) {
37
37
  export {
38
38
  eachMonthOfInterval
39
39
  };
40
- //# sourceMappingURL=chunk-Z2LOTP6T.js.map
40
+ //# sourceMappingURL=chunk-ZGWLIISB.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  plainDateToZonedDateTime
3
- } from "./chunk-LYPSZYIG.js";
3
+ } from "./chunk-L5AMAEWX.js";
4
4
  import {
5
5
  normalizeTemporalInput
6
- } from "./chunk-F6EWMA4K.js";
6
+ } from "./chunk-NTMT5XGC.js";
7
7
  import {
8
8
  isPlainDate
9
- } from "./chunk-VOZTLX5F.js";
9
+ } from "./chunk-R7ZCA6AQ.js";
10
10
 
11
11
  // src/shared/normalizeWithPlainDate.ts
12
12
  function normalizeWithPlainDate(input, timezone) {
@@ -16,4 +16,4 @@ function normalizeWithPlainDate(input, timezone) {
16
16
  export {
17
17
  normalizeWithPlainDate
18
18
  };
19
- //# sourceMappingURL=chunk-Y4HT4LCB.js.map
19
+ //# sourceMappingURL=chunk-ZOHYNJUD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  addYears
3
- } from "./chunk-5HVHKQTJ.js";
3
+ } from "./chunk-6YU6BQOZ.js";
4
4
 
5
5
  // src/subYears.ts
6
6
  function subYears(input, years) {
@@ -10,4 +10,4 @@ function subYears(input, years) {
10
10
  export {
11
11
  subYears
12
12
  };
13
- //# sourceMappingURL=chunk-WJOGQ6IB.js.map
13
+ //# sourceMappingURL=chunk-ZYU3P74L.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  differenceInDays
3
- } from "./chunk-ESTLMF2X.js";
4
- import "./chunk-F6EWMA4K.js";
5
- import "./chunk-VOZTLX5F.js";
3
+ } from "./chunk-EU3SYJHM.js";
4
+ import "./chunk-NTMT5XGC.js";
5
+ import "./chunk-R7ZCA6AQ.js";
6
6
  export {
7
7
  differenceInDays
8
8
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  differenceInHours
3
- } from "./chunk-ERCE3YCO.js";
3
+ } from "./chunk-X3ARINEH.js";
4
4
  import "./chunk-VXOQ7IG5.js";
5
- import "./chunk-F6EWMA4K.js";
6
- import "./chunk-VOZTLX5F.js";
5
+ import "./chunk-NTMT5XGC.js";
6
+ import "./chunk-R7ZCA6AQ.js";
7
7
  export {
8
8
  differenceInHours
9
9
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  differenceInMicroseconds
3
- } from "./chunk-FIX6LQG5.js";
4
- import "./chunk-F6EWMA4K.js";
5
- import "./chunk-VOZTLX5F.js";
3
+ } from "./chunk-DBVGH55Z.js";
4
+ import "./chunk-NTMT5XGC.js";
5
+ import "./chunk-R7ZCA6AQ.js";
6
6
  export {
7
7
  differenceInMicroseconds
8
8
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  differenceInMilliseconds
3
- } from "./chunk-76RCTVBW.js";
3
+ } from "./chunk-WTLAKRCT.js";
4
4
  import "./chunk-VXOQ7IG5.js";
5
- import "./chunk-F6EWMA4K.js";
6
- import "./chunk-VOZTLX5F.js";
5
+ import "./chunk-NTMT5XGC.js";
6
+ import "./chunk-R7ZCA6AQ.js";
7
7
  export {
8
8
  differenceInMilliseconds
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  differenceInMinutes
3
- } from "./chunk-JVB5IARQ.js";
3
+ } from "./chunk-EMZFQEWM.js";
4
4
  import "./chunk-VXOQ7IG5.js";
5
- import "./chunk-F6EWMA4K.js";
6
- import "./chunk-VOZTLX5F.js";
5
+ import "./chunk-NTMT5XGC.js";
6
+ import "./chunk-R7ZCA6AQ.js";
7
7
  export {
8
8
  differenceInMinutes
9
9
  };