@powerhousedao/connect 6.0.0-staging.3 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (659) hide show
  1. package/dist/AddDriveModal-ZK9-BWMB.js +92 -0
  2. package/dist/AddDriveModal-ZK9-BWMB.js.map +1 -0
  3. package/dist/ClearStorageModal-Bfb3ube7.js +47 -0
  4. package/dist/ClearStorageModal-Bfb3ube7.js.map +1 -0
  5. package/dist/CookiesPolicyModal-DiXQV82b.js +33 -0
  6. package/dist/CookiesPolicyModal-DiXQV82b.js.map +1 -0
  7. package/dist/CreateDocumentModal-BhJh4nWt.js +31 -0
  8. package/dist/CreateDocumentModal-BhJh4nWt.js.map +1 -0
  9. package/dist/DebugSettingsModal-CHmUFkkM.js +172 -0
  10. package/dist/DebugSettingsModal-CHmUFkkM.js.map +1 -0
  11. package/dist/DeleteDriveModal-CbuIdjKY.js +43 -0
  12. package/dist/DeleteDriveModal-CbuIdjKY.js.map +1 -0
  13. package/dist/DeleteItemModal-9ErYlauT.js +42 -0
  14. package/dist/DeleteItemModal-9ErYlauT.js.map +1 -0
  15. package/dist/DisclaimerModal-CfDeiBz8.js +24 -0
  16. package/dist/DisclaimerModal-CfDeiBz8.js.map +1 -0
  17. package/dist/DownloadDocumentWithErrorsModal-KZGWQ4J7.js +44 -0
  18. package/dist/DownloadDocumentWithErrorsModal-KZGWQ4J7.js.map +1 -0
  19. package/dist/DriveSettingsModal-DEk05PS7.js +51 -0
  20. package/dist/DriveSettingsModal-DEk05PS7.js.map +1 -0
  21. package/dist/InspectorModal-DV7lUbNo.js +375 -0
  22. package/dist/InspectorModal-DV7lUbNo.js.map +1 -0
  23. package/dist/MissingPackageModal-B2EAV_VJ.js +37 -0
  24. package/dist/MissingPackageModal-B2EAV_VJ.js.map +1 -0
  25. package/dist/SettingsModal-bLjRDGnI.js +297 -0
  26. package/dist/SettingsModal-bLjRDGnI.js.map +1 -0
  27. package/dist/UpgradeDriveModal-BwI5E5k3.js +34 -0
  28. package/dist/UpgradeDriveModal-BwI5E5k3.js.map +1 -0
  29. package/dist/build-info-_k6UQ_N_.js +15 -0
  30. package/dist/build-info-_k6UQ_N_.js.map +1 -0
  31. package/dist/connect.config-Cuh0hj_Q.js +142 -0
  32. package/dist/connect.config-Cuh0hj_Q.js.map +1 -0
  33. package/dist/i18n-4rfcgnb9.js +128 -0
  34. package/dist/i18n-4rfcgnb9.js.map +1 -0
  35. package/dist/load-B3msG504.js +112 -0
  36. package/dist/load-B3msG504.js.map +1 -0
  37. package/dist/main.d.ts +1 -0
  38. package/dist/main.js +12 -0
  39. package/dist/main.js.map +1 -0
  40. package/dist/package-_fdHqCU9.js +117 -0
  41. package/dist/package-_fdHqCU9.js.map +1 -0
  42. package/dist/packages.config-CiH8KJVN.js +32 -0
  43. package/dist/packages.config-CiH8KJVN.js.map +1 -0
  44. package/dist/pglite-runtime-Btp8ZXVH.js +135 -0
  45. package/dist/pglite-runtime-Btp8ZXVH.js.map +1 -0
  46. package/dist/pglite-seed-b1mJUaip.js +49 -0
  47. package/dist/pglite-seed-b1mJUaip.js.map +1 -0
  48. package/dist/pglite.worker.d.ts +1 -0
  49. package/dist/pglite.worker.js +18 -0
  50. package/dist/pglite.worker.js.map +1 -0
  51. package/dist/pglite.worker.legacy.d.ts +1 -0
  52. package/dist/pglite.worker.legacy.js +18 -0
  53. package/dist/pglite.worker.legacy.js.map +1 -0
  54. package/dist/reactor-DFuRedvV.js +913 -0
  55. package/dist/reactor-DFuRedvV.js.map +1 -0
  56. package/dist/registerServiceWorker-CMRF2LWE.js +79 -0
  57. package/dist/registerServiceWorker-CMRF2LWE.js.map +1 -0
  58. package/dist/sidebar-DUc9taAT.js +1473 -0
  59. package/dist/sidebar-DUc9taAT.js.map +1 -0
  60. package/dist/start-connect.d.ts +21 -0
  61. package/dist/start-connect.d.ts.map +1 -0
  62. package/dist/start-connect.js +19 -0
  63. package/dist/start-connect.js.map +1 -0
  64. package/{lib → dist}/style.css +2629 -705
  65. package/dist/toast-DnODOv28.js +23 -0
  66. package/dist/toast-DnODOv28.js.map +1 -0
  67. package/dist/useRegistryPackages-DK8swjWd.js +129 -0
  68. package/dist/useRegistryPackages-DK8swjWd.js.map +1 -0
  69. package/package.json +51 -106
  70. package/public/ph-packages.json +4 -0
  71. package/dist/assets/AddDriveModal-c390br6v.js +0 -2
  72. package/dist/assets/AddDriveModal-c390br6v.js.map +0 -1
  73. package/dist/assets/ClearStorageModal-CHSvDYT5.js +0 -2
  74. package/dist/assets/ClearStorageModal-CHSvDYT5.js.map +0 -1
  75. package/dist/assets/CookiesPolicyModal-Ch-VHBxa.js +0 -2
  76. package/dist/assets/CookiesPolicyModal-Ch-VHBxa.js.map +0 -1
  77. package/dist/assets/CreateDocumentModal-hkUyI6cu.js +0 -2
  78. package/dist/assets/CreateDocumentModal-hkUyI6cu.js.map +0 -1
  79. package/dist/assets/DebugSettingsModal-A4bdlWfB.js +0 -7
  80. package/dist/assets/DebugSettingsModal-A4bdlWfB.js.map +0 -1
  81. package/dist/assets/DeleteDriveModal-vaJNtOnq.js +0 -2
  82. package/dist/assets/DeleteDriveModal-vaJNtOnq.js.map +0 -1
  83. package/dist/assets/DeleteItemModal-Dcr2DBIJ.js +0 -2
  84. package/dist/assets/DeleteItemModal-Dcr2DBIJ.js.map +0 -1
  85. package/dist/assets/DisclaimerModal-DYg-H7Hb.js +0 -2
  86. package/dist/assets/DisclaimerModal-DYg-H7Hb.js.map +0 -1
  87. package/dist/assets/DriveSettingsModal-DpPhRgBP.js +0 -2
  88. package/dist/assets/DriveSettingsModal-DpPhRgBP.js.map +0 -1
  89. package/dist/assets/ExportDocumentWithErrorsModal-B-8LAxJA.js +0 -2
  90. package/dist/assets/ExportDocumentWithErrorsModal-B-8LAxJA.js.map +0 -1
  91. package/dist/assets/SettingsModal-CSPrMeTQ.js +0 -2
  92. package/dist/assets/SettingsModal-CSPrMeTQ.js.map +0 -1
  93. package/dist/assets/UpgradeDriveModal-C1EpIBBh.js +0 -2
  94. package/dist/assets/UpgradeDriveModal-C1EpIBBh.js.map +0 -1
  95. package/dist/assets/__vite-browser-external-BIHI7g3E.js +0 -2
  96. package/dist/assets/__vite-browser-external-BIHI7g3E.js.map +0 -1
  97. package/dist/assets/_virtual_ph_external-packages-CM1tCR4L.js +0 -2
  98. package/dist/assets/_virtual_ph_external-packages-CM1tCR4L.js.map +0 -1
  99. package/dist/assets/analytics-DMklmsZJ.js +0 -3
  100. package/dist/assets/analytics-DMklmsZJ.js.map +0 -1
  101. package/dist/assets/ccip-DDNUQMFj.js +0 -2
  102. package/dist/assets/ccip-DDNUQMFj.js.map +0 -1
  103. package/dist/assets/confirmation-modal-B-jgeNoG.js +0 -2
  104. package/dist/assets/confirmation-modal-B-jgeNoG.js.map +0 -1
  105. package/dist/assets/connect-loader-CvOC68Ih.mp4 +0 -0
  106. package/dist/assets/core-BmuZEe8D.js +0 -2
  107. package/dist/assets/core-BmuZEe8D.js.map +0 -1
  108. package/dist/assets/disclosure-D6kiOLoS.js +0 -2
  109. package/dist/assets/disclosure-D6kiOLoS.js.map +0 -1
  110. package/dist/assets/drive-by-id-oER3gqfy.js +0 -2
  111. package/dist/assets/drive-by-id-oER3gqfy.js.map +0 -1
  112. package/dist/assets/drives-DjHuIXXn.js +0 -2
  113. package/dist/assets/drives-DjHuIXXn.js.map +0 -1
  114. package/dist/assets/dropdown-menu-fQtgf99G.js +0 -2
  115. package/dist/assets/dropdown-menu-fQtgf99G.js.map +0 -1
  116. package/dist/assets/editor-D-pf74Xf.js +0 -46
  117. package/dist/assets/editor-D-pf74Xf.js.map +0 -1
  118. package/dist/assets/editor-sFc5GBjZ.js +0 -2
  119. package/dist/assets/editor-sFc5GBjZ.js.map +0 -1
  120. package/dist/assets/exports-CQVZRuji.js +0 -3
  121. package/dist/assets/exports-CQVZRuji.js.map +0 -1
  122. package/dist/assets/form-input-DQm-t5iF.js +0 -2
  123. package/dist/assets/form-input-DQm-t5iF.js.map +0 -1
  124. package/dist/assets/graphql-editor-CGpuW823.js +0 -74
  125. package/dist/assets/graphql-editor-CGpuW823.js.map +0 -1
  126. package/dist/assets/hmr-Cj7TGDQ6.js +0 -2
  127. package/dist/assets/hmr-Cj7TGDQ6.js.map +0 -1
  128. package/dist/assets/hmr-LMNkvzP7.js +0 -2
  129. package/dist/assets/hmr-LMNkvzP7.js.map +0 -1
  130. package/dist/assets/home-bg-BEhF9NuW.png +0 -0
  131. package/dist/assets/home-bg-BRYzhkhi.avif +0 -0
  132. package/dist/assets/hooks-ChjNy9DZ.js +0 -13
  133. package/dist/assets/hooks-ChjNy9DZ.js.map +0 -1
  134. package/dist/assets/index-B2HJvmmA.js +0 -2
  135. package/dist/assets/index-B2HJvmmA.js.map +0 -1
  136. package/dist/assets/index-BKVXgWGl.js +0 -2
  137. package/dist/assets/index-BKVXgWGl.js.map +0 -1
  138. package/dist/assets/index-BiwdySia.js +0 -222
  139. package/dist/assets/index-BiwdySia.js.map +0 -1
  140. package/dist/assets/index-CpH37puk.js +0 -226
  141. package/dist/assets/index-CpH37puk.js.map +0 -1
  142. package/dist/assets/index-DIWlTVaF.js +0 -2
  143. package/dist/assets/index-DIWlTVaF.js.map +0 -1
  144. package/dist/assets/index-DcvFnjR9.css +0 -1
  145. package/dist/assets/index-DrlXpV0G.js +0 -500
  146. package/dist/assets/index-DrlXpV0G.js.map +0 -1
  147. package/dist/assets/index-V63HK5F8.js +0 -2
  148. package/dist/assets/index-V63HK5F8.js.map +0 -1
  149. package/dist/assets/index-VLRv1f_d.js +0 -32
  150. package/dist/assets/index-VLRv1f_d.js.map +0 -1
  151. package/dist/assets/index.esm-Bd65uCL2.js +0 -2
  152. package/dist/assets/index.esm-Bd65uCL2.js.map +0 -1
  153. package/dist/assets/index.modern-DZugC2qd.js +0 -2
  154. package/dist/assets/index.modern-DZugC2qd.js.map +0 -1
  155. package/dist/assets/json-editor-Ce1YkwgB.js +0 -2
  156. package/dist/assets/json-editor-Ce1YkwgB.js.map +0 -1
  157. package/dist/assets/load-BlyOioLf.js +0 -4
  158. package/dist/assets/load-BlyOioLf.js.map +0 -1
  159. package/dist/assets/location-info-D9cQTxkD.js +0 -2
  160. package/dist/assets/location-info-D9cQTxkD.js.map +0 -1
  161. package/dist/assets/message-list-0lQEck9b.js +0 -2
  162. package/dist/assets/message-list-0lQEck9b.js.map +0 -1
  163. package/dist/assets/migrator-B-v3U2KW.js +0 -82
  164. package/dist/assets/migrator-B-v3U2KW.js.map +0 -1
  165. package/dist/assets/node-input-D6uQgUNe.js +0 -2
  166. package/dist/assets/node-input-D6uQgUNe.js.map +0 -1
  167. package/dist/assets/nodefs-DP_GcR4Q.js +0 -2
  168. package/dist/assets/nodefs-DP_GcR4Q.js.map +0 -1
  169. package/dist/assets/nodefs-_NvywCGz.js +0 -2
  170. package/dist/assets/nodefs-_NvywCGz.js.map +0 -1
  171. package/dist/assets/opfs-ahp-Bim8xYUr.js +0 -4
  172. package/dist/assets/opfs-ahp-Bim8xYUr.js.map +0 -1
  173. package/dist/assets/opfs-ahp-DN9nZuJs.js +0 -4
  174. package/dist/assets/opfs-ahp-DN9nZuJs.js.map +0 -1
  175. package/dist/assets/options-BdOX8f0Q.js +0 -2
  176. package/dist/assets/options-BdOX8f0Q.js.map +0 -1
  177. package/dist/assets/pg_dump-Cvfbb5Q0.wasm +0 -0
  178. package/dist/assets/pglite-COscPi1Y.data +0 -0
  179. package/dist/assets/pglite-CeYkvzd0.wasm +0 -0
  180. package/dist/assets/pglite.db-CVdlKzX2.js +0 -133
  181. package/dist/assets/pglite.db-CVdlKzX2.js.map +0 -1
  182. package/dist/assets/pglite.worker-Ca6pWokV.js +0 -142
  183. package/dist/assets/pglite.worker-Ca6pWokV.js.map +0 -1
  184. package/dist/assets/powerhouse-rounded-CeKGGUG4.png +0 -0
  185. package/dist/assets/processor-host-module-lnkhoS8u.js +0 -3
  186. package/dist/assets/processor-host-module-lnkhoS8u.js.map +0 -1
  187. package/dist/assets/queue-OvbfeDVp.js +0 -2
  188. package/dist/assets/queue-OvbfeDVp.js.map +0 -1
  189. package/dist/assets/reactor-BotX9Wt3.css +0 -1
  190. package/dist/assets/reactor-CantEXOn.js +0 -16
  191. package/dist/assets/reactor-CantEXOn.js.map +0 -1
  192. package/dist/assets/reactor-hbYPlhjt.js +0 -193
  193. package/dist/assets/reactor-hbYPlhjt.js.map +0 -1
  194. package/dist/assets/read-required-modal-BXfwSHO0.js +0 -2
  195. package/dist/assets/read-required-modal-BXfwSHO0.js.map +0 -1
  196. package/dist/assets/renown-DBquRpRZ.js +0 -2
  197. package/dist/assets/renown-DBquRpRZ.js.map +0 -1
  198. package/dist/assets/renown-short-hover-BiSLBV7L.png +0 -0
  199. package/dist/assets/rwa-report-Bb0W5-ac.png +0 -0
  200. package/dist/assets/state-schemas-CXAiPz0J.js +0 -3
  201. package/dist/assets/state-schemas-CXAiPz0J.js.map +0 -1
  202. package/dist/assets/tabs-B-QcOUjA.js +0 -2
  203. package/dist/assets/tabs-B-QcOUjA.js.map +0 -1
  204. package/dist/assets/use-get-switchboard-link-CezXVAll.js +0 -12
  205. package/dist/assets/use-get-switchboard-link-CezXVAll.js.map +0 -1
  206. package/dist/assets/user-permissions-ntgMmz-L.js +0 -2
  207. package/dist/assets/user-permissions-ntgMmz-L.js.map +0 -1
  208. package/dist/assets/vetra-Bu56PPb6.js +0 -221
  209. package/dist/assets/vetra-Bu56PPb6.js.map +0 -1
  210. package/dist/icon.ico +0 -0
  211. package/dist/index.html +0 -32
  212. package/dist/robots.txt +0 -3
  213. package/dist/settings.png +0 -0
  214. package/heroku/Dockerfile +0 -101
  215. package/heroku/Procfile +0 -1
  216. package/heroku/config/nginx.conf.template +0 -77
  217. package/heroku/heroku-entrypoint.sh +0 -38
  218. package/lib/cypress/e2e/navigation.cy.d.ts +0 -2
  219. package/lib/cypress/e2e/navigation.cy.d.ts.map +0 -1
  220. package/lib/cypress/e2e/navigation.cy.js +0 -221
  221. package/lib/cypress/e2e/navigation.cy.js.map +0 -1
  222. package/lib/cypress/e2e/utils/index.d.ts +0 -15
  223. package/lib/cypress/e2e/utils/index.d.ts.map +0 -1
  224. package/lib/cypress/e2e/utils/index.js +0 -121
  225. package/lib/cypress/e2e/utils/index.js.map +0 -1
  226. package/lib/cypress/support/commands.d.ts +0 -2
  227. package/lib/cypress/support/commands.d.ts.map +0 -1
  228. package/lib/cypress/support/commands.js +0 -29
  229. package/lib/cypress/support/commands.js.map +0 -1
  230. package/lib/cypress/support/e2e.d.ts +0 -2
  231. package/lib/cypress/support/e2e.d.ts.map +0 -1
  232. package/lib/cypress/support/e2e.js +0 -19
  233. package/lib/cypress/support/e2e.js.map +0 -1
  234. package/lib/cypress.config.d.ts +0 -3
  235. package/lib/cypress.config.d.ts.map +0 -1
  236. package/lib/cypress.config.js +0 -15
  237. package/lib/cypress.config.js.map +0 -1
  238. package/lib/package.copy.json +0 -168
  239. package/lib/scripts/render-skeleton.d.ts +0 -2
  240. package/lib/scripts/render-skeleton.d.ts.map +0 -1
  241. package/lib/scripts/render-skeleton.js +0 -11
  242. package/lib/scripts/render-skeleton.js.map +0 -1
  243. package/lib/src/components/analytics.d.ts +0 -8
  244. package/lib/src/components/analytics.d.ts.map +0 -1
  245. package/lib/src/components/analytics.js +0 -30
  246. package/lib/src/components/analytics.js.map +0 -1
  247. package/lib/src/components/app-loader.d.ts +0 -3
  248. package/lib/src/components/app-loader.d.ts.map +0 -1
  249. package/lib/src/components/app-loader.js +0 -9
  250. package/lib/src/components/app-loader.js.map +0 -1
  251. package/lib/src/components/app-skeleton.d.ts +0 -3
  252. package/lib/src/components/app-skeleton.d.ts.map +0 -1
  253. package/lib/src/components/app-skeleton.js +0 -38
  254. package/lib/src/components/app-skeleton.js.map +0 -1
  255. package/lib/src/components/app.d.ts +0 -2
  256. package/lib/src/components/app.d.ts.map +0 -1
  257. package/lib/src/components/app.js +0 -29
  258. package/lib/src/components/app.js.map +0 -1
  259. package/lib/src/components/button.d.ts +0 -3
  260. package/lib/src/components/button.d.ts.map +0 -1
  261. package/lib/src/components/button.js +0 -7
  262. package/lib/src/components/button.js.map +0 -1
  263. package/lib/src/components/cookie-banner.d.ts +0 -2
  264. package/lib/src/components/cookie-banner.d.ts.map +0 -1
  265. package/lib/src/components/cookie-banner.js +0 -48
  266. package/lib/src/components/cookie-banner.js.map +0 -1
  267. package/lib/src/components/document-editor-container.d.ts +0 -2
  268. package/lib/src/components/document-editor-container.d.ts.map +0 -1
  269. package/lib/src/components/document-editor-container.js +0 -38
  270. package/lib/src/components/document-editor-container.js.map +0 -1
  271. package/lib/src/components/dots-loader.d.ts +0 -2
  272. package/lib/src/components/dots-loader.d.ts.map +0 -1
  273. package/lib/src/components/dots-loader.js +0 -15
  274. package/lib/src/components/dots-loader.js.map +0 -1
  275. package/lib/src/components/drive-editor-container.d.ts +0 -2
  276. package/lib/src/components/drive-editor-container.d.ts.map +0 -1
  277. package/lib/src/components/drive-editor-container.js +0 -22
  278. package/lib/src/components/drive-editor-container.js.map +0 -1
  279. package/lib/src/components/drive-icon.d.ts +0 -5
  280. package/lib/src/components/drive-icon.d.ts.map +0 -1
  281. package/lib/src/components/drive-icon.js +0 -22
  282. package/lib/src/components/drive-icon.js.map +0 -1
  283. package/lib/src/components/editor-loader.d.ts +0 -9
  284. package/lib/src/components/editor-loader.d.ts.map +0 -1
  285. package/lib/src/components/editor-loader.js +0 -19
  286. package/lib/src/components/editor-loader.js.map +0 -1
  287. package/lib/src/components/editors.d.ts +0 -10
  288. package/lib/src/components/editors.d.ts.map +0 -1
  289. package/lib/src/components/editors.js +0 -94
  290. package/lib/src/components/editors.js.map +0 -1
  291. package/lib/src/components/error-boundary.d.ts +0 -103
  292. package/lib/src/components/error-boundary.d.ts.map +0 -1
  293. package/lib/src/components/error-boundary.js +0 -104
  294. package/lib/src/components/error-boundary.js.map +0 -1
  295. package/lib/src/components/footer.d.ts +0 -2
  296. package/lib/src/components/footer.d.ts.map +0 -1
  297. package/lib/src/components/footer.js +0 -16
  298. package/lib/src/components/footer.js.map +0 -1
  299. package/lib/src/components/index.d.ts +0 -21
  300. package/lib/src/components/index.d.ts.map +0 -1
  301. package/lib/src/components/index.js +0 -21
  302. package/lib/src/components/index.js.map +0 -1
  303. package/lib/src/components/load.d.ts +0 -8
  304. package/lib/src/components/load.d.ts.map +0 -1
  305. package/lib/src/components/load.js +0 -17
  306. package/lib/src/components/load.js.map +0 -1
  307. package/lib/src/components/login.d.ts +0 -2
  308. package/lib/src/components/login.d.ts.map +0 -1
  309. package/lib/src/components/login.js +0 -12
  310. package/lib/src/components/login.js.map +0 -1
  311. package/lib/src/components/modal/modals/AddDriveModal.d.ts +0 -2
  312. package/lib/src/components/modal/modals/AddDriveModal.d.ts.map +0 -1
  313. package/lib/src/components/modal/modals/AddDriveModal.js +0 -90
  314. package/lib/src/components/modal/modals/AddDriveModal.js.map +0 -1
  315. package/lib/src/components/modal/modals/ClearStorageModal.d.ts +0 -2
  316. package/lib/src/components/modal/modals/ClearStorageModal.d.ts.map +0 -1
  317. package/lib/src/components/modal/modals/ClearStorageModal.js +0 -35
  318. package/lib/src/components/modal/modals/ClearStorageModal.js.map +0 -1
  319. package/lib/src/components/modal/modals/CookiesPolicyModal.d.ts +0 -2
  320. package/lib/src/components/modal/modals/CookiesPolicyModal.d.ts.map +0 -1
  321. package/lib/src/components/modal/modals/CookiesPolicyModal.js +0 -16
  322. package/lib/src/components/modal/modals/CookiesPolicyModal.js.map +0 -1
  323. package/lib/src/components/modal/modals/CreateDocumentModal.d.ts +0 -2
  324. package/lib/src/components/modal/modals/CreateDocumentModal.d.ts.map +0 -1
  325. package/lib/src/components/modal/modals/CreateDocumentModal.js +0 -24
  326. package/lib/src/components/modal/modals/CreateDocumentModal.js.map +0 -1
  327. package/lib/src/components/modal/modals/DebugSettingsModal.d.ts +0 -2
  328. package/lib/src/components/modal/modals/DebugSettingsModal.d.ts.map +0 -1
  329. package/lib/src/components/modal/modals/DebugSettingsModal.js +0 -108
  330. package/lib/src/components/modal/modals/DebugSettingsModal.js.map +0 -1
  331. package/lib/src/components/modal/modals/DeleteDriveModal.d.ts +0 -2
  332. package/lib/src/components/modal/modals/DeleteDriveModal.d.ts.map +0 -1
  333. package/lib/src/components/modal/modals/DeleteDriveModal.js +0 -32
  334. package/lib/src/components/modal/modals/DeleteDriveModal.js.map +0 -1
  335. package/lib/src/components/modal/modals/DeleteItemModal.d.ts +0 -3
  336. package/lib/src/components/modal/modals/DeleteItemModal.d.ts.map +0 -1
  337. package/lib/src/components/modal/modals/DeleteItemModal.js +0 -33
  338. package/lib/src/components/modal/modals/DeleteItemModal.js.map +0 -1
  339. package/lib/src/components/modal/modals/DisclaimerModal.d.ts +0 -3
  340. package/lib/src/components/modal/modals/DisclaimerModal.d.ts.map +0 -1
  341. package/lib/src/components/modal/modals/DisclaimerModal.js +0 -12
  342. package/lib/src/components/modal/modals/DisclaimerModal.js.map +0 -1
  343. package/lib/src/components/modal/modals/DriveSettingsModal.d.ts +0 -2
  344. package/lib/src/components/modal/modals/DriveSettingsModal.d.ts.map +0 -1
  345. package/lib/src/components/modal/modals/DriveSettingsModal.js +0 -33
  346. package/lib/src/components/modal/modals/DriveSettingsModal.js.map +0 -1
  347. package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts +0 -2
  348. package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.d.ts.map +0 -1
  349. package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.js +0 -30
  350. package/lib/src/components/modal/modals/ExportDocumentWithErrorsModal.js.map +0 -1
  351. package/lib/src/components/modal/modals/InspectorModal/InspectorModal.d.ts +0 -2
  352. package/lib/src/components/modal/modals/InspectorModal/InspectorModal.d.ts.map +0 -1
  353. package/lib/src/components/modal/modals/InspectorModal/InspectorModal.js +0 -32
  354. package/lib/src/components/modal/modals/InspectorModal/InspectorModal.js.map +0 -1
  355. package/lib/src/components/modal/modals/InspectorModal/index.d.ts +0 -2
  356. package/lib/src/components/modal/modals/InspectorModal/index.d.ts.map +0 -1
  357. package/lib/src/components/modal/modals/InspectorModal/index.js +0 -2
  358. package/lib/src/components/modal/modals/InspectorModal/index.js.map +0 -1
  359. package/lib/src/components/modal/modals/InspectorModal/useDbExplorer.d.ts +0 -31
  360. package/lib/src/components/modal/modals/InspectorModal/useDbExplorer.d.ts.map +0 -1
  361. package/lib/src/components/modal/modals/InspectorModal/useDbExplorer.js +0 -211
  362. package/lib/src/components/modal/modals/InspectorModal/useDbExplorer.js.map +0 -1
  363. package/lib/src/components/modal/modals/InspectorModal/useQueueInspector.d.ts +0 -3
  364. package/lib/src/components/modal/modals/InspectorModal/useQueueInspector.d.ts.map +0 -1
  365. package/lib/src/components/modal/modals/InspectorModal/useQueueInspector.js +0 -61
  366. package/lib/src/components/modal/modals/InspectorModal/useQueueInspector.js.map +0 -1
  367. package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.d.ts +0 -6
  368. package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.d.ts.map +0 -1
  369. package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.js +0 -17
  370. package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.js.map +0 -1
  371. package/lib/src/components/modal/modals/SettingsModal.d.ts +0 -3
  372. package/lib/src/components/modal/modals/SettingsModal.d.ts.map +0 -1
  373. package/lib/src/components/modal/modals/SettingsModal.js +0 -48
  374. package/lib/src/components/modal/modals/SettingsModal.js.map +0 -1
  375. package/lib/src/components/modal/modals/UpgradeDriveModal.d.ts +0 -3
  376. package/lib/src/components/modal/modals/UpgradeDriveModal.d.ts.map +0 -1
  377. package/lib/src/components/modal/modals/UpgradeDriveModal.js +0 -21
  378. package/lib/src/components/modal/modals/UpgradeDriveModal.js.map +0 -1
  379. package/lib/src/components/modal/modals/settings/about.d.ts +0 -2
  380. package/lib/src/components/modal/modals/settings/about.d.ts.map +0 -1
  381. package/lib/src/components/modal/modals/settings/about.js +0 -10
  382. package/lib/src/components/modal/modals/settings/about.js.map +0 -1
  383. package/lib/src/components/modal/modals/settings/danger-zone.d.ts +0 -2
  384. package/lib/src/components/modal/modals/settings/danger-zone.d.ts.map +0 -1
  385. package/lib/src/components/modal/modals/settings/danger-zone.js +0 -15
  386. package/lib/src/components/modal/modals/settings/danger-zone.js.map +0 -1
  387. package/lib/src/components/modal/modals/settings/default-editor.d.ts +0 -2
  388. package/lib/src/components/modal/modals/settings/default-editor.d.ts.map +0 -1
  389. package/lib/src/components/modal/modals/settings/default-editor.js +0 -18
  390. package/lib/src/components/modal/modals/settings/default-editor.js.map +0 -1
  391. package/lib/src/components/modal/modals/settings/package-manager.d.ts +0 -3
  392. package/lib/src/components/modal/modals/settings/package-manager.d.ts.map +0 -1
  393. package/lib/src/components/modal/modals/settings/package-manager.js +0 -87
  394. package/lib/src/components/modal/modals/settings/package-manager.js.map +0 -1
  395. package/lib/src/components/modal/modals-container.d.ts +0 -2
  396. package/lib/src/components/modal/modals-container.d.ts.map +0 -1
  397. package/lib/src/components/modal/modals-container.js +0 -70
  398. package/lib/src/components/modal/modals-container.js.map +0 -1
  399. package/lib/src/components/ph-logo.d.ts +0 -2
  400. package/lib/src/components/ph-logo.d.ts.map +0 -1
  401. package/lib/src/components/ph-logo.js +0 -7
  402. package/lib/src/components/ph-logo.js.map +0 -1
  403. package/lib/src/components/reload-connect-toast.d.ts +0 -2
  404. package/lib/src/components/reload-connect-toast.d.ts.map +0 -1
  405. package/lib/src/components/reload-connect-toast.js +0 -7
  406. package/lib/src/components/reload-connect-toast.js.map +0 -1
  407. package/lib/src/components/root.d.ts +0 -2
  408. package/lib/src/components/root.d.ts.map +0 -1
  409. package/lib/src/components/root.js +0 -8
  410. package/lib/src/components/root.js.map +0 -1
  411. package/lib/src/components/router.d.ts +0 -2
  412. package/lib/src/components/router.d.ts.map +0 -1
  413. package/lib/src/components/router.js +0 -41
  414. package/lib/src/components/router.js.map +0 -1
  415. package/lib/src/components/search-bar.d.ts +0 -2
  416. package/lib/src/components/search-bar.d.ts.map +0 -1
  417. package/lib/src/components/search-bar.js +0 -36
  418. package/lib/src/components/search-bar.js.map +0 -1
  419. package/lib/src/components/sidebar.d.ts +0 -2
  420. package/lib/src/components/sidebar.d.ts.map +0 -1
  421. package/lib/src/components/sidebar.js +0 -28
  422. package/lib/src/components/sidebar.js.map +0 -1
  423. package/lib/src/connect.config.d.ts +0 -115
  424. package/lib/src/connect.config.d.ts.map +0 -1
  425. package/lib/src/connect.config.js +0 -148
  426. package/lib/src/connect.config.js.map +0 -1
  427. package/lib/src/context/index.d.ts +0 -4
  428. package/lib/src/context/index.d.ts.map +0 -1
  429. package/lib/src/context/index.js +0 -4
  430. package/lib/src/context/index.js.map +0 -1
  431. package/lib/src/context/processor-manager.d.ts +0 -2
  432. package/lib/src/context/processor-manager.d.ts.map +0 -1
  433. package/lib/src/context/processor-manager.js +0 -2
  434. package/lib/src/context/processor-manager.js.map +0 -1
  435. package/lib/src/context/processor-manager.old.d.ts +0 -3
  436. package/lib/src/context/processor-manager.old.d.ts.map +0 -1
  437. package/lib/src/context/processor-manager.old.js +0 -189
  438. package/lib/src/context/processor-manager.old.js.map +0 -1
  439. package/lib/src/context/read-mode.d.ts +0 -2
  440. package/lib/src/context/read-mode.d.ts.map +0 -1
  441. package/lib/src/context/read-mode.js +0 -219
  442. package/lib/src/context/read-mode.js.map +0 -1
  443. package/lib/src/context/sentry-provider.d.ts +0 -6
  444. package/lib/src/context/sentry-provider.d.ts.map +0 -1
  445. package/lib/src/context/sentry-provider.js +0 -6
  446. package/lib/src/context/sentry-provider.js.map +0 -1
  447. package/lib/src/feature-flags.d.ts +0 -35
  448. package/lib/src/feature-flags.d.ts.map +0 -1
  449. package/lib/src/feature-flags.js +0 -150
  450. package/lib/src/feature-flags.js.map +0 -1
  451. package/lib/src/globals.d.ts +0 -9
  452. package/lib/src/globals.d.ts.map +0 -1
  453. package/lib/src/globals.js +0 -2
  454. package/lib/src/globals.js.map +0 -1
  455. package/lib/src/hmr.d.ts +0 -3
  456. package/lib/src/hmr.d.ts.map +0 -1
  457. package/lib/src/hmr.js +0 -2
  458. package/lib/src/hmr.js.map +0 -1
  459. package/lib/src/hooks/index.d.ts +0 -10
  460. package/lib/src/hooks/index.d.ts.map +0 -1
  461. package/lib/src/hooks/index.js +0 -10
  462. package/lib/src/hooks/index.js.map +0 -1
  463. package/lib/src/hooks/useAcceptedCookies.d.ts +0 -9
  464. package/lib/src/hooks/useAcceptedCookies.d.ts.map +0 -1
  465. package/lib/src/hooks/useAcceptedCookies.js +0 -34
  466. package/lib/src/hooks/useAcceptedCookies.js.map +0 -1
  467. package/lib/src/hooks/useCheckLatestVersion.d.ts +0 -2
  468. package/lib/src/hooks/useCheckLatestVersion.d.ts.map +0 -1
  469. package/lib/src/hooks/useCheckLatestVersion.js +0 -33
  470. package/lib/src/hooks/useCheckLatestVersion.js.map +0 -1
  471. package/lib/src/hooks/useClientErrorHandler.d.ts +0 -6
  472. package/lib/src/hooks/useClientErrorHandler.d.ts.map +0 -1
  473. package/lib/src/hooks/useClientErrorHandler.js +0 -96
  474. package/lib/src/hooks/useClientErrorHandler.js.map +0 -1
  475. package/lib/src/hooks/useCookieBanner.d.ts +0 -5
  476. package/lib/src/hooks/useCookieBanner.d.ts.map +0 -1
  477. package/lib/src/hooks/useCookieBanner.js +0 -32
  478. package/lib/src/hooks/useCookieBanner.js.map +0 -1
  479. package/lib/src/hooks/useInitSentry.d.ts +0 -2
  480. package/lib/src/hooks/useInitSentry.d.ts.map +0 -1
  481. package/lib/src/hooks/useInitSentry.js +0 -80
  482. package/lib/src/hooks/useInitSentry.js.map +0 -1
  483. package/lib/src/hooks/useNodeActions.d.ts +0 -6
  484. package/lib/src/hooks/useNodeActions.d.ts.map +0 -1
  485. package/lib/src/hooks/useNodeActions.js +0 -35
  486. package/lib/src/hooks/useNodeActions.js.map +0 -1
  487. package/lib/src/hooks/useUndoRedoShortcuts.d.ts +0 -8
  488. package/lib/src/hooks/useUndoRedoShortcuts.d.ts.map +0 -1
  489. package/lib/src/hooks/useUndoRedoShortcuts.js +0 -26
  490. package/lib/src/hooks/useUndoRedoShortcuts.js.map +0 -1
  491. package/lib/src/hooks/useWindowSize.d.ts +0 -5
  492. package/lib/src/hooks/useWindowSize.d.ts.map +0 -1
  493. package/lib/src/hooks/useWindowSize.js +0 -21
  494. package/lib/src/hooks/useWindowSize.js.map +0 -1
  495. package/lib/src/hooks/utils.d.ts +0 -7
  496. package/lib/src/hooks/utils.d.ts.map +0 -1
  497. package/lib/src/hooks/utils.js +0 -46
  498. package/lib/src/hooks/utils.js.map +0 -1
  499. package/lib/src/i18n/index.d.ts +0 -4
  500. package/lib/src/i18n/index.d.ts.map +0 -1
  501. package/lib/src/i18n/index.js +0 -26
  502. package/lib/src/i18n/index.js.map +0 -1
  503. package/lib/src/i18n/locales/en.json +0 -114
  504. package/lib/src/index.d.ts +0 -2
  505. package/lib/src/index.d.ts.map +0 -1
  506. package/lib/src/index.js +0 -2
  507. package/lib/src/index.js.map +0 -1
  508. package/lib/src/main.d.ts +0 -2
  509. package/lib/src/main.d.ts.map +0 -1
  510. package/lib/src/main.js +0 -8
  511. package/lib/src/main.js.map +0 -1
  512. package/lib/src/pages/content.d.ts +0 -2
  513. package/lib/src/pages/content.d.ts.map +0 -1
  514. package/lib/src/pages/content.js +0 -39
  515. package/lib/src/pages/content.js.map +0 -1
  516. package/lib/src/pages/demo/atlas-import.d.ts +0 -2
  517. package/lib/src/pages/demo/atlas-import.d.ts.map +0 -1
  518. package/lib/src/pages/demo/atlas-import.js +0 -122
  519. package/lib/src/pages/demo/atlas-import.js.map +0 -1
  520. package/lib/src/pages/index.d.ts +0 -4
  521. package/lib/src/pages/index.d.ts.map +0 -1
  522. package/lib/src/pages/index.js +0 -4
  523. package/lib/src/pages/index.js.map +0 -1
  524. package/lib/src/pages/settings.d.ts +0 -4
  525. package/lib/src/pages/settings.d.ts.map +0 -1
  526. package/lib/src/pages/settings.js +0 -9
  527. package/lib/src/pages/settings.js.map +0 -1
  528. package/lib/src/pglite.db.d.ts +0 -2
  529. package/lib/src/pglite.db.d.ts.map +0 -1
  530. package/lib/src/pglite.db.js +0 -19
  531. package/lib/src/pglite.db.js.map +0 -1
  532. package/lib/src/pglite.worker.d.ts +0 -2
  533. package/lib/src/pglite.worker.d.ts.map +0 -1
  534. package/lib/src/pglite.worker.js +0 -15
  535. package/lib/src/pglite.worker.js.map +0 -1
  536. package/lib/src/services/hmr.d.ts +0 -13
  537. package/lib/src/services/hmr.d.ts.map +0 -1
  538. package/lib/src/services/hmr.js +0 -85
  539. package/lib/src/services/hmr.js.map +0 -1
  540. package/lib/src/services/index.d.ts +0 -7
  541. package/lib/src/services/index.d.ts.map +0 -1
  542. package/lib/src/services/index.js +0 -6
  543. package/lib/src/services/index.js.map +0 -1
  544. package/lib/src/services/logger.d.ts +0 -2
  545. package/lib/src/services/logger.d.ts.map +0 -1
  546. package/lib/src/services/logger.js +0 -28
  547. package/lib/src/services/logger.js.map +0 -1
  548. package/lib/src/services/storage/base-storage.d.ts +0 -9
  549. package/lib/src/services/storage/base-storage.d.ts.map +0 -1
  550. package/lib/src/services/storage/base-storage.js +0 -21
  551. package/lib/src/services/storage/base-storage.js.map +0 -1
  552. package/lib/src/services/storage/browser.d.ts +0 -5
  553. package/lib/src/services/storage/browser.d.ts.map +0 -1
  554. package/lib/src/services/storage/browser.js +0 -25
  555. package/lib/src/services/storage/browser.js.map +0 -1
  556. package/lib/src/services/storage/types.d.ts +0 -6
  557. package/lib/src/services/storage/types.d.ts.map +0 -1
  558. package/lib/src/services/storage/types.js +0 -2
  559. package/lib/src/services/storage/types.js.map +0 -1
  560. package/lib/src/services/toast.d.ts +0 -8
  561. package/lib/src/services/toast.d.ts.map +0 -1
  562. package/lib/src/services/toast.js +0 -11
  563. package/lib/src/services/toast.js.map +0 -1
  564. package/lib/src/store/document-model.d.ts +0 -3
  565. package/lib/src/store/document-model.d.ts.map +0 -1
  566. package/lib/src/store/document-model.js +0 -80
  567. package/lib/src/store/document-model.js.map +0 -1
  568. package/lib/src/store/editor.d.ts +0 -5
  569. package/lib/src/store/editor.d.ts.map +0 -1
  570. package/lib/src/store/editor.js +0 -29
  571. package/lib/src/store/editor.js.map +0 -1
  572. package/lib/src/store/external-packages.d.ts +0 -4
  573. package/lib/src/store/external-packages.d.ts.map +0 -1
  574. package/lib/src/store/external-packages.js +0 -36
  575. package/lib/src/store/external-packages.js.map +0 -1
  576. package/lib/src/store/index.d.ts +0 -7
  577. package/lib/src/store/index.d.ts.map +0 -1
  578. package/lib/src/store/index.js +0 -7
  579. package/lib/src/store/index.js.map +0 -1
  580. package/lib/src/store/processor-host-module.d.ts +0 -3
  581. package/lib/src/store/processor-host-module.d.ts.map +0 -1
  582. package/lib/src/store/processor-host-module.js +0 -22
  583. package/lib/src/store/processor-host-module.js.map +0 -1
  584. package/lib/src/store/reactor.d.ts +0 -3
  585. package/lib/src/store/reactor.d.ts.map +0 -1
  586. package/lib/src/store/reactor.js +0 -165
  587. package/lib/src/store/reactor.js.map +0 -1
  588. package/lib/src/store/user.d.ts +0 -2
  589. package/lib/src/store/user.d.ts.map +0 -1
  590. package/lib/src/store/user.js +0 -16
  591. package/lib/src/store/user.js.map +0 -1
  592. package/lib/src/store/utils.d.ts +0 -2
  593. package/lib/src/store/utils.d.ts.map +0 -1
  594. package/lib/src/store/utils.js +0 -59
  595. package/lib/src/store/utils.js.map +0 -1
  596. package/lib/src/utils/browser.d.ts +0 -2
  597. package/lib/src/utils/browser.d.ts.map +0 -1
  598. package/lib/src/utils/browser.js +0 -9
  599. package/lib/src/utils/browser.js.map +0 -1
  600. package/lib/src/utils/document-editor-debug-tools.d.ts +0 -17
  601. package/lib/src/utils/document-editor-debug-tools.d.ts.map +0 -1
  602. package/lib/src/utils/document-editor-debug-tools.js +0 -55
  603. package/lib/src/utils/document-editor-debug-tools.js.map +0 -1
  604. package/lib/src/utils/drive-preservation.d.ts +0 -19
  605. package/lib/src/utils/drive-preservation.d.ts.map +0 -1
  606. package/lib/src/utils/drive-preservation.js +0 -51
  607. package/lib/src/utils/drive-preservation.js.map +0 -1
  608. package/lib/src/utils/drive-sections.d.ts +0 -31
  609. package/lib/src/utils/drive-sections.d.ts.map +0 -1
  610. package/lib/src/utils/drive-sections.js +0 -63
  611. package/lib/src/utils/drive-sections.js.map +0 -1
  612. package/lib/src/utils/index.d.ts +0 -12
  613. package/lib/src/utils/index.d.ts.map +0 -1
  614. package/lib/src/utils/index.js +0 -12
  615. package/lib/src/utils/index.js.map +0 -1
  616. package/lib/src/utils/join.d.ts +0 -2
  617. package/lib/src/utils/join.d.ts.map +0 -1
  618. package/lib/src/utils/join.js +0 -11
  619. package/lib/src/utils/join.js.map +0 -1
  620. package/lib/src/utils/openUrl.d.ts +0 -2
  621. package/lib/src/utils/openUrl.d.ts.map +0 -1
  622. package/lib/src/utils/openUrl.js +0 -3
  623. package/lib/src/utils/openUrl.js.map +0 -1
  624. package/lib/src/utils/path.d.ts +0 -4
  625. package/lib/src/utils/path.d.ts.map +0 -1
  626. package/lib/src/utils/path.js +0 -17
  627. package/lib/src/utils/path.js.map +0 -1
  628. package/lib/src/utils/reactor.d.ts +0 -19
  629. package/lib/src/utils/reactor.d.ts.map +0 -1
  630. package/lib/src/utils/reactor.js +0 -67
  631. package/lib/src/utils/reactor.js.map +0 -1
  632. package/lib/src/utils/registerServiceWorker.d.ts +0 -12
  633. package/lib/src/utils/registerServiceWorker.d.ts.map +0 -1
  634. package/lib/src/utils/registerServiceWorker.js +0 -97
  635. package/lib/src/utils/registerServiceWorker.js.map +0 -1
  636. package/lib/src/utils/signature.d.ts +0 -4
  637. package/lib/src/utils/signature.d.ts.map +0 -1
  638. package/lib/src/utils/signature.js +0 -36
  639. package/lib/src/utils/signature.js.map +0 -1
  640. package/lib/src/utils/slug.d.ts +0 -2
  641. package/lib/src/utils/slug.d.ts.map +0 -1
  642. package/lib/src/utils/slug.js +0 -4
  643. package/lib/src/utils/slug.js.map +0 -1
  644. package/lib/test/utils/signer.test.d.ts +0 -2
  645. package/lib/test/utils/signer.test.d.ts.map +0 -1
  646. package/lib/test/utils/signer.test.js +0 -327
  647. package/lib/test/utils/signer.test.js.map +0 -1
  648. package/lib/tsconfig.tsbuildinfo +0 -1
  649. package/lib/vite.config.d.ts +0 -3
  650. package/lib/vite.config.d.ts.map +0 -1
  651. package/lib/vite.config.js +0 -27
  652. package/lib/vite.config.js.map +0 -1
  653. package/lib/vitest.config.d.ts +0 -3
  654. package/lib/vitest.config.d.ts.map +0 -1
  655. package/lib/vitest.config.js +0 -8
  656. package/lib/vitest.config.js.map +0 -1
  657. package/nginx.conf +0 -77
  658. package/package.copy.json +0 -168
  659. package/src/index.css +0 -5
