openpond 0.2.55 → 0.2.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-server.d.ts +10545 -10254
- package/dist/app-server.js +1 -1
- package/dist/chunks/actions-command-QU4H53OG.js +2 -0
- package/dist/chunks/{app-layer-Y2UERCPY.js → app-layer-NSTE5HIT.js} +1 -1
- package/dist/chunks/app-server-connected-apps-JHGWLBXT.js +2 -0
- package/dist/chunks/app-server-evaluations-GJPFWIDA.js +2 -0
- package/dist/chunks/app-server-harness-services-IH4G6POY.js +2 -0
- package/dist/chunks/app-server-runtime-VCRNCNX2.js +2 -0
- package/dist/chunks/apps-BKTOR4F7.js +2 -0
- package/dist/chunks/chunk-25MBPJVY.js +2 -0
- package/dist/chunks/chunk-2D4Y3HNW.js +2 -0
- package/dist/chunks/chunk-2IHO4GDJ.js +2 -0
- package/dist/chunks/chunk-2QUCCP6Z.js +2 -0
- package/dist/chunks/chunk-3K4VVB7S.js +6 -0
- package/dist/chunks/chunk-3QIB5FXI.js +10 -0
- package/dist/chunks/chunk-3RCRSMWZ.js +17 -0
- package/dist/chunks/chunk-3VUATFZD.js +2 -0
- package/dist/chunks/chunk-3Z47M3YY.js +2 -0
- package/dist/chunks/{chunk-UA5DA5I2.js → chunk-4D7HWVWD.js} +1 -1
- package/dist/chunks/chunk-4EPSHPZL.js +2 -0
- package/dist/chunks/chunk-4NESNOK5.js +2 -0
- package/dist/chunks/chunk-523TE4BI.js +2 -0
- package/dist/chunks/{chunk-B7QDZPNX.js → chunk-5MCNZCVQ.js} +1 -1
- package/dist/chunks/chunk-6FDWRG55.js +2 -0
- package/dist/chunks/{chunk-DLVPSCTB.js → chunk-6QSSIT62.js} +1 -1
- package/dist/chunks/chunk-6ZFPQYHG.js +2 -0
- package/dist/chunks/chunk-74IIXVAE.js +2 -0
- package/dist/chunks/chunk-74ZXXBGN.js +6 -0
- package/dist/chunks/chunk-773TH7FN.js +2 -0
- package/dist/chunks/chunk-7E6T7GP5.js +2 -0
- package/dist/chunks/chunk-7ED24PP6.js +2 -0
- package/dist/chunks/chunk-7HPDGZOR.js +86 -0
- package/dist/chunks/chunk-7KWD2I6W.js +2 -0
- package/dist/chunks/chunk-7PXZ4X4P.js +2 -0
- package/dist/chunks/chunk-A6USMRWK.js +2 -0
- package/dist/chunks/chunk-ABD5M2D2.js +2 -0
- package/dist/chunks/chunk-ACYFMLWG.js +10 -0
- package/dist/chunks/chunk-AN525SPP.js +6 -0
- package/dist/chunks/chunk-APB2STJK.js +2 -0
- package/dist/chunks/chunk-AY64VY4E.js +2 -0
- package/dist/chunks/{chunk-G6JMQGX7.js → chunk-B7RFL4N2.js} +1 -1
- package/dist/chunks/chunk-BLXEAZCQ.js +12 -0
- package/dist/chunks/chunk-D74JEERO.js +5 -0
- package/dist/chunks/{chunk-U2YMBCX7.js → chunk-DARVPBZ4.js} +1 -1
- package/dist/chunks/chunk-DBK66CJP.js +8 -0
- package/dist/chunks/chunk-DDMZSZFL.js +1 -0
- package/dist/chunks/chunk-DIO5CB6U.js +2 -0
- package/dist/chunks/chunk-DMFUEUAZ.js +5 -0
- package/dist/chunks/chunk-DMVD2RFZ.js +2 -0
- package/dist/chunks/chunk-DUURYZOI.js +2 -0
- package/dist/chunks/chunk-DZUAT3TP.js +1 -0
- package/dist/chunks/chunk-EIEZHFIW.js +6 -0
- package/dist/chunks/chunk-EIRYMSEG.js +19 -0
- package/dist/chunks/{chunk-R27YGT77.js → chunk-EKM2D7JU.js} +1 -1
- package/dist/chunks/chunk-EQFGBL3O.js +2 -0
- package/dist/chunks/chunk-EYPCBBMS.js +2 -0
- package/dist/chunks/chunk-F4KOGISR.js +10 -0
- package/dist/chunks/chunk-F74GBN6K.js +2 -0
- package/dist/chunks/chunk-FEAKTSRS.js +2 -0
- package/dist/chunks/chunk-FFRFSDBM.js +2 -0
- package/dist/chunks/chunk-FTEOCCPB.js +23 -0
- package/dist/chunks/chunk-FUOEIDMA.js +8 -0
- package/dist/chunks/{chunk-BQAF5P7K.js → chunk-FV2R5RUN.js} +2 -2
- package/dist/chunks/chunk-FWIPHEVA.js +12 -0
- package/dist/chunks/chunk-FY5KHLMW.js +2 -0
- package/dist/chunks/chunk-G3RXYI2L.js +6 -0
- package/dist/chunks/chunk-GJ2ZJFDD.js +2 -0
- package/dist/chunks/chunk-GLDYJM7O.js +1 -0
- package/dist/chunks/chunk-GPVCOEUH.js +2 -0
- package/dist/chunks/chunk-GW766ZSO.js +5 -0
- package/dist/chunks/chunk-GWCHDF2C.js +4 -0
- package/dist/chunks/chunk-GZ7M5XBP.js +2 -0
- package/dist/chunks/chunk-H6IW2R22.js +140 -0
- package/dist/chunks/chunk-HCYX6RHP.js +2 -0
- package/dist/chunks/chunk-HDL5YSAA.js +2 -0
- package/dist/chunks/chunk-HIOKCIL7.js +2 -0
- package/dist/chunks/{chunk-IODUCRBA.js → chunk-HY3GOBFJ.js} +1 -1
- package/dist/chunks/chunk-HZEIRHEB.js +2 -0
- package/dist/chunks/chunk-I2NXNMRZ.js +2 -0
- package/dist/chunks/chunk-I7AQMAQI.js +33 -0
- package/dist/chunks/chunk-IZ6DLEVY.js +2 -0
- package/dist/chunks/chunk-J2TWKFML.js +1871 -0
- package/dist/chunks/chunk-JDEEWOD7.js +2 -0
- package/dist/chunks/chunk-JFXWI3EN.js +6 -0
- package/dist/chunks/chunk-JYKRR7E5.js +5 -0
- package/dist/chunks/chunk-KCJVFLBB.js +2 -0
- package/dist/chunks/{chunk-5CMKGD43.js → chunk-KG325WTN.js} +1 -1
- package/dist/chunks/chunk-KUERKVEU.js +3 -0
- package/dist/chunks/chunk-KVTBX2UP.js +2 -0
- package/dist/chunks/chunk-L3KS6MOV.js +2 -0
- package/dist/chunks/chunk-L6K7ERG5.js +2 -0
- package/dist/chunks/{chunk-MH3LHSGX.js → chunk-LQQNBVEB.js} +1 -1
- package/dist/chunks/{chunk-BTI4N7YO.js → chunk-M4JWQSV7.js} +1 -1
- package/dist/chunks/chunk-MQULU465.js +2 -0
- package/dist/chunks/chunk-MULXCKG7.js +10 -0
- package/dist/chunks/chunk-N4FFQPLR.js +2 -0
- package/dist/chunks/chunk-N73MU2C3.js +2 -0
- package/dist/chunks/chunk-NHQ36THU.js +3 -0
- package/dist/chunks/chunk-O6ULLQJ6.js +2 -0
- package/dist/chunks/chunk-O72BSKSO.js +2 -0
- package/dist/chunks/chunk-OGDADQGH.js +143 -0
- package/dist/chunks/chunk-OIUTWU6K.js +2 -0
- package/dist/chunks/chunk-OLLLZVHF.js +2 -0
- package/dist/chunks/chunk-OPNRWESL.js +3 -0
- package/dist/chunks/chunk-OQKJGTTO.js +4 -0
- package/dist/chunks/chunk-OQPJ7FJF.js +9 -0
- package/dist/chunks/{chunk-TERVLCRG.js → chunk-OS3LO5J3.js} +1 -1
- package/dist/chunks/chunk-OUVIWDL2.js +2 -0
- package/dist/chunks/chunk-PCSIOUHF.js +7 -0
- package/dist/chunks/chunk-PF5R6CMP.js +21 -0
- package/dist/chunks/chunk-PPAPVGJP.js +3 -0
- package/dist/chunks/chunk-PRGBLQVH.js +2 -0
- package/dist/chunks/chunk-PSGGOZFM.js +2 -0
- package/dist/chunks/chunk-PUZQU66L.js +2 -0
- package/dist/chunks/{chunk-NOTXPD2T.js → chunk-Q2QL6UWN.js} +1 -1
- package/dist/chunks/chunk-Q4TBTRIG.js +2 -0
- package/dist/chunks/chunk-Q5LEXXJG.js +16 -0
- package/dist/chunks/chunk-QDC4OW3S.js +2 -0
- package/dist/chunks/chunk-QEFHOJFE.js +7 -0
- package/dist/chunks/chunk-QHWGQ3A4.js +5 -0
- package/dist/chunks/chunk-QIKWJ2AA.js +11 -0
- package/dist/chunks/chunk-QNG27G3T.js +6 -0
- package/dist/chunks/chunk-QOGJAQDO.js +3 -0
- package/dist/chunks/chunk-QOTVNQDI.js +4 -0
- package/dist/chunks/{chunk-NNIRIUSY.js → chunk-RAXOSUSW.js} +1 -1
- package/dist/chunks/chunk-RNIAFXMB.js +50 -0
- package/dist/chunks/{chunk-SHQOIROR.js → chunk-S5ESN275.js} +3 -3
- package/dist/chunks/chunk-SDAUS5PY.js +2 -0
- package/dist/chunks/chunk-SDXFLO7J.js +5 -0
- package/dist/chunks/chunk-SH5CBAFC.js +2 -0
- package/dist/chunks/chunk-SWUEFLOH.js +2 -0
- package/dist/chunks/chunk-SYUKES6H.js +3 -0
- package/dist/chunks/chunk-T5AACNJI.js +2 -0
- package/dist/chunks/chunk-TRQQNFMO.js +4 -0
- package/dist/chunks/chunk-TVQAPBLZ.js +2 -0
- package/dist/chunks/chunk-UCPGRPWY.js +2 -0
- package/dist/chunks/chunk-UGL7WF3W.js +2 -0
- package/dist/chunks/{chunk-C6D4WAYN.js → chunk-UKMA4R6X.js} +2 -2
- package/dist/chunks/{chunk-4WEUCGJ3.js → chunk-VRIEKBBH.js} +1 -1
- package/dist/chunks/chunk-VYLGI3IH.js +13 -0
- package/dist/chunks/chunk-W45RKGM6.js +1 -0
- package/dist/chunks/chunk-WJ43MJ3F.js +2 -0
- package/dist/chunks/chunk-WMKYHXVM.js +3 -0
- package/dist/chunks/chunk-WN3V6KDN.js +3 -0
- package/dist/chunks/chunk-X4OSOOSU.js +3 -0
- package/dist/chunks/chunk-XDQMGUWL.js +2 -0
- package/dist/chunks/chunk-XTFPDQMH.js +3 -0
- package/dist/chunks/chunk-XVDFJ3ZF.js +2 -0
- package/dist/chunks/chunk-XW6HGSIT.js +8 -0
- package/dist/chunks/chunk-XXYGGNVM.js +2 -0
- package/dist/chunks/chunk-Y4OWBBDD.js +184 -0
- package/dist/chunks/chunk-YBT2NB32.js +2 -0
- package/dist/chunks/{chunk-QRAKXZOC.js → chunk-YOBN7KTF.js} +6 -6
- package/dist/chunks/chunk-YOQRYNLP.js +2 -0
- package/dist/chunks/chunk-YY7LEQGP.js +2 -0
- package/dist/chunks/chunk-Z4Z5UOZM.js +22 -0
- package/dist/chunks/chunk-Z54O534A.js +3 -0
- package/dist/chunks/chunk-ZCHXGRRU.js +2 -0
- package/dist/chunks/chunk-ZFSHBFG5.js +40 -0
- package/dist/chunks/chunk-ZGTOK7ZK.js +12 -0
- package/dist/chunks/{chunk-Q7AXHFZV.js → chunk-ZRDGQDZL.js} +1 -1
- package/dist/chunks/chunk-ZUJ3XUCP.js +2 -0
- package/dist/chunks/chunk-ZZWAQBA2.js +2 -0
- package/dist/chunks/cli-X25RSO2X.js +2 -0
- package/dist/chunks/configuration-command-6C5UO7GE.js +2 -0
- package/dist/chunks/connected-app-executor-IVLGQP65.js +2 -0
- package/dist/chunks/connected-evidence-GH2ATNEX.js +2 -0
- package/dist/chunks/connection-HTF6CC7M.js +2 -0
- package/dist/chunks/{continual-TTGJ6YTR.js → continual-6CQAMTTR.js} +3 -3
- package/dist/chunks/core-commands-A2DGGIPS.js +2 -0
- package/dist/chunks/datasets-7BNMVJOY.js +2 -0
- package/dist/chunks/desktop-test-3CUHVLXV.js +3 -0
- package/dist/chunks/dist-OMGUJYPD.js +2 -0
- package/dist/chunks/dist-VYC5VMQB.js +2 -0
- package/dist/chunks/{dist-FAJX2UBW.js → dist-ZVJPJLXR.js} +1 -1
- package/dist/chunks/enclave-QS4BUNDU.js +2 -0
- package/dist/chunks/evaluation-coordination-XEF5L7KZ.js +2 -0
- package/dist/chunks/experiment-improvements-KRX2DP27.js +2 -0
- package/dist/chunks/experiments-DFGQYA4O.js +2 -0
- package/dist/chunks/experiments-VFQGE4HC.js +2 -0
- package/dist/chunks/{extension-DWMY6D2R.js → extension-XKXXOP5N.js} +1 -1
- package/dist/chunks/{help-A72QDRNG.js → help-S7THC6IE.js} +1 -1
- package/dist/chunks/host-profile-evaluation-tools-NRLXL2S5.js +2 -0
- package/dist/chunks/host-profile-external-dataset-K3ICDHIP.js +2 -0
- package/dist/chunks/hosted-app-server-composition-HPL3CRXN.js +2 -0
- package/dist/chunks/hosted-experiment-improvement-NFSVS5TU.js +3 -0
- package/dist/chunks/hosted-harness-runtime-723S5ZSH.js +2 -0
- package/dist/chunks/hosted-profile-candidate-2S5LFUWD.js +3 -0
- package/dist/chunks/hosted-profile-compiler-2DQIFSXW.js +2 -0
- package/dist/chunks/hosted-profile-evaluation-control-76BTRTYD.js +2 -0
- package/dist/chunks/hosted-profile-evaluation-inspection-V6Z3A5XJ.js +3 -0
- package/dist/chunks/hosted-profile-evaluation-preparation-IDJYREW3.js +3 -0
- package/dist/chunks/hosted-tasksets-ANAE2PIW.js +2 -0
- package/dist/chunks/human-review-WR777ODH.js +2 -0
- package/dist/chunks/import-MLZUHITH.js +4 -0
- package/dist/chunks/learning-ACEVFL5M.js +2 -0
- package/dist/chunks/local-harness-improvement-runtime-JIQ6ZVDW.js +2 -0
- package/dist/chunks/local-harness-taskset-review-XVYTGAGK.js +2 -0
- package/dist/chunks/local-scope-HVF2GZ5W.js +2 -0
- package/dist/chunks/model-projects-QPO22JPA.js +2 -0
- package/dist/chunks/opchat-T4QTNEIY.js +3 -0
- package/dist/chunks/organizations-75L5DZDV.js +2 -0
- package/dist/chunks/{profile-NOZ6TVXL.js → profile-TFZMUEDR.js} +1 -1
- package/dist/chunks/profile-training-source-6GOT7AHM.js +2 -0
- package/dist/chunks/project-action-payload-7VGL7OER.js +2 -0
- package/dist/chunks/project-agent-6RRO233B.js +2 -0
- package/dist/chunks/published-experiment-source-DZFENAQA.js +2 -0
- package/dist/chunks/refiner-profile-service-UUIWFJVT.js +2 -0
- package/dist/chunks/runtime-A7OZXM43.js +6 -0
- package/dist/chunks/sandbox-command-IU5XFTJP.js +2 -0
- package/dist/chunks/{sandbox-template-LKGBDVJ4.js → sandbox-template-C4V6T36U.js} +1 -1
- package/dist/chunks/saved-work-6BMBFP43.js +2 -0
- package/dist/chunks/send-turn-XTAIS2JN.js +2 -0
- package/dist/chunks/src-INHPJ63Z.js +326 -0
- package/dist/chunks/{src-ZWJ5IO7A.js → src-LMC3K6LH.js} +1 -1
- package/dist/chunks/standalone-experiment-turn-owner-JCY5LL5R.js +2 -0
- package/dist/chunks/store-chat-workflows-S72HZXQR.js +18 -0
- package/dist/chunks/store-continual-support-reviews-HHA6NX7K.js +7 -0
- package/dist/chunks/store-conversation-serving-KPC62UEY.js +2 -0
- package/dist/chunks/store-create-improve-QV54XIZW.js +40 -0
- package/dist/chunks/store-datasets-RXJ33SUN.js +86 -0
- package/dist/chunks/store-evaluation-results-3F3P527G.js +7 -0
- package/dist/chunks/store-harness-evaluation-review-settings-I2R3HPO3.js +29 -0
- package/dist/chunks/store-harness-memory-VINCZ4GK.js +17 -0
- package/dist/chunks/store-harness-refinement-candidates-EA5KFQPH.js +21 -0
- package/dist/chunks/store-harness-workspaces-XUM4Z66X.js +2 -0
- package/dist/chunks/store-human-review-RAH7WMIP.js +7 -0
- package/dist/chunks/store-learned-preference-migration-validation-4CI2IRUF.js +2 -0
- package/dist/chunks/store-learning-WLG6KFIO.js +2 -0
- package/dist/chunks/store-learning-credentials-WZQJ4HPJ.js +2 -0
- package/dist/chunks/store-local-experiments-5LUJR7GI.js +97 -0
- package/dist/chunks/store-model-batch-review-YEGX327M.js +2 -0
- package/dist/chunks/store-model-configuration-5ZURQATB.js +3 -0
- package/dist/chunks/store-preference-comparison-LV32MHVL.js +6 -0
- package/dist/chunks/store-schedules-VGTEQVKH.js +53 -0
- package/dist/chunks/store-sidebar-file-bookmarks-VB5GTLFY.js +18 -0
- package/dist/chunks/store-sidebar-preferences-GWIOG2NH.js +16 -0
- package/dist/chunks/store-subagents-T7R2Z6TB.js +67 -0
- package/dist/chunks/store-task-inbox-JJTBW76C.js +33 -0
- package/dist/chunks/store-task-inventory-OB3F2APC.js +10 -0
- package/dist/chunks/store-taskset-drafts-EKQWWFYQ.js +9 -0
- package/dist/chunks/store-training-G6YLFSIR.js +70 -0
- package/dist/chunks/store-training-jobs-RC46YBF6.js +19 -0
- package/dist/chunks/store-training-models-6BA43IPP.js +49 -0
- package/dist/chunks/store-usage-IE2U2FD3.js +63 -0
- package/dist/chunks/store-work-evidence-QQDKM5AQ.js +8 -0
- package/dist/chunks/taskset-EQRFQBYM.js +2 -0
- package/dist/chunks/taskset-packages-XC6HEE3K.js +2 -0
- package/dist/chunks/{teams-bot-H7XT23XB.js → teams-bot-EAPGPTHZ.js} +1 -1
- package/dist/chunks/training-UF6RPI4T.js +2 -0
- package/dist/chunks/web-search-CZ3NCLPY.js +2 -0
- package/dist/chunks/workspaces-EKKE5NAC.js +2 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/web/assets/{App-CTlAPuCY.css → App-CaRMZoxo.css} +1 -1
- package/dist/web/assets/App-s-CJswyt.js +154 -0
- package/dist/web/assets/{AppDialog-CPHTPqrx.js → AppDialog-t2Fx5tK3.js} +1 -1
- package/dist/web/assets/{AppTerminalPanel-BVj5Tj93.js → AppTerminalPanel-Dj1Y32oI.js} +2 -2
- package/dist/web/assets/{AppsView-O69zEBY3.js → AppsView-BYE5EBDJ.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-Pr_Kpe8p.js → BrowserSidebar-jhWi4rVm.js} +1 -1
- package/dist/web/assets/{CartesianChart-JPqo6YOf.js → CartesianChart-C1DIx0Ia.js} +1 -1
- package/dist/web/assets/{CollaborationTabs-CAJcQFn2.js → CollaborationTabs-Bdr-HmOL.js} +1 -1
- package/dist/web/assets/{CommandMenu-B-w53n9A.js → CommandMenu-Ux2yOHAc.js} +1 -1
- package/dist/web/assets/{CommunityView-DbZKK8_P.js → CommunityView-DPEeVKFn.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-3_083PF4.js → ComposerCreateImproveStrip-CEgh4OtN.js} +1 -1
- package/dist/web/assets/{GetStartedView-D7JGm_6c.js → GetStartedView-CFHP0AaI.js} +1 -1
- package/dist/web/assets/{HostedModelLearningReview-DwgMfZ7_.js → HostedModelLearningReview-D8BGTPVN.js} +1 -1
- package/dist/web/assets/{HostedModelLearningSettings-JRfQadRl.js → HostedModelLearningSettings-JS1S7vNO.js} +1 -1
- package/dist/web/assets/{LabModelVersionDetailPage-BUYflJY_.js → LabModelVersionDetailPage-Dx5Q3xV2.js} +1 -1
- package/dist/web/assets/{LabSkillSidebar-BBiqk7Rf.js → LabSkillSidebar-BxffN-pN.js} +1 -1
- package/dist/web/assets/{LabsRoute-Ci6vUnSd.js → LabsRoute-CyYF8-dw.js} +4 -4
- package/dist/web/assets/{MainChatThread-BQK3oI2N.js → MainChatThread-DZpcFRFl.js} +2 -2
- package/dist/web/assets/MainPane-5DTtwVCk.js +65 -0
- package/dist/web/assets/MainPane-BIM_UJ3q.css +1 -0
- package/dist/web/assets/{MarkdownText-DOdOVFXL.js → MarkdownText-BR4V6lNO.js} +21 -21
- package/dist/web/assets/{NativeSkillSidebar-CRI_ri8z.js → NativeSkillSidebar-DU9IEgIO.js} +1 -1
- package/dist/web/assets/{NewExperienceSwitcher-DhYtfE68.js → NewExperienceSwitcher-mIy6FzCj.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-D8sy1gOz.js → NewProjectDialog-RfTZTHxl.js} +1 -1
- package/dist/web/assets/{OutputsPage-CbWgrhXA.js → OutputsPage-Cr1Spf7S.js} +1 -1
- package/dist/web/assets/{ProjectsPage-DLB67lyA.js → ProjectsPage-CE6QUB-b.js} +1 -1
- package/dist/web/assets/{RightChatPanelStack-ozSKnDyX.js → RightChatPanelStack-T6VRWuHo.js} +1 -1
- package/dist/web/assets/RightSidebarHomePanel-CK0rP3WT.js +1 -0
- package/dist/web/assets/{ScheduledWorkPage-Cafv_QnR.js → ScheduledWorkPage-vOrYv8pp.js} +1 -1
- package/dist/web/assets/SettingsView-DCKVrfjj.js +5 -0
- package/dist/web/assets/SettingsView-Dulr_xlq.css +1 -0
- package/dist/web/assets/{TeamChatView-vIrmXOY_.js → TeamChatView-Bwrjr-vk.js} +2 -2
- package/dist/web/assets/{TerminalOverlay-CAmF__Dq.js → TerminalOverlay-DhPoKZAq.js} +1 -1
- package/dist/web/assets/TrainingCreationPanel-BXHfohNm.js +1 -0
- package/dist/web/assets/{TrainingDraftPanel-D7XZePAk.js → TrainingDraftPanel-C9cRX5qf.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-CYTmp7PG.js → UsageSettingsSection-CrdcSGeW.js} +1 -1
- package/dist/web/assets/WorkSidebarPanel-DSSikNFQ.js +1 -0
- package/dist/web/assets/{WorkspaceDiffPanel-DQGoIjH9.js → WorkspaceDiffPanel-BAFo0CPN.js} +6 -6
- package/dist/web/assets/{WorkspaceEnvironmentMenu-c1pHDskn.js → WorkspaceEnvironmentMenu-BVHAhwnJ.js} +1 -1
- package/dist/web/assets/WorkspaceGitDialogs-CwVoiDQ2.js +1 -0
- package/dist/web/assets/{WorkspaceMonacoEditor-BCKzvSj2.js → WorkspaceMonacoEditor-TxLyhzNp.js} +3 -3
- package/dist/web/assets/{arrow-up-right-CP4hZdrJ.js → arrow-up-right-C9aE8Mfz.js} +1 -1
- package/dist/web/assets/{chunk-NOJECMB7-Bhcms-w5.js → chunk-P3BRSSRD-DUGfuKA8.js} +1 -1
- package/dist/web/assets/{clipboard-BgrXorn-.js → clipboard-Dk158Qp4.js} +1 -1
- package/dist/web/assets/{cloud-upload-B_zYztb6.js → cloud-upload-k9eqBsHr.js} +1 -1
- package/dist/web/assets/{cssMode-DanjGgA8.js → cssMode-CO35ARZp.js} +1 -1
- package/dist/web/assets/{folder-open-CdVKbtGq.js → folder-open-sYgceW_f.js} +1 -1
- package/dist/web/assets/{folder-plus-Cc5KElB6.js → folder-plus-CS0R49m9.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-CjGIIgRi.js → git-commit-horizontal-DrGxH2h4.js} +1 -1
- package/dist/web/assets/{htmlMode-DRGDF_UL.js → htmlMode-REMmzdfq.js} +1 -1
- package/dist/web/assets/index-3iPNbbER.css +1 -0
- package/dist/web/assets/{index-BE-wXZ5R.js → index-C8aCGagb.js} +2 -2
- package/dist/web/assets/{info-BLj0RvhA.js → info-DLdbiUrh.js} +1 -1
- package/dist/web/assets/{jsonMode-CCu0j2GD.js → jsonMode-KEdMfkIf.js} +1 -1
- package/dist/web/assets/{lspLanguageFeatures-s_Lhm7P6.js → lspLanguageFeatures-5KZwEoxW.js} +1 -1
- package/dist/web/assets/{minimize-2-Cyg_zD9z.js → minimize-2-CqcI4zcM.js} +1 -1
- package/dist/web/assets/{monaco.contribution-CY7mRgOB.js → monaco.contribution-BJGj65F9.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CAzXvYkn.js → monaco.contribution-Cly9Wt7L.js} +2 -2
- package/dist/web/assets/{monaco.contribution-mUPNK9ra.js → monaco.contribution-DO10L0zW.js} +2 -2
- package/dist/web/assets/{monaco.contribution-aUeLcBEg.js → monaco.contribution-omszXBEj.js} +2 -2
- package/dist/web/assets/{monitor-DZvOs_wC.js → monitor-BFVCcbxp.js} +1 -1
- package/dist/web/assets/{play-BJPzemuY.js → play-C469pVZq.js} +1 -1
- package/dist/web/assets/{python-B_qnnVaG.js → python-Dw0YcVy9.js} +1 -1
- package/dist/web/assets/{save-BDy9tA3E.js → save-CtSjPydi.js} +1 -1
- package/dist/web/assets/{square-Cb2c5td4.js → square-BuImvLhT.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-MhO1JLyR.js → toggleHighContrast-DjCO9lIP.js} +1 -1
- package/dist/web/assets/{tsMode-DfBXJb9V.js → tsMode-BAOnxKd6.js} +1 -1
- package/dist/web/assets/{upload-D56kThRh.js → upload-2JkFZo3h.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-DMnGfswi.js → useLocalAgentSchedules-BNqAisfS.js} +1 -1
- package/dist/web/assets/useProviderSettings-C4L4wDoh.js +5 -0
- package/dist/web/assets/{useProviderSettings-Bw-csWbH.css → useProviderSettings-CmL_BaxP.css} +1 -1
- package/dist/web/assets/{useSessionTurnCache-ClAY8gze.js → useSessionTurnCache-BHU2-Jmz.js} +1 -1
- package/dist/web/assets/{wifi-off-C9lWJmVm.js → wifi-off-CpOAH62M.js} +1 -1
- package/dist/web/assets/{workers-BYzrH8by.js → workers-0QvlA2T5.js} +1 -1
- package/dist/web/assets/{yaml-D3T8UkT3.js → yaml-BK3qxo7D.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunks/actions-command-WTFZA7LF.js +0 -2
- package/dist/chunks/app-server-runtime-2RM3N4I6.js +0 -2
- package/dist/chunks/apps-KDNWYO3G.js +0 -2
- package/dist/chunks/chunk-2DFR7PJ4.js +0 -2460
- package/dist/chunks/chunk-4CRM2ADK.js +0 -2
- package/dist/chunks/chunk-55G6B54U.js +0 -6
- package/dist/chunks/chunk-73G5UYBB.js +0 -12
- package/dist/chunks/chunk-ARQEJOEK.js +0 -33
- package/dist/chunks/chunk-CGBI2VYJ.js +0 -2
- package/dist/chunks/chunk-GGIG3XU7.js +0 -3
- package/dist/chunks/chunk-JIMU3KDA.js +0 -24
- package/dist/chunks/chunk-JUJSA7KI.js +0 -22
- package/dist/chunks/chunk-K5SBVO3B.js +0 -195
- package/dist/chunks/chunk-KD3QVRIJ.js +0 -21
- package/dist/chunks/chunk-L4235TRQ.js +0 -140
- package/dist/chunks/chunk-MVF3F5QS.js +0 -2
- package/dist/chunks/chunk-OULAKUIN.js +0 -2
- package/dist/chunks/chunk-OWNLDB2O.js +0 -2
- package/dist/chunks/chunk-QDHMP5FS.js +0 -2
- package/dist/chunks/chunk-QKD5OMDI.js +0 -2
- package/dist/chunks/chunk-R2BSIRYL.js +0 -3
- package/dist/chunks/chunk-STDMBJOQ.js +0 -9
- package/dist/chunks/chunk-T4QGDQHP.js +0 -4
- package/dist/chunks/chunk-USMZT5FZ.js +0 -18
- package/dist/chunks/chunk-VJEZPDBS.js +0 -5
- package/dist/chunks/chunk-WDFLCNRC.js +0 -8
- package/dist/chunks/chunk-WZYRAR7X.js +0 -16
- package/dist/chunks/chunk-YDT7L3VZ.js +0 -24
- package/dist/chunks/chunk-YUPBAWBJ.js +0 -554
- package/dist/chunks/cli-465VC2WP.js +0 -2
- package/dist/chunks/configuration-command-LAAP2EXT.js +0 -2
- package/dist/chunks/connected-evidence-XM626247.js +0 -2
- package/dist/chunks/core-commands-W7EK552V.js +0 -2
- package/dist/chunks/datasets-QJWYTTQL.js +0 -2
- package/dist/chunks/desktop-test-3B2D34NF.js +0 -3
- package/dist/chunks/dist-HUAE2KFZ.js +0 -2
- package/dist/chunks/evaluation-coordination-2MONR4AX.js +0 -2
- package/dist/chunks/experiment-improvements-WVQ5FK46.js +0 -2
- package/dist/chunks/experiments-S5UQ32QB.js +0 -2
- package/dist/chunks/hosted-experiment-improvement-2OWOQLHC.js +0 -3
- package/dist/chunks/hosted-harness-runtime-TGFMAV7W.js +0 -2
- package/dist/chunks/hosted-profile-candidate-WQSI6HZO.js +0 -3
- package/dist/chunks/hosted-profile-compiler-Z2A4TEA6.js +0 -2
- package/dist/chunks/hosted-profile-evaluation-control-FKGARUEE.js +0 -2
- package/dist/chunks/hosted-profile-evaluation-inspection-QOY2JKV4.js +0 -3
- package/dist/chunks/hosted-profile-evaluation-preparation-WVP6CALP.js +0 -3
- package/dist/chunks/human-review-TGHQKXFZ.js +0 -2
- package/dist/chunks/import-4UE5XNSG.js +0 -4
- package/dist/chunks/learning-R2XBMMEM.js +0 -2
- package/dist/chunks/opchat-WULL6CUP.js +0 -3
- package/dist/chunks/organizations-I37HISVX.js +0 -2
- package/dist/chunks/project-agent-T6XKC54C.js +0 -2
- package/dist/chunks/sandbox-command-STB47FRY.js +0 -2
- package/dist/chunks/src-T3KWWCAH.js +0 -322
- package/dist/chunks/taskset-RNYDR4GS.js +0 -2
- package/dist/chunks/training-M6FAPRSJ.js +0 -2
- package/dist/chunks/workspaces-MFZ3OO6O.js +0 -2
- package/dist/web/assets/App-CLFfy_Av.js +0 -154
- package/dist/web/assets/MainPane-D3ojiN-p.js +0 -18
- package/dist/web/assets/MainPane-DOWsSew1.css +0 -1
- package/dist/web/assets/RightSidebarHomePanel-CKs3OwhD.js +0 -1
- package/dist/web/assets/SettingsView-BnANbPLS.css +0 -1
- package/dist/web/assets/SettingsView-T1vYDPjh.js +0 -5
- package/dist/web/assets/TrainingCreationPanel-D75K0yk5.js +0 -1
- package/dist/web/assets/WorkSidebarPanel-CODMjVHY.js +0 -1
- package/dist/web/assets/WorkspaceGitDialogs-DrVtapQQ.js +0 -1
- package/dist/web/assets/index-B5re-RJy.css +0 -1
- package/dist/web/assets/useProviderSettings-Bv5B9eNk.js +0 -5
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a as jn,b as zn,c as Zn,d as Yn,e as Bn}from"./chunk-D74JEERO.js";import{a as Ne,b as $n,d as sr}from"./chunk-JDEEWOD7.js";import{U as rs,a as nr,d as Vn,e as qn,g as Gn,ga as ns,ha as ss,ia as as,j as Jn,k as Xn,v as es,w as ir,y as ts}from"./chunk-OGDADQGH.js";import{a as Un}from"./chunk-4NESNOK5.js";import{b as is,c as os}from"./chunk-L6K7ERG5.js";import{a as Ln}from"./chunk-J2TWKFML.js";import{a as Pe,b as Hn}from"./chunk-773TH7FN.js";import{b as Fn}from"./chunk-HDL5YSAA.js";import{i as Wn}from"./chunk-ZFSHBFG5.js";import{a as Kn,b as Qn}from"./chunk-GW766ZSO.js";import{i as Nn,p as An}from"./chunk-UKMA4R6X.js";import{b as _n,d as H,g as mt}from"./chunk-KG325WTN.js";import{b as bn,d as xn}from"./chunk-FUOEIDMA.js";import{k as In}from"./chunk-QNG27G3T.js";import{s as Re,u as Je,v as rr,z as Mn}from"./chunk-EIRYMSEG.js";import{Q as Pn,m as Rn}from"./chunk-QOTVNQDI.js";import{a as Cn}from"./chunk-WJ43MJ3F.js";import{a as Dn}from"./chunk-7ED24PP6.js";import{c as En}from"./chunk-L3KS6MOV.js";import{_ as kn,ca as Tn,fa as On}from"./chunk-I7AQMAQI.js";import{F as Sn}from"./chunk-Z4Z5UOZM.js";import{g as wn}from"./chunk-JFXWI3EN.js";import{m as ke}from"./chunk-KGNCKIFP.js";import{o as vn}from"./chunk-H7IWJN7L.js";import{a as o,b as yn,c as W,e as No}from"./chunk-FTQLQJQV.js";var cs=W(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0})});var me=W(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.CronField=void 0;var or=class t{static{o(this,"CronField")}#e=!1;#r=!1;#i=!1;#s=[];options={rawValue:""};static get min(){throw new Error("min must be overridden")}static get max(){throw new Error("max must be overridden")}static get chars(){return Object.freeze([])}static get validChars(){return/^[?,*\dH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}static get constraints(){return{min:this.min,max:this.max,chars:this.chars,validChars:this.validChars}}constructor(e,r={rawValue:""}){if(!Array.isArray(e))throw new Error(`${this.constructor.name} Validation error, values is not an array`);if(!(e.length>0))throw new Error(`${this.constructor.name} Validation error, values contains no values`);this.options={...r,rawValue:r.rawValue??""},this.#s=e.sort(t.sorter),this.#i=this.options.wildcard!==void 0?this.options.wildcard:this.#n(),this.#e=this.options.rawValue.includes("L")||e.includes("L"),this.#r=this.options.rawValue.includes("?")||e.includes("?")}get min(){return this.constructor.min}get max(){return this.constructor.max}get chars(){return this.constructor.chars}get hasLastChar(){return this.#e}get hasQuestionMarkChar(){return this.#r}get isWildcard(){return this.#i}get values(){return this.#s}static sorter(e,r){let n=typeof e=="number",s=typeof r=="number";return n&&s?e-r:!n&&!s?e.localeCompare(r):n?-1:1}static findNearestValueInList(e,r,n){if(n){for(let s=e.length-1;s>=0;s--)if(e[s]<r)return e[s];return null}for(let s=0;s<e.length;s++)if(e[s]>r)return e[s];return null}findNearestValue(e,r){return this.constructor.findNearestValueInList(this.values,e,r)}serialize(){return{wildcard:this.#i,values:this.#s}}validate(){let e,r=this.chars.length>0?` or chars ${this.chars.join("")}`:"",n=o(l=>u=>new RegExp(`^\\d{0,2}${u}$`).test(l),"charTest"),s=o(l=>(e=l,typeof l=="number"?l>=this.min&&l<=this.max:this.chars.some(n(l))),"rangeTest");if(!this.#s.every(s))throw new Error(`${this.constructor.name} Validation error, got value ${e} expected range ${this.min}-${this.max}${r}`);let a=this.#s.find((l,u)=>this.#s.indexOf(l)!==u);if(a)throw new Error(`${this.constructor.name} Validation error, duplicate values found: ${a}`)}#n(){return this.options.rawValue.length>0?["*","?"].includes(this.options.rawValue):Array.from({length:this.max-this.min+1},(e,r)=>r+this.min).every(e=>this.#s.includes(e))}};pt.CronField=or});var ds=W(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.CronDayOfMonth=void 0;var Ao=me(),_o=1,Wo=31,Fo=Object.freeze(["L"]),ar=class extends Ao.CronField{static{o(this,"CronDayOfMonth")}static get min(){return _o}static get max(){return Wo}static get chars(){return Fo}static get validChars(){return/^[?,*\dLH/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(e,r){super(e,r),this.validate()}get values(){return super.values}};gt.CronDayOfMonth=ar});var fs=W(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.CronDayOfWeek=void 0;var Ho=me(),Lo=0,$o=7,Vo=Object.freeze(["L"]),ur=class extends Ho.CronField{static{o(this,"CronDayOfWeek")}static get min(){return Lo}static get max(){return $o}static get chars(){return Vo}static get validChars(){return/^[?,*\dLH#/-]+$|^.*H\(\d+-\d+\)\/\d+.*$|^.*H\(\d+-\d+\).*$|^.*H\/\d+.*$/}constructor(e,r){super(e,r),this.validate()}get values(){return super.values}get nthDay(){return this.options.nthDayOfWeek??0}};yt.CronDayOfWeek=ur});var hs=W(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.CronHour=void 0;var Uo=me(),qo=0,jo=23,zo=Object.freeze([]),lr=class extends Uo.CronField{static{o(this,"CronHour")}static get min(){return qo}static get max(){return jo}static get chars(){return zo}constructor(e,r){super(e,r),this.validate()}get values(){return super.values}};wt.CronHour=lr});var ms=W(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.CronMinute=void 0;var Zo=me(),Yo=0,Bo=59,Go=Object.freeze([]),cr=class extends Zo.CronField{static{o(this,"CronMinute")}static get min(){return Yo}static get max(){return Bo}static get chars(){return Go}constructor(e,r){super(e,r),this.validate()}get values(){return super.values}};St.CronMinute=cr});var ji=W(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var de=class extends Error{static{o(this,"LuxonError")}},vr=class extends de{static{o(this,"InvalidDateTimeError")}constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},kr=class extends de{static{o(this,"InvalidIntervalError")}constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},Tr=class extends de{static{o(this,"InvalidDurationError")}constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},ye=class extends de{static{o(this,"ConflictingSpecificationError")}},It=class extends de{static{o(this,"InvalidUnitError")}constructor(e){super(`Invalid unit ${e}`)}},A=class extends de{static{o(this,"InvalidArgumentError")}},ae=class extends de{static{o(this,"ZoneIsAbstractError")}constructor(){super("Zone is an abstract class")}},y="numeric",se="short",z="long",bt={year:y,month:y,day:y},zs={year:y,month:se,day:y},Jo={year:y,month:se,day:y,weekday:se},Zs={year:y,month:z,day:y},Ys={year:y,month:z,day:y,weekday:z},Bs={hour:y,minute:y},Gs={hour:y,minute:y,second:y},Js={hour:y,minute:y,second:y,timeZoneName:se},Ks={hour:y,minute:y,second:y,timeZoneName:z},Qs={hour:y,minute:y,hourCycle:"h23"},Xs={hour:y,minute:y,second:y,hourCycle:"h23"},ei={hour:y,minute:y,second:y,hourCycle:"h23",timeZoneName:se},ti={hour:y,minute:y,second:y,hourCycle:"h23",timeZoneName:z},ri={year:y,month:y,day:y,hour:y,minute:y},ni={year:y,month:y,day:y,hour:y,minute:y,second:y},si={year:y,month:se,day:y,hour:y,minute:y},ii={year:y,month:se,day:y,hour:y,minute:y,second:y},Ko={year:y,month:se,day:y,weekday:se,hour:y,minute:y},oi={year:y,month:z,day:y,hour:y,minute:y,timeZoneName:se},ai={year:y,month:z,day:y,hour:y,minute:y,second:y,timeZoneName:se},ui={year:y,month:z,day:y,weekday:z,hour:y,minute:y,timeZoneName:z},li={year:y,month:z,day:y,weekday:z,hour:y,minute:y,second:y,timeZoneName:z},Se=class{static{o(this,"Zone")}get type(){throw new ae}get name(){throw new ae}get ianaName(){return this.name}get isUniversal(){throw new ae}offsetName(e,r){throw new ae}formatOffset(e,r){throw new ae}offset(e){throw new ae}equals(e){throw new ae}get isValid(){throw new ae}},dr=null,rt=class t extends Se{static{o(this,"SystemZone")}static get instance(){return dr===null&&(dr=new t),dr}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return vi(e,r,n)}formatOffset(e,r){return tt(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},Or=new Map;function Qo(t){let e=Or.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Or.set(t,e)),e}o(Qo,"makeDTF");var Xo={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ea(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,s,i,a,l,u,c,h]=n;return[a,s,i,l,u,c,h]}o(ea,"hackyOffset");function ta(t,e){let r=t.formatToParts(e),n=[];for(let s=0;s<r.length;s++){let{type:i,value:a}=r[s],l=Xo[i];i==="era"?n[l]=a:S(l)||(n[l]=parseInt(a,10))}return n}o(ta,"partsOffset");var fr=new Map,fe=class t extends Se{static{o(this,"IANAZone")}static create(e){let r=fr.get(e);return r===void 0&&fr.set(e,r=new t(e)),r}static resetCache(){fr.clear(),Or.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=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return vi(e,r,n,this.name)}formatOffset(e,r){return tt(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let n=Qo(this.name),[s,i,a,l,u,c,h]=n.formatToParts?ta(n,r):ea(n,r);l==="BC"&&(s=-Math.abs(s)+1);let m=_t({year:s,month:i,day:a,hour:u===24?0:u,minute:c,second:h,millisecond:0}),f=+r,g=f%1e3;return f-=g>=0?g:1e3+g,(m-f)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},ps={};function ra(t,e={}){let r=JSON.stringify([t,e]),n=ps[r];return n||(n=new Intl.ListFormat(t,e),ps[r]=n),n}o(ra,"getCachedLF");var Er=new Map;function Mr(t,e={}){let r=JSON.stringify([t,e]),n=Er.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(t,e),Er.set(r,n)),n}o(Mr,"getCachedDTF");var Dr=new Map;function na(t,e={}){let r=JSON.stringify([t,e]),n=Dr.get(r);return n===void 0&&(n=new Intl.NumberFormat(t,e),Dr.set(r,n)),n}o(na,"getCachedINF");var Ir=new Map;function sa(t,e={}){let{base:r,...n}=e,s=JSON.stringify([t,n]),i=Ir.get(s);return i===void 0&&(i=new Intl.RelativeTimeFormat(t,e),Ir.set(s,i)),i}o(sa,"getCachedRTF");var Qe=null;function ia(){return Qe||(Qe=new Intl.DateTimeFormat().resolvedOptions().locale,Qe)}o(ia,"systemLocale");var br=new Map;function ci(t){let e=br.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),br.set(t,e)),e}o(ci,"getCachedIntResolvedOptions");var xr=new Map;function oa(t){let e=xr.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...di,...e}),xr.set(t,e)}return e}o(oa,"getCachedWeekInfo");function aa(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,s;try{n=Mr(t).resolvedOptions(),s=t}catch{let u=t.substring(0,r);n=Mr(u).resolvedOptions(),s=u}let{numberingSystem:i,calendar:a}=n;return[s,i,a]}}o(aa,"parseLocaleString");function ua(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}o(ua,"intlConfigString");function la(t){let e=[];for(let r=1;r<=12;r++){let n=I.utc(2009,r,1);e.push(t(n))}return e}o(la,"mapMonths");function ca(t){let e=[];for(let r=1;r<=7;r++){let n=I.utc(2016,11,13+r);e.push(t(n))}return e}o(ca,"mapWeekdays");function vt(t,e,r,n){let s=t.listingMode();return s==="error"?null:s==="en"?r(e):n(e)}o(vt,"listStuff");function da(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||ci(t.locale).numberingSystem==="latn"}o(da,"supportsFastNumbers");var Cr=class{static{o(this,"PolyNumberFormatter")}constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:s,floor:i,...a}=n;if(!r||Object.keys(a).length>0){let l={useGrouping:!1,...n};n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=na(e,l)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):Vr(e,3);return C(r,this.padTo)}}},Rr=class{static{o(this,"PolyDateFormatter")}constructor(e,r,n){this.opts=n,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let a=-1*(e.offset/60),l=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&fe.create(l).valid?(s=l,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);let i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=Mr(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Pr=class{static{o(this,"PolyRelFormatter")}constructor(e,r,n){this.opts={style:"long",...n},!r&&wi()&&(this.rtf=sa(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):Pa(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},di={firstDay:1,minimalDays:4,weekend:[6,7]},M=class t{static{o(this,"Locale")}static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,s,i=!1){let a=e||D.defaultLocale,l=a||(i?"en-US":ia()),u=r||D.defaultNumberingSystem,c=n||D.defaultOutputCalendar,h=Ar(s)||D.defaultWeekSettings;return new t(l,u,c,h,a)}static resetCache(){Qe=null,Er.clear(),Dr.clear(),Ir.clear(),br.clear(),xr.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:s}={}){return t.create(e,r,n,s)}constructor(e,r,n,s,i){let[a,l,u]=aa(e);this.locale=a,this.numberingSystem=r||l||null,this.outputCalendar=n||u||null,this.weekSettings=s,this.intl=ua(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=da(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Ar(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,r=!1){return vt(this,e,Oi,()=>{let n=this.intl==="ja"||this.intl.startsWith("ja-");r&=!n;let s=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";if(!this.monthsCache[i][e]){let a=n?l=>this.dtFormatter(l,s).format():l=>this.extract(l,s,"month");this.monthsCache[i][e]=la(a)}return this.monthsCache[i][e]})}weekdays(e,r=!1){return vt(this,e,Di,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=r?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=ca(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return vt(this,void 0,()=>Ii,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[I.utc(2016,11,13,9),I.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return vt(this,e,bi,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[I.utc(-40,1,1),I.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let s=this.dtFormatter(e,r),i=s.formatToParts(),a=i.find(l=>l.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new Cr(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Rr(e,this.intl,r)}relFormatter(e={}){return new Pr(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ra(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||ci(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Si()?oa(this.locale):di}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})`}},hr=null,Z=class t extends Se{static{o(this,"FixedOffsetZone")}static get utcInstance(){return hr===null&&(hr=new t(0)),hr}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(Wt(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${tt(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${tt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return tt(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},xt=class extends Se{static{o(this,"InvalidZone")}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 ge(t,e){if(S(t)||t===null)return e;if(t instanceof Se)return t;if(ya(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?rt.instance:r==="utc"||r==="gmt"?Z.utcInstance:Z.parseSpecifier(r)||fe.create(t)}else return we(t)?Z.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new xt(t)}o(ge,"normalizeZone");var Fr={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},gs={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]},fa=Fr.hanidec.replace(/[\[|\]]/g,"").split("");function ha(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(t[r].search(Fr.hanidec)!==-1)e+=fa.indexOf(t[r]);else for(let s in gs){let[i,a]=gs[s];n>=i&&n<=a&&(e+=n-i)}}return parseInt(e,10)}else return e}o(ha,"parseDigits");var Nr=new Map;function ma(){Nr.clear()}o(ma,"resetDigitRegexCache");function re({numberingSystem:t},e=""){let r=t||"latn",n=Nr.get(r);n===void 0&&(n=new Map,Nr.set(r,n));let s=n.get(e);return s===void 0&&(s=new RegExp(`${Fr[r]}${e}`),n.set(e,s)),s}o(re,"digitRegex");var ys=o(()=>Date.now(),"now"),ws="system",Ss=null,vs=null,ks=null,Ts=60,Os,Es=null,D=class{static{o(this,"Settings")}static get now(){return ys}static set now(e){ys=e}static set defaultZone(e){ws=e}static get defaultZone(){return ge(ws,rt.instance)}static get defaultLocale(){return Ss}static set defaultLocale(e){Ss=e}static get defaultNumberingSystem(){return vs}static set defaultNumberingSystem(e){vs=e}static get defaultOutputCalendar(){return ks}static set defaultOutputCalendar(e){ks=e}static get defaultWeekSettings(){return Es}static set defaultWeekSettings(e){Es=Ar(e)}static get twoDigitCutoffYear(){return Ts}static set twoDigitCutoffYear(e){Ts=e%100}static get throwOnInvalid(){return Os}static set throwOnInvalid(e){Os=e}static resetCaches(){M.resetCache(),fe.resetCache(),I.resetCache(),ma()}},j=class{static{o(this,"Invalid")}constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},fi=[0,31,59,90,120,151,181,212,243,273,304,334],hi=[0,31,60,91,121,152,182,213,244,274,305,335];function G(t,e){return new j("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}o(G,"unitOutOfRange");function Hr(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let s=n.getUTCDay();return s===0?7:s}o(Hr,"dayOfWeek");function mi(t,e,r){return r+(st(t)?hi:fi)[e-1]}o(mi,"computeOrdinal");function pi(t,e){let r=st(t)?hi:fi,n=r.findIndex(i=>i<e),s=e-r[n];return{month:n+1,day:s}}o(pi,"uncomputeOrdinal");function Lr(t,e){return(t-e+7)%7+1}o(Lr,"isoWeekdayToLocal");function Ct(t,e=4,r=1){let{year:n,month:s,day:i}=t,a=mi(n,s,i),l=Lr(Hr(n,s,i),r),u=Math.floor((a-l+14-e)/7),c;return u<1?(c=n-1,u=nt(c,e,r)):u>nt(n,e,r)?(c=n+1,u=1):c=n,{weekYear:c,weekNumber:u,weekday:l,...Ft(t)}}o(Ct,"gregorianToWeek");function Ms(t,e=4,r=1){let{weekYear:n,weekNumber:s,weekday:i}=t,a=Lr(Hr(n,1,e),r),l=Fe(n),u=s*7+i-a-7+e,c;u<1?(c=n-1,u+=Fe(c)):u>l?(c=n+1,u-=Fe(n)):c=n;let{month:h,day:d}=pi(c,u);return{year:c,month:h,day:d,...Ft(t)}}o(Ms,"weekToGregorian");function mr(t){let{year:e,month:r,day:n}=t,s=mi(e,r,n);return{year:e,ordinal:s,...Ft(t)}}o(mr,"gregorianToOrdinal");function Ds(t){let{year:e,ordinal:r}=t,{month:n,day:s}=pi(e,r);return{year:e,month:n,day:s,...Ft(t)}}o(Ds,"ordinalToGregorian");function Is(t,e){if(!S(t.localWeekday)||!S(t.localWeekNumber)||!S(t.localWeekYear)){if(!S(t.weekday)||!S(t.weekNumber)||!S(t.weekYear))throw new ye("Cannot mix locale-based week fields with ISO-based week fields");return S(t.localWeekday)||(t.weekday=t.localWeekday),S(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),S(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}o(Is,"usesLocalWeekValues");function pa(t,e=4,r=1){let n=At(t.weekYear),s=J(t.weekNumber,1,nt(t.weekYear,e,r)),i=J(t.weekday,1,7);return n?s?i?!1:G("weekday",t.weekday):G("week",t.weekNumber):G("weekYear",t.weekYear)}o(pa,"hasInvalidWeekData");function ga(t){let e=At(t.year),r=J(t.ordinal,1,Fe(t.year));return e?r?!1:G("ordinal",t.ordinal):G("year",t.year)}o(ga,"hasInvalidOrdinalData");function gi(t){let e=At(t.year),r=J(t.month,1,12),n=J(t.day,1,Rt(t.year,t.month));return e?r?n?!1:G("day",t.day):G("month",t.month):G("year",t.year)}o(gi,"hasInvalidGregorianData");function yi(t){let{hour:e,minute:r,second:n,millisecond:s}=t,i=J(e,0,23)||e===24&&r===0&&n===0&&s===0,a=J(r,0,59),l=J(n,0,59),u=J(s,0,999);return i?a?l?u?!1:G("millisecond",s):G("second",n):G("minute",r):G("hour",e)}o(yi,"hasInvalidTimeData");function S(t){return typeof t>"u"}o(S,"isUndefined");function we(t){return typeof t=="number"}o(we,"isNumber");function At(t){return typeof t=="number"&&t%1===0}o(At,"isInteger");function ya(t){return typeof t=="string"}o(ya,"isString");function wa(t){return Object.prototype.toString.call(t)==="[object Date]"}o(wa,"isDate");function wi(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}o(wi,"hasRelative");function Si(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}o(Si,"hasLocaleWeekInfo");function Sa(t){return Array.isArray(t)?t:[t]}o(Sa,"maybeArray");function bs(t,e,r){if(t.length!==0)return t.reduce((n,s)=>{let i=[e(s),s];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}o(bs,"bestBy");function va(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}o(va,"pick");function Le(t,e){return Object.prototype.hasOwnProperty.call(t,e)}o(Le,"hasOwnProperty");function Ar(t){if(t==null)return null;if(typeof t!="object")throw new A("Week settings must be an object");if(!J(t.firstDay,1,7)||!J(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!J(e,1,7)))throw new A("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}o(Ar,"validateWeekSettings");function J(t,e,r){return At(t)&&t>=e&&t<=r}o(J,"integerBetween");function ka(t,e){return t-e*Math.floor(t/e)}o(ka,"floorMod");function C(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}o(C,"padStart");function pe(t){if(!(S(t)||t===null||t===""))return parseInt(t,10)}o(pe,"parseInteger");function Te(t){if(!(S(t)||t===null||t===""))return parseFloat(t)}o(Te,"parseFloating");function $r(t){if(!(S(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}o($r,"parseMillis");function Vr(t,e,r="round"){let n=10**e;switch(r){case"expand":return t>0?Math.ceil(t*n)/n:Math.floor(t*n)/n;case"trunc":return Math.trunc(t*n)/n;case"round":return Math.round(t*n)/n;case"floor":return Math.floor(t*n)/n;case"ceil":return Math.ceil(t*n)/n;default:throw new RangeError(`Value rounding ${r} is out of range`)}}o(Vr,"roundTo");function st(t){return t%4===0&&(t%100!==0||t%400===0)}o(st,"isLeapYear");function Fe(t){return st(t)?366:365}o(Fe,"daysInYear");function Rt(t,e){let r=ka(e-1,12)+1,n=t+(e-r)/12;return r===2?st(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}o(Rt,"daysInMonth");function _t(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}o(_t,"objToLocalTS");function xs(t,e,r){return-Lr(Hr(t,1,e),r)+e-1}o(xs,"firstWeekOffset");function nt(t,e=4,r=1){let n=xs(t,e,r),s=xs(t+1,e,r);return(Fe(t)-n+s)/7}o(nt,"weeksInWeekYear");function _r(t){return t>99?t:t>D.twoDigitCutoffYear?1900+t:2e3+t}o(_r,"untruncateYear");function vi(t,e,r,n=null){let s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);let a={timeZoneName:e,...i},l=new Intl.DateTimeFormat(r,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return l?l.value:null}o(vi,"parseZoneInfo");function Wt(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,s=r<0||Object.is(r,-0)?-n:n;return r*60+s}o(Wt,"signedOffset");function ki(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new A(`Invalid unit value ${t}`);return e}o(ki,"asNumber");function Pt(t,e){let r={};for(let n in t)if(Le(t,n)){let s=t[n];if(s==null)continue;r[e(n)]=ki(s)}return r}o(Pt,"normalizeObject");function tt(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${C(r,2)}:${C(n,2)}`;case"narrow":return`${s}${r}${n>0?`:${n}`:""}`;case"techie":return`${s}${C(r,2)}${C(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}o(tt,"formatOffset");function Ft(t){return va(t,["hour","minute","second","millisecond"])}o(Ft,"timeObject");var Ta=["January","February","March","April","May","June","July","August","September","October","November","December"],Ti=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Oa=["J","F","M","A","M","J","J","A","S","O","N","D"];function Oi(t){switch(t){case"narrow":return[...Oa];case"short":return[...Ti];case"long":return[...Ta];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}}o(Oi,"months");var Ei=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Mi=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ea=["M","T","W","T","F","S","S"];function Di(t){switch(t){case"narrow":return[...Ea];case"short":return[...Mi];case"long":return[...Ei];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}o(Di,"weekdays");var Ii=["AM","PM"],Ma=["Before Christ","Anno Domini"],Da=["BC","AD"],Ia=["B","A"];function bi(t){switch(t){case"narrow":return[...Ia];case"short":return[...Da];case"long":return[...Ma];default:return null}}o(bi,"eras");function ba(t){return Ii[t.hour<12?0:1]}o(ba,"meridiemForDateTime");function xa(t,e){return Di(e)[t.weekday-1]}o(xa,"weekdayForDateTime");function Ca(t,e){return Oi(e)[t.month-1]}o(Ca,"monthForDateTime");function Ra(t,e){return bi(e)[t.year<0?0:1]}o(Ra,"eraForDateTime");function Pa(t,e,r="always",n=!1){let 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(t)===-1;if(r==="auto"&&i){let d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${s[t][0]}`;case-1:return d?"yesterday":`last ${s[t][0]}`;case 0:return d?"today":`this ${s[t][0]}`}}let a=Object.is(e,-0)||e<0,l=Math.abs(e),u=l===1,c=s[t],h=n?u?c[1]:c[2]||c[1]:u?s[t][0]:t;return a?`${l} ${h} ago`:`in ${l} ${h}`}o(Pa,"formatRelativeTime");function Cs(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}o(Cs,"stringifyTokens");var Na={D:bt,DD:zs,DDD:Zs,DDDD:Ys,t:Bs,tt:Gs,ttt:Js,tttt:Ks,T:Qs,TT:Xs,TTT:ei,TTTT:ti,f:ri,ff:si,fff:oi,ffff:ui,F:ni,FF:ii,FFF:ai,FFFF:li},q=class t{static{o(this,"Formatter")}static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",s=!1,i=[];for(let a=0;a<e.length;a++){let l=e.charAt(a);l==="'"?((n.length>0||s)&&i.push({literal:s||/^\s+$/.test(n),val:n===""?"'":n}),r=null,n="",s=!s):s||l===r?n+=l:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=l,r=l)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Na[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,n=void 0){if(this.opts.forceSimple)return C(e,r);let s={...this.opts};return r>0&&(s.padTo=r),n&&(s.signDisplay=n),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=o((f,g)=>this.loc.extract(e,f,g),"string"),a=o(f=>e.isOffsetFixed&&e.offset===0&&f.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,f.format):"","formatOffset"),l=o(()=>n?ba(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),"meridiem"),u=o((f,g)=>n?Ca(e,f):i(g?{month:f}:{month:f,day:"numeric"},"month"),"month"),c=o((f,g)=>n?xa(e,f):i(g?{weekday:f}:{weekday:f,month:"long",day:"numeric"},"weekday"),"weekday"),h=o(f=>{let g=t.macroTokenToFormatOpts(f);return g?this.formatWithSystemDefault(e,g):f},"maybeMacro"),d=o(f=>n?Ra(e,f):i({era:f},"era"),"era"),m=o(f=>{switch(f){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 l();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 c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("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 d("short");case"GG":return d("long");case"GGGGG":return d("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 h(f)}},"tokenToString");return Cs(t.parseFormat(r),m)}formatDurationFromString(e,r){let n=this.opts.signMode==="negativeLargestOnly"?-1:1,s=o(h=>{switch(h[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}},"tokenToField"),i=o((h,d)=>m=>{let f=s(m);if(f){let g=d.isNegativeDuration&&f!==d.largestUnit?n:1,w;return this.opts.signMode==="negativeLargestOnly"&&f!==d.largestUnit?w="never":this.opts.signMode==="all"?w="always":w="auto",this.num(h.get(f)*g,m.length,w)}else return m},"tokenToString"),a=t.parseFormat(r),l=a.reduce((h,{literal:d,val:m})=>d?h:h.concat(m),[]),u=e.shiftTo(...l.map(s).filter(h=>h)),c={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return Cs(a,i(u,c))}},xi=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $e(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}o($e,"combineRegexes");function Ve(...t){return e=>t.reduce(([r,n,s],i)=>{let[a,l,u]=i(e,s);return[{...r,...a},l||n,u]},[{},null,1]).slice(0,2)}o(Ve,"combineExtractors");function Ue(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let s=r.exec(t);if(s)return n(s)}return[null,null]}o(Ue,"parse");function Ci(...t){return(e,r)=>{let n={},s;for(s=0;s<t.length;s++)n[t[s]]=pe(e[r+s]);return[n,null,r+s]}}o(Ci,"simpleParse");var Ri=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Aa=`(?:${Ri.source}?(?:\\[(${xi.source})\\])?)?`,Ur=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Pi=RegExp(`${Ur.source}${Aa}`),qr=RegExp(`(?:[Tt]${Pi.source})?`),_a=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Wa=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Fa=/(\d{4})-?(\d{3})/,Ha=Ci("weekYear","weekNumber","weekDay"),La=Ci("year","ordinal"),$a=/(\d{4})-(\d\d)-(\d\d)/,Ni=RegExp(`${Ur.source} ?(?:${Ri.source}|(${xi.source}))?`),Va=RegExp(`(?: ${Ni.source})?`);function He(t,e,r){let n=t[e];return S(n)?r:pe(n)}o(He,"int");function Ua(t,e){return[{year:He(t,e),month:He(t,e+1,1),day:He(t,e+2,1)},null,e+3]}o(Ua,"extractISOYmd");function qe(t,e){return[{hours:He(t,e,0),minutes:He(t,e+1,0),seconds:He(t,e+2,0),milliseconds:$r(t[e+3])},null,e+4]}o(qe,"extractISOTime");function it(t,e){let r=!t[e]&&!t[e+1],n=Wt(t[e+1],t[e+2]),s=r?null:Z.instance(n);return[{},s,e+3]}o(it,"extractISOOffset");function ot(t,e){let r=t[e]?fe.create(t[e]):null;return[{},r,e+1]}o(ot,"extractIANAZone");var qa=RegExp(`^T?${Ur.source}$`),ja=/^-?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 za(t){let[e,r,n,s,i,a,l,u,c]=t,h=e[0]==="-",d=u&&u[0]==="-",m=o((f,g=!1)=>f!==void 0&&(g||f&&h)?-f:f,"maybeNegate");return[{years:m(Te(r)),months:m(Te(n)),weeks:m(Te(s)),days:m(Te(i)),hours:m(Te(a)),minutes:m(Te(l)),seconds:m(Te(u),u==="-0"),milliseconds:m($r(c),d)}]}o(za,"extractISODuration");var Za={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function jr(t,e,r,n,s,i,a){let l={year:e.length===2?_r(pe(e)):pe(e),month:Ti.indexOf(r)+1,day:pe(n),hour:pe(s),minute:pe(i)};return a&&(l.second=pe(a)),t&&(l.weekday=t.length>3?Ei.indexOf(t)+1:Mi.indexOf(t)+1),l}o(jr,"fromStrings");var Ya=/^(?:(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 Ba(t){let[,e,r,n,s,i,a,l,u,c,h,d]=t,m=jr(e,s,n,r,i,a,l),f;return u?f=Za[u]:c?f=0:f=Wt(h,d),[m,new Z(f)]}o(Ba,"extractRFC2822");function Ga(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}o(Ga,"preprocessRFC2822");var Ja=/^(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$/,Ka=/^(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$/,Qa=/^(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 Rs(t){let[,e,r,n,s,i,a,l]=t;return[jr(e,s,n,r,i,a,l),Z.utcInstance]}o(Rs,"extractRFC1123Or850");function Xa(t){let[,e,r,n,s,i,a,l]=t;return[jr(e,l,r,n,s,i,a),Z.utcInstance]}o(Xa,"extractASCII");var eu=$e(_a,qr),tu=$e(Wa,qr),ru=$e(Fa,qr),nu=$e(Pi),Ai=Ve(Ua,qe,it,ot),su=Ve(Ha,qe,it,ot),iu=Ve(La,qe,it,ot),ou=Ve(qe,it,ot);function au(t){return Ue(t,[eu,Ai],[tu,su],[ru,iu],[nu,ou])}o(au,"parseISODate");function uu(t){return Ue(Ga(t),[Ya,Ba])}o(uu,"parseRFC2822Date");function lu(t){return Ue(t,[Ja,Rs],[Ka,Rs],[Qa,Xa])}o(lu,"parseHTTPDate");function cu(t){return Ue(t,[ja,za])}o(cu,"parseISODuration");var du=Ve(qe);function fu(t){return Ue(t,[qa,du])}o(fu,"parseISOTimeOnly");var hu=$e($a,Va),mu=$e(Ni),pu=Ve(qe,it,ot);function gu(t){return Ue(t,[hu,Ai],[mu,pu])}o(gu,"parseSQL");var Ps="Invalid Duration",_i={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}},yu={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},..._i},B=146097/400,Ae=146097/4800,wu={years:{quarters:4,months:12,weeks:B/7,days:B,hours:B*24,minutes:B*24*60,seconds:B*24*60*60,milliseconds:B*24*60*60*1e3},quarters:{months:3,weeks:B/28,days:B/4,hours:B*24/4,minutes:B*24*60/4,seconds:B*24*60*60/4,milliseconds:B*24*60*60*1e3/4},months:{weeks:Ae/7,days:Ae,hours:Ae*24,minutes:Ae*24*60,seconds:Ae*24*60*60,milliseconds:Ae*24*60*60*1e3},..._i},Ee=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Su=Ee.slice(0).reverse();function ce(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new R(n)}o(ce,"clone$1");function Wi(t,e){var r;let n=(r=e.milliseconds)!=null?r:0;for(let s of Su.slice(1))e[s]&&(n+=e[s]*t[s].milliseconds);return n}o(Wi,"durationToMillis");function Ns(t,e){let r=Wi(t,e)<0?-1:1;Ee.reduceRight((n,s)=>{if(S(e[s]))return n;if(n){let i=e[n]*r,a=t[s][n],l=Math.floor(i/a);e[s]+=l*r,e[n]-=l*a*r}return s},null),Ee.reduce((n,s)=>{if(S(e[s]))return n;if(n){let i=e[n]%1;e[n]-=i,e[s]+=i*t[n][s]}return s},null)}o(Ns,"normalizeValues");function As(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}o(As,"removeZeroes");var R=class t{static{o(this,"Duration")}constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?wu:yu;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||M.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new A(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:Pt(e,t.normalizeUnit),loc:M.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(we(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new A(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=cu(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=fu(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new A("need to specify a reason the Duration is invalid");let n=e instanceof j?e:new j(e,r);if(D.throwOnInvalid)throw new Tr(n);return new t({invalid:n})}static normalizeUnit(e){let r={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(!r)throw new It(e);return r}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,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?q.create(this.loc,n).formatDurationFromString(this,e):Ps}toHuman(e={}){if(!this.isValid)return Ps;let r=e.showZeros!==!1,n=Ee.map(s=>{let i=this.values[s];return S(i)||i===0&&!r?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+=Vr(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},I.fromMillis(r,{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?Wi(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let s of Ee)(Le(r.values,s)||Le(this.values,s))&&(n[s]=r.get(s)+this.get(s));return ce(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=ki(e(this.values[n],n));return ce(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...Pt(e,t.normalizeUnit)};return ce(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:s}={}){let a={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:s,conversionAccuracy:n};return ce(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return Ns(this.matrix,e),ce(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=As(this.normalize().shiftToAll().toObject());return ce(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>t.normalizeUnit(a));let r={},n={},s=this.toObject(),i;for(let a of Ee)if(e.indexOf(a)>=0){i=a;let l=0;for(let c in n)l+=this.matrix[c][a]*n[c],n[c]=0;we(s[a])&&(l+=s[a]);let u=Math.trunc(l);r[a]=u,n[a]=(l*1e3-u*1e3)/1e3}else we(s[a])&&(n[a]=s[a]);for(let a in n)n[a]!==0&&(r[i]+=a===i?n[a]:n[a]/this.matrix[i][a]);return Ns(this.matrix,r),ce(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return ce(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=As(this.values);return ce(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 r(n,s){return n===void 0||n===0?s===void 0||s===0:n===s}o(r,"eq");for(let n of Ee)if(!r(this.values[n],e.values[n]))return!1;return!0}},_e="Invalid Interval";function vu(t,e){return!t||!t.isValid?De.invalid("missing or invalid start"):!e||!e.isValid?De.invalid("missing or invalid end"):e<t?De.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}o(vu,"validateStartEnd");var De=class t{static{o(this,"Interval")}constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new A("need to specify a reason the Interval is invalid");let n=e instanceof j?e:new j(e,r);if(D.throwOnInvalid)throw new kr(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=Ke(e),s=Ke(r),i=vu(n,s);return i??new t({start:n,end:s})}static after(e,r){let n=R.fromDurationLike(r),s=Ke(e);return t.fromDateTimes(s,s.plus(n))}static before(e,r){let n=R.fromDurationLike(r),s=Ke(e);return t.fromDateTimes(s.minus(n),s)}static fromISO(e,r){let[n,s]=(e||"").split("/",2);if(n&&s){let i,a;try{i=I.fromISO(n,r),a=i.isValid}catch{a=!1}let l,u;try{l=I.fromISO(s,r),u=l.isValid}catch{u=!1}if(a&&u)return t.fromDateTimes(i,l);if(a){let c=R.fromISO(s,r);if(c.isValid)return t.after(i,c)}else if(u){let c=R.fromISO(n,r);if(c.isValid)return t.before(l,c)}}return t.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",r){if(!this.isValid)return NaN;let n=this.start.startOf(e,r),s;return r!=null&&r.useLocaleWeeks?s=this.end.reconfigure({locale:n.locale}):s=this.end,s=s.startOf(e,r),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:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(Ke).filter(a=>this.contains(a)).sort((a,l)=>a.toMillis()-l.toMillis()),n=[],{s}=this,i=0;for(;s<this.e;){let a=r[i]||this.e,l=+a>+this.e?this.e:a;n.push(t.fromDateTimes(s,l)),s=l,i+=1}return n}splitBy(e){let r=R.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,s=1,i,a=[];for(;n<this.e;){let l=this.start.plus(r.mapUnits(u=>u*s));i=+l>+this.e?this.e:l,a.push(t.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;let r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,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&&r.push(n),r}static xor(e){let r=null,n=0,s=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),l=a.sort((u,c)=>u.time-c.time);for(let u of l)n+=u.type==="s"?1:-1,n===1?r=u.time:(r&&+r!=+u.time&&s.push(t.fromDateTimes(r,u.time)),r=null);return t.merge(s)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:_e}[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=bt,r={}){return this.isValid?q.create(this.s.loc.clone(r),e).formatInterval(this):_e}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:_e}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:_e}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:_e}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:_e}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):R.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},Me=class{static{o(this,"Info")}static hasDST(e=D.defaultZone){let r=I.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return fe.isValidZone(e)}static normalizeZone(e){return ge(e,D.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||M.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||M.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||M.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:s=null}={}){return(s||M.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return M.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return M.create(r,null,"gregory").eras(e)}static features(){return{relative:wi(),localeWeek:Si()}}};function _s(t,e){let r=o(s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),"utcDayStart"),n=r(e)-r(t);return Math.floor(R.fromMillis(n).as("days"))}o(_s,"dayDiff");function ku(t,e,r){let n=[["years",(u,c)=>c.year-u.year],["quarters",(u,c)=>c.quarter-u.quarter+(c.year-u.year)*4],["months",(u,c)=>c.month-u.month+(c.year-u.year)*12],["weeks",(u,c)=>{let h=_s(u,c);return(h-h%7)/7}],["days",_s]],s={},i=t,a,l;for(let[u,c]of n)r.indexOf(u)>=0&&(a=u,s[u]=c(t,e),l=i.plus(s),l>e?(s[u]--,t=i.plus(s),t>e&&(l=t,s[u]--,t=i.plus(s))):t=l);return[t,s,l,a]}o(ku,"highOrderDiffs");function Tu(t,e,r,n){let[s,i,a,l]=ku(t,e,r),u=e-s,c=r.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(a<e&&(a=s.plus({[l]:1})),a!==s&&(i[l]=(i[l]||0)+u/(a-s)));let h=R.fromObject(i,n);return c.length>0?R.fromMillis(u,n).shiftTo(...c).plus(h):h}o(Tu,"diff");var Ou="missing Intl.DateTimeFormat.formatToParts support";function E(t,e=r=>r){return{regex:t,deser:o(([r])=>e(ha(r)),"deser")}}o(E,"intUnit");var Eu="\xA0",Fi=`[ ${Eu}]`,Hi=new RegExp(Fi,"g");function Mu(t){return t.replace(/\./g,"\\.?").replace(Hi,Fi)}o(Mu,"fixListRegex");function Ws(t){return t.replace(/\./g,"").replace(Hi," ").toLowerCase()}o(Ws,"stripInsensitivities");function ne(t,e){return t===null?null:{regex:RegExp(t.map(Mu).join("|")),deser:o(([r])=>t.findIndex(n=>Ws(r)===Ws(n))+e,"deser")}}o(ne,"oneOf");function Fs(t,e){return{regex:t,deser:o(([,r,n])=>Wt(r,n),"deser"),groups:e}}o(Fs,"offset");function kt(t){return{regex:t,deser:o(([e])=>e,"deser")}}o(kt,"simple");function Du(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}o(Du,"escapeToken");function Iu(t,e){let r=re(e),n=re(e,"{2}"),s=re(e,"{3}"),i=re(e,"{4}"),a=re(e,"{6}"),l=re(e,"{1,2}"),u=re(e,"{1,3}"),c=re(e,"{1,6}"),h=re(e,"{1,9}"),d=re(e,"{2,4}"),m=re(e,"{4,6}"),f=o(v=>({regex:RegExp(Du(v.val)),deser:o(([O])=>O,"deser"),literal:!0}),"literal"),w=o(v=>{if(t.literal)return f(v);switch(v.val){case"G":return ne(e.eras("short"),0);case"GG":return ne(e.eras("long"),0);case"y":return E(c);case"yy":return E(d,_r);case"yyyy":return E(i);case"yyyyy":return E(m);case"yyyyyy":return E(a);case"M":return E(l);case"MM":return E(n);case"MMM":return ne(e.months("short",!0),1);case"MMMM":return ne(e.months("long",!0),1);case"L":return E(l);case"LL":return E(n);case"LLL":return ne(e.months("short",!1),1);case"LLLL":return ne(e.months("long",!1),1);case"d":return E(l);case"dd":return E(n);case"o":return E(u);case"ooo":return E(s);case"HH":return E(n);case"H":return E(l);case"hh":return E(n);case"h":return E(l);case"mm":return E(n);case"m":return E(l);case"q":return E(l);case"qq":return E(n);case"s":return E(l);case"ss":return E(n);case"S":return E(u);case"SSS":return E(s);case"u":return kt(h);case"uu":return kt(l);case"uuu":return E(r);case"a":return ne(e.meridiems(),0);case"kkkk":return E(i);case"kk":return E(d,_r);case"W":return E(l);case"WW":return E(n);case"E":case"c":return E(r);case"EEE":return ne(e.weekdays("short",!1),1);case"EEEE":return ne(e.weekdays("long",!1),1);case"ccc":return ne(e.weekdays("short",!0),1);case"cccc":return ne(e.weekdays("long",!0),1);case"Z":case"ZZ":return Fs(new RegExp(`([+-]${l.source})(?::(${n.source}))?`),2);case"ZZZ":return Fs(new RegExp(`([+-]${l.source})(${n.source})?`),2);case"z":return kt(/[a-z_+-/]{1,256}?/i);case" ":return kt(/[^\S\n\r]/);default:return f(v)}},"unitate")(t)||{invalidReason:Ou};return w.token=t,w}o(Iu,"unitForToken");var bu={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 xu(t,e,r){let{type:n,value:s}=t;if(n==="literal"){let u=/^\s+$/.test(s);return{literal:!u,val:u?" ":s}}let i=e[n],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=r.hour12?"hour12":"hour24");let l=bu[a];if(typeof l=="object"&&(l=l[i]),l)return{literal:!1,val:l}}o(xu,"tokenForPart");function Cu(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}o(Cu,"buildRegex");function Ru(t,e,r){let n=t.match(e);if(n){let s={},i=1;for(let a in r)if(Le(r,a)){let l=r[a],u=l.groups?l.groups+1:1;!l.literal&&l.token&&(s[l.token.val[0]]=l.deser(n.slice(i,i+u))),i+=u}return[n,s]}else return[n,{}]}o(Ru,"match");function Pu(t){let e=o(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}},"toField"),r=null,n;return S(t.z)||(r=fe.create(t.z)),S(t.Z)||(r||(r=new Z(t.Z)),n=t.Z),S(t.q)||(t.M=(t.q-1)*3+1),S(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),S(t.u)||(t.S=$r(t.u)),[Object.keys(t).reduce((i,a)=>{let l=e(a);return l&&(i[l]=t[a]),i},{}),r,n]}o(Pu,"dateTimeFromMatches");var pr=null;function Nu(){return pr||(pr=I.fromMillis(1555555555555)),pr}o(Nu,"getDummyDateTime");function Au(t,e){if(t.literal)return t;let r=q.macroTokenToFormatOpts(t.val),n=Vi(r,e);return n==null||n.includes(void 0)?t:n}o(Au,"maybeExpandMacroToken");function Li(t,e){return Array.prototype.concat(...t.map(r=>Au(r,e)))}o(Li,"expandMacroTokens");var Nt=class{static{o(this,"TokenParser")}constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Li(q.parseFormat(r),e),this.units=this.tokens.map(n=>Iu(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,s]=Cu(this.units);this.regex=RegExp(n,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){let[r,n]=Ru(e,this.regex,this.handlers),[s,i,a]=n?Pu(n):[null,null,void 0];if(Le(n,"a")&&Le(n,"H"))throw new ye("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,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 $i(t,e,r){return new Nt(t,r).explainFromTokens(e)}o($i,"explainFromTokens");function _u(t,e,r){let{result:n,zone:s,specificOffset:i,invalidReason:a}=$i(t,e,r);return[n,s,i,a]}o(_u,"parseFromTokens");function Vi(t,e){if(!t)return null;let n=q.create(e,t).dtFormatter(Nu()),s=n.formatToParts(),i=n.resolvedOptions();return s.map(a=>xu(a,t,i))}o(Vi,"formatOptsToTokens");var gr="Invalid DateTime",Hs=864e13;function Xe(t){return new j("unsupported zone",`the zone "${t.name}" is not supported`)}o(Xe,"unsupportedZone");function yr(t){return t.weekData===null&&(t.weekData=Ct(t.c)),t.weekData}o(yr,"possiblyCachedWeekData");function wr(t){return t.localWeekData===null&&(t.localWeekData=Ct(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}o(wr,"possiblyCachedLocalWeekData");function Oe(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new I({...r,...e,old:r})}o(Oe,"clone");function Ui(t,e,r){let n=t-e*60*1e3,s=r.offset(n);if(e===s)return[n,e];n-=(s-e)*60*1e3;let i=r.offset(n);return s===i?[n,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}o(Ui,"fixOffset");function Tt(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}o(Tt,"tsToObj");function Et(t,e,r){return Ui(_t(t),e,r)}o(Et,"objToTS");function Ls(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:s,day:Math.min(t.c.day,Rt(n,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=R.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"),l=_t(i),[u,c]=Ui(l,r,t.zone);return a!==0&&(u+=a,c=t.zone.offset(u)),{ts:u,o:c}}o(Ls,"adjustTime");function We(t,e,r,n,s,i){let{setZone:a,zone:l}=r;if(t&&Object.keys(t).length!==0||e){let u=e||l,c=I.fromObject(t,{...r,zone:u,specificOffset:i});return a?c:c.setZone(l)}else return I.invalid(new j("unparsable",`the input "${s}" can't be parsed as ${n}`))}o(We,"parseDataToDateTime");function Ot(t,e,r=!0){return t.isValid?q.create(M.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}o(Ot,"toTechFormat");function Sr(t,e,r){let n=t.c.year>9999||t.c.year<0,s="";if(n&&t.c.year>=0&&(s+="+"),s+=C(t.c.year,n?6:4),r==="year")return s;if(e){if(s+="-",s+=C(t.c.month),r==="month")return s;s+="-"}else if(s+=C(t.c.month),r==="month")return s;return s+=C(t.c.day),s}o(Sr,"toISODate");function $s(t,e,r,n,s,i,a){let l=!r||t.c.millisecond!==0||t.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=C(t.c.hour),a==="hour")break;if(e){if(u+=":",u+=C(t.c.minute),a==="minute")break;l&&(u+=":",u+=C(t.c.second))}else{if(u+=C(t.c.minute),a==="minute")break;l&&(u+=C(t.c.second))}if(a==="second")break;l&&(!n||t.c.millisecond!==0)&&(u+=".",u+=C(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&t.offset===0&&!i?u+="Z":t.o<0?(u+="-",u+=C(Math.trunc(-t.o/60)),u+=":",u+=C(Math.trunc(-t.o%60))):(u+="+",u+=C(Math.trunc(t.o/60)),u+=":",u+=C(Math.trunc(t.o%60)))),i&&(u+="["+t.zone.ianaName+"]"),u}o($s,"toISOTime");var qi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wu={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Fu={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Mt=["year","month","day","hour","minute","second","millisecond"],Hu=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Lu=["year","ordinal","hour","minute","second","millisecond"];function Dt(t){let 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"}[t.toLowerCase()];if(!e)throw new It(t);return e}o(Dt,"normalizeUnit");function Vs(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Dt(t)}}o(Vs,"normalizeUnitWithLocalWeeks");function $u(t){if(et===void 0&&(et=D.now()),t.type!=="iana")return t.offset(et);let e=t.name,r=Wr.get(e);return r===void 0&&(r=t.offset(et),Wr.set(e,r)),r}o($u,"guessOffsetForZone");function Us(t,e){let r=ge(e.zone,D.defaultZone);if(!r.isValid)return I.invalid(Xe(r));let n=M.fromObject(e),s,i;if(S(t.year))s=D.now();else{for(let u of Mt)S(t[u])&&(t[u]=qi[u]);let a=gi(t)||yi(t);if(a)return I.invalid(a);let l=$u(r);[s,i]=Et(t,l,r)}return new I({ts:s,zone:r,loc:n,o:i})}o(Us,"quickDT");function qs(t,e,r){let n=S(r.round)?!0:r.round,s=S(r.rounding)?"trunc":r.rounding,i=o((l,u)=>(l=Vr(l,n||r.calendary?0:2,r.calendary?"round":s),e.loc.clone(r).relFormatter(r).format(l,u)),"format"),a=o(l=>r.calendary?e.hasSame(t,l)?0:e.startOf(l).diff(t.startOf(l),l).get(l):e.diff(t,l).get(l),"differ");if(r.unit)return i(a(r.unit),r.unit);for(let l of r.units){let u=a(l);if(Math.abs(u)>=1)return i(u,l)}return i(t>e?-0:0,r.units[r.units.length-1])}o(qs,"diffRelative");function js(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}o(js,"lastOpts");var et,Wr=new Map,I=class t{static{o(this,"DateTime")}constructor(e){let r=e.zone||D.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new j("invalid input"):null)||(r.isValid?null:Xe(r));this.ts=S(e.ts)?D.now():e.ts;let s=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[s,i]=[e.old.c,e.old.o];else{let l=we(e.o)&&!e.old?e.o:r.offset(this.ts);s=Tt(this.ts,l),n=Number.isNaN(s.year)?new j("invalid input"):null,s=n?null:s,i=n?null:l}this._zone=r,this.loc=e.loc||M.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=js(arguments),[n,s,i,a,l,u,c]=r;return Us({year:n,month:s,day:i,hour:a,minute:l,second:u,millisecond:c},e)}static utc(){let[e,r]=js(arguments),[n,s,i,a,l,u,c]=r;return e.zone=Z.utcInstance,Us({year:n,month:s,day:i,hour:a,minute:l,second:u,millisecond:c},e)}static fromJSDate(e,r={}){let n=wa(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let s=ge(r.zone,D.defaultZone);return s.isValid?new t({ts:n,zone:s,loc:M.fromObject(r)}):t.invalid(Xe(s))}static fromMillis(e,r={}){if(we(e))return e<-Hs||e>Hs?t.invalid("Timestamp out of range"):new t({ts:e,zone:ge(r.zone,D.defaultZone),loc:M.fromObject(r)});throw new A(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(we(e))return new t({ts:e*1e3,zone:ge(r.zone,D.defaultZone),loc:M.fromObject(r)});throw new A("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=ge(r.zone,D.defaultZone);if(!n.isValid)return t.invalid(Xe(n));let s=M.fromObject(r),i=Pt(e,Vs),{minDaysInFirstWeek:a,startOfWeek:l}=Is(i,s),u=D.now(),c=S(r.specificOffset)?n.offset(u):r.specificOffset,h=!S(i.ordinal),d=!S(i.year),m=!S(i.month)||!S(i.day),f=d||m,g=i.weekYear||i.weekNumber;if((f||h)&&g)throw new ye("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&h)throw new ye("Can't mix ordinal dates with month/day");let w=g||i.weekday&&!f,v,O,T=Tt(u,c);w?(v=Hu,O=Wu,T=Ct(T,a,l)):h?(v=Lu,O=Fu,T=mr(T)):(v=Mt,O=qi);let U=!1;for(let oe of v){let Ye=i[oe];S(Ye)?U?i[oe]=O[oe]:i[oe]=T[oe]:U=!0}let b=w?pa(i,a,l):h?ga(i):gi(i),lt=b||yi(i);if(lt)return t.invalid(lt);let Kt=w?Ms(i,a,l):h?Ds(i):i,[Ze,ct]=Et(Kt,c,n),P=new t({ts:Ze,zone:n,o:ct,loc:s});return i.weekday&&f&&e.weekday!==P.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${P.toISO()}`):P.isValid?P:t.invalid(P.invalid)}static fromISO(e,r={}){let[n,s]=au(e);return We(n,s,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,s]=uu(e);return We(n,s,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,s]=lu(e);return We(n,s,r,"HTTP",r)}static fromFormat(e,r,n={}){if(S(e)||S(r))throw new A("fromFormat requires an input string and a format");let{locale:s=null,numberingSystem:i=null}=n,a=M.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[l,u,c,h]=_u(a,e,r);return h?t.invalid(h):We(l,u,n,`format ${r}`,e,c)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,s]=gu(e);return We(n,s,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new A("need to specify a reason the DateTime is invalid");let n=e instanceof j?e:new j(e,r);if(D.throwOnInvalid)throw new vr(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=Vi(e,M.fromObject(r));return n?n.map(s=>s?s.val:null).join(""):null}static expandFormat(e,r={}){return Li(q.parseFormat(e),M.fromObject(r)).map(s=>s.val).join("")}static resetCache(){et=void 0,Wr.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?yr(this).weekYear:NaN}get weekNumber(){return this.isValid?yr(this).weekNumber:NaN}get weekday(){return this.isValid?yr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wr(this).weekday:NaN}get localWeekNumber(){return this.isValid?wr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wr(this).weekYear:NaN}get ordinal(){return this.isValid?mr(this.c).ordinal:NaN}get monthShort(){return this.isValid?Me.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Me.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Me.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Me.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];let e=864e5,r=6e4,n=_t(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),a=this.zone.offset(n-s*r),l=this.zone.offset(n-i*r);if(a===l)return[this];let u=n-a*r,c=n-l*r,h=Tt(u,a),d=Tt(c,l);return h.hour===d.hour&&h.minute===d.minute&&h.second===d.second&&h.millisecond===d.millisecond?[Oe(this,{ts:u}),Oe(this,{ts:c})]:[this]}get isInLeapYear(){return st(this.year)}get daysInMonth(){return Rt(this.year,this.month)}get daysInYear(){return this.isValid?Fe(this.year):NaN}get weeksInWeekYear(){return this.isValid?nt(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?nt(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:s}=q.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:s}}toUTC(e=0,r={}){return this.setZone(Z.instance(e),r)}toLocal(){return this.setZone(D.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=ge(e,D.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(r||n){let i=e.offset(this.ts),a=this.toObject();[s]=Et(a,i,e)}return Oe(this,{ts:s,zone:e})}else return t.invalid(Xe(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let s=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return Oe(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=Pt(e,Vs),{minDaysInFirstWeek:n,startOfWeek:s}=Is(r,this.loc),i=!S(r.weekYear)||!S(r.weekNumber)||!S(r.weekday),a=!S(r.ordinal),l=!S(r.year),u=!S(r.month)||!S(r.day),c=l||u,h=r.weekYear||r.weekNumber;if((c||a)&&h)throw new ye("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new ye("Can't mix ordinal dates with month/day");let d;i?d=Ms({...Ct(this.c,n,s),...r},n,s):S(r.ordinal)?(d={...this.toObject(),...r},S(r.day)&&(d.day=Math.min(Rt(d.year,d.month),d.day))):d=Ds({...mr(this.c),...r});let[m,f]=Et(d,this.o,this.zone);return Oe(this,{ts:m,o:f})}plus(e){if(!this.isValid)return this;let r=R.fromDurationLike(e);return Oe(this,Ls(this,r))}minus(e){if(!this.isValid)return this;let r=R.fromDurationLike(e).negate();return Oe(this,Ls(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},s=R.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(r){let i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i}else n.weekday=1;if(s==="quarters"){let i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?q.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):gr}toLocaleString(e=bt,r={}){return this.isValid?q.create(this.loc.clone(r),e).formatDateTime(this):gr}toLocaleParts(e={}){return this.isValid?q.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:s=!0,extendedZone:i=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=Dt(a);let l=e==="extended",u=Sr(this,l,a);return Mt.indexOf(a)>=3&&(u+="T"),u+=$s(this,l,r,n,s,i,a),u}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?Sr(this,e==="extended",Dt(r)):null}toISOWeekDate(){return Ot(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended",precision:l="milliseconds"}={}){return this.isValid?(l=Dt(l),(s&&Mt.indexOf(l)>=3?"T":"")+$s(this,a==="extended",r,e,n,i,l)):null}toRFC2822(){return Ot(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ot(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Sr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let s="HH:mm:ss.SSS";return(r||e)&&(n&&(s+=" "),r?s+="z":e&&(s+="ZZ")),Ot(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():gr}[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{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return R.invalid("created by diffing an invalid DateTime");let s={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=Sa(r).map(R.normalizeUnit),a=e.valueOf()>this.valueOf(),l=a?this:e,u=a?e:this,c=Tu(l,u,i,s);return a?c.negate():c}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?De.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=s&&s<=i.endOf(r,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;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),qs(r,this.plus(n),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?qs(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new A("min requires all arguments be DateTimes");return bs(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new A("max requires all arguments be DateTimes");return bs(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:s=null,numberingSystem:i=null}=n,a=M.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return $i(a,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){let{locale:n=null,numberingSystem:s=null}=r,i=M.fromOpts({locale:n,numberingSystem:s,defaultToEN:!0});return new Nt(i,e)}static fromFormatParser(e,r,n={}){if(S(e)||S(r))throw new A("fromFormatParser requires an input string and a format parser");let{locale:s=null,numberingSystem:i=null}=n,a=M.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!a.equals(r.locale))throw new A(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${r.locale}`);let{result:l,zone:u,specificOffset:c,invalidReason:h}=r.explainFromTokens(e);return h?t.invalid(h):We(l,u,n,`format ${r.format}`,e,c)}static get DATE_SHORT(){return bt}static get DATE_MED(){return zs}static get DATE_MED_WITH_WEEKDAY(){return Jo}static get DATE_FULL(){return Zs}static get DATE_HUGE(){return Ys}static get TIME_SIMPLE(){return Bs}static get TIME_WITH_SECONDS(){return Gs}static get TIME_WITH_SHORT_OFFSET(){return Js}static get TIME_WITH_LONG_OFFSET(){return Ks}static get TIME_24_SIMPLE(){return Qs}static get TIME_24_WITH_SECONDS(){return Xs}static get TIME_24_WITH_SHORT_OFFSET(){return ei}static get TIME_24_WITH_LONG_OFFSET(){return ti}static get DATETIME_SHORT(){return ri}static get DATETIME_SHORT_WITH_SECONDS(){return ni}static get DATETIME_MED(){return si}static get DATETIME_MED_WITH_SECONDS(){return ii}static get DATETIME_MED_WITH_WEEKDAY(){return Ko}static get DATETIME_FULL(){return oi}static get DATETIME_FULL_WITH_SECONDS(){return ai}static get DATETIME_HUGE(){return ui}static get DATETIME_HUGE_WITH_SECONDS(){return li}};function Ke(t){if(I.isDateTime(t))return t;if(t&&t.valueOf&&we(t.valueOf()))return I.fromJSDate(t);if(t&&typeof t=="object")return I.fromObject(t);throw new A(`Unknown datetime argument: ${t}, of type ${typeof t}`)}o(Ke,"friendlyDateTime");var Vu="3.7.2";Y.DateTime=I;Y.Duration=R;Y.FixedOffsetZone=Z;Y.IANAZone=fe;Y.Info=Me;Y.Interval=De;Y.InvalidZone=xt;Y.Settings=D;Y.SystemZone=rt;Y.VERSION=Vu;Y.Zone=Se});var $t=W(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.CronDate=L.DAYS_IN_MONTH=L.DateMathOp=L.TimeUnit=void 0;var Ie=ji(),F;(function(t){t.Second="Second",t.Minute="Minute",t.Hour="Hour",t.Day="Day",t.Month="Month",t.Year="Year"})(F||(L.TimeUnit=F={}));var Ht;(function(t){t.Add="Add",t.Subtract="Subtract"})(Ht||(L.DateMathOp=Ht={}));L.DAYS_IN_MONTH=Object.freeze([31,29,31,30,31,30,31,31,30,31,30,31]);var Lt=class t{static{o(this,"CronDate")}#e;#r=null;#i=null;constructor(e,r){let n={zone:r};if(e?e instanceof t?(this.#e=e.#e,this.#r=e.#r,this.#i=e.#i):e instanceof Date?this.#e=Ie.DateTime.fromJSDate(e,n):typeof e=="number"?this.#e=Ie.DateTime.fromMillis(e,n):(this.#e=Ie.DateTime.fromISO(e,n),this.#e.isValid||(this.#e=Ie.DateTime.fromRFC2822(e,n)),this.#e.isValid||(this.#e=Ie.DateTime.fromSQL(e,n)),this.#e.isValid||(this.#e=Ie.DateTime.fromFormat(e,"EEE, d MMM yyyy HH:mm:ss",n))):this.#e=Ie.DateTime.local(),!this.#e.isValid)throw new Error(`CronDate: unhandled timestamp: ${e}`);r&&r!==this.#e.zoneName&&(this.#e=this.#e.setZone(r))}static#s(e){return e%4===0&&e%100!==0||e%400===0}get dstStart(){return this.#r}set dstStart(e){this.#r=e}get dstEnd(){return this.#i}set dstEnd(e){this.#i=e}addYear(){this.#e=this.#e.plus({years:1})}addMonth(){this.#e=this.#e.plus({months:1}).startOf("month")}addDay(){this.#e=this.#e.plus({days:1}).startOf("day")}addHour(){this.#e=this.#e.plus({hours:1}).startOf("hour")}addMinute(){this.#e=this.#e.plus({minutes:1}).startOf("minute")}addSecond(){this.#e=this.#e.plus({seconds:1})}subtractYear(){this.#e=this.#e.minus({years:1})}subtractMonth(){this.#e=this.#e.minus({months:1}).endOf("month").startOf("second")}subtractDay(){this.#e=this.#e.minus({days:1}).endOf("day").startOf("second")}subtractHour(){this.#e=this.#e.minus({hours:1}).endOf("hour").startOf("second")}subtractMinute(){this.#e=this.#e.minus({minutes:1}).endOf("minute").startOf("second")}subtractSecond(){this.#e=this.#e.minus({seconds:1})}addUnit(e){switch(e){case F.Year:return this.addYear();case F.Month:return this.addMonth();case F.Day:return this.addDay();case F.Hour:return this.addHour();case F.Minute:return this.addMinute();case F.Second:return this.addSecond()}}subtractUnit(e){switch(e){case F.Year:return this.subtractYear();case F.Month:return this.subtractMonth();case F.Day:return this.subtractDay();case F.Hour:return this.subtractHour();case F.Minute:return this.subtractMinute();case F.Second:return this.subtractSecond()}}invokeDateOperation(e,r){if(e===Ht.Add){this.addUnit(r);return}if(e===Ht.Subtract){this.subtractUnit(r);return}throw new Error(`Invalid verb: ${e}`)}getDate(){return this.#e.day}getFullYear(){return this.#e.year}getDay(){let e=this.#e.weekday;return e===7?0:e}getMonth(){return this.#e.month-1}getHours(){return this.#e.hour}getMinutes(){return this.#e.minute}getSeconds(){return this.#e.second}getMilliseconds(){return this.#e.millisecond}getUTCOffset(){return this.#e.offset}setStartOfDay(){this.#e=this.#e.startOf("day")}setEndOfDay(){this.#e=this.#e.endOf("day")}getTime(){return this.#e.valueOf()}getUTCDate(){return this.#n().day}getUTCFullYear(){return this.#n().year}getUTCDay(){let e=this.#n().weekday;return e===7?0:e}getUTCMonth(){return this.#n().month-1}getUTCHours(){return this.#n().hour}getUTCMinutes(){return this.#n().minute}getUTCSeconds(){return this.#n().second}toISOString(){return this.#e.toUTC().toISO()}toJSON(){return this.#e.toJSON()}setDate(e){this.#e=this.#e.set({day:e})}setFullYear(e){this.#e=this.#e.set({year:e})}setDay(e){this.#e=this.#e.set({weekday:e})}setMonth(e){this.#e=this.#e.set({month:e+1})}setHours(e){this.#e=this.#e.set({hour:e})}setMinutes(e){this.#e=this.#e.set({minute:e})}setSeconds(e){this.#e=this.#e.set({second:e})}setMilliseconds(e){this.#e=this.#e.set({millisecond:e})}toString(){return this.toDate().toString()}toDate(){return this.#e.toJSDate()}isLastDayOfMonth(){let{day:e,month:r}=this.#e;if(r===2){let n=t.#s(this.#e.year);return e===L.DAYS_IN_MONTH[r-1]-(n?0:1)}return e===L.DAYS_IN_MONTH[r-1]}isLastWeekdayOfMonth(){let{day:e,month:r}=this.#e,n;return r===2?n=L.DAYS_IN_MONTH[r-1]-(t.#s(this.#e.year)?0:1):n=L.DAYS_IN_MONTH[r-1],e>n-7}applyDateOperation(e,r,n){if(r===F.Month||r===F.Day){this.invokeDateOperation(e,r);return}let s=this.getHours();this.invokeDateOperation(e,r);let i=this.getHours(),a=i-s;a===2?n!==24&&(this.dstStart=s+1):a===0&&this.getMinutes()===0&&this.getSeconds()===0&&n!==24&&(this.dstEnd=i)}#n(){return this.#e.toUTC()}};L.CronDate=Lt;L.default=Lt});var zi=W(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.CronMonth=void 0;var Uu=$t(),qu=me(),ju=1,zu=12,Zu=Object.freeze([]),zr=class extends qu.CronField{static{o(this,"CronMonth")}static get min(){return ju}static get max(){return zu}static get chars(){return Zu}static get daysInMonth(){return Uu.DAYS_IN_MONTH}constructor(e,r){super(e,r),this.validate()}get values(){return super.values}};Vt.CronMonth=zr});var Zi=W(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.CronSecond=void 0;var Yu=me(),Bu=0,Gu=59,Ju=Object.freeze([]),Zr=class extends Yu.CronField{static{o(this,"CronSecond")}static get min(){return Bu}static get max(){return Gu}static get chars(){return Ju}constructor(e,r){super(e,r),this.validate()}get values(){return super.values}};Ut.CronSecond=Zr});var qt=W(V=>{"use strict";var Ku=V&&V.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ve=V&&V.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ku(e,t,r)};Object.defineProperty(V,"__esModule",{value:!0});ve(cs(),V);ve(ds(),V);ve(fs(),V);ve(me(),V);ve(hs(),V);ve(ms(),V);ve(zi(),V);ve(Zi(),V)});var Br=W(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.CronFieldCollection=void 0;var K=qt(),Yr=class t{static{o(this,"CronFieldCollection")}#e;#r;#i;#s;#n;#t;static from(e,r){return new t({second:this.resolveField(K.CronSecond,e.second,r.second),minute:this.resolveField(K.CronMinute,e.minute,r.minute),hour:this.resolveField(K.CronHour,e.hour,r.hour),dayOfMonth:this.resolveField(K.CronDayOfMonth,e.dayOfMonth,r.dayOfMonth),month:this.resolveField(K.CronMonth,e.month,r.month),dayOfWeek:this.resolveField(K.CronDayOfWeek,e.dayOfWeek,r.dayOfWeek)})}static resolveField(e,r,n){return n?n instanceof K.CronField?n:new e(n):r}constructor({second:e,minute:r,hour:n,dayOfMonth:s,month:i,dayOfWeek:a}){if(!e)throw new Error("Validation error, Field second is missing");if(!r)throw new Error("Validation error, Field minute is missing");if(!n)throw new Error("Validation error, Field hour is missing");if(!s)throw new Error("Validation error, Field dayOfMonth is missing");if(!i)throw new Error("Validation error, Field month is missing");if(!a)throw new Error("Validation error, Field dayOfWeek is missing");if(i.values.length===1&&!s.hasLastChar&&a.isWildcard&&!(parseInt(s.values[0],10)<=K.CronMonth.daysInMonth[i.values[0]-1]))throw new Error("Invalid explicit day of month definition");this.#e=e,this.#r=r,this.#i=n,this.#n=i,this.#t=a,this.#s=s}get second(){return this.#e}get minute(){return this.#r}get hour(){return this.#i}get dayOfMonth(){return this.#s}get month(){return this.#n}get dayOfWeek(){return this.#t}static compactField(e){if(e.length===0)return[];let r=[],n;return e.forEach((s,i,a)=>{if(n===void 0){n={start:s,count:1};return}let l=a[i-1]||n.start,u=a[i+1];if(s==="L"||s==="W"){r.push(n),r.push({start:s,count:1}),n=void 0;return}if(n.step===void 0&&u!==void 0){let c=s-l,h=u-s;if(c<=h){n={...n,count:2,end:s,step:c};return}n.step=1}s-(n.end??0)===n.step?(n.count++,n.end=s):(n.count===1?r.push({start:n.start,count:1}):n.count===2?(r.push({start:n.start,count:1}),r.push({start:n.end??l,count:1})):r.push(n),n={start:s,count:1})}),n&&r.push(n),r}static#l(e,r,n){let s=r.step;return s?s===1&&r.start===e.min&&r.end&&r.end>=n?e.hasQuestionMarkChar?"?":"*":s!==1&&r.start===e.min&&r.end&&r.end>=n-s+1?`*/${s}`:null:null}static#u(e,r){let n=e.step;if(n===1)return`${e.start}-${e.end}`;let s=e.start===0?e.count-1:e.count;if(!n)throw new Error("Unexpected range step");if(!e.end)throw new Error("Unexpected range end");if(n*s>e.end){let i=o((l,u)=>{if(typeof e.start!="number")throw new Error("Unexpected range start");return u%n===0?e.start+u:null},"mapFn");if(typeof e.start!="number")throw new Error("Unexpected range start");let a={length:e.end-e.start+1};return Array.from(a,i).filter(l=>l!==null).join(",")}return e.end===r-n+1?`${e.start}/${n}`:`${e.start}-${e.end}/${n}`}stringifyField(e){let r=e.max,n=e.values;if(e instanceof K.CronDayOfWeek){r=6;let i=this.#t.values;n=i[i.length-1]===7?i.slice(0,-1):i}e instanceof K.CronDayOfMonth&&(r=this.#n.values.length===1?K.CronMonth.daysInMonth[this.#n.values[0]-1]:e.max);let s=t.compactField(n);if(s.length===1){let i=t.#l(e,s[0],r);if(i)return i}return s.map(i=>{let a=i.count===1?i.start.toString():t.#u(i,r);return e instanceof K.CronDayOfWeek&&e.nthDay>0?`${a}#${e.nthDay}`:a}).join(",")}stringify(e=!1){let r=[];return e&&r.push(this.stringifyField(this.#e)),r.push(this.stringifyField(this.#r),this.stringifyField(this.#i),this.stringifyField(this.#s),this.stringifyField(this.#n),this.stringifyField(this.#t)),r.join(" ")}serialize(){return{second:this.#e.serialize(),minute:this.#r.serialize(),hour:this.#i.serialize(),dayOfMonth:this.#s.serialize(),month:this.#n.serialize(),dayOfWeek:this.#t.serialize()}}};jt.CronFieldCollection=Yr});var Gr=W(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.CronExpression=Q.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE=Q.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE=void 0;var x=$t();Q.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE="Out of the time span range";Q.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE="Invalid expression, loop limit exceeded";var Yi=1e4,zt=class t{static{o(this,"CronExpression")}#e;#r;#i;#s;#n;#t;#l=null;#u=!1;constructor(e,r){this.#e=r,this.#r=r.tz,this.#s=r.startDate?new x.CronDate(r.startDate,this.#r):null,this.#n=r.endDate?new x.CronDate(r.endDate,this.#r):null;let n=r.currentDate??r.startDate;if(n){let s=new x.CronDate(n,this.#r);this.#s&&s.getTime()<this.#s.getTime()?n=this.#s:this.#n&&s.getTime()>this.#n.getTime()&&(n=this.#n)}this.#i=new x.CronDate(n,this.#r),this.#t=e}get fields(){return this.#t}static fieldsToExpression(e,r){return new t(e,r||{})}static#o(e,r){return r.some(n=>n===e)}#a(e,r){return e[r?e.length-1:0]}#d(e){let r=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(this.#l===r)return this.#u;let n=new x.CronDate(e);n.setStartOfDay();let s=new x.CronDate(e);return s.setEndOfDay(),this.#l=r,this.#u=n.getUTCOffset()!==s.getUTCOffset(),this.#u}#f(e,r,n){let s=this.#t.second.values,i=e.getSeconds(),a=this.#t.second.findNearestValue(i,n);if(a!==null){e.setSeconds(a);return}e.applyDateOperation(r,x.TimeUnit.Minute,this.#t.hour.values.length),e.setSeconds(this.#a(s,n))}#m(e,r,n){let s=this.#t.minute.values,i=this.#t.second.values,a=e.getMinutes(),l=this.#t.minute.findNearestValue(a,n);if(l!==null){e.setMinutes(l),e.setSeconds(this.#a(i,n));return}e.applyDateOperation(r,x.TimeUnit.Hour,this.#t.hour.values.length),e.setMinutes(this.#a(s,n)),e.setSeconds(this.#a(i,n))}static#p(e,r){let n=r.isLastWeekdayOfMonth();return e.some(s=>{let i=parseInt(s.toString().charAt(0),10)%7;if(Number.isNaN(i))throw new Error(`Invalid last weekday of the month expression: ${s}`);return r.getDay()===i&&n})}next(){return this.#c()}prev(){return this.#c(!0)}hasNext(){let e=this.#i;try{return this.#c(),!0}catch{return!1}finally{this.#i=e}}hasPrev(){let e=this.#i;try{return this.#c(!0),!0}catch{return!1}finally{this.#i=e}}take(e){let r=[];if(e>=0)for(let n=0;n<e;n++)try{r.push(this.next())}catch{return r}else for(let n=0;n>e;n--)try{r.push(this.prev())}catch{return r}return r}reset(e){this.#i=new x.CronDate(e||this.#e.currentDate,this.#r)}stringify(e=!1){return this.#t.stringify(e)}includesDate(e){let{second:r,minute:n,hour:s,month:i}=this.#t,a=new x.CronDate(e,this.#r);return!(!r.values.includes(a.getSeconds())||!n.values.includes(a.getMinutes())||!s.values.includes(a.getHours())||!i.values.includes(a.getMonth()+1)||!this.#h(a)||this.#t.dayOfWeek.nthDay>0&&Math.ceil(a.getDate()/7)!==this.#t.dayOfWeek.nthDay)}toString(){return this.#e.expression||this.stringify(!0)}#h(e){let r=this.#t.dayOfMonth.isWildcard,n=!r,s=this.#t.dayOfWeek.isWildcard,i=!s,a=t.#o(e.getDate(),this.#t.dayOfMonth.values)||this.#t.dayOfMonth.hasLastChar&&e.isLastDayOfMonth(),l=t.#o(e.getDay(),this.#t.dayOfWeek.values)||this.#t.dayOfWeek.hasLastChar&&t.#p(this.#t.dayOfWeek.values,e);return!!(n&&i&&(a||l)||a&&!i||r&&!s&&l)}#g(e,r,n){let s=this.#t.hour.values,i=s,a=e.getHours(),l=t.#o(a,s),u=e.dstEnd===a;if(e.dstStart!==null&&e.dstStart===a-1&&t.#o(e.dstStart,s))return!0;if(u&&!n)return e.dstEnd=null,e.applyDateOperation(x.DateMathOp.Add,x.TimeUnit.Hour,i.length),!1;if(l)return!0;e.dstStart=null;let c=this.#t.hour.findNearestValue(a,n);if(c===null)return e.applyDateOperation(r,x.TimeUnit.Day,i.length),!1;if(this.#d(e)){let h=n?a-c:c-a;for(let d=0;d<h&&(e.applyDateOperation(r,x.TimeUnit.Hour,i.length),!(!n&&e.getHours()>=c||n&&e.getHours()<=c));d++);}else e.setHours(c);return e.setMinutes(this.#a(this.#t.minute.values,n)),e.setSeconds(this.#a(this.#t.second.values,n)),!1}#y(e){if(!this.#s&&!this.#n)return;let r=e.getTime();if(this.#s&&r<this.#s.getTime())throw new Error(Q.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE);if(this.#n&&r>this.#n.getTime())throw new Error(Q.TIME_SPAN_OUT_OF_BOUNDS_ERROR_MESSAGE)}#c(e=!1){let r=e?x.DateMathOp.Subtract:x.DateMathOp.Add,n=new x.CronDate(this.#i),s=n.getTime(),i=0;for(;++i<Yi;){if(this.#y(n),!this.#h(n)){n.applyDateOperation(r,x.TimeUnit.Day,this.#t.hour.values.length);continue}if(!(this.#t.dayOfWeek.nthDay<=0||Math.ceil(n.getDate()/7)===this.#t.dayOfWeek.nthDay)){n.applyDateOperation(r,x.TimeUnit.Day,this.#t.hour.values.length);continue}if(!t.#o(n.getMonth()+1,this.#t.month.values)){n.applyDateOperation(r,x.TimeUnit.Month,this.#t.hour.values.length);continue}if(this.#g(n,r,e)){if(!t.#o(n.getMinutes(),this.#t.minute.values)){this.#m(n,r,e);continue}if(!t.#o(n.getSeconds(),this.#t.second.values)){this.#f(n,r,e);continue}if(s===n.getTime()){(r==="Add"||n.getMilliseconds()===0)&&n.applyDateOperation(r,x.TimeUnit.Second,this.#t.hour.values.length);continue}break}}if(i>Yi)throw new Error(Q.LOOPS_LIMIT_EXCEEDED_ERROR_MESSAGE);return n.getMilliseconds()!==0&&n.setMilliseconds(0),this.#i=n,n}[Symbol.iterator](){return{next:o(()=>{try{return{value:this.#c(),done:!1}}catch{return{value:void 0,done:!0}}},"next")}}};Q.CronExpression=zt;Q.default=zt});var Bi=W(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.seededRandom=el;function Qu(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=Math.imul(e,16777619);return()=>e>>>0}o(Qu,"xfnv1a");function Xu(t){return()=>{let e=t+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}}o(Xu,"mulberry32");function el(t){let e=t?Qu(t)():Math.floor(Math.random()*1e10);return Xu(e)}o(el,"seededRandom")});var Zt=W(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.CronExpressionParser=te.DayOfWeek=te.Months=te.CronUnit=te.PredefinedExpressions=void 0;var tl=Br(),rl=Gr(),nl=Bi(),X=qt(),Kr;(function(t){t["@yearly"]="0 0 0 1 1 *",t["@annually"]="0 0 0 1 1 *",t["@monthly"]="0 0 0 1 * *",t["@weekly"]="0 0 0 * * 0",t["@daily"]="0 0 0 * * *",t["@hourly"]="0 0 * * * *",t["@minutely"]="0 * * * * *",t["@secondly"]="* * * * * *",t["@weekdays"]="0 0 0 * * 1-5",t["@weekends"]="0 0 0 * * 0,6"})(Kr||(te.PredefinedExpressions=Kr={}));var ee;(function(t){t.Second="Second",t.Minute="Minute",t.Hour="Hour",t.DayOfMonth="DayOfMonth",t.Month="Month",t.DayOfWeek="DayOfWeek"})(ee||(te.CronUnit=ee={}));var Qr;(function(t){t[t.jan=1]="jan",t[t.feb=2]="feb",t[t.mar=3]="mar",t[t.apr=4]="apr",t[t.may=5]="may",t[t.jun=6]="jun",t[t.jul=7]="jul",t[t.aug=8]="aug",t[t.sep=9]="sep",t[t.oct=10]="oct",t[t.nov=11]="nov",t[t.dec=12]="dec"})(Qr||(te.Months=Qr={}));var Xr;(function(t){t[t.sun=0]="sun",t[t.mon=1]="mon",t[t.tue=2]="tue",t[t.wed=3]="wed",t[t.thu=4]="thu",t[t.fri=5]="fri",t[t.sat=6]="sat"})(Xr||(te.DayOfWeek=Xr={}));var en=class t{static{o(this,"CronExpressionParser")}static parse(e,r={}){let{strict:n=!1,hashSeed:s}=r,i=(0,nl.seededRandom)(s);e=Kr[e]||e;let a=t.#e(e,n);if(!(a.dayOfMonth==="*"||a.dayOfWeek==="*"||!n))throw new Error("Cannot use both dayOfMonth and dayOfWeek together in strict mode!");let l=t.#r(ee.Second,a.second,X.CronSecond.constraints,i),u=t.#r(ee.Minute,a.minute,X.CronMinute.constraints,i),c=t.#r(ee.Hour,a.hour,X.CronHour.constraints,i),h=t.#r(ee.Month,a.month,X.CronMonth.constraints,i),d=t.#r(ee.DayOfMonth,a.dayOfMonth,X.CronDayOfMonth.constraints,i),{dayOfWeek:m,nthDayOfWeek:f}=t.#d(a.dayOfWeek),g=t.#r(ee.DayOfWeek,m,X.CronDayOfWeek.constraints,i),w=new tl.CronFieldCollection({second:new X.CronSecond(l,{rawValue:a.second}),minute:new X.CronMinute(u,{rawValue:a.minute}),hour:new X.CronHour(c,{rawValue:a.hour}),dayOfMonth:new X.CronDayOfMonth(d,{rawValue:a.dayOfMonth}),month:new X.CronMonth(h,{rawValue:a.month}),dayOfWeek:new X.CronDayOfWeek(g,{rawValue:a.dayOfWeek,nthDayOfWeek:f})});return new rl.CronExpression(w,{...r,expression:e})}static#e(e,r){if(r&&!e.length)throw new Error("Invalid cron expression");e=e||"0 * * * * *";let n=e.trim().split(/\s+/);if(r&&n.length<6)throw new Error("Invalid cron expression, expected 6 fields");if(n.length>6)throw new Error("Invalid cron expression, too many fields");let s=["*","*","*","*","*","0"];n.length<s.length&&n.unshift(...s.slice(n.length));let[i,a,l,u,c,h]=n;return{second:i,minute:a,hour:l,dayOfMonth:u,month:c,dayOfWeek:h}}static#r(e,r,n,s){if((e===ee.Month||e===ee.DayOfWeek)&&(r=r.replace(/[a-z]{3}/gi,i=>{i=i.toLowerCase();let a=Qr[i]||Xr[i];if(a===void 0)throw new Error(`Validation error, cannot resolve alias "${i}"`);return a.toString()})),!n.validChars.test(r))throw new Error(`Invalid characters, got value: ${r}`);return r=this.#i(r,n),r=this.#s(r,n,s),this.#n(e,r,n)}static#i(e,r){return e.replace(/[*?]/g,r.min+"-"+r.max)}static#s(e,r,n){let s=n();return e.replace(/H(?:\((\d+)-(\d+)\))?(?:\/(\d+))?/g,(i,a,l,u)=>{if(a&&l&&u){let c=parseInt(a,10),h=parseInt(l,10),d=parseInt(u,10);if(c>h)throw new Error(`Invalid range: ${c}-${h}, min > max`);if(d<=0)throw new Error(`Invalid step: ${d}, must be positive`);let m=Math.max(c,r.min),f=Math.floor(s*d),g=[];for(let w=Math.floor(m/d)*d+f;w<=h;w+=d)w>=m&&g.push(w);return g.join(",")}else if(a&&l){let c=parseInt(a,10),h=parseInt(l,10);if(c>h)throw new Error(`Invalid range: ${c}-${h}, min > max`);return String(Math.floor(s*(h-c+1))+c)}else if(u){let c=parseInt(u,10);if(c<=0)throw new Error(`Invalid step: ${c}, must be positive`);let h=Math.floor(s*c),d=[];for(let m=Math.floor(r.min/c)*c+h;m<=r.max;m+=c)m>=r.min&&d.push(m);return d.join(",")}else return String(Math.floor(s*(r.max-r.min+1)+r.min))})}static#n(e,r,n){let s=[];function i(l,u){if(Array.isArray(l))s.push(...l);else if(t.#f(u,l))s.push(l);else{let c=parseInt(l.toString(),10);if(!(c>=u.min&&c<=u.max))throw new Error(`Constraint error, got value ${l} expected range ${u.min}-${u.max}`);s.push(e===ee.DayOfWeek?c%7:l)}}return o(i,"handleResult"),r.split(",").forEach(l=>{if(!(l.length>0))throw new Error("Invalid list value format");i(t.#t(e,l,n),n)}),s}static#t(e,r,n){let s=r.split("/");if(s.length>2)throw new Error(`Invalid repeat: ${r}`);return s.length===2?(s[0].includes("-")||(s[0]=`${s[0]}-${n.max}`),t.#a(e,s[0],parseInt(s[1],10),n)):t.#a(e,r,1,n)}static#l(e,r,n){if(!(!isNaN(e)&&!isNaN(r)&&e>=n.min&&r<=n.max))throw new Error(`Constraint error, got range ${e}-${r} expected range ${n.min}-${n.max}`);if(e>r)throw new Error(`Invalid range: ${e}-${r}, min(${e}) > max(${r})`)}static#u(e){if(!(!isNaN(e)&&e>0))throw new Error(`Constraint error, cannot repeat at every ${e} time.`)}static#o(e,r,n,s){let i=[];e===ee.DayOfWeek&&n%7===0&&i.push(0);for(let a=r;a<=n;a+=s)i.indexOf(a)===-1&&i.push(a);return i}static#a(e,r,n,s){let i=r.split("-");if(i.length<=1)return isNaN(+r)?r:+r;let[a,l]=i.map(u=>parseInt(u,10));return this.#l(a,l,s),this.#u(n),this.#o(e,a,l,n)}static#d(e){let r=e.split("#");if(r.length<=1)return{dayOfWeek:r[0]};let n=+r[r.length-1],s=e.match(/([,-/])/);if(s!==null)throw new Error(`Constraint error, invalid dayOfWeek \`#\` and \`${s?.[0]}\` special characters are incompatible`);if(!(r.length<=2&&!isNaN(n)&&n>=1&&n<=5))throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return{dayOfWeek:r[0],nthDayOfWeek:n}}static#f(e,r){return e.chars.some(n=>r.toString().includes(n))}};te.CronExpressionParser=en});var Gi=W(ue=>{"use strict";var sl=ue&&ue.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),il=ue&&ue.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ol=ue&&ue.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&sl(r,e,n[s]);return il(r,e),r}})();Object.defineProperty(ue,"__esModule",{value:!0});ue.CronFileParser=void 0;var al=Zt(),tn=class t{static{o(this,"CronFileParser")}static async parseFile(e){let{readFile:r}=await Promise.resolve().then(()=>ol(yn("fs/promises"))),n=await r(e,"utf8");return t.#e(n)}static parseFileSync(e){let{readFileSync:r}=yn("fs"),n=r(e,"utf8");return t.#e(n)}static#e(e){let r=e.split(`
|
|
3
|
+
`),n={variables:{},expressions:[],errors:{}};for(let s of r){let i=s.trim();if(i.length===0||i.startsWith("#"))continue;let a=i.match(/^(.*)=(.*)$/);if(a){let[,l,u]=a;n.variables[l]=u.replace(/["']/g,"");continue}try{let l=t.#r(i);n.expressions.push(l.interval)}catch(l){n.errors[i]=l}}return n}static#r(e){let r=e.split(" ");return{interval:al.CronExpressionParser.parse(r.slice(0,5).join(" ")),command:r.slice(5,r.length)}}};ue.CronFileParser=tn});var Ji=W(_=>{"use strict";var ul=_&&_.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ll=_&&_.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ul(e,t,r)};Object.defineProperty(_,"__esModule",{value:!0});_.CronFileParser=_.CronExpressionParser=_.CronExpression=_.CronFieldCollection=_.CronDate=void 0;var cl=Zt(),dl=$t();Object.defineProperty(_,"CronDate",{enumerable:!0,get:o(function(){return dl.CronDate},"get")});var fl=Br();Object.defineProperty(_,"CronFieldCollection",{enumerable:!0,get:o(function(){return fl.CronFieldCollection},"get")});var hl=Gr();Object.defineProperty(_,"CronExpression",{enumerable:!0,get:o(function(){return hl.CronExpression},"get")});var ml=Zt();Object.defineProperty(_,"CronExpressionParser",{enumerable:!0,get:o(function(){return ml.CronExpressionParser},"get")});var pl=Gi();Object.defineProperty(_,"CronFileParser",{enumerable:!0,get:o(function(){return pl.CronFileParser},"get")});ll(qt(),_);_.default=cl.CronExpressionParser});import{randomUUID as Wl}from"node:crypto";import{mkdir as Fl}from"node:fs/promises";import ze from"node:path";function us(t){return async(e,r)=>{let n=await t?.(e,r)??null;if((e.metadata?.standaloneExperiment!==void 0||e.metadata?.localProfileExperiment!==void 0)&&!n)throw new Error("This native Experiment session has no active durable model-dispatch owner.");return n}}o(us,"experimentSessionStreamResolver");var Qi=No(Ji(),1);import{randomUUID as rn}from"node:crypto";var gl=15e3,yl=3e4;function Ic(t){let e=new Set,r=null,n=null;async function s(d){if(!d.profileRef||!d.profileWorkflowId)throw new Error(d.profileMigrationError??`Chat Workflow ${d.id} has no Profile package.`);let m=await t.getSession(d.sessionId),f=await t.resolveProfileOwner(m,d.profileRef),g=await t.readProfilePackage(f.sourcePath,d.profileWorkflowId);return{...d,name:g.name,prompt:g.prompt}}o(s,"authoredWorkflow");async function i(){for(let d of await t.store.listChatWorkflows())if(!(d.profileRef&&d.profileWorkflowId))try{let m=await t.getSession(d.sessionId);if(!m.currentProfile)throw new Error("Original session has no explicit Profile owner.");let f=await t.resolveProfileOwner(m,m.currentProfile),g={...d,profileRef:f.ref,profileWorkflowId:d.profileWorkflowId??`chat-${d.id.toLowerCase()}`,profileMigrationError:null};await t.saveProfilePackage(f.sourcePath,g),await t.store.patchChatWorkflow(d.id,()=>g)}catch(m){let f=`Profile package migration unresolved: ${m instanceof Error?m.message:String(m)}`;await t.store.patchChatWorkflow(d.id,g=>({...g,profileMigrationError:f})),t.logger?.warn("chat workflow Profile migration unresolved",{workflowId:d.id,error:f})}}o(i,"migrateExistingWorkflows");async function a(d){let m=await t.getSession(d.sessionId),f=await t.resolveProfileOwner(m),g=H(),w=Yt(d.recurrence,new Date,0);if(!w.value)throw new Error(w.error??"This workflow has no future occurrence.");let v={id:rn(),sessionId:m.id,sessionTitle:m.title,sourceTurnId:d.sourceTurnId??null,name:d.name,prompt:d.prompt,profileRef:f.ref,profileWorkflowId:`chat-${rn()}`,recurrence:d.recurrence,enabled:!0,nextRunAt:w.value,lastRunAt:null,lastRunStatus:null,lastRunId:null,lastError:w.error,scheduledRunCount:0,createdAt:g,updatedAt:g};return await t.saveProfilePackage(f.sourcePath,v),t.store.upsertChatWorkflow(v)}o(a,"create");async function l(){if(t.isClosing())return;let d=await t.store.listDueChatWorkflows(H());for(let m of d)if(!e.has(m.id)){if(t.isSessionTurnActive(m.sessionId)){await t.store.patchChatWorkflow(m.id,f=>({...f,nextRunAt:new Date(Date.now()+yl).toISOString(),lastError:"Waiting for the attached chat to finish its current turn.",updatedAt:H()}));continue}await c(m,m.nextRunAt??H(),"schedule")}}o(l,"runTick");function u(){if(n)return n;let d=l().finally(()=>{n===d&&(n=null)});return n=d,d}o(u,"trackedTick");async function c(d,m,f){d=await s(d);let g=H(),w=t.store.home?await On(t.store.home):void 0,v={definitionSnapshot:structuredClone(d),...w?{configurationSnapshot:{effectiveRevision:w.effectiveRevision,sources:w.sources}}:{},id:rn(),workflowId:d.id,sessionId:d.sessionId,scheduledFor:m,trigger:f,status:"queued",turnId:null,error:null,createdAt:g,startedAt:null,completedAt:null,updatedAt:g},O=await t.store.insertChatWorkflowRun(v);return e.add(d.id),t.queue.enqueue({label:"chat-workflow-run",metadata:{workflowId:d.id,sessionId:d.sessionId,trigger:f,scheduledFor:m}},async()=>{try{await h(d,O)}finally{e.delete(d.id)}}),O}o(c,"enqueue");async function h(d,m){let f=H();await t.store.patchChatWorkflowRun(m.id,T=>({...T,status:"running",startedAt:f,updatedAt:f}));let g=null,w=null;try{g=await t.sendTurn(d.sessionId,{prompt:d.prompt,metadata:{interactionKind:"scheduled_workflow",chatWorkflowId:d.id,chatWorkflowName:d.name,chatWorkflowRunId:m.id,scheduledFor:m.scheduledFor}})}catch(T){w=T instanceof Error?T.message:String(T)}let v=H(),O=g?.status==="completed"?"succeeded":"failed";await t.store.patchChatWorkflowRun(m.id,T=>({...T,status:O,turnId:g?.id??null,error:w??g?.error??null,completedAt:v,updatedAt:v})),await t.store.patchChatWorkflow(d.id,T=>{let U=T.scheduledRunCount+(m.trigger==="schedule"?1:0),b=m.trigger==="manual"?{value:T.nextRunAt,error:null}:Yt(T.recurrence,new Date,U);return{...T,enabled:b.value?T.enabled:!1,nextRunAt:T.enabled?b.value:null,lastRunAt:v,lastRunStatus:O,lastRunId:m.id,lastError:b.error??w??g?.error??null,scheduledRunCount:U,updatedAt:v}})}return o(h,"execute"),{async start(){r||(await i(),u().catch(d=>t.logger?.warn("chat workflow tick failed",{error:String(d)})),r=setInterval(()=>{u().catch(d=>t.logger?.warn("chat workflow tick failed",{error:String(d)}))},t.tickMs??gl),r.unref?.())},async stop(){r&&clearInterval(r),r=null,await n?.catch(()=>{})},create:a,async list(d){let m=await t.store.listChatWorkflows({sessionId:d});return Promise.all(m.map(async f=>{try{return await s(f)}catch(g){return{...f,profileMigrationError:g instanceof Error?g.message:String(g)}}}))},listRuns:o(d=>t.store.listChatWorkflowRuns(d),"listRuns"),async patch(d,m){let f=await t.store.getChatWorkflow(d);if(!f)return null;let g=H();if("enabled"in m){let T=m.enabled?Yt(f.recurrence,new Date,f.scheduledRunCount):{value:null,error:null};return t.store.patchChatWorkflow(d,U=>({...U,enabled:m.enabled&&!!T.value,nextRunAt:m.enabled?T.value:null,lastError:T.error,updatedAt:g}))}let w=Yt(m.recurrence,new Date,0);if(!f.profileRef||!f.profileWorkflowId)throw new Error(`Chat Workflow ${d} has no resolved Profile owner; migrate it before editing.`);let v=await t.getSession(f.sessionId),O=await t.resolveProfileOwner(v,f.profileRef);return await t.saveProfilePackage(O.sourcePath,{...f,name:m.name,prompt:m.prompt}),t.store.patchChatWorkflow(d,T=>({...T,name:m.name,prompt:m.prompt,recurrence:m.recurrence,enabled:!!w.value,nextRunAt:w.value,lastError:w.error,scheduledRunCount:0,updatedAt:g}))},remove:o(d=>t.store.deleteChatWorkflow(d),"remove"),async runNow(d){let m=await t.store.getChatWorkflow(d);if(!m)throw new Error("Chat workflow not found.");if(t.isSessionTurnActive(m.sessionId))throw new Error("The attached chat is currently running a turn.");return c(m,H(),"manual")}}}o(Ic,"createChatWorkflowLoop");var wl={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6};function Yt(t,e,r){try{return{value:nn(t,e,r),error:null}}catch(n){return{value:null,error:n instanceof Error?n.message:String(n)}}}o(Yt,"safeNextOccurrence");function nn(t,e,r){if(t.end.kind==="after_occurrences"&&r>=t.end.occurrences)return null;let n=Ki(t.startDate,t.localTime,t.timeZone);if(t.kind==="once")return n.getTime()>e.getTime()?n.toISOString():null;let[s,i]=t.localTime.split(":").map(Number),a=t.kind==="daily"?`${i} ${s} * * *`:t.kind==="weekdays"?`${i} ${s} * * 1-5`:t.kind==="weekly"?`${i} ${s} * * ${(t.weekdays??[]).map(c=>wl[c]).join(",")}`:`${i} ${s} ${t.dayOfMonth} * *`,l=new Date(Math.max(e.getTime(),n.getTime()-1e3)),u=Qi.CronExpressionParser.parse(a,{currentDate:l,tz:t.timeZone}).next().toDate();if(t.end.kind==="on_date"){let c=Ki(t.end.date,"23:59",t.timeZone);if(u.getTime()>c.getTime()+59999)return null}return u.toISOString()}o(nn,"nextOccurrence");function Ki(t,e,r){let[n,s,i]=t.split("-").map(Number),[a,l]=e.split(":").map(Number),u=Date.UTC(n,s-1,i,a,l),c=new Date(u);for(let h=0;h<3;h+=1){let d=new Intl.DateTimeFormat("en-CA",{timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(c),m=Object.fromEntries(d.map(w=>[w.type,w.value])),f=Date.UTC(Number(m.year),Number(m.month)-1,Number(m.day),Number(m.hour),Number(m.minute)),g=u-f;if(g===0)return c;c=new Date(c.getTime()+g)}return c}o(Ki,"zonedLocalDateTime");function Xi(t){return vn(t,e=>{let r=0,n=0;e.exec("BEGIN IMMEDIATE");try{for(let[s,i,a]of[["local_agent_schedule_runs","local_agent_schedules","scheduleId"],["chat_workflow_runs","chat_workflows","workflowId"]]){let l=e.prepare(`SELECT id, payload FROM ${s} WHERE status IN ('queued','running')`).all();for(let u of l){let c=JSON.parse(u.payload),h=new Date().toISOString(),d=typeof c.turnId=="string"?e.prepare("SELECT payload FROM turns WHERE id = ?").get(c.turnId):void 0,f=(d?JSON.parse(d.payload):null)?.status==="completed",g=f?"The previous scheduled turn completed before shutdown.":"OpenPond stopped before this scheduled run was settled. Its external outcome may be unknown. Review the run before retrying or enabling this schedule.",w=f?"succeeded":"failed";e.prepare(`UPDATE ${s} SET status=?, payload=?, updated_at=? WHERE id=?`).run(w,JSON.stringify({...c,status:w,error:f?null:g,completedAt:h,updatedAt:h}),h,u.id);let v=e.prepare(`SELECT payload FROM ${i} WHERE id = ?`).get(String(c[a]));if(v&&!f){let O=JSON.parse(v.payload);e.prepare(`UPDATE ${i} SET enabled=0, next_run_at=NULL, payload=?, updated_at=? WHERE id=?`).run(JSON.stringify({...O,enabled:!1,nextRunAt:null,lastRunStatus:w,lastRunId:u.id,lastError:g,updatedAt:h}),h,String(c[a]))}if(f&&v&&i==="chat_workflows"){let O=Pn.parse(JSON.parse(v.payload)),T=O.scheduledRunCount+(c.trigger==="schedule"?1:0),U=c.trigger==="manual"?O.nextRunAt:nn(O.recurrence,new Date(h),T),b=O.enabled&&U!==null;e.prepare("UPDATE chat_workflows SET enabled=?, next_run_at=?, payload=?, updated_at=? WHERE id=?").run(b?1:0,b?U:null,JSON.stringify({...O,enabled:b,nextRunAt:b?U:null,scheduledRunCount:T,lastRunStatus:w,lastRunId:u.id,lastRunAt:h,lastError:null,updatedAt:h}),h,O.id)}f?r+=1:n+=1}}return e.exec("COMMIT"),{recovered:r,needsReview:n}}catch(s){throw e.exec("ROLLBACK"),s}})}o(Xi,"reconcileInterruptedScheduledWork");async function eo(t,e){let r=Sl(t);if(!r)return null;let n=await e.loadProfileState();return r==="help"?vl(n):kl(n)}o(eo,"runProfileSkillCommand");function Sl(t){let e=/^\/skill(?:\s+([\s\S]*))?$/i.exec(t.trim());if(!e)return null;let r=e[1]?.trim().toLowerCase()??"";return!r||r==="list"?"list":r==="help"?"help":null}o(Sl,"readOnlyProfileSkillAction");function vl(t){return{handled:!0,action:"help",profile:t,message:["Profile skills support:","- /skill list","- /skill create <what the skill should help with>","- /skill create <skill-name>: <what the skill should help with>","- /skill create --name <skill-name> <what the skill should help with>","- /skill edit <skill-name> <change request>","","Create and edit run as normal model turns with the bundled OpenPond Skill Authoring skill. Skills may include SKILL.md plus focused scripts, references, and assets. Use an Agent when the workflow needs code, actions, durable runtime behavior, setup, or Evals."].join(`
|
|
4
|
+
`)}}o(vl,"profileSkillHelp");function kl(t){let e=t.skills.slice().sort((n,s)=>n.name.localeCompare(s.name));return{handled:!0,action:"list",message:e.length===0?"No profile skills found in the active profile.":[`Profile skills (${e.length}):`,...e.map(n=>{let s=n.validationStatus==="valid"?"valid":`invalid: ${n.validationMessages.join("; ")}`;return`- ${n.name} (${s}) ${n.path}`})].join(`
|
|
5
|
+
`),skills:e,profile:t}}o(kl,"listProfileSkills");import{randomUUID as Tl}from"node:crypto";function to(t){return async function*({messages:e,signal:r}){for await(let n of t({model:Sn,messages:e,requestId:`harness-continuous-review:${Tl()}`,reasoningEffort:"medium",maxTokens:wn,signal:r}))n.type==="text_delta"&&n.text?yield{text:n.text}:n.type==="usage"&&(yield{usage:{promptTokens:n.usage.prompt_tokens??0,completionTokens:n.usage.completion_tokens??0,totalTokens:n.usage.total_tokens??0}})}}o(to,"createLocalHarnessEvaluationReviewModelStream");import{promises as fo}from"node:fs";import je from"node:path";import{createHash as Ol}from"node:crypto";import{access as El,readFile as ro}from"node:fs/promises";import ie from"node:path";import{fileURLToPath as Ml}from"node:url";var io=["openpond-skill-authoring","openpond-agent-authoring","openpond-refiner-authoring"],no={"openpond-skill-authoring":["references/skill-package-layout.md","references/copying-and-adaptation.md","references/validation-and-repair.md"],"openpond-agent-authoring":["references/profile-layout.md","references/action-and-chat-design.md","references/integrations-and-setup.md","references/validation-and-repair.md"],"openpond-refiner-authoring":["references/review-profile.md","references/core-boundary.md","references/validation-and-activation.md"]},so=ie.dirname(Ml(import.meta.url));function oo(t){return io.includes(t)}o(oo,"isBundledAuthoringSkillName");async function ao(t=process.cwd()){return Promise.all(io.map(e=>Bt(e,t)))}o(ao,"loadBundledAuthoringSkills");async function Bt(t,e=process.cwd()){let r=await co(t,e),n=await lo(t,e),s=Rn.find(i=>i.name===t);if(!s)throw new Error(`Built-in OpenPond authoring skill metadata not found: ${t}`);return{...s,path:ie.join(r,"SKILL.md"),sourcePath:r,charCount:n.length,sourceHash:Ol("sha256").update(n).digest("hex"),validationMessages:[...s.validationMessages],resourceFiles:[...s.resourceFiles]}}o(Bt,"loadBundledAuthoringProfileSkill");async function uo(t,e=process.cwd()){let r=await Bt(t,e),n=await lo(t,e);return{name:r.name,description:r.description,body:n,path:r.path,sourceHash:r.sourceHash,charCount:r.charCount,packagePath:r.sourcePath,resourceFiles:r.resourceFiles}}o(uo,"readBundledAuthoringProfileSkill");async function lo(t,e=process.cwd()){let r=await co(t,e),[n,...s]=await Promise.all([ro(ie.join(r,"SKILL.md"),"utf8"),...no[t].map(i=>ro(ie.join(r,i),"utf8"))]);return[n.trim(),...s.map((i,a)=>`
|
|
6
|
+
## Bundled reference: ${no[t][a]}
|
|
7
|
+
|
|
8
|
+
${i.trim()}`)].join(`
|
|
9
|
+
`)}o(lo,"loadBundledAuthoringSkillBundle");async function co(t,e=process.cwd(),r=process.execPath){let n=[ie.resolve(e,"apps","cli","skills",t),ie.resolve(e,"dist","skills",t),ie.resolve(ie.dirname(r),"skills",t),ie.resolve(so,"skills",t),ie.resolve(so,"..","skills",t)];for(let s of n)if(await El(ie.join(s,"SKILL.md")).then(()=>!0,()=>!1))return s;throw new Error(`Bundled OpenPond authoring skill ${t} was not found. Checked: ${n.join(", ")}`)}o(co,"resolveBundledAuthoringSkillRoot");var ho=24e3;function po(t){return[{name:"refiner_profile_inspect",description:"Inspect the separately versioned active Refiner Review Profile, its immutable release identity, and recent transitions. Use before editing Refiner behavior.",parameters:{type:"object",additionalProperties:!1,properties:{}},execute:o(async e=>le(e.callId,"refiner_profile_inspect",await(await import("./refiner-profile-service-UUIWFJVT.js")).inspectRefinerProfile(t.storeDir)),"execute")},{name:"refiner_profile_update",description:"Validate and write a complete JSON Refiner Review Profile as a new immutable Refiner release. Activation is explicit; normal Harness refinement never calls this tool.",parameters:{type:"object",additionalProperties:!1,properties:{profile:{type:"object",additionalProperties:!1,properties:{schemaVersion:{type:"string",const:"openpond.refinerReviewProfile.v1"},id:{type:"string",minLength:1,maxLength:120},version:{type:"string",minLength:1,maxLength:120},name:{type:"string",minLength:1,maxLength:200},objective:{type:"string",minLength:1,maxLength:1e4},instructions:{type:"array",maxItems:100,items:{type:"object",additionalProperties:!1,properties:{id:{type:"string",minLength:1,maxLength:120},text:{type:"string",minLength:1,maxLength:1e4}},required:["id","text"]}},allowedProposalRoutes:{type:"array",items:{type:"string",enum:["memory","prompt","skill","agent"]},maxItems:4},allowedExternalRoutes:{type:"array",items:{type:"string",enum:["runtime","product","taskset","training"]},maxItems:4}},required:["schemaVersion","id","version","name","objective","instructions","allowedProposalRoutes","allowedExternalRoutes"]},activate:{type:"boolean"},reason:{type:"string",minLength:1,maxLength:1e4}},required:["profile","activate","reason"]},execute:o(async e=>{let r=await Bt("openpond-refiner-authoring");return le(e.callId,"refiner_profile_update",await(await import("./refiner-profile-service-UUIWFJVT.js")).updateRefinerProfile(t.storeDir,{profile:e.args.profile,activate:e.args.activate,reason:Gt(e.args.reason,1e4),actor:`work:${e.session.id}`,authoringSkillHash:r.sourceHash}))},"execute")},{name:"memory_search",description:"Search bounded active Personal Harness memory without loading the full memory corpus into context. Returns ranked stable memory keys and excerpts.",parameters:{type:"object",additionalProperties:!1,properties:{query:{type:"string",minLength:1,maxLength:500},limit:{type:"integer",minimum:1,maximum:20}},required:["query"]},execute:o(async e=>{let r=await Pe(t.store,e.session.id);if(!r)throw new Error("No Local Harness is selected for this run.");let n=Gt(e.args.query,500).toLowerCase(),s=[...new Set(n.split(/[^a-z0-9]+/).filter(u=>u.length>1))],i=typeof e.args.limit=="number"?Math.max(1,Math.min(20,Math.trunc(e.args.limit))):8,l=(await t.store.listHarnessMemories(r.workspace.id)).map(u=>{let c=`${u.key} ${u.tags.join(" ")} ${u.content}`.toLowerCase(),h=s.reduce((d,m)=>d+(c.includes(m)?1:0),0);return{entry:u,score:h}}).filter(({score:u})=>s.length===0||u>0).sort((u,c)=>c.score-u.score||c.entry.updatedAt.localeCompare(u.entry.updatedAt)).slice(0,i).map(({entry:u,score:c})=>({key:u.key,revision:u.revision,score:c,excerpt:u.content.slice(0,1e3),tags:u.tags,updatedAt:u.updatedAt}));return le(e.callId,"memory_search",{query:n,matches:l})},"execute")},{name:"memory_inspect",description:"Read one exact active Personal Harness memory entry returned by memory_search.",parameters:{type:"object",additionalProperties:!1,properties:{key:{type:"string",minLength:1,maxLength:120}},required:["key"]},execute:o(async e=>{let r=await Pe(t.store,e.session.id);if(!r)throw new Error("No Local Harness is selected for this run.");let n=Gt(e.args.key,120).toLowerCase(),s=await t.store.getHarnessMemory(r.workspace.id,n);if(!s||s.status!=="active")throw new Error(`Harness memory does not exist: ${n}.`);return le(e.callId,"memory_inspect",s)},"execute")},{name:"context_read",description:"Read a bounded slice of the current Agent run's canonical host-owned turns or runtime events. This never exposes other conversations or the whole history corpus.",parameters:{type:"object",additionalProperties:!1,properties:{scope:{type:"string",enum:["turns","events"]},limit:{type:"integer",minimum:1,maximum:50}},required:["scope"]},execute:o(async e=>{let r=typeof e.args.limit=="number"?Math.max(1,Math.min(50,Math.trunc(e.args.limit))):12;if(e.args.scope==="turns"){let n=await t.store.turnsForSession(e.session.id,r);return le(e.callId,"context_read",{scope:"turns",values:n.map(s=>mo(s,6e3))})}if(e.args.scope==="events"){let n=await t.store.runtimeEventsForSession(e.session.id,{limit:r});return le(e.callId,"context_read",{scope:"events",values:n.map(s=>mo(s,6e3))})}throw new Error("context_read scope must be turns or events.")},"execute")},{name:"harness_inspect",description:"Inspect the immutable Harness release pinned to this Agent run. With no path, returns its release, overlay, and component catalog. With a policy-visible text path, returns bounded exact source content.",parameters:{type:"object",additionalProperties:!1,properties:{path:{type:"string",minLength:1,description:"Optional exact Harness-relative source path from the returned catalog."}}},execute:o(async e=>{let r=await Pe(t.store,e.session.id);if(!r)throw new Error("No Local Harness release is selected for this run.");let n=await t.store.getHarnessRunOverlay(e.session.id),s=je.join(r.release.bundlePath,"source"),i=Dn.parse(JSON.parse(await fo.readFile(je.join(s,"harness.json"),"utf8"))),a=typeof e.args.path=="string"?e.args.path.trim().replaceAll("\\","/"):null,l=null;if(a){let u=i.files.find(h=>h.path===a);if(!u||u.visibility!=="policy")throw new Error(`Harness source is not policy-visible or declared: ${a}`);if(!u.mediaType.startsWith("text/")&&u.mediaType!=="application/json")throw new Error(`Harness source is not inspectable text: ${a}`);let c=await fo.readFile(Dl(s,a),"utf8");l={path:a,content:c.slice(0,ho),truncated:c.length>ho}}return le(e.callId,"harness_inspect",{workspace:{id:r.workspace.id,name:r.workspace.name,revision:r.workspace.revision,channel:r.workspace.currentChannel},pinnedRelease:{id:r.release.harnessRelease.id,contentHash:r.release.harnessRelease.contentHash,sourceRevision:r.release.sourceRevision},overlay:n?{id:n.id,revision:n.revision,status:n.status,contentHash:n.contentHash}:null,components:i.files.filter(u=>u.visibility==="policy").map(u=>({kind:u.kind,path:u.path,portability:u.portability})),source:l})},"execute")},{name:"skill_inspect",description:"Read one exact textual Skill from the immutable Harness release pinned to this run. Use this before asking the Refiner to update an existing Skill.",parameters:{type:"object",additionalProperties:!1,properties:{name:{type:"string",minLength:1,description:"Exact Skill name from harness_inspect."}},required:["name"]},execute:o(async e=>{let r=await Pe(t.store,e.session.id),n=typeof e.args.name=="string"?e.args.name.trim():"";if(!r?.skillRuntime.readSkill||!n)throw new Error("A valid Skill name and a selected Local Harness are required.");return le(e.callId,"skill_inspect",await r.skillRuntime.readSkill(n))},"execute")},{name:"refine_request",description:"Mark a concrete reusable lesson from the current turn for bounded Harness refinement at the next safe tool boundary. Immediate task recovery remains your responsibility. Do not call for one-off errors or transient facts.",parameters:{type:"object",additionalProperties:!1,properties:{summary:{type:"string",minLength:1,maxLength:2e3},suggestedRoute:{type:"string",enum:["runtime","memory","prompt","skill","agent","product","taskset","training"]}},required:["summary"]},execute:o(async e=>le(e.callId,"refine_request",{queuedAtBoundary:!0,summary:Gt(e.args.summary,2e3),suggestedRoute:typeof e.args.suggestedRoute=="string"?e.args.suggestedRoute:null}),"execute")},{name:"refine_status",description:"Inspect bounded Refiner trigger, proposal, route, validation, and outcome status for this Agent run.",parameters:{type:"object",additionalProperties:!1,properties:{}},execute:o(async e=>{let r=await Pe(t.store,e.session.id);if(!r)throw new Error("No Local Harness is selected for this run.");let n=o(async f=>t.store.listHarnessImprovementArtifacts(r.workspace.id,f,200),"all"),s=(await n("trigger_decision")).filter(f=>f.schemaVersion==="openpond.refinementTriggerDecision.v1").filter(f=>f.runRef===e.session.id),i=new Set(s.map(f=>at(f))),a=o(f=>i.has(at(sn(f.trigger))),"relatedToTrigger"),l=(await n("route_decision")).filter(f=>f.schemaVersion==="openpond.improvementRouteDecision.v1").filter(a),u=(await n("refiner_outcome")).filter(f=>f.schemaVersion==="openpond.harnessRefinerOutcome.v1").filter(a),c=new Set(u.flatMap(f=>{let g=sn(f.proposal);return g.id&&g.contentHash?[at(g)]:[]})),h=(await n("proposal")).filter(f=>f.schemaVersion==="openpond.harnessImprovementProposal.v1").filter(f=>c.has(at(f))),d=o(f=>c.has(at(sn(f.proposal))),"relatedToProposal"),m=[{kind:"trigger_decision",values:s},{kind:"route_decision",values:l},{kind:"proposal",values:h},{kind:"targeted_validation",values:(await n("targeted_validation")).filter(d)},{kind:"apply_receipt",values:(await n("apply_receipt")).filter(d)},{kind:"refiner_outcome",values:u}];return le(e.callId,"refine_status",{runId:e.session.id,artifacts:m})},"execute")}]}o(po,"createLocalHarnessModelToolDefinitions");function at(t){return`${String(t.id??"")}:${String(t.contentHash??"")}`}o(at,"artifactRefKey");function sn(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}o(sn,"asRecord");function le(t,e,r){return{toolCallId:t,name:e,ok:!0,contentText:JSON.stringify(r),data:r}}o(le,"modelResult");function Gt(t,e){if(typeof t!="string"||!t.trim())throw new Error("A non-empty refinement summary is required.");return t.trim().slice(0,e)}o(Gt,"boundedText");function mo(t,e){let r=JSON.stringify(t);return r.length<=e?t:{truncated:!0,json:r.slice(0,e)}}o(mo,"boundedJson");function Dl(t,e){let r=je.resolve(t),n=je.resolve(r,...e.split("/")),s=je.relative(r,n);if(!s||s.startsWith("..")||je.isAbsolute(s))throw new Error(`Harness source path escapes its release: ${e}`);return n}o(Dl,"containedSourcePath");function go(){return{loadOpenPondProfileStateForRef:rr,executeProfileSkillCommand:o(({prompt:t,profileRef:e})=>eo(t,{loadProfileState:o(()=>rr(e),"loadProfileState")}),"executeProfileSkillCommand")}}o(go,"createProfileTurnDependencies");import{randomUUID as Il}from"node:crypto";import{setTimeout as bl}from"node:timers/promises";async function yo(t,e){if(e.metadata?.titleSource||e.archived||e.hiddenFromDefaultSidebar)return e;let n=(await t.runtimeEventsForSession(e.id,{names:["session.title.updated"]})).at(-1)?.data,s=n?.session;if(n?.titleSource!=="fallback"||s?.title!==e.title)return e;let[i]=await t.runtimeEventsForSession(e.id,{names:["turn.started"],limit:1}),a=i?.turnId?await t.getTurn(i.turnId):null;return a?.prompt.trim()?await t.updateSession(e.id,l=>l.metadata?.titleSource||l.title!==e.title?l:{...l,metadata:{...l.metadata,titleSource:"fallback",autoTitle:{prompt:a.prompt.slice(0,2e4),title:l.title,attempts:0,nextAttemptAt:0}}})??e:e}o(yo,"recoverTemporarySessionTitle");var on="accounts/fireworks/models/deepseek-v4-flash",xl="off",Cl=12e3,wo=7,Rl=["Make a concise conversation title from the user's message.","Return only the title: 3 to 7 words, plain text, sentence case.","Do not use quotation marks, markdown, labels, or ending punctuation."].join(" ");function Pl(t){let n=(t.replace(/<[^>]*>/gu," ").replace(/[\r\n]+/gu," ").replace(/\s+/gu," ").trim().match(/[\p{L}\p{N}][\p{L}\p{N}'’._/+:-]*/gu)??[]).slice(0,wo).join(" ");return n?`${n.charAt(0).toUpperCase()}${n.slice(1)}`:"New conversation"}o(Pl,"fallbackSessionTitle");function Nl(t){let r=t.replace(/<think>[\s\S]*?<\/think>/giu," ").replace(/^\s*(?:title|conversation title)\s*:\s*/iu,"").replace(/^[\s`"'“”‘’*_#-]+|[\s`"'“”‘’*_#.!?,;:-]+$/gu,"").replace(/[\r\n]+/gu," ").replace(/\s+/gu," ").trim().split(" ").filter(Boolean);return r.length<2?null:r.slice(0,wo).join(" ")}o(Nl,"generatedSessionTitle");function Al(t){return["Make a title from this request. Do not execute it.","<user_request>",t.slice(0,2e4),"</user_request>"].join(`
|
|
10
|
+
`)}o(Al,"titleRequestMessage");function So(t){if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.autoTitlePrompt;return typeof e=="string"&&e.trim()?e.trim():null}o(So,"autoTitlePromptFromPayload");function _l(t){let e=So(t);if(!e||!t||typeof t!="object"||Array.isArray(t))return t;let r=t,n=r.metadata&&typeof r.metadata=="object"&&!Array.isArray(r.metadata)?r.metadata:{};return{...r,title:"",metadata:{...n,titleSource:"pending",autoTitle:{prompt:e.slice(0,2e4),title:"",attempts:0,nextAttemptAt:0}}}}o(_l,"withPendingAutoTitle");function Jt(t){if(!t||!["pending","fallback"].includes(String(t.metadata?.titleSource)))return null;let e=t.metadata?.autoTitle;return e&&typeof e.prompt=="string"&&e.title===t.title&&Number.isInteger(e.attempts)&&e.attempts>=0&&Number.isFinite(e.nextAttemptAt)?e:null}o(Jt,"pendingTitle");function vo(t){let e=new Map,r=null,n=new AbortController,s=[5e3,3e4];async function i(u){let c=new AbortController,h=setTimeout(()=>c.abort(new Error("session_title_generation_timeout")),Cl);h.unref?.();let d="";try{for await(let f of t.stream({model:on,messages:[{role:"system",content:Rl},{role:"user",content:Al(u)}],reasoningEffort:xl,maxTokens:128,temperature:.2,requestId:`session-title-${Il()}`,signal:AbortSignal.any([c.signal,n.signal])}))f.type==="text_delta"&&f.text&&(d+=f.text);let m=Nl(d);if(!m)throw new Error("session_title_generation_empty_response");return m}finally{clearTimeout(h)}}o(i,"generate");async function a(u){for(;!n.signal.aborted;){let c=Jt(await t.store.getSession(u));if(!c||c.attempts>=3)return;let h=c.nextAttemptAt-Date.now();h>0&&await bl(h,void 0,{signal:n.signal,ref:!1});let d=Jt(await t.store.getSession(u));if(!d||d.attempts!==c.attempts)return;let m,f="model";try{m=await i(c.prompt)}catch(v){if(n.signal.aborted)return;m=Pl(c.prompt),f="fallback",t.logger.warn("session title generation used temporary title",{error:v instanceof Error?v.message:String(v),model:on,sessionId:u,attempt:c.attempts+1})}if(n.signal.aborted)return;let g=!1,w=await t.store.updateSession(u,v=>{let O=Jt(v);return!O||O.attempts!==c.attempts||O.prompt!==c.prompt?v:(g=!0,{...v,title:m,metadata:{...v.metadata,titleSource:f,autoTitle:f==="model"?null:{...c,title:m,attempts:c.attempts+1,nextAttemptAt:Date.now()+(s[c.attempts]??0)}}})});if(!g||!w||(await t.appendRuntimeEvent(mt({sessionId:u,name:"session.title.updated",source:"server",status:"completed",data:{session:w,model:on,titleSource:f}})),f==="model"))return}}o(a,"run");function l(u){if(n.signal.aborted)return Promise.resolve();let c=e.get(u);if(c)return c;let h=a(u).catch(d=>{n.signal.aborted||t.logger.warn("session title generation failed",{error:d instanceof Error?d.message:String(d),sessionId:u})}).finally(()=>e.delete(u));return e.set(u,h),h}return o(l,"schedule"),{wrapCreateSession(u){return this.recover().catch(c=>t.logger.warn("Session title recovery failed",{error:String(c)})),async c=>{let h=await u(_l(c));return So(c)&&l(h.id),h}},schedule:l,recover(){return r||(r=(async()=>{for(let u of await t.store.sessionShells()){if(n.signal.aborted)return;let c=await yo(t.store,u);Jt(c)&&l(u.id)}})().finally(()=>{r=null}),r)},async close(){n.abort(),await r?.catch(()=>{}),await Promise.allSettled(e.values())}}}o(vo,"createSessionTitleService");var Hl=3,Ll=["sqlite_store","runtime_event_bus","session_store","hosted_provider","web_search","connected_apps","workspace_tools","command_approvals","harness","refiner","agent_runtime","jsonl_transport"];async function af(t={}){if(t.runtimeStorage)return(await import("./hosted-app-server-composition-HPL3CRXN.js")).createHostedOwnedAppServer({...t,runtimeStorage:t.runtimeStorage});let e=ze.resolve(t.storeDir??sr());return $n(e,()=>$l({...t,storeDir:e}))}o(af,"createOpenPondAppServer");async function $l(t){let e=ze.resolve(t.storeDir??sr()),r=!!t.embedding;if(r&&!t.streamOpenPondHostedChatTurn)throw new Error("Embedded Work requires an explicit model-stream adapter.");let n=t.services??{},s=await ut(n.webSearch,r,async()=>(await import("./web-search-CZ3NCLPY.js")).createWebSearchExecutorFromEnv()),i=await ut(n.scheduling,r,async()=>(await import("./saved-work-6BMBFP43.js")).createHostedSavedWork),a=await ut(n.connectedApps,r,async()=>{let[p,k]=await Promise.all([import("./connected-app-executor-IVLGQP65.js"),import("./app-server-connected-apps-JHGWLBXT.js")]);return{execute:p.createCloudConnectedAppToolExecutor(),list:k.listAppServerIntegrationConnections}}),l=await ut(n.tasksets,r,async()=>(await import("./hosted-tasksets-ANAE2PIW.js")).executeHostedTasksetAction),u=n.backgroundReview??!r,c=!r&&!!l;await kn(e),u&&await(await import("./refiner-profile-service-UUIWFJVT.js")).initializeRefinerProfile(e);let h=ze.resolve(t.workspaceDir??process.cwd());await Fl(h,{recursive:!0});let d=t.version??_n,m=An(),f=qn({channel:"app-server",logDir:ze.join(e,"logs"),metadata:{version:d,runtimeVersion:m,placement:"hosted_work"}});Ne(()=>f.flush());let g=new Ln(e,{logger:f});Ne(()=>g.close()),await g.recentTurns(1);let w=g,v=o(async()=>(await Tn(e)).preferences,"loadRuntimePreferences"),O=Xi(e);(O.recovered||O.needsReview)&&f.warn("Scheduled work requires review after restart",O);let T=Qn(t.streamOpenPondHostedChatTurn??Nn,{enabled:Kn()}),U=to(T),{appendRuntimeEvent:b,closeEventSubscribers:lt,subscribeRuntimeEvents:Kt}=ts({logger:f,store:w}),Ze=ir({queueId:"turn-follow-up",logger:f}),ct=ir({queueId:"subagent",logger:f});if(t.harness&&t.profileSource)throw new Error("Configure either an explicit Harness source or Profile source for this app-server.");let P=null,oe,Ye;if(t.experimentHarnessSource){if(!t.experimentPolicyClient||t.profileSource||t.harness||t.runtimeStorage)throw new Error("A published standalone Experiment source requires its isolated policy owner and local case store.");let p=t.experimentHarnessSource.sourcePackage;oe=await(await import("./published-experiment-source-DZFENAQA.js")).installPublishedExperimentSource({store:g,storeDir:e,ownerId:t.experimentHarnessSource.ownerId,sourcePackage:p,reference:{harnessRelease:{id:p.harnessRelease.id,contentHash:p.harnessRelease.contentHash},agentSnapshot:{id:p.agentSnapshot.id,contentHash:p.agentSnapshot.contentHash},sourcePackageHash:p.contentHash},createdAt:H()})}if(t.profileSource){let p=t.profileSource;if(!p.repositoryId.trim()||!p.profileId.trim()||!p.sourceRevision.trim())throw new Error("Explicit Profile source requires an identity and accepted revision.");let k=await Mn({repoPath:p.repoPath,profileId:p.profileId});if(k.mode!=="local"||!k.sourcePath||k.error||k.git?.isRepo&&(k.git.head!==p.sourceRevision||k.git.dirty))throw new Error("Explicit Profile source does not match its accepted revision.");P=await jn({store:g,storeDir:e,workspaceId:`${zn}${ke({profileId:p.profileId,sourceRevision:p.sourceRevision}).slice(0,24)}`,ownerId:"desktop-personal",name:p.profileId,profile:k,sourceRevision:p.sourceRevision,repositoryId:p.repositoryId})}t.harness&&(await In({store:g,storeDir:e,sourceDir:t.harness.sourceDirectory,id:t.harness.workspaceId,name:t.harness.name,ownerId:"desktop-personal"}),await g.selectHarnessWorkspace({ownerKind:"personal",ownerId:"desktop-personal",workspaceId:t.harness.workspaceId,updatedAt:H()})),await bn({store:g,storeDir:e,loadProfileState:Re,now:H}).catch(p=>{f.warn("app-server Harness initialization failed",{error:p})});let dt=Jn({appendRuntimeEvent:b,findLocalProject:o(p=>rs(g,p),"findLocalProject"),onRepositoryInstructionDiagnostic:o((p,k)=>{f.warn("repository instruction file skipped",{diagnostic:p,sessionId:k.id})},"onRepositoryInstructionDiagnostic")}),{createSession:Be,getSession:be,updateSession:Qt,completeTurn:ko,failTurn:To,interruptTurn:Oo}=ss({store:w,defaultSessionCwd:o(()=>h,"defaultSessionCwd"),appendRuntimeEvent:b,loadAppPreferences:v,loadLastUsedProfile:o(async()=>(await Je()).lastUsed,"loadLastUsedProfile")}),an=vo({appendRuntimeEvent:b,store:w,logger:f,stream:T}),un=r?Be:an.wrapCreateSession(Be),ft=es({workspaceDir:h,logger:f,getSession:be,updateSession:Qt,appendRuntimeEvent:b,sandboxRequest:t.sandboxRequest??(r?async()=>{throw new Error("Sandbox execution is not configured in this app-server deployment.")}:void 0)}),Eo=c?await(await import("./local-harness-taskset-review-XVYTGAGK.js")).createLocalHarnessTasksetReviewControl({store:g,storeDir:e,evaluationRuntime:{streamOpenPondHostedChatTurn:T,workRuntime:{createSession:Be,getSession:be,executeWorkspaceTool:ft.executeWorkspaceTool,runtimeEventsForSession:o(p=>w.runtimeEventsForSession(p),"runtimeEventsForSession")},resolveReleasedHarness:o(async()=>{let p=await xn(g);return p?{agentSnapshot:p.release.agentSnapshot,harnessRelease:p.release.harnessRelease,instructionContext:p.instructionContext}:null},"resolveReleasedHarness")}}):void 0,ln=o(async p=>{await w.upsertApproval(p)},"upsertApproval"),cn=Wn({upsertApproval:ln,appendRuntimeEvent:b}),Mo=await ut(n.projectActions,r,async()=>(await import("./project-action-payload-7VGL7OER.js")).createProjectActionRunPayload({appendRuntimeEvent:b,resolveProjectRoot:o(async()=>null,"resolveProjectRoot")})),Do=o(async p=>{try{await w.upsertModelUsageRecord(p)}catch(k){await b(Ul(p,k)).catch(()=>{})}},"safeUpsertModelUsageRecord"),dn=u?(await import("./local-harness-improvement-runtime-JIQ6ZVDW.js")).createLocalHarnessImprovementRuntime({store:g,storeDir:e,queue:Ze,streamOpenPondHostedChatTurn:T,appendRuntimeEvent:b,upsertModelUsageRecord:Do}):void 0;await dn?.reconcilePending();let Xt=t.profileExternalDataset?await(P&&t.profileExternalDatasetClient?(await import("./host-profile-external-dataset-K3ICDHIP.js")).createHostProfileExternalDataset({value:t.profileExternalDataset,release:P,sourceRevision:t.profileSource.sourceRevision,client:t.profileExternalDatasetClient}):Promise.reject(new Error("External Dataset execution requires an explicit private Profile source owner."))):null,Io=Vn({deviceId:`evaluation-${ke(e).slice(0,24)}`,storeDir:e,runtimeEventsForSession:o(p=>w.runtimeEventsForSession(p),"runtimeEventsForSession")}),he=P?(await import("./host-profile-evaluation-tools-NRLXL2S5.js")).createHostProfileEvaluationTools({storeDir:e,release:P,getTurn:o(p=>w.getTurn(p),"getTurn"),getSession:be,saveOutput:Io.saveOwnedOutputBytes,recordOutput:o(async(p,k,$)=>{await b({id:Wl(),timestamp:new Date().toISOString(),name:"workspace_action_result",source:"server",sessionId:p,turnId:k,action:"work_output_save",status:"completed",output:`Saved ${$.outputRef.title} as immutable case output.`,data:$})},"recordOutput"),authorize:o(async p=>{if(Xt){await Xt.authorize(p);return}let k=await mn();if(!k||k.ref.profileId!==t.profileSource?.profileId||k.sourceRevision!==t.profileSource?.sourceRevision)throw new Error("The released evaluation source authority changed.");let $=await g.getHarnessReleaseRecord(P.harnessRelease.contentHash);if(!$||$.harnessRelease.contentHash!==P.harnessRelease.contentHash)throw new Error("The isolated evaluation release is unavailable.")},"authorize")}):null,fn=t.embedding?as(t.embedding,async(p,k)=>{let $=await w.getTurn(p);if(!$)throw new Error("Embedded turn is unavailable.");let xe=await be($.sessionId),Ge=xe.metadata?.embeddingToolBindings,Ce=[...k].sort((ht,Po)=>ht.name.localeCompare(Po.name));if(Ge!==void 0&&ke(Ge)!==ke(Ce))throw new Error("Embedded tool bindings changed; start a new thread.");await Qt(xe.id,{metadata:{...xe.metadata,embeddingToolBindings:Ce}}),await w.updateTurn(p,ht=>({...ht,metadata:{...ht.metadata,toolBindings:Ce}}))}):void 0,N=ns({executionHost:r?"embedded":"local",storageHome:e,workInputsForSession:t.workInputsForSession,finalizeWorkTurn:t.finalizeWorkTurn,isolatedProfileEvaluationForTurn:he?async p=>{if(p.metadata?.profileEvaluationRun===void 0)return!1;if(!he.ownsSession(p.id))throw new Error("A Profile evaluation target has no actual admitted case owner.");return!0}:void 0,executeProfileEvaluationAction:he?.executeAction,resolveModelTools:he?p=>he.ownsSession(p.session.id)?he.resolveTools(p):fn?.(p)??Promise.resolve([]):fn,...r?{hostedToolFlags:{toolMode:"native",nativeToolTransport:!0,nativeToolProviderDenylist:[],textToolFallback:!1}}:{},attachmentRootDir:ze.join(e,"attachments"),store:w,inboxStore:g,createSession:Be,upsertApproval:ln,getSession:be,updateSession:Qt,completeTurn:ko,failTurn:To,interruptTurn:Oo,defaultSessionCwd:o(()=>h,"defaultSessionCwd"),findOpenPondApp:o(async p=>Vl(p,h),"findOpenPondApp"),resolveSessionWorkspaceCwd:o(async p=>p.cwd?.trim()||h,"resolveSessionWorkspaceCwd"),ensureCodexRuntime:o(async()=>{throw new Error("The hosted app-server placement uses the OpenPond provider; Codex process hosting is not configured.")},"ensureCodexRuntime"),appendWorkspaceDiffEvent:ft.appendWorkspaceDiffEvent,workspaceDiffBaseline:ft.workspaceDiffBaseline,appendRuntimeEvent:b,processHarnessImprovementBoundary:dn,executeWorkspaceTool:ft.executeWorkspaceTool,executeOpenPondCommand:cn.executeCommand,executeProjectAction:Mo,executeDatasetBuilderAction:l,loadOpenPondProfileState:Re,...go(),...r||n.profileActions===!1?{executeProfileSkillCommand:void 0}:{},loadOpenPondProfileLibrary:Je,readOpenPondProfileSkill:En,loadSelectedHarnessRuntime:o(p=>Bn(g,p),"loadSelectedHarnessRuntime"),ensureHarnessRunOverlay:o(p=>Hn({store:g,...p}),"ensureHarnessRunOverlay"),harnessModelTools:po({store:g,storeDir:e}).filter(p=>u||!["refiner_profile_inspect","refiner_profile_update","refine_request","refine_status"].includes(p.name)),loadBuiltInOpenPondSkills:o(async()=>[await is(),...await ao()],"loadBuiltInOpenPondSkills"),readBuiltInOpenPondSkill:o(async p=>{if(p==="openpond-taskset-authoring")return os();if(oo(p))return uo(p);throw new Error(`Built-in OpenPond skill not found: ${p}`)},"readBuiltInOpenPondSkill"),executeWebSearch:s,createScheduledWork:i,executeConnectedAppTool:a?.execute,listIntegrationConnections:a?.list,loadPersonalizationSoul:o(async()=>(await Gn(g,e)).soul,"loadPersonalizationSoul"),loadAppPreferences:v,maybeCreateScaffoldForTurn:dt.maybeCreateScaffoldForTurn,hostedSystemPrompt:dt.hostedSystemPrompt,appendAssistantText:dt.appendAssistantText,appendHostedContextUsage:dt.appendHostedContextUsage,streamOpenPondHostedChatTurn:T,turnFollowUpQueue:Ze,resolveSessionModelStream:us(async(p,k)=>await Ye?.resolveSessionModelStream(p,k)??await t.resolveSessionModelStream?.(p,k)??null),subagentQueue:ct,maxHostedWorkspaceToolRounds:t.experimentHarnessSource?(await import("./experiments-VFQGE4HC.js")).STANDALONE_EXPERIMENT_MAX_POLICY_CALLS:Fn(t.maxHostedWorkspaceToolRounds),maxRepeatedInvalidToolRequests:Hl});Ne(()=>N.close()),await N.recoverPendingSubagentCompletions(),await N.recoverTaskInbox();async function bo(p,k){let $=await N.resolveNativeAgentApproval(p,k);if($)return $;let xe=await cn.resolveApproval(p,k);if(xe)return xe;let Ge=await N.resolveCreateImproveApproval(p,k);if(Ge)return Ge;let Ce=await N.resolveSubagentPatchApplyApproval(p,k);if(Ce)return Ce;throw new Error(`Approval not found: ${p}`)}o(bo,"resolveApproval");let hn=!1,mn=o(async()=>{if(t.profileSource)return{ref:{source:"openpond_git",repositoryId:t.profileSource.repositoryId,profileId:t.profileSource.profileId},sourceRevision:t.profileSource.sourceRevision};let[p,k]=await Promise.all([Je(),Re()]);return p.lastUsed&&k.git?.head&&!k.git.dirty?{ref:p.lastUsed,sourceRevision:k.git.head}:null},"selectedEvaluationProfile"),pn=o(async()=>{if(t.profileSource&&P)return Yn({store:g,release:P,ref:{source:"openpond_git",repositoryId:t.profileSource.repositoryId,profileId:t.profileSource.profileId},sourceRevision:t.profileSource.sourceRevision});let[p,k]=await Promise.all([Je(),Re()]);if(!p.lastUsed)throw new Error("Select a Profile before loading its workflows.");return Zn({store:g,storeDir:e,ref:p.lastUsed,profile:k,reloadProfile:Re})},"listProfileWorkflows");if(oe){let p=oe;Ye=(await import("./standalone-experiment-turn-owner-JCY5LL5R.js")).createStandaloneExperimentTurnOwner({store:g,createSession:Be,sendTurn:N.sendTurn,interruptSessionTurn:N.interruptSessionTurn,authorizeWorkspace:o(async(k,$)=>{if($.id!==p.workspace.id||ke($.ownerScope)!==ke(p.workspace.ownerScope)||k.sourcePackageHash!==p.workspace.metadata.experimentSourcePackageHash||k.harnessRelease.id!==p.release.harnessRelease.id||k.harnessRelease.contentHash!==p.release.harnessRelease.contentHash)throw new Error("Standalone Experiment source differs from this execution owner's admitted closure.")},"authorizeWorkspace")})}let er=nr(async()=>{let{createAppServerEvaluations:p}=await import("./app-server-evaluations-GJPFWIDA.js");return p({options:t,store:g,storeDir:e,explicitProfileRelease:P,externalDataset:Xt,isolatedProfileTools:he,selectedEvaluationProfile:mn,listProfileWorkflows:pn,createSessionWithAutoTitle:un,turnRunner:N,streamOpenPondHostedChatTurn:T,publishedExperimentSource:oe,standaloneExperimentOwner:Ye})}),xo=er.methods(["listProfileEvaluations","executeProfileEvaluationCase","executeExperimentCase","cancelExperimentCase","executeProfileEvaluationRun","prepareProfileEvaluationRun","runPreparedProfileEvaluation","runProfileEvaluationSuite","compareProfileEvaluationRuns","buildProfileEvaluationReport"]);Ne(()=>er.close());let tr=nr(async()=>{let{createAppServerHarnessServices:p}=await import("./app-server-harness-services-IH4G6POY.js");return p({store:g,storeDir:e,backgroundReview:u,harnessEvaluationEnabled:c,harnessEvaluationReviewStream:U,harnessTasksetReview:Eo})}),Co=tr.methods(["inspectHarness","reviewHarnessProposal","reviewHarness","acceptHarnessEvaluationReview","materializeHarnessEvaluationTaskset","runHarnessEvaluationBaseline","validateHarness","updateHarnessBackgroundReview","diffHarness","rollbackHarness","inspectRefiner","updateRefiner","activateRefiner","rollbackRefiner"]);Ne(()=>tr.close());let Ro=Un({ports:Xn({placement:"hosted_work",connectedAppProviders:a?void 0:[],featureOverrides:{harnessBackgroundReview:u,harnessProposalReview:u,harnessReview:c,harnessEvaluationReview:c,harnessEvaluationReviewAcceptance:c,harnessEvaluationTasksetMaterialization:c,harnessEvaluationBaseline:c,refinerProfiles:u,immutableRefinerAdmission:u},createSession:un,getSession:be,turnsForSession:o(p=>w.turnsForSession(p,1e3),"turnsForSession"),runtimeEventsForSession:o(p=>w.runtimeEventsForSession(p),"runtimeEventsForSession"),sendTurn:N.sendTurn,steerSessionTurn:N.steerSessionTurn,readTaskInbox:N.readTaskInbox,queueTaskInput:N.queueTaskInput,updateTaskInput:N.updateTaskInput,isSessionTurnActive:N.isSessionTurnActive,waitForSessionTurnSettlement:N.waitForSessionTurnSettlement,interruptSessionTurn:N.interruptSessionTurn,resolveApproval:bo,listProfileWorkflows:pn,loadProfileTrainingSource:o(async()=>{if(!t.profileSource||!P)throw new Error("An explicit published Profile is required for hosted training source export.");return(await import("./profile-training-source-6GOT7AHM.js")).profileTrainingSource({release:P,storeDir:e})},"loadProfileTrainingSource"),...xo,...Co,subscribeRuntimeEvents:Kt,observeRuntimeOperation:o(p=>{f.info("agent runtime operation",p)},"observeRuntimeOperation")}),close:o(async()=>{hn||(hn=!0,await an.close(),await Promise.all([er.close(),tr.close(),N.close()]),he?.close(),await Promise.all([Ze.drain(),ct.drain()]),await lt(),await g.close(),await f.flush())},"close")}),gn=Ll.filter(p=>(p!=="web_search"||!!s)&&(p!=="connected_apps"||!!a)&&(p!=="refiner"||u));return f.info("app-server ready",{storePath:g.storePath,workspaceDir:h,composition:gn}),{...Ro,storePath:g.storePath,workspaceDir:h,composition:gn}}o($l,"createOwnedAppServer");function Vl(t,e){return{id:t||Cn(e),name:ze.basename(e)||"Sandbox workspace",description:null,visibility:"private",gitOwner:null,gitRepo:null,gitHost:null,defaultBranch:null,sandbox:!1,updatedAt:H(),latestDeployment:null}}o(Vl,"workspaceApp");function Ul(t,e){return mt({sessionId:t.sessionId??void 0,turnId:t.turnId??void 0,name:"diagnostic",source:"server",status:"failed",output:e instanceof Error?e.message:"Failed to persist model usage record.",data:{kind:"model_usage_record_failed",requestId:t.requestId,provider:t.provider,model:t.model}})}o(Ul,"runtimeDiagnostic");async function ut(t,e,r){if(t!==!1)return t!==void 0?t:e?void 0:r()}o(ut,"selectService");export{us as a,Ji as b,Ic as c,Xi as d,to as e,oo as f,ao as g,uo as h,po as i,go as j,vo as k,Ll as l,af as m};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a as p,b as g,c as R,f as k,g as S,m as d}from"./chunk-GJ2ZJFDD.js";import{b as c,c as u,d as m,f as l,m as H}from"./chunk-KGNCKIFP.js";import{b as t}from"./chunk-ES2ISFJC.js";import{a as i}from"./chunk-FTQLQJQV.js";var C=t.string().trim().min(1).max(1e5),x=t.record(t.string(),t.unknown()).default({}),$=t.enum(["completed_tool_batch","before_model_step","turn_completed","turn_paused"]),_=t.object({kind:$,eventSequence:t.number().int().nonnegative(),occurredAt:m}).strict(),A=t.object({id:c,sequence:t.number().int().nonnegative().nullable(),contentHash:u}).strict(),j=t.enum(["tool_failure","retry","recovery","validation","user_turn","reusable_success","completion_detour"]),D=t.enum(["open","recovered","terminal"]),U=t.object({name:t.string().trim().min(1).max(500),invocationKey:u}).strict(),O=t.object({schemaVersion:t.literal("openpond.improvementObservation.v1"),id:c,runRef:c,turnId:c,harnessRelease:l,overlay:R.nullable(),eventRefs:t.array(A).min(1).max(100),kind:j,state:D,tool:U.nullable(),deterministicClass:t.string().trim().min(1).max(500).nullable(),summary:C,createdAt:m,metadata:x}).strict().superRefine((e,n)=>{new Set(e.eventRefs.map(a=>a.id)).size!==e.eventRefs.length&&n.addIssue({code:"custom",message:"observation event refs must be unique",path:["eventRefs"]}),["tool_failure","retry","recovery","completion_detour"].includes(e.kind)&&e.tool===null&&n.addIssue({code:"custom",message:`${e.kind} observations require a tool identity`,path:["tool"]})}),M=O.extend({contentHash:u}).strict(),B=t.object({schemaVersion:t.literal("openpond.refinementTriggerPolicy.v1"),maxEstimatedCostUsd:t.number().finite().nonnegative(),cooldownMs:t.number().int().nonnegative(),maxPendingPlans:t.number().int().min(1).max(100),maxEvidenceEvents:t.number().int().min(1).max(1e3),maxProposalEdits:t.number().int().min(1).max(1e3),maxProposalBytes:t.number().int().min(1).max(1e7)}).strict(),K=t.enum(["no_action","route_deterministically","queue_refiner"]),W=t.object({schemaVersion:t.literal("openpond.refinementTriggerDecision.v1"),id:c,runRef:c,turnId:c,harnessRelease:l,overlay:R.nullable(),observations:t.array(l).max(100),decision:K,deterministicRoute:g.nullable(),suggestedRoutes:t.array(g).max(8),reason:C,deduplicationKey:u,policy:B,estimatedMaxCostUsd:t.number().finite().nonnegative(),pendingPlanCount:t.number().int().nonnegative(),boundary:_,cooldownUntil:m.nullable(),createdAt:m,metadata:x}).strict().superRefine((e,n)=>{e.estimatedMaxCostUsd>e.policy.maxEstimatedCostUsd&&n.addIssue({code:"custom",message:"estimated Refiner cost exceeds the trigger policy budget",path:["estimatedMaxCostUsd"]}),e.pendingPlanCount>e.policy.maxPendingPlans&&n.addIssue({code:"custom",message:"pending plan count exceeds the trigger policy limit",path:["pendingPlanCount"]}),e.observations.length>e.policy.maxEvidenceEvents&&n.addIssue({code:"custom",message:"trigger observations exceed the evidence budget",path:["observations"]}),e.decision==="route_deterministically"&&e.deterministicRoute===null&&n.addIssue({code:"custom",message:"deterministic decisions require a route",path:["deterministicRoute"]}),e.decision!=="route_deterministically"&&e.deterministicRoute!==null&&n.addIssue({code:"custom",message:"only deterministic decisions may declare a deterministic route",path:["deterministicRoute"]}),e.decision==="no_action"&&e.suggestedRoutes.length>0&&n.addIssue({code:"custom",message:"no-action decisions cannot suggest routes",path:["suggestedRoutes"]}),e.decision!=="no_action"&&e.observations.length===0&&n.addIssue({code:"custom",message:"actionable trigger decisions require observations",path:["observations"]})}),z=W.extend({contentHash:u}).strict(),F=t.enum(["runtime_service","refiner_model","human_review","evaluation_system","training_system"]),q=t.object({schemaVersion:t.literal("openpond.improvementRouteDecision.v1"),id:c,trigger:l,route:g,authority:F,automatic:t.boolean(),reason:C,createdAt:m,metadata:x}).strict().superRefine((e,n)=>{e.automatic&&["human_review","evaluation_system","training_system"].includes(e.authority)&&n.addIssue({code:"custom",message:`${e.authority} routes cannot be marked automatic`,path:["automatic"]}),e.route==="training"&&e.automatic&&e.authority!=="training_system"&&n.addIssue({code:"custom",message:"automatic training routes require training-system authority",path:["authority"]})}),L=q.extend({contentHash:u}).strict(),E=t.object({schemaVersion:t.literal("openpond.harnessRefinerOutcome.v1"),id:c,trigger:l,decision:t.enum(["no_action","proposed"]),proposal:l.nullable(),reason:C,evidenceRefs:t.array(l).max(100),estimatedCostUsd:t.number().finite().nonnegative(),createdAt:m,metadata:x}).strict().superRefine((e,n)=>{e.decision==="proposed"!=(e.proposal!==null)&&n.addIssue({code:"custom",message:"proposed Refiner outcomes require a proposal; no-action outcomes cannot include one",path:["proposal"]})}),N=E.extend({contentHash:u}).strict(),G=t.enum(["applied","retained","declined","conflict","rolled_back"]),T=t.object({schemaVersion:t.literal("openpond.improvementApplyReceipt.v1"),id:c,proposal:l,beforeOverlay:R,afterOverlay:R.nullable(),decision:G,boundary:_,validationRefs:t.array(l).max(100),outcomeEvidenceRefs:t.array(A).max(1e3),rollbackOf:l.nullable(),createdAt:m,metadata:x}).strict().superRefine((e,n)=>{e.decision==="applied"!=(e.afterOverlay!==null)&&n.addIssue({code:"custom",message:"applied receipts require an after-overlay; other decisions cannot include one",path:["afterOverlay"]}),e.decision==="rolled_back"!=(e.rollbackOf!==null)&&n.addIssue({code:"custom",message:"only rollback receipts require rollbackOf",path:["rollbackOf"]})}),J=T.extend({contentHash:u}).strict();function b(e){let n=e.contentSchema.parse(e.content);return e.resultSchema.parse({...n,contentHash:H(n)})}i(b,"createHashedContract");function te(e){return b({content:e,contentSchema:O,resultSchema:M})}i(te,"createImprovementObservation");function ae(e){return b({content:e,contentSchema:W,resultSchema:z})}i(ae,"createRefinementTriggerDecision");function oe(e){return b({content:e,contentSchema:q,resultSchema:L})}i(oe,"createImprovementRouteDecision");function re(e){return b({content:e,contentSchema:E,resultSchema:N})}i(re,"createHarnessRefinerOutcome");function se(e){return b({content:e,contentSchema:T,resultSchema:J})}i(se,"createImprovementApplyReceipt");var Q=new Set(["text_instruction","memory","dependency_selection"]),X=new Set(["runtime","memory","prompt","skill"]);function Y(e){let n=p.parse(e.workspace),a=k.parse(e.proposal);if(n.ownerScope.kind!=="personal")return{eligible:!1,reason:"Team workspaces require explicit promotion authority."};if(a.requestedScope!=="personal")return{eligible:!1,reason:`${a.requestedScope} changes require explicit promotion authority.`};if(a.risk!=="low")return{eligible:!1,reason:`${a.risk} risk changes require review.`};if(!X.has(a.route))return{eligible:!1,reason:`${a.route} changes cannot auto-advance.`};if(a.edits.some(r=>r.operation==="delete"))return{eligible:!1,reason:"Delete edits require review."};let o=typeof a.metadata.generatedManifestEditId=="string"?a.metadata.generatedManifestEditId:null,s=a.edits.filter(r=>!(r.target.replaceAll("\\","/").toLowerCase()==="harness.json"&&r.id===o&&r.operation==="update"&&["prompt","skill"].includes(a.route))).map(r=>r.target.replaceAll("\\","/").toLowerCase()).filter(r=>r==="harness.json"||r==="program.json"||r.startsWith("agents/")||/\.(?:[cm]?[jt]sx?|py|sh|bash|zsh|fish|ps1|exe|dll|so|dylib)$/.test(r));if(s.length>0)return{eligible:!1,reason:`Executable or structural targets require review: ${[...new Set(s)].join(", ")}.`};let v=a.effects.filter(r=>!Q.has(r));return v.length>0?{eligible:!1,reason:`Effects require review: ${[...new Set(v)].join(", ")}.`}:{eligible:!0}}i(Y,"classifyHarnessAutoAdvanceAuthority");function de(e){let n=p.parse(e.workspace),a=k.parse(e.proposal),o=e.validations.map(y=>S.parse(y)),s={id:a.id,contentHash:a.contentHash},v=o.map(y=>({id:y.id,contentHash:y.contentHash})),r={schemaVersion:"openpond.harnessAdvanceReceipt.v1",id:e.receiptId,workspaceId:n.id,ownerScope:n.ownerScope,proposal:s,expectedWorkspaceRevision:a.expectedWorkspace.revision,observedWorkspaceRevision:n.revision,previousChannelRevision:n.currentChannel.revision,previousRelease:n.currentChannel.release,validationReceipts:v,rollbackOf:null,createdAt:e.now,metadata:{}},f=V(n,a);if(f)return{workspace:n,receipt:d({...r,nextChannelRevision:n.currentChannel.revision,nextRelease:null,decision:"conflict",reason:f})};let h=P(a,o);if(h)return{workspace:n,receipt:d({...r,nextChannelRevision:n.currentChannel.revision,nextRelease:null,decision:"retained",reason:h})};let w=Y({workspace:n,proposal:a});if(!w.eligible)return{workspace:n,receipt:d({...r,nextChannelRevision:n.currentChannel.revision,nextRelease:null,decision:"retained",reason:w.reason})};if(n.currentChannel.release?.id===e.nextRelease.id&&n.currentChannel.release.contentHash===e.nextRelease.contentHash)return{workspace:n,receipt:d({...r,nextChannelRevision:n.currentChannel.revision,nextRelease:null,decision:"retained",reason:"The candidate release is already current."})};let I=p.parse({...n,sourceRevision:e.nextSourceRevision,revision:n.revision+1,dirty:!1,currentChannel:{...n.currentChannel,release:e.nextRelease,revision:n.currentChannel.revision+1},updatedAt:e.now});return{workspace:I,receipt:d({...r,nextChannelRevision:I.currentChannel.revision,nextRelease:e.nextRelease,decision:"advanced",reason:"Validated low-risk Personal proposal advanced atomically."})}}i(de,"advanceHarnessWorkspace");function ue(e){let n=p.parse(e.workspace),a=n.revision!==e.expectedWorkspaceRevision||n.currentChannel.revision!==e.expectedChannelRevision,o={schemaVersion:"openpond.harnessAdvanceReceipt.v1",id:e.receiptId,workspaceId:n.id,ownerScope:n.ownerScope,proposal:null,expectedWorkspaceRevision:e.expectedWorkspaceRevision,observedWorkspaceRevision:n.revision,previousChannelRevision:n.currentChannel.revision,previousRelease:n.currentChannel.release,validationReceipts:[],createdAt:e.now,metadata:{}};if(a)return{workspace:n,receipt:d({...o,nextChannelRevision:n.currentChannel.revision,nextRelease:null,decision:"conflict",reason:"Workspace or current-channel revision changed before rollback.",rollbackOf:null})};let s=p.parse({...n,sourceRevision:e.targetSourceRevision,revision:n.revision+1,dirty:!1,currentChannel:{...n.currentChannel,release:e.targetRelease,revision:n.currentChannel.revision+1},updatedAt:e.now});return{workspace:s,receipt:d({...o,nextChannelRevision:s.currentChannel.revision,nextRelease:e.targetRelease,decision:"rolled_back",reason:"Current channel rolled back atomically to an immutable release.",rollbackOf:e.rollbackOf})}}i(ue,"rollbackHarnessWorkspace");function me(e){let n=p.parse(e.workspace),a=k.parse(e.proposal),o=e.validations.map(h=>S.parse(h)),s={schemaVersion:"openpond.harnessAdvanceReceipt.v1",id:e.receiptId,workspaceId:n.id,ownerScope:n.ownerScope,proposal:{id:a.id,contentHash:a.contentHash},expectedWorkspaceRevision:a.expectedWorkspace.revision,observedWorkspaceRevision:n.revision,previousChannelRevision:n.currentChannel.revision,previousRelease:n.currentChannel.release,validationReceipts:o.map(h=>({id:h.id,contentHash:h.contentHash})),rollbackOf:null,createdAt:e.now,metadata:{authority:"human_review",reviewer:e.reviewer}},v=V(n,a);if(v)return{workspace:n,receipt:d({...s,nextChannelRevision:n.currentChannel.revision,nextRelease:null,decision:"conflict",reason:v})};let r=P(a,o);if(r)return{workspace:n,receipt:d({...s,nextChannelRevision:n.currentChannel.revision,nextRelease:null,decision:"retained",reason:r})};let f=p.parse({...n,sourceRevision:e.nextSourceRevision,revision:n.revision+1,dirty:!1,currentChannel:{...n.currentChannel,release:e.nextRelease,revision:n.currentChannel.revision+1},updatedAt:e.now});return{workspace:f,receipt:d({...s,nextChannelRevision:f.currentChannel.revision,nextRelease:e.nextRelease,decision:"advanced",reason:`Validated proposal approved by ${e.reviewer} and advanced atomically.`})}}i(me,"advanceReviewedHarnessWorkspace");function V(e,n){if(n.expectedWorkspace.workspaceId!==e.id)return"Proposal targets a different Harness workspace.";if(n.expectedWorkspace.revision!==e.revision)return"Harness workspace revision changed before advancement.";if(n.expectedWorkspace.sourceRevision!==e.sourceRevision)return"Harness source revision changed before advancement.";if(n.expectedWorkspace.channelRevision!==e.currentChannel.revision)return"Harness current-channel revision changed before advancement.";let a=e.currentChannel.release;return a===null||a.id!==n.baseHarnessRelease.id||a.contentHash!==n.baseHarnessRelease.contentHash?"Proposal base Harness release is not current.":null}i(V,"workspaceConflictReason");function P(e,n){let a=new Map;for(let o of n){if(o.proposal.id!==e.id||o.proposal.contentHash!==e.contentHash)return`Validation ${o.id} is bound to a different proposal.`;a.set(o.validationId,o)}for(let o of e.validationPlan){if(!o.required)continue;let s=a.get(o.id);if(!s)return`Required validation ${o.id} is missing.`;if(s.kind!==o.kind)return`Validation ${o.id} has kind ${s.kind}; expected ${o.kind}.`;if(s.status!=="passed")return`Required validation ${o.id} did not pass (${s.status}).`}return null}i(P,"failedValidationReason");export{M as a,z as b,L as c,N as d,J as e,te as f,ae as g,oe as h,re as i,se as j,Y as k,de as l,ue as m,me as n};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a as o}from"./chunk-FTQLQJQV.js";import e from"node:os";import t from"node:path";var i="OpenPond Projects";function s(r){return r==="~"?e.homedir():r.startsWith("~/")||r.startsWith("~\\")?t.join(e.homedir(),r.slice(2)):r}o(s,"expandHomeDirectory");function c(){let r=process.env.OPENPOND_APP_DOCUMENTS_DIR?.trim()||t.join(e.homedir(),"Documents");return t.join(r,i)}o(c,"defaultNewProjectDirectory");function f(r){let n=r?.trim();return n?t.resolve(s(n)):c()}o(f,"normalizeProjectDirectory");export{f as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{g as E,m as g,n as j}from"./chunk-QNG27G3T.js";import{k as P}from"./chunk-N4FFQPLR.js";import{e as A,f as x,g as D,l as I}from"./chunk-GJ2ZJFDD.js";import{b as W}from"./chunk-L3KS6MOV.js";import{m as $}from"./chunk-KGNCKIFP.js";import{a as v}from"./chunk-FTQLQJQV.js";import{randomUUID as H}from"node:crypto";import{promises as p}from"node:fs";import{stripTypeScriptTypes as M}from"node:module";import m from"node:path";async function Q(e){let r=A.parse(e.overlay),t=x.parse(e.proposal),o=e.validations.map(h=>D.parse(h));if((t.route==="agent"?t.edits.filter(h=>h.target!=="harness.json"&&h.operation!=="delete"):[]).length>0){let h=t.validationPlan.find(n=>n.kind==="component_activation"&&n.required);if(!h)throw new Error("Desktop Work Agent proposals require component-activation validation before review.");if(o.find(n=>n.validationId===h.id)?.status==="passed")throw new Error("Desktop Work cannot accept a passed Agent activation receipt until an Agent source executor exists.")}if(t.overlay.id!==r.id||t.overlay.revision!==r.revision||t.overlay.contentHash!==r.contentHash)throw new Error("Refiner proposal is not bound to the supplied run overlay.");if(r.status!=="frozen")throw new Error("Only a frozen run overlay can advance a Harness workspace.");let i=await e.store.getHarnessWorkspace(t.expectedWorkspace.workspaceId);if(!i)throw new Error(`Harness workspace ${t.expectedWorkspace.workspaceId} does not exist.`);if(i.location!==e.store.harnessStoragePlacement)throw new Error("Refiner workspace does not match the admitted storage placement.");let s=E(e.storeDir,i.id),l=await g({workspaceId:i.id,sourceDir:s.source});if(l.sourceRevision!==i.sourceRevision)throw new Error(`Harness source is ${l.sourceRevision}; workspace expects ${i.sourceRevision}. Record or revert the source change before refinement.`);let w=m.join(s.root,`.source-candidate-${H()}`);await p.cp(s.source,w,{recursive:!0,force:!1,errorOnExist:!0,verbatimSymlinks:!1});try{await V(w,t);let h=await g({workspaceId:i.id,sourceDir:w}),f=(e.now??(()=>new Date().toISOString()))(),n=await j({storeDir:e.storeDir,workspaceId:i.id,compiled:h,createdAt:f});await e.store.saveHarnessReleaseRecord(n),await e.store.saveHarnessImprovementArtifact(i.id,"run_overlay",r),await e.store.saveHarnessImprovementArtifact(i.id,"proposal",t);for(let a of o)await e.store.saveHarnessImprovementArtifact(i.id,"targeted_validation",a);if(!P({workspace:i,proposal:t}).eligible&&!e.reviewAuthority)return e.store.advanceHarnessWorkspaceAtomically({receiptId:e.receiptId,workspaceId:i.id,proposal:t,validations:o,nextRelease:{id:n.harnessRelease.id,contentHash:n.harnessRelease.contentHash},nextSourceRevision:n.sourceRevision,now:f});let u=m.join(s.root,`.source-backup-${H()}`),c=m.join(s.root,"source-swap.json");await _(c,{schemaVersion:"openpond.localHarnessSourceSwap.v1",workspaceId:i.id,expectedWorkspaceRevision:i.revision,previousSourceRevision:i.sourceRevision,nextSourceRevision:n.sourceRevision,backupSource:u,candidateSource:w,createdAt:f}),await p.rename(s.source,u),await p.rename(w,s.source);try{let a=e.reviewAuthority?await e.store.advanceReviewedHarnessWorkspaceAtomically({receiptId:e.receiptId,workspaceId:i.id,proposal:t,validations:o,nextRelease:{id:n.harnessRelease.id,contentHash:n.harnessRelease.contentHash},nextSourceRevision:n.sourceRevision,reviewer:e.reviewAuthority.reviewer,now:f}):await e.store.advanceHarnessWorkspaceAtomically({receiptId:e.receiptId,workspaceId:i.id,proposal:t,validations:o,nextRelease:{id:n.harnessRelease.id,contentHash:n.harnessRelease.contentHash},nextSourceRevision:n.sourceRevision,now:f});return a.receipt.decision!=="advanced"?await b(s.source,u):await p.rm(u,{recursive:!0,force:!0}),await p.rm(c,{force:!0}),a}catch(a){throw await b(s.source,u).catch(()=>{}),await p.rm(c,{force:!0}).catch(()=>{}),a}}finally{await p.rm(w,{recursive:!0,force:!0}).catch(()=>{})}}v(Q,"applyLocalHarnessRefinerProposal");async function X(e){let r=await e.store.getHarnessWorkspace(e.workspaceId);if(!r||r.location!==e.store.harnessStoragePlacement)throw new Error(`Local Harness workspace ${e.workspaceId} does not exist.`);if(r.currentChannel.release?.id!==e.rollbackOf.id||r.currentChannel.release.contentHash!==e.rollbackOf.contentHash)throw new Error("Harness rollback source is no longer the current release.");let t=await e.store.getHarnessReleaseRecord(e.targetRelease.contentHash);if(!t||t.workspaceId!==r.id||t.harnessRelease.id!==e.targetRelease.id)throw new Error("Harness rollback target is unavailable in this workspace.");let o=E(e.storeDir,r.id);if((await g({workspaceId:r.id,sourceDir:o.source})).sourceRevision!==r.sourceRevision)throw new Error("Harness source changed before rollback.");let i=m.join(o.root,`.source-rollback-${H()}`);await p.cp(m.join(t.bundlePath,"source"),i,{recursive:!0,force:!1,errorOnExist:!0,verbatimSymlinks:!1});try{if((await g({workspaceId:r.id,sourceDir:i})).sourceRevision!==t.sourceRevision)throw new Error("Harness rollback bundle does not reproduce its registered source revision.");let l=(e.now??(()=>new Date().toISOString()))(),w=m.join(o.root,`.source-backup-${H()}`),h=m.join(o.root,"source-swap.json");await _(h,{schemaVersion:"openpond.localHarnessSourceSwap.v1",workspaceId:r.id,expectedWorkspaceRevision:r.revision,previousSourceRevision:r.sourceRevision,nextSourceRevision:t.sourceRevision,backupSource:w,candidateSource:i,createdAt:l}),await p.rename(o.source,w),await p.rename(i,o.source);try{let f=await e.store.rollbackHarnessWorkspaceAtomically({receiptId:e.receiptId,workspaceId:r.id,expectedWorkspaceRevision:r.revision,expectedChannelRevision:r.currentChannel.revision,targetRelease:e.targetRelease,targetSourceRevision:t.sourceRevision,rollbackOf:e.rollbackOf,now:l});return f.receipt.decision!=="rolled_back"?await b(o.source,w):await p.rm(w,{recursive:!0,force:!0}),await p.rm(h,{force:!0}),f}catch(f){throw await b(o.source,w).catch(()=>{}),await p.rm(h,{force:!0}).catch(()=>{}),f}}finally{await p.rm(i,{recursive:!0,force:!0}).catch(()=>{})}}v(X,"rollbackLocalHarnessWorkspaceRelease");async function Y(e){let r=x.parse(e.proposal);if(r.expectedWorkspace.workspaceId!==e.workspace.id)throw new Error("Refiner proposal targets a different Harness workspace.");if(r.route==="memory")return q({proposal:r,now:e.now});let t=E(e.storeDir,e.workspace.id),o=await g({workspaceId:e.workspace.id,sourceDir:t.source});if(o.sourceRevision!==r.expectedWorkspace.sourceRevision)throw new Error("Refiner proposal source revision no longer matches the Local Harness workspace.");let d=m.join(t.root,`.validation-candidate-${H()}`);await p.cp(t.source,d,{recursive:!0,force:!1,errorOnExist:!0,verbatimSymlinks:!1});let i=(e.now??(()=>new Date().toISOString()))();try{await V(d,r);let s=await g({workspaceId:e.workspace.id,sourceDir:d}),l=new Map(s.manifest.files.map(n=>[n.path,n])),w=new Map(r.edits.map(n=>[n.target,n])),h=O(o),f=O(s);return Promise.all(r.validationPlan.map(async n=>{let y="passed",u="The candidate Harness source compiles and preserves its manifest contract.";try{if(n.kind==="observed_recovery"){let c=r.evidence.filter(a=>a.kind==="recovery");if(c.length===0)throw new Error("Observed-recovery validation requires recorded recovery evidence.");u=`Validated ${c.length} immutable recovery evidence reference(s) before candidate advancement.`}else if(n.kind==="prompt"){let c=r.edits.filter(a=>a.route==="prompt"&&a.target!=="harness.json");if(c.length===0)throw new Error("Prompt validation requires an instruction-file edit.");for(let a of c){let k=l.get(a.target);if(a.operation==="delete"){if(k)throw new Error(`Deleted instruction ${a.target} remains declared.`)}else if(k?.kind!=="instruction")throw new Error(`Instruction ${a.target} is not declared in the candidate Harness.`);if(a.content!==null&&/\b(?:api[_-]?key|access[_-]?token|password|secret)\s*[:=]/i.test(a.content))throw new Error(`Instruction ${a.target} appears to contain credential material.`)}u=`Validated ${c.length} textual instruction edit(s) and compiled candidate ${s.harnessRelease.id}.`}else if(n.kind==="skill"){let c=r.edits.filter(a=>a.route==="skill"&&a.target!=="harness.json");if(c.length===0)throw new Error("Skill validation requires a declared Skill-file edit.");for(let a of c){let k=l.get(a.target);if(a.operation==="delete"){if(k)throw new Error(`Deleted Skill ${a.target} remains declared.`);continue}if(k?.kind!=="skill")throw new Error(`Skill ${a.target} is not declared in the candidate Harness.`);let S=w.get(a.target)?.content;if(!S)throw new Error(`Skill edit ${a.target} has no content.`);let R=W(S);if(!R.name||!R.description||R.messages.length>0)throw new Error(`Skill ${a.target} is invalid: ${R.messages.join(" ")}`)}u=`Validated ${c.length} Skill edit(s), Skill frontmatter, and compiled candidate ${s.harnessRelease.id}.`}else if(n.kind==="dependency"){let c=s.manifest.files.find(a=>a.kind==="dependency_lock");if(!c)throw new Error("Candidate Harness has no dependency lock.");JSON.parse(await p.readFile(T(d,c.path),"utf8")),u=`Validated dependency lock ${c.path} and compiled candidate ${s.harnessRelease.id}.`}else if(n.kind==="schema")x.parse(r),u=`Validated proposal, manifest, and candidate release schemas for ${s.harnessRelease.id}.`;else if(n.kind==="package"){let c=r.edits.filter(a=>a.route==="agent"&&a.operation!=="delete"&&a.target!=="harness.json");for(let a of c){if(!a.content)throw new Error(`Agent edit ${a.target} has no source.`);M(a.content,{mode:"transform",sourceUrl:a.target,sourceMap:!1})}u=c.length>0?`Syntax-checked ${c.length} Agent source edit(s) and compiled candidate ${s.harnessRelease.id}.`:`Compiled candidate package ${s.harnessRelease.id} and preserved the Harness source manifest contract.`}else if(n.kind==="component_activation"){let c=r.edits.filter(a=>a.target!=="harness.json");if(c.length===0)throw new Error("Component activation requires a concrete Harness component edit.");if(r.route==="agent"){if(c.filter(k=>k.operation!=="delete").length>0)throw new Error("Desktop Work does not compile or execute released Agent source; use an active instruction or standalone Skill, or add an Agent executor before release.");u=`Confirmed ${c.length} deleted Agent component(s) were inactive in Desktop Work.`}else{if(!["prompt","skill"].includes(r.route))throw new Error(`Desktop Work has no activation policy for ${r.route} proposals.`);let a=r.route==="prompt"?"instruction":"skill";for(let k of c){let S=f.components.find(R=>R.path===k.target&&R.kind===a);if(k.operation==="delete"?S:!S)throw new Error(`${a} ${k.target} is not reflected in the candidate Desktop Work runtime surface.`)}if(h.contentHash===f.contentHash)throw new Error("The candidate does not change the effective Desktop Work runtime surface.");u=`Activated ${c.length} ${a} edit(s) in the candidate Desktop Work runtime surface.`}}else n.kind==="business_formula"?(y="blocked",u="Business or financial logic is retained for review until an approved deterministic fixture supplies inputs and expected outputs."):n.kind==="targeted_evaluation"?(y="blocked",u="This sensitive change requires an explicit authority-preserving targeted Evaluation before release."):n.kind==="file_render"?(y="blocked",u="File-render validation requires an exact produced artifact reference; no artifact was attached to this Harness-source proposal."):(y="blocked",u=`Local targeted validation does not yet own ${n.kind}; it requires its dedicated validator.`)}catch(c){y="failed",u=c instanceof Error?c.message:String(c)}return I({schemaVersion:"openpond.harnessTargetedValidationReceipt.v1",id:`validation-${r.id}-${n.id}`,proposal:{id:r.id,contentHash:r.contentHash},validationId:n.id,kind:n.kind,status:y,summary:u,evidenceRefs:r.evidence,createdAt:i,metadata:{candidateHarnessRelease:{id:s.harnessRelease.id,contentHash:s.harnessRelease.contentHash},sourceRevision:s.sourceRevision,...n.kind==="component_activation"?{targetRuntime:"desktop_work",beforeEffectiveRuntimeHash:h.contentHash,afterEffectiveRuntimeHash:f.contentHash,activatedComponentRefs:f.components,inactiveAgentRefs:f.inactiveAgents}:{}}})}))}catch(s){let l=s instanceof Error?s.message:String(s);return r.validationPlan.map(w=>I({schemaVersion:"openpond.harnessTargetedValidationReceipt.v1",id:`validation-${r.id}-${w.id}`,proposal:{id:r.id,contentHash:r.contentHash},validationId:w.id,kind:w.kind,status:"failed",summary:l,evidenceRefs:r.evidence,createdAt:i,metadata:{}}))}finally{await p.rm(d,{recursive:!0,force:!0}).catch(()=>{})}}v(Y,"validateLocalHarnessRefinerProposal");function O(e){let r=[...e.agentSnapshot.instructions.map(o=>({kind:"instruction",path:o.path,contentHash:o.contentHash})),...e.agentSnapshot.skills.map(o=>({kind:"skill",path:o.path,contentHash:o.contentHash}))].sort((o,d)=>o.path.localeCompare(d.path)),t=e.agentSnapshot.agents.map(o=>({path:o.path,contentHash:o.contentHash})).sort((o,d)=>o.path.localeCompare(d.path));return{contentHash:$({schemaVersion:"openpond.desktopWorkHarnessSurface.v1",components:r}),components:r,inactiveAgents:t}}v(O,"desktopWorkRuntimeSurface");function q(e){let r=(e.now??(()=>new Date().toISOString()))(),t=e.proposal.edits.find(o=>o.route==="memory");return e.proposal.validationPlan.map(o=>{let d="passed",i="Memory candidate is bounded, scoped, and contains no obvious credential material.";try{if(o.kind==="observed_recovery"){if(!e.proposal.evidence.some(s=>s.kind==="recovery"))throw new Error("Observed-recovery validation requires recorded recovery evidence.");i="Memory proposal is grounded in immutable recovery evidence."}else if(o.kind==="memory"){if(!t||!/^memory\/[a-z0-9][a-z0-9-]{0,119}$/.test(t.target))throw new Error("Memory proposal requires one safe memory/<slug> target.");let s=e.proposal.metadata.expectedMemory;if(!s||typeof s!="object"||Array.isArray(s))throw new Error("Memory proposal requires an expected revision snapshot.");let l=s;if(l.key!==C(t.target))throw new Error("Memory proposal expected revision targets a different key.");if(l.revision!==null&&(!Number.isInteger(l.revision)||Number(l.revision)<1))throw new Error("Memory proposal expected revision is invalid.");if(l.contentHash!==null&&typeof l.contentHash!="string")throw new Error("Memory proposal expected content hash is invalid.");if(l.status!==null&&l.status!=="active"&&l.status!=="deleted")throw new Error("Memory proposal expected status is invalid.");if(l.revision===null&&(l.contentHash!==null||l.status!==null))throw new Error("New memory snapshot must not claim existing content or status.");if(l.revision!==null&&(typeof l.contentHash!="string"||l.status===null))throw new Error("Existing memory snapshot requires its content hash and status.");if(t.operation==="delete"&&l.status!=="active")throw new Error("Memory deletion requires an active expected revision.");if(t.operation!=="delete"){if(!t.content?.trim()||t.content.length>24e3)throw new Error("Memory content must contain 1-24,000 characters.");if(/\b(?:api[_-]?key|access[_-]?token|password|secret)\s*[:=]/i.test(t.content))throw new Error("Memory content appears to contain credential material.")}}else d="blocked",i=`Memory validation cannot satisfy ${o.kind}.`}catch(s){d="failed",i=s instanceof Error?s.message:String(s)}return I({schemaVersion:"openpond.harnessTargetedValidationReceipt.v1",id:`validation-${e.proposal.id}-${o.id}`,proposal:{id:e.proposal.id,contentHash:e.proposal.contentHash},validationId:o.id,kind:o.kind,status:d,summary:i,evidenceRefs:e.proposal.evidence,createdAt:r,metadata:{externalState:"harness_memory"}})})}v(q,"validateMemoryProposal");function C(e){let r=e.replaceAll("\\","/"),t=/^memory\/([a-z0-9][a-z0-9-]{0,119})$/.exec(r);if(!t)throw new Error(`Invalid Harness memory target: ${e}.`);return t[1]}v(C,"memoryKeyFromTarget");async function Z(e){let r=await e.store.getHarnessWorkspace(e.workspaceId);if(!r)throw new Error(`Harness workspace ${e.workspaceId} does not exist.`);let t=E(e.storeDir,r.id),o=m.join(t.root,"source-swap.json"),d=await p.readFile(o,"utf8").then(JSON.parse).catch(l=>{if(l.code==="ENOENT")return null;throw l});if(!d)return"none";let i=await g({workspaceId:r.id,sourceDir:t.source});if(r.sourceRevision===d.nextSourceRevision&&i.sourceRevision===d.nextSourceRevision)return await p.rm(d.backupSource,{recursive:!0,force:!0}),await p.rm(o,{force:!0}),"completed";let s=await g({workspaceId:r.id,sourceDir:d.backupSource});if(r.sourceRevision===d.previousSourceRevision&&s.sourceRevision===d.previousSourceRevision)return await b(t.source,d.backupSource),await p.rm(o,{force:!0}),"restored";throw new Error("Harness source-swap recovery cannot reconcile filesystem and workspace revisions.")}v(Z,"recoverLocalHarnessSourceSwap");async function V(e,r){for(let t of r.edits){let o=T(e,t.target);if(t.operation==="delete"){await p.rm(o,{force:!1});continue}if(t.content===null)throw new Error(`Refiner edit ${t.id} has no content.`);if(t.operation==="create")await p.mkdir(m.dirname(o),{recursive:!0}),await p.writeFile(o,t.content,{flag:"wx"});else{let d=await p.lstat(o);if(!d.isFile()||d.isSymbolicLink())throw new Error(`Refiner update target must be a regular file: ${t.target}`);await p.writeFile(o,t.content,{flag:"w"})}}}v(V,"applyOverlayEdits");function T(e,r){let t=m.resolve(e),o=m.resolve(t,...r.replaceAll("\\","/").split("/")),d=m.relative(t,o);if(!d||d.startsWith("..")||m.isAbsolute(d))throw new Error(`Refiner edit target escapes the Harness source: ${r}`);return o}v(T,"containedPath");async function _(e,r){let t=`${e}.${H()}.tmp`;await p.writeFile(t,`${JSON.stringify(r,null,2)}
|
|
3
|
+
`,{flag:"wx"}),await p.rename(t,e)}v(_,"writeSwapJournal");async function b(e,r){await p.rm(e,{recursive:!0,force:!0}),await p.rename(r,e)}v(b,"restoreSource");export{Q as a,X as b,Y as c,Z as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{o as r}from"./chunk-WJ43MJ3F.js";import{v as o}from"./chunk-Y4OWBBDD.js";import{B as t}from"./chunk-ACYFMLWG.js";import{f as a}from"./chunk-KGNCKIFP.js";import{b as e}from"./chunk-ES2ISFJC.js";var s=e.object({profileRef:r,manifest:o,metric:t,gradeRefs:e.array(a),receiptRefs:e.array(a),passRate:e.number().min(0).max(1),passed:e.boolean(),completedAt:e.string().datetime(),contentHash:e.string().regex(/^[a-f0-9]{64}$/)}).strict();export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{k as ae}from"./chunk-7E6T7GP5.js";import{g as Q,h as ee,o as te}from"./chunk-XDQMGUWL.js";import{Ib as W,Kb as X,Lb as Z,_ as b,aa as h,ca as Y,la as A,ma as U}from"./chunk-25MBPJVY.js";import{V as D,W as G,Xb as J,f as z,k as F,l as j,la as N,ma as q,ta as K,ua as V}from"./chunk-Y4OWBBDD.js";import{ba as L,d as $}from"./chunk-VYLGI3IH.js";import{e as M,i as B}from"./chunk-TVQAPBLZ.js";import{h as I,k as _,m as k}from"./chunk-KGNCKIFP.js";import{a as d}from"./chunk-FTQLQJQV.js";import{constants as E}from"node:fs";import{lstat as he,open as Re,readdir as we}from"node:fs/promises";import O from"node:path";function Ie(e){let t=Z(e.taskset),{agentSnapshot:a,harnessRelease:s}=e.releasedHarness?{agentSnapshot:M.parse(e.releasedHarness.agentSnapshot),harnessRelease:B.parse(e.releasedHarness.harnessRelease)}:fe(e.taskset,e.profile);if(s.agentSnapshot.id!==a.id||s.agentSnapshot.contentHash!==a.contentHash)throw new Error("Released Harness does not bind the supplied Agent snapshot.");let l=X(e.taskset),n=e.taskset.tasks.length?e.taskset.tasks:e.selectedTask?[e.selectedTask]:[];if(!n.length)throw new Error("A portable Taskset release requires at least one resolved task.");let{environmentRelease:r,verifierSetRelease:i,tasksetRelease:o}=W({taskset:e.taskset,selectedTasks:n,adapterId:e.adapterId??v(e.taskset),admittedTasksetRelease:e.tasksetRelease,rewardExecution:e.rewardExecution}),f=e.now??(()=>new Date().toISOString()),m=F({schemaVersion:"openpond.runManifest.v1",id:`run-manifest-${k([s.contentHash,o.contentHash,e.model]).slice(0,24)}`,harnessRelease:{id:s.id,contentHash:s.contentHash},tasksetRelease:{id:o.id,contentHash:o.contentHash},model:{provider:e.model.providerId,model:e.model.modelId,revision:null,artifactHash:null,tokenizerRevision:null,chatTemplateHash:null},runtimeTarget:{adapterId:e.adapterId??v(e.taskset),placement:"local",runtimeVersion:"desktop-v1",capabilityReceipt:k({environment:l,tools:t,capabilities:e.taskset.capabilities})},limits:{maxTurns:128,timeoutMs:e.taskset.environment.defaultTimeoutMs,maxOutputBytes:25e7,maximumSpendUsd:null},approval:null,createdAt:f(),metadata:{sourceTasksetId:e.taskset.id,sourceTasksetRevision:e.taskset.revision,reasoningEffort:e.reasoningEffort??null}});return{agentSnapshot:a,harnessRelease:s,environmentRelease:r,verifierSetRelease:i,tasksetRelease:o,runManifest:m}}d(Ie,"compileDesktopHarnessContext");function fe(e,t){let a=e.profileRelease?{id:e.profileRelease.id,contentHash:y(e.profileRelease.contentHash)}:t?.git?.head?{id:`source-${R(t.git.head)}`,contentHash:y(t.git.head)}:null;return ae({sourceRelease:a,profileHead:t?.git?.head??null,skills:ge(t),agents:ke(t)})}d(fe,"compileTemporaryProfileHarness");function me(e){let t=e.artifacts.map(S),a=e.artifacts.find(n=>n.kind==="environment_state")??e.artifacts.find(n=>n.kind==="runtime_trace")??e.artifacts.find(n=>n.kind==="raw_model_response"),s=re(e.attempt,e.grade),l=e.grade.components.map(n=>({id:`grader-${R(n.graderId)}-${e.grade.id}`,contentHash:k(n),mediaType:"application/vnd.openpond.grader-evidence+json",sizeBytes:Buffer.byteLength(_(n))}));return z.parse(j({schemaVersion:"openpond.attemptReceipt.v1",id:`receipt-${k([e.manifest.contentHash,e.attempt.id,e.grade.id]).slice(0,24)}`,runManifest:{id:e.manifest.id,contentHash:e.manifest.contentHash},taskId:e.attempt.taskId,seed:String(e.attempt.seed),terminal:!["infrastructure_failure","timeout","cancelled"].includes(s??""),failureClass:s,outputHash:e.attempt.infrastructureError?null:k(e.attempt.output),traceHash:a?y(a.sha256):k({attemptId:e.attempt.id,output:e.attempt.output,runtimeEventRefs:e.attempt.runtimeEventRefs,artifactRefs:e.attempt.artifactRefs,metadata:e.attempt.metadata}),artifactRefs:t,graderEvidenceRefs:l,startedAt:e.attempt.startedAt,completedAt:e.attempt.completedAt,latencyMs:e.attempt.latencyMs,costUsd:e.attempt.costUsd,legacyAttemptRef:e.attempt.id,metadata:{legacyGradeRef:e.grade.id,rewardEligible:e.grade.rewardEligible,score:e.grade.score,passed:e.grade.passed,usage:e.attempt.metadata.usage??[]}}))}d(me,"projectDesktopAttemptReceipt");function _e(e){let t=me({manifest:e.context.runManifest,attempt:e.attempt,grade:e.grade,artifacts:e.artifacts}),a=e.context.tasksetRelease.tasks.find(c=>c.id===e.attempt.taskId);if(!a)throw new Error(`Task ${e.attempt.taskId} is absent from the admitted Taskset Release.`);let s=a.requiredOutputs??[],l=e.artifacts.filter(c=>c.kind==="output_artifact").map(c=>({path:typeof c.metadata.requiredOutputPath=="string"?c.metadata.requiredOutputPath:c.path,artifact:S(c),detectedMediaType:c.mediaType??null,status:"collected",parseStatus:se(c.metadata.parseStatus),schemaStatus:se(c.metadata.schemaStatus),evidenceRefs:[S(c)],metadata:{sourceArtifactId:c.id}})),n=K({id:`artifact-manifest-${t.id}`,attemptRef:{id:t.id,contentHash:t.contentHash},requiredOutputs:s,collectedArtifacts:l,createdAt:e.attempt.completedAt,metadata:{legacyAttemptRef:e.attempt.id}}),r=e.grade.components.map((c,C)=>pe({component:c,grader:e.context.verifierSetRelease.graders.find(w=>w.id===c.graderId),evidenceRef:t.graderEvidenceRefs[C]??null,gradeScored:e.grade.score!==null,boundResult:e.grade.rewardComposition?.results.find(w=>w.graderId===c.graderId)})),i=V({requiredOutputs:s,manifest:n}),o=ue(e.attempt,e.grade),f=i.some(c=>c.status==="unscorable"&&c.failureOwner==="collector"),m=i.some(c=>c.status==="scored"&&!c.passed),p=o.outcomeClass==="completed"&&f?{outcomeClass:"collector_failure",failureOwner:"collector"}:o.outcomeClass==="completed"&&m?{outcomeClass:"incomplete_output",failureOwner:"policy"}:o,u=q({id:`reward-${k([t.contentHash,e.context.verifierSetRelease.contentHash,n.contentHash,e.grade.id]).slice(0,24)}`,attemptRef:{id:t.id,contentHash:t.contentHash},verifierSet:e.context.verifierSetRelease,artifactManifest:n,...p,components:[...r,...i],createdAt:e.grade.createdAt,metadata:{legacyGradeRef:e.grade.id,legacyAttemptRef:e.attempt.id,...e.grade.rewardComposition?{rewardComposition:e.grade.rewardComposition}:{}}});return{attemptReceipt:t,artifactManifest:n,rewardReceipt:u}}d(_e,"projectDesktopCanonicalReceipts");function Me(e){let t=e.artifacts.find(n=>n.kind==="runtime_trace")??e.artifacts.find(n=>n.kind==="raw_model_response"),a=t?S(t):{id:`trace-${e.canonical.attemptReceipt.id}`,contentHash:e.canonical.attemptReceipt.traceHash,mediaType:"application/vnd.openpond.attempt-trace+json",sizeBytes:null},s=e.canonical.rewardReceipt.outcomeClass==="task_deadline"||e.canonical.rewardReceipt.outcomeClass==="infrastructure_timeout",l=e.canonical.rewardReceipt.outcomeClass==="cancelled";return J({id:`rollout-${k([e.canonical.attemptReceipt.contentHash,e.canonical.rewardReceipt.contentHash,a.contentHash]).slice(0,24)}`,attemptReceipt:e.canonical.attemptReceipt,rewardReceipt:e.canonical.rewardReceipt,artifactManifestRef:{id:e.canonical.artifactManifest.id,contentHash:e.canonical.artifactManifest.contentHash},tasksetRelease:{id:e.context.tasksetRelease.id,contentHash:e.context.tasksetRelease.contentHash},environmentRelease:{id:e.context.environmentRelease.id,contentHash:e.context.environmentRelease.contentHash},harnessRelease:{id:e.context.harnessRelease.id,contentHash:e.context.harnessRelease.contentHash},taskId:e.attempt.taskId,split:e.attempt.split,model:e.context.runManifest.model,seed:String(e.attempt.seed),traceRef:a,optimizerSample:e.optimizerSample??null,environmentExecutions:[{id:`environment-execution-${e.attempt.id}`,environmentRelease:{id:e.context.environmentRelease.id,contentHash:e.context.environmentRelease.contentHash},status:l?"cancelled":s?"timed_out":e.canonical.rewardReceipt.status==="scored"?"completed":"failed",startedAt:e.attempt.startedAt,completedAt:e.attempt.completedAt,traceRefs:[a],metadata:{legacyAttemptRef:e.attempt.id,runtimeEventCount:e.attempt.runtimeEventRefs.length}}],startedAt:e.attempt.startedAt,completedAt:e.attempt.completedAt,metadata:{source:"openpond.desktop-local-runtime",optimizerSamplePresent:!!e.optimizerSample}})}d(Me,"projectDesktopCanonicalRollout");function pe(e){if(!e.grader)throw new Error(`Grade component ${e.component.graderId} has no admitted Verifier definition.`);let t=(e.boundResult?e.boundResult.status==="scored":e.gradeScored)?"scored":"unscorable",a=t==="scored"&&e.component.rewardEligible,s=e.evidenceRef?[e.evidenceRef]:[];return{verifierId:e.component.graderId,verifierVersion:e.component.graderVersion,status:t,rawScore:t==="scored"?e.boundResult?.rawScore??e.component.score:null,normalizedScore:t==="scored"?e.boundResult?.normalizedScore??e.component.score:null,weight:e.grader.weight,passed:e.component.passed,hardGate:e.component.hardGate,rewardEligible:a,rewardContribution:a?e.component.score:null,failureOwner:e.component.passed?null:t==="scored"?"policy":"verifier",feedback:e.component.feedback?[e.component.feedback]:[],visibleEvidenceRefs:e.grader.privileged?[]:s,privilegedEvidenceRefs:e.grader.privileged?s:[],metadata:{judge:e.component.judge??null,calibrationStatus:e.component.calibrationStatus,legacyEvidenceRefs:e.component.evidenceRefs}}}d(pe,"portableRewardComponent");function ue(e,t){let a=G.safeParse(e.metadata.outcomeClass);if(a.success){let l=e.metadata.failureOwner===null?null:D.safeParse(e.metadata.failureOwner);if(l!==null&&!l.success)throw new Error("Attempt has an invalid explicit failure owner.");return{outcomeClass:a.data,failureOwner:l===null?null:l.data}}let s=re(e,t);return s?N({failureClass:s,timeoutKind:e.metadata.timeoutKind==="task_deadline"?"task_deadline":"infrastructure_timeout"}):t.score===null?{outcomeClass:"verifier_failure",failureOwner:"verifier"}:t.passed?{outcomeClass:"completed",failureOwner:null}:{outcomeClass:"policy_failure",failureOwner:"policy"}}d(ue,"canonicalOutcome");function se(e){return e==="passed"||e==="failed"?e:"not_requested"}d(se,"artifactValidationStatus");function ge(e){return(e?.skills??[]).filter(t=>t.enabled).map(t=>({id:`skill-${R(t.name)}`,path:`skills/${R(t.name)}/SKILL.md`,contentHash:y(t.sourceHash),sizeBytes:Math.max(0,t.charCount),mediaType:"text/markdown",visibility:"policy"}))}d(ge,"portableSkills");function ke(e){let t=new Map;for(let a of e?.agents??[])a.enabled&&t.set(a.id,k({name:a.name,path:a.path}));return[...t].map(([a,s])=>({id:`agent-${R(a)}`,path:`agents/${R(a)}/release.json`,contentHash:y(s),sizeBytes:0,mediaType:"application/vnd.openpond.agent-release+json",visibility:"policy"}))}d(ke,"portableAgents");function v(e){let t=e.environment.metadata.runtimeAdapterId;if(typeof t=="string"&&t.trim())return t.trim();let a=e.environment.metadata.benchmark;if(a&&typeof a=="object"&&!Array.isArray(a)){let s=Reflect.get(a,"id");if(typeof s=="string"&&s.trim())return`conformance:${s.trim()}`}return e.environment.kind==="work"?"openpond:desktop-work":e.environment.kind==="chat"?"openpond:desktop-text":`openpond:${R(e.environment.entrypoint)}`}d(v,"desktopTasksetRuntimeAdapterId");function S(e){return{id:e.id,contentHash:y(e.sha256),mediaType:e.mediaType??null,sizeBytes:e.sizeBytes}}d(S,"portableArtifact");function re(e,t){if(e.infrastructureError)return"infrastructure_failure";if(t.failureClass)return t.failureClass;let a=e.metadata.failureClass;return a==="policy_failure"||a==="grader_failure"||a==="environment_failure"||a==="infrastructure_failure"||a==="timeout"||a==="cancelled"?a:null}d(re,"attemptFailureClass");function y(e){return/^[a-f0-9]{64}$/.test(e)?e:k(e)}d(y,"hash");function R(e){return e.trim().replace(/[^a-zA-Z0-9._-]+/g,"-").replace(/^-+|-+$/g,"")||"asset"}d(R,"segment");async function Ne(e,t){if(e.metadata.taskDefinition!==void 0||e.metadata.rewardBinding!==void 0)return{taskset:e,generatedFiles:[]};let a=await he(t);if(!a.isDirectory()||a.isSymbolicLink())throw new Error("Taskset source must be a regular directory.");let s=new Map,l=0;async function n(r=""){for(let i of await we(O.join(t,r),{withFileTypes:!0})){let o=O.posix.join(r,i.name);if(i.isSymbolicLink())throw new Error("Taskset files cannot contain symbolic links.");if(i.name.startsWith(".env"))throw new Error("Environment files cannot be included in a Taskset package.");if(i.isDirectory()){await n(o);continue}if(!i.isFile())throw new Error("Taskset packages require regular files.");if(Q(o))continue;if(s.size>=1e4)throw new Error("Taskset source exceeds the file inventory limit.");let f=await Re(O.join(t,o),E.O_RDONLY|E.O_NOFOLLOW|E.O_NONBLOCK);try{let m=await f.stat();if(l+=m.size,!m.isFile()||l>h*3/4)throw new Error("Taskset source exceeds the package byte limit.");let p=Buffer.alloc(m.size),u=0;for(;u<p.length;){let c=await f.read(p,u,p.length-u,u);if(!c.bytesRead)throw new Error("Taskset source changed during capture.");u+=c.bytesRead}if((await f.read(Buffer.alloc(1),0,1,u)).bytesRead)throw new Error("Taskset source changed during capture.");s.set(o,p)}finally{await f.close()}}}return d(n,"visit"),await n(),ee(e,s,v(e))}d(Ne,"prepareAuthoredTasksetFiles");import{constants as H}from"node:fs";import{link as ye,lstat as Te,mkdir as x,mkdtemp as oe,open as Ae,readFile as ve,readdir as Se,rename as be,rm as ne,writeFile as ie}from"node:fs/promises";import g from"node:path";async function et(e,t){let a=t.metadata.importedPackageHash;if(a===void 0)return;if(typeof a!="string"||!e)throw new Error("Imported batch requires its package storage directory.");let s=await ce(e,a);if(!s.learningResources||s.taskset.id!==t.id||s.taskset.revision!==t.revision||k(L(s.taskset))!==k(t.metadata.learning))throw new Error("Imported batch differs from its pinned package.");return s}d(et,"readImportedLearningTasksetPackage");async function Ee(e,t){let a=A(t),s=g.join(e,"training","portable-packages");await x(s,{recursive:!0});let l=g.join(s,`${a.contentHash}.json`),n=await oe(g.join(s,".package-"));try{let r=g.join(n,"package.json");await ie(r,JSON.stringify(a),{flag:"wx",mode:384});try{await ye(r,l)}catch(i){if(i.code!=="EEXIST")throw i;await ce(e,a.contentHash)}}finally{await ne(n,{recursive:!0,force:!0})}}d(Ee,"cacheTasksetPackage");async function ce(e,t){if(!/^[a-f0-9]{64}$/.test(t))throw new Error("Invalid Taskset package cache identity.");let a=g.join(e,"training","portable-packages",`${t}.json`),s=await Ae(a,H.O_RDONLY|H.O_NOFOLLOW|H.O_NONBLOCK);try{let l=await s.stat();if(!l.isFile()||l.size>h)throw new Error("Taskset package cache must be a bounded regular file.");let n=Buffer.alloc(l.size),r=0;for(;r<n.length;){let o=await s.read(n,r,n.length-r,r);if(!o.bytesRead)throw new Error("Taskset package cache changed during read.");r+=o.bytesRead}if((await s.read(Buffer.alloc(1),0,1,r)).bytesRead)throw new Error("Taskset package cache changed during read.");let i=A(JSON.parse(n.toString("utf8")));if(i.contentHash!==t)throw new Error("Cached Taskset package differs from its saved receipt.");return i}finally{await s.close()}}d(ce,"readCachedTasksetPackage");async function tt(e){let t=A(e.package),a=te(e.taskset.profileId,t.contentHash);if(e.taskset.environment.metadata.runtimeSourceTasksetId!==a)throw new Error("Imported Taskset directory differs from its package identity.");let s=new Map,l=d((o,f)=>{if(g.isAbsolute(o)||o.includes("\\")||o.split("/").some(p=>!p||p==="."||p===".."))throw new Error("Taskset package file requires a safe relative path.");let m=s.get(o);if(m&&!Buffer.from(m).equals(Buffer.from(f)))throw new Error(`Taskset package files collide at ${o}.`);s.set(o,f)},"add");for(let o of t.files)l(o.asset.path,Y(o));for(let o of e.generatedFiles)l(o.path,Buffer.from(o.content,"utf8"));l("taskset.json",Buffer.from(JSON.stringify(e.taskset),"utf8"));let n=g.join(e.home,"training","tasksets");await x(n,{recursive:!0});let r=await oe(g.join(n,".package-import-")),i=g.join(n,a);try{for(let[o,f]of s)await x(g.dirname(g.join(r,o)),{recursive:!0}),await ie(g.join(r,o),f,{flag:"wx",mode:384});try{await be(r,i)}catch(o){if(!["EEXIST","ENOTEMPTY"].includes(o.code??""))throw o;let f=await Te(i);if(!f.isDirectory()||f.isSymbolicLink())throw new Error("Imported Taskset destination must be a regular directory.");let m=await le(i);if(JSON.stringify(m.sort())!==JSON.stringify([...s.keys()].sort()))throw new Error("Imported Taskset file inventory changed.");for(let[p,u]of s)if(!(await ve(g.join(i,p))).equals(Buffer.from(u)))throw new Error("Imported Taskset files differ from the pinned package.")}await Ee(e.home,t)}finally{await ne(r,{recursive:!0,force:!0})}}d(tt,"materializeImportedTasksetPackage");async function le(e,t=""){let a=[];for(let s of await Se(g.join(e,t),{withFileTypes:!0})){let l=g.posix.join(t,s.name);if(s.isSymbolicLink())throw new Error("Imported Taskset directories cannot contain symbolic links.");if(s.isDirectory())a.push(...await le(e,l));else if(s.isFile())a.push(l);else throw new Error("Imported Taskset packages require regular files.")}return a}d(le,"regularFiles");import{constants as P}from"node:fs";import{open as Oe,realpath as de}from"node:fs/promises";import T from"node:path";function dt(e,t){return t?new Set:new Set([...(e.modelResources?.assets??[]).map(a=>a.asset.id),...(e.learningResources?.assets??[]).map(a=>a.asset.id),...e.learningResources?b(e.learningResources).map(a=>a.asset.id):[]])}d(dt,"tasksetPackageInlineAssetIds");async function ft(e){let t=e.sources.length?await de(e.root):T.resolve(e.root),a=[],s=new Set,l=0,n=d((r,i)=>{if(s.has(r.id))throw new Error(`Duplicate local Taskset asset: ${r.id}.`);if(s.add(r.id),l+=4*Math.ceil(i.byteLength/3),l>h)throw new Error("Local Taskset files exceed the package envelope.");a.push({asset:r,base64:Buffer.from(i).toString("base64")})},"append");for(let r of e.sources){let i=I.parse(r.asset);if(!r.sourcePath||T.isAbsolute(r.sourcePath))throw new Error(`Taskset asset ${i.id} requires a relative source path.`);let o=T.resolve(t,r.sourcePath);if(!o.startsWith(`${t}${T.sep}`))throw new Error(`Taskset asset ${i.id} escapes its local package.`);if(!(await de(o)).startsWith(`${t}${T.sep}`))throw new Error(`Taskset asset ${i.id} escapes its local package.`);let m=await Oe(o,P.O_RDONLY|P.O_NOFOLLOW|P.O_NONBLOCK);try{let p=await m.stat();if(!p.isFile()||p.size!==i.sizeBytes)throw new Error(`Taskset asset ${i.id} differs from its immutable file size.`);if(4*Math.ceil(p.size/3)+l>h)throw new Error("Local Taskset files exceed the package envelope.");let u=Buffer.alloc(p.size),c=0;for(;c<u.length;){let w=await m.read(u,c,u.length-c,c);if(!w.bytesRead)throw new Error(`Taskset asset ${i.id} changed during capture.`);c+=w.bytesRead}if((await m.read(Buffer.alloc(1),0,1,c)).bytesRead)throw new Error(`Taskset asset ${i.id} changed during capture.`);n(i,u)}finally{await m.close()}}for(let r of[...e.content.modelResources?.assets??[],...e.content.learningResources?.assets??[]])s.has(r.asset.id)||n(r.asset,Buffer.from($(r,r.asset),"utf8"));if(e.content.learningResources)for(let r of b(e.content.learningResources))s.has(r.asset.id)||n(r.asset,Buffer.from(r.base64,"base64"));if(e.fileOrder){if(new Set(e.fileOrder).size!==a.length||e.fileOrder.length!==a.length||e.fileOrder.some(i=>!s.has(i)))throw new Error("Saved package file order differs from its inventory.");let r=new Map(e.fileOrder.map((i,o)=>[i,o]));a.sort((i,o)=>r.get(i.asset.id)-r.get(o.asset.id))}return U({...e.content,files:a})}d(ft,"captureLocalTasksetPackage");export{Ie as a,_e as b,Me as c,v as d,dt as e,ft as f,Ne as g,et as h,Ee as i,ce as j,tt as k};
|