palettecn 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/dist/index.mjs +10 -0
  2. package/dist/web/nitro.json +17 -0
  3. package/dist/web/public/assets/abap-BdvmRIgS.js +1 -0
  4. package/dist/web/public/assets/actionscript-3-et0rQaqm.js +1 -0
  5. package/dist/web/public/assets/ada-DPgrustg.js +1 -0
  6. package/dist/web/public/assets/andromeeda-DJl1yeV_.js +1 -0
  7. package/dist/web/public/assets/angular-html-Dm7s7tSx.js +1 -0
  8. package/dist/web/public/assets/angular-ts-B_ywTULt.js +1 -0
  9. package/dist/web/public/assets/apache-CFpsYX8S.js +1 -0
  10. package/dist/web/public/assets/apex-CN5n6pbI.js +1 -0
  11. package/dist/web/public/assets/apl-Dm11wHHc.js +1 -0
  12. package/dist/web/public/assets/applescript-JrY23hsL.js +1 -0
  13. package/dist/web/public/assets/ara-DR83hn3A.js +1 -0
  14. package/dist/web/public/assets/asciidoc-Dpu9XLB1.js +1 -0
  15. package/dist/web/public/assets/asm-BYI3A31V.js +1 -0
  16. package/dist/web/public/assets/astro-DP1naDCT.js +1 -0
  17. package/dist/web/public/assets/aurora-x-Nav5jnoQ.js +1 -0
  18. package/dist/web/public/assets/awk-BIoTx_w6.js +1 -0
  19. package/dist/web/public/assets/ayu-dark-H5QV5J7K.js +1 -0
  20. package/dist/web/public/assets/ayu-light-BrwTNGnU.js +1 -0
  21. package/dist/web/public/assets/ayu-mirage-Bg6FpF5w.js +1 -0
  22. package/dist/web/public/assets/ballerina-BFvDNd4T.js +1 -0
  23. package/dist/web/public/assets/bat-DtQkx7Ny.js +1 -0
  24. package/dist/web/public/assets/beancount-BIjKALa1.js +1 -0
  25. package/dist/web/public/assets/berry-BPkDN_EZ.js +1 -0
  26. package/dist/web/public/assets/bibtex-Dur2CNW6.js +1 -0
  27. package/dist/web/public/assets/bicep-BMz1bZ7m.js +1 -0
  28. package/dist/web/public/assets/bird2-91rdr9s7.js +1 -0
  29. package/dist/web/public/assets/blade-DD5O596X.js +1 -0
  30. package/dist/web/public/assets/bsl-FmB7U2qd.js +1 -0
  31. package/dist/web/public/assets/bundle-mjs-Bso3xn9x.js +1 -0
  32. package/dist/web/public/assets/c-DqqBLLyl.js +1 -0
  33. package/dist/web/public/assets/c3-CJTbEooS.js +1 -0
  34. package/dist/web/public/assets/cadence-C0GI7BZZ.js +1 -0
  35. package/dist/web/public/assets/cairo-B5JMmIC0.js +1 -0
  36. package/dist/web/public/assets/catppuccin-frappe-D76-cUjK.js +1 -0
  37. package/dist/web/public/assets/catppuccin-latte-DUHNJ_6_.js +1 -0
  38. package/dist/web/public/assets/catppuccin-macchiato-CFhPH2wd.js +1 -0
  39. package/dist/web/public/assets/catppuccin-mocha-BRD0cvUW.js +1 -0
  40. package/dist/web/public/assets/chunk-FRKYWMV7-DUkk3w4h.js +122 -0
  41. package/dist/web/public/assets/clarity-KgUVrNfC.js +1 -0
  42. package/dist/web/public/assets/clojure-BhQuoGIG.js +1 -0
  43. package/dist/web/public/assets/cmake-CA59gUFQ.js +1 -0
  44. package/dist/web/public/assets/cobol-CCFShgGZ.js +1 -0
  45. package/dist/web/public/assets/codeowners-CD36YqjJ.js +1 -0
  46. package/dist/web/public/assets/codeql-CrMosKUt.js +1 -0
  47. package/dist/web/public/assets/coffee-C-Mn3tBT.js +1 -0
  48. package/dist/web/public/assets/common-lisp-DYnOjAFz.js +1 -0
  49. package/dist/web/public/assets/components-DiZ1dSl3.js +77 -0
  50. package/dist/web/public/assets/coq-BaHtq3Qt.js +1 -0
  51. package/dist/web/public/assets/cpp-D8Y73ItU.js +1 -0
  52. package/dist/web/public/assets/crystal-CnXWqbxx.js +1 -0
  53. package/dist/web/public/assets/csharp-D6sghVPa.js +1 -0
  54. package/dist/web/public/assets/css-CUGjdPw_.js +1 -0
  55. package/dist/web/public/assets/csv-DuxyxUAI.js +1 -0
  56. package/dist/web/public/assets/cue-D9NRAX0_.js +1 -0
  57. package/dist/web/public/assets/cypher-HJRdtilF.js +1 -0
  58. package/dist/web/public/assets/d-B4Ont7_X.js +1 -0
  59. package/dist/web/public/assets/dark-plus-DZSBycyp.js +1 -0
  60. package/dist/web/public/assets/dart-Dp4asavE.js +1 -0
  61. package/dist/web/public/assets/dax-DBUubp6S.js +1 -0
  62. package/dist/web/public/assets/desktop-DQ0n6zIQ.js +1 -0
  63. package/dist/web/public/assets/diff-CFHlrffC.js +1 -0
  64. package/dist/web/public/assets/docker-BuefmsF5.js +1 -0
  65. package/dist/web/public/assets/dotenv-BKTsUQ_r.js +1 -0
  66. package/dist/web/public/assets/dracula-MOn9qacs.js +1 -0
  67. package/dist/web/public/assets/dracula-soft-C4r_sC_D.js +1 -0
  68. package/dist/web/public/assets/dream-maker-BNdv5lLS.js +1 -0
  69. package/dist/web/public/assets/edge-C-Mi8Oda.js +1 -0
  70. package/dist/web/public/assets/elixir-CTS5wQtX.js +1 -0
  71. package/dist/web/public/assets/elm-rM310x8D.js +1 -0
  72. package/dist/web/public/assets/emacs-lisp-D9FIGRtM.js +1 -0
  73. package/dist/web/public/assets/erb-oaGjGVGO.js +1 -0
  74. package/dist/web/public/assets/erlang-q4Mkyw3m.js +1 -0
  75. package/dist/web/public/assets/everforest-dark-CNa2QFRn.js +1 -0
  76. package/dist/web/public/assets/everforest-light-DRbUDqJT.js +1 -0
  77. package/dist/web/public/assets/fennel-DpqQTaVZ.js +1 -0
  78. package/dist/web/public/assets/field-1-Ujza0S5j.js +1 -0
  79. package/dist/web/public/assets/fish-hyk5x6Q4.js +1 -0
  80. package/dist/web/public/assets/fluent-DMll-MGX.js +1 -0
  81. package/dist/web/public/assets/fortran-fixed-form-BmdfKovV.js +1 -0
  82. package/dist/web/public/assets/fortran-free-form-MCAifii4.js +1 -0
  83. package/dist/web/public/assets/fsharp-DLlBn9Nl.js +1 -0
  84. package/dist/web/public/assets/gdresource-BzFzBRli.js +1 -0
  85. package/dist/web/public/assets/gdscript-D3R4J0Cv.js +1 -0
  86. package/dist/web/public/assets/gdshader-BAubtqqN.js +1 -0
  87. package/dist/web/public/assets/genie-BnIIX2pC.js +1 -0
  88. package/dist/web/public/assets/gherkin-CL3NUuB1.js +1 -0
  89. package/dist/web/public/assets/git-commit-BYPE8h85.js +1 -0
  90. package/dist/web/public/assets/git-rebase-Bmmgf6eN.js +1 -0
  91. package/dist/web/public/assets/github-dark-default-C6I2oE4c.js +1 -0
  92. package/dist/web/public/assets/github-dark-dimmed-DEqwxg6D.js +1 -0
  93. package/dist/web/public/assets/github-dark-high-contrast-DDt3j0cs.js +1 -0
  94. package/dist/web/public/assets/github-dark-oLN6SDKl.js +1 -0
  95. package/dist/web/public/assets/github-light-DaN-N2Gj.js +1 -0
  96. package/dist/web/public/assets/github-light-default-B3EwMbS7.js +1 -0
  97. package/dist/web/public/assets/github-light-high-contrast-Cl9D0f_e.js +1 -0
  98. package/dist/web/public/assets/gleam-Cvj8QRtQ.js +1 -0
  99. package/dist/web/public/assets/glimmer-js-CahbROb1.js +1 -0
  100. package/dist/web/public/assets/glimmer-ts-JMFYNbot.js +1 -0
  101. package/dist/web/public/assets/global-XWAvxWcA.css +2 -0
  102. package/dist/web/public/assets/glsl-BCuCNM3V.js +1 -0
  103. package/dist/web/public/assets/gn-DxCHSEMl.js +1 -0
  104. package/dist/web/public/assets/gnuplot-CkGXHK7B.js +1 -0
  105. package/dist/web/public/assets/go-B_NLCuTj.js +1 -0
  106. package/dist/web/public/assets/graphql-RXOfHGfI.js +1 -0
  107. package/dist/web/public/assets/groovy-DVge8oRs.js +1 -0
  108. package/dist/web/public/assets/gruvbox-dark-hard-BwZz1yni.js +1 -0
  109. package/dist/web/public/assets/gruvbox-dark-medium-Bqy6jkuO.js +1 -0
  110. package/dist/web/public/assets/gruvbox-dark-soft-DjUvyUfH.js +1 -0
  111. package/dist/web/public/assets/gruvbox-light-hard-BTLmfPdm.js +1 -0
  112. package/dist/web/public/assets/gruvbox-light-medium-DeWqsWs6.js +1 -0
  113. package/dist/web/public/assets/gruvbox-light-soft-BL8ld-1F.js +1 -0
  114. package/dist/web/public/assets/hack-BBQpwyf_.js +1 -0
  115. package/dist/web/public/assets/haml-mWELc9kh.js +1 -0
  116. package/dist/web/public/assets/handlebars-COrUo8cC.js +1 -0
  117. package/dist/web/public/assets/haskell-DRmM8XlQ.js +1 -0
  118. package/dist/web/public/assets/haxe-BEhq8ZEr.js +1 -0
  119. package/dist/web/public/assets/hcl-B5ZIaGS0.js +1 -0
  120. package/dist/web/public/assets/highlighted-body-TPN3WLV5-YJgGFx4e.js +1 -0
  121. package/dist/web/public/assets/hjson-B9uRLqIO.js +1 -0
  122. package/dist/web/public/assets/hlsl-Hv1kKjrS.js +1 -0
  123. package/dist/web/public/assets/horizon-ClXGBjWw.js +1 -0
  124. package/dist/web/public/assets/horizon-bright-CvUCr3ux.js +1 -0
  125. package/dist/web/public/assets/houston-NqkqG60q.js +1 -0
  126. package/dist/web/public/assets/html-cmigv1ou.js +1 -0
  127. package/dist/web/public/assets/html-derivative-B3me0pSu.js +1 -0
  128. package/dist/web/public/assets/http-BojM9cyU.js +1 -0
  129. package/dist/web/public/assets/hurl-BxEmMiGP.js +1 -0
  130. package/dist/web/public/assets/hxml-CoBuVbfs.js +1 -0
  131. package/dist/web/public/assets/hy-CeISYGGU.js +1 -0
  132. package/dist/web/public/assets/imba-xjcDFXUW.js +1 -0
  133. package/dist/web/public/assets/ini-D0ZCSj6e.js +1 -0
  134. package/dist/web/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  135. package/dist/web/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  136. package/dist/web/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  137. package/dist/web/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  138. package/dist/web/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  139. package/dist/web/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  140. package/dist/web/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  141. package/dist/web/public/assets/java-BvheClGI.js +1 -0
  142. package/dist/web/public/assets/javascript-DjlJORDg.js +1 -0
  143. package/dist/web/public/assets/jinja-Bi4sG72X.js +1 -0
  144. package/dist/web/public/assets/jison-BTz5Ik2Y.js +1 -0
  145. package/dist/web/public/assets/json-CiTd40Rg.js +1 -0
  146. package/dist/web/public/assets/json5-FR9EyF7a.js +1 -0
  147. package/dist/web/public/assets/jsonc-CHIeFfsD.js +1 -0
  148. package/dist/web/public/assets/jsonl-B4WQkwTf.js +1 -0
  149. package/dist/web/public/assets/jsonnet-vd-gzGkL.js +1 -0
  150. package/dist/web/public/assets/jssm-C_bj1LkZ.js +1 -0
  151. package/dist/web/public/assets/jsx-Bx-RZMFH.js +1 -0
  152. package/dist/web/public/assets/jsx-runtime-n8k0hwt8.js +1 -0
  153. package/dist/web/public/assets/julia-BKcIfSxk.js +1 -0
  154. package/dist/web/public/assets/just-IkZCagAs.js +1 -0
  155. package/dist/web/public/assets/kanagawa-dragon-B3Cz89vt.js +1 -0
  156. package/dist/web/public/assets/kanagawa-lotus-CRe_W5Ft.js +1 -0
  157. package/dist/web/public/assets/kanagawa-wave-BPqZ5XB7.js +1 -0
  158. package/dist/web/public/assets/kdl-BzL_Ak31.js +1 -0
  159. package/dist/web/public/assets/kotlin-BQQFk6ql.js +1 -0
  160. package/dist/web/public/assets/kusto-vWe6OLKV.js +1 -0
  161. package/dist/web/public/assets/laserwave-CwtvEUcj.js +1 -0
  162. package/dist/web/public/assets/latex-9N90_WFU.js +1 -0
  163. package/dist/web/public/assets/lean-CaqenOqv.js +1 -0
  164. package/dist/web/public/assets/less-CERnPzn6.js +1 -0
  165. package/dist/web/public/assets/light-plus-B9_M_OKq.js +1 -0
  166. package/dist/web/public/assets/liquid-CQLPDP7m.js +1 -0
  167. package/dist/web/public/assets/llvm-BylJXvm7.js +1 -0
  168. package/dist/web/public/assets/log-CBBcNcbO.js +1 -0
  169. package/dist/web/public/assets/logo-r-8Jc8Xk.js +1 -0
  170. package/dist/web/public/assets/lua-BBL6LXKd.js +1 -0
  171. package/dist/web/public/assets/luau-B2g7L-zP.js +1 -0
  172. package/dist/web/public/assets/main-0lKVDR64.css +2 -0
  173. package/dist/web/public/assets/main-CcNf0BOb.js +126 -0
  174. package/dist/web/public/assets/make-DK-HzJ2w.js +1 -0
  175. package/dist/web/public/assets/markdown-FgdsukgR.js +1 -0
  176. package/dist/web/public/assets/marko-CLZwt2N2.js +1 -0
  177. package/dist/web/public/assets/material-theme-DOJ9PS4O.js +1 -0
  178. package/dist/web/public/assets/material-theme-darker-DOurH5jT.js +1 -0
  179. package/dist/web/public/assets/material-theme-lighter-BfPWxCP6.js +1 -0
  180. package/dist/web/public/assets/material-theme-ocean-BcO5PKoq.js +1 -0
  181. package/dist/web/public/assets/material-theme-palenight-ClWQBDDd.js +1 -0
  182. package/dist/web/public/assets/matlab-DwyUVNXd.js +1 -0
  183. package/dist/web/public/assets/mdc-Bo8CRPg4.js +1 -0
  184. package/dist/web/public/assets/mdx-3EBShbsD.js +1 -0
  185. package/dist/web/public/assets/mermaid-ByG2-SLz.js +1 -0
  186. package/dist/web/public/assets/mermaid-O7DHMXV3-COAgR3aM.js +1 -0
  187. package/dist/web/public/assets/min-dark-ClJ2x5pc.js +1 -0
  188. package/dist/web/public/assets/min-light-BsOUz5iE.js +1 -0
  189. package/dist/web/public/assets/mipsasm-BKDtQCf3.js +1 -0
  190. package/dist/web/public/assets/mojo-DmEAK7iv.js +1 -0
  191. package/dist/web/public/assets/monokai-BKc3VADO.js +1 -0
  192. package/dist/web/public/assets/moonbit-Qm8v_cKN.js +1 -0
  193. package/dist/web/public/assets/move-CMectUPk.js +1 -0
  194. package/dist/web/public/assets/narrat-Bdm8NaK8.js +1 -0
  195. package/dist/web/public/assets/nextflow-BpSt05nC.js +1 -0
  196. package/dist/web/public/assets/nextflow-groovy-BZ-bqJ-u.js +1 -0
  197. package/dist/web/public/assets/nginx-ChZL5FWE.js +1 -0
  198. package/dist/web/public/assets/night-owl-CbFc5pXO.js +1 -0
  199. package/dist/web/public/assets/night-owl-light-zYbVCVuz.js +1 -0
  200. package/dist/web/public/assets/nim-5JnPAJWa.js +1 -0
  201. package/dist/web/public/assets/nix-P5P-2qHs.js +1 -0
  202. package/dist/web/public/assets/nord-C7hKGudV.js +1 -0
  203. package/dist/web/public/assets/nushell-DKPnC5RG.js +1 -0
  204. package/dist/web/public/assets/objective-c-BPwXtM0v.js +1 -0
  205. package/dist/web/public/assets/objective-cpp-CWYEdWNG.js +1 -0
  206. package/dist/web/public/assets/ocaml-CL7OJ02v.js +1 -0
  207. package/dist/web/public/assets/odin-Dtay25eA.js +1 -0
  208. package/dist/web/public/assets/one-dark-pro-CrdFNNwF.js +1 -0
  209. package/dist/web/public/assets/one-light-BUiz8X4B.js +1 -0
  210. package/dist/web/public/assets/openscad-WD4sXUUp.js +1 -0
  211. package/dist/web/public/assets/pascal-A6-MZnZ8.js +1 -0
  212. package/dist/web/public/assets/perl-Yq3AfnVV.js +1 -0
  213. package/dist/web/public/assets/php-CCj0foPx.js +1 -0
  214. package/dist/web/public/assets/pkl-cmPbg8fI.js +1 -0
  215. package/dist/web/public/assets/plastic-DtQ_LnDB.js +1 -0
  216. package/dist/web/public/assets/plsql-DwmuVd7q.js +1 -0
  217. package/dist/web/public/assets/po-CkVxkZaj.js +1 -0
  218. package/dist/web/public/assets/poimandres-Dt0xZuaa.js +1 -0
  219. package/dist/web/public/assets/polar-hStNz_W2.js +1 -0
  220. package/dist/web/public/assets/postcss-ZIk0AQ7M.js +1 -0
  221. package/dist/web/public/assets/powerquery-D0gqoHHD.js +1 -0
  222. package/dist/web/public/assets/powershell-DXB5HoVh.js +1 -0
  223. package/dist/web/public/assets/prisma-DmTrfxC0.js +1 -0
  224. package/dist/web/public/assets/prolog-CdoyriEj.js +1 -0
  225. package/dist/web/public/assets/proto-4MrN11dS.js +1 -0
  226. package/dist/web/public/assets/pug-svYJKDOQ.js +1 -0
  227. package/dist/web/public/assets/puppet-MEaLGpAP.js +1 -0
  228. package/dist/web/public/assets/purescript-CPxCorqB.js +1 -0
  229. package/dist/web/public/assets/python-f4fp5z0z.js +1 -0
  230. package/dist/web/public/assets/qml-BzEtWdqI.js +1 -0
  231. package/dist/web/public/assets/qmldir-DCjSceJ_.js +1 -0
  232. package/dist/web/public/assets/qss-BdM02NUc.js +1 -0
  233. package/dist/web/public/assets/r-luosIeJH.js +1 -0
  234. package/dist/web/public/assets/racket-D2tfa8Zc.js +1 -0
  235. package/dist/web/public/assets/raku-KeGPJVZg.js +1 -0
  236. package/dist/web/public/assets/razor-Bokxs4Qx.js +1 -0
  237. package/dist/web/public/assets/red-C0qZ-1lN.js +1 -0
  238. package/dist/web/public/assets/reg-DdnswvOj.js +1 -0
  239. package/dist/web/public/assets/regexp-CYC8h6V9.js +1 -0
  240. package/dist/web/public/assets/rel-RhzEfSRc.js +1 -0
  241. package/dist/web/public/assets/riscv-dS5TzX10.js +1 -0
  242. package/dist/web/public/assets/ron-CQjQSCVp.js +1 -0
  243. package/dist/web/public/assets/rose-pine-C89ViLdr.js +1 -0
  244. package/dist/web/public/assets/rose-pine-dawn-Dq2gf0yi.js +1 -0
  245. package/dist/web/public/assets/rose-pine-moon-CBDvXVs_.js +1 -0
  246. package/dist/web/public/assets/rosmsg-nvjuSIGu.js +1 -0
  247. package/dist/web/public/assets/routes-BXqJCOpL.js +542 -0
  248. package/dist/web/public/assets/rst-1xwvVGf7.js +1 -0
  249. package/dist/web/public/assets/ruby-Blad-eDx.js +1 -0
  250. package/dist/web/public/assets/rust-rV8q_xyI.js +1 -0
  251. package/dist/web/public/assets/sas-DUPWtptg.js +1 -0
  252. package/dist/web/public/assets/sass-CuxdoNN0.js +1 -0
  253. package/dist/web/public/assets/scala-Df4L7N3R.js +1 -0
  254. package/dist/web/public/assets/scheme-DalRmAPH.js +1 -0
  255. package/dist/web/public/assets/scss-CYQ8LEwP.js +1 -0
  256. package/dist/web/public/assets/sdbl-B_TmFnGf.js +1 -0
  257. package/dist/web/public/assets/shaderlab-DYEMDY3e.js +1 -0
  258. package/dist/web/public/assets/shellscript-DjKZ34ac.js +1 -0
  259. package/dist/web/public/assets/shellsession-C3kcnBnh.js +1 -0
  260. package/dist/web/public/assets/slack-dark-ak_jOeLl.js +1 -0
  261. package/dist/web/public/assets/slack-ochin-ByiYhLwu.js +1 -0
  262. package/dist/web/public/assets/smalltalk-DTTnjjZJ.js +1 -0
  263. package/dist/web/public/assets/snazzy-light-BBRYeY60.js +1 -0
  264. package/dist/web/public/assets/solarized-dark-BtoLnWkw.js +1 -0
  265. package/dist/web/public/assets/solarized-light-CtzUA7GI.js +1 -0
  266. package/dist/web/public/assets/solidity-CSIHEQ2t.js +1 -0
  267. package/dist/web/public/assets/soy-BN0uzUAI.js +1 -0
  268. package/dist/web/public/assets/sparql-B6k9tA6Q.js +1 -0
  269. package/dist/web/public/assets/splunk-DkRzN7V_.js +1 -0
  270. package/dist/web/public/assets/sql-Bx-WX28V.js +1 -0
  271. package/dist/web/public/assets/ssh-config-Bqp7ng33.js +1 -0
  272. package/dist/web/public/assets/stata-HAj7doU8.js +1 -0
  273. package/dist/web/public/assets/stylus-CdbCxDLX.js +1 -0
  274. package/dist/web/public/assets/surrealql-BkGf0I3k.js +1 -0
  275. package/dist/web/public/assets/svelte-DtWg6ssL.js +1 -0
  276. package/dist/web/public/assets/swift-yRu2dtgr.js +1 -0
  277. package/dist/web/public/assets/synthwave-84-2WIu6MHX.js +1 -0
  278. package/dist/web/public/assets/system-verilog-GUE_oP1V.js +1 -0
  279. package/dist/web/public/assets/systemd-FLIJAQZV.js +1 -0
  280. package/dist/web/public/assets/talonscript-DTR-8ILs.js +1 -0
  281. package/dist/web/public/assets/tasl-WHNWP-1F.js +1 -0
  282. package/dist/web/public/assets/tcl-BaBXNNp6.js +1 -0
  283. package/dist/web/public/assets/templ-Dc9vj00n.js +1 -0
  284. package/dist/web/public/assets/terraform-uJUFpr8t.js +1 -0
  285. package/dist/web/public/assets/tex-DA3dAz55.js +1 -0
  286. package/dist/web/public/assets/tokyo-night-BbogFqAr.js +1 -0
  287. package/dist/web/public/assets/toml-CyR4Gqq1.js +1 -0
  288. package/dist/web/public/assets/ts-tags-BD1j21LH.js +1 -0
  289. package/dist/web/public/assets/tsv-COLVYI6A.js +1 -0
  290. package/dist/web/public/assets/tsx-CFm2E6uK.js +1 -0
  291. package/dist/web/public/assets/turtle-PQwt4gkb.js +1 -0
  292. package/dist/web/public/assets/twig-DrUXy85s.js +1 -0
  293. package/dist/web/public/assets/typescript-Dy-5sXFx.js +1 -0
  294. package/dist/web/public/assets/typespec-Bb7qHV0g.js +1 -0
  295. package/dist/web/public/assets/typst-Bj_JElGz.js +1 -0
  296. package/dist/web/public/assets/v-BTkrtik4.js +1 -0
  297. package/dist/web/public/assets/vala-AXT1CI9v.js +1 -0
  298. package/dist/web/public/assets/vb-DzTKUgW8.js +1 -0
  299. package/dist/web/public/assets/verilog-aI3j5Xj8.js +1 -0
  300. package/dist/web/public/assets/vesper-BmnwIC_B.js +1 -0
  301. package/dist/web/public/assets/vhdl-4IgBB7vO.js +1 -0
  302. package/dist/web/public/assets/viml-D_XMKSR6.js +1 -0
  303. package/dist/web/public/assets/vitesse-black-DhmxIXiA.js +1 -0
  304. package/dist/web/public/assets/vitesse-dark-dvEH_9qt.js +1 -0
  305. package/dist/web/public/assets/vitesse-light-Ca0W2L1O.js +1 -0
  306. package/dist/web/public/assets/vue-DC_yTvy2.js +1 -0
  307. package/dist/web/public/assets/vue-html-Bp8x4gdt.js +1 -0
  308. package/dist/web/public/assets/vue-vine-ZcUkuUUp.js +1 -0
  309. package/dist/web/public/assets/vyper-Dz2f7-FK.js +1 -0
  310. package/dist/web/public/assets/wasm-CuXPCj65.js +1 -0
  311. package/dist/web/public/assets/wasm-DHkXUMsP.js +1 -0
  312. package/dist/web/public/assets/wenyan-BRAtM0Iv.js +1 -0
  313. package/dist/web/public/assets/wgsl-CMpn9jTa.js +1 -0
  314. package/dist/web/public/assets/wikitext-DRmBVmVA.js +1 -0
  315. package/dist/web/public/assets/wit-Drp_HLqJ.js +1 -0
  316. package/dist/web/public/assets/wolfram-C33umj7M.js +1 -0
  317. package/dist/web/public/assets/xml-BHoOtGbO.js +1 -0
  318. package/dist/web/public/assets/xsl-CN1PlFqm.js +1 -0
  319. package/dist/web/public/assets/yaml-DT0mpn8u.js +1 -0
  320. package/dist/web/public/assets/zenscript-BlYQ_Frf.js +1 -0
  321. package/dist/web/public/assets/zig-Buk7I0y-.js +1 -0
  322. package/dist/web/server/_chunks/ssr-renderer.mjs +15 -0
  323. package/dist/web/server/_libs/@ai-sdk/anthropic+[...].mjs +14021 -0
  324. package/dist/web/server/_libs/@ai-sdk/moonshotai+[...].mjs +898 -0
  325. package/dist/web/server/_libs/@ai-sdk/react+[...].mjs +8969 -0
  326. package/dist/web/server/_libs/@emotion/is-prop-valid+[...].mjs +34 -0
  327. package/dist/web/server/_libs/@floating-ui/core+[...].mjs +698 -0
  328. package/dist/web/server/_libs/@floating-ui/dom+[...].mjs +644 -0
  329. package/dist/web/server/_libs/@floating-ui/react-dom+[...].mjs +475 -0
  330. package/dist/web/server/_libs/@lobehub/icons+[...].mjs +3079 -0
  331. package/dist/web/server/_libs/@radix-ui/react-arrow+[...].mjs +184 -0
  332. package/dist/web/server/_libs/@radix-ui/react-collapsible+[...].mjs +374 -0
  333. package/dist/web/server/_libs/@radix-ui/react-dialog+[...].mjs +1503 -0
  334. package/dist/web/server/_libs/@radix-ui/react-menu+[...].mjs +1236 -0
  335. package/dist/web/server/_libs/@radix-ui/react-select+[...].mjs +1007 -0
  336. package/dist/web/server/_libs/@shikijs/core+[...].mjs +9017 -0
  337. package/dist/web/server/_libs/@shikijs/engine-javascript+[...].mjs +3159 -0
  338. package/dist/web/server/_libs/@streamdown/math+[...].mjs +37559 -0
  339. package/dist/web/server/_libs/@tanstack/react-router+[...].mjs +14074 -0
  340. package/dist/web/server/_libs/_.mjs +3 -0
  341. package/dist/web/server/_libs/_2.mjs +3 -0
  342. package/dist/web/server/_libs/_3.mjs +2 -0
  343. package/dist/web/server/_libs/_4.mjs +2 -0
  344. package/dist/web/server/_libs/ai-sdk__gateway+vercel__oidc.mjs +1255 -0
  345. package/dist/web/server/_libs/ai-sdk__google.mjs +1630 -0
  346. package/dist/web/server/_libs/ai-sdk__openai+zod.mjs +4951 -0
  347. package/dist/web/server/_libs/ai-sdk__provider-utils.mjs +411 -0
  348. package/dist/web/server/_libs/ai-sdk__provider.mjs +222 -0
  349. package/dist/web/server/_libs/bail.mjs +13 -0
  350. package/dist/web/server/_libs/character-entities.mjs +2135 -0
  351. package/dist/web/server/_libs/class-variance-authority+clsx.mjs +69 -0
  352. package/dist/web/server/_libs/color+[...].mjs +2185 -0
  353. package/dist/web/server/_libs/copy-text-to-clipboard.mjs +40 -0
  354. package/dist/web/server/_libs/d3-array.mjs +231 -0
  355. package/dist/web/server/_libs/d3-color.mjs +330 -0
  356. package/dist/web/server/_libs/d3-format.mjs +252 -0
  357. package/dist/web/server/_libs/d3-interpolate.mjs +207 -0
  358. package/dist/web/server/_libs/d3-path.mjs +77 -0
  359. package/dist/web/server/_libs/d3-scale+[...].mjs +1907 -0
  360. package/dist/web/server/_libs/d3-shape.mjs +818 -0
  361. package/dist/web/server/_libs/date-fns.mjs +3012 -0
  362. package/dist/web/server/_libs/date-fns__tz.mjs +249 -0
  363. package/dist/web/server/_libs/decimal.js-light.mjs +884 -0
  364. package/dist/web/server/_libs/decode-named-character-reference+[...].mjs +19 -0
  365. package/dist/web/server/_libs/dexie.mjs +3745 -0
  366. package/dist/web/server/_libs/escape-string-regexp.mjs +7 -0
  367. package/dist/web/server/_libs/estree-util-is-identifier-name.mjs +20 -0
  368. package/dist/web/server/_libs/eventemitter3.mjs +237 -0
  369. package/dist/web/server/_libs/extend.mjs +75 -0
  370. package/dist/web/server/_libs/fast-equals.mjs +423 -0
  371. package/dist/web/server/_libs/framer-motion+[...].mjs +9573 -0
  372. package/dist/web/server/_libs/fuzzysort.mjs +621 -0
  373. package/dist/web/server/_libs/h3+rou3+srvx.mjs +1158 -0
  374. package/dist/web/server/_libs/hast-util-raw+[...].mjs +800 -0
  375. package/dist/web/server/_libs/hast-util-sanitize.mjs +780 -0
  376. package/dist/web/server/_libs/hast-util-to-jsx-runtime+[...].mjs +853 -0
  377. package/dist/web/server/_libs/hookable.mjs +41 -0
  378. package/dist/web/server/_libs/html-url-attributes.mjs +44 -0
  379. package/dist/web/server/_libs/is-plain-obj.mjs +8 -0
  380. package/dist/web/server/_libs/lodash.mjs +4532 -0
  381. package/dist/web/server/_libs/lucide-react.mjs +605 -0
  382. package/dist/web/server/_libs/markdown-table.mjs +289 -0
  383. package/dist/web/server/_libs/marked.mjs +1511 -0
  384. package/dist/web/server/_libs/mdast-util-find-and-replace.mjs +198 -0
  385. package/dist/web/server/_libs/mdast-util-from-markdown+[...].mjs +8121 -0
  386. package/dist/web/server/_libs/mdast-util-gfm+[...].mjs +2060 -0
  387. package/dist/web/server/_libs/mdast-util-to-hast+[...].mjs +1770 -0
  388. package/dist/web/server/_libs/micromark-extension-gfm+[...].mjs +2235 -0
  389. package/dist/web/server/_libs/nanoid.mjs +26 -0
  390. package/dist/web/server/_libs/next-themes.mjs +124 -0
  391. package/dist/web/server/_libs/prop-types.mjs +69 -0
  392. package/dist/web/server/_libs/radix-ui__number.mjs +6 -0
  393. package/dist/web/server/_libs/radix-ui__primitive.mjs +9 -0
  394. package/dist/web/server/_libs/radix-ui__react-collection.mjs +80 -0
  395. package/dist/web/server/_libs/radix-ui__react-direction.mjs +11 -0
  396. package/dist/web/server/_libs/radix-ui__react-label.mjs +23 -0
  397. package/dist/web/server/_libs/radix-ui__react-menubar.mjs +400 -0
  398. package/dist/web/server/_libs/radix-ui__react-popover.mjs +251 -0
  399. package/dist/web/server/_libs/radix-ui__react-progress.mjs +81 -0
  400. package/dist/web/server/_libs/radix-ui__react-scroll-area.mjs +669 -0
  401. package/dist/web/server/_libs/radix-ui__react-separator.mjs +32 -0
  402. package/dist/web/server/_libs/radix-ui__react-slider.mjs +464 -0
  403. package/dist/web/server/_libs/radix-ui__react-switch.mjs +120 -0
  404. package/dist/web/server/_libs/radix-ui__react-tabs.mjs +145 -0
  405. package/dist/web/server/_libs/radix-ui__react-tooltip.mjs +494 -0
  406. package/dist/web/server/_libs/react-day-picker.mjs +3510 -0
  407. package/dist/web/server/_libs/react-is.mjs +48 -0
  408. package/dist/web/server/_libs/react-resizable-panels.mjs +1517 -0
  409. package/dist/web/server/_libs/react-smooth.mjs +1024 -0
  410. package/dist/web/server/_libs/recharts+[...].mjs +12998 -0
  411. package/dist/web/server/_libs/rehype-harden.mjs +210 -0
  412. package/dist/web/server/_libs/rehype-raw.mjs +37 -0
  413. package/dist/web/server/_libs/rehype-sanitize.mjs +27 -0
  414. package/dist/web/server/_libs/remark-gfm.mjs +34 -0
  415. package/dist/web/server/_libs/remark-parse.mjs +37 -0
  416. package/dist/web/server/_libs/remark-rehype.mjs +169 -0
  417. package/dist/web/server/_libs/remend.mjs +544 -0
  418. package/dist/web/server/_libs/scule.mjs +55 -0
  419. package/dist/web/server/_libs/shiki+streamdown__code.mjs +1748 -0
  420. package/dist/web/server/_libs/shiki.mjs +16 -0
  421. package/dist/web/server/_libs/shikijs__engine-oniguruma.mjs +387 -0
  422. package/dist/web/server/_libs/shikijs__langs.mjs +1357 -0
  423. package/dist/web/server/_libs/shikijs__themes.mjs +268 -0
  424. package/dist/web/server/_libs/sonner.mjs +909 -0
  425. package/dist/web/server/_libs/streamdown+[...].mjs +5842 -0
  426. package/dist/web/server/_libs/tanstack__history.mjs +342 -0
  427. package/dist/web/server/_libs/tanstack__query-core.mjs +2073 -0
  428. package/dist/web/server/_libs/tanstack__react-query.mjs +146 -0
  429. package/dist/web/server/_libs/tanstack__router-core.mjs +6 -0
  430. package/dist/web/server/_libs/tanstack__zod-adapter.mjs +16 -0
  431. package/dist/web/server/_libs/ufo.mjs +64 -0
  432. package/dist/web/server/_libs/ungap__structured-clone.mjs +197 -0
  433. package/dist/web/server/_libs/use-stick-to-bottom.mjs +410 -0
  434. package/dist/web/server/_libs/vercel__oidc.mjs +393 -0
  435. package/dist/web/server/_libs/zhipu-ai-provider.mjs +13483 -0
  436. package/dist/web/server/_libs/zustand.mjs +48 -0
  437. package/dist/web/server/_runtime.mjs +35 -0
  438. package/dist/web/server/_ssr/components-BzCiScpA.mjs +1452 -0
  439. package/dist/web/server/_ssr/dist-3Mu7PF0n.mjs +137 -0
  440. package/dist/web/server/_ssr/dist-BRaLXgxZ.mjs +17 -0
  441. package/dist/web/server/_ssr/field-1-agM60DBf.mjs +167 -0
  442. package/dist/web/server/_ssr/get-providers-BoYkp0Of.mjs +40 -0
  443. package/dist/web/server/_ssr/initialize-provider-B6W8V5Eg.mjs +19 -0
  444. package/dist/web/server/_ssr/model-list-CDFjdz2P.mjs +60 -0
  445. package/dist/web/server/_ssr/router-BmmOCtJZ.mjs +168 -0
  446. package/dist/web/server/_ssr/routes-CvlpZK4Q.mjs +2630 -0
  447. package/dist/web/server/_ssr/schemas-DsZ5O3zp.mjs +67 -0
  448. package/dist/web/server/_ssr/send-message-DUT1vRvx.mjs +135 -0
  449. package/dist/web/server/_ssr/ssr.mjs +5253 -0
  450. package/dist/web/server/_ssr/start-rewezkfD.mjs +4 -0
  451. package/dist/web/server/_ssr/submit-key-CcCv6-yy.mjs +62 -0
  452. package/dist/web/server/_ssr/suggestions-B0Uc3p7F.mjs +38 -0
  453. package/dist/web/server/_ssr/use-providers-Bwqg2U3N.mjs +1554 -0
  454. package/dist/web/server/_tanstack-start-manifest_v-BMIvh4y6.mjs +60 -0
  455. package/dist/web/server/index.mjs +2531 -0
  456. package/dist/web/server/node_modules/tslib/modules/index.js +70 -0
  457. package/dist/web/server/node_modules/tslib/modules/package.json +3 -0
  458. package/dist/web/server/node_modules/tslib/package.json +47 -0
  459. package/dist/web/server/node_modules/tslib/tslib.js +484 -0
  460. package/package.json +32 -0