@@ -1,2 +0,0 @@
1
- class Br{get prefix(){return""}push(e){}pop(){}popAndReturn(e){return e}async record(e,t){return await t()}recordSync(e,t){return t()}}var Kr;(r=>{r[r.AnalyticsPath=0]="AnalyticsPath",r[r.AnalyticsPathSegment=1]="AnalyticsPathSegment",r[r.AnalyticsPeriod=2]="AnalyticsPeriod"})(Kr||={});class z{get segments(){return this._segments}_segments;static fromString(e){const t=Ne(e,"/").map(n=>E.fromString(n));return new z(t)}static fromStringArray(e){return new z(e.map(t=>E.fromString(t)))}static fromArray(e){return new z(e)}static fromJSON(e){const t=e._v.split("/").map(n=>E.fromString(n));return new z(t)}constructor(e){this._segments=e}toJSON(){return{_t:0,_v:this.toString()}}toString(e=""){return this._segments.map(t=>t.toString()).join("/")+e}firstSegment(){return this._segments.length>0?this._segments[0]:new E}reduce(){const e=this._segments.slice(1);return e.length<1&&e.push(new E),new z(e)}applyLod(e){const t=[...this._segments];for(;t.length<e;)t.push(new E);return new z(t.slice(0,e))}}class E{get filters(){return this._filters}get groups(){return this._groups}_filters=null;_groups=null;static fromString(e){const t=Ne(e,":");let n;t[0]==="*"?n=null:n=Ne(t[0],",").map(i=>E.unescape(i));let s;return t[1]===void 0||t[1].length<1?s=[]:t[1]==="*"?s=null:s=Ne(t[1],",").map(i=>E.unescape(i)),new E(n,s)}static escape(e){return e.replace(/(\\|:|\/|,)/gi,"\\$1")}static unescape(e){return e.replace(/\\(.)/gi,"$1")}constructor(e=null,t=[]){this._filters=e,this._groups=t}toJSON(){return{_t:1,_v:this.toString()}}toString(){let e="";return this._filters===null?e+="*":e+=this._filters.map(t=>E.escape(t)).join(","),this._groups===null?e+=":*":this._groups.length>0&&(e+=":"+this._groups.map(t=>E.escape(t)).join(",")),e}}var Xr={":":new RegExp("(?<!\\\\):"),",":new RegExp("(?<!\\\\),"),"/":new RegExp("(?<!\\\\)\\/")};function Ne(r,e){let t="@@";for(;r.indexOf(t)>-1;)t+="@";return r.replaceAll("\\\\",t).split(Xr[e]).map(n=>n.replaceAll(t,"\\\\"))}var en;(r=>{r[r.Total=0]="Total",r[r.Annual=1]="Annual",r[r.SemiAnnual=2]="SemiAnnual",r[r.Quarterly=3]="Quarterly",r[r.Monthly=4]="Monthly",r[r.Weekly=5]="Weekly",r[r.Daily=6]="Daily",r[r.Hourly=7]="Hourly"})(en||={});class j extends Error{}class tn extends j{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class rn extends j{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class nn extends j{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class X extends j{}class Pt extends j{constructor(e){super(`Invalid unit ${e}`)}}class M extends j{}class R extends j{constructor(){super("Zone is an abstract class")}}var c="numeric",L="short",I="long",Ee={year:c,month:c,day:c},qt={year:c,month:L,day:c},sn={year:c,month:L,day:c,weekday:L},Jt={year:c,month:I,day:c},jt={year:c,month:I,day:c,weekday:I},Gt={hour:c,minute:c},Qt={hour:c,minute:c,second:c},Bt={hour:c,minute:c,second:c,timeZoneName:L},Kt={hour:c,minute:c,second:c,timeZoneName:I},Xt={hour:c,minute:c,hourCycle:"h23"},er={hour:c,minute:c,second:c,hourCycle:"h23"},tr={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:L},rr={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:I},nr={year:c,month:c,day:c,hour:c,minute:c},sr={year:c,month:c,day:c,hour:c,minute:c,second:c},ir={year:c,month:L,day:c,hour:c,minute:c},ar={year:c,month:L,day:c,hour:c,minute:c,second:c},an={year:c,month:L,day:c,weekday:L,hour:c,minute:c},or={year:c,month:I,day:c,hour:c,minute:c,timeZoneName:L},ur={year:c,month:I,day:c,hour:c,minute:c,second:c,timeZoneName:L},lr={year:c,month:I,day:c,weekday:I,hour:c,minute:c,timeZoneName:I},cr={year:c,month:I,day:c,weekday:I,hour:c,minute:c,second:c,timeZoneName:I};class ge{get type(){throw new R}get name(){throw new R}get ianaName(){return this.name}get isUniversal(){throw new R}offsetName(e,t){throw new R}formatOffset(e,t){throw new R}offset(e){throw new R}equals(e){throw new R}get isValid(){throw new R}}var Ue=null;class Fe extends ge{static get instance(){return Ue===null&&(Ue=new Fe),Ue}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Sr(e,t,n)}formatOffset(e,t){return me(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}var Je=new Map;function on(r){let e=Je.get(r);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Je.set(r,e)),e}var un={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ln(r,e){const t=r.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,s,i,a,o,u,l,f]=n;return[a,s,i,o,u,l,f]}function cn(r,e){const t=r.formatToParts(e),n=[];for(let s=0;s<t.length;s++){const{type:i,value:a}=t[s],o=un[i];i==="era"?n[o]=a:y(o)||(n[o]=parseInt(a,10))}return n}var _e=new Map;class _ extends ge{static create(e){let t=_e.get(e);return t===void 0&&_e.set(e,t=new _(e)),t}static resetCache(){_e.clear(),Je.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=_.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Sr(e,t,n,this.name)}formatOffset(e,t){return me(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const n=on(this.name);let[s,i,a,o,u,l,f]=n.formatToParts?cn(n,t):ln(n,t);o==="BC"&&(s=-Math.abs(s)+1);const p=$e({year:s,month:i,day:a,hour:u===24?0:u,minute:l,second:f,millisecond:0});let h=+t;const T=h%1e3;return h-=T>=0?T:1e3+T,(p-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}var yt={};function fn(r,e={}){const t=JSON.stringify([r,e]);let n=yt[t];return n||(n=new Intl.ListFormat(r,e),yt[t]=n),n}var je=new Map;function Ge(r,e={}){const t=JSON.stringify([r,e]);let n=je.get(t);return n===void 0&&(n=new Intl.DateTimeFormat(r,e),je.set(t,n)),n}var Qe=new Map;function dn(r,e={}){const t=JSON.stringify([r,e]);let n=Qe.get(t);return n===void 0&&(n=new Intl.NumberFormat(r,e),Qe.set(t,n)),n}var Be=new Map;function hn(r,e={}){const{base:t,...n}=e,s=JSON.stringify([r,n]);let i=Be.get(s);return i===void 0&&(i=new Intl.RelativeTimeFormat(r,e),Be.set(s,i)),i}var fe=null;function mn(){return fe||(fe=new Intl.DateTimeFormat().resolvedOptions().locale,fe)}var Ke=new Map;function fr(r){let e=Ke.get(r);return e===void 0&&(e=new Intl.DateTimeFormat(r).resolvedOptions(),Ke.set(r,e)),e}var Xe=new Map;function yn(r){let e=Xe.get(r);if(!e){const t=new Intl.Locale(r);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e={...dr,...e}),Xe.set(r,e)}return e}function gn(r){const e=r.indexOf("-x-");e!==-1&&(r=r.substring(0,e));const t=r.indexOf("-u-");if(t===-1)return[r];{let n,s;try{n=Ge(r).resolvedOptions(),s=r}catch{const u=r.substring(0,t);n=Ge(u).resolvedOptions(),s=u}const{numberingSystem:i,calendar:a}=n;return[s,i,a]}}function wn(r,e,t){return(t||e)&&(r.includes("-u-")||(r+="-u"),t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}function pn(r){const e=[];for(let t=1;t<=12;t++){const n=d.utc(2009,t,1);e.push(r(n))}return e}function vn(r){const e=[];for(let t=1;t<=7;t++){const n=d.utc(2016,11,13+t);e.push(r(n))}return e}function ke(r,e,t,n){const s=r.listingMode();return s==="error"?null:s==="en"?t(e):n(e)}function kn(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||fr(r.locale).numberingSystem==="latn"}class Sn{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:i,...a}=n;if(!t||Object.keys(a).length>0){const o={useGrouping:!1,...n};n.padTo>0&&(o.minimumIntegerDigits=n.padTo),this.inf=dn(e,o)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):ut(e,3);return O(t,this.padTo)}}}class Tn{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&_.create(o).valid?(s=o,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Ge(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:n}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class On{constructor(e,t,n){this.opts={style:"long",...n},!t&&vr()&&(this.rtf=hn(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):Pn(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}var dr={firstDay:1,minimalDays:4,weekend:[6,7]};class v{static fromOpts(e){return v.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,s,i=!1){const a=e||S.defaultLocale,o=a||(i?"en-US":mn()),u=t||S.defaultNumberingSystem,l=n||S.defaultOutputCalendar,f=tt(s)||S.defaultWeekSettings;return new v(o,u,l,f,a)}static resetCache(){fe=null,je.clear(),Qe.clear(),Be.clear(),Ke.clear(),Xe.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:s}={}){return v.create(e,t,n,s)}constructor(e,t,n,s,i){const[a,o,u]=gn(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||u||null,this.weekSettings=s,this.intl=wn(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=kn(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:v.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,tt(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return ke(this,e,Mr,()=>{const n=this.intl==="ja"||this.intl.startsWith("ja-");t&=!n;const s=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";if(!this.monthsCache[i][e]){const a=n?o=>this.dtFormatter(o,s).format():o=>this.extract(o,s,"month");this.monthsCache[i][e]=pn(a)}return this.monthsCache[i][e]})}weekdays(e,t=!1){return ke(this,e,Ir,()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=t?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=vn(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return ke(this,void 0,()=>xr,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[d.utc(2016,11,13,9),d.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ke(this,e,Er,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[d.utc(-40,1,1),d.utc(2017,1,1)].map(n=>this.extract(n,t,"era"))),this.eraCache[e]})}extract(e,t,n){const s=this.dtFormatter(e,t),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new Sn(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Tn(e,this.intl,t)}relFormatter(e={}){return new On(this.intl,this.isEnglish(),e)}listFormatter(e={}){return fn(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||fr(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:kr()?yn(this.locale):dr}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}var Re=null;class D extends ge{static get utcInstance(){return Re===null&&(Re=new D(0)),Re}static instance(e){return e===0?D.utcInstance:new D(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new D(Le(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${me(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${me(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return me(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Mn extends ge{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function H(r,e){if(y(r)||r===null)return e;if(r instanceof ge)return r;if(bn(r)){const t=r.toLowerCase();return t==="default"?e:t==="local"||t==="system"?Fe.instance:t==="utc"||t==="gmt"?D.utcInstance:D.parseSpecifier(t)||_.create(r)}else return Y(r)?D.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new Mn(r)}var st={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},gt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Nn=st.hanidec.replace(/[\[|\]]/g,"").split("");function Dn(r){let e=parseInt(r,10);if(isNaN(e)){e="";for(let t=0;t<r.length;t++){const n=r.charCodeAt(t);if(r[t].search(st.hanidec)!==-1)e+=Nn.indexOf(r[t]);else for(const s in gt){const[i,a]=gt[s];n>=i&&n<=a&&(e+=n-i)}}return parseInt(e,10)}else return e}var et=new Map;function In(){et.clear()}function F({numberingSystem:r},e=""){const t=r||"latn";let n=et.get(t);n===void 0&&(n=new Map,et.set(t,n));let s=n.get(e);return s===void 0&&(s=new RegExp(`${st[t]}${e}`),n.set(e,s)),s}var wt=()=>Date.now(),pt="system",vt=null,kt=null,St=null,Tt=60,Ot,Mt=null;class S{static get now(){return wt}static set now(e){wt=e}static set defaultZone(e){pt=e}static get defaultZone(){return H(pt,Fe.instance)}static get defaultLocale(){return vt}static set defaultLocale(e){vt=e}static get defaultNumberingSystem(){return kt}static set defaultNumberingSystem(e){kt=e}static get defaultOutputCalendar(){return St}static set defaultOutputCalendar(e){St=e}static get defaultWeekSettings(){return Mt}static set defaultWeekSettings(e){Mt=tt(e)}static get twoDigitCutoffYear(){return Tt}static set twoDigitCutoffYear(e){Tt=e%100}static get throwOnInvalid(){return Ot}static set throwOnInvalid(e){Ot=e}static resetCaches(){v.resetCache(),_.resetCache(),d.resetCache(),In()}}class ${constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}var hr=[0,31,59,90,120,151,181,212,243,273,304,334],mr=[0,31,60,91,121,152,182,213,244,274,305,335];function b(r,e){return new $("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}function it(r,e,t){const n=new Date(Date.UTC(r,e-1,t));r<100&&r>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const s=n.getUTCDay();return s===0?7:s}function yr(r,e,t){return t+(we(r)?mr:hr)[e-1]}function gr(r,e){const t=we(r)?mr:hr,n=t.findIndex(i=>i<e),s=e-t[n];return{month:n+1,day:s}}function at(r,e){return(r-e+7)%7+1}function be(r,e=4,t=1){const{year:n,month:s,day:i}=r,a=yr(n,s,i),o=at(it(n,s,i),t);let u=Math.floor((a-o+14-e)/7),l;return u<1?(l=n-1,u=ye(l,e,t)):u>ye(n,e,t)?(l=n+1,u=1):l=n,{weekYear:l,weekNumber:u,weekday:o,...Ze(r)}}function Nt(r,e=4,t=1){const{weekYear:n,weekNumber:s,weekday:i}=r,a=at(it(n,1,e),t),o=ee(n);let u=s*7+i-a-7+e,l;u<1?(l=n-1,u+=ee(l)):u>o?(l=n+1,u-=ee(n)):l=n;const{month:f,day:m}=gr(l,u);return{year:l,month:f,day:m,...Ze(r)}}function ze(r){const{year:e,month:t,day:n}=r,s=yr(e,t,n);return{year:e,ordinal:s,...Ze(r)}}function Dt(r){const{year:e,ordinal:t}=r,{month:n,day:s}=gr(e,t);return{year:e,month:n,day:s,...Ze(r)}}function It(r,e){if(!y(r.localWeekday)||!y(r.localWeekNumber)||!y(r.localWeekYear)){if(!y(r.weekday)||!y(r.weekNumber)||!y(r.weekYear))throw new X("Cannot mix locale-based week fields with ISO-based week fields");return y(r.localWeekday)||(r.weekday=r.localWeekday),y(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),y(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function xn(r,e=4,t=1){const n=We(r.weekYear),s=V(r.weekNumber,1,ye(r.weekYear,e,t)),i=V(r.weekday,1,7);return n?s?i?!1:b("weekday",r.weekday):b("week",r.weekNumber):b("weekYear",r.weekYear)}function En(r){const e=We(r.year),t=V(r.ordinal,1,ee(r.year));return e?t?!1:b("ordinal",r.ordinal):b("year",r.year)}function wr(r){const e=We(r.year),t=V(r.month,1,12),n=V(r.day,1,Ve(r.year,r.month));return e?t?n?!1:b("day",r.day):b("month",r.month):b("year",r.year)}function pr(r){const{hour:e,minute:t,second:n,millisecond:s}=r,i=V(e,0,23)||e===24&&t===0&&n===0&&s===0,a=V(t,0,59),o=V(n,0,59),u=V(s,0,999);return i?a?o?u?!1:b("millisecond",s):b("second",n):b("minute",t):b("hour",e)}function y(r){return typeof r>"u"}function Y(r){return typeof r=="number"}function We(r){return typeof r=="number"&&r%1===0}function bn(r){return typeof r=="string"}function Vn(r){return Object.prototype.toString.call(r)==="[object Date]"}function vr(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function kr(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Cn(r){return Array.isArray(r)?r:[r]}function xt(r,e,t){if(r.length!==0)return r.reduce((n,s)=>{const i=[e(s),s];return n&&t(n[0],i[0])===n[0]?n:i},null)[1]}function Fn(r,e){return e.reduce((t,n)=>(t[n]=r[n],t),{})}function re(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function tt(r){if(r==null)return null;if(typeof r!="object")throw new M("Week settings must be an object");if(!V(r.firstDay,1,7)||!V(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(e=>!V(e,1,7)))throw new M("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function V(r,e,t){return We(r)&&r>=e&&r<=t}function Wn(r,e){return r-e*Math.floor(r/e)}function O(r,e=2){const t=r<0;let n;return t?n="-"+(""+-r).padStart(e,"0"):n=(""+r).padStart(e,"0"),n}function A(r){if(!(y(r)||r===null||r===""))return parseInt(r,10)}function P(r){if(!(y(r)||r===null||r===""))return parseFloat(r)}function ot(r){if(!(y(r)||r===null||r==="")){const e=parseFloat("0."+r)*1e3;return Math.floor(e)}}function ut(r,e,t="round"){const n=10**e;switch(t){case"expand":return r>0?Math.ceil(r*n)/n:Math.floor(r*n)/n;case"trunc":return Math.trunc(r*n)/n;case"round":return Math.round(r*n)/n;case"floor":return Math.floor(r*n)/n;case"ceil":return Math.ceil(r*n)/n;default:throw new RangeError(`Value rounding ${t} is out of range`)}}function we(r){return r%4===0&&(r%100!==0||r%400===0)}function ee(r){return we(r)?366:365}function Ve(r,e){const t=Wn(e-1,12)+1,n=r+(e-t)/12;return t===2?we(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function $e(r){let e=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(e=new Date(e),e.setUTCFullYear(r.year,r.month-1,r.day)),+e}function Et(r,e,t){return-at(it(r,1,e),t)+e-1}function ye(r,e=4,t=1){const n=Et(r,e,t),s=Et(r+1,e,t);return(ee(r)-n+s)/7}function rt(r){return r>99?r:r>S.twoDigitCutoffYear?1900+r:2e3+r}function Sr(r,e,t,n=null){const s=new Date(r),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(t,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function Le(r,e){let t=parseInt(r,10);Number.isNaN(t)&&(t=0);const n=parseInt(e,10)||0,s=t<0||Object.is(t,-0)?-n:n;return t*60+s}function Tr(r){const e=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(e))throw new M(`Invalid unit value ${r}`);return e}function Ce(r,e){const t={};for(const n in r)if(re(r,n)){const s=r[n];if(s==null)continue;t[e(n)]=Tr(s)}return t}function me(r,e){const t=Math.trunc(Math.abs(r/60)),n=Math.trunc(Math.abs(r%60)),s=r>=0?"+":"-";switch(e){case"short":return`${s}${O(t,2)}:${O(n,2)}`;case"narrow":return`${s}${t}${n>0?`:${n}`:""}`;case"techie":return`${s}${O(t,2)}${O(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Ze(r){return Fn(r,["hour","minute","second","millisecond"])}var $n=["January","February","March","April","May","June","July","August","September","October","November","December"],Or=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ln=["J","F","M","A","M","J","J","A","S","O","N","D"];function Mr(r){switch(r){case"narrow":return[...Ln];case"short":return[...Or];case"long":return[...$n];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Nr=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Dr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Zn=["M","T","W","T","F","S","S"];function Ir(r){switch(r){case"narrow":return[...Zn];case"short":return[...Dr];case"long":return[...Nr];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var xr=["AM","PM"],Un=["Before Christ","Anno Domini"],_n=["BC","AD"],Rn=["B","A"];function Er(r){switch(r){case"narrow":return[...Rn];case"short":return[..._n];case"long":return[...Un];default:return null}}function zn(r){return xr[r.hour<12?0:1]}function An(r,e){return Ir(e)[r.weekday-1]}function Hn(r,e){return Mr(e)[r.month-1]}function Yn(r,e){return Er(e)[r.year<0?0:1]}function Pn(r,e,t="always",n=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(r)===-1;if(t==="auto"&&i){const m=r==="days";switch(e){case 1:return m?"tomorrow":`next ${s[r][0]}`;case-1:return m?"yesterday":`last ${s[r][0]}`;case 0:return m?"today":`this ${s[r][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,l=s[r],f=n?u?l[1]:l[2]||l[1]:u?s[r][0]:r;return a?`${o} ${f} ago`:`in ${o} ${f}`}function bt(r,e){let t="";for(const n of r)n.literal?t+=n.val:t+=e(n.val);return t}var qn={D:Ee,DD:qt,DDD:Jt,DDDD:jt,t:Gt,tt:Qt,ttt:Bt,tttt:Kt,T:Xt,TT:er,TTT:tr,TTTT:rr,f:nr,ff:ir,fff:or,ffff:lr,F:sr,FF:ar,FFF:ur,FFFF:cr};class N{static create(e,t={}){return new N(e,t)}static parseFormat(e){let t=null,n="",s=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?((n.length>0||s)&&i.push({literal:s||/^\s+$/.test(n),val:n===""?"'":n}),t=null,n="",s=!s):s||o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return qn[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return O(e,t);const s={...this.opts};return t>0&&(s.padTo=t),n&&(s.signDisplay=n),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,t){const n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,T)=>this.loc.extract(e,h,T),a=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",o=()=>n?zn(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(h,T)=>n?Hn(e,h):i(T?{month:h}:{month:h,day:"numeric"},"month"),l=(h,T)=>n?An(e,h):i(T?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),f=h=>{const T=N.macroTokenToFormatOpts(h);return T?this.formatWithSystemDefault(e,T):h},m=h=>n?Yn(e,h):i({era:h},"era"),p=h=>{switch(h){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(h)}};return bt(N.parseFormat(t),p)}formatDurationFromString(e,t){const n=this.opts.signMode==="negativeLargestOnly"?-1:1,s=f=>{switch(f[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(f,m)=>p=>{const h=s(p);if(h){const T=m.isNegativeDuration&&h!==m.largestUnit?n:1;let C;return this.opts.signMode==="negativeLargestOnly"&&h!==m.largestUnit?C="never":this.opts.signMode==="all"?C="always":C="auto",this.num(f.get(h)*T,p.length,C)}else return p},a=N.parseFormat(t),o=a.reduce((f,{literal:m,val:p})=>m?f:f.concat(p),[]),u=e.shiftTo(...o.map(s).filter(f=>f)),l={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return bt(a,i(u,l))}}var br=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ne(...r){const e=r.reduce((t,n)=>t+n.source,"");return RegExp(`^${e}$`)}function se(...r){return e=>r.reduce(([t,n,s],i)=>{const[a,o,u]=i(e,s);return[{...t,...a},o||n,u]},[{},null,1]).slice(0,2)}function ie(r,...e){if(r==null)return[null,null];for(const[t,n]of e){const s=t.exec(r);if(s)return n(s)}return[null,null]}function Vr(...r){return(e,t)=>{const n={};let s;for(s=0;s<r.length;s++)n[r[s]]=A(e[t+s]);return[n,null,t+s]}}var Cr=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Jn=`(?:${Cr.source}?(?:\\[(${br.source})\\])?)?`,lt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Fr=RegExp(`${lt.source}${Jn}`),ct=RegExp(`(?:[Tt]${Fr.source})?`),jn=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Gn=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Qn=/(\d{4})-?(\d{3})/,Bn=Vr("weekYear","weekNumber","weekDay"),Kn=Vr("year","ordinal"),Xn=/(\d{4})-(\d\d)-(\d\d)/,Wr=RegExp(`${lt.source} ?(?:${Cr.source}|(${br.source}))?`),es=RegExp(`(?: ${Wr.source})?`);function te(r,e,t){const n=r[e];return y(n)?t:A(n)}function ts(r,e){return[{year:te(r,e),month:te(r,e+1,1),day:te(r,e+2,1)},null,e+3]}function ae(r,e){return[{hours:te(r,e,0),minutes:te(r,e+1,0),seconds:te(r,e+2,0),milliseconds:ot(r[e+3])},null,e+4]}function pe(r,e){const t=!r[e]&&!r[e+1],n=Le(r[e+1],r[e+2]),s=t?null:D.instance(n);return[{},s,e+3]}function ve(r,e){const t=r[e]?_.create(r[e]):null;return[{},t,e+1]}var rs=RegExp(`^T?${lt.source}$`),ns=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ss(r){const[e,t,n,s,i,a,o,u,l]=r,f=e[0]==="-",m=u&&u[0]==="-",p=(h,T=!1)=>h!==void 0&&(T||h&&f)?-h:h;return[{years:p(P(t)),months:p(P(n)),weeks:p(P(s)),days:p(P(i)),hours:p(P(a)),minutes:p(P(o)),seconds:p(P(u),u==="-0"),milliseconds:p(ot(l),m)}]}var is={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ft(r,e,t,n,s,i,a){const o={year:e.length===2?rt(A(e)):A(e),month:Or.indexOf(t)+1,day:A(n),hour:A(s),minute:A(i)};return a&&(o.second=A(a)),r&&(o.weekday=r.length>3?Nr.indexOf(r)+1:Dr.indexOf(r)+1),o}var as=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function os(r){const[,e,t,n,s,i,a,o,u,l,f,m]=r,p=ft(e,s,n,t,i,a,o);let h;return u?h=is[u]:l?h=0:h=Le(f,m),[p,new D(h)]}function us(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var ls=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,cs=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,fs=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Vt(r){const[,e,t,n,s,i,a,o]=r;return[ft(e,s,n,t,i,a,o),D.utcInstance]}function ds(r){const[,e,t,n,s,i,a,o]=r;return[ft(e,o,t,n,s,i,a),D.utcInstance]}var hs=ne(jn,ct),ms=ne(Gn,ct),ys=ne(Qn,ct),gs=ne(Fr),$r=se(ts,ae,pe,ve),ws=se(Bn,ae,pe,ve),ps=se(Kn,ae,pe,ve),vs=se(ae,pe,ve);function ks(r){return ie(r,[hs,$r],[ms,ws],[ys,ps],[gs,vs])}function Ss(r){return ie(us(r),[as,os])}function Ts(r){return ie(r,[ls,Vt],[cs,Vt],[fs,ds])}function Os(r){return ie(r,[ns,ss])}var Ms=se(ae);function Ns(r){return ie(r,[rs,Ms])}var Ds=ne(Xn,es),Is=ne(Wr),xs=se(ae,pe,ve);function Es(r){return ie(r,[Ds,$r],[Is,xs])}var Ct="Invalid Duration",Lr={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},bs={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Lr},x=146097/400,Q=146097/4800,Vs={years:{quarters:4,months:12,weeks:x/7,days:x,hours:x*24,minutes:x*24*60,seconds:x*24*60*60,milliseconds:x*24*60*60*1e3},quarters:{months:3,weeks:x/28,days:x/4,hours:x*24/4,minutes:x*24*60/4,seconds:x*24*60*60/4,milliseconds:x*24*60*60*1e3/4},months:{weeks:Q/7,days:Q,hours:Q*24,minutes:Q*24*60,seconds:Q*24*60*60,milliseconds:Q*24*60*60*1e3},...Lr},J=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Cs=J.slice(0).reverse();function U(r,e,t=!1){const n={values:t?e.values:{...r.values,...e.values||{}},loc:r.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||r.conversionAccuracy,matrix:e.matrix||r.matrix};return new g(n)}function Zr(r,e){let t=e.milliseconds??0;for(const n of Cs.slice(1))e[n]&&(t+=e[n]*r[n].milliseconds);return t}function Ft(r,e){const t=Zr(r,e)<0?-1:1;J.reduceRight((n,s)=>{if(y(e[s]))return n;if(n){const i=e[n]*t,a=r[s][n],o=Math.floor(i/a);e[s]+=o*t,e[n]-=o*a*t}return s},null),J.reduce((n,s)=>{if(y(e[s]))return n;if(n){const i=e[n]%1;e[n]-=i,e[s]+=i*r[n][s]}return s},null)}function Wt(r){const e={};for(const[t,n]of Object.entries(r))n!==0&&(e[t]=n);return e}class g{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let n=t?Vs:bs;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||v.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return g.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new M(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new g({values:Ce(e,g.normalizeUnit),loc:v.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Y(e))return g.fromMillis(e);if(g.isDuration(e))return e;if(typeof e=="object")return g.fromObject(e);throw new M(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=Os(e);return n?g.fromObject(n,t):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=Ns(e);return n?g.fromObject(n,t):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new M("need to specify a reason the Duration is invalid");const n=e instanceof $?e:new $(e,t);if(S.throwOnInvalid)throw new nn(n);return new g({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new Pt(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?N.create(this.loc,n).formatDurationFromString(this,e):Ct}toHuman(e={}){if(!this.isValid)return Ct;const t=e.showZeros!==!1,n=J.map(s=>{const i=this.values[s];return y(i)||i===0&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(i)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=ut(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},d.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Zr(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e),n={};for(const s of J)(re(t.values,s)||re(this.values,s))&&(n[s]=t.get(s)+this.get(s));return U(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Tr(e(this.values[n],n));return U(this,{values:t},!0)}get(e){return this[g.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...Ce(e,g.normalizeUnit)};return U(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:s,conversionAccuracy:n};return U(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Ft(this.matrix,e),U(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Wt(this.normalize().shiftToAll().toObject());return U(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>g.normalizeUnit(a));const t={},n={},s=this.toObject();let i;for(const a of J)if(e.indexOf(a)>=0){i=a;let o=0;for(const l in n)o+=this.matrix[l][a]*n[l],n[l]=0;Y(s[a])&&(o+=s[a]);const u=Math.trunc(o);t[a]=u,n[a]=(o*1e3-u*1e3)/1e3}else Y(s[a])&&(n[a]=s[a]);for(const a in n)n[a]!==0&&(t[i]+=a===i?n[a]:n[a]/this.matrix[i][a]);return Ft(this.matrix,t),U(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return U(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=Wt(this.values);return U(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}for(const n of J)if(!t(this.values[n],e.values[n]))return!1;return!0}}var B="Invalid Interval";function Fs(r,e){return!r||!r.isValid?k.invalid("missing or invalid start"):!e||!e.isValid?k.invalid("missing or invalid end"):e<r?k.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`):null}class k{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new M("need to specify a reason the Interval is invalid");const n=e instanceof $?e:new $(e,t);if(S.throwOnInvalid)throw new rn(n);return new k({invalid:n})}static fromDateTimes(e,t){const n=ce(e),s=ce(t),i=Fs(n,s);return i??new k({start:n,end:s})}static after(e,t){const n=g.fromDurationLike(t),s=ce(e);return k.fromDateTimes(s,s.plus(n))}static before(e,t){const n=g.fromDurationLike(t),s=ce(e);return k.fromDateTimes(s.minus(n),s)}static fromISO(e,t){const[n,s]=(e||"").split("/",2);if(n&&s){let i,a;try{i=d.fromISO(n,t),a=i.isValid}catch{a=!1}let o,u;try{o=d.fromISO(s,t),u=o.isValid}catch{u=!1}if(a&&u)return k.fromDateTimes(i,o);if(a){const l=g.fromISO(s,t);if(l.isValid)return k.after(i,l)}else if(u){const l=g.fromISO(n,t);if(l.isValid)return k.before(o,l)}}return k.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let s;return t?.useLocaleWeeks?s=this.end.reconfigure({locale:n.locale}):s=this.end,s=s.startOf(e,t),Math.floor(s.diff(n,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?k.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(ce).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),n=[];let{s}=this,i=0;for(;s<this.e;){const a=t[i]||this.e,o=+a>+this.e?this.e:a;n.push(k.fromDateTimes(s,o)),s=o,i+=1}return n}splitBy(e){const t=g.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:n}=this,s=1,i;const a=[];for(;n<this.e;){const o=this.start.plus(t.mapUnits(u=>u*s));i=+o>+this.e?this.e:o,a.push(k.fromDateTimes(n,i)),n=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:k.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return k.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const s=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((u,l)=>u.time-l.time);for(const u of o)n+=u.type==="s"?1:-1,n===1?t=u.time:(t&&+t!=+u.time&&s.push(k.fromDateTimes(t,u.time)),t=null);return k.merge(s)}difference(...e){return k.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:B}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ee,t={}){return this.isValid?N.create(this.s.loc.clone(t),e).formatInterval(this):B}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:B}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:B}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:B}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:B}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):g.invalid(this.invalidReason)}mapEndpoints(e){return k.fromDateTimes(e(this.s),e(this.e))}}class Se{static hasDST(e=S.defaultZone){const t=d.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return _.isValidZone(e)}static normalizeZone(e){return H(e,S.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||v.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||v.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||v.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||v.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||v.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||v.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||v.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return v.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return v.create(t,null,"gregory").eras(e)}static features(){return{relative:vr(),localeWeek:kr()}}}function $t(r,e){const t=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=t(e)-t(r);return Math.floor(g.fromMillis(n).as("days"))}function Ws(r,e,t){const n=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{const f=$t(u,l);return(f-f%7)/7}],["days",$t]],s={},i=r;let a,o;for(const[u,l]of n)t.indexOf(u)>=0&&(a=u,s[u]=l(r,e),o=i.plus(s),o>e?(s[u]--,r=i.plus(s),r>e&&(o=r,s[u]--,r=i.plus(s))):r=o);return[r,s,o,a]}function $s(r,e,t,n){let[s,i,a,o]=Ws(r,e,t);const u=e-s,l=t.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);l.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+u/(a-s)));const f=g.fromObject(i,n);return l.length>0?g.fromMillis(u,n).shiftTo(...l).plus(f):f}var Ls="missing Intl.DateTimeFormat.formatToParts support";function w(r,e=t=>t){return{regex:r,deser:([t])=>e(Dn(t))}}var Zs=" ",Ur=`[ ${Zs}]`,_r=new RegExp(Ur,"g");function Us(r){return r.replace(/\./g,"\\.?").replace(_r,Ur)}function Lt(r){return r.replace(/\./g,"").replace(_r," ").toLowerCase()}function W(r,e){return r===null?null:{regex:RegExp(r.map(Us).join("|")),deser:([t])=>r.findIndex(n=>Lt(t)===Lt(n))+e}}function Zt(r,e){return{regex:r,deser:([,t,n])=>Le(t,n),groups:e}}function Te(r){return{regex:r,deser:([e])=>e}}function _s(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Rs(r,e){const t=F(e),n=F(e,"{2}"),s=F(e,"{3}"),i=F(e,"{4}"),a=F(e,"{6}"),o=F(e,"{1,2}"),u=F(e,"{1,3}"),l=F(e,"{1,6}"),f=F(e,"{1,9}"),m=F(e,"{2,4}"),p=F(e,"{4,6}"),h=Z=>({regex:RegExp(_s(Z.val)),deser:([G])=>G,literal:!0}),C=(Z=>{if(r.literal)return h(Z);switch(Z.val){case"G":return W(e.eras("short"),0);case"GG":return W(e.eras("long"),0);case"y":return w(l);case"yy":return w(m,rt);case"yyyy":return w(i);case"yyyyy":return w(p);case"yyyyyy":return w(a);case"M":return w(o);case"MM":return w(n);case"MMM":return W(e.months("short",!0),1);case"MMMM":return W(e.months("long",!0),1);case"L":return w(o);case"LL":return w(n);case"LLL":return W(e.months("short",!1),1);case"LLLL":return W(e.months("long",!1),1);case"d":return w(o);case"dd":return w(n);case"o":return w(u);case"ooo":return w(s);case"HH":return w(n);case"H":return w(o);case"hh":return w(n);case"h":return w(o);case"mm":return w(n);case"m":return w(o);case"q":return w(o);case"qq":return w(n);case"s":return w(o);case"ss":return w(n);case"S":return w(u);case"SSS":return w(s);case"u":return Te(f);case"uu":return Te(o);case"uuu":return w(t);case"a":return W(e.meridiems(),0);case"kkkk":return w(i);case"kk":return w(m,rt);case"W":return w(o);case"WW":return w(n);case"E":case"c":return w(t);case"EEE":return W(e.weekdays("short",!1),1);case"EEEE":return W(e.weekdays("long",!1),1);case"ccc":return W(e.weekdays("short",!0),1);case"cccc":return W(e.weekdays("long",!0),1);case"Z":case"ZZ":return Zt(new RegExp(`([+-]${o.source})(?::(${n.source}))?`),2);case"ZZZ":return Zt(new RegExp(`([+-]${o.source})(${n.source})?`),2);case"z":return Te(/[a-z_+-/]{1,256}?/i);case" ":return Te(/[^\S\n\r]/);default:return h(Z)}})(r)||{invalidReason:Ls};return C.token=r,C}var zs={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function As(r,e,t){const{type:n,value:s}=r;if(n==="literal"){const u=/^\s+$/.test(s);return{literal:!u,val:u?" ":s}}const i=e[n];let a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=t.hour12?"hour12":"hour24");let o=zs[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function Hs(r){return[`^${r.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,r]}function Ys(r,e,t){const n=r.match(e);if(n){const s={};let i=1;for(const a in t)if(re(t,a)){const o=t[a],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(n.slice(i,i+u))),i+=u}return[n,s]}else return[n,{}]}function Ps(r){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let t=null,n;return y(r.z)||(t=_.create(r.z)),y(r.Z)||(t||(t=new D(r.Z)),n=r.Z),y(r.q)||(r.M=(r.q-1)*3+1),y(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),y(r.u)||(r.S=ot(r.u)),[Object.keys(r).reduce((i,a)=>{const o=e(a);return o&&(i[o]=r[a]),i},{}),t,n]}var Ae=null;function qs(){return Ae||(Ae=d.fromMillis(1555555555555)),Ae}function Js(r,e){if(r.literal)return r;const t=N.macroTokenToFormatOpts(r.val),n=Hr(t,e);return n==null||n.includes(void 0)?r:n}function Rr(r,e){return Array.prototype.concat(...r.map(t=>Js(t,e)))}class zr{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Rr(N.parseFormat(t),e),this.units=this.tokens.map(n=>Rs(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,s]=Hs(this.units);this.regex=RegExp(n,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){const[t,n]=Ys(e,this.regex,this.handlers),[s,i,a]=n?Ps(n):[null,null,void 0];if(re(n,"a")&&re(n,"H"))throw new X("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:s,zone:i,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Ar(r,e,t){return new zr(r,t).explainFromTokens(e)}function js(r,e,t){const{result:n,zone:s,specificOffset:i,invalidReason:a}=Ar(r,e,t);return[n,s,i,a]}function Hr(r,e){if(!r)return null;const n=N.create(e,r).dtFormatter(qs()),s=n.formatToParts(),i=n.resolvedOptions();return s.map(a=>As(a,r,i))}var He="Invalid DateTime",Ut=864e13;function de(r){return new $("unsupported zone",`the zone "${r.name}" is not supported`)}function Ye(r){return r.weekData===null&&(r.weekData=be(r.c)),r.weekData}function Pe(r){return r.localWeekData===null&&(r.localWeekData=be(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function q(r,e){const t={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new d({...t,...e,old:t})}function Yr(r,e,t){let n=r-e*60*1e3;const s=t.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;const i=t.offset(n);return s===i?[n,s]:[r-Math.min(s,i)*60*1e3,Math.max(s,i)]}function Oe(r,e){r+=e*60*1e3;const t=new Date(r);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function De(r,e,t){return Yr($e(r),e,t)}function _t(r,e){const t=r.o,n=r.c.year+Math.trunc(e.years),s=r.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...r.c,year:n,month:s,day:Math.min(r.c.day,Ve(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=g.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=$e(i);let[u,l]=Yr(o,t,r.zone);return a!==0&&(u+=a,l=r.zone.offset(u)),{ts:u,o:l}}function K(r,e,t,n,s,i){const{setZone:a,zone:o}=t;if(r&&Object.keys(r).length!==0||e){const u=e||o,l=d.fromObject(r,{...t,zone:u,specificOffset:i});return a?l:l.setZone(o)}else return d.invalid(new $("unparsable",`the input "${s}" can't be parsed as ${n}`))}function Me(r,e,t=!0){return r.isValid?N.create(v.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(r,e):null}function qe(r,e,t){const n=r.c.year>9999||r.c.year<0;let s="";if(n&&r.c.year>=0&&(s+="+"),s+=O(r.c.year,n?6:4),t==="year")return s;if(e){if(s+="-",s+=O(r.c.month),t==="month")return s;s+="-"}else if(s+=O(r.c.month),t==="month")return s;return s+=O(r.c.day),s}function Rt(r,e,t,n,s,i,a){let o=!t||r.c.millisecond!==0||r.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=O(r.c.hour),a==="hour")break;if(e){if(u+=":",u+=O(r.c.minute),a==="minute")break;o&&(u+=":",u+=O(r.c.second))}else{if(u+=O(r.c.minute),a==="minute")break;o&&(u+=O(r.c.second))}if(a==="second")break;o&&(!n||r.c.millisecond!==0)&&(u+=".",u+=O(r.c.millisecond,3))}return s&&(r.isOffsetFixed&&r.offset===0&&!i?u+="Z":r.o<0?(u+="-",u+=O(Math.trunc(-r.o/60)),u+=":",u+=O(Math.trunc(-r.o%60))):(u+="+",u+=O(Math.trunc(r.o/60)),u+=":",u+=O(Math.trunc(r.o%60)))),i&&(u+="["+r.zone.ianaName+"]"),u}var Pr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Gs={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Qs={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ie=["year","month","day","hour","minute","second","millisecond"],Bs=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ks=["year","ordinal","hour","minute","second","millisecond"];function xe(r){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[r.toLowerCase()];if(!e)throw new Pt(r);return e}function zt(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return xe(r)}}function Xs(r){if(he===void 0&&(he=S.now()),r.type!=="iana")return r.offset(he);const e=r.name;let t=nt.get(e);return t===void 0&&(t=r.offset(he),nt.set(e,t)),t}function At(r,e){const t=H(e.zone,S.defaultZone);if(!t.isValid)return d.invalid(de(t));const n=v.fromObject(e);let s,i;if(y(r.year))s=S.now();else{for(const u of Ie)y(r[u])&&(r[u]=Pr[u]);const a=wr(r)||pr(r);if(a)return d.invalid(a);const o=Xs(t);[s,i]=De(r,o,t)}return new d({ts:s,zone:t,loc:n,o:i})}function Ht(r,e,t){const n=y(t.round)?!0:t.round,s=y(t.rounding)?"trunc":t.rounding,i=(o,u)=>(o=ut(o,n||t.calendary?0:2,t.calendary?"round":s),e.loc.clone(t).relFormatter(t).format(o,u)),a=o=>t.calendary?e.hasSame(r,o)?0:e.startOf(o).diff(r.startOf(o),o).get(o):e.diff(r,o).get(o);if(t.unit)return i(a(t.unit),t.unit);for(const o of t.units){const u=a(o);if(Math.abs(u)>=1)return i(u,o)}return i(r>e?-0:0,t.units[t.units.length-1])}function Yt(r){let e={},t;return r.length>0&&typeof r[r.length-1]=="object"?(e=r[r.length-1],t=Array.from(r).slice(0,r.length-1)):t=Array.from(r),[e,t]}var he,nt=new Map;class d{constructor(e){const t=e.zone||S.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new $("invalid input"):null)||(t.isValid?null:de(t));this.ts=y(e.ts)?S.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,i]=[e.old.c,e.old.o];else{const o=Y(e.o)&&!e.old?e.o:t.offset(this.ts);s=Oe(this.ts,o),n=Number.isNaN(s.year)?new $("invalid input"):null,s=n?null:s,i=n?null:o}this._zone=t,this.loc=e.loc||v.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new d({})}static local(){const[e,t]=Yt(arguments),[n,s,i,a,o,u,l]=t;return At({year:n,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static utc(){const[e,t]=Yt(arguments),[n,s,i,a,o,u,l]=t;return e.zone=D.utcInstance,At({year:n,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static fromJSDate(e,t={}){const n=Vn(e)?e.valueOf():NaN;if(Number.isNaN(n))return d.invalid("invalid input");const s=H(t.zone,S.defaultZone);return s.isValid?new d({ts:n,zone:s,loc:v.fromObject(t)}):d.invalid(de(s))}static fromMillis(e,t={}){if(Y(e))return e<-Ut||e>Ut?d.invalid("Timestamp out of range"):new d({ts:e,zone:H(t.zone,S.defaultZone),loc:v.fromObject(t)});throw new M(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Y(e))return new d({ts:e*1e3,zone:H(t.zone,S.defaultZone),loc:v.fromObject(t)});throw new M("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=H(t.zone,S.defaultZone);if(!n.isValid)return d.invalid(de(n));const s=v.fromObject(t),i=Ce(e,zt),{minDaysInFirstWeek:a,startOfWeek:o}=It(i,s),u=S.now(),l=y(t.specificOffset)?n.offset(u):t.specificOffset,f=!y(i.ordinal),m=!y(i.year),p=!y(i.month)||!y(i.day),h=m||p,T=i.weekYear||i.weekNumber;if((h||f)&&T)throw new X("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&f)throw new X("Can't mix ordinal dates with month/day");const C=T||i.weekday&&!h;let Z,G,oe=Oe(u,l);C?(Z=Bs,G=Gs,oe=be(oe,a,o)):f?(Z=Ks,G=Qs,oe=ze(oe)):(Z=Ie,G=Pr);let ht=!1;for(const le of Z){const Qr=i[le];y(Qr)?ht?i[le]=G[le]:i[le]=oe[le]:ht=!0}const qr=C?xn(i,a,o):f?En(i):wr(i),mt=qr||pr(i);if(mt)return d.invalid(mt);const Jr=C?Nt(i,a,o):f?Dt(i):i,[jr,Gr]=De(Jr,l,n),ue=new d({ts:jr,zone:n,o:Gr,loc:s});return i.weekday&&h&&e.weekday!==ue.weekday?d.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${ue.toISO()}`):ue.isValid?ue:d.invalid(ue.invalid)}static fromISO(e,t={}){const[n,s]=ks(e);return K(n,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,s]=Ss(e);return K(n,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,s]=Ts(e);return K(n,s,t,"HTTP",t)}static fromFormat(e,t,n={}){if(y(e)||y(t))throw new M("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=n,a=v.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,u,l,f]=js(a,e,t);return f?d.invalid(f):K(o,u,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return d.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,s]=Es(e);return K(n,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new M("need to specify a reason the DateTime is invalid");const n=e instanceof $?e:new $(e,t);if(S.throwOnInvalid)throw new tn(n);return new d({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=Hr(e,v.fromObject(t));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,t={}){return Rr(N.parseFormat(e),v.fromObject(t)).map(s=>s.val).join("")}static resetCache(){he=void 0,nt.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ye(this).weekYear:NaN}get weekNumber(){return this.isValid?Ye(this).weekNumber:NaN}get weekday(){return this.isValid?Ye(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Pe(this).weekday:NaN}get localWeekNumber(){return this.isValid?Pe(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Pe(this).weekYear:NaN}get ordinal(){return this.isValid?ze(this.c).ordinal:NaN}get monthShort(){return this.isValid?Se.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Se.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Se.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Se.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=$e(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-s*t),o=this.zone.offset(n-i*t);if(a===o)return[this];const u=n-a*t,l=n-o*t,f=Oe(u,a),m=Oe(l,o);return f.hour===m.hour&&f.minute===m.minute&&f.second===m.second&&f.millisecond===m.millisecond?[q(this,{ts:u}),q(this,{ts:l})]:[this]}get isInLeapYear(){return we(this.year)}get daysInMonth(){return Ve(this.year,this.month)}get daysInYear(){return this.isValid?ee(this.year):NaN}get weeksInWeekYear(){return this.isValid?ye(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ye(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:s}=N.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(D.instance(e),t)}toLocal(){return this.setZone(S.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(e=H(e,S.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(t||n){const i=e.offset(this.ts),a=this.toObject();[s]=De(a,i,e)}return q(this,{ts:s,zone:e})}else return d.invalid(de(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){const s=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return q(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Ce(e,zt),{minDaysInFirstWeek:n,startOfWeek:s}=It(t,this.loc),i=!y(t.weekYear)||!y(t.weekNumber)||!y(t.weekday),a=!y(t.ordinal),o=!y(t.year),u=!y(t.month)||!y(t.day),l=o||u,f=t.weekYear||t.weekNumber;if((l||a)&&f)throw new X("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new X("Can't mix ordinal dates with month/day");let m;i?m=Nt({...be(this.c,n,s),...t},n,s):y(t.ordinal)?(m={...this.toObject(),...t},y(t.day)&&(m.day=Math.min(Ve(m.year,m.month),m.day))):m=Dt({...ze(this.c),...t});const[p,h]=De(m,this.o,this.zone);return q(this,{ts:p,o:h})}plus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e);return q(this,_t(this,t))}minus(e){if(!this.isValid)return this;const t=g.fromDurationLike(e).negate();return q(this,_t(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},s=g.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks")if(t){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i}else n.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?N.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):He}toLocaleString(e=Ee,t={}){return this.isValid?N.create(this.loc.clone(t),e).formatDateTime(this):He}toLocaleParts(e={}){return this.isValid?N.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:s=!0,extendedZone:i=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=xe(a);const o=e==="extended";let u=qe(this,o,a);return Ie.indexOf(a)>=3&&(u+="T"),u+=Rt(this,o,t,n,s,i,a),u}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?qe(this,e==="extended",xe(t)):null}toISOWeekDate(){return Me(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended",precision:o="milliseconds"}={}){return this.isValid?(o=xe(o),(s&&Ie.indexOf(o)>=3?"T":"")+Rt(this,a==="extended",t,e,n,i,o)):null}toRFC2822(){return Me(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Me(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?qe(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let s="HH:mm:ss.SSS";return(t||e)&&(n&&(s+=" "),t?s+="z":e&&(s+="ZZ")),Me(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():He}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return g.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=Cn(t).map(g.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,u=a?e:this,l=$s(o,u,i,s);return a?l.negate():l}diffNow(e="milliseconds",t={}){return this.diff(d.now(),e,t)}until(e){return this.isValid?k.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=s&&s<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||d.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),Ht(t,this.plus(n),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?Ht(e.base||d.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(d.isDateTime))throw new M("min requires all arguments be DateTimes");return xt(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(d.isDateTime))throw new M("max requires all arguments be DateTimes");return xt(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:s=null,numberingSystem:i=null}=n,a=v.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return Ar(a,e,t)}static fromStringExplain(e,t,n={}){return d.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){const{locale:n=null,numberingSystem:s=null}=t,i=v.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});return new zr(i,e)}static fromFormatParser(e,t,n={}){if(y(e)||y(t))throw new M("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:i=null}=n,a=v.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!a.equals(t.locale))throw new M(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);const{result:o,zone:u,specificOffset:l,invalidReason:f}=t.explainFromTokens(e);return f?d.invalid(f):K(o,u,n,`format ${t.format}`,e,l)}static get DATE_SHORT(){return Ee}static get DATE_MED(){return qt}static get DATE_MED_WITH_WEEKDAY(){return sn}static get DATE_FULL(){return Jt}static get DATE_HUGE(){return jt}static get TIME_SIMPLE(){return Gt}static get TIME_WITH_SECONDS(){return Qt}static get TIME_WITH_SHORT_OFFSET(){return Bt}static get TIME_WITH_LONG_OFFSET(){return Kt}static get TIME_24_SIMPLE(){return Xt}static get TIME_24_WITH_SECONDS(){return er}static get TIME_24_WITH_SHORT_OFFSET(){return tr}static get TIME_24_WITH_LONG_OFFSET(){return rr}static get DATETIME_SHORT(){return nr}static get DATETIME_SHORT_WITH_SECONDS(){return sr}static get DATETIME_MED(){return ir}static get DATETIME_MED_WITH_SECONDS(){return ar}static get DATETIME_MED_WITH_WEEKDAY(){return an}static get DATETIME_FULL(){return or}static get DATETIME_FULL_WITH_SECONDS(){return ur}static get DATETIME_HUGE(){return lr}static get DATETIME_HUGE_WITH_SECONDS(){return cr}}function ce(r){if(d.isDateTime(r))return r;if(r&&r.valueOf&&Y(r.valueOf()))return d.fromJSDate(r);if(r&&typeof r=="object")return d.fromObject(r);throw new M(`Unknown datetime argument: ${r}, of type ${typeof r}`)}var ei=r=>{const e=[],t=ti(r);let n=t.next();for(;n;)e.push(n),n=t.next();return e},ti=r=>({...r,next:ri(r)}),ri=r=>{let e=r.start;return()=>{if(e==null)return null;let t=null;switch(r.granularity){case 0:t=ni(e,r.end);break;case 1:t=si(e,r.end);break;case 2:t=ii(e,r.end);break;case 3:t=ai(e,r.end);break;case 4:t=oi(e,r.end);break;case 5:t=ui(e,r.end);break;case 6:t=li(e,r.end);break;case 7:t=ci(e,r.end)}return t===null?e=null:e=t.end.plus({milliseconds:1}),t}},ni=(r,e)=>e<=r?null:{period:"total",start:r,end:e},si=(r,e)=>{if(e<=r)return null;const t=r.toUTC(),n=d.utc(t.year,t.month,t.day).plus({years:1});return{period:"annual",start:r,end:n}},ii=(r,e)=>{if(e<=r)return null;const t=d.utc(r.year,7,1),n=d.utc(r.year,12,31,23,59,59,999);let s;return t>r?s=t:s=n,s>e&&(s=e),{period:"semiAnnual",start:r,end:s}},ai=(r,e)=>{if(e<=r)return null;let t;const n=r.toUTC(),s=n.month;return s<3?t=d.utc(n.year,4,1):s<6?t=d.utc(n.year,7,1):s<9?t=d.utc(n.year,10,1):t=d.utc(n.year,12,31,23,59,59,999),t>e&&(t=e),{period:"quarterly",start:r,end:t}},oi=(r,e)=>{if(e<=r)return null;const t=r.toUTC();let n=d.utc(t.year,t.month,t.day).plus({months:1}).startOf("month");return n>e&&(r.hasSame(e,"month")||(n=e)),{period:"monthly",start:r,end:n}},ui=(r,e)=>{if(e<=r)return null;const t=r.toUTC(),n=d.utc(t.year,t.month,t.day).plus({weeks:1}).startOf("week");return n>e&&!n.hasSame(e,"day")?{period:"weekly",start:r,end:e}:{period:"weekly",start:r,end:n}},li=(r,e)=>{if(e<=r)return null;let n=r.toUTC().plus({days:1}).startOf("day");return(n>e||n.hasSame(e,"day"))&&(n=e),{period:"daily",start:r,end:n}},ci=(r,e)=>{if(e<=r)return null;let n=r.toUTC().plus({hours:1});return n>e&&r.hour!==e.hour&&(n=e.toUTC()),{period:"hourly",start:r,end:n}},fi=r=>Math.floor((r.month-1)/3)+1;class dt{static discretize(e,t,n,s,i){const a=this._buildIndex(e,t),o=ei(this._calculateRange(n,s,i,e)),u=this._discretizeNode(a,{},t,o);return this._groupResultsByPeriod(o,u)}static _calculateRange(e,t,n,s){let i=e||null,a=t||null;if(i==null||a==null)for(const o of s){i==null&&(i=o.start);const u=o.end||o.start;(a==null||a<u)&&(a=u)}if(i==null||a==null)throw new Error("Cannot determine query start and/or end.");return{start:i,end:a,granularity:n}}static _groupResultsByPeriod(e,t){const n={};for(const s of e){const i=s.start.toISO()+"-"+s.period,a=dt._getPeriodString(s);n[i]={period:a,start:s.start,end:s.end,rows:[]}}for(const s of t)for(const i of Object.keys(s.series))n[i].rows.push({dimensions:s.dimensions,metric:s.metric,unit:s.unit=="__NULL__"?null:s.unit,value:s.series[i].inc,sum:s.series[i].sum});return Object.values(n)}static _getPeriodString(e){switch(e.period){case"annual":return e.start.year.toString();case"semiAnnual":return`${e.start.year}/${e.start.month<7?"H1":"H2"}`;case"quarterly":return`${e.start.year}/Q${fi(e.start)}`;case"monthly":const t=e.start.toUTC().month,n=t<10?`0${t}`:`${t}`;return`${e.start.year}/${n}`;case"weekly":return`${e.start.weekYear}/W${e.start.weekNumber}`;case"daily":const s=e.start.month,i=e.start.day,a=s<10?`0${s}`:`${s}`,o=i<10?`0${i}`:`${i}`;return`${e.start.year}/${a}/${o}`;case"hourly":const u=e.start.month,l=e.start.day,f=e.start.hour,m=u<10?`0${u}`:`${u}`,p=l<10?`0${l}`:`${l}`,h=f<10?`0${f}`:`${f}`;return`${e.start.year}/${m}/${p}/${h}`;default:return e.period}}static _discretizeNode(e,t,n,s){const i=[];if(n.length>0){const a=n[0];Object.keys(e).forEach((o,u,l)=>{const f={...t};f[a]=o,i.push(...this._discretizeNode(e[o],f,n.slice(1),s))})}else Object.keys(e).forEach(a=>{i.push(...this._discretizeLeaf(e[a],s,a,t))});return i}static _discretizeLeaf(e,t,n,s){const i=[];return Object.keys(e).forEach(a=>{const o={};Object.keys(s).forEach(u=>{o[u]={path:e[a][0].dimensions[u],icon:e[a][0].dimensions.icon,label:e[a][0].dimensions.label,description:e[a][0].dimensions.description}}),i.push({unit:a,metric:n,dimensions:o,series:this._discretizeSeries(e[a],t)})}),i}static _discretizeSeries(e,t){const n={};for(const s of e){let i=this._getValue(s,t[0].start);for(const a of t){const o=this._getValue(s,a.end),u=`${a.start.toISO()}-${a.period}`;n[u]?(n[u].inc+=o-i,n[u].sum+=o):n[u]={inc:o-i,sum:o},i=o}}return n}static _getValue(e,t){switch(e.fn){case"Single":return this._getSingleValue(e,t);case"DssVest":return this._getVestValue(e,t);default:return 0}}static _getSingleValue(e,t){return t>=e.start?e.value:0}static _getVestValue(e,t){const n=t,s=e.start,i=e.end,a=e.params?.cliff?d.fromISO(e.params.cliff):null;if(n<s||a&&n<a)return 0;if(i&&n>=i)return e.value;const o=k.fromDateTimes(s,n),u=k.fromDateTimes(s,i||n);return o.length()/u.length()*e.value}static _buildIndex(e,t){const n={},s={},i=t[0]||"";for(const a of e){const o=a.dimensions[i];s[o]===void 0&&(s[o]=[]),s[o].push(a)}if(t.length>1){const a=t.slice(1);Object.keys(s).forEach(o=>{n[o]=this._buildIndex(s[o],a)})}else Object.keys(s).forEach(a=>{n[a]=this._buildMetricsIndex(s[a])});return n}static _buildMetricsIndex(e){const t={},n={};for(const s of e){const i=s.metric;n[i]===void 0&&(n[i]=[]),n[i].push(s)}return Object.keys(n).forEach(s=>t[s]=this._buildUnitIndex(n[s])),t}static _buildUnitIndex(e){const t={};for(const n of e){const s=n.unit||"__NULL__";t[s]===void 0&&(t[s]=[]),t[s].push(n)}return t}}class di{_analyticsStore;_profiler;constructor(e,t){this._analyticsStore=e,this._profiler=t??new Br}async executeCompound(e){let t;const n={start:e.start,end:e.end,granularity:e.granularity,lod:e.lod,select:e.select,metrics:e.expression.inputs.metrics,currency:e.expression.inputs.currency},s={start:e.start,end:e.end,granularity:e.granularity,lod:{priceData:1},select:{priceData:[z.fromString("atlas")]},metrics:[e.expression.operand.metric],currency:e.expression.operand.currency},i=await this.execute(n),a=await this.execute(s);return[0,1].includes(e.expression.operator)?t=await this._profiler.record("ApplyVectorOperator",async()=>await this._applyVectorOperator(i,a,e.expression.operator,e.expression.resultCurrency)):t=await this._profiler.record("ApplyScalarOperator",async()=>await this._applyScalarOperator(i,a,e.expression.operator,e.expression.operand.useSum,e.expression.resultCurrency)),t}async execute(e){const t=await this._executeSeriesQuery(e),n=this._profiler.recordSync("ApplyLODs",()=>this._applyLods(t,e.lod)),s=Object.keys(e.select);return this._profiler.recordSync("Discretize",()=>n.length<1?[]:dt.discretize(n,s,e.start,e.end,e.granularity))}async executeMultiCurrency(e,t){const n={...e,currency:t.targetCurrency??e.currency};let s=await this.execute(n);for(const i of t.conversions){const a={start:e.start,end:e.end,granularity:e.granularity,lod:e.lod,select:e.select,expression:{inputs:{metrics:n.metrics,currency:i.currency},operator:2,operand:{metric:i.metric,currency:t.targetCurrency,useSum:!0},resultCurrency:t.targetCurrency}},o=await this.executeCompound(a);s=await this._applyVectorOperator(s,o,0,t.targetCurrency)}return s}async _applyVectorOperator(e,t,n,s){if([2,3].includes(n))throw new Error("Invalid operator for vector operation");return t}async _applyScalarOperator(e,t,n,s,i){if([0,1].includes(n))throw new Error("Invalid operator for scalar operation");const a=[],o={},u=s?"sum":"value";for(const l of t)l.rows.length>0&&(o[l.period]=l.rows[0][u]);for(const l of e){const f={period:l.period,start:l.start,end:l.end,rows:l.rows.map(m=>({dimensions:m.dimensions,metric:m.metric,unit:i?i.toString():m.unit,value:this._calculateOutputValue(m.value,n,o[l.period]),sum:-1}))};a.push(f)}return a}_calculateOutputValue(e,t,n){switch(t){case 0:return e+n;case 1:return e-n;case 2:return e*n;case 3:return e/n}}async _executeSeriesQuery(e){const t={start:e.start,end:e.end,select:e.select,metrics:e.metrics,currency:e.currency};return await this._analyticsStore.getMatchingSeries(t)}_applyLods(e,t){return e.map(n=>({...n,dimensions:this._applyDimensionsLods(n.dimensions,t)}))}_applyDimensionsLods(e,t){const n={};for(const[s,i]of Object.entries(t))i!==null&&e[s]&&(n[s]=e[s].path.applyLod(i).toString(),n.icon=e[s].icon.toString(),n.label=e[s].label.toString(),n.description=e[s].description.toString());return n}async getDimensions(){return await this._analyticsStore.getDimensions()}}export{en as AnalyticsGranularity,z as AnalyticsPath,E as AnalyticsPathSegment,di as AnalyticsQueryEngine,Kr as AnalyticsSerializerTypes,Br as PassthroughAnalyticsProfiler};
2
- //# sourceMappingURL=index-B2HJvmmA.js.map