super-time-tracker-ui 0.1.32 → 0.1.34

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 (328) hide show
  1. package/bin/stt-ui.js +4 -4
  2. package/dist/standalone/next-output/BUILD_ID +1 -1
  3. package/dist/standalone/next-output/app-path-routes-manifest.json +5 -0
  4. package/dist/standalone/next-output/build-manifest.json +5 -5
  5. package/dist/standalone/next-output/routes-manifest.json +30 -0
  6. package/dist/standalone/next-output/server/app/_global-error/page/build-manifest.json +2 -2
  7. package/dist/standalone/next-output/server/app/_global-error.html +1 -1
  8. package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
  9. package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/dist/standalone/next-output/server/app/_not-found/page/build-manifest.json +2 -2
  15. package/dist/standalone/next-output/server/app/_not-found/page.js +1 -2
  16. package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
  17. package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/dist/standalone/next-output/server/app/api/command-palette/route/app-paths-manifest.json +3 -0
  19. package/dist/standalone/next-output/server/app/api/command-palette/route/build-manifest.json +9 -0
  20. package/dist/standalone/next-output/server/app/api/command-palette/route/server-reference-manifest.json +4 -0
  21. package/dist/standalone/next-output/server/app/api/command-palette/route.js +6 -0
  22. package/dist/standalone/next-output/server/app/api/command-palette/route.js.nft.json +1 -0
  23. package/dist/standalone/next-output/server/app/api/command-palette/route_client-reference-manifest.js +3 -0
  24. package/dist/standalone/next-output/server/app/api/entries/search/route/app-paths-manifest.json +3 -0
  25. package/dist/standalone/next-output/server/app/api/entries/search/route/build-manifest.json +9 -0
  26. package/dist/standalone/next-output/server/app/api/entries/search/route/server-reference-manifest.json +4 -0
  27. package/dist/standalone/next-output/server/app/api/entries/search/route.js +7 -0
  28. package/dist/standalone/next-output/server/app/api/entries/search/route.js.nft.json +1 -0
  29. package/dist/standalone/next-output/server/app/api/entries/search/route_client-reference-manifest.js +3 -0
  30. package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js +1 -1
  31. package/dist/standalone/next-output/server/app/api/entry/delete-bulk/route.js.nft.json +1 -1
  32. package/dist/standalone/next-output/server/app/api/entry/merge/route/app-paths-manifest.json +3 -0
  33. package/dist/standalone/next-output/server/app/api/entry/merge/route/build-manifest.json +9 -0
  34. package/dist/standalone/next-output/server/app/api/entry/merge/route/server-reference-manifest.json +4 -0
  35. package/dist/standalone/next-output/server/app/api/entry/merge/route.js +7 -0
  36. package/dist/standalone/next-output/server/app/api/entry/merge/route.js.nft.json +1 -0
  37. package/dist/standalone/next-output/server/app/api/entry/merge/route_client-reference-manifest.js +3 -0
  38. package/dist/standalone/next-output/server/app/api/entry/move/route.js +1 -1
  39. package/dist/standalone/next-output/server/app/api/entry/move/route.js.nft.json +1 -1
  40. package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js +1 -1
  41. package/dist/standalone/next-output/server/app/api/entry/move-bulk/route.js.nft.json +1 -1
  42. package/dist/standalone/next-output/server/app/api/entry/route.js +2 -2
  43. package/dist/standalone/next-output/server/app/api/entry/route.js.nft.json +1 -1
  44. package/dist/standalone/next-output/server/app/api/entry/split/route/app-paths-manifest.json +3 -0
  45. package/dist/standalone/next-output/server/app/api/entry/split/route/build-manifest.json +9 -0
  46. package/dist/standalone/next-output/server/app/api/entry/split/route/server-reference-manifest.json +4 -0
  47. package/dist/standalone/next-output/server/app/api/entry/split/route.js +8 -0
  48. package/dist/standalone/next-output/server/app/api/entry/split/route.js.nft.json +1 -0
  49. package/dist/standalone/next-output/server/app/api/entry/split/route_client-reference-manifest.js +3 -0
  50. package/dist/standalone/next-output/server/app/api/focus-nudges/status/route.js +1 -1
  51. package/dist/standalone/next-output/server/app/api/focus-nudges/status/route.js.nft.json +1 -1
  52. package/dist/standalone/next-output/server/app/api/in/route.js +1 -1
  53. package/dist/standalone/next-output/server/app/api/in/route.js.nft.json +1 -1
  54. package/dist/standalone/next-output/server/app/api/note/route.js +1 -1
  55. package/dist/standalone/next-output/server/app/api/note/route.js.nft.json +1 -1
  56. package/dist/standalone/next-output/server/app/api/out/route.js +2 -2
  57. package/dist/standalone/next-output/server/app/api/out/route.js.nft.json +1 -1
  58. package/dist/standalone/next-output/server/app/api/sheet/active/route.js +1 -1
  59. package/dist/standalone/next-output/server/app/api/sheet/active/route.js.nft.json +1 -1
  60. package/dist/standalone/next-output/server/app/api/sheet/route.js +1 -1
  61. package/dist/standalone/next-output/server/app/api/sheet/route.js.nft.json +1 -1
  62. package/dist/standalone/next-output/server/app/api/state/route.js +1 -1
  63. package/dist/standalone/next-output/server/app/api/state/route.js.nft.json +1 -1
  64. package/dist/standalone/next-output/server/app/api/sync/import/route.js +1 -1
  65. package/dist/standalone/next-output/server/app/api/sync/import/route.js.nft.json +1 -1
  66. package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js +1 -1
  67. package/dist/standalone/next-output/server/app/api/sync/merge-on-load/route.js.nft.json +1 -1
  68. package/dist/standalone/next-output/server/app/api/sync/pull/route.js +1 -1
  69. package/dist/standalone/next-output/server/app/api/sync/pull/route.js.nft.json +1 -1
  70. package/dist/standalone/next-output/server/app/api/sync/push/route.js +1 -1
  71. package/dist/standalone/next-output/server/app/api/sync/push/route.js.nft.json +1 -1
  72. package/dist/standalone/next-output/server/app/api/tags/route.js +1 -1
  73. package/dist/standalone/next-output/server/app/api/tags/route.js.nft.json +1 -1
  74. package/dist/standalone/next-output/server/app/login/page/build-manifest.json +2 -2
  75. package/dist/standalone/next-output/server/app/login/page.js +1 -2
  76. package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
  77. package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
  78. package/dist/standalone/next-output/server/app/offline/page/build-manifest.json +2 -2
  79. package/dist/standalone/next-output/server/app/offline/page.js +1 -2
  80. package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -1
  81. package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +1 -1
  82. package/dist/standalone/next-output/server/app/page/build-manifest.json +2 -2
  83. package/dist/standalone/next-output/server/app/page.js +2 -3
  84. package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
  85. package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
  86. package/dist/standalone/next-output/server/app/pomodoro/page/build-manifest.json +2 -2
  87. package/dist/standalone/next-output/server/app/pomodoro/page.js +2 -3
  88. package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -1
  89. package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +1 -1
  90. package/dist/standalone/next-output/server/app/register/page/build-manifest.json +2 -2
  91. package/dist/standalone/next-output/server/app/register/page.js +1 -2
  92. package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
  93. package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
  94. package/dist/standalone/next-output/server/app/reporting/page/build-manifest.json +2 -2
  95. package/dist/standalone/next-output/server/app/reporting/page.js +2 -3
  96. package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
  97. package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
  98. package/dist/standalone/next-output/server/app/search/page/app-paths-manifest.json +3 -0
  99. package/dist/standalone/next-output/server/app/search/page/build-manifest.json +17 -0
  100. package/dist/standalone/next-output/server/app/search/page/next-font-manifest.json +11 -0
  101. package/dist/standalone/next-output/server/app/search/page/react-loadable-manifest.json +1 -0
  102. package/dist/standalone/next-output/server/app/search/page/server-reference-manifest.json +4 -0
  103. package/dist/standalone/next-output/server/app/search/page.js +16 -0
  104. package/dist/standalone/next-output/server/app/search/page.js.nft.json +1 -0
  105. package/dist/standalone/next-output/server/app/search/page_client-reference-manifest.js +3 -0
  106. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page/build-manifest.json +2 -2
  107. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js +1 -2
  108. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -1
  109. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +1 -1
  110. package/dist/standalone/next-output/server/app/settings/cloud-sync/page/build-manifest.json +2 -2
  111. package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js +1 -2
  112. package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
  113. package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
  114. package/dist/standalone/next-output/server/app/settings/data/page/build-manifest.json +2 -2
  115. package/dist/standalone/next-output/server/app/settings/data/page.js +2 -3
  116. package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
  117. package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
  118. package/dist/standalone/next-output/server/app/settings/display/page/build-manifest.json +2 -2
  119. package/dist/standalone/next-output/server/app/settings/display/page.js +1 -2
  120. package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
  121. package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
  122. package/dist/standalone/next-output/server/app/settings/goals/page/build-manifest.json +2 -2
  123. package/dist/standalone/next-output/server/app/settings/goals/page.js +2 -3
  124. package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -1
  125. package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +1 -1
  126. package/dist/standalone/next-output/server/app/settings/notifications/page/build-manifest.json +2 -2
  127. package/dist/standalone/next-output/server/app/settings/notifications/page.js +1 -2
  128. package/dist/standalone/next-output/server/app/settings/notifications/page.js.nft.json +1 -1
  129. package/dist/standalone/next-output/server/app/settings/notifications/page_client-reference-manifest.js +1 -1
  130. package/dist/standalone/next-output/server/app/settings/page/build-manifest.json +2 -2
  131. package/dist/standalone/next-output/server/app/settings/page.js +2 -3
  132. package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
  133. package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
  134. package/dist/standalone/next-output/server/app/settings/pomodoro/page/build-manifest.json +2 -2
  135. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js +2 -3
  136. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -1
  137. package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +1 -1
  138. package/dist/standalone/next-output/server/app/settings/quick-actions/page/build-manifest.json +2 -2
  139. package/dist/standalone/next-output/server/app/settings/quick-actions/page.js +1 -2
  140. package/dist/standalone/next-output/server/app/settings/quick-actions/page.js.nft.json +1 -1
  141. package/dist/standalone/next-output/server/app/settings/quick-actions/page_client-reference-manifest.js +1 -1
  142. package/dist/standalone/next-output/server/app/settings/tags/page/build-manifest.json +2 -2
  143. package/dist/standalone/next-output/server/app/settings/tags/page.js +2 -3
  144. package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
  145. package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
  146. package/dist/standalone/next-output/server/app/sheets/page/build-manifest.json +2 -2
  147. package/dist/standalone/next-output/server/app/sheets/page.js +2 -3
  148. package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
  149. package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
  150. package/dist/standalone/next-output/server/app/today/page/build-manifest.json +2 -2
  151. package/dist/standalone/next-output/server/app/today/page.js +2 -3
  152. package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
  153. package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
  154. package/dist/standalone/next-output/server/app-paths-manifest.json +5 -0
  155. package/dist/standalone/next-output/server/chunks/0z~i_next_dist_esm_build_templates_app-route_0~jv_po.js +3 -0
  156. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0ixkum3._.js → [root-of-the-server]__01ng47y._.js} +2 -2
  157. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0.ztg_g._.js → [root-of-the-server]__02bnr5q._.js} +2 -2
  158. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0daa86i._.js +3 -0
  159. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0hwik-5._.js +3 -0
  160. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0lbu8mm._.js +3 -0
  161. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0n.~.zo._.js +3 -0
  162. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0n~maxn._.js +3 -0
  163. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0pave79._.js +3 -0
  164. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0qj~x3r._.js +3 -0
  165. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0skolig._.js +3 -0
  166. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0traxfq._.js +3 -0
  167. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0u_4s37._.js +3 -0
  168. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0qxlpdo._.js → [root-of-the-server]__0vivr1t._.js} +2 -2
  169. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0vjnznw._.js +3 -0
  170. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__01dpndl._.js → [root-of-the-server]__0wp5dks._.js} +2 -2
  171. package/dist/standalone/next-output/server/chunks/{[root-of-the-server]__0g~~yai._.js → [root-of-the-server]__0~_od9c._.js} +2 -2
  172. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0~gka7i._.js +3 -0
  173. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0~zviro._.js +1 -1
  174. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__13y14r6._.js +3 -0
  175. package/dist/standalone/next-output/server/chunks/{_0y.amf.._.js → _009-tpl._.js} +2 -2
  176. package/dist/standalone/next-output/server/chunks/_0p0-odp._.js +3 -0
  177. package/dist/standalone/next-output/server/chunks/{_0vzosja._.js → _0rz1whw._.js} +2 -2
  178. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_command-palette_route_actions_0n5r28j.js +3 -0
  179. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entries_search_route_actions_09m9ljm.js +3 -0
  180. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_merge_route_actions_047yt1x.js +3 -0
  181. package/dist/standalone/next-output/server/chunks/_next-internal_server_app_api_entry_split_route_actions_0g-iltq.js +3 -0
  182. package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_04bpslp._.js +1 -1
  183. package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0huho7_.js +4 -0
  184. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__052~wmx._.js +1 -1
  185. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__07_7oid._.js +3 -0
  186. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0x6yv3u._.js → [root-of-the-server]__0c786vx._.js} +2 -2
  187. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0gi2idc._.js → [root-of-the-server]__0d6wmgd._.js} +2 -2
  188. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0d9ak_~._.js +3 -0
  189. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0d~vgg9._.js +3 -0
  190. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0fzz02j._.js +3 -0
  191. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0hpcspt._.js +3 -0
  192. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0kp.3u5._.js +3 -0
  193. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0yrs18n._.js → [root-of-the-server]__0laah33._.js} +2 -2
  194. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0n8s9zq._.js +1 -1
  195. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0_wxrlk._.js → [root-of-the-server]__0teulir._.js} +2 -2
  196. package/dist/standalone/next-output/server/chunks/ssr/{[root-of-the-server]__0hx9602._.js → [root-of-the-server]__0xp50ux._.js} +2 -2
  197. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0yz-q3-._.js +3 -0
  198. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__113s7hk._.js +3 -0
  199. package/dist/standalone/next-output/server/chunks/ssr/_002dssm._.js +1 -1
  200. package/dist/standalone/next-output/server/chunks/ssr/_036rv.y._.js +3 -0
  201. package/dist/standalone/next-output/server/chunks/ssr/{_0_k2414._.js → _04.8jwp._.js} +2 -2
  202. package/dist/standalone/next-output/server/chunks/ssr/_040_y99._.js +3 -0
  203. package/dist/standalone/next-output/server/chunks/ssr/_07p~0bg._.js +1 -1
  204. package/dist/standalone/next-output/server/chunks/ssr/_0dxq_sx._.js +3 -0
  205. package/dist/standalone/next-output/server/chunks/ssr/_0fzq9xc._.js +3 -0
  206. package/dist/standalone/next-output/server/chunks/ssr/_0hcz.gb._.js +3 -0
  207. package/dist/standalone/next-output/server/chunks/ssr/_0hy_8.b._.js +3 -0
  208. package/dist/standalone/next-output/server/chunks/ssr/_0lhrvkv._.js +3 -0
  209. package/dist/standalone/next-output/server/chunks/ssr/_0m.iebm._.js +1 -1
  210. package/dist/standalone/next-output/server/chunks/ssr/_0nnp~ae._.js +1 -1
  211. package/dist/standalone/next-output/server/chunks/ssr/_0ntfdc9._.js +3 -0
  212. package/dist/standalone/next-output/server/chunks/ssr/_0p5_u-y._.js +3 -0
  213. package/dist/standalone/next-output/server/chunks/ssr/_0q214m8._.js +3 -0
  214. package/dist/standalone/next-output/server/chunks/ssr/_0q~8_bm._.js +1 -1
  215. package/dist/standalone/next-output/server/chunks/ssr/_0rv4ope._.js +3 -0
  216. package/dist/standalone/next-output/server/chunks/ssr/_0s_1q6-._.js +3 -0
  217. package/dist/standalone/next-output/server/chunks/ssr/_0s_yzxz._.js +3 -0
  218. package/dist/standalone/next-output/server/chunks/ssr/_0syjj1b._.js +3 -0
  219. package/dist/standalone/next-output/server/chunks/ssr/_0v9kigy._.js +1 -1
  220. package/dist/standalone/next-output/server/chunks/ssr/_0woiueg._.js +3 -0
  221. package/dist/standalone/next-output/server/chunks/ssr/_0zfyg1r._.js +3 -0
  222. package/dist/standalone/next-output/server/chunks/ssr/_0zgllyb._.js +3 -0
  223. package/dist/standalone/next-output/server/chunks/ssr/{_088~qfj._.js → _10~dvb4._.js} +3 -3
  224. package/dist/standalone/next-output/server/chunks/ssr/_11je2nt._.js +3 -0
  225. package/dist/standalone/next-output/server/chunks/ssr/_1218olc._.js +3 -0
  226. package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_search_page_actions_0koh-tf.js +3 -0
  227. package/dist/standalone/next-output/server/chunks/ssr/components_0isp.qn._.js +3 -0
  228. package/dist/standalone/next-output/server/chunks/ssr/components_0rm~268._.js +1 -1
  229. package/dist/standalone/next-output/server/chunks/ssr/components_0s502iu._.js +3 -0
  230. package/dist/standalone/next-output/server/chunks/ssr/components_reporting-view_tsx_0-0ofcv._.js +1 -1
  231. package/dist/standalone/next-output/server/chunks/ssr/components_supabase-auth-form_tsx_0s9lt-1._.js +3 -0
  232. package/dist/standalone/next-output/server/chunks/ssr/components_today-focus-view_tsx_0~eac-w._.js +1 -1
  233. package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js +1 -1
  234. package/dist/standalone/next-output/server/middleware-build-manifest.js +5 -5
  235. package/dist/standalone/next-output/server/middleware-manifest.json +1 -1
  236. package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
  237. package/dist/standalone/next-output/server/next-font-manifest.json +4 -0
  238. package/dist/standalone/next-output/server/pages/500.html +1 -1
  239. package/dist/standalone/next-output/static/chunks/0-pivfzfhyz.5.js +1 -0
  240. package/dist/standalone/next-output/static/chunks/0.e7_ejd.-kzx.js +1 -0
  241. package/dist/standalone/next-output/static/chunks/{0x9s1xcq69ppx.js → 005x4jqipr75n.js} +5 -5
  242. package/dist/standalone/next-output/static/chunks/02~oo04e0po4k.css +3 -0
  243. package/dist/standalone/next-output/static/chunks/033lk~e30imyc.js +1 -0
  244. package/dist/standalone/next-output/static/chunks/03dh~3.gq~kw7.js +1 -0
  245. package/dist/standalone/next-output/static/chunks/04d2c_i-luh3o.js +1 -0
  246. package/dist/standalone/next-output/static/chunks/08sdj449boiec.js +1 -0
  247. package/dist/standalone/next-output/static/chunks/09u_29en-yaxy.js +1 -0
  248. package/dist/standalone/next-output/static/chunks/0aru5x_.qsjc3.js +1 -0
  249. package/dist/standalone/next-output/static/chunks/0c0i5ey6h8qet.js +1 -0
  250. package/dist/standalone/next-output/static/chunks/0c2088mpz.z.3.js +1 -0
  251. package/dist/standalone/next-output/static/chunks/0e7vf6ybvzpet.js +1 -0
  252. package/dist/standalone/next-output/static/chunks/0jn1~13s4qy3c.js +1 -0
  253. package/dist/standalone/next-output/static/chunks/0jwrz3zhj9oat.js +1 -0
  254. package/dist/standalone/next-output/static/chunks/0kehy4rq7thp9.js +1 -0
  255. package/dist/standalone/next-output/static/chunks/0mcmtes_owmfo.js +1 -0
  256. package/dist/standalone/next-output/static/chunks/0njpt~3f0nhto.js +1 -0
  257. package/dist/standalone/next-output/static/chunks/0pq_8wz65_8e..js +1 -0
  258. package/dist/standalone/next-output/static/chunks/0s5i31vj2y6n7.js +1 -0
  259. package/dist/standalone/next-output/static/chunks/0s_kkoslz7uoy.js +1 -0
  260. package/dist/standalone/next-output/static/chunks/0tee7--l8~1jx.js +1 -0
  261. package/dist/standalone/next-output/static/chunks/0xmqo9jexa_hl.js +1 -0
  262. package/dist/standalone/next-output/static/chunks/{0ztw.xdr4egi9.js → 0y7vk2q__th4g.js} +2 -2
  263. package/dist/standalone/next-output/static/chunks/151m05291h.pl.js +1 -0
  264. package/dist/standalone/next-output/static/chunks/175d60.wup0de.js +1 -0
  265. package/dist/standalone/next-output/static/chunks/17gch824k4dm8.js +1 -0
  266. package/dist/standalone/next-output/static/chunks/{turbopack-09e2mm19twlrw.js → turbopack-01utszc95mtf1.js} +1 -1
  267. package/dist/standalone/package.json +13 -4
  268. package/dist/standalone/public/sw.js +1 -0
  269. package/package.json +13 -4
  270. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0-xbdkv._.js +0 -3
  271. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__00_xlkl._.js +0 -3
  272. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__02io6cv._.js +0 -3
  273. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__07sy349._.js +0 -3
  274. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0l9xtqh._.js +0 -3
  275. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0o1mjxc._.js +0 -3
  276. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0s7i732._.js +0 -3
  277. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0wtdkb3._.js +0 -3
  278. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__13n2uo8._.js +0 -3
  279. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0-0rjzr._.js +0 -3
  280. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__01xqr3d._.js +0 -3
  281. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0_b2z9m._.js +0 -3
  282. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0bowsf1._.js +0 -3
  283. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0dvku3t._.js +0 -3
  284. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0k~hq1g._.js +0 -3
  285. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0wtu388._.js +0 -3
  286. package/dist/standalone/next-output/server/chunks/ssr/_00aklen._.js +0 -3
  287. package/dist/standalone/next-output/server/chunks/ssr/_00ic3j9._.js +0 -3
  288. package/dist/standalone/next-output/server/chunks/ssr/_00x~ete._.js +0 -3
  289. package/dist/standalone/next-output/server/chunks/ssr/_08qe8j9._.js +0 -3
  290. package/dist/standalone/next-output/server/chunks/ssr/_0_aptb7._.js +0 -3
  291. package/dist/standalone/next-output/server/chunks/ssr/_0axgv9-._.js +0 -3
  292. package/dist/standalone/next-output/server/chunks/ssr/_0c0txs~._.js +0 -3
  293. package/dist/standalone/next-output/server/chunks/ssr/_0cm4hy2._.js +0 -3
  294. package/dist/standalone/next-output/server/chunks/ssr/_0cxg26n._.js +0 -3
  295. package/dist/standalone/next-output/server/chunks/ssr/_0l6-7m4._.js +0 -3
  296. package/dist/standalone/next-output/server/chunks/ssr/_0s1f~0y._.js +0 -3
  297. package/dist/standalone/next-output/server/chunks/ssr/_0xrc5.~._.js +0 -3
  298. package/dist/standalone/next-output/server/chunks/ssr/_0y3ypyx._.js +0 -3
  299. package/dist/standalone/next-output/server/chunks/ssr/_0ycs85o._.js +0 -3
  300. package/dist/standalone/next-output/server/chunks/ssr/_0zk9gtm._.js +0 -3
  301. package/dist/standalone/next-output/server/chunks/ssr/_13crob-._.js +0 -3
  302. package/dist/standalone/next-output/server/chunks/ssr/_13y76jr._.js +0 -3
  303. package/dist/standalone/next-output/server/chunks/ssr/lib_0c0z4q-._.js +0 -3
  304. package/dist/standalone/next-output/static/chunks/0.4obx1-sv46-.js +0 -1
  305. package/dist/standalone/next-output/static/chunks/029pvmqxn_t4z.js +0 -1
  306. package/dist/standalone/next-output/static/chunks/04~.lbegcwd41.js +0 -1
  307. package/dist/standalone/next-output/static/chunks/05tg.ske01w0a.js +0 -1
  308. package/dist/standalone/next-output/static/chunks/06xf_oh5oqbs2.js +0 -1
  309. package/dist/standalone/next-output/static/chunks/09acxdggb87~w.js +0 -1
  310. package/dist/standalone/next-output/static/chunks/09tjbwcc~3p_e.js +0 -1
  311. package/dist/standalone/next-output/static/chunks/0ate7k1rcitu0.js +0 -1
  312. package/dist/standalone/next-output/static/chunks/0crn_fc6.6569.js +0 -1
  313. package/dist/standalone/next-output/static/chunks/0fkr5kz7p1r5l.js +0 -1
  314. package/dist/standalone/next-output/static/chunks/0lhj2p9.4g20~.js +0 -1
  315. package/dist/standalone/next-output/static/chunks/0o4zvrm3q.9k3.js +0 -1
  316. package/dist/standalone/next-output/static/chunks/0pqilbd~jphqs.css +0 -3
  317. package/dist/standalone/next-output/static/chunks/0q05k1wfzh4_a.js +0 -1
  318. package/dist/standalone/next-output/static/chunks/0vov8ngx9~8m2.js +0 -1
  319. package/dist/standalone/next-output/static/chunks/0watkjb-fw0vn.js +0 -1
  320. package/dist/standalone/next-output/static/chunks/0x5_m1_cuacap.js +0 -1
  321. package/dist/standalone/next-output/static/chunks/0xj4dodycy1oc.js +0 -1
  322. package/dist/standalone/next-output/static/chunks/0yi4m~~80yeqj.js +0 -1
  323. package/dist/standalone/next-output/static/chunks/12eaief5vtso9.js +0 -1
  324. package/dist/standalone/next-output/static/chunks/13-nw2q_c_9mk.js +0 -1
  325. package/dist/standalone/next-output/static/chunks/14jtaz5s.4ih1.js +0 -1
  326. /package/dist/standalone/next-output/static/{gS32e4Tv_70ot1IWBJddE → o0yrmO-jZI10Gicr4syI_}/_buildManifest.js +0 -0
  327. /package/dist/standalone/next-output/static/{gS32e4Tv_70ot1IWBJddE → o0yrmO-jZI10Gicr4syI_}/_clientMiddlewareManifest.js +0 -0
  328. /package/dist/standalone/next-output/static/{gS32e4Tv_70ot1IWBJddE → o0yrmO-jZI10Gicr4syI_}/_ssgManifest.js +0 -0
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:3,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=void 0===b.version?1:b.version;if(d>3||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<3;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},4813,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341),e=a.i(40388),f=a.i(67511),g=a.i(92398),h=a.i(26351),i=a.i(6931);async function j(a,b=d.DB_PATH){let e=JSON.stringify((0,i.convert_db_to_json)(a));try{await c.promises.writeFile(b,e)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function k(a=d.DB_PATH){let i,l=b.default.dirname(a);await (0,f.ensure_dir_exists)(l);try{await c.promises.access(a)}catch{let b=(0,g.gen_db)();return await j(b,a),b}let m=await c.promises.readFile(a,"utf-8");try{i=JSON.parse(m)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let n=(0,h.migrate_json_db)(i);i=n.json_db;let o=(0,e.convert_json_db)(i);return n.did_migrate&&await j(o,a),o}async function l(a){return k(a)}a.s(["write_local_db",0,j],23761),a.s(["read_db",0,l],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},84245,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx <module evaluation>","TrackerTopbar")},43680,a=>{"use strict";a.s(["TrackerTopbar",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerTopbar() from the server but TrackerTopbar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-topbar.tsx","TrackerTopbar")},54675,a=>{"use strict";a.i(84245);var b=a.i(43680);a.n(b)},85168,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx <module evaluation>","SettingsNav")},28678,a=>{"use strict";a.s(["SettingsNav",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SettingsNav() from the server but SettingsNav is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/settings-nav.tsx","SettingsNav")},9615,a=>{"use strict";a.i(85168);var b=a.i(28678);a.n(b)},5894,a=>{"use strict";var b=a.i(46193),c=a.i(9615),d=a.i(54675);a.s(["SettingsPageLayout",0,function({breadcrumb:a,title:e,description:f,children:g}){return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.TrackerTopbar,{breadcrumb:a}),(0,b.jsxs)("main",{className:"mx-auto grid w-full max-w-[1120px] grid-cols-[minmax(12rem,16rem)_minmax(0,1fr)] gap-4 px-4 pb-10 pt-5 sm:gap-6 sm:px-5 sm:pt-6 max-[860px]:grid-cols-1",children:[(0,b.jsxs)("aside",{className:"flex flex-col gap-2",children:[(0,b.jsx)("h2",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Settings"}),(0,b.jsx)(c.SettingsNav,{})]}),(0,b.jsxs)("section",{className:"flex min-w-0 flex-col gap-4",children:[(0,b.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,b.jsx)("h1",{className:"m-0 text-[1.35rem] font-[650] tracking-tight",children:e}),void 0!==f?(0,b.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:f}):null]}),g]})]})]})}])},4200,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(41445);a.n(d("[project]/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/app-dir/link.js <module evaluation>"))},26530,(a,b,c)=>{let{createClientModuleProxy:d}=a.r(41445);a.n(d("[project]/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/app-dir/link.js"))},63103,a=>{"use strict";a.i(4200);var b=a.i(26530);a.n(b)},85779,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={default:function(){return i},useLinkStatus:function(){return h.useLinkStatus}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(54508),g=a.r(46193),h=f._(a.r(63103));function i(a){let b=a.legacyBehavior,c="string"==typeof a.children||"number"==typeof a.children||"string"==typeof a.children?.type,d=a.children?.type?.$$typeof===Symbol.for("react.client.reference");return!b||c||d||(a.children?.type?.$$typeof===Symbol.for("react.lazy")?console.error("Using a Lazy Component as a direct child of `<Link legacyBehavior>` from a Server Component is not supported. If you need legacyBehavior, wrap your Lazy Component in a Client Component that renders the Link's `<a>` tag."):console.error("Using a Server Component as a direct child of `<Link legacyBehavior>` is not supported. If you need legacyBehavior, wrap your Server Component in a Client Component that renders the Link's `<a>` tag.")),(0,g.jsx)(h.default,{...a})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},75021,a=>{"use strict";a.s(["BackupRestoreSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call BackupRestoreSetting() from the server but BackupRestoreSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/backup-restore-setting.tsx <module evaluation>","BackupRestoreSetting")},46679,a=>{"use strict";a.s(["BackupRestoreSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call BackupRestoreSetting() from the server but BackupRestoreSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/backup-restore-setting.tsx","BackupRestoreSetting")},20349,a=>{"use strict";a.i(75021);var b=a.i(46679);a.n(b)},48262,a=>{"use strict";a.s(["DbExportSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DbExportSetting() from the server but DbExportSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/db-export-setting.tsx <module evaluation>","DbExportSetting")},12266,a=>{"use strict";a.s(["DbExportSetting",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DbExportSetting() from the server but DbExportSetting is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/db-export-setting.tsx","DbExportSetting")},29373,a=>{"use strict";a.i(48262);var b=a.i(12266);a.n(b)},38876,a=>{"use strict";var b=a.i(46193),c=a.i(85779),d=a.i(20349),e=a.i(29373),f=a.i(5894);function g({db_path:a,db:h,sheet_names:i,tag_names:j}){return(0,b.jsx)(f.SettingsPageLayout,{breadcrumb:{current:"Data & backup",parent:{label:"Settings",href:"/settings"}},title:"Data & backup",description:"Database backups and bulk operations on stored entries.",children:(0,b.jsxs)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"Data settings",children:[(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(d.BackupRestoreSetting,{db_path:a})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsx)(e.DbExportSetting,{db:h,sheet_names:i,tag_names:j})}),(0,b.jsx)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:(0,b.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Tag management"}),(0,b.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Rename or merge @tags used across all entries."}),(0,b.jsx)(c.default,{className:"mt-2 self-start text-[0.85rem] font-semibold text-accent no-underline hover:underline",href:"/settings/tags",children:"Manage tags"})]})})]})})}var h=a.i(23750),i=a.i(6931),j=a.i(4813),k=a.i(60197);async function l(){let a=await (0,j.read_db)(),c=(0,i.convert_db_to_json)(a),d=await (0,k.resolve_db_path_label)(),e=a.sheets.map(a=>a.name).sort((a,b)=>a.localeCompare(b)),f=(0,h.collect_known_tags)(a);return(0,b.jsx)(g,{db_path:d,db:c,sheet_names:e,tag_names:f})}a.s(["default",0,l],38876)},12678,a=>{a.n(a.i(38876))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0hpcspt._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[2474,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"InvariantError",{enumerable:!0,get:function(){return d}});class d extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}},35394,a=>{"use strict";a.s(["is_supabase_configured",0,function(){return("https://ctruizaqyeyidujmtxhc.supabase.co".trim()??"").length>0&&("sb_publishable_gTYHeWoWIPPW3SIC4cYaXw_ux7UL_Jb".trim()??"").length>0}])},55120,a=>{a.v({className:"geist_f53a3a98-module__E6rLHq__className",variable:"geist_f53a3a98-module__E6rLHq__variable"})},91129,a=>{a.v({className:"geist_mono_a0a08e0-module__UZhpWW__className",variable:"geist_mono_a0a08e0-module__UZhpWW__variable"})},62497,a=>{"use strict";a.s(["AppProviders",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call AppProviders() from the server but AppProviders is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/app-providers.tsx <module evaluation>","AppProviders")},98596,a=>{"use strict";a.s(["AppProviders",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call AppProviders() from the server but AppProviders is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/app-providers.tsx","AppProviders")},14631,a=>{"use strict";a.i(62497);var b=a.i(98596);a.n(b)},4684,a=>{"use strict";a.s(["DocumentPreferencesInit",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DocumentPreferencesInit() from the server but DocumentPreferencesInit is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/document-preferences-init.tsx <module evaluation>","DocumentPreferencesInit")},8602,a=>{"use strict";a.s(["DocumentPreferencesInit",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call DocumentPreferencesInit() from the server but DocumentPreferencesInit is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/document-preferences-init.tsx","DocumentPreferencesInit")},41505,a=>{"use strict";a.i(4684);var b=a.i(8602);a.n(b)},93359,a=>{"use strict";a.s(["PwaRegister",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PwaRegister() from the server but PwaRegister is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pwa-register.tsx <module evaluation>","PwaRegister")},33610,a=>{"use strict";a.s(["PwaRegister",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PwaRegister() from the server but PwaRegister is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pwa-register.tsx","PwaRegister")},22650,a=>{"use strict";a.i(93359);var b=a.i(33610);a.n(b)},80351,a=>{"use strict";a.s(["ThemeModeSystemListener",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ThemeModeSystemListener() from the server but ThemeModeSystemListener is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/theme-mode-system-listener.tsx <module evaluation>","ThemeModeSystemListener")},68139,a=>{"use strict";a.s(["ThemeModeSystemListener",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call ThemeModeSystemListener() from the server but ThemeModeSystemListener is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/theme-mode-system-listener.tsx","ThemeModeSystemListener")},3905,a=>{"use strict";a.i(80351);var b=a.i(68139);a.n(b)},18073,a=>{"use strict";a.s(["UiPreferencesDocumentSync",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call UiPreferencesDocumentSync() from the server but UiPreferencesDocumentSync is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui-preferences-document-sync.tsx <module evaluation>","UiPreferencesDocumentSync")},45471,a=>{"use strict";a.s(["UiPreferencesDocumentSync",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call UiPreferencesDocumentSync() from the server but UiPreferencesDocumentSync is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/ui-preferences-document-sync.tsx","UiPreferencesDocumentSync")},90689,a=>{"use strict";a.i(18073);var b=a.i(45471);a.n(b)},33290,a=>{"use strict";var b=a.i(46193),c=a.i(55120);let d={className:c.default.className,style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(91129);let f={className:e.default.className,style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(14631),h=a.i(41505),i=a.i(22650),j=a.i(3905),k=a.i(90689),l=a.i(40035);let m="default",n=["default","midnight","warm","ocean","forest","contrast","sunset","lavender","rose","slate","nord","dracula"],o={teal:"default",blue:"ocean",violet:"midnight",rose:"warm",amber:"warm",emerald:"forest"};a.i(35394);let p=function(a){let{default_value:b,is_valid:c,storage_key:d}=a,e=new Set,f=()=>b;return{storage_key:d,default_value:b,is_valid:c,read:f,write:a=>{try{window.localStorage.setItem(d,a)}catch{}},subscribe:a=>(e.add(a),()=>{e.delete(a)}),notify:()=>{e.forEach(a=>{a()})},get_snapshot:f,get_server_snapshot:()=>b}}({storage_key:"super-time-tracker-theme-mode",default_value:"system",is_valid:a=>"light"===a||"dark"===a||"system"===a});async function q(){var a;let b=await (0,l.cookies)(),c="light"===(await (0,l.headers)()).get("sec-ch-prefers-color-scheme"),d=b.get("stt-palette")?.value,e=function(a,b){if(void 0!==a&&n.includes(a))return a;if(void 0!==b){let a=o[b];if(void 0!==a)return a}return m}(d,void 0),f=b.get("stt-compact-lists")?.value==="true",g=void 0===(a=b.get("stt-theme-mode")?.value)?null:p.is_valid(a)?a:null;if(null!==g)return{theme:function(a,b){return"system"===a?b?"light":"dark":"light"===a||"dark"===a?a:"dark"}(g,c),palette:e,compact_lists:f};let h=b.get("stt-theme")?.value;return"light"===h||"dark"===h?{theme:h,palette:e,compact_lists:f}:{theme:c?"light":"dark",palette:void 0===d?m:e,compact_lists:f}}async function r({children:a}){let{theme:c,palette:e,compact_lists:l}=await q();return(0,b.jsx)("html",{lang:"en",className:`${d.variable} ${f.variable} h-full antialiased`,"data-theme":c,"data-palette":e,"data-compact-lists":l?"true":"false",suppressHydrationWarning:!0,children:(0,b.jsxs)("body",{className:"min-h-full font-sans transition-[background-color,color] duration-200",children:[(0,b.jsx)(h.DocumentPreferencesInit,{}),(0,b.jsx)(i.PwaRegister,{}),(0,b.jsx)(j.ThemeModeSystemListener,{}),(0,b.jsx)(k.UiPreferencesDocumentSync,{}),(0,b.jsx)(g.AppProviders,{children:a})]})})}a.s(["default",0,r,"metadata",0,{title:"super-time-tracker",description:"Web UI for the super-time-tracker CLI time sheets",manifest:"/manifest.webmanifest",icons:{icon:[{url:"/icons/favicon.ico",type:"image/x-icon"},{url:"/icons/favicon-16x16.png",type:"image/png",sizes:"16x16"},{url:"/icons/favicon-32x32.png",type:"image/png",sizes:"32x32"},{url:"/icons/android-chrome-192x192.png",type:"image/png",sizes:"192x192"},{url:"/icons/android-chrome-512x512.png",type:"image/png",sizes:"512x512"}],apple:[{url:"/icons/apple-touch-icon.png",type:"image/png",sizes:"180x180"}]},appleWebApp:{capable:!0,title:"super-time-tracker",statusBarStyle:"default"}},"viewport",0,{themeColor:"#14b8a6"}],33290)},70864,a=>{a.n(a.i(33290))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0kp.3u5._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:3,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=void 0===b.version?1:b.version;if(d>3||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<3;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341),e=a.i(40388),f=a.i(67511),g=a.i(92398),h=a.i(26351),i=a.i(6931);async function j(a,b=d.DB_PATH){let e=JSON.stringify((0,i.convert_db_to_json)(a));try{await c.promises.writeFile(b,e)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function k(a=d.DB_PATH){let i,l=b.default.dirname(a);await (0,f.ensure_dir_exists)(l);try{await c.promises.access(a)}catch{let b=(0,g.gen_db)();return await j(b,a),b}let m=await c.promises.readFile(a,"utf-8");try{i=JSON.parse(m)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let n=(0,h.migrate_json_db)(i);i=n.json_db;let o=(0,e.convert_json_db)(i);return n.did_migrate&&await j(o,a),o}async function l(a){return k(a)}a.s(["write_local_db",0,j],23761),a.s(["read_db",0,l],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},28157,a=>{"use strict";a.s(["PomodoroSettingsView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PomodoroSettingsView() from the server but PomodoroSettingsView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pomodoro-settings-view.tsx <module evaluation>","PomodoroSettingsView")},7372,a=>{"use strict";a.s(["PomodoroSettingsView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PomodoroSettingsView() from the server but PomodoroSettingsView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pomodoro-settings-view.tsx","PomodoroSettingsView")},17330,a=>{"use strict";a.i(28157);var b=a.i(7372);a.n(b)},47420,a=>{"use strict";var b=a.i(46193),c=a.i(17330),d=a.i(23750),e=a.i(4813);async function f(){let a=await (0,e.read_db)(),f=(0,d.collect_known_tags)(a);return(0,b.jsx)(c.PomodoroSettingsView,{known_tags:f})}a.s(["default",0,f])},93954,a=>{a.n(a.i(47420))}];
1
+ module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:3,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=void 0===b.version?1:b.version;if(d>3||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<3;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341),e=a.i(40388),f=a.i(67511),g=a.i(92398),h=a.i(26351),i=a.i(6931);async function j(a,b=d.DB_PATH){let e=JSON.stringify((0,i.convert_db_to_json)(a));try{await c.promises.writeFile(b,e)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function k(a=d.DB_PATH){let i,l=b.default.dirname(a);await (0,f.ensure_dir_exists)(l);try{await c.promises.access(a)}catch{let b=(0,g.gen_db)();return await j(b,a),b}let m=await c.promises.readFile(a,"utf-8");try{i=JSON.parse(m)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let n=(0,h.migrate_json_db)(i);i=n.json_db;let o=(0,e.convert_json_db)(i);return n.did_migrate&&await j(o,a),o}async function l(a){return k(a)}a.s(["write_local_db",0,j],23761),a.s(["read_db",0,l],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},28157,a=>{"use strict";a.s(["PomodoroSettingsView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PomodoroSettingsView() from the server but PomodoroSettingsView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pomodoro-settings-view.tsx <module evaluation>","PomodoroSettingsView")},7372,a=>{"use strict";a.s(["PomodoroSettingsView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call PomodoroSettingsView() from the server but PomodoroSettingsView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/pomodoro-settings-view.tsx","PomodoroSettingsView")},17330,a=>{"use strict";a.i(28157);var b=a.i(7372);a.n(b)},47420,a=>{"use strict";var b=a.i(46193),c=a.i(17330),d=a.i(23750),e=a.i(4813);async function f(){let a=await (0,e.read_db)(),f=(0,d.collect_known_tags)(a);return(0,b.jsx)(c.PomodoroSettingsView,{known_tags:f})}a.s(["default",0,f])},93954,a=>{a.n(a.i(47420))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0yrs18n._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0laah33._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(a,b,c)=>{b.exports=a.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},80022,(a,b,c)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/cookie/");var a,c,d,e,f={};f.parse=function(b,c){if("string"!=typeof b)throw TypeError("argument str must be a string");for(var e={},f=b.split(d),g=(c||{}).decode||a,h=0;h<f.length;h++){var i=f[h],j=i.indexOf("=");if(!(j<0)){var k=i.substr(0,j).trim(),l=i.substr(++j,i.length).trim();'"'==l[0]&&(l=l.slice(1,-1)),void 0==e[k]&&(e[k]=function(a,b){try{return b(a)}catch(b){return a}}(l,g))}}return e},f.serialize=function(a,b,d){var f=d||{},g=f.encode||c;if("function"!=typeof g)throw TypeError("option encode is invalid");if(!e.test(a))throw TypeError("argument name is invalid");var h=g(b);if(h&&!e.test(h))throw TypeError("argument val is invalid");var i=a+"="+h;if(null!=f.maxAge){var j=f.maxAge-0;if(isNaN(j)||!isFinite(j))throw TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(j)}if(f.domain){if(!e.test(f.domain))throw TypeError("option domain is invalid");i+="; Domain="+f.domain}if(f.path){if(!e.test(f.path))throw TypeError("option path is invalid");i+="; Path="+f.path}if(f.expires){if("function"!=typeof f.expires.toUTCString)throw TypeError("option expires is invalid");i+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(i+="; HttpOnly"),f.secure&&(i+="; Secure"),f.sameSite)switch("string"==typeof f.sameSite?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return i},a=decodeURIComponent,c=encodeURIComponent,d=/; */,e=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,b.exports=f})()},95258,(a,b,c)=>{(()=>{"use strict";var a={56:a=>{a.exports=function(a,b){return"string"==typeof a?g(a):"number"==typeof a?f(a,b):null},a.exports.format=f,a.exports.parse=g;var b=/\B(?=(\d{3})+(?!\d))/g,c=/(?:\.0*|(\.[^0]+)0+)$/,d={b:1,kb:1024,mb:1048576,gb:0x40000000,tb:0x10000000000,pb:0x4000000000000},e=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function f(a,e){if(!Number.isFinite(a))return null;var f=Math.abs(a),g=e&&e.thousandsSeparator||"",h=e&&e.unitSeparator||"",i=e&&void 0!==e.decimalPlaces?e.decimalPlaces:2,j=!!(e&&e.fixedDecimals),k=e&&e.unit||"";k&&d[k.toLowerCase()]||(k=f>=d.pb?"PB":f>=d.tb?"TB":f>=d.gb?"GB":f>=d.mb?"MB":f>=d.kb?"KB":"B");var l=(a/d[k.toLowerCase()]).toFixed(i);return j||(l=l.replace(c,"$1")),g&&(l=l.split(".").map(function(a,c){return 0===c?a.replace(b,g):a}).join(".")),l+h+k}function g(a){if("number"==typeof a&&!isNaN(a))return a;if("string"!=typeof a)return null;var b,c=e.exec(a),f="b";return c?(b=parseFloat(c[1]),f=c[4].toLowerCase()):(b=parseInt(a,10),f="b"),Math.floor(d[f]*b)}}},c={};function d(b){var e=c[b];if(void 0!==e)return e.exports;var f=c[b]={exports:{}},g=!0;try{a[b](f,f.exports,d),g=!1}finally{g&&delete c[b]}return f.exports}d.ab="/ROOT/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/bytes/",b.exports=d(56)})()},14747,(a,b,c)=>{b.exports=a.x("path",()=>require("path"))},77657,a=>{"use strict";a.s(["isFullStringUrl",0,function(a){return/https?:\/\//.test(a)},"parseUrl",0,function(a){let b;try{b=new URL(a,"http://n")}catch{}return b}])},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},50713,(a,b,c)=>{"use strict";b.exports=a.r(18622)},46193,(a,b,c)=>{"use strict";b.exports=a.r(50713).vendored["react-rsc"].ReactJsxRuntime},41445,(a,b,c)=>{"use strict";b.exports=a.r(50713).vendored["react-rsc"].ReactServerDOMTurbopackServer},91973,(a,b,c)=>{"use strict";b.exports=a.r(50713).vendored["react-rsc"].React},4941,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={RequestCookies:()=>p,ResponseCookies:()=>q,parseCookie:()=>l,parseSetCookie:()=>m,stringifyCookie:()=>k};for(var j in i)d(h,j,{get:i[j],enumerable:!0});function k(a){var b;let c=["path"in a&&a.path&&`Path=${a.path}`,"expires"in a&&(a.expires||0===a.expires)&&`Expires=${("number"==typeof a.expires?new Date(a.expires):a.expires).toUTCString()}`,"maxAge"in a&&"number"==typeof a.maxAge&&`Max-Age=${a.maxAge}`,"domain"in a&&a.domain&&`Domain=${a.domain}`,"secure"in a&&a.secure&&"Secure","httpOnly"in a&&a.httpOnly&&"HttpOnly","sameSite"in a&&a.sameSite&&`SameSite=${a.sameSite}`,"partitioned"in a&&a.partitioned&&"Partitioned","priority"in a&&a.priority&&`Priority=${a.priority}`].filter(Boolean),d=`${a.name}=${encodeURIComponent(null!=(b=a.value)?b:"")}`;return 0===c.length?d:`${d}; ${c.join("; ")}`}function l(a){let b=new Map;for(let c of a.split(/; */)){if(!c)continue;let a=c.indexOf("=");if(-1===a){b.set(c,"true");continue}let[d,e]=[c.slice(0,a),c.slice(a+1)];try{b.set(d,decodeURIComponent(null!=e?e:"true"))}catch{}}return b}function m(a){if(!a)return;let[[b,c],...d]=l(a),{domain:e,expires:f,httponly:g,maxage:h,path:i,samesite:j,secure:k,partitioned:m,priority:p}=Object.fromEntries(d.map(([a,b])=>[a.toLowerCase().replace(/-/g,""),b]));{var q,r,s={name:b,value:decodeURIComponent(c),domain:e,...f&&{expires:new Date(f)},...g&&{httpOnly:!0},..."string"==typeof h&&{maxAge:Number(h)},path:i,...j&&{sameSite:n.includes(q=(q=j).toLowerCase())?q:void 0},...k&&{secure:!0},...p&&{priority:o.includes(r=(r=p).toLowerCase())?r:void 0},...m&&{partitioned:!0}};let a={};for(let b in s)s[b]&&(a[b]=s[b]);return a}}b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);var n=["strict","lax","none"],o=["low","medium","high"],p=class{constructor(a){this._parsed=new Map,this._headers=a;const b=a.get("cookie");if(b)for(const[a,c]of l(b))this._parsed.set(a,{name:a,value:c})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed);if(!a.length)return c.map(([a,b])=>b);let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(([a])=>a===d).map(([a,b])=>b)}has(a){return this._parsed.has(a)}set(...a){let[b,c]=1===a.length?[a[0].name,a[0].value]:a,d=this._parsed;return d.set(b,{name:b,value:c}),this._headers.set("cookie",Array.from(d).map(([a,b])=>k(b)).join("; ")),this}delete(a){let b=this._parsed,c=Array.isArray(a)?a.map(a=>b.delete(a)):b.delete(a);return this._headers.set("cookie",Array.from(b).map(([a,b])=>k(b)).join("; ")),c}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a=>`${a.name}=${encodeURIComponent(a.value)}`).join("; ")}},q=class{constructor(a){var b,c,d;this._parsed=new Map,this._headers=a;const e=null!=(d=null!=(c=null==(b=a.getSetCookie)?void 0:b.call(a))?c:a.get("set-cookie"))?d:[];for(const a of Array.isArray(e)?e:function(a){if(!a)return[];var b,c,d,e,f,g=[],h=0;function i(){for(;h<a.length&&/\s/.test(a.charAt(h));)h+=1;return h<a.length}for(;h<a.length;){for(b=h,f=!1;i();)if(","===(c=a.charAt(h))){for(d=h,h+=1,i(),e=h;h<a.length&&"="!==(c=a.charAt(h))&&";"!==c&&","!==c;)h+=1;h<a.length&&"="===a.charAt(h)?(f=!0,h=e,g.push(a.substring(b,d)),b=h):h=d+1}else h+=1;(!f||h>=a.length)&&g.push(a.substring(b,a.length))}return g}(e)){const b=m(a);b&&this._parsed.set(b.name,b)}}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed.values());if(!a.length)return c;let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(a=>a.name===d)}has(a){return this._parsed.has(a)}set(...a){let[b,c,d]=1===a.length?[a[0].name,a[0].value,a[0]]:a,e=this._parsed;return e.set(b,function(a={name:"",value:""}){return"number"==typeof a.expires&&(a.expires=new Date(a.expires)),a.maxAge&&(a.expires=new Date(Date.now()+1e3*a.maxAge)),(null===a.path||void 0===a.path)&&(a.path="/"),a}({name:b,value:c,...d})),function(a,b){for(let[,c]of(b.delete("set-cookie"),a)){let a=k(c);b.append("set-cookie",a)}}(e,this._headers),this}delete(...a){let[b,c]="string"==typeof a[0]?[a[0]]:[a[0].name,a[0]];return this.set({...c,name:b,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(k).join("; ")}}}];
1
+ module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(a,b,c)=>{b.exports=a.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},19276,(a,b,c)=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/cookie/");var a,c,d,e,f={};f.parse=function(b,c){if("string"!=typeof b)throw TypeError("argument str must be a string");for(var e={},f=b.split(d),g=(c||{}).decode||a,h=0;h<f.length;h++){var i=f[h],j=i.indexOf("=");if(!(j<0)){var k=i.substr(0,j).trim(),l=i.substr(++j,i.length).trim();'"'==l[0]&&(l=l.slice(1,-1)),void 0==e[k]&&(e[k]=function(a,b){try{return b(a)}catch(b){return a}}(l,g))}}return e},f.serialize=function(a,b,d){var f=d||{},g=f.encode||c;if("function"!=typeof g)throw TypeError("option encode is invalid");if(!e.test(a))throw TypeError("argument name is invalid");var h=g(b);if(h&&!e.test(h))throw TypeError("argument val is invalid");var i=a+"="+h;if(null!=f.maxAge){var j=f.maxAge-0;if(isNaN(j)||!isFinite(j))throw TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(j)}if(f.domain){if(!e.test(f.domain))throw TypeError("option domain is invalid");i+="; Domain="+f.domain}if(f.path){if(!e.test(f.path))throw TypeError("option path is invalid");i+="; Path="+f.path}if(f.expires){if("function"!=typeof f.expires.toUTCString)throw TypeError("option expires is invalid");i+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(i+="; HttpOnly"),f.secure&&(i+="; Secure"),f.sameSite)switch("string"==typeof f.sameSite?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return i},a=decodeURIComponent,c=encodeURIComponent,d=/; */,e=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,b.exports=f})()},95258,(a,b,c)=>{(()=>{"use strict";var a={56:a=>{a.exports=function(a,b){return"string"==typeof a?g(a):"number"==typeof a?f(a,b):null},a.exports.format=f,a.exports.parse=g;var b=/\B(?=(\d{3})+(?!\d))/g,c=/(?:\.0*|(\.[^0]+)0+)$/,d={b:1,kb:1024,mb:1048576,gb:0x40000000,tb:0x10000000000,pb:0x4000000000000},e=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function f(a,e){if(!Number.isFinite(a))return null;var f=Math.abs(a),g=e&&e.thousandsSeparator||"",h=e&&e.unitSeparator||"",i=e&&void 0!==e.decimalPlaces?e.decimalPlaces:2,j=!!(e&&e.fixedDecimals),k=e&&e.unit||"";k&&d[k.toLowerCase()]||(k=f>=d.pb?"PB":f>=d.tb?"TB":f>=d.gb?"GB":f>=d.mb?"MB":f>=d.kb?"KB":"B");var l=(a/d[k.toLowerCase()]).toFixed(i);return j||(l=l.replace(c,"$1")),g&&(l=l.split(".").map(function(a,c){return 0===c?a.replace(b,g):a}).join(".")),l+h+k}function g(a){if("number"==typeof a&&!isNaN(a))return a;if("string"!=typeof a)return null;var b,c=e.exec(a),f="b";return c?(b=parseFloat(c[1]),f=c[4].toLowerCase()):(b=parseInt(a,10),f="b"),Math.floor(d[f]*b)}}},c={};function d(b){var e=c[b];if(void 0!==e)return e.exports;var f=c[b]={exports:{}},g=!0;try{a[b](f,f.exports,d),g=!1}finally{g&&delete c[b]}return f.exports}d.ab="/ROOT/node_modules/.pnpm/next@16.2.6_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/bytes/",b.exports=d(56)})()},14747,(a,b,c)=>{b.exports=a.x("path",()=>require("path"))},77657,a=>{"use strict";a.s(["isFullStringUrl",0,function(a){return/https?:\/\//.test(a)},"parseUrl",0,function(a){let b;try{b=new URL(a,"http://n")}catch{}return b}])},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},50713,(a,b,c)=>{"use strict";b.exports=a.r(18622)},46193,(a,b,c)=>{"use strict";b.exports=a.r(50713).vendored["react-rsc"].ReactJsxRuntime},41445,(a,b,c)=>{"use strict";b.exports=a.r(50713).vendored["react-rsc"].ReactServerDOMTurbopackServer},91973,(a,b,c)=>{"use strict";b.exports=a.r(50713).vendored["react-rsc"].React},4941,(a,b,c)=>{"use strict";var d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,h={},i={RequestCookies:()=>p,ResponseCookies:()=>q,parseCookie:()=>l,parseSetCookie:()=>m,stringifyCookie:()=>k};for(var j in i)d(h,j,{get:i[j],enumerable:!0});function k(a){var b;let c=["path"in a&&a.path&&`Path=${a.path}`,"expires"in a&&(a.expires||0===a.expires)&&`Expires=${("number"==typeof a.expires?new Date(a.expires):a.expires).toUTCString()}`,"maxAge"in a&&"number"==typeof a.maxAge&&`Max-Age=${a.maxAge}`,"domain"in a&&a.domain&&`Domain=${a.domain}`,"secure"in a&&a.secure&&"Secure","httpOnly"in a&&a.httpOnly&&"HttpOnly","sameSite"in a&&a.sameSite&&`SameSite=${a.sameSite}`,"partitioned"in a&&a.partitioned&&"Partitioned","priority"in a&&a.priority&&`Priority=${a.priority}`].filter(Boolean),d=`${a.name}=${encodeURIComponent(null!=(b=a.value)?b:"")}`;return 0===c.length?d:`${d}; ${c.join("; ")}`}function l(a){let b=new Map;for(let c of a.split(/; */)){if(!c)continue;let a=c.indexOf("=");if(-1===a){b.set(c,"true");continue}let[d,e]=[c.slice(0,a),c.slice(a+1)];try{b.set(d,decodeURIComponent(null!=e?e:"true"))}catch{}}return b}function m(a){if(!a)return;let[[b,c],...d]=l(a),{domain:e,expires:f,httponly:g,maxage:h,path:i,samesite:j,secure:k,partitioned:m,priority:p}=Object.fromEntries(d.map(([a,b])=>[a.toLowerCase().replace(/-/g,""),b]));{var q,r,s={name:b,value:decodeURIComponent(c),domain:e,...f&&{expires:new Date(f)},...g&&{httpOnly:!0},..."string"==typeof h&&{maxAge:Number(h)},path:i,...j&&{sameSite:n.includes(q=(q=j).toLowerCase())?q:void 0},...k&&{secure:!0},...p&&{priority:o.includes(r=(r=p).toLowerCase())?r:void 0},...m&&{partitioned:!0}};let a={};for(let b in s)s[b]&&(a[b]=s[b]);return a}}b.exports=((a,b,c)=>{if(b&&"object"==typeof b||"function"==typeof b)for(let h of f(b))g.call(a,h)||void 0===h||d(a,h,{get:()=>b[h],enumerable:!(c=e(b,h))||c.enumerable});return a})(d({},"__esModule",{value:!0}),h);var n=["strict","lax","none"],o=["low","medium","high"],p=class{constructor(a){this._parsed=new Map,this._headers=a;const b=a.get("cookie");if(b)for(const[a,c]of l(b))this._parsed.set(a,{name:a,value:c})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed);if(!a.length)return c.map(([a,b])=>b);let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(([a])=>a===d).map(([a,b])=>b)}has(a){return this._parsed.has(a)}set(...a){let[b,c]=1===a.length?[a[0].name,a[0].value]:a,d=this._parsed;return d.set(b,{name:b,value:c}),this._headers.set("cookie",Array.from(d).map(([a,b])=>k(b)).join("; ")),this}delete(a){let b=this._parsed,c=Array.isArray(a)?a.map(a=>b.delete(a)):b.delete(a);return this._headers.set("cookie",Array.from(b).map(([a,b])=>k(b)).join("; ")),c}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a=>`${a.name}=${encodeURIComponent(a.value)}`).join("; ")}},q=class{constructor(a){var b,c,d;this._parsed=new Map,this._headers=a;const e=null!=(d=null!=(c=null==(b=a.getSetCookie)?void 0:b.call(a))?c:a.get("set-cookie"))?d:[];for(const a of Array.isArray(e)?e:function(a){if(!a)return[];var b,c,d,e,f,g=[],h=0;function i(){for(;h<a.length&&/\s/.test(a.charAt(h));)h+=1;return h<a.length}for(;h<a.length;){for(b=h,f=!1;i();)if(","===(c=a.charAt(h))){for(d=h,h+=1,i(),e=h;h<a.length&&"="!==(c=a.charAt(h))&&";"!==c&&","!==c;)h+=1;h<a.length&&"="===a.charAt(h)?(f=!0,h=e,g.push(a.substring(b,d)),b=h):h=d+1}else h+=1;(!f||h>=a.length)&&g.push(a.substring(b,a.length))}return g}(e)){const b=m(a);b&&this._parsed.set(b.name,b)}}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed.values());if(!a.length)return c;let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(a=>a.name===d)}has(a){return this._parsed.has(a)}set(...a){let[b,c,d]=1===a.length?[a[0].name,a[0].value,a[0]]:a,e=this._parsed;return e.set(b,function(a={name:"",value:""}){return"number"==typeof a.expires&&(a.expires=new Date(a.expires)),a.maxAge&&(a.expires=new Date(Date.now()+1e3*a.maxAge)),(null===a.path||void 0===a.path)&&(a.path="/"),a}({name:b,value:c,...d})),function(a,b){for(let[,c]of(b.delete("set-cookie"),a)){let a=k(c);b.append("set-cookie",a)}}(e,this._headers),this}delete(...a){let[b,c]="string"==typeof a[0]?[a[0]]:[a[0].name,a[0]];return this.set({...c,name:b,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(k).join("; ")}}}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__0n8s9zq._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:3,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=void 0===b.version?1:b.version;if(d>3||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<3;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341),e=a.i(40388),f=a.i(67511),g=a.i(92398),h=a.i(26351),i=a.i(6931);async function j(a,b=d.DB_PATH){let e=JSON.stringify((0,i.convert_db_to_json)(a));try{await c.promises.writeFile(b,e)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function k(a=d.DB_PATH){let i,l=b.default.dirname(a);await (0,f.ensure_dir_exists)(l);try{await c.promises.access(a)}catch{let b=(0,g.gen_db)();return await j(b,a),b}let m=await c.promises.readFile(a,"utf-8");try{i=JSON.parse(m)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let n=(0,h.migrate_json_db)(i);i=n.json_db;let o=(0,e.convert_json_db)(i);return n.did_migrate&&await j(o,a),o}async function l(a){return k(a)}a.s(["write_local_db",0,j],23761),a.s(["read_db",0,l],4813)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},25244,a=>{"use strict";a.s(["TagManagementView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagManagementView() from the server but TagManagementView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-management-view.tsx <module evaluation>","TagManagementView")},6889,a=>{"use strict";a.s(["TagManagementView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagManagementView() from the server but TagManagementView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-management-view.tsx","TagManagementView")},38116,a=>{"use strict";a.i(25244);var b=a.i(6889);a.n(b)},72299,a=>{"use strict";var b=a.i(46193),c=a.i(38116),d=a.i(4813);async function e(){let a=function(a){let b=new Map;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags)try{let a=function(a){let b=a.trim().replace(/^@+/,"");if(0===b.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(b))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${b}`}(c);b.set(a,(b.get(a)??0)+1)}catch{continue}return[...b.entries()].map(([a,b])=>({name:a,entryCount:b})).sort((a,b)=>a.name.localeCompare(b.name))}(await (0,d.read_db)());return(0,b.jsx)(c.TagManagementView,{initial_tags:a})}a.s(["default",0,e],72299)},83074,a=>{a.n(a.i(72299))}];
1
+ module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:3,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=void 0===b.version?1:b.version;if(d>3||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<3;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341),e=a.i(40388),f=a.i(67511),g=a.i(92398),h=a.i(26351),i=a.i(6931);async function j(a,b=d.DB_PATH){let e=JSON.stringify((0,i.convert_db_to_json)(a));try{await c.promises.writeFile(b,e)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function k(a=d.DB_PATH){let i,l=b.default.dirname(a);await (0,f.ensure_dir_exists)(l);try{await c.promises.access(a)}catch{let b=(0,g.gen_db)();return await j(b,a),b}let m=await c.promises.readFile(a,"utf-8");try{i=JSON.parse(m)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let n=(0,h.migrate_json_db)(i);i=n.json_db;let o=(0,e.convert_json_db)(i);return n.did_migrate&&await j(o,a),o}async function l(a){return k(a)}a.s(["write_local_db",0,j],23761),a.s(["read_db",0,l],4813)},52190,a=>{"use strict";a.s(["normalize_stored_tag",0,function(a){let b=a.trim().replace(/^@+/,"");if(0===b.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(b))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${b}`}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},25244,a=>{"use strict";a.s(["TagManagementView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagManagementView() from the server but TagManagementView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-management-view.tsx <module evaluation>","TagManagementView")},6889,a=>{"use strict";a.s(["TagManagementView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TagManagementView() from the server but TagManagementView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tag-management-view.tsx","TagManagementView")},38116,a=>{"use strict";a.i(25244);var b=a.i(6889);a.n(b)},72299,a=>{"use strict";var b=a.i(46193),c=a.i(38116),d=a.i(52190),e=a.i(4813);async function f(){let a=function(a){let b=new Map;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags)try{let a=(0,d.normalize_stored_tag)(c);b.set(a,(b.get(a)??0)+1)}catch{continue}return[...b.entries()].map(([a,b])=>({name:a,entryCount:b})).sort((a,b)=>a.name.localeCompare(b.name))}(await (0,e.read_db)());return(0,b.jsx)(c.TagManagementView,{initial_tags:a})}a.s(["default",0,f],72299)},83074,a=>{a.n(a.i(72299))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0_wxrlk._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0teulir._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:3,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=void 0===b.version?1:b.version;if(d>3||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<3;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341),e=a.i(40388),f=a.i(67511),g=a.i(92398),h=a.i(26351),i=a.i(6931);async function j(a,b=d.DB_PATH){let e=JSON.stringify((0,i.convert_db_to_json)(a));try{await c.promises.writeFile(b,e)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function k(a=d.DB_PATH){let i,l=b.default.dirname(a);await (0,f.ensure_dir_exists)(l);try{await c.promises.access(a)}catch{let b=(0,g.gen_db)();return await j(b,a),b}let m=await c.promises.readFile(a,"utf-8");try{i=JSON.parse(m)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let n=(0,h.migrate_json_db)(i);i=n.json_db;let o=(0,e.convert_json_db)(i);return n.did_migrate&&await j(o,a),o}async function l(a){return k(a)}a.s(["write_local_db",0,j],23761),a.s(["read_db",0,l],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},67835,88028,a=>{"use strict";a.s(["get_serialized_entries_total_ms",0,function(a){return a.reduce((a,b)=>a+b.durationMs,0)}],67835);var b=a.i(19045);a.s(["serialize_sheet_entries",0,function(a){let{activeEntryID:c,entries:d,name:e}=a;return d.map(a=>(0,b.serialize_entry)(a,e,c===a.id&&null===a.end))}],88028)},19045,a=>{"use strict";a.s(["serialize_entry",0,function(a,b,c){return{id:a.id,description:a.description,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags,notes:a.notes.map(({timestamp:a,text:b})=>({timestamp:a.toISOString(),text:b})),sheetName:b,durationMs:function(a,b=Date.now()){let{end:c,start:d}=a;return Math.max(0,(null===c?b:+c)-d)}(a),isActive:c}}],19045)},80403,a=>{"use strict";var b=a.i(19045);a.s(["find_all_serialized_active_entries",0,function(a){let c=[];for(let d of a.sheets){let{activeEntryID:a,entries:e,name:f}=d;if(null===a)continue;let g=e.find(({id:b})=>b===a);void 0!==g&&null===g.end&&c.push((0,b.serialize_entry)(g,f,!0))}return c}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},43732,a=>{"use strict";a.s(["TrackerApp",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerApp() from the server but TrackerApp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-app.tsx <module evaluation>","TrackerApp")},50367,a=>{"use strict";a.s(["TrackerApp",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerApp() from the server but TrackerApp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-app.tsx","TrackerApp")},84174,a=>{"use strict";a.i(43732);var b=a.i(50367);a.n(b)},50708,a=>{"use strict";var b=a.i(46193),c=a.i(40035),d=a.i(84174),e=a.i(23750),f=a.i(60197),g=a.i(67835),h=a.i(4813),i=a.i(59341),j=a.i(80403),k=a.i(19045),l=a.i(88028),m=a.i(92398),n=a.i(23761);async function o(a,b){await (0,n.write_local_db)(a,b)}async function p(a){let b=await (0,h.read_db)();b.sheets.some(({name:b})=>b===a)||b.sheets.push((0,m.gen_sheet)(a)),b.activeSheetName=a,await o(b)}async function q(a){let b=await (0,h.read_db)(),c=function(a,b){let c=b?.trim()??"";if(c.length>0&&a.sheets.some(a=>a.name===c))return c;if(null!==a.activeSheetName&&a.sheets.some(b=>b.name===a.activeSheetName))return a.activeSheetName;let d=a.sheets.find(a=>null!==a.activeEntryID);return void 0!==d?d.name:a.sheets[0]?.name??i.DEFAULT_SHEET_NAME}(b,a);b.activeSheetName!==c&&(await p(c),b.activeSheetName=c);let{sheets:d}=b,m=[],n=function(a,b){let c=a.sheets.find(({name:a})=>a===b);if(void 0===c)throw Error(`Sheet ${b} not found`);return c}(b,c);m=function(a,b){let c=[...a];switch(b){case"oldest":return c.sort((a,b)=>new Date(a.start).getTime()-new Date(b.start).getTime());case"duration":return c.sort((a,b)=>b.durationMs-a.durationMs);case"description":return c.sort((a,b)=>{let c=a.description.trim()||"Untitled entry",d=b.description.trim()||"Untitled entry";return c.localeCompare(d)});default:return c.sort((a,b)=>new Date(b.start).getTime()-new Date(a.start).getTime())}}((0,l.serialize_sheet_entries)(n),"newest");let o=function(a,b){let c=a.sheets.find(({name:a})=>a===b);if(void 0===c)return null;let{activeEntryID:d,entries:e,name:f}=c;if(null===d)return null;let g=e.find(({id:a})=>a===d);return void 0===g?null:(0,k.serialize_entry)(g,f,null===g.end)}(b,c),q=(0,j.find_all_serialized_active_entries)(b),r=o??q[0]??null;return{dbPath:await (0,f.resolve_db_path_label)(),activeSheetName:c,knownTags:(0,e.collect_known_tags)(b),sheets:d.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entryCount:a.entries.length,isActive:a.name===c,hasActiveEntry:null!==a.activeEntryID})),activeEntry:o,runningEntry:r,runningEntries:q,activeSheetEntries:m,activeSheetTotalMs:(0,g.get_serialized_entries_total_ms)(m)}}async function r(){let a=await (0,c.cookies)(),e=function(a,b){var c;let d="last_viewed"===(c=b.session_mode)||"active_timer"===c||"fixed"===c?c:"last_viewed",e=void 0!==b.last_viewed_sheet&&decodeURIComponent(b.last_viewed_sheet).trim()||null,f=void 0!==b.fixed_sheet_name&&decodeURIComponent(b.fixed_sheet_name).trim()||null;switch(d){case"fixed":{let b=f?.trim()??"";if(b.length>0&&a.sheets.some(a=>a.name===b))return b;return null}case"active_timer":{let b=a.sheets.find(a=>null!==a.activeEntryID);return b?.name??null}default:return e}}(await (0,h.read_db)(),{session_mode:a.get("stt-default-sheet-session-mode")?.value,fixed_sheet_name:a.get("stt-default-sheet-fixed-name")?.value,last_viewed_sheet:a.get("stt-active-sheet")?.value}),f=await q(e);return(0,b.jsx)(d.TrackerApp,{initial_state:f})}a.s(["default",0,r],50708)},26030,a=>{a.n(a.i(50708))}];
1
+ module.exports=[60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:3,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=void 0===b.version?1:b.version;if(d>3||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<3;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341),e=a.i(40388),f=a.i(67511),g=a.i(92398),h=a.i(26351),i=a.i(6931);async function j(a,b=d.DB_PATH){let e=JSON.stringify((0,i.convert_db_to_json)(a));try{await c.promises.writeFile(b,e)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function k(a=d.DB_PATH){let i,l=b.default.dirname(a);await (0,f.ensure_dir_exists)(l);try{await c.promises.access(a)}catch{let b=(0,g.gen_db)();return await j(b,a),b}let m=await c.promises.readFile(a,"utf-8");try{i=JSON.parse(m)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let n=(0,h.migrate_json_db)(i);i=n.json_db;let o=(0,e.convert_json_db)(i);return n.did_migrate&&await j(o,a),o}async function l(a){return k(a)}a.s(["write_local_db",0,j],23761),a.s(["read_db",0,l],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},19045,a=>{"use strict";a.s(["serialize_entry",0,function(a,b,c){return{id:a.id,description:a.description,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags,notes:a.notes.map(({timestamp:a,text:b})=>({timestamp:a.toISOString(),text:b})),sheetName:b,durationMs:function(a,b=Date.now()){let{end:c,start:d}=a;return Math.max(0,(null===c?b:+c)-d)}(a),isActive:c}}],19045)},67835,88028,a=>{"use strict";a.s(["get_serialized_entries_total_ms",0,function(a){return a.reduce((a,b)=>a+b.durationMs,0)}],67835);var b=a.i(19045);a.s(["serialize_sheet_entries",0,function(a){let{activeEntryID:c,entries:d,name:e}=a;return d.map(a=>(0,b.serialize_entry)(a,e,c===a.id&&null===a.end))}],88028)},80403,a=>{"use strict";var b=a.i(19045);a.s(["find_all_serialized_active_entries",0,function(a){let c=[];for(let d of a.sheets){let{activeEntryID:a,entries:e,name:f}=d;if(null===a)continue;let g=e.find(({id:b})=>b===a);void 0!==g&&null===g.end&&c.push((0,b.serialize_entry)(g,f,!0))}return c}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},43732,a=>{"use strict";a.s(["TrackerApp",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerApp() from the server but TrackerApp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-app.tsx <module evaluation>","TrackerApp")},50367,a=>{"use strict";a.s(["TrackerApp",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call TrackerApp() from the server but TrackerApp is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/tracker-app.tsx","TrackerApp")},84174,a=>{"use strict";a.i(43732);var b=a.i(50367);a.n(b)},50708,a=>{"use strict";var b=a.i(46193),c=a.i(40035),d=a.i(84174),e=a.i(23750),f=a.i(60197),g=a.i(67835),h=a.i(4813),i=a.i(59341),j=a.i(80403),k=a.i(19045),l=a.i(88028),m=a.i(92398),n=a.i(23761);async function o(a,b){await (0,n.write_local_db)(a,b)}async function p(a){let b=await (0,h.read_db)();b.sheets.some(({name:b})=>b===a)||b.sheets.push((0,m.gen_sheet)(a)),b.activeSheetName=a,await o(b)}async function q(a){let b=await (0,h.read_db)(),c=function(a,b){let c=b?.trim()??"";if(c.length>0&&a.sheets.some(a=>a.name===c))return c;if(null!==a.activeSheetName&&a.sheets.some(b=>b.name===a.activeSheetName))return a.activeSheetName;let d=a.sheets.find(a=>null!==a.activeEntryID);return void 0!==d?d.name:a.sheets[0]?.name??i.DEFAULT_SHEET_NAME}(b,a);b.activeSheetName!==c&&(await p(c),b.activeSheetName=c);let{sheets:d}=b,m=[],n=function(a,b){let c=a.sheets.find(({name:a})=>a===b);if(void 0===c)throw Error(`Sheet ${b} not found`);return c}(b,c);m=function(a,b){let c=[...a];switch(b){case"oldest":return c.sort((a,b)=>new Date(a.start).getTime()-new Date(b.start).getTime());case"duration":return c.sort((a,b)=>b.durationMs-a.durationMs);case"description":return c.sort((a,b)=>{let c=a.description.trim()||"Untitled entry",d=b.description.trim()||"Untitled entry";return c.localeCompare(d)});default:return c.sort((a,b)=>new Date(b.start).getTime()-new Date(a.start).getTime())}}((0,l.serialize_sheet_entries)(n),"newest");let o=function(a,b){let c=a.sheets.find(({name:a})=>a===b);if(void 0===c)return null;let{activeEntryID:d,entries:e,name:f}=c;if(null===d)return null;let g=e.find(({id:a})=>a===d);return void 0===g?null:(0,k.serialize_entry)(g,f,null===g.end)}(b,c),q=(0,j.find_all_serialized_active_entries)(b),r=o??q[0]??null;return{dbPath:await (0,f.resolve_db_path_label)(),activeSheetName:c,knownTags:(0,e.collect_known_tags)(b),sheets:d.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entryCount:a.entries.length,isActive:a.name===c,hasActiveEntry:null!==a.activeEntryID})),activeEntry:o,runningEntry:r,runningEntries:q,activeSheetEntries:m,activeSheetTotalMs:(0,g.get_serialized_entries_total_ms)(m)}}async function r(){let a=await (0,c.cookies)(),e=function(a,b){var c;let d="last_viewed"===(c=b.session_mode)||"active_timer"===c||"fixed"===c?c:"last_viewed",e=void 0!==b.last_viewed_sheet&&decodeURIComponent(b.last_viewed_sheet).trim()||null,f=void 0!==b.fixed_sheet_name&&decodeURIComponent(b.fixed_sheet_name).trim()||null;switch(d){case"fixed":{let b=f?.trim()??"";if(b.length>0&&a.sheets.some(a=>a.name===b))return b;return null}case"active_timer":{let b=a.sheets.find(a=>null!==a.activeEntryID);return b?.name??null}default:return e}}(await (0,h.read_db)(),{session_mode:a.get("stt-default-sheet-session-mode")?.value,fixed_sheet_name:a.get("stt-default-sheet-fixed-name")?.value,last_viewed_sheet:a.get("stt-active-sheet")?.value}),f=await q(e);return(0,b.jsx)(d.TrackerApp,{initial_state:f})}a.s(["default",0,r],50708)},26030,a=>{a.n(a.i(50708))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0hx9602._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0xp50ux._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:3,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=void 0===b.version?1:b.version;if(d>3||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<3;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341),e=a.i(40388),f=a.i(67511),g=a.i(92398),h=a.i(26351),i=a.i(6931);async function j(a,b=d.DB_PATH){let e=JSON.stringify((0,i.convert_db_to_json)(a));try{await c.promises.writeFile(b,e)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function k(a=d.DB_PATH){let i,l=b.default.dirname(a);await (0,f.ensure_dir_exists)(l);try{await c.promises.access(a)}catch{let b=(0,g.gen_db)();return await j(b,a),b}let m=await c.promises.readFile(a,"utf-8");try{i=JSON.parse(m)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let n=(0,h.migrate_json_db)(i);i=n.json_db;let o=(0,e.convert_json_db)(i);return n.did_migrate&&await j(o,a),o}async function l(a){return k(a)}a.s(["write_local_db",0,j],23761),a.s(["read_db",0,l],4813)},23750,a=>{"use strict";a.s(["collect_known_tags",0,function(a){let b=new Set;for(let c of a.sheets)for(let a of c.entries)for(let c of a.tags){let a=c.trim();a.length>0&&b.add(a)}return[...b].sort((a,b)=>a.localeCompare(b))}])},52190,a=>{"use strict";a.s(["normalize_stored_tag",0,function(a){let b=a.trim().replace(/^@+/,"");if(0===b.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(b))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${b}`}])},19045,a=>{"use strict";a.s(["serialize_entry",0,function(a,b,c){return{id:a.id,description:a.description,start:a.start.toISOString(),end:null===a.end?null:a.end.toISOString(),tags:a.tags,notes:a.notes.map(({timestamp:a,text:b})=>({timestamp:a.toISOString(),text:b})),sheetName:b,durationMs:function(a,b=Date.now()){let{end:c,start:d}=a;return Math.max(0,(null===c?b:+c)-d)}(a),isActive:c}}],19045)},93835,3973,82478,2798,95763,a=>{"use strict";let b=Symbol.for("constructDateFrom");function c(a,c){return"function"==typeof a?a(c):a&&"object"==typeof a&&b in a?a[b](c):a instanceof Date?new a.constructor(c):new Date(c)}function d(a,b){return c(b||a,a)}a.s(["constructFromSymbol",0,b,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5],3973),a.s(["constructFrom",0,c],82478),a.s(["toDate",0,d],2798),a.s(["endOfDay",0,function(a,b){let c=d(a,b?.in);return c.setHours(23,59,59,999),c}],93835);let e={};a.s(["getDefaultOptions",0,function(){return e}],95763)},34114,a=>{"use strict";var b=a.i(95763),c=a.i(2798);a.s(["startOfWeek",0,function(a,d){let e=(0,b.getDefaultOptions)(),f=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,g=(0,c.toDate)(a,d?.in),h=g.getDay();return g.setDate(g.getDate()-(7*(h<f)+h-f)),g.setHours(0,0,0,0),g}])},12781,a=>{"use strict";var b=a.i(2798);a.s(["startOfDay",0,function(a,c){let d=(0,b.toDate)(a,c?.in);return d.setHours(0,0,0,0),d}])},60135,a=>{"use strict";var b=a.i(82478),c=a.i(2798);a.s(["addDays",0,function(a,d,e){let f=(0,c.toDate)(a,e?.in);return isNaN(d)?(0,b.constructFrom)(e?.in||a,NaN):(d&&f.setDate(f.getDate()+d),f)}])},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0yz-q3-._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},60526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},2157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},93695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},54508,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},59341,40388,67511,92398,26351,a=>{"use strict";var b=a.i(60526),c=a.i(50227);let d="main",e=c.default.join(b.default.homedir(),".super-time-tracker"),f=c.default.join(e,"db.json");a.s(["DB_PATH",0,f,"DB_VERSION",0,3,"DEFAULT_SHEET_NAME",0,d],59341),a.s(["convert_json_db",0,function(a){let{sheets:b,version:c,activeSheetName:d}=a;return{version:c,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e,notes:f})=>({id:a,description:d,tags:e,notes:f.map(({timestamp:a,text:b})=>({text:b,timestamp:new Date(a)})),start:new Date(b),end:null===c?null:new Date(c)}))}))}}],40388);var g=a.i(2157);async function h(a){try{await g.promises.mkdir(a,{recursive:!0})}catch(a){if("EEXIST"!==(null!==a&&"object"==typeof a&&"code"in a&&"string"==typeof a.code?a.code:null))throw a}}function i(a,b=[],c=null){if(0===a.length)throw Error("New sheet name must not be empty");if(null!==c&&void 0===b.find(({id:a})=>a===c))throw Error("New sheet active entry does not exist");return{name:a,entries:b,activeEntryID:c}}a.s(["ensure_dir_exists",0,h],67511),a.s(["gen_db",0,function(){return{version:3,sheets:[i(d)],activeSheetName:d}},"gen_sheet",0,i],92398);let j={2:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(1!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 2.`);return{version:2,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d})=>({tags:[],notes:[],id:a,end:c,start:b,description:d}))}))}},3:function(a){let{sheets:b,version:c,activeSheetName:d}=a;if(2!==c&&void 0!==c)throw Error(`DB is version ${c}, cannot migrate to version 3.`);return{version:3,activeSheetName:d,sheets:b.map(({name:a,entries:b,activeEntryID:c})=>({name:a,activeEntryID:c,entries:b.map(({id:a,start:b,end:c,description:d,tags:e})=>({notes:[],tags:e,id:a,end:c,start:b,description:d}))}))}}};a.s(["migrate_json_db",0,function(a){let b=a,c=!1,d=void 0===b.version?1:b.version;if(d>3||d<1)throw Error(`Unknown DB version ${b.version}, cannot load.`);for(;d<3;){let a=d+1,e=j[a];if(void 0===e)throw Error(`Missing migration from version ${d} to ${a}.`);if((b=e(b)).version!==a)throw Error(`Invalid migration output for version ${a}.`);d=a,c=!0}return{json_db:b,did_migrate:c}}],26351)},6931,a=>{"use strict";a.s(["convert_db_to_json",0,function(a){let b=a.sheets.map(a=>({name:a.name,activeEntryID:a.activeEntryID,entries:a.entries.map(a=>({id:a.id,description:a.description,tags:a.tags,start:a.start.getTime(),end:null===a.end?null:a.end.getTime(),notes:a.notes.map(a=>({text:a.text,timestamp:a.timestamp.getTime()}))}))}));return{version:a.version,activeSheetName:a.activeSheetName,sheets:b}}])},4813,23761,a=>{"use strict";var b=a.i(50227),c=a.i(2157),d=a.i(59341),e=a.i(40388),f=a.i(67511),g=a.i(92398),h=a.i(26351),i=a.i(6931);async function j(a,b=d.DB_PATH){let e=JSON.stringify((0,i.convert_db_to_json)(a));try{await c.promises.writeFile(b,e)}catch(a){throw Error(`Failed to save DB: ${String(a)}`,{cause:a})}}async function k(a=d.DB_PATH){let i,l=b.default.dirname(a);await (0,f.ensure_dir_exists)(l);try{await c.promises.access(a)}catch{let b=(0,g.gen_db)();return await j(b,a),b}let m=await c.promises.readFile(a,"utf-8");try{i=JSON.parse(m)}catch(b){throw Error(`DB at ${a} is invalid JSON: ${String(b)}`,{cause:b})}let n=(0,h.migrate_json_db)(i);i=n.json_db;let o=(0,e.convert_json_db)(i);return n.did_migrate&&await j(o,a),o}async function l(a){return k(a)}a.s(["write_local_db",0,j],23761),a.s(["read_db",0,l],4813)},93835,3973,82478,2798,95763,a=>{"use strict";let b=Symbol.for("constructDateFrom");function c(a,c){return"function"==typeof a?a(c):a&&"object"==typeof a&&b in a?a[b](c):a instanceof Date?new a.constructor(c):new Date(c)}function d(a,b){return c(b||a,a)}a.s(["constructFromSymbol",0,b,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5],3973),a.s(["constructFrom",0,c],82478),a.s(["toDate",0,d],2798),a.s(["endOfDay",0,function(a,b){let c=d(a,b?.in);return c.setHours(23,59,59,999),c}],93835);let e={};a.s(["getDefaultOptions",0,function(){return e}],95763)},12781,a=>{"use strict";var b=a.i(2798);a.s(["startOfDay",0,function(a,c){let d=(0,b.toDate)(a,c?.in);return d.setHours(0,0,0,0),d}])},34114,a=>{"use strict";var b=a.i(95763),c=a.i(2798);a.s(["startOfWeek",0,function(a,d){let e=(0,b.getDefaultOptions)(),f=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,g=(0,c.toDate)(a,d?.in),h=g.getDay();return g.setDate(g.getDate()-(7*(h<f)+h-f)),g.setHours(0,0,0,0),g}])},2985,a=>{"use strict";var b=a.i(93835),c=a.i(2798),d=a.i(95763),e=a.i(12781),f=a.i(34114);a.s(["get_period_range_ms",0,function(a,g=new Date,h=1){var i;switch(a){case"week":let j,k,l,m;return{startMs:+(0,f.startOfWeek)(g,{weekStartsOn:h}),endMs:+(i={weekStartsOn:h},j=(0,d.getDefaultOptions)(),k=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??j.weekStartsOn??j.locale?.options?.weekStartsOn??0,m=(l=(0,c.toDate)(g,i?.in)).getDay(),l.setDate(l.getDate()+((m<k?-7:0)+6-(m-k))),l.setHours(23,59,59,999),l)};case"month":let n,o,p;return{startMs:+((n=(0,c.toDate)(g,void 0)).setDate(1),n.setHours(0,0,0,0),n),endMs:+(p=(o=(0,c.toDate)(g,void 0)).getMonth(),o.setFullYear(o.getFullYear(),p+1,0),o.setHours(23,59,59,999),o)};default:return{startMs:+(0,e.startOfDay)(g),endMs:+(0,b.endOfDay)(g)}}}],2985)},23035,a=>{"use strict";a.s(["get_clipped_entry_duration_ms",0,function(a,b,c,d=Date.now()){let e=+a.start;return Math.max(0,Math.min(null===a.end?d:+a.end,c)-Math.max(e,b))}])},2317,51196,a=>{"use strict";function b(a,b){return 0===b?0:a/b}a.s(["get_average_entry_ms",0,b],51196);var c=a.i(23035);a.s(["get_sheet_report_stats_for_range",0,function(a,d,e,f=Date.now()){let g=0,h=0,i=!1;for(let b of a.entries){let j=(0,c.get_clipped_entry_duration_ms)(b,d,e,f);j<=0||(g+=j,h+=1,a.activeEntryID===b.id&&null===b.end&&(i=!0))}return{sheetName:a.name,totalMs:g,entryCount:h,averageEntryMs:b(g,h),hasActiveEntry:i}}],2317)},26758,a=>{a.v("/_next/static/media/favicon.0x3dzn~oxb6tn.ico"+(globalThis.NEXT_CLIENT_ASSET_SUFFIX||""))},38872,a=>{"use strict";let b={src:a.i(26758).default,width:256,height:256};a.s(["default",0,b])},57577,a=>{"use strict";a.s(["SheetHubView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SheetHubView() from the server but SheetHubView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/sheet-hub-view.tsx <module evaluation>","SheetHubView")},68434,a=>{"use strict";a.s(["SheetHubView",()=>b]);let b=(0,a.i(41445).registerClientReference)(function(){throw Error("Attempted to call SheetHubView() from the server but SheetHubView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/sheet-hub-view.tsx","SheetHubView")},14012,a=>{"use strict";a.i(57577);var b=a.i(68434);a.n(b)},23853,a=>{"use strict";var b=a.i(46193),c=a.i(14012),d=a.i(2985),e=a.i(2317),f=a.i(4813);async function g(){return{rows:function(a,b=Date.now(),c=1){let f=new Date(b),g=(0,d.get_period_range_ms)("week",f,c),h=(0,d.get_period_range_ms)("month",f);return a.map(a=>{let c=(0,e.get_sheet_report_stats_for_range)(a,g.startMs,g.endMs,b),d=(0,e.get_sheet_report_stats_for_range)(a,h.startMs,h.endMs,b),f=function(a,b=Date.now()){let c=null;for(let d of a.entries){let a=null===d.end?b:+d.end,e=Math.max(+d.start,a);(null===c||e>c)&&(c=e)}return c}(a,b);return{sheetName:a.name,entryCount:a.entries.length,hasActiveEntry:null!==a.activeEntryID,weekTotalMs:c.totalMs,monthTotalMs:d.totalMs,lastActivityAt:null===f?null:new Date(f).toISOString()}})}((await (0,f.read_db)()).sheets)}}async function h(){let{rows:a}=await g();return(0,b.jsx)(c.SheetHubView,{rows:a})}a.s(["default",0,h],23853)},12349,a=>{a.n(a.i(23853))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__113s7hk._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[85393,a=>{"use strict";var b=a.i(39752),c=a.i(62988),d=a.i(82508);let e=[{href:"/settings",label:"General",match:a=>"/settings"===a},{href:"/settings/display",label:"Display & layout",match:a=>a.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:a=>a.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:a=>a.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:a=>a.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:a=>a.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:a=>a.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:a=>a.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:a=>a.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:a=>a.startsWith("/settings/tags")}];a.s(["SettingsNav",0,function(){let a=(0,d.usePathname)()??"/settings";return(0,b.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,b.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:e.map(d=>{let e=d.match(a);return(0,b.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,b.jsx)(c.default,{href:d.href,"aria-current":e?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${e?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:d.label})},d.href)})})})}])},57077,a=>{"use strict";var b=a.i(7048);a.s(["persist_ui_preference",0,function(a,c){a.read()!==c&&(a.write(c),a.notify(),(0,b.notify_settings_saved)())}])},39744,62082,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:c.DAILY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:a=>{if(!/^\d+$/.test(a))return!1;let b=Number.parseInt(a,10);return b>=30&&b<=720}});a.s(["daily_focus_target_minutes_preference",0,d],39744);let e=(0,b.create_ui_preference_store)({storage_key:c.WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:c.WEEKLY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:a=>{if(!/^\d+$/.test(a))return!1;let b=Number.parseInt(a,10);return b>=60&&b<=4200}});a.s(["weekly_focus_target_minutes_preference",0,e],62082)},50762,13870,16777,18558,80805,9818,a=>{"use strict";a.s(["parse_focus_goals_by_name",0,function(a){if(0===a.length)return{};try{let b=JSON.parse(a);if(null===b||"object"!=typeof b||Array.isArray(b))return{};let c={};for(let[a,d]of Object.entries(b)){if(null===d||"object"!=typeof d)continue;let b={};"string"==typeof d.daily&&d.daily.length>0&&(b.daily=d.daily),"string"==typeof d.weekly&&d.weekly.length>0&&(b.weekly=d.weekly),(void 0!==b.daily||void 0!==b.weekly)&&(c[a]=b)}return c}catch{return{}}}],50762);var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOAL_SCOPE_STORAGE_KEY,default_value:c.FOCUS_GOAL_SCOPE_DEFAULT,is_valid:a=>"global"===a||"sheet"===a||"tag"===a});a.s(["focus_goal_scope_preference",0,d],13870);let e=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOAL_SHEET_NAME_STORAGE_KEY,default_value:c.FOCUS_GOAL_SHEET_NAME_DEFAULT,is_valid:a=>a.trim().length>0});a.s(["focus_goal_sheet_name_preference",0,e],16777);let f=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOAL_TAG_NAME_STORAGE_KEY,default_value:c.FOCUS_GOAL_TAG_NAME_DEFAULT,is_valid:a=>a.trim().length>0});a.s(["focus_goal_tag_name_preference",0,f],18558);let g=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOALS_PER_SHEET_STORAGE_KEY,default_value:c.FOCUS_GOALS_PER_SHEET_DEFAULT,is_valid:a=>{if(0===a.length)return!1;try{let b=JSON.parse(a);return null!==b&&"object"==typeof b&&!Array.isArray(b)}catch{return!1}}});a.s(["focus_goals_per_sheet_preference",0,g],80805);let h=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOALS_PER_TAG_STORAGE_KEY,default_value:c.FOCUS_GOALS_PER_TAG_DEFAULT,is_valid:a=>{if(0===a.length)return!1;try{let b=JSON.parse(a);return null!==b&&"object"==typeof b&&!Array.isArray(b)}catch{return!1}}});a.s(["focus_goals_per_tag_preference",0,h],9818)},38296,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(50762);function e(a,b,c,e){if(0===b.length)return a;let f=(0,d.parse_focus_goals_by_name)(a),g=f[b]??{};if(0===e.length){let a={...g};delete a[c],void 0===a.daily&&void 0===a.weekly?delete f[b]:f[b]=a}else f[b]={...g,[c]:e};return JSON.stringify(f)}var f=a.i(39744),g=a.i(13870),h=a.i(16777),i=a.i(18558),j=a.i(80805),k=a.i(9818),l=a.i(72327),m=a.i(40395),n=a.i(76121),o=a.i(22496),p=a.i(43329),q=a.i(62082),r=a.i(57077);let s=[120,180,240,300,360,420,480],t=[600,900,1200,1500,1800,2100,2400],u=[15,30,45,60,90,120],v=[6,8,10,12,14],w=[{value:"global",label:"Global"},{value:"sheet",label:"Per-sheet"},{value:"tag",label:"Per-tag"}];function x({disabled:a,daily_target_minutes:c,weekly_target_minutes:d}){return(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Global targets"}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Daily target"}),(0,b.jsx)("select",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:c,disabled:a,onChange:a=>(0,r.persist_ui_preference)(f.daily_focus_target_minutes_preference,a.target.value),children:s.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Weekly target"}),(0,b.jsx)("select",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:d,disabled:a,onChange:a=>(0,r.persist_ui_preference)(q.weekly_focus_target_minutes_preference,a.target.value),children:t.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))})]})]})]})}function y({kind:a,names:c,disabled:d,active_name:f,map:g,json:l}){let m="sheet"===a?"Per-sheet targets":"Per-tag targets";if(0===c.length)return(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:m}),(0,b.jsx)("p",{className:"m-0 text-[0.85rem] text-muted",children:"sheet"===a?"Create a sheet to configure per-sheet goals.":"Add a tag to a time entry to configure per-tag goals."})]});let n=`focus-goal-active-${a}`;return(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:m}),(0,b.jsxs)("span",{className:"text-[0.75rem] text-muted",children:["Pick the ",a," shown in the focus banner."]})]}),(0,b.jsx)("ul",{className:"m-0 flex list-none flex-col gap-1.5 p-0",children:c.map(c=>{let m=g[c]??{},o=m.daily??"",p=m.weekly??"",q=f===c;return(0,b.jsxs)("li",{className:`grid items-center gap-2 rounded-md border bg-panel px-3 py-2.5 transition-colors md:grid-cols-[auto_minmax(0,1fr)_minmax(0,11rem)_minmax(0,11rem)] grid-cols-[auto_minmax(0,1fr)] ${q?"border-accent-border bg-accent-soft":"border-panel-border"}`,children:[(0,b.jsx)("label",{className:"flex shrink-0 cursor-pointer items-center justify-center",children:(0,b.jsx)("input",{type:"radio",name:n,className:"cursor-pointer",checked:q,disabled:d,"aria-label":`Show ${c} in focus banner`,onChange:()=>(0,r.persist_ui_preference)("sheet"===a?h.focus_goal_sheet_name_preference:i.focus_goal_tag_name_preference,c)})}),(0,b.jsx)("span",{className:"truncate text-[0.9rem] font-medium",title:c,children:"tag"!==a||c.startsWith("@")?c:`@${c}`}),(0,b.jsxs)("label",{className:"flex items-center gap-2 md:col-start-3",children:[(0,b.jsx)("span",{className:"text-[0.75rem] text-muted",children:"Daily"}),(0,b.jsxs)("select",{className:"flex-1 rounded-md border border-panel-border bg-panel px-2 py-1.5 text-[0.85rem]",value:o,disabled:d,onChange:b=>(0,r.persist_ui_preference)("sheet"===a?j.focus_goals_per_sheet_preference:k.focus_goals_per_tag_preference,e(l,c,"daily",b.target.value)),children:[(0,b.jsx)("option",{value:"",children:"Not set"}),s.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))]})]}),(0,b.jsxs)("label",{className:"flex items-center gap-2 md:col-start-4",children:[(0,b.jsx)("span",{className:"text-[0.75rem] text-muted",children:"Weekly"}),(0,b.jsxs)("select",{className:"flex-1 rounded-md border border-panel-border bg-panel px-2 py-1.5 text-[0.85rem]",value:p,disabled:d,onChange:b=>(0,r.persist_ui_preference)("sheet"===a?j.focus_goals_per_sheet_preference:k.focus_goals_per_tag_preference,e(l,c,"weekly",b.target.value)),children:[(0,b.jsx)("option",{value:"",children:"Not set"}),t.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))]})]})]},c)})})]})}a.s(["FocusGoalsNudgesSetting",0,function({sheet_names:a,tag_names:e}){let s=(0,c.useSyncExternalStore)(l.focus_nudges_enabled_preference.subscribe,l.focus_nudges_enabled_preference.get_snapshot,l.focus_nudges_enabled_preference.get_server_snapshot),t=(0,c.useSyncExternalStore)(f.daily_focus_target_minutes_preference.subscribe,f.daily_focus_target_minutes_preference.get_snapshot,f.daily_focus_target_minutes_preference.get_server_snapshot),z=(0,c.useSyncExternalStore)(q.weekly_focus_target_minutes_preference.subscribe,q.weekly_focus_target_minutes_preference.get_snapshot,q.weekly_focus_target_minutes_preference.get_server_snapshot),A=(0,c.useSyncExternalStore)(m.no_log_reminder_minutes_preference.subscribe,m.no_log_reminder_minutes_preference.get_snapshot,m.no_log_reminder_minutes_preference.get_server_snapshot),B=(0,c.useSyncExternalStore)(n.overwork_alert_hours_preference.subscribe,n.overwork_alert_hours_preference.get_snapshot,n.overwork_alert_hours_preference.get_server_snapshot),C=(0,c.useSyncExternalStore)(p.work_hours_start_preference.subscribe,p.work_hours_start_preference.get_snapshot,p.work_hours_start_preference.get_server_snapshot),D=(0,c.useSyncExternalStore)(o.work_hours_end_preference.subscribe,o.work_hours_end_preference.get_snapshot,o.work_hours_end_preference.get_server_snapshot),E=(0,c.useSyncExternalStore)(g.focus_goal_scope_preference.subscribe,g.focus_goal_scope_preference.get_snapshot,g.focus_goal_scope_preference.get_server_snapshot),F=(0,c.useSyncExternalStore)(h.focus_goal_sheet_name_preference.subscribe,h.focus_goal_sheet_name_preference.get_snapshot,h.focus_goal_sheet_name_preference.get_server_snapshot),G=(0,c.useSyncExternalStore)(i.focus_goal_tag_name_preference.subscribe,i.focus_goal_tag_name_preference.get_snapshot,i.focus_goal_tag_name_preference.get_server_snapshot),H=(0,c.useSyncExternalStore)(j.focus_goals_per_sheet_preference.subscribe,j.focus_goals_per_sheet_preference.get_snapshot,j.focus_goals_per_sheet_preference.get_server_snapshot),I=(0,c.useSyncExternalStore)(k.focus_goals_per_tag_preference.subscribe,k.focus_goals_per_tag_preference.get_snapshot,k.focus_goals_per_tag_preference.get_server_snapshot),J=(0,d.parse_focus_goals_by_name)(H),K=(0,d.parse_focus_goals_by_name)(I);(0,c.useEffect)(()=>{"sheet"===E&&0===F.length&&a.length>0&&(0,r.persist_ui_preference)(h.focus_goal_sheet_name_preference,a[0])},[E,F,a]),(0,c.useEffect)(()=>{"tag"===E&&0===G.length&&e.length>0&&(0,r.persist_ui_preference)(i.focus_goal_tag_name_preference,e[0])},[E,G,e]);let L="true"!==s;return(0,b.jsxs)("div",{id:"focus-goals-nudges",className:"flex w-full flex-col gap-4",children:[(0,b.jsxs)("label",{className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,b.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===s,onChange:a=>(0,r.persist_ui_preference)(l.focus_nudges_enabled_preference,a.target.checked?"true":"false")}),(0,b.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Goals + nudges"}),(0,b.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Track daily/weekly focus goals, overwork alerts, and no-log reminders."})]})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Focus goal scope"}),(0,b.jsx)("div",{role:"radiogroup","aria-label":"Focus goal scope",className:"inline-flex w-full flex-wrap gap-1 rounded-md border border-panel-border bg-panel p-0.5",children:w.map(a=>{let c=E===a.value;return(0,b.jsx)("button",{type:"button",role:"radio","aria-checked":c,disabled:L,className:`flex-1 min-w-24 cursor-pointer rounded px-3 py-1.5 text-[0.85rem] font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-55 ${c?"bg-accent-soft text-foreground":"bg-transparent text-muted hover:bg-surface-hover hover:text-foreground"}`,onClick:()=>(0,r.persist_ui_preference)(g.focus_goal_scope_preference,a.value),children:a.label},a.value)})})]}),"global"===E?(0,b.jsx)(x,{disabled:L,daily_target_minutes:t,weekly_target_minutes:z}):null,"sheet"===E?(0,b.jsx)(y,{kind:"sheet",names:a,disabled:L,active_name:F,map:J,json:H}):null,"tag"===E?(0,b.jsx)(y,{kind:"tag",names:e,disabled:L,active_name:G,map:K,json:I}):null,(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Behavior nudges"}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Work hours start"}),(0,b.jsx)("input",{type:"time",className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:C,disabled:L,onChange:a=>(0,r.persist_ui_preference)(p.work_hours_start_preference,a.target.value)})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Work hours end"}),(0,b.jsx)("input",{type:"time",className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:D,disabled:L,onChange:a=>(0,r.persist_ui_preference)(o.work_hours_end_preference,a.target.value)})]})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"No-log reminder"}),(0,b.jsx)("select",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:A,disabled:L,onChange:a=>(0,r.persist_ui_preference)(m.no_log_reminder_minutes_preference,a.target.value),children:u.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Overwork alert"}),(0,b.jsx)("select",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:B,disabled:L,onChange:a=>(0,r.persist_ui_preference)(n.overwork_alert_hours_preference,a.target.value),children:v.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," hours"]},a))})]})]}),(0,b.jsx)("p",{className:"m-0 text-[0.78rem] leading-snug text-muted",children:"Rule reminders: notify when no active timer during work hours, and alert when an active timer runs longer than the overwork threshold."})]})]})}],38296)}];
1
+ module.exports=[85393,a=>{"use strict";var b=a.i(39752),c=a.i(62988),d=a.i(82508);let e=[{href:"/settings",label:"General",match:a=>"/settings"===a},{href:"/settings/display",label:"Display & layout",match:a=>a.startsWith("/settings/display")},{href:"/settings/quick-actions",label:"Quick actions",match:a=>a.startsWith("/settings/quick-actions")},{href:"/settings/goals",label:"Goals",match:a=>a.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:a=>a.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:a=>a.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:a=>a.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:a=>a.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:a=>a.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:a=>a.startsWith("/settings/tags")}];a.s(["SettingsNav",0,function(){let a=(0,d.usePathname)()??"/settings";return(0,b.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,b.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:e.map(d=>{let e=d.match(a);return(0,b.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,b.jsx)(c.default,{href:d.href,"aria-current":e?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${e?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:d.label})},d.href)})})})}])},57077,a=>{"use strict";var b=a.i(7048);a.s(["persist_ui_preference",0,function(a,c){a.read()!==c&&(a.write(c),a.notify(),(0,b.notify_settings_saved)())}])},39744,62082,a=>{"use strict";var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:c.DAILY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:a=>{if(!/^\d+$/.test(a))return!1;let b=Number.parseInt(a,10);return b>=30&&b<=720}});a.s(["daily_focus_target_minutes_preference",0,d],39744);let e=(0,b.create_ui_preference_store)({storage_key:c.WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:c.WEEKLY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:a=>{if(!/^\d+$/.test(a))return!1;let b=Number.parseInt(a,10);return b>=60&&b<=4200}});a.s(["weekly_focus_target_minutes_preference",0,e],62082)},50762,13870,16777,18558,80805,9818,a=>{"use strict";a.s(["parse_focus_goals_by_name",0,function(a){if(0===a.length)return{};try{let b=JSON.parse(a);if(null===b||"object"!=typeof b||Array.isArray(b))return{};let c={};for(let[a,d]of Object.entries(b)){if(null===d||"object"!=typeof d)continue;let b={};"string"==typeof d.daily&&d.daily.length>0&&(b.daily=d.daily),"string"==typeof d.weekly&&d.weekly.length>0&&(b.weekly=d.weekly),(void 0!==b.daily||void 0!==b.weekly)&&(c[a]=b)}return c}catch{return{}}}],50762);var b=a.i(52345),c=a.i(70827);let d=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOAL_SCOPE_STORAGE_KEY,default_value:c.FOCUS_GOAL_SCOPE_DEFAULT,is_valid:a=>"global"===a||"sheet"===a||"tag"===a});a.s(["focus_goal_scope_preference",0,d],13870);let e=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOAL_SHEET_NAME_STORAGE_KEY,default_value:c.FOCUS_GOAL_SHEET_NAME_DEFAULT,is_valid:a=>a.trim().length>0});a.s(["focus_goal_sheet_name_preference",0,e],16777);let f=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOAL_TAG_NAME_STORAGE_KEY,default_value:c.FOCUS_GOAL_TAG_NAME_DEFAULT,is_valid:a=>a.trim().length>0});a.s(["focus_goal_tag_name_preference",0,f],18558);let g=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOALS_PER_SHEET_STORAGE_KEY,default_value:c.FOCUS_GOALS_PER_SHEET_DEFAULT,is_valid:a=>{if(0===a.length)return!1;try{let b=JSON.parse(a);return null!==b&&"object"==typeof b&&!Array.isArray(b)}catch{return!1}}});a.s(["focus_goals_per_sheet_preference",0,g],80805);let h=(0,b.create_ui_preference_store)({storage_key:c.FOCUS_GOALS_PER_TAG_STORAGE_KEY,default_value:c.FOCUS_GOALS_PER_TAG_DEFAULT,is_valid:a=>{if(0===a.length)return!1;try{let b=JSON.parse(a);return null!==b&&"object"==typeof b&&!Array.isArray(b)}catch{return!1}}});a.s(["focus_goals_per_tag_preference",0,h],9818)},38296,a=>{"use strict";var b=a.i(39752),c=a.i(34542),d=a.i(50762);function e(a,b,c,e){if(0===b.length)return a;let f=(0,d.parse_focus_goals_by_name)(a),g=f[b]??{};if(0===e.length){let a={...g};delete a[c],void 0===a.daily&&void 0===a.weekly?delete f[b]:f[b]=a}else f[b]={...g,[c]:e};return JSON.stringify(f)}var f=a.i(39744),g=a.i(13870),h=a.i(16777),i=a.i(18558),j=a.i(80805),k=a.i(9818),l=a.i(72327),m=a.i(40395),n=a.i(76121),o=a.i(22496),p=a.i(43329),q=a.i(62082),r=a.i(57077);let s=[120,180,240,300,360,420,480],t=[600,900,1200,1500,1800,2100,2400],u=[15,30,45,60,90,120],v=[6,8,10,12,14],w=[{value:"global",label:"Global"},{value:"sheet",label:"Per-sheet"},{value:"tag",label:"Per-tag"}];function x({disabled:a,daily_target_minutes:c,weekly_target_minutes:d}){return(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Global targets"}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Daily target"}),(0,b.jsx)("select",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:c,disabled:a,onChange:a=>(0,r.persist_ui_preference)(f.daily_focus_target_minutes_preference,a.target.value),children:s.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Weekly target"}),(0,b.jsx)("select",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:d,disabled:a,onChange:a=>(0,r.persist_ui_preference)(q.weekly_focus_target_minutes_preference,a.target.value),children:t.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))})]})]})]})}function y({kind:a,names:c,disabled:d,active_name:f,map:g,json:l}){let m="sheet"===a?"Per-sheet targets":"Per-tag targets";if(0===c.length)return(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:m}),(0,b.jsx)("p",{className:"m-0 text-[0.85rem] text-muted",children:"sheet"===a?"Create a sheet to configure per-sheet goals.":"Add a tag to a time entry to configure per-tag goals."})]});let n=`focus-goal-active-${a}`;return(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:m}),(0,b.jsxs)("span",{className:"text-[0.75rem] text-muted",children:["Pick the ",a," shown in the focus banner."]})]}),(0,b.jsx)("ul",{className:"m-0 flex list-none flex-col gap-1.5 p-0",children:c.map(c=>{let m=g[c]??{},o=m.daily??"",p=m.weekly??"",q=f===c;return(0,b.jsxs)("li",{className:`grid items-center gap-2 rounded-md border bg-panel px-3 py-2.5 transition-colors md:grid-cols-[auto_minmax(0,1fr)_minmax(0,11rem)_minmax(0,11rem)] grid-cols-[auto_minmax(0,1fr)] ${q?"border-accent-border bg-accent-soft":"border-panel-border"}`,children:[(0,b.jsx)("label",{className:"flex shrink-0 cursor-pointer items-center justify-center","aria-label":`Show ${c} in focus banner`,children:(0,b.jsx)("input",{type:"radio",name:n,className:"cursor-pointer",checked:q,disabled:d,onChange:()=>(0,r.persist_ui_preference)("sheet"===a?h.focus_goal_sheet_name_preference:i.focus_goal_tag_name_preference,c)})}),(0,b.jsx)("span",{className:"truncate text-[0.9rem] font-medium",title:c,children:"tag"!==a||c.startsWith("@")?c:`@${c}`}),(0,b.jsxs)("label",{className:"flex items-center gap-2 md:col-start-3",children:[(0,b.jsx)("span",{className:"text-[0.75rem] text-muted",children:"Daily"}),(0,b.jsxs)("select",{className:"flex-1 rounded-md border border-panel-border bg-panel px-2 py-1.5 text-[0.85rem]",value:o,disabled:d,onChange:b=>(0,r.persist_ui_preference)("sheet"===a?j.focus_goals_per_sheet_preference:k.focus_goals_per_tag_preference,e(l,c,"daily",b.target.value)),children:[(0,b.jsx)("option",{value:"",children:"Not set"}),s.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))]})]}),(0,b.jsxs)("label",{className:"flex items-center gap-2 md:col-start-4",children:[(0,b.jsx)("span",{className:"text-[0.75rem] text-muted",children:"Weekly"}),(0,b.jsxs)("select",{className:"flex-1 rounded-md border border-panel-border bg-panel px-2 py-1.5 text-[0.85rem]",value:p,disabled:d,onChange:b=>(0,r.persist_ui_preference)("sheet"===a?j.focus_goals_per_sheet_preference:k.focus_goals_per_tag_preference,e(l,c,"weekly",b.target.value)),children:[(0,b.jsx)("option",{value:"",children:"Not set"}),t.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))]})]})]},c)})})]})}a.s(["FocusGoalsNudgesSetting",0,function({sheet_names:a,tag_names:e}){let s=(0,c.useSyncExternalStore)(l.focus_nudges_enabled_preference.subscribe,l.focus_nudges_enabled_preference.get_snapshot,l.focus_nudges_enabled_preference.get_server_snapshot),t=(0,c.useSyncExternalStore)(f.daily_focus_target_minutes_preference.subscribe,f.daily_focus_target_minutes_preference.get_snapshot,f.daily_focus_target_minutes_preference.get_server_snapshot),z=(0,c.useSyncExternalStore)(q.weekly_focus_target_minutes_preference.subscribe,q.weekly_focus_target_minutes_preference.get_snapshot,q.weekly_focus_target_minutes_preference.get_server_snapshot),A=(0,c.useSyncExternalStore)(m.no_log_reminder_minutes_preference.subscribe,m.no_log_reminder_minutes_preference.get_snapshot,m.no_log_reminder_minutes_preference.get_server_snapshot),B=(0,c.useSyncExternalStore)(n.overwork_alert_hours_preference.subscribe,n.overwork_alert_hours_preference.get_snapshot,n.overwork_alert_hours_preference.get_server_snapshot),C=(0,c.useSyncExternalStore)(p.work_hours_start_preference.subscribe,p.work_hours_start_preference.get_snapshot,p.work_hours_start_preference.get_server_snapshot),D=(0,c.useSyncExternalStore)(o.work_hours_end_preference.subscribe,o.work_hours_end_preference.get_snapshot,o.work_hours_end_preference.get_server_snapshot),E=(0,c.useSyncExternalStore)(g.focus_goal_scope_preference.subscribe,g.focus_goal_scope_preference.get_snapshot,g.focus_goal_scope_preference.get_server_snapshot),F=(0,c.useSyncExternalStore)(h.focus_goal_sheet_name_preference.subscribe,h.focus_goal_sheet_name_preference.get_snapshot,h.focus_goal_sheet_name_preference.get_server_snapshot),G=(0,c.useSyncExternalStore)(i.focus_goal_tag_name_preference.subscribe,i.focus_goal_tag_name_preference.get_snapshot,i.focus_goal_tag_name_preference.get_server_snapshot),H=(0,c.useSyncExternalStore)(j.focus_goals_per_sheet_preference.subscribe,j.focus_goals_per_sheet_preference.get_snapshot,j.focus_goals_per_sheet_preference.get_server_snapshot),I=(0,c.useSyncExternalStore)(k.focus_goals_per_tag_preference.subscribe,k.focus_goals_per_tag_preference.get_snapshot,k.focus_goals_per_tag_preference.get_server_snapshot),J=(0,d.parse_focus_goals_by_name)(H),K=(0,d.parse_focus_goals_by_name)(I);(0,c.useEffect)(()=>{"sheet"===E&&0===F.length&&a.length>0&&(0,r.persist_ui_preference)(h.focus_goal_sheet_name_preference,a[0])},[E,F,a]),(0,c.useEffect)(()=>{"tag"===E&&0===G.length&&e.length>0&&(0,r.persist_ui_preference)(i.focus_goal_tag_name_preference,e[0])},[E,G,e]);let L="true"!==s;return(0,b.jsxs)("div",{id:"focus-goals-nudges",className:"flex w-full flex-col gap-4",children:[(0,b.jsxs)("label",{"aria-label":"Focus goals and nudges",className:"flex w-full cursor-pointer items-center gap-2.5",children:[(0,b.jsx)("input",{type:"checkbox",className:"shrink-0",checked:"true"===s,onChange:a=>(0,r.persist_ui_preference)(l.focus_nudges_enabled_preference,a.target.checked?"true":"false")}),(0,b.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("span",{className:"text-[0.95rem] font-semibold",children:"Goals + nudges"}),(0,b.jsx)("span",{className:"text-[0.8rem] leading-snug text-muted",children:"Track daily/weekly focus goals, overwork alerts, and no-log reminders."})]})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Focus goal scope"}),(0,b.jsx)("div",{role:"radiogroup","aria-label":"Focus goal scope",className:"inline-flex w-full flex-wrap gap-1 rounded-md border border-panel-border bg-panel p-0.5",children:w.map(a=>{let c=E===a.value;return(0,b.jsx)("button",{type:"button",role:"radio","aria-checked":c,disabled:L,className:`flex-1 min-w-24 cursor-pointer rounded px-3 py-1.5 text-[0.85rem] font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-55 ${c?"bg-accent-soft text-foreground":"bg-transparent text-muted hover:bg-surface-hover hover:text-foreground"}`,onClick:()=>(0,r.persist_ui_preference)(g.focus_goal_scope_preference,a.value),children:a.label},a.value)})})]}),"global"===E?(0,b.jsx)(x,{disabled:L,daily_target_minutes:t,weekly_target_minutes:z}):null,"sheet"===E?(0,b.jsx)(y,{kind:"sheet",names:a,disabled:L,active_name:F,map:J,json:H}):null,"tag"===E?(0,b.jsx)(y,{kind:"tag",names:e,disabled:L,active_name:G,map:K,json:I}):null,(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)("span",{className:"text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Behavior nudges"}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Work hours start"}),(0,b.jsx)("input",{type:"time",className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:C,disabled:L,onChange:a=>(0,r.persist_ui_preference)(p.work_hours_start_preference,a.target.value)})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Work hours end"}),(0,b.jsx)("input",{type:"time",className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:D,disabled:L,onChange:a=>(0,r.persist_ui_preference)(o.work_hours_end_preference,a.target.value)})]})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"No-log reminder"}),(0,b.jsx)("select",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:A,disabled:L,onChange:a=>(0,r.persist_ui_preference)(m.no_log_reminder_minutes_preference,a.target.value),children:u.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," min"]},a))})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,b.jsx)("span",{className:"text-[0.8rem] text-muted",children:"Overwork alert"}),(0,b.jsx)("select",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-2 text-[0.85rem]",value:B,disabled:L,onChange:a=>(0,r.persist_ui_preference)(n.overwork_alert_hours_preference,a.target.value),children:v.map(a=>(0,b.jsxs)("option",{value:String(a),children:[a," hours"]},a))})]})]}),(0,b.jsx)("p",{className:"m-0 text-[0.78rem] leading-snug text-muted",children:"Rule reminders: notify when no active timer during work hours, and alert when an active timer runs longer than the overwork threshold."})]})]})}],38296)}];
2
2
 
3
3
  //# sourceMappingURL=_002dssm._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[97460,45250,33235,66472,22094,95625,3715,88748,50640,a=>{"use strict";var b=a.i(46313);function c(a,c){let d=(0,b.toDate)(a,c?.in),e=d.getMonth();return d.setFullYear(d.getFullYear(),e+1,0),d.setHours(23,59,59,999),d}a.s(["endOfMonth",0,c],45250);var d=a.i(57487);function e(a,c){let e=(0,d.getDefaultOptions)(),f=c?.weekStartsOn??c?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,g=(0,b.toDate)(a,c?.in),h=g.getDay();return g.setDate(g.getDate()+((h<f?-7:0)+6-(h-f))),g.setHours(23,59,59,999),g}function f(a,c){let d=(0,b.toDate)(a,c?.in),e=d.getFullYear();return d.setFullYear(e+1,0,0),d.setHours(23,59,59,999),d}a.s(["endOfWeek",0,e],33235);var g=a.i(93301),h=a.i(12325);function i(a,c){let d=(0,b.toDate)(a,c?.in);return d.setDate(1),d.setHours(0,0,0,0),d}a.s(["startOfMonth",0,i],66472);var j=a.i(54910),k=a.i(65841),l=a.i(61802);function m(a,c,d){let e=(0,b.toDate)(a,d?.in);return isNaN(c)?(0,l.constructFrom)(d?.in||a,NaN):(c&&e.setDate(e.getDate()+c),e)}function n(a,b,c){return m(a,-b,c)}function o(a,c,d){let e=(0,b.toDate)(a,d?.in);if(isNaN(c))return(0,l.constructFrom)(d?.in||a,NaN);if(!c)return e;let f=e.getDate(),g=(0,l.constructFrom)(d?.in||a,e.getTime());return(g.setMonth(e.getMonth()+c+1,0),f>=g.getDate())?g:(e.setFullYear(g.getFullYear(),g.getMonth(),f),e)}function p(a,b,c){return o(a,-b,c)}function q(a,b=new Date,d=1){let l=a=>(0,g.format)(a,"yyyy-MM-dd");switch(a){case"yesterday":{let a=n(b,1);return{from_date:l((0,h.startOfDay)(a)),to_date:l((0,h.startOfDay)(a))}}case"week":return{from_date:l((0,j.startOfWeek)(b,{weekStartsOn:d})),to_date:l(e(b,{weekStartsOn:d}))};case"month":return{from_date:l(i(b)),to_date:l(c(b))};case"last_month":{let a=p(b,1);return{from_date:l(i(a)),to_date:l(c(a))}}case"year":return{from_date:l((0,k.startOfYear)(b)),to_date:l(f(b))};case"last_year":{let a=o(b,-12,void 0);return{from_date:l((0,k.startOfYear)(a)),to_date:l(f(a))}}default:{let a=(0,h.startOfDay)(b);return{from_date:l(a),to_date:l(a)}}}}a.s(["addDays",0,m],22094),a.s(["subDays",0,n],95625),a.s(["subMonths",0,p],3715),a.s(["get_reporting_date_range_shortcut_inputs",0,q],97460),a.s(["matches_reporting_date_range_shortcut",0,function(a,b,c=new Date,d=1){if(0===a.from_date.length||0===a.to_date.length)return!1;let e=q(b,c,d);return a.from_date===e.from_date&&a.to_date===e.to_date}],88748);var r=a.i(34542),s=a.i(82474);a.s(["use_week_starts_on",0,function(){return(0,r.useSyncExternalStore)(s.week_starts_on_preference.subscribe,s.week_starts_on_preference.get_snapshot,s.week_starts_on_preference.get_server_snapshot)}],50640)},20396,a=>{"use strict";a.s(["week_starts_on_to_index",0,function(a){return+("sunday"!==a)}])},10724,95507,64106,a=>{"use strict";var b=a.i(39752),c=a.i(89969),d=a.i(69749),e=a.i(97460),f=a.i(88748),g=a.i(50640),h=a.i(20396);let i=[{value:"today",label:"Today"},{value:"yesterday",label:"Yesterday"},{value:"week",label:"This week"},{value:"month",label:"This month"},{value:"last_month",label:"Last month"},{value:"year",label:"This year"},{value:"last_year",label:"Last year"}];a.s(["ReportingDateRangePicker",0,function({range:a,is_invalid:j,on_range_change:k,on_clear:l}){let m=(0,g.use_week_starts_on)(),n=(0,h.week_starts_on_to_index)(m),o=a.from_date.length>0||a.to_date.length>0;return(0,b.jsxs)("fieldset",{className:"m-0 flex w-full max-w-2xl flex-col gap-2 rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:[(0,b.jsx)("legend",{className:"mb-2 text-[0.72rem] font-semibold uppercase tracking-[0.06em] text-muted",children:"Date range"}),(0,b.jsx)("div",{className:"flex flex-wrap gap-1.5",role:"group","aria-label":"Date range shortcuts",children:i.map(d=>{let g=(0,f.matches_reporting_date_range_shortcut)(a,d.value,new Date,n);return(0,b.jsx)("button",{type:"button",className:g?(0,c.get_button_class_name)("primary","small"):(0,c.get_button_class_name)("ghost","small"),"aria-pressed":g,onClick:()=>k((0,e.get_reporting_date_range_shortcut_inputs)(d.value,new Date,n)),children:d.label},d.value)})}),(0,b.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,b.jsxs)("label",{className:"flex flex-col gap-1 text-[0.82rem] text-muted",children:["From",(0,b.jsx)("input",{type:"date",className:(0,d.get_input_class_name)("compact"),value:a.from_date,onChange:b=>k({...a,from_date:b.target.value})})]}),(0,b.jsxs)("label",{className:"flex flex-col gap-1 text-[0.82rem] text-muted",children:["To",(0,b.jsx)("input",{type:"date",className:(0,d.get_input_class_name)("compact"),value:a.to_date,onChange:b=>k({...a,to_date:b.target.value})})]})]}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,b.jsx)("button",{type:"button",className:(0,c.get_button_class_name)("ghost","small"),disabled:!o,onClick:l,children:"Clear"}),j?(0,b.jsx)("span",{className:"text-[0.82rem] text-danger",children:"Enter a valid from and to date."}):null]})]})}],10724);var j=a.i(46313);function k(a,b){let c=(0,j.toDate)(a,b?.in);return c.setHours(23,59,59,999),c}a.s(["endOfDay",0,k],95507);var l=a.i(44312),m=a.i(74285),n=a.i(58365),o=a.i(61802),p=a.i(57487);class q{subPriority=0;validate(a,b){return!0}}class r extends q{constructor(a,b,c,d,e){super(),this.value=a,this.validateValue=b,this.setValue=c,this.priority=d,e&&(this.subPriority=e)}validate(a,b){return this.validateValue(a,this.value,b)}set(a,b,c){return this.setValue(a,b,this.value,c)}}class s extends q{priority=10;subPriority=-1;constructor(a,b){super(),this.context=a||(a=>(0,o.constructFrom)(b,a))}set(a,b){var c,d;let e;if(b.timestampIsSet)return a;return(0,o.constructFrom)(a,((e="function"==typeof(d=c=this.context)&&d.prototype?.constructor===d?new c(0):(0,o.constructFrom)(c,0)).setFullYear(a.getFullYear(),a.getMonth(),a.getDate()),e.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()),e))}}class t{run(a,b,c,d){let e=this.parse(a,b,c,d);return e?{setter:new r(e.value,this.validate,this.set,this.priority,this.subPriority),rest:e.rest}:null}validate(a,b,c){return!0}}var u=a.i(9357);let v=/^(1[0-2]|0?\d)/,w=/^(3[0-1]|[0-2]?\d)/,x=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,y=/^(5[0-3]|[0-4]?\d)/,z=/^(2[0-3]|[0-1]?\d)/,A=/^(2[0-4]|[0-1]?\d)/,B=/^(1[0-1]|0?\d)/,C=/^(1[0-2]|0?\d)/,D=/^[0-5]?\d/,E=/^[0-5]?\d/,F=/^\d/,G=/^\d{1,2}/,H=/^\d{1,3}/,I=/^\d{1,4}/,J=/^-?\d+/,K=/^-?\d/,L=/^-?\d{1,2}/,M=/^-?\d{1,3}/,N=/^-?\d{1,4}/,O=/^([+-])(\d{2})(\d{2})?|Z/,P=/^([+-])(\d{2})(\d{2})|Z/,Q=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,R=/^([+-])(\d{2}):(\d{2})|Z/,S=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function T(a,b){return a?{value:b(a.value),rest:a.rest}:a}function U(a,b){let c=b.match(a);return c?{value:parseInt(c[0],10),rest:b.slice(c[0].length)}:null}function V(a,b){let c=b.match(a);if(!c)return null;if("Z"===c[0])return{value:0,rest:b.slice(1)};let d="+"===c[1]?1:-1,e=c[2]?parseInt(c[2],10):0,f=c[3]?parseInt(c[3],10):0,g=c[5]?parseInt(c[5],10):0;return{value:d*(e*u.millisecondsInHour+f*u.millisecondsInMinute+g*u.millisecondsInSecond),rest:b.slice(c[0].length)}}function W(a,b){switch(a){case 1:return U(F,b);case 2:return U(G,b);case 3:return U(H,b);case 4:return U(I,b);default:return U(RegExp("^\\d{1,"+a+"}"),b)}}function X(a,b){switch(a){case 1:return U(K,b);case 2:return U(L,b);case 3:return U(M,b);case 4:return U(N,b);default:return U(RegExp("^-?\\d{1,"+a+"}"),b)}}function Y(a){switch(a){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Z(a,b){let c,d=b>0,e=d?b:1-b;if(e<=50)c=a||100;else{let b=e+50;c=a+100*Math.trunc(b/100)-100*(a>=b%100)}return d?c:1-c}function $(a){return a%400==0||a%4==0&&a%100!=0}var _=a.i(5505),aa=a.i(54910),ab=a.i(64),ac=a.i(66266),ad=a.i(84501);let ae=[31,28,31,30,31,30,31,31,30,31,30,31],af=[31,29,31,30,31,30,31,31,30,31,30,31];var ag=a.i(22094);function ah(a,b,c){let d=(0,p.getDefaultOptions)(),e=c?.weekStartsOn??c?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0,f=(0,j.toDate)(a,c?.in),g=f.getDay(),h=7-e,i=b<0||b>6?b-(g+h)%7:((b%7+7)%7+h)%7-(g+h)%7;return(0,ag.addDays)(f,i,c)}var ai=a.i(95799);let aj={G:new class extends t{priority=140;parse(a,b,c){switch(b){case"G":case"GG":case"GGG":return c.era(a,{width:"abbreviated"})||c.era(a,{width:"narrow"});case"GGGGG":return c.era(a,{width:"narrow"});default:return c.era(a,{width:"wide"})||c.era(a,{width:"abbreviated"})||c.era(a,{width:"narrow"})}}set(a,b,c){return b.era=c,a.setFullYear(c,0,1),a.setHours(0,0,0,0),a}incompatibleTokens=["R","u","t","T"]},y:new class extends t{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(a,b,c){let d=a=>({year:a,isTwoDigitYear:"yy"===b});switch(b){case"y":return T(W(4,a),d);case"yo":return T(c.ordinalNumber(a,{unit:"year"}),d);default:return T(W(b.length,a),d)}}validate(a,b){return b.isTwoDigitYear||b.year>0}set(a,b,c){let d=a.getFullYear();if(c.isTwoDigitYear){let b=Z(c.year,d);return a.setFullYear(b,0,1),a.setHours(0,0,0,0),a}let e="era"in b&&1!==b.era?1-c.year:c.year;return a.setFullYear(e,0,1),a.setHours(0,0,0,0),a}},Y:new class extends t{priority=130;parse(a,b,c){let d=a=>({year:a,isTwoDigitYear:"YY"===b});switch(b){case"Y":return T(W(4,a),d);case"Yo":return T(c.ordinalNumber(a,{unit:"year"}),d);default:return T(W(b.length,a),d)}}validate(a,b){return b.isTwoDigitYear||b.year>0}set(a,b,c,d){let e=(0,_.getWeekYear)(a,d);if(c.isTwoDigitYear){let b=Z(c.year,e);return a.setFullYear(b,0,d.firstWeekContainsDate),a.setHours(0,0,0,0),(0,aa.startOfWeek)(a,d)}let f="era"in b&&1!==b.era?1-c.year:c.year;return a.setFullYear(f,0,d.firstWeekContainsDate),a.setHours(0,0,0,0),(0,aa.startOfWeek)(a,d)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends t{priority=130;parse(a,b){return"R"===b?X(4,a):X(b.length,a)}set(a,b,c){let d=(0,o.constructFrom)(a,0);return d.setFullYear(c,0,4),d.setHours(0,0,0,0),(0,ab.startOfISOWeek)(d)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends t{priority=130;parse(a,b){return"u"===b?X(4,a):X(b.length,a)}set(a,b,c){return a.setFullYear(c,0,1),a.setHours(0,0,0,0),a}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends t{priority=120;parse(a,b,c){switch(b){case"Q":case"QQ":return W(b.length,a);case"Qo":return c.ordinalNumber(a,{unit:"quarter"});case"QQQ":return c.quarter(a,{width:"abbreviated",context:"formatting"})||c.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return c.quarter(a,{width:"narrow",context:"formatting"});default:return c.quarter(a,{width:"wide",context:"formatting"})||c.quarter(a,{width:"abbreviated",context:"formatting"})||c.quarter(a,{width:"narrow",context:"formatting"})}}validate(a,b){return b>=1&&b<=4}set(a,b,c){return a.setMonth((c-1)*3,1),a.setHours(0,0,0,0),a}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends t{priority=120;parse(a,b,c){switch(b){case"q":case"qq":return W(b.length,a);case"qo":return c.ordinalNumber(a,{unit:"quarter"});case"qqq":return c.quarter(a,{width:"abbreviated",context:"standalone"})||c.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return c.quarter(a,{width:"narrow",context:"standalone"});default:return c.quarter(a,{width:"wide",context:"standalone"})||c.quarter(a,{width:"abbreviated",context:"standalone"})||c.quarter(a,{width:"narrow",context:"standalone"})}}validate(a,b){return b>=1&&b<=4}set(a,b,c){return a.setMonth((c-1)*3,1),a.setHours(0,0,0,0),a}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends t{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(a,b,c){let d=a=>a-1;switch(b){case"M":return T(U(v,a),d);case"MM":return T(W(2,a),d);case"Mo":return T(c.ordinalNumber(a,{unit:"month"}),d);case"MMM":return c.month(a,{width:"abbreviated",context:"formatting"})||c.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return c.month(a,{width:"narrow",context:"formatting"});default:return c.month(a,{width:"wide",context:"formatting"})||c.month(a,{width:"abbreviated",context:"formatting"})||c.month(a,{width:"narrow",context:"formatting"})}}validate(a,b){return b>=0&&b<=11}set(a,b,c){return a.setMonth(c,1),a.setHours(0,0,0,0),a}},L:new class extends t{priority=110;parse(a,b,c){let d=a=>a-1;switch(b){case"L":return T(U(v,a),d);case"LL":return T(W(2,a),d);case"Lo":return T(c.ordinalNumber(a,{unit:"month"}),d);case"LLL":return c.month(a,{width:"abbreviated",context:"standalone"})||c.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return c.month(a,{width:"narrow",context:"standalone"});default:return c.month(a,{width:"wide",context:"standalone"})||c.month(a,{width:"abbreviated",context:"standalone"})||c.month(a,{width:"narrow",context:"standalone"})}}validate(a,b){return b>=0&&b<=11}set(a,b,c){return a.setMonth(c,1),a.setHours(0,0,0,0),a}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends t{priority=100;parse(a,b,c){switch(b){case"w":return U(y,a);case"wo":return c.ordinalNumber(a,{unit:"week"});default:return W(b.length,a)}}validate(a,b){return b>=1&&b<=53}set(a,b,c,d){let e,f;return(0,aa.startOfWeek)((e=(0,j.toDate)(a,d?.in),f=(0,ac.getWeek)(e,d)-c,e.setDate(e.getDate()-7*f),(0,j.toDate)(e,d?.in)),d)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends t{priority=100;parse(a,b,c){switch(b){case"I":return U(y,a);case"Io":return c.ordinalNumber(a,{unit:"week"});default:return W(b.length,a)}}validate(a,b){return b>=1&&b<=53}set(a,b,c){let d,e;return(0,ab.startOfISOWeek)((d=(0,j.toDate)(a,void 0),e=(0,ad.getISOWeek)(d,void 0)-c,d.setDate(d.getDate()-7*e),d))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends t{priority=90;subPriority=1;parse(a,b,c){switch(b){case"d":return U(w,a);case"do":return c.ordinalNumber(a,{unit:"date"});default:return W(b.length,a)}}validate(a,b){let c=$(a.getFullYear()),d=a.getMonth();return c?b>=1&&b<=af[d]:b>=1&&b<=ae[d]}set(a,b,c){return a.setDate(c),a.setHours(0,0,0,0),a}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends t{priority=90;subpriority=1;parse(a,b,c){switch(b){case"D":case"DD":return U(x,a);case"Do":return c.ordinalNumber(a,{unit:"date"});default:return W(b.length,a)}}validate(a,b){return $(a.getFullYear())?b>=1&&b<=366:b>=1&&b<=365}set(a,b,c){return a.setMonth(0,c),a.setHours(0,0,0,0),a}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends t{priority=90;parse(a,b,c){switch(b){case"E":case"EE":case"EEE":return c.day(a,{width:"abbreviated",context:"formatting"})||c.day(a,{width:"short",context:"formatting"})||c.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return c.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return c.day(a,{width:"short",context:"formatting"})||c.day(a,{width:"narrow",context:"formatting"});default:return c.day(a,{width:"wide",context:"formatting"})||c.day(a,{width:"abbreviated",context:"formatting"})||c.day(a,{width:"short",context:"formatting"})||c.day(a,{width:"narrow",context:"formatting"})}}validate(a,b){return b>=0&&b<=6}set(a,b,c,d){return(a=ah(a,c,d)).setHours(0,0,0,0),a}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends t{priority=90;parse(a,b,c,d){let e=a=>{let b=7*Math.floor((a-1)/7);return(a+d.weekStartsOn+6)%7+b};switch(b){case"e":case"ee":return T(W(b.length,a),e);case"eo":return T(c.ordinalNumber(a,{unit:"day"}),e);case"eee":return c.day(a,{width:"abbreviated",context:"formatting"})||c.day(a,{width:"short",context:"formatting"})||c.day(a,{width:"narrow",context:"formatting"});case"eeeee":return c.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return c.day(a,{width:"short",context:"formatting"})||c.day(a,{width:"narrow",context:"formatting"});default:return c.day(a,{width:"wide",context:"formatting"})||c.day(a,{width:"abbreviated",context:"formatting"})||c.day(a,{width:"short",context:"formatting"})||c.day(a,{width:"narrow",context:"formatting"})}}validate(a,b){return b>=0&&b<=6}set(a,b,c,d){return(a=ah(a,c,d)).setHours(0,0,0,0),a}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends t{priority=90;parse(a,b,c,d){let e=a=>{let b=7*Math.floor((a-1)/7);return(a+d.weekStartsOn+6)%7+b};switch(b){case"c":case"cc":return T(W(b.length,a),e);case"co":return T(c.ordinalNumber(a,{unit:"day"}),e);case"ccc":return c.day(a,{width:"abbreviated",context:"standalone"})||c.day(a,{width:"short",context:"standalone"})||c.day(a,{width:"narrow",context:"standalone"});case"ccccc":return c.day(a,{width:"narrow",context:"standalone"});case"cccccc":return c.day(a,{width:"short",context:"standalone"})||c.day(a,{width:"narrow",context:"standalone"});default:return c.day(a,{width:"wide",context:"standalone"})||c.day(a,{width:"abbreviated",context:"standalone"})||c.day(a,{width:"short",context:"standalone"})||c.day(a,{width:"narrow",context:"standalone"})}}validate(a,b){return b>=0&&b<=6}set(a,b,c,d){return(a=ah(a,c,d)).setHours(0,0,0,0),a}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends t{priority=90;parse(a,b,c){let d=a=>0===a?7:a;switch(b){case"i":case"ii":return W(b.length,a);case"io":return c.ordinalNumber(a,{unit:"day"});case"iii":return T(c.day(a,{width:"abbreviated",context:"formatting"})||c.day(a,{width:"short",context:"formatting"})||c.day(a,{width:"narrow",context:"formatting"}),d);case"iiiii":return T(c.day(a,{width:"narrow",context:"formatting"}),d);case"iiiiii":return T(c.day(a,{width:"short",context:"formatting"})||c.day(a,{width:"narrow",context:"formatting"}),d);default:return T(c.day(a,{width:"wide",context:"formatting"})||c.day(a,{width:"abbreviated",context:"formatting"})||c.day(a,{width:"short",context:"formatting"})||c.day(a,{width:"narrow",context:"formatting"}),d)}}validate(a,b){return b>=1&&b<=7}set(a,b,c){var d,e;let f,g,h;return d=a,f=(0,j.toDate)(d,void 0),e=void 0,h=0===(g=(0,j.toDate)(f,e?.in).getDay())?7:g,(a=(0,ag.addDays)(f,c-h,void 0)).setHours(0,0,0,0),a}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends t{priority=80;parse(a,b,c){switch(b){case"a":case"aa":case"aaa":return c.dayPeriod(a,{width:"abbreviated",context:"formatting"})||c.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return c.dayPeriod(a,{width:"narrow",context:"formatting"});default:return c.dayPeriod(a,{width:"wide",context:"formatting"})||c.dayPeriod(a,{width:"abbreviated",context:"formatting"})||c.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,b,c){return a.setHours(Y(c),0,0,0),a}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends t{priority=80;parse(a,b,c){switch(b){case"b":case"bb":case"bbb":return c.dayPeriod(a,{width:"abbreviated",context:"formatting"})||c.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return c.dayPeriod(a,{width:"narrow",context:"formatting"});default:return c.dayPeriod(a,{width:"wide",context:"formatting"})||c.dayPeriod(a,{width:"abbreviated",context:"formatting"})||c.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,b,c){return a.setHours(Y(c),0,0,0),a}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends t{priority=80;parse(a,b,c){switch(b){case"B":case"BB":case"BBB":return c.dayPeriod(a,{width:"abbreviated",context:"formatting"})||c.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return c.dayPeriod(a,{width:"narrow",context:"formatting"});default:return c.dayPeriod(a,{width:"wide",context:"formatting"})||c.dayPeriod(a,{width:"abbreviated",context:"formatting"})||c.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,b,c){return a.setHours(Y(c),0,0,0),a}incompatibleTokens=["a","b","t","T"]},h:new class extends t{priority=70;parse(a,b,c){switch(b){case"h":return U(C,a);case"ho":return c.ordinalNumber(a,{unit:"hour"});default:return W(b.length,a)}}validate(a,b){return b>=1&&b<=12}set(a,b,c){let d=a.getHours()>=12;return d&&c<12?a.setHours(c+12,0,0,0):d||12!==c?a.setHours(c,0,0,0):a.setHours(0,0,0,0),a}incompatibleTokens=["H","K","k","t","T"]},H:new class extends t{priority=70;parse(a,b,c){switch(b){case"H":return U(z,a);case"Ho":return c.ordinalNumber(a,{unit:"hour"});default:return W(b.length,a)}}validate(a,b){return b>=0&&b<=23}set(a,b,c){return a.setHours(c,0,0,0),a}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends t{priority=70;parse(a,b,c){switch(b){case"K":return U(B,a);case"Ko":return c.ordinalNumber(a,{unit:"hour"});default:return W(b.length,a)}}validate(a,b){return b>=0&&b<=11}set(a,b,c){return a.getHours()>=12&&c<12?a.setHours(c+12,0,0,0):a.setHours(c,0,0,0),a}incompatibleTokens=["h","H","k","t","T"]},k:new class extends t{priority=70;parse(a,b,c){switch(b){case"k":return U(A,a);case"ko":return c.ordinalNumber(a,{unit:"hour"});default:return W(b.length,a)}}validate(a,b){return b>=1&&b<=24}set(a,b,c){return a.setHours(c<=24?c%24:c,0,0,0),a}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends t{priority=60;parse(a,b,c){switch(b){case"m":return U(D,a);case"mo":return c.ordinalNumber(a,{unit:"minute"});default:return W(b.length,a)}}validate(a,b){return b>=0&&b<=59}set(a,b,c){return a.setMinutes(c,0,0),a}incompatibleTokens=["t","T"]},s:new class extends t{priority=50;parse(a,b,c){switch(b){case"s":return U(E,a);case"so":return c.ordinalNumber(a,{unit:"second"});default:return W(b.length,a)}}validate(a,b){return b>=0&&b<=59}set(a,b,c){return a.setSeconds(c,0),a}incompatibleTokens=["t","T"]},S:new class extends t{priority=30;parse(a,b){return T(W(b.length,a),a=>Math.trunc(a*Math.pow(10,-b.length+3)))}set(a,b,c){return a.setMilliseconds(c),a}incompatibleTokens=["t","T"]},X:new class extends t{priority=10;parse(a,b){switch(b){case"X":return V(O,a);case"XX":return V(P,a);case"XXXX":return V(Q,a);case"XXXXX":return V(S,a);default:return V(R,a)}}set(a,b,c){return b.timestampIsSet?a:(0,o.constructFrom)(a,a.getTime()-(0,ai.getTimezoneOffsetInMilliseconds)(a)-c)}incompatibleTokens=["t","T","x"]},x:new class extends t{priority=10;parse(a,b){switch(b){case"x":return V(O,a);case"xx":return V(P,a);case"xxxx":return V(Q,a);case"xxxxx":return V(S,a);default:return V(R,a)}}set(a,b,c){return b.timestampIsSet?a:(0,o.constructFrom)(a,a.getTime()-(0,ai.getTimezoneOffsetInMilliseconds)(a)-c)}incompatibleTokens=["t","T","X"]},t:new class extends t{priority=40;parse(a){return U(J,a)}set(a,b,c){return[(0,o.constructFrom)(a,1e3*c),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends t{priority=20;parse(a){return U(J,a)}set(a,b,c){return[(0,o.constructFrom)(a,c),{timestampIsSet:!0}]}incompatibleTokens="*"}},ak=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,al=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,am=/^'([^]*?)'?$/,an=/''/g,ao=/\S/,ap=/[a-zA-Z]/;function aq(a,b,c,d){let e=()=>(0,o.constructFrom)(d?.in||c,NaN),f=Object.assign({},(0,p.getDefaultOptions)()),g=d?.locale??f.locale??l.defaultLocale,h=d?.firstWeekContainsDate??d?.locale?.options?.firstWeekContainsDate??f.firstWeekContainsDate??f.locale?.options?.firstWeekContainsDate??1,i=d?.weekStartsOn??d?.locale?.options?.weekStartsOn??f.weekStartsOn??f.locale?.options?.weekStartsOn??0;if(!b)return a?e():(0,j.toDate)(c,d?.in);let k={firstWeekContainsDate:h,weekStartsOn:i,locale:g},q=[new s(d?.in,c)],r=b.match(al).map(a=>{let b=a[0];return b in m.longFormatters?(0,m.longFormatters[b])(a,g.formatLong):a}).join("").match(ak),t=[];for(let c of r){!d?.useAdditionalWeekYearTokens&&(0,n.isProtectedWeekYearToken)(c)&&(0,n.warnOrThrowProtectedError)(c,b,a),!d?.useAdditionalDayOfYearTokens&&(0,n.isProtectedDayOfYearToken)(c)&&(0,n.warnOrThrowProtectedError)(c,b,a);let f=c[0],h=aj[f];if(h){let{incompatibleTokens:b}=h;if(Array.isArray(b)){let a=t.find(a=>b.includes(a.token)||a.token===f);if(a)throw RangeError(`The format string mustn't contain \`${a.fullToken}\` and \`${c}\` at the same time`)}else if("*"===h.incompatibleTokens&&t.length>0)throw RangeError(`The format string mustn't contain \`${c}\` and any other token at the same time`);t.push({token:f,fullToken:c});let d=h.run(a,c,g.match,k);if(!d)return e();q.push(d.setter),a=d.rest}else{if(f.match(ap))throw RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");if("''"===c?c="'":"'"===f&&(c=c.match(am)[1].replace(an,"'")),0!==a.indexOf(c))return e();a=a.slice(c.length)}}if(a.length>0&&ao.test(a))return e();let u=q.map(a=>a.priority).sort((a,b)=>b-a).filter((a,b,c)=>c.indexOf(a)===b).map(a=>q.filter(b=>b.priority===a).sort((a,b)=>b.subPriority-a.subPriority)).map(a=>a[0]),v=(0,j.toDate)(c,d?.in);if(isNaN(+v))return e();let w={};for(let a of u){if(!a.validate(v,k))return e();let b=a.set(v,w,k);Array.isArray(b)?(v=b[0],Object.assign(w,b[1])):v=b}return v}var ar=a.i(12325);a.s(["get_date_range_ms_from_inputs",0,function(a,b){if(0===a.length||0===b.length)return null;let c=aq(a,"yyyy-MM-dd",new Date),d=aq(b,"yyyy-MM-dd",new Date);return Number.isNaN(+c)||Number.isNaN(+d)||+c>+d?null:{startMs:+(0,ar.startOfDay)(c),endMs:+k(d)}}],64106)}];
2
+
3
+ //# sourceMappingURL=_036rv.y._.js.map