@@ -0,0 +1,3012 @@
1
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js
2
+ /**
3
+ * @constant
4
+ * @name daysInYear
5
+ * @summary Days in 1 year.
6
+ *
7
+ * @description
8
+ * How many days in a year.
9
+ *
10
+ * One years equals 365.2425 days according to the formula:
11
+ *
12
+ * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.
13
+ * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days
14
+ */
15
+ var daysInYear = 365.2425;
16
+ Math.pow(10, 8) * 24 * 60 * 60 * 1e3;
17
+ /**
18
+ * @constant
19
+ * @name millisecondsInWeek
20
+ * @summary Milliseconds in 1 week.
21
+ */
22
+ var millisecondsInWeek = 6048e5;
23
+ /**
24
+ * @constant
25
+ * @name millisecondsInDay
26
+ * @summary Milliseconds in 1 day.
27
+ */
28
+ var millisecondsInDay = 864e5;
29
+ /**
30
+ * @constant
31
+ * @name secondsInDay
32
+ * @summary Seconds in 1 day.
33
+ */
34
+ var secondsInDay = 3600 * 24;
35
+ secondsInDay * 7;
36
+ secondsInDay * daysInYear / 12 * 3;
37
+ /**
38
+ * @constant
39
+ * @name constructFromSymbol
40
+ * @summary Symbol enabling Date extensions to inherit properties from the reference date.
41
+ *
42
+ * The symbol is used to enable the `constructFrom` function to construct a date
43
+ * using a reference date and a value. It allows to transfer extra properties
44
+ * from the reference date to the new date. It's useful for extensions like
45
+ * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as
46
+ * a constructor argument.
47
+ */
48
+ var constructFromSymbol = Symbol.for("constructDateFrom");
49
+ //#endregion
50
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js
51
+ /**
52
+ * @name constructFrom
53
+ * @category Generic Helpers
54
+ * @summary Constructs a date using the reference date and the value
55
+ *
56
+ * @description
57
+ * The function constructs a new date using the constructor from the reference
58
+ * date and the given value. It helps to build generic functions that accept
59
+ * date extensions.
60
+ *
61
+ * It defaults to `Date` if the passed reference date is a number or a string.
62
+ *
63
+ * Starting from v3.7.0, it allows to construct a date using `[Symbol.for("constructDateFrom")]`
64
+ * enabling to transfer extra properties from the reference date to the new date.
65
+ * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
66
+ * that accept a time zone as a constructor argument.
67
+ *
68
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
69
+ *
70
+ * @param date - The reference date to take constructor from
71
+ * @param value - The value to create the date
72
+ *
73
+ * @returns Date initialized using the given date and value
74
+ *
75
+ * @example
76
+ * import { constructFrom } from "./constructFrom/date-fns";
77
+ *
78
+ * // A function that clones a date preserving the original type
79
+ * function cloneDate<DateType extends Date>(date: DateType): DateType {
80
+ * return constructFrom(
81
+ * date, // Use constructor from the given date
82
+ * date.getTime() // Use the date value to create a new date
83
+ * );
84
+ * }
85
+ */
86
+ function constructFrom(date, value) {
87
+ if (typeof date === "function") return date(value);
88
+ if (date && typeof date === "object" && constructFromSymbol in date) return date[constructFromSymbol](value);
89
+ if (date instanceof Date) return new date.constructor(value);
90
+ return new Date(value);
91
+ }
92
+ //#endregion
93
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js
94
+ /**
95
+ * @name toDate
96
+ * @category Common Helpers
97
+ * @summary Convert the given argument to an instance of Date.
98
+ *
99
+ * @description
100
+ * Convert the given argument to an instance of Date.
101
+ *
102
+ * If the argument is an instance of Date, the function returns its clone.
103
+ *
104
+ * If the argument is a number, it is treated as a timestamp.
105
+ *
106
+ * If the argument is none of the above, the function returns Invalid Date.
107
+ *
108
+ * Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]`
109
+ * enabling to transfer extra properties from the reference date to the new date.
110
+ * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
111
+ * that accept a time zone as a constructor argument.
112
+ *
113
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
114
+ *
115
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
116
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
117
+ *
118
+ * @param argument - The value to convert
119
+ *
120
+ * @returns The parsed date in the local time zone
121
+ *
122
+ * @example
123
+ * // Clone the date:
124
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
125
+ * //=> Tue Feb 11 2014 11:30:30
126
+ *
127
+ * @example
128
+ * // Convert the timestamp to date:
129
+ * const result = toDate(1392098430000)
130
+ * //=> Tue Feb 11 2014 11:30:30
131
+ */
132
+ function toDate(argument, context) {
133
+ return constructFrom(context || argument, argument);
134
+ }
135
+ //#endregion
136
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js
137
+ /**
138
+ * The {@link addDays} function options.
139
+ */
140
+ /**
141
+ * @name addDays
142
+ * @category Day Helpers
143
+ * @summary Add the specified number of days to the given date.
144
+ *
145
+ * @description
146
+ * Add the specified number of days to the given date.
147
+ *
148
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
149
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
150
+ *
151
+ * @param date - The date to be changed
152
+ * @param amount - The amount of days to be added.
153
+ * @param options - An object with options
154
+ *
155
+ * @returns The new date with the days added
156
+ *
157
+ * @example
158
+ * // Add 10 days to 1 September 2014:
159
+ * const result = addDays(new Date(2014, 8, 1), 10)
160
+ * //=> Thu Sep 11 2014 00:00:00
161
+ */
162
+ function addDays(date, amount, options) {
163
+ const _date = toDate(date, options?.in);
164
+ if (isNaN(amount)) return constructFrom(options?.in || date, NaN);
165
+ if (!amount) return _date;
166
+ _date.setDate(_date.getDate() + amount);
167
+ return _date;
168
+ }
169
+ //#endregion
170
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js
171
+ /**
172
+ * The {@link addMonths} function options.
173
+ */
174
+ /**
175
+ * @name addMonths
176
+ * @category Month Helpers
177
+ * @summary Add the specified number of months to the given date.
178
+ *
179
+ * @description
180
+ * Add the specified number of months to the given date.
181
+ *
182
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
183
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
184
+ *
185
+ * @param date - The date to be changed
186
+ * @param amount - The amount of months to be added.
187
+ * @param options - The options object
188
+ *
189
+ * @returns The new date with the months added
190
+ *
191
+ * @example
192
+ * // Add 5 months to 1 September 2014:
193
+ * const result = addMonths(new Date(2014, 8, 1), 5)
194
+ * //=> Sun Feb 01 2015 00:00:00
195
+ *
196
+ * // Add one month to 30 January 2023:
197
+ * const result = addMonths(new Date(2023, 0, 30), 1)
198
+ * //=> Tue Feb 28 2023 00:00:00
199
+ */
200
+ function addMonths(date, amount, options) {
201
+ const _date = toDate(date, options?.in);
202
+ if (isNaN(amount)) return constructFrom(options?.in || date, NaN);
203
+ if (!amount) return _date;
204
+ const dayOfMonth = _date.getDate();
205
+ const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());
206
+ endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);
207
+ if (dayOfMonth >= endOfDesiredMonth.getDate()) return endOfDesiredMonth;
208
+ else {
209
+ _date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
210
+ return _date;
211
+ }
212
+ }
213
+ //#endregion
214
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js
215
+ var defaultOptions = {};
216
+ function getDefaultOptions() {
217
+ return defaultOptions;
218
+ }
219
+ //#endregion
220
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js
221
+ /**
222
+ * The {@link startOfWeek} function options.
223
+ */
224
+ /**
225
+ * @name startOfWeek
226
+ * @category Week Helpers
227
+ * @summary Return the start of a week for the given date.
228
+ *
229
+ * @description
230
+ * Return the start of a week for the given date.
231
+ * The result will be in the local timezone.
232
+ *
233
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
234
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
235
+ *
236
+ * @param date - The original date
237
+ * @param options - An object with options
238
+ *
239
+ * @returns The start of a week
240
+ *
241
+ * @example
242
+ * // The start of a week for 2 September 2014 11:55:00:
243
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
244
+ * //=> Sun Aug 31 2014 00:00:00
245
+ *
246
+ * @example
247
+ * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
248
+ * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
249
+ * //=> Mon Sep 01 2014 00:00:00
250
+ */
251
+ function startOfWeek(date, options) {
252
+ const defaultOptions = getDefaultOptions();
253
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions.weekStartsOn ?? defaultOptions.locale?.options?.weekStartsOn ?? 0;
254
+ const _date = toDate(date, options?.in);
255
+ const day = _date.getDay();
256
+ const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
257
+ _date.setDate(_date.getDate() - diff);
258
+ _date.setHours(0, 0, 0, 0);
259
+ return _date;
260
+ }
261
+ //#endregion
262
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeek.js
263
+ /**
264
+ * The {@link startOfISOWeek} function options.
265
+ */
266
+ /**
267
+ * @name startOfISOWeek
268
+ * @category ISO Week Helpers
269
+ * @summary Return the start of an ISO week for the given date.
270
+ *
271
+ * @description
272
+ * Return the start of an ISO week for the given date.
273
+ * The result will be in the local timezone.
274
+ *
275
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
276
+ *
277
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
278
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
279
+ *
280
+ * @param date - The original date
281
+ * @param options - An object with options
282
+ *
283
+ * @returns The start of an ISO week
284
+ *
285
+ * @example
286
+ * // The start of an ISO week for 2 September 2014 11:55:00:
287
+ * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
288
+ * //=> Mon Sep 01 2014 00:00:00
289
+ */
290
+ function startOfISOWeek(date, options) {
291
+ return startOfWeek(date, {
292
+ ...options,
293
+ weekStartsOn: 1
294
+ });
295
+ }
296
+ //#endregion
297
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeekYear.js
298
+ /**
299
+ * The {@link getISOWeekYear} function options.
300
+ */
301
+ /**
302
+ * @name getISOWeekYear
303
+ * @category ISO Week-Numbering Year Helpers
304
+ * @summary Get the ISO week-numbering year of the given date.
305
+ *
306
+ * @description
307
+ * Get the ISO week-numbering year of the given date,
308
+ * which always starts 3 days before the year's first Thursday.
309
+ *
310
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
311
+ *
312
+ * @param date - The given date
313
+ *
314
+ * @returns The ISO week-numbering year
315
+ *
316
+ * @example
317
+ * // Which ISO-week numbering year is 2 January 2005?
318
+ * const result = getISOWeekYear(new Date(2005, 0, 2))
319
+ * //=> 2004
320
+ */
321
+ function getISOWeekYear(date, options) {
322
+ const _date = toDate(date, options?.in);
323
+ const year = _date.getFullYear();
324
+ const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);
325
+ fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
326
+ fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
327
+ const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);
328
+ const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);
329
+ fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
330
+ fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
331
+ const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);
332
+ if (_date.getTime() >= startOfNextYear.getTime()) return year + 1;
333
+ else if (_date.getTime() >= startOfThisYear.getTime()) return year;
334
+ else return year - 1;
335
+ }
336
+ //#endregion
337
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
338
+ /**
339
+ * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
340
+ * They usually appear for dates that denote time before the timezones were introduced
341
+ * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
342
+ * and GMT+01:00:00 after that date)
343
+ *
344
+ * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
345
+ * which would lead to incorrect calculations.
346
+ *
347
+ * This function returns the timezone offset in milliseconds that takes seconds in account.
348
+ */
349
+ function getTimezoneOffsetInMilliseconds(date) {
350
+ const _date = toDate(date);
351
+ const utcDate = new Date(Date.UTC(_date.getFullYear(), _date.getMonth(), _date.getDate(), _date.getHours(), _date.getMinutes(), _date.getSeconds(), _date.getMilliseconds()));
352
+ utcDate.setUTCFullYear(_date.getFullYear());
353
+ return +date - +utcDate;
354
+ }
355
+ //#endregion
356
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js
357
+ function normalizeDates(context, ...dates) {
358
+ const normalize = constructFrom.bind(null, context || dates.find((date) => typeof date === "object"));
359
+ return dates.map(normalize);
360
+ }
361
+ //#endregion
362
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js
363
+ /**
364
+ * The {@link startOfDay} function options.
365
+ */
366
+ /**
367
+ * @name startOfDay
368
+ * @category Day Helpers
369
+ * @summary Return the start of a day for the given date.
370
+ *
371
+ * @description
372
+ * Return the start of a day for the given date.
373
+ * The result will be in the local timezone.
374
+ *
375
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
376
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
377
+ *
378
+ * @param date - The original date
379
+ * @param options - The options
380
+ *
381
+ * @returns The start of a day
382
+ *
383
+ * @example
384
+ * // The start of a day for 2 September 2014 11:55:00:
385
+ * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
386
+ * //=> Tue Sep 02 2014 00:00:00
387
+ */
388
+ function startOfDay(date, options) {
389
+ const _date = toDate(date, options?.in);
390
+ _date.setHours(0, 0, 0, 0);
391
+ return _date;
392
+ }
393
+ //#endregion
394
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js
395
+ /**
396
+ * The {@link differenceInCalendarDays} function options.
397
+ */
398
+ /**
399
+ * @name differenceInCalendarDays
400
+ * @category Day Helpers
401
+ * @summary Get the number of calendar days between the given dates.
402
+ *
403
+ * @description
404
+ * Get the number of calendar days between the given dates. This means that the times are removed
405
+ * from the dates and then the difference in days is calculated.
406
+ *
407
+ * @param laterDate - The later date
408
+ * @param earlierDate - The earlier date
409
+ * @param options - The options object
410
+ *
411
+ * @returns The number of calendar days
412
+ *
413
+ * @example
414
+ * // How many calendar days are between
415
+ * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
416
+ * const result = differenceInCalendarDays(
417
+ * new Date(2012, 6, 2, 0, 0),
418
+ * new Date(2011, 6, 2, 23, 0)
419
+ * )
420
+ * //=> 366
421
+ * // How many calendar days are between
422
+ * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
423
+ * const result = differenceInCalendarDays(
424
+ * new Date(2011, 6, 3, 0, 1),
425
+ * new Date(2011, 6, 2, 23, 59)
426
+ * )
427
+ * //=> 1
428
+ */
429
+ function differenceInCalendarDays(laterDate, earlierDate, options) {
430
+ const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
431
+ const laterStartOfDay = startOfDay(laterDate_);
432
+ const earlierStartOfDay = startOfDay(earlierDate_);
433
+ const laterTimestamp = +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);
434
+ const earlierTimestamp = +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);
435
+ return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);
436
+ }
437
+ //#endregion
438
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeekYear.js
439
+ /**
440
+ * The {@link startOfISOWeekYear} function options.
441
+ */
442
+ /**
443
+ * @name startOfISOWeekYear
444
+ * @category ISO Week-Numbering Year Helpers
445
+ * @summary Return the start of an ISO week-numbering year for the given date.
446
+ *
447
+ * @description
448
+ * Return the start of an ISO week-numbering year,
449
+ * which always starts 3 days before the year's first Thursday.
450
+ * The result will be in the local timezone.
451
+ *
452
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
453
+ *
454
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
455
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
456
+ *
457
+ * @param date - The original date
458
+ * @param options - An object with options
459
+ *
460
+ * @returns The start of an ISO week-numbering year
461
+ *
462
+ * @example
463
+ * // The start of an ISO week-numbering year for 2 July 2005:
464
+ * const result = startOfISOWeekYear(new Date(2005, 6, 2))
465
+ * //=> Mon Jan 03 2005 00:00:00
466
+ */
467
+ function startOfISOWeekYear(date, options) {
468
+ const year = getISOWeekYear(date, options);
469
+ const fourthOfJanuary = constructFrom(options?.in || date, 0);
470
+ fourthOfJanuary.setFullYear(year, 0, 4);
471
+ fourthOfJanuary.setHours(0, 0, 0, 0);
472
+ return startOfISOWeek(fourthOfJanuary);
473
+ }
474
+ //#endregion
475
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addWeeks.js
476
+ /**
477
+ * The {@link addWeeks} function options.
478
+ */
479
+ /**
480
+ * @name addWeeks
481
+ * @category Week Helpers
482
+ * @summary Add the specified number of weeks to the given date.
483
+ *
484
+ * @description
485
+ * Add the specified number of weeks to the given date.
486
+ *
487
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
488
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
489
+ *
490
+ * @param date - The date to be changed
491
+ * @param amount - The amount of weeks to be added.
492
+ * @param options - An object with options
493
+ *
494
+ * @returns The new date with the weeks added
495
+ *
496
+ * @example
497
+ * // Add 4 weeks to 1 September 2014:
498
+ * const result = addWeeks(new Date(2014, 8, 1), 4)
499
+ * //=> Mon Sep 29 2014 00:00:00
500
+ */
501
+ function addWeeks(date, amount, options) {
502
+ return addDays(date, amount * 7, options);
503
+ }
504
+ //#endregion
505
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js
506
+ /**
507
+ * The {@link addYears} function options.
508
+ */
509
+ /**
510
+ * @name addYears
511
+ * @category Year Helpers
512
+ * @summary Add the specified number of years to the given date.
513
+ *
514
+ * @description
515
+ * Add the specified number of years to the given date.
516
+ *
517
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
518
+ * @typeParam ResultDate - The result `Date` type.
519
+ *
520
+ * @param date - The date to be changed
521
+ * @param amount - The amount of years to be added.
522
+ * @param options - The options
523
+ *
524
+ * @returns The new date with the years added
525
+ *
526
+ * @example
527
+ * // Add 5 years to 1 September 2014:
528
+ * const result = addYears(new Date(2014, 8, 1), 5)
529
+ * //=> Sun Sep 01 2019 00:00:00
530
+ */
531
+ function addYears(date, amount, options) {
532
+ return addMonths(date, amount * 12, options);
533
+ }
534
+ //#endregion
535
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/max.js
536
+ /**
537
+ * The {@link max} function options.
538
+ */
539
+ /**
540
+ * @name max
541
+ * @category Common Helpers
542
+ * @summary Return the latest of the given dates.
543
+ *
544
+ * @description
545
+ * Return the latest of the given dates.
546
+ *
547
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
548
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
549
+ *
550
+ * @param dates - The dates to compare
551
+ *
552
+ * @returns The latest of the dates
553
+ *
554
+ * @example
555
+ * // Which of these dates is the latest?
556
+ * const result = max([
557
+ * new Date(1989, 6, 10),
558
+ * new Date(1987, 1, 11),
559
+ * new Date(1995, 6, 2),
560
+ * new Date(1990, 0, 1)
561
+ * ])
562
+ * //=> Sun Jul 02 1995 00:00:00
563
+ */
564
+ function max(dates, options) {
565
+ let result;
566
+ let context = options?.in;
567
+ dates.forEach((date) => {
568
+ if (!context && typeof date === "object") context = constructFrom.bind(null, date);
569
+ const date_ = toDate(date, context);
570
+ if (!result || result < date_ || isNaN(+date_)) result = date_;
571
+ });
572
+ return constructFrom(context, result || NaN);
573
+ }
574
+ //#endregion
575
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/min.js
576
+ /**
577
+ * The {@link min} function options.
578
+ */
579
+ /**
580
+ * @name min
581
+ * @category Common Helpers
582
+ * @summary Returns the earliest of the given dates.
583
+ *
584
+ * @description
585
+ * Returns the earliest of the given dates.
586
+ *
587
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
588
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
589
+ *
590
+ * @param dates - The dates to compare
591
+ *
592
+ * @returns The earliest of the dates
593
+ *
594
+ * @example
595
+ * // Which of these dates is the earliest?
596
+ * const result = min([
597
+ * new Date(1989, 6, 10),
598
+ * new Date(1987, 1, 11),
599
+ * new Date(1995, 6, 2),
600
+ * new Date(1990, 0, 1)
601
+ * ])
602
+ * //=> Wed Feb 11 1987 00:00:00
603
+ */
604
+ function min(dates, options) {
605
+ let result;
606
+ let context = options?.in;
607
+ dates.forEach((date) => {
608
+ if (!context && typeof date === "object") context = constructFrom.bind(null, date);
609
+ const date_ = toDate(date, context);
610
+ if (!result || result > date_ || isNaN(+date_)) result = date_;
611
+ });
612
+ return constructFrom(context, result || NaN);
613
+ }
614
+ //#endregion
615
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameDay.js
616
+ /**
617
+ * The {@link isSameDay} function options.
618
+ */
619
+ /**
620
+ * @name isSameDay
621
+ * @category Day Helpers
622
+ * @summary Are the given dates in the same day (and year and month)?
623
+ *
624
+ * @description
625
+ * Are the given dates in the same day (and year and month)?
626
+ *
627
+ * @param laterDate - The first date to check
628
+ * @param earlierDate - The second date to check
629
+ * @param options - An object with options
630
+ *
631
+ * @returns The dates are in the same day (and year and month)
632
+ *
633
+ * @example
634
+ * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
635
+ * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
636
+ * //=> true
637
+ *
638
+ * @example
639
+ * // Are 4 September and 4 October in the same day?
640
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
641
+ * //=> false
642
+ *
643
+ * @example
644
+ * // Are 4 September, 2014 and 4 September, 2015 in the same day?
645
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
646
+ * //=> false
647
+ */
648
+ function isSameDay(laterDate, earlierDate, options) {
649
+ const [dateLeft_, dateRight_] = normalizeDates(options?.in, laterDate, earlierDate);
650
+ return +startOfDay(dateLeft_) === +startOfDay(dateRight_);
651
+ }
652
+ //#endregion
653
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js
654
+ /**
655
+ * @name isDate
656
+ * @category Common Helpers
657
+ * @summary Is the given value a date?
658
+ *
659
+ * @description
660
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
661
+ *
662
+ * @param value - The value to check
663
+ *
664
+ * @returns True if the given value is a date
665
+ *
666
+ * @example
667
+ * // For a valid date:
668
+ * const result = isDate(new Date())
669
+ * //=> true
670
+ *
671
+ * @example
672
+ * // For an invalid date:
673
+ * const result = isDate(new Date(NaN))
674
+ * //=> true
675
+ *
676
+ * @example
677
+ * // For some value:
678
+ * const result = isDate('2014-02-31')
679
+ * //=> false
680
+ *
681
+ * @example
682
+ * // For an object:
683
+ * const result = isDate({})
684
+ * //=> false
685
+ */
686
+ function isDate(value) {
687
+ return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
688
+ }
689
+ //#endregion
690
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isValid.js
691
+ /**
692
+ * @name isValid
693
+ * @category Common Helpers
694
+ * @summary Is the given date valid?
695
+ *
696
+ * @description
697
+ * Returns false if argument is Invalid Date and true otherwise.
698
+ * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)
699
+ * Invalid Date is a Date, whose time value is NaN.
700
+ *
701
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
702
+ *
703
+ * @param date - The date to check
704
+ *
705
+ * @returns The date is valid
706
+ *
707
+ * @example
708
+ * // For the valid date:
709
+ * const result = isValid(new Date(2014, 1, 31))
710
+ * //=> true
711
+ *
712
+ * @example
713
+ * // For the value, convertible into a date:
714
+ * const result = isValid(1393804800000)
715
+ * //=> true
716
+ *
717
+ * @example
718
+ * // For the invalid date:
719
+ * const result = isValid(new Date(''))
720
+ * //=> false
721
+ */
722
+ function isValid(date) {
723
+ return !(!isDate(date) && typeof date !== "number" || isNaN(+toDate(date)));
724
+ }
725
+ //#endregion
726
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarMonths.js
727
+ /**
728
+ * The {@link differenceInCalendarMonths} function options.
729
+ */
730
+ /**
731
+ * @name differenceInCalendarMonths
732
+ * @category Month Helpers
733
+ * @summary Get the number of calendar months between the given dates.
734
+ *
735
+ * @description
736
+ * Get the number of calendar months between the given dates.
737
+ *
738
+ * @param laterDate - The later date
739
+ * @param earlierDate - The earlier date
740
+ * @param options - An object with options
741
+ *
742
+ * @returns The number of calendar months
743
+ *
744
+ * @example
745
+ * // How many calendar months are between 31 January 2014 and 1 September 2014?
746
+ * const result = differenceInCalendarMonths(
747
+ * new Date(2014, 8, 1),
748
+ * new Date(2014, 0, 31)
749
+ * )
750
+ * //=> 8
751
+ */
752
+ function differenceInCalendarMonths(laterDate, earlierDate, options) {
753
+ const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
754
+ const yearsDiff = laterDate_.getFullYear() - earlierDate_.getFullYear();
755
+ const monthsDiff = laterDate_.getMonth() - earlierDate_.getMonth();
756
+ return yearsDiff * 12 + monthsDiff;
757
+ }
758
+ //#endregion
759
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfMonth.js
760
+ /**
761
+ * The {@link endOfMonth} function options.
762
+ */
763
+ /**
764
+ * @name endOfMonth
765
+ * @category Month Helpers
766
+ * @summary Return the end of a month for the given date.
767
+ *
768
+ * @description
769
+ * Return the end of a month for the given date.
770
+ * The result will be in the local timezone.
771
+ *
772
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
773
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
774
+ *
775
+ * @param date - The original date
776
+ * @param options - An object with options
777
+ *
778
+ * @returns The end of a month
779
+ *
780
+ * @example
781
+ * // The end of a month for 2 September 2014 11:55:00:
782
+ * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
783
+ * //=> Tue Sep 30 2014 23:59:59.999
784
+ */
785
+ function endOfMonth(date, options) {
786
+ const _date = toDate(date, options?.in);
787
+ const month = _date.getMonth();
788
+ _date.setFullYear(_date.getFullYear(), month + 1, 0);
789
+ _date.setHours(23, 59, 59, 999);
790
+ return _date;
791
+ }
792
+ //#endregion
793
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeInterval.js
794
+ function normalizeInterval(context, interval) {
795
+ const [start, end] = normalizeDates(context, interval.start, interval.end);
796
+ return {
797
+ start,
798
+ end
799
+ };
800
+ }
801
+ //#endregion
802
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachMonthOfInterval.js
803
+ /**
804
+ * The {@link eachMonthOfInterval} function options.
805
+ */
806
+ /**
807
+ * The {@link eachMonthOfInterval} function result type. It resolves the proper data type.
808
+ */
809
+ /**
810
+ * @name eachMonthOfInterval
811
+ * @category Interval Helpers
812
+ * @summary Return the array of months within the specified time interval.
813
+ *
814
+ * @description
815
+ * Return the array of months within the specified time interval.
816
+ *
817
+ * @typeParam IntervalType - Interval type.
818
+ * @typeParam Options - Options type.
819
+ *
820
+ * @param interval - The interval.
821
+ * @param options - An object with options.
822
+ *
823
+ * @returns The array with starts of months from the month of the interval start to the month of the interval end
824
+ *
825
+ * @example
826
+ * // Each month between 6 February 2014 and 10 August 2014:
827
+ * const result = eachMonthOfInterval({
828
+ * start: new Date(2014, 1, 6),
829
+ * end: new Date(2014, 7, 10)
830
+ * })
831
+ * //=> [
832
+ * // Sat Feb 01 2014 00:00:00,
833
+ * // Sat Mar 01 2014 00:00:00,
834
+ * // Tue Apr 01 2014 00:00:00,
835
+ * // Thu May 01 2014 00:00:00,
836
+ * // Sun Jun 01 2014 00:00:00,
837
+ * // Tue Jul 01 2014 00:00:00,
838
+ * // Fri Aug 01 2014 00:00:00
839
+ * // ]
840
+ */
841
+ function eachMonthOfInterval(interval, options) {
842
+ const { start, end } = normalizeInterval(options?.in, interval);
843
+ let reversed = +start > +end;
844
+ const endTime = reversed ? +start : +end;
845
+ const date = reversed ? end : start;
846
+ date.setHours(0, 0, 0, 0);
847
+ date.setDate(1);
848
+ let step = options?.step ?? 1;
849
+ if (!step) return [];
850
+ if (step < 0) {
851
+ step = -step;
852
+ reversed = !reversed;
853
+ }
854
+ const dates = [];
855
+ while (+date <= endTime) {
856
+ dates.push(constructFrom(start, date));
857
+ date.setMonth(date.getMonth() + step);
858
+ }
859
+ return reversed ? dates.reverse() : dates;
860
+ }
861
+ //#endregion
862
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js
863
+ /**
864
+ * The {@link startOfMonth} function options.
865
+ */
866
+ /**
867
+ * @name startOfMonth
868
+ * @category Month Helpers
869
+ * @summary Return the start of a month for the given date.
870
+ *
871
+ * @description
872
+ * Return the start of a month for the given date. The result will be in the local timezone.
873
+ *
874
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.
875
+ * Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
876
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,
877
+ * or inferred from the arguments.
878
+ *
879
+ * @param date - The original date
880
+ * @param options - An object with options
881
+ *
882
+ * @returns The start of a month
883
+ *
884
+ * @example
885
+ * // The start of a month for 2 September 2014 11:55:00:
886
+ * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
887
+ * //=> Mon Sep 01 2014 00:00:00
888
+ */
889
+ function startOfMonth(date, options) {
890
+ const _date = toDate(date, options?.in);
891
+ _date.setDate(1);
892
+ _date.setHours(0, 0, 0, 0);
893
+ return _date;
894
+ }
895
+ //#endregion
896
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYear.js
897
+ /**
898
+ * The {@link endOfYear} function options.
899
+ */
900
+ /**
901
+ * @name endOfYear
902
+ * @category Year Helpers
903
+ * @summary Return the end of a year for the given date.
904
+ *
905
+ * @description
906
+ * Return the end of a year for the given date.
907
+ * The result will be in the local timezone.
908
+ *
909
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
910
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
911
+ *
912
+ * @param date - The original date
913
+ * @param options - The options
914
+ *
915
+ * @returns The end of a year
916
+ *
917
+ * @example
918
+ * // The end of a year for 2 September 2014 11:55:00:
919
+ * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0))
920
+ * //=> Wed Dec 31 2014 23:59:59.999
921
+ */
922
+ function endOfYear(date, options) {
923
+ const _date = toDate(date, options?.in);
924
+ const year = _date.getFullYear();
925
+ _date.setFullYear(year + 1, 0, 0);
926
+ _date.setHours(23, 59, 59, 999);
927
+ return _date;
928
+ }
929
+ //#endregion
930
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js
931
+ /**
932
+ * The {@link startOfYear} function options.
933
+ */
934
+ /**
935
+ * @name startOfYear
936
+ * @category Year Helpers
937
+ * @summary Return the start of a year for the given date.
938
+ *
939
+ * @description
940
+ * Return the start of a year for the given date.
941
+ * The result will be in the local timezone.
942
+ *
943
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
944
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
945
+ *
946
+ * @param date - The original date
947
+ * @param options - The options
948
+ *
949
+ * @returns The start of a year
950
+ *
951
+ * @example
952
+ * // The start of a year for 2 September 2014 11:55:00:
953
+ * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
954
+ * //=> Wed Jan 01 2014 00:00:00
955
+ */
956
+ function startOfYear(date, options) {
957
+ const date_ = toDate(date, options?.in);
958
+ date_.setFullYear(date_.getFullYear(), 0, 1);
959
+ date_.setHours(0, 0, 0, 0);
960
+ return date_;
961
+ }
962
+ //#endregion
963
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachYearOfInterval.js
964
+ /**
965
+ * The {@link eachYearOfInterval} function options.
966
+ */
967
+ /**
968
+ * The {@link eachYearOfInterval} function result type. It resolves the proper data type.
969
+ * It uses the first argument date object type, starting from the date argument,
970
+ * then the start interval date, and finally the end interval date. If
971
+ * a context function is passed, it uses the context function return type.
972
+ */
973
+ /**
974
+ * @name eachYearOfInterval
975
+ * @category Interval Helpers
976
+ * @summary Return the array of yearly timestamps within the specified time interval.
977
+ *
978
+ * @description
979
+ * Return the array of yearly timestamps within the specified time interval.
980
+ *
981
+ * @typeParam IntervalType - Interval type.
982
+ * @typeParam Options - Options type.
983
+ *
984
+ * @param interval - The interval.
985
+ * @param options - An object with options.
986
+ *
987
+ * @returns The array with starts of yearly timestamps from the month of the interval start to the month of the interval end
988
+ *
989
+ * @example
990
+ * // Each year between 6 February 2014 and 10 August 2017:
991
+ * const result = eachYearOfInterval({
992
+ * start: new Date(2014, 1, 6),
993
+ * end: new Date(2017, 7, 10)
994
+ * })
995
+ * //=> [
996
+ * // Wed Jan 01 2014 00:00:00,
997
+ * // Thu Jan 01 2015 00:00:00,
998
+ * // Fri Jan 01 2016 00:00:00,
999
+ * // Sun Jan 01 2017 00:00:00
1000
+ * // ]
1001
+ */
1002
+ function eachYearOfInterval(interval, options) {
1003
+ const { start, end } = normalizeInterval(options?.in, interval);
1004
+ let reversed = +start > +end;
1005
+ const endTime = reversed ? +start : +end;
1006
+ const date = reversed ? end : start;
1007
+ date.setHours(0, 0, 0, 0);
1008
+ date.setMonth(0, 1);
1009
+ let step = options?.step ?? 1;
1010
+ if (!step) return [];
1011
+ if (step < 0) {
1012
+ step = -step;
1013
+ reversed = !reversed;
1014
+ }
1015
+ const dates = [];
1016
+ while (+date <= endTime) {
1017
+ dates.push(constructFrom(start, date));
1018
+ date.setFullYear(date.getFullYear() + step);
1019
+ }
1020
+ return reversed ? dates.reverse() : dates;
1021
+ }
1022
+ //#endregion
1023
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js
1024
+ /**
1025
+ * The {@link endOfWeek} function options.
1026
+ */
1027
+ /**
1028
+ * @name endOfWeek
1029
+ * @category Week Helpers
1030
+ * @summary Return the end of a week for the given date.
1031
+ *
1032
+ * @description
1033
+ * Return the end of a week for the given date.
1034
+ * The result will be in the local timezone.
1035
+ *
1036
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1037
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1038
+ *
1039
+ * @param date - The original date
1040
+ * @param options - An object with options
1041
+ *
1042
+ * @returns The end of a week
1043
+ *
1044
+ * @example
1045
+ * // The end of a week for 2 September 2014 11:55:00:
1046
+ * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
1047
+ * //=> Sat Sep 06 2014 23:59:59.999
1048
+ *
1049
+ * @example
1050
+ * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
1051
+ * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
1052
+ * //=> Sun Sep 07 2014 23:59:59.999
1053
+ */
1054
+ function endOfWeek(date, options) {
1055
+ const defaultOptions = getDefaultOptions();
1056
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions.weekStartsOn ?? defaultOptions.locale?.options?.weekStartsOn ?? 0;
1057
+ const _date = toDate(date, options?.in);
1058
+ const day = _date.getDay();
1059
+ const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
1060
+ _date.setDate(_date.getDate() + diff);
1061
+ _date.setHours(23, 59, 59, 999);
1062
+ return _date;
1063
+ }
1064
+ //#endregion
1065
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfISOWeek.js
1066
+ /**
1067
+ * The {@link endOfISOWeek} function options.
1068
+ */
1069
+ /**
1070
+ * @name endOfISOWeek
1071
+ * @category ISO Week Helpers
1072
+ * @summary Return the end of an ISO week for the given date.
1073
+ *
1074
+ * @description
1075
+ * Return the end of an ISO week for the given date.
1076
+ * The result will be in the local timezone.
1077
+ *
1078
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1079
+ *
1080
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1081
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
1082
+ *
1083
+ * @param date - The original date
1084
+ * @param options - An object with options
1085
+ *
1086
+ * @returns The end of an ISO week
1087
+ *
1088
+ * @example
1089
+ * // The end of an ISO week for 2 September 2014 11:55:00:
1090
+ * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
1091
+ * //=> Sun Sep 07 2014 23:59:59.999
1092
+ */
1093
+ function endOfISOWeek(date, options) {
1094
+ return endOfWeek(date, {
1095
+ ...options,
1096
+ weekStartsOn: 1
1097
+ });
1098
+ }
1099
+ //#endregion
1100
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
1101
+ var formatDistanceLocale = {
1102
+ lessThanXSeconds: {
1103
+ one: "less than a second",
1104
+ other: "less than {{count}} seconds"
1105
+ },
1106
+ xSeconds: {
1107
+ one: "1 second",
1108
+ other: "{{count}} seconds"
1109
+ },
1110
+ halfAMinute: "half a minute",
1111
+ lessThanXMinutes: {
1112
+ one: "less than a minute",
1113
+ other: "less than {{count}} minutes"
1114
+ },
1115
+ xMinutes: {
1116
+ one: "1 minute",
1117
+ other: "{{count}} minutes"
1118
+ },
1119
+ aboutXHours: {
1120
+ one: "about 1 hour",
1121
+ other: "about {{count}} hours"
1122
+ },
1123
+ xHours: {
1124
+ one: "1 hour",
1125
+ other: "{{count}} hours"
1126
+ },
1127
+ xDays: {
1128
+ one: "1 day",
1129
+ other: "{{count}} days"
1130
+ },
1131
+ aboutXWeeks: {
1132
+ one: "about 1 week",
1133
+ other: "about {{count}} weeks"
1134
+ },
1135
+ xWeeks: {
1136
+ one: "1 week",
1137
+ other: "{{count}} weeks"
1138
+ },
1139
+ aboutXMonths: {
1140
+ one: "about 1 month",
1141
+ other: "about {{count}} months"
1142
+ },
1143
+ xMonths: {
1144
+ one: "1 month",
1145
+ other: "{{count}} months"
1146
+ },
1147
+ aboutXYears: {
1148
+ one: "about 1 year",
1149
+ other: "about {{count}} years"
1150
+ },
1151
+ xYears: {
1152
+ one: "1 year",
1153
+ other: "{{count}} years"
1154
+ },
1155
+ overXYears: {
1156
+ one: "over 1 year",
1157
+ other: "over {{count}} years"
1158
+ },
1159
+ almostXYears: {
1160
+ one: "almost 1 year",
1161
+ other: "almost {{count}} years"
1162
+ }
1163
+ };
1164
+ var formatDistance = (token, count, options) => {
1165
+ let result;
1166
+ const tokenValue = formatDistanceLocale[token];
1167
+ if (typeof tokenValue === "string") result = tokenValue;
1168
+ else if (count === 1) result = tokenValue.one;
1169
+ else result = tokenValue.other.replace("{{count}}", count.toString());
1170
+ if (options?.addSuffix) if (options.comparison && options.comparison > 0) return "in " + result;
1171
+ else return result + " ago";
1172
+ return result;
1173
+ };
1174
+ //#endregion
1175
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
1176
+ function buildFormatLongFn(args) {
1177
+ return (options = {}) => {
1178
+ const width = options.width ? String(options.width) : args.defaultWidth;
1179
+ return args.formats[width] || args.formats[args.defaultWidth];
1180
+ };
1181
+ }
1182
+ var formatLong = {
1183
+ date: buildFormatLongFn({
1184
+ formats: {
1185
+ full: "EEEE, MMMM do, y",
1186
+ long: "MMMM do, y",
1187
+ medium: "MMM d, y",
1188
+ short: "MM/dd/yyyy"
1189
+ },
1190
+ defaultWidth: "full"
1191
+ }),
1192
+ time: buildFormatLongFn({
1193
+ formats: {
1194
+ full: "h:mm:ss a zzzz",
1195
+ long: "h:mm:ss a z",
1196
+ medium: "h:mm:ss a",
1197
+ short: "h:mm a"
1198
+ },
1199
+ defaultWidth: "full"
1200
+ }),
1201
+ dateTime: buildFormatLongFn({
1202
+ formats: {
1203
+ full: "{{date}} 'at' {{time}}",
1204
+ long: "{{date}} 'at' {{time}}",
1205
+ medium: "{{date}}, {{time}}",
1206
+ short: "{{date}}, {{time}}"
1207
+ },
1208
+ defaultWidth: "full"
1209
+ })
1210
+ };
1211
+ //#endregion
1212
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js
1213
+ var formatRelativeLocale = {
1214
+ lastWeek: "'last' eeee 'at' p",
1215
+ yesterday: "'yesterday at' p",
1216
+ today: "'today at' p",
1217
+ tomorrow: "'tomorrow at' p",
1218
+ nextWeek: "eeee 'at' p",
1219
+ other: "P"
1220
+ };
1221
+ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale[token];
1222
+ //#endregion
1223
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
1224
+ /**
1225
+ * The localize function argument callback which allows to convert raw value to
1226
+ * the actual type.
1227
+ *
1228
+ * @param value - The value to convert
1229
+ *
1230
+ * @returns The converted value
1231
+ */
1232
+ /**
1233
+ * The map of localized values for each width.
1234
+ */
1235
+ /**
1236
+ * The index type of the locale unit value. It types conversion of units of
1237
+ * values that don't start at 0 (i.e. quarters).
1238
+ */
1239
+ /**
1240
+ * Converts the unit value to the tuple of values.
1241
+ */
1242
+ /**
1243
+ * The tuple of localized era values. The first element represents BC,
1244
+ * the second element represents AD.
1245
+ */
1246
+ /**
1247
+ * The tuple of localized quarter values. The first element represents Q1.
1248
+ */
1249
+ /**
1250
+ * The tuple of localized day values. The first element represents Sunday.
1251
+ */
1252
+ /**
1253
+ * The tuple of localized month values. The first element represents January.
1254
+ */
1255
+ function buildLocalizeFn(args) {
1256
+ return (value, options) => {
1257
+ const context = options?.context ? String(options.context) : "standalone";
1258
+ let valuesArray;
1259
+ if (context === "formatting" && args.formattingValues) {
1260
+ const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
1261
+ const width = options?.width ? String(options.width) : defaultWidth;
1262
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
1263
+ } else {
1264
+ const defaultWidth = args.defaultWidth;
1265
+ const width = options?.width ? String(options.width) : args.defaultWidth;
1266
+ valuesArray = args.values[width] || args.values[defaultWidth];
1267
+ }
1268
+ const index = args.argumentCallback ? args.argumentCallback(value) : value;
1269
+ return valuesArray[index];
1270
+ };
1271
+ }
1272
+ //#endregion
1273
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js
1274
+ var eraValues = {
1275
+ narrow: ["B", "A"],
1276
+ abbreviated: ["BC", "AD"],
1277
+ wide: ["Before Christ", "Anno Domini"]
1278
+ };
1279
+ var quarterValues = {
1280
+ narrow: [
1281
+ "1",
1282
+ "2",
1283
+ "3",
1284
+ "4"
1285
+ ],
1286
+ abbreviated: [
1287
+ "Q1",
1288
+ "Q2",
1289
+ "Q3",
1290
+ "Q4"
1291
+ ],
1292
+ wide: [
1293
+ "1st quarter",
1294
+ "2nd quarter",
1295
+ "3rd quarter",
1296
+ "4th quarter"
1297
+ ]
1298
+ };
1299
+ var monthValues = {
1300
+ narrow: [
1301
+ "J",
1302
+ "F",
1303
+ "M",
1304
+ "A",
1305
+ "M",
1306
+ "J",
1307
+ "J",
1308
+ "A",
1309
+ "S",
1310
+ "O",
1311
+ "N",
1312
+ "D"
1313
+ ],
1314
+ abbreviated: [
1315
+ "Jan",
1316
+ "Feb",
1317
+ "Mar",
1318
+ "Apr",
1319
+ "May",
1320
+ "Jun",
1321
+ "Jul",
1322
+ "Aug",
1323
+ "Sep",
1324
+ "Oct",
1325
+ "Nov",
1326
+ "Dec"
1327
+ ],
1328
+ wide: [
1329
+ "January",
1330
+ "February",
1331
+ "March",
1332
+ "April",
1333
+ "May",
1334
+ "June",
1335
+ "July",
1336
+ "August",
1337
+ "September",
1338
+ "October",
1339
+ "November",
1340
+ "December"
1341
+ ]
1342
+ };
1343
+ var dayValues = {
1344
+ narrow: [
1345
+ "S",
1346
+ "M",
1347
+ "T",
1348
+ "W",
1349
+ "T",
1350
+ "F",
1351
+ "S"
1352
+ ],
1353
+ short: [
1354
+ "Su",
1355
+ "Mo",
1356
+ "Tu",
1357
+ "We",
1358
+ "Th",
1359
+ "Fr",
1360
+ "Sa"
1361
+ ],
1362
+ abbreviated: [
1363
+ "Sun",
1364
+ "Mon",
1365
+ "Tue",
1366
+ "Wed",
1367
+ "Thu",
1368
+ "Fri",
1369
+ "Sat"
1370
+ ],
1371
+ wide: [
1372
+ "Sunday",
1373
+ "Monday",
1374
+ "Tuesday",
1375
+ "Wednesday",
1376
+ "Thursday",
1377
+ "Friday",
1378
+ "Saturday"
1379
+ ]
1380
+ };
1381
+ var dayPeriodValues = {
1382
+ narrow: {
1383
+ am: "a",
1384
+ pm: "p",
1385
+ midnight: "mi",
1386
+ noon: "n",
1387
+ morning: "morning",
1388
+ afternoon: "afternoon",
1389
+ evening: "evening",
1390
+ night: "night"
1391
+ },
1392
+ abbreviated: {
1393
+ am: "AM",
1394
+ pm: "PM",
1395
+ midnight: "midnight",
1396
+ noon: "noon",
1397
+ morning: "morning",
1398
+ afternoon: "afternoon",
1399
+ evening: "evening",
1400
+ night: "night"
1401
+ },
1402
+ wide: {
1403
+ am: "a.m.",
1404
+ pm: "p.m.",
1405
+ midnight: "midnight",
1406
+ noon: "noon",
1407
+ morning: "morning",
1408
+ afternoon: "afternoon",
1409
+ evening: "evening",
1410
+ night: "night"
1411
+ }
1412
+ };
1413
+ var formattingDayPeriodValues = {
1414
+ narrow: {
1415
+ am: "a",
1416
+ pm: "p",
1417
+ midnight: "mi",
1418
+ noon: "n",
1419
+ morning: "in the morning",
1420
+ afternoon: "in the afternoon",
1421
+ evening: "in the evening",
1422
+ night: "at night"
1423
+ },
1424
+ abbreviated: {
1425
+ am: "AM",
1426
+ pm: "PM",
1427
+ midnight: "midnight",
1428
+ noon: "noon",
1429
+ morning: "in the morning",
1430
+ afternoon: "in the afternoon",
1431
+ evening: "in the evening",
1432
+ night: "at night"
1433
+ },
1434
+ wide: {
1435
+ am: "a.m.",
1436
+ pm: "p.m.",
1437
+ midnight: "midnight",
1438
+ noon: "noon",
1439
+ morning: "in the morning",
1440
+ afternoon: "in the afternoon",
1441
+ evening: "in the evening",
1442
+ night: "at night"
1443
+ }
1444
+ };
1445
+ var ordinalNumber = (dirtyNumber, _options) => {
1446
+ const number = Number(dirtyNumber);
1447
+ const rem100 = number % 100;
1448
+ if (rem100 > 20 || rem100 < 10) switch (rem100 % 10) {
1449
+ case 1: return number + "st";
1450
+ case 2: return number + "nd";
1451
+ case 3: return number + "rd";
1452
+ }
1453
+ return number + "th";
1454
+ };
1455
+ var localize = {
1456
+ ordinalNumber,
1457
+ era: buildLocalizeFn({
1458
+ values: eraValues,
1459
+ defaultWidth: "wide"
1460
+ }),
1461
+ quarter: buildLocalizeFn({
1462
+ values: quarterValues,
1463
+ defaultWidth: "wide",
1464
+ argumentCallback: (quarter) => quarter - 1
1465
+ }),
1466
+ month: buildLocalizeFn({
1467
+ values: monthValues,
1468
+ defaultWidth: "wide"
1469
+ }),
1470
+ day: buildLocalizeFn({
1471
+ values: dayValues,
1472
+ defaultWidth: "wide"
1473
+ }),
1474
+ dayPeriod: buildLocalizeFn({
1475
+ values: dayPeriodValues,
1476
+ defaultWidth: "wide",
1477
+ formattingValues: formattingDayPeriodValues,
1478
+ defaultFormattingWidth: "wide"
1479
+ })
1480
+ };
1481
+ //#endregion
1482
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
1483
+ function buildMatchFn(args) {
1484
+ return (string, options = {}) => {
1485
+ const width = options.width;
1486
+ const matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
1487
+ const matchResult = string.match(matchPattern);
1488
+ if (!matchResult) return null;
1489
+ const matchedString = matchResult[0];
1490
+ const parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
1491
+ const key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString)) : findKey(parsePatterns, (pattern) => pattern.test(matchedString));
1492
+ let value;
1493
+ value = args.valueCallback ? args.valueCallback(key) : key;
1494
+ value = options.valueCallback ? options.valueCallback(value) : value;
1495
+ const rest = string.slice(matchedString.length);
1496
+ return {
1497
+ value,
1498
+ rest
1499
+ };
1500
+ };
1501
+ }
1502
+ function findKey(object, predicate) {
1503
+ for (const key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key;
1504
+ }
1505
+ function findIndex(array, predicate) {
1506
+ for (let key = 0; key < array.length; key++) if (predicate(array[key])) return key;
1507
+ }
1508
+ //#endregion
1509
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
1510
+ function buildMatchPatternFn(args) {
1511
+ return (string, options = {}) => {
1512
+ const matchResult = string.match(args.matchPattern);
1513
+ if (!matchResult) return null;
1514
+ const matchedString = matchResult[0];
1515
+ const parseResult = string.match(args.parsePattern);
1516
+ if (!parseResult) return null;
1517
+ let value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
1518
+ value = options.valueCallback ? options.valueCallback(value) : value;
1519
+ const rest = string.slice(matchedString.length);
1520
+ return {
1521
+ value,
1522
+ rest
1523
+ };
1524
+ };
1525
+ }
1526
+ //#endregion
1527
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js
1528
+ /**
1529
+ * @category Locales
1530
+ * @summary English locale (United States).
1531
+ * @language English
1532
+ * @iso-639-2 eng
1533
+ * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
1534
+ * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
1535
+ */
1536
+ var enUS = {
1537
+ code: "en-US",
1538
+ formatDistance,
1539
+ formatLong,
1540
+ formatRelative,
1541
+ localize,
1542
+ match: {
1543
+ ordinalNumber: buildMatchPatternFn({
1544
+ matchPattern: /^(\d+)(th|st|nd|rd)?/i,
1545
+ parsePattern: /\d+/i,
1546
+ valueCallback: (value) => parseInt(value, 10)
1547
+ }),
1548
+ era: buildMatchFn({
1549
+ matchPatterns: {
1550
+ narrow: /^(b|a)/i,
1551
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1552
+ wide: /^(before christ|before common era|anno domini|common era)/i
1553
+ },
1554
+ defaultMatchWidth: "wide",
1555
+ parsePatterns: { any: [/^b/i, /^(a|c)/i] },
1556
+ defaultParseWidth: "any"
1557
+ }),
1558
+ quarter: buildMatchFn({
1559
+ matchPatterns: {
1560
+ narrow: /^[1234]/i,
1561
+ abbreviated: /^q[1234]/i,
1562
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1563
+ },
1564
+ defaultMatchWidth: "wide",
1565
+ parsePatterns: { any: [
1566
+ /1/i,
1567
+ /2/i,
1568
+ /3/i,
1569
+ /4/i
1570
+ ] },
1571
+ defaultParseWidth: "any",
1572
+ valueCallback: (index) => index + 1
1573
+ }),
1574
+ month: buildMatchFn({
1575
+ matchPatterns: {
1576
+ narrow: /^[jfmasond]/i,
1577
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1578
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1579
+ },
1580
+ defaultMatchWidth: "wide",
1581
+ parsePatterns: {
1582
+ narrow: [
1583
+ /^j/i,
1584
+ /^f/i,
1585
+ /^m/i,
1586
+ /^a/i,
1587
+ /^m/i,
1588
+ /^j/i,
1589
+ /^j/i,
1590
+ /^a/i,
1591
+ /^s/i,
1592
+ /^o/i,
1593
+ /^n/i,
1594
+ /^d/i
1595
+ ],
1596
+ any: [
1597
+ /^ja/i,
1598
+ /^f/i,
1599
+ /^mar/i,
1600
+ /^ap/i,
1601
+ /^may/i,
1602
+ /^jun/i,
1603
+ /^jul/i,
1604
+ /^au/i,
1605
+ /^s/i,
1606
+ /^o/i,
1607
+ /^n/i,
1608
+ /^d/i
1609
+ ]
1610
+ },
1611
+ defaultParseWidth: "any"
1612
+ }),
1613
+ day: buildMatchFn({
1614
+ matchPatterns: {
1615
+ narrow: /^[smtwf]/i,
1616
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1617
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1618
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1619
+ },
1620
+ defaultMatchWidth: "wide",
1621
+ parsePatterns: {
1622
+ narrow: [
1623
+ /^s/i,
1624
+ /^m/i,
1625
+ /^t/i,
1626
+ /^w/i,
1627
+ /^t/i,
1628
+ /^f/i,
1629
+ /^s/i
1630
+ ],
1631
+ any: [
1632
+ /^su/i,
1633
+ /^m/i,
1634
+ /^tu/i,
1635
+ /^w/i,
1636
+ /^th/i,
1637
+ /^f/i,
1638
+ /^sa/i
1639
+ ]
1640
+ },
1641
+ defaultParseWidth: "any"
1642
+ }),
1643
+ dayPeriod: buildMatchFn({
1644
+ matchPatterns: {
1645
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1646
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1647
+ },
1648
+ defaultMatchWidth: "any",
1649
+ parsePatterns: { any: {
1650
+ am: /^a/i,
1651
+ pm: /^p/i,
1652
+ midnight: /^mi/i,
1653
+ noon: /^no/i,
1654
+ morning: /morning/i,
1655
+ afternoon: /afternoon/i,
1656
+ evening: /evening/i,
1657
+ night: /night/i
1658
+ } },
1659
+ defaultParseWidth: "any"
1660
+ })
1661
+ },
1662
+ options: {
1663
+ weekStartsOn: 0,
1664
+ firstWeekContainsDate: 1
1665
+ }
1666
+ };
1667
+ //#endregion
1668
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDayOfYear.js
1669
+ /**
1670
+ * The {@link getDayOfYear} function options.
1671
+ */
1672
+ /**
1673
+ * @name getDayOfYear
1674
+ * @category Day Helpers
1675
+ * @summary Get the day of the year of the given date.
1676
+ *
1677
+ * @description
1678
+ * Get the day of the year of the given date.
1679
+ *
1680
+ * @param date - The given date
1681
+ * @param options - The options
1682
+ *
1683
+ * @returns The day of year
1684
+ *
1685
+ * @example
1686
+ * // Which day of the year is 2 July 2014?
1687
+ * const result = getDayOfYear(new Date(2014, 6, 2))
1688
+ * //=> 183
1689
+ */
1690
+ function getDayOfYear(date, options) {
1691
+ const _date = toDate(date, options?.in);
1692
+ return differenceInCalendarDays(_date, startOfYear(_date)) + 1;
1693
+ }
1694
+ //#endregion
1695
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeek.js
1696
+ /**
1697
+ * The {@link getISOWeek} function options.
1698
+ */
1699
+ /**
1700
+ * @name getISOWeek
1701
+ * @category ISO Week Helpers
1702
+ * @summary Get the ISO week of the given date.
1703
+ *
1704
+ * @description
1705
+ * Get the ISO week of the given date.
1706
+ *
1707
+ * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
1708
+ *
1709
+ * @param date - The given date
1710
+ * @param options - The options
1711
+ *
1712
+ * @returns The ISO week
1713
+ *
1714
+ * @example
1715
+ * // Which week of the ISO-week numbering year is 2 January 2005?
1716
+ * const result = getISOWeek(new Date(2005, 0, 2))
1717
+ * //=> 53
1718
+ */
1719
+ function getISOWeek(date, options) {
1720
+ const _date = toDate(date, options?.in);
1721
+ const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);
1722
+ return Math.round(diff / millisecondsInWeek) + 1;
1723
+ }
1724
+ //#endregion
1725
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekYear.js
1726
+ /**
1727
+ * The {@link getWeekYear} function options.
1728
+ */
1729
+ /**
1730
+ * @name getWeekYear
1731
+ * @category Week-Numbering Year Helpers
1732
+ * @summary Get the local week-numbering year of the given date.
1733
+ *
1734
+ * @description
1735
+ * Get the local week-numbering year of the given date.
1736
+ * The exact calculation depends on the values of
1737
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1738
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1739
+ * the first week of the week-numbering year)
1740
+ *
1741
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1742
+ *
1743
+ * @param date - The given date
1744
+ * @param options - An object with options.
1745
+ *
1746
+ * @returns The local week-numbering year
1747
+ *
1748
+ * @example
1749
+ * // Which week numbering year is 26 December 2004 with the default settings?
1750
+ * const result = getWeekYear(new Date(2004, 11, 26))
1751
+ * //=> 2005
1752
+ *
1753
+ * @example
1754
+ * // Which week numbering year is 26 December 2004 if week starts on Saturday?
1755
+ * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
1756
+ * //=> 2004
1757
+ *
1758
+ * @example
1759
+ * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
1760
+ * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
1761
+ * //=> 2004
1762
+ */
1763
+ function getWeekYear(date, options) {
1764
+ const _date = toDate(date, options?.in);
1765
+ const year = _date.getFullYear();
1766
+ const defaultOptions = getDefaultOptions();
1767
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions.firstWeekContainsDate ?? defaultOptions.locale?.options?.firstWeekContainsDate ?? 1;
1768
+ const firstWeekOfNextYear = constructFrom(options?.in || date, 0);
1769
+ firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
1770
+ firstWeekOfNextYear.setHours(0, 0, 0, 0);
1771
+ const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);
1772
+ const firstWeekOfThisYear = constructFrom(options?.in || date, 0);
1773
+ firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
1774
+ firstWeekOfThisYear.setHours(0, 0, 0, 0);
1775
+ const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);
1776
+ if (+_date >= +startOfNextYear) return year + 1;
1777
+ else if (+_date >= +startOfThisYear) return year;
1778
+ else return year - 1;
1779
+ }
1780
+ //#endregion
1781
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeekYear.js
1782
+ /**
1783
+ * The {@link startOfWeekYear} function options.
1784
+ */
1785
+ /**
1786
+ * @name startOfWeekYear
1787
+ * @category Week-Numbering Year Helpers
1788
+ * @summary Return the start of a local week-numbering year for the given date.
1789
+ *
1790
+ * @description
1791
+ * Return the start of a local week-numbering year.
1792
+ * The exact calculation depends on the values of
1793
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1794
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1795
+ * the first week of the week-numbering year)
1796
+ *
1797
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1798
+ *
1799
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
1800
+ * @typeParam ResultDate - The result `Date` type.
1801
+ *
1802
+ * @param date - The original date
1803
+ * @param options - An object with options
1804
+ *
1805
+ * @returns The start of a week-numbering year
1806
+ *
1807
+ * @example
1808
+ * // The start of an a week-numbering year for 2 July 2005 with default settings:
1809
+ * const result = startOfWeekYear(new Date(2005, 6, 2))
1810
+ * //=> Sun Dec 26 2004 00:00:00
1811
+ *
1812
+ * @example
1813
+ * // The start of a week-numbering year for 2 July 2005
1814
+ * // if Monday is the first day of week
1815
+ * // and 4 January is always in the first week of the year:
1816
+ * const result = startOfWeekYear(new Date(2005, 6, 2), {
1817
+ * weekStartsOn: 1,
1818
+ * firstWeekContainsDate: 4
1819
+ * })
1820
+ * //=> Mon Jan 03 2005 00:00:00
1821
+ */
1822
+ function startOfWeekYear(date, options) {
1823
+ const defaultOptions = getDefaultOptions();
1824
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions.firstWeekContainsDate ?? defaultOptions.locale?.options?.firstWeekContainsDate ?? 1;
1825
+ const year = getWeekYear(date, options);
1826
+ const firstWeek = constructFrom(options?.in || date, 0);
1827
+ firstWeek.setFullYear(year, 0, firstWeekContainsDate);
1828
+ firstWeek.setHours(0, 0, 0, 0);
1829
+ return startOfWeek(firstWeek, options);
1830
+ }
1831
+ //#endregion
1832
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeek.js
1833
+ /**
1834
+ * The {@link getWeek} function options.
1835
+ */
1836
+ /**
1837
+ * @name getWeek
1838
+ * @category Week Helpers
1839
+ * @summary Get the local week index of the given date.
1840
+ *
1841
+ * @description
1842
+ * Get the local week index of the given date.
1843
+ * The exact calculation depends on the values of
1844
+ * `options.weekStartsOn` (which is the index of the first day of the week)
1845
+ * and `options.firstWeekContainsDate` (which is the day of January, which is always in
1846
+ * the first week of the week-numbering year)
1847
+ *
1848
+ * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system
1849
+ *
1850
+ * @param date - The given date
1851
+ * @param options - An object with options
1852
+ *
1853
+ * @returns The week
1854
+ *
1855
+ * @example
1856
+ * // Which week of the local week numbering year is 2 January 2005 with default options?
1857
+ * const result = getWeek(new Date(2005, 0, 2))
1858
+ * //=> 2
1859
+ *
1860
+ * @example
1861
+ * // Which week of the local week numbering year is 2 January 2005,
1862
+ * // if Monday is the first day of the week,
1863
+ * // and the first week of the year always contains 4 January?
1864
+ * const result = getWeek(new Date(2005, 0, 2), {
1865
+ * weekStartsOn: 1,
1866
+ * firstWeekContainsDate: 4
1867
+ * })
1868
+ * //=> 53
1869
+ */
1870
+ function getWeek(date, options) {
1871
+ const _date = toDate(date, options?.in);
1872
+ const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);
1873
+ return Math.round(diff / millisecondsInWeek) + 1;
1874
+ }
1875
+ //#endregion
1876
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/addLeadingZeros.js
1877
+ function addLeadingZeros(number, targetLength) {
1878
+ return (number < 0 ? "-" : "") + Math.abs(number).toString().padStart(targetLength, "0");
1879
+ }
1880
+ //#endregion
1881
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/lightFormatters.js
1882
+ var lightFormatters = {
1883
+ y(date, token) {
1884
+ const signedYear = date.getFullYear();
1885
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
1886
+ return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
1887
+ },
1888
+ M(date, token) {
1889
+ const month = date.getMonth();
1890
+ return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
1891
+ },
1892
+ d(date, token) {
1893
+ return addLeadingZeros(date.getDate(), token.length);
1894
+ },
1895
+ a(date, token) {
1896
+ const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am";
1897
+ switch (token) {
1898
+ case "a":
1899
+ case "aa": return dayPeriodEnumValue.toUpperCase();
1900
+ case "aaa": return dayPeriodEnumValue;
1901
+ case "aaaaa": return dayPeriodEnumValue[0];
1902
+ default: return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
1903
+ }
1904
+ },
1905
+ h(date, token) {
1906
+ return addLeadingZeros(date.getHours() % 12 || 12, token.length);
1907
+ },
1908
+ H(date, token) {
1909
+ return addLeadingZeros(date.getHours(), token.length);
1910
+ },
1911
+ m(date, token) {
1912
+ return addLeadingZeros(date.getMinutes(), token.length);
1913
+ },
1914
+ s(date, token) {
1915
+ return addLeadingZeros(date.getSeconds(), token.length);
1916
+ },
1917
+ S(date, token) {
1918
+ const numberOfDigits = token.length;
1919
+ const milliseconds = date.getMilliseconds();
1920
+ return addLeadingZeros(Math.trunc(milliseconds * Math.pow(10, numberOfDigits - 3)), token.length);
1921
+ }
1922
+ };
1923
+ //#endregion
1924
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/formatters.js
1925
+ var dayPeriodEnum = {
1926
+ am: "am",
1927
+ pm: "pm",
1928
+ midnight: "midnight",
1929
+ noon: "noon",
1930
+ morning: "morning",
1931
+ afternoon: "afternoon",
1932
+ evening: "evening",
1933
+ night: "night"
1934
+ };
1935
+ var formatters = {
1936
+ G: function(date, token, localize) {
1937
+ const era = date.getFullYear() > 0 ? 1 : 0;
1938
+ switch (token) {
1939
+ case "G":
1940
+ case "GG":
1941
+ case "GGG": return localize.era(era, { width: "abbreviated" });
1942
+ case "GGGGG": return localize.era(era, { width: "narrow" });
1943
+ default: return localize.era(era, { width: "wide" });
1944
+ }
1945
+ },
1946
+ y: function(date, token, localize) {
1947
+ if (token === "yo") {
1948
+ const signedYear = date.getFullYear();
1949
+ const year = signedYear > 0 ? signedYear : 1 - signedYear;
1950
+ return localize.ordinalNumber(year, { unit: "year" });
1951
+ }
1952
+ return lightFormatters.y(date, token);
1953
+ },
1954
+ Y: function(date, token, localize, options) {
1955
+ const signedWeekYear = getWeekYear(date, options);
1956
+ const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
1957
+ if (token === "YY") return addLeadingZeros(weekYear % 100, 2);
1958
+ if (token === "Yo") return localize.ordinalNumber(weekYear, { unit: "year" });
1959
+ return addLeadingZeros(weekYear, token.length);
1960
+ },
1961
+ R: function(date, token) {
1962
+ return addLeadingZeros(getISOWeekYear(date), token.length);
1963
+ },
1964
+ u: function(date, token) {
1965
+ return addLeadingZeros(date.getFullYear(), token.length);
1966
+ },
1967
+ Q: function(date, token, localize) {
1968
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
1969
+ switch (token) {
1970
+ case "Q": return String(quarter);
1971
+ case "QQ": return addLeadingZeros(quarter, 2);
1972
+ case "Qo": return localize.ordinalNumber(quarter, { unit: "quarter" });
1973
+ case "QQQ": return localize.quarter(quarter, {
1974
+ width: "abbreviated",
1975
+ context: "formatting"
1976
+ });
1977
+ case "QQQQQ": return localize.quarter(quarter, {
1978
+ width: "narrow",
1979
+ context: "formatting"
1980
+ });
1981
+ default: return localize.quarter(quarter, {
1982
+ width: "wide",
1983
+ context: "formatting"
1984
+ });
1985
+ }
1986
+ },
1987
+ q: function(date, token, localize) {
1988
+ const quarter = Math.ceil((date.getMonth() + 1) / 3);
1989
+ switch (token) {
1990
+ case "q": return String(quarter);
1991
+ case "qq": return addLeadingZeros(quarter, 2);
1992
+ case "qo": return localize.ordinalNumber(quarter, { unit: "quarter" });
1993
+ case "qqq": return localize.quarter(quarter, {
1994
+ width: "abbreviated",
1995
+ context: "standalone"
1996
+ });
1997
+ case "qqqqq": return localize.quarter(quarter, {
1998
+ width: "narrow",
1999
+ context: "standalone"
2000
+ });
2001
+ default: return localize.quarter(quarter, {
2002
+ width: "wide",
2003
+ context: "standalone"
2004
+ });
2005
+ }
2006
+ },
2007
+ M: function(date, token, localize) {
2008
+ const month = date.getMonth();
2009
+ switch (token) {
2010
+ case "M":
2011
+ case "MM": return lightFormatters.M(date, token);
2012
+ case "Mo": return localize.ordinalNumber(month + 1, { unit: "month" });
2013
+ case "MMM": return localize.month(month, {
2014
+ width: "abbreviated",
2015
+ context: "formatting"
2016
+ });
2017
+ case "MMMMM": return localize.month(month, {
2018
+ width: "narrow",
2019
+ context: "formatting"
2020
+ });
2021
+ default: return localize.month(month, {
2022
+ width: "wide",
2023
+ context: "formatting"
2024
+ });
2025
+ }
2026
+ },
2027
+ L: function(date, token, localize) {
2028
+ const month = date.getMonth();
2029
+ switch (token) {
2030
+ case "L": return String(month + 1);
2031
+ case "LL": return addLeadingZeros(month + 1, 2);
2032
+ case "Lo": return localize.ordinalNumber(month + 1, { unit: "month" });
2033
+ case "LLL": return localize.month(month, {
2034
+ width: "abbreviated",
2035
+ context: "standalone"
2036
+ });
2037
+ case "LLLLL": return localize.month(month, {
2038
+ width: "narrow",
2039
+ context: "standalone"
2040
+ });
2041
+ default: return localize.month(month, {
2042
+ width: "wide",
2043
+ context: "standalone"
2044
+ });
2045
+ }
2046
+ },
2047
+ w: function(date, token, localize, options) {
2048
+ const week = getWeek(date, options);
2049
+ if (token === "wo") return localize.ordinalNumber(week, { unit: "week" });
2050
+ return addLeadingZeros(week, token.length);
2051
+ },
2052
+ I: function(date, token, localize) {
2053
+ const isoWeek = getISOWeek(date);
2054
+ if (token === "Io") return localize.ordinalNumber(isoWeek, { unit: "week" });
2055
+ return addLeadingZeros(isoWeek, token.length);
2056
+ },
2057
+ d: function(date, token, localize) {
2058
+ if (token === "do") return localize.ordinalNumber(date.getDate(), { unit: "date" });
2059
+ return lightFormatters.d(date, token);
2060
+ },
2061
+ D: function(date, token, localize) {
2062
+ const dayOfYear = getDayOfYear(date);
2063
+ if (token === "Do") return localize.ordinalNumber(dayOfYear, { unit: "dayOfYear" });
2064
+ return addLeadingZeros(dayOfYear, token.length);
2065
+ },
2066
+ E: function(date, token, localize) {
2067
+ const dayOfWeek = date.getDay();
2068
+ switch (token) {
2069
+ case "E":
2070
+ case "EE":
2071
+ case "EEE": return localize.day(dayOfWeek, {
2072
+ width: "abbreviated",
2073
+ context: "formatting"
2074
+ });
2075
+ case "EEEEE": return localize.day(dayOfWeek, {
2076
+ width: "narrow",
2077
+ context: "formatting"
2078
+ });
2079
+ case "EEEEEE": return localize.day(dayOfWeek, {
2080
+ width: "short",
2081
+ context: "formatting"
2082
+ });
2083
+ default: return localize.day(dayOfWeek, {
2084
+ width: "wide",
2085
+ context: "formatting"
2086
+ });
2087
+ }
2088
+ },
2089
+ e: function(date, token, localize, options) {
2090
+ const dayOfWeek = date.getDay();
2091
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2092
+ switch (token) {
2093
+ case "e": return String(localDayOfWeek);
2094
+ case "ee": return addLeadingZeros(localDayOfWeek, 2);
2095
+ case "eo": return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
2096
+ case "eee": return localize.day(dayOfWeek, {
2097
+ width: "abbreviated",
2098
+ context: "formatting"
2099
+ });
2100
+ case "eeeee": return localize.day(dayOfWeek, {
2101
+ width: "narrow",
2102
+ context: "formatting"
2103
+ });
2104
+ case "eeeeee": return localize.day(dayOfWeek, {
2105
+ width: "short",
2106
+ context: "formatting"
2107
+ });
2108
+ default: return localize.day(dayOfWeek, {
2109
+ width: "wide",
2110
+ context: "formatting"
2111
+ });
2112
+ }
2113
+ },
2114
+ c: function(date, token, localize, options) {
2115
+ const dayOfWeek = date.getDay();
2116
+ const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
2117
+ switch (token) {
2118
+ case "c": return String(localDayOfWeek);
2119
+ case "cc": return addLeadingZeros(localDayOfWeek, token.length);
2120
+ case "co": return localize.ordinalNumber(localDayOfWeek, { unit: "day" });
2121
+ case "ccc": return localize.day(dayOfWeek, {
2122
+ width: "abbreviated",
2123
+ context: "standalone"
2124
+ });
2125
+ case "ccccc": return localize.day(dayOfWeek, {
2126
+ width: "narrow",
2127
+ context: "standalone"
2128
+ });
2129
+ case "cccccc": return localize.day(dayOfWeek, {
2130
+ width: "short",
2131
+ context: "standalone"
2132
+ });
2133
+ default: return localize.day(dayOfWeek, {
2134
+ width: "wide",
2135
+ context: "standalone"
2136
+ });
2137
+ }
2138
+ },
2139
+ i: function(date, token, localize) {
2140
+ const dayOfWeek = date.getDay();
2141
+ const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
2142
+ switch (token) {
2143
+ case "i": return String(isoDayOfWeek);
2144
+ case "ii": return addLeadingZeros(isoDayOfWeek, token.length);
2145
+ case "io": return localize.ordinalNumber(isoDayOfWeek, { unit: "day" });
2146
+ case "iii": return localize.day(dayOfWeek, {
2147
+ width: "abbreviated",
2148
+ context: "formatting"
2149
+ });
2150
+ case "iiiii": return localize.day(dayOfWeek, {
2151
+ width: "narrow",
2152
+ context: "formatting"
2153
+ });
2154
+ case "iiiiii": return localize.day(dayOfWeek, {
2155
+ width: "short",
2156
+ context: "formatting"
2157
+ });
2158
+ default: return localize.day(dayOfWeek, {
2159
+ width: "wide",
2160
+ context: "formatting"
2161
+ });
2162
+ }
2163
+ },
2164
+ a: function(date, token, localize) {
2165
+ const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? "pm" : "am";
2166
+ switch (token) {
2167
+ case "a":
2168
+ case "aa": return localize.dayPeriod(dayPeriodEnumValue, {
2169
+ width: "abbreviated",
2170
+ context: "formatting"
2171
+ });
2172
+ case "aaa": return localize.dayPeriod(dayPeriodEnumValue, {
2173
+ width: "abbreviated",
2174
+ context: "formatting"
2175
+ }).toLowerCase();
2176
+ case "aaaaa": return localize.dayPeriod(dayPeriodEnumValue, {
2177
+ width: "narrow",
2178
+ context: "formatting"
2179
+ });
2180
+ default: return localize.dayPeriod(dayPeriodEnumValue, {
2181
+ width: "wide",
2182
+ context: "formatting"
2183
+ });
2184
+ }
2185
+ },
2186
+ b: function(date, token, localize) {
2187
+ const hours = date.getHours();
2188
+ let dayPeriodEnumValue;
2189
+ if (hours === 12) dayPeriodEnumValue = dayPeriodEnum.noon;
2190
+ else if (hours === 0) dayPeriodEnumValue = dayPeriodEnum.midnight;
2191
+ else dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
2192
+ switch (token) {
2193
+ case "b":
2194
+ case "bb": return localize.dayPeriod(dayPeriodEnumValue, {
2195
+ width: "abbreviated",
2196
+ context: "formatting"
2197
+ });
2198
+ case "bbb": return localize.dayPeriod(dayPeriodEnumValue, {
2199
+ width: "abbreviated",
2200
+ context: "formatting"
2201
+ }).toLowerCase();
2202
+ case "bbbbb": return localize.dayPeriod(dayPeriodEnumValue, {
2203
+ width: "narrow",
2204
+ context: "formatting"
2205
+ });
2206
+ default: return localize.dayPeriod(dayPeriodEnumValue, {
2207
+ width: "wide",
2208
+ context: "formatting"
2209
+ });
2210
+ }
2211
+ },
2212
+ B: function(date, token, localize) {
2213
+ const hours = date.getHours();
2214
+ let dayPeriodEnumValue;
2215
+ if (hours >= 17) dayPeriodEnumValue = dayPeriodEnum.evening;
2216
+ else if (hours >= 12) dayPeriodEnumValue = dayPeriodEnum.afternoon;
2217
+ else if (hours >= 4) dayPeriodEnumValue = dayPeriodEnum.morning;
2218
+ else dayPeriodEnumValue = dayPeriodEnum.night;
2219
+ switch (token) {
2220
+ case "B":
2221
+ case "BB":
2222
+ case "BBB": return localize.dayPeriod(dayPeriodEnumValue, {
2223
+ width: "abbreviated",
2224
+ context: "formatting"
2225
+ });
2226
+ case "BBBBB": return localize.dayPeriod(dayPeriodEnumValue, {
2227
+ width: "narrow",
2228
+ context: "formatting"
2229
+ });
2230
+ default: return localize.dayPeriod(dayPeriodEnumValue, {
2231
+ width: "wide",
2232
+ context: "formatting"
2233
+ });
2234
+ }
2235
+ },
2236
+ h: function(date, token, localize) {
2237
+ if (token === "ho") {
2238
+ let hours = date.getHours() % 12;
2239
+ if (hours === 0) hours = 12;
2240
+ return localize.ordinalNumber(hours, { unit: "hour" });
2241
+ }
2242
+ return lightFormatters.h(date, token);
2243
+ },
2244
+ H: function(date, token, localize) {
2245
+ if (token === "Ho") return localize.ordinalNumber(date.getHours(), { unit: "hour" });
2246
+ return lightFormatters.H(date, token);
2247
+ },
2248
+ K: function(date, token, localize) {
2249
+ const hours = date.getHours() % 12;
2250
+ if (token === "Ko") return localize.ordinalNumber(hours, { unit: "hour" });
2251
+ return addLeadingZeros(hours, token.length);
2252
+ },
2253
+ k: function(date, token, localize) {
2254
+ let hours = date.getHours();
2255
+ if (hours === 0) hours = 24;
2256
+ if (token === "ko") return localize.ordinalNumber(hours, { unit: "hour" });
2257
+ return addLeadingZeros(hours, token.length);
2258
+ },
2259
+ m: function(date, token, localize) {
2260
+ if (token === "mo") return localize.ordinalNumber(date.getMinutes(), { unit: "minute" });
2261
+ return lightFormatters.m(date, token);
2262
+ },
2263
+ s: function(date, token, localize) {
2264
+ if (token === "so") return localize.ordinalNumber(date.getSeconds(), { unit: "second" });
2265
+ return lightFormatters.s(date, token);
2266
+ },
2267
+ S: function(date, token) {
2268
+ return lightFormatters.S(date, token);
2269
+ },
2270
+ X: function(date, token, _localize) {
2271
+ const timezoneOffset = date.getTimezoneOffset();
2272
+ if (timezoneOffset === 0) return "Z";
2273
+ switch (token) {
2274
+ case "X": return formatTimezoneWithOptionalMinutes(timezoneOffset);
2275
+ case "XXXX":
2276
+ case "XX": return formatTimezone(timezoneOffset);
2277
+ default: return formatTimezone(timezoneOffset, ":");
2278
+ }
2279
+ },
2280
+ x: function(date, token, _localize) {
2281
+ const timezoneOffset = date.getTimezoneOffset();
2282
+ switch (token) {
2283
+ case "x": return formatTimezoneWithOptionalMinutes(timezoneOffset);
2284
+ case "xxxx":
2285
+ case "xx": return formatTimezone(timezoneOffset);
2286
+ default: return formatTimezone(timezoneOffset, ":");
2287
+ }
2288
+ },
2289
+ O: function(date, token, _localize) {
2290
+ const timezoneOffset = date.getTimezoneOffset();
2291
+ switch (token) {
2292
+ case "O":
2293
+ case "OO":
2294
+ case "OOO": return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2295
+ default: return "GMT" + formatTimezone(timezoneOffset, ":");
2296
+ }
2297
+ },
2298
+ z: function(date, token, _localize) {
2299
+ const timezoneOffset = date.getTimezoneOffset();
2300
+ switch (token) {
2301
+ case "z":
2302
+ case "zz":
2303
+ case "zzz": return "GMT" + formatTimezoneShort(timezoneOffset, ":");
2304
+ default: return "GMT" + formatTimezone(timezoneOffset, ":");
2305
+ }
2306
+ },
2307
+ t: function(date, token, _localize) {
2308
+ return addLeadingZeros(Math.trunc(+date / 1e3), token.length);
2309
+ },
2310
+ T: function(date, token, _localize) {
2311
+ return addLeadingZeros(+date, token.length);
2312
+ }
2313
+ };
2314
+ function formatTimezoneShort(offset, delimiter = "") {
2315
+ const sign = offset > 0 ? "-" : "+";
2316
+ const absOffset = Math.abs(offset);
2317
+ const hours = Math.trunc(absOffset / 60);
2318
+ const minutes = absOffset % 60;
2319
+ if (minutes === 0) return sign + String(hours);
2320
+ return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
2321
+ }
2322
+ function formatTimezoneWithOptionalMinutes(offset, delimiter) {
2323
+ if (offset % 60 === 0) return (offset > 0 ? "-" : "+") + addLeadingZeros(Math.abs(offset) / 60, 2);
2324
+ return formatTimezone(offset, delimiter);
2325
+ }
2326
+ function formatTimezone(offset, delimiter = "") {
2327
+ const sign = offset > 0 ? "-" : "+";
2328
+ const absOffset = Math.abs(offset);
2329
+ const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);
2330
+ const minutes = addLeadingZeros(absOffset % 60, 2);
2331
+ return sign + hours + delimiter + minutes;
2332
+ }
2333
+ //#endregion
2334
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/longFormatters.js
2335
+ var dateLongFormatter = (pattern, formatLong) => {
2336
+ switch (pattern) {
2337
+ case "P": return formatLong.date({ width: "short" });
2338
+ case "PP": return formatLong.date({ width: "medium" });
2339
+ case "PPP": return formatLong.date({ width: "long" });
2340
+ default: return formatLong.date({ width: "full" });
2341
+ }
2342
+ };
2343
+ var timeLongFormatter = (pattern, formatLong) => {
2344
+ switch (pattern) {
2345
+ case "p": return formatLong.time({ width: "short" });
2346
+ case "pp": return formatLong.time({ width: "medium" });
2347
+ case "ppp": return formatLong.time({ width: "long" });
2348
+ default: return formatLong.time({ width: "full" });
2349
+ }
2350
+ };
2351
+ var dateTimeLongFormatter = (pattern, formatLong) => {
2352
+ const matchResult = pattern.match(/(P+)(p+)?/) || [];
2353
+ const datePattern = matchResult[1];
2354
+ const timePattern = matchResult[2];
2355
+ if (!timePattern) return dateLongFormatter(pattern, formatLong);
2356
+ let dateTimeFormat;
2357
+ switch (datePattern) {
2358
+ case "P":
2359
+ dateTimeFormat = formatLong.dateTime({ width: "short" });
2360
+ break;
2361
+ case "PP":
2362
+ dateTimeFormat = formatLong.dateTime({ width: "medium" });
2363
+ break;
2364
+ case "PPP":
2365
+ dateTimeFormat = formatLong.dateTime({ width: "long" });
2366
+ break;
2367
+ default:
2368
+ dateTimeFormat = formatLong.dateTime({ width: "full" });
2369
+ break;
2370
+ }
2371
+ return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong)).replace("{{time}}", timeLongFormatter(timePattern, formatLong));
2372
+ };
2373
+ var longFormatters = {
2374
+ p: timeLongFormatter,
2375
+ P: dateTimeLongFormatter
2376
+ };
2377
+ //#endregion
2378
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/protectedTokens.js
2379
+ var dayOfYearTokenRE = /^D+$/;
2380
+ var weekYearTokenRE = /^Y+$/;
2381
+ var throwTokens = [
2382
+ "D",
2383
+ "DD",
2384
+ "YY",
2385
+ "YYYY"
2386
+ ];
2387
+ function isProtectedDayOfYearToken(token) {
2388
+ return dayOfYearTokenRE.test(token);
2389
+ }
2390
+ function isProtectedWeekYearToken(token) {
2391
+ return weekYearTokenRE.test(token);
2392
+ }
2393
+ function warnOrThrowProtectedError(token, format, input) {
2394
+ const _message = message(token, format, input);
2395
+ console.warn(_message);
2396
+ if (throwTokens.includes(token)) throw new RangeError(_message);
2397
+ }
2398
+ function message(token, format, input) {
2399
+ const subject = token[0] === "Y" ? "years" : "days of the month";
2400
+ return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2401
+ }
2402
+ //#endregion
2403
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/format.js
2404
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
2405
+ var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
2406
+ var escapedStringRegExp = /^'([^]*?)'?$/;
2407
+ var doubleQuoteRegExp = /''/g;
2408
+ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
2409
+ /**
2410
+ * The {@link format} function options.
2411
+ */
2412
+ /**
2413
+ * @name format
2414
+ * @alias formatDate
2415
+ * @category Common Helpers
2416
+ * @summary Format the date.
2417
+ *
2418
+ * @description
2419
+ * Return the formatted date string in the given format. The result may vary by locale.
2420
+ *
2421
+ * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
2422
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2423
+ *
2424
+ * The characters wrapped between two single quotes characters (') are escaped.
2425
+ * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
2426
+ * (see the last example)
2427
+ *
2428
+ * Format of the string is based on Unicode Technical Standard #35:
2429
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
2430
+ * with a few additions (see note 7 below the table).
2431
+ *
2432
+ * Accepted patterns:
2433
+ * | Unit | Pattern | Result examples | Notes |
2434
+ * |---------------------------------|---------|-----------------------------------|-------|
2435
+ * | Era | G..GGG | AD, BC | |
2436
+ * | | GGGG | Anno Domini, Before Christ | 2 |
2437
+ * | | GGGGG | A, B | |
2438
+ * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
2439
+ * | | yo | 44th, 1st, 0th, 17th | 5,7 |
2440
+ * | | yy | 44, 01, 00, 17 | 5 |
2441
+ * | | yyy | 044, 001, 1900, 2017 | 5 |
2442
+ * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
2443
+ * | | yyyyy | ... | 3,5 |
2444
+ * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
2445
+ * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
2446
+ * | | YY | 44, 01, 00, 17 | 5,8 |
2447
+ * | | YYY | 044, 001, 1900, 2017 | 5 |
2448
+ * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
2449
+ * | | YYYYY | ... | 3,5 |
2450
+ * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
2451
+ * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
2452
+ * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
2453
+ * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
2454
+ * | | RRRRR | ... | 3,5,7 |
2455
+ * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
2456
+ * | | uu | -43, 01, 1900, 2017 | 5 |
2457
+ * | | uuu | -043, 001, 1900, 2017 | 5 |
2458
+ * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
2459
+ * | | uuuuu | ... | 3,5 |
2460
+ * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
2461
+ * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
2462
+ * | | QQ | 01, 02, 03, 04 | |
2463
+ * | | QQQ | Q1, Q2, Q3, Q4 | |
2464
+ * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
2465
+ * | | QQQQQ | 1, 2, 3, 4 | 4 |
2466
+ * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
2467
+ * | | qo | 1st, 2nd, 3rd, 4th | 7 |
2468
+ * | | qq | 01, 02, 03, 04 | |
2469
+ * | | qqq | Q1, Q2, Q3, Q4 | |
2470
+ * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
2471
+ * | | qqqqq | 1, 2, 3, 4 | 4 |
2472
+ * | Month (formatting) | M | 1, 2, ..., 12 | |
2473
+ * | | Mo | 1st, 2nd, ..., 12th | 7 |
2474
+ * | | MM | 01, 02, ..., 12 | |
2475
+ * | | MMM | Jan, Feb, ..., Dec | |
2476
+ * | | MMMM | January, February, ..., December | 2 |
2477
+ * | | MMMMM | J, F, ..., D | |
2478
+ * | Month (stand-alone) | L | 1, 2, ..., 12 | |
2479
+ * | | Lo | 1st, 2nd, ..., 12th | 7 |
2480
+ * | | LL | 01, 02, ..., 12 | |
2481
+ * | | LLL | Jan, Feb, ..., Dec | |
2482
+ * | | LLLL | January, February, ..., December | 2 |
2483
+ * | | LLLLL | J, F, ..., D | |
2484
+ * | Local week of year | w | 1, 2, ..., 53 | |
2485
+ * | | wo | 1st, 2nd, ..., 53th | 7 |
2486
+ * | | ww | 01, 02, ..., 53 | |
2487
+ * | ISO week of year | I | 1, 2, ..., 53 | 7 |
2488
+ * | | Io | 1st, 2nd, ..., 53th | 7 |
2489
+ * | | II | 01, 02, ..., 53 | 7 |
2490
+ * | Day of month | d | 1, 2, ..., 31 | |
2491
+ * | | do | 1st, 2nd, ..., 31st | 7 |
2492
+ * | | dd | 01, 02, ..., 31 | |
2493
+ * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
2494
+ * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
2495
+ * | | DD | 01, 02, ..., 365, 366 | 9 |
2496
+ * | | DDD | 001, 002, ..., 365, 366 | |
2497
+ * | | DDDD | ... | 3 |
2498
+ * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
2499
+ * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
2500
+ * | | EEEEE | M, T, W, T, F, S, S | |
2501
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
2502
+ * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
2503
+ * | | io | 1st, 2nd, ..., 7th | 7 |
2504
+ * | | ii | 01, 02, ..., 07 | 7 |
2505
+ * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
2506
+ * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
2507
+ * | | iiiii | M, T, W, T, F, S, S | 7 |
2508
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
2509
+ * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
2510
+ * | | eo | 2nd, 3rd, ..., 1st | 7 |
2511
+ * | | ee | 02, 03, ..., 01 | |
2512
+ * | | eee | Mon, Tue, Wed, ..., Sun | |
2513
+ * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
2514
+ * | | eeeee | M, T, W, T, F, S, S | |
2515
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
2516
+ * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
2517
+ * | | co | 2nd, 3rd, ..., 1st | 7 |
2518
+ * | | cc | 02, 03, ..., 01 | |
2519
+ * | | ccc | Mon, Tue, Wed, ..., Sun | |
2520
+ * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
2521
+ * | | ccccc | M, T, W, T, F, S, S | |
2522
+ * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
2523
+ * | AM, PM | a..aa | AM, PM | |
2524
+ * | | aaa | am, pm | |
2525
+ * | | aaaa | a.m., p.m. | 2 |
2526
+ * | | aaaaa | a, p | |
2527
+ * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
2528
+ * | | bbb | am, pm, noon, midnight | |
2529
+ * | | bbbb | a.m., p.m., noon, midnight | 2 |
2530
+ * | | bbbbb | a, p, n, mi | |
2531
+ * | Flexible day period | B..BBB | at night, in the morning, ... | |
2532
+ * | | BBBB | at night, in the morning, ... | 2 |
2533
+ * | | BBBBB | at night, in the morning, ... | |
2534
+ * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
2535
+ * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
2536
+ * | | hh | 01, 02, ..., 11, 12 | |
2537
+ * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
2538
+ * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
2539
+ * | | HH | 00, 01, 02, ..., 23 | |
2540
+ * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
2541
+ * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
2542
+ * | | KK | 01, 02, ..., 11, 00 | |
2543
+ * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
2544
+ * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
2545
+ * | | kk | 24, 01, 02, ..., 23 | |
2546
+ * | Minute | m | 0, 1, ..., 59 | |
2547
+ * | | mo | 0th, 1st, ..., 59th | 7 |
2548
+ * | | mm | 00, 01, ..., 59 | |
2549
+ * | Second | s | 0, 1, ..., 59 | |
2550
+ * | | so | 0th, 1st, ..., 59th | 7 |
2551
+ * | | ss | 00, 01, ..., 59 | |
2552
+ * | Fraction of second | S | 0, 1, ..., 9 | |
2553
+ * | | SS | 00, 01, ..., 99 | |
2554
+ * | | SSS | 000, 001, ..., 999 | |
2555
+ * | | SSSS | ... | 3 |
2556
+ * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
2557
+ * | | XX | -0800, +0530, Z | |
2558
+ * | | XXX | -08:00, +05:30, Z | |
2559
+ * | | XXXX | -0800, +0530, Z, +123456 | 2 |
2560
+ * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
2561
+ * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
2562
+ * | | xx | -0800, +0530, +0000 | |
2563
+ * | | xxx | -08:00, +05:30, +00:00 | 2 |
2564
+ * | | xxxx | -0800, +0530, +0000, +123456 | |
2565
+ * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
2566
+ * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
2567
+ * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
2568
+ * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
2569
+ * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
2570
+ * | Seconds timestamp | t | 512969520 | 7 |
2571
+ * | | tt | ... | 3,7 |
2572
+ * | Milliseconds timestamp | T | 512969520900 | 7 |
2573
+ * | | TT | ... | 3,7 |
2574
+ * | Long localized date | P | 04/29/1453 | 7 |
2575
+ * | | PP | Apr 29, 1453 | 7 |
2576
+ * | | PPP | April 29th, 1453 | 7 |
2577
+ * | | PPPP | Friday, April 29th, 1453 | 2,7 |
2578
+ * | Long localized time | p | 12:00 AM | 7 |
2579
+ * | | pp | 12:00:00 AM | 7 |
2580
+ * | | ppp | 12:00:00 AM GMT+2 | 7 |
2581
+ * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
2582
+ * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
2583
+ * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
2584
+ * | | PPPppp | April 29th, 1453 at ... | 7 |
2585
+ * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
2586
+ * Notes:
2587
+ * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
2588
+ * are the same as "stand-alone" units, but are different in some languages.
2589
+ * "Formatting" units are declined according to the rules of the language
2590
+ * in the context of a date. "Stand-alone" units are always nominative singular:
2591
+ *
2592
+ * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
2593
+ *
2594
+ * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
2595
+ *
2596
+ * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
2597
+ * the single quote characters (see below).
2598
+ * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
2599
+ * the output will be the same as default pattern for this unit, usually
2600
+ * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
2601
+ * are marked with "2" in the last column of the table.
2602
+ *
2603
+ * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
2604
+ *
2605
+ * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
2606
+ *
2607
+ * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
2608
+ *
2609
+ * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
2610
+ *
2611
+ * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
2612
+ *
2613
+ * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
2614
+ * The output will be padded with zeros to match the length of the pattern.
2615
+ *
2616
+ * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
2617
+ *
2618
+ * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
2619
+ * These tokens represent the shortest form of the quarter.
2620
+ *
2621
+ * 5. The main difference between `y` and `u` patterns are B.C. years:
2622
+ *
2623
+ * | Year | `y` | `u` |
2624
+ * |------|-----|-----|
2625
+ * | AC 1 | 1 | 1 |
2626
+ * | BC 1 | 1 | 0 |
2627
+ * | BC 2 | 2 | -1 |
2628
+ *
2629
+ * Also `yy` always returns the last two digits of a year,
2630
+ * while `uu` pads single digit years to 2 characters and returns other years unchanged:
2631
+ *
2632
+ * | Year | `yy` | `uu` |
2633
+ * |------|------|------|
2634
+ * | 1 | 01 | 01 |
2635
+ * | 14 | 14 | 14 |
2636
+ * | 376 | 76 | 376 |
2637
+ * | 1453 | 53 | 1453 |
2638
+ *
2639
+ * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
2640
+ * except local week-numbering years are dependent on `options.weekStartsOn`
2641
+ * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)
2642
+ * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).
2643
+ *
2644
+ * 6. Specific non-location timezones are currently unavailable in `date-fns`,
2645
+ * so right now these tokens fall back to GMT timezones.
2646
+ *
2647
+ * 7. These patterns are not in the Unicode Technical Standard #35:
2648
+ * - `i`: ISO day of week
2649
+ * - `I`: ISO week of year
2650
+ * - `R`: ISO week-numbering year
2651
+ * - `t`: seconds timestamp
2652
+ * - `T`: milliseconds timestamp
2653
+ * - `o`: ordinal number modifier
2654
+ * - `P`: long localized date
2655
+ * - `p`: long localized time
2656
+ *
2657
+ * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
2658
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2659
+ *
2660
+ * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
2661
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2662
+ *
2663
+ * @param date - The original date
2664
+ * @param format - The string of tokens
2665
+ * @param options - An object with options
2666
+ *
2667
+ * @returns The formatted date string
2668
+ *
2669
+ * @throws `date` must not be Invalid Date
2670
+ * @throws `options.locale` must contain `localize` property
2671
+ * @throws `options.locale` must contain `formatLong` property
2672
+ * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2673
+ * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2674
+ * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2675
+ * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2676
+ * @throws format string contains an unescaped latin alphabet character
2677
+ *
2678
+ * @example
2679
+ * // Represent 11 February 2014 in middle-endian format:
2680
+ * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
2681
+ * //=> '02/11/2014'
2682
+ *
2683
+ * @example
2684
+ * // Represent 2 July 2014 in Esperanto:
2685
+ * import { eoLocale } from 'date-fns/locale/eo'
2686
+ * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
2687
+ * locale: eoLocale
2688
+ * })
2689
+ * //=> '2-a de julio 2014'
2690
+ *
2691
+ * @example
2692
+ * // Escape string by single quote characters:
2693
+ * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
2694
+ * //=> "3 o'clock"
2695
+ */
2696
+ function format(date, formatStr, options) {
2697
+ const defaultOptions = getDefaultOptions();
2698
+ const locale = options?.locale ?? defaultOptions.locale ?? enUS;
2699
+ const firstWeekContainsDate = options?.firstWeekContainsDate ?? options?.locale?.options?.firstWeekContainsDate ?? defaultOptions.firstWeekContainsDate ?? defaultOptions.locale?.options?.firstWeekContainsDate ?? 1;
2700
+ const weekStartsOn = options?.weekStartsOn ?? options?.locale?.options?.weekStartsOn ?? defaultOptions.weekStartsOn ?? defaultOptions.locale?.options?.weekStartsOn ?? 0;
2701
+ const originalDate = toDate(date, options?.in);
2702
+ if (!isValid(originalDate)) throw new RangeError("Invalid time value");
2703
+ let parts = formatStr.match(longFormattingTokensRegExp).map((substring) => {
2704
+ const firstCharacter = substring[0];
2705
+ if (firstCharacter === "p" || firstCharacter === "P") {
2706
+ const longFormatter = longFormatters[firstCharacter];
2707
+ return longFormatter(substring, locale.formatLong);
2708
+ }
2709
+ return substring;
2710
+ }).join("").match(formattingTokensRegExp).map((substring) => {
2711
+ if (substring === "''") return {
2712
+ isToken: false,
2713
+ value: "'"
2714
+ };
2715
+ const firstCharacter = substring[0];
2716
+ if (firstCharacter === "'") return {
2717
+ isToken: false,
2718
+ value: cleanEscapedString(substring)
2719
+ };
2720
+ if (formatters[firstCharacter]) return {
2721
+ isToken: true,
2722
+ value: substring
2723
+ };
2724
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) throw new RangeError("Format string contains an unescaped latin alphabet character `" + firstCharacter + "`");
2725
+ return {
2726
+ isToken: false,
2727
+ value: substring
2728
+ };
2729
+ });
2730
+ if (locale.localize.preprocessor) parts = locale.localize.preprocessor(originalDate, parts);
2731
+ const formatterOptions = {
2732
+ firstWeekContainsDate,
2733
+ weekStartsOn,
2734
+ locale
2735
+ };
2736
+ return parts.map((part) => {
2737
+ if (!part.isToken) return part.value;
2738
+ const token = part.value;
2739
+ if (!options?.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token) || !options?.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) warnOrThrowProtectedError(token, formatStr, String(date));
2740
+ const formatter = formatters[token[0]];
2741
+ return formatter(originalDate, token, locale.localize, formatterOptions);
2742
+ }).join("");
2743
+ }
2744
+ function cleanEscapedString(input) {
2745
+ const matched = input.match(escapedStringRegExp);
2746
+ if (!matched) return input;
2747
+ return matched[1].replace(doubleQuoteRegExp, "'");
2748
+ }
2749
+ //#endregion
2750
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js
2751
+ /**
2752
+ * The {@link getDaysInMonth} function options.
2753
+ */
2754
+ /**
2755
+ * @name getDaysInMonth
2756
+ * @category Month Helpers
2757
+ * @summary Get the number of days in a month of the given date.
2758
+ *
2759
+ * @description
2760
+ * Get the number of days in a month of the given date, considering the context if provided.
2761
+ *
2762
+ * @param date - The given date
2763
+ * @param options - An object with options
2764
+ *
2765
+ * @returns The number of days in a month
2766
+ *
2767
+ * @example
2768
+ * // How many days are in February 2000?
2769
+ * const result = getDaysInMonth(new Date(2000, 1))
2770
+ * //=> 29
2771
+ */
2772
+ function getDaysInMonth(date, options) {
2773
+ const _date = toDate(date, options?.in);
2774
+ const year = _date.getFullYear();
2775
+ const monthIndex = _date.getMonth();
2776
+ const lastDayOfMonth = constructFrom(_date, 0);
2777
+ lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
2778
+ lastDayOfMonth.setHours(0, 0, 0, 0);
2779
+ return lastDayOfMonth.getDate();
2780
+ }
2781
+ //#endregion
2782
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMonth.js
2783
+ /**
2784
+ * The {@link getMonth} function options.
2785
+ */
2786
+ /**
2787
+ * @name getMonth
2788
+ * @category Month Helpers
2789
+ * @summary Get the month of the given date.
2790
+ *
2791
+ * @description
2792
+ * Get the month of the given date.
2793
+ *
2794
+ * @param date - The given date
2795
+ * @param options - An object with options
2796
+ *
2797
+ * @returns The month index (0-11)
2798
+ *
2799
+ * @example
2800
+ * // Which month is 29 February 2012?
2801
+ * const result = getMonth(new Date(2012, 1, 29))
2802
+ * //=> 1
2803
+ */
2804
+ function getMonth(date, options) {
2805
+ return toDate(date, options?.in).getMonth();
2806
+ }
2807
+ //#endregion
2808
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getYear.js
2809
+ /**
2810
+ * The {@link getYear} function options.
2811
+ */
2812
+ /**
2813
+ * @name getYear
2814
+ * @category Year Helpers
2815
+ * @summary Get the year of the given date.
2816
+ *
2817
+ * @description
2818
+ * Get the year of the given date.
2819
+ *
2820
+ * @param date - The given date
2821
+ * @param options - An object with options
2822
+ *
2823
+ * @returns The year
2824
+ *
2825
+ * @example
2826
+ * // Which year is 2 July 2014?
2827
+ * const result = getYear(new Date(2014, 6, 2))
2828
+ * //=> 2014
2829
+ */
2830
+ function getYear(date, options) {
2831
+ return toDate(date, options?.in).getFullYear();
2832
+ }
2833
+ //#endregion
2834
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js
2835
+ /**
2836
+ * @name isAfter
2837
+ * @category Common Helpers
2838
+ * @summary Is the first date after the second one?
2839
+ *
2840
+ * @description
2841
+ * Is the first date after the second one?
2842
+ *
2843
+ * @param date - The date that should be after the other one to return true
2844
+ * @param dateToCompare - The date to compare with
2845
+ *
2846
+ * @returns The first date is after the second date
2847
+ *
2848
+ * @example
2849
+ * // Is 10 July 1989 after 11 February 1987?
2850
+ * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
2851
+ * //=> true
2852
+ */
2853
+ function isAfter(date, dateToCompare) {
2854
+ return +toDate(date) > +toDate(dateToCompare);
2855
+ }
2856
+ //#endregion
2857
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isBefore.js
2858
+ /**
2859
+ * @name isBefore
2860
+ * @category Common Helpers
2861
+ * @summary Is the first date before the second one?
2862
+ *
2863
+ * @description
2864
+ * Is the first date before the second one?
2865
+ *
2866
+ * @param date - The date that should be before the other one to return true
2867
+ * @param dateToCompare - The date to compare with
2868
+ *
2869
+ * @returns The first date is before the second date
2870
+ *
2871
+ * @example
2872
+ * // Is 10 July 1989 before 11 February 1987?
2873
+ * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
2874
+ * //=> false
2875
+ */
2876
+ function isBefore(date, dateToCompare) {
2877
+ return +toDate(date) < +toDate(dateToCompare);
2878
+ }
2879
+ //#endregion
2880
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameMonth.js
2881
+ /**
2882
+ * The {@link isSameMonth} function options.
2883
+ */
2884
+ /**
2885
+ * @name isSameMonth
2886
+ * @category Month Helpers
2887
+ * @summary Are the given dates in the same month (and year)?
2888
+ *
2889
+ * @description
2890
+ * Are the given dates in the same month (and year)?
2891
+ *
2892
+ * @param laterDate - The first date to check
2893
+ * @param earlierDate - The second date to check
2894
+ * @param options - An object with options
2895
+ *
2896
+ * @returns The dates are in the same month (and year)
2897
+ *
2898
+ * @example
2899
+ * // Are 2 September 2014 and 25 September 2014 in the same month?
2900
+ * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
2901
+ * //=> true
2902
+ *
2903
+ * @example
2904
+ * // Are 2 September 2014 and 25 September 2015 in the same month?
2905
+ * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))
2906
+ * //=> false
2907
+ */
2908
+ function isSameMonth(laterDate, earlierDate, options) {
2909
+ const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
2910
+ return laterDate_.getFullYear() === earlierDate_.getFullYear() && laterDate_.getMonth() === earlierDate_.getMonth();
2911
+ }
2912
+ //#endregion
2913
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameYear.js
2914
+ /**
2915
+ * The {@link isSameYear} function options.
2916
+ */
2917
+ /**
2918
+ * @name isSameYear
2919
+ * @category Year Helpers
2920
+ * @summary Are the given dates in the same year?
2921
+ *
2922
+ * @description
2923
+ * Are the given dates in the same year?
2924
+ *
2925
+ * @param laterDate - The first date to check
2926
+ * @param earlierDate - The second date to check
2927
+ * @param options - An object with options
2928
+ *
2929
+ * @returns The dates are in the same year
2930
+ *
2931
+ * @example
2932
+ * // Are 2 September 2014 and 25 September 2014 in the same year?
2933
+ * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))
2934
+ * //=> true
2935
+ */
2936
+ function isSameYear(laterDate, earlierDate, options) {
2937
+ const [laterDate_, earlierDate_] = normalizeDates(options?.in, laterDate, earlierDate);
2938
+ return laterDate_.getFullYear() === earlierDate_.getFullYear();
2939
+ }
2940
+ //#endregion
2941
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js
2942
+ /**
2943
+ * The {@link setMonth} function options.
2944
+ */
2945
+ /**
2946
+ * @name setMonth
2947
+ * @category Month Helpers
2948
+ * @summary Set the month to the given date.
2949
+ *
2950
+ * @description
2951
+ * Set the month to the given date.
2952
+ *
2953
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
2954
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
2955
+ *
2956
+ * @param date - The date to be changed
2957
+ * @param month - The month index to set (0-11)
2958
+ * @param options - The options
2959
+ *
2960
+ * @returns The new date with the month set
2961
+ *
2962
+ * @example
2963
+ * // Set February to 1 September 2014:
2964
+ * const result = setMonth(new Date(2014, 8, 1), 1)
2965
+ * //=> Sat Feb 01 2014 00:00:00
2966
+ */
2967
+ function setMonth(date, month, options) {
2968
+ const _date = toDate(date, options?.in);
2969
+ const year = _date.getFullYear();
2970
+ const day = _date.getDate();
2971
+ const midMonth = constructFrom(options?.in || date, 0);
2972
+ midMonth.setFullYear(year, month, 15);
2973
+ midMonth.setHours(0, 0, 0, 0);
2974
+ const daysInMonth = getDaysInMonth(midMonth);
2975
+ _date.setMonth(month, Math.min(day, daysInMonth));
2976
+ return _date;
2977
+ }
2978
+ //#endregion
2979
+ //#region ../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setYear.js
2980
+ /**
2981
+ * The {@link setYear} function options.
2982
+ */
2983
+ /**
2984
+ * @name setYear
2985
+ * @category Year Helpers
2986
+ * @summary Set the year to the given date.
2987
+ *
2988
+ * @description
2989
+ * Set the year to the given date.
2990
+ *
2991
+ * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
2992
+ * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
2993
+ *
2994
+ * @param date - The date to be changed
2995
+ * @param year - The year of the new date
2996
+ * @param options - An object with options.
2997
+ *
2998
+ * @returns The new date with the year set
2999
+ *
3000
+ * @example
3001
+ * // Set year 2013 to 1 September 2014:
3002
+ * const result = setYear(new Date(2014, 8, 1), 2013)
3003
+ * //=> Sun Sep 01 2013 00:00:00
3004
+ */
3005
+ function setYear(date, year, options) {
3006
+ const date_ = toDate(date, options?.in);
3007
+ if (isNaN(+date_)) return constructFrom(options?.in || date, NaN);
3008
+ date_.setFullYear(year);
3009
+ return date_;
3010
+ }
3011
+ //#endregion
3012
+ export { startOfISOWeek as A, isSameDay as C, addWeeks as D, addYears as E, addMonths as M, addDays as N, differenceInCalendarDays as O, isDate as S, max as T, endOfYear as _, isBefore as a, endOfMonth as b, getMonth as c, getISOWeek as d, enUS as f, startOfYear as g, eachYearOfInterval as h, isSameMonth as i, startOfWeek as j, startOfDay as k, format as l, endOfWeek as m, setMonth as n, isAfter as o, endOfISOWeek as p, isSameYear as r, getYear as s, setYear as t, getWeek as u, startOfMonth as v, min as w, differenceInCalendarMonths as x, eachMonthOfInterval as y };