@caspian2026/agent-sdk 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-s9dazft8.js → chunk-09nzqj0f.js} +2927 -764
- package/dist/{chunk-9gn2ft16.js → chunk-0a8jb5c8.js} +9 -9
- package/dist/{chunk-xrtkg6a5.js → chunk-0b85d7q0.js} +7 -7
- package/dist/{chunk-5j8md8dg.js → chunk-0dwdg9bz.js} +9 -9
- package/dist/{chunk-ap1wxeh4.js → chunk-0f84wjjc.js} +79 -79
- package/dist/chunk-0fw1mz8s.js +27 -0
- package/dist/{chunk-kwekc97v.js → chunk-0pbwcm8b.js} +1 -1
- package/dist/chunk-0pqv68xt.js +133 -0
- package/dist/chunk-0pv13fxq.js +1684 -0
- package/dist/chunk-0tgn1431.js +38 -0
- package/dist/{chunk-bg4x9ex0.js → chunk-0tja7d1y.js} +6 -6
- package/dist/{chunk-xs6my1r1.js → chunk-0w2ntzwz.js} +92 -92
- package/dist/chunk-0yshjsxt.js +122 -0
- package/dist/chunk-0z9s957c.js +94 -0
- package/dist/{chunk-fyc5fepv.js → chunk-0zscb6c7.js} +1 -1
- package/dist/{chunk-x8d2ehd7.js → chunk-13pmg16e.js} +1 -1
- package/dist/{chunk-v4t6dyyh.js → chunk-15f7ee0j.js} +245 -158
- package/dist/{chunk-ksrvrndt.js → chunk-1ehn6qdp.js} +13 -13
- package/dist/chunk-1gt45dyg.js +101 -0
- package/dist/{chunk-39dpcr2t.js → chunk-1s9jxpjm.js} +7 -7
- package/dist/{chunk-3c25bcsw.js → chunk-1t3cyn1k.js} +1 -1
- package/dist/{chunk-bpa7mm4n.js → chunk-1ycd7t0f.js} +88 -88
- package/dist/{chunk-aj428gay.js → chunk-1ytng03p.js} +12 -12
- package/dist/{chunk-72na7rqk.js → chunk-25jhz0br.js} +16 -16
- package/dist/{chunk-wp3ryedc.js → chunk-26kp0k1t.js} +79 -79
- package/dist/{chunk-175v9c0j.js → chunk-2b00k9ep.js} +78 -78
- package/dist/{chunk-egme4m15.js → chunk-2bh7f2wa.js} +13 -13
- package/dist/{chunk-hf0q1g1n.js → chunk-2bk4jvse.js} +7 -7
- package/dist/{chunk-0vkfrmqm.js → chunk-2mfzqkzn.js} +69 -29
- package/dist/{chunk-szj5wvdy.js → chunk-2qpy8kne.js} +1 -1
- package/dist/{chunk-pwwa7s62.js → chunk-2vc3fyp9.js} +2 -2
- package/dist/{chunk-n4022dzr.js → chunk-37j24srh.js} +6 -6
- package/dist/{chunk-bxd7dzz4.js → chunk-39r7sh1h.js} +90 -90
- package/dist/{chunk-a6d2q415.js → chunk-3hcfwedh.js} +5 -5
- package/dist/{chunk-6e84jw8j.js → chunk-3hxr3x9d.js} +2 -2
- package/dist/{chunk-2zf2y9xh.js → chunk-3jbxhytz.js} +8 -8
- package/dist/{chunk-ch53xex6.js → chunk-3k8ecscj.js} +78 -78
- package/dist/chunk-3kx7brrn.js +55 -0
- package/dist/{chunk-yb6xww2x.js → chunk-3w4xq6cv.js} +92 -92
- package/dist/{chunk-6rhzfq66.js → chunk-3xamk0n1.js} +25 -25
- package/dist/{chunk-yt3s7a7d.js → chunk-41wn5eqw.js} +10 -10
- package/dist/{chunk-fys33rtr.js → chunk-44bqv91d.js} +3 -3
- package/dist/{chunk-cgfdkzhb.js → chunk-4bcx2a3p.js} +1 -1
- package/dist/{chunk-mswx2nma.js → chunk-4e1j46k0.js} +3 -3
- package/dist/{chunk-dg5g4rx6.js → chunk-4fwzreqj.js} +6 -6
- package/dist/{chunk-8p1zdkhr.js → chunk-4kfhh3aw.js} +4 -4
- package/dist/chunk-4kfs8ymb.js +92 -0
- package/dist/{chunk-t29a6zb5.js → chunk-4nqm22j3.js} +6 -4
- package/dist/{chunk-27west95.js → chunk-4v1mr2x2.js} +41 -41
- package/dist/{chunk-qmaadr70.js → chunk-4yq5zz3m.js} +9 -9
- package/dist/{chunk-y6ktw609.js → chunk-52pp0dbk.js} +4 -4
- package/dist/{chunk-3nk79af8.js → chunk-568q88qz.js} +1 -1
- package/dist/{chunk-ase86y73.js → chunk-5f57qtf9.js} +1 -1
- package/dist/{chunk-07069jq1.js → chunk-5gr6ekgm.js} +4 -4
- package/dist/{chunk-ppwjyveh.js → chunk-5nqrdqz5.js} +1 -1
- package/dist/chunk-5rhmrt2j.js +121 -0
- package/dist/{chunk-fbfjz4mv.js → chunk-5sd5fz78.js} +78 -78
- package/dist/{chunk-nsc89h0n.js → chunk-5v6wr1z4.js} +3 -9
- package/dist/{chunk-69n11zng.js → chunk-5vavvf6y.js} +5 -5
- package/dist/{chunk-g6xtx9ad.js → chunk-60a647ty.js} +81 -81
- package/dist/{chunk-dwyaks7s.js → chunk-61x3akfa.js} +2 -2
- package/dist/chunk-626watky.js +50 -0
- package/dist/{chunk-v786pxdf.js → chunk-62jrhytw.js} +10 -10
- package/dist/{chunk-a4x613vq.js → chunk-638qz5y7.js} +5 -5
- package/dist/{chunk-n8780srz.js → chunk-657k4mef.js} +78 -79
- package/dist/chunk-6aqa0ec5.js +145 -0
- package/dist/{chunk-1e7a4d58.js → chunk-6c22q39e.js} +78 -78
- package/dist/{chunk-b0kf00ff.js → chunk-6d05fvxz.js} +2 -2
- package/dist/{chunk-dapz0pb2.js → chunk-6fe0an4e.js} +79 -79
- package/dist/{chunk-wpegnpmd.js → chunk-6fx36a3s.js} +5 -5
- package/dist/{chunk-dsd0v5za.js → chunk-6hs3wed5.js} +7 -7
- package/dist/{chunk-d1m96xhv.js → chunk-6qb753r5.js} +79 -79
- package/dist/{chunk-0xjaqda8.js → chunk-6rcf54zd.js} +48 -27
- package/dist/{chunk-jtwdv23y.js → chunk-6twsw69m.js} +7 -7
- package/dist/{chunk-6p6mwfc8.js → chunk-6vp8zen2.js} +79 -79
- package/dist/chunk-6zfb4n08.js +91 -0
- package/dist/chunk-73bgy356.js +90 -0
- package/dist/{chunk-6gjke1xd.js → chunk-7ba45tqg.js} +5 -5
- package/dist/{chunk-j1y56wgn.js → chunk-7dc9d8fy.js} +7 -7
- package/dist/{chunk-5vp228m5.js → chunk-7deqmrby.js} +5 -5
- package/dist/{chunk-9x5zgy22.js → chunk-7e9xcw77.js} +1 -1
- package/dist/{chunk-gapsz2hr.js → chunk-7gbe6ftc.js} +9 -9
- package/dist/{chunk-xhfmdq1y.js → chunk-7gte8zc4.js} +1 -1
- package/dist/{chunk-6nsd9606.js → chunk-7kp42hzq.js} +2 -2
- package/dist/{chunk-hakdhagh.js → chunk-7njkaxjp.js} +39 -120
- package/dist/chunk-7nphjzve.js +105 -0
- package/dist/chunk-7sp9dk6d.js +20 -0
- package/dist/{chunk-wgk9sxk7.js → chunk-7tdk9ypw.js} +10 -10
- package/dist/{chunk-6dj5t602.js → chunk-7wegz81g.js} +1 -1
- package/dist/{chunk-7wm5s02e.js → chunk-7yexhdjs.js} +1 -1
- package/dist/{chunk-51pjmydp.js → chunk-88k0rgdp.js} +11 -11
- package/dist/{chunk-a4vds27m.js → chunk-8a1jee0e.js} +2 -2
- package/dist/{chunk-kd5k97vr.js → chunk-8ady2sm4.js} +10 -28
- package/dist/chunk-8jmkpx1h.js +123 -0
- package/dist/{chunk-1h6cfybr.js → chunk-8m1gfrme.js} +14 -14
- package/dist/{chunk-7sgtxrsc.js → chunk-8q5fzyem.js} +10 -8
- package/dist/{chunk-zzm33q8x.js → chunk-8r1napm7.js} +1 -1
- package/dist/{chunk-cdz5yb0r.js → chunk-9029sbq1.js} +1 -1
- package/dist/{chunk-y1784krc.js → chunk-92wwx9vf.js} +2 -2
- package/dist/{chunk-7ekgfz41.js → chunk-93hxjnkb.js} +78 -78
- package/dist/{chunk-7v42bsr9.js → chunk-93kvs6fh.js} +6 -6
- package/dist/{chunk-7ep76qfm.js → chunk-9b71sn2g.js} +41 -41
- package/dist/{chunk-mjgzpvks.js → chunk-9drwsb3g.js} +80 -80
- package/dist/{chunk-frnaaxw8.js → chunk-9p62r6he.js} +6 -6
- package/dist/{chunk-e86wz4cn.js → chunk-9re786wa.js} +40 -40
- package/dist/{chunk-hp00gn9k.js → chunk-9rhy5vt7.js} +9 -9
- package/dist/chunk-9xq7ef8y.js +100 -0
- package/dist/chunk-9ydxqdhe.js +121 -0
- package/dist/{chunk-45fm4zby.js → chunk-a00gfn8e.js} +2 -2
- package/dist/{chunk-qt5e2evw.js → chunk-a1mewckj.js} +78 -78
- package/dist/{chunk-k8vp0atq.js → chunk-a3qtafgw.js} +79 -79
- package/dist/chunk-ab6apbd2.js +140 -0
- package/dist/{chunk-d4mdda98.js → chunk-apjnwens.js} +8 -8
- package/dist/{chunk-ddsjkqs4.js → chunk-b1hygym1.js} +8 -8
- package/dist/{chunk-qatfdxvd.js → chunk-b610qrvk.js} +3 -3
- package/dist/{chunk-83pxcp3r.js → chunk-bbhg7m1a.js} +79 -79
- package/dist/{chunk-83hfzbx3.js → chunk-bdhdmkya.js} +1 -1
- package/dist/chunk-bdrsheny.js +35 -0
- package/dist/{chunk-vyjeh50y.js → chunk-bktmgb4n.js} +68 -39
- package/dist/{chunk-feyzykye.js → chunk-bq0wp28e.js} +1 -1
- package/dist/{chunk-0vp3wfab.js → chunk-bs9rn85s.js} +1 -1
- package/dist/{chunk-q41bvf6v.js → chunk-bstyysxw.js} +3 -3
- package/dist/{chunk-yyex5gsf.js → chunk-bta8w8ge.js} +10 -10
- package/dist/chunk-bvfqg3cg.js +131 -0
- package/dist/{chunk-zpnrabf3.js → chunk-bw8y1msy.js} +5 -5
- package/dist/{chunk-hxavvf2h.js → chunk-c2k1n6yb.js} +41 -335
- package/dist/{chunk-rgk6mfwe.js → chunk-c6gpdd2c.js} +78 -78
- package/dist/{chunk-tmjt0nae.js → chunk-cajjdb7j.js} +4 -4
- package/dist/{chunk-5hnhres8.js → chunk-ccdh8eh2.js} +38 -38
- package/dist/{chunk-57qr194r.js → chunk-cfpnb7x4.js} +78 -78
- package/dist/{chunk-9t6ktd1k.js → chunk-cgzq4zww.js} +4 -4
- package/dist/chunk-cj0j4n23.js +71 -0
- package/dist/{chunk-0731m51q.js → chunk-ckrs789w.js} +1 -1
- package/dist/{chunk-ejjp1fy1.js → chunk-cqb31tfg.js} +6 -6
- package/dist/{chunk-zx09tq9a.js → chunk-cx21etb2.js} +2 -2
- package/dist/chunk-cynnhyy3.js +103 -0
- package/dist/chunk-d0zx5hba.js +85 -0
- package/dist/{chunk-svx8h8tt.js → chunk-d2cypdsx.js} +23 -23
- package/dist/{chunk-1h2famwb.js → chunk-d99k9r9g.js} +1 -1
- package/dist/{chunk-mn96ajge.js → chunk-dg2k597k.js} +9 -9
- package/dist/{chunk-ewadzrm8.js → chunk-dh01e4bp.js} +2 -2
- package/dist/{chunk-ztc0wy8h.js → chunk-dmp3nd67.js} +90 -90
- package/dist/{chunk-43rp9zbk.js → chunk-dv38yqdn.js} +3 -3
- package/dist/{chunk-bwtw1cbj.js → chunk-dy8278wt.js} +7 -7
- package/dist/{chunk-fryfy1ac.js → chunk-dzcb2ekz.js} +4 -4
- package/dist/{chunk-0z7km4rh.js → chunk-e01rphq3.js} +114 -117
- package/dist/{chunk-gtn3b2xr.js → chunk-e22at2jn.js} +4 -4
- package/dist/chunk-e6s584g7.js +77 -0
- package/dist/{chunk-a9jh9m0x.js → chunk-e7j6g62d.js} +9 -9
- package/dist/chunk-e90dyenj.js +127 -0
- package/dist/{chunk-eeag0gpw.js → chunk-eb4t4ehh.js} +6 -6
- package/dist/{chunk-p4k5pzge.js → chunk-ej882sb5.js} +27 -33
- package/dist/{chunk-aejyn03k.js → chunk-ekewg3tj.js} +4 -4
- package/dist/chunk-em5s71j6.js +89 -0
- package/dist/chunk-eqcgr89w.js +646 -0
- package/dist/{chunk-5zqatqff.js → chunk-et3jfht8.js} +13 -13
- package/dist/{chunk-qp2qdcda.js → chunk-eta5aekm.js} +9 -30
- package/dist/{chunk-6xe15dps.js → chunk-ewsvbzhz.js} +3 -3
- package/dist/{chunk-hd6rkyjg.js → chunk-eynfddhq.js} +143 -144
- package/dist/{chunk-66zry909.js → chunk-f517h74h.js} +1 -1
- package/dist/{chunk-4pbx3g7s.js → chunk-f79jyxwd.js} +4 -4
- package/dist/{chunk-hwfknpxv.js → chunk-f9ybfyyp.js} +2 -2
- package/dist/chunk-f9zvs66e.js +105 -0
- package/dist/{chunk-7aw745vx.js → chunk-fdwtd6s9.js} +3 -3
- package/dist/{chunk-2jdbfhb2.js → chunk-fefs2xby.js} +25 -25
- package/dist/{chunk-jzthz1bx.js → chunk-fpq87r80.js} +1 -1
- package/dist/{chunk-c25z9zmd.js → chunk-fqr6n9z6.js} +3 -3
- package/dist/{chunk-s8kj6ajy.js → chunk-fr5s5ceq.js} +2 -2
- package/dist/chunk-gaf31961.js +81 -0
- package/dist/{chunk-64c1avct.js → chunk-gbvmks09.js} +1 -1
- package/dist/{chunk-y4ca9kqz.js → chunk-ggk84sc5.js} +4 -4
- package/dist/chunk-gkz2djp0.js +121 -0
- package/dist/{chunk-grd58s24.js → chunk-gm8ht8g9.js} +6 -6
- package/dist/{chunk-6vrbnjz8.js → chunk-gt43z5zd.js} +81 -81
- package/dist/chunk-gwktnbeg.js +90 -0
- package/dist/{chunk-xv3era3s.js → chunk-gxsrvxjn.js} +1 -1
- package/dist/chunk-h0bgwz9v.js +55 -0
- package/dist/{chunk-tzfd1egv.js → chunk-h1tv19q0.js} +80 -80
- package/dist/chunk-h3v46eky.js +105 -0
- package/dist/{chunk-vtxskzvg.js → chunk-h4tnp6dw.js} +7 -7
- package/dist/{chunk-sm9q19ws.js → chunk-h8n0a991.js} +79 -79
- package/dist/{chunk-gp605hkw.js → chunk-hbz8xggv.js} +11 -11
- package/dist/{chunk-v78fj8by.js → chunk-he9zw1gh.js} +2 -2
- package/dist/{chunk-asenzcq2.js → chunk-hgb8024k.js} +8 -8
- package/dist/{chunk-8sxpmxaj.js → chunk-hhvf84fa.js} +193 -195
- package/dist/chunk-hycm92ss.js +52 -0
- package/dist/{chunk-kwkcmv5p.js → chunk-j0bfbce5.js} +36 -36
- package/dist/{chunk-efr7hp9d.js → chunk-j15xyew5.js} +4 -4
- package/dist/chunk-j3c5r08n.js +87 -0
- package/dist/chunk-j3q2sbhc.js +107 -0
- package/dist/{chunk-rh5v7hf7.js → chunk-j77g2v22.js} +5 -5
- package/dist/{chunk-ps49ymvj.js → chunk-ja1nqz5q.js} +2 -2
- package/dist/{chunk-x66axbfx.js → chunk-ja23mty8.js} +83 -83
- package/dist/{chunk-c2he84t1.js → chunk-jrqjxhxj.js} +2 -2
- package/dist/{chunk-87xg6yb4.js → chunk-jsvsnqkn.js} +2 -2
- package/dist/{chunk-b71fc01f.js → chunk-jw9zwgea.js} +4 -4
- package/dist/{chunk-we205f8x.js → chunk-jwqveqpr.js} +9 -9
- package/dist/{chunk-v4dh4hcd.js → chunk-k0dprbnn.js} +78 -78
- package/dist/{chunk-2h6f45jx.js → chunk-k3gvjjm9.js} +5 -5
- package/dist/{chunk-2fwze72g.js → chunk-k6cq3j7z.js} +1 -1
- package/dist/{chunk-x7fdwq3d.js → chunk-k6wmp81y.js} +1 -1
- package/dist/{chunk-e8xjcdk1.js → chunk-k8by1vfd.js} +19 -19
- package/dist/chunk-k9h7kjf6.js +8 -0
- package/dist/chunk-karea2z2.js +89 -0
- package/dist/{chunk-wa8yn2p0.js → chunk-kcp41jcn.js} +2 -2
- package/dist/{chunk-g7qtsqk8.js → chunk-khwhppzs.js} +2 -2
- package/dist/{chunk-68ffk5qa.js → chunk-kjx9a9p4.js} +2 -2
- package/dist/chunk-kra9y8qb.js +97 -0
- package/dist/{chunk-j5bth84e.js → chunk-kt25n52f.js} +4 -4
- package/dist/{chunk-c5hr98qm.js → chunk-m12e2wq3.js} +80 -80
- package/dist/{chunk-h9n54swm.js → chunk-m13ptmf2.js} +2 -2
- package/dist/{chunk-4jm600zv.js → chunk-m6vs965c.js} +1 -1
- package/dist/{chunk-0vz3p22g.js → chunk-m82ketm1.js} +78 -78
- package/dist/{chunk-kpr0q6sr.js → chunk-m8qvkabg.js} +4 -4
- package/dist/{chunk-wqdfck13.js → chunk-ma6x4ws8.js} +46 -46
- package/dist/{chunk-c54cp070.js → chunk-mbfzfg56.js} +85 -85
- package/dist/{chunk-2jzpw1pf.js → chunk-mtstpt1e.js} +43 -43
- package/dist/chunk-mwzwm2z2.js +60 -0
- package/dist/{chunk-w28t9jy7.js → chunk-myac8yfs.js} +5 -5
- package/dist/{chunk-a7gk9w5h.js → chunk-n3vmrzcy.js} +5 -5
- package/dist/chunk-n535j168.js +131 -0
- package/dist/{chunk-v9smspw2.js → chunk-n9ne98cj.js} +5 -4
- package/dist/{chunk-fq5vhqx0.js → chunk-n9xhrzxs.js} +78 -78
- package/dist/{chunk-s43qhc1v.js → chunk-ngde5k9k.js} +79 -79
- package/dist/{chunk-a7fqavjt.js → chunk-nsxw4b3j.js} +8 -8
- package/dist/{chunk-9pnc5v9y.js → chunk-nwdpjkrw.js} +78 -78
- package/dist/{chunk-sd36yzx8.js → chunk-nztayqyx.js} +1 -1
- package/dist/{chunk-db92x7yq.js → chunk-p0n9ew4x.js} +4 -4
- package/dist/{chunk-ehtwnxpg.js → chunk-p4e5ymdw.js} +1 -1
- package/dist/{chunk-cnsj3vq2.js → chunk-p8hn07q2.js} +1 -1
- package/dist/chunk-p9nkqgej.js +19 -0
- package/dist/{chunk-agfhxmaa.js → chunk-pg4fbhbm.js} +11 -11
- package/dist/{chunk-qd5n2h9f.js → chunk-pg8asjpk.js} +20 -20
- package/dist/chunk-pgptefy1.js +114 -0
- package/dist/chunk-pjn0s3j1.js +111 -0
- package/dist/chunk-pkwv0q5q.js +91 -0
- package/dist/{chunk-netzwgv1.js → chunk-pnc7q9rt.js} +1 -1
- package/dist/{chunk-xeb6075z.js → chunk-pnrdvxhy.js} +2 -2
- package/dist/{chunk-5dpys8tw.js → chunk-pp5zbnpr.js} +80 -80
- package/dist/{chunk-gq2ty76e.js → chunk-pqf2bjy1.js} +4 -4
- package/dist/{chunk-3fhrs3qm.js → chunk-pqxyft7d.js} +8 -8
- package/dist/{chunk-2k3y6fnp.js → chunk-pt1jzmkv.js} +2 -2
- package/dist/{chunk-vdagxf3w.js → chunk-pt6vj628.js} +9 -9
- package/dist/{chunk-c7jwbe76.js → chunk-pyn4ry36.js} +103 -57
- package/dist/{chunk-3b2t95m2.js → chunk-q53kkzhr.js} +80 -80
- package/dist/chunk-q6m9qgaa.js +88 -0
- package/dist/{chunk-p8na2wwp.js → chunk-q74fcthe.js} +2 -2
- package/dist/{chunk-zthjz9rz.js → chunk-q8t0ym9s.js} +83 -83
- package/dist/{chunk-mcws22k3.js → chunk-q9y73cmh.js} +1 -1
- package/dist/{chunk-fajg8x36.js → chunk-qbbf7rr5.js} +1818 -727
- package/dist/{chunk-qb6k2afy.js → chunk-qka6pqrq.js} +11 -11
- package/dist/{chunk-0paqc2yw.js → chunk-qqc3b97c.js} +1 -1
- package/dist/{chunk-t9p85zff.js → chunk-qrdbqeve.js} +2 -2
- package/dist/{chunk-96thjkqe.js → chunk-qrgxbrs9.js} +1958 -3027
- package/dist/{chunk-etnkcek5.js → chunk-qs4stpt5.js} +14 -14
- package/dist/{chunk-b1kcd3ss.js → chunk-r055z03k.js} +1 -1
- package/dist/{chunk-ns7x6xam.js → chunk-r1q9s5hs.js} +13 -10
- package/dist/{chunk-b8zcqbbd.js → chunk-r27tskss.js} +11 -9
- package/dist/{chunk-etdt1xz3.js → chunk-r4pq77kb.js} +3 -3
- package/dist/{chunk-5z28bqne.js → chunk-r585pc0g.js} +4 -3
- package/dist/chunk-r82c7gfc.js +58 -0
- package/dist/{chunk-aejj9p9y.js → chunk-ra9hbfyz.js} +3 -3
- package/dist/{chunk-jnqvh4rm.js → chunk-rfj6gjwh.js} +15 -15
- package/dist/{chunk-qkczt8cr.js → chunk-rgaedd84.js} +5 -5
- package/dist/chunk-rgshryeb.js +93 -0
- package/dist/chunk-rk2kb2ec.js +101 -0
- package/dist/{chunk-x6r4v44b.js → chunk-rpta0rqz.js} +1 -1
- package/dist/{chunk-2gzv8nrw.js → chunk-rrtpbztr.js} +4 -3
- package/dist/{chunk-qhsd552n.js → chunk-rx9ypbjy.js} +8 -8
- package/dist/{chunk-3ecxxh0v.js → chunk-rzk001ay.js} +85 -85
- package/dist/{chunk-je14p1p5.js → chunk-rzn9w8p2.js} +3 -3
- package/dist/chunk-s0p653k2.js +93 -0
- package/dist/{chunk-mbz52548.js → chunk-s13y3w7e.js} +36 -36
- package/dist/{chunk-634c89zh.js → chunk-s201s689.js} +18 -18
- package/dist/{chunk-wvxaaw85.js → chunk-s5arr49c.js} +11 -200
- package/dist/{chunk-ytw7cet7.js → chunk-s7tq4e5g.js} +78 -78
- package/dist/{chunk-98hsxvwg.js → chunk-s9906sac.js} +83 -83
- package/dist/{chunk-kgk4p214.js → chunk-s9jxtj04.js} +103 -103
- package/dist/{chunk-j7ptfetg.js → chunk-sbe9zd56.js} +6 -6
- package/dist/chunk-skypjdyc.js +147 -0
- package/dist/{chunk-fbv4apne.js → chunk-snd4pbkp.js} +1 -1
- package/dist/{chunk-7xee389k.js → chunk-sthmb4xf.js} +78 -78
- package/dist/{chunk-1gx78081.js → chunk-t3yc7m07.js} +1 -1
- package/dist/{chunk-2avrzsjc.js → chunk-t83amzhd.js} +12 -12
- package/dist/{chunk-hqdwr6mz.js → chunk-t8chhacb.js} +2 -2
- package/dist/{chunk-k0p9w03v.js → chunk-taqr0qw1.js} +3 -3
- package/dist/{chunk-e0pv7mxq.js → chunk-tdf3ha9b.js} +79 -79
- package/dist/{chunk-8g5pe1gr.js → chunk-tevzn1xp.js} +1 -1
- package/dist/chunk-tgayhxvz.js +41 -0
- package/dist/{chunk-j64ga6ta.js → chunk-tkbwrjte.js} +325 -284
- package/dist/{chunk-qsxj0kfc.js → chunk-tmye4d2k.js} +15 -15
- package/dist/{chunk-55raexh7.js → chunk-tnpk0ne1.js} +2458 -1002
- package/dist/{chunk-vfszgkkq.js → chunk-tnv92c5m.js} +80 -80
- package/dist/{chunk-jd32zbps.js → chunk-trm02xde.js} +2 -2
- package/dist/{chunk-zkyqgt3m.js → chunk-tyc5c0q4.js} +8 -8
- package/dist/{chunk-jbv0d2xg.js → chunk-v2szqm5g.js} +5 -5
- package/dist/{chunk-7p9xptww.js → chunk-v8k67zfz.js} +1123 -388
- package/dist/{chunk-0fjwyhtj.js → chunk-v9sy0cj3.js} +10 -10
- package/dist/{chunk-p7vkh4wx.js → chunk-vbe1ersf.js} +1 -1
- package/dist/{chunk-xe47nxbq.js → chunk-vd5dh925.js} +78 -78
- package/dist/{chunk-cfvgegjj.js → chunk-vnrevqdf.js} +4 -4
- package/dist/{chunk-q9pw9pca.js → chunk-vq4k182g.js} +5 -5
- package/dist/chunk-vr5vyt2h.js +107 -0
- package/dist/{chunk-tbhsqgh4.js → chunk-vv84k232.js} +5 -5
- package/dist/chunk-vvjhax8n.js +114 -0
- package/dist/chunk-vvsts2t9.js +30 -0
- package/dist/{chunk-ymxwas49.js → chunk-vwkb146r.js} +90 -90
- package/dist/{chunk-7bz03dax.js → chunk-vwt2fv6j.js} +3 -3
- package/dist/{chunk-5vzqvgea.js → chunk-vx28ztc7.js} +20 -20
- package/dist/{chunk-g9f19ttm.js → chunk-vxsad4bw.js} +2 -2
- package/dist/chunk-w287mz4p.js +146 -0
- package/dist/{chunk-sd8209pb.js → chunk-w2bff8pq.js} +12 -92
- package/dist/{chunk-grbjajg5.js → chunk-w60c0dkw.js} +5 -5
- package/dist/chunk-wa852b5b.js +113 -0
- package/dist/{chunk-7xyswgjh.js → chunk-wfh12nzh.js} +1 -1
- package/dist/{chunk-vf612n57.js → chunk-wt799fvk.js} +34 -34
- package/dist/{chunk-qajrkk97.js → chunk-wwrswxg1.js} +1 -1
- package/dist/{chunk-afbvx9ey.js → chunk-wyyd1qfn.js} +81 -81
- package/dist/{chunk-6sdx75d8.js → chunk-x09aacvx.js} +5 -5
- package/dist/{chunk-fhej4f56.js → chunk-x4x3691j.js} +12 -12
- package/dist/chunk-xbpt4dv8.js +155 -0
- package/dist/{chunk-rn0v1hk8.js → chunk-xdxdztxa.js} +1 -1
- package/dist/{chunk-fdhbpqkt.js → chunk-xggbj4j9.js} +3 -3
- package/dist/chunk-xj72jfpd.js +33 -0
- package/dist/{chunk-2nya3j5t.js → chunk-xj8tk3d7.js} +3 -3
- package/dist/{chunk-0a8mnxpe.js → chunk-xkra2684.js} +85 -90
- package/dist/{chunk-2671jfzz.js → chunk-xm9zf0tv.js} +78 -78
- package/dist/chunk-xwbh3j1x.js +107 -0
- package/dist/chunk-xwrar1c5.js +97 -0
- package/dist/{chunk-14xjyt14.js → chunk-xygy5v97.js} +30 -30
- package/dist/{chunk-xycbvwy2.js → chunk-xyzbgjpv.js} +2 -2
- package/dist/{chunk-2tm611h9.js → chunk-y83gxqvc.js} +3 -3
- package/dist/{chunk-9an46bhy.js → chunk-y8b45mt2.js} +4 -4
- package/dist/{chunk-yd5sv0na.js → chunk-ycpdfeya.js} +79 -79
- package/dist/{chunk-4v6h9fhy.js → chunk-yh46f77t.js} +78 -78
- package/dist/{chunk-p620jjt8.js → chunk-ykvf93ft.js} +79 -79
- package/dist/{chunk-26wtxbdc.js → chunk-ynx3fetd.js} +1222 -463
- package/dist/{chunk-vkcqcmdv.js → chunk-yp64t9je.js} +8 -8
- package/dist/{chunk-eqp1rfft.js → chunk-ysfam81t.js} +2 -2
- package/dist/chunk-yt9mady7.js +36 -0
- package/dist/{chunk-hc158qrt.js → chunk-yteprw63.js} +26 -26
- package/dist/{chunk-9d13k3m6.js → chunk-ytt8da3v.js} +81 -81
- package/dist/{chunk-5xt8w19j.js → chunk-yvm9t98e.js} +7 -18
- package/dist/{chunk-c7c3t5kg.js → chunk-z7yj7dfh.js} +10 -10
- package/dist/{chunk-5mxbpsb4.js → chunk-z8b8f2n3.js} +79 -79
- package/dist/{chunk-96523fnw.js → chunk-z8n8cjhz.js} +2 -2
- package/dist/{chunk-5ccdsxgy.js → chunk-z9v4bxrj.js} +3 -3
- package/dist/{chunk-9k9th7xv.js → chunk-zat7q2e0.js} +79 -79
- package/dist/chunk-zfxp82tk.js +24 -0
- package/dist/chunk-zgkngrp4.js +54 -0
- package/dist/{chunk-h6bgcfma.js → chunk-zhnnzkzm.js} +14 -14
- package/dist/{chunk-2jyvw1vd.js → chunk-zp5nvg44.js} +2 -2
- package/dist/{chunk-1a5w7wdt.js → chunk-zqajmq38.js} +6 -6
- package/dist/{chunk-v1kzp02e.js → chunk-zx9r7a23.js} +1 -1
- package/dist/cli.js +11 -11
- package/dist/gateway/worker.js +23440 -21268
- package/dist/sdk/query.cjs +8 -18
- package/dist/sdk/query.js +1 -1
- package/package.json +128 -128
- package/dist/chunk-07nc7v02.js +0 -121
- package/dist/chunk-0m45arzy.js +0 -101
- package/dist/chunk-0m6r5xry.js +0 -133
- package/dist/chunk-24s7fatk.js +0 -52
- package/dist/chunk-2apvtmkd.js +0 -30
- package/dist/chunk-3b8bwc0r.js +0 -130
- package/dist/chunk-3cmhd7fz.js +0 -93
- package/dist/chunk-3g03wcny.js +0 -107
- package/dist/chunk-3mgywd32.js +0 -8
- package/dist/chunk-405v2pq2.js +0 -2186
- package/dist/chunk-485en4m4.js +0 -105
- package/dist/chunk-4fvbhs6s.js +0 -97
- package/dist/chunk-510y033v.js +0 -91
- package/dist/chunk-657y059h.js +0 -41
- package/dist/chunk-6w51dnv1.js +0 -35
- package/dist/chunk-84hebfv5.js +0 -97
- package/dist/chunk-85hp74zz.js +0 -121
- package/dist/chunk-865gwyhc.js +0 -100
- package/dist/chunk-8y55mc4q.js +0 -20
- package/dist/chunk-amkyhs41.js +0 -93
- package/dist/chunk-av6sfjhb.js +0 -107
- package/dist/chunk-b66hjndz.js +0 -103
- package/dist/chunk-c01dn3n0.js +0 -58
- package/dist/chunk-c6sjhj89.js +0 -1284
- package/dist/chunk-cg185b3s.js +0 -71
- package/dist/chunk-ckg9f3bq.js +0 -111
- package/dist/chunk-ckx8wtr1.js +0 -60
- package/dist/chunk-d348dy5e.js +0 -89
- package/dist/chunk-dd3fkytw.js +0 -90
- package/dist/chunk-df4rn6zx.js +0 -131
- package/dist/chunk-djna15b0.js +0 -55
- package/dist/chunk-eszdke28.js +0 -33
- package/dist/chunk-eyys9mkd.js +0 -36
- package/dist/chunk-f5f76rs0.js +0 -122
- package/dist/chunk-fhwnqkps.js +0 -114
- package/dist/chunk-fkttqetc.js +0 -77
- package/dist/chunk-gdwdqewd.js +0 -19
- package/dist/chunk-gfvab3pt.js +0 -146
- package/dist/chunk-gnhr6m0v.js +0 -91
- package/dist/chunk-gq4ptzy4.js +0 -50
- package/dist/chunk-gt5qmg5w.js +0 -121
- package/dist/chunk-h3rtwnzt.js +0 -27
- package/dist/chunk-h5kqbyza.js +0 -85
- package/dist/chunk-h8e89948.js +0 -24
- package/dist/chunk-hm185n1k.js +0 -105
- package/dist/chunk-ht2vfyw7.js +0 -127
- package/dist/chunk-j1jcmemq.js +0 -155
- package/dist/chunk-jch08yr8.js +0 -107
- package/dist/chunk-ng3tkgf2.js +0 -90
- package/dist/chunk-pxqvh94k.js +0 -88
- package/dist/chunk-qjr6jsys.js +0 -89
- package/dist/chunk-qk9hhrzj.js +0 -114
- package/dist/chunk-qnfx3qtx.js +0 -617
- package/dist/chunk-r9fbv9wd.js +0 -94
- package/dist/chunk-rnmravvv.js +0 -148
- package/dist/chunk-sactn8fj.js +0 -92
- package/dist/chunk-sq32fw07.js +0 -101
- package/dist/chunk-sqq17sk1.js +0 -55
- package/dist/chunk-t0fqphva.js +0 -123
- package/dist/chunk-t5b0h3vc.js +0 -54
- package/dist/chunk-vgn0fyes.js +0 -145
- package/dist/chunk-vkaz7qe2.js +0 -113
- package/dist/chunk-wd531rah.js +0 -140
- package/dist/chunk-wrtabh03.js +0 -81
- package/dist/chunk-x43vg58b.js +0 -87
- package/dist/chunk-xf4d0bmf.js +0 -105
- package/dist/chunk-xqa13w46.js +0 -71
- package/dist/chunk-xxahhkz2.js +0 -38
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
__esm,
|
|
4
4
|
__export
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-eta5aekm.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.bun/zod@4.3
|
|
7
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
8
8
|
function $constructor(name, initializer, params) {
|
|
9
9
|
function init(inst, def) {
|
|
10
10
|
if (!inst._zod) {
|
|
@@ -37,10 +37,10 @@ function $constructor(name, initializer, params) {
|
|
|
37
37
|
}
|
|
38
38
|
Object.defineProperty(Definition, "name", { value: name });
|
|
39
39
|
function _(def) {
|
|
40
|
-
var
|
|
40
|
+
var _a2;
|
|
41
41
|
const inst = params?.Parent ? new Definition : this;
|
|
42
42
|
init(inst, def);
|
|
43
|
-
(
|
|
43
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
44
44
|
for (const fn of inst._zod.deferred) {
|
|
45
45
|
fn();
|
|
46
46
|
}
|
|
@@ -62,9 +62,9 @@ function config(newConfig) {
|
|
|
62
62
|
Object.assign(globalConfig, newConfig);
|
|
63
63
|
return globalConfig;
|
|
64
64
|
}
|
|
65
|
-
var NEVER, $brand, $ZodAsyncError, $ZodEncodeError, globalConfig;
|
|
65
|
+
var _a, NEVER, $brand, $ZodAsyncError, $ZodEncodeError, globalConfig;
|
|
66
66
|
var init_core = __esm(() => {
|
|
67
|
-
NEVER = Object.freeze({
|
|
67
|
+
NEVER = /* @__PURE__ */ Object.freeze({
|
|
68
68
|
status: "aborted"
|
|
69
69
|
});
|
|
70
70
|
$brand = Symbol("zod_brand");
|
|
@@ -79,10 +79,11 @@ var init_core = __esm(() => {
|
|
|
79
79
|
this.name = "ZodEncodeError";
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
83
|
+
globalConfig = globalThis.__zod_globalConfig;
|
|
83
84
|
});
|
|
84
85
|
|
|
85
|
-
// node_modules/.bun/zod@4.3
|
|
86
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
86
87
|
var exports_util = {};
|
|
87
88
|
__export(exports_util, {
|
|
88
89
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -124,6 +125,7 @@ __export(exports_util, {
|
|
|
124
125
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
125
126
|
finalizeIssue: () => finalizeIssue,
|
|
126
127
|
extend: () => extend,
|
|
128
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
127
129
|
escapeRegex: () => escapeRegex,
|
|
128
130
|
esc: () => esc,
|
|
129
131
|
defineLazy: () => defineLazy,
|
|
@@ -194,19 +196,12 @@ function cleanRegex(source) {
|
|
|
194
196
|
return source.slice(start, end);
|
|
195
197
|
}
|
|
196
198
|
function floatSafeRemainder(val, step) {
|
|
197
|
-
const
|
|
198
|
-
const
|
|
199
|
-
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
207
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
208
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
209
|
-
return valInt % stepInt / 10 ** decCount;
|
|
199
|
+
const ratio = val / step;
|
|
200
|
+
const roundedRatio = Math.round(ratio);
|
|
201
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
202
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
203
|
+
return 0;
|
|
204
|
+
return ratio - roundedRatio;
|
|
210
205
|
}
|
|
211
206
|
function defineLazy(object, key, getter) {
|
|
212
207
|
let value = undefined;
|
|
@@ -305,6 +300,10 @@ function shallowClone(o) {
|
|
|
305
300
|
return { ...o };
|
|
306
301
|
if (Array.isArray(o))
|
|
307
302
|
return [...o];
|
|
303
|
+
if (o instanceof Map)
|
|
304
|
+
return new Map(o);
|
|
305
|
+
if (o instanceof Set)
|
|
306
|
+
return new Set(o);
|
|
308
307
|
return o;
|
|
309
308
|
}
|
|
310
309
|
function numKeys(data) {
|
|
@@ -473,6 +472,9 @@ function safeExtend(schema, shape) {
|
|
|
473
472
|
return clone(schema, def);
|
|
474
473
|
}
|
|
475
474
|
function merge(a, b) {
|
|
475
|
+
if (a._zod.def.checks?.length) {
|
|
476
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
477
|
+
}
|
|
476
478
|
const def = mergeDefs(a._zod.def, {
|
|
477
479
|
get shape() {
|
|
478
480
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -482,7 +484,7 @@ function merge(a, b) {
|
|
|
482
484
|
get catchall() {
|
|
483
485
|
return b._zod.def.catchall;
|
|
484
486
|
},
|
|
485
|
-
checks: []
|
|
487
|
+
checks: b._zod.def.checks ?? []
|
|
486
488
|
});
|
|
487
489
|
return clone(a, def);
|
|
488
490
|
}
|
|
@@ -565,10 +567,20 @@ function aborted(x, startIndex = 0) {
|
|
|
565
567
|
}
|
|
566
568
|
return false;
|
|
567
569
|
}
|
|
570
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
571
|
+
if (x.aborted === true)
|
|
572
|
+
return true;
|
|
573
|
+
for (let i = startIndex;i < x.issues.length; i++) {
|
|
574
|
+
if (x.issues[i]?.continue === false) {
|
|
575
|
+
return true;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
return false;
|
|
579
|
+
}
|
|
568
580
|
function prefixIssues(path, issues) {
|
|
569
581
|
return issues.map((iss) => {
|
|
570
|
-
var
|
|
571
|
-
(
|
|
582
|
+
var _a2;
|
|
583
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
572
584
|
iss.path.unshift(path);
|
|
573
585
|
return iss;
|
|
574
586
|
});
|
|
@@ -577,17 +589,14 @@ function unwrapMessage(message) {
|
|
|
577
589
|
return typeof message === "string" ? message : message?.message;
|
|
578
590
|
}
|
|
579
591
|
function finalizeIssue(iss, ctx, config2) {
|
|
580
|
-
const
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
592
|
+
const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
|
|
593
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
594
|
+
rest.path ?? (rest.path = []);
|
|
595
|
+
rest.message = message;
|
|
596
|
+
if (ctx?.reportInput) {
|
|
597
|
+
rest.input = _input;
|
|
584
598
|
}
|
|
585
|
-
|
|
586
|
-
delete full.continue;
|
|
587
|
-
if (!ctx?.reportInput) {
|
|
588
|
-
delete full.input;
|
|
589
|
-
}
|
|
590
|
-
return full;
|
|
599
|
+
return rest;
|
|
591
600
|
}
|
|
592
601
|
function getSizableOrigin(input) {
|
|
593
602
|
if (input instanceof Set)
|
|
@@ -729,9 +738,13 @@ var EVALUATING, captureStackTrace, allowsEval, getParsedType = (data) => {
|
|
|
729
738
|
}
|
|
730
739
|
}, propertyKeyTypes, primitiveTypes, NUMBER_FORMAT_RANGES, BIGINT_FORMAT_RANGES;
|
|
731
740
|
var init_util = __esm(() => {
|
|
732
|
-
|
|
741
|
+
init_core();
|
|
742
|
+
EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
733
743
|
captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
|
|
734
|
-
allowsEval = cached(() => {
|
|
744
|
+
allowsEval = /* @__PURE__ */ cached(() => {
|
|
745
|
+
if (globalConfig.jitless) {
|
|
746
|
+
return false;
|
|
747
|
+
}
|
|
735
748
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
736
749
|
return false;
|
|
737
750
|
}
|
|
@@ -743,8 +756,15 @@ var init_util = __esm(() => {
|
|
|
743
756
|
return false;
|
|
744
757
|
}
|
|
745
758
|
});
|
|
746
|
-
propertyKeyTypes = new Set(["string", "number", "symbol"]);
|
|
747
|
-
primitiveTypes = new Set([
|
|
759
|
+
propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
760
|
+
primitiveTypes = /* @__PURE__ */ new Set([
|
|
761
|
+
"string",
|
|
762
|
+
"number",
|
|
763
|
+
"bigint",
|
|
764
|
+
"boolean",
|
|
765
|
+
"symbol",
|
|
766
|
+
"undefined"
|
|
767
|
+
]);
|
|
748
768
|
NUMBER_FORMAT_RANGES = {
|
|
749
769
|
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
750
770
|
int32: [-2147483648, 2147483647],
|
|
@@ -758,7 +778,7 @@ var init_util = __esm(() => {
|
|
|
758
778
|
};
|
|
759
779
|
});
|
|
760
780
|
|
|
761
|
-
// node_modules/.bun/zod@4.3
|
|
781
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
762
782
|
function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
763
783
|
const fieldErrors = {};
|
|
764
784
|
const formErrors = [];
|
|
@@ -774,30 +794,33 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
774
794
|
}
|
|
775
795
|
function formatError(error, mapper = (issue2) => issue2.message) {
|
|
776
796
|
const fieldErrors = { _errors: [] };
|
|
777
|
-
const processError = (error2) => {
|
|
797
|
+
const processError = (error2, path = []) => {
|
|
778
798
|
for (const issue2 of error2.issues) {
|
|
779
799
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
780
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
800
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
781
801
|
} else if (issue2.code === "invalid_key") {
|
|
782
|
-
processError({ issues: issue2.issues });
|
|
802
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
783
803
|
} else if (issue2.code === "invalid_element") {
|
|
784
|
-
processError({ issues: issue2.issues });
|
|
785
|
-
} else if (issue2.path.length === 0) {
|
|
786
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
804
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
787
805
|
} else {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
806
|
+
const fullpath = [...path, ...issue2.path];
|
|
807
|
+
if (fullpath.length === 0) {
|
|
808
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
809
|
+
} else {
|
|
810
|
+
let curr = fieldErrors;
|
|
811
|
+
let i = 0;
|
|
812
|
+
while (i < fullpath.length) {
|
|
813
|
+
const el = fullpath[i];
|
|
814
|
+
const terminal = i === fullpath.length - 1;
|
|
815
|
+
if (!terminal) {
|
|
816
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
817
|
+
} else {
|
|
818
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
819
|
+
curr[el]._errors.push(mapper(issue2));
|
|
820
|
+
}
|
|
821
|
+
curr = curr[el];
|
|
822
|
+
i++;
|
|
798
823
|
}
|
|
799
|
-
curr = curr[el];
|
|
800
|
-
i++;
|
|
801
824
|
}
|
|
802
825
|
}
|
|
803
826
|
}
|
|
@@ -808,14 +831,14 @@ function formatError(error, mapper = (issue2) => issue2.message) {
|
|
|
808
831
|
function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
809
832
|
const result = { errors: [] };
|
|
810
833
|
const processError = (error2, path = []) => {
|
|
811
|
-
var
|
|
834
|
+
var _a2, _b;
|
|
812
835
|
for (const issue2 of error2.issues) {
|
|
813
836
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
814
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
837
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
815
838
|
} else if (issue2.code === "invalid_key") {
|
|
816
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
839
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
817
840
|
} else if (issue2.code === "invalid_element") {
|
|
818
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
841
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
819
842
|
} else {
|
|
820
843
|
const fullpath = [...path, ...issue2.path];
|
|
821
844
|
if (fullpath.length === 0) {
|
|
@@ -829,7 +852,7 @@ function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
|
829
852
|
const terminal = i === fullpath.length - 1;
|
|
830
853
|
if (typeof el === "string") {
|
|
831
854
|
curr.properties ?? (curr.properties = {});
|
|
832
|
-
(
|
|
855
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
833
856
|
curr = curr.properties[el];
|
|
834
857
|
} else {
|
|
835
858
|
curr.items ?? (curr.items = []);
|
|
@@ -899,9 +922,9 @@ var init_errors = __esm(() => {
|
|
|
899
922
|
$ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
900
923
|
});
|
|
901
924
|
|
|
902
|
-
// node_modules/.bun/zod@4.3
|
|
925
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
903
926
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
904
|
-
const ctx = _ctx ?
|
|
927
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
905
928
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
906
929
|
if (result instanceof Promise) {
|
|
907
930
|
throw new $ZodAsyncError;
|
|
@@ -913,7 +936,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
913
936
|
}
|
|
914
937
|
return result.value;
|
|
915
938
|
}, parse, _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
916
|
-
const ctx = _ctx ?
|
|
939
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
917
940
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
918
941
|
if (result instanceof Promise)
|
|
919
942
|
result = await result;
|
|
@@ -934,7 +957,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
934
957
|
error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
935
958
|
} : { success: true, data: result.value };
|
|
936
959
|
}, safeParse, _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
937
|
-
const ctx = _ctx ?
|
|
960
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
938
961
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
939
962
|
if (result instanceof Promise)
|
|
940
963
|
result = await result;
|
|
@@ -943,22 +966,22 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
943
966
|
error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
|
|
944
967
|
} : { success: true, data: result.value };
|
|
945
968
|
}, safeParseAsync, _encode = (_Err) => (schema, value, _ctx) => {
|
|
946
|
-
const ctx = _ctx ?
|
|
969
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
947
970
|
return _parse(_Err)(schema, value, ctx);
|
|
948
971
|
}, encode, _decode = (_Err) => (schema, value, _ctx) => {
|
|
949
972
|
return _parse(_Err)(schema, value, _ctx);
|
|
950
973
|
}, decode, _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
951
|
-
const ctx = _ctx ?
|
|
974
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
952
975
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
953
976
|
}, encodeAsync, _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
954
977
|
return _parseAsync(_Err)(schema, value, _ctx);
|
|
955
978
|
}, decodeAsync, _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
956
|
-
const ctx = _ctx ?
|
|
979
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
957
980
|
return _safeParse(_Err)(schema, value, ctx);
|
|
958
981
|
}, safeEncode, _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
959
982
|
return _safeParse(_Err)(schema, value, _ctx);
|
|
960
983
|
}, safeDecode, _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
961
|
-
const ctx = _ctx ?
|
|
984
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
962
985
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
963
986
|
}, safeEncodeAsync, _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
964
987
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
@@ -981,7 +1004,7 @@ var init_parse = __esm(() => {
|
|
|
981
1004
|
safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
982
1005
|
});
|
|
983
1006
|
|
|
984
|
-
// node_modules/.bun/zod@4.3
|
|
1007
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
985
1008
|
var exports_regexes = {};
|
|
986
1009
|
__export(exports_regexes, {
|
|
987
1010
|
xid: () => xid,
|
|
@@ -1021,6 +1044,7 @@ __export(exports_regexes, {
|
|
|
1021
1044
|
ipv4: () => ipv4,
|
|
1022
1045
|
integer: () => integer,
|
|
1023
1046
|
idnEmail: () => idnEmail,
|
|
1047
|
+
httpProtocol: () => httpProtocol,
|
|
1024
1048
|
html5Email: () => html5Email,
|
|
1025
1049
|
hostname: () => hostname,
|
|
1026
1050
|
hex: () => hex,
|
|
@@ -1077,13 +1101,13 @@ var cuid, cuid2, ulid, xid, ksuid, nanoid, duration, extendedDuration, guid, uui
|
|
|
1077
1101
|
}, uuid4, uuid6, uuid7, email, html5Email, rfc5322Email, unicodeEmail, idnEmail, browserEmail, _emoji = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`, ipv4, ipv6, mac = (delimiter) => {
|
|
1078
1102
|
const escapedDelim = escapeRegex(delimiter ?? ":");
|
|
1079
1103
|
return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);
|
|
1080
|
-
}, cidrv4, cidrv6, base64, base64url, hostname, domain, e164, dateSource = `(?:(?:\\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])))`, date, string = (params) => {
|
|
1104
|
+
}, cidrv4, cidrv6, base64, base64url, hostname, domain, httpProtocol, e164, dateSource = `(?:(?:\\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])))`, date, string = (params) => {
|
|
1081
1105
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
1082
1106
|
return new RegExp(`^${regex}$`);
|
|
1083
1107
|
}, bigint, integer, number, boolean, _null, _undefined, lowercase, uppercase, hex, md5_hex, md5_base64, md5_base64url, sha1_hex, sha1_base64, sha1_base64url, sha256_hex, sha256_base64, sha256_base64url, sha384_hex, sha384_base64, sha384_base64url, sha512_hex, sha512_base64, sha512_base64url;
|
|
1084
1108
|
var init_regexes = __esm(() => {
|
|
1085
1109
|
init_util();
|
|
1086
|
-
cuid = /^[cC][
|
|
1110
|
+
cuid = /^[cC][0-9a-z]{6,}$/;
|
|
1087
1111
|
cuid2 = /^[0-9a-z]+$/;
|
|
1088
1112
|
ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
1089
1113
|
xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -1109,6 +1133,7 @@ var init_regexes = __esm(() => {
|
|
|
1109
1133
|
base64url = /^[A-Za-z0-9_-]*$/;
|
|
1110
1134
|
hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
|
|
1111
1135
|
domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1136
|
+
httpProtocol = /^https?$/;
|
|
1112
1137
|
e164 = /^\+[1-9]\d{6,14}$/;
|
|
1113
1138
|
date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
1114
1139
|
bigint = /^-?\d+n?$/;
|
|
@@ -1137,7 +1162,7 @@ var init_regexes = __esm(() => {
|
|
|
1137
1162
|
sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1138
1163
|
});
|
|
1139
1164
|
|
|
1140
|
-
// node_modules/.bun/zod@4.3
|
|
1165
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
1141
1166
|
function handleCheckPropertyResult(result, payload, property) {
|
|
1142
1167
|
if (result.issues.length) {
|
|
1143
1168
|
payload.issues.push(...prefixIssues(property, result.issues));
|
|
@@ -1149,10 +1174,10 @@ var init_checks = __esm(() => {
|
|
|
1149
1174
|
init_regexes();
|
|
1150
1175
|
init_util();
|
|
1151
1176
|
$ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1152
|
-
var
|
|
1177
|
+
var _a2;
|
|
1153
1178
|
inst._zod ?? (inst._zod = {});
|
|
1154
1179
|
inst._zod.def = def;
|
|
1155
|
-
(
|
|
1180
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
1156
1181
|
});
|
|
1157
1182
|
numericOriginMap = {
|
|
1158
1183
|
number: "number",
|
|
@@ -1218,8 +1243,8 @@ var init_checks = __esm(() => {
|
|
|
1218
1243
|
$ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1219
1244
|
$ZodCheck.init(inst, def);
|
|
1220
1245
|
inst._zod.onattach.push((inst2) => {
|
|
1221
|
-
var
|
|
1222
|
-
(
|
|
1246
|
+
var _a2;
|
|
1247
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
1223
1248
|
});
|
|
1224
1249
|
inst._zod.check = (payload) => {
|
|
1225
1250
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1352,9 +1377,9 @@ var init_checks = __esm(() => {
|
|
|
1352
1377
|
};
|
|
1353
1378
|
});
|
|
1354
1379
|
$ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1355
|
-
var
|
|
1380
|
+
var _a2;
|
|
1356
1381
|
$ZodCheck.init(inst, def);
|
|
1357
|
-
(
|
|
1382
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1358
1383
|
const val = payload.value;
|
|
1359
1384
|
return !nullish(val) && val.size !== undefined;
|
|
1360
1385
|
});
|
|
@@ -1380,9 +1405,9 @@ var init_checks = __esm(() => {
|
|
|
1380
1405
|
};
|
|
1381
1406
|
});
|
|
1382
1407
|
$ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1383
|
-
var
|
|
1408
|
+
var _a2;
|
|
1384
1409
|
$ZodCheck.init(inst, def);
|
|
1385
|
-
(
|
|
1410
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1386
1411
|
const val = payload.value;
|
|
1387
1412
|
return !nullish(val) && val.size !== undefined;
|
|
1388
1413
|
});
|
|
@@ -1408,9 +1433,9 @@ var init_checks = __esm(() => {
|
|
|
1408
1433
|
};
|
|
1409
1434
|
});
|
|
1410
1435
|
$ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1411
|
-
var
|
|
1436
|
+
var _a2;
|
|
1412
1437
|
$ZodCheck.init(inst, def);
|
|
1413
|
-
(
|
|
1438
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1414
1439
|
const val = payload.value;
|
|
1415
1440
|
return !nullish(val) && val.size !== undefined;
|
|
1416
1441
|
});
|
|
@@ -1438,9 +1463,9 @@ var init_checks = __esm(() => {
|
|
|
1438
1463
|
};
|
|
1439
1464
|
});
|
|
1440
1465
|
$ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1441
|
-
var
|
|
1466
|
+
var _a2;
|
|
1442
1467
|
$ZodCheck.init(inst, def);
|
|
1443
|
-
(
|
|
1468
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1444
1469
|
const val = payload.value;
|
|
1445
1470
|
return !nullish(val) && val.length !== undefined;
|
|
1446
1471
|
});
|
|
@@ -1467,9 +1492,9 @@ var init_checks = __esm(() => {
|
|
|
1467
1492
|
};
|
|
1468
1493
|
});
|
|
1469
1494
|
$ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1470
|
-
var
|
|
1495
|
+
var _a2;
|
|
1471
1496
|
$ZodCheck.init(inst, def);
|
|
1472
|
-
(
|
|
1497
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1473
1498
|
const val = payload.value;
|
|
1474
1499
|
return !nullish(val) && val.length !== undefined;
|
|
1475
1500
|
});
|
|
@@ -1496,9 +1521,9 @@ var init_checks = __esm(() => {
|
|
|
1496
1521
|
};
|
|
1497
1522
|
});
|
|
1498
1523
|
$ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1499
|
-
var
|
|
1524
|
+
var _a2;
|
|
1500
1525
|
$ZodCheck.init(inst, def);
|
|
1501
|
-
(
|
|
1526
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1502
1527
|
const val = payload.value;
|
|
1503
1528
|
return !nullish(val) && val.length !== undefined;
|
|
1504
1529
|
});
|
|
@@ -1527,7 +1552,7 @@ var init_checks = __esm(() => {
|
|
|
1527
1552
|
};
|
|
1528
1553
|
});
|
|
1529
1554
|
$ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1530
|
-
var
|
|
1555
|
+
var _a2, _b;
|
|
1531
1556
|
$ZodCheck.init(inst, def);
|
|
1532
1557
|
inst._zod.onattach.push((inst2) => {
|
|
1533
1558
|
const bag = inst2._zod.bag;
|
|
@@ -1538,7 +1563,7 @@ var init_checks = __esm(() => {
|
|
|
1538
1563
|
}
|
|
1539
1564
|
});
|
|
1540
1565
|
if (def.pattern)
|
|
1541
|
-
(
|
|
1566
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
1542
1567
|
def.pattern.lastIndex = 0;
|
|
1543
1568
|
if (def.pattern.test(payload.value))
|
|
1544
1569
|
return;
|
|
@@ -1690,7 +1715,7 @@ var init_checks = __esm(() => {
|
|
|
1690
1715
|
});
|
|
1691
1716
|
});
|
|
1692
1717
|
|
|
1693
|
-
// node_modules/.bun/zod@4.3
|
|
1718
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
1694
1719
|
class Doc {
|
|
1695
1720
|
constructor(args = []) {
|
|
1696
1721
|
this.content = [];
|
|
@@ -1729,20 +1754,22 @@ class Doc {
|
|
|
1729
1754
|
}
|
|
1730
1755
|
var init_doc = () => {};
|
|
1731
1756
|
|
|
1732
|
-
// node_modules/.bun/zod@4.3
|
|
1757
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
1733
1758
|
var version;
|
|
1734
1759
|
var init_versions = __esm(() => {
|
|
1735
1760
|
version = {
|
|
1736
1761
|
major: 4,
|
|
1737
|
-
minor:
|
|
1738
|
-
patch:
|
|
1762
|
+
minor: 4,
|
|
1763
|
+
patch: 3
|
|
1739
1764
|
};
|
|
1740
1765
|
});
|
|
1741
1766
|
|
|
1742
|
-
// node_modules/.bun/zod@4.3
|
|
1767
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
1743
1768
|
function isValidBase64(data) {
|
|
1744
1769
|
if (data === "")
|
|
1745
1770
|
return true;
|
|
1771
|
+
if (/\s/.test(data))
|
|
1772
|
+
return false;
|
|
1746
1773
|
if (data.length % 4 !== 0)
|
|
1747
1774
|
return false;
|
|
1748
1775
|
try {
|
|
@@ -1785,15 +1812,27 @@ function handleArrayResult(result, final, index) {
|
|
|
1785
1812
|
}
|
|
1786
1813
|
final.value[index] = result.value;
|
|
1787
1814
|
}
|
|
1788
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
1815
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
1816
|
+
const isPresent = key in input;
|
|
1789
1817
|
if (result.issues.length) {
|
|
1790
|
-
if (isOptionalOut && !
|
|
1818
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
1791
1819
|
return;
|
|
1792
1820
|
}
|
|
1793
1821
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
1794
1822
|
}
|
|
1823
|
+
if (!isPresent && !isOptionalIn) {
|
|
1824
|
+
if (!result.issues.length) {
|
|
1825
|
+
final.issues.push({
|
|
1826
|
+
code: "invalid_type",
|
|
1827
|
+
expected: "nonoptional",
|
|
1828
|
+
input: undefined,
|
|
1829
|
+
path: [key]
|
|
1830
|
+
});
|
|
1831
|
+
}
|
|
1832
|
+
return;
|
|
1833
|
+
}
|
|
1795
1834
|
if (result.value === undefined) {
|
|
1796
|
-
if (
|
|
1835
|
+
if (isPresent) {
|
|
1797
1836
|
final.value[key] = undefined;
|
|
1798
1837
|
}
|
|
1799
1838
|
} else {
|
|
@@ -1821,8 +1860,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1821
1860
|
const keySet = def.keySet;
|
|
1822
1861
|
const _catchall = def.catchall._zod;
|
|
1823
1862
|
const t = _catchall.def.type;
|
|
1863
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
1824
1864
|
const isOptionalOut = _catchall.optout === "optional";
|
|
1825
1865
|
for (const key in input) {
|
|
1866
|
+
if (key === "__proto__")
|
|
1867
|
+
continue;
|
|
1826
1868
|
if (keySet.has(key))
|
|
1827
1869
|
continue;
|
|
1828
1870
|
if (t === "never") {
|
|
@@ -1831,9 +1873,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
1831
1873
|
}
|
|
1832
1874
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
1833
1875
|
if (r instanceof Promise) {
|
|
1834
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
1876
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
1835
1877
|
} else {
|
|
1836
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
1878
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
1837
1879
|
}
|
|
1838
1880
|
}
|
|
1839
1881
|
if (unrecognized.length) {
|
|
@@ -1977,12 +2019,41 @@ function handleIntersectionResults(result, left, right) {
|
|
|
1977
2019
|
result.value = merged.data;
|
|
1978
2020
|
return result;
|
|
1979
2021
|
}
|
|
2022
|
+
function getTupleOptStart(items, key) {
|
|
2023
|
+
for (let i = items.length - 1;i >= 0; i--) {
|
|
2024
|
+
if (items[i]._zod[key] !== "optional")
|
|
2025
|
+
return i + 1;
|
|
2026
|
+
}
|
|
2027
|
+
return 0;
|
|
2028
|
+
}
|
|
1980
2029
|
function handleTupleResult(result, final, index) {
|
|
1981
2030
|
if (result.issues.length) {
|
|
1982
2031
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
1983
2032
|
}
|
|
1984
2033
|
final.value[index] = result.value;
|
|
1985
2034
|
}
|
|
2035
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
2036
|
+
for (let i = 0;i < items.length; i++) {
|
|
2037
|
+
const r = itemResults[i];
|
|
2038
|
+
const isPresent = i < input.length;
|
|
2039
|
+
if (r.issues.length) {
|
|
2040
|
+
if (!isPresent && i >= optoutStart) {
|
|
2041
|
+
final.value.length = i;
|
|
2042
|
+
break;
|
|
2043
|
+
}
|
|
2044
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
2045
|
+
}
|
|
2046
|
+
final.value[i] = r.value;
|
|
2047
|
+
}
|
|
2048
|
+
for (let i = final.value.length - 1;i >= input.length; i--) {
|
|
2049
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
|
|
2050
|
+
final.value.length = i;
|
|
2051
|
+
} else {
|
|
2052
|
+
break;
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
return final;
|
|
2056
|
+
}
|
|
1986
2057
|
function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
|
|
1987
2058
|
if (keyResult.issues.length) {
|
|
1988
2059
|
if (propertyKeyTypes.has(typeof key)) {
|
|
@@ -2020,7 +2091,7 @@ function handleSetResult(result, final) {
|
|
|
2020
2091
|
final.value.add(result.value);
|
|
2021
2092
|
}
|
|
2022
2093
|
function handleOptionalResult(result, input) {
|
|
2023
|
-
if (result.issues.length
|
|
2094
|
+
if (input === undefined && (result.issues.length || result.fallback)) {
|
|
2024
2095
|
return { issues: [], value: undefined };
|
|
2025
2096
|
}
|
|
2026
2097
|
return result;
|
|
@@ -2047,7 +2118,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
2047
2118
|
left.aborted = true;
|
|
2048
2119
|
return left;
|
|
2049
2120
|
}
|
|
2050
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
2121
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
2051
2122
|
}
|
|
2052
2123
|
function handleCodecAResult(result, def, ctx) {
|
|
2053
2124
|
if (result.issues.length) {
|
|
@@ -2094,7 +2165,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2094
2165
|
payload.issues.push(issue(_iss));
|
|
2095
2166
|
}
|
|
2096
2167
|
}
|
|
2097
|
-
var $ZodType, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, $ZodIPv6, $ZodMAC, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodXor, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodCodec, $ZodReadonly, $ZodTemplateLiteral, $ZodFunction, $ZodPromise, $ZodLazy, $ZodCustom;
|
|
2168
|
+
var $ZodType, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, $ZodIPv6, $ZodMAC, $ZodCIDRv4, $ZodCIDRv6, $ZodBase64, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodCustomStringFormat, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodBigInt, $ZodBigIntFormat, $ZodSymbol, $ZodUndefined, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodVoid, $ZodDate, $ZodArray, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodXor, $ZodDiscriminatedUnion, $ZodIntersection, $ZodTuple, $ZodRecord, $ZodMap, $ZodSet, $ZodEnum, $ZodLiteral, $ZodFile, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodSuccess, $ZodCatch, $ZodNaN, $ZodPipe, $ZodCodec, $ZodPreprocess, $ZodReadonly, $ZodTemplateLiteral, $ZodFunction, $ZodPromise, $ZodLazy, $ZodCustom;
|
|
2098
2169
|
var init_schemas = __esm(() => {
|
|
2099
2170
|
init_checks();
|
|
2100
2171
|
init_core();
|
|
@@ -2105,7 +2176,7 @@ var init_schemas = __esm(() => {
|
|
|
2105
2176
|
init_versions();
|
|
2106
2177
|
init_util();
|
|
2107
2178
|
$ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2108
|
-
var
|
|
2179
|
+
var _a2;
|
|
2109
2180
|
inst ?? (inst = {});
|
|
2110
2181
|
inst._zod.def = def;
|
|
2111
2182
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2120,7 +2191,7 @@ var init_schemas = __esm(() => {
|
|
|
2120
2191
|
}
|
|
2121
2192
|
}
|
|
2122
2193
|
if (checks.length === 0) {
|
|
2123
|
-
(
|
|
2194
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
2124
2195
|
inst._zod.deferred?.push(() => {
|
|
2125
2196
|
inst._zod.run = inst._zod.parse;
|
|
2126
2197
|
});
|
|
@@ -2130,6 +2201,8 @@ var init_schemas = __esm(() => {
|
|
|
2130
2201
|
let asyncResult;
|
|
2131
2202
|
for (const ch of checks2) {
|
|
2132
2203
|
if (ch._zod.def.when) {
|
|
2204
|
+
if (explicitlyAborted(payload))
|
|
2205
|
+
continue;
|
|
2133
2206
|
const shouldRun = ch._zod.def.when(payload);
|
|
2134
2207
|
if (!shouldRun)
|
|
2135
2208
|
continue;
|
|
@@ -2269,6 +2342,19 @@ var init_schemas = __esm(() => {
|
|
|
2269
2342
|
inst._zod.check = (payload) => {
|
|
2270
2343
|
try {
|
|
2271
2344
|
const trimmed = payload.value.trim();
|
|
2345
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2346
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2347
|
+
payload.issues.push({
|
|
2348
|
+
code: "invalid_format",
|
|
2349
|
+
format: "url",
|
|
2350
|
+
note: "Invalid URL format",
|
|
2351
|
+
input: payload.value,
|
|
2352
|
+
inst,
|
|
2353
|
+
continue: !def.abort
|
|
2354
|
+
});
|
|
2355
|
+
return;
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2272
2358
|
const url = new URL(trimmed);
|
|
2273
2359
|
if (def.hostname) {
|
|
2274
2360
|
def.hostname.lastIndex = 0;
|
|
@@ -2572,8 +2658,6 @@ var init_schemas = __esm(() => {
|
|
|
2572
2658
|
$ZodType.init(inst, def);
|
|
2573
2659
|
inst._zod.pattern = _undefined;
|
|
2574
2660
|
inst._zod.values = new Set([undefined]);
|
|
2575
|
-
inst._zod.optin = "optional";
|
|
2576
|
-
inst._zod.optout = "optional";
|
|
2577
2661
|
inst._zod.parse = (payload, _ctx) => {
|
|
2578
2662
|
const input = payload.value;
|
|
2579
2663
|
if (typeof input === "undefined")
|
|
@@ -2744,12 +2828,13 @@ var init_schemas = __esm(() => {
|
|
|
2744
2828
|
const shape = value.shape;
|
|
2745
2829
|
for (const key of value.keys) {
|
|
2746
2830
|
const el = shape[key];
|
|
2831
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
2747
2832
|
const isOptionalOut = el._zod.optout === "optional";
|
|
2748
2833
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
2749
2834
|
if (r instanceof Promise) {
|
|
2750
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
2835
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
2751
2836
|
} else {
|
|
2752
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
2837
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
2753
2838
|
}
|
|
2754
2839
|
}
|
|
2755
2840
|
if (!catchall) {
|
|
@@ -2780,9 +2865,10 @@ var init_schemas = __esm(() => {
|
|
|
2780
2865
|
const id = ids[key];
|
|
2781
2866
|
const k = esc(key);
|
|
2782
2867
|
const schema = shape[key];
|
|
2868
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
2783
2869
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
2784
2870
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
2785
|
-
if (isOptionalOut) {
|
|
2871
|
+
if (isOptionalIn && isOptionalOut) {
|
|
2786
2872
|
doc.write(`
|
|
2787
2873
|
if (${id}.issues.length) {
|
|
2788
2874
|
if (${k} in input) {
|
|
@@ -2801,6 +2887,33 @@ var init_schemas = __esm(() => {
|
|
|
2801
2887
|
newResult[${k}] = ${id}.value;
|
|
2802
2888
|
}
|
|
2803
2889
|
|
|
2890
|
+
`);
|
|
2891
|
+
} else if (!isOptionalIn) {
|
|
2892
|
+
doc.write(`
|
|
2893
|
+
const ${id}_present = ${k} in input;
|
|
2894
|
+
if (${id}.issues.length) {
|
|
2895
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
2896
|
+
...iss,
|
|
2897
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
2898
|
+
})));
|
|
2899
|
+
}
|
|
2900
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
2901
|
+
payload.issues.push({
|
|
2902
|
+
code: "invalid_type",
|
|
2903
|
+
expected: "nonoptional",
|
|
2904
|
+
input: undefined,
|
|
2905
|
+
path: [${k}]
|
|
2906
|
+
});
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
if (${id}_present) {
|
|
2910
|
+
if (${id}.value === undefined) {
|
|
2911
|
+
newResult[${k}] = undefined;
|
|
2912
|
+
} else {
|
|
2913
|
+
newResult[${k}] = ${id}.value;
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2804
2917
|
`);
|
|
2805
2918
|
} else {
|
|
2806
2919
|
doc.write(`
|
|
@@ -2874,10 +2987,9 @@ var init_schemas = __esm(() => {
|
|
|
2874
2987
|
}
|
|
2875
2988
|
return;
|
|
2876
2989
|
});
|
|
2877
|
-
const
|
|
2878
|
-
const first = def.options[0]._zod.run;
|
|
2990
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
2879
2991
|
inst._zod.parse = (payload, ctx) => {
|
|
2880
|
-
if (
|
|
2992
|
+
if (first) {
|
|
2881
2993
|
return first(payload, ctx);
|
|
2882
2994
|
}
|
|
2883
2995
|
let async = false;
|
|
@@ -2906,10 +3018,9 @@ var init_schemas = __esm(() => {
|
|
|
2906
3018
|
$ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
2907
3019
|
$ZodUnion.init(inst, def);
|
|
2908
3020
|
def.inclusive = false;
|
|
2909
|
-
const
|
|
2910
|
-
const first = def.options[0]._zod.run;
|
|
3021
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
2911
3022
|
inst._zod.parse = (payload, ctx) => {
|
|
2912
|
-
if (
|
|
3023
|
+
if (first) {
|
|
2913
3024
|
return first(payload, ctx);
|
|
2914
3025
|
}
|
|
2915
3026
|
let async = false;
|
|
@@ -2984,7 +3095,7 @@ var init_schemas = __esm(() => {
|
|
|
2984
3095
|
if (opt) {
|
|
2985
3096
|
return opt._zod.run(payload, ctx);
|
|
2986
3097
|
}
|
|
2987
|
-
if (def.unionFallback) {
|
|
3098
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
2988
3099
|
return _super(payload, ctx);
|
|
2989
3100
|
}
|
|
2990
3101
|
payload.issues.push({
|
|
@@ -2992,6 +3103,7 @@ var init_schemas = __esm(() => {
|
|
|
2992
3103
|
errors: [],
|
|
2993
3104
|
note: "No matching discriminator",
|
|
2994
3105
|
discriminator: def.discriminator,
|
|
3106
|
+
options: Array.from(disc.value.keys()),
|
|
2995
3107
|
input,
|
|
2996
3108
|
path: [def.discriminator],
|
|
2997
3109
|
inst
|
|
@@ -3030,56 +3142,59 @@ var init_schemas = __esm(() => {
|
|
|
3030
3142
|
}
|
|
3031
3143
|
payload.value = [];
|
|
3032
3144
|
const proms = [];
|
|
3033
|
-
const
|
|
3034
|
-
const
|
|
3145
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
3146
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
3035
3147
|
if (!def.rest) {
|
|
3036
|
-
|
|
3037
|
-
const tooSmall = input.length < optStart - 1;
|
|
3038
|
-
if (tooBig || tooSmall) {
|
|
3148
|
+
if (input.length < optinStart) {
|
|
3039
3149
|
payload.issues.push({
|
|
3040
|
-
|
|
3150
|
+
code: "too_small",
|
|
3151
|
+
minimum: optinStart,
|
|
3152
|
+
inclusive: true,
|
|
3041
3153
|
input,
|
|
3042
3154
|
inst,
|
|
3043
3155
|
origin: "array"
|
|
3044
3156
|
});
|
|
3045
3157
|
return payload;
|
|
3046
3158
|
}
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3159
|
+
if (input.length > items.length) {
|
|
3160
|
+
payload.issues.push({
|
|
3161
|
+
code: "too_big",
|
|
3162
|
+
maximum: items.length,
|
|
3163
|
+
inclusive: true,
|
|
3164
|
+
input,
|
|
3165
|
+
inst,
|
|
3166
|
+
origin: "array"
|
|
3167
|
+
});
|
|
3054
3168
|
}
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
}, ctx);
|
|
3059
|
-
if (
|
|
3060
|
-
proms.push(
|
|
3169
|
+
}
|
|
3170
|
+
const itemResults = new Array(items.length);
|
|
3171
|
+
for (let i = 0;i < items.length; i++) {
|
|
3172
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
3173
|
+
if (r instanceof Promise) {
|
|
3174
|
+
proms.push(r.then((rr) => {
|
|
3175
|
+
itemResults[i] = rr;
|
|
3176
|
+
}));
|
|
3061
3177
|
} else {
|
|
3062
|
-
|
|
3178
|
+
itemResults[i] = r;
|
|
3063
3179
|
}
|
|
3064
3180
|
}
|
|
3065
3181
|
if (def.rest) {
|
|
3182
|
+
let i = items.length - 1;
|
|
3066
3183
|
const rest = input.slice(items.length);
|
|
3067
3184
|
for (const el of rest) {
|
|
3068
3185
|
i++;
|
|
3069
|
-
const result = def.rest._zod.run({
|
|
3070
|
-
value: el,
|
|
3071
|
-
issues: []
|
|
3072
|
-
}, ctx);
|
|
3186
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3073
3187
|
if (result instanceof Promise) {
|
|
3074
|
-
proms.push(result.then((
|
|
3188
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
3075
3189
|
} else {
|
|
3076
3190
|
handleTupleResult(result, payload, i);
|
|
3077
3191
|
}
|
|
3078
3192
|
}
|
|
3079
3193
|
}
|
|
3080
|
-
if (proms.length)
|
|
3081
|
-
return Promise.all(proms).then(() => payload);
|
|
3082
|
-
|
|
3194
|
+
if (proms.length) {
|
|
3195
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
3196
|
+
}
|
|
3197
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3083
3198
|
};
|
|
3084
3199
|
});
|
|
3085
3200
|
$ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
@@ -3103,19 +3218,35 @@ var init_schemas = __esm(() => {
|
|
|
3103
3218
|
for (const key of values) {
|
|
3104
3219
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3105
3220
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3221
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3222
|
+
if (keyResult instanceof Promise) {
|
|
3223
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
3224
|
+
}
|
|
3225
|
+
if (keyResult.issues.length) {
|
|
3226
|
+
payload.issues.push({
|
|
3227
|
+
code: "invalid_key",
|
|
3228
|
+
origin: "record",
|
|
3229
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
3230
|
+
input: key,
|
|
3231
|
+
path: [key],
|
|
3232
|
+
inst
|
|
3233
|
+
});
|
|
3234
|
+
continue;
|
|
3235
|
+
}
|
|
3236
|
+
const outKey = keyResult.value;
|
|
3106
3237
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3107
3238
|
if (result instanceof Promise) {
|
|
3108
3239
|
proms.push(result.then((result2) => {
|
|
3109
3240
|
if (result2.issues.length) {
|
|
3110
3241
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3111
3242
|
}
|
|
3112
|
-
payload.value[
|
|
3243
|
+
payload.value[outKey] = result2.value;
|
|
3113
3244
|
}));
|
|
3114
3245
|
} else {
|
|
3115
3246
|
if (result.issues.length) {
|
|
3116
3247
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3117
3248
|
}
|
|
3118
|
-
payload.value[
|
|
3249
|
+
payload.value[outKey] = result.value;
|
|
3119
3250
|
}
|
|
3120
3251
|
}
|
|
3121
3252
|
}
|
|
@@ -3139,6 +3270,8 @@ var init_schemas = __esm(() => {
|
|
|
3139
3270
|
for (const key of Reflect.ownKeys(input)) {
|
|
3140
3271
|
if (key === "__proto__")
|
|
3141
3272
|
continue;
|
|
3273
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
3274
|
+
continue;
|
|
3142
3275
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3143
3276
|
if (keyResult instanceof Promise) {
|
|
3144
3277
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -3307,6 +3440,7 @@ var init_schemas = __esm(() => {
|
|
|
3307
3440
|
});
|
|
3308
3441
|
$ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
3309
3442
|
$ZodType.init(inst, def);
|
|
3443
|
+
inst._zod.optin = "optional";
|
|
3310
3444
|
inst._zod.parse = (payload, ctx) => {
|
|
3311
3445
|
if (ctx.direction === "backward") {
|
|
3312
3446
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -3316,6 +3450,7 @@ var init_schemas = __esm(() => {
|
|
|
3316
3450
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
3317
3451
|
return output.then((output2) => {
|
|
3318
3452
|
payload.value = output2;
|
|
3453
|
+
payload.fallback = true;
|
|
3319
3454
|
return payload;
|
|
3320
3455
|
});
|
|
3321
3456
|
}
|
|
@@ -3323,6 +3458,7 @@ var init_schemas = __esm(() => {
|
|
|
3323
3458
|
throw new $ZodAsyncError;
|
|
3324
3459
|
}
|
|
3325
3460
|
payload.value = _out;
|
|
3461
|
+
payload.fallback = true;
|
|
3326
3462
|
return payload;
|
|
3327
3463
|
};
|
|
3328
3464
|
});
|
|
@@ -3339,10 +3475,11 @@ var init_schemas = __esm(() => {
|
|
|
3339
3475
|
});
|
|
3340
3476
|
inst._zod.parse = (payload, ctx) => {
|
|
3341
3477
|
if (def.innerType._zod.optin === "optional") {
|
|
3478
|
+
const input = payload.value;
|
|
3342
3479
|
const result = def.innerType._zod.run(payload, ctx);
|
|
3343
3480
|
if (result instanceof Promise)
|
|
3344
|
-
return result.then((r) => handleOptionalResult(r,
|
|
3345
|
-
return handleOptionalResult(result,
|
|
3481
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
3482
|
+
return handleOptionalResult(result, input);
|
|
3346
3483
|
}
|
|
3347
3484
|
if (payload.value === undefined) {
|
|
3348
3485
|
return payload;
|
|
@@ -3441,7 +3578,7 @@ var init_schemas = __esm(() => {
|
|
|
3441
3578
|
});
|
|
3442
3579
|
$ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3443
3580
|
$ZodType.init(inst, def);
|
|
3444
|
-
|
|
3581
|
+
inst._zod.optin = "optional";
|
|
3445
3582
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3446
3583
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3447
3584
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3461,6 +3598,7 @@ var init_schemas = __esm(() => {
|
|
|
3461
3598
|
input: payload.value
|
|
3462
3599
|
});
|
|
3463
3600
|
payload.issues = [];
|
|
3601
|
+
payload.fallback = true;
|
|
3464
3602
|
}
|
|
3465
3603
|
return payload;
|
|
3466
3604
|
});
|
|
@@ -3475,6 +3613,7 @@ var init_schemas = __esm(() => {
|
|
|
3475
3613
|
input: payload.value
|
|
3476
3614
|
});
|
|
3477
3615
|
payload.issues = [];
|
|
3616
|
+
payload.fallback = true;
|
|
3478
3617
|
}
|
|
3479
3618
|
return payload;
|
|
3480
3619
|
};
|
|
@@ -3538,6 +3677,9 @@ var init_schemas = __esm(() => {
|
|
|
3538
3677
|
}
|
|
3539
3678
|
};
|
|
3540
3679
|
});
|
|
3680
|
+
$ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
3681
|
+
$ZodPipe.init(inst, def);
|
|
3682
|
+
});
|
|
3541
3683
|
$ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
3542
3684
|
$ZodType.init(inst, def);
|
|
3543
3685
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -3685,7 +3827,12 @@ var init_schemas = __esm(() => {
|
|
|
3685
3827
|
});
|
|
3686
3828
|
$ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
3687
3829
|
$ZodType.init(inst, def);
|
|
3688
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
3830
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
3831
|
+
const d = def;
|
|
3832
|
+
if (!d._cachedInner)
|
|
3833
|
+
d._cachedInner = def.getter();
|
|
3834
|
+
return d._cachedInner;
|
|
3835
|
+
});
|
|
3689
3836
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
3690
3837
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
3691
3838
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
|
|
@@ -3713,7 +3860,7 @@ var init_schemas = __esm(() => {
|
|
|
3713
3860
|
});
|
|
3714
3861
|
});
|
|
3715
3862
|
|
|
3716
|
-
// node_modules/.bun/zod@4.3
|
|
3863
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
3717
3864
|
function ar_default() {
|
|
3718
3865
|
return {
|
|
3719
3866
|
localeError: error()
|
|
@@ -3823,7 +3970,7 @@ var init_ar = __esm(() => {
|
|
|
3823
3970
|
init_util();
|
|
3824
3971
|
});
|
|
3825
3972
|
|
|
3826
|
-
// node_modules/.bun/zod@4.3
|
|
3973
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
3827
3974
|
function az_default() {
|
|
3828
3975
|
return {
|
|
3829
3976
|
localeError: error2()
|
|
@@ -3932,7 +4079,7 @@ var init_az = __esm(() => {
|
|
|
3932
4079
|
init_util();
|
|
3933
4080
|
});
|
|
3934
4081
|
|
|
3935
|
-
// node_modules/.bun/zod@4.3
|
|
4082
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
3936
4083
|
function getBelarusianPlural(count, one, few, many) {
|
|
3937
4084
|
const absCount = Math.abs(count);
|
|
3938
4085
|
const lastDigit = absCount % 10;
|
|
@@ -4092,7 +4239,7 @@ var init_be = __esm(() => {
|
|
|
4092
4239
|
init_util();
|
|
4093
4240
|
});
|
|
4094
4241
|
|
|
4095
|
-
// node_modules/.bun/zod@4.3
|
|
4242
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
4096
4243
|
function bg_default() {
|
|
4097
4244
|
return {
|
|
4098
4245
|
localeError: error4()
|
|
@@ -4216,7 +4363,7 @@ var init_bg = __esm(() => {
|
|
|
4216
4363
|
init_util();
|
|
4217
4364
|
});
|
|
4218
4365
|
|
|
4219
|
-
// node_modules/.bun/zod@4.3
|
|
4366
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
4220
4367
|
function ca_default() {
|
|
4221
4368
|
return {
|
|
4222
4369
|
localeError: error5()
|
|
@@ -4327,7 +4474,7 @@ var init_ca = __esm(() => {
|
|
|
4327
4474
|
init_util();
|
|
4328
4475
|
});
|
|
4329
4476
|
|
|
4330
|
-
// node_modules/.bun/zod@4.3
|
|
4477
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
4331
4478
|
function cs_default() {
|
|
4332
4479
|
return {
|
|
4333
4480
|
localeError: error6()
|
|
@@ -4442,7 +4589,7 @@ var init_cs = __esm(() => {
|
|
|
4442
4589
|
init_util();
|
|
4443
4590
|
});
|
|
4444
4591
|
|
|
4445
|
-
// node_modules/.bun/zod@4.3
|
|
4592
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
4446
4593
|
function da_default() {
|
|
4447
4594
|
return {
|
|
4448
4595
|
localeError: error7()
|
|
@@ -4561,7 +4708,7 @@ var init_da = __esm(() => {
|
|
|
4561
4708
|
init_util();
|
|
4562
4709
|
});
|
|
4563
4710
|
|
|
4564
|
-
// node_modules/.bun/zod@4.3
|
|
4711
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
4565
4712
|
function de_default() {
|
|
4566
4713
|
return {
|
|
4567
4714
|
localeError: error8()
|
|
@@ -4673,13 +4820,126 @@ var init_de = __esm(() => {
|
|
|
4673
4820
|
init_util();
|
|
4674
4821
|
});
|
|
4675
4822
|
|
|
4676
|
-
// node_modules/.bun/zod@4.3
|
|
4677
|
-
function
|
|
4823
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
4824
|
+
function el_default() {
|
|
4678
4825
|
return {
|
|
4679
4826
|
localeError: error9()
|
|
4680
4827
|
};
|
|
4681
4828
|
}
|
|
4682
4829
|
var error9 = () => {
|
|
4830
|
+
const Sizable = {
|
|
4831
|
+
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
4832
|
+
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
4833
|
+
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
4834
|
+
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
4835
|
+
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
4836
|
+
};
|
|
4837
|
+
function getSizing(origin) {
|
|
4838
|
+
return Sizable[origin] ?? null;
|
|
4839
|
+
}
|
|
4840
|
+
const FormatDictionary = {
|
|
4841
|
+
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
4842
|
+
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
4843
|
+
url: "URL",
|
|
4844
|
+
emoji: "emoji",
|
|
4845
|
+
uuid: "UUID",
|
|
4846
|
+
uuidv4: "UUIDv4",
|
|
4847
|
+
uuidv6: "UUIDv6",
|
|
4848
|
+
nanoid: "nanoid",
|
|
4849
|
+
guid: "GUID",
|
|
4850
|
+
cuid: "cuid",
|
|
4851
|
+
cuid2: "cuid2",
|
|
4852
|
+
ulid: "ULID",
|
|
4853
|
+
xid: "XID",
|
|
4854
|
+
ksuid: "KSUID",
|
|
4855
|
+
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
4856
|
+
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
4857
|
+
time: "ISO \u03CE\u03C1\u03B1",
|
|
4858
|
+
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
4859
|
+
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
4860
|
+
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
4861
|
+
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
4862
|
+
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
4863
|
+
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
4864
|
+
base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
|
|
4865
|
+
base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
|
|
4866
|
+
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
4867
|
+
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
4868
|
+
jwt: "JWT",
|
|
4869
|
+
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
4870
|
+
};
|
|
4871
|
+
const TypeDictionary = {
|
|
4872
|
+
nan: "NaN"
|
|
4873
|
+
};
|
|
4874
|
+
return (issue2) => {
|
|
4875
|
+
switch (issue2.code) {
|
|
4876
|
+
case "invalid_type": {
|
|
4877
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
4878
|
+
const receivedType = parsedType(issue2.input);
|
|
4879
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
4880
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
4881
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
4882
|
+
}
|
|
4883
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
4884
|
+
}
|
|
4885
|
+
case "invalid_value":
|
|
4886
|
+
if (issue2.values.length === 1)
|
|
4887
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
|
|
4888
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
|
|
4889
|
+
case "too_big": {
|
|
4890
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
4891
|
+
const sizing = getSizing(issue2.origin);
|
|
4892
|
+
if (sizing)
|
|
4893
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
|
|
4894
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
|
|
4895
|
+
}
|
|
4896
|
+
case "too_small": {
|
|
4897
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
4898
|
+
const sizing = getSizing(issue2.origin);
|
|
4899
|
+
if (sizing) {
|
|
4900
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
4901
|
+
}
|
|
4902
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
|
|
4903
|
+
}
|
|
4904
|
+
case "invalid_format": {
|
|
4905
|
+
const _issue = issue2;
|
|
4906
|
+
if (_issue.format === "starts_with") {
|
|
4907
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
|
|
4908
|
+
}
|
|
4909
|
+
if (_issue.format === "ends_with")
|
|
4910
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
|
|
4911
|
+
if (_issue.format === "includes")
|
|
4912
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
|
|
4913
|
+
if (_issue.format === "regex")
|
|
4914
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
|
|
4915
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
4916
|
+
}
|
|
4917
|
+
case "not_multiple_of":
|
|
4918
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
|
|
4919
|
+
case "unrecognized_keys":
|
|
4920
|
+
return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
|
|
4921
|
+
case "invalid_key":
|
|
4922
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
4923
|
+
case "invalid_union":
|
|
4924
|
+
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
4925
|
+
case "invalid_element":
|
|
4926
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
4927
|
+
default:
|
|
4928
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
4929
|
+
}
|
|
4930
|
+
};
|
|
4931
|
+
};
|
|
4932
|
+
var init_el = __esm(() => {
|
|
4933
|
+
init_util();
|
|
4934
|
+
});
|
|
4935
|
+
|
|
4936
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
4937
|
+
function en_default() {
|
|
4938
|
+
return {
|
|
4939
|
+
localeError: error10()
|
|
4940
|
+
};
|
|
4941
|
+
}
|
|
4942
|
+
var error10 = () => {
|
|
4683
4943
|
const Sizable = {
|
|
4684
4944
|
string: { unit: "characters", verb: "to have" },
|
|
4685
4945
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -4771,6 +5031,10 @@ var error9 = () => {
|
|
|
4771
5031
|
case "invalid_key":
|
|
4772
5032
|
return `Invalid key in ${issue2.origin}`;
|
|
4773
5033
|
case "invalid_union":
|
|
5034
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
5035
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
5036
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
5037
|
+
}
|
|
4774
5038
|
return "Invalid input";
|
|
4775
5039
|
case "invalid_element":
|
|
4776
5040
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -4783,13 +5047,13 @@ var init_en = __esm(() => {
|
|
|
4783
5047
|
init_util();
|
|
4784
5048
|
});
|
|
4785
5049
|
|
|
4786
|
-
// node_modules/.bun/zod@4.3
|
|
5050
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
4787
5051
|
function eo_default() {
|
|
4788
5052
|
return {
|
|
4789
|
-
localeError:
|
|
5053
|
+
localeError: error11()
|
|
4790
5054
|
};
|
|
4791
5055
|
}
|
|
4792
|
-
var
|
|
5056
|
+
var error11 = () => {
|
|
4793
5057
|
const Sizable = {
|
|
4794
5058
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
4795
5059
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -4896,13 +5160,13 @@ var init_eo = __esm(() => {
|
|
|
4896
5160
|
init_util();
|
|
4897
5161
|
});
|
|
4898
5162
|
|
|
4899
|
-
// node_modules/.bun/zod@4.3
|
|
5163
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
4900
5164
|
function es_default() {
|
|
4901
5165
|
return {
|
|
4902
|
-
localeError:
|
|
5166
|
+
localeError: error12()
|
|
4903
5167
|
};
|
|
4904
5168
|
}
|
|
4905
|
-
var
|
|
5169
|
+
var error12 = () => {
|
|
4906
5170
|
const Sizable = {
|
|
4907
5171
|
string: { unit: "caracteres", verb: "tener" },
|
|
4908
5172
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -5032,13 +5296,13 @@ var init_es = __esm(() => {
|
|
|
5032
5296
|
init_util();
|
|
5033
5297
|
});
|
|
5034
5298
|
|
|
5035
|
-
// node_modules/.bun/zod@4.3
|
|
5299
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
5036
5300
|
function fa_default() {
|
|
5037
5301
|
return {
|
|
5038
|
-
localeError:
|
|
5302
|
+
localeError: error13()
|
|
5039
5303
|
};
|
|
5040
5304
|
}
|
|
5041
|
-
var
|
|
5305
|
+
var error13 = () => {
|
|
5042
5306
|
const Sizable = {
|
|
5043
5307
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
5044
5308
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5150,13 +5414,13 @@ var init_fa = __esm(() => {
|
|
|
5150
5414
|
init_util();
|
|
5151
5415
|
});
|
|
5152
5416
|
|
|
5153
|
-
// node_modules/.bun/zod@4.3
|
|
5417
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
5154
5418
|
function fi_default() {
|
|
5155
5419
|
return {
|
|
5156
|
-
localeError:
|
|
5420
|
+
localeError: error14()
|
|
5157
5421
|
};
|
|
5158
5422
|
}
|
|
5159
|
-
var
|
|
5423
|
+
var error14 = () => {
|
|
5160
5424
|
const Sizable = {
|
|
5161
5425
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
5162
5426
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -5266,13 +5530,13 @@ var init_fi = __esm(() => {
|
|
|
5266
5530
|
init_util();
|
|
5267
5531
|
});
|
|
5268
5532
|
|
|
5269
|
-
// node_modules/.bun/zod@4.3
|
|
5533
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
5270
5534
|
function fr_default() {
|
|
5271
5535
|
return {
|
|
5272
|
-
localeError:
|
|
5536
|
+
localeError: error15()
|
|
5273
5537
|
};
|
|
5274
5538
|
}
|
|
5275
|
-
var
|
|
5539
|
+
var error15 = () => {
|
|
5276
5540
|
const Sizable = {
|
|
5277
5541
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5278
5542
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -5313,9 +5577,27 @@ var error14 = () => {
|
|
|
5313
5577
|
template_literal: "entr\xE9e"
|
|
5314
5578
|
};
|
|
5315
5579
|
const TypeDictionary = {
|
|
5316
|
-
|
|
5580
|
+
string: "cha\xEEne",
|
|
5317
5581
|
number: "nombre",
|
|
5318
|
-
|
|
5582
|
+
int: "entier",
|
|
5583
|
+
boolean: "bool\xE9en",
|
|
5584
|
+
bigint: "grand entier",
|
|
5585
|
+
symbol: "symbole",
|
|
5586
|
+
undefined: "ind\xE9fini",
|
|
5587
|
+
null: "null",
|
|
5588
|
+
never: "jamais",
|
|
5589
|
+
void: "vide",
|
|
5590
|
+
date: "date",
|
|
5591
|
+
array: "tableau",
|
|
5592
|
+
object: "objet",
|
|
5593
|
+
tuple: "tuple",
|
|
5594
|
+
record: "enregistrement",
|
|
5595
|
+
map: "carte",
|
|
5596
|
+
set: "ensemble",
|
|
5597
|
+
file: "fichier",
|
|
5598
|
+
nonoptional: "non-optionnel",
|
|
5599
|
+
nan: "NaN",
|
|
5600
|
+
function: "fonction"
|
|
5319
5601
|
};
|
|
5320
5602
|
return (issue2) => {
|
|
5321
5603
|
switch (issue2.code) {
|
|
@@ -5336,16 +5618,15 @@ var error14 = () => {
|
|
|
5336
5618
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
5337
5619
|
const sizing = getSizing(issue2.origin);
|
|
5338
5620
|
if (sizing)
|
|
5339
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
5340
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
5621
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
5622
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
5341
5623
|
}
|
|
5342
5624
|
case "too_small": {
|
|
5343
5625
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
5344
5626
|
const sizing = getSizing(issue2.origin);
|
|
5345
|
-
if (sizing)
|
|
5346
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5347
|
-
}
|
|
5348
|
-
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
5627
|
+
if (sizing)
|
|
5628
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5629
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
5349
5630
|
}
|
|
5350
5631
|
case "invalid_format": {
|
|
5351
5632
|
const _issue = issue2;
|
|
@@ -5378,13 +5659,13 @@ var init_fr = __esm(() => {
|
|
|
5378
5659
|
init_util();
|
|
5379
5660
|
});
|
|
5380
5661
|
|
|
5381
|
-
// node_modules/.bun/zod@4.3
|
|
5662
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
5382
5663
|
function fr_CA_default() {
|
|
5383
5664
|
return {
|
|
5384
|
-
localeError:
|
|
5665
|
+
localeError: error16()
|
|
5385
5666
|
};
|
|
5386
5667
|
}
|
|
5387
|
-
var
|
|
5668
|
+
var error16 = () => {
|
|
5388
5669
|
const Sizable = {
|
|
5389
5670
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5390
5671
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -5489,13 +5770,13 @@ var init_fr_CA = __esm(() => {
|
|
|
5489
5770
|
init_util();
|
|
5490
5771
|
});
|
|
5491
5772
|
|
|
5492
|
-
// node_modules/.bun/zod@4.3
|
|
5773
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
5493
5774
|
function he_default() {
|
|
5494
5775
|
return {
|
|
5495
|
-
localeError:
|
|
5776
|
+
localeError: error17()
|
|
5496
5777
|
};
|
|
5497
5778
|
}
|
|
5498
|
-
var
|
|
5779
|
+
var error17 = () => {
|
|
5499
5780
|
const TypeNames = {
|
|
5500
5781
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
5501
5782
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -5686,13 +5967,139 @@ var init_he = __esm(() => {
|
|
|
5686
5967
|
init_util();
|
|
5687
5968
|
});
|
|
5688
5969
|
|
|
5689
|
-
// node_modules/.bun/zod@4.3
|
|
5970
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
5971
|
+
function hr_default() {
|
|
5972
|
+
return {
|
|
5973
|
+
localeError: error18()
|
|
5974
|
+
};
|
|
5975
|
+
}
|
|
5976
|
+
var error18 = () => {
|
|
5977
|
+
const Sizable = {
|
|
5978
|
+
string: { unit: "znakova", verb: "imati" },
|
|
5979
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
5980
|
+
array: { unit: "stavki", verb: "imati" },
|
|
5981
|
+
set: { unit: "stavki", verb: "imati" }
|
|
5982
|
+
};
|
|
5983
|
+
function getSizing(origin) {
|
|
5984
|
+
return Sizable[origin] ?? null;
|
|
5985
|
+
}
|
|
5986
|
+
const FormatDictionary = {
|
|
5987
|
+
regex: "unos",
|
|
5988
|
+
email: "email adresa",
|
|
5989
|
+
url: "URL",
|
|
5990
|
+
emoji: "emoji",
|
|
5991
|
+
uuid: "UUID",
|
|
5992
|
+
uuidv4: "UUIDv4",
|
|
5993
|
+
uuidv6: "UUIDv6",
|
|
5994
|
+
nanoid: "nanoid",
|
|
5995
|
+
guid: "GUID",
|
|
5996
|
+
cuid: "cuid",
|
|
5997
|
+
cuid2: "cuid2",
|
|
5998
|
+
ulid: "ULID",
|
|
5999
|
+
xid: "XID",
|
|
6000
|
+
ksuid: "KSUID",
|
|
6001
|
+
datetime: "ISO datum i vrijeme",
|
|
6002
|
+
date: "ISO datum",
|
|
6003
|
+
time: "ISO vrijeme",
|
|
6004
|
+
duration: "ISO trajanje",
|
|
6005
|
+
ipv4: "IPv4 adresa",
|
|
6006
|
+
ipv6: "IPv6 adresa",
|
|
6007
|
+
cidrv4: "IPv4 raspon",
|
|
6008
|
+
cidrv6: "IPv6 raspon",
|
|
6009
|
+
base64: "base64 kodirani tekst",
|
|
6010
|
+
base64url: "base64url kodirani tekst",
|
|
6011
|
+
json_string: "JSON tekst",
|
|
6012
|
+
e164: "E.164 broj",
|
|
6013
|
+
jwt: "JWT",
|
|
6014
|
+
template_literal: "unos"
|
|
6015
|
+
};
|
|
6016
|
+
const TypeDictionary = {
|
|
6017
|
+
nan: "NaN",
|
|
6018
|
+
string: "tekst",
|
|
6019
|
+
number: "broj",
|
|
6020
|
+
boolean: "boolean",
|
|
6021
|
+
array: "niz",
|
|
6022
|
+
object: "objekt",
|
|
6023
|
+
set: "skup",
|
|
6024
|
+
file: "datoteka",
|
|
6025
|
+
date: "datum",
|
|
6026
|
+
bigint: "bigint",
|
|
6027
|
+
symbol: "simbol",
|
|
6028
|
+
undefined: "undefined",
|
|
6029
|
+
null: "null",
|
|
6030
|
+
function: "funkcija",
|
|
6031
|
+
map: "mapa"
|
|
6032
|
+
};
|
|
6033
|
+
return (issue2) => {
|
|
6034
|
+
switch (issue2.code) {
|
|
6035
|
+
case "invalid_type": {
|
|
6036
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6037
|
+
const receivedType = parsedType(issue2.input);
|
|
6038
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6039
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6040
|
+
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
6041
|
+
}
|
|
6042
|
+
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
6043
|
+
}
|
|
6044
|
+
case "invalid_value":
|
|
6045
|
+
if (issue2.values.length === 1)
|
|
6046
|
+
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6047
|
+
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
6048
|
+
case "too_big": {
|
|
6049
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6050
|
+
const sizing = getSizing(issue2.origin);
|
|
6051
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6052
|
+
if (sizing)
|
|
6053
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
6054
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
6055
|
+
}
|
|
6056
|
+
case "too_small": {
|
|
6057
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6058
|
+
const sizing = getSizing(issue2.origin);
|
|
6059
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6060
|
+
if (sizing) {
|
|
6061
|
+
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6062
|
+
}
|
|
6063
|
+
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
6064
|
+
}
|
|
6065
|
+
case "invalid_format": {
|
|
6066
|
+
const _issue = issue2;
|
|
6067
|
+
if (_issue.format === "starts_with")
|
|
6068
|
+
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
6069
|
+
if (_issue.format === "ends_with")
|
|
6070
|
+
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
6071
|
+
if (_issue.format === "includes")
|
|
6072
|
+
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
6073
|
+
if (_issue.format === "regex")
|
|
6074
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
6075
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6076
|
+
}
|
|
6077
|
+
case "not_multiple_of":
|
|
6078
|
+
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
6079
|
+
case "unrecognized_keys":
|
|
6080
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6081
|
+
case "invalid_key":
|
|
6082
|
+
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6083
|
+
case "invalid_union":
|
|
6084
|
+
return "Neispravan unos";
|
|
6085
|
+
case "invalid_element":
|
|
6086
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6087
|
+
default:
|
|
6088
|
+
return `Neispravan unos`;
|
|
6089
|
+
}
|
|
6090
|
+
};
|
|
6091
|
+
};
|
|
6092
|
+
var init_hr = __esm(() => {
|
|
6093
|
+
init_util();
|
|
6094
|
+
});
|
|
6095
|
+
|
|
6096
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
5690
6097
|
function hu_default() {
|
|
5691
6098
|
return {
|
|
5692
|
-
localeError:
|
|
6099
|
+
localeError: error19()
|
|
5693
6100
|
};
|
|
5694
6101
|
}
|
|
5695
|
-
var
|
|
6102
|
+
var error19 = () => {
|
|
5696
6103
|
const Sizable = {
|
|
5697
6104
|
string: { unit: "karakter", verb: "legyen" },
|
|
5698
6105
|
file: { unit: "byte", verb: "legyen" },
|
|
@@ -5798,7 +6205,7 @@ var init_hu = __esm(() => {
|
|
|
5798
6205
|
init_util();
|
|
5799
6206
|
});
|
|
5800
6207
|
|
|
5801
|
-
// node_modules/.bun/zod@4.3
|
|
6208
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
5802
6209
|
function getArmenianPlural(count, one, many) {
|
|
5803
6210
|
return Math.abs(count) === 1 ? one : many;
|
|
5804
6211
|
}
|
|
@@ -5811,10 +6218,10 @@ function withDefiniteArticle(word) {
|
|
|
5811
6218
|
}
|
|
5812
6219
|
function hy_default() {
|
|
5813
6220
|
return {
|
|
5814
|
-
localeError:
|
|
6221
|
+
localeError: error20()
|
|
5815
6222
|
};
|
|
5816
6223
|
}
|
|
5817
|
-
var
|
|
6224
|
+
var error20 = () => {
|
|
5818
6225
|
const Sizable = {
|
|
5819
6226
|
string: {
|
|
5820
6227
|
unit: {
|
|
@@ -5949,13 +6356,13 @@ var init_hy = __esm(() => {
|
|
|
5949
6356
|
init_util();
|
|
5950
6357
|
});
|
|
5951
6358
|
|
|
5952
|
-
// node_modules/.bun/zod@4.3
|
|
6359
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
5953
6360
|
function id_default() {
|
|
5954
6361
|
return {
|
|
5955
|
-
localeError:
|
|
6362
|
+
localeError: error21()
|
|
5956
6363
|
};
|
|
5957
6364
|
}
|
|
5958
|
-
var
|
|
6365
|
+
var error21 = () => {
|
|
5959
6366
|
const Sizable = {
|
|
5960
6367
|
string: { unit: "karakter", verb: "memiliki" },
|
|
5961
6368
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -6059,13 +6466,13 @@ var init_id = __esm(() => {
|
|
|
6059
6466
|
init_util();
|
|
6060
6467
|
});
|
|
6061
6468
|
|
|
6062
|
-
// node_modules/.bun/zod@4.3
|
|
6469
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
6063
6470
|
function is_default() {
|
|
6064
6471
|
return {
|
|
6065
|
-
localeError:
|
|
6472
|
+
localeError: error22()
|
|
6066
6473
|
};
|
|
6067
6474
|
}
|
|
6068
|
-
var
|
|
6475
|
+
var error22 = () => {
|
|
6069
6476
|
const Sizable = {
|
|
6070
6477
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
6071
6478
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -6172,13 +6579,13 @@ var init_is = __esm(() => {
|
|
|
6172
6579
|
init_util();
|
|
6173
6580
|
});
|
|
6174
6581
|
|
|
6175
|
-
// node_modules/.bun/zod@4.3
|
|
6582
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
6176
6583
|
function it_default() {
|
|
6177
6584
|
return {
|
|
6178
|
-
localeError:
|
|
6585
|
+
localeError: error23()
|
|
6179
6586
|
};
|
|
6180
6587
|
}
|
|
6181
|
-
var
|
|
6588
|
+
var error23 = () => {
|
|
6182
6589
|
const Sizable = {
|
|
6183
6590
|
string: { unit: "caratteri", verb: "avere" },
|
|
6184
6591
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -6263,7 +6670,7 @@ var error21 = () => {
|
|
|
6263
6670
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
6264
6671
|
if (_issue.format === "regex")
|
|
6265
6672
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
6266
|
-
return `
|
|
6673
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6267
6674
|
}
|
|
6268
6675
|
case "not_multiple_of":
|
|
6269
6676
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -6284,13 +6691,13 @@ var init_it = __esm(() => {
|
|
|
6284
6691
|
init_util();
|
|
6285
6692
|
});
|
|
6286
6693
|
|
|
6287
|
-
// node_modules/.bun/zod@4.3
|
|
6694
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
6288
6695
|
function ja_default() {
|
|
6289
6696
|
return {
|
|
6290
|
-
localeError:
|
|
6697
|
+
localeError: error24()
|
|
6291
6698
|
};
|
|
6292
6699
|
}
|
|
6293
|
-
var
|
|
6700
|
+
var error24 = () => {
|
|
6294
6701
|
const Sizable = {
|
|
6295
6702
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
6296
6703
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -6395,13 +6802,13 @@ var init_ja = __esm(() => {
|
|
|
6395
6802
|
init_util();
|
|
6396
6803
|
});
|
|
6397
6804
|
|
|
6398
|
-
// node_modules/.bun/zod@4.3
|
|
6805
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
6399
6806
|
function ka_default() {
|
|
6400
6807
|
return {
|
|
6401
|
-
localeError:
|
|
6808
|
+
localeError: error25()
|
|
6402
6809
|
};
|
|
6403
6810
|
}
|
|
6404
|
-
var
|
|
6811
|
+
var error25 = () => {
|
|
6405
6812
|
const Sizable = {
|
|
6406
6813
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
6407
6814
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -6434,9 +6841,9 @@ var error23 = () => {
|
|
|
6434
6841
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
6435
6842
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
6436
6843
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
6437
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
6438
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
6439
|
-
json_string: "JSON \
|
|
6844
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
6845
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
6846
|
+
json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
|
|
6440
6847
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
6441
6848
|
jwt: "JWT",
|
|
6442
6849
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -6444,7 +6851,7 @@ var error23 = () => {
|
|
|
6444
6851
|
const TypeDictionary = {
|
|
6445
6852
|
nan: "NaN",
|
|
6446
6853
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
6447
|
-
string: "\
|
|
6854
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
6448
6855
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
6449
6856
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
6450
6857
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -6482,14 +6889,14 @@ var error23 = () => {
|
|
|
6482
6889
|
case "invalid_format": {
|
|
6483
6890
|
const _issue = issue2;
|
|
6484
6891
|
if (_issue.format === "starts_with") {
|
|
6485
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
6892
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
|
|
6486
6893
|
}
|
|
6487
6894
|
if (_issue.format === "ends_with")
|
|
6488
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
6895
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
|
|
6489
6896
|
if (_issue.format === "includes")
|
|
6490
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
6897
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
|
|
6491
6898
|
if (_issue.format === "regex")
|
|
6492
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
6899
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
|
|
6493
6900
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6494
6901
|
}
|
|
6495
6902
|
case "not_multiple_of":
|
|
@@ -6511,13 +6918,13 @@ var init_ka = __esm(() => {
|
|
|
6511
6918
|
init_util();
|
|
6512
6919
|
});
|
|
6513
6920
|
|
|
6514
|
-
// node_modules/.bun/zod@4.3
|
|
6921
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
6515
6922
|
function km_default() {
|
|
6516
6923
|
return {
|
|
6517
|
-
localeError:
|
|
6924
|
+
localeError: error26()
|
|
6518
6925
|
};
|
|
6519
6926
|
}
|
|
6520
|
-
var
|
|
6927
|
+
var error26 = () => {
|
|
6521
6928
|
const Sizable = {
|
|
6522
6929
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
6523
6930
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -6625,7 +7032,7 @@ var init_km = __esm(() => {
|
|
|
6625
7032
|
init_util();
|
|
6626
7033
|
});
|
|
6627
7034
|
|
|
6628
|
-
// node_modules/.bun/zod@4.3
|
|
7035
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
6629
7036
|
function kh_default() {
|
|
6630
7037
|
return km_default();
|
|
6631
7038
|
}
|
|
@@ -6633,13 +7040,13 @@ var init_kh = __esm(() => {
|
|
|
6633
7040
|
init_km();
|
|
6634
7041
|
});
|
|
6635
7042
|
|
|
6636
|
-
// node_modules/.bun/zod@4.3
|
|
7043
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
6637
7044
|
function ko_default() {
|
|
6638
7045
|
return {
|
|
6639
|
-
localeError:
|
|
7046
|
+
localeError: error27()
|
|
6640
7047
|
};
|
|
6641
7048
|
}
|
|
6642
|
-
var
|
|
7049
|
+
var error27 = () => {
|
|
6643
7050
|
const Sizable = {
|
|
6644
7051
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
6645
7052
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -6748,7 +7155,7 @@ var init_ko = __esm(() => {
|
|
|
6748
7155
|
init_util();
|
|
6749
7156
|
});
|
|
6750
7157
|
|
|
6751
|
-
// node_modules/.bun/zod@4.3
|
|
7158
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
6752
7159
|
function getUnitTypeFromNumber(number2) {
|
|
6753
7160
|
const abs = Math.abs(number2);
|
|
6754
7161
|
const last = abs % 10;
|
|
@@ -6761,12 +7168,12 @@ function getUnitTypeFromNumber(number2) {
|
|
|
6761
7168
|
}
|
|
6762
7169
|
function lt_default() {
|
|
6763
7170
|
return {
|
|
6764
|
-
localeError:
|
|
7171
|
+
localeError: error28()
|
|
6765
7172
|
};
|
|
6766
7173
|
}
|
|
6767
7174
|
var capitalizeFirstCharacter = (text) => {
|
|
6768
7175
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
6769
|
-
},
|
|
7176
|
+
}, error28 = () => {
|
|
6770
7177
|
const Sizable = {
|
|
6771
7178
|
string: {
|
|
6772
7179
|
unit: {
|
|
@@ -6954,13 +7361,13 @@ var init_lt = __esm(() => {
|
|
|
6954
7361
|
init_util();
|
|
6955
7362
|
});
|
|
6956
7363
|
|
|
6957
|
-
// node_modules/.bun/zod@4.3
|
|
7364
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
6958
7365
|
function mk_default() {
|
|
6959
7366
|
return {
|
|
6960
|
-
localeError:
|
|
7367
|
+
localeError: error29()
|
|
6961
7368
|
};
|
|
6962
7369
|
}
|
|
6963
|
-
var
|
|
7370
|
+
var error29 = () => {
|
|
6964
7371
|
const Sizable = {
|
|
6965
7372
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
6966
7373
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7067,13 +7474,13 @@ var init_mk = __esm(() => {
|
|
|
7067
7474
|
init_util();
|
|
7068
7475
|
});
|
|
7069
7476
|
|
|
7070
|
-
// node_modules/.bun/zod@4.3
|
|
7477
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
7071
7478
|
function ms_default() {
|
|
7072
7479
|
return {
|
|
7073
|
-
localeError:
|
|
7480
|
+
localeError: error30()
|
|
7074
7481
|
};
|
|
7075
7482
|
}
|
|
7076
|
-
var
|
|
7483
|
+
var error30 = () => {
|
|
7077
7484
|
const Sizable = {
|
|
7078
7485
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
7079
7486
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -7178,13 +7585,13 @@ var init_ms = __esm(() => {
|
|
|
7178
7585
|
init_util();
|
|
7179
7586
|
});
|
|
7180
7587
|
|
|
7181
|
-
// node_modules/.bun/zod@4.3
|
|
7588
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
7182
7589
|
function nl_default() {
|
|
7183
7590
|
return {
|
|
7184
|
-
localeError:
|
|
7591
|
+
localeError: error31()
|
|
7185
7592
|
};
|
|
7186
7593
|
}
|
|
7187
|
-
var
|
|
7594
|
+
var error31 = () => {
|
|
7188
7595
|
const Sizable = {
|
|
7189
7596
|
string: { unit: "tekens", verb: "heeft" },
|
|
7190
7597
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -7292,13 +7699,13 @@ var init_nl = __esm(() => {
|
|
|
7292
7699
|
init_util();
|
|
7293
7700
|
});
|
|
7294
7701
|
|
|
7295
|
-
// node_modules/.bun/zod@4.3
|
|
7702
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
7296
7703
|
function no_default() {
|
|
7297
7704
|
return {
|
|
7298
|
-
localeError:
|
|
7705
|
+
localeError: error32()
|
|
7299
7706
|
};
|
|
7300
7707
|
}
|
|
7301
|
-
var
|
|
7708
|
+
var error32 = () => {
|
|
7302
7709
|
const Sizable = {
|
|
7303
7710
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
7304
7711
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -7404,13 +7811,13 @@ var init_no = __esm(() => {
|
|
|
7404
7811
|
init_util();
|
|
7405
7812
|
});
|
|
7406
7813
|
|
|
7407
|
-
// node_modules/.bun/zod@4.3
|
|
7814
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
7408
7815
|
function ota_default() {
|
|
7409
7816
|
return {
|
|
7410
|
-
localeError:
|
|
7817
|
+
localeError: error33()
|
|
7411
7818
|
};
|
|
7412
7819
|
}
|
|
7413
|
-
var
|
|
7820
|
+
var error33 = () => {
|
|
7414
7821
|
const Sizable = {
|
|
7415
7822
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
7416
7823
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -7517,13 +7924,13 @@ var init_ota = __esm(() => {
|
|
|
7517
7924
|
init_util();
|
|
7518
7925
|
});
|
|
7519
7926
|
|
|
7520
|
-
// node_modules/.bun/zod@4.3
|
|
7927
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
7521
7928
|
function ps_default() {
|
|
7522
7929
|
return {
|
|
7523
|
-
localeError:
|
|
7930
|
+
localeError: error34()
|
|
7524
7931
|
};
|
|
7525
7932
|
}
|
|
7526
|
-
var
|
|
7933
|
+
var error34 = () => {
|
|
7527
7934
|
const Sizable = {
|
|
7528
7935
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
7529
7936
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -7635,13 +8042,13 @@ var init_ps = __esm(() => {
|
|
|
7635
8042
|
init_util();
|
|
7636
8043
|
});
|
|
7637
8044
|
|
|
7638
|
-
// node_modules/.bun/zod@4.3
|
|
8045
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
7639
8046
|
function pl_default() {
|
|
7640
8047
|
return {
|
|
7641
|
-
localeError:
|
|
8048
|
+
localeError: error35()
|
|
7642
8049
|
};
|
|
7643
8050
|
}
|
|
7644
|
-
var
|
|
8051
|
+
var error35 = () => {
|
|
7645
8052
|
const Sizable = {
|
|
7646
8053
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
7647
8054
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -7748,13 +8155,13 @@ var init_pl = __esm(() => {
|
|
|
7748
8155
|
init_util();
|
|
7749
8156
|
});
|
|
7750
8157
|
|
|
7751
|
-
// node_modules/.bun/zod@4.3
|
|
8158
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
7752
8159
|
function pt_default() {
|
|
7753
8160
|
return {
|
|
7754
|
-
localeError:
|
|
8161
|
+
localeError: error36()
|
|
7755
8162
|
};
|
|
7756
8163
|
}
|
|
7757
|
-
var
|
|
8164
|
+
var error36 = () => {
|
|
7758
8165
|
const Sizable = {
|
|
7759
8166
|
string: { unit: "caracteres", verb: "ter" },
|
|
7760
8167
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -7860,7 +8267,130 @@ var init_pt = __esm(() => {
|
|
|
7860
8267
|
init_util();
|
|
7861
8268
|
});
|
|
7862
8269
|
|
|
7863
|
-
// node_modules/.bun/zod@4.3
|
|
8270
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
8271
|
+
function ro_default() {
|
|
8272
|
+
return {
|
|
8273
|
+
localeError: error37()
|
|
8274
|
+
};
|
|
8275
|
+
}
|
|
8276
|
+
var error37 = () => {
|
|
8277
|
+
const Sizable = {
|
|
8278
|
+
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
8279
|
+
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
8280
|
+
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8281
|
+
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8282
|
+
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
8283
|
+
};
|
|
8284
|
+
function getSizing(origin) {
|
|
8285
|
+
return Sizable[origin] ?? null;
|
|
8286
|
+
}
|
|
8287
|
+
const FormatDictionary = {
|
|
8288
|
+
regex: "intrare",
|
|
8289
|
+
email: "adres\u0103 de email",
|
|
8290
|
+
url: "URL",
|
|
8291
|
+
emoji: "emoji",
|
|
8292
|
+
uuid: "UUID",
|
|
8293
|
+
uuidv4: "UUIDv4",
|
|
8294
|
+
uuidv6: "UUIDv6",
|
|
8295
|
+
nanoid: "nanoid",
|
|
8296
|
+
guid: "GUID",
|
|
8297
|
+
cuid: "cuid",
|
|
8298
|
+
cuid2: "cuid2",
|
|
8299
|
+
ulid: "ULID",
|
|
8300
|
+
xid: "XID",
|
|
8301
|
+
ksuid: "KSUID",
|
|
8302
|
+
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
8303
|
+
date: "dat\u0103 ISO",
|
|
8304
|
+
time: "or\u0103 ISO",
|
|
8305
|
+
duration: "durat\u0103 ISO",
|
|
8306
|
+
ipv4: "adres\u0103 IPv4",
|
|
8307
|
+
ipv6: "adres\u0103 IPv6",
|
|
8308
|
+
mac: "adres\u0103 MAC",
|
|
8309
|
+
cidrv4: "interval IPv4",
|
|
8310
|
+
cidrv6: "interval IPv6",
|
|
8311
|
+
base64: "\u0219ir codat base64",
|
|
8312
|
+
base64url: "\u0219ir codat base64url",
|
|
8313
|
+
json_string: "\u0219ir JSON",
|
|
8314
|
+
e164: "num\u0103r E.164",
|
|
8315
|
+
jwt: "JWT",
|
|
8316
|
+
template_literal: "intrare"
|
|
8317
|
+
};
|
|
8318
|
+
const TypeDictionary = {
|
|
8319
|
+
nan: "NaN",
|
|
8320
|
+
string: "\u0219ir",
|
|
8321
|
+
number: "num\u0103r",
|
|
8322
|
+
boolean: "boolean",
|
|
8323
|
+
function: "func\u021Bie",
|
|
8324
|
+
array: "matrice",
|
|
8325
|
+
object: "obiect",
|
|
8326
|
+
undefined: "nedefinit",
|
|
8327
|
+
symbol: "simbol",
|
|
8328
|
+
bigint: "num\u0103r mare",
|
|
8329
|
+
void: "void",
|
|
8330
|
+
never: "never",
|
|
8331
|
+
map: "hart\u0103",
|
|
8332
|
+
set: "set"
|
|
8333
|
+
};
|
|
8334
|
+
return (issue2) => {
|
|
8335
|
+
switch (issue2.code) {
|
|
8336
|
+
case "invalid_type": {
|
|
8337
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8338
|
+
const receivedType = parsedType(issue2.input);
|
|
8339
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8340
|
+
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
8341
|
+
}
|
|
8342
|
+
case "invalid_value":
|
|
8343
|
+
if (issue2.values.length === 1)
|
|
8344
|
+
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
8345
|
+
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
8346
|
+
case "too_big": {
|
|
8347
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
8348
|
+
const sizing = getSizing(issue2.origin);
|
|
8349
|
+
if (sizing)
|
|
8350
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
8351
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
8352
|
+
}
|
|
8353
|
+
case "too_small": {
|
|
8354
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
8355
|
+
const sizing = getSizing(issue2.origin);
|
|
8356
|
+
if (sizing) {
|
|
8357
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
8358
|
+
}
|
|
8359
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
8360
|
+
}
|
|
8361
|
+
case "invalid_format": {
|
|
8362
|
+
const _issue = issue2;
|
|
8363
|
+
if (_issue.format === "starts_with") {
|
|
8364
|
+
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
8365
|
+
}
|
|
8366
|
+
if (_issue.format === "ends_with")
|
|
8367
|
+
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
8368
|
+
if (_issue.format === "includes")
|
|
8369
|
+
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
8370
|
+
if (_issue.format === "regex")
|
|
8371
|
+
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
8372
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8373
|
+
}
|
|
8374
|
+
case "not_multiple_of":
|
|
8375
|
+
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
8376
|
+
case "unrecognized_keys":
|
|
8377
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
8378
|
+
case "invalid_key":
|
|
8379
|
+
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8380
|
+
case "invalid_union":
|
|
8381
|
+
return "Intrare invalid\u0103";
|
|
8382
|
+
case "invalid_element":
|
|
8383
|
+
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8384
|
+
default:
|
|
8385
|
+
return `Intrare invalid\u0103`;
|
|
8386
|
+
}
|
|
8387
|
+
};
|
|
8388
|
+
};
|
|
8389
|
+
var init_ro = __esm(() => {
|
|
8390
|
+
init_util();
|
|
8391
|
+
});
|
|
8392
|
+
|
|
8393
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
7864
8394
|
function getRussianPlural(count, one, few, many) {
|
|
7865
8395
|
const absCount = Math.abs(count);
|
|
7866
8396
|
const lastDigit = absCount % 10;
|
|
@@ -7878,10 +8408,10 @@ function getRussianPlural(count, one, few, many) {
|
|
|
7878
8408
|
}
|
|
7879
8409
|
function ru_default() {
|
|
7880
8410
|
return {
|
|
7881
|
-
localeError:
|
|
8411
|
+
localeError: error38()
|
|
7882
8412
|
};
|
|
7883
8413
|
}
|
|
7884
|
-
var
|
|
8414
|
+
var error38 = () => {
|
|
7885
8415
|
const Sizable = {
|
|
7886
8416
|
string: {
|
|
7887
8417
|
unit: {
|
|
@@ -8020,13 +8550,13 @@ var init_ru = __esm(() => {
|
|
|
8020
8550
|
init_util();
|
|
8021
8551
|
});
|
|
8022
8552
|
|
|
8023
|
-
// node_modules/.bun/zod@4.3
|
|
8553
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
8024
8554
|
function sl_default() {
|
|
8025
8555
|
return {
|
|
8026
|
-
localeError:
|
|
8556
|
+
localeError: error39()
|
|
8027
8557
|
};
|
|
8028
8558
|
}
|
|
8029
|
-
var
|
|
8559
|
+
var error39 = () => {
|
|
8030
8560
|
const Sizable = {
|
|
8031
8561
|
string: { unit: "znakov", verb: "imeti" },
|
|
8032
8562
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -8133,13 +8663,13 @@ var init_sl = __esm(() => {
|
|
|
8133
8663
|
init_util();
|
|
8134
8664
|
});
|
|
8135
8665
|
|
|
8136
|
-
// node_modules/.bun/zod@4.3
|
|
8666
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
8137
8667
|
function sv_default() {
|
|
8138
8668
|
return {
|
|
8139
|
-
localeError:
|
|
8669
|
+
localeError: error40()
|
|
8140
8670
|
};
|
|
8141
8671
|
}
|
|
8142
|
-
var
|
|
8672
|
+
var error40 = () => {
|
|
8143
8673
|
const Sizable = {
|
|
8144
8674
|
string: { unit: "tecken", verb: "att ha" },
|
|
8145
8675
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -8247,13 +8777,13 @@ var init_sv = __esm(() => {
|
|
|
8247
8777
|
init_util();
|
|
8248
8778
|
});
|
|
8249
8779
|
|
|
8250
|
-
// node_modules/.bun/zod@4.3
|
|
8780
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
8251
8781
|
function ta_default() {
|
|
8252
8782
|
return {
|
|
8253
|
-
localeError:
|
|
8783
|
+
localeError: error41()
|
|
8254
8784
|
};
|
|
8255
8785
|
}
|
|
8256
|
-
var
|
|
8786
|
+
var error41 = () => {
|
|
8257
8787
|
const Sizable = {
|
|
8258
8788
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
8259
8789
|
file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -8361,13 +8891,13 @@ var init_ta = __esm(() => {
|
|
|
8361
8891
|
init_util();
|
|
8362
8892
|
});
|
|
8363
8893
|
|
|
8364
|
-
// node_modules/.bun/zod@4.3
|
|
8894
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
8365
8895
|
function th_default() {
|
|
8366
8896
|
return {
|
|
8367
|
-
localeError:
|
|
8897
|
+
localeError: error42()
|
|
8368
8898
|
};
|
|
8369
8899
|
}
|
|
8370
|
-
var
|
|
8900
|
+
var error42 = () => {
|
|
8371
8901
|
const Sizable = {
|
|
8372
8902
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
8373
8903
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -8475,13 +9005,13 @@ var init_th = __esm(() => {
|
|
|
8475
9005
|
init_util();
|
|
8476
9006
|
});
|
|
8477
9007
|
|
|
8478
|
-
// node_modules/.bun/zod@4.3
|
|
9008
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
8479
9009
|
function tr_default() {
|
|
8480
9010
|
return {
|
|
8481
|
-
localeError:
|
|
9011
|
+
localeError: error43()
|
|
8482
9012
|
};
|
|
8483
9013
|
}
|
|
8484
|
-
var
|
|
9014
|
+
var error43 = () => {
|
|
8485
9015
|
const Sizable = {
|
|
8486
9016
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
8487
9017
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -8584,13 +9114,13 @@ var init_tr = __esm(() => {
|
|
|
8584
9114
|
init_util();
|
|
8585
9115
|
});
|
|
8586
9116
|
|
|
8587
|
-
// node_modules/.bun/zod@4.3
|
|
9117
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
8588
9118
|
function uk_default() {
|
|
8589
9119
|
return {
|
|
8590
|
-
localeError:
|
|
9120
|
+
localeError: error44()
|
|
8591
9121
|
};
|
|
8592
9122
|
}
|
|
8593
|
-
var
|
|
9123
|
+
var error44 = () => {
|
|
8594
9124
|
const Sizable = {
|
|
8595
9125
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
8596
9126
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -8696,7 +9226,7 @@ var init_uk = __esm(() => {
|
|
|
8696
9226
|
init_util();
|
|
8697
9227
|
});
|
|
8698
9228
|
|
|
8699
|
-
// node_modules/.bun/zod@4.3
|
|
9229
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
8700
9230
|
function ua_default() {
|
|
8701
9231
|
return uk_default();
|
|
8702
9232
|
}
|
|
@@ -8704,13 +9234,13 @@ var init_ua = __esm(() => {
|
|
|
8704
9234
|
init_uk();
|
|
8705
9235
|
});
|
|
8706
9236
|
|
|
8707
|
-
// node_modules/.bun/zod@4.3
|
|
9237
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
8708
9238
|
function ur_default() {
|
|
8709
9239
|
return {
|
|
8710
|
-
localeError:
|
|
9240
|
+
localeError: error45()
|
|
8711
9241
|
};
|
|
8712
9242
|
}
|
|
8713
|
-
var
|
|
9243
|
+
var error45 = () => {
|
|
8714
9244
|
const Sizable = {
|
|
8715
9245
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
8716
9246
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -8818,18 +9348,19 @@ var init_ur = __esm(() => {
|
|
|
8818
9348
|
init_util();
|
|
8819
9349
|
});
|
|
8820
9350
|
|
|
8821
|
-
// node_modules/.bun/zod@4.3
|
|
9351
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
8822
9352
|
function uz_default() {
|
|
8823
9353
|
return {
|
|
8824
|
-
localeError:
|
|
9354
|
+
localeError: error46()
|
|
8825
9355
|
};
|
|
8826
9356
|
}
|
|
8827
|
-
var
|
|
9357
|
+
var error46 = () => {
|
|
8828
9358
|
const Sizable = {
|
|
8829
9359
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
8830
9360
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
8831
9361
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
8832
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
9362
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9363
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
8833
9364
|
};
|
|
8834
9365
|
function getSizing(origin) {
|
|
8835
9366
|
return Sizable[origin] ?? null;
|
|
@@ -8931,13 +9462,13 @@ var init_uz = __esm(() => {
|
|
|
8931
9462
|
init_util();
|
|
8932
9463
|
});
|
|
8933
9464
|
|
|
8934
|
-
// node_modules/.bun/zod@4.3
|
|
9465
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
8935
9466
|
function vi_default() {
|
|
8936
9467
|
return {
|
|
8937
|
-
localeError:
|
|
9468
|
+
localeError: error47()
|
|
8938
9469
|
};
|
|
8939
9470
|
}
|
|
8940
|
-
var
|
|
9471
|
+
var error47 = () => {
|
|
8941
9472
|
const Sizable = {
|
|
8942
9473
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
8943
9474
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -9043,13 +9574,13 @@ var init_vi = __esm(() => {
|
|
|
9043
9574
|
init_util();
|
|
9044
9575
|
});
|
|
9045
9576
|
|
|
9046
|
-
// node_modules/.bun/zod@4.3
|
|
9577
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
9047
9578
|
function zh_CN_default() {
|
|
9048
9579
|
return {
|
|
9049
|
-
localeError:
|
|
9580
|
+
localeError: error48()
|
|
9050
9581
|
};
|
|
9051
9582
|
}
|
|
9052
|
-
var
|
|
9583
|
+
var error48 = () => {
|
|
9053
9584
|
const Sizable = {
|
|
9054
9585
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
9055
9586
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -9156,13 +9687,13 @@ var init_zh_CN = __esm(() => {
|
|
|
9156
9687
|
init_util();
|
|
9157
9688
|
});
|
|
9158
9689
|
|
|
9159
|
-
// node_modules/.bun/zod@4.3
|
|
9690
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
9160
9691
|
function zh_TW_default() {
|
|
9161
9692
|
return {
|
|
9162
|
-
localeError:
|
|
9693
|
+
localeError: error49()
|
|
9163
9694
|
};
|
|
9164
9695
|
}
|
|
9165
|
-
var
|
|
9696
|
+
var error49 = () => {
|
|
9166
9697
|
const Sizable = {
|
|
9167
9698
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
9168
9699
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -9267,13 +9798,13 @@ var init_zh_TW = __esm(() => {
|
|
|
9267
9798
|
init_util();
|
|
9268
9799
|
});
|
|
9269
9800
|
|
|
9270
|
-
// node_modules/.bun/zod@4.3
|
|
9801
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
9271
9802
|
function yo_default() {
|
|
9272
9803
|
return {
|
|
9273
|
-
localeError:
|
|
9804
|
+
localeError: error50()
|
|
9274
9805
|
};
|
|
9275
9806
|
}
|
|
9276
|
-
var
|
|
9807
|
+
var error50 = () => {
|
|
9277
9808
|
const Sizable = {
|
|
9278
9809
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
9279
9810
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -9378,7 +9909,7 @@ var init_yo = __esm(() => {
|
|
|
9378
9909
|
init_util();
|
|
9379
9910
|
});
|
|
9380
9911
|
|
|
9381
|
-
// node_modules/.bun/zod@4.3
|
|
9912
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
9382
9913
|
var exports_locales = {};
|
|
9383
9914
|
__export(exports_locales, {
|
|
9384
9915
|
zhTW: () => zh_TW_default,
|
|
@@ -9395,6 +9926,7 @@ __export(exports_locales, {
|
|
|
9395
9926
|
sv: () => sv_default,
|
|
9396
9927
|
sl: () => sl_default,
|
|
9397
9928
|
ru: () => ru_default,
|
|
9929
|
+
ro: () => ro_default,
|
|
9398
9930
|
pt: () => pt_default,
|
|
9399
9931
|
ps: () => ps_default,
|
|
9400
9932
|
pl: () => pl_default,
|
|
@@ -9414,6 +9946,7 @@ __export(exports_locales, {
|
|
|
9414
9946
|
id: () => id_default,
|
|
9415
9947
|
hy: () => hy_default,
|
|
9416
9948
|
hu: () => hu_default,
|
|
9949
|
+
hr: () => hr_default,
|
|
9417
9950
|
he: () => he_default,
|
|
9418
9951
|
frCA: () => fr_CA_default,
|
|
9419
9952
|
fr: () => fr_default,
|
|
@@ -9422,6 +9955,7 @@ __export(exports_locales, {
|
|
|
9422
9955
|
es: () => es_default,
|
|
9423
9956
|
eo: () => eo_default,
|
|
9424
9957
|
en: () => en_default,
|
|
9958
|
+
el: () => el_default,
|
|
9425
9959
|
de: () => de_default,
|
|
9426
9960
|
da: () => da_default,
|
|
9427
9961
|
cs: () => cs_default,
|
|
@@ -9440,6 +9974,7 @@ var init_locales = __esm(() => {
|
|
|
9440
9974
|
init_cs();
|
|
9441
9975
|
init_da();
|
|
9442
9976
|
init_de();
|
|
9977
|
+
init_el();
|
|
9443
9978
|
init_en();
|
|
9444
9979
|
init_eo();
|
|
9445
9980
|
init_es();
|
|
@@ -9448,6 +9983,7 @@ var init_locales = __esm(() => {
|
|
|
9448
9983
|
init_fr();
|
|
9449
9984
|
init_fr_CA();
|
|
9450
9985
|
init_he();
|
|
9986
|
+
init_hr();
|
|
9451
9987
|
init_hu();
|
|
9452
9988
|
init_hy();
|
|
9453
9989
|
init_id();
|
|
@@ -9467,6 +10003,7 @@ var init_locales = __esm(() => {
|
|
|
9467
10003
|
init_ps();
|
|
9468
10004
|
init_pl();
|
|
9469
10005
|
init_pt();
|
|
10006
|
+
init_ro();
|
|
9470
10007
|
init_ru();
|
|
9471
10008
|
init_sl();
|
|
9472
10009
|
init_sv();
|
|
@@ -9483,7 +10020,7 @@ var init_locales = __esm(() => {
|
|
|
9483
10020
|
init_yo();
|
|
9484
10021
|
});
|
|
9485
10022
|
|
|
9486
|
-
// node_modules/.bun/zod@4.3
|
|
10023
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
9487
10024
|
class $ZodRegistry {
|
|
9488
10025
|
constructor() {
|
|
9489
10026
|
this._map = new WeakMap;
|
|
@@ -9527,15 +10064,15 @@ class $ZodRegistry {
|
|
|
9527
10064
|
function registry() {
|
|
9528
10065
|
return new $ZodRegistry;
|
|
9529
10066
|
}
|
|
9530
|
-
var
|
|
10067
|
+
var _a2, $output, $input, globalRegistry;
|
|
9531
10068
|
var init_registries = __esm(() => {
|
|
9532
10069
|
$output = Symbol("ZodOutput");
|
|
9533
10070
|
$input = Symbol("ZodInput");
|
|
9534
|
-
(
|
|
10071
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
9535
10072
|
globalRegistry = globalThis.__zod_globalRegistry;
|
|
9536
10073
|
});
|
|
9537
10074
|
|
|
9538
|
-
// node_modules/.bun/zod@4.3
|
|
10075
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
9539
10076
|
function _string(Class2, params) {
|
|
9540
10077
|
return new Class2({
|
|
9541
10078
|
type: "string",
|
|
@@ -10332,7 +10869,7 @@ function _refine(Class2, fn, _params) {
|
|
|
10332
10869
|
});
|
|
10333
10870
|
return schema;
|
|
10334
10871
|
}
|
|
10335
|
-
function _superRefine(fn) {
|
|
10872
|
+
function _superRefine(fn, params) {
|
|
10336
10873
|
const ch = _check((payload) => {
|
|
10337
10874
|
payload.addIssue = (issue2) => {
|
|
10338
10875
|
if (typeof issue2 === "string") {
|
|
@@ -10349,7 +10886,7 @@ function _superRefine(fn) {
|
|
|
10349
10886
|
}
|
|
10350
10887
|
};
|
|
10351
10888
|
return fn(payload.value, payload);
|
|
10352
|
-
});
|
|
10889
|
+
}, params);
|
|
10353
10890
|
return ch;
|
|
10354
10891
|
}
|
|
10355
10892
|
function _check(fn, params) {
|
|
@@ -10463,7 +11000,7 @@ var init_api = __esm(() => {
|
|
|
10463
11000
|
};
|
|
10464
11001
|
});
|
|
10465
11002
|
|
|
10466
|
-
// node_modules/.bun/zod@4.3
|
|
11003
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
10467
11004
|
function initializeContext(params) {
|
|
10468
11005
|
let target = params?.target ?? "draft-2020-12";
|
|
10469
11006
|
if (target === "draft-4")
|
|
@@ -10485,7 +11022,7 @@ function initializeContext(params) {
|
|
|
10485
11022
|
};
|
|
10486
11023
|
}
|
|
10487
11024
|
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
10488
|
-
var
|
|
11025
|
+
var _a3;
|
|
10489
11026
|
const def = schema._zod.def;
|
|
10490
11027
|
const seen = ctx.seen.get(schema);
|
|
10491
11028
|
if (seen) {
|
|
@@ -10532,8 +11069,8 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
10532
11069
|
delete result.schema.examples;
|
|
10533
11070
|
delete result.schema.default;
|
|
10534
11071
|
}
|
|
10535
|
-
if (ctx.io === "input" && result.schema
|
|
10536
|
-
(
|
|
11072
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
11073
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
10537
11074
|
delete result.schema._prefault;
|
|
10538
11075
|
const _result = ctx.seen.get(schema);
|
|
10539
11076
|
return _result.schema;
|
|
@@ -10710,10 +11247,15 @@ function finalize(ctx, schema) {
|
|
|
10710
11247
|
result.$id = ctx.external.uri(id);
|
|
10711
11248
|
}
|
|
10712
11249
|
Object.assign(result, root.def ?? root.schema);
|
|
11250
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
11251
|
+
if (rootMetaId !== undefined && result.id === rootMetaId)
|
|
11252
|
+
delete result.id;
|
|
10713
11253
|
const defs = ctx.external?.defs ?? {};
|
|
10714
11254
|
for (const entry of ctx.seen.entries()) {
|
|
10715
11255
|
const seen = entry[1];
|
|
10716
11256
|
if (seen.def && seen.defId) {
|
|
11257
|
+
if (seen.def.id === seen.defId)
|
|
11258
|
+
delete seen.def.id;
|
|
10717
11259
|
defs[seen.defId] = seen.def;
|
|
10718
11260
|
}
|
|
10719
11261
|
}
|
|
@@ -10768,6 +11310,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
10768
11310
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
10769
11311
|
}
|
|
10770
11312
|
if (def.type === "pipe") {
|
|
11313
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
11314
|
+
return true;
|
|
10771
11315
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
10772
11316
|
}
|
|
10773
11317
|
if (def.type === "object") {
|
|
@@ -10811,7 +11355,7 @@ var init_to_json_schema = __esm(() => {
|
|
|
10811
11355
|
init_registries();
|
|
10812
11356
|
});
|
|
10813
11357
|
|
|
10814
|
-
// node_modules/.bun/zod@4.3
|
|
11358
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
10815
11359
|
function toJSONSchema(input, params) {
|
|
10816
11360
|
if ("_idmap" in input) {
|
|
10817
11361
|
const registry2 = input;
|
|
@@ -10884,39 +11428,28 @@ var formatMap, stringProcessor = (schema, ctx, _json, _params) => {
|
|
|
10884
11428
|
json.type = "integer";
|
|
10885
11429
|
else
|
|
10886
11430
|
json.type = "number";
|
|
10887
|
-
|
|
10888
|
-
|
|
11431
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
11432
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
11433
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
11434
|
+
if (exMin) {
|
|
11435
|
+
if (legacy) {
|
|
10889
11436
|
json.minimum = exclusiveMinimum;
|
|
10890
11437
|
json.exclusiveMinimum = true;
|
|
10891
11438
|
} else {
|
|
10892
11439
|
json.exclusiveMinimum = exclusiveMinimum;
|
|
10893
11440
|
}
|
|
10894
|
-
}
|
|
10895
|
-
if (typeof minimum === "number") {
|
|
11441
|
+
} else if (typeof minimum === "number") {
|
|
10896
11442
|
json.minimum = minimum;
|
|
10897
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
10898
|
-
if (exclusiveMinimum >= minimum)
|
|
10899
|
-
delete json.minimum;
|
|
10900
|
-
else
|
|
10901
|
-
delete json.exclusiveMinimum;
|
|
10902
|
-
}
|
|
10903
11443
|
}
|
|
10904
|
-
if (
|
|
10905
|
-
if (
|
|
11444
|
+
if (exMax) {
|
|
11445
|
+
if (legacy) {
|
|
10906
11446
|
json.maximum = exclusiveMaximum;
|
|
10907
11447
|
json.exclusiveMaximum = true;
|
|
10908
11448
|
} else {
|
|
10909
11449
|
json.exclusiveMaximum = exclusiveMaximum;
|
|
10910
11450
|
}
|
|
10911
|
-
}
|
|
10912
|
-
if (typeof maximum === "number") {
|
|
11451
|
+
} else if (typeof maximum === "number") {
|
|
10913
11452
|
json.maximum = maximum;
|
|
10914
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
10915
|
-
if (exclusiveMaximum <= maximum)
|
|
10916
|
-
delete json.maximum;
|
|
10917
|
-
else
|
|
10918
|
-
delete json.exclusiveMaximum;
|
|
10919
|
-
}
|
|
10920
11453
|
}
|
|
10921
11454
|
if (typeof multipleOf === "number")
|
|
10922
11455
|
json.multipleOf = multipleOf;
|
|
@@ -11062,7 +11595,10 @@ var formatMap, stringProcessor = (schema, ctx, _json, _params) => {
|
|
|
11062
11595
|
if (typeof maximum === "number")
|
|
11063
11596
|
json.maxItems = maximum;
|
|
11064
11597
|
json.type = "array";
|
|
11065
|
-
json.items = process(def.element, ctx, {
|
|
11598
|
+
json.items = process(def.element, ctx, {
|
|
11599
|
+
...params,
|
|
11600
|
+
path: [...params.path, "items"]
|
|
11601
|
+
});
|
|
11066
11602
|
}, objectProcessor = (schema, ctx, _json, params) => {
|
|
11067
11603
|
const json = _json;
|
|
11068
11604
|
const def = schema._zod.def;
|
|
@@ -11244,7 +11780,8 @@ var formatMap, stringProcessor = (schema, ctx, _json, _params) => {
|
|
|
11244
11780
|
json.default = catchValue;
|
|
11245
11781
|
}, pipeProcessor = (schema, ctx, _json, params) => {
|
|
11246
11782
|
const def = schema._zod.def;
|
|
11247
|
-
const
|
|
11783
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
11784
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
11248
11785
|
process(innerType, ctx, params);
|
|
11249
11786
|
const seen = ctx.seen.get(schema);
|
|
11250
11787
|
seen.ref = innerType;
|
|
@@ -11323,7 +11860,7 @@ var init_json_schema_processors = __esm(() => {
|
|
|
11323
11860
|
};
|
|
11324
11861
|
});
|
|
11325
11862
|
|
|
11326
|
-
// node_modules/.bun/zod@4.3
|
|
11863
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
11327
11864
|
class JSONSchemaGenerator {
|
|
11328
11865
|
get metadataRegistry() {
|
|
11329
11866
|
return this.ctx.metadataRegistry;
|
|
@@ -11387,11 +11924,11 @@ var init_json_schema_generator = __esm(() => {
|
|
|
11387
11924
|
init_to_json_schema();
|
|
11388
11925
|
});
|
|
11389
11926
|
|
|
11390
|
-
// node_modules/.bun/zod@4.3
|
|
11927
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
11391
11928
|
var exports_json_schema = {};
|
|
11392
11929
|
var init_json_schema = () => {};
|
|
11393
11930
|
|
|
11394
|
-
// node_modules/.bun/zod@4.3
|
|
11931
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
11395
11932
|
var exports_core2 = {};
|
|
11396
11933
|
__export(exports_core2, {
|
|
11397
11934
|
version: () => version,
|
|
@@ -11590,6 +12127,7 @@ __export(exports_core2, {
|
|
|
11590
12127
|
$ZodRealError: () => $ZodRealError,
|
|
11591
12128
|
$ZodReadonly: () => $ZodReadonly,
|
|
11592
12129
|
$ZodPromise: () => $ZodPromise,
|
|
12130
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
11593
12131
|
$ZodPrefault: () => $ZodPrefault,
|
|
11594
12132
|
$ZodPipe: () => $ZodPipe,
|
|
11595
12133
|
$ZodOptional: () => $ZodOptional,
|
|
@@ -11687,7 +12225,7 @@ var init_core2 = __esm(() => {
|
|
|
11687
12225
|
init_to_json_schema();
|
|
11688
12226
|
});
|
|
11689
12227
|
|
|
11690
|
-
// node_modules/.bun/zod@4.3
|
|
12228
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
11691
12229
|
var exports_checks2 = {};
|
|
11692
12230
|
__export(exports_checks2, {
|
|
11693
12231
|
uppercase: () => _uppercase,
|
|
@@ -11724,7 +12262,7 @@ var init_checks2 = __esm(() => {
|
|
|
11724
12262
|
init_core2();
|
|
11725
12263
|
});
|
|
11726
12264
|
|
|
11727
|
-
// node_modules/.bun/zod@4.3
|
|
12265
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
11728
12266
|
var exports_iso = {};
|
|
11729
12267
|
__export(exports_iso, {
|
|
11730
12268
|
time: () => time2,
|
|
@@ -11770,7 +12308,7 @@ var init_iso = __esm(() => {
|
|
|
11770
12308
|
});
|
|
11771
12309
|
});
|
|
11772
12310
|
|
|
11773
|
-
// node_modules/.bun/zod@4.3
|
|
12311
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
11774
12312
|
var initializer2 = (inst, issues) => {
|
|
11775
12313
|
$ZodError.init(inst, issues);
|
|
11776
12314
|
inst.name = "ZodError";
|
|
@@ -11804,13 +12342,13 @@ var init_errors2 = __esm(() => {
|
|
|
11804
12342
|
init_core2();
|
|
11805
12343
|
init_core2();
|
|
11806
12344
|
init_util();
|
|
11807
|
-
ZodError = $constructor("ZodError", initializer2);
|
|
11808
|
-
ZodRealError = $constructor("ZodError", initializer2, {
|
|
12345
|
+
ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
12346
|
+
ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
11809
12347
|
Parent: Error
|
|
11810
12348
|
});
|
|
11811
12349
|
});
|
|
11812
12350
|
|
|
11813
|
-
// node_modules/.bun/zod@4.3
|
|
12351
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
11814
12352
|
var parse3, parseAsync2, safeParse2, safeParseAsync2, encode2, decode2, encodeAsync2, decodeAsync2, safeEncode2, safeDecode2, safeEncodeAsync2, safeDecodeAsync2;
|
|
11815
12353
|
var init_parse2 = __esm(() => {
|
|
11816
12354
|
init_core2();
|
|
@@ -11829,7 +12367,7 @@ var init_parse2 = __esm(() => {
|
|
|
11829
12367
|
safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
11830
12368
|
});
|
|
11831
12369
|
|
|
11832
|
-
// node_modules/.bun/zod@4.3
|
|
12370
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
11833
12371
|
var exports_schemas2 = {};
|
|
11834
12372
|
__export(exports_schemas2, {
|
|
11835
12373
|
xor: () => xor,
|
|
@@ -11889,6 +12427,7 @@ __export(exports_schemas2, {
|
|
|
11889
12427
|
json: () => json,
|
|
11890
12428
|
ipv6: () => ipv62,
|
|
11891
12429
|
ipv4: () => ipv42,
|
|
12430
|
+
invertCodec: () => invertCodec,
|
|
11892
12431
|
intersection: () => intersection,
|
|
11893
12432
|
int64: () => int64,
|
|
11894
12433
|
int32: () => int32,
|
|
@@ -11949,6 +12488,7 @@ __export(exports_schemas2, {
|
|
|
11949
12488
|
ZodRecord: () => ZodRecord,
|
|
11950
12489
|
ZodReadonly: () => ZodReadonly,
|
|
11951
12490
|
ZodPromise: () => ZodPromise,
|
|
12491
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
11952
12492
|
ZodPrefault: () => ZodPrefault,
|
|
11953
12493
|
ZodPipe: () => ZodPipe,
|
|
11954
12494
|
ZodOptional: () => ZodOptional,
|
|
@@ -11997,6 +12537,42 @@ __export(exports_schemas2, {
|
|
|
11997
12537
|
ZodArray: () => ZodArray,
|
|
11998
12538
|
ZodAny: () => ZodAny
|
|
11999
12539
|
});
|
|
12540
|
+
function _installLazyMethods(inst, group, methods) {
|
|
12541
|
+
const proto = Object.getPrototypeOf(inst);
|
|
12542
|
+
let installed = _installedGroups.get(proto);
|
|
12543
|
+
if (!installed) {
|
|
12544
|
+
installed = new Set;
|
|
12545
|
+
_installedGroups.set(proto, installed);
|
|
12546
|
+
}
|
|
12547
|
+
if (installed.has(group))
|
|
12548
|
+
return;
|
|
12549
|
+
installed.add(group);
|
|
12550
|
+
for (const key in methods) {
|
|
12551
|
+
const fn = methods[key];
|
|
12552
|
+
Object.defineProperty(proto, key, {
|
|
12553
|
+
configurable: true,
|
|
12554
|
+
enumerable: false,
|
|
12555
|
+
get() {
|
|
12556
|
+
const bound = fn.bind(this);
|
|
12557
|
+
Object.defineProperty(this, key, {
|
|
12558
|
+
configurable: true,
|
|
12559
|
+
writable: true,
|
|
12560
|
+
enumerable: true,
|
|
12561
|
+
value: bound
|
|
12562
|
+
});
|
|
12563
|
+
return bound;
|
|
12564
|
+
},
|
|
12565
|
+
set(v) {
|
|
12566
|
+
Object.defineProperty(this, key, {
|
|
12567
|
+
configurable: true,
|
|
12568
|
+
writable: true,
|
|
12569
|
+
enumerable: true,
|
|
12570
|
+
value: v
|
|
12571
|
+
});
|
|
12572
|
+
}
|
|
12573
|
+
});
|
|
12574
|
+
}
|
|
12575
|
+
}
|
|
12000
12576
|
function string2(params) {
|
|
12001
12577
|
return _string(ZodString, params);
|
|
12002
12578
|
}
|
|
@@ -12023,7 +12599,7 @@ function url(params) {
|
|
|
12023
12599
|
}
|
|
12024
12600
|
function httpUrl(params) {
|
|
12025
12601
|
return _url(ZodURL, {
|
|
12026
|
-
protocol:
|
|
12602
|
+
protocol: exports_regexes.httpProtocol,
|
|
12027
12603
|
hostname: exports_regexes.domain,
|
|
12028
12604
|
...exports_util.normalizeParams(params)
|
|
12029
12605
|
});
|
|
@@ -12220,6 +12796,14 @@ function tuple(items, _paramsOrRest, _params) {
|
|
|
12220
12796
|
});
|
|
12221
12797
|
}
|
|
12222
12798
|
function record(keyType, valueType, params) {
|
|
12799
|
+
if (!valueType || !valueType._zod) {
|
|
12800
|
+
return new ZodRecord({
|
|
12801
|
+
type: "record",
|
|
12802
|
+
keyType: string2(),
|
|
12803
|
+
valueType: keyType,
|
|
12804
|
+
...exports_util.normalizeParams(valueType)
|
|
12805
|
+
});
|
|
12806
|
+
}
|
|
12223
12807
|
return new ZodRecord({
|
|
12224
12808
|
type: "record",
|
|
12225
12809
|
keyType,
|
|
@@ -12370,6 +12954,16 @@ function codec(in_, out, params) {
|
|
|
12370
12954
|
reverseTransform: params.encode
|
|
12371
12955
|
});
|
|
12372
12956
|
}
|
|
12957
|
+
function invertCodec(codec2) {
|
|
12958
|
+
const def = codec2._zod.def;
|
|
12959
|
+
return new ZodCodec({
|
|
12960
|
+
type: "pipe",
|
|
12961
|
+
in: def.out,
|
|
12962
|
+
out: def.in,
|
|
12963
|
+
transform: def.reverseTransform,
|
|
12964
|
+
reverseTransform: def.transform
|
|
12965
|
+
});
|
|
12966
|
+
}
|
|
12373
12967
|
function readonly(innerType) {
|
|
12374
12968
|
return new ZodReadonly({
|
|
12375
12969
|
type: "readonly",
|
|
@@ -12415,8 +13009,8 @@ function custom(fn, _params) {
|
|
|
12415
13009
|
function refine(fn, _params = {}) {
|
|
12416
13010
|
return _refine(ZodCustom, fn, _params);
|
|
12417
13011
|
}
|
|
12418
|
-
function superRefine(fn) {
|
|
12419
|
-
return _superRefine(fn);
|
|
13012
|
+
function superRefine(fn, params) {
|
|
13013
|
+
return _superRefine(fn, params);
|
|
12420
13014
|
}
|
|
12421
13015
|
function _instanceof(cls, params = {}) {
|
|
12422
13016
|
const inst = new ZodCustom({
|
|
@@ -12447,9 +13041,13 @@ function json(params) {
|
|
|
12447
13041
|
return jsonSchema;
|
|
12448
13042
|
}
|
|
12449
13043
|
function preprocess(fn, schema) {
|
|
12450
|
-
return
|
|
13044
|
+
return new ZodPreprocess({
|
|
13045
|
+
type: "pipe",
|
|
13046
|
+
in: transform(fn),
|
|
13047
|
+
out: schema
|
|
13048
|
+
});
|
|
12451
13049
|
}
|
|
12452
|
-
var ZodType, _ZodString, ZodString, ZodStringFormat, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodMAC, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodCustomStringFormat, ZodNumber, ZodNumberFormat, ZodBoolean, ZodBigInt, ZodBigIntFormat, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodDate, ZodArray, ZodObject, ZodUnion, ZodXor, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodEnum, ZodLiteral, ZodFile, ZodTransform, ZodOptional, ZodExactOptional, ZodNullable, ZodDefault, ZodPrefault, ZodNonOptional, ZodSuccess, ZodCatch, ZodNaN, ZodPipe, ZodCodec, ZodReadonly, ZodTemplateLiteral, ZodLazy, ZodPromise, ZodFunction, ZodCustom, describe2, meta2, stringbool = (...args) => _stringbool({
|
|
13050
|
+
var _installedGroups, ZodType, _ZodString, ZodString, ZodStringFormat, ZodEmail, ZodGUID, ZodUUID, ZodURL, ZodEmoji, ZodNanoID, ZodCUID, ZodCUID2, ZodULID, ZodXID, ZodKSUID, ZodIPv4, ZodMAC, ZodIPv6, ZodCIDRv4, ZodCIDRv6, ZodBase64, ZodBase64URL, ZodE164, ZodJWT, ZodCustomStringFormat, ZodNumber, ZodNumberFormat, ZodBoolean, ZodBigInt, ZodBigIntFormat, ZodSymbol, ZodUndefined, ZodNull, ZodAny, ZodUnknown, ZodNever, ZodVoid, ZodDate, ZodArray, ZodObject, ZodUnion, ZodXor, ZodDiscriminatedUnion, ZodIntersection, ZodTuple, ZodRecord, ZodMap, ZodSet, ZodEnum, ZodLiteral, ZodFile, ZodTransform, ZodOptional, ZodExactOptional, ZodNullable, ZodDefault, ZodPrefault, ZodNonOptional, ZodSuccess, ZodCatch, ZodNaN, ZodPipe, ZodCodec, ZodPreprocess, ZodReadonly, ZodTemplateLiteral, ZodLazy, ZodPromise, ZodFunction, ZodCustom, describe2, meta2, stringbool = (...args) => _stringbool({
|
|
12453
13051
|
Codec: ZodCodec,
|
|
12454
13052
|
Boolean: ZodBoolean,
|
|
12455
13053
|
String: ZodString
|
|
@@ -12462,6 +13060,7 @@ var init_schemas2 = __esm(() => {
|
|
|
12462
13060
|
init_checks2();
|
|
12463
13061
|
init_iso();
|
|
12464
13062
|
init_parse2();
|
|
13063
|
+
_installedGroups = /* @__PURE__ */ new WeakMap;
|
|
12465
13064
|
ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12466
13065
|
$ZodType.init(inst, def);
|
|
12467
13066
|
Object.assign(inst["~standard"], {
|
|
@@ -12474,23 +13073,6 @@ var init_schemas2 = __esm(() => {
|
|
|
12474
13073
|
inst.def = def;
|
|
12475
13074
|
inst.type = def.type;
|
|
12476
13075
|
Object.defineProperty(inst, "_def", { value: def });
|
|
12477
|
-
inst.check = (...checks2) => {
|
|
12478
|
-
return inst.clone(exports_util.mergeDefs(def, {
|
|
12479
|
-
checks: [
|
|
12480
|
-
...def.checks ?? [],
|
|
12481
|
-
...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12482
|
-
]
|
|
12483
|
-
}), {
|
|
12484
|
-
parent: true
|
|
12485
|
-
});
|
|
12486
|
-
};
|
|
12487
|
-
inst.with = inst.check;
|
|
12488
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12489
|
-
inst.brand = () => inst;
|
|
12490
|
-
inst.register = (reg, meta2) => {
|
|
12491
|
-
reg.add(inst, meta2);
|
|
12492
|
-
return inst;
|
|
12493
|
-
};
|
|
12494
13076
|
inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
|
|
12495
13077
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
12496
13078
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -12504,45 +13086,108 @@ var init_schemas2 = __esm(() => {
|
|
|
12504
13086
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
12505
13087
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
12506
13088
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
12507
|
-
inst
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
13089
|
+
_installLazyMethods(inst, "ZodType", {
|
|
13090
|
+
check(...chks) {
|
|
13091
|
+
const def2 = this.def;
|
|
13092
|
+
return this.clone(exports_util.mergeDefs(def2, {
|
|
13093
|
+
checks: [
|
|
13094
|
+
...def2.checks ?? [],
|
|
13095
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
13096
|
+
]
|
|
13097
|
+
}), { parent: true });
|
|
13098
|
+
},
|
|
13099
|
+
with(...chks) {
|
|
13100
|
+
return this.check(...chks);
|
|
13101
|
+
},
|
|
13102
|
+
clone(def2, params) {
|
|
13103
|
+
return clone(this, def2, params);
|
|
13104
|
+
},
|
|
13105
|
+
brand() {
|
|
13106
|
+
return this;
|
|
13107
|
+
},
|
|
13108
|
+
register(reg, meta2) {
|
|
13109
|
+
reg.add(this, meta2);
|
|
13110
|
+
return this;
|
|
13111
|
+
},
|
|
13112
|
+
refine(check, params) {
|
|
13113
|
+
return this.check(refine(check, params));
|
|
13114
|
+
},
|
|
13115
|
+
superRefine(refinement, params) {
|
|
13116
|
+
return this.check(superRefine(refinement, params));
|
|
13117
|
+
},
|
|
13118
|
+
overwrite(fn) {
|
|
13119
|
+
return this.check(_overwrite(fn));
|
|
13120
|
+
},
|
|
13121
|
+
optional() {
|
|
13122
|
+
return optional(this);
|
|
13123
|
+
},
|
|
13124
|
+
exactOptional() {
|
|
13125
|
+
return exactOptional(this);
|
|
13126
|
+
},
|
|
13127
|
+
nullable() {
|
|
13128
|
+
return nullable(this);
|
|
13129
|
+
},
|
|
13130
|
+
nullish() {
|
|
13131
|
+
return optional(nullable(this));
|
|
13132
|
+
},
|
|
13133
|
+
nonoptional(params) {
|
|
13134
|
+
return nonoptional(this, params);
|
|
13135
|
+
},
|
|
13136
|
+
array() {
|
|
13137
|
+
return array(this);
|
|
13138
|
+
},
|
|
13139
|
+
or(arg) {
|
|
13140
|
+
return union([this, arg]);
|
|
13141
|
+
},
|
|
13142
|
+
and(arg) {
|
|
13143
|
+
return intersection(this, arg);
|
|
13144
|
+
},
|
|
13145
|
+
transform(tx) {
|
|
13146
|
+
return pipe(this, transform(tx));
|
|
13147
|
+
},
|
|
13148
|
+
default(d) {
|
|
13149
|
+
return _default2(this, d);
|
|
13150
|
+
},
|
|
13151
|
+
prefault(d) {
|
|
13152
|
+
return prefault(this, d);
|
|
13153
|
+
},
|
|
13154
|
+
catch(params) {
|
|
13155
|
+
return _catch2(this, params);
|
|
13156
|
+
},
|
|
13157
|
+
pipe(target) {
|
|
13158
|
+
return pipe(this, target);
|
|
13159
|
+
},
|
|
13160
|
+
readonly() {
|
|
13161
|
+
return readonly(this);
|
|
13162
|
+
},
|
|
13163
|
+
describe(description) {
|
|
13164
|
+
const cl = this.clone();
|
|
13165
|
+
globalRegistry.add(cl, { description });
|
|
13166
|
+
return cl;
|
|
13167
|
+
},
|
|
13168
|
+
meta(...args) {
|
|
13169
|
+
if (args.length === 0)
|
|
13170
|
+
return globalRegistry.get(this);
|
|
13171
|
+
const cl = this.clone();
|
|
13172
|
+
globalRegistry.add(cl, args[0]);
|
|
13173
|
+
return cl;
|
|
13174
|
+
},
|
|
13175
|
+
isOptional() {
|
|
13176
|
+
return this.safeParse(undefined).success;
|
|
13177
|
+
},
|
|
13178
|
+
isNullable() {
|
|
13179
|
+
return this.safeParse(null).success;
|
|
13180
|
+
},
|
|
13181
|
+
apply(fn) {
|
|
13182
|
+
return fn(this);
|
|
13183
|
+
}
|
|
13184
|
+
});
|
|
12529
13185
|
Object.defineProperty(inst, "description", {
|
|
12530
13186
|
get() {
|
|
12531
13187
|
return globalRegistry.get(inst)?.description;
|
|
12532
13188
|
},
|
|
12533
13189
|
configurable: true
|
|
12534
13190
|
});
|
|
12535
|
-
inst.meta = (...args) => {
|
|
12536
|
-
if (args.length === 0) {
|
|
12537
|
-
return globalRegistry.get(inst);
|
|
12538
|
-
}
|
|
12539
|
-
const cl = inst.clone();
|
|
12540
|
-
globalRegistry.add(cl, args[0]);
|
|
12541
|
-
return cl;
|
|
12542
|
-
};
|
|
12543
|
-
inst.isOptional = () => inst.safeParse(undefined).success;
|
|
12544
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
12545
|
-
inst.apply = (fn) => fn(inst);
|
|
12546
13191
|
return inst;
|
|
12547
13192
|
});
|
|
12548
13193
|
_ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -12553,21 +13198,53 @@ var init_schemas2 = __esm(() => {
|
|
|
12553
13198
|
inst.format = bag.format ?? null;
|
|
12554
13199
|
inst.minLength = bag.minimum ?? null;
|
|
12555
13200
|
inst.maxLength = bag.maximum ?? null;
|
|
12556
|
-
inst
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
|
|
12561
|
-
|
|
12562
|
-
|
|
12563
|
-
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
13201
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
13202
|
+
regex(...args) {
|
|
13203
|
+
return this.check(_regex(...args));
|
|
13204
|
+
},
|
|
13205
|
+
includes(...args) {
|
|
13206
|
+
return this.check(_includes(...args));
|
|
13207
|
+
},
|
|
13208
|
+
startsWith(...args) {
|
|
13209
|
+
return this.check(_startsWith(...args));
|
|
13210
|
+
},
|
|
13211
|
+
endsWith(...args) {
|
|
13212
|
+
return this.check(_endsWith(...args));
|
|
13213
|
+
},
|
|
13214
|
+
min(...args) {
|
|
13215
|
+
return this.check(_minLength(...args));
|
|
13216
|
+
},
|
|
13217
|
+
max(...args) {
|
|
13218
|
+
return this.check(_maxLength(...args));
|
|
13219
|
+
},
|
|
13220
|
+
length(...args) {
|
|
13221
|
+
return this.check(_length(...args));
|
|
13222
|
+
},
|
|
13223
|
+
nonempty(...args) {
|
|
13224
|
+
return this.check(_minLength(1, ...args));
|
|
13225
|
+
},
|
|
13226
|
+
lowercase(params) {
|
|
13227
|
+
return this.check(_lowercase(params));
|
|
13228
|
+
},
|
|
13229
|
+
uppercase(params) {
|
|
13230
|
+
return this.check(_uppercase(params));
|
|
13231
|
+
},
|
|
13232
|
+
trim() {
|
|
13233
|
+
return this.check(_trim());
|
|
13234
|
+
},
|
|
13235
|
+
normalize(...args) {
|
|
13236
|
+
return this.check(_normalize(...args));
|
|
13237
|
+
},
|
|
13238
|
+
toLowerCase() {
|
|
13239
|
+
return this.check(_toLowerCase());
|
|
13240
|
+
},
|
|
13241
|
+
toUpperCase() {
|
|
13242
|
+
return this.check(_toUpperCase());
|
|
13243
|
+
},
|
|
13244
|
+
slugify() {
|
|
13245
|
+
return this.check(_slugify());
|
|
13246
|
+
}
|
|
13247
|
+
});
|
|
12571
13248
|
});
|
|
12572
13249
|
ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12573
13250
|
$ZodString.init(inst, def);
|
|
@@ -12692,21 +13369,53 @@ var init_schemas2 = __esm(() => {
|
|
|
12692
13369
|
$ZodNumber.init(inst, def);
|
|
12693
13370
|
ZodType.init(inst, def);
|
|
12694
13371
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
12695
|
-
inst
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
13372
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
13373
|
+
gt(value, params) {
|
|
13374
|
+
return this.check(_gt(value, params));
|
|
13375
|
+
},
|
|
13376
|
+
gte(value, params) {
|
|
13377
|
+
return this.check(_gte(value, params));
|
|
13378
|
+
},
|
|
13379
|
+
min(value, params) {
|
|
13380
|
+
return this.check(_gte(value, params));
|
|
13381
|
+
},
|
|
13382
|
+
lt(value, params) {
|
|
13383
|
+
return this.check(_lt(value, params));
|
|
13384
|
+
},
|
|
13385
|
+
lte(value, params) {
|
|
13386
|
+
return this.check(_lte(value, params));
|
|
13387
|
+
},
|
|
13388
|
+
max(value, params) {
|
|
13389
|
+
return this.check(_lte(value, params));
|
|
13390
|
+
},
|
|
13391
|
+
int(params) {
|
|
13392
|
+
return this.check(int(params));
|
|
13393
|
+
},
|
|
13394
|
+
safe(params) {
|
|
13395
|
+
return this.check(int(params));
|
|
13396
|
+
},
|
|
13397
|
+
positive(params) {
|
|
13398
|
+
return this.check(_gt(0, params));
|
|
13399
|
+
},
|
|
13400
|
+
nonnegative(params) {
|
|
13401
|
+
return this.check(_gte(0, params));
|
|
13402
|
+
},
|
|
13403
|
+
negative(params) {
|
|
13404
|
+
return this.check(_lt(0, params));
|
|
13405
|
+
},
|
|
13406
|
+
nonpositive(params) {
|
|
13407
|
+
return this.check(_lte(0, params));
|
|
13408
|
+
},
|
|
13409
|
+
multipleOf(value, params) {
|
|
13410
|
+
return this.check(_multipleOf(value, params));
|
|
13411
|
+
},
|
|
13412
|
+
step(value, params) {
|
|
13413
|
+
return this.check(_multipleOf(value, params));
|
|
13414
|
+
},
|
|
13415
|
+
finite() {
|
|
13416
|
+
return this;
|
|
13417
|
+
}
|
|
13418
|
+
});
|
|
12710
13419
|
const bag = inst._zod.bag;
|
|
12711
13420
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
12712
13421
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -12799,11 +13508,23 @@ var init_schemas2 = __esm(() => {
|
|
|
12799
13508
|
ZodType.init(inst, def);
|
|
12800
13509
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
12801
13510
|
inst.element = def.element;
|
|
12802
|
-
inst
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
13511
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
13512
|
+
min(n, params) {
|
|
13513
|
+
return this.check(_minLength(n, params));
|
|
13514
|
+
},
|
|
13515
|
+
nonempty(params) {
|
|
13516
|
+
return this.check(_minLength(1, params));
|
|
13517
|
+
},
|
|
13518
|
+
max(n, params) {
|
|
13519
|
+
return this.check(_maxLength(n, params));
|
|
13520
|
+
},
|
|
13521
|
+
length(n, params) {
|
|
13522
|
+
return this.check(_length(n, params));
|
|
13523
|
+
},
|
|
13524
|
+
unwrap() {
|
|
13525
|
+
return this.element;
|
|
13526
|
+
}
|
|
13527
|
+
});
|
|
12807
13528
|
});
|
|
12808
13529
|
ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
12809
13530
|
$ZodObjectJIT.init(inst, def);
|
|
@@ -12812,23 +13533,47 @@ var init_schemas2 = __esm(() => {
|
|
|
12812
13533
|
exports_util.defineLazy(inst, "shape", () => {
|
|
12813
13534
|
return def.shape;
|
|
12814
13535
|
});
|
|
12815
|
-
inst
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
13536
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
13537
|
+
keyof() {
|
|
13538
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
13539
|
+
},
|
|
13540
|
+
catchall(catchall) {
|
|
13541
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
13542
|
+
},
|
|
13543
|
+
passthrough() {
|
|
13544
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13545
|
+
},
|
|
13546
|
+
loose() {
|
|
13547
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13548
|
+
},
|
|
13549
|
+
strict() {
|
|
13550
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
13551
|
+
},
|
|
13552
|
+
strip() {
|
|
13553
|
+
return this.clone({ ...this._zod.def, catchall: undefined });
|
|
13554
|
+
},
|
|
13555
|
+
extend(incoming) {
|
|
13556
|
+
return exports_util.extend(this, incoming);
|
|
13557
|
+
},
|
|
13558
|
+
safeExtend(incoming) {
|
|
13559
|
+
return exports_util.safeExtend(this, incoming);
|
|
13560
|
+
},
|
|
13561
|
+
merge(other) {
|
|
13562
|
+
return exports_util.merge(this, other);
|
|
13563
|
+
},
|
|
13564
|
+
pick(mask) {
|
|
13565
|
+
return exports_util.pick(this, mask);
|
|
13566
|
+
},
|
|
13567
|
+
omit(mask) {
|
|
13568
|
+
return exports_util.omit(this, mask);
|
|
13569
|
+
},
|
|
13570
|
+
partial(...args) {
|
|
13571
|
+
return exports_util.partial(ZodOptional, this, args[0]);
|
|
13572
|
+
},
|
|
13573
|
+
required(...args) {
|
|
13574
|
+
return exports_util.required(ZodNonOptional, this, args[0]);
|
|
13575
|
+
}
|
|
13576
|
+
});
|
|
12832
13577
|
});
|
|
12833
13578
|
ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
|
|
12834
13579
|
$ZodUnion.init(inst, def);
|
|
@@ -12972,10 +13717,12 @@ var init_schemas2 = __esm(() => {
|
|
|
12972
13717
|
if (output instanceof Promise) {
|
|
12973
13718
|
return output.then((output2) => {
|
|
12974
13719
|
payload.value = output2;
|
|
13720
|
+
payload.fallback = true;
|
|
12975
13721
|
return payload;
|
|
12976
13722
|
});
|
|
12977
13723
|
}
|
|
12978
13724
|
payload.value = output;
|
|
13725
|
+
payload.fallback = true;
|
|
12979
13726
|
return payload;
|
|
12980
13727
|
};
|
|
12981
13728
|
});
|
|
@@ -13045,6 +13792,10 @@ var init_schemas2 = __esm(() => {
|
|
|
13045
13792
|
ZodPipe.init(inst, def);
|
|
13046
13793
|
$ZodCodec.init(inst, def);
|
|
13047
13794
|
});
|
|
13795
|
+
ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
13796
|
+
ZodPipe.init(inst, def);
|
|
13797
|
+
$ZodPreprocess.init(inst, def);
|
|
13798
|
+
});
|
|
13048
13799
|
ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
13049
13800
|
$ZodReadonly.init(inst, def);
|
|
13050
13801
|
ZodType.init(inst, def);
|
|
@@ -13082,7 +13833,7 @@ var init_schemas2 = __esm(() => {
|
|
|
13082
13833
|
meta2 = meta;
|
|
13083
13834
|
});
|
|
13084
13835
|
|
|
13085
|
-
// node_modules/.bun/zod@4.3
|
|
13836
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
13086
13837
|
function setErrorMap(map2) {
|
|
13087
13838
|
config({
|
|
13088
13839
|
customError: map2
|
|
@@ -13110,7 +13861,7 @@ var init_compat = __esm(() => {
|
|
|
13110
13861
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
13111
13862
|
});
|
|
13112
13863
|
|
|
13113
|
-
// node_modules/.bun/zod@4.3
|
|
13864
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
13114
13865
|
function detectVersion(schema, defaultTarget) {
|
|
13115
13866
|
const $schema = schema.$schema;
|
|
13116
13867
|
if ($schema === "https://json-schema.org/draft/2020-12/schema") {
|
|
@@ -13426,12 +14177,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
13426
14177
|
default:
|
|
13427
14178
|
throw new Error(`Unsupported type: ${type}`);
|
|
13428
14179
|
}
|
|
13429
|
-
if (schema.description) {
|
|
13430
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
13431
|
-
}
|
|
13432
|
-
if (schema.default !== undefined) {
|
|
13433
|
-
zodSchema = zodSchema.default(schema.default);
|
|
13434
|
-
}
|
|
13435
14180
|
return zodSchema;
|
|
13436
14181
|
}
|
|
13437
14182
|
function convertSchema(schema, ctx) {
|
|
@@ -13468,6 +14213,9 @@ function convertSchema(schema, ctx) {
|
|
|
13468
14213
|
if (schema.readOnly === true) {
|
|
13469
14214
|
baseSchema = z.readonly(baseSchema);
|
|
13470
14215
|
}
|
|
14216
|
+
if (schema.default !== undefined) {
|
|
14217
|
+
baseSchema = baseSchema.default(schema.default);
|
|
14218
|
+
}
|
|
13471
14219
|
const extraMeta = {};
|
|
13472
14220
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
13473
14221
|
for (const key of coreMetadataKeys) {
|
|
@@ -13489,23 +14237,32 @@ function convertSchema(schema, ctx) {
|
|
|
13489
14237
|
if (Object.keys(extraMeta).length > 0) {
|
|
13490
14238
|
ctx.registry.add(baseSchema, extraMeta);
|
|
13491
14239
|
}
|
|
14240
|
+
if (schema.description) {
|
|
14241
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
14242
|
+
}
|
|
13492
14243
|
return baseSchema;
|
|
13493
14244
|
}
|
|
13494
14245
|
function fromJSONSchema(schema, params) {
|
|
13495
14246
|
if (typeof schema === "boolean") {
|
|
13496
14247
|
return schema ? z.any() : z.never();
|
|
13497
14248
|
}
|
|
13498
|
-
|
|
13499
|
-
|
|
14249
|
+
let normalized;
|
|
14250
|
+
try {
|
|
14251
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
14252
|
+
} catch {
|
|
14253
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
14254
|
+
}
|
|
14255
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
14256
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
13500
14257
|
const ctx = {
|
|
13501
14258
|
version: version2,
|
|
13502
14259
|
defs,
|
|
13503
14260
|
refs: new Map,
|
|
13504
14261
|
processing: new Set,
|
|
13505
|
-
rootSchema:
|
|
14262
|
+
rootSchema: normalized,
|
|
13506
14263
|
registry: params?.registry ?? globalRegistry
|
|
13507
14264
|
};
|
|
13508
|
-
return convertSchema(
|
|
14265
|
+
return convertSchema(normalized, ctx);
|
|
13509
14266
|
}
|
|
13510
14267
|
var z, RECOGNIZED_KEYS;
|
|
13511
14268
|
var init_from_json_schema = __esm(() => {
|
|
@@ -13518,7 +14275,7 @@ var init_from_json_schema = __esm(() => {
|
|
|
13518
14275
|
...exports_checks2,
|
|
13519
14276
|
iso: exports_iso
|
|
13520
14277
|
};
|
|
13521
|
-
RECOGNIZED_KEYS = new Set([
|
|
14278
|
+
RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
13522
14279
|
"$schema",
|
|
13523
14280
|
"$ref",
|
|
13524
14281
|
"$defs",
|
|
@@ -13579,7 +14336,7 @@ var init_from_json_schema = __esm(() => {
|
|
|
13579
14336
|
]);
|
|
13580
14337
|
});
|
|
13581
14338
|
|
|
13582
|
-
// node_modules/.bun/zod@4.3
|
|
14339
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
13583
14340
|
var exports_coerce = {};
|
|
13584
14341
|
__export(exports_coerce, {
|
|
13585
14342
|
string: () => string3,
|
|
@@ -13608,7 +14365,7 @@ var init_coerce = __esm(() => {
|
|
|
13608
14365
|
init_schemas2();
|
|
13609
14366
|
});
|
|
13610
14367
|
|
|
13611
|
-
// node_modules/.bun/zod@4.3
|
|
14368
|
+
// node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
13612
14369
|
var exports_external = {};
|
|
13613
14370
|
__export(exports_external, {
|
|
13614
14371
|
xor: () => xor,
|
|
@@ -13710,6 +14467,7 @@ __export(exports_external, {
|
|
|
13710
14467
|
iso: () => exports_iso,
|
|
13711
14468
|
ipv6: () => ipv62,
|
|
13712
14469
|
ipv4: () => ipv42,
|
|
14470
|
+
invertCodec: () => invertCodec,
|
|
13713
14471
|
intersection: () => intersection,
|
|
13714
14472
|
int64: () => int64,
|
|
13715
14473
|
int32: () => int32,
|
|
@@ -13788,6 +14546,7 @@ __export(exports_external, {
|
|
|
13788
14546
|
ZodRealError: () => ZodRealError,
|
|
13789
14547
|
ZodReadonly: () => ZodReadonly,
|
|
13790
14548
|
ZodPromise: () => ZodPromise,
|
|
14549
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
13791
14550
|
ZodPrefault: () => ZodPrefault,
|
|
13792
14551
|
ZodPipe: () => ZodPipe,
|
|
13793
14552
|
ZodOptional: () => ZodOptional,
|