openpond 0.2.63 → 0.2.65
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 +76 -2
- package/dist/app-server.js +1 -1
- package/dist/chunks/account-context-TIJOM22A.js +12 -0
- package/dist/chunks/acp-PHMBLRCV.js +2 -0
- package/dist/chunks/acp-agent-A7GK2VSH.js +19 -0
- package/dist/chunks/actions-command-VLKMHCMI.js +2 -0
- package/dist/chunks/app-layer-J66CQ2QN.js +3 -0
- package/dist/chunks/app-server-connected-apps-IB6M35NS.js +2 -0
- package/dist/chunks/app-server-evaluations-V6LRWDUF.js +2 -0
- package/dist/chunks/app-server-harness-services-6ZRLA3YD.js +2 -0
- package/dist/chunks/app-server-runtime-OMR2VE6L.js +2 -0
- package/dist/chunks/apps-IHUFERZO.js +2 -0
- package/dist/chunks/{chunk-NZTCH6K5.js → chunk-2GJD23CM.js} +1 -1
- package/dist/chunks/{chunk-BKEDG3A4.js → chunk-2MEOUS24.js} +1 -1
- package/dist/chunks/{chunk-DUL6DXOI.js → chunk-2W22IXHB.js} +1 -1
- package/dist/chunks/{chunk-GGJUWIGR.js → chunk-36FNNR5N.js} +1 -1
- package/dist/chunks/chunk-3BJ7LPE3.js +2 -0
- package/dist/chunks/chunk-3MVKXAH7.js +2 -0
- package/dist/chunks/{chunk-UTNGEMW5.js → chunk-3WJQ4IGK.js} +1 -1
- package/dist/chunks/{chunk-G6OR5NB6.js → chunk-4D3CICBG.js} +1 -1
- package/dist/chunks/chunk-4DYWVGVS.js +2 -0
- package/dist/chunks/{chunk-KUPJNBWG.js → chunk-4JYTFEND.js} +1 -1
- package/dist/chunks/chunk-4MQHIFZL.js +2 -0
- package/dist/chunks/chunk-4TO743HO.js +4 -0
- package/dist/chunks/{chunk-B4RKHHF7.js → chunk-4TTXNVCE.js} +1 -1
- package/dist/chunks/{chunk-3YXYBYWK.js → chunk-4V73I4OL.js} +1 -1
- package/dist/chunks/chunk-55Q64WWF.js +2 -0
- package/dist/chunks/{chunk-F7QTIHXX.js → chunk-5AU5Y6KS.js} +1 -1
- package/dist/chunks/chunk-5HPZGLOL.js +2 -0
- package/dist/chunks/{chunk-LCSBCCYC.js → chunk-5JVJQA5H.js} +1 -1
- package/dist/chunks/chunk-5KJMFK65.js +2 -0
- package/dist/chunks/{chunk-BSPFY3Y5.js → chunk-5KWKSR4P.js} +1 -1
- package/dist/chunks/chunk-5WPMI6QX.js +2 -0
- package/dist/chunks/{chunk-SHJY5RLU.js → chunk-5Z3AU5CL.js} +1 -1
- package/dist/chunks/{chunk-DQI5TE6A.js → chunk-66HFW4OU.js} +1 -1
- package/dist/chunks/{chunk-NT7N6KLE.js → chunk-67HXM6AL.js} +1 -1
- package/dist/chunks/{chunk-J7ZTPXRQ.js → chunk-6C3CXME7.js} +1 -1
- package/dist/chunks/{chunk-PWK5Z5S3.js → chunk-6ESBAHWK.js} +1 -1
- package/dist/chunks/{chunk-XNOMIWEY.js → chunk-6I5AUTVO.js} +1 -1
- package/dist/chunks/{chunk-OG33QAG6.js → chunk-6S2MWJVD.js} +1 -1
- package/dist/chunks/{chunk-KCOTDUGW.js → chunk-6TRVEA3T.js} +1 -1
- package/dist/chunks/chunk-6ZTP6CUJ.js +2 -0
- package/dist/chunks/{chunk-4L6DU6Z2.js → chunk-7FBWUVX7.js} +1 -1
- package/dist/chunks/{chunk-GPL2Z65R.js → chunk-7P5SH3CI.js} +2 -2
- package/dist/chunks/chunk-7PKTCMZ6.js +2 -0
- package/dist/chunks/chunk-7XOUM6RK.js +2 -0
- package/dist/chunks/chunk-A77DLBR4.js +2 -0
- package/dist/chunks/chunk-AF3AVDPP.js +2 -0
- package/dist/chunks/{chunk-RV7PUSI2.js → chunk-AJXWJLZA.js} +1 -1
- package/dist/chunks/chunk-AMC4Z7G4.js +2 -0
- package/dist/chunks/chunk-ANG2YMMD.js +2 -0
- package/dist/chunks/{chunk-ZPTKR3GB.js → chunk-B32CW3NT.js} +1 -1
- package/dist/chunks/{chunk-Y766IN7Y.js → chunk-B666Z2NS.js} +1 -1
- package/dist/chunks/chunk-BJXPQIVD.js +2 -0
- package/dist/chunks/{chunk-WBUK73ST.js → chunk-BL3CZWWD.js} +1 -1
- package/dist/chunks/{chunk-XMHIQ3SK.js → chunk-BTJACFU3.js} +2 -2
- package/dist/chunks/{chunk-25XXZS3E.js → chunk-C5B3FMV3.js} +1 -1
- package/dist/chunks/chunk-CRDKBFRN.js +2 -0
- package/dist/chunks/chunk-CYQLXS2U.js +2 -0
- package/dist/chunks/{chunk-N4VHLJBZ.js → chunk-D7R2AAX2.js} +1 -1
- package/dist/chunks/{chunk-LSZJ5M3X.js → chunk-DAEUVT2I.js} +1 -1
- package/dist/chunks/{chunk-ELX7VRSU.js → chunk-DIDQHTAX.js} +1 -1
- package/dist/chunks/chunk-DMO3UIS7.js +6 -0
- package/dist/chunks/{chunk-4BJGUCHY.js → chunk-DRMOHADV.js} +1 -1
- package/dist/chunks/{chunk-FYYYECHE.js → chunk-DSJZS77R.js} +4 -4
- package/dist/chunks/{chunk-7HRLWPPZ.js → chunk-DXA2UHBE.js} +1 -1
- package/dist/chunks/chunk-E2S2EMYQ.js +10 -0
- package/dist/chunks/{chunk-T6JN4PND.js → chunk-EBOTNBUS.js} +1 -1
- package/dist/chunks/chunk-ECOH24MC.js +9 -0
- package/dist/chunks/{chunk-6PKXJEJM.js → chunk-EICS777E.js} +1 -1
- package/dist/chunks/{chunk-4SZ3HKHU.js → chunk-EVQISX7M.js} +1 -1
- package/dist/chunks/chunk-FEQ7HNJR.js +2 -0
- package/dist/chunks/{chunk-2HAWOMZK.js → chunk-FGOTSCSE.js} +1 -1
- package/dist/chunks/{chunk-IWWXIUAQ.js → chunk-FHLSLOKH.js} +8 -8
- package/dist/chunks/{chunk-BU27SLZP.js → chunk-FS2VKOT7.js} +1 -1
- package/dist/chunks/{chunk-4FNCBA3Y.js → chunk-FUFI4THX.js} +1 -1
- package/dist/chunks/{chunk-W5W4IODW.js → chunk-FYWQWKVS.js} +1 -1
- package/dist/chunks/{chunk-IZ56L2ZK.js → chunk-G4747MOW.js} +1 -1
- package/dist/chunks/{chunk-J572ANHX.js → chunk-G4E3WGLM.js} +4 -4
- package/dist/chunks/{chunk-P7HRF4FM.js → chunk-GD3RCUDH.js} +1 -1
- package/dist/chunks/{chunk-HUCBKXTU.js → chunk-GDJ4X2ZN.js} +1 -1
- package/dist/chunks/{chunk-JHR3LF2F.js → chunk-GF55VEMR.js} +1 -1
- package/dist/chunks/{chunk-GXCUH2VV.js → chunk-GFAI2MCJ.js} +3 -3
- package/dist/chunks/{chunk-KOKX7PBS.js → chunk-GI7LTJV3.js} +1 -1
- package/dist/chunks/{chunk-TCOTXCV6.js → chunk-GIU3Z45P.js} +1 -1
- package/dist/chunks/{chunk-GXZCMO6S.js → chunk-GRLQHYAU.js} +2 -2
- package/dist/chunks/{chunk-M3SCON53.js → chunk-GUG2SWRZ.js} +1 -1
- package/dist/chunks/{chunk-JQRMDFF3.js → chunk-H42UW6IF.js} +1 -1
- package/dist/chunks/{chunk-EZRUWIP6.js → chunk-H5ML7735.js} +1 -1
- package/dist/chunks/{chunk-VNJAAYNQ.js → chunk-HIQPGYVH.js} +1 -1
- package/dist/chunks/{chunk-DLANLLKH.js → chunk-HNDAGZCF.js} +1 -1
- package/dist/chunks/{chunk-OE22TAXP.js → chunk-HNQPEOJD.js} +1 -1
- package/dist/chunks/chunk-HORMGT2Q.js +2 -0
- package/dist/chunks/{chunk-2V4LPUBH.js → chunk-HPTEJBP4.js} +1 -1
- package/dist/chunks/{chunk-UWHIU24L.js → chunk-HVM2GUM3.js} +1 -1
- package/dist/chunks/{chunk-NEJLJ2XY.js → chunk-HX6GXMDK.js} +1 -1
- package/dist/chunks/chunk-I3NYYOSS.js +2 -0
- package/dist/chunks/{chunk-LV3CQ72P.js → chunk-I6VMRQF4.js} +1 -1
- package/dist/chunks/{chunk-QU4UE73E.js → chunk-IEVJLG3V.js} +1 -1
- package/dist/chunks/chunk-IOSBGCRT.js +2 -0
- package/dist/chunks/{chunk-SO42ZB5K.js → chunk-JBFPTEVE.js} +1 -1
- package/dist/chunks/{chunk-G32BO6M5.js → chunk-JD76ANPN.js} +1 -1
- package/dist/chunks/{chunk-ERJV5BMC.js → chunk-JFZ6USNQ.js} +1 -1
- package/dist/chunks/{chunk-UPWJSNL5.js → chunk-JLW5BQVO.js} +1 -1
- package/dist/chunks/chunk-JRGECNP3.js +2 -0
- package/dist/chunks/{chunk-DABBHWSF.js → chunk-KAWXVMHI.js} +1 -1
- package/dist/chunks/chunk-KGUPAPGR.js +2 -0
- package/dist/chunks/{chunk-AHOBCBVZ.js → chunk-KOKBDIGR.js} +1 -1
- package/dist/chunks/chunk-KTIBXRWQ.js +2 -0
- package/dist/chunks/chunk-L4EJ5R3B.js +23 -0
- package/dist/chunks/{chunk-SI5W5LBV.js → chunk-LARJARMS.js} +1 -1
- package/dist/chunks/{chunk-MPNJ2BB4.js → chunk-LE75SVEL.js} +1 -1
- package/dist/chunks/{chunk-ERT32RZA.js → chunk-LI3FTPAH.js} +5 -5
- package/dist/chunks/chunk-LK77GI6M.js +2 -0
- package/dist/chunks/chunk-LOIYNRBC.js +33 -0
- package/dist/chunks/{chunk-7WYL2IDD.js → chunk-LXZLLTYQ.js} +1 -1
- package/dist/chunks/{chunk-RZUCVF2Q.js → chunk-LYVHYT3L.js} +1 -1
- package/dist/chunks/{chunk-MWXW2CA6.js → chunk-LZPCA6DH.js} +1 -1
- package/dist/chunks/{chunk-GVARQXYI.js → chunk-M5QPL5NO.js} +1 -1
- package/dist/chunks/{chunk-WWQNMC7C.js → chunk-MCBRB5D6.js} +1 -1
- package/dist/chunks/chunk-MHPCVQOE.js +2 -0
- package/dist/chunks/chunk-MMJU6PZV.js +2 -0
- package/dist/chunks/chunk-MVPKU72J.js +4 -0
- package/dist/chunks/{chunk-AGVOGPAZ.js → chunk-MWS2NAHJ.js} +1 -1
- package/dist/chunks/{chunk-R6VJDOQM.js → chunk-N2AV7PHV.js} +4 -4
- package/dist/chunks/{chunk-R6WMY6AH.js → chunk-NTM3KQ25.js} +1 -1
- package/dist/chunks/chunk-NXN7GJOH.js +2 -0
- package/dist/chunks/chunk-O6ZYDHEJ.js +3 -0
- package/dist/chunks/chunk-OKEC2EIE.js +2 -0
- package/dist/chunks/{chunk-KCV5VN4X.js → chunk-OKKNDQJF.js} +1 -1
- package/dist/chunks/{chunk-ZYVHOVKL.js → chunk-OPTJYDZN.js} +1 -1
- package/dist/chunks/{chunk-NJLULBTM.js → chunk-OTDDXEQ6.js} +1 -1
- package/dist/chunks/{chunk-RDSVU6F6.js → chunk-OTUS7NTQ.js} +1 -1
- package/dist/chunks/{chunk-UH4JSSRL.js → chunk-OTXGAKFH.js} +8 -8
- package/dist/chunks/chunk-OW3EOC5Q.js +4 -0
- package/dist/chunks/chunk-OXRVILDW.js +2 -0
- package/dist/chunks/{chunk-JEISPWWM.js → chunk-PWKJ5KLZ.js} +1 -1
- package/dist/chunks/{chunk-RFMME46Z.js → chunk-PYNW5OFA.js} +1 -1
- package/dist/chunks/{chunk-AKGCM53D.js → chunk-Q3WXB465.js} +1 -1
- package/dist/chunks/{chunk-KHTAAVC2.js → chunk-Q4AXZY2P.js} +1 -1
- package/dist/chunks/{chunk-QJ6KUVAR.js → chunk-QAEZNFAM.js} +1 -1
- package/dist/chunks/{chunk-ABF3W2MO.js → chunk-QAFXQHHG.js} +2 -2
- package/dist/chunks/chunk-QCJY6FTC.js +3 -0
- package/dist/chunks/{chunk-5MHYGMJG.js → chunk-QJJNHKLT.js} +1 -1
- package/dist/chunks/{chunk-ERL2M773.js → chunk-QYQZQVVN.js} +1 -1
- package/dist/chunks/{chunk-VVNV4NNW.js → chunk-RCT3O3HQ.js} +1 -1
- package/dist/chunks/{chunk-7R56WC7L.js → chunk-RHMULF56.js} +1 -1
- package/dist/chunks/chunk-RRWL5BHZ.js +2 -0
- package/dist/chunks/{chunk-RG3NH6YQ.js → chunk-S4WILIRA.js} +1 -1
- package/dist/chunks/{chunk-N33D7KCW.js → chunk-S6UCVXBC.js} +1 -1
- package/dist/chunks/{chunk-IHB5GTOJ.js → chunk-SAZTOGX6.js} +3 -3
- package/dist/chunks/{chunk-2EPR4HLF.js → chunk-SH7POUVX.js} +6 -6
- package/dist/chunks/{chunk-NLYZ5K7U.js → chunk-SSJV3VX7.js} +1 -1
- package/dist/chunks/chunk-TBODQT4W.js +2 -0
- package/dist/chunks/chunk-TGULVWPV.js +2 -0
- package/dist/chunks/{chunk-HIYQPZ7C.js → chunk-TPOAAJKA.js} +1 -1
- package/dist/chunks/{chunk-42V4NV2F.js → chunk-TVDZXDQW.js} +1 -1
- package/dist/chunks/{chunk-FVRII5XO.js → chunk-U2BD545L.js} +1 -1
- package/dist/chunks/chunk-UK5LGSGT.js +2 -0
- package/dist/chunks/{chunk-HFJUXKT5.js → chunk-ULJZ7NUF.js} +1 -1
- package/dist/chunks/chunk-UM6EQOT2.js +161 -0
- package/dist/chunks/chunk-UN2LKLGV.js +2 -0
- package/dist/chunks/{chunk-4NXEYPPX.js → chunk-UOFDKMRU.js} +1 -1
- package/dist/chunks/{chunk-2ITZW2CN.js → chunk-UTIELP6F.js} +1 -1
- package/dist/chunks/{chunk-NWQL6FNF.js → chunk-V3KEG6MI.js} +1 -1
- package/dist/chunks/{chunk-BPZOABMC.js → chunk-V3S2B6WU.js} +2 -2
- package/dist/chunks/{chunk-ZG6353RM.js → chunk-VD2TQCMH.js} +1 -1
- package/dist/chunks/{chunk-4ZBOYWQ3.js → chunk-VS2LOUCT.js} +1 -1
- package/dist/chunks/{chunk-V7KR74NO.js → chunk-VS3AMJEK.js} +1 -1
- package/dist/chunks/{chunk-YCZZ62C2.js → chunk-W22KWKF6.js} +1 -1
- package/dist/chunks/chunk-W7NXFRHN.js +2 -0
- package/dist/chunks/{chunk-DTTFUANI.js → chunk-WBO6FQHR.js} +2 -2
- package/dist/chunks/{chunk-5ZBLCWEJ.js → chunk-WJSJXK2N.js} +1 -1
- package/dist/chunks/{chunk-C2LAEGOW.js → chunk-WKHGXLJD.js} +2 -2
- package/dist/chunks/{chunk-H6C4MAUN.js → chunk-WLQEONBF.js} +1 -1
- package/dist/chunks/chunk-WLZJOCLA.js +10 -0
- package/dist/chunks/chunk-WMBOXX7G.js +2 -0
- package/dist/chunks/{chunk-PF56N7ZY.js → chunk-X2J2P5ZT.js} +5 -5
- package/dist/chunks/{chunk-AH26AQN7.js → chunk-XHBMK6LC.js} +1 -1
- package/dist/chunks/{chunk-ZZHXQCNB.js → chunk-Y3B6ZUE6.js} +1 -1
- package/dist/chunks/{chunk-WP2L2NY2.js → chunk-YBKDEEEH.js} +1 -1
- package/dist/chunks/chunk-YRDPVTEI.js +3 -0
- package/dist/chunks/{chunk-JORRZ4BB.js → chunk-YU4JYWCA.js} +1 -1
- package/dist/chunks/{chunk-CZ5R4JXZ.js → chunk-Z2TOBS3P.js} +1 -1
- package/dist/chunks/chunk-ZFJWA4JK.js +1 -0
- package/dist/chunks/chunk-ZSZXA7WB.js +2 -0
- package/dist/chunks/{chunk-LK2K3SPM.js → chunk-ZU3YBRXS.js} +2 -2
- package/dist/chunks/{chunk-5FU5RLML.js → chunk-ZUT4EM64.js} +1 -1
- package/dist/chunks/chunk-ZWW227M3.js +2 -0
- package/dist/chunks/chunk-ZY32SZ2P.js +3 -0
- package/dist/chunks/cli-TE7RP5H7.js +2 -0
- package/dist/chunks/client-I5MYOJEJ.js +2 -0
- package/dist/chunks/command-NDHFZAKA.js +13 -0
- package/dist/chunks/configuration-command-465ODYTC.js +2 -0
- package/dist/chunks/connected-app-executor-7DYMZCD7.js +2 -0
- package/dist/chunks/connected-evidence-XPAZQRFQ.js +2 -0
- package/dist/chunks/{connected-starting-assets-JONPTII6.js → connected-starting-assets-2YX3QVDB.js} +1 -1
- package/dist/chunks/connection-GDWPMHPC.js +2 -0
- package/dist/chunks/{continual-Z7MO2PF6.js → continual-HQCFY7GN.js} +3 -3
- package/dist/chunks/core-commands-PJOGRBHJ.js +2 -0
- package/dist/chunks/dataset-preparation-authoring-KWRTMKN6.js +4 -0
- package/dist/chunks/datasets-OTE2I4VT.js +2 -0
- package/dist/chunks/desktop-test-Q6REQJ7K.js +3 -0
- package/dist/chunks/dist-GR56E3QK.js +2 -0
- package/dist/chunks/dist-J4KHAVO3.js +2 -0
- package/dist/chunks/dist-O7HXZUBW.js +2 -0
- package/dist/chunks/enclave-7VLABNIX.js +2 -0
- package/dist/chunks/evaluation-coordination-KRCY2H4C.js +2 -0
- package/dist/chunks/experiment-improvements-7MI2VYBR.js +2 -0
- package/dist/chunks/experiments-CNUQKJZE.js +2 -0
- package/dist/chunks/experiments-VOCZ4DW3.js +2 -0
- package/dist/chunks/experiments-signal-4N344D4Y.js +2 -0
- package/dist/chunks/{extension-ZM6NI5O5.js → extension-UH34ZF7N.js} +1 -1
- package/dist/chunks/{help-7HXFWIKS.js → help-ZUKVY6RO.js} +1 -1
- package/dist/chunks/host-profile-evaluation-tools-75EPCRSZ.js +2 -0
- package/dist/chunks/host-profile-external-dataset-YRKG2GL5.js +2 -0
- package/dist/chunks/hosted-app-server-composition-DWSU6ASL.js +2 -0
- package/dist/chunks/hosted-experiment-improvement-NZTPZTDH.js +3 -0
- package/dist/chunks/hosted-harness-runtime-3AJGEIFD.js +2 -0
- package/dist/chunks/hosted-profile-candidate-3CAT3XBI.js +3 -0
- package/dist/chunks/hosted-profile-compiler-RXU626Q6.js +2 -0
- package/dist/chunks/hosted-profile-evaluation-control-CBDRKJ5J.js +2 -0
- package/dist/chunks/hosted-profile-evaluation-inspection-CHYKDYUQ.js +3 -0
- package/dist/chunks/hosted-profile-evaluation-preparation-H5S7JZMD.js +3 -0
- package/dist/chunks/hosted-tasksets-AMGDDB2R.js +2 -0
- package/dist/chunks/human-review-HOBGC6RC.js +2 -0
- package/dist/chunks/{import-6SI4BEKS.js → import-Q3YRFVY7.js} +2 -2
- package/dist/chunks/learning-NJLTGZFQ.js +2 -0
- package/dist/chunks/learning-XTY5VOTK.js +2 -0
- package/dist/chunks/local-harness-improvement-runtime-XEA73RGS.js +2 -0
- package/dist/chunks/local-harness-taskset-review-SW35G4DM.js +2 -0
- package/dist/chunks/local-scope-X3737QXT.js +2 -0
- package/dist/chunks/model-projects-GHWCKDON.js +2 -0
- package/dist/chunks/opchat-2LLDIWEJ.js +3 -0
- package/dist/chunks/opchat-bounded-chat-FLDS36LU.js +2 -0
- package/dist/chunks/organizations-VIFSOY6P.js +2 -0
- package/dist/chunks/{profile-O5HL5DTQ.js → profile-KIHMW2WB.js} +1 -1
- package/dist/chunks/profile-training-source-VIND2MM2.js +2 -0
- package/dist/chunks/project-action-payload-2G57RL74.js +2 -0
- package/dist/chunks/project-agent-TJLQNMLA.js +2 -0
- package/dist/chunks/published-experiment-source-D3C2AWQD.js +2 -0
- package/dist/chunks/refiner-profile-service-PPGGNVOV.js +2 -0
- package/dist/chunks/{runtime-XBA744HJ.js → runtime-VSOOPNYN.js} +2 -2
- package/dist/chunks/sandbox-command-CQO6BEMQ.js +2 -0
- package/dist/chunks/{sandbox-template-27U3FQN7.js → sandbox-template-MU33IILL.js} +1 -1
- package/dist/chunks/saved-work-LAVTNKPT.js +2 -0
- package/dist/chunks/send-turn-D3GTSSHI.js +2 -0
- package/dist/chunks/setup-HSRCZ3WR.js +2 -0
- package/dist/chunks/{src-PU7QTFO5.js → src-662QOKNP.js} +1 -1
- package/dist/chunks/{src-BLWX6DRG.js → src-CHQVWHV7.js} +117 -117
- package/dist/chunks/standalone-experiment-turn-owner-KKYIGGPF.js +2 -0
- package/dist/chunks/stdio-Z65UIX55.js +2 -0
- package/dist/chunks/store-chat-resources-ZWDYMDJF.js +2 -0
- package/dist/chunks/{store-continual-support-reviews-FOMYYS25.js → store-continual-support-reviews-7PDLGRWF.js} +1 -1
- package/dist/chunks/store-conversation-serving-WRT4N7N2.js +2 -0
- package/dist/chunks/{store-create-improve-3LQMIYAP.js → store-create-improve-G46KIUVT.js} +1 -1
- package/dist/chunks/{store-datasets-3KSX7RSO.js → store-datasets-O67F75BL.js} +1 -1
- package/dist/chunks/store-evaluation-results-BEPR4LVD.js +7 -0
- package/dist/chunks/{store-harness-memory-2L7ARBR4.js → store-harness-memory-4XEUITXE.js} +1 -1
- package/dist/chunks/{store-harness-refinement-candidates-3PHL3BUY.js → store-harness-refinement-candidates-LCN4NV23.js} +1 -1
- package/dist/chunks/store-harness-workspaces-PJJQ74G6.js +2 -0
- package/dist/chunks/store-human-review-HJ3D7ZFA.js +7 -0
- package/dist/chunks/store-learned-preference-migration-validation-EXNRDHCO.js +2 -0
- package/dist/chunks/store-learning-6P6IS7GH.js +2 -0
- package/dist/chunks/store-learning-credentials-EGJ2WTZI.js +2 -0
- package/dist/chunks/{store-local-experiments-QTVHJAEP.js → store-local-experiments-CBJA56X2.js} +1 -1
- package/dist/chunks/store-model-batch-review-YIVD7T2T.js +2 -0
- package/dist/chunks/{store-model-configuration-3SU73CMS.js → store-model-configuration-T6XJJDAB.js} +2 -2
- package/dist/chunks/store-model-project-preparation-WWU5CJTV.js +2 -0
- package/dist/chunks/{store-preference-comparison-DWV5XSMY.js → store-preference-comparison-XQFTLMGH.js} +1 -1
- package/dist/chunks/{store-schedules-2KUY4T6M.js → store-schedules-JPFVWL3Q.js} +1 -1
- package/dist/chunks/{store-sidebar-file-bookmarks-A4XCS7RM.js → store-sidebar-file-bookmarks-J3JEVAYR.js} +1 -1
- package/dist/chunks/{store-sidebar-preferences-V2PKRXUZ.js → store-sidebar-preferences-2JHTFXJK.js} +1 -1
- package/dist/chunks/{store-subagents-UGVEFA6M.js → store-subagents-PUBQVWSU.js} +1 -1
- package/dist/chunks/{store-task-inbox-QABI4ZAH.js → store-task-inbox-VVXZUJIO.js} +1 -1
- package/dist/chunks/{store-task-inventory-GEQIZELY.js → store-task-inventory-MQX44AI6.js} +1 -1
- package/dist/chunks/store-taskset-drafts-G3WFVN4M.js +9 -0
- package/dist/chunks/{store-training-CQV7PL3V.js → store-training-DUVIDYK5.js} +1 -1
- package/dist/chunks/{store-training-jobs-XKN6K66J.js → store-training-jobs-HHFH3V5O.js} +1 -1
- package/dist/chunks/{store-training-models-Q7DTTR4S.js → store-training-models-C7UUZDTO.js} +1 -1
- package/dist/chunks/{store-usage-XGAX7NLB.js → store-usage-6DMZM7WV.js} +1 -1
- package/dist/chunks/{store-work-evidence-VSLLZ6UF.js → store-work-evidence-77B36LRC.js} +1 -1
- package/dist/chunks/taskset-7FQCJ55X.js +2 -0
- package/dist/chunks/taskset-packages-NRRPON7B.js +2 -0
- package/dist/chunks/taskset-packages-RW4SFGDU.js +2 -0
- package/dist/chunks/{teams-bot-UTQAJA6H.js → teams-bot-D3LWA4S5.js} +1 -1
- package/dist/chunks/tool-learning-NGO7QHYK.js +2 -0
- package/dist/chunks/training-XFM3OOPN.js +2 -0
- package/dist/chunks/training-XILDD5RG.js +2 -0
- package/dist/chunks/training-error-LQKCOQDJ.js +2 -0
- package/dist/chunks/training-hardware-ESXRWUIK.js +3 -0
- package/dist/chunks/training-hosted-6BX2IASC.js +2 -0
- package/dist/chunks/training-hosted-checkpoint-evaluation-UXFW33QL.js +2 -0
- package/dist/chunks/training-hosted-learning-YN5VD3PW.js +2 -0
- package/dist/chunks/training-hosted-serving-N2MHWGZN.js +2 -0
- package/dist/chunks/training-hosted-serving-report-J4YOZLRP.js +2 -0
- package/dist/chunks/training-hosted-workers-6JTDCCWA.js +2 -0
- package/dist/chunks/training-model-start-E5MP3URL.js +2 -0
- package/dist/chunks/web-search-56QRZGPR.js +2 -0
- package/dist/chunks/workspaces-MCS2AQX6.js +2 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/sandbox-template/manifest.js +1 -1
- package/dist/skills/manifest.json +1 -1
- package/dist/web/assets/App-BZuSv1XM.js +53 -0
- package/dist/web/assets/{AppDialog-8Y0FYalT.js → AppDialog-BILEK4np.js} +1 -1
- package/dist/web/assets/AppTerminalPanel-BvxZ8bwD.js +2 -0
- package/dist/web/assets/{AppToastContext-BiQbbVxq.js → AppToastContext-C-FsCKXW.js} +1 -1
- package/dist/web/assets/{AppsView-Dtte4h6e.js → AppsView-BMaq5oxx.js} +1 -1
- package/dist/web/assets/{AttachmentTypeIcon-DgADV7dn.js → AttachmentTypeIcon-Bh7Ft_UL.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-BUqDvEv9.js → BrowserSidebar-BG2MLJ9I.js} +1 -1
- package/dist/web/assets/{CartesianChart-J4ChOjvG.js → CartesianChart-CS6ES_XT.js} +1 -1
- package/dist/web/assets/ChatTimelineEntry-Dr5X_XyN.js +8 -0
- package/dist/web/assets/{ChatTimelineEntry-DztFb85D.css → ChatTimelineEntry-vs8RaEGD.css} +1 -1
- package/dist/web/assets/{CollaborationTabs-CFCpk2Ck.js → CollaborationTabs-CPJ2w67F.js} +1 -1
- package/dist/web/assets/{CommandMenu-EPPjB14H.js → CommandMenu-Fe1V7NJd.js} +1 -1
- package/dist/web/assets/{CommunityView-Okydjpqm.js → CommunityView-DHTcmOnI.js} +1 -1
- package/dist/web/assets/{ComposerAttachments-RXCiE88M.js → ComposerAttachments-Ck9VWD6o.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-CSngc8-V.js → ComposerCreateImproveStrip-yiXO7cf8.js} +1 -1
- package/dist/web/assets/{ConversationImportsSettings-DS73kyfj.js → ConversationImportsSettings-_VLzUnHQ.js} +1 -1
- package/dist/web/assets/{FilePagePreview-Qc4B0vue.js → FilePagePreview-BpcM1DfE.js} +2 -2
- package/dist/web/assets/{GetStartedView-DGFPQ1We.js → GetStartedView-BH-WJ-rW.js} +1 -1
- package/dist/web/assets/{GettingStartedDialog-DFBYQdHz.js → GettingStartedDialog-CdQfj7RA.js} +1 -1
- package/dist/web/assets/{HostedModelLearningReview-BDu3FlcU.js → HostedModelLearningReview-C3GsOlu9.js} +1 -1
- package/dist/web/assets/{HostedModelLearningSettings-CHaTHwC8.js → HostedModelLearningSettings-SSMst6dl.js} +1 -1
- package/dist/web/assets/{HtmlVisual-D9Mh7xds.js → HtmlVisual-CH0tb3fv.js} +1 -1
- package/dist/web/assets/{LabModelVersionDetailPage-DgY7lAu5.js → LabModelVersionDetailPage-J2t9yILv.js} +1 -1
- package/dist/web/assets/{LabSkillSidebar-BwtlThO7.js → LabSkillSidebar-DdDYvfj2.js} +1 -1
- package/dist/web/assets/LabsRoute-MJwIjSKg.js +101 -0
- package/dist/web/assets/MainChatThread-BcwtaTDZ.js +2 -0
- package/dist/web/assets/MainPane-DDO6diPt.js +10 -0
- package/dist/web/assets/NativeSetupTerminal-BPSUFpRm.js +2 -0
- package/dist/web/assets/{NativeSkillSidebar-BEJvt5_H.js → NativeSkillSidebar-DPYavzau.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-CjrjgkTN.js → NewProjectDialog-BtmvE9Sp.js} +1 -1
- package/dist/web/assets/{OutputsPage-jzx93QQ3.js → OutputsPage-BMRY7RK2.js} +1 -1
- package/dist/web/assets/{PageChrome-C1M13qG2.js → PageChrome-5VRxH6Rp.js} +1 -1
- package/dist/web/assets/{ProjectsPage-DZrjlMp2.js → ProjectsPage-1LHqxOMo.js} +1 -1
- package/dist/web/assets/RightChatPanelStack-D_7KgExz.js +1 -0
- package/dist/web/assets/RightSidebarHomePanel-iznJwDMf.js +1 -0
- package/dist/web/assets/{ScheduledWorkPage-Cw1ja2GF.js → ScheduledWorkPage-Dtz4zJ0T.js} +1 -1
- package/dist/web/assets/{SettingsView-CckoIki3.js → SettingsView-BeDYNPcD.js} +3 -3
- package/dist/web/assets/{TasksetDraftEditorPrimitives-ByC8bDjp.js → TasksetDraftEditorPrimitives-CcvKO3YA.js} +1 -1
- package/dist/web/assets/{TeamChatView-OprnSKLF.js → TeamChatView-DaXxOkTe.js} +1 -1
- package/dist/web/assets/{TerminalOverlay-d7A2F9Lx.js → TerminalOverlay-CF8uB4qA.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-Cyn6R6I6.js → TrainingCreationPanel-DmMO7x5T.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-Mpb5e7t5.js → TrainingDraftPanel-DCHbXjSx.js} +1 -1
- package/dist/web/assets/{TrainingRunLineage-VcKz7dIR.js → TrainingRunLineage-CwisTWs_.js} +1 -1
- package/dist/web/assets/UsageSettingsSection-Drt7gwRb.js +7 -0
- package/dist/web/assets/WorkSidebarPanel-BrIIRtGW.js +1 -0
- package/dist/web/assets/WorkspaceDiffPanel-Dmbrg0-y.js +11 -0
- package/dist/web/assets/{WorkspaceEnvironmentMenu-C8y3537a.js → WorkspaceEnvironmentMenu-KEZm1gdb.js} +1 -1
- package/dist/web/assets/{WorkspaceFileLocation-LrEWj4UK.js → WorkspaceFileLocation-ChbOKrPO.js} +1 -1
- package/dist/web/assets/{WorkspaceGitDialogs-NRIMXnkS.js → WorkspaceGitDialogs-BS2JQKNQ.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-CvDGjKAL.js → WorkspaceMonacoEditor-CN1hE_C4.js} +3 -3
- package/dist/web/assets/{WorkspacePdfPreview-BZ0BbnHv.js → WorkspacePdfPreview-Clb4m0le.js} +2 -2
- package/dist/web/assets/{WorkspacePresentationPreview-DJrjrvT0.js → WorkspacePresentationPreview-CwQsdvAR.js} +1 -1
- package/dist/web/assets/app-models-Cz3yxq4x.js +1 -0
- package/dist/web/assets/{bot-6OhUEmkE.js → bot-BNFltD5O.js} +1 -1
- package/dist/web/assets/chat-resources-CTN4f6KC.js +1 -0
- package/dist/web/assets/{chevron-down-jmVA1BIf.js → chevron-down-BnnT0tnM.js} +1 -1
- package/dist/web/assets/chevron-right-C8K5PZj7.js +1 -0
- package/dist/web/assets/{chevron-up-CstyLXH3.js → chevron-up-BAnwJJN3.js} +1 -1
- package/dist/web/assets/chunk-GJRXJL6G-pJp1DyJd.js +9 -0
- package/dist/web/assets/chunk-TLSP5JKG-DZmxtX-4.js +1 -0
- package/dist/web/assets/{client-choice-storage-BdQ_YDuk.js → client-choice-storage-Iuzoszas.js} +1 -1
- package/dist/web/assets/{cloud-upload-Ck1ufAr8.js → cloud-upload-CdSXJ7ms.js} +1 -1
- package/dist/web/assets/{copy-CPkbMfXt.js → copy-CBFg6m0d.js} +1 -1
- package/dist/web/assets/{createLucideIcon-CXQny8HU.js → createLucideIcon-DF2VR6WA.js} +1 -1
- package/dist/web/assets/{cssMode-CYxYl_om.js → cssMode-BSQUZhUO.js} +1 -1
- package/dist/web/assets/{external-link-CDKOLG_v.js → external-link-Cql9bKdv.js} +1 -1
- package/dist/web/assets/{folder-open-CEtOb_lK.js → folder-open-BXdVB5J1.js} +1 -1
- package/dist/web/assets/{folder-plus-CVMYZs3e.js → folder-plus-Cma2HulC.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-DDyhPjxS.js → git-commit-horizontal-eF--16ps.js} +1 -1
- package/dist/web/assets/{htmlMode-DoY4V_j0.js → htmlMode-aLPlQtyU.js} +1 -1
- package/dist/web/assets/icons-c3vt7y6n.js +1 -0
- package/dist/web/assets/{image-B-PjDSwU.js → image-CqKPwnBn.js} +1 -1
- package/dist/web/assets/{index-D9WbJMSq.js → index-CM0IRu1U.js} +2 -2
- package/dist/web/assets/{info-CCnw-K3b.js → info-CqeYEqG0.js} +1 -1
- package/dist/web/assets/{jsonMode-CeOpZdPj.js → jsonMode-fu7bEcHB.js} +1 -1
- package/dist/web/assets/loader-circle-pxp89T5x.js +1 -0
- package/dist/web/assets/{lspLanguageFeatures-DAbgLCqZ.js → lspLanguageFeatures-DraXQA4w.js} +1 -1
- package/dist/web/assets/{maximize-2-BZX38cpr.js → maximize-2-yMp8X9ts.js} +1 -1
- package/dist/web/assets/{message-square-CvgSecgD.js → message-square-DbIMQqfj.js} +1 -1
- package/dist/web/assets/model-display-zPvC4L2B.js +1 -0
- package/dist/web/assets/models-route-CWcJuOd0.js +1 -0
- package/dist/web/assets/{monaco.contribution-cbDqt48m.js → monaco.contribution-BQhp1CJs.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CF2JDhi4.js → monaco.contribution-Bd8EqYGR.js} +2 -2
- package/dist/web/assets/{monaco.contribution-m2ze2EsL.js → monaco.contribution-CYWKnVxQ.js} +2 -2
- package/dist/web/assets/{monaco.contribution-yeyow_-Q.js → monaco.contribution-CmbWO0tB.js} +2 -2
- package/dist/web/assets/{monitor-By0s4hxb.js → monitor-DFE2fTkT.js} +1 -1
- package/dist/web/assets/{paperclip-BJ2QgJLa.js → paperclip-D_qsKbVs.js} +1 -1
- package/dist/web/assets/{pdf-C4x-1jjP.js → pdf-DkQRsi4n.js} +1 -1
- package/dist/web/assets/play-BtlX2stU.js +1 -0
- package/dist/web/assets/plus-DbASL_gy.js +1 -0
- package/dist/web/assets/{presentation-I86G1Gd9.js → presentation-BN_kIBPL.js} +1 -1
- package/dist/web/assets/{python-CqFTPj8r.js → python-DB9pj5Hr.js} +1 -1
- package/dist/web/assets/{refresh-cw-Dga35Eay.js → refresh-cw-B27ohHfn.js} +1 -1
- package/dist/web/assets/{save-BLKjYtzR.js → save-D-rwjKop.js} +1 -1
- package/dist/web/assets/settings-lists-DgSaJQA4.js +5 -0
- package/dist/web/assets/square-C2caJ3NG.js +1 -0
- package/dist/web/assets/{square-terminal-B-n7vUex.js → square-terminal-CeoK51wH.js} +1 -1
- package/dist/web/assets/{submit-issue-command-B7Hrt2tU.js → submit-issue-command-DZNW7Evj.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-BhmBE5XE.js → toggleHighContrast-Bs8L1gx0.js} +1 -1
- package/dist/web/assets/{training-QrdkRQZQ.js → training-DCdoHJ0Y.js} +2 -2
- package/dist/web/assets/{training-model-data-DB-jg6L_.js → training-model-data-wHvE7xL1.js} +1 -1
- package/dist/web/assets/{tsMode-BSWEII2p.js → tsMode-C7EqshxC.js} +1 -1
- package/dist/web/assets/{upload-C4MPhQn8.js → upload-BWgjC2Jf.js} +1 -1
- package/dist/web/assets/{useAccountSettings-9oqWdRLs.js → useAccountSettings-Dva1MpsJ.js} +1 -1
- package/dist/web/assets/{useAgentInventory-isO79ui9.js → useAgentInventory-CrjIOmvb.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-CZX6PxoK.js → useLocalAgentSchedules-P-UaUKMb.js} +1 -1
- package/dist/web/assets/{useQuery-BD0Uexmh.js → useQuery-Bn3KqR4r.js} +1 -1
- package/dist/web/assets/{wifi-off-Cloe0WuQ.js → wifi-off--mKrSPFc.js} +1 -1
- package/dist/web/assets/{workers-BXagz5eg.js → workers-p0Kn2KMK.js} +1 -1
- package/dist/web/assets/x-D9GTV9ke.js +1 -0
- package/dist/web/assets/{yaml-sBdvVbCc.js → yaml-BeIdC4tu.js} +1 -1
- package/dist/web/index.html +1 -1
- package/docs/command-reference.md +44 -2
- package/package.json +1 -1
- package/dist/chunks/acp-H3MJCPHX.js +0 -2
- package/dist/chunks/acp-agent-DWA7272M.js +0 -21
- package/dist/chunks/actions-command-IIYOO4LL.js +0 -2
- package/dist/chunks/app-layer-K7H2WJ56.js +0 -3
- package/dist/chunks/app-server-connected-apps-RM5E2VWF.js +0 -2
- package/dist/chunks/app-server-evaluations-XGMGS67X.js +0 -2
- package/dist/chunks/app-server-harness-services-BHD6S5II.js +0 -2
- package/dist/chunks/app-server-runtime-LFIL6F7D.js +0 -2
- package/dist/chunks/apps-QKAHJGQ4.js +0 -2
- package/dist/chunks/chunk-5EP2DZLJ.js +0 -2
- package/dist/chunks/chunk-6EBCS57F.js +0 -2
- package/dist/chunks/chunk-6RS4NAOY.js +0 -2
- package/dist/chunks/chunk-7O6Z3VOZ.js +0 -2
- package/dist/chunks/chunk-7YLXGILH.js +0 -2
- package/dist/chunks/chunk-7ZLXFKRI.js +0 -2
- package/dist/chunks/chunk-B5R53U74.js +0 -2
- package/dist/chunks/chunk-C2AXMKK4.js +0 -2
- package/dist/chunks/chunk-F6UQ6PPK.js +0 -2
- package/dist/chunks/chunk-GS6ZUSIN.js +0 -3
- package/dist/chunks/chunk-JSQRLLN6.js +0 -2
- package/dist/chunks/chunk-LAOLJDVB.js +0 -2
- package/dist/chunks/chunk-LKKMLBOH.js +0 -3
- package/dist/chunks/chunk-M3FLEZ4E.js +0 -4
- package/dist/chunks/chunk-MEGKXGW3.js +0 -2
- package/dist/chunks/chunk-MILEWROZ.js +0 -2
- package/dist/chunks/chunk-N42HT64M.js +0 -2
- package/dist/chunks/chunk-NG2L6D7G.js +0 -2
- package/dist/chunks/chunk-OSVGNONV.js +0 -2
- package/dist/chunks/chunk-OTUBJV6C.js +0 -6
- package/dist/chunks/chunk-PBTXLQAU.js +0 -2
- package/dist/chunks/chunk-PBZCXPPC.js +0 -10
- package/dist/chunks/chunk-SFKZITAG.js +0 -9
- package/dist/chunks/chunk-SXMR6E2W.js +0 -2
- package/dist/chunks/chunk-U2K7QJCG.js +0 -2
- package/dist/chunks/chunk-URNMC46H.js +0 -157
- package/dist/chunks/chunk-VHXDWAEH.js +0 -2
- package/dist/chunks/chunk-W2TICQ62.js +0 -2
- package/dist/chunks/chunk-WSOUMXH3.js +0 -24
- package/dist/chunks/chunk-XOB6FKQV.js +0 -2
- package/dist/chunks/chunk-YBNKGA5C.js +0 -2
- package/dist/chunks/chunk-YM4PSVFW.js +0 -4
- package/dist/chunks/chunk-YNQWJWIC.js +0 -10
- package/dist/chunks/chunk-Z3BWCFLV.js +0 -2
- package/dist/chunks/cli-PSXMIJTF.js +0 -2
- package/dist/chunks/configuration-command-XYKMXIWF.js +0 -2
- package/dist/chunks/connected-app-executor-6G2LA3PQ.js +0 -2
- package/dist/chunks/connected-evidence-IRXYN6YD.js +0 -2
- package/dist/chunks/connection-XMAAGMXJ.js +0 -2
- package/dist/chunks/core-commands-WWN7X3XC.js +0 -2
- package/dist/chunks/dataset-preparation-authoring-F3OZIQSP.js +0 -4
- package/dist/chunks/datasets-2PC2HP7N.js +0 -2
- package/dist/chunks/desktop-test-VU6AFAMO.js +0 -3
- package/dist/chunks/dist-47AYOIH6.js +0 -2
- package/dist/chunks/dist-HSC43RG4.js +0 -2
- package/dist/chunks/dist-MXBEBM4D.js +0 -2
- package/dist/chunks/enclave-VURYNILU.js +0 -2
- package/dist/chunks/evaluation-coordination-UOWZHHC5.js +0 -2
- package/dist/chunks/experiment-improvements-EB2CV5RA.js +0 -2
- package/dist/chunks/experiments-CLXGM3TZ.js +0 -2
- package/dist/chunks/experiments-SZQYR6MH.js +0 -2
- package/dist/chunks/experiments-signal-2KJCP25D.js +0 -2
- package/dist/chunks/host-profile-evaluation-tools-Y2LQ4WQN.js +0 -2
- package/dist/chunks/host-profile-external-dataset-FRIGXOO7.js +0 -2
- package/dist/chunks/hosted-app-server-composition-PGKQNDW6.js +0 -2
- package/dist/chunks/hosted-experiment-improvement-UXC542SZ.js +0 -3
- package/dist/chunks/hosted-harness-runtime-6PEI7F2U.js +0 -2
- package/dist/chunks/hosted-profile-candidate-HM44BIUX.js +0 -3
- package/dist/chunks/hosted-profile-compiler-UAZ4PHYE.js +0 -2
- package/dist/chunks/hosted-profile-evaluation-control-EUL57FAB.js +0 -2
- package/dist/chunks/hosted-profile-evaluation-inspection-7USY75Z4.js +0 -3
- package/dist/chunks/hosted-profile-evaluation-preparation-2LSMZQNA.js +0 -3
- package/dist/chunks/hosted-tasksets-WGXGXJ7E.js +0 -2
- package/dist/chunks/human-review-M26UKGJL.js +0 -2
- package/dist/chunks/learning-HM3NWOV5.js +0 -2
- package/dist/chunks/local-harness-improvement-runtime-QGWFWNSR.js +0 -2
- package/dist/chunks/local-harness-taskset-review-KS4WPMN6.js +0 -2
- package/dist/chunks/local-scope-62GWHDXS.js +0 -2
- package/dist/chunks/model-projects-YUAMBQTO.js +0 -2
- package/dist/chunks/opchat-AG4CWVY4.js +0 -3
- package/dist/chunks/opchat-bounded-chat-IQMP5IIO.js +0 -2
- package/dist/chunks/organizations-KDKX77XZ.js +0 -2
- package/dist/chunks/profile-training-source-3DXFM2XI.js +0 -2
- package/dist/chunks/project-action-payload-QA24HYGF.js +0 -2
- package/dist/chunks/project-agent-XBOOM5TS.js +0 -2
- package/dist/chunks/published-experiment-source-GZGN354O.js +0 -2
- package/dist/chunks/refiner-profile-service-BJMOYKTC.js +0 -2
- package/dist/chunks/sandbox-command-5ECGS7DG.js +0 -2
- package/dist/chunks/saved-work-KUNVTJ7O.js +0 -2
- package/dist/chunks/send-turn-FIPWOXWV.js +0 -2
- package/dist/chunks/standalone-experiment-turn-owner-XIE46VNH.js +0 -2
- package/dist/chunks/store-chat-resources-YOEJ2BI6.js +0 -2
- package/dist/chunks/store-conversation-serving-K324SQTO.js +0 -2
- package/dist/chunks/store-evaluation-results-LHCCNNE6.js +0 -7
- package/dist/chunks/store-harness-workspaces-ZHNCNWVI.js +0 -2
- package/dist/chunks/store-human-review-QJY3ZPPF.js +0 -7
- package/dist/chunks/store-learned-preference-migration-validation-X32SRBOM.js +0 -2
- package/dist/chunks/store-learning-DW3QLQXU.js +0 -2
- package/dist/chunks/store-learning-credentials-67QNTPA7.js +0 -2
- package/dist/chunks/store-model-batch-review-PBYQZJJJ.js +0 -2
- package/dist/chunks/store-model-project-preparation-TFCG2F2F.js +0 -2
- package/dist/chunks/store-taskset-drafts-GXABQR5G.js +0 -9
- package/dist/chunks/taskset-ARKJQKYQ.js +0 -2
- package/dist/chunks/taskset-packages-X4K65DTW.js +0 -2
- package/dist/chunks/taskset-packages-XK7FSD45.js +0 -2
- package/dist/chunks/training-3IWW4256.js +0 -2
- package/dist/chunks/training-RVIESURJ.js +0 -2
- package/dist/chunks/training-error-2EWDOQ4G.js +0 -2
- package/dist/chunks/training-hosted-PFJHYTEU.js +0 -2
- package/dist/chunks/training-hosted-checkpoint-evaluation-JJPP7KFW.js +0 -2
- package/dist/chunks/training-hosted-learning-Y7NHRY4V.js +0 -2
- package/dist/chunks/training-hosted-serving-QAV7ZGGV.js +0 -2
- package/dist/chunks/training-hosted-serving-report-OX4A5OKB.js +0 -2
- package/dist/chunks/training-hosted-workers-LST4ZUXN.js +0 -2
- package/dist/chunks/training-model-start-ROLS3E4V.js +0 -2
- package/dist/chunks/web-search-7FBUBZ66.js +0 -2
- package/dist/chunks/workspaces-G3CMY7ZA.js +0 -2
- package/dist/web/assets/App-DY2R8Z6r.js +0 -53
- package/dist/web/assets/AppTerminalPanel-YcnBD5DF.js +0 -2
- package/dist/web/assets/ChatTimelineEntry-DC93wlDa.js +0 -8
- package/dist/web/assets/LabsRoute-BV7ZJGEw.js +0 -101
- package/dist/web/assets/MainChatThread-pzHKd_YN.js +0 -2
- package/dist/web/assets/MainPane-6OlLiKKb.js +0 -10
- package/dist/web/assets/NativeSetupTerminal-CPDChcMi.js +0 -2
- package/dist/web/assets/RightChatPanelStack-BsxJg9sy.js +0 -1
- package/dist/web/assets/RightSidebarHomePanel-CCVQ9LMB.js +0 -1
- package/dist/web/assets/UsageSettingsSection-FhYymrfc.js +0 -7
- package/dist/web/assets/WorkSidebarPanel-u87uptH0.js +0 -1
- package/dist/web/assets/WorkspaceDiffPanel-B5rlW7bA.js +0 -11
- package/dist/web/assets/app-models-CUA9XB9U.js +0 -1
- package/dist/web/assets/chat-resources-CI8KFVO5.js +0 -1
- package/dist/web/assets/chevron-right-BYmDQ7ti.js +0 -1
- package/dist/web/assets/chunk-ONGOAEY6-C__DQmRT.js +0 -9
- package/dist/web/assets/chunk-SQBYHWZU-DumrB9SB.js +0 -1
- package/dist/web/assets/icons-D7jkCa2d.js +0 -1
- package/dist/web/assets/loader-circle-CPaJeTDy.js +0 -1
- package/dist/web/assets/models-route-Bl_TmMl6.js +0 -1
- package/dist/web/assets/play-D_SuGDBM.js +0 -1
- package/dist/web/assets/plus-yw95Iaj8.js +0 -1
- package/dist/web/assets/settings-lists-DMKA1lCN.js +0 -5
- package/dist/web/assets/square-BY5lG2Ol.js +0 -1
- package/dist/web/assets/x-Dqpel42h.js +0 -1
- /package/dist/chunks/{chunk-IDOGNIMV.js → chunk-7J2NMUTK.js} +0 -0
- /package/dist/chunks/{chunk-PCB65K4G.js → chunk-SFR32TMJ.js} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a as Sn,b as Pn,v as to,w as ro}from"./chunk-NJLULBTM.js";import{c as S,d as b,e as Y,f as wn,g as D,i as Re,j as $n,k as kn,m as Ct,n as k,o as ht}from"./chunk-VVNV4NNW.js";import{A as s}from"./chunk-PF56N7ZY.js";import{a as i,c as w,e as lu}from"./chunk-FTQLQJQV.js";var zt=w(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.regexpCode=z.getEsmExportName=z.getProperty=z.safeStringify=z.stringify=z.strConcat=z.addCodeArg=z.str=z._=z.nil=z._Code=z.Name=z.IDENTIFIER=z._CodeOrName=void 0;var Dt=class{static{i(this,"_CodeOrName")}};z._CodeOrName=Dt;z.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var et=class extends Dt{static{i(this,"Name")}constructor(t){if(super(),!z.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};z.Name=et;var ye=class extends Dt{static{i(this,"_Code")}constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof et&&(r[n.str]=(r[n.str]||0)+1),r),{})}};z._Code=ye;z.nil=new ye("");function oo(e,...t){let r=[e[0]],n=0;for(;n<t.length;)En(r,t[n]),r.push(e[++n]);return new ye(r)}i(oo,"_");z._=oo;var xn=new ye("+");function io(e,...t){let r=[Mt(e[0])],n=0;for(;n<t.length;)r.push(xn),En(r,t[n]),r.push(xn,Mt(e[++n]));return gu(r),new ye(r)}i(io,"str");z.str=io;function En(e,t){t instanceof ye?e.push(...t._items):t instanceof et?e.push(t):e.push(bu(t))}i(En,"addCodeArg");z.addCodeArg=En;function gu(e){let t=1;for(;t<e.length-1;){if(e[t]===xn){let r=yu(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}i(gu,"optimize");function yu(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof et||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof et))return`"${e}${t.slice(1)}`}i(yu,"mergeExprItems");function vu(e,t){return t.emptyStr()?e:e.emptyStr()?t:io`${e}${t}`}i(vu,"strConcat");z.strConcat=vu;function bu(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Mt(Array.isArray(e)?e.join(","):e)}i(bu,"interpolate");function _u(e){return new ye(Mt(e))}i(_u,"stringify");z.stringify=_u;function Mt(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}i(Mt,"safeStringify");z.safeStringify=Mt;function wu(e){return typeof e=="string"&&z.IDENTIFIER.test(e)?new ye(`.${e}`):oo`[${e}]`}i(wu,"getProperty");z.getProperty=wu;function $u(e){if(typeof e=="string"&&z.IDENTIFIER.test(e))return new ye(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}i($u,"getEsmExportName");z.getEsmExportName=$u;function ku(e){return new ye(e.toString())}i(ku,"regexpCode");z.regexpCode=ku});var jn=w(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.ValueScope=ue.ValueScopeName=ue.Scope=ue.varKinds=ue.UsedValueState=void 0;var le=zt(),In=class extends Error{static{i(this,"ValueError")}constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Rr;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Rr||(ue.UsedValueState=Rr={}));ue.varKinds={const:new le.Name("const"),let:new le.Name("let"),var:new le.Name("var")};var jr=class{static{i(this,"Scope")}constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof le.Name?t:this.name(t)}name(t){return new le.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};ue.Scope=jr;var qr=class extends le.Name{static{i(this,"ValueScopeName")}constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,le._)`.${new le.Name(r)}[${n}]`}};ue.ValueScopeName=qr;var Su=(0,le._)`\n`,Rn=class extends jr{static{i(this,"ValueScope")}constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Su:le.nil}}get(){return this._scope}name(t){return new qr(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let a=this.toName(t),{prefix:c}=a,o=(n=r.key)!==null&&n!==void 0?n:r.ref,l=this._values[c];if(l){let f=l.get(o);if(f)return f}else l=this._values[c]=new Map;l.set(o,a);let d=this._scope[c]||(this._scope[c]=[]),u=d.length;return d[u]=r.ref,a.setValue(r,{property:c,itemIndex:u}),a}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,le._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,a=>{if(a.value===void 0)throw new Error(`CodeGen: name "${a}" has no value`);return a.value.code},r,n)}_reduceValues(t,r,n={},a){let c=le.nil;for(let o in t){let l=t[o];if(!l)continue;let d=n[o]=n[o]||new Map;l.forEach(u=>{if(d.has(u))return;d.set(u,Rr.Started);let f=r(u);if(f){let m=this.opts.es5?ue.varKinds.var:ue.varKinds.const;c=(0,le._)`${c}${m} ${u} = ${f};${this.opts._n}`}else if(f=a?.(u))c=(0,le._)`${c}${f}${this.opts._n}`;else throw new In(u);d.set(u,Rr.Completed)})}return c}};ue.ValueScope=Rn});var j=w(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.or=A.and=A.not=A.CodeGen=A.operators=A.varKinds=A.ValueScopeName=A.ValueScope=A.Scope=A.Name=A.regexpCode=A.stringify=A.getProperty=A.nil=A.strConcat=A.str=A._=void 0;var C=zt(),Pe=jn(),Ke=zt();Object.defineProperty(A,"_",{enumerable:!0,get:i(function(){return Ke._},"get")});Object.defineProperty(A,"str",{enumerable:!0,get:i(function(){return Ke.str},"get")});Object.defineProperty(A,"strConcat",{enumerable:!0,get:i(function(){return Ke.strConcat},"get")});Object.defineProperty(A,"nil",{enumerable:!0,get:i(function(){return Ke.nil},"get")});Object.defineProperty(A,"getProperty",{enumerable:!0,get:i(function(){return Ke.getProperty},"get")});Object.defineProperty(A,"stringify",{enumerable:!0,get:i(function(){return Ke.stringify},"get")});Object.defineProperty(A,"regexpCode",{enumerable:!0,get:i(function(){return Ke.regexpCode},"get")});Object.defineProperty(A,"Name",{enumerable:!0,get:i(function(){return Ke.Name},"get")});var Nr=jn();Object.defineProperty(A,"Scope",{enumerable:!0,get:i(function(){return Nr.Scope},"get")});Object.defineProperty(A,"ValueScope",{enumerable:!0,get:i(function(){return Nr.ValueScope},"get")});Object.defineProperty(A,"ValueScopeName",{enumerable:!0,get:i(function(){return Nr.ValueScopeName},"get")});Object.defineProperty(A,"varKinds",{enumerable:!0,get:i(function(){return Nr.varKinds},"get")});A.operators={GT:new C._Code(">"),GTE:new C._Code(">="),LT:new C._Code("<"),LTE:new C._Code("<="),EQ:new C._Code("==="),NEQ:new C._Code("!=="),NOT:new C._Code("!"),OR:new C._Code("||"),AND:new C._Code("&&"),ADD:new C._Code("+")};var Ce=class{static{i(this,"Node")}optimizeNodes(){return this}optimizeNames(t,r){return this}},qn=class extends Ce{static{i(this,"Def")}constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Pe.varKinds.var:this.varKind,a=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${a};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=yt(this.rhs,t,r)),this}get names(){return this.rhs instanceof C._CodeOrName?this.rhs.names:{}}},Or=class extends Ce{static{i(this,"Assign")}constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof C.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=yt(this.rhs,t,r),this}get names(){let t=this.lhs instanceof C.Name?{}:{...this.lhs.names};return Tr(t,this.rhs)}},On=class extends Or{static{i(this,"AssignOp")}constructor(t,r,n,a){super(t,n,a),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},An=class extends Ce{static{i(this,"Label")}constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Tn=class extends Ce{static{i(this,"Break")}constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Nn=class extends Ce{static{i(this,"Throw")}constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Hn=class extends Ce{static{i(this,"AnyCode")}constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=yt(this.code,t,r),this}get names(){return this.code instanceof C._CodeOrName?this.code.names:{}}},Vt=class extends Ce{static{i(this,"ParentNode")}constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,a=n.length;for(;a--;){let c=n[a];c.optimizeNames(t,r)||(Pu(t,c.names),n.splice(a,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>nt(t,r.names),{})}},De=class extends Vt{static{i(this,"BlockNode")}render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Cn=class extends Vt{static{i(this,"Root")}},gt=class extends De{static{i(this,"Else")}};gt.kind="else";var tt=class e extends De{static{i(this,"If")}constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new gt(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(co(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=yt(this.condition,t,r),this}get names(){let t=super.names;return Tr(t,this.condition),this.else&&nt(t,this.else.names),t}};tt.kind="if";var rt=class extends De{static{i(this,"For")}};rt.kind="for";var Dn=class extends rt{static{i(this,"ForLoop")}constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=yt(this.iteration,t,r),this}get names(){return nt(super.names,this.iteration.names)}},Mn=class extends rt{static{i(this,"ForRange")}constructor(t,r,n,a){super(),this.varKind=t,this.name=r,this.from=n,this.to=a}render(t){let r=t.es5?Pe.varKinds.var:this.varKind,{name:n,from:a,to:c}=this;return`for(${r} ${n}=${a}; ${n}<${c}; ${n}++)`+super.render(t)}get names(){let t=Tr(super.names,this.from);return Tr(t,this.to)}},Ar=class extends rt{static{i(this,"ForIter")}constructor(t,r,n,a){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=a}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=yt(this.iterable,t,r),this}get names(){return nt(super.names,this.iterable.names)}},Kt=class extends De{static{i(this,"Func")}constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Kt.kind="func";var Lt=class extends Vt{static{i(this,"Return")}render(t){return"return "+super.render(t)}};Lt.kind="return";var zn=class extends De{static{i(this,"Try")}render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,a;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(a=this.finally)===null||a===void 0||a.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&nt(t,this.catch.names),this.finally&&nt(t,this.finally.names),t}},Ft=class extends De{static{i(this,"Catch")}constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ft.kind="catch";var Ut=class extends De{static{i(this,"Finally")}render(t){return"finally"+super.render(t)}};Ut.kind="finally";var Vn=class{static{i(this,"CodeGen")}constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
3
|
-
`:""},this._extScope=t,this._scope=new Pe.Scope({parent:t}),this._nodes=[new Cn]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,a){let c=this._scope.toName(r);return n!==void 0&&a&&(this._constants[c.str]=n),this._leafNode(new qn(t,c,n)),c}const(t,r,n){return this._def(Pe.varKinds.const,t,r,n)}let(t,r,n){return this._def(Pe.varKinds.let,t,r,n)}var(t,r,n){return this._def(Pe.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Or(t,r,n))}add(t,r){return this._leafNode(new On(t,A.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==C.nil&&this._leafNode(new Hn(t)),this}object(...t){let r=["{"];for(let[n,a]of t)r.length>1&&r.push(","),r.push(n),(n!==a||this.opts.es5)&&(r.push(":"),(0,C.addCodeArg)(r,a));return r.push("}"),new C._Code(r)}if(t,r,n){if(this._blockNode(new tt(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new tt(t))}else(){return this._elseNode(new gt)}endIf(){return this._endBlockNode(tt,gt)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Dn(t),r)}forRange(t,r,n,a,c=this.opts.es5?Pe.varKinds.var:Pe.varKinds.let){let o=this._scope.toName(t);return this._for(new Mn(c,o,r,n),()=>a(o))}forOf(t,r,n,a=Pe.varKinds.const){let c=this._scope.toName(t);if(this.opts.es5){let o=r instanceof C.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,C._)`${o}.length`,l=>{this.var(c,(0,C._)`${o}[${l}]`),n(c)})}return this._for(new Ar("of",a,c,r),()=>n(c))}forIn(t,r,n,a=this.opts.es5?Pe.varKinds.var:Pe.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,C._)`Object.keys(${r})`,n);let c=this._scope.toName(t);return this._for(new Ar("in",a,c,r),()=>n(c))}endFor(){return this._endBlockNode(rt)}label(t){return this._leafNode(new An(t))}break(t){return this._leafNode(new Tn(t))}return(t){let r=new Lt;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Lt)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let a=new zn;if(this._blockNode(a),this.code(t),r){let c=this.name("e");this._currNode=a.catch=new Ft(c),r(c)}return n&&(this._currNode=a.finally=new Ut,this.code(n)),this._endBlockNode(Ft,Ut)}throw(t){return this._leafNode(new Nn(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=C.nil,n,a){return this._blockNode(new Kt(t,r,n)),a&&this.code(a).endFunc(),this}endFunc(){return this._endBlockNode(Kt)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof tt))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};A.CodeGen=Vn;function nt(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}i(nt,"addNames");function Tr(e,t){return t instanceof C._CodeOrName?nt(e,t.names):e}i(Tr,"addExprNames");function yt(e,t,r){if(e instanceof C.Name)return n(e);if(!a(e))return e;return new C._Code(e._items.reduce((c,o)=>(o instanceof C.Name&&(o=n(o)),o instanceof C._Code?c.push(...o._items):c.push(o),c),[]));function n(c){let o=r[c.str];return o===void 0||t[c.str]!==1?c:(delete t[c.str],o)}function a(c){return c instanceof C._Code&&c._items.some(o=>o instanceof C.Name&&t[o.str]===1&&r[o.str]!==void 0)}}i(yt,"optimizeExpr");function Pu(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}i(Pu,"subtractNames");function co(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,C._)`!${Kn(e)}`}i(co,"not");A.not=co;var xu=lo(A.operators.AND);function Eu(...e){return e.reduce(xu)}i(Eu,"and");A.and=Eu;var Iu=lo(A.operators.OR);function Ru(...e){return e.reduce(Iu)}i(Ru,"or");A.or=Ru;function lo(e){return(t,r)=>t===C.nil?r:r===C.nil?t:(0,C._)`${Kn(t)} ${e} ${Kn(r)}`}i(lo,"mappend");function Kn(e){return e instanceof C.Name?e:(0,C._)`(${e})`}i(Kn,"par")});var N=w(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.checkStrictMode=T.getErrorPath=T.Type=T.useFunc=T.setEvaluated=T.evaluatedPropsToName=T.mergeEvaluated=T.eachItem=T.unescapeJsonPointer=T.escapeJsonPointer=T.escapeFragment=T.unescapeFragment=T.schemaRefOrVal=T.schemaHasRulesButRef=T.schemaHasRules=T.checkUnknownRules=T.alwaysValidSchema=T.toHash=void 0;var F=j(),ju=zt();function qu(e){let t={};for(let r of e)t[r]=!0;return t}i(qu,"toHash");T.toHash=qu;function Ou(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(fo(e,t),!po(t,e.self.RULES.all))}i(Ou,"alwaysValidSchema");T.alwaysValidSchema=Ou;function fo(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let a=n.RULES.keywords;for(let c in t)a[c]||yo(e,`unknown keyword: "${c}"`)}i(fo,"checkUnknownRules");T.checkUnknownRules=fo;function po(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}i(po,"schemaHasRules");T.schemaHasRules=po;function Au(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}i(Au,"schemaHasRulesButRef");T.schemaHasRulesButRef=Au;function Tu({topSchemaRef:e,schemaPath:t},r,n,a){if(!a){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,F._)`${r}`}return(0,F._)`${e}${t}${(0,F.getProperty)(n)}`}i(Tu,"schemaRefOrVal");T.schemaRefOrVal=Tu;function Nu(e){return ho(decodeURIComponent(e))}i(Nu,"unescapeFragment");T.unescapeFragment=Nu;function Hu(e){return encodeURIComponent(Fn(e))}i(Hu,"escapeFragment");T.escapeFragment=Hu;function Fn(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}i(Fn,"escapeJsonPointer");T.escapeJsonPointer=Fn;function ho(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}i(ho,"unescapeJsonPointer");T.unescapeJsonPointer=ho;function Cu(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}i(Cu,"eachItem");T.eachItem=Cu;function uo({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(a,c,o,l)=>{let d=o===void 0?c:o instanceof F.Name?(c instanceof F.Name?e(a,c,o):t(a,c,o),o):c instanceof F.Name?(t(a,o,c),c):r(c,o);return l===F.Name&&!(d instanceof F.Name)?n(a,d):d}}i(uo,"makeMergeEvaluated");T.mergeEvaluated={props:uo({mergeNames:i((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,F._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,F._)`${r} || {}`).code((0,F._)`Object.assign(${r}, ${t})`))}),"mergeNames"),mergeToName:i((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,F._)`${r} || {}`),Un(e,r,t))}),"mergeToName"),mergeValues:i((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:go}),items:uo({mergeNames:i((e,t,r)=>e.if((0,F._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,F._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),"mergeNames"),mergeToName:i((e,t,r)=>e.if((0,F._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,F._)`${r} > ${t} ? ${r} : ${t}`)),"mergeToName"),mergeValues:i((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:i((e,t)=>e.var("items",t),"resultToName")})};function go(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,F._)`{}`);return t!==void 0&&Un(e,r,t),r}i(go,"evaluatedPropsToName");T.evaluatedPropsToName=go;function Un(e,t,r){Object.keys(r).forEach(n=>e.assign((0,F._)`${t}${(0,F.getProperty)(n)}`,!0))}i(Un,"setEvaluated");T.setEvaluated=Un;var mo={};function Du(e,t){return e.scopeValue("func",{ref:t,code:mo[t.code]||(mo[t.code]=new ju._Code(t.code))})}i(Du,"useFunc");T.useFunc=Du;var Ln;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ln||(T.Type=Ln={}));function Mu(e,t,r){if(e instanceof F.Name){let n=t===Ln.Num;return r?n?(0,F._)`"[" + ${e} + "]"`:(0,F._)`"['" + ${e} + "']"`:n?(0,F._)`"/" + ${e}`:(0,F._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,F.getProperty)(e).toString():"/"+Fn(e)}i(Mu,"getErrorPath");T.getErrorPath=Mu;function yo(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}i(yo,"checkStrictMode");T.checkStrictMode=yo});var ve=w(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});var re=j(),zu={data:new re.Name("data"),valCxt:new re.Name("valCxt"),instancePath:new re.Name("instancePath"),parentData:new re.Name("parentData"),parentDataProperty:new re.Name("parentDataProperty"),rootData:new re.Name("rootData"),dynamicAnchors:new re.Name("dynamicAnchors"),vErrors:new re.Name("vErrors"),errors:new re.Name("errors"),this:new re.Name("this"),self:new re.Name("self"),scope:new re.Name("scope"),json:new re.Name("json"),jsonPos:new re.Name("jsonPos"),jsonLen:new re.Name("jsonLen"),jsonPart:new re.Name("jsonPart")};Gn.default=zu});var Gt=w(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.extendErrors=ne.resetErrorsCount=ne.reportExtraError=ne.reportError=ne.keyword$DataError=ne.keywordError=void 0;var M=j(),Hr=N(),se=ve();ne.keywordError={message:i(({keyword:e})=>(0,M.str)`must pass "${e}" keyword validation`,"message")};ne.keyword$DataError={message:i(({keyword:e,schemaType:t})=>t?(0,M.str)`"${e}" keyword must be ${t} ($data)`:(0,M.str)`"${e}" keyword is invalid ($data)`,"message")};function Vu(e,t=ne.keywordError,r,n){let{it:a}=e,{gen:c,compositeRule:o,allErrors:l}=a,d=_o(e,t,r);n??(o||l)?vo(c,d):bo(a,(0,M._)`[${d}]`)}i(Vu,"reportError");ne.reportError=Vu;function Ku(e,t=ne.keywordError,r){let{it:n}=e,{gen:a,compositeRule:c,allErrors:o}=n,l=_o(e,t,r);vo(a,l),c||o||bo(n,se.default.vErrors)}i(Ku,"reportExtraError");ne.reportExtraError=Ku;function Lu(e,t){e.assign(se.default.errors,t),e.if((0,M._)`${se.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,M._)`${se.default.vErrors}.length`,t),()=>e.assign(se.default.vErrors,null)))}i(Lu,"resetErrorsCount");ne.resetErrorsCount=Lu;function Fu({gen:e,keyword:t,schemaValue:r,data:n,errsCount:a,it:c}){if(a===void 0)throw new Error("ajv implementation error");let o=e.name("err");e.forRange("i",a,se.default.errors,l=>{e.const(o,(0,M._)`${se.default.vErrors}[${l}]`),e.if((0,M._)`${o}.instancePath === undefined`,()=>e.assign((0,M._)`${o}.instancePath`,(0,M.strConcat)(se.default.instancePath,c.errorPath))),e.assign((0,M._)`${o}.schemaPath`,(0,M.str)`${c.errSchemaPath}/${t}`),c.opts.verbose&&(e.assign((0,M._)`${o}.schema`,r),e.assign((0,M._)`${o}.data`,n))})}i(Fu,"extendErrors");ne.extendErrors=Fu;function vo(e,t){let r=e.const("err",t);e.if((0,M._)`${se.default.vErrors} === null`,()=>e.assign(se.default.vErrors,(0,M._)`[${r}]`),(0,M._)`${se.default.vErrors}.push(${r})`),e.code((0,M._)`${se.default.errors}++`)}i(vo,"addError");function bo(e,t){let{gen:r,validateName:n,schemaEnv:a}=e;a.$async?r.throw((0,M._)`new ${e.ValidationError}(${t})`):(r.assign((0,M._)`${n}.errors`,t),r.return(!1))}i(bo,"returnErrors");var at={keyword:new M.Name("keyword"),schemaPath:new M.Name("schemaPath"),params:new M.Name("params"),propertyName:new M.Name("propertyName"),message:new M.Name("message"),schema:new M.Name("schema"),parentSchema:new M.Name("parentSchema")};function _o(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,M._)`{}`:Uu(e,t,r)}i(_o,"errorObjectCode");function Uu(e,t,r={}){let{gen:n,it:a}=e,c=[Gu(a,r),Bu(e,r)];return Ju(e,t,c),n.object(...c)}i(Uu,"errorObject");function Gu({errorPath:e},{instancePath:t}){let r=t?(0,M.str)`${e}${(0,Hr.getErrorPath)(t,Hr.Type.Str)}`:e;return[se.default.instancePath,(0,M.strConcat)(se.default.instancePath,r)]}i(Gu,"errorInstancePath");function Bu({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let a=n?t:(0,M.str)`${t}/${e}`;return r&&(a=(0,M.str)`${a}${(0,Hr.getErrorPath)(r,Hr.Type.Str)}`),[at.schemaPath,a]}i(Bu,"errorSchemaPath");function Ju(e,{params:t,message:r},n){let{keyword:a,data:c,schemaValue:o,it:l}=e,{opts:d,propertyName:u,topSchemaRef:f,schemaPath:m}=l;n.push([at.keyword,a],[at.params,typeof t=="function"?t(e):t||(0,M._)`{}`]),d.messages&&n.push([at.message,typeof r=="function"?r(e):r]),d.verbose&&n.push([at.schema,o],[at.parentSchema,(0,M._)`${f}${m}`],[se.default.data,c]),u&&n.push([at.propertyName,u])}i(Ju,"extraErrorProps")});var $o=w(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.boolOrEmptySchema=vt.topBoolOrEmptySchema=void 0;var Wu=Gt(),Xu=j(),Yu=ve(),Zu={message:"boolean schema is false"};function Qu(e){let{gen:t,schema:r,validateName:n}=e;r===!1?wo(e,!1):typeof r=="object"&&r.$async===!0?t.return(Yu.default.data):(t.assign((0,Xu._)`${n}.errors`,null),t.return(!0))}i(Qu,"topBoolOrEmptySchema");vt.topBoolOrEmptySchema=Qu;function ed(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),wo(e)):r.var(t,!0)}i(ed,"boolOrEmptySchema");vt.boolOrEmptySchema=ed;function wo(e,t){let{gen:r,data:n}=e,a={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Wu.reportError)(a,Zu,void 0,t)}i(wo,"falseSchemaError")});var Bn=w(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getRules=bt.isJSONType=void 0;var td=["string","number","integer","boolean","null","object","array"],rd=new Set(td);function nd(e){return typeof e=="string"&&rd.has(e)}i(nd,"isJSONType");bt.isJSONType=nd;function ad(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}i(ad,"getRules");bt.getRules=ad});var Jn=w(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.shouldUseRule=Le.shouldUseGroup=Le.schemaHasRulesForType=void 0;function sd({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&ko(e,n)}i(sd,"schemaHasRulesForType");Le.schemaHasRulesForType=sd;function ko(e,t){return t.rules.some(r=>So(e,r))}i(ko,"shouldUseGroup");Le.shouldUseGroup=ko;function So(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}i(So,"shouldUseRule");Le.shouldUseRule=So});var Bt=w(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.reportTypeError=ae.checkDataTypes=ae.checkDataType=ae.coerceAndCheckDataType=ae.getJSONTypes=ae.getSchemaTypes=ae.DataType=void 0;var od=Bn(),id=Jn(),cd=Gt(),q=j(),Po=N(),_t;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(_t||(ae.DataType=_t={}));function ld(e){let t=xo(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}i(ld,"getSchemaTypes");ae.getSchemaTypes=ld;function xo(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(od.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}i(xo,"getJSONTypes");ae.getJSONTypes=xo;function ud(e,t){let{gen:r,data:n,opts:a}=e,c=dd(t,a.coerceTypes),o=t.length>0&&!(c.length===0&&t.length===1&&(0,id.schemaHasRulesForType)(e,t[0]));if(o){let l=Xn(t,n,a.strictNumbers,_t.Wrong);r.if(l,()=>{c.length?md(e,t,c):Yn(e)})}return o}i(ud,"coerceAndCheckDataType");ae.coerceAndCheckDataType=ud;var Eo=new Set(["string","number","integer","boolean","null"]);function dd(e,t){return t?e.filter(r=>Eo.has(r)||t==="array"&&r==="array"):[]}i(dd,"coerceToTypes");function md(e,t,r){let{gen:n,data:a,opts:c}=e,o=n.let("dataType",(0,q._)`typeof ${a}`),l=n.let("coerced",(0,q._)`undefined`);c.coerceTypes==="array"&&n.if((0,q._)`${o} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>n.assign(a,(0,q._)`${a}[0]`).assign(o,(0,q._)`typeof ${a}`).if(Xn(t,a,c.strictNumbers),()=>n.assign(l,a))),n.if((0,q._)`${l} !== undefined`);for(let u of r)(Eo.has(u)||u==="array"&&c.coerceTypes==="array")&&d(u);n.else(),Yn(e),n.endIf(),n.if((0,q._)`${l} !== undefined`,()=>{n.assign(a,l),fd(e,l)});function d(u){switch(u){case"string":n.elseIf((0,q._)`${o} == "number" || ${o} == "boolean"`).assign(l,(0,q._)`"" + ${a}`).elseIf((0,q._)`${a} === null`).assign(l,(0,q._)`""`);return;case"number":n.elseIf((0,q._)`${o} == "boolean" || ${a} === null
|
|
4
|
-
|| (${o} == "string" && ${a} && ${a} == +${a})`).assign(l,(0,q._)`+${a}`);return;case"integer":n.elseIf((0,q._)`${o} === "boolean" || ${a} === null
|
|
5
|
-
|| (${o} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(l,(0,q._)`+${a}`);return;case"boolean":n.elseIf((0,q._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(l,!1).elseIf((0,q._)`${a} === "true" || ${a} === 1`).assign(l,!0);return;case"null":n.elseIf((0,q._)`${a} === "" || ${a} === 0 || ${a} === false`),n.assign(l,null);return;case"array":n.elseIf((0,q._)`${o} === "string" || ${o} === "number"
|
|
6
|
-
|| ${o} === "boolean" || ${a} === null`).assign(l,(0,q._)`[${a}]`)}}i(d,"coerceSpecificType")}i(md,"coerceData");function fd({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,q._)`${t} !== undefined`,()=>e.assign((0,q._)`${t}[${r}]`,n))}i(fd,"assignParentData");function Wn(e,t,r,n=_t.Correct){let a=n===_t.Correct?q.operators.EQ:q.operators.NEQ,c;switch(e){case"null":return(0,q._)`${t} ${a} null`;case"array":c=(0,q._)`Array.isArray(${t})`;break;case"object":c=(0,q._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":c=o((0,q._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":c=o();break;default:return(0,q._)`typeof ${t} ${a} ${e}`}return n===_t.Correct?c:(0,q.not)(c);function o(l=q.nil){return(0,q.and)((0,q._)`typeof ${t} == "number"`,l,r?(0,q._)`isFinite(${t})`:q.nil)}}i(Wn,"checkDataType");ae.checkDataType=Wn;function Xn(e,t,r,n){if(e.length===1)return Wn(e[0],t,r,n);let a,c=(0,Po.toHash)(e);if(c.array&&c.object){let o=(0,q._)`typeof ${t} != "object"`;a=c.null?o:(0,q._)`!${t} || ${o}`,delete c.null,delete c.array,delete c.object}else a=q.nil;c.number&&delete c.integer;for(let o in c)a=(0,q.and)(a,Wn(o,t,r,n));return a}i(Xn,"checkDataTypes");ae.checkDataTypes=Xn;var pd={message:i(({schema:e})=>`must be ${e}`,"message"),params:i(({schema:e,schemaValue:t})=>typeof e=="string"?(0,q._)`{type: ${e}}`:(0,q._)`{type: ${t}}`,"params")};function Yn(e){let t=hd(e);(0,cd.reportError)(t,pd)}i(Yn,"reportTypeError");ae.reportTypeError=Yn;function hd(e){let{gen:t,data:r,schema:n}=e,a=(0,Po.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:a,schemaValue:a,parentSchema:n,params:{},it:e}}i(hd,"getTypeErrorContext")});var Ro=w(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.assignDefaults=void 0;var wt=j(),gd=N();function yd(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let a in r)Io(e,a,r[a].default);else t==="array"&&Array.isArray(n)&&n.forEach((a,c)=>Io(e,c,a.default))}i(yd,"assignDefaults");Cr.assignDefaults=yd;function Io(e,t,r){let{gen:n,compositeRule:a,data:c,opts:o}=e;if(r===void 0)return;let l=(0,wt._)`${c}${(0,wt.getProperty)(t)}`;if(a){(0,gd.checkStrictMode)(e,`default is ignored for: ${l}`);return}let d=(0,wt._)`${l} === undefined`;o.useDefaults==="empty"&&(d=(0,wt._)`${d} || ${l} === null || ${l} === ""`),n.if(d,(0,wt._)`${l} = ${(0,wt.stringify)(r)}`)}i(Io,"assignDefault")});var be=w(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.validateUnion=L.validateArray=L.usePattern=L.callValidateCode=L.schemaProperties=L.allSchemaProperties=L.noPropertyInData=L.propertyInData=L.isOwnProperty=L.hasPropFunc=L.reportMissingProp=L.checkMissingProp=L.checkReportMissingProp=void 0;var G=j(),Zn=N(),Fe=ve(),vd=N();function bd(e,t){let{gen:r,data:n,it:a}=e;r.if(ea(r,n,t,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,G._)`${t}`},!0),e.error()})}i(bd,"checkReportMissingProp");L.checkReportMissingProp=bd;function _d({gen:e,data:t,it:{opts:r}},n,a){return(0,G.or)(...n.map(c=>(0,G.and)(ea(e,t,c,r.ownProperties),(0,G._)`${a} = ${c}`)))}i(_d,"checkMissingProp");L.checkMissingProp=_d;function wd(e,t){e.setParams({missingProperty:t},!0),e.error()}i(wd,"reportMissingProp");L.reportMissingProp=wd;function jo(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,G._)`Object.prototype.hasOwnProperty`})}i(jo,"hasPropFunc");L.hasPropFunc=jo;function Qn(e,t,r){return(0,G._)`${jo(e)}.call(${t}, ${r})`}i(Qn,"isOwnProperty");L.isOwnProperty=Qn;function $d(e,t,r,n){let a=(0,G._)`${t}${(0,G.getProperty)(r)} !== undefined`;return n?(0,G._)`${a} && ${Qn(e,t,r)}`:a}i($d,"propertyInData");L.propertyInData=$d;function ea(e,t,r,n){let a=(0,G._)`${t}${(0,G.getProperty)(r)} === undefined`;return n?(0,G.or)(a,(0,G.not)(Qn(e,t,r))):a}i(ea,"noPropertyInData");L.noPropertyInData=ea;function qo(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}i(qo,"allSchemaProperties");L.allSchemaProperties=qo;function kd(e,t){return qo(t).filter(r=>!(0,Zn.alwaysValidSchema)(e,t[r]))}i(kd,"schemaProperties");L.schemaProperties=kd;function Sd({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:a,errorPath:c},it:o},l,d,u){let f=u?(0,G._)`${e}, ${t}, ${n}${a}`:t,m=[[Fe.default.instancePath,(0,G.strConcat)(Fe.default.instancePath,c)],[Fe.default.parentData,o.parentData],[Fe.default.parentDataProperty,o.parentDataProperty],[Fe.default.rootData,Fe.default.rootData]];o.opts.dynamicRef&&m.push([Fe.default.dynamicAnchors,Fe.default.dynamicAnchors]);let p=(0,G._)`${f}, ${r.object(...m)}`;return d!==G.nil?(0,G._)`${l}.call(${d}, ${p})`:(0,G._)`${l}(${p})`}i(Sd,"callValidateCode");L.callValidateCode=Sd;var Pd=(0,G._)`new RegExp`;function xd({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:a}=t.code,c=a(r,n);return e.scopeValue("pattern",{key:c.toString(),ref:c,code:(0,G._)`${a.code==="new RegExp"?Pd:(0,vd.useFunc)(e,a)}(${r}, ${n})`})}i(xd,"usePattern");L.usePattern=xd;function Ed(e){let{gen:t,data:r,keyword:n,it:a}=e,c=t.name("valid");if(a.allErrors){let l=t.let("valid",!0);return o(()=>t.assign(l,!1)),l}return t.var(c,!0),o(()=>t.break()),c;function o(l){let d=t.const("len",(0,G._)`${r}.length`);t.forRange("i",0,d,u=>{e.subschema({keyword:n,dataProp:u,dataPropType:Zn.Type.Num},c),t.if((0,G.not)(c),l)})}i(o,"validateItems")}i(Ed,"validateArray");L.validateArray=Ed;function Id(e){let{gen:t,schema:r,keyword:n,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(d=>(0,Zn.alwaysValidSchema)(a,d))&&!a.opts.unevaluated)return;let o=t.let("valid",!1),l=t.name("_valid");t.block(()=>r.forEach((d,u)=>{let f=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},l);t.assign(o,(0,G._)`${o} || ${l}`),e.mergeValidEvaluated(f,l)||t.if((0,G.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}i(Id,"validateUnion");L.validateUnion=Id});var To=w(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.validateKeywordUsage=je.validSchemaType=je.funcKeywordCode=je.macroKeywordCode=void 0;var oe=j(),st=ve(),Rd=be(),jd=Gt();function qd(e,t){let{gen:r,keyword:n,schema:a,parentSchema:c,it:o}=e,l=t.macro.call(o.self,a,c,o),d=Ao(r,n,l);o.opts.validateSchema!==!1&&o.self.validateSchema(l,!0);let u=r.name("valid");e.subschema({schema:l,schemaPath:oe.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:d,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}i(qd,"macroKeywordCode");je.macroKeywordCode=qd;function Od(e,t){var r;let{gen:n,keyword:a,schema:c,parentSchema:o,$data:l,it:d}=e;Td(d,t);let u=!l&&t.compile?t.compile.call(d.self,c,o,d):t.validate,f=Ao(n,a,u),m=n.let("valid");e.block$data(m,p),e.ok((r=t.valid)!==null&&r!==void 0?r:m);function p(){if(t.errors===!1)y(),t.modifying&&Oo(e),v(()=>e.error());else{let $=t.async?h():g();t.modifying&&Oo(e),v(()=>Ad(e,$))}}i(p,"validateKeyword");function h(){let $=n.let("ruleErrs",null);return n.try(()=>y((0,oe._)`await `),R=>n.assign(m,!1).if((0,oe._)`${R} instanceof ${d.ValidationError}`,()=>n.assign($,(0,oe._)`${R}.errors`),()=>n.throw(R))),$}i(h,"validateAsync");function g(){let $=(0,oe._)`${f}.errors`;return n.assign($,null),y(oe.nil),$}i(g,"validateSync");function y($=t.async?(0,oe._)`await `:oe.nil){let R=d.opts.passContext?st.default.this:st.default.self,E=!("compile"in t&&!l||t.schema===!1);n.assign(m,(0,oe._)`${$}${(0,Rd.callValidateCode)(e,f,R,E)}`,t.modifying)}i(y,"assignValid");function v($){var R;n.if((0,oe.not)((R=t.valid)!==null&&R!==void 0?R:m),$)}i(v,"reportErrs")}i(Od,"funcKeywordCode");je.funcKeywordCode=Od;function Oo(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,oe._)`${n.parentData}[${n.parentDataProperty}]`))}i(Oo,"modifyData");function Ad(e,t){let{gen:r}=e;r.if((0,oe._)`Array.isArray(${t})`,()=>{r.assign(st.default.vErrors,(0,oe._)`${st.default.vErrors} === null ? ${t} : ${st.default.vErrors}.concat(${t})`).assign(st.default.errors,(0,oe._)`${st.default.vErrors}.length`),(0,jd.extendErrors)(e)},()=>e.error())}i(Ad,"addErrs");function Td({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}i(Td,"checkAsyncKeyword");function Ao(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,oe.stringify)(r)})}i(Ao,"useKeyword");function Nd(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}i(Nd,"validSchemaType");je.validSchemaType=Nd;function Hd({schema:e,opts:t,self:r,errSchemaPath:n},a,c){if(Array.isArray(a.keyword)?!a.keyword.includes(c):a.keyword!==c)throw new Error("ajv implementation error");let o=a.dependencies;if(o?.some(l=>!Object.prototype.hasOwnProperty.call(e,l)))throw new Error(`parent schema must have dependencies of ${c}: ${o.join(",")}`);if(a.validateSchema&&!a.validateSchema(e[c])){let d=`keyword "${c}" value is invalid at path "${n}": `+r.errorsText(a.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(d);else throw new Error(d)}}i(Hd,"validateKeywordUsage");je.validateKeywordUsage=Hd});var Ho=w(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.extendSubschemaMode=Ue.extendSubschemaData=Ue.getSubschema=void 0;var qe=j(),No=N();function Cd(e,{keyword:t,schemaProp:r,schema:n,schemaPath:a,errSchemaPath:c,topSchemaRef:o}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let l=e.schema[t];return r===void 0?{schema:l,schemaPath:(0,qe._)`${e.schemaPath}${(0,qe.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:l[r],schemaPath:(0,qe._)`${e.schemaPath}${(0,qe.getProperty)(t)}${(0,qe.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,No.escapeFragment)(r)}`}}if(n!==void 0){if(a===void 0||c===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:a,topSchemaRef:o,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')}i(Cd,"getSubschema");Ue.getSubschema=Cd;function Dd(e,t,{dataProp:r,dataPropType:n,data:a,dataTypes:c,propertyName:o}){if(a!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:l}=t;if(r!==void 0){let{errorPath:u,dataPathArr:f,opts:m}=t,p=l.let("data",(0,qe._)`${t.data}${(0,qe.getProperty)(r)}`,!0);d(p),e.errorPath=(0,qe.str)`${u}${(0,No.getErrorPath)(r,n,m.jsPropertySyntax)}`,e.parentDataProperty=(0,qe._)`${r}`,e.dataPathArr=[...f,e.parentDataProperty]}if(a!==void 0){let u=a instanceof qe.Name?a:l.let("data",a,!0);d(u),o!==void 0&&(e.propertyName=o)}c&&(e.dataTypes=c);function d(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}i(d,"dataContextProps")}i(Dd,"extendSubschemaData");Ue.extendSubschemaData=Dd;function Md(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:a,allErrors:c}){n!==void 0&&(e.compositeRule=n),a!==void 0&&(e.createErrors=a),c!==void 0&&(e.allErrors=c),e.jtdDiscriminator=t,e.jtdMetadata=r}i(Md,"extendSubschemaMode");Ue.extendSubschemaMode=Md});var ta=w((Yv,Co)=>{"use strict";Co.exports=i(function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,c;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(c=Object.keys(t),n=c.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,c[a]))return!1;for(a=n;a--!==0;){var o=c[a];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r},"equal")});var Mo=w((Qv,Do)=>{"use strict";var Ge=Do.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},a=r.post||function(){};Dr(t,n,a,e,"",e)};Ge.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ge.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ge.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ge.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Dr(e,t,r,n,a,c,o,l,d,u){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,a,c,o,l,d,u);for(var f in n){var m=n[f];if(Array.isArray(m)){if(f in Ge.arrayKeywords)for(var p=0;p<m.length;p++)Dr(e,t,r,m[p],a+"/"+f+"/"+p,c,a,f,n,p)}else if(f in Ge.propsKeywords){if(m&&typeof m=="object")for(var h in m)Dr(e,t,r,m[h],a+"/"+f+"/"+zd(h),c,a,f,n,h)}else(f in Ge.keywords||e.allKeys&&!(f in Ge.skipKeywords))&&Dr(e,t,r,m,a+"/"+f,c,a,f,n)}r(n,a,c,o,l,d,u)}}i(Dr,"_traverse");function zd(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}i(zd,"escapeJsonPtr")});var Jt=w(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.getSchemaRefs=de.resolveUrl=de.normalizeId=de._getFullPath=de.getFullPath=de.inlineRef=void 0;var Vd=N(),Kd=ta(),Ld=Mo(),Fd=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Ud(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ra(e):t?zo(e)<=t:!1}i(Ud,"inlineRef");de.inlineRef=Ud;var Gd=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ra(e){for(let t in e){if(Gd.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ra)||typeof r=="object"&&ra(r))return!0}return!1}i(ra,"hasRef");function zo(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!Fd.has(r)&&(typeof e[r]=="object"&&(0,Vd.eachItem)(e[r],n=>t+=zo(n)),t===1/0))return 1/0}return t}i(zo,"countKeys");function Vo(e,t="",r){r!==!1&&(t=$t(t));let n=e.parse(t);return Ko(e,n)}i(Vo,"getFullPath");de.getFullPath=Vo;function Ko(e,t){return e.serialize(t).split("#")[0]+"#"}i(Ko,"_getFullPath");de._getFullPath=Ko;var Bd=/#\/?$/;function $t(e){return e?e.replace(Bd,""):""}i($t,"normalizeId");de.normalizeId=$t;function Jd(e,t,r){return r=$t(r),e.resolve(t,r)}i(Jd,"resolveUrl");de.resolveUrl=Jd;var Wd=/^[a-z_][-a-z0-9._]*$/i;function Xd(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,a=$t(e[r]||t),c={"":a},o=Vo(n,a,!1),l={},d=new Set;return Ld(e,{allKeys:!0},(m,p,h,g)=>{if(g===void 0)return;let y=o+p,v=c[g];typeof m[r]=="string"&&(v=$.call(this,m[r])),R.call(this,m.$anchor),R.call(this,m.$dynamicAnchor),c[p]=v;function $(E){let O=this.opts.uriResolver.resolve;if(E=$t(v?O(v,E):E),d.has(E))throw f(E);d.add(E);let x=this.refs[E];return typeof x=="string"&&(x=this.refs[x]),typeof x=="object"?u(m,x.schema,E):E!==$t(y)&&(E[0]==="#"?(u(m,l[E],E),l[E]=m):this.refs[E]=y),E}i($,"addRef");function R(E){if(typeof E=="string"){if(!Wd.test(E))throw new Error(`invalid anchor "${E}"`);$.call(this,`#${E}`)}}i(R,"addAnchor")}),l;function u(m,p,h){if(p!==void 0&&!Kd(m,p))throw f(h)}i(u,"checkAmbiguosRef");function f(m){return new Error(`reference "${m}" resolves to more than one schema`)}i(f,"ambiguos")}i(Xd,"getSchemaRefs");de.getSchemaRefs=Xd});var Yt=w(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.getData=Be.KeywordCxt=Be.validateFunctionCode=void 0;var Bo=$o(),Lo=Bt(),aa=Jn(),Mr=Bt(),Yd=Ro(),Xt=To(),na=Ho(),P=j(),I=ve(),Zd=Jt(),Me=N(),Wt=Gt();function Qd(e){if(Xo(e)&&(Yo(e),Wo(e))){rm(e);return}Jo(e,()=>(0,Bo.topBoolOrEmptySchema)(e))}i(Qd,"validateFunctionCode");Be.validateFunctionCode=Qd;function Jo({gen:e,validateName:t,schema:r,schemaEnv:n,opts:a},c){a.code.es5?e.func(t,(0,P._)`${I.default.data}, ${I.default.valCxt}`,n.$async,()=>{e.code((0,P._)`"use strict"; ${Fo(r,a)}`),tm(e,a),e.code(c)}):e.func(t,(0,P._)`${I.default.data}, ${em(a)}`,n.$async,()=>e.code(Fo(r,a)).code(c))}i(Jo,"validateFunction");function em(e){return(0,P._)`{${I.default.instancePath}="", ${I.default.parentData}, ${I.default.parentDataProperty}, ${I.default.rootData}=${I.default.data}${e.dynamicRef?(0,P._)`, ${I.default.dynamicAnchors}={}`:P.nil}}={}`}i(em,"destructureValCxt");function tm(e,t){e.if(I.default.valCxt,()=>{e.var(I.default.instancePath,(0,P._)`${I.default.valCxt}.${I.default.instancePath}`),e.var(I.default.parentData,(0,P._)`${I.default.valCxt}.${I.default.parentData}`),e.var(I.default.parentDataProperty,(0,P._)`${I.default.valCxt}.${I.default.parentDataProperty}`),e.var(I.default.rootData,(0,P._)`${I.default.valCxt}.${I.default.rootData}`),t.dynamicRef&&e.var(I.default.dynamicAnchors,(0,P._)`${I.default.valCxt}.${I.default.dynamicAnchors}`)},()=>{e.var(I.default.instancePath,(0,P._)`""`),e.var(I.default.parentData,(0,P._)`undefined`),e.var(I.default.parentDataProperty,(0,P._)`undefined`),e.var(I.default.rootData,I.default.data),t.dynamicRef&&e.var(I.default.dynamicAnchors,(0,P._)`{}`)})}i(tm,"destructureValCxtES5");function rm(e){let{schema:t,opts:r,gen:n}=e;Jo(e,()=>{r.$comment&&t.$comment&&Qo(e),im(e),n.let(I.default.vErrors,null),n.let(I.default.errors,0),r.unevaluated&&nm(e),Zo(e),um(e)})}i(rm,"topSchemaObjCode");function nm(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,P._)`${r}.evaluated`),t.if((0,P._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,P._)`${e.evaluated}.props`,(0,P._)`undefined`)),t.if((0,P._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,P._)`${e.evaluated}.items`,(0,P._)`undefined`))}i(nm,"resetEvaluated");function Fo(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,P._)`/*# sourceURL=${r} */`:P.nil}i(Fo,"funcSourceUrl");function am(e,t){if(Xo(e)&&(Yo(e),Wo(e))){sm(e,t);return}(0,Bo.boolOrEmptySchema)(e,t)}i(am,"subschemaCode");function Wo({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}i(Wo,"schemaCxtHasRules");function Xo(e){return typeof e.schema!="boolean"}i(Xo,"isSchemaObj");function sm(e,t){let{schema:r,gen:n,opts:a}=e;a.$comment&&r.$comment&&Qo(e),cm(e),lm(e);let c=n.const("_errs",I.default.errors);Zo(e,c),n.var(t,(0,P._)`${c} === ${I.default.errors}`)}i(sm,"subSchemaObjCode");function Yo(e){(0,Me.checkUnknownRules)(e),om(e)}i(Yo,"checkKeywords");function Zo(e,t){if(e.opts.jtd)return Uo(e,[],!1,t);let r=(0,Lo.getSchemaTypes)(e.schema),n=(0,Lo.coerceAndCheckDataType)(e,r);Uo(e,r,!n,t)}i(Zo,"typeAndKeywords");function om(e){let{schema:t,errSchemaPath:r,opts:n,self:a}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Me.schemaHasRulesButRef)(t,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}i(om,"checkRefsAndKeywords");function im(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Me.checkStrictMode)(e,"default is ignored in the schema root")}i(im,"checkNoDefault");function cm(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Zd.resolveUrl)(e.opts.uriResolver,e.baseId,t))}i(cm,"updateContext");function lm(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}i(lm,"checkAsyncSchema");function Qo({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:a}){let c=r.$comment;if(a.$comment===!0)e.code((0,P._)`${I.default.self}.logger.log(${c})`);else if(typeof a.$comment=="function"){let o=(0,P.str)`${n}/$comment`,l=e.scopeValue("root",{ref:t.root});e.code((0,P._)`${I.default.self}.opts.$comment(${c}, ${o}, ${l}.schema)`)}}i(Qo,"commentKeyword");function um(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:a,opts:c}=e;r.$async?t.if((0,P._)`${I.default.errors} === 0`,()=>t.return(I.default.data),()=>t.throw((0,P._)`new ${a}(${I.default.vErrors})`)):(t.assign((0,P._)`${n}.errors`,I.default.vErrors),c.unevaluated&&dm(e),t.return((0,P._)`${I.default.errors} === 0`))}i(um,"returnResults");function dm({gen:e,evaluated:t,props:r,items:n}){r instanceof P.Name&&e.assign((0,P._)`${t}.props`,r),n instanceof P.Name&&e.assign((0,P._)`${t}.items`,n)}i(dm,"assignEvaluated");function Uo(e,t,r,n){let{gen:a,schema:c,data:o,allErrors:l,opts:d,self:u}=e,{RULES:f}=u;if(c.$ref&&(d.ignoreKeywordsWithRef||!(0,Me.schemaHasRulesButRef)(c,f))){a.block(()=>ti(e,"$ref",f.all.$ref.definition));return}d.jtd||mm(e,t),a.block(()=>{for(let p of f.rules)m(p);m(f.post)});function m(p){(0,aa.shouldUseGroup)(c,p)&&(p.type?(a.if((0,Mr.checkDataType)(p.type,o,d.strictNumbers)),Go(e,p),t.length===1&&t[0]===p.type&&r&&(a.else(),(0,Mr.reportTypeError)(e)),a.endIf()):Go(e,p),l||a.if((0,P._)`${I.default.errors} === ${n||0}`))}i(m,"groupKeywords")}i(Uo,"schemaKeywords");function Go(e,t){let{gen:r,schema:n,opts:{useDefaults:a}}=e;a&&(0,Yd.assignDefaults)(e,t.type),r.block(()=>{for(let c of t.rules)(0,aa.shouldUseRule)(n,c)&&ti(e,c.keyword,c.definition,t.type)})}i(Go,"iterateKeywords");function mm(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(fm(e,t),e.opts.allowUnionTypes||pm(e,t),hm(e,e.dataTypes))}i(mm,"checkStrictTypes");function fm(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{ei(e.dataTypes,r)||sa(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),ym(e,t)}}i(fm,"checkContextTypes");function pm(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&sa(e,"use allowUnionTypes to allow union type keyword")}i(pm,"checkMultipleTypes");function hm(e,t){let r=e.self.RULES.all;for(let n in r){let a=r[n];if(typeof a=="object"&&(0,aa.shouldUseRule)(e.schema,a)){let{type:c}=a.definition;c.length&&!c.some(o=>gm(t,o))&&sa(e,`missing type "${c.join(",")}" for keyword "${n}"`)}}}i(hm,"checkKeywordTypes");function gm(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}i(gm,"hasApplicableType");function ei(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}i(ei,"includesType");function ym(e,t){let r=[];for(let n of e.dataTypes)ei(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}i(ym,"narrowSchemaTypes");function sa(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Me.checkStrictMode)(e,t,e.opts.strictTypes)}i(sa,"strictTypesError");var zr=class{static{i(this,"KeywordCxt")}constructor(t,r,n){if((0,Xt.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Me.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",ri(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Xt.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",I.default.errors))}result(t,r,n){this.failResult((0,P.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,P.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,P._)`${r} !== undefined && (${(0,P.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Wt.reportExtraError:Wt.reportError)(this,this.def.error,r)}$dataError(){(0,Wt.reportError)(this,this.def.$dataError||Wt.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Wt.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=P.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=P.nil,r=P.nil){if(!this.$data)return;let{gen:n,schemaCode:a,schemaType:c,def:o}=this;n.if((0,P.or)((0,P._)`${a} === undefined`,r)),t!==P.nil&&n.assign(t,!0),(c.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==P.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:a,it:c}=this;return(0,P.or)(o(),l());function o(){if(n.length){if(!(r instanceof P.Name))throw new Error("ajv implementation error");let d=Array.isArray(n)?n:[n];return(0,P._)`${(0,Mr.checkDataTypes)(d,r,c.opts.strictNumbers,Mr.DataType.Wrong)}`}return P.nil}function l(){if(a.validateSchema){let d=t.scopeValue("validate$data",{ref:a.validateSchema});return(0,P._)`!${d}(${r})`}return P.nil}}subschema(t,r){let n=(0,na.getSubschema)(this.it,t);(0,na.extendSubschemaData)(n,this.it,t),(0,na.extendSubschemaMode)(n,t);let a={...this.it,...n,items:void 0,props:void 0};return am(a,r),a}mergeEvaluated(t,r){let{it:n,gen:a}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Me.mergeEvaluated.props(a,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Me.mergeEvaluated.items(a,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:a}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return a.if(r,()=>this.mergeEvaluated(t,P.Name)),!0}};Be.KeywordCxt=zr;function ti(e,t,r,n){let a=new zr(e,r,t);"code"in r?r.code(a,n):a.$data&&r.validate?(0,Xt.funcKeywordCode)(a,r):"macro"in r?(0,Xt.macroKeywordCode)(a,r):(r.compile||r.validate)&&(0,Xt.funcKeywordCode)(a,r)}i(ti,"keywordCode");var vm=/^\/(?:[^~]|~0|~1)*$/,bm=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ri(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let a,c;if(e==="")return I.default.rootData;if(e[0]==="/"){if(!vm.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);a=e,c=I.default.rootData}else{let u=bm.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);let f=+u[1];if(a=u[2],a==="#"){if(f>=t)throw new Error(d("property/index",f));return n[t-f]}if(f>t)throw new Error(d("data",f));if(c=r[t-f],!a)return c}let o=c,l=a.split("/");for(let u of l)u&&(c=(0,P._)`${c}${(0,P.getProperty)((0,Me.unescapeJsonPointer)(u))}`,o=(0,P._)`${o} && ${c}`);return o;function d(u,f){return`Cannot access ${u} ${f} levels up, current level is ${t}`}}i(ri,"getData");Be.getData=ri});var Vr=w(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var oa=class extends Error{static{i(this,"ValidationError")}constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};ia.default=oa});var Zt=w(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var ca=Jt(),la=class extends Error{static{i(this,"MissingRefError")}constructor(t,r,n,a){super(a||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ca.resolveUrl)(t,r,n),this.missingSchema=(0,ca.normalizeId)((0,ca.getFullPath)(t,this.missingRef))}};ua.default=la});var Qt=w(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.resolveSchema=_e.getCompilingSchema=_e.resolveRef=_e.compileSchema=_e.SchemaEnv=void 0;var xe=j(),_m=Vr(),ot=ve(),Ee=Jt(),ni=N(),wm=Yt(),kt=class{static{i(this,"SchemaEnv")}constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Ee.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};_e.SchemaEnv=kt;function ma(e){let t=ai.call(this,e);if(t)return t;let r=(0,Ee.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:a}=this.opts.code,{ownProperties:c}=this.opts,o=new xe.CodeGen(this.scope,{es5:n,lines:a,ownProperties:c}),l;e.$async&&(l=o.scopeValue("Error",{ref:_m.default,code:(0,xe._)`require("ajv/dist/runtime/validation_error").default`}));let d=o.scopeName("validate");e.validateName=d;let u={gen:o,allErrors:this.opts.allErrors,data:ot.default.data,parentData:ot.default.parentData,parentDataProperty:ot.default.parentDataProperty,dataNames:[ot.default.data],dataPathArr:[xe.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,xe.stringify)(e.schema)}:{ref:e.schema}),validateName:d,ValidationError:l,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:xe.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,xe._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,wm.validateFunctionCode)(u),o.optimize(this.opts.code.optimize);let m=o.toString();f=`${o.scopeRefs(ot.default.scope)}return ${m}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let h=new Function(`${ot.default.self}`,`${ot.default.scope}`,f)(this,this.scope.get());if(this.scope.value(d,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:d,validateCode:m,scopeValues:o._values}),this.opts.unevaluated){let{props:g,items:y}=u;h.evaluated={props:g instanceof xe.Name?void 0:g,items:y instanceof xe.Name?void 0:y,dynamicProps:g instanceof xe.Name,dynamicItems:y instanceof xe.Name},h.source&&(h.source.evaluated=(0,xe.stringify)(h.evaluated))}return e.validate=h,e}catch(m){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),m}finally{this._compilations.delete(e)}}i(ma,"compileSchema");_e.compileSchema=ma;function $m(e,t,r){var n;r=(0,Ee.resolveUrl)(this.opts.uriResolver,t,r);let a=e.refs[r];if(a)return a;let c=Pm.call(this,e,r);if(c===void 0){let o=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:l}=this.opts;o&&(c=new kt({schema:o,schemaId:l,root:e,baseId:t}))}if(c!==void 0)return e.refs[r]=km.call(this,c)}i($m,"resolveRef");_e.resolveRef=$m;function km(e){return(0,Ee.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:ma.call(this,e)}i(km,"inlineOrCompile");function ai(e){for(let t of this._compilations)if(Sm(t,e))return t}i(ai,"getCompilingSchema");_e.getCompilingSchema=ai;function Sm(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}i(Sm,"sameSchemaEnv");function Pm(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Kr.call(this,e,t)}i(Pm,"resolve");function Kr(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Ee._getFullPath)(this.opts.uriResolver,r),a=(0,Ee.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===a)return da.call(this,r,e);let c=(0,Ee.normalizeId)(n),o=this.refs[c]||this.schemas[c];if(typeof o=="string"){let l=Kr.call(this,e,o);return typeof l?.schema!="object"?void 0:da.call(this,r,l)}if(typeof o?.schema=="object"){if(o.validate||ma.call(this,o),c===(0,Ee.normalizeId)(t)){let{schema:l}=o,{schemaId:d}=this.opts,u=l[d];return u&&(a=(0,Ee.resolveUrl)(this.opts.uriResolver,a,u)),new kt({schema:l,schemaId:d,root:e,baseId:a})}return da.call(this,r,o)}}i(Kr,"resolveSchema");_e.resolveSchema=Kr;var xm=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function da(e,{baseId:t,schema:r,root:n}){var a;if(((a=e.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(let l of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let d=r[(0,ni.unescapeFragment)(l)];if(d===void 0)return;r=d;let u=typeof r=="object"&&r[this.opts.schemaId];!xm.has(l)&&u&&(t=(0,Ee.resolveUrl)(this.opts.uriResolver,t,u))}let c;if(typeof r!="boolean"&&r.$ref&&!(0,ni.schemaHasRulesButRef)(r,this.RULES)){let l=(0,Ee.resolveUrl)(this.opts.uriResolver,t,r.$ref);c=Kr.call(this,n,l)}let{schemaId:o}=this.opts;if(c=c||new kt({schema:r,schemaId:o,root:n,baseId:t}),c.schema!==c.root.schema)return c}i(da,"getJsonPointer")});var si=w((d0,Em)=>{Em.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var ha=w((m0,di)=>{"use strict";var Im=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),ii=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),fa=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),ci=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),Rm=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function pa(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}i(pa,"stringArrayToHexStripped");var jm=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function oi(e){return e.length=0,!0}i(oi,"consumeIsZone");function qm(e,t,r){if(e.length){let n=pa(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}i(qm,"consumeHextets");function Om(e){let t=0,r={error:!1,address:"",zone:""},n=[],a=[],c=!1,o=!1,l=qm;for(let d=0;d<e.length;d++){let u=e[d];if(!(u==="["||u==="]"))if(u===":"){if(c===!0&&(o=!0),!l(a,n,r))break;if(++t>7){r.error=!0;break}d>0&&e[d-1]===":"&&(c=!0),n.push(":");continue}else if(u==="%"){if(!l(a,n,r))break;l=oi}else{a.push(u);continue}}return a.length&&(l===oi?r.zone=a.join(""):o?n.push(a.join("")):n.push(pa(a))),r.address=n.join(""),r}i(Om,"getIPV6");function li(e){if(Am(e,":")<2)return{host:e,isIPV6:!1};let t=Om(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}i(li,"normalizeIPv6");function Am(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}i(Am,"findToken");function Tm(e){let t=e,r=[],n=-1,a=0;for(;a=t.length;){if(a===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(a===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(a===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}i(Tm,"removeDotSegments");var Nm={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},Hm=/[@/?#:]/g,Cm=/[@/?#]/g;function ui(e,t){let r=t?Cm:Hm;return r.lastIndex=0,e.replace(r,n=>Nm[n])}i(ui,"reescapeHostDelimiters");function Dm(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let a=e.slice(n+1,n+3);if(fa(a)){let c=a.toUpperCase(),o=String.fromCharCode(parseInt(c,16));t&&ci(o)?r+=o:r+="%"+c,n+=2;continue}}r+=e[n]}return r}i(Dm,"normalizePercentEncoding");function Mm(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(fa(n)){let a=n.toUpperCase(),c=String.fromCharCode(parseInt(a,16));c!=="."&&ci(c)?t+=c:t+="%"+a,r+=2;continue}}Rm(e[r])?t+=e[r]:t+=escape(e[r])}return t}i(Mm,"normalizePathEncoding");function zm(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(fa(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}i(zm,"escapePreservingEscapes");function Vm(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!ii(r)){let n=li(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=ui(r,!1)}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}i(Vm,"recomposeAuthority");di.exports={nonSimpleDomain:jm,recomposeAuthority:Vm,reescapeHostDelimiters:ui,normalizePercentEncoding:Dm,normalizePathEncoding:Mm,escapePreservingEscapes:zm,removeDotSegments:Tm,isIPv4:ii,isUUID:Im,normalizeIPv6:li,stringArrayToHexStripped:pa}});var gi=w((p0,hi)=>{"use strict";var{isUUID:Km}=ha(),Lm=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,Fm=["http","https","ws","wss","urn","urn:uuid"];function Um(e){return Fm.indexOf(e)!==-1}i(Um,"isValidSchemeName");function ga(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}i(ga,"wsIsSecure");function mi(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}i(mi,"httpParse");function fi(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}i(fi,"httpSerialize");function Gm(e){return e.secure=ga(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}i(Gm,"wsParse");function Bm(e){if((e.port===(ga(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}i(Bm,"wsSerialize");function Jm(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Lm);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let a=`${n}:${t.nid||e.nid}`,c=ya(a);e.path=void 0,c&&(e=c.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}i(Jm,"urnParse");function Wm(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),a=`${r}:${t.nid||n}`,c=ya(a);c&&(e=c.serialize(e,t));let o=e,l=e.nss;return o.path=`${n||t.nid}:${l}`,t.skipEscape=!0,o}i(Wm,"urnSerialize");function Xm(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Km(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}i(Xm,"urnuuidParse");function Ym(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}i(Ym,"urnuuidSerialize");var pi={scheme:"http",domainHost:!0,parse:mi,serialize:fi},Zm={scheme:"https",domainHost:pi.domainHost,parse:mi,serialize:fi},Lr={scheme:"ws",domainHost:!0,parse:Gm,serialize:Bm},Qm={scheme:"wss",domainHost:Lr.domainHost,parse:Lr.parse,serialize:Lr.serialize},ef={scheme:"urn",parse:Jm,serialize:Wm,skipNormalize:!0},tf={scheme:"urn:uuid",parse:Xm,serialize:Ym,skipNormalize:!0},Fr={http:pi,https:Zm,ws:Lr,wss:Qm,urn:ef,"urn:uuid":tf};Object.setPrototypeOf(Fr,null);function ya(e){return e&&(Fr[e]||Fr[e.toLowerCase()])||void 0}i(ya,"getSchemeHandler");hi.exports={wsIsSecure:ga,SCHEMES:Fr,isValidSchemeName:Um,getSchemeHandler:ya}});var $i=w((g0,Ur)=>{"use strict";var{normalizeIPv6:rf,removeDotSegments:er,recomposeAuthority:nf,normalizePercentEncoding:af,normalizePathEncoding:sf,escapePreservingEscapes:of,reescapeHostDelimiters:cf,isIPv4:lf,nonSimpleDomain:uf}=ha(),{SCHEMES:df,getSchemeHandler:vi}=gi();function mf(e,t){return typeof e=="string"?e=yf(e,t):typeof e=="object"&&(e=St(it(e,t),t)),e}i(mf,"normalize");function ff(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},a=bi(St(e,n),St(t,n),n,!0);return n.skipEscape=!0,it(a,n)}i(ff,"resolve");function bi(e,t,r,n){let a={};return n||(e=St(it(e,r),r),t=St(it(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=er(t.path||""),a.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=er(t.path||""),a.query=t.query):(t.path?(t.path[0]==="/"?a.path=er(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?a.path="/"+t.path:e.path?a.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:a.path=t.path,a.path=er(a.path)),a.query=t.query):(a.path=e.path,t.query!==void 0?a.query=t.query:a.query=e.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}i(bi,"resolveComponent");function pf(e,t,r){let n=yi(e,r),a=yi(t,r);return n!==void 0&&a!==void 0&&n.toLowerCase()===a.toLowerCase()}i(pf,"equal");function it(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),a=[],c=vi(n.scheme||r.scheme);c&&c.serialize&&c.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=af(r.path):(r.path=of(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&a.push(r.scheme,":");let o=nf(r);if(o!==void 0&&(n.reference!=="suffix"&&a.push("//"),a.push(o),r.path&&r.path[0]!=="/"&&a.push("/")),r.path!==void 0){let l=r.path;!n.absolutePath&&(!c||!c.absolutePath)&&(l=er(l)),o===void 0&&l[0]==="/"&&l[1]==="/"&&(l="/%2F"+l.slice(2)),a.push(l)}return r.query!==void 0&&a.push("?",r.query),r.fragment!==void 0&&a.push("#",r.fragment),a.join("")}i(it,"serialize");var hf=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function gf(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}i(gf,"getParseError");function _i(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=!1,c=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let o=e.match(hf);if(o){n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5]);let l=gf(n,o);if(l!==void 0&&(n.error=n.error||l,a=!0),n.host)if(lf(n.host)===!1){let f=rf(n.host);n.host=f.host.toLowerCase(),c=f.isIPV6}else c=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let d=vi(r.scheme||n.scheme);if(!r.unicodeSupport&&(!d||!d.unicodeSupport)&&n.host&&(r.domainHost||d&&d.domainHost)&&c===!1&&uf(n.host))try{n.host=new URL("http://"+n.host).hostname}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!d||d&&!d.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=cf(unescape(n.host),c))),n.path&&(n.path=sf(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}d&&d.parse&&d.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:a}}i(_i,"parseWithStatus");function St(e,t){return _i(e,t).parsed}i(St,"parse");function yf(e,t){return wi(e,t).normalized}i(yf,"normalizeString");function wi(e,t){let{parsed:r,malformedAuthorityOrPort:n}=_i(e,t);return{normalized:n?e:it(r,t),malformedAuthorityOrPort:n}}i(wi,"normalizeStringWithStatus");function yi(e,t){if(typeof e=="string"){let{normalized:r,malformedAuthorityOrPort:n}=wi(e,t);return n?void 0:r}if(typeof e=="object")return it(e,t)}i(yi,"normalizeComparableURI");var va={SCHEMES:df,normalize:mf,resolve:ff,resolveComponent:bi,equal:pf,serialize:it,parse:St};Ur.exports=va;Ur.exports.default=va;Ur.exports.fastUri=va});var Si=w(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var ki=$i();ki.code='require("ajv/dist/runtime/uri").default';ba.default=ki});var Oi=w(Q=>{"use strict";Object.defineProperty(Q,"__esModule",{value:!0});Q.CodeGen=Q.Name=Q.nil=Q.stringify=Q.str=Q._=Q.KeywordCxt=void 0;var vf=Yt();Object.defineProperty(Q,"KeywordCxt",{enumerable:!0,get:i(function(){return vf.KeywordCxt},"get")});var Pt=j();Object.defineProperty(Q,"_",{enumerable:!0,get:i(function(){return Pt._},"get")});Object.defineProperty(Q,"str",{enumerable:!0,get:i(function(){return Pt.str},"get")});Object.defineProperty(Q,"stringify",{enumerable:!0,get:i(function(){return Pt.stringify},"get")});Object.defineProperty(Q,"nil",{enumerable:!0,get:i(function(){return Pt.nil},"get")});Object.defineProperty(Q,"Name",{enumerable:!0,get:i(function(){return Pt.Name},"get")});Object.defineProperty(Q,"CodeGen",{enumerable:!0,get:i(function(){return Pt.CodeGen},"get")});var bf=Vr(),Ri=Zt(),_f=Bn(),tr=Qt(),wf=j(),rr=Jt(),Gr=Bt(),wa=N(),Pi=si(),$f=Si(),ji=i((e,t)=>new RegExp(e,t),"defaultRegExp");ji.code="new RegExp";var kf=["removeAdditional","useDefaults","coerceTypes"],Sf=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Pf={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},xf={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},xi=200;function Ef(e){var t,r,n,a,c,o,l,d,u,f,m,p,h,g,y,v,$,R,E,O,x,X,ie,ce,Nt;let Ye=e.strict,Ht=(t=e.code)===null||t===void 0?void 0:t.optimize,kr=Ht===!0||Ht===void 0?1:Ht||0,Sr=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:ji,yn=(a=e.uriResolver)!==null&&a!==void 0?a:$f.default;return{strictSchema:(o=(c=e.strictSchema)!==null&&c!==void 0?c:Ye)!==null&&o!==void 0?o:!0,strictNumbers:(d=(l=e.strictNumbers)!==null&&l!==void 0?l:Ye)!==null&&d!==void 0?d:!0,strictTypes:(f=(u=e.strictTypes)!==null&&u!==void 0?u:Ye)!==null&&f!==void 0?f:"log",strictTuples:(p=(m=e.strictTuples)!==null&&m!==void 0?m:Ye)!==null&&p!==void 0?p:"log",strictRequired:(g=(h=e.strictRequired)!==null&&h!==void 0?h:Ye)!==null&&g!==void 0?g:!1,code:e.code?{...e.code,optimize:kr,regExp:Sr}:{optimize:kr,regExp:Sr},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:xi,loopEnum:(v=e.loopEnum)!==null&&v!==void 0?v:xi,meta:($=e.meta)!==null&&$!==void 0?$:!0,messages:(R=e.messages)!==null&&R!==void 0?R:!0,inlineRefs:(E=e.inlineRefs)!==null&&E!==void 0?E:!0,schemaId:(O=e.schemaId)!==null&&O!==void 0?O:"$id",addUsedSchema:(x=e.addUsedSchema)!==null&&x!==void 0?x:!0,validateSchema:(X=e.validateSchema)!==null&&X!==void 0?X:!0,validateFormats:(ie=e.validateFormats)!==null&&ie!==void 0?ie:!0,unicodeRegExp:(ce=e.unicodeRegExp)!==null&&ce!==void 0?ce:!0,int32range:(Nt=e.int32range)!==null&&Nt!==void 0?Nt:!0,uriResolver:yn}}i(Ef,"requiredOptions");var nr=class{static{i(this,"Ajv")}constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...Ef(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new wf.ValueScope({scope:{},prefixes:Sf,es5:r,lines:n}),this.logger=Af(t.logger);let a=t.validateFormats;t.validateFormats=!1,this.RULES=(0,_f.getRules)(),Ei.call(this,Pf,t,"NOT SUPPORTED"),Ei.call(this,xf,t,"DEPRECATED","warn"),this._metaOpts=qf.call(this),t.formats&&Rf.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&jf.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),If.call(this),t.validateFormats=a}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,a=Pi;n==="id"&&(a={...Pi},a.id=a.$id,delete a.$id),r&&t&&this.addMetaSchema(a,a[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let a=n(r);return"$async"in n||(this.errors=n.errors),a}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return a.call(this,t,r);async function a(f,m){await c.call(this,f.$schema);let p=this._addSchema(f,m);return p.validate||o.call(this,p)}async function c(f){f&&!this.getSchema(f)&&await a.call(this,{$ref:f},!0)}async function o(f){try{return this._compileSchemaEnv(f)}catch(m){if(!(m instanceof Ri.default))throw m;return l.call(this,m),await d.call(this,m.missingSchema),o.call(this,f)}}function l({missingSchema:f,missingRef:m}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${m} cannot be resolved`)}async function d(f){let m=await u.call(this,f);this.refs[f]||await c.call(this,m.$schema),this.refs[f]||this.addSchema(m,f,r)}async function u(f){let m=this._loading[f];if(m)return m;try{return await(this._loading[f]=n(f))}finally{delete this._loading[f]}}}addSchema(t,r,n,a=this.opts.validateSchema){if(Array.isArray(t)){for(let o of t)this.addSchema(o,void 0,n,a);return this}let c;if(typeof t=="object"){let{schemaId:o}=this.opts;if(c=t[o],c!==void 0&&typeof c!="string")throw new Error(`schema ${o} must be string`)}return r=(0,rr.normalizeId)(r||c),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,a,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let a=this.validate(n,t);if(!a&&r){let c="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(c);else throw new Error(c)}return a}getSchema(t){let r;for(;typeof(r=Ii.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,a=new tr.SchemaEnv({schema:{},schemaId:n});if(r=tr.resolveSchema.call(this,a,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Ii.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,rr.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Nf.call(this,n,r),!r)return(0,wa.eachItem)(n,c=>_a.call(this,c)),this;Cf.call(this,r);let a={...r,type:(0,Gr.getJSONTypes)(r.type),schemaType:(0,Gr.getJSONTypes)(r.schemaType)};return(0,wa.eachItem)(n,a.type.length===0?c=>_a.call(this,c,a):c=>a.type.forEach(o=>_a.call(this,c,a,o))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let a=n.rules.findIndex(c=>c.keyword===t);a>=0&&n.rules.splice(a,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(a=>`${n}${a.instancePath} ${a.message}`).reduce((a,c)=>a+r+c)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let a of r){let c=a.split("/").slice(1),o=t;for(let l of c)o=o[l];for(let l in n){let d=n[l];if(typeof d!="object")continue;let{$data:u}=d.definition,f=o[l];u&&f&&(o[l]=qi(f))}}return t}_removeAllSchemas(t,r){for(let n in t){let a=t[n];(!r||r.test(n))&&(typeof a=="string"?delete t[n]:a&&!a.meta&&(this._cache.delete(a.schema),delete t[n]))}}_addSchema(t,r,n,a=this.opts.validateSchema,c=this.opts.addUsedSchema){let o,{schemaId:l}=this.opts;if(typeof t=="object")o=t[l];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let d=this._cache.get(t);if(d!==void 0)return d;n=(0,rr.normalizeId)(o||n);let u=rr.getSchemaRefs.call(this,t,n);return d=new tr.SchemaEnv({schema:t,schemaId:l,meta:r,baseId:n,localRefs:u}),this._cache.set(d.schema,d),c&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=d),a&&this.validateSchema(t,!0),d}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):tr.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{tr.compileSchema.call(this,t)}finally{this.opts=r}}};nr.ValidationError=bf.default;nr.MissingRefError=Ri.default;Q.default=nr;function Ei(e,t,r,n="error"){for(let a in e){let c=a;c in t&&this.logger[n](`${r}: option ${a}. ${e[c]}`)}}i(Ei,"checkOptions");function Ii(e){return e=(0,rr.normalizeId)(e),this.schemas[e]||this.refs[e]}i(Ii,"getSchEnv");function If(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}i(If,"addInitialSchemas");function Rf(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}i(Rf,"addInitialFormats");function jf(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}i(jf,"addInitialKeywords");function qf(){let e={...this.opts};for(let t of kf)delete e[t];return e}i(qf,"getMetaSchemaOptions");var Of={log(){},warn(){},error(){}};function Af(e){if(e===!1)return Of;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}i(Af,"getLogger");var Tf=/^[a-z_$][a-z0-9_$:-]*$/i;function Nf(e,t){let{RULES:r}=this;if((0,wa.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!Tf.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}i(Nf,"checkKeyword");function _a(e,t,r){var n;let a=t?.post;if(r&&a)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:c}=this,o=a?c.post:c.rules.find(({type:d})=>d===r);if(o||(o={type:r,rules:[]},c.rules.push(o)),c.keywords[e]=!0,!t)return;let l={keyword:e,definition:{...t,type:(0,Gr.getJSONTypes)(t.type),schemaType:(0,Gr.getJSONTypes)(t.schemaType)}};t.before?Hf.call(this,o,l,t.before):o.rules.push(l),c.all[e]=l,(n=t.implements)===null||n===void 0||n.forEach(d=>this.addKeyword(d))}i(_a,"addRule");function Hf(e,t,r){let n=e.rules.findIndex(a=>a.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}i(Hf,"addBeforeRule");function Cf(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=qi(t)),e.validateSchema=this.compile(t,!0))}i(Cf,"keywordMetaschema");var Df={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function qi(e){return{anyOf:[e,Df]}}i(qi,"schemaOrData")});var Ai=w($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Mf={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};$a.default=Mf});var Wr=w(ct=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.callRef=ct.getValidate=void 0;var zf=Zt(),Ti=be(),me=j(),xt=ve(),Ni=Qt(),Br=N(),Vf={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:a,schemaEnv:c,validateName:o,opts:l,self:d}=n,{root:u}=c;if((r==="#"||r==="#/")&&a===u.baseId)return m();let f=Ni.resolveRef.call(d,u,a,r);if(f===void 0)throw new zf.default(n.opts.uriResolver,a,r);if(f instanceof Ni.SchemaEnv)return p(f);return h(f);function m(){if(c===u)return Jr(e,o,c,c.$async);let g=t.scopeValue("root",{ref:u});return Jr(e,(0,me._)`${g}.validate`,u,u.$async)}function p(g){let y=Hi(e,g);Jr(e,y,g,g.$async)}function h(g){let y=t.scopeValue("schema",l.code.source===!0?{ref:g,code:(0,me.stringify)(g)}:{ref:g}),v=t.name("valid"),$=e.subschema({schema:g,dataTypes:[],schemaPath:me.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated($),e.ok(v)}}};function Hi(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,me._)`${r.scopeValue("wrapper",{ref:t})}.validate`}i(Hi,"getValidate");ct.getValidate=Hi;function Jr(e,t,r,n){let{gen:a,it:c}=e,{allErrors:o,schemaEnv:l,opts:d}=c,u=d.passContext?xt.default.this:me.nil;n?f():m();function f(){if(!l.$async)throw new Error("async schema referenced by sync schema");let g=a.let("valid");a.try(()=>{a.code((0,me._)`await ${(0,Ti.callValidateCode)(e,t,u)}`),h(t),o||a.assign(g,!0)},y=>{a.if((0,me._)`!(${y} instanceof ${c.ValidationError})`,()=>a.throw(y)),p(y),o||a.assign(g,!1)}),e.ok(g)}i(f,"callAsyncRef");function m(){e.result((0,Ti.callValidateCode)(e,t,u),()=>h(t),()=>p(t))}i(m,"callSyncRef");function p(g){let y=(0,me._)`${g}.errors`;a.assign(xt.default.vErrors,(0,me._)`${xt.default.vErrors} === null ? ${y} : ${xt.default.vErrors}.concat(${y})`),a.assign(xt.default.errors,(0,me._)`${xt.default.vErrors}.length`)}i(p,"addErrorsFrom");function h(g){var y;if(!c.opts.unevaluated)return;let v=(y=r?.validate)===null||y===void 0?void 0:y.evaluated;if(c.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(c.props=Br.mergeEvaluated.props(a,v.props,c.props));else{let $=a.var("props",(0,me._)`${g}.evaluated.props`);c.props=Br.mergeEvaluated.props(a,$,c.props,me.Name)}if(c.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(c.items=Br.mergeEvaluated.items(a,v.items,c.items));else{let $=a.var("items",(0,me._)`${g}.evaluated.items`);c.items=Br.mergeEvaluated.items(a,$,c.items,me.Name)}}i(h,"addEvaluatedFrom")}i(Jr,"callRef");ct.callRef=Jr;ct.default=Vf});var Ci=w(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});var Kf=Ai(),Lf=Wr(),Ff=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Kf.default,Lf.default];ka.default=Ff});var Di=w(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var Xr=j(),Je=Xr.operators,Yr={maximum:{okStr:"<=",ok:Je.LTE,fail:Je.GT},minimum:{okStr:">=",ok:Je.GTE,fail:Je.LT},exclusiveMaximum:{okStr:"<",ok:Je.LT,fail:Je.GTE},exclusiveMinimum:{okStr:">",ok:Je.GT,fail:Je.LTE}},Uf={message:i(({keyword:e,schemaCode:t})=>(0,Xr.str)`must be ${Yr[e].okStr} ${t}`,"message"),params:i(({keyword:e,schemaCode:t})=>(0,Xr._)`{comparison: ${Yr[e].okStr}, limit: ${t}}`,"params")},Gf={keyword:Object.keys(Yr),type:"number",schemaType:"number",$data:!0,error:Uf,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Xr._)`${r} ${Yr[t].fail} ${n} || isNaN(${r})`)}};Sa.default=Gf});var Mi=w(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var ar=j(),Bf={message:i(({schemaCode:e})=>(0,ar.str)`must be multiple of ${e}`,"message"),params:i(({schemaCode:e})=>(0,ar._)`{multipleOf: ${e}}`,"params")},Jf={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Bf,code(e){let{gen:t,data:r,schemaCode:n,it:a}=e,c=a.opts.multipleOfPrecision,o=t.let("res"),l=c?(0,ar._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${c}`:(0,ar._)`${o} !== parseInt(${o})`;e.fail$data((0,ar._)`(${n} === 0 || (${o} = ${r}/${n}, ${l}))`)}};Pa.default=Jf});var Vi=w(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});function zi(e){let t=e.length,r=0,n=0,a;for(;n<t;)r++,a=e.charCodeAt(n++),a>=55296&&a<=56319&&n<t&&(a=e.charCodeAt(n),(a&64512)===56320&&n++);return r}i(zi,"ucs2length");xa.default=zi;zi.code='require("ajv/dist/runtime/ucs2length").default'});var Ki=w(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});var lt=j(),Wf=N(),Xf=Vi(),Yf={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,lt.str)`must NOT have ${r} than ${t} characters`},params:i(({schemaCode:e})=>(0,lt._)`{limit: ${e}}`,"params")},Zf={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Yf,code(e){let{keyword:t,data:r,schemaCode:n,it:a}=e,c=t==="maxLength"?lt.operators.GT:lt.operators.LT,o=a.opts.unicode===!1?(0,lt._)`${r}.length`:(0,lt._)`${(0,Wf.useFunc)(e.gen,Xf.default)}(${r})`;e.fail$data((0,lt._)`${o} ${c} ${n}`)}};Ea.default=Zf});var Li=w(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var Qf=be(),ep=N(),Et=j(),tp={message:i(({schemaCode:e})=>(0,Et.str)`must match pattern "${e}"`,"message"),params:i(({schemaCode:e})=>(0,Et._)`{pattern: ${e}}`,"params")},rp={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:tp,code(e){let{gen:t,data:r,$data:n,schema:a,schemaCode:c,it:o}=e,l=o.opts.unicodeRegExp?"u":"";if(n){let{regExp:d}=o.opts.code,u=d.code==="new RegExp"?(0,Et._)`new RegExp`:(0,ep.useFunc)(t,d),f=t.let("valid");t.try(()=>t.assign(f,(0,Et._)`${u}(${c}, ${l}).test(${r})`),()=>t.assign(f,!1)),e.fail$data((0,Et._)`!${f}`)}else{let d=(0,Qf.usePattern)(e,a);e.fail$data((0,Et._)`!${d}.test(${r})`)}}};Ia.default=rp});var Fi=w(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});var sr=j(),np={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,sr.str)`must NOT have ${r} than ${t} properties`},params:i(({schemaCode:e})=>(0,sr._)`{limit: ${e}}`,"params")},ap={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:np,code(e){let{keyword:t,data:r,schemaCode:n}=e,a=t==="maxProperties"?sr.operators.GT:sr.operators.LT;e.fail$data((0,sr._)`Object.keys(${r}).length ${a} ${n}`)}};Ra.default=ap});var Ui=w(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var or=be(),ir=j(),sp=N(),op={message:i(({params:{missingProperty:e}})=>(0,ir.str)`must have required property '${e}'`,"message"),params:i(({params:{missingProperty:e}})=>(0,ir._)`{missingProperty: ${e}}`,"params")},ip={keyword:"required",type:"object",schemaType:"array",$data:!0,error:op,code(e){let{gen:t,schema:r,schemaCode:n,data:a,$data:c,it:o}=e,{opts:l}=o;if(!c&&r.length===0)return;let d=r.length>=l.loopRequired;if(o.allErrors?u():f(),l.strictRequired){let h=e.parentSchema.properties,{definedProperties:g}=e.it;for(let y of r)if(h?.[y]===void 0&&!g.has(y)){let v=o.schemaEnv.baseId+o.errSchemaPath,$=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,sp.checkStrictMode)(o,$,o.opts.strictRequired)}}function u(){if(d||c)e.block$data(ir.nil,m);else for(let h of r)(0,or.checkReportMissingProp)(e,h)}i(u,"allErrorsMode");function f(){let h=t.let("missing");if(d||c){let g=t.let("valid",!0);e.block$data(g,()=>p(h,g)),e.ok(g)}else t.if((0,or.checkMissingProp)(e,r,h)),(0,or.reportMissingProp)(e,h),t.else()}i(f,"exitOnErrorMode");function m(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,or.noPropertyInData)(t,a,h,l.ownProperties),()=>e.error())})}i(m,"loopAllRequired");function p(h,g){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(g,(0,or.propertyInData)(t,a,h,l.ownProperties)),t.if((0,ir.not)(g),()=>{e.error(),t.break()})},ir.nil)}i(p,"loopUntilMissing")}};ja.default=ip});var Gi=w(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var cr=j(),cp={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,cr.str)`must NOT have ${r} than ${t} items`},params:i(({schemaCode:e})=>(0,cr._)`{limit: ${e}}`,"params")},lp={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:cp,code(e){let{keyword:t,data:r,schemaCode:n}=e,a=t==="maxItems"?cr.operators.GT:cr.operators.LT;e.fail$data((0,cr._)`${r}.length ${a} ${n}`)}};qa.default=lp});var Zr=w(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Bi=ta();Bi.code='require("ajv/dist/runtime/equal").default';Oa.default=Bi});var Ji=w(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var Aa=Bt(),ee=j(),up=N(),dp=Zr(),mp={message:i(({params:{i:e,j:t}})=>(0,ee.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:i(({params:{i:e,j:t}})=>(0,ee._)`{i: ${e}, j: ${t}}`,"params")},fp={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:mp,code(e){let{gen:t,data:r,$data:n,schema:a,parentSchema:c,schemaCode:o,it:l}=e;if(!n&&!a)return;let d=t.let("valid"),u=c.items?(0,Aa.getSchemaTypes)(c.items):[];e.block$data(d,f,(0,ee._)`${o} === false`),e.ok(d);function f(){let g=t.let("i",(0,ee._)`${r}.length`),y=t.let("j");e.setParams({i:g,j:y}),t.assign(d,!0),t.if((0,ee._)`${g} > 1`,()=>(m()?p:h)(g,y))}i(f,"validateUniqueItems");function m(){return u.length>0&&!u.some(g=>g==="object"||g==="array")}i(m,"canOptimize");function p(g,y){let v=t.name("item"),$=(0,Aa.checkDataTypes)(u,v,l.opts.strictNumbers,Aa.DataType.Wrong),R=t.const("indices",(0,ee._)`{}`);t.for((0,ee._)`;${g}--;`,()=>{t.let(v,(0,ee._)`${r}[${g}]`),t.if($,(0,ee._)`continue`),u.length>1&&t.if((0,ee._)`typeof ${v} == "string"`,(0,ee._)`${v} += "_"`),t.if((0,ee._)`typeof ${R}[${v}] == "number"`,()=>{t.assign(y,(0,ee._)`${R}[${v}]`),e.error(),t.assign(d,!1).break()}).code((0,ee._)`${R}[${v}] = ${g}`)})}i(p,"loopN");function h(g,y){let v=(0,up.useFunc)(t,dp.default),$=t.name("outer");t.label($).for((0,ee._)`;${g}--;`,()=>t.for((0,ee._)`${y} = ${g}; ${y}--;`,()=>t.if((0,ee._)`${v}(${r}[${g}], ${r}[${y}])`,()=>{e.error(),t.assign(d,!1).break($)})))}i(h,"loopN2")}};Ta.default=fp});var Wi=w(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Na=j(),pp=N(),hp=Zr(),gp={message:"must be equal to constant",params:i(({schemaCode:e})=>(0,Na._)`{allowedValue: ${e}}`,"params")},yp={keyword:"const",$data:!0,error:gp,code(e){let{gen:t,data:r,$data:n,schemaCode:a,schema:c}=e;n||c&&typeof c=="object"?e.fail$data((0,Na._)`!${(0,pp.useFunc)(t,hp.default)}(${r}, ${a})`):e.fail((0,Na._)`${c} !== ${r}`)}};Ha.default=yp});var Xi=w(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var lr=j(),vp=N(),bp=Zr(),_p={message:"must be equal to one of the allowed values",params:i(({schemaCode:e})=>(0,lr._)`{allowedValues: ${e}}`,"params")},wp={keyword:"enum",schemaType:"array",$data:!0,error:_p,code(e){let{gen:t,data:r,$data:n,schema:a,schemaCode:c,it:o}=e;if(!n&&a.length===0)throw new Error("enum must have non-empty array");let l=a.length>=o.opts.loopEnum,d,u=i(()=>d??(d=(0,vp.useFunc)(t,bp.default)),"getEql"),f;if(l||n)f=t.let("valid"),e.block$data(f,m);else{if(!Array.isArray(a))throw new Error("ajv implementation error");let h=t.const("vSchema",c);f=(0,lr.or)(...a.map((g,y)=>p(h,y)))}e.pass(f);function m(){t.assign(f,!1),t.forOf("v",c,h=>t.if((0,lr._)`${u()}(${r}, ${h})`,()=>t.assign(f,!0).break()))}i(m,"loopEnum");function p(h,g){let y=a[g];return typeof y=="object"&&y!==null?(0,lr._)`${u()}(${r}, ${h}[${g}])`:(0,lr._)`${r} === ${y}`}i(p,"equalCode")}};Ca.default=wp});var Yi=w(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var $p=Di(),kp=Mi(),Sp=Ki(),Pp=Li(),xp=Fi(),Ep=Ui(),Ip=Gi(),Rp=Ji(),jp=Wi(),qp=Xi(),Op=[$p.default,kp.default,Sp.default,Pp.default,xp.default,Ep.default,Ip.default,Rp.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},jp.default,qp.default];Da.default=Op});var za=w(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.validateAdditionalItems=void 0;var ut=j(),Ma=N(),Ap={message:i(({params:{len:e}})=>(0,ut.str)`must NOT have more than ${e} items`,"message"),params:i(({params:{len:e}})=>(0,ut._)`{limit: ${e}}`,"params")},Tp={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Ap,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ma.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Zi(e,n)}};function Zi(e,t){let{gen:r,schema:n,data:a,keyword:c,it:o}=e;o.items=!0;let l=r.const("len",(0,ut._)`${a}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,ut._)`${l} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ma.alwaysValidSchema)(o,n)){let u=r.var("valid",(0,ut._)`${l} <= ${t.length}`);r.if((0,ut.not)(u),()=>d(u)),e.ok(u)}function d(u){r.forRange("i",t.length,l,f=>{e.subschema({keyword:c,dataProp:f,dataPropType:Ma.Type.Num},u),o.allErrors||r.if((0,ut.not)(u),()=>r.break())})}i(d,"validateItems")}i(Zi,"validateAdditionalItems");ur.validateAdditionalItems=Zi;ur.default=Tp});var Va=w(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.validateTuple=void 0;var Qi=j(),Qr=N(),Np=be(),Hp={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return ec(e,"additionalItems",t);r.items=!0,!(0,Qr.alwaysValidSchema)(r,t)&&e.ok((0,Np.validateArray)(e))}};function ec(e,t,r=e.schema){let{gen:n,parentSchema:a,data:c,keyword:o,it:l}=e;f(a),l.opts.unevaluated&&r.length&&l.items!==!0&&(l.items=Qr.mergeEvaluated.items(n,r.length,l.items));let d=n.name("valid"),u=n.const("len",(0,Qi._)`${c}.length`);r.forEach((m,p)=>{(0,Qr.alwaysValidSchema)(l,m)||(n.if((0,Qi._)`${u} > ${p}`,()=>e.subschema({keyword:o,schemaProp:p,dataProp:p},d)),e.ok(d))});function f(m){let{opts:p,errSchemaPath:h}=l,g=r.length,y=g===m.minItems&&(g===m.maxItems||m[t]===!1);if(p.strictTuples&&!y){let v=`"${o}" is ${g}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Qr.checkStrictMode)(l,v,p.strictTuples)}}i(f,"checkStrictTuple")}i(ec,"validateTuple");dr.validateTuple=ec;dr.default=Hp});var tc=w(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var Cp=Va(),Dp={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:i(e=>(0,Cp.validateTuple)(e,"items"),"code")};Ka.default=Dp});var nc=w(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var rc=j(),Mp=N(),zp=be(),Vp=za(),Kp={message:i(({params:{len:e}})=>(0,rc.str)`must NOT have more than ${e} items`,"message"),params:i(({params:{len:e}})=>(0,rc._)`{limit: ${e}}`,"params")},Lp={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Kp,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,!(0,Mp.alwaysValidSchema)(n,t)&&(a?(0,Vp.validateAdditionalItems)(e,a):e.ok((0,zp.validateArray)(e)))}};La.default=Lp});var ac=w(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var we=j(),en=N(),Fp={message:i(({params:{min:e,max:t}})=>t===void 0?(0,we.str)`must contain at least ${e} valid item(s)`:(0,we.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:i(({params:{min:e,max:t}})=>t===void 0?(0,we._)`{minContains: ${e}}`:(0,we._)`{minContains: ${e}, maxContains: ${t}}`,"params")},Up={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Fp,code(e){let{gen:t,schema:r,parentSchema:n,data:a,it:c}=e,o,l,{minContains:d,maxContains:u}=n;c.opts.next?(o=d===void 0?1:d,l=u):o=1;let f=t.const("len",(0,we._)`${a}.length`);if(e.setParams({min:o,max:l}),l===void 0&&o===0){(0,en.checkStrictMode)(c,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&o>l){(0,en.checkStrictMode)(c,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,en.alwaysValidSchema)(c,r)){let y=(0,we._)`${f} >= ${o}`;l!==void 0&&(y=(0,we._)`${y} && ${f} <= ${l}`),e.pass(y);return}c.items=!0;let m=t.name("valid");l===void 0&&o===1?h(m,()=>t.if(m,()=>t.break())):o===0?(t.let(m,!0),l!==void 0&&t.if((0,we._)`${a}.length > 0`,p)):(t.let(m,!1),p()),e.result(m,()=>e.reset());function p(){let y=t.name("_valid"),v=t.let("count",0);h(y,()=>t.if(y,()=>g(v)))}i(p,"validateItemsWithCount");function h(y,v){t.forRange("i",0,f,$=>{e.subschema({keyword:"contains",dataProp:$,dataPropType:en.Type.Num,compositeRule:!0},y),v()})}i(h,"validateItems");function g(y){t.code((0,we._)`${y}++`),l===void 0?t.if((0,we._)`${y} >= ${o}`,()=>t.assign(m,!0).break()):(t.if((0,we._)`${y} > ${l}`,()=>t.assign(m,!1).break()),o===1?t.assign(m,!0):t.if((0,we._)`${y} >= ${o}`,()=>t.assign(m,!0)))}i(g,"checkLimits")}};Fa.default=Up});var tn=w(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.validateSchemaDeps=Oe.validatePropertyDeps=Oe.error=void 0;var Ua=j(),Gp=N(),mr=be();Oe.error={message:i(({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Ua.str)`must have ${n} ${r} when property ${e} is present`},"message"),params:i(({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Ua._)`{property: ${e},
|
|
7
|
-
missingProperty: ${n},
|
|
8
|
-
depsCount: ${t},
|
|
9
|
-
deps: ${r}}`,"params")};var Bp={keyword:"dependencies",type:"object",schemaType:"object",error:Oe.error,code(e){let[t,r]=Jp(e);sc(e,t),oc(e,r)}};function Jp({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let a=Array.isArray(e[n])?t:r;a[n]=e[n]}return[t,r]}i(Jp,"splitDependencies");function sc(e,t=e.schema){let{gen:r,data:n,it:a}=e;if(Object.keys(t).length===0)return;let c=r.let("missing");for(let o in t){let l=t[o];if(l.length===0)continue;let d=(0,mr.propertyInData)(r,n,o,a.opts.ownProperties);e.setParams({property:o,depsCount:l.length,deps:l.join(", ")}),a.allErrors?r.if(d,()=>{for(let u of l)(0,mr.checkReportMissingProp)(e,u)}):(r.if((0,Ua._)`${d} && (${(0,mr.checkMissingProp)(e,l,c)})`),(0,mr.reportMissingProp)(e,c),r.else())}}i(sc,"validatePropertyDeps");Oe.validatePropertyDeps=sc;function oc(e,t=e.schema){let{gen:r,data:n,keyword:a,it:c}=e,o=r.name("valid");for(let l in t)(0,Gp.alwaysValidSchema)(c,t[l])||(r.if((0,mr.propertyInData)(r,n,l,c.opts.ownProperties),()=>{let d=e.subschema({keyword:a,schemaProp:l},o);e.mergeValidEvaluated(d,o)},()=>r.var(o,!0)),e.ok(o))}i(oc,"validateSchemaDeps");Oe.validateSchemaDeps=oc;Oe.default=Bp});var cc=w(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var ic=j(),Wp=N(),Xp={message:"property name must be valid",params:i(({params:e})=>(0,ic._)`{propertyName: ${e.propertyName}}`,"params")},Yp={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Xp,code(e){let{gen:t,schema:r,data:n,it:a}=e;if((0,Wp.alwaysValidSchema)(a,r))return;let c=t.name("valid");t.forIn("key",n,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},c),t.if((0,ic.not)(c),()=>{e.error(!0),a.allErrors||t.break()})}),e.ok(c)}};Ga.default=Yp});var Ja=w(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});var rn=be(),Ie=j(),Zp=ve(),nn=N(),Qp={message:"must NOT have additional properties",params:i(({params:e})=>(0,Ie._)`{additionalProperty: ${e.additionalProperty}}`,"params")},eh={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Qp,code(e){let{gen:t,schema:r,parentSchema:n,data:a,errsCount:c,it:o}=e;if(!c)throw new Error("ajv implementation error");let{allErrors:l,opts:d}=o;if(o.props=!0,d.removeAdditional!=="all"&&(0,nn.alwaysValidSchema)(o,r))return;let u=(0,rn.allSchemaProperties)(n.properties),f=(0,rn.allSchemaProperties)(n.patternProperties);m(),e.ok((0,Ie._)`${c} === ${Zp.default.errors}`);function m(){t.forIn("key",a,v=>{!u.length&&!f.length?g(v):t.if(p(v),()=>g(v))})}i(m,"checkAdditionalProperties");function p(v){let $;if(u.length>8){let R=(0,nn.schemaRefOrVal)(o,n.properties,"properties");$=(0,rn.isOwnProperty)(t,R,v)}else u.length?$=(0,Ie.or)(...u.map(R=>(0,Ie._)`${v} === ${R}`)):$=Ie.nil;return f.length&&($=(0,Ie.or)($,...f.map(R=>(0,Ie._)`${(0,rn.usePattern)(e,R)}.test(${v})`))),(0,Ie.not)($)}i(p,"isAdditional");function h(v){t.code((0,Ie._)`delete ${a}[${v}]`)}i(h,"deleteAdditional");function g(v){if(d.removeAdditional==="all"||d.removeAdditional&&r===!1){h(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),l||t.break();return}if(typeof r=="object"&&!(0,nn.alwaysValidSchema)(o,r)){let $=t.name("valid");d.removeAdditional==="failing"?(y(v,$,!1),t.if((0,Ie.not)($),()=>{e.reset(),h(v)})):(y(v,$),l||t.if((0,Ie.not)($),()=>t.break()))}}i(g,"additionalPropertyCode");function y(v,$,R){let E={keyword:"additionalProperties",dataProp:v,dataPropType:nn.Type.Str};R===!1&&Object.assign(E,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(E,$)}i(y,"applyAdditionalSchema")}};Ba.default=eh});var dc=w(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var th=Yt(),lc=be(),Wa=N(),uc=Ja(),rh={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:a,it:c}=e;c.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&uc.default.code(new th.KeywordCxt(c,uc.default,"additionalProperties"));let o=(0,lc.allSchemaProperties)(r);for(let m of o)c.definedProperties.add(m);c.opts.unevaluated&&o.length&&c.props!==!0&&(c.props=Wa.mergeEvaluated.props(t,(0,Wa.toHash)(o),c.props));let l=o.filter(m=>!(0,Wa.alwaysValidSchema)(c,r[m]));if(l.length===0)return;let d=t.name("valid");for(let m of l)u(m)?f(m):(t.if((0,lc.propertyInData)(t,a,m,c.opts.ownProperties)),f(m),c.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(m),e.ok(d);function u(m){return c.opts.useDefaults&&!c.compositeRule&&r[m].default!==void 0}i(u,"hasDefault");function f(m){e.subschema({keyword:"properties",schemaProp:m,dataProp:m},d)}i(f,"applyPropertySchema")}};Xa.default=rh});var hc=w(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var mc=be(),an=j(),fc=N(),pc=N(),nh={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:a,it:c}=e,{opts:o}=c,l=(0,mc.allSchemaProperties)(r),d=l.filter(y=>(0,fc.alwaysValidSchema)(c,r[y]));if(l.length===0||d.length===l.length&&(!c.opts.unevaluated||c.props===!0))return;let u=o.strictSchema&&!o.allowMatchingProperties&&a.properties,f=t.name("valid");c.props!==!0&&!(c.props instanceof an.Name)&&(c.props=(0,pc.evaluatedPropsToName)(t,c.props));let{props:m}=c;p();function p(){for(let y of l)u&&h(y),c.allErrors?g(y):(t.var(f,!0),g(y),t.if(f))}i(p,"validatePatternProperties");function h(y){for(let v in u)new RegExp(y).test(v)&&(0,fc.checkStrictMode)(c,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}i(h,"checkMatchingProperties");function g(y){t.forIn("key",n,v=>{t.if((0,an._)`${(0,mc.usePattern)(e,y)}.test(${v})`,()=>{let $=d.includes(y);$||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:pc.Type.Str},f),c.opts.unevaluated&&m!==!0?t.assign((0,an._)`${m}[${v}]`,!0):!$&&!c.allErrors&&t.if((0,an.not)(f),()=>t.break())})})}i(g,"validateProperties")}};Ya.default=nh});var gc=w(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var ah=N(),sh={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,ah.alwaysValidSchema)(n,r)){e.fail();return}let a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Za.default=sh});var yc=w(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var oh=be(),ih={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:oh.validateUnion,error:{message:"must match a schema in anyOf"}};Qa.default=ih});var vc=w(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});var sn=j(),ch=N(),lh={message:"must match exactly one schema in oneOf",params:i(({params:e})=>(0,sn._)`{passingSchemas: ${e.passing}}`,"params")},uh={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:lh,code(e){let{gen:t,schema:r,parentSchema:n,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&n.discriminator)return;let c=r,o=t.let("valid",!1),l=t.let("passing",null),d=t.name("_valid");e.setParams({passing:l}),t.block(u),e.result(o,()=>e.reset(),()=>e.error(!0));function u(){c.forEach((f,m)=>{let p;(0,ch.alwaysValidSchema)(a,f)?t.var(d,!0):p=e.subschema({keyword:"oneOf",schemaProp:m,compositeRule:!0},d),m>0&&t.if((0,sn._)`${d} && ${o}`).assign(o,!1).assign(l,(0,sn._)`[${l}, ${m}]`).else(),t.if(d,()=>{t.assign(o,!0),t.assign(l,m),p&&e.mergeEvaluated(p,sn.Name)})})}i(u,"validateOneOf")}};es.default=uh});var bc=w(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var dh=N(),mh={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let a=t.name("valid");r.forEach((c,o)=>{if((0,dh.alwaysValidSchema)(n,c))return;let l=e.subschema({keyword:"allOf",schemaProp:o},a);e.ok(a),e.mergeEvaluated(l)})}};ts.default=mh});var $c=w(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var on=j(),wc=N(),fh={message:i(({params:e})=>(0,on.str)`must match "${e.ifClause}" schema`,"message"),params:i(({params:e})=>(0,on._)`{failingKeyword: ${e.ifClause}}`,"params")},ph={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:fh,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,wc.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let a=_c(n,"then"),c=_c(n,"else");if(!a&&!c)return;let o=t.let("valid",!0),l=t.name("_valid");if(d(),e.reset(),a&&c){let f=t.let("ifClause");e.setParams({ifClause:f}),t.if(l,u("then",f),u("else",f))}else a?t.if(l,u("then")):t.if((0,on.not)(l),u("else"));e.pass(o,()=>e.error(!0));function d(){let f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(f)}i(d,"validateIf");function u(f,m){return()=>{let p=e.subschema({keyword:f},l);t.assign(o,l),e.mergeValidEvaluated(p,o),m?t.assign(m,(0,on._)`${f}`):e.setParams({ifClause:f})}}i(u,"validateClause")}};function _c(e,t){let r=e.schema[t];return r!==void 0&&!(0,wc.alwaysValidSchema)(e,r)}i(_c,"hasSchema");rs.default=ph});var kc=w(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});var hh=N(),gh={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,hh.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};ns.default=gh});var Sc=w(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});var yh=za(),vh=tc(),bh=Va(),_h=nc(),wh=ac(),$h=tn(),kh=cc(),Sh=Ja(),Ph=dc(),xh=hc(),Eh=gc(),Ih=yc(),Rh=vc(),jh=bc(),qh=$c(),Oh=kc();function Ah(e=!1){let t=[Eh.default,Ih.default,Rh.default,jh.default,qh.default,Oh.default,kh.default,Sh.default,$h.default,Ph.default,xh.default];return e?t.push(vh.default,_h.default):t.push(yh.default,bh.default),t.push(wh.default),t}i(Ah,"getApplicator");as.default=Ah});var os=w(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.dynamicAnchor=void 0;var ss=j(),Th=ve(),Pc=Qt(),Nh=Wr(),Hh={keyword:"$dynamicAnchor",schemaType:"string",code:i(e=>xc(e,e.schema),"code")};function xc(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let a=(0,ss._)`${Th.default.dynamicAnchors}${(0,ss.getProperty)(t)}`,c=n.errSchemaPath==="#"?n.validateName:Ch(e);r.if((0,ss._)`!${a}`,()=>r.assign(a,c))}i(xc,"dynamicAnchor");fr.dynamicAnchor=xc;function Ch(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:a,baseId:c,localRefs:o,meta:l}=t.root,{schemaId:d}=n.opts,u=new Pc.SchemaEnv({schema:r,schemaId:d,root:a,baseId:c,localRefs:o,meta:l});return Pc.compileSchema.call(n,u),(0,Nh.getValidate)(e,u)}i(Ch,"_getValidate");fr.default=Hh});var is=w(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.dynamicRef=void 0;var Ec=j(),Dh=ve(),Ic=Wr(),Mh={keyword:"$dynamicRef",schemaType:"string",code:i(e=>Rc(e,e.schema),"code")};function Rc(e,t){let{gen:r,keyword:n,it:a}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let c=t.slice(1);if(a.allErrors)o();else{let d=r.let("valid",!1);o(d),e.ok(d)}function o(d){if(a.schemaEnv.root.dynamicAnchors[c]){let u=r.let("_v",(0,Ec._)`${Dh.default.dynamicAnchors}${(0,Ec.getProperty)(c)}`);r.if(u,l(u,d),l(a.validateName,d))}else l(a.validateName,d)()}i(o,"_dynamicRef");function l(d,u){return u?()=>r.block(()=>{(0,Ic.callRef)(e,d),r.let(u,!0)}):()=>(0,Ic.callRef)(e,d)}i(l,"_callRef")}i(Rc,"dynamicRef");pr.dynamicRef=Rc;pr.default=Mh});var jc=w(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});var zh=os(),Vh=N(),Kh={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,zh.dynamicAnchor)(e,""):(0,Vh.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};cs.default=Kh});var qc=w(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var Lh=is(),Fh={keyword:"$recursiveRef",schemaType:"string",code:i(e=>(0,Lh.dynamicRef)(e,e.schema),"code")};ls.default=Fh});var Oc=w(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});var Uh=os(),Gh=is(),Bh=jc(),Jh=qc(),Wh=[Uh.default,Gh.default,Bh.default,Jh.default];us.default=Wh});var Tc=w(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});var Ac=tn(),Xh={keyword:"dependentRequired",type:"object",schemaType:"object",error:Ac.error,code:i(e=>(0,Ac.validatePropertyDeps)(e),"code")};ds.default=Xh});var Nc=w(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});var Yh=tn(),Zh={keyword:"dependentSchemas",type:"object",schemaType:"object",code:i(e=>(0,Yh.validateSchemaDeps)(e),"code")};ms.default=Zh});var Hc=w(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var Qh=N(),eg={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,Qh.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};fs.default=eg});var Cc=w(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var tg=Tc(),rg=Nc(),ng=Hc(),ag=[tg.default,rg.default,ng.default];ps.default=ag});var Mc=w(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});var We=j(),Dc=N(),sg=ve(),og={message:"must NOT have unevaluated properties",params:i(({params:e})=>(0,We._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`,"params")},ig={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:og,code(e){let{gen:t,schema:r,data:n,errsCount:a,it:c}=e;if(!a)throw new Error("ajv implementation error");let{allErrors:o,props:l}=c;l instanceof We.Name?t.if((0,We._)`${l} !== true`,()=>t.forIn("key",n,m=>t.if(u(l,m),()=>d(m)))):l!==!0&&t.forIn("key",n,m=>l===void 0?d(m):t.if(f(l,m),()=>d(m))),c.props=!0,e.ok((0,We._)`${a} === ${sg.default.errors}`);function d(m){if(r===!1){e.setParams({unevaluatedProperty:m}),e.error(),o||t.break();return}if(!(0,Dc.alwaysValidSchema)(c,r)){let p=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:m,dataPropType:Dc.Type.Str},p),o||t.if((0,We.not)(p),()=>t.break())}}i(d,"unevaluatedPropCode");function u(m,p){return(0,We._)`!${m} || !${m}[${p}]`}i(u,"unevaluatedDynamic");function f(m,p){let h=[];for(let g in m)m[g]===!0&&h.push((0,We._)`${p} !== ${g}`);return(0,We.and)(...h)}i(f,"unevaluatedStatic")}};hs.default=ig});var Vc=w(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});var dt=j(),zc=N(),cg={message:i(({params:{len:e}})=>(0,dt.str)`must NOT have more than ${e} items`,"message"),params:i(({params:{len:e}})=>(0,dt._)`{limit: ${e}}`,"params")},lg={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:cg,code(e){let{gen:t,schema:r,data:n,it:a}=e,c=a.items||0;if(c===!0)return;let o=t.const("len",(0,dt._)`${n}.length`);if(r===!1)e.setParams({len:c}),e.fail((0,dt._)`${o} > ${c}`);else if(typeof r=="object"&&!(0,zc.alwaysValidSchema)(a,r)){let d=t.var("valid",(0,dt._)`${o} <= ${c}`);t.if((0,dt.not)(d),()=>l(d,c)),e.ok(d)}a.items=!0;function l(d,u){t.forRange("i",u,o,f=>{e.subschema({keyword:"unevaluatedItems",dataProp:f,dataPropType:zc.Type.Num},d),a.allErrors||t.if((0,dt.not)(d),()=>t.break())})}i(l,"validateItems")}};gs.default=lg});var Kc=w(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});var ug=Mc(),dg=Vc(),mg=[ug.default,dg.default];ys.default=mg});var Lc=w(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var W=j(),fg={message:i(({schemaCode:e})=>(0,W.str)`must match format "${e}"`,"message"),params:i(({schemaCode:e})=>(0,W._)`{format: ${e}}`,"params")},pg={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:fg,code(e,t){let{gen:r,data:n,$data:a,schema:c,schemaCode:o,it:l}=e,{opts:d,errSchemaPath:u,schemaEnv:f,self:m}=l;if(!d.validateFormats)return;a?p():h();function p(){let g=r.scopeValue("formats",{ref:m.formats,code:d.code.formats}),y=r.const("fDef",(0,W._)`${g}[${o}]`),v=r.let("fType"),$=r.let("format");r.if((0,W._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,W._)`${y}.type || "string"`).assign($,(0,W._)`${y}.validate`),()=>r.assign(v,(0,W._)`"string"`).assign($,y)),e.fail$data((0,W.or)(R(),E()));function R(){return d.strictSchema===!1?W.nil:(0,W._)`${o} && !${$}`}i(R,"unknownFmt");function E(){let O=f.$async?(0,W._)`(${y}.async ? await ${$}(${n}) : ${$}(${n}))`:(0,W._)`${$}(${n})`,x=(0,W._)`(typeof ${$} == "function" ? ${O} : ${$}.test(${n}))`;return(0,W._)`${$} && ${$} !== true && ${v} === ${t} && !${x}`}i(E,"invalidFmt")}i(p,"validate$DataFormat");function h(){let g=m.formats[c];if(!g){R();return}if(g===!0)return;let[y,v,$]=E(g);y===t&&e.pass(O());function R(){if(d.strictSchema===!1){m.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${c}" ignored in schema at path "${u}"`}}i(R,"unknownFormat");function E(x){let X=x instanceof RegExp?(0,W.regexpCode)(x):d.code.formats?(0,W._)`${d.code.formats}${(0,W.getProperty)(c)}`:void 0,ie=r.scopeValue("formats",{key:c,ref:x,code:X});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,W._)`${ie}.validate`]:["string",x,ie]}i(E,"getFormat");function O(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,W._)`await ${$}(${n})`}return typeof v=="function"?(0,W._)`${$}(${n})`:(0,W._)`${$}.test(${n})`}i(O,"validCondition")}i(h,"validateFormat")}};vs.default=pg});var Fc=w(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});var hg=Lc(),gg=[hg.default];bs.default=gg});var Uc=w(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.contentVocabulary=It.metadataVocabulary=void 0;It.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];It.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Bc=w(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var yg=Ci(),vg=Yi(),bg=Sc(),_g=Oc(),wg=Cc(),$g=Kc(),kg=Fc(),Gc=Uc(),Sg=[_g.default,yg.default,vg.default,(0,bg.default)(!0),kg.default,Gc.metadataVocabulary,Gc.contentVocabulary,wg.default,$g.default];_s.default=Sg});var Wc=w(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.DiscrError=void 0;var Jc;(function(e){e.Tag="tag",e.Mapping="mapping"})(Jc||(cn.DiscrError=Jc={}))});var Yc=w($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var Rt=j(),ws=Wc(),Xc=Qt(),Pg=Zt(),xg=N(),Eg={message:i(({params:{discrError:e,tagName:t}})=>e===ws.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:i(({params:{discrError:e,tag:t,tagName:r}})=>(0,Rt._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`,"params")},Ig={keyword:"discriminator",type:"object",schemaType:"object",error:Eg,code(e){let{gen:t,data:r,schema:n,parentSchema:a,it:c}=e,{oneOf:o}=a;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");let l=n.propertyName;if(typeof l!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");let d=t.let("valid",!1),u=t.const("tag",(0,Rt._)`${r}${(0,Rt.getProperty)(l)}`);t.if((0,Rt._)`typeof ${u} == "string"`,()=>f(),()=>e.error(!1,{discrError:ws.DiscrError.Tag,tag:u,tagName:l})),e.ok(d);function f(){let h=p();t.if(!1);for(let g in h)t.elseIf((0,Rt._)`${u} === ${g}`),t.assign(d,m(h[g]));t.else(),e.error(!1,{discrError:ws.DiscrError.Mapping,tag:u,tagName:l}),t.endIf()}i(f,"validateMapping");function m(h){let g=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},g);return e.mergeEvaluated(y,Rt.Name),g}i(m,"applyTagSchema");function p(){var h;let g={},y=$(a),v=!0;for(let O=0;O<o.length;O++){let x=o[O];if(x?.$ref&&!(0,xg.schemaHasRulesButRef)(x,c.self.RULES)){let ie=x.$ref;if(x=Xc.resolveRef.call(c.self,c.schemaEnv.root,c.baseId,ie),x instanceof Xc.SchemaEnv&&(x=x.schema),x===void 0)throw new Pg.default(c.opts.uriResolver,c.baseId,ie)}let X=(h=x?.properties)===null||h===void 0?void 0:h[l];if(typeof X!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);v=v&&(y||$(x)),R(X,O)}if(!v)throw new Error(`discriminator: "${l}" must be required`);return g;function $({required:O}){return Array.isArray(O)&&O.includes(l)}function R(O,x){if(O.const)E(O.const,x);else if(O.enum)for(let X of O.enum)E(X,x);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function E(O,x){if(typeof O!="string"||O in g)throw new Error(`discriminator: "${l}" values must be unique strings`);g[O]=x}}i(p,"getMapping")}};$s.default=Ig});var Zc=w((Zb,Rg)=>{Rg.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var Qc=w((Qb,jg)=>{jg.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var el=w((e_,qg)=>{qg.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var tl=w((t_,Og)=>{Og.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var rl=w((r_,Ag)=>{Ag.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var nl=w((n_,Tg)=>{Tg.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var al=w((a_,Ng)=>{Ng.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var sl=w((s_,Hg)=>{Hg.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var ol=w(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var Cg=Zc(),Dg=Qc(),Mg=el(),zg=tl(),Vg=rl(),Kg=nl(),Lg=al(),Fg=sl(),Ug=["/properties"];function Gg(e){return[Cg,Dg,Mg,zg,Vg,t(this,Kg),Lg,t(this,Fg)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,Ug):n}i(t,"with$data")}i(Gg,"addMetaSchema2020");ks.default=Gg});var il=w((B,Ps)=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MissingRefError=B.ValidationError=B.CodeGen=B.Name=B.nil=B.stringify=B.str=B._=B.KeywordCxt=B.Ajv2020=void 0;var Bg=Oi(),Jg=Bc(),Wg=Yc(),Xg=ol(),Ss="https://json-schema.org/draft/2020-12/schema",jt=class extends Bg.default{static{i(this,"Ajv2020")}constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),Jg.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Wg.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(Xg.default.call(this,t),this.refs["http://json-schema.org/schema"]=Ss)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ss)?Ss:void 0)}};B.Ajv2020=jt;Ps.exports=B=jt;Ps.exports.Ajv2020=jt;Object.defineProperty(B,"__esModule",{value:!0});B.default=jt;var Yg=Yt();Object.defineProperty(B,"KeywordCxt",{enumerable:!0,get:i(function(){return Yg.KeywordCxt},"get")});var qt=j();Object.defineProperty(B,"_",{enumerable:!0,get:i(function(){return qt._},"get")});Object.defineProperty(B,"str",{enumerable:!0,get:i(function(){return qt.str},"get")});Object.defineProperty(B,"stringify",{enumerable:!0,get:i(function(){return qt.stringify},"get")});Object.defineProperty(B,"nil",{enumerable:!0,get:i(function(){return qt.nil},"get")});Object.defineProperty(B,"Name",{enumerable:!0,get:i(function(){return qt.Name},"get")});Object.defineProperty(B,"CodeGen",{enumerable:!0,get:i(function(){return qt.CodeGen},"get")});var Zg=Vr();Object.defineProperty(B,"ValidationError",{enumerable:!0,get:i(function(){return Zg.default},"get")});var Qg=Zt();Object.defineProperty(B,"MissingRefError",{enumerable:!0,get:i(function(){return Qg.default},"get")})});var no=s.string().regex(/^[a-z][a-z0-9_-]{0,119}$/),ao=s.string().min(1).max(2e3).refine(e=>!e.includes("\\")&&!e.includes(":")&&!e.startsWith("/")&&e.split("/").every(t=>t!==""&&t!=="."&&t!==".."),"workflow references require portable relative paths"),uu=s.object({id:no,label:s.string().trim().min(1).max(240),description:s.string().max(4e3),inputSchema:s.record(s.string(),s.unknown()),invocation:s.discriminatedUnion("kind",[s.object({kind:s.literal("instructions"),instructions:s.string().min(1).max(1e5).refine(e=>!!e.trim())}).strict(),s.object({kind:s.literal("agent_action"),actionId:s.string().trim().min(1).max(240)}).strict()]),skillPaths:s.array(ao).max(100)}).strict(),du=s.object({schemaVersion:s.literal("openpond.profileWorkflows.v1"),workflows:s.array(uu).max(1e3)}).strict(),mu=s.object({id:s.string().trim().min(1).max(240),agentId:s.string().regex(/^[a-zA-Z0-9_-]{1,240}$/),sourceActionId:s.string().trim().min(1).max(240),inputSchema:s.record(s.string(),s.unknown())}).strict(),fu=s.object({schemaVersion:s.literal("openpond.profileWorkflowActions.v1"),actions:s.array(mu).max(200)}).strict();function pu(e){let t=du.parse(e.catalog),r=new Set;for(let n of t.workflows){if(r.has(n.id))throw new Error(`Duplicate Profile workflow id ${n.id}.`);r.add(n.id);for(let a of n.skillPaths)if(!e.sourcePaths.has(a))throw new Error(`Profile workflow ${n.id} references missing Skill ${a}.`);if(n.invocation.kind==="agent_action"&&!e.actionIds.has(n.invocation.actionId))throw new Error(`Profile workflow ${n.id} references missing action ${n.invocation.actionId}.`)}return t}i(pu,"validateProfileWorkflowCatalog");var hu=s.object({schemaVersion:s.literal("openpond.profileWorkflowBinding.v1"),profileId:s.string().trim().min(1).max(240),sourceRevision:s.string().trim().min(1).max(240),harnessRelease:D,catalogHash:b,workflowId:no}).strict(),_v=s.object({schemaVersion:s.literal("openpond.profileComponentBinding.v1"),profileId:s.string().trim().min(1).max(240),sourceRevision:s.string().trim().min(1).max(240),harnessRelease:D,target:s.discriminatedUnion("kind",[s.object({kind:s.literal("profile")}).strict(),s.object({kind:s.literal("skill"),skillPath:ao}).strict(),s.object({kind:s.literal("agent_action"),actionId:s.string().trim().min(1).max(240)}).strict()])}).strict();function so(e){let t=e.harnessRelease.files.find(o=>o.path==="workflows/catalog.json"),r=e.harnessRelease.files.find(o=>o.path==="workflows/actions.json");if(!t||t.visibility!=="policy"||!e.catalogBytes||Ct(e.catalogBytes)!==t.contentHash)throw new Error("Released Profile workflow catalog is unavailable or invalid.");if(!r||r.visibility!=="policy"||!e.actionBytes||Ct(e.actionBytes)!==r.contentHash)throw new Error("Released Profile workflow actions are unavailable or invalid.");let n=fu.parse(JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(e.actionBytes))).actions,a=new Set;for(let o of n){if(a.has(o.id))throw new Error(`Duplicate released Profile action ${o.id}.`);if(a.add(o.id),!e.harnessRelease.files.some(l=>l.path.startsWith(`agents/${o.agentId}/`)))throw new Error(`Released Profile action ${o.id} lacks its Agent source.`)}let c=pu({catalog:JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(e.catalogBytes)),sourcePaths:new Set(e.agentSnapshot.skills.map(o=>o.path)),actionIds:a});return{catalog:c,catalogHash:k(c),actions:n}}i(so,"loadReleasedProfileWorkflowCatalogAssets");function wv(e){let t=hu.parse(e.binding);if(t.harnessRelease.id!==e.harnessRelease.id||t.harnessRelease.contentHash!==e.harnessRelease.contentHash)throw new Error("Profile workflow binding differs from the released source package.");if(t.catalogHash!==e.catalogHash)throw new Error("Profile workflow catalog differs from its binding.");let r=e.harnessRelease.metadata.profile;if(!r||typeof r!="object")throw new Error("Released source lacks Profile provenance.");let n=r;if(n.id!==t.profileId||n.sourceRevision!==t.sourceRevision)throw new Error("Profile workflow binding differs from released Profile provenance.");let a=e.catalog.workflows.find(c=>c.id===t.workflowId);if(!a)throw new Error(`Profile workflow ${t.workflowId} is absent from its bound catalog.`);return a}i(wv,"resolveReleasedProfileWorkflowCatalogBinding");var cl=s.object({candidateId:s.string().min(1).max(240),frozenRevision:s.number().int().positive(),frozenHash:s.string().regex(/^[a-f0-9]{64}$/),harnessRelease:D,protectedClosureHash:s.string().regex(/^[a-f0-9]{64}$/)}).strict();var ll=s.string().trim().min(1).max(240),ey=s.string().trim().min(1).max(1e3).refine(e=>!/[\\:\0]/.test(e)&&e.split("/").every(t=>t&&t!=="."&&t!==".."&&!t.startsWith(".env")),"Metric modules must use a safe relative path."),xs=s.object({schemaVersion:s.literal("openpond.tasksetMetricPolicy.v1"),primaryMetric:ll,aggregation:s.enum(["mean_score","pass_rate","weighted_mean","custom"]),missingReward:s.enum(["zero","exclude"]),taskWeights:s.record(ll,s.number().positive().max(1e6)).optional(),customAggregator:s.object({module:ey,exportName:s.string().trim().regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/),contentHash:b,timeoutMs:s.number().int().positive().max(3e5),networkPolicy:s.literal("none")}).strict().nullable()}).strict().superRefine((e,t)=>{e.aggregation==="custom"!=(e.customAggregator!==null)&&t.addIssue({code:"custom",path:["customAggregator"],message:"Only custom aggregation requires a content-hashed module."}),(e.aggregation==="weighted_mean"?!e.taskWeights||!Object.keys(e.taskWeights).length:e.taskWeights!==void 0)&&t.addIssue({code:"custom",path:["taskWeights"],message:"Only weighted means require explicit positive task weights."})}),ty=s.object({schemaVersion:s.literal("openpond.tasksetMetricResult.v1"),runManifest:D,tasksetRelease:D,policy:xs,policyHash:b,receiptRefs:s.array(D).min(1).max(1e6),includedCount:s.number().int().nonnegative(),missingRewardCount:s.number().int().nonnegative(),excludedCount:s.number().int().nonnegative(),value:s.number().min(0).max(1).nullable()}).strict(),ry=ty.extend({contentHash:b}).strict();function p_(e){let t=ry.parse(e);if(ht(t,"Taskset metric result"),t.policyHash!==k(t.policy))throw new Error("Taskset metric policy hash differs from its policy.");if(t.includedCount+t.excludedCount!==t.receiptRefs.length||t.includedCount===0!=(t.value===null)||t.missingRewardCount>(t.policy.missingReward==="zero"?t.includedCount:t.excludedCount)||new Set(t.receiptRefs.map(r=>r.id)).size!==t.receiptRefs.length)throw new Error("Taskset metric population differs from its receipt references.")}i(p_,"assertTasksetMetricResult");var U=S,Xe=b,ul=s.object({id:U,revision:s.number().int().positive(),contentHash:Xe}).strict(),ln=s.object({kind:s.literal("owner_attested_local"),ownerActorId:U,teamId:U,executionHash:Xe,configurationHash:Xe,retainedAttemptHash:Xe,traceHash:Xe,publicationCutoffHash:Xe}).strict(),dl=ln.omit({publicationCutoffHash:!0,kind:!0}).extend({kind:s.literal("native_local")}).strict(),ny=s.object({origin:ln,executionId:U,receiptId:U,taskId:U,targetId:U,familyKey:U,split:s.enum(["train","validation","test","frozen_eval"]),input:s.record(s.string(),s.unknown()),policyVisibleContext:s.record(s.string(),s.unknown()),output:s.string().nullable(),error:s.string().nullable(),events:s.array(s.record(s.string(),s.unknown())).max(1e3),coverage:s.object({sourceEventCount:s.number().int().nonnegative().max(2e4),publishedEventCount:s.number().int().nonnegative().max(1e3),traceLimited:s.boolean(),artifactsIncluded:s.literal(!1)}).strict()}).strict().superRefine((e,t)=>{(e.events.length!==e.coverage.publishedEventCount||e.coverage.sourceEventCount<e.events.length||e.coverage.traceLimited!==e.coverage.sourceEventCount>e.events.length)&&t.addIssue({code:"custom",message:"Publication coverage must describe its actual retained event population."}),k(e.events)!==e.origin.publicationCutoffHash&&t.addIssue({code:"custom",message:"Published trace cutoff changed."})}),ay=s.object({schemaVersion:s.literal("openpond.humanLocalEvidenceExport.v1"),actorId:U,scope:U,projectId:U,dataset:ul,graderId:U,compiledGraderHash:Xe,attempts:s.array(ny).min(1).max(2),sealedAt:Y}).strict().superRefine((e,t)=>{e.attempts.some(r=>r.origin.ownerActorId!==e.actorId||r.origin.teamId!==e.scope)&&t.addIssue({code:"custom",message:"Local publication belongs to another actor/workspace."})}),sy=ay.safeExtend({contentHash:Xe}).strict().superRefine((e,t)=>{let{contentHash:r,...n}=e;k(n)!==r&&t.addIssue({code:"custom",message:"Local evidence export bytes changed."})}),Es=s.object({endpoint:s.literal("export_local"),scope:U,projectId:U,graderId:U,selections:s.array(s.object({executionId:U,receiptId:U}).strict()).min(1).max(2)}).strict(),ml=s.object({endpoint:s.literal("publish_local"),scope:U,projectId:U,operationId:U,audience:s.array(U).max(100),workspaceVisible:s.boolean(),evidence:sy}).strict(),fl=Es.omit({endpoint:!0}).extend({endpoint:s.literal("share_local"),operationId:U,audience:s.array(U).max(100),workspaceVisible:s.boolean()}).strict(),pl=s.object({endpoint:s.literal("local_publications"),scope:U,executionId:U}).strict(),hl=s.object({endpoint:s.literal("revoke_local"),scope:U,publication:ul}).strict();var yl=i((e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},"E"),oy=yl((e,t)=>{"use strict";t.exports=i(function r(n,a){if(n===a)return!0;if(n&&a&&typeof n=="object"&&typeof a=="object"){if(n.constructor!==a.constructor)return!1;var c,o,l;if(Array.isArray(n)){if(c=n.length,c!=a.length)return!1;for(o=c;o--!==0;)if(!r(n[o],a[o]))return!1;return!0}if(n.constructor===RegExp)return n.source===a.source&&n.flags===a.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===a.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===a.toString();if(l=Object.keys(n),c=l.length,c!==Object.keys(a).length)return!1;for(o=c;o--!==0;)if(!Object.prototype.hasOwnProperty.call(a,l[o]))return!1;for(o=c;o--!==0;){var d=l[o];if(!r(n[d],a[d]))return!1}return!0}return n!==n&&a!==a},"e")}),iy=yl(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=oy();t.code='require("ajv/dist/runtime/equal").default',e.default=t});var Is=V,gl={$defs:{schemaMap:{type:"object",additionalProperties:{$ref:"#"}},schemaArray:{type:"array",items:{$ref:"#"},minItems:1,maxItems:32},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0},natural:{type:"integer",minimum:0},schemaType:{enum:["array","boolean","integer","null","number","object","string"]}},type:["object","boolean"],additionalProperties:!1,properties:{$schema:{const:"https://json-schema.org/draft/2020-12/schema"},$ref:{type:"string"},$comment:{type:"string"},$defs:{$ref:"#/$defs/schemaMap"},properties:{$ref:"#/$defs/schemaMap"},dependentSchemas:{$ref:"#/$defs/schemaMap"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},prefixItems:{$ref:"#/$defs/schemaArray"},items:{$ref:"#"},additionalProperties:{$ref:"#"},not:{$ref:"#"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},contains:{$ref:"#"},unevaluatedProperties:{$ref:"#"},unevaluatedItems:{$ref:"#"},propertyNames:{$ref:"#"},type:{anyOf:[{$ref:"#/$defs/schemaType"},{type:"array",items:{$ref:"#/$defs/schemaType"},minItems:1,uniqueItems:!0}]},enum:{type:"array",minItems:1},const:!0,default:!0,title:{type:"string"},description:{type:"string"},examples:{type:"array"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},deprecated:{type:"boolean"},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/natural"},minLength:{$ref:"#/$defs/natural"},maxItems:{$ref:"#/$defs/natural"},minItems:{$ref:"#/$defs/natural"},maxContains:{$ref:"#/$defs/natural"},minContains:{$ref:"#/$defs/natural"},maxProperties:{$ref:"#/$defs/natural"},minProperties:{$ref:"#/$defs/natural"},uniqueItems:{type:"boolean"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},contentEncoding:{type:"string"},contentMediaType:{type:"string"}}},cy=Object.prototype.hasOwnProperty,ly=iy().default,H={validate:V};function pe(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:a=e,dynamicAnchors:c={}}={}){let o=null,l=0,d=pe.evaluated;if(d.dynamicProps&&(d.props=void 0),d.dynamicItems&&(d.items=void 0),l===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(let f in e){let m=l;H.validate(e[f],{instancePath:t+"/"+f.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:f,rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=m===l;if(!u)break}else return pe.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"}}],!1;return pe.errors=o,l===0}i(pe,"h");pe.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};function Z(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:a=e,dynamicAnchors:c={}}={}){let o=null,l=0,d=Z.evaluated;if(d.dynamicProps&&(d.props=void 0),d.dynamicItems&&(d.items=void 0),l===0)if(Array.isArray(e)){if(e.length>32)return Z.errors=[{instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:32}}],!1;if(e.length<1)return Z.errors=[{instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1}}],!1;{var u=!0;let f=e.length;for(let m=0;m<f;m++){let p=l;H.validate(e[m],{instancePath:t+"/"+m,parentData:e,parentDataProperty:m,rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=p===l;if(!u)break}}}else return Z.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"}}],!1;return Z.errors=o,l===0}i(Z,"v");Z.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};var uy={enum:["array","boolean","integer","null","number","object","string"]};function Ae(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:a=e,dynamicAnchors:c={}}={}){let o=null,l=0,d=Ae.evaluated;return d.dynamicProps&&(d.props=void 0),d.dynamicItems&&(d.items=void 0),e==="array"||e==="boolean"||e==="integer"||e==="null"||e==="number"||e==="object"||e==="string"?(Ae.errors=o,l===0):(Ae.errors=[{instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:uy.enum}}],!1)}i(Ae,"I");Ae.evaluated={dynamicProps:!1,dynamicItems:!1};function K(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:a=e,dynamicAnchors:c={}}={}){let o=null,l=0,d=K.evaluated;return d.dynamicProps&&(d.props=void 0),d.dynamicItems&&(d.items=void 0),typeof e=="number"&&!(e%1)&&!isNaN(e)&&isFinite(e)?l===0&&typeof e=="number"&&isFinite(e)&&(e<0||isNaN(e))?(K.errors=[{instancePath:t,schemaPath:"#/minimum",keyword:"minimum",params:{comparison:">=",limit:0}}],!1):(K.errors=o,l===0):(K.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"integer"}}],!1)}i(K,"u");K.evaluated={dynamicProps:!1,dynamicItems:!1};function $e(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:a=e,dynamicAnchors:c={}}={}){let o=null,l=0,d=$e.evaluated;if(d.dynamicProps&&(d.props=void 0),d.dynamicItems&&(d.items=void 0),l===0)if(Array.isArray(e)){var u=!0;let f=e.length;for(let m=0;m<f;m++){let p=l;if(typeof e[m]!="string")return $e.errors=[{instancePath:t+"/"+m,schemaPath:"#/items/type",keyword:"type",params:{type:"string"}}],!1;var u=p===l;if(!u)break}if(u){let m=e.length,p;if(m>1){let h={};for(;m--;){let g=e[m];if(typeof g=="string"){if(typeof h[g]=="number")return p=h[g],$e.errors=[{instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:m,j:p}}],!1;h[g]=m}}}}}else return $e.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"}}],!1;return $e.errors=o,l===0}i($e,"P");$e.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};function V(e,{instancePath:t="",parentData:r,parentDataProperty:n,rootData:a=e,dynamicAnchors:c={}}={}){let o=null,l=0,d=V.evaluated;if(d.dynamicProps&&(d.props=void 0),d.dynamicItems&&(d.items=void 0),!(e&&typeof e=="object"&&!Array.isArray(e))&&typeof e!="boolean")return V.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:gl.type}}],!1;if(l===0&&e&&typeof e=="object"&&!Array.isArray(e)){let h=l;for(let g in e)if(!cy.call(gl.properties,g))return V.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g}}],!1;if(h===l){if(e.$schema!==void 0){let g=l;if(e.$schema!=="https://json-schema.org/draft/2020-12/schema")return V.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/const",keyword:"const",params:{allowedValue:"https://json-schema.org/draft/2020-12/schema"}}],!1;var u=g===l}else var u=!0;if(u){if(e.$ref!==void 0){let y=l;if(typeof e.$ref!="string")return V.errors=[{instancePath:t+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type:"string"}}],!1;var u=y===l}else var u=!0;if(u){if(e.$comment!==void 0){let v=l;if(typeof e.$comment!="string")return V.errors=[{instancePath:t+"/$comment",schemaPath:"#/properties/%24comment/type",keyword:"type",params:{type:"string"}}],!1;var u=v===l}else var u=!0;if(u){if(e.$defs!==void 0){let $=l;pe(e.$defs,{instancePath:t+"/$defs",parentData:e,parentDataProperty:"$defs",rootData:a,dynamicAnchors:c})||(o=o===null?pe.errors:o.concat(pe.errors),l=o.length);var u=$===l}else var u=!0;if(u){if(e.properties!==void 0){let R=l;pe(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:a,dynamicAnchors:c})||(o=o===null?pe.errors:o.concat(pe.errors),l=o.length);var u=R===l}else var u=!0;if(u){if(e.dependentSchemas!==void 0){let E=l;pe(e.dependentSchemas,{instancePath:t+"/dependentSchemas",parentData:e,parentDataProperty:"dependentSchemas",rootData:a,dynamicAnchors:c})||(o=o===null?pe.errors:o.concat(pe.errors),l=o.length);var u=E===l}else var u=!0;if(u){if(e.allOf!==void 0){let O=l;Z(e.allOf,{instancePath:t+"/allOf",parentData:e,parentDataProperty:"allOf",rootData:a,dynamicAnchors:c})||(o=o===null?Z.errors:o.concat(Z.errors),l=o.length);var u=O===l}else var u=!0;if(u){if(e.anyOf!==void 0){let x=l;Z(e.anyOf,{instancePath:t+"/anyOf",parentData:e,parentDataProperty:"anyOf",rootData:a,dynamicAnchors:c})||(o=o===null?Z.errors:o.concat(Z.errors),l=o.length);var u=x===l}else var u=!0;if(u){if(e.oneOf!==void 0){let X=l;Z(e.oneOf,{instancePath:t+"/oneOf",parentData:e,parentDataProperty:"oneOf",rootData:a,dynamicAnchors:c})||(o=o===null?Z.errors:o.concat(Z.errors),l=o.length);var u=X===l}else var u=!0;if(u){if(e.prefixItems!==void 0){let ie=l;Z(e.prefixItems,{instancePath:t+"/prefixItems",parentData:e,parentDataProperty:"prefixItems",rootData:a,dynamicAnchors:c})||(o=o===null?Z.errors:o.concat(Z.errors),l=o.length);var u=ie===l}else var u=!0;if(u){if(e.items!==void 0){let ce=l;H.validate(e.items,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=ce===l}else var u=!0;if(u){if(e.additionalProperties!==void 0){let Nt=l;H.validate(e.additionalProperties,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=Nt===l}else var u=!0;if(u){if(e.not!==void 0){let Ye=l;H.validate(e.not,{instancePath:t+"/not",parentData:e,parentDataProperty:"not",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=Ye===l}else var u=!0;if(u){if(e.if!==void 0){let Ht=l;H.validate(e.if,{instancePath:t+"/if",parentData:e,parentDataProperty:"if",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=Ht===l}else var u=!0;if(u){if(e.then!==void 0){let kr=l;H.validate(e.then,{instancePath:t+"/then",parentData:e,parentDataProperty:"then",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=kr===l}else var u=!0;if(u){if(e.else!==void 0){let Sr=l;H.validate(e.else,{instancePath:t+"/else",parentData:e,parentDataProperty:"else",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=Sr===l}else var u=!0;if(u){if(e.contains!==void 0){let yn=l;H.validate(e.contains,{instancePath:t+"/contains",parentData:e,parentDataProperty:"contains",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=yn===l}else var u=!0;if(u){if(e.unevaluatedProperties!==void 0){let Wl=l;H.validate(e.unevaluatedProperties,{instancePath:t+"/unevaluatedProperties",parentData:e,parentDataProperty:"unevaluatedProperties",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=Wl===l}else var u=!0;if(u){if(e.unevaluatedItems!==void 0){let Xl=l;H.validate(e.unevaluatedItems,{instancePath:t+"/unevaluatedItems",parentData:e,parentDataProperty:"unevaluatedItems",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=Xl===l}else var u=!0;if(u){if(e.propertyNames!==void 0){let Yl=l;H.validate(e.propertyNames,{instancePath:t+"/propertyNames",parentData:e,parentDataProperty:"propertyNames",rootData:a,dynamicAnchors:c})||(o=o===null?H.validate.errors:o.concat(H.validate.errors),l=o.length);var u=Yl===l}else var u=!0;if(u){if(e.type!==void 0){let He=e.type,Pr=l,Ve=l,Ze=!1,vn=l;Ae(He,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:a,dynamicAnchors:c})||(o=o===null?Ae.errors:o.concat(Ae.errors),l=o.length);var m=vn===l;Ze=Ze||m;let xr=l;if(l===xr)if(Array.isArray(He))if(He.length<1){let he={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1}};o===null?o=[he]:o.push(he),l++}else{var f=!0;let he=He.length;for(let te=0;te<he;te++){let ge=l;Ae(He[te],{instancePath:t+"/type/"+te,parentData:He,parentDataProperty:te,rootData:a,dynamicAnchors:c})||(o=o===null?Ae.errors:o.concat(Ae.errors),l=o.length);var f=ge===l;if(!f)break}if(f){let te=He.length,ge;if(te>1){e:for(;te--;)for(ge=te;ge--;)if(ly(He[te],He[ge])){let Qe={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:te,j:ge}};o===null?o=[Qe]:o.push(Qe),l++;break e}}}}else{let he={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"}};o===null?o=[he]:o.push(he),l++}var m=xr===l;if(Ze=Ze||m,Ze)l=Ve,o!==null&&(Ve?o.length=Ve:o=null);else{let he={instancePath:t+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{}};return o===null?o=[he]:o.push(he),l++,V.errors=o,!1}var u=Pr===l}else var u=!0;if(u){if(e.enum!==void 0){let Pr=e.enum,Ve=l;if(l===Ve)if(Array.isArray(Pr)){if(Pr.length<1)return V.errors=[{instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1}}],!1}else return V.errors=[{instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"}}],!1;var u=Ve===l}else var u=!0;if(u){if(e.title!==void 0){let Ve=l;if(typeof e.title!="string")return V.errors=[{instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"}}],!1;var u=Ve===l}else var u=!0;if(u){if(e.description!==void 0){let Ze=l;if(typeof e.description!="string")return V.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"}}],!1;var u=Ze===l}else var u=!0;if(u){if(e.examples!==void 0){let vn=l;if(!Array.isArray(e.examples))return V.errors=[{instancePath:t+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type:"array"}}],!1;var u=vn===l}else var u=!0;if(u){if(e.readOnly!==void 0){let xr=l;if(typeof e.readOnly!="boolean")return V.errors=[{instancePath:t+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type:"boolean"}}],!1;var u=xr===l}else var u=!0;if(u){if(e.writeOnly!==void 0){let Zl=l;if(typeof e.writeOnly!="boolean")return V.errors=[{instancePath:t+"/writeOnly",schemaPath:"#/properties/writeOnly/type",keyword:"type",params:{type:"boolean"}}],!1;var u=Zl===l}else var u=!0;if(u){if(e.deprecated!==void 0){let he=l;if(typeof e.deprecated!="boolean")return V.errors=[{instancePath:t+"/deprecated",schemaPath:"#/properties/deprecated/type",keyword:"type",params:{type:"boolean"}}],!1;var u=he===l}else var u=!0;if(u){if(e.multipleOf!==void 0){let te=e.multipleOf,ge=l;if(l===ge)if(typeof te=="number"&&isFinite(te)){if(te<=0||isNaN(te))return V.errors=[{instancePath:t+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison:">",limit:0}}],!1}else return V.errors=[{instancePath:t+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"}}],!1;var u=ge===l}else var u=!0;if(u){if(e.maximum!==void 0){let ge=e.maximum,Qe=l;if(!(typeof ge=="number"&&isFinite(ge)))return V.errors=[{instancePath:t+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"}}],!1;var u=Qe===l}else var u=!0;if(u){if(e.exclusiveMaximum!==void 0){let Qe=e.exclusiveMaximum,Er=l;if(!(typeof Qe=="number"&&isFinite(Qe)))return V.errors=[{instancePath:t+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"}}],!1;var u=Er===l}else var u=!0;if(u){if(e.minimum!==void 0){let Er=e.minimum,Ir=l;if(!(typeof Er=="number"&&isFinite(Er)))return V.errors=[{instancePath:t+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"}}],!1;var u=Ir===l}else var u=!0;if(u){if(e.exclusiveMinimum!==void 0){let Ir=e.exclusiveMinimum,bn=l;if(!(typeof Ir=="number"&&isFinite(Ir)))return V.errors=[{instancePath:t+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"}}],!1;var u=bn===l}else var u=!0;if(u){if(e.maxLength!==void 0){let bn=l;K(e.maxLength,{instancePath:t+"/maxLength",parentData:e,parentDataProperty:"maxLength",rootData:a,dynamicAnchors:c})||(o=o===null?K.errors:o.concat(K.errors),l=o.length);var u=bn===l}else var u=!0;if(u){if(e.minLength!==void 0){let Ql=l;K(e.minLength,{instancePath:t+"/minLength",parentData:e,parentDataProperty:"minLength",rootData:a,dynamicAnchors:c})||(o=o===null?K.errors:o.concat(K.errors),l=o.length);var u=Ql===l}else var u=!0;if(u){if(e.maxItems!==void 0){let eu=l;K(e.maxItems,{instancePath:t+"/maxItems",parentData:e,parentDataProperty:"maxItems",rootData:a,dynamicAnchors:c})||(o=o===null?K.errors:o.concat(K.errors),l=o.length);var u=eu===l}else var u=!0;if(u){if(e.minItems!==void 0){let tu=l;K(e.minItems,{instancePath:t+"/minItems",parentData:e,parentDataProperty:"minItems",rootData:a,dynamicAnchors:c})||(o=o===null?K.errors:o.concat(K.errors),l=o.length);var u=tu===l}else var u=!0;if(u){if(e.maxContains!==void 0){let ru=l;K(e.maxContains,{instancePath:t+"/maxContains",parentData:e,parentDataProperty:"maxContains",rootData:a,dynamicAnchors:c})||(o=o===null?K.errors:o.concat(K.errors),l=o.length);var u=ru===l}else var u=!0;if(u){if(e.minContains!==void 0){let nu=l;K(e.minContains,{instancePath:t+"/minContains",parentData:e,parentDataProperty:"minContains",rootData:a,dynamicAnchors:c})||(o=o===null?K.errors:o.concat(K.errors),l=o.length);var u=nu===l}else var u=!0;if(u){if(e.maxProperties!==void 0){let au=l;K(e.maxProperties,{instancePath:t+"/maxProperties",parentData:e,parentDataProperty:"maxProperties",rootData:a,dynamicAnchors:c})||(o=o===null?K.errors:o.concat(K.errors),l=o.length);var u=au===l}else var u=!0;if(u){if(e.minProperties!==void 0){let su=l;K(e.minProperties,{instancePath:t+"/minProperties",parentData:e,parentDataProperty:"minProperties",rootData:a,dynamicAnchors:c})||(o=o===null?K.errors:o.concat(K.errors),l=o.length);var u=su===l}else var u=!0;if(u){if(e.uniqueItems!==void 0){let ou=l;if(typeof e.uniqueItems!="boolean")return V.errors=[{instancePath:t+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"}}],!1;var u=ou===l}else var u=!0;if(u){if(e.required!==void 0){let iu=l;$e(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:a,dynamicAnchors:c})||(o=o===null?$e.errors:o.concat($e.errors),l=o.length);var u=iu===l}else var u=!0;if(u){if(e.dependentRequired!==void 0){let ft=e.dependentRequired,pt=l;if(l===pt)if(ft&&typeof ft=="object"&&!Array.isArray(ft))for(let _n in ft){let cu=l;$e(ft[_n],{instancePath:t+"/dependentRequired/"+_n.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:ft,parentDataProperty:_n,rootData:a,dynamicAnchors:c})||(o=o===null?$e.errors:o.concat($e.errors),l=o.length);var p=cu===l;if(!p)break}else return V.errors=[{instancePath:t+"/dependentRequired",schemaPath:"#/properties/dependentRequired/type",keyword:"type",params:{type:"object"}}],!1;var u=pt===l}else var u=!0;if(u){if(e.contentEncoding!==void 0){let pt=l;if(typeof e.contentEncoding!="string")return V.errors=[{instancePath:t+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"}}],!1;var u=pt===l}else var u=!0;if(u)if(e.contentMediaType!==void 0){let pt=l;if(typeof e.contentMediaType!="string")return V.errors=[{instancePath:t+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"}}],!1;var u=pt===l}else var u=!0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return V.errors=o,l===0}i(V,"p");V.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};var Rs="https://json-schema.org/draft/2020-12/schema",vl=1048576,bl=32768,dy=new Set(["properties","$defs","dependentSchemas"]),my=new Set(["allOf","anyOf","oneOf","prefixItems"]),fy=new Set(["items","additionalProperties","not","if","then","else","contains","unevaluatedProperties","unevaluatedItems","propertyNames"]);function ke(e,t=vl){let r=[{value:e,depth:0}],n=new Set,a=0;for(;r.length;){let c=r.pop();if(c.exit){n.delete(c.value);continue}if(++a>1e5||c.depth>48)throw new Error("task_json_complexity_exceeded");if(c.value===null||typeof c.value=="string"||typeof c.value=="boolean"||typeof c.value=="number"&&Number.isFinite(c.value))continue;if(typeof c.value!="object")throw new Error("task_json_value_invalid");if(n.has(c.value))throw new Error("task_json_cycle");n.add(c.value),r.push({...c,exit:!0});let o=Object.getPrototypeOf(c.value);if(!Array.isArray(c.value)&&o!==Object.prototype&&o!==null)throw new Error("task_json_object_invalid");if(Object.getOwnPropertySymbols(c.value).length)throw new Error("task_json_symbol_invalid");if(Object.hasOwn(c.value,"toJSON"))throw new Error("task_json_serializer_invalid");if(Array.isArray(c.value)&&(c.value.length>1e4||Object.keys(c.value).length!==c.value.length))throw new Error("task_json_array_invalid");for(let[l,d]of Object.entries(Object.getOwnPropertyDescriptors(c.value))){if(d.get||d.set)throw new Error("task_json_accessor_invalid");if(Array.isArray(c.value)&&l!=="length"&&(!/^(0|[1-9]\d*)$/u.test(l)||Number(l)>=c.value.length))throw new Error("task_json_array_invalid");d.enumerable&&r.push({value:d.value,depth:c.depth+1})}}if(new TextEncoder().encode(JSON.stringify(e)).byteLength>t)throw new Error("task_json_size_exceeded")}i(ke,"assertBoundedTaskJson");function gr(e){try{return js(e),{valid:!0,issues:[]}}catch(t){return{valid:!1,issues:[{path:"",code:"task_schema_invalid",message:t instanceof Error?t.message:"Task schema is invalid."}]}}}i(gr,"validateTaskSchema");function js(e){if(ke(e,bl),hr(e,e,new Set,0,{remaining:2048}),!Is(e)){let t=Is.errors?.[0];throw new Error(`Task schema ${t?.instancePath||"/"} violates ${t?.keyword??"schema"}.`)}}i(js,"assertTaskSchema");function hr(e,t,r,n,a){if(--a.remaining<0)throw new Error("Task schema reference expansion exceeds the validation budget.");if(typeof e=="boolean")return;if(!e||typeof e!="object"||Array.isArray(e))throw new Error("A task schema must be an object or boolean.");if(n>24||r.has(e))throw new Error("Recursive or deeply nested task schemas are not supported.");let c=new Set(r).add(e),o=e;if(o.$schema!==void 0&&o.$schema!==Rs)throw new Error(`Task schemas must use ${Rs}.`);for(let[l,d]of Object.entries(o))if(l==="$ref"){if(typeof d!="string"||!d.startsWith("#/$defs/"))throw new Error("Task schema references must be local JSON pointers into $defs.");let u=t;for(let f of d.slice(2).split("/")){if(/~(?![01])/u.test(f))throw new Error("Invalid task schema JSON pointer.");let m=f.replaceAll("~1","/").replaceAll("~0","~");if(!u||typeof u!="object"||!Object.hasOwn(u,m))throw new Error(`Task schema reference ${d} is missing.`);u=u[m]}hr(u,t,c,n+1,a)}else if(dy.has(l)){if(!d||typeof d!="object"||Array.isArray(d))throw new Error(`Invalid schema map ${l}.`);for(let u of Object.values(d))hr(u,t,c,n+1,a)}else if(my.has(l)){if(!Array.isArray(d)||d.length>32)throw new Error(`Schema ${l} must contain at most 32 alternatives.`);for(let u of d)hr(u,t,c,n+1,a)}else fy.has(l)&&hr(d,t,c,n+1,a)}i(hr,"inspectSchema");var _l=lu(il(),1);var yr=new Map;function qs(e,t){try{ke(t);let r=py(e),n=r(t);return{valid:n,issues:n?[]:(r.errors??[]).slice(0,20).map(a=>({path:a.instancePath,code:a.keyword,message:a.message??"Value does not match the task schema."}))}}catch(r){return{valid:!1,issues:[{path:"",code:"task_validation_unavailable",message:r instanceof Error?r.message:"Task validation failed."}]}}}i(qs,"validateTaskValue");function py(e){js(e);let t=k(e),r=yr.get(t);if(r)return r;let a=new _l.Ajv2020({allErrors:!1,ownProperties:!0,strict:!0,strictSchema:!1,strictTypes:!1,strictTuples:!1,strictRequired:!1,validateFormats:!1,validateSchema:!1,inlineRefs:!1,loopRequired:32,loopEnum:32}).compile(e);return yr.size>=64&&yr.delete(yr.keys().next().value),yr.set(t,a),a}i(py,"validator");var wl=s.object({taskId:S,input:s.record(s.string(),s.unknown()),policyVisibleContext:s.record(s.string(),s.unknown()),expectedOutput:s.record(s.string(),s.unknown()).nullable().optional(),tags:s.array(S).max(100).optional()}).strict(),Ot=s.object({schemaVersion:s.literal("openpond.humanTaskProposal.v1"),tasks:s.array(wl).min(1).max(1e3),contentHash:b}).strict().superRefine((e,t)=>{let{contentHash:r,...n}=e;r!==k(n)&&t.addIssue({code:"custom",message:"Task proposal content hash differs."}),new Set(e.tasks.map(a=>a.taskId)).size!==e.tasks.length&&t.addIssue({code:"custom",message:"Each task may be proposed once."});try{ke(e,1048576)}catch{t.addIssue({code:"custom",message:"Task proposal exceeds retained data bounds."})}}),Os=s.object({schemaVersion:s.literal("openpond.humanTaskProposal.v1"),tasks:s.array(wl).min(1).max(1e3),contentHash:b,referenceRedacted:s.literal(!0).optional()}).strict().superRefine((e,t)=>{e.referenceRedacted?e.tasks.some(r=>r.expectedOutput!==void 0)&&t.addIssue({code:"custom",message:"Redacted proposals cannot include reference outputs."}):Ot.safeParse(e).success||t.addIssue({code:"custom",message:"Task proposal integrity differs."})});function N_(e){return!e||!e.tasks.some(t=>t.expectedOutput!==void 0)?e:{...e,referenceRedacted:!0,tasks:e.tasks.map(t=>{let{expectedOutput:r,...n}=t;return n})}}i(N_,"redactHumanTaskProposal");function H_(e,t){if(e.kind!=="author"){if(t)throw new Error("human_task_proposal_unexpected");return}if(!t)throw new Error("human_task_proposal_required");let r=e.evidence.taskIds??[];if(t.tasks.length!==r.length||t.tasks.some(n=>!r.includes(n.taskId)))throw new Error("human_task_proposal_selection_mismatch")}i(H_,"assertHumanTaskProposal");function C_(e,t){let r=new Map(t.tasks.map(n=>[n.taskId,n]));if(t.tasks.some(n=>!e.some(a=>a.id===n.taskId)))throw new Error("human_task_proposal_source_unavailable");return e.map(n=>{let a=r.get(n.id);return a?{...n,input:a.input,policyVisibleContext:a.policyVisibleContext,...a.expectedOutput===void 0?{}:{expectedOutput:a.expectedOutput},...a.tags===void 0?{}:{tags:a.tags}}:n})}i(C_,"applyHumanTaskProposal");var _=S,fe=s.object({id:_,revision:s.number().int().positive(),contentHash:b}).strict(),hy=s.discriminatedUnion("kind",[s.object({id:_,label:s.string().trim().min(1).max(500),instructions:s.string().max(2e4),required:s.boolean(),allowAbstain:s.boolean(),requireRationale:s.boolean().optional(),anchors:s.array(s.object({value:s.union([s.number(),s.string(),s.boolean()]),description:s.string().min(1).max(2e3)}).strict()).max(100).optional(),kind:s.literal("score"),minimum:s.number().finite(),maximum:s.number().finite(),step:s.number().positive().finite()}).strict().refine(e=>e.minimum<e.maximum&&e.step<=e.maximum-e.minimum,"Use an increasing raw score range and a step within that range."),s.object({id:_,label:s.string().trim().min(1).max(500),instructions:s.string().max(2e4),required:s.boolean(),allowAbstain:s.boolean(),requireRationale:s.boolean().optional(),anchors:s.array(s.object({value:s.union([s.number(),s.string(),s.boolean()]),description:s.string().min(1).max(2e3)}).strict()).max(100).optional(),kind:s.literal("category"),options:s.array(s.string().trim().min(1).max(500)).min(2).max(100)}).strict().refine(e=>new Set(e.options).size===e.options.length,"Category options must be unique."),s.object({id:_,label:s.string().trim().min(1).max(500),instructions:s.string().max(2e4),required:s.boolean(),allowAbstain:s.boolean(),requireRationale:s.boolean().optional(),anchors:s.array(s.object({value:s.union([s.number(),s.string(),s.boolean()]),description:s.string().min(1).max(2e3)}).strict()).max(100).optional(),kind:s.literal("boolean")}).strict(),s.object({id:_,label:s.string().trim().min(1).max(500),instructions:s.string().max(2e4),required:s.boolean(),allowAbstain:s.boolean(),requireRationale:s.boolean().optional(),anchors:s.array(s.object({value:s.union([s.number(),s.string(),s.boolean()]),description:s.string().min(1).max(2e3)}).strict()).max(100).optional(),kind:s.literal("text"),minimumLength:s.number().int().nonnegative().max(2e4).optional(),maximumLength:s.number().int().positive().max(2e4)}).strict(),s.object({id:_,label:s.string().trim().min(1).max(500),instructions:s.string().max(2e4),required:s.boolean(),allowAbstain:s.boolean(),requireRationale:s.boolean().optional(),anchors:s.array(s.object({value:s.union([s.number(),s.string(),s.boolean()]),description:s.string().min(1).max(2e3)}).strict()).max(100).optional(),kind:s.literal("preference"),requireStrength:s.boolean().optional(),allowTie:s.boolean()}).strict()]),dn=s.object({schemaVersion:s.literal("openpond.humanForm.v1"),mode:s.enum(["individual","pairwise"]),instructions:s.string().max(2e4),criteria:s.array(hy).min(1).max(100)}).strict().superRefine((e,t)=>{e.criteria.forEach((r,n)=>{r.kind==="text"&&(r.minimumLength??0)>r.maximumLength&&t.addIssue({code:"custom",path:["criteria",n,"minimumLength"],message:"Minimum text length must not exceed maximum length."});let a=new Set;r.anchors?.forEach((c,o)=>{let l=c.value,d=r.kind==="score"?typeof l=="number"&&Number.isFinite(l)&&l>=r.minimum&&l<=r.maximum&&Math.abs((l-r.minimum)/r.step-Math.round((l-r.minimum)/r.step))<1e-8:r.kind==="category"?typeof l=="string"&&r.options.includes(l):r.kind==="boolean"?typeof l=="boolean":r.kind==="preference"?["A","B",...r.allowTie?["tie"]:[]].includes(String(l)):typeof l=="string",u=JSON.stringify(l);(!d||a.has(u))&&t.addIssue({code:"custom",path:["criteria",n,"anchors",o,"value"],message:"Each anchor must describe a unique valid raw value."}),a.add(u)})}),new Set(e.criteria.map(r=>r.id)).size!==e.criteria.length&&t.addIssue({code:"custom",path:["criteria"],message:"Criterion IDs must be unique."}),e.mode==="individual"&&e.criteria.some(r=>r.kind==="preference")&&t.addIssue({code:"custom",path:["criteria"],message:"Preferences require an explicit pair."})}),gy=s.object({localSource:s.union([ln,dl]).optional(),recordedSource:s.object({id:_,snapshotHash:b,boundaryId:_,boundaryRevisionHash:b}).strict().optional(),experimentId:_,attemptId:_,taskId:_,targetId:_,output:fe,trace:fe.nullable(),familyKey:_,split:s.enum(["train","validation","test","frozen_eval"])}).strict(),As=s.object({publication:fe.optional(),dataset:fe,grader:fe,graderBinding:s.object({id:_,version:s.string().min(1).max(100),contentHash:b}).strict(),rubric:fe,attempts:s.array(gy).max(2),taskIds:s.array(_).min(1).max(1e3).optional()}).strict().superRefine((e,t)=>{!e.attempts.length&&!e.taskIds?.length&&t.addIssue({code:"custom",message:"Select retained attempts or exact tasks."}),e.taskIds&&new Set(e.taskIds).size!==e.taskIds.length&&t.addIssue({code:"custom",path:["taskIds"],message:"Select each task once."}),e.attempts.length===2&&(e.attempts[0].attemptId===e.attempts[1].attemptId||e.attempts[0].taskId!==e.attempts[1].taskId||e.attempts[0].familyKey!==e.attempts[1].familyKey||e.attempts[0].split!==e.attempts[1].split)&&t.addIssue({code:"custom",path:["attempts"],message:"A/B review requires distinct attempts of the same task, family and split."})}),br=s.object({criterionId:_,value:s.union([s.number().finite(),s.boolean(),s.string().max(2e4),s.null()]),abstain:s.boolean(),note:s.string().max(2e4),strength:s.enum(["slight","moderate","strong"]).optional()}).strict(),$l=s.object({approval:s.enum(["none","manager"]),minimumRaters:s.number().int().min(1).max(100),managerIds:s.array(_).max(100),reviewerIds:s.array(_).max(100),queueClaim:s.boolean(),teamVisible:s.boolean(),distinctManager:s.boolean().optional(),independentRaters:s.boolean().optional(),blindPair:s.boolean().optional()}).strict().superRefine((e,t)=>{e.approval==="none"&&e.minimumRaters!==1&&t.addIssue({code:"custom",path:["minimumRaters"],message:"Multi-rater review requires explicit adjudication."})}),kl=s.object({taskProposal:Ot.optional(),id:_,revision:s.number().int().positive(),actorId:_,generation:s.number().int().positive(),evidenceHash:b,formHash:b,answers:s.array(br).max(100),note:s.string().max(2e4),submittedAt:Y,supersedes:_.nullable(),contentHash:b}).strict(),vr=s.object({taskProposalHash:b.optional(),id:_,revision:s.number().int().positive(),actorId:_,outcome:s.enum(["accept","reject","request_changes"]),submissions:s.array(s.object({id:_,contentHash:b}).strict()).min(1).max(100),answers:s.array(br).max(100),note:s.string().max(2e4),decidedAt:Y,contentHash:b}).strict(),un=s.object({schemaVersion:s.literal("openpond.humanReview.v1"),id:_,revision:s.number().int().positive(),scope:_,projectId:_,createdBy:_,kind:s.enum(["author","execute","grade"]),dueAt:Y.optional(),title:s.string().trim().min(1).max(500),authorPublication:s.object({proposalHash:b,dataset:fe,operationId:_,publishedBy:_,publishedAt:Y}).strict().nullable(),evidence:As,form:dn,policy:$l,status:s.enum(["queued","assigned","in_progress","submitted","returned","accepted","rejected","cancelled"]),assigneeId:_.nullable(),generation:s.number().int().positive(),drafts:s.array(s.object({taskProposal:Ot.optional(),actorId:_,generation:s.number().int().positive(),answers:s.array(br).max(100),note:s.string().max(2e4),updatedAt:Y}).strict()).max(100),submissions:s.array(kl).max(1e3),decisions:s.array(vr).max(1e3),audit:s.array(s.object({actorId:_,action:s.enum(["claim","reassign","cancel"]),priorAssigneeId:_.nullable(),assigneeId:_.nullable(),generation:s.number().int().positive(),note:s.string().max(2e4),occurredAt:Y}).strict()).max(1e3),execution:s.object({executionId:_.nullable(),operationId:_,boundBy:_,configurationHash:b,generation:s.number().int().positive(),result:fe.nullable()}).strict().nullable(),createdAt:Y,updatedAt:Y,contentHash:b}).strict(),Te={operationId:_,id:_,expectedRevision:s.number().int().nonnegative()},yy=s.discriminatedUnion("action",[s.object({...Te,action:s.literal("create"),projectId:_,kind:un.shape.kind,title:un.shape.title,dueAt:Y.optional(),evidence:As,form:dn,policy:$l,assigneeId:_.nullable()}).strict(),s.object({...Te,action:s.literal("claim")}).strict(),s.object({...Te,action:s.literal("bind_author_publication"),proposalHash:b,dataset:fe}).strict(),s.object({...Te,action:s.literal("reserve_execution"),generation:s.number().int().positive(),runOperationId:_,configurationHash:b}).strict(),s.object({...Te,action:s.literal("bind_execution"),generation:s.number().int().positive(),executionId:_,runOperationId:_,configurationHash:b}).strict(),s.object({...Te,action:s.literal("reassign"),assigneeId:_.nullable(),note:s.string().trim().min(1).max(2e4)}).strict(),s.object({...Te,action:s.literal("cancel"),note:s.string().max(2e4)}).strict(),s.object({...Te,action:s.literal("save_draft"),taskProposal:Ot.optional(),generation:s.number().int().positive(),answers:s.array(br).max(100),note:s.string().max(2e4)}).strict(),s.object({...Te,action:s.literal("submit"),taskProposal:Ot.optional(),generation:s.number().int().positive(),evidenceHash:b,formHash:b,executionResult:fe.optional(),answers:s.array(br).max(100),note:s.string().max(2e4)}).strict(),s.object({...Te,action:s.literal("decide"),taskProposalHash:b.optional(),outcome:vr.shape.outcome,submissions:vr.shape.submissions,answers:vr.shape.answers,note:vr.shape.note}).strict()]),vy=s.discriminatedUnion("endpoint",[s.object({endpoint:s.literal("command"),scope:_,command:yy}).strict(),s.object({endpoint:s.literal("get"),scope:_,id:_,revision:s.number().int().positive().optional()}).strict(),s.object({endpoint:s.literal("inbox"),scope:_,projectId:_.optional(),view:s.enum(["mine","team","approval"]),status:s.enum(["active","history"]),afterId:_.optional(),limit:s.number().int().min(1).max(100)}).strict()]);function F_(e){return{...e,contentHash:k(e)}}i(F_,"sealHumanRecord");function U_(e,t,r){if(new Set(t.map(n=>n.criterionId)).size!==t.length)throw new Error("human_duplicate_criterion");for(let n of t){let a=e.criteria.find(l=>l.id===n.criterionId);if(!a)throw new Error("human_unknown_criterion");if(r&&a.requireRationale&&!n.note.trim())throw new Error("human_rationale_required");if(r&&a.kind==="preference"&&a.requireStrength&&!n.strength&&!n.abstain)throw new Error("human_preference_strength_required");if(n.abstain){if(!a.allowAbstain||n.value!==null||!n.note.trim())throw new Error("human_abstention_invalid");continue}let c=n.value;if(!r&&c===null)continue;if(!(a.kind==="score"?typeof c=="number"&&c>=a.minimum&&c<=a.maximum&&Math.abs((c-a.minimum)/a.step-Math.round((c-a.minimum)/a.step))<1e-8:a.kind==="category"?typeof c=="string"&&a.options.includes(c):a.kind==="boolean"?typeof c=="boolean":a.kind==="preference"?["A","B",...a.allowTie?["tie"]:[]].includes(String(c)):typeof c=="string"&&c.length>=(a.minimumLength??0)&&c.length<=a.maximumLength&&(!a.required||!!c.trim())))throw new Error("human_answer_invalid")}if(r&&e.criteria.some(n=>n.required&&!t.some(a=>a.criterionId===n.id)))throw new Error("human_required_answer_missing")}i(U_,"assertHumanAnswers");var by=un.omit({evidence:!0,drafts:!0,submissions:!0}).extend({drafts:s.array(un.shape.drafts.element.omit({taskProposal:!0}).extend({taskProposal:Os.optional()})).max(100),submissions:s.array(kl.omit({taskProposal:!0}).extend({taskProposal:Os.optional()})).max(1e3),evidence:As.nullable(),evidenceHash:b,formHash:b,permissions:s.object({owner:s.boolean(),manager:s.boolean(),reviewer:s.boolean(),claim:s.boolean()}).strict()}).strict(),G_=s.object({items:s.array(by).max(100),nextCursor:_.nullable(),actionCount:s.number().int().nonnegative(),approvalAvailable:s.boolean()}).strict(),Sl=s.object({endpoint:s.literal("snapshot"),scope:_,projectId:_,graderId:_,selections:s.array(s.object({executionId:_,receiptId:_}).strict()).min(1).max(2)}).strict(),_y=s.object({endpoint:s.literal("snapshot_tasks"),scope:_,projectId:_,graderId:_,dataset:fe,taskIds:s.array(_).min(1).max(1e3).optional(),all:s.literal(!0).optional()}).strict().refine(e=>!!e.all!=!!e.taskIds,"Choose an exact selected task list or the server-frozen full Dataset."),wy=s.object({endpoint:s.literal("inspect"),scope:_,id:_,slot:s.number().int().min(0).max(1).optional(),afterId:s.string().min(1).max(500).optional()}).strict(),$y=s.object({endpoint:s.literal("results"),scope:_,executionId:_,selection:s.array(fe).max(1e4).optional()}).strict(),ky=s.object({endpoint:s.literal("members"),scope:_}).strict(),Sy=s.object({endpoint:s.literal("execute"),scope:_,id:_,expectedRevision:s.number().int().positive(),generation:s.number().int().positive(),operationId:_,configuration:s.unknown()}).strict(),Py=s.object({endpoint:s.literal("execution"),scope:_,id:_,action:s.enum(["status","result","cancel"])}).strict(),xy=Sl.omit({endpoint:!0}).extend({endpoint:s.literal("publish_evidence"),operationId:_,audience:s.array(_).max(100),workspaceVisible:s.boolean()}).strict(),Ey=s.object({endpoint:s.literal("publication_access"),scope:_,projectId:_}).strict(),Iy=s.object({endpoint:s.literal("revoke_publication"),scope:_,publication:fe}).strict(),Ry=s.object({endpoint:s.literal("publish_author"),scope:_,id:_,expectedRevision:s.number().int().positive(),operationId:_,proposalHash:b,workspaceId:_.optional(),expectedWorkspaceRevision:s.number().int().positive().optional()}).strict(),jy=s.object({endpoint:s.literal("author_tasks"),scope:_,id:_,includeReference:s.literal(!0).optional()}).strict(),qy=s.object({endpoint:s.literal("graders"),scope:_,projectId:_,dataset:fe}).strict(),B_=s.array(s.object({id:_,name:s.string(),version:s.string(),contentHash:b,mode:s.enum(["individual","pairwise"])}).strict()).max(1e3),J_=s.union([hl,pl,Es,ml,fl,Ey,Ry,jy,qy,xy,Iy,Sy,Py,vy,Sl,_y,wy,$y,ky]),W_=s.array(s.object({origin:s.literal("owner_attested_local").optional(),coverage:s.object({sourceEventCount:s.number().int().nonnegative(),publishedEventCount:s.number().int().nonnegative(),traceLimited:s.boolean(),artifactsIncluded:s.literal(!1)}).strict().optional(),reviewId:_,reviewRevision:s.number().int().positive(),evidenceHash:b,slot:s.string(),input:s.unknown(),output:s.unknown(),error:s.string().nullable(),events:s.array(s.record(s.string(),s.unknown())),eventCount:s.number().int().nonnegative(),evidenceLimited:s.boolean(),nextEventCursor:s.string().nullable(),slotIndex:s.number().int().nonnegative(),executionId:_.optional(),receiptId:_.optional()}).strict()).max(1e3);var _r=s.enum(["train","validation","test","frozen_eval"]),Oy=s.object({path:s.string().trim().min(1).max(2e3).refine(zy),mediaType:s.string().trim().min(1).max(200),schemaRef:Re.nullable().default(null),submissionMode:s.literal("structured_json").optional(),maxBytes:s.number().int().positive().max(25e7).nullable().default(null),metadata:wn}).strict(),Ay=s.object({policyVisibleFields:s.array(S).max(1e3).default([]),privilegedFields:s.array(S).max(1e3).default([]),hiddenGraderRefs:s.array(S).max(1e3).default([]),connectedAppScopes:s.array(S).max(100).default([])}).strict(),Ty=s.object({protocolVersion:s.literal("openpond.environment.v1"),kind:s.enum(["text","agent","work","custom_program"]),entrypoint:s.string().trim().min(1).max(1e3),stateful:s.boolean(),deterministicSeeds:s.boolean(),lifecycle:s.array(s.enum(["create","reset","step","collect","destroy"])).min(5).max(5),networkPolicy:s.enum(["none","declared_read_only","declared_scoped"]),defaultTimeoutMs:s.number().int().positive().max(36e5)}).strict(),mn=s.object({id:S,taskIds:s.array(S).min(1).max(1e4).refine(e=>new Set(e).size===e.length,"Grader task IDs must be unique.").optional(),version:s.string().trim().min(1).max(100),weight:s.number().nonnegative().max(1e3).default(1),hardGate:s.boolean().default(!1),rewardEligible:s.boolean().default(!1),privileged:s.boolean().default(!1)}),Ts=mn.extend({kind:s.enum(["content","schema","artifact","runtime_event","state"]),config:s.record(s.string(),s.unknown())}).strict(),Ns=mn.extend({kind:s.literal("model_judge"),rubricRef:Re,calibrationStatus:s.enum(["pending","passed","failed"]),model:s.object({providerId:S,modelId:S,revision:s.string().trim().min(1).max(500).nullable()}).strict().optional(),temperature:s.number().min(0).max(2).optional()}).strict(),Ny=s.enum(["isolated_javascript","sandbox_process"]),Hs=mn.extend({kind:s.literal("custom_verifier"),runtime:Ny.optional(),verifierRef:Re,exportName:s.string().trim().min(1).max(240).optional(),timeoutMs:s.number().int().positive().max(3e5),networkPolicy:s.literal("none")}).strict(),Cs=mn.extend({kind:s.literal("human"),rubricRef:Re,reviewerRole:s.string().trim().min(1).max(500),form:dn.optional()}).strict(),Ds=s.union([Ts,Ns,Hs,Cs]),Hy=s.object({id:S,clusterKey:S,split:_r,input:s.record(s.string(),s.unknown()),expectedOutput:s.record(s.string(),s.unknown()).nullable(),policyVisibleContext:s.record(s.string(),s.unknown()).default({}),privilegedContextRef:S.nullable(),artifactRefs:s.array(Re).max(1e3).default([]),requiredOutputs:s.array(Oy).max(1e3).optional(),tags:s.array(S).max(100).default([])}).strict(),Pl=s.object({schemaVersion:s.literal("openpond.tasksetRelease.v2"),id:S,revision:s.number().int().positive(),policy:Ay,environment:Ty,environmentRelease:s.object({id:S,contentHash:b}).strict().optional(),tools:s.array(Sn).max(200),capabilities:s.array(Pn).max(200),tasks:s.array(Hy).min(1).max(1e6),graders:s.array(Ds).max(1e3),verifierSetRelease:s.object({id:S,contentHash:b}).strict().optional(),metrics:xs.optional(),metadata:wn}).strict(),Cy=Pl.extend({contentHash:b}).strict();function Dy(e){let t=Cy.safeParse(e);if(!t.success)return{valid:!1,taskset:null,computedHash:null,issues:t.error.issues.map(u=>({code:"schema_invalid",severity:"error",message:u.message,path:u.path.join(".")}))};let r=t.data,n=[];!!r.environmentRelease!=!!r.verifierSetRelease&&n.push({code:"execution_release_binding_incomplete",severity:"error",message:"A Taskset Release must bind both Environment and Verifier Set releases or neither during v2 migration.",path:"environmentRelease"});let a=new Set(r.tasks.map(u=>u.id));for(let u of r.graders)u.taskIds?.some(f=>!a.has(f))&&n.push({code:"grader_task_missing",severity:"error",message:`Grader ${u.id} refers to a task outside this release.`,path:"graders"});let c=new Map;for(let u of r.tasks){r.metrics?.aggregation==="weighted_mean"&&!Object.hasOwn(r.metrics.taskWeights,u.id)&&n.push({code:"metric_task_weight_missing",severity:"error",message:`Metric policy has no weight for task ${u.id}.`,path:"metrics.taskWeights"});let f=c.get(u.clusterKey)??new Set;f.add(u.split),c.set(u.clusterKey,f)}for(let[u,f]of c)f.size>1&&n.push({code:"split_cluster_contamination",severity:"error",message:`Source cluster ${u} appears in multiple splits.`,path:"tasks"});r.tasks.some(u=>u.split==="frozen_eval")||n.push({code:"frozen_eval_missing",severity:"warning",message:"The release has no frozen-evaluation task.",path:"tasks"});let{contentHash:o,...l}=r,d=k(Pl.parse(l));return d!==r.contentHash&&n.push({code:"content_hash_mismatch",severity:"error",message:`Taskset contentHash is ${r.contentHash}; expected ${d}.`,path:"contentHash"}),{valid:!n.some(u=>u.severity==="error"),taskset:r,computedHash:d,issues:n}}i(Dy,"validateTasksetRelease");function rw(e){ht(e,"Taskset release");let r=Dy(e).issues.find(n=>n.severity==="error");if(r)throw new Error(r.message)}i(rw,"assertTasksetRelease");function My(e){return{id:e.id,input:structuredClone(e.input),policyVisibleContext:structuredClone(e.policyVisibleContext),artifactRefs:e.artifactRefs.filter(t=>t.visibility==="policy"),tags:[...e.tags]}}i(My,"policyTaskView");function nw(e){return e.tasks.filter(t=>t.split!=="frozen_eval").map(My)}i(nw,"trainingPolicyTaskViews");function zy(e){let t=e.replaceAll("\\","/");return!t||t.startsWith("/")||t.includes("\0")?!1:!t.split("/").some(r=>!r||r==="."||r==="..")}i(zy,"safeRelativePath");var Vy=s.string().min(1).max(2e3).refine(e=>!e.includes("\\")&&!e.includes(":")&&!e.startsWith("/")&&e.split("/").every(t=>t!==""&&t!=="."&&t!==".."),"Evaluation paths must be portable and relative."),At=s.discriminatedUnion("kind",[s.object({kind:s.literal("profile")}).strict(),s.object({kind:s.literal("workflow"),workflowId:S}).strict(),s.object({kind:s.literal("skill"),skillPath:Vy}).strict(),s.object({kind:s.literal("agent_action"),actionId:S}).strict()]);var Ky=s.object({taskId:S,seed:s.string().min(1).max(500),fixtureId:S.nullable()}).strict(),xl=s.string().min(1).max(200).refine(e=>!["__proto__","prototype","constructor"].includes(e),"Use an ordinary field name."),El=s.enum(["input","output","expectedOutput","evaluatorContext"]),Ly=s.array(s.object({graderId:S,fields:s.array(s.object({destination:El,path:s.array(xl).min(1).max(20),source:El,sourcePath:s.array(xl).max(20)}).strict()).max(100)}).strict()).max(100),Fy=s.object({execution:D,originalEvidence:D,members:s.array(s.object({caseId:S,seed:s.string().min(1).max(500),fixtureId:b,sourceId:S,snapshotHash:b,boundaryRevisionHash:b}).strict()).min(1).max(500)}).strict(),Uy=s.object({release:D.extend({revision:s.union([s.number().int().positive(),s.string().min(1).max(200)])}).strict(),feedbackKey:s.string().min(1).max(240),configurationHash:b,output:s.enum(["boolean","score","category"]),categories:s.array(s.string().min(1).max(120)).max(50)}).strict(),Il=s.object({schemaVersion:s.literal("openpond.profileExternalDatasetBinding.v1"),dataset:D.extend({revision:s.number().int().positive()}).strict(),packageHash:b,profileId:S,target:At,declaredProfileCatalogHash:b.nullable(),protectedProfileClosureHash:b,recordedOrigin:Fy.optional(),gradingSource:s.object({pass:D,evidence:D}).strict().optional(),split:_r,population:s.array(Ky).min(1).max(1e4),evaluators:s.array(Uy).min(1).max(100),fieldMappingsHash:b,fieldMappings:Ly,environmentHash:b,privateDatasetClosureHash:b,criterion:s.object({minimumPassRate:s.number().min(0).max(1),requireComplete:s.boolean()}).strict()}).strict().superRefine((e,t)=>{e.recordedOrigin&&(e.recordedOrigin.members.length!==e.population.length||e.recordedOrigin.members.some((r,n)=>r.caseId!==e.population[n].taskId||r.seed!==e.population[n].seed||r.fixtureId!==r.snapshotHash||e.population[n].fixtureId!==null))&&t.addIssue({code:"custom",message:"Recorded-to-rerun mapping must preserve every exact ordered cutoff and seed while admitting new target attempts."}),k(e.fieldMappings)!==e.fieldMappingsHash&&t.addIssue({code:"custom",message:"Field mappings differ from their sealed hash."}),new Set(e.fieldMappings.map(r=>r.graderId)).size!==e.fieldMappings.length&&t.addIssue({code:"custom",message:"Field mappings must name each grader once."}),new Set(e.population.map(r=>JSON.stringify([r.taskId,r.seed,r.fixtureId]))).size!==e.population.length&&t.addIssue({code:"custom",message:"External Dataset population must be unique."}),new Set(e.evaluators.map(r=>r.feedbackKey)).size!==e.evaluators.length&&t.addIssue({code:"custom",message:"External Dataset feedback keys must be unique."});for(let r of e.evaluators)r.output==="category"!=r.categories.length>0&&t.addIssue({code:"custom",message:"Only category grading declares categories."})}),Ms=Il.safeExtend({contentHash:b}).strict();function Rl(e){let t=Ms.parse(e),{contentHash:r,...n}=t;if(k(n)!==r)throw new Error("External Dataset binding integrity failed.");return t}i(Rl,"verifyProfileExternalDatasetBinding");function pw(e){let t=Il.parse(e);return Rl({...t,contentHash:k(t)})}i(pw,"createProfileExternalDatasetBinding");var hw=i(e=>`external-dataset-${Rl(e).contentHash.slice(0,40)}`,"externalDatasetDefinitionId");var Gy=s.object({id:S,label:s.string().trim().min(1).max(240),description:s.string().max(4e3),target:At,tasksetRelease:D,split:_r,taskIds:s.array(S).min(1).max(1e5),seeds:s.array(s.string().trim().min(1).max(500)).min(1).max(100),criterion:s.object({minimumPassRate:s.number().min(0).max(1),requireComplete:s.boolean()}).strict()}).strict().superRefine((e,t)=>{new Set(e.taskIds).size!==e.taskIds.length&&t.addIssue({code:"custom",path:["taskIds"],message:"Evaluation task identities must be unique."}),new Set(e.seeds).size!==e.seeds.length&&t.addIssue({code:"custom",path:["seeds"],message:"Evaluation seeds must be unique."})}),By=s.object({id:S,label:s.string().trim().min(1).max(240),scope:s.enum(["component","profile"]),definitionIds:s.array(S).min(1).max(1e3)}).strict(),jl=s.object({schemaVersion:s.literal("openpond.profileEvaluations.v1"),definitions:s.array(Gy).max(1e3),suites:s.array(By).max(100)}).strict(),zs=s.object({profileId:S,sourceRevision:s.string().trim().min(1).max(240),harnessRelease:D,catalogHash:b,definitionId:S,definitionHash:b,target:At,environmentHash:b,externalDatasetBinding:Ms.optional(),sourceCandidate:cl.optional()}).strict();function Jy(e){let t=jl.parse(e.catalog),r=new Set;for(let a of t.definitions){if(r.has(a.id))throw new Error(`Duplicate Profile evaluation ${a.id}.`);switch(r.add(a.id),a.target.kind){case"workflow":if(!e.workflowIds.has(a.target.workflowId))throw new Error(`Profile evaluation ${a.id} references a missing workflow.`);break;case"skill":if(!e.skillPaths.has(a.target.skillPath))throw new Error(`Profile evaluation ${a.id} references a missing Skill.`);break;case"agent_action":if(!e.actionIds.has(a.target.actionId))throw new Error(`Profile evaluation ${a.id} references a missing Agent action.`);break}}let n=new Set;for(let a of t.suites){if(n.has(a.id))throw new Error(`Duplicate Profile evaluation suite ${a.id}.`);if(n.add(a.id),new Set(a.definitionIds).size!==a.definitionIds.length)throw new Error(`Profile evaluation suite ${a.id} repeats a definition.`);for(let c of a.definitionIds)if(!r.has(c))throw new Error(`Profile evaluation suite ${a.id} references missing definition ${c}.`);if(a.scope==="profile"&&a.definitionIds.every(c=>t.definitions.find(o=>o.id===c)?.target.kind!=="profile"))throw new Error(`Profile evaluation suite ${a.id} needs an end-to-end Profile definition.`)}return{catalog:t,contentHash:k(t)}}i(Jy,"validateProfileEvaluationCatalog");function Sw(e){let t=jl.parse(e.catalog),r=t.definitions.find(n=>n.id===e.definitionId);if(!r)throw new Error(`Profile evaluation ${e.definitionId} is absent from its catalog.`);return zs.parse({profileId:e.profileId,sourceRevision:e.sourceRevision,harnessRelease:e.harnessRelease,catalogHash:k(t),definitionId:r.id,definitionHash:k(r),target:r.target,environmentHash:e.environmentHash})}i(Sw,"resolveProfileEvaluationRunSource");function Pw(e){let t=to(e),r=ro(t);return{...Wy({agentSnapshot:t.agentSnapshot,harnessRelease:t.harnessRelease,catalogBytes:r.get("evals/catalog.json"),workflowBytes:r.get("workflows/catalog.json"),actionBytes:r.get("workflows/actions.json")}),harnessRelease:{id:t.harnessRelease.id,contentHash:t.harnessRelease.contentHash}}}i(Pw,"loadReleasedProfileEvaluationCatalog");function Wy(e){let t=e.harnessRelease.files.find(o=>o.path==="evals/catalog.json"),r=e.catalogBytes;if(!t||t.visibility!=="verifier"||!r||Ct(r)!==t.contentHash)throw new Error("Released Profile evaluation catalog is unavailable or not verifier-private.");let n=e.workflowBytes||e.actionBytes?so({agentSnapshot:e.agentSnapshot,harnessRelease:e.harnessRelease,catalogBytes:e.workflowBytes,actionBytes:e.actionBytes}):null,{catalog:a,contentHash:c}=Jy({catalog:JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(r)),workflowIds:new Set(n?.catalog.workflows.map(o=>o.id)??[]),skillPaths:new Set(e.agentSnapshot.skills.map(o=>o.path)),actionIds:new Set(n?.actions.map(o=>o.id)??[])});return{catalog:a,catalogHash:c}}i(Wy,"loadReleasedProfileEvaluationCatalogAssets");var J=class extends Error{static{i(this,"LearningDomainError")}code;status;constructor(t,r=422,n){super(n?`${t}: ${n}`:t),this.code=t,this.status=r,this.name="LearningDomainError"}};function Vs(e){let{grader:t,task:r,evidence:n}=e,a=t.config;if(t.kind==="content"){let l=ze(a.outputField)??"text",d=ze(n.output[l]);if(a.operator==="exact_equals"){let m=ze(a.expectedValue);if(m===null)return Se("Exact content grading requires an expected value.");let p=i(h=>{let g=a.normalizeUnicode===!0?h.normalize("NFC"):h;return a.trimWhitespace===!0?g.trim():g},"normalize");return Ne(d!==null&&p(d)===p(m))}if(a.operator!==void 0&&a.operator!=="final_answer_equals_expected")return Se("Unsupported content grader operator.");if(a.operator===void 0&&(a.includes!==void 0||a.excludes!==void 0)){let m=wr(a.includes),p=wr(a.excludes);if(!m.length&&!p.length)return Se("Content grading requires a nonempty check.");let h=typeof n.output.text=="string"?n.output.text:JSON.stringify(n.output);return Ne(m.every(g=>h.includes(g))&&p.every(g=>!h.includes(g)))}let u=ze(a.expectedValue)??ze(r.expectedOutput?.[ze(a.expectedField)??"text"]),f=a.operator==="final_answer_equals_expected"?Yy:ql;return u===null||!f(u)?Se("Content grading requires a nonempty expected value."):Ne(d!==null&&f(d)===f(u))}if(t.kind==="schema"){if(a.operator!==void 0&&a.operator!=="json_schema_subset")return Se("Unsupported schema grader operator.");let l=a.operator==="json_schema_subset"?a.schema:a.jsonSchema;if(l!==void 0){let u=gr(l);if(!u.valid)return Se(u.issues[0].message);let f=n.output;if(a.operator==="json_schema_subset"){let p=n.output[ze(a.jsonField)??"text"];if(typeof p=="string")try{f=JSON.parse(p.trim().replace(/^```(?:json)?\s*/i,"").replace(/\s*```$/,""))}catch{return Ne(!1,"The model output was not valid JSON.")}}let m=qs(l,f);return Ne(m.valid,m.valid?void 0:m.issues.map(p=>p.message).join(" "))}let d=wr(a.requiredKeys);return d.length?Ne(d.every(u=>Object.hasOwn(n.output,u))):Se("Schema grading requires a JSON Schema or explicit required keys.")}if(t.kind==="artifact"){let l=ze(a.refIncludes);return l?Ne(n.artifactRefs.some(d=>d.includes(l))):Se("Artifact grading requires a declared artifact reference.")}if(t.kind==="runtime_event"){let l=wr(a.requiredEvents);return l.length?Ne(l.every(d=>n.runtimeEventRefs.some(u=>u.includes(d)))):Se("Runtime event grading requires declared events.")}if(a.operator==="output_field_equals"){let l=ze(a.outputField);return!l||!Object.hasOwn(a,"expectedValue")?Se("Output comparison requires a field and expected value."):Ne(Object.hasOwn(n.output,l)&&k(n.output[l])===k(a.expectedValue))}if(a.operator!==void 0)return Se("Unsupported state grader operator.");let c=wr(a.fields),o=c.length?c:Object.keys(r.expectedOutput??{});return!o.length||o.some(l=>!r.expectedOutput||!Object.hasOwn(r.expectedOutput,l))?Se("State grading requires expected values for every compared field."):Ne(o.every(l=>Object.hasOwn(n.output,l)&&k(n.output[l])===k(r.expectedOutput[l])))}i(Vs,"evaluateDeterministicGrader");function Xy(e){if(e.kind==="file"){let{pathIncludes:t,...r}=e.config;return{kind:"artifact",config:{...r,...t===void 0?{}:{refIncludes:t}}}}return e.kind==="diff"||e.kind==="test"?{kind:"state",config:{operator:"output_field_equals",outputField:e.kind==="test"?"testsPassed":"diffAccepted",expectedValue:!0}}:{kind:e.kind,config:e.config}}i(Xy,"portableDeterministicCheck");function Ne(e,t){return{score:Number(e),passed:e,feedback:t??(e?"Deterministic grader passed.":"Deterministic grader failed.")}}i(Ne,"outcome");function Se(e){return{score:null,passed:!1,feedback:e}}i(Se,"unavailable");function ze(e){return typeof e=="string"?e:null}i(ze,"text");function wr(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"&&t.trim().length>0):[]}i(wr,"strings");function ql(e){return e.normalize("NFKC").trim().replace(/[,,]/g,"").replace(/[.\s]+$/g,"").replace(/\s+/g," ")}i(ql,"normalizeContent");function Yy(e){let t=[...e.matchAll(/\\boxed\{([^{}]+)\}/g)].at(-1)?.[1],r=e.match(/####\s*([^\n\r]+)/)?.[1],n=e.match(/(?:final\s+answer|answer)\s*(?::|is|=)\s*([^\n\r]+)/i)?.[1];return ql((t??r??n??e).normalize("NFKC").trim().replace(/^\$+|\$+$/g,"").replace(/^\\\(|\\\)$/g,""))}i(Yy,"normalizeFinalAnswer");var Zy=s.object({schemaVersion:s.literal("openpond.modelJudgeTransportPolicy.v1"),responseFormat:s.literal("judgment_json_schema"),reasoningEffort:s.enum(["off","low","medium","high","xhigh","max"]),maximumOutputTokens:s.number().int().positive().max(1e6)}).strict(),Qy=s.object({schemaVersion:s.literal("openpond.modelJudgeReceipt.v1"),providerId:s.string().trim().min(1).max(200),modelId:s.string().trim().min(1).max(500),modelRevision:s.string().trim().min(1).max(500).nullable(),responseId:s.string().trim().min(1).max(500).nullable(),requestHash:b,responseHash:b,inputTokens:s.number().int().nonnegative().nullable(),outputTokens:s.number().int().nonnegative().nullable(),costUsd:s.number().finite().nonnegative().nullable(),transportPolicy:Zy.optional(),effectiveRequestHash:b.optional(),finishReason:s.string().trim().min(1).max(200).nullable().optional(),reasoningTokens:s.number().int().nonnegative().nullable().optional()}).strict(),Ol=s.object({schemaVersion:s.literal("openpond.graderEvidence.v1"),graderId:S,graderVersion:s.string().trim().min(1).max(100),status:s.enum(["scored","pending","unavailable","failed"]).optional(),score:s.number().min(0).max(1).nullable(),passed:s.boolean(),rewardEligible:s.boolean(),failureClass:kn.nullable(),feedback:s.array(s.string().max(2e4)).max(1e3),visibleEvidenceRefs:s.array(S).max(1e4),privilegedEvidenceRefs:s.array(S).max(1e4),modelJudgeReceipt:Qy.optional()}).strict(),fn=Ol.extend({contentHash:b}).strict();function Ls(e,t){return e.filter(r=>!r.taskIds||r.taskIds.includes(t.id))}i(Ls,"gradersForTask");async function Fs(e){let t=Ls(e.graders,e.task);return e.evidence.infrastructureError?t.map(r=>mt(r,{score:null,passed:!1,rewardEligible:!1,failureClass:"infrastructure_failure",feedback:[e.evidence.infrastructureError],visibleEvidenceRefs:[],privilegedEvidenceRefs:[]})):Promise.all(t.map(async r=>{if(r.kind==="model_judge"){if(!e.modelJudge||r.calibrationStatus!=="passed"&&e.purpose!=="fixture_calibration")return mt(r,Ks("Model judge is unavailable or uncalibrated."));e.signal?.throwIfAborted();let n=await e.modelJudge({grader:r,task:e.task,evidence:e.evidence,evaluatorContext:e.evaluatorContext,signal:e.signal});return mt(r,{...n,rewardEligible:e.purpose==="fixture_calibration"?!1:n.rewardEligible})}return r.kind==="custom_verifier"?e.customVerifier?mt(r,await e.customVerifier({grader:r,task:e.task,evidence:e.evidence})):mt(r,Ks("Custom verifier is unavailable.")):r.kind==="human"?mt(r,{score:null,passed:!1,rewardEligible:!1,failureClass:null,status:"pending",feedback:["Human review is pending."],visibleEvidenceRefs:[],privilegedEvidenceRefs:[]}):mt(r,ev(r,e.task,e.evidence))}))}i(Fs,"gradeEvidence");function ev(e,t,r){let n=Vs({grader:e,task:t,evidence:r});return n.score===null?Ks(n.feedback):{score:n.score,passed:n.passed,rewardEligible:e.rewardEligible,failureClass:n.passed?null:"policy_failure",feedback:[n.feedback],visibleEvidenceRefs:[...r.runtimeEventRefs,...r.artifactRefs],privilegedEvidenceRefs:e.privileged?[t.privilegedContextRef].filter(a=>a!==null):[]}}i(ev,"gradeDeterministic");function mt(e,t){let r=Ol.parse({schemaVersion:"openpond.graderEvidence.v1",graderId:e.id,graderVersion:e.version,...t,rewardEligible:e.rewardEligible&&t.rewardEligible&&t.score!==null});return fn.parse({...r,contentHash:k(r)})}i(mt,"evidence");function Ks(e){return{score:null,passed:!1,rewardEligible:!1,failureClass:"grader_failure",feedback:[e],visibleEvidenceRefs:[],privilegedEvidenceRefs:[]}}i(Ks,"unavailable");var Us=s.object({score:s.number().min(0).max(1).nullable(),passed:s.boolean(),rewardEligible:s.boolean(),failureClass:kn.nullable(),gradingStatus:s.enum(["scored","pending","unscorable","not_configured"])}).strict();function Al(e){if(new Set(e.graders.map(p=>p.id)).size!==e.graders.length||e.components.length!==e.graders.length)throw new Error("Grade population differs from its declared graders.");let r=new Map(e.components.map(p=>[p.graderId,p]));if(r.size!==e.components.length)throw new Error("Grade population contains duplicate graders.");let n=0,a=0,c=!1,o=!0,l=!1,d=!1,u=!1,f=!!e.infrastructureError;for(let p of e.graders){let h=r.get(p.id);if(!h||h.graderVersion!==p.version)throw new Error("Grade identity differs from its declared grader.");if(!Number.isFinite(p.weight)||p.weight<0||h.score!==null&&(!Number.isFinite(h.score)||h.score<0||h.score>1))throw new Error("Grade scores and weights must be finite and within their declared range.");f||=h.failureClass==="infrastructure_failure",u||=h.status==="pending",d||=h.status!=="pending"&&(h.score===null||h.failureClass!==null&&h.failureClass!=="policy_failure"),c||=p.hardGate&&!h.passed,o&&=h.passed,l||=p.rewardEligible&&h.rewardEligible,a+=p.weight,n+=(h.score??0)*p.weight}let m=f||d||u||a<=0?null:c?0:n/a;return o=m!==null&&!c&&o,Us.parse({score:m,passed:o,rewardEligible:m!==null&&l,failureClass:f?"infrastructure_failure":u&&!d?null:m===null?"grader_failure":o?null:"policy_failure",gradingStatus:!e.graders.length&&!f?"not_configured":u&&!d&&!f?"pending":m===null?"unscorable":"scored"})}i(Al,"aggregateGraderScores");var Tl=Us.extend({schemaVersion:s.literal("openpond.taskGrade.v1"),taskHash:b,evidenceHash:b,graderSetHash:b,components:s.array(fn).max(1e3),contentHash:b}).strict();async function Mw(e){let t=await Fs(e),r={schemaVersion:"openpond.taskGrade.v1",taskHash:k(e.task),evidenceHash:k(e.evidence),graderSetHash:k(e.graders),components:t,...Al({graders:Ls(e.graders,e.task),components:t,infrastructureError:e.evidence.infrastructureError})};return Tl.parse({...r,contentHash:k(r)})}i(Mw,"gradeTaskEvidence");function zw(e,t){let r=Tl.parse(e),{contentHash:n,...a}=r;if(n!==k(a)||r.taskHash!==k(t.task)||r.evidenceHash!==k(t.evidence)||r.graderSetHash!==k(t.graders))throw new Error("Task grade differs from its admitted task, evidence or graders.");for(let o of r.components){let{contentHash:l,...d}=o;if(l!==k(d))throw new Error("Grader evidence integrity failed.")}let c=Al({graders:Ls(t.graders,t.task),components:r.components,infrastructureError:t.evidence.infrastructureError});if(k(Us.parse({score:r.score,passed:r.passed,rewardEligible:r.rewardEligible,failureClass:r.failureClass,gradingStatus:r.gradingStatus}))!==k(c))throw new Error("Task grade summary differs from its grader evidence.");return r}i(zw,"verifyTaskGrade");var pn={taskIds:!0,id:!0,version:!0,weight:!0,hardGate:!0,rewardEligible:!0,privileged:!0},hn=s.string().regex(/^[a-z][a-z0-9_]{0,79}$/);function Xw(e){return e.feedbackKey??`reward_${k(e.id).slice(0,24)}`}i(Xw,"feedbackKeyForReward");var tv=s.union([Ts.omit(pn),Ns.omit(pn),Hs.omit(pn),Cs.omit(pn),s.object({kind:s.literal("learned_model"),modelVersion:D,inputContract:Re}).strict()]),Nl=s.object({schemaVersion:s.literal("openpond.rewardRelease.v1"),id:S,revision:s.number().int().positive(),name:s.string().trim().min(1).max(500),description:s.string().max(1e4),feedbackKey:hn.optional(),implementation:tv,rawScore:s.object({minimum:s.number().finite(),maximum:s.number().finite()}).strict(),assets:s.array(Re).max(1e3),fixtureSetRef:Re.optional(),calibrationCheckRef:D.extend({revision:s.number().int().positive()}).optional()}).strict().superRefine((e,t)=>{if(e.fixtureSetRef&&(e.fixtureSetRef.visibility!=="verifier"||!e.assets.some(r=>k(r)===k(e.fixtureSetRef)))&&t.addIssue({code:"custom",path:["fixtureSetRef"],message:"Reward fixtures must be included as a private verifier asset."}),e.rawScore.minimum>=e.rawScore.maximum&&t.addIssue({code:"custom",path:["rawScore"],message:"A raw score contract requires minimum < maximum."}),e.implementation.kind!=="learned_model"&&(e.rawScore.minimum!==0||e.rawScore.maximum!==1)&&t.addIssue({code:"custom",path:["rawScore"],message:"Portable graders currently return scores in [0, 1]."}),e.implementation.kind==="schema"){let r=gr(e.implementation.config.jsonSchema);r.valid||t.addIssue({code:"custom",path:["implementation","config","jsonSchema"],message:r.issues[0].message})}}),Hl=Nl.safeExtend({contentHash:b}).strict(),gn=D.extend({revision:s.number().int().positive()}).strict(),rv=s.discriminatedUnion("kind",[s.object({kind:s.literal("identity")}).strict(),s.object({kind:s.literal("linear"),minimum:s.number().finite(),maximum:s.number().finite(),direction:s.enum(["higher","lower"])}).strict()]),nv=s.object({graderId:S,taskIds:s.array(S).min(1).max(1e4).refine(e=>new Set(e).size===e.length,"Task scope must be unique.").optional(),reward:gn,role:s.enum(["training","evaluation"]),normalization:rv,weight:s.number().nonnegative().max(1e3),required:s.boolean(),hardGate:s.boolean(),privileged:s.boolean(),fixtureRefs:s.array(D).max(1e3)}).strict(),Cl=s.object({schemaVersion:s.literal("openpond.rewardBinding.v1"),id:S,revision:s.number().int().positive(),name:s.string().trim().min(1).max(500).optional(),description:s.string().max(1e4).optional(),recipeRef:gn.optional(),sources:s.array(nv).max(100),aggregation:s.literal("weighted_mean"),unscorable:s.literal("exclude_optional_require_all_required")}).strict().superRefine((e,t)=>{new Set(e.sources.map(r=>r.graderId)).size!==e.sources.length&&t.addIssue({code:"custom",path:["sources"],message:"Bound grader identities must be unique."}),e.sources.length&&!e.sources.some(r=>r.weight>0)&&t.addIssue({code:"custom",path:["sources"],message:"A configured binding needs at least one positively weighted source."});for(let[r,n]of e.sources.entries())n.hardGate&&!n.required&&t.addIssue({code:"custom",path:["sources",r],message:"A hard gate must be required."}),n.normalization.kind==="linear"&&n.normalization.minimum>=n.normalization.maximum&&t.addIssue({code:"custom",path:["sources",r,"normalization"],message:"Linear normalization requires minimum < maximum."})}),Bs=Cl.safeExtend({contentHash:b}).strict(),Js=s.object({graderId:S,reward:gn,role:s.enum(["training","evaluation"]),status:s.enum(["scored","pending","unavailable","failed","not_applicable"]),rawScore:s.number().finite().nullable(),normalizedScore:s.number().min(0).max(1).nullable(),passed:s.boolean().nullable(),evidenceHashes:s.array(b).max(1e3),graderEvidence:fn.optional(),message:s.string().max(2e4).nullable()}).strict(),Dl=s.object({schemaVersion:s.literal("openpond.rewardComposition.v1"),binding:gn,taskHash:b,taskId:S.optional(),outputHash:b,results:s.array(Js).max(100),training:s.object({status:s.enum(["scored","pending","unscorable","not_configured"]),score:s.number().min(0).max(1).nullable(),passed:s.boolean().nullable()}).strict(),evaluation:s.object({status:s.enum(["scored","pending","unscorable","not_configured"]),score:s.number().min(0).max(1).nullable(),passed:s.boolean().nullable()}).strict()}).strict(),av=Dl.extend({contentHash:b}).strict();function Yw(e){ke(e);let t=Nl.parse(e);return Hl.parse({...t,contentHash:k(t)})}i(Yw,"createRewardRelease");function Zw(e,t){let r=Cl.parse(e),n=Bs.parse({...r,contentHash:k(r)});return Ws(n,t),n}i(Zw,"createRewardBinding");function Ws(e,t){let r=Bs.parse(e);return Gs(r),r.sources.map(n=>{let a=t.find(o=>o.id===n.reward.id&&o.revision===n.reward.revision&&o.contentHash===n.reward.contentHash);if(!a)throw new J("reward_release_missing",422,n.graderId);let c=Hl.parse(a);if(Gs(c),c.implementation.kind==="human"&&n.role==="training")throw new J("human_reward_not_executable",422,n.graderId);if(n.normalization.kind==="identity"&&(c.rawScore.minimum<0||c.rawScore.maximum>1))throw new J("reward_normalization_required",422,n.graderId);if(n.normalization.kind==="linear"&&(n.normalization.minimum!==c.rawScore.minimum||n.normalization.maximum!==c.rawScore.maximum))throw new J("reward_normalization_contract_mismatch",422,n.graderId);return{source:n,reward:c}})}i(Ws,"resolveBoundRewards");function Qw(e,t){return Ws(e,t).map(({source:r,reward:n})=>{if(n.implementation.kind==="learned_model")throw new J("learned_reward_requires_model_execution_adapter");return Ml(r,n)})}i(Qw,"compileBoundGraders");async function e$(e){let t=Ws(e.binding,e.rewards);if(e.purpose==="fixture_calibration"&&t.some(({source:n})=>n.role!=="evaluation"))throw new J("reward_calibration_requires_evaluation_binding");let r=[];for(let{source:n,reward:a}of t){e.signal?.throwIfAborted();let c={graderId:n.graderId,reward:n.reward,role:n.role,status:"unavailable",rawScore:null,normalizedScore:null,passed:null,evidenceHashes:[],message:null};if(n.taskIds&&!n.taskIds.includes(e.task.id)){r.push({...c,status:"not_applicable"});continue}try{if(a.implementation.kind==="human")c.status="pending",c.message="Human review is pending.";else if(a.implementation.kind==="learned_model")if(!e.learnedReward)c.message="Learned reward execution is not configured.";else{let o=await e.learnedReward({reward:a,task:e.task,evidence:e.evidence,signal:e.signal});Object.assign(c,{status:"scored",...o})}else{let[o]=await Fs({task:e.task,evidence:e.evidence,evaluatorContext:e.evaluatorContext,graders:[Ml(n,a)],modelJudge:e.modelJudge,customVerifier:e.customVerifier,purpose:e.purpose,signal:e.signal});if(!o)throw new J("reward_evidence_missing");Object.assign(c,{status:o.score===null?"unavailable":"scored",rawScore:o.score,passed:o.score===null?null:o.passed,evidenceHashes:[o.contentHash],graderEvidence:o,message:o.feedback.join(`
|
|
10
|
-
`)})}if(c.status==="scored"){if(c.rawScore===null||!Number.isFinite(c.rawScore)||c.rawScore<a.rawScore.minimum||c.rawScore>a.rawScore.maximum)throw new J("reward_raw_score_outside_contract");let o=n.normalization;c.normalizedScore=o.kind==="identity"?c.rawScore:(c.rawScore-o.minimum)/(o.maximum-o.minimum),o.kind==="linear"&&o.direction==="lower"&&(c.normalizedScore=1-c.normalizedScore)}}catch(o){e.signal?.throwIfAborted(),Object.assign(c,{status:"failed",rawScore:null,normalizedScore:null,passed:null,message:o instanceof Error?o.message:"Reward execution failed."})}r.push(Js.parse(c))}return sv({binding:e.binding,...e.binding.sources.some(n=>n.taskIds)?{taskId:e.task.id}:{},taskHash:k(e.task),outputHash:k(e.evidence),results:r})}i(e$,"executeRewardBinding");function sv(e){let t=Bs.parse(e.binding);if(Gs(t),t.sources.some(c=>c.taskIds)&&!e.taskId)throw new J("reward_task_scope_missing");let r=e.results.map(c=>Js.parse(c));if(r.length!==t.sources.length||new Set(r.map(c=>c.graderId)).size!==r.length)throw new J("reward_result_set_incomplete");for(let c of t.sources){let o=r.find(d=>d.graderId===c.graderId);if(!o||k(o.reward)!==k(c.reward)||o.role!==c.role)throw new J("reward_result_binding_mismatch");let l=!c.taskIds||c.taskIds.includes(e.taskId);if(l===(o.status==="not_applicable")||!l&&(o.graderEvidence||o.evidenceHashes.length||o.message!==null))throw new J("reward_result_task_scope_mismatch");if(o.graderEvidence){let{contentHash:d,...u}=o.graderEvidence;if(k(u)!==d||!o.evidenceHashes.includes(d)||u.graderId!==c.graderId||u.graderVersion!==String(c.reward.revision))throw new J("reward_grader_evidence_mismatch");if(o.status==="scored"&&(u.score!==o.rawScore||u.passed!==o.passed))throw new J("reward_grader_evidence_score_mismatch")}if(o.status==="scored"!=(o.rawScore!==null&&o.normalizedScore!==null&&o.passed!==null))throw new J("reward_result_score_state_invalid");if(o.status!=="scored"&&(o.rawScore!==null||o.normalizedScore!==null||o.passed!==null))throw new J("unscorable_reward_contains_score");if(o.status==="scored"){let d=c.normalization,u=d.kind==="identity"?o.rawScore:(o.rawScore-d.minimum)/(d.maximum-d.minimum),f=d.kind==="linear"&&d.direction==="lower"?1-u:u;if(Math.abs(f-o.normalizedScore)>1e-12)throw new J("reward_normalization_mismatch")}}let n=Dl.parse({schemaVersion:"openpond.rewardComposition.v1",binding:{id:t.id,revision:t.revision,contentHash:t.contentHash},taskHash:e.taskHash,...e.taskId?{taskId:e.taskId}:{},outputHash:e.outputHash,results:r,training:a("training"),evaluation:a("evaluation")});return av.parse({...n,contentHash:k(n)});function a(c){let o=t.sources.filter(f=>f.role===c&&(!f.taskIds||f.taskIds.includes(e.taskId))).map(f=>({source:f,result:r.find(m=>m.graderId===f.graderId)}));if(!o.length)return{status:"not_configured",score:null,passed:null};if(o.some(({source:f,result:m})=>f.required&&m.status!=="scored"&&m.status!=="pending"))return{status:"unscorable",score:null,passed:null};if(o.some(({source:f,result:m})=>f.required&&m.status==="pending"))return{status:"pending",score:null,passed:null};let l=o.filter(({result:f})=>f.status==="scored"),d=l.reduce((f,{source:m})=>f+m.weight,0);if(d===0)return{status:"unscorable",score:null,passed:null};let u=l.some(({source:f,result:m})=>f.hardGate&&!m.passed);return{status:"scored",score:u?0:l.reduce((f,{source:m,result:p})=>f+m.weight*p.normalizedScore,0)/d,passed:!u&&l.every(({result:f})=>f.passed)}}}i(sv,"composeBoundRewards");function Gs(e){if(ke(e),k(ov(e))!==e.contentHash)throw new J("reward_content_hash_mismatch")}i(Gs,"assertRewardHash");function ov(e){let{contentHash:t,...r}=e;return r}i(ov,"withoutRewardHash");function Ml(e,t){if(t.implementation.kind==="learned_model")throw new J("learned_reward_requires_model_execution_adapter");return Ds.parse({...t.implementation,...e.taskIds?{taskIds:e.taskIds}:{},id:e.graderId,version:String(t.revision),weight:e.weight,hardGate:e.hardGate,rewardEligible:e.role==="training",privileged:e.privileged})}i(Ml,"compileSource");var Tt=s.object({harnessRelease:D,agentSnapshot:D,sourcePackageHash:b}).strict(),iv=64;function zl(e){return[e.agentSnapshot.metadata,e.harnessRelease.metadata].some(t=>typeof t.profileRepositoryId=="string"||t.profile!==void 0&&t.profile!==null)}i(zl,"harnessExperimentSourceRequiresProfile");var Vl=new Set(["harness_inspect","skill_inspect","profile_skill_read","context_read"]);function cv(e){if(zl(e))throw new Error("This source is bound to a Profile; select Model + Harness + Profile.");return Kl(e)}i(cv,"standaloneHarnessExperimentTools");function Kl(e){let t=e.agentSnapshot.capabilityRequirements.find(n=>n.required);if(t)throw new Error(`Standalone Harness capability requires an admitted case environment: ${t.id}.`);let r=new Map;for(let n of[...e.agentSnapshot.toolDeclarations,...e.harnessRelease.tools]){if(!Vl.has(n.name)||n.sideEffect!=="read")throw new Error(`Standalone Harness tool requires an admitted case environment: ${n.name}.`);if(k(n.inputSchema)!==n.inputSchemaHash)throw new Error(`Standalone Harness tool schema differs from its declaration: ${n.name}.`);let a=r.get(n.name);if(a&&k(a)!==k(n))throw new Error(`Standalone Harness has conflicting tool declarations: ${n.name}.`);r.set(n.name,n)}return[...r.values()]}i(Kl,"harnessExperimentReadToolDeclarations");var Xs=s.string().trim().min(1).max(200),Ll=s.object({sessionId:Xs,turnId:Xs,source:Tt,admissionHash:b,modelConfigurationHash:b,traceHash:b,runtimeEventRefs:s.array(Xs).max(1e4),startedAt:Y,completedAt:Y,outputHash:b,partialOutputAvailable:s.boolean()}).strict().superRefine((e,t)=>{new Set(e.runtimeEventRefs).size!==e.runtimeEventRefs.length&&t.addIssue({code:"custom",path:["runtimeEventRefs"],message:"Native event references must be unique."}),Date.parse(e.completedAt)<Date.parse(e.startedAt)&&t.addIssue({code:"custom",path:["completedAt"],message:"Native completion precedes its start."})}),Ys=s.object({schemaVersion:s.literal("openpond.nativeHarnessExperimentAttempt.v1"),taskId:s.string().min(1).max(500),status:s.enum(["completed","cancelled","timed_out","policy_failure"]),output:s.string().max(8388608).nullable(),error:s.string().max(2e3).nullable(),messages:s.array(s.unknown()).max(4002),collected:s.boolean(),environmentCleanupComplete:s.literal(!0),snapshot:s.null(),native:Ll}).strict().superRefine((e,t)=>{let r=e.status==="completed";(r!==e.collected||r!==(e.output!==null)||r!==(e.error===null))&&t.addIssue({code:"custom",message:"Native status, output, collection and error must agree."}),r&&(e.native.partialOutputAvailable||e.native.outputHash!==k(e.output))&&t.addIssue({code:"custom",path:["native","outputHash"],message:"Native output differs from its retained evidence."})}),Zs=Ys.extend({contentHash:b}).strict();function lv(e){ke(e,16777216);let t=Ys.parse(e);return Zs.parse({...t,contentHash:k(t)})}i(lv,"createNativeHarnessExperimentAttempt");function uv(e,t){ke(e,16777216);let r=Zs.parse(e),{contentHash:n,...a}=r;if(k(a)!==n||r.taskId!==t.taskId||k(r.native.source)!==k(Tt.parse(t.source))||r.native.admissionHash!==t.admissionHash||r.native.modelConfigurationHash!==t.modelConfigurationHash||r.native.traceHash!==t.traceHash)throw new Error("Native Harness attempt differs from its admitted case or retained trace.");return r}i(uv,"verifyNativeHarnessExperimentAttempt");var Fl=s.number().finite().nonnegative(),dv=s.discriminatedUnion("kind",[s.object({kind:s.literal("model"),modelId:S,configurationHash:b}).strict(),s.object({kind:s.literal("harness"),source:zs,model:s.object({modelId:S,configurationHash:b}).strict()}).strict(),s.object({kind:s.literal("agent"),source:Tt,model:s.object({modelId:S,configurationHash:b}).strict()}).strict(),s.object({kind:s.literal("fixture"),configurationHash:b}).strict()]),Ul=s.object({release:D.extend({revision:s.union([s.number().int().positive(),s.string().trim().min(1).max(200)])}).strict(),feedbackKey:hn,configurationHash:b.optional(),output:s.enum(["boolean","score","category"]),categories:s.array(s.string().trim().min(1).max(500)).max(100)}).strict().superRefine((e,t)=>{e.output==="category"!=e.categories.length>0&&t.addIssue({code:"custom",path:["categories"],message:"Only category feedback declares categories."}),new Set(e.categories).size!==e.categories.length&&t.addIssue({code:"custom",path:["categories"],message:"Feedback categories must be unique."})}),Qs=s.object({caseId:S,seed:s.string().trim().min(1).max(500),fixtureId:S.nullable()}).strict();function $r(e){let t=Qs.parse(e);return JSON.stringify([t.caseId,t.seed,t.fixtureId])}i($r,"experimentCaseKey");function mv(e,t,r){return`human-projection-${k({originalManifest:e,selectionHash:t,rulesHash:r}).slice(0,48)}`}i(mv,"humanProjectionViewId");var Gl=s.object({schemaVersion:s.literal("openpond.experimentManifest.v1"),id:S,name:s.string().trim().min(1).max(500),teamId:S,operationId:S,maximumCostUsd:Fl.nullable(),dataset:D.extend({revision:s.number().int().positive()}).strict(),target:dv,execution:s.object({packageHash:b,runtimeTargetHash:b,metricPolicyHash:b,compatibility:s.object({protocol:s.literal("openpond.evaluation-execution.v1"),targetKind:s.enum(["model","agent","harness","fixture"])}).strict().optional()}).strict().optional(),lineage:s.object({definition:D.extend({revision:s.number().int().positive()}).strict().nullable(),execution:D,scoringPassId:S.nullable(),humanProjection:s.object({originalManifest:D,selectionHash:b,rulesHash:b}).strict().optional()}).strict().optional(),evaluators:s.array(Ul).max(100),population:s.array(Qs).min(1).max(1e4),createdAt:Y}).strict().superRefine((e,t)=>{if(e.execution?.compatibility&&e.execution.compatibility.targetKind!==e.target.kind&&t.addIssue({code:"custom",path:["execution","compatibility"],message:"Execution compatibility differs from its admitted target kind."}),e.lineage){let r=e.lineage.scoringPassId??e.lineage.execution.id,n=e.lineage.humanProjection;n?(n.originalManifest.id!==r||n.originalManifest.id.startsWith("human-projection-")||e.id!==mv(n.originalManifest,n.selectionHash,n.rulesHash))&&t.addIssue({code:"custom",path:["lineage","humanProjection"],message:"Human view must bind its original execution or scoring pass and deterministic selection identity."}):e.id!==r&&t.addIssue({code:"custom",path:["lineage"],message:"Experiment identity must match its execution or independent scoring pass."})}new Set(e.population.map($r)).size!==e.population.length&&t.addIssue({code:"custom",path:["population"],message:"Experiment cases must be unique."}),new Set(e.evaluators.map(r=>r.feedbackKey)).size!==e.evaluators.length&&t.addIssue({code:"custom",path:["evaluators"],message:"Experiment feedback keys must be unique."})}),eo=Gl.extend({contentHash:b}).strict(),fv=s.object({feedbackKey:hn,evaluator:Ul.shape.release,status:s.enum(["scored","unavailable","failed","pending"]),value:s.union([s.boolean(),s.number().finite(),s.string().max(500)]).nullable(),passed:s.boolean().nullable().optional(),reasoning:s.string().max(2e4).nullable(),evidenceRefs:s.array($n).max(1e3)}).strict(),pv=s.object({inputTokens:s.number().int().nonnegative().nullable(),outputTokens:s.number().int().nonnegative().nullable(),totalTokens:s.number().int().nonnegative().nullable(),costUsd:Fl.nullable(),latencyMs:s.number().finite().nonnegative().nullable()}).strict().superRefine((e,t)=>{e.inputTokens!==null&&e.outputTokens!==null&&e.totalTokens!==null&&e.totalTokens<e.inputTokens+e.outputTokens&&t.addIssue({code:"custom",path:["totalTokens"],message:"Total tokens cannot be less than input plus output."})}),hv=s.object({identity:Qs,status:s.enum(["completed","failed","cancelled","unavailable"]),output:s.unknown().nullable(),error:s.object({code:S,message:s.string().max(2e3)}).strict().nullable(),feedback:s.array(fv).max(100),usage:pv,traceRef:$n.nullable(),startedAt:Y.nullable(),completedAt:Y.nullable()}).strict(),Bl=s.object({schemaVersion:s.literal("openpond.experimentResult.v1"),manifest:D,status:s.enum(["completed","failed","cancelled"]),cases:s.array(hv).min(1).max(1e4),completedAt:Y}).strict(),Jl=Bl.extend({contentHash:b}).strict();function v$(e){let t=Gl.parse(e);return eo.parse({...t,contentHash:k(t)})}i(v$,"createExperimentManifest");function gv(e,t){eo.parse(t),ht(t,"Experiment manifest");let r=Bl.parse(e);if(r.manifest.id!==t.id||r.manifest.contentHash!==t.contentHash)throw new Error("Experiment result differs from its manifest.");let n=new Set(t.population.map($r)),a=new Set,c=new Map(t.evaluators.map(o=>[o.feedbackKey,o]));for(let o of r.cases){let l=$r(o.identity);if(!n.has(l)||a.has(l))throw new Error("Experiment result has an unexpected or repeated case.");a.add(l);let d=new Set;for(let u of o.feedback){let f=c.get(u.feedbackKey);if(!f||d.has(u.feedbackKey)||u.evaluator.id!==f.release.id||u.evaluator.contentHash!==f.release.contentHash||u.evaluator.revision!==f.release.revision)throw new Error("Experiment feedback differs from its pinned evaluator.");if(d.add(u.feedbackKey),u.status==="scored"){if(u.value===null||typeof u.value!=={boolean:"boolean",score:"number",category:"string"}[f.output]||f.output==="category"&&!f.categories.includes(u.value)||f.output==="score"&&(u.value<0||u.value>1))throw new Error("Experiment feedback value violates its output contract.")}else if(u.value!==null||u.passed!==null&&u.passed!==void 0)throw new Error("Unscored experiment feedback cannot claim a value or pass decision.")}}if(a.size!==n.size)throw new Error("Experiment result omits admitted cases.");return Jl.parse({...r,contentHash:k(r)})}i(gv,"createExperimentResult");function yv(e){let t=eo.parse(e.manifest),r=Jl.parse(e.result),{contentHash:n,...a}=r;if(k(a)!==n)throw new Error("Experiment result integrity failed.");return gv(a,t),{manifest:t,result:r}}i(yv,"verifyExperimentEvidence");function b$(e,t){for(let m of[e,t])yv(m);let r=[];e.manifest.teamId!==t.manifest.teamId&&r.push("different_workspace"),(e.manifest.dataset.id!==t.manifest.dataset.id||e.manifest.dataset.contentHash!==t.manifest.dataset.contentHash||e.manifest.dataset.revision!==t.manifest.dataset.revision)&&r.push("different_dataset_version"),e.manifest.target.kind!==t.manifest.target.kind&&r.push("different_target_kind");let n=i(m=>{let p=m.execution;if(!p?.compatibility)return p??null;let{runtimeTargetHash:h,...g}=p;return g},"executionContract");if(k(n(e.manifest))!==k(n(t.manifest))&&r.push("different_execution_contract"),e.manifest.target.kind==="harness"&&t.manifest.target.kind==="harness"){let m=e.manifest.target.source,p=t.manifest.target.source;(m.profileId!==p.profileId||k(m.target)!==k(p.target))&&r.push("different_component");let h=e.manifest.execution?.compatibility&&t.manifest.execution?.compatibility&&e.manifest.execution.packageHash===t.manifest.execution.packageHash;m.environmentHash!==p.environmentHash&&!h&&r.push("different_environment"),(m.definitionId!==p.definitionId||m.definitionHash!==p.definitionHash)&&r.push("different_evaluation_definition")}let a=i(m=>[...m.evaluators].sort((p,h)=>p.feedbackKey.localeCompare(h.feedbackKey)),"orderedEvaluators");k(a(e.manifest))!==k(a(t.manifest))&&r.push("different_evaluators");let c=new Map(e.result.cases.map(m=>[$r(m.identity),m])),o=new Map(t.result.cases.map(m=>[$r(m.identity),m])),l=[...new Set([...c.keys(),...o.keys()])].sort();(c.size!==o.size||l.some(m=>!c.has(m)||!o.has(m)))&&r.push("different_population");let d=r.length===0,u=l.map(m=>{let p=c.get(m)??null,h=o.get(m)??null,g=new Map(p?.feedback.map(v=>[v.feedbackKey,v])??[]),y=new Map(h?.feedback.map(v=>[v.feedbackKey,v])??[]);return{identity:(p??h).identity,baseline:p,candidate:h,feedback:e.manifest.evaluators.map(v=>{let $=g.get(v.feedbackKey),R=y.get(v.feedbackKey),E=d?!p||!h?"missing_case":p.status!=="completed"||h.status!=="completed"||p.error||h.error?"case_not_completed":!$||!R||$.status!=="scored"||R.status!=="scored"?"feedback_unavailable":v.output==="category"?"categorical_feedback":null:"incompatible_experiments",O=i(ce=>typeof ce?.value=="boolean"?Number(ce.value):typeof ce?.value=="number"?ce.value:null,"numeric"),x=E?null:O($),X=E?null:O(R),ie=i(ce=>E?null:typeof ce?.value=="boolean"?ce.value:ce?.passed??null,"pass");return{feedbackKey:v.feedbackKey,eligible:E===null,reason:E,baseline:x,candidate:X,delta:x===null||X===null?null:X-x,baselinePassed:ie($),candidatePassed:ie(R)}})}}),f=e.manifest.evaluators.map((m,p)=>{let h=u.map(O=>O.feedback[p]).filter(O=>O.eligible),g=i(O=>h.length?h.reduce((x,X)=>x+X[O],0)/h.length:null,"mean"),y=g("baseline"),v=g("candidate"),$=i(O=>h.length&&h.every(x=>x[O]!==null)?h.reduce((x,X)=>x+Number(X[O]),0)/h.length:null,"passRate"),R=$("baselinePassed"),E=$("candidatePassed");return{feedbackKey:m.feedbackKey,eligibleCount:h.length,excludedCount:u.length-h.length,baseline:y,candidate:v,delta:y===null||v===null?null:v-y,baselinePassRate:R,candidatePassRate:E,passRateDelta:R===null||E===null?null:E-R}});return{comparable:d,reasons:r,cases:u,metrics:f}}i(b$,"compareExperiments");export{du as a,fu as b,pu as c,hu as d,_v as e,so as f,wv as g,j as h,Yt as i,Vr as j,Zt as k,Oi as l,Ci as m,Yi as n,Sc as o,Fc as p,Uc as q,Yc as r,il as s,J as t,Rs as u,vl as v,bl as w,ke as x,gr as y,qs as z,Vs as A,Xy as B,Zy as C,Qy as D,Ol as E,fn as F,Ls as G,Fs as H,Al as I,Tl as J,Mw as K,zw as L,xs as M,ty as N,ry as O,p_ as P,sy as Q,Es as R,fl as S,pl as T,hl as U,N_ as V,H_ as W,C_ as X,fe as Y,dn as Z,As as _,br as $,un as aa,yy as ba,vy as ca,F_ as da,U_ as ea,by as fa,G_ as ga,_y as ha,wy as ia,$y as ja,Sy as ka,Py as la,Ry as ma,jy as na,qy as oa,J_ as pa,W_ as qa,_r as ra,Oy as sa,Ay as ta,Ty as ua,Ts as va,Ns as wa,Ny as xa,Hs as ya,Cs as za,Ds as Aa,Hy as Ba,Pl as Ca,Cy as Da,Dy as Ea,rw as Fa,My as Ga,nw as Ha,hn as Ia,Xw as Ja,tv as Ka,Nl as La,Hl as Ma,gn as Na,rv as Oa,nv as Pa,Cl as Qa,Bs as Ra,Js as Sa,Dl as Ta,av as Ua,Yw as Va,Zw as Wa,Ws as Xa,Qw as Ya,e$ as Za,sv as _a,Gs as $a,cl as ab,At as bb,Ly as cb,Il as db,Ms as eb,Rl as fb,pw as gb,hw as hb,Gy as ib,By as jb,jl as kb,zs as lb,Jy as mb,Sw as nb,Pw as ob,Wy as pb,Tt as qb,iv as rb,zl as sb,Vl as tb,cv as ub,Kl as vb,Ll as wb,Ys as xb,Zs as yb,lv as zb,uv as Ab,dv as Bb,Ul as Cb,Qs as Db,$r as Eb,mv as Fb,Gl as Gb,eo as Hb,fv as Ib,pv as Jb,hv as Kb,Bl as Lb,Jl as Mb,v$ as Nb,gv as Ob,yv as Pb,b$ as Qb};
|