@highstate/designer 0.9.16 → 0.9.18
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/0A0GXgOL.js +13 -0
- package/.output/public/_nuxt/1DNp92w6.js +1 -0
- package/.output/public/_nuxt/2EtD6e53.js +1 -0
- package/.output/public/_nuxt/2UxHyX5q.js +1 -0
- package/.output/public/_nuxt/3e1v2bzS.js +1 -0
- package/.output/public/_nuxt/4A_iFExJ.js +1 -0
- package/.output/public/_nuxt/5bLW0GMw.js +1 -0
- package/.output/public/_nuxt/5i3qLPDT.js +1 -0
- package/.output/public/_nuxt/6nHXG8SA.js +1 -0
- package/.output/public/_nuxt/84XNjSIe.js +1 -0
- package/.output/public/_nuxt/85-TOEBH.js +1 -0
- package/.output/public/_nuxt/9ZFiTIhr.js +1 -0
- package/.output/public/_nuxt/B-hkwWGT.js +1 -0
- package/.output/public/_nuxt/B0m2ddpp.js +1 -0
- package/.output/public/_nuxt/B1dDrJ26.js +1 -0
- package/.output/public/_nuxt/B1yitclQ.js +1 -0
- package/.output/public/_nuxt/B5ZR69Tn.js +1 -0
- package/.output/public/_nuxt/B6aJPvgy.js +1 -0
- package/.output/public/_nuxt/B7grBCAR.js +1 -0
- package/.output/public/_nuxt/B7mTdjB0.js +1 -0
- package/.output/public/_nuxt/BBGuKPBd.js +1 -0
- package/.output/public/_nuxt/BDzgwa52.js +1 -0
- package/.output/public/_nuxt/BE2KfCdU.js +1 -0
- package/.output/public/_nuxt/BEDo0Tqx.js +1 -0
- package/.output/public/_nuxt/BERRCDM3.js +1 -0
- package/.output/public/_nuxt/BETggiCN.js +1 -0
- package/.output/public/_nuxt/BEwlwnbL.js +1 -0
- package/.output/public/_nuxt/BFfxhgS-.js +1 -0
- package/.output/public/_nuxt/BGHREFWD.js +1 -0
- package/.output/public/_nuxt/BGJmEYvX.js +1 -0
- package/.output/public/_nuxt/BHrmToEH.js +1 -0
- package/.output/public/_nuxt/BIAuTxu3.js +1 -0
- package/.output/public/_nuxt/BIGW1oBm.js +1 -0
- package/.output/public/_nuxt/BIHI7g3E.js +1 -0
- package/.output/public/_nuxt/BKmAPqal.js +1 -0
- package/.output/public/_nuxt/BLOpwnqT.js +1 -0
- package/.output/public/_nuxt/BLtJtn59.js +1 -0
- package/.output/public/_nuxt/BLxL40Jp.js +1 -0
- package/.output/public/_nuxt/BM1_JUlF.js +1 -0
- package/.output/public/_nuxt/BMMyXqK5.js +1 -0
- package/.output/public/_nuxt/BMWR74SV.js +1 -0
- package/.output/public/_nuxt/BPzJO5Oe.js +1 -0
- package/.output/public/_nuxt/BQ8w6xss.js +1 -0
- package/.output/public/_nuxt/BQvybpQq.js +1 -0
- package/.output/public/_nuxt/BR7mELCv.js +1 -0
- package/.output/public/_nuxt/BRHolxvo.js +1 -0
- package/.output/public/_nuxt/BRZ36xJF.js +1 -0
- package/.output/public/_nuxt/BTEhxafZ.js +1 -0
- package/.output/public/_nuxt/BTJTHyun.js +1 -0
- package/.output/public/_nuxt/BU7Cl-8B.js +1 -0
- package/.output/public/_nuxt/BV7otONQ.js +1 -0
- package/.output/public/_nuxt/BWvSN4gD.js +1 -0
- package/.output/public/_nuxt/BXY8tDGw.js +1 -0
- package/.output/public/_nuxt/BXkSAIEj.js +1 -0
- package/.output/public/_nuxt/BYunw83y.js +1 -0
- package/.output/public/_nuxt/B_HjzqPZ.js +1 -0
- package/.output/public/_nuxt/B_m7g4N7.js +1 -0
- package/.output/public/_nuxt/B_wu9Dqv.js +1 -0
- package/.output/public/_nuxt/BbcW6ACK.js +1 -0
- package/.output/public/_nuxt/BcOcwvcX.js +1 -0
- package/.output/public/_nuxt/BdImnpbu.js +1 -0
- package/.output/public/_nuxt/BdnUsdx6.js +1 -0
- package/.output/public/_nuxt/BebE75YV.js +1 -0
- package/.output/public/_nuxt/BepWV7mh.js +1 -0
- package/.output/public/_nuxt/BfHTSMKl.js +1 -0
- package/.output/public/_nuxt/BfjtVDDH.js +1 -0
- package/.output/public/_nuxt/BgDCqdQA.js +1 -0
- package/.output/public/_nuxt/BhOHFoWU.js +1 -0
- package/.output/public/_nuxt/Bk5OV074.js +1 -0
- package/.output/public/_nuxt/BkPM1oy1.js +1 -0
- package/.output/public/_nuxt/BkioyH1T.js +1 -0
- package/.output/public/_nuxt/Bkuqu6BP.js +1 -0
- package/.output/public/_nuxt/Bl2oy6fF.js +1 -0
- package/.output/public/_nuxt/BmXAJ9_W.js +1 -0
- package/.output/public/_nuxt/Bm_zuxCd.js +1 -0
- package/.output/public/_nuxt/BoKiGodi.js +1 -0
- package/.output/public/_nuxt/Bp3cYrEr.js +1 -0
- package/.output/public/_nuxt/Bp6g37R7.js +1 -0
- package/.output/public/_nuxt/BqTXFGrv.js +1 -0
- package/.output/public/_nuxt/BqYA7rlc.js +1 -0
- package/.output/public/_nuxt/BsS91CYL.js +1 -0
- package/.output/public/_nuxt/BspZqrRM.js +1 -0
- package/.output/public/_nuxt/BtCnVYZw.js +1 -0
- package/.output/public/_nuxt/BtOb2qkB.js +1 -0
- package/.output/public/_nuxt/BthQWCQV.js +1 -0
- package/.output/public/_nuxt/BtqSS_iP.js +1 -0
- package/.output/public/_nuxt/BtsDLbAf.js +1 -0
- package/.output/public/_nuxt/Btyk0a-E.js +1 -0
- package/.output/public/_nuxt/Buea-lGh.js +1 -0
- package/.output/public/_nuxt/BuidTy5i.js +1 -0
- package/.output/public/_nuxt/BvAqAH-y.js +1 -0
- package/.output/public/_nuxt/BvYfgXkl.js +1 -0
- package/.output/public/_nuxt/Bw305WKR.js +1 -0
- package/.output/public/_nuxt/BzJJZx-M.js +1 -0
- package/.output/public/_nuxt/C-SQnVFl.js +1 -0
- package/.output/public/_nuxt/C-_oQ9hf.js +1 -0
- package/.output/public/_nuxt/C0HS_06l.js +1 -0
- package/.output/public/_nuxt/C0hk2d4L.js +1 -0
- package/.output/public/_nuxt/C151Ov-r.js +1 -0
- package/.output/public/_nuxt/C2t-YnRu.js +1 -0
- package/.output/public/_nuxt/C39BiMTA.js +1 -0
- package/.output/public/_nuxt/C3B-1QV4.js +1 -0
- package/.output/public/_nuxt/C3khCPGq.js +1 -0
- package/.output/public/_nuxt/C3mMm8J8.js +1 -0
- package/.output/public/_nuxt/C4IJs8-o.js +1 -0
- package/.output/public/_nuxt/C7Pw0Ztw.js +1 -0
- package/.output/public/_nuxt/C8-UwF3o.js +1 -0
- package/.output/public/_nuxt/C8M2exoo.js +1 -0
- package/.output/public/_nuxt/C8j9CRIf.js +1 -0
- package/.output/public/_nuxt/C8lEn-DE.js +1 -0
- package/.output/public/_nuxt/C98Dy4si.js +1 -0
- package/.output/public/_nuxt/C9XAeP06.js +1 -0
- package/.output/public/_nuxt/C9tS-k6U.js +1 -0
- package/.output/public/_nuxt/CA7CTBwS.js +1 -0
- package/.output/public/_nuxt/CDVJQ6XC.js +1 -0
- package/.output/public/_nuxt/CDx5xZoG.js +1 -0
- package/.output/public/_nuxt/CEL-wOlO.js +1 -0
- package/.output/public/_nuxt/CEu0bR-o.js +1 -0
- package/.output/public/_nuxt/CF10PKvl.js +1 -0
- package/.output/public/_nuxt/CG8Ifv2g.js +1 -0
- package/.output/public/_nuxt/CGqH5EJj.js +1 -0
- package/.output/public/_nuxt/CHLpvVh8.js +1 -0
- package/.output/public/_nuxt/CHM0blh-.js +1 -0
- package/.output/public/_nuxt/CHadp7IV.js +1 -0
- package/.output/public/_nuxt/CHh-QcGE.js +1 -0
- package/.output/public/_nuxt/CJc9bBzg.js +1 -0
- package/.output/public/_nuxt/CKIfxQSi.js +1 -0
- package/.output/public/_nuxt/CLvts2aQ.js +1 -0
- package/.output/public/_nuxt/CLxacb5B.js +1 -0
- package/.output/public/_nuxt/CNBtkm4J.js +6 -0
- package/.output/public/_nuxt/CO1LY3CK.js +1 -0
- package/.output/public/_nuxt/COEtLSDF.js +1 -0
- package/.output/public/_nuxt/COI20M4I.js +1 -0
- package/.output/public/_nuxt/COWjEZnb.js +1 -0
- package/.output/public/_nuxt/COkxafJQ.js +1 -0
- package/.output/public/_nuxt/COt5Ahok.js +1 -0
- package/.output/public/_nuxt/CPSgaaQ0.js +1 -0
- package/.output/public/_nuxt/CPtXGFXV.js +1 -0
- package/.output/public/_nuxt/CS3Unz2-.js +1 -0
- package/.output/public/_nuxt/CSXwinHm.js +1 -0
- package/.output/public/_nuxt/CTIxkRwW.js +1 -0
- package/.output/public/_nuxt/CTRr51gU.js +1 -0
- package/.output/public/_nuxt/CTUD0bHN.js +1 -0
- package/.output/public/_nuxt/CTWiQX6C.js +1 -0
- package/.output/public/_nuxt/CU1B2r8a.js +1 -0
- package/.output/public/_nuxt/CU27uY9n.js +1 -0
- package/.output/public/_nuxt/CVO1_9PV.js +1 -0
- package/.output/public/_nuxt/CXtECtnM.js +1 -0
- package/.output/public/_nuxt/CYRjgJw9.js +26 -0
- package/.output/public/_nuxt/CZlF05X6.js +1 -0
- package/.output/public/_nuxt/CafNBF8u.js +1 -0
- package/.output/public/_nuxt/Cb0HU5_O.js +1 -0
- package/.output/public/_nuxt/CbFg5uaA.js +1 -0
- package/.output/public/_nuxt/CbfX1IO0.js +1 -0
- package/.output/public/_nuxt/CcyOm34o.js +1 -0
- package/.output/public/_nuxt/CdggvHu8.js +1 -0
- package/.output/public/_nuxt/CeAyd5Ju.js +1 -0
- package/.output/public/_nuxt/CeZK1NFH.js +1 -0
- package/.output/public/_nuxt/CfQXZHmo.js +1 -0
- package/.output/public/_nuxt/CfeIJUat.js +1 -0
- package/.output/public/_nuxt/Cg-RD9OK.js +1 -0
- package/.output/public/_nuxt/ChMvpjG-.js +1 -0
- package/.output/public/_nuxt/Cj-b45ZR.js +1 -0
- package/.output/public/_nuxt/Cj5Yp3dK.js +1 -0
- package/.output/public/_nuxt/CkByrt1z.js +1 -0
- package/.output/public/_nuxt/CkXjmgJE.js +1 -0
- package/.output/public/_nuxt/ClbN2oa7.js +2 -0
- package/.output/public/_nuxt/Cmh6b_Ma.js +1 -0
- package/.output/public/_nuxt/CnK8MTSM.js +1 -0
- package/.output/public/_nuxt/CnnmHF94.js +1 -0
- package/.output/public/_nuxt/Co6uUVPk.js +1 -0
- package/.output/public/_nuxt/Cp-IABpG.js +1 -0
- package/.output/public/_nuxt/Cq5zzVJU.js +1 -0
- package/.output/public/_nuxt/CquLrc37.js +1 -0
- package/.output/public/_nuxt/CsfeWuGM.js +1 -0
- package/.output/public/_nuxt/Csfq5Kiy.js +1 -0
- package/.output/public/_nuxt/CtMxL075.js +21 -0
- package/.output/public/_nuxt/CtrldY6v.js +1 -0
- package/.output/public/_nuxt/Cuk6v7N8.js +1 -0
- package/.output/public/_nuxt/Cv9koXgw.js +1 -0
- package/.output/public/_nuxt/CxGSJlkm.js +1 -0
- package/.output/public/_nuxt/CyktbL80.js +1 -0
- package/.output/public/_nuxt/CylS5w8V.js +1 -0
- package/.output/public/_nuxt/CzTSHFRz.js +1 -0
- package/.output/public/_nuxt/D-2ljcwZ.js +1 -0
- package/.output/public/_nuxt/D-pF80u_.js +1 -0
- package/.output/public/_nuxt/D08WgyRC.js +1 -0
- package/.output/public/_nuxt/D0Gq3ULd.js +1 -0
- package/.output/public/_nuxt/D0YGMca9.js +1 -0
- package/.output/public/_nuxt/D0r3Knsf.js +1 -0
- package/.output/public/_nuxt/D17OF-Vu.js +1 -0
- package/.output/public/_nuxt/D1j8_8rp.js +1 -0
- package/.output/public/_nuxt/D1uDOp7C.js +1 -0
- package/.output/public/_nuxt/D22FLkUw.js +1 -0
- package/.output/public/_nuxt/D2CYqzqI.js +1 -0
- package/.output/public/_nuxt/D32k8WzR.js +1 -0
- package/.output/public/_nuxt/D3lLCCz7.js +1 -0
- package/.output/public/_nuxt/D4h5O-jR.js +1 -0
- package/.output/public/_nuxt/D5-asLiD.js +1 -0
- package/.output/public/_nuxt/D5KoaKCx.js +1 -0
- package/.output/public/_nuxt/D7ScPSBf.js +1 -0
- package/.output/public/_nuxt/D7o27uSR.js +1 -0
- package/.output/public/_nuxt/D7oLnXFd.js +1 -0
- package/.output/public/_nuxt/D82EKSYY.js +1 -0
- package/.output/public/_nuxt/D93ZcfNL.js +1 -0
- package/.output/public/_nuxt/D97Zzqfu.js +1 -0
- package/.output/public/_nuxt/DAi9KRSo.js +1 -0
- package/.output/public/_nuxt/DCWrMWBD.js +1 -0
- package/.output/public/_nuxt/DEsY2yuF.js +1 -0
- package/.output/public/_nuxt/DFQXde-d.js +1 -0
- package/.output/public/_nuxt/DFXneXwc.js +1 -0
- package/.output/public/_nuxt/DGztddWO.js +1 -0
- package/.output/public/_nuxt/DH5Ifo-i.js +1 -0
- package/.output/public/_nuxt/DHCkPAjA.js +1 -0
- package/.output/public/_nuxt/DHJKELXO.js +1 -0
- package/.output/public/_nuxt/DKYwYmdq.js +1 -0
- package/.output/public/_nuxt/DKzvysjW.js +1 -0
- package/.output/public/_nuxt/DM8c43g1.js +1 -0
- package/.output/public/_nuxt/DMDPKkZ0.js +1 -0
- package/.output/public/_nuxt/DMzUqQB5.js +1 -0
- package/.output/public/_nuxt/DNrj_gVY.js +1 -0
- package/.output/public/_nuxt/DPcUKYIF.js +1 -0
- package/.output/public/_nuxt/DPfMkruS.js +1 -0
- package/.output/public/_nuxt/DPvdOr2J.js +1 -0
- package/.output/public/_nuxt/DRg8JJMk.js +1 -0
- package/.output/public/_nuxt/DRprw4p4.js +1 -0
- package/.output/public/_nuxt/DS1LvVMU.js +1 -0
- package/.output/public/_nuxt/DU1UobuO.js +1 -0
- package/.output/public/_nuxt/DUSGQflk.js +1 -0
- package/.output/public/_nuxt/DUszq2jm.js +1 -0
- package/.output/public/_nuxt/DVFEvuxE.js +1 -0
- package/.output/public/_nuxt/DVMEJ2y_.js +1 -0
- package/.output/public/_nuxt/DVxCFoDh.js +1 -0
- package/.output/public/_nuxt/DWedfzmr.js +1 -0
- package/.output/public/_nuxt/DWrx1Km3.js +1 -0
- package/.output/public/_nuxt/DXbdFlpD.js +1 -0
- package/.output/public/_nuxt/DXmwc3jG.js +1 -0
- package/.output/public/_nuxt/DXvB9xmW.js +1 -0
- package/.output/public/_nuxt/DZxFcAj9.js +1 -0
- package/.output/public/_nuxt/D_Q5rh1f.js +1 -0
- package/.output/public/_nuxt/Da5cRb03.js +1 -0
- package/.output/public/_nuxt/DbtIzDGy.js +1 -0
- package/.output/public/_nuxt/DcaNXYhu.js +1 -0
- package/.output/public/_nuxt/Dd19v3D-.js +1 -0
- package/.output/public/_nuxt/DdkO51Og.js +1 -0
- package/.output/public/_nuxt/Ddv68eIx.js +1 -0
- package/.output/public/_nuxt/DeWFVDHI.js +1 -0
- package/.output/public/_nuxt/Des-eS-w.js +1 -0
- package/.output/public/_nuxt/Df68jz8_.js +1 -0
- package/.output/public/_nuxt/Df6bDoY_.js +1 -0
- package/.output/public/_nuxt/DiinP2Uv.js +1 -0
- package/.output/public/_nuxt/DkFqJrB1.js +1 -0
- package/.output/public/_nuxt/DkhsQLT2.js +1 -0
- package/.output/public/_nuxt/DkwncUOv.js +1 -0
- package/.output/public/_nuxt/DlfHMoPT.js +1 -0
- package/.output/public/_nuxt/DljmTZ5-.js +1 -0
- package/.output/public/_nuxt/Dn2_MT6a.js +1 -0
- package/.output/public/_nuxt/DnULxvSX.js +1 -0
- package/.output/public/_nuxt/Dpen1YoG.js +1 -0
- package/.output/public/_nuxt/DqwNpetd.js +1 -0
- package/.output/public/_nuxt/Dr8Zlu6v.js +1 -0
- package/.output/public/_nuxt/DrZfEa88.js +1 -0
- package/.output/public/_nuxt/Drp5UXmf.js +1 -0
- package/.output/public/_nuxt/DsOJ9woJ.js +1 -0
- package/.output/public/_nuxt/Dtc2v4kS.js +1 -0
- package/.output/public/_nuxt/DwheRqRn.js +1 -0
- package/.output/public/_nuxt/Dx-B1_4e.js +1 -0
- package/.output/public/_nuxt/DyJlTyXw.js +1 -0
- package/.output/public/_nuxt/DyxjwDmM.js +1 -0
- package/.output/public/_nuxt/E3gJ1_iC.js +1 -0
- package/.output/public/_nuxt/ETK3OkTL.js +1 -0
- package/.output/public/_nuxt/I3RK9BU8.js +1 -0
- package/.output/public/_nuxt/IeuSbFQv.js +1 -0
- package/.output/public/_nuxt/IvJ92aGK.js +1 -0
- package/.output/public/_nuxt/JhPuU2gP.js +1 -0
- package/.output/public/_nuxt/L9t79GZl.js +1 -0
- package/.output/public/_nuxt/MzD3tlZU.js +1 -0
- package/.output/public/_nuxt/NleAzG8P.js +1 -0
- package/.output/public/_nuxt/P80f7IUj.js +1 -0
- package/.output/public/_nuxt/Pmp26Uib.js +1 -0
- package/.output/public/_nuxt/PoHY5YXO.js +1 -0
- package/.output/public/_nuxt/QIJgUcNo.js +1 -0
- package/.output/public/_nuxt/SQImb3Xm.js +1513 -0
- package/.output/public/_nuxt/SVGiTNnK.js +1 -0
- package/.output/public/_nuxt/SettingsDataTable.BLJqwlEK.css +1 -0
- package/.output/public/_nuxt/UInuXPgp.js +1 -0
- package/.output/public/_nuxt/UQxqNY8s.js +273 -0
- package/.output/public/_nuxt/VOosw3JB.js +1 -0
- package/.output/public/_nuxt/Xi2tawMN.js +1 -0
- package/.output/public/_nuxt/Yzrsuije.js +1 -0
- package/.output/public/_nuxt/ZwEiOJEn.js +1 -0
- package/.output/public/_nuxt/_ykCGR6B.js +1 -0
- package/.output/public/_nuxt/about.fWlW3EhQ.css +1 -0
- package/.output/public/_nuxt/bCR0ucgS.js +1 -0
- package/.output/public/_nuxt/bN70gL4F.js +1 -0
- package/.output/public/_nuxt/brDaU2vB.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/b0e10f5e-bdc5-4007-9281-161aa323adf1.json +1 -0
- package/.output/public/_nuxt/codicon.DCmgc-ay.ttf +0 -0
- package/.output/public/_nuxt/components.CIe9upZ4.css +1 -0
- package/.output/public/_nuxt/dglhsJpM.js +1 -0
- package/.output/public/_nuxt/dwOrl1Do.js +1 -0
- package/.output/public/_nuxt/edge-router-Cceh9XsC.js +4 -0
- package/.output/public/_nuxt/editor.worker-7Ic39DJY.js +12 -0
- package/.output/public/_nuxt/entry.YsT17dxl.css +1 -0
- package/.output/public/_nuxt/error-404.CH3riSrg.css +1 -0
- package/.output/public/_nuxt/error-500.C8Qk6cR7.css +1 -0
- package/.output/public/_nuxt/f7oK2omx.js +1 -0
- package/.output/public/_nuxt/fuZLfV_i.js +1 -0
- package/.output/public/_nuxt/fve9TYiY.js +1 -0
- package/.output/public/_nuxt/g9-lgVsj.js +1 -0
- package/.output/public/_nuxt/gcz8RCvz.js +1 -0
- package/.output/public/_nuxt/graph-layout-CFj469YF.js +1 -0
- package/.output/public/_nuxt/graph-resolver-ClVztv7P.js +175 -0
- package/.output/public/_nuxt/hegEt444.js +1 -0
- package/.output/public/_nuxt/hira-1.DuDDiA5P.png +0 -0
- package/.output/public/_nuxt/hira-unlock-impossible.B5Pl3pvF.png +0 -0
- package/.output/public/_nuxt/index.cU4FhqMM.css +1 -0
- package/.output/public/_nuxt/index.smtD6lYF.css +1 -0
- package/.output/public/_nuxt/instances.CGwVkdDM.css +1 -0
- package/.output/public/_nuxt/irsrSlf-.js +1 -0
- package/.output/public/_nuxt/lXgVvXCa.js +1 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.B6OSyW2I.woff2 +0 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.BpRar1d5.ttf +0 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.Bvl3VxMs.woff +0 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.TEmAk13K.eot +0 -0
- package/.output/public/_nuxt/monaco-editor.D_J4ItrK.css +1 -0
- package/.output/public/_nuxt/oVh4WQ21.js +1 -0
- package/.output/public/_nuxt/operations.BfCOaoAx.css +1 -0
- package/.output/public/_nuxt/operations.DvUkbQbt.css +1 -0
- package/.output/public/_nuxt/p5ZwBirz.js +1 -0
- package/.output/public/_nuxt/pkIJ47B4.js +1 -0
- package/.output/public/_nuxt/q-j0iyEw.js +1 -0
- package/.output/public/_nuxt/qliWkHmV.js +1 -0
- package/.output/public/_nuxt/secrets._PitGGJK.css +1 -0
- package/.output/public/_nuxt/settings.BCRf8MgD.css +1 -0
- package/.output/public/_nuxt/terminals.B07MGsh3.css +1 -0
- package/.output/public/_nuxt/uMbE6_td.js +1 -0
- package/.output/public/_nuxt/vGWfd6FD.js +1 -0
- package/.output/public/_nuxt/vuetify.C_sYHwU6.css +5 -0
- package/.output/public/_nuxt/xVLoeQ-B.js +1 -0
- package/.output/public/_nuxt/yaml.worker-DLQcEOxU.js +410 -0
- package/.output/public/_nuxt/yv6CvBhz.js +1 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/libavoid.wasm +0 -0
- package/.output/public/robots.txt +1 -0
- package/.output/server/index.mjs +18396 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14586 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +58 -0
- package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +15 -0
- package/.output/server/node_modules/@trpc/server/dist/contentTypeParsers-SN4WL9ze.mjs +13 -0
- package/.output/server/node_modules/@trpc/server/dist/getErrorShape-Uhlrl4Bk.mjs +263 -0
- package/.output/server/node_modules/@trpc/server/dist/http-CWyjOa1l.mjs +0 -0
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +6 -0
- package/.output/server/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs +358 -0
- package/.output/server/node_modules/@trpc/server/dist/node-http-ZvZKxPic.mjs +222 -0
- package/.output/server/node_modules/@trpc/server/dist/observable-CUiPknO-.mjs +158 -0
- package/.output/server/node_modules/@trpc/server/dist/observable-UMO3vUa_.mjs +158 -0
- package/.output/server/node_modules/@trpc/server/dist/parseTRPCMessage-ByIHyFRz.mjs +63 -0
- package/.output/server/node_modules/@trpc/server/dist/resolveResponse-CzlbRpCI.mjs +2183 -0
- package/.output/server/node_modules/@trpc/server/dist/tracked-gU3ttYjg.mjs +371 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import-D89CaGtL.mjs +29 -0
- package/.output/server/node_modules/@trpc/server/dist/utils-DdbbrDku.mjs +137 -0
- package/.output/server/node_modules/@trpc/server/dist/ws-DsZkVWpZ.mjs +420 -0
- package/.output/server/node_modules/@trpc/server/package.json +232 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6705 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +686 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1402 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1806 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6696 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1677 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +857 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +594 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/devalue/index.js +3 -0
- package/.output/server/node_modules/devalue/package.json +34 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +160 -0
- package/.output/server/node_modules/devalue/src/stringify.js +232 -0
- package/.output/server/node_modules/devalue/src/uneval.js +351 -0
- package/.output/server/node_modules/devalue/src/utils.js +113 -0
- package/.output/server/node_modules/entities/lib/decode.js +536 -0
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.output/server/node_modules/entities/package.json +90 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +638 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +95 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +219 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C13swrCa.mjs +48 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CAk5S5m6.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +70 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DeCxexjU.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Di5OD67x.mjs +190 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +101 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +196 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
- package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
- package/.output/server/node_modules/ws/lib/constants.js +18 -0
- package/.output/server/node_modules/ws/lib/event-target.js +292 -0
- package/.output/server/node_modules/ws/lib/extension.js +203 -0
- package/.output/server/node_modules/ws/lib/limiter.js +55 -0
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/.output/server/node_modules/ws/lib/receiver.js +706 -0
- package/.output/server/node_modules/ws/lib/sender.js +602 -0
- package/.output/server/node_modules/ws/lib/stream.js +161 -0
- package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/ws/lib/validation.js +152 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +550 -0
- package/.output/server/node_modules/ws/lib/websocket.js +1388 -0
- package/.output/server/node_modules/ws/package.json +69 -0
- package/.output/server/node_modules/ws/wrapper.mjs +8 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +131 -0
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +41 -0
- package/.output/server/node_modules/zod/v4/classic/external.js +18 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +6 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/.output/server/node_modules/zod/v4/core/api.js +906 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +565 -0
- package/.output/server/node_modules/zod/v4/core/core.js +61 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +195 -0
- package/.output/server/node_modules/zod/v4/core/function.js +75 -0
- package/.output/server/node_modules/zod/v4/core/index.js +15 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +57 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +95 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +1718 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/.output/server/node_modules/zod/v4/core/util.js +493 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ar.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +135 -0
- package/.output/server/node_modules/zod/v4/locales/de.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/eo.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +39 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ja.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/kh.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +121 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ota.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/pl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ta.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/ua.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/.output/server/package.json +29 -0
- package/package.json +6 -6
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
const Nc=Object.freeze({status:"aborted"});function D(e,t,r){function i(a,c){var h;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(h=a._zod).traits??(h.traits=new Set),a._zod.traits.add(e),t(a,c);for(const u in s.prototype)u in a||Object.defineProperty(a,u,{value:s.prototype[u].bind(a)});a._zod.constr=s,a._zod.def=c}const n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function s(a){var c;const h=r?.Parent?new o:this;i(h,a),(c=h._zod).deferred??(c.deferred=[]);for(const u of h._zod.deferred)u();return h}return Object.defineProperty(s,"init",{value:i}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}const Oc=Symbol("zod_brand");class fn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Yr={};function Xe(e){return e&&Object.assign(Yr,e),Yr}function Gp(e){return e}function Wp(e){return e}function Hp(e){}function Xp(e){throw new Error}function Yp(e){}function No(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function H(e,t="|"){return e.map(r=>fe(r)).join(t)}function jc(e,t){return typeof t=="bigint"?t.toString():t}function di(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Gt(e){return e==null}function hi(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Ac(e,t){const r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i,o=Number.parseInt(e.toFixed(n).replace(".","")),s=Number.parseInt(t.toFixed(n).replace(".",""));return o%s/10**n}function ve(e,t,r){Object.defineProperty(e,t,{get(){{const i=r();return e[t]=i,i}},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function $n(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Qp(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function em(e){const t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{const n={};for(let o=0;o<t.length;o++)n[t[o]]=i[o];return n})}function tm(e=10){const t="abcdefghijklmnopqrstuvwxyz";let r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function rn(e){return JSON.stringify(e)}const Oo=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function Cn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const zc=di(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Bn(e){if(Cn(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(Cn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function nm(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}const rm=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Qr=new Set(["string","number","symbol"]),Tc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Wt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vt(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function V(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function im(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,o){return t??(t=e()),Reflect.set(t,i,n,o)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function fe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Pc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Dc={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Uc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Cc(e,t){const r={},i=e._zod.def;for(const n in t){if(!(n in i.shape))throw new Error(`Unrecognized key: "${n}"`);t[n]&&(r[n]=i.shape[n])}return vt(e,{...e._zod.def,shape:r,checks:[]})}function Bc(e,t){const r={...e._zod.def.shape},i=e._zod.def;for(const n in t){if(!(n in i.shape))throw new Error(`Unrecognized key: "${n}"`);t[n]&&delete r[n]}return vt(e,{...e._zod.def,shape:r,checks:[]})}function Rc(e,t){if(!Bn(t))throw new Error("Invalid input to extend: expected a plain object");const r={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return $n(this,"shape",i),i},checks:[]};return vt(e,r)}function Fc(e,t){return vt(e,{...e._zod.def,get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return $n(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})}function Lc(e,t,r){const i=t._zod.def.shape,n={...i};if(r)for(const o in r){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(n[o]=e?new e({type:"optional",innerType:i[o]}):i[o])}else for(const o in i)n[o]=e?new e({type:"optional",innerType:i[o]}):i[o];return vt(t,{...t._zod.def,shape:n,checks:[]})}function Zc(e,t,r){const i=t._zod.def.shape,n={...i};if(r)for(const o in r){if(!(o in n))throw new Error(`Unrecognized key: "${o}"`);r[o]&&(n[o]=new e({type:"nonoptional",innerType:i[o]}))}else for(const o in i)n[o]=new e({type:"nonoptional",innerType:i[o]});return vt(t,{...t._zod.def,shape:n,checks:[]})}function un(e,t=0){for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function it(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function An(e){return typeof e=="string"?e:e?.message}function ft(e,t,r){const i={...e,path:e.path??[]};if(!e.message){const n=An(e.inst?._zod.def?.error?.(e))??An(t?.error?.(e))??An(r.customError?.(e))??An(r.localeError?.(e))??"Invalid input";i.message=n}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function pi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function mi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function dn(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function om(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}class sm{constructor(...t){}}var am=Object.freeze({__proto__:null,BIGINT_FORMAT_RANGES:Uc,Class:sm,NUMBER_FORMAT_RANGES:Dc,aborted:un,allowsEval:zc,assert:Yp,assertEqual:Gp,assertIs:Hp,assertNever:Xp,assertNotEqual:Wp,assignProp:$n,cached:di,captureStackTrace:Oo,cleanEnum:om,cleanRegex:hi,clone:vt,createTransparentProxy:im,defineLazy:ve,esc:rn,escapeRegex:Wt,extend:Rc,finalizeIssue:ft,floatSafeRemainder:Ac,getElementAtPath:Qp,getEnumValues:No,getLengthableOrigin:mi,getParsedType:rm,getSizableOrigin:pi,isObject:Cn,isPlainObject:Bn,issue:dn,joinValues:H,jsonStringifyReplacer:jc,merge:Fc,normalizeParams:V,nullish:Gt,numKeys:nm,omit:Bc,optionalKeys:Pc,partial:Lc,pick:Cc,prefixIssues:it,primitiveTypes:Tc,promiseAllObject:em,propertyKeyTypes:Qr,randomString:tm,required:Zc,stringifyPrimitive:fe,unwrapMessage:An});const Mc=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,jc,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},jo=D("$ZodError",Mc),Kn=D("$ZodError",Mc,{Parent:Error});function Ao(e,t=r=>r.message){const r={},i=[];for(const n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function zo(e,t){const r=t||function(o){return o.message},i={_errors:[]},n=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>n({issues:a}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)i._errors.push(r(s));else{let a=i,c=0;for(;c<s.path.length;){const h=s.path[c];c===s.path.length-1?(a[h]=a[h]||{_errors:[]},a[h]._errors.push(r(s))):a[h]=a[h]||{_errors:[]},a=a[h],c++}}};return n(e),i}function qc(e,t){const r=t||function(o){return o.message},i={errors:[]},n=(o,s=[])=>{var a,c;for(const h of o.issues)if(h.code==="invalid_union"&&h.errors.length)h.errors.map(u=>n({issues:u},h.path));else if(h.code==="invalid_key")n({issues:h.issues},h.path);else if(h.code==="invalid_element")n({issues:h.issues},h.path);else{const u=[...s,...h.path];if(u.length===0){i.errors.push(r(h));continue}let d=i,y=0;for(;y<u.length;){const _=u[y],b=y===u.length-1;typeof _=="string"?(d.properties??(d.properties={}),(a=d.properties)[_]??(a[_]={errors:[]}),d=d.properties[_]):(d.items??(d.items=[]),(c=d.items)[_]??(c[_]={errors:[]}),d=d.items[_]),b&&d.errors.push(r(h)),y++}}};return n(e),i}function Vc(e){const t=[];for(const r of e)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function Kc(e){const t=[],r=[...e.issues].sort((i,n)=>i.path.length-n.path.length);for(const i of r)t.push(`✖ ${i.message}`),i.path?.length&&t.push(` → at ${Vc(i.path)}`);return t.join(`
|
|
2
|
+
`)}const To=e=>(t,r,i,n)=>{const o=i?Object.assign(i,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new fn;if(s.issues.length){const a=new(n?.Err??e)(s.issues.map(c=>ft(c,o,Xe())));throw Oo(a,n?.callee),a}return s.value},fo=To(Kn),Po=e=>async(t,r,i,n)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(n?.Err??e)(s.issues.map(c=>ft(c,o,Xe())));throw Oo(a,n?.callee),a}return s.value},ho=Po(Kn),Do=e=>(t,r,i)=>{const n=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new fn;return o.issues.length?{success:!1,error:new(e??jo)(o.issues.map(s=>ft(s,n,Xe())))}:{success:!0,data:o.value}},Jc=Do(Kn),Uo=e=>async(t,r,i)=>{const n=i?Object.assign(i,{async:!0}):{async:!0};let o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>ft(s,n,Xe())))}:{success:!0,data:o.value}},Gc=Uo(Kn),Wc=/^[cC][^\s-]{8,}$/,Hc=/^[0-9a-z]+$/,Xc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Yc=/^[0-9a-vA-V]{20}$/,Qc=/^[A-Za-z0-9]{27}$/,el=/^[a-zA-Z0-9_-]{21}$/,tl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,um=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,hn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,cm=hn(4),lm=hn(6),fm=hn(7),rl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dm=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,hm=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,pm=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,mm=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,gm="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function il(){return new RegExp(gm,"u")}const ol=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,sl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,al=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ul=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,cl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Co=/^[A-Za-z0-9_-]*$/,ll=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,ym=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,fl=/^\+(?:[0-9]){6,14}[0-9]$/,dl="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",hl=new RegExp(`^${dl}$`);function pl(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ml(e){return new RegExp(`^${pl(e)}$`)}function gl(e){const t=pl({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-]\\d{2}:\\d{2})");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${dl}T(?:${i})$`)}const yl=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},vl=/^\d+n?$/,$l=/^\d+$/,bl=/^-?\d+(?:\.\d+)?/i,_l=/true|false/i,wl=/null/i,kl=/undefined/i,Sl=/^[^A-Z]*$/,Il=/^[^a-z]*$/;var El=Object.freeze({__proto__:null,base64:cl,base64url:Co,bigint:vl,boolean:_l,browserEmail:mm,cidrv4:al,cidrv6:ul,cuid:Wc,cuid2:Hc,date:hl,datetime:gl,domain:ym,duration:tl,e164:fl,email:rl,emoji:il,extendedDuration:um,guid:nl,hostname:ll,html5Email:dm,integer:$l,ipv4:ol,ipv6:sl,ksuid:Qc,lowercase:Sl,nanoid:el,null:wl,number:bl,rfc5322Email:hm,string:yl,time:ml,ulid:Xc,undefined:kl,unicodeEmail:pm,uppercase:Il,uuid:hn,uuid4:cm,uuid6:lm,uuid7:fm,xid:Yc});const Ce=D("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),xl={number:"number",bigint:"bigint",object:"date"},Bo=D("$ZodCheckLessThan",(e,t)=>{Ce.init(e,t);const r=xl[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ro=D("$ZodCheckGreaterThan",(e,t)=>{Ce.init(e,t);const r=xl[typeof t.value];e._zod.onattach.push(i=>{const n=i._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Nl=D("$ZodCheckMultipleOf",(e,t)=>{Ce.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Ac(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Ol=D("$ZodCheckNumberFormat",(e,t)=>{Ce.init(e,t),t.format=t.format||"float64";const r=t.format?.includes("int"),i=r?"int":"number",[n,o]=Dc[t.format];e._zod.onattach.push(s=>{const a=s._zod.bag;a.format=t.format,a.minimum=n,a.maximum=o,r&&(a.pattern=$l)}),e._zod.check=s=>{const a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:i,format:t.format,code:"invalid_type",input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}a<n&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inst:e})}}),jl=D("$ZodCheckBigIntFormat",(e,t)=>{Ce.init(e,t);const[r,i]=Uc[t.format];e._zod.onattach.push(n=>{const o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=i}),e._zod.check=n=>{const o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),Al=D("$ZodCheckMaxSize",(e,t)=>{var r;Ce.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Gt(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;n.size<=t.maximum||i.issues.push({origin:pi(n),code:"too_big",maximum:t.maximum,input:n,inst:e,continue:!t.abort})}}),zl=D("$ZodCheckMinSize",(e,t)=>{var r;Ce.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Gt(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;n.size>=t.minimum||i.issues.push({origin:pi(n),code:"too_small",minimum:t.minimum,input:n,inst:e,continue:!t.abort})}}),Tl=D("$ZodCheckSizeEquals",(e,t)=>{var r;Ce.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Gt(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{const n=i.value,o=n.size;if(o===t.size)return;const s=o>t.size;i.issues.push({origin:pi(n),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Pl=D("$ZodCheckMaxLength",(e,t)=>{var r;Ce.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Gt(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const n=i.value;if(n.length<=t.maximum)return;const s=mi(n);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Dl=D("$ZodCheckMinLength",(e,t)=>{var r;Ce.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Gt(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const n=i.value;if(n.length>=t.minimum)return;const s=mi(n);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ul=D("$ZodCheckLengthEquals",(e,t)=>{var r;Ce.init(e,t),(r=e._zod.def).when??(r.when=i=>{const n=i.value;return!Gt(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{const n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{const n=i.value,o=n.length;if(o===t.length)return;const s=mi(n),a=o>t.length;i.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Jn=D("$ZodCheckStringFormat",(e,t)=>{var r,i;Ce.init(e,t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),Cl=D("$ZodCheckRegex",(e,t)=>{Jn.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Bl=D("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Sl),Jn.init(e,t)}),Rl=D("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Il),Jn.init(e,t)}),Fl=D("$ZodCheckIncludes",(e,t)=>{Ce.init(e,t);const r=Wt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Ll=D("$ZodCheckStartsWith",(e,t)=>{Ce.init(e,t);const r=new RegExp(`^${Wt(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Zl=D("$ZodCheckEndsWith",(e,t)=>{Ce.init(e,t);const r=new RegExp(`.*${Wt(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function Ta(e,t,r){e.issues.length&&t.issues.push(...it(r,e.issues))}const Ml=D("$ZodCheckProperty",(e,t)=>{Ce.init(e,t),e._zod.check=r=>{const i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>Ta(n,r,t.property));Ta(i,r,t.property)}}),ql=D("$ZodCheckMimeType",(e,t)=>{Ce.init(e,t);const r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e})}}),Vl=D("$ZodCheckOverwrite",(e,t)=>{Ce.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Kl{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
|
|
3
|
+
`).filter(s=>s),n=Math.min(...i.map(s=>s.length-s.trimStart().length)),o=i.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(const s of o)this.content.push(s)}compile(){const t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(`
|
|
4
|
+
`))}}const Jl={major:4,minor:0,patch:5},ue=D("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jl;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const n of i)for(const o of n._zod.onattach)o(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const n=(o,s,a)=>{let c=un(o),h;for(const u of s){if(u._zod.def.when){if(!u._zod.def.when(o))continue}else if(c)continue;const d=o.issues.length,y=u._zod.check(o);if(y instanceof Promise&&a?.async===!1)throw new fn;if(h||y instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await y,o.issues.length!==d&&(c||(c=un(o,d)))});else{if(o.issues.length===d)continue;c||(c=un(o,d))}}return h?h.then(()=>o):o};e._zod.run=(o,s)=>{const a=e._zod.parse(o,s);if(a instanceof Promise){if(s.async===!1)throw new fn;return a.then(c=>n(c,i,s))}return n(a,i,s)}}e["~standard"]={validate:n=>{try{const o=Jc(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Gc(e,n).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),Gn=D("$ZodString",(e,t)=>{ue.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??yl(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ne=D("$ZodStringFormat",(e,t)=>{Jn.init(e,t),Gn.init(e,t)}),Gl=D("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=nl),Ne.init(e,t)}),Wl=D("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=hn(i))}else t.pattern??(t.pattern=hn());Ne.init(e,t)}),Hl=D("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=rl),Ne.init(e,t)}),Xl=D("$ZodURL",(e,t)=>{Ne.init(e,t),e._zod.check=r=>{try{const i=r.value,n=new URL(i),o=n.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ll.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),!i.endsWith("/")&&o.endsWith("/")?r.value=o.slice(0,-1):r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Yl=D("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=il()),Ne.init(e,t)}),Ql=D("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=el),Ne.init(e,t)}),ef=D("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Wc),Ne.init(e,t)}),tf=D("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Hc),Ne.init(e,t)}),nf=D("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Xc),Ne.init(e,t)}),rf=D("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Yc),Ne.init(e,t)}),of=D("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Qc),Ne.init(e,t)}),sf=D("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=gl(t)),Ne.init(e,t)}),af=D("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=hl),Ne.init(e,t)}),uf=D("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ml(t)),Ne.init(e,t)}),cf=D("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=tl),Ne.init(e,t)}),lf=D("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ol),Ne.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format="ipv4"})}),ff=D("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=sl),Ne.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),df=D("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=al),Ne.init(e,t)}),hf=D("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ul),Ne.init(e,t),e._zod.check=r=>{const[i,n]=r.value.split("/");try{if(!n)throw new Error;const o=Number(n);if(`${o}`!==n)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${i}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Fo(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const pf=D("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=cl),Ne.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{Fo(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function mf(e){if(!Co.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Fo(r)}const gf=D("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Co),Ne.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{mf(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),yf=D("$ZodE164",(e,t)=>{t.pattern??(t.pattern=fl),Ne.init(e,t)});function vf(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}const $f=D("$ZodJWT",(e,t)=>{Ne.init(e,t),e._zod.check=r=>{vf(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),bf=D("$ZodCustomStringFormat",(e,t)=>{Ne.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Lo=D("$ZodNumber",(e,t)=>{ue.init(e,t),e._zod.pattern=e._zod.bag.pattern??bl,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}const n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;const o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),_f=D("$ZodNumber",(e,t)=>{Ol.init(e,t),Lo.init(e,t)}),Zo=D("$ZodBoolean",(e,t)=>{ue.init(e,t),e._zod.pattern=_l,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}const n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Mo=D("$ZodBigInt",(e,t)=>{ue.init(e,t),e._zod.pattern=vl,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),wf=D("$ZodBigInt",(e,t)=>{jl.init(e,t),Mo.init(e,t)}),kf=D("$ZodSymbol",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Sf=D("$ZodUndefined",(e,t)=>{ue.init(e,t),e._zod.pattern=kl,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),If=D("$ZodNull",(e,t)=>{ue.init(e,t),e._zod.pattern=wl,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Ef=D("$ZodAny",(e,t)=>{ue.init(e,t),e._zod.parse=r=>r}),ei=D("$ZodUnknown",(e,t)=>{ue.init(e,t),e._zod.parse=r=>r}),xf=D("$ZodNever",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Nf=D("$ZodVoid",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Of=D("$ZodDate",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}const n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function Pa(e,t,r){e.issues.length&&t.issues.push(...it(r,e.issues)),t.value[r]=e.value}const qo=D("$ZodArray",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);const o=[];for(let s=0;s<n.length;s++){const a=n[s],c=t.element._zod.run({value:a,issues:[]},i);c instanceof Promise?o.push(c.then(h=>Pa(h,r,s))):Pa(c,r,s)}return o.length?Promise.all(o).then(()=>r):r}});function tr(e,t,r){e.issues.length&&t.issues.push(...it(r,e.issues)),t.value[r]=e.value}function Da(e,t,r,i){e.issues.length?i[r]===void 0?r in i?t.value[r]=void 0:t.value[r]=e.value:t.issues.push(...it(r,e.issues)):e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}const jf=D("$ZodObject",(e,t)=>{ue.init(e,t);const r=di(()=>{const d=Object.keys(t.shape);for(const _ of d)if(!(t.shape[_]instanceof ue))throw new Error(`Invalid element at key "${_}": expected a Zod schema`);const y=Pc(t.shape);return{shape:t.shape,keys:d,keySet:new Set(d),numKeys:d.length,optionalKeys:new Set(y)}});ve(e._zod,"propValues",()=>{const d=t.shape,y={};for(const _ in d){const b=d[_]._zod;if(b.values){y[_]??(y[_]=new Set);for(const g of b.values)y[_].add(g)}}return y});const i=d=>{const y=new Kl(["shape","payload","ctx"]),_=r.value,b=f=>{const v=rn(f);return`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`};y.write("const input = payload.value;");const g=Object.create(null);let m=0;for(const f of _.keys)g[f]=`key_${m++}`;y.write("const newResult = {}");for(const f of _.keys)if(_.optionalKeys.has(f)){const v=g[f];y.write(`const ${v} = ${b(f)};`);const S=rn(f);y.write(`
|
|
5
|
+
if (${v}.issues.length) {
|
|
6
|
+
if (input[${S}] === undefined) {
|
|
7
|
+
if (${S} in input) {
|
|
8
|
+
newResult[${S}] = undefined;
|
|
9
|
+
}
|
|
10
|
+
} else {
|
|
11
|
+
payload.issues = payload.issues.concat(
|
|
12
|
+
${v}.issues.map((iss) => ({
|
|
13
|
+
...iss,
|
|
14
|
+
path: iss.path ? [${S}, ...iss.path] : [${S}],
|
|
15
|
+
}))
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
} else if (${v}.value === undefined) {
|
|
19
|
+
if (${S} in input) newResult[${S}] = undefined;
|
|
20
|
+
} else {
|
|
21
|
+
newResult[${S}] = ${v}.value;
|
|
22
|
+
}
|
|
23
|
+
`)}else{const v=g[f];y.write(`const ${v} = ${b(f)};`),y.write(`
|
|
24
|
+
if (${v}.issues.length) payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
|
|
25
|
+
...iss,
|
|
26
|
+
path: iss.path ? [${rn(f)}, ...iss.path] : [${rn(f)}]
|
|
27
|
+
})));`),y.write(`newResult[${rn(f)}] = ${v}.value`)}y.write("payload.value = newResult;"),y.write("return payload;");const $=y.compile();return(f,v)=>$(d,f,v)};let n;const o=Cn,s=!Yr.jitless,c=s&&zc.value,h=t.catchall;let u;e._zod.parse=(d,y)=>{u??(u=r.value);const _=d.value;if(!o(_))return d.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),d;const b=[];if(s&&c&&y?.async===!1&&y.jitless!==!0)n||(n=i(t.shape)),d=n(d,y);else{d.value={};const v=u.shape;for(const S of u.keys){const E=v[S],I=E._zod.run({value:_[S],issues:[]},y),N=E._zod.optin==="optional"&&E._zod.optout==="optional";I instanceof Promise?b.push(I.then(j=>N?Da(j,d,S,_):tr(j,d,S))):N?Da(I,d,S,_):tr(I,d,S)}}if(!h)return b.length?Promise.all(b).then(()=>d):d;const g=[],m=u.keySet,$=h._zod,f=$.def.type;for(const v of Object.keys(_)){if(m.has(v))continue;if(f==="never"){g.push(v);continue}const S=$.run({value:_[v],issues:[]},y);S instanceof Promise?b.push(S.then(E=>tr(E,d,v))):tr(S,d,v)}return g.length&&d.issues.push({code:"unrecognized_keys",keys:g,input:_,inst:e}),b.length?Promise.all(b).then(()=>d):d}});function Ua(e,t,r,i){for(const n of e)if(n.issues.length===0)return t.value=n.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(n=>n.issues.map(o=>ft(o,i,Xe())))}),t}const Vo=D("$ZodUnion",(e,t)=>{ue.init(e,t),ve(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ve(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ve(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ve(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>hi(i.source)).join("|")})$`)}}),e._zod.parse=(r,i)=>{let n=!1;const o=[];for(const s of t.options){const a=s._zod.run({value:r.value,issues:[]},i);if(a instanceof Promise)o.push(a),n=!0;else{if(a.issues.length===0)return a;o.push(a)}}return n?Promise.all(o).then(s=>Ua(s,r,e,i)):Ua(o,r,e,i)}}),Af=D("$ZodDiscriminatedUnion",(e,t)=>{Vo.init(e,t);const r=e._zod.parse;ve(e._zod,"propValues",()=>{const n={};for(const o of t.options){const s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[a,c]of Object.entries(s)){n[a]||(n[a]=new Set);for(const h of c)n[a].add(h)}}return n});const i=di(()=>{const n=t.options,o=new Map;for(const s of n){const a=s._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const c of a){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,s)}}return o});e._zod.parse=(n,o)=>{const s=n.value;if(!Cn(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),n;const a=i.value.get(s?.[t.discriminator]);return a?a._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:s,path:[t.discriminator],inst:e}),n)}}),zf=D("$ZodIntersection",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=r.value,o=t.left._zod.run({value:n,issues:[]},i),s=t.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([c,h])=>Ca(r,c,h)):Ca(r,o,s)}});function po(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Bn(e)&&Bn(t)){const r=Object.keys(t),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(const o of i){const s=po(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n[o]=s.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const n=e[i],o=t[i],s=po(n,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Ca(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),un(e))return e;const i=po(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const gi=D("$ZodTuple",(e,t)=>{ue.init(e,t);const r=t.items,i=r.length-[...r].reverse().findIndex(n=>n._zod.optin!=="optional");e._zod.parse=(n,o)=>{const s=n.value;if(!Array.isArray(s))return n.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];const a=[];if(!t.rest){const h=s.length>r.length,u=s.length<i-1;if(h||u)return n.issues.push({input:s,inst:e,origin:"array",...h?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length}}),n}let c=-1;for(const h of r){if(c++,c>=s.length&&c>=i)continue;const u=h._zod.run({value:s[c],issues:[]},o);u instanceof Promise?a.push(u.then(d=>nr(d,n,c))):nr(u,n,c)}if(t.rest){const h=s.slice(r.length);for(const u of h){c++;const d=t.rest._zod.run({value:u,issues:[]},o);d instanceof Promise?a.push(d.then(y=>nr(y,n,c))):nr(d,n,c)}}return a.length?Promise.all(a).then(()=>n):n}});function nr(e,t,r){e.issues.length&&t.issues.push(...it(r,e.issues)),t.value[r]=e.value}const Tf=D("$ZodRecord",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!Bn(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;const o=[];if(t.keyType._zod.values){const s=t.keyType._zod.values;r.value={};for(const c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){const h=t.valueType._zod.run({value:n[c],issues:[]},i);h instanceof Promise?o.push(h.then(u=>{u.issues.length&&r.issues.push(...it(c,u.issues)),r.value[c]=u.value})):(h.issues.length&&r.issues.push(...it(c,h.issues)),r.value[c]=h.value)}let a;for(const c in n)s.has(c)||(a=a??[],a.push(c));a&&a.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:a})}else{r.value={};for(const s of Reflect.ownKeys(n)){if(s==="__proto__")continue;const a=t.keyType._zod.run({value:s,issues:[]},i);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:a.issues.map(h=>ft(h,i,Xe())),input:s,path:[s],inst:e}),r.value[a.value]=a.value;continue}const c=t.valueType._zod.run({value:n[s],issues:[]},i);c instanceof Promise?o.push(c.then(h=>{h.issues.length&&r.issues.push(...it(s,h.issues)),r.value[a.value]=h.value})):(c.issues.length&&r.issues.push(...it(s,c.issues)),r.value[a.value]=c.value)}}return o.length?Promise.all(o).then(()=>r):r}}),Pf=D("$ZodMap",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;const o=[];r.value=new Map;for(const[s,a]of n){const c=t.keyType._zod.run({value:s,issues:[]},i),h=t.valueType._zod.run({value:a,issues:[]},i);c instanceof Promise||h instanceof Promise?o.push(Promise.all([c,h]).then(([u,d])=>{Ba(u,d,r,s,n,e,i)})):Ba(c,h,r,s,n,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function Ba(e,t,r,i,n,o,s){e.issues.length&&(Qr.has(typeof i)?r.issues.push(...it(i,e.issues)):r.issues.push({origin:"map",code:"invalid_key",input:n,inst:o,issues:e.issues.map(a=>ft(a,s,Xe()))})),t.issues.length&&(Qr.has(typeof i)?r.issues.push(...it(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:t.issues.map(a=>ft(a,s,Xe()))})),r.value.set(e.value,t.value)}const Df=D("$ZodSet",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;const o=[];r.value=new Set;for(const s of n){const a=t.valueType._zod.run({value:s,issues:[]},i);a instanceof Promise?o.push(a.then(c=>Ra(c,r))):Ra(a,r)}return o.length?Promise.all(o).then(()=>r):r}});function Ra(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}const Uf=D("$ZodEnum",(e,t)=>{ue.init(e,t);const r=No(t.entries);e._zod.values=new Set(r),e._zod.pattern=new RegExp(`^(${r.filter(i=>Qr.has(typeof i)).map(i=>typeof i=="string"?Wt(i):i.toString()).join("|")})$`),e._zod.parse=(i,n)=>{const o=i.value;return e._zod.values.has(o)||i.issues.push({code:"invalid_value",values:r,input:o,inst:e}),i}}),Cf=D("$ZodLiteral",(e,t)=>{ue.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Wt(r):r?r.toString():String(r)).join("|")})$`),e._zod.parse=(r,i)=>{const n=r.value;return e._zod.values.has(n)||r.issues.push({code:"invalid_value",values:t.values,input:n,inst:e}),r}}),Bf=D("$ZodFile",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),Ko=D("$ZodTransform",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new fn;return r.value=n,r}}),Rf=D("$ZodOptional",(e,t)=>{ue.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ve(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ve(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${hi(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(r,i):r.value===void 0?r:t.innerType._zod.run(r,i)}),Ff=D("$ZodNullable",(e,t)=>{ue.init(e,t),ve(e._zod,"optin",()=>t.innerType._zod.optin),ve(e._zod,"optout",()=>t.innerType._zod.optout),ve(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${hi(r.source)}|null)$`):void 0}),ve(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),Lf=D("$ZodDefault",(e,t)=>{ue.init(e,t),e._zod.optin="optional",ve(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(r.value===void 0)return r.value=t.defaultValue,r;const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>Fa(o,t)):Fa(n,t)}});function Fa(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Zf=D("$ZodPrefault",(e,t)=>{ue.init(e,t),e._zod.optin="optional",ve(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),Mf=D("$ZodNonOptional",(e,t)=>{ue.init(e,t),ve(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>La(o,e)):La(n,e)}});function La(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const qf=D("$ZodSuccess",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),Vf=D("$ZodCatch",(e,t)=>{ue.init(e,t),e._zod.optin="optional",ve(e._zod,"optout",()=>t.innerType._zod.optout),ve(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(s=>ft(s,i,Xe()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>ft(o,i,Xe()))},input:r.value}),r.issues=[]),r)}}),Kf=D("$ZodNaN",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Jo=D("$ZodPipe",(e,t)=>{ue.init(e,t),ve(e._zod,"values",()=>t.in._zod.values),ve(e._zod,"optin",()=>t.in._zod.optin),ve(e._zod,"optout",()=>t.out._zod.optout),ve(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{const n=t.in._zod.run(r,i);return n instanceof Promise?n.then(o=>Za(o,t,i)):Za(n,t,i)}});function Za(e,t,r){return un(e)?e:t.out._zod.run({value:e.value,issues:e.issues},r)}const Jf=D("$ZodReadonly",(e,t)=>{ue.init(e,t),ve(e._zod,"propValues",()=>t.innerType._zod.propValues),ve(e._zod,"values",()=>t.innerType._zod.values),ve(e._zod,"optin",()=>t.innerType._zod.optin),ve(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,i)=>{const n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(Ma):Ma(n)}});function Ma(e){return e.value=Object.freeze(e.value),e}const Gf=D("$ZodTemplateLiteral",(e,t)=>{ue.init(e,t);const r=[];for(const i of t.parts)if(i instanceof ue){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,s))}else if(i===null||Tc.has(typeof i))r.push(Wt(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Wf=D("$ZodPromise",(e,t)=>{ue.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),Hf=D("$ZodLazy",(e,t)=>{ue.init(e,t),ve(e._zod,"innerType",()=>t.getter()),ve(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ve(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ve(e._zod,"optin",()=>e._zod.innerType._zod.optin),ve(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),Xf=D("$ZodCustom",(e,t)=>{Ce.init(e,t),ue.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(o=>qa(o,r,i,e));qa(n,r,i,e)}});function qa(e,t,r,i){if(!e){const n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(dn(n))}}const vm=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return n=>{switch(n.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${n.expected}، ولكن تم إدخال ${r(n.input)}`;case"invalid_value":return n.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${fe(n.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?` أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${o} ${n.maximum.toString()} ${s.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${n.origin??"القيمة"} ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${o} ${n.minimum.toString()} ${s.unit}`:`أصغر من اللازم: يفترض لـ ${n.origin} أن يكون ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${n.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${i[o.format]??n.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${n.divisor}`;case"unrecognized_keys":return`معرف${n.keys.length>1?"ات":""} غريب${n.keys.length>1?"ة":""}: ${H(n.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${n.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${n.origin}`;default:return"مدخل غير مقبول"}}};function $m(){return{localeError:vm()}}const bm=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${n.expected}, daxil olan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Yanlış dəyər: gözlənilən ${fe(n.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${o}${n.maximum.toString()} ${s.unit??"element"}`:`Çox böyük: gözlənilən ${n.origin??"dəyər"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Çox kiçik: gözlənilən ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`Çox kiçik: gözlənilən ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${i[o.format]??n.format}`}case"not_multiple_of":return`Yanlış ədəd: ${n.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${n.keys.length>1?"lar":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${n.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function _m(){return{localeError:bm()}}function Va(e,t,r,i){const n=Math.abs(e),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?r:i}const wm=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"лік";case"object":{if(Array.isArray(n))return"масіў";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return n=>{switch(n.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${n.expected}, атрымана ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Няправільны ўвод: чакалася ${fe(n.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);if(s){const a=Number(n.maximum),c=Va(a,s.unit.one,s.unit.few,s.unit.many);return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна ${s.verb} ${o}${n.maximum.toString()} ${c}`}return`Занадта вялікі: чакалася, што ${n.origin??"значэнне"} павінна быць ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);if(s){const a=Number(n.minimum),c=Va(a,s.unit.one,s.unit.few,s.unit.many);return`Занадта малы: чакалася, што ${n.origin} павінна ${s.verb} ${o}${n.minimum.toString()} ${c}`}return`Занадта малы: чакалася, што ${n.origin} павінна быць ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${i[o.format]??n.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${n.keys.length>1?"ключы":"ключ"}: ${H(n.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${n.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${n.origin}`;default:return"Няправільны ўвод"}}};function km(){return{localeError:wm()}}const Sm=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Tipus invàlid: s'esperava ${n.expected}, s'ha rebut ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Valor invàlid: s'esperava ${fe(n.values[0])}`:`Opció invàlida: s'esperava una de ${H(n.values," o ")}`;case"too_big":{const o=n.inclusive?"com a màxim":"menys de",s=t(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingués ${o} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?"com a mínim":"més de",s=t(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingués ${o} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${i[o.format]??n.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${n.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${n.origin}`;default:return"Entrada invàlida"}}};function Im(){return{localeError:Sm()}}const Em=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(n))return"pole";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return n=>{switch(n.code){case"invalid_type":return`Neplatný vstup: očekáváno ${n.expected}, obdrženo ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neplatný vstup: očekáváno ${fe(n.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Hodnota je příliš velká: ${n.origin??"hodnota"} musí mít ${o}${n.maximum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš velká: ${n.origin??"hodnota"} musí být ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Hodnota je příliš malá: ${n.origin??"hodnota"} musí mít ${o}${n.minimum.toString()} ${s.unit??"prvků"}`:`Hodnota je příliš malá: ${n.origin??"hodnota"} musí být ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${i[o.format]??n.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${n.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${H(n.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${n.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${n.origin}`;default:return"Neplatný vstup"}}};function xm(){return{localeError:Em()}}const Nm=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"Zahl";case"object":{if(Array.isArray(n))return"Array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return n=>{switch(n.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${n.expected}, erhalten ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ungültige Eingabe: erwartet ${fe(n.values[0])}`:`Ungültige Option: erwartet eine von ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Zu groß: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${i[o.format]??n.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${n.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${n.origin}`;default:return"Ungültige Eingabe"}}};function Om(){return{localeError:Nm()}}const jm=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Am=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function t(i){return e[i]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{switch(i.code){case"invalid_type":return`Invalid input: expected ${i.expected}, received ${jm(i.input)}`;case"invalid_value":return i.values.length===1?`Invalid input: expected ${fe(i.values[0])}`:`Invalid option: expected one of ${H(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Too big: expected ${i.origin??"value"} to have ${n}${i.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",o=t(i.origin);return o?`Too small: expected ${i.origin} to have ${n}${i.minimum.toString()} ${o.unit}`:`Too small: expected ${i.origin} to be ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Invalid string: must start with "${n.prefix}"`:n.format==="ends_with"?`Invalid string: must end with "${n.suffix}"`:n.format==="includes"?`Invalid string: must include "${n.includes}"`:n.format==="regex"?`Invalid string: must match pattern ${n.pattern}`:`Invalid ${r[n.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${H(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Yf(){return{localeError:Am()}}const zm=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},Tm=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return i=>{switch(i.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${i.expected}, riceviĝis ${zm(i.input)}`;case"invalid_value":return i.values.length===1?`Nevalida enigo: atendiĝis ${fe(i.values[0])}`:`Nevalida opcio: atendiĝis unu el ${H(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${i.origin??"valoro"} havu ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",o=t(i.origin);return o?`Tro malgranda: atendiĝis ke ${i.origin} havu ${n}${i.minimum.toString()} ${o.unit}`:`Tro malgranda: atendiĝis ke ${i.origin} estu ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${r[n.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} ŝlosilo${i.keys.length>1?"j":""}: ${H(i.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function Pm(){return{localeError:Tm()}}const Dm=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"arreglo";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype)return n.constructor.name}}return o},i={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Entrada inválida: se esperaba ${n.expected}, recibido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: se esperaba ${fe(n.values[0])}`:`Opción inválida: se esperaba una de ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Demasiado grande: se esperaba que ${n.origin??"valor"} tuviera ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${n.origin??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Demasiado pequeño: se esperaba que ${n.origin} tuviera ${o}${n.minimum.toString()} ${s.unit}`:`Demasiado pequeño: se esperaba que ${n.origin} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Cadena inválida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inválida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inválida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${i[o.format]??n.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Llave inválida en ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${n.origin}`;default:return"Entrada inválida"}}};function Um(){return{localeError:Dm()}}const Cm=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"آرایه";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return n=>{switch(n.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${n.expected} میبود، ${r(n.input)} دریافت شد`;case"invalid_value":return n.values.length===1?`ورودی نامعتبر: میبایست ${fe(n.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${H(n.values,"|")} میبود`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`خیلی بزرگ: ${n.origin??"مقدار"} باید ${o}${n.maximum.toString()} ${s.unit??"عنصر"} باشد`:`خیلی بزرگ: ${n.origin??"مقدار"} باید ${o}${n.maximum.toString()} باشد`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`خیلی کوچک: ${n.origin} باید ${o}${n.minimum.toString()} ${s.unit} باشد`:`خیلی کوچک: ${n.origin} باید ${o}${n.minimum.toString()} باشد`}case"invalid_format":{const o=n;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${i[o.format]??n.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${n.divisor} باشد`;case"unrecognized_keys":return`کلید${n.keys.length>1?"های":""} ناشناس: ${H(n.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${n.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${n.origin}`;default:return"ورودی نامعتبر"}}};function Bm(){return{localeError:Cm()}}const Rm=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return n=>{switch(n.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${n.expected}, oli ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Virheellinen syöte: täytyy olla ${fe(n.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Liian suuri: ${s.subject} täytyy olla ${o}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Liian pieni: ${s.subject} täytyy olla ${o}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${i[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${H(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function Fm(){return{localeError:Rm()}}const Lm=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"nombre";case"object":{if(Array.isArray(n))return"tableau";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : ${n.expected} attendu, ${r(n.input)} reçu`;case"invalid_value":return n.values.length===1?`Entrée invalide : ${fe(n.values[0])} attendu`:`Option invalide : une valeur parmi ${H(n.values,"|")} attendue`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Trop grand : ${n.origin??"valeur"} doit ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"élément(s)"}`:`Trop grand : ${n.origin??"valeur"} doit être ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Trop petit : ${n.origin} doit ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${n.origin} doit être ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${i[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${H(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function Zm(){return{localeError:Lm()}}const Mm=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return n=>{switch(n.code){case"invalid_type":return`Entrée invalide : attendu ${n.expected}, reçu ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrée invalide : attendu ${fe(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"≤":"<",s=t(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?"≥":">",s=t(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${i[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${n.divisor}`;case"unrecognized_keys":return`Clé${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${H(n.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${n.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entrée invalide"}}};function qm(){return{localeError:Mm()}}const Vm=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return n=>{switch(n.code){case"invalid_type":return`קלט לא תקין: צריך ${n.expected}, התקבל ${r(n.input)}`;case"invalid_value":return n.values.length===1?`קלט לא תקין: צריך ${fe(n.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`גדול מדי: ${n.origin??"value"} צריך להיות ${o}${n.maximum.toString()} ${s.unit??"elements"}`:`גדול מדי: ${n.origin??"value"} צריך להיות ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`קטן מדי: ${n.origin} צריך להיות ${o}${n.minimum.toString()} ${s.unit}`:`קטן מדי: ${n.origin} צריך להיות ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${o.prefix}"`:o.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${o.suffix}"`:o.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${o.includes}"`:o.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${o.pattern}`:`${i[o.format]??n.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${n.divisor}`;case"unrecognized_keys":return`מפתח${n.keys.length>1?"ות":""} לא מזוה${n.keys.length>1?"ים":"ה"}: ${H(n.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${n.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${n.origin}`;default:return"קלט לא תקין"}}};function Km(){return{localeError:Vm()}}const Jm=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"szám";case"object":{if(Array.isArray(n))return"tömb";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return n=>{switch(n.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${n.expected}, a kapott érték ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Érvénytelen bemenet: a várt érték ${fe(n.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Túl nagy: ${n.origin??"érték"} mérete túl nagy ${o}${n.maximum.toString()} ${s.unit??"elem"}`:`Túl nagy: a bemeneti érték ${n.origin??"érték"} túl nagy: ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Túl kicsi: a bemeneti érték ${n.origin} mérete túl kicsi ${o}${n.minimum.toString()} ${s.unit}`:`Túl kicsi: a bemeneti érték ${n.origin} túl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${i[o.format]??n.format}`}case"not_multiple_of":return`Érvénytelen szám: ${n.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${n.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${n.origin}`;default:return"Érvénytelen bemenet"}}};function Gm(){return{localeError:Jm()}}const Wm=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input tidak valid: diharapkan ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${fe(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${i[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function Hm(){return{localeError:Wm()}}const Xm=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"numero";case"object":{if(Array.isArray(n))return"vettore";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input non valido: atteso ${n.expected}, ricevuto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input non valido: atteso ${fe(n.values[0])}`:`Opzione non valida: atteso uno tra ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${i[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${H(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function Ym(){return{localeError:Xm()}}const Qm=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"数値";case"object":{if(Array.isArray(n))return"配列";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return n=>{switch(n.code){case"invalid_type":return`無効な入力: ${n.expected}が期待されましたが、${r(n.input)}が入力されました`;case"invalid_value":return n.values.length===1?`無効な入力: ${fe(n.values[0])}が期待されました`:`無効な選択: ${H(n.values,"、")}のいずれかである必要があります`;case"too_big":{const o=n.inclusive?"以下である":"より小さい",s=t(n.origin);return s?`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${s.unit??"要素"}${o}必要があります`:`大きすぎる値: ${n.origin??"値"}は${n.maximum.toString()}${o}必要があります`}case"too_small":{const o=n.inclusive?"以上である":"より大きい",s=t(n.origin);return s?`小さすぎる値: ${n.origin}は${n.minimum.toString()}${s.unit}${o}必要があります`:`小さすぎる値: ${n.origin}は${n.minimum.toString()}${o}必要があります`}case"invalid_format":{const o=n;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${i[o.format]??n.format}`}case"not_multiple_of":return`無効な数値: ${n.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${n.keys.length>1?"群":""}: ${H(n.keys,"、")}`;case"invalid_key":return`${n.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${n.origin}内の無効な値`;default:return"無効な入力"}}};function eg(){return{localeError:Qm()}}const tg=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(n))return"អារេ (Array)";if(n===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return n=>{switch(n.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${n.expected} ប៉ុន្តែទទួលបាន ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${fe(n.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${o} ${n.maximum.toString()} ${s.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${n.origin??"តម្លៃ"} ${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`តូចពេក៖ ត្រូវការ ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`តូចពេក៖ ត្រូវការ ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[o.format]??n.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${n.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${H(n.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${n.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function ng(){return{localeError:tg()}}const rg=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return n=>{switch(n.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${n.expected}, 받은 타입은 ${r(n.input)}입니다`;case"invalid_value":return n.values.length===1?`잘못된 입력: 값은 ${fe(n.values[0])} 이어야 합니다`:`잘못된 옵션: ${H(n.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const o=n.inclusive?"이하":"미만",s=o==="미만"?"이어야 합니다":"여야 합니다",a=t(n.origin),c=a?.unit??"요소";return a?`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()}${c} ${o}${s}`:`${n.origin??"값"}이 너무 큽니다: ${n.maximum.toString()} ${o}${s}`}case"too_small":{const o=n.inclusive?"이상":"초과",s=o==="이상"?"이어야 합니다":"여야 합니다",a=t(n.origin),c=a?.unit??"요소";return a?`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()}${c} ${o}${s}`:`${n.origin??"값"}이 너무 작습니다: ${n.minimum.toString()} ${o}${s}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[o.format]??n.format}`}case"not_multiple_of":return`잘못된 숫자: ${n.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${H(n.keys,", ")}`;case"invalid_key":return`잘못된 키: ${n.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${n.origin}`;default:return"잘못된 입력"}}};function ig(){return{localeError:rg()}}const og=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"број";case"object":{if(Array.isArray(n))return"низа";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return n=>{switch(n.code){case"invalid_type":return`Грешен внес: се очекува ${n.expected}, примено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Invalid input: expected ${fe(n.values[0])}`:`Грешана опција: се очекува една ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Премногу голем: се очекува ${n.origin??"вредноста"} да има ${o}${n.maximum.toString()} ${s.unit??"елементи"}`:`Премногу голем: се очекува ${n.origin??"вредноста"} да биде ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Премногу мал: се очекува ${n.origin} да има ${o}${n.minimum.toString()} ${s.unit}`:`Премногу мал: се очекува ${n.origin} да биде ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${i[o.format]??n.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${H(n.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${n.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${n.origin}`;default:return"Грешен внес"}}};function sg(){return{localeError:og()}}const ag=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"nombor";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Input tidak sah: dijangka ${n.expected}, diterima ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${fe(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${i[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${H(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function ug(){return{localeError:ag()}}const cg=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"getal";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return n=>{switch(n.code){case"invalid_type":return`Ongeldige invoer: verwacht ${n.expected}, ontving ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${fe(n.values[0])}`:`Ongeldige optie: verwacht één van ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Te lang: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${s.unit??"elementen"} bevat`:`Te lang: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Te kort: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${s.unit} bevat`:`Te kort: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${i[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function lg(){return{localeError:cg()}}const fg=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"tall";case"object":{if(Array.isArray(n))return"liste";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`Ugyldig input: forventet ${n.expected}, fikk ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${fe(n.values[0])}`:`Ugyldig valg: forventet en av ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til å ha ${o}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til å ha ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`For lite(n): forventet ${n.origin} til å ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til å ha ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${i[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function dg(){return{localeError:fg()}}const hg=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"numara";case"object":{if(Array.isArray(n))return"saf";if(n===null)return"gayb";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return n=>{switch(n.code){case"invalid_type":return`Fâsit giren: umulan ${n.expected}, alınan ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Fâsit giren: umulan ${fe(n.values[0])}`:`Fâsit tercih: mûteberler ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Fazla büyük: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${s.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmalıydı.`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Fazla küçük: ${n.origin}, ${o}${n.minimum.toString()} ${s.unit} sahip olmalıydı.`:`Fazla küçük: ${n.origin}, ${o}${n.minimum.toString()} olmalıydı.`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${i[o.format]??n.format}`}case"not_multiple_of":return`Fâsit sayı: ${n.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${n.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function pg(){return{localeError:hg()}}const mg=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"عدد";case"object":{if(Array.isArray(n))return"ارې";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return n=>{switch(n.code){case"invalid_type":return`ناسم ورودي: باید ${n.expected} وای, مګر ${r(n.input)} ترلاسه شو`;case"invalid_value":return n.values.length===1?`ناسم ورودي: باید ${fe(n.values[0])} وای`:`ناسم انتخاب: باید یو له ${H(n.values,"|")} څخه وای`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`ډیر لوی: ${n.origin??"ارزښت"} باید ${o}${n.maximum.toString()} ${s.unit??"عنصرونه"} ولري`:`ډیر لوی: ${n.origin??"ارزښت"} باید ${o}${n.maximum.toString()} وي`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`ډیر کوچنی: ${n.origin} باید ${o}${n.minimum.toString()} ${s.unit} ولري`:`ډیر کوچنی: ${n.origin} باید ${o}${n.minimum.toString()} وي`}case"invalid_format":{const o=n;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${i[o.format]??n.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${n.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${n.keys.length>1?"کلیډونه":"کلیډ"}: ${H(n.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${n.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${n.origin} کې`;default:return"ناسمه ورودي"}}};function gg(){return{localeError:mg()}}const yg=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"liczba";case"object":{if(Array.isArray(n))return"tablica";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return n=>{switch(n.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${n.expected}, otrzymano ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${fe(n.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Za duża wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${o}${n.maximum.toString()} ${s.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Za mała wartość: oczekiwano, że ${n.origin??"wartość"} będzie mieć ${o}${n.minimum.toString()} ${s.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${n.origin??"wartość"} będzie wynosić ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${i[o.format]??n.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${n.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${n.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function vg(){return{localeError:yg()}}const $g=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"número";case"object":{if(Array.isArray(n))return"array";if(n===null)return"nulo";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return n=>{switch(n.code){case"invalid_type":return`Tipo inválido: esperado ${n.expected}, recebido ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Entrada inválida: esperado ${fe(n.values[0])}`:`Opção inválida: esperada uma das ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${s.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${i[o.format]??n.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Chave inválida em ${n.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${n.origin}`;default:return"Campo inválido"}}};function bg(){return{localeError:$g()}}function Ka(e,t,r,i){const n=Math.abs(e),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?t:o>=2&&o<=4?r:i}const _g=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"массив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return n=>{switch(n.code){case"invalid_type":return`Неверный ввод: ожидалось ${n.expected}, получено ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неверный ввод: ожидалось ${fe(n.values[0])}`:`Неверный вариант: ожидалось одно из ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);if(s){const a=Number(n.maximum),c=Ka(a,s.unit.one,s.unit.few,s.unit.many);return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет иметь ${o}${n.maximum.toString()} ${c}`}return`Слишком большое значение: ожидалось, что ${n.origin??"значение"} будет ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);if(s){const a=Number(n.minimum),c=Ka(a,s.unit.one,s.unit.few,s.unit.many);return`Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${o}${n.minimum.toString()} ${c}`}return`Слишком маленькое значение: ожидалось, что ${n.origin} будет ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${i[o.format]??n.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${n.divisor}`;case"unrecognized_keys":return`Нераспознанн${n.keys.length>1?"ые":"ый"} ключ${n.keys.length>1?"и":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${n.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${n.origin}`;default:return"Неверные входные данные"}}};function wg(){return{localeError:_g()}}const kg=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"število";case"object":{if(Array.isArray(n))return"tabela";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return n=>{switch(n.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${n.expected}, prejeto ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Neveljaven vnos: pričakovano ${fe(n.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Premajhno: pričakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${s.unit}`:`Premajhno: pričakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${i[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i ključi":" ključ"}: ${H(n.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function Sg(){return{localeError:kg()}}const Ig=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"antal";case"object":{if(Array.isArray(n))return"lista";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return n=>{switch(n.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${n.expected}, fick ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Ogiltig inmatning: förväntat ${fe(n.values[0])}`:`Ogiltigt val: förväntade en av ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`För stor(t): förväntade ${n.origin??"värdet"} att ha ${o}${n.maximum.toString()} ${s.unit??"element"}`:`För stor(t): förväntat ${n.origin??"värdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`För lite(t): förväntade ${n.origin??"värdet"} att ha ${o}${n.minimum.toString()} ${s.unit}`:`För lite(t): förväntade ${n.origin??"värdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${i[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${n.origin??"värdet"}`;default:return"Ogiltig input"}}};function Eg(){return{localeError:Ig()}}const xg=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(n))return"அணி";if(n===null)return"வெறுமை";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return n=>{switch(n.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${n.expected}, பெறப்பட்டது ${r(n.input)}`;case"invalid_value":return n.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${fe(n.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${H(n.values,"|")} இல் ஒன்று`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${o}${n.maximum.toString()} ${s.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${n.origin??"மதிப்பு"} ${o}${n.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${n.origin} ${o}${n.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const o=n;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[o.format]??n.format}`}case"not_multiple_of":return`தவறான எண்: ${n.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${n.keys.length>1?"கள்":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${n.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Ng(){return{localeError:xg()}}const Og=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(n))return"อาร์เรย์ (Array)";if(n===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return n=>{switch(n.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${n.expected} แต่ได้รับ ${r(n.input)}`;case"invalid_value":return n.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${fe(n.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"ไม่เกิน":"น้อยกว่า",s=t(n.origin);return s?`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${o} ${n.maximum.toString()} ${s.unit??"รายการ"}`:`เกินกำหนด: ${n.origin??"ค่า"} ควรมี${o} ${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?"อย่างน้อย":"มากกว่า",s=t(n.origin);return s?`น้อยกว่ากำหนด: ${n.origin} ควรมี${o} ${n.minimum.toString()} ${s.unit}`:`น้อยกว่ากำหนด: ${n.origin} ควรมี${o} ${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[o.format]??n.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${n.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${H(n.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${n.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${n.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function jg(){return{localeError:Og()}}const Ag=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},zg=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(i){return e[i]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return i=>{switch(i.code){case"invalid_type":return`Geçersiz değer: beklenen ${i.expected}, alınan ${Ag(i.input)}`;case"invalid_value":return i.values.length===1?`Geçersiz değer: beklenen ${fe(i.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${H(i.values,"|")}`;case"too_big":{const n=i.inclusive?"<=":"<",o=t(i.origin);return o?`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()} ${o.unit??"öğe"}`:`Çok büyük: beklenen ${i.origin??"değer"} ${n}${i.maximum.toString()}`}case"too_small":{const n=i.inclusive?">=":">",o=t(i.origin);return o?`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()} ${o.unit}`:`Çok küçük: beklenen ${i.origin} ${n}${i.minimum.toString()}`}case"invalid_format":{const n=i;return n.format==="starts_with"?`Geçersiz metin: "${n.prefix}" ile başlamalı`:n.format==="ends_with"?`Geçersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Geçersiz metin: "${n.includes}" içermeli`:n.format==="regex"?`Geçersiz metin: ${n.pattern} desenine uymalı`:`Geçersiz ${r[n.format]??i.format}`}case"not_multiple_of":return`Geçersiz sayı: ${i.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${i.keys.length>1?"lar":""}: ${H(i.keys,", ")}`;case"invalid_key":return`${i.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${i.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Tg(){return{localeError:zg()}}const Pg=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"число";case"object":{if(Array.isArray(n))return"масив";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return n=>{switch(n.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${n.expected}, отримано ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Неправильні вхідні дані: очікується ${fe(n.values[0])}`:`Неправильна опція: очікується одне з ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Занадто велике: очікується, що ${n.origin??"значення"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"елементів"}`:`Занадто велике: очікується, що ${n.origin??"значення"} буде ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Занадто мале: очікується, що ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Занадто мале: очікується, що ${n.origin} буде ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${i[o.format]??n.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${n.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${n.keys.length>1?"і":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${n.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${n.origin}`;default:return"Неправильні вхідні дані"}}};function Dg(){return{localeError:Pg()}}const Ug=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"نمبر";case"object":{if(Array.isArray(n))return"آرے";if(n===null)return"نل";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return n=>{switch(n.code){case"invalid_type":return`غلط ان پٹ: ${n.expected} متوقع تھا، ${r(n.input)} موصول ہوا`;case"invalid_value":return n.values.length===1?`غلط ان پٹ: ${fe(n.values[0])} متوقع تھا`:`غلط آپشن: ${H(n.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`بہت بڑا: ${n.origin??"ویلیو"} کے ${o}${n.maximum.toString()} ${s.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${n.origin??"ویلیو"} کا ${o}${n.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`بہت چھوٹا: ${n.origin} کے ${o}${n.minimum.toString()} ${s.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${n.origin} کا ${o}${n.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const o=n;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${i[o.format]??n.format}`}case"not_multiple_of":return`غلط نمبر: ${n.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${n.keys.length>1?"ز":""}: ${H(n.keys,"، ")}`;case"invalid_key":return`${n.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${n.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Cg(){return{localeError:Ug()}}const Bg=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"số";case"object":{if(Array.isArray(n))return"mảng";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return n=>{switch(n.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${n.expected}, nhận được ${r(n.input)}`;case"invalid_value":return n.values.length===1?`Đầu vào không hợp lệ: mong đợi ${fe(n.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`Quá lớn: mong đợi ${n.origin??"giá trị"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"phần tử"}`:`Quá lớn: mong đợi ${n.origin??"giá trị"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`Quá nhỏ: mong đợi ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Quá nhỏ: mong đợi ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${i[o.format]??n.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${n.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${H(n.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${n.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${n.origin}`;default:return"Đầu vào không hợp lệ"}}};function Rg(){return{localeError:Bg()}}const Fg=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(n))return"数组";if(n===null)return"空值(null)";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return n=>{switch(n.code){case"invalid_type":return`无效输入:期望 ${n.expected},实际接收 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`无效输入:期望 ${fe(n.values[0])}`:`无效选项:期望以下之一 ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`数值过大:期望 ${n.origin??"值"} ${o}${n.maximum.toString()} ${s.unit??"个元素"}`:`数值过大:期望 ${n.origin??"值"} ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`数值过小:期望 ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`数值过小:期望 ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${i[o.format]??n.format}`}case"not_multiple_of":return`无效数字:必须是 ${n.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${n.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Lg(){return{localeError:Fg()}}const Zg=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(n){return e[n]??null}const r=n=>{const o=typeof n;switch(o){case"number":return Number.isNaN(n)?"NaN":"number";case"object":{if(Array.isArray(n))return"array";if(n===null)return"null";if(Object.getPrototypeOf(n)!==Object.prototype&&n.constructor)return n.constructor.name}}return o},i={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return n=>{switch(n.code){case"invalid_type":return`無效的輸入值:預期為 ${n.expected},但收到 ${r(n.input)}`;case"invalid_value":return n.values.length===1?`無效的輸入值:預期為 ${fe(n.values[0])}`:`無效的選項:預期為以下其中之一 ${H(n.values,"|")}`;case"too_big":{const o=n.inclusive?"<=":"<",s=t(n.origin);return s?`數值過大:預期 ${n.origin??"值"} 應為 ${o}${n.maximum.toString()} ${s.unit??"個元素"}`:`數值過大:預期 ${n.origin??"值"} 應為 ${o}${n.maximum.toString()}`}case"too_small":{const o=n.inclusive?">=":">",s=t(n.origin);return s?`數值過小:預期 ${n.origin} 應為 ${o}${n.minimum.toString()} ${s.unit}`:`數值過小:預期 ${n.origin} 應為 ${o}${n.minimum.toString()}`}case"invalid_format":{const o=n;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${i[o.format]??n.format}`}case"not_multiple_of":return`無效的數字:必須為 ${n.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${n.keys.length>1?"們":""}:${H(n.keys,"、")}`;case"invalid_key":return`${n.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${n.origin} 中有無效的值`;default:return"無效的輸入值"}}};function Mg(){return{localeError:Zg()}}var Qf=Object.freeze({__proto__:null,ar:$m,az:_m,be:km,ca:Im,cs:xm,de:Om,en:Yf,eo:Pm,es:Um,fa:Bm,fi:Fm,fr:Zm,frCA:qm,he:Km,hu:Gm,id:Hm,it:Ym,ja:eg,kh:ng,ko:ig,mk:sg,ms:ug,nl:lg,no:dg,ota:pg,pl:vg,ps:gg,pt:bg,ru:wg,sl:Sg,sv:Eg,ta:Ng,th:jg,tr:Tg,ua:Dg,ur:Cg,vi:Rg,zhCN:Lg,zhTW:Mg});const ed=Symbol("ZodOutput"),td=Symbol("ZodInput");class Go{constructor(){this._map=new Map,this._idmap=new Map}add(t,...r){const i=r[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};return delete i.id,{...i,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function Wo(){return new Go}const Zt=Wo();function nd(e,t){return new e({type:"string",...V(t)})}function rd(e,t){return new e({type:"string",coerce:!0,...V(t)})}function Ho(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...V(t)})}function ti(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...V(t)})}function Xo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...V(t)})}function Yo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...V(t)})}function Qo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...V(t)})}function es(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...V(t)})}function ts(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...V(t)})}function ns(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...V(t)})}function rs(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...V(t)})}function is(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...V(t)})}function os(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...V(t)})}function ss(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...V(t)})}function as(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...V(t)})}function us(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...V(t)})}function cs(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...V(t)})}function ls(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...V(t)})}function fs(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...V(t)})}function ds(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...V(t)})}function hs(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...V(t)})}function ps(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...V(t)})}function ms(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...V(t)})}function gs(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...V(t)})}const id={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function od(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...V(t)})}function sd(e,t){return new e({type:"string",format:"date",check:"string_format",...V(t)})}function ad(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...V(t)})}function ud(e,t){return new e({type:"string",format:"duration",check:"string_format",...V(t)})}function cd(e,t){return new e({type:"number",checks:[],...V(t)})}function ld(e,t){return new e({type:"number",coerce:!0,checks:[],...V(t)})}function fd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...V(t)})}function dd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...V(t)})}function hd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...V(t)})}function pd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...V(t)})}function md(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...V(t)})}function gd(e,t){return new e({type:"boolean",...V(t)})}function yd(e,t){return new e({type:"boolean",coerce:!0,...V(t)})}function vd(e,t){return new e({type:"bigint",...V(t)})}function $d(e,t){return new e({type:"bigint",coerce:!0,...V(t)})}function bd(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...V(t)})}function _d(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...V(t)})}function wd(e,t){return new e({type:"symbol",...V(t)})}function kd(e,t){return new e({type:"undefined",...V(t)})}function Sd(e,t){return new e({type:"null",...V(t)})}function Id(e){return new e({type:"any"})}function ni(e){return new e({type:"unknown"})}function Ed(e,t){return new e({type:"never",...V(t)})}function xd(e,t){return new e({type:"void",...V(t)})}function Nd(e,t){return new e({type:"date",...V(t)})}function Od(e,t){return new e({type:"date",coerce:!0,...V(t)})}function jd(e,t){return new e({type:"nan",...V(t)})}function Vt(e,t){return new Bo({check:"less_than",...V(t),value:e,inclusive:!1})}function lt(e,t){return new Bo({check:"less_than",...V(t),value:e,inclusive:!0})}function Kt(e,t){return new Ro({check:"greater_than",...V(t),value:e,inclusive:!1})}function tt(e,t){return new Ro({check:"greater_than",...V(t),value:e,inclusive:!0})}function Ad(e){return Kt(0,e)}function zd(e){return Vt(0,e)}function Td(e){return lt(0,e)}function Pd(e){return tt(0,e)}function Rn(e,t){return new Nl({check:"multiple_of",...V(t),value:e})}function yi(e,t){return new Al({check:"max_size",...V(t),maximum:e})}function Fn(e,t){return new zl({check:"min_size",...V(t),minimum:e})}function ys(e,t){return new Tl({check:"size_equals",...V(t),size:e})}function vi(e,t){return new Pl({check:"max_length",...V(t),maximum:e})}function pn(e,t){return new Dl({check:"min_length",...V(t),minimum:e})}function $i(e,t){return new Ul({check:"length_equals",...V(t),length:e})}function vs(e,t){return new Cl({check:"string_format",format:"regex",...V(t),pattern:e})}function $s(e){return new Bl({check:"string_format",format:"lowercase",...V(e)})}function bs(e){return new Rl({check:"string_format",format:"uppercase",...V(e)})}function _s(e,t){return new Fl({check:"string_format",format:"includes",...V(t),includes:e})}function ws(e,t){return new Ll({check:"string_format",format:"starts_with",...V(t),prefix:e})}function ks(e,t){return new Zl({check:"string_format",format:"ends_with",...V(t),suffix:e})}function Dd(e,t,r){return new Ml({check:"property",property:e,schema:t,...V(r)})}function Ss(e,t){return new ql({check:"mime_type",mime:e,...V(t)})}function Ht(e){return new Vl({check:"overwrite",tx:e})}function Is(e){return Ht(t=>t.normalize(e))}function Es(){return Ht(e=>e.trim())}function xs(){return Ht(e=>e.toLowerCase())}function Ns(){return Ht(e=>e.toUpperCase())}function Os(e,t,r){return new e({type:"array",element:t,...V(r)})}function qg(e,t,r){return new e({type:"union",options:t,...V(r)})}function Vg(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...V(i)})}function Kg(e,t,r){return new e({type:"intersection",left:t,right:r})}function Ud(e,t,r,i){const n=r instanceof ue,o=n?i:r,s=n?r:null;return new e({type:"tuple",items:t,rest:s,...V(o)})}function Jg(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...V(i)})}function Gg(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...V(i)})}function Wg(e,t,r){return new e({type:"set",valueType:t,...V(r)})}function Hg(e,t,r){const i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...V(r)})}function Xg(e,t,r){return new e({type:"enum",entries:t,...V(r)})}function Yg(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...V(r)})}function Cd(e,t){return new e({type:"file",...V(t)})}function Qg(e,t){return new e({type:"transform",transform:t})}function ey(e,t){return new e({type:"optional",innerType:t})}function ty(e,t){return new e({type:"nullable",innerType:t})}function ny(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():r}})}function ry(e,t,r){return new e({type:"nonoptional",innerType:t,...V(r)})}function iy(e,t){return new e({type:"success",innerType:t})}function oy(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function sy(e,t,r){return new e({type:"pipe",in:t,out:r})}function ay(e,t){return new e({type:"readonly",innerType:t})}function uy(e,t,r){return new e({type:"template_literal",parts:t,...V(r)})}function cy(e,t){return new e({type:"lazy",getter:t})}function ly(e,t){return new e({type:"promise",innerType:t})}function Bd(e,t,r){const i=V(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Rd(e,t,r){return new e({type:"custom",check:"custom",fn:t,...V(r)})}function Fd(e,t){const r=V(t);let i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(b=>typeof b=="string"?b.toLowerCase():b),n=n.map(b=>typeof b=="string"?b.toLowerCase():b));const o=new Set(i),s=new Set(n),a=e.Pipe??Jo,c=e.Boolean??Zo,h=e.String??Gn,u=e.Transform??Ko,d=new u({type:"transform",transform:(b,g)=>{let m=b;return r.case!=="sensitive"&&(m=m.toLowerCase()),o.has(m)?!0:s.has(m)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:g.value,inst:d}),{})},error:r.error}),y=new a({type:"pipe",in:new h({type:"string",error:r.error}),out:d,error:r.error});return new a({type:"pipe",in:y,out:new c({type:"boolean",error:r.error}),error:r.error})}function Ld(e,t,r,i={}){const n=V(i),o={...V(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:a=>r.test(a),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}class Zd{constructor(t){this._def=t,this.def=t}implement(t){if(typeof t!="function")throw new Error("implement() must be called with a function");const r=(...i)=>{const n=this._def.input?fo(this._def.input,i,void 0,{callee:r}):i;if(!Array.isArray(n))throw new Error("Invalid arguments schema: not an array or tuple schema.");const o=t(...n);return this._def.output?fo(this._def.output,o,void 0,{callee:r}):o};return r}implementAsync(t){if(typeof t!="function")throw new Error("implement() must be called with a function");const r=async(...i)=>{const n=this._def.input?await ho(this._def.input,i,void 0,{callee:r}):i;if(!Array.isArray(n))throw new Error("Invalid arguments schema: not an array or tuple schema.");const o=await t(...n);return this._def.output?ho(this._def.output,o,void 0,{callee:r}):o};return r}input(...t){const r=this.constructor;return Array.isArray(t[0])?new r({type:"function",input:new gi({type:"tuple",items:t[0],rest:t[1]}),output:this._def.output}):new r({type:"function",input:t[0],output:this._def.output})}output(t){const r=this.constructor;return new r({type:"function",input:this._def.input,output:t})}}function Md(e){return new Zd({type:"function",input:Array.isArray(e?.input)?Ud(gi,e?.input):e?.input??Os(qo,ni(ei)),output:e?.output??ni(ei)})}class mo{constructor(t){this.counter=0,this.metadataRegistry=t?.metadata??Zt,this.target=t?.target??"draft-2020-12",this.unrepresentable=t?.unrepresentable??"throw",this.override=t?.override??(()=>{}),this.io=t?.io??"output",this.seen=new Map}process(t,r={path:[],schemaPath:[]}){var i;const n=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},s=this.seen.get(t);if(s)return s.count++,r.schemaPath.includes(t)&&(s.cycle=r.path),s.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};this.seen.set(t,a);const c=t._zod.toJSONSchema?.();if(c)a.schema=c;else{const d={...r,schemaPath:[...r.schemaPath,t],path:r.path},y=t._zod.parent;if(y)a.ref=y,this.process(y,d),this.seen.get(y).isParent=!0;else{const _=a.schema;switch(n.type){case"string":{const b=_;b.type="string";const{minimum:g,maximum:m,format:$,patterns:f,contentEncoding:v}=t._zod.bag;if(typeof g=="number"&&(b.minLength=g),typeof m=="number"&&(b.maxLength=m),$&&(b.format=o[$]??$,b.format===""&&delete b.format),v&&(b.contentEncoding=v),f&&f.size>0){const S=[...f];S.length===1?b.pattern=S[0].source:S.length>1&&(a.schema.allOf=[...S.map(E=>({...this.target==="draft-7"?{type:"string"}:{},pattern:E.source}))])}break}case"number":{const b=_,{minimum:g,maximum:m,format:$,multipleOf:f,exclusiveMaximum:v,exclusiveMinimum:S}=t._zod.bag;typeof $=="string"&&$.includes("int")?b.type="integer":b.type="number",typeof S=="number"&&(b.exclusiveMinimum=S),typeof g=="number"&&(b.minimum=g,typeof S=="number"&&(S>=g?delete b.minimum:delete b.exclusiveMinimum)),typeof v=="number"&&(b.exclusiveMaximum=v),typeof m=="number"&&(b.maximum=m,typeof v=="number"&&(v<=m?delete b.maximum:delete b.exclusiveMaximum)),typeof f=="number"&&(b.multipleOf=f);break}case"boolean":{const b=_;b.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{_.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{_.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const b=_,{minimum:g,maximum:m}=t._zod.bag;typeof g=="number"&&(b.minItems=g),typeof m=="number"&&(b.maxItems=m),b.type="array",b.items=this.process(n.element,{...d,path:[...d.path,"items"]});break}case"object":{const b=_;b.type="object",b.properties={};const g=n.shape;for(const f in g)b.properties[f]=this.process(g[f],{...d,path:[...d.path,"properties",f]});const m=new Set(Object.keys(g)),$=new Set([...m].filter(f=>{const v=n.shape[f]._zod;return this.io==="input"?v.optin===void 0:v.optout===void 0}));$.size>0&&(b.required=Array.from($)),n.catchall?._zod.def.type==="never"?b.additionalProperties=!1:n.catchall?n.catchall&&(b.additionalProperties=this.process(n.catchall,{...d,path:[...d.path,"additionalProperties"]})):this.io==="output"&&(b.additionalProperties=!1);break}case"union":{const b=_;b.anyOf=n.options.map((g,m)=>this.process(g,{...d,path:[...d.path,"anyOf",m]}));break}case"intersection":{const b=_,g=this.process(n.left,{...d,path:[...d.path,"allOf",0]}),m=this.process(n.right,{...d,path:[...d.path,"allOf",1]}),$=v=>"allOf"in v&&Object.keys(v).length===1,f=[...$(g)?g.allOf:[g],...$(m)?m.allOf:[m]];b.allOf=f;break}case"tuple":{const b=_;b.type="array";const g=n.items.map((f,v)=>this.process(f,{...d,path:[...d.path,"prefixItems",v]}));if(this.target==="draft-2020-12"?b.prefixItems=g:b.items=g,n.rest){const f=this.process(n.rest,{...d,path:[...d.path,"items"]});this.target==="draft-2020-12"?b.items=f:b.additionalItems=f}n.rest&&(b.items=this.process(n.rest,{...d,path:[...d.path,"items"]}));const{minimum:m,maximum:$}=t._zod.bag;typeof m=="number"&&(b.minItems=m),typeof $=="number"&&(b.maxItems=$);break}case"record":{const b=_;b.type="object",b.propertyNames=this.process(n.keyType,{...d,path:[...d.path,"propertyNames"]}),b.additionalProperties=this.process(n.valueType,{...d,path:[...d.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const b=_,g=No(n.entries);g.every(m=>typeof m=="number")&&(b.type="number"),g.every(m=>typeof m=="string")&&(b.type="string"),b.enum=g;break}case"literal":{const b=_,g=[];for(const m of n.values)if(m===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof m=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");g.push(Number(m))}else g.push(m);if(g.length!==0)if(g.length===1){const m=g[0];b.type=m===null?"null":typeof m,b.const=m}else g.every(m=>typeof m=="number")&&(b.type="number"),g.every(m=>typeof m=="string")&&(b.type="string"),g.every(m=>typeof m=="boolean")&&(b.type="string"),g.every(m=>m===null)&&(b.type="null"),b.enum=g;break}case"file":{const b=_,g={type:"string",format:"binary",contentEncoding:"binary"},{minimum:m,maximum:$,mime:f}=t._zod.bag;m!==void 0&&(g.minLength=m),$!==void 0&&(g.maxLength=$),f?f.length===1?(g.contentMediaType=f[0],Object.assign(b,g)):b.anyOf=f.map(v=>({...g,contentMediaType:v})):Object.assign(b,g);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const b=this.process(n.innerType,d);_.anyOf=[b,{type:"null"}];break}case"nonoptional":{this.process(n.innerType,d),a.ref=n.innerType;break}case"success":{const b=_;b.type="boolean";break}case"default":{this.process(n.innerType,d),a.ref=n.innerType,_.default=JSON.parse(JSON.stringify(n.defaultValue));break}case"prefault":{this.process(n.innerType,d),a.ref=n.innerType,this.io==="input"&&(_._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break}case"catch":{this.process(n.innerType,d),a.ref=n.innerType;let b;try{b=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}_.default=b;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const b=_,g=t._zod.pattern;if(!g)throw new Error("Pattern not found in template literal");b.type="string",b.pattern=g.source;break}case"pipe":{const b=this.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;this.process(b,d),a.ref=b;break}case"readonly":{this.process(n.innerType,d),a.ref=n.innerType,_.readOnly=!0;break}case"promise":{this.process(n.innerType,d),a.ref=n.innerType;break}case"optional":{this.process(n.innerType,d),a.ref=n.innerType;break}case"lazy":{const b=t._zod.innerType;this.process(b,d),a.ref=b;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const h=this.metadataRegistry.get(t);return h&&Object.assign(a.schema,h),this.io==="input"&&Fe(t)&&(delete a.schema.examples,delete a.schema.default),this.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(t).schema}emit(t,r){const i={cycles:r?.cycles??"ref",reused:r?.reused??"inline",external:r?.external??void 0},n=this.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=u=>{const d=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){const g=i.external.registry.get(u[0])?.id,m=i.external.uri??(f=>f);if(g)return{ref:m(g)};const $=u[1].defId??u[1].schema.id??`schema${this.counter++}`;return u[1].defId=$,{defId:$,ref:`${m("__shared")}#/${d}/${$}`}}if(u[1]===n)return{ref:"#"};const _=`#/${d}/`,b=u[1].schema.id??`__schema${this.counter++}`;return{defId:b,ref:_+b}},s=u=>{if(u[1].schema.$ref)return;const d=u[1],{ref:y,defId:_}=o(u);d.def={...d.schema},_&&(d.defId=_);const b=d.schema;for(const g in b)delete b[g];b.$ref=y};if(i.cycles==="throw")for(const u of this.seen.entries()){const d=u[1];if(d.cycle)throw new Error(`Cycle detected: #/${d.cycle?.join("/")}/<root>
|
|
28
|
+
|
|
29
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of this.seen.entries()){const d=u[1];if(t===u[0]){s(u);continue}if(i.external){const _=i.external.registry.get(u[0])?.id;if(t!==u[0]&&_){s(u);continue}}if(this.metadataRegistry.get(u[0])?.id){s(u);continue}if(d.cycle){s(u);continue}if(d.count>1&&i.reused==="ref"){s(u);continue}}const a=(u,d)=>{const y=this.seen.get(u),_=y.def??y.schema,b={..._};if(y.ref===null)return;const g=y.ref;if(y.ref=null,g){a(g,d);const m=this.seen.get(g).schema;m.$ref&&d.target==="draft-7"?(_.allOf=_.allOf??[],_.allOf.push(m)):(Object.assign(_,m),Object.assign(_,b))}y.isParent||this.override({zodSchema:u,jsonSchema:_,path:y.path??[]})};for(const u of[...this.seen.entries()].reverse())a(u[0],{target:this.target});const c={};if(this.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?c.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),i.external?.uri){const u=i.external.registry.get(t)?.id;if(!u)throw new Error("Schema is missing an `id` property");c.$id=i.external.uri(u)}Object.assign(c,n.def);const h=i.external?.defs??{};for(const u of this.seen.entries()){const d=u[1];d.def&&d.defId&&(h[d.defId]=d.def)}i.external||Object.keys(h).length>0&&(this.target==="draft-2020-12"?c.$defs=h:c.definitions=h);try{return JSON.parse(JSON.stringify(c))}catch{throw new Error("Error converting schema to JSON.")}}}function qd(e,t){if(e instanceof Go){const i=new mo(t),n={};for(const a of e._idmap.entries()){const[c,h]=a;i.process(h)}const o={},s={registry:e,uri:t?.uri,defs:n};for(const a of e._idmap.entries()){const[c,h]=a;o[c]=i.emit(h,{...t,external:s})}if(Object.keys(n).length>0){const a=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[a]:n}}return{schemas:o}}const r=new mo(t);return r.process(e),r.emit(e,t)}function Fe(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const n=e._zod.def;switch(n.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Fe(n.element,r);case"object":{for(const o in n.shape)if(Fe(n.shape[o],r))return!0;return!1}case"union":{for(const o of n.options)if(Fe(o,r))return!0;return!1}case"intersection":return Fe(n.left,r)||Fe(n.right,r);case"tuple":{for(const o of n.items)if(Fe(o,r))return!0;return!!(n.rest&&Fe(n.rest,r))}case"record":return Fe(n.keyType,r)||Fe(n.valueType,r);case"map":return Fe(n.keyType,r)||Fe(n.valueType,r);case"set":return Fe(n.valueType,r);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Fe(n.innerType,r);case"lazy":return Fe(n.getter(),r);case"default":return Fe(n.innerType,r);case"prefault":return Fe(n.innerType,r);case"custom":return!1;case"transform":return!0;case"pipe":return Fe(n.in,r)||Fe(n.out,r);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${n.type}`)}var fy=Object.freeze({__proto__:null}),dy=Object.freeze({__proto__:null,$ZodAny:Ef,$ZodArray:qo,$ZodAsyncError:fn,$ZodBase64:pf,$ZodBase64URL:gf,$ZodBigInt:Mo,$ZodBigIntFormat:wf,$ZodBoolean:Zo,$ZodCIDRv4:df,$ZodCIDRv6:hf,$ZodCUID:ef,$ZodCUID2:tf,$ZodCatch:Vf,$ZodCheck:Ce,$ZodCheckBigIntFormat:jl,$ZodCheckEndsWith:Zl,$ZodCheckGreaterThan:Ro,$ZodCheckIncludes:Fl,$ZodCheckLengthEquals:Ul,$ZodCheckLessThan:Bo,$ZodCheckLowerCase:Bl,$ZodCheckMaxLength:Pl,$ZodCheckMaxSize:Al,$ZodCheckMimeType:ql,$ZodCheckMinLength:Dl,$ZodCheckMinSize:zl,$ZodCheckMultipleOf:Nl,$ZodCheckNumberFormat:Ol,$ZodCheckOverwrite:Vl,$ZodCheckProperty:Ml,$ZodCheckRegex:Cl,$ZodCheckSizeEquals:Tl,$ZodCheckStartsWith:Ll,$ZodCheckStringFormat:Jn,$ZodCheckUpperCase:Rl,$ZodCustom:Xf,$ZodCustomStringFormat:bf,$ZodDate:Of,$ZodDefault:Lf,$ZodDiscriminatedUnion:Af,$ZodE164:yf,$ZodEmail:Hl,$ZodEmoji:Yl,$ZodEnum:Uf,$ZodError:jo,$ZodFile:Bf,$ZodFunction:Zd,$ZodGUID:Gl,$ZodIPv4:lf,$ZodIPv6:ff,$ZodISODate:af,$ZodISODateTime:sf,$ZodISODuration:cf,$ZodISOTime:uf,$ZodIntersection:zf,$ZodJWT:$f,$ZodKSUID:of,$ZodLazy:Hf,$ZodLiteral:Cf,$ZodMap:Pf,$ZodNaN:Kf,$ZodNanoID:Ql,$ZodNever:xf,$ZodNonOptional:Mf,$ZodNull:If,$ZodNullable:Ff,$ZodNumber:Lo,$ZodNumberFormat:_f,$ZodObject:jf,$ZodOptional:Rf,$ZodPipe:Jo,$ZodPrefault:Zf,$ZodPromise:Wf,$ZodReadonly:Jf,$ZodRealError:Kn,$ZodRecord:Tf,$ZodRegistry:Go,$ZodSet:Df,$ZodString:Gn,$ZodStringFormat:Ne,$ZodSuccess:qf,$ZodSymbol:kf,$ZodTemplateLiteral:Gf,$ZodTransform:Ko,$ZodTuple:gi,$ZodType:ue,$ZodULID:nf,$ZodURL:Xl,$ZodUUID:Wl,$ZodUndefined:Sf,$ZodUnion:Vo,$ZodUnknown:ei,$ZodVoid:Nf,$ZodXID:rf,$brand:Oc,$constructor:D,$input:td,$output:ed,Doc:Kl,JSONSchema:fy,JSONSchemaGenerator:mo,NEVER:Nc,TimePrecision:id,_any:Id,_array:Os,_base64:hs,_base64url:ps,_bigint:vd,_boolean:gd,_catch:oy,_cidrv4:fs,_cidrv6:ds,_coercedBigint:$d,_coercedBoolean:yd,_coercedDate:Od,_coercedNumber:ld,_coercedString:rd,_cuid:is,_cuid2:os,_custom:Bd,_date:Nd,_default:ny,_discriminatedUnion:Vg,_e164:ms,_email:Ho,_emoji:ns,_endsWith:ks,_enum:Hg,_file:Cd,_float32:dd,_float64:hd,_gt:Kt,_gte:tt,_guid:ti,_includes:_s,_int:fd,_int32:pd,_int64:bd,_intersection:Kg,_ipv4:cs,_ipv6:ls,_isoDate:sd,_isoDateTime:od,_isoDuration:ud,_isoTime:ad,_jwt:gs,_ksuid:us,_lazy:cy,_length:$i,_literal:Yg,_lowercase:$s,_lt:Vt,_lte:lt,_map:Gg,_max:lt,_maxLength:vi,_maxSize:yi,_mime:Ss,_min:tt,_minLength:pn,_minSize:Fn,_multipleOf:Rn,_nan:jd,_nanoid:rs,_nativeEnum:Xg,_negative:zd,_never:Ed,_nonnegative:Pd,_nonoptional:ry,_nonpositive:Td,_normalize:Is,_null:Sd,_nullable:ty,_number:cd,_optional:ey,_overwrite:Ht,_parse:To,_parseAsync:Po,_pipe:sy,_positive:Ad,_promise:ly,_property:Dd,_readonly:ay,_record:Jg,_refine:Rd,_regex:vs,_safeParse:Do,_safeParseAsync:Uo,_set:Wg,_size:ys,_startsWith:ws,_string:nd,_stringFormat:Ld,_stringbool:Fd,_success:iy,_symbol:wd,_templateLiteral:uy,_toLowerCase:xs,_toUpperCase:Ns,_transform:Qg,_trim:Es,_tuple:Ud,_uint32:md,_uint64:_d,_ulid:ss,_undefined:kd,_union:qg,_unknown:ni,_uppercase:bs,_url:ts,_uuid:Xo,_uuidv4:Yo,_uuidv6:Qo,_uuidv7:es,_void:xd,_xid:as,clone:vt,config:Xe,flattenError:Ao,formatError:zo,function:Md,globalConfig:Yr,globalRegistry:Zt,isValidBase64:Fo,isValidBase64URL:mf,isValidJWT:vf,locales:Qf,parse:fo,parseAsync:ho,prettifyError:Kc,regexes:El,registry:Wo,safeParse:Jc,safeParseAsync:Gc,toDotPath:Vc,toJSONSchema:qd,treeifyError:qc,util:am,version:Jl});const js=D("ZodISODateTime",(e,t)=>{sf.init(e,t),Oe.init(e,t)});function Vd(e){return od(js,e)}const As=D("ZodISODate",(e,t)=>{af.init(e,t),Oe.init(e,t)});function Kd(e){return sd(As,e)}const zs=D("ZodISOTime",(e,t)=>{uf.init(e,t),Oe.init(e,t)});function Jd(e){return ad(zs,e)}const Ts=D("ZodISODuration",(e,t)=>{cf.init(e,t),Oe.init(e,t)});function Gd(e){return ud(Ts,e)}var hy=Object.freeze({__proto__:null,ZodISODate:As,ZodISODateTime:js,ZodISODuration:Ts,ZodISOTime:zs,date:Kd,datetime:Vd,duration:Gd,time:Jd});const Wd=(e,t)=>{jo.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>zo(e,r)},flatten:{value:r=>Ao(e,r)},addIssue:{value:r=>e.issues.push(r)},addIssues:{value:r=>e.issues.push(...r)},isEmpty:{get(){return e.issues.length===0}}})},py=D("ZodError",Wd),Wn=D("ZodError",Wd,{Parent:Error}),Hd=To(Wn),Xd=Po(Wn),Yd=Do(Wn),Qd=Uo(Wn),he=D("ZodType",(e,t)=>(ue.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),e.clone=(r,i)=>vt(e,r,i),e.brand=()=>e,e.register=(r,i)=>(r.add(e,i),e),e.parse=(r,i)=>Hd(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Yd(e,r,i),e.parseAsync=async(r,i)=>Xd(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>Qd(e,r,i),e.spa=e.safeParseAsync,e.refine=(r,i)=>e.check(Bh(r,i)),e.superRefine=r=>e.check(Rh(r)),e.overwrite=r=>e.check(Ht(r)),e.optional=()=>ii(e),e.nullable=()=>oi(e),e.nullish=()=>ii(oi(e)),e.nonoptional=r=>Ih(e,r),e.array=()=>$e(e),e.or=r=>xt([e,r]),e.and=r=>hh(e,r),e.transform=r=>si(e,ra(r)),e.default=r=>wh(e,r),e.prefault=r=>Sh(e,r),e.catch=r=>Nh(e,r),e.pipe=r=>si(e,r),e.readonly=()=>Ah(e),e.describe=r=>{const i=e.clone();return Zt.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return Zt.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Zt.get(e);const i=e.clone();return Zt.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ps=D("_ZodString",(e,t)=>{Gn.init(e,t),he.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(vs(...i)),e.includes=(...i)=>e.check(_s(...i)),e.startsWith=(...i)=>e.check(ws(...i)),e.endsWith=(...i)=>e.check(ks(...i)),e.min=(...i)=>e.check(pn(...i)),e.max=(...i)=>e.check(vi(...i)),e.length=(...i)=>e.check($i(...i)),e.nonempty=(...i)=>e.check(pn(1,...i)),e.lowercase=i=>e.check($s(i)),e.uppercase=i=>e.check(bs(i)),e.trim=()=>e.check(Es()),e.normalize=(...i)=>e.check(Is(...i)),e.toLowerCase=()=>e.check(xs()),e.toUpperCase=()=>e.check(Ns())}),bi=D("ZodString",(e,t)=>{Gn.init(e,t),Ps.init(e,t),e.email=r=>e.check(Ho(Ds,r)),e.url=r=>e.check(ts(Us,r)),e.jwt=r=>e.check(gs(Xs,r)),e.emoji=r=>e.check(ns(Cs,r)),e.guid=r=>e.check(ti(ri,r)),e.uuid=r=>e.check(Xo(kt,r)),e.uuidv4=r=>e.check(Yo(kt,r)),e.uuidv6=r=>e.check(Qo(kt,r)),e.uuidv7=r=>e.check(es(kt,r)),e.nanoid=r=>e.check(rs(Bs,r)),e.guid=r=>e.check(ti(ri,r)),e.cuid=r=>e.check(is(Rs,r)),e.cuid2=r=>e.check(os(Fs,r)),e.ulid=r=>e.check(ss(Ls,r)),e.base64=r=>e.check(hs(Gs,r)),e.base64url=r=>e.check(ps(Ws,r)),e.xid=r=>e.check(as(Zs,r)),e.ksuid=r=>e.check(us(Ms,r)),e.ipv4=r=>e.check(cs(qs,r)),e.ipv6=r=>e.check(ls(Vs,r)),e.cidrv4=r=>e.check(fs(Ks,r)),e.cidrv6=r=>e.check(ds(Js,r)),e.e164=r=>e.check(ms(Hs,r)),e.datetime=r=>e.check(Vd(r)),e.date=r=>e.check(Kd(r)),e.time=r=>e.check(Jd(r)),e.duration=r=>e.check(Gd(r))});function C(e){return nd(bi,e)}const Oe=D("ZodStringFormat",(e,t)=>{Ne.init(e,t),Ps.init(e,t)}),Ds=D("ZodEmail",(e,t)=>{Hl.init(e,t),Oe.init(e,t)});function my(e){return Ho(Ds,e)}const ri=D("ZodGUID",(e,t)=>{Gl.init(e,t),Oe.init(e,t)});function gy(e){return ti(ri,e)}const kt=D("ZodUUID",(e,t)=>{Wl.init(e,t),Oe.init(e,t)});function yy(e){return Xo(kt,e)}function vy(e){return Yo(kt,e)}function $y(e){return Qo(kt,e)}function Me(e){return es(kt,e)}const Us=D("ZodURL",(e,t)=>{Xl.init(e,t),Oe.init(e,t)});function by(e){return ts(Us,e)}const Cs=D("ZodEmoji",(e,t)=>{Yl.init(e,t),Oe.init(e,t)});function _y(e){return ns(Cs,e)}const Bs=D("ZodNanoID",(e,t)=>{Ql.init(e,t),Oe.init(e,t)});function eh(e){return rs(Bs,e)}const Rs=D("ZodCUID",(e,t)=>{ef.init(e,t),Oe.init(e,t)});function wy(e){return is(Rs,e)}const Fs=D("ZodCUID2",(e,t)=>{tf.init(e,t),Oe.init(e,t)});function ky(e){return os(Fs,e)}const Ls=D("ZodULID",(e,t)=>{nf.init(e,t),Oe.init(e,t)});function Sy(e){return ss(Ls,e)}const Zs=D("ZodXID",(e,t)=>{rf.init(e,t),Oe.init(e,t)});function Iy(e){return as(Zs,e)}const Ms=D("ZodKSUID",(e,t)=>{of.init(e,t),Oe.init(e,t)});function Ey(e){return us(Ms,e)}const qs=D("ZodIPv4",(e,t)=>{lf.init(e,t),Oe.init(e,t)});function xy(e){return cs(qs,e)}const Vs=D("ZodIPv6",(e,t)=>{ff.init(e,t),Oe.init(e,t)});function Ny(e){return ls(Vs,e)}const Ks=D("ZodCIDRv4",(e,t)=>{df.init(e,t),Oe.init(e,t)});function Oy(e){return fs(Ks,e)}const Js=D("ZodCIDRv6",(e,t)=>{hf.init(e,t),Oe.init(e,t)});function jy(e){return ds(Js,e)}const Gs=D("ZodBase64",(e,t)=>{pf.init(e,t),Oe.init(e,t)});function Ay(e){return hs(Gs,e)}const Ws=D("ZodBase64URL",(e,t)=>{gf.init(e,t),Oe.init(e,t)});function zy(e){return ps(Ws,e)}const Hs=D("ZodE164",(e,t)=>{yf.init(e,t),Oe.init(e,t)});function Ty(e){return ms(Hs,e)}const Xs=D("ZodJWT",(e,t)=>{$f.init(e,t),Oe.init(e,t)});function Py(e){return gs(Xs,e)}const th=D("ZodCustomStringFormat",(e,t)=>{bf.init(e,t),Oe.init(e,t)});function Dy(e,t,r={}){return Ld(th,e,t,r)}const _i=D("ZodNumber",(e,t)=>{Lo.init(e,t),he.init(e,t),e.gt=(i,n)=>e.check(Kt(i,n)),e.gte=(i,n)=>e.check(tt(i,n)),e.min=(i,n)=>e.check(tt(i,n)),e.lt=(i,n)=>e.check(Vt(i,n)),e.lte=(i,n)=>e.check(lt(i,n)),e.max=(i,n)=>e.check(lt(i,n)),e.int=i=>e.check(go(i)),e.safe=i=>e.check(go(i)),e.positive=i=>e.check(Kt(0,i)),e.nonnegative=i=>e.check(tt(0,i)),e.negative=i=>e.check(Vt(0,i)),e.nonpositive=i=>e.check(lt(0,i)),e.multipleOf=(i,n)=>e.check(Rn(i,n)),e.step=(i,n)=>e.check(Rn(i,n)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Ee(e){return cd(_i,e)}const bn=D("ZodNumberFormat",(e,t)=>{_f.init(e,t),_i.init(e,t)});function go(e){return fd(bn,e)}function Uy(e){return dd(bn,e)}function Cy(e){return hd(bn,e)}function By(e){return pd(bn,e)}function Ry(e){return md(bn,e)}const wi=D("ZodBoolean",(e,t)=>{Zo.init(e,t),he.init(e,t)});function Ve(e){return gd(wi,e)}const ki=D("ZodBigInt",(e,t)=>{Mo.init(e,t),he.init(e,t),e.gte=(i,n)=>e.check(tt(i,n)),e.min=(i,n)=>e.check(tt(i,n)),e.gt=(i,n)=>e.check(Kt(i,n)),e.gte=(i,n)=>e.check(tt(i,n)),e.min=(i,n)=>e.check(tt(i,n)),e.lt=(i,n)=>e.check(Vt(i,n)),e.lte=(i,n)=>e.check(lt(i,n)),e.max=(i,n)=>e.check(lt(i,n)),e.positive=i=>e.check(Kt(BigInt(0),i)),e.negative=i=>e.check(Vt(BigInt(0),i)),e.nonpositive=i=>e.check(lt(BigInt(0),i)),e.nonnegative=i=>e.check(tt(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(Rn(i,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Fy(e){return vd(ki,e)}const Ys=D("ZodBigIntFormat",(e,t)=>{wf.init(e,t),ki.init(e,t)});function Ly(e){return bd(Ys,e)}function Zy(e){return _d(Ys,e)}const nh=D("ZodSymbol",(e,t)=>{kf.init(e,t),he.init(e,t)});function My(e){return wd(nh,e)}const rh=D("ZodUndefined",(e,t)=>{Sf.init(e,t),he.init(e,t)});function qy(e){return kd(rh,e)}const ih=D("ZodNull",(e,t)=>{If.init(e,t),he.init(e,t)});function oh(e){return Sd(ih,e)}const sh=D("ZodAny",(e,t)=>{Ef.init(e,t),he.init(e,t)});function Vy(){return Id(sh)}const ah=D("ZodUnknown",(e,t)=>{ei.init(e,t),he.init(e,t)});function Et(){return ni(ah)}const uh=D("ZodNever",(e,t)=>{xf.init(e,t),he.init(e,t)});function Si(e){return Ed(uh,e)}const ch=D("ZodVoid",(e,t)=>{Nf.init(e,t),he.init(e,t)});function Ky(e){return xd(ch,e)}const Qs=D("ZodDate",(e,t)=>{Of.init(e,t),he.init(e,t),e.min=(i,n)=>e.check(tt(i,n)),e.max=(i,n)=>e.check(lt(i,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Jy(e){return Nd(Qs,e)}const lh=D("ZodArray",(e,t)=>{qo.init(e,t),he.init(e,t),e.element=t.element,e.min=(r,i)=>e.check(pn(r,i)),e.nonempty=r=>e.check(pn(1,r)),e.max=(r,i)=>e.check(vi(r,i)),e.length=(r,i)=>e.check($i(r,i)),e.unwrap=()=>e.element});function $e(e,t){return Os(lh,e,t)}function Gy(e){const t=e._zod.def.shape;return _e(Object.keys(t))}const Ii=D("ZodObject",(e,t)=>{jf.init(e,t),he.init(e,t),ve(e,"shape",()=>t.shape),e.keyof=()=>dt(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Et()}),e.loose=()=>e.clone({...e._zod.def,catchall:Et()}),e.strict=()=>e.clone({...e._zod.def,catchall:Si()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Rc(e,r),e.merge=r=>Fc(e,r),e.pick=r=>Cc(e,r),e.omit=r=>Bc(e,r),e.partial=(...r)=>Lc(ia,e,r[0]),e.required=(...r)=>Zc(oa,e,r[0])});function G(e,t){const r={type:"object",get shape(){return $n(this,"shape",{...e}),this.shape},...V(t)};return new Ii(r)}function Wy(e,t){return new Ii({type:"object",get shape(){return $n(this,"shape",{...e}),this.shape},catchall:Si(),...V(t)})}function Hy(e,t){return new Ii({type:"object",get shape(){return $n(this,"shape",{...e}),this.shape},catchall:Et(),...V(t)})}const ea=D("ZodUnion",(e,t)=>{Vo.init(e,t),he.init(e,t),e.options=t.options});function xt(e,t){return new ea({type:"union",options:e,...V(t)})}const fh=D("ZodDiscriminatedUnion",(e,t)=>{ea.init(e,t),Af.init(e,t)});function Ut(e,t,r){return new fh({type:"union",options:t,discriminator:e,...V(r)})}const dh=D("ZodIntersection",(e,t)=>{zf.init(e,t),he.init(e,t)});function hh(e,t){return new dh({type:"intersection",left:e,right:t})}const ph=D("ZodTuple",(e,t)=>{gi.init(e,t),he.init(e,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function mh(e,t,r){const i=t instanceof ue,n=i?r:t,o=i?t:null;return new ph({type:"tuple",items:e,rest:o,...V(n)})}const ta=D("ZodRecord",(e,t)=>{Tf.init(e,t),he.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Se(e,t,r){return new ta({type:"record",keyType:e,valueType:t,...V(r)})}function Xy(e,t,r){return new ta({type:"record",keyType:xt([e,Si()]),valueType:t,...V(r)})}const gh=D("ZodMap",(e,t)=>{Pf.init(e,t),he.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function Yy(e,t,r){return new gh({type:"map",keyType:e,valueType:t,...V(r)})}const yh=D("ZodSet",(e,t)=>{Df.init(e,t),he.init(e,t),e.min=(...r)=>e.check(Fn(...r)),e.nonempty=r=>e.check(Fn(1,r)),e.max=(...r)=>e.check(yi(...r)),e.size=(...r)=>e.check(ys(...r))});function Qy(e,t){return new yh({type:"set",valueType:e,...V(t)})}const Ln=D("ZodEnum",(e,t)=>{Uf.init(e,t),he.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{const o={};for(const s of i)if(r.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Ln({...t,checks:[],...V(n),entries:o})},e.exclude=(i,n)=>{const o={...t.entries};for(const s of i)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Ln({...t,checks:[],...V(n),entries:o})}});function dt(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Ln({type:"enum",entries:r,...V(t)})}function ev(e,t){return new Ln({type:"enum",entries:e,...V(t)})}const vh=D("ZodLiteral",(e,t)=>{Cf.init(e,t),he.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function _e(e,t){return new vh({type:"literal",values:Array.isArray(e)?e:[e],...V(t)})}const $h=D("ZodFile",(e,t)=>{Bf.init(e,t),he.init(e,t),e.min=(r,i)=>e.check(Fn(r,i)),e.max=(r,i)=>e.check(yi(r,i)),e.mime=(r,i)=>e.check(Ss(Array.isArray(r)?r:[r],i))});function tv(e){return Cd($h,e)}const na=D("ZodTransform",(e,t)=>{Ko.init(e,t),he.init(e,t),e._zod.parse=(r,i)=>{r.addIssue=o=>{if(typeof o=="string")r.issues.push(dn(o,r.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),s.continue??(s.continue=!0),r.issues.push(dn(s))}};const n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function ra(e){return new na({type:"transform",transform:e})}const ia=D("ZodOptional",(e,t)=>{Rf.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ii(e){return new ia({type:"optional",innerType:e})}const bh=D("ZodNullable",(e,t)=>{Ff.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function oi(e){return new bh({type:"nullable",innerType:e})}function nv(e){return ii(oi(e))}const _h=D("ZodDefault",(e,t)=>{Lf.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function wh(e,t){return new _h({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const kh=D("ZodPrefault",(e,t)=>{Zf.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Sh(e,t){return new kh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const oa=D("ZodNonOptional",(e,t)=>{Mf.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ih(e,t){return new oa({type:"nonoptional",innerType:e,...V(t)})}const Eh=D("ZodSuccess",(e,t)=>{qf.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function rv(e){return new Eh({type:"success",innerType:e})}const xh=D("ZodCatch",(e,t)=>{Vf.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Nh(e,t){return new xh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Oh=D("ZodNaN",(e,t)=>{Kf.init(e,t),he.init(e,t)});function iv(e){return jd(Oh,e)}const sa=D("ZodPipe",(e,t)=>{Jo.init(e,t),he.init(e,t),e.in=t.in,e.out=t.out});function si(e,t){return new sa({type:"pipe",in:e,out:t})}const jh=D("ZodReadonly",(e,t)=>{Jf.init(e,t),he.init(e,t)});function Ah(e){return new jh({type:"readonly",innerType:e})}const zh=D("ZodTemplateLiteral",(e,t)=>{Gf.init(e,t),he.init(e,t)});function Th(e,t){return new zh({type:"template_literal",parts:e,...V(t)})}const Ph=D("ZodLazy",(e,t)=>{Hf.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.getter()});function Dh(e){return new Ph({type:"lazy",getter:e})}const Uh=D("ZodPromise",(e,t)=>{Wf.init(e,t),he.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ov(e){return new Uh({type:"promise",innerType:e})}const Ei=D("ZodCustom",(e,t)=>{Xf.init(e,t),he.init(e,t)});function Ch(e){const t=new Ce({check:"custom"});return t._zod.check=e,t}function aa(e,t){return Bd(Ei,e??(()=>!0),t)}function Bh(e,t={}){return Rd(Ei,e,t)}function Rh(e){const t=Ch(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(dn(i,r.value,t._zod.def));else{const n=i;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(dn(n))}},e(r.value,r)));return t}function sv(e,t={error:`Input not instance of ${e.name}`}){const r=new Ei({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...V(t)});return r._zod.bag.Class=e,r}const av=(...e)=>Fd({Pipe:sa,Boolean:wi,String:bi,Transform:na},...e);function uv(e){const t=Dh(()=>xt([C(e),Ee(),Ve(),oh(),$e(t),Se(C(),t)]));return t}function cv(e,t){return si(ra(e),t)}const lv={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function fv(e){Xe({customError:e})}function dv(){return Xe().customError}var yo;yo||(yo={});function hv(e){return rd(bi,e)}function pv(e){return ld(_i,e)}function Fh(e){return yd(wi,e)}function mv(e){return $d(ki,e)}function gv(e){return Od(Qs,e)}var yv=Object.freeze({__proto__:null,bigint:mv,boolean:Fh,date:gv,number:pv,string:hv});Xe(Yf());var Ja=Object.freeze({__proto__:null,$brand:Oc,$input:td,$output:ed,NEVER:Nc,TimePrecision:id,ZodAny:sh,ZodArray:lh,ZodBase64:Gs,ZodBase64URL:Ws,ZodBigInt:ki,ZodBigIntFormat:Ys,ZodBoolean:wi,ZodCIDRv4:Ks,ZodCIDRv6:Js,ZodCUID:Rs,ZodCUID2:Fs,ZodCatch:xh,ZodCustom:Ei,ZodCustomStringFormat:th,ZodDate:Qs,ZodDefault:_h,ZodDiscriminatedUnion:fh,ZodE164:Hs,ZodEmail:Ds,ZodEmoji:Cs,ZodEnum:Ln,ZodError:py,ZodFile:$h,get ZodFirstPartyTypeKind(){return yo},ZodGUID:ri,ZodIPv4:qs,ZodIPv6:Vs,ZodISODate:As,ZodISODateTime:js,ZodISODuration:Ts,ZodISOTime:zs,ZodIntersection:dh,ZodIssueCode:lv,ZodJWT:Xs,ZodKSUID:Ms,ZodLazy:Ph,ZodLiteral:vh,ZodMap:gh,ZodNaN:Oh,ZodNanoID:Bs,ZodNever:uh,ZodNonOptional:oa,ZodNull:ih,ZodNullable:bh,ZodNumber:_i,ZodNumberFormat:bn,ZodObject:Ii,ZodOptional:ia,ZodPipe:sa,ZodPrefault:kh,ZodPromise:Uh,ZodReadonly:jh,ZodRealError:Wn,ZodRecord:ta,ZodSet:yh,ZodString:bi,ZodStringFormat:Oe,ZodSuccess:Eh,ZodSymbol:nh,ZodTemplateLiteral:zh,ZodTransform:na,ZodTuple:ph,ZodType:he,ZodULID:Ls,ZodURL:Us,ZodUUID:kt,ZodUndefined:rh,ZodUnion:ea,ZodUnknown:ah,ZodVoid:ch,ZodXID:Zs,_ZodString:Ps,_default:wh,any:Vy,array:$e,base64:Ay,base64url:zy,bigint:Fy,boolean:Ve,catch:Nh,check:Ch,cidrv4:Oy,cidrv6:jy,clone:vt,coerce:yv,config:Xe,core:dy,cuid:wy,cuid2:ky,custom:aa,date:Jy,discriminatedUnion:Ut,e164:Ty,email:my,emoji:_y,endsWith:ks,enum:dt,file:tv,flattenError:Ao,float32:Uy,float64:Cy,formatError:zo,function:Md,getErrorMap:dv,globalRegistry:Zt,gt:Kt,gte:tt,guid:gy,includes:_s,instanceof:sv,int:go,int32:By,int64:Ly,intersection:hh,ipv4:xy,ipv6:Ny,iso:hy,json:uv,jwt:Py,keyof:Gy,ksuid:Ey,lazy:Dh,length:$i,literal:_e,locales:Qf,looseObject:Hy,lowercase:$s,lt:Vt,lte:lt,map:Yy,maxLength:vi,maxSize:yi,mime:Ss,minLength:pn,minSize:Fn,multipleOf:Rn,nan:iv,nanoid:eh,nativeEnum:ev,negative:zd,never:Si,nonnegative:Pd,nonoptional:Ih,nonpositive:Td,normalize:Is,null:oh,nullable:oi,nullish:nv,number:Ee,object:G,optional:ii,overwrite:Ht,parse:Hd,parseAsync:Xd,partialRecord:Xy,pipe:si,positive:Ad,prefault:Sh,preprocess:cv,prettifyError:Kc,promise:ov,property:Dd,readonly:Ah,record:Se,refine:Bh,regex:vs,regexes:El,registry:Wo,safeParse:Yd,safeParseAsync:Qd,set:Qy,setErrorMap:fv,size:ys,startsWith:ws,strictObject:Wy,string:C,stringFormat:Dy,stringbool:av,success:rv,superRefine:Rh,symbol:My,templateLiteral:Th,toJSONSchema:qd,toLowerCase:xs,toUpperCase:Ns,transform:ra,treeifyError:qc,trim:Es,tuple:mh,uint32:Ry,uint64:Zy,ulid:Sy,undefined:qy,union:xt,unknown:Et,uppercase:bs,url:by,uuid:yy,uuidv4:vy,uuidv6:$y,uuidv7:Me,void:Ky,xid:Iy});G({search:C().optional(),skip:Ee().int().nonnegative().optional(),sort:dt(["asc","desc"]).default("asc"),cursor:C().optional(),count:Ee().int().nonnegative().max(100).optional()});function vv(e,t,r){let i=n=>e(n,...t);return r===void 0?i:Object.assign(i,{lazy:r,lazyArgs:t})}function Lh(e,t,r){let i=e.length-t.length;if(i===0)return e(...t);if(i===1)return vv(e,t,r);throw new Error("Wrong number of arguments")}var Zh={done:!1,hasNext:!1};function Ga(e,...t){let r=e,i=t.map(o=>"lazy"in o?$v(o):void 0),n=0;for(;n<t.length;){if(i[n]===void 0||!bv(r)){let c=t[n];r=c(r),n+=1;continue}let o=[];for(let c=n;c<t.length;c++){let h=i[c];if(h===void 0||(o.push(h),h.isSingle))break}let s=[];for(let c of r)if(Mh(c,s,o))break;let{isSingle:a}=o.at(-1);r=a?s[0]:s,n+=o.length}return r}function Mh(e,t,r){if(r.length===0)return t.push(e),!1;let i=e,n=Zh,o=!1;for(let[s,a]of r.entries()){let{index:c,items:h}=a;if(h.push(i),n=a(i,c,h),a.index+=1,n.hasNext){if(n.hasMany??!1){for(let u of n.next)if(Mh(u,t,r.slice(s+1)))return!0;return o}i=n.next}if(!n.hasNext)break;n.done&&(o=!0)}return n.hasNext&&t.push(i),o}function $v(e){let{lazy:t,lazyArgs:r}=e,i=t(...r);return Object.assign(i,{isSingle:t.single??!1,index:0,items:[]})}function bv(e){return typeof e=="string"||typeof e=="object"&&e!==null&&Symbol.iterator in e}function _v(e,t){let r=t.length-e.length;if(r===1){let[i,...n]=t;return Ga(i,{lazy:e,lazyArgs:n})}if(r===0){let i={lazy:e,lazyArgs:t};return Object.assign(n=>Ga(n,i),i)}throw new Error("Wrong number of arguments")}function wv(...e){return _v(kv,e)}function kv(){let e=new Set;return t=>e.has(t)?Zh:(e.add(t),{done:!1,hasNext:!0,next:t})}function Sv(...e){return Lh(Iv,e)}function Iv(e,t){let r={};for(let[i,n]of Object.entries(e)){let o=t(n,i,e);r[i]=o}return r}function Ev(...e){return Lh(Object.fromEntries,e)}var rr={exports:{}},Mi={},bt={},Bt={},qi={},Vi={},Ki={},Wa;function ai(){return Wa||(Wa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(f){if(super(),!e.IDENTIFIER.test(f))throw new Error("CodeGen: name must be a valid identifier");this.str=f}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class i extends t{constructor(f){super(),this._items=typeof f=="string"?[f]:f}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const f=this._items[0];return f===""||f==='""'}get str(){var f;return(f=this._str)!==null&&f!==void 0?f:this._str=this._items.reduce((v,S)=>`${v}${S}`,"")}get names(){var f;return(f=this._names)!==null&&f!==void 0?f:this._names=this._items.reduce((v,S)=>(S instanceof r&&(v[S.str]=(v[S.str]||0)+1),v),{})}}e._Code=i,e.nil=new i("");function n($,...f){const v=[$[0]];let S=0;for(;S<f.length;)a(v,f[S]),v.push($[++S]);return new i(v)}e._=n;const o=new i("+");function s($,...f){const v=[_($[0])];let S=0;for(;S<f.length;)v.push(o),a(v,f[S]),v.push(o,_($[++S]));return c(v),new i(v)}e.str=s;function a($,f){f instanceof i?$.push(...f._items):f instanceof r?$.push(f):$.push(d(f))}e.addCodeArg=a;function c($){let f=1;for(;f<$.length-1;){if($[f]===o){const v=h($[f-1],$[f+1]);if(v!==void 0){$.splice(f-1,3,v);continue}$[f++]="+"}f++}}function h($,f){if(f==='""')return $;if($==='""')return f;if(typeof $=="string")return f instanceof r||$[$.length-1]!=='"'?void 0:typeof f!="string"?`${$.slice(0,-1)}${f}"`:f[0]==='"'?$.slice(0,-1)+f.slice(1):void 0;if(typeof f=="string"&&f[0]==='"'&&!($ instanceof r))return`"${$}${f.slice(1)}`}function u($,f){return f.emptyStr()?$:$.emptyStr()?f:s`${$}${f}`}e.strConcat=u;function d($){return typeof $=="number"||typeof $=="boolean"||$===null?$:_(Array.isArray($)?$.join(","):$)}function y($){return new i(_($))}e.stringify=y;function _($){return JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=_;function b($){return typeof $=="string"&&e.IDENTIFIER.test($)?new i(`.${$}`):n`[${$}]`}e.getProperty=b;function g($){if(typeof $=="string"&&e.IDENTIFIER.test($))return new i(`${$}`);throw new Error(`CodeGen: invalid export name: ${$}, use explicit $id name mapping`)}e.getEsmExportName=g;function m($){return new i($.toString())}e.regexpCode=m}(Ki)),Ki}var Ji={},Ha;function Xa(){return Ha||(Ha=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ai();class r extends Error{constructor(h){super(`CodeGen: "code" for ${h} not defined`),this.value=h.value}}var i;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(i||(e.UsedValueState=i={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class n{constructor({prefixes:h,parent:u}={}){this._names={},this._prefixes=h,this._parent=u}toName(h){return h instanceof t.Name?h:this.name(h)}name(h){return new t.Name(this._newName(h))}_newName(h){const u=this._names[h]||this._nameGroup(h);return`${h}${u.index++}`}_nameGroup(h){var u,d;if(!((d=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||d===void 0)&&d.has(h)||this._prefixes&&!this._prefixes.has(h))throw new Error(`CodeGen: prefix "${h}" is not allowed in this scope`);return this._names[h]={prefix:h,index:0}}}e.Scope=n;class o extends t.Name{constructor(h,u){super(u),this.prefix=h}setValue(h,{property:u,itemIndex:d}){this.value=h,this.scopePath=(0,t._)`.${new t.Name(u)}[${d}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class a extends n{constructor(h){super(h),this._values={},this._scope=h.scope,this.opts={...h,_n:h.lines?s:t.nil}}get(){return this._scope}name(h){return new o(h,this._newName(h))}value(h,u){var d;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(h),{prefix:_}=y,b=(d=u.key)!==null&&d!==void 0?d:u.ref;let g=this._values[_];if(g){const f=g.get(b);if(f)return f}else g=this._values[_]=new Map;g.set(b,y);const m=this._scope[_]||(this._scope[_]=[]),$=m.length;return m[$]=u.ref,y.setValue(u,{property:_,itemIndex:$}),y}getValue(h,u){const d=this._values[h];if(d)return d.get(u)}scopeRefs(h,u=this._values){return this._reduceValues(u,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${h}${d.scopePath}`})}scopeCode(h=this._values,u,d){return this._reduceValues(h,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},u,d)}_reduceValues(h,u,d={},y){let _=t.nil;for(const b in h){const g=h[b];if(!g)continue;const m=d[b]=d[b]||new Map;g.forEach($=>{if(m.has($))return;m.set($,i.Started);let f=u($);if(f){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;_=(0,t._)`${_}${v} ${$} = ${f};${this.opts._n}`}else if(f=y?.($))_=(0,t._)`${_}${f}${this.opts._n}`;else throw new r($);m.set($,i.Completed)})}return _}}e.ValueScope=a}(Ji)),Ji}var Ya;function ye(){return Ya||(Ya=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=ai(),r=Xa();var i=ai();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}});var n=Xa();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return n.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return n.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return n.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return n.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(w,O){return this}}class s extends o{constructor(w,O,R){super(),this.varKind=w,this.name=O,this.rhs=R}render({es5:w,_n:O}){const R=w?r.varKinds.var:this.varKind,ee=this.rhs===void 0?"":` = ${this.rhs}`;return`${R} ${this.name}${ee};`+O}optimizeNames(w,O){if(w[this.name.str])return this.rhs&&(this.rhs=pe(this.rhs,w,O)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends o{constructor(w,O,R){super(),this.lhs=w,this.rhs=O,this.sideEffects=R}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,O){if(!(this.lhs instanceof t.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=pe(this.rhs,w,O),this}get names(){const w=this.lhs instanceof t.Name?{}:{...this.lhs.names};return oe(w,this.rhs)}}class c extends a{constructor(w,O,R,ee){super(w,R,ee),this.op=O}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class h extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class u extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class d extends o{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class y extends o{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,O){return this.code=pe(this.code,w,O),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class _ extends o{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((O,R)=>O+R.render(w),"")}optimizeNodes(){const{nodes:w}=this;let O=w.length;for(;O--;){const R=w[O].optimizeNodes();Array.isArray(R)?w.splice(O,1,...R):R?w[O]=R:w.splice(O,1)}return w.length>0?this:void 0}optimizeNames(w,O){const{nodes:R}=this;let ee=R.length;for(;ee--;){const te=R[ee];te.optimizeNames(w,O)||(F(w,te.names),R.splice(ee,1))}return R.length>0?this:void 0}get names(){return this.nodes.reduce((w,O)=>Q(w,O.names),{})}}class b extends _{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class g extends _{}class m extends b{}m.kind="else";class $ extends b{constructor(w,O){super(O),this.condition=w}render(w){let O=`if(${this.condition})`+super.render(w);return this.else&&(O+="else "+this.else.render(w)),O}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let O=this.else;if(O){const R=O.optimizeNodes();O=this.else=Array.isArray(R)?new m(R):R}if(O)return w===!1?O instanceof $?O:O.nodes:this.nodes.length?this:new $(X(w),O instanceof $?[O]:O.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,O){var R;if(this.else=(R=this.else)===null||R===void 0?void 0:R.optimizeNames(w,O),!!(super.optimizeNames(w,O)||this.else))return this.condition=pe(this.condition,w,O),this}get names(){const w=super.names;return oe(w,this.condition),this.else&&Q(w,this.else.names),w}}$.kind="if";class f extends b{}f.kind="for";class v extends f{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,O){if(super.optimizeNames(w,O))return this.iteration=pe(this.iteration,w,O),this}get names(){return Q(super.names,this.iteration.names)}}class S extends f{constructor(w,O,R,ee){super(),this.varKind=w,this.name=O,this.from=R,this.to=ee}render(w){const O=w.es5?r.varKinds.var:this.varKind,{name:R,from:ee,to:te}=this;return`for(${O} ${R}=${ee}; ${R}<${te}; ${R}++)`+super.render(w)}get names(){const w=oe(super.names,this.from);return oe(w,this.to)}}class E extends f{constructor(w,O,R,ee){super(),this.loop=w,this.varKind=O,this.name=R,this.iterable=ee}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,O){if(super.optimizeNames(w,O))return this.iterable=pe(this.iterable,w,O),this}get names(){return Q(super.names,this.iterable.names)}}class I extends b{constructor(w,O,R){super(),this.name=w,this.args=O,this.async=R}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}I.kind="func";class N extends _{render(w){return"return "+super.render(w)}}N.kind="return";class j extends b{render(w){let O="try"+super.render(w);return this.catch&&(O+=this.catch.render(w)),this.finally&&(O+=this.finally.render(w)),O}optimizeNodes(){var w,O;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(O=this.finally)===null||O===void 0||O.optimizeNodes(),this}optimizeNames(w,O){var R,ee;return super.optimizeNames(w,O),(R=this.catch)===null||R===void 0||R.optimizeNames(w,O),(ee=this.finally)===null||ee===void 0||ee.optimizeNames(w,O),this}get names(){const w=super.names;return this.catch&&Q(w,this.catch.names),this.finally&&Q(w,this.finally.names),w}}class Z extends b{constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}Z.kind="catch";class W extends b{render(w){return"finally"+super.render(w)}}W.kind="finally";class Y{constructor(w,O={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...O,_n:O.lines?`
|
|
30
|
+
`:""},this._extScope=w,this._scope=new r.Scope({parent:w}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,O){const R=this._extScope.value(w,O);return(this._values[R.prefix]||(this._values[R.prefix]=new Set)).add(R),R}getScopeValue(w,O){return this._extScope.getValue(w,O)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,O,R,ee){const te=this._scope.toName(O);return R!==void 0&&ee&&(this._constants[te.str]=R),this._leafNode(new s(w,te,R)),te}const(w,O,R){return this._def(r.varKinds.const,w,O,R)}let(w,O,R){return this._def(r.varKinds.let,w,O,R)}var(w,O,R){return this._def(r.varKinds.var,w,O,R)}assign(w,O,R){return this._leafNode(new a(w,O,R))}add(w,O){return this._leafNode(new c(w,e.operators.ADD,O))}code(w){return typeof w=="function"?w():w!==t.nil&&this._leafNode(new y(w)),this}object(...w){const O=["{"];for(const[R,ee]of w)O.length>1&&O.push(","),O.push(R),(R!==ee||this.opts.es5)&&(O.push(":"),(0,t.addCodeArg)(O,ee));return O.push("}"),new t._Code(O)}if(w,O,R){if(this._blockNode(new $(w)),O&&R)this.code(O).else().code(R).endIf();else if(O)this.code(O).endIf();else if(R)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(w){return this._elseNode(new $(w))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode($,m)}_for(w,O){return this._blockNode(w),O&&this.code(O).endFor(),this}for(w,O){return this._for(new v(w),O)}forRange(w,O,R,ee,te=this.opts.es5?r.varKinds.var:r.varKinds.let){const me=this._scope.toName(w);return this._for(new S(te,me,O,R),()=>ee(me))}forOf(w,O,R,ee=r.varKinds.const){const te=this._scope.toName(w);if(this.opts.es5){const me=O instanceof t.Name?O:this.var("_arr",O);return this.forRange("_i",0,(0,t._)`${me}.length`,se=>{this.var(te,(0,t._)`${me}[${se}]`),R(te)})}return this._for(new E("of",ee,te,O),()=>R(te))}forIn(w,O,R,ee=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(w,(0,t._)`Object.keys(${O})`,R);const te=this._scope.toName(w);return this._for(new E("in",ee,te,O),()=>R(te))}endFor(){return this._endBlockNode(f)}label(w){return this._leafNode(new h(w))}break(w){return this._leafNode(new u(w))}return(w){const O=new N;if(this._blockNode(O),this.code(w),O.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(w,O,R){if(!O&&!R)throw new Error('CodeGen: "try" without "catch" and "finally"');const ee=new j;if(this._blockNode(ee),this.code(w),O){const te=this.name("e");this._currNode=ee.catch=new Z(te),O(te)}return R&&(this._currNode=ee.finally=new W,this.code(R)),this._endBlockNode(Z,W)}throw(w){return this._leafNode(new d(w))}block(w,O){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(O),this}endBlock(w){const O=this._blockStarts.pop();if(O===void 0)throw new Error("CodeGen: not in self-balancing block");const R=this._nodes.length-O;if(R<0||w!==void 0&&R!==w)throw new Error(`CodeGen: wrong number of nodes: ${R} vs ${w} expected`);return this._nodes.length=O,this}func(w,O=t.nil,R,ee){return this._blockNode(new I(w,O,R)),ee&&this.code(ee).endFunc(),this}endFunc(){return this._endBlockNode(I)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,O){const R=this._currNode;if(R instanceof w||O&&R instanceof O)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${O?`${w.kind}/${O.kind}`:w.kind}"`)}_elseNode(w){const O=this._currNode;if(!(O instanceof $))throw new Error('CodeGen: "else" without "if"');return this._currNode=O.else=w,this}get _root(){return this._nodes[0]}get _currNode(){const w=this._nodes;return w[w.length-1]}set _currNode(w){const O=this._nodes;O[O.length-1]=w}}e.CodeGen=Y;function Q(P,w){for(const O in w)P[O]=(P[O]||0)+(w[O]||0);return P}function oe(P,w){return w instanceof t._CodeOrName?Q(P,w.names):P}function pe(P,w,O){if(P instanceof t.Name)return R(P);if(!ee(P))return P;return new t._Code(P._items.reduce((te,me)=>(me instanceof t.Name&&(me=R(me)),me instanceof t._Code?te.push(...me._items):te.push(me),te),[]));function R(te){const me=O[te.str];return me===void 0||w[te.str]!==1?te:(delete w[te.str],me)}function ee(te){return te instanceof t._Code&&te._items.some(me=>me instanceof t.Name&&w[me.str]===1&&O[me.str]!==void 0)}}function F(P,w){for(const O in w)P[O]=(P[O]||0)-(w[O]||0)}function X(P){return typeof P=="boolean"||typeof P=="number"||P===null?!P:(0,t._)`!${L(P)}`}e.not=X;const ie=T(e.operators.AND);function re(...P){return P.reduce(ie)}e.and=re;const ce=T(e.operators.OR);function K(...P){return P.reduce(ce)}e.or=K;function T(P){return(w,O)=>w===t.nil?O:O===t.nil?w:(0,t._)`${L(w)} ${P} ${L(O)}`}function L(P){return P instanceof t.Name?P:(0,t._)`(${P})`}}(Vi)),Vi}var de={},Qa;function be(){if(Qa)return de;Qa=1,Object.defineProperty(de,"__esModule",{value:!0}),de.checkStrictMode=de.getErrorPath=de.Type=de.useFunc=de.setEvaluated=de.evaluatedPropsToName=de.mergeEvaluated=de.eachItem=de.unescapeJsonPointer=de.escapeJsonPointer=de.escapeFragment=de.unescapeFragment=de.schemaRefOrVal=de.schemaHasRulesButRef=de.schemaHasRules=de.checkUnknownRules=de.alwaysValidSchema=de.toHash=void 0;const e=ye(),t=ai();function r(E){const I={};for(const N of E)I[N]=!0;return I}de.toHash=r;function i(E,I){return typeof I=="boolean"?I:Object.keys(I).length===0?!0:(n(E,I),!o(I,E.self.RULES.all))}de.alwaysValidSchema=i;function n(E,I=E.schema){const{opts:N,self:j}=E;if(!N.strictSchema||typeof I=="boolean")return;const Z=j.RULES.keywords;for(const W in I)Z[W]||S(E,`unknown keyword: "${W}"`)}de.checkUnknownRules=n;function o(E,I){if(typeof E=="boolean")return!E;for(const N in E)if(I[N])return!0;return!1}de.schemaHasRules=o;function s(E,I){if(typeof E=="boolean")return!E;for(const N in E)if(N!=="$ref"&&I.all[N])return!0;return!1}de.schemaHasRulesButRef=s;function a({topSchemaRef:E,schemaPath:I},N,j,Z){if(!Z){if(typeof N=="number"||typeof N=="boolean")return N;if(typeof N=="string")return(0,e._)`${N}`}return(0,e._)`${E}${I}${(0,e.getProperty)(j)}`}de.schemaRefOrVal=a;function c(E){return d(decodeURIComponent(E))}de.unescapeFragment=c;function h(E){return encodeURIComponent(u(E))}de.escapeFragment=h;function u(E){return typeof E=="number"?`${E}`:E.replace(/~/g,"~0").replace(/\//g,"~1")}de.escapeJsonPointer=u;function d(E){return E.replace(/~1/g,"/").replace(/~0/g,"~")}de.unescapeJsonPointer=d;function y(E,I){if(Array.isArray(E))for(const N of E)I(N);else I(E)}de.eachItem=y;function _({mergeNames:E,mergeToName:I,mergeValues:N,resultToName:j}){return(Z,W,Y,Q)=>{const oe=Y===void 0?W:Y instanceof e.Name?(W instanceof e.Name?E(Z,W,Y):I(Z,W,Y),Y):W instanceof e.Name?(I(Z,Y,W),W):N(W,Y);return Q===e.Name&&!(oe instanceof e.Name)?j(Z,oe):oe}}de.mergeEvaluated={props:_({mergeNames:(E,I,N)=>E.if((0,e._)`${N} !== true && ${I} !== undefined`,()=>{E.if((0,e._)`${I} === true`,()=>E.assign(N,!0),()=>E.assign(N,(0,e._)`${N} || {}`).code((0,e._)`Object.assign(${N}, ${I})`))}),mergeToName:(E,I,N)=>E.if((0,e._)`${N} !== true`,()=>{I===!0?E.assign(N,!0):(E.assign(N,(0,e._)`${N} || {}`),g(E,N,I))}),mergeValues:(E,I)=>E===!0?!0:{...E,...I},resultToName:b}),items:_({mergeNames:(E,I,N)=>E.if((0,e._)`${N} !== true && ${I} !== undefined`,()=>E.assign(N,(0,e._)`${I} === true ? true : ${N} > ${I} ? ${N} : ${I}`)),mergeToName:(E,I,N)=>E.if((0,e._)`${N} !== true`,()=>E.assign(N,I===!0?!0:(0,e._)`${N} > ${I} ? ${N} : ${I}`)),mergeValues:(E,I)=>E===!0?!0:Math.max(E,I),resultToName:(E,I)=>E.var("items",I)})};function b(E,I){if(I===!0)return E.var("props",!0);const N=E.var("props",(0,e._)`{}`);return I!==void 0&&g(E,N,I),N}de.evaluatedPropsToName=b;function g(E,I,N){Object.keys(N).forEach(j=>E.assign((0,e._)`${I}${(0,e.getProperty)(j)}`,!0))}de.setEvaluated=g;const m={};function $(E,I){return E.scopeValue("func",{ref:I,code:m[I.code]||(m[I.code]=new t._Code(I.code))})}de.useFunc=$;var f;(function(E){E[E.Num=0]="Num",E[E.Str=1]="Str"})(f||(de.Type=f={}));function v(E,I,N){if(E instanceof e.Name){const j=I===f.Num;return N?j?(0,e._)`"[" + ${E} + "]"`:(0,e._)`"['" + ${E} + "']"`:j?(0,e._)`"/" + ${E}`:(0,e._)`"/" + ${E}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return N?(0,e.getProperty)(E).toString():"/"+u(E)}de.getErrorPath=v;function S(E,I,N=E.opts.strictSchema){if(N){if(I=`strict mode: ${I}`,N===!0)throw new Error(I);E.self.logger.warn(I)}}return de.checkStrictMode=S,de}var ir={},eu;function Ct(){if(eu)return ir;eu=1,Object.defineProperty(ir,"__esModule",{value:!0});const e=ye(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return ir.default=t,ir}var tu;function xi(){return tu||(tu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ye(),r=be(),i=Ct();e.keywordError={message:({keyword:m})=>(0,t.str)`must pass "${m}" keyword validation`},e.keyword$DataError={message:({keyword:m,schemaType:$})=>$?(0,t.str)`"${m}" keyword must be ${$} ($data)`:(0,t.str)`"${m}" keyword is invalid ($data)`};function n(m,$=e.keywordError,f,v){const{it:S}=m,{gen:E,compositeRule:I,allErrors:N}=S,j=d(m,$,f);v??(I||N)?c(E,j):h(S,(0,t._)`[${j}]`)}e.reportError=n;function o(m,$=e.keywordError,f){const{it:v}=m,{gen:S,compositeRule:E,allErrors:I}=v,N=d(m,$,f);c(S,N),E||I||h(v,i.default.vErrors)}e.reportExtraError=o;function s(m,$){m.assign(i.default.errors,$),m.if((0,t._)`${i.default.vErrors} !== null`,()=>m.if($,()=>m.assign((0,t._)`${i.default.vErrors}.length`,$),()=>m.assign(i.default.vErrors,null)))}e.resetErrorsCount=s;function a({gen:m,keyword:$,schemaValue:f,data:v,errsCount:S,it:E}){if(S===void 0)throw new Error("ajv implementation error");const I=m.name("err");m.forRange("i",S,i.default.errors,N=>{m.const(I,(0,t._)`${i.default.vErrors}[${N}]`),m.if((0,t._)`${I}.instancePath === undefined`,()=>m.assign((0,t._)`${I}.instancePath`,(0,t.strConcat)(i.default.instancePath,E.errorPath))),m.assign((0,t._)`${I}.schemaPath`,(0,t.str)`${E.errSchemaPath}/${$}`),E.opts.verbose&&(m.assign((0,t._)`${I}.schema`,f),m.assign((0,t._)`${I}.data`,v))})}e.extendErrors=a;function c(m,$){const f=m.const("err",$);m.if((0,t._)`${i.default.vErrors} === null`,()=>m.assign(i.default.vErrors,(0,t._)`[${f}]`),(0,t._)`${i.default.vErrors}.push(${f})`),m.code((0,t._)`${i.default.errors}++`)}function h(m,$){const{gen:f,validateName:v,schemaEnv:S}=m;S.$async?f.throw((0,t._)`new ${m.ValidationError}(${$})`):(f.assign((0,t._)`${v}.errors`,$),f.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(m,$,f){const{createErrors:v}=m.it;return v===!1?(0,t._)`{}`:y(m,$,f)}function y(m,$,f={}){const{gen:v,it:S}=m,E=[_(S,f),b(m,f)];return g(m,$,E),v.object(...E)}function _({errorPath:m},{instancePath:$}){const f=$?(0,t.str)`${m}${(0,r.getErrorPath)($,r.Type.Str)}`:m;return[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,f)]}function b({keyword:m,it:{errSchemaPath:$}},{schemaPath:f,parentSchema:v}){let S=v?$:(0,t.str)`${$}/${m}`;return f&&(S=(0,t.str)`${S}${(0,r.getErrorPath)(f,r.Type.Str)}`),[u.schemaPath,S]}function g(m,{params:$,message:f},v){const{keyword:S,data:E,schemaValue:I,it:N}=m,{opts:j,propertyName:Z,topSchemaRef:W,schemaPath:Y}=N;v.push([u.keyword,S],[u.params,typeof $=="function"?$(m):$||(0,t._)`{}`]),j.messages&&v.push([u.message,typeof f=="function"?f(m):f]),j.verbose&&v.push([u.schema,I],[u.parentSchema,(0,t._)`${W}${Y}`],[i.default.data,E]),Z&&v.push([u.propertyName,Z])}}(qi)),qi}var nu;function xv(){if(nu)return Bt;nu=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.boolOrEmptySchema=Bt.topBoolOrEmptySchema=void 0;const e=xi(),t=ye(),r=Ct(),i={message:"boolean schema is false"};function n(a){const{gen:c,schema:h,validateName:u}=a;h===!1?s(a,!1):typeof h=="object"&&h.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${u}.errors`,null),c.return(!0))}Bt.topBoolOrEmptySchema=n;function o(a,c){const{gen:h,schema:u}=a;u===!1?(h.var(c,!1),s(a)):h.var(c,!0)}Bt.boolOrEmptySchema=o;function s(a,c){const{gen:h,data:u}=a,d={gen:h,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:a};(0,e.reportError)(d,i,void 0,c)}return Bt}var qe={},Rt={},ru;function qh(){if(ru)return Rt;ru=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.getRules=Rt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(n){return typeof n=="string"&&t.has(n)}Rt.isJSONType=r;function i(){const n={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...n,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},n.number,n.string,n.array,n.object],post:{rules:[]},all:{},keywords:{}}}return Rt.getRules=i,Rt}var _t={},iu;function Vh(){if(iu)return _t;iu=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.shouldUseRule=_t.shouldUseGroup=_t.schemaHasRulesForType=void 0;function e({schema:i,self:n},o){const s=n.RULES.types[o];return s&&s!==!0&&t(i,s)}_t.schemaHasRulesForType=e;function t(i,n){return n.rules.some(o=>r(i,o))}_t.shouldUseGroup=t;function r(i,n){var o;return i[n.keyword]!==void 0||((o=n.definition.implements)===null||o===void 0?void 0:o.some(s=>i[s]!==void 0))}return _t.shouldUseRule=r,_t}var ou;function ui(){if(ou)return qe;ou=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.reportTypeError=qe.checkDataTypes=qe.checkDataType=qe.coerceAndCheckDataType=qe.getJSONTypes=qe.getSchemaTypes=qe.DataType=void 0;const e=qh(),t=Vh(),r=xi(),i=ye(),n=be();var o;(function(f){f[f.Correct=0]="Correct",f[f.Wrong=1]="Wrong"})(o||(qe.DataType=o={}));function s(f){const v=a(f.type);if(v.includes("null")){if(f.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!v.length&&f.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');f.nullable===!0&&v.push("null")}return v}qe.getSchemaTypes=s;function a(f){const v=Array.isArray(f)?f:f?[f]:[];if(v.every(e.isJSONType))return v;throw new Error("type must be JSONType or JSONType[]: "+v.join(","))}qe.getJSONTypes=a;function c(f,v){const{gen:S,data:E,opts:I}=f,N=u(v,I.coerceTypes),j=v.length>0&&!(N.length===0&&v.length===1&&(0,t.schemaHasRulesForType)(f,v[0]));if(j){const Z=b(v,E,I.strictNumbers,o.Wrong);S.if(Z,()=>{N.length?d(f,v,N):m(f)})}return j}qe.coerceAndCheckDataType=c;const h=new Set(["string","number","integer","boolean","null"]);function u(f,v){return v?f.filter(S=>h.has(S)||v==="array"&&S==="array"):[]}function d(f,v,S){const{gen:E,data:I,opts:N}=f,j=E.let("dataType",(0,i._)`typeof ${I}`),Z=E.let("coerced",(0,i._)`undefined`);N.coerceTypes==="array"&&E.if((0,i._)`${j} == 'object' && Array.isArray(${I}) && ${I}.length == 1`,()=>E.assign(I,(0,i._)`${I}[0]`).assign(j,(0,i._)`typeof ${I}`).if(b(v,I,N.strictNumbers),()=>E.assign(Z,I))),E.if((0,i._)`${Z} !== undefined`);for(const Y of S)(h.has(Y)||Y==="array"&&N.coerceTypes==="array")&&W(Y);E.else(),m(f),E.endIf(),E.if((0,i._)`${Z} !== undefined`,()=>{E.assign(I,Z),y(f,Z)});function W(Y){switch(Y){case"string":E.elseIf((0,i._)`${j} == "number" || ${j} == "boolean"`).assign(Z,(0,i._)`"" + ${I}`).elseIf((0,i._)`${I} === null`).assign(Z,(0,i._)`""`);return;case"number":E.elseIf((0,i._)`${j} == "boolean" || ${I} === null
|
|
31
|
+
|| (${j} == "string" && ${I} && ${I} == +${I})`).assign(Z,(0,i._)`+${I}`);return;case"integer":E.elseIf((0,i._)`${j} === "boolean" || ${I} === null
|
|
32
|
+
|| (${j} === "string" && ${I} && ${I} == +${I} && !(${I} % 1))`).assign(Z,(0,i._)`+${I}`);return;case"boolean":E.elseIf((0,i._)`${I} === "false" || ${I} === 0 || ${I} === null`).assign(Z,!1).elseIf((0,i._)`${I} === "true" || ${I} === 1`).assign(Z,!0);return;case"null":E.elseIf((0,i._)`${I} === "" || ${I} === 0 || ${I} === false`),E.assign(Z,null);return;case"array":E.elseIf((0,i._)`${j} === "string" || ${j} === "number"
|
|
33
|
+
|| ${j} === "boolean" || ${I} === null`).assign(Z,(0,i._)`[${I}]`)}}}function y({gen:f,parentData:v,parentDataProperty:S},E){f.if((0,i._)`${v} !== undefined`,()=>f.assign((0,i._)`${v}[${S}]`,E))}function _(f,v,S,E=o.Correct){const I=E===o.Correct?i.operators.EQ:i.operators.NEQ;let N;switch(f){case"null":return(0,i._)`${v} ${I} null`;case"array":N=(0,i._)`Array.isArray(${v})`;break;case"object":N=(0,i._)`${v} && typeof ${v} == "object" && !Array.isArray(${v})`;break;case"integer":N=j((0,i._)`!(${v} % 1) && !isNaN(${v})`);break;case"number":N=j();break;default:return(0,i._)`typeof ${v} ${I} ${f}`}return E===o.Correct?N:(0,i.not)(N);function j(Z=i.nil){return(0,i.and)((0,i._)`typeof ${v} == "number"`,Z,S?(0,i._)`isFinite(${v})`:i.nil)}}qe.checkDataType=_;function b(f,v,S,E){if(f.length===1)return _(f[0],v,S,E);let I;const N=(0,n.toHash)(f);if(N.array&&N.object){const j=(0,i._)`typeof ${v} != "object"`;I=N.null?j:(0,i._)`!${v} || ${j}`,delete N.null,delete N.array,delete N.object}else I=i.nil;N.number&&delete N.integer;for(const j in N)I=(0,i.and)(I,_(j,v,S,E));return I}qe.checkDataTypes=b;const g={message:({schema:f})=>`must be ${f}`,params:({schema:f,schemaValue:v})=>typeof f=="string"?(0,i._)`{type: ${f}}`:(0,i._)`{type: ${v}}`};function m(f){const v=$(f);(0,r.reportError)(v,g)}qe.reportTypeError=m;function $(f){const{gen:v,data:S,schema:E}=f,I=(0,n.schemaRefOrVal)(f,E,"type");return{gen:v,keyword:"type",data:S,schema:E.type,schemaCode:I,schemaValue:I,parentSchema:E,params:{},it:f}}return qe}var En={},su;function Nv(){if(su)return En;su=1,Object.defineProperty(En,"__esModule",{value:!0}),En.assignDefaults=void 0;const e=ye(),t=be();function r(n,o){const{properties:s,items:a}=n.schema;if(o==="object"&&s)for(const c in s)i(n,c,s[c].default);else o==="array"&&Array.isArray(a)&&a.forEach((c,h)=>i(n,h,c.default))}En.assignDefaults=r;function i(n,o,s){const{gen:a,compositeRule:c,data:h,opts:u}=n;if(s===void 0)return;const d=(0,e._)`${h}${(0,e.getProperty)(o)}`;if(c){(0,t.checkStrictMode)(n,`default is ignored for: ${d}`);return}let y=(0,e._)`${d} === undefined`;u.useDefaults==="empty"&&(y=(0,e._)`${y} || ${d} === null || ${d} === ""`),a.if(y,(0,e._)`${d} = ${(0,e.stringify)(s)}`)}return En}var ut={},ke={},au;function ht(){if(au)return ke;au=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.validateUnion=ke.validateArray=ke.usePattern=ke.callValidateCode=ke.schemaProperties=ke.allSchemaProperties=ke.noPropertyInData=ke.propertyInData=ke.isOwnProperty=ke.hasPropFunc=ke.reportMissingProp=ke.checkMissingProp=ke.checkReportMissingProp=void 0;const e=ye(),t=be(),r=Ct(),i=be();function n(f,v){const{gen:S,data:E,it:I}=f;S.if(u(S,E,v,I.opts.ownProperties),()=>{f.setParams({missingProperty:(0,e._)`${v}`},!0),f.error()})}ke.checkReportMissingProp=n;function o({gen:f,data:v,it:{opts:S}},E,I){return(0,e.or)(...E.map(N=>(0,e.and)(u(f,v,N,S.ownProperties),(0,e._)`${I} = ${N}`)))}ke.checkMissingProp=o;function s(f,v){f.setParams({missingProperty:v},!0),f.error()}ke.reportMissingProp=s;function a(f){return f.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}ke.hasPropFunc=a;function c(f,v,S){return(0,e._)`${a(f)}.call(${v}, ${S})`}ke.isOwnProperty=c;function h(f,v,S,E){const I=(0,e._)`${v}${(0,e.getProperty)(S)} !== undefined`;return E?(0,e._)`${I} && ${c(f,v,S)}`:I}ke.propertyInData=h;function u(f,v,S,E){const I=(0,e._)`${v}${(0,e.getProperty)(S)} === undefined`;return E?(0,e.or)(I,(0,e.not)(c(f,v,S))):I}ke.noPropertyInData=u;function d(f){return f?Object.keys(f).filter(v=>v!=="__proto__"):[]}ke.allSchemaProperties=d;function y(f,v){return d(v).filter(S=>!(0,t.alwaysValidSchema)(f,v[S]))}ke.schemaProperties=y;function _({schemaCode:f,data:v,it:{gen:S,topSchemaRef:E,schemaPath:I,errorPath:N},it:j},Z,W,Y){const Q=Y?(0,e._)`${f}, ${v}, ${E}${I}`:v,oe=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,N)],[r.default.parentData,j.parentData],[r.default.parentDataProperty,j.parentDataProperty],[r.default.rootData,r.default.rootData]];j.opts.dynamicRef&&oe.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const pe=(0,e._)`${Q}, ${S.object(...oe)}`;return W!==e.nil?(0,e._)`${Z}.call(${W}, ${pe})`:(0,e._)`${Z}(${pe})`}ke.callValidateCode=_;const b=(0,e._)`new RegExp`;function g({gen:f,it:{opts:v}},S){const E=v.unicodeRegExp?"u":"",{regExp:I}=v.code,N=I(S,E);return f.scopeValue("pattern",{key:N.toString(),ref:N,code:(0,e._)`${I.code==="new RegExp"?b:(0,i.useFunc)(f,I)}(${S}, ${E})`})}ke.usePattern=g;function m(f){const{gen:v,data:S,keyword:E,it:I}=f,N=v.name("valid");if(I.allErrors){const Z=v.let("valid",!0);return j(()=>v.assign(Z,!1)),Z}return v.var(N,!0),j(()=>v.break()),N;function j(Z){const W=v.const("len",(0,e._)`${S}.length`);v.forRange("i",0,W,Y=>{f.subschema({keyword:E,dataProp:Y,dataPropType:t.Type.Num},N),v.if((0,e.not)(N),Z)})}}ke.validateArray=m;function $(f){const{gen:v,schema:S,keyword:E,it:I}=f;if(!Array.isArray(S))throw new Error("ajv implementation error");if(S.some(W=>(0,t.alwaysValidSchema)(I,W))&&!I.opts.unevaluated)return;const j=v.let("valid",!1),Z=v.name("_valid");v.block(()=>S.forEach((W,Y)=>{const Q=f.subschema({keyword:E,schemaProp:Y,compositeRule:!0},Z);v.assign(j,(0,e._)`${j} || ${Z}`),f.mergeValidEvaluated(Q,Z)||v.if((0,e.not)(j))})),f.result(j,()=>f.reset(),()=>f.error(!0))}return ke.validateUnion=$,ke}var uu;function Ov(){if(uu)return ut;uu=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.validateKeywordUsage=ut.validSchemaType=ut.funcKeywordCode=ut.macroKeywordCode=void 0;const e=ye(),t=Ct(),r=ht(),i=xi();function n(y,_){const{gen:b,keyword:g,schema:m,parentSchema:$,it:f}=y,v=_.macro.call(f.self,m,$,f),S=h(b,g,v);f.opts.validateSchema!==!1&&f.self.validateSchema(v,!0);const E=b.name("valid");y.subschema({schema:v,schemaPath:e.nil,errSchemaPath:`${f.errSchemaPath}/${g}`,topSchemaRef:S,compositeRule:!0},E),y.pass(E,()=>y.error(!0))}ut.macroKeywordCode=n;function o(y,_){var b;const{gen:g,keyword:m,schema:$,parentSchema:f,$data:v,it:S}=y;c(S,_);const E=!v&&_.compile?_.compile.call(S.self,$,f,S):_.validate,I=h(g,m,E),N=g.let("valid");y.block$data(N,j),y.ok((b=_.valid)!==null&&b!==void 0?b:N);function j(){if(_.errors===!1)Y(),_.modifying&&s(y),Q(()=>y.error());else{const oe=_.async?Z():W();_.modifying&&s(y),Q(()=>a(y,oe))}}function Z(){const oe=g.let("ruleErrs",null);return g.try(()=>Y((0,e._)`await `),pe=>g.assign(N,!1).if((0,e._)`${pe} instanceof ${S.ValidationError}`,()=>g.assign(oe,(0,e._)`${pe}.errors`),()=>g.throw(pe))),oe}function W(){const oe=(0,e._)`${I}.errors`;return g.assign(oe,null),Y(e.nil),oe}function Y(oe=_.async?(0,e._)`await `:e.nil){const pe=S.opts.passContext?t.default.this:t.default.self,F=!("compile"in _&&!v||_.schema===!1);g.assign(N,(0,e._)`${oe}${(0,r.callValidateCode)(y,I,pe,F)}`,_.modifying)}function Q(oe){var pe;g.if((0,e.not)((pe=_.valid)!==null&&pe!==void 0?pe:N),oe)}}ut.funcKeywordCode=o;function s(y){const{gen:_,data:b,it:g}=y;_.if(g.parentData,()=>_.assign(b,(0,e._)`${g.parentData}[${g.parentDataProperty}]`))}function a(y,_){const{gen:b}=y;b.if((0,e._)`Array.isArray(${_})`,()=>{b.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${_} : ${t.default.vErrors}.concat(${_})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,i.extendErrors)(y)},()=>y.error())}function c({schemaEnv:y},_){if(_.async&&!y.$async)throw new Error("async keyword in sync schema")}function h(y,_,b){if(b===void 0)throw new Error(`keyword "${_}" failed to compile`);return y.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,e.stringify)(b)})}function u(y,_,b=!1){return!_.length||_.some(g=>g==="array"?Array.isArray(y):g==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==g||b&&typeof y>"u")}ut.validSchemaType=u;function d({schema:y,opts:_,self:b,errSchemaPath:g},m,$){if(Array.isArray(m.keyword)?!m.keyword.includes($):m.keyword!==$)throw new Error("ajv implementation error");const f=m.dependencies;if(f?.some(v=>!Object.prototype.hasOwnProperty.call(y,v)))throw new Error(`parent schema must have dependencies of ${$}: ${f.join(",")}`);if(m.validateSchema&&!m.validateSchema(y[$])){const S=`keyword "${$}" value is invalid at path "${g}": `+b.errorsText(m.validateSchema.errors);if(_.validateSchema==="log")b.logger.error(S);else throw new Error(S)}}return ut.validateKeywordUsage=d,ut}var wt={},cu;function jv(){if(cu)return wt;cu=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.extendSubschemaMode=wt.extendSubschemaData=wt.getSubschema=void 0;const e=ye(),t=be();function r(o,{keyword:s,schemaProp:a,schema:c,schemaPath:h,errSchemaPath:u,topSchemaRef:d}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const y=o.schema[s];return a===void 0?{schema:y,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:y[a],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,t.escapeFragment)(a)}`}}if(c!==void 0){if(h===void 0||u===void 0||d===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:h,topSchemaRef:d,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}wt.getSubschema=r;function i(o,s,{dataProp:a,dataPropType:c,data:h,dataTypes:u,propertyName:d}){if(h!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=s;if(a!==void 0){const{errorPath:b,dataPathArr:g,opts:m}=s,$=y.let("data",(0,e._)`${s.data}${(0,e.getProperty)(a)}`,!0);_($),o.errorPath=(0,e.str)`${b}${(0,t.getErrorPath)(a,c,m.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${a}`,o.dataPathArr=[...g,o.parentDataProperty]}if(h!==void 0){const b=h instanceof e.Name?h:y.let("data",h,!0);_(b),d!==void 0&&(o.propertyName=d)}u&&(o.dataTypes=u);function _(b){o.data=b,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,b]}}wt.extendSubschemaData=i;function n(o,{jtdDiscriminator:s,jtdMetadata:a,compositeRule:c,createErrors:h,allErrors:u}){c!==void 0&&(o.compositeRule=c),h!==void 0&&(o.createErrors=h),u!==void 0&&(o.allErrors=u),o.jtdDiscriminator=s,o.jtdMetadata=a}return wt.extendSubschemaMode=n,wt}var Ge={},Gi,lu;function Kh(){return lu||(lu=1,Gi=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 i,n,o;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(n=i;n--!==0;)if(!e(t[n],r[n]))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(o=Object.keys(t),i=o.length,i!==Object.keys(r).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return!1;for(n=i;n--!==0;){var s=o[n];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),Gi}var Wi={exports:{}},fu;function Av(){if(fu)return Wi.exports;fu=1;var e=Wi.exports=function(i,n,o){typeof n=="function"&&(o=n,n={}),o=n.cb||o;var s=typeof o=="function"?o:o.pre||function(){},a=o.post||function(){};t(n,s,a,i,"",i)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(i,n,o,s,a,c,h,u,d,y){if(s&&typeof s=="object"&&!Array.isArray(s)){n(s,a,c,h,u,d,y);for(var _ in s){var b=s[_];if(Array.isArray(b)){if(_ in e.arrayKeywords)for(var g=0;g<b.length;g++)t(i,n,o,b[g],a+"/"+_+"/"+g,c,a,_,s,g)}else if(_ in e.propsKeywords){if(b&&typeof b=="object")for(var m in b)t(i,n,o,b[m],a+"/"+_+"/"+r(m),c,a,_,s,m)}else(_ in e.keywords||i.allKeys&&!(_ in e.skipKeywords))&&t(i,n,o,b,a+"/"+_,c,a,_,s)}o(s,a,c,h,u,d,y)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return Wi.exports}var du;function Ni(){if(du)return Ge;du=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.getSchemaRefs=Ge.resolveUrl=Ge.normalizeId=Ge._getFullPath=Ge.getFullPath=Ge.inlineRef=void 0;const e=be(),t=Kh(),r=Av(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n(g,m=!0){return typeof g=="boolean"?!0:m===!0?!s(g):m?a(g)<=m:!1}Ge.inlineRef=n;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(g){for(const m in g){if(o.has(m))return!0;const $=g[m];if(Array.isArray($)&&$.some(s)||typeof $=="object"&&s($))return!0}return!1}function a(g){let m=0;for(const $ in g){if($==="$ref")return 1/0;if(m++,!i.has($)&&(typeof g[$]=="object"&&(0,e.eachItem)(g[$],f=>m+=a(f)),m===1/0))return 1/0}return m}function c(g,m="",$){$!==!1&&(m=d(m));const f=g.parse(m);return h(g,f)}Ge.getFullPath=c;function h(g,m){return g.serialize(m).split("#")[0]+"#"}Ge._getFullPath=h;const u=/#\/?$/;function d(g){return g?g.replace(u,""):""}Ge.normalizeId=d;function y(g,m,$){return $=d($),g.resolve(m,$)}Ge.resolveUrl=y;const _=/^[a-z_][-a-z0-9._]*$/i;function b(g,m){if(typeof g=="boolean")return{};const{schemaId:$,uriResolver:f}=this.opts,v=d(g[$]||m),S={"":v},E=c(f,v,!1),I={},N=new Set;return r(g,{allKeys:!0},(W,Y,Q,oe)=>{if(oe===void 0)return;const pe=E+Y;let F=S[oe];typeof W[$]=="string"&&(F=X.call(this,W[$])),ie.call(this,W.$anchor),ie.call(this,W.$dynamicAnchor),S[Y]=F;function X(re){const ce=this.opts.uriResolver.resolve;if(re=d(F?ce(F,re):re),N.has(re))throw Z(re);N.add(re);let K=this.refs[re];return typeof K=="string"&&(K=this.refs[K]),typeof K=="object"?j(W,K.schema,re):re!==d(pe)&&(re[0]==="#"?(j(W,I[re],re),I[re]=W):this.refs[re]=pe),re}function ie(re){if(typeof re=="string"){if(!_.test(re))throw new Error(`invalid anchor "${re}"`);X.call(this,`#${re}`)}}}),I;function j(W,Y,Q){if(Y!==void 0&&!t(W,Y))throw Z(Q)}function Z(W){return new Error(`reference "${W}" resolves to more than one schema`)}}return Ge.getSchemaRefs=b,Ge}var hu;function Oi(){if(hu)return bt;hu=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.getData=bt.KeywordCxt=bt.validateFunctionCode=void 0;const e=xv(),t=ui(),r=Vh(),i=ui(),n=Nv(),o=Ov(),s=jv(),a=ye(),c=Ct(),h=Ni(),u=be(),d=xi();function y(A){if(E(A)&&(N(A),S(A))){m(A);return}_(A,()=>(0,e.topBoolOrEmptySchema)(A))}bt.validateFunctionCode=y;function _({gen:A,validateName:U,schema:q,schemaEnv:J,opts:ne},ae){ne.code.es5?A.func(U,(0,a._)`${c.default.data}, ${c.default.valCxt}`,J.$async,()=>{A.code((0,a._)`"use strict"; ${f(q,ne)}`),g(A,ne),A.code(ae)}):A.func(U,(0,a._)`${c.default.data}, ${b(ne)}`,J.$async,()=>A.code(f(q,ne)).code(ae))}function b(A){return(0,a._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${A.dynamicRef?(0,a._)`, ${c.default.dynamicAnchors}={}`:a.nil}}={}`}function g(A,U){A.if(c.default.valCxt,()=>{A.var(c.default.instancePath,(0,a._)`${c.default.valCxt}.${c.default.instancePath}`),A.var(c.default.parentData,(0,a._)`${c.default.valCxt}.${c.default.parentData}`),A.var(c.default.parentDataProperty,(0,a._)`${c.default.valCxt}.${c.default.parentDataProperty}`),A.var(c.default.rootData,(0,a._)`${c.default.valCxt}.${c.default.rootData}`),U.dynamicRef&&A.var(c.default.dynamicAnchors,(0,a._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{A.var(c.default.instancePath,(0,a._)`""`),A.var(c.default.parentData,(0,a._)`undefined`),A.var(c.default.parentDataProperty,(0,a._)`undefined`),A.var(c.default.rootData,c.default.data),U.dynamicRef&&A.var(c.default.dynamicAnchors,(0,a._)`{}`)})}function m(A){const{schema:U,opts:q,gen:J}=A;_(A,()=>{q.$comment&&U.$comment&&oe(A),W(A),J.let(c.default.vErrors,null),J.let(c.default.errors,0),q.unevaluated&&$(A),j(A),pe(A)})}function $(A){const{gen:U,validateName:q}=A;A.evaluated=U.const("evaluated",(0,a._)`${q}.evaluated`),U.if((0,a._)`${A.evaluated}.dynamicProps`,()=>U.assign((0,a._)`${A.evaluated}.props`,(0,a._)`undefined`)),U.if((0,a._)`${A.evaluated}.dynamicItems`,()=>U.assign((0,a._)`${A.evaluated}.items`,(0,a._)`undefined`))}function f(A,U){const q=typeof A=="object"&&A[U.schemaId];return q&&(U.code.source||U.code.process)?(0,a._)`/*# sourceURL=${q} */`:a.nil}function v(A,U){if(E(A)&&(N(A),S(A))){I(A,U);return}(0,e.boolOrEmptySchema)(A,U)}function S({schema:A,self:U}){if(typeof A=="boolean")return!A;for(const q in A)if(U.RULES.all[q])return!0;return!1}function E(A){return typeof A.schema!="boolean"}function I(A,U){const{schema:q,gen:J,opts:ne}=A;ne.$comment&&q.$comment&&oe(A),Y(A),Q(A);const ae=J.const("_errs",c.default.errors);j(A,ae),J.var(U,(0,a._)`${ae} === ${c.default.errors}`)}function N(A){(0,u.checkUnknownRules)(A),Z(A)}function j(A,U){if(A.opts.jtd)return X(A,[],!1,U);const q=(0,t.getSchemaTypes)(A.schema),J=(0,t.coerceAndCheckDataType)(A,q);X(A,q,!J,U)}function Z(A){const{schema:U,errSchemaPath:q,opts:J,self:ne}=A;U.$ref&&J.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(U,ne.RULES)&&ne.logger.warn(`$ref: keywords ignored in schema at path "${q}"`)}function W(A){const{schema:U,opts:q}=A;U.default!==void 0&&q.useDefaults&&q.strictSchema&&(0,u.checkStrictMode)(A,"default is ignored in the schema root")}function Y(A){const U=A.schema[A.opts.schemaId];U&&(A.baseId=(0,h.resolveUrl)(A.opts.uriResolver,A.baseId,U))}function Q(A){if(A.schema.$async&&!A.schemaEnv.$async)throw new Error("async schema in sync schema")}function oe({gen:A,schemaEnv:U,schema:q,errSchemaPath:J,opts:ne}){const ae=q.$comment;if(ne.$comment===!0)A.code((0,a._)`${c.default.self}.logger.log(${ae})`);else if(typeof ne.$comment=="function"){const we=(0,a.str)`${J}/$comment`,Le=A.scopeValue("root",{ref:U.root});A.code((0,a._)`${c.default.self}.opts.$comment(${ae}, ${we}, ${Le}.schema)`)}}function pe(A){const{gen:U,schemaEnv:q,validateName:J,ValidationError:ne,opts:ae}=A;q.$async?U.if((0,a._)`${c.default.errors} === 0`,()=>U.return(c.default.data),()=>U.throw((0,a._)`new ${ne}(${c.default.vErrors})`)):(U.assign((0,a._)`${J}.errors`,c.default.vErrors),ae.unevaluated&&F(A),U.return((0,a._)`${c.default.errors} === 0`))}function F({gen:A,evaluated:U,props:q,items:J}){q instanceof a.Name&&A.assign((0,a._)`${U}.props`,q),J instanceof a.Name&&A.assign((0,a._)`${U}.items`,J)}function X(A,U,q,J){const{gen:ne,schema:ae,data:we,allErrors:Le,opts:Ke,self:Ze}=A,{RULES:Re}=Ze;if(ae.$ref&&(Ke.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(ae,Re))){ne.block(()=>ee(A,"$ref",Re.all.$ref.definition));return}Ke.jtd||re(A,U),ne.block(()=>{for(const Je of Re.rules)Nt(Je);Nt(Re.post)});function Nt(Je){(0,r.shouldUseGroup)(ae,Je)&&(Je.type?(ne.if((0,i.checkDataType)(Je.type,we,Ke.strictNumbers)),ie(A,Je),U.length===1&&U[0]===Je.type&&q&&(ne.else(),(0,i.reportTypeError)(A)),ne.endIf()):ie(A,Je),Le||ne.if((0,a._)`${c.default.errors} === ${J||0}`))}}function ie(A,U){const{gen:q,schema:J,opts:{useDefaults:ne}}=A;ne&&(0,n.assignDefaults)(A,U.type),q.block(()=>{for(const ae of U.rules)(0,r.shouldUseRule)(J,ae)&&ee(A,ae.keyword,ae.definition,U.type)})}function re(A,U){A.schemaEnv.meta||!A.opts.strictTypes||(ce(A,U),A.opts.allowUnionTypes||K(A,U),T(A,A.dataTypes))}function ce(A,U){if(U.length){if(!A.dataTypes.length){A.dataTypes=U;return}U.forEach(q=>{P(A.dataTypes,q)||O(A,`type "${q}" not allowed by context "${A.dataTypes.join(",")}"`)}),w(A,U)}}function K(A,U){U.length>1&&!(U.length===2&&U.includes("null"))&&O(A,"use allowUnionTypes to allow union type keyword")}function T(A,U){const q=A.self.RULES.all;for(const J in q){const ne=q[J];if(typeof ne=="object"&&(0,r.shouldUseRule)(A.schema,ne)){const{type:ae}=ne.definition;ae.length&&!ae.some(we=>L(U,we))&&O(A,`missing type "${ae.join(",")}" for keyword "${J}"`)}}}function L(A,U){return A.includes(U)||U==="number"&&A.includes("integer")}function P(A,U){return A.includes(U)||U==="integer"&&A.includes("number")}function w(A,U){const q=[];for(const J of A.dataTypes)P(U,J)?q.push(J):U.includes("integer")&&J==="number"&&q.push("integer");A.dataTypes=q}function O(A,U){const q=A.schemaEnv.baseId+A.errSchemaPath;U+=` at "${q}" (strictTypes)`,(0,u.checkStrictMode)(A,U,A.opts.strictTypes)}class R{constructor(U,q,J){if((0,o.validateKeywordUsage)(U,q,J),this.gen=U.gen,this.allErrors=U.allErrors,this.keyword=J,this.data=U.data,this.schema=U.schema[J],this.$data=q.$data&&U.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(U,this.schema,J,this.$data),this.schemaType=q.schemaType,this.parentSchema=U.schema,this.params={},this.it=U,this.def=q,this.$data)this.schemaCode=U.gen.const("vSchema",se(this.$data,U));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,q.schemaType,q.allowUndefined))throw new Error(`${J} value must be ${JSON.stringify(q.schemaType)}`);("code"in q?q.trackErrors:q.errors!==!1)&&(this.errsCount=U.gen.const("_errs",c.default.errors))}result(U,q,J){this.failResult((0,a.not)(U),q,J)}failResult(U,q,J){this.gen.if(U),J?J():this.error(),q?(this.gen.else(),q(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(U,q){this.failResult((0,a.not)(U),void 0,q)}fail(U){if(U===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(U),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(U){if(!this.$data)return this.fail(U);const{schemaCode:q}=this;this.fail((0,a._)`${q} !== undefined && (${(0,a.or)(this.invalid$data(),U)})`)}error(U,q,J){if(q){this.setParams(q),this._error(U,J),this.setParams({});return}this._error(U,J)}_error(U,q){(U?d.reportExtraError:d.reportError)(this,this.def.error,q)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(U){this.allErrors||this.gen.if(U)}setParams(U,q){q?Object.assign(this.params,U):this.params=U}block$data(U,q,J=a.nil){this.gen.block(()=>{this.check$data(U,J),q()})}check$data(U=a.nil,q=a.nil){if(!this.$data)return;const{gen:J,schemaCode:ne,schemaType:ae,def:we}=this;J.if((0,a.or)((0,a._)`${ne} === undefined`,q)),U!==a.nil&&J.assign(U,!0),(ae.length||we.validateSchema)&&(J.elseIf(this.invalid$data()),this.$dataError(),U!==a.nil&&J.assign(U,!1)),J.else()}invalid$data(){const{gen:U,schemaCode:q,schemaType:J,def:ne,it:ae}=this;return(0,a.or)(we(),Le());function we(){if(J.length){if(!(q instanceof a.Name))throw new Error("ajv implementation error");const Ke=Array.isArray(J)?J:[J];return(0,a._)`${(0,i.checkDataTypes)(Ke,q,ae.opts.strictNumbers,i.DataType.Wrong)}`}return a.nil}function Le(){if(ne.validateSchema){const Ke=U.scopeValue("validate$data",{ref:ne.validateSchema});return(0,a._)`!${Ke}(${q})`}return a.nil}}subschema(U,q){const J=(0,s.getSubschema)(this.it,U);(0,s.extendSubschemaData)(J,this.it,U),(0,s.extendSubschemaMode)(J,U);const ne={...this.it,...J,items:void 0,props:void 0};return v(ne,q),ne}mergeEvaluated(U,q){const{it:J,gen:ne}=this;J.opts.unevaluated&&(J.props!==!0&&U.props!==void 0&&(J.props=u.mergeEvaluated.props(ne,U.props,J.props,q)),J.items!==!0&&U.items!==void 0&&(J.items=u.mergeEvaluated.items(ne,U.items,J.items,q)))}mergeValidEvaluated(U,q){const{it:J,gen:ne}=this;if(J.opts.unevaluated&&(J.props!==!0||J.items!==!0))return ne.if(q,()=>this.mergeEvaluated(U,a.Name)),!0}}bt.KeywordCxt=R;function ee(A,U,q,J){const ne=new R(A,q,U);"code"in q?q.code(ne,J):ne.$data&&q.validate?(0,o.funcKeywordCode)(ne,q):"macro"in q?(0,o.macroKeywordCode)(ne,q):(q.compile||q.validate)&&(0,o.funcKeywordCode)(ne,q)}const te=/^\/(?:[^~]|~0|~1)*$/,me=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function se(A,{dataLevel:U,dataNames:q,dataPathArr:J}){let ne,ae;if(A==="")return c.default.rootData;if(A[0]==="/"){if(!te.test(A))throw new Error(`Invalid JSON-pointer: ${A}`);ne=A,ae=c.default.rootData}else{const Ze=me.exec(A);if(!Ze)throw new Error(`Invalid JSON-pointer: ${A}`);const Re=+Ze[1];if(ne=Ze[2],ne==="#"){if(Re>=U)throw new Error(Ke("property/index",Re));return J[U-Re]}if(Re>U)throw new Error(Ke("data",Re));if(ae=q[U-Re],!ne)return ae}let we=ae;const Le=ne.split("/");for(const Ze of Le)Ze&&(ae=(0,a._)`${ae}${(0,a.getProperty)((0,u.unescapeJsonPointer)(Ze))}`,we=(0,a._)`${we} && ${ae}`);return we;function Ke(Ze,Re){return`Cannot access ${Ze} ${Re} levels up, current level is ${U}`}}return bt.getData=se,bt}var or={},pu;function ua(){if(pu)return or;pu=1,Object.defineProperty(or,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return or.default=e,or}var sr={},mu;function ji(){if(mu)return sr;mu=1,Object.defineProperty(sr,"__esModule",{value:!0});const e=Ni();class t extends Error{constructor(i,n,o,s){super(s||`can't resolve reference ${o} from id ${n}`),this.missingRef=(0,e.resolveUrl)(i,n,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(i,this.missingRef))}}return sr.default=t,sr}var et={},gu;function ca(){if(gu)return et;gu=1,Object.defineProperty(et,"__esModule",{value:!0}),et.resolveSchema=et.getCompilingSchema=et.resolveRef=et.compileSchema=et.SchemaEnv=void 0;const e=ye(),t=ua(),r=Ct(),i=Ni(),n=be(),o=Oi();class s{constructor($){var f;this.refs={},this.dynamicAnchors={};let v;typeof $.schema=="object"&&(v=$.schema),this.schema=$.schema,this.schemaId=$.schemaId,this.root=$.root||this,this.baseId=(f=$.baseId)!==null&&f!==void 0?f:(0,i.normalizeId)(v?.[$.schemaId||"$id"]),this.schemaPath=$.schemaPath,this.localRefs=$.localRefs,this.meta=$.meta,this.$async=v?.$async,this.refs={}}}et.SchemaEnv=s;function a(m){const $=u.call(this,m);if($)return $;const f=(0,i.getFullPath)(this.opts.uriResolver,m.root.baseId),{es5:v,lines:S}=this.opts.code,{ownProperties:E}=this.opts,I=new e.CodeGen(this.scope,{es5:v,lines:S,ownProperties:E});let N;m.$async&&(N=I.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const j=I.scopeName("validate");m.validateName=j;const Z={gen:I,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:I.scopeValue("schema",this.opts.code.source===!0?{ref:m.schema,code:(0,e.stringify)(m.schema)}:{ref:m.schema}),validateName:j,ValidationError:N,schema:m.schema,schemaEnv:m,rootId:f,baseId:m.baseId||f,schemaPath:e.nil,errSchemaPath:m.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let W;try{this._compilations.add(m),(0,o.validateFunctionCode)(Z),I.optimize(this.opts.code.optimize);const Y=I.toString();W=`${I.scopeRefs(r.default.scope)}return ${Y}`,this.opts.code.process&&(W=this.opts.code.process(W,m));const oe=new Function(`${r.default.self}`,`${r.default.scope}`,W)(this,this.scope.get());if(this.scope.value(j,{ref:oe}),oe.errors=null,oe.schema=m.schema,oe.schemaEnv=m,m.$async&&(oe.$async=!0),this.opts.code.source===!0&&(oe.source={validateName:j,validateCode:Y,scopeValues:I._values}),this.opts.unevaluated){const{props:pe,items:F}=Z;oe.evaluated={props:pe instanceof e.Name?void 0:pe,items:F instanceof e.Name?void 0:F,dynamicProps:pe instanceof e.Name,dynamicItems:F instanceof e.Name},oe.source&&(oe.source.evaluated=(0,e.stringify)(oe.evaluated))}return m.validate=oe,m}catch(Y){throw delete m.validate,delete m.validateName,W&&this.logger.error("Error compiling schema, function code:",W),Y}finally{this._compilations.delete(m)}}et.compileSchema=a;function c(m,$,f){var v;f=(0,i.resolveUrl)(this.opts.uriResolver,$,f);const S=m.refs[f];if(S)return S;let E=y.call(this,m,f);if(E===void 0){const I=(v=m.localRefs)===null||v===void 0?void 0:v[f],{schemaId:N}=this.opts;I&&(E=new s({schema:I,schemaId:N,root:m,baseId:$}))}if(E!==void 0)return m.refs[f]=h.call(this,E)}et.resolveRef=c;function h(m){return(0,i.inlineRef)(m.schema,this.opts.inlineRefs)?m.schema:m.validate?m:a.call(this,m)}function u(m){for(const $ of this._compilations)if(d($,m))return $}et.getCompilingSchema=u;function d(m,$){return m.schema===$.schema&&m.root===$.root&&m.baseId===$.baseId}function y(m,$){let f;for(;typeof(f=this.refs[$])=="string";)$=f;return f||this.schemas[$]||_.call(this,m,$)}function _(m,$){const f=this.opts.uriResolver.parse($),v=(0,i._getFullPath)(this.opts.uriResolver,f);let S=(0,i.getFullPath)(this.opts.uriResolver,m.baseId,void 0);if(Object.keys(m.schema).length>0&&v===S)return g.call(this,f,m);const E=(0,i.normalizeId)(v),I=this.refs[E]||this.schemas[E];if(typeof I=="string"){const N=_.call(this,m,I);return typeof N?.schema!="object"?void 0:g.call(this,f,N)}if(typeof I?.schema=="object"){if(I.validate||a.call(this,I),E===(0,i.normalizeId)($)){const{schema:N}=I,{schemaId:j}=this.opts,Z=N[j];return Z&&(S=(0,i.resolveUrl)(this.opts.uriResolver,S,Z)),new s({schema:N,schemaId:j,root:m,baseId:S})}return g.call(this,f,I)}}et.resolveSchema=_;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(m,{baseId:$,schema:f,root:v}){var S;if(((S=m.fragment)===null||S===void 0?void 0:S[0])!=="/")return;for(const N of m.fragment.slice(1).split("/")){if(typeof f=="boolean")return;const j=f[(0,n.unescapeFragment)(N)];if(j===void 0)return;f=j;const Z=typeof f=="object"&&f[this.opts.schemaId];!b.has(N)&&Z&&($=(0,i.resolveUrl)(this.opts.uriResolver,$,Z))}let E;if(typeof f!="boolean"&&f.$ref&&!(0,n.schemaHasRulesButRef)(f,this.RULES)){const N=(0,i.resolveUrl)(this.opts.uriResolver,$,f.$ref);E=_.call(this,v,N)}const{schemaId:I}=this.opts;if(E=E||new s({schema:f,schemaId:I,root:v,baseId:$}),E.schema!==E.root.schema)return E}return et}const zv="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Tv="Meta-schema for $data reference (JSON AnySchema extension proposal)",Pv="object",Dv=["$data"],Uv={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Cv=!1;var Bv={$id:zv,description:Tv,type:Pv,required:Dv,properties:Uv,additionalProperties:Cv},ar={},xn={exports:{}},Hi,yu;function Rv(){return yu||(yu=1,Hi={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}}),Hi}var Xi,vu;function Fv(){if(vu)return Xi;vu=1;const{HEX:e}=Rv(),t=/^(?:(?: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;function r(g){if(a(g,".")<3)return{host:g,isIPV4:!1};const m=g.match(t)||[],[$]=m;return $?{host:s($,"."),isIPV4:!0}:{host:g,isIPV4:!1}}function i(g,m=!1){let $="",f=!0;for(const v of g){if(e[v]===void 0)return;v!=="0"&&f===!0&&(f=!1),f||($+=v)}return m&&$.length===0&&($="0"),$}function n(g){let m=0;const $={error:!1,address:"",zone:""},f=[],v=[];let S=!1,E=!1,I=!1;function N(){if(v.length){if(S===!1){const j=i(v);if(j!==void 0)f.push(j);else return $.error=!0,!1}v.length=0}return!0}for(let j=0;j<g.length;j++){const Z=g[j];if(!(Z==="["||Z==="]"))if(Z===":"){if(E===!0&&(I=!0),!N())break;if(m++,f.push(":"),m>7){$.error=!0;break}j-1>=0&&g[j-1]===":"&&(E=!0);continue}else if(Z==="%"){if(!N())break;S=!0}else{v.push(Z);continue}}return v.length&&(S?$.zone=v.join(""):I?f.push(v.join("")):f.push(i(v))),$.address=f.join(""),$}function o(g){if(a(g,":")<2)return{host:g,isIPV6:!1};const m=n(g);if(m.error)return{host:g,isIPV6:!1};{let $=m.address,f=m.address;return m.zone&&($+="%"+m.zone,f+="%25"+m.zone),{host:$,escapedHost:f,isIPV6:!0}}}function s(g,m){let $="",f=!0;const v=g.length;for(let S=0;S<v;S++){const E=g[S];E==="0"&&f?(S+1<=v&&g[S+1]===m||S+1===v)&&($+=E,f=!1):(E===m?f=!0:f=!1,$+=E)}return $}function a(g,m){let $=0;for(let f=0;f<g.length;f++)g[f]===m&&$++;return $}const c=/^\.\.?\//u,h=/^\/\.(?:\/|$)/u,u=/^\/\.\.(?:\/|$)/u,d=/^\/?(?:.|\n)*?(?=\/|$)/u;function y(g){const m=[];for(;g.length;)if(g.match(c))g=g.replace(c,"");else if(g.match(h))g=g.replace(h,"/");else if(g.match(u))g=g.replace(u,"/"),m.pop();else if(g==="."||g==="..")g="";else{const $=g.match(d);if($){const f=$[0];g=g.slice(f.length),m.push(f)}else throw new Error("Unexpected dot segment condition")}return m.join("")}function _(g,m){const $=m!==!0?escape:unescape;return g.scheme!==void 0&&(g.scheme=$(g.scheme)),g.userinfo!==void 0&&(g.userinfo=$(g.userinfo)),g.host!==void 0&&(g.host=$(g.host)),g.path!==void 0&&(g.path=$(g.path)),g.query!==void 0&&(g.query=$(g.query)),g.fragment!==void 0&&(g.fragment=$(g.fragment)),g}function b(g){const m=[];if(g.userinfo!==void 0&&(m.push(g.userinfo),m.push("@")),g.host!==void 0){let $=unescape(g.host);const f=r($);if(f.isIPV4)$=f.host;else{const v=o(f.host);v.isIPV6===!0?$=`[${v.escapedHost}]`:$=g.host}m.push($)}return(typeof g.port=="number"||typeof g.port=="string")&&(m.push(":"),m.push(String(g.port))),m.length?m.join(""):void 0}return Xi={recomposeAuthority:b,normalizeComponentEncoding:_,removeDotSegments:y,normalizeIPv4:r,normalizeIPv6:o,stringArrayToHexStripped:i},Xi}var Yi,$u;function Lv(){if($u)return Yi;$u=1;const e=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function r(f){return typeof f.secure=="boolean"?f.secure:String(f.scheme).toLowerCase()==="wss"}function i(f){return f.host||(f.error=f.error||"HTTP URIs must have a host."),f}function n(f){const v=String(f.scheme).toLowerCase()==="https";return(f.port===(v?443:80)||f.port==="")&&(f.port=void 0),f.path||(f.path="/"),f}function o(f){return f.secure=r(f),f.resourceName=(f.path||"/")+(f.query?"?"+f.query:""),f.path=void 0,f.query=void 0,f}function s(f){if((f.port===(r(f)?443:80)||f.port==="")&&(f.port=void 0),typeof f.secure=="boolean"&&(f.scheme=f.secure?"wss":"ws",f.secure=void 0),f.resourceName){const[v,S]=f.resourceName.split("?");f.path=v&&v!=="/"?v:void 0,f.query=S,f.resourceName=void 0}return f.fragment=void 0,f}function a(f,v){if(!f.path)return f.error="URN can not be parsed",f;const S=f.path.match(t);if(S){const E=v.scheme||f.scheme||"urn";f.nid=S[1].toLowerCase(),f.nss=S[2];const I=`${E}:${v.nid||f.nid}`,N=$[I];f.path=void 0,N&&(f=N.parse(f,v))}else f.error=f.error||"URN can not be parsed.";return f}function c(f,v){const S=v.scheme||f.scheme||"urn",E=f.nid.toLowerCase(),I=`${S}:${v.nid||E}`,N=$[I];N&&(f=N.serialize(f,v));const j=f,Z=f.nss;return j.path=`${E||v.nid}:${Z}`,v.skipEscape=!0,j}function h(f,v){const S=f;return S.uuid=S.nss,S.nss=void 0,!v.tolerant&&(!S.uuid||!e.test(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function u(f){const v=f;return v.nss=(f.uuid||"").toLowerCase(),v}const d={scheme:"http",domainHost:!0,parse:i,serialize:n},y={scheme:"https",domainHost:d.domainHost,parse:i,serialize:n},_={scheme:"ws",domainHost:!0,parse:o,serialize:s},b={scheme:"wss",domainHost:_.domainHost,parse:_.parse,serialize:_.serialize},$={http:d,https:y,ws:_,wss:b,urn:{scheme:"urn",parse:a,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:u,skipNormalize:!0}};return Yi=$,Yi}var bu;function Zv(){if(bu)return xn.exports;bu=1;const{normalizeIPv6:e,normalizeIPv4:t,removeDotSegments:r,recomposeAuthority:i,normalizeComponentEncoding:n}=Fv(),o=Lv();function s(m,$){return typeof m=="string"?m=u(b(m,$),$):typeof m=="object"&&(m=b(u(m,$),$)),m}function a(m,$,f){const v=Object.assign({scheme:"null"},f),S=c(b(m,v),b($,v),v,!0);return u(S,{...v,skipEscape:!0})}function c(m,$,f,v){const S={};return v||(m=b(u(m,f),f),$=b(u($,f),f)),f=f||{},!f.tolerant&&$.scheme?(S.scheme=$.scheme,S.userinfo=$.userinfo,S.host=$.host,S.port=$.port,S.path=r($.path||""),S.query=$.query):($.userinfo!==void 0||$.host!==void 0||$.port!==void 0?(S.userinfo=$.userinfo,S.host=$.host,S.port=$.port,S.path=r($.path||""),S.query=$.query):($.path?($.path.charAt(0)==="/"?S.path=r($.path):((m.userinfo!==void 0||m.host!==void 0||m.port!==void 0)&&!m.path?S.path="/"+$.path:m.path?S.path=m.path.slice(0,m.path.lastIndexOf("/")+1)+$.path:S.path=$.path,S.path=r(S.path)),S.query=$.query):(S.path=m.path,$.query!==void 0?S.query=$.query:S.query=m.query),S.userinfo=m.userinfo,S.host=m.host,S.port=m.port),S.scheme=m.scheme),S.fragment=$.fragment,S}function h(m,$,f){return typeof m=="string"?(m=unescape(m),m=u(n(b(m,f),!0),{...f,skipEscape:!0})):typeof m=="object"&&(m=u(n(m,!0),{...f,skipEscape:!0})),typeof $=="string"?($=unescape($),$=u(n(b($,f),!0),{...f,skipEscape:!0})):typeof $=="object"&&($=u(n($,!0),{...f,skipEscape:!0})),m.toLowerCase()===$.toLowerCase()}function u(m,$){const f={host:m.host,scheme:m.scheme,userinfo:m.userinfo,port:m.port,path:m.path,query:m.query,nid:m.nid,nss:m.nss,uuid:m.uuid,fragment:m.fragment,reference:m.reference,resourceName:m.resourceName,secure:m.secure,error:""},v=Object.assign({},$),S=[],E=o[(v.scheme||f.scheme||"").toLowerCase()];E&&E.serialize&&E.serialize(f,v),f.path!==void 0&&(v.skipEscape?f.path=unescape(f.path):(f.path=escape(f.path),f.scheme!==void 0&&(f.path=f.path.split("%3A").join(":")))),v.reference!=="suffix"&&f.scheme&&S.push(f.scheme,":");const I=i(f);if(I!==void 0&&(v.reference!=="suffix"&&S.push("//"),S.push(I),f.path&&f.path.charAt(0)!=="/"&&S.push("/")),f.path!==void 0){let N=f.path;!v.absolutePath&&(!E||!E.absolutePath)&&(N=r(N)),I===void 0&&(N=N.replace(/^\/\//u,"/%2F")),S.push(N)}return f.query!==void 0&&S.push("?",f.query),f.fragment!==void 0&&S.push("#",f.fragment),S.join("")}const d=Array.from({length:127},(m,$)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode($)));function y(m){let $=0;for(let f=0,v=m.length;f<v;++f)if($=m.charCodeAt(f),$>126||d[$])return!0;return!1}const _=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function b(m,$){const f=Object.assign({},$),v={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},S=m.indexOf("%")!==-1;let E=!1;f.reference==="suffix"&&(m=(f.scheme?f.scheme+":":"")+"//"+m);const I=m.match(_);if(I){if(v.scheme=I[1],v.userinfo=I[3],v.host=I[4],v.port=parseInt(I[5],10),v.path=I[6]||"",v.query=I[7],v.fragment=I[8],isNaN(v.port)&&(v.port=I[5]),v.host){const j=t(v.host);if(j.isIPV4===!1){const Z=e(j.host);v.host=Z.host.toLowerCase(),E=Z.isIPV6}else v.host=j.host,E=!0}v.scheme===void 0&&v.userinfo===void 0&&v.host===void 0&&v.port===void 0&&v.query===void 0&&!v.path?v.reference="same-document":v.scheme===void 0?v.reference="relative":v.fragment===void 0?v.reference="absolute":v.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==v.reference&&(v.error=v.error||"URI is not a "+f.reference+" reference.");const N=o[(f.scheme||v.scheme||"").toLowerCase()];if(!f.unicodeSupport&&(!N||!N.unicodeSupport)&&v.host&&(f.domainHost||N&&N.domainHost)&&E===!1&&y(v.host))try{v.host=URL.domainToASCII(v.host.toLowerCase())}catch(j){v.error=v.error||"Host's domain name can not be converted to ASCII: "+j}(!N||N&&!N.skipNormalize)&&(S&&v.scheme!==void 0&&(v.scheme=unescape(v.scheme)),S&&v.host!==void 0&&(v.host=unescape(v.host)),v.path&&(v.path=escape(unescape(v.path))),v.fragment&&(v.fragment=encodeURI(decodeURIComponent(v.fragment)))),N&&N.parse&&N.parse(v,f)}else v.error=v.error||"URI can not be parsed.";return v}const g={SCHEMES:o,normalize:s,resolve:a,resolveComponents:c,equal:h,serialize:u,parse:b};return xn.exports=g,xn.exports.default=g,xn.exports.fastUri=g,xn.exports}var _u;function Mv(){if(_u)return ar;_u=1,Object.defineProperty(ar,"__esModule",{value:!0});const e=Zv();return e.code='require("ajv/dist/runtime/uri").default',ar.default=e,ar}var wu;function qv(){return wu||(wu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Oi();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ye();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const i=ua(),n=ji(),o=qh(),s=ca(),a=ye(),c=Ni(),h=ui(),u=be(),d=Bv,y=Mv(),_=(K,T)=>new RegExp(K,T);_.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={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."},$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},f=200;function v(K){var T,L,P,w,O,R,ee,te,me,se,A,U,q,J,ne,ae,we,Le,Ke,Ze,Re,Nt,Je,Ot,Ye;const $t=K.strict,In=(T=K.code)===null||T===void 0?void 0:T.optimize,at=In===!0||In===void 0?1:In||0,er=(P=(L=K.code)===null||L===void 0?void 0:L.regExp)!==null&&P!==void 0?P:_,k=(w=K.uriResolver)!==null&&w!==void 0?w:y.default;return{strictSchema:(R=(O=K.strictSchema)!==null&&O!==void 0?O:$t)!==null&&R!==void 0?R:!0,strictNumbers:(te=(ee=K.strictNumbers)!==null&&ee!==void 0?ee:$t)!==null&&te!==void 0?te:!0,strictTypes:(se=(me=K.strictTypes)!==null&&me!==void 0?me:$t)!==null&&se!==void 0?se:"log",strictTuples:(U=(A=K.strictTuples)!==null&&A!==void 0?A:$t)!==null&&U!==void 0?U:"log",strictRequired:(J=(q=K.strictRequired)!==null&&q!==void 0?q:$t)!==null&&J!==void 0?J:!1,code:K.code?{...K.code,optimize:at,regExp:er}:{optimize:at,regExp:er},loopRequired:(ne=K.loopRequired)!==null&&ne!==void 0?ne:f,loopEnum:(ae=K.loopEnum)!==null&&ae!==void 0?ae:f,meta:(we=K.meta)!==null&&we!==void 0?we:!0,messages:(Le=K.messages)!==null&&Le!==void 0?Le:!0,inlineRefs:(Ke=K.inlineRefs)!==null&&Ke!==void 0?Ke:!0,schemaId:(Ze=K.schemaId)!==null&&Ze!==void 0?Ze:"$id",addUsedSchema:(Re=K.addUsedSchema)!==null&&Re!==void 0?Re:!0,validateSchema:(Nt=K.validateSchema)!==null&&Nt!==void 0?Nt:!0,validateFormats:(Je=K.validateFormats)!==null&&Je!==void 0?Je:!0,unicodeRegExp:(Ot=K.unicodeRegExp)!==null&&Ot!==void 0?Ot:!0,int32range:(Ye=K.int32range)!==null&&Ye!==void 0?Ye:!0,uriResolver:k}}class S{constructor(T={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,T=this.opts={...T,...v(T)};const{es5:L,lines:P}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:g,es5:L,lines:P}),this.logger=Q(T.logger);const w=T.validateFormats;T.validateFormats=!1,this.RULES=(0,o.getRules)(),E.call(this,m,T,"NOT SUPPORTED"),E.call(this,$,T,"DEPRECATED","warn"),this._metaOpts=W.call(this),T.formats&&j.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),T.keywords&&Z.call(this,T.keywords),typeof T.meta=="object"&&this.addMetaSchema(T.meta),N.call(this),T.validateFormats=w}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:T,meta:L,schemaId:P}=this.opts;let w=d;P==="id"&&(w={...d},w.id=w.$id,delete w.$id),L&&T&&this.addMetaSchema(w,w[P],!1)}defaultMeta(){const{meta:T,schemaId:L}=this.opts;return this.opts.defaultMeta=typeof T=="object"?T[L]||T:void 0}validate(T,L){let P;if(typeof T=="string"){if(P=this.getSchema(T),!P)throw new Error(`no schema with key or ref "${T}"`)}else P=this.compile(T);const w=P(L);return"$async"in P||(this.errors=P.errors),w}compile(T,L){const P=this._addSchema(T,L);return P.validate||this._compileSchemaEnv(P)}compileAsync(T,L){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:P}=this.opts;return w.call(this,T,L);async function w(se,A){await O.call(this,se.$schema);const U=this._addSchema(se,A);return U.validate||R.call(this,U)}async function O(se){se&&!this.getSchema(se)&&await w.call(this,{$ref:se},!0)}async function R(se){try{return this._compileSchemaEnv(se)}catch(A){if(!(A instanceof n.default))throw A;return ee.call(this,A),await te.call(this,A.missingSchema),R.call(this,se)}}function ee({missingSchema:se,missingRef:A}){if(this.refs[se])throw new Error(`AnySchema ${se} is loaded but ${A} cannot be resolved`)}async function te(se){const A=await me.call(this,se);this.refs[se]||await O.call(this,A.$schema),this.refs[se]||this.addSchema(A,se,L)}async function me(se){const A=this._loading[se];if(A)return A;try{return await(this._loading[se]=P(se))}finally{delete this._loading[se]}}}addSchema(T,L,P,w=this.opts.validateSchema){if(Array.isArray(T)){for(const R of T)this.addSchema(R,void 0,P,w);return this}let O;if(typeof T=="object"){const{schemaId:R}=this.opts;if(O=T[R],O!==void 0&&typeof O!="string")throw new Error(`schema ${R} must be string`)}return L=(0,c.normalizeId)(L||O),this._checkUnique(L),this.schemas[L]=this._addSchema(T,P,L,w,!0),this}addMetaSchema(T,L,P=this.opts.validateSchema){return this.addSchema(T,L,!0,P),this}validateSchema(T,L){if(typeof T=="boolean")return!0;let P;if(P=T.$schema,P!==void 0&&typeof P!="string")throw new Error("$schema must be a string");if(P=P||this.opts.defaultMeta||this.defaultMeta(),!P)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const w=this.validate(P,T);if(!w&&L){const O="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(O);else throw new Error(O)}return w}getSchema(T){let L;for(;typeof(L=I.call(this,T))=="string";)T=L;if(L===void 0){const{schemaId:P}=this.opts,w=new s.SchemaEnv({schema:{},schemaId:P});if(L=s.resolveSchema.call(this,w,T),!L)return;this.refs[T]=L}return L.validate||this._compileSchemaEnv(L)}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":{const L=I.call(this,T);return typeof L=="object"&&this._cache.delete(L.schema),delete this.schemas[T],delete this.refs[T],this}case"object":{const L=T;this._cache.delete(L);let P=T[this.opts.schemaId];return P&&(P=(0,c.normalizeId)(P),delete this.schemas[P],delete this.refs[P]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(T){for(const L of T)this.addKeyword(L);return this}addKeyword(T,L){let P;if(typeof T=="string")P=T,typeof L=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),L.keyword=P);else if(typeof T=="object"&&L===void 0){if(L=T,P=L.keyword,Array.isArray(P)&&!P.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(pe.call(this,P,L),!L)return(0,u.eachItem)(P,O=>F.call(this,O)),this;ie.call(this,L);const w={...L,type:(0,h.getJSONTypes)(L.type),schemaType:(0,h.getJSONTypes)(L.schemaType)};return(0,u.eachItem)(P,w.type.length===0?O=>F.call(this,O,w):O=>w.type.forEach(R=>F.call(this,O,w,R))),this}getKeyword(T){const L=this.RULES.all[T];return typeof L=="object"?L.definition:!!L}removeKeyword(T){const{RULES:L}=this;delete L.keywords[T],delete L.all[T];for(const P of L.rules){const w=P.rules.findIndex(O=>O.keyword===T);w>=0&&P.rules.splice(w,1)}return this}addFormat(T,L){return typeof L=="string"&&(L=new RegExp(L)),this.formats[T]=L,this}errorsText(T=this.errors,{separator:L=", ",dataVar:P="data"}={}){return!T||T.length===0?"No errors":T.map(w=>`${P}${w.instancePath} ${w.message}`).reduce((w,O)=>w+L+O)}$dataMetaSchema(T,L){const P=this.RULES.all;T=JSON.parse(JSON.stringify(T));for(const w of L){const O=w.split("/").slice(1);let R=T;for(const ee of O)R=R[ee];for(const ee in P){const te=P[ee];if(typeof te!="object")continue;const{$data:me}=te.definition,se=R[ee];me&&se&&(R[ee]=ce(se))}}return T}_removeAllSchemas(T,L){for(const P in T){const w=T[P];(!L||L.test(P))&&(typeof w=="string"?delete T[P]:w&&!w.meta&&(this._cache.delete(w.schema),delete T[P]))}}_addSchema(T,L,P,w=this.opts.validateSchema,O=this.opts.addUsedSchema){let R;const{schemaId:ee}=this.opts;if(typeof T=="object")R=T[ee];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 te=this._cache.get(T);if(te!==void 0)return te;P=(0,c.normalizeId)(R||P);const me=c.getSchemaRefs.call(this,T,P);return te=new s.SchemaEnv({schema:T,schemaId:ee,meta:L,baseId:P,localRefs:me}),this._cache.set(te.schema,te),O&&!P.startsWith("#")&&(P&&this._checkUnique(P),this.refs[P]=te),w&&this.validateSchema(T,!0),te}_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):s.compileSchema.call(this,T),!T.validate)throw new Error("ajv implementation error");return T.validate}_compileMetaSchema(T){const L=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,T)}finally{this.opts=L}}}S.ValidationError=i.default,S.MissingRefError=n.default,e.default=S;function E(K,T,L,P="error"){for(const w in K){const O=w;O in T&&this.logger[P](`${L}: option ${w}. ${K[O]}`)}}function I(K){return K=(0,c.normalizeId)(K),this.schemas[K]||this.refs[K]}function N(){const K=this.opts.schemas;if(K)if(Array.isArray(K))this.addSchema(K);else for(const T in K)this.addSchema(K[T],T)}function j(){for(const K in this.opts.formats){const T=this.opts.formats[K];T&&this.addFormat(K,T)}}function Z(K){if(Array.isArray(K)){this.addVocabulary(K);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const T in K){const L=K[T];L.keyword||(L.keyword=T),this.addKeyword(L)}}function W(){const K={...this.opts};for(const T of b)delete K[T];return K}const Y={log(){},warn(){},error(){}};function Q(K){if(K===!1)return Y;if(K===void 0)return console;if(K.log&&K.warn&&K.error)return K;throw new Error("logger must implement log, warn and error methods")}const oe=/^[a-z_$][a-z0-9_$:-]*$/i;function pe(K,T){const{RULES:L}=this;if((0,u.eachItem)(K,P=>{if(L.keywords[P])throw new Error(`Keyword ${P} is already defined`);if(!oe.test(P))throw new Error(`Keyword ${P} has invalid name`)}),!!T&&T.$data&&!("code"in T||"validate"in T))throw new Error('$data keyword must have "code" or "validate" function')}function F(K,T,L){var P;const w=T?.post;if(L&&w)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:O}=this;let R=w?O.post:O.rules.find(({type:te})=>te===L);if(R||(R={type:L,rules:[]},O.rules.push(R)),O.keywords[K]=!0,!T)return;const ee={keyword:K,definition:{...T,type:(0,h.getJSONTypes)(T.type),schemaType:(0,h.getJSONTypes)(T.schemaType)}};T.before?X.call(this,R,ee,T.before):R.rules.push(ee),O.all[K]=ee,(P=T.implements)===null||P===void 0||P.forEach(te=>this.addKeyword(te))}function X(K,T,L){const P=K.rules.findIndex(w=>w.keyword===L);P>=0?K.rules.splice(P,0,T):(K.rules.push(T),this.logger.warn(`rule ${L} is not defined`))}function ie(K){let{metaSchema:T}=K;T!==void 0&&(K.$data&&this.opts.$data&&(T=ce(T)),K.validateSchema=this.compile(T,!0))}const re={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ce(K){return{anyOf:[K,re]}}}(Mi)),Mi}var ur={},cr={},lr={},ku;function Vv(){if(ku)return lr;ku=1,Object.defineProperty(lr,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return lr.default=e,lr}var jt={},Su;function Kv(){if(Su)return jt;Su=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.callRef=jt.getValidate=void 0;const e=ji(),t=ht(),r=ye(),i=Ct(),n=ca(),o=be(),s={keyword:"$ref",schemaType:"string",code(h){const{gen:u,schema:d,it:y}=h,{baseId:_,schemaEnv:b,validateName:g,opts:m,self:$}=y,{root:f}=b;if((d==="#"||d==="#/")&&_===f.baseId)return S();const v=n.resolveRef.call($,f,_,d);if(v===void 0)throw new e.default(y.opts.uriResolver,_,d);if(v instanceof n.SchemaEnv)return E(v);return I(v);function S(){if(b===f)return c(h,g,b,b.$async);const N=u.scopeValue("root",{ref:f});return c(h,(0,r._)`${N}.validate`,f,f.$async)}function E(N){const j=a(h,N);c(h,j,N,N.$async)}function I(N){const j=u.scopeValue("schema",m.code.source===!0?{ref:N,code:(0,r.stringify)(N)}:{ref:N}),Z=u.name("valid"),W=h.subschema({schema:N,dataTypes:[],schemaPath:r.nil,topSchemaRef:j,errSchemaPath:d},Z);h.mergeEvaluated(W),h.ok(Z)}}};function a(h,u){const{gen:d}=h;return u.validate?d.scopeValue("validate",{ref:u.validate}):(0,r._)`${d.scopeValue("wrapper",{ref:u})}.validate`}jt.getValidate=a;function c(h,u,d,y){const{gen:_,it:b}=h,{allErrors:g,schemaEnv:m,opts:$}=b,f=$.passContext?i.default.this:r.nil;y?v():S();function v(){if(!m.$async)throw new Error("async schema referenced by sync schema");const N=_.let("valid");_.try(()=>{_.code((0,r._)`await ${(0,t.callValidateCode)(h,u,f)}`),I(u),g||_.assign(N,!0)},j=>{_.if((0,r._)`!(${j} instanceof ${b.ValidationError})`,()=>_.throw(j)),E(j),g||_.assign(N,!1)}),h.ok(N)}function S(){h.result((0,t.callValidateCode)(h,u,f),()=>I(u),()=>E(u))}function E(N){const j=(0,r._)`${N}.errors`;_.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${j} : ${i.default.vErrors}.concat(${j})`),_.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function I(N){var j;if(!b.opts.unevaluated)return;const Z=(j=d?.validate)===null||j===void 0?void 0:j.evaluated;if(b.props!==!0)if(Z&&!Z.dynamicProps)Z.props!==void 0&&(b.props=o.mergeEvaluated.props(_,Z.props,b.props));else{const W=_.var("props",(0,r._)`${N}.evaluated.props`);b.props=o.mergeEvaluated.props(_,W,b.props,r.Name)}if(b.items!==!0)if(Z&&!Z.dynamicItems)Z.items!==void 0&&(b.items=o.mergeEvaluated.items(_,Z.items,b.items));else{const W=_.var("items",(0,r._)`${N}.evaluated.items`);b.items=o.mergeEvaluated.items(_,W,b.items,r.Name)}}}return jt.callRef=c,jt.default=s,jt}var Iu;function Jv(){if(Iu)return cr;Iu=1,Object.defineProperty(cr,"__esModule",{value:!0});const e=Vv(),t=Kv(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return cr.default=r,cr}var fr={},dr={},Eu;function Gv(){if(Eu)return dr;Eu=1,Object.defineProperty(dr,"__esModule",{value:!0});const e=ye(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},i={message:({keyword:o,schemaCode:s})=>(0,e.str)`must be ${r[o].okStr} ${s}`,params:({keyword:o,schemaCode:s})=>(0,e._)`{comparison: ${r[o].okStr}, limit: ${s}}`},n={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:i,code(o){const{keyword:s,data:a,schemaCode:c}=o;o.fail$data((0,e._)`${a} ${r[s].fail} ${c} || isNaN(${a})`)}};return dr.default=n,dr}var hr={},xu;function Wv(){if(xu)return hr;xu=1,Object.defineProperty(hr,"__esModule",{value:!0});const e=ye(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must be multiple of ${i}`,params:({schemaCode:i})=>(0,e._)`{multipleOf: ${i}}`},code(i){const{gen:n,data:o,schemaCode:s,it:a}=i,c=a.opts.multipleOfPrecision,h=n.let("res"),u=c?(0,e._)`Math.abs(Math.round(${h}) - ${h}) > 1e-${c}`:(0,e._)`${h} !== parseInt(${h})`;i.fail$data((0,e._)`(${s} === 0 || (${h} = ${o}/${s}, ${u}))`)}};return hr.default=r,hr}var pr={},mr={},Nu;function Hv(){if(Nu)return mr;Nu=1,Object.defineProperty(mr,"__esModule",{value:!0});function e(t){const r=t.length;let i=0,n=0,o;for(;n<r;)i++,o=t.charCodeAt(n++),o>=55296&&o<=56319&&n<r&&(o=t.charCodeAt(n),(o&64512)===56320&&n++);return i}return mr.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',mr}var Ou;function Xv(){if(Ou)return pr;Ou=1,Object.defineProperty(pr,"__esModule",{value:!0});const e=ye(),t=be(),r=Hv(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const a=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:a,schemaCode:c,it:h}=o,u=s==="maxLength"?e.operators.GT:e.operators.LT,d=h.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${a})`;o.fail$data((0,e._)`${d} ${u} ${c}`)}};return pr.default=n,pr}var gr={},ju;function Yv(){if(ju)return gr;ju=1,Object.defineProperty(gr,"__esModule",{value:!0});const e=ht(),t=ye(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,t.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,t._)`{pattern: ${n}}`},code(n){const{data:o,$data:s,schema:a,schemaCode:c,it:h}=n,u=h.opts.unicodeRegExp?"u":"",d=s?(0,t._)`(new RegExp(${c}, ${u}))`:(0,e.usePattern)(n,a);n.fail$data((0,t._)`!${d}.test(${o})`)}};return gr.default=i,gr}var yr={},Au;function Qv(){if(Au)return yr;Au=1,Object.defineProperty(yr,"__esModule",{value:!0});const e=ye(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:n}){const o=i==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} properties`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:n,data:o,schemaCode:s}=i,a=n==="maxProperties"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`Object.keys(${o}).length ${a} ${s}`)}};return yr.default=r,yr}var vr={},zu;function e0(){if(zu)return vr;zu=1,Object.defineProperty(vr,"__esModule",{value:!0});const e=ht(),t=ye(),r=be(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:o}})=>(0,t.str)`must have required property '${o}'`,params:({params:{missingProperty:o}})=>(0,t._)`{missingProperty: ${o}}`},code(o){const{gen:s,schema:a,schemaCode:c,data:h,$data:u,it:d}=o,{opts:y}=d;if(!u&&a.length===0)return;const _=a.length>=y.loopRequired;if(d.allErrors?b():g(),y.strictRequired){const f=o.parentSchema.properties,{definedProperties:v}=o.it;for(const S of a)if(f?.[S]===void 0&&!v.has(S)){const E=d.schemaEnv.baseId+d.errSchemaPath,I=`required property "${S}" is not defined at "${E}" (strictRequired)`;(0,r.checkStrictMode)(d,I,d.opts.strictRequired)}}function b(){if(_||u)o.block$data(t.nil,m);else for(const f of a)(0,e.checkReportMissingProp)(o,f)}function g(){const f=s.let("missing");if(_||u){const v=s.let("valid",!0);o.block$data(v,()=>$(f,v)),o.ok(v)}else s.if((0,e.checkMissingProp)(o,a,f)),(0,e.reportMissingProp)(o,f),s.else()}function m(){s.forOf("prop",c,f=>{o.setParams({missingProperty:f}),s.if((0,e.noPropertyInData)(s,h,f,y.ownProperties),()=>o.error())})}function $(f,v){o.setParams({missingProperty:f}),s.forOf(f,c,()=>{s.assign(v,(0,e.propertyInData)(s,h,f,y.ownProperties)),s.if((0,t.not)(v),()=>{o.error(),s.break()})},t.nil)}}};return vr.default=n,vr}var $r={},Tu;function t0(){if(Tu)return $r;Tu=1,Object.defineProperty($r,"__esModule",{value:!0});const e=ye(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:n}){const o=i==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${n} items`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:n,data:o,schemaCode:s}=i,a=n==="maxItems"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`${o}.length ${a} ${s}`)}};return $r.default=r,$r}var br={},_r={},Pu;function la(){if(Pu)return _r;Pu=1,Object.defineProperty(_r,"__esModule",{value:!0});const e=Kh();return e.code='require("ajv/dist/runtime/equal").default',_r.default=e,_r}var Du;function n0(){if(Du)return br;Du=1,Object.defineProperty(br,"__esModule",{value:!0});const e=ui(),t=ye(),r=be(),i=la(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${s} are identical)`,params:({params:{i:s,j:a}})=>(0,t._)`{i: ${s}, j: ${a}}`},code(s){const{gen:a,data:c,$data:h,schema:u,parentSchema:d,schemaCode:y,it:_}=s;if(!h&&!u)return;const b=a.let("valid"),g=d.items?(0,e.getSchemaTypes)(d.items):[];s.block$data(b,m,(0,t._)`${y} === false`),s.ok(b);function m(){const S=a.let("i",(0,t._)`${c}.length`),E=a.let("j");s.setParams({i:S,j:E}),a.assign(b,!0),a.if((0,t._)`${S} > 1`,()=>($()?f:v)(S,E))}function $(){return g.length>0&&!g.some(S=>S==="object"||S==="array")}function f(S,E){const I=a.name("item"),N=(0,e.checkDataTypes)(g,I,_.opts.strictNumbers,e.DataType.Wrong),j=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${S}--;`,()=>{a.let(I,(0,t._)`${c}[${S}]`),a.if(N,(0,t._)`continue`),g.length>1&&a.if((0,t._)`typeof ${I} == "string"`,(0,t._)`${I} += "_"`),a.if((0,t._)`typeof ${j}[${I}] == "number"`,()=>{a.assign(E,(0,t._)`${j}[${I}]`),s.error(),a.assign(b,!1).break()}).code((0,t._)`${j}[${I}] = ${S}`)})}function v(S,E){const I=(0,r.useFunc)(a,i.default),N=a.name("outer");a.label(N).for((0,t._)`;${S}--;`,()=>a.for((0,t._)`${E} = ${S}; ${E}--;`,()=>a.if((0,t._)`${I}(${c}[${S}], ${c}[${E}])`,()=>{s.error(),a.assign(b,!1).break(N)})))}}};return br.default=o,br}var wr={},Uu;function r0(){if(Uu)return wr;Uu=1,Object.defineProperty(wr,"__esModule",{value:!0});const e=ye(),t=be(),r=la(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:s,data:a,$data:c,schemaCode:h,schema:u}=o;c||u&&typeof u=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${a}, ${h})`):o.fail((0,e._)`${u} !== ${a}`)}};return wr.default=n,wr}var kr={},Cu;function i0(){if(Cu)return kr;Cu=1,Object.defineProperty(kr,"__esModule",{value:!0});const e=ye(),t=be(),r=la(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:s,data:a,$data:c,schema:h,schemaCode:u,it:d}=o;if(!c&&h.length===0)throw new Error("enum must have non-empty array");const y=h.length>=d.opts.loopEnum;let _;const b=()=>_??(_=(0,t.useFunc)(s,r.default));let g;if(y||c)g=s.let("valid"),o.block$data(g,m);else{if(!Array.isArray(h))throw new Error("ajv implementation error");const f=s.const("vSchema",u);g=(0,e.or)(...h.map((v,S)=>$(f,S)))}o.pass(g);function m(){s.assign(g,!1),s.forOf("v",u,f=>s.if((0,e._)`${b()}(${a}, ${f})`,()=>s.assign(g,!0).break()))}function $(f,v){const S=h[v];return typeof S=="object"&&S!==null?(0,e._)`${b()}(${a}, ${f}[${v}])`:(0,e._)`${a} === ${S}`}}};return kr.default=n,kr}var Bu;function o0(){if(Bu)return fr;Bu=1,Object.defineProperty(fr,"__esModule",{value:!0});const e=Gv(),t=Wv(),r=Xv(),i=Yv(),n=Qv(),o=e0(),s=t0(),a=n0(),c=r0(),h=i0(),u=[e.default,t.default,r.default,i.default,n.default,o.default,s.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,h.default];return fr.default=u,fr}var Sr={},Yt={},Ru;function Jh(){if(Ru)return Yt;Ru=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.validateAdditionalItems=void 0;const e=ye(),t=be(),i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:s,it:a}=o,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(o,c)}};function n(o,s){const{gen:a,schema:c,data:h,keyword:u,it:d}=o;d.items=!0;const y=a.const("len",(0,e._)`${h}.length`);if(c===!1)o.setParams({len:s.length}),o.pass((0,e._)`${y} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(d,c)){const b=a.var("valid",(0,e._)`${y} <= ${s.length}`);a.if((0,e.not)(b),()=>_(b)),o.ok(b)}function _(b){a.forRange("i",s.length,y,g=>{o.subschema({keyword:u,dataProp:g,dataPropType:t.Type.Num},b),d.allErrors||a.if((0,e.not)(b),()=>a.break())})}}return Yt.validateAdditionalItems=n,Yt.default=i,Yt}var Ir={},Qt={},Fu;function Gh(){if(Fu)return Qt;Fu=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.validateTuple=void 0;const e=ye(),t=be(),r=ht(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:s,it:a}=o;if(Array.isArray(s))return n(o,"additionalItems",s);a.items=!0,!(0,t.alwaysValidSchema)(a,s)&&o.ok((0,r.validateArray)(o))}};function n(o,s,a=o.schema){const{gen:c,parentSchema:h,data:u,keyword:d,it:y}=o;g(h),y.opts.unevaluated&&a.length&&y.items!==!0&&(y.items=t.mergeEvaluated.items(c,a.length,y.items));const _=c.name("valid"),b=c.const("len",(0,e._)`${u}.length`);a.forEach((m,$)=>{(0,t.alwaysValidSchema)(y,m)||(c.if((0,e._)`${b} > ${$}`,()=>o.subschema({keyword:d,schemaProp:$,dataProp:$},_)),o.ok(_))});function g(m){const{opts:$,errSchemaPath:f}=y,v=a.length,S=v===m.minItems&&(v===m.maxItems||m[s]===!1);if($.strictTuples&&!S){const E=`"${d}" is ${v}-tuple, but minItems or maxItems/${s} are not specified or different at path "${f}"`;(0,t.checkStrictMode)(y,E,$.strictTuples)}}}return Qt.validateTuple=n,Qt.default=i,Qt}var Lu;function s0(){if(Lu)return Ir;Lu=1,Object.defineProperty(Ir,"__esModule",{value:!0});const e=Gh(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Ir.default=t,Ir}var Er={},Zu;function a0(){if(Zu)return Er;Zu=1,Object.defineProperty(Er,"__esModule",{value:!0});const e=ye(),t=be(),r=ht(),i=Jh(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:a,parentSchema:c,it:h}=s,{prefixItems:u}=c;h.items=!0,!(0,t.alwaysValidSchema)(h,a)&&(u?(0,i.validateAdditionalItems)(s,u):s.ok((0,r.validateArray)(s)))}};return Er.default=o,Er}var xr={},Mu;function u0(){if(Mu)return xr;Mu=1,Object.defineProperty(xr,"__esModule",{value:!0});const e=ye(),t=be(),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:o}})=>o===void 0?(0,e.str)`must contain at least ${n} valid item(s)`:(0,e.str)`must contain at least ${n} and no more than ${o} valid item(s)`,params:({params:{min:n,max:o}})=>o===void 0?(0,e._)`{minContains: ${n}}`:(0,e._)`{minContains: ${n}, maxContains: ${o}}`},code(n){const{gen:o,schema:s,parentSchema:a,data:c,it:h}=n;let u,d;const{minContains:y,maxContains:_}=a;h.opts.next?(u=y===void 0?1:y,d=_):u=1;const b=o.const("len",(0,e._)`${c}.length`);if(n.setParams({min:u,max:d}),d===void 0&&u===0){(0,t.checkStrictMode)(h,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(d!==void 0&&u>d){(0,t.checkStrictMode)(h,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,t.alwaysValidSchema)(h,s)){let v=(0,e._)`${b} >= ${u}`;d!==void 0&&(v=(0,e._)`${v} && ${b} <= ${d}`),n.pass(v);return}h.items=!0;const g=o.name("valid");d===void 0&&u===1?$(g,()=>o.if(g,()=>o.break())):u===0?(o.let(g,!0),d!==void 0&&o.if((0,e._)`${c}.length > 0`,m)):(o.let(g,!1),m()),n.result(g,()=>n.reset());function m(){const v=o.name("_valid"),S=o.let("count",0);$(v,()=>o.if(v,()=>f(S)))}function $(v,S){o.forRange("i",0,b,E=>{n.subschema({keyword:"contains",dataProp:E,dataPropType:t.Type.Num,compositeRule:!0},v),S()})}function f(v){o.code((0,e._)`${v}++`),d===void 0?o.if((0,e._)`${v} >= ${u}`,()=>o.assign(g,!0).break()):(o.if((0,e._)`${v} > ${d}`,()=>o.assign(g,!1).break()),u===1?o.assign(g,!0):o.if((0,e._)`${v} >= ${u}`,()=>o.assign(g,!0)))}}};return xr.default=i,xr}var Qi={},qu;function c0(){return qu||(qu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ye(),r=be(),i=ht();e.error={message:({params:{property:c,depsCount:h,deps:u}})=>{const d=h===1?"property":"properties";return(0,t.str)`must have ${d} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:h,deps:u,missingProperty:d}})=>(0,t._)`{property: ${c},
|
|
34
|
+
missingProperty: ${d},
|
|
35
|
+
depsCount: ${h},
|
|
36
|
+
deps: ${u}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[h,u]=o(c);s(c,h),a(c,u)}};function o({schema:c}){const h={},u={};for(const d in c){if(d==="__proto__")continue;const y=Array.isArray(c[d])?h:u;y[d]=c[d]}return[h,u]}function s(c,h=c.schema){const{gen:u,data:d,it:y}=c;if(Object.keys(h).length===0)return;const _=u.let("missing");for(const b in h){const g=h[b];if(g.length===0)continue;const m=(0,i.propertyInData)(u,d,b,y.opts.ownProperties);c.setParams({property:b,depsCount:g.length,deps:g.join(", ")}),y.allErrors?u.if(m,()=>{for(const $ of g)(0,i.checkReportMissingProp)(c,$)}):(u.if((0,t._)`${m} && (${(0,i.checkMissingProp)(c,g,_)})`),(0,i.reportMissingProp)(c,_),u.else())}}e.validatePropertyDeps=s;function a(c,h=c.schema){const{gen:u,data:d,keyword:y,it:_}=c,b=u.name("valid");for(const g in h)(0,r.alwaysValidSchema)(_,h[g])||(u.if((0,i.propertyInData)(u,d,g,_.opts.ownProperties),()=>{const m=c.subschema({keyword:y,schemaProp:g},b);c.mergeValidEvaluated(m,b)},()=>u.var(b,!0)),c.ok(b))}e.validateSchemaDeps=a,e.default=n}(Qi)),Qi}var Nr={},Vu;function l0(){if(Vu)return Nr;Vu=1,Object.defineProperty(Nr,"__esModule",{value:!0});const e=ye(),t=be(),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:o,schema:s,data:a,it:c}=n;if((0,t.alwaysValidSchema)(c,s))return;const h=o.name("valid");o.forIn("key",a,u=>{n.setParams({propertyName:u}),n.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},h),o.if((0,e.not)(h),()=>{n.error(!0),c.allErrors||o.break()})}),n.ok(h)}};return Nr.default=i,Nr}var Or={},Ku;function Wh(){if(Ku)return Or;Ku=1,Object.defineProperty(Or,"__esModule",{value:!0});const e=ht(),t=ye(),r=Ct(),i=be(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:a,schema:c,parentSchema:h,data:u,errsCount:d,it:y}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:_,opts:b}=y;if(y.props=!0,b.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(y,c))return;const g=(0,e.allSchemaProperties)(h.properties),m=(0,e.allSchemaProperties)(h.patternProperties);$(),s.ok((0,t._)`${d} === ${r.default.errors}`);function $(){a.forIn("key",u,I=>{!g.length&&!m.length?S(I):a.if(f(I),()=>S(I))})}function f(I){let N;if(g.length>8){const j=(0,i.schemaRefOrVal)(y,h.properties,"properties");N=(0,e.isOwnProperty)(a,j,I)}else g.length?N=(0,t.or)(...g.map(j=>(0,t._)`${I} === ${j}`)):N=t.nil;return m.length&&(N=(0,t.or)(N,...m.map(j=>(0,t._)`${(0,e.usePattern)(s,j)}.test(${I})`))),(0,t.not)(N)}function v(I){a.code((0,t._)`delete ${u}[${I}]`)}function S(I){if(b.removeAdditional==="all"||b.removeAdditional&&c===!1){v(I);return}if(c===!1){s.setParams({additionalProperty:I}),s.error(),_||a.break();return}if(typeof c=="object"&&!(0,i.alwaysValidSchema)(y,c)){const N=a.name("valid");b.removeAdditional==="failing"?(E(I,N,!1),a.if((0,t.not)(N),()=>{s.reset(),v(I)})):(E(I,N),_||a.if((0,t.not)(N),()=>a.break()))}}function E(I,N,j){const Z={keyword:"additionalProperties",dataProp:I,dataPropType:i.Type.Str};j===!1&&Object.assign(Z,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(Z,N)}}};return Or.default=o,Or}var jr={},Ju;function f0(){if(Ju)return jr;Ju=1,Object.defineProperty(jr,"__esModule",{value:!0});const e=Oi(),t=ht(),r=be(),i=Wh(),n={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,parentSchema:c,data:h,it:u}=o;u.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&i.default.code(new e.KeywordCxt(u,i.default,"additionalProperties"));const d=(0,t.allSchemaProperties)(a);for(const m of d)u.definedProperties.add(m);u.opts.unevaluated&&d.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(d),u.props));const y=d.filter(m=>!(0,r.alwaysValidSchema)(u,a[m]));if(y.length===0)return;const _=s.name("valid");for(const m of y)b(m)?g(m):(s.if((0,t.propertyInData)(s,h,m,u.opts.ownProperties)),g(m),u.allErrors||s.else().var(_,!0),s.endIf()),o.it.definedProperties.add(m),o.ok(_);function b(m){return u.opts.useDefaults&&!u.compositeRule&&a[m].default!==void 0}function g(m){o.subschema({keyword:"properties",schemaProp:m,dataProp:m},_)}}};return jr.default=n,jr}var Ar={},Gu;function d0(){if(Gu)return Ar;Gu=1,Object.defineProperty(Ar,"__esModule",{value:!0});const e=ht(),t=ye(),r=be(),i=be(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,data:c,parentSchema:h,it:u}=o,{opts:d}=u,y=(0,e.allSchemaProperties)(a),_=y.filter(S=>(0,r.alwaysValidSchema)(u,a[S]));if(y.length===0||_.length===y.length&&(!u.opts.unevaluated||u.props===!0))return;const b=d.strictSchema&&!d.allowMatchingProperties&&h.properties,g=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,i.evaluatedPropsToName)(s,u.props));const{props:m}=u;$();function $(){for(const S of y)b&&f(S),u.allErrors?v(S):(s.var(g,!0),v(S),s.if(g))}function f(S){for(const E in b)new RegExp(S).test(E)&&(0,r.checkStrictMode)(u,`property ${E} matches pattern ${S} (use allowMatchingProperties)`)}function v(S){s.forIn("key",c,E=>{s.if((0,t._)`${(0,e.usePattern)(o,S)}.test(${E})`,()=>{const I=_.includes(S);I||o.subschema({keyword:"patternProperties",schemaProp:S,dataProp:E,dataPropType:i.Type.Str},g),u.opts.unevaluated&&m!==!0?s.assign((0,t._)`${m}[${E}]`,!0):!I&&!u.allErrors&&s.if((0,t.not)(g),()=>s.break())})})}}};return Ar.default=n,Ar}var zr={},Wu;function h0(){if(Wu)return zr;Wu=1,Object.defineProperty(zr,"__esModule",{value:!0});const e=be(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:i,schema:n,it:o}=r;if((0,e.alwaysValidSchema)(o,n)){r.fail();return}const s=i.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return zr.default=t,zr}var Tr={},Hu;function p0(){if(Hu)return Tr;Hu=1,Object.defineProperty(Tr,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ht().validateUnion,error:{message:"must match a schema in anyOf"}};return Tr.default=t,Tr}var Pr={},Xu;function m0(){if(Xu)return Pr;Xu=1,Object.defineProperty(Pr,"__esModule",{value:!0});const e=ye(),t=be(),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:o,schema:s,parentSchema:a,it:c}=n;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&a.discriminator)return;const h=s,u=o.let("valid",!1),d=o.let("passing",null),y=o.name("_valid");n.setParams({passing:d}),o.block(_),n.result(u,()=>n.reset(),()=>n.error(!0));function _(){h.forEach((b,g)=>{let m;(0,t.alwaysValidSchema)(c,b)?o.var(y,!0):m=n.subschema({keyword:"oneOf",schemaProp:g,compositeRule:!0},y),g>0&&o.if((0,e._)`${y} && ${u}`).assign(u,!1).assign(d,(0,e._)`[${d}, ${g}]`).else(),o.if(y,()=>{o.assign(u,!0),o.assign(d,g),m&&n.mergeEvaluated(m,e.Name)})})}}};return Pr.default=i,Pr}var Dr={},Yu;function g0(){if(Yu)return Dr;Yu=1,Object.defineProperty(Dr,"__esModule",{value:!0});const e=be(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:i,schema:n,it:o}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=i.name("valid");n.forEach((a,c)=>{if((0,e.alwaysValidSchema)(o,a))return;const h=r.subschema({keyword:"allOf",schemaProp:c},s);r.ok(s),r.mergeEvaluated(h)})}};return Dr.default=t,Dr}var Ur={},Qu;function y0(){if(Qu)return Ur;Qu=1,Object.defineProperty(Ur,"__esModule",{value:!0});const e=ye(),t=be(),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:a,it:c}=o;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const h=n(c,"then"),u=n(c,"else");if(!h&&!u)return;const d=s.let("valid",!0),y=s.name("_valid");if(_(),o.reset(),h&&u){const g=s.let("ifClause");o.setParams({ifClause:g}),s.if(y,b("then",g),b("else",g))}else h?s.if(y,b("then")):s.if((0,e.not)(y),b("else"));o.pass(d,()=>o.error(!0));function _(){const g=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},y);o.mergeEvaluated(g)}function b(g,m){return()=>{const $=o.subschema({keyword:g},y);s.assign(d,y),o.mergeValidEvaluated($,d),m?s.assign(m,(0,e._)`${g}`):o.setParams({ifClause:g})}}}};function n(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return Ur.default=i,Ur}var Cr={},ec;function v0(){if(ec)return Cr;ec=1,Object.defineProperty(Cr,"__esModule",{value:!0});const e=be(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:i,it:n}){i.if===void 0&&(0,e.checkStrictMode)(n,`"${r}" without "if" is ignored`)}};return Cr.default=t,Cr}var tc;function $0(){if(tc)return Sr;tc=1,Object.defineProperty(Sr,"__esModule",{value:!0});const e=Jh(),t=s0(),r=Gh(),i=a0(),n=u0(),o=c0(),s=l0(),a=Wh(),c=f0(),h=d0(),u=h0(),d=p0(),y=m0(),_=g0(),b=y0(),g=v0();function m($=!1){const f=[u.default,d.default,y.default,_.default,b.default,g.default,s.default,a.default,o.default,c.default,h.default];return $?f.push(t.default,i.default):f.push(e.default,r.default),f.push(n.default),f}return Sr.default=m,Sr}var Br={},Rr={},nc;function b0(){if(nc)return Rr;nc=1,Object.defineProperty(Rr,"__esModule",{value:!0});const e=ye(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must match format "${i}"`,params:({schemaCode:i})=>(0,e._)`{format: ${i}}`},code(i,n){const{gen:o,data:s,$data:a,schema:c,schemaCode:h,it:u}=i,{opts:d,errSchemaPath:y,schemaEnv:_,self:b}=u;if(!d.validateFormats)return;a?g():m();function g(){const $=o.scopeValue("formats",{ref:b.formats,code:d.code.formats}),f=o.const("fDef",(0,e._)`${$}[${h}]`),v=o.let("fType"),S=o.let("format");o.if((0,e._)`typeof ${f} == "object" && !(${f} instanceof RegExp)`,()=>o.assign(v,(0,e._)`${f}.type || "string"`).assign(S,(0,e._)`${f}.validate`),()=>o.assign(v,(0,e._)`"string"`).assign(S,f)),i.fail$data((0,e.or)(E(),I()));function E(){return d.strictSchema===!1?e.nil:(0,e._)`${h} && !${S}`}function I(){const N=_.$async?(0,e._)`(${f}.async ? await ${S}(${s}) : ${S}(${s}))`:(0,e._)`${S}(${s})`,j=(0,e._)`(typeof ${S} == "function" ? ${N} : ${S}.test(${s}))`;return(0,e._)`${S} && ${S} !== true && ${v} === ${n} && !${j}`}}function m(){const $=b.formats[c];if(!$){E();return}if($===!0)return;const[f,v,S]=I($);f===n&&i.pass(N());function E(){if(d.strictSchema===!1){b.logger.warn(j());return}throw new Error(j());function j(){return`unknown format "${c}" ignored in schema at path "${y}"`}}function I(j){const Z=j instanceof RegExp?(0,e.regexpCode)(j):d.code.formats?(0,e._)`${d.code.formats}${(0,e.getProperty)(c)}`:void 0,W=o.scopeValue("formats",{key:c,ref:j,code:Z});return typeof j=="object"&&!(j instanceof RegExp)?[j.type||"string",j.validate,(0,e._)`${W}.validate`]:["string",j,W]}function N(){if(typeof $=="object"&&!($ instanceof RegExp)&&$.async){if(!_.$async)throw new Error("async format in sync schema");return(0,e._)`await ${S}(${s})`}return typeof v=="function"?(0,e._)`${S}(${s})`:(0,e._)`${S}.test(${s})`}}}};return Rr.default=r,Rr}var rc;function _0(){if(rc)return Br;rc=1,Object.defineProperty(Br,"__esModule",{value:!0});const t=[b0().default];return Br.default=t,Br}var Ft={},ic;function w0(){return ic||(ic=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.contentVocabulary=Ft.metadataVocabulary=void 0,Ft.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ft.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Ft}var oc;function k0(){if(oc)return ur;oc=1,Object.defineProperty(ur,"__esModule",{value:!0});const e=Jv(),t=o0(),r=$0(),i=_0(),n=w0(),o=[e.default,t.default,(0,r.default)(),i.default,n.metadataVocabulary,n.contentVocabulary];return ur.default=o,ur}var Fr={},Nn={},sc;function S0(){if(sc)return Nn;sc=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(Nn.DiscrError=e={})),Nn}var ac;function I0(){if(ac)return Fr;ac=1,Object.defineProperty(Fr,"__esModule",{value:!0});const e=ye(),t=S0(),r=ca(),i=ji(),n=be(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:c}})=>a===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:a,tag:c,tagName:h}})=>(0,e._)`{error: ${a}, tag: ${h}, tagValue: ${c}}`},code(a){const{gen:c,data:h,schema:u,parentSchema:d,it:y}=a,{oneOf:_}=d;if(!y.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=u.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!_)throw new Error("discriminator: requires oneOf keyword");const g=c.let("valid",!1),m=c.const("tag",(0,e._)`${h}${(0,e.getProperty)(b)}`);c.if((0,e._)`typeof ${m} == "string"`,()=>$(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:m,tagName:b})),a.ok(g);function $(){const S=v();c.if(!1);for(const E in S)c.elseIf((0,e._)`${m} === ${E}`),c.assign(g,f(S[E]));c.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:m,tagName:b}),c.endIf()}function f(S){const E=c.name("valid"),I=a.subschema({keyword:"oneOf",schemaProp:S},E);return a.mergeEvaluated(I,e.Name),E}function v(){var S;const E={},I=j(d);let N=!0;for(let Y=0;Y<_.length;Y++){let Q=_[Y];if(Q?.$ref&&!(0,n.schemaHasRulesButRef)(Q,y.self.RULES)){const pe=Q.$ref;if(Q=r.resolveRef.call(y.self,y.schemaEnv.root,y.baseId,pe),Q instanceof r.SchemaEnv&&(Q=Q.schema),Q===void 0)throw new i.default(y.opts.uriResolver,y.baseId,pe)}const oe=(S=Q?.properties)===null||S===void 0?void 0:S[b];if(typeof oe!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);N=N&&(I||j(Q)),Z(oe,Y)}if(!N)throw new Error(`discriminator: "${b}" must be required`);return E;function j({required:Y}){return Array.isArray(Y)&&Y.includes(b)}function Z(Y,Q){if(Y.const)W(Y.const,Q);else if(Y.enum)for(const oe of Y.enum)W(oe,Q);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function W(Y,Q){if(typeof Y!="string"||Y in E)throw new Error(`discriminator: "${b}" values must be unique strings`);E[Y]=Q}}}};return Fr.default=s,Fr}const E0="http://json-schema.org/draft-07/schema#",x0="http://json-schema.org/draft-07/schema#",N0="Core schema meta-schema",O0={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},j0=["object","boolean"],A0={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}};var z0={$schema:E0,$id:x0,title:N0,definitions:O0,type:j0,properties:A0,default:!0},uc;function T0(){return uc||(uc=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=qv(),i=k0(),n=I0(),o=z0,s=["/properties"],a="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(b,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var h=Oi();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return h.KeywordCxt}});var u=ye();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=ua();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var y=ji();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})}(rr,rr.exports)),rr.exports}var Hh=T0(),mn=G({title:C().optional(),globalTitle:C().optional(),description:C().optional(),color:C().optional(),icon:C().optional(),iconColor:C().optional(),secondaryIcon:C().optional(),secondaryIconColor:C().optional()}),Be=mn.extend({createdAt:Ee().optional(),updatedAt:Ee().optional(),version:Ee().optional()}),gn=C().regex(/^[a-z][a-z0-9-_.]+$/).min(2).max(64),eo=C().regex(/^[a-z][a-zA-Z0-9]+$/).min(2).max(64);G({type:C(),schema:aa(),meta:Be.required({title:!0}).pick({title:!0,description:!0,color:!0,icon:!0,iconColor:!0}),definitionHash:Ee()});var Xh=G({x:Ee(),y:Ee()}),Zn=Th([gn,":",gn]),Pn=G({instanceId:Zn,output:C()}),vo=G({hubId:C()}),P0=G({args:Se(C(),Et()).optional(),inputs:Se(C(),$e(Pn)).optional(),hubInputs:Se(C(),$e(vo)).optional(),injectionInputs:$e(vo).optional(),position:Xh.optional()}),$o=G({id:Zn,type:gn,name:gn,...P0.shape,resolvedInputs:Se(C(),$e(Pn)).optional(),parentId:C().optional(),outputs:Se(C(),$e(Pn)).optional(),resolvedOutputs:Se(C(),$e(Pn)).optional()}),D0=G({position:Xh.optional(),inputs:$e(Pn).optional(),injectionInputs:$e(vo).optional()}),Yh=G({id:eh(),...D0.shape}),U0=G({"c857cac5-caa6-4421-b82c-e561fbce6367":_e(!0),value:C()}),C0=G({name:C(),contentType:C().optional(),size:Ee().optional(),mode:Ee().optional(),isBinary:Ve().optional()}),B0=G({displayName:C().optional(),description:C().optional(),primaryIcon:C().optional()});G({"56ebf97b-57de-4985-8c86-bc1bc5871e6e":_e(!0),id:Me(),value:Et()});var R0=G({"d55c63ac-3174-4756-808f-f778e99af0d1":_e(!0),hash:C(),meta:B0.optional()}),F0=xt([G({type:_e("embedded"),value:C()}),G({type:_e("artifact"),...R0.shape})]),Qh=G({meta:C0,content:F0});new Hh.Ajv({strict:!1});var ep=G({schema:aa(),required:Ve(),meta:Be.required({title:!0}).pick({title:!0,globalTitle:!0,description:!0,color:!0,icon:!0,iconColor:!0})}),cc=G({type:gn,required:Ve(),multiple:Ve(),meta:Be.required({title:!0}).pick({title:!0,description:!0})});G({type:gn,args:Se(eo,ep),inputs:Se(eo,cc),outputs:Se(eo,cc),meta:Be.required({title:!0}).pick({title:!0,description:!0,color:!0,icon:!0,iconColor:!0,secondaryIcon:!0,secondaryIconColor:!0}).extend({category:C().optional(),defaultNamePrefix:C().optional()}),definitionHash:Ee()});function fa(e){return"source"in e}ep.extend({readonly:Ja.boolean(),computed:Ja.boolean()});G({id:Me(),meta:Be.required({title:!0}).pick({title:!0,description:!0,icon:!0,iconColor:!0}),name:C().min(1).max(64).regex(/^[a-z][a-z0-9-.]*$/),scopeId:Me().optional(),libraryId:Me().optional()});G({instances:$e($o),hubs:$e(Yh)});const L0=G({encryptedIdentities:$e(C()),hasPasskey:Ve()});Ut("type",[G({type:_e("locked"),unlockSuite:L0.optional()}),G({type:_e("unlocked")})]);G({id:C(),meta:Be,recipient:C()});G({updatedInstances:$o.array().optional(),updatedHubs:Yh.array().optional(),updatedVirtualInstances:$o.array().optional(),deletedInstanceIds:Zn.array().optional(),deletedHubIds:C().array().optional(),deletedVirtualInstanceIds:Zn.array().optional()});const Z0=dt(["updating","processing-triggers","previewing","destroying","refreshing","pending","cancelling","created","error"]),tp=G({status:Z0,latestOperationId:C(),dependencyIds:$e(C()),message:C().optional(),currentResourceCount:Ee().optional(),totalResourceCount:Ee().optional(),inputHash:Ee().optional(),inputHashNonce:Ee().optional(),outputHash:C().optional(),dependencyOutputHash:C().optional(),args:Se(C(),Et()).optional()}),M0=dt(["evaluating","evaluated","error"]),np=G({status:M0,message:C().optional()}),rp=G({name:C(),status:C(),title:C(),icon:C().optional(),color:C().optional(),message:C().optional(),order:Ee().min(0).max(100).optional()}),q0=xt([C(),Ee(),Ve(),$e(C())]),da=G({name:C(),meta:Be,complementaryTo:C().optional(),value:q0.optional()});da.omit({meta:!0}).extend({meta:mn});const V0=G({statusFields:$e(da).optional(),customStatuses:$e(rp).optional(),pageIds:Se(C(),C()).optional(),terminalIds:Se(C(),C()).optional(),triggerIds:Se(C(),C()).optional(),exportedArtifactIds:Se(C(),$e(C())).optional(),exportedSecretIds:Se(C(),C().array()).optional(),workerRegistrationIds:Se(C(),C()).optional()}),K0=G({id:C(),parentId:C().optional(),secretNames:$e(C()).optional(),operationStatus:tp.optional(),evaluationStatus:np.optional(),extra:V0.optional()}),J0=G({statusFields:$e(da).optional().nullable(),customStatuses:$e(rp).optional().nullable(),pageIds:Se(C(),C()).optional().nullable(),terminalIds:Se(C(),C()).optional().nullable(),triggerIds:Se(C(),C()).optional().nullable(),exportedArtifactIds:Se(C(),$e(C())).optional().nullable(),exportedSecretIds:Se(C(),C().array()).optional().nullable(),workerRegistrationIds:Se(C(),C()).optional().nullable()}),G0=G({id:C(),parentId:C().nullish(),secretNames:$e(C()).nullish(),operationStatus:tp.partial().nullish(),evaluationStatus:np.partial().nullish(),extra:J0.nullish()});Ut("type",[G({type:_e("patched"),patch:G0}),G({type:_e("updated"),state:K0}),G({type:_e("deleted"),instanceId:C()})]);const ip=dt(["update","preview","destroy","recreate","refresh"]),W0=dt(["pending","running","completed","failed","cancelled","failing"]),op=G({forceUpdateDependencies:Ve().default(!1),forceUpdateChildren:Ve().default(!1),destroyDependentInstances:Ve().default(!0),invokeDestroyTriggers:Ve().default(!0),deleteUnreachableResources:Ve().default(!1),forceDeleteState:Ve().default(!1),allowPartialCompositeInstanceUpdates:Ve().default(!1),refresh:Ve().default(!1)});G({projectId:C(),type:ip,instanceIds:$e(C()),options:op.partial().optional()});const H0=G({id:Me(),meta:Be,status:W0,error:C().nullable(),type:ip,requestedInstanceIds:$e(C()),instanceIdsToUpdate:$e(C()).default(()=>[]),instanceIdsToDestroy:$e(C()).default(()=>[]),options:op,startedAt:Ee(),completedAt:Ee().nullable()});mh([Me(),C()]);Ut("type",[G({type:_e("updated"),operation:H0}),G({type:_e("deleted"),operationId:C()})]);const ha={title:!0,globalTitle:!0,description:!0,icon:!0,iconColor:!0},pa={title:!0,description:!0};G({id:C().uuid(),meta:Be.pick({...ha,createdAt:!0,updatedAt:!0}).required(pa),instanceId:C().optional()});const X0=G({image:C(),command:C().array(),cwd:C().optional(),env:Se(C(),C()).optional(),files:Se(C(),Qh).optional()});G({name:C(),meta:mn.pick(ha).required(pa),spec:X0});G({id:Me(),meta:Be.pick({...ha,createdAt:!0,updatedAt:!0}).required(pa).extend({finishedAt:Ee().optional()}),projectId:C(),terminalId:C(),instanceId:C().optional()});const Y0=xt([G({type:_e("markdown"),content:C()}),G({type:_e("qr"),content:C(),showContent:Fh(),language:C().optional()}),G({type:_e("file"),...Qh.shape})]);G({id:C(),instanceId:C().optional(),meta:Be});const Q0=G({id:C(),content:$e(Y0)});Q0.omit({id:!0}).extend({name:C(),meta:mn});const e$=Ut("type",[G({type:_e("instance"),instanceId:C()}),G({type:_e("terminal"),terminalId:C()}),G({type:_e("service-account"),serviceAccountId:C()})]);G({name:C(),size:Ee().optional(),isBinary:Ve().optional(),mode:Ee().optional()});G({id:Me(),meta:Be,hash:C(),usages:e$.array(),size:Ee(),chunkSize:Ee()});const t$=xt([G({type:_e("before-destroy")}),G({type:_e("schedule"),schedule:C()})]),n$=G({id:C(),instanceId:C(),meta:Be,spec:t$});n$.omit({id:!0,instanceId:!0,meta:!0}).extend({name:C(),meta:mn.optional()}).extend({name:C(),meta:mn.optional()});G({name:C()});const r$=dt(["password","passkey"]),i$=G({id:Me(),meta:Be,type:r$,encryptedIdentity:C(),recipient:C()});i$.omit({id:!0});const o$=Ut("type",[G({type:_e("system"),secretName:C()}),G({type:_e("instance"),instanceId:C(),secretName:C()})]);G({id:Me(),meta:Be,descriptor:o$.optional()});const s$=xt([G({type:_e("operation"),operationId:C()}),G({type:_e("evaluation"),evaluationId:C()}),G({type:_e("custom"),lockerId:C(),lockId:C(),payload:Se(C(),C()).optional()})]),a$=G({id:Zn,meta:Be,spec:s$});Ut("type",[G({type:_e("locked"),locks:$e(a$)}),G({type:_e("unlocked"),instanceIds:$e(C())})]);G({id:Me(),meta:Be.pick({title:!0,description:!0,icon:!0,iconColor:!0,createdAt:!0,updatedAt:!0}),avatarArtifactId:C().optional()});const u$=dt(["running","starting"]);G({id:Me(),meta:Be.pick({title:!0,description:!0,icon:!0,iconColor:!0,createdAt:!0,updatedAt:!0}),status:u$,failedStartAttempts:Ee(),identity:C(),image:C(),serviceAccountId:Me(),apiKeyId:Me()});G({id:Me(),meta:Be.pick({createdAt:!0,updatedAt:!0}),workerId:Me(),instanceId:C(),image:C(),params:Se(C(),Et())});G({name:C(),image:C(),params:Se(C(),Et())});const c$=dt(["read","write"]),l$=dt(["full"]),f$=Ut("type",[G({type:_e("instance"),actions:c$.array(),instanceIds:C().array()}),G({type:_e("service-account"),actions:l$.array(),serviceAccountIds:C().array()})]);G({id:Me(),meta:Be,token:C(),scopes:$e(f$)});class Ai{constructor(t,r,i,n){this.nodes=t,this.logger=r,this.outputHandler=i,this.dependentSetHandler=n}workset=new Set;dependencyMap=new Map;dependentMap=new Map;outputMap=new Map;addToWorkset(t){this.workset.add(t)}addAllNodesToWorkset(){for(const t of this.nodes.keys())this.workset.add(t)}get outputs(){return this.outputMap}get dependents(){return this.dependentMap}requireOutput(t){const r=this.outputMap.get(t);if(!r)throw new Error(`Output for node ${t} is not available`);return r}getDependents(t){const r=this.dependentMap.get(t);return r?Array.from(r):[]}invalidate(t){const r=[t];for(;r.length>0;){const i=r.pop();if(!this.nodes.has(i))continue;this.outputMap.delete(i),this.workset.add(i);const n=this.dependentMap.get(i);if(n)for(const o of n)this.outputMap.has(o)&&r.push(o)}}async process(t){for(;this.workset.size>0;){const r=this.workset.values().next().value,i=[{nodeId:r,resolved:!1,dependencies:[]}];for(;i.length>0;){const n=i[i.length-1],{nodeId:o,resolved:s}=n,a=this.nodes.get(o);if(!a){this.logger.warn({nodeId:o},"node not found in the graph, skipping"),i.pop();continue}if(this.outputMap.has(o)){i.pop();continue}if(!s){n.dependencies=wv(this.getNodeDependencies(a));let d=!1;for(const y of n.dependencies){if(!this.nodes.has(y)){this.logger.warn({depId:y,nodeId:o},"dependency not found in the graph, skipping");continue}this.outputMap.has(y)||(i.push({nodeId:y,resolved:!1,dependencies:[]}),d=!0)}if(d){n.resolved=!0;continue}}const c=await this.processNode(a,this.logger);if(t?.aborted){this.logger.warn({nodeId:o},"processing aborted, skipping output");return}const h=new Set,u=this.dependencyMap.get(o)??[];for(const d of u){const y=this.dependentMap.get(d);y&&(y.delete(o),h.add(d),y.size===0&&this.dependentMap.delete(d))}for(const d of n.dependencies){let y=this.dependentMap.get(d);y||(y=new Set,this.dependentMap.set(d,y)),y.add(o),h.add(d)}if(this.dependentSetHandler)for(const d of h){const y=this.dependentMap.get(d);this.dependentSetHandler(d,y)}this.outputMap.set(o,c),this.outputHandler?.(o,c),this.dependencyMap.set(o,n.dependencies),i.pop()}this.workset.delete(r)}}}class d$ extends Ai{getNodeDependencies(t){return t.operationStatus?.dependencyIds??[]}processNode(){}}class h$ extends Ai{getNodeDependencies(t){const r=[];if(t.kind==="hub"){for(const i of t.hub.inputs??[])r.push(`instance:${i.instanceId}`);for(const i of t.hub.injectionInputs??[])r.push(`hub:${i.hubId}`);return r}for(const i of Object.values(t.instance.inputs??{}))for(const n of i)r.push(`instance:${n.instanceId}`);for(const i of Object.values(t.instance.hubInputs??{}))for(const n of i)r.push(`hub:${n.hubId}`);for(const i of t.instance.injectionInputs??[])r.push(`hub:${i.hubId}`);return r}processNode(t){const r=u=>{const d=this.outputs.get(`hub:${u.hubId}`);if(!d)return{resolvedInputs:[]};if(d.kind!=="hub")throw new Error("Expected hub node");return d},i=u=>{const d=this.outputs.get(`instance:${u.instanceId}`);if(!d)return{component:null,resolvedInputs:[],resolvedOutputs:[]};if(d.kind!=="instance")throw new Error("Expected instance node");return{component:d.component,resolvedInputs:d.resolvedInputs[u.output]??[],resolvedOutputs:d.resolvedOutputs?.[u.output]}};if(t.kind==="hub"){const u=new Map,d=y=>{u.set(`${y.input.instanceId}:${y.input.output}`,y)};for(const y of t.hub.inputs??[]){const{component:_}=i(y),b=_?.outputs[y.output];if(!b){this.logger.warn({msg:"output not found in the component",input:y,component:_});continue}d({input:y,type:b.type})}for(const y of t.hub.injectionInputs??[]){const{resolvedInputs:_}=r(y);for(const b of _)d(b)}return{kind:"hub",resolvedInputs:Array.from(u.values())}}if(t.instance.resolvedInputs)return{kind:"instance",instance:t.instance,component:t.component,resolvedInputs:Sv(t.instance.resolvedInputs,(u,d)=>{const y=t.component.inputs[d];return y?u.map(_=>({input:_,type:y.type})):(this.logger.warn({msg:"input not found in the component",inputName:d,component:t.component}),[])}),resolvedOutputs:t.instance.resolvedOutputs??{},resolvedInjectionInputs:[],matchedInjectionInputs:[]};const n=new Map,o=(u,d)=>{let y=n.get(u);y||(y=new Map,n.set(u,y)),y.set(`${d.input.instanceId}:${d.input.output}`,d)},s=(u,d)=>{const y=t.component.inputs[u];if(!y){this.logger.warn({msg:"input not found in the component",input:d,component:t.component});return}const{component:_,resolvedOutputs:b}=i(d);if(!_){this.logger.warn({instanceId:t.instance.id,input:d},"no output found for the input");return}if(fa(_)){o(u,{input:d,type:y.type});return}if(b)for(const g of b)o(u,{input:g,type:y.type});else o(u,{input:d,type:y.type})};for(const[u,d]of Object.entries(t.instance.inputs??{}))for(const y of d)s(u,y);const a=new Map,c=new Map;for(const u of t.instance.injectionInputs??[]){const{resolvedInputs:d}=r(u);for(const y of d)a.set(`${y.input.instanceId}:${y.input.output}`,y)}for(const[u,d]of Object.entries(t.component.inputs??{})){const y=new Map(a),_=t.instance.hubInputs?.[u]??[];for(const b of _){const{resolvedInputs:g}=r(b);for(const m of g)y.set(`${m.input.instanceId}:${m.input.output}`,m)}for(const b of y.values())if(b.type===d.type){s(u,b.input);const g=`${b.input.instanceId}:${b.input.output}`;a.has(g)&&c.set(g,b)}}const h=Ev(Array.from(n.entries()).map(([u,d])=>[u,Array.from(d.values())]));return{kind:"instance",instance:t.instance,component:t.component,resolvedInputs:h,resolvedOutputs:t.instance.resolvedOutputs,resolvedInjectionInputs:Array.from(a.values()),matchedInjectionInputs:Array.from(c.values())}}}var sp={},zi={};zi.byteLength=g$;zi.toByteArray=v$;zi.fromByteArray=_$;var gt=[],nt=[],p$=typeof Uint8Array<"u"?Uint8Array:Array,to="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var en=0,m$=to.length;en<m$;++en)gt[en]=to[en],nt[to.charCodeAt(en)]=en;nt[45]=62;nt[95]=63;function ap(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function g$(e){var t=ap(e),r=t[0],i=t[1];return(r+i)*3/4-i}function y$(e,t,r){return(t+r)*3/4-r}function v$(e){var t,r=ap(e),i=r[0],n=r[1],o=new p$(y$(e,i,n)),s=0,a=n>0?i-4:i,c;for(c=0;c<a;c+=4)t=nt[e.charCodeAt(c)]<<18|nt[e.charCodeAt(c+1)]<<12|nt[e.charCodeAt(c+2)]<<6|nt[e.charCodeAt(c+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;return n===2&&(t=nt[e.charCodeAt(c)]<<2|nt[e.charCodeAt(c+1)]>>4,o[s++]=t&255),n===1&&(t=nt[e.charCodeAt(c)]<<10|nt[e.charCodeAt(c+1)]<<4|nt[e.charCodeAt(c+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function $$(e){return gt[e>>18&63]+gt[e>>12&63]+gt[e>>6&63]+gt[e&63]}function b$(e,t,r){for(var i,n=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push($$(i));return n.join("")}function _$(e){for(var t,r=e.length,i=r%3,n=[],o=16383,s=0,a=r-i;s<a;s+=o)n.push(b$(e,s,s+o>a?a:s+o));return i===1?(t=e[r-1],n.push(gt[t>>2]+gt[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(gt[t>>10]+gt[t>>4&63]+gt[t<<2&63]+"=")),n.join("")}var ma={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ma.read=function(e,t,r,i,n){var o,s,a=n*8-i-1,c=(1<<a)-1,h=c>>1,u=-7,d=r?n-1:0,y=r?-1:1,_=e[t+d];for(d+=y,o=_&(1<<-u)-1,_>>=-u,u+=a;u>0;o=o*256+e[t+d],d+=y,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=s*256+e[t+d],d+=y,u-=8);if(o===0)o=1-h;else{if(o===c)return s?NaN:(_?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-h}return(_?-1:1)*s*Math.pow(2,o-i)};ma.write=function(e,t,r,i,n,o){var s,a,c,h=o*8-n-1,u=(1<<h)-1,d=u>>1,y=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=i?0:o-1,b=i?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+d>=1?t+=y/c:t+=y*Math.pow(2,1-d),t*c>=2&&(s++,c/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*c-1)*Math.pow(2,n),s=s+d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;e[r+_]=a&255,_+=b,a/=256,n-=8);for(s=s<<n|a,h+=n;h>0;e[r+_]=s&255,_+=b,s/=256,h-=8);e[r+_-b]|=g*128};/*!
|
|
37
|
+
* The buffer module from node.js, for the browser.
|
|
38
|
+
*
|
|
39
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
40
|
+
* @license MIT
|
|
41
|
+
*/(function(e){const t=zi,r=ma,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=E,e.INSPECT_MAX_BYTES=50;const n=2147483647;e.kMaxLength=n;const{Uint8Array:o,ArrayBuffer:s,SharedArrayBuffer:a}=globalThis;u.TYPED_ARRAY_SUPPORT=c(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const k=new o(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,o.prototype),Object.setPrototypeOf(k,l),k.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function h(k){if(k>n)throw new RangeError('The value "'+k+'" is invalid for option "size"');const l=new o(k);return Object.setPrototypeOf(l,u.prototype),l}function u(k,l,p){if(typeof k=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(k)}return d(k,l,p)}u.poolSize=8192;function d(k,l,p){if(typeof k=="string")return g(k,l);if(s.isView(k))return $(k);if(k==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if(Ye(k,s)||k&&Ye(k.buffer,s)||typeof a<"u"&&(Ye(k,a)||k&&Ye(k.buffer,a)))return f(k,l,p);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const x=k.valueOf&&k.valueOf();if(x!=null&&x!==k)return u.from(x,l,p);const z=v(k);if(z)return z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return u.from(k[Symbol.toPrimitive]("string"),l,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}u.from=function(k,l,p){return d(k,l,p)},Object.setPrototypeOf(u.prototype,o.prototype),Object.setPrototypeOf(u,o);function y(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function _(k,l,p){return y(k),k<=0?h(k):l!==void 0?typeof p=="string"?h(k).fill(l,p):h(k).fill(l):h(k)}u.alloc=function(k,l,p){return _(k,l,p)};function b(k){return y(k),h(k<0?0:S(k)|0)}u.allocUnsafe=function(k){return b(k)},u.allocUnsafeSlow=function(k){return b(k)};function g(k,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const p=I(k,l)|0;let x=h(p);const z=x.write(k,l);return z!==p&&(x=x.slice(0,z)),x}function m(k){const l=k.length<0?0:S(k.length)|0,p=h(l);for(let x=0;x<l;x+=1)p[x]=k[x]&255;return p}function $(k){if(Ye(k,o)){const l=new o(k);return f(l.buffer,l.byteOffset,l.byteLength)}return m(k)}function f(k,l,p){if(l<0||k.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(k.byteLength<l+(p||0))throw new RangeError('"length" is outside of buffer bounds');let x;return l===void 0&&p===void 0?x=new o(k):p===void 0?x=new o(k,l):x=new o(k,l,p),Object.setPrototypeOf(x,u.prototype),x}function v(k){if(u.isBuffer(k)){const l=S(k.length)|0,p=h(l);return p.length===0||k.copy(p,0,0,l),p}if(k.length!==void 0)return typeof k.length!="number"||$t(k.length)?h(0):m(k);if(k.type==="Buffer"&&Array.isArray(k.data))return m(k.data)}function S(k){if(k>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return k|0}function E(k){return+k!=k&&(k=0),u.alloc(+k)}u.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==u.prototype},u.compare=function(l,p){if(Ye(l,o)&&(l=u.from(l,l.offset,l.byteLength)),Ye(p,o)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(l)||!u.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===p)return 0;let x=l.length,z=p.length;for(let B=0,M=Math.min(x,z);B<M;++B)if(l[B]!==p[B]){x=l[B],z=p[B];break}return x<z?-1:z<x?1:0},u.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(l,p){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return u.alloc(0);let x;if(p===void 0)for(p=0,x=0;x<l.length;++x)p+=l[x].length;const z=u.allocUnsafe(p);let B=0;for(x=0;x<l.length;++x){let M=l[x];if(Ye(M,o))B+M.length>z.length?(u.isBuffer(M)||(M=u.from(M)),M.copy(z,B)):o.prototype.set.call(z,M,B);else if(u.isBuffer(M))M.copy(z,B);else throw new TypeError('"list" argument must be an Array of Buffers');B+=M.length}return z};function I(k,l){if(u.isBuffer(k))return k.length;if(s.isView(k)||Ye(k,s))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);const p=k.length,x=arguments.length>2&&arguments[2]===!0;if(!x&&p===0)return 0;let z=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return Ze(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Je(k).length;default:if(z)return x?-1:Ze(k).length;l=(""+l).toLowerCase(),z=!0}}u.byteLength=I;function N(k,l,p){let x=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,l>>>=0,p<=l))return"";for(k||(k="utf8");;)switch(k){case"hex":return L(this,l,p);case"utf8":case"utf-8":return ie(this,l,p);case"ascii":return K(this,l,p);case"latin1":case"binary":return T(this,l,p);case"base64":return X(this,l,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,l,p);default:if(x)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),x=!0}}u.prototype._isBuffer=!0;function j(k,l,p){const x=k[l];k[l]=k[p],k[p]=x}u.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<l;p+=2)j(this,p,p+1);return this},u.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<l;p+=4)j(this,p,p+3),j(this,p+1,p+2);return this},u.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<l;p+=8)j(this,p,p+7),j(this,p+1,p+6),j(this,p+2,p+5),j(this,p+3,p+4);return this},u.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?ie(this,0,l):N.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(l){if(!u.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:u.compare(this,l)===0},u.prototype.inspect=function(){let l="";const p=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(l+=" ... "),"<Buffer "+l+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(l,p,x,z,B){if(Ye(l,o)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(p===void 0&&(p=0),x===void 0&&(x=l?l.length:0),z===void 0&&(z=0),B===void 0&&(B=this.length),p<0||x>l.length||z<0||B>this.length)throw new RangeError("out of range index");if(z>=B&&p>=x)return 0;if(z>=B)return-1;if(p>=x)return 1;if(p>>>=0,x>>>=0,z>>>=0,B>>>=0,this===l)return 0;let M=B-z,ge=x-p;const ze=Math.min(M,ge),je=this.slice(z,B),Te=l.slice(p,x);for(let Ie=0;Ie<ze;++Ie)if(je[Ie]!==Te[Ie]){M=je[Ie],ge=Te[Ie];break}return M<ge?-1:ge<M?1:0};function Z(k,l,p,x,z){if(k.length===0)return-1;if(typeof p=="string"?(x=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,$t(p)&&(p=z?0:k.length-1),p<0&&(p=k.length+p),p>=k.length){if(z)return-1;p=k.length-1}else if(p<0)if(z)p=0;else return-1;if(typeof l=="string"&&(l=u.from(l,x)),u.isBuffer(l))return l.length===0?-1:W(k,l,p,x,z);if(typeof l=="number")return l=l&255,typeof o.prototype.indexOf=="function"?z?o.prototype.indexOf.call(k,l,p):o.prototype.lastIndexOf.call(k,l,p):W(k,[l],p,x,z);throw new TypeError("val must be string, number or Buffer")}function W(k,l,p,x,z){let B=1,M=k.length,ge=l.length;if(x!==void 0&&(x=String(x).toLowerCase(),x==="ucs2"||x==="ucs-2"||x==="utf16le"||x==="utf-16le")){if(k.length<2||l.length<2)return-1;B=2,M/=2,ge/=2,p/=2}function ze(Te,Ie){return B===1?Te[Ie]:Te.readUInt16BE(Ie*B)}let je;if(z){let Te=-1;for(je=p;je<M;je++)if(ze(k,je)===ze(l,Te===-1?0:je-Te)){if(Te===-1&&(Te=je),je-Te+1===ge)return Te*B}else Te!==-1&&(je-=je-Te),Te=-1}else for(p+ge>M&&(p=M-ge),je=p;je>=0;je--){let Te=!0;for(let Ie=0;Ie<ge;Ie++)if(ze(k,je+Ie)!==ze(l,Ie)){Te=!1;break}if(Te)return je}return-1}u.prototype.includes=function(l,p,x){return this.indexOf(l,p,x)!==-1},u.prototype.indexOf=function(l,p,x){return Z(this,l,p,x,!0)},u.prototype.lastIndexOf=function(l,p,x){return Z(this,l,p,x,!1)};function Y(k,l,p,x){p=Number(p)||0;const z=k.length-p;x?(x=Number(x),x>z&&(x=z)):x=z;const B=l.length;x>B/2&&(x=B/2);let M;for(M=0;M<x;++M){const ge=parseInt(l.substr(M*2,2),16);if($t(ge))return M;k[p+M]=ge}return M}function Q(k,l,p,x){return Ot(Ze(l,k.length-p),k,p,x)}function oe(k,l,p,x){return Ot(Re(l),k,p,x)}function pe(k,l,p,x){return Ot(Je(l),k,p,x)}function F(k,l,p,x){return Ot(Nt(l,k.length-p),k,p,x)}u.prototype.write=function(l,p,x,z){if(p===void 0)z="utf8",x=this.length,p=0;else if(x===void 0&&typeof p=="string")z=p,x=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(x)?(x=x>>>0,z===void 0&&(z="utf8")):(z=x,x=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const B=this.length-p;if((x===void 0||x>B)&&(x=B),l.length>0&&(x<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let M=!1;for(;;)switch(z){case"hex":return Y(this,l,p,x);case"utf8":case"utf-8":return Q(this,l,p,x);case"ascii":case"latin1":case"binary":return oe(this,l,p,x);case"base64":return pe(this,l,p,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,l,p,x);default:if(M)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),M=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(k,l,p){return l===0&&p===k.length?t.fromByteArray(k):t.fromByteArray(k.slice(l,p))}function ie(k,l,p){p=Math.min(k.length,p);const x=[];let z=l;for(;z<p;){const B=k[z];let M=null,ge=B>239?4:B>223?3:B>191?2:1;if(z+ge<=p){let ze,je,Te,Ie;switch(ge){case 1:B<128&&(M=B);break;case 2:ze=k[z+1],(ze&192)===128&&(Ie=(B&31)<<6|ze&63,Ie>127&&(M=Ie));break;case 3:ze=k[z+1],je=k[z+2],(ze&192)===128&&(je&192)===128&&(Ie=(B&15)<<12|(ze&63)<<6|je&63,Ie>2047&&(Ie<55296||Ie>57343)&&(M=Ie));break;case 4:ze=k[z+1],je=k[z+2],Te=k[z+3],(ze&192)===128&&(je&192)===128&&(Te&192)===128&&(Ie=(B&15)<<18|(ze&63)<<12|(je&63)<<6|Te&63,Ie>65535&&Ie<1114112&&(M=Ie))}}M===null?(M=65533,ge=1):M>65535&&(M-=65536,x.push(M>>>10&1023|55296),M=56320|M&1023),x.push(M),z+=ge}return ce(x)}const re=4096;function ce(k){const l=k.length;if(l<=re)return String.fromCharCode.apply(String,k);let p="",x=0;for(;x<l;)p+=String.fromCharCode.apply(String,k.slice(x,x+=re));return p}function K(k,l,p){let x="";p=Math.min(k.length,p);for(let z=l;z<p;++z)x+=String.fromCharCode(k[z]&127);return x}function T(k,l,p){let x="";p=Math.min(k.length,p);for(let z=l;z<p;++z)x+=String.fromCharCode(k[z]);return x}function L(k,l,p){const x=k.length;(!l||l<0)&&(l=0),(!p||p<0||p>x)&&(p=x);let z="";for(let B=l;B<p;++B)z+=In[k[B]];return z}function P(k,l,p){const x=k.slice(l,p);let z="";for(let B=0;B<x.length-1;B+=2)z+=String.fromCharCode(x[B]+x[B+1]*256);return z}u.prototype.slice=function(l,p){const x=this.length;l=~~l,p=p===void 0?x:~~p,l<0?(l+=x,l<0&&(l=0)):l>x&&(l=x),p<0?(p+=x,p<0&&(p=0)):p>x&&(p=x),p<l&&(p=l);const z=this.subarray(l,p);return Object.setPrototypeOf(z,u.prototype),z};function w(k,l,p){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+l>p)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(l,p,x){l=l>>>0,p=p>>>0,x||w(l,p,this.length);let z=this[l],B=1,M=0;for(;++M<p&&(B*=256);)z+=this[l+M]*B;return z},u.prototype.readUintBE=u.prototype.readUIntBE=function(l,p,x){l=l>>>0,p=p>>>0,x||w(l,p,this.length);let z=this[l+--p],B=1;for(;p>0&&(B*=256);)z+=this[l+--p]*B;return z},u.prototype.readUint8=u.prototype.readUInt8=function(l,p){return l=l>>>0,p||w(l,1,this.length),this[l]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(l,p){return l=l>>>0,p||w(l,2,this.length),this[l]|this[l+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(l,p){return l=l>>>0,p||w(l,2,this.length),this[l]<<8|this[l+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(l,p){return l=l>>>0,p||w(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(l,p){return l=l>>>0,p||w(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},u.prototype.readBigUInt64LE=at(function(l){l=l>>>0,ae(l,"offset");const p=this[l],x=this[l+7];(p===void 0||x===void 0)&&we(l,this.length-8);const z=p+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,B=this[++l]+this[++l]*2**8+this[++l]*2**16+x*2**24;return BigInt(z)+(BigInt(B)<<BigInt(32))}),u.prototype.readBigUInt64BE=at(function(l){l=l>>>0,ae(l,"offset");const p=this[l],x=this[l+7];(p===void 0||x===void 0)&&we(l,this.length-8);const z=p*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],B=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+x;return(BigInt(z)<<BigInt(32))+BigInt(B)}),u.prototype.readIntLE=function(l,p,x){l=l>>>0,p=p>>>0,x||w(l,p,this.length);let z=this[l],B=1,M=0;for(;++M<p&&(B*=256);)z+=this[l+M]*B;return B*=128,z>=B&&(z-=Math.pow(2,8*p)),z},u.prototype.readIntBE=function(l,p,x){l=l>>>0,p=p>>>0,x||w(l,p,this.length);let z=p,B=1,M=this[l+--z];for(;z>0&&(B*=256);)M+=this[l+--z]*B;return B*=128,M>=B&&(M-=Math.pow(2,8*p)),M},u.prototype.readInt8=function(l,p){return l=l>>>0,p||w(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},u.prototype.readInt16LE=function(l,p){l=l>>>0,p||w(l,2,this.length);const x=this[l]|this[l+1]<<8;return x&32768?x|4294901760:x},u.prototype.readInt16BE=function(l,p){l=l>>>0,p||w(l,2,this.length);const x=this[l+1]|this[l]<<8;return x&32768?x|4294901760:x},u.prototype.readInt32LE=function(l,p){return l=l>>>0,p||w(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},u.prototype.readInt32BE=function(l,p){return l=l>>>0,p||w(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},u.prototype.readBigInt64LE=at(function(l){l=l>>>0,ae(l,"offset");const p=this[l],x=this[l+7];(p===void 0||x===void 0)&&we(l,this.length-8);const z=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(x<<24);return(BigInt(z)<<BigInt(32))+BigInt(p+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),u.prototype.readBigInt64BE=at(function(l){l=l>>>0,ae(l,"offset");const p=this[l],x=this[l+7];(p===void 0||x===void 0)&&we(l,this.length-8);const z=(p<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(z)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+x)}),u.prototype.readFloatLE=function(l,p){return l=l>>>0,p||w(l,4,this.length),r.read(this,l,!0,23,4)},u.prototype.readFloatBE=function(l,p){return l=l>>>0,p||w(l,4,this.length),r.read(this,l,!1,23,4)},u.prototype.readDoubleLE=function(l,p){return l=l>>>0,p||w(l,8,this.length),r.read(this,l,!0,52,8)},u.prototype.readDoubleBE=function(l,p){return l=l>>>0,p||w(l,8,this.length),r.read(this,l,!1,52,8)};function O(k,l,p,x,z,B){if(!u.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>z||l<B)throw new RangeError('"value" argument is out of bounds');if(p+x>k.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(l,p,x,z){if(l=+l,p=p>>>0,x=x>>>0,!z){const ge=Math.pow(2,8*x)-1;O(this,l,p,x,ge,0)}let B=1,M=0;for(this[p]=l&255;++M<x&&(B*=256);)this[p+M]=l/B&255;return p+x},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(l,p,x,z){if(l=+l,p=p>>>0,x=x>>>0,!z){const ge=Math.pow(2,8*x)-1;O(this,l,p,x,ge,0)}let B=x-1,M=1;for(this[p+B]=l&255;--B>=0&&(M*=256);)this[p+B]=l/M&255;return p+x},u.prototype.writeUint8=u.prototype.writeUInt8=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,1,255,0),this[p]=l&255,p+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,2,65535,0),this[p]=l&255,this[p+1]=l>>>8,p+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,2,65535,0),this[p]=l>>>8,this[p+1]=l&255,p+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,4,4294967295,0),this[p+3]=l>>>24,this[p+2]=l>>>16,this[p+1]=l>>>8,this[p]=l&255,p+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,4,4294967295,0),this[p]=l>>>24,this[p+1]=l>>>16,this[p+2]=l>>>8,this[p+3]=l&255,p+4};function R(k,l,p,x,z){ne(l,x,z,k,p,7);let B=Number(l&BigInt(4294967295));k[p++]=B,B=B>>8,k[p++]=B,B=B>>8,k[p++]=B,B=B>>8,k[p++]=B;let M=Number(l>>BigInt(32)&BigInt(4294967295));return k[p++]=M,M=M>>8,k[p++]=M,M=M>>8,k[p++]=M,M=M>>8,k[p++]=M,p}function ee(k,l,p,x,z){ne(l,x,z,k,p,7);let B=Number(l&BigInt(4294967295));k[p+7]=B,B=B>>8,k[p+6]=B,B=B>>8,k[p+5]=B,B=B>>8,k[p+4]=B;let M=Number(l>>BigInt(32)&BigInt(4294967295));return k[p+3]=M,M=M>>8,k[p+2]=M,M=M>>8,k[p+1]=M,M=M>>8,k[p]=M,p+8}u.prototype.writeBigUInt64LE=at(function(l,p=0){return R(this,l,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=at(function(l,p=0){return ee(this,l,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(l,p,x,z){if(l=+l,p=p>>>0,!z){const ze=Math.pow(2,8*x-1);O(this,l,p,x,ze-1,-ze)}let B=0,M=1,ge=0;for(this[p]=l&255;++B<x&&(M*=256);)l<0&&ge===0&&this[p+B-1]!==0&&(ge=1),this[p+B]=(l/M>>0)-ge&255;return p+x},u.prototype.writeIntBE=function(l,p,x,z){if(l=+l,p=p>>>0,!z){const ze=Math.pow(2,8*x-1);O(this,l,p,x,ze-1,-ze)}let B=x-1,M=1,ge=0;for(this[p+B]=l&255;--B>=0&&(M*=256);)l<0&&ge===0&&this[p+B+1]!==0&&(ge=1),this[p+B]=(l/M>>0)-ge&255;return p+x},u.prototype.writeInt8=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,1,127,-128),l<0&&(l=255+l+1),this[p]=l&255,p+1},u.prototype.writeInt16LE=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,2,32767,-32768),this[p]=l&255,this[p+1]=l>>>8,p+2},u.prototype.writeInt16BE=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,2,32767,-32768),this[p]=l>>>8,this[p+1]=l&255,p+2},u.prototype.writeInt32LE=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,4,2147483647,-2147483648),this[p]=l&255,this[p+1]=l>>>8,this[p+2]=l>>>16,this[p+3]=l>>>24,p+4},u.prototype.writeInt32BE=function(l,p,x){return l=+l,p=p>>>0,x||O(this,l,p,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[p]=l>>>24,this[p+1]=l>>>16,this[p+2]=l>>>8,this[p+3]=l&255,p+4},u.prototype.writeBigInt64LE=at(function(l,p=0){return R(this,l,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=at(function(l,p=0){return ee(this,l,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function te(k,l,p,x,z,B){if(p+x>k.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function me(k,l,p,x,z){return l=+l,p=p>>>0,z||te(k,l,p,4),r.write(k,l,p,x,23,4),p+4}u.prototype.writeFloatLE=function(l,p,x){return me(this,l,p,!0,x)},u.prototype.writeFloatBE=function(l,p,x){return me(this,l,p,!1,x)};function se(k,l,p,x,z){return l=+l,p=p>>>0,z||te(k,l,p,8),r.write(k,l,p,x,52,8),p+8}u.prototype.writeDoubleLE=function(l,p,x){return se(this,l,p,!0,x)},u.prototype.writeDoubleBE=function(l,p,x){return se(this,l,p,!1,x)},u.prototype.copy=function(l,p,x,z){if(!u.isBuffer(l))throw new TypeError("argument should be a Buffer");if(x||(x=0),!z&&z!==0&&(z=this.length),p>=l.length&&(p=l.length),p||(p=0),z>0&&z<x&&(z=x),z===x||l.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(x<0||x>=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),l.length-p<z-x&&(z=l.length-p+x);const B=z-x;return this===l&&typeof o.prototype.copyWithin=="function"?this.copyWithin(p,x,z):o.prototype.set.call(l,this.subarray(x,z),p),B},u.prototype.fill=function(l,p,x,z){if(typeof l=="string"){if(typeof p=="string"?(z=p,p=0,x=this.length):typeof x=="string"&&(z=x,x=this.length),z!==void 0&&typeof z!="string")throw new TypeError("encoding must be a string");if(typeof z=="string"&&!u.isEncoding(z))throw new TypeError("Unknown encoding: "+z);if(l.length===1){const M=l.charCodeAt(0);(z==="utf8"&&M<128||z==="latin1")&&(l=M)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(p<0||this.length<p||this.length<x)throw new RangeError("Out of range index");if(x<=p)return this;p=p>>>0,x=x===void 0?this.length:x>>>0,l||(l=0);let B;if(typeof l=="number")for(B=p;B<x;++B)this[B]=l;else{const M=u.isBuffer(l)?l:u.from(l,z),ge=M.length;if(ge===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(B=0;B<x-p;++B)this[B+p]=M[B%ge]}return this};const A={};function U(k,l,p){A[k]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${k}]`,this.stack,delete this.name}get code(){return k}set code(z){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:z,writable:!0})}toString(){return`${this.name} [${k}]: ${this.message}`}}}U("ERR_BUFFER_OUT_OF_BOUNDS",function(k){return k?`${k} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(k,l){return`The "${k}" argument must be of type number. Received type ${typeof l}`},TypeError),U("ERR_OUT_OF_RANGE",function(k,l,p){let x=`The value of "${k}" is out of range.`,z=p;return Number.isInteger(p)&&Math.abs(p)>2**32?z=q(String(p)):typeof p=="bigint"&&(z=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(z=q(z)),z+="n"),x+=` It must be ${l}. Received ${z}`,x},RangeError);function q(k){let l="",p=k.length;const x=k[0]==="-"?1:0;for(;p>=x+4;p-=3)l=`_${k.slice(p-3,p)}${l}`;return`${k.slice(0,p)}${l}`}function J(k,l,p){ae(l,"offset"),(k[l]===void 0||k[l+p]===void 0)&&we(l,k.length-(p+1))}function ne(k,l,p,x,z,B){if(k>p||k<l){const M=typeof l=="bigint"?"n":"";let ge;throw l===0||l===BigInt(0)?ge=`>= 0${M} and < 2${M} ** ${(B+1)*8}${M}`:ge=`>= -(2${M} ** ${(B+1)*8-1}${M}) and < 2 ** ${(B+1)*8-1}${M}`,new A.ERR_OUT_OF_RANGE("value",ge,k)}J(x,z,B)}function ae(k,l){if(typeof k!="number")throw new A.ERR_INVALID_ARG_TYPE(l,"number",k)}function we(k,l,p){throw Math.floor(k)!==k?(ae(k,p),new A.ERR_OUT_OF_RANGE("offset","an integer",k)):l<0?new A.ERR_BUFFER_OUT_OF_BOUNDS:new A.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,k)}const Le=/[^+/0-9A-Za-z-_]/g;function Ke(k){if(k=k.split("=")[0],k=k.trim().replace(Le,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function Ze(k,l){l=l||1/0;let p;const x=k.length;let z=null;const B=[];for(let M=0;M<x;++M){if(p=k.charCodeAt(M),p>55295&&p<57344){if(!z){if(p>56319){(l-=3)>-1&&B.push(239,191,189);continue}else if(M+1===x){(l-=3)>-1&&B.push(239,191,189);continue}z=p;continue}if(p<56320){(l-=3)>-1&&B.push(239,191,189),z=p;continue}p=(z-55296<<10|p-56320)+65536}else z&&(l-=3)>-1&&B.push(239,191,189);if(z=null,p<128){if((l-=1)<0)break;B.push(p)}else if(p<2048){if((l-=2)<0)break;B.push(p>>6|192,p&63|128)}else if(p<65536){if((l-=3)<0)break;B.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((l-=4)<0)break;B.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return B}function Re(k){const l=[];for(let p=0;p<k.length;++p)l.push(k.charCodeAt(p)&255);return l}function Nt(k,l){let p,x,z;const B=[];for(let M=0;M<k.length&&!((l-=2)<0);++M)p=k.charCodeAt(M),x=p>>8,z=p%256,B.push(z),B.push(x);return B}function Je(k){return t.toByteArray(Ke(k))}function Ot(k,l,p,x){let z;for(z=0;z<x&&!(z+p>=l.length||z>=k.length);++z)l[z+p]=k[z];return z}function Ye(k,l){return k instanceof l||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===l.name}function $t(k){return k!==k}const In=function(){const k="0123456789abcdef",l=new Array(256);for(let p=0;p<16;++p){const x=p*16;for(let z=0;z<16;++z)l[x+z]=k[p]+k[z]}return l}();function at(k){return typeof BigInt>"u"?er:k}function er(){throw new Error("BigInt not supported")}})(sp);const Pt=sp.Buffer;function w$(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}const k$=e=>new TextEncoder().encode(e);typeof Pt<"u"&&Pt.from;function S$(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}function I$(e){return new E$().update(e).digest()}var E$=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var r,i;try{for(var n=w$(t),o=n.next();!o.done;o=n.next()){var s=o.value;this.checksum=this.checksum>>>8^N$[(this.checksum^s)&255]}}catch(a){r={error:a}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),x$=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],N$=S$(x$);function O$(e){const t=e.length;let r=0,i=0;for(;i<t;){let n=e.charCodeAt(i++);if((n&4294967168)===0){r++;continue}else if((n&4294965248)===0)r+=2;else{if(n>=55296&&n<=56319&&i<t){const o=e.charCodeAt(i);(o&64512)===56320&&(++i,n=((n&1023)<<10)+(o&1023)+65536)}(n&4294901760)===0?r+=3:r+=4}}return r}function j$(e,t,r){const i=e.length;let n=r,o=0;for(;o<i;){let s=e.charCodeAt(o++);if((s&4294967168)===0){t[n++]=s;continue}else if((s&4294965248)===0)t[n++]=s>>6&31|192;else{if(s>=55296&&s<=56319&&o<i){const a=e.charCodeAt(o);(a&64512)===56320&&(++o,s=((s&1023)<<10)+(a&1023)+65536)}(s&4294901760)===0?(t[n++]=s>>12&15|224,t[n++]=s>>6&63|128):(t[n++]=s>>18&7|240,t[n++]=s>>12&63|128,t[n++]=s>>6&63|128)}t[n++]=s&63|128}}const A$=new TextEncoder,z$=50;function T$(e,t,r){A$.encodeInto(e,t.subarray(r))}function P$(e,t,r){e.length>z$?T$(e,t,r):j$(e,t,r)}new TextDecoder;class Lr{constructor(t,r){this.type=t,this.data=r}}class ci extends Error{constructor(t){super(t);const r=Object.create(ci.prototype);Object.setPrototypeOf(this,r),Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:ci.name})}}function D$(e,t,r){const i=r/4294967296,n=r;e.setUint32(t,i),e.setUint32(t+4,n)}function up(e,t,r){const i=Math.floor(r/4294967296),n=r;e.setUint32(t,i),e.setUint32(t+4,n)}function U$(e,t){const r=e.getInt32(t),i=e.getUint32(t+4);return r*4294967296+i}const C$=-1,B$=4294967296-1,R$=17179869184-1;function F$({sec:e,nsec:t}){if(e>=0&&t>=0&&e<=R$)if(t===0&&e<=B$){const r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e),r}else{const r=e/4294967296,i=e&4294967295,n=new Uint8Array(8),o=new DataView(n.buffer);return o.setUint32(0,t<<2|r&3),o.setUint32(4,i),n}else{const r=new Uint8Array(12),i=new DataView(r.buffer);return i.setUint32(0,t),up(i,4,e),r}}function L$(e){const t=e.getTime(),r=Math.floor(t/1e3),i=(t-r*1e3)*1e6,n=Math.floor(i/1e9);return{sec:r+n,nsec:i-n*1e9}}function Z$(e){if(e instanceof Date){const t=L$(e);return F$(t)}else return null}function M$(e){const t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:{const r=t.getUint32(0),i=t.getUint32(4),n=(r&3)*4294967296+i,o=r>>>2;return{sec:n,nsec:o}}case 12:{const r=U$(t,4),i=t.getUint32(0);return{sec:r,nsec:i}}default:throw new ci(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${e.length}`)}}function q$(e){const t=M$(e);return new Date(t.sec*1e3+t.nsec/1e6)}const V$={type:C$,encode:Z$,decode:q$};class bo{constructor(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(V$)}register({type:t,encode:r,decode:i}){if(t>=0)this.encoders[t]=r,this.decoders[t]=i;else{const n=-1-t;this.builtInEncoders[n]=r,this.builtInDecoders[n]=i}}tryToEncode(t,r){for(let i=0;i<this.builtInEncoders.length;i++){const n=this.builtInEncoders[i];if(n!=null){const o=n(t,r);if(o!=null){const s=-1-i;return new Lr(s,o)}}}for(let i=0;i<this.encoders.length;i++){const n=this.encoders[i];if(n!=null){const o=n(t,r);if(o!=null){const s=i;return new Lr(s,o)}}}return t instanceof Lr?t:null}decode(t,r,i){const n=r<0?this.builtInDecoders[-1-r]:this.decoders[r];return n?n(t,r,i):new Lr(r,t)}}bo.defaultCodec=new bo;function K$(e){return e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer}function J$(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):K$(e)?new Uint8Array(e):Uint8Array.from(e)}const G$=100,W$=2048;class ga{constructor(t){this.entered=!1,this.extensionCodec=t?.extensionCodec??bo.defaultCodec,this.context=t?.context,this.useBigInt64=t?.useBigInt64??!1,this.maxDepth=t?.maxDepth??G$,this.initialBufferSize=t?.initialBufferSize??W$,this.sortKeys=t?.sortKeys??!1,this.forceFloat32=t?.forceFloat32??!1,this.ignoreUndefined=t?.ignoreUndefined??!1,this.forceIntegerToFloat=t?.forceIntegerToFloat??!1,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}clone(){return new ga({extensionCodec:this.extensionCodec,context:this.context,useBigInt64:this.useBigInt64,maxDepth:this.maxDepth,initialBufferSize:this.initialBufferSize,sortKeys:this.sortKeys,forceFloat32:this.forceFloat32,ignoreUndefined:this.ignoreUndefined,forceIntegerToFloat:this.forceIntegerToFloat})}reinitializeState(){this.pos=0}encodeSharedRef(t){if(this.entered)return this.clone().encodeSharedRef(t);try{return this.entered=!0,this.reinitializeState(),this.doEncode(t,1),this.bytes.subarray(0,this.pos)}finally{this.entered=!1}}encode(t){if(this.entered)return this.clone().encode(t);try{return this.entered=!0,this.reinitializeState(),this.doEncode(t,1),this.bytes.slice(0,this.pos)}finally{this.entered=!1}}doEncode(t,r){if(r>this.maxDepth)throw new Error(`Too deep objects in depth ${r}`);t==null?this.encodeNil():typeof t=="boolean"?this.encodeBoolean(t):typeof t=="number"?this.forceIntegerToFloat?this.encodeNumberAsFloat(t):this.encodeNumber(t):typeof t=="string"?this.encodeString(t):this.useBigInt64&&typeof t=="bigint"?this.encodeBigInt64(t):this.encodeObject(t,r)}ensureBufferSizeToWrite(t){const r=this.pos+t;this.view.byteLength<r&&this.resizeBuffer(r*2)}resizeBuffer(t){const r=new ArrayBuffer(t),i=new Uint8Array(r),n=new DataView(r);i.set(this.bytes),this.view=n,this.bytes=i}encodeNil(){this.writeU8(192)}encodeBoolean(t){t===!1?this.writeU8(194):this.writeU8(195)}encodeNumber(t){!this.forceIntegerToFloat&&Number.isSafeInteger(t)?t>=0?t<128?this.writeU8(t):t<256?(this.writeU8(204),this.writeU8(t)):t<65536?(this.writeU8(205),this.writeU16(t)):t<4294967296?(this.writeU8(206),this.writeU32(t)):this.useBigInt64?this.encodeNumberAsFloat(t):(this.writeU8(207),this.writeU64(t)):t>=-32?this.writeU8(224|t+32):t>=-128?(this.writeU8(208),this.writeI8(t)):t>=-32768?(this.writeU8(209),this.writeI16(t)):t>=-2147483648?(this.writeU8(210),this.writeI32(t)):this.useBigInt64?this.encodeNumberAsFloat(t):(this.writeU8(211),this.writeI64(t)):this.encodeNumberAsFloat(t)}encodeNumberAsFloat(t){this.forceFloat32?(this.writeU8(202),this.writeF32(t)):(this.writeU8(203),this.writeF64(t))}encodeBigInt64(t){t>=BigInt(0)?(this.writeU8(207),this.writeBigUint64(t)):(this.writeU8(211),this.writeBigInt64(t))}writeStringHeader(t){if(t<32)this.writeU8(160+t);else if(t<256)this.writeU8(217),this.writeU8(t);else if(t<65536)this.writeU8(218),this.writeU16(t);else if(t<4294967296)this.writeU8(219),this.writeU32(t);else throw new Error(`Too long string: ${t} bytes in UTF-8`)}encodeString(t){const i=O$(t);this.ensureBufferSizeToWrite(5+i),this.writeStringHeader(i),P$(t,this.bytes,this.pos),this.pos+=i}encodeObject(t,r){const i=this.extensionCodec.tryToEncode(t,this.context);if(i!=null)this.encodeExtension(i);else if(Array.isArray(t))this.encodeArray(t,r);else if(ArrayBuffer.isView(t))this.encodeBinary(t);else if(typeof t=="object")this.encodeMap(t,r);else throw new Error(`Unrecognized object: ${Object.prototype.toString.apply(t)}`)}encodeBinary(t){const r=t.byteLength;if(r<256)this.writeU8(196),this.writeU8(r);else if(r<65536)this.writeU8(197),this.writeU16(r);else if(r<4294967296)this.writeU8(198),this.writeU32(r);else throw new Error(`Too large binary: ${r}`);const i=J$(t);this.writeU8a(i)}encodeArray(t,r){const i=t.length;if(i<16)this.writeU8(144+i);else if(i<65536)this.writeU8(220),this.writeU16(i);else if(i<4294967296)this.writeU8(221),this.writeU32(i);else throw new Error(`Too large array: ${i}`);for(const n of t)this.doEncode(n,r+1)}countWithoutUndefined(t,r){let i=0;for(const n of r)t[n]!==void 0&&i++;return i}encodeMap(t,r){const i=Object.keys(t);this.sortKeys&&i.sort();const n=this.ignoreUndefined?this.countWithoutUndefined(t,i):i.length;if(n<16)this.writeU8(128+n);else if(n<65536)this.writeU8(222),this.writeU16(n);else if(n<4294967296)this.writeU8(223),this.writeU32(n);else throw new Error(`Too large map object: ${n}`);for(const o of i){const s=t[o];this.ignoreUndefined&&s===void 0||(this.encodeString(o),this.doEncode(s,r+1))}}encodeExtension(t){if(typeof t.data=="function"){const i=t.data(this.pos+6),n=i.length;if(n>=4294967296)throw new Error(`Too large extension object: ${n}`);this.writeU8(201),this.writeU32(n),this.writeI8(t.type),this.writeU8a(i);return}const r=t.data.length;if(r===1)this.writeU8(212);else if(r===2)this.writeU8(213);else if(r===4)this.writeU8(214);else if(r===8)this.writeU8(215);else if(r===16)this.writeU8(216);else if(r<256)this.writeU8(199),this.writeU8(r);else if(r<65536)this.writeU8(200),this.writeU16(r);else if(r<4294967296)this.writeU8(201),this.writeU32(r);else throw new Error(`Too large extension object: ${r}`);this.writeI8(t.type),this.writeU8a(t.data)}writeU8(t){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,t),this.pos++}writeU8a(t){const r=t.length;this.ensureBufferSizeToWrite(r),this.bytes.set(t,this.pos),this.pos+=r}writeI8(t){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,t),this.pos++}writeU16(t){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,t),this.pos+=2}writeI16(t){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,t),this.pos+=2}writeU32(t){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,t),this.pos+=4}writeI32(t){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,t),this.pos+=4}writeF32(t){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,t),this.pos+=4}writeF64(t){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,t),this.pos+=8}writeU64(t){this.ensureBufferSizeToWrite(8),D$(this.view,this.pos,t),this.pos+=8}writeI64(t){this.ensureBufferSizeToWrite(8),up(this.view,this.pos,t),this.pos+=8}writeBigUint64(t){this.ensureBufferSizeToWrite(8),this.view.setBigUint64(this.pos,t),this.pos+=8}writeBigInt64(t){this.ensureBufferSizeToWrite(8),this.view.setBigInt64(this.pos,t),this.pos+=8}}function H$(e,t){return new ga(t).encodeSharedRef(e)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function X$(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ya(e,...t){if(!X$(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function lc(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Y$(e,t){ya(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function _o(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function no(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function mt(e,t){return e<<32-t|e>>>t}function Q$(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function cp(e){return typeof e=="string"&&(e=Q$(e)),ya(e),e}class eb{}function tb(e){const t=i=>e().update(cp(i)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function nb(e,t,r,i){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,i);const n=BigInt(32),o=BigInt(4294967295),s=Number(r>>n&o),a=Number(r&o),c=i?4:0,h=i?0:4;e.setUint32(t+c,s,i),e.setUint32(t+h,a,i)}function rb(e,t,r){return e&t^~e&r}function ib(e,t,r){return e&t^e&r^t&r}class ob extends eb{constructor(t,r,i,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(t),this.view=no(this.buffer)}update(t){lc(this),t=cp(t),ya(t);const{view:r,buffer:i,blockLen:n}=this,o=t.length;for(let s=0;s<o;){const a=Math.min(n-this.pos,o-s);if(a===n){const c=no(t);for(;n<=o-s;s+=n)this.process(c,s);continue}i.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===n&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){lc(this),Y$(t,this),this.finished=!0;const{buffer:r,view:i,blockLen:n,isLE:o}=this;let{pos:s}=this;r[s++]=128,_o(this.buffer.subarray(s)),this.padOffset>n-s&&(this.process(i,0),s=0);for(let d=s;d<n;d++)r[d]=0;nb(i,n-8,BigInt(this.length*8),o),this.process(i,0);const a=no(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const h=c/4,u=this.get();if(h>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<h;d++)a.setUint32(4*d,u[d],o)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const i=t.slice(0,r);return this.destroy(),i}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:i,length:n,finished:o,destroyed:s,pos:a}=this;return t.destroyed=s,t.finished=o,t.length=n,t.pos=a,n%r&&t.buffer.set(i),t}clone(){return this._cloneInto()}}const At=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),sb=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),zt=new Uint32Array(64);class ab extends ob{constructor(t=32){super(64,t,8,!1),this.A=At[0]|0,this.B=At[1]|0,this.C=At[2]|0,this.D=At[3]|0,this.E=At[4]|0,this.F=At[5]|0,this.G=At[6]|0,this.H=At[7]|0}get(){const{A:t,B:r,C:i,D:n,E:o,F:s,G:a,H:c}=this;return[t,r,i,n,o,s,a,c]}set(t,r,i,n,o,s,a,c){this.A=t|0,this.B=r|0,this.C=i|0,this.D=n|0,this.E=o|0,this.F=s|0,this.G=a|0,this.H=c|0}process(t,r){for(let d=0;d<16;d++,r+=4)zt[d]=t.getUint32(r,!1);for(let d=16;d<64;d++){const y=zt[d-15],_=zt[d-2],b=mt(y,7)^mt(y,18)^y>>>3,g=mt(_,17)^mt(_,19)^_>>>10;zt[d]=g+zt[d-7]+b+zt[d-16]|0}let{A:i,B:n,C:o,D:s,E:a,F:c,G:h,H:u}=this;for(let d=0;d<64;d++){const y=mt(a,6)^mt(a,11)^mt(a,25),_=u+y+rb(a,c,h)+sb[d]+zt[d]|0,g=(mt(i,2)^mt(i,13)^mt(i,22))+ib(i,n,o)|0;u=h,h=c,c=a,a=s+_|0,s=o,o=n,n=i,i=_+g|0}i=i+this.A|0,n=n+this.B|0,o=o+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,h=h+this.G|0,u=u+this.H|0,this.set(i,n,o,s,a,c,h,u)}roundClean(){_o(zt)}destroy(){this.set(0,0,0,0,0,0,0,0),_o(this.buffer)}}const ub=tb(()=>new ab);/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */function cb(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function lb(e,...t){if(!cb(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}const fb=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",db=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function hb(e){if(lb(e),fb)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=db[e[r]];return t}function Zr(e){const t=new ArrayBuffer(4);return new DataView(t).setInt32(0,e,!0),new Uint8Array(t)}const va=Symbol.for("yaml.alias"),wo=Symbol.for("yaml.document"),Dt=Symbol.for("yaml.map"),lp=Symbol.for("yaml.pair"),yt=Symbol.for("yaml.scalar"),_n=Symbol.for("yaml.seq"),st=Symbol.for("yaml.node.type"),Xt=e=>!!e&&typeof e=="object"&&e[st]===va,Ti=e=>!!e&&typeof e=="object"&&e[st]===wo,Hn=e=>!!e&&typeof e=="object"&&e[st]===Dt,Ue=e=>!!e&&typeof e=="object"&&e[st]===lp,xe=e=>!!e&&typeof e=="object"&&e[st]===yt,Xn=e=>!!e&&typeof e=="object"&&e[st]===_n;function Pe(e){if(e&&typeof e=="object")switch(e[st]){case Dt:case _n:return!0}return!1}function De(e){if(e&&typeof e=="object")switch(e[st]){case va:case Dt:case yt:case _n:return!0}return!1}const fp=e=>(xe(e)||Pe(e))&&!!e.anchor,Lt=Symbol("break visit"),pb=Symbol("skip children"),Dn=Symbol("remove node");function wn(e,t){const r=mb(t);Ti(e)?on(null,e.contents,r,Object.freeze([e]))===Dn&&(e.contents=null):on(null,e,r,Object.freeze([]))}wn.BREAK=Lt;wn.SKIP=pb;wn.REMOVE=Dn;function on(e,t,r,i){const n=gb(e,t,r,i);if(De(n)||Ue(n))return yb(e,i,n),on(e,n,r,i);if(typeof n!="symbol"){if(Pe(t)){i=Object.freeze(i.concat(t));for(let o=0;o<t.items.length;++o){const s=on(o,t.items[o],r,i);if(typeof s=="number")o=s-1;else{if(s===Lt)return Lt;s===Dn&&(t.items.splice(o,1),o-=1)}}}else if(Ue(t)){i=Object.freeze(i.concat(t));const o=on("key",t.key,r,i);if(o===Lt)return Lt;o===Dn&&(t.key=null);const s=on("value",t.value,r,i);if(s===Lt)return Lt;s===Dn&&(t.value=null)}}return n}function mb(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function gb(e,t,r,i){if(typeof r=="function")return r(e,t,i);if(Hn(t))return r.Map?.(e,t,i);if(Xn(t))return r.Seq?.(e,t,i);if(Ue(t))return r.Pair?.(e,t,i);if(xe(t))return r.Scalar?.(e,t,i);if(Xt(t))return r.Alias?.(e,t,i)}function yb(e,t,r){const i=t[t.length-1];if(Pe(i))i.items[e]=r;else if(Ue(i))e==="key"?i.key=r:i.value=r;else if(Ti(i))i.contents=r;else{const n=Xt(i)?"alias":"scalar";throw new Error(`Cannot replace node with ${n} parent`)}}const vb={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},$b=e=>e.replace(/[!,[\]{}]/g,t=>vb[t]);class We{constructor(t,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},We.defaultYaml,t),this.tags=Object.assign({},We.defaultTags,r)}clone(){const t=new We(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new We(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:We.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},We.defaultTags);break}return t}add(t,r){this.atNextDocument&&(this.yaml={explicit:We.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},We.defaultTags),this.atNextDocument=!1);const i=t.trim().split(/[ \t]+/),n=i.shift();switch(n){case"%TAG":{if(i.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;const[o,s]=i;return this.tags[o]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[o]=i;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const s=/^\d+\.\d+$/.test(o);return r(6,`Unsupported YAML version ${o}`,s),!1}}default:return r(0,`Unknown directive ${n}`,!0),!1}}tagName(t,r){if(t==="!")return"!";if(t[0]!=="!")return r(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const s=t.slice(2,-1);return s==="!"||s==="!!"?(r(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&r("Verbatim tags must end with a >"),s)}const[,i,n]=t.match(/^(.*!)([^!]*)$/s);n||r(`The ${t} tag has no suffix`);const o=this.tags[i];if(o)try{return o+decodeURIComponent(n)}catch(s){return r(String(s)),null}return i==="!"?t:(r(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[r,i]of Object.entries(this.tags))if(t.startsWith(i))return r+$b(t.substring(i.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags);let n;if(t&&i.length>0&&De(t.contents)){const o={};wn(t.contents,(s,a)=>{De(a)&&a.tag&&(o[a.tag]=!0)}),n=Object.keys(o)}else n=[];for(const[o,s]of i)o==="!!"&&s==="tag:yaml.org,2002:"||(!t||n.some(a=>a.startsWith(s)))&&r.push(`%TAG ${o} ${s}`);return r.join(`
|
|
42
|
+
`)}}We.defaultYaml={explicit:!1,version:"1.2"};We.defaultTags={"!!":"tag:yaml.org,2002:"};function dp(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(r)}return!0}function hp(e){const t=new Set;return wn(e,{Value(r,i){i.anchor&&t.add(i.anchor)}}),t}function pp(e,t){for(let r=1;;++r){const i=`${e}${r}`;if(!t.has(i))return i}}function bb(e,t){const r=[],i=new Map;let n=null;return{onAnchor:o=>{r.push(o),n??(n=hp(e));const s=pp(t,n);return n.add(s),s},setAnchors:()=>{for(const o of r){const s=i.get(o);if(typeof s=="object"&&s.anchor&&(xe(s.node)||Pe(s.node)))s.node.anchor=s.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=o,a}}},sourceObjects:i}}function sn(e,t,r,i){if(i&&typeof i=="object")if(Array.isArray(i))for(let n=0,o=i.length;n<o;++n){const s=i[n],a=sn(e,i,String(n),s);a===void 0?delete i[n]:a!==s&&(i[n]=a)}else if(i instanceof Map)for(const n of Array.from(i.keys())){const o=i.get(n),s=sn(e,i,n,o);s===void 0?i.delete(n):s!==o&&i.set(n,s)}else if(i instanceof Set)for(const n of Array.from(i)){const o=sn(e,i,n,n);o===void 0?i.delete(n):o!==n&&(i.delete(n),i.add(o))}else for(const[n,o]of Object.entries(i)){const s=sn(e,i,n,o);s===void 0?delete i[n]:s!==o&&(i[n]=s)}return e.call(t,r,i)}function ot(e,t,r){if(Array.isArray(e))return e.map((i,n)=>ot(i,String(n),r));if(e&&typeof e.toJSON=="function"){if(!r||!fp(e))return e.toJSON(t,r);const i={aliasCount:0,count:1,res:void 0};r.anchors.set(e,i),r.onCreate=o=>{i.res=o,delete r.onCreate};const n=e.toJSON(t,r);return r.onCreate&&r.onCreate(n),n}return typeof e=="bigint"&&!r?.keep?Number(e):e}class $a{constructor(t){Object.defineProperty(this,st,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:r,maxAliasCount:i,onAnchor:n,reviver:o}={}){if(!Ti(t))throw new TypeError("A document argument is required");const s={anchors:new Map,doc:t,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=ot(this,"",s);if(typeof n=="function")for(const{count:c,res:h}of s.anchors.values())n(h,c);return typeof o=="function"?sn(o,{"":a},"",a):a}}class ba extends $a{constructor(t){super(va),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,r){let i;r?.aliasResolveCache?i=r.aliasResolveCache:(i=[],wn(t,{Node:(o,s)=>{(Xt(s)||fp(s))&&i.push(s)}}),r&&(r.aliasResolveCache=i));let n;for(const o of i){if(o===this)break;o.anchor===this.source&&(n=o)}return n}toJSON(t,r){if(!r)return{source:this.source};const{anchors:i,doc:n,maxAliasCount:o}=r,s=this.resolve(n,r);if(!s){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let a=i.get(s);if(a||(ot(s,null,r),a=i.get(s)),!a||a.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(o>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Gr(n,s,i)),a.count*a.aliasCount>o)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return a.res}toString(t,r,i){const n=`*${this.source}`;if(t){if(dp(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(t.implicitKey)return`${n} `}return n}}function Gr(e,t,r){if(Xt(t)){const i=t.resolve(e),n=r&&i&&r.get(i);return n?n.count*n.aliasCount:0}else if(Pe(t)){let i=0;for(const n of t.items){const o=Gr(e,n,r);o>i&&(i=o)}return i}else if(Ue(t)){const i=Gr(e,t.key,r),n=Gr(e,t.value,r);return Math.max(i,n)}return 1}const mp=e=>!e||typeof e!="function"&&typeof e!="object";class le extends $a{constructor(t){super(yt),this.value=t}toJSON(t,r){return r?.keep?this.value:ot(this.value,t,r)}toString(){return String(this.value)}}le.BLOCK_FOLDED="BLOCK_FOLDED";le.BLOCK_LITERAL="BLOCK_LITERAL";le.PLAIN="PLAIN";le.QUOTE_DOUBLE="QUOTE_DOUBLE";le.QUOTE_SINGLE="QUOTE_SINGLE";const _b="tag:yaml.org,2002:";function wb(e,t,r){if(t){const i=r.filter(o=>o.tag===t),n=i.find(o=>!o.format)??i[0];if(!n)throw new Error(`Tag ${t} not found`);return n}return r.find(i=>i.identify?.(e)&&!i.format)}function Mn(e,t,r){if(Ti(e)&&(e=e.contents),De(e))return e;if(Ue(e)){const d=r.schema[Dt].createNode?.(r.schema,null,r);return d.items.push(e),d}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:i,onAnchor:n,onTagObj:o,schema:s,sourceObjects:a}=r;let c;if(i&&e&&typeof e=="object"){if(c=a.get(e),c)return c.anchor??(c.anchor=n(e)),new ba(c.anchor);c={anchor:null,node:null},a.set(e,c)}t?.startsWith("!!")&&(t=_b+t.slice(2));let h=wb(e,t,s.tags);if(!h){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const d=new le(e);return c&&(c.node=d),d}h=e instanceof Map?s[Dt]:Symbol.iterator in Object(e)?s[_n]:s[Dt]}o&&(o(h),delete r.onTagObj);const u=h?.createNode?h.createNode(r.schema,e,r):typeof h?.nodeClass?.from=="function"?h.nodeClass.from(r.schema,e,r):new le(e);return t?u.tag=t:h.default||(u.tag=h.tag),c&&(c.node=u),u}function li(e,t,r){let i=r;for(let n=t.length-1;n>=0;--n){const o=t[n];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const s=[];s[o]=i,i=s}else i=new Map([[o,i]])}return Mn(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const zn=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class gp extends $a{constructor(t,r){super(t),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(t){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(r.schema=t),r.items=r.items.map(i=>De(i)||Ue(i)?i.clone(t):i),this.range&&(r.range=this.range.slice()),r}addIn(t,r){if(zn(t))this.add(r);else{const[i,...n]=t,o=this.get(i,!0);if(Pe(o))o.addIn(n,r);else if(o===void 0&&this.schema)this.set(i,li(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}deleteIn(t){const[r,...i]=t;if(i.length===0)return this.delete(r);const n=this.get(r,!0);if(Pe(n))return n.deleteIn(i);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}getIn(t,r){const[i,...n]=t,o=this.get(i,!0);return n.length===0?!r&&xe(o)?o.value:o:Pe(o)?o.getIn(n,r):void 0}hasAllNullValues(t){return this.items.every(r=>{if(!Ue(r))return!1;const i=r.value;return i==null||t&&xe(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(t){const[r,...i]=t;if(i.length===0)return this.has(r);const n=this.get(r,!0);return Pe(n)?n.hasIn(i):!1}setIn(t,r){const[i,...n]=t;if(n.length===0)this.set(i,r);else{const o=this.get(i,!0);if(Pe(o))o.setIn(n,r);else if(o===void 0&&this.schema)this.set(i,li(this.schema,n,r));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${n}`)}}}const kb=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function St(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Mt=(e,t,r)=>e.endsWith(`
|
|
43
|
+
`)?St(r,t):r.includes(`
|
|
44
|
+
`)?`
|
|
45
|
+
`+St(r,t):(e.endsWith(" ")?"":" ")+r,yp="flow",ko="block",Wr="quoted";function Pi(e,t,r="flow",{indentAtStart:i,lineWidth:n=80,minContentWidth:o=20,onFold:s,onOverflow:a}={}){if(!n||n<0)return e;n<o&&(o=0);const c=Math.max(1+o,1+n-t.length);if(e.length<=c)return e;const h=[],u={};let d=n-t.length;typeof i=="number"&&(i>n-Math.max(2,o)?h.push(0):d=n-i);let y,_,b=!1,g=-1,m=-1,$=-1;r===ko&&(g=fc(e,g,t.length),g!==-1&&(d=g+c));for(let v;v=e[g+=1];){if(r===Wr&&v==="\\"){switch(m=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}$=g}if(v===`
|
|
46
|
+
`)r===ko&&(g=fc(e,g,t.length)),d=g+t.length+c,y=void 0;else{if(v===" "&&_&&_!==" "&&_!==`
|
|
47
|
+
`&&_!==" "){const S=e[g+1];S&&S!==" "&&S!==`
|
|
48
|
+
`&&S!==" "&&(y=g)}if(g>=d)if(y)h.push(y),d=y+c,y=void 0;else if(r===Wr){for(;_===" "||_===" ";)_=v,v=e[g+=1],b=!0;const S=g>$+1?g-2:m-1;if(u[S])return e;h.push(S),u[S]=!0,d=S+c,y=void 0}else b=!0}_=v}if(b&&a&&a(),h.length===0)return e;s&&s();let f=e.slice(0,h[0]);for(let v=0;v<h.length;++v){const S=h[v],E=h[v+1]||e.length;S===0?f=`
|
|
49
|
+
${t}${e.slice(0,E)}`:(r===Wr&&u[S]&&(f+=`${e[S]}\\`),f+=`
|
|
50
|
+
${t}${e.slice(S+1,E)}`)}return f}function fc(e,t,r){let i=t,n=t+1,o=e[n];for(;o===" "||o===" ";)if(t<n+r)o=e[++t];else{do o=e[++t];while(o&&o!==`
|
|
51
|
+
`);i=t,n=t+1,o=e[n]}return i}const Di=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Ui=e=>/^(%|---|\.\.\.)/m.test(e);function Sb(e,t,r){if(!t||t<0)return!1;const i=t-r,n=e.length;if(n<=i)return!1;for(let o=0,s=0;o<n;++o)if(e[o]===`
|
|
52
|
+
`){if(o-s>i)return!0;if(s=o+1,n-s<=i)return!1}return!0}function Un(e,t){const r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;const{implicitKey:i}=t,n=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Ui(e)?" ":"");let s="",a=0;for(let c=0,h=r[c];h;h=r[++c])if(h===" "&&r[c+1]==="\\"&&r[c+2]==="n"&&(s+=r.slice(a,c)+"\\ ",c+=1,a=c,h="\\"),h==="\\")switch(r[c+1]){case"u":{s+=r.slice(a,c);const u=r.substr(c+2,4);switch(u){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:u.substr(0,2)==="00"?s+="\\x"+u.substr(2):s+=r.substr(c,6)}c+=5,a=c+1}break;case"n":if(i||r[c+2]==='"'||r.length<n)c+=1;else{for(s+=r.slice(a,c)+`
|
|
53
|
+
|
|
54
|
+
`;r[c+2]==="\\"&&r[c+3]==="n"&&r[c+4]!=='"';)s+=`
|
|
55
|
+
`,c+=2;s+=o,r[c+2]===" "&&(s+="\\"),c+=1,a=c+1}break;default:c+=1}return s=a?s+r.slice(a):r,i?s:Pi(s,o,Wr,Di(t,!1))}function So(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
56
|
+
`)||/[ \t]\n|\n[ \t]/.test(e))return Un(e,t);const r=t.indent||(Ui(e)?" ":""),i="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
57
|
+
${r}`)+"'";return t.implicitKey?i:Pi(i,r,yp,Di(t,!1))}function an(e,t){const{singleQuote:r}=t.options;let i;if(r===!1)i=Un;else{const n=e.includes('"'),o=e.includes("'");n&&!o?i=So:o&&!n?i=Un:i=r?So:Un}return i(e,t)}let Io;try{Io=new RegExp(`(^|(?<!
|
|
58
|
+
))
|
|
59
|
+
+(?!
|
|
60
|
+
|$)`,"g")}catch{Io=/\n+(?!\n|$)/g}function Hr({comment:e,type:t,value:r},i,n,o){const{blockQuote:s,commentString:a,lineWidth:c}=i.options;if(!s||/\n[\t ]+$/.test(r)||/^\s*$/.test(r))return an(r,i);const h=i.indent||(i.forceBlockIndent||Ui(r)?" ":""),u=s==="literal"?!0:s==="folded"||t===le.BLOCK_FOLDED?!1:t===le.BLOCK_LITERAL?!0:!Sb(r,c,h.length);if(!r)return u?`|
|
|
61
|
+
`:`>
|
|
62
|
+
`;let d,y;for(y=r.length;y>0;--y){const E=r[y-1];if(E!==`
|
|
63
|
+
`&&E!==" "&&E!==" ")break}let _=r.substring(y);const b=_.indexOf(`
|
|
64
|
+
`);b===-1?d="-":r===_||b!==_.length-1?(d="+",o&&o()):d="",_&&(r=r.slice(0,-_.length),_[_.length-1]===`
|
|
65
|
+
`&&(_=_.slice(0,-1)),_=_.replace(Io,`$&${h}`));let g=!1,m,$=-1;for(m=0;m<r.length;++m){const E=r[m];if(E===" ")g=!0;else if(E===`
|
|
66
|
+
`)$=m;else break}let f=r.substring(0,$<m?$+1:m);f&&(r=r.substring(f.length),f=f.replace(/\n+/g,`$&${h}`));let S=(g?h?"2":"1":"")+d;if(e&&(S+=" "+a(e.replace(/ ?[\r\n]+/g," ")),n&&n()),!u){const E=r.replace(/\n+/g,`
|
|
67
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`);let I=!1;const N=Di(i,!0);s!=="folded"&&t!==le.BLOCK_FOLDED&&(N.onOverflow=()=>{I=!0});const j=Pi(`${f}${E}${_}`,h,ko,N);if(!I)return`>${S}
|
|
68
|
+
${h}${j}`}return r=r.replace(/\n+/g,`$&${h}`),`|${S}
|
|
69
|
+
${h}${f}${r}${_}`}function Ib(e,t,r,i){const{type:n,value:o}=e,{actualString:s,implicitKey:a,indent:c,indentStep:h,inFlow:u}=t;if(a&&o.includes(`
|
|
70
|
+
`)||u&&/[[\]{},]/.test(o))return an(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return a||u||!o.includes(`
|
|
71
|
+
`)?an(o,t):Hr(e,t,r,i);if(!a&&!u&&n!==le.PLAIN&&o.includes(`
|
|
72
|
+
`))return Hr(e,t,r,i);if(Ui(o)){if(c==="")return t.forceBlockIndent=!0,Hr(e,t,r,i);if(a&&c===h)return an(o,t)}const d=o.replace(/\n+/g,`$&
|
|
73
|
+
${c}`);if(s){const y=g=>g.default&&g.tag!=="tag:yaml.org,2002:str"&&g.test?.test(d),{compat:_,tags:b}=t.doc.schema;if(b.some(y)||_?.some(y))return an(o,t)}return a?d:Pi(d,c,yp,Di(t,!1))}function _a(e,t,r,i){const{implicitKey:n,inFlow:o}=t,s=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==le.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=le.QUOTE_DOUBLE);const c=u=>{switch(u){case le.BLOCK_FOLDED:case le.BLOCK_LITERAL:return n||o?an(s.value,t):Hr(s,t,r,i);case le.QUOTE_DOUBLE:return Un(s.value,t);case le.QUOTE_SINGLE:return So(s.value,t);case le.PLAIN:return Ib(s,t,r,i);default:return null}};let h=c(a);if(h===null){const{defaultKeyType:u,defaultStringType:d}=t.options,y=n&&u||d;if(h=c(y),h===null)throw new Error(`Unsupported default string type ${y}`)}return h}function vp(e,t){const r=Object.assign({blockQuote:!0,commentString:kb,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let i;switch(r.collectionStyle){case"block":i=!1;break;case"flow":i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:i,options:r}}function Eb(e,t){if(t.tag){const n=e.filter(o=>o.tag===t.tag);if(n.length>0)return n.find(o=>o.format===t.format)??n[0]}let r,i;if(xe(t)){i=t.value;let n=e.filter(o=>o.identify?.(i));if(n.length>1){const o=n.filter(s=>s.test);o.length>0&&(n=o)}r=n.find(o=>o.format===t.format)??n.find(o=>!o.format)}else i=t,r=e.find(n=>n.nodeClass&&i instanceof n.nodeClass);if(!r){const n=i?.constructor?.name??(i===null?"null":typeof i);throw new Error(`Tag not resolved for ${n} value`)}return r}function xb(e,t,{anchors:r,doc:i}){if(!i.directives)return"";const n=[],o=(xe(e)||Pe(e))&&e.anchor;o&&dp(o)&&(r.add(o),n.push(`&${o}`));const s=e.tag??(t.default?null:t.tag);return s&&n.push(i.directives.tagString(s)),n.join(" ")}function yn(e,t,r,i){if(Ue(e))return e.toString(t,r,i);if(Xt(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let n;const o=De(e)?e:t.doc.createNode(e,{onTagObj:c=>n=c});n??(n=Eb(t.doc.schema.tags,o));const s=xb(o,n,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);const a=typeof n.stringify=="function"?n.stringify(o,t,r,i):xe(o)?_a(o,t,r,i):o.toString(t,r,i);return s?xe(o)||a[0]==="{"||a[0]==="["?`${s} ${a}`:`${s}
|
|
74
|
+
${t.indent}${a}`:a}function Nb({key:e,value:t},r,i,n){const{allNullValues:o,doc:s,indent:a,indentStep:c,options:{commentString:h,indentSeq:u,simpleKeys:d}}=r;let y=De(e)&&e.comment||null;if(d){if(y)throw new Error("With simple keys, key nodes cannot have comments");if(Pe(e)||!De(e)&&typeof e=="object"){const N="With simple keys, collection cannot be used as a key value";throw new Error(N)}}let _=!d&&(!e||y&&t==null&&!r.inFlow||Pe(e)||(xe(e)?e.type===le.BLOCK_FOLDED||e.type===le.BLOCK_LITERAL:typeof e=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!_&&(d||!o),indent:a+c});let b=!1,g=!1,m=yn(e,r,()=>b=!0,()=>g=!0);if(!_&&!r.inFlow&&m.length>1024){if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");_=!0}if(r.inFlow){if(o||t==null)return b&&i&&i(),m===""?"?":_?`? ${m}`:m}else if(o&&!d||t==null&&_)return m=`? ${m}`,y&&!b?m+=Mt(m,r.indent,h(y)):g&&n&&n(),m;b&&(y=null),_?(y&&(m+=Mt(m,r.indent,h(y))),m=`? ${m}
|
|
75
|
+
${a}:`):(m=`${m}:`,y&&(m+=Mt(m,r.indent,h(y))));let $,f,v;De(t)?($=!!t.spaceBefore,f=t.commentBefore,v=t.comment):($=!1,f=null,v=null,t&&typeof t=="object"&&(t=s.createNode(t))),r.implicitKey=!1,!_&&!y&&xe(t)&&(r.indentAtStart=m.length+1),g=!1,!u&&c.length>=2&&!r.inFlow&&!_&&Xn(t)&&!t.flow&&!t.tag&&!t.anchor&&(r.indent=r.indent.substring(2));let S=!1;const E=yn(t,r,()=>S=!0,()=>g=!0);let I=" ";if(y||$||f){if(I=$?`
|
|
76
|
+
`:"",f){const N=h(f);I+=`
|
|
77
|
+
${St(N,r.indent)}`}E===""&&!r.inFlow?I===`
|
|
78
|
+
`&&(I=`
|
|
79
|
+
|
|
80
|
+
`):I+=`
|
|
81
|
+
${r.indent}`}else if(!_&&Pe(t)){const N=E[0],j=E.indexOf(`
|
|
82
|
+
`),Z=j!==-1,W=r.inFlow??t.flow??t.items.length===0;if(Z||!W){let Y=!1;if(Z&&(N==="&"||N==="!")){let Q=E.indexOf(" ");N==="&"&&Q!==-1&&Q<j&&E[Q+1]==="!"&&(Q=E.indexOf(" ",Q+1)),(Q===-1||j<Q)&&(Y=!0)}Y||(I=`
|
|
83
|
+
${r.indent}`)}}else(E===""||E[0]===`
|
|
84
|
+
`)&&(I="");return m+=I+E,r.inFlow?S&&i&&i():v&&!S?m+=Mt(m,r.indent,h(v)):g&&n&&n(),m}function $p(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const Mr="<<",It={identify:e=>e===Mr||typeof e=="symbol"&&e.description===Mr,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new le(Symbol(Mr)),{addToJSMap:bp}),stringify:()=>Mr},Ob=(e,t)=>(It.identify(t)||xe(t)&&(!t.type||t.type===le.PLAIN)&&It.identify(t.value))&&e?.doc.schema.tags.some(r=>r.tag===It.tag&&r.default);function bp(e,t,r){if(r=e&&Xt(r)?r.resolve(e.doc):r,Xn(r))for(const i of r.items)ro(e,t,i);else if(Array.isArray(r))for(const i of r)ro(e,t,i);else ro(e,t,r)}function ro(e,t,r){const i=e&&Xt(r)?r.resolve(e.doc):r;if(!Hn(i))throw new Error("Merge sources must be maps or map aliases");const n=i.toJSON(null,e,Map);for(const[o,s]of n)t instanceof Map?t.has(o)||t.set(o,s):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0});return t}function _p(e,t,{key:r,value:i}){if(De(r)&&r.addToJSMap)r.addToJSMap(e,t,i);else if(Ob(e,r))bp(e,t,i);else{const n=ot(r,"",e);if(t instanceof Map)t.set(n,ot(i,n,e));else if(t instanceof Set)t.add(n);else{const o=jb(r,n,e),s=ot(i,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}}return t}function jb(e,t,r){if(t===null)return"";if(typeof t!="object")return String(t);if(De(e)&&r?.doc){const i=vp(r.doc,{});i.anchors=new Set;for(const o of r.anchors.keys())i.anchors.add(o.anchor);i.inFlow=!0,i.inStringifyKey=!0;const n=e.toString(i);if(!r.mapKeyWarned){let o=JSON.stringify(n);o.length>40&&(o=o.substring(0,36)+'..."'),$p(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}function wa(e,t,r){const i=Mn(e,void 0,r),n=Mn(t,void 0,r);return new He(i,n)}class He{constructor(t,r=null){Object.defineProperty(this,st,{value:lp}),this.key=t,this.value=r}clone(t){let{key:r,value:i}=this;return De(r)&&(r=r.clone(t)),De(i)&&(i=i.clone(t)),new He(r,i)}toJSON(t,r){const i=r?.mapAsMap?new Map:{};return _p(r,i,this)}toString(t,r,i){return t?.doc?Nb(this,t,r,i):JSON.stringify(this)}}function wp(e,t,r){return(t.inFlow??e.flow?zb:Ab)(e,t,r)}function Ab({comment:e,items:t},r,{blockItemPrefix:i,flowChars:n,itemIndent:o,onChompKeep:s,onComment:a}){const{indent:c,options:{commentString:h}}=r,u=Object.assign({},r,{indent:o,type:null});let d=!1;const y=[];for(let b=0;b<t.length;++b){const g=t[b];let m=null;if(De(g))!d&&g.spaceBefore&&y.push(""),fi(r,y,g.commentBefore,d),g.comment&&(m=g.comment);else if(Ue(g)){const f=De(g.key)?g.key:null;f&&(!d&&f.spaceBefore&&y.push(""),fi(r,y,f.commentBefore,d))}d=!1;let $=yn(g,u,()=>m=null,()=>d=!0);m&&($+=Mt($,o,h(m))),d&&m&&(d=!1),y.push(i+$)}let _;if(y.length===0)_=n.start+n.end;else{_=y[0];for(let b=1;b<y.length;++b){const g=y[b];_+=g?`
|
|
85
|
+
${c}${g}`:`
|
|
86
|
+
`}}return e?(_+=`
|
|
87
|
+
`+St(h(e),c),a&&a()):d&&s&&s(),_}function zb({items:e},t,{flowChars:r,itemIndent:i}){const{indent:n,indentStep:o,flowCollectionPadding:s,options:{commentString:a}}=t;i+=o;const c=Object.assign({},t,{indent:i,inFlow:!0,type:null});let h=!1,u=0;const d=[];for(let b=0;b<e.length;++b){const g=e[b];let m=null;if(De(g))g.spaceBefore&&d.push(""),fi(t,d,g.commentBefore,!1),g.comment&&(m=g.comment);else if(Ue(g)){const f=De(g.key)?g.key:null;f&&(f.spaceBefore&&d.push(""),fi(t,d,f.commentBefore,!1),f.comment&&(h=!0));const v=De(g.value)?g.value:null;v?(v.comment&&(m=v.comment),v.commentBefore&&(h=!0)):g.value==null&&f?.comment&&(m=f.comment)}m&&(h=!0);let $=yn(g,c,()=>m=null);b<e.length-1&&($+=","),m&&($+=Mt($,i,a(m))),!h&&(d.length>u||$.includes(`
|
|
88
|
+
`))&&(h=!0),d.push($),u=d.length}const{start:y,end:_}=r;if(d.length===0)return y+_;if(!h){const b=d.reduce((g,m)=>g+m.length+2,2);h=t.options.lineWidth>0&&b>t.options.lineWidth}if(h){let b=y;for(const g of d)b+=g?`
|
|
89
|
+
${o}${n}${g}`:`
|
|
90
|
+
`;return`${b}
|
|
91
|
+
${n}${_}`}else return`${y}${s}${d.join(" ")}${s}${_}`}function fi({indent:e,options:{commentString:t}},r,i,n){if(i&&n&&(i=i.replace(/^\n+/,"")),i){const o=St(t(i),e);r.push(o.trimStart())}}function qt(e,t){const r=xe(t)?t.value:t;for(const i of e)if(Ue(i)&&(i.key===t||i.key===r||xe(i.key)&&i.key.value===r))return i}class rt extends gp{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Dt,t),this.items=[]}static from(t,r,i){const{keepUndefined:n,replacer:o}=i,s=new this(t),a=(c,h)=>{if(typeof o=="function")h=o.call(r,c,h);else if(Array.isArray(o)&&!o.includes(c))return;(h!==void 0||n)&&s.items.push(wa(c,h,i))};if(r instanceof Map)for(const[c,h]of r)a(c,h);else if(r&&typeof r=="object")for(const c of Object.keys(r))a(c,r[c]);return typeof t.sortMapEntries=="function"&&s.items.sort(t.sortMapEntries),s}add(t,r){let i;Ue(t)?i=t:!t||typeof t!="object"||!("key"in t)?i=new He(t,t?.value):i=new He(t.key,t.value);const n=qt(this.items,i.key),o=this.schema?.sortMapEntries;if(n){if(!r)throw new Error(`Key ${i.key} already set`);xe(n.value)&&mp(i.value)?n.value.value=i.value:n.value=i.value}else if(o){const s=this.items.findIndex(a=>o(i,a)<0);s===-1?this.items.push(i):this.items.splice(s,0,i)}else this.items.push(i)}delete(t){const r=qt(this.items,t);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(t,r){const n=qt(this.items,t)?.value;return(!r&&xe(n)?n.value:n)??void 0}has(t){return!!qt(this.items,t)}set(t,r){this.add(new He(t,r),!0)}toJSON(t,r,i){const n=i?new i:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(n);for(const o of this.items)_p(r,n,o);return n}toString(t,r,i){if(!t)return JSON.stringify(this);for(const n of this.items)if(!Ue(n))throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),wp(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:i,onComment:r})}}const kn={collection:"map",default:!0,nodeClass:rt,tag:"tag:yaml.org,2002:map",resolve(e,t){return Hn(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,r)=>rt.from(e,t,r)};class Jt extends gp{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(_n,t),this.items=[]}add(t){this.items.push(t)}delete(t){const r=qr(t);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(t,r){const i=qr(t);if(typeof i!="number")return;const n=this.items[i];return!r&&xe(n)?n.value:n}has(t){const r=qr(t);return typeof r=="number"&&r<this.items.length}set(t,r){const i=qr(t);if(typeof i!="number")throw new Error(`Expected a valid index, not ${t}.`);const n=this.items[i];xe(n)&&mp(r)?n.value=r:this.items[i]=r}toJSON(t,r){const i=[];r?.onCreate&&r.onCreate(i);let n=0;for(const o of this.items)i.push(ot(o,String(n++),r));return i}toString(t,r,i){return t?wp(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:i,onComment:r}):JSON.stringify(this)}static from(t,r,i){const{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r)){let s=0;for(let a of r){if(typeof n=="function"){const c=r instanceof Set?a:String(s++);a=n.call(r,c,a)}o.items.push(Mn(a,void 0,i))}}return o}}function qr(e){let t=xe(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Sn={collection:"seq",default:!0,nodeClass:Jt,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Xn(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,r)=>Jt.from(e,t,r)},Ci={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,r,i){return t=Object.assign({actualString:!0},t),_a(e,t,r,i)}},Bi={identify:e=>e==null,createNode:()=>new le(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new le(null),stringify:({source:e},t)=>typeof e=="string"&&Bi.test.test(e)?e:t.options.nullStr},ka={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new le(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},r){if(e&&ka.test.test(e)){const i=e[0]==="t"||e[0]==="T";if(t===i)return e}return t?r.options.trueStr:r.options.falseStr}};function pt({format:e,minFractionDigits:t,tag:r,value:i}){if(typeof i=="bigint")return String(i);const n=typeof i=="number"?i:Number(i);if(!isFinite(n))return isNaN(n)?".nan":n<0?"-.inf":".inf";let o=JSON.stringify(i);if(!e&&t&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let s=o.indexOf(".");s<0&&(s=o.length,o+=".");let a=t-(o.length-s-1);for(;a-- >0;)o+="0"}return o}const kp={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:pt},Sp={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():pt(e)}},Ip={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new le(parseFloat(e)),r=e.indexOf(".");return r!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-r-1),t},stringify:pt},Ri=e=>typeof e=="bigint"||Number.isInteger(e),Sa=(e,t,r,{intAsBigInt:i})=>i?BigInt(e):parseInt(e.substring(t),r);function Ep(e,t,r){const{value:i}=e;return Ri(i)&&i>=0?r+i.toString(t):pt(e)}const xp={identify:e=>Ri(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>Sa(e,2,8,r),stringify:e=>Ep(e,8,"0o")},Np={identify:Ri,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>Sa(e,0,10,r),stringify:pt},Op={identify:e=>Ri(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>Sa(e,2,16,r),stringify:e=>Ep(e,16,"0x")},Tb=[kn,Sn,Ci,Bi,ka,xp,Np,Op,kp,Sp,Ip];function dc(e){return typeof e=="bigint"||Number.isInteger(e)}const Vr=({value:e})=>JSON.stringify(e),Pb=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Vr},{identify:e=>e==null,createNode:()=>new le(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Vr},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:Vr},{identify:dc,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>dc(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Vr}],Db={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Ub=[kn,Sn].concat(Pb,Db),Ia={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const r=atob(e.replace(/[\n\r]/g,"")),i=new Uint8Array(r.length);for(let n=0;n<r.length;++n)i[n]=r.charCodeAt(n);return i}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:r},i,n,o){if(!r)return"";const s=r;let a;if(typeof btoa=="function"){let c="";for(let h=0;h<s.length;++h)c+=String.fromCharCode(s[h]);a=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=le.BLOCK_LITERAL),t!==le.QUOTE_DOUBLE){const c=Math.max(i.options.lineWidth-i.indent.length,i.options.minContentWidth),h=Math.ceil(a.length/c),u=new Array(h);for(let d=0,y=0;d<h;++d,y+=c)u[d]=a.substr(y,c);a=u.join(t===le.BLOCK_LITERAL?`
|
|
92
|
+
`:" ")}return _a({comment:e,type:t,value:a},i,n,o)}};function jp(e,t){if(Xn(e))for(let r=0;r<e.items.length;++r){let i=e.items[r];if(!Ue(i)){if(Hn(i)){i.items.length>1&&t("Each pair must have its own sequence indicator");const n=i.items[0]||new He(new le(null));if(i.commentBefore&&(n.key.commentBefore=n.key.commentBefore?`${i.commentBefore}
|
|
93
|
+
${n.key.commentBefore}`:i.commentBefore),i.comment){const o=n.value??n.key;o.comment=o.comment?`${i.comment}
|
|
94
|
+
${o.comment}`:i.comment}i=n}e.items[r]=Ue(i)?i:new He(i)}}else t("Expected a sequence for this tag");return e}function Ap(e,t,r){const{replacer:i}=r,n=new Jt(e);n.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let s of t){typeof i=="function"&&(s=i.call(t,String(o++),s));let a,c;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){const h=Object.keys(s);if(h.length===1)a=h[0],c=s[a];else throw new TypeError(`Expected tuple with one key, not ${h.length} keys`)}else a=s;n.items.push(wa(a,c,r))}return n}const Ea={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:jp,createNode:Ap};class cn extends Jt{constructor(){super(),this.add=rt.prototype.add.bind(this),this.delete=rt.prototype.delete.bind(this),this.get=rt.prototype.get.bind(this),this.has=rt.prototype.has.bind(this),this.set=rt.prototype.set.bind(this),this.tag=cn.tag}toJSON(t,r){if(!r)return super.toJSON(t);const i=new Map;r?.onCreate&&r.onCreate(i);for(const n of this.items){let o,s;if(Ue(n)?(o=ot(n.key,"",r),s=ot(n.value,o,r)):o=ot(n,"",r),i.has(o))throw new Error("Ordered maps must not include duplicate keys");i.set(o,s)}return i}static from(t,r,i){const n=Ap(t,r,i),o=new this;return o.items=n.items,o}}cn.tag="tag:yaml.org,2002:omap";const xa={collection:"seq",identify:e=>e instanceof Map,nodeClass:cn,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const r=jp(e,t),i=[];for(const{key:n}of r.items)xe(n)&&(i.includes(n.value)?t(`Ordered maps must not include duplicate keys: ${n.value}`):i.push(n.value));return Object.assign(new cn,r)},createNode:(e,t,r)=>cn.from(e,t,r)};function zp({value:e,source:t},r){return t&&(e?Tp:Pp).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}const Tp={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new le(!0),stringify:zp},Pp={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new le(!1),stringify:zp},Cb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:pt},Bb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():pt(e)}},Rb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new le(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(r!==-1){const i=e.substring(r+1).replace(/_/g,"");i[i.length-1]==="0"&&(t.minFractionDigits=i.length)}return t},stringify:pt},Yn=e=>typeof e=="bigint"||Number.isInteger(e);function Fi(e,t,r,{intAsBigInt:i}){const n=e[0];if((n==="-"||n==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),i){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const s=BigInt(e);return n==="-"?BigInt(-1)*s:s}const o=parseInt(e,r);return n==="-"?-1*o:o}function Na(e,t,r){const{value:i}=e;if(Yn(i)){const n=i.toString(t);return i<0?"-"+r+n.substr(1):r+n}return pt(e)}const Fb={identify:Yn,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>Fi(e,2,2,r),stringify:e=>Na(e,2,"0b")},Lb={identify:Yn,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>Fi(e,1,8,r),stringify:e=>Na(e,8,"0")},Zb={identify:Yn,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>Fi(e,0,10,r),stringify:pt},Mb={identify:Yn,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>Fi(e,2,16,r),stringify:e=>Na(e,16,"0x")};class ln extends rt{constructor(t){super(t),this.tag=ln.tag}add(t){let r;Ue(t)?r=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?r=new He(t.key,null):r=new He(t,null),qt(this.items,r.key)||this.items.push(r)}get(t,r){const i=qt(this.items,t);return!r&&Ue(i)?xe(i.key)?i.key.value:i.key:i}set(t,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const i=qt(this.items,t);i&&!r?this.items.splice(this.items.indexOf(i),1):!i&&r&&this.items.push(new He(t))}toJSON(t,r){return super.toJSON(t,r,Set)}toString(t,r,i){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),r,i);throw new Error("Set items must all have null values")}static from(t,r,i){const{replacer:n}=i,o=new this(t);if(r&&Symbol.iterator in Object(r))for(let s of r)typeof n=="function"&&(s=n.call(r,s,s)),o.items.push(wa(s,null,i));return o}}ln.tag="tag:yaml.org,2002:set";const Oa={collection:"map",identify:e=>e instanceof Set,nodeClass:ln,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>ln.from(e,t,r),resolve(e,t){if(Hn(e)){if(e.hasAllNullValues(!0))return Object.assign(new ln,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function ja(e,t){const r=e[0],i=r==="-"||r==="+"?e.substring(1):e,n=s=>t?BigInt(s):Number(s),o=i.replace(/_/g,"").split(":").reduce((s,a)=>s*n(60)+n(a),n(0));return r==="-"?n(-1)*o:o}function Dp(e){let{value:t}=e,r=s=>s;if(typeof t=="bigint")r=s=>BigInt(s);else if(isNaN(t)||!isFinite(t))return pt(e);let i="";t<0&&(i="-",t*=r(-1));const n=r(60),o=[t%n];return t<60?o.unshift(0):(t=(t-o[0])/n,o.unshift(t%n),t>=60&&(t=(t-o[0])/n,o.unshift(t))),i+o.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Up={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>ja(e,r),stringify:Dp},Cp={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>ja(e,!1),stringify:Dp},Li={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Li.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,i,n,o,s,a]=t.map(Number),c=t[7]?Number((t[7]+"00").substr(1,3)):0;let h=Date.UTC(r,i-1,n,o||0,s||0,a||0,c);const u=t[8];if(u&&u!=="Z"){let d=ja(u,!1);Math.abs(d)<30&&(d*=60),h-=6e4*d}return new Date(h)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},hc=[kn,Sn,Ci,Bi,Tp,Pp,Fb,Lb,Zb,Mb,Cb,Bb,Rb,Ia,It,xa,Ea,Oa,Up,Cp,Li],pc=new Map([["core",Tb],["failsafe",[kn,Sn,Ci]],["json",Ub],["yaml11",hc],["yaml-1.1",hc]]),mc={binary:Ia,bool:ka,float:Ip,floatExp:Sp,floatNaN:kp,floatTime:Cp,int:Np,intHex:Op,intOct:xp,intTime:Up,map:kn,merge:It,null:Bi,omap:xa,pairs:Ea,seq:Sn,set:Oa,timestamp:Li},qb={"tag:yaml.org,2002:binary":Ia,"tag:yaml.org,2002:merge":It,"tag:yaml.org,2002:omap":xa,"tag:yaml.org,2002:pairs":Ea,"tag:yaml.org,2002:set":Oa,"tag:yaml.org,2002:timestamp":Li};function io(e,t,r){const i=pc.get(t);if(i&&!e)return r&&!i.includes(It)?i.concat(It):i.slice();let n=i;if(!n)if(Array.isArray(e))n=[];else{const o=Array.from(pc.keys()).filter(s=>s!=="yaml11").map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${o} or define customTags array`)}if(Array.isArray(e))for(const o of e)n=n.concat(o);else typeof e=="function"&&(n=e(n.slice()));return r&&(n=n.concat(It)),n.reduce((o,s)=>{const a=typeof s=="string"?mc[s]:s;if(!a){const c=JSON.stringify(s),h=Object.keys(mc).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${c}; use one of ${h}`)}return o.includes(a)||o.push(a),o},[])}const Vb=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Aa{constructor({compat:t,customTags:r,merge:i,resolveKnownTags:n,schema:o,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(t)?io(t,"compat"):t?io(null,t):null,this.name=typeof o=="string"&&o||"core",this.knownTags=n?qb:{},this.tags=io(r,this.name,i),this.toStringOptions=a??null,Object.defineProperty(this,Dt,{value:kn}),Object.defineProperty(this,yt,{value:Ci}),Object.defineProperty(this,_n,{value:Sn}),this.sortMapEntries=typeof s=="function"?s:s===!0?Vb:null}clone(){const t=Object.create(Aa.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Kb(e,t){const r=[];let i=t.directives===!0;if(t.directives!==!1&&e.directives){const c=e.directives.toString(e);c?(r.push(c),i=!0):e.directives.docStart&&(i=!0)}i&&r.push("---");const n=vp(e,t),{commentString:o}=n.options;if(e.commentBefore){r.length!==1&&r.unshift("");const c=o(e.commentBefore);r.unshift(St(c,""))}let s=!1,a=null;if(e.contents){if(De(e.contents)){if(e.contents.spaceBefore&&i&&r.push(""),e.contents.commentBefore){const u=o(e.contents.commentBefore);r.push(St(u,""))}n.forceBlockIndent=!!e.comment,a=e.contents.comment}const c=a?void 0:()=>s=!0;let h=yn(e.contents,n,()=>a=null,c);a&&(h+=Mt(h,"",o(a))),(h[0]==="|"||h[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${h}`:r.push(h)}else r.push(yn(e.contents,n));if(e.directives?.docEnd)if(e.comment){const c=o(e.comment);c.includes(`
|
|
95
|
+
`)?(r.push("..."),r.push(St(c,""))):r.push(`... ${c}`)}else r.push("...");else{let c=e.comment;c&&s&&(c=c.replace(/^\n+/,"")),c&&((!s||a)&&r[r.length-1]!==""&&r.push(""),r.push(St(o(c),"")))}return r.join(`
|
|
96
|
+
`)+`
|
|
97
|
+
`}class Zi{constructor(t,r,i){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,st,{value:wo});let n=null;typeof r=="function"||Array.isArray(r)?n=r:i===void 0&&r&&(i=r,r=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},i);this.options=o;let{version:s}=o;i?._directives?(this.directives=i._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new We({version:s}),this.setSchema(s,i),this.contents=t===void 0?null:this.createNode(t,n,i)}clone(){const t=Object.create(Zi.prototype,{[st]:{value:wo}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=De(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){tn(this.contents)&&this.contents.add(t)}addIn(t,r){tn(this.contents)&&this.contents.addIn(t,r)}createAlias(t,r){if(!t.anchor){const i=hp(this);t.anchor=!r||i.has(r)?pp(r||"a",i):r}return new ba(t.anchor)}createNode(t,r,i){let n;if(typeof r=="function")t=r.call({"":t},"",t),n=r;else if(Array.isArray(r)){const m=f=>typeof f=="number"||f instanceof String||f instanceof Number,$=r.filter(m).map(String);$.length>0&&(r=r.concat($)),n=r}else i===void 0&&r&&(i=r,r=void 0);const{aliasDuplicateObjects:o,anchorPrefix:s,flow:a,keepUndefined:c,onTagObj:h,tag:u}=i??{},{onAnchor:d,setAnchors:y,sourceObjects:_}=bb(this,s||"a"),b={aliasDuplicateObjects:o??!0,keepUndefined:c??!1,onAnchor:d,onTagObj:h,replacer:n,schema:this.schema,sourceObjects:_},g=Mn(t,u,b);return a&&Pe(g)&&(g.flow=!0),y(),g}createPair(t,r,i={}){const n=this.createNode(t,null,i),o=this.createNode(r,null,i);return new He(n,o)}delete(t){return tn(this.contents)?this.contents.delete(t):!1}deleteIn(t){return zn(t)?this.contents==null?!1:(this.contents=null,!0):tn(this.contents)?this.contents.deleteIn(t):!1}get(t,r){return Pe(this.contents)?this.contents.get(t,r):void 0}getIn(t,r){return zn(t)?!r&&xe(this.contents)?this.contents.value:this.contents:Pe(this.contents)?this.contents.getIn(t,r):void 0}has(t){return Pe(this.contents)?this.contents.has(t):!1}hasIn(t){return zn(t)?this.contents!==void 0:Pe(this.contents)?this.contents.hasIn(t):!1}set(t,r){this.contents==null?this.contents=li(this.schema,[t],r):tn(this.contents)&&this.contents.set(t,r)}setIn(t,r){zn(t)?this.contents=r:this.contents==null?this.contents=li(this.schema,Array.from(t),r):tn(this.contents)&&this.contents.setIn(t,r)}setSchema(t,r={}){typeof t=="number"&&(t=String(t));let i;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new We({version:"1.1"}),i={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new We({version:t}),i={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,i=null;break;default:{const n=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${n}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(i)this.schema=new Aa(Object.assign(i,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:r,mapAsMap:i,maxAliasCount:n,onAnchor:o,reviver:s}={}){const a={anchors:new Map,doc:this,keep:!t,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},c=ot(this.contents,r??"",a);if(typeof o=="function")for(const{count:h,res:u}of a.anchors.values())o(u,h);return typeof s=="function"?sn(s,{"":c},"",c):c}toJSON(t,r){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:r})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const r=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return Kb(this,t)}}function tn(e){if(Pe(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Bp extends Error{constructor(t,r,i,n){super(),this.name=t,this.code=i,this.message=n,this.pos=r}}class Tn extends Bp{constructor(t,r,i){super("YAMLParseError",t,r,i)}}class Jb extends Bp{constructor(t,r,i){super("YAMLWarning",t,r,i)}}const gc=(e,t)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(a=>t.linePos(a));const{line:i,col:n}=r.linePos[0];r.message+=` at line ${i}, column ${n}`;let o=n-1,s=e.substring(t.lineStarts[i-1],t.lineStarts[i]).replace(/[\n\r]+$/,"");if(o>=60&&s.length>80){const a=Math.min(o-39,s.length-79);s="…"+s.substring(a),o-=a-1}if(s.length>80&&(s=s.substring(0,79)+"…"),i>1&&/^ *$/.test(s.substring(0,o))){let a=e.substring(t.lineStarts[i-2],t.lineStarts[i-1]);a.length>80&&(a=a.substring(0,79)+`…
|
|
98
|
+
`),s=a+s}if(/[^ ]/.test(s)){let a=1;const c=r.linePos[1];c&&c.line===i&&c.col>n&&(a=Math.max(1,Math.min(c.col-n,80-o)));const h=" ".repeat(o)+"^".repeat(a);r.message+=`:
|
|
99
|
+
|
|
100
|
+
${s}
|
|
101
|
+
${h}
|
|
102
|
+
`}};function vn(e,{flow:t,indicator:r,next:i,offset:n,onError:o,parentIndent:s,startOnNewline:a}){let c=!1,h=a,u=a,d="",y="",_=!1,b=!1,g=null,m=null,$=null,f=null,v=null,S=null,E=null;for(const j of e)switch(b&&(j.type!=="space"&&j.type!=="newline"&&j.type!=="comma"&&o(j.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),g&&(h&&j.type!=="comment"&&j.type!=="newline"&&o(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),g=null),j.type){case"space":!t&&(r!=="doc-start"||i?.type!=="flow-collection")&&j.source.includes(" ")&&(g=j),u=!0;break;case"comment":{u||o(j,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Z=j.source.substring(1)||" ";d?d+=y+Z:d=Z,y="",h=!1;break}case"newline":h?d?d+=j.source:(!S||r!=="seq-item-ind")&&(c=!0):y+=j.source,h=!0,_=!0,(m||$)&&(f=j),u=!0;break;case"anchor":m&&o(j,"MULTIPLE_ANCHORS","A node can have at most one anchor"),j.source.endsWith(":")&&o(j.offset+j.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=j,E??(E=j.offset),h=!1,u=!1,b=!0;break;case"tag":{$&&o(j,"MULTIPLE_TAGS","A node can have at most one tag"),$=j,E??(E=j.offset),h=!1,u=!1,b=!0;break}case r:(m||$)&&o(j,"BAD_PROP_ORDER",`Anchors and tags must be after the ${j.source} indicator`),S&&o(j,"UNEXPECTED_TOKEN",`Unexpected ${j.source} in ${t??"collection"}`),S=j,h=r==="seq-item-ind"||r==="explicit-key-ind",u=!1;break;case"comma":if(t){v&&o(j,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),v=j,h=!1,u=!1;break}default:o(j,"UNEXPECTED_TOKEN",`Unexpected ${j.type} token`),h=!1,u=!1}const I=e[e.length-1],N=I?I.offset+I.source.length:n;return b&&i&&i.type!=="space"&&i.type!=="newline"&&i.type!=="comma"&&(i.type!=="scalar"||i.source!=="")&&o(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g&&(h&&g.indent<=s||i?.type==="block-map"||i?.type==="block-seq")&&o(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:v,found:S,spaceBefore:c,comment:d,hasNewline:_,anchor:m,tag:$,newlineAfterProp:f,end:N,start:E??N}}function qn(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
103
|
+
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const r of t.start)if(r.type==="newline")return!0;if(t.sep){for(const r of t.sep)if(r.type==="newline")return!0}if(qn(t.key)||qn(t.value))return!0}return!1;default:return!0}}function Eo(e,t,r){if(t?.type==="flow-collection"){const i=t.end[0];i.indent===e&&(i.source==="]"||i.source==="}")&&qn(t)&&r(i,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Rp(e,t,r){const{uniqueKeys:i}=e.options;if(i===!1)return!1;const n=typeof i=="function"?i:(o,s)=>o===s||xe(o)&&xe(s)&&o.value===s.value;return t.some(o=>n(o.key,r))}const yc="All mapping items must start at the same column";function Gb({composeNode:e,composeEmptyNode:t},r,i,n,o){const s=o?.nodeClass??rt,a=new s(r.schema);r.atRoot&&(r.atRoot=!1);let c=i.offset,h=null;for(const u of i.items){const{start:d,key:y,sep:_,value:b}=u,g=vn(d,{indicator:"explicit-key-ind",next:y??_?.[0],offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0}),m=!g.found;if(m){if(y&&(y.type==="block-seq"?n(c,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in y&&y.indent!==i.indent&&n(c,"BAD_INDENT",yc)),!g.anchor&&!g.tag&&!_){h=g.end,g.comment&&(a.comment?a.comment+=`
|
|
104
|
+
`+g.comment:a.comment=g.comment);continue}(g.newlineAfterProp||qn(y))&&n(y??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else g.found?.indent!==i.indent&&n(c,"BAD_INDENT",yc);r.atKey=!0;const $=g.end,f=y?e(r,y,g,n):t(r,$,d,null,g,n);r.schema.compat&&Eo(i.indent,y,n),r.atKey=!1,Rp(r,a.items,f)&&n($,"DUPLICATE_KEY","Map keys must be unique");const v=vn(_??[],{indicator:"map-value-ind",next:b,offset:f.range[2],onError:n,parentIndent:i.indent,startOnNewline:!y||y.type==="block-scalar"});if(c=v.end,v.found){m&&(b?.type==="block-map"&&!v.hasNewline&&n(c,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&g.start<v.found.offset-1024&&n(f.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const S=b?e(r,b,v,n):t(r,c,_,null,v,n);r.schema.compat&&Eo(i.indent,b,n),c=S.range[2];const E=new He(f,S);r.options.keepSourceTokens&&(E.srcToken=u),a.items.push(E)}else{m&&n(f.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),v.comment&&(f.comment?f.comment+=`
|
|
105
|
+
`+v.comment:f.comment=v.comment);const S=new He(f);r.options.keepSourceTokens&&(S.srcToken=u),a.items.push(S)}}return h&&h<c&&n(h,"IMPOSSIBLE","Map comment with trailing content"),a.range=[i.offset,c,h??c],a}function Wb({composeNode:e,composeEmptyNode:t},r,i,n,o){const s=o?.nodeClass??Jt,a=new s(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=i.offset,h=null;for(const{start:u,value:d}of i.items){const y=vn(u,{indicator:"seq-item-ind",next:d,offset:c,onError:n,parentIndent:i.indent,startOnNewline:!0});if(!y.found)if(y.anchor||y.tag||d)d&&d.type==="block-seq"?n(y.end,"BAD_INDENT","All sequence items must start at the same column"):n(c,"MISSING_CHAR","Sequence item without - indicator");else{h=y.end,y.comment&&(a.comment=y.comment);continue}const _=d?e(r,d,y,n):t(r,y.end,u,null,y,n);r.schema.compat&&Eo(i.indent,d,n),c=_.range[2],a.items.push(_)}return a.range=[i.offset,c,h??c],a}function Qn(e,t,r,i){let n="";if(e){let o=!1,s="";for(const a of e){const{source:c,type:h}=a;switch(h){case"space":o=!0;break;case"comment":{r&&!o&&i(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=c.substring(1)||" ";n?n+=s+u:n=u,s="";break}case"newline":n&&(s+=c),o=!0;break;default:i(a,"UNEXPECTED_TOKEN",`Unexpected ${h} at node end`)}t+=c.length}}return{comment:n,offset:t}}const oo="Block collections are not allowed within flow collections",so=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Hb({composeNode:e,composeEmptyNode:t},r,i,n,o){const s=i.start.source==="{",a=s?"flow map":"flow sequence",c=o?.nodeClass??(s?rt:Jt),h=new c(r.schema);h.flow=!0;const u=r.atRoot;u&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let d=i.offset+i.start.source.length;for(let m=0;m<i.items.length;++m){const $=i.items[m],{start:f,key:v,sep:S,value:E}=$,I=vn(f,{flow:a,indicator:"explicit-key-ind",next:v??S?.[0],offset:d,onError:n,parentIndent:i.indent,startOnNewline:!1});if(!I.found){if(!I.anchor&&!I.tag&&!S&&!E){m===0&&I.comma?n(I.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):m<i.items.length-1&&n(I.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),I.comment&&(h.comment?h.comment+=`
|
|
106
|
+
`+I.comment:h.comment=I.comment),d=I.end;continue}!s&&r.options.strict&&qn(v)&&n(v,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)I.comma&&n(I.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(I.comma||n(I.start,"MISSING_CHAR",`Missing , between ${a} items`),I.comment){let N="";e:for(const j of f)switch(j.type){case"comma":case"space":break;case"comment":N=j.source.substring(1);break e;default:break e}if(N){let j=h.items[h.items.length-1];Ue(j)&&(j=j.value??j.key),j.comment?j.comment+=`
|
|
107
|
+
`+N:j.comment=N,I.comment=I.comment.substring(N.length+1)}}if(!s&&!S&&!I.found){const N=E?e(r,E,I,n):t(r,I.end,S,null,I,n);h.items.push(N),d=N.range[2],so(E)&&n(N.range,"BLOCK_IN_FLOW",oo)}else{r.atKey=!0;const N=I.end,j=v?e(r,v,I,n):t(r,N,f,null,I,n);so(v)&&n(j.range,"BLOCK_IN_FLOW",oo),r.atKey=!1;const Z=vn(S??[],{flow:a,indicator:"map-value-ind",next:E,offset:j.range[2],onError:n,parentIndent:i.indent,startOnNewline:!1});if(Z.found){if(!s&&!I.found&&r.options.strict){if(S)for(const Q of S){if(Q===Z.found)break;if(Q.type==="newline"){n(Q,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}I.start<Z.found.offset-1024&&n(Z.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source&&E.source[0]===":"?n(E,"MISSING_CHAR",`Missing space after : in ${a}`):n(Z.start,"MISSING_CHAR",`Missing , or : between ${a} items`));const W=E?e(r,E,Z,n):Z.found?t(r,Z.end,S,null,Z,n):null;W?so(E)&&n(W.range,"BLOCK_IN_FLOW",oo):Z.comment&&(j.comment?j.comment+=`
|
|
108
|
+
`+Z.comment:j.comment=Z.comment);const Y=new He(j,W);if(r.options.keepSourceTokens&&(Y.srcToken=$),s){const Q=h;Rp(r,Q.items,j)&&n(N,"DUPLICATE_KEY","Map keys must be unique"),Q.items.push(Y)}else{const Q=new rt(r.schema);Q.flow=!0,Q.items.push(Y);const oe=(W??j).range;Q.range=[j.range[0],oe[1],oe[2]],h.items.push(Q)}d=W?W.range[2]:Z.end}}const y=s?"}":"]",[_,...b]=i.end;let g=d;if(_&&_.source===y)g=_.offset+_.source.length;else{const m=a[0].toUpperCase()+a.substring(1),$=u?`${m} must end with a ${y}`:`${m} in block collection must be sufficiently indented and end with a ${y}`;n(d,u?"MISSING_CHAR":"BAD_INDENT",$),_&&_.source.length!==1&&b.unshift(_)}if(b.length>0){const m=Qn(b,g,r.options.strict,n);m.comment&&(h.comment?h.comment+=`
|
|
109
|
+
`+m.comment:h.comment=m.comment),h.range=[i.offset,g,m.offset]}else h.range=[i.offset,g,g];return h}function ao(e,t,r,i,n,o){const s=r.type==="block-map"?Gb(e,t,r,i,o):r.type==="block-seq"?Wb(e,t,r,i,o):Hb(e,t,r,i,o),a=s.constructor;return n==="!"||n===a.tagName?(s.tag=a.tagName,s):(n&&(s.tag=n),s)}function Xb(e,t,r,i,n){const o=i.tag,s=o?t.directives.tagName(o.source,y=>n(o,"TAG_RESOLVE_FAILED",y)):null;if(r.type==="block-seq"){const{anchor:y,newlineAfterProp:_}=i,b=y&&o?y.offset>o.offset?y:o:y??o;b&&(!_||_.offset<b.offset)&&n(b,"MISSING_CHAR","Missing newline after block sequence props")}const a=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!o||!s||s==="!"||s===rt.tagName&&a==="map"||s===Jt.tagName&&a==="seq")return ao(e,t,r,n,s);let c=t.schema.tags.find(y=>y.tag===s&&y.collection===a);if(!c){const y=t.schema.knownTags[s];if(y&&y.collection===a)t.schema.tags.push(Object.assign({},y,{default:!1})),c=y;else return y?n(o,"BAD_COLLECTION_TYPE",`${y.tag} used for ${a} collection, but expects ${y.collection??"scalar"}`,!0):n(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),ao(e,t,r,n,s)}const h=ao(e,t,r,n,s,c),u=c.resolve?.(h,y=>n(o,"TAG_RESOLVE_FAILED",y),t.options)??h,d=De(u)?u:new le(u);return d.range=h.range,d.tag=s,c?.format&&(d.format=c.format),d}function Yb(e,t,r){const i=t.offset,n=Qb(t,e.options.strict,r);if(!n)return{value:"",type:null,comment:"",range:[i,i,i]};const o=n.mode===">"?le.BLOCK_FOLDED:le.BLOCK_LITERAL,s=t.source?e_(t.source):[];let a=s.length;for(let g=s.length-1;g>=0;--g){const m=s[g][1];if(m===""||m==="\r")a=g;else break}if(a===0){const g=n.chomp==="+"&&s.length>0?`
|
|
110
|
+
`.repeat(Math.max(1,s.length-1)):"";let m=i+n.length;return t.source&&(m+=t.source.length),{value:g,type:o,comment:n.comment,range:[i,m,m]}}let c=t.indent+n.indent,h=t.offset+n.length,u=0;for(let g=0;g<a;++g){const[m,$]=s[g];if($===""||$==="\r")n.indent===0&&m.length>c&&(c=m.length);else{m.length<c&&r(h+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),n.indent===0&&(c=m.length),u=g,c===0&&!e.atRoot&&r(h,"BAD_INDENT","Block scalar values in collections must be indented");break}h+=m.length+$.length+1}for(let g=s.length-1;g>=a;--g)s[g][0].length>c&&(a=g+1);let d="",y="",_=!1;for(let g=0;g<u;++g)d+=s[g][0].slice(c)+`
|
|
111
|
+
`;for(let g=u;g<a;++g){let[m,$]=s[g];h+=m.length+$.length+1;const f=$[$.length-1]==="\r";if(f&&($=$.slice(0,-1)),$&&m.length<c){const S=`Block scalar lines must not be less indented than their ${n.indent?"explicit indentation indicator":"first line"}`;r(h-$.length-(f?2:1),"BAD_INDENT",S),m=""}o===le.BLOCK_LITERAL?(d+=y+m.slice(c)+$,y=`
|
|
112
|
+
`):m.length>c||$[0]===" "?(y===" "?y=`
|
|
113
|
+
`:!_&&y===`
|
|
114
|
+
`&&(y=`
|
|
115
|
+
|
|
116
|
+
`),d+=y+m.slice(c)+$,y=`
|
|
117
|
+
`,_=!0):$===""?y===`
|
|
118
|
+
`?d+=`
|
|
119
|
+
`:y=`
|
|
120
|
+
`:(d+=y+$,y=" ",_=!1)}switch(n.chomp){case"-":break;case"+":for(let g=a;g<s.length;++g)d+=`
|
|
121
|
+
`+s[g][0].slice(c);d[d.length-1]!==`
|
|
122
|
+
`&&(d+=`
|
|
123
|
+
`);break;default:d+=`
|
|
124
|
+
`}const b=i+n.length+t.source.length;return{value:d,type:o,comment:n.comment,range:[i,b,b]}}function Qb({offset:e,props:t},r,i){if(t[0].type!=="block-scalar-header")return i(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:n}=t[0],o=n[0];let s=0,a="",c=-1;for(let y=1;y<n.length;++y){const _=n[y];if(!a&&(_==="-"||_==="+"))a=_;else{const b=Number(_);!s&&b?s=b:c===-1&&(c=e+y)}}c!==-1&&i(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${n}`);let h=!1,u="",d=n.length;for(let y=1;y<t.length;++y){const _=t[y];switch(_.type){case"space":h=!0;case"newline":d+=_.source.length;break;case"comment":r&&!h&&i(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),d+=_.source.length,u=_.source.substring(1);break;case"error":i(_,"UNEXPECTED_TOKEN",_.message),d+=_.source.length;break;default:{const b=`Unexpected token in block scalar header: ${_.type}`;i(_,"UNEXPECTED_TOKEN",b);const g=_.source;g&&typeof g=="string"&&(d+=g.length)}}}return{mode:o,indent:s,chomp:a,comment:u,length:d}}function e_(e){const t=e.split(/\n( *)/),r=t[0],i=r.match(/^( *)/),o=[i?.[1]?[i[1],r.slice(i[1].length)]:["",r]];for(let s=1;s<t.length;s+=2)o.push([t[s],t[s+1]]);return o}function t_(e,t,r){const{offset:i,type:n,source:o,end:s}=e;let a,c;const h=(y,_,b)=>r(i+y,_,b);switch(n){case"scalar":a=le.PLAIN,c=n_(o,h);break;case"single-quoted-scalar":a=le.QUOTE_SINGLE,c=r_(o,h);break;case"double-quoted-scalar":a=le.QUOTE_DOUBLE,c=i_(o,h);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${n}`),{value:"",type:null,comment:"",range:[i,i+o.length,i+o.length]}}const u=i+o.length,d=Qn(s,u,t,r);return{value:c,type:a,comment:d.comment,range:[i,u,d.offset]}}function n_(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${e[0]}`;break}case"@":case"`":{r=`reserved character ${e[0]}`;break}}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),Fp(e)}function r_(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Fp(e.slice(1,-1)).replace(/''/g,"'")}function Fp(e){let t,r;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
125
|
+
`,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
126
|
+
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let i=t.exec(e);if(!i)return e;let n=i[1],o=" ",s=t.lastIndex;for(r.lastIndex=s;i=r.exec(e);)i[1]===""?o===`
|
|
127
|
+
`?n+=o:o=`
|
|
128
|
+
`:(n+=o+i[1],o=" "),s=r.lastIndex;const a=/[ \t]*(.*)/sy;return a.lastIndex=s,i=a.exec(e),n+o+(i?.[1]??"")}function i_(e,t){let r="";for(let i=1;i<e.length-1;++i){const n=e[i];if(!(n==="\r"&&e[i+1]===`
|
|
129
|
+
`))if(n===`
|
|
130
|
+
`){const{fold:o,offset:s}=o_(e,i);r+=o,i=s}else if(n==="\\"){let o=e[++i];const s=s_[o];if(s)r+=s;else if(o===`
|
|
131
|
+
`)for(o=e[i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="\r"&&e[i+1]===`
|
|
132
|
+
`)for(o=e[++i+1];o===" "||o===" ";)o=e[++i+1];else if(o==="x"||o==="u"||o==="U"){const a={x:2,u:4,U:8}[o];r+=a_(e,i+1,a,t),i+=a}else{const a=e.substr(i-1,2);t(i-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),r+=a}}else if(n===" "||n===" "){const o=i;let s=e[i+1];for(;s===" "||s===" ";)s=e[++i+1];s!==`
|
|
133
|
+
`&&!(s==="\r"&&e[i+2]===`
|
|
134
|
+
`)&&(r+=i>o?e.slice(o,i+1):n)}else r+=n}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}function o_(e,t){let r="",i=e[t+1];for(;(i===" "||i===" "||i===`
|
|
135
|
+
`||i==="\r")&&!(i==="\r"&&e[t+2]!==`
|
|
136
|
+
`);)i===`
|
|
137
|
+
`&&(r+=`
|
|
138
|
+
`),t+=1,i=e[t+1];return r||(r=" "),{fold:r,offset:t}}const s_={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
139
|
+
`,r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function a_(e,t,r,i){const n=e.substr(t,r),s=n.length===r&&/^[0-9a-fA-F]+$/.test(n)?parseInt(n,16):NaN;if(isNaN(s)){const a=e.substr(t-2,r+2);return i(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(s)}function Lp(e,t,r,i){const{value:n,type:o,comment:s,range:a}=t.type==="block-scalar"?Yb(e,t,i):t_(t,e.options.strict,i),c=r?e.directives.tagName(r.source,d=>i(r,"TAG_RESOLVE_FAILED",d)):null;let h;e.options.stringKeys&&e.atKey?h=e.schema[yt]:c?h=u_(e.schema,n,c,r,i):t.type==="scalar"?h=c_(e,n,t,i):h=e.schema[yt];let u;try{const d=h.resolve(n,y=>i(r??t,"TAG_RESOLVE_FAILED",y),e.options);u=xe(d)?d:new le(d)}catch(d){const y=d instanceof Error?d.message:String(d);i(r??t,"TAG_RESOLVE_FAILED",y),u=new le(n)}return u.range=a,u.source=n,o&&(u.type=o),c&&(u.tag=c),h.format&&(u.format=h.format),s&&(u.comment=s),u}function u_(e,t,r,i,n){if(r==="!")return e[yt];const o=[];for(const a of e.tags)if(!a.collection&&a.tag===r)if(a.default&&a.test)o.push(a);else return a;for(const a of o)if(a.test?.test(t))return a;const s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(n(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),e[yt])}function c_({atKey:e,directives:t,schema:r},i,n,o){const s=r.tags.find(a=>(a.default===!0||e&&a.default==="key")&&a.test?.test(i))||r[yt];if(r.compat){const a=r.compat.find(c=>c.default&&c.test?.test(i))??r[yt];if(s.tag!==a.tag){const c=t.tagString(s.tag),h=t.tagString(a.tag),u=`Value may be parsed as either ${c} or ${h}`;o(n,"TAG_RESOLVE_FAILED",u,!0)}}return s}function l_(e,t,r){if(t){r??(r=t.length);for(let i=r-1;i>=0;--i){let n=t[i];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++i];n?.type==="space";)e+=n.source.length,n=t[++i];break}}return e}const f_={composeNode:Zp,composeEmptyNode:za};function Zp(e,t,r,i){const n=e.atKey,{spaceBefore:o,comment:s,anchor:a,tag:c}=r;let h,u=!0;switch(t.type){case"alias":h=d_(e,t,i),(a||c)&&i(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":h=Lp(e,t,c,i),a&&(h.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":h=Xb(f_,e,t,r,i),a&&(h.anchor=a.source.substring(1));break;default:{const d=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;i(t,"UNEXPECTED_TOKEN",d),h=za(e,t.offset,void 0,null,r,i),u=!1}}return a&&h.anchor===""&&i(a,"BAD_ALIAS","Anchor cannot be an empty string"),n&&e.options.stringKeys&&(!xe(h)||typeof h.value!="string"||h.tag&&h.tag!=="tag:yaml.org,2002:str")&&i(c??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(h.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?h.comment=s:h.commentBefore=s),e.options.keepSourceTokens&&u&&(h.srcToken=t),h}function za(e,t,r,i,{spaceBefore:n,comment:o,anchor:s,tag:a,end:c},h){const u={type:"scalar",offset:l_(t,r,i),indent:-1,source:""},d=Lp(e,u,a,h);return s&&(d.anchor=s.source.substring(1),d.anchor===""&&h(s,"BAD_ALIAS","Anchor cannot be an empty string")),n&&(d.spaceBefore=!0),o&&(d.comment=o,d.range[2]=c),d}function d_({options:e},{offset:t,source:r,end:i},n){const o=new ba(r.substring(1));o.source===""&&n(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&n(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const s=t+r.length,a=Qn(i,s,e.strict,n);return o.range=[t,s,a.offset],a.comment&&(o.comment=a.comment),o}function h_(e,t,{offset:r,start:i,value:n,end:o},s){const a=Object.assign({_directives:t},e),c=new Zi(void 0,a),h={atKey:!1,atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=vn(i,{indicator:"doc-start",next:n??o?.[0],offset:r,onError:s,parentIndent:0,startOnNewline:!0});u.found&&(c.directives.docStart=!0,n&&(n.type==="block-map"||n.type==="block-seq")&&!u.hasNewline&&s(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=n?Zp(h,n,u,s):za(h,u.end,i,null,u,s);const d=c.contents.range[2],y=Qn(o,d,!1,s);return y.comment&&(c.comment=y.comment),c.range=[r,d,y.offset],c}function On(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:r}=e;return[t,t+(typeof r=="string"?r.length:1)]}function vc(e){let t="",r=!1,i=!1;for(let n=0;n<e.length;++n){const o=e[n];switch(o[0]){case"#":t+=(t===""?"":i?`
|
|
140
|
+
|
|
141
|
+
`:`
|
|
142
|
+
`)+(o.substring(1)||" "),r=!0,i=!1;break;case"%":e[n+1]?.[0]!=="#"&&(n+=1),r=!1;break;default:r||(i=!0),r=!1}}return{comment:t,afterEmptyLine:i}}class p_{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,i,n,o)=>{const s=On(r);o?this.warnings.push(new Jb(s,i,n)):this.errors.push(new Tn(s,i,n))},this.directives=new We({version:t.version||"1.2"}),this.options=t}decorate(t,r){const{comment:i,afterEmptyLine:n}=vc(this.prelude);if(i){const o=t.contents;if(r)t.comment=t.comment?`${t.comment}
|
|
143
|
+
${i}`:i;else if(n||t.directives.docStart||!o)t.commentBefore=i;else if(Pe(o)&&!o.flow&&o.items.length>0){let s=o.items[0];Ue(s)&&(s=s.key);const a=s.commentBefore;s.commentBefore=a?`${i}
|
|
144
|
+
${a}`:i}else{const s=o.commentBefore;o.commentBefore=s?`${i}
|
|
145
|
+
${s}`:i}}r?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:vc(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,r=!1,i=-1){for(const n of t)yield*this.next(n);yield*this.end(r,i)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(r,i,n)=>{const o=On(t);o[0]+=r,this.onError(o,"BAD_DIRECTIVE",i,n)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const r=h_(this.options,this.directives,t,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const r=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,i=new Tn(On(t),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(i):this.doc.errors.push(i);break}case"doc-end":{if(!this.doc){const i="Unexpected doc-end without preceding document";this.errors.push(new Tn(On(t),"UNEXPECTED_TOKEN",i));break}this.doc.directives.docEnd=!0;const r=Qn(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const i=this.doc.comment;this.doc.comment=i?`${i}
|
|
146
|
+
${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Tn(On(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const i=Object.assign({_directives:this.directives},this.options),n=new Zi(void 0,i);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),n.range=[0,r,r],this.decorate(n,!1),yield n}}}const Mp="\uFEFF",qp="",Vp="",xo="";function m_(e){switch(e){case Mp:return"byte-order-mark";case qp:return"doc-mode";case Vp:return"flow-error-end";case xo:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
147
|
+
`:case`\r
|
|
148
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function ct(e){switch(e){case void 0:case" ":case`
|
|
149
|
+
`:case"\r":case" ":return!0;default:return!1}}const $c=new Set("0123456789ABCDEFabcdef"),g_=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Kr=new Set(",[]{}"),y_=new Set(` ,[]{}
|
|
150
|
+
\r `),uo=e=>!e||y_.has(e);class v_{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,r=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!r;let i=this.next??"stream";for(;i&&(r||this.hasChars(1));)i=yield*this.parseNext(i)}atLineEnd(){let t=this.pos,r=this.buffer[t];for(;r===" "||r===" ";)r=this.buffer[++t];return!r||r==="#"||r===`
|
|
151
|
+
`?!0:r==="\r"?this.buffer[t+1]===`
|
|
152
|
+
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let r=this.buffer[t];if(this.indentNext>0){let i=0;for(;r===" ";)r=this.buffer[++i+t];if(r==="\r"){const n=this.buffer[i+t+1];if(n===`
|
|
153
|
+
`||!n&&!this.atEnd)return t+i+1}return r===`
|
|
154
|
+
`||i>=this.indentNext||!r&&!this.atEnd?t+i:-1}if(r==="-"||r==="."){const i=this.buffer.substr(t,3);if((i==="---"||i==="...")&&ct(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
155
|
+
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Mp&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let r=t.length,i=t.indexOf("#");for(;i!==-1;){const o=t[i-1];if(o===" "||o===" "){r=i-1;break}else i=t.indexOf("#",i+1)}for(;;){const o=t[r-1];if(o===" "||o===" ")r-=1;else break}const n=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){const r=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-r),yield*this.pushNewline(),"stream"}return yield qp,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const r=this.peek(3);if((r==="---"||r==="...")&&ct(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!ct(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&ct(r)){const i=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=i,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(t[r]){case"#":yield*this.pushCount(t.length-r);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(uo),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,r,i=-1;do t=yield*this.pushNewline(),t>0?(r=yield*this.pushSpaces(!1),this.indentValue=i=r):r=0,r+=yield*this.pushSpaces(!0);while(t+r>0);const n=this.getLine();if(n===null)return this.setNext("flow");if((i!==-1&&i<this.indentNext&&n[0]!=="#"||i===0&&(n.startsWith("---")||n.startsWith("..."))&&ct(n[3]))&&!(i===this.indentNext-1&&this.flowLevel===1&&(n[0]==="]"||n[0]==="}")))return this.flowLevel=0,yield Vp,yield*this.parseLineStart();let o=0;for(;n[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),n[o]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(uo),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const s=this.charAt(1);if(this.flowKey||ct(s)||s===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let r=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let o=0;for(;this.buffer[r-1-o]==="\\";)o+=1;if(o%2===0)break;r=this.buffer.indexOf('"',r+1)}const i=this.buffer.substring(0,r);let n=i.indexOf(`
|
|
156
|
+
`,this.pos);if(n!==-1){for(;n!==-1;){const o=this.continueScalar(n+1);if(o===-1)break;n=i.indexOf(`
|
|
157
|
+
`,o)}n!==-1&&(r=n-(i[n-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const r=this.buffer[++t];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>ct(r)||r==="#")}*parseBlockScalar(){let t=this.pos-1,r=0,i;e:for(let o=this.pos;i=this.buffer[o];++o)switch(i){case" ":r+=1;break;case`
|
|
158
|
+
`:t=o,r=0;break;case"\r":{const s=this.buffer[o+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
|
|
159
|
+
`)break}default:break e}if(!i&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
|
|
160
|
+
`,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(i=this.buffer[n];i===" ";)i=this.buffer[++n];if(i===" "){for(;i===" "||i===" "||i==="\r"||i===`
|
|
161
|
+
`;)i=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)do{let o=t-1,s=this.buffer[o];s==="\r"&&(s=this.buffer[--o]);const a=o;for(;s===" ";)s=this.buffer[--o];if(s===`
|
|
162
|
+
`&&o>=this.pos&&o+1+r>a)t=o;else break}while(!0);return yield xo,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let r=this.pos-1,i=this.pos-1,n;for(;n=this.buffer[++i];)if(n===":"){const o=this.buffer[i+1];if(ct(o)||t&&Kr.has(o))break;r=i}else if(ct(n)){let o=this.buffer[i+1];if(n==="\r"&&(o===`
|
|
163
|
+
`?(i+=1,n=`
|
|
164
|
+
`,o=this.buffer[i+1]):r=i),o==="#"||t&&Kr.has(o))break;if(n===`
|
|
165
|
+
`){const s=this.continueScalar(i+1);if(s===-1)break;i=Math.max(i,s-2)}}else{if(t&&Kr.has(n))break;r=i}return!n&&!this.atEnd?this.setNext("plain-scalar"):(yield xo,yield*this.pushToIndex(r+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,r){const i=this.buffer.slice(this.pos,t);return i?(yield i,this.pos+=i.length,i.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(uo))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,r=this.charAt(1);if(ct(r)||t&&Kr.has(r))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,r=this.buffer[t];for(;!ct(r)&&r!==">";)r=this.buffer[++t];return yield*this.pushToIndex(r===">"?t+1:t,!1)}else{let t=this.pos+1,r=this.buffer[t];for(;r;)if(g_.has(r))r=this.buffer[++t];else if(r==="%"&&$c.has(this.buffer[t+1])&&$c.has(this.buffer[t+2]))r=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
|
166
|
+
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
167
|
+
`?yield*this.pushCount(2):0}*pushSpaces(t){let r=this.pos-1,i;do i=this.buffer[++r];while(i===" "||t&&i===" ");const n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(t){let r=this.pos,i=this.buffer[r];for(;!t(i);)i=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class $_{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let r=0,i=this.lineStarts.length;for(;r<i;){const o=r+i>>1;this.lineStarts[o]<t?r=o+1:i=o}if(this.lineStarts[r]===t)return{line:r+1,col:1};if(r===0)return{line:0,col:t};const n=this.lineStarts[r-1];return{line:r,col:t-n+1}}}}function Tt(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function bc(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function Kp(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Jr(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function nn(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function _c(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Tt(t.start,"explicit-key-ind")&&!Tt(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Kp(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class b_{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new v_,this.onNewLine=t}*parse(t,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const i of this.lexer.lex(t,r))yield*this.next(i);r||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const r=m_(t);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const i=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:i,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const r=t??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const i=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in i?i.indent:0:r.type==="flow-collection"&&i.type==="document"&&(r.indent=0),r.type==="flow-collection"&&_c(r),i.type){case"document":i.value=r;break;case"block-scalar":i.props.push(r);break;case"block-map":{const n=i.items[i.items.length-1];if(n.value){i.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=r;else{Object.assign(n,{key:r,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{const n=i.items[i.items.length-1];n.value?i.items.push({start:[],value:r}):n.value=r;break}case"flow-collection":{const n=i.items[i.items.length-1];!n||n.value?i.items.push({start:[],key:r,sep:[]}):n.sep?n.value=r:Object.assign(n,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((i.type==="document"||i.type==="block-map"||i.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const n=r.items[r.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&bc(n.start)===-1&&(r.indent===0||n.start.every(o=>o.type!=="comment"||o.indent<r.indent))&&(i.type==="document"?i.end=n.start:i.items.push({start:n.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{bc(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const r=Jr(this.peek(2)),i=nn(r);let n;t.end?(n=t.end,n.push(this.sourceToken),delete t.end):n=[this.sourceToken];const o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:i,key:t,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
|
|
168
|
+
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
|
169
|
+
`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const r=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const i="end"in r.value?r.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,t.indent)){const n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent,n=i&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(n&&r.sep&&!r.value){const s=[];for(let a=0;a<r.sep.length;++a){const c=r.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>t.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(o=r.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":n||r.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):n||r.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Tt(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(Kp(r.key)&&!Tt(r.sep,"newline")){const s=nn(r.start),a=r.key,c=r.sep;c.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else o.length>0?r.sep=r.sep.concat(o,this.sourceToken):r.sep.push(this.sourceToken);else if(Tt(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const s=nn(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||n?t.items.push({start:o,key:null,sep:[this.sourceToken]}):Tt(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);n||r.value?(t.items.push({start:o,key:s,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(s):(Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(t);if(s){if(s.type==="block-seq"){if(!r.explicitKey&&r.sep&&!Tt(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else i&&t.items.push({start:o});this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const r=t.items[t.items.length-1];switch(this.type){case"newline":if(r.value){const i="end"in r.value?r.value.end:void 0;(Array.isArray(i)?i[i.length-1]:void 0)?.type==="comment"?i?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,t.indent)){const n=t.items[t.items.length-2]?.value?.end;if(Array.isArray(n)){Array.prototype.push.apply(n,r.start),n.push(this.sourceToken),t.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=t.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;r.value||Tt(r.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const r=t.items[t.items.length-1];if(this.type==="flow-error-end"){let i;do yield*this.pop(),i=this.peek(1);while(i&&i.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?t.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?t.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const n=this.flowScalar(this.type);!r||r.value?t.items.push({start:[],key:n,sep:[]}):r.sep?this.stack.push(n):Object.assign(r,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const i=this.startBlockValue(t);i?this.stack.push(i):(yield*this.pop(),yield*this.step())}else{const i=this.peek(2);if(i.type==="block-map"&&(this.type==="map-value-ind"&&i.indent===t.indent||this.type==="newline"&&!i.items[i.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&i.type!=="flow-collection"){const n=Jr(i),o=nn(n);_c(t);const s=t.end.splice(1,t.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:o,key:t,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let r=this.source.indexOf(`
|
|
170
|
+
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
|
171
|
+
`,r)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=Jr(t),i=nn(r);return i.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=Jr(t),i=nn(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,r){return this.type!=="comment"||this.indent<=r?!1:t.every(i=>i.type==="newline"||i.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function __(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new $_||null,prettyErrors:t}}function w_(e,t={}){const{lineCounter:r,prettyErrors:i}=__(t),n=new b_(r?.addNewLine),o=new p_(t);let s=null;for(const a of o.compose(n.parse(e),!0,e.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Tn(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return i&&r&&(s.errors.forEach(gc(e,r)),s.warnings.forEach(gc(e,r))),s}function k_(e,t,r){let i;const n=w_(e,r);if(!n)return null;if(n.warnings.forEach(o=>$p(n.options.logLevel,o)),n.errors.length>0){if(n.options.logLevel!=="silent")throw n.errors[0];n.errors=[]}return n.toJS(Object.assign({reviver:i},r))}const wc=new WeakMap;function S_(e){const t=U0.safeParse(e);if(!t.success)return e;const r=wc.get(e);if(r!==void 0)return r;const i=k_(t.data.value);return wc.set(e,i),i}class I_ extends Ai{getNodeDependencies({resolvedInputs:t}){const r=[];for(const i of Object.values(t??{}))for(const n of i)r.push(n.input.instanceId);return r}processNode({instance:t,component:r,resolvedInputs:i,sourceHash:n,state:o}){const s=[];s.push(Zr(r.definitionHash)),o?.operationStatus?.inputHashNonce&&s.push(Zr(o.operationStatus.inputHashNonce)),t.args&&s.push(H$(t.args)),n?s.push(Zr(n)):fa(r)&&this.logger.warn({instanceId:t.id},"missing source hash for unit model, this may lead to incorrect input hash");const a=Object.entries(i).sort(([d],[y])=>d.localeCompare(y)),c=new Set;for(const[d,y]of a){if(Object.keys(y).length===0)continue;s.push(Pt.from(d));const _=y.map(b=>b.input.instanceId).sort();for(const b of _){const g=this.outputs.get(b);g&&(s.push(Zr(g.inputHash)),s.push(Pt.from(g.outputHash)),c.add(b))}}const h=[],u=Array.from(c).sort();for(const d of u)this.outputs.get(d)&&h.push(Pt.from(d));return{inputHash:I$(Pt.concat(s)),dependencyOutputHash:hb(ub(Pt.concat(h))),outputHash:o?.operationStatus?.outputHash??""}}}const co=10,kc=(e=0)=>t=>`\x1B[${t+e}m`,Sc=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Ic=(e=0)=>(t,r,i)=>`\x1B[${38+e};2;${t};${r};${i}m`,Ae={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Ae.modifier);const E_=Object.keys(Ae.color),x_=Object.keys(Ae.bgColor);[...E_,...x_];function N_(){const e=new Map;for(const[t,r]of Object.entries(Ae)){for(const[i,n]of Object.entries(r))Ae[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},r[i]=Ae[i],e.set(n[0],n[1]);Object.defineProperty(Ae,t,{value:r,enumerable:!1})}return Object.defineProperty(Ae,"codes",{value:e,enumerable:!1}),Ae.color.close="\x1B[39m",Ae.bgColor.close="\x1B[49m",Ae.color.ansi=kc(),Ae.color.ansi256=Sc(),Ae.color.ansi16m=Ic(),Ae.bgColor.ansi=kc(co),Ae.bgColor.ansi256=Sc(co),Ae.bgColor.ansi16m=Ic(co),Object.defineProperties(Ae,{rgbToAnsi256:{value:(t,r,i)=>t===r&&r===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:t=>{const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[i]=r;i.length===3&&(i=[...i].map(o=>o+o).join(""));const n=Number.parseInt(i,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:t=>Ae.rgbToAnsi256(...Ae.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,i,n;if(t>=232)r=((t-232)*10+8)/255,i=r,n=r;else{t-=16;const a=t%36;r=Math.floor(t/36)/5,i=Math.floor(a/6)/5,n=a%6/5}const o=Math.max(r,i,n)*2;if(o===0)return 30;let s=30+(Math.round(n)<<2|Math.round(i)<<1|Math.round(r));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,r,i)=>Ae.ansi256ToAnsi(Ae.rgbToAnsi256(t,r,i)),enumerable:!1},hexToAnsi:{value:t=>Ae.ansi256ToAnsi(Ae.hexToAnsi256(t)),enumerable:!1}}),Ae}const Qe=N_();class O_ extends Ai{getNodeDependencies({resolvedInputs:t}){const r=[];for(const i of Object.values(t))for(const n of i)r.push(n.input.instanceId);return r}processNode({instance:t,component:r,state:i,resolvedInputs:n}){const o=new Hh.Ajv({strict:!1});this.logger.debug({instanceId:t.id},"validating instance");const s=[];for(const[h,u]of Object.entries(r.args))try{const d=S_(t.args?.[h]);if(!u.required&&d===void 0)continue;o.validate(u.schema,d)||(this.logger.debug({instanceId:t.id,argumentName:h},"invalid argument"),s.push(`Invalid argument "${Qe.blueBright.open}${h}${Qe.reset.close}": `+o.errorsText()))}catch(d){this.logger.debug({instanceId:t.id,argumentName:h,error:d},"failed to validate argument"),s.push(`Failed to validate argument "${Qe.blueBright.open}${h}${Qe.reset.close}": `+(d instanceof Error?d.message:String(d)))}if(fa(r))for(const[h,u]of Object.entries(r.secrets))u.required&&!i?.secretNames?.includes(h)&&s.push(`Missing required secret "${Qe.blueBright.open}${h}${Qe.reset.close}"`);for(const[h,u]of Object.entries(n))for(const d of u)this.outputs.get(d.input.instanceId)?.status!=="ok"&&s.push(`Invalid input "${Qe.blueBright.open}${h}${Qe.reset.close}":
|
|
172
|
+
"${Qe.blueBright.open}${d.input.instanceId}${Qe.reset.close}" has validation errors`);for(const[h,u]of Object.entries(r.inputs))u.required&&(!n[h]||!n[h].length)&&s.push(`Missing required input "${Qe.blueBright.open}${h}${Qe.reset.close}" of type "${Qe.greenBright.open}${u.type}${Qe.reset.close}"`);if(s.length===0)return{status:"ok"};const a=(s.length+1).toString().length+2;return{status:"error",errorText:s.map((h,u)=>{const d=h.split(`
|
|
173
|
+
`),y=`${u+1}. `;return d.map((_,b)=>`${b===0?y:" ".repeat(a)}${_}`).join(`\r
|
|
174
|
+
`)}).join(`\r
|
|
175
|
+
`)}}}const j_={InputResolver:h$,InputHashResolver:I_,ValidationResolver:O_,StateResolver:d$};var jn={exports:{}},lo,Ec;function A_(){if(Ec)return lo;Ec=1;function e(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}lo=t;function t(r,i,n){var o=n&&n.stringify||e,s=1;if(typeof r=="object"&&r!==null){var a=i.length+s;if(a===1)return r;var c=new Array(a);c[0]=o(r);for(var h=1;h<a;h++)c[h]=o(i[h]);return c.join(" ")}if(typeof r!="string")return r;var u=i.length;if(u===0)return r;for(var d="",y=1-s,_=-1,b=r&&r.length||0,g=0;g<b;){if(r.charCodeAt(g)===37&&g+1<b){switch(_=_>-1?_:0,r.charCodeAt(g+1)){case 100:case 102:if(y>=u||i[y]==null)break;_<g&&(d+=r.slice(_,g)),d+=Number(i[y]),_=g+2,g++;break;case 105:if(y>=u||i[y]==null)break;_<g&&(d+=r.slice(_,g)),d+=Math.floor(Number(i[y])),_=g+2,g++;break;case 79:case 111:case 106:if(y>=u||i[y]===void 0)break;_<g&&(d+=r.slice(_,g));var m=typeof i[y];if(m==="string"){d+="'"+i[y]+"'",_=g+2,g++;break}if(m==="function"){d+=i[y].name||"<anonymous>",_=g+2,g++;break}d+=o(i[y]),_=g+2,g++;break;case 115:if(y>=u)break;_<g&&(d+=r.slice(_,g)),d+=String(i[y]),_=g+2,g++;break;case 37:_<g&&(d+=r.slice(_,g)),d+="%",_=g+2,g++,y--;break}++y}++g}return _===-1?r:(_<b&&(d+=r.slice(_)),d)}return lo}var xc;function z_(){if(xc)return jn.exports;xc=1;const e=A_();jn.exports=u;const t=pe().console||{},r={mapHttpRequest:N,mapHttpResponse:N,wrapRequestSerializer:j,wrapResponseSerializer:j,wrapErrorSerializer:j,req:N,res:N,err:E,errWithCause:E};function i(F,X){return F==="silent"?1/0:X.levels.values[F]}const n=Symbol("pino.logFuncs"),o=Symbol("pino.hierarchy"),s={error:"log",fatal:"error",warn:"error",info:"log",debug:"log",trace:"log"};function a(F,X){const ie={logger:X,parent:F[o]};X[o]=ie}function c(F,X,ie){const re={};X.forEach(ce=>{re[ce]=ie[ce]?ie[ce]:t[ce]||t[s[ce]||"log"]||Z}),F[n]=re}function h(F,X){return Array.isArray(F)?F.filter(function(re){return re!=="!stdSerializers.err"}):F===!0?Object.keys(X):!1}function u(F){F=F||{},F.browser=F.browser||{};const X=F.browser.transmit;if(X&&typeof X.send!="function")throw Error("pino: transmit option must have a send function");const ie=F.browser.write||t;F.browser.write&&(F.browser.asObject=!0);const re=F.serializers||{},ce=h(F.browser.serialize,re);let K=F.browser.serialize;Array.isArray(F.browser.serialize)&&F.browser.serialize.indexOf("!stdSerializers.err")>-1&&(K=!1);const T=Object.keys(F.customLevels||{}),L=["error","fatal","warn","info","debug","trace"].concat(T);typeof ie=="function"&&L.forEach(function(se){ie[se]=ie}),(F.enabled===!1||F.browser.disabled)&&(F.level="silent");const P=F.level||"info",w=Object.create(ie);w.log||(w.log=Z),c(w,L,ie),a({},w),Object.defineProperty(w,"levelVal",{get:R}),Object.defineProperty(w,"level",{get:ee,set:te});const O={transmit:X,serialize:ce,asObject:F.browser.asObject,asObjectBindingsOnly:F.browser.asObjectBindingsOnly,formatters:F.browser.formatters,levels:L,timestamp:I(F),messageKey:F.messageKey||"msg",onChild:F.onChild||Z};w.levels=d(F),w.level=P,w.isLevelEnabled=function(se){return this.levels.values[se]?this.levels.values[se]>=this.levels.values[this.level]:!1},w.setMaxListeners=w.getMaxListeners=w.emit=w.addListener=w.on=w.prependListener=w.once=w.prependOnceListener=w.removeListener=w.removeAllListeners=w.listeners=w.listenerCount=w.eventNames=w.write=w.flush=Z,w.serializers=re,w._serialize=ce,w._stdErrSerialize=K,w.child=function(...se){return me.call(this,O,...se)},X&&(w._logEvent=S());function R(){return i(this.level,this)}function ee(){return this._level}function te(se){if(se!=="silent"&&!this.levels.values[se])throw Error("unknown level "+se);this._level=se,b(this,O,w,"error"),b(this,O,w,"fatal"),b(this,O,w,"warn"),b(this,O,w,"info"),b(this,O,w,"debug"),b(this,O,w,"trace"),T.forEach(A=>{b(this,O,w,A)})}function me(se,A,U){if(!A)throw new Error("missing bindings for child Pino");U=U||{},ce&&A.serializers&&(U.serializers=A.serializers);const q=U.serializers;if(ce&&q){var J=Object.assign({},re,q),ne=F.browser.serialize===!0?Object.keys(J):ce;delete A.serializers,f([A],ne,J,this._stdErrSerialize)}function ae(Le){this._childLevel=(Le._childLevel|0)+1,this.bindings=A,J&&(this.serializers=J,this._serialize=ne),X&&(this._logEvent=S([].concat(Le._logEvent.bindings,A)))}ae.prototype=this;const we=new ae(this);return a(this,we),we.child=function(...Le){return me.call(this,se,...Le)},we.level=U.level||this.level,se.onChild(we),we}return w}function d(F){const X=F.customLevels||{},ie=Object.assign({},u.levels.values,X),re=Object.assign({},u.levels.labels,y(X));return{values:ie,labels:re}}function y(F){const X={};return Object.keys(F).forEach(function(ie){X[F[ie]]=ie}),X}u.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},u.stdSerializers=r,u.stdTimeFunctions=Object.assign({},{nullTime:W,epochTime:Y,unixTime:Q,isoTime:oe});function _(F){const X=[];F.bindings&&X.push(F.bindings);let ie=F[o];for(;ie.parent;)ie=ie.parent,ie.logger.bindings&&X.push(ie.logger.bindings);return X.reverse()}function b(F,X,ie,re){if(Object.defineProperty(F,re,{value:i(F.level,ie)>i(re,ie)?Z:ie[n][re],writable:!0,enumerable:!0,configurable:!0}),F[re]===Z){if(!X.transmit)return;const K=X.transmit.level||F.level,T=i(K,ie);if(i(re,ie)<T)return}F[re]=m(F,X,ie,re);const ce=_(F);ce.length!==0&&(F[re]=g(ce,F[re]))}function g(F,X){return function(){return X.apply(this,[...F,...arguments])}}function m(F,X,ie,re){return function(ce){return function(){const T=X.timestamp(),L=new Array(arguments.length),P=Object.getPrototypeOf&&Object.getPrototypeOf(this)===t?t:this;for(var w=0;w<L.length;w++)L[w]=arguments[w];var O=!1;if(X.serialize&&(f(L,this._serialize,this.serializers,this._stdErrSerialize),O=!0),X.asObject||X.formatters?ce.call(P,...$(this,re,L,T,X)):ce.apply(P,L),X.transmit){const R=X.transmit.level||F._level,ee=i(R,ie),te=i(re,ie);if(te<ee)return;v(this,{ts:T,methodLevel:re,methodValue:te,transmitValue:ie.levels.values[X.transmit.level||F._level],send:X.transmit.send,val:i(F._level,ie)},L,O)}}}(F[n][re])}function $(F,X,ie,re,ce){const{level:K,log:T=R=>R}=ce.formatters||{},L=ie.slice();let P=L[0];const w={};let O=(F._childLevel|0)+1;if(O<1&&(O=1),re&&(w.time=re),K){const R=K(X,F.levels.values[X]);Object.assign(w,R)}else w.level=F.levels.values[X];if(ce.asObjectBindingsOnly){if(P!==null&&typeof P=="object")for(;O--&&typeof L[0]=="object";)Object.assign(w,L.shift());return[T(w),...L]}else{if(P!==null&&typeof P=="object"){for(;O--&&typeof L[0]=="object";)Object.assign(w,L.shift());P=L.length?e(L.shift(),L):void 0}else typeof P=="string"&&(P=e(L.shift(),L));return P!==void 0&&(w[ce.messageKey]=P),[T(w)]}}function f(F,X,ie,re){for(const ce in F)if(re&&F[ce]instanceof Error)F[ce]=u.stdSerializers.err(F[ce]);else if(typeof F[ce]=="object"&&!Array.isArray(F[ce])&&X)for(const K in F[ce])X.indexOf(K)>-1&&K in ie&&(F[ce][K]=ie[K](F[ce][K]))}function v(F,X,ie,re=!1){const ce=X.send,K=X.ts,T=X.methodLevel,L=X.methodValue,P=X.val,w=F._logEvent.bindings;re||f(ie,F._serialize||Object.keys(F.serializers),F.serializers,F._stdErrSerialize===void 0?!0:F._stdErrSerialize),F._logEvent.ts=K,F._logEvent.messages=ie.filter(function(O){return w.indexOf(O)===-1}),F._logEvent.level.label=T,F._logEvent.level.value=L,ce(T,F._logEvent,P),F._logEvent=S(w)}function S(F){return{ts:0,messages:[],bindings:F||[],level:{label:"",value:0}}}function E(F){const X={type:F.constructor.name,msg:F.message,stack:F.stack};for(const ie in F)X[ie]===void 0&&(X[ie]=F[ie]);return X}function I(F){return typeof F.timestamp=="function"?F.timestamp:F.timestamp===!1?W:Y}function N(){return{}}function j(F){return F}function Z(){}function W(){return!1}function Y(){return Date.now()}function Q(){return Math.round(Date.now()/1e3)}function oe(){return new Date(Date.now()).toISOString()}function pe(){function F(X){return typeof X<"u"&&X}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return F(self)||F(window)||F(this)||{}}}return jn.exports.default=u,jn.exports.pino=u,jn.exports}var T_=z_();const Xr=(e,t)=>{e.postMessage(t)},Vn=new Map,P_=async(e,t,r,i,n=!1)=>{if(Vn.has(r)){console.warn(`state with id "${r}" already exists`);return}const o=T_.pino({level:"info"}).child({resolverId:r,resolverType:i}),s=(h,u)=>{Xr(e,{type:"outputs",resolverId:r,items:[{nodeId:h,output:u}]})};let a;n&&(a=(h,u)=>{Xr(e,{type:"dependent-set",resolverId:r,nodeId:h,dependents:u&&Array.from(u)})});const c=new j_[i](t,o,s,a);Vn.set(r,{nodes:t,resolver:c,logger:o,abortController:new AbortController}),c.addAllNodesToWorkset(),await c.process(),Xr(e,{type:"resolver-ready",resolverId:r})},Jp=(e,t,r)=>{e.abortController.abort(),e.abortController=new AbortController,e.nodes.set(t,r),e.resolver.invalidate(t),e.resolver.process(e.abortController.signal)},D_=(e,t,r)=>{const i=Vn.get(e);if(!i)throw new Error(`Unknown state: ${e}`);i.nodes.set(t,r),Jp(i,t,r)},U_=(e,t)=>{const r=Vn.get(e);if(!r)throw new Error(`Unknown state: ${e}`);r.nodes.delete(t),Jp(r,t,void 0)},C_=e=>{Vn.delete(e)};self.onconnect=e=>{const t=e.ports[0];t.onmessage=r=>{const i=r.data;switch(i.type){case"create-resolver":{const n=new Map(Object.entries(i.nodes));P_(t,n,i.resolverId,i.resolverType,i.syncDependentMap);break}case"update-input":{D_(i.resolverId,i.nodeId,i.node);break}case"delete-input":{U_(i.resolverId,i.nodeId);break}case"dispose-resolver":{C_(i.resolverId);break}}},Xr(t,{type:"ready"})};
|