@anoki/fse-ui 1.0.484 → 1.0.489
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/components/ui/ActionBanner/ActionBanner.css +1 -1
- package/dist/components/ui/Alert/Alert.css +1 -1
- package/dist/components/ui/Section/Description/description.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs101.js.map +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs102.js.map +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs103.js.map +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs104.js.map +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs105.js.map +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs106.js.map +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs107.js.map +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs108.js.map +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs109.js.map +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs110.js.map +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs111.js.map +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs112.js.map +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs113.js.map +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs114.js.map +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs115.js.map +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs116.js.map +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs117.js.map +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs118.js.map +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs119.js.map +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs120.js.map +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs121.js.map +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs122.js.map +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs123.js.map +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs124.js.map +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs125.js.map +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs126.js.map +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs127.js.map +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs128.js.map +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs129.js.map +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs130.js.map +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs131.js.map +1 -1
- package/dist/index.cjs132.js +1 -1
- package/dist/index.cjs132.js.map +1 -1
- package/dist/index.cjs133.js +1 -1
- package/dist/index.cjs133.js.map +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs134.js.map +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs135.js.map +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs136.js.map +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs137.js.map +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs138.js.map +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs139.js.map +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs140.js.map +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs141.js.map +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs142.js.map +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs143.js.map +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs144.js.map +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs145.js.map +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs146.js.map +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs147.js.map +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs148.js.map +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs149.js.map +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs150.js.map +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs151.js.map +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs152.js.map +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs153.js.map +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs154.js.map +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs155.js.map +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs156.js.map +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs157.js.map +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs158.js.map +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs159.js.map +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs160.js.map +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs161.js.map +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs162.js.map +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs163.js.map +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs164.js.map +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs165.js.map +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs166.js.map +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs167.js.map +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs168.js.map +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs169.js.map +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs17.js.map +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs170.js.map +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs171.js.map +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs172.js.map +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs173.js.map +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs174.js.map +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs175.js.map +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs176.js.map +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs177.js.map +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs178.js.map +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs18.js.map +1 -1
- package/dist/index.cjs182.js +2 -0
- package/dist/index.cjs182.js.map +1 -0
- package/dist/{index.cjs183.js → index.cjs189.js} +1 -1
- package/dist/index.cjs189.js.map +1 -0
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs19.js.map +1 -1
- package/dist/{index.cjs181.js → index.cjs190.js} +1 -1
- package/dist/index.cjs190.js.map +1 -0
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/{index.cjs186.js → index.cjs194.js} +2 -2
- package/dist/{index.cjs186.js.map → index.cjs194.js.map} +1 -1
- package/dist/{index.cjs188.js → index.cjs196.js} +1 -1
- package/dist/index.cjs196.js.map +1 -0
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs20.js.map +1 -1
- package/dist/index.cjs200.js +2 -0
- package/dist/index.cjs200.js.map +1 -0
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/{index.cjs198.js → index.cjs206.js} +2 -2
- package/dist/{index.cjs198.js.map → index.cjs206.js.map} +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs21.js.map +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs211.js +2 -0
- package/dist/index.cjs211.js.map +1 -0
- package/dist/index.cjs217.js +2 -0
- package/dist/index.cjs217.js.map +1 -0
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs22.js.map +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs221.js.map +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs228.js +5 -1
- package/dist/index.cjs228.js.map +1 -1
- package/dist/index.cjs229.js +2 -0
- package/dist/index.cjs229.js.map +1 -0
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/{index.cjs222.js → index.cjs230.js} +2 -2
- package/dist/index.cjs230.js.map +1 -0
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs231.js.map +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs232.js.map +1 -1
- package/dist/index.cjs234.js +2 -0
- package/dist/index.cjs234.js.map +1 -0
- package/dist/index.cjs235.js +2 -0
- package/dist/index.cjs235.js.map +1 -0
- package/dist/index.cjs236.js +2 -0
- package/dist/index.cjs236.js.map +1 -0
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs239.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs240.js +2 -0
- package/dist/index.cjs240.js.map +1 -0
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs246.js.map +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs249.js +1 -6
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/{index.cjs242.js → index.cjs250.js} +2 -2
- package/dist/index.cjs250.js.map +1 -0
- package/dist/{index.cjs243.js → index.cjs251.js} +2 -2
- package/dist/index.cjs251.js.map +1 -0
- package/dist/index.cjs253.js +2 -0
- package/dist/index.cjs253.js.map +1 -0
- package/dist/index.cjs254.js +2 -0
- package/dist/index.cjs254.js.map +1 -0
- package/dist/index.cjs255.js +2 -0
- package/dist/index.cjs255.js.map +1 -0
- package/dist/index.cjs257.js +7 -0
- package/dist/index.cjs257.js.map +1 -0
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs266.js +2 -0
- package/dist/index.cjs266.js.map +1 -0
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs27.js.map +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs294.js +7 -1
- package/dist/index.cjs294.js.map +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs302.js +2 -0
- package/dist/index.cjs302.js.map +1 -0
- package/dist/{index.cjs299.js → index.cjs307.js} +2 -2
- package/dist/{index.cjs299.js.map → index.cjs307.js.map} +1 -1
- package/dist/index.cjs309.js +2 -0
- package/dist/index.cjs309.js.map +1 -0
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs310.js +2 -0
- package/dist/index.cjs310.js.map +1 -0
- package/dist/index.cjs311.js +1 -1
- package/dist/index.cjs311.js.map +1 -1
- package/dist/index.cjs312.js +9 -1
- package/dist/index.cjs312.js.map +1 -1
- package/dist/index.cjs313.js +23 -1
- package/dist/index.cjs313.js.map +1 -1
- package/dist/index.cjs314.js +27 -9
- package/dist/index.cjs314.js.map +1 -1
- package/dist/index.cjs315.js +1 -14
- package/dist/index.cjs315.js.map +1 -1
- package/dist/index.cjs316.js +1 -1
- package/dist/index.cjs316.js.map +1 -1
- package/dist/index.cjs317.js +1 -1
- package/dist/index.cjs317.js.map +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs318.js.map +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs323.js.map +1 -1
- package/dist/index.cjs324.js +2 -0
- package/dist/index.cjs324.js.map +1 -0
- package/dist/index.cjs325.js +2 -0
- package/dist/index.cjs325.js.map +1 -0
- package/dist/{index.cjs319.js → index.cjs326.js} +2 -2
- package/dist/{index.cjs319.js.map → index.cjs326.js.map} +1 -1
- package/dist/index.cjs327.js +1 -1
- package/dist/index.cjs327.js.map +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/{index.cjs359.js → index.cjs330.js} +1 -1
- package/dist/{index.cjs359.js.map → index.cjs330.js.map} +1 -1
- package/dist/index.cjs331.js +2 -0
- package/dist/index.cjs331.js.map +1 -0
- package/dist/{index.cjs360.js → index.cjs332.js} +2 -2
- package/dist/{index.cjs360.js.map → index.cjs332.js.map} +1 -1
- package/dist/{index.cjs361.js → index.cjs333.js} +2 -2
- package/dist/{index.cjs361.js.map → index.cjs333.js.map} +1 -1
- package/dist/index.cjs334.js +2 -0
- package/dist/index.cjs334.js.map +1 -0
- package/dist/index.cjs335.js +2 -0
- package/dist/index.cjs335.js.map +1 -0
- package/dist/index.cjs336.js +2 -0
- package/dist/index.cjs336.js.map +1 -0
- package/dist/{index.cjs362.js → index.cjs337.js} +2 -2
- package/dist/{index.cjs362.js.map → index.cjs337.js.map} +1 -1
- package/dist/index.cjs338.js +2 -0
- package/dist/index.cjs338.js.map +1 -0
- package/dist/index.cjs339.js +2 -0
- package/dist/index.cjs339.js.map +1 -0
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs340.js +2 -0
- package/dist/index.cjs340.js.map +1 -0
- package/dist/index.cjs341.js +1 -1
- package/dist/index.cjs341.js.map +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs342.js.map +1 -1
- package/dist/index.cjs343.js +1 -1
- package/dist/index.cjs343.js.map +1 -1
- package/dist/index.cjs344.js +1 -1
- package/dist/index.cjs344.js.map +1 -1
- package/dist/index.cjs345.js +1 -1
- package/dist/index.cjs345.js.map +1 -1
- package/dist/index.cjs346.js +1 -1
- package/dist/index.cjs346.js.map +1 -1
- package/dist/index.cjs347.js +1 -1
- package/dist/index.cjs347.js.map +1 -1
- package/dist/{index.cjs368.js → index.cjs348.js} +2 -2
- package/dist/{index.cjs368.js.map → index.cjs348.js.map} +1 -1
- package/dist/index.cjs349.js +2 -0
- package/dist/index.cjs349.js.map +1 -0
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/{index.cjs369.js → index.cjs350.js} +1 -1
- package/dist/{index.cjs369.js.map → index.cjs350.js.map} +1 -1
- package/dist/{index.cjs370.js → index.cjs351.js} +2 -2
- package/dist/{index.cjs370.js.map → index.cjs351.js.map} +1 -1
- package/dist/index.cjs352.js +2 -0
- package/dist/{index.cjs371.js.map → index.cjs352.js.map} +1 -1
- package/dist/index.cjs353.js +1 -27
- package/dist/index.cjs353.js.map +1 -1
- package/dist/index.cjs354.js +1 -1
- package/dist/index.cjs354.js.map +1 -1
- package/dist/index.cjs355.js +1 -1
- package/dist/index.cjs355.js.map +1 -1
- package/dist/index.cjs356.js +5 -0
- package/dist/index.cjs356.js.map +1 -0
- package/dist/index.cjs357.js +1 -1
- package/dist/index.cjs357.js.map +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs363.js +1 -1
- package/dist/index.cjs363.js.map +1 -1
- package/dist/index.cjs364.js +1 -1
- package/dist/index.cjs364.js.map +1 -1
- package/dist/index.cjs365.js +1 -1
- package/dist/index.cjs365.js.map +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs376.js +38 -1
- package/dist/index.cjs376.js.map +1 -1
- package/dist/index.cjs377.js +1 -1
- package/dist/index.cjs377.js.map +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs378.js.map +1 -1
- package/dist/index.cjs379.js +1 -1
- package/dist/index.cjs379.js.map +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs380.js.map +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs381.js.map +1 -1
- package/dist/index.cjs382.js +1 -1
- package/dist/index.cjs382.js.map +1 -1
- package/dist/index.cjs383.js +1 -4
- package/dist/index.cjs383.js.map +1 -1
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs384.js.map +1 -1
- package/dist/index.cjs385.js +1 -5
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs386.js +1 -1
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs389.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs390.js.map +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +1 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs393.js.map +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs394.js.map +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs395.js.map +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs397.js +5 -38
- package/dist/index.cjs397.js.map +1 -1
- package/dist/index.cjs398.js +1 -1
- package/dist/index.cjs398.js.map +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs399.js.map +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs400.js.map +1 -1
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs401.js.map +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs402.js.map +1 -1
- package/dist/index.cjs403.js +1 -1
- package/dist/index.cjs403.js.map +1 -1
- package/dist/index.cjs404.js +1 -1
- package/dist/index.cjs404.js.map +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs405.js.map +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs57.js.map +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs58.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs81.js.map +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs82.js.map +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs83.js.map +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs84.js.map +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs85.js.map +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs86.js.map +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs87.js.map +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs88.js.map +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs90.js.map +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs91.js.map +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs92.js.map +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs94.js.map +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs95.js.map +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs96.js.map +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs97.js.map +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs98.js.map +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.cjs99.js.map +1 -1
- package/dist/index.d.ts +9 -11
- package/dist/index.es.js +143 -145
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +4 -4
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es100.js +4 -4
- package/dist/index.es101.js +118 -13
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +47 -114
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es103.js +75 -46
- package/dist/index.es103.js.map +1 -1
- package/dist/index.es104.js +35 -78
- package/dist/index.es104.js.map +1 -1
- package/dist/index.es105.js +10 -35
- package/dist/index.es105.js.map +1 -1
- package/dist/index.es106.js +110 -12
- package/dist/index.es106.js.map +1 -1
- package/dist/index.es107.js +49 -109
- package/dist/index.es107.js.map +1 -1
- package/dist/index.es108.js +25 -49
- package/dist/index.es108.js.map +1 -1
- package/dist/index.es109.js +16 -23
- package/dist/index.es109.js.map +1 -1
- package/dist/index.es11.js +2 -2
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es110.js +23 -17
- package/dist/index.es110.js.map +1 -1
- package/dist/index.es111.js +16 -16
- package/dist/index.es111.js.map +1 -1
- package/dist/index.es112.js +14 -14
- package/dist/index.es112.js.map +1 -1
- package/dist/index.es113.js +14 -14
- package/dist/index.es113.js.map +1 -1
- package/dist/index.es114.js +13 -11
- package/dist/index.es114.js.map +1 -1
- package/dist/index.es115.js +22 -16
- package/dist/index.es115.js.map +1 -1
- package/dist/index.es116.js +2266 -23
- package/dist/index.es116.js.map +1 -1
- package/dist/index.es117.js +23 -2267
- package/dist/index.es117.js.map +1 -1
- package/dist/index.es118.js +41 -23
- package/dist/index.es118.js.map +1 -1
- package/dist/index.es119.js +17 -35
- package/dist/index.es119.js.map +1 -1
- package/dist/index.es12.js +3 -3
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es120.js +72 -20
- package/dist/index.es120.js.map +1 -1
- package/dist/index.es121.js +38 -72
- package/dist/index.es121.js.map +1 -1
- package/dist/index.es122.js +17 -39
- package/dist/index.es122.js.map +1 -1
- package/dist/index.es123.js +669 -16
- package/dist/index.es123.js.map +1 -1
- package/dist/index.es124.js +17 -654
- package/dist/index.es124.js.map +1 -1
- package/dist/index.es125.js +21 -34
- package/dist/index.es125.js.map +1 -1
- package/dist/index.es126.js +5 -5
- package/dist/index.es126.js.map +1 -1
- package/dist/index.es127.js +19 -17
- package/dist/index.es127.js.map +1 -1
- package/dist/index.es128.js +30 -18
- package/dist/index.es128.js.map +1 -1
- package/dist/index.es129.js +23 -28
- package/dist/index.es129.js.map +1 -1
- package/dist/index.es13.js +2 -2
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es130.js +32 -21
- package/dist/index.es130.js.map +1 -1
- package/dist/index.es131.js +22 -33
- package/dist/index.es131.js.map +1 -1
- package/dist/index.es132.js +24 -40
- package/dist/index.es132.js.map +1 -1
- package/dist/index.es133.js +13 -9
- package/dist/index.es133.js.map +1 -1
- package/dist/index.es134.js +32 -28
- package/dist/index.es134.js.map +1 -1
- package/dist/index.es135.js +23 -20
- package/dist/index.es135.js.map +1 -1
- package/dist/index.es136.js +22 -24
- package/dist/index.es136.js.map +1 -1
- package/dist/index.es137.js +21 -33
- package/dist/index.es137.js.map +1 -1
- package/dist/index.es138.js +36 -21
- package/dist/index.es138.js.map +1 -1
- package/dist/index.es139.js +23 -26
- package/dist/index.es139.js.map +1 -1
- package/dist/index.es14.js +2 -2
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es140.js +12 -12
- package/dist/index.es140.js.map +1 -1
- package/dist/index.es141.js +13 -13
- package/dist/index.es141.js.map +1 -1
- package/dist/index.es142.js +17 -17
- package/dist/index.es142.js.map +1 -1
- package/dist/index.es143.js +14 -14
- package/dist/index.es143.js.map +1 -1
- package/dist/index.es144.js +15 -16
- package/dist/index.es144.js.map +1 -1
- package/dist/index.es145.js +15 -14
- package/dist/index.es145.js.map +1 -1
- package/dist/index.es146.js +31 -24
- package/dist/index.es146.js.map +1 -1
- package/dist/index.es147.js +21 -40
- package/dist/index.es147.js.map +1 -1
- package/dist/index.es148.js +31 -21
- package/dist/index.es148.js.map +1 -1
- package/dist/index.es149.js +19 -17
- package/dist/index.es149.js.map +1 -1
- package/dist/index.es15.js +3 -3
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es150.js +8 -8
- package/dist/index.es150.js.map +1 -1
- package/dist/index.es151.js +23 -21
- package/dist/index.es151.js.map +1 -1
- package/dist/index.es152.js +19 -22
- package/dist/index.es152.js.map +1 -1
- package/dist/index.es153.js +17 -16
- package/dist/index.es153.js.map +1 -1
- package/dist/index.es154.js +15 -23
- package/dist/index.es154.js.map +1 -1
- package/dist/index.es155.js +21 -25
- package/dist/index.es155.js.map +1 -1
- package/dist/index.es156.js +33 -21
- package/dist/index.es156.js.map +1 -1
- package/dist/index.es157.js +15 -15
- package/dist/index.es157.js.map +1 -1
- package/dist/index.es158.js +13 -13
- package/dist/index.es158.js.map +1 -1
- package/dist/index.es159.js +1794 -31
- package/dist/index.es159.js.map +1 -1
- package/dist/index.es16.js +6 -6
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es160.js +320 -1657
- package/dist/index.es160.js.map +1 -1
- package/dist/index.es161.js +134 -430
- package/dist/index.es161.js.map +1 -1
- package/dist/index.es162.js +245 -164
- package/dist/index.es162.js.map +1 -1
- package/dist/index.es163.js +109 -245
- package/dist/index.es163.js.map +1 -1
- package/dist/index.es164.js +277 -120
- package/dist/index.es164.js.map +1 -1
- package/dist/index.es165.js +199 -280
- package/dist/index.es165.js.map +1 -1
- package/dist/index.es166.js +16 -203
- package/dist/index.es166.js.map +1 -1
- package/dist/index.es167.js +33 -16
- package/dist/index.es167.js.map +1 -1
- package/dist/index.es168.js +340 -32
- package/dist/index.es168.js.map +1 -1
- package/dist/index.es169.js +83 -335
- package/dist/index.es169.js.map +1 -1
- package/dist/index.es17.js +1 -1
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es170.js +148 -90
- package/dist/index.es170.js.map +1 -1
- package/dist/index.es171.js +38 -148
- package/dist/index.es171.js.map +1 -1
- package/dist/index.es172.js +6 -35
- package/dist/index.es172.js.map +1 -1
- package/dist/index.es173.js +173 -6
- package/dist/index.es173.js.map +1 -1
- package/dist/index.es174.js +34 -127
- package/dist/index.es174.js.map +1 -1
- package/dist/index.es175.js +26 -73
- package/dist/index.es175.js.map +1 -1
- package/dist/index.es176.js +22 -16
- package/dist/index.es176.js.map +1 -1
- package/dist/index.es177.js +71 -44
- package/dist/index.es177.js.map +1 -1
- package/dist/index.es178.js +3 -75
- package/dist/index.es178.js.map +1 -1
- package/dist/index.es18.js +2 -2
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es182.js +6 -0
- package/dist/index.es182.js.map +1 -0
- package/dist/{index.es183.js → index.es189.js} +1 -1
- package/dist/index.es189.js.map +1 -0
- package/dist/index.es19.js +2 -2
- package/dist/index.es19.js.map +1 -1
- package/dist/{index.es181.js → index.es190.js} +1 -1
- package/dist/index.es190.js.map +1 -0
- package/dist/index.es192.js +2 -22
- package/dist/index.es192.js.map +1 -1
- package/dist/{index.es186.js → index.es194.js} +2 -2
- package/dist/{index.es186.js.map → index.es194.js.map} +1 -1
- package/dist/{index.es188.js → index.es196.js} +1 -1
- package/dist/index.es196.js.map +1 -0
- package/dist/index.es20.js +1 -1
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es200.js +25 -0
- package/dist/index.es200.js.map +1 -0
- package/dist/index.es203.js +19 -140
- package/dist/index.es203.js.map +1 -1
- package/dist/{index.es198.js → index.es206.js} +9 -9
- package/dist/{index.es198.js.map → index.es206.js.map} +1 -1
- package/dist/index.es209.js +72 -129
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +2 -2
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es210.js +142 -19
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +146 -0
- package/dist/index.es211.js.map +1 -0
- package/dist/index.es217.js +136 -0
- package/dist/index.es217.js.map +1 -0
- package/dist/index.es218.js +20 -51
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es22.js +4 -4
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es221.js +3 -51
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es226.js +47 -23
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es228.js +259 -8
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +54 -0
- package/dist/index.es229.js.map +1 -0
- package/dist/index.es23.js +3 -3
- package/dist/index.es23.js.map +1 -1
- package/dist/{index.es222.js → index.es230.js} +2 -2
- package/dist/index.es230.js.map +1 -0
- package/dist/index.es231.js +7 -8
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +28 -4
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es234.js +30 -0
- package/dist/index.es234.js.map +1 -0
- package/dist/index.es235.js +7 -0
- package/dist/index.es235.js.map +1 -0
- package/dist/index.es236.js +11 -0
- package/dist/index.es236.js.map +1 -0
- package/dist/index.es239.js +8 -6
- package/dist/index.es239.js.map +1 -1
- package/dist/index.es24.js +6 -6
- package/dist/index.es240.js +7 -0
- package/dist/index.es240.js.map +1 -0
- package/dist/index.es245.js +8 -27
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +24 -25
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +6 -116
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es249.js +27 -59
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es25.js +3 -3
- package/dist/index.es25.js.map +1 -1
- package/dist/{index.es242.js → index.es250.js} +2 -2
- package/dist/index.es250.js.map +1 -0
- package/dist/{index.es243.js → index.es251.js} +2 -2
- package/dist/index.es251.js.map +1 -0
- package/dist/index.es253.js +30 -0
- package/dist/index.es253.js.map +1 -0
- package/dist/index.es254.js +31 -0
- package/dist/index.es254.js.map +1 -0
- package/dist/index.es255.js +119 -0
- package/dist/index.es255.js.map +1 -0
- package/dist/index.es257.js +62 -0
- package/dist/index.es257.js.map +1 -0
- package/dist/index.es26.js +2 -2
- package/dist/index.es266.js +2 -0
- package/dist/index.es266.js.map +1 -0
- package/dist/index.es27.js +1 -1
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es28.js +3 -3
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es29.js +4 -4
- package/dist/index.es294.js +124 -8
- package/dist/index.es294.js.map +1 -1
- package/dist/index.es3.js +6 -6
- package/dist/index.es30.js +4 -4
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es302.js +11 -0
- package/dist/index.es302.js.map +1 -0
- package/dist/{index.es299.js → index.es307.js} +9 -9
- package/dist/{index.es299.js.map → index.es307.js.map} +1 -1
- package/dist/index.es309.js +139 -0
- package/dist/index.es309.js.map +1 -0
- package/dist/index.es31.js +2 -2
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es310.js +11 -0
- package/dist/index.es310.js.map +1 -0
- package/dist/index.es311.js +2 -136
- package/dist/index.es311.js.map +1 -1
- package/dist/index.es312.js +32 -7
- package/dist/index.es312.js.map +1 -1
- package/dist/index.es313.js +406 -2
- package/dist/index.es313.js.map +1 -1
- package/dist/index.es314.js +3672 -30
- package/dist/index.es314.js.map +1 -1
- package/dist/index.es315.js +5 -244
- package/dist/index.es315.js.map +1 -1
- package/dist/index.es316.js +2 -7
- package/dist/index.es316.js.map +1 -1
- package/dist/index.es317.js +2 -27
- package/dist/index.es317.js.map +1 -1
- package/dist/index.es318.js +2 -68
- package/dist/index.es318.js.map +1 -1
- package/dist/index.es32.js +2 -2
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es320.js +15 -33
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es323.js +7 -15
- package/dist/index.es323.js.map +1 -1
- package/dist/index.es324.js +30 -0
- package/dist/index.es324.js.map +1 -0
- package/dist/index.es325.js +71 -0
- package/dist/index.es325.js.map +1 -0
- package/dist/{index.es319.js → index.es326.js} +2 -2
- package/dist/{index.es319.js.map → index.es326.js.map} +1 -1
- package/dist/index.es327.js +32 -5
- package/dist/index.es327.js.map +1 -1
- package/dist/index.es328.js +621 -24
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es329.js +10 -68
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es33.js +1 -1
- package/dist/index.es33.js.map +1 -1
- package/dist/{index.es359.js → index.es330.js} +1 -1
- package/dist/{index.es359.js.map → index.es330.js.map} +1 -1
- package/dist/index.es331.js +56 -0
- package/dist/index.es331.js.map +1 -0
- package/dist/{index.es360.js → index.es332.js} +5 -5
- package/dist/{index.es360.js.map → index.es332.js.map} +1 -1
- package/dist/{index.es361.js → index.es333.js} +2 -2
- package/dist/{index.es361.js.map → index.es333.js.map} +1 -1
- package/dist/index.es334.js +128 -0
- package/dist/index.es334.js.map +1 -0
- package/dist/index.es335.js +18 -0
- package/dist/index.es335.js.map +1 -0
- package/dist/index.es336.js +138 -0
- package/dist/index.es336.js.map +1 -0
- package/dist/{index.es362.js → index.es337.js} +11 -11
- package/dist/{index.es362.js.map → index.es337.js.map} +1 -1
- package/dist/index.es338.js +17 -0
- package/dist/index.es338.js.map +1 -0
- package/dist/index.es339.js +72 -0
- package/dist/index.es339.js.map +1 -0
- package/dist/index.es34.js +2 -2
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es340.js +181 -0
- package/dist/index.es340.js.map +1 -0
- package/dist/index.es341.js +47 -122
- package/dist/index.es341.js.map +1 -1
- package/dist/index.es342.js +8 -134
- package/dist/index.es342.js.map +1 -1
- package/dist/index.es343.js +4 -14
- package/dist/index.es343.js.map +1 -1
- package/dist/index.es344.js +8 -11
- package/dist/index.es344.js.map +1 -1
- package/dist/index.es345.js +204 -8
- package/dist/index.es345.js.map +1 -1
- package/dist/index.es346.js +22 -50
- package/dist/index.es346.js.map +1 -1
- package/dist/index.es347.js +24 -52
- package/dist/index.es347.js.map +1 -1
- package/dist/{index.es368.js → index.es348.js} +4 -4
- package/dist/{index.es368.js.map → index.es348.js.map} +1 -1
- package/dist/index.es349.js +9 -0
- package/dist/index.es349.js.map +1 -0
- package/dist/index.es35.js +2 -2
- package/dist/index.es35.js.map +1 -1
- package/dist/{index.es369.js → index.es350.js} +1 -1
- package/dist/{index.es369.js.map → index.es350.js.map} +1 -1
- package/dist/{index.es370.js → index.es351.js} +5 -5
- package/dist/{index.es370.js.map → index.es351.js.map} +1 -1
- package/dist/index.es352.js +8 -0
- package/dist/{index.es371.js.map → index.es352.js.map} +1 -1
- package/dist/index.es353.js +5 -3675
- package/dist/index.es353.js.map +1 -1
- package/dist/index.es354.js +3 -6
- package/dist/index.es354.js.map +1 -1
- package/dist/index.es355.js +24 -2
- package/dist/index.es355.js.map +1 -1
- package/dist/index.es356.js +113 -0
- package/dist/index.es356.js.map +1 -0
- package/dist/index.es357.js +16 -2
- package/dist/index.es357.js.map +1 -1
- package/dist/index.es36.js +2 -2
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es363.js +514 -169
- package/dist/index.es363.js.map +1 -1
- package/dist/index.es364.js +126 -3
- package/dist/index.es364.js.map +1 -1
- package/dist/index.es365.js +128 -11
- package/dist/index.es365.js.map +1 -1
- package/dist/index.es37.js +6 -6
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es376.js +67 -54
- package/dist/index.es376.js.map +1 -1
- package/dist/index.es377.js +9 -8
- package/dist/index.es377.js.map +1 -1
- package/dist/index.es378.js +14 -6
- package/dist/index.es378.js.map +1 -1
- package/dist/index.es379.js +59 -530
- package/dist/index.es379.js.map +1 -1
- package/dist/index.es38.js +4 -4
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es380.js +65 -5
- package/dist/index.es380.js.map +1 -1
- package/dist/index.es381.js +4 -3
- package/dist/index.es381.js.map +1 -1
- package/dist/index.es382.js +22 -23
- package/dist/index.es382.js.map +1 -1
- package/dist/index.es383.js +23 -110
- package/dist/index.es383.js.map +1 -1
- package/dist/index.es384.js +12 -15
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +27 -39
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es386.js +5 -2
- package/dist/index.es386.js.map +1 -1
- package/dist/index.es389.js +5 -3
- package/dist/index.es389.js.map +1 -1
- package/dist/index.es39.js +3 -3
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es390.js +4 -2
- package/dist/index.es390.js.map +1 -1
- package/dist/index.es391.js +4 -3
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +9 -4
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es393.js +47 -514
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es394.js +7 -126
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es395.js +5 -128
- package/dist/index.es395.js.map +1 -1
- package/dist/index.es396.js +522 -54
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es397.js +40 -69
- package/dist/index.es397.js.map +1 -1
- package/dist/index.es398.js +2 -9
- package/dist/index.es398.js.map +1 -1
- package/dist/index.es399.js +2 -14
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es4.js +7 -7
- package/dist/index.es40.js +3 -3
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es400.js +2 -62
- package/dist/index.es400.js.map +1 -1
- package/dist/index.es401.js +3 -4
- package/dist/index.es401.js.map +1 -1
- package/dist/index.es402.js +2 -4
- package/dist/index.es402.js.map +1 -1
- package/dist/index.es403.js +3 -22
- package/dist/index.es403.js.map +1 -1
- package/dist/index.es404.js +5 -23
- package/dist/index.es404.js.map +1 -1
- package/dist/index.es405.js +4 -13
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es41.js +3 -3
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js +2 -2
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js +4 -4
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js +4 -4
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +3 -3
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +3 -3
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +2 -2
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +3 -3
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +1 -1
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +4 -4
- package/dist/index.es50.js +1 -1
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +2 -2
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +3 -3
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +1 -1
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +3 -3
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +2 -2
- package/dist/index.es56.js +2 -2
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +1 -1
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +1 -1
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +3 -3
- package/dist/index.es6.js +2 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es60.js +2 -2
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js +3 -3
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js +2 -2
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js +2 -2
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js +5 -5
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js +2 -2
- package/dist/index.es67.js +3 -3
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +2 -2
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +1 -1
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es7.js +2 -2
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es70.js +2 -2
- package/dist/index.es71.js +4 -4
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +1 -1
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +1 -1
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +1 -1
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +1 -1
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +1 -1
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +1 -1
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +1 -1
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es8.js +2 -2
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es80.js +1 -1
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +1 -1
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es83.js +1 -1
- package/dist/index.es83.js.map +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es84.js.map +1 -1
- package/dist/index.es85.js +1 -1
- package/dist/index.es85.js.map +1 -1
- package/dist/index.es86.js +3 -3
- package/dist/index.es86.js.map +1 -1
- package/dist/index.es87.js +2 -2
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es88.js +4 -4
- package/dist/index.es88.js.map +1 -1
- package/dist/index.es89.js +2 -2
- package/dist/index.es9.js +4 -4
- package/dist/index.es90.js +1 -1
- package/dist/index.es90.js.map +1 -1
- package/dist/index.es91.js +1 -1
- package/dist/index.es91.js.map +1 -1
- package/dist/index.es92.js +4 -4
- package/dist/index.es92.js.map +1 -1
- package/dist/index.es93.js +1 -1
- package/dist/index.es94.js +2 -2
- package/dist/index.es94.js.map +1 -1
- package/dist/index.es95.js +3 -3
- package/dist/index.es95.js.map +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es96.js.map +1 -1
- package/dist/index.es97.js +1 -1
- package/dist/index.es97.js.map +1 -1
- package/dist/index.es98.js +2 -2
- package/dist/index.es98.js.map +1 -1
- package/dist/index.es99.js +2 -2
- package/dist/index.es99.js.map +1 -1
- package/package.json +109 -109
- package/readme.md +42 -42
- package/dist/components/ui/EditorialWidgetActionBanner/EditorialWidgetActionBanner.css +0 -1
- package/dist/index.cjs179.js +0 -2
- package/dist/index.cjs179.js.map +0 -1
- package/dist/index.cjs181.js.map +0 -1
- package/dist/index.cjs183.js.map +0 -1
- package/dist/index.cjs184.js +0 -2
- package/dist/index.cjs184.js.map +0 -1
- package/dist/index.cjs188.js.map +0 -1
- package/dist/index.cjs195.js +0 -2
- package/dist/index.cjs195.js.map +0 -1
- package/dist/index.cjs201.js +0 -2
- package/dist/index.cjs201.js.map +0 -1
- package/dist/index.cjs202.js +0 -2
- package/dist/index.cjs202.js.map +0 -1
- package/dist/index.cjs213.js +0 -2
- package/dist/index.cjs213.js.map +0 -1
- package/dist/index.cjs220.js +0 -6
- package/dist/index.cjs220.js.map +0 -1
- package/dist/index.cjs222.js.map +0 -1
- package/dist/index.cjs223.js +0 -2
- package/dist/index.cjs223.js.map +0 -1
- package/dist/index.cjs224.js +0 -2
- package/dist/index.cjs224.js.map +0 -1
- package/dist/index.cjs227.js +0 -2
- package/dist/index.cjs227.js.map +0 -1
- package/dist/index.cjs237.js +0 -2
- package/dist/index.cjs237.js.map +0 -1
- package/dist/index.cjs238.js +0 -2
- package/dist/index.cjs238.js.map +0 -1
- package/dist/index.cjs241.js +0 -2
- package/dist/index.cjs241.js.map +0 -1
- package/dist/index.cjs242.js.map +0 -1
- package/dist/index.cjs243.js.map +0 -1
- package/dist/index.cjs258.js +0 -2
- package/dist/index.cjs258.js.map +0 -1
- package/dist/index.cjs286.js +0 -8
- package/dist/index.cjs286.js.map +0 -1
- package/dist/index.cjs304.js +0 -2
- package/dist/index.cjs304.js.map +0 -1
- package/dist/index.cjs321.js +0 -2
- package/dist/index.cjs321.js.map +0 -1
- package/dist/index.cjs322.js +0 -2
- package/dist/index.cjs322.js.map +0 -1
- package/dist/index.cjs358.js +0 -2
- package/dist/index.cjs358.js.map +0 -1
- package/dist/index.cjs366.js +0 -2
- package/dist/index.cjs366.js.map +0 -1
- package/dist/index.cjs367.js +0 -2
- package/dist/index.cjs367.js.map +0 -1
- package/dist/index.cjs371.js +0 -2
- package/dist/index.cjs372.js +0 -2
- package/dist/index.cjs372.js.map +0 -1
- package/dist/index.cjs373.js +0 -2
- package/dist/index.cjs373.js.map +0 -1
- package/dist/index.cjs374.js +0 -2
- package/dist/index.cjs374.js.map +0 -1
- package/dist/index.cjs375.js +0 -2
- package/dist/index.cjs375.js.map +0 -1
- package/dist/index.cjs387.js +0 -2
- package/dist/index.cjs387.js.map +0 -1
- package/dist/index.cjs388.js +0 -2
- package/dist/index.cjs388.js.map +0 -1
- package/dist/index.cjs406.js +0 -2
- package/dist/index.cjs406.js.map +0 -1
- package/dist/index.cjs407.js +0 -2
- package/dist/index.cjs407.js.map +0 -1
- package/dist/index.es179.js +0 -6
- package/dist/index.es179.js.map +0 -1
- package/dist/index.es181.js.map +0 -1
- package/dist/index.es183.js.map +0 -1
- package/dist/index.es184.js +0 -5
- package/dist/index.es184.js.map +0 -1
- package/dist/index.es188.js.map +0 -1
- package/dist/index.es195.js +0 -25
- package/dist/index.es195.js.map +0 -1
- package/dist/index.es201.js +0 -79
- package/dist/index.es201.js.map +0 -1
- package/dist/index.es202.js +0 -146
- package/dist/index.es202.js.map +0 -1
- package/dist/index.es213.js +0 -6
- package/dist/index.es213.js.map +0 -1
- package/dist/index.es220.js +0 -262
- package/dist/index.es220.js.map +0 -1
- package/dist/index.es222.js.map +0 -1
- package/dist/index.es223.js +0 -10
- package/dist/index.es223.js.map +0 -1
- package/dist/index.es224.js +0 -31
- package/dist/index.es224.js.map +0 -1
- package/dist/index.es227.js +0 -7
- package/dist/index.es227.js.map +0 -1
- package/dist/index.es237.js +0 -11
- package/dist/index.es237.js.map +0 -1
- package/dist/index.es238.js +0 -30
- package/dist/index.es238.js.map +0 -1
- package/dist/index.es241.js +0 -30
- package/dist/index.es241.js.map +0 -1
- package/dist/index.es242.js.map +0 -1
- package/dist/index.es243.js.map +0 -1
- package/dist/index.es258.js +0 -2
- package/dist/index.es258.js.map +0 -1
- package/dist/index.es286.js +0 -127
- package/dist/index.es286.js.map +0 -1
- package/dist/index.es304.js +0 -6
- package/dist/index.es304.js.map +0 -1
- package/dist/index.es321.js +0 -625
- package/dist/index.es321.js.map +0 -1
- package/dist/index.es322.js +0 -14
- package/dist/index.es322.js.map +0 -1
- package/dist/index.es358.js +0 -5
- package/dist/index.es358.js.map +0 -1
- package/dist/index.es366.js +0 -208
- package/dist/index.es366.js.map +0 -1
- package/dist/index.es367.js +0 -25
- package/dist/index.es367.js.map +0 -1
- package/dist/index.es371.js +0 -8
- package/dist/index.es372.js +0 -8
- package/dist/index.es372.js.map +0 -1
- package/dist/index.es373.js +0 -7
- package/dist/index.es373.js.map +0 -1
- package/dist/index.es374.js +0 -8
- package/dist/index.es374.js.map +0 -1
- package/dist/index.es375.js +0 -13
- package/dist/index.es375.js.map +0 -1
- package/dist/index.es387.js +0 -5
- package/dist/index.es387.js.map +0 -1
- package/dist/index.es388.js +0 -5
- package/dist/index.es388.js.map +0 -1
- package/dist/index.es406.js +0 -31
- package/dist/index.es406.js.map +0 -1
- package/dist/index.es407.js +0 -8
- package/dist/index.es407.js.map +0 -1
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.es160.js
CHANGED
@@ -1,1804 +1,467 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
import { DATE_SHORT as se, DATE_MED as xe, DATE_MED_WITH_WEEKDAY as Ye, DATE_FULL as Ze, DATE_HUGE as je, TIME_SIMPLE as qe, TIME_WITH_SECONDS as Ge, TIME_WITH_SHORT_OFFSET as Re, TIME_WITH_LONG_OFFSET as $e, TIME_24_SIMPLE as Pe, TIME_24_WITH_SECONDS as Qe, TIME_24_WITH_SHORT_OFFSET as Je, TIME_24_WITH_LONG_OFFSET as Ke, DATETIME_SHORT as Be, DATETIME_SHORT_WITH_SECONDS as Xe, DATETIME_MED as et, DATETIME_MED_WITH_SECONDS as tt, DATETIME_MED_WITH_WEEKDAY as nt, DATETIME_FULL as it, DATETIME_FULL_WITH_SECONDS as rt, DATETIME_HUGE as st, DATETIME_HUGE_WITH_SECONDS as at } from "./index.es171.js";
|
15
|
-
import { InvalidArgumentError as w, ConflictingSpecificationError as L, InvalidDateTimeError as ot, InvalidUnitError as lt } from "./index.es172.js";
|
16
|
-
import N from "./index.es173.js";
|
17
|
-
const Z = "Invalid DateTime", ut = 864e13;
|
18
|
-
function b(n) {
|
19
|
-
return new N("unsupported zone", `the zone "${n.name}" is not supported`);
|
1
|
+
import c, { friendlyDateTime as f } from "./index.es159.js";
|
2
|
+
import h from "./index.es3.js";
|
3
|
+
import S from "./index.es4.js";
|
4
|
+
import { InvalidArgumentError as v, InvalidIntervalError as p } from "./index.es171.js";
|
5
|
+
import V from "./index.es172.js";
|
6
|
+
import O from "./index.es162.js";
|
7
|
+
import { DATE_SHORT as D } from "./index.es170.js";
|
8
|
+
const d = "Invalid Interval";
|
9
|
+
function I(m, t) {
|
10
|
+
return !m || !m.isValid ? a.invalid("missing or invalid start") : !t || !t.isValid ? a.invalid("missing or invalid end") : t < m ? a.invalid(
|
11
|
+
"end before start",
|
12
|
+
`The end of an interval must be after its start, but you had start=${m.toISO()} and end=${t.toISO()}`
|
13
|
+
) : null;
|
20
14
|
}
|
21
|
-
|
22
|
-
return n.weekData === null && (n.weekData = A(n.c)), n.weekData;
|
23
|
-
}
|
24
|
-
function q(n) {
|
25
|
-
return n.localWeekData === null && (n.localWeekData = A(
|
26
|
-
n.c,
|
27
|
-
n.loc.getMinDaysInFirstWeek(),
|
28
|
-
n.loc.getStartOfWeek()
|
29
|
-
)), n.localWeekData;
|
30
|
-
}
|
31
|
-
function k(n, e) {
|
32
|
-
const t = {
|
33
|
-
ts: n.ts,
|
34
|
-
zone: n.zone,
|
35
|
-
c: n.c,
|
36
|
-
o: n.o,
|
37
|
-
loc: n.loc,
|
38
|
-
invalid: n.invalid
|
39
|
-
};
|
40
|
-
return new l({ ...t, ...e, old: t });
|
41
|
-
}
|
42
|
-
function me(n, e, t) {
|
43
|
-
let i = n - e * 60 * 1e3;
|
44
|
-
const r = t.offset(i);
|
45
|
-
if (e === r)
|
46
|
-
return [i, e];
|
47
|
-
i -= (r - e) * 60 * 1e3;
|
48
|
-
const a = t.offset(i);
|
49
|
-
return r === a ? [i, r] : [n - Math.min(r, a) * 60 * 1e3, Math.max(r, a)];
|
50
|
-
}
|
51
|
-
function z(n, e) {
|
52
|
-
n += e * 60 * 1e3;
|
53
|
-
const t = new Date(n);
|
54
|
-
return {
|
55
|
-
year: t.getUTCFullYear(),
|
56
|
-
month: t.getUTCMonth() + 1,
|
57
|
-
day: t.getUTCDate(),
|
58
|
-
hour: t.getUTCHours(),
|
59
|
-
minute: t.getUTCMinutes(),
|
60
|
-
second: t.getUTCSeconds(),
|
61
|
-
millisecond: t.getUTCMilliseconds()
|
62
|
-
};
|
63
|
-
}
|
64
|
-
function C(n, e, t) {
|
65
|
-
return me(P(n), e, t);
|
66
|
-
}
|
67
|
-
function ae(n, e) {
|
68
|
-
const t = n.o, i = n.c.year + Math.trunc(e.years), r = n.c.month + Math.trunc(e.months) + Math.trunc(e.quarters) * 3, a = {
|
69
|
-
...n.c,
|
70
|
-
year: i,
|
71
|
-
month: r,
|
72
|
-
day: Math.min(n.c.day, R(i, r)) + Math.trunc(e.days) + Math.trunc(e.weeks) * 7
|
73
|
-
}, s = E.fromObject({
|
74
|
-
years: e.years - Math.trunc(e.years),
|
75
|
-
quarters: e.quarters - Math.trunc(e.quarters),
|
76
|
-
months: e.months - Math.trunc(e.months),
|
77
|
-
weeks: e.weeks - Math.trunc(e.weeks),
|
78
|
-
days: e.days - Math.trunc(e.days),
|
79
|
-
hours: e.hours,
|
80
|
-
minutes: e.minutes,
|
81
|
-
seconds: e.seconds,
|
82
|
-
milliseconds: e.milliseconds
|
83
|
-
}).as("milliseconds"), o = P(a);
|
84
|
-
let [u, c] = me(o, t, n.zone);
|
85
|
-
return s !== 0 && (u += s, c = n.zone.offset(u)), { ts: u, o: c };
|
86
|
-
}
|
87
|
-
function g(n, e, t, i, r, a) {
|
88
|
-
const { setZone: s, zone: o } = t;
|
89
|
-
if (n && Object.keys(n).length !== 0 || e) {
|
90
|
-
const u = e || o, c = l.fromObject(n, {
|
91
|
-
...t,
|
92
|
-
zone: u,
|
93
|
-
specificOffset: a
|
94
|
-
});
|
95
|
-
return s ? c : c.setZone(o);
|
96
|
-
} else
|
97
|
-
return l.invalid(
|
98
|
-
new N("unparsable", `the input "${r}" can't be parsed as ${i}`)
|
99
|
-
);
|
100
|
-
}
|
101
|
-
function H(n, e, t = !0) {
|
102
|
-
return n.isValid ? O.create(y.create("en-US"), {
|
103
|
-
allowZ: t,
|
104
|
-
forceSimple: !0
|
105
|
-
}).formatDateTimeFromString(n, e) : null;
|
106
|
-
}
|
107
|
-
function G(n, e) {
|
108
|
-
const t = n.c.year > 9999 || n.c.year < 0;
|
109
|
-
let i = "";
|
110
|
-
return t && n.c.year >= 0 && (i += "+"), i += m(n.c.year, t ? 6 : 4), e ? (i += "-", i += m(n.c.month), i += "-", i += m(n.c.day)) : (i += m(n.c.month), i += m(n.c.day)), i;
|
111
|
-
}
|
112
|
-
function oe(n, e, t, i, r, a) {
|
113
|
-
let s = m(n.c.hour);
|
114
|
-
return e ? (s += ":", s += m(n.c.minute), (n.c.millisecond !== 0 || n.c.second !== 0 || !t) && (s += ":")) : s += m(n.c.minute), (n.c.millisecond !== 0 || n.c.second !== 0 || !t) && (s += m(n.c.second), (n.c.millisecond !== 0 || !i) && (s += ".", s += m(n.c.millisecond, 3))), r && (n.isOffsetFixed && n.offset === 0 && !a ? s += "Z" : n.o < 0 ? (s += "-", s += m(Math.trunc(-n.o / 60)), s += ":", s += m(Math.trunc(-n.o % 60))) : (s += "+", s += m(Math.trunc(n.o / 60)), s += ":", s += m(Math.trunc(n.o % 60)))), a && (s += "[" + n.zone.ianaName + "]"), s;
|
115
|
-
}
|
116
|
-
const ye = {
|
117
|
-
month: 1,
|
118
|
-
day: 1,
|
119
|
-
hour: 0,
|
120
|
-
minute: 0,
|
121
|
-
second: 0,
|
122
|
-
millisecond: 0
|
123
|
-
}, ct = {
|
124
|
-
weekNumber: 1,
|
125
|
-
weekday: 1,
|
126
|
-
hour: 0,
|
127
|
-
minute: 0,
|
128
|
-
second: 0,
|
129
|
-
millisecond: 0
|
130
|
-
}, ft = {
|
131
|
-
ordinal: 1,
|
132
|
-
hour: 0,
|
133
|
-
minute: 0,
|
134
|
-
second: 0,
|
135
|
-
millisecond: 0
|
136
|
-
}, Te = ["year", "month", "day", "hour", "minute", "second", "millisecond"], dt = [
|
137
|
-
"weekYear",
|
138
|
-
"weekNumber",
|
139
|
-
"weekday",
|
140
|
-
"hour",
|
141
|
-
"minute",
|
142
|
-
"second",
|
143
|
-
"millisecond"
|
144
|
-
], ht = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
|
145
|
-
function mt(n) {
|
146
|
-
const e = {
|
147
|
-
year: "year",
|
148
|
-
years: "year",
|
149
|
-
month: "month",
|
150
|
-
months: "month",
|
151
|
-
day: "day",
|
152
|
-
days: "day",
|
153
|
-
hour: "hour",
|
154
|
-
hours: "hour",
|
155
|
-
minute: "minute",
|
156
|
-
minutes: "minute",
|
157
|
-
quarter: "quarter",
|
158
|
-
quarters: "quarter",
|
159
|
-
second: "second",
|
160
|
-
seconds: "second",
|
161
|
-
millisecond: "millisecond",
|
162
|
-
milliseconds: "millisecond",
|
163
|
-
weekday: "weekday",
|
164
|
-
weekdays: "weekday",
|
165
|
-
weeknumber: "weekNumber",
|
166
|
-
weeksnumber: "weekNumber",
|
167
|
-
weeknumbers: "weekNumber",
|
168
|
-
weekyear: "weekYear",
|
169
|
-
weekyears: "weekYear",
|
170
|
-
ordinal: "ordinal"
|
171
|
-
}[n.toLowerCase()];
|
172
|
-
if (!e) throw new lt(n);
|
173
|
-
return e;
|
174
|
-
}
|
175
|
-
function le(n) {
|
176
|
-
switch (n.toLowerCase()) {
|
177
|
-
case "localweekday":
|
178
|
-
case "localweekdays":
|
179
|
-
return "localWeekday";
|
180
|
-
case "localweeknumber":
|
181
|
-
case "localweeknumbers":
|
182
|
-
return "localWeekNumber";
|
183
|
-
case "localweekyear":
|
184
|
-
case "localweekyears":
|
185
|
-
return "localWeekYear";
|
186
|
-
default:
|
187
|
-
return mt(n);
|
188
|
-
}
|
189
|
-
}
|
190
|
-
function yt(n) {
|
191
|
-
if (_ === void 0 && (_ = T.now()), n.type !== "iana")
|
192
|
-
return n.offset(_);
|
193
|
-
const e = n.name;
|
194
|
-
let t = $.get(e);
|
195
|
-
return t === void 0 && (t = n.offset(_), $.set(e, t)), t;
|
196
|
-
}
|
197
|
-
function ue(n, e) {
|
198
|
-
const t = S(e.zone, T.defaultZone);
|
199
|
-
if (!t.isValid)
|
200
|
-
return l.invalid(b(t));
|
201
|
-
const i = y.fromObject(e);
|
202
|
-
let r, a;
|
203
|
-
if (f(n.year))
|
204
|
-
r = T.now();
|
205
|
-
else {
|
206
|
-
for (const u of Te)
|
207
|
-
f(n[u]) && (n[u] = ye[u]);
|
208
|
-
const s = de(n) || he(n);
|
209
|
-
if (s)
|
210
|
-
return l.invalid(s);
|
211
|
-
const o = yt(t);
|
212
|
-
[r, a] = C(n, o, t);
|
213
|
-
}
|
214
|
-
return new l({ ts: r, zone: t, loc: i, o: a });
|
215
|
-
}
|
216
|
-
function ce(n, e, t) {
|
217
|
-
const i = f(t.round) ? !0 : t.round, r = (s, o) => (s = ve(s, i || t.calendary ? 0 : 2, !0), e.loc.clone(t).relFormatter(t).format(s, o)), a = (s) => t.calendary ? e.hasSame(n, s) ? 0 : e.startOf(s).diff(n.startOf(s), s).get(s) : e.diff(n, s).get(s);
|
218
|
-
if (t.unit)
|
219
|
-
return r(a(t.unit), t.unit);
|
220
|
-
for (const s of t.units) {
|
221
|
-
const o = a(s);
|
222
|
-
if (Math.abs(o) >= 1)
|
223
|
-
return r(o, s);
|
224
|
-
}
|
225
|
-
return r(n > e ? -0 : 0, t.units[t.units.length - 1]);
|
226
|
-
}
|
227
|
-
function fe(n) {
|
228
|
-
let e = {}, t;
|
229
|
-
return n.length > 0 && typeof n[n.length - 1] == "object" ? (e = n[n.length - 1], t = Array.from(n).slice(0, n.length - 1)) : t = Array.from(n), [e, t];
|
230
|
-
}
|
231
|
-
let _;
|
232
|
-
const $ = /* @__PURE__ */ new Map();
|
233
|
-
class l {
|
234
|
-
/**
|
235
|
-
* @access private
|
236
|
-
*/
|
237
|
-
constructor(e) {
|
238
|
-
const t = e.zone || T.defaultZone;
|
239
|
-
let i = e.invalid || (Number.isNaN(e.ts) ? new N("invalid input") : null) || (t.isValid ? null : b(t));
|
240
|
-
this.ts = f(e.ts) ? T.now() : e.ts;
|
241
|
-
let r = null, a = null;
|
242
|
-
if (!i)
|
243
|
-
if (e.old && e.old.ts === this.ts && e.old.zone.equals(t))
|
244
|
-
[r, a] = [e.old.c, e.old.o];
|
245
|
-
else {
|
246
|
-
const o = U(e.o) && !e.old ? e.o : t.offset(this.ts);
|
247
|
-
r = z(this.ts, o), i = Number.isNaN(r.year) ? new N("invalid input") : null, r = i ? null : r, a = i ? null : o;
|
248
|
-
}
|
249
|
-
this._zone = t, this.loc = e.loc || y.create(), this.invalid = i, this.weekData = null, this.localWeekData = null, this.c = r, this.o = a, this.isLuxonDateTime = !0;
|
250
|
-
}
|
251
|
-
// CONSTRUCT
|
252
|
-
/**
|
253
|
-
* Create a DateTime for the current instant, in the system's time zone.
|
254
|
-
*
|
255
|
-
* Use Settings to override these default values if needed.
|
256
|
-
* @example DateTime.now().toISO() //~> now in the ISO format
|
257
|
-
* @return {DateTime}
|
258
|
-
*/
|
259
|
-
static now() {
|
260
|
-
return new l({});
|
261
|
-
}
|
262
|
-
/**
|
263
|
-
* Create a local DateTime
|
264
|
-
* @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used
|
265
|
-
* @param {number} [month=1] - The month, 1-indexed
|
266
|
-
* @param {number} [day=1] - The day of the month, 1-indexed
|
267
|
-
* @param {number} [hour=0] - The hour of the day, in 24-hour time
|
268
|
-
* @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
|
269
|
-
* @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
|
270
|
-
* @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
|
271
|
-
* @example DateTime.local() //~> now
|
272
|
-
* @example DateTime.local({ zone: "America/New_York" }) //~> now, in US east coast time
|
273
|
-
* @example DateTime.local(2017) //~> 2017-01-01T00:00:00
|
274
|
-
* @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00
|
275
|
-
* @example DateTime.local(2017, 3, 12, { locale: "fr" }) //~> 2017-03-12T00:00:00, with a French locale
|
276
|
-
* @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00
|
277
|
-
* @example DateTime.local(2017, 3, 12, 5, { zone: "utc" }) //~> 2017-03-12T05:00:00, in UTC
|
278
|
-
* @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00
|
279
|
-
* @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10
|
280
|
-
* @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765
|
281
|
-
* @return {DateTime}
|
282
|
-
*/
|
283
|
-
static local() {
|
284
|
-
const [e, t] = fe(arguments), [i, r, a, s, o, u, c] = t;
|
285
|
-
return ue({ year: i, month: r, day: a, hour: s, minute: o, second: u, millisecond: c }, e);
|
286
|
-
}
|
287
|
-
/**
|
288
|
-
* Create a DateTime in UTC
|
289
|
-
* @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used
|
290
|
-
* @param {number} [month=1] - The month, 1-indexed
|
291
|
-
* @param {number} [day=1] - The day of the month
|
292
|
-
* @param {number} [hour=0] - The hour of the day, in 24-hour time
|
293
|
-
* @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
|
294
|
-
* @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
|
295
|
-
* @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
|
296
|
-
* @param {Object} options - configuration options for the DateTime
|
297
|
-
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
298
|
-
* @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance
|
299
|
-
* @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance
|
300
|
-
* @param {string} [options.weekSettings] - the week settings to set on the resulting DateTime instance
|
301
|
-
* @example DateTime.utc() //~> now
|
302
|
-
* @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z
|
303
|
-
* @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z
|
304
|
-
* @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z
|
305
|
-
* @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z
|
306
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z
|
307
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }) //~> 2017-03-12T05:45:00Z with a French locale
|
308
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z
|
309
|
-
* @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr" }) //~> 2017-03-12T05:45:10.765Z with a French locale
|
310
|
-
* @return {DateTime}
|
311
|
-
*/
|
312
|
-
static utc() {
|
313
|
-
const [e, t] = fe(arguments), [i, r, a, s, o, u, c] = t;
|
314
|
-
return e.zone = B.utcInstance, ue({ year: i, month: r, day: a, hour: s, minute: o, second: u, millisecond: c }, e);
|
315
|
-
}
|
15
|
+
class a {
|
316
16
|
/**
|
317
|
-
*
|
318
|
-
* @param {Date} date - a JavaScript Date object
|
319
|
-
* @param {Object} options - configuration options for the DateTime
|
320
|
-
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
321
|
-
* @return {DateTime}
|
17
|
+
* @private
|
322
18
|
*/
|
323
|
-
|
324
|
-
|
325
|
-
if (Number.isNaN(i))
|
326
|
-
return l.invalid("invalid input");
|
327
|
-
const r = S(t.zone, T.defaultZone);
|
328
|
-
return r.isValid ? new l({
|
329
|
-
ts: i,
|
330
|
-
zone: r,
|
331
|
-
loc: y.fromObject(t)
|
332
|
-
}) : l.invalid(b(r));
|
19
|
+
constructor(t) {
|
20
|
+
this.s = t.start, this.e = t.end, this.invalid = t.invalid || null, this.isLuxonInterval = !0;
|
333
21
|
}
|
334
22
|
/**
|
335
|
-
* Create
|
336
|
-
* @param {
|
337
|
-
* @param {
|
338
|
-
* @
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
* @param {Object} options - configuration options for the DateTime
|
360
|
-
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
361
|
-
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
362
|
-
* @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
|
363
|
-
* @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
|
364
|
-
* @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance
|
365
|
-
* @return {DateTime}
|
366
|
-
*/
|
367
|
-
static fromSeconds(e, t = {}) {
|
368
|
-
if (U(e))
|
369
|
-
return new l({
|
370
|
-
ts: e * 1e3,
|
371
|
-
zone: S(t.zone, T.defaultZone),
|
372
|
-
loc: y.fromObject(t)
|
373
|
-
});
|
374
|
-
throw new w("fromSeconds requires a numerical input");
|
375
|
-
}
|
376
|
-
/**
|
377
|
-
* Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.
|
378
|
-
* @param {Object} obj - the object to create the DateTime from
|
379
|
-
* @param {number} obj.year - a year, such as 1987
|
380
|
-
* @param {number} obj.month - a month, 1-12
|
381
|
-
* @param {number} obj.day - a day of the month, 1-31, depending on the month
|
382
|
-
* @param {number} obj.ordinal - day of the year, 1-365 or 366
|
383
|
-
* @param {number} obj.weekYear - an ISO week year
|
384
|
-
* @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year
|
385
|
-
* @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday
|
386
|
-
* @param {number} obj.localWeekYear - a week year, according to the locale
|
387
|
-
* @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale
|
388
|
-
* @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale
|
389
|
-
* @param {number} obj.hour - hour of the day, 0-23
|
390
|
-
* @param {number} obj.minute - minute of the hour, 0-59
|
391
|
-
* @param {number} obj.second - second of the minute, 0-59
|
392
|
-
* @param {number} obj.millisecond - millisecond of the second, 0-999
|
393
|
-
* @param {Object} opts - options for creating this DateTime
|
394
|
-
* @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()
|
395
|
-
* @param {string} [opts.locale='system\'s locale'] - a locale to set on the resulting DateTime instance
|
396
|
-
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
397
|
-
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
398
|
-
* @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
|
399
|
-
* @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'
|
400
|
-
* @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'
|
401
|
-
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06
|
402
|
-
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),
|
403
|
-
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })
|
404
|
-
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })
|
405
|
-
* @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'
|
406
|
-
* @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: "en-US" }).toISODate() //=> '2021-12-26'
|
407
|
-
* @return {DateTime}
|
408
|
-
*/
|
409
|
-
static fromObject(e, t = {}) {
|
410
|
-
e = e || {};
|
411
|
-
const i = S(t.zone, T.defaultZone);
|
412
|
-
if (!i.isValid)
|
413
|
-
return l.invalid(b(i));
|
414
|
-
const r = y.fromObject(t), a = X(e, le), { minDaysInFirstWeek: s, startOfWeek: o } = ne(a, r), u = T.now(), c = f(t.specificOffset) ? i.offset(u) : t.specificOffset, d = !f(a.ordinal), h = !f(a.year), p = !f(a.month) || !f(a.day), I = h || p, Q = a.weekYear || a.weekNumber;
|
415
|
-
if ((I || d) && Q)
|
416
|
-
throw new L(
|
417
|
-
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
418
|
-
);
|
419
|
-
if (p && d)
|
420
|
-
throw new L("Can't mix ordinal dates with month/day");
|
421
|
-
const x = Q || a.weekday && !I;
|
422
|
-
let V, W, D = z(u, c);
|
423
|
-
x ? (V = dt, W = ct, D = A(D, s, o)) : d ? (V = ht, W = ft, D = Y(D)) : (V = Te, W = ye);
|
424
|
-
let J = !1;
|
425
|
-
for (const v of V) {
|
426
|
-
const Oe = a[v];
|
427
|
-
f(Oe) ? J ? a[v] = W[v] : a[v] = D[v] : J = !0;
|
428
|
-
}
|
429
|
-
const we = x ? Ce(a, s, o) : d ? Ae(a) : de(a), K = we || he(a);
|
430
|
-
if (K)
|
431
|
-
return l.invalid(K);
|
432
|
-
const ke = x ? ie(a, s, o) : d ? re(a) : a, [ge, Ee] = C(ke, c, i), M = new l({
|
433
|
-
ts: ge,
|
434
|
-
zone: i,
|
435
|
-
o: Ee,
|
436
|
-
loc: r
|
23
|
+
* Create an invalid Interval.
|
24
|
+
* @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent
|
25
|
+
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
26
|
+
* @return {Interval}
|
27
|
+
*/
|
28
|
+
static invalid(t, i = null) {
|
29
|
+
if (!t)
|
30
|
+
throw new v("need to specify a reason the Interval is invalid");
|
31
|
+
const e = t instanceof V ? t : new V(t, i);
|
32
|
+
if (S.throwOnInvalid)
|
33
|
+
throw new p(e);
|
34
|
+
return new a({ invalid: e });
|
35
|
+
}
|
36
|
+
/**
|
37
|
+
* Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
|
38
|
+
* @param {DateTime|Date|Object} start
|
39
|
+
* @param {DateTime|Date|Object} end
|
40
|
+
* @return {Interval}
|
41
|
+
*/
|
42
|
+
static fromDateTimes(t, i) {
|
43
|
+
const e = f(t), s = f(i), r = I(e, s);
|
44
|
+
return r ?? new a({
|
45
|
+
start: e,
|
46
|
+
end: s
|
437
47
|
});
|
438
|
-
return a.weekday && I && e.weekday !== M.weekday ? l.invalid(
|
439
|
-
"mismatched weekday",
|
440
|
-
`you can't specify both a weekday of ${a.weekday} and a date of ${M.toISO()}`
|
441
|
-
) : M.isValid ? M : l.invalid(M.invalid);
|
442
48
|
}
|
443
49
|
/**
|
444
|
-
* Create a DateTime
|
445
|
-
* @param {
|
446
|
-
* @param {Object}
|
447
|
-
* @
|
448
|
-
* @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
|
449
|
-
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
450
|
-
* @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance
|
451
|
-
* @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance
|
452
|
-
* @param {string} [opts.weekSettings] - the week settings to set on the resulting DateTime instance
|
453
|
-
* @example DateTime.fromISO('2016-05-25T09:08:34.123')
|
454
|
-
* @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')
|
455
|
-
* @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})
|
456
|
-
* @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})
|
457
|
-
* @example DateTime.fromISO('2016-W05-4')
|
458
|
-
* @return {DateTime}
|
50
|
+
* Create an Interval from a start DateTime and a Duration to extend to.
|
51
|
+
* @param {DateTime|Date|Object} start
|
52
|
+
* @param {Duration|Object|number} duration - the length of the Interval.
|
53
|
+
* @return {Interval}
|
459
54
|
*/
|
460
|
-
static
|
461
|
-
const
|
462
|
-
return
|
55
|
+
static after(t, i) {
|
56
|
+
const e = h.fromDurationLike(i), s = f(t);
|
57
|
+
return a.fromDateTimes(s, s.plus(e));
|
463
58
|
}
|
464
59
|
/**
|
465
|
-
* Create
|
466
|
-
* @param {
|
467
|
-
* @param {Object}
|
468
|
-
* @
|
469
|
-
* @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
|
470
|
-
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
471
|
-
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
472
|
-
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
473
|
-
* @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
|
474
|
-
* @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')
|
475
|
-
* @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')
|
476
|
-
* @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')
|
477
|
-
* @return {DateTime}
|
60
|
+
* Create an Interval from an end DateTime and a Duration to extend backwards to.
|
61
|
+
* @param {DateTime|Date|Object} end
|
62
|
+
* @param {Duration|Object|number} duration - the length of the Interval.
|
63
|
+
* @return {Interval}
|
478
64
|
*/
|
479
|
-
static
|
480
|
-
const
|
481
|
-
return
|
65
|
+
static before(t, i) {
|
66
|
+
const e = h.fromDurationLike(i), s = f(t);
|
67
|
+
return a.fromDateTimes(s.minus(e), s);
|
482
68
|
}
|
483
69
|
/**
|
484
|
-
* Create
|
485
|
-
*
|
486
|
-
* @param {string} text - the
|
487
|
-
* @param {Object} opts - options to
|
488
|
-
* @
|
489
|
-
* @
|
490
|
-
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
491
|
-
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
492
|
-
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
493
|
-
* @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
|
494
|
-
* @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')
|
495
|
-
* @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')
|
496
|
-
* @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')
|
497
|
-
* @return {DateTime}
|
70
|
+
* Create an Interval from an ISO 8601 string.
|
71
|
+
* Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.
|
72
|
+
* @param {string} text - the ISO string to parse
|
73
|
+
* @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}
|
74
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
75
|
+
* @return {Interval}
|
498
76
|
*/
|
499
|
-
static
|
500
|
-
const [
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
/**
|
528
|
-
* @deprecated use fromFormat instead
|
529
|
-
*/
|
530
|
-
static fromString(e, t, i = {}) {
|
531
|
-
return l.fromFormat(e, t, i);
|
532
|
-
}
|
533
|
-
/**
|
534
|
-
* Create a DateTime from a SQL date, time, or datetime
|
535
|
-
* Defaults to en-US if no locale has been specified, regardless of the system's locale
|
536
|
-
* @param {string} text - the string to parse
|
537
|
-
* @param {Object} opts - options to affect the creation
|
538
|
-
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
|
539
|
-
* @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
|
540
|
-
* @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
|
541
|
-
* @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
|
542
|
-
* @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance
|
543
|
-
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
544
|
-
* @example DateTime.fromSQL('2017-05-15')
|
545
|
-
* @example DateTime.fromSQL('2017-05-15 09:12:34')
|
546
|
-
* @example DateTime.fromSQL('2017-05-15 09:12:34.342')
|
547
|
-
* @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')
|
548
|
-
* @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')
|
549
|
-
* @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })
|
550
|
-
* @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })
|
551
|
-
* @example DateTime.fromSQL('09:12:34.342')
|
552
|
-
* @return {DateTime}
|
553
|
-
*/
|
554
|
-
static fromSQL(e, t = {}) {
|
555
|
-
const [i, r] = We(e);
|
556
|
-
return g(i, r, t, "SQL", e);
|
557
|
-
}
|
558
|
-
/**
|
559
|
-
* Create an invalid DateTime.
|
560
|
-
* @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.
|
561
|
-
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
562
|
-
* @return {DateTime}
|
563
|
-
*/
|
564
|
-
static invalid(e, t = null) {
|
565
|
-
if (!e)
|
566
|
-
throw new w("need to specify a reason the DateTime is invalid");
|
567
|
-
const i = e instanceof N ? e : new N(e, t);
|
568
|
-
if (T.throwOnInvalid)
|
569
|
-
throw new ot(i);
|
570
|
-
return new l({ invalid: i });
|
77
|
+
static fromISO(t, i) {
|
78
|
+
const [e, s] = (t || "").split("/", 2);
|
79
|
+
if (e && s) {
|
80
|
+
let r, n;
|
81
|
+
try {
|
82
|
+
r = c.fromISO(e, i), n = r.isValid;
|
83
|
+
} catch {
|
84
|
+
n = !1;
|
85
|
+
}
|
86
|
+
let u, l;
|
87
|
+
try {
|
88
|
+
u = c.fromISO(s, i), l = u.isValid;
|
89
|
+
} catch {
|
90
|
+
l = !1;
|
91
|
+
}
|
92
|
+
if (n && l)
|
93
|
+
return a.fromDateTimes(r, u);
|
94
|
+
if (n) {
|
95
|
+
const o = h.fromISO(s, i);
|
96
|
+
if (o.isValid)
|
97
|
+
return a.after(r, o);
|
98
|
+
} else if (l) {
|
99
|
+
const o = h.fromISO(e, i);
|
100
|
+
if (o.isValid)
|
101
|
+
return a.before(u, o);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
return a.invalid("unparsable", `the input "${t}" can't be parsed as ISO 8601`);
|
571
105
|
}
|
572
106
|
/**
|
573
|
-
* Check if an object is an
|
107
|
+
* Check if an object is an Interval. Works across context boundaries
|
574
108
|
* @param {object} o
|
575
109
|
* @return {boolean}
|
576
110
|
*/
|
577
|
-
static
|
578
|
-
return
|
111
|
+
static isInterval(t) {
|
112
|
+
return t && t.isLuxonInterval || !1;
|
579
113
|
}
|
580
114
|
/**
|
581
|
-
*
|
582
|
-
* @
|
583
|
-
* @param localeOpts
|
584
|
-
* @returns {string}
|
115
|
+
* Returns the start of the Interval
|
116
|
+
* @type {DateTime}
|
585
117
|
*/
|
586
|
-
|
587
|
-
|
588
|
-
return i ? i.map((r) => r ? r.val : null).join("") : null;
|
118
|
+
get start() {
|
119
|
+
return this.isValid ? this.s : null;
|
589
120
|
}
|
590
121
|
/**
|
591
|
-
*
|
592
|
-
*
|
593
|
-
* @param fmt
|
594
|
-
* @param localeOpts
|
595
|
-
* @returns {string}
|
122
|
+
* Returns the end of the Interval
|
123
|
+
* @type {DateTime}
|
596
124
|
*/
|
597
|
-
|
598
|
-
return
|
599
|
-
}
|
600
|
-
static resetCache() {
|
601
|
-
_ = void 0, $.clear();
|
125
|
+
get end() {
|
126
|
+
return this.isValid ? this.e : null;
|
602
127
|
}
|
603
|
-
// INFO
|
604
128
|
/**
|
605
|
-
*
|
606
|
-
* @param {string} unit - a unit such as 'minute' or 'day'
|
607
|
-
* @example DateTime.local(2017, 7, 4).get('month'); //=> 7
|
608
|
-
* @example DateTime.local(2017, 7, 4).get('day'); //=> 4
|
609
|
-
* @return {number}
|
610
|
-
*/
|
611
|
-
get(e) {
|
612
|
-
return this[e];
|
613
|
-
}
|
614
|
-
/**
|
615
|
-
* Returns whether the DateTime is valid. Invalid DateTimes occur when:
|
616
|
-
* * The DateTime was created from invalid calendar information, such as the 13th month or February 30
|
617
|
-
* * The DateTime was created by an operation on another invalid date
|
129
|
+
* Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.
|
618
130
|
* @type {boolean}
|
619
131
|
*/
|
620
132
|
get isValid() {
|
621
|
-
return this.
|
133
|
+
return this.invalidReason === null;
|
622
134
|
}
|
623
135
|
/**
|
624
|
-
* Returns an error code if this
|
136
|
+
* Returns an error code if this Interval is invalid, or null if the Interval is valid
|
625
137
|
* @type {string}
|
626
138
|
*/
|
627
139
|
get invalidReason() {
|
628
140
|
return this.invalid ? this.invalid.reason : null;
|
629
141
|
}
|
630
142
|
/**
|
631
|
-
* Returns an explanation of why this
|
143
|
+
* Returns an explanation of why this Interval became invalid, or null if the Interval is valid
|
632
144
|
* @type {string}
|
633
145
|
*/
|
634
146
|
get invalidExplanation() {
|
635
147
|
return this.invalid ? this.invalid.explanation : null;
|
636
148
|
}
|
637
149
|
/**
|
638
|
-
*
|
639
|
-
*
|
640
|
-
* @
|
641
|
-
*/
|
642
|
-
get locale() {
|
643
|
-
return this.isValid ? this.loc.locale : null;
|
644
|
-
}
|
645
|
-
/**
|
646
|
-
* Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime
|
647
|
-
*
|
648
|
-
* @type {string}
|
649
|
-
*/
|
650
|
-
get numberingSystem() {
|
651
|
-
return this.isValid ? this.loc.numberingSystem : null;
|
652
|
-
}
|
653
|
-
/**
|
654
|
-
* Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime
|
655
|
-
*
|
656
|
-
* @type {string}
|
657
|
-
*/
|
658
|
-
get outputCalendar() {
|
659
|
-
return this.isValid ? this.loc.outputCalendar : null;
|
660
|
-
}
|
661
|
-
/**
|
662
|
-
* Get the time zone associated with this DateTime.
|
663
|
-
* @type {Zone}
|
664
|
-
*/
|
665
|
-
get zone() {
|
666
|
-
return this._zone;
|
667
|
-
}
|
668
|
-
/**
|
669
|
-
* Get the name of the time zone.
|
670
|
-
* @type {string}
|
671
|
-
*/
|
672
|
-
get zoneName() {
|
673
|
-
return this.isValid ? this.zone.name : null;
|
674
|
-
}
|
675
|
-
/**
|
676
|
-
* Get the year
|
677
|
-
* @example DateTime.local(2017, 5, 25).year //=> 2017
|
678
|
-
* @type {number}
|
679
|
-
*/
|
680
|
-
get year() {
|
681
|
-
return this.isValid ? this.c.year : NaN;
|
682
|
-
}
|
683
|
-
/**
|
684
|
-
* Get the quarter
|
685
|
-
* @example DateTime.local(2017, 5, 25).quarter //=> 2
|
686
|
-
* @type {number}
|
687
|
-
*/
|
688
|
-
get quarter() {
|
689
|
-
return this.isValid ? Math.ceil(this.c.month / 3) : NaN;
|
690
|
-
}
|
691
|
-
/**
|
692
|
-
* Get the month (1-12).
|
693
|
-
* @example DateTime.local(2017, 5, 25).month //=> 5
|
694
|
-
* @type {number}
|
695
|
-
*/
|
696
|
-
get month() {
|
697
|
-
return this.isValid ? this.c.month : NaN;
|
698
|
-
}
|
699
|
-
/**
|
700
|
-
* Get the day of the month (1-30ish).
|
701
|
-
* @example DateTime.local(2017, 5, 25).day //=> 25
|
702
|
-
* @type {number}
|
703
|
-
*/
|
704
|
-
get day() {
|
705
|
-
return this.isValid ? this.c.day : NaN;
|
706
|
-
}
|
707
|
-
/**
|
708
|
-
* Get the hour of the day (0-23).
|
709
|
-
* @example DateTime.local(2017, 5, 25, 9).hour //=> 9
|
710
|
-
* @type {number}
|
711
|
-
*/
|
712
|
-
get hour() {
|
713
|
-
return this.isValid ? this.c.hour : NaN;
|
714
|
-
}
|
715
|
-
/**
|
716
|
-
* Get the minute of the hour (0-59).
|
717
|
-
* @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30
|
718
|
-
* @type {number}
|
719
|
-
*/
|
720
|
-
get minute() {
|
721
|
-
return this.isValid ? this.c.minute : NaN;
|
722
|
-
}
|
723
|
-
/**
|
724
|
-
* Get the second of the minute (0-59).
|
725
|
-
* @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52
|
726
|
-
* @type {number}
|
727
|
-
*/
|
728
|
-
get second() {
|
729
|
-
return this.isValid ? this.c.second : NaN;
|
730
|
-
}
|
731
|
-
/**
|
732
|
-
* Get the millisecond of the second (0-999).
|
733
|
-
* @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654
|
734
|
-
* @type {number}
|
735
|
-
*/
|
736
|
-
get millisecond() {
|
737
|
-
return this.isValid ? this.c.millisecond : NaN;
|
738
|
-
}
|
739
|
-
/**
|
740
|
-
* Get the week year
|
741
|
-
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
742
|
-
* @example DateTime.local(2014, 12, 31).weekYear //=> 2015
|
743
|
-
* @type {number}
|
744
|
-
*/
|
745
|
-
get weekYear() {
|
746
|
-
return this.isValid ? j(this).weekYear : NaN;
|
747
|
-
}
|
748
|
-
/**
|
749
|
-
* Get the week number of the week year (1-52ish).
|
750
|
-
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
751
|
-
* @example DateTime.local(2017, 5, 25).weekNumber //=> 21
|
752
|
-
* @type {number}
|
753
|
-
*/
|
754
|
-
get weekNumber() {
|
755
|
-
return this.isValid ? j(this).weekNumber : NaN;
|
756
|
-
}
|
757
|
-
/**
|
758
|
-
* Get the day of the week.
|
759
|
-
* 1 is Monday and 7 is Sunday
|
760
|
-
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
761
|
-
* @example DateTime.local(2014, 11, 31).weekday //=> 4
|
762
|
-
* @type {number}
|
763
|
-
*/
|
764
|
-
get weekday() {
|
765
|
-
return this.isValid ? j(this).weekday : NaN;
|
766
|
-
}
|
767
|
-
/**
|
768
|
-
* Returns true if this date is on a weekend according to the locale, false otherwise
|
769
|
-
* @returns {boolean}
|
770
|
-
*/
|
771
|
-
get isWeekend() {
|
772
|
-
return this.isValid && this.loc.getWeekendDays().includes(this.weekday);
|
773
|
-
}
|
774
|
-
/**
|
775
|
-
* Get the day of the week according to the locale.
|
776
|
-
* 1 is the first day of the week and 7 is the last day of the week.
|
777
|
-
* If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,
|
778
|
-
* @returns {number}
|
779
|
-
*/
|
780
|
-
get localWeekday() {
|
781
|
-
return this.isValid ? q(this).weekday : NaN;
|
782
|
-
}
|
783
|
-
/**
|
784
|
-
* Get the week number of the week year according to the locale. Different locales assign week numbers differently,
|
785
|
-
* because the week can start on different days of the week (see localWeekday) and because a different number of days
|
786
|
-
* is required for a week to count as the first week of a year.
|
787
|
-
* @returns {number}
|
788
|
-
*/
|
789
|
-
get localWeekNumber() {
|
790
|
-
return this.isValid ? q(this).weekNumber : NaN;
|
791
|
-
}
|
792
|
-
/**
|
793
|
-
* Get the week year according to the locale. Different locales assign week numbers (and therefor week years)
|
794
|
-
* differently, see localWeekNumber.
|
795
|
-
* @returns {number}
|
796
|
-
*/
|
797
|
-
get localWeekYear() {
|
798
|
-
return this.isValid ? q(this).weekYear : NaN;
|
799
|
-
}
|
800
|
-
/**
|
801
|
-
* Get the ordinal (meaning the day of the year)
|
802
|
-
* @example DateTime.local(2017, 5, 25).ordinal //=> 145
|
803
|
-
* @type {number|DateTime}
|
804
|
-
*/
|
805
|
-
get ordinal() {
|
806
|
-
return this.isValid ? Y(this.c).ordinal : NaN;
|
807
|
-
}
|
808
|
-
/**
|
809
|
-
* Get the human readable short month name, such as 'Oct'.
|
810
|
-
* Defaults to the system's locale if no locale has been specified
|
811
|
-
* @example DateTime.local(2017, 10, 30).monthShort //=> Oct
|
812
|
-
* @type {string}
|
813
|
-
*/
|
814
|
-
get monthShort() {
|
815
|
-
return this.isValid ? F.months("short", { locObj: this.loc })[this.month - 1] : null;
|
816
|
-
}
|
817
|
-
/**
|
818
|
-
* Get the human readable long month name, such as 'October'.
|
819
|
-
* Defaults to the system's locale if no locale has been specified
|
820
|
-
* @example DateTime.local(2017, 10, 30).monthLong //=> October
|
821
|
-
* @type {string}
|
822
|
-
*/
|
823
|
-
get monthLong() {
|
824
|
-
return this.isValid ? F.months("long", { locObj: this.loc })[this.month - 1] : null;
|
825
|
-
}
|
826
|
-
/**
|
827
|
-
* Get the human readable short weekday, such as 'Mon'.
|
828
|
-
* Defaults to the system's locale if no locale has been specified
|
829
|
-
* @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon
|
830
|
-
* @type {string}
|
831
|
-
*/
|
832
|
-
get weekdayShort() {
|
833
|
-
return this.isValid ? F.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null;
|
834
|
-
}
|
835
|
-
/**
|
836
|
-
* Get the human readable long weekday, such as 'Monday'.
|
837
|
-
* Defaults to the system's locale if no locale has been specified
|
838
|
-
* @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday
|
839
|
-
* @type {string}
|
840
|
-
*/
|
841
|
-
get weekdayLong() {
|
842
|
-
return this.isValid ? F.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null;
|
843
|
-
}
|
844
|
-
/**
|
845
|
-
* Get the UTC offset of this DateTime in minutes
|
846
|
-
* @example DateTime.now().offset //=> -240
|
847
|
-
* @example DateTime.utc().offset //=> 0
|
848
|
-
* @type {number}
|
849
|
-
*/
|
850
|
-
get offset() {
|
851
|
-
return this.isValid ? +this.o : NaN;
|
852
|
-
}
|
853
|
-
/**
|
854
|
-
* Get the short human name for the zone's current offset, for example "EST" or "EDT".
|
855
|
-
* Defaults to the system's locale if no locale has been specified
|
856
|
-
* @type {string}
|
857
|
-
*/
|
858
|
-
get offsetNameShort() {
|
859
|
-
return this.isValid ? this.zone.offsetName(this.ts, {
|
860
|
-
format: "short",
|
861
|
-
locale: this.locale
|
862
|
-
}) : null;
|
863
|
-
}
|
864
|
-
/**
|
865
|
-
* Get the long human name for the zone's current offset, for example "Eastern Standard Time" or "Eastern Daylight Time".
|
866
|
-
* Defaults to the system's locale if no locale has been specified
|
867
|
-
* @type {string}
|
868
|
-
*/
|
869
|
-
get offsetNameLong() {
|
870
|
-
return this.isValid ? this.zone.offsetName(this.ts, {
|
871
|
-
format: "long",
|
872
|
-
locale: this.locale
|
873
|
-
}) : null;
|
874
|
-
}
|
875
|
-
/**
|
876
|
-
* Get whether this zone's offset ever changes, as in a DST.
|
877
|
-
* @type {boolean}
|
878
|
-
*/
|
879
|
-
get isOffsetFixed() {
|
880
|
-
return this.isValid ? this.zone.isUniversal : null;
|
881
|
-
}
|
882
|
-
/**
|
883
|
-
* Get whether the DateTime is in a DST.
|
884
|
-
* @type {boolean}
|
150
|
+
* Returns the length of the Interval in the specified unit.
|
151
|
+
* @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.
|
152
|
+
* @return {number}
|
885
153
|
*/
|
886
|
-
|
887
|
-
return this.
|
154
|
+
length(t = "milliseconds") {
|
155
|
+
return this.isValid ? this.toDuration(t).get(t) : NaN;
|
888
156
|
}
|
889
157
|
/**
|
890
|
-
*
|
891
|
-
*
|
892
|
-
*
|
893
|
-
*
|
894
|
-
* @
|
158
|
+
* Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.
|
159
|
+
* Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'
|
160
|
+
* asks 'what dates are included in this interval?', not 'how many days long is this interval?'
|
161
|
+
* @param {string} [unit='milliseconds'] - the unit of time to count.
|
162
|
+
* @param {Object} opts - options
|
163
|
+
* @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime
|
164
|
+
* @return {number}
|
895
165
|
*/
|
896
|
-
|
897
|
-
if (!this.isValid
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
return [this];
|
902
|
-
const u = i - s * t, c = i - o * t, d = z(u, s), h = z(c, o);
|
903
|
-
return d.hour === h.hour && d.minute === h.minute && d.second === h.second && d.millisecond === h.millisecond ? [k(this, { ts: u }), k(this, { ts: c })] : [this];
|
166
|
+
count(t = "milliseconds", i) {
|
167
|
+
if (!this.isValid) return NaN;
|
168
|
+
const e = this.start.startOf(t, i);
|
169
|
+
let s;
|
170
|
+
return i != null && i.useLocaleWeeks ? s = this.end.reconfigure({ locale: e.locale }) : s = this.end, s = s.startOf(t, i), Math.floor(s.diff(e, t).get(t)) + (s.valueOf() !== this.end.valueOf());
|
904
171
|
}
|
905
172
|
/**
|
906
|
-
* Returns
|
907
|
-
* @
|
908
|
-
* @
|
909
|
-
* @type {boolean}
|
173
|
+
* Returns whether this Interval's start and end are both in the same unit of time
|
174
|
+
* @param {string} unit - the unit of time to check sameness on
|
175
|
+
* @return {boolean}
|
910
176
|
*/
|
911
|
-
|
912
|
-
return
|
177
|
+
hasSame(t) {
|
178
|
+
return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, t) : !1;
|
913
179
|
}
|
914
180
|
/**
|
915
|
-
*
|
916
|
-
* @
|
917
|
-
* @example DateTime.local(2016, 3).daysInMonth //=> 31
|
918
|
-
* @type {number}
|
181
|
+
* Return whether this Interval has the same start and end DateTimes.
|
182
|
+
* @return {boolean}
|
919
183
|
*/
|
920
|
-
|
921
|
-
return
|
184
|
+
isEmpty() {
|
185
|
+
return this.s.valueOf() === this.e.valueOf();
|
922
186
|
}
|
923
187
|
/**
|
924
|
-
*
|
925
|
-
* @
|
926
|
-
* @
|
927
|
-
* @type {number}
|
188
|
+
* Return whether this Interval's start is after the specified DateTime.
|
189
|
+
* @param {DateTime} dateTime
|
190
|
+
* @return {boolean}
|
928
191
|
*/
|
929
|
-
|
930
|
-
return this.isValid ?
|
192
|
+
isAfter(t) {
|
193
|
+
return this.isValid ? this.s > t : !1;
|
931
194
|
}
|
932
195
|
/**
|
933
|
-
*
|
934
|
-
* @
|
935
|
-
* @
|
936
|
-
* @example DateTime.local(2013).weeksInWeekYear //=> 52
|
937
|
-
* @type {number}
|
196
|
+
* Return whether this Interval's end is before the specified DateTime.
|
197
|
+
* @param {DateTime} dateTime
|
198
|
+
* @return {boolean}
|
938
199
|
*/
|
939
|
-
|
940
|
-
return this.isValid ?
|
200
|
+
isBefore(t) {
|
201
|
+
return this.isValid ? this.e <= t : !1;
|
941
202
|
}
|
942
203
|
/**
|
943
|
-
*
|
944
|
-
* @
|
945
|
-
* @
|
946
|
-
* @type {number}
|
204
|
+
* Return whether this Interval contains the specified DateTime.
|
205
|
+
* @param {DateTime} dateTime
|
206
|
+
* @return {boolean}
|
947
207
|
*/
|
948
|
-
|
949
|
-
return this.isValid ?
|
950
|
-
this.localWeekYear,
|
951
|
-
this.loc.getMinDaysInFirstWeek(),
|
952
|
-
this.loc.getStartOfWeek()
|
953
|
-
) : NaN;
|
208
|
+
contains(t) {
|
209
|
+
return this.isValid ? this.s <= t && this.e > t : !1;
|
954
210
|
}
|
955
211
|
/**
|
956
|
-
*
|
957
|
-
*
|
958
|
-
* @param {
|
959
|
-
* @
|
212
|
+
* "Sets" the start and/or end dates. Returns a newly-constructed Interval.
|
213
|
+
* @param {Object} values - the values to set
|
214
|
+
* @param {DateTime} values.start - the starting DateTime
|
215
|
+
* @param {DateTime} values.end - the ending DateTime
|
216
|
+
* @return {Interval}
|
960
217
|
*/
|
961
|
-
|
962
|
-
|
963
|
-
this.loc.clone(e),
|
964
|
-
e
|
965
|
-
).resolvedOptions(this);
|
966
|
-
return { locale: t, numberingSystem: i, outputCalendar: r };
|
218
|
+
set({ start: t, end: i } = {}) {
|
219
|
+
return this.isValid ? a.fromDateTimes(t || this.s, i || this.e) : this;
|
967
220
|
}
|
968
|
-
// TRANSFORM
|
969
221
|
/**
|
970
|
-
*
|
971
|
-
*
|
972
|
-
*
|
973
|
-
* @param {number} [offset=0] - optionally, an offset from UTC in minutes
|
974
|
-
* @param {Object} [opts={}] - options to pass to `setZone()`
|
975
|
-
* @return {DateTime}
|
222
|
+
* Split this Interval at each of the specified DateTimes
|
223
|
+
* @param {...DateTime} dateTimes - the unit of time to count.
|
224
|
+
* @return {Array}
|
976
225
|
*/
|
977
|
-
|
978
|
-
|
226
|
+
splitAt(...t) {
|
227
|
+
if (!this.isValid) return [];
|
228
|
+
const i = t.map(f).filter((n) => this.contains(n)).sort((n, u) => n.toMillis() - u.toMillis()), e = [];
|
229
|
+
let { s } = this, r = 0;
|
230
|
+
for (; s < this.e; ) {
|
231
|
+
const n = i[r] || this.e, u = +n > +this.e ? this.e : n;
|
232
|
+
e.push(a.fromDateTimes(s, u)), s = u, r += 1;
|
233
|
+
}
|
234
|
+
return e;
|
235
|
+
}
|
236
|
+
/**
|
237
|
+
* Split this Interval into smaller Intervals, each of the specified length.
|
238
|
+
* Left over time is grouped into a smaller interval
|
239
|
+
* @param {Duration|Object|number} duration - The length of each resulting interval.
|
240
|
+
* @return {Array}
|
241
|
+
*/
|
242
|
+
splitBy(t) {
|
243
|
+
const i = h.fromDurationLike(t);
|
244
|
+
if (!this.isValid || !i.isValid || i.as("milliseconds") === 0)
|
245
|
+
return [];
|
246
|
+
let { s: e } = this, s = 1, r;
|
247
|
+
const n = [];
|
248
|
+
for (; e < this.e; ) {
|
249
|
+
const u = this.start.plus(i.mapUnits((l) => l * s));
|
250
|
+
r = +u > +this.e ? this.e : u, n.push(a.fromDateTimes(e, r)), e = r, s += 1;
|
251
|
+
}
|
252
|
+
return n;
|
979
253
|
}
|
980
254
|
/**
|
981
|
-
*
|
982
|
-
*
|
983
|
-
*
|
984
|
-
* @return {DateTime}
|
255
|
+
* Split this Interval into the specified number of smaller intervals.
|
256
|
+
* @param {number} numberOfParts - The number of Intervals to divide the Interval into.
|
257
|
+
* @return {Array}
|
985
258
|
*/
|
986
|
-
|
987
|
-
return this.
|
259
|
+
divideEqually(t) {
|
260
|
+
return this.isValid ? this.splitBy(this.length() / t).slice(0, t) : [];
|
988
261
|
}
|
989
262
|
/**
|
990
|
-
*
|
991
|
-
*
|
992
|
-
*
|
993
|
-
* @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.
|
994
|
-
* @param {Object} opts - options
|
995
|
-
* @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.
|
996
|
-
* @return {DateTime}
|
263
|
+
* Return whether this Interval overlaps with the specified Interval
|
264
|
+
* @param {Interval} other
|
265
|
+
* @return {boolean}
|
997
266
|
*/
|
998
|
-
|
999
|
-
|
1000
|
-
return this;
|
1001
|
-
if (e.isValid) {
|
1002
|
-
let r = this.ts;
|
1003
|
-
if (t || i) {
|
1004
|
-
const a = e.offset(this.ts), s = this.toObject();
|
1005
|
-
[r] = C(s, a, e);
|
1006
|
-
}
|
1007
|
-
return k(this, { ts: r, zone: e });
|
1008
|
-
} else
|
1009
|
-
return l.invalid(b(e));
|
267
|
+
overlaps(t) {
|
268
|
+
return this.e > t.s && this.s < t.e;
|
1010
269
|
}
|
1011
270
|
/**
|
1012
|
-
*
|
1013
|
-
* @param {
|
1014
|
-
* @
|
1015
|
-
* @return {DateTime}
|
271
|
+
* Return whether this Interval's end is adjacent to the specified Interval's start.
|
272
|
+
* @param {Interval} other
|
273
|
+
* @return {boolean}
|
1016
274
|
*/
|
1017
|
-
|
1018
|
-
|
1019
|
-
return k(this, { loc: r });
|
275
|
+
abutsStart(t) {
|
276
|
+
return this.isValid ? +this.e == +t.s : !1;
|
1020
277
|
}
|
1021
278
|
/**
|
1022
|
-
*
|
1023
|
-
*
|
1024
|
-
* @
|
1025
|
-
* @return {DateTime}
|
279
|
+
* Return whether this Interval's start is adjacent to the specified Interval's end.
|
280
|
+
* @param {Interval} other
|
281
|
+
* @return {boolean}
|
1026
282
|
*/
|
1027
|
-
|
1028
|
-
return this.
|
283
|
+
abutsEnd(t) {
|
284
|
+
return this.isValid ? +t.e == +this.s : !1;
|
1029
285
|
}
|
1030
286
|
/**
|
1031
|
-
*
|
1032
|
-
*
|
1033
|
-
*
|
1034
|
-
* This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.
|
1035
|
-
* They cannot be mixed with ISO-week units like `weekday`.
|
1036
|
-
* @param {Object} values - a mapping of units to numbers
|
1037
|
-
* @example dt.set({ year: 2017 })
|
1038
|
-
* @example dt.set({ hour: 8, minute: 30 })
|
1039
|
-
* @example dt.set({ weekday: 5 })
|
1040
|
-
* @example dt.set({ year: 2005, ordinal: 234 })
|
1041
|
-
* @return {DateTime}
|
287
|
+
* Returns true if this Interval fully contains the specified Interval, specifically if the intersect (of this Interval and the other Interval) is equal to the other Interval; false otherwise.
|
288
|
+
* @param {Interval} other
|
289
|
+
* @return {boolean}
|
1042
290
|
*/
|
1043
|
-
|
1044
|
-
|
1045
|
-
const t = X(e, le), { minDaysInFirstWeek: i, startOfWeek: r } = ne(t, this.loc), a = !f(t.weekYear) || !f(t.weekNumber) || !f(t.weekday), s = !f(t.ordinal), o = !f(t.year), u = !f(t.month) || !f(t.day), c = o || u, d = t.weekYear || t.weekNumber;
|
1046
|
-
if ((c || s) && d)
|
1047
|
-
throw new L(
|
1048
|
-
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
1049
|
-
);
|
1050
|
-
if (u && s)
|
1051
|
-
throw new L("Can't mix ordinal dates with month/day");
|
1052
|
-
let h;
|
1053
|
-
a ? h = ie(
|
1054
|
-
{ ...A(this.c, i, r), ...t },
|
1055
|
-
i,
|
1056
|
-
r
|
1057
|
-
) : f(t.ordinal) ? (h = { ...this.toObject(), ...t }, f(t.day) && (h.day = Math.min(R(h.year, h.month), h.day))) : h = re({ ...Y(this.c), ...t });
|
1058
|
-
const [p, I] = C(h, this.o, this.zone);
|
1059
|
-
return k(this, { ts: p, o: I });
|
291
|
+
engulfs(t) {
|
292
|
+
return this.isValid ? this.s <= t.s && this.e >= t.e : !1;
|
1060
293
|
}
|
1061
294
|
/**
|
1062
|
-
*
|
1063
|
-
*
|
1064
|
-
*
|
1065
|
-
* @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
1066
|
-
* @example DateTime.now().plus(123) //~> in 123 milliseconds
|
1067
|
-
* @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes
|
1068
|
-
* @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow
|
1069
|
-
* @example DateTime.now().plus({ days: -1 }) //~> this time yesterday
|
1070
|
-
* @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min
|
1071
|
-
* @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min
|
1072
|
-
* @return {DateTime}
|
295
|
+
* Return whether this Interval has the same start and end as the specified Interval.
|
296
|
+
* @param {Interval} other
|
297
|
+
* @return {boolean}
|
1073
298
|
*/
|
1074
|
-
|
1075
|
-
|
1076
|
-
const t = E.fromDurationLike(e);
|
1077
|
-
return k(this, ae(this, t));
|
299
|
+
equals(t) {
|
300
|
+
return !this.isValid || !t.isValid ? !1 : this.s.equals(t.s) && this.e.equals(t.e);
|
1078
301
|
}
|
1079
302
|
/**
|
1080
|
-
*
|
1081
|
-
*
|
1082
|
-
*
|
1083
|
-
@
|
303
|
+
* Return an Interval representing the intersection of this Interval and the specified Interval.
|
304
|
+
* Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.
|
305
|
+
* Returns null if the intersection is empty, meaning, the intervals don't intersect.
|
306
|
+
* @param {Interval} other
|
307
|
+
* @return {Interval}
|
1084
308
|
*/
|
1085
|
-
|
309
|
+
intersection(t) {
|
1086
310
|
if (!this.isValid) return this;
|
1087
|
-
const t =
|
1088
|
-
return
|
311
|
+
const i = this.s > t.s ? this.s : t.s, e = this.e < t.e ? this.e : t.e;
|
312
|
+
return i >= e ? null : a.fromDateTimes(i, e);
|
1089
313
|
}
|
1090
314
|
/**
|
1091
|
-
*
|
1092
|
-
*
|
1093
|
-
* @param {
|
1094
|
-
* @
|
1095
|
-
* @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'
|
1096
|
-
* @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'
|
1097
|
-
* @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays
|
1098
|
-
* @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'
|
1099
|
-
* @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'
|
1100
|
-
* @return {DateTime}
|
315
|
+
* Return an Interval representing the union of this Interval and the specified Interval.
|
316
|
+
* Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.
|
317
|
+
* @param {Interval} other
|
318
|
+
* @return {Interval}
|
1101
319
|
*/
|
1102
|
-
|
320
|
+
union(t) {
|
1103
321
|
if (!this.isValid) return this;
|
1104
|
-
const i =
|
1105
|
-
|
1106
|
-
case "years":
|
1107
|
-
i.month = 1;
|
1108
|
-
// falls through
|
1109
|
-
case "quarters":
|
1110
|
-
case "months":
|
1111
|
-
i.day = 1;
|
1112
|
-
// falls through
|
1113
|
-
case "weeks":
|
1114
|
-
case "days":
|
1115
|
-
i.hour = 0;
|
1116
|
-
// falls through
|
1117
|
-
case "hours":
|
1118
|
-
i.minute = 0;
|
1119
|
-
// falls through
|
1120
|
-
case "minutes":
|
1121
|
-
i.second = 0;
|
1122
|
-
// falls through
|
1123
|
-
case "seconds":
|
1124
|
-
i.millisecond = 0;
|
1125
|
-
break;
|
1126
|
-
}
|
1127
|
-
if (r === "weeks")
|
1128
|
-
if (t) {
|
1129
|
-
const a = this.loc.getStartOfWeek(), { weekday: s } = this;
|
1130
|
-
s < a && (i.weekNumber = this.weekNumber - 1), i.weekday = a;
|
1131
|
-
} else
|
1132
|
-
i.weekday = 1;
|
1133
|
-
if (r === "quarters") {
|
1134
|
-
const a = Math.ceil(this.month / 3);
|
1135
|
-
i.month = (a - 1) * 3 + 1;
|
1136
|
-
}
|
1137
|
-
return this.set(i);
|
1138
|
-
}
|
1139
|
-
/**
|
1140
|
-
* "Set" this DateTime to the end (meaning the last millisecond) of a unit of time
|
1141
|
-
* @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
|
1142
|
-
* @param {Object} opts - options
|
1143
|
-
* @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week
|
1144
|
-
* @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'
|
1145
|
-
* @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'
|
1146
|
-
* @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays
|
1147
|
-
* @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'
|
1148
|
-
* @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'
|
1149
|
-
* @return {DateTime}
|
1150
|
-
*/
|
1151
|
-
endOf(e, t) {
|
1152
|
-
return this.isValid ? this.plus({ [e]: 1 }).startOf(e, t).minus(1) : this;
|
1153
|
-
}
|
1154
|
-
// OUTPUT
|
1155
|
-
/**
|
1156
|
-
* Returns a string representation of this DateTime formatted according to the specified format string.
|
1157
|
-
* **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).
|
1158
|
-
* Defaults to en-US if no locale has been specified, regardless of the system's locale.
|
1159
|
-
* @param {string} fmt - the format string
|
1160
|
-
* @param {Object} opts - opts to override the configuration options on this DateTime
|
1161
|
-
* @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'
|
1162
|
-
* @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'
|
1163
|
-
* @example DateTime.now().toFormat('yyyy LLL dd', { locale: "fr" }) //=> '2017 avr. 22'
|
1164
|
-
* @example DateTime.now().toFormat("HH 'hours and' mm 'minutes'") //=> '20 hours and 55 minutes'
|
1165
|
-
* @return {string}
|
1166
|
-
*/
|
1167
|
-
toFormat(e, t = {}) {
|
1168
|
-
return this.isValid ? O.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this, e) : Z;
|
1169
|
-
}
|
1170
|
-
/**
|
1171
|
-
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
1172
|
-
* The exact behavior of this method is browser-specific, but in general it will return an appropriate representation
|
1173
|
-
* of the DateTime in the assigned locale.
|
1174
|
-
* Defaults to the system's locale if no locale has been specified
|
1175
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
1176
|
-
* @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options
|
1177
|
-
* @param {Object} opts - opts to override the configuration options on this DateTime
|
1178
|
-
* @example DateTime.now().toLocaleString(); //=> 4/20/2017
|
1179
|
-
* @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'
|
1180
|
-
* @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'
|
1181
|
-
* @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'
|
1182
|
-
* @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'
|
1183
|
-
* @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'
|
1184
|
-
* @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'
|
1185
|
-
* @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'
|
1186
|
-
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
|
1187
|
-
* @return {string}
|
1188
|
-
*/
|
1189
|
-
toLocaleString(e = se, t = {}) {
|
1190
|
-
return this.isValid ? O.create(this.loc.clone(t), e).formatDateTime(this) : Z;
|
1191
|
-
}
|
1192
|
-
/**
|
1193
|
-
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
1194
|
-
* Defaults to the system's locale if no locale has been specified
|
1195
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts
|
1196
|
-
* @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.
|
1197
|
-
* @example DateTime.now().toLocaleParts(); //=> [
|
1198
|
-
* //=> { type: 'day', value: '25' },
|
1199
|
-
* //=> { type: 'literal', value: '/' },
|
1200
|
-
* //=> { type: 'month', value: '05' },
|
1201
|
-
* //=> { type: 'literal', value: '/' },
|
1202
|
-
* //=> { type: 'year', value: '1982' }
|
1203
|
-
* //=> ]
|
1204
|
-
*/
|
1205
|
-
toLocaleParts(e = {}) {
|
1206
|
-
return this.isValid ? O.create(this.loc.clone(e), e).formatDateTimeParts(this) : [];
|
322
|
+
const i = this.s < t.s ? this.s : t.s, e = this.e > t.e ? this.e : t.e;
|
323
|
+
return a.fromDateTimes(i, e);
|
1207
324
|
}
|
1208
325
|
/**
|
1209
|
-
*
|
1210
|
-
*
|
1211
|
-
* @param {
|
1212
|
-
* @
|
1213
|
-
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
1214
|
-
* @param {boolean} [opts.extendedZone=false] - add the time zone format extension
|
1215
|
-
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
1216
|
-
* @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'
|
1217
|
-
* @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
|
1218
|
-
* @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'
|
1219
|
-
* @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'
|
1220
|
-
* @return {string|null}
|
326
|
+
* Merge an array of Intervals into a equivalent minimal set of Intervals.
|
327
|
+
* Combines overlapping and adjacent Intervals.
|
328
|
+
* @param {Array} intervals
|
329
|
+
* @return {Array}
|
1221
330
|
*/
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
|
1228
|
-
} = {}) {
|
1229
|
-
if (!this.isValid)
|
1230
|
-
return null;
|
1231
|
-
const s = e === "extended";
|
1232
|
-
let o = G(this, s);
|
1233
|
-
return o += "T", o += oe(this, s, t, i, r, a), o;
|
331
|
+
static merge(t) {
|
332
|
+
const [i, e] = t.sort((s, r) => s.s - r.s).reduce(
|
333
|
+
([s, r], n) => r ? r.overlaps(n) || r.abutsStart(n) ? [s, r.union(n)] : [s.concat([r]), n] : [s, n],
|
334
|
+
[[], null]
|
335
|
+
);
|
336
|
+
return e && i.push(e), i;
|
1234
337
|
}
|
1235
338
|
/**
|
1236
|
-
*
|
1237
|
-
* @param {
|
1238
|
-
* @
|
1239
|
-
* @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'
|
1240
|
-
* @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'
|
1241
|
-
* @return {string|null}
|
339
|
+
* Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.
|
340
|
+
* @param {Array} intervals
|
341
|
+
* @return {Array}
|
1242
342
|
*/
|
1243
|
-
|
1244
|
-
|
343
|
+
static xor(t) {
|
344
|
+
let i = null, e = 0;
|
345
|
+
const s = [], r = t.map((l) => [
|
346
|
+
{ time: l.s, type: "s" },
|
347
|
+
{ time: l.e, type: "e" }
|
348
|
+
]), n = Array.prototype.concat(...r), u = n.sort((l, o) => l.time - o.time);
|
349
|
+
for (const l of u)
|
350
|
+
e += l.type === "s" ? 1 : -1, e === 1 ? i = l.time : (i && +i != +l.time && s.push(a.fromDateTimes(i, l.time)), i = null);
|
351
|
+
return a.merge(s);
|
1245
352
|
}
|
1246
353
|
/**
|
1247
|
-
*
|
1248
|
-
* @
|
1249
|
-
* @return {
|
354
|
+
* Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.
|
355
|
+
* @param {...Interval} intervals
|
356
|
+
* @return {Array}
|
1250
357
|
*/
|
1251
|
-
|
1252
|
-
return
|
358
|
+
difference(...t) {
|
359
|
+
return a.xor([this].concat(t)).map((i) => this.intersection(i)).filter((i) => i && !i.isEmpty());
|
1253
360
|
}
|
1254
361
|
/**
|
1255
|
-
* Returns
|
1256
|
-
* @param {Object} opts - options
|
1257
|
-
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
1258
|
-
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
1259
|
-
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
1260
|
-
* @param {boolean} [opts.extendedZone=true] - add the time zone format extension
|
1261
|
-
* @param {boolean} [opts.includePrefix=false] - include the `T` prefix
|
1262
|
-
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
1263
|
-
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'
|
1264
|
-
* @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'
|
1265
|
-
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'
|
1266
|
-
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'
|
362
|
+
* Returns a string representation of this Interval appropriate for debugging.
|
1267
363
|
* @return {string}
|
1268
364
|
*/
|
1269
|
-
|
1270
|
-
|
1271
|
-
suppressSeconds: t = !1,
|
1272
|
-
includeOffset: i = !0,
|
1273
|
-
includePrefix: r = !1,
|
1274
|
-
extendedZone: a = !1,
|
1275
|
-
format: s = "extended"
|
1276
|
-
} = {}) {
|
1277
|
-
return this.isValid ? (r ? "T" : "") + oe(
|
1278
|
-
this,
|
1279
|
-
s === "extended",
|
1280
|
-
t,
|
1281
|
-
e,
|
1282
|
-
i,
|
1283
|
-
a
|
1284
|
-
) : null;
|
365
|
+
toString() {
|
366
|
+
return this.isValid ? `[${this.s.toISO()} – ${this.e.toISO()})` : d;
|
1285
367
|
}
|
1286
368
|
/**
|
1287
|
-
* Returns
|
1288
|
-
* @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'
|
1289
|
-
* @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'
|
369
|
+
* Returns a string representation of this Interval appropriate for the REPL.
|
1290
370
|
* @return {string}
|
1291
371
|
*/
|
1292
|
-
|
1293
|
-
return
|
372
|
+
[Symbol.for("nodejs.util.inspect.custom")]() {
|
373
|
+
return this.isValid ? `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }` : `Interval { Invalid, reason: ${this.invalidReason} }`;
|
1294
374
|
}
|
1295
375
|
/**
|
1296
|
-
* Returns a string
|
1297
|
-
*
|
1298
|
-
* @
|
1299
|
-
*
|
1300
|
-
*
|
376
|
+
* Returns a localized string representing this Interval. Accepts the same options as the
|
377
|
+
* Intl.DateTimeFormat constructor and any presets defined by Luxon, such as
|
378
|
+
* {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method
|
379
|
+
* is browser-specific, but in general it will return an appropriate representation of the
|
380
|
+
* Interval in the assigned locale. Defaults to the system's locale if no locale has been
|
381
|
+
* specified.
|
382
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
383
|
+
* @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or
|
384
|
+
* Intl.DateTimeFormat constructor options.
|
385
|
+
* @param {Object} opts - Options to override the configuration of the start DateTime.
|
386
|
+
* @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022
|
387
|
+
* @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022
|
388
|
+
* @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022
|
389
|
+
* @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM
|
390
|
+
* @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p
|
1301
391
|
* @return {string}
|
1302
392
|
*/
|
1303
|
-
|
1304
|
-
return
|
393
|
+
toLocaleString(t = D, i = {}) {
|
394
|
+
return this.isValid ? O.create(this.s.loc.clone(i), t).formatInterval(this) : d;
|
1305
395
|
}
|
1306
396
|
/**
|
1307
|
-
* Returns
|
1308
|
-
* @
|
1309
|
-
* @
|
1310
|
-
*/
|
1311
|
-
toSQLDate() {
|
1312
|
-
return this.isValid ? G(this, !0) : null;
|
1313
|
-
}
|
1314
|
-
/**
|
1315
|
-
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
1316
|
-
* @param {Object} opts - options
|
1317
|
-
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
1318
|
-
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
1319
|
-
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
1320
|
-
* @example DateTime.utc().toSQL() //=> '05:15:16.345'
|
1321
|
-
* @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'
|
1322
|
-
* @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'
|
1323
|
-
* @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'
|
397
|
+
* Returns an ISO 8601-compliant string representation of this Interval.
|
398
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
399
|
+
* @param {Object} opts - The same options as {@link DateTime#toISO}
|
1324
400
|
* @return {string}
|
1325
401
|
*/
|
1326
|
-
|
1327
|
-
|
1328
|
-
return (t || e) && (i && (r += " "), t ? r += "z" : e && (r += "ZZ")), H(this, r, !0);
|
402
|
+
toISO(t) {
|
403
|
+
return this.isValid ? `${this.s.toISO(t)}/${this.e.toISO(t)}` : d;
|
1329
404
|
}
|
1330
405
|
/**
|
1331
|
-
* Returns
|
1332
|
-
*
|
1333
|
-
* @
|
1334
|
-
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
1335
|
-
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
1336
|
-
* @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'
|
1337
|
-
* @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'
|
1338
|
-
* @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'
|
1339
|
-
* @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'
|
406
|
+
* Returns an ISO 8601-compliant string representation of date of this Interval.
|
407
|
+
* The time components are ignored.
|
408
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
1340
409
|
* @return {string}
|
1341
410
|
*/
|
1342
|
-
|
1343
|
-
return this.isValid ? `${this.
|
411
|
+
toISODate() {
|
412
|
+
return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` : d;
|
1344
413
|
}
|
1345
414
|
/**
|
1346
|
-
* Returns
|
415
|
+
* Returns an ISO 8601-compliant string representation of time of this Interval.
|
416
|
+
* The date components are ignored.
|
417
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
418
|
+
* @param {Object} opts - The same options as {@link DateTime#toISO}
|
1347
419
|
* @return {string}
|
1348
420
|
*/
|
1349
|
-
|
1350
|
-
return this.isValid ? this.
|
421
|
+
toISOTime(t) {
|
422
|
+
return this.isValid ? `${this.s.toISOTime(t)}/${this.e.toISOTime(t)}` : d;
|
1351
423
|
}
|
1352
424
|
/**
|
1353
|
-
* Returns a string representation of this
|
425
|
+
* Returns a string representation of this Interval formatted according to the specified format
|
426
|
+
* string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible
|
427
|
+
* formatting tool.
|
428
|
+
* @param {string} dateFormat - The format string. This string formats the start and end time.
|
429
|
+
* See {@link DateTime#toFormat} for details.
|
430
|
+
* @param {Object} opts - Options.
|
431
|
+
* @param {string} [opts.separator = ' – '] - A separator to place between the start and end
|
432
|
+
* representations.
|
1354
433
|
* @return {string}
|
1355
434
|
*/
|
1356
|
-
|
1357
|
-
return this.isValid ?
|
435
|
+
toFormat(t, { separator: i = " – " } = {}) {
|
436
|
+
return this.isValid ? `${this.s.toFormat(t)}${i}${this.e.toFormat(t)}` : d;
|
1358
437
|
}
|
1359
438
|
/**
|
1360
|
-
*
|
1361
|
-
* @
|
1362
|
-
*/
|
1363
|
-
valueOf() {
|
1364
|
-
return this.toMillis();
|
1365
|
-
}
|
1366
|
-
/**
|
1367
|
-
* Returns the epoch milliseconds of this DateTime.
|
1368
|
-
* @return {number}
|
1369
|
-
*/
|
1370
|
-
toMillis() {
|
1371
|
-
return this.isValid ? this.ts : NaN;
|
1372
|
-
}
|
1373
|
-
/**
|
1374
|
-
* Returns the epoch seconds (including milliseconds in the fractional part) of this DateTime.
|
1375
|
-
* @return {number}
|
1376
|
-
*/
|
1377
|
-
toSeconds() {
|
1378
|
-
return this.isValid ? this.ts / 1e3 : NaN;
|
1379
|
-
}
|
1380
|
-
/**
|
1381
|
-
* Returns the epoch seconds (as a whole number) of this DateTime.
|
1382
|
-
* @return {number}
|
1383
|
-
*/
|
1384
|
-
toUnixInteger() {
|
1385
|
-
return this.isValid ? Math.floor(this.ts / 1e3) : NaN;
|
1386
|
-
}
|
1387
|
-
/**
|
1388
|
-
* Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.
|
1389
|
-
* @return {string}
|
1390
|
-
*/
|
1391
|
-
toJSON() {
|
1392
|
-
return this.toISO();
|
1393
|
-
}
|
1394
|
-
/**
|
1395
|
-
* Returns a BSON serializable equivalent to this DateTime.
|
1396
|
-
* @return {Date}
|
1397
|
-
*/
|
1398
|
-
toBSON() {
|
1399
|
-
return this.toJSDate();
|
1400
|
-
}
|
1401
|
-
/**
|
1402
|
-
* Returns a JavaScript object with this DateTime's year, month, day, and so on.
|
1403
|
-
* @param opts - options for generating the object
|
1404
|
-
* @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output
|
1405
|
-
* @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }
|
1406
|
-
* @return {Object}
|
1407
|
-
*/
|
1408
|
-
toObject(e = {}) {
|
1409
|
-
if (!this.isValid) return {};
|
1410
|
-
const t = { ...this.c };
|
1411
|
-
return e.includeConfig && (t.outputCalendar = this.outputCalendar, t.numberingSystem = this.loc.numberingSystem, t.locale = this.loc.locale), t;
|
1412
|
-
}
|
1413
|
-
/**
|
1414
|
-
* Returns a JavaScript Date equivalent to this DateTime.
|
1415
|
-
* @return {Date}
|
1416
|
-
*/
|
1417
|
-
toJSDate() {
|
1418
|
-
return new Date(this.isValid ? this.ts : NaN);
|
1419
|
-
}
|
1420
|
-
// COMPARE
|
1421
|
-
/**
|
1422
|
-
* Return the difference between two DateTimes as a Duration.
|
1423
|
-
* @param {DateTime} otherDateTime - the DateTime to compare this one to
|
1424
|
-
* @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.
|
439
|
+
* Return a Duration representing the time spanned by this interval.
|
440
|
+
* @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.
|
1425
441
|
* @param {Object} opts - options that affect the creation of the Duration
|
1426
442
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
1427
|
-
* @example
|
1428
|
-
*
|
1429
|
-
*
|
1430
|
-
*
|
1431
|
-
*
|
1432
|
-
* i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }
|
1433
|
-
* i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }
|
443
|
+
* @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }
|
444
|
+
* @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }
|
445
|
+
* @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }
|
446
|
+
* @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }
|
447
|
+
* @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }
|
1434
448
|
* @return {Duration}
|
1435
449
|
*/
|
1436
|
-
|
1437
|
-
|
1438
|
-
return E.invalid("created by diffing an invalid DateTime");
|
1439
|
-
const r = { locale: this.locale, numberingSystem: this.numberingSystem, ...i }, a = Me(t).map(E.normalizeUnit), s = e.valueOf() > this.valueOf(), o = s ? this : e, u = s ? e : this, c = be(o, u, a, r);
|
1440
|
-
return s ? c.negate() : c;
|
1441
|
-
}
|
1442
|
-
/**
|
1443
|
-
* Return the difference between this DateTime and right now.
|
1444
|
-
* See {@link DateTime#diff}
|
1445
|
-
* @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration
|
1446
|
-
* @param {Object} opts - options that affect the creation of the Duration
|
1447
|
-
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
1448
|
-
* @return {Duration}
|
1449
|
-
*/
|
1450
|
-
diffNow(e = "milliseconds", t = {}) {
|
1451
|
-
return this.diff(l.now(), e, t);
|
1452
|
-
}
|
1453
|
-
/**
|
1454
|
-
* Return an Interval spanning between this DateTime and another DateTime
|
1455
|
-
* @param {DateTime} otherDateTime - the other end point of the Interval
|
1456
|
-
* @return {Interval|DateTime}
|
1457
|
-
*/
|
1458
|
-
until(e) {
|
1459
|
-
return this.isValid ? Se.fromDateTimes(this, e) : this;
|
1460
|
-
}
|
1461
|
-
/**
|
1462
|
-
* Return whether this DateTime is in the same unit of time as another DateTime.
|
1463
|
-
* Higher-order units must also be identical for this function to return `true`.
|
1464
|
-
* Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.
|
1465
|
-
* @param {DateTime} otherDateTime - the other DateTime
|
1466
|
-
* @param {string} unit - the unit of time to check sameness on
|
1467
|
-
* @param {Object} opts - options
|
1468
|
-
* @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used
|
1469
|
-
* @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day
|
1470
|
-
* @return {boolean}
|
1471
|
-
*/
|
1472
|
-
hasSame(e, t, i) {
|
1473
|
-
if (!this.isValid) return !1;
|
1474
|
-
const r = e.valueOf(), a = this.setZone(e.zone, { keepLocalTime: !0 });
|
1475
|
-
return a.startOf(t, i) <= r && r <= a.endOf(t, i);
|
1476
|
-
}
|
1477
|
-
/**
|
1478
|
-
* Equality check
|
1479
|
-
* Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.
|
1480
|
-
* To compare just the millisecond values, use `+dt1 === +dt2`.
|
1481
|
-
* @param {DateTime} other - the other DateTime
|
1482
|
-
* @return {boolean}
|
1483
|
-
*/
|
1484
|
-
equals(e) {
|
1485
|
-
return this.isValid && e.isValid && this.valueOf() === e.valueOf() && this.zone.equals(e.zone) && this.loc.equals(e.loc);
|
1486
|
-
}
|
1487
|
-
/**
|
1488
|
-
* Returns a string representation of a this time relative to now, such as "in two days". Can only internationalize if your
|
1489
|
-
* platform supports Intl.RelativeTimeFormat. Rounds down by default.
|
1490
|
-
* @param {Object} options - options that affect the output
|
1491
|
-
* @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
|
1492
|
-
* @param {string} [options.style="long"] - the style of units, must be "long", "short", or "narrow"
|
1493
|
-
* @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of "years", "quarters", "months", "weeks", "days", "hours", "minutes", or "seconds"
|
1494
|
-
* @param {boolean} [options.round=true] - whether to round the numbers in the output.
|
1495
|
-
* @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.
|
1496
|
-
* @param {string} options.locale - override the locale of this DateTime
|
1497
|
-
* @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
|
1498
|
-
* @example DateTime.now().plus({ days: 1 }).toRelative() //=> "in 1 day"
|
1499
|
-
* @example DateTime.now().setLocale("es").toRelative({ days: 1 }) //=> "dentro de 1 día"
|
1500
|
-
* @example DateTime.now().plus({ days: 1 }).toRelative({ locale: "fr" }) //=> "dans 23 heures"
|
1501
|
-
* @example DateTime.now().minus({ days: 2 }).toRelative() //=> "2 days ago"
|
1502
|
-
* @example DateTime.now().minus({ days: 2 }).toRelative({ unit: "hours" }) //=> "48 hours ago"
|
1503
|
-
* @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago"
|
1504
|
-
*/
|
1505
|
-
toRelative(e = {}) {
|
1506
|
-
if (!this.isValid) return null;
|
1507
|
-
const t = e.base || l.fromObject({}, { zone: this.zone }), i = e.padding ? this < t ? -e.padding : e.padding : 0;
|
1508
|
-
let r = ["years", "months", "days", "hours", "minutes", "seconds"], a = e.unit;
|
1509
|
-
return Array.isArray(e.unit) && (r = e.unit, a = void 0), ce(t, this.plus(i), {
|
1510
|
-
...e,
|
1511
|
-
numeric: "always",
|
1512
|
-
units: r,
|
1513
|
-
unit: a
|
1514
|
-
});
|
1515
|
-
}
|
1516
|
-
/**
|
1517
|
-
* Returns a string representation of this date relative to today, such as "yesterday" or "next month".
|
1518
|
-
* Only internationalizes on platforms that supports Intl.RelativeTimeFormat.
|
1519
|
-
* @param {Object} options - options that affect the output
|
1520
|
-
* @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
|
1521
|
-
* @param {string} options.locale - override the locale of this DateTime
|
1522
|
-
* @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of "years", "quarters", "months", "weeks", or "days"
|
1523
|
-
* @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
|
1524
|
-
* @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> "tomorrow"
|
1525
|
-
* @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelative() //=> ""mañana"
|
1526
|
-
* @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: "fr" }) //=> "demain"
|
1527
|
-
* @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
|
1528
|
-
*/
|
1529
|
-
toRelativeCalendar(e = {}) {
|
1530
|
-
return this.isValid ? ce(e.base || l.fromObject({}, { zone: this.zone }), this, {
|
1531
|
-
...e,
|
1532
|
-
numeric: "auto",
|
1533
|
-
units: ["years", "months", "days"],
|
1534
|
-
calendary: !0
|
1535
|
-
}) : null;
|
1536
|
-
}
|
1537
|
-
/**
|
1538
|
-
* Return the min of several date times
|
1539
|
-
* @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum
|
1540
|
-
* @return {DateTime} the min DateTime, or undefined if called with no argument
|
1541
|
-
*/
|
1542
|
-
static min(...e) {
|
1543
|
-
if (!e.every(l.isDateTime))
|
1544
|
-
throw new w("min requires all arguments be DateTimes");
|
1545
|
-
return te(e, (t) => t.valueOf(), Math.min);
|
1546
|
-
}
|
1547
|
-
/**
|
1548
|
-
* Return the max of several date times
|
1549
|
-
* @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum
|
1550
|
-
* @return {DateTime} the max DateTime, or undefined if called with no argument
|
1551
|
-
*/
|
1552
|
-
static max(...e) {
|
1553
|
-
if (!e.every(l.isDateTime))
|
1554
|
-
throw new w("max requires all arguments be DateTimes");
|
1555
|
-
return te(e, (t) => t.valueOf(), Math.max);
|
1556
|
-
}
|
1557
|
-
// MISC
|
1558
|
-
/**
|
1559
|
-
* Explain how a string would be parsed by fromFormat()
|
1560
|
-
* @param {string} text - the string to parse
|
1561
|
-
* @param {string} fmt - the format the string is expected to be in (see description)
|
1562
|
-
* @param {Object} options - options taken by fromFormat()
|
1563
|
-
* @return {Object}
|
1564
|
-
*/
|
1565
|
-
static fromFormatExplain(e, t, i = {}) {
|
1566
|
-
const { locale: r = null, numberingSystem: a = null } = i, s = y.fromOpts({
|
1567
|
-
locale: r,
|
1568
|
-
numberingSystem: a,
|
1569
|
-
defaultToEN: !0
|
1570
|
-
});
|
1571
|
-
return He(s, e, t);
|
1572
|
-
}
|
1573
|
-
/**
|
1574
|
-
* @deprecated use fromFormatExplain instead
|
1575
|
-
*/
|
1576
|
-
static fromStringExplain(e, t, i = {}) {
|
1577
|
-
return l.fromFormatExplain(e, t, i);
|
1578
|
-
}
|
1579
|
-
/**
|
1580
|
-
* Build a parser for `fmt` using the given locale. This parser can be passed
|
1581
|
-
* to {@link DateTime.fromFormatParser} to a parse a date in this format. This
|
1582
|
-
* can be used to optimize cases where many dates need to be parsed in a
|
1583
|
-
* specific format.
|
1584
|
-
*
|
1585
|
-
* @param {String} fmt - the format the string is expected to be in (see
|
1586
|
-
* description)
|
1587
|
-
* @param {Object} options - options used to set locale and numberingSystem
|
1588
|
-
* for parser
|
1589
|
-
* @returns {TokenParser} - opaque object to be used
|
1590
|
-
*/
|
1591
|
-
static buildFormatParser(e, t = {}) {
|
1592
|
-
const { locale: i = null, numberingSystem: r = null } = t, a = y.fromOpts({
|
1593
|
-
locale: i,
|
1594
|
-
numberingSystem: r,
|
1595
|
-
defaultToEN: !0
|
1596
|
-
});
|
1597
|
-
return new Ue(a, e);
|
1598
|
-
}
|
1599
|
-
/**
|
1600
|
-
* Create a DateTime from an input string and format parser.
|
1601
|
-
*
|
1602
|
-
* The format parser must have been created with the same locale as this call.
|
1603
|
-
*
|
1604
|
-
* @param {String} text - the string to parse
|
1605
|
-
* @param {TokenParser} formatParser - parser from {@link DateTime.buildFormatParser}
|
1606
|
-
* @param {Object} opts - options taken by fromFormat()
|
1607
|
-
* @returns {DateTime}
|
1608
|
-
*/
|
1609
|
-
static fromFormatParser(e, t, i = {}) {
|
1610
|
-
if (f(e) || f(t))
|
1611
|
-
throw new w(
|
1612
|
-
"fromFormatParser requires an input string and a format parser"
|
1613
|
-
);
|
1614
|
-
const { locale: r = null, numberingSystem: a = null } = i, s = y.fromOpts({
|
1615
|
-
locale: r,
|
1616
|
-
numberingSystem: a,
|
1617
|
-
defaultToEN: !0
|
1618
|
-
});
|
1619
|
-
if (!s.equals(t.locale))
|
1620
|
-
throw new w(
|
1621
|
-
`fromFormatParser called with a locale of ${s}, but the format parser was created for ${t.locale}`
|
1622
|
-
);
|
1623
|
-
const { result: o, zone: u, specificOffset: c, invalidReason: d } = t.explainFromTokens(e);
|
1624
|
-
return d ? l.invalid(d) : g(
|
1625
|
-
o,
|
1626
|
-
u,
|
1627
|
-
i,
|
1628
|
-
`format ${t.format}`,
|
1629
|
-
e,
|
1630
|
-
c
|
1631
|
-
);
|
1632
|
-
}
|
1633
|
-
// FORMAT PRESETS
|
1634
|
-
/**
|
1635
|
-
* {@link DateTime#toLocaleString} format like 10/14/1983
|
1636
|
-
* @type {Object}
|
1637
|
-
*/
|
1638
|
-
static get DATE_SHORT() {
|
1639
|
-
return se;
|
1640
|
-
}
|
1641
|
-
/**
|
1642
|
-
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983'
|
1643
|
-
* @type {Object}
|
1644
|
-
*/
|
1645
|
-
static get DATE_MED() {
|
1646
|
-
return xe;
|
1647
|
-
}
|
1648
|
-
/**
|
1649
|
-
* {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'
|
1650
|
-
* @type {Object}
|
1651
|
-
*/
|
1652
|
-
static get DATE_MED_WITH_WEEKDAY() {
|
1653
|
-
return Ye;
|
450
|
+
toDuration(t, i) {
|
451
|
+
return this.isValid ? this.e.diff(this.s, t, i) : h.invalid(this.invalidReason);
|
1654
452
|
}
|
1655
453
|
/**
|
1656
|
-
*
|
1657
|
-
* @
|
454
|
+
* Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes
|
455
|
+
* @param {function} mapFn
|
456
|
+
* @return {Interval}
|
457
|
+
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())
|
458
|
+
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
|
1658
459
|
*/
|
1659
|
-
|
1660
|
-
return
|
460
|
+
mapEndpoints(t) {
|
461
|
+
return a.fromDateTimes(t(this.s), t(this.e));
|
1661
462
|
}
|
1662
|
-
/**
|
1663
|
-
* {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'
|
1664
|
-
* @type {Object}
|
1665
|
-
*/
|
1666
|
-
static get DATE_HUGE() {
|
1667
|
-
return je;
|
1668
|
-
}
|
1669
|
-
/**
|
1670
|
-
* {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
|
1671
|
-
* @type {Object}
|
1672
|
-
*/
|
1673
|
-
static get TIME_SIMPLE() {
|
1674
|
-
return qe;
|
1675
|
-
}
|
1676
|
-
/**
|
1677
|
-
* {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
1678
|
-
* @type {Object}
|
1679
|
-
*/
|
1680
|
-
static get TIME_WITH_SECONDS() {
|
1681
|
-
return Ge;
|
1682
|
-
}
|
1683
|
-
/**
|
1684
|
-
* {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
1685
|
-
* @type {Object}
|
1686
|
-
*/
|
1687
|
-
static get TIME_WITH_SHORT_OFFSET() {
|
1688
|
-
return Re;
|
1689
|
-
}
|
1690
|
-
/**
|
1691
|
-
* {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
1692
|
-
* @type {Object}
|
1693
|
-
*/
|
1694
|
-
static get TIME_WITH_LONG_OFFSET() {
|
1695
|
-
return $e;
|
1696
|
-
}
|
1697
|
-
/**
|
1698
|
-
* {@link DateTime#toLocaleString} format like '09:30', always 24-hour.
|
1699
|
-
* @type {Object}
|
1700
|
-
*/
|
1701
|
-
static get TIME_24_SIMPLE() {
|
1702
|
-
return Pe;
|
1703
|
-
}
|
1704
|
-
/**
|
1705
|
-
* {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.
|
1706
|
-
* @type {Object}
|
1707
|
-
*/
|
1708
|
-
static get TIME_24_WITH_SECONDS() {
|
1709
|
-
return Qe;
|
1710
|
-
}
|
1711
|
-
/**
|
1712
|
-
* {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.
|
1713
|
-
* @type {Object}
|
1714
|
-
*/
|
1715
|
-
static get TIME_24_WITH_SHORT_OFFSET() {
|
1716
|
-
return Je;
|
1717
|
-
}
|
1718
|
-
/**
|
1719
|
-
* {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
1720
|
-
* @type {Object}
|
1721
|
-
*/
|
1722
|
-
static get TIME_24_WITH_LONG_OFFSET() {
|
1723
|
-
return Ke;
|
1724
|
-
}
|
1725
|
-
/**
|
1726
|
-
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
1727
|
-
* @type {Object}
|
1728
|
-
*/
|
1729
|
-
static get DATETIME_SHORT() {
|
1730
|
-
return Be;
|
1731
|
-
}
|
1732
|
-
/**
|
1733
|
-
* {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
1734
|
-
* @type {Object}
|
1735
|
-
*/
|
1736
|
-
static get DATETIME_SHORT_WITH_SECONDS() {
|
1737
|
-
return Xe;
|
1738
|
-
}
|
1739
|
-
/**
|
1740
|
-
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
|
1741
|
-
* @type {Object}
|
1742
|
-
*/
|
1743
|
-
static get DATETIME_MED() {
|
1744
|
-
return et;
|
1745
|
-
}
|
1746
|
-
/**
|
1747
|
-
* {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
1748
|
-
* @type {Object}
|
1749
|
-
*/
|
1750
|
-
static get DATETIME_MED_WITH_SECONDS() {
|
1751
|
-
return tt;
|
1752
|
-
}
|
1753
|
-
/**
|
1754
|
-
* {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
|
1755
|
-
* @type {Object}
|
1756
|
-
*/
|
1757
|
-
static get DATETIME_MED_WITH_WEEKDAY() {
|
1758
|
-
return nt;
|
1759
|
-
}
|
1760
|
-
/**
|
1761
|
-
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
1762
|
-
* @type {Object}
|
1763
|
-
*/
|
1764
|
-
static get DATETIME_FULL() {
|
1765
|
-
return it;
|
1766
|
-
}
|
1767
|
-
/**
|
1768
|
-
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
1769
|
-
* @type {Object}
|
1770
|
-
*/
|
1771
|
-
static get DATETIME_FULL_WITH_SECONDS() {
|
1772
|
-
return rt;
|
1773
|
-
}
|
1774
|
-
/**
|
1775
|
-
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
1776
|
-
* @type {Object}
|
1777
|
-
*/
|
1778
|
-
static get DATETIME_HUGE() {
|
1779
|
-
return st;
|
1780
|
-
}
|
1781
|
-
/**
|
1782
|
-
* {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
1783
|
-
* @type {Object}
|
1784
|
-
*/
|
1785
|
-
static get DATETIME_HUGE_WITH_SECONDS() {
|
1786
|
-
return at;
|
1787
|
-
}
|
1788
|
-
}
|
1789
|
-
function Wt(n) {
|
1790
|
-
if (l.isDateTime(n))
|
1791
|
-
return n;
|
1792
|
-
if (n && n.valueOf && U(n.valueOf()))
|
1793
|
-
return l.fromJSDate(n);
|
1794
|
-
if (n && typeof n == "object")
|
1795
|
-
return l.fromObject(n);
|
1796
|
-
throw new w(
|
1797
|
-
`Unknown datetime argument: ${n}, of type ${typeof n}`
|
1798
|
-
);
|
1799
463
|
}
|
1800
464
|
export {
|
1801
|
-
|
1802
|
-
Wt as friendlyDateTime
|
465
|
+
a as default
|
1803
466
|
};
|
1804
467
|
//# sourceMappingURL=index.es160.js.map
|