cueframe 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analyze-KUAI3JNQ.js +2 -0
- package/dist/chunk-ZRBY7WBO.js +12 -0
- package/dist/cueframe.js +74 -73
- package/dist/skills/composing-video/SKILL.md +1 -1
- package/dist/skills/cueframe-brand-demo/SKILL.md +1 -1
- package/dist/skills/cueframe-cli/SKILL.md +46 -46
- package/dist/skills/cueframe-component-authoring/SKILL.md +62 -43
- package/dist/skills/cueframe-connect/SKILL.md +1 -1
- package/dist/skills/cueframe-product-video/SKILL.md +7 -7
- package/package.json +3 -3
- package/dist/analyze-Q6MIQWOJ.js +0 -2
- package/dist/chunk-U3YHQOER.js +0 -12
package/dist/cueframe.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{A as
|
|
2
|
+
import{A as B,B as ze,C as Je,D as me,E as vl,a as Be,b as gl,c as Pe,d as lt,e as xl,f as zl,g as bl,h as Gn,i as Jn,j as mt,k as Wt,l as yl,m as Bo,n as P,o as W,p as be,q as j,r as Zt,s as Sl,t as Kn,u as Hn,v as X,w as ge,x as ye,y as A,z as ee}from"./chunk-ZRBY7WBO.js";import{a as rt}from"./chunk-3QSA3EBY.js";import{Command as VSe}from"commander";import{existsSync as Zz}from"fs";import{homedir as Tl}from"os";import{dirname as Gz,join as Oa}from"path";import{fileURLToPath as Jz}from"url";import{agents as Kz,detectGlobalAgents as Cl,upsertServer as Hz}from"add-mcp";import{createHash as Az,randomUUID as Rl}from"crypto";import{chmodSync as Uz,existsSync as Nz,lstatSync as Ia,mkdirSync as va,readFileSync as Ml,readdirSync as Ol,renameSync as Ra,writeFileSync as wl}from"fs";import{dirname as Xn,join as Ye}from"path";var Ma=".cueframe-install.json";function $l(e){return Az("sha256").update(e).digest("hex")}function Il(e){let t=new Map;function i(a){let o=Ye(e,a),r=Ia(o);if(r.isSymbolicLink())throw new Error(`Skill package contains a symbolic link: ${o}`);if(r.isDirectory())for(let d of Ol(o).sort())!a&&d===Ma||i(a?`${a}/${d}`:d);else if(r.isFile())t.set(a,{bytes:Ml(o),mode:r.mode&511});else throw new Error(`Unsupported skill package entry: ${o}`)}return i(""),t}function wa(e){return Object.fromEntries([...e].map(([t,i])=>[t,`${i.mode}:${$l(i.bytes)}`]))}function qz(e,t){let i=Object.keys(e).sort();return JSON.stringify(i)===JSON.stringify(Object.keys(t).sort())&&i.every(a=>e[a]===t[a])}function Bz(e,t){try{let i=Ye(e,Ma);if(!Ia(i).isFile())return;let a=JSON.parse(Ml(i,"utf8"));return a.version!==1||typeof a.sourceHash!="string"||!a.files||!qz(a.files,wa(t))?void 0:a}catch{return}}function Wz(e,t){let i=`> Installed ${t} by \`npx -y cueframe install\`. Run it again to refresh
|
|
3
3
|
> unchanged managed skills. Locally edited or untracked packages are preserved;
|
|
4
4
|
> inspect reported conflicts before using \`--force\` (which makes a backup).
|
|
5
|
-
`,
|
|
6
|
-
${i}${e.slice(
|
|
7
|
-
${e}`}function
|
|
8
|
-
`),
|
|
9
|
-
`).map(
|
|
10
|
-
`)||
|
|
11
|
-
`;
|
|
5
|
+
`,a=e.match(/^---\r?\n[\s\S]*?\r?\n---\r?\n/);return a?`${a[0]}
|
|
6
|
+
${i}${e.slice(a[0].length)}`:`${i}
|
|
7
|
+
${e}`}function kl(e,t,i={}){let a={installed:[],unchanged:[],skipped:[],backups:[]},o=i.today??new Date().toISOString().slice(0,10),r=Ol(e).sort().flatMap(d=>{let p=Ye(e,d);if(!Nz(Ye(p,"SKILL.md")))return[];let f=Il(p),m=$l(JSON.stringify(wa(f))),g=f.get("SKILL.md");return f.set("SKILL.md",{...g,bytes:Buffer.from(Wz(g.bytes.toString("utf8"),o))}),[{name:d,files:f,sourceHash:m}]});for(let d of new Set(t))for(let{name:p,files:f,sourceHash:m}of r){let g=Ye(d,p),b=Ye(g,"SKILL.md"),S=!1;try{Ia(g),S=!0}catch(E){if(E.code!=="ENOENT")throw E}if(S&&!i.force){let E;try{E=Bz(g,Il(g))}catch{}if(!E){a.skipped.push(b);continue}if(E.sourceHash===m){a.unchanged.push(b);continue}}let R=Ye(Xn(d),"cueframe-skill-staging",`${p}-${Rl()}`);for(let[E,Z]of f){let U=Ye(R,E);va(Xn(U),{recursive:!0}),wl(U,Z.bytes),Uz(U,Z.mode)}let O={version:1,sourceHash:m,files:wa(f)};wl(Ye(R,Ma),JSON.stringify(O,null,2)+`
|
|
8
|
+
`),va(d,{recursive:!0});let k;S&&(k=Ye(Xn(d),"cueframe-skill-backups",`${p}-${Rl()}`),va(Xn(k),{recursive:!0}),Ra(g,k));try{Ra(R,g)}catch(E){throw k&&Ra(k,g),E}k&&a.backups.push({skill:b,path:k}),a.installed.push(b)}return a}var Yn="cueframe",Xz=Oa(Gz(Jz(import.meta.url)),"skills");function Yz(e){return(Kz[e]?.supportedTransports??[]).includes("http")}async function Qz(e){return(await Cl()).map(i=>{if(!Yz(i))return{agent:i,wired:!1,error:"speaks stdio only \u2014 CueFrame\u2019s MCP server is remote HTTP"};try{let a=Hz(i,Yn,{type:"http",url:e});return{agent:i,wired:a.success,path:a.path,error:a.error}}catch(a){return{agent:i,wired:!1,error:a instanceof Error?a.message:String(a)}}})}async function Dl(e,t=Xz){let i=`${Zt(e.target)}/v1/mcp`,a=[Oa(Tl(),".agents","skills"),Oa(Tl(),".claude","skills")];if(e.dryRun){let m=await Cl();ee(e,{ok:!0,dryRun:!0,mcpUrl:i,wouldWire:m,serverName:Yn,skillDirectories:a},()=>{console.log(`Would wire MCP server "${Yn}" \u2192 ${i} into:`),m.length===0&&console.log(" (no agents detected on this machine)");for(let g of m)console.log(` \u2192 ${g}`);console.log("Would install/refresh CueFrame skills in ~/.agents/skills and ~/.claude/skills"),console.log("Dry run \u2014 nothing was written.")});return}Zz(t)||(B(e,"install",new Error("Bundled skills/ directory not found"),P.UserError),j(P.UserError));let o=await Qz(i),{installed:r,unchanged:d,skipped:p,backups:f}=kl(t,a,e);r.length===0&&d.length===0&&p.length===0&&o.length===0&&(B(e,"install",new Error("No agents detected and no skills found \u2014 nothing to install"),P.UserError),j(P.UserError)),ee(e,{ok:!0,mcpUrl:i,agents:o,skills:r,unchanged:d,skipped:p,backups:f,skillDirectories:a},()=>{if(console.log(`\u2713 CueFrame MCP server (${i})`),o.length===0)console.log(" No agents detected on this machine. Add it manually:"),console.log(` claude mcp add --transport http ${Yn} ${i}`),console.log(` \u2026or add the MCP server ${i} as a custom connector.`);else for(let m of o)console.log(m.wired?` \u2192 wired ${m.agent}`:` \u2717 ${m.agent}: ${m.error??"failed"}`);if(console.log(`\u2713 Installed/refreshed ${r.length} CueFrame skill copies in ~/.agents/skills and ~/.claude/skills`),d.length>0&&console.log(` ${d.length} already current`),p.length>0){console.log(` ${p.length} preserved (locally changed or untracked; review before --force)`);for(let m of p)console.log(` ${m}`)}for(let m of f)console.log(` Backup: ${m.path}`);console.log(""),console.log("Next: ask your agent to make a video \u2014 it opens a browser to authorize on"),console.log("first call. No API key needed."),console.log("Restart your agent session to load the MCP server and skills."),console.log(""),console.log("This installed no `cueframe` binary \u2014 npx leaves nothing on your PATH."),console.log("Prefer the terminal? Every command runs as `npx -y cueframe \u2026`:"),console.log(" npx -y cueframe login")})}import{existsSync as $a,mkdirSync as eb,readFileSync as El,writeFileSync as ka}from"fs";import{join as Ta}from"path";var _l="cueframe.json",tb="cueframe/components",Qn=".cueframe/";function ob(e,t){let i=Ta(e,".gitignore");if($a(i)){let a=El(i,"utf8"),o=a.split(`
|
|
9
|
+
`).map(r=>r.trim());if(o.includes(Qn)||o.includes(".cueframe"))return!1;if(!t){let r=a.endsWith(`
|
|
10
|
+
`)||a.length===0?"":`
|
|
11
|
+
`;ka(i,`${a}${r}
|
|
12
12
|
# CueFrame derived render cache (regenerated; never authored)
|
|
13
|
-
${
|
|
14
|
-
`)}return!0}return t||
|
|
15
|
-
${
|
|
16
|
-
`),!0}function
|
|
17
|
-
`);let a=Wo(t,n),s=Bo(a);!s&&!i&&$h(a,{recursive:!0});let u=_h(t,i);Z(e,{ok:!0,dryRun:i,root:t,manifest:{path:o,created:!r},componentsDir:n,componentsDirCreated:!s,gitignoreUpdated:u},()=>{console.log(`\u2713 ${i?"Would initialize":"Initialized"} CueFrame workspace at ${t}`),console.log(` ${r?"kept":"created"} ${Jd} (componentsDir: ${n})`),console.log(` ${s?"exists":"created"} ${n}/`),u&&console.log(` gitignored ${_n}`),console.log("Next: cueframe new component <name>")})}import{existsSync as yk,mkdirSync as _k,readFileSync as bk,readdirSync as kk,writeFileSync as Hg}from"fs";import{join as Yg}from"path";import{existsSync as jo,readFileSync as ck,readdirSync as uk,statSync as lk}from"fs";import{dirname as dk,join as cr,parse as mk}from"path";var ln={};Te(ln,{$brand:()=>sa,$input:()=>Uc,$output:()=>Ec,INVALID:()=>me,NEVER:()=>aa,TimePrecision:()=>Vc,ZodAny:()=>Ol,ZodArray:()=>Al,ZodBase64:()=>$o,ZodBase64URL:()=>yo,ZodBigInt:()=>or,ZodBigIntFormat:()=>ko,ZodBoolean:()=>ir,ZodCIDRv4:()=>vo,ZodCIDRv6:()=>ho,ZodCUID:()=>co,ZodCUID2:()=>uo,ZodCatch:()=>td,ZodCodec:()=>on,ZodCompileAsyncError:()=>Pe,ZodCompileUnsupportedError:()=>L,ZodCreditCard:()=>kl,ZodCustom:()=>an,ZodCustomStringFormat:()=>yt,ZodDate:()=>Yr,ZodDefault:()=>ql,ZodDiscriminatedUnion:()=>Tl,ZodE164:()=>_o,ZodEmail:()=>io,ZodEmoji:()=>ao,ZodEnum:()=>tr,ZodError:()=>Tb,ZodExactOptional:()=>So,ZodFile:()=>Bl,ZodFirstPartyTypeKind:()=>gd,ZodFunction:()=>dd,ZodGUID:()=>oo,ZodIBAN:()=>xl,ZodIPv4:()=>po,ZodIPv6:()=>go,ZodISODate:()=>Qe,ZodISODateTime:()=>Ye,ZodISODuration:()=>tt,ZodISOTime:()=>et,ZodInstanceOf:()=>pd,ZodIntersection:()=>Cl,ZodIssueCode:()=>Zb,ZodJWT:()=>bo,ZodKSUID:()=>fo,ZodLazy:()=>cd,ZodLiteral:()=>Jl,ZodMAC:()=>bl,ZodMap:()=>Ml,ZodNaN:()=>nd,ZodNanoID:()=>so,ZodNever:()=>Ul,ZodNonOptional:()=>zo,ZodNull:()=>jl,ZodNullable:()=>Gl,ZodNumber:()=>nr,ZodNumberFormat:()=>_t,ZodObject:()=>en,ZodOptional:()=>rn,ZodPipe:()=>nn,ZodPrefault:()=>Hl,ZodPreprocess:()=>id,ZodPromise:()=>ld,ZodReadonly:()=>od,ZodRealError:()=>_e,ZodRecord:()=>er,ZodSet:()=>Vl,ZodString:()=>rr,ZodStringFormat:()=>K,ZodSuccess:()=>ed,ZodSymbol:()=>Sl,ZodTemplateLiteral:()=>sd,ZodTransform:()=>Kl,ZodTuple:()=>Zl,ZodType:()=>C,ZodULID:()=>lo,ZodURL:()=>Hr,ZodUUID:()=>Ne,ZodUndefined:()=>zl,ZodUnion:()=>tn,ZodUnknown:()=>El,ZodVoid:()=>Dl,ZodXID:()=>mo,ZodXor:()=>Nl,_ZodString:()=>no,_default:()=>Xl,_function:()=>zg,any:()=>ig,array:()=>Qr,base64:()=>Rp,base64url:()=>Zp,bigint:()=>Qp,boolean:()=>Il,catch:()=>rd,check:()=>jg,cidrv4:()=>Tp,cidrv6:()=>Cp,clone:()=>M,codec:()=>xg,coerce:()=>hd,compile:()=>Tc,config:()=>H,core:()=>Fe,creditCard:()=>Fp,cuid:()=>jp,cuid2:()=>Pp,currencyCode:()=>Wp,custom:()=>Pg,date:()=>ag,decode:()=>pl,decodeAsync:()=>vl,deepPartial:()=>Mg,describe:()=>Og,discriminatedUnion:()=>mg,e164:()=>Lp,email:()=>$p,emoji:()=>Sp,encode:()=>fl,encodeAsync:()=>gl,endsWith:()=>Vt,enum:()=>wo,exactOptional:()=>Wl,file:()=>yg,flattenError:()=>_r,float32:()=>qp,float64:()=>Xp,formatError:()=>br,fromJSONSchema:()=>Lg,function:()=>zg,getDiscriminatedOption:()=>oc,getErrorMap:()=>Fb,globalRegistry:()=>se,gt:()=>De,gte:()=>ke,guid:()=>yp,hash:()=>Gp,hex:()=>Kp,hostname:()=>Bp,httpUrl:()=>Ip,iban:()=>Mp,includes:()=>Ft,input:()=>Jg,instanceof:()=>Ug,int:()=>to,int32:()=>Hp,int64:()=>eg,intersection:()=>Rl,invertCodec:()=>wg,ipv4:()=>Dp,ipv6:()=>Np,iso:()=>sn,json:()=>Ag,jwt:()=>Vp,keyof:()=>sg,ksuid:()=>Up,lazy:()=>ud,length:()=>pt,literal:()=>$g,locales:()=>Fr,looseObject:()=>lg,looseRecord:()=>pg,lowercase:()=>Zt,lt:()=>Ue,lte:()=>be,mac:()=>Ap,map:()=>gg,maxLength:()=>ft,maxSize:()=>Ge,memoizer:()=>Zr,meta:()=>Eg,mime:()=>Bt,minLength:()=>Le,minSize:()=>Ae,multipleOf:()=>We,nan:()=>kg,nanoid:()=>zp,nativeEnum:()=>hg,negative:()=>Ji,never:()=>xo,nonnegative:()=>Ki,nonoptional:()=>Ql,nonpositive:()=>Bi,normalize:()=>Kt,null:()=>Pl,nullable:()=>Xr,nullish:()=>_g,number:()=>wl,object:()=>cg,optional:()=>ht,output:()=>Bg,overwrite:()=>Oe,parse:()=>ul,parseAsync:()=>ll,partialRecord:()=>fg,pipe:()=>ro,positive:()=>Vi,prefault:()=>Yl,preprocess:()=>Ng,prettifyError:()=>ma,promise:()=>Sg,properties:()=>Jt,property:()=>Wi,readonly:()=>ad,record:()=>Fl,refine:()=>md,regex:()=>Rt,regexes:()=>Se,registry:()=>$i,safeDecode:()=>$l,safeDecodeAsync:()=>_l,safeEncode:()=>hl,safeEncodeAsync:()=>yl,safeParse:()=>dl,safeParseAsync:()=>ml,set:()=>vg,setErrorMap:()=>Lb,size:()=>mt,slugify:()=>Xt,startsWith:()=>Mt,strictObject:()=>ug,string:()=>qr,stringFormat:()=>Jp,stringbool:()=>Dg,success:()=>bg,superRefine:()=>fd,symbol:()=>rg,templateLiteral:()=>Ig,toJSONSchema:()=>Hi,toLowerCase:()=>Gt,toUpperCase:()=>qt,toZod:()=>dr,transform:()=>Io,treeifyError:()=>da,trim:()=>Wt,tuple:()=>Ll,uint32:()=>Yp,uint64:()=>tg,ulid:()=>Op,undefined:()=>ng,union:()=>ar,unknown:()=>vt,uppercase:()=>Lt,url:()=>wp,util:()=>$,uuid:()=>_p,uuidv4:()=>bp,uuidv6:()=>kp,uuidv7:()=>xp,validate:()=>kr,validateAsync:()=>xr,void:()=>og,withParser:()=>yi,xid:()=>Ep,xor:()=>dg});var Fe={};Te(Fe,{$ZodAny:()=>Hs,$ZodArray:()=>rc,$ZodAsyncError:()=>$e,$ZodBase64:()=>Zs,$ZodBase64URL:()=>Ls,$ZodBigInt:()=>ii,$ZodBigIntFormat:()=>Ws,$ZodBoolean:()=>Dr,$ZodCIDRv4:()=>Cs,$ZodCIDRv6:()=>Rs,$ZodCUID:()=>Is,$ZodCUID2:()=>Ss,$ZodCatch:()=>bc,$ZodCheck:()=>W,$ZodCheckBigIntFormat:()=>Ya,$ZodCheckEndsWith:()=>ls,$ZodCheckGreaterThan:()=>Mn,$ZodCheckIncludes:()=>cs,$ZodCheckLengthEquals:()=>is,$ZodCheckLessThan:()=>Fn,$ZodCheckLowerCase:()=>as,$ZodCheckMaxLength:()=>rs,$ZodCheckMaxSize:()=>Qa,$ZodCheckMimeType:()=>fs,$ZodCheckMinLength:()=>ns,$ZodCheckMinSize:()=>es,$ZodCheckMultipleOf:()=>Xa,$ZodCheckNumberFormat:()=>Ha,$ZodCheckOverwrite:()=>ps,$ZodCheckProperties:()=>ms,$ZodCheckProperty:()=>ds,$ZodCheckRegex:()=>os,$ZodCheckSizeEquals:()=>ts,$ZodCheckStartsWith:()=>us,$ZodCheckStringFormat:()=>Dt,$ZodCheckUpperCase:()=>ss,$ZodCodec:()=>Nr,$ZodCreditCard:()=>Ms,$ZodCustom:()=>jc,$ZodCustomStringFormat:()=>Bs,$ZodCyclicError:()=>di,$ZodDate:()=>tc,$ZodDefault:()=>hc,$ZodDiscriminatedUnion:()=>ac,$ZodE164:()=>Fs,$ZodEmail:()=>ys,$ZodEmoji:()=>xs,$ZodEncodeError:()=>Ke,$ZodEnum:()=>dc,$ZodError:()=>la,$ZodExactOptional:()=>gc,$ZodFile:()=>fc,$ZodFunction:()=>Sc,$ZodGUID:()=>hs,$ZodIBAN:()=>Vs,$ZodIPv4:()=>As,$ZodIPv6:()=>Ns,$ZodISODate:()=>Es,$ZodISODateTime:()=>Os,$ZodISODuration:()=>Ds,$ZodISOTime:()=>Us,$ZodIntersection:()=>sc,$ZodJWT:()=>Js,$ZodKSUID:()=>Ps,$ZodLazy:()=>Tr,$ZodLiteral:()=>mc,$ZodMAC:()=>Ts,$ZodMap:()=>uc,$ZodNaN:()=>kc,$ZodNanoID:()=>ws,$ZodNever:()=>Qs,$ZodNonOptional:()=>yc,$ZodNull:()=>Xs,$ZodNullable:()=>vc,$ZodNumber:()=>ni,$ZodNumberFormat:()=>Ks,$ZodObject:()=>zm,$ZodObjectJIT:()=>nc,$ZodOptional:()=>ai,$ZodPipe:()=>si,$ZodPrefault:()=>$c,$ZodPreprocess:()=>xc,$ZodPromise:()=>zc,$ZodReadonly:()=>wc,$ZodRealError:()=>ye,$ZodRecord:()=>cc,$ZodRegistry:()=>hi,$ZodSet:()=>lc,$ZodString:()=>st,$ZodStringFormat:()=>V,$ZodSuccess:()=>_c,$ZodSymbol:()=>Gs,$ZodTemplateLiteral:()=>Ic,$ZodTransform:()=>pc,$ZodTuple:()=>oi,$ZodType:()=>N,$ZodULID:()=>zs,$ZodURL:()=>ks,$ZodUUID:()=>$s,$ZodUndefined:()=>qs,$ZodUnion:()=>Ar,$ZodUnknown:()=>Ys,$ZodVoid:()=>ec,$ZodXID:()=>js,$ZodXor:()=>ic,$brand:()=>sa,$constructor:()=>p,$input:()=>Uc,$output:()=>Ec,Doc:()=>at,INVALID:()=>me,JSONSchema:()=>gp,JSONSchemaGenerator:()=>Yi,NEVER:()=>aa,TimePrecision:()=>Vc,URL_BAD_FORMAT:()=>_s,URL_UNPARSEABLE:()=>jr,ZodCompileAsyncError:()=>Pe,ZodCompileUnsupportedError:()=>L,_any:()=>au,_array:()=>fu,_base64:()=>Zi,_base64url:()=>Li,_bigint:()=>Qc,_boolean:()=>Hc,_catch:()=>wb,_check:()=>Qf,_cidrv4:()=>Ci,_cidrv6:()=>Ri,_coercedBigint:()=>eu,_coercedBoolean:()=>Yc,_coercedDate:()=>du,_coercedNumber:()=>Bc,_coercedString:()=>Zc,_creditCard:()=>Fc,_cuid:()=>Oi,_cuid2:()=>Ei,_custom:()=>gu,_date:()=>lu,_decode:()=>On,_decodeAsync:()=>Un,_default:()=>bb,_discriminatedUnion:()=>ub,_e164:()=>Fi,_email:()=>ki,_emoji:()=>ji,_encode:()=>Pn,_encodeAsync:()=>En,_endsWith:()=>Vt,_enum:()=>gb,_file:()=>pu,_float32:()=>Wc,_float64:()=>Gc,_gt:()=>De,_gte:()=>ke,_guid:()=>xi,_iban:()=>Mc,_includes:()=>Ft,_int:()=>Kc,_int32:()=>qc,_int64:()=>tu,_intersection:()=>lb,_ipv4:()=>Ni,_ipv6:()=>Ti,_isoDate:()=>Jr,_isoDateTime:()=>Vr,_isoDuration:()=>Kr,_isoTime:()=>Br,_jwt:()=>Mi,_ksuid:()=>Ai,_lazy:()=>jb,_length:()=>pt,_literal:()=>hb,_lowercase:()=>Zt,_lt:()=>Ue,_lte:()=>be,_mac:()=>Lc,_map:()=>fb,_max:()=>be,_maxLength:()=>ft,_maxSize:()=>Ge,_mime:()=>Bt,_min:()=>ke,_minLength:()=>Le,_minSize:()=>Ae,_multipleOf:()=>We,_nan:()=>mu,_nanoid:()=>Pi,_nativeEnum:()=>vb,_negative:()=>Ji,_never:()=>cu,_nonnegative:()=>Ki,_nonoptional:()=>kb,_nonpositive:()=>Bi,_normalize:()=>Kt,_null:()=>ou,_nullable:()=>_b,_number:()=>Jc,_optional:()=>yb,_overwrite:()=>Oe,_parse:()=>Pt,_parseAsync:()=>Ot,_pipe:()=>Ib,_positive:()=>Vi,_promise:()=>Pb,_properties:()=>Jt,_property:()=>Wi,_readonly:()=>Sb,_record:()=>mb,_refine:()=>vu,_regex:()=>Rt,_safeDecode:()=>An,_safeDecodeAsync:()=>Tn,_safeEncode:()=>Dn,_safeEncodeAsync:()=>Nn,_safeParse:()=>Et,_safeParseAsync:()=>Ut,_set:()=>pb,_size:()=>mt,_slugify:()=>Xt,_startsWith:()=>Mt,_string:()=>Rc,_stringFormat:()=>gt,_stringbool:()=>_u,_success:()=>xb,_superRefine:()=>hu,_symbol:()=>nu,_templateLiteral:()=>zb,_toLowerCase:()=>Gt,_toUpperCase:()=>qt,_transform:()=>$b,_trim:()=>Wt,_tuple:()=>db,_uint32:()=>Xc,_uint64:()=>ru,_ulid:()=>Ui,_undefined:()=>iu,_union:()=>sb,_unknown:()=>su,_uppercase:()=>Lt,_url:()=>Mr,_uuid:()=>wi,_uuidv4:()=>Ii,_uuidv6:()=>Si,_uuidv7:()=>zi,_void:()=>uu,_xid:()=>Di,_xor:()=>cb,base64Charset:()=>Yn,base64urlCharset:()=>Ur,canParseURL:()=>bs,clone:()=>M,compile:()=>Tc,compileFn:()=>_i,config:()=>H,createStandardJSONSchemaMethod:()=>Ht,createToJSONSchemaMethod:()=>ku,decode:()=>d$,decodeAsync:()=>f$,describe:()=>$u,encode:()=>l$,encodeAsync:()=>m$,extractDefs:()=>Xe,finalize:()=>He,flattenError:()=>_r,formatError:()=>br,getDiscriminatedOption:()=>oc,globalConfig:()=>ie,globalRegistry:()=>se,handleUnrepresentable:()=>te,initializeContext:()=>qe,isBackEdge:()=>fi,isRecursiveSchema:()=>mi,isValidBase64:()=>Er,isValidBase64URL:()=>Qn,isValidCIDRv6:()=>Hn,isValidCreditCard:()=>ei,isValidIBAN:()=>ti,isValidIPv6:()=>Or,isValidJWT:()=>ri,locales:()=>Fr,memoizer:()=>Zr,mergeValues:()=>At,meta:()=>yu,parse:()=>zn,parseAsync:()=>jn,parseURLObject:()=>wm,prettifyError:()=>ma,process:()=>J,processSchema:()=>J,regexes:()=>Se,registry:()=>$i,safeDecode:()=>g$,safeDecodeAsync:()=>h$,safeEncode:()=>p$,safeEncodeAsync:()=>v$,safeParse:()=>o$,safeParseAsync:()=>a$,standardProps:()=>Wn,stripTabAndNewline:()=>Pr,toDotPath:()=>nm,toJSONSchema:()=>Hi,toZod:()=>dr,treeifyError:()=>da,urlHostnameOk:()=>qn,urlProtocolOk:()=>Xn,util:()=>$,validate:()=>kr,validateAsync:()=>xr,validateURL:()=>Gn,version:()=>gs,withParser:()=>yi});var $={};Te($,{BIGINT_FORMAT_RANGES:()=>vr,CONSTANT_CATCH:()=>In,Class:()=>Xo,NUMBER_FORMAT_RANGES:()=>gr,aborted:()=>de,allowsEval:()=>Qo,assert:()=>Ih,assertEqual:()=>bh,assertIs:()=>xh,assertNever:()=>wh,assertNotEqual:()=>kh,assignProp:()=>ae,attachSchema:()=>wn,base64ToUint8Array:()=>Hd,base64urlToUint8Array:()=>Jh,cached:()=>St,captureStackTrace:()=>kn,cleanEnum:()=>Vh,cleanRegex:()=>Re,clone:()=>M,cloneDef:()=>jh,codePointLength:()=>it,constantCatch:()=>ia,createTransparentProxy:()=>Ah,defineLazy:()=>Ho,defineLazyInternal:()=>R,derived:()=>Gh,esc:()=>le,escapeRegex:()=>Ie,explicitlyAborted:()=>ra,extend:()=>Ch,finalizeIssue:()=>he,floatSafeRemainder:()=>mr,getElementAtPath:()=>Ph,getEnumValues:()=>wt,getLengthableOrigin:()=>$r,getParsedType:()=>Dh,getSizableOrigin:()=>hr,hexToUint8Array:()=>Kh,hide:()=>yr,installLazyProp:()=>Yh,isObject:()=>nt,isPlainObject:()=>we,issue:()=>jt,joinValues:()=>g,jsonStringifyReplacer:()=>It,members:()=>na,merge:()=>Zh,mergeDefs:()=>je,normalizeParams:()=>w,nullish:()=>bn,numKeys:()=>Uh,objectClone:()=>Sh,omit:()=>Th,optionalKeys:()=>ta,own:()=>Be,parsedType:()=>_,partial:()=>Lh,pick:()=>Nh,prefixIssues:()=>ve,primitiveTypes:()=>ea,promiseAllObject:()=>Oh,propertyKeyTypes:()=>pr,randomString:()=>Eh,rawShape:()=>zt,required:()=>Fh,safeExtend:()=>Rh,shallowClone:()=>fr,slugify:()=>Yo,stringifyPrimitive:()=>y,toZod:()=>dr,uint8ArrayToBase64:()=>Yd,uint8ArrayToBase64url:()=>Bh,uint8ArrayToHex:()=>Wh,unwrapMessage:()=>xt});function bh(e){return e}function kh(e){return e}function dr(){return e=>e}function xh(e){}function wh(e){throw new Error("Unexpected value in exhaustive check")}function Ih(e){}function wt(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function g(e,t="|"){return e.map(i=>y(i)).join(t)}function It(e,t){return typeof t=="bigint"?t.toString():t}var qo=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function St(e){return new qo(e)}function bn(e){return e==null}function Re(e){let t=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(t,i)}function mr(e,t){let i=e/t,o=Math.round(i),r=4*Number.EPSILON*Math.max(Math.abs(i),1);return Math.abs(i-o)<r?0:i-o}var Wd=Symbol("evaluating");function Ho(e,t,i){let o;Object.defineProperty(e,t,{get(){if(o!==Wd)return o===void 0&&(o=Wd,o=i()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Sh(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ae(e,t,i){Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}function zt(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function Ce(e){return zt(e._zod.def)??e._zod.def.shape}function Gd(e,t,i){Object.defineProperty(e,t,{get(){let o=i();return ae(this,t,o),o},enumerable:!0,configurable:!0})}function qd(e,t,i){t in e?ae(e,t,i):e[t]=i}function rt(e,t,i,o){let r=Ce(t);for(let n of i){let a=Object.getOwnPropertyDescriptor(r,n);a.enumerable&&(a.get?Gd(e,n,()=>{let s=t._zod.def.shape[n];return o?o(s,n):s}):qd(e,n,o?o(a.value,n):a.value))}}function zh(e,t){for(let i of Reflect.ownKeys(t)){let o=Object.getOwnPropertyDescriptor(t,i);o.enumerable&&(o.get?Gd(e,i,()=>t[i]):qd(e,i,o.value))}}function je(...e){let t={};for(let i of e){let o=Object.getOwnPropertyDescriptors(i);Object.assign(t,o)}return Object.defineProperties({},t)}function jh(e){return je(e._zod.def)}function Ph(e,t){return t?t.reduce((i,o)=>i?.[o],e):e}function Oh(e){let t=Object.keys(e),i=t.map(o=>e[o]);return Promise.all(i).then(o=>{let r={};for(let n=0;n<t.length;n++)r[t[n]]=o[n];return r})}function Eh(e=10){let t="abcdefghijklmnopqrstuvwxyz",i="";for(let o=0;o<e;o++)i+=t[Math.floor(Math.random()*t.length)];return i}function le(e){return JSON.stringify(e)}function Yo(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var kn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function nt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Qo=St(()=>{if(ie.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function we(e){if(nt(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let i=t.prototype;return!(nt(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function fr(e){return we(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Uh(e){let t=0;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t++;return t}var Dh=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},pr=new Set(["string","number","symbol"]),ea=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ie(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t,i){let o=new e._zod.constr(t??e._zod.def);return(!t||i?.parent)&&(o._zod.parent=e),o}function w(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Ah(e){let t;return new Proxy({},{get(i,o,r){return t??(t=e()),Reflect.get(t,o,r)},set(i,o,r,n){return t??(t=e()),Reflect.set(t,o,r,n)},has(i,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(i,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(i){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(i,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(i,o,r){return t??(t=e()),Reflect.defineProperty(t,o,r)}})}function y(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ta(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var gr={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},vr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Nh(e,t){let i=e._zod.def,o=i.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let n={};return rt(n,e,xn(e,t)),M(e,je(i,{shape:n,checks:[]}))}function xn(e,t){let i=Ce(e),o=[];for(let r of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(i,r)?.enumerable)throw new Error(`Unrecognized key: "${String(r)}"`);t[r]&&o.push(r)}return o}function Th(e,t){let i=e._zod.def,o=i.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let n=new Set(xn(e,t)),a={};return rt(a,e,Reflect.ownKeys(Ce(e)).filter(s=>!n.has(s))),M(e,je(i,{shape:a,checks:[]}))}function Ch(e,t){if(!we(t))throw new Error("Invalid input to extend: expected a plain object");let i=e._zod.def.checks;if(i&&i.length>0){let r=Ce(e);for(let n of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,n)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return M(e,je(e._zod.def,{shape:Xd(e,t)}))}function Xd(e,t){let i={};return rt(i,e,Reflect.ownKeys(Ce(e))),zh(i,t),i}function Rh(e,t){if(!we(t))throw new Error("Invalid input to safeExtend: expected a plain object");return M(e,je(e._zod.def,{shape:Xd(e,t)}))}function Zh(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let i={};rt(i,e,Reflect.ownKeys(Ce(e))),rt(i,t,Reflect.ownKeys(Ce(t)));let o=je(e._zod.def,{shape:i,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return M(e,o)}function Lh(e,t,i,o="partial"){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(`.${o}() cannot be used on object schemas containing refinements`);let s=i?new Set(xn(t,i)):void 0,u={};return rt(u,t,Reflect.ownKeys(Ce(t)),e&&((c,l)=>s&&!s.has(l)?c:new e({type:"optional",innerType:c}))),M(t,je(t._zod.def,{shape:u,checks:[]}))}function Fh(e,t,i){let o=i?new Set(xn(t,i)):void 0,r={};return rt(r,t,Reflect.ownKeys(Ce(t)),(n,a)=>o&&!o.has(a)?n:new e({type:"nonoptional",innerType:n})),M(t,je(t._zod.def,{shape:r}))}function de(e,t=0){if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue!==!0)return!0;return!1}function ra(e,t=0){if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue===!1)return!0;return!1}function ve(e,t){return t.map(i=>{var o;return(o=i).path??(o.path=[]),i.path.unshift(e),i})}function xt(e){return typeof e=="string"?e:e?.message}function wn(e,t,i){var o;for(let r=t;r<e.length;r++)(o=e[r]).schema??(o.schema=i)}function he(e,t,i){var o;let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(o=e).schema??(o.schema=e.inst):e.schema=e.inst);let n=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:xt(e.inst?._zod.def?.error?.(e))??xt(n?.(e))??xt(t?.error?.(e))??xt(i.customError?.(e))??xt(i.localeError?.(e))??"Invalid input",s={};for(let u of Object.keys(e))u==="inst"||u==="schema"||u==="continue"||u==="input"||u==="__proto__"||(s[u]=e[u]);return s.path??(s.path=[]),s.message=a,t?.reportInput&&(s.input=e.input),s}function hr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Mh=/[\uD800-\uDBFF]/;function it(e){let t=e.length;if(!Mh.test(e))return t;let i=t;for(let o=0;o<t-1;o++)(e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320&&(i--,o++);return i}function $r(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let i=e;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return t}function jt(...e){let[t,i,o]=e;return typeof t=="string"?{message:t,code:"custom",input:i,inst:o}:{...t}}function Vh(e){return Object.entries(e).filter(([t,i])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Hd(e){let t=atob(e),i=new Uint8Array(t.length);for(let o=0;o<t.length;o++)i[o]=t.charCodeAt(o);return i}function Yd(e){let t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return btoa(t)}function Jh(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),i="=".repeat((4-t.length%4)%4);return Hd(t+i)}function Bh(e){return Yd(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Kh(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let i=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)i[o/2]=Number.parseInt(t.slice(o,o+2),16);return i}function Wh(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Xo=class{constructor(...t){}};function na(e,t){for(let i in t){let o=Object.getOwnPropertyDescriptor(t,i);o.get?Object.defineProperty(e,i,{...o,enumerable:!1}):qh(e,i,o.value)}}function Be(e,t,i,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:i}),i}function yr(e,t,i){return Be(e,t,i,!1)}function Gh(e,t){for(let i in e){let o=e[i];Object.defineProperty(t,i,{configurable:!0,enumerable:!0,get(){return Be(this,i,o(this))},set(r){Be(this,i,r)}})}return t}function qh(e,t,i){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?i:Be(this,t,i.bind(this))},set(o){Be(this,t,o)}})}function Xh(e,t){let i=Object.getPrototypeOf(e);return t in i?void 0:i}var Go,Je=!1,Hh={configurable:!0,get(){Je=!0}};function R(e,t,i){let o=Object.getPrototypeOf(e._zod);if(t in o&&Go!==e._zod){Go=void 0;return}Go=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,Hh);let r=Je;Je=!1;try{let n=i(this);return Je?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n}),Je=Je||r,n}catch(n){throw delete this[t],Je=Je||r,n}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}function Yh(e,t,i,o){let r=Xh(e,t);r&&Object.defineProperty(r,t,{configurable:!0,get(){let n={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,n),n.value=i(this),Object.defineProperty(this,t,n),n.value},set(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:n})}})}var In="~constantCatch";function ia(e){let t=()=>e;return t[In]=!0,t}var Qd,aa=Object.freeze({status:"aborted"}),oa={value:void 0,enumerable:!1},em="captureStackTrace"in Error?Error:null;function Qh(e){let t=em;if(t){let i=t.stackTraceLimit;if(typeof i=="number"){try{t.stackTraceLimit=0}catch{return em=null,new e}try{return new e}finally{t.stackTraceLimit=i}}}return new e}function p(e,t,i,o){let r={};function n(m){this.def=m,this.constr=d,this.traits=new Set}n.prototype=r;let a=i,s=a&&new WeakSet;function u(m,f){if(m._zod){if(m._zod.traits.has(e))return}else{oa.value=new n(f);try{Object.defineProperty(m,"_zod",oa)}finally{oa.value=void 0}}if(m._zod.traits.add(e),t(m,f),s){let h=Object.getPrototypeOf(m),b=m._zod.constr.prototype,E=h;for(;E&&E!==b;)E=Object.getPrototypeOf(E);let z=E??h;s.has(z)||(s.add(z),na(z,a))}let v=d.prototype;for(let h in v)Object.prototype.hasOwnProperty.call(v,h)&&(h in m||(m[h]=v[h].bind(m)))}let c=o?.Parent??Object;class l extends c{}Object.defineProperty(l,"name",{value:e});function d(m){let f=o?.Parent?Qh(l):this;u(f,m);let v=f._zod.deferred;if(v){for(let b of v)b();f._zod.deferred=void 0}let h=globalThis.__zod_globalConfig?.postProcessor;return h&&h(f),f}return Object.defineProperty(d,"init",{value:u}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>o?.Parent&&m instanceof o.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var sa=Symbol("zod_brand"),$e=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ke=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Qd=globalThis).__zod_globalConfig??(Qd.__zod_globalConfig={});var ie=globalThis.__zod_globalConfig;function H(e){return e&&Object.assign(ie,e),ie}function e$(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,It,2)),e.message}function t$(e){this._zod.message=e}var r$={get:e$,set:t$,enumerable:!0,configurable:!0},ua={value:void 0,enumerable:!1},tm=new WeakSet([Object.prototype,Error.prototype]),rm=(e,t)=>{e.name="$ZodError",ua.value=t,Object.defineProperty(e,"issues",ua),ua.value=void 0,Object.defineProperty(e,"message",r$);let i=Object.getPrototypeOf(e);tm.has(i)||(tm.add(i),Object.defineProperty(i,"toString",{configurable:!0,enumerable:!1,get(){let o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}}))},la=p("$ZodError",rm),ye=p("$ZodError",rm,void 0,{Parent:Error});function n$(e,t,i){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:i(),writable:!0,enumerable:!0,configurable:!0}):e[t]=i()),e[t]}function _r(e,t=i=>i.message){let i={},o=[];for(let r of e.issues)r.path.length>0?n$(i,r.path[0],()=>[]).push(t(r)):o.push(t(r));return{formErrors:o,fieldErrors:i}}function br(e,t=i=>i.message){let i={_errors:[]},o=(r,n=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...n,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...n,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...n,...a.path]);else{let s=[...n,...a.path];if(s.length===0)i._errors.push(t(a));else{let u=i,c=0;for(;c<s.length;){let l=s[c],d=c===s.length-1;if(l==="_errors"){d&&u._errors.push(t(a)),c++;continue}Object.prototype.hasOwnProperty.call(u,l)||Object.defineProperty(u,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=u[l];d&&m._errors.push(t(a)),u=m,c++}}}};return o(e),i}function da(e,t=i=>i.message){let i={errors:[]},o=(r,n=[])=>{var a;for(let s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>o({issues:u},[...n,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...n,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...n,...s.path]);else{let u=[...n,...s.path];if(u.length===0){i.errors.push(t(s));continue}let c=i,l=0;for(;l<u.length;){let d=u[l],m=l===u.length-1;typeof d=="string"?(c.properties??(c.properties={}),Object.prototype.hasOwnProperty.call(c.properties,d)||Object.defineProperty(c.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),c=c.properties[d]):(c.items??(c.items=[]),(a=c.items)[d]??(a[d]={errors:[]}),c=c.items[d]),m&&c.errors.push(t(s)),l++}}};return o(e),i}function nm(e){let t=[],i=e.map(o=>typeof o=="object"?o.key:o);for(let o of i)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function ma(e){let t=[],i=[...e.issues].sort((o,r)=>(o.path??[]).length-(r.path??[]).length);for(let o of i)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${nm(o.path)}`);return t.join(`
|
|
18
|
-
`)}function Sn(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Pt=e=>{let t=(i,o,r,n)=>{let a=r?{...r,async:!1}:{async:!1},s=i._zod.run({value:o,issues:[]},a);if(s instanceof Promise)throw new $e;if(s.issues.length){let u=new(n?.Err??e)(s.issues.map(c=>he(c,a,H())));throw kn(u,n?.callee??t),u}return s.value};return t},zn=Pt(ye),Ot=e=>{let t=async(i,o,r,n)=>{let a=r?{...r,async:!0}:{async:!0},s=i._zod.run({value:o,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(n?.Err??e)(s.issues.map(c=>he(c,a,H())));throw kn(u,n?.callee??t),u}return s.value};return t},jn=Ot(ye),Et=e=>(t,i,o)=>{let r=o?{...o,async:!1}:{async:!1},n=t._zod.run({value:i,issues:[]},r);if(n instanceof Promise)throw new $e;return n.issues.length?im(e,n.issues,r):{success:!0,data:n.value}},o$=Et(ye);function im(e,t,i){let o;return{success:!1,get error(){return o||(o=new e(t.map(r=>he(r,i,H()))),t=void 0,i=void 0),o},set error(r){o=r,t=void 0,i=void 0}}}var Ut=e=>async(t,i,o)=>{let r=o?{...o,async:!0}:{async:!0},n=t._zod.run({value:i,issues:[]},r);return n instanceof Promise&&(n=await n),n.issues.length?im(e,n.issues,r):{success:!0,data:n.value}},a$=Ut(ye),s$=Symbol.for("zod.compile.invalid"),c$=Symbol.for("zod.compile.fallback"),kr=((e,t,i)=>{let o=e._zod.bag.validator;if(o!==void 0){if(o(t)!==s$)return!0;if(o.definite===!0&&i===void 0)return!1}return u$(e,t,i)});function u$(e,t,i){let o=i?{...i,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},r=e._zod.bag.fallbackRun,n;if(r?(o[c$]=!0,n=r({value:t,issues:[]},o)):n=e._zod.run({value:t,issues:[]},o),n instanceof Promise)throw new $e;return n.issues.length===0}var xr=async(e,t,i)=>{let o=i?{...i,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},r=e._zod.run({value:t,issues:[]},o);return r instanceof Promise&&(r=await r),r.issues.length===0},Pn=e=>{let t=Pt(e),i=(o,r,n,a)=>{let s=n?{...n,direction:"backward"}:{direction:"backward"};return t(o,r,s,Sn(i,a))};return i},l$=Pn(ye),On=e=>{let t=Pt(e),i=(o,r,n,a)=>t(o,r,n,Sn(i,a));return i},d$=On(ye),En=e=>{let t=Ot(e),i=async(o,r,n,a)=>{let s=n?{...n,direction:"backward"}:{direction:"backward"};return await t(o,r,s,Sn(i,a))};return i},m$=En(ye),Un=e=>{let t=Ot(e),i=async(o,r,n,a)=>await t(o,r,n,Sn(i,a));return i},f$=Un(ye),Dn=e=>(t,i,o)=>{let r=o?{...o,direction:"backward"}:{direction:"backward"};return Et(e)(t,i,r)},p$=Dn(ye),An=e=>(t,i,o)=>Et(e)(t,i,o),g$=An(ye),Nn=e=>async(t,i,o)=>{let r=o?{...o,direction:"backward"}:{direction:"backward"};return Ut(e)(t,i,r)},v$=Nn(ye),Tn=e=>async(t,i,o)=>Ut(e)(t,i,o),h$=Tn(ye);var Se={};Te(Se,{anyString:()=>Za,base64:()=>Oa,base64url:()=>Ea,bigint:()=>Fa,boolean:()=>Ma,browserEmail:()=>I$,cidrv4:()=>ja,cidrv6:()=>Pa,creditCard:()=>Cn,cuid:()=>pa,cuid2:()=>ga,currencyCode:()=>Na,date:()=>Ta,datetime:()=>Ra,domain:()=>Da,duration:()=>ba,e164:()=>Aa,email:()=>xa,emoji:()=>wa,extendedDuration:()=>$$,guid:()=>ka,hex:()=>Wa,hostname:()=>Ua,html5Email:()=>k$,httpProtocol:()=>wr,iban:()=>Rn,idnEmail:()=>w$,integer:()=>Ir,ipv4:()=>Ia,ipv6:()=>Sa,ksuid:()=>$a,lowercase:()=>Ba,mac:()=>za,md5_base64:()=>P$,md5_base64url:()=>O$,md5_hex:()=>j$,nanoid:()=>ya,nanoidOfLength:()=>_a,null:()=>Va,number:()=>Ze,rfc5322Email:()=>x$,sha1_base64:()=>U$,sha1_base64url:()=>D$,sha1_hex:()=>E$,sha256_base64:()=>N$,sha256_base64url:()=>T$,sha256_hex:()=>A$,sha384_base64:()=>R$,sha384_base64url:()=>Z$,sha384_hex:()=>C$,sha512_base64:()=>F$,sha512_base64url:()=>M$,sha512_hex:()=>L$,string:()=>La,time:()=>Ca,ulid:()=>va,undefined:()=>Ja,unicodeEmail:()=>om,uppercase:()=>Ka,uuid:()=>ot,uuid4:()=>y$,uuid6:()=>_$,uuid7:()=>b$,xid:()=>ha});var pa=/^[cC][0-9a-z]{6,}$/,ga=/^[0-9a-z]+$/,va=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,ha=/^[0-9a-vA-V]{20}$/,$a=/^[A-Za-z0-9]{27}$/,ya=/^[a-zA-Z0-9_-]{21}$/;function _a(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var ba=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,$$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ka=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ot=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,y$=ot(4),_$=ot(6),b$=ot(7),xa=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,k$=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,x$=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,om=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,w$=om,I$=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,S$="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function wa(){return new RegExp(S$,"u")}var Ia=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Sa=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,za=e=>{let t=Ie(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},ja=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Pa=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Oa=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ea=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Ua=/^(?=.{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])?)*\.?$/,Da=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,wr=/^https?$/,Aa=/^\+[1-9]\d{6,14}$/,Cn=/^\d(?:[ -]?\d){11,18}$/,Na=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,Rn=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,am="(?:(?:\\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])))";function z$(e){return new RegExp(`^${e}$`)}var Ta=z$(am);function fa(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ca(e){return new RegExp(`^${fa(e)}$`)}function Ra(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${fa({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${i}|${fa({precision:e.precision})}`:i;return new RegExp(`^${am}T(?:${o})$`)}var Za=/^[\s\S]{0,}$/,La=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Fa=/^-?\d+n?$/,Ir=/^-?\d+$/,Ze=/^-?\d+(?:\.\d+)?$/,Ma=/^(?:true|false)$/i,Va=/^null$/i;var Ja=/^undefined$/i;var Ba=/^[^A-Z]*$/,Ka=/^[^a-z]*$/,Wa=/^[0-9a-fA-F]*$/;function Sr(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function zr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var j$=/^[0-9a-fA-F]{32}$/,P$=Sr(22,"=="),O$=zr(22),E$=/^[0-9a-fA-F]{40}$/,U$=Sr(27,"="),D$=zr(27),A$=/^[0-9a-fA-F]{64}$/,N$=Sr(43,"="),T$=zr(43),C$=/^[0-9a-fA-F]{96}$/,R$=Sr(64,""),Z$=zr(64),L$=/^[0-9a-fA-F]{128}$/,F$=Sr(86,"=="),M$=zr(86);var W=p("$ZodCheck",(e,t)=>{var i;e._zod??(e._zod={}),e._zod.def=t,(i=e._zod).onattach??(i.onattach=[])}),Ga=e=>{let t=e.value;return!bn(t)&&t.size!==void 0},qa=e=>{let t=e.value;return!bn(t)&&t.length!==void 0},Zn={number:"number",bigint:"bigint",object:"date"},Fn=p("$ZodCheckLessThan",(e,t)=>{W.init(e,t);let i=Zn[typeof t.value];e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:Zn[typeof o.value]??i,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Mn=p("$ZodCheckGreaterThan",(e,t)=>{W.init(e,t);let i=Zn[typeof t.value];e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:Zn[typeof o.value]??i,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xa=p("$ZodCheckMultipleOf",(e,t)=>{W.init(e,t),e._zod.check=i=>{if(typeof i.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?t.value!==BigInt(0)&&i.value%t.value===BigInt(0):mr(i.value,t.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:t.value,input:i.value,inst:e,continue:!t.abort})}}),Ha=p("$ZodCheckNumberFormat",(e,t)=>{W.init(e,t),t.format=t.format||"float64";let i=t.format?.includes("int"),o=i?"int":"number",[r,n]=gr[t.format];e._zod.check=a=>{let s=a.value;if(i){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>n&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Ya=p("$ZodCheckBigIntFormat",(e,t)=>{W.init(e,t);let[i,o]=vr[t.format];e._zod.check=r=>{let n=r.value;n<i&&r.issues.push({origin:"bigint",input:n,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),n>o&&r.issues.push({origin:"bigint",input:n,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Qa=p("$ZodCheckMaxSize",(e,t)=>{var i;W.init(e,t),(i=e._zod.def).when??(i.when=Ga),e._zod.check=o=>{let r=o.value;r.size<=t.maximum||o.issues.push({origin:hr(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),es=p("$ZodCheckMinSize",(e,t)=>{var i;W.init(e,t),(i=e._zod.def).when??(i.when=Ga),e._zod.check=o=>{let r=o.value;r.size>=t.minimum||o.issues.push({origin:hr(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ts=p("$ZodCheckSizeEquals",(e,t)=>{var i;W.init(e,t),(i=e._zod.def).when??(i.when=Ga),e._zod.check=o=>{let r=o.value,n=r.size;if(n===t.size)return;let a=n>t.size;o.issues.push({origin:hr(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),rs=p("$ZodCheckMaxLength",(e,t)=>{var i;W.init(e,t),(i=e._zod.def).when??(i.when=qa),e._zod.check=o=>{let r=o.value,n=r.length;if((typeof r=="string"&&n>t.maximum?it(r):n)<=t.maximum)return;let s=$r(r);o.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ns=p("$ZodCheckMinLength",(e,t)=>{var i;W.init(e,t),(i=e._zod.def).when??(i.when=qa),e._zod.check=o=>{let r=o.value,n=r.length;if((typeof r=="string"&&n>=t.minimum&&n<t.minimum*2?it(r):n)>=t.minimum)return;let s=$r(r);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),is=p("$ZodCheckLengthEquals",(e,t)=>{var i;W.init(e,t),(i=e._zod.def).when??(i.when=qa),e._zod.check=o=>{let r=o.value,n=r.length,a=typeof r=="string"&&n>=t.length&&n<=t.length*2?it(r):n;if(a===t.length)return;let s=$r(r),u=a>t.length;o.issues.push({origin:s,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Dt=p("$ZodCheckStringFormat",(e,t)=>{var i,o;W.init(e,t),t.pattern?(i=e._zod).check??(i.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),os=p("$ZodCheckRegex",(e,t)=>{Dt.init(e,t),e._zod.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),as=p("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ba),Dt.init(e,t)}),ss=p("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ka),Dt.init(e,t)}),cs=p("$ZodCheckIncludes",(e,t)=>{W.init(e,t);let i=Ie(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position},}${i}`:i);t.pattern=o,e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),us=p("$ZodCheckStartsWith",(e,t)=>{W.init(e,t);let i=new RegExp(`^${Ie(t.prefix)}.*`);t.pattern??(t.pattern=i),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),ls=p("$ZodCheckEndsWith",(e,t)=>{W.init(e,t);let i=new RegExp(`.*${Ie(t.suffix)}$`);t.pattern??(t.pattern=i),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Ln(e,t,i){e.issues.length&&t.issues.push(...ve(i,e.issues))}var ds=p("$ZodCheckProperty",(e,t)=>{W.init(e,t),e._zod.check=i=>{let o=t.schema._zod.run({value:i.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(r=>Ln(r,i,t.property));Ln(o,i,t.property)}}),ms=p("$ZodCheckProperties",(e,t)=>{W.init(e,t),yr(e,Symbol.iterator,function*(){yield e});let i;e._zod.check=o=>{if(o.value==null){o.issues.push({expected:"object",code:"invalid_type",input:o.value,inst:e});return}i??(i=Reflect.ownKeys(t.shape).map(a=>[a,t.shape[a]]));let r=o.value,n;for(let[a,s]of i){let u=s._zod.run({value:r[a],issues:[]},{});u instanceof Promise?(n??(n=[]),n.push(u.then(c=>Ln(c,o,a)))):Ln(u,o,a)}if(n)return Promise.all(n).then(()=>{})}}),fs=p("$ZodCheckMimeType",(e,t)=>{W.init(e,t);let i=new Set(t.mime);e._zod.check=o=>{i.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),ps=p("$ZodCheckOverwrite",(e,t)=>{W.init(e,t),e._zod.check=i=>{i.value=t.tx(i.value)}});var at=class{constructor(t=[],i={}){this.content=[],this.indent=0,this.args=t,this.closed=i}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
|
|
19
|
-
`).filter(
|
|
13
|
+
${Qn}
|
|
14
|
+
`)}return!0}return t||ka(i,`# CueFrame derived render cache (regenerated; never authored)
|
|
15
|
+
${Qn}
|
|
16
|
+
`),!0}function jl(e){let t=process.cwd(),i=e.dryRun??!1;A(e,"init_prepare",{cwd:t,dryRun:i});let a=Ta(t,_l),o=$a(a),r=tb;if(o)try{let m=JSON.parse(El(a,"utf8"));typeof m.componentsDir=="string"&&m.componentsDir.length>0&&(r=m.componentsDir)}catch{}else i||ka(a,`${JSON.stringify({componentsDir:r},null,2)}
|
|
17
|
+
`);let d=Ta(t,r),p=$a(d);!p&&!i&&eb(d,{recursive:!0});let f=ob(t,i);ee(e,{ok:!0,dryRun:i,root:t,manifest:{path:a,created:!o},componentsDir:r,componentsDirCreated:!p,gitignoreUpdated:f},()=>{console.log(`\u2713 ${i?"Would initialize":"Initialized"} CueFrame workspace at ${t}`),console.log(` ${o?"kept":"created"} ${_l} (componentsDir: ${r})`),console.log(` ${p?"exists":"created"} ${r}/`),f&&console.log(` gitignored ${Qn}`),console.log("Next: cueframe new component <name>")})}import{existsSync as Dye,mkdirSync as _ye,readFileSync as Eye,readdirSync as jye,writeFileSync as _x}from"fs";import{join as Ex}from"path";import{existsSync as ia,readFileSync as BR,readdirSync as WR,statSync as ZR}from"fs";import{dirname as GR,join as Do,parse as JR}from"path";var Nn={};rt(Nn,{$brand:()=>Ba,$input:()=>hd,$output:()=>fd,INVALID:()=>_e,NEVER:()=>qa,TimePrecision:()=>Md,ZodAny:()=>pu,ZodArray:()=>fu,ZodBase64:()=>Ki,ZodBase64URL:()=>Hi,ZodBigInt:()=>To,ZodBigIntFormat:()=>ea,ZodBoolean:()=>ko,ZodCIDRv4:()=>Gi,ZodCIDRv6:()=>Ji,ZodCUID:()=>Ai,ZodCUID2:()=>Ui,ZodCatch:()=>_u,ZodCodec:()=>Ln,ZodCompileAsyncError:()=>He,ZodCompileUnsupportedError:()=>te,ZodCreditCard:()=>iu,ZodCustom:()=>Vn,ZodCustomStringFormat:()=>qt,ZodDate:()=>Dn,ZodDefault:()=>Ou,ZodDiscriminatedUnion:()=>gu,ZodE164:()=>Xi,ZodEmail:()=>Pi,ZodEmoji:()=>Vi,ZodEnum:()=>Mo,ZodError:()=>zR,ZodExactOptional:()=>na,ZodFile:()=>Ru,ZodFirstPartyTypeKind:()=>Zu,ZodFunction:()=>Nu,ZodGUID:()=>Li,ZodIBAN:()=>au,ZodIPv4:()=>Wi,ZodIPv6:()=>Zi,ZodISODate:()=>Rt,ZodISODateTime:()=>vt,ZodISODuration:()=>It,ZodISOTime:()=>wt,ZodInstanceOf:()=>Wu,ZodIntersection:()=>xu,ZodIssueCode:()=>SR,ZodJWT:()=>Yi,ZodKSUID:()=>Bi,ZodLazy:()=>Au,ZodLiteral:()=>vu,ZodMAC:()=>ru,ZodMap:()=>yu,ZodNaN:()=>ju,ZodNanoID:()=>Fi,ZodNever:()=>lu,ZodNonOptional:()=>ra,ZodNull:()=>du,ZodNullable:()=>Mu,ZodNumber:()=>$o,ZodNumberFormat:()=>Bt,ZodObject:()=>_n,ZodOptional:()=>jn,ZodPipe:()=>Pn,ZodPrefault:()=>ku,ZodPreprocess:()=>Pu,ZodPromise:()=>Uu,ZodReadonly:()=>Lu,ZodRealError:()=>Ue,ZodRecord:()=>Io,ZodSet:()=>Su,ZodString:()=>Oo,ZodStringFormat:()=>de,ZodSuccess:()=>Du,ZodSymbol:()=>su,ZodTemplateLiteral:()=>Fu,ZodTransform:()=>wu,ZodTuple:()=>bu,ZodType:()=>Y,ZodULID:()=>Ni,ZodURL:()=>Cn,ZodUUID:()=>ot,ZodUndefined:()=>cu,ZodUnion:()=>En,ZodUnknown:()=>uu,ZodVoid:()=>mu,ZodXID:()=>qi,ZodXor:()=>hu,_ZodString:()=>ji,_default:()=>$u,_function:()=>dg,any:()=>Wh,array:()=>h,base64:()=>Mh,base64url:()=>Oh,bigint:()=>Ah,boolean:()=>w,catch:()=>Eu,check:()=>pg,cidrv4:()=>wh,cidrv6:()=>Ih,clone:()=>ie,codec:()=>ig,coerce:()=>Ju,compile:()=>bd,config:()=>xe,core:()=>dt,creditCard:()=>kh,cuid:()=>gh,cuid2:()=>xh,currencyCode:()=>Eh,custom:()=>ug,date:()=>Zh,decode:()=>Xp,decodeAsync:()=>Qp,deepPartial:()=>wg,describe:()=>lg,discriminatedUnion:()=>Kh,e164:()=>$h,email:()=>sh,emoji:()=>fh,encode:()=>Hp,encodeAsync:()=>Yp,endsWith:()=>fo,enum:()=>l,exactOptional:()=>Iu,file:()=>tg,flattenError:()=>en,float32:()=>Ph,float64:()=>Lh,formatError:()=>tn,fromJSONSchema:()=>vg,function:()=>dg,getDiscriminatedOption:()=>Nc,getErrorMap:()=>RR,globalRegistry:()=>$e,gt:()=>et,gte:()=>qe,guid:()=>ch,hash:()=>jh,hex:()=>_h,hostname:()=>Dh,httpUrl:()=>mh,iban:()=>Th,includes:()=>lo,input:()=>Mg,instanceof:()=>fg,int:()=>x,int32:()=>Vh,int64:()=>Uh,intersection:()=>zu,invertCodec:()=>ag,ipv4:()=>Sh,ipv6:()=>Rh,iso:()=>Fn,json:()=>gg,jwt:()=>Ch,keyof:()=>Gh,ksuid:()=>yh,lazy:()=>pt,length:()=>Ft,literal:()=>u,locales:()=>vn,looseObject:()=>Mt,looseRecord:()=>Xh,lowercase:()=>po,lt:()=>Qe,lte:()=>Ne,mac:()=>vh,map:()=>Yh,maxLength:()=>Vt,maxSize:()=>zt,memoizer:()=>yn,meta:()=>mg,mime:()=>go,minLength:()=>ct,minSize:()=>tt,multipleOf:()=>xt,nan:()=>rg,nanoid:()=>hh,nativeEnum:()=>eg,negative:()=>Ri,never:()=>ta,nonnegative:()=>Ii,nonoptional:()=>Cu,nonpositive:()=>wi,normalize:()=>xo,null:()=>q,nullable:()=>Tn,nullish:()=>og,number:()=>s,object:()=>T,optional:()=>Ut,output:()=>Og,overwrite:()=>Xe,parse:()=>Zp,parseAsync:()=>Gp,partialRecord:()=>Hh,pipe:()=>Ei,positive:()=>vi,prefault:()=>Tu,preprocess:()=>xg,prettifyError:()=>Ka,promise:()=>cg,properties:()=>ho,property:()=>Mi,readonly:()=>Vu,record:()=>y,refine:()=>qu,regex:()=>co,regexes:()=>Ge,registry:()=>Xr,safeDecode:()=>tu,safeDecodeAsync:()=>nu,safeEncode:()=>eu,safeEncodeAsync:()=>ou,safeParse:()=>Jp,safeParseAsync:()=>Kp,set:()=>Qh,setErrorMap:()=>vR,size:()=>Lt,slugify:()=>So,startsWith:()=>mo,strictObject:()=>c,string:()=>n,stringFormat:()=>Qi,stringbool:()=>hg,success:()=>ng,superRefine:()=>Bu,symbol:()=>qh,templateLiteral:()=>sg,toJSONSchema:()=>Ti,toLowerCase:()=>bo,toUpperCase:()=>yo,toZod:()=>Wo,transform:()=>oa,treeifyError:()=>Ja,trim:()=>zo,tuple:()=>F,uint32:()=>Fh,uint64:()=>Nh,ulid:()=>zh,undefined:()=>Bh,union:()=>z,unknown:()=>$,uppercase:()=>uo,url:()=>oe,util:()=>C,uuid:()=>dh,uuidv4:()=>ph,uuidv6:()=>uh,uuidv7:()=>lh,validate:()=>on,validateAsync:()=>nn,void:()=>Re,withParser:()=>Yr,xid:()=>bh,xor:()=>Jh});var dt={};rt(dt,{$ZodAny:()=>Ec,$ZodArray:()=>Fc,$ZodAsyncError:()=>Fe,$ZodBase64:()=>vc,$ZodBase64URL:()=>Rc,$ZodBigInt:()=>Lr,$ZodBigIntFormat:()=>Tc,$ZodBoolean:()=>fn,$ZodCIDRv4:()=>yc,$ZodCIDRv6:()=>Sc,$ZodCUID:()=>cc,$ZodCUID2:()=>dc,$ZodCatch:()=>rd,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>js,$ZodCheckEndsWith:()=>Gs,$ZodCheckGreaterThan:()=>Sr,$ZodCheckIncludes:()=>Ws,$ZodCheckLengthEquals:()=>Us,$ZodCheckLessThan:()=>yr,$ZodCheckLowerCase:()=>qs,$ZodCheckMaxLength:()=>Fs,$ZodCheckMaxSize:()=>Ps,$ZodCheckMimeType:()=>Hs,$ZodCheckMinLength:()=>As,$ZodCheckMinSize:()=>Ls,$ZodCheckMultipleOf:()=>_s,$ZodCheckNumberFormat:()=>Es,$ZodCheckOverwrite:()=>Xs,$ZodCheckProperties:()=>Ks,$ZodCheckProperty:()=>Js,$ZodCheckRegex:()=>Ns,$ZodCheckSizeEquals:()=>Vs,$ZodCheckStartsWith:()=>Zs,$ZodCheckStringFormat:()=>no,$ZodCheckUpperCase:()=>Bs,$ZodCodec:()=>gn,$ZodCreditCard:()=>Ic,$ZodCustom:()=>ud,$ZodCustomStringFormat:()=>$c,$ZodCyclicError:()=>Br,$ZodDate:()=>Vc,$ZodDefault:()=>ed,$ZodDiscriminatedUnion:()=>qc,$ZodE164:()=>wc,$ZodEmail:()=>oc,$ZodEmoji:()=>ac,$ZodEncodeError:()=>gt,$ZodEnum:()=>Jc,$ZodError:()=>Ga,$ZodExactOptional:()=>Yc,$ZodFile:()=>Hc,$ZodFunction:()=>dd,$ZodGUID:()=>ec,$ZodIBAN:()=>Mc,$ZodIPv4:()=>xc,$ZodIPv6:()=>zc,$ZodISODate:()=>fc,$ZodISODateTime:()=>mc,$ZodISODuration:()=>gc,$ZodISOTime:()=>hc,$ZodIntersection:()=>Bc,$ZodJWT:()=>Oc,$ZodKSUID:()=>lc,$ZodLazy:()=>xn,$ZodLiteral:()=>Kc,$ZodMAC:()=>bc,$ZodMap:()=>Zc,$ZodNaN:()=>id,$ZodNanoID:()=>sc,$ZodNever:()=>Pc,$ZodNonOptional:()=>od,$ZodNull:()=>_c,$ZodNullable:()=>Qc,$ZodNumber:()=>Pr,$ZodNumberFormat:()=>kc,$ZodObject:()=>gm,$ZodObjectJIT:()=>Ac,$ZodOptional:()=>Fr,$ZodPipe:()=>Ar,$ZodPrefault:()=>td,$ZodPreprocess:()=>ad,$ZodPromise:()=>pd,$ZodReadonly:()=>sd,$ZodRealError:()=>Ae,$ZodRecord:()=>Wc,$ZodRegistry:()=>Hr,$ZodSet:()=>Gc,$ZodString:()=>Dt,$ZodStringFormat:()=>ae,$ZodSuccess:()=>nd,$ZodSymbol:()=>Cc,$ZodTemplateLiteral:()=>cd,$ZodTransform:()=>Xc,$ZodTuple:()=>Vr,$ZodType:()=>H,$ZodULID:()=>pc,$ZodURL:()=>ic,$ZodUUID:()=>tc,$ZodUndefined:()=>Dc,$ZodUnion:()=>hn,$ZodUnknown:()=>jc,$ZodVoid:()=>Lc,$ZodXID:()=>uc,$ZodXor:()=>Uc,$brand:()=>Ba,$constructor:()=>I,$input:()=>hd,$output:()=>fd,Doc:()=>Ct,INVALID:()=>_e,JSONSchema:()=>rh,JSONSchemaGenerator:()=>Ci,NEVER:()=>qa,TimePrecision:()=>Md,URL_BAD_FORMAT:()=>nc,URL_UNPARSEABLE:()=>dn,ZodCompileAsyncError:()=>He,ZodCompileUnsupportedError:()=>te,_any:()=>qd,_array:()=>Hd,_base64:()=>zi,_base64url:()=>bi,_bigint:()=>Pd,_boolean:()=>Ed,_catch:()=>aR,_check:()=>Nf,_cidrv4:()=>gi,_cidrv6:()=>xi,_coercedBigint:()=>Ld,_coercedBoolean:()=>jd,_coercedDate:()=>Jd,_coercedNumber:()=>$d,_coercedString:()=>vd,_creditCard:()=>wd,_cuid:()=>di,_cuid2:()=>pi,_custom:()=>Yd,_date:()=>Gd,_decode:()=>dr,_decodeAsync:()=>ur,_default:()=>nR,_discriminatedUnion:()=>Wv,_e164:()=>yi,_email:()=>ti,_emoji:()=>si,_encode:()=>cr,_encodeAsync:()=>pr,_endsWith:()=>fo,_enum:()=>Xv,_file:()=>Xd,_float32:()=>Td,_float64:()=>Cd,_gt:()=>et,_gte:()=>qe,_guid:()=>oi,_iban:()=>Id,_includes:()=>lo,_int:()=>kd,_int32:()=>Dd,_int64:()=>Vd,_intersection:()=>Zv,_ipv4:()=>fi,_ipv6:()=>hi,_isoDate:()=>In,_isoDateTime:()=>wn,_isoDuration:()=>On,_isoTime:()=>Mn,_jwt:()=>Si,_ksuid:()=>mi,_lazy:()=>pR,_length:()=>Ft,_literal:()=>Qv,_lowercase:()=>po,_lt:()=>Qe,_lte:()=>Ne,_mac:()=>Rd,_map:()=>Kv,_max:()=>Ne,_maxLength:()=>Vt,_maxSize:()=>zt,_mime:()=>go,_min:()=>qe,_minLength:()=>ct,_minSize:()=>tt,_multipleOf:()=>xt,_nan:()=>Kd,_nanoid:()=>ci,_nativeEnum:()=>Yv,_negative:()=>Ri,_never:()=>Wd,_nonnegative:()=>Ii,_nonoptional:()=>rR,_nonpositive:()=>wi,_normalize:()=>xo,_null:()=>Nd,_nullable:()=>oR,_number:()=>Od,_optional:()=>tR,_overwrite:()=>Xe,_parse:()=>Qt,_parseAsync:()=>eo,_pipe:()=>sR,_positive:()=>vi,_promise:()=>uR,_properties:()=>ho,_property:()=>Mi,_readonly:()=>cR,_record:()=>Jv,_refine:()=>Qd,_regex:()=>co,_safeDecode:()=>mr,_safeDecodeAsync:()=>hr,_safeEncode:()=>lr,_safeEncodeAsync:()=>fr,_safeParse:()=>to,_safeParseAsync:()=>oo,_set:()=>Hv,_size:()=>Lt,_slugify:()=>So,_startsWith:()=>mo,_string:()=>Sd,_stringFormat:()=>At,_stringbool:()=>np,_success:()=>iR,_superRefine:()=>ep,_symbol:()=>Ad,_templateLiteral:()=>dR,_toLowerCase:()=>bo,_toUpperCase:()=>yo,_transform:()=>eR,_trim:()=>zo,_tuple:()=>Gv,_uint32:()=>_d,_uint64:()=>Fd,_ulid:()=>ui,_undefined:()=>Ud,_union:()=>qv,_unknown:()=>Bd,_uppercase:()=>uo,_url:()=>Rn,_uuid:()=>ni,_uuidv4:()=>ri,_uuidv6:()=>ii,_uuidv7:()=>ai,_void:()=>Zd,_xid:()=>li,_xor:()=>Bv,base64Charset:()=>Cr,base64urlCharset:()=>mn,canParseURL:()=>rc,clone:()=>ie,compile:()=>bd,compileFn:()=>Qr,config:()=>xe,createStandardJSONSchemaMethod:()=>vo,createToJSONSchemaMethod:()=>ip,decode:()=>Gb,decodeAsync:()=>Kb,describe:()=>tp,encode:()=>Zb,encodeAsync:()=>Jb,extractDefs:()=>yt,finalize:()=>St,flattenError:()=>en,formatError:()=>tn,getDiscriminatedOption:()=>Nc,globalConfig:()=>Ie,globalRegistry:()=>$e,handleUnrepresentable:()=>Se,initializeContext:()=>bt,isBackEdge:()=>Zr,isRecursiveSchema:()=>Wr,isValidBase64:()=>ln,isValidBase64URL:()=>Dr,isValidCIDRv6:()=>Tr,isValidCreditCard:()=>_r,isValidIBAN:()=>Er,isValidIPv6:()=>un,isValidJWT:()=>jr,locales:()=>vn,memoizer:()=>yn,mergeValues:()=>ro,meta:()=>op,parse:()=>ar,parseAsync:()=>sr,parseURLObject:()=>mm,prettifyError:()=>Ka,process:()=>se,processSchema:()=>se,regexes:()=>Ge,registry:()=>Xr,safeDecode:()=>Xb,safeDecodeAsync:()=>Qb,safeEncode:()=>Hb,safeEncodeAsync:()=>Yb,safeParse:()=>Ub,safeParseAsync:()=>Nb,standardProps:()=>Mr,stripTabAndNewline:()=>pn,toDotPath:()=>Zl,toJSONSchema:()=>Ti,toZod:()=>Wo,treeifyError:()=>Ja,urlHostnameOk:()=>$r,urlProtocolOk:()=>kr,util:()=>C,validate:()=>on,validateAsync:()=>nn,validateURL:()=>Or,version:()=>Ys,withParser:()=>Yr});var C={};rt(C,{BIGINT_FORMAT_RANGES:()=>Ho,CONSTANT_CATCH:()=>rr,Class:()=>_a,NUMBER_FORMAT_RANGES:()=>Ko,aborted:()=>De,allowsEval:()=>Pa,assert:()=>sb,assertEqual:()=>nb,assertIs:()=>ib,assertNever:()=>ab,assertNotEqual:()=>rb,assignProp:()=>Oe,attachSchema:()=>nr,base64ToUint8Array:()=>Al,base64urlToUint8Array:()=>Mb,cached:()=>Ht,captureStackTrace:()=>tr,cleanEnum:()=>Ib,cleanRegex:()=>at,clone:()=>ie,cloneDef:()=>pb,codePointLength:()=>kt,constantCatch:()=>Ua,createTransparentProxy:()=>gb,defineLazy:()=>Ea,defineLazyInternal:()=>Q,derived:()=>Tb,esc:()=>Ce,escapeRegex:()=>Ze,explicitlyAborted:()=>Fa,extend:()=>bb,finalizeIssue:()=>Ve,floatSafeRemainder:()=>Zo,getElementAtPath:()=>ub,getEnumValues:()=>Jt,getLengthableOrigin:()=>Yo,getParsedType:()=>hb,getSizableOrigin:()=>Xo,hexToUint8Array:()=>$b,hide:()=>Qo,installLazyProp:()=>Eb,isObject:()=>$t,isPlainObject:()=>We,issue:()=>Yt,joinValues:()=>M,jsonStringifyReplacer:()=>Kt,members:()=>Aa,merge:()=>Sb,mergeDefs:()=>Ke,normalizeParams:()=>L,nullish:()=>er,numKeys:()=>fb,objectClone:()=>cb,omit:()=>zb,optionalKeys:()=>Va,own:()=>ht,parsedType:()=>_,partial:()=>vb,pick:()=>xb,prefixIssues:()=>Le,primitiveTypes:()=>La,promiseAllObject:()=>lb,propertyKeyTypes:()=>Jo,randomString:()=>mb,rawShape:()=>Xt,required:()=>Rb,safeExtend:()=>yb,shallowClone:()=>Go,slugify:()=>ja,stringifyPrimitive:()=>D,toZod:()=>Wo,uint8ArrayToBase64:()=>Ul,uint8ArrayToBase64url:()=>Ob,uint8ArrayToHex:()=>kb,unwrapMessage:()=>Gt});function nb(e){return e}function rb(e){return e}function Wo(){return e=>e}function ib(e){}function ab(e){throw new Error("Unexpected value in exhaustive check")}function sb(e){}function Jt(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,o])=>t.indexOf(+a)===-1).map(([a,o])=>o)}function M(e,t="|"){return e.map(i=>D(i)).join(t)}function Kt(e,t){return typeof t=="bigint"?t.toString():t}var Da=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Ht(e){return new Da(e)}function er(e){return e==null}function at(e){let t=e.startsWith("^")?1:0,i=e.endsWith("$")?e.length-1:e.length;return e.slice(t,i)}function Zo(e,t){let i=e/t,a=Math.round(i),o=4*Number.EPSILON*Math.max(Math.abs(i),1);return Math.abs(i-a)<o?0:i-a}var Pl=Symbol("evaluating");function Ea(e,t,i){let a;Object.defineProperty(e,t,{get(){if(a!==Pl)return a===void 0&&(a=Pl,a=i()),a},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function cb(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Oe(e,t,i){Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}function Xt(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function it(e){return Xt(e._zod.def)??e._zod.def.shape}function Ll(e,t,i){Object.defineProperty(e,t,{get(){let a=i();return Oe(this,t,a),a},enumerable:!0,configurable:!0})}function Vl(e,t,i){t in e?Oe(e,t,i):e[t]=i}function Ot(e,t,i,a){let o=it(t);for(let r of i){let d=Object.getOwnPropertyDescriptor(o,r);d.enumerable&&(d.get?Ll(e,r,()=>{let p=t._zod.def.shape[r];return a?a(p,r):p}):Vl(e,r,a?a(d.value,r):d.value))}}function db(e,t){for(let i of Reflect.ownKeys(t)){let a=Object.getOwnPropertyDescriptor(t,i);a.enumerable&&(a.get?Ll(e,i,()=>t[i]):Vl(e,i,a.value))}}function Ke(...e){let t={};for(let i of e){let a=Object.getOwnPropertyDescriptors(i);Object.assign(t,a)}return Object.defineProperties({},t)}function pb(e){return Ke(e._zod.def)}function ub(e,t){return t?t.reduce((i,a)=>i?.[a],e):e}function lb(e){let t=Object.keys(e),i=t.map(a=>e[a]);return Promise.all(i).then(a=>{let o={};for(let r=0;r<t.length;r++)o[t[r]]=a[r];return o})}function mb(e=10){let t="abcdefghijklmnopqrstuvwxyz",i="";for(let a=0;a<e;a++)i+=t[Math.floor(Math.random()*t.length)];return i}function Ce(e){return JSON.stringify(e)}function ja(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var tr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function $t(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Pa=Ht(()=>{if(Ie.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function We(e){if($t(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let i=t.prototype;return!($t(i)===!1||Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")===!1)}function Go(e){return We(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function fb(e){let t=0;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t++;return t}var hb=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Jo=new Set(["string","number","symbol"]),La=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ze(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ie(e,t,i){let a=new e._zod.constr(t??e._zod.def);return(!t||i?.parent)&&(a._zod.parent=e),a}function L(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function gb(e){let t;return new Proxy({},{get(i,a,o){return t??(t=e()),Reflect.get(t,a,o)},set(i,a,o,r){return t??(t=e()),Reflect.set(t,a,o,r)},has(i,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(i,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(i){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(i,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(i,a,o){return t??(t=e()),Reflect.defineProperty(t,a,o)}})}function D(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Va(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Ko={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ho={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function xb(e,t){let i=e._zod.def,a=i.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r={};return Ot(r,e,or(e,t)),ie(e,Ke(i,{shape:r,checks:[]}))}function or(e,t){let i=it(e),a=[];for(let o of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(i,o)?.enumerable)throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&a.push(o)}return a}function zb(e,t){let i=e._zod.def,a=i.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=new Set(or(e,t)),d={};return Ot(d,e,Reflect.ownKeys(it(e)).filter(p=>!r.has(p))),ie(e,Ke(i,{shape:d,checks:[]}))}function bb(e,t){if(!We(t))throw new Error("Invalid input to extend: expected a plain object");let i=e._zod.def.checks;if(i&&i.length>0){let o=it(e);for(let r of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,r)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ie(e,Ke(e._zod.def,{shape:Fl(e,t)}))}function Fl(e,t){let i={};return Ot(i,e,Reflect.ownKeys(it(e))),db(i,t),i}function yb(e,t){if(!We(t))throw new Error("Invalid input to safeExtend: expected a plain object");return ie(e,Ke(e._zod.def,{shape:Fl(e,t)}))}function Sb(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let i={};Ot(i,e,Reflect.ownKeys(it(e))),Ot(i,t,Reflect.ownKeys(it(t)));let a=Ke(e._zod.def,{shape:i,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ie(e,a)}function vb(e,t,i,a="partial"){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(`.${a}() cannot be used on object schemas containing refinements`);let p=i?new Set(or(t,i)):void 0,f={};return Ot(f,t,Reflect.ownKeys(it(t)),e&&((m,g)=>p&&!p.has(g)?m:new e({type:"optional",innerType:m}))),ie(t,Ke(t._zod.def,{shape:f,checks:[]}))}function Rb(e,t,i){let a=i?new Set(or(t,i)):void 0,o={};return Ot(o,t,Reflect.ownKeys(it(t)),(r,d)=>a&&!a.has(d)?r:new e({type:"nonoptional",innerType:r})),ie(t,Ke(t._zod.def,{shape:o}))}function De(e,t=0){if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue!==!0)return!0;return!1}function Fa(e,t=0){if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue===!1)return!0;return!1}function Le(e,t){return t.map(i=>{var a;return(a=i).path??(a.path=[]),i.path.unshift(e),i})}function Gt(e){return typeof e=="string"?e:e?.message}function nr(e,t,i){var a;for(let o=t;o<e.length;o++)(a=e[o]).schema??(a.schema=i)}function Ve(e,t,i){var a;let o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(a=e).schema??(a.schema=e.inst):e.schema=e.inst);let r=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,d=e.message?e.message:Gt(e.inst?._zod.def?.error?.(e))??Gt(r?.(e))??Gt(t?.error?.(e))??Gt(i.customError?.(e))??Gt(i.localeError?.(e))??"Invalid input",p={};for(let f of Object.keys(e))f==="inst"||f==="schema"||f==="continue"||f==="input"||f==="__proto__"||(p[f]=e[f]);return p.path??(p.path=[]),p.message=d,t?.reportInput&&(p.input=e.input),p}function Xo(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var wb=/[\uD800-\uDBFF]/;function kt(e){let t=e.length;if(!wb.test(e))return t;let i=t;for(let a=0;a<t-1;a++)(e.charCodeAt(a)&64512)===55296&&(e.charCodeAt(a+1)&64512)===56320&&(i--,a++);return i}function Yo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let i=e;if(i&&Object.getPrototypeOf(i)!==Object.prototype&&"constructor"in i&&i.constructor)return i.constructor.name}}return t}function Yt(...e){let[t,i,a]=e;return typeof t=="string"?{message:t,code:"custom",input:i,inst:a}:{...t}}function Ib(e){return Object.entries(e).filter(([t,i])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Al(e){let t=atob(e),i=new Uint8Array(t.length);for(let a=0;a<t.length;a++)i[a]=t.charCodeAt(a);return i}function Ul(e){let t="";for(let i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return btoa(t)}function Mb(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),i="=".repeat((4-t.length%4)%4);return Al(t+i)}function Ob(e){return Ul(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function $b(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let i=new Uint8Array(t.length/2);for(let a=0;a<t.length;a+=2)i[a/2]=Number.parseInt(t.slice(a,a+2),16);return i}function kb(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var _a=class{constructor(...t){}};function Aa(e,t){for(let i in t){let a=Object.getOwnPropertyDescriptor(t,i);a.get?Object.defineProperty(e,i,{...a,enumerable:!1}):Cb(e,i,a.value)}}function ht(e,t,i,a=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:a,value:i}),i}function Qo(e,t,i){return ht(e,t,i,!1)}function Tb(e,t){for(let i in e){let a=e[i];Object.defineProperty(t,i,{configurable:!0,enumerable:!0,get(){return ht(this,i,a(this))},set(o){ht(this,i,o)}})}return t}function Cb(e,t,i){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?i:ht(this,t,i.bind(this))},set(a){ht(this,t,a)}})}function Db(e,t){let i=Object.getPrototypeOf(e);return t in i?void 0:i}var Ca,ft=!1,_b={configurable:!0,get(){ft=!0}};function Q(e,t,i){let a=Object.getPrototypeOf(e._zod);if(t in a&&Ca!==e._zod){Ca=void 0;return}Ca=e._zod,Object.defineProperty(a,t,{configurable:!0,get(){Object.defineProperty(this,t,_b);let o=ft;ft=!1;try{let r=i(this);return ft?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),ft=ft||o,r}catch(r){throw delete this[t],ft=ft||o,r}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function Eb(e,t,i,a){let o=Db(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let r={configurable:!0,writable:!0,enumerable:a,value:void 0};return Object.defineProperty(this,t,r),r.value=i(this),Object.defineProperty(this,t,r),r.value},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:a,value:r})}})}var rr="~constantCatch";function Ua(e){let t=()=>e;return t[rr]=!0,t}var Nl,qa=Object.freeze({status:"aborted"}),Na={value:void 0,enumerable:!1},ql="captureStackTrace"in Error?Error:null;function jb(e){let t=ql;if(t){let i=t.stackTraceLimit;if(typeof i=="number"){try{t.stackTraceLimit=0}catch{return ql=null,new e}try{return new e}finally{t.stackTraceLimit=i}}}return new e}function I(e,t,i,a){let o={};function r(S){this.def=S,this.constr=b,this.traits=new Set}r.prototype=o;let d=i,p=d&&new WeakSet;function f(S,R){if(S._zod){if(S._zod.traits.has(e))return}else{Na.value=new r(R);try{Object.defineProperty(S,"_zod",Na)}finally{Na.value=void 0}}if(S._zod.traits.add(e),t(S,R),p){let k=Object.getPrototypeOf(S),E=S._zod.constr.prototype,Z=k;for(;Z&&Z!==E;)Z=Object.getPrototypeOf(Z);let U=Z??k;p.has(U)||(p.add(U),Aa(U,d))}let O=b.prototype;for(let k in O)Object.prototype.hasOwnProperty.call(O,k)&&(k in S||(S[k]=O[k].bind(S)))}let m=a?.Parent??Object;class g extends m{}Object.defineProperty(g,"name",{value:e});function b(S){let R=a?.Parent?jb(g):this;f(R,S);let O=R._zod.deferred;if(O){for(let E of O)E();R._zod.deferred=void 0}let k=globalThis.__zod_globalConfig?.postProcessor;return k&&k(R),R}return Object.defineProperty(b,"init",{value:f}),Object.defineProperty(b,Symbol.hasInstance,{value:S=>a?.Parent&&S instanceof a.Parent?!0:S?._zod?.traits?.has(e)}),Object.defineProperty(b,"name",{value:e}),b}var Ba=Symbol("zod_brand"),Fe=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},gt=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Nl=globalThis).__zod_globalConfig??(Nl.__zod_globalConfig={});var Ie=globalThis.__zod_globalConfig;function xe(e){return e&&Object.assign(Ie,e),Ie}function Pb(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Kt,2)),e.message}function Lb(e){this._zod.message=e}var Vb={get:Pb,set:Lb,enumerable:!0,configurable:!0},Za={value:void 0,enumerable:!1},Bl=new WeakSet([Object.prototype,Error.prototype]),Wl=(e,t)=>{e.name="$ZodError",Za.value=t,Object.defineProperty(e,"issues",Za),Za.value=void 0,Object.defineProperty(e,"message",Vb);let i=Object.getPrototypeOf(e);Bl.has(i)||(Bl.add(i),Object.defineProperty(i,"toString",{configurable:!0,enumerable:!1,get(){let a=()=>this.message;return Object.defineProperty(this,"toString",{value:a,configurable:!0,writable:!0}),a},set(a){Object.defineProperty(this,"toString",{value:a,configurable:!0,writable:!0})}}))},Ga=I("$ZodError",Wl),Ae=I("$ZodError",Wl,void 0,{Parent:Error});function Fb(e,t,i){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:i(),writable:!0,enumerable:!0,configurable:!0}):e[t]=i()),e[t]}function en(e,t=i=>i.message){let i={},a=[];for(let o of e.issues)o.path.length>0?Fb(i,o.path[0],()=>[]).push(t(o)):a.push(t(o));return{formErrors:a,fieldErrors:i}}function tn(e,t=i=>i.message){let i={_errors:[]},a=(o,r=[])=>{for(let d of o.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map(p=>a({issues:p},[...r,...d.path]));else if(d.code==="invalid_key")a({issues:d.issues},[...r,...d.path]);else if(d.code==="invalid_element")a({issues:d.issues},[...r,...d.path]);else{let p=[...r,...d.path];if(p.length===0)i._errors.push(t(d));else{let f=i,m=0;for(;m<p.length;){let g=p[m],b=m===p.length-1;if(g==="_errors"){b&&f._errors.push(t(d)),m++;continue}Object.prototype.hasOwnProperty.call(f,g)||Object.defineProperty(f,g,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let S=f[g];b&&S._errors.push(t(d)),f=S,m++}}}};return a(e),i}function Ja(e,t=i=>i.message){let i={errors:[]},a=(o,r=[])=>{var d;for(let p of o.issues)if(p.code==="invalid_union"&&p.errors.length)p.errors.map(f=>a({issues:f},[...r,...p.path]));else if(p.code==="invalid_key")a({issues:p.issues},[...r,...p.path]);else if(p.code==="invalid_element")a({issues:p.issues},[...r,...p.path]);else{let f=[...r,...p.path];if(f.length===0){i.errors.push(t(p));continue}let m=i,g=0;for(;g<f.length;){let b=f[g],S=g===f.length-1;typeof b=="string"?(m.properties??(m.properties={}),Object.prototype.hasOwnProperty.call(m.properties,b)||Object.defineProperty(m.properties,b,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),m=m.properties[b]):(m.items??(m.items=[]),(d=m.items)[b]??(d[b]={errors:[]}),m=m.items[b]),S&&m.errors.push(t(p)),g++}}};return a(e),i}function Zl(e){let t=[],i=e.map(a=>typeof a=="object"?a.key:a);for(let a of i)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function Ka(e){let t=[],i=[...e.issues].sort((a,o)=>(a.path??[]).length-(o.path??[]).length);for(let a of i)t.push(`\u2716 ${a.message}`),a.path?.length&&t.push(` \u2192 at ${Zl(a.path)}`);return t.join(`
|
|
18
|
+
`)}function ir(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Qt=e=>{let t=(i,a,o,r)=>{let d=o?{...o,async:!1}:{async:!1},p=i._zod.run({value:a,issues:[]},d);if(p instanceof Promise)throw new Fe;if(p.issues.length){let f=new(r?.Err??e)(p.issues.map(m=>Ve(m,d,xe())));throw tr(f,r?.callee??t),f}return p.value};return t},ar=Qt(Ae),eo=e=>{let t=async(i,a,o,r)=>{let d=o?{...o,async:!0}:{async:!0},p=i._zod.run({value:a,issues:[]},d);if(p instanceof Promise&&(p=await p),p.issues.length){let f=new(r?.Err??e)(p.issues.map(m=>Ve(m,d,xe())));throw tr(f,r?.callee??t),f}return p.value};return t},sr=eo(Ae),to=e=>(t,i,a)=>{let o=a?{...a,async:!1}:{async:!1},r=t._zod.run({value:i,issues:[]},o);if(r instanceof Promise)throw new Fe;return r.issues.length?Gl(e,r.issues,o):{success:!0,data:r.value}},Ub=to(Ae);function Gl(e,t,i){let a;return{success:!1,get error(){return a||(a=new e(t.map(o=>Ve(o,i,xe()))),t=void 0,i=void 0),a},set error(o){a=o,t=void 0,i=void 0}}}var oo=e=>async(t,i,a)=>{let o=a?{...a,async:!0}:{async:!0},r=t._zod.run({value:i,issues:[]},o);return r instanceof Promise&&(r=await r),r.issues.length?Gl(e,r.issues,o):{success:!0,data:r.value}},Nb=oo(Ae),qb=Symbol.for("zod.compile.invalid"),Bb=Symbol.for("zod.compile.fallback"),on=((e,t,i)=>{let a=e._zod.bag.validator;if(a!==void 0){if(a(t)!==qb)return!0;if(a.definite===!0&&i===void 0)return!1}return Wb(e,t,i)});function Wb(e,t,i){let a=i?{...i,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,r;if(o?(a[Bb]=!0,r=o({value:t,issues:[]},a)):r=e._zod.run({value:t,issues:[]},a),r instanceof Promise)throw new Fe;return r.issues.length===0}var nn=async(e,t,i)=>{let a=i?{...i,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length===0},cr=e=>{let t=Qt(e),i=(a,o,r,d)=>{let p=r?{...r,direction:"backward"}:{direction:"backward"};return t(a,o,p,ir(i,d))};return i},Zb=cr(Ae),dr=e=>{let t=Qt(e),i=(a,o,r,d)=>t(a,o,r,ir(i,d));return i},Gb=dr(Ae),pr=e=>{let t=eo(e),i=async(a,o,r,d)=>{let p=r?{...r,direction:"backward"}:{direction:"backward"};return await t(a,o,p,ir(i,d))};return i},Jb=pr(Ae),ur=e=>{let t=eo(e),i=async(a,o,r,d)=>await t(a,o,r,ir(i,d));return i},Kb=ur(Ae),lr=e=>(t,i,a)=>{let o=a?{...a,direction:"backward"}:{direction:"backward"};return to(e)(t,i,o)},Hb=lr(Ae),mr=e=>(t,i,a)=>to(e)(t,i,a),Xb=mr(Ae),fr=e=>async(t,i,a)=>{let o=a?{...a,direction:"backward"}:{direction:"backward"};return oo(e)(t,i,o)},Yb=fr(Ae),hr=e=>async(t,i,a)=>oo(e)(t,i,a),Qb=hr(Ae);var Ge={};rt(Ge,{anyString:()=>vs,base64:()=>ms,base64url:()=>fs,bigint:()=>ws,boolean:()=>Is,browserEmail:()=>sy,cidrv4:()=>us,cidrv6:()=>ls,creditCard:()=>gr,cuid:()=>Xa,cuid2:()=>Ya,currencyCode:()=>zs,date:()=>bs,datetime:()=>Ss,domain:()=>gs,duration:()=>rs,e164:()=>xs,email:()=>as,emoji:()=>ss,extendedDuration:()=>ey,guid:()=>is,hex:()=>Ts,hostname:()=>hs,html5Email:()=>ry,httpProtocol:()=>rn,iban:()=>xr,idnEmail:()=>ay,integer:()=>an,ipv4:()=>cs,ipv6:()=>ds,ksuid:()=>ts,lowercase:()=>$s,mac:()=>ps,md5_base64:()=>uy,md5_base64url:()=>ly,md5_hex:()=>py,nanoid:()=>os,nanoidOfLength:()=>ns,null:()=>Ms,number:()=>st,rfc5322Email:()=>iy,sha1_base64:()=>fy,sha1_base64url:()=>hy,sha1_hex:()=>my,sha256_base64:()=>xy,sha256_base64url:()=>zy,sha256_hex:()=>gy,sha384_base64:()=>yy,sha384_base64url:()=>Sy,sha384_hex:()=>by,sha512_base64:()=>Ry,sha512_base64url:()=>wy,sha512_hex:()=>vy,string:()=>Rs,time:()=>ys,ulid:()=>Qa,undefined:()=>Os,unicodeEmail:()=>Jl,uppercase:()=>ks,uuid:()=>Tt,uuid4:()=>ty,uuid6:()=>oy,uuid7:()=>ny,xid:()=>es});var Xa=/^[cC][0-9a-z]{6,}$/,Ya=/^[0-9a-z]+$/,Qa=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,es=/^[0-9a-vA-V]{20}$/,ts=/^[A-Za-z0-9]{27}$/,os=/^[a-zA-Z0-9_-]{21}$/;function ns(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var rs=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ey=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,is=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Tt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ty=Tt(4),oy=Tt(6),ny=Tt(7),as=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ry=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,iy=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Jl=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,ay=Jl,sy=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,cy="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function ss(){return new RegExp(cy,"u")}var cs=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ds=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ps=e=>{let t=Ze(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},us=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ls=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ms=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fs=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,hs=/^(?=.{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])?)*\.?$/,gs=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,rn=/^https?$/,xs=/^\+[1-9]\d{6,14}$/,gr=/^\d(?:[ -]?\d){11,18}$/,zs=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,xr=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,Kl="(?:(?:\\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])))";function dy(e){return new RegExp(`^${e}$`)}var bs=dy(Kl);function Ha(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ys(e){return new RegExp(`^${Ha(e)}$`)}function Ss(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${Ha({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,a=e.local?`${i}|${Ha({precision:e.precision})}`:i;return new RegExp(`^${Kl}T(?:${a})$`)}var vs=/^[\s\S]{0,}$/,Rs=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ws=/^-?\d+n?$/,an=/^-?\d+$/,st=/^-?\d+(?:\.\d+)?$/,Is=/^(?:true|false)$/i,Ms=/^null$/i;var Os=/^undefined$/i;var $s=/^[^A-Z]*$/,ks=/^[^a-z]*$/,Ts=/^[0-9a-fA-F]*$/;function sn(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function cn(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var py=/^[0-9a-fA-F]{32}$/,uy=sn(22,"=="),ly=cn(22),my=/^[0-9a-fA-F]{40}$/,fy=sn(27,"="),hy=cn(27),gy=/^[0-9a-fA-F]{64}$/,xy=sn(43,"="),zy=cn(43),by=/^[0-9a-fA-F]{96}$/,yy=sn(64,""),Sy=cn(64),vy=/^[0-9a-fA-F]{128}$/,Ry=sn(86,"=="),wy=cn(86);var pe=I("$ZodCheck",(e,t)=>{var i;e._zod??(e._zod={}),e._zod.def=t,(i=e._zod).onattach??(i.onattach=[])}),Cs=e=>{let t=e.value;return!er(t)&&t.size!==void 0},Ds=e=>{let t=e.value;return!er(t)&&t.length!==void 0},zr={number:"number",bigint:"bigint",object:"date"},yr=I("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let i=zr[typeof t.value];e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:zr[typeof a.value]??i,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Sr=I("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let i=zr[typeof t.value];e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:zr[typeof a.value]??i,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),_s=I("$ZodCheckMultipleOf",(e,t)=>{pe.init(e,t),e._zod.check=i=>{if(typeof i.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof i.value=="bigint"?t.value!==BigInt(0)&&i.value%t.value===BigInt(0):Zo(i.value,t.value)===0)||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:t.value,input:i.value,inst:e,continue:!t.abort})}}),Es=I("$ZodCheckNumberFormat",(e,t)=>{pe.init(e,t),t.format=t.format||"float64";let i=t.format?.includes("int"),a=i?"int":"number",[o,r]=Ko[t.format];e._zod.check=d=>{let p=d.value;if(i){if(!Number.isInteger(p)){d.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:p,inst:e});return}if(!Number.isSafeInteger(p)){p>0?d.issues.push({input:p,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):d.issues.push({input:p,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}p<o&&d.issues.push({origin:"number",input:p,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),p>r&&d.issues.push({origin:"number",input:p,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),js=I("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[i,a]=Ho[t.format];e._zod.check=o=>{let r=o.value;r<i&&o.issues.push({origin:"bigint",input:r,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),r>a&&o.issues.push({origin:"bigint",input:r,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Ps=I("$ZodCheckMaxSize",(e,t)=>{var i;pe.init(e,t),(i=e._zod.def).when??(i.when=Cs),e._zod.check=a=>{let o=a.value;o.size<=t.maximum||a.issues.push({origin:Xo(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ls=I("$ZodCheckMinSize",(e,t)=>{var i;pe.init(e,t),(i=e._zod.def).when??(i.when=Cs),e._zod.check=a=>{let o=a.value;o.size>=t.minimum||a.issues.push({origin:Xo(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Vs=I("$ZodCheckSizeEquals",(e,t)=>{var i;pe.init(e,t),(i=e._zod.def).when??(i.when=Cs),e._zod.check=a=>{let o=a.value,r=o.size;if(r===t.size)return;let d=r>t.size;a.issues.push({origin:Xo(o),...d?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Fs=I("$ZodCheckMaxLength",(e,t)=>{var i;pe.init(e,t),(i=e._zod.def).when??(i.when=Ds),e._zod.check=a=>{let o=a.value,r=o.length;if((typeof o=="string"&&r>t.maximum?kt(o):r)<=t.maximum)return;let p=Yo(o);a.issues.push({origin:p,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),As=I("$ZodCheckMinLength",(e,t)=>{var i;pe.init(e,t),(i=e._zod.def).when??(i.when=Ds),e._zod.check=a=>{let o=a.value,r=o.length;if((typeof o=="string"&&r>=t.minimum&&r<t.minimum*2?kt(o):r)>=t.minimum)return;let p=Yo(o);a.issues.push({origin:p,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Us=I("$ZodCheckLengthEquals",(e,t)=>{var i;pe.init(e,t),(i=e._zod.def).when??(i.when=Ds),e._zod.check=a=>{let o=a.value,r=o.length,d=typeof o=="string"&&r>=t.length&&r<=t.length*2?kt(o):r;if(d===t.length)return;let p=Yo(o),f=d>t.length;a.issues.push({origin:p,...f?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),no=I("$ZodCheckStringFormat",(e,t)=>{var i,a;pe.init(e,t),t.pattern?(i=e._zod).check??(i.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),Ns=I("$ZodCheckRegex",(e,t)=>{no.init(e,t),e._zod.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),qs=I("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=$s),no.init(e,t)}),Bs=I("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ks),no.init(e,t)}),Ws=I("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let i=Ze(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position},}${i}`:i);t.pattern=a,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Zs=I("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let i=new RegExp(`^${Ze(t.prefix)}.*`);t.pattern??(t.pattern=i),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),Gs=I("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let i=new RegExp(`.*${Ze(t.suffix)}$`);t.pattern??(t.pattern=i),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function br(e,t,i){e.issues.length&&t.issues.push(...Le(i,e.issues))}var Js=I("$ZodCheckProperty",(e,t)=>{pe.init(e,t),e._zod.check=i=>{let a=t.schema._zod.run({value:i.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(o=>br(o,i,t.property));br(a,i,t.property)}}),Ks=I("$ZodCheckProperties",(e,t)=>{pe.init(e,t),Qo(e,Symbol.iterator,function*(){yield e});let i;e._zod.check=a=>{if(a.value==null){a.issues.push({expected:"object",code:"invalid_type",input:a.value,inst:e});return}i??(i=Reflect.ownKeys(t.shape).map(d=>[d,t.shape[d]]));let o=a.value,r;for(let[d,p]of i){let f=p._zod.run({value:o[d],issues:[]},{});f instanceof Promise?(r??(r=[]),r.push(f.then(m=>br(m,a,d)))):br(f,a,d)}if(r)return Promise.all(r).then(()=>{})}}),Hs=I("$ZodCheckMimeType",(e,t)=>{pe.init(e,t);let i=new Set(t.mime);e._zod.check=a=>{i.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),Xs=I("$ZodCheckOverwrite",(e,t)=>{pe.init(e,t),e._zod.check=i=>{i.value=t.tx(i.value)}});var Ct=class{constructor(t=[],i={}){this.content=[],this.indent=0,this.args=t,this.closed=i}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let a=t.split(`
|
|
19
|
+
`).filter(d=>d),o=Math.min(...a.map(d=>d.length-d.trimStart().length)),r=a.map(d=>d.slice(o)).map(d=>" ".repeat(this.indent*2)+d);for(let d of r)this.content.push(d)}compile(){let t=Function,i=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
20
20
|
${i.join(`
|
|
21
21
|
`)}
|
|
22
|
-
};`)(...Object.values(this.closed))}};var gs={major:4,minor:6,patch:5};var N=p("$ZodType",(e,t)=>{var i;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=gs;let o=e._zod.def.checks,r=e._zod.traits.has("$ZodCheck")?[e,...o??[]]:o?.length?[...o]:[];for(let n of r)for(let a of n._zod.onattach)a(e);if(r.length===0)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(s,u,c)=>{if(s.memo)return s;let l=de(s),d;for(let m of u){if(m._zod.def.when){if(ra(s)||!m._zod.def.when(s))continue}else if(l)continue;let f=s.issues.length,v=m._zod.check(s);if(v instanceof Promise&&c?.async===!1)throw new $e;if(d||v instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await v,s.issues.length!==f&&(wn(s.issues,f,e),l||(l=de(s,f)))});else{if(s.issues.length===f)continue;wn(s.issues,f,e),l||(l=de(s,f))}}return d?d.then(()=>s):s},a=(s,u,c)=>{if(de(s))return s.aborted=!0,s;let l=n(u,r,c);if(l instanceof Promise){if(c.async===!1)throw new $e;return l.then(d=>e._zod.parse(d,c))}return e._zod.parse(l,c)};e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let l=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return l instanceof Promise?l.then(d=>a(d,s,u)):a(l,s,u)}let c=e._zod.parse(s,u);if(c instanceof Promise){if(u.async===!1)throw new $e;return c.then(l=>n(l,r,u))}return n(c,r,u)}}},{get"~standard"(){return yr(this,"~standard",Wn(this))},set"~standard"(e){Be(this,"~standard",e)}}),xm=(e,t)=>e.issues.length?{issues:e.issues.map(i=>he(i,t,H()))}:{value:e.value};async function V$(e,t){let i={async:!0};return xm(await e._zod.run({value:t,issues:[]},i),i)}function Wn(e){return{validate:t=>{let i={async:!1};try{let o=e._zod.run({value:t,issues:[]},i);if(!(o instanceof Promise))return xm(o,i)}catch{}return V$(e,t)},vendor:"zod",version:1}}var st=p("$ZodString",(e,t)=>{N.init(e,t),e._zod.pattern=t.pattern??Za,e._zod.parse=(i,o)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),V=p("$ZodStringFormat",(e,t)=>{Dt.init(e,t),st.init(e,t)}),hs=p("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ka),V.init(e,t)}),$s=p("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ot(o))}else t.pattern??(t.pattern=ot());V.init(e,t)}),ys=p("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=xa),V.init(e,t)}),_s=1,jr=2;function bs(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Gn(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?bs(e)||jr:wm(e,t)}function wm(e,t){if(!t.normalize&&t.protocol?.source===wr.source&&!/^https?:\/\//i.test(e))return _s;try{if(typeof URL<"u"){let i=URL;if(typeof i.parse=="function")return i.parse(e)??jr}return new URL(e)}catch{return jr}}var J$=/[\t\n\r]/g;function Pr(e){return e.replace(J$,"")}function qn(e,t){return t.lastIndex=0,t.test(e.hostname)}function Xn(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var ks=p("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=i=>{try{let o=i.value.trim(),r=Gn(o,t);if(r===_s){i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:e,continue:!t.abort});return}if(r===jr){i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort});return}if(r===!0){i.value=Pr(o);return}t.hostname&&!qn(r,t.hostname)&&i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:i.value,inst:e,continue:!t.abort}),t.protocol&&!Xn(r,t.protocol)&&i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:i.value,inst:e,continue:!t.abort}),i.value=t.normalize?r.href:Pr(o);return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort})}}}),xs=p("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=wa()),V.init(e,t)}),ws=p("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?ya:_a(t.length)),V.init(e,t)}),Is=p("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=pa),V.init(e,t)}),Ss=p("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ga),V.init(e,t)}),zs=p("$ZodULID",(e,t)=>{t.pattern??(t.pattern=va),V.init(e,t)}),js=p("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ha),V.init(e,t)}),Ps=p("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=$a),V.init(e,t)}),Os=p("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ra(t)),V.init(e,t)}),Es=p("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ta),V.init(e,t)}),Us=p("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ca(t)),V.init(e,t)}),Ds=p("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ba),V.init(e,t)}),As=p("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ia),V.init(e,t)}),B$=/^[0-9a-fA-F:.]+$/;function Or(e){return B$.test(e)?bs(`http://[${e}]`):!1}var Ns=p("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Sa),V.init(e,t),e._zod.check=i=>{Or(i.value)||i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}),Ts=p("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=za(t.delimiter)),V.init(e,t)}),Cs=p("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ja),V.init(e,t)});function Hn(e){let t=e.split("/");if(t.length!==2)return!1;let[i,o]=t;if(!o)return!1;let r=Number(o);return`${r}`!==o||r<0||r>128?!1:Or(i)}var Rs=p("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Pa),V.init(e,t),e._zod.check=i=>{Hn(i.value)||i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}});function Er(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Yn=/^[0-9a-zA-Z+/]*={0,2}$/,Zs=p("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Yn),V.init(e,t),e._zod.check=i=>{Er(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}}),Ur=/^[A-Za-z0-9_-]*$/;function Qn(e){if(!Ur.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),i=t.padEnd(Math.ceil(t.length/4)*4,"=");return Er(i)}var Ls=p("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ur),V.init(e,t),e._zod.check=i=>{Qn(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),Fs=p("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Aa),V.init(e,t)}),K$=/[- ]/g;function W$(e){let t=e.length,i=1,o=0;for(;t;){let r=e.charCodeAt(--t)-48;i^=1,o+=i?[0,2,4,6,8,1,3,5,7,9][r]:r}return o%10===0}function ei(e){return Cn.test(e)?W$(e.replace(K$,"")):!1}var Ms=p("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=Cn),V.init(e,t),e._zod.check=i=>{ei(i.value)||i.issues.push({code:"invalid_format",format:"credit_card",input:i.value,inst:e,continue:!t.abort})}});function G$(e){let t=0,i=e.length;for(let o=4;o<i;o++){let r=e.charCodeAt(o);t=(r>=65?t*100+(r-55):t*10+(r-48))%97}for(let o=0;o<4;o++){let r=e.charCodeAt(o);t=(r>=65?t*100+(r-55):t*10+(r-48))%97}return t===1}function ti(e){return Rn.test(e)?G$(e):!1}var Vs=p("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=Rn),V.init(e,t),e._zod.check=i=>{ti(i.value)||i.issues.push({code:"invalid_format",format:"iban",input:i.value,inst:e,continue:!t.abort})}});function ri(e,t=null){try{let i=e.split(".");if(i.length!==3)return!1;let[o]=i;if(!o)return!1;let r=JSON.parse(atob(o));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var Js=p("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=i=>{ri(i.value,t.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!t.abort})}}),Bs=p("$ZodCustomStringFormat",(e,t)=>{V.init(e,t),e._zod.check=i=>{t.fn(i.value)||i.issues.push({code:"invalid_format",format:t.format,input:i.value,inst:e,continue:!t.abort})}}),ni=p("$ZodNumber",(e,t)=>{N.init(e,t),e._zod.pattern=Ze,e._zod.parse=(i,o)=>{if(t.coerce)try{i.value=Number(i.value)}catch{}let r=i.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return i;let n=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:String(r):void 0;return i.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...n?{received:n}:{}}),i}}),Ks=p("$ZodNumberFormat",(e,t)=>{Ha.init(e,t),ni.init(e,t)}),Dr=p("$ZodBoolean",(e,t)=>{N.init(e,t),e._zod.pattern=Ma,e._zod.parse=(i,o)=>{if(t.coerce)try{i.value=!!i.value}catch{}let r=i.value;return typeof r=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),i}}),ii=p("$ZodBigInt",(e,t)=>{N.init(e,t),e._zod.pattern=Fa,e._zod.parse=(i,o)=>{if(t.coerce)try{i.value=BigInt(i.value)}catch{}return typeof i.value=="bigint"||i.issues.push({expected:"bigint",code:"invalid_type",input:i.value,inst:e}),i}}),Ws=p("$ZodBigIntFormat",(e,t)=>{Ya.init(e,t),ii.init(e,t)}),Gs=p("$ZodSymbol",(e,t)=>{N.init(e,t),e._zod.parse=(i,o)=>{let r=i.value;return typeof r=="symbol"||i.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),i}}),qs=p("$ZodUndefined",(e,t)=>{N.init(e,t),e._zod.pattern=Ja,e._zod.values=new Set([void 0]),e._zod.parse=(i,o)=>{let r=i.value;return typeof r>"u"||i.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),i}}),Xs=p("$ZodNull",(e,t)=>{N.init(e,t),e._zod.pattern=Va,e._zod.values=new Set([null]),e._zod.parse=(i,o)=>{let r=i.value;return r===null||i.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),i}}),Hs=p("$ZodAny",(e,t)=>{N.init(e,t),e._zod.parse=i=>i}),Ys=p("$ZodUnknown",(e,t)=>{N.init(e,t),e._zod.parse=i=>i}),Qs=p("$ZodNever",(e,t)=>{N.init(e,t),e._zod.parse=(i,o)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:e}),i)}),ec=p("$ZodVoid",(e,t)=>{N.init(e,t),e._zod.parse=(i,o)=>{let r=i.value;return typeof r>"u"||i.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),i}}),tc=p("$ZodDate",(e,t)=>{N.init(e,t),e._zod.parse=(i,o)=>{if(t.coerce)try{i.value=new Date(i.value)}catch{}let r=i.value,n=r instanceof Date;return n&&!Number.isNaN(r.getTime())||i.issues.push({expected:"date",code:"invalid_type",input:r,...n?{received:"Invalid Date"}:{},inst:e}),i}});function cm(e,t,i){e.issues.length&&t.issues.push(...ve(i,e.issues)),t.value[i]=e.value}var rc=p("$ZodArray",(e,t)=>{N.init(e,t);let i=ie.memoizer;i?.attach(e),e._zod.parse=(o,r)=>{let n=o.value;if(!Array.isArray(n))return o.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),o;o.value=i?i.alloc(e,o,Array(n.length),r):Array(n.length);let a=[],s=r?.abortEarly;for(let u=0;u<n.length;u++){let c=n[u],l=t.element._zod.run({value:c,issues:[]},r);if(l instanceof Promise)a.push(l.then(d=>cm(d,o,u)));else if(cm(l,o,u),s&&l.issues.length!==0&&de(l))break}return a.length?Promise.all(a).then(()=>o):o}});function Kn(e,t,i,o,r,n){let a=i in o,s=n==="optional";if(!(!a&&s&&r==="optional")){if(e.issues.length){if(r!==void 0&&s&&!a)return;t.issues.push(...ve(i,e.issues))}if(!a&&r===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}e.value===void 0?(a||r==="defaulted"&&!s)&&(t.value[i]=void 0):t.value[i]=e.value}}var q$=[];function Im(e){let t=Object.keys(e.shape),i=Object.getOwnPropertySymbols(e.shape),o=i.length?i:q$,r=o.length?[...t,...o]:t;for(let a of r)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);let n=ta(e.shape);return{...e,allKeys:r,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Sm(e,t,i,o,r,n,a){let s=[],u=r.keySet,c=r.catchall._zod,l=c.def.type,d=c.optin,m=c.optout,f=0;for(let v in t){if(a&&i.issues.length!==f){if(de(i,f))break;f=i.issues.length}if(u.has(v))continue;if(v==="__proto__"){l==="never"&&s.push(v);continue}if(l==="never"){s.push(v);continue}let h=c.run({value:t[v],issues:[]},o);h instanceof Promise?e.push(h.then(b=>Kn(b,i,v,t,d,m))):Kn(h,i,v,t,d,m)}return s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:n,continue:!0}),e.length?Promise.all(e).then(()=>i):i}var zm=p("$ZodObject",(e,t)=>{N.init(e,t);let i=Object.getOwnPropertyDescriptor(t,"shape"),o=i?.get?i.get.raw:t.shape??{};if(o){let c=()=>{let l={...o};return Object.defineProperty(t,"shape",{value:l}),c.raw=l,l};c.raw=o,Object.defineProperty(t,"shape",{get:c})}let r=St(()=>Im(t));R(e,"propValues",c=>{let l=c.def.shape,d={};for(let m in l){let f=l[m]._zod;if(f.values){Object.prototype.hasOwnProperty.call(d,m)||ae(d,m,new Set);for(let v of f.values)d[m].add(v);f.optin!==void 0&&d[m].add(void 0)}}return d});let n=nt,a=t.catchall,s,u=ie.memoizer;u?.attach(e),e._zod.parse=(c,l)=>{s??(s=r.value);let d=c.value;if(!n(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),c;c.value=u?u.alloc(e,c,{},l):{};let m=[],f=s.shape,v=l?.abortEarly,h=c.issues.length;for(let b of s.allKeys){if(v&&c.issues.length!==h){if(de(c,h))break;h=c.issues.length}if(b==="__proto__")continue;let E=f[b],z=E._zod.optin,I=E._zod.optout,D=E._zod.run({value:d[b],issues:[]},l);D instanceof Promise?m.push(D.then(B=>Kn(B,c,b,d,z,I))):Kn(D,c,b,d,z,I)}return a?Sm(m,d,c,l,r.value,e,v===!0):m.length?Promise.all(m).then(()=>c):c}}),nc=p("$ZodObjectJIT",(e,t)=>{zm.init(e,t);let i=e._zod.parse,o=St(()=>Im(t)),r=ie.memoizer,n=f=>{let v=o.value,h=v.symbolKeys,b=new at(["payload","ctx"],{shape:f,inst:e,memo:r,syms:h}),E=B=>`shape[${B}]._zod.run({ value: input[${B}], issues: [] }, ctx)`,z=(B,F)=>`
|
|
23
|
-
let ${
|
|
24
|
-
for (let i = 0; i < ${
|
|
25
|
-
const iss = ${
|
|
26
|
-
iss.path = iss.path ? [${
|
|
22
|
+
};`)(...Object.values(this.closed))}};var Ys={major:4,minor:6,patch:5};var H=I("$ZodType",(e,t)=>{var i;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ys;let a=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...a??[]]:a?.length?[...a]:[];for(let r of o)for(let d of r._zod.onattach)d(e);if(o.length===0)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(p,f,m)=>{if(p.memo)return p;let g=De(p),b;for(let S of f){if(S._zod.def.when){if(Fa(p)||!S._zod.def.when(p))continue}else if(g)continue;let R=p.issues.length,O=S._zod.check(p);if(O instanceof Promise&&m?.async===!1)throw new Fe;if(b||O instanceof Promise)b=(b??Promise.resolve()).then(async()=>{await O,p.issues.length!==R&&(nr(p.issues,R,e),g||(g=De(p,R)))});else{if(p.issues.length===R)continue;nr(p.issues,R,e),g||(g=De(p,R))}}return b?b.then(()=>p):p},d=(p,f,m)=>{if(De(p))return p.aborted=!0,p;let g=r(f,o,m);if(g instanceof Promise){if(m.async===!1)throw new Fe;return g.then(b=>e._zod.parse(b,m))}return e._zod.parse(g,m)};e._zod.run=(p,f)=>{if(f.skipChecks)return e._zod.parse(p,f);if(f.direction==="backward"){let g=e._zod.parse({value:p.value,issues:[]},{...f,skipChecks:!0});return g instanceof Promise?g.then(b=>d(b,p,f)):d(g,p,f)}let m=e._zod.parse(p,f);if(m instanceof Promise){if(f.async===!1)throw new Fe;return m.then(g=>r(g,o,f))}return r(m,o,f)}}},{get"~standard"(){return Qo(this,"~standard",Mr(this))},set"~standard"(e){ht(this,"~standard",e)}}),lm=(e,t)=>e.issues.length?{issues:e.issues.map(i=>Ve(i,t,xe()))}:{value:e.value};async function Iy(e,t){let i={async:!0};return lm(await e._zod.run({value:t,issues:[]},i),i)}function Mr(e){return{validate:t=>{let i={async:!1};try{let a=e._zod.run({value:t,issues:[]},i);if(!(a instanceof Promise))return lm(a,i)}catch{}return Iy(e,t)},vendor:"zod",version:1}}var Dt=I("$ZodString",(e,t)=>{H.init(e,t),e._zod.pattern=t.pattern??vs,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),ae=I("$ZodStringFormat",(e,t)=>{no.init(e,t),Dt.init(e,t)}),ec=I("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=is),ae.init(e,t)}),tc=I("$ZodUUID",(e,t)=>{if(t.version){let a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Tt(a))}else t.pattern??(t.pattern=Tt());ae.init(e,t)}),oc=I("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=as),ae.init(e,t)}),nc=1,dn=2;function rc(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Or(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?rc(e)||dn:mm(e,t)}function mm(e,t){if(!t.normalize&&t.protocol?.source===rn.source&&!/^https?:\/\//i.test(e))return nc;try{if(typeof URL<"u"){let i=URL;if(typeof i.parse=="function")return i.parse(e)??dn}return new URL(e)}catch{return dn}}var My=/[\t\n\r]/g;function pn(e){return e.replace(My,"")}function $r(e,t){return t.lastIndex=0,t.test(e.hostname)}function kr(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var ic=I("$ZodURL",(e,t)=>{ae.init(e,t),e._zod.check=i=>{try{let a=i.value.trim(),o=Or(a,t);if(o===nc){i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:e,continue:!t.abort});return}if(o===dn){i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort});return}if(o===!0){i.value=pn(a);return}t.hostname&&!$r(o,t.hostname)&&i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:i.value,inst:e,continue:!t.abort}),t.protocol&&!kr(o,t.protocol)&&i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:i.value,inst:e,continue:!t.abort}),i.value=t.normalize?o.href:pn(a);return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort})}}}),ac=I("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ss()),ae.init(e,t)}),sc=I("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?os:ns(t.length)),ae.init(e,t)}),cc=I("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Xa),ae.init(e,t)}),dc=I("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ya),ae.init(e,t)}),pc=I("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Qa),ae.init(e,t)}),uc=I("$ZodXID",(e,t)=>{t.pattern??(t.pattern=es),ae.init(e,t)}),lc=I("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ts),ae.init(e,t)}),mc=I("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ss(t)),ae.init(e,t)}),fc=I("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=bs),ae.init(e,t)}),hc=I("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ys(t)),ae.init(e,t)}),gc=I("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=rs),ae.init(e,t)}),xc=I("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=cs),ae.init(e,t)}),Oy=/^[0-9a-fA-F:.]+$/;function un(e){return Oy.test(e)?rc(`http://[${e}]`):!1}var zc=I("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ds),ae.init(e,t),e._zod.check=i=>{un(i.value)||i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}),bc=I("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=ps(t.delimiter)),ae.init(e,t)}),yc=I("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=us),ae.init(e,t)});function Tr(e){let t=e.split("/");if(t.length!==2)return!1;let[i,a]=t;if(!a)return!1;let o=Number(a);return`${o}`!==a||o<0||o>128?!1:un(i)}var Sc=I("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ls),ae.init(e,t),e._zod.check=i=>{Tr(i.value)||i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}});function ln(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Cr=/^[0-9a-zA-Z+/]*={0,2}$/,vc=I("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Cr),ae.init(e,t),e._zod.check=i=>{ln(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}}),mn=/^[A-Za-z0-9_-]*$/;function Dr(e){if(!mn.test(e))return!1;let t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),i=t.padEnd(Math.ceil(t.length/4)*4,"=");return ln(i)}var Rc=I("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=mn),ae.init(e,t),e._zod.check=i=>{Dr(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),wc=I("$ZodE164",(e,t)=>{t.pattern??(t.pattern=xs),ae.init(e,t)}),$y=/[- ]/g;function ky(e){let t=e.length,i=1,a=0;for(;t;){let o=e.charCodeAt(--t)-48;i^=1,a+=i?[0,2,4,6,8,1,3,5,7,9][o]:o}return a%10===0}function _r(e){return gr.test(e)?ky(e.replace($y,"")):!1}var Ic=I("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=gr),ae.init(e,t),e._zod.check=i=>{_r(i.value)||i.issues.push({code:"invalid_format",format:"credit_card",input:i.value,inst:e,continue:!t.abort})}});function Ty(e){let t=0,i=e.length;for(let a=4;a<i;a++){let o=e.charCodeAt(a);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}for(let a=0;a<4;a++){let o=e.charCodeAt(a);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}return t===1}function Er(e){return xr.test(e)?Ty(e):!1}var Mc=I("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=xr),ae.init(e,t),e._zod.check=i=>{Er(i.value)||i.issues.push({code:"invalid_format",format:"iban",input:i.value,inst:e,continue:!t.abort})}});function jr(e,t=null){try{let i=e.split(".");if(i.length!==3)return!1;let[a]=i;if(!a)return!1;let o=JSON.parse(atob(a));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var Oc=I("$ZodJWT",(e,t)=>{ae.init(e,t),e._zod.check=i=>{jr(i.value,t.alg)||i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!t.abort})}}),$c=I("$ZodCustomStringFormat",(e,t)=>{ae.init(e,t),e._zod.check=i=>{t.fn(i.value)||i.issues.push({code:"invalid_format",format:t.format,input:i.value,inst:e,continue:!t.abort})}}),Pr=I("$ZodNumber",(e,t)=>{H.init(e,t),e._zod.pattern=st,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=Number(i.value)}catch{}let o=i.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return i;let r=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return i.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...r?{received:r}:{}}),i}}),kc=I("$ZodNumberFormat",(e,t)=>{Es.init(e,t),Pr.init(e,t)}),fn=I("$ZodBoolean",(e,t)=>{H.init(e,t),e._zod.pattern=Is,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=!!i.value}catch{}let o=i.value;return typeof o=="boolean"||i.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),i}}),Lr=I("$ZodBigInt",(e,t)=>{H.init(e,t),e._zod.pattern=ws,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=BigInt(i.value)}catch{}return typeof i.value=="bigint"||i.issues.push({expected:"bigint",code:"invalid_type",input:i.value,inst:e}),i}}),Tc=I("$ZodBigIntFormat",(e,t)=>{js.init(e,t),Lr.init(e,t)}),Cc=I("$ZodSymbol",(e,t)=>{H.init(e,t),e._zod.parse=(i,a)=>{let o=i.value;return typeof o=="symbol"||i.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),i}}),Dc=I("$ZodUndefined",(e,t)=>{H.init(e,t),e._zod.pattern=Os,e._zod.values=new Set([void 0]),e._zod.parse=(i,a)=>{let o=i.value;return typeof o>"u"||i.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),i}}),_c=I("$ZodNull",(e,t)=>{H.init(e,t),e._zod.pattern=Ms,e._zod.values=new Set([null]),e._zod.parse=(i,a)=>{let o=i.value;return o===null||i.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),i}}),Ec=I("$ZodAny",(e,t)=>{H.init(e,t),e._zod.parse=i=>i}),jc=I("$ZodUnknown",(e,t)=>{H.init(e,t),e._zod.parse=i=>i}),Pc=I("$ZodNever",(e,t)=>{H.init(e,t),e._zod.parse=(i,a)=>(i.issues.push({expected:"never",code:"invalid_type",input:i.value,inst:e}),i)}),Lc=I("$ZodVoid",(e,t)=>{H.init(e,t),e._zod.parse=(i,a)=>{let o=i.value;return typeof o>"u"||i.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),i}}),Vc=I("$ZodDate",(e,t)=>{H.init(e,t),e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=new Date(i.value)}catch{}let o=i.value,r=o instanceof Date;return r&&!Number.isNaN(o.getTime())||i.issues.push({expected:"date",code:"invalid_type",input:o,...r?{received:"Invalid Date"}:{},inst:e}),i}});function Xl(e,t,i){e.issues.length&&t.issues.push(...Le(i,e.issues)),t.value[i]=e.value}var Fc=I("$ZodArray",(e,t)=>{H.init(e,t);let i=Ie.memoizer;i?.attach(e),e._zod.parse=(a,o)=>{let r=a.value;if(!Array.isArray(r))return a.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),a;a.value=i?i.alloc(e,a,Array(r.length),o):Array(r.length);let d=[],p=o?.abortEarly;for(let f=0;f<r.length;f++){let m=r[f],g=t.element._zod.run({value:m,issues:[]},o);if(g instanceof Promise)d.push(g.then(b=>Xl(b,a,f)));else if(Xl(g,a,f),p&&g.issues.length!==0&&De(g))break}return d.length?Promise.all(d).then(()=>a):a}});function Ir(e,t,i,a,o,r){let d=i in a,p=r==="optional";if(!(!d&&p&&o==="optional")){if(e.issues.length){if(o!==void 0&&p&&!d)return;t.issues.push(...Le(i,e.issues))}if(!d&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}e.value===void 0?(d||o==="defaulted"&&!p)&&(t.value[i]=void 0):t.value[i]=e.value}}var Cy=[];function fm(e){let t=Object.keys(e.shape),i=Object.getOwnPropertySymbols(e.shape),a=i.length?i:Cy,o=a.length?[...t,...a]:t;for(let d of o)if(!e.shape?.[d]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(d)}": expected a Zod schema`);let r=Va(e.shape);return{...e,allKeys:o,symbolKeys:a,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function hm(e,t,i,a,o,r,d){let p=[],f=o.keySet,m=o.catchall._zod,g=m.def.type,b=m.optin,S=m.optout,R=0;for(let O in t){if(d&&i.issues.length!==R){if(De(i,R))break;R=i.issues.length}if(f.has(O))continue;if(O==="__proto__"){g==="never"&&p.push(O);continue}if(g==="never"){p.push(O);continue}let k=m.run({value:t[O],issues:[]},a);k instanceof Promise?e.push(k.then(E=>Ir(E,i,O,t,b,S))):Ir(k,i,O,t,b,S)}return p.length&&i.issues.push({code:"unrecognized_keys",keys:p,input:t,inst:r,continue:!0}),e.length?Promise.all(e).then(()=>i):i}var gm=I("$ZodObject",(e,t)=>{H.init(e,t);let i=Object.getOwnPropertyDescriptor(t,"shape"),a=i?.get?i.get.raw:t.shape??{};if(a){let m=()=>{let g={...a};return Object.defineProperty(t,"shape",{value:g}),m.raw=g,g};m.raw=a,Object.defineProperty(t,"shape",{get:m})}let o=Ht(()=>fm(t));Q(e,"propValues",m=>{let g=m.def.shape,b={};for(let S in g){let R=g[S]._zod;if(R.values){Object.prototype.hasOwnProperty.call(b,S)||Oe(b,S,new Set);for(let O of R.values)b[S].add(O);R.optin!==void 0&&b[S].add(void 0)}}return b});let r=$t,d=t.catchall,p,f=Ie.memoizer;f?.attach(e),e._zod.parse=(m,g)=>{p??(p=o.value);let b=m.value;if(!r(b))return m.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),m;m.value=f?f.alloc(e,m,{},g):{};let S=[],R=p.shape,O=g?.abortEarly,k=m.issues.length;for(let E of p.allKeys){if(O&&m.issues.length!==k){if(De(m,k))break;k=m.issues.length}if(E==="__proto__")continue;let Z=R[E],U=Z._zod.optin,V=Z._zod.optout,J=Z._zod.run({value:b[E],issues:[]},g);J instanceof Promise?S.push(J.then(ce=>Ir(ce,m,E,b,U,V))):Ir(J,m,E,b,U,V)}return d?hm(S,b,m,g,o.value,e,O===!0):S.length?Promise.all(S).then(()=>m):m}}),Ac=I("$ZodObjectJIT",(e,t)=>{gm.init(e,t);let i=e._zod.parse,a=Ht(()=>fm(t)),o=Ie.memoizer,r=R=>{let O=a.value,k=O.symbolKeys,E=new Ct(["payload","ctx"],{shape:R,inst:e,memo:o,syms:k}),Z=ce=>`shape[${ce}]._zod.run({ value: input[${ce}], issues: [] }, ctx)`,U=(ce,re)=>`
|
|
23
|
+
let ${ce}_ab = false;
|
|
24
|
+
for (let i = 0; i < ${ce}.issues.length; i++) {
|
|
25
|
+
const iss = ${ce}.issues[i];
|
|
26
|
+
iss.path = iss.path ? [${re}, ...iss.path] : [${re}];
|
|
27
27
|
payload.issues.push(iss);
|
|
28
|
-
if (iss.continue !== true) ${
|
|
28
|
+
if (iss.continue !== true) ${ce}_ab = true;
|
|
29
29
|
}
|
|
30
|
-
if (${
|
|
30
|
+
if (${ce}_ab && ctx && ctx.abortEarly) {
|
|
31
31
|
payload.value = newResult;
|
|
32
32
|
return payload;
|
|
33
|
-
}`;
|
|
34
|
-
const ${
|
|
35
|
-
if (!${
|
|
36
|
-
if (${
|
|
33
|
+
}`;E.write("const input = payload.value;");let V=Object.create(null),J=0;for(let ce of O.allKeys)V[ce]=`key_${J++}`;E.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let ce of O.allKeys){if(ce==="__proto__")continue;let re=V[ce],ke=typeof ce=="symbol"?`syms[${k.indexOf(ce)}]`:Ce(ce),qo=`${ke} in input`,fl=R[ce],Sa=fl?._zod?.optin,hl=Sa!==void 0,Vz=fl?._zod?.optout==="optional";if(E.write(`const ${re} = ${Z(ke)};`),hl&&Vz){let Fz=Sa==="optional"?`${re}_present`:`${re}.value !== undefined || ${re}_present`;E.write(`
|
|
34
|
+
const ${re}_present = ${qo};
|
|
35
|
+
if (!${re}.issues.length || ${re}_present) {
|
|
36
|
+
if (${re}.issues.length) {${U(re,ke)}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
if (${
|
|
40
|
-
newResult[${
|
|
39
|
+
if (${Fz}) {
|
|
40
|
+
newResult[${ke}] = ${re}.value;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
`)}else
|
|
45
|
-
if (${
|
|
44
|
+
`)}else hl?(E.write(`
|
|
45
|
+
if (${re}.issues.length) {${U(re,ke)}
|
|
46
46
|
}
|
|
47
|
-
`),
|
|
48
|
-
if (${
|
|
49
|
-
newResult[${
|
|
47
|
+
`),Sa==="defaulted"?E.write(`newResult[${ke}] = ${re}.value;`):E.write(`
|
|
48
|
+
if (${re}.value !== undefined || ${qo}) {
|
|
49
|
+
newResult[${ke}] = ${re}.value;
|
|
50
50
|
}
|
|
51
|
-
`)):
|
|
52
|
-
const ${
|
|
53
|
-
if (${
|
|
51
|
+
`)):E.write(`
|
|
52
|
+
const ${re}_present = ${qo};
|
|
53
|
+
if (${re}.issues.length) {${U(re,ke)}
|
|
54
54
|
}
|
|
55
|
-
if (!${
|
|
55
|
+
if (!${re}_present && !${re}.issues.length) {
|
|
56
56
|
payload.issues.push({
|
|
57
57
|
code: "invalid_type",
|
|
58
58
|
expected: "nonoptional",
|
|
59
59
|
input: undefined,
|
|
60
|
-
path: [${
|
|
60
|
+
path: [${ke}]
|
|
61
61
|
});
|
|
62
62
|
if (ctx && ctx.abortEarly) {
|
|
63
63
|
payload.value = newResult;
|
|
@@ -65,23 +65,23 @@ ${i.join(`
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
if (${
|
|
69
|
-
newResult[${
|
|
68
|
+
if (${re}_present) {
|
|
69
|
+
newResult[${ke}] = ${re}.value;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
`)}return b.write("payload.value = newResult;"),b.write("return payload;"),b.compile()},a,s=nt,u=!ie.jitless,l=u&&Qo.value,d=t.catchall,m;e._zod.parse=(f,v)=>{m??(m=o.value);let h=f.value;return s(h)?u&&l&&v?.async===!1&&v.jitless!==!0?(a||(a=n(t.shape)),f=a(f,v),d?Sm([],h,f,v,m,e,v?.abortEarly===!0):f):i(f,v):(f.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),f)}});function um(e,t,i,o){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let r=e.filter(n=>!de(n));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(n=>n.issues.map(a=>he(a,o,H())))}),t)}var Ar=p("$ZodUnion",(e,t)=>{N.init(e,t),R(e,"optin",o=>o.def.options.some(r=>r._zod.optin==="defaulted")?"defaulted":o.def.options.some(r=>r._zod.optin!==void 0)?"optional":void 0),R(e,"optout",o=>o.def.options.some(r=>r._zod.optout==="optional")?"optional":void 0),R(e,"values",o=>{if(o.def.options.every(r=>r._zod.values))return new Set(o.def.options.flatMap(r=>Array.from(r._zod.values)))}),R(e,"pattern",o=>{if(o.def.options.every(r=>r._zod.pattern)){let r=o.def.options.map(n=>n._zod.pattern);return new RegExp(`^(${r.map(n=>Re(n.source)).join("|")})$`)}});let i=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(i)return i(o,r);let n=!1,a=[];for(let s of t.options){let u=s._zod.run({value:o.value,issues:[]},r);if(u instanceof Promise)a.push(u),n=!0;else{if(u.issues.length===0)return u;a.push(u)}}return n?Promise.all(a).then(s=>um(s,o,e,r)):um(a,o,e,r)}});function lm(e,t,i,o){let r=[];for(let n=0;n<e.length;n++)e[n].issues.length===0&&r.push(n);return r.length===1?(t.value=e[r[0]].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(n=>n.issues.map(a=>he(a,o,H())))}):t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:[],inclusive:!1,matches:r}),t)}var ic=p("$ZodXor",(e,t)=>{Ar.init(e,t),t.inclusive=!1;let i=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(i)return i(o,r);let n=!1,a=[];for(let s of t.options){let u=s._zod.run({value:o.value,issues:[]},r);u instanceof Promise?(a.push(u),n=!0):a.push(u)}return n?Promise.all(a).then(s=>lm(s,o,e,r)):lm(a,o,e,r)}});function oc(e,t){let i=e._zod,o=i.bag.optionsMap;o||(o=jm(i.def),i.bag.optionsMap=o);let r=o.get(t);if(r===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return r}function jm(e){let t=new Map;for(let i of e.options){let o=i._zod.propValues?.[e.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let r of o)if(t.has(r)){if(r!==void 0)throw new Error(`Duplicate discriminator value "${String(r)}"`);t.set(r,null)}else t.set(r,i)}return t}var ac=p("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ar.init(e,t);let i=e._zod.parse;R(e,"propValues",r=>{let n={},a=0;for(let s of r.def.options){let u=s._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(`Invalid discriminated union option at index "${r.def.options.indexOf(s)}"`);u[r.def.discriminator]?.has(void 0)&&a++;for(let[c,l]of Object.entries(u)){Object.prototype.hasOwnProperty.call(n,c)||ae(n,c,new Set);for(let d of l)n[c].add(d)}}return!r.def.unionFallback&&a>1&&n[r.def.discriminator]?.delete(void 0),n}),t.options.forEach((r,n)=>{let a=zt(r._zod.def);if(a&&!Object.prototype.hasOwnProperty.call(a,t.discriminator))throw new Error(`Invalid discriminated union option at index "${n}"`)});let o=St(()=>jm(t));e._zod.parse=(r,n)=>{let a=r.value;if(!nt(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=a?.[t.discriminator],u=o.value.get(s);return u&&(s!==void 0||n.direction!=="backward")?u._zod.run(r,n):t.unionFallback||n.direction==="backward"?i(r,n):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()).filter(c=>o.value.get(c)!==null),input:a,path:[t.discriminator],inst:e}),r)}}),sc=p("$ZodIntersection",(e,t)=>{N.init(e,t),e._zod.parse=(i,o)=>{let r=i.value,n=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return n instanceof Promise||a instanceof Promise?Promise.all([n,a]).then(([u,c])=>dm(i,u,c)):dm(i,n,a)}});function At(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(we(e)&&we(t)){let i=Object.keys(t),o=Object.keys(e).filter(n=>i.indexOf(n)!==-1),r={...e,...t};Object.prototype.hasOwnProperty.call(r,"__proto__")&&delete r.__proto__;for(let n of o){if(n==="__proto__")continue;let a=At(e[n],t[n]);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};r[n]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let i=[];for(let o=0;o<e.length;o++){let r=e[o],n=t[o],a=At(r,n);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i.push(a.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}function dm(e,t,i){let o=new Map,r,n=new Map,a=(c,l)=>{let d;if(c.code==="unrecognized_keys"&&!c.path?.length)r??(r=c),d=c.keys;else if(c.code==="invalid_key"&&c.origin==="record"&&c.path?.length===1){let m=String(c.path[0]);n.has(m)||n.set(m,c),d=[m]}else return!1;for(let m of d)o.has(m)||o.set(m,{}),o.get(m)[l]=!0;return!0};for(let c of t.issues)a(c,"l")||e.issues.push(c);for(let c of i.issues)a(c,"r")||e.issues.push(c);let s=[...o].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(s.length){let c=r?s.filter(l=>r.keys.includes(l)):[];c.length&&e.issues.push({...r,keys:c});for(let l of s)!c.includes(l)&&n.has(l)&&e.issues.push(n.get(l))}let u=At(t.value,i.value);if(!u.valid){if(de(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`)}return e.value=u.data,e}var oi=p("$ZodTuple",(e,t)=>{N.init(e,t);let i=t.items,o=ie.memoizer;o?.attach(e),e._zod.parse=(r,n)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=o?o.alloc(e,r,[],n):[];let s=[],u=mm(i,"optin"),c=mm(i,"optout");if(!t.rest){if(a.length<u)return r.issues.push({code:"too_small",minimum:u,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>i.length&&r.issues.push({code:"too_big",maximum:i.length,inclusive:!0,input:a,inst:e,origin:"array"})}let l=new Array(i.length),d=t.rest?n?.abortEarly:void 0,m=!1;for(let f=0;f<i.length;f++){let v=i[f]._zod.run({value:a[f],issues:[]},n);v instanceof Promise?s.push(v.then(h=>{l[f]=h})):(l[f]=v,d&&!m&&v.issues.length&&(m=de(v)))}if(t.rest&&!m){let f=i.length-1,v=a.slice(i.length),h=r.issues.length;for(let b of v){if(d&&r.issues.length!==h){if(de(r,h))break;h=r.issues.length}f++;let E=t.rest._zod.run({value:b,issues:[]},n);E instanceof Promise?s.push(E.then(z=>fm(z,r,f))):fm(E,r,f)}}return s.length?Promise.all(s).then(()=>pm(l,r,i,a,c)):pm(l,r,i,a,c)}});function mm(e,t){for(let i=e.length-1;i>=0;i--)if(!(t==="optin"?e[i]._zod.optin!==void 0:e[i]._zod.optout==="optional"))return i+1;return 0}function fm(e,t,i){e.issues.length&&t.issues.push(...ve(i,e.issues)),t.value[i]=e.value}function pm(e,t,i,o,r){for(let n=0;n<i.length;n++){let a=e[n],s=n<o.length;if(!s&&n>=r&&i[n]._zod.optin==="optional"){t.value.length=n;break}if(a.issues.length){if(!s&&n>=r){t.value.length=n;break}t.issues.push(...ve(n,a.issues))}t.value[n]=a.value}for(let n=t.value.length-1;n>=o.length&&(i[n]._zod.optout==="optional"&&t.value[n]===void 0);n--)t.value.length=n;return t}var cc=p("$ZodRecord",(e,t)=>{N.init(e,t);let i=ie.memoizer;i?.attach(e),e._zod.parse=(o,r)=>{let n=o.value;if(!we(n))return o.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),o;let a=[],s=t.keyType._zod.values;if(s&&!t.partial){o.value=i?i.alloc(e,o,{},r):{};let u=new Set;for(let l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(u.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let d=t.keyType._zod.run({value:l,issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(v=>he(v,r,H())),input:l,path:[l],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:n[l],issues:[]},r);f instanceof Promise?a.push(f.then(v=>{v.issues.length&&o.issues.push(...ve(l,v.issues)),o.value[m]=v.value})):(f.issues.length&&o.issues.push(...ve(l,f.issues)),o.value[m]=f.value)}let c;for(let l in n)if(!u.has(l))if(t.mode==="loose"){if(l==="__proto__")continue;o.value[l]=n[l]}else c=c??[],c.push(l);c&&c.length>0&&o.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c,continue:!0})}else{o.value=i?i.alloc(e,o,{},r):{};let u;for(let c of Reflect.ownKeys(n)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,c))continue;let l=t.keyType._zod.run({value:c,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&Ze.test(c)&&l.issues.length){let v=t.keyType._zod.run({value:Number(c),issues:[]},r);if(v instanceof Promise)throw new Error("Async schemas not supported in object keys currently");v.issues.length===0&&(l=v)}if(l.issues.length){t.mode==="loose"?o.value[c]=n[c]:s?(u=u??[],u.push(c)):o.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(v=>he(v,r,H())),input:c,path:[c],inst:e});continue}let m=l.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:n[c],issues:[]},r);f instanceof Promise?a.push(f.then(v=>{v.issues.length&&o.issues.push(...ve(c,v.issues)),o.value[m]=v.value})):(f.issues.length&&o.issues.push(...ve(c,f.issues)),o.value[m]=f.value)}u&&u.length>0&&o.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:u,continue:!0})}return a.length?Promise.all(a).then(()=>o):o}}),uc=p("$ZodMap",(e,t)=>{N.init(e,t);let i=ie.memoizer;i?.attach(e),e._zod.parse=(o,r)=>{let n=o.value;if(!(n instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),o;let a=[];o.value=i?i.alloc(e,o,new Map,r):new Map;let s=r?.abortEarly,u=o.issues.length;for(let[c,l]of n){if(s&&o.issues.length!==u){if(de(o,u))break;u=o.issues.length}let d=t.keyType._zod.run({value:c,issues:[]},r),m=t.valueType._zod.run({value:l,issues:[]},r);d instanceof Promise||m instanceof Promise?a.push(Promise.all([d,m]).then(([f,v])=>{gm(f,v,o,c,n,e,r)})):gm(d,m,o,c,n,e,r)}return a.length?Promise.all(a).then(()=>o):o}});function gm(e,t,i,o,r,n,a){e.issues.length&&(pr.has(typeof o)?i.issues.push(...ve(o,e.issues)):i.issues.push({code:"invalid_key",origin:"map",input:r,inst:n,issues:e.issues.map(s=>he(s,a,H()))})),t.issues.length&&(pr.has(typeof o)?i.issues.push(...ve(o,t.issues)):i.issues.push({origin:"map",code:"invalid_element",input:r,inst:n,key:o,issues:t.issues.map(s=>he(s,a,H()))})),i.value.set(e.value,t.value)}var lc=p("$ZodSet",(e,t)=>{N.init(e,t);let i=ie.memoizer;i?.attach(e),e._zod.parse=(o,r)=>{let n=o.value;if(!(n instanceof Set))return o.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),o;let a=[];o.value=i?i.alloc(e,o,new Set,r):new Set;let s=r?.abortEarly,u=o.issues.length;for(let c of n){if(s&&o.issues.length!==u){if(de(o,u))break;u=o.issues.length}let l=t.valueType._zod.run({value:c,issues:[]},r);l instanceof Promise?a.push(l.then(d=>vm(d,o))):vm(l,o)}return a.length?Promise.all(a).then(()=>o):o}});function vm(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var dc=p("$ZodEnum",(e,t)=>{N.init(e,t);let i=wt(t.entries),o=new Set(i);e._zod.values=o,R(e,"pattern",r=>{let n=wt(r.def.entries).filter(a=>pr.has(typeof a));return new RegExp(n.length?`^(${n.map(a=>Ie(a.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,n)=>{let a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:i,input:a,inst:e}),r}}),mc=p("$ZodLiteral",(e,t)=>{N.init(e,t);let i=new Set(t.values);e._zod.values=i,R(e,"pattern",o=>{let r=o.def.values;return new RegExp(r.length?`^(${r.map(n=>typeof n=="string"?Ie(n):n?Ie(n.toString()):String(n)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,r)=>{let n=o.value;return i.has(n)||o.issues.push({code:"invalid_value",values:t.values,input:n,inst:e}),o}}),fc=p("$ZodFile",(e,t)=>{N.init(e,t),e._zod.parse=(i,o)=>{let r=i.value;return r instanceof File||i.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),i}}),pc=p("$ZodTransform",(e,t)=>{N.init(e,t),e._zod.optin="optional",ie.memoizer?.guard(e),e._zod.parse=(i,o)=>{if(o.direction==="backward")throw new Ke(e.constructor.name);let r=t.transform(i.value,i);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(i.value=a,i));if(r instanceof Promise)throw new $e;return i.value=r,i}});function hm(e,t){return e.value=t.issues.length?void 0:t.value,e}var ai=p("$ZodOptional",(e,t)=>{N.init(e,t),R(e,"optin",i=>i.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",R(e,"values",i=>{let o=i.def.innerType._zod.values;return o?new Set([...o,void 0]):void 0}),R(e,"pattern",i=>{let o=i.def.innerType._zod.pattern;return o?new RegExp(`^(${Re(o.source)})?$`):void 0}),e._zod.parse=(i,o)=>{if(i.value===void 0){if(t.innerType._zod.optin!=="defaulted")return i;let r=t.innerType._zod.run({value:i.value,issues:[]},o);return r instanceof Promise?r.then(n=>hm(i,n)):hm(i,r)}return t.innerType._zod.run(i,o)}}),gc=p("$ZodExactOptional",(e,t)=>{ai.init(e,t),R(e,"values",i=>i.def.innerType._zod.values),R(e,"pattern",i=>i.def.innerType._zod.pattern),e._zod.parse=(i,o)=>t.innerType._zod.run(i,o)}),vc=p("$ZodNullable",(e,t)=>{N.init(e,t),R(e,"optin",i=>i.def.innerType._zod.optin),R(e,"optout",i=>i.def.innerType._zod.optout),R(e,"pattern",i=>{let o=i.def.innerType._zod.pattern;return o?new RegExp(`^(${Re(o.source)}|null)$`):void 0}),R(e,"values",i=>i.def.innerType._zod.values?new Set([...i.def.innerType._zod.values,null]):void 0),e._zod.parse=(i,o)=>i.value===null?i:t.innerType._zod.run(i,o)}),hc=p("$ZodDefault",(e,t)=>{N.init(e,t),e._zod.optin="defaulted",R(e,"values",i=>i.def.innerType._zod.values),e._zod.parse=(i,o)=>{if(o.direction==="backward")return t.innerType._zod.run(i,o);if(i.value===void 0)return i.value=t.defaultValue,i;let r=t.innerType._zod.run(i,o);return r instanceof Promise?r.then(n=>$m(n,t)):$m(r,t)}});function $m(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var $c=p("$ZodPrefault",(e,t)=>{N.init(e,t),e._zod.optin="defaulted",R(e,"values",i=>i.def.innerType._zod.values),e._zod.parse=(i,o)=>(o.direction==="backward"||i.value===void 0&&(i.value=t.defaultValue),t.innerType._zod.run(i,o))}),yc=p("$ZodNonOptional",(e,t)=>{N.init(e,t),R(e,"values",i=>{let o=i.def.innerType._zod.values;return o?new Set([...o].filter(r=>r!==void 0)):void 0}),e._zod.parse=(i,o)=>{let r=t.innerType._zod.run(i,o);return r instanceof Promise?r.then(n=>ym(n,e)):ym(r,e)}});function ym(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var _c=p("$ZodSuccess",(e,t)=>{N.init(e,t),e._zod.parse=(i,o)=>{if(o.direction==="backward")throw new Ke("ZodSuccess");let r=t.innerType._zod.run(i,o);return r instanceof Promise?r.then(n=>(i.value=n.issues.length===0,i)):(i.value=r.issues.length===0,i)}});function _m(e,t,i,o){return t.issues.length?(e.value=i.catchValue({...t,value:e.value,error:{issues:t.issues.map(r=>he(r,o,H()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var bc=p("$ZodCatch",(e,t)=>{N.init(e,t),R(e,"optin",i=>i.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),R(e,"optout",i=>i.def.innerType._zod.optout),R(e,"values",i=>i.def.innerType._zod.values),e._zod.parse=(i,o)=>{if(o.direction==="backward")return t.innerType._zod.run(i,o);let r=t.innerType._zod.run({value:i.value,issues:[]},o);return r instanceof Promise?r.then(n=>_m(i,n,t,o)):_m(i,r,t,o)}}),kc=p("$ZodNaN",(e,t)=>{N.init(e,t),e._zod.parse=(i,o)=>((typeof i.value!="number"||!Number.isNaN(i.value))&&i.issues.push({input:i.value,inst:e,expected:"nan",code:"invalid_type"}),i)}),si=p("$ZodPipe",(e,t)=>{N.init(e,t),R(e,"values",i=>i.def.in._zod.values),R(e,"optin",i=>i.def.in._zod.optin),R(e,"optout",i=>i.def.out._zod.optout),R(e,"propValues",i=>i.def.in._zod.propValues),e._zod.parse=(i,o)=>{if(o.direction==="backward"){let n=t.out._zod.run(i,o);return n instanceof Promise?n.then(a=>Vn(a,t.in,o)):Vn(n,t.in,o)}let r=t.in._zod.run(i,o);return r instanceof Promise?r.then(n=>Vn(n,t.out,o)):Vn(r,t.out,o)}});function Vn(e,t,i){return e.issues.some(o=>o.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}var Nr=p("$ZodCodec",(e,t)=>{N.init(e,t),R(e,"values",i=>i.def.in._zod.values),R(e,"optin",i=>i.def.in._zod.optin),R(e,"optout",i=>i.def.out._zod.optout),R(e,"propValues",i=>i.def.in._zod.propValues),e._zod.parse=(i,o)=>{if((o.direction||"forward")==="forward"){let n=t.in._zod.run(i,o);return n instanceof Promise?n.then(a=>Jn(a,t,o)):Jn(n,t,o)}else{let n=t.out._zod.run(i,o);return n instanceof Promise?n.then(a=>Jn(a,t,o)):Jn(n,t,o)}}});function Jn(e,t,i){if(e.issues.length)return e.aborted=!0,e;if((i.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(n=>Bn(e,n,t.out,i)):Bn(e,r,t.out,i)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(n=>Bn(e,n,t.in,i)):Bn(e,r,t.in,i)}}function Bn(e,t,i,o){return e.issues.length?(e.aborted=!0,e):i._zod.run({value:t,issues:e.issues},o)}var xc=p("$ZodPreprocess",(e,t)=>{si.init(e,t)}),wc=p("$ZodReadonly",(e,t)=>{N.init(e,t),R(e,"propValues",i=>i.def.innerType._zod.propValues),R(e,"values",i=>i.def.innerType._zod.values),R(e,"optin",i=>i.def.innerType?._zod?.optin),R(e,"optout",i=>i.def.innerType?._zod?.optout),e._zod.parse=(i,o)=>{if(o.direction==="backward")return t.innerType._zod.run(i,o);let r=t.innerType._zod.run(i,o);return r instanceof Promise?r.then(bm):bm(r)}});function bm(e){return e.memo||(e.value=Object.freeze(e.value)),e}function X$(e){let t=e._zod.def,i=t.pattern,o=!!t.format?.includes("int"),r,n;for(let s of t.checks??[]){let u=s._zod.def;u.pattern&&(i=u.pattern),o||(o=!!u.format?.includes("int"));let c=u.minimum??u.length,l=u.maximum??u.length;c!==void 0&&(r===void 0||c>r)&&(r=c),l!==void 0&&(n===void 0||l<n)&&(n=l)}if(i)return i.source;if(r!==void 0&&n!==void 0&&r>n)return"(?!)";if(r!==void 0||n!==void 0)return La({minimum:r,maximum:n}).source;let a=e._zod.pattern;return(o&&a===Ze?Ir:a)?.source}function vs(e){let t=e._zod.def,i=e._zod.pattern?.source,o=t.innerType??e._zod.innerType;if(o){let r=o._zod.pattern?.source,n=vs(o);return i&&r&&n&&n!==r?i.replace(Re(r),()=>Re(n)):i}if(t.options){let r=t.options.map(vs);if(r.every(Boolean))return`^(${r.map(n=>Re(n)).join("|")})$`}return X$(e)}var Ic=p("$ZodTemplateLiteral",(e,t)=>{N.init(e,t);let i=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){let r=vs(o);if(!r)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);i.push(Re(r))}else if(o===null||ea.has(typeof o))i.push(Ie(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${i.join("")}$`),e._zod.parse=(o,r)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Sc=p("$ZodFunction",(e,t)=>(N.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=i=>{if(typeof i!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...o){let r=e._def.input?zn(e._def.input,o):o,n=Reflect.apply(i,this,r);return e._def.output?zn(e._def.output,n):n},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=i=>{if(typeof i!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...o){let r=e._def.input?await jn(e._def.input,o):o,n=await Reflect.apply(i,this,r);return e._def.output?await jn(e._def.output,n):n},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(i,o)=>typeof i.value!="function"?(i.issues.push({code:"invalid_type",expected:"function",input:i.value,inst:e}),i):(e._def.output&&e._def.output._zod.def.type==="promise"?i.value=e.implementAsync(i.value):i.value=e.implement(i.value),i),e.input=(...i)=>{let o=e.constructor;return Array.isArray(i[0])?new o({type:"function",input:new oi({type:"tuple",items:i[0],rest:i[1]}),output:e._def.output}):new o({type:"function",input:i[0],output:e._def.output})},e.output=i=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:i})},e)),zc=p("$ZodPromise",(e,t)=>{N.init(e,t),e._zod.parse=(i,o)=>Promise.resolve(i.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),Tr=p("$ZodLazy",(e,t)=>{N.init(e,t),Ho(e._zod,"innerType",()=>{let i=t;return i._cachedInner||(i._cachedInner=t.getter()),i._cachedInner}),R(e,"pattern",i=>i.innerType?._zod?.pattern),R(e,"propValues",i=>i.innerType?._zod?.propValues),R(e,"optin",i=>i.innerType?._zod?.optin??void 0),R(e,"optout",i=>i.innerType?._zod?.optout??void 0),e._zod.parse=(i,o)=>e._zod.innerType._zod.run(i,o)}),jc=p("$ZodCustom",(e,t)=>{W.init(e,t),N.init(e,t),e._zod.parse=(i,o)=>i,e._zod.check=i=>{let o=i.value,r=t.fn(o);if(r instanceof Promise)return r.then(n=>km(n,i,o,e));km(r,i,o,e)}});function km(e,t,i,o){if(!e){let r={code:"custom",input:i,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(jt(r))}}var di=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},Oc="~memo",Om=[];function Em(e){return e!==null&&typeof e=="object"}function Pc(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var Um=new WeakMap,Nt=0,li=1,Cr=2;function Rr(e,t,i){let o=Um.get(e);if(o!==void 0)return o?Cr:Nt;if(t.has(e))return Cr;t.add(e);let r=Nt,n=l=>{if(r!==Cr&&l?._zod){let d=Rr(l,t,i);d>r&&(r=d)}},a=(l,d)=>{let m=Nt;for(let f of Reflect.ownKeys(l)){let v=Object.getOwnPropertyDescriptor(l,f);if(d&&!v.enumerable)continue;let h=v.get?li:v.value?._zod?Rr(v.value,t,i):Nt;h>m&&(m=h)}return m},s=l=>{l>r&&(r=l)},u=e._zod.def,c=u.type;switch(c){case"object":{let l=zt(u);s(l?a(l,!0):li),n(u.catchall);break}case"array":n(u.element);break;case"tuple":for(let l of u.items)n(l);n(u.rest);break;case"record":case"map":n(u.keyType),n(u.valueType);break;case"set":n(u.valueType);break;case"union":for(let l of u.options)n(l);break;case"intersection":n(u.left),n(u.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":n(u.innerType);break;case"pipe":n(u.in),n(u.out);break;case"function":n(u.input),n(u.output);break;case"lazy":{let l=u._cachedInner??(i?e._zod.innerType:void 0);s(l?Rr(l,t,!1):li);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in u){let d=Object.getOwnPropertyDescriptor(u,l);if(!d||d.get)continue;let m=d.value;if(!(!m||typeof m!="object")){if(m._zod)n(m);else if(Array.isArray(m))for(let f of m)n(f)}}}return t.delete(e),H$(e,r)}function H$(e,t){return t!==li&&Um.set(e,t===Cr),t}function mi(e){return Rr(e,new Set,!0)!==Nt}function Y$(e,t){let i=e.buckets.get(t);return i||(i=new WeakMap,e.buckets.set(t,i)),i}var ci,ui=[],Q$={alloc(e,t,i){let o=ci;if(!o)return i;ci=void 0;let r={value:i,issues:null};return o.set(t.value,r),ui.push(r),i},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let i=e._zod.parse,o=(r,n)=>{if(n.direction!=="backward"&&fi(n,r.value))throw new di;return i(r,n)};e._zod.parse=o,e._zod.run===i&&(e._zod.run=o)})},attach(e){var t;let i,o=!1,r,n;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,s=(u,c)=>{if(i===void 0){let E=Rr(e,new Set,!1);if(E===Nt)return e._zod.parse=a,e._zod.run===s&&(e._zod.run=a),a(u,c);E===Cr||o?i=!0:o=!0}let l=u.value;if(!Em(l))return a(u,c);let d=c[Oc];d||(d={buckets:new WeakMap,backEdges:void 0},c[Oc]=d);let m;r===c?m=n:(m=Y$(d,e),r=c,n=m);let f=m.get(l);if(f)return u.value=f.value,f.issues?f.issues.length&&u.issues.push(...Pc(f.issues)):(u.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(f.value)),u;ci=m;let v=ui.length,h=a(u,c);ci=void 0;let b=ui.length>v?ui.pop():void 0;return h instanceof Promise?h.then(E=>(b&&(b.issues=E.issues.length?Pc(E.issues):Om),E)):(b&&(b.issues=h.issues.length?Pc(h.issues):Om),h)};e._zod.parse=s,e._zod.run===a&&(e._zod.run=s)})}};function Zr(){return Q$}function fi(e,t){let i=e[Oc]?.backEdges;return i!==void 0&&Em(t)&&i.has(t)}var Fr={};Te(Fr,{ar:()=>Dm,az:()=>Am,be:()=>Tm,bg:()=>Cm,bn:()=>Rm,ca:()=>Zm,ckb:()=>Lm,cs:()=>Fm,da:()=>Mm,de:()=>Vm,el:()=>Jm,en:()=>pi,eo:()=>Bm,es:()=>Km,fa:()=>Wm,fi:()=>Gm,fr:()=>qm,frCA:()=>Xm,gu:()=>Hm,he:()=>Ym,hi:()=>Qm,hr:()=>ef,hu:()=>tf,hy:()=>nf,id:()=>of,is:()=>af,it:()=>sf,ja:()=>cf,ka:()=>uf,kh:()=>lf,km:()=>gi,kn:()=>df,ko:()=>mf,lt:()=>pf,mk:()=>gf,ms:()=>vf,ne:()=>hf,nl:()=>$f,nn:()=>yf,no:()=>_f,ota:()=>bf,pl:()=>xf,ps:()=>kf,pt:()=>wf,ptBR:()=>If,ro:()=>Sf,ru:()=>jf,sk:()=>Pf,sl:()=>Of,sv:()=>Ef,ta:()=>Uf,tg:()=>Df,th:()=>Af,tk:()=>Nf,tr:()=>Tf,ua:()=>Cf,uk:()=>vi,ur:()=>Rf,uz:()=>Zf,vi:()=>Lf,yo:()=>Vf,zhCN:()=>Ff,zhTW:()=>Mf});var ey=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},map:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let i={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",mac:"\u0639\u0646\u0648\u0627\u0646 MAC",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",credit_card:"\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",currency_code:"\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",iban:"IBAN",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${n}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${y(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${n} ${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${n} ${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${n} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:n.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${n.suffix}"`:n.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${n.includes}"`:n.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${n.pattern}`:`${i[n.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${g(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Dm(){return{localeError:ey()}}var ty=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"},map:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kart\u0131 n\xF6mr\u0259si",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${n}, daxil olan ${s}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${y(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${n}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${n}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${n.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:n.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${n.suffix}" il\u0259 bitm\u0259lidir`:n.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${n.includes}" daxil olmal\u0131d\u0131r`:n.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${n.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${i[n.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${g(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Am(){return{localeError:ty()}}function Nm(e,t,i,o){let r=Math.abs(e),n=r%10,a=r%100;return a>=11&&a<=19?o:n===1?t:n>=2&&n<=4?i:o}var ry=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let i={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",mac:"MAC \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",credit_card:"\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${n}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${y(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),u=Nm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${n}${r.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),u=Nm(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${n}${r.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${n.includes}"`:n.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${i[n.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${g(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Tm(){return{localeError:ry()}}var ny=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(r){return e[r]??null}let i={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${n}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${y(r.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${n}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${n}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;if(n.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${n.prefix}"`;if(n.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${n.suffix}"`;if(n.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${n.includes}"`;if(n.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${n.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return n.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),n.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),n.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${i[n.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${g(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Cm(){return{localeError:ny()}}var iy=()=>{let e={string:{unit:"\u0985\u0995\u09CD\u09B7\u09B0",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},file:{unit:"\u09AC\u09BE\u0987\u099F",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},array:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},set:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},map:{unit:"\u098F\u09A8\u09CD\u099F\u09CD\u09B0\u09BF",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"}};function t(r){return e[r]??null}let i={regex:"\u0987\u09A8\u09AA\u09C1\u099F",email:"\u0987\u09AE\u09C7\u0987\u09B2 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",url:"URL",emoji:"\u0987\u09AE\u09CB\u099C\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u09A4\u09BE\u09B0\u09BF\u0996 \u0993 \u09B8\u09AE\u09AF\u09BC",date:"ISO \u09A4\u09BE\u09B0\u09BF\u0996",time:"ISO \u09B8\u09AE\u09AF\u09BC",duration:"ISO \u09B8\u09AE\u09AF\u09BC\u0995\u09BE\u09B2",ipv4:"IPv4 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",ipv6:"IPv6 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",mac:"MAC \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",cidrv4:"IPv4 \u09B0\u09C7\u099E\u09CD\u099C",cidrv6:"IPv6 \u09B0\u09C7\u099E\u09CD\u099C",base64:"base64-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",base64url:"base64url-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",json_string:"JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",e164:"E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",credit_card:"\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",currency_code:"\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",iban:"IBAN",jwt:"JWT",template_literal:"\u0987\u09A8\u09AA\u09C1\u099F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${n}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${s}`}case"invalid_value":return r.values.length===1?`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${y(r.values[0])}`:`\u0985\u09AC\u09C8\u09A7 \u0985\u09AA\u09B6\u09A8: ${g(r.values," | ")} \u098F\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7 \u098F\u0995\u099F\u09BF \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${r.origin??"\u09AE\u09BE\u09A8"} ${n}${r.maximum.toString()} ${a.unit??"\u098F\u09B2\u09BF\u09AE\u09C7\u09A8\u09CD\u099F"} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${r.origin??"\u09AE\u09BE\u09A8"} ${n}${r.maximum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${r.origin} ${n}${r.minimum.toString()} ${a.unit} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${r.origin} ${n}${r.minimum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${n.prefix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C1\u09B0\u09C1 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:n.format==="ends_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${n.suffix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C7\u09B7 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:n.format==="includes"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${n.includes}" \u0985\u09A8\u09CD\u09A4\u09B0\u09CD\u09AD\u09C1\u0995\u09CD\u09A4 \u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7`:n.format==="regex"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: ${n.pattern} \u09AA\u09CD\u09AF\u09BE\u099F\u09BE\u09B0\u09CD\u09A8 \u09AE\u09BF\u09B2\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09AC\u09C8\u09A7 ${i[n.format]??r.format}`}case"not_multiple_of":return`\u0985\u09AC\u09C8\u09A7 \u09A8\u09AE\u09CD\u09AC\u09B0: ${r.divisor} \u098F\u09B0 \u0997\u09C1\u09A3\u09BF\u09A4\u0995 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`;case"unrecognized_keys":return`\u0985\u099A\u09C7\u09A8\u09BE \u0995\u09C0${r.keys.length>1?"\u0997\u09C1\u09B2\u09CB":""}: ${g(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u0995\u09C0`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0985\u09AC\u09C8\u09A7 \u09A1\u09BF\u09B8\u0995\u09CD\u09B0\u09BF\u09AE\u09BF\u09A8\u09C7\u099F\u09B0 \u09AE\u09BE\u09A8\u0964 \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F";case"invalid_element":return`${r.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u09AE\u09BE\u09A8`;default:return"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F"}}};function Rm(){return{localeError:iy()}}var oy=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let i={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",mac:"adre\xE7a MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de targeta de cr\xE8dit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${n}, s'ha rebut ${s}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${y(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${g(r.values," o ")}`;case"too_big":{let n=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${n} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${n} ${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${n} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${n.prefix}"`:n.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${n.suffix}"`:n.format==="includes"?`Format inv\xE0lid: ha d'incloure "${n.includes}"`:n.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${n.pattern}`:`Format inv\xE0lid per a ${i[n.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${g(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function Zm(){return{localeError:oy()}}var ay=()=>{let e={string:{unit:"\u067E\u06CC\u062A",verb:"\u0628\u06CE\u062A"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u0628\u06CE\u062A"},array:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},set:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},map:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"}};function t(r){return e[r]??null}let i={regex:"regex",email:"\u0626\u06CC\u0645\u06D5\u06CC\u06B5",url:"\u0628\u06D5\u0633\u062A\u06D5\u0631 (URL)",emoji:"\u0626\u06CC\u0645\u06C6\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0695\u06CE\u06A9\u06D5\u0648\u062A \u0648 \u06A9\u0627\u062A",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",time:"\u06A9\u0627\u062A",duration:"\u0645\u0627\u0648\u06D5",ipv4:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv4",ipv6:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv6",mac:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC MAC",cidrv4:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv4",cidrv6:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv6",base64:"\u062F\u06D5\u0642\u06CC base64",base64url:"\u062F\u06D5\u0642\u06CC base64url",json_string:"\u062F\u06D5\u0642\u06CC JSON",e164:"\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",credit_card:"\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",currency_code:"\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",iban:"IBAN",jwt:"JWT",template_literal:"\u062A\u06CE\u06A9\u0631\u062F\u06D5"},o={nan:"NaN",string:"\u0646\u0648\u0648\u0633\u06CC\u0646",number:"\u0698\u0645\u0627\u0631\u06D5",boolean:"boolean",array:"array",object:"object",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",integer:"\u0698\u0645\u0627\u0631\u06D5",float:"\u0698\u0645\u0627\u0631\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a,u=["\u0627","\u0648","\u06C6","\u0648\u0648","\u06D5","\u06CC","\u06CE"].some(l=>s.endsWith(l))?"\u06CC\u06D5":"\u06D5",c=/^[a-zA-Z]+$/.test(s);return a==="null"||a==="undefined"?"\u062F\u0627\u0648\u0627\u06A9\u0631\u0627\u0648\u06D5":`\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${n} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${s}${c?"":u}`}case"invalid_value":return r.values.length===1?`\u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0648\u0633\u062A\u06D5: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${y(r.values[0])} \u0628\u06CE\u062A`:`\u0647\u06D5\u06B5\u0628\u0698\u0627\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 \u06CC\u06D5\u06A9\u06CE\u06A9 \u0628\u06CE\u062A \u0644\u06D5 ${g(r.values,"|")}`;case"too_big":{let n=t(r.origin);return n?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${r.maximum.toString()} ${n.unit} ${n.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${r.maximum.toString()} \u0628\u06CE\u062A`}case"too_small":{let n=t(r.origin);return n?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${r.minimum.toString()} ${n.unit} ${n.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${r.minimum.toString()} \u0628\u06CE\u062A`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u062F\u06D5\u0633\u062A\u067E\u06CE\u0628\u06A9\u0627\u062A \u0628\u06D5 "${n.prefix}"`:n.format==="ends_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u06A9\u06C6\u062A\u0627\u06CC\u06CC\u0628\u06CE\u062A \u0628\u06D5 "${n.suffix}"`:n.format==="includes"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 "${n.includes}" \u0644\u06D5\u062E\u06C6\u0628\u06AF\u0631\u06CE\u062A`:n.format==="regex"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0644\u06D5\u06AF\u06D5\u06B5 \u067E\u0627\u062A\u06CE\u0631\u0646\u06CC ${n.pattern} \u0628\u06AF\u0648\u0646\u062C\u06CE\u062A`:`\u0628\u06D5\u0647\u0627\u06CC ${i[n.format]??r.format} \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`}case"not_multiple_of":return`\u0698\u0645\u0627\u0631\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u062F\u06D5\u0628\u06CE\u062A \u0686\u06D5\u0646\u062F \u0647\u06CE\u0646\u062F\u06D5 \u0628\u06CE\u062A \u0628\u06C6 ${r.divisor}`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: ${g(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A \u0644\u06D5 ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0628\u06D5\u0647\u0627\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648 \u0647\u06D5\u06CC\u06D5. \u0628\u06D5\u0647\u0627\u06CC \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648: ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u06CC\u06D5\u06A9\u06AF\u0631\u062A\u0646\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A";case"invalid_element":return`${r.origin} \u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`;default:return"\u062A\u06CE\u06A9\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A"}}};function Lm(){return{localeError:ay()}}var sy=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"},map:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let i={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditn\xED karty",currency_code:"k\xF3d m\u011Bny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${n}, obdr\u017Eeno ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${y(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${n}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${n}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${n.prefix}"`:n.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${n.suffix}"`:n.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${n.includes}"`:n.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${n.pattern}`:`Neplatn\xFD form\xE1t ${i[n.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${g(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function Fm(){return{localeError:sy()}}var cy=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let i={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${n}, fik ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${y(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin),s=o[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${n} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${n} ${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin),s=o[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${n} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ugyldig streng: skal starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: skal ende med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: skal indeholde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${i[n.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${g(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function Mm(){return{localeError:cy()}}var uy=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"W\xE4hrungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${n}, erhalten ${s}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${y(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${n}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${n}${r.maximum.toString()} ist`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${n}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${n}${r.minimum.toString()} ist`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ung\xFCltiger String: muss mit "${n.prefix}" beginnen`:n.format==="ends_with"?`Ung\xFCltiger String: muss mit "${n.suffix}" enden`:n.format==="includes"?`Ung\xFCltiger String: muss "${n.includes}" enthalten`:n.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${n.pattern} entsprechen`:`Ung\xFCltig: ${i[n.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${g(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Vm(){return{localeError:uy()}}var ly=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(r){return e[r]??null}let i={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",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",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",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",credit_card:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2",currency_code:"\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",iban:"IBAN",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return typeof r.expected=="string"&&/^[A-Z]/.test(r.expected)?`\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 ${r.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\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 ${n}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return r.values.length===1?`\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 ${y(r.values[0])}`:`\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 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${n}${r.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${n}${r.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\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 "${n.prefix}"`:n.format==="ends_with"?`\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 "${n.suffix}"`:n.format==="includes"?`\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 "${n.includes}"`:n.format==="regex"?`\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 ${n.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${i[n.format]??r.format}`}case"not_multiple_of":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 ${r.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${r.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${r.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${g(r.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${r.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${r.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function Jm(){return{localeError:ly()}}var dy=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};function r(n,a){return n==="number"&&typeof a=="number"&&!Number.isFinite(a)?String(a):o[n]??n}return n=>{switch(n.code){case"invalid_type":{let a=r(n.expected),s=_(n.input),u=r(s,n.input);return`Invalid input: expected ${a}, received ${u}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${y(n.values[0])}`:`Invalid option: expected one of ${g(n.values,"|")}`;case"too_big":{let a=n.exact?"exactly ":n.inclusive?"<=":"<",s=t(n.origin);return s?`Too big: expected ${n.origin??"value"} to have ${a}${n.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${a}${n.maximum.toString()}`}case"too_small":{let a=n.exact?"exactly ":n.inclusive?">=":">",s=t(n.origin);return s?`Too small: expected ${n.origin} to have ${a}${n.minimum.toString()} ${s.unit}`:`Too small: expected ${n.origin} to be ${a}${n.minimum.toString()}`}case"invalid_format":{let a=n;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${i[a.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${g(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(s=>`'${s}'`).join(" | ")}`:n.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function pi(){return{localeError:dy()}}var my=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let i={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${n}, ricevi\u011Dis ${s}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${y(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${n}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${n}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${n.prefix}"`:n.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${n.suffix}"`:n.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${n.includes}"`:n.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${n.pattern}`:`Nevalida ${i[n.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${g(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function Bm(){return{localeError:my()}}var fy=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let i={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",mac:"direcci\xF3n MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de tarjeta de cr\xE9dito",currency_code:"c\xF3digo de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${n}, recibido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${y(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${n}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${n}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${n.prefix}"`:n.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${n.suffix}"`:n.format==="includes"?`Cadena inv\xE1lida: debe incluir "${n.includes}"`:n.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${n.pattern}`:`Inv\xE1lido ${i[n.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${g(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function Km(){return{localeError:fy()}}var py=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},map:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let i={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",mac:"MAC \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",credit_card:"\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",currency_code:"\u06A9\u062F \u0627\u0631\u0632",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${n} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${y(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${g(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${n}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${n}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${n}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${n}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:n.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${n.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:n.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${n.includes}" \u0628\u0627\u0634\u062F`:n.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${n.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${i[n.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${g(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Wm(){return{localeError:py()}}var gy=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let i={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${n}, oli ${s}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${y(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${n}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${n}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${n.prefix}"`:n.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${n.suffix}"`:n.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${n.includes}"`:n.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${n.pattern}`:`Virheellinen ${i[n.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${g(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Gm(){return{localeError:gy()}}var vy=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let i={regex:"expression r\xE9guli\xE8re",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne de caract\xE8res encod\xE9e en base64",base64url:"cha\xEEne de caract\xE8res encod\xE9e en base64url",json_string:"cha\xEEne de caract\xE8res JSON",e164:"num\xE9ro au format E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},o={string:"cha\xEEne de caract\xE8res",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instance de ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${n} attendu, ${s} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${y(r.values[0])} attendu`:`Option invalide : une valeur parmi ${g(r.values,"|")} attendue`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${o[r.origin]??"valeur"} doit ${a.verb} ${n}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[r.origin]??"valeur"} doit \xEAtre ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${o[r.origin]??"valeur"} doit ${a.verb} ${n}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${o[r.origin]??"valeur"} doit \xEAtre ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Cha\xEEne de caract\xE8res invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne de caract\xE8res invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne de caract\xE8res invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne de caract\xE8res invalide : doit correspondre au motif ${n.pattern}`:`${i[n.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${g(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function qm(){return{localeError:vy()}}var hy=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"},map:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let i={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${n}, re\xE7u ${s}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${y(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${n}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${n}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${n.prefix}"`:n.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${n.suffix}"`:n.format==="includes"?`Cha\xEEne invalide : doit inclure "${n.includes}"`:n.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${n.pattern}`:`${i[n.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${g(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function Xm(){return{localeError:hy()}}var $y=()=>{let e={string:{unit:"\u0A85\u0A95\u0ACD\u0AB7\u0AB0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},file:{unit:"\u0AAC\u0ABE\u0AAF\u0A9F",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},array:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},set:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},map:{unit:"\u0A8F\u0AA8\u0ACD\u0A9F\u0ACD\u0AB0\u0AC0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"}};function t(r){return e[r]??null}let i={regex:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F",email:"\u0A88\u0AAE\u0AC7\u0A87\u0AB2 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",url:"URL",emoji:"\u0A87\u0AAE\u0ACB\u0A9C\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96 \u0A85\u0AA8\u0AC7 \u0AB8\u0AAE\u0AAF",date:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96",time:"ISO \u0AB8\u0AAE\u0AAF",duration:"ISO \u0A85\u0AB5\u0AA7\u0ABF",ipv4:"IPv4 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",ipv6:"IPv6 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",mac:"MAC \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",cidrv4:"IPv4 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",cidrv6:"IPv6 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",base64:"base64-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",base64url:"base64url-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",json_string:"JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",e164:"E.164 \u0AA8\u0A82\u0AAC\u0AB0",credit_card:"\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",currency_code:"\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",iban:"IBAN",jwt:"JWT",template_literal:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${n}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${s}`}case"invalid_value":return r.values.length===1?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${y(r.values[0])}`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB5\u0ABF\u0A95\u0AB2\u0ACD\u0AAA: ${g(r.values," | ")} \u0AAE\u0ABE\u0AA7\u0ACD\u0AAF\u0AAE\u0AA5\u0AC0 \u0A8F\u0A95 \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${r.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${n}${r.maximum.toString()} ${a.unit??"\u0A8F\u0AB2\u0ABF\u0AAE\u0AC7\u0AA8\u0ACD\u0A9F"} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${r.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${n}${r.maximum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${r.origin} ${n}${r.minimum.toString()} ${a.unit} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${r.origin} ${n}${r.minimum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${n.prefix}" \u0AA5\u0AC0 \u0AB6\u0AB0\u0AC2 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:n.format==="ends_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${n.suffix}" \u0AAA\u0AB0 \u0AB8\u0AAE\u0ABE\u0AAA\u0ACD\u0AA4 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:n.format==="includes"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${n.includes}" \u0AB6\u0ABE\u0AAE\u0AC7\u0AB2 \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:n.format==="regex"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: \u0AAA\u0AC7\u0A9F\u0AB0\u0ACD\u0AA8 ${n.pattern} \u0AB8\u0ABE\u0AA5\u0AC7 \u0AAE\u0AC7\u0AB3 \u0A96\u0ABE\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF ${i[n.format]??r.format}`}case"not_multiple_of":return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA8\u0A82\u0AAC\u0AB0: ${r.divisor} \u0AA8\u0ACB \u0A97\u0AC1\u0AA3\u0ABE\u0A82\u0A95 \u0AB9\u0ACB\u0AB5\u0ACB \u0A9C\u0ACB\u0A88\u0A8F`;case"unrecognized_keys":return`\u0A93\u0AB3\u0A96\u0AC0 \u0AB6\u0A95\u0ABE\u0AA4\u0ABE \u0AA8\u0AB9\u0AC0\u0A82 \u0AA4\u0AC7 \u0A95\u0AC0${r.keys.length>1?"\u0A93":""}: ${g(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A95\u0AC0`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA1\u0ABF\u0AB8\u0ACD\u0A95\u0ACD\u0AB0\u0ABF\u0AAE\u0ABF\u0AA8\u0AC7\u0A9F\u0AB0 \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF. \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F";case"invalid_element":return`${r.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF`;default:return"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F"}}};function Hm(){return{localeError:$y()}}var yy=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},i=c=>c?e[c]:void 0,o=c=>{let l=i(c);return l?l.label:c??e.unknown.label},r=c=>`\u05D4${o(c)}`,n=c=>(i(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},mac:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA MAC",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},credit_card:{label:"\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9",gender:"m"},currency_code:{label:"\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\u05E7\u05DC\u05D8",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let l=c.expected,d=u[l??""]??o(l),m=_(c.input),f=u[m]??e[m]?.label??m;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${y(c.values[0])}`;let l=c.values.map(f=>y(f));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let d=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let l=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let v=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(c.origin==="array"||c.origin==="set"){let v=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=c.inclusive?`${c.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let m=c.inclusive?"<=":"<",f=n(c.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${m}${c.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${f} ${m}${c.maximum.toString()}`}case"too_small":{let l=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${l?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let v=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${v}`}if(c.origin==="array"||c.origin==="set"){let v=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let b=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let h=c.inclusive?`${c.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${v} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let m=c.inclusive?">=":">",f=n(c.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${m}${c.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${f} ${m}${c.minimum.toString()}`}case"invalid_format":{let l=c;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let d=s[l.format],m=d?.label??l.format,v=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${v}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${g(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Ym(){return{localeError:yy()}}var _y=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},file:{unit:"\u092C\u093E\u0907\u091F\u094D\u0938",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0901",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"}};function t(r){return e[r]??null}let i={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0908\u092E\u0947\u0932 \u092A\u0924\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0924\u093F\u0925\u093F \u0914\u0930 \u0938\u092E\u092F",date:"ISO \u0924\u093F\u0925\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u092A\u0924\u093E",ipv6:"IPv6 \u092A\u0924\u093E",mac:"MAC \u092A\u0924\u093E",cidrv4:"IPv4 \u0936\u094D\u0930\u0947\u0923\u0940",cidrv6:"IPv6 \u0936\u094D\u0930\u0947\u0923\u0940",base64:"Base64-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",base64url:"Base64URL-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",e164:"E.164 \u0938\u0902\u0916\u094D\u092F\u093E",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${n}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${s}`}case"invalid_value":return r.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${y(r.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${r.origin??"\u092E\u093E\u0928"} \u092E\u0947\u0902 ${n}${r.maximum} ${a.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${r.origin??"\u092E\u093E\u0928"} ${n}${r.maximum} \u0939\u094B`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${r.origin} \u092E\u0947\u0902 ${n}${r.minimum} ${a.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${r.origin} ${n}${r.minimum} \u0939\u094B`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${n.prefix}" \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:n.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${n.suffix}" \u092A\u0930 \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:n.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u0907\u0938\u092E\u0947\u0902 "${n.includes}" \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:n.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u092A\u0948\u091F\u0930\u094D\u0928 ${n.pattern} \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:`\u0905\u092E\u093E\u0928\u094D\u092F ${i[n.format]??r.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: \u092F\u0939 ${r.divisor} \u0915\u093E \u0917\u0941\u0923\u091C \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u0902\u091C\u0940${r.keys.length>1?"\u092F\u093E\u0901":""}: ${g(r.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u0902\u091C\u0940: ${r.origin} \u092E\u0947\u0902`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${r.origin} \u092E\u0947\u0902`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function Qm(){return{localeError:_y()}}var by=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(r){return e[r]??null}let i={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${r.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${n}, a primljeno je ${s}`}case"invalid_value":return r.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${y(r.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${n}${r.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${n}${r.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${n.prefix}"`:n.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${n.suffix}"`:n.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${n.includes}"`:n.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${n.pattern}`:`Neispravna ${i[n.format]??r.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${r.divisor}`;case"unrecognized_keys":return`Neprepoznat${r.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${g(r.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[r.origin]??r.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[r.origin]??r.origin}`;default:return"Neispravan unos"}}};function ef(){return{localeError:by()}}var ky=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let i={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",mac:"MAC c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",credit_card:"hitelk\xE1rtyasz\xE1m",currency_code:"p\xE9nznemk\xF3d",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${n}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${y(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${n}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${n}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\xC9rv\xE9nytelen string: "${n.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:n.format==="ends_with"?`\xC9rv\xE9nytelen string: "${n.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:n.format==="includes"?`\xC9rv\xE9nytelen string: "${n.includes}" \xE9rt\xE9ket kell tartalmaznia`:n.format==="regex"?`\xC9rv\xE9nytelen string: ${n.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${i[n.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${g(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function tf(){return{localeError:ky()}}function rf(e,t,i){return Math.abs(e)===1?t:i}function Tt(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],i=e[e.length-1];return e+(t.includes(i)?"\u0576":"\u0568")}var xy=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},map:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(r){return e[r]??null}let i={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",mac:"MAC \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",credit_card:"\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",currency_code:"\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",iban:"IBAN",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${n}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return r.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${y(r.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),u=rf(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Tt(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${n}${r.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Tt(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),u=rf(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Tt(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${n}${r.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Tt(r.origin)} \u056C\u056B\u0576\u056B ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${n.prefix}"-\u0578\u057E`:n.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${n.suffix}"-\u0578\u057E`:n.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${n.includes}"`:n.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${n.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${i[n.format]??r.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${g(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Tt(r.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Tt(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function nf(){return{localeError:xy()}}var wy=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${n}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${y(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${n}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${n}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`String tidak valid: harus dimulai dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak valid: harus berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak valid: harus menyertakan "${n.includes}"`:n.format==="regex"?`String tidak valid: harus sesuai pola ${n.pattern}`:`${i[n.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${g(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function of(){return{localeError:wy()}}var Iy=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"},map:{unit:"hluti",verb:"a\xF0 hafa"}};function t(r){return e[r]??null}let i={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",credit_card:"kreditkortan\xFAmer",currency_code:"gjaldmi\xF0ilsk\xF3\xF0i",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${n}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${y(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${n}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${n}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${n.prefix}"`:n.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${n.suffix}"`:n.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${n.includes}"`:n.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${n.pattern}`:`Rangt ${i[n.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${g(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function af(){return{localeError:Iy()}}var Sy=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${n}, ricevuto ${s}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${y(r.values[0])}`:`Opzione non valida: atteso uno tra ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${n}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${n}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Stringa non valida: deve iniziare con "${n.prefix}"`:n.format==="ends_with"?`Stringa non valida: deve terminare con "${n.suffix}"`:n.format==="includes"?`Stringa non valida: deve includere "${n.includes}"`:n.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${n.pattern}`:`Input non valido: ${i[n.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${g(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function sf(){return{localeError:Sy()}}var zy=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},map:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let i={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",mac:"MAC\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",credit_card:"\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",currency_code:"\u901A\u8CA8\u30B3\u30FC\u30C9",iban:"IBAN",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${n}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${y(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${g(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let n=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let n=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${n}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${n.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:n.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${n.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${i[n.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${g(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function cf(){return{localeError:zy()}}var jy=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},map:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(r){return e[r]??null}let i={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",mac:"MAC \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",credit_card:"\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",currency_code:"\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",iban:"IBAN",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return r.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${y(r.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${g(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${n}${r.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} ${a.verb} ${n}${r.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\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 "${n.prefix}"-\u10D8\u10D7`:n.format==="ends_with"?`\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 "${n.suffix}"-\u10D8\u10D7`:n.format==="includes"?`\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 "${n.includes}"-\u10E1`:n.format==="regex"?`\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 ${n.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${i[n.format]??r.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${r.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${g(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function uf(){return{localeError:jy()}}var Py=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},map:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let i={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",mac:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 MAC",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",credit_card:"\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",currency_code:"\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",iban:"IBAN",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${y(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${n} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${n} ${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${n} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${n.prefix}"`:n.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${n.suffix}"`:n.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${n.includes}"`:n.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${n.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${i[n.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${g(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function gi(){return{localeError:Py()}}function lf(){return gi()}var Oy=()=>{let e={string:{unit:"\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},file:{unit:"\u0CAC\u0CC8\u0C9F\u0CCD\u200C\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},array:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},set:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},map:{unit:"entries",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"}};function t(r){return e[r]??null}let i={regex:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD",email:"email \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95\u0CA6 \u0CB8\u0CAE\u0CAF",date:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95",time:"ISO \u0CB8\u0CAE\u0CAF",duration:"ISO \u0C85\u0CB5\u0CA7\u0CBF",ipv4:"IPv4 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",ipv6:"IPv6 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",mac:"MAC \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",cidrv4:"IPv4 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",cidrv6:"IPv6 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",base64:"base64-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",base64url:"base64url-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",json_string:"JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",e164:"E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",credit_card:"\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",currency_code:"\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",iban:"IBAN",jwt:"JWT",template_literal:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${s}`}case"invalid_value":return r.values.length===1?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${y(r.values[0])}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C86\u0CAF\u0CCD\u0C95\u0CC6: \u0C87\u0CB5\u0CC1\u0C97\u0CB3\u0CB2\u0CCD\u0CB2\u0CBF \u0C92\u0C82\u0CA6\u0CA8\u0CCD\u0CA8\u0CC1 \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.origin??"value"} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${n}${r.maximum.toString()} ${a.unit??"\u0C85\u0C82\u0CB6\u0C97\u0CB3\u0CC1"}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.origin??"value"} \u0C8E\u0C82\u0CA6\u0CC1 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.origin} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${n}${r.minimum.toString()} ${a.unit}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.origin} \u0C8E\u0C82\u0CA6\u0CC1 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0CAA\u0CCD\u0CB0\u0CBE\u0CB0\u0C82\u0CAD\u0CBF\u0CB8\u0CAC\u0CC7\u0C95\u0CC1 "${n.prefix}"`:n.format==="ends_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0C95\u0CCA\u0CA8\u0CC6\u0C97\u0CCA\u0CB3\u0CCD\u0CB3\u0CAC\u0CC7\u0C95\u0CC1 "${n.suffix}"`:n.format==="includes"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C92\u0CB3\u0C97\u0CCA\u0C82\u0CA1\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 "${n.includes}"`:n.format==="regex"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0CAE\u0CBE\u0CA6\u0CB0\u0CBF\u0C97\u0CC6 \u0CB9\u0CCA\u0C82\u0CA6\u0CBF\u0C95\u0CC6\u0CAF\u0CBE\u0C97\u0CAC\u0CC7\u0C95\u0CC1 ${n.pattern}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF ${i[n.format]??r.format}`}case"not_multiple_of":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6: \u0CAC\u0CB9\u0CC1\u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6\u0CAF\u0CBE\u0C97\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 ${r.divisor}`;case"unrecognized_keys":return`\u0C97\u0CC1\u0CB0\u0CC1\u0CA4\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CA6 \u0C95\u0CC0 ${r.keys.length>1?"s":""}: ${g(r.keys,", ")}`;case"invalid_key":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0C95\u0CC0 \u0C87\u0CA8\u0CCD ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CA4\u0CBE\u0CB0\u0CA4\u0CAE\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF. \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD";case"invalid_element":return`\u0CB0\u0CB2\u0CCD\u0CB2\u0CBF \u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF ${r.origin}`;default:return"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD"}}};function df(){return{localeError:Oy()}}var Ey=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"},map:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let i={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",mac:"MAC \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",credit_card:"\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",currency_code:"\uD1B5\uD654 \uCF54\uB4DC",iban:"IBAN",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${n}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${y(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${g(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let n=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=n==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),u=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${u} ${n}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${n}${a}`}case"too_small":{let n=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=n==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),u=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${u} ${n}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${n}${a}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:n.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${n.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:n.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${n.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${i[n.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${g(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function mf(){return{localeError:Ey()}}var Lr=e=>e.charAt(0).toUpperCase()+e.slice(1);function ff(e){let t=Math.abs(e),i=t%10,o=t%100;return o>=11&&o<=19||i===0?"many":i===1?"one":"few"}var Uy=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(r,n,a,s){let u=e[r]??null;return u===null?u:{unit:u.unit[n],verb:u.verb[s][a?"inclusive":"notInclusive"]}}let i={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",credit_card:"kredito kortel\u0117s numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${n}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${y(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${g(r.values,"|")} pasirinkim\u0173`;case"too_big":{let n=o[r.origin]??r.origin,a=t(r.origin,ff(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${Lr(n??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Lr(n??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let n=o[r.origin]??r.origin,a=t(r.origin,ff(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${Lr(n??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Lr(n??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${n.prefix}"`:n.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${n.suffix}"`:n.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${n.includes}"`:n.format==="regex"?`Eilut\u0117 privalo atitikti ${n.pattern}`:`Neteisingas ${i[n.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${g(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let n=o[r.origin]??r.origin;return`${Lr(n??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function pf(){return{localeError:Uy()}}var Dy=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},map:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let i={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",mac:"MAC \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",credit_card:"\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${y(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${n}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${n}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${n.pattern}`:`Invalid ${i[n.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${g(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function gf(){return{localeError:Dy()}}var Ay=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${n}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${y(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${n}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${n}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`String tidak sah: mesti bermula dengan "${n.prefix}"`:n.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${n.suffix}"`:n.format==="includes"?`String tidak sah: mesti mengandungi "${n.includes}"`:n.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${n.pattern}`:`${i[n.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${g(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function vf(){return{localeError:Ay()}}var Ny=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},file:{unit:"\u092C\u093E\u0907\u091F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"}};function t(r){return e[r]??null}let i={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0907\u092E\u0947\u0932 \u0920\u0947\u0917\u093E\u0928\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u092E\u093F\u0924\u093F \u0930 \u0938\u092E\u092F",date:"ISO \u092E\u093F\u0924\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u0920\u0947\u0917\u093E\u0928\u093E",ipv6:"IPv6 \u0920\u0947\u0917\u093E\u0928\u093E",mac:"MAC \u0920\u0947\u0917\u093E\u0928\u093E",cidrv4:"IPv4 \u0926\u093E\u092F\u0930\u093E",cidrv6:"IPv6 \u0926\u093E\u092F\u0930\u093E",base64:"base64-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",base64url:"base64url-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",e164:"E.164 \u0928\u092E\u094D\u092C\u0930",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${n}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${s}`}case"invalid_value":return r.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${y(r.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u0939\u0930\u0942 \u092E\u0927\u094D\u092F\u0947 \u090F\u0915 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${r.origin??"\u092E\u093E\u0928"} \u092E\u093E ${n}${r.maximum.toString()} ${a.unit} ${a.verb}`:`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${r.origin??"\u092E\u093E\u0928"} ${n}${r.maximum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${r.origin} \u092E\u093E ${n}${r.minimum.toString()} ${a.unit} ${a.verb}`:`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${r.origin} ${n}${r.minimum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${n.prefix}" \u092C\u093E\u091F \u0938\u0941\u0930\u0941 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:n.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${n.suffix}" \u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:n.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${n.includes}" \u0938\u092E\u093E\u0935\u0947\u0936 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:n.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: \u0922\u093E\u0901\u091A\u093E ${n.pattern} \u0938\u0901\u0917 \u092E\u0947\u0932 \u0916\u093E\u0928\u0941\u092A\u0930\u094D\u091B`:`\u0905\u092E\u093E\u0928\u094D\u092F ${i[n.format]??r.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: ${r.divisor} \u0915\u094B \u0917\u0941\u0923\u091C \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u091E\u094D\u091C\u0940${r.keys.length>1?"\u0939\u0930\u0942":""}: ${g(r.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u091E\u094D\u091C\u0940: ${r.origin} \u092E\u093E`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${r.origin} \u092E\u093E`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function hf(){return{localeError:Ny()}}var Ty=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${n}, ontving ${s}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${y(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${n}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${n}${r.maximum.toString()} is`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${n}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${n}${r.minimum.toString()} is`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ongeldige tekst: moet met "${n.prefix}" beginnen`:n.format==="ends_with"?`Ongeldige tekst: moet op "${n.suffix}" eindigen`:n.format==="includes"?`Ongeldige tekst: moet "${n.includes}" bevatten`:n.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${n.pattern}`:`Ongeldig: ${i[n.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${g(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function $f(){return{localeError:Ty()}}var Cy=()=>{let e={string:{unit:"teikn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"element",verb:"\xE5 innehalde"},set:{unit:"element",verb:"\xE5 innehalde"},map:{unit:"element",verb:"\xE5 innehalde"}};function t(r){return e[r]??null}let i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tal",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventa instanceof ${r.expected}, fekk ${s}`:`Ugyldig input: forventa ${n}, fekk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventa ${y(r.values[0])}`:`Ugyldig val: forventa eitt av ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventa ${r.origin??"value"} til \xE5 ha ${n}${r.maximum.toString()} ${a.unit??"element"}`:`For stor(t): forventa ${r.origin??"value"} til \xE5 ha ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventa ${r.origin} til \xE5 ha ${n}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventa ${r.origin} til \xE5 ha ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: m\xE5 slutte med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: m\xE5 innehalde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${i[n.format]??r.format}`}case"not_multiple_of":return`Ugyldig tal: m\xE5 vere eit multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjende n\xF8klar":"Ukjend n\xF8kkel"}: ${g(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function yf(){return{localeError:Cy()}}var Ry=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"},map:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${n}, fikk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${y(r.values[0])}`:`Ugyldig valg: forventet en av ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${n}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${n}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${n.prefix}"`:n.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${n.suffix}"`:n.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${n.includes}"`:n.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${n.pattern}`:`Ugyldig ${i[n.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${g(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function _f(){return{localeError:Ry()}}var Zy=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"},map:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let i={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",mac:"MAC ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",credit_card:"i'tib\xE2r kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${n}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${y(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${n}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${n}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${n}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${n}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let n=r;return n.format==="starts_with"?`F\xE2sit metin: "${n.prefix}" ile ba\u015Flamal\u0131.`:n.format==="ends_with"?`F\xE2sit metin: "${n.suffix}" ile bitmeli.`:n.format==="includes"?`F\xE2sit metin: "${n.includes}" ihtiv\xE2 etmeli.`:n.format==="regex"?`F\xE2sit metin: ${n.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${i[n.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${g(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function bf(){return{localeError:Zy()}}var Ly=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},map:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}let i={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",mac:"\u062F MAC \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",credit_card:"\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",currency_code:"\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${n} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${y(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${g(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${n}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${n}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${n}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${n}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:n.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${n.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:n.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${n.includes}" \u0648\u0644\u0631\u064A`:n.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${n.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${i[n.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${g(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function kf(){return{localeError:Ly()}}var Fy=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"},map:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let i={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${n}, otrzymano ${s}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${y(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${n}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${n}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${n.prefix}"`:n.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${n.suffix}"`:n.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${n.includes}"`:n.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${n.pattern}`:`Nieprawid\u0142ow(y/a/e) ${i[n.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${g(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function xf(){return{localeError:Fy()}}var My=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let i={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"o intervalo de endere\xE7os IPv4",cidrv6:"o intervalo de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},o={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},r={string:{name:"texto",articles:o.masculine},number:{name:"n\xFAmero",articles:o.masculine},int:{name:"n\xFAmero inteiro",articles:o.masculine},boolean:{name:"valor booleano",articles:o.masculine},bigint:{name:"n\xFAmero bigint",articles:o.masculine},symbol:{name:"s\xEDmbolo",articles:o.masculine},undefined:{name:'valor "undefined"',articles:o.masculine},null:{name:'valor "nulo"',articles:o.masculine},never:{name:'valor "never"',articles:o.masculine},void:{name:'valor "void"',articles:o.masculine},date:{name:"data",articles:o.feminine},array:{name:"vetor",articles:o.masculine},object:{name:"objeto",articles:o.masculine},tuple:{name:"tuplo",articles:o.masculine},record:{name:"registo",articles:o.masculine},map:{name:"mapa",articles:o.masculine},set:{name:"conjunto",articles:o.masculine},file:{name:"ficheiro",articles:o.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:o.masculine},nan:{name:'valor "NaN"',articles:o.masculine},function:{name:"fun\xE7\xE3o",articles:o.feminine}};function n(a,s){let u=r[a]??{name:`valor "${a}"`,articles:o.masculine};return`${u.articles[s]} ${u.name}`}return a=>{switch(a.code){case"invalid_type":{let s=n(a.expected,"indefinite"),u=_(a.input),c=n(u,"indefinite");return`Entrada inv\xE1lida: esperava ${s}, recebeu ${c}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperava ${y(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${g(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",u=t(a.origin);return u?`Demasiado grande: esperava que ${n(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${u.unit??"elementos"}`:`Demasiado grande: esperava que ${n(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",u=t(a.origin);return u?`Demasiado pequeno: esperava que ${n(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${u.unit??"elementos"}`:`Demasiado pequeno: esperava que ${n(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar por "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar em "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`Formato d${i[s.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\xE1lida${s}: ${g(a.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${n(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${a.options.map(u=>`'${u}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${n(a.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function wf(){return{localeError:My()}}var Vy=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let i={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"a faixa de endere\xE7os IPv4",cidrv6:"a faixa de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},o={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},r={string:{name:"texto",articles:o.masculine},number:{name:"n\xFAmero",articles:o.masculine},int:{name:"n\xFAmero inteiro",articles:o.masculine},boolean:{name:"valor booleano",articles:o.masculine},bigint:{name:"n\xFAmero bigint",articles:o.masculine},symbol:{name:"s\xEDmbolo",articles:o.masculine},undefined:{name:'valor "undefined"',articles:o.masculine},null:{name:'valor "nulo"',articles:o.masculine},never:{name:'valor "never"',articles:o.masculine},void:{name:'valor "void"',articles:o.masculine},date:{name:"data",articles:o.feminine},array:{name:"vetor",articles:o.masculine},object:{name:"objeto",articles:o.masculine},tuple:{name:"tupla",articles:o.feminine},record:{name:"registro",articles:o.masculine},map:{name:"mapa",articles:o.masculine},set:{name:"conjunto",articles:o.masculine},file:{name:"arquivo",articles:o.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:o.masculine},nan:{name:'valor "NaN"',articles:o.masculine},function:{name:"fun\xE7\xE3o",articles:o.feminine}};function n(a,s){let u=r[a]??{name:`valor "${a}"`,articles:o.masculine};return`${u.articles[s]} ${u.name}`}return a=>{switch(a.code){case"invalid_type":{let s=n(a.expected,"indefinite"),u=_(a.input),c=n(u,"indefinite");return`Entrada inv\xE1lida: esperava ${s}, recebeu ${c}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperava ${y(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${g(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",u=t(a.origin);return u?`Grande demais: esperava que ${n(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${u.unit??"elementos"}`:`Grande demais: esperava que ${n(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",u=t(a.origin);return u?`Pequeno demais: esperava que ${n(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${u.unit??"elementos"}`:`Pequeno demais: esperava que ${n(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`Formato d${i[s.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\xE1lida${s}: ${g(a.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${n(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${a.options.map(u=>`'${u}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${n(a.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function If(){return{localeError:Vy()}}var Jy=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(r){return e[r]??null}let i={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",credit_card:"num\u0103r de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${n}, primit ${s}`}case"invalid_value":return r.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${y(r.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} ${a.verb} ${n}${r.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} s\u0103 fie ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Prea mic: a\u0219teptat ca ${r.origin} ${a.verb} ${n}${r.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${r.origin} s\u0103 fie ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${n.prefix}"`:n.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${n.suffix}"`:n.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${n.includes}"`:n.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${n.pattern}`:`Format invalid: ${i[n.format]??r.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${r.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${g(r.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${r.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${r.origin}`;default:return"Intrare invalid\u0103"}}};function Sf(){return{localeError:Jy()}}function zf(e,t,i,o){let r=Math.abs(e),n=r%10,a=r%100;return a>=11&&a<=19?o:n===1?t:n>=2&&n<=4?i:o}var By=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let i={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${n}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${y(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),u=zf(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${n}${r.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),u=zf(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${n}${r.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${i[n.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${g(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function jf(){return{localeError:By()}}var Ky=()=>{let e={string:{unit:"znakov",verb:"ma\u0165"},file:{unit:"bajtov",verb:"ma\u0165"},array:{unit:"prvkov",verb:"ma\u0165"},set:{unit:"prvkov",verb:"ma\u0165"},map:{unit:"polo\u017Eiek",verb:"ma\u0165"}};function t(r){return e[r]??null}let i={regex:"regul\xE1rny v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"d\xE1tum a \u010Das vo form\xE1te ISO",date:"d\xE1tum vo form\xE1te ISO",time:"\u010Das vo form\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64",base64url:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64url",json_string:"re\u0165azec vo form\xE1te JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditnej karty",currency_code:"k\xF3d meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"re\u0165azec",function:"funkcia",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${r.expected}, obdr\u017Ean\xE9 ${s}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${n}, obdr\u017Ean\xE9 ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${y(r.values[0])}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE1 jedna z hodn\xF4t ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${r.origin??"hodnota"} mus\xED ma\u0165 ${n}${r.maximum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${r.origin??"hodnota"} mus\xED by\u0165 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je pr\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED ma\u0165 ${n}${r.minimum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED by\u0165 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Neplatn\xFD re\u0165azec: mus\xED za\u010D\xEDna\u0165 na "${n.prefix}"`:n.format==="ends_with"?`Neplatn\xFD re\u0165azec: mus\xED kon\u010Di\u0165 na "${n.suffix}"`:n.format==="includes"?`Neplatn\xFD re\u0165azec: mus\xED obsahova\u0165 "${n.includes}"`:n.format==="regex"?`Neplatn\xFD re\u0165azec: mus\xED zodpoveda\u0165 vzoru ${n.pattern}`:`Neplatn\xFD form\xE1t ${i[n.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED by\u0165 n\xE1sobkom ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1me kl\xFA\u010De: ${g(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xFA\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function Pf(){return{localeError:Ky()}}var Wy=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let i={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",credit_card:"\u0161tevilka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${n}, prejeto ${s}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${y(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${n}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${n}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${n.prefix}"`:n.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${n.suffix}"`:n.format==="includes"?`Neveljaven niz: mora vsebovati "${n.includes}"`:n.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${n.pattern}`:`Neveljaven ${i[n.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${g(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function Of(){return{localeError:Wy()}}var Gy=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"},map:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let i={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${n}, fick ${s}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${y(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${n}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${n}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${n.prefix}"`:n.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${n.suffix}"`:n.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${n.includes}"`:n.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${n.pattern}"`:`Ogiltig(t) ${i[n.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${g(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Ef(){return{localeError:Gy()}}var qy=()=>{let e={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"},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"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},map:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let i={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",mac:"MAC \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",credit_card:"\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",currency_code:"\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",iban:"IBAN",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${y(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${g(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${n}${r.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${n}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${n}${r.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${n}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${n.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:n.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${n.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${i[n.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${g(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Uf(){return{localeError:qy()}}var Xy=()=>{let e={string:{unit:"\u0430\u043B\u043E\u043C\u0430\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},file:{unit:"\u0431\u0430\u0439\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},array:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},set:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},map:{unit:"\u0441\u0430\u0431\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"}};function t(r){return e[r]??null}let i={regex:"\u0432\u0443\u0440\u0443\u0434",email:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email",url:"URL",emoji:"\u044D\u043C\u043E\u04B7\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO",date:"\u0441\u0430\u043D\u0430\u0438 ISO",time:"\u0432\u0430\u049B\u0442\u0438 ISO",duration:"\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO",ipv4:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4",ipv6:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6",mac:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC",cidrv4:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4",cidrv6:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6",base64:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64",base64url:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url",json_string:"\u0441\u0430\u0442\u0440\u0438 JSON",e164:"\u0440\u0430\u049B\u0430\u043C\u0438 E.164",credit_card:"\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",currency_code:"\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0443\u0440\u0443\u0434"},o={nan:"NaN",number:"\u0440\u0430\u049B\u0430\u043C",string:"\u0441\u0430\u0442\u0440",array:"\u043C\u0430\u0441\u0441\u0438\u0432",object:"\u043E\u0431\u044A\u0435\u043A\u0442",date:"\u0441\u0430\u043D\u0430"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${n} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${s} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`}case"invalid_value":return r.values.length===1?`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${y(r.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:`\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${g(r.values,"|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${r.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${n}${r.maximum.toString()} ${a.unit} ${a.verb}`:`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${r.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${n}${r.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${r.origin} \u0431\u043E\u044F\u0434 ${n}${r.minimum.toString()} ${a.unit} ${a.verb}`:`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${r.origin} \u0431\u043E\u044F\u0434 ${n}${r.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${n.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`:n.format==="ends_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${n.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`:n.format==="includes"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${n.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`:n.format==="regex"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${n.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`:`${i[n.format]??r.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`}case"not_multiple_of":return`\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${r.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`;case"unrecognized_keys":return`\u041A\u0430\u043B\u0438\u0434${r.keys.length>1?"\u04B3\u043E\u0438":"\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${g(r.keys,", ")}`;case"invalid_key":return`\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${r.options.map(a=>`'${a}'`).join(" | ")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442";case"invalid_element":return`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${r.origin}`;default:return"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442"}}};function Df(){return{localeError:Xy()}}var Hy=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},map:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let i={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",mac:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",credit_card:"\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",currency_code:"\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",iban:"IBAN",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${n} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${y(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${n.prefix}"`:n.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${n.suffix}"`:n.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${n.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:n.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${n.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${i[n.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${g(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Af(){return{localeError:Hy()}}var Yy=()=>{let e={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function t(r){return e[r]??null}let i={regex:"giri\u015F",email:"e-po\xE7ta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \u015Fifrlenen setir",base64url:"base64url bilen \u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\u0148 nomeri",currency_code:"wal\xFDuta kody",iban:"IBAN",jwt:"JWT",template_literal:"\u015Fablon"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return`N\xE4dogry baha: gara\u015Fylan ${n} \xFDerine ${s} alyndy`}case"invalid_value":return r.values.length===1?`N\xE4dogry baha: ${y(r.values[0])} bolmaly`:`N\xE4dogry sa\xFDlaw: a\u015Fakdakylardan biri bolmaly: ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Has uly: gara\u015Fyl\xFDan ${r.origin??"baha"} ${n} ${r.maximum.toString()} ${a.unit??"element"}`:`Has uly: gara\u015Fyl\xFDan ${r.origin??"baha"} ${n} ${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Has ki\xE7i: gara\u015Fyl\xFDan ${r.origin} ${n} ${r.minimum.toString()} ${a.unit}`:`Has ki\xE7i: gara\u015Fyl\xFDan ${r.origin} ${n} ${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`N\xE4dogry setir: "${n.prefix}" bilen ba\u015Flamaly`:n.format==="ends_with"?`N\xE4dogry setir: "${n.suffix}" bilen gutarmaly`:n.format==="includes"?`N\xE4dogry setir: "${n.includes}" saklamaly`:n.format==="regex"?`N\xE4dogry setir: ${n.pattern} nusga la\xFDyk bolmaly`:`N\xE4dogry ${i[n.format]??r.format}`}case"not_multiple_of":return`N\xE4dogry san: ${r.divisor} bilen galyndysyz b\xF6l\xFCnmeli`;case"unrecognized_keys":return`Tanalma\xFDan a\xE7ar${r.keys.length>1?"lar":""}: ${g(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde n\xE4dogry a\xE7ar`;case"invalid_union":return"N\xE4dogry baha";case"invalid_element":return`${r.origin} i\xE7inde n\xE4dogry baha`;default:return"N\xE4dogry baha"}}};function Nf(){return{localeError:Yy()}}var Qy=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},map:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(r){return e[r]??null}let i={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",credit_card:"kredi kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${n}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${y(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${n}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${n}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Ge\xE7ersiz metin: "${n.prefix}" ile ba\u015Flamal\u0131`:n.format==="ends_with"?`Ge\xE7ersiz metin: "${n.suffix}" ile bitmeli`:n.format==="includes"?`Ge\xE7ersiz metin: "${n.includes}" i\xE7ermeli`:n.format==="regex"?`Ge\xE7ersiz metin: ${n.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${i[n.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${g(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function Tf(){return{localeError:Qy()}}var e_=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let i={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",mac:"\u0430\u0434\u0440\u0435\u0441\u0430 MAC",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${n}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${y(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${n}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${n}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${n.prefix}"`:n.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${n.suffix}"`:n.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${n.includes}"`:n.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${n.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${i[n.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${g(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function vi(){return{localeError:e_()}}function Cf(){return vi()}var t_=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},map:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let i={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",mac:"\u0627\u06CC\u0645 \u0627\u06D2 \u0633\u06CC \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",credit_card:"\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",currency_code:"\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",iban:"IBAN",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${n} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${y(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${g(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${n}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${n}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${n}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${n}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${n.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:n.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${n.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${i[n.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${g(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Rf(){return{localeError:t_()}}var r_=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(r){return e[r]??null}let i={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${n}, qabul qilingan ${s}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${y(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${n}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${n}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${n.prefix}" bilan boshlanishi kerak`:n.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${n.suffix}" bilan tugashi kerak`:n.format==="includes"?`Noto\u2018g\u2018ri satr: "${n.includes}" ni o\u2018z ichiga olishi kerak`:n.format==="regex"?`Noto\u2018g\u2018ri satr: ${n.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${i[n.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${g(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function Zf(){return{localeError:r_()}}var n_=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},map:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let i={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",mac:"\u0111\u1ECBa ch\u1EC9 MAC",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",credit_card:"s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",currency_code:"m\xE3 ti\u1EC1n t\u1EC7",iban:"IBAN",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${n}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${y(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${n}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${n}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${n.prefix}"`:n.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${n.suffix}"`:n.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${n.includes}"`:n.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${n.pattern}`:`${i[n.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${g(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function Lf(){return{localeError:n_()}}var i_=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"},map:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let i={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",mac:"MAC\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",credit_card:"\u4FE1\u7528\u5361\u53F7",currency_code:"\u8D27\u5E01\u4EE3\u7801",iban:"IBAN",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${n}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${y(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${n}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${n}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.prefix}" \u5F00\u5934`:n.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${n.suffix}" \u7ED3\u5C3E`:n.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${n.pattern}`:`\u65E0\u6548${i[n.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${g(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Ff(){return{localeError:i_()}}var o_=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},map:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let i={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",mac:"MAC \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",credit_card:"\u4FE1\u7528\u5361\u865F",currency_code:"\u8CA8\u5E63\u4EE3\u78BC",iban:"IBAN",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${n}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${y(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${n}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${n}${r.maximum.toString()}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${n}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${n}${r.minimum.toString()}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.prefix}" \u958B\u982D`:n.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${n.suffix}" \u7D50\u5C3E`:n.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${n.includes}"`:n.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${n.pattern}`:`\u7121\u6548\u7684 ${i[n.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${g(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Mf(){return{localeError:o_()}}var a_=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"},map:{unit:"nkan",verb:"n\xED"}};function t(r){return e[r]??null}let i={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",mac:"\xE0d\xEDr\u1EB9\u0301s\xEC MAC",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",credit_card:"n\u1ECDmba kaadi gbese",currency_code:"koodu ow\xF3",iban:"IBAN",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let n=o[r.expected]??r.expected,a=_(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${n}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${y(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${g(r.values,"|")}`;case"too_big":{let n=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${n}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${r.maximum}`}case"too_small":{let n=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${n}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${n}${r.minimum}`}case"invalid_format":{let n=r;return n.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${n.prefix}"`:n.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${n.suffix}"`:n.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${n.includes}"`:n.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${n.pattern}`:`A\u1E63\xEC\u1E63e: ${i[n.format]??r.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${g(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Vf(){return{localeError:a_()}}var Jf,Ec=Symbol("ZodOutput"),Uc=Symbol("ZodInput"),hi=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...i){let o=i[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let i=this._map.get(t);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(t),this}get(t){let i=t._zod.parent;if(i){let o={...this.get(i)??{}};delete o.id;let r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function $i(){return new hi}(Jf=globalThis).__zod_globalRegistry??(Jf.__zod_globalRegistry=$i());var se=globalThis.__zod_globalRegistry;var me=Symbol.for("zod.compile.invalid"),Bf=Symbol.for("zod.compile.fallback"),Pe=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},L=class extends Error{constructor(t,i=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=i}};function c_(e,t){try{return _i(e,{assertOnly:!0})}catch{return t}}function Tc(e,t){try{let i=_i(e),o=yi(e,i);return o._zod.bag.validator=c_(e,i),o}catch(i){if(t?.strict)throw i;return e}}function yi(e,t){if(mi(e))throw new L("a schema whose subtree contains a reference cycle");let i=M(e),o=e._zod.run,r=o.__originalRun??o,n=(a,s)=>{if(s?.async||s?.direction==="backward"||s?.skipChecks||s?.[Bf]||s&&fi(s,a.value))return r(a,s);let u=t(a.value);return u!==me?(a.value=u,a):(s&&(s[Bf]=!0),r(a,s))};return n.__originalRun=r,i._zod.bag.fallbackRun=r,i._zod.bag.validator=t,i._zod.run=n,o.__originalRun||u_(i,e,t),i}function u_(e,t,i){let o=e,r=t;if(typeof r.safeParse=="function"){let n=r.safeParse;o.safeParse=(a,s)=>{let u=i(a);return u!==me?{success:!0,data:u}:n(a,s)}}if(typeof r.parse=="function"){let n=r.parse;o.parse=(a,s)=>{let u=i(a);return u!==me?u:n(a,s)}}}function _i(e,t){let i=!0;try{i=mi(e)}catch{}if(i)throw new L("a schema whose subtree contains a reference cycle");let o={constants:new Map,constantCounter:0,varCounter:0,definite:!0},r=new at(["input"]),n=q(r,o,e,"input",!t?.assertOnly);r.write(n===null?"return true;":`return ${n};`);let a=["INVALID",...o.constants.keys()],s=[me,...o.constants.values()],u=r.content.join(`
|
|
73
|
-
`),
|
|
74
|
-
${
|
|
75
|
-
${
|
|
76
|
-
}`,m;try{m=new l(...a,d)(...s)}catch(f){throw new L(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(m.code=c),m.definite=o.definite,m}function A(e,t){for(let[o,r]of e.constants)if(r===t)return o;let i=`c${e.constantCounter++}`;return e.constants.set(i,t),i}function lt(e,t){return e.definite=!1,A(e,t)}function U(e){return`v${e.varCounter++}`}function l_(e,t){let i=e._zod.run({value:t,issues:[]},{});if(i&&typeof i.then=="function")return me;let o=i;return o.issues.length===0?o.value:me}function ue(e,t,i,o,r=!0){let n=e.content.length,a=t.constants.size,s=t.constantCounter,u=t.varCounter;try{return q(e,t,i,o,r)}catch(c){if(!(c instanceof L)||!c.islandable)throw c;if(e.content.length=n,t.constants.size>a){let l=Array.from(t.constants.keys()).slice(a);for(let d of l)t.constants.delete(d)}return t.constantCounter=s,t.varCounter=u,d_(e,t,i,o)}}function d_(e,t,i,o){t.definite=!1;let r=A(t,i),n=A(t,l_),a=U(t);return e.write(`const ${a} = ${n}(${r}, ${o});`),e.write(`if (${a} === INVALID) return INVALID;`),a}var m_=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function f_(e,t,i,o){let r=i._zod.def.checks;if(!r||r.length===0)return o;let n=o;for(let a of r){let s=a._zod.def;if(s.when&&!m_.has(s.check))throw new L('check with a custom "when" condition');switch(s.check){case"greater_than":p_(e,t,s,n);break;case"less_than":g_(e,t,s,n);break;case"multiple_of":v_(e,t,s,n);break;case"number_format":Hf(e,s,n);break;case"min_length":{let u=ct(s.minimum,"min_length"),c=Dc(e,t,n,`${n}.length >= ${u} && ${n}.length < ${s.minimum*2}`);e.write(`if (${c} < ${u}) return INVALID;`);break}case"max_length":{let u=ct(s.maximum,"max_length"),c=Dc(e,t,n,`${n}.length > ${u}`);e.write(`if (${c} > ${u}) return INVALID;`);break}case"length_equals":{let u=ct(s.length,"length_equals"),c=Dc(e,t,n,`${n}.length >= ${u} && ${n}.length <= ${s.length*2}`);e.write(`if (${c} !== ${u}) return INVALID;`);break}case"min_size":e.write(`if (${n}.size < ${ct(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${n}.size > ${ct(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${n}.size !== ${ct(s.size,"size_equals")}) return INVALID;`);break;case"string_format":n=Yf(e,t,s,n);break;case"custom":n=k_(e,t,a,n);break;case"bigint_format":h_(e,s,n);break;case"mime_type":$_(e,t,s,n);break;case"property":__(e,t,s,n);break;case"properties":y_(e,t,s,n);break;case"overwrite":{let u=U(t);b_(e,t,a,n,u),n=u;break}default:throw new L(`check type ${s.check}`)}}return n}function Dc(e,t,i,o){let r=A(t,it),n=U(t);return e.write(`const ${n} = typeof ${i} === "string" && ${o} ? ${r}(${i}) : ${i}.length;`),n}function ct(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new L(`${t} bound of type ${typeof e}`);return`${e}`}function Xf(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new L("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new L("comparison check with Invalid Date bound");return A(e,t)}throw new L(`comparison check bound of type ${typeof t}`)}function p_(e,t,i,o){let r=i.inclusive?"<":"<=";e.write(`if (${o} ${r} ${Xf(t,i.value)}) return INVALID;`)}function g_(e,t,i,o){let r=i.inclusive?">":">=";e.write(`if (${o} ${r} ${Xf(t,i.value)}) return INVALID;`)}function v_(e,t,i,o){if(typeof i.value=="bigint"){if(i.value===BigInt(0))throw new L("multiple_of check with a zero divisor");e.write(`if (${o} % ${i.value}n !== 0n) return INVALID;`)}else{let r=A(t,mr);e.write(`if (${r}(${o}, ${ct(i.value,"multiple_of")}) !== 0) return INVALID;`)}}function Hf(e,t,i){let o=t.format;switch(o){case"safeint":e.write(`if (!Number.isSafeInteger(${i})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${i}) || ${i} < -2147483648 || ${i} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${i}) || ${i} < 0 || ${i} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${i}) || ${i} < -3.4028234663852886e38 || ${i} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${i})) return INVALID;`);break;default:throw new L(`number format ${o}`)}}function h_(e,t,i){let o=t.format;if(o)switch(o){case"int64":e.write(`if (${i} < -9223372036854775808n || ${i} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${i} < 0n || ${i} > 18446744073709551615n) return INVALID;`);break;default:throw new L(`bigint format ${o}`)}}function $_(e,t,i,o){let r=i.mime;if(r&&r.length>0){let n=A(t,new Set(r));e.write(`if (!${n}.has(${o}.type)) return INVALID;`)}}function y_(e,t,i,o){if(i.when)throw new L('check with a custom "when" condition');e.write(`if (${o} == null) return INVALID;`);let r=i.shape;for(let n of Reflect.ownKeys(r)){let a=typeof n=="symbol"?A(t,n):le(n),s=U(t);e.write(`const ${s} = ${o}[${a}];`),ue(e,t,r[n],s,!1)}}function __(e,t,i,o){let r=`${o}[${JSON.stringify(i.property)}]`;q(e,t,i.schema,r)}function b_(e,t,i,o,r){let n=i._zod.def.tx;if(!n)throw new L("overwrite check without a transform function");if(dt(n))throw new Pe("z.compile: async overwrite transforms are not supported");let a=A(t,n);e.write(`const ${r} = ${a}(${o});`)}function Ac(){throw new $e}function Cc(e){this.issues.push(e)}function k_(e,t,i,o){let r=i._zod.def;if(r.fn){if(dt(r.fn))throw new Pe("z.compile: async .refine() predicates are not supported");let n=lt(t,r.fn),a=A(t,Ac),s=U(t);return e.write(`const ${s} = ${n}(${o});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),o}if(i._zod.check){if(dt(i._zod.check))throw new Pe("z.compile: async .superRefine() / check functions are not supported");let n=i._zod.check,s=lt(t,c=>{let l={value:c,issues:[],addIssue:Cc};return n(l)instanceof Promise&&Ac(),l.issues.length===0?l.value:me}),u=U(t);return e.write(`const ${u} = ${s}(${o});`),e.write(`if (${u} === INVALID) return INVALID;`),u}throw new L("custom check without a predicate or check function")}var x_=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function Yf(e,t,i,o,r=!0){let n=i.format;if(n==="base64"){let c=A(t,Er);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(n==="base64url"){let c=A(t,Qn);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(n==="jwt"){let c=A(t,ri),l=A(t,i.alg??null);return e.write(`if (!${c}(${o}, ${l})) return INVALID;`),o}if(n==="ipv6"){let c=A(t,Or);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(n==="cidrv6"){let c=A(t,Hn);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(n==="credit_card"){let c=A(t,ei);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(n==="iban"){let c=A(t,ti);return e.write(`if (!${c}(${o})) return INVALID;`),o}let a=i;if(n==="url"||n==="httpurl"||a.normalize||a.hostname!==void 0||a.protocol!==void 0){let c=A(t,Gn),l=A(t,i),d=U(t),m=U(t);if(e.write(`const ${d} = ${o}.trim();`),e.write(`const ${m} = ${c}(${d}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),a.hostname!==void 0){let h=A(t,qn);e.write(`if (!${h}(${m}, ${l}.hostname)) return INVALID;`)}if(a.protocol!==void 0){let h=A(t,Xn);e.write(`if (!${h}(${m}, ${l}.protocol)) return INVALID;`)}if(!r)return null;let f=U(t),v=a.normalize?`${m}.href`:`${A(t,Pr)}(${d})`;return e.write(`const ${f} = ${v};`),f}let s=i.fn;if(s){if(dt(s))throw new L(`async string format ${n}`);let c=A(t,s);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(x_.has(n)&&i.pattern){let c=A(t,i.pattern);return e.write(`${c}.lastIndex = 0;`),e.write(`if (!${c}.test(${o})) return INVALID;`),o}let u=i.format;switch(u){case"regex":throw new L("regex format without a pattern");case"lowercase":e.write(`if (${o} !== ${o}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${o} !== ${o}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${o}.includes(${le(i.includes)})) return INVALID;`);break;case"starts_with":{let c=i.prefix;e.write(`if (${o}.slice(0, ${c.length}) !== ${le(c)}) return INVALID;`);break}case"ends_with":{let c=i.suffix;e.write(`if (${o}.slice(-${c.length}) !== ${le(c)}) return INVALID;`);break}default:throw new L(`string format ${u}`)}return o}function q(e,t,i,o,r=!0){let n=i._zod.def,a=n.type;if(n.coerce)throw new L(`coercion (z.coerce.${a}())`);let s=r||!!n.checks?.length,u;switch(a){case"string":u=w_(e,t,i,o,s);break;case"number":u=I_(e,i,o);break;case"boolean":u=S_(e,o);break;case"bigint":u=z_(e,i,o);break;case"symbol":u=j_(e,o);break;case"undefined":u=P_(e,o);break;case"null":u=O_(e,o);break;case"any":case"unknown":u=o;break;case"never":e.write("return INVALID;"),u=o;break;case"void":u=E_(e,o);break;case"nan":u=U_(e,o);break;case"date":u=D_(e,o);break;case"object":u=A_(e,t,i,o,s);break;case"optional":u=N_(e,t,i,o,s);break;case"nullable":u=R_(e,t,i,o,s);break;case"array":u=Z_(e,t,i,o,s);break;case"literal":u=L_(e,t,i,o);break;case"enum":u=F_(e,t,i,o);break;case"readonly":{let c=Wf(e,t,i,o),l=U(t);e.write(`const ${l} = Object.freeze(${c});`),u=l;break}case"success":Wf(e,t,i,o),u="true";break;case"default":case"prefault":u=M_(e,t,i,o);break;case"nonoptional":u=V_(e,t,i,o);break;case"tuple":u=J_(e,t,i,o);break;case"union":u=B_(e,t,i,o);break;case"intersection":u=G_(e,t,i,o);break;case"record":u=q_(e,t,i,o);break;case"map":u=H_(e,t,i,o);break;case"set":u=Y_(e,t,i,o);break;case"file":u=Q_(e,o);break;case"template_literal":u=eb(e,t,i,o);break;case"lazy":u=tb(e,t,i,o);break;case"pipe":u=rb(e,t,i,o);break;case"custom":u=nb(e,t,i,o);break;case"transform":u=ab(e,t,i,o);break;case"catch":u=ob(e,t,i,o);break;default:throw new L(`schema type ${a}`)}return u===null?null:f_(e,t,i,u)}function w_(e,t,i,o,r=!0){e.write(`if (typeof ${o} !== "string") return INVALID;`);let n=i._zod.def;return n.format===void 0?o:Yf(e,t,n,o,r)}function I_(e,t,i){e.write(`if (typeof ${i} !== "number" || !Number.isFinite(${i})) return INVALID;`);let o=t._zod.def;return o.check==="number_format"&&o.format&&Hf(e,{format:o.format},i),i}function S_(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function z_(e,t,i){e.write(`if (typeof ${i} !== "bigint") return INVALID;`);let o=t._zod.def;if(o.format)switch(o.format){case"int64":e.write(`if (${i} < -9223372036854775808n || ${i} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${i} < 0n || ${i} > 18446744073709551615n) return INVALID;`);break}return i}function j_(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function P_(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function O_(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function E_(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function U_(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function D_(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function A_(e,t,i,o,r=!0){let n=i._zod.def;e.write(`if (typeof ${o} !== "object" || ${o} === null || Array.isArray(${o})) return INVALID;`);let a=n.shape,s=Object.keys(a),u=Object.getOwnPropertySymbols(a),c=u.length?[...s,...u]:s,l=z=>typeof z=="symbol"?A(t,z):le(z),d=z=>typeof z=="symbol"?`[${l(z)}]`:le(z),m=a;if(s.includes("__proto__"))throw new L('object shape key "__proto__"');let f=new Map;for(let z of c){let I=m[z],D=l(z),B=U(t);if(e.write(`const ${B} = ${o}[${D}];`),I._zod.optin!==void 0){let F=U(t);e.write(`let ${F} = (() => {`),e.indented(ce=>{let ur=ue(ce,t,I,B);ce.write(`return ${ur};`)}),e.write("})();"),I._zod.optout==="optional"?(e.write(`if (${F} === INVALID) {`),e.indented(ce=>{ce.write(`if (${D} in ${o}) return INVALID;`),ce.write(`${F} = undefined;`)}),e.write("}")):e.write(`if (${F} === INVALID) return INVALID;`),f.set(z,F)}else{C_(I)&&e.write(`if (!(${D} in ${o})) return INVALID;`);let F=ue(e,t,I,B,r);F!==null&&f.set(z,F)}}let v=n.catchall,h="none";if(v){let z=v._zod.def.type;if(z==="never"){let I=s.map(D=>`k !== ${le(D)}`).join(" && ")||"true";e.write(`for (const k in ${o}) {`),e.indented(D=>{D.write(`if (${I}) return INVALID;`)}),e.write("}")}else(z==="unknown"||z==="any")&&!v._zod.def.checks?.length?h="passthrough":h="schema"}let b=U(t),E=c.some(z=>Kf(m[z])||Nc(m[z]));if(!r){if(h==="schema"){let z=s.length>0?A(t,new Set(s)):null;e.write(`for (const k in ${o}) {`),e.indented(I=>{I.write('if (k === "__proto__") continue;'),z&&I.write(`if (${z}.has(k)) continue;`);let D=U(t);I.write(`const ${D} = ${o}[k];`),ue(I,t,v,D,!1)}),e.write("}")}return null}if(E){e.write(`const ${b} = {};`);for(let z of c){let I=l(z),D=f.get(z);Nc(m[z])?e.write(`if (${I} in ${o}) ${b}[${I}] = ${D};`):Kf(m[z])?e.write(`if (${D} !== undefined || ${I} in ${o}) ${b}[${I}] = ${D};`):e.write(`${b}[${I}] = ${D};`)}}else{let z=c.map(I=>`${d(I)}: ${f.get(I)}`).join(", ");e.write(`const ${b} = { ${z} };`)}if(h!=="none"){let z=s.length>0?A(t,new Set(s)):null;e.write(`for (const k in ${o}) {`),e.indented(I=>{if(I.write('if (k === "__proto__") continue;'),z&&I.write(`if (${z}.has(k)) continue;`),h==="passthrough")I.write(`${b}[k] = ${o}[k];`);else{let D=U(t);I.write(`const ${D} = ${o}[k];`);let B=ue(I,t,v,D);I.write(`${b}[k] = ${B};`)}}),e.write("}")}return b}function N_(e,t,i,o,r=!0){let n=i._zod.def;if(T_(i))return q(e,t,n.innerType,o,r);if(n.innerType._zod.optin==="defaulted"){let s=U(t),u=U(t);return e.write(`let ${s};`),e.write(`if (${o} === undefined) {`),e.indented(c=>{c.write(`const ${u} = (() => {`),c.indented(l=>{let d=q(l,t,n.innerType,o);l.write(`return ${d};`)}),c.write("})();"),c.write(`if (${u} !== INVALID) ${s} = ${u};`)}),e.write("} else {"),e.indented(c=>{let l=q(c,t,n.innerType,o);c.write(`${s} = ${l};`)}),e.write("}"),s}let a=r?U(t):null;return a&&e.write(`let ${a};`),e.write(`if (${o} !== undefined) {`),e.indented(s=>{let u=q(s,t,n.innerType,o,r);a&&u!==null&&s.write(`${a} = ${u};`)}),e.write("}"),a}function T_(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function C_(e){return e._zod.optin===void 0&&ut(e)}function ut(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?ut(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?ut(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(ut):!0;case"intersection":return!t.left||!t.right?!0:ut(t.left)&&ut(t.right);case"pipe":return t.in?ut(t.in):!0;default:return!0}}function Nc(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function Kf(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Ct(e)}function Ct(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Ct(t.innerType):!0;case"union":return t.options?t.options.some(Ct):!0;case"intersection":return!t.left||!t.right||Ct(t.left)||Ct(t.right);case"pipe":return t.out?Ct(t.out):!0;default:return!0}}function R_(e,t,i,o,r=!0){let n=i._zod.def,a=r?U(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${o} !== null) {`),e.indented(s=>{let u=q(s,t,n.innerType,o,r);a&&u!==null&&s.write(`${a} = ${u};`)}),e.write("}"),a}function Z_(e,t,i,o,r=!0){let n=i._zod.def;e.write(`if (!Array.isArray(${o})) return INVALID;`);let a=r?U(t):null,s=U(t),u=U(t);return a&&e.write(`const ${a} = new Array(${o}.length);`),e.write(`for (let ${s} = 0; ${s} < ${o}.length; ${s}++) {`),e.indented(c=>{c.write(`const ${u} = ${o}[${s}];`);let l=ue(c,t,n.element,u,r);a&&l!==null&&c.write(`${a}[${s}] = ${l};`)}),e.write("}"),a}function L_(e,t,i,o){let n=i._zod.def.values;if(n.length!==1){let s=A(t,new Set(n));return e.write(`if (!${s}.has(${o})) return INVALID;`),o}let a=n[0];if(typeof a=="number"&&Number.isNaN(a)){let s=A(t,new Set(n));return e.write(`if (!${s}.has(${o})) return INVALID;`),o}if(typeof a=="string")e.write(`if (${o} !== ${le(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${o} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${o} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${o} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${o} !== ${a}n) return INVALID;`);else throw new L(`literal type ${typeof a}`);return o}function F_(e,t,i,o){let r=i._zod.values;if(!r)throw new L("enum schema without enumerated values");let n=A(t,r);return e.write(`if (!${n}.has(${o})) return INVALID;`),o}function Wf(e,t,i,o){let r=i._zod.def;return q(e,t,r.innerType,o)}function M_(e,t,i,o){let r=i._zod.def,a=Object.getOwnPropertyDescriptor(i._zod.def,"defaultValue")?()=>i._zod.def.defaultValue:void 0;if(i._zod.def.type==="prefault"){if(!a)return q(e,t,r.innerType,o);let u=A(t,a),c=U(t);return e.write(`let ${c} = ${o};`),e.write(`if (${o} === undefined) ${c} = ${u}();`),q(e,t,r.innerType,c)}let s=U(t);if(a){let u=A(t,a),c=A(t,fr);e.write(`let ${s};`),e.write(`if (${o} === undefined) {`),e.indented(l=>{l.write(`${s} = ${c}(${u}());`)}),e.write("} else {"),e.indented(l=>{let d=q(l,t,r.innerType,o);l.write(`${s} = ${d} === undefined ? ${c}(${u}()) : ${d};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${o} !== undefined) {`),e.indented(u=>{let c=q(u,t,r.innerType,o);u.write(`${s} = ${c};`)}),e.write("}");return s}function V_(e,t,i,o){let r=i._zod.def,n=q(e,t,r.innerType,o),a=U(t);return e.write(`const ${a} = ${n};`),e.write(`if (${a} === undefined) return INVALID;`),a}function J_(e,t,i,o){let r=i._zod.def,n=r.items,a=r.rest;e.write(`if (!Array.isArray(${o})) return INVALID;`);let s=Gf(n,"optin"),u=Gf(n,"optout");a?e.write(`if (${o}.length < ${s}) return INVALID;`):e.write(`if (${o}.length < ${s} || ${o}.length > ${n.length}) return INVALID;`);let c=U(t);e.write(`const ${c} = [];`);for(let l=0;l<n.length;l++){let d=n[l];if(l>=u)e.write(`if (${c}.length === ${l}) {`),e.indented(m=>{m.write(`if (${l} < ${o}.length) {`),m.indented(f=>{let v=U(t);f.write(`const ${v} = ${o}[${l}];`);let h=ue(f,t,d,v);f.write(`${c}[${l}] = ${h};`)}),m.write("} else {"),m.indented(f=>{if(Nc(d)){f.write(`${c}.length = ${l};`);return}let v=U(t),h=U(t);f.write(`const ${v} = undefined;`),f.write(`const ${h} = (() => {`),f.indented(b=>{let E=ue(b,t,d,v);b.write(`return ${E};`)}),f.write("})();"),f.write(`if (${h} === INVALID || ${h} === undefined) ${c}.length = ${l};`),f.write(`else ${c}[${l}] = ${h};`)}),m.write("}")}),e.write("}");else{let m=U(t);e.write(`const ${m} = ${o}[${l}];`);let f=ue(e,t,d,m);e.write(`${c}[${l}] = ${f};`)}}if(a){let l=U(t),d=U(t);e.write(`for (let ${l} = ${n.length}; ${l} < ${o}.length; ${l}++) {`),e.indented(m=>{m.write(`const ${d} = ${o}[${l}];`);let f=ue(m,t,a,d);m.write(`${c}[${l}] = ${f};`)}),e.write("}")}return c}function Gf(e,t){for(let i=e.length-1;i>=0;i--)if(!(t==="optin"?e[i]._zod.optin!==void 0:e[i]._zod.optout==="optional"))return i+1;return 0}function B_(e,t,i,o){let r=i._zod.def,n=r.options;if(r.discriminator)return K_(e,t,r,o);if(r.inclusive===!1)throw new L("exclusive unions (z.xor)");if(n.length===0)return e.write("return INVALID;"),o;if(n.length===1)return q(e,t,n[0],o);if(n.every(u=>u._zod.def.type==="literal"&&!u._zod.def.checks?.length)){let u=new Set(n.flatMap(l=>l._zod.def.values)),c=A(t,u);return e.write(`if (!${c}.has(${o})) return INVALID;`),o}let s=U(t);e.write(`let ${s};`);for(let u=0;u<n.length;u++){let c=n[u];u===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(l=>{let d=q(l,t,c,o);l.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function K_(e,t,i,o){if(i.unionFallback)throw new L("discriminated union with unionFallback");if(i.options.length===0)return e.write("return INVALID;"),o;let r=U(t),n=U(t);e.write(`const ${r} = ${o}?.[${le(i.discriminator)}];`),e.write(`let ${n};`);let a=!0,s=new Set;for(let u of i.options){let c=u._zod.propValues?.[i.discriminator];if(!c||c.size===0)throw new L("discriminated union option without static discriminator values");for(let m of c){if(s.has(m))throw new L(`duplicate discriminator value ${String(m)}`);s.add(m)}let l=Array.from(c,m=>W_(t,r,m)),d=a?"if":"else if";e.write(`${d} (${l.join(" || ")}) {`),e.indented(m=>{let f=q(m,t,u,o);m.write(`${n} = ${f};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),n}function W_(e,t,i){if(typeof i=="string")return`${t} === ${le(i)}`;if(typeof i=="number")return Number.isNaN(i)?`Number.isNaN(${t})`:`${t} === ${i}`;if(typeof i=="boolean")return`${t} === ${i}`;if(i===null)return`${t} === null`;if(i===void 0)return`${t} === undefined`;if(typeof i=="bigint")return`${t} === ${i}n`;if(typeof i=="symbol"){let o=A(e,i);return`${t} === ${o}`}throw new L(`literal discriminator value ${String(i)}`)}function G_(e,t,i,o){let r=i._zod.def;t.definite=!1;let n=ue(e,t,r.left,o),a=ue(e,t,r.right,o),s=A(t,At),u=U(t);return e.write(`const ${u} = ${s}(${n}, ${a});`),e.write(`if (!${u}.valid) return INVALID;`),`${u}.data`}function q_(e,t,i,o){let r=i._zod.def,n=A(t,we);e.write(`if (!${n}(${o})) return INVALID;`);let a=U(t),s=U(t),u=U(t);e.write(`const ${a} = {};`);let c=r,l=c.partial?void 0:r.keyType._zod.values;if(l){let f=[];for(let h of l){if(!(typeof h=="string"||typeof h=="number"||typeof h=="symbol"))throw new L(`record key value ${String(h)}`);let b=typeof h=="number"?h.toString():h;if(b==="__proto__")throw new L('record key "__proto__"');f.push(b);let E=A(t,h),z=q(e,t,r.keyType,E),I=U(t);e.write(`const ${I} = ${o}[${X_(t,b)}];`);let D=ue(e,t,r.valueType,I);e.write(`${a}[${z}] = ${D};`)}let v=A(t,new Set(f));return e.write(`for (const ${s} in ${o}) {`),e.indented(h=>{h.write(`if (${v}.has(${s})) continue;`),c.mode==="loose"?h.write(`if (${s} !== "__proto__") ${a}[${s}] = ${o}[${s}];`):h.write("return INVALID;")}),e.write("}"),a}let d=r.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let f=r.mode==="loose",v=_i(r.keyType);v.definite===!1&&(t.definite=!1);let h=A(t,v),b=A(t,Ze),E=U(t);return qf(e,t,o,s,z=>{z.write(`let ${E} = ${h}(${s});`),z.write(`if (${E} === INVALID && typeof ${s} === "string" && ${b}.test(${s})) ${E} = ${h}(Number(${s}));`),f?z.write(`if (${E} === INVALID) { ${a}[${s}] = ${o}[${s}]; continue; }`):z.write(`if (${E} === INVALID) return INVALID;`),z.write(`if (${E} === "__proto__") continue;`);let I=U(t);z.write(`const ${I} = ${o}[${s}];`);let D=ue(z,t,r.valueType,I);z.write(`${a}[${E}] = ${D};`)}),a}return qf(e,t,o,s,f=>{f.write(`const ${u} = ${o}[${s}];`);let v=ue(f,t,r.valueType,u);f.write(`${a}[${s}] = ${v};`)},"return INVALID;"),a}function qf(e,t,i,o,r,n){let a=A(t,Object.prototype.propertyIsEnumerable),s=U(t),u=U(t),c=U(t);e.write(`const ${s} = Object.getOwnPropertySymbols(${i});`),e.write(`const ${u} = Object.getOwnPropertyNames(${i});`),e.write(`for (let ${c} = 0; ${c} < ${u}.length; ${c}++) {`),e.indented(l=>{l.write(`const ${o} = ${u}[${c}];`),l.write(`if (${o} === "__proto__" || !${a}.call(${i}, ${o})) continue;`),r(l)}),e.write("}"),e.write(`for (let ${c} = 0; ${c} < ${s}.length; ${c}++) {`),e.indented(l=>{l.write(`const ${o} = ${s}[${c}];`),l.write(`if (!${a}.call(${i}, ${o})) continue;`),n?l.write(n):r(l)}),e.write("}")}function X_(e,t){return typeof t=="string"?le(t):A(e,t)}function H_(e,t,i,o){let r=i._zod.def;e.write(`if (!(${o} instanceof Map)) return INVALID;`);let n=U(t),a=U(t),s=U(t);return e.write(`const ${n} = new Map();`),e.write(`for (const [${a}, ${s}] of ${o}) {`),e.indented(u=>{let c=q(u,t,r.keyType,a),l=q(u,t,r.valueType,s);u.write(`${n}.set(${c}, ${l});`)}),e.write("}"),n}function Y_(e,t,i,o){let r=i._zod.def;e.write(`if (!(${o} instanceof Set)) return INVALID;`);let n=U(t),a=U(t);return e.write(`const ${n} = new Set();`),e.write(`for (const ${a} of ${o}) {`),e.indented(s=>{let u=q(s,t,r.valueType,a);s.write(`${n}.add(${u});`)}),e.write("}"),n}function Q_(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function eb(e,t,i,o){e.write(`if (typeof ${o} !== "string") return INVALID;`);let r=i._zod.pattern;if(r){let n=A(t,r);e.write(`${n}.lastIndex = 0;`),e.write(`if (!${n}.test(${o})) return INVALID;`)}return o}function tb(e,t,i,o){let r=i._zod.def,n=lt(t,r.getter),a=A(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(u=>{u.write(`const inner = ${n}();`),u.write(`${a}.parser = function(input) {`),u.indented(c=>{c.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),c.write("return result.issues.length === 0 ? result.value : INVALID;")}),u.write("};")}),e.write("}");let s=U(t);return e.write(`const ${s} = ${a}.parser(${o});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function rb(e,t,i,o){let r=i._zod.def,n=q(e,t,r.in,o);if(r.transform){if(dt(r.transform))throw new Pe("z.compile: async transforms in pipes are not supported");let a=r.transform,u=lt(t,l=>{let d={value:l,issues:[],addIssue:Cc},m=a(l,d);return m instanceof Promise?me:d.issues.length===0?m:me}),c=U(t);return e.write(`const ${c} = ${u}(${n});`),e.write(`if (${c} === INVALID) return INVALID;`),q(e,t,r.out,c)}else return q(e,t,r.out,n)}function dt(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function nb(e,t,i,o){let r=i._zod.def;if(r.fn){if(dt(r.fn))throw new Pe("z.compile: async custom predicates are not supported");let n=lt(t,r.fn),a=A(t,Ac),s=U(t);e.write(`const ${s} = ${n}(${o});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new L("custom schema without a predicate function");return o}function ib(e,t,i){let o=e._zod.run({value:i,issues:[]},{});if(o&&typeof o.then=="function")return me;let r=o;return r.issues.length===0?r.value:t()}function ob(e,t,i,o){let r=i._zod.def;if(!r.catchValue[In])throw new L("catch with a callback (only a constant catch value compiles)",!1);let n=U(t);e.write(`let ${n} = (() => {`),e.indented(c=>{let l=ue(c,t,r.innerType,o);c.write(`return ${l};`)}),e.write("})();");let a=A(t,r.innerType),s=lt(t,r.catchValue),u=A(t,ib);return e.write(`if (${n} === INVALID) {`),e.indented(c=>{c.write(`${n} = ${u}(${a}, ${s}, ${o});`),c.write(`if (${n} === INVALID) return INVALID;`)}),e.write("}"),n}function ab(e,t,i,o){let r=i._zod.def;if(r.transform){if(dt(r.transform))throw new Pe("z.compile: async transforms are not supported");let n=r.transform,s=lt(t,c=>{let l={value:c,issues:[],addIssue:Cc},d=n(c,l);return d instanceof Promise?me:l.issues.length===0?d:me}),u=U(t);return e.write(`const ${u} = ${s}(${o});`),e.write(`if (${u} === INVALID) return INVALID;`),u}return o}function bi(e){return e.checks&&(e.checks=[...e.checks]),e}function Rc(e,t){return new e(bi({type:"string",...w(t)}))}function Zc(e,t){return new e(bi({type:"string",coerce:!0,...w(t)}))}function ki(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...w(t)})}function xi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...w(t)})}function wi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...w(t)})}function Ii(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...w(t)})}function Si(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...w(t)})}function zi(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...w(t)})}function Mr(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...w(t)})}function ji(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...w(t)})}function Pi(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...w(t)})}function Oi(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...w(t)})}function Ei(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...w(t)})}function Ui(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...w(t)})}function Di(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...w(t)})}function Ai(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...w(t)})}function Ni(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...w(t)})}function Ti(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...w(t)})}function Lc(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...w(t)})}function Ci(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...w(t)})}function Ri(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...w(t)})}function Zi(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...w(t)})}function Li(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...w(t)})}function Fi(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...w(t)})}function Fc(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...w(t)})}function Mc(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...w(t)})}function Mi(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...w(t)})}var Vc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Vr(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...w(t)})}function Jr(e,t){return new e({type:"string",format:"date",check:"string_format",...w(t)})}function Br(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...w(t)})}function Kr(e,t){return new e({type:"string",format:"duration",check:"string_format",...w(t)})}function Jc(e,t){return new e(bi({type:"number",checks:[],...w(t)}))}function Bc(e,t){return new e(bi({type:"number",coerce:!0,checks:[],...w(t)}))}function Kc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...w(t)})}function Wc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...w(t)})}function Gc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...w(t)})}function qc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...w(t)})}function Xc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...w(t)})}function Hc(e,t){return new e({type:"boolean",...w(t)})}function Yc(e,t){return new e({type:"boolean",coerce:!0,...w(t)})}function Qc(e,t){return new e({type:"bigint",...w(t)})}function eu(e,t){return new e({type:"bigint",coerce:!0,...w(t)})}function tu(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...w(t)})}function ru(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...w(t)})}function nu(e,t){return new e({type:"symbol",...w(t)})}function iu(e,t){return new e({type:"undefined",...w(t)})}function ou(e,t){return new e({type:"null",...w(t)})}function au(e){return new e({type:"any"})}function su(e){return new e({type:"unknown"})}function cu(e,t){return new e({type:"never",...w(t)})}function uu(e,t){return new e({type:"void",...w(t)})}function lu(e,t){return new e({type:"date",...w(t)})}function du(e,t){return new e({type:"date",coerce:!0,...w(t)})}function mu(e,t){return new e({type:"nan",...w(t)})}function Ue(e,t){return new Fn({check:"less_than",...w(t),value:e,inclusive:!1})}function be(e,t){return new Fn({check:"less_than",...w(t),value:e,inclusive:!0})}function De(e,t){return new Mn({check:"greater_than",...w(t),value:e,inclusive:!1})}function ke(e,t){return new Mn({check:"greater_than",...w(t),value:e,inclusive:!0})}function Vi(e){return De(0,e)}function Ji(e){return Ue(0,e)}function Bi(e){return be(0,e)}function Ki(e){return ke(0,e)}function We(e,t){return new Xa({check:"multiple_of",...w(t),value:e})}function Ge(e,t){return new Qa({check:"max_size",...w(t),maximum:e})}function Ae(e,t){return new es({check:"min_size",...w(t),minimum:e})}function mt(e,t){return new ts({check:"size_equals",...w(t),size:e})}function ft(e,t){return new rs({check:"max_length",...w(t),maximum:e})}function Le(e,t){return new ns({check:"min_length",...w(t),minimum:e})}function pt(e,t){return new is({check:"length_equals",...w(t),length:e})}function Rt(e,t){return new os({check:"string_format",format:"regex",...w(t),pattern:e})}function Zt(e){return new as({check:"string_format",format:"lowercase",...w(e)})}function Lt(e){return new ss({check:"string_format",format:"uppercase",...w(e)})}function Ft(e,t){return new cs({check:"string_format",format:"includes",...w(t),includes:e})}function Mt(e,t){return new us({check:"string_format",format:"starts_with",...w(t),prefix:e})}function Vt(e,t){return new ls({check:"string_format",format:"ends_with",...w(t),suffix:e})}function Wi(e,t,i){return new ds({check:"property",property:e,schema:t,...w(i)})}function Jt(e,t){return new ms({check:"properties",shape:e,...w(t)})}function Bt(e,t){return new fs({check:"mime_type",mime:e,...w(t)})}function Oe(e){return new ps({check:"overwrite",tx:e})}function Kt(e){return Oe(t=>t.normalize(e))}function Wt(){return Oe(e=>e.trim())}function Gt(){return Oe(e=>e.toLowerCase())}function qt(){return Oe(e=>e.toUpperCase())}function Xt(){return Oe(e=>Yo(e))}function fu(e,t,i){return new e({type:"array",element:t,...w(i)})}function sb(e,t,i){return new e({type:"union",options:t,...w(i)})}function cb(e,t,i){return new e({type:"union",options:t,inclusive:!1,...w(i)})}function ub(e,t,i,o){return new e({type:"union",options:i,discriminator:t,...w(o)})}function lb(e,t,i){return new e({type:"intersection",left:t,right:i})}function db(e,t,i,o){let r=i instanceof N,n=r?o:i,a=r?i:null;return new e({type:"tuple",items:t,rest:a,...w(n)})}function mb(e,t,i,o){return new e({type:"record",keyType:t,valueType:i,...w(o)})}function fb(e,t,i,o){return new e({type:"map",keyType:t,valueType:i,...w(o)})}function pb(e,t,i){return new e({type:"set",valueType:t,...w(i)})}function gb(e,t,i){let o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...w(i)})}function vb(e,t,i){return new e({type:"enum",entries:t,...w(i)})}function hb(e,t,i){return new e({type:"literal",values:Array.isArray(t)?t:[t],...w(i)})}function pu(e,t){return new e({type:"file",...w(t)})}function $b(e,t){return new e({type:"transform",transform:t})}function yb(e,t){return new e({type:"optional",innerType:t})}function _b(e,t){return new e({type:"nullable",innerType:t})}function bb(e,t,i){return new e({type:"default",innerType:t,get defaultValue(){return typeof i=="function"?i():fr(i)}})}function kb(e,t,i){return new e({type:"nonoptional",innerType:t,...w(i)})}function xb(e,t){return new e({type:"success",innerType:t})}function wb(e,t,i){return new e({type:"catch",innerType:t,catchValue:typeof i=="function"?i:ia(i)})}function Ib(e,t,i){return new e({type:"pipe",in:t,out:i})}function Sb(e,t){return new e({type:"readonly",innerType:t})}function zb(e,t,i){return new e({type:"template_literal",parts:t,...w(i)})}function jb(e,t){return new e({type:"lazy",getter:t})}function Pb(e,t){return new e({type:"promise",innerType:t})}function gu(e,t,i){let o=w(i);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function vu(e,t,i){return new e({type:"custom",check:"custom",fn:t,...w(i)})}function hu(e,t){let i=Qf(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(jt(r,o.value,i._zod.def));else{let n=r;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),"input"in n||(n.input=o.value),n.inst??(n.inst=i),n.continue??(n.continue=!i._zod.def.abort),o.issues.push(jt(n))}},e(o.value,o)),t);return i}function Qf(e,t){let i=new W({check:"custom",...w(t)});return i._zod.check=e,i}function $u(e){let t=new W({check:"describe"});return t._zod.onattach=[i=>{let o=se.get(i)??{};se.add(i,{...o,description:e})}],t._zod.check=()=>{},t}function yu(e){let t=new W({check:"meta"});return t._zod.onattach=[i=>{let o=se.get(i)??{};se.add(i,{...o,...e})}],t._zod.check=()=>{},t}function _u(e,t){let i=w(t),o=i.truthy??["true","1","yes","on","y","enabled"],r=i.falsy??["false","0","no","off","n","disabled"];i.case!=="sensitive"&&(o=o.map(f=>typeof f=="string"?f.toLowerCase():f),r=r.map(f=>typeof f=="string"?f.toLowerCase():f));let n=new Set(o),a=new Set(r),s=e.Codec??Nr,u=e.Boolean??Dr,c=e.String??st,l=new c({type:"string",error:i.error}),d=new u({type:"boolean",error:i.error}),m=new s({type:"pipe",in:l,out:d,transform:((f,v)=>{let h=f;return i.case!=="sensitive"&&(h=h.toLowerCase()),n.has(h)?!0:a.has(h)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...n,...a],input:v.value,inst:m,continue:!1}),{})}),reverseTransform:((f,v)=>f===!0?o[0]||"true":r[0]||"false"),error:i.error});return m._zod.bag.truthy=o,m._zod.bag.falsy=r,m._zod.bag.case=i.case??"insensitive",m}function gt(e,t,i,o={}){let r=w(o),n={check:"string_format",type:"string",format:t,fn:typeof i=="function"?i:s=>i.test(s),...r};return i instanceof RegExp&&(n.pattern=i),new e(n)}function Wr(e,...t){for(let i of t)for(let o of Reflect.ownKeys(i))Object.prototype.propertyIsEnumerable.call(i,o)&&ae(e,o,i[o]);return e}function qe(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??se,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function te(e,t,i,o,r){let n=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:o.path,message:r}):t.unrepresentable;if(n==="any")return!1;if(n===void 0||n==="throw")throw new Error(r);return Object.assign(i,n),!0}function J(e,t,i={path:[],schemaPath:[]}){var o;let r=e._zod.def,n=t.seen.get(e);if(n)return n.count++,i.schemaPath.includes(e)&&(n.cycle=i.path),n.schema;let a={schema:{},count:1,cycle:void 0,path:i.path};t.seen.set(e,a),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let l={...i,schemaPath:[...i.schemaPath,e],path:i.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,l);else{let m=a.schema,f=t.processors[r.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);f(e,t,m,l)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),J(d,t,l),t.seen.get(d).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Wr(a.schema,u),t.io==="input"&&fe(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function ep(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Xe(e,t){let i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let u=o.get(s);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,m=e.external.uri??(v=>v);if(d)return{ref:m(d)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${m("__shared")}#/${s}/${ep(f)}`}}let u="#",c=`${u}/${s}/`;if(a[1]===i&&!a[1].schema.id)return{ref:u};let l=a[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:c+ep(l)}},n=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:u,defId:c}=r(a);s.def={...s.schema},c&&(s.defId=c);let l=s.schema;for(let d in l)delete l[d];l.$ref=u};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
|
|
72
|
+
`)}return E.write("payload.value = newResult;"),E.write("return payload;"),E.compile()},d,p=$t,f=!Ie.jitless,g=f&&Pa.value,b=t.catchall,S;e._zod.parse=(R,O)=>{S??(S=a.value);let k=R.value;return p(k)?f&&g&&O?.async===!1&&O.jitless!==!0?(d||(d=r(t.shape)),R=d(R,O),b?hm([],k,R,O,S,e,O?.abortEarly===!0):R):i(R,O):(R.issues.push({expected:"object",code:"invalid_type",input:k,inst:e}),R)}});function Yl(e,t,i,a){for(let r of e)if(r.issues.length===0)return t.value=r.value,t;let o=e.filter(r=>!De(r));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(r=>r.issues.map(d=>Ve(d,a,xe())))}),t)}var hn=I("$ZodUnion",(e,t)=>{H.init(e,t),Q(e,"optin",a=>a.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":a.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),Q(e,"optout",a=>a.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Q(e,"values",a=>{if(a.def.options.every(o=>o._zod.values))return new Set(a.def.options.flatMap(o=>Array.from(o._zod.values)))}),Q(e,"pattern",a=>{if(a.def.options.every(o=>o._zod.pattern)){let o=a.def.options.map(r=>r._zod.pattern);return new RegExp(`^(${o.map(r=>at(r.source)).join("|")})$`)}});let i=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(a,o)=>{if(i)return i(a,o);let r=!1,d=[];for(let p of t.options){let f=p._zod.run({value:a.value,issues:[]},o);if(f instanceof Promise)d.push(f),r=!0;else{if(f.issues.length===0)return f;d.push(f)}}return r?Promise.all(d).then(p=>Yl(p,a,e,o)):Yl(d,a,e,o)}});function Ql(e,t,i,a){let o=[];for(let r=0;r<e.length;r++)e[r].issues.length===0&&o.push(r);return o.length===1?(t.value=e[o[0]].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(r=>r.issues.map(d=>Ve(d,a,xe())))}):t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:[],inclusive:!1,matches:o}),t)}var Uc=I("$ZodXor",(e,t)=>{hn.init(e,t),t.inclusive=!1;let i=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(a,o)=>{if(i)return i(a,o);let r=!1,d=[];for(let p of t.options){let f=p._zod.run({value:a.value,issues:[]},o);f instanceof Promise?(d.push(f),r=!0):d.push(f)}return r?Promise.all(d).then(p=>Ql(p,a,e,o)):Ql(d,a,e,o)}});function Nc(e,t){let i=e._zod,a=i.bag.optionsMap;a||(a=xm(i.def),i.bag.optionsMap=a);let o=a.get(t);if(o===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return o}function xm(e){let t=new Map;for(let i of e.options){let a=i._zod.propValues?.[e.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let o of a)if(t.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);t.set(o,null)}else t.set(o,i)}return t}var qc=I("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,hn.init(e,t);let i=e._zod.parse;Q(e,"propValues",o=>{let r={},d=0;for(let p of o.def.options){let f=p._zod.propValues;if(!f||Object.keys(f).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(p)}"`);f[o.def.discriminator]?.has(void 0)&&d++;for(let[m,g]of Object.entries(f)){Object.prototype.hasOwnProperty.call(r,m)||Oe(r,m,new Set);for(let b of g)r[m].add(b)}}return!o.def.unionFallback&&d>1&&r[o.def.discriminator]?.delete(void 0),r}),t.options.forEach((o,r)=>{let d=Xt(o._zod.def);if(d&&!Object.prototype.hasOwnProperty.call(d,t.discriminator))throw new Error(`Invalid discriminated union option at index "${r}"`)});let a=Ht(()=>xm(t));e._zod.parse=(o,r)=>{let d=o.value;if(!$t(d))return o.issues.push({code:"invalid_type",expected:"object",input:d,inst:e}),o;let p=d?.[t.discriminator],f=a.value.get(p);return f&&(p!==void 0||r.direction!=="backward")?f._zod.run(o,r):t.unionFallback||r.direction==="backward"?i(o,r):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(a.value.keys()).filter(m=>a.value.get(m)!==null),input:d,path:[t.discriminator],inst:e}),o)}}),Bc=I("$ZodIntersection",(e,t)=>{H.init(e,t),e._zod.parse=(i,a)=>{let o=i.value,r=t.left._zod.run({value:o,issues:[]},a),d=t.right._zod.run({value:o,issues:[]},a);return r instanceof Promise||d instanceof Promise?Promise.all([r,d]).then(([f,m])=>em(i,f,m)):em(i,r,d)}});function ro(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(We(e)&&We(t)){let i=Object.keys(t),a=Object.keys(e).filter(r=>i.indexOf(r)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let r of a){if(r==="__proto__")continue;let d=ro(e[r],t[r]);if(!d.valid)return{valid:!1,mergeErrorPath:[r,...d.mergeErrorPath]};o[r]=d.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let i=[];for(let a=0;a<e.length;a++){let o=e[a],r=t[a],d=ro(o,r);if(!d.valid)return{valid:!1,mergeErrorPath:[a,...d.mergeErrorPath]};i.push(d.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}function em(e,t,i){let a=new Map,o,r=new Map,d=(m,g)=>{let b;if(m.code==="unrecognized_keys"&&!m.path?.length)o??(o=m),b=m.keys;else if(m.code==="invalid_key"&&m.origin==="record"&&m.path?.length===1){let S=String(m.path[0]);r.has(S)||r.set(S,m),b=[S]}else return!1;for(let S of b)a.has(S)||a.set(S,{}),a.get(S)[g]=!0;return!0};for(let m of t.issues)d(m,"l")||e.issues.push(m);for(let m of i.issues)d(m,"r")||e.issues.push(m);let p=[...a].filter(([,m])=>m.l&&m.r).map(([m])=>m);if(p.length){let m=o?p.filter(g=>o.keys.includes(g)):[];m.length&&e.issues.push({...o,keys:m});for(let g of p)!m.includes(g)&&r.has(g)&&e.issues.push(r.get(g))}let f=ro(t.value,i.value);if(!f.valid){if(De(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(f.mergeErrorPath)}`)}return e.value=f.data,e}var Vr=I("$ZodTuple",(e,t)=>{H.init(e,t);let i=t.items,a=Ie.memoizer;a?.attach(e),e._zod.parse=(o,r)=>{let d=o.value;if(!Array.isArray(d))return o.issues.push({input:d,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=a?a.alloc(e,o,[],r):[];let p=[],f=tm(i,"optin"),m=tm(i,"optout");if(!t.rest){if(d.length<f)return o.issues.push({code:"too_small",minimum:f,inclusive:!0,input:d,inst:e,origin:"array"}),o;d.length>i.length&&o.issues.push({code:"too_big",maximum:i.length,inclusive:!0,input:d,inst:e,origin:"array"})}let g=new Array(i.length),b=t.rest?r?.abortEarly:void 0,S=!1;for(let R=0;R<i.length;R++){let O=i[R]._zod.run({value:d[R],issues:[]},r);O instanceof Promise?p.push(O.then(k=>{g[R]=k})):(g[R]=O,b&&!S&&O.issues.length&&(S=De(O)))}if(t.rest&&!S){let R=i.length-1,O=d.slice(i.length),k=o.issues.length;for(let E of O){if(b&&o.issues.length!==k){if(De(o,k))break;k=o.issues.length}R++;let Z=t.rest._zod.run({value:E,issues:[]},r);Z instanceof Promise?p.push(Z.then(U=>om(U,o,R))):om(Z,o,R)}}return p.length?Promise.all(p).then(()=>nm(g,o,i,d,m)):nm(g,o,i,d,m)}});function tm(e,t){for(let i=e.length-1;i>=0;i--)if(!(t==="optin"?e[i]._zod.optin!==void 0:e[i]._zod.optout==="optional"))return i+1;return 0}function om(e,t,i){e.issues.length&&t.issues.push(...Le(i,e.issues)),t.value[i]=e.value}function nm(e,t,i,a,o){for(let r=0;r<i.length;r++){let d=e[r],p=r<a.length;if(!p&&r>=o&&i[r]._zod.optin==="optional"){t.value.length=r;break}if(d.issues.length){if(!p&&r>=o){t.value.length=r;break}t.issues.push(...Le(r,d.issues))}t.value[r]=d.value}for(let r=t.value.length-1;r>=a.length&&(i[r]._zod.optout==="optional"&&t.value[r]===void 0);r--)t.value.length=r;return t}var Wc=I("$ZodRecord",(e,t)=>{H.init(e,t);let i=Ie.memoizer;i?.attach(e),e._zod.parse=(a,o)=>{let r=a.value;if(!We(r))return a.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),a;let d=[],p=t.keyType._zod.values;if(p&&!t.partial){a.value=i?i.alloc(e,a,{},o):{};let f=new Set;for(let g of p)if(typeof g=="string"||typeof g=="number"||typeof g=="symbol"){if(f.add(typeof g=="number"?g.toString():g),g==="__proto__")continue;let b=t.keyType._zod.run({value:g,issues:[]},o);if(b instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(b.issues.length){a.issues.push({code:"invalid_key",origin:"record",issues:b.issues.map(O=>Ve(O,o,xe())),input:g,path:[g],inst:e});continue}let S=b.value;if(S==="__proto__")continue;let R=t.valueType._zod.run({value:r[g],issues:[]},o);R instanceof Promise?d.push(R.then(O=>{O.issues.length&&a.issues.push(...Le(g,O.issues)),a.value[S]=O.value})):(R.issues.length&&a.issues.push(...Le(g,R.issues)),a.value[S]=R.value)}let m;for(let g in r)if(!f.has(g))if(t.mode==="loose"){if(g==="__proto__")continue;a.value[g]=r[g]}else m=m??[],m.push(g);m&&m.length>0&&a.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:m,continue:!0})}else{a.value=i?i.alloc(e,a,{},o):{};let f;for(let m of Reflect.ownKeys(r)){if(m==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,m))continue;let g=t.keyType._zod.run({value:m,issues:[]},o);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof m=="string"&&st.test(m)&&g.issues.length){let O=t.keyType._zod.run({value:Number(m),issues:[]},o);if(O instanceof Promise)throw new Error("Async schemas not supported in object keys currently");O.issues.length===0&&(g=O)}if(g.issues.length){t.mode==="loose"?a.value[m]=r[m]:p?(f=f??[],f.push(m)):a.issues.push({code:"invalid_key",origin:"record",issues:g.issues.map(O=>Ve(O,o,xe())),input:m,path:[m],inst:e});continue}let S=g.value;if(S==="__proto__")continue;let R=t.valueType._zod.run({value:r[m],issues:[]},o);R instanceof Promise?d.push(R.then(O=>{O.issues.length&&a.issues.push(...Le(m,O.issues)),a.value[S]=O.value})):(R.issues.length&&a.issues.push(...Le(m,R.issues)),a.value[S]=R.value)}f&&f.length>0&&a.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:f,continue:!0})}return d.length?Promise.all(d).then(()=>a):a}}),Zc=I("$ZodMap",(e,t)=>{H.init(e,t);let i=Ie.memoizer;i?.attach(e),e._zod.parse=(a,o)=>{let r=a.value;if(!(r instanceof Map))return a.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),a;let d=[];a.value=i?i.alloc(e,a,new Map,o):new Map;let p=o?.abortEarly,f=a.issues.length;for(let[m,g]of r){if(p&&a.issues.length!==f){if(De(a,f))break;f=a.issues.length}let b=t.keyType._zod.run({value:m,issues:[]},o),S=t.valueType._zod.run({value:g,issues:[]},o);b instanceof Promise||S instanceof Promise?d.push(Promise.all([b,S]).then(([R,O])=>{rm(R,O,a,m,r,e,o)})):rm(b,S,a,m,r,e,o)}return d.length?Promise.all(d).then(()=>a):a}});function rm(e,t,i,a,o,r,d){e.issues.length&&(Jo.has(typeof a)?i.issues.push(...Le(a,e.issues)):i.issues.push({code:"invalid_key",origin:"map",input:o,inst:r,issues:e.issues.map(p=>Ve(p,d,xe()))})),t.issues.length&&(Jo.has(typeof a)?i.issues.push(...Le(a,t.issues)):i.issues.push({origin:"map",code:"invalid_element",input:o,inst:r,key:a,issues:t.issues.map(p=>Ve(p,d,xe()))})),i.value.set(e.value,t.value)}var Gc=I("$ZodSet",(e,t)=>{H.init(e,t);let i=Ie.memoizer;i?.attach(e),e._zod.parse=(a,o)=>{let r=a.value;if(!(r instanceof Set))return a.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),a;let d=[];a.value=i?i.alloc(e,a,new Set,o):new Set;let p=o?.abortEarly,f=a.issues.length;for(let m of r){if(p&&a.issues.length!==f){if(De(a,f))break;f=a.issues.length}let g=t.valueType._zod.run({value:m,issues:[]},o);g instanceof Promise?d.push(g.then(b=>im(b,a))):im(g,a)}return d.length?Promise.all(d).then(()=>a):a}});function im(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Jc=I("$ZodEnum",(e,t)=>{H.init(e,t);let i=Jt(t.entries),a=new Set(i);e._zod.values=a,Q(e,"pattern",o=>{let r=Jt(o.def.entries).filter(d=>Jo.has(typeof d));return new RegExp(r.length?`^(${r.map(d=>Ze(d.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,r)=>{let d=o.value;return a.has(d)||o.issues.push({code:"invalid_value",values:i,input:d,inst:e}),o}}),Kc=I("$ZodLiteral",(e,t)=>{H.init(e,t);let i=new Set(t.values);e._zod.values=i,Q(e,"pattern",a=>{let o=a.def.values;return new RegExp(o.length?`^(${o.map(r=>typeof r=="string"?Ze(r):r?Ze(r.toString()):String(r)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(a,o)=>{let r=a.value;return i.has(r)||a.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),a}}),Hc=I("$ZodFile",(e,t)=>{H.init(e,t),e._zod.parse=(i,a)=>{let o=i.value;return o instanceof File||i.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),i}}),Xc=I("$ZodTransform",(e,t)=>{H.init(e,t),e._zod.optin="optional",Ie.memoizer?.guard(e),e._zod.parse=(i,a)=>{if(a.direction==="backward")throw new gt(e.constructor.name);let o=t.transform(i.value,i);if(a.async)return(o instanceof Promise?o:Promise.resolve(o)).then(d=>(i.value=d,i));if(o instanceof Promise)throw new Fe;return i.value=o,i}});function am(e,t){return e.value=t.issues.length?void 0:t.value,e}var Fr=I("$ZodOptional",(e,t)=>{H.init(e,t),Q(e,"optin",i=>i.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Q(e,"values",i=>{let a=i.def.innerType._zod.values;return a?new Set([...a,void 0]):void 0}),Q(e,"pattern",i=>{let a=i.def.innerType._zod.pattern;return a?new RegExp(`^(${at(a.source)})?$`):void 0}),e._zod.parse=(i,a)=>{if(i.value===void 0){if(t.innerType._zod.optin!=="defaulted")return i;let o=t.innerType._zod.run({value:i.value,issues:[]},a);return o instanceof Promise?o.then(r=>am(i,r)):am(i,o)}return t.innerType._zod.run(i,a)}}),Yc=I("$ZodExactOptional",(e,t)=>{Fr.init(e,t),Q(e,"values",i=>i.def.innerType._zod.values),Q(e,"pattern",i=>i.def.innerType._zod.pattern),e._zod.parse=(i,a)=>t.innerType._zod.run(i,a)}),Qc=I("$ZodNullable",(e,t)=>{H.init(e,t),Q(e,"optin",i=>i.def.innerType._zod.optin),Q(e,"optout",i=>i.def.innerType._zod.optout),Q(e,"pattern",i=>{let a=i.def.innerType._zod.pattern;return a?new RegExp(`^(${at(a.source)}|null)$`):void 0}),Q(e,"values",i=>i.def.innerType._zod.values?new Set([...i.def.innerType._zod.values,null]):void 0),e._zod.parse=(i,a)=>i.value===null?i:t.innerType._zod.run(i,a)}),ed=I("$ZodDefault",(e,t)=>{H.init(e,t),e._zod.optin="defaulted",Q(e,"values",i=>i.def.innerType._zod.values),e._zod.parse=(i,a)=>{if(a.direction==="backward")return t.innerType._zod.run(i,a);if(i.value===void 0)return i.value=t.defaultValue,i;let o=t.innerType._zod.run(i,a);return o instanceof Promise?o.then(r=>sm(r,t)):sm(o,t)}});function sm(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var td=I("$ZodPrefault",(e,t)=>{H.init(e,t),e._zod.optin="defaulted",Q(e,"values",i=>i.def.innerType._zod.values),e._zod.parse=(i,a)=>(a.direction==="backward"||i.value===void 0&&(i.value=t.defaultValue),t.innerType._zod.run(i,a))}),od=I("$ZodNonOptional",(e,t)=>{H.init(e,t),Q(e,"values",i=>{let a=i.def.innerType._zod.values;return a?new Set([...a].filter(o=>o!==void 0)):void 0}),e._zod.parse=(i,a)=>{let o=t.innerType._zod.run(i,a);return o instanceof Promise?o.then(r=>cm(r,e)):cm(o,e)}});function cm(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var nd=I("$ZodSuccess",(e,t)=>{H.init(e,t),e._zod.parse=(i,a)=>{if(a.direction==="backward")throw new gt("ZodSuccess");let o=t.innerType._zod.run(i,a);return o instanceof Promise?o.then(r=>(i.value=r.issues.length===0,i)):(i.value=o.issues.length===0,i)}});function dm(e,t,i,a){return t.issues.length?(e.value=i.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>Ve(o,a,xe()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var rd=I("$ZodCatch",(e,t)=>{H.init(e,t),Q(e,"optin",i=>i.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Q(e,"optout",i=>i.def.innerType._zod.optout),Q(e,"values",i=>i.def.innerType._zod.values),e._zod.parse=(i,a)=>{if(a.direction==="backward")return t.innerType._zod.run(i,a);let o=t.innerType._zod.run({value:i.value,issues:[]},a);return o instanceof Promise?o.then(r=>dm(i,r,t,a)):dm(i,o,t,a)}}),id=I("$ZodNaN",(e,t)=>{H.init(e,t),e._zod.parse=(i,a)=>((typeof i.value!="number"||!Number.isNaN(i.value))&&i.issues.push({input:i.value,inst:e,expected:"nan",code:"invalid_type"}),i)}),Ar=I("$ZodPipe",(e,t)=>{H.init(e,t),Q(e,"values",i=>i.def.in._zod.values),Q(e,"optin",i=>i.def.in._zod.optin),Q(e,"optout",i=>i.def.out._zod.optout),Q(e,"propValues",i=>i.def.in._zod.propValues),e._zod.parse=(i,a)=>{if(a.direction==="backward"){let r=t.out._zod.run(i,a);return r instanceof Promise?r.then(d=>vr(d,t.in,a)):vr(r,t.in,a)}let o=t.in._zod.run(i,a);return o instanceof Promise?o.then(r=>vr(r,t.out,a)):vr(o,t.out,a)}});function vr(e,t,i){return e.issues.some(a=>a.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}var gn=I("$ZodCodec",(e,t)=>{H.init(e,t),Q(e,"values",i=>i.def.in._zod.values),Q(e,"optin",i=>i.def.in._zod.optin),Q(e,"optout",i=>i.def.out._zod.optout),Q(e,"propValues",i=>i.def.in._zod.propValues),e._zod.parse=(i,a)=>{if((a.direction||"forward")==="forward"){let r=t.in._zod.run(i,a);return r instanceof Promise?r.then(d=>Rr(d,t,a)):Rr(r,t,a)}else{let r=t.out._zod.run(i,a);return r instanceof Promise?r.then(d=>Rr(d,t,a)):Rr(r,t,a)}}});function Rr(e,t,i){if(e.issues.length)return e.aborted=!0,e;if((i.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(r=>wr(e,r,t.out,i)):wr(e,o,t.out,i)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(r=>wr(e,r,t.in,i)):wr(e,o,t.in,i)}}function wr(e,t,i,a){return e.issues.length?(e.aborted=!0,e):i._zod.run({value:t,issues:e.issues},a)}var ad=I("$ZodPreprocess",(e,t)=>{Ar.init(e,t)}),sd=I("$ZodReadonly",(e,t)=>{H.init(e,t),Q(e,"propValues",i=>i.def.innerType._zod.propValues),Q(e,"values",i=>i.def.innerType._zod.values),Q(e,"optin",i=>i.def.innerType?._zod?.optin),Q(e,"optout",i=>i.def.innerType?._zod?.optout),e._zod.parse=(i,a)=>{if(a.direction==="backward")return t.innerType._zod.run(i,a);let o=t.innerType._zod.run(i,a);return o instanceof Promise?o.then(pm):pm(o)}});function pm(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Dy(e){let t=e._zod.def,i=t.pattern,a=!!t.format?.includes("int"),o,r;for(let p of t.checks??[]){let f=p._zod.def;f.pattern&&(i=f.pattern),a||(a=!!f.format?.includes("int"));let m=f.minimum??f.length,g=f.maximum??f.length;m!==void 0&&(o===void 0||m>o)&&(o=m),g!==void 0&&(r===void 0||g<r)&&(r=g)}if(i)return i.source;if(o!==void 0&&r!==void 0&&o>r)return"(?!)";if(o!==void 0||r!==void 0)return Rs({minimum:o,maximum:r}).source;let d=e._zod.pattern;return(a&&d===st?an:d)?.source}function Qs(e){let t=e._zod.def,i=e._zod.pattern?.source,a=t.innerType??e._zod.innerType;if(a){let o=a._zod.pattern?.source,r=Qs(a);return i&&o&&r&&r!==o?i.replace(at(o),()=>at(r)):i}if(t.options){let o=t.options.map(Qs);if(o.every(Boolean))return`^(${o.map(r=>at(r)).join("|")})$`}return Dy(e)}var cd=I("$ZodTemplateLiteral",(e,t)=>{H.init(e,t);let i=[];for(let a of t.parts)if(typeof a=="object"&&a!==null){let o=Qs(a);if(!o)throw new Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);i.push(at(o))}else if(a===null||La.has(typeof a))i.push(Ze(`${a}`));else throw new Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${i.join("")}$`),e._zod.parse=(a,o)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"string",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),a)}),dd=I("$ZodFunction",(e,t)=>(H.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=i=>{if(typeof i!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...a){let o=e._def.input?ar(e._def.input,a):a,r=Reflect.apply(i,this,o);return e._def.output?ar(e._def.output,r):r},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=i=>{if(typeof i!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...a){let o=e._def.input?await sr(e._def.input,a):a,r=await Reflect.apply(i,this,o);return e._def.output?await sr(e._def.output,r):r},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(i,a)=>typeof i.value!="function"?(i.issues.push({code:"invalid_type",expected:"function",input:i.value,inst:e}),i):(e._def.output&&e._def.output._zod.def.type==="promise"?i.value=e.implementAsync(i.value):i.value=e.implement(i.value),i),e.input=(...i)=>{let a=e.constructor;return Array.isArray(i[0])?new a({type:"function",input:new Vr({type:"tuple",items:i[0],rest:i[1]}),output:e._def.output}):new a({type:"function",input:i[0],output:e._def.output})},e.output=i=>{let a=e.constructor;return new a({type:"function",input:e._def.input,output:i})},e)),pd=I("$ZodPromise",(e,t)=>{H.init(e,t),e._zod.parse=(i,a)=>Promise.resolve(i.value).then(o=>t.innerType._zod.run({value:o,issues:[]},a))}),xn=I("$ZodLazy",(e,t)=>{H.init(e,t),Ea(e._zod,"innerType",()=>{let i=t;return i._cachedInner||(i._cachedInner=t.getter()),i._cachedInner}),Q(e,"pattern",i=>i.innerType?._zod?.pattern),Q(e,"propValues",i=>i.innerType?._zod?.propValues),Q(e,"optin",i=>i.innerType?._zod?.optin??void 0),Q(e,"optout",i=>i.innerType?._zod?.optout??void 0),e._zod.parse=(i,a)=>e._zod.innerType._zod.run(i,a)}),ud=I("$ZodCustom",(e,t)=>{pe.init(e,t),H.init(e,t),e._zod.parse=(i,a)=>i,e._zod.check=i=>{let a=i.value,o=t.fn(a);if(o instanceof Promise)return o.then(r=>um(r,i,a,e));um(o,i,a,e)}});function um(e,t,i,a){if(!e){let o={code:"custom",input:i,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(o.params=a._zod.def.params),t.issues.push(Yt(o))}}var Br=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},md="~memo",bm=[];function ym(e){return e!==null&&typeof e=="object"}function ld(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var Sm=new WeakMap,io=0,qr=1,zn=2;function bn(e,t,i){let a=Sm.get(e);if(a!==void 0)return a?zn:io;if(t.has(e))return zn;t.add(e);let o=io,r=g=>{if(o!==zn&&g?._zod){let b=bn(g,t,i);b>o&&(o=b)}},d=(g,b)=>{let S=io;for(let R of Reflect.ownKeys(g)){let O=Object.getOwnPropertyDescriptor(g,R);if(b&&!O.enumerable)continue;let k=O.get?qr:O.value?._zod?bn(O.value,t,i):io;k>S&&(S=k)}return S},p=g=>{g>o&&(o=g)},f=e._zod.def,m=f.type;switch(m){case"object":{let g=Xt(f);p(g?d(g,!0):qr),r(f.catchall);break}case"array":r(f.element);break;case"tuple":for(let g of f.items)r(g);r(f.rest);break;case"record":case"map":r(f.keyType),r(f.valueType);break;case"set":r(f.valueType);break;case"union":for(let g of f.options)r(g);break;case"intersection":r(f.left),r(f.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":r(f.innerType);break;case"pipe":r(f.in),r(f.out);break;case"function":r(f.input),r(f.output);break;case"lazy":{let g=f._cachedInner??(i?e._zod.innerType:void 0);p(g?bn(g,t,!1):qr);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let g in f){let b=Object.getOwnPropertyDescriptor(f,g);if(!b||b.get)continue;let S=b.value;if(!(!S||typeof S!="object")){if(S._zod)r(S);else if(Array.isArray(S))for(let R of S)r(R)}}}return t.delete(e),_y(e,o)}function _y(e,t){return t!==qr&&Sm.set(e,t===zn),t}function Wr(e){return bn(e,new Set,!0)!==io}function Ey(e,t){let i=e.buckets.get(t);return i||(i=new WeakMap,e.buckets.set(t,i)),i}var Ur,Nr=[],jy={alloc(e,t,i){let a=Ur;if(!a)return i;Ur=void 0;let o={value:i,issues:null};return a.set(t.value,o),Nr.push(o),i},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let i=e._zod.parse,a=(o,r)=>{if(r.direction!=="backward"&&Zr(r,o.value))throw new Br;return i(o,r)};e._zod.parse=a,e._zod.run===i&&(e._zod.run=a)})},attach(e){var t;let i,a=!1,o,r;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let d=e._zod.parse,p=(f,m)=>{if(i===void 0){let Z=bn(e,new Set,!1);if(Z===io)return e._zod.parse=d,e._zod.run===p&&(e._zod.run=d),d(f,m);Z===zn||a?i=!0:a=!0}let g=f.value;if(!ym(g))return d(f,m);let b=m[md];b||(b={buckets:new WeakMap,backEdges:void 0},m[md]=b);let S;o===m?S=r:(S=Ey(b,e),o=m,r=S);let R=S.get(g);if(R)return f.value=R.value,R.issues?R.issues.length&&f.issues.push(...ld(R.issues)):(f.memo=!0,b.backEdges??(b.backEdges=new WeakSet),b.backEdges.add(R.value)),f;Ur=S;let O=Nr.length,k=d(f,m);Ur=void 0;let E=Nr.length>O?Nr.pop():void 0;return k instanceof Promise?k.then(Z=>(E&&(E.issues=Z.issues.length?ld(Z.issues):bm),Z)):(E&&(E.issues=k.issues.length?ld(k.issues):bm),k)};e._zod.parse=p,e._zod.run===d&&(e._zod.run=p)})}};function yn(){return jy}function Zr(e,t){let i=e[md]?.backEdges;return i!==void 0&&ym(t)&&i.has(t)}var vn={};rt(vn,{ar:()=>vm,az:()=>Rm,be:()=>Im,bg:()=>Mm,bn:()=>Om,ca:()=>$m,ckb:()=>km,cs:()=>Tm,da:()=>Cm,de:()=>Dm,el:()=>_m,en:()=>Gr,eo:()=>Em,es:()=>jm,fa:()=>Pm,fi:()=>Lm,fr:()=>Vm,frCA:()=>Fm,gu:()=>Am,he:()=>Um,hi:()=>Nm,hr:()=>qm,hu:()=>Bm,hy:()=>Zm,id:()=>Gm,is:()=>Jm,it:()=>Km,ja:()=>Hm,ka:()=>Xm,kh:()=>Ym,km:()=>Jr,kn:()=>Qm,ko:()=>ef,lt:()=>of,mk:()=>nf,ms:()=>rf,ne:()=>af,nl:()=>sf,nn:()=>cf,no:()=>df,ota:()=>pf,pl:()=>lf,ps:()=>uf,pt:()=>mf,ptBR:()=>ff,ro:()=>hf,ru:()=>xf,sk:()=>zf,sl:()=>bf,sv:()=>yf,ta:()=>Sf,tg:()=>vf,th:()=>Rf,tk:()=>wf,tr:()=>If,ua:()=>Mf,uk:()=>Kr,ur:()=>Of,uz:()=>$f,vi:()=>kf,yo:()=>Df,zhCN:()=>Tf,zhTW:()=>Cf});var Py=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},map:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(o){return e[o]??null}let i={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",mac:"\u0639\u0646\u0648\u0627\u0646 MAC",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",credit_card:"\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",currency_code:"\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",iban:"IBAN",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${o.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${p}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${r}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${p}`}case"invalid_value":return o.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${D(o.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${o.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${o.maximum.toString()} ${d.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${o.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${r} ${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${o.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${o.minimum.toString()} ${d.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${o.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${r} ${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${o.prefix}"`:r.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${r.suffix}"`:r.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${r.includes}"`:r.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${r.pattern}`:`${i[r.format]??o.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${o.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${o.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${o.keys.length>1?"\u0629":""}: ${M(o.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${o.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${o.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function vm(){return{localeError:Py()}}var Ly=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"},map:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(o){return e[o]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kart\u0131 n\xF6mr\u0259si",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${o.expected}, daxil olan ${p}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${r}, daxil olan ${p}`}case"invalid_value":return o.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${D(o.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${o.origin??"d\u0259y\u0259r"} ${r}${o.maximum.toString()} ${d.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${o.origin??"d\u0259y\u0259r"} ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${o.origin} ${r}${o.minimum.toString()} ${d.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${o.origin} ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${r.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:r.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${r.suffix}" il\u0259 bitm\u0259lidir`:r.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${r.includes}" daxil olmal\u0131d\u0131r`:r.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${r.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${i[r.format]??o.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${o.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${o.keys.length>1?"lar":""}: ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${o.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Rm(){return{localeError:Ly()}}function wm(e,t,i,a){let o=Math.abs(e),r=o%10,d=o%100;return d>=11&&d<=19?a:r===1?t:r>=2&&r<=4?i:a}var Vy=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(o){return e[o]??null}let i={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",mac:"MAC \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",credit_card:"\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},a={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${o.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${p}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${r}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${p}`}case"invalid_value":return o.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${D(o.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);if(d){let p=Number(o.maximum),f=wm(p,d.unit.one,d.unit.few,d.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${d.verb} ${r}${o.maximum.toString()} ${f}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);if(d){let p=Number(o.minimum),f=wm(p,d.unit.one,d.unit.few,d.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${o.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${d.verb} ${r}${o.minimum.toString()} ${f}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${o.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${i[r.format]??o.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${o.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${o.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${M(o.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${o.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${o.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Im(){return{localeError:Vy()}}var Fy=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(o){return e[o]??null}let i={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${o.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${p}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${p}`}case"invalid_value":return o.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${D(o.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${o.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${o.maximum.toString()} ${d.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${o.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${o.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${r}${o.minimum.toString()} ${d.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${o.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;if(r.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${r.prefix}"`;if(r.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${r.suffix}"`;if(r.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${r.includes}"`;if(r.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${r.pattern}`;let d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return r.format==="emoji"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="datetime"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="date"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),r.format==="time"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),r.format==="duration"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${d} ${i[r.format]??o.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${o.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${o.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${o.keys.length>1?"\u043E\u0432\u0435":""}: ${M(o.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${o.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${o.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Mm(){return{localeError:Fy()}}var Ay=()=>{let e={string:{unit:"\u0985\u0995\u09CD\u09B7\u09B0",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},file:{unit:"\u09AC\u09BE\u0987\u099F",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},array:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},set:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},map:{unit:"\u098F\u09A8\u09CD\u099F\u09CD\u09B0\u09BF",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"}};function t(o){return e[o]??null}let i={regex:"\u0987\u09A8\u09AA\u09C1\u099F",email:"\u0987\u09AE\u09C7\u0987\u09B2 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",url:"URL",emoji:"\u0987\u09AE\u09CB\u099C\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u09A4\u09BE\u09B0\u09BF\u0996 \u0993 \u09B8\u09AE\u09AF\u09BC",date:"ISO \u09A4\u09BE\u09B0\u09BF\u0996",time:"ISO \u09B8\u09AE\u09AF\u09BC",duration:"ISO \u09B8\u09AE\u09AF\u09BC\u0995\u09BE\u09B2",ipv4:"IPv4 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",ipv6:"IPv6 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",mac:"MAC \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",cidrv4:"IPv4 \u09B0\u09C7\u099E\u09CD\u099C",cidrv6:"IPv6 \u09B0\u09C7\u099E\u09CD\u099C",base64:"base64-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",base64url:"base64url-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",json_string:"JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",e164:"E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",credit_card:"\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",currency_code:"\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",iban:"IBAN",jwt:"JWT",template_literal:"\u0987\u09A8\u09AA\u09C1\u099F"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${r}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${p}`}case"invalid_value":return o.values.length===1?`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${D(o.values[0])}`:`\u0985\u09AC\u09C8\u09A7 \u0985\u09AA\u09B6\u09A8: ${M(o.values," | ")} \u098F\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7 \u098F\u0995\u099F\u09BF \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${o.origin??"\u09AE\u09BE\u09A8"} ${r}${o.maximum.toString()} ${d.unit??"\u098F\u09B2\u09BF\u09AE\u09C7\u09A8\u09CD\u099F"} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${o.origin??"\u09AE\u09BE\u09A8"} ${r}${o.maximum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${o.origin} ${r}${o.minimum.toString()} ${d.unit} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${o.origin} ${r}${o.minimum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${r.prefix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C1\u09B0\u09C1 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:r.format==="ends_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${r.suffix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C7\u09B7 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:r.format==="includes"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${r.includes}" \u0985\u09A8\u09CD\u09A4\u09B0\u09CD\u09AD\u09C1\u0995\u09CD\u09A4 \u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7`:r.format==="regex"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: ${r.pattern} \u09AA\u09CD\u09AF\u09BE\u099F\u09BE\u09B0\u09CD\u09A8 \u09AE\u09BF\u09B2\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09AC\u09C8\u09A7 ${i[r.format]??o.format}`}case"not_multiple_of":return`\u0985\u09AC\u09C8\u09A7 \u09A8\u09AE\u09CD\u09AC\u09B0: ${o.divisor} \u098F\u09B0 \u0997\u09C1\u09A3\u09BF\u09A4\u0995 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`;case"unrecognized_keys":return`\u0985\u099A\u09C7\u09A8\u09BE \u0995\u09C0${o.keys.length>1?"\u0997\u09C1\u09B2\u09CB":""}: ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u0995\u09C0`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0985\u09AC\u09C8\u09A7 \u09A1\u09BF\u09B8\u0995\u09CD\u09B0\u09BF\u09AE\u09BF\u09A8\u09C7\u099F\u09B0 \u09AE\u09BE\u09A8\u0964 \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${o.options.map(d=>`'${d}'`).join(" | ")}`:"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F";case"invalid_element":return`${o.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u09AE\u09BE\u09A8`;default:return"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F"}}};function Om(){return{localeError:Ay()}}var Uy=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function t(o){return e[o]??null}let i={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",mac:"adre\xE7a MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de targeta de cr\xE8dit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${o.expected}, s'ha rebut ${p}`:`Tipus inv\xE0lid: s'esperava ${r}, s'ha rebut ${p}`}case"invalid_value":return o.values.length===1?`Valor inv\xE0lid: s'esperava ${D(o.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${M(o.values," o ")}`;case"too_big":{let r=o.inclusive?"com a m\xE0xim":"menys de",d=t(o.origin);return d?`Massa gran: s'esperava que ${o.origin??"el valor"} contingu\xE9s ${r} ${o.maximum.toString()} ${d.unit??"elements"}`:`Massa gran: s'esperava que ${o.origin??"el valor"} fos ${r} ${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?"com a m\xEDnim":"m\xE9s de",d=t(o.origin);return d?`Massa petit: s'esperava que ${o.origin} contingu\xE9s ${r} ${o.minimum.toString()} ${d.unit}`:`Massa petit: s'esperava que ${o.origin} fos ${r} ${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${r.prefix}"`:r.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${r.suffix}"`:r.format==="includes"?`Format inv\xE0lid: ha d'incloure "${r.includes}"`:r.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${r.pattern}`:`Format inv\xE0lid per a ${i[r.format]??o.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${o.divisor}`;case"unrecognized_keys":return`Clau${o.keys.length>1?"s":""} no reconeguda${o.keys.length>1?"s":""}: ${M(o.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${o.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${o.origin}`;default:return"Entrada inv\xE0lida"}}};function $m(){return{localeError:Uy()}}var Ny=()=>{let e={string:{unit:"\u067E\u06CC\u062A",verb:"\u0628\u06CE\u062A"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u0628\u06CE\u062A"},array:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},set:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},map:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"}};function t(o){return e[o]??null}let i={regex:"regex",email:"\u0626\u06CC\u0645\u06D5\u06CC\u06B5",url:"\u0628\u06D5\u0633\u062A\u06D5\u0631 (URL)",emoji:"\u0626\u06CC\u0645\u06C6\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0695\u06CE\u06A9\u06D5\u0648\u062A \u0648 \u06A9\u0627\u062A",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",time:"\u06A9\u0627\u062A",duration:"\u0645\u0627\u0648\u06D5",ipv4:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv4",ipv6:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv6",mac:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC MAC",cidrv4:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv4",cidrv6:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv6",base64:"\u062F\u06D5\u0642\u06CC base64",base64url:"\u062F\u06D5\u0642\u06CC base64url",json_string:"\u062F\u06D5\u0642\u06CC JSON",e164:"\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",credit_card:"\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",currency_code:"\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",iban:"IBAN",jwt:"JWT",template_literal:"\u062A\u06CE\u06A9\u0631\u062F\u06D5"},a={nan:"NaN",string:"\u0646\u0648\u0648\u0633\u06CC\u0646",number:"\u0698\u0645\u0627\u0631\u06D5",boolean:"boolean",array:"array",object:"object",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",integer:"\u0698\u0645\u0627\u0631\u06D5",float:"\u0698\u0645\u0627\u0631\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d,f=["\u0627","\u0648","\u06C6","\u0648\u0648","\u06D5","\u06CC","\u06CE"].some(g=>p.endsWith(g))?"\u06CC\u06D5":"\u06D5",m=/^[a-zA-Z]+$/.test(p);return d==="null"||d==="undefined"?"\u062F\u0627\u0648\u0627\u06A9\u0631\u0627\u0648\u06D5":`\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${r} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${p}${m?"":f}`}case"invalid_value":return o.values.length===1?`\u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0648\u0633\u062A\u06D5: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${D(o.values[0])} \u0628\u06CE\u062A`:`\u0647\u06D5\u06B5\u0628\u0698\u0627\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 \u06CC\u06D5\u06A9\u06CE\u06A9 \u0628\u06CE\u062A \u0644\u06D5 ${M(o.values,"|")}`;case"too_big":{let r=t(o.origin);return r?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${o.maximum.toString()} ${r.unit} ${r.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${o.maximum.toString()} \u0628\u06CE\u062A`}case"too_small":{let r=t(o.origin);return r?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${o.minimum.toString()} ${r.unit} ${r.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${o.minimum.toString()} \u0628\u06CE\u062A`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u062F\u06D5\u0633\u062A\u067E\u06CE\u0628\u06A9\u0627\u062A \u0628\u06D5 "${r.prefix}"`:r.format==="ends_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u06A9\u06C6\u062A\u0627\u06CC\u06CC\u0628\u06CE\u062A \u0628\u06D5 "${r.suffix}"`:r.format==="includes"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 "${r.includes}" \u0644\u06D5\u062E\u06C6\u0628\u06AF\u0631\u06CE\u062A`:r.format==="regex"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0644\u06D5\u06AF\u06D5\u06B5 \u067E\u0627\u062A\u06CE\u0631\u0646\u06CC ${r.pattern} \u0628\u06AF\u0648\u0646\u062C\u06CE\u062A`:`\u0628\u06D5\u0647\u0627\u06CC ${i[r.format]??o.format} \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`}case"not_multiple_of":return`\u0698\u0645\u0627\u0631\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u062F\u06D5\u0628\u06CE\u062A \u0686\u06D5\u0646\u062F \u0647\u06CE\u0646\u062F\u06D5 \u0628\u06CE\u062A \u0628\u06C6 ${o.divisor}`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: ${M(o.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A \u0644\u06D5 ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0628\u06D5\u0647\u0627\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648 \u0647\u06D5\u06CC\u06D5. \u0628\u06D5\u0647\u0627\u06CC \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648: ${o.options.map(d=>`'${d}'`).join(" | ")}`:"\u06CC\u06D5\u06A9\u06AF\u0631\u062A\u0646\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A";case"invalid_element":return`${o.origin} \u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`;default:return"\u062A\u06CE\u06A9\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A"}}};function km(){return{localeError:Ny()}}var qy=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"},map:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(o){return e[o]??null}let i={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditn\xED karty",currency_code:"k\xF3d m\u011Bny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${o.expected}, obdr\u017Eeno ${p}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${r}, obdr\u017Eeno ${p}`}case"invalid_value":return o.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${D(o.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${o.origin??"hodnota"} mus\xED m\xEDt ${r}${o.maximum.toString()} ${d.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${o.origin??"hodnota"} mus\xED b\xFDt ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${o.origin??"hodnota"} mus\xED m\xEDt ${r}${o.minimum.toString()} ${d.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${o.origin??"hodnota"} mus\xED b\xFDt ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${r.includes}"`:r.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${i[r.format]??o.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${o.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${M(o.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${o.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${o.origin}`;default:return"Neplatn\xFD vstup"}}};function Tm(){return{localeError:qy()}}var By=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function t(o){return e[o]??null}let i={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Ugyldigt input: forventede instanceof ${o.expected}, fik ${p}`:`Ugyldigt input: forventede ${r}, fik ${p}`}case"invalid_value":return o.values.length===1?`Ugyldig v\xE6rdi: forventede ${D(o.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin),p=a[o.origin]??o.origin;return d?`For stor: forventede ${p??"value"} ${d.verb} ${r} ${o.maximum.toString()} ${d.unit??"elementer"}`:`For stor: forventede ${p??"value"} havde ${r} ${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin),p=a[o.origin]??o.origin;return d?`For lille: forventede ${p} ${d.verb} ${r} ${o.minimum.toString()} ${d.unit}`:`For lille: forventede ${p} havde ${r} ${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Ugyldig streng: skal starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: skal ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: skal indeholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${i[r.format]??o.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${M(o.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${o.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${o.origin}`;default:return"Ugyldigt input"}}};function Cm(){return{localeError:By()}}var Wy=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function t(o){return e[o]??null}let i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"W\xE4hrungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},a={nan:"NaN",number:"Zahl",array:"Array"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${o.expected}, erhalten ${p}`:`Ung\xFCltige Eingabe: erwartet ${r}, erhalten ${p}`}case"invalid_value":return o.values.length===1?`Ung\xFCltige Eingabe: erwartet ${D(o.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Zu gro\xDF: erwartet, dass ${o.origin??"Wert"} ${r}${o.maximum.toString()} ${d.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${o.origin??"Wert"} ${r}${o.maximum.toString()} ist`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Zu klein: erwartet, dass ${o.origin} ${r}${o.minimum.toString()} ${d.unit} hat`:`Zu klein: erwartet, dass ${o.origin} ${r}${o.minimum.toString()} ist`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Ung\xFCltiger String: muss mit "${r.prefix}" beginnen`:r.format==="ends_with"?`Ung\xFCltiger String: muss mit "${r.suffix}" enden`:r.format==="includes"?`Ung\xFCltiger String: muss "${r.includes}" enthalten`:r.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${r.pattern} entsprechen`:`Ung\xFCltig: ${i[r.format]??o.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${o.divisor} sein`;case"unrecognized_keys":return`${o.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${M(o.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${o.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${o.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Dm(){return{localeError:Wy()}}var Zy=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(o){return e[o]??null}let i={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",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",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",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",credit_card:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2",currency_code:"\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",iban:"IBAN",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return typeof o.expected=="string"&&/^[A-Z]/.test(o.expected)?`\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 ${o.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${p}`:`\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 ${r}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${p}`}case"invalid_value":return o.values.length===1?`\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 ${D(o.values[0])}`:`\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 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${o.maximum.toString()} ${d.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${r}${o.minimum.toString()} ${d.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\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 "${r.prefix}"`:r.format==="ends_with"?`\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 "${r.suffix}"`:r.format==="includes"?`\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 "${r.includes}"`:r.format==="regex"?`\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 ${r.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${i[r.format]??o.format}`}case"not_multiple_of":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 ${o.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${o.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${o.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${M(o.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${o.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${o.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function _m(){return{localeError:Zy()}}var Gy=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}let i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};function o(r,d){return r==="number"&&typeof d=="number"&&!Number.isFinite(d)?String(d):a[r]??r}return r=>{switch(r.code){case"invalid_type":{let d=o(r.expected),p=_(r.input),f=o(p,r.input);return`Invalid input: expected ${d}, received ${f}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${D(r.values[0])}`:`Invalid option: expected one of ${M(r.values,"|")}`;case"too_big":{let d=r.exact?"exactly ":r.inclusive?"<=":"<",p=t(r.origin);return p?`Too big: expected ${r.origin??"value"} to have ${d}${r.maximum.toString()} ${p.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${d}${r.maximum.toString()}`}case"too_small":{let d=r.exact?"exactly ":r.inclusive?">=":">",p=t(r.origin);return p?`Too small: expected ${r.origin} to have ${d}${r.minimum.toString()} ${p.unit}`:`Too small: expected ${r.origin} to be ${d}${r.minimum.toString()}`}case"invalid_format":{let d=r;return d.format==="starts_with"?`Invalid string: must start with "${d.prefix}"`:d.format==="ends_with"?`Invalid string: must end with "${d.suffix}"`:d.format==="includes"?`Invalid string: must include "${d.includes}"`:d.format==="regex"?`Invalid string: must match pattern ${d.pattern}`:`Invalid ${i[d.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${M(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`Invalid discriminator value. Expected ${r.options.map(p=>`'${p}'`).join(" | ")}`:r.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function Gr(){return{localeError:Gy()}}var Jy=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function t(o){return e[o]??null}let i={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},a={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${o.expected}, ricevi\u011Dis ${p}`:`Nevalida enigo: atendi\u011Dis ${r}, ricevi\u011Dis ${p}`}case"invalid_value":return o.values.length===1?`Nevalida enigo: atendi\u011Dis ${D(o.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Tro granda: atendi\u011Dis ke ${o.origin??"valoro"} havu ${r}${o.maximum.toString()} ${d.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${o.origin??"valoro"} havu ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Tro malgranda: atendi\u011Dis ke ${o.origin} havu ${r}${o.minimum.toString()} ${d.unit}`:`Tro malgranda: atendi\u011Dis ke ${o.origin} estu ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${r.prefix}"`:r.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${r.suffix}"`:r.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${r.includes}"`:r.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`:`Nevalida ${i[r.format]??o.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${o.divisor}`;case"unrecognized_keys":return`Nekonata${o.keys.length>1?"j":""} \u015Dlosilo${o.keys.length>1?"j":""}: ${M(o.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${o.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${o.origin}`;default:return"Nevalida enigo"}}};function Em(){return{localeError:Jy()}}var Ky=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(o){return e[o]??null}let i={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",mac:"direcci\xF3n MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de tarjeta de cr\xE9dito",currency_code:"c\xF3digo de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${o.expected}, recibido ${p}`:`Entrada inv\xE1lida: se esperaba ${r}, recibido ${p}`}case"invalid_value":return o.values.length===1?`Entrada inv\xE1lida: se esperaba ${D(o.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin),p=a[o.origin]??o.origin;return d?`Demasiado grande: se esperaba que ${p??"valor"} tuviera ${r}${o.maximum.toString()} ${d.unit??"elementos"}`:`Demasiado grande: se esperaba que ${p??"valor"} fuera ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin),p=a[o.origin]??o.origin;return d?`Demasiado peque\xF1o: se esperaba que ${p} tuviera ${r}${o.minimum.toString()} ${d.unit}`:`Demasiado peque\xF1o: se esperaba que ${p} fuera ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${r.prefix}"`:r.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${r.suffix}"`:r.format==="includes"?`Cadena inv\xE1lida: debe incluir "${r.includes}"`:r.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${r.pattern}`:`Inv\xE1lido ${i[r.format]??o.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${o.divisor}`;case"unrecognized_keys":return`Llave${o.keys.length>1?"s":""} desconocida${o.keys.length>1?"s":""}: ${M(o.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${a[o.origin]??o.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${a[o.origin]??o.origin}`;default:return"Entrada inv\xE1lida"}}};function jm(){return{localeError:Ky()}}var Hy=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},map:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(o){return e[o]??null}let i={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",mac:"MAC \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",credit_card:"\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",currency_code:"\u06A9\u062F \u0627\u0631\u0632",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${o.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${p} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${r} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${p} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return o.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${D(o.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${M(o.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${o.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${o.maximum.toString()} ${d.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${o.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${r}${o.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${o.origin} \u0628\u0627\u06CC\u062F ${r}${o.minimum.toString()} ${d.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${o.origin} \u0628\u0627\u06CC\u062F ${r}${o.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:r.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${r.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:r.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${r.includes}" \u0628\u0627\u0634\u062F`:r.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${r.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${i[r.format]??o.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${o.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${o.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${M(o.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${o.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${o.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Pm(){return{localeError:Hy()}}var Xy=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(o){return e[o]??null}let i={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Virheellinen tyyppi: odotettiin instanceof ${o.expected}, oli ${p}`:`Virheellinen tyyppi: odotettiin ${r}, oli ${p}`}case"invalid_value":return o.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${D(o.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Liian suuri: ${d.subject} t\xE4ytyy olla ${r}${o.maximum.toString()} ${d.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Liian pieni: ${d.subject} t\xE4ytyy olla ${r}${o.minimum.toString()} ${d.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${r.prefix}"`:r.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${r.suffix}"`:r.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${r.includes}"`:r.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${r.pattern}`:`Virheellinen ${i[r.format]??o.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${o.divisor} monikerta`;case"unrecognized_keys":return`${o.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${M(o.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Lm(){return{localeError:Xy()}}var Yy=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(o){return e[o]??null}let i={regex:"expression r\xE9guli\xE8re",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne de caract\xE8res encod\xE9e en base64",base64url:"cha\xEEne de caract\xE8res encod\xE9e en base64url",json_string:"cha\xEEne de caract\xE8res JSON",e164:"num\xE9ro au format E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},a={string:"cha\xEEne de caract\xE8res",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Entr\xE9e invalide : instance de ${o.expected} attendu, ${p} re\xE7u`:`Entr\xE9e invalide : ${r} attendu, ${p} re\xE7u`}case"invalid_value":return o.values.length===1?`Entr\xE9e invalide : ${D(o.values[0])} attendu`:`Option invalide : une valeur parmi ${M(o.values,"|")} attendue`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Trop grand : ${a[o.origin]??"valeur"} doit ${d.verb} ${r}${o.maximum.toString()} ${d.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${a[o.origin]??"valeur"} doit \xEAtre ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Trop petit : ${a[o.origin]??"valeur"} doit ${d.verb} ${r}${o.minimum.toString()} ${d.unit}`:`Trop petit : ${a[o.origin]??"valeur"} doit \xEAtre ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Cha\xEEne de caract\xE8res invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne de caract\xE8res invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne de caract\xE8res invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne de caract\xE8res invalide : doit correspondre au motif ${r.pattern}`:`${i[r.format]??o.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${o.divisor}`;case"unrecognized_keys":return`Cl\xE9${o.keys.length>1?"s":""} non reconnue${o.keys.length>1?"s":""} : ${M(o.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${o.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${o.origin}`;default:return"Entr\xE9e invalide"}}};function Vm(){return{localeError:Yy()}}var Qy=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"},map:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(o){return e[o]??null}let i={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Entr\xE9e invalide : attendu instanceof ${o.expected}, re\xE7u ${p}`:`Entr\xE9e invalide : attendu ${r}, re\xE7u ${p}`}case"invalid_value":return o.values.length===1?`Entr\xE9e invalide : attendu ${D(o.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"\u2264":"<",d=t(o.origin);return d?`Trop grand : attendu que ${o.origin??"la valeur"} ait ${r}${o.maximum.toString()} ${d.unit}`:`Trop grand : attendu que ${o.origin??"la valeur"} soit ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?"\u2265":">",d=t(o.origin);return d?`Trop petit : attendu que ${o.origin} ait ${r}${o.minimum.toString()} ${d.unit}`:`Trop petit : attendu que ${o.origin} soit ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${r.prefix}"`:r.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${r.suffix}"`:r.format==="includes"?`Cha\xEEne invalide : doit inclure "${r.includes}"`:r.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${r.pattern}`:`${i[r.format]??o.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${o.divisor}`;case"unrecognized_keys":return`Cl\xE9${o.keys.length>1?"s":""} non reconnue${o.keys.length>1?"s":""} : ${M(o.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${o.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${o.origin}`;default:return"Entr\xE9e invalide"}}};function Fm(){return{localeError:Qy()}}var eS=()=>{let e={string:{unit:"\u0A85\u0A95\u0ACD\u0AB7\u0AB0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},file:{unit:"\u0AAC\u0ABE\u0AAF\u0A9F",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},array:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},set:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},map:{unit:"\u0A8F\u0AA8\u0ACD\u0A9F\u0ACD\u0AB0\u0AC0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"}};function t(o){return e[o]??null}let i={regex:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F",email:"\u0A88\u0AAE\u0AC7\u0A87\u0AB2 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",url:"URL",emoji:"\u0A87\u0AAE\u0ACB\u0A9C\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96 \u0A85\u0AA8\u0AC7 \u0AB8\u0AAE\u0AAF",date:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96",time:"ISO \u0AB8\u0AAE\u0AAF",duration:"ISO \u0A85\u0AB5\u0AA7\u0ABF",ipv4:"IPv4 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",ipv6:"IPv6 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",mac:"MAC \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",cidrv4:"IPv4 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",cidrv6:"IPv6 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",base64:"base64-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",base64url:"base64url-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",json_string:"JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",e164:"E.164 \u0AA8\u0A82\u0AAC\u0AB0",credit_card:"\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",currency_code:"\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",iban:"IBAN",jwt:"JWT",template_literal:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${r}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${p}`}case"invalid_value":return o.values.length===1?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${D(o.values[0])}`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB5\u0ABF\u0A95\u0AB2\u0ACD\u0AAA: ${M(o.values," | ")} \u0AAE\u0ABE\u0AA7\u0ACD\u0AAF\u0AAE\u0AA5\u0AC0 \u0A8F\u0A95 \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${o.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${r}${o.maximum.toString()} ${d.unit??"\u0A8F\u0AB2\u0ABF\u0AAE\u0AC7\u0AA8\u0ACD\u0A9F"} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${o.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${r}${o.maximum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${o.origin} ${r}${o.minimum.toString()} ${d.unit} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${o.origin} ${r}${o.minimum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${r.prefix}" \u0AA5\u0AC0 \u0AB6\u0AB0\u0AC2 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:r.format==="ends_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${r.suffix}" \u0AAA\u0AB0 \u0AB8\u0AAE\u0ABE\u0AAA\u0ACD\u0AA4 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:r.format==="includes"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${r.includes}" \u0AB6\u0ABE\u0AAE\u0AC7\u0AB2 \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:r.format==="regex"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: \u0AAA\u0AC7\u0A9F\u0AB0\u0ACD\u0AA8 ${r.pattern} \u0AB8\u0ABE\u0AA5\u0AC7 \u0AAE\u0AC7\u0AB3 \u0A96\u0ABE\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF ${i[r.format]??o.format}`}case"not_multiple_of":return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA8\u0A82\u0AAC\u0AB0: ${o.divisor} \u0AA8\u0ACB \u0A97\u0AC1\u0AA3\u0ABE\u0A82\u0A95 \u0AB9\u0ACB\u0AB5\u0ACB \u0A9C\u0ACB\u0A88\u0A8F`;case"unrecognized_keys":return`\u0A93\u0AB3\u0A96\u0AC0 \u0AB6\u0A95\u0ABE\u0AA4\u0ABE \u0AA8\u0AB9\u0AC0\u0A82 \u0AA4\u0AC7 \u0A95\u0AC0${o.keys.length>1?"\u0A93":""}: ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A95\u0AC0`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA1\u0ABF\u0AB8\u0ACD\u0A95\u0ACD\u0AB0\u0ABF\u0AAE\u0ABF\u0AA8\u0AC7\u0A9F\u0AB0 \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF. \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${o.options.map(d=>`'${d}'`).join(" | ")}`:"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F";case"invalid_element":return`${o.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF`;default:return"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F"}}};function Am(){return{localeError:eS()}}var tS=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},i=m=>m?e[m]:void 0,a=m=>{let g=i(m);return g?g.label:m??e.unknown.label},o=m=>`\u05D4${a(m)}`,r=m=>(i(m)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",d=m=>m?t[m]??null:null,p={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},mac:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA MAC",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},credit_card:{label:"\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9",gender:"m"},currency_code:{label:"\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\u05E7\u05DC\u05D8",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},f={nan:"NaN"};return m=>{switch(m.code){case"invalid_type":{let g=m.expected,b=f[g??""]??a(g),S=_(m.input),R=f[S]??e[S]?.label??S;return/^[A-Z]/.test(m.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${m.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${R}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}, \u05D4\u05EA\u05E7\u05D1\u05DC ${R}`}case"invalid_value":{if(m.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${D(m.values[0])}`;let g=m.values.map(R=>D(R));if(m.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${g[0]} \u05D0\u05D5 ${g[1]}`;let b=g[g.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${g.slice(0,-1).join(", ")} \u05D0\u05D5 ${b}`}case"too_big":{let g=d(m.origin),b=o(m.origin??"value");if(m.origin==="string")return`${g?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${m.maximum.toString()} ${g?.unit??""} ${m.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(m.origin==="number"){let O=m.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${m.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${m.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${O}`}if(m.origin==="array"||m.origin==="set"){let O=m.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",k=m.inclusive?`${m.maximum} ${g?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${m.maximum} ${g?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${b} ${O} \u05DC\u05D4\u05DB\u05D9\u05DC ${k}`.trim()}let S=m.inclusive?"<=":"<",R=r(m.origin??"value");return g?.unit?`${g.longLabel} \u05DE\u05D3\u05D9: ${b} ${R} ${S}${m.maximum.toString()} ${g.unit}`:`${g?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${b} ${R} ${S}${m.maximum.toString()}`}case"too_small":{let g=d(m.origin),b=o(m.origin??"value");if(m.origin==="string")return`${g?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${m.minimum.toString()} ${g?.unit??""} ${m.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(m.origin==="number"){let O=m.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${m.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${m.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${b} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${O}`}if(m.origin==="array"||m.origin==="set"){let O=m.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(m.minimum===1&&m.inclusive){let E=(m.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${b} ${O} \u05DC\u05D4\u05DB\u05D9\u05DC ${E}`}let k=m.inclusive?`${m.minimum} ${g?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${m.minimum} ${g?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${b} ${O} \u05DC\u05D4\u05DB\u05D9\u05DC ${k}`.trim()}let S=m.inclusive?">=":">",R=r(m.origin??"value");return g?.unit?`${g.shortLabel} \u05DE\u05D3\u05D9: ${b} ${R} ${S}${m.minimum.toString()} ${g.unit}`:`${g?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${b} ${R} ${S}${m.minimum.toString()}`}case"invalid_format":{let g=m;if(g.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${g.prefix}"`;if(g.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${g.suffix}"`;if(g.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${g.includes}"`;if(g.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${g.pattern}`;let b=p[g.format],S=b?.label??g.format,O=(b?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${S} \u05DC\u05D0 ${O}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${m.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${m.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${m.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${M(m.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${o(m.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Um(){return{localeError:tS()}}var oS=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},file:{unit:"\u092C\u093E\u0907\u091F\u094D\u0938",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0901",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"}};function t(o){return e[o]??null}let i={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0908\u092E\u0947\u0932 \u092A\u0924\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0924\u093F\u0925\u093F \u0914\u0930 \u0938\u092E\u092F",date:"ISO \u0924\u093F\u0925\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u092A\u0924\u093E",ipv6:"IPv6 \u092A\u0924\u093E",mac:"MAC \u092A\u0924\u093E",cidrv4:"IPv4 \u0936\u094D\u0930\u0947\u0923\u0940",cidrv6:"IPv6 \u0936\u094D\u0930\u0947\u0923\u0940",base64:"Base64-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",base64url:"Base64URL-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",e164:"E.164 \u0938\u0902\u0916\u094D\u092F\u093E",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${r}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${p}`}case"invalid_value":return o.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${D(o.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${o.origin??"\u092E\u093E\u0928"} \u092E\u0947\u0902 ${r}${o.maximum} ${d.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${o.origin??"\u092E\u093E\u0928"} ${r}${o.maximum} \u0939\u094B`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${o.origin} \u092E\u0947\u0902 ${r}${o.minimum} ${d.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${o.origin} ${r}${o.minimum} \u0939\u094B`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${r.prefix}" \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:r.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${r.suffix}" \u092A\u0930 \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:r.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u0907\u0938\u092E\u0947\u0902 "${r.includes}" \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:r.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u092A\u0948\u091F\u0930\u094D\u0928 ${r.pattern} \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:`\u0905\u092E\u093E\u0928\u094D\u092F ${i[r.format]??o.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: \u092F\u0939 ${o.divisor} \u0915\u093E \u0917\u0941\u0923\u091C \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u0902\u091C\u0940${o.keys.length>1?"\u092F\u093E\u0901":""}: ${M(o.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u0902\u091C\u0940: ${o.origin} \u092E\u0947\u0902`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o.options.map(d=>`'${d}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${o.origin} \u092E\u0947\u0902`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function Nm(){return{localeError:oS()}}var nS=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(o){return e[o]??null}let i={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},a={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${o.expected}, a primljeno je ${p}`:`Neispravan unos: o\u010Dekuje se ${r}, a primljeno je ${p}`}case"invalid_value":return o.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${D(o.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin),p=a[o.origin]??o.origin;return d?`Preveliko: o\u010Dekivano da ${p??"vrijednost"} ima ${r}${o.maximum.toString()} ${d.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${p??"vrijednost"} bude ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin),p=a[o.origin]??o.origin;return d?`Premalo: o\u010Dekivano da ${p} ima ${r}${o.minimum.toString()} ${d.unit}`:`Premalo: o\u010Dekivano da ${p} bude ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${r.prefix}"`:r.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${r.suffix}"`:r.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${r.includes}"`:r.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${r.pattern}`:`Neispravna ${i[r.format]??o.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${o.divisor}`;case"unrecognized_keys":return`Neprepoznat${o.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${M(o.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${a[o.origin]??o.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${a[o.origin]??o.origin}`;default:return"Neispravan unos"}}};function qm(){return{localeError:nS()}}var rS=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function t(o){return e[o]??null}let i={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",mac:"MAC c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",credit_card:"hitelk\xE1rtyasz\xE1m",currency_code:"p\xE9nznemk\xF3d",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},a={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${o.expected}, a kapott \xE9rt\xE9k ${p}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${r}, a kapott \xE9rt\xE9k ${p}`}case"invalid_value":return o.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${D(o.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`T\xFAl nagy: ${o.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${r}${o.maximum.toString()} ${d.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${o.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${o.origin} m\xE9rete t\xFAl kicsi ${r}${o.minimum.toString()} ${d.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${o.origin} t\xFAl kicsi ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\xC9rv\xE9nytelen string: "${r.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:r.format==="ends_with"?`\xC9rv\xE9nytelen string: "${r.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:r.format==="includes"?`\xC9rv\xE9nytelen string: "${r.includes}" \xE9rt\xE9ket kell tartalmaznia`:r.format==="regex"?`\xC9rv\xE9nytelen string: ${r.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${i[r.format]??o.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${o.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${o.keys.length>1?"s":""}: ${M(o.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${o.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${o.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Bm(){return{localeError:rS()}}function Wm(e,t,i){return Math.abs(e)===1?t:i}function ao(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],i=e[e.length-1];return e+(t.includes(i)?"\u0576":"\u0568")}var iS=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},map:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(o){return e[o]??null}let i={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",mac:"MAC \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",credit_card:"\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",currency_code:"\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",iban:"IBAN",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},a={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${o.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${p}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${r}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${p}`}case"invalid_value":return o.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${D(o.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);if(d){let p=Number(o.maximum),f=Wm(p,d.unit.one,d.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ao(o.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${o.maximum.toString()} ${f}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ao(o.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);if(d){let p=Number(o.minimum),f=Wm(p,d.unit.one,d.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ao(o.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${r}${o.minimum.toString()} ${f}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${ao(o.origin)} \u056C\u056B\u0576\u056B ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${r.prefix}"-\u0578\u057E`:r.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${r.suffix}"-\u0578\u057E`:r.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${r.includes}"`:r.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${r.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${i[r.format]??o.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${o.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${o.keys.length>1?"\u0576\u0565\u0580":""}. ${M(o.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${ao(o.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${ao(o.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Zm(){return{localeError:iS()}}var aS=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function t(o){return e[o]??null}let i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Input tidak valid: diharapkan instanceof ${o.expected}, diterima ${p}`:`Input tidak valid: diharapkan ${r}, diterima ${p}`}case"invalid_value":return o.values.length===1?`Input tidak valid: diharapkan ${D(o.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Terlalu besar: diharapkan ${o.origin??"value"} memiliki ${r}${o.maximum.toString()} ${d.unit??"elemen"}`:`Terlalu besar: diharapkan ${o.origin??"value"} menjadi ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Terlalu kecil: diharapkan ${o.origin} memiliki ${r}${o.minimum.toString()} ${d.unit}`:`Terlalu kecil: diharapkan ${o.origin} menjadi ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`String tidak valid: harus dimulai dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak valid: harus berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak valid: harus menyertakan "${r.includes}"`:r.format==="regex"?`String tidak valid: harus sesuai pola ${r.pattern}`:`${i[r.format]??o.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${o.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${o.keys.length>1?"s":""}: ${M(o.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${o.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${o.origin}`;default:return"Input tidak valid"}}};function Gm(){return{localeError:aS()}}var sS=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"},map:{unit:"hluti",verb:"a\xF0 hafa"}};function t(o){return e[o]??null}let i={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",credit_card:"kreditkortan\xFAmer",currency_code:"gjaldmi\xF0ilsk\xF3\xF0i",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},a={nan:"NaN",number:"n\xFAmer",array:"fylki"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${p} \xFEar sem \xE1 a\xF0 vera instanceof ${o.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${p} \xFEar sem \xE1 a\xF0 vera ${r}`}case"invalid_value":return o.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${D(o.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin??"gildi"} hafi ${r}${o.maximum.toString()} ${d.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin??"gildi"} s\xE9 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin} hafi ${r}${o.minimum.toString()} ${d.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${o.origin} s\xE9 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${r.prefix}"`:r.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${r.suffix}"`:r.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${r.includes}"`:r.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${r.pattern}`:`Rangt ${i[r.format]??o.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${o.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${o.keys.length>1?"ir lyklar":"ur lykill"}: ${M(o.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${o.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${o.origin}`;default:return"Rangt gildi"}}};function Jm(){return{localeError:sS()}}var cS=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function t(o){return e[o]??null}let i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"numero",array:"vettore"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Input non valido: atteso instanceof ${o.expected}, ricevuto ${p}`:`Input non valido: atteso ${r}, ricevuto ${p}`}case"invalid_value":return o.values.length===1?`Input non valido: atteso ${D(o.values[0])}`:`Opzione non valida: atteso uno tra ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Troppo grande: ${o.origin??"valore"} deve avere ${r}${o.maximum.toString()} ${d.unit??"elementi"}`:`Troppo grande: ${o.origin??"valore"} deve essere ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Troppo piccolo: ${o.origin} deve avere ${r}${o.minimum.toString()} ${d.unit}`:`Troppo piccolo: ${o.origin} deve essere ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Stringa non valida: deve iniziare con "${r.prefix}"`:r.format==="ends_with"?`Stringa non valida: deve terminare con "${r.suffix}"`:r.format==="includes"?`Stringa non valida: deve includere "${r.includes}"`:r.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${r.pattern}`:`Input non valido: ${i[r.format]??o.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${o.divisor}`;case"unrecognized_keys":return`Chiav${o.keys.length>1?"i":"e"} non riconosciut${o.keys.length>1?"e":"a"}: ${M(o.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${o.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${o.origin}`;default:return"Input non valido"}}};function Km(){return{localeError:cS()}}var dS=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},map:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(o){return e[o]??null}let i={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",mac:"MAC\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",credit_card:"\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",currency_code:"\u901A\u8CA8\u30B3\u30FC\u30C9",iban:"IBAN",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},a={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${o.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${p}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${r}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${p}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return o.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${D(o.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${M(o.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let r=o.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",d=t(o.origin);return d?`\u5927\u304D\u3059\u304E\u308B\u5024: ${o.origin??"\u5024"}\u306F${o.maximum.toString()}${d.unit??"\u8981\u7D20"}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${o.origin??"\u5024"}\u306F${o.maximum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let r=o.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",d=t(o.origin);return d?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${o.origin}\u306F${o.minimum.toString()}${d.unit}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${o.origin}\u306F${o.minimum.toString()}${r}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${r.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:r.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${r.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${i[r.format]??o.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${o.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${o.keys.length>1?"\u7FA4":""}: ${M(o.keys,"\u3001")}`;case"invalid_key":return`${o.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${o.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Hm(){return{localeError:dS()}}var pS=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},map:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(o){return e[o]??null}let i={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",mac:"MAC \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",credit_card:"\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",currency_code:"\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",iban:"IBAN",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},a={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${o.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${p}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${p}`}case"invalid_value":return o.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${D(o.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${M(o.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${d.verb} ${r}${o.maximum.toString()} ${d.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o.origin} ${d.verb} ${r}${o.minimum.toString()} ${d.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o.origin} \u10D8\u10E7\u10DD\u10E1 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\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 "${r.prefix}"-\u10D8\u10D7`:r.format==="ends_with"?`\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 "${r.suffix}"-\u10D8\u10D7`:r.format==="includes"?`\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 "${r.includes}"-\u10E1`:r.format==="regex"?`\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 ${r.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${i[r.format]??o.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${o.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${o.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${M(o.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${o.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${o.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Xm(){return{localeError:pS()}}var uS=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},map:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(o){return e[o]??null}let i={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",mac:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 MAC",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",credit_card:"\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",currency_code:"\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",iban:"IBAN",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},a={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${o.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${p}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${p}`}case"invalid_value":return o.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${D(o.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${o.maximum.toString()} ${d.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${r} ${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o.origin} ${r} ${o.minimum.toString()} ${d.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o.origin} ${r} ${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${r.prefix}"`:r.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${r.suffix}"`:r.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${r.includes}"`:r.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${r.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${i[r.format]??o.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${o.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${M(o.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${o.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${o.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Jr(){return{localeError:uS()}}function Ym(){return Jr()}var lS=()=>{let e={string:{unit:"\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},file:{unit:"\u0CAC\u0CC8\u0C9F\u0CCD\u200C\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},array:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},set:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},map:{unit:"entries",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"}};function t(o){return e[o]??null}let i={regex:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD",email:"email \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95\u0CA6 \u0CB8\u0CAE\u0CAF",date:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95",time:"ISO \u0CB8\u0CAE\u0CAF",duration:"ISO \u0C85\u0CB5\u0CA7\u0CBF",ipv4:"IPv4 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",ipv6:"IPv6 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",mac:"MAC \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",cidrv4:"IPv4 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",cidrv6:"IPv6 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",base64:"base64-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",base64url:"base64url-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",json_string:"JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",e164:"E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",credit_card:"\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",currency_code:"\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",iban:"IBAN",jwt:"JWT",template_literal:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${p}`}case"invalid_value":return o.values.length===1?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${D(o.values[0])}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C86\u0CAF\u0CCD\u0C95\u0CC6: \u0C87\u0CB5\u0CC1\u0C97\u0CB3\u0CB2\u0CCD\u0CB2\u0CBF \u0C92\u0C82\u0CA6\u0CA8\u0CCD\u0CA8\u0CC1 \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.origin??"value"} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${r}${o.maximum.toString()} ${d.unit??"\u0C85\u0C82\u0CB6\u0C97\u0CB3\u0CC1"}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.origin??"value"} \u0C8E\u0C82\u0CA6\u0CC1 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.origin} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${r}${o.minimum.toString()} ${d.unit}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.origin} \u0C8E\u0C82\u0CA6\u0CC1 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0CAA\u0CCD\u0CB0\u0CBE\u0CB0\u0C82\u0CAD\u0CBF\u0CB8\u0CAC\u0CC7\u0C95\u0CC1 "${r.prefix}"`:r.format==="ends_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0C95\u0CCA\u0CA8\u0CC6\u0C97\u0CCA\u0CB3\u0CCD\u0CB3\u0CAC\u0CC7\u0C95\u0CC1 "${r.suffix}"`:r.format==="includes"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C92\u0CB3\u0C97\u0CCA\u0C82\u0CA1\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 "${r.includes}"`:r.format==="regex"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0CAE\u0CBE\u0CA6\u0CB0\u0CBF\u0C97\u0CC6 \u0CB9\u0CCA\u0C82\u0CA6\u0CBF\u0C95\u0CC6\u0CAF\u0CBE\u0C97\u0CAC\u0CC7\u0C95\u0CC1 ${r.pattern}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF ${i[r.format]??o.format}`}case"not_multiple_of":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6: \u0CAC\u0CB9\u0CC1\u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6\u0CAF\u0CBE\u0C97\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 ${o.divisor}`;case"unrecognized_keys":return`\u0C97\u0CC1\u0CB0\u0CC1\u0CA4\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CA6 \u0C95\u0CC0 ${o.keys.length>1?"s":""}: ${M(o.keys,", ")}`;case"invalid_key":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0C95\u0CC0 \u0C87\u0CA8\u0CCD ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CA4\u0CBE\u0CB0\u0CA4\u0CAE\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF. \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o.options.map(d=>`'${d}'`).join(" | ")}`:"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD";case"invalid_element":return`\u0CB0\u0CB2\u0CCD\u0CB2\u0CBF \u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF ${o.origin}`;default:return"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD"}}};function Qm(){return{localeError:lS()}}var mS=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"},map:{unit:"\uAC1C",verb:"to have"}};function t(o){return e[o]??null}let i={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",mac:"MAC \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",credit_card:"\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",currency_code:"\uD1B5\uD654 \uCF54\uB4DC",iban:"IBAN",jwt:"JWT",template_literal:"\uC785\uB825"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${o.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${p}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${r}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${p}\uC785\uB2C8\uB2E4`}case"invalid_value":return o.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${D(o.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${M(o.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let r=o.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",d=r==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",p=t(o.origin),f=p?.unit??"\uC694\uC18C";return p?`${o.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${o.maximum.toString()}${f} ${r}${d}`:`${o.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${o.maximum.toString()} ${r}${d}`}case"too_small":{let r=o.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",d=r==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",p=t(o.origin),f=p?.unit??"\uC694\uC18C";return p?`${o.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${o.minimum.toString()}${f} ${r}${d}`:`${o.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${o.minimum.toString()} ${r}${d}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:r.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${r.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:r.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${r.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${i[r.format]??o.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${o.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${M(o.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${o.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${o.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function ef(){return{localeError:mS()}}var Sn=e=>e.charAt(0).toUpperCase()+e.slice(1);function tf(e){let t=Math.abs(e),i=t%10,a=t%100;return a>=11&&a<=19||i===0?"many":i===1?"one":"few"}var fS=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(o,r,d,p){let f=e[o]??null;return f===null?f:{unit:f.unit[r],verb:f.verb[p][d?"inclusive":"notInclusive"]}}let i={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",credit_card:"kredito kortel\u0117s numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"\u012Fvestis"},a={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Gautas tipas ${p}, o tik\u0117tasi - instanceof ${o.expected}`:`Gautas tipas ${p}, o tik\u0117tasi - ${r}`}case"invalid_value":return o.values.length===1?`Privalo b\u016Bti ${D(o.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${M(o.values,"|")} pasirinkim\u0173`;case"too_big":{let r=a[o.origin]??o.origin,d=t(o.origin,tf(Number(o.maximum)),o.inclusive??!1,"smaller");if(d?.verb)return`${Sn(r??o.origin??"reik\u0161m\u0117")} ${d.verb} ${o.maximum.toString()} ${d.unit??"element\u0173"}`;let p=o.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Sn(r??o.origin??"reik\u0161m\u0117")} turi b\u016Bti ${p} ${o.maximum.toString()} ${d?.unit}`}case"too_small":{let r=a[o.origin]??o.origin,d=t(o.origin,tf(Number(o.minimum)),o.inclusive??!1,"bigger");if(d?.verb)return`${Sn(r??o.origin??"reik\u0161m\u0117")} ${d.verb} ${o.minimum.toString()} ${d.unit??"element\u0173"}`;let p=o.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Sn(r??o.origin??"reik\u0161m\u0117")} turi b\u016Bti ${p} ${o.minimum.toString()} ${d?.unit}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${r.prefix}"`:r.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${r.suffix}"`:r.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${r.includes}"`:r.format==="regex"?`Eilut\u0117 privalo atitikti ${r.pattern}`:`Neteisingas ${i[r.format]??o.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${o.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${o.keys.length>1?"i":"as"} rakt${o.keys.length>1?"ai":"as"}: ${M(o.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let r=a[o.origin]??o.origin;return`${Sn(r??o.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function of(){return{localeError:fS()}}var hS=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},map:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(o){return e[o]??null}let i={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",mac:"MAC \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",credit_card:"\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},a={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${o.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${p}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${p}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${D(o.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${r}${o.maximum.toString()} ${d.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o.origin} \u0434\u0430 \u0438\u043C\u0430 ${r}${o.minimum.toString()} ${d.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${r.pattern}`:`Invalid ${i[r.format]??o.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${M(o.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${o.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${o.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function nf(){return{localeError:hS()}}var gS=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function t(o){return e[o]??null}let i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"nombor"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Input tidak sah: dijangka instanceof ${o.expected}, diterima ${p}`:`Input tidak sah: dijangka ${r}, diterima ${p}`}case"invalid_value":return o.values.length===1?`Input tidak sah: dijangka ${D(o.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Terlalu besar: dijangka ${o.origin??"nilai"} ${d.verb} ${r}${o.maximum.toString()} ${d.unit??"elemen"}`:`Terlalu besar: dijangka ${o.origin??"nilai"} adalah ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Terlalu kecil: dijangka ${o.origin} ${d.verb} ${r}${o.minimum.toString()} ${d.unit}`:`Terlalu kecil: dijangka ${o.origin} adalah ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`String tidak sah: mesti bermula dengan "${r.prefix}"`:r.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${r.suffix}"`:r.format==="includes"?`String tidak sah: mesti mengandungi "${r.includes}"`:r.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${r.pattern}`:`${i[r.format]??o.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${o.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${M(o.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${o.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${o.origin}`;default:return"Input tidak sah"}}};function rf(){return{localeError:gS()}}var xS=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},file:{unit:"\u092C\u093E\u0907\u091F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"}};function t(o){return e[o]??null}let i={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0907\u092E\u0947\u0932 \u0920\u0947\u0917\u093E\u0928\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u092E\u093F\u0924\u093F \u0930 \u0938\u092E\u092F",date:"ISO \u092E\u093F\u0924\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u0920\u0947\u0917\u093E\u0928\u093E",ipv6:"IPv6 \u0920\u0947\u0917\u093E\u0928\u093E",mac:"MAC \u0920\u0947\u0917\u093E\u0928\u093E",cidrv4:"IPv4 \u0926\u093E\u092F\u0930\u093E",cidrv6:"IPv6 \u0926\u093E\u092F\u0930\u093E",base64:"base64-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",base64url:"base64url-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",e164:"E.164 \u0928\u092E\u094D\u092C\u0930",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${r}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${p}`}case"invalid_value":return o.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${D(o.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u0939\u0930\u0942 \u092E\u0927\u094D\u092F\u0947 \u090F\u0915 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${o.origin??"\u092E\u093E\u0928"} \u092E\u093E ${r}${o.maximum.toString()} ${d.unit} ${d.verb}`:`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${o.origin??"\u092E\u093E\u0928"} ${r}${o.maximum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${o.origin} \u092E\u093E ${r}${o.minimum.toString()} ${d.unit} ${d.verb}`:`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${o.origin} ${r}${o.minimum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${r.prefix}" \u092C\u093E\u091F \u0938\u0941\u0930\u0941 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:r.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${r.suffix}" \u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:r.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${r.includes}" \u0938\u092E\u093E\u0935\u0947\u0936 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:r.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: \u0922\u093E\u0901\u091A\u093E ${r.pattern} \u0938\u0901\u0917 \u092E\u0947\u0932 \u0916\u093E\u0928\u0941\u092A\u0930\u094D\u091B`:`\u0905\u092E\u093E\u0928\u094D\u092F ${i[r.format]??o.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: ${o.divisor} \u0915\u094B \u0917\u0941\u0923\u091C \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u091E\u094D\u091C\u0940${o.keys.length>1?"\u0939\u0930\u0942":""}: ${M(o.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u091E\u094D\u091C\u0940: ${o.origin} \u092E\u093E`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o.options.map(d=>`'${d}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${o.origin} \u092E\u093E`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function af(){return{localeError:xS()}}var zS=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function t(o){return e[o]??null}let i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},a={nan:"NaN",number:"getal"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Ongeldige invoer: verwacht instanceof ${o.expected}, ontving ${p}`:`Ongeldige invoer: verwacht ${r}, ontving ${p}`}case"invalid_value":return o.values.length===1?`Ongeldige invoer: verwacht ${D(o.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin),p=o.origin==="date"?"laat":o.origin==="string"?"lang":"groot";return d?`Te ${p}: verwacht dat ${o.origin??"waarde"} ${r}${o.maximum.toString()} ${d.unit??"elementen"} ${d.verb}`:`Te ${p}: verwacht dat ${o.origin??"waarde"} ${r}${o.maximum.toString()} is`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin),p=o.origin==="date"?"vroeg":o.origin==="string"?"kort":"klein";return d?`Te ${p}: verwacht dat ${o.origin} ${r}${o.minimum.toString()} ${d.unit} ${d.verb}`:`Te ${p}: verwacht dat ${o.origin} ${r}${o.minimum.toString()} is`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:r.format==="ends_with"?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:r.format==="includes"?`Ongeldige tekst: moet "${r.includes}" bevatten`:r.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`:`Ongeldig: ${i[r.format]??o.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${o.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${o.keys.length>1?"s":""}: ${M(o.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${o.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${o.origin}`;default:return"Ongeldige invoer"}}};function sf(){return{localeError:zS()}}var bS=()=>{let e={string:{unit:"teikn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"element",verb:"\xE5 innehalde"},set:{unit:"element",verb:"\xE5 innehalde"},map:{unit:"element",verb:"\xE5 innehalde"}};function t(o){return e[o]??null}let i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tal",array:"liste"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Ugyldig input: forventa instanceof ${o.expected}, fekk ${p}`:`Ugyldig input: forventa ${r}, fekk ${p}`}case"invalid_value":return o.values.length===1?`Ugyldig verdi: forventa ${D(o.values[0])}`:`Ugyldig val: forventa eitt av ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`For stor(t): forventa ${o.origin??"value"} til \xE5 ha ${r}${o.maximum.toString()} ${d.unit??"element"}`:`For stor(t): forventa ${o.origin??"value"} til \xE5 ha ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`For lite(n): forventa ${o.origin} til \xE5 ha ${r}${o.minimum.toString()} ${d.unit}`:`For lite(n): forventa ${o.origin} til \xE5 ha ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 slutte med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 innehalde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${i[r.format]??o.format}`}case"not_multiple_of":return`Ugyldig tal: m\xE5 vere eit multiplum av ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ukjende n\xF8klar":"Ukjend n\xF8kkel"}: ${M(o.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${o.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${o.origin}`;default:return"Ugyldig input"}}};function cf(){return{localeError:bS()}}var yS=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"},map:{unit:"elementer",verb:"\xE5 inneholde"}};function t(o){return e[o]??null}let i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tall",array:"liste"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Ugyldig input: forventet instanceof ${o.expected}, fikk ${p}`:`Ugyldig input: forventet ${r}, fikk ${p}`}case"invalid_value":return o.values.length===1?`Ugyldig verdi: forventet ${D(o.values[0])}`:`Ugyldig valg: forventet en av ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`For stor(t): forventet ${o.origin??"value"} til \xE5 ha ${r}${o.maximum.toString()} ${d.unit??"elementer"}`:`For stor(t): forventet ${o.origin??"value"} til \xE5 ha ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`For lite(n): forventet ${o.origin} til \xE5 ha ${r}${o.minimum.toString()} ${d.unit}`:`For lite(n): forventet ${o.origin} til \xE5 ha ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${r.prefix}"`:r.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${r.suffix}"`:r.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${r.includes}"`:r.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${r.pattern}`:`Ugyldig ${i[r.format]??o.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${M(o.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${o.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${o.origin}`;default:return"Ugyldig input"}}};function df(){return{localeError:yS()}}var SS=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"},map:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(o){return e[o]??null}let i={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",mac:"MAC ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",credit_card:"i'tib\xE2r kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},a={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`F\xE2sit giren: umulan instanceof ${o.expected}, al\u0131nan ${p}`:`F\xE2sit giren: umulan ${r}, al\u0131nan ${p}`}case"invalid_value":return o.values.length===1?`F\xE2sit giren: umulan ${D(o.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Fazla b\xFCy\xFCk: ${o.origin??"value"}, ${r}${o.maximum.toString()} ${d.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${o.origin??"value"}, ${r}${o.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Fazla k\xFC\xE7\xFCk: ${o.origin}, ${r}${o.minimum.toString()} ${d.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${o.origin}, ${r}${o.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let r=o;return r.format==="starts_with"?`F\xE2sit metin: "${r.prefix}" ile ba\u015Flamal\u0131.`:r.format==="ends_with"?`F\xE2sit metin: "${r.suffix}" ile bitmeli.`:r.format==="includes"?`F\xE2sit metin: "${r.includes}" ihtiv\xE2 etmeli.`:r.format==="regex"?`F\xE2sit metin: ${r.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${i[r.format]??o.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${o.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${o.keys.length>1?"s":""}: ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${o.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function pf(){return{localeError:SS()}}var vS=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},map:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(o){return e[o]??null}let i={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",mac:"\u062F MAC \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",credit_card:"\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",currency_code:"\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${o.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${p} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${r} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${p} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return o.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${D(o.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${M(o.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${o.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${o.maximum.toString()} ${d.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${o.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${r}${o.maximum.toString()} \u0648\u064A`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${o.origin} \u0628\u0627\u06CC\u062F ${r}${o.minimum.toString()} ${d.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${o.origin} \u0628\u0627\u06CC\u062F ${r}${o.minimum.toString()} \u0648\u064A`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:r.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${r.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:r.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${r.includes}" \u0648\u0644\u0631\u064A`:r.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${r.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${i[r.format]??o.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${o.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${o.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${M(o.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${o.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${o.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function uf(){return{localeError:vS()}}var RS=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"},map:{unit:"element\xF3w",verb:"mie\u0107"}};function t(o){return e[o]??null}let i={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wej\u015Bcie"},a={nan:"NaN",number:"liczba",array:"tablica"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${o.expected}, otrzymano ${p}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${r}, otrzymano ${p}`}case"invalid_value":return o.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${D(o.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${o.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${o.maximum.toString()} ${d.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${o.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${o.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${r}${o.minimum.toString()} ${d.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${o.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${r.prefix}"`:r.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${r.suffix}"`:r.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${r.includes}"`:r.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${r.pattern}`:`Nieprawid\u0142ow(y/a/e) ${i[r.format]??o.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${o.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${o.keys.length>1?"s":""}: ${M(o.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${o.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${o.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function lf(){return{localeError:RS()}}var wS=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(d){return e[d]??null}let i={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"o intervalo de endere\xE7os IPv4",cidrv6:"o intervalo de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},a={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},o={string:{name:"texto",articles:a.masculine},number:{name:"n\xFAmero",articles:a.masculine},int:{name:"n\xFAmero inteiro",articles:a.masculine},boolean:{name:"valor booleano",articles:a.masculine},bigint:{name:"n\xFAmero bigint",articles:a.masculine},symbol:{name:"s\xEDmbolo",articles:a.masculine},undefined:{name:'valor "undefined"',articles:a.masculine},null:{name:'valor "nulo"',articles:a.masculine},never:{name:'valor "never"',articles:a.masculine},void:{name:'valor "void"',articles:a.masculine},date:{name:"data",articles:a.feminine},array:{name:"vetor",articles:a.masculine},object:{name:"objeto",articles:a.masculine},tuple:{name:"tuplo",articles:a.masculine},record:{name:"registo",articles:a.masculine},map:{name:"mapa",articles:a.masculine},set:{name:"conjunto",articles:a.masculine},file:{name:"ficheiro",articles:a.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:a.masculine},nan:{name:'valor "NaN"',articles:a.masculine},function:{name:"fun\xE7\xE3o",articles:a.feminine}};function r(d,p){let f=o[d]??{name:`valor "${d}"`,articles:a.masculine};return`${f.articles[p]} ${f.name}`}return d=>{switch(d.code){case"invalid_type":{let p=r(d.expected,"indefinite"),f=_(d.input),m=r(f,"indefinite");return`Entrada inv\xE1lida: esperava ${p}, recebeu ${m}`}case"invalid_value":return d.values.length===1?`Entrada inv\xE1lida: esperava ${D(d.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${M(d.values,"|")}`;case"too_big":{let p=d.inclusive?"<=":"<",f=t(d.origin);return f?`Demasiado grande: esperava que ${r(d.origin,"definite")} tivesse ${p} ${d.maximum.toString()} ${f.unit??"elementos"}`:`Demasiado grande: esperava que ${r(d.origin,"definite")} fosse ${p} ${d.maximum.toString()}`}case"too_small":{let p=d.inclusive?">=":">",f=t(d.origin);return f?`Demasiado pequeno: esperava que ${r(d.origin,"definite")} tivesse ${p} ${d.minimum.toString()} ${f.unit??"elementos"}`:`Demasiado pequeno: esperava que ${r(d.origin,"definite")} fosse ${p} ${d.minimum.toString()}`}case"invalid_format":{let p=d;return p.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar por "${p.prefix}"`:p.format==="ends_with"?`Texto inv\xE1lido: deve terminar em "${p.suffix}"`:p.format==="includes"?`Texto inv\xE1lido: deve incluir "${p.includes}"`:p.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${p.pattern}`:`Formato d${i[p.format]??d.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${d.divisor}`;case"unrecognized_keys":{let p=d.keys.length>1?"s":"";return`Chave${p} inv\xE1lida${p}: ${M(d.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${r(d.origin,"definite")}`;case"invalid_union":return d.options&&Array.isArray(d.options)&&d.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${d.options.map(f=>`'${f}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${r(d.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function mf(){return{localeError:wS()}}var IS=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(d){return e[d]??null}let i={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"a faixa de endere\xE7os IPv4",cidrv6:"a faixa de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},a={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},o={string:{name:"texto",articles:a.masculine},number:{name:"n\xFAmero",articles:a.masculine},int:{name:"n\xFAmero inteiro",articles:a.masculine},boolean:{name:"valor booleano",articles:a.masculine},bigint:{name:"n\xFAmero bigint",articles:a.masculine},symbol:{name:"s\xEDmbolo",articles:a.masculine},undefined:{name:'valor "undefined"',articles:a.masculine},null:{name:'valor "nulo"',articles:a.masculine},never:{name:'valor "never"',articles:a.masculine},void:{name:'valor "void"',articles:a.masculine},date:{name:"data",articles:a.feminine},array:{name:"vetor",articles:a.masculine},object:{name:"objeto",articles:a.masculine},tuple:{name:"tupla",articles:a.feminine},record:{name:"registro",articles:a.masculine},map:{name:"mapa",articles:a.masculine},set:{name:"conjunto",articles:a.masculine},file:{name:"arquivo",articles:a.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:a.masculine},nan:{name:'valor "NaN"',articles:a.masculine},function:{name:"fun\xE7\xE3o",articles:a.feminine}};function r(d,p){let f=o[d]??{name:`valor "${d}"`,articles:a.masculine};return`${f.articles[p]} ${f.name}`}return d=>{switch(d.code){case"invalid_type":{let p=r(d.expected,"indefinite"),f=_(d.input),m=r(f,"indefinite");return`Entrada inv\xE1lida: esperava ${p}, recebeu ${m}`}case"invalid_value":return d.values.length===1?`Entrada inv\xE1lida: esperava ${D(d.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${M(d.values,"|")}`;case"too_big":{let p=d.inclusive?"<=":"<",f=t(d.origin);return f?`Grande demais: esperava que ${r(d.origin,"definite")} tivesse ${p} ${d.maximum.toString()} ${f.unit??"elementos"}`:`Grande demais: esperava que ${r(d.origin,"definite")} fosse ${p} ${d.maximum.toString()}`}case"too_small":{let p=d.inclusive?">=":">",f=t(d.origin);return f?`Pequeno demais: esperava que ${r(d.origin,"definite")} tivesse ${p} ${d.minimum.toString()} ${f.unit??"elementos"}`:`Pequeno demais: esperava que ${r(d.origin,"definite")} fosse ${p} ${d.minimum.toString()}`}case"invalid_format":{let p=d;return p.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${p.prefix}"`:p.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${p.suffix}"`:p.format==="includes"?`Texto inv\xE1lido: deve incluir "${p.includes}"`:p.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${p.pattern}`:`Formato d${i[p.format]??d.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${d.divisor}`;case"unrecognized_keys":{let p=d.keys.length>1?"s":"";return`Chave${p} inv\xE1lida${p}: ${M(d.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${r(d.origin,"definite")}`;case"invalid_union":return d.options&&Array.isArray(d.options)&&d.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${d.options.map(f=>`'${f}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${r(d.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function ff(){return{localeError:IS()}}var MS=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(o){return e[o]??null}let i={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",credit_card:"num\u0103r de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},a={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return`Intrare invalid\u0103: a\u0219teptat ${r}, primit ${p}`}case"invalid_value":return o.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${D(o.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Prea mare: a\u0219teptat ca ${o.origin??"valoarea"} ${d.verb} ${r}${o.maximum.toString()} ${d.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${o.origin??"valoarea"} s\u0103 fie ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Prea mic: a\u0219teptat ca ${o.origin} ${d.verb} ${r}${o.minimum.toString()} ${d.unit}`:`Prea mic: a\u0219teptat ca ${o.origin} s\u0103 fie ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${r.prefix}"`:r.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${r.suffix}"`:r.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${r.includes}"`:r.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${r.pattern}`:`Format invalid: ${i[r.format]??o.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${o.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${M(o.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${o.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${o.origin}`;default:return"Intrare invalid\u0103"}}};function hf(){return{localeError:MS()}}function gf(e,t,i,a){let o=Math.abs(e),r=o%10,d=o%100;return d>=11&&d<=19?a:r===1?t:r>=2&&r<=4?i:a}var OS=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(o){return e[o]??null}let i={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${o.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${p}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${r}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${p}`}case"invalid_value":return o.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${D(o.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);if(d){let p=Number(o.maximum),f=gf(p,d.unit.one,d.unit.few,d.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${o.maximum.toString()} ${f}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);if(d){let p=Number(o.minimum),f=gf(p,d.unit.one,d.unit.few,d.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${o.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${r}${o.minimum.toString()} ${f}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${o.origin} \u0431\u0443\u0434\u0435\u0442 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${i[r.format]??o.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${o.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${o.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${o.keys.length>1?"\u0438":""}: ${M(o.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${o.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${o.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function xf(){return{localeError:OS()}}var $S=()=>{let e={string:{unit:"znakov",verb:"ma\u0165"},file:{unit:"bajtov",verb:"ma\u0165"},array:{unit:"prvkov",verb:"ma\u0165"},set:{unit:"prvkov",verb:"ma\u0165"},map:{unit:"polo\u017Eiek",verb:"ma\u0165"}};function t(o){return e[o]??null}let i={regex:"regul\xE1rny v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"d\xE1tum a \u010Das vo form\xE1te ISO",date:"d\xE1tum vo form\xE1te ISO",time:"\u010Das vo form\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64",base64url:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64url",json_string:"re\u0165azec vo form\xE1te JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditnej karty",currency_code:"k\xF3d meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"\u010D\xEDslo",string:"re\u0165azec",function:"funkcia",array:"pole"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${o.expected}, obdr\u017Ean\xE9 ${p}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${r}, obdr\u017Ean\xE9 ${p}`}case"invalid_value":return o.values.length===1?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${D(o.values[0])}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE1 jedna z hodn\xF4t ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${o.origin??"hodnota"} mus\xED ma\u0165 ${r}${o.maximum.toString()} ${d.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${o.origin??"hodnota"} mus\xED by\u0165 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Hodnota je pr\xEDli\u0161 mal\xE1: ${o.origin??"hodnota"} mus\xED ma\u0165 ${r}${o.minimum.toString()} ${d.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 mal\xE1: ${o.origin??"hodnota"} mus\xED by\u0165 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Neplatn\xFD re\u0165azec: mus\xED za\u010D\xEDna\u0165 na "${r.prefix}"`:r.format==="ends_with"?`Neplatn\xFD re\u0165azec: mus\xED kon\u010Di\u0165 na "${r.suffix}"`:r.format==="includes"?`Neplatn\xFD re\u0165azec: mus\xED obsahova\u0165 "${r.includes}"`:r.format==="regex"?`Neplatn\xFD re\u0165azec: mus\xED zodpoveda\u0165 vzoru ${r.pattern}`:`Neplatn\xFD form\xE1t ${i[r.format]??o.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED by\u0165 n\xE1sobkom ${o.divisor}`;case"unrecognized_keys":return`Nezn\xE1me kl\xFA\u010De: ${M(o.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xFA\u010D v ${o.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${o.origin}`;default:return"Neplatn\xFD vstup"}}};function zf(){return{localeError:$S()}}var kS=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function t(o){return e[o]??null}let i={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",credit_card:"\u0161tevilka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},a={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${o.expected}, prejeto ${p}`:`Neveljaven vnos: pri\u010Dakovano ${r}, prejeto ${p}`}case"invalid_value":return o.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${D(o.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Preveliko: pri\u010Dakovano, da bo ${o.origin??"vrednost"} imelo ${r}${o.maximum.toString()} ${d.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${o.origin??"vrednost"} ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Premajhno: pri\u010Dakovano, da bo ${o.origin} imelo ${r}${o.minimum.toString()} ${d.unit}`:`Premajhno: pri\u010Dakovano, da bo ${o.origin} ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${r.prefix}"`:r.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${r.suffix}"`:r.format==="includes"?`Neveljaven niz: mora vsebovati "${r.includes}"`:r.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`:`Neveljaven ${i[r.format]??o.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${o.divisor}`;case"unrecognized_keys":return`Neprepoznan${o.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${M(o.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${o.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${o.origin}`;default:return"Neveljaven vnos"}}};function bf(){return{localeError:kS()}}var TS=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"},map:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(o){return e[o]??null}let i={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},a={nan:"NaN",number:"antal",array:"lista"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${o.expected}, fick ${p}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${r}, fick ${p}`}case"invalid_value":return o.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${D(o.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`F\xF6r stor(t): f\xF6rv\xE4ntade ${o.origin??"v\xE4rdet"} att ha ${r}${o.maximum.toString()} ${d.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${o.origin??"v\xE4rdet"} att ha ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`F\xF6r lite(t): f\xF6rv\xE4ntade ${o.origin??"v\xE4rdet"} att ha ${r}${o.minimum.toString()} ${d.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${o.origin??"v\xE4rdet"} att ha ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${r.prefix}"`:r.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${r.suffix}"`:r.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${r.includes}"`:r.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${r.pattern}"`:`Ogiltig(t) ${i[r.format]??o.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${o.divisor}`;case"unrecognized_keys":return`${o.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${M(o.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${o.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${o.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function yf(){return{localeError:TS()}}var CS=()=>{let e={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"},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"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},map:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(o){return e[o]??null}let i={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",mac:"MAC \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",credit_card:"\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",currency_code:"\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${o.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${p}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${p}`}case"invalid_value":return o.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${D(o.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${M(o.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${o.maximum.toString()} ${d.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${r}${o.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o.origin} ${r}${o.minimum.toString()} ${d.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o.origin} ${r}${o.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${r.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:r.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${r.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${i[r.format]??o.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${o.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${o.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${o.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Sf(){return{localeError:CS()}}var DS=()=>{let e={string:{unit:"\u0430\u043B\u043E\u043C\u0430\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},file:{unit:"\u0431\u0430\u0439\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},array:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},set:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},map:{unit:"\u0441\u0430\u0431\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"}};function t(o){return e[o]??null}let i={regex:"\u0432\u0443\u0440\u0443\u0434",email:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email",url:"URL",emoji:"\u044D\u043C\u043E\u04B7\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO",date:"\u0441\u0430\u043D\u0430\u0438 ISO",time:"\u0432\u0430\u049B\u0442\u0438 ISO",duration:"\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO",ipv4:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4",ipv6:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6",mac:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC",cidrv4:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4",cidrv6:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6",base64:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64",base64url:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url",json_string:"\u0441\u0430\u0442\u0440\u0438 JSON",e164:"\u0440\u0430\u049B\u0430\u043C\u0438 E.164",credit_card:"\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",currency_code:"\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0443\u0440\u0443\u0434"},a={nan:"NaN",number:"\u0440\u0430\u049B\u0430\u043C",string:"\u0441\u0430\u0442\u0440",array:"\u043C\u0430\u0441\u0441\u0438\u0432",object:"\u043E\u0431\u044A\u0435\u043A\u0442",date:"\u0441\u0430\u043D\u0430"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${r} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${p} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`}case"invalid_value":return o.values.length===1?`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${D(o.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:`\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${M(o.values,"|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${o.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${r}${o.maximum.toString()} ${d.unit} ${d.verb}`:`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${o.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${r}${o.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${o.origin} \u0431\u043E\u044F\u0434 ${r}${o.minimum.toString()} ${d.unit} ${d.verb}`:`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${o.origin} \u0431\u043E\u044F\u0434 ${r}${o.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${r.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`:r.format==="ends_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${r.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`:r.format==="includes"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${r.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`:r.format==="regex"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${r.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`:`${i[r.format]??o.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`}case"not_multiple_of":return`\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${o.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`;case"unrecognized_keys":return`\u041A\u0430\u043B\u0438\u0434${o.keys.length>1?"\u04B3\u043E\u0438":"\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${M(o.keys,", ")}`;case"invalid_key":return`\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${o.options.map(d=>`'${d}'`).join(" | ")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442";case"invalid_element":return`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${o.origin}`;default:return"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442"}}};function vf(){return{localeError:DS()}}var _S=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},map:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(o){return e[o]??null}let i={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",mac:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",credit_card:"\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",currency_code:"\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",iban:"IBAN",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},a={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${o.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${p}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${r} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${p}`}case"invalid_value":return o.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${D(o.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",d=t(o.origin);return d?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${o.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${o.maximum.toString()} ${d.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${o.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",d=t(o.origin);return d?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${o.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${o.minimum.toString()} ${d.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${o.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${r} ${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${r.prefix}"`:r.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${r.suffix}"`:r.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${r.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:r.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${r.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${i[r.format]??o.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${o.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${M(o.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${o.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${o.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Rf(){return{localeError:_S()}}var ES=()=>{let e={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function t(o){return e[o]??null}let i={regex:"giri\u015F",email:"e-po\xE7ta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \u015Fifrlenen setir",base64url:"base64url bilen \u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\u0148 nomeri",currency_code:"wal\xFDuta kody",iban:"IBAN",jwt:"JWT",template_literal:"\u015Fablon"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return`N\xE4dogry baha: gara\u015Fylan ${r} \xFDerine ${p} alyndy`}case"invalid_value":return o.values.length===1?`N\xE4dogry baha: ${D(o.values[0])} bolmaly`:`N\xE4dogry sa\xFDlaw: a\u015Fakdakylardan biri bolmaly: ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Has uly: gara\u015Fyl\xFDan ${o.origin??"baha"} ${r} ${o.maximum.toString()} ${d.unit??"element"}`:`Has uly: gara\u015Fyl\xFDan ${o.origin??"baha"} ${r} ${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Has ki\xE7i: gara\u015Fyl\xFDan ${o.origin} ${r} ${o.minimum.toString()} ${d.unit}`:`Has ki\xE7i: gara\u015Fyl\xFDan ${o.origin} ${r} ${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`N\xE4dogry setir: "${r.prefix}" bilen ba\u015Flamaly`:r.format==="ends_with"?`N\xE4dogry setir: "${r.suffix}" bilen gutarmaly`:r.format==="includes"?`N\xE4dogry setir: "${r.includes}" saklamaly`:r.format==="regex"?`N\xE4dogry setir: ${r.pattern} nusga la\xFDyk bolmaly`:`N\xE4dogry ${i[r.format]??o.format}`}case"not_multiple_of":return`N\xE4dogry san: ${o.divisor} bilen galyndysyz b\xF6l\xFCnmeli`;case"unrecognized_keys":return`Tanalma\xFDan a\xE7ar${o.keys.length>1?"lar":""}: ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} i\xE7inde n\xE4dogry a\xE7ar`;case"invalid_union":return"N\xE4dogry baha";case"invalid_element":return`${o.origin} i\xE7inde n\xE4dogry baha`;default:return"N\xE4dogry baha"}}};function wf(){return{localeError:ES()}}var jS=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},map:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(o){return e[o]??null}let i={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",credit_card:"kredi kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"\u015Eablon dizesi"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${o.expected}, al\u0131nan ${p}`:`Ge\xE7ersiz de\u011Fer: beklenen ${r}, al\u0131nan ${p}`}case"invalid_value":return o.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${D(o.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\xC7ok b\xFCy\xFCk: beklenen ${o.origin??"de\u011Fer"} ${r}${o.maximum.toString()} ${d.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${o.origin??"de\u011Fer"} ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\xC7ok k\xFC\xE7\xFCk: beklenen ${o.origin} ${r}${o.minimum.toString()} ${d.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${o.origin} ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Ge\xE7ersiz metin: "${r.prefix}" ile ba\u015Flamal\u0131`:r.format==="ends_with"?`Ge\xE7ersiz metin: "${r.suffix}" ile bitmeli`:r.format==="includes"?`Ge\xE7ersiz metin: "${r.includes}" i\xE7ermeli`:r.format==="regex"?`Ge\xE7ersiz metin: ${r.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${i[r.format]??o.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${o.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${o.keys.length>1?"lar":""}: ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${o.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function If(){return{localeError:jS()}}var PS=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(o){return e[o]??null}let i={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",mac:"\u0430\u0434\u0440\u0435\u0441\u0430 MAC",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${o.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${p}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${r}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${p}`}case"invalid_value":return o.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${D(o.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${d.verb} ${r}${o.maximum.toString()} ${d.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${o.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${o.origin} ${d.verb} ${r}${o.minimum.toString()} ${d.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${o.origin} \u0431\u0443\u0434\u0435 ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${r.prefix}"`:r.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${r.suffix}"`:r.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${r.includes}"`:r.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${r.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${i[r.format]??o.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${o.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${o.keys.length>1?"\u0456":""}: ${M(o.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${o.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${o.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Kr(){return{localeError:PS()}}function Mf(){return Kr()}var LS=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},map:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(o){return e[o]??null}let i={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",mac:"\u0627\u06CC\u0645 \u0627\u06D2 \u0633\u06CC \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",credit_card:"\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",currency_code:"\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",iban:"IBAN",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},a={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${o.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${p} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${r} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${p} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return o.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${D(o.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${M(o.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${o.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${r}${o.maximum.toString()} ${d.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${o.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${r}${o.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${o.origin} \u06A9\u06D2 ${r}${o.minimum.toString()} ${d.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${o.origin} \u06A9\u0627 ${r}${o.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${r.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:r.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${r.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${i[r.format]??o.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${o.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${o.keys.length>1?"\u0632":""}: ${M(o.keys,"\u060C ")}`;case"invalid_key":return`${o.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${o.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function Of(){return{localeError:LS()}}var VS=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(o){return e[o]??null}let i={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},a={nan:"NaN",number:"raqam",array:"massiv"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${o.expected}, qabul qilingan ${p}`:`Noto\u2018g\u2018ri kirish: kutilgan ${r}, qabul qilingan ${p}`}case"invalid_value":return o.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${D(o.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Juda katta: kutilgan ${o.origin??"qiymat"} ${r}${o.maximum.toString()} ${d.unit} ${d.verb}`:`Juda katta: kutilgan ${o.origin??"qiymat"} ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Juda kichik: kutilgan ${o.origin} ${r}${o.minimum.toString()} ${d.unit} ${d.verb}`:`Juda kichik: kutilgan ${o.origin} ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${r.prefix}" bilan boshlanishi kerak`:r.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${r.suffix}" bilan tugashi kerak`:r.format==="includes"?`Noto\u2018g\u2018ri satr: "${r.includes}" ni o\u2018z ichiga olishi kerak`:r.format==="regex"?`Noto\u2018g\u2018ri satr: ${r.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${i[r.format]??o.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${o.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${o.keys.length>1?"lar":""}: ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${o.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function $f(){return{localeError:VS()}}var FS=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},map:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(o){return e[o]??null}let i={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",mac:"\u0111\u1ECBa ch\u1EC9 MAC",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",credit_card:"s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",currency_code:"m\xE3 ti\u1EC1n t\u1EC7",iban:"IBAN",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},a={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${o.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${p}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${r}, nh\u1EADn \u0111\u01B0\u1EE3c ${p}`}case"invalid_value":return o.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${D(o.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${o.origin??"gi\xE1 tr\u1ECB"} ${d.verb} ${r}${o.maximum.toString()} ${d.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${o.origin??"gi\xE1 tr\u1ECB"} ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${o.origin} ${d.verb} ${r}${o.minimum.toString()} ${d.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${o.origin} ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${r.prefix}"`:r.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${r.suffix}"`:r.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${r.includes}"`:r.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${r.pattern}`:`${i[r.format]??o.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${o.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${M(o.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${o.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${o.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function kf(){return{localeError:FS()}}var AS=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"},map:{unit:"\u9879",verb:"\u5305\u542B"}};function t(o){return e[o]??null}let i={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",mac:"MAC\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",credit_card:"\u4FE1\u7528\u5361\u53F7",currency_code:"\u8D27\u5E01\u4EE3\u7801",iban:"IBAN",jwt:"JWT",template_literal:"\u8F93\u5165"},a={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${o.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${p}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${r}\uFF0C\u5B9E\u9645\u63A5\u6536 ${p}`}case"invalid_value":return o.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${D(o.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${o.origin??"\u503C"} ${r}${o.maximum.toString()} ${d.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${o.origin??"\u503C"} ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${o.origin} ${r}${o.minimum.toString()} ${d.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${o.origin} ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.prefix}" \u5F00\u5934`:r.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${r.suffix}" \u7ED3\u5C3E`:r.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${r.pattern}`:`\u65E0\u6548${i[r.format]??o.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${o.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${M(o.keys,", ")}`;case"invalid_key":return`${o.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${o.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Tf(){return{localeError:AS()}}var US=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},map:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(o){return e[o]??null}let i={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",mac:"MAC \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",credit_card:"\u4FE1\u7528\u5361\u865F",currency_code:"\u8CA8\u5E63\u4EE3\u78BC",iban:"IBAN",jwt:"JWT",template_literal:"\u8F38\u5165"},a={nan:"NaN"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${o.expected}\uFF0C\u4F46\u6536\u5230 ${p}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${r}\uFF0C\u4F46\u6536\u5230 ${p}`}case"invalid_value":return o.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${D(o.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${o.origin??"\u503C"} \u61C9\u70BA ${r}${o.maximum.toString()} ${d.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${o.origin??"\u503C"} \u61C9\u70BA ${r}${o.maximum.toString()}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${o.origin} \u61C9\u70BA ${r}${o.minimum.toString()} ${d.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${o.origin} \u61C9\u70BA ${r}${o.minimum.toString()}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.prefix}" \u958B\u982D`:r.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${r.suffix}" \u7D50\u5C3E`:r.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${r.includes}"`:r.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${r.pattern}`:`\u7121\u6548\u7684 ${i[r.format]??o.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${o.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${o.keys.length>1?"\u5011":""}\uFF1A${M(o.keys,"\u3001")}`;case"invalid_key":return`${o.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${o.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Cf(){return{localeError:US()}}var NS=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"},map:{unit:"nkan",verb:"n\xED"}};function t(o){return e[o]??null}let i={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",mac:"\xE0d\xEDr\u1EB9\u0301s\xEC MAC",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",credit_card:"n\u1ECDmba kaadi gbese",currency_code:"koodu ow\xF3",iban:"IBAN",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},a={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return o=>{switch(o.code){case"invalid_type":{let r=a[o.expected]??o.expected,d=_(o.input),p=a[d]??d;return/^[A-Z]/.test(o.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${o.expected}, \xE0m\u1ECD\u0300 a r\xED ${p}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${r}, \xE0m\u1ECD\u0300 a r\xED ${p}`}case"invalid_value":return o.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${D(o.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${M(o.values,"|")}`;case"too_big":{let r=o.inclusive?"<=":"<",d=t(o.origin);return d?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${o.origin??"iye"} ${d.verb} ${r}${o.maximum} ${d.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${o.maximum}`}case"too_small":{let r=o.inclusive?">=":">",d=t(o.origin);return d?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${o.origin} ${d.verb} ${r}${o.minimum} ${d.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${r}${o.minimum}`}case"invalid_format":{let r=o;return r.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${r.prefix}"`:r.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${r.suffix}"`:r.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${r.includes}"`:r.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${r.pattern}`:`A\u1E63\xEC\u1E63e: ${i[r.format]??o.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${o.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${M(o.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${o.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${o.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function Df(){return{localeError:NS()}}var _f,fd=Symbol("ZodOutput"),hd=Symbol("ZodInput"),Hr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...i){let a=i[0];return this._map.set(t,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let i=this._map.get(t);return i&&typeof i=="object"&&"id"in i&&this._idmap.delete(i.id),this._map.delete(t),this}get(t){let i=t._zod.parent;if(i){let a={...this.get(i)??{}};delete a.id;let o={...a,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Xr(){return new Hr}(_f=globalThis).__zod_globalRegistry??(_f.__zod_globalRegistry=Xr());var $e=globalThis.__zod_globalRegistry;var _e=Symbol.for("zod.compile.invalid"),Ef=Symbol.for("zod.compile.fallback"),He=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},te=class extends Error{constructor(t,i=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=i}};function BS(e,t){try{return Qr(e,{assertOnly:!0})}catch{return t}}function bd(e,t){try{let i=Qr(e),a=Yr(e,i);return a._zod.bag.validator=BS(e,i),a}catch(i){if(t?.strict)throw i;return e}}function Yr(e,t){if(Wr(e))throw new te("a schema whose subtree contains a reference cycle");let i=ie(e),a=e._zod.run,o=a.__originalRun??a,r=(d,p)=>{if(p?.async||p?.direction==="backward"||p?.skipChecks||p?.[Ef]||p&&Zr(p,d.value))return o(d,p);let f=t(d.value);return f!==_e?(d.value=f,d):(p&&(p[Ef]=!0),o(d,p))};return r.__originalRun=o,i._zod.bag.fallbackRun=o,i._zod.bag.validator=t,i._zod.run=r,a.__originalRun||WS(i,e,t),i}function WS(e,t,i){let a=e,o=t;if(typeof o.safeParse=="function"){let r=o.safeParse;a.safeParse=(d,p)=>{let f=i(d);return f!==_e?{success:!0,data:f}:r(d,p)}}if(typeof o.parse=="function"){let r=o.parse;a.parse=(d,p)=>{let f=i(d);return f!==_e?f:r(d,p)}}}function Qr(e,t){let i=!0;try{i=Wr(e)}catch{}if(i)throw new te("a schema whose subtree contains a reference cycle");let a={constants:new Map,constantCounter:0,varCounter:0,definite:!0},o=new Ct(["input"]),r=fe(o,a,e,"input",!t?.assertOnly);o.write(r===null?"return true;":`return ${r};`);let d=["INVALID",...a.constants.keys()],p=[_e,...a.constants.values()],f=o.content.join(`
|
|
73
|
+
`),m=t?.debug?d.length>0?`// Constants: ${d.join(", ")}
|
|
74
|
+
${f}`:f:"",g=Function,b=`return (input) => {
|
|
75
|
+
${f}
|
|
76
|
+
}`,S;try{S=new g(...d,b)(...p)}catch(R){throw new te(`this schema (generated code failed to evaluate: ${R.message})`)}return t?.debug&&(S.code=m),S.definite=a.definite,S}function K(e,t){for(let[a,o]of e.constants)if(o===t)return a;let i=`c${e.constantCounter++}`;return e.constants.set(i,t),i}function jt(e,t){return e.definite=!1,K(e,t)}function G(e){return`v${e.varCounter++}`}function ZS(e,t){let i=e._zod.run({value:t,issues:[]},{});if(i&&typeof i.then=="function")return _e;let a=i;return a.issues.length===0?a.value:_e}function Te(e,t,i,a,o=!0){let r=e.content.length,d=t.constants.size,p=t.constantCounter,f=t.varCounter;try{return fe(e,t,i,a,o)}catch(m){if(!(m instanceof te)||!m.islandable)throw m;if(e.content.length=r,t.constants.size>d){let g=Array.from(t.constants.keys()).slice(d);for(let b of g)t.constants.delete(b)}return t.constantCounter=p,t.varCounter=f,GS(e,t,i,a)}}function GS(e,t,i,a){t.definite=!1;let o=K(t,i),r=K(t,ZS),d=G(t);return e.write(`const ${d} = ${r}(${o}, ${a});`),e.write(`if (${d} === INVALID) return INVALID;`),d}var JS=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function KS(e,t,i,a){let o=i._zod.def.checks;if(!o||o.length===0)return a;let r=a;for(let d of o){let p=d._zod.def;if(p.when&&!JS.has(p.check))throw new te('check with a custom "when" condition');switch(p.check){case"greater_than":HS(e,t,p,r);break;case"less_than":XS(e,t,p,r);break;case"multiple_of":YS(e,t,p,r);break;case"number_format":Af(e,p,r);break;case"min_length":{let f=_t(p.minimum,"min_length"),m=gd(e,t,r,`${r}.length >= ${f} && ${r}.length < ${p.minimum*2}`);e.write(`if (${m} < ${f}) return INVALID;`);break}case"max_length":{let f=_t(p.maximum,"max_length"),m=gd(e,t,r,`${r}.length > ${f}`);e.write(`if (${m} > ${f}) return INVALID;`);break}case"length_equals":{let f=_t(p.length,"length_equals"),m=gd(e,t,r,`${r}.length >= ${f} && ${r}.length <= ${p.length*2}`);e.write(`if (${m} !== ${f}) return INVALID;`);break}case"min_size":e.write(`if (${r}.size < ${_t(p.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${r}.size > ${_t(p.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${r}.size !== ${_t(p.size,"size_equals")}) return INVALID;`);break;case"string_format":r=Uf(e,t,p,r);break;case"custom":r=rv(e,t,d,r);break;case"bigint_format":QS(e,p,r);break;case"mime_type":ev(e,t,p,r);break;case"property":ov(e,t,p,r);break;case"properties":tv(e,t,p,r);break;case"overwrite":{let f=G(t);nv(e,t,d,r,f),r=f;break}default:throw new te(`check type ${p.check}`)}}return r}function gd(e,t,i,a){let o=K(t,kt),r=G(t);return e.write(`const ${r} = typeof ${i} === "string" && ${a} ? ${o}(${i}) : ${i}.length;`),r}function _t(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new te(`${t} bound of type ${typeof e}`);return`${e}`}function Ff(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new te("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new te("comparison check with Invalid Date bound");return K(e,t)}throw new te(`comparison check bound of type ${typeof t}`)}function HS(e,t,i,a){let o=i.inclusive?"<":"<=";e.write(`if (${a} ${o} ${Ff(t,i.value)}) return INVALID;`)}function XS(e,t,i,a){let o=i.inclusive?">":">=";e.write(`if (${a} ${o} ${Ff(t,i.value)}) return INVALID;`)}function YS(e,t,i,a){if(typeof i.value=="bigint"){if(i.value===BigInt(0))throw new te("multiple_of check with a zero divisor");e.write(`if (${a} % ${i.value}n !== 0n) return INVALID;`)}else{let o=K(t,Zo);e.write(`if (${o}(${a}, ${_t(i.value,"multiple_of")}) !== 0) return INVALID;`)}}function Af(e,t,i){let a=t.format;switch(a){case"safeint":e.write(`if (!Number.isSafeInteger(${i})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${i}) || ${i} < -2147483648 || ${i} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${i}) || ${i} < 0 || ${i} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${i}) || ${i} < -3.4028234663852886e38 || ${i} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${i})) return INVALID;`);break;default:throw new te(`number format ${a}`)}}function QS(e,t,i){let a=t.format;if(a)switch(a){case"int64":e.write(`if (${i} < -9223372036854775808n || ${i} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${i} < 0n || ${i} > 18446744073709551615n) return INVALID;`);break;default:throw new te(`bigint format ${a}`)}}function ev(e,t,i,a){let o=i.mime;if(o&&o.length>0){let r=K(t,new Set(o));e.write(`if (!${r}.has(${a}.type)) return INVALID;`)}}function tv(e,t,i,a){if(i.when)throw new te('check with a custom "when" condition');e.write(`if (${a} == null) return INVALID;`);let o=i.shape;for(let r of Reflect.ownKeys(o)){let d=typeof r=="symbol"?K(t,r):Ce(r),p=G(t);e.write(`const ${p} = ${a}[${d}];`),Te(e,t,o[r],p,!1)}}function ov(e,t,i,a){let o=`${a}[${JSON.stringify(i.property)}]`;fe(e,t,i.schema,o)}function nv(e,t,i,a,o){let r=i._zod.def.tx;if(!r)throw new te("overwrite check without a transform function");if(Pt(r))throw new He("z.compile: async overwrite transforms are not supported");let d=K(t,r);e.write(`const ${o} = ${d}(${a});`)}function xd(){throw new Fe}function yd(e){this.issues.push(e)}function rv(e,t,i,a){let o=i._zod.def;if(o.fn){if(Pt(o.fn))throw new He("z.compile: async .refine() predicates are not supported");let r=jt(t,o.fn),d=K(t,xd),p=G(t);return e.write(`const ${p} = ${r}(${a});`),e.write(`if (${p} instanceof Promise) ${d}();`),e.write(`if (!${p}) return INVALID;`),a}if(i._zod.check){if(Pt(i._zod.check))throw new He("z.compile: async .superRefine() / check functions are not supported");let r=i._zod.check,p=jt(t,m=>{let g={value:m,issues:[],addIssue:yd};return r(g)instanceof Promise&&xd(),g.issues.length===0?g.value:_e}),f=G(t);return e.write(`const ${f} = ${p}(${a});`),e.write(`if (${f} === INVALID) return INVALID;`),f}throw new te("custom check without a predicate or check function")}var iv=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function Uf(e,t,i,a,o=!0){let r=i.format;if(r==="base64"){let m=K(t,ln);return e.write(`if (!${m}(${a})) return INVALID;`),a}if(r==="base64url"){let m=K(t,Dr);return e.write(`if (!${m}(${a})) return INVALID;`),a}if(r==="jwt"){let m=K(t,jr),g=K(t,i.alg??null);return e.write(`if (!${m}(${a}, ${g})) return INVALID;`),a}if(r==="ipv6"){let m=K(t,un);return e.write(`if (!${m}(${a})) return INVALID;`),a}if(r==="cidrv6"){let m=K(t,Tr);return e.write(`if (!${m}(${a})) return INVALID;`),a}if(r==="credit_card"){let m=K(t,_r);return e.write(`if (!${m}(${a})) return INVALID;`),a}if(r==="iban"){let m=K(t,Er);return e.write(`if (!${m}(${a})) return INVALID;`),a}let d=i;if(r==="url"||r==="httpurl"||d.normalize||d.hostname!==void 0||d.protocol!==void 0){let m=K(t,Or),g=K(t,i),b=G(t),S=G(t);if(e.write(`const ${b} = ${a}.trim();`),e.write(`const ${S} = ${m}(${b}, ${g});`),e.write(`if (typeof ${S} === "number") return INVALID;`),d.hostname!==void 0){let k=K(t,$r);e.write(`if (!${k}(${S}, ${g}.hostname)) return INVALID;`)}if(d.protocol!==void 0){let k=K(t,kr);e.write(`if (!${k}(${S}, ${g}.protocol)) return INVALID;`)}if(!o)return null;let R=G(t),O=d.normalize?`${S}.href`:`${K(t,pn)}(${b})`;return e.write(`const ${R} = ${O};`),R}let p=i.fn;if(p){if(Pt(p))throw new te(`async string format ${r}`);let m=K(t,p);return e.write(`if (!${m}(${a})) return INVALID;`),a}if(iv.has(r)&&i.pattern){let m=K(t,i.pattern);return e.write(`${m}.lastIndex = 0;`),e.write(`if (!${m}.test(${a})) return INVALID;`),a}let f=i.format;switch(f){case"regex":throw new te("regex format without a pattern");case"lowercase":e.write(`if (${a} !== ${a}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${a} !== ${a}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${a}.includes(${Ce(i.includes)})) return INVALID;`);break;case"starts_with":{let m=i.prefix;e.write(`if (${a}.slice(0, ${m.length}) !== ${Ce(m)}) return INVALID;`);break}case"ends_with":{let m=i.suffix;e.write(`if (${a}.slice(-${m.length}) !== ${Ce(m)}) return INVALID;`);break}default:throw new te(`string format ${f}`)}return a}function fe(e,t,i,a,o=!0){let r=i._zod.def,d=r.type;if(r.coerce)throw new te(`coercion (z.coerce.${d}())`);let p=o||!!r.checks?.length,f;switch(d){case"string":f=av(e,t,i,a,p);break;case"number":f=sv(e,i,a);break;case"boolean":f=cv(e,a);break;case"bigint":f=dv(e,i,a);break;case"symbol":f=pv(e,a);break;case"undefined":f=uv(e,a);break;case"null":f=lv(e,a);break;case"any":case"unknown":f=a;break;case"never":e.write("return INVALID;"),f=a;break;case"void":f=mv(e,a);break;case"nan":f=fv(e,a);break;case"date":f=hv(e,a);break;case"object":f=gv(e,t,i,a,p);break;case"optional":f=xv(e,t,i,a,p);break;case"nullable":f=yv(e,t,i,a,p);break;case"array":f=Sv(e,t,i,a,p);break;case"literal":f=vv(e,t,i,a);break;case"enum":f=Rv(e,t,i,a);break;case"readonly":{let m=Pf(e,t,i,a),g=G(t);e.write(`const ${g} = Object.freeze(${m});`),f=g;break}case"success":Pf(e,t,i,a),f="true";break;case"default":case"prefault":f=wv(e,t,i,a);break;case"nonoptional":f=Iv(e,t,i,a);break;case"tuple":f=Mv(e,t,i,a);break;case"union":f=Ov(e,t,i,a);break;case"intersection":f=Tv(e,t,i,a);break;case"record":f=Cv(e,t,i,a);break;case"map":f=_v(e,t,i,a);break;case"set":f=Ev(e,t,i,a);break;case"file":f=jv(e,a);break;case"template_literal":f=Pv(e,t,i,a);break;case"lazy":f=Lv(e,t,i,a);break;case"pipe":f=Vv(e,t,i,a);break;case"custom":f=Fv(e,t,i,a);break;case"transform":f=Nv(e,t,i,a);break;case"catch":f=Uv(e,t,i,a);break;default:throw new te(`schema type ${d}`)}return f===null?null:KS(e,t,i,f)}function av(e,t,i,a,o=!0){e.write(`if (typeof ${a} !== "string") return INVALID;`);let r=i._zod.def;return r.format===void 0?a:Uf(e,t,r,a,o)}function sv(e,t,i){e.write(`if (typeof ${i} !== "number" || !Number.isFinite(${i})) return INVALID;`);let a=t._zod.def;return a.check==="number_format"&&a.format&&Af(e,{format:a.format},i),i}function cv(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function dv(e,t,i){e.write(`if (typeof ${i} !== "bigint") return INVALID;`);let a=t._zod.def;if(a.format)switch(a.format){case"int64":e.write(`if (${i} < -9223372036854775808n || ${i} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${i} < 0n || ${i} > 18446744073709551615n) return INVALID;`);break}return i}function pv(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function uv(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function lv(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function mv(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function fv(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function hv(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function gv(e,t,i,a,o=!0){let r=i._zod.def;e.write(`if (typeof ${a} !== "object" || ${a} === null || Array.isArray(${a})) return INVALID;`);let d=r.shape,p=Object.keys(d),f=Object.getOwnPropertySymbols(d),m=f.length?[...p,...f]:p,g=U=>typeof U=="symbol"?K(t,U):Ce(U),b=U=>typeof U=="symbol"?`[${g(U)}]`:Ce(U),S=d;if(p.includes("__proto__"))throw new te('object shape key "__proto__"');let R=new Map;for(let U of m){let V=S[U],J=g(U),ce=G(t);if(e.write(`const ${ce} = ${a}[${J}];`),V._zod.optin!==void 0){let re=G(t);e.write(`let ${re} = (() => {`),e.indented(ke=>{let qo=Te(ke,t,V,ce);ke.write(`return ${qo};`)}),e.write("})();"),V._zod.optout==="optional"?(e.write(`if (${re} === INVALID) {`),e.indented(ke=>{ke.write(`if (${J} in ${a}) return INVALID;`),ke.write(`${re} = undefined;`)}),e.write("}")):e.write(`if (${re} === INVALID) return INVALID;`),R.set(U,re)}else{bv(V)&&e.write(`if (!(${J} in ${a})) return INVALID;`);let re=Te(e,t,V,ce,o);re!==null&&R.set(U,re)}}let O=r.catchall,k="none";if(O){let U=O._zod.def.type;if(U==="never"){let V=p.map(J=>`k !== ${Ce(J)}`).join(" && ")||"true";e.write(`for (const k in ${a}) {`),e.indented(J=>{J.write(`if (${V}) return INVALID;`)}),e.write("}")}else(U==="unknown"||U==="any")&&!O._zod.def.checks?.length?k="passthrough":k="schema"}let E=G(t),Z=m.some(U=>jf(S[U])||zd(S[U]));if(!o){if(k==="schema"){let U=p.length>0?K(t,new Set(p)):null;e.write(`for (const k in ${a}) {`),e.indented(V=>{V.write('if (k === "__proto__") continue;'),U&&V.write(`if (${U}.has(k)) continue;`);let J=G(t);V.write(`const ${J} = ${a}[k];`),Te(V,t,O,J,!1)}),e.write("}")}return null}if(Z){e.write(`const ${E} = {};`);for(let U of m){let V=g(U),J=R.get(U);zd(S[U])?e.write(`if (${V} in ${a}) ${E}[${V}] = ${J};`):jf(S[U])?e.write(`if (${J} !== undefined || ${V} in ${a}) ${E}[${V}] = ${J};`):e.write(`${E}[${V}] = ${J};`)}}else{let U=m.map(V=>`${b(V)}: ${R.get(V)}`).join(", ");e.write(`const ${E} = { ${U} };`)}if(k!=="none"){let U=p.length>0?K(t,new Set(p)):null;e.write(`for (const k in ${a}) {`),e.indented(V=>{if(V.write('if (k === "__proto__") continue;'),U&&V.write(`if (${U}.has(k)) continue;`),k==="passthrough")V.write(`${E}[k] = ${a}[k];`);else{let J=G(t);V.write(`const ${J} = ${a}[k];`);let ce=Te(V,t,O,J);V.write(`${E}[k] = ${ce};`)}}),e.write("}")}return E}function xv(e,t,i,a,o=!0){let r=i._zod.def;if(zv(i))return fe(e,t,r.innerType,a,o);if(r.innerType._zod.optin==="defaulted"){let p=G(t),f=G(t);return e.write(`let ${p};`),e.write(`if (${a} === undefined) {`),e.indented(m=>{m.write(`const ${f} = (() => {`),m.indented(g=>{let b=fe(g,t,r.innerType,a);g.write(`return ${b};`)}),m.write("})();"),m.write(`if (${f} !== INVALID) ${p} = ${f};`)}),e.write("} else {"),e.indented(m=>{let g=fe(m,t,r.innerType,a);m.write(`${p} = ${g};`)}),e.write("}"),p}let d=o?G(t):null;return d&&e.write(`let ${d};`),e.write(`if (${a} !== undefined) {`),e.indented(p=>{let f=fe(p,t,r.innerType,a,o);d&&f!==null&&p.write(`${d} = ${f};`)}),e.write("}"),d}function zv(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function bv(e){return e._zod.optin===void 0&&Et(e)}function Et(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?Et(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?Et(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(Et):!0;case"intersection":return!t.left||!t.right?!0:Et(t.left)&&Et(t.right);case"pipe":return t.in?Et(t.in):!0;default:return!0}}function zd(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function jf(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&so(e)}function so(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?so(t.innerType):!0;case"union":return t.options?t.options.some(so):!0;case"intersection":return!t.left||!t.right||so(t.left)||so(t.right);case"pipe":return t.out?so(t.out):!0;default:return!0}}function yv(e,t,i,a,o=!0){let r=i._zod.def,d=o?G(t):null;return d&&e.write(`let ${d} = null;`),e.write(`if (${a} !== null) {`),e.indented(p=>{let f=fe(p,t,r.innerType,a,o);d&&f!==null&&p.write(`${d} = ${f};`)}),e.write("}"),d}function Sv(e,t,i,a,o=!0){let r=i._zod.def;e.write(`if (!Array.isArray(${a})) return INVALID;`);let d=o?G(t):null,p=G(t),f=G(t);return d&&e.write(`const ${d} = new Array(${a}.length);`),e.write(`for (let ${p} = 0; ${p} < ${a}.length; ${p}++) {`),e.indented(m=>{m.write(`const ${f} = ${a}[${p}];`);let g=Te(m,t,r.element,f,o);d&&g!==null&&m.write(`${d}[${p}] = ${g};`)}),e.write("}"),d}function vv(e,t,i,a){let r=i._zod.def.values;if(r.length!==1){let p=K(t,new Set(r));return e.write(`if (!${p}.has(${a})) return INVALID;`),a}let d=r[0];if(typeof d=="number"&&Number.isNaN(d)){let p=K(t,new Set(r));return e.write(`if (!${p}.has(${a})) return INVALID;`),a}if(typeof d=="string")e.write(`if (${a} !== ${Ce(d)}) return INVALID;`);else if(typeof d=="number"||typeof d=="boolean")e.write(`if (${a} !== ${d}) return INVALID;`);else if(d===null)e.write(`if (${a} !== null) return INVALID;`);else if(d===void 0)e.write(`if (${a} !== undefined) return INVALID;`);else if(typeof d=="bigint")e.write(`if (${a} !== ${d}n) return INVALID;`);else throw new te(`literal type ${typeof d}`);return a}function Rv(e,t,i,a){let o=i._zod.values;if(!o)throw new te("enum schema without enumerated values");let r=K(t,o);return e.write(`if (!${r}.has(${a})) return INVALID;`),a}function Pf(e,t,i,a){let o=i._zod.def;return fe(e,t,o.innerType,a)}function wv(e,t,i,a){let o=i._zod.def,d=Object.getOwnPropertyDescriptor(i._zod.def,"defaultValue")?()=>i._zod.def.defaultValue:void 0;if(i._zod.def.type==="prefault"){if(!d)return fe(e,t,o.innerType,a);let f=K(t,d),m=G(t);return e.write(`let ${m} = ${a};`),e.write(`if (${a} === undefined) ${m} = ${f}();`),fe(e,t,o.innerType,m)}let p=G(t);if(d){let f=K(t,d),m=K(t,Go);e.write(`let ${p};`),e.write(`if (${a} === undefined) {`),e.indented(g=>{g.write(`${p} = ${m}(${f}());`)}),e.write("} else {"),e.indented(g=>{let b=fe(g,t,o.innerType,a);g.write(`${p} = ${b} === undefined ? ${m}(${f}()) : ${b};`)}),e.write("}")}else e.write(`let ${p};`),e.write(`if (${a} !== undefined) {`),e.indented(f=>{let m=fe(f,t,o.innerType,a);f.write(`${p} = ${m};`)}),e.write("}");return p}function Iv(e,t,i,a){let o=i._zod.def,r=fe(e,t,o.innerType,a),d=G(t);return e.write(`const ${d} = ${r};`),e.write(`if (${d} === undefined) return INVALID;`),d}function Mv(e,t,i,a){let o=i._zod.def,r=o.items,d=o.rest;e.write(`if (!Array.isArray(${a})) return INVALID;`);let p=Lf(r,"optin"),f=Lf(r,"optout");d?e.write(`if (${a}.length < ${p}) return INVALID;`):e.write(`if (${a}.length < ${p} || ${a}.length > ${r.length}) return INVALID;`);let m=G(t);e.write(`const ${m} = [];`);for(let g=0;g<r.length;g++){let b=r[g];if(g>=f)e.write(`if (${m}.length === ${g}) {`),e.indented(S=>{S.write(`if (${g} < ${a}.length) {`),S.indented(R=>{let O=G(t);R.write(`const ${O} = ${a}[${g}];`);let k=Te(R,t,b,O);R.write(`${m}[${g}] = ${k};`)}),S.write("} else {"),S.indented(R=>{if(zd(b)){R.write(`${m}.length = ${g};`);return}let O=G(t),k=G(t);R.write(`const ${O} = undefined;`),R.write(`const ${k} = (() => {`),R.indented(E=>{let Z=Te(E,t,b,O);E.write(`return ${Z};`)}),R.write("})();"),R.write(`if (${k} === INVALID || ${k} === undefined) ${m}.length = ${g};`),R.write(`else ${m}[${g}] = ${k};`)}),S.write("}")}),e.write("}");else{let S=G(t);e.write(`const ${S} = ${a}[${g}];`);let R=Te(e,t,b,S);e.write(`${m}[${g}] = ${R};`)}}if(d){let g=G(t),b=G(t);e.write(`for (let ${g} = ${r.length}; ${g} < ${a}.length; ${g}++) {`),e.indented(S=>{S.write(`const ${b} = ${a}[${g}];`);let R=Te(S,t,d,b);S.write(`${m}[${g}] = ${R};`)}),e.write("}")}return m}function Lf(e,t){for(let i=e.length-1;i>=0;i--)if(!(t==="optin"?e[i]._zod.optin!==void 0:e[i]._zod.optout==="optional"))return i+1;return 0}function Ov(e,t,i,a){let o=i._zod.def,r=o.options;if(o.discriminator)return $v(e,t,o,a);if(o.inclusive===!1)throw new te("exclusive unions (z.xor)");if(r.length===0)return e.write("return INVALID;"),a;if(r.length===1)return fe(e,t,r[0],a);if(r.every(f=>f._zod.def.type==="literal"&&!f._zod.def.checks?.length)){let f=new Set(r.flatMap(g=>g._zod.def.values)),m=K(t,f);return e.write(`if (!${m}.has(${a})) return INVALID;`),a}let p=G(t);e.write(`let ${p};`);for(let f=0;f<r.length;f++){let m=r[f];f===0?e.write(`${p} = (() => {`):e.write(`if (${p} === INVALID) ${p} = (() => {`),e.indented(g=>{let b=fe(g,t,m,a);g.write(`return ${b};`)}),e.write("})();")}return e.write(`if (${p} === INVALID) return INVALID;`),p}function $v(e,t,i,a){if(i.unionFallback)throw new te("discriminated union with unionFallback");if(i.options.length===0)return e.write("return INVALID;"),a;let o=G(t),r=G(t);e.write(`const ${o} = ${a}?.[${Ce(i.discriminator)}];`),e.write(`let ${r};`);let d=!0,p=new Set;for(let f of i.options){let m=f._zod.propValues?.[i.discriminator];if(!m||m.size===0)throw new te("discriminated union option without static discriminator values");for(let S of m){if(p.has(S))throw new te(`duplicate discriminator value ${String(S)}`);p.add(S)}let g=Array.from(m,S=>kv(t,o,S)),b=d?"if":"else if";e.write(`${b} (${g.join(" || ")}) {`),e.indented(S=>{let R=fe(S,t,f,a);S.write(`${r} = ${R};`)}),e.write("}"),d=!1}return e.write("else { return INVALID; }"),r}function kv(e,t,i){if(typeof i=="string")return`${t} === ${Ce(i)}`;if(typeof i=="number")return Number.isNaN(i)?`Number.isNaN(${t})`:`${t} === ${i}`;if(typeof i=="boolean")return`${t} === ${i}`;if(i===null)return`${t} === null`;if(i===void 0)return`${t} === undefined`;if(typeof i=="bigint")return`${t} === ${i}n`;if(typeof i=="symbol"){let a=K(e,i);return`${t} === ${a}`}throw new te(`literal discriminator value ${String(i)}`)}function Tv(e,t,i,a){let o=i._zod.def;t.definite=!1;let r=Te(e,t,o.left,a),d=Te(e,t,o.right,a),p=K(t,ro),f=G(t);return e.write(`const ${f} = ${p}(${r}, ${d});`),e.write(`if (!${f}.valid) return INVALID;`),`${f}.data`}function Cv(e,t,i,a){let o=i._zod.def,r=K(t,We);e.write(`if (!${r}(${a})) return INVALID;`);let d=G(t),p=G(t),f=G(t);e.write(`const ${d} = {};`);let m=o,g=m.partial?void 0:o.keyType._zod.values;if(g){let R=[];for(let k of g){if(!(typeof k=="string"||typeof k=="number"||typeof k=="symbol"))throw new te(`record key value ${String(k)}`);let E=typeof k=="number"?k.toString():k;if(E==="__proto__")throw new te('record key "__proto__"');R.push(E);let Z=K(t,k),U=fe(e,t,o.keyType,Z),V=G(t);e.write(`const ${V} = ${a}[${Dv(t,E)}];`);let J=Te(e,t,o.valueType,V);e.write(`${d}[${U}] = ${J};`)}let O=K(t,new Set(R));return e.write(`for (const ${p} in ${a}) {`),e.indented(k=>{k.write(`if (${O}.has(${p})) continue;`),m.mode==="loose"?k.write(`if (${p} !== "__proto__") ${d}[${p}] = ${a}[${p}];`):k.write("return INVALID;")}),e.write("}"),d}let b=o.keyType._zod.def;if(!(b.type==="string"&&b.format===void 0&&!b.coerce&&(b.checks?.length??0)===0)){let R=o.mode==="loose",O=Qr(o.keyType);O.definite===!1&&(t.definite=!1);let k=K(t,O),E=K(t,st),Z=G(t);return Vf(e,t,a,p,U=>{U.write(`let ${Z} = ${k}(${p});`),U.write(`if (${Z} === INVALID && typeof ${p} === "string" && ${E}.test(${p})) ${Z} = ${k}(Number(${p}));`),R?U.write(`if (${Z} === INVALID) { ${d}[${p}] = ${a}[${p}]; continue; }`):U.write(`if (${Z} === INVALID) return INVALID;`),U.write(`if (${Z} === "__proto__") continue;`);let V=G(t);U.write(`const ${V} = ${a}[${p}];`);let J=Te(U,t,o.valueType,V);U.write(`${d}[${Z}] = ${J};`)}),d}return Vf(e,t,a,p,R=>{R.write(`const ${f} = ${a}[${p}];`);let O=Te(R,t,o.valueType,f);R.write(`${d}[${p}] = ${O};`)},"return INVALID;"),d}function Vf(e,t,i,a,o,r){let d=K(t,Object.prototype.propertyIsEnumerable),p=G(t),f=G(t),m=G(t);e.write(`const ${p} = Object.getOwnPropertySymbols(${i});`),e.write(`const ${f} = Object.getOwnPropertyNames(${i});`),e.write(`for (let ${m} = 0; ${m} < ${f}.length; ${m}++) {`),e.indented(g=>{g.write(`const ${a} = ${f}[${m}];`),g.write(`if (${a} === "__proto__" || !${d}.call(${i}, ${a})) continue;`),o(g)}),e.write("}"),e.write(`for (let ${m} = 0; ${m} < ${p}.length; ${m}++) {`),e.indented(g=>{g.write(`const ${a} = ${p}[${m}];`),g.write(`if (!${d}.call(${i}, ${a})) continue;`),r?g.write(r):o(g)}),e.write("}")}function Dv(e,t){return typeof t=="string"?Ce(t):K(e,t)}function _v(e,t,i,a){let o=i._zod.def;e.write(`if (!(${a} instanceof Map)) return INVALID;`);let r=G(t),d=G(t),p=G(t);return e.write(`const ${r} = new Map();`),e.write(`for (const [${d}, ${p}] of ${a}) {`),e.indented(f=>{let m=fe(f,t,o.keyType,d),g=fe(f,t,o.valueType,p);f.write(`${r}.set(${m}, ${g});`)}),e.write("}"),r}function Ev(e,t,i,a){let o=i._zod.def;e.write(`if (!(${a} instanceof Set)) return INVALID;`);let r=G(t),d=G(t);return e.write(`const ${r} = new Set();`),e.write(`for (const ${d} of ${a}) {`),e.indented(p=>{let f=fe(p,t,o.valueType,d);p.write(`${r}.add(${f});`)}),e.write("}"),r}function jv(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function Pv(e,t,i,a){e.write(`if (typeof ${a} !== "string") return INVALID;`);let o=i._zod.pattern;if(o){let r=K(t,o);e.write(`${r}.lastIndex = 0;`),e.write(`if (!${r}.test(${a})) return INVALID;`)}return a}function Lv(e,t,i,a){let o=i._zod.def,r=jt(t,o.getter),d=K(t,{parser:null});e.write(`if (!${d}.parser) {`),e.indented(f=>{f.write(`const inner = ${r}();`),f.write(`${d}.parser = function(input) {`),f.indented(m=>{m.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),m.write("return result.issues.length === 0 ? result.value : INVALID;")}),f.write("};")}),e.write("}");let p=G(t);return e.write(`const ${p} = ${d}.parser(${a});`),e.write(`if (${p} === INVALID) return INVALID;`),p}function Vv(e,t,i,a){let o=i._zod.def,r=fe(e,t,o.in,a);if(o.transform){if(Pt(o.transform))throw new He("z.compile: async transforms in pipes are not supported");let d=o.transform,f=jt(t,g=>{let b={value:g,issues:[],addIssue:yd},S=d(g,b);return S instanceof Promise?_e:b.issues.length===0?S:_e}),m=G(t);return e.write(`const ${m} = ${f}(${r});`),e.write(`if (${m} === INVALID) return INVALID;`),fe(e,t,o.out,m)}else return fe(e,t,o.out,r)}function Pt(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function Fv(e,t,i,a){let o=i._zod.def;if(o.fn){if(Pt(o.fn))throw new He("z.compile: async custom predicates are not supported");let r=jt(t,o.fn),d=K(t,xd),p=G(t);e.write(`const ${p} = ${r}(${a});`),e.write(`if (${p} instanceof Promise) ${d}();`),e.write(`if (!${p}) return INVALID;`)}else throw new te("custom schema without a predicate function");return a}function Av(e,t,i){let a=e._zod.run({value:i,issues:[]},{});if(a&&typeof a.then=="function")return _e;let o=a;return o.issues.length===0?o.value:t()}function Uv(e,t,i,a){let o=i._zod.def;if(!o.catchValue[rr])throw new te("catch with a callback (only a constant catch value compiles)",!1);let r=G(t);e.write(`let ${r} = (() => {`),e.indented(m=>{let g=Te(m,t,o.innerType,a);m.write(`return ${g};`)}),e.write("})();");let d=K(t,o.innerType),p=jt(t,o.catchValue),f=K(t,Av);return e.write(`if (${r} === INVALID) {`),e.indented(m=>{m.write(`${r} = ${f}(${d}, ${p}, ${a});`),m.write(`if (${r} === INVALID) return INVALID;`)}),e.write("}"),r}function Nv(e,t,i,a){let o=i._zod.def;if(o.transform){if(Pt(o.transform))throw new He("z.compile: async transforms are not supported");let r=o.transform,p=jt(t,m=>{let g={value:m,issues:[],addIssue:yd},b=r(m,g);return b instanceof Promise?_e:g.issues.length===0?b:_e}),f=G(t);return e.write(`const ${f} = ${p}(${a});`),e.write(`if (${f} === INVALID) return INVALID;`),f}return a}function ei(e){return e.checks&&(e.checks=[...e.checks]),e}function Sd(e,t){return new e(ei({type:"string",...L(t)}))}function vd(e,t){return new e(ei({type:"string",coerce:!0,...L(t)}))}function ti(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...L(t)})}function oi(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...L(t)})}function ni(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...L(t)})}function ri(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(t)})}function ii(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(t)})}function ai(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(t)})}function Rn(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...L(t)})}function si(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...L(t)})}function ci(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(t)})}function di(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...L(t)})}function pi(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(t)})}function ui(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...L(t)})}function li(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...L(t)})}function mi(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(t)})}function fi(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(t)})}function hi(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(t)})}function Rd(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...L(t)})}function gi(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(t)})}function xi(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(t)})}function zi(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...L(t)})}function bi(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...L(t)})}function yi(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...L(t)})}function wd(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...L(t)})}function Id(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...L(t)})}function Si(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...L(t)})}var Md={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function wn(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(t)})}function In(e,t){return new e({type:"string",format:"date",check:"string_format",...L(t)})}function Mn(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...L(t)})}function On(e,t){return new e({type:"string",format:"duration",check:"string_format",...L(t)})}function Od(e,t){return new e(ei({type:"number",checks:[],...L(t)}))}function $d(e,t){return new e(ei({type:"number",coerce:!0,checks:[],...L(t)}))}function kd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...L(t)})}function Td(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...L(t)})}function Cd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...L(t)})}function Dd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...L(t)})}function _d(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...L(t)})}function Ed(e,t){return new e({type:"boolean",...L(t)})}function jd(e,t){return new e({type:"boolean",coerce:!0,...L(t)})}function Pd(e,t){return new e({type:"bigint",...L(t)})}function Ld(e,t){return new e({type:"bigint",coerce:!0,...L(t)})}function Vd(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(t)})}function Fd(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(t)})}function Ad(e,t){return new e({type:"symbol",...L(t)})}function Ud(e,t){return new e({type:"undefined",...L(t)})}function Nd(e,t){return new e({type:"null",...L(t)})}function qd(e){return new e({type:"any"})}function Bd(e){return new e({type:"unknown"})}function Wd(e,t){return new e({type:"never",...L(t)})}function Zd(e,t){return new e({type:"void",...L(t)})}function Gd(e,t){return new e({type:"date",...L(t)})}function Jd(e,t){return new e({type:"date",coerce:!0,...L(t)})}function Kd(e,t){return new e({type:"nan",...L(t)})}function Qe(e,t){return new yr({check:"less_than",...L(t),value:e,inclusive:!1})}function Ne(e,t){return new yr({check:"less_than",...L(t),value:e,inclusive:!0})}function et(e,t){return new Sr({check:"greater_than",...L(t),value:e,inclusive:!1})}function qe(e,t){return new Sr({check:"greater_than",...L(t),value:e,inclusive:!0})}function vi(e){return et(0,e)}function Ri(e){return Qe(0,e)}function wi(e){return Ne(0,e)}function Ii(e){return qe(0,e)}function xt(e,t){return new _s({check:"multiple_of",...L(t),value:e})}function zt(e,t){return new Ps({check:"max_size",...L(t),maximum:e})}function tt(e,t){return new Ls({check:"min_size",...L(t),minimum:e})}function Lt(e,t){return new Vs({check:"size_equals",...L(t),size:e})}function Vt(e,t){return new Fs({check:"max_length",...L(t),maximum:e})}function ct(e,t){return new As({check:"min_length",...L(t),minimum:e})}function Ft(e,t){return new Us({check:"length_equals",...L(t),length:e})}function co(e,t){return new Ns({check:"string_format",format:"regex",...L(t),pattern:e})}function po(e){return new qs({check:"string_format",format:"lowercase",...L(e)})}function uo(e){return new Bs({check:"string_format",format:"uppercase",...L(e)})}function lo(e,t){return new Ws({check:"string_format",format:"includes",...L(t),includes:e})}function mo(e,t){return new Zs({check:"string_format",format:"starts_with",...L(t),prefix:e})}function fo(e,t){return new Gs({check:"string_format",format:"ends_with",...L(t),suffix:e})}function Mi(e,t,i){return new Js({check:"property",property:e,schema:t,...L(i)})}function ho(e,t){return new Ks({check:"properties",shape:e,...L(t)})}function go(e,t){return new Hs({check:"mime_type",mime:e,...L(t)})}function Xe(e){return new Xs({check:"overwrite",tx:e})}function xo(e){return Xe(t=>t.normalize(e))}function zo(){return Xe(e=>e.trim())}function bo(){return Xe(e=>e.toLowerCase())}function yo(){return Xe(e=>e.toUpperCase())}function So(){return Xe(e=>ja(e))}function Hd(e,t,i){return new e({type:"array",element:t,...L(i)})}function qv(e,t,i){return new e({type:"union",options:t,...L(i)})}function Bv(e,t,i){return new e({type:"union",options:t,inclusive:!1,...L(i)})}function Wv(e,t,i,a){return new e({type:"union",options:i,discriminator:t,...L(a)})}function Zv(e,t,i){return new e({type:"intersection",left:t,right:i})}function Gv(e,t,i,a){let o=i instanceof H,r=o?a:i,d=o?i:null;return new e({type:"tuple",items:t,rest:d,...L(r)})}function Jv(e,t,i,a){return new e({type:"record",keyType:t,valueType:i,...L(a)})}function Kv(e,t,i,a){return new e({type:"map",keyType:t,valueType:i,...L(a)})}function Hv(e,t,i){return new e({type:"set",valueType:t,...L(i)})}function Xv(e,t,i){let a=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:a,...L(i)})}function Yv(e,t,i){return new e({type:"enum",entries:t,...L(i)})}function Qv(e,t,i){return new e({type:"literal",values:Array.isArray(t)?t:[t],...L(i)})}function Xd(e,t){return new e({type:"file",...L(t)})}function eR(e,t){return new e({type:"transform",transform:t})}function tR(e,t){return new e({type:"optional",innerType:t})}function oR(e,t){return new e({type:"nullable",innerType:t})}function nR(e,t,i){return new e({type:"default",innerType:t,get defaultValue(){return typeof i=="function"?i():Go(i)}})}function rR(e,t,i){return new e({type:"nonoptional",innerType:t,...L(i)})}function iR(e,t){return new e({type:"success",innerType:t})}function aR(e,t,i){return new e({type:"catch",innerType:t,catchValue:typeof i=="function"?i:Ua(i)})}function sR(e,t,i){return new e({type:"pipe",in:t,out:i})}function cR(e,t){return new e({type:"readonly",innerType:t})}function dR(e,t,i){return new e({type:"template_literal",parts:t,...L(i)})}function pR(e,t){return new e({type:"lazy",getter:t})}function uR(e,t){return new e({type:"promise",innerType:t})}function Yd(e,t,i){let a=L(i);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function Qd(e,t,i){return new e({type:"custom",check:"custom",fn:t,...L(i)})}function ep(e,t){let i=Nf(a=>(a.addIssue=o=>{if(typeof o=="string")a.issues.push(Yt(o,a.value,i._zod.def));else{let r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),"input"in r||(r.input=a.value),r.inst??(r.inst=i),r.continue??(r.continue=!i._zod.def.abort),a.issues.push(Yt(r))}},e(a.value,a)),t);return i}function Nf(e,t){let i=new pe({check:"custom",...L(t)});return i._zod.check=e,i}function tp(e){let t=new pe({check:"describe"});return t._zod.onattach=[i=>{let a=$e.get(i)??{};$e.add(i,{...a,description:e})}],t._zod.check=()=>{},t}function op(e){let t=new pe({check:"meta"});return t._zod.onattach=[i=>{let a=$e.get(i)??{};$e.add(i,{...a,...e})}],t._zod.check=()=>{},t}function np(e,t){let i=L(t),a=i.truthy??["true","1","yes","on","y","enabled"],o=i.falsy??["false","0","no","off","n","disabled"];i.case!=="sensitive"&&(a=a.map(R=>typeof R=="string"?R.toLowerCase():R),o=o.map(R=>typeof R=="string"?R.toLowerCase():R));let r=new Set(a),d=new Set(o),p=e.Codec??gn,f=e.Boolean??fn,m=e.String??Dt,g=new m({type:"string",error:i.error}),b=new f({type:"boolean",error:i.error}),S=new p({type:"pipe",in:g,out:b,transform:((R,O)=>{let k=R;return i.case!=="sensitive"&&(k=k.toLowerCase()),r.has(k)?!0:d.has(k)?!1:(O.issues.push({code:"invalid_value",expected:"stringbool",values:[...r,...d],input:O.value,inst:S,continue:!1}),{})}),reverseTransform:((R,O)=>R===!0?a[0]||"true":o[0]||"false"),error:i.error});return S._zod.bag.truthy=a,S._zod.bag.falsy=o,S._zod.bag.case=i.case??"insensitive",S}function At(e,t,i,a={}){let o=L(a),r={check:"string_format",type:"string",format:t,fn:typeof i=="function"?i:p=>i.test(p),...o};return i instanceof RegExp&&(r.pattern=i),new e(r)}function $n(e,...t){for(let i of t)for(let a of Reflect.ownKeys(i))Object.prototype.propertyIsEnumerable.call(i,a)&&Oe(e,a,i[a]);return e}function bt(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??$e,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Se(e,t,i,a,o){let r=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:a.path,message:o}):t.unrepresentable;if(r==="any")return!1;if(r===void 0||r==="throw")throw new Error(o);return Object.assign(i,r),!0}function se(e,t,i={path:[],schemaPath:[]}){var a;let o=e._zod.def,r=t.seen.get(e);if(r)return r.count++,i.schemaPath.includes(e)&&(r.cycle=i.path),r.schema;let d={schema:{},count:1,cycle:void 0,path:i.path};t.seen.set(e,d),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let p=e._zod.toJSONSchema?.();if(p)d.schema=p;else{let g={...i,schemaPath:[...i.schemaPath,e],path:i.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,d.schema,g);else{let S=d.schema,R=t.processors[o.type];if(!R)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);R(e,t,S,g)}let b=e._zod.parent;b&&(d.ref||(d.ref=b),se(b,t,g),t.seen.get(b).isParent=!0)}let f=t.metadataRegistry.get(e);return f&&$n(d.schema,f),t.io==="input"&&Ee(e)&&(delete d.schema.examples,delete d.schema.default),t.io==="input"&&"_prefault"in d.schema&&((a=d.schema).default??(a.default=d.schema._prefault)),delete d.schema._prefault,t.seen.get(e).schema}function qf(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function yt(e,t){let i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let a=new Map;for(let d of e.seen.entries()){let p=e.metadataRegistry.get(d[0])?.id;if(p){let f=a.get(p);if(f&&f!==d[0])throw new Error(`Duplicate schema id "${p}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(p,d[0])}}let o=d=>{let p=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let b=e.external.registry.get(d[0])?.id,S=e.external.uri??(O=>O);if(b)return{ref:S(b)};let R=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=R,{defId:R,ref:`${S("__shared")}#/${p}/${qf(R)}`}}let f="#",m=`${f}/${p}/`;if(d[1]===i&&!d[1].schema.id)return{ref:f};let g=d[1].schema.id??`__schema${e.counter++}`;return{defId:g,ref:m+qf(g)}},r=d=>{if(d[1].schema.$ref)return;let p=d[1],{ref:f,defId:m}=o(d);p.def={...p.schema},m&&(p.defId=m);let g=p.schema;for(let b in g)delete g[b];g.$ref=f};if(e.cycles==="throw")for(let d of e.seen.entries()){let p=d[1];if(p.cycle)throw new Error(`Cycle detected: #/${p.cycle?.join("/")}/<root>
|
|
77
77
|
|
|
78
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){n(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){n(a);continue}}if(e.metadataRegistry.get(a[0])?.id){n(a);continue}if(s.cycle){n(a);continue}s.count>1&&e.reused==="ref"&&n(a)}e.external&&(e.sharedDefsExtractedFor=e.external)}function np(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let i=[];for(let o of t){if(!o||typeof o!="object")return;np(o);let r=Object.keys(o);if(r.length!==1||r[0]!=="type")return;let n=o.type;for(let a of Array.isArray(n)?n:[n]){if(typeof a!="string")return;i.includes(a)||i.push(a)}}delete e.anyOf,e.type=i.length===1?i[0]:i}var ip=new Set(["type","properties","required","additionalProperties"]),tp=["oneOf","anyOf"];function rp(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function bu(e){let t=[];for(let n of e){if(typeof n!="object"||n.type!=="object")return null;for(let a in n)if(!ip.has(a))return null;t.push(n)}let i={},o=new Set;for(let n of t){for(let a in n.properties){if(Object.prototype.hasOwnProperty.call(i,a))continue;let s=[];for(let c of t){let l=c.properties?.[a]??rp(c);l!=null&&(s.some(d=>JSON.stringify(d)===JSON.stringify(l))||s.push(l))}let u=s.length===1?s[0]:bu(s)??{allOf:s};ae(i,a,u)}for(let a of n.required??[])o.add(a)}let r={type:"object",properties:i};if(o.size&&(r.required=[...o]),t.every(n=>n.additionalProperties===!1))r.additionalProperties=!1;else{let n=[];for(let a of t){let s=rp(a);s&&!n.some(u=>JSON.stringify(u)===JSON.stringify(s))&&n.push(s)}n.length===1?r.additionalProperties=n[0]:n.length>1&&(r.additionalProperties={allOf:n})}return r}function Ob(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let r of ip)if(r in e)return;let i=t.filter(r=>tp.some(n=>Array.isArray(r[n]))),o=null;if(!i.length)o=bu(t);else{let r=i[0],n=tp.find(u=>Array.isArray(r[u]));if(Object.keys(r).length!==1)return;let a=t.filter(u=>u!==r),s=r[n].map(u=>bu([...a,u]));if(s.some(u=>!u))return;o={[n]:s}}o&&(delete e.allOf,Wr(e,o))}function He(e,t){let i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let u=e.seen.get(s);if(u.ref===null)return;let c=u.def??u.schema,l={...c},d=u.ref;if(u.ref=null,d){o(d);let f=e.seen.get(d),v=f.schema;if(v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(v)):Wr(c,v),Wr(c,l),s._zod.parent===d)for(let b in c)b==="$ref"||b==="allOf"||b in l||delete c[b];if(v.$ref&&f.def)for(let b in c)b==="$ref"||b==="allOf"||b in f.def&&JSON.stringify(c[b])===JSON.stringify(f.def[b])&&delete c[b]}let m=s._zod.parent;if(m&&m!==d){o(m);let f=e.seen.get(m);if(f?.schema.$ref&&(c.$ref=f.schema.$ref,f.def))for(let v in c)v==="$ref"||v==="allOf"||v in f.def&&JSON.stringify(c[v])===JSON.stringify(f.def[v])&&delete c[v]}e.override({zodSchema:s,jsonSchema:c,path:u.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())o(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())np(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let u of e.seen.values())for(let c of[u.schema,u.def]){let l=c?.allOf;if(!Array.isArray(l))continue;let d=s.get(l);d?d.push(c):s.set(l,[c])}for(let u of e.intersections)for(let c of s.get(u)??[])Ob(c)}}let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Wr(r,i.defId?i.schema:i.def??i.schema);let n=e.metadataRegistry.get(t)?.id;n!==void 0&&r.id===n&&delete r.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let u=s[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,ae(a,u.defId,u.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ht(t,"input",e.processors),output:Ht(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function fe(e,t){let i=t??{seen:new Set};if(i.seen.has(e))return!1;i.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return fe(o.element,i);if(o.type==="set")return fe(o.valueType,i);if(o.type==="lazy")return fe(o.getter(),i);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault"||o.type==="catch")return fe(o.innerType,i);if(o.type==="intersection")return fe(o.left,i)||fe(o.right,i);if(o.type==="record"||o.type==="map")return fe(o.keyType,i)||fe(o.valueType,i);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:fe(o.in,i)||fe(o.out,i);if(o.type==="object"){for(let r in o.shape)if(fe(o.shape[r],i))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(fe(r,i))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(fe(r,i))return!0;return!!(o.rest&&fe(o.rest,i))}return!1}var ku=(e,t={})=>i=>{let o=qe({...i,processors:t});return J(e,o),Xe(o,e),He(o,e)},Ht=(e,t,i={})=>o=>{let{libraryOptions:r,target:n}=o??{},a=qe({...r??{},target:n,io:t,processors:i});return J(e,a),Xe(a,e),He(a,e)};var Yt=(e,t,i)=>{(e[t]===void 0||i>e[t])&&(e[t]=i)},Qt=(e,t,i)=>{(e[t]===void 0||i<e[t])&&(e[t]=i)},op=(e,t)=>{Yt(e,"minimum",t),Qt(e,"maximum",t)},up=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},lp=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},dp=(e,t)=>{e.mime=e.mime?e.mime.filter(i=>t.includes(i)):[...t]},mp=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},ap=(e,t)=>Yt(e,"minimum",t.minimum),sp=(e,t)=>Qt(e,"maximum",t.maximum),cp=e=>(t,i)=>{mp(t,i.format);let[o,r]=e[i.format];Yt(t,"minimum",o),Qt(t,"maximum",r)},Eb={greater_than:(e,t)=>Yt(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Qt(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>up(e,t.value),number_format:cp(gr),bigint_format:cp(vr),min_length:ap,max_length:sp,length_equals:(e,t)=>op(e,t.length),min_size:ap,max_size:sp,size_equals:(e,t)=>op(e,t.size),string_format:(e,t)=>{mp(e,t.format),t.pattern&&lp(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>dp(e,t.mime)};function re(e){let t={},i=e._zod.def,o=e._zod.traits.has("$ZodCheck")?[e,...i.checks??[]]:i.checks??[];for(let n of o)Eb[n._zod.def.check]?.(t,n._zod.def);let r=e._zod.bag;r.minimum!==void 0&&Yt(t,"minimum",r.minimum),r.exclusiveMinimum!==void 0&&Yt(t,"exclusiveMinimum",r.exclusiveMinimum),r.maximum!==void 0&&Qt(t,"maximum",r.maximum),r.exclusiveMaximum!==void 0&&Qt(t,"exclusiveMaximum",r.exclusiveMaximum),r.multipleOf!==void 0&&up(t,r.multipleOf),r.format!==void 0&&(t.format??(t.format=r.format),r.format.includes("int")&&(t.isInt=!0)),r.mime&&dp(t,r.mime);for(let n of r.patterns??[])lp(t,n);return t}var Ub={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Db=new Map([[Yn,Oa],[Ur,Ea]]),fp=e=>Db.get(e)??e,Iu=(e,t,i,o)=>{let r=i;r.type="string";let{minimum:n,maximum:a,format:s,patterns:u,contentEncoding:c,laxFormat:l}=re(e);if(typeof n=="number"&&(r.minLength=n),typeof a=="number"&&(r.maxLength=a),s&&(r.format=Ub[s]??s,r.format===""&&delete r.format,(s==="time"||l)&&delete r.format),c&&(r.contentEncoding=c),u&&u.size>0){let d=[...u].map(fp);d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Su=(e,t,i,o)=>{let r=i,{minimum:n,maximum:a,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c,isInt:l}=re(e);r.type=l?"integer":"number";let d=typeof c=="number"&&c>=(n??Number.NEGATIVE_INFINITY),m=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";if(d?f?(r.minimum=c,r.exclusiveMinimum=!0):r.exclusiveMinimum=c:typeof n=="number"&&(r.minimum=n),m?f?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u:typeof a=="number"&&(r.maximum=a),s){let v=new Set;for(let E of s)Number.isFinite(E)&&E!==0?v.add(Math.abs(E)):te(e,t,r,o,`A multipleOf divisor of ${E} cannot be represented in JSON Schema`);let[h,...b]=v;h!==void 0&&(r.multipleOf=h),b.length&&(r.allOf=[...r.allOf??[],...b.map(E=>({multipleOf:E}))])}},zu=(e,t,i,o)=>{i.type="boolean"},ju=(e,t,i,o)=>{te(e,t,i,o,"BigInt cannot be represented in JSON Schema")},Pu=(e,t,i,o)=>{te(e,t,i,o,"Symbols cannot be represented in JSON Schema")},Ou=(e,t,i,o)=>{t.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},Eu=(e,t,i,o)=>{te(e,t,i,o,"Undefined cannot be represented in JSON Schema")},Uu=(e,t,i,o)=>{te(e,t,i,o,"Void cannot be represented in JSON Schema")},Du=(e,t,i,o)=>{i.not={}},Au=(e,t,i,o)=>{},Nu=(e,t,i,o)=>{},Tu=(e,t,i,o)=>{te(e,t,i,o,"Date cannot be represented in JSON Schema")},Cu=(e,t,i,o)=>{let r=e._zod.def,n=wt(r.entries);if(n.length===0){i.not={};return}n.every(a=>typeof a=="number")&&(i.type="number"),n.every(a=>typeof a=="string")&&(i.type="string"),i.enum=n},Ru=(e,t,i,o)=>{let r=e._zod.def;if(r.values.length===0){i.not={};return}let n=[];for(let a of r.values)if(a===void 0){if(te(e,t,i,o,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(te(e,t,i,o,"BigInt literals cannot be represented in JSON Schema"))return;n.push(Number(a))}else n.push(a);if(n.length!==0)if(n.length===1){let a=n[0];i.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?i.enum=[a]:i.const=a}else n.every(a=>typeof a=="number")&&(i.type="number"),n.every(a=>typeof a=="string")&&(i.type="string"),n.every(a=>typeof a=="boolean")&&(i.type="boolean"),n.every(a=>a===null)&&(i.type="null"),i.enum=n},Zu=(e,t,i,o)=>{te(e,t,i,o,"NaN cannot be represented in JSON Schema")},Lu=(e,t,i,o)=>{let r=i,n=e._zod.pattern;if(!n)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=n.source},Fu=(e,t,i,o)=>{let r=i;r.type="string",r.format="binary",r.contentEncoding="binary";let{minimum:n,maximum:a,mime:s}=re(e);n!==void 0&&(r.minLength=n),a!==void 0&&(r.maxLength=a),s&&(s.length===0?r.not={}:s.length===1?r.contentMediaType=s[0]:r.anyOf=s.map(u=>({contentMediaType:u})))},Mu=(e,t,i,o)=>{i.type="boolean"},Vu=(e,t,i,o)=>{te(e,t,i,o,"Custom types cannot be represented in JSON Schema")},Ju=(e,t,i,o)=>{te(e,t,i,o,"Function types cannot be represented in JSON Schema")},Bu=(e,t,i,o)=>{te(e,t,i,o,"Transforms cannot be represented in JSON Schema")},Ku=(e,t,i,o)=>{te(e,t,i,o,"Map cannot be represented in JSON Schema")},Wu=(e,t,i,o)=>{te(e,t,i,o,"Set cannot be represented in JSON Schema")},Gu=(e,t,i,o)=>{let r=i,n=e._zod.def,{minimum:a,maximum:s}=re(e);typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=J(n.element,t,{...o,path:[...o.path,"items"]})};function Gr(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Gr(t.out):t.type==="catch"?Gr(t.innerType):e._zod.optin}var qu=(e,t,i,o)=>{let r=i,n=e._zod.def,a=n.shape;if(Object.getOwnPropertySymbols(a).length&&te(e,t,r,o,"Symbol keys cannot be represented in JSON Schema"))return;r.type="object",r.properties={};for(let c in a)ae(r.properties,c,J(a[c],t,{...o,path:[...o.path,"properties",c]}));let u=[];for(let c of Object.keys(a)){let l=n.shape[c];(t.io==="input"?Gr(l)===void 0:l._zod.optout===void 0)&&u.push(c)}u.length>0&&(r.required=u),n.catchall?._zod.def.type==="never"?r.additionalProperties=!1:n.catchall?n.catchall&&(r.additionalProperties=J(n.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},qi=(e,t,i,o)=>{let r=e._zod.def,n=r.inclusive===!1,a=r.options.map((s,u)=>J(s,t,{...o,path:[...o.path,n?"oneOf":"anyOf",u]}));n?i.oneOf=a:i.anyOf=a},Xu=(e,t,i,o)=>{let r=e._zod.def,n=J(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=J(r.right,t,{...o,path:[...o.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(n)?n.allOf:[n],...s(a)?a.allOf:[a]];i.allOf=u,t.intersections.push(u)},Hu=(e,t,i,o)=>{let r=i,n=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=n.items.map((h,b)=>J(h,t,{...o,path:[...o.path,a,b]})),c=n.rest?J(n.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[n.items.length]:[]]}):null,l=n.items.length;for(;l>0;){let h=n.items[l-1];if(!(t.io==="input"?Gr(h)!==void 0:h._zod.optout==="optional"))break;l--}let d=n.items.length,m=!n.rest;t.target==="draft-2020-12"?(r.prefixItems=u,m?r.items=!1:c&&(r.items=c),l>0&&(r.minItems=l),m&&(r.maxItems=d)):t.target==="openapi-3.0"?(r.items={anyOf:u},c&&r.items.anyOf.push(c),l>0&&(r.minItems=l),m&&(r.maxItems=d)):(r.items=u,m?r.additionalItems=!1:c&&(r.additionalItems=c),l>0&&(r.minItems=l),m&&(r.maxItems=d));let{minimum:f,maximum:v}=re(e);typeof f=="number"&&(r.minItems=f),typeof v=="number"&&(r.maxItems=v)};function xu(e,t,i){if(t.$ref){if(i.has(t))return t;i.add(t);let v=e.get(t)?.def;if(!v)return t;let h=xu(e,v,i);return h===v?t:h}for(let v of["anyOf","oneOf"]){let h=t[v];if(!Array.isArray(h))continue;let b=h.map(E=>xu(e,E,i));b.some((E,z)=>E!==h[z])&&(t={...t,[v]:b})}let o=Array.isArray(t.type)?t.type:[t.type],r=!o.includes("string")&&o.some(v=>v==="number"||v==="integer"),n=t.enum??(t.const!==void 0?[t.const]:void 0);if(!r&&!n?.some(v=>typeof v=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:u,exclusiveMaximum:c,multipleOf:l,format:d,id:m,...f}=t;return f.enum?f.enum=f.enum.map(v=>typeof v=="number"?String(v):v):typeof f.const=="number"&&(f.const=String(f.const)),r&&(f.type="string",n||(f.pattern=(o.includes("number")?Ze:Ir).source)),f}var wu=new WeakMap;function Ab(e){let t=new Map;for(let o of e.seen.values())o.def&&!t.has(o.schema)&&t.set(o.schema,o);let i=new Map;for(let o of wu.get(e)??[]){let r=e.seen.get(o),n=(r?.def??r?.schema)?.propertyNames;if(!n||n===!0||i.has(n))continue;let a=xu(t,n,new Set);a!==n&&i.set(n,a)}if(i.size)for(let o of e.seen.values())for(let r of[o.schema,o.def]){let n=r&&i.get(r.propertyNames);n&&(r.propertyNames=n)}}var Yu=(e,t,i,o)=>{let r=i,n=e._zod.def;r.type="object";let a=n.keyType,s=re(a).patterns;if(n.mode==="loose"&&s&&s.size>0){let l=J(n.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let d of s)ae(r.patternProperties,fp(d).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){r.propertyNames=J(n.keyType,t,{...o,path:[...o.path,"propertyNames"]});let l=wu.get(t);l||(l=[],wu.set(t,l),t.deferred.push(()=>Ab(t))),l.push(e)}r.additionalProperties=J(n.valueType,t,{...o,path:[...o.path,"additionalProperties"]})}let u=a._zod.values,c=t.io==="input"&&Gr(n.valueType)!==void 0;if(u&&!n.partial&&!c){let l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(r.required=l.map(String))}},Qu=(e,t,i,o)=>{let r=e._zod.def,n=J(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,i.nullable=!0):i.anyOf=[n,{type:"null"}]},el=(e,t,i,o)=>{let r=e._zod.def;J(r.innerType,t,o);let n=t.seen.get(e);n.ref=r.innerType},tl=Symbol();function pp(e,t,i,o,r){let n=!1,a=JSON.stringify(e,(s,u)=>typeof u!="bigint"?u:(n=!0,null));return n?(te(t,i,o,r,"BigInt defaults cannot be represented in JSON Schema"),tl):JSON.parse(a)}var rl=(e,t,i,o)=>{let r=e._zod.def;J(r.innerType,t,o);let n=t.seen.get(e);n.ref=r.innerType;let a=pp(r.defaultValue,e,t,i,o);a!==tl&&(i.default=a)},nl=(e,t,i,o)=>{let r=e._zod.def;J(r.innerType,t,o);let n=t.seen.get(e);if(n.ref=r.innerType,t.io!=="input")return;let a=pp(r.defaultValue,e,t,i,o);a!==tl&&(i._prefault=a)},il=(e,t,i,o)=>{let r=e._zod.def;J(r.innerType,t,o);let n=t.seen.get(e);n.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{te(e,t,i,o,"Dynamic catch values are not supported in JSON Schema");return}i.default=a},ol=(e,t,i,o)=>{let r=e._zod.def,n=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?n?r.out:r.in:r.out;J(a,t,o);let s=t.seen.get(e);s.ref=a},al=(e,t,i,o)=>{let r=e._zod.def;J(r.innerType,t,o);let n=t.seen.get(e);n.ref=r.innerType,i.readOnly=!0},sl=(e,t,i,o)=>{let r=e._zod.def;J(r.innerType,t,o);let n=t.seen.get(e);n.ref=r.innerType},Xi=(e,t,i,o)=>{let r=e._zod.def;J(r.innerType,t,o);let n=t.seen.get(e);n.ref=r.innerType},cl=(e,t,i,o)=>{let r=e._zod.innerType;J(r,t,o);let n=t.seen.get(e);n.ref=r},Gi={string:Iu,number:Su,boolean:zu,bigint:ju,symbol:Pu,null:Ou,undefined:Eu,void:Uu,never:Du,any:Au,unknown:Nu,date:Tu,enum:Cu,literal:Ru,nan:Zu,template_literal:Lu,file:Fu,success:Mu,custom:Vu,function:Ju,transform:Bu,map:Ku,set:Wu,array:Gu,object:qu,union:qi,intersection:Xu,tuple:Hu,record:Yu,nullable:Qu,nonoptional:el,default:rl,prefault:nl,catch:il,pipe:ol,readonly:al,promise:sl,optional:Xi,lazy:cl};function Hi(e,t){if("_idmap"in e){let o=e,r=qe({...t,processors:Gi}),n={};for(let u of o._idmap.entries()){let[c,l]=u;J(l,r)}let a={},s={registry:o,uri:t?.uri,defs:n};r.external=s;for(let u of o._idmap.entries()){let[c,l]=u;Xe(r,l),ae(a,c,He(r,l))}if(Object.keys(n).length>0){let u=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:n}}return{schemas:a}}let i=qe({...t,processors:Gi});return J(e,i),Xe(i,e),He(i,e)}var Yi=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let i=t?.target??"draft-2020-12";i==="draft-4"&&(i="draft-04"),i==="draft-7"&&(i="draft-07"),this.ctx=qe({processors:Gi,target:i,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,i={path:[],schemaPath:[]}){return J(t,this.ctx,i)}emit(t,i){i&&(i.cycles&&(this.ctx.cycles=i.cycles),i.reused&&(this.ctx.reused=i.reused),i.external&&(this.ctx.external=i.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Xe(this.ctx,t);let o=He(this.ctx,t),{"~standard":r,...n}=o;return n}};var gp={};var sr={};Te(sr,{ZodAny:()=>Ol,ZodArray:()=>Al,ZodBase64:()=>$o,ZodBase64URL:()=>yo,ZodBigInt:()=>or,ZodBigIntFormat:()=>ko,ZodBoolean:()=>ir,ZodCIDRv4:()=>vo,ZodCIDRv6:()=>ho,ZodCUID:()=>co,ZodCUID2:()=>uo,ZodCatch:()=>td,ZodCodec:()=>on,ZodCreditCard:()=>kl,ZodCustom:()=>an,ZodCustomStringFormat:()=>yt,ZodDate:()=>Yr,ZodDefault:()=>ql,ZodDiscriminatedUnion:()=>Tl,ZodE164:()=>_o,ZodEmail:()=>io,ZodEmoji:()=>ao,ZodEnum:()=>tr,ZodExactOptional:()=>So,ZodFile:()=>Bl,ZodFunction:()=>dd,ZodGUID:()=>oo,ZodIBAN:()=>xl,ZodIPv4:()=>po,ZodIPv6:()=>go,ZodISODate:()=>Qe,ZodISODateTime:()=>Ye,ZodISODuration:()=>tt,ZodISOTime:()=>et,ZodInstanceOf:()=>pd,ZodIntersection:()=>Cl,ZodJWT:()=>bo,ZodKSUID:()=>fo,ZodLazy:()=>cd,ZodLiteral:()=>Jl,ZodMAC:()=>bl,ZodMap:()=>Ml,ZodNaN:()=>nd,ZodNanoID:()=>so,ZodNever:()=>Ul,ZodNonOptional:()=>zo,ZodNull:()=>jl,ZodNullable:()=>Gl,ZodNumber:()=>nr,ZodNumberFormat:()=>_t,ZodObject:()=>en,ZodOptional:()=>rn,ZodPipe:()=>nn,ZodPrefault:()=>Hl,ZodPreprocess:()=>id,ZodPromise:()=>ld,ZodReadonly:()=>od,ZodRecord:()=>er,ZodSet:()=>Vl,ZodString:()=>rr,ZodStringFormat:()=>K,ZodSuccess:()=>ed,ZodSymbol:()=>Sl,ZodTemplateLiteral:()=>sd,ZodTransform:()=>Kl,ZodTuple:()=>Zl,ZodType:()=>C,ZodULID:()=>lo,ZodURL:()=>Hr,ZodUUID:()=>Ne,ZodUndefined:()=>zl,ZodUnion:()=>tn,ZodUnknown:()=>El,ZodVoid:()=>Dl,ZodXID:()=>mo,ZodXor:()=>Nl,_ZodString:()=>no,_default:()=>Xl,_function:()=>zg,any:()=>ig,array:()=>Qr,base64:()=>Rp,base64url:()=>Zp,bigint:()=>Qp,boolean:()=>Il,catch:()=>rd,check:()=>jg,cidrv4:()=>Tp,cidrv6:()=>Cp,codec:()=>xg,creditCard:()=>Fp,cuid:()=>jp,cuid2:()=>Pp,currencyCode:()=>Wp,custom:()=>Pg,date:()=>ag,describe:()=>Og,discriminatedUnion:()=>mg,e164:()=>Lp,email:()=>$p,emoji:()=>Sp,enum:()=>wo,exactOptional:()=>Wl,file:()=>yg,float32:()=>qp,float64:()=>Xp,function:()=>zg,guid:()=>yp,hash:()=>Gp,hex:()=>Kp,hostname:()=>Bp,httpUrl:()=>Ip,iban:()=>Mp,instanceof:()=>Ug,int:()=>to,int32:()=>Hp,int64:()=>eg,intersection:()=>Rl,invertCodec:()=>wg,ipv4:()=>Dp,ipv6:()=>Np,json:()=>Ag,jwt:()=>Vp,keyof:()=>sg,ksuid:()=>Up,lazy:()=>ud,literal:()=>$g,looseObject:()=>lg,looseRecord:()=>pg,mac:()=>Ap,map:()=>gg,meta:()=>Eg,nan:()=>kg,nanoid:()=>zp,nativeEnum:()=>hg,never:()=>xo,nonoptional:()=>Ql,null:()=>Pl,nullable:()=>Xr,nullish:()=>_g,number:()=>wl,object:()=>cg,optional:()=>ht,partialRecord:()=>fg,pipe:()=>ro,prefault:()=>Yl,preprocess:()=>Ng,promise:()=>Sg,readonly:()=>ad,record:()=>Fl,refine:()=>md,set:()=>vg,strictObject:()=>ug,string:()=>qr,stringFormat:()=>Jp,stringbool:()=>Dg,success:()=>bg,superRefine:()=>fd,symbol:()=>rg,templateLiteral:()=>Ig,transform:()=>Io,tuple:()=>Ll,uint32:()=>Yp,uint64:()=>tg,ulid:()=>Op,undefined:()=>ng,union:()=>ar,unknown:()=>vt,url:()=>wp,uuid:()=>_p,uuidv4:()=>bp,uuidv6:()=>kp,uuidv7:()=>xp,void:()=>og,xid:()=>Ep,xor:()=>dg});var Qi={};Te(Qi,{endsWith:()=>Vt,gt:()=>De,gte:()=>ke,includes:()=>Ft,length:()=>pt,lowercase:()=>Zt,lt:()=>Ue,lte:()=>be,maxLength:()=>ft,maxSize:()=>Ge,mime:()=>Bt,minLength:()=>Le,minSize:()=>Ae,multipleOf:()=>We,negative:()=>Ji,nonnegative:()=>Ki,nonpositive:()=>Bi,normalize:()=>Kt,overwrite:()=>Oe,positive:()=>Vi,properties:()=>Jt,property:()=>Wi,regex:()=>Rt,size:()=>mt,slugify:()=>Xt,startsWith:()=>Mt,toLowerCase:()=>Gt,toUpperCase:()=>qt,trim:()=>Wt,uppercase:()=>Lt});var vp=new WeakSet([Object.prototype,Error.prototype]);function eo(e,t,i){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let o=i(this);return Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0})}})}var hp=(e,t)=>{la.init(e,t),e.name="ZodError";let i=Object.getPrototypeOf(e);vp.has(i)||(vp.add(i),eo(i,"format",o=>r=>br(o,r)),eo(i,"flatten",o=>r=>_r(o,r)),eo(i,"addIssue",o=>r=>{o.issues.push(r),o.message=JSON.stringify(o.issues,It,2)}),eo(i,"addIssues",o=>r=>{o.issues.push(...r),o.message=JSON.stringify(o.issues,It,2)}),Object.defineProperty(i,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Tb=p("ZodError",hp),_e=p("ZodError",hp,void 0,{Parent:Error});var ul=Pt(_e),ll=Ot(_e),dl=Et(_e),ml=Ut(_e),fl=Pn(_e),pl=On(_e),gl=En(_e),vl=Un(_e),hl=Dn(_e),$l=An(_e),yl=Nn(_e),_l=Tn(_e);function Rb(){ie.localeError||H(pi())}function $t(){ie.memoizer||H({memoizer:Zr()})}var C=p("ZodType",(e,t)=>(Rb(),N.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone($.mergeDefs(t,{checks:[...t.checks??[],...e.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return M(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(md(e,t))},superRefine(e,t){return this.check(fd(e,t))},overwrite(e){return this.check(Oe(e))},optional(){return ht(this)},exactOptional(){return Wl(this)},nullable(){return Xr(this)},nullish(){return ht(Xr(this))},nonoptional(e){return Ql(this,e)},array(){return Qr(this)},or(e){return ar([this,e])},and(e){return Rl(this,e)},transform(e){return ro(this,Io(e))},default(e){return Xl(this,e)},prefault(e){return Yl(this,e)},catch(e){return rd(this,e)},pipe(e){return ro(this,e)},readonly(){return ad(this)},describe(e){let t=this.clone();return se.add(t,{description:e}),t},meta(...e){if(e.length===0)return se.get(this);let t=this.clone();return se.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return $.hide(this,"~standard",{...Wn(this),jsonSchema:{input:Ht(this,"input"),output:Ht(this,"output")}})},set"~standard"(e){$.own(this,"~standard",e)},parse:function e(t,i){return ul(this,t,i,{callee:e})},parseAsync:async function e(t,i){return await ll(this,t,i,{callee:e})},safeParse(e,t){return dl(this,e,t)},async safeParseAsync(e,t){return ml(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){$.own(this,"spa",e)},validate(e,t){return kr(this,e,t)},validateAsync(e,t){return xr(this,e,t)},encode:function e(t,i){return fl(this,t,i,{callee:e})},decode:function e(t,i){return pl(this,t,i,{callee:e})},encodeAsync:async function e(t,i){return await gl(this,t,i,{callee:e})},decodeAsync:async function e(t,i){return await vl(this,t,i,{callee:e})},safeEncode(e,t){return hl(this,e,t)},safeDecode(e,t){return $l(this,e,t)},async safeEncodeAsync(e,t){return yl(this,e,t)},async safeDecodeAsync(e,t){return _l(this,e,t)},toJSONSchema(e){return ku(this,{})(e)},get description(){return se.get(this)?.description},get _def(){return this._zod.def}}),no=p("_ZodString",(e,t)=>{st.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Iu(e,i,o,r)},$.derived({format:e=>re(e).format??null,minLength:e=>re(e).minimum??null,maxLength:e=>re(e).maximum??null},{regex(...e){return this.check(Rt(...e))},includes(...e){return this.check(Ft(...e))},startsWith(...e){return this.check(Mt(...e))},endsWith(...e){return this.check(Vt(...e))},min(...e){return this.check(Le(...e))},max(...e){return this.check(ft(...e))},length(...e){return this.check(pt(...e))},nonempty(...e){return this.check(Le(1,...e))},lowercase(e){return this.check(Zt(e))},uppercase(e){return this.check(Lt(e))},trim(){return this.check(Wt())},normalize(...e){return this.check(Kt(...e))},toLowerCase(){return this.check(Gt())},toUpperCase(){return this.check(qt())},slugify(){return this.check(Xt())}})),rr=p("ZodString",(e,t)=>{st.init(e,t),no.init(e,t)},{email(e){return this.check(ki(io,e))},url(e){return this.check(Mr(Hr,e))},jwt(e){return this.check(Mi(bo,e))},emoji(e){return this.check(ji(ao,e))},guid(e){return this.check(xi(oo,e))},uuid(e){return this.check(wi(Ne,e))},uuidv4(e){return this.check(Ii(Ne,e))},uuidv6(e){return this.check(Si(Ne,e))},uuidv7(e){return this.check(zi(Ne,e))},nanoid(e){return this.check(Pi(so,e))},cuid(e){return this.check(Oi(co,e))},cuid2(e){return this.check(Ei(uo,e))},ulid(e){return this.check(Ui(lo,e))},base64(e){return this.check(Zi($o,e))},base64url(e){return this.check(Li(yo,e))},xid(e){return this.check(Di(mo,e))},ksuid(e){return this.check(Ai(fo,e))},ipv4(e){return this.check(Ni(po,e))},ipv6(e){return this.check(Ti(go,e))},cidrv4(e){return this.check(Ci(vo,e))},cidrv6(e){return this.check(Ri(ho,e))},e164(e){return this.check(Fi(_o,e))},datetime(e){return this.check(Vr(Ye,e))},date(e){return this.check(Jr(Qe,e))},time(e){return this.check(Br(et,e))},duration(e){return this.check(Kr(tt,e))}});function qr(e){return Rc(rr,e)}var K=p("ZodStringFormat",(e,t)=>{V.init(e,t),no.init(e,t)}),Ye=p("ZodISODateTime",(e,t)=>{Os.init(e,t),K.init(e,t)}),Qe=p("ZodISODate",(e,t)=>{Es.init(e,t),K.init(e,t)}),et=p("ZodISOTime",(e,t)=>{Us.init(e,t),K.init(e,t)}),tt=p("ZodISODuration",(e,t)=>{Ds.init(e,t),K.init(e,t)}),io=p("ZodEmail",(e,t)=>{ys.init(e,t),K.init(e,t)});function $p(e){return ki(io,e)}var oo=p("ZodGUID",(e,t)=>{hs.init(e,t),K.init(e,t)});function yp(e){return xi(oo,e)}var Ne=p("ZodUUID",(e,t)=>{$s.init(e,t),K.init(e,t)});function _p(e){return wi(Ne,e)}function bp(e){return Ii(Ne,e)}function kp(e){return Si(Ne,e)}function xp(e){return zi(Ne,e)}var Hr=p("ZodURL",(e,t)=>{ks.init(e,t),K.init(e,t)});function wp(e){return Mr(Hr,e)}function Ip(e){return Mr(Hr,{protocol:wr,hostname:Da,...$.normalizeParams(e)})}var ao=p("ZodEmoji",(e,t)=>{xs.init(e,t),K.init(e,t)});function Sp(e){return ji(ao,e)}var so=p("ZodNanoID",(e,t)=>{ws.init(e,t),K.init(e,t)});function zp(e){return Pi(so,e)}var co=p("ZodCUID",(e,t)=>{Is.init(e,t),K.init(e,t)});function jp(e){return Oi(co,e)}var uo=p("ZodCUID2",(e,t)=>{Ss.init(e,t),K.init(e,t)});function Pp(e){return Ei(uo,e)}var lo=p("ZodULID",(e,t)=>{zs.init(e,t),K.init(e,t)});function Op(e){return Ui(lo,e)}var mo=p("ZodXID",(e,t)=>{js.init(e,t),K.init(e,t)});function Ep(e){return Di(mo,e)}var fo=p("ZodKSUID",(e,t)=>{Ps.init(e,t),K.init(e,t)});function Up(e){return Ai(fo,e)}var po=p("ZodIPv4",(e,t)=>{As.init(e,t),K.init(e,t)});function Dp(e){return Ni(po,e)}var bl=p("ZodMAC",(e,t)=>{Ts.init(e,t),K.init(e,t)});function Ap(e){return Lc(bl,e)}var go=p("ZodIPv6",(e,t)=>{Ns.init(e,t),K.init(e,t)});function Np(e){return Ti(go,e)}var vo=p("ZodCIDRv4",(e,t)=>{Cs.init(e,t),K.init(e,t)});function Tp(e){return Ci(vo,e)}var ho=p("ZodCIDRv6",(e,t)=>{Rs.init(e,t),K.init(e,t)});function Cp(e){return Ri(ho,e)}var $o=p("ZodBase64",(e,t)=>{Zs.init(e,t),K.init(e,t)});function Rp(e){return Zi($o,e)}var yo=p("ZodBase64URL",(e,t)=>{Ls.init(e,t),K.init(e,t)});function Zp(e){return Li(yo,e)}var _o=p("ZodE164",(e,t)=>{Fs.init(e,t),K.init(e,t)});function Lp(e){return Fi(_o,e)}var kl=p("ZodCreditCard",(e,t)=>{Ms.init(e,t),K.init(e,t)});function Fp(e){return Fc(kl,e)}var xl=p("ZodIBAN",(e,t)=>{Vs.init(e,t),K.init(e,t)});function Mp(e){return Mc(xl,e)}var bo=p("ZodJWT",(e,t)=>{Js.init(e,t),K.init(e,t)});function Vp(e){return Mi(bo,e)}var yt=p("ZodCustomStringFormat",(e,t)=>{Bs.init(e,t),K.init(e,t)});function Jp(e,t,i={}){return gt(yt,e,t,i)}function Bp(e){return gt(yt,"hostname",Ua,e)}function Kp(e){return gt(yt,"hex",Wa,e)}function Wp(e){return gt(yt,"currency_code",Na,e)}function Gp(e,t){let i=t?.enc??"hex",o=`${e}_${i}`,r=Se[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return gt(yt,o,r,t)}var nr=p("ZodNumber",(e,t)=>{ni.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Su(e,i,o,r),e.isFinite=!0},$.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:i}=re(e);return Math.max(t??Number.NEGATIVE_INFINITY,i??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:i}=re(e);return Math.min(t??Number.POSITIVE_INFINITY,i??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:i}=re(e);return!!t||!!i?.some(Number.isSafeInteger)},format:e=>re(e).format??null},{gt(e,t){return this.check(De(e,t))},gte(e,t){return this.check(ke(e,t))},min(e,t){return this.check(ke(e,t))},lt(e,t){return this.check(Ue(e,t))},lte(e,t){return this.check(be(e,t))},max(e,t){return this.check(be(e,t))},int(e){return this.check(to(e))},safe(e){return this.check(to(e))},positive(e){return this.check(De(0,e))},nonnegative(e){return this.check(ke(0,e))},negative(e){return this.check(Ue(0,e))},nonpositive(e){return this.check(be(0,e))},multipleOf(e,t){return this.check(We(e,t))},step(e,t){return this.check(We(e,t))},finite(){return this}}));function wl(e){return Jc(nr,e)}var _t=p("ZodNumberFormat",(e,t)=>{Ks.init(e,t),nr.init(e,t)});function to(e){return Kc(_t,e)}function qp(e){return Wc(_t,e)}function Xp(e){return Gc(_t,e)}function Hp(e){return qc(_t,e)}function Yp(e){return Xc(_t,e)}var ir=p("ZodBoolean",(e,t)=>{Dr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>zu(e,i,o,r)});function Il(e){return Hc(ir,e)}var or=p("ZodBigInt",(e,t)=>{ii.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>ju(e,i,o,r)},$.derived({minValue:e=>re(e).minimum??null,maxValue:e=>re(e).maximum??null,format:e=>re(e).format??null},{gte(e,t){return this.check(ke(e,t))},min(e,t){return this.check(ke(e,t))},gt(e,t){return this.check(De(e,t))},lt(e,t){return this.check(Ue(e,t))},lte(e,t){return this.check(be(e,t))},max(e,t){return this.check(be(e,t))},positive(e){return this.check(De(BigInt(0),e))},negative(e){return this.check(Ue(BigInt(0),e))},nonpositive(e){return this.check(be(BigInt(0),e))},nonnegative(e){return this.check(ke(BigInt(0),e))},multipleOf(e,t){return this.check(We(e,t))}}));function Qp(e){return Qc(or,e)}var ko=p("ZodBigIntFormat",(e,t)=>{Ws.init(e,t),or.init(e,t)});function eg(e){return tu(ko,e)}function tg(e){return ru(ko,e)}var Sl=p("ZodSymbol",(e,t)=>{Gs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Pu(e,i,o,r)});function rg(e){return nu(Sl,e)}var zl=p("ZodUndefined",(e,t)=>{qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Eu(e,i,o,r)});function ng(e){return iu(zl,e)}var jl=p("ZodNull",(e,t)=>{Xs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Ou(e,i,o,r)});function Pl(e){return ou(jl,e)}var Ol=p("ZodAny",(e,t)=>{Hs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Au(e,i,o,r)});function ig(){return au(Ol)}var El=p("ZodUnknown",(e,t)=>{Ys.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Nu(e,i,o,r)});function vt(){return su(El)}var Ul=p("ZodNever",(e,t)=>{Qs.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Du(e,i,o,r)});function xo(e){return cu(Ul,e)}var Dl=p("ZodVoid",(e,t)=>{ec.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Uu(e,i,o,r)});function og(e){return uu(Dl,e)}var Yr=p("ZodDate",(e,t)=>{tc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Tu(e,i,o,r),e.min=(i,o)=>e.check(ke(i,o)),e.max=(i,o)=>e.check(be(i,o))},$.derived({minDate:e=>{let{minimum:t}=re(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=re(e);return t?new Date(t):null}},{}));function ag(e){return lu(Yr,e)}var Al=p("ZodArray",(e,t)=>{$t(),rc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Gu(e,i,o,r),e.element=t.element},{min(e,t){return this.check(Le(e,t))},nonempty(e){return this.check(Le(1,e))},max(e,t){return this.check(ft(e,t))},length(e,t){return this.check(pt(e,t))},unwrap(){return this.element}});function Qr(e,t){return fu(Al,e,t)}function sg(e){let t=e._zod.def.shape;return wo(Object.keys(t))}var en=p("ZodObject",(e,t)=>{$t(),nc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>qu(e,i,o,r),$.installLazyProp(e,"shape",i=>i._zod.def.shape,!1)},{keyof(){return wo(Object.keys(this._zod.def.shape))},catchall(e){return this.clone($.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone($.mergeDefs(this._zod.def,{catchall:vt()}))},loose(){return this.clone($.mergeDefs(this._zod.def,{catchall:vt()}))},strict(){return this.clone($.mergeDefs(this._zod.def,{catchall:xo()}))},strip(){return this.clone($.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return $.extend(this,e)},safeExtend(e){return $.safeExtend(this,e)},merge(e){return $.merge(this,e)},pick(e){return $.pick(this,e)},omit(e){return $.omit(this,e)},partial(...e){return $.partial(rn,this,e[0])},exactPartial(...e){return $.partial(So,this,e[0],"exactPartial")},required(...e){return $.required(zo,this,e[0])}});function cg(e,t){let i={type:"object",shape:e??{},...$.normalizeParams(t)};return new en(i)}function ug(e,t){return new en({type:"object",shape:e,catchall:xo(),...$.normalizeParams(t)})}function lg(e,t){return new en({type:"object",shape:e,catchall:vt(),...$.normalizeParams(t)})}var tn=p("ZodUnion",(e,t)=>{Ar.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>qi(e,i,o,r),e.options=t.options});function ar(e,t){return new tn({type:"union",options:e,...$.normalizeParams(t)})}var Nl=p("ZodXor",(e,t)=>{tn.init(e,t),ic.init(e,t),e._zod.processJSONSchema=(i,o,r)=>qi(e,i,o,r),e.options=t.options});function dg(e,t){return new Nl({type:"union",options:e,inclusive:!1,...$.normalizeParams(t)})}var Tl=p("ZodDiscriminatedUnion",(e,t)=>{tn.init(e,t),ac.init(e,t)});function mg(e,t,i){return new Tl({type:"union",options:t,discriminator:e,...$.normalizeParams(i)})}var Cl=p("ZodIntersection",(e,t)=>{sc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Xu(e,i,o,r)});function Rl(e,t){return new Cl({type:"intersection",left:e,right:t})}var Zl=p("ZodTuple",(e,t)=>{$t(),oi.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Hu(e,i,o,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new rn({type:"optional",innerType:t}))})}});function Ll(e,t,i){let o=t instanceof N,r=o?i:t,n=o?t:null;return new Zl({type:"tuple",items:e,rest:n,...$.normalizeParams(r)})}var er=p("ZodRecord",(e,t)=>{$t(),cc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Yu(e,i,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function Fl(e,t,i){return!t||!t._zod?new er({type:"record",keyType:qr(),valueType:e,...$.normalizeParams(t)}):new er({type:"record",keyType:e,valueType:t,...$.normalizeParams(i)})}function fg(e,t,i){return new er({type:"record",keyType:e,valueType:t,...$.normalizeParams(i),partial:!0})}function pg(e,t,i){return new er({type:"record",keyType:e,valueType:t,mode:"loose",...$.normalizeParams(i)})}var Ml=p("ZodMap",(e,t)=>{$t(),uc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Ku(e,i,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...i)=>e.check(Ae(...i)),e.nonempty=i=>e.check(Ae(1,i)),e.max=(...i)=>e.check(Ge(...i)),e.size=(...i)=>e.check(mt(...i))});function gg(e,t,i){return new Ml({type:"map",keyType:e,valueType:t,...$.normalizeParams(i)})}var Vl=p("ZodSet",(e,t)=>{$t(),lc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Wu(e,i,o,r),e.min=(...i)=>e.check(Ae(...i)),e.nonempty=i=>e.check(Ae(1,i)),e.max=(...i)=>e.check(Ge(...i)),e.size=(...i)=>e.check(mt(...i))});function vg(e,t){return new Vl({type:"set",valueType:e,...$.normalizeParams(t)})}var tr=p("ZodEnum",(e,t)=>{dc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(o,r,n)=>Cu(e,o,r,n),e.enum=t.entries,e.options=[...e._zod.values];let i=new Set(Object.keys(t.entries));e.extract=(o,r)=>{let n={};for(let a of o)if(i.has(a))n[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new tr({...t,checks:[],...$.normalizeParams(r),entries:n})},e.exclude=(o,r)=>{let n={...t.entries};for(let a of o)if(i.has(a))delete n[a];else throw new Error(`Key ${a} not found in enum`);return new tr({...t,checks:[],...$.normalizeParams(r),entries:n})}});function wo(e,t){let i=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new tr({type:"enum",entries:i,...$.normalizeParams(t)})}function hg(e,t){return new tr({type:"enum",entries:e,...$.normalizeParams(t)})}var Jl=p("ZodLiteral",(e,t)=>{mc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Ru(e,i,o,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function $g(e,t){return new Jl({type:"literal",values:Array.isArray(e)?e:[e],...$.normalizeParams(t)})}var Bl=p("ZodFile",(e,t)=>{fc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Fu(e,i,o,r),e.min=(i,o)=>e.check(Ae(i,o)),e.max=(i,o)=>e.check(Ge(i,o)),e.mime=(i,o)=>e.check(Bt(Array.isArray(i)?i:[i],o))});function yg(e){return pu(Bl,e)}var Kl=p("ZodTransform",(e,t)=>{$t(),pc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Bu(e,i,o,r),e._zod.parse=(i,o)=>{if(o.direction==="backward")throw new Ke(e.constructor.name);i.addIssue=n=>{if(typeof n=="string")i.issues.push($.issue(n,i.value,t));else{let a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=i.value),a.inst??(a.inst=e),i.issues.push($.issue(a))}};let r=t.transform(i.value,i);return r instanceof Promise?r.then(n=>(i.value=n,i)):(i.value=r,i)}});function Io(e){return new Kl({type:"transform",transform:e})}var rn=p("ZodOptional",(e,t)=>{ai.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Xi(e,i,o,r),e.unwrap=()=>e._zod.def.innerType});function ht(e){return new rn({type:"optional",innerType:e})}var So=p("ZodExactOptional",(e,t)=>{gc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Xi(e,i,o,r),e.unwrap=()=>e._zod.def.innerType});function Wl(e){return new So({type:"optional",innerType:e})}var Gl=p("ZodNullable",(e,t)=>{vc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Qu(e,i,o,r),e.unwrap=()=>e._zod.def.innerType});function Xr(e){return new Gl({type:"nullable",innerType:e})}function _g(e){return ht(Xr(e))}var ql=p("ZodDefault",(e,t)=>{hc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>rl(e,i,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Xl(e,t){return new ql({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var Hl=p("ZodPrefault",(e,t)=>{$c.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>nl(e,i,o,r),e.unwrap=()=>e._zod.def.innerType});function Yl(e,t){return new Hl({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():$.shallowClone(t)}})}var zo=p("ZodNonOptional",(e,t)=>{yc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>el(e,i,o,r),e.unwrap=()=>e._zod.def.innerType});function Ql(e,t){return new zo({type:"nonoptional",innerType:e,...$.normalizeParams(t)})}var ed=p("ZodSuccess",(e,t)=>{_c.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Mu(e,i,o,r),e.unwrap=()=>e._zod.def.innerType});function bg(e){return new ed({type:"success",innerType:e})}var td=p("ZodCatch",(e,t)=>{bc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>il(e,i,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function rd(e,t){return new td({type:"catch",innerType:e,catchValue:typeof t=="function"?t:$.constantCatch(t)})}var nd=p("ZodNaN",(e,t)=>{kc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Zu(e,i,o,r)});function kg(e){return mu(nd,e)}var nn=p("ZodPipe",(e,t)=>{si.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>ol(e,i,o,r),e.in=t.in,e.out=t.out});function ro(e,t){return new nn({type:"pipe",in:e,out:t})}var on=p("ZodCodec",(e,t)=>{nn.init(e,t),Nr.init(e,t)});function xg(e,t,i){return new on({type:"pipe",in:e,out:t,transform:i.decode,reverseTransform:i.encode})}function wg(e){let t=e._zod.def;return new on({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var id=p("ZodPreprocess",(e,t)=>{nn.init(e,t),xc.init(e,t)}),od=p("ZodReadonly",(e,t)=>{wc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>al(e,i,o,r),e.unwrap=()=>e._zod.def.innerType});function ad(e){return new od({type:"readonly",innerType:e})}var sd=p("ZodTemplateLiteral",(e,t)=>{Ic.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Lu(e,i,o,r)});function Ig(e,t){return new sd({type:"template_literal",parts:e,...$.normalizeParams(t)})}var cd=p("ZodLazy",(e,t)=>{Tr.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>cl(e,i,o,r),e.unwrap=()=>e._zod.def.getter()});function ud(e){return new cd({type:"lazy",getter:e})}var ld=p("ZodPromise",(e,t)=>{zc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>sl(e,i,o,r),e.unwrap=()=>e._zod.def.innerType});function Sg(e){return new ld({type:"promise",innerType:e})}var dd=p("ZodFunction",(e,t)=>{Sc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Ju(e,i,o,r)});function zg(e){return new dd({type:"function",input:Array.isArray(e?.input)?Ll(e?.input):e?.input??Qr(vt()),output:e?.output??vt()})}var an=p("ZodCustom",(e,t)=>{jc.init(e,t),C.init(e,t),e._zod.processJSONSchema=(i,o,r)=>Vu(e,i,o,r)});function jg(e){let t=new W({check:"custom"});return t._zod.check=e,t}function Pg(e,t){return gu(an,e??(()=>!0),t)}function md(e,t={}){return vu(an,e,t)}function fd(e,t){return hu(e,t)}var Og=$u,Eg=yu,pd=p("ZodInstanceOf",(e,t)=>{an.init(e,t)},{properties(e,t){return this.check(Jt(e,t))}});function Ug(e,t={}){let i=new pd({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...$.normalizeParams(t)});return i._zod.bag.Class=e,i._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:i,path:[...i._zod.def.path??[]]})},i}var Dg=(...e)=>_u({Codec:on,Boolean:ir,String:rr},...e);function Ag(e){let t=ud(()=>ar([qr(e),wl(),Il(),Pl(),Qr(t),Fl(qr(),t)]));return t}function Ng(e,t){return new id({type:"pipe",in:Io(e),out:t})}var Zb={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Lb(e){H({customError:e})}function Fb(){return H().customError}var gd;gd||(gd={});var sn={};Te(sn,{ZodISODate:()=>Qe,ZodISODateTime:()=>Ye,ZodISODuration:()=>tt,ZodISOTime:()=>et,date:()=>Vb,datetime:()=>Mb,duration:()=>Bb,time:()=>Jb});function Mb(e){return Vr(Ye,e)}function Vb(e){return Jr(Qe,e)}function Jb(e){return Br(et,e)}function Bb(e){return Kr(tt,e)}var j={...sr,...Qi,iso:sn},Kb=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Wb(e,t){let i=e.$schema;return i==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":i==="http://json-schema.org/draft-07/schema#"?"draft-7":i==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Tg(e,t){return e.map((i,o)=>o<t?i:i.optional())}function Gb(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function qb(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let i=e.slice(1).split("/").filter(Boolean);if(i.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(i[0]===o){let r=i[1]===void 0?void 0:Gb(i[1]);if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function Xb(e,t){return j.transform(o=>o).check(o=>{let r=o.value;if(typeof r!="object"||r===null||Array.isArray(r))return;let n=Object.getOwnPropertyNames(r);if(t.minProperties!==void 0&&n.length<t.minProperties&&o.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:r,inst:e,continue:!0}),t.maxProperties!==void 0&&n.length>t.maxProperties&&o.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:r,inst:e,continue:!0}),t.keySchema)for(let a of n){let s=t.keySchema.safeParse(a);s.success||o.issues.push({code:"invalid_key",origin:"record",issues:s.error.issues,input:a,path:[a],continue:!0})}}).pipe(e)}function vd(e,t){if(e===null)return"z";let i=typeof e;if(i!=="object"){if(i==="number"&&Number.isNaN(e))return null;let o=String(e);return`${i[0]}${o.length}:${o}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let n=[];for(let a of e){let s=vd(a,t);if(s===null)return null;n.push(s)}return`a${n.length}:[${n.join(",")}]`}let o=Object.keys(e).sort(),r=[];for(let n of o){let a=vd(e[n],t);if(a===null)return null;r.push(`${n.length}:${n}=${a}`)}return`o${r.length}:{${r.join(",")}}`}finally{t.delete(e)}}var Hb=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),Yb=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function cn(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(cn):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,i])=>Hb.has(t)?cn(i):!Yb.has(t)||typeof i!="object"||i===null?!1:Object.values(i).some(cn))}function Cg(e){return e===1?"element":"elements"}function Qb(e,t){return j.transform(o=>o).check(o=>{let r=o.value;if(Array.isArray(r)){if(t.uniqueItems===!0){let n=new Map;for(let a=0;a<r.length;a++){let s=vd(r[a],new Set);if(s===null)continue;let u=n.get(s);if(u===void 0){n.set(s,a);continue}o.issues.push({code:"custom",message:`Array items must be unique: element at index ${a} duplicates the one at index ${u}`,input:r,path:[a],continue:!0})}}if(t.containsSchema){let n=t.minContains??1,a=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,s=0;for(let u of r)if(t.containsSchema.safeParse(u).success&&++s>=a)break;s<n&&o.issues.push({code:"custom",message:`Array must contain at least ${n} matching ${Cg(n)}; found ${s}`,input:r,continue:!0}),t.maxContains!==void 0&&s>t.maxContains&&o.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${Cg(t.maxContains)}`,input:r,continue:!0})}}}).pipe(e)}function Rg(e,t){if(e!==!1)return e===void 0||e===!0?j.any():pe(e,t)}var ek=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function Zg(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return j.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return j.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let n=qb(r,t),a=pe(n,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return j.null();if(r.length===0)return j.never();if(r.length===1)return j.literal(r[0]);if(r.every(a=>typeof a=="string"))return j.enum(r);let n=r.map(a=>j.literal(a));return n.length<2?n[0]:j.union([n[0],n[1],...n.slice(2)])}if(e.const!==void 0)return j.literal(e.const);let i=e.type;if(Array.isArray(i)){let r=i.map(n=>{let a={...e,type:n};return Zg(a,t)});return r.length===0?j.never():r.length===1?r[0]:j.union(r)}if(!i)return j.any();let o;switch(i){case"string":{let r=j.string();if(e.format){let n=e.format;n==="email"?r=r.check(j.email()):n==="uri"||n==="uri-reference"?r=r.check(j.url()):n==="uuid"||n==="guid"?r=r.check(j.uuid()):n==="date-time"?r=r.check(j.iso.datetime({offset:!0})):n==="date"?r=r.check(j.iso.date()):n==="time"?r=r.check(j.regex(ek)):n==="duration"?r=r.check(j.iso.duration()):n==="hostname"?r=r.check(j.hostname()):n==="ipv4"?r=r.check(j.ipv4()):n==="ipv6"?r=r.check(j.ipv6()):n==="mac"?r=r.check(j.mac()):n==="cidr"?r=r.check(j.cidrv4()):n==="cidr-v6"?r=r.check(j.cidrv6()):n==="base64"?r=r.check(j.base64()):n==="base64url"?r=r.check(j.base64url()):n==="e164"?r=r.check(j.e164()):n==="credit_card"?r=r.check(j.creditCard()):n==="iban"?r=r.check(j.iban()):n==="jwt"?r=r.check(j.jwt()):n==="emoji"?r=r.check(j.emoji()):n==="nanoid"?r=r.check(j.nanoid()):n==="cuid"?r=r.check(j.cuid()):n==="cuid2"?r=r.check(j.cuid2()):n==="ulid"?r=r.check(j.ulid()):n==="xid"?r=r.check(j.xid()):n==="ksuid"&&(r=r.check(j.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),o=r;break}case"number":case"integer":{let r=i==="integer"?j.number().int():j.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),o=r;break}case"boolean":{o=j.boolean();break}case"null":{o=j.null();break}case"object":{let r={},n=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?pe(e.additionalProperties,t):void 0;for(let[d,m]of Object.entries(n)){let f=pe(m,t);ae(r,d,a.has(d)?f:f.optional())}if(e.patternProperties){let d=e.patternProperties,m=Object.keys(d),f=[];for(let h of m){let b=pe(d[h],t),E=j.string().regex(new RegExp(h));f.push(j.looseRecord(E,b))}let v=[];if(Object.keys(r).length>0&&v.push(j.object(r).passthrough()),v.push(...f),v.length===0)o=j.object({}).passthrough();else if(v.length===1)o=v[0];else{let h=j.intersection(v[0],v[1]);for(let b=2;b<v.length;b++)h=j.intersection(h,v[b]);o=h}if(e.additionalProperties===!1){let h=Object.keys(r),b=m.map(z=>new RegExp(z)),E=o;o=o.check(z=>{if(!we(z.value))return;let I=[];for(let D of Object.keys(z.value))h.includes(D)||b.some(B=>B.test(D))||I.push(D);I.length&&z.issues.push({code:"unrecognized_keys",keys:I,input:z.value,inst:E})})}}else{let d=j.object(r);e.additionalProperties===!1?o=d.strict():s?o=d.catchall(s):o=d.passthrough()}let u=e.propertyNames!==void 0&&e.propertyNames!==!0,c=typeof e.minProperties=="number"?e.minProperties:void 0,l=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(u||c!==void 0||l!==void 0){let d;if(u){let m=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=pe(m,t)}o=Xb(o,{keySchema:d,minProperties:c,maxProperties:l})}break}case"array":{let r=e.prefixItems,n=e.items;if(r&&Array.isArray(r)){let a=typeof e.minItems=="number"?e.minItems:0,s=r.map(d=>pe(d,t)),u=Tg(s,a),c=Array.isArray(n)?void 0:Rg(n,t),l=j.tuple(u);o=c?l.rest(c):l,typeof e.minItems=="number"&&(o=o.check(j.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(j.maxLength(e.maxItems)))}else if(Array.isArray(n)){let a=typeof e.minItems=="number"?e.minItems:0,s=n.map(d=>pe(d,t)),u=Tg(s,a),c=Rg(e.additionalItems,t),l=j.tuple(u);o=c?l.rest(c):l,typeof e.minItems=="number"&&(o=o.check(j.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(j.maxLength(e.maxItems)))}else if(n!==void 0){let a=pe(n,t),s=j.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=j.array(j.any());(e.uniqueItems===!0||e.contains!==void 0)&&(o=Qb(o,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?pe(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${i}`)}return o}function pe(e,t){if(typeof e=="boolean")return e?j.any():j.never();let i=Zg(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(c=>pe(c,t)),u=j.union(s);i=o?j.intersection(i,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>pe(c,t)),u=j.xor(s);i=o?j.intersection(i,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)i=o?i:j.any();else{let s=o?i:pe(e.allOf[0],t),u=o?0:1;for(let c=u;c<e.allOf.length;c++)s=j.intersection(s,pe(e.allOf[c],t));i=s}e.nullable===!0&&t.version==="openapi-3.0"&&(i=j.nullable(i)),e.readOnly===!0&&(i=j.readonly(i)),e.default!==void 0&&(i=i.default(e.default));let r={},n=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of n)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!cn(e.propertyNames)&&(r.propertyNames=e.propertyNames);for(let s of["minProperties","maxProperties"])e[s]!==void 0&&(r[s]=e[s])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!cn(e.contains)&&(r.contains=e.contains);for(let s of["uniqueItems","minContains","maxContains"])e[s]!==void 0&&(r[s]=e[s])}for(let s of Object.keys(e))Kb.has(s)||ae(r,s,e[s]);return Object.keys(r).length>0&&t.registry.add(i,r),e.description&&(i=i.describe(e.description)),i}function Lg(e,t){if(typeof e=="boolean")return e?j.any():j.never();let i;try{i=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=Wb(i,t?.defaultTarget),r=i.$defs||i.definitions||{},n={version:o,defs:r,refs:new Map,processing:new Set,rootSchema:i,registry:t?.registry??se};return pe(i,n)}var Fg=Symbol("z.visit/resolving");function un(e,t){let i=typeof t=="function"?t:(a,s)=>{let u=t[a._zod.def.type];return u?u(a,s):a},o=new Map;function r(a){let s=o.get(a);if(s===Fg)return new Tr({type:"lazy",getter:()=>o.get(a)});if(s!==void 0)return s;o.set(a,Fg);let u=n(a),c=i(u,u!==a);return o.set(a,c),c}function n(a){let s=a._zod.def,u=s.type;switch(u){case"object":{let c=s.shape,l=Object.keys(c),d=!1,m={};for(let v of l){let h=r(c[v]);h!==c[v]&&(d=!0),m[v]=h}let f=s.catchall;return s.catchall&&(f=r(s.catchall),f!==s.catchall&&(d=!0)),d?M(a,{...s,shape:m,catchall:f}):a}case"array":{let c=r(s.element);return c===s.element?a:M(a,{...s,element:c})}case"tuple":{let c=s.items,l=!1,d=[];for(let f of c){let v=r(f);v!==f&&(l=!0),d.push(v)}let m=s.rest;return s.rest&&(m=r(s.rest),m!==s.rest&&(l=!0)),l?M(a,{...s,items:d,rest:m}):a}case"record":case"map":{let c=r(s.keyType),l=r(s.valueType);return c===s.keyType&&l===s.valueType?a:M(a,{...s,keyType:c,valueType:l})}case"set":{let c=r(s.valueType);return c===s.valueType?a:M(a,{...s,valueType:c})}case"union":{let c=s.options,l=!1,d=[];for(let m of c){let f=r(m);f!==m&&(l=!0),d.push(f)}return l?M(a,{...s,options:d}):a}case"intersection":{let c=r(s.left),l=r(s.right);return c===s.left&&l===s.right?a:M(a,{...s,left:c,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let c=r(s.innerType);return c===s.innerType?a:M(a,{...s,innerType:c})}case"pipe":{let c=r(s.in),l=r(s.out);return c===s.in&&l===s.out?a:M(a,{...s,in:c,out:l})}case"function":{let c=r(s.input),l=r(s.output);return c===s.input&&l===s.output?a:M(a,{...s,input:c,output:l})}case"lazy":{let c=s.getter,{_cachedInner:l,...d}=s;return M(a,{...d,getter:()=>r(c())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return r(e)}function Mg(e){return un(e,{object:t=>t.partial(),union:t=>{let i=t._zod.def;return i.discriminator===void 0?t:ar(i.options)}})}function tk(e,t){if(!t?.length)return e;let i=e._zod.def;return M(e,je(i,{checks:[...i.checks??[],...t]}),{parent:!0})}function Vg(e){return tk(e.out,e.checks)}function rk(e){return e.in._zod.traits.has("$ZodTransform")?Vg(e):e.in}function Jg(e){return un(e,{pipe:t=>rk(t._zod.def),default:(t,i)=>i?ht(t._zod.def.innerType):t,catch:(t,i)=>i?t._zod.def.innerType:t})}function Bg(e){return un(e,{pipe:t=>Vg(t._zod.def),prefault:(t,i)=>i?t._zod.def.innerType:t})}var hd={};Te(hd,{bigint:()=>ak,boolean:()=>ok,date:()=>sk,number:()=>ik,string:()=>nk});function nk(e){return Zc(rr,e)}function ik(e){return Bc(nr,e)}function ok(e){return Yc(ir,e)}function ak(e){return eu(or,e)}function sk(e){return du(Yr,e)}var fk="cueframe/components";var pk="cueframe.json",gk=ln.object({componentsDir:ln.string().min(1).default(fk)}).passthrough();function dn(e){let t=e,i=mk(t).root;for(;;){let o=cr(t,pk);if(jo(o)){let r=ck(o,"utf8"),n=gk.parse(JSON.parse(r));return{root:t,manifest:n}}if(t===i)return null;t=dk(t)}}function Kg(e){return cr(e.root,e.manifest.componentsDir)}function Po(e,t){return cr(Kg(e),t)}function Wg(e){let t=Kg(e);return jo(t)?uk(t).filter(i=>{let o=cr(t,i);return lk(o).isDirectory()?jo(cr(o,"index.tsx"))&&jo(cr(o,"config.ts")):!1}).sort():[]}import{existsSync as vk,readFileSync as hk}from"fs";import{join as $k}from"path";var Gg=Object.freeze({version:2,assets:Object.freeze({}),graphics:Object.freeze({api:"canvas2d",required:!0,accelerationPreference:"software-allowed"}),alphaPolicy:"requires-transparency"});var qg=Gg;function Xg(e,t){let i=$k(e.root,"cueframe.json");if(!vk(i))throw Object.assign(new Error("No cueframe.json workspace manifest was found."),{code:"no_component_manifest"});let r=JSON.parse(hk(i,"utf8")).components?.[t]?.manifest;if(r==null)throw Object.assign(new Error(`Component "${t}" has no contract-v2 manifest at cueframe.json components.${t}.manifest.`),{code:"no_component_manifest"});return r}var xk="cueframe.json";function wk(e){return e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join("")}function Ik(e){return e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" ")}function $d(e,t){P(e,"new_component",new Error(t),x.UserError),k(x.UserError)}function Sk(e,t){return`import React from 'react';
|
|
78
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of e.seen.entries()){let p=d[1];if(t===d[0]){r(d);continue}if(e.external){let m=e.external.registry.get(d[0])?.id;if(t!==d[0]&&m){r(d);continue}}if(e.metadataRegistry.get(d[0])?.id){r(d);continue}if(p.cycle){r(d);continue}p.count>1&&e.reused==="ref"&&r(d)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Zf(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let i=[];for(let a of t){if(!a||typeof a!="object")return;Zf(a);let o=Object.keys(a);if(o.length!==1||o[0]!=="type")return;let r=a.type;for(let d of Array.isArray(r)?r:[r]){if(typeof d!="string")return;i.includes(d)||i.push(d)}}delete e.anyOf,e.type=i.length===1?i[0]:i}var Gf=new Set(["type","properties","required","additionalProperties"]),Bf=["oneOf","anyOf"];function Wf(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function rp(e){let t=[];for(let r of e){if(typeof r!="object"||r.type!=="object")return null;for(let d in r)if(!Gf.has(d))return null;t.push(r)}let i={},a=new Set;for(let r of t){for(let d in r.properties){if(Object.prototype.hasOwnProperty.call(i,d))continue;let p=[];for(let m of t){let g=m.properties?.[d]??Wf(m);g!=null&&(p.some(b=>JSON.stringify(b)===JSON.stringify(g))||p.push(g))}let f=p.length===1?p[0]:rp(p)??{allOf:p};Oe(i,d,f)}for(let d of r.required??[])a.add(d)}let o={type:"object",properties:i};if(a.size&&(o.required=[...a]),t.every(r=>r.additionalProperties===!1))o.additionalProperties=!1;else{let r=[];for(let d of t){let p=Wf(d);p&&!r.some(f=>JSON.stringify(f)===JSON.stringify(p))&&r.push(p)}r.length===1?o.additionalProperties=r[0]:r.length>1&&(o.additionalProperties={allOf:r})}return o}function lR(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of Gf)if(o in e)return;let i=t.filter(o=>Bf.some(r=>Array.isArray(o[r]))),a=null;if(!i.length)a=rp(t);else{let o=i[0],r=Bf.find(f=>Array.isArray(o[f]));if(Object.keys(o).length!==1)return;let d=t.filter(f=>f!==o),p=o[r].map(f=>rp([...d,f]));if(p.some(f=>!f))return;a={[r]:p}}a&&(delete e.allOf,$n(e,a))}function St(e,t){let i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=p=>{let f=e.seen.get(p);if(f.ref===null)return;let m=f.def??f.schema,g={...m},b=f.ref;if(f.ref=null,b){a(b);let R=e.seen.get(b),O=R.schema;if(O.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(O)):$n(m,O),$n(m,g),p._zod.parent===b)for(let E in m)E==="$ref"||E==="allOf"||E in g||delete m[E];if(O.$ref&&R.def)for(let E in m)E==="$ref"||E==="allOf"||E in R.def&&JSON.stringify(m[E])===JSON.stringify(R.def[E])&&delete m[E]}let S=p._zod.parent;if(S&&S!==b){a(S);let R=e.seen.get(S);if(R?.schema.$ref&&(m.$ref=R.schema.$ref,R.def))for(let O in m)O==="$ref"||O==="allOf"||O in R.def&&JSON.stringify(m[O])===JSON.stringify(R.def[O])&&delete m[O]}e.override({zodSchema:p,jsonSchema:m,path:f.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let p of[...e.seen.entries()].reverse())a(p[0]);if(e.target!=="openapi-3.0")for(let p of e.seen.entries())Zf(p[1].def??p[1].schema);for(let p of e.deferred)p();if(e.intersections.length){let p=new Map;for(let f of e.seen.values())for(let m of[f.schema,f.def]){let g=m?.allOf;if(!Array.isArray(g))continue;let b=p.get(g);b?b.push(m):p.set(g,[m])}for(let f of e.intersections)for(let m of p.get(f)??[])lR(m)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let p=e.external.registry.get(t)?.id;if(!p)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(p)}$n(o,i.defId?i.schema:i.def??i.schema);let r=e.metadataRegistry.get(t)?.id;r!==void 0&&o.id===r&&delete o.id;let d=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let p of e.seen.entries()){let f=p[1];f.def&&f.defId&&(f.def.id===f.defId&&delete f.def.id,Oe(d,f.defId,f.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(d).length>0&&(e.target==="draft-2020-12"?o.$defs=d:o.definitions=d);try{let p=JSON.parse(JSON.stringify(o));return Object.defineProperty(p,"~standard",{value:{...t["~standard"],jsonSchema:{input:vo(t,"input",e.processors),output:vo(t,"output",e.processors)}},enumerable:!1,writable:!1}),p}catch{throw new Error("Error converting schema to JSON.")}}function Ee(e,t){let i=t??{seen:new Set};if(i.seen.has(e))return!1;i.seen.add(e);let a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return Ee(a.element,i);if(a.type==="set")return Ee(a.valueType,i);if(a.type==="lazy")return Ee(a.getter(),i);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault"||a.type==="catch")return Ee(a.innerType,i);if(a.type==="intersection")return Ee(a.left,i)||Ee(a.right,i);if(a.type==="record"||a.type==="map")return Ee(a.keyType,i)||Ee(a.valueType,i);if(a.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ee(a.in,i)||Ee(a.out,i);if(a.type==="object"){for(let o in a.shape)if(Ee(a.shape[o],i))return!0;return!1}if(a.type==="union"){for(let o of a.options)if(Ee(o,i))return!0;return!1}if(a.type==="tuple"){for(let o of a.items)if(Ee(o,i))return!0;return!!(a.rest&&Ee(a.rest,i))}return!1}var ip=(e,t={})=>i=>{let a=bt({...i,processors:t});return se(e,a),yt(a,e),St(a,e)},vo=(e,t,i={})=>a=>{let{libraryOptions:o,target:r}=a??{},d=bt({...o??{},target:r,io:t,processors:i});return se(e,d),yt(d,e),St(d,e)};var Ro=(e,t,i)=>{(e[t]===void 0||i>e[t])&&(e[t]=i)},wo=(e,t,i)=>{(e[t]===void 0||i<e[t])&&(e[t]=i)},Jf=(e,t)=>{Ro(e,"minimum",t),wo(e,"maximum",t)},Yf=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},Qf=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},eh=(e,t)=>{e.mime=e.mime?e.mime.filter(i=>t.includes(i)):[...t]},th=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},Kf=(e,t)=>Ro(e,"minimum",t.minimum),Hf=(e,t)=>wo(e,"maximum",t.maximum),Xf=e=>(t,i)=>{th(t,i.format);let[a,o]=e[i.format];Ro(t,"minimum",a),wo(t,"maximum",o)},mR={greater_than:(e,t)=>Ro(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>wo(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Yf(e,t.value),number_format:Xf(Ko),bigint_format:Xf(Ho),min_length:Kf,max_length:Hf,length_equals:(e,t)=>Jf(e,t.length),min_size:Kf,max_size:Hf,size_equals:(e,t)=>Jf(e,t.size),string_format:(e,t)=>{th(e,t.format),t.pattern&&Qf(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>eh(e,t.mime)};function ve(e){let t={},i=e._zod.def,a=e._zod.traits.has("$ZodCheck")?[e,...i.checks??[]]:i.checks??[];for(let r of a)mR[r._zod.def.check]?.(t,r._zod.def);let o=e._zod.bag;o.minimum!==void 0&&Ro(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&Ro(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&wo(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&wo(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&Yf(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&eh(t,o.mime);for(let r of o.patterns??[])Qf(t,r);return t}var fR={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},hR=new Map([[Cr,ms],[mn,fs]]),oh=e=>hR.get(e)??e,cp=(e,t,i,a)=>{let o=i;o.type="string";let{minimum:r,maximum:d,format:p,patterns:f,contentEncoding:m,laxFormat:g}=ve(e);if(typeof r=="number"&&(o.minLength=r),typeof d=="number"&&(o.maxLength=d),p&&(o.format=fR[p]??p,o.format===""&&delete o.format,(p==="time"||g)&&delete o.format),m&&(o.contentEncoding=m),f&&f.size>0){let b=[...f].map(oh);b.length===1?o.pattern=b[0].source:b.length>1&&(o.allOf=[...b.map(S=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:S.source}))])}},dp=(e,t,i,a)=>{let o=i,{minimum:r,maximum:d,multipleOf:p,exclusiveMaximum:f,exclusiveMinimum:m,isInt:g}=ve(e);o.type=g?"integer":"number";let b=typeof m=="number"&&m>=(r??Number.NEGATIVE_INFINITY),S=typeof f=="number"&&f<=(d??Number.POSITIVE_INFINITY),R=t.target==="draft-04"||t.target==="openapi-3.0";if(b?R?(o.minimum=m,o.exclusiveMinimum=!0):o.exclusiveMinimum=m:typeof r=="number"&&(o.minimum=r),S?R?(o.maximum=f,o.exclusiveMaximum=!0):o.exclusiveMaximum=f:typeof d=="number"&&(o.maximum=d),p){let O=new Set;for(let Z of p)Number.isFinite(Z)&&Z!==0?O.add(Math.abs(Z)):Se(e,t,o,a,`A multipleOf divisor of ${Z} cannot be represented in JSON Schema`);let[k,...E]=O;k!==void 0&&(o.multipleOf=k),E.length&&(o.allOf=[...o.allOf??[],...E.map(Z=>({multipleOf:Z}))])}},pp=(e,t,i,a)=>{i.type="boolean"},up=(e,t,i,a)=>{Se(e,t,i,a,"BigInt cannot be represented in JSON Schema")},lp=(e,t,i,a)=>{Se(e,t,i,a,"Symbols cannot be represented in JSON Schema")},mp=(e,t,i,a)=>{t.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},fp=(e,t,i,a)=>{Se(e,t,i,a,"Undefined cannot be represented in JSON Schema")},hp=(e,t,i,a)=>{Se(e,t,i,a,"Void cannot be represented in JSON Schema")},gp=(e,t,i,a)=>{i.not={}},xp=(e,t,i,a)=>{},zp=(e,t,i,a)=>{},bp=(e,t,i,a)=>{Se(e,t,i,a,"Date cannot be represented in JSON Schema")},yp=(e,t,i,a)=>{let o=e._zod.def,r=Jt(o.entries);if(r.length===0){i.not={};return}r.every(d=>typeof d=="number")&&(i.type="number"),r.every(d=>typeof d=="string")&&(i.type="string"),i.enum=r},Sp=(e,t,i,a)=>{let o=e._zod.def;if(o.values.length===0){i.not={};return}let r=[];for(let d of o.values)if(d===void 0){if(Se(e,t,i,a,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof d=="bigint"){if(Se(e,t,i,a,"BigInt literals cannot be represented in JSON Schema"))return;r.push(Number(d))}else r.push(d);if(r.length!==0)if(r.length===1){let d=r[0];i.type=d===null?"null":typeof d,t.target==="draft-04"||t.target==="openapi-3.0"?i.enum=[d]:i.const=d}else r.every(d=>typeof d=="number")&&(i.type="number"),r.every(d=>typeof d=="string")&&(i.type="string"),r.every(d=>typeof d=="boolean")&&(i.type="boolean"),r.every(d=>d===null)&&(i.type="null"),i.enum=r},vp=(e,t,i,a)=>{Se(e,t,i,a,"NaN cannot be represented in JSON Schema")},Rp=(e,t,i,a)=>{let o=i,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=r.source},wp=(e,t,i,a)=>{let o=i;o.type="string",o.format="binary",o.contentEncoding="binary";let{minimum:r,maximum:d,mime:p}=ve(e);r!==void 0&&(o.minLength=r),d!==void 0&&(o.maxLength=d),p&&(p.length===0?o.not={}:p.length===1?o.contentMediaType=p[0]:o.anyOf=p.map(f=>({contentMediaType:f})))},Ip=(e,t,i,a)=>{i.type="boolean"},Mp=(e,t,i,a)=>{Se(e,t,i,a,"Custom types cannot be represented in JSON Schema")},Op=(e,t,i,a)=>{Se(e,t,i,a,"Function types cannot be represented in JSON Schema")},$p=(e,t,i,a)=>{Se(e,t,i,a,"Transforms cannot be represented in JSON Schema")},kp=(e,t,i,a)=>{Se(e,t,i,a,"Map cannot be represented in JSON Schema")},Tp=(e,t,i,a)=>{Se(e,t,i,a,"Set cannot be represented in JSON Schema")},Cp=(e,t,i,a)=>{let o=i,r=e._zod.def,{minimum:d,maximum:p}=ve(e);typeof d=="number"&&(o.minItems=d),typeof p=="number"&&(o.maxItems=p),o.type="array",o.items=se(r.element,t,{...a,path:[...a.path,"items"]})};function kn(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?kn(t.out):t.type==="catch"?kn(t.innerType):e._zod.optin}var Dp=(e,t,i,a)=>{let o=i,r=e._zod.def,d=r.shape;if(Object.getOwnPropertySymbols(d).length&&Se(e,t,o,a,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let m in d)Oe(o.properties,m,se(d[m],t,{...a,path:[...a.path,"properties",m]}));let f=[];for(let m of Object.keys(d)){let g=r.shape[m];(t.io==="input"?kn(g)===void 0:g._zod.optout===void 0)&&f.push(m)}f.length>0&&(o.required=f),r.catchall?._zod.def.type==="never"?o.additionalProperties=!1:r.catchall?r.catchall&&(o.additionalProperties=se(r.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},$i=(e,t,i,a)=>{let o=e._zod.def,r=o.inclusive===!1,d=o.options.map((p,f)=>se(p,t,{...a,path:[...a.path,r?"oneOf":"anyOf",f]}));r?i.oneOf=d:i.anyOf=d},_p=(e,t,i,a)=>{let o=e._zod.def,r=se(o.left,t,{...a,path:[...a.path,"allOf",0]}),d=se(o.right,t,{...a,path:[...a.path,"allOf",1]}),p=m=>"allOf"in m&&Object.keys(m).length===1,f=[...p(r)?r.allOf:[r],...p(d)?d.allOf:[d]];i.allOf=f,t.intersections.push(f)},Ep=(e,t,i,a)=>{let o=i,r=e._zod.def;o.type="array";let d=t.target==="draft-2020-12"?"prefixItems":"items",p=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",f=r.items.map((k,E)=>se(k,t,{...a,path:[...a.path,d,E]})),m=r.rest?se(r.rest,t,{...a,path:[...a.path,p,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null,g=r.items.length;for(;g>0;){let k=r.items[g-1];if(!(t.io==="input"?kn(k)!==void 0:k._zod.optout==="optional"))break;g--}let b=r.items.length,S=!r.rest;t.target==="draft-2020-12"?(o.prefixItems=f,S?o.items=!1:m&&(o.items=m),g>0&&(o.minItems=g),S&&(o.maxItems=b)):t.target==="openapi-3.0"?(o.items={anyOf:f},m&&o.items.anyOf.push(m),g>0&&(o.minItems=g),S&&(o.maxItems=b)):(o.items=f,S?o.additionalItems=!1:m&&(o.additionalItems=m),g>0&&(o.minItems=g),S&&(o.maxItems=b));let{minimum:R,maximum:O}=ve(e);typeof R=="number"&&(o.minItems=R),typeof O=="number"&&(o.maxItems=O)};function ap(e,t,i){if(t.$ref){if(i.has(t))return t;i.add(t);let O=e.get(t)?.def;if(!O)return t;let k=ap(e,O,i);return k===O?t:k}for(let O of["anyOf","oneOf"]){let k=t[O];if(!Array.isArray(k))continue;let E=k.map(Z=>ap(e,Z,i));E.some((Z,U)=>Z!==k[U])&&(t={...t,[O]:E})}let a=Array.isArray(t.type)?t.type:[t.type],o=!a.includes("string")&&a.some(O=>O==="number"||O==="integer"),r=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!r?.some(O=>typeof O=="number"))return t;let{minimum:d,maximum:p,exclusiveMinimum:f,exclusiveMaximum:m,multipleOf:g,format:b,id:S,...R}=t;return R.enum?R.enum=R.enum.map(O=>typeof O=="number"?String(O):O):typeof R.const=="number"&&(R.const=String(R.const)),o&&(R.type="string",r||(R.pattern=(a.includes("number")?st:an).source)),R}var sp=new WeakMap;function gR(e){let t=new Map;for(let a of e.seen.values())a.def&&!t.has(a.schema)&&t.set(a.schema,a);let i=new Map;for(let a of sp.get(e)??[]){let o=e.seen.get(a),r=(o?.def??o?.schema)?.propertyNames;if(!r||r===!0||i.has(r))continue;let d=ap(t,r,new Set);d!==r&&i.set(r,d)}if(i.size)for(let a of e.seen.values())for(let o of[a.schema,a.def]){let r=o&&i.get(o.propertyNames);r&&(o.propertyNames=r)}}var jp=(e,t,i,a)=>{let o=i,r=e._zod.def;o.type="object";let d=r.keyType,p=ve(d).patterns;if(r.mode==="loose"&&p&&p.size>0){let g=se(r.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});o.patternProperties={};for(let b of p)Oe(o.patternProperties,oh(b).source,g)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=se(r.keyType,t,{...a,path:[...a.path,"propertyNames"]});let g=sp.get(t);g||(g=[],sp.set(t,g),t.deferred.push(()=>gR(t))),g.push(e)}o.additionalProperties=se(r.valueType,t,{...a,path:[...a.path,"additionalProperties"]})}let f=d._zod.values,m=t.io==="input"&&kn(r.valueType)!==void 0;if(f&&!r.partial&&!m){let g=[...f].filter(b=>typeof b=="string"||typeof b=="number");g.length>0&&(o.required=g.map(String))}},Pp=(e,t,i,a)=>{let o=e._zod.def,r=se(o.innerType,t,a),d=t.seen.get(e);t.target==="openapi-3.0"?(d.ref=o.innerType,i.nullable=!0):i.anyOf=[r,{type:"null"}]},Lp=(e,t,i,a)=>{let o=e._zod.def;se(o.innerType,t,a);let r=t.seen.get(e);r.ref=o.innerType},Vp=Symbol();function nh(e,t,i,a,o){let r=!1,d=JSON.stringify(e,(p,f)=>typeof f!="bigint"?f:(r=!0,null));return r?(Se(t,i,a,o,"BigInt defaults cannot be represented in JSON Schema"),Vp):JSON.parse(d)}var Fp=(e,t,i,a)=>{let o=e._zod.def;se(o.innerType,t,a);let r=t.seen.get(e);r.ref=o.innerType;let d=nh(o.defaultValue,e,t,i,a);d!==Vp&&(i.default=d)},Ap=(e,t,i,a)=>{let o=e._zod.def;se(o.innerType,t,a);let r=t.seen.get(e);if(r.ref=o.innerType,t.io!=="input")return;let d=nh(o.defaultValue,e,t,i,a);d!==Vp&&(i._prefault=d)},Up=(e,t,i,a)=>{let o=e._zod.def;se(o.innerType,t,a);let r=t.seen.get(e);r.ref=o.innerType;let d;try{d=o.catchValue(void 0)}catch{Se(e,t,i,a,"Dynamic catch values are not supported in JSON Schema");return}i.default=d},Np=(e,t,i,a)=>{let o=e._zod.def,r=o.in._zod.traits.has("$ZodTransform"),d=t.io==="input"?r?o.out:o.in:o.out;se(d,t,a);let p=t.seen.get(e);p.ref=d},qp=(e,t,i,a)=>{let o=e._zod.def;se(o.innerType,t,a);let r=t.seen.get(e);r.ref=o.innerType,i.readOnly=!0},Bp=(e,t,i,a)=>{let o=e._zod.def;se(o.innerType,t,a);let r=t.seen.get(e);r.ref=o.innerType},ki=(e,t,i,a)=>{let o=e._zod.def;se(o.innerType,t,a);let r=t.seen.get(e);r.ref=o.innerType},Wp=(e,t,i,a)=>{let o=e._zod.innerType;se(o,t,a);let r=t.seen.get(e);r.ref=o},Oi={string:cp,number:dp,boolean:pp,bigint:up,symbol:lp,null:mp,undefined:fp,void:hp,never:gp,any:xp,unknown:zp,date:bp,enum:yp,literal:Sp,nan:vp,template_literal:Rp,file:wp,success:Ip,custom:Mp,function:Op,transform:$p,map:kp,set:Tp,array:Cp,object:Dp,union:$i,intersection:_p,tuple:Ep,record:jp,nullable:Pp,nonoptional:Lp,default:Fp,prefault:Ap,catch:Up,pipe:Np,readonly:qp,promise:Bp,optional:ki,lazy:Wp};function Ti(e,t){if("_idmap"in e){let a=e,o=bt({...t,processors:Oi}),r={};for(let f of a._idmap.entries()){let[m,g]=f;se(g,o)}let d={},p={registry:a,uri:t?.uri,defs:r};o.external=p;for(let f of a._idmap.entries()){let[m,g]=f;yt(o,g),Oe(d,m,St(o,g))}if(Object.keys(r).length>0){let f=o.target==="draft-2020-12"?"$defs":"definitions";d.__shared={[f]:r}}return{schemas:d}}let i=bt({...t,processors:Oi});return se(e,i),yt(i,e),St(i,e)}var Ci=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let i=t?.target??"draft-2020-12";i==="draft-4"&&(i="draft-04"),i==="draft-7"&&(i="draft-07"),this.ctx=bt({processors:Oi,target:i,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,i={path:[],schemaPath:[]}){return se(t,this.ctx,i)}emit(t,i){i&&(i.cycles&&(this.ctx.cycles=i.cycles),i.reused&&(this.ctx.reused=i.reused),i.external&&(this.ctx.external=i.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,yt(this.ctx,t);let a=St(this.ctx,t),{"~standard":o,...r}=a;return r}};var rh={};var Co={};rt(Co,{ZodAny:()=>pu,ZodArray:()=>fu,ZodBase64:()=>Ki,ZodBase64URL:()=>Hi,ZodBigInt:()=>To,ZodBigIntFormat:()=>ea,ZodBoolean:()=>ko,ZodCIDRv4:()=>Gi,ZodCIDRv6:()=>Ji,ZodCUID:()=>Ai,ZodCUID2:()=>Ui,ZodCatch:()=>_u,ZodCodec:()=>Ln,ZodCreditCard:()=>iu,ZodCustom:()=>Vn,ZodCustomStringFormat:()=>qt,ZodDate:()=>Dn,ZodDefault:()=>Ou,ZodDiscriminatedUnion:()=>gu,ZodE164:()=>Xi,ZodEmail:()=>Pi,ZodEmoji:()=>Vi,ZodEnum:()=>Mo,ZodExactOptional:()=>na,ZodFile:()=>Ru,ZodFunction:()=>Nu,ZodGUID:()=>Li,ZodIBAN:()=>au,ZodIPv4:()=>Wi,ZodIPv6:()=>Zi,ZodISODate:()=>Rt,ZodISODateTime:()=>vt,ZodISODuration:()=>It,ZodISOTime:()=>wt,ZodInstanceOf:()=>Wu,ZodIntersection:()=>xu,ZodJWT:()=>Yi,ZodKSUID:()=>Bi,ZodLazy:()=>Au,ZodLiteral:()=>vu,ZodMAC:()=>ru,ZodMap:()=>yu,ZodNaN:()=>ju,ZodNanoID:()=>Fi,ZodNever:()=>lu,ZodNonOptional:()=>ra,ZodNull:()=>du,ZodNullable:()=>Mu,ZodNumber:()=>$o,ZodNumberFormat:()=>Bt,ZodObject:()=>_n,ZodOptional:()=>jn,ZodPipe:()=>Pn,ZodPrefault:()=>ku,ZodPreprocess:()=>Pu,ZodPromise:()=>Uu,ZodReadonly:()=>Lu,ZodRecord:()=>Io,ZodSet:()=>Su,ZodString:()=>Oo,ZodStringFormat:()=>de,ZodSuccess:()=>Du,ZodSymbol:()=>su,ZodTemplateLiteral:()=>Fu,ZodTransform:()=>wu,ZodTuple:()=>bu,ZodType:()=>Y,ZodULID:()=>Ni,ZodURL:()=>Cn,ZodUUID:()=>ot,ZodUndefined:()=>cu,ZodUnion:()=>En,ZodUnknown:()=>uu,ZodVoid:()=>mu,ZodXID:()=>qi,ZodXor:()=>hu,_ZodString:()=>ji,_default:()=>$u,_function:()=>dg,any:()=>Wh,array:()=>h,base64:()=>Mh,base64url:()=>Oh,bigint:()=>Ah,boolean:()=>w,catch:()=>Eu,check:()=>pg,cidrv4:()=>wh,cidrv6:()=>Ih,codec:()=>ig,creditCard:()=>kh,cuid:()=>gh,cuid2:()=>xh,currencyCode:()=>Eh,custom:()=>ug,date:()=>Zh,describe:()=>lg,discriminatedUnion:()=>Kh,e164:()=>$h,email:()=>sh,emoji:()=>fh,enum:()=>l,exactOptional:()=>Iu,file:()=>tg,float32:()=>Ph,float64:()=>Lh,function:()=>dg,guid:()=>ch,hash:()=>jh,hex:()=>_h,hostname:()=>Dh,httpUrl:()=>mh,iban:()=>Th,instanceof:()=>fg,int:()=>x,int32:()=>Vh,int64:()=>Uh,intersection:()=>zu,invertCodec:()=>ag,ipv4:()=>Sh,ipv6:()=>Rh,json:()=>gg,jwt:()=>Ch,keyof:()=>Gh,ksuid:()=>yh,lazy:()=>pt,literal:()=>u,looseObject:()=>Mt,looseRecord:()=>Xh,mac:()=>vh,map:()=>Yh,meta:()=>mg,nan:()=>rg,nanoid:()=>hh,nativeEnum:()=>eg,never:()=>ta,nonoptional:()=>Cu,null:()=>q,nullable:()=>Tn,nullish:()=>og,number:()=>s,object:()=>T,optional:()=>Ut,partialRecord:()=>Hh,pipe:()=>Ei,prefault:()=>Tu,preprocess:()=>xg,promise:()=>cg,readonly:()=>Vu,record:()=>y,refine:()=>qu,set:()=>Qh,strictObject:()=>c,string:()=>n,stringFormat:()=>Qi,stringbool:()=>hg,success:()=>ng,superRefine:()=>Bu,symbol:()=>qh,templateLiteral:()=>sg,transform:()=>oa,tuple:()=>F,uint32:()=>Fh,uint64:()=>Nh,ulid:()=>zh,undefined:()=>Bh,union:()=>z,unknown:()=>$,url:()=>oe,uuid:()=>dh,uuidv4:()=>ph,uuidv6:()=>uh,uuidv7:()=>lh,void:()=>Re,xid:()=>bh,xor:()=>Jh});var Di={};rt(Di,{endsWith:()=>fo,gt:()=>et,gte:()=>qe,includes:()=>lo,length:()=>Ft,lowercase:()=>po,lt:()=>Qe,lte:()=>Ne,maxLength:()=>Vt,maxSize:()=>zt,mime:()=>go,minLength:()=>ct,minSize:()=>tt,multipleOf:()=>xt,negative:()=>Ri,nonnegative:()=>Ii,nonpositive:()=>wi,normalize:()=>xo,overwrite:()=>Xe,positive:()=>vi,properties:()=>ho,property:()=>Mi,regex:()=>co,size:()=>Lt,slugify:()=>So,startsWith:()=>mo,toLowerCase:()=>bo,toUpperCase:()=>yo,trim:()=>zo,uppercase:()=>uo});var ih=new WeakSet([Object.prototype,Error.prototype]);function _i(e,t,i){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let a=i(this);return Object.defineProperty(this,t,{value:a,configurable:!0,writable:!0}),a},set(a){Object.defineProperty(this,t,{value:a,configurable:!0,writable:!0})}})}var ah=(e,t)=>{Ga.init(e,t),e.name="ZodError";let i=Object.getPrototypeOf(e);ih.has(i)||(ih.add(i),_i(i,"format",a=>o=>tn(a,o)),_i(i,"flatten",a=>o=>en(a,o)),_i(i,"addIssue",a=>o=>{a.issues.push(o),a.message=JSON.stringify(a.issues,Kt,2)}),_i(i,"addIssues",a=>o=>{a.issues.push(...o),a.message=JSON.stringify(a.issues,Kt,2)}),Object.defineProperty(i,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},zR=I("ZodError",ah),Ue=I("ZodError",ah,void 0,{Parent:Error});var Zp=Qt(Ue),Gp=eo(Ue),Jp=to(Ue),Kp=oo(Ue),Hp=cr(Ue),Xp=dr(Ue),Yp=pr(Ue),Qp=ur(Ue),eu=lr(Ue),tu=mr(Ue),ou=fr(Ue),nu=hr(Ue);function yR(){Ie.localeError||xe(Gr())}function Nt(){Ie.memoizer||xe({memoizer:yn()})}var Y=I("ZodType",(e,t)=>(yR(),H.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(C.mergeDefs(t,{checks:[...t.checks??[],...e.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ie(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(qu(e,t))},superRefine(e,t){return this.check(Bu(e,t))},overwrite(e){return this.check(Xe(e))},optional(){return Ut(this)},exactOptional(){return Iu(this)},nullable(){return Tn(this)},nullish(){return Ut(Tn(this))},nonoptional(e){return Cu(this,e)},array(){return h(this)},or(e){return z([this,e])},and(e){return zu(this,e)},transform(e){return Ei(this,oa(e))},default(e){return $u(this,e)},prefault(e){return Tu(this,e)},catch(e){return Eu(this,e)},pipe(e){return Ei(this,e)},readonly(){return Vu(this)},describe(e){let t=this.clone();return $e.add(t,{description:e}),t},meta(...e){if(e.length===0)return $e.get(this);let t=this.clone();return $e.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return C.hide(this,"~standard",{...Mr(this),jsonSchema:{input:vo(this,"input"),output:vo(this,"output")}})},set"~standard"(e){C.own(this,"~standard",e)},parse:function e(t,i){return Zp(this,t,i,{callee:e})},parseAsync:async function e(t,i){return await Gp(this,t,i,{callee:e})},safeParse(e,t){return Jp(this,e,t)},async safeParseAsync(e,t){return Kp(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){C.own(this,"spa",e)},validate(e,t){return on(this,e,t)},validateAsync(e,t){return nn(this,e,t)},encode:function e(t,i){return Hp(this,t,i,{callee:e})},decode:function e(t,i){return Xp(this,t,i,{callee:e})},encodeAsync:async function e(t,i){return await Yp(this,t,i,{callee:e})},decodeAsync:async function e(t,i){return await Qp(this,t,i,{callee:e})},safeEncode(e,t){return eu(this,e,t)},safeDecode(e,t){return tu(this,e,t)},async safeEncodeAsync(e,t){return ou(this,e,t)},async safeDecodeAsync(e,t){return nu(this,e,t)},toJSONSchema(e){return ip(this,{})(e)},get description(){return $e.get(this)?.description},get _def(){return this._zod.def}}),ji=I("_ZodString",(e,t)=>{Dt.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>cp(e,i,a,o)},C.derived({format:e=>ve(e).format??null,minLength:e=>ve(e).minimum??null,maxLength:e=>ve(e).maximum??null},{regex(...e){return this.check(co(...e))},includes(...e){return this.check(lo(...e))},startsWith(...e){return this.check(mo(...e))},endsWith(...e){return this.check(fo(...e))},min(...e){return this.check(ct(...e))},max(...e){return this.check(Vt(...e))},length(...e){return this.check(Ft(...e))},nonempty(...e){return this.check(ct(1,...e))},lowercase(e){return this.check(po(e))},uppercase(e){return this.check(uo(e))},trim(){return this.check(zo())},normalize(...e){return this.check(xo(...e))},toLowerCase(){return this.check(bo())},toUpperCase(){return this.check(yo())},slugify(){return this.check(So())}})),Oo=I("ZodString",(e,t)=>{Dt.init(e,t),ji.init(e,t)},{email(e){return this.check(ti(Pi,e))},url(e){return this.check(Rn(Cn,e))},jwt(e){return this.check(Si(Yi,e))},emoji(e){return this.check(si(Vi,e))},guid(e){return this.check(oi(Li,e))},uuid(e){return this.check(ni(ot,e))},uuidv4(e){return this.check(ri(ot,e))},uuidv6(e){return this.check(ii(ot,e))},uuidv7(e){return this.check(ai(ot,e))},nanoid(e){return this.check(ci(Fi,e))},cuid(e){return this.check(di(Ai,e))},cuid2(e){return this.check(pi(Ui,e))},ulid(e){return this.check(ui(Ni,e))},base64(e){return this.check(zi(Ki,e))},base64url(e){return this.check(bi(Hi,e))},xid(e){return this.check(li(qi,e))},ksuid(e){return this.check(mi(Bi,e))},ipv4(e){return this.check(fi(Wi,e))},ipv6(e){return this.check(hi(Zi,e))},cidrv4(e){return this.check(gi(Gi,e))},cidrv6(e){return this.check(xi(Ji,e))},e164(e){return this.check(yi(Xi,e))},datetime(e){return this.check(wn(vt,e))},date(e){return this.check(In(Rt,e))},time(e){return this.check(Mn(wt,e))},duration(e){return this.check(On(It,e))}});function n(e){return Sd(Oo,e)}var de=I("ZodStringFormat",(e,t)=>{ae.init(e,t),ji.init(e,t)}),vt=I("ZodISODateTime",(e,t)=>{mc.init(e,t),de.init(e,t)}),Rt=I("ZodISODate",(e,t)=>{fc.init(e,t),de.init(e,t)}),wt=I("ZodISOTime",(e,t)=>{hc.init(e,t),de.init(e,t)}),It=I("ZodISODuration",(e,t)=>{gc.init(e,t),de.init(e,t)}),Pi=I("ZodEmail",(e,t)=>{oc.init(e,t),de.init(e,t)});function sh(e){return ti(Pi,e)}var Li=I("ZodGUID",(e,t)=>{ec.init(e,t),de.init(e,t)});function ch(e){return oi(Li,e)}var ot=I("ZodUUID",(e,t)=>{tc.init(e,t),de.init(e,t)});function dh(e){return ni(ot,e)}function ph(e){return ri(ot,e)}function uh(e){return ii(ot,e)}function lh(e){return ai(ot,e)}var Cn=I("ZodURL",(e,t)=>{ic.init(e,t),de.init(e,t)});function oe(e){return Rn(Cn,e)}function mh(e){return Rn(Cn,{protocol:rn,hostname:gs,...C.normalizeParams(e)})}var Vi=I("ZodEmoji",(e,t)=>{ac.init(e,t),de.init(e,t)});function fh(e){return si(Vi,e)}var Fi=I("ZodNanoID",(e,t)=>{sc.init(e,t),de.init(e,t)});function hh(e){return ci(Fi,e)}var Ai=I("ZodCUID",(e,t)=>{cc.init(e,t),de.init(e,t)});function gh(e){return di(Ai,e)}var Ui=I("ZodCUID2",(e,t)=>{dc.init(e,t),de.init(e,t)});function xh(e){return pi(Ui,e)}var Ni=I("ZodULID",(e,t)=>{pc.init(e,t),de.init(e,t)});function zh(e){return ui(Ni,e)}var qi=I("ZodXID",(e,t)=>{uc.init(e,t),de.init(e,t)});function bh(e){return li(qi,e)}var Bi=I("ZodKSUID",(e,t)=>{lc.init(e,t),de.init(e,t)});function yh(e){return mi(Bi,e)}var Wi=I("ZodIPv4",(e,t)=>{xc.init(e,t),de.init(e,t)});function Sh(e){return fi(Wi,e)}var ru=I("ZodMAC",(e,t)=>{bc.init(e,t),de.init(e,t)});function vh(e){return Rd(ru,e)}var Zi=I("ZodIPv6",(e,t)=>{zc.init(e,t),de.init(e,t)});function Rh(e){return hi(Zi,e)}var Gi=I("ZodCIDRv4",(e,t)=>{yc.init(e,t),de.init(e,t)});function wh(e){return gi(Gi,e)}var Ji=I("ZodCIDRv6",(e,t)=>{Sc.init(e,t),de.init(e,t)});function Ih(e){return xi(Ji,e)}var Ki=I("ZodBase64",(e,t)=>{vc.init(e,t),de.init(e,t)});function Mh(e){return zi(Ki,e)}var Hi=I("ZodBase64URL",(e,t)=>{Rc.init(e,t),de.init(e,t)});function Oh(e){return bi(Hi,e)}var Xi=I("ZodE164",(e,t)=>{wc.init(e,t),de.init(e,t)});function $h(e){return yi(Xi,e)}var iu=I("ZodCreditCard",(e,t)=>{Ic.init(e,t),de.init(e,t)});function kh(e){return wd(iu,e)}var au=I("ZodIBAN",(e,t)=>{Mc.init(e,t),de.init(e,t)});function Th(e){return Id(au,e)}var Yi=I("ZodJWT",(e,t)=>{Oc.init(e,t),de.init(e,t)});function Ch(e){return Si(Yi,e)}var qt=I("ZodCustomStringFormat",(e,t)=>{$c.init(e,t),de.init(e,t)});function Qi(e,t,i={}){return At(qt,e,t,i)}function Dh(e){return At(qt,"hostname",hs,e)}function _h(e){return At(qt,"hex",Ts,e)}function Eh(e){return At(qt,"currency_code",zs,e)}function jh(e,t){let i=t?.enc??"hex",a=`${e}_${i}`,o=Ge[a];if(!o)throw new Error(`Unrecognized hash format: ${a}`);return At(qt,a,o,t)}var $o=I("ZodNumber",(e,t)=>{Pr.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>dp(e,i,a,o),e.isFinite=!0},C.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:i}=ve(e);return Math.max(t??Number.NEGATIVE_INFINITY,i??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:i}=ve(e);return Math.min(t??Number.POSITIVE_INFINITY,i??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:i}=ve(e);return!!t||!!i?.some(Number.isSafeInteger)},format:e=>ve(e).format??null},{gt(e,t){return this.check(et(e,t))},gte(e,t){return this.check(qe(e,t))},min(e,t){return this.check(qe(e,t))},lt(e,t){return this.check(Qe(e,t))},lte(e,t){return this.check(Ne(e,t))},max(e,t){return this.check(Ne(e,t))},int(e){return this.check(x(e))},safe(e){return this.check(x(e))},positive(e){return this.check(et(0,e))},nonnegative(e){return this.check(qe(0,e))},negative(e){return this.check(Qe(0,e))},nonpositive(e){return this.check(Ne(0,e))},multipleOf(e,t){return this.check(xt(e,t))},step(e,t){return this.check(xt(e,t))},finite(){return this}}));function s(e){return Od($o,e)}var Bt=I("ZodNumberFormat",(e,t)=>{kc.init(e,t),$o.init(e,t)});function x(e){return kd(Bt,e)}function Ph(e){return Td(Bt,e)}function Lh(e){return Cd(Bt,e)}function Vh(e){return Dd(Bt,e)}function Fh(e){return _d(Bt,e)}var ko=I("ZodBoolean",(e,t)=>{fn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>pp(e,i,a,o)});function w(e){return Ed(ko,e)}var To=I("ZodBigInt",(e,t)=>{Lr.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>up(e,i,a,o)},C.derived({minValue:e=>ve(e).minimum??null,maxValue:e=>ve(e).maximum??null,format:e=>ve(e).format??null},{gte(e,t){return this.check(qe(e,t))},min(e,t){return this.check(qe(e,t))},gt(e,t){return this.check(et(e,t))},lt(e,t){return this.check(Qe(e,t))},lte(e,t){return this.check(Ne(e,t))},max(e,t){return this.check(Ne(e,t))},positive(e){return this.check(et(BigInt(0),e))},negative(e){return this.check(Qe(BigInt(0),e))},nonpositive(e){return this.check(Ne(BigInt(0),e))},nonnegative(e){return this.check(qe(BigInt(0),e))},multipleOf(e,t){return this.check(xt(e,t))}}));function Ah(e){return Pd(To,e)}var ea=I("ZodBigIntFormat",(e,t)=>{Tc.init(e,t),To.init(e,t)});function Uh(e){return Vd(ea,e)}function Nh(e){return Fd(ea,e)}var su=I("ZodSymbol",(e,t)=>{Cc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>lp(e,i,a,o)});function qh(e){return Ad(su,e)}var cu=I("ZodUndefined",(e,t)=>{Dc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>fp(e,i,a,o)});function Bh(e){return Ud(cu,e)}var du=I("ZodNull",(e,t)=>{_c.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>mp(e,i,a,o)});function q(e){return Nd(du,e)}var pu=I("ZodAny",(e,t)=>{Ec.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>xp(e,i,a,o)});function Wh(){return qd(pu)}var uu=I("ZodUnknown",(e,t)=>{jc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>zp(e,i,a,o)});function $(){return Bd(uu)}var lu=I("ZodNever",(e,t)=>{Pc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>gp(e,i,a,o)});function ta(e){return Wd(lu,e)}var mu=I("ZodVoid",(e,t)=>{Lc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>hp(e,i,a,o)});function Re(e){return Zd(mu,e)}var Dn=I("ZodDate",(e,t)=>{Vc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>bp(e,i,a,o),e.min=(i,a)=>e.check(qe(i,a)),e.max=(i,a)=>e.check(Ne(i,a))},C.derived({minDate:e=>{let{minimum:t}=ve(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=ve(e);return t?new Date(t):null}},{}));function Zh(e){return Gd(Dn,e)}var fu=I("ZodArray",(e,t)=>{Nt(),Fc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Cp(e,i,a,o),e.element=t.element},{min(e,t){return this.check(ct(e,t))},nonempty(e){return this.check(ct(1,e))},max(e,t){return this.check(Vt(e,t))},length(e,t){return this.check(Ft(e,t))},unwrap(){return this.element}});function h(e,t){return Hd(fu,e,t)}function Gh(e){let t=e._zod.def.shape;return l(Object.keys(t))}var _n=I("ZodObject",(e,t)=>{Nt(),Ac.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Dp(e,i,a,o),C.installLazyProp(e,"shape",i=>i._zod.def.shape,!1)},{keyof(){return l(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(C.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(C.mergeDefs(this._zod.def,{catchall:$()}))},loose(){return this.clone(C.mergeDefs(this._zod.def,{catchall:$()}))},strict(){return this.clone(C.mergeDefs(this._zod.def,{catchall:ta()}))},strip(){return this.clone(C.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return C.extend(this,e)},safeExtend(e){return C.safeExtend(this,e)},merge(e){return C.merge(this,e)},pick(e){return C.pick(this,e)},omit(e){return C.omit(this,e)},partial(...e){return C.partial(jn,this,e[0])},exactPartial(...e){return C.partial(na,this,e[0],"exactPartial")},required(...e){return C.required(ra,this,e[0])}});function T(e,t){let i={type:"object",shape:e??{},...C.normalizeParams(t)};return new _n(i)}function c(e,t){return new _n({type:"object",shape:e,catchall:ta(),...C.normalizeParams(t)})}function Mt(e,t){return new _n({type:"object",shape:e,catchall:$(),...C.normalizeParams(t)})}var En=I("ZodUnion",(e,t)=>{hn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>$i(e,i,a,o),e.options=t.options});function z(e,t){return new En({type:"union",options:e,...C.normalizeParams(t)})}var hu=I("ZodXor",(e,t)=>{En.init(e,t),Uc.init(e,t),e._zod.processJSONSchema=(i,a,o)=>$i(e,i,a,o),e.options=t.options});function Jh(e,t){return new hu({type:"union",options:e,inclusive:!1,...C.normalizeParams(t)})}var gu=I("ZodDiscriminatedUnion",(e,t)=>{En.init(e,t),qc.init(e,t)});function Kh(e,t,i){return new gu({type:"union",options:t,discriminator:e,...C.normalizeParams(i)})}var xu=I("ZodIntersection",(e,t)=>{Bc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>_p(e,i,a,o)});function zu(e,t){return new xu({type:"intersection",left:e,right:t})}var bu=I("ZodTuple",(e,t)=>{Nt(),Vr.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Ep(e,i,a,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new jn({type:"optional",innerType:t}))})}});function F(e,t,i){let a=t instanceof H,o=a?i:t,r=a?t:null;return new bu({type:"tuple",items:e,rest:r,...C.normalizeParams(o)})}var Io=I("ZodRecord",(e,t)=>{Nt(),Wc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>jp(e,i,a,o),e.keyType=t.keyType,e.valueType=t.valueType});function y(e,t,i){return!t||!t._zod?new Io({type:"record",keyType:n(),valueType:e,...C.normalizeParams(t)}):new Io({type:"record",keyType:e,valueType:t,...C.normalizeParams(i)})}function Hh(e,t,i){return new Io({type:"record",keyType:e,valueType:t,...C.normalizeParams(i),partial:!0})}function Xh(e,t,i){return new Io({type:"record",keyType:e,valueType:t,mode:"loose",...C.normalizeParams(i)})}var yu=I("ZodMap",(e,t)=>{Nt(),Zc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>kp(e,i,a,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...i)=>e.check(tt(...i)),e.nonempty=i=>e.check(tt(1,i)),e.max=(...i)=>e.check(zt(...i)),e.size=(...i)=>e.check(Lt(...i))});function Yh(e,t,i){return new yu({type:"map",keyType:e,valueType:t,...C.normalizeParams(i)})}var Su=I("ZodSet",(e,t)=>{Nt(),Gc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Tp(e,i,a,o),e.min=(...i)=>e.check(tt(...i)),e.nonempty=i=>e.check(tt(1,i)),e.max=(...i)=>e.check(zt(...i)),e.size=(...i)=>e.check(Lt(...i))});function Qh(e,t){return new Su({type:"set",valueType:e,...C.normalizeParams(t)})}var Mo=I("ZodEnum",(e,t)=>{Jc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(a,o,r)=>yp(e,a,o,r),e.enum=t.entries,e.options=[...e._zod.values];let i=new Set(Object.keys(t.entries));e.extract=(a,o)=>{let r={};for(let d of a)if(i.has(d))r[d]=t.entries[d];else throw new Error(`Key ${d} not found in enum`);return new Mo({...t,checks:[],...C.normalizeParams(o),entries:r})},e.exclude=(a,o)=>{let r={...t.entries};for(let d of a)if(i.has(d))delete r[d];else throw new Error(`Key ${d} not found in enum`);return new Mo({...t,checks:[],...C.normalizeParams(o),entries:r})}});function l(e,t){let i=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Mo({type:"enum",entries:i,...C.normalizeParams(t)})}function eg(e,t){return new Mo({type:"enum",entries:e,...C.normalizeParams(t)})}var vu=I("ZodLiteral",(e,t)=>{Kc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Sp(e,i,a,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function u(e,t){return new vu({type:"literal",values:Array.isArray(e)?e:[e],...C.normalizeParams(t)})}var Ru=I("ZodFile",(e,t)=>{Hc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>wp(e,i,a,o),e.min=(i,a)=>e.check(tt(i,a)),e.max=(i,a)=>e.check(zt(i,a)),e.mime=(i,a)=>e.check(go(Array.isArray(i)?i:[i],a))});function tg(e){return Xd(Ru,e)}var wu=I("ZodTransform",(e,t)=>{Nt(),Xc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>$p(e,i,a,o),e._zod.parse=(i,a)=>{if(a.direction==="backward")throw new gt(e.constructor.name);i.addIssue=r=>{if(typeof r=="string")i.issues.push(C.issue(r,i.value,t));else{let d=r;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),"input"in d||(d.input=i.value),d.inst??(d.inst=e),i.issues.push(C.issue(d))}};let o=t.transform(i.value,i);return o instanceof Promise?o.then(r=>(i.value=r,i)):(i.value=o,i)}});function oa(e){return new wu({type:"transform",transform:e})}var jn=I("ZodOptional",(e,t)=>{Fr.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>ki(e,i,a,o),e.unwrap=()=>e._zod.def.innerType});function Ut(e){return new jn({type:"optional",innerType:e})}var na=I("ZodExactOptional",(e,t)=>{Yc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>ki(e,i,a,o),e.unwrap=()=>e._zod.def.innerType});function Iu(e){return new na({type:"optional",innerType:e})}var Mu=I("ZodNullable",(e,t)=>{Qc.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Pp(e,i,a,o),e.unwrap=()=>e._zod.def.innerType});function Tn(e){return new Mu({type:"nullable",innerType:e})}function og(e){return Ut(Tn(e))}var Ou=I("ZodDefault",(e,t)=>{ed.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Fp(e,i,a,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $u(e,t){return new Ou({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():C.shallowClone(t)}})}var ku=I("ZodPrefault",(e,t)=>{td.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Ap(e,i,a,o),e.unwrap=()=>e._zod.def.innerType});function Tu(e,t){return new ku({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():C.shallowClone(t)}})}var ra=I("ZodNonOptional",(e,t)=>{od.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Lp(e,i,a,o),e.unwrap=()=>e._zod.def.innerType});function Cu(e,t){return new ra({type:"nonoptional",innerType:e,...C.normalizeParams(t)})}var Du=I("ZodSuccess",(e,t)=>{nd.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Ip(e,i,a,o),e.unwrap=()=>e._zod.def.innerType});function ng(e){return new Du({type:"success",innerType:e})}var _u=I("ZodCatch",(e,t)=>{rd.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Up(e,i,a,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Eu(e,t){return new _u({type:"catch",innerType:e,catchValue:typeof t=="function"?t:C.constantCatch(t)})}var ju=I("ZodNaN",(e,t)=>{id.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>vp(e,i,a,o)});function rg(e){return Kd(ju,e)}var Pn=I("ZodPipe",(e,t)=>{Ar.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Np(e,i,a,o),e.in=t.in,e.out=t.out});function Ei(e,t){return new Pn({type:"pipe",in:e,out:t})}var Ln=I("ZodCodec",(e,t)=>{Pn.init(e,t),gn.init(e,t)});function ig(e,t,i){return new Ln({type:"pipe",in:e,out:t,transform:i.decode,reverseTransform:i.encode})}function ag(e){let t=e._zod.def;return new Ln({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Pu=I("ZodPreprocess",(e,t)=>{Pn.init(e,t),ad.init(e,t)}),Lu=I("ZodReadonly",(e,t)=>{sd.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>qp(e,i,a,o),e.unwrap=()=>e._zod.def.innerType});function Vu(e){return new Lu({type:"readonly",innerType:e})}var Fu=I("ZodTemplateLiteral",(e,t)=>{cd.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Rp(e,i,a,o)});function sg(e,t){return new Fu({type:"template_literal",parts:e,...C.normalizeParams(t)})}var Au=I("ZodLazy",(e,t)=>{xn.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Wp(e,i,a,o),e.unwrap=()=>e._zod.def.getter()});function pt(e){return new Au({type:"lazy",getter:e})}var Uu=I("ZodPromise",(e,t)=>{pd.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Bp(e,i,a,o),e.unwrap=()=>e._zod.def.innerType});function cg(e){return new Uu({type:"promise",innerType:e})}var Nu=I("ZodFunction",(e,t)=>{dd.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Op(e,i,a,o)});function dg(e){return new Nu({type:"function",input:Array.isArray(e?.input)?F(e?.input):e?.input??h($()),output:e?.output??$()})}var Vn=I("ZodCustom",(e,t)=>{ud.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(i,a,o)=>Mp(e,i,a,o)});function pg(e){let t=new pe({check:"custom"});return t._zod.check=e,t}function ug(e,t){return Yd(Vn,e??(()=>!0),t)}function qu(e,t={}){return Qd(Vn,e,t)}function Bu(e,t){return ep(e,t)}var lg=tp,mg=op,Wu=I("ZodInstanceOf",(e,t)=>{Vn.init(e,t)},{properties(e,t){return this.check(ho(e,t))}});function fg(e,t={}){let i=new Wu({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...C.normalizeParams(t)});return i._zod.bag.Class=e,i._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:i,path:[...i._zod.def.path??[]]})},i}var hg=(...e)=>np({Codec:Ln,Boolean:ko,String:Oo},...e);function gg(e){let t=pt(()=>z([n(e),s(),w(),q(),h(t),y(n(),t)]));return t}function xg(e,t){return new Pu({type:"pipe",in:oa(e),out:t})}var SR={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function vR(e){xe({customError:e})}function RR(){return xe().customError}var Zu;Zu||(Zu={});var Fn={};rt(Fn,{ZodISODate:()=>Rt,ZodISODateTime:()=>vt,ZodISODuration:()=>It,ZodISOTime:()=>wt,date:()=>IR,datetime:()=>wR,duration:()=>OR,time:()=>MR});function wR(e){return wn(vt,e)}function IR(e){return In(Rt,e)}function MR(e){return Mn(wt,e)}function OR(e){return On(It,e)}var N={...Co,...Di,iso:Fn},$R=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function kR(e,t){let i=e.$schema;return i==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":i==="http://json-schema.org/draft-07/schema#"?"draft-7":i==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function zg(e,t){return e.map((i,a)=>a<t?i:i.optional())}function TR(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function CR(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let i=e.slice(1).split("/").filter(Boolean);if(i.length===0)return t.rootSchema;let a=t.version==="draft-2020-12"?"$defs":"definitions";if(i[0]===a){let o=i[1]===void 0?void 0:TR(i[1]);if(!o||!t.defs[o])throw new Error(`Reference not found: ${e}`);return t.defs[o]}throw new Error(`Reference not found: ${e}`)}function DR(e,t){return N.transform(a=>a).check(a=>{let o=a.value;if(typeof o!="object"||o===null||Array.isArray(o))return;let r=Object.getOwnPropertyNames(o);if(t.minProperties!==void 0&&r.length<t.minProperties&&a.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:o,inst:e,continue:!0}),t.maxProperties!==void 0&&r.length>t.maxProperties&&a.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:o,inst:e,continue:!0}),t.keySchema)for(let d of r){let p=t.keySchema.safeParse(d);p.success||a.issues.push({code:"invalid_key",origin:"record",issues:p.error.issues,input:d,path:[d],continue:!0})}}).pipe(e)}function Gu(e,t){if(e===null)return"z";let i=typeof e;if(i!=="object"){if(i==="number"&&Number.isNaN(e))return null;let a=String(e);return`${i[0]}${a.length}:${a}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let r=[];for(let d of e){let p=Gu(d,t);if(p===null)return null;r.push(p)}return`a${r.length}:[${r.join(",")}]`}let a=Object.keys(e).sort(),o=[];for(let r of a){let d=Gu(e[r],t);if(d===null)return null;o.push(`${r.length}:${r}=${d}`)}return`o${o.length}:{${o.join(",")}}`}finally{t.delete(e)}}var _R=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),ER=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function An(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(An):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,i])=>_R.has(t)?An(i):!ER.has(t)||typeof i!="object"||i===null?!1:Object.values(i).some(An))}function bg(e){return e===1?"element":"elements"}function jR(e,t){return N.transform(a=>a).check(a=>{let o=a.value;if(Array.isArray(o)){if(t.uniqueItems===!0){let r=new Map;for(let d=0;d<o.length;d++){let p=Gu(o[d],new Set);if(p===null)continue;let f=r.get(p);if(f===void 0){r.set(p,d);continue}a.issues.push({code:"custom",message:`Array items must be unique: element at index ${d} duplicates the one at index ${f}`,input:o,path:[d],continue:!0})}}if(t.containsSchema){let r=t.minContains??1,d=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,p=0;for(let f of o)if(t.containsSchema.safeParse(f).success&&++p>=d)break;p<r&&a.issues.push({code:"custom",message:`Array must contain at least ${r} matching ${bg(r)}; found ${p}`,input:o,continue:!0}),t.maxContains!==void 0&&p>t.maxContains&&a.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${bg(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function yg(e,t){if(e!==!1)return e===void 0||e===!0?N.any():je(e,t)}var PR=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function Sg(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return N.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let o=e.$ref;if(t.refs.has(o))return t.refs.get(o);if(t.processing.has(o))return N.lazy(()=>{if(!t.refs.has(o))throw new Error(`Circular reference not resolved: ${o}`);return t.refs.get(o)});t.processing.add(o);let r=CR(o,t),d=je(r,t);return t.refs.set(o,d),t.processing.delete(o),d}if(e.enum!==void 0){let o=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&o.length===1&&o[0]===null)return N.null();if(o.length===0)return N.never();if(o.length===1)return N.literal(o[0]);if(o.every(d=>typeof d=="string"))return N.enum(o);let r=o.map(d=>N.literal(d));return r.length<2?r[0]:N.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return N.literal(e.const);let i=e.type;if(Array.isArray(i)){let o=i.map(r=>{let d={...e,type:r};return Sg(d,t)});return o.length===0?N.never():o.length===1?o[0]:N.union(o)}if(!i)return N.any();let a;switch(i){case"string":{let o=N.string();if(e.format){let r=e.format;r==="email"?o=o.check(N.email()):r==="uri"||r==="uri-reference"?o=o.check(N.url()):r==="uuid"||r==="guid"?o=o.check(N.uuid()):r==="date-time"?o=o.check(N.iso.datetime({offset:!0})):r==="date"?o=o.check(N.iso.date()):r==="time"?o=o.check(N.regex(PR)):r==="duration"?o=o.check(N.iso.duration()):r==="hostname"?o=o.check(N.hostname()):r==="ipv4"?o=o.check(N.ipv4()):r==="ipv6"?o=o.check(N.ipv6()):r==="mac"?o=o.check(N.mac()):r==="cidr"?o=o.check(N.cidrv4()):r==="cidr-v6"?o=o.check(N.cidrv6()):r==="base64"?o=o.check(N.base64()):r==="base64url"?o=o.check(N.base64url()):r==="e164"?o=o.check(N.e164()):r==="credit_card"?o=o.check(N.creditCard()):r==="iban"?o=o.check(N.iban()):r==="jwt"?o=o.check(N.jwt()):r==="emoji"?o=o.check(N.emoji()):r==="nanoid"?o=o.check(N.nanoid()):r==="cuid"?o=o.check(N.cuid()):r==="cuid2"?o=o.check(N.cuid2()):r==="ulid"?o=o.check(N.ulid()):r==="xid"?o=o.check(N.xid()):r==="ksuid"&&(o=o.check(N.ksuid()))}typeof e.minLength=="number"&&(o=o.min(e.minLength)),typeof e.maxLength=="number"&&(o=o.max(e.maxLength)),e.pattern&&(o=o.regex(new RegExp(e.pattern))),a=o;break}case"number":case"integer":{let o=i==="integer"?N.number().int():N.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(o=o.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(o=o.max(e.maximum)),typeof e.exclusiveMinimum=="number"?o=o.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(o=o.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?o=o.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(o=o.lt(e.maximum)),typeof e.multipleOf=="number"&&(o=o.multipleOf(e.multipleOf)),a=o;break}case"boolean":{a=N.boolean();break}case"null":{a=N.null();break}case"object":{let o={},r=e.properties||{},d=new Set(e.required||[]),p=typeof e.additionalProperties=="object"?je(e.additionalProperties,t):void 0;for(let[b,S]of Object.entries(r)){let R=je(S,t);Oe(o,b,d.has(b)?R:R.optional())}if(e.patternProperties){let b=e.patternProperties,S=Object.keys(b),R=[];for(let k of S){let E=je(b[k],t),Z=N.string().regex(new RegExp(k));R.push(N.looseRecord(Z,E))}let O=[];if(Object.keys(o).length>0&&O.push(N.object(o).passthrough()),O.push(...R),O.length===0)a=N.object({}).passthrough();else if(O.length===1)a=O[0];else{let k=N.intersection(O[0],O[1]);for(let E=2;E<O.length;E++)k=N.intersection(k,O[E]);a=k}if(e.additionalProperties===!1){let k=Object.keys(o),E=S.map(U=>new RegExp(U)),Z=a;a=a.check(U=>{if(!We(U.value))return;let V=[];for(let J of Object.keys(U.value))k.includes(J)||E.some(ce=>ce.test(J))||V.push(J);V.length&&U.issues.push({code:"unrecognized_keys",keys:V,input:U.value,inst:Z})})}}else{let b=N.object(o);e.additionalProperties===!1?a=b.strict():p?a=b.catchall(p):a=b.passthrough()}let f=e.propertyNames!==void 0&&e.propertyNames!==!0,m=typeof e.minProperties=="number"?e.minProperties:void 0,g=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(f||m!==void 0||g!==void 0){let b;if(f){let S=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;b=je(S,t)}a=DR(a,{keySchema:b,minProperties:m,maxProperties:g})}break}case"array":{let o=e.prefixItems,r=e.items;if(o&&Array.isArray(o)){let d=typeof e.minItems=="number"?e.minItems:0,p=o.map(b=>je(b,t)),f=zg(p,d),m=Array.isArray(r)?void 0:yg(r,t),g=N.tuple(f);a=m?g.rest(m):g,typeof e.minItems=="number"&&(a=a.check(N.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(N.maxLength(e.maxItems)))}else if(Array.isArray(r)){let d=typeof e.minItems=="number"?e.minItems:0,p=r.map(b=>je(b,t)),f=zg(p,d),m=yg(e.additionalItems,t),g=N.tuple(f);a=m?g.rest(m):g,typeof e.minItems=="number"&&(a=a.check(N.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(N.maxLength(e.maxItems)))}else if(r!==void 0){let d=je(r,t),p=N.array(d);typeof e.minItems=="number"&&(p=p.min(e.minItems)),typeof e.maxItems=="number"&&(p=p.max(e.maxItems)),a=p}else a=N.array(N.any());(e.uniqueItems===!0||e.contains!==void 0)&&(a=jR(a,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?je(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${i}`)}return a}function je(e,t){if(typeof e=="boolean")return e?N.any():N.never();let i=Sg(e,t),a=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let p=e.anyOf.map(m=>je(m,t)),f=N.union(p);i=a?N.intersection(i,f):f}if(e.oneOf&&Array.isArray(e.oneOf)){let p=e.oneOf.map(m=>je(m,t)),f=N.xor(p);i=a?N.intersection(i,f):f}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)i=a?i:N.any();else{let p=a?i:je(e.allOf[0],t),f=a?0:1;for(let m=f;m<e.allOf.length;m++)p=N.intersection(p,je(e.allOf[m],t));i=p}e.nullable===!0&&t.version==="openapi-3.0"&&(i=N.nullable(i)),e.readOnly===!0&&(i=N.readonly(i)),e.default!==void 0&&(i=i.default(e.default));let o={},r=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let p of r)p in e&&(o[p]=e[p]);let d=["contentEncoding","contentMediaType","contentSchema"];for(let p of d)p in e&&(o[p]=e[p]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!An(e.propertyNames)&&(o.propertyNames=e.propertyNames);for(let p of["minProperties","maxProperties"])e[p]!==void 0&&(o[p]=e[p])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!An(e.contains)&&(o.contains=e.contains);for(let p of["uniqueItems","minContains","maxContains"])e[p]!==void 0&&(o[p]=e[p])}for(let p of Object.keys(e))$R.has(p)||Oe(o,p,e[p]);return Object.keys(o).length>0&&t.registry.add(i,o),e.description&&(i=i.describe(e.description)),i}function vg(e,t){if(typeof e=="boolean")return e?N.any():N.never();let i;try{i=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let a=kR(i,t?.defaultTarget),o=i.$defs||i.definitions||{},r={version:a,defs:o,refs:new Map,processing:new Set,rootSchema:i,registry:t?.registry??$e};return je(i,r)}var Rg=Symbol("z.visit/resolving");function Un(e,t){let i=typeof t=="function"?t:(d,p)=>{let f=t[d._zod.def.type];return f?f(d,p):d},a=new Map;function o(d){let p=a.get(d);if(p===Rg)return new xn({type:"lazy",getter:()=>a.get(d)});if(p!==void 0)return p;a.set(d,Rg);let f=r(d),m=i(f,f!==d);return a.set(d,m),m}function r(d){let p=d._zod.def,f=p.type;switch(f){case"object":{let m=p.shape,g=Object.keys(m),b=!1,S={};for(let O of g){let k=o(m[O]);k!==m[O]&&(b=!0),S[O]=k}let R=p.catchall;return p.catchall&&(R=o(p.catchall),R!==p.catchall&&(b=!0)),b?ie(d,{...p,shape:S,catchall:R}):d}case"array":{let m=o(p.element);return m===p.element?d:ie(d,{...p,element:m})}case"tuple":{let m=p.items,g=!1,b=[];for(let R of m){let O=o(R);O!==R&&(g=!0),b.push(O)}let S=p.rest;return p.rest&&(S=o(p.rest),S!==p.rest&&(g=!0)),g?ie(d,{...p,items:b,rest:S}):d}case"record":case"map":{let m=o(p.keyType),g=o(p.valueType);return m===p.keyType&&g===p.valueType?d:ie(d,{...p,keyType:m,valueType:g})}case"set":{let m=o(p.valueType);return m===p.valueType?d:ie(d,{...p,valueType:m})}case"union":{let m=p.options,g=!1,b=[];for(let S of m){let R=o(S);R!==S&&(g=!0),b.push(R)}return g?ie(d,{...p,options:b}):d}case"intersection":{let m=o(p.left),g=o(p.right);return m===p.left&&g===p.right?d:ie(d,{...p,left:m,right:g})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let m=o(p.innerType);return m===p.innerType?d:ie(d,{...p,innerType:m})}case"pipe":{let m=o(p.in),g=o(p.out);return m===p.in&&g===p.out?d:ie(d,{...p,in:m,out:g})}case"function":{let m=o(p.input),g=o(p.output);return m===p.input&&g===p.output?d:ie(d,{...p,input:m,output:g})}case"lazy":{let m=p.getter,{_cachedInner:g,...b}=p;return ie(d,{...b,getter:()=>o(m())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return d;default:return d}}return o(e)}function wg(e){return Un(e,{object:t=>t.partial(),union:t=>{let i=t._zod.def;return i.discriminator===void 0?t:z(i.options)}})}function LR(e,t){if(!t?.length)return e;let i=e._zod.def;return ie(e,Ke(i,{checks:[...i.checks??[],...t]}),{parent:!0})}function Ig(e){return LR(e.out,e.checks)}function VR(e){return e.in._zod.traits.has("$ZodTransform")?Ig(e):e.in}function Mg(e){return Un(e,{pipe:t=>VR(t._zod.def),default:(t,i)=>i?Ut(t._zod.def.innerType):t,catch:(t,i)=>i?t._zod.def.innerType:t})}function Og(e){return Un(e,{pipe:t=>Ig(t._zod.def),prefault:(t,i)=>i?t._zod.def.innerType:t})}var Ju={};rt(Ju,{bigint:()=>NR,boolean:()=>UR,date:()=>qR,number:()=>AR,string:()=>FR});function FR(e){return vd(Oo,e)}function AR(e){return $d($o,e)}function UR(e){return jd(ko,e)}function NR(e){return Ld(To,e)}function qR(e){return Jd(Dn,e)}var KR="cueframe/components";var HR="cueframe.json",XR=Nn.object({componentsDir:Nn.string().min(1).default(KR)}).passthrough();function qn(e){let t=e,i=JR(t).root;for(;;){let a=Do(t,HR);if(ia(a)){let o=BR(a,"utf8"),r=XR.parse(JSON.parse(o));return{root:t,manifest:r}}if(t===i)return null;t=GR(t)}}function $g(e){return Do(e.root,e.manifest.componentsDir)}function _o(e,t){return Do($g(e),t)}function kg(e){let t=$g(e);return ia(t)?WR(t).filter(i=>{let a=Do(t,i);return ZR(a).isDirectory()?ia(Do(a,"index.tsx"))&&ia(Do(a,"config.ts")):!1}).sort():[]}import{readFileSync as kye,existsSync as Tye}from"fs";import{join as Cye}from"path";var Tg=c({featureId:n().describe("Stable billing feature id."),name:n().describe("Human-readable feature name."),type:l(["metered","boolean","credit_system"]).describe("metered = a depleting/gauge quota (has balances); boolean = an on/off plan grant; credit_system = a spendable wallet the metered lines draw from."),unit:z([l(["cents","count","minutes","gb"]),q()]).describe("What `balance`/`includedUsage`/`usage` are COUNTED IN \u2014 do not assume. `exports` is output-MINUTES (not a number of renders), `compose`/`ai_tokens`/`compose_verify`/`generate` are CENTS of spend (not a number of calls), `compose_capture` is a count of stills, `storage` is GB, a credit system is cents (1 credit = $0.01). null = boolean feature, nothing to count."),included:w().nullable().describe("Does the CURRENT plan grant this feature? For a credit-funded feature (see `fundedBy`) this is true whenever the plan grants the funding wallet \u2014 spend is then bounded by `balance`, not by inclusion. false = not on this plan (a create gated on it 402s billing_required); null = unknown (billing not configured / no live data)."),unlimited:w().nullable().describe("Metered only: the plan grants an effectively-unlimited allowance. null = unknown / boolean feature."),balance:s().nullable().describe("Metered only: remaining balance for the current period, in THIS feature's unit. For a credit-funded feature it is the funding wallet's balance restated at `creditCost` credits per unit \u2014 a SHARE of a pool, not a private allowance. null = unknown / boolean feature."),includedUsage:s().nullable().describe("Metered only: the plan's included allowance (the period limit), in this feature's unit. null = unknown / boolean feature."),usage:s().nullable().describe("Metered only: amount consumed this period, in this feature's unit. null = unknown / boolean feature."),nextResetAt:s().nullable().describe("Metered only: epoch-ms when the period balance resets. null = unknown / no scheduled reset."),fundedBy:n().nullable().describe("The credit system that actually pays for this feature (always `credits` \u2014 there is one wallet). Non-null means the feature has NO separate allowance: its `balance` restates that shared wallet, and every other feature with the same `fundedBy` competes for the same money. null = the plan grants this feature directly."),creditCost:s().nullable().describe("Credits consumed per ONE unit of this feature (exports 50 = $0.50 per 1080p output-minute; compose_capture 2 = $0.02 per still). null = not credit-funded."),listUsdPerUnit:s().nullable().describe("LIST price in USD of ONE unit of this feature (see `unit`) \u2014 the quote to read BEFORE a call. Credit-funded: `creditCost`/100 (exports 0.5 per 1080p output-minute; compose_capture 0.02 per still; compose/ai_tokens/generate 0.015 per cent of provider cost). 0 = the plan grants this feature and it draws NO credits (resource_import: stock search AND import are free for a keyed caller, bytes count toward `storage`; brand_kits). null = not quotable up front (a wallet, a gauge, or a feature the plan does not grant).")}).describe("A single feature's entitlement: whether the plan includes it, remaining/limit when metered, and the per-unit list price to quote before a call");var YR=c({generationLimit:z([c({applies:w(),unit:u("cents_of_provider_cost"),cap:s().nullable(),spent:s().nullable(),remaining:s().nullable()}),q()]).describe("Separate lifetime generation cap before a credit-pack purchase. Wallet balance is still shared; generation must also fit this remaining provider-cost allowance. null means unknown."),orgId:n().describe("The org this API key is bound to \u2014 resolved server-side from the Authorization credential, NEVER from the request body/query."),displayName:n().nullable().describe("Org/customer display name from the billing record; null when not set or unknown."),plan:z([c({id:n().describe("Plan/product id (e.g. free, pro, business, studio)."),name:n().nullable().describe("Plan display name.")}),q()]).describe("The customer's current base plan/tier. null = unknown (billing not configured, or no active plan resolvable yet)."),entitlements:y(n(),Tg).describe("Per-feature entitlements keyed by featureId. Covers the billing-gated capabilities: `exports` gates create_render AND generate_media output; `compose` gates compose; `brand_kits` gates create_brand_kit; `resource_import` gates import_resource (a boolean grant: `listUsdPerUnit` 0 \u2014 stock search and import cost no credits for a keyed caller); plus ai_tokens/storage/compose_verify/compose_capture/etc. Read `listUsdPerUnit` for what one unit costs before you spend it. Most capabilities are CREDIT-FUNDED \u2014 `included` is true and the real limit is `balance`, drawn from the shared wallet named in `fundedBy` (`credits` \u2014 generation included; a free org is additionally bounded by a generation cap). So read `balance`, not `included`, to decide whether you can afford a call; `included:false` means the plan genuinely lacks the feature. Check BEFORE a metered call to avoid a mid-workflow 402 billing_required (whose error `details.featureId` names the gating feature)."),costCeilings:c({generateMediaUsdPerCall:s().nullable().describe("Per-call USD ceiling for generate_media: a generation whose ESTIMATE exceeds this 402s (generation_budget_exceeded) before any spend. Right-size the prompt/duration under this. null = unknown.")}).describe("Discoverable per-call cost ceilings so an agent can price/right-size a request before a guaranteed 402."),billingConfigured:w().describe("false = billing is not configured in this environment, so plan/entitlement values are best-effort and may be null (unknown), not authoritative."),surfaces:c({console:n().describe("Origin of the authenticated web console."),usage:n().describe("Browser URL for the usage ledger."),billing:n().describe("Browser URL for plan and credits."),apiKeys:n().describe("Browser URL for minting and revoking API keys."),project:q().describe("No per-project browser view exists yet, so there is no URL to hand a user for a project or its composition. Stated as an explicit null so a client does not construct a route that 404s (CUE-19). Show a rendered frame (preview_frame) or a completed render instead.")}).describe('The browser URLs that actually exist, so an agent asked to "show me" can hand the user a real link instead of guessing one from an id. A null means the surface is not built, not that it is hidden from this key.')}).describe("Account discovery for the authenticated key: identity + plan + entitlements + cost ceilings + the browser surfaces that exist. Read this to see what your plan/credits allow before a metered call (create_render / compose / generate_media / create_brand_kit).");var QR=0,ew=9007199254740991,tw=c({name:n().min(1),permissions:y(n(),h(l(["read","write"])).min(1)).describe("Resource \u2192 actions grant. Resources: media, sessions, projects, renders, webhooks, billing. Actions: read, write. Least-privilege \u2014 grant only what's needed (billing:write is required to start a checkout)."),expiresIn:x().gt(QR).max(ew).optional().describe("Lifetime in seconds; omit for no expiry.")});var ow=c({key:n().describe("The full secret key (cf_test_\u2026 / cf_live_\u2026). Shown ONCE \u2014 store it now."),id:n(),prefix:n(),start:n().describe("First chars of the key, for later identification.")});var Cg=c({ref:n().describe("Placement handle: a pack soundId/bedId, or an org media id."),role:l(["vo","music","sfx","ambience"]).describe("Declared role for mix policy."),envelopeClass:l(["transient","sweep","ambient"]).describe("Coarse envelope shape \u2014 the browse grouping."),description:n(),durationSec:s(),evidence:c({envelopeClass:l(["transient","sweep","ambient"]),attackMs:s().optional(),spectralCentroidHz:s().optional(),meanVolumeDb:s().optional(),maxVolumeDb:s().optional()}).describe("Envelope probe evidence (always carries envelopeClass)."),source:l(["pack","org","generated"]).describe("Provenance discriminant."),license:n().describe('"CC0" (pack), "org-owned"/a CC token (org), or "generated".'),provenance:n().describe("Human-legible provenance (pack attribution / org-owned / generator + prompt)."),bpm:s().optional().describe("Tempo \u2014 present for music-role entries."),mood:h(n()).optional().describe("Editorial mood tags \u2014 present for pack music beds.")});var Dg=c({id:n().describe("Billing catalog product id (e.g. pro, pro_yearly)."),tier:n().describe("Plan tier: pro | business | studio."),name:n(),interval:n().describe("month | year."),priceUsd:s().describe("Price in USD for the interval.")});var nw=c({plans:h(Dg).describe("Every purchasable {tier, interval} and its product id."),billingConfigured:w()});var rw=200,iw=200,aw=2e3,sw=500,cw=500,dw=5e3,pw=0,uw=1,lw=300,mw=0,fw=1e4,hw=120,gw=24,xw=40,zw=500,bw=0,yw=5e3,Sw=0,vw=5e3,Rw=0,ww=2e3,Iw=0,Mw=9007199254740991,Ow=24,$w=0,kw=1,Tw=300,Cw=24,Dw=4e3,_w=0,Ew=60,jw=6,Pw=24,Lw=60,Vw=c({kitId:n().min(1).max(rw),name:n().min(1).max(iw),description:n().max(aw).optional(),tagline:n().max(sw).optional(),secondaryTagline:n().max(cw).optional(),colors:c({primary:n().min(1),secondary:n().min(1),accent:n().min(1),background:n().min(1),text:n().min(1)}),extraColors:h(c({hex:n().min(1),label:n().min(1),usage:n().optional()})).optional(),headingFont:c({fontFamily:n().min(1),fontWeight:s()}),bodyFont:c({fontFamily:n().min(1),fontWeight:s()}),voiceGuidelines:n().max(dw).optional(),syncCaptions:w().optional(),captionProfile:c({fontFamily:n().optional(),fontSize:s().optional(),fontWeight:s().optional(),color:n().optional(),highlightColor:n().optional(),backgroundColor:n().optional(),plate:l(["glass","solid","none"]).optional(),position:l(["top","center","bottom"]).optional(),textTransform:l(["none","uppercase"]).optional(),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),entranceMs:s().optional(),entranceStaggerMs:s().optional(),exitMs:s().optional(),emphasisColor:n().optional(),emphasisScale:s().optional(),emphasisFontFamily:n().optional(),emphasisFontWeight:s().optional(),emphasisFontStyle:l(["normal","italic"]).optional(),emphasisTextTransform:l(["none","uppercase"]).optional(),emphasisLetterSpacing:s().optional(),emphasisPlate:w().optional(),emphasisPlateColor:n().optional(),emphasisPlateTextColor:n().optional()}).optional(),motion:c({duration:s().optional(),easing:z([l(["linear","ease","ease-in","ease-out","ease-in-out"]),c({kind:u("cubic-bezier"),x1:s(),y1:s(),x2:s(),y2:s()})]).optional(),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),staggerMs:s().optional(),exitMs:s().optional()}).optional(),logo:c({src:n().min(1),alt:n().optional(),placement:l(["tl","tr","bl","br"]).optional(),sizePct:s().optional()}).optional(),intro:c({kind:l(["card","video"]),src:n().min(1).optional(),title:n().optional(),subtitle:n().optional(),durationMs:s().optional()}).optional(),outro:c({kind:l(["card","video"]),src:n().min(1).optional(),title:n().optional(),subtitle:n().optional(),durationMs:s().optional()}).optional(),watermark:c({src:n().min(1),opacity:s().min(pw).max(uw).optional(),placement:l(["tl","tr","bl","br"]).optional()}).optional(),spacing:c({base:s().optional(),lg:s().optional(),sm:s().optional()}).optional(),sizing:c({fontSizeHeading:s().optional(),fontSizeBody:s().optional(),fontSizeLabel:s().optional(),borderRadius:s().optional()}).optional(),audio:c({sfxIntensity:l(["off","light","standard","dense"]).optional(),musicEnabled:w().optional(),musicMood:n().max(lw).optional(),sonicLogo:c({ref:n().min(1),placement:l(["intro","outro","both"]),offsetMs:x().min(mw).max(fw).optional()}).optional().describe("A brand sound signature bound to the intro/outro bookend. `ref` = a palette reference; bound only when the kit carries the matching bumper (intro/outro), else a non-blocking advisory."),uiSoundSet:c({tick:n().min(1).optional(),pop:n().min(1).optional(),impact:n().min(1).optional(),confirm:n().min(1).optional(),error:n().min(1).optional(),whoosh:n().min(1).optional(),riser:n().min(1).optional()}).optional().describe("Per-family SFX overrides (the brand's own tick/pop/\u2026). Highest-priority tier over the org palette + pack default in the compose SFX draw."),bedStyle:c({bedId:n().min(1).optional(),genre:n().max(hw).optional(),bpmRange:c({min:s(),max:s()}).optional()}).optional().describe("Preferred music bed (`bedId`) or a style hint (`genre` / `bpmRange`). Surfaced for driving agents; compose does not auto-select a pack bed."),ambiencePreference:z([c({ref:n().min(1)}),q()]).optional().describe("Preferred ambience bed (`{ref}`) or explicit null (opt-out). Surfaced for driving agents; compose has no ambience auto-placement.")}).optional(),exemplarKeys:h(n().min(1)).max(gw).optional(),contactSheetKey:n().min(1).optional(),motifs:h(c({id:n().min(1).max(xw),observed:n().min(1).max(zw),body:z([c({kind:u("card"),html:n().min(1),tokens:y(n(),n()).optional()}),c({kind:u("overlay"),primitiveId:n().min(1),params:y(n(),$()).optional()}),c({kind:u("component"),componentId:n().min(1),props:y(n(),$()).optional()})]),motion:c({preset:l(["fade-up","slide-in-left","slide-in-right","scale-pop","stagger-reveal"]),enterMs:x().min(bw).max(yw).optional(),exitMs:x().min(Sw).max(vw).optional(),staggerMs:x().min(Rw).max(ww).optional(),confidence:l(["high","low"]).optional()}).optional(),role:l(["title-card","stat","lower-third","pull-quote","hero","logo-tag","enumeration","sequence","comparison"]),zone:c({x:s(),y:s(),w:s(),h:s()}).optional(),evidence:h(x().min(Iw).max(Mw)).max(Ow).optional(),diffScore:s().min($w).max(kw).optional(),coverage:l(["reproduced","approximated","skipped"]),skipReason:n().max(Tw).optional()})).max(Cw).optional(),styleRubric:n().max(Dw).optional(),density:c({graphicsPerMin:s().min(_w).max(Ew),maxSimultaneous:x().min(1).max(jw)}).optional(),inspiration:c({sources:h(n()).min(1).max(Pw),extractedAt:s(),extractionVersion:n().min(1).max(Lw)}).optional()}).describe("POST /brand-kits body. Org/user are server-resolved; never accepted from the body.");var Fw=12,Aw=c({motifId:n().min(1).optional(),limit:x().min(1).max(Fw).optional()}).describe("POST /brand-kits/{id}/exemplars body \u2014 select which exemplar frames to presign.");var Uw=-9007199254740991,Nw=9007199254740991,qw=c({exemplars:h(c({index:x().min(Uw).max(Nw),url:n()})),contactSheetUrl:n().optional()});var Bw=300,Ww=0,Zw=1e4,Gw=120,Jw=24,Kw=40,Hw=500,Xw=0,Yw=5e3,Qw=0,eI=5e3,tI=0,oI=2e3,nI=0,rI=9007199254740991,iI=24,aI=0,sI=1,cI=300,dI=24,pI=4e3,uI=0,lI=60,mI=6,fI=24,hI=60,Bn=c({id:n(),name:n(),description:n().nullable(),tagline:n().nullable(),colors:y(n(),n()),extraColors:h(c({name:n(),value:n()})).optional(),fonts:c({heading:z([c({family:n(),weight:z([s(),n()]).optional()}),q()]),body:z([c({family:n(),weight:z([s(),n()]).optional()}),q()])}),voiceGuidelines:n().nullable(),captions:c({sync:w(),profile:z([y(n(),$()),q()])}),motion:c({duration:s().optional(),easing:z([l(["linear","ease","ease-in","ease-out","ease-in-out"]),c({kind:u("cubic-bezier"),x1:s(),y1:s(),x2:s(),y2:s()})]).optional(),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),staggerMs:s().optional(),exitMs:s().optional()}).optional(),logo:c({src:n(),alt:n().optional(),placement:l(["tl","tr","bl","br"]).optional(),sizePct:s().optional()}).optional(),intro:c({kind:l(["card","video"]),src:n().optional(),title:n().optional(),subtitle:n().optional(),durationMs:s().optional()}).optional(),outro:c({kind:l(["card","video"]),src:n().optional(),title:n().optional(),subtitle:n().optional(),durationMs:s().optional()}).optional(),watermark:c({src:n(),opacity:s().optional(),placement:l(["tl","tr","bl","br"]).optional()}).optional(),spacing:c({base:s().optional(),lg:s().optional(),sm:s().optional()}).optional(),sizing:c({fontSizeHeading:s().optional(),fontSizeBody:s().optional(),fontSizeLabel:s().optional(),borderRadius:s().optional()}).optional(),audio:c({sfxIntensity:l(["off","light","standard","dense"]).optional(),musicEnabled:w().optional(),musicMood:n().max(Bw).optional(),sonicLogo:c({ref:n().min(1),placement:l(["intro","outro","both"]),offsetMs:x().min(Ww).max(Zw).optional()}).optional().describe("A brand sound signature bound to the intro/outro bookend. `ref` = a palette reference; bound only when the kit carries the matching bumper (intro/outro), else a non-blocking advisory."),uiSoundSet:c({tick:n().min(1).optional(),pop:n().min(1).optional(),impact:n().min(1).optional(),confirm:n().min(1).optional(),error:n().min(1).optional(),whoosh:n().min(1).optional(),riser:n().min(1).optional()}).optional().describe("Per-family SFX overrides (the brand's own tick/pop/\u2026). Highest-priority tier over the org palette + pack default in the compose SFX draw."),bedStyle:c({bedId:n().min(1).optional(),genre:n().max(Gw).optional(),bpmRange:c({min:s(),max:s()}).optional()}).optional().describe("Preferred music bed (`bedId`) or a style hint (`genre` / `bpmRange`). Surfaced for driving agents; compose does not auto-select a pack bed."),ambiencePreference:z([c({ref:n().min(1)}),q()]).optional().describe("Preferred ambience bed (`{ref}`) or explicit null (opt-out). Surfaced for driving agents; compose has no ambience auto-placement.")}).optional(),exemplarKeys:h(n().min(1)).max(Jw).optional(),contactSheetKey:n().min(1).optional(),motifs:h(c({id:n().min(1).max(Kw),observed:n().min(1).max(Hw),body:z([c({kind:u("card"),html:n().min(1),tokens:y(n(),n()).optional()}),c({kind:u("overlay"),primitiveId:n().min(1),params:y(n(),$()).optional()}),c({kind:u("component"),componentId:n().min(1),props:y(n(),$()).optional()})]),motion:c({preset:l(["fade-up","slide-in-left","slide-in-right","scale-pop","stagger-reveal"]),enterMs:x().min(Xw).max(Yw).optional(),exitMs:x().min(Qw).max(eI).optional(),staggerMs:x().min(tI).max(oI).optional(),confidence:l(["high","low"]).optional()}).optional(),role:l(["title-card","stat","lower-third","pull-quote","hero","logo-tag","enumeration","sequence","comparison"]),zone:c({x:s(),y:s(),w:s(),h:s()}).optional(),evidence:h(x().min(nI).max(rI)).max(iI).optional(),diffScore:s().min(aI).max(sI).optional(),coverage:l(["reproduced","approximated","skipped"]),skipReason:n().max(cI).optional()})).max(dI).optional(),styleRubric:n().max(pI).optional(),density:c({graphicsPerMin:s().min(uI).max(lI),maxSimultaneous:x().min(1).max(mI)}).optional(),inspiration:c({sources:h(n()).min(1).max(fI),extractedAt:s(),extractionVersion:n().min(1).max(hI)}).optional(),createdAt:n(),updatedAt:n()}).describe("Brand kit response per \xA7Brand Kits.");var ue=c({hasMore:w(),nextCursor:n().nullable(),prevCursor:n().nullable()}).describe("Cursor pagination metadata.");var gI=c({data:h(Bn),pagination:ue});var xI=300,Eo=c({music:c({enabled:w().describe("Whether the compose carries a music bed."),mood:n().max(xI).optional().describe("Freeform mood/genre prompt for the GENERATED bed (e.g. 'understated editorial, warm'). Ignored when mediaId pins a track."),mediaId:n().min(1).optional().describe("Pin a client-imported track as the bed. HONOR-OR-REFUSE: must be an org-owned kind:'audio' media item, else 422 \u2014 never accept-and-ignore. Absent \u21D2 generate from mood.")}).optional(),sfx:c({intensity:l(["off","light","standard","dense"]).describe("SFX placement density. Real-footage content keeps restraint caps regardless ('dense' is the explicit opt-out); generated/graphic-led content unlocks the standard tier.")}).optional()});var zI=0,bI=0,yI=0,SI=80,vI=8,jo=c({id:n().min(1),intent:n().min(1).describe("What this beat DOES editorially (hook the claim, prove it, CTA\u2026)."),durationSec:s().gt(zI).optional(),source:c({mediaId:n().min(1),startSec:s().min(bI),endSec:s().gt(yI)}).optional().describe("MOMENT PINNING: this beat uses EXACTLY this window of this media item \u2014 honored to-the-frame or refused. v1: every sourced beat must reference the SAME mediaId (multi-source briefs are refused loudly, not silently merged)."),graphic:c({role:l(["title-card","stat","lower-third","pull-quote","hero","logo-tag","enumeration","sequence","comparison"]).describe("The mandated graphic's editorial role (the graphics-plan GraphicRole vocabulary)."),items:h(n().min(1).max(SI)).max(vI).optional().describe("Mandated list items (enumeration/sequence) \u2014 carried VERBATIM into the plan's copy.items.")}).optional().describe("GRAPHICS MANDATE: the plan MUST carry a graphics request of this role overlapping this beat's window \u2014 enforced at the plan gate (honor-or-refuse, like moment pinning). Prose mustIncludes reaches only the judge; this is the checkable form.")});var Po=l(["overlay","component","card","no-transitions"]);var RI=3,Lo=c({holdAt:h(l(["content","layout","motion"])).max(RI).optional().describe("Checkpoint gates \u2014 the compose pauses at each named stage for review via resume. DEFAULT (gates absent): the compose holds at EVERY stage \u2014 your agent reviews and resumes each one; an unreviewed checkpoint times out loudly after 60min. Auto-progression is the opt-in (gates.autoApprove: true)."),autoApprove:w().optional().describe("true = fully autonomous (compose runs with NO gates \u2014 the headless opt-in; without it a brief holds at every stage by default). Mutually exclusive with a non-empty holdAt."),reviewMode:l(["agent","hosted"]).optional().describe("Who captures the review decision. Default 'agent': you relay the packet and call resume. 'hosted': every checkpoint mints a review-page URL (checkpoint.ready payload + get_checkpoint's reviewUrl) where a human approves/revises from the browser \u2014 no account, no agent session; the recorded decision rides the SAME resume rail and you learn of it via checkpoint webhooks / wait_job.")});var ne=z([n(),s(),w(),q(),h(pt(()=>ne)),y(n(),pt(()=>ne))]);var he=c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional()}).describe("Output-format spec per \xA7Format.");var wI=200,II=2e3,MI=500,OI=100,$I=0,kI=3600,TI=500,CI=500,DI=35,_I=500,EI=2e3,jI=24,PI=24,LI=12,VI=24,FI=0,AI=0,UI=0,NI=0,qI=0,BI=0,WI=0,ZI=4,GI=0,JI=0,KI=0,HI=0,XI=0,YI=0,QI=0,e0=0,t0=0,o0=1,n0=0,r0=1,i0=.1,a0=1,s0=0,c0=0,d0=-.3,p0=.3,u0=-.3,l0=.3,m0=256,f0=new RegExp("^[a-f0-9]{64}$"),h0=128,g0=256,x0=new RegExp("^(?!custom$)"),z0=0,b0=1,y0=0,S0=1,v0=-.3,R0=.3,w0=256,I0=new RegExp("^[a-f0-9]{64}$"),M0=128,O0=0,$0=9007199254740991,k0=0,T0=1,C0=0,D0=-1,_0=2,E0=-1,j0=2,P0=0,L0=1,V0=0,F0=1,A0=0,U0=1,N0=0,q0=1,B0=256,W0=new RegExp("^[a-f0-9]{64}$"),Z0=128,G0=0,J0=0,K0=0,H0=256,X0=new RegExp("^[a-f0-9]{64}$"),Y0=128,Q0=0,eM=2,tM=16,oM=8,nM=c({projectId:n().min(1),name:n().max(wI).optional(),goal:n().min(1).max(II).describe("What the video must accomplish."),audience:n().max(MI).optional(),platform:n().max(OI).optional(),format:he.optional(),durationSec:s().gt($I).max(kI).optional().describe("Target output duration. HONOR-OR-REFUSE: compose validates it against the beat-source window (\xB11.5s) and refuses a brief it cannot honor."),tone:n().max(TI).optional(),cta:n().max(CI).optional(),locale:n().max(DI).optional().describe("Output language (BCP-47 tag, e.g. 'es-419'): ALL on-screen copy + captions."),hook:n().max(_I).optional(),caption:n().max(EI).optional(),beats:h(jo).max(jI).optional(),mustIncludes:h(n().min(1)).max(PI).optional(),references:h(n()).max(LI).optional(),captions:c({styleId:n().min(1).optional().describe("Caption style id (e.g. 'serif-emphasis@1')."),emphasisPhrases:h(n().min(1)).max(VI).optional().describe("Phrases rendered in the caption EMPHASIS style (the big-serif treatment). Matched against the transcript; drives CaptionWord.emphasis.")}).optional(),motionStyle:c({textAnimation:n().optional(),transitions:n().optional(),colorMood:n().optional(),captionStyle:n().optional()}).optional(),seededGraphics:h(c({id:n().min(1),startTime:s().min(FI).describe("Timeline start (seconds)."),duration:s().gt(AI).describe("Clip duration (seconds)."),source:z([c({kind:u("media"),mediaId:n().min(1),trim:c({start:s().min(UI).describe("Source trim start (seconds)."),end:s().min(NI).describe("Source trim end (seconds).")}).optional(),excludedRanges:h(c({start:s().min(qI),end:s().min(BI),reason:n().optional()})).optional(),volume:s().min(WI).max(ZI).optional(),muted:w().optional(),playbackRate:s().gt(GI).optional(),sync:l(["video","independent"]).optional(),kenBurns:l(["in","out","pan-l","pan-r","none"]).optional(),volumeDb:s().optional(),fadeInMs:s().min(JI).optional(),fadeOutMs:s().min(KI).optional(),loop:w().optional(),audioRole:l(["sfx","music","vo","ambience"]).optional(),duck:c({duckDb:s().max(HI),attackMs:s().min(XI),releaseMs:s().min(YI),windows:h(c({startMs:s(),endMs:s()})).optional()}).optional(),anchor:c({clipId:n().min(1),offsetMs:s()}).optional(),reframe:c({segments:h(c({startSec:s().min(QI).describe("Segment START in seconds, clip-relative. Segments tile the clip's duration in order."),endSec:s().gt(e0).describe("Segment END in seconds, clip-relative. The span (endSec \u2212 startSec) is this segment's duration \u2014 the window `ease` ramps over."),focus:z([c({mode:u("frame-center")}),c({mode:u("point"),x:s().min(t0).max(o0),y:s().min(n0).max(r0)}),c({mode:u("face"),faceId:n().min(1),shotScale:l(["close","standard","wide"]).optional()}),c({mode:u("all-faces")}),c({mode:u("active-speaker")})]).describe("WHO/WHAT the camera tracks this segment (the reframe center), selected by `mode`: `frame-center` = no tracking, hold the geometric center (static/graphic footage, or a pure zoom); `point` = lock to a fixed source-normalized {x,y} (a non-moving on-screen element); `face` = track a detected face by `faceId` (from get_media_context), with optional `shotScale` close|standard|wide for tightness; `all-faces` = frame the bounding box of every detected face (group/ensemble shots); `active-speaker` = follow whoever is speaking (diarized talking-head / podcast). Pick by what the beat is about; pair with `zoom` for how tight."),intent:n().optional().describe("Optional editorial LABEL for diff/log readability (e.g. 'speaker-tight', 'wide-context'). Cosmetic \u2014 NOT honored by the derive math and excluded from the variant cache key."),zoom:s().min(i0).max(a0).optional().describe("How TIGHT the framing is \u2014 the fraction of the source the output viewport shows. <1 punches IN (a smaller source fraction, magnified to fill the frame); 1 = the full frame (no crop). ~0.6\u20130.8 is a moderate push-in, ~0.5 a tight close-up, 0.1 the maximum zoom. There is NO zoom-OUT past the full frame (max 1). Omit for the full frame. MUTUALLY EXCLUSIVE with `focus.shotScale` \u2014 a face-tracked shot is sized EITHER by the editorial scale (shotScale, which the bake calibrates to the detected face) OR by an explicit zoom, never both. A segment carrying both is REJECTED: shotScale wins at bake time and the zoom would be silently discarded."),ease:c({in:s().min(s0).describe("Ease-IN ramp DURATION in seconds at the segment START."),out:s().min(c0).describe("Ease-OUT ramp DURATION in seconds at the segment END.")}).optional().describe("Zoom/center ramp DURATIONS in SECONDS at this segment's edges \u2014 NOT a unitless 0\u20131 curve. ~0.3\u20130.6s reads as a snappy push; >1s reads sluggish. Keep `in` + `out` \u2264 the segment's duration (endSec \u2212 startSec): the two edges share the span, so to ramp across the WHOLE segment set one edge to the full duration and the other to 0. Omit for an instant cut to this framing."),bias:c({x:s().min(d0).max(p0).describe("Horizontal nudge, source-normalized (+ = right)."),y:s().min(u0).max(l0).describe("Vertical nudge, source-normalized (+ = down).")}).optional().describe("Optional FINE framing nudge off the focus center, source-normalized in [\u22120.3, 0.3]. A small correction (headroom, rule-of-thirds), NOT a reframe \u2014 use `focus`/`zoom` for the actual shot. Omit (treated as 0) to sit dead-center on the focus.")})).min(1)}).optional()}),c({kind:u("component"),componentId:n().min(1),props:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),execution:c({version:u(3),componentId:n().min(1).max(m0),sourceVersionId:n().regex(f0),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(h0))).optional()}),placement:z([c({version:u(3),kind:u("clip")}),c({version:u(3),kind:u("content-slots"),slots:y(n(),c({targetClipIds:h(n().min(1).max(g0)),ownership:l(["reference","exclusive"])}))})])}),c({kind:u("overlay"),primitiveId:n().min(1).regex(x0),params:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),anchor:c({space:u("scene"),x:s().min(z0).max(b0),y:s().min(y0).max(S0)}).optional(),parallax:s().min(v0).max(R0).optional()}),c({kind:u("effect"),primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),component:c({version:u(3),componentId:n().min(1).max(w0),sourceVersionId:n().regex(I0),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(M0))).optional()}).optional(),targetTrackIds:h(n().min(1)).min(1).optional(),wrapperOrder:x().min(O0).max($0).optional()}),c({kind:u("card"),html:n().min(1).describe("Your card's HTML \u2014 rendered VERBATIM as the graphic (shell motion via applyMotionPreset in a FOLLOWING call). CANVAS CONTRACT: the card renders in a viewport equal to the composition format's pixel frame (1080\xD71920 at 9:16 fhd); the root is NOT auto-pinned \u2014 declare explicit width/height matching the frame (box-sizing:border-box) and anchor content with flex/grid; position:absolute;inset:0 on the root does NOT fill the frame; for edge-to-edge backgrounds add an inner absolutely-positioned layer with generous negative inset. Overlay compositing applies a ~92% safe-area inset \u2014 keep critical copy away from the extreme edges. FONTS: name a family from GET /v1/fonts (list_render_fonts) \u2014 the renderer loads those faces for the card and waits for them, so `font-family: Inter` draws Inter. `@import` and remote font files are REFUSED: the card renders with no network. A family that is not on that list has no bytes behind it and the browser falls back, so end any stack with a generic (`Inter, sans-serif`) rather than relying on a system face being present."),tokens:y(n(),n()).optional(),zPlane:u("front").optional()})]),kind:l(["video","audio","image","overlay","effect"]).optional(),opacity:s().min(k0).max(T0).optional(),scale:s().gt(C0).optional(),rotation:s().optional(),position:c({x:s().min(D0).max(_0),y:s().min(E0).max(j0)}).optional().describe("Clip CENTRE as a fraction of the frame: {x:0.5,y:0.5} is dead centre, 0 to 1 is inside the frame, and a little overshoot (down to -1, up to 2) is how an entrance starts off-canvas. NOT pixels: the renderer maps x to `left: x*100%`, so `x: 180` sits 180 frame-widths away and draws nothing."),region:c({x:s().min(P0).max(L0),y:s().min(V0).max(F0),w:s().gt(A0).max(U0),h:s().gt(N0).max(q0)}).optional(),fit:l(["cover","contain"]).optional(),captionVisibility:l(["visible","hidden"]).optional().describe("Video media clip only. Hide native captions while this clip is topmost and covers the lower picture, or when an opaque, effect-free clip has an explicitly full-frame region, even with fit:contain. Caption words and timings remain stored and resume when another visible clip takes over."),effects:h(c({primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(B0),sourceVersionId:n().regex(W0),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(Z0))).optional()}).optional(),window:c({startTime:s().min(G0),duration:s().gt(J0)}).optional()})).optional(),transitionIn:c({type:n().min(1),duration:s().gt(K0),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(H0),sourceVersionId:n().regex(X0),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(Y0))).optional()}).optional(),fromClipId:n().min(1).optional(),toClipId:n().min(1).optional(),handlePolicy:u("outgoing-overrun-at-cut-v1").optional()}).optional(),linkGroupId:n().min(1).optional(),animate:y(n(),h(c({time:s().min(Q0),value:s(),easing:z([l(["linear","ease","easeIn","easeOut","easeInOut"]),c({cubicBezier:F([s(),s(),s(),s()])})]).optional()})).min(eM)).optional().describe("Keyframe channels, clip-relative seconds. Each channel's values use the SAME unit as the scalar it animates: `opacity` 0 to 1, `scale` a multiplier (>0), `rotation` degrees, `position.x`/`position.y` a FRACTION of the frame like `position` (0.5 = centre; NOT pixels), `volume` 0 to 4.")})).max(tM).optional().describe("Client-authored graphic clips the Director must carry VERBATIM: seeded into the design loop's base composition as LOCKED clips (never re-authored, never discarded)."),exclusions:h(Po).max(oM).optional(),gates:Lo.optional(),audio:Eo.optional()});var rM=-9007199254740991,iM=9007199254740991,_g=c({composeUsd:s(),renderUsdPerExport:s(),estimatedJourneyUsd:s().describe("compose + expected renders \u2014 relay this BEFORE composing."),revisionCyclesIncluded:x().min(rM).max(iM).describe("Revise cycles the compose price includes per gate (A1). Beyond this, resume(revise) is refused with `revision_cycles_exhausted` \u2014 saying no never silently charges.")});var aM=200,sM=2e3,cM=500,dM=100,pM=0,uM=3600,lM=500,mM=500,fM=35,hM=500,gM=2e3,xM=24,zM=24,bM=12,yM=24,SM=0,vM=0,RM=0,wM=0,IM=0,MM=0,OM=0,$M=4,kM=0,TM=0,CM=0,DM=0,_M=0,EM=0,jM=0,PM=0,LM=0,VM=1,FM=0,AM=1,UM=.1,NM=1,qM=0,BM=0,WM=-.3,ZM=.3,GM=-.3,JM=.3,KM=256,HM=new RegExp("^[a-f0-9]{64}$"),XM=128,YM=256,QM=new RegExp("^(?!custom$)"),eO=0,tO=1,oO=0,nO=1,rO=-.3,iO=.3,aO=256,sO=new RegExp("^[a-f0-9]{64}$"),cO=128,dO=0,pO=9007199254740991,uO=0,lO=1,mO=0,fO=-1,hO=2,gO=-1,xO=2,zO=0,bO=1,yO=0,SO=1,vO=0,RO=1,wO=0,IO=1,MO=256,OO=new RegExp("^[a-f0-9]{64}$"),$O=128,kO=0,TO=0,CO=0,DO=256,_O=new RegExp("^[a-f0-9]{64}$"),EO=128,jO=0,PO=2,LO=16,VO=8,Ku=c({id:n(),projectId:n(),kind:l(["authored","clip"]).describe("authored = create_brief; clip = minted by suggest_briefs from an AI clip suggestion."),sourceSuggestionId:n().optional().describe("kind:'clip' provenance \u2014 the suggestion this Brief was minted from."),name:n().max(aM).optional(),goal:n().min(1).max(sM).describe("What the video must accomplish."),audience:n().max(cM).optional(),platform:n().max(dM).optional(),format:he.optional(),durationSec:s().gt(pM).max(uM).optional().describe("Target output duration. HONOR-OR-REFUSE: compose validates it against the beat-source window (\xB11.5s) and refuses a brief it cannot honor."),tone:n().max(lM).optional(),cta:n().max(mM).optional(),locale:n().max(fM).optional().describe("Output language (BCP-47 tag, e.g. 'es-419'): ALL on-screen copy + captions."),hook:n().max(hM).optional(),caption:n().max(gM).optional(),beats:h(jo).max(xM).optional(),mustIncludes:h(n().min(1)).max(zM).optional(),references:h(n()).max(bM).optional(),captions:c({styleId:n().min(1).optional().describe("Caption style id (e.g. 'serif-emphasis@1')."),emphasisPhrases:h(n().min(1)).max(yM).optional().describe("Phrases rendered in the caption EMPHASIS style (the big-serif treatment). Matched against the transcript; drives CaptionWord.emphasis.")}).optional(),motionStyle:c({textAnimation:n().optional(),transitions:n().optional(),colorMood:n().optional(),captionStyle:n().optional()}).optional(),seededGraphics:h(c({id:n().min(1),startTime:s().min(SM).describe("Timeline start (seconds)."),duration:s().gt(vM).describe("Clip duration (seconds)."),source:z([c({kind:u("media"),mediaId:n().min(1),trim:c({start:s().min(RM).describe("Source trim start (seconds)."),end:s().min(wM).describe("Source trim end (seconds).")}).optional(),excludedRanges:h(c({start:s().min(IM),end:s().min(MM),reason:n().optional()})).optional(),volume:s().min(OM).max($M).optional(),muted:w().optional(),playbackRate:s().gt(kM).optional(),sync:l(["video","independent"]).optional(),kenBurns:l(["in","out","pan-l","pan-r","none"]).optional(),volumeDb:s().optional(),fadeInMs:s().min(TM).optional(),fadeOutMs:s().min(CM).optional(),loop:w().optional(),audioRole:l(["sfx","music","vo","ambience"]).optional(),duck:c({duckDb:s().max(DM),attackMs:s().min(_M),releaseMs:s().min(EM),windows:h(c({startMs:s(),endMs:s()})).optional()}).optional(),anchor:c({clipId:n().min(1),offsetMs:s()}).optional(),reframe:c({segments:h(c({startSec:s().min(jM).describe("Segment START in seconds, clip-relative. Segments tile the clip's duration in order."),endSec:s().gt(PM).describe("Segment END in seconds, clip-relative. The span (endSec \u2212 startSec) is this segment's duration \u2014 the window `ease` ramps over."),focus:z([c({mode:u("frame-center")}),c({mode:u("point"),x:s().min(LM).max(VM),y:s().min(FM).max(AM)}),c({mode:u("face"),faceId:n().min(1),shotScale:l(["close","standard","wide"]).optional()}),c({mode:u("all-faces")}),c({mode:u("active-speaker")})]).describe("WHO/WHAT the camera tracks this segment (the reframe center), selected by `mode`: `frame-center` = no tracking, hold the geometric center (static/graphic footage, or a pure zoom); `point` = lock to a fixed source-normalized {x,y} (a non-moving on-screen element); `face` = track a detected face by `faceId` (from get_media_context), with optional `shotScale` close|standard|wide for tightness; `all-faces` = frame the bounding box of every detected face (group/ensemble shots); `active-speaker` = follow whoever is speaking (diarized talking-head / podcast). Pick by what the beat is about; pair with `zoom` for how tight."),intent:n().optional().describe("Optional editorial LABEL for diff/log readability (e.g. 'speaker-tight', 'wide-context'). Cosmetic \u2014 NOT honored by the derive math and excluded from the variant cache key."),zoom:s().min(UM).max(NM).optional().describe("How TIGHT the framing is \u2014 the fraction of the source the output viewport shows. <1 punches IN (a smaller source fraction, magnified to fill the frame); 1 = the full frame (no crop). ~0.6\u20130.8 is a moderate push-in, ~0.5 a tight close-up, 0.1 the maximum zoom. There is NO zoom-OUT past the full frame (max 1). Omit for the full frame. MUTUALLY EXCLUSIVE with `focus.shotScale` \u2014 a face-tracked shot is sized EITHER by the editorial scale (shotScale, which the bake calibrates to the detected face) OR by an explicit zoom, never both. A segment carrying both is REJECTED: shotScale wins at bake time and the zoom would be silently discarded."),ease:c({in:s().min(qM).describe("Ease-IN ramp DURATION in seconds at the segment START."),out:s().min(BM).describe("Ease-OUT ramp DURATION in seconds at the segment END.")}).optional().describe("Zoom/center ramp DURATIONS in SECONDS at this segment's edges \u2014 NOT a unitless 0\u20131 curve. ~0.3\u20130.6s reads as a snappy push; >1s reads sluggish. Keep `in` + `out` \u2264 the segment's duration (endSec \u2212 startSec): the two edges share the span, so to ramp across the WHOLE segment set one edge to the full duration and the other to 0. Omit for an instant cut to this framing."),bias:c({x:s().min(WM).max(ZM).describe("Horizontal nudge, source-normalized (+ = right)."),y:s().min(GM).max(JM).describe("Vertical nudge, source-normalized (+ = down).")}).optional().describe("Optional FINE framing nudge off the focus center, source-normalized in [\u22120.3, 0.3]. A small correction (headroom, rule-of-thirds), NOT a reframe \u2014 use `focus`/`zoom` for the actual shot. Omit (treated as 0) to sit dead-center on the focus.")})).min(1)}).optional()}),c({kind:u("component"),componentId:n().min(1),props:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),execution:c({version:u(3),componentId:n().min(1).max(KM),sourceVersionId:n().regex(HM),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(XM))).optional()}),placement:z([c({version:u(3),kind:u("clip")}),c({version:u(3),kind:u("content-slots"),slots:y(n(),c({targetClipIds:h(n().min(1).max(YM)),ownership:l(["reference","exclusive"])}))})])}),c({kind:u("overlay"),primitiveId:n().min(1).regex(QM),params:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),anchor:c({space:u("scene"),x:s().min(eO).max(tO),y:s().min(oO).max(nO)}).optional(),parallax:s().min(rO).max(iO).optional()}),c({kind:u("effect"),primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),component:c({version:u(3),componentId:n().min(1).max(aO),sourceVersionId:n().regex(sO),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(cO))).optional()}).optional(),targetTrackIds:h(n().min(1)).min(1).optional(),wrapperOrder:x().min(dO).max(pO).optional()}),c({kind:u("card"),html:n().min(1).describe("Your card's HTML \u2014 rendered VERBATIM as the graphic (shell motion via applyMotionPreset in a FOLLOWING call). CANVAS CONTRACT: the card renders in a viewport equal to the composition format's pixel frame (1080\xD71920 at 9:16 fhd); the root is NOT auto-pinned \u2014 declare explicit width/height matching the frame (box-sizing:border-box) and anchor content with flex/grid; position:absolute;inset:0 on the root does NOT fill the frame; for edge-to-edge backgrounds add an inner absolutely-positioned layer with generous negative inset. Overlay compositing applies a ~92% safe-area inset \u2014 keep critical copy away from the extreme edges. FONTS: name a family from GET /v1/fonts (list_render_fonts) \u2014 the renderer loads those faces for the card and waits for them, so `font-family: Inter` draws Inter. `@import` and remote font files are REFUSED: the card renders with no network. A family that is not on that list has no bytes behind it and the browser falls back, so end any stack with a generic (`Inter, sans-serif`) rather than relying on a system face being present."),tokens:y(n(),n()).optional(),zPlane:u("front").optional()})]),kind:l(["video","audio","image","overlay","effect"]).optional(),opacity:s().min(uO).max(lO).optional(),scale:s().gt(mO).optional(),rotation:s().optional(),position:c({x:s().min(fO).max(hO),y:s().min(gO).max(xO)}).optional().describe("Clip CENTRE as a fraction of the frame: {x:0.5,y:0.5} is dead centre, 0 to 1 is inside the frame, and a little overshoot (down to -1, up to 2) is how an entrance starts off-canvas. NOT pixels: the renderer maps x to `left: x*100%`, so `x: 180` sits 180 frame-widths away and draws nothing."),region:c({x:s().min(zO).max(bO),y:s().min(yO).max(SO),w:s().gt(vO).max(RO),h:s().gt(wO).max(IO)}).optional(),fit:l(["cover","contain"]).optional(),captionVisibility:l(["visible","hidden"]).optional().describe("Video media clip only. Hide native captions while this clip is topmost and covers the lower picture, or when an opaque, effect-free clip has an explicitly full-frame region, even with fit:contain. Caption words and timings remain stored and resume when another visible clip takes over."),effects:h(c({primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(MO),sourceVersionId:n().regex(OO),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max($O))).optional()}).optional(),window:c({startTime:s().min(kO),duration:s().gt(TO)}).optional()})).optional(),transitionIn:c({type:n().min(1),duration:s().gt(CO),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(DO),sourceVersionId:n().regex(_O),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(EO))).optional()}).optional(),fromClipId:n().min(1).optional(),toClipId:n().min(1).optional(),handlePolicy:u("outgoing-overrun-at-cut-v1").optional()}).optional(),linkGroupId:n().min(1).optional(),animate:y(n(),h(c({time:s().min(jO),value:s(),easing:z([l(["linear","ease","easeIn","easeOut","easeInOut"]),c({cubicBezier:F([s(),s(),s(),s()])})]).optional()})).min(PO)).optional().describe("Keyframe channels, clip-relative seconds. Each channel's values use the SAME unit as the scalar it animates: `opacity` 0 to 1, `scale` a multiplier (>0), `rotation` degrees, `position.x`/`position.y` a FRACTION of the frame like `position` (0.5 = centre; NOT pixels), `volume` 0 to 4.")})).max(LO).optional().describe("Client-authored graphic clips the Director must carry VERBATIM: seeded into the design loop's base composition as LOCKED clips (never re-authored, never discarded)."),exclusions:h(Po).max(VO).optional(),gates:Lo.optional(),audio:Eo.optional(),quote:_g,createdAt:s(),updatedAt:s()});var FO=c({data:h(Ku),pagination:ue});var AO=200,UO=2e3,NO=500,qO=100,BO=0,WO=3600,ZO=500,GO=500,JO=35,KO=500,HO=2e3,XO=24,YO=24,QO=12,e$=24,t$=0,o$=0,n$=0,r$=0,i$=0,a$=0,s$=0,c$=4,d$=0,p$=0,u$=0,l$=0,m$=0,f$=0,h$=0,g$=0,x$=0,z$=1,b$=0,y$=1,S$=.1,v$=1,R$=0,w$=0,I$=-.3,M$=.3,O$=-.3,$$=.3,k$=256,T$=new RegExp("^[a-f0-9]{64}$"),C$=128,D$=256,_$=new RegExp("^(?!custom$)"),E$=0,j$=1,P$=0,L$=1,V$=-.3,F$=.3,A$=256,U$=new RegExp("^[a-f0-9]{64}$"),N$=128,q$=0,B$=9007199254740991,W$=0,Z$=1,G$=0,J$=-1,K$=2,H$=-1,X$=2,Y$=0,Q$=1,ek=0,tk=1,ok=0,nk=1,rk=0,ik=1,ak=256,sk=new RegExp("^[a-f0-9]{64}$"),ck=128,dk=0,pk=0,uk=0,lk=256,mk=new RegExp("^[a-f0-9]{64}$"),fk=128,hk=0,gk=2,xk=16,zk=8,bk=c({name:n().max(AO).optional(),goal:n().min(1).max(UO).optional().describe("What the video must accomplish."),audience:n().max(NO).optional(),platform:n().max(qO).optional(),format:he.optional(),durationSec:s().gt(BO).max(WO).optional().describe("Target output duration. HONOR-OR-REFUSE: compose validates it against the beat-source window (\xB11.5s) and refuses a brief it cannot honor."),tone:n().max(ZO).optional(),cta:n().max(GO).optional(),locale:n().max(JO).optional().describe("Output language (BCP-47 tag, e.g. 'es-419'): ALL on-screen copy + captions."),hook:n().max(KO).optional(),caption:n().max(HO).optional(),beats:h(jo).max(XO).optional(),mustIncludes:h(n().min(1)).max(YO).optional(),references:h(n()).max(QO).optional(),captions:c({styleId:n().min(1).optional().describe("Caption style id (e.g. 'serif-emphasis@1')."),emphasisPhrases:h(n().min(1)).max(e$).optional().describe("Phrases rendered in the caption EMPHASIS style (the big-serif treatment). Matched against the transcript; drives CaptionWord.emphasis.")}).optional(),motionStyle:c({textAnimation:n().optional(),transitions:n().optional(),colorMood:n().optional(),captionStyle:n().optional()}).optional(),seededGraphics:h(c({id:n().min(1),startTime:s().min(t$).describe("Timeline start (seconds)."),duration:s().gt(o$).describe("Clip duration (seconds)."),source:z([c({kind:u("media"),mediaId:n().min(1),trim:c({start:s().min(n$).describe("Source trim start (seconds)."),end:s().min(r$).describe("Source trim end (seconds).")}).optional(),excludedRanges:h(c({start:s().min(i$),end:s().min(a$),reason:n().optional()})).optional(),volume:s().min(s$).max(c$).optional(),muted:w().optional(),playbackRate:s().gt(d$).optional(),sync:l(["video","independent"]).optional(),kenBurns:l(["in","out","pan-l","pan-r","none"]).optional(),volumeDb:s().optional(),fadeInMs:s().min(p$).optional(),fadeOutMs:s().min(u$).optional(),loop:w().optional(),audioRole:l(["sfx","music","vo","ambience"]).optional(),duck:c({duckDb:s().max(l$),attackMs:s().min(m$),releaseMs:s().min(f$),windows:h(c({startMs:s(),endMs:s()})).optional()}).optional(),anchor:c({clipId:n().min(1),offsetMs:s()}).optional(),reframe:c({segments:h(c({startSec:s().min(h$).describe("Segment START in seconds, clip-relative. Segments tile the clip's duration in order."),endSec:s().gt(g$).describe("Segment END in seconds, clip-relative. The span (endSec \u2212 startSec) is this segment's duration \u2014 the window `ease` ramps over."),focus:z([c({mode:u("frame-center")}),c({mode:u("point"),x:s().min(x$).max(z$),y:s().min(b$).max(y$)}),c({mode:u("face"),faceId:n().min(1),shotScale:l(["close","standard","wide"]).optional()}),c({mode:u("all-faces")}),c({mode:u("active-speaker")})]).describe("WHO/WHAT the camera tracks this segment (the reframe center), selected by `mode`: `frame-center` = no tracking, hold the geometric center (static/graphic footage, or a pure zoom); `point` = lock to a fixed source-normalized {x,y} (a non-moving on-screen element); `face` = track a detected face by `faceId` (from get_media_context), with optional `shotScale` close|standard|wide for tightness; `all-faces` = frame the bounding box of every detected face (group/ensemble shots); `active-speaker` = follow whoever is speaking (diarized talking-head / podcast). Pick by what the beat is about; pair with `zoom` for how tight."),intent:n().optional().describe("Optional editorial LABEL for diff/log readability (e.g. 'speaker-tight', 'wide-context'). Cosmetic \u2014 NOT honored by the derive math and excluded from the variant cache key."),zoom:s().min(S$).max(v$).optional().describe("How TIGHT the framing is \u2014 the fraction of the source the output viewport shows. <1 punches IN (a smaller source fraction, magnified to fill the frame); 1 = the full frame (no crop). ~0.6\u20130.8 is a moderate push-in, ~0.5 a tight close-up, 0.1 the maximum zoom. There is NO zoom-OUT past the full frame (max 1). Omit for the full frame. MUTUALLY EXCLUSIVE with `focus.shotScale` \u2014 a face-tracked shot is sized EITHER by the editorial scale (shotScale, which the bake calibrates to the detected face) OR by an explicit zoom, never both. A segment carrying both is REJECTED: shotScale wins at bake time and the zoom would be silently discarded."),ease:c({in:s().min(R$).describe("Ease-IN ramp DURATION in seconds at the segment START."),out:s().min(w$).describe("Ease-OUT ramp DURATION in seconds at the segment END.")}).optional().describe("Zoom/center ramp DURATIONS in SECONDS at this segment's edges \u2014 NOT a unitless 0\u20131 curve. ~0.3\u20130.6s reads as a snappy push; >1s reads sluggish. Keep `in` + `out` \u2264 the segment's duration (endSec \u2212 startSec): the two edges share the span, so to ramp across the WHOLE segment set one edge to the full duration and the other to 0. Omit for an instant cut to this framing."),bias:c({x:s().min(I$).max(M$).describe("Horizontal nudge, source-normalized (+ = right)."),y:s().min(O$).max($$).describe("Vertical nudge, source-normalized (+ = down).")}).optional().describe("Optional FINE framing nudge off the focus center, source-normalized in [\u22120.3, 0.3]. A small correction (headroom, rule-of-thirds), NOT a reframe \u2014 use `focus`/`zoom` for the actual shot. Omit (treated as 0) to sit dead-center on the focus.")})).min(1)}).optional()}),c({kind:u("component"),componentId:n().min(1),props:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),execution:c({version:u(3),componentId:n().min(1).max(k$),sourceVersionId:n().regex(T$),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(C$))).optional()}),placement:z([c({version:u(3),kind:u("clip")}),c({version:u(3),kind:u("content-slots"),slots:y(n(),c({targetClipIds:h(n().min(1).max(D$)),ownership:l(["reference","exclusive"])}))})])}),c({kind:u("overlay"),primitiveId:n().min(1).regex(_$),params:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),anchor:c({space:u("scene"),x:s().min(E$).max(j$),y:s().min(P$).max(L$)}).optional(),parallax:s().min(V$).max(F$).optional()}),c({kind:u("effect"),primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),component:c({version:u(3),componentId:n().min(1).max(A$),sourceVersionId:n().regex(U$),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(N$))).optional()}).optional(),targetTrackIds:h(n().min(1)).min(1).optional(),wrapperOrder:x().min(q$).max(B$).optional()}),c({kind:u("card"),html:n().min(1).describe("Your card's HTML \u2014 rendered VERBATIM as the graphic (shell motion via applyMotionPreset in a FOLLOWING call). CANVAS CONTRACT: the card renders in a viewport equal to the composition format's pixel frame (1080\xD71920 at 9:16 fhd); the root is NOT auto-pinned \u2014 declare explicit width/height matching the frame (box-sizing:border-box) and anchor content with flex/grid; position:absolute;inset:0 on the root does NOT fill the frame; for edge-to-edge backgrounds add an inner absolutely-positioned layer with generous negative inset. Overlay compositing applies a ~92% safe-area inset \u2014 keep critical copy away from the extreme edges. FONTS: name a family from GET /v1/fonts (list_render_fonts) \u2014 the renderer loads those faces for the card and waits for them, so `font-family: Inter` draws Inter. `@import` and remote font files are REFUSED: the card renders with no network. A family that is not on that list has no bytes behind it and the browser falls back, so end any stack with a generic (`Inter, sans-serif`) rather than relying on a system face being present."),tokens:y(n(),n()).optional(),zPlane:u("front").optional()})]),kind:l(["video","audio","image","overlay","effect"]).optional(),opacity:s().min(W$).max(Z$).optional(),scale:s().gt(G$).optional(),rotation:s().optional(),position:c({x:s().min(J$).max(K$),y:s().min(H$).max(X$)}).optional().describe("Clip CENTRE as a fraction of the frame: {x:0.5,y:0.5} is dead centre, 0 to 1 is inside the frame, and a little overshoot (down to -1, up to 2) is how an entrance starts off-canvas. NOT pixels: the renderer maps x to `left: x*100%`, so `x: 180` sits 180 frame-widths away and draws nothing."),region:c({x:s().min(Y$).max(Q$),y:s().min(ek).max(tk),w:s().gt(ok).max(nk),h:s().gt(rk).max(ik)}).optional(),fit:l(["cover","contain"]).optional(),captionVisibility:l(["visible","hidden"]).optional().describe("Video media clip only. Hide native captions while this clip is topmost and covers the lower picture, or when an opaque, effect-free clip has an explicitly full-frame region, even with fit:contain. Caption words and timings remain stored and resume when another visible clip takes over."),effects:h(c({primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(ak),sourceVersionId:n().regex(sk),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(ck))).optional()}).optional(),window:c({startTime:s().min(dk),duration:s().gt(pk)}).optional()})).optional(),transitionIn:c({type:n().min(1),duration:s().gt(uk),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(lk),sourceVersionId:n().regex(mk),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(fk))).optional()}).optional(),fromClipId:n().min(1).optional(),toClipId:n().min(1).optional(),handlePolicy:u("outgoing-overrun-at-cut-v1").optional()}).optional(),linkGroupId:n().min(1).optional(),animate:y(n(),h(c({time:s().min(hk),value:s(),easing:z([l(["linear","ease","easeIn","easeOut","easeInOut"]),c({cubicBezier:F([s(),s(),s(),s()])})]).optional()})).min(gk)).optional().describe("Keyframe channels, clip-relative seconds. Each channel's values use the SAME unit as the scalar it animates: `opacity` 0 to 1, `scale` a multiplier (>0), `rotation` degrees, `position.x`/`position.y` a FRACTION of the frame like `position` (0.5 = centre; NOT pixels), `volume` 0 to 4.")})).max(xk).optional().describe("Client-authored graphic clips the Director must carry VERBATIM: seeded into the design loop's base composition as LOCKED clips (never re-authored, never discarded)."),exclusions:h(Po).max(zk).optional(),gates:Lo.optional(),audio:Eo.optional()});var yk=256,Sk=256,vk=256,Rk=256,wk=256,Ik=256,Mk=new RegExp("^[a-f0-9]{64}$"),Ok=256,$k=256,kk=0,Tk=new RegExp("^[a-f0-9]{64}$"),Ck=new RegExp("^[a-f0-9]{64}$"),Dk=new RegExp("^[a-f0-9]{64}$"),_k=0,Ek=9007199254740991,jk=0,Pk=9007199254740991,Lk=0,Vk=9007199254740991,Fk=0,Ak=0,Uk=9007199254740991,Nk=new RegExp("^[a-f0-9]{64}$"),qk=0,Bk=9007199254740991,Wk=0,Zk=9007199254740991,Gk=new RegExp("^[a-f0-9]{64}$"),Jk=256,Kk=256,Hk=256,Xk=256,Yk=256,Qk=256,eT=new RegExp("^[a-f0-9]{64}$"),tT=128,oT=0,nT=9007199254740991,rT=0,iT=9007199254740991,aT=0,sT=9007199254740991,cT=0,dT=0,pT=0,uT=256,lT=256,mT=256,fT=256,hT=256,gT=256,xT=new RegExp("^[a-f0-9]{64}$"),zT=256,bT=256,yT=0,ST=new RegExp("^[a-f0-9]{64}$"),vT=new RegExp("^[a-f0-9]{64}$"),RT=new RegExp("^[a-f0-9]{64}$"),wT=0,IT=9007199254740991,MT=0,OT=9007199254740991,$T=0,kT=9007199254740991,TT=0,CT=0,DT=9007199254740991,_T=new RegExp("^[a-f0-9]{64}$"),ET=0,jT=9007199254740991,PT=0,LT=9007199254740991,VT=new RegExp("^[a-f0-9]{64}$"),FT=256,AT=256,UT=256,NT=256,qT=256,BT=256,WT=new RegExp("^[a-f0-9]{64}$"),ZT=new RegExp("^[a-f0-9]{64}$"),GT=256,JT=256,KT=256,HT=256,XT=256,YT=256,QT=new RegExp("^[a-f0-9]{64}$"),eC=256,tC=256,oC=256,nC=256,rC=256,iC=256,aC=new RegExp("^[a-f0-9]{64}$"),sC=256,cC=256,dC=0,pC=new RegExp("^[a-f0-9]{64}$"),uC=new RegExp("^[a-f0-9]{64}$"),lC=new RegExp("^[a-f0-9]{64}$"),mC=0,fC=9007199254740991,hC=0,gC=9007199254740991,xC=0,zC=9007199254740991,bC=0,yC=0,SC=9007199254740991,vC=new RegExp("^[a-f0-9]{64}$"),RC=0,wC=9007199254740991,IC=0,MC=9007199254740991,OC=new RegExp("^[a-f0-9]{64}$"),$C=256,kC=256,TC=256,CC=256,DC=256,_C=256,EC=new RegExp("^[a-f0-9]{64}$"),jC=9007199254740991,PC=256,LC=256,VC=256,FC=256,AC=256,UC=256,NC=new RegExp("^[a-f0-9]{64}$"),qC=new RegExp("^[a-f0-9]{64}$"),BC=c({card:z([c({identity:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(yk)}),c({kind:u("org-local"),orgId:n().min(1).max(Sk),workspaceId:n().min(1).max(vk)}),c({kind:u("org-hosted"),orgId:n().min(1).max(Rk),deploymentId:n().min(1).max(wk)})]),id:n().min(1).max(Ik),revision:n().regex(Mk)}),name:n().min(1).max(Ok),description:n(),category:n().min(1).max($k),presentation:c({version:u(1),representativeTimeSeconds:s().min(kk)}).optional(),showcase:c({version:u(1),presentationKey:n().min(1),fixtureIdentity:n().regex(Tk),rendererIdentity:n().regex(Ck),video:c({file:n().min(1),sha256:n().regex(Dk),byteLength:x().gt(_k).max(Ek),width:x().gt(jk).max(Pk),height:x().gt(Lk).max(Vk),fps:s().gt(Fk),durationInFrames:x().gt(Ak).max(Uk)}),poster:c({file:n().min(1),sha256:n().regex(Nk),byteLength:x().gt(qk).max(Bk),frame:x().min(Wk).max(Zk)})}).optional(),preview:c({identity:n().regex(Gk),status:l(["unproven","verified"])}).optional(),kind:u("definition"),source:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(Jk)}),c({kind:u("org-local"),orgId:n().min(1).max(Kk),workspaceId:n().min(1).max(Hk)}),c({kind:u("org-hosted"),orgId:n().min(1).max(Xk),deploymentId:n().min(1).max(Yk)})]),componentId:n().min(1).max(Qk),sourceVersionId:n().regex(eT),sourceVersion:u(3)}),declaration:c({state:u("v3"),capabilities:h(z([c({kind:u("clip")}),c({kind:u("cut-transition"),protocol:u("per-child")}),c({kind:u("content-slots"),slots:h(c({name:n().min(1).max(tT),min:x().min(oT).max(nT),max:x().gt(rT).max(iT),ownership:l(["reference","exclusive"]),sizing:l(["canvas","container"])})).min(1)}),c({kind:u("clip-wrapper"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()}),c({kind:u("global-wrapper"),scope:u("media-lanes"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()})])).min(1),timing:c({defaultDuration:c({frames:x().gt(aT).max(sT),fps:s().gt(cT)}),minDurationSec:s().gt(dT).optional(),maxDurationSec:s().gt(pT).optional()})}),origin:l(["server-native","customer-owned"])}),c({identity:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(uT)}),c({kind:u("org-local"),orgId:n().min(1).max(lT),workspaceId:n().min(1).max(mT)}),c({kind:u("org-hosted"),orgId:n().min(1).max(fT),deploymentId:n().min(1).max(hT)})]),id:n().min(1).max(gT),revision:n().regex(xT)}),name:n().min(1).max(zT),description:n(),category:n().min(1).max(bT),presentation:c({version:u(1),representativeTimeSeconds:s().min(yT)}).optional(),showcase:c({version:u(1),presentationKey:n().min(1),fixtureIdentity:n().regex(ST),rendererIdentity:n().regex(vT),video:c({file:n().min(1),sha256:n().regex(RT),byteLength:x().gt(wT).max(IT),width:x().gt(MT).max(OT),height:x().gt($T).max(kT),fps:s().gt(TT),durationInFrames:x().gt(CT).max(DT)}),poster:c({file:n().min(1),sha256:n().regex(_T),byteLength:x().gt(ET).max(jT),frame:x().min(PT).max(LT)})}).optional(),preview:c({identity:n().regex(VT),status:l(["unproven","verified"])}).optional(),kind:u("preset"),definition:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(FT)}),c({kind:u("org-local"),orgId:n().min(1).max(AT),workspaceId:n().min(1).max(UT)}),c({kind:u("org-hosted"),orgId:n().min(1).max(NT),deploymentId:n().min(1).max(qT)})]),componentId:n().min(1).max(BT),sourceVersionId:n().regex(WT),sourceVersion:u(3)}),presetVersionId:n().regex(ZT),historicalDocument:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(GT)}),c({kind:u("org-local"),orgId:n().min(1).max(JT),workspaceId:n().min(1).max(KT)}),c({kind:u("org-hosted"),orgId:n().min(1).max(HT),deploymentId:n().min(1).max(XT)})]),documentId:n().min(1).max(YT),documentSha256:n().regex(QT)}),equivalence:l(["unproven","verified"])}),c({identity:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(eC)}),c({kind:u("org-local"),orgId:n().min(1).max(tC),workspaceId:n().min(1).max(oC)}),c({kind:u("org-hosted"),orgId:n().min(1).max(nC),deploymentId:n().min(1).max(rC)})]),id:n().min(1).max(iC),revision:n().regex(aC)}),name:n().min(1).max(sC),description:n(),category:n().min(1).max(cC),presentation:c({version:u(1),representativeTimeSeconds:s().min(dC)}).optional(),showcase:c({version:u(1),presentationKey:n().min(1),fixtureIdentity:n().regex(pC),rendererIdentity:n().regex(uC),video:c({file:n().min(1),sha256:n().regex(lC),byteLength:x().gt(mC).max(fC),width:x().gt(hC).max(gC),height:x().gt(xC).max(zC),fps:s().gt(bC),durationInFrames:x().gt(yC).max(SC)}),poster:c({file:n().min(1),sha256:n().regex(vC),byteLength:x().gt(RC).max(wC),frame:x().min(IC).max(MC)})}).optional(),preview:c({identity:n().regex(OC),status:l(["unproven","verified"])}).optional(),kind:u("recipe"),document:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max($C)}),c({kind:u("org-local"),orgId:n().min(1).max(kC),workspaceId:n().min(1).max(TC)}),c({kind:u("org-hosted"),orgId:n().min(1).max(CC),deploymentId:n().min(1).max(DC)})]),documentId:n().min(1).max(_C),documentSha256:n().regex(EC)}),placementCount:x().min(1).max(jC),memberSources:h(c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(PC)}),c({kind:u("org-local"),orgId:n().min(1).max(LC),workspaceId:n().min(1).max(VC)}),c({kind:u("org-hosted"),orgId:n().min(1).max(FC),deploymentId:n().min(1).max(AC)})]),componentId:n().min(1).max(UC),sourceVersionId:n().regex(NC),sourceVersion:u(3)})).min(1),equivalence:l(["unproven","verified"])})]),document:y(n(),$()).optional(),documentText:n().optional(),documentSha256:n().regex(qC).optional(),source:y(n(),$()).optional(),sources:h(y(n(),$())).optional(),preset:y(n(),$()).optional()});var WC="month",ZC=c({plan:l(["credit_pack_10","credit_pack_30","credit_pack_100"]).describe("Plan tier to subscribe to."),interval:l(["month","year"]).default(WC).describe("Billing interval: 'month' (monthly) or 'year' (annual, ~2 months free).")});var GC=c({url:n().describe("Hosted Stripe checkout URL to open in a browser to complete payment. Always present on success \u2014 an existing saved card is never charged without confirming here."),plan:n(),interval:n(),productId:n().describe("Resolved billing catalog product id.")});var JC=0,KC=9007199254740991,HC=2e3,Eg=c({anchor:z([c({beatId:n().min(1)}),c({timecodeMs:x().min(JC).max(KC)})]).describe("What the comment is about: a plan beat (content gate) or a timecode on the artifact (layout/motion gates)."),verdict:l(["approve","revise","lock"]).describe("Per-anchor verdict under the single gate decision. `lock` = contractually frozen \u2014 the director touching a locked element is a defect, surfaced as a lock_violation verdict on the next packet (the no-discard machinery)."),note:n().max(HC).optional()});var aa=c({thisStepUsd:s().describe("What approving costs NEXT (the render at the final gate; $0 earlier)."),jobSpendSoFarUsd:s().describe("What has SETTLED so far \u2014 $0 while the run is live (compose is charge-on-delivery on both rails), so abandoning at a gate charges nothing."),estimatedJourneyTotalUsd:s().describe("The same journey number the Brief quoted.")});var sa=l(["content","layout","motion"]);var XC=-9007199254740991,YC=9007199254740991,QC=-9007199254740991,eD=9007199254740991,Hu=c({id:n(),projectId:n(),composeJobId:n().optional(),briefId:n().optional(),kind:l(["gate","score"]),stage:sa.optional(),version:x().min(XC).max(YC),status:l(["awaiting","approved","revised","abandoned","expired","superseded"]),artifact:$().describe("The stage artifact under review: the locked ComposePlan at content; the composition wire shape at layout/motion; the judged composition snapshot on kind:'score'."),stillUrls:h(n()).optional().describe("Presigned storyboard/eval stills \u2014 the packet's visual evidence (may be GC'd by the retention sweep after the job goes terminal; the decision record is immortal)."),criticVerdicts:$().optional().describe("Per-criterion scores + critique from the design loop / judge, incl. lock_violation entries."),quote:aa.optional(),revisionCycle:x().min(QC).max(eD).describe("Revise cycles this gate has consumed. The brief quote states the included count (revisionCyclesIncluded); beyond it, resume(revise) is refused with a typed error."),decision:$().optional().describe("The recorded decision {decision, comments?, globalNote?, decidedAt} once resolved."),reviewMode:l(["agent","hosted"]).optional().describe("How this packet is decided (from the Brief's gates). 'hosted' = the review PAGE captures the decision; absent/'agent' = the decision flows back through the driving agent."),reviewUrl:n().optional().describe("Hosted review-page URL (present when reviewMode is 'hosted') \u2014 a human decides from this link, no account or agent session; the recorded decision rides the SAME resume rail, and the agent learns of it via checkpoint webhooks / wait_job."),createdAt:s(),updatedAt:s()});var tD=c({data:h(Hu),pagination:ue});var oD=24,nD=4e3,rD=c({decision:l(["approve","revise","abandon"]).describe("The ONE verdict for this gate (GitHub review grammar). approve = proceed (comments allowed \u2014 they record as taste signal without gating); revise = the director revises per comments/edits and RE-PRESENTS this same gate (in-job, no re-meter); abandon = end the run."),comments:h(Eg).max(oD).optional(),edits:$().optional().describe("Your edited stage artifact (the power path). With edits the re-presented packet carries exactly what you supplied; with comments alone the director re-authors scoped by them."),globalNote:n().max(nD).optional()}).describe("POST /checkpoints/:id/resume body \u2014 the A1 review grammar.");var iD=c({ok:u(!0)}).describe("POST /checkpoints/:id/resume response.");var nMe=c({ok:w()});var iMe=c({etag:n()});var aD=200,sD=200,cD=2e3,dD=200,pD=0,uD=128,lD=new RegExp("^[a-zA-Z0-9][a-zA-Z0-9._-]*$"),mD=8e6,fD=0,hD=64,gD=0,xD=64,zD=1,bD=0,yD=1,SD=1,vD=0,RD=1,wD=128,ID=128,MD=128,OD=0,$D=9007199254740991,kD=0,TD=0,CD=0,DD=128,_D=0,ED=9007199254740991,jD=0,PD=9007199254740991,LD=128,VD=128,FD=16,AD=0,UD=9007199254740991,ND=0,qD=9007199254740991,BD=0,WD=64,ZD=0,GD=64,JD=1,KD=0,HD=1,XD=1,YD=0,QD=1,e1=new RegExp("^https:\\/\\/.*"),t1=new RegExp("^[a-f0-9]{64}$"),o1=0,n1=0,r1=128,i1=new RegExp("^[a-f0-9]{64}$"),a1=0,s1=0,c1=new RegExp("^https:\\/\\/.*"),d1=new RegExp("^[a-f0-9]{64}$"),p1=0,u1=0,l1=128,m1=new RegExp("^[a-f0-9]{64}$"),f1=0,h1=0,jg=c({componentId:n().min(1).max(aD).describe("Caller-chosen stable component id. On create it names the new component. On PUT/PATCH it is optional and, when present, must equal the id in the path; a mismatch is a 400 naming both."),name:n().min(1).max(sD),description:n().max(cD),category:l(["text","effects","transitions","layouts","backgrounds","ui-blocks","scenes"]),propSchema:y(n(),$()).optional(),origin:l(["customer-owned","server-native"]).optional(),ejectedFrom:n().max(dD).optional(),tokens:y(n(),$()).optional(),examples:h(y(n(),$())).optional().describe("Usage examples, as authored. A built-in primitive projects {name, mood?, params?, description?}; an authored component's examples are whatever it wrote, which is why the item is open. One shape for both directions: what you write here is what you read back."),durationInFrames:s().gt(pD).optional(),source:c({version:u(3),componentId:n().min(1).max(uD).regex(lD),tsxSource:n().min(1).max(mD),manifest:c({version:u(2),assets:y(n(),c({kind:l(["image","video","audio","data","visual"]),required:w(),mimeTypes:h(n().min(1)).min(1).optional(),mediaDemand:z([c({mode:u("original")}),c({mode:u("tier"),tier:z([u(256),u(512),u(1024),u(2048)])}),c({mode:u("auto"),maxProjectedWidthRatio:s().gt(fD).max(hD),maxProjectedHeightRatio:s().gt(gD).max(xD),minVisibleSourceWidthRatio:s().gt(bD).max(yD).default(zD),minVisibleSourceHeightRatio:s().gt(vD).max(RD).default(SD)})]).optional()})),graphics:c({api:l(["canvas2d","webgl","webgl2","webgpu"]),required:u(!0),accelerationPreference:l(["hardware-preferred","software-allowed"])}),alphaPolicy:l(["requires-transparency","allows-opaque"]),sceneShot:c({version:u(2)}).optional(),visualMedia:c({version:u(1)}).optional()}),definition:c({inputSchema:y(n(),$()),defaults:y(n(),$()),brandBindings:h(c({propPath:n().min(1).max(wD),cssVar:n().min(1).max(ID),fallback:n().optional(),brandKitPath:n().min(1).max(MD).optional()})),timing:c({defaultDuration:c({frames:x().gt(OD).max($D),fps:s().gt(kD)}),minDurationSec:s().gt(TD).optional(),maxDurationSec:s().gt(CD).optional()}),capabilities:h(z([c({kind:u("clip")}),c({kind:u("cut-transition"),protocol:u("per-child")}),c({kind:u("content-slots"),slots:h(c({name:n().min(1).max(DD),min:x().min(_D).max(ED),max:x().gt(jD).max(PD),ownership:l(["reference","exclusive"]),sizing:l(["canvas","container"])})).min(1)}),c({kind:u("clip-wrapper"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()}),c({kind:u("global-wrapper"),scope:u("media-lanes"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()})])).min(1),mediaBindings:h(c({name:n().min(1).max(LD),propPath:h(n().min(1).max(VD)).min(1).max(FD),kind:l(["image","video","visual"]),collection:l(["scalar","array"]),cardinality:c({min:x().min(AD).max(UD),max:x().gt(ND).max(qD).optional()}),mimeTypes:h(n().min(1)).min(1).optional(),mediaDemand:z([c({mode:u("original")}),c({mode:u("tier"),tier:z([u(256),u(512),u(1024),u(2048)])}),c({mode:u("auto"),maxProjectedWidthRatio:s().gt(BD).max(WD),maxProjectedHeightRatio:s().gt(ZD).max(GD),minVisibleSourceWidthRatio:s().gt(KD).max(HD).default(JD),minVisibleSourceHeightRatio:s().gt(YD).max(QD).default(XD)})]).optional()})).min(1).optional(),preview:c({params:y(n(),$()).optional(),format:c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional(),platform:n().optional()}).optional(),assets:y(n(),z([c({url:oe().regex(e1),sha256:n().regex(t1),mimeType:n().min(1),frameRate:s().gt(o1).optional(),durationSec:s().gt(n1).optional()}),c({mediaId:n().min(1).max(r1),sha256:n().regex(i1),mimeType:n().min(1),frameRate:s().gt(a1).optional(),durationSec:s().gt(s1).optional()})])).optional(),mediaBindings:y(n(),h(z([c({url:oe().regex(c1),sha256:n().regex(d1),mimeType:n().min(1),frameRate:s().gt(p1).optional(),durationSec:s().gt(u1).optional()}),c({mediaId:n().min(1).max(l1),sha256:n().regex(m1),mimeType:n().min(1),frameRate:s().gt(f1).optional(),durationSec:s().gt(h1).optional()})]))).optional()}).optional()})})}).describe("POST /components body. Org/user are server-resolved; never accepted from the body.");var g1=0,x1=64,z1=0,b1=64,y1=1,S1=0,v1=1,R1=1,w1=0,I1=1,Vo=c({version:u(2),assets:y(n(),c({kind:l(["image","video","audio","data","visual"]),required:w(),mimeTypes:h(n().min(1)).min(1).optional(),mediaDemand:z([c({mode:u("original")}),c({mode:u("tier"),tier:z([u(256),u(512),u(1024),u(2048)])}),c({mode:u("auto"),maxProjectedWidthRatio:s().gt(g1).max(x1),maxProjectedHeightRatio:s().gt(z1).max(b1),minVisibleSourceWidthRatio:s().gt(S1).max(v1).default(y1),minVisibleSourceHeightRatio:s().gt(w1).max(I1).default(R1)})]).optional()})),graphics:c({api:l(["canvas2d","webgl","webgl2","webgpu"]),required:u(!0),accelerationPreference:l(["hardware-preferred","software-allowed"])}),alphaPolicy:l(["requires-transparency","allows-opaque"]),sceneShot:c({version:u(2)}).optional(),visualMedia:c({version:u(1)}).optional()});var ca=c({clipSourceKind:l(["overlay","effect","component"]).describe("The ClipSource `kind` to author this entry as: 'overlay' (built-in text/ui/scene/background/layout), 'effect' (built-in effect/transition), or 'component' (an org-INSTALLED custom component)."),refField:l(["primitiveId","componentId"]).describe("Which id field keys the ClipSource: 'primitiveId' for built-ins (source:'default'), 'componentId' for installed components (source:'installed'). Using the wrong field will NOT resolve at render.")});var da=c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional()});var M1=200,O1=2e3,$1=200,k1=0,Xu=c({name:n().min(1).max(M1),description:n().max(O1),category:l(["text","effects","transitions","layouts","backgrounds","ui-blocks","scenes"]),propSchema:y(n(),$()),origin:l(["customer-owned","server-native"]).optional(),ejectedFrom:n().max($1).optional(),tokens:y(n(),$()).optional(),examples:h(y(n(),$())).optional().describe("Usage examples, as authored. A built-in primitive projects {name, mood?, params?, description?}; an authored component's examples are whatever it wrote, which is why the item is open. One shape for both directions: what you write here is what you read back."),durationInFrames:s().gt(k1).optional(),manifest:Vo.optional().describe("The stored runtime manifest (assets, graphics API, alpha policy) of an org-INSTALLED component: the same object the create/update body takes, so a manifest read back here can be written back unchanged. Built-in defaults have no stored manifest and omit it. Its `version` is always 2 (the contract version), unlike the entry's semver `version`."),id:n().describe("The entry's id: a `primitiveId` for a built-in, a `componentId` for an installed component."),source:l(["default","installed"]).describe("'default' = built-in primitive (place by primitiveId); 'installed' = org-authored component (place by componentId)."),kind:l(["component","transition","scene"]).describe("RENDER kind (component | transition | scene). NOT the ClipSource variant \u2014 see `placement` for how to author it on the timeline."),version:n().describe("The ENTRY's version: a semver string ('0.0.0' until an authored component is versioned). Distinct from `manifest.version`, which is the runtime contract version and is always the literal 2."),propDefaults:y(n(),$()).optional(),textParam:n().nullish().describe("The param field that carries this primitive's primary text; null = no single text slot."),subtextParam:n().nullish().describe("The param field for secondary text (subtitle/byline); null = none."),format:da.optional(),intent:n().optional().describe("Selection signal: a verb naming what this primitive accomplishes (e.g. 'product-trailer'). Match it to the beat you are authoring."),useWhen:n().optional().describe("When to use this \u2014 AND when not to. The negative guidance is load-bearing; read it before picking."),pairsWith:h(n()).optional().describe("Authoring guidance: ids of primitives that COMPOSE well with this one in the same edit."),avoidWith:h(n()).optional().describe("Authoring guidance: ids of primitives that CONFLICT with this one \u2014 do not place together."),tags:h(n()).optional().describe("Free-text search keywords."),mood:h(n()).optional().describe("Vibe/tone tags (e.g. 'cinematic', 'minimal'). Filter to match the edit's mood."),tier:l(["recommended","standard","niche"]).optional().describe("Quality/applicability RANKING (a preference, not a flag). Prefer 'recommended'; reach for 'niche' only when its specific use-case is exactly the beat."),useCase:h(l(["intro","outro","full-scene","title-over-footage","transition","background","grade","emphasis","explainer","social-cut"])).optional().describe("The edit ROLE(s) this primitive fills \u2014 the dimension to filter by for a beat (e.g. 'intro', 'title-over-footage', 'grade')."),fixedCopy:h(n()).optional().describe("On-screen strings this primitive BAKES \u2014 the read-side counterpart to propSchema. These literals render REGARDLESS of params (no param can change them); fork the source via get_component_source to edit them. Use this to see at author time what fixed copy (someone-else's marketing text, faux-code, faux-data) will appear before you render."),brandBindings:h(c({param:n(),brandToken:n()})).optional().describe("Params that can follow the project brand kit. Each {param, brandToken} says: set `param` to `brandToken` (a `$brand:` ref, e.g. '$brand:colors.accent') to track the brand instead of a literal. See the list response's `brandTokens` for the full ref vocabulary. Omitted when nothing is brand-bound."),placement:ca.describe("How to author this entry as a ClipSource via apply_composition: the exact ClipSource `kind` + the id field to key it by. Built-ins place as {kind:'overlay'|'effect', primitiveId}; installed components place as {kind:'component', componentId}. A kind:'scene' primitive has no 'scene' ClipSource \u2014 it is placed as {kind:'overlay', primitiveId}."),warnings:h(n()).optional().describe("Non-blocking save-time advisories \u2014 the create/update SUCCEEDED. Currently: a `fontFamily` string literal referencing a NON-vendored font (a bare CSS generic like 'serif', or an unknown named family like 'Arial') whose LIVE-lane pixels vary by render host \u2014 re-author with a vendored family or 'Georgia'. Omitted when there is nothing to flag; only present on the create/update responses.")}).describe("Component catalog entry per \xA7Components.");var Pg=c({soundId:n().describe("Stable sound-pack item id."),family:l(["tick","pop","impact","confirm","error","whoosh","riser"]).describe("Editorial family the compose sfx pass binds by."),envelopeClass:l(["transient","sweep","ambient"]).describe("Coarse envelope shape \u2014 the browse grouping."),intensity:l(["subtle","standard","strong"]),durationSec:s().describe("Duration of the mastered asset (seconds)."),description:n().describe("One-line human-legible caption."),attribution:n().describe("CC0 provenance string.")});var Lg=c({data:h(Xu),pagination:ue,brandTokens:h(n()).optional().describe("Catalog-level reference: the valid `$brand:` token refs a param value may carry (e.g. accentColor: \"$brand:colors.accent\"). Colors + fonts are the common bindings; the full design-token vocabulary is listed. Derived from the brand kit resolver so it can't drift. See each entry's `brandBindings` for which params are brand-bound by default."),sfx:h(Pg).optional().describe("Catalog-level reference: the curated CC0 SFX pack (closed, versioned). The compose sfx pass places these deterministically; this is the pack-only structural inventory to pick a `soundId` by family. Present on the first page only."),audio:h(Cg).optional().describe(`The UNIFIED org sound palette (audio-substrate Phase 2): the curated packs (SFX + music beds) unioned with THIS org's own uploads/imports (source:"org") and generated audio (source:"generated"), one uniform entry shape carrying role + envelopeClass + provenance + license; music entries carry bpm. Prefer an org sound when it fits \u2014 an org that uploads its product's real UI sounds hears ITS product. Present on the first page only.`)});var T1=256,C1=256,D1=256,_1=256,E1=256,j1=256,P1=256,L1=256,V1=256,F1=256,A1=256,U1=new RegExp("^[a-f0-9]{64}$"),N1=256,q1=256,B1=0,W1=new RegExp("^[a-f0-9]{64}$"),Z1=new RegExp("^[a-f0-9]{64}$"),G1=new RegExp("^[a-f0-9]{64}$"),J1=0,K1=9007199254740991,H1=0,X1=9007199254740991,Y1=0,Q1=9007199254740991,e_=0,t_=0,o_=9007199254740991,n_=new RegExp("^[a-f0-9]{64}$"),r_=0,i_=9007199254740991,a_=0,s_=9007199254740991,c_=new RegExp("^[a-f0-9]{64}$"),d_=256,p_=256,u_=256,l_=256,m_=256,f_=256,h_=new RegExp("^[a-f0-9]{64}$"),g_=128,x_=0,z_=9007199254740991,b_=0,y_=9007199254740991,S_=0,v_=9007199254740991,R_=0,w_=0,I_=0,M_=256,O_=256,$_=256,k_=256,T_=256,C_=256,D_=new RegExp("^[a-f0-9]{64}$"),__=256,E_=256,j_=0,P_=new RegExp("^[a-f0-9]{64}$"),L_=new RegExp("^[a-f0-9]{64}$"),V_=new RegExp("^[a-f0-9]{64}$"),F_=0,A_=9007199254740991,U_=0,N_=9007199254740991,q_=0,B_=9007199254740991,W_=0,Z_=0,G_=9007199254740991,J_=new RegExp("^[a-f0-9]{64}$"),K_=0,H_=9007199254740991,X_=0,Y_=9007199254740991,Q_=new RegExp("^[a-f0-9]{64}$"),eE=256,tE=256,oE=256,nE=256,rE=256,iE=256,aE=new RegExp("^[a-f0-9]{64}$"),sE=new RegExp("^[a-f0-9]{64}$"),cE=256,dE=256,pE=256,uE=256,lE=256,mE=256,fE=new RegExp("^[a-f0-9]{64}$"),hE=256,gE=256,xE=256,zE=256,bE=256,yE=256,SE=new RegExp("^[a-f0-9]{64}$"),vE=256,RE=256,wE=0,IE=new RegExp("^[a-f0-9]{64}$"),ME=new RegExp("^[a-f0-9]{64}$"),OE=new RegExp("^[a-f0-9]{64}$"),$E=0,kE=9007199254740991,TE=0,CE=9007199254740991,DE=0,_E=9007199254740991,EE=0,jE=0,PE=9007199254740991,LE=new RegExp("^[a-f0-9]{64}$"),VE=0,FE=9007199254740991,AE=0,UE=9007199254740991,NE=new RegExp("^[a-f0-9]{64}$"),qE=256,BE=256,WE=256,ZE=256,GE=256,JE=256,KE=new RegExp("^[a-f0-9]{64}$"),HE=9007199254740991,XE=256,YE=256,QE=256,e2=256,t2=256,o2=256,n2=new RegExp("^[a-f0-9]{64}$"),r2=z([Lg,c({protocolVersion:u(1),scope:z([c({kind:u("builtin"),collection:n().min(1).max(T1)}),c({kind:u("org-local"),orgId:n().min(1).max(C1),workspaceId:n().min(1).max(D1)}),c({kind:u("org-hosted"),orgId:n().min(1).max(_1),deploymentId:n().min(1).max(E1)})]).optional(),data:h(z([c({identity:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(j1)}),c({kind:u("org-local"),orgId:n().min(1).max(P1),workspaceId:n().min(1).max(L1)}),c({kind:u("org-hosted"),orgId:n().min(1).max(V1),deploymentId:n().min(1).max(F1)})]),id:n().min(1).max(A1),revision:n().regex(U1)}),name:n().min(1).max(N1),description:n(),category:n().min(1).max(q1),presentation:c({version:u(1),representativeTimeSeconds:s().min(B1)}).optional(),showcase:c({version:u(1),presentationKey:n().min(1),fixtureIdentity:n().regex(W1),rendererIdentity:n().regex(Z1),video:c({file:n().min(1),sha256:n().regex(G1),byteLength:x().gt(J1).max(K1),width:x().gt(H1).max(X1),height:x().gt(Y1).max(Q1),fps:s().gt(e_),durationInFrames:x().gt(t_).max(o_)}),poster:c({file:n().min(1),sha256:n().regex(n_),byteLength:x().gt(r_).max(i_),frame:x().min(a_).max(s_)})}).optional(),preview:c({identity:n().regex(c_),status:l(["unproven","verified"])}).optional(),kind:u("definition"),source:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(d_)}),c({kind:u("org-local"),orgId:n().min(1).max(p_),workspaceId:n().min(1).max(u_)}),c({kind:u("org-hosted"),orgId:n().min(1).max(l_),deploymentId:n().min(1).max(m_)})]),componentId:n().min(1).max(f_),sourceVersionId:n().regex(h_),sourceVersion:u(3)}),declaration:c({state:u("v3"),capabilities:h(z([c({kind:u("clip")}),c({kind:u("cut-transition"),protocol:u("per-child")}),c({kind:u("content-slots"),slots:h(c({name:n().min(1).max(g_),min:x().min(x_).max(z_),max:x().gt(b_).max(y_),ownership:l(["reference","exclusive"]),sizing:l(["canvas","container"])})).min(1)}),c({kind:u("clip-wrapper"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()}),c({kind:u("global-wrapper"),scope:u("media-lanes"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()})])).min(1),timing:c({defaultDuration:c({frames:x().gt(S_).max(v_),fps:s().gt(R_)}),minDurationSec:s().gt(w_).optional(),maxDurationSec:s().gt(I_).optional()})}),origin:l(["server-native","customer-owned"])}),c({identity:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(M_)}),c({kind:u("org-local"),orgId:n().min(1).max(O_),workspaceId:n().min(1).max($_)}),c({kind:u("org-hosted"),orgId:n().min(1).max(k_),deploymentId:n().min(1).max(T_)})]),id:n().min(1).max(C_),revision:n().regex(D_)}),name:n().min(1).max(__),description:n(),category:n().min(1).max(E_),presentation:c({version:u(1),representativeTimeSeconds:s().min(j_)}).optional(),showcase:c({version:u(1),presentationKey:n().min(1),fixtureIdentity:n().regex(P_),rendererIdentity:n().regex(L_),video:c({file:n().min(1),sha256:n().regex(V_),byteLength:x().gt(F_).max(A_),width:x().gt(U_).max(N_),height:x().gt(q_).max(B_),fps:s().gt(W_),durationInFrames:x().gt(Z_).max(G_)}),poster:c({file:n().min(1),sha256:n().regex(J_),byteLength:x().gt(K_).max(H_),frame:x().min(X_).max(Y_)})}).optional(),preview:c({identity:n().regex(Q_),status:l(["unproven","verified"])}).optional(),kind:u("preset"),definition:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(eE)}),c({kind:u("org-local"),orgId:n().min(1).max(tE),workspaceId:n().min(1).max(oE)}),c({kind:u("org-hosted"),orgId:n().min(1).max(nE),deploymentId:n().min(1).max(rE)})]),componentId:n().min(1).max(iE),sourceVersionId:n().regex(aE),sourceVersion:u(3)}),presetVersionId:n().regex(sE),historicalDocument:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(cE)}),c({kind:u("org-local"),orgId:n().min(1).max(dE),workspaceId:n().min(1).max(pE)}),c({kind:u("org-hosted"),orgId:n().min(1).max(uE),deploymentId:n().min(1).max(lE)})]),documentId:n().min(1).max(mE),documentSha256:n().regex(fE)}),equivalence:l(["unproven","verified"])}),c({identity:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(hE)}),c({kind:u("org-local"),orgId:n().min(1).max(gE),workspaceId:n().min(1).max(xE)}),c({kind:u("org-hosted"),orgId:n().min(1).max(zE),deploymentId:n().min(1).max(bE)})]),id:n().min(1).max(yE),revision:n().regex(SE)}),name:n().min(1).max(vE),description:n(),category:n().min(1).max(RE),presentation:c({version:u(1),representativeTimeSeconds:s().min(wE)}).optional(),showcase:c({version:u(1),presentationKey:n().min(1),fixtureIdentity:n().regex(IE),rendererIdentity:n().regex(ME),video:c({file:n().min(1),sha256:n().regex(OE),byteLength:x().gt($E).max(kE),width:x().gt(TE).max(CE),height:x().gt(DE).max(_E),fps:s().gt(EE),durationInFrames:x().gt(jE).max(PE)}),poster:c({file:n().min(1),sha256:n().regex(LE),byteLength:x().gt(VE).max(FE),frame:x().min(AE).max(UE)})}).optional(),preview:c({identity:n().regex(NE),status:l(["unproven","verified"])}).optional(),kind:u("recipe"),document:c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(qE)}),c({kind:u("org-local"),orgId:n().min(1).max(BE),workspaceId:n().min(1).max(WE)}),c({kind:u("org-hosted"),orgId:n().min(1).max(ZE),deploymentId:n().min(1).max(GE)})]),documentId:n().min(1).max(JE),documentSha256:n().regex(KE)}),placementCount:x().min(1).max(HE),memberSources:h(c({scope:z([c({kind:u("builtin"),collection:n().min(1).max(XE)}),c({kind:u("org-local"),orgId:n().min(1).max(YE),workspaceId:n().min(1).max(QE)}),c({kind:u("org-hosted"),orgId:n().min(1).max(e2),deploymentId:n().min(1).max(t2)})]),componentId:n().min(1).max(o2),sourceVersionId:n().regex(n2),sourceVersion:u(3)})).min(1),equivalence:l(["unproven","verified"])})])),pagination:ue})]);var i2=0,a2=9007199254740991,s2=128,c2=0,d2=9007199254740991,p2=256,u2=65536,l2=2048,Fo=z([c({mode:u("exact"),expectedRevision:x().min(i2).max(a2)}),c({mode:u("guarded"),compositionId:n().min(1).max(s2).optional(),observedRevision:x().min(c2).max(d2),basis:h(c({key:n().min(1).max(p2),token:n().max(u2)})).max(l2)})]);var m2=200,f2=200,h2=2e3,g2=200,x2=0,z2=128,b2=new RegExp("^[a-zA-Z0-9][a-zA-Z0-9._-]*$"),y2=8e6,S2=0,v2=64,R2=0,w2=64,I2=1,M2=0,O2=1,$2=1,k2=0,T2=1,C2=128,D2=128,_2=128,E2=0,j2=9007199254740991,P2=0,L2=0,V2=0,F2=128,A2=0,U2=9007199254740991,N2=0,q2=9007199254740991,B2=128,W2=128,Z2=16,G2=0,J2=9007199254740991,K2=0,H2=9007199254740991,X2=0,Y2=64,Q2=0,ej=64,tj=1,oj=0,nj=1,rj=1,ij=0,aj=1,sj=new RegExp("^https:\\/\\/.*"),cj=new RegExp("^[a-f0-9]{64}$"),dj=0,pj=0,uj=128,lj=new RegExp("^[a-f0-9]{64}$"),mj=0,fj=0,hj=new RegExp("^https:\\/\\/.*"),gj=new RegExp("^[a-f0-9]{64}$"),xj=0,zj=0,bj=128,yj=new RegExp("^[a-f0-9]{64}$"),Sj=0,vj=0,Rj=c({componentId:n().min(1).max(m2).optional().describe("Caller-chosen stable component id. On create it names the new component. On PUT/PATCH it is optional and, when present, must equal the id in the path; a mismatch is a 400 naming both."),name:n().min(1).max(f2).optional(),description:n().max(h2).optional(),category:l(["text","effects","transitions","layouts","backgrounds","ui-blocks","scenes"]).optional(),propSchema:y(n(),$()).optional(),origin:l(["customer-owned","server-native"]).optional(),ejectedFrom:n().max(g2).optional(),tokens:y(n(),$()).optional(),examples:h(y(n(),$())).optional().describe("Usage examples, as authored. A built-in primitive projects {name, mood?, params?, description?}; an authored component's examples are whatever it wrote, which is why the item is open. One shape for both directions: what you write here is what you read back."),durationInFrames:s().gt(x2).optional(),source:c({version:u(3),componentId:n().min(1).max(z2).regex(b2),tsxSource:n().min(1).max(y2),manifest:c({version:u(2),assets:y(n(),c({kind:l(["image","video","audio","data","visual"]),required:w(),mimeTypes:h(n().min(1)).min(1).optional(),mediaDemand:z([c({mode:u("original")}),c({mode:u("tier"),tier:z([u(256),u(512),u(1024),u(2048)])}),c({mode:u("auto"),maxProjectedWidthRatio:s().gt(S2).max(v2),maxProjectedHeightRatio:s().gt(R2).max(w2),minVisibleSourceWidthRatio:s().gt(M2).max(O2).default(I2),minVisibleSourceHeightRatio:s().gt(k2).max(T2).default($2)})]).optional()})),graphics:c({api:l(["canvas2d","webgl","webgl2","webgpu"]),required:u(!0),accelerationPreference:l(["hardware-preferred","software-allowed"])}),alphaPolicy:l(["requires-transparency","allows-opaque"]),sceneShot:c({version:u(2)}).optional(),visualMedia:c({version:u(1)}).optional()}),definition:c({inputSchema:y(n(),$()),defaults:y(n(),$()),brandBindings:h(c({propPath:n().min(1).max(C2),cssVar:n().min(1).max(D2),fallback:n().optional(),brandKitPath:n().min(1).max(_2).optional()})),timing:c({defaultDuration:c({frames:x().gt(E2).max(j2),fps:s().gt(P2)}),minDurationSec:s().gt(L2).optional(),maxDurationSec:s().gt(V2).optional()}),capabilities:h(z([c({kind:u("clip")}),c({kind:u("cut-transition"),protocol:u("per-child")}),c({kind:u("content-slots"),slots:h(c({name:n().min(1).max(F2),min:x().min(A2).max(U2),max:x().gt(N2).max(q2),ownership:l(["reference","exclusive"]),sizing:l(["canvas","container"])})).min(1)}),c({kind:u("clip-wrapper"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()}),c({kind:u("global-wrapper"),scope:u("media-lanes"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()})])).min(1),mediaBindings:h(c({name:n().min(1).max(B2),propPath:h(n().min(1).max(W2)).min(1).max(Z2),kind:l(["image","video","visual"]),collection:l(["scalar","array"]),cardinality:c({min:x().min(G2).max(J2),max:x().gt(K2).max(H2).optional()}),mimeTypes:h(n().min(1)).min(1).optional(),mediaDemand:z([c({mode:u("original")}),c({mode:u("tier"),tier:z([u(256),u(512),u(1024),u(2048)])}),c({mode:u("auto"),maxProjectedWidthRatio:s().gt(X2).max(Y2),maxProjectedHeightRatio:s().gt(Q2).max(ej),minVisibleSourceWidthRatio:s().gt(oj).max(nj).default(tj),minVisibleSourceHeightRatio:s().gt(ij).max(aj).default(rj)})]).optional()})).min(1).optional(),preview:c({params:y(n(),$()).optional(),format:c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional(),platform:n().optional()}).optional(),assets:y(n(),z([c({url:oe().regex(sj),sha256:n().regex(cj),mimeType:n().min(1),frameRate:s().gt(dj).optional(),durationSec:s().gt(pj).optional()}),c({mediaId:n().min(1).max(uj),sha256:n().regex(lj),mimeType:n().min(1),frameRate:s().gt(mj).optional(),durationSec:s().gt(fj).optional()})])).optional(),mediaBindings:y(n(),h(z([c({url:oe().regex(hj),sha256:n().regex(gj),mimeType:n().min(1),frameRate:s().gt(xj).optional(),durationSec:s().gt(zj).optional()}),c({mediaId:n().min(1).max(bj),sha256:n().regex(yj),mimeType:n().min(1),frameRate:s().gt(Sj).optional(),durationSec:s().gt(vj).optional()})]))).optional()}).optional()})}).optional(),projectId:n().min(1).optional().describe("A project whose explicitly named composition moves its placements atomically with the source write. Requires compositionId and concurrency."),compositionId:n().min(1).optional().describe("The exact composition observed by the caller. Required with projectId and concurrency."),concurrency:Fo.optional().describe("Caller-observed placement guard. Atomic library edits with placement changes require explicit supported invocation admission.")}).describe("PATCH /components/:id body, RFC 7396 merge: a field you omit is left exactly as it was. Org/user are server-resolved; never accepted from the body.");var Vg=c({artifactKind:u("image"),contentType:l(["image/png","image/jpeg"]),cached:w(),listUsd:s().optional().describe("List price charged for this delivered preview."),url:oe(),urlExpiresAt:n()});var Fg=c({artifactKind:u("motion"),contentType:u("video/webm"),cached:w(),listUsd:s().optional().describe("List price charged for this delivered preview."),url:oe(),urlExpiresAt:n()});var Ag=z([Vg,Fg]);var wj=0,Ij=9007199254740991,Mj=0,Oj=9007199254740991,$j=3600,kj=c({componentId:n().min(1),params:y(n(),$()).optional(),assets:y(n(),n().min(1)).optional().describe("Component asset-slot name to org mediaId. Every required manifest slot must be bound."),width:x().gt(wj).max(Ij).optional().describe("Exact width of a supported composition format. Width and height must match one aspect ratio/resolution pair; omitted values use the project format."),height:x().gt(Mj).max(Oj).optional().describe("Exact height paired with width for a supported composition format."),fps:z([u(24),u(25),u(30),u(60)]).optional().describe("Preview frame rate: 24, 25, 30, or 60. When omitted, uses the project's format."),durationInFrames:x().min(1).max($j).optional().describe("Preview frame count. When omitted, uses the component's declared duration; required if the component has none.")});var Tj=200,Cj=2e3,Dj=200,_j=0,Ej=128,jj=new RegExp("^[a-zA-Z0-9][a-zA-Z0-9._-]*$"),Pj=8e6,Lj=0,Vj=64,Fj=0,Aj=64,Uj=1,Nj=0,qj=1,Bj=1,Wj=0,Zj=1,Gj=128,Jj=128,Kj=128,Hj=0,Xj=9007199254740991,Yj=0,Qj=0,eP=0,tP=128,oP=0,nP=9007199254740991,rP=0,iP=9007199254740991,aP=128,sP=128,cP=16,dP=0,pP=9007199254740991,uP=0,lP=9007199254740991,mP=0,fP=64,hP=0,gP=64,xP=1,zP=0,bP=1,yP=1,SP=0,vP=1,RP=new RegExp("^https:\\/\\/.*"),wP=new RegExp("^[a-f0-9]{64}$"),IP=0,MP=0,OP=128,$P=new RegExp("^[a-f0-9]{64}$"),kP=0,TP=0,CP=new RegExp("^https:\\/\\/.*"),DP=new RegExp("^[a-f0-9]{64}$"),_P=0,EP=0,jP=128,PP=new RegExp("^[a-f0-9]{64}$"),LP=0,VP=0,FP=c({tsxSource:n().min(1),name:n().min(1).max(Tj).optional(),description:n().max(Cj).optional(),propSchema:y(n(),$()),origin:l(["customer-owned","server-native"]).optional(),ejectedFrom:n().max(Dj).optional(),tokens:y(n(),$()).optional(),examples:h(y(n(),$())).optional().describe("Usage examples, as authored. A built-in primitive projects {name, mood?, params?, description?}; an authored component's examples are whatever it wrote, which is why the item is open. One shape for both directions: what you write here is what you read back."),durationInFrames:s().gt(_j).optional(),manifest:Vo,id:n(),source:l(["default","installed"]),metadataStatus:u("unresolved").optional().describe("Historical source-only reads omit unavailable discovery name/description instead of borrowing current metadata."),sourceVersionId:n().describe("Exact immutable source pin; distinct from bundle revisions."),sourceSnapshot:c({version:u(3),componentId:n().min(1).max(Ej).regex(jj),tsxSource:n().min(1).max(Pj),manifest:c({version:u(2),assets:y(n(),c({kind:l(["image","video","audio","data","visual"]),required:w(),mimeTypes:h(n().min(1)).min(1).optional(),mediaDemand:z([c({mode:u("original")}),c({mode:u("tier"),tier:z([u(256),u(512),u(1024),u(2048)])}),c({mode:u("auto"),maxProjectedWidthRatio:s().gt(Lj).max(Vj),maxProjectedHeightRatio:s().gt(Fj).max(Aj),minVisibleSourceWidthRatio:s().gt(Nj).max(qj).default(Uj),minVisibleSourceHeightRatio:s().gt(Wj).max(Zj).default(Bj)})]).optional()})),graphics:c({api:l(["canvas2d","webgl","webgl2","webgpu"]),required:u(!0),accelerationPreference:l(["hardware-preferred","software-allowed"])}),alphaPolicy:l(["requires-transparency","allows-opaque"]),sceneShot:c({version:u(2)}).optional(),visualMedia:c({version:u(1)}).optional()}),definition:c({inputSchema:y(n(),$()),defaults:y(n(),$()),brandBindings:h(c({propPath:n().min(1).max(Gj),cssVar:n().min(1).max(Jj),fallback:n().optional(),brandKitPath:n().min(1).max(Kj).optional()})),timing:c({defaultDuration:c({frames:x().gt(Hj).max(Xj),fps:s().gt(Yj)}),minDurationSec:s().gt(Qj).optional(),maxDurationSec:s().gt(eP).optional()}),capabilities:h(z([c({kind:u("clip")}),c({kind:u("cut-transition"),protocol:u("per-child")}),c({kind:u("content-slots"),slots:h(c({name:n().min(1).max(tP),min:x().min(oP).max(nP),max:x().gt(rP).max(iP),ownership:l(["reference","exclusive"]),sizing:l(["canvas","container"])})).min(1)}),c({kind:u("clip-wrapper"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()}),c({kind:u("global-wrapper"),scope:u("media-lanes"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()})])).min(1),mediaBindings:h(c({name:n().min(1).max(aP),propPath:h(n().min(1).max(sP)).min(1).max(cP),kind:l(["image","video","visual"]),collection:l(["scalar","array"]),cardinality:c({min:x().min(dP).max(pP),max:x().gt(uP).max(lP).optional()}),mimeTypes:h(n().min(1)).min(1).optional(),mediaDemand:z([c({mode:u("original")}),c({mode:u("tier"),tier:z([u(256),u(512),u(1024),u(2048)])}),c({mode:u("auto"),maxProjectedWidthRatio:s().gt(mP).max(fP),maxProjectedHeightRatio:s().gt(hP).max(gP),minVisibleSourceWidthRatio:s().gt(zP).max(bP).default(xP),minVisibleSourceHeightRatio:s().gt(SP).max(vP).default(yP)})]).optional()})).min(1).optional(),preview:c({params:y(n(),$()).optional(),format:c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional(),platform:n().optional()}).optional(),assets:y(n(),z([c({url:oe().regex(RP),sha256:n().regex(wP),mimeType:n().min(1),frameRate:s().gt(IP).optional(),durationSec:s().gt(MP).optional()}),c({mediaId:n().min(1).max(OP),sha256:n().regex($P),mimeType:n().min(1),frameRate:s().gt(kP).optional(),durationSec:s().gt(TP).optional()})])).optional(),mediaBindings:y(n(),h(z([c({url:oe().regex(CP),sha256:n().regex(DP),mimeType:n().min(1),frameRate:s().gt(_P).optional(),durationSec:s().gt(EP).optional()}),c({mediaId:n().min(1).max(jP),sha256:n().regex(PP),mimeType:n().min(1),frameRate:s().gt(LP).optional(),durationSec:s().gt(VP).optional()})]))).optional()}).optional()})}).describe("Canonical immutable v3 source snapshot; source remains provenance.")}).describe("Installed component SOURCE (TSX) + ownership provenance per \xA7Components.");var AP=200,UP=200,NP=2e3,qP=200,BP=0,WP=128,ZP=new RegExp("^[a-zA-Z0-9][a-zA-Z0-9._-]*$"),GP=8e6,JP=0,KP=64,HP=0,XP=64,YP=1,QP=0,eL=1,tL=1,oL=0,nL=1,rL=128,iL=128,aL=128,sL=0,cL=9007199254740991,dL=0,pL=0,uL=0,lL=128,mL=0,fL=9007199254740991,hL=0,gL=9007199254740991,xL=128,zL=128,bL=16,yL=0,SL=9007199254740991,vL=0,RL=9007199254740991,wL=0,IL=64,ML=0,OL=64,$L=1,kL=0,TL=1,CL=1,DL=0,_L=1,EL=new RegExp("^https:\\/\\/.*"),jL=new RegExp("^[a-f0-9]{64}$"),PL=0,LL=0,VL=128,FL=new RegExp("^[a-f0-9]{64}$"),AL=0,UL=0,NL=new RegExp("^https:\\/\\/.*"),qL=new RegExp("^[a-f0-9]{64}$"),BL=0,WL=0,ZL=128,GL=new RegExp("^[a-f0-9]{64}$"),JL=0,KL=0,HL=c({componentId:n().min(1).max(AP).optional().describe("Caller-chosen stable component id. On create it names the new component. On PUT/PATCH it is optional and, when present, must equal the id in the path; a mismatch is a 400 naming both."),name:n().min(1).max(UP).optional(),description:n().max(NP).optional(),category:l(["text","effects","transitions","layouts","backgrounds","ui-blocks","scenes"]).optional(),propSchema:y(n(),$()).optional(),origin:l(["customer-owned","server-native"]).optional(),ejectedFrom:n().max(qP).optional(),tokens:y(n(),$()).optional(),examples:h(y(n(),$())).optional().describe("Usage examples, as authored. A built-in primitive projects {name, mood?, params?, description?}; an authored component's examples are whatever it wrote, which is why the item is open. One shape for both directions: what you write here is what you read back."),durationInFrames:s().gt(BP).optional(),source:c({version:u(3),componentId:n().min(1).max(WP).regex(ZP),tsxSource:n().min(1).max(GP),manifest:c({version:u(2),assets:y(n(),c({kind:l(["image","video","audio","data","visual"]),required:w(),mimeTypes:h(n().min(1)).min(1).optional(),mediaDemand:z([c({mode:u("original")}),c({mode:u("tier"),tier:z([u(256),u(512),u(1024),u(2048)])}),c({mode:u("auto"),maxProjectedWidthRatio:s().gt(JP).max(KP),maxProjectedHeightRatio:s().gt(HP).max(XP),minVisibleSourceWidthRatio:s().gt(QP).max(eL).default(YP),minVisibleSourceHeightRatio:s().gt(oL).max(nL).default(tL)})]).optional()})),graphics:c({api:l(["canvas2d","webgl","webgl2","webgpu"]),required:u(!0),accelerationPreference:l(["hardware-preferred","software-allowed"])}),alphaPolicy:l(["requires-transparency","allows-opaque"]),sceneShot:c({version:u(2)}).optional(),visualMedia:c({version:u(1)}).optional()}),definition:c({inputSchema:y(n(),$()),defaults:y(n(),$()),brandBindings:h(c({propPath:n().min(1).max(rL),cssVar:n().min(1).max(iL),fallback:n().optional(),brandKitPath:n().min(1).max(aL).optional()})),timing:c({defaultDuration:c({frames:x().gt(sL).max(cL),fps:s().gt(dL)}),minDurationSec:s().gt(pL).optional(),maxDurationSec:s().gt(uL).optional()}),capabilities:h(z([c({kind:u("clip")}),c({kind:u("cut-transition"),protocol:u("per-child")}),c({kind:u("content-slots"),slots:h(c({name:n().min(1).max(lL),min:x().min(mL).max(fL),max:x().gt(hL).max(gL),ownership:l(["reference","exclusive"]),sizing:l(["canvas","container"])})).min(1)}),c({kind:u("clip-wrapper"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()}),c({kind:u("global-wrapper"),scope:u("media-lanes"),ordering:l(["any","innermost"]),acceptsWrappedTargets:w()})])).min(1),mediaBindings:h(c({name:n().min(1).max(xL),propPath:h(n().min(1).max(zL)).min(1).max(bL),kind:l(["image","video","visual"]),collection:l(["scalar","array"]),cardinality:c({min:x().min(yL).max(SL),max:x().gt(vL).max(RL).optional()}),mimeTypes:h(n().min(1)).min(1).optional(),mediaDemand:z([c({mode:u("original")}),c({mode:u("tier"),tier:z([u(256),u(512),u(1024),u(2048)])}),c({mode:u("auto"),maxProjectedWidthRatio:s().gt(wL).max(IL),maxProjectedHeightRatio:s().gt(ML).max(OL),minVisibleSourceWidthRatio:s().gt(kL).max(TL).default($L),minVisibleSourceHeightRatio:s().gt(DL).max(_L).default(CL)})]).optional()})).min(1).optional(),preview:c({params:y(n(),$()).optional(),format:c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional(),platform:n().optional()}).optional(),assets:y(n(),z([c({url:oe().regex(EL),sha256:n().regex(jL),mimeType:n().min(1),frameRate:s().gt(PL).optional(),durationSec:s().gt(LL).optional()}),c({mediaId:n().min(1).max(VL),sha256:n().regex(FL),mimeType:n().min(1),frameRate:s().gt(AL).optional(),durationSec:s().gt(UL).optional()})])).optional(),mediaBindings:y(n(),h(z([c({url:oe().regex(NL),sha256:n().regex(qL),mimeType:n().min(1),frameRate:s().gt(BL).optional(),durationSec:s().gt(WL).optional()}),c({mediaId:n().min(1).max(ZL),sha256:n().regex(GL),mimeType:n().min(1),frameRate:s().gt(JL).optional(),durationSec:s().gt(KL).optional()})]))).optional()}).optional()})}).optional(),projectId:n().min(1).optional().describe("A project whose explicitly named composition moves its placements atomically with the source write. Requires compositionId and concurrency."),compositionId:n().min(1).optional().describe("The exact composition observed by the caller. Required with projectId and concurrency."),concurrency:Fo.optional().describe("Caller-observed placement guard. Atomic library edits with placement changes require explicit supported invocation admission.")}).describe("PUT /components/:id body: every writable field, all optional; an omitted field is carried forward. Org/user are server-resolved; never accepted from the body.");var XL=200,YL=2e3,QL=200,eV=0,tV=0,oV=9007199254740991,nV=0,rV=9007199254740991,iV=c({name:n().min(1).max(XL),description:n().max(YL),category:l(["text","effects","transitions","layouts","backgrounds","ui-blocks","scenes"]),propSchema:y(n(),$()),origin:l(["customer-owned","server-native"]).optional(),ejectedFrom:n().max(QL).optional(),tokens:y(n(),$()).optional(),examples:h(y(n(),$())).optional().describe("Usage examples, as authored. A built-in primitive projects {name, mood?, params?, description?}; an authored component's examples are whatever it wrote, which is why the item is open. One shape for both directions: what you write here is what you read back."),durationInFrames:s().gt(eV).optional(),manifest:Vo.optional().describe("The stored runtime manifest (assets, graphics API, alpha policy) of an org-INSTALLED component: the same object the create/update body takes, so a manifest read back here can be written back unchanged. Built-in defaults have no stored manifest and omit it. Its `version` is always 2 (the contract version), unlike the entry's semver `version`."),id:n().describe("The entry's id: a `primitiveId` for a built-in, a `componentId` for an installed component."),source:l(["default","installed"]).describe("'default' = built-in primitive (place by primitiveId); 'installed' = org-authored component (place by componentId)."),kind:l(["component","transition","scene"]).describe("RENDER kind (component | transition | scene). NOT the ClipSource variant \u2014 see `placement` for how to author it on the timeline."),version:n().describe("The ENTRY's version: a semver string ('0.0.0' until an authored component is versioned). Distinct from `manifest.version`, which is the runtime contract version and is always the literal 2."),propDefaults:y(n(),$()).optional(),textParam:n().nullish().describe("The param field that carries this primitive's primary text; null = no single text slot."),subtextParam:n().nullish().describe("The param field for secondary text (subtitle/byline); null = none."),format:da.optional(),intent:n().optional().describe("Selection signal: a verb naming what this primitive accomplishes (e.g. 'product-trailer'). Match it to the beat you are authoring."),useWhen:n().optional().describe("When to use this \u2014 AND when not to. The negative guidance is load-bearing; read it before picking."),pairsWith:h(n()).optional().describe("Authoring guidance: ids of primitives that COMPOSE well with this one in the same edit."),avoidWith:h(n()).optional().describe("Authoring guidance: ids of primitives that CONFLICT with this one \u2014 do not place together."),tags:h(n()).optional().describe("Free-text search keywords."),mood:h(n()).optional().describe("Vibe/tone tags (e.g. 'cinematic', 'minimal'). Filter to match the edit's mood."),tier:l(["recommended","standard","niche"]).optional().describe("Quality/applicability RANKING (a preference, not a flag). Prefer 'recommended'; reach for 'niche' only when its specific use-case is exactly the beat."),useCase:h(l(["intro","outro","full-scene","title-over-footage","transition","background","grade","emphasis","explainer","social-cut"])).optional().describe("The edit ROLE(s) this primitive fills \u2014 the dimension to filter by for a beat (e.g. 'intro', 'title-over-footage', 'grade')."),fixedCopy:h(n()).optional().describe("On-screen strings this primitive BAKES \u2014 the read-side counterpart to propSchema. These literals render REGARDLESS of params (no param can change them); fork the source via get_component_source to edit them. Use this to see at author time what fixed copy (someone-else's marketing text, faux-code, faux-data) will appear before you render."),brandBindings:h(c({param:n(),brandToken:n()})).optional().describe("Params that can follow the project brand kit. Each {param, brandToken} says: set `param` to `brandToken` (a `$brand:` ref, e.g. '$brand:colors.accent') to track the brand instead of a literal. See the list response's `brandTokens` for the full ref vocabulary. Omitted when nothing is brand-bound."),placement:ca.describe("How to author this entry as a ClipSource via apply_composition: the exact ClipSource `kind` + the id field to key it by. Built-ins place as {kind:'overlay'|'effect', primitiveId}; installed components place as {kind:'component', componentId}. A kind:'scene' primitive has no 'scene' ClipSource \u2014 it is placed as {kind:'overlay', primitiveId}."),warnings:h(n()).optional().describe("Non-blocking save-time advisories \u2014 the create/update SUCCEEDED. Currently: a `fontFamily` string literal referencing a NON-vendored font (a bare CSS generic like 'serif', or an unknown named family like 'Arial') whose LIVE-lane pixels vary by render host \u2014 re-author with a vendored family or 'Georgia'. Omitted when there is nothing to flag; only present on the create/update responses."),repinned:c({compositionId:n(),pins:x().min(tV).max(oV).describe("Placements in that composition moved from the previous version to this one, nested scene surfaces included."),etag:n().nullable().describe("The composition's ETag after the move; null when no pin moved.")}).optional().describe("Present when the update named `projectId`: the composition whose placements moved to the new version."),placementsPinnedToPrevious:x().min(nV).max(rV).describe("Placements across the org that still pin the previous version and will keep rendering it. Name `projectId` (and `compositionId`) on the update to move a composition's placements with it.")}).describe("Updated component entry plus where its placements point.");var aV=2e3,sV=5,cV=0,dV=0,pV=10,uV=-9007199254740991,lV=9007199254740991,mV=64,fV=3,hV=c({suggestionId:n().min(1).optional(),fromComposition:w().optional().describe("Reuse the project's current composition as the compose starting point (critique-retry path). The Director RE-AUTHORS graphics: if the current composition is client-authored and contains graphic clips (overlay/component/card), the request is refused (validation_error naming the clips) \u2014 render it verbatim with create_render instead. The director's own output (critique-retry) is exempt."),briefId:n().min(1).optional().describe("Compose from a persisted Brief (create_brief) \u2014 the intent-first door: every Brief field is HONORED or the request is refused loudly naming the field (window from beat moment-pinning; seeded graphics carried VERBATIM as locked clips; exclusions enforced; locale + caption emphasis threaded to the Director). Exactly ONE of suggestionId | fromComposition | briefId."),format:he.optional().describe("Optional format override. Phase 2 ignores this \u2014 format precedence is project.compositionFormat \u2192 9:16 fhd 30fps default."),scope:$().optional().describe("RequestScope discriminated union (per compose-api-contract.md). Editor-only scopes (captions/overlay-track/broll/overlay-instance/segment) require an editor-session token; API tokens get 403 on those."),critique:n().max(aV).optional().describe("Structured critique block (per compose-api-contract.md decision #11). Capped at 2KB total; per-criterion blocks capped at 500 chars."),parentJobId:n().optional().describe("Pointer to the prior compose job this run iterates on. Surfaced on the resulting compose job as baselineComposeJobId."),maxCandidates:x().min(1).max(sV).optional().describe("Ensemble size. Currently pinned to 1 \u2014 the multi-candidate ensemble is disabled pending a capacity bound, so any value >1 is ignored and every compose runs a single candidate. Still accepted for forward-compat; will honor [1, 5] again once re-enabled."),budgetUsd:s().gt(cV).optional().describe("Per-job budget cap (USD). Clamped at the route against the org's composeMaxBudgetUsdPerJob setting."),qualityThreshold:s().min(dV).max(pV).optional().describe("Composite-score accept threshold. Server default per contract."),seed:x().min(uV).max(lV).optional().describe("Deterministic seed for replay."),clientNonce:n().max(mV).optional().describe("Opaque caller token that disambiguates intentional same-critique retries. Without it, identical (project, sug, seed, critique) tuples deduplicate; with it, retries create a fresh execution."),holdAt:h(l(["content","layout","motion"])).max(fV).optional().describe("Opt-in checkpoint gates. Each named stage pauses the compose at its boundary (status \u2192 awaiting_input) for client review via resume. Absent/empty \u21D2 fully autonomous. Non-empty \u21D2 the run is a single spine.")}).describe("POST /projects/:id/compose body.");var gV=c({composeJobId:n().describe("Opaque compose job id; pass to the SSE stream URL."),projectId:n(),status:l(["queued","failed"]).describe("queued = normal; failed = startup failed and the job is already terminal (the SSE stream will emit a single `job_failed` frame and close)."),streamUrl:n().optional().describe("Relative SSE endpoint to stream this job's events (per compose-api-contract.md).")}).describe("POST /projects/:id/compose response.");var xV=0,zV=9007199254740991,Ug=c({mode:l(["advise","amend","explore"]),assessment:c({editorial:c({score:s(),grounding:l(["measured","judged"]),abstained:w(),reliability:s().optional()}),spatial:c({score:s(),grounding:l(["measured","judged"]),abstained:w(),reliability:s().optional()}),brand:c({score:s(),grounding:l(["measured","judged"]),abstained:w(),reliability:s().optional()}),caption:c({score:s(),grounding:l(["measured","judged"]),abstained:w(),reliability:s().optional()})}).optional().describe("Grounded critique of the CURRENT composition. Omitted for mode=advise."),proposals:h(c({label:n(),candidateIndex:x().min(xV).max(zV).optional().describe("Present for amend/explore \u2014 adopt via POST /compose/jobs/:jobId/select with this candidateIndex. Absent for advise."),changeSummary:h(n()).describe("Human-legible edit-pattern labels."),boundToEtag:n().optional().describe("The composition etag this proposal was computed against."),expectedDelta:y(n(),n()).optional().describe("Advisory per-criterion score lift; NOT authoritative pre-recalibration.")})),principles:h(n()).describe("Reusable, grounded lessons for the client's next authoring."),plan:$().optional().describe("Present for mode=advise \u2014 the planner agent's ComposePlan (framing/cuts/captions/graphics intents) as GUIDANCE. The client agent reads it and re-authors; it is NOT converted to ops."),checkpointId:n().optional().describe("The durable kind:'score' Checkpoint minted from this advisory (evidence convergence \u2014 get_checkpoint re-reads the envelope later). Stamped at the consult success terminal.")}).describe("The advisory envelope returned by a completed consult job (on ComposeJobDetailResponse.advisoryResult).");var bV=-9007199254740991,yV=9007199254740991,SV=0,vV=9007199254740991,RV=-9007199254740991,wV=9007199254740991,IV=c({composeJobId:n(),projectId:n(),status:l(["queued","running","awaiting_input","complete","failed","cancelled"]),error:n().nullable(),request:c({suggestionId:n().optional(),fromComposition:w().optional(),scope:$().optional(),critique:n().optional(),parentJobId:n().optional(),maxCandidates:x().min(bV).max(yV).optional(),budgetUsd:s().optional(),qualityThreshold:s().optional()}),candidates:h($()),winner:z([c({candidateIndex:x().min(SV).max(vV),compositionRunId:n()}),q()]),listUsd:s().optional(),startedAt:s(),completedAt:s().nullable(),advisoryResult:Ug.optional(),checkpoint:c({checkpointId:n(),stage:l(["content","layout","motion"]),version:x().min(RV).max(wV)}).optional()});var Ng=c({composeJobId:n(),projectId:n(),status:l(["queued","running","awaiting_input","complete","failed","cancelled"]),suggestionId:n().optional(),createdAt:s(),completedAt:s().nullable()});var MV=c({jobs:h(Ng)});var OV=0,$V=9007199254740991,kV=c({candidateIndex:x().min(OV).max($V),selectStrategy:l(["agent-authoritative","editor-merge","editor-replace"]),ifMatch:n().optional()}).describe("POST /projects/:id/compose/jobs/:jobId/select body.");var TV=0,CV=9007199254740991,DV=c({newCompositionEtag:n(),mergeResult:c({replayedEdits:x().min(TV).max(CV),droppedEdits:h(c({trackId:n(),clipId:n().optional(),wordStartMs:s().optional(),reason:l(["target_removed","conflict"])}))}).optional()}).describe("POST /projects/:id/compose/jobs/:jobId/select response.");var _V=64,EV=c({seedComposition:$().optional(),leaseJobId:n().min(1).max(_V).optional()});var jV=0,PV=4,LV=0,VV=0,FV=0,AV=0,UV=0,NV=0,qV=0,BV=4,WV=0,ZV=0,GV=0,JV=0,KV=0,HV=0,XV=0,YV=0,QV=0,e4=1,t4=0,o4=1,n4=.1,r4=1,i4=0,a4=0,s4=-.3,c4=.3,d4=-.3,p4=.3,u4=256,l4=new RegExp("^[a-f0-9]{64}$"),m4=128,f4=256,h4=new RegExp("^(?!custom$)"),g4=0,x4=1,z4=0,b4=1,y4=-.3,S4=.3,v4=256,R4=new RegExp("^[a-f0-9]{64}$"),w4=128,I4=0,M4=9007199254740991,O4=0,$4=1,k4=0,T4=-1,C4=2,D4=-1,_4=2,E4=0,j4=1,P4=0,L4=1,V4=0,F4=1,A4=0,U4=1,N4=256,q4=new RegExp("^[a-f0-9]{64}$"),B4=128,W4=0,Z4=0,G4=0,J4=256,K4=new RegExp("^[a-f0-9]{64}$"),H4=128,X4=0,Y4=2,Q4=0,eF=0,tF=0,oF=0,nF=0,rF=0,iF=15,aF=100,sF=900,cF=0,dF=1,pF=0,uF=1,lF=0,mF=1,fF=0,hF=1,gF=-5,xF=20,zF=0,bF=2,yF=0,SF=2,vF=0,RF=100,wF=900,IF=0,MF=0,OF=0,$F=0,kF=.5,TF=12,CF=0,DF=100,_F=0,EF=9007199254740991,jF=0,PF=9007199254740991,LF=0,VF=9007199254740991,FF=0,AF=1,UF=0,NF=1,qF=0,BF=1,WF=0,ZF=1,GF=.25,JF=4,KF=-45,HF=45,XF=15,YF=100,QF=900,eA=-5,tA=20,oA=0,nA=2,rA=0,iA=2,aA=0,sA=100,cA=900,dA=0,pA=.5,uA=12,lA=0,mA=0,fA=0,hA=0,gA=9007199254740991,xA=0,zA=9007199254740991,bA=new RegExp("^[a-f0-9]{64}$"),yA=0,SA=0,vA=15,RA=100,wA=900,IA=0,MA=1,OA=0,$A=1,kA=0,TA=1,CA=0,DA=1,_A=-5,EA=20,jA=0,PA=2,LA=0,VA=2,FA=0,AA=100,UA=900,NA=0,qA=0,BA=0,WA=0,ZA=.5,GA=12,JA=0,KA=100,HA=0,XA=9007199254740991,YA=0,QA=9007199254740991,e9=0,t9=9007199254740991,o9=0,n9=1,r9=0,i9=1,a9=0,s9=1,c9=0,d9=1,p9=.25,u9=4,l9=-45,m9=45,f9=15,h9=100,g9=900,x9=-5,z9=20,b9=0,y9=2,S9=0,v9=2,R9=0,w9=100,I9=900,M9=0,O9=.5,$9=12,k9=0,T9=0,C9=0,D9=0,_9=9007199254740991,E9=0,j9=9007199254740991,P9=new RegExp("^[a-f0-9]{64}$"),ut=c({v:u(1),format:c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional(),platform:n().optional()}),tracks:h(c({id:n().min(1),kind:l(["video","audio","image","overlay","effect"]),name:n().optional(),enabled:w().optional(),volume:s().min(jV).max(PV).optional(),contents:h(z([c({id:n().min(1),startTime:s().min(LV).describe("Timeline start (seconds)."),duration:s().gt(VV).describe("Clip duration (seconds)."),source:z([c({kind:u("media"),mediaId:n().min(1),trim:c({start:s().min(FV).describe("Source trim start (seconds)."),end:s().min(AV).describe("Source trim end (seconds).")}).optional(),excludedRanges:h(c({start:s().min(UV),end:s().min(NV),reason:n().optional()})).optional(),volume:s().min(qV).max(BV).optional(),muted:w().optional(),playbackRate:s().gt(WV).optional(),sync:l(["video","independent"]).optional(),kenBurns:l(["in","out","pan-l","pan-r","none"]).optional(),volumeDb:s().optional(),fadeInMs:s().min(ZV).optional(),fadeOutMs:s().min(GV).optional(),loop:w().optional(),audioRole:l(["sfx","music","vo","ambience"]).optional(),duck:c({duckDb:s().max(JV),attackMs:s().min(KV),releaseMs:s().min(HV),windows:h(c({startMs:s(),endMs:s()})).optional()}).optional(),anchor:c({clipId:n().min(1),offsetMs:s()}).optional(),reframe:c({segments:h(c({startSec:s().min(XV).describe("Segment START in seconds, clip-relative. Segments tile the clip's duration in order."),endSec:s().gt(YV).describe("Segment END in seconds, clip-relative. The span (endSec \u2212 startSec) is this segment's duration \u2014 the window `ease` ramps over."),focus:z([c({mode:u("frame-center")}),c({mode:u("point"),x:s().min(QV).max(e4),y:s().min(t4).max(o4)}),c({mode:u("face"),faceId:n().min(1),shotScale:l(["close","standard","wide"]).optional()}),c({mode:u("all-faces")}),c({mode:u("active-speaker")})]).describe("WHO/WHAT the camera tracks this segment (the reframe center), selected by `mode`: `frame-center` = no tracking, hold the geometric center (static/graphic footage, or a pure zoom); `point` = lock to a fixed source-normalized {x,y} (a non-moving on-screen element); `face` = track a detected face by `faceId` (from get_media_context), with optional `shotScale` close|standard|wide for tightness; `all-faces` = frame the bounding box of every detected face (group/ensemble shots); `active-speaker` = follow whoever is speaking (diarized talking-head / podcast). Pick by what the beat is about; pair with `zoom` for how tight."),intent:n().optional().describe("Optional editorial LABEL for diff/log readability (e.g. 'speaker-tight', 'wide-context'). Cosmetic \u2014 NOT honored by the derive math and excluded from the variant cache key."),zoom:s().min(n4).max(r4).optional().describe("How TIGHT the framing is \u2014 the fraction of the source the output viewport shows. <1 punches IN (a smaller source fraction, magnified to fill the frame); 1 = the full frame (no crop). ~0.6\u20130.8 is a moderate push-in, ~0.5 a tight close-up, 0.1 the maximum zoom. There is NO zoom-OUT past the full frame (max 1). Omit for the full frame. MUTUALLY EXCLUSIVE with `focus.shotScale` \u2014 a face-tracked shot is sized EITHER by the editorial scale (shotScale, which the bake calibrates to the detected face) OR by an explicit zoom, never both. A segment carrying both is REJECTED: shotScale wins at bake time and the zoom would be silently discarded."),ease:c({in:s().min(i4).describe("Ease-IN ramp DURATION in seconds at the segment START."),out:s().min(a4).describe("Ease-OUT ramp DURATION in seconds at the segment END.")}).optional().describe("Zoom/center ramp DURATIONS in SECONDS at this segment's edges \u2014 NOT a unitless 0\u20131 curve. ~0.3\u20130.6s reads as a snappy push; >1s reads sluggish. Keep `in` + `out` \u2264 the segment's duration (endSec \u2212 startSec): the two edges share the span, so to ramp across the WHOLE segment set one edge to the full duration and the other to 0. Omit for an instant cut to this framing."),bias:c({x:s().min(s4).max(c4).describe("Horizontal nudge, source-normalized (+ = right)."),y:s().min(d4).max(p4).describe("Vertical nudge, source-normalized (+ = down).")}).optional().describe("Optional FINE framing nudge off the focus center, source-normalized in [\u22120.3, 0.3]. A small correction (headroom, rule-of-thirds), NOT a reframe \u2014 use `focus`/`zoom` for the actual shot. Omit (treated as 0) to sit dead-center on the focus.")})).min(1)}).optional()}),c({kind:u("component"),componentId:n().min(1),props:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),execution:c({version:u(3),componentId:n().min(1).max(u4),sourceVersionId:n().regex(l4),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(m4))).optional()}),placement:z([c({version:u(3),kind:u("clip")}),c({version:u(3),kind:u("content-slots"),slots:y(n(),c({targetClipIds:h(n().min(1).max(f4)),ownership:l(["reference","exclusive"])}))})])}),c({kind:u("overlay"),primitiveId:n().min(1).regex(h4),params:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),anchor:c({space:u("scene"),x:s().min(g4).max(x4),y:s().min(z4).max(b4)}).optional(),parallax:s().min(y4).max(S4).optional()}),c({kind:u("effect"),primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),component:c({version:u(3),componentId:n().min(1).max(v4),sourceVersionId:n().regex(R4),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(w4))).optional()}).optional(),targetTrackIds:h(n().min(1)).min(1).optional(),wrapperOrder:x().min(I4).max(M4).optional()}),c({kind:u("card"),html:n().min(1).describe("Your card's HTML \u2014 rendered VERBATIM as the graphic (shell motion via applyMotionPreset in a FOLLOWING call). CANVAS CONTRACT: the card renders in a viewport equal to the composition format's pixel frame (1080\xD71920 at 9:16 fhd); the root is NOT auto-pinned \u2014 declare explicit width/height matching the frame (box-sizing:border-box) and anchor content with flex/grid; position:absolute;inset:0 on the root does NOT fill the frame; for edge-to-edge backgrounds add an inner absolutely-positioned layer with generous negative inset. Overlay compositing applies a ~92% safe-area inset \u2014 keep critical copy away from the extreme edges. FONTS: name a family from GET /v1/fonts (list_render_fonts) \u2014 the renderer loads those faces for the card and waits for them, so `font-family: Inter` draws Inter. `@import` and remote font files are REFUSED: the card renders with no network. A family that is not on that list has no bytes behind it and the browser falls back, so end any stack with a generic (`Inter, sans-serif`) rather than relying on a system face being present."),tokens:y(n(),n()).optional(),zPlane:u("front").optional()})]),kind:l(["video","audio","image","overlay","effect"]).optional(),opacity:s().min(O4).max($4).optional(),scale:s().gt(k4).optional(),rotation:s().optional(),position:c({x:s().min(T4).max(C4),y:s().min(D4).max(_4)}).optional().describe("Clip CENTRE as a fraction of the frame: {x:0.5,y:0.5} is dead centre, 0 to 1 is inside the frame, and a little overshoot (down to -1, up to 2) is how an entrance starts off-canvas. NOT pixels: the renderer maps x to `left: x*100%`, so `x: 180` sits 180 frame-widths away and draws nothing."),region:c({x:s().min(E4).max(j4),y:s().min(P4).max(L4),w:s().gt(V4).max(F4),h:s().gt(A4).max(U4)}).optional(),fit:l(["cover","contain"]).optional(),captionVisibility:l(["visible","hidden"]).optional().describe("Video media clip only. Hide native captions while this clip is topmost and covers the lower picture, or when an opaque, effect-free clip has an explicitly full-frame region, even with fit:contain. Caption words and timings remain stored and resume when another visible clip takes over."),effects:h(c({primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(N4),sourceVersionId:n().regex(q4),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(B4))).optional()}).optional(),window:c({startTime:s().min(W4),duration:s().gt(Z4)}).optional()})).optional(),transitionIn:c({type:n().min(1),duration:s().gt(G4),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(J4),sourceVersionId:n().regex(K4),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(H4))).optional()}).optional(),fromClipId:n().min(1).optional(),toClipId:n().min(1).optional(),handlePolicy:u("outgoing-overrun-at-cut-v1").optional()}).optional(),linkGroupId:n().min(1).optional(),animate:y(n(),h(c({time:s().min(X4),value:s(),easing:z([l(["linear","ease","easeIn","easeOut","easeInOut"]),c({cubicBezier:F([s(),s(),s(),s()])})]).optional()})).min(Y4)).optional().describe("Keyframe channels, clip-relative seconds. Each channel's values use the SAME unit as the scalar it animates: `opacity` 0 to 1, `scale` a multiplier (>0), `rotation` degrees, `position.x`/`position.y` a FRACTION of the frame like `position` (0.5 = centre; NOT pixels), `volume` 0 to 4.")}),c({id:n().min(1),startTime:s().min(Q4).describe("Timeline start (seconds)."),duration:s().gt(eF).describe("Gap duration (seconds).")})]))})),markers:h(c({id:n().min(1),startTime:s().min(tF),endTime:s().min(oF).optional(),kind:n().min(1),name:n().optional(),metadata:y(n(),$()).optional()})).optional(),captions:z([c({source:u("derived"),from:c({clipId:n()}),segments:h(c({words:h(c({text:n().min(1),startMs:s().min(nF).describe("Word start on the composition timeline, in milliseconds."),endMs:s().min(rF).describe("Word end on the composition timeline, in milliseconds."),emphasis:w().optional(),annotate:l(["circle","underline"]).optional()}))})),style:c({fontFamily:n().min(1).optional(),fontSize:s().min(1).max(iF).optional().describe("Font size as % of composition height (1-15, default 5). NOT px."),fontWeight:x().min(aF).max(sF).optional(),color:n().min(1).optional(),highlightColor:n().min(1).optional(),backgroundColor:n().optional(),plate:l(["glass","solid","none"]).optional(),position:l(["top","center","bottom"]).optional(),region:c({x:s().min(cF).max(dF),y:s().min(pF).max(uF),w:s().gt(lF).max(mF),h:s().gt(fF).max(hF)}).optional().describe("Optional caption layout box {x,y,w,h} in normalized output-frame coordinates. Overrides position; text starts at its top edge and wraps/pages within its width and height."),textTransform:l(["none","uppercase","capitalize"]).optional(),letterSpacing:s().min(gF).max(xF).optional().describe("Base caption glyph spacing in pixels."),wordGapEm:s().min(zF).max(bF).optional().describe("Gap between caption runs as a multiple of base font size; default 0.35."),lineGapEm:s().min(yF).max(SF).optional().describe("Gap between caption lines as a multiple of base font size; default 0.25."),emphasisColor:n().optional(),emphasisGradient:n().optional(),emphasisScale:s().gt(vF).optional(),emphasisFontFamily:n().optional(),emphasisFontWeight:x().min(RF).max(wF).optional(),emphasisTextTransform:l(["none","uppercase","capitalize"]).optional(),emphasisLetterSpacing:s().optional(),emphasisFontStyle:l(["normal","italic"]).optional(),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),entranceMs:s().min(IF).optional(),entranceStaggerMs:s().min(MF).optional(),exitMs:s().min(OF).optional(),emphasisPlate:w().optional(),emphasisPlateColor:n().optional(),emphasisPlateTextColor:n().optional(),emphasisPlateAltColor:n().optional(),emphasisPlateAltTextColor:n().optional(),emphasisPlateRadius:s().min($F).optional(),emphasisPlatePadX:s().optional(),emphasisPlatePadY:s().optional(),emphasisPlateReveal:w().optional().describe("Grow a shared emphasis plate as saved words appear while reserving its final layout width."),annotationColor:n().optional(),annotationStrokeWidth:s().min(kF).max(TF).optional().describe("Annotation stroke width in its 100\xD7100 SVG coordinate system; default 4."),annotationTexture:l(["clean","pencil"]).optional().describe("Native annotation stroke finish; default clean."),maxWidthPercent:s().gt(CF).max(DF).optional()}).optional(),layouts:h(c({segmentIndex:x().min(_F).max(EF),wordStartIndex:x().min(jF).max(PF),wordEndIndex:x().gt(LF).max(VF).describe("Exclusive word index in the saved caption segment."),region:c({x:s().min(FF).max(AF),y:s().min(UF).max(NF),w:s().gt(qF).max(BF),h:s().gt(WF).max(ZF)}),scale:s().min(GF).max(JF).optional(),rotation:s().min(KF).max(HF).optional(),style:c({fontFamily:n().min(1).optional(),fontSize:s().min(1).max(XF).optional().describe("Font size as % of composition height (1-15, default 5). NOT px."),fontWeight:x().min(YF).max(QF).optional(),color:n().min(1).optional(),highlightColor:n().min(1).optional(),backgroundColor:n().optional(),plate:l(["glass","solid","none"]).optional(),textTransform:l(["none","uppercase","capitalize"]).optional(),letterSpacing:s().min(eA).max(tA).optional().describe("Base caption glyph spacing in pixels."),wordGapEm:s().min(oA).max(nA).optional().describe("Gap between caption runs as a multiple of base font size; default 0.35."),lineGapEm:s().min(rA).max(iA).optional().describe("Gap between caption lines as a multiple of base font size; default 0.25."),emphasisColor:n().optional(),emphasisScale:s().gt(aA).optional(),emphasisFontFamily:n().optional(),emphasisFontWeight:x().min(sA).max(cA).optional(),emphasisTextTransform:l(["none","uppercase","capitalize"]).optional(),emphasisLetterSpacing:s().optional(),emphasisFontStyle:l(["normal","italic"]).optional(),emphasisPlate:w().optional(),emphasisPlateColor:n().optional(),emphasisPlateTextColor:n().optional(),emphasisPlateAltColor:n().optional(),emphasisPlateAltTextColor:n().optional(),emphasisPlateRadius:s().min(dA).optional(),emphasisPlatePadX:s().optional(),emphasisPlatePadY:s().optional(),emphasisPlateReveal:w().optional().describe("Grow a shared emphasis plate as saved words appear while reserving its final layout width."),annotationColor:n().optional(),annotationStrokeWidth:s().min(pA).max(uA).optional().describe("Annotation stroke width in its 100\xD7100 SVG coordinate system; default 4."),annotationTexture:l(["clean","pencil"]).optional().describe("Native annotation stroke finish; default clean."),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),entranceMs:s().min(lA).optional(),entranceStaggerMs:s().min(mA).optional(),exitMs:s().min(fA).optional()}).optional(),holdThroughWordIndex:x().min(hA).max(gA).optional().describe("Inclusive saved-word index in this segment. The layout stays visible until that word ends."),wordMarks:h(c({wordIndex:x().min(xA).max(zA),emphasis:w().optional(),annotate:z([l(["circle","underline"]),q()]).optional()})).optional(),wordSignature:n().regex(bA)})).optional(),zPlane:l(["front","behind-subject"]).optional()}),c({source:u("authored"),segments:h(c({words:h(c({text:n().min(1),startMs:s().min(yA).describe("Word start on the composition timeline, in milliseconds."),endMs:s().min(SA).describe("Word end on the composition timeline, in milliseconds."),emphasis:w().optional(),annotate:l(["circle","underline"]).optional()}))})),style:c({fontFamily:n().min(1).optional(),fontSize:s().min(1).max(vA).optional().describe("Font size as % of composition height (1-15, default 5). NOT px."),fontWeight:x().min(RA).max(wA).optional(),color:n().min(1).optional(),highlightColor:n().min(1).optional(),backgroundColor:n().optional(),plate:l(["glass","solid","none"]).optional(),position:l(["top","center","bottom"]).optional(),region:c({x:s().min(IA).max(MA),y:s().min(OA).max($A),w:s().gt(kA).max(TA),h:s().gt(CA).max(DA)}).optional().describe("Optional caption layout box {x,y,w,h} in normalized output-frame coordinates. Overrides position; text starts at its top edge and wraps/pages within its width and height."),textTransform:l(["none","uppercase","capitalize"]).optional(),letterSpacing:s().min(_A).max(EA).optional().describe("Base caption glyph spacing in pixels."),wordGapEm:s().min(jA).max(PA).optional().describe("Gap between caption runs as a multiple of base font size; default 0.35."),lineGapEm:s().min(LA).max(VA).optional().describe("Gap between caption lines as a multiple of base font size; default 0.25."),emphasisColor:n().optional(),emphasisGradient:n().optional(),emphasisScale:s().gt(FA).optional(),emphasisFontFamily:n().optional(),emphasisFontWeight:x().min(AA).max(UA).optional(),emphasisTextTransform:l(["none","uppercase","capitalize"]).optional(),emphasisLetterSpacing:s().optional(),emphasisFontStyle:l(["normal","italic"]).optional(),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),entranceMs:s().min(NA).optional(),entranceStaggerMs:s().min(qA).optional(),exitMs:s().min(BA).optional(),emphasisPlate:w().optional(),emphasisPlateColor:n().optional(),emphasisPlateTextColor:n().optional(),emphasisPlateAltColor:n().optional(),emphasisPlateAltTextColor:n().optional(),emphasisPlateRadius:s().min(WA).optional(),emphasisPlatePadX:s().optional(),emphasisPlatePadY:s().optional(),emphasisPlateReveal:w().optional().describe("Grow a shared emphasis plate as saved words appear while reserving its final layout width."),annotationColor:n().optional(),annotationStrokeWidth:s().min(ZA).max(GA).optional().describe("Annotation stroke width in its 100\xD7100 SVG coordinate system; default 4."),annotationTexture:l(["clean","pencil"]).optional().describe("Native annotation stroke finish; default clean."),maxWidthPercent:s().gt(JA).max(KA).optional()}).optional(),layouts:h(c({segmentIndex:x().min(HA).max(XA),wordStartIndex:x().min(YA).max(QA),wordEndIndex:x().gt(e9).max(t9).describe("Exclusive word index in the saved caption segment."),region:c({x:s().min(o9).max(n9),y:s().min(r9).max(i9),w:s().gt(a9).max(s9),h:s().gt(c9).max(d9)}),scale:s().min(p9).max(u9).optional(),rotation:s().min(l9).max(m9).optional(),style:c({fontFamily:n().min(1).optional(),fontSize:s().min(1).max(f9).optional().describe("Font size as % of composition height (1-15, default 5). NOT px."),fontWeight:x().min(h9).max(g9).optional(),color:n().min(1).optional(),highlightColor:n().min(1).optional(),backgroundColor:n().optional(),plate:l(["glass","solid","none"]).optional(),textTransform:l(["none","uppercase","capitalize"]).optional(),letterSpacing:s().min(x9).max(z9).optional().describe("Base caption glyph spacing in pixels."),wordGapEm:s().min(b9).max(y9).optional().describe("Gap between caption runs as a multiple of base font size; default 0.35."),lineGapEm:s().min(S9).max(v9).optional().describe("Gap between caption lines as a multiple of base font size; default 0.25."),emphasisColor:n().optional(),emphasisScale:s().gt(R9).optional(),emphasisFontFamily:n().optional(),emphasisFontWeight:x().min(w9).max(I9).optional(),emphasisTextTransform:l(["none","uppercase","capitalize"]).optional(),emphasisLetterSpacing:s().optional(),emphasisFontStyle:l(["normal","italic"]).optional(),emphasisPlate:w().optional(),emphasisPlateColor:n().optional(),emphasisPlateTextColor:n().optional(),emphasisPlateAltColor:n().optional(),emphasisPlateAltTextColor:n().optional(),emphasisPlateRadius:s().min(M9).optional(),emphasisPlatePadX:s().optional(),emphasisPlatePadY:s().optional(),emphasisPlateReveal:w().optional().describe("Grow a shared emphasis plate as saved words appear while reserving its final layout width."),annotationColor:n().optional(),annotationStrokeWidth:s().min(O9).max($9).optional().describe("Annotation stroke width in its 100\xD7100 SVG coordinate system; default 4."),annotationTexture:l(["clean","pencil"]).optional().describe("Native annotation stroke finish; default clean."),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),entranceMs:s().min(k9).optional(),entranceStaggerMs:s().min(T9).optional(),exitMs:s().min(C9).optional()}).optional(),holdThroughWordIndex:x().min(D9).max(_9).optional().describe("Inclusive saved-word index in this segment. The layout stays visible until that word ends."),wordMarks:h(c({wordIndex:x().min(E9).max(j9),emphasis:w().optional(),annotate:z([l(["circle","underline"]),q()]).optional()})).optional(),wordSignature:n().regex(P9)})).optional(),zPlane:l(["front","behind-subject"]).optional()})]).optional(),license:c({type:n().min(1),source:n().optional(),notes:n().optional()}).optional(),accessibility:c({audioDescriptionTrackId:n().optional(),captionsTrackId:n().optional(),signLanguageTrackId:n().optional(),notes:n().optional()}).optional()}).describe("Canonical composition wire shape (multi-track; carries reframe, captions, markers).");var le=z([q(),w(),s(),n(),h(pt(()=>le)),y(n(),pt(()=>le))]);var L9=64,V9=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),F9=1,A9=0,U9=1,N9=0,q9=1,B9=200,W9=4e3,Z9=0,G9=3.141592653589793,J9=64,K9=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),H9=0,X9=1,Y9=0,Q9=1,e6=0,t6=1,o6=0,n6=1,r6=0,i6=1,a6=2.333,s6=0,c6=1,d6=16,p6=64,u6=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),l6=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),m6=256,f6=new RegExp("^[a-f0-9]{64}$"),h6=0,g6=9007199254740991,x6=0,z6=9007199254740991,b6=0,y6=9007199254740991,S6=256,v6=0,R6=0,w6=9007199254740991,I6=0,M6=9007199254740991,O6=64,$6=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),k6=1,T6=0,C6=1,D6=0,_6=1,E6=80,j6=2e3,P6=64,L6=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),V6=0,F6=1,A6=0,U6=1,N6=0,q6=1,B6=0,W6=1,Z6=0,G6=1,J6=2.333,K6=0,H6=1,X6=16,Y6=64,Q6=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),eU=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),tU=256,oU=new RegExp("^[a-f0-9]{64}$"),nU=0,rU=9007199254740991,iU=0,aU=9007199254740991,sU=0,cU=9007199254740991,dU=256,pU=0,uU=0,lU=9007199254740991,mU=0,fU=9007199254740991,hU=64,gU=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),xU=1,zU=0,bU=1,yU=0,SU=1,vU=40,RU=8e3,wU=40,IU=8e3,MU=32,OU=4,$U=200,kU=32,TU=0,CU=15,DU=0,_U="satin",EU=64,jU=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),PU=0,LU=1,VU=0,FU=1,AU=0,UU=1,NU=0,qU=1,BU=0,WU=1,ZU=2.333,GU=0,JU=1,KU=16,HU=64,XU=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),YU=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),QU=256,eN=new RegExp("^[a-f0-9]{64}$"),tN=0,oN=9007199254740991,nN=0,rN=9007199254740991,iN=0,aN=9007199254740991,sN=256,cN=0,dN=0,pN=9007199254740991,uN=0,lN=9007199254740991,mN=64,fN=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),hN=1,gN=0,xN=1,zN=0,bN=1,yN=40,SN=8e3,vN=40,RN=8e3,wN="contain",IN="straight",MN=!0,ON="hidden",$N=64,kN=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),TN=0,CN=1,DN=0,_N=1,EN=0,jN=1,PN=0,LN=1,VN=0,FN=1,AN=2.333,UN=0,NN=1,qN=16,BN=64,WN=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),ZN=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),GN=256,JN=new RegExp("^[a-f0-9]{64}$"),KN=0,HN=9007199254740991,XN=0,YN=9007199254740991,QN=0,eq=9007199254740991,tq=256,oq=0,nq=0,rq=9007199254740991,iq=0,aq=9007199254740991,sq=64,cq=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),dq=1,pq=0,uq=1,lq=512,mq=new RegExp("^[^\\r\\n]+$"),fq=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),hq=16,gq=24,xq=128,zq=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),bq=100,yq=900,Sq=8,vq=800,Rq=1.2,wq=.6,Iq=3,Mq=0,Oq=-20,$q=40,kq="center",Tq=0,Cq=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),Dq=1,_q=0,Eq=64,jq=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),Pq=1,Lq=0,Vq=1,Fq=512,Aq=new RegExp("^[^\\r\\n]+$"),Uq=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),Nq=16,qq=24,Bq=128,Wq=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),Zq=100,Gq=900,Jq=8,Kq=800,Hq=1.2,Xq=.6,Yq=3,Qq=0,eB=-20,tB=40,oB="center",nB=0,rB=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),iB=0,aB=1,sB=0,qg=z([c({kind:u("laptop"),id:n().min(1).max(L9).regex(V9),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(A9).default(F9)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(N9).max(q9).default(U9),width:s().min(B9).max(W9),openAngle:s().min(Z9).max(G9),materials:h(c({role:n().min(1).max(J9),type:l(["physical","unlit"]),color:z([n().regex(K9),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(H9).max(X9).optional(),metalness:s().min(Y9).max(Q9).optional(),clearcoat:s().min(e6).max(t6).optional(),clearcoatRoughness:s().min(o6).max(n6).optional(),anisotropy:s().min(r6).max(i6).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(a6).optional(),reflectivity:s().min(s6).max(c6).optional()})).max(d6).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(p6).regex(u6).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(l6),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(m6),sourceVersionId:n().regex(f6)}),captureFrame:x().min(h6).max(g6),layout:c({width:x().gt(x6).max(z6),height:x().gt(b6).max(y6)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(S6),startFrame:x().min(R6).max(w6).default(v6),endFrame:x().gt(I6).max(M6).optional()})])).optional()}),c({kind:u("phone"),id:n().min(1).max(O6).regex($6),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(T6).default(k6)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(D6).max(_6).default(C6),width:s().min(E6).max(j6),materials:h(c({role:n().min(1).max(P6),type:l(["physical","unlit"]),color:z([n().regex(L6),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(V6).max(F6).optional(),metalness:s().min(A6).max(U6).optional(),clearcoat:s().min(N6).max(q6).optional(),clearcoatRoughness:s().min(B6).max(W6).optional(),anisotropy:s().min(Z6).max(G6).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(J6).optional(),reflectivity:s().min(K6).max(H6).optional()})).max(X6).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(Y6).regex(Q6).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(eU),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(tU),sourceVersionId:n().regex(oU)}),captureFrame:x().min(nU).max(rU),layout:c({width:x().gt(iU).max(aU),height:x().gt(sU).max(cU)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(dU),startFrame:x().min(uU).max(lU).default(pU),endFrame:x().gt(mU).max(fU).optional()})])).optional()}),c({kind:u("slab"),id:n().min(1).max(hU).regex(gU),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(zU).default(xU)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(yU).max(SU).default(bU),width:s().min(vU).max(RU),height:s().min(wU).max(IU),thickness:s().min(OU).max($U).default(MU),cornerRadius:s().min(TU).default(kU),edgeRadius:s().min(DU).default(CU),finish:l(["satin","brushed"]).default(_U),materials:h(c({role:n().min(1).max(EU),type:l(["physical","unlit"]),color:z([n().regex(jU),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(PU).max(LU).optional(),metalness:s().min(VU).max(FU).optional(),clearcoat:s().min(AU).max(UU).optional(),clearcoatRoughness:s().min(NU).max(qU).optional(),anisotropy:s().min(BU).max(WU).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(ZU).optional(),reflectivity:s().min(GU).max(JU).optional()})).max(KU).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(HU).regex(XU).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(YU),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(QU),sourceVersionId:n().regex(eN)}),captureFrame:x().min(tN).max(oN),layout:c({width:x().gt(nN).max(rN),height:x().gt(iN).max(aN)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(sN),startFrame:x().min(dN).max(pN).default(cN),endFrame:x().gt(uN).max(lN).optional()})])).optional()}),c({kind:u("page"),id:n().min(1).max(mN).regex(fN),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(gN).default(hN)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(zN).max(bN).default(xN),width:s().min(yN).max(SN),height:s().min(vN).max(RN),fit:l(["contain","cover"]).default(wN),transparency:l(["straight","premultiplied","opaque"]).default(IN),depthWrite:w().default(MN),backface:l(["hidden","visible"]).default(ON),materials:h(c({role:n().min(1).max($N),type:l(["physical","unlit"]),color:z([n().regex(kN),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(TN).max(CN).optional(),metalness:s().min(DN).max(_N).optional(),clearcoat:s().min(EN).max(jN).optional(),clearcoatRoughness:s().min(PN).max(LN).optional(),anisotropy:s().min(VN).max(FN).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(AN).optional(),reflectivity:s().min(UN).max(NN).optional()})).max(qN).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(BN).regex(WN).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(ZN),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(GN),sourceVersionId:n().regex(JN)}),captureFrame:x().min(KN).max(HN),layout:c({width:x().gt(XN).max(YN),height:x().gt(QN).max(eq)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(tq),startFrame:x().min(nq).max(rq).default(oq),endFrame:x().gt(iq).max(aq).optional()})]))}),c({id:n().min(1).max(sq).regex(cq),kind:u("text"),opacity:s().min(pq).max(uq).default(dq),lines:h(c({runs:h(c({text:n().min(1).max(lq).regex(mq),color:z([n().regex(fq),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(hq)})).min(1).max(gq),fontFamily:z([n().min(1).max(xq).regex(zq),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(bq).max(yq),fontStyle:l(["normal","italic"]),fontSize:s().min(Sq).max(vq),lineHeight:s().min(wq).max(Iq).default(Rq),letterSpacing:s().min(Oq).max($q).default(Mq),align:l(["left","center","right"]).default(kq),maxWidth:s().gt(Tq).optional(),color:z([n().regex(Cq),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("world"),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(_q).default(Dq)}).default({position:[0,0,0],rotation:[0,0,0],scale:1})}),c({id:n().min(1).max(Eq).regex(jq),kind:u("text"),opacity:s().min(Lq).max(Vq).default(Pq),lines:h(c({runs:h(c({text:n().min(1).max(Fq).regex(Aq),color:z([n().regex(Uq),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(Nq)})).min(1).max(qq),fontFamily:z([n().min(1).max(Bq).regex(Wq),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(Zq).max(Gq),fontStyle:l(["normal","italic"]),fontSize:s().min(Jq).max(Kq),lineHeight:s().min(Xq).max(Yq).default(Hq),letterSpacing:s().min(eB).max(tB).default(Qq),align:l(["left","center","right"]).default(oB),maxWidth:s().gt(nB).optional(),color:z([n().regex(rB),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("screen"),x:s(),y:s(),rotation:s().default(iB),scale:s().gt(sB).default(aB)})]);var cB=64,dB=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),pB=1,uB=0,lB=1,mB=0,fB=1,hB=16,gB=64,xB=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),zB=1,bB=0,yB=1,SB=0,vB=1,RB=200,wB=4e3,IB=0,MB=3.141592653589793,OB=64,$B=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),kB=0,TB=1,CB=0,DB=1,_B=0,EB=1,jB=0,PB=1,LB=0,VB=1,FB=2.333,AB=0,UB=1,NB=16,qB=64,BB=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),WB=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),ZB=256,GB=new RegExp("^[a-f0-9]{64}$"),JB=0,KB=9007199254740991,HB=0,XB=9007199254740991,YB=0,QB=9007199254740991,eW=256,tW=0,oW=0,nW=9007199254740991,rW=0,iW=9007199254740991,aW=64,sW=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),cW=1,dW=0,pW=1,uW=0,lW=1,mW=80,fW=2e3,hW=64,gW=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),xW=0,zW=1,bW=0,yW=1,SW=0,vW=1,RW=0,wW=1,IW=0,MW=1,OW=2.333,$W=0,kW=1,TW=16,CW=64,DW=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),_W=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),EW=256,jW=new RegExp("^[a-f0-9]{64}$"),PW=0,LW=9007199254740991,VW=0,FW=9007199254740991,AW=0,UW=9007199254740991,NW=256,qW=0,BW=0,WW=9007199254740991,ZW=0,GW=9007199254740991,JW=64,KW=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),HW=1,XW=0,YW=1,QW=0,e5=1,t5=40,o5=8e3,n5=40,r5=8e3,i5=32,a5=4,s5=200,c5=32,d5=0,p5=15,u5=0,l5="satin",m5=64,f5=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),h5=0,g5=1,x5=0,z5=1,b5=0,y5=1,S5=0,v5=1,R5=0,w5=1,I5=2.333,M5=0,O5=1,$5=16,k5=64,T5=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),C5=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),D5=256,_5=new RegExp("^[a-f0-9]{64}$"),E5=0,j5=9007199254740991,P5=0,L5=9007199254740991,V5=0,F5=9007199254740991,A5=256,U5=0,N5=0,q5=9007199254740991,B5=0,W5=9007199254740991,Z5=64,G5=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),J5=1,K5=0,H5=1,X5=0,Y5=1,Q5=40,eZ=8e3,tZ=40,oZ=8e3,nZ="contain",rZ="straight",iZ=!0,aZ="hidden",sZ=64,cZ=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),dZ=0,pZ=1,uZ=0,lZ=1,mZ=0,fZ=1,hZ=0,gZ=1,xZ=0,zZ=1,bZ=2.333,yZ=0,SZ=1,vZ=16,RZ=64,wZ=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),IZ=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),MZ=256,OZ=new RegExp("^[a-f0-9]{64}$"),$Z=0,kZ=9007199254740991,TZ=0,CZ=9007199254740991,DZ=0,_Z=9007199254740991,EZ=256,jZ=0,PZ=0,LZ=9007199254740991,VZ=0,FZ=9007199254740991,AZ=64,UZ=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),NZ=1,qZ=0,BZ=1,WZ=512,ZZ=new RegExp("^[^\\r\\n]+$"),GZ=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),JZ=16,KZ=24,HZ=128,XZ=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),YZ=100,QZ=900,eG=8,tG=800,oG=1.2,nG=.6,rG=3,iG=0,aG=-20,sG=40,cG="center",dG=0,pG=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),uG=1,lG=0,mG=64,fG=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),hG=1,gG=0,xG=1,zG=512,bG=new RegExp("^[^\\r\\n]+$"),yG=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),SG=16,vG=24,RG=128,wG=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),IG=100,MG=900,OG=8,$G=800,kG=1.2,TG=.6,CG=3,DG=0,_G=-20,EG=40,jG="center",PG=0,LG=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),VG=0,FG=1,AG=0,Bg=z([c({kind:u("group"),id:n().min(1).max(cB).regex(dB),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(uB).default(pB)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(mB).max(fB).default(lB),children:h(qg).min(1).max(hB)}),c({kind:u("laptop"),id:n().min(1).max(gB).regex(xB),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(bB).default(zB)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(SB).max(vB).default(yB),width:s().min(RB).max(wB),openAngle:s().min(IB).max(MB),materials:h(c({role:n().min(1).max(OB),type:l(["physical","unlit"]),color:z([n().regex($B),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(kB).max(TB).optional(),metalness:s().min(CB).max(DB).optional(),clearcoat:s().min(_B).max(EB).optional(),clearcoatRoughness:s().min(jB).max(PB).optional(),anisotropy:s().min(LB).max(VB).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(FB).optional(),reflectivity:s().min(AB).max(UB).optional()})).max(NB).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(qB).regex(BB).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(WB),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(ZB),sourceVersionId:n().regex(GB)}),captureFrame:x().min(JB).max(KB),layout:c({width:x().gt(HB).max(XB),height:x().gt(YB).max(QB)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(eW),startFrame:x().min(oW).max(nW).default(tW),endFrame:x().gt(rW).max(iW).optional()})])).optional()}),c({kind:u("phone"),id:n().min(1).max(aW).regex(sW),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(dW).default(cW)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(uW).max(lW).default(pW),width:s().min(mW).max(fW),materials:h(c({role:n().min(1).max(hW),type:l(["physical","unlit"]),color:z([n().regex(gW),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(xW).max(zW).optional(),metalness:s().min(bW).max(yW).optional(),clearcoat:s().min(SW).max(vW).optional(),clearcoatRoughness:s().min(RW).max(wW).optional(),anisotropy:s().min(IW).max(MW).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(OW).optional(),reflectivity:s().min($W).max(kW).optional()})).max(TW).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(CW).regex(DW).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(_W),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(EW),sourceVersionId:n().regex(jW)}),captureFrame:x().min(PW).max(LW),layout:c({width:x().gt(VW).max(FW),height:x().gt(AW).max(UW)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(NW),startFrame:x().min(BW).max(WW).default(qW),endFrame:x().gt(ZW).max(GW).optional()})])).optional()}),c({kind:u("slab"),id:n().min(1).max(JW).regex(KW),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(XW).default(HW)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(QW).max(e5).default(YW),width:s().min(t5).max(o5),height:s().min(n5).max(r5),thickness:s().min(a5).max(s5).default(i5),cornerRadius:s().min(d5).default(c5),edgeRadius:s().min(u5).default(p5),finish:l(["satin","brushed"]).default(l5),materials:h(c({role:n().min(1).max(m5),type:l(["physical","unlit"]),color:z([n().regex(f5),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(h5).max(g5).optional(),metalness:s().min(x5).max(z5).optional(),clearcoat:s().min(b5).max(y5).optional(),clearcoatRoughness:s().min(S5).max(v5).optional(),anisotropy:s().min(R5).max(w5).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(I5).optional(),reflectivity:s().min(M5).max(O5).optional()})).max($5).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(k5).regex(T5).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(C5),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(D5),sourceVersionId:n().regex(_5)}),captureFrame:x().min(E5).max(j5),layout:c({width:x().gt(P5).max(L5),height:x().gt(V5).max(F5)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(A5),startFrame:x().min(N5).max(q5).default(U5),endFrame:x().gt(B5).max(W5).optional()})])).optional()}),c({kind:u("page"),id:n().min(1).max(Z5).regex(G5),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(K5).default(J5)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(X5).max(Y5).default(H5),width:s().min(Q5).max(eZ),height:s().min(tZ).max(oZ),fit:l(["contain","cover"]).default(nZ),transparency:l(["straight","premultiplied","opaque"]).default(rZ),depthWrite:w().default(iZ),backface:l(["hidden","visible"]).default(aZ),materials:h(c({role:n().min(1).max(sZ),type:l(["physical","unlit"]),color:z([n().regex(cZ),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(dZ).max(pZ).optional(),metalness:s().min(uZ).max(lZ).optional(),clearcoat:s().min(mZ).max(fZ).optional(),clearcoatRoughness:s().min(hZ).max(gZ).optional(),anisotropy:s().min(xZ).max(zZ).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(bZ).optional(),reflectivity:s().min(yZ).max(SZ).optional()})).max(vZ).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(RZ).regex(wZ).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(IZ),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(MZ),sourceVersionId:n().regex(OZ)}),captureFrame:x().min($Z).max(kZ),layout:c({width:x().gt(TZ).max(CZ),height:x().gt(DZ).max(_Z)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(EZ),startFrame:x().min(PZ).max(LZ).default(jZ),endFrame:x().gt(VZ).max(FZ).optional()})]))}),c({id:n().min(1).max(AZ).regex(UZ),kind:u("text"),opacity:s().min(qZ).max(BZ).default(NZ),lines:h(c({runs:h(c({text:n().min(1).max(WZ).regex(ZZ),color:z([n().regex(GZ),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(JZ)})).min(1).max(KZ),fontFamily:z([n().min(1).max(HZ).regex(XZ),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(YZ).max(QZ),fontStyle:l(["normal","italic"]),fontSize:s().min(eG).max(tG),lineHeight:s().min(nG).max(rG).default(oG),letterSpacing:s().min(aG).max(sG).default(iG),align:l(["left","center","right"]).default(cG),maxWidth:s().gt(dG).optional(),color:z([n().regex(pG),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("world"),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(lG).default(uG)}).default({position:[0,0,0],rotation:[0,0,0],scale:1})}),c({id:n().min(1).max(mG).regex(fG),kind:u("text"),opacity:s().min(gG).max(xG).default(hG),lines:h(c({runs:h(c({text:n().min(1).max(zG).regex(bG),color:z([n().regex(yG),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(SG)})).min(1).max(vG),fontFamily:z([n().min(1).max(RG).regex(wG),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(IG).max(MG),fontStyle:l(["normal","italic"]),fontSize:s().min(OG).max($G),lineHeight:s().min(TG).max(CG).default(kG),letterSpacing:s().min(_G).max(EG).default(DG),align:l(["left","center","right"]).default(jG),maxWidth:s().gt(PG).optional(),color:z([n().regex(LG),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("screen"),x:s(),y:s(),rotation:s().default(VG),scale:s().gt(AG).default(FG)})]);var UG=64,NG=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),qG=1,BG=0,WG=1,ZG=0,GG=1,JG=16,KG=64,HG=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),XG=1,YG=0,QG=1,e3=0,t3=1,o3=200,n3=4e3,r3=0,i3=3.141592653589793,a3=64,s3=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),c3=0,d3=1,p3=0,u3=1,l3=0,m3=1,f3=0,h3=1,g3=0,x3=1,z3=2.333,b3=0,y3=1,S3=16,v3=64,R3=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),w3=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),I3=256,M3=new RegExp("^[a-f0-9]{64}$"),O3=0,$3=9007199254740991,k3=0,T3=9007199254740991,C3=0,D3=9007199254740991,_3=256,E3=0,j3=0,P3=9007199254740991,L3=0,V3=9007199254740991,F3=64,A3=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),U3=1,N3=0,q3=1,B3=0,W3=1,Z3=80,G3=2e3,J3=64,K3=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),H3=0,X3=1,Y3=0,Q3=1,e7=0,t7=1,o7=0,n7=1,r7=0,i7=1,a7=2.333,s7=0,c7=1,d7=16,p7=64,u7=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),l7=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),m7=256,f7=new RegExp("^[a-f0-9]{64}$"),h7=0,g7=9007199254740991,x7=0,z7=9007199254740991,b7=0,y7=9007199254740991,S7=256,v7=0,R7=0,w7=9007199254740991,I7=0,M7=9007199254740991,O7=64,$7=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),k7=1,T7=0,C7=1,D7=0,_7=1,E7=40,j7=8e3,P7=40,L7=8e3,V7=32,F7=4,A7=200,U7=32,N7=0,q7=15,B7=0,W7="satin",Z7=64,G7=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),J7=0,K7=1,H7=0,X7=1,Y7=0,Q7=1,eJ=0,tJ=1,oJ=0,nJ=1,rJ=2.333,iJ=0,aJ=1,sJ=16,cJ=64,dJ=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),pJ=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),uJ=256,lJ=new RegExp("^[a-f0-9]{64}$"),mJ=0,fJ=9007199254740991,hJ=0,gJ=9007199254740991,xJ=0,zJ=9007199254740991,bJ=256,yJ=0,SJ=0,vJ=9007199254740991,RJ=0,wJ=9007199254740991,IJ=64,MJ=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),OJ=1,$J=0,kJ=1,TJ=0,CJ=1,DJ=40,_J=8e3,EJ=40,jJ=8e3,PJ="contain",LJ="straight",VJ=!0,FJ="hidden",AJ=64,UJ=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),NJ=0,qJ=1,BJ=0,WJ=1,ZJ=0,GJ=1,JJ=0,KJ=1,HJ=0,XJ=1,YJ=2.333,QJ=0,eK=1,tK=16,oK=64,nK=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),rK=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),iK=256,aK=new RegExp("^[a-f0-9]{64}$"),sK=0,cK=9007199254740991,dK=0,pK=9007199254740991,uK=0,lK=9007199254740991,mK=256,fK=0,hK=0,gK=9007199254740991,xK=0,zK=9007199254740991,bK=64,yK=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),SK=1,vK=0,RK=1,wK=512,IK=new RegExp("^[^\\r\\n]+$"),MK=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),OK=16,$K=24,kK=128,TK=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),CK=100,DK=900,_K=8,EK=800,jK=1.2,PK=.6,LK=3,VK=0,FK=-20,AK=40,UK="center",NK=0,qK=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),BK=1,WK=0,ZK=64,GK=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),JK=1,KK=0,HK=1,XK=512,YK=new RegExp("^[^\\r\\n]+$"),QK=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),eH=16,tH=24,oH=128,nH=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),rH=100,iH=900,aH=8,sH=800,cH=1.2,dH=.6,pH=3,uH=0,lH=-20,mH=40,fH="center",hH=0,gH=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),xH=0,zH=1,bH=0,Wg=z([c({kind:u("group"),id:n().min(1).max(UG).regex(NG),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(BG).default(qG)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(ZG).max(GG).default(WG),children:h(Bg).min(1).max(JG)}),c({kind:u("laptop"),id:n().min(1).max(KG).regex(HG),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(YG).default(XG)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(e3).max(t3).default(QG),width:s().min(o3).max(n3),openAngle:s().min(r3).max(i3),materials:h(c({role:n().min(1).max(a3),type:l(["physical","unlit"]),color:z([n().regex(s3),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(c3).max(d3).optional(),metalness:s().min(p3).max(u3).optional(),clearcoat:s().min(l3).max(m3).optional(),clearcoatRoughness:s().min(f3).max(h3).optional(),anisotropy:s().min(g3).max(x3).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(z3).optional(),reflectivity:s().min(b3).max(y3).optional()})).max(S3).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(v3).regex(R3).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(w3),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(I3),sourceVersionId:n().regex(M3)}),captureFrame:x().min(O3).max($3),layout:c({width:x().gt(k3).max(T3),height:x().gt(C3).max(D3)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(_3),startFrame:x().min(j3).max(P3).default(E3),endFrame:x().gt(L3).max(V3).optional()})])).optional()}),c({kind:u("phone"),id:n().min(1).max(F3).regex(A3),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(N3).default(U3)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(B3).max(W3).default(q3),width:s().min(Z3).max(G3),materials:h(c({role:n().min(1).max(J3),type:l(["physical","unlit"]),color:z([n().regex(K3),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(H3).max(X3).optional(),metalness:s().min(Y3).max(Q3).optional(),clearcoat:s().min(e7).max(t7).optional(),clearcoatRoughness:s().min(o7).max(n7).optional(),anisotropy:s().min(r7).max(i7).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(a7).optional(),reflectivity:s().min(s7).max(c7).optional()})).max(d7).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(p7).regex(u7).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(l7),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(m7),sourceVersionId:n().regex(f7)}),captureFrame:x().min(h7).max(g7),layout:c({width:x().gt(x7).max(z7),height:x().gt(b7).max(y7)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(S7),startFrame:x().min(R7).max(w7).default(v7),endFrame:x().gt(I7).max(M7).optional()})])).optional()}),c({kind:u("slab"),id:n().min(1).max(O7).regex($7),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(T7).default(k7)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(D7).max(_7).default(C7),width:s().min(E7).max(j7),height:s().min(P7).max(L7),thickness:s().min(F7).max(A7).default(V7),cornerRadius:s().min(N7).default(U7),edgeRadius:s().min(B7).default(q7),finish:l(["satin","brushed"]).default(W7),materials:h(c({role:n().min(1).max(Z7),type:l(["physical","unlit"]),color:z([n().regex(G7),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(J7).max(K7).optional(),metalness:s().min(H7).max(X7).optional(),clearcoat:s().min(Y7).max(Q7).optional(),clearcoatRoughness:s().min(eJ).max(tJ).optional(),anisotropy:s().min(oJ).max(nJ).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(rJ).optional(),reflectivity:s().min(iJ).max(aJ).optional()})).max(sJ).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(cJ).regex(dJ).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(pJ),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(uJ),sourceVersionId:n().regex(lJ)}),captureFrame:x().min(mJ).max(fJ),layout:c({width:x().gt(hJ).max(gJ),height:x().gt(xJ).max(zJ)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(bJ),startFrame:x().min(SJ).max(vJ).default(yJ),endFrame:x().gt(RJ).max(wJ).optional()})])).optional()}),c({kind:u("page"),id:n().min(1).max(IJ).regex(MJ),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt($J).default(OJ)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(TJ).max(CJ).default(kJ),width:s().min(DJ).max(_J),height:s().min(EJ).max(jJ),fit:l(["contain","cover"]).default(PJ),transparency:l(["straight","premultiplied","opaque"]).default(LJ),depthWrite:w().default(VJ),backface:l(["hidden","visible"]).default(FJ),materials:h(c({role:n().min(1).max(AJ),type:l(["physical","unlit"]),color:z([n().regex(UJ),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(NJ).max(qJ).optional(),metalness:s().min(BJ).max(WJ).optional(),clearcoat:s().min(ZJ).max(GJ).optional(),clearcoatRoughness:s().min(JJ).max(KJ).optional(),anisotropy:s().min(HJ).max(XJ).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(YJ).optional(),reflectivity:s().min(QJ).max(eK).optional()})).max(tK).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(oK).regex(nK).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(rK),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(iK),sourceVersionId:n().regex(aK)}),captureFrame:x().min(sK).max(cK),layout:c({width:x().gt(dK).max(pK),height:x().gt(uK).max(lK)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(mK),startFrame:x().min(hK).max(gK).default(fK),endFrame:x().gt(xK).max(zK).optional()})]))}),c({id:n().min(1).max(bK).regex(yK),kind:u("text"),opacity:s().min(vK).max(RK).default(SK),lines:h(c({runs:h(c({text:n().min(1).max(wK).regex(IK),color:z([n().regex(MK),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(OK)})).min(1).max($K),fontFamily:z([n().min(1).max(kK).regex(TK),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(CK).max(DK),fontStyle:l(["normal","italic"]),fontSize:s().min(_K).max(EK),lineHeight:s().min(PK).max(LK).default(jK),letterSpacing:s().min(FK).max(AK).default(VK),align:l(["left","center","right"]).default(UK),maxWidth:s().gt(NK).optional(),color:z([n().regex(qK),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("world"),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(WK).default(BK)}).default({position:[0,0,0],rotation:[0,0,0],scale:1})}),c({id:n().min(1).max(ZK).regex(GK),kind:u("text"),opacity:s().min(KK).max(HK).default(JK),lines:h(c({runs:h(c({text:n().min(1).max(XK).regex(YK),color:z([n().regex(QK),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(eH)})).min(1).max(tH),fontFamily:z([n().min(1).max(oH).regex(nH),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(rH).max(iH),fontStyle:l(["normal","italic"]),fontSize:s().min(aH).max(sH),lineHeight:s().min(dH).max(pH).default(cH),letterSpacing:s().min(lH).max(mH).default(uH),align:l(["left","center","right"]).default(fH),maxWidth:s().gt(hH).optional(),color:z([n().regex(gH),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("screen"),x:s(),y:s(),rotation:s().default(xH),scale:s().gt(bH).default(zH)})]);var yH=64,SH=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),vH=1,RH=0,wH=1,IH=0,MH=1,OH=16,$H=64,kH=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),TH=1,CH=0,DH=1,_H=0,EH=1,jH=200,PH=4e3,LH=0,VH=3.141592653589793,FH=64,AH=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),UH=0,NH=1,qH=0,BH=1,WH=0,ZH=1,GH=0,JH=1,KH=0,HH=1,XH=2.333,YH=0,QH=1,e8=16,t8=64,o8=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),n8=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),r8=256,i8=new RegExp("^[a-f0-9]{64}$"),a8=0,s8=9007199254740991,c8=0,d8=9007199254740991,p8=0,u8=9007199254740991,l8=256,m8=0,f8=0,h8=9007199254740991,g8=0,x8=9007199254740991,z8=64,b8=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),y8=1,S8=0,v8=1,R8=0,w8=1,I8=80,M8=2e3,O8=64,$8=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),k8=0,T8=1,C8=0,D8=1,_8=0,E8=1,j8=0,P8=1,L8=0,V8=1,F8=2.333,A8=0,U8=1,N8=16,q8=64,B8=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),W8=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),Z8=256,G8=new RegExp("^[a-f0-9]{64}$"),J8=0,K8=9007199254740991,H8=0,X8=9007199254740991,Y8=0,Q8=9007199254740991,eX=256,tX=0,oX=0,nX=9007199254740991,rX=0,iX=9007199254740991,aX=64,sX=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),cX=1,dX=0,pX=1,uX=0,lX=1,mX=40,fX=8e3,hX=40,gX=8e3,xX=32,zX=4,bX=200,yX=32,SX=0,vX=15,RX=0,wX="satin",IX=64,MX=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),OX=0,$X=1,kX=0,TX=1,CX=0,DX=1,_X=0,EX=1,jX=0,PX=1,LX=2.333,VX=0,FX=1,AX=16,UX=64,NX=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),qX=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),BX=256,WX=new RegExp("^[a-f0-9]{64}$"),ZX=0,GX=9007199254740991,JX=0,KX=9007199254740991,HX=0,XX=9007199254740991,YX=256,QX=0,eY=0,tY=9007199254740991,oY=0,nY=9007199254740991,rY=64,iY=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),aY=1,sY=0,cY=1,dY=0,pY=1,uY=40,lY=8e3,mY=40,fY=8e3,hY="contain",gY="straight",xY=!0,zY="hidden",bY=64,yY=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),SY=0,vY=1,RY=0,wY=1,IY=0,MY=1,OY=0,$Y=1,kY=0,TY=1,CY=2.333,DY=0,_Y=1,EY=16,jY=64,PY=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),LY=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),VY=256,FY=new RegExp("^[a-f0-9]{64}$"),AY=0,UY=9007199254740991,NY=0,qY=9007199254740991,BY=0,WY=9007199254740991,ZY=256,GY=0,JY=0,KY=9007199254740991,HY=0,XY=9007199254740991,YY=64,QY=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),eQ=1,tQ=0,oQ=1,nQ=512,rQ=new RegExp("^[^\\r\\n]+$"),iQ=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),aQ=16,sQ=24,cQ=128,dQ=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),pQ=100,uQ=900,lQ=8,mQ=800,fQ=1.2,hQ=.6,gQ=3,xQ=0,zQ=-20,bQ=40,yQ="center",SQ=0,vQ=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),RQ=1,wQ=0,IQ=64,MQ=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),OQ=1,$Q=0,kQ=1,TQ=512,CQ=new RegExp("^[^\\r\\n]+$"),DQ=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),_Q=16,EQ=24,jQ=128,PQ=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),LQ=100,VQ=900,FQ=8,AQ=800,UQ=1.2,NQ=.6,qQ=3,BQ=0,WQ=-20,ZQ=40,GQ="center",JQ=0,KQ=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),HQ=0,XQ=1,YQ=0,Zg=z([c({kind:u("group"),id:n().min(1).max(yH).regex(SH),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(RH).default(vH)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(IH).max(MH).default(wH),children:h(Wg).min(1).max(OH)}),c({kind:u("laptop"),id:n().min(1).max($H).regex(kH),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(CH).default(TH)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(_H).max(EH).default(DH),width:s().min(jH).max(PH),openAngle:s().min(LH).max(VH),materials:h(c({role:n().min(1).max(FH),type:l(["physical","unlit"]),color:z([n().regex(AH),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(UH).max(NH).optional(),metalness:s().min(qH).max(BH).optional(),clearcoat:s().min(WH).max(ZH).optional(),clearcoatRoughness:s().min(GH).max(JH).optional(),anisotropy:s().min(KH).max(HH).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(XH).optional(),reflectivity:s().min(YH).max(QH).optional()})).max(e8).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(t8).regex(o8).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(n8),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(r8),sourceVersionId:n().regex(i8)}),captureFrame:x().min(a8).max(s8),layout:c({width:x().gt(c8).max(d8),height:x().gt(p8).max(u8)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(l8),startFrame:x().min(f8).max(h8).default(m8),endFrame:x().gt(g8).max(x8).optional()})])).optional()}),c({kind:u("phone"),id:n().min(1).max(z8).regex(b8),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(S8).default(y8)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(R8).max(w8).default(v8),width:s().min(I8).max(M8),materials:h(c({role:n().min(1).max(O8),type:l(["physical","unlit"]),color:z([n().regex($8),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(k8).max(T8).optional(),metalness:s().min(C8).max(D8).optional(),clearcoat:s().min(_8).max(E8).optional(),clearcoatRoughness:s().min(j8).max(P8).optional(),anisotropy:s().min(L8).max(V8).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(F8).optional(),reflectivity:s().min(A8).max(U8).optional()})).max(N8).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(q8).regex(B8).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(W8),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(Z8),sourceVersionId:n().regex(G8)}),captureFrame:x().min(J8).max(K8),layout:c({width:x().gt(H8).max(X8),height:x().gt(Y8).max(Q8)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(eX),startFrame:x().min(oX).max(nX).default(tX),endFrame:x().gt(rX).max(iX).optional()})])).optional()}),c({kind:u("slab"),id:n().min(1).max(aX).regex(sX),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(dX).default(cX)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(uX).max(lX).default(pX),width:s().min(mX).max(fX),height:s().min(hX).max(gX),thickness:s().min(zX).max(bX).default(xX),cornerRadius:s().min(SX).default(yX),edgeRadius:s().min(RX).default(vX),finish:l(["satin","brushed"]).default(wX),materials:h(c({role:n().min(1).max(IX),type:l(["physical","unlit"]),color:z([n().regex(MX),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(OX).max($X).optional(),metalness:s().min(kX).max(TX).optional(),clearcoat:s().min(CX).max(DX).optional(),clearcoatRoughness:s().min(_X).max(EX).optional(),anisotropy:s().min(jX).max(PX).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(LX).optional(),reflectivity:s().min(VX).max(FX).optional()})).max(AX).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(UX).regex(NX).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(qX),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(BX),sourceVersionId:n().regex(WX)}),captureFrame:x().min(ZX).max(GX),layout:c({width:x().gt(JX).max(KX),height:x().gt(HX).max(XX)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(YX),startFrame:x().min(eY).max(tY).default(QX),endFrame:x().gt(oY).max(nY).optional()})])).optional()}),c({kind:u("page"),id:n().min(1).max(rY).regex(iY),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(sY).default(aY)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(dY).max(pY).default(cY),width:s().min(uY).max(lY),height:s().min(mY).max(fY),fit:l(["contain","cover"]).default(hY),transparency:l(["straight","premultiplied","opaque"]).default(gY),depthWrite:w().default(xY),backface:l(["hidden","visible"]).default(zY),materials:h(c({role:n().min(1).max(bY),type:l(["physical","unlit"]),color:z([n().regex(yY),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(SY).max(vY).optional(),metalness:s().min(RY).max(wY).optional(),clearcoat:s().min(IY).max(MY).optional(),clearcoatRoughness:s().min(OY).max($Y).optional(),anisotropy:s().min(kY).max(TY).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(CY).optional(),reflectivity:s().min(DY).max(_Y).optional()})).max(EY).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(jY).regex(PY).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(LY),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(VY),sourceVersionId:n().regex(FY)}),captureFrame:x().min(AY).max(UY),layout:c({width:x().gt(NY).max(qY),height:x().gt(BY).max(WY)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(ZY),startFrame:x().min(JY).max(KY).default(GY),endFrame:x().gt(HY).max(XY).optional()})]))}),c({id:n().min(1).max(YY).regex(QY),kind:u("text"),opacity:s().min(tQ).max(oQ).default(eQ),lines:h(c({runs:h(c({text:n().min(1).max(nQ).regex(rQ),color:z([n().regex(iQ),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(aQ)})).min(1).max(sQ),fontFamily:z([n().min(1).max(cQ).regex(dQ),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(pQ).max(uQ),fontStyle:l(["normal","italic"]),fontSize:s().min(lQ).max(mQ),lineHeight:s().min(hQ).max(gQ).default(fQ),letterSpacing:s().min(zQ).max(bQ).default(xQ),align:l(["left","center","right"]).default(yQ),maxWidth:s().gt(SQ).optional(),color:z([n().regex(vQ),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("world"),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(wQ).default(RQ)}).default({position:[0,0,0],rotation:[0,0,0],scale:1})}),c({id:n().min(1).max(IQ).regex(MQ),kind:u("text"),opacity:s().min($Q).max(kQ).default(OQ),lines:h(c({runs:h(c({text:n().min(1).max(TQ).regex(CQ),color:z([n().regex(DQ),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(_Q)})).min(1).max(EQ),fontFamily:z([n().min(1).max(jQ).regex(PQ),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(LQ).max(VQ),fontStyle:l(["normal","italic"]),fontSize:s().min(FQ).max(AQ),lineHeight:s().min(NQ).max(qQ).default(UQ),letterSpacing:s().min(WQ).max(ZQ).default(BQ),align:l(["left","center","right"]).default(GQ),maxWidth:s().gt(JQ).optional(),color:z([n().regex(KQ),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("screen"),x:s(),y:s(),rotation:s().default(HQ),scale:s().gt(YQ).default(XQ)})]);var QQ=64,eee=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),tee=1,oee=0,nee=1,ree=0,iee=1,aee=16,see=64,cee=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),dee=1,pee=0,uee=1,lee=0,mee=1,fee=200,hee=4e3,gee=0,xee=3.141592653589793,zee=64,bee=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),yee=0,See=1,vee=0,Ree=1,wee=0,Iee=1,Mee=0,Oee=1,$ee=0,kee=1,Tee=2.333,Cee=0,Dee=1,_ee=16,Eee=64,jee=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),Pee=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),Lee=256,Vee=new RegExp("^[a-f0-9]{64}$"),Fee=0,Aee=9007199254740991,Uee=0,Nee=9007199254740991,qee=0,Bee=9007199254740991,Wee=256,Zee=0,Gee=0,Jee=9007199254740991,Kee=0,Hee=9007199254740991,Xee=64,Yee=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),Qee=1,ete=0,tte=1,ote=0,nte=1,rte=80,ite=2e3,ate=64,ste=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),cte=0,dte=1,pte=0,ute=1,lte=0,mte=1,fte=0,hte=1,gte=0,xte=1,zte=2.333,bte=0,yte=1,Ste=16,vte=64,Rte=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),wte=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),Ite=256,Mte=new RegExp("^[a-f0-9]{64}$"),Ote=0,$te=9007199254740991,kte=0,Tte=9007199254740991,Cte=0,Dte=9007199254740991,_te=256,Ete=0,jte=0,Pte=9007199254740991,Lte=0,Vte=9007199254740991,Fte=64,Ate=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),Ute=1,Nte=0,qte=1,Bte=0,Wte=1,Zte=40,Gte=8e3,Jte=40,Kte=8e3,Hte=32,Xte=4,Yte=200,Qte=32,eoe=0,toe=15,ooe=0,noe="satin",roe=64,ioe=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),aoe=0,soe=1,coe=0,doe=1,poe=0,uoe=1,loe=0,moe=1,foe=0,hoe=1,goe=2.333,xoe=0,zoe=1,boe=16,yoe=64,Soe=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),voe=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),Roe=256,woe=new RegExp("^[a-f0-9]{64}$"),Ioe=0,Moe=9007199254740991,Ooe=0,$oe=9007199254740991,koe=0,Toe=9007199254740991,Coe=256,Doe=0,_oe=0,Eoe=9007199254740991,joe=0,Poe=9007199254740991,Loe=64,Voe=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),Foe=1,Aoe=0,Uoe=1,Noe=0,qoe=1,Boe=40,Woe=8e3,Zoe=40,Goe=8e3,Joe="contain",Koe="straight",Hoe=!0,Xoe="hidden",Yoe=64,Qoe=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),ene=0,tne=1,one=0,nne=1,rne=0,ine=1,ane=0,sne=1,cne=0,dne=1,pne=2.333,une=0,lne=1,mne=16,fne=64,hne=new RegExp("^[A-Za-z_][A-Za-z0-9_-]*$"),gne=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),xne=256,zne=new RegExp("^[a-f0-9]{64}$"),bne=0,yne=9007199254740991,Sne=0,vne=9007199254740991,Rne=0,wne=9007199254740991,Ine=256,Mne=0,One=0,$ne=9007199254740991,kne=0,Tne=9007199254740991,Cne=64,Dne=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),_ne=1,Ene=0,jne=1,Pne=512,Lne=new RegExp("^[^\\r\\n]+$"),Vne=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),Fne=16,Ane=24,Une=128,Nne=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),qne=100,Bne=900,Wne=8,Zne=800,Gne=1.2,Jne=.6,Kne=3,Hne=0,Xne=-20,Yne=40,Qne="center",ere=0,tre=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),ore=1,nre=0,rre=64,ire=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),are=1,sre=0,cre=1,dre=512,pre=new RegExp("^[^\\r\\n]+$"),ure=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),lre=16,mre=24,fre=128,hre=new RegExp("^[A-Za-z0-9][A-Za-z0-9 _.\\-]*$"),gre=100,xre=900,zre=8,bre=800,yre=1.2,Sre=.6,vre=3,Rre=0,wre=-20,Ire=40,Mre="center",Ore=0,$re=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),kre=0,Tre=1,Cre=0,Gg=z([c({kind:u("group"),id:n().min(1).max(QQ).regex(eee),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(oee).default(tee)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(ree).max(iee).default(nee),children:h(Zg).min(1).max(aee)}),c({kind:u("laptop"),id:n().min(1).max(see).regex(cee),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(pee).default(dee)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(lee).max(mee).default(uee),width:s().min(fee).max(hee),openAngle:s().min(gee).max(xee),materials:h(c({role:n().min(1).max(zee),type:l(["physical","unlit"]),color:z([n().regex(bee),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(yee).max(See).optional(),metalness:s().min(vee).max(Ree).optional(),clearcoat:s().min(wee).max(Iee).optional(),clearcoatRoughness:s().min(Mee).max(Oee).optional(),anisotropy:s().min($ee).max(kee).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(Tee).optional(),reflectivity:s().min(Cee).max(Dee).optional()})).max(_ee).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(Eee).regex(jee).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(Pee),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(Lee),sourceVersionId:n().regex(Vee)}),captureFrame:x().min(Fee).max(Aee),layout:c({width:x().gt(Uee).max(Nee),height:x().gt(qee).max(Bee)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(Wee),startFrame:x().min(Gee).max(Jee).default(Zee),endFrame:x().gt(Kee).max(Hee).optional()})])).optional()}),c({kind:u("phone"),id:n().min(1).max(Xee).regex(Yee),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(ete).default(Qee)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(ote).max(nte).default(tte),width:s().min(rte).max(ite),materials:h(c({role:n().min(1).max(ate),type:l(["physical","unlit"]),color:z([n().regex(ste),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(cte).max(dte).optional(),metalness:s().min(pte).max(ute).optional(),clearcoat:s().min(lte).max(mte).optional(),clearcoatRoughness:s().min(fte).max(hte).optional(),anisotropy:s().min(gte).max(xte).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(zte).optional(),reflectivity:s().min(bte).max(yte).optional()})).max(Ste).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(vte).regex(Rte).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(wte),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(Ite),sourceVersionId:n().regex(Mte)}),captureFrame:x().min(Ote).max($te),layout:c({width:x().gt(kte).max(Tte),height:x().gt(Cte).max(Dte)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(_te),startFrame:x().min(jte).max(Pte).default(Ete),endFrame:x().gt(Lte).max(Vte).optional()})])).optional()}),c({kind:u("slab"),id:n().min(1).max(Fte).regex(Ate),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(Nte).default(Ute)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(Bte).max(Wte).default(qte),width:s().min(Zte).max(Gte),height:s().min(Jte).max(Kte),thickness:s().min(Xte).max(Yte).default(Hte),cornerRadius:s().min(eoe).default(Qte),edgeRadius:s().min(ooe).default(toe),finish:l(["satin","brushed"]).default(noe),materials:h(c({role:n().min(1).max(roe),type:l(["physical","unlit"]),color:z([n().regex(ioe),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(aoe).max(soe).optional(),metalness:s().min(coe).max(doe).optional(),clearcoat:s().min(poe).max(uoe).optional(),clearcoatRoughness:s().min(loe).max(moe).optional(),anisotropy:s().min(foe).max(hoe).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(goe).optional(),reflectivity:s().min(xoe).max(zoe).optional()})).max(boe).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(yoe).regex(Soe).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(voe),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(Roe),sourceVersionId:n().regex(woe)}),captureFrame:x().min(Ioe).max(Moe),layout:c({width:x().gt(Ooe).max($oe),height:x().gt(koe).max(Toe)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(Coe),startFrame:x().min(_oe).max(Eoe).default(Doe),endFrame:x().gt(joe).max(Poe).optional()})])).optional()}),c({kind:u("page"),id:n().min(1).max(Loe).regex(Voe),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(Aoe).default(Foe)}).default({position:[0,0,0],rotation:[0,0,0],scale:1}),opacity:s().min(Noe).max(qoe).default(Uoe),width:s().min(Boe).max(Woe),height:s().min(Zoe).max(Goe),fit:l(["contain","cover"]).default(Joe),transparency:l(["straight","premultiplied","opaque"]).default(Koe),depthWrite:w().default(Hoe),backface:l(["hidden","visible"]).default(Xoe),materials:h(c({role:n().min(1).max(Yoe),type:l(["physical","unlit"]),color:z([n().regex(Qoe),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),roughness:s().min(ene).max(tne).optional(),metalness:s().min(one).max(nne).optional(),clearcoat:s().min(rne).max(ine).optional(),clearcoatRoughness:s().min(ane).max(sne).optional(),anisotropy:s().min(cne).max(dne).optional(),anisotropyRotation:s().optional(),ior:s().min(1).max(pne).optional(),reflectivity:s().min(une).max(lne).optional()})).max(mne).optional(),surfaces:y(n(),z([c({source:u("image"),assetSlot:n().min(1).max(fne).regex(hne).describe("Image asset slot name bound by the clip assets map; never a URL.")}),c({source:u("color"),color:z([n().regex(gne),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({source:u("component"),component:c({version:u(1),componentId:n().min(1).max(xne),sourceVersionId:n().regex(zne)}),captureFrame:x().min(bne).max(yne),layout:c({width:x().gt(Sne).max(vne),height:x().gt(Rne).max(wne)}),bakeScale:z([u(2),u(3)]).optional().describe("Optional authored scale. Preparation defaults omission to 2 and may auto-raise it to 3."),params:y(n(),le).optional()}),c({source:u("video"),mediaId:n().min(1).max(Ine),startFrame:x().min(One).max($ne).default(Mne),endFrame:x().gt(kne).max(Tne).optional()})]))}),c({id:n().min(1).max(Cne).regex(Dne),kind:u("text"),opacity:s().min(Ene).max(jne).default(_ne),lines:h(c({runs:h(c({text:n().min(1).max(Pne).regex(Lne),color:z([n().regex(Vne),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(Fne)})).min(1).max(Ane),fontFamily:z([n().min(1).max(Une).regex(Nne),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(qne).max(Bne),fontStyle:l(["normal","italic"]),fontSize:s().min(Wne).max(Zne),lineHeight:s().min(Jne).max(Kne).default(Gne),letterSpacing:s().min(Xne).max(Yne).default(Hne),align:l(["left","center","right"]).default(Qne),maxWidth:s().gt(ere).optional(),color:z([n().regex(tre),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("world"),transform:c({position:F([s(),s(),s()]).default([0,0,0]),rotation:F([s(),s(),s()]).default([0,0,0]),scale:s().gt(nre).default(ore)}).default({position:[0,0,0],rotation:[0,0,0],scale:1})}),c({id:n().min(1).max(rre).regex(ire),kind:u("text"),opacity:s().min(sre).max(cre).default(are),lines:h(c({runs:h(c({text:n().min(1).max(dre).regex(pre),color:z([n().regex(ure),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]).optional(),emphasis:w().optional()})).min(1).max(lre)})).min(1).max(mre),fontFamily:z([n().min(1).max(fre).regex(hre),l(["$brand:fonts.heading","$brand:fonts.body","$brand:fonts.caption"])]),fontWeight:x().min(gre).max(xre),fontStyle:l(["normal","italic"]),fontSize:s().min(zre).max(bre),lineHeight:s().min(Sre).max(vre).default(yre),letterSpacing:s().min(wre).max(Ire).default(Rre),align:l(["left","center","right"]).default(Mre),maxWidth:s().gt(Ore).optional(),color:z([n().regex($re),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])]),space:u("screen"),x:s(),y:s(),rotation:s().default(kre),scale:s().gt(Cre).default(Tre)})]);var Dre=16,_re=8192,Ere=16,jre=8192,Pre=.3141592653589793,Lre=1.3962634015954636,Vre="studio",Fre="soft",Are=1,Ure=0,Nre=-420,qre=.5,Bre=0,Wre=1,Zre={lightingProfile:"studio",preset:"soft",intensity:1,floorY:-420,shadowOpacity:.5},Gre=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),Jre=0,Kre=0,Hre=1,Xre=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),Yre=2,Qre=8,eie=0,tie=1,oie=0,nie=1,rie=0,iie=1,aie=new RegExp("^#(?:[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"),sie=2,cie=8,die={kind:"transparent"},pie=64,uie=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),lie=0,mie=1,fie=0,hie=1,gie=-4,xie=5,zie=0,bie=1,yie=-4,Sie=5,vie=256,Rie=[],wie=0,Iie=0,Mie=.5,Oie=0,$ie=0,kie=1,Tie=0,Cie=0,Die=0,_ie=64,Eie=null,jie={grain:0,vignette:0,focus:null},Pie=64,Lie=new RegExp("^[A-Za-z0-9][A-Za-z0-9_-]*$"),Vie=2,Fie=0,Aie=[],Yu=c({version:u(2),referenceSize:c({width:x().min(Dre).max(_re),height:x().min(Ere).max(jre)}),camera:c({position:F([s(),s(),s()]).optional(),rotation:F([s(),s(),s()]).optional(),fov:s().min(Pre).max(Lre).optional()}).optional(),environment:z([c({kind:u("studio").optional(),lightingProfile:l(["studio","studio-edge"]).default(Vre),preset:l(["soft","key","rim"]).default(Fre),intensity:s().min(Ure).default(Are),floorY:s().default(Nre),shadowOpacity:s().min(Bre).max(Wre).default(qre)}),c({kind:u("photographic-studio-v1")})]).default(Zre),backdrop:z([c({kind:u("transparent")}),c({kind:u("solid"),color:z([n().regex(Gre),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])}),c({kind:u("linear"),angle:s().default(Jre),stops:h(c({at:s().min(Kre).max(Hre),color:z([n().regex(Xre),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])})).min(Yre).max(Qre)}),c({kind:u("radial"),at:F([s().min(eie).max(tie),s().min(oie).max(nie)]).default([.5,.5]),stops:h(c({at:s().min(rie).max(iie),color:z([n().regex(aie),l(["$brand:colors.background","$brand:colors.surface","$brand:colors.text","$brand:colors.textMuted","$brand:colors.accent","$brand:colors.accentStrong","$brand:colors.accentSoft","$brand:colors.success","$brand:colors.warning","$brand:colors.danger"])])})).min(sie).max(cie)})]).default(die),layers:h(Gg).min(1),animation:h(c({target:z([c({kind:u("camera")}),c({kind:u("layer"),layerId:n().min(1).max(pie).regex(uie)}),c({kind:u("environment")}),c({kind:u("focus")})]),property:l(["positionX","positionY","positionZ","rotationX","rotationY","rotationZ","fov","scale","opacity","openAngle","x","y","rotation","intensity","distance","range","maxBlur"]),keyframes:h(c({at:s().min(lie).max(mie),value:s(),easing:z([c({kind:u("linear")}),c({kind:u("hold")}),c({kind:u("bezier"),x1:s().min(fie).max(hie),y1:s().min(gie).max(xie),x2:s().min(zie).max(bie),y2:s().min(yie).max(Sie)})]).optional()})).min(1).max(vie)})).default(Rie),post:c({grain:s().min(Iie).max(Mie).default(wie),vignette:s().min($ie).max(kie).default(Oie),focus:z([c({distance:s().gt(Tie),range:s().gt(Cie),maxBlur:s().min(Die).max(_ie)}),q()]).default(Eie)}).default(jie),constraints:h(c({kind:u("minSeparation"),objects:h(n().min(1).max(Pie).regex(Lie)).min(Vie),gap:s().gt(Fie)})).default(Aie)}).describe("A version-2 scene shot: a self-contained 3D world-object shot that scene.add / scene.update materializes into an ordinary component clip. The shot owns its layers, camera, lighting, backdrop and normalized local animation; the composition owns start, duration, ordering, cuts and transitions. Coordinates are REFERENCE PIXELS: origin at frame centre, +X right, +Y down, +Z toward the viewer. referenceSize must have the SAME aspect ratio as the composition format; mismatch fails instead of cropping. At equal aspect ratio the shot scales uniformly by outputWidth/referenceWidth. A segment's easing belongs to the keyframe it ARRIVES at; the first keyframe has no easing. Authoring limits: 32 layers, 4 devices, 16 distinct image slots, 256 keyframes per channel, 2048 keyframes per shot. Version 2 supports nested groups, procedural slab/page/phone/laptop objects, screen- and world-space text, admitted image/component/video surfaces, fixed photographic and generated studio environments, transparent/solid/linear/radial backdrops, constraints, focus, grain and vignette. Raw HTML, custom shader props, imported GLB models, arbitrary external HDR environments, skeletal animation and physics are refused with an exact field path.");var Uie=0,Qu=c({type:l(["cut","fade","dissolve","wipe"]),duration:s().min(Uie).optional()}).describe("Inter-scene transition.");var Nie=0,qie=0,Bie=0,Wie=0,Zie=0,Gie=0,Jie=0,Kie=0,Hie=0,Xie=0,Yie=0,Qie=4,eae=0,tae=0,oae=0,nae=0,rae=0,iae=0,aae=0,sae=0,cae=0,dae=1,pae=0,uae=1,lae=.1,mae=1,fae=0,hae=0,gae=-.3,xae=.3,zae=-.3,bae=.3,yae=256,Sae=new RegExp("^[a-f0-9]{64}$"),vae=128,Rae=256,wae=new RegExp("^(?!custom$)"),Iae=0,Mae=1,Oae=0,$ae=1,kae=-.3,Tae=.3,Cae=256,Dae=new RegExp("^[a-f0-9]{64}$"),_ae=128,Eae=0,jae=9007199254740991,Pae=0,Lae=1,Vae=0,Fae=-1,Aae=2,Uae=-1,Nae=2,qae=0,Bae=1,Wae=0,Zae=1,Gae=0,Jae=1,Kae=0,Hae=1,Xae=256,Yae=new RegExp("^[a-f0-9]{64}$"),Qae=128,ese=0,tse=0,ose=0,nse=256,rse=new RegExp("^[a-f0-9]{64}$"),ise=128,ase=0,sse=2,cse=0,dse=0,pse=0,use=0,lse=0,mse=0,fse=0,hse=4,gse=0,xse=0,zse=0,bse=0,yse=0,Sse=0,vse=0,Rse=0,wse=0,Ise=1,Mse=0,Ose=1,$se=.1,kse=1,Tse=0,Cse=0,Dse=-.3,_se=.3,Ese=-.3,jse=.3,Pse=256,Lse=new RegExp("^[a-f0-9]{64}$"),Vse=128,Fse=256,Ase=new RegExp("^(?!custom$)"),Use=0,Nse=1,qse=0,Bse=1,Wse=-.3,Zse=.3,Gse=256,Jse=new RegExp("^[a-f0-9]{64}$"),Kse=128,Hse=0,Xse=9007199254740991,Yse=0,Qse=1,ece=0,tce=-1,oce=2,nce=-1,rce=2,ice=0,ace=1,sce=0,cce=1,dce=0,pce=1,uce=0,lce=1,mce=256,fce=new RegExp("^[a-f0-9]{64}$"),hce=128,gce=0,xce=0,zce=0,bce=256,yce=new RegExp("^[a-f0-9]{64}$"),Sce=128,vce=0,Rce=2,wce=0,Ice=0,Mce=0,Oce=0,$ce=0,kce=0,Tce=0,Cce=4,Dce=0,_ce=0,Ece=0,jce=0,Pce=0,Lce=0,Vce=0,Fce=0,Ace=0,Uce=1,Nce=0,qce=1,Bce=.1,Wce=1,Zce=0,Gce=0,Jce=-.3,Kce=.3,Hce=-.3,Xce=.3,Yce=256,Qce=new RegExp("^[a-f0-9]{64}$"),ede=128,tde=256,ode=new RegExp("^(?!custom$)"),nde=0,rde=1,ide=0,ade=1,sde=-.3,cde=.3,dde=256,pde=new RegExp("^[a-f0-9]{64}$"),ude=128,lde=0,mde=9007199254740991,fde=0,hde=1,gde=0,xde=-1,zde=2,bde=-1,yde=2,Sde=0,vde=1,Rde=0,wde=1,Ide=0,Mde=1,Ode=0,$de=1,kde=256,Tde=new RegExp("^[a-f0-9]{64}$"),Cde=128,Dde=0,_de=0,Ede=0,jde=256,Pde=new RegExp("^[a-f0-9]{64}$"),Lde=128,Vde=0,Fde=2,Ade=0,Ude=0,Nde=0,qde=0,Bde=0,Wde=0,Zde=0,Gde=1,Jde=0,Kde=1,Hde=.1,Xde=1,Yde=0,Qde=0,epe=-.3,tpe=.3,ope=-.3,npe=.3,rpe=256,ipe=new RegExp("^[a-f0-9]{64}$"),ape=128,spe=0,cpe=0,dpe=15,ppe=100,upe=900,lpe=0,mpe=1,fpe=0,hpe=1,gpe=0,xpe=1,zpe=0,bpe=1,ype=-5,Spe=20,vpe=0,Rpe=2,wpe=0,Ipe=2,Mpe=0,Ope=100,$pe=900,kpe=0,Tpe=0,Cpe=0,Dpe=0,_pe=.5,Epe=12,jpe=0,Ppe=100,Lpe=0,Vpe=9007199254740991,Fpe=0,Ape=9007199254740991,Upe=0,Npe=9007199254740991,qpe=0,Bpe=1,Wpe=0,Zpe=1,Gpe=0,Jpe=1,Kpe=0,Hpe=1,Xpe=.25,Ype=4,Qpe=-45,eue=45,tue=15,oue=100,nue=900,rue=-5,iue=20,aue=0,sue=2,cue=0,due=2,pue=0,uue=100,lue=900,mue=0,fue=.5,hue=12,gue=0,xue=0,zue=0,bue=0,yue=9007199254740991,Sue=0,vue=9007199254740991,Rue=0,wue=0,Iue=15,Mue=100,Oue=900,$ue=0,kue=1,Tue=0,Cue=1,Due=0,_ue=1,Eue=0,jue=1,Pue=-5,Lue=20,Vue=0,Fue=2,Aue=0,Uue=2,Nue=0,que=100,Bue=900,Wue=0,Zue=0,Gue=0,Jue=0,Kue=.5,Hue=12,Xue=0,Yue=100,Que=0,ele=0,tle=0,ole=2e3,nle=new RegExp("^[a-f0-9]{64}$"),rle=new RegExp("^[a-f0-9]{64}$"),ile=256,ale=new RegExp("^[a-f0-9]{64}$"),sle=128,cle=256,dle=new RegExp("^[a-f0-9]{64}$"),ple=128,ule=512,el=z([c({type:u("scene.add"),clipId:n(),trackId:n().optional(),newTrack:w().optional(),newTrackId:n().optional(),startTime:s().min(Nie),duration:s().gt(qie),scene:Yu,assets:y(n(),n()),transitionIn:Qu.optional()}).describe('Author a scene shot and place it on a dedicated overlay track. The host validates the scene, generates and registers an immutable wrapper component source, and emits the ordinary track/clip operations carrying `props.componentRef` \u2014 you edit a scene SPEC, never wrapper TSX or a source hash. Registration and the composition update are ONE undoable edit; a failure publishes nothing and leaves no clip pointing at an unresolved source. Pass EXACTLY ONE of `trackId` (an existing dedicated scene track) or `newTrack: true` (mint one). That track holds scene-shot clips and gaps only \u2014 no generic component/primitive/media clips in v1 \u2014 and existing generic overlay tracks are unaffected. Scene clips use front zPlane and full-frame placement: outer per-clip `region`, `position`, `scale`, `rotation`, `fit`, `effects`, `animate`, `params.transition`, `params.sequenceGroup` and internal fadeIn/fadeOut are REFUSED with a path, because the shot\'s own layer transforms are the single transform owner. TEXT: `space: "screen"` text is composed above the world result, stays fixed in the frame and stays sharp through focus; `space: "world"` text is rasterized into the 3D scene, moves with the camera and is occluded by geometry. Screenshots and world text are UNLIT and colour-managed so product UI colours are not tinted by the studio lighting, while device bodies are lit and cast shadows; an unlit surface still occludes. SCOPE GAP (pre-existing, neither closed nor changed by scene shots): global wrap effects \u2014 composition-level grades and camera effects \u2014 do not reach front-overlay clips, so they do not affect a scene shot. Author the look INSIDE the shot (`post.grain`, `post.vignette`, `post.focus`, `backdrop`, `environment`) instead. DISCOVERY: there is no built-in scene primitive to look up in list_catalog; the wrapper this operation registers appears afterwards as an ordinary INSTALLED component under the existing catalog rules. ASSETS: `assets` binds each slot name a layer references to a media id in the same project, and the slot\'s declared KIND decides what it admits \u2014 an image slot takes PNG, JPEG or WebP, a video slot MP4 or WebM. Binding the wrong kind is refused with the slot\'s path.'),c({type:u("scene.update"),clipId:n(),startTime:s().min(Bie).optional(),duration:s().gt(Wie).optional(),scene:Yu.optional(),assets:y(n(),n()).optional(),transitionIn:Qu.optional()}).describe("Revise a scene shot in place by clip id. Send a replacement `scene` and/or `assets`; timing changes use the ordinary clip timing fields (`startTime`, `duration`, `transitionIn`). Omitted fields keep their persisted values and the MERGED result is re-validated as a whole, so a partial edit cannot leave the shot invalid. Changing only values or asset IDs updates props and bindings and REUSES the pinned source; changing the referenced SLOT SET regenerates the wrapper manifest and registers a new immutable source version atomically. Undo restores the source reference, spec, bindings and timing together. Topology, asset bindings, text content, font properties, device kind and colours are STATIC within a shot's animation \u2014 change them here (a revised spec) rather than trying to animate them. This is not a source trim or slip: a shortened or extended clip resamples the SAME normalized animation over its new duration, and trim/slip requests on generated animation are rejected rather than reinterpreted as media trims. In one batch, `scene.update` may target a shot added by an earlier `scene.add`. ASSETS: `assets` binds each slot name a layer references to a media id in the same project, and the slot's declared KIND decides what it admits \u2014 an image slot takes PNG, JPEG or WebP, a video slot MP4 or WebM. Binding the wrong kind is refused with the slot's path."),c({type:u("clip.add"),clip:c({id:n().min(1),startTime:s().min(Zie).describe("Timeline start (seconds)."),duration:s().gt(Gie).describe("Clip duration (seconds)."),source:z([c({kind:u("media"),mediaId:n().min(1),trim:c({start:s().min(Jie).describe("Source trim start (seconds)."),end:s().min(Kie).describe("Source trim end (seconds).")}).optional(),excludedRanges:h(c({start:s().min(Hie),end:s().min(Xie),reason:n().optional()})).optional(),volume:s().min(Yie).max(Qie).optional(),muted:w().optional(),playbackRate:s().gt(eae).optional(),sync:l(["video","independent"]).optional(),kenBurns:l(["in","out","pan-l","pan-r","none"]).optional(),volumeDb:s().optional(),fadeInMs:s().min(tae).optional(),fadeOutMs:s().min(oae).optional(),loop:w().optional(),audioRole:l(["sfx","music","vo","ambience"]).optional(),duck:c({duckDb:s().max(nae),attackMs:s().min(rae),releaseMs:s().min(iae),windows:h(c({startMs:s(),endMs:s()})).optional()}).optional(),anchor:c({clipId:n().min(1),offsetMs:s()}).optional(),reframe:c({segments:h(c({startSec:s().min(aae).describe("Segment START in seconds, clip-relative. Segments tile the clip's duration in order."),endSec:s().gt(sae).describe("Segment END in seconds, clip-relative. The span (endSec \u2212 startSec) is this segment's duration \u2014 the window `ease` ramps over."),focus:z([c({mode:u("frame-center")}),c({mode:u("point"),x:s().min(cae).max(dae),y:s().min(pae).max(uae)}),c({mode:u("face"),faceId:n().min(1),shotScale:l(["close","standard","wide"]).optional()}),c({mode:u("all-faces")}),c({mode:u("active-speaker")})]).describe("WHO/WHAT the camera tracks this segment (the reframe center), selected by `mode`: `frame-center` = no tracking, hold the geometric center (static/graphic footage, or a pure zoom); `point` = lock to a fixed source-normalized {x,y} (a non-moving on-screen element); `face` = track a detected face by `faceId` (from get_media_context), with optional `shotScale` close|standard|wide for tightness; `all-faces` = frame the bounding box of every detected face (group/ensemble shots); `active-speaker` = follow whoever is speaking (diarized talking-head / podcast). Pick by what the beat is about; pair with `zoom` for how tight."),intent:n().optional().describe("Optional editorial LABEL for diff/log readability (e.g. 'speaker-tight', 'wide-context'). Cosmetic \u2014 NOT honored by the derive math and excluded from the variant cache key."),zoom:s().min(lae).max(mae).optional().describe("How TIGHT the framing is \u2014 the fraction of the source the output viewport shows. <1 punches IN (a smaller source fraction, magnified to fill the frame); 1 = the full frame (no crop). ~0.6\u20130.8 is a moderate push-in, ~0.5 a tight close-up, 0.1 the maximum zoom. There is NO zoom-OUT past the full frame (max 1). Omit for the full frame. MUTUALLY EXCLUSIVE with `focus.shotScale` \u2014 a face-tracked shot is sized EITHER by the editorial scale (shotScale, which the bake calibrates to the detected face) OR by an explicit zoom, never both. A segment carrying both is REJECTED: shotScale wins at bake time and the zoom would be silently discarded."),ease:c({in:s().min(fae).describe("Ease-IN ramp DURATION in seconds at the segment START."),out:s().min(hae).describe("Ease-OUT ramp DURATION in seconds at the segment END.")}).optional().describe("Zoom/center ramp DURATIONS in SECONDS at this segment's edges \u2014 NOT a unitless 0\u20131 curve. ~0.3\u20130.6s reads as a snappy push; >1s reads sluggish. Keep `in` + `out` \u2264 the segment's duration (endSec \u2212 startSec): the two edges share the span, so to ramp across the WHOLE segment set one edge to the full duration and the other to 0. Omit for an instant cut to this framing."),bias:c({x:s().min(gae).max(xae).describe("Horizontal nudge, source-normalized (+ = right)."),y:s().min(zae).max(bae).describe("Vertical nudge, source-normalized (+ = down).")}).optional().describe("Optional FINE framing nudge off the focus center, source-normalized in [\u22120.3, 0.3]. A small correction (headroom, rule-of-thirds), NOT a reframe \u2014 use `focus`/`zoom` for the actual shot. Omit (treated as 0) to sit dead-center on the focus.")})).min(1)}).optional()}),c({kind:u("component"),componentId:n().min(1),props:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),execution:c({version:u(3),componentId:n().min(1).max(yae),sourceVersionId:n().regex(Sae),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(vae))).optional()}),placement:z([c({version:u(3),kind:u("clip")}),c({version:u(3),kind:u("content-slots"),slots:y(n(),c({targetClipIds:h(n().min(1).max(Rae)),ownership:l(["reference","exclusive"])}))})])}),c({kind:u("overlay"),primitiveId:n().min(1).regex(wae),params:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),anchor:c({space:u("scene"),x:s().min(Iae).max(Mae),y:s().min(Oae).max($ae)}).optional(),parallax:s().min(kae).max(Tae).optional()}),c({kind:u("effect"),primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),component:c({version:u(3),componentId:n().min(1).max(Cae),sourceVersionId:n().regex(Dae),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(_ae))).optional()}).optional(),targetTrackIds:h(n().min(1)).min(1).optional(),wrapperOrder:x().min(Eae).max(jae).optional()}),c({kind:u("card"),html:n().min(1).describe("Your card's HTML \u2014 rendered VERBATIM as the graphic (shell motion via applyMotionPreset in a FOLLOWING call). CANVAS CONTRACT: the card renders in a viewport equal to the composition format's pixel frame (1080\xD71920 at 9:16 fhd); the root is NOT auto-pinned \u2014 declare explicit width/height matching the frame (box-sizing:border-box) and anchor content with flex/grid; position:absolute;inset:0 on the root does NOT fill the frame; for edge-to-edge backgrounds add an inner absolutely-positioned layer with generous negative inset. Overlay compositing applies a ~92% safe-area inset \u2014 keep critical copy away from the extreme edges. FONTS: name a family from GET /v1/fonts (list_render_fonts) \u2014 the renderer loads those faces for the card and waits for them, so `font-family: Inter` draws Inter. `@import` and remote font files are REFUSED: the card renders with no network. A family that is not on that list has no bytes behind it and the browser falls back, so end any stack with a generic (`Inter, sans-serif`) rather than relying on a system face being present."),tokens:y(n(),n()).optional(),zPlane:u("front").optional()})]),kind:l(["video","audio","image","overlay","effect"]).optional(),opacity:s().min(Pae).max(Lae).optional(),scale:s().gt(Vae).optional(),rotation:s().optional(),position:c({x:s().min(Fae).max(Aae),y:s().min(Uae).max(Nae)}).optional().describe("Clip CENTRE as a fraction of the frame: {x:0.5,y:0.5} is dead centre, 0 to 1 is inside the frame, and a little overshoot (down to -1, up to 2) is how an entrance starts off-canvas. NOT pixels: the renderer maps x to `left: x*100%`, so `x: 180` sits 180 frame-widths away and draws nothing."),region:c({x:s().min(qae).max(Bae),y:s().min(Wae).max(Zae),w:s().gt(Gae).max(Jae),h:s().gt(Kae).max(Hae)}).optional(),fit:l(["cover","contain"]).optional(),captionVisibility:l(["visible","hidden"]).optional().describe("Video media clip only. Hide native captions while this clip is topmost and covers the lower picture, or when an opaque, effect-free clip has an explicitly full-frame region, even with fit:contain. Caption words and timings remain stored and resume when another visible clip takes over."),effects:h(c({primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(Xae),sourceVersionId:n().regex(Yae),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(Qae))).optional()}).optional(),window:c({startTime:s().min(ese),duration:s().gt(tse)}).optional()})).optional(),transitionIn:c({type:n().min(1),duration:s().gt(ose),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(nse),sourceVersionId:n().regex(rse),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(ise))).optional()}).optional(),fromClipId:n().min(1).optional(),toClipId:n().min(1).optional(),handlePolicy:u("outgoing-overrun-at-cut-v1").optional()}).optional(),linkGroupId:n().min(1).optional(),animate:y(n(),h(c({time:s().min(ase),value:s(),easing:z([l(["linear","ease","easeIn","easeOut","easeInOut"]),c({cubicBezier:F([s(),s(),s(),s()])})]).optional()})).min(sse)).optional().describe("Keyframe channels, clip-relative seconds. Each channel's values use the SAME unit as the scalar it animates: `opacity` 0 to 1, `scale` a multiplier (>0), `rotation` degrees, `position.x`/`position.y` a FRACTION of the frame like `position` (0.5 = centre; NOT pixels), `volume` 0 to 4.")}),trackId:n().optional(),newTrack:w().optional(),newTrackId:n().optional()}).describe("Add a clip to the timeline. The clip self-routes to a track by FAMILY (`clip.kind`, else derived from `source.kind`, else the target track) \u2014 a `media` clip MUST carry `kind` (video|audio|image) or a `trackId`, else it is rejected as ambiguous. `trackId` targets an existing SAME-family track; `newTrack:true` (with optional pinned `newTrackId`) creates a fresh track of that family."),c({type:u("clip.remove"),clipId:n()}).describe("Remove a clip by id (located across every track)."),c({type:u("clip.update"),clipId:n(),patch:c({id:n().min(1).optional(),startTime:s().min(cse).optional().describe("Timeline start (seconds)."),duration:s().gt(dse).optional().describe("Clip duration (seconds)."),source:z([c({kind:u("media"),mediaId:n().min(1),trim:c({start:s().min(pse).describe("Source trim start (seconds)."),end:s().min(use).describe("Source trim end (seconds).")}).optional(),excludedRanges:h(c({start:s().min(lse),end:s().min(mse),reason:n().optional()})).optional(),volume:s().min(fse).max(hse).optional(),muted:w().optional(),playbackRate:s().gt(gse).optional(),sync:l(["video","independent"]).optional(),kenBurns:l(["in","out","pan-l","pan-r","none"]).optional(),volumeDb:s().optional(),fadeInMs:s().min(xse).optional(),fadeOutMs:s().min(zse).optional(),loop:w().optional(),audioRole:l(["sfx","music","vo","ambience"]).optional(),duck:c({duckDb:s().max(bse),attackMs:s().min(yse),releaseMs:s().min(Sse),windows:h(c({startMs:s(),endMs:s()})).optional()}).optional(),anchor:c({clipId:n().min(1),offsetMs:s()}).optional(),reframe:c({segments:h(c({startSec:s().min(vse).describe("Segment START in seconds, clip-relative. Segments tile the clip's duration in order."),endSec:s().gt(Rse).describe("Segment END in seconds, clip-relative. The span (endSec \u2212 startSec) is this segment's duration \u2014 the window `ease` ramps over."),focus:z([c({mode:u("frame-center")}),c({mode:u("point"),x:s().min(wse).max(Ise),y:s().min(Mse).max(Ose)}),c({mode:u("face"),faceId:n().min(1),shotScale:l(["close","standard","wide"]).optional()}),c({mode:u("all-faces")}),c({mode:u("active-speaker")})]).describe("WHO/WHAT the camera tracks this segment (the reframe center), selected by `mode`: `frame-center` = no tracking, hold the geometric center (static/graphic footage, or a pure zoom); `point` = lock to a fixed source-normalized {x,y} (a non-moving on-screen element); `face` = track a detected face by `faceId` (from get_media_context), with optional `shotScale` close|standard|wide for tightness; `all-faces` = frame the bounding box of every detected face (group/ensemble shots); `active-speaker` = follow whoever is speaking (diarized talking-head / podcast). Pick by what the beat is about; pair with `zoom` for how tight."),intent:n().optional().describe("Optional editorial LABEL for diff/log readability (e.g. 'speaker-tight', 'wide-context'). Cosmetic \u2014 NOT honored by the derive math and excluded from the variant cache key."),zoom:s().min($se).max(kse).optional().describe("How TIGHT the framing is \u2014 the fraction of the source the output viewport shows. <1 punches IN (a smaller source fraction, magnified to fill the frame); 1 = the full frame (no crop). ~0.6\u20130.8 is a moderate push-in, ~0.5 a tight close-up, 0.1 the maximum zoom. There is NO zoom-OUT past the full frame (max 1). Omit for the full frame. MUTUALLY EXCLUSIVE with `focus.shotScale` \u2014 a face-tracked shot is sized EITHER by the editorial scale (shotScale, which the bake calibrates to the detected face) OR by an explicit zoom, never both. A segment carrying both is REJECTED: shotScale wins at bake time and the zoom would be silently discarded."),ease:c({in:s().min(Tse).describe("Ease-IN ramp DURATION in seconds at the segment START."),out:s().min(Cse).describe("Ease-OUT ramp DURATION in seconds at the segment END.")}).optional().describe("Zoom/center ramp DURATIONS in SECONDS at this segment's edges \u2014 NOT a unitless 0\u20131 curve. ~0.3\u20130.6s reads as a snappy push; >1s reads sluggish. Keep `in` + `out` \u2264 the segment's duration (endSec \u2212 startSec): the two edges share the span, so to ramp across the WHOLE segment set one edge to the full duration and the other to 0. Omit for an instant cut to this framing."),bias:c({x:s().min(Dse).max(_se).describe("Horizontal nudge, source-normalized (+ = right)."),y:s().min(Ese).max(jse).describe("Vertical nudge, source-normalized (+ = down).")}).optional().describe("Optional FINE framing nudge off the focus center, source-normalized in [\u22120.3, 0.3]. A small correction (headroom, rule-of-thirds), NOT a reframe \u2014 use `focus`/`zoom` for the actual shot. Omit (treated as 0) to sit dead-center on the focus.")})).min(1)}).optional()}),c({kind:u("component"),componentId:n().min(1),props:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),execution:c({version:u(3),componentId:n().min(1).max(Pse),sourceVersionId:n().regex(Lse),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(Vse))).optional()}),placement:z([c({version:u(3),kind:u("clip")}),c({version:u(3),kind:u("content-slots"),slots:y(n(),c({targetClipIds:h(n().min(1).max(Fse)),ownership:l(["reference","exclusive"])}))})])}),c({kind:u("overlay"),primitiveId:n().min(1).regex(Ase),params:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),anchor:c({space:u("scene"),x:s().min(Use).max(Nse),y:s().min(qse).max(Bse)}).optional(),parallax:s().min(Wse).max(Zse).optional()}),c({kind:u("effect"),primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),component:c({version:u(3),componentId:n().min(1).max(Gse),sourceVersionId:n().regex(Jse),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(Kse))).optional()}).optional(),targetTrackIds:h(n().min(1)).min(1).optional(),wrapperOrder:x().min(Hse).max(Xse).optional()}),c({kind:u("card"),html:n().min(1).describe("Your card's HTML \u2014 rendered VERBATIM as the graphic (shell motion via applyMotionPreset in a FOLLOWING call). CANVAS CONTRACT: the card renders in a viewport equal to the composition format's pixel frame (1080\xD71920 at 9:16 fhd); the root is NOT auto-pinned \u2014 declare explicit width/height matching the frame (box-sizing:border-box) and anchor content with flex/grid; position:absolute;inset:0 on the root does NOT fill the frame; for edge-to-edge backgrounds add an inner absolutely-positioned layer with generous negative inset. Overlay compositing applies a ~92% safe-area inset \u2014 keep critical copy away from the extreme edges. FONTS: name a family from GET /v1/fonts (list_render_fonts) \u2014 the renderer loads those faces for the card and waits for them, so `font-family: Inter` draws Inter. `@import` and remote font files are REFUSED: the card renders with no network. A family that is not on that list has no bytes behind it and the browser falls back, so end any stack with a generic (`Inter, sans-serif`) rather than relying on a system face being present."),tokens:y(n(),n()).optional(),zPlane:u("front").optional()})]).optional(),kind:l(["video","audio","image","overlay","effect"]).optional(),opacity:s().min(Yse).max(Qse).optional(),scale:s().gt(ece).optional(),rotation:s().optional(),position:c({x:s().min(tce).max(oce),y:s().min(nce).max(rce)}).optional().describe("Clip CENTRE as a fraction of the frame: {x:0.5,y:0.5} is dead centre, 0 to 1 is inside the frame, and a little overshoot (down to -1, up to 2) is how an entrance starts off-canvas. NOT pixels: the renderer maps x to `left: x*100%`, so `x: 180` sits 180 frame-widths away and draws nothing."),region:c({x:s().min(ice).max(ace),y:s().min(sce).max(cce),w:s().gt(dce).max(pce),h:s().gt(uce).max(lce)}).optional(),fit:l(["cover","contain"]).optional(),captionVisibility:l(["visible","hidden"]).optional().describe("Video media clip only. Hide native captions while this clip is topmost and covers the lower picture, or when an opaque, effect-free clip has an explicitly full-frame region, even with fit:contain. Caption words and timings remain stored and resume when another visible clip takes over."),effects:h(c({primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(mce),sourceVersionId:n().regex(fce),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(hce))).optional()}).optional(),window:c({startTime:s().min(gce),duration:s().gt(xce)}).optional()})).optional(),transitionIn:c({type:n().min(1),duration:s().gt(zce),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(bce),sourceVersionId:n().regex(yce),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(Sce))).optional()}).optional(),fromClipId:n().min(1).optional(),toClipId:n().min(1).optional(),handlePolicy:u("outgoing-overrun-at-cut-v1").optional()}).optional(),linkGroupId:n().min(1).optional(),animate:y(n(),h(c({time:s().min(vce),value:s(),easing:z([l(["linear","ease","easeIn","easeOut","easeInOut"]),c({cubicBezier:F([s(),s(),s(),s()])})]).optional()})).min(Rce)).optional().describe("Keyframe channels, clip-relative seconds. Each channel's values use the SAME unit as the scalar it animates: `opacity` 0 to 1, `scale` a multiplier (>0), `rotation` degrees, `position.x`/`position.y` a FRACTION of the frame like `position` (0.5 = centre; NOT pixels), `volume` 0 to 4.")})}).describe("Patch an existing clip by id (cross-family). The patch is a partial TimelineClip. NOTE: `source` is REPLACED wholesale \u2014 the patch merges at the top level only, so a partial `source` WIPES the source fields you omit. Patch the whole source object when changing it. (To change reframe/excluded ranges, prefer setCropIntents / addExcludedRange, not a source patch.)"),c({type:u("removeClipsByMediaId"),mediaId:n()}).describe("Remove EVERY clip sourced from a given mediaId (e.g. after deleting that media)."),c({type:u("loadOverlays"),clips:h(c({id:n().min(1),startTime:s().min(wce).describe("Timeline start (seconds)."),duration:s().gt(Ice).describe("Clip duration (seconds)."),source:z([c({kind:u("media"),mediaId:n().min(1),trim:c({start:s().min(Mce).describe("Source trim start (seconds)."),end:s().min(Oce).describe("Source trim end (seconds).")}).optional(),excludedRanges:h(c({start:s().min($ce),end:s().min(kce),reason:n().optional()})).optional(),volume:s().min(Tce).max(Cce).optional(),muted:w().optional(),playbackRate:s().gt(Dce).optional(),sync:l(["video","independent"]).optional(),kenBurns:l(["in","out","pan-l","pan-r","none"]).optional(),volumeDb:s().optional(),fadeInMs:s().min(_ce).optional(),fadeOutMs:s().min(Ece).optional(),loop:w().optional(),audioRole:l(["sfx","music","vo","ambience"]).optional(),duck:c({duckDb:s().max(jce),attackMs:s().min(Pce),releaseMs:s().min(Lce),windows:h(c({startMs:s(),endMs:s()})).optional()}).optional(),anchor:c({clipId:n().min(1),offsetMs:s()}).optional(),reframe:c({segments:h(c({startSec:s().min(Vce).describe("Segment START in seconds, clip-relative. Segments tile the clip's duration in order."),endSec:s().gt(Fce).describe("Segment END in seconds, clip-relative. The span (endSec \u2212 startSec) is this segment's duration \u2014 the window `ease` ramps over."),focus:z([c({mode:u("frame-center")}),c({mode:u("point"),x:s().min(Ace).max(Uce),y:s().min(Nce).max(qce)}),c({mode:u("face"),faceId:n().min(1),shotScale:l(["close","standard","wide"]).optional()}),c({mode:u("all-faces")}),c({mode:u("active-speaker")})]).describe("WHO/WHAT the camera tracks this segment (the reframe center), selected by `mode`: `frame-center` = no tracking, hold the geometric center (static/graphic footage, or a pure zoom); `point` = lock to a fixed source-normalized {x,y} (a non-moving on-screen element); `face` = track a detected face by `faceId` (from get_media_context), with optional `shotScale` close|standard|wide for tightness; `all-faces` = frame the bounding box of every detected face (group/ensemble shots); `active-speaker` = follow whoever is speaking (diarized talking-head / podcast). Pick by what the beat is about; pair with `zoom` for how tight."),intent:n().optional().describe("Optional editorial LABEL for diff/log readability (e.g. 'speaker-tight', 'wide-context'). Cosmetic \u2014 NOT honored by the derive math and excluded from the variant cache key."),zoom:s().min(Bce).max(Wce).optional().describe("How TIGHT the framing is \u2014 the fraction of the source the output viewport shows. <1 punches IN (a smaller source fraction, magnified to fill the frame); 1 = the full frame (no crop). ~0.6\u20130.8 is a moderate push-in, ~0.5 a tight close-up, 0.1 the maximum zoom. There is NO zoom-OUT past the full frame (max 1). Omit for the full frame. MUTUALLY EXCLUSIVE with `focus.shotScale` \u2014 a face-tracked shot is sized EITHER by the editorial scale (shotScale, which the bake calibrates to the detected face) OR by an explicit zoom, never both. A segment carrying both is REJECTED: shotScale wins at bake time and the zoom would be silently discarded."),ease:c({in:s().min(Zce).describe("Ease-IN ramp DURATION in seconds at the segment START."),out:s().min(Gce).describe("Ease-OUT ramp DURATION in seconds at the segment END.")}).optional().describe("Zoom/center ramp DURATIONS in SECONDS at this segment's edges \u2014 NOT a unitless 0\u20131 curve. ~0.3\u20130.6s reads as a snappy push; >1s reads sluggish. Keep `in` + `out` \u2264 the segment's duration (endSec \u2212 startSec): the two edges share the span, so to ramp across the WHOLE segment set one edge to the full duration and the other to 0. Omit for an instant cut to this framing."),bias:c({x:s().min(Jce).max(Kce).describe("Horizontal nudge, source-normalized (+ = right)."),y:s().min(Hce).max(Xce).describe("Vertical nudge, source-normalized (+ = down).")}).optional().describe("Optional FINE framing nudge off the focus center, source-normalized in [\u22120.3, 0.3]. A small correction (headroom, rule-of-thirds), NOT a reframe \u2014 use `focus`/`zoom` for the actual shot. Omit (treated as 0) to sit dead-center on the focus.")})).min(1)}).optional()}),c({kind:u("component"),componentId:n().min(1),props:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),execution:c({version:u(3),componentId:n().min(1).max(Yce),sourceVersionId:n().regex(Qce),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(ede))).optional()}),placement:z([c({version:u(3),kind:u("clip")}),c({version:u(3),kind:u("content-slots"),slots:y(n(),c({targetClipIds:h(n().min(1).max(tde)),ownership:l(["reference","exclusive"])}))})])}),c({kind:u("overlay"),primitiveId:n().min(1).regex(ode),params:y(n(),$()),zPlane:l(["front","behind-subject"]).optional(),anchor:c({space:u("scene"),x:s().min(nde).max(rde),y:s().min(ide).max(ade)}).optional(),parallax:s().min(sde).max(cde).optional()}),c({kind:u("effect"),primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),component:c({version:u(3),componentId:n().min(1).max(dde),sourceVersionId:n().regex(pde),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(ude))).optional()}).optional(),targetTrackIds:h(n().min(1)).min(1).optional(),wrapperOrder:x().min(lde).max(mde).optional()}),c({kind:u("card"),html:n().min(1).describe("Your card's HTML \u2014 rendered VERBATIM as the graphic (shell motion via applyMotionPreset in a FOLLOWING call). CANVAS CONTRACT: the card renders in a viewport equal to the composition format's pixel frame (1080\xD71920 at 9:16 fhd); the root is NOT auto-pinned \u2014 declare explicit width/height matching the frame (box-sizing:border-box) and anchor content with flex/grid; position:absolute;inset:0 on the root does NOT fill the frame; for edge-to-edge backgrounds add an inner absolutely-positioned layer with generous negative inset. Overlay compositing applies a ~92% safe-area inset \u2014 keep critical copy away from the extreme edges. FONTS: name a family from GET /v1/fonts (list_render_fonts) \u2014 the renderer loads those faces for the card and waits for them, so `font-family: Inter` draws Inter. `@import` and remote font files are REFUSED: the card renders with no network. A family that is not on that list has no bytes behind it and the browser falls back, so end any stack with a generic (`Inter, sans-serif`) rather than relying on a system face being present."),tokens:y(n(),n()).optional(),zPlane:u("front").optional()})]),kind:l(["video","audio","image","overlay","effect"]).optional(),opacity:s().min(fde).max(hde).optional(),scale:s().gt(gde).optional(),rotation:s().optional(),position:c({x:s().min(xde).max(zde),y:s().min(bde).max(yde)}).optional().describe("Clip CENTRE as a fraction of the frame: {x:0.5,y:0.5} is dead centre, 0 to 1 is inside the frame, and a little overshoot (down to -1, up to 2) is how an entrance starts off-canvas. NOT pixels: the renderer maps x to `left: x*100%`, so `x: 180` sits 180 frame-widths away and draws nothing."),region:c({x:s().min(Sde).max(vde),y:s().min(Rde).max(wde),w:s().gt(Ide).max(Mde),h:s().gt(Ode).max($de)}).optional(),fit:l(["cover","contain"]).optional(),captionVisibility:l(["visible","hidden"]).optional().describe("Video media clip only. Hide native captions while this clip is topmost and covers the lower picture, or when an opaque, effect-free clip has an explicitly full-frame region, even with fit:contain. Caption words and timings remain stored and resume when another visible clip takes over."),effects:h(c({primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(kde),sourceVersionId:n().regex(Tde),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(Cde))).optional()}).optional(),window:c({startTime:s().min(Dde),duration:s().gt(_de)}).optional()})).optional(),transitionIn:c({type:n().min(1),duration:s().gt(Ede),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(jde),sourceVersionId:n().regex(Pde),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(Lde))).optional()}).optional(),fromClipId:n().min(1).optional(),toClipId:n().min(1).optional(),handlePolicy:u("outgoing-overrun-at-cut-v1").optional()}).optional(),linkGroupId:n().min(1).optional(),animate:y(n(),h(c({time:s().min(Vde),value:s(),easing:z([l(["linear","ease","easeIn","easeOut","easeInOut"]),c({cubicBezier:F([s(),s(),s(),s()])})]).optional()})).min(Fde)).optional().describe("Keyframe channels, clip-relative seconds. Each channel's values use the SAME unit as the scalar it animates: `opacity` 0 to 1, `scale` a multiplier (>0), `rotation` degrees, `position.x`/`position.y` a FRACTION of the frame like `position` (0.5 = centre; NOT pixels), `volume` 0 to 4.")}))}).describe("Replace the overlay channel wholesale with the given clips (bulk set, not a merge)."),c({type:u("addMarker"),marker:c({id:n().min(1),startTime:s().min(Ade),endTime:s().min(Ude).optional(),kind:n().min(1),name:n().optional(),metadata:y(n(),$()).optional()})}).describe("Add a timeline marker (a named time point/range; carry extensions in `metadata`)."),c({type:u("removeMarker"),markerId:n()}).describe("Remove a marker by id."),c({type:u("updateMarker"),markerId:n(),updates:c({id:n().min(1).optional(),startTime:s().min(Nde).optional(),endTime:s().min(qde).optional(),kind:n().min(1).optional(),name:n().optional(),metadata:y(n(),$()).optional()})}).describe("Patch a marker's fields by id (partial merge)."),c({type:u("setCropIntents"),clipId:n(),segments:z([h(c({startSec:s().min(Bde).describe("Segment START in seconds, clip-relative. Segments tile the clip's duration in order."),endSec:s().gt(Wde).describe("Segment END in seconds, clip-relative. The span (endSec \u2212 startSec) is this segment's duration \u2014 the window `ease` ramps over."),focus:z([c({mode:u("frame-center")}),c({mode:u("point"),x:s().min(Zde).max(Gde),y:s().min(Jde).max(Kde)}),c({mode:u("face"),faceId:n().min(1),shotScale:l(["close","standard","wide"]).optional()}),c({mode:u("all-faces")}),c({mode:u("active-speaker")})]).describe("WHO/WHAT the camera tracks this segment (the reframe center), selected by `mode`: `frame-center` = no tracking, hold the geometric center (static/graphic footage, or a pure zoom); `point` = lock to a fixed source-normalized {x,y} (a non-moving on-screen element); `face` = track a detected face by `faceId` (from get_media_context), with optional `shotScale` close|standard|wide for tightness; `all-faces` = frame the bounding box of every detected face (group/ensemble shots); `active-speaker` = follow whoever is speaking (diarized talking-head / podcast). Pick by what the beat is about; pair with `zoom` for how tight."),intent:n().optional().describe("Optional editorial LABEL for diff/log readability (e.g. 'speaker-tight', 'wide-context'). Cosmetic \u2014 NOT honored by the derive math and excluded from the variant cache key."),zoom:s().min(Hde).max(Xde).optional().describe("How TIGHT the framing is \u2014 the fraction of the source the output viewport shows. <1 punches IN (a smaller source fraction, magnified to fill the frame); 1 = the full frame (no crop). ~0.6\u20130.8 is a moderate push-in, ~0.5 a tight close-up, 0.1 the maximum zoom. There is NO zoom-OUT past the full frame (max 1). Omit for the full frame. MUTUALLY EXCLUSIVE with `focus.shotScale` \u2014 a face-tracked shot is sized EITHER by the editorial scale (shotScale, which the bake calibrates to the detected face) OR by an explicit zoom, never both. A segment carrying both is REJECTED: shotScale wins at bake time and the zoom would be silently discarded."),ease:c({in:s().min(Yde).describe("Ease-IN ramp DURATION in seconds at the segment START."),out:s().min(Qde).describe("Ease-OUT ramp DURATION in seconds at the segment END.")}).optional().describe("Zoom/center ramp DURATIONS in SECONDS at this segment's edges \u2014 NOT a unitless 0\u20131 curve. ~0.3\u20130.6s reads as a snappy push; >1s reads sluggish. Keep `in` + `out` \u2264 the segment's duration (endSec \u2212 startSec): the two edges share the span, so to ramp across the WHOLE segment set one edge to the full duration and the other to 0. Omit for an instant cut to this framing."),bias:c({x:s().min(epe).max(tpe).describe("Horizontal nudge, source-normalized (+ = right)."),y:s().min(ope).max(npe).describe("Vertical nudge, source-normalized (+ = down).")}).optional().describe("Optional FINE framing nudge off the focus center, source-normalized in [\u22120.3, 0.3]. A small correction (headroom, rule-of-thirds), NOT a reframe \u2014 use `focus`/`zoom` for the actual shot. Omit (treated as 0) to sit dead-center on the focus.")})),q()])}).describe("Set (or CLEAR, with `segments: null`) the camera/reframe channel on a MEDIA clip \u2014 the time-aligned source\u2192output viewport (focus, zoom, ease, bias). This is the PREFERRED way to author reframing; do NOT reframe via a whole-source `clip.update` patch. Segments tile the clip's duration."),c({type:u("setEffects"),clipId:n(),effects:h(c({primitiveId:n().min(1).optional(),params:y(n(),$()).optional(),id:n().min(1).optional(),component:c({version:u(3),componentId:n().min(1).max(rpe),sourceVersionId:n().regex(ipe),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(ape))).optional()}).optional(),window:c({startTime:s().min(spe),duration:s().gt(cpe)}).optional()}))}).describe("Set (or CLEAR, with `effects: []`) a clip's EFFECT channel \u2014 the registered effect primitives stacked onto that clip, each `{ primitiveId, params? }`. WHOLESALE: the array REPLACES the clip's current effects, so send the full stack (read the clip first to add one). This is the ONLY way to change effects on an existing clip \u2014 do NOT reach for a `clip.update` patch, whose top-level merge is the source-clobbering footgun documented above."),c({type:u("setCaptionStyle"),style:c({fontFamily:n().min(1).optional(),fontSize:s().min(1).max(dpe).optional().describe("Font size as % of composition height (1-15, default 5). NOT px."),fontWeight:x().min(ppe).max(upe).optional(),color:n().min(1).optional(),highlightColor:n().min(1).optional(),backgroundColor:n().optional(),plate:l(["glass","solid","none"]).optional(),position:l(["top","center","bottom"]).optional(),region:c({x:s().min(lpe).max(mpe),y:s().min(fpe).max(hpe),w:s().gt(gpe).max(xpe),h:s().gt(zpe).max(bpe)}).optional().describe("Optional caption layout box {x,y,w,h} in normalized output-frame coordinates. Overrides position; text starts at its top edge and wraps/pages within its width and height."),textTransform:l(["none","uppercase","capitalize"]).optional(),letterSpacing:s().min(ype).max(Spe).optional().describe("Base caption glyph spacing in pixels."),wordGapEm:s().min(vpe).max(Rpe).optional().describe("Gap between caption runs as a multiple of base font size; default 0.35."),lineGapEm:s().min(wpe).max(Ipe).optional().describe("Gap between caption lines as a multiple of base font size; default 0.25."),emphasisColor:n().optional(),emphasisGradient:n().optional(),emphasisScale:s().gt(Mpe).optional(),emphasisFontFamily:n().optional(),emphasisFontWeight:x().min(Ope).max($pe).optional(),emphasisTextTransform:l(["none","uppercase","capitalize"]).optional(),emphasisLetterSpacing:s().optional(),emphasisFontStyle:l(["normal","italic"]).optional(),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),entranceMs:s().min(kpe).optional(),entranceStaggerMs:s().min(Tpe).optional(),exitMs:s().min(Cpe).optional(),emphasisPlate:w().optional(),emphasisPlateColor:n().optional(),emphasisPlateTextColor:n().optional(),emphasisPlateAltColor:n().optional(),emphasisPlateAltTextColor:n().optional(),emphasisPlateRadius:s().min(Dpe).optional(),emphasisPlatePadX:s().optional(),emphasisPlatePadY:s().optional(),emphasisPlateReveal:w().optional().describe("Grow a shared emphasis plate as saved words appear while reserving its final layout width."),annotationColor:n().optional(),annotationStrokeWidth:s().min(_pe).max(Epe).optional().describe("Annotation stroke width in its 100\xD7100 SVG coordinate system; default 4."),annotationTexture:l(["clean","pencil"]).optional().describe("Native annotation stroke finish; default clean."),maxWidthPercent:s().gt(jpe).max(Ppe).optional()})}).describe("Merge style overrides (font/color/position/emphasis) onto the composition's caption layer. Partial \u2014 omitted fields keep their current value; creates the caption container if absent."),c({type:u("setCaptionLayouts"),layouts:h(c({segmentIndex:x().min(Lpe).max(Vpe),wordStartIndex:x().min(Fpe).max(Ape),wordEndIndex:x().gt(Upe).max(Npe).describe("Exclusive word index in the saved caption segment."),region:c({x:s().min(qpe).max(Bpe),y:s().min(Wpe).max(Zpe),w:s().gt(Gpe).max(Jpe),h:s().gt(Kpe).max(Hpe)}),scale:s().min(Xpe).max(Ype).optional(),rotation:s().min(Qpe).max(eue).optional(),style:c({fontFamily:n().min(1).optional(),fontSize:s().min(1).max(tue).optional().describe("Font size as % of composition height (1-15, default 5). NOT px."),fontWeight:x().min(oue).max(nue).optional(),color:n().min(1).optional(),highlightColor:n().min(1).optional(),backgroundColor:n().optional(),plate:l(["glass","solid","none"]).optional(),textTransform:l(["none","uppercase","capitalize"]).optional(),letterSpacing:s().min(rue).max(iue).optional().describe("Base caption glyph spacing in pixels."),wordGapEm:s().min(aue).max(sue).optional().describe("Gap between caption runs as a multiple of base font size; default 0.35."),lineGapEm:s().min(cue).max(due).optional().describe("Gap between caption lines as a multiple of base font size; default 0.25."),emphasisColor:n().optional(),emphasisScale:s().gt(pue).optional(),emphasisFontFamily:n().optional(),emphasisFontWeight:x().min(uue).max(lue).optional(),emphasisTextTransform:l(["none","uppercase","capitalize"]).optional(),emphasisLetterSpacing:s().optional(),emphasisFontStyle:l(["normal","italic"]).optional(),emphasisPlate:w().optional(),emphasisPlateColor:n().optional(),emphasisPlateTextColor:n().optional(),emphasisPlateAltColor:n().optional(),emphasisPlateAltTextColor:n().optional(),emphasisPlateRadius:s().min(mue).optional(),emphasisPlatePadX:s().optional(),emphasisPlatePadY:s().optional(),emphasisPlateReveal:w().optional().describe("Grow a shared emphasis plate as saved words appear while reserving its final layout width."),annotationColor:n().optional(),annotationStrokeWidth:s().min(fue).max(hue).optional().describe("Annotation stroke width in its 100\xD7100 SVG coordinate system; default 4."),annotationTexture:l(["clean","pencil"]).optional().describe("Native annotation stroke finish; default clean."),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),entranceMs:s().min(gue).optional(),entranceStaggerMs:s().min(xue).optional(),exitMs:s().min(zue).optional()}).optional(),holdThroughWordIndex:x().min(bue).max(yue).optional().describe("Inclusive saved-word index in this segment. The layout stays visible until that word ends."),wordMarks:h(c({wordIndex:x().min(Sue).max(vue),emphasis:w().optional(),annotate:z([l(["circle","underline"]),q()]).optional()})).optional()}))}).describe("Replace native caption placements without changing transcript words or timings. Each layout references a half-open word-index range in one saved segment; a one-word range is valid. region places that group independently, optional bounded scale/rotation/style changes its look, and holdThroughWordIndex keeps it visible through a later saved word in the same segment. All words in a placed range occupy one page; rendering refuses a range that cannot fit its box, so enlarge region or split the range. The box reserves horizontal space of 1.6 font sizes and vertical space of 0.8 font sizes for padding, with at most three lines. Unreferenced words keep the default caption layout. Word ranges must not overlap. Reapply after caption regeneration or timeline cuts."),c({type:u("setCaptionDepth"),zPlane:l(["front","behind-subject"])}).describe("Set the caption compositing plane. Use `behind-subject` to place captions behind the segmented foreground subject; use `front` for conventional captions above all video layers."),c({type:u("setCaptions"),segments:h(c({words:h(c({text:n().min(1),startMs:s().min(Rue).describe("Word start on the composition timeline, in milliseconds."),endMs:s().min(wue).describe("Word end on the composition timeline, in milliseconds."),emphasis:w().optional(),annotate:l(["circle","underline"]).optional()}))})),style:c({fontFamily:n().min(1).optional(),fontSize:s().min(1).max(Iue).optional().describe("Font size as % of composition height (1-15, default 5). NOT px."),fontWeight:x().min(Mue).max(Oue).optional(),color:n().min(1).optional(),highlightColor:n().min(1).optional(),backgroundColor:n().optional(),plate:l(["glass","solid","none"]).optional(),position:l(["top","center","bottom"]).optional(),region:c({x:s().min($ue).max(kue),y:s().min(Tue).max(Cue),w:s().gt(Due).max(_ue),h:s().gt(Eue).max(jue)}).optional().describe("Optional caption layout box {x,y,w,h} in normalized output-frame coordinates. Overrides position; text starts at its top edge and wraps/pages within its width and height."),textTransform:l(["none","uppercase","capitalize"]).optional(),letterSpacing:s().min(Pue).max(Lue).optional().describe("Base caption glyph spacing in pixels."),wordGapEm:s().min(Vue).max(Fue).optional().describe("Gap between caption runs as a multiple of base font size; default 0.35."),lineGapEm:s().min(Aue).max(Uue).optional().describe("Gap between caption lines as a multiple of base font size; default 0.25."),emphasisColor:n().optional(),emphasisGradient:n().optional(),emphasisScale:s().gt(Nue).optional(),emphasisFontFamily:n().optional(),emphasisFontWeight:x().min(que).max(Bue).optional(),emphasisTextTransform:l(["none","uppercase","capitalize"]).optional(),emphasisLetterSpacing:s().optional(),emphasisFontStyle:l(["normal","italic"]).optional(),entrance:l(["none","fade","word-pop","stagger-up"]).optional(),entranceMs:s().min(Wue).optional(),entranceStaggerMs:s().min(Zue).optional(),exitMs:s().min(Gue).optional(),emphasisPlate:w().optional(),emphasisPlateColor:n().optional(),emphasisPlateTextColor:n().optional(),emphasisPlateAltColor:n().optional(),emphasisPlateAltTextColor:n().optional(),emphasisPlateRadius:s().min(Jue).optional(),emphasisPlatePadX:s().optional(),emphasisPlatePadY:s().optional(),emphasisPlateReveal:w().optional().describe("Grow a shared emphasis plate as saved words appear while reserving its final layout width."),annotationColor:n().optional(),annotationStrokeWidth:s().min(Kue).max(Hue).optional().describe("Annotation stroke width in its 100\xD7100 SVG coordinate system; default 4."),annotationTexture:l(["clean","pencil"]).optional().describe("Native annotation stroke finish; default clean."),maxWidthPercent:s().gt(Xue).max(Yue).optional()}).optional()}).describe("Replace the caption SEGMENTS wholesale \u2014 author the word-timed caption layer directly (each segment = one sentence/page of `words` with timeline-ms `startMs`/`endMs`, optional `emphasis`). This is how a client with its OWN word timings (e.g. a generated VO take) gets word-synced captions without a source transcript; the compose lane's transcript slice writes the same layer. `style`, when given, merges with setCaptionStyle semantics; an omitted style keeps the existing one. Renderer paginates within a segment and never pools words across two \u2014 keep segments sentence-bounded."),c({type:u("captions.fromTranscript"),mediaId:n().min(1),window:c({startSec:s().min(Que),endSec:s().gt(ele)}).optional()}).describe("Attach caption CONTENT from the media's cached transcript \u2014 no pasting words. ROUTE-MATERIALIZED like applyMotionPreset/materializeGrid: the server slices the word-timed transcript to `window` (source seconds; absent = the whole media), rebases times, sentence-splits into segments, and applies it as `setCaptions`. 422 media_no_transcript when the media has no transcript or no words in the window. For your OWN word timings use setCaptions directly. For edited multi-clip timelines, use captions.fromComposition after saving the edits; that operation projects all selected track clips, trims, exclusions, and placements."),c({type:u("captions.fromComposition"),trackId:n().min(1)}).describe("Snapshot word-timed captions from the SAVED edits on one explicit enabled video or audio track. The host reads each source media transcript, projects words through clip trim, excluded ranges and placement, then replaces the caption segments. This is route-materialized to setCaptions; call it AFTER persisting clip edits and call it again when those edits change. The existing caption style and depth are preserved. Missing transcripts, unsupported clips, inconsistent clip durations, and overlapping audible clips fail loud. Playback rate scales source word times and playable duration on both audio and video tracks."),c({type:u("applyMotionPreset"),clipId:n(),preset:n(),params:c({enterMs:s().optional(),exitMs:s().optional(),staggerMs:s().optional()}).optional()}).describe("Shell a STATIC `card` clip with a frame-driven MOTION preset \u2014 the public card-shelling op (the layout renders VERBATIM; only the container animates in/out). The server wraps the card in the chosen `preset` (fade-up / slide-in-left / slide-in-right / scale-pop / stagger-reveal), transpiles it, mints it as a LIVE component, and swaps the clip source to that component (the bakeless live lane \u2014 no box). `params` tunes timing (`enterMs`/`exitMs`, `staggerMs` for stagger-reveal). The target must be a static card (components already carry motion; library overlays already move); re-run overwrites idempotently ONLY while the target is still a card (an uncompilable shell); once shelled, the clip is a COMPONENT \u2014 to change its motion, remove and re-add the card, then re-shell. Honored under `dry_run` (validates preset + target without transpiling or persisting). ORDERING: the preset resolves its target against the PERSISTED composition \u2014 a card added in the SAME batch is not yet visible to it. Persist the clip.add batch first, then shell in a following call."),c({type:u("materializeGrid"),clipId:n(),grid:l(["beat","word","shot"]),maxMarkers:x().gt(tle).max(ole).optional()}).describe('Materialize a clip\'s SOURCE-media temporal GRID as timeline markers \u2014 the rhythm authority you cut to. `grid:"beat"` reads a MUSIC bed\'s beat map (get_media_context.beatGrid), `grid:"word"` the VO word onsets (wordGrid); each grid point is projected from media time to TIMELINE time through the clip\'s placement (startTime, trim, playbackRate, excludedRanges) and written as a `kind:"beat"|"word"` marker (`metadata.sourceClipId` set). Points outside the clip\'s visible window are skipped. Re-running REPLACES the prior markers from the same clip+grid (idempotent). Land cuts and transition MIDPOINTS on the markers (a 0.5s transition starts 0.25s before its marker). `maxMarkers` (default 500, ceiling 2000) \u2014 exceeding it fails loud with the count. `grid:"shot"` is not yet exposed (shot_grid_unavailable). The target must be a media clip; absent evidence fails loud (grid_unavailable) naming how to get it (declare audioRole:"music" at ingest / transcribe).'),c({type:u("setFormat"),format:c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional()})}).describe("Set the output format \u2014 `aspectRatio` (16:9|9:16|1:1|4:5) plus optional `fps` and `resolution`. Merges: an omitted field keeps the current value."),c({type:u("addTrack"),kind:l(["video","audio","image","overlay","effect"]),name:n().optional(),id:n().optional()}).describe("Add an EMPTY track of a given family (video|audio|image|overlay|effect). Optional pinned `id`. The new track is appended, so it starts at the BACK: index 0 is the top layer and higher indices are further back (see `reorderTracks`). Track order only ranks clips on the same plane \u2014 every overlay draws above the video lane unless its `zPlane` is `behind-subject`, whatever its track index."),c({type:u("removeTrack"),trackId:n()}).describe("Remove a track AND all its clips by id."),c({type:u("updateTrack"),trackId:n(),updates:c({name:n().optional(),enabled:w().optional()})}).describe("Patch a track's `name` / `enabled` by id."),c({type:u("reorderTracks"),fromIndex:s(),toIndex:s()}).describe('Move a track from one index to another. ORDER: index 0 is the TOP layer, not the bottom \u2014 moving a backdrop to index 0 puts it in FRONT of everything and hides the composition. Higher index = further back. PRECEDENCE: track order decides compositing only among clips on the same plane. Overlays are composited in a lane ABOVE the video lane whatever their track index; the one exception is `zPlane:"behind-subject"`, which moves the overlay inside its host clip, behind the segmented foreground. So if reordering tracks does not change what you see, the plane split already decided it.'),c({type:u("moveClipToTrack"),clipId:n(),targetTrackId:n(),newStartTime:s().optional()}).describe("Move a clip to another SAME-family track, optionally at a new `newStartTime`."),c({type:u("duplicateClip"),clipId:n(),newClipId:n().optional()}).describe("Duplicate a clip by id. Pin `newClipId` to make the copy's id deterministic (required for a clean undo/inverse)."),c({type:u("cutAndRipple"),start:s(),end:s()}).describe("Server-authoritative: delete the [start,end] time window (seconds) and ripple every downstream clip/marker/caption earlier to close the gap."),c({type:u("ripple"),time:s(),amount:s()}).describe("Server-authoritative: shift everything at/after `time` (seconds) by `amount` seconds (+ opens a gap, \u2212 closes one)."),c({type:u("addExcludedRange"),clipId:n(),sourceStart:s(),sourceEnd:s(),reason:n().optional()}).describe("Server-authoritative: exclude a [sourceStart,sourceEnd] span (seconds) of a clip's SOURCE (an internal trim) and ripple downstream \u2014 the preferred way to drop a sub-range vs a source patch."),c({type:u("removeExcludedRange"),clipId:n(),rangeIdx:s()}).describe("Server-authoritative: remove a clip's previously-added excluded range by index (re-includes that span, ripples downstream)."),c({type:u("component.repin-v3"),componentId:n().min(1),from:n().regex(nle),to:n().regex(rle),expectedCompositionEtag:n().min(1),changes:h(c({placementId:n().min(1),before:c({version:u(3),componentId:n().min(1).max(ile),sourceVersionId:n().regex(ale),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(sle))).optional()}),after:c({version:u(3),componentId:n().min(1).max(cle),sourceVersionId:n().regex(dle),params:y(n(),ne),seed:n().min(1),assets:y(n(),n().min(1)).optional(),mediaBindings:y(n(),h(n().min(1).max(ple))).optional()})})).min(1).max(ule)}).describe("Atomically repin explicit version3 invocations using complete before/after execution references and an exact composition etag. Persistence must canonically admit scoped source hashes, destination input schemas and every resulting target context before applying, including replay/undo. Never infer a latest head, downgrade versions or accept an admitted flag.")]).describe("One scoped composition operation. Discriminated by `type` \u2014 `clip.add` / `clip.remove` / `clip.update` patch clips across any family; the rest cover markers, reframe, effects, captions, format, tracks, and the server-authoritative ripple recomputes. Every variant is `.strict()`: an unknown field is refused, not ignored.");var lle=1,mle=256,fle=256,hle=new RegExp("^[a-f0-9]{64}$"),gle=512,xle=new RegExp("^[a-f0-9]{64}$"),zle=c({ops:h(el).min(1),componentExecutionVersions:h(u(3)).min(1).max(lle).optional(),builtinSources:h(c({scope:c({kind:u("builtin"),collection:n().min(1).max(mle)}),componentId:n().min(1).max(fle),sourceVersionId:n().regex(hle),sourceVersion:u(3)})).min(1).max(gle).optional(),expectedBrandIdentity:n().regex(xle).optional(),concurrency:Fo.optional().describe("Version 1 shared dependency admission. Guarded requests must name the observed immutable composition with composition_id or concurrency.compositionId; changed or missing dependencies refuse the entire batch."),if_match:n().optional().describe('Optional OCC precondition \u2014 the strong etag (`"<hex>"`) the caller last saw. On mismatch the batch is rejected (409 stale_etag) before any op applies.'),dry_run:w().optional().describe("When true, validate the batch (apply + projection accept/reject guards) WITHOUT persisting. Returns `{ valid, errors }` instead of applying."),composition_id:n().optional().describe("Target a SPECIFIC composition instead of the project's active one. Omit it and the project's active composition is edited, which is the default and the common case. `preview_frame` and `create_render` already accept a compositionId; this closes the gap so a second composition minted with `new_composition` can actually be authored into \u2014 build variant A, mint B, edit B, preview both. Mutually exclusive with `session_id`, which targets the session's scratch."),session_id:n().optional().describe("Optional compose-session id. When present, the ops target the session's SCRATCH composition (a derived sibling) instead of the project's active composition \u2014 the server never mutates active until commit.")}).describe("POST /projects/:id/composition/apply body \u2014 a batch of CompositionOps.");var ble=200,yle=c({name:n().min(1).max(ble).optional(),format:he.optional()}).describe("POST /projects/:id/compositions body \u2014 create a new video (composition) in the project. `format` defaults to the project's compositionFormat when omitted.");var Sle=256,vle=65536,Jg=z([c({mode:u("guarded"),basis:h(c({key:n().min(1).max(Sle),token:n().max(vle)})),absentClipToken:u("null")}),c({mode:u("exact"),reason:n()})]);var Rle=c({suggestionId:n().min(1),format:c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional(),platform:n().optional()}).optional()});var wle=0,Ile=9007199254740991,Kg=c({compositionId:n(),format:he,etag:n(),isActive:w(),updatedAt:s(),sceneCount:x().min(wle).max(Ile)}).describe("A composition in a project, flagging the active one.");var Mle=c({data:h(Kg)}).describe("GET /projects/:id/compositions response.");var Ole=0,$le=9007199254740991,kle=new RegExp("^[a-f0-9]{64}$"),Tle=z([ut,c({composition:ut,composition_id:n(),revision:x().min(Ole).max($le),dependencies:Jg,expectedBrandIdentity:n().regex(kle).optional(),brandAuthorityError:n().optional()})]);var Cle=1,Dle=256,_le=256,Ele=new RegExp("^[a-f0-9]{64}$"),jle=512,Ple=new RegExp("^[a-f0-9]{64}$"),Lle=z([c({composition:ut,componentExecutionVersions:h(u(3)).min(1).max(Cle),builtinSources:h(c({scope:c({kind:u("builtin"),collection:n().min(1).max(Dle)}),componentId:n().min(1).max(_le),sourceVersionId:n().regex(Ele),sourceVersion:u(3)})).min(1).max(jle).optional(),expectedBrandIdentity:n().regex(Ple).optional()}),ut]);var Vle=2e3,Fle=c({intent:n().min(1).max(Vle).describe("Plain-English goal \u2014 what you're trying to achieve with this edit."),mode:l(["advise","amend","explore"]).optional().describe("advise = proposer-only (no render/judge, no grounded assessment); amend (default) = grade the current composition + author the fix for the weakest criterion; explore = ranked slate of diverse directions. All modes are async \u2014 poll the returned job."),focus:l(["editorial","spatial","brand","caption"]).optional().describe("Optional criterion to concentrate the advice on."),ifMatch:n().optional().describe("Etag of the composition the advice is computed against. Proposals are bound to it; apply a proposal BEFORE any other edit or it will 409.")}).describe("POST /projects/:id/consult body.");var Ale=c({consultJobId:n().describe("Opaque consult job id; poll it for the advisory result."),projectId:n(),status:l(["queued","failed"]).describe("queued = normal; failed = startup failed and the job is already terminal."),streamUrl:n().optional().describe("Relative SSE endpoint to stream this job's events.")}).describe("POST /projects/:id/consult response.");var Hg=c({faceId:n(),bbox:c({x:s(),y:s(),width:s(),height:s()}),speakingShare:s().optional()});var Xg=c({detectorVersion:n().describe("Version of the face detector that produced this source-window roster."),window:c({startSec:s(),endSec:s()}),faces:h(Hg)});var BOe=c({projectId:n(),mediaId:n()});var Ule=0,Nle=10,qle=6,Ble=c({criticId:n().min(1).describe("Stable client id; re-registering the same id UPSERTS."),label:n().min(1),tier:l(["rules","rubric","evaluator"]),floor:s().min(Ule).max(Nle).optional().describe("Score below this routes a refine like a built-in criterion. Defaults to 6."),rules:h(y(n(),$())).optional().describe('tier "rules": declarative ClientRule[] (data).'),rubric:n().optional().describe('tier "rubric": your criterion + description; scored as an extra column.'),referenceMediaIds:h(n()).max(qle).optional().describe('tier "rubric"/"evaluator": up to 6 org media ids whose thumbnails the judge sees as YOUR reference standard \u2014 "looks like mine" becomes a machine check. Each must be an org-owned media item with a visual thumbnail (422 names any that is not).'),url:oe().optional().describe('tier "evaluator": your HTTPS webhook; CueFrame POSTs the artifact.')}).describe("Register a custom compose critic.");var pa=c({criticId:n(),label:n(),tier:l(["rules","rubric","evaluator"]),floor:s(),referenceMediaIds:h(n()).optional()}).describe("One registered critic (rubric/rules/url stay write-only \u2014 never echoed).");var Wle=c({critics:h(pa)});var Zle=c({id:n(),criticId:n(),tier:l(["rules","rubric","evaluator"]),secret:n().optional().describe("evaluator tier: Standard-Webhooks signing secret, returned ONCE.")}).describe("POST /critics response (evaluator secret present exactly once).");var Gle=c({fromCompositionId:n().min(1).describe("Source composition to reframe a sibling from."),targetFormat:he.describe("The target output format (aspectRatio + optional fps/resolution) for the new sibling.")}).describe("Derive a reframed sibling composition for a new aspect (Auto-Reframe / Magic-Resize, agent-native).");var Jle=c({compositionId:n().describe("The new sibling composition's id.")}).describe("POST /projects/:id/compositions/derive response.");var e$e=c({error:c({code:n().describe("Stable machine-readable error code per \xA7Error Model."),message:n().describe("Human-readable message."),contract:n().describe("Contract version that produced this verdict. If it differs between two calls, the rules changed underneath you, not your request."),contractVersion:n().describe("Version of the published `@cueframe/api-contract` this server implements. Compare it with the `contractVersion` of the package your client was generated from: a higher value here means the server has moved ahead of your document."),details:y(n(),$()).optional().describe("Optional context (currentEtag, projectIds, retryAfter, \u2026).")}).describe("Standard API error envelope.")}).describe("Error envelope used by every non-2xx response.");var Ao=c({kind:l(["transcript","subjectTrack","matte"]),intent:c({kind:l(["whole","window"]),window:c({startSec:s(),endSec:s()}).optional().describe("The SOURCE window this fact covers, when it is scoped to a clip.")}),status:l(["pending","ready","failed"]),summary:c({presenceFraction:s().optional().describe("Matte only: fraction of frames carrying a detected subject (0\u20131). Below 0.6 there is no reliable silhouette \u2014 the matte is delivered but cannot carry a behind-subject graphic, and is NOT charged."),faceCount:s().optional(),language:n().optional(),wordCount:s().optional(),durationSec:s().optional()}).optional(),charge:c({usd:s()}).optional().describe("What this fact was BILLED, in USD. Absent when it cost nothing: a compose/render side effect (already paid for inside that operation) or an unusable matte."),error:c({code:n(),message:n()}).optional(),readyAt:s().optional()}).describe("One derived fact about a media item \u2014 computed once, charged at most once.");var Uo=c({kind:l(["transcript","subjectTrack","matte"]),quotedUsd:s().describe("The server's price for this enhancement, in USD. Meaningful ONLY when `available` is true \u2014 an unavailable offer quotes 0 because there is nothing to price yet."),available:w(),reason:n().optional().describe("Why this cannot be bought right now. Present iff `available` is false. e.g. `media_not_ready` (the source has no known duration yet).")}).describe("A purchasable enhancement that this media item does not have yet.");var Yg=z([c({kind:l(["subjectTrack","matte"]),scope:c({startSec:s(),endSec:s()}),state:l(["pending","ready","failed"]),fact:Ao}),c({kind:l(["subjectTrack","matte"]),scope:c({startSec:s(),endSec:s()}),state:l(["available","unavailable"]),offer:Uo})]).describe("The server-selected fact or offer for one exact source window. Present when kind, startSec, and endSec are supplied; clients consume this instead of recreating the fact hash.");var Kle=24,Hle=c({count:x().min(1).max(Kle),contentType:l(["image/jpeg","image/png"]).optional(),includeContactSheet:w().optional()}).describe("POST /brand-kits/exemplar-uploads body. Reserve presigned PUT slots for curated reference frames (\u2264720px recommended \u2014 they are vision input tokens downstream).");var Xle=c({batchId:n(),uploads:h(c({key:n(),url:n()})),contactSheetUpload:c({key:n(),url:n()}).optional(),expiresAt:n()});var Yle=c({clipSuggestionId:n().min(1)}).describe("POST /projects/:id/exports/{fcpxml,premiere} body.");var Qg=c({phase:l(["trim","build","upload","trigger"]),message:n(),detail:n().optional(),retryable:w()});var ex=l(["fcpxml","premiere"]);var tx=l(["queued","trimming","building","uploading","complete","error","cancelled"]);var Qle=0,eme=1,tme=c({id:n(),format:ex,status:tx,progress:s().min(Qle).max(eme).describe("Fractional progress 0..1 across the trim/build/upload pipeline. Reaches 1 only on `complete`."),outputUrl:n().nullable(),outputExpiresAt:n().nullable(),outputSizeBytes:s().nullable(),outputDurationSec:s().nullable(),error:z([Qg,q()]).describe("Set when status is `error`; null otherwise. The phase field localizes the failure to trim / build / upload / trigger."),trimCacheHit:w().nullable(),clipSuggestionId:n().nullable(),createdAt:n(),updatedAt:n()}).describe("NLE export job response.");var ome=c({url:oe()}).describe("POST /brand-kits/extract body \u2014 the website URL to extract brand tokens from.");var ox=c({colors:h(n()),fonts:h(n()),title:n().optional(),description:n().optional()}).describe("POST /brand-kits/extract response \u2014 extracted brand tokens (not persisted).");var nme=200,rme=0,ime=50,ame=c({query:n().min(1).max(nme),perPage:x().gt(rme).max(ime).optional()}).describe("POST /fonts/search body.");var sme=c({results:h(c({family:n(),category:n().optional(),variants:h(n()).optional(),cssUrl:n().optional(),previewText:n().optional()}))}).describe("POST /fonts/search response.");var cme=new RegExp("^[a-f0-9]{64}$"),S$e=c({builtinCollection:l(["native","curated-definitions"]).optional(),sourceVersionId:n().regex(cme).optional()});var R$e=c({composition:$()});var I$e=c({componentExecutionVersions:u("3").optional(),includeDependencies:l(["true","false"]).optional(),compositionId:n().optional()});var dme=0,pme=0,ume=20,lme=100,O$e=c({after:x().min(dme).optional(),before:x().min(pme).optional(),limit:x().min(1).max(lme).default(ume)});var k$e=Mt({});var mme=100,fme=-9007199254740991,hme=9007199254740991,gme=-9007199254740991,xme=9007199254740991,C$e=c({limit:x().min(1).max(mme).optional(),after:n().optional(),projectId:n().optional(),jobId:n().optional(),from:x().min(fme).max(hme).optional(),to:x().min(gme).max(xme).optional()});var _$e=c({deep:u("1").optional()});var zme=c({status:l(["ok","degraded"]),version:n(),checks:y(n(),c({ok:w(),detail:n().optional()})).optional()}).describe("Health probe response.");var nx=c({jobId:n().describe("Poll GET /v1/jobs/{jobId} / wait_job until terminal."),jobKey:n().describe("Deterministic identity of the work (content hash of every input the result depends on). Re-enqueueing the same key returns the same job while it runs; a failed key revives as a fresh attempt."),kind:n().describe("Job family, e.g. `verify` | `preview` | `brand_kit_extract`."),status:l(["running","succeeded","cancelled"]).describe("running on a fresh/deduped enqueue; succeeded when an identical request already completed. Cancelled is part of the shared status vocabulary; identical cancelled work revives to running.")});var bme=0,yme=9007199254740991,Sme=0,vme=9007199254740991,rx=c({geometry:c({scale:s(),compositionWidth:s().optional(),compositionHeight:s().optional(),width:s().optional(),height:s().optional()}),warnings:h(y(n(),$())).optional(),previewed:c({source:l(["inline","scratch","persisted"]),compositionId:n().optional(),etag:n().optional()}),listUsd:s().optional().describe("List price charged for this delivered capture."),artifacts:h(c({id:n(),beatSec:s(),bytes:x().gt(bme).max(yme),contentType:l(["image/png","image/jpeg"]),layers:c({video:n().nullable(),overlays:x().min(Sme).max(vme)}),url:oe(),urlExpiresAt:n()}))});var ix=c({perCriterion:$(),composite:s(),critique:n(),checkpointId:n(),beats:$().optional(),clientScores:h($()).optional(),listUsd:s().optional().describe("List price charged for this delivered evaluation.")});var Rme=c({id:n().describe("Job id \u2014 pass to GET /v1/jobs/{id} / wait_job."),jobKey:n().describe("Deterministic identity of the work (idempotency key, e.g. `verify-<sessionId>-<contentHash>` \u2014 the hash covers the composition AND grading inputs). Re-enqueueing the same key returns the same job while it runs."),kind:n().describe("Job family, e.g. `verify`."),status:l(["running","succeeded","failed","cancelled"]).describe("Poll until terminal (`succeeded` | `failed` | `cancelled`)."),progress:z([c({phase:n(),percent:s().optional(),message:n().optional()}),q()]).describe("Executor heartbeat while running; null when none reported."),result:z([z([rx,Ag,ix,ox]),q()]).describe("Kind-specific payload when status is `succeeded`; null otherwise."),error:z([c({code:n(),message:n()}),q()]).describe("Stable failure code + human message when status is `failed`; null otherwise. `job_timeout` = the executor died mid-run and the stall sweep reaped the job \u2014 re-enqueue to retry."),createdAt:n(),updatedAt:n(),completedAt:n().nullable()});var ax=c({mediaId:n().describe("The media item this moment belongs to \u2014 feed it to apply_composition as a clip source, or GET /v1/media/{id}/context for its faces/beat/word grids."),name:n().describe("The media item's name, so a result is readable without a second call."),score:s().describe("Cosine similarity between the query text and the chunk's frame, in [-1, 1]. Higher is closer. Compare scores WITHIN one response; absolute values are not calibrated across queries."),startSec:s().describe("Moment start, SECONDS from the media item's start."),endSec:s().describe("Moment end, SECONDS from the media item's start."),thumbUrl:n().nullable().describe("Presigned URL for the media item's thumbnail, or null when it has none. This is the ITEM's thumbnail, not a still of this moment \u2014 render a still of the exact range with preview_frame.")});var wme=c({results:h(ax).describe("Matching moments, best first. Empty means nothing matched (when `indexing` is false) \u2014 the library was searched and came back empty-handed."),indexing:w().describe('TRUE when some of the org\'s footage is NOT in the visual index yet \u2014 media that predates it, or is still processing. This is COVERAGE, not emptiness: it can be true ALONGSIDE results, and then it means "these are the best moments among what we have looked at so far", not "these are the best moments". An empty `results` with `indexing: true` means "not looked at yet", NOT "no match" \u2014 re-run the media through processing (reprocess) to index it, then search again. FALSE with empty `results` is a real miss: the library was searched and nothing matched.')}).describe(`Semantic search over the org's OWN footage. The query is embedded with the same CLIP model that embedded every indexed frame, so a description of what you want to SEE ("wide shot of the speaker at a whiteboard") finds the moment even when nobody says those words.`);var Ime=100,G$e=c({limit:x().min(1).max(Ime).optional(),after:n().optional()});var Mme=100,K$e=c({limit:x().min(1).max(Mme).optional(),after:n().optional(),projectId:n().optional(),kind:l(["authored","clip","all"]).optional()});var Ome=100,X$e=c({projection:l(["component-library"]).optional(),origin:l(["builtin","library"]).optional(),libraryKind:l(["definition","preset","recipe"]).optional(),category:l(["text","effects","transitions","layouts","backgrounds","ui-blocks","scenes"]).optional(),kind:l(["component","transition","scene"]).optional(),tier:l(["recommended","standard","niche"]).optional(),useCase:l(["intro","outro","full-scene","title-over-footage","transition","background","grade","emphasis","explainer","social-cut"]).optional(),mood:n().optional(),q:n().optional(),intent:n().optional(),limit:x().min(1).max(Ome).optional(),after:n().optional()});var $me=100,Q$e=c({limit:x().min(1).max($me).optional(),after:n().optional(),composeJobId:n().optional(),projectId:n().optional()});var tke=c({kind:l(["subjectTrack","matte"]).optional(),startSec:s().optional(),endSec:s().optional()});var kme=100,nke=c({limit:x().min(1).max(kme).optional(),after:n().optional(),kind:l(["video","audio","image","gif","asset","source","stock"]).optional(),source:l(["upload","generated","import-url","stock"]).optional(),tag:n().optional()});var Tme=100,ike=c({limit:x().min(1).max(Tme).optional(),after:n().optional(),platform:n().optional(),format:n().optional(),topic:n().optional()});var Cme=100,ske=c({limit:x().min(1).max(Cme).optional(),after:n().optional(),status:n().optional()});var Dme=100,dke=c({limit:x().min(1).max(Dme).optional(),after:n().optional()});var uke=c({groupId:n().min(1)});var _me=100,mke=c({limit:x().min(1).max(_me).optional(),after:n().optional()});var Eme=100,hke=c({limit:x().min(1).max(Eme).optional(),after:n().optional()});var jme=100,xke=c({limit:x().min(1).max(jme).optional(),after:n().optional()});var Pme=0,Lme=0,Vme=c({startSec:s().min(Pme).describe("Source-in of the window to matte, in seconds into the underlying source."),endSec:s().gt(Lme).describe("Source-out of the window to matte, in seconds into the underlying source.")}).describe("POST /media/:id/matte body. The window is REQUIRED and is the clip's SOURCE trim, not timeline time: a matte's cost scales with its duration, so there is no whole-source default to fall back on.");var Fme=c({factId:n(),status:l(["pending","ready","failed"]),quotedUsd:s().describe("The server's price for this matte, in USD, quoted from the window duration."),alreadyExisted:w().describe("True when a matte for this exact window was already pending or ready. Nothing was dispatched and nothing will be charged.")}).describe("POST /media/:id/matte response \u2014 the claimed matte fact.");var tl=c({mediaItemId:n(),language:n().nullable(),fullText:n(),utterances:h(y(n(),$())),data:h(y(n(),$())).optional(),pagination:ue.optional()}).describe("Transcript response.");var Ame=c({mediaId:n(),durationSec:s().nullable(),width:s().nullable(),height:s().nullable(),thumbnail:z([c({url:n()}),q()]).describe("Presigned processing thumbnail (~1 week) \u2014 the footage at a glance. For stills at chosen timestamps, use preview_frame with a one-clip composition over this media."),faces:c({status:l(["ready","not_detected"]),windows:h(Xg)}),transcript:c({status:l(["ready","not_transcribed","unavailable"]),data:z([tl,q()])}),beatGrid:z([c({bpm:s(),beatTimesMs:h(s()).describe("Beat onset times in MILLISECONDS \u2014 divide by 1000 for timeline startTime (composition timeline fields are seconds)."),confidence:s().describe("Rhythmic-periodicity strength (0\u20131). Trust the grid for cutting when high; a beatless bed reports low."),method:l(["requested-anchored","detected"]).describe("`requested-anchored` = phase-locked to a requested BPM (a generated bed whose prompt named a tempo); `detected` = full beat tracking (import/upload).")}),q()]).describe("The MUSIC-role rhythm grid (audio-substrate MVP). Present only for a music bed that carries a computed beat grid; null otherwise. For a music-driven film, cut on these beats (transition midpoints on beats, risers resolving on downbeats)."),wordGrid:z([c({wordTimesMs:h(s()).describe("Word onset times in MILLISECONDS, in order \u2014 divide by 1000 for timeline startTime (composition timeline fields are seconds).")}),q()]).describe("The VO-role rhythm grid: word onsets surfaced from the transcript (pure exposure). Present only when a transcript exists; null otherwise. For a VO-driven (narration) film, cut every beat boundary to the voice \u2014 the film-spine rule."),audioRole:z([l(["vo","music","sfx","ambience"]),q()]).describe("DECLARED audio role of this asset (audio-substrate P0): 'vo' (narration), 'music' (bed that ducks under speech), 'sfx' (one-shot hit), 'ambience' (a bed that HOLDS under VO \u2014 never ducks). Author the clip source's `audioRole` from this. Null for footage/images or an undeclared audio asset."),envelope:z([c({envelopeClass:l(["transient","sweep","ambient"]).describe("Coarse temporal shape: 'transient' (a sharp one-shot), 'sweep' (a bounded rise/fall over ~0.5\u20132s), 'ambient' (an unbounded bed)."),attackMs:s().optional(),spectralCentroidHz:s().optional(),meanVolumeDb:s().optional(),maxVolumeDb:s().optional()}),q()]).describe("Envelope evidence (audio-substrate P0). `envelopeClass` is always present when an envelope exists (the SFX pack carries it); the numeric probe stats are present only when an audio probe has run. Null when no envelope is stored."),facts:h(Ao).describe("Derived facts about this source (subject tracks, mattes): what has been computed, its status, and what it was billed. Same shape as GET /media/{id}/facts."),offers:h(Uo).describe("Enhancements this source does not have yet, with a server quote. Same shape as GET /media/{id}/facts. Mattes are quoted per-window via POST /media/{id}/matte, never here.")}).describe("Read-only authoring context for a source media item: detected face roster + transcript + the temporal grids (beat / word) an agent cuts to, the DECLARED audioRole + envelope of an audio asset, and the paid-enhancement block (facts already computed + offers for what is missing).");var Ume=c({id:n(),uploadUrl:oe(),expiresAt:n()}).describe("POST /media response: reserved media id + a presigned PUT URL. PUT the raw bytes to uploadUrl (\u2264 ~5 GiB), then POST /media/:id/finalize.");var Nme=0,qme=0,Bme=c({kind:l(["subjectTrack","matte"]).describe("Which enhancement to buy. `transcript` is NOT purchasable here \u2014 it is delivered by the transcription pipeline."),intent:c({startSec:s().min(Nme),endSec:s().gt(qme)}).optional().describe("The SOURCE window. REQUIRED for `matte` (its cost scales with duration). OPTIONAL for `subjectTrack`: give a clip's source window to buy the track the render looks up for THAT clip, and pay only for its duration; omit it to detect the whole source.")}).describe("POST /media/:id/facts body.");var Wme=c({factId:n(),status:l(["pending","ready","failed"]),quotedUsd:s(),alreadyExisted:w().describe("True when this exact fact was already pending or ready. Nothing was dispatched and nothing will be charged.")}).describe("POST /media/:id/facts response.");var Zme=c({facts:h(Ao),offers:h(Uo).describe("What is NOT yet present and could be bought. A `matte` offer appears ONLY when the request carried `startSec`+`endSec` (the clip's SOURCE window) \u2014 a matte's price is a function of its duration, so there is no honest whole-source matte quote. `transcript` is never offered: it is produced by the ingest pipeline, not bought here."),exact:Yg.optional()}).describe("Facts and offers for a media item, plus an exact-window resolution when requested.");var Gme=c({audioRole:l(["vo","music","sfx","ambience"]).optional().describe("Declared audio role: 'vo' (narration), 'music' (bed that ducks under speech), 'sfx' (one-shot hit), 'ambience' (a bed that HOLDS under VO \u2014 never ducks).")}).describe("POST /media/:id/finalize body \u2014 optional declared audioRole.");var Jme=c({id:n(),status:l(["processing","complete"]),processingPhase:n()}).describe("POST /media/:id/finalize response: ingest triggered (audio/video \u2192 processing) or the item is immediately ready (image/asset \u2192 complete).");var Kme=1e4,Hme=c({generator:l(["text-to-video","text-to-image","image-to-video","text-to-music","text-to-speech","text-to-sfx","auto"]),prompt:n().min(1).max(Kme),style:y(n(),$()).optional().describe("Free-form generation parameters, read per generator. All generators honor `aspect` (string) + `durationSec` (number) where applicable. text-to-speech honors `voice` (string; default voice when omitted), `speed` (number 0.7-1.2), `stability` (number 0-1), and `styleExaggeration` (number 0-1 \u2192 the endpoint's style exaggeration). Provider and model selection are server-owned and cannot be overridden."),refs:c({firstFrameMediaId:n().optional(),lastFrameMediaId:n().optional(),imageMediaIds:h(n()).optional()}).optional()}).describe("POST /media/generate body.");var Xme=c({id:n(),status:u("generating"),estimateUsd:s().optional()}).describe("POST /media/generate response.");var Yme=2048,Qme=500,efe=0,tfe=10737418240,ofe=c({url:oe().max(Yme),filename:n().min(1).max(Qme),contentType:l(["video/mp4","video/quicktime","video/x-matroska","video/webm","audio/mpeg","audio/wav","audio/x-wav","audio/mp4","audio/aac","image/png","image/jpeg","image/webp","image/gif","image/svg+xml","application/json","font/ttf","font/otf","font/woff","font/woff2"]),size:x().gt(efe).max(tfe).optional(),audioRole:l(["vo","music","sfx","ambience"]).optional().describe("Declared audio role: 'vo' (narration), 'music' (bed that ducks under speech), 'sfx' (one-shot hit), 'ambience' (a bed that HOLDS under VO \u2014 never ducks).")}).describe("POST /media/import body.");var nfe=c({id:n(),status:u("importing")}).describe("POST /media/import response.");var sx=c({phase:l(["idle","pending_import","pending_upload","uploading","extracting","loading_model","transcribing","proxy","embedding","analyzing","indexing","generating","rendering","processing","complete","error","cancelled"]),percent:s().nullish(),message:n().nullish(),error:n().nullish()}).describe("Processing status stored on mediaItems rows.");var ol=c({id:n(),status:n(),source:l(["upload","generated","stock"]),name:n(),mimeType:n(),fileSize:s(),duration:s().nullable(),width:s().nullable(),height:s().nullable(),frameRate:s().nullable(),progress:z([c({phase:n(),percent:s().nullable()}),q()]),analysis:z([y(n(),$()),q()]),listUsd:s().optional().describe("A2 money stamp \u2014 GENERATED media only: the generate meter's LIST price (USD) at the success terminal. A plan allowance may zero the invoice line. Absent for uploads/imports, failures, x402 (on-chain receipts)."),thumbnailUrl:n().nullable().describe("Presigned GET URL for the item's thumbnail (an uploaded image is its own thumbnail), valid ~7 days \u2014 fetch it directly, no auth header. null when no thumbnail exists yet (still processing, stock imports, audio)."),kind:n().nullable(),tags:z([h(n()),q()]),attribution:z([c({provider:l(["pexels","pixabay","freesound","klipy"]),externalId:n().nullable(),assetUrl:n().nullable(),license:n().nullable()}),q()]),processingStatus:z([sx,q()]),createdAt:n(),updatedAt:n()}).describe("Media item response per \xA7Media.");var rfe=c({data:h(ol),pagination:ue});var ife=500,afe=0,sfe=10737418240,cfe=c({filename:n().min(1).max(ife),contentType:l(["video/mp4","video/quicktime","video/x-matroska","video/webm","audio/mpeg","audio/wav","audio/x-wav","audio/mp4","audio/aac","image/png","image/jpeg","image/webp","image/gif","image/svg+xml","application/json","font/ttf","font/otf","font/woff","font/woff2"]),size:x().gt(afe).max(sfe),projectId:n().min(1).optional()}).describe("POST /media upload initiation body.");var dfe=c({jobId:n(),status:n(),muxedItems:z([y(n(),n()),q()]).optional(),error:n().nullish(),startedAt:n().nullish(),completedAt:n().nullish()}).describe("Mux job response.");var Kke=c({sessionId:n()});var pfe=0,ufe=0,lfe=c({fromSec:s().min(pfe).describe("Window start, seconds into the composition."),toSec:s().gt(ufe).describe("Window end (exclusive), seconds."),compositionId:n().min(1).optional().describe("Target a specific composition; defaults to the project's active composition.")}).describe("POST /projects/:id/preview-clip body.");var mfe=18,ffe=.1,hfe=1,gfe=100,xfe=c({composition:$().optional().describe("The composition to render. Absent \u21D2 the project's ACTIVE composition \u2014 what create_render will encode. The response's `previewed.source` names what was rendered."),compositionId:n().optional().describe("Preview a SPECIFIC persisted composition of this project (create_render parity). Absent \u21D2 the active one. A stale/foreign id is a 404 \u2014 never a silent fall-through."),session_id:n().optional().describe("Compose-session id: render that session's SCRATCH composition (what the session has been editing) instead of the active row. Ignored when `composition` is passed."),timestamps:h(s()).min(1).max(mfe).describe("Composition seconds to capture, 18 per request. The batch renders as ONE unit of work \u2014 one warm container, one source decode, N seeks \u2014 and that unit has a fixed time budget, so a larger batch is refused here rather than accepted and timed out minutes later. For a denser sweep, split it across calls; identical beats are served from the still cache, so overlapping batches are cheap."),imageFormat:l(["png","jpeg"]).optional().describe("Still format. Default jpeg \u2014 these pixels go to a vision model, where jpeg is equivalent and png costs multiples in bytes to store and move. Pass png only when you need full fidelity."),scale:s().min(ffe).max(hfe).optional().describe("Render scale 0.1\u20131. Default 0.5, which is what this schema has always recommended for vision-bound looks. Pass 1 when judging fine detail \u2014 it costs ~4x the vision tokens."),jpegQuality:x().min(1).max(gfe).optional().describe("JPEG quality (jpeg only). Default 70 \u2014 the quality the eval panel grades at.")});var zfe=300,bfe=0,yfe=1e4,Sfe=120,vfe=c({brandKits:h(c({id:n(),name:n(),audio:c({sfxIntensity:l(["off","light","standard","dense"]).optional(),musicEnabled:w().optional(),musicMood:n().max(zfe).optional(),sonicLogo:c({ref:n().min(1),placement:l(["intro","outro","both"]),offsetMs:x().min(bfe).max(yfe).optional()}).optional().describe("A brand sound signature bound to the intro/outro bookend. `ref` = a palette reference; bound only when the kit carries the matching bumper (intro/outro), else a non-blocking advisory."),uiSoundSet:c({tick:n().min(1).optional(),pop:n().min(1).optional(),impact:n().min(1).optional(),confirm:n().min(1).optional(),error:n().min(1).optional(),whoosh:n().min(1).optional(),riser:n().min(1).optional()}).optional().describe("Per-family SFX overrides (the brand's own tick/pop/\u2026). Highest-priority tier over the org palette + pack default in the compose SFX draw."),bedStyle:c({bedId:n().min(1).optional(),genre:n().max(Sfe).optional(),bpmRange:c({min:s(),max:s()}).optional()}).optional().describe("Preferred music bed (`bedId`) or a style hint (`genre` / `bpmRange`). Surfaced for driving agents; compose does not auto-select a pack bed."),ambiencePreference:z([c({ref:n().min(1)}),q()]).optional().describe("Preferred ambience bed (`{ref}`) or explicit null (opt-out). Surfaced for driving agents; compose has no ambience auto-placement.")}).optional()})).describe("The org's brand kits (bind one to a project via update_project). `audio` carries the brand sound kit when set."),critics:h(pa).describe("Registered critics \u2014 run in the Director's gates AND score_composition."),references:h(c({mediaId:n(),name:n().optional(),thumbnailUrl:n().optional().describe("Presigned reference thumbnail (~1 week).")})).describe("The union of critic reference media \u2014 the org's visual standard, with provenance."),recentDecisions:h(c({checkpointId:n(),projectId:n(),kind:l(["gate","score"]),stage:l(["content","layout","motion"]).optional(),decision:n(),decidedAt:s()})).describe("The last recorded checkpoint decisions \u2014 the raw taste log phase 2 will distill.")}).describe("The org's legible taste: brand + critics + references + decision log.");var Rfe=0,wfe=9007199254740991,cx=c({hasComposition:w(),sceneCount:x().min(Rfe).max(wfe),duration:s().nullable(),updatedAt:n().nullable()}).describe("Summary of a project's stored composition.");var dx=c({id:n(),name:n(),kind:n().nullable(),durationSec:s().nullable().describe("Seconds. Uses the media duration when known; audio without one falls back to its transcript's measured duration (same rule as get_media_context)."),hasTranscript:w().describe("A cached transcript EXISTS for this item. The bodies are never inlined here \u2014 fetch one with GET /v1/media/{id}/transcript (or get_media_context for faces + grids too).")}).describe("One media item as the project context lists it: identity + duration + whether a transcript exists.");var px=z([c({status:u("ready"),mediaId:n(),words:h(c({text:n(),start:s().describe("Word onset (SECONDS from source start)."),end:s().describe("Word end (SECONDS from source start).")}))}),c({status:u("unavailable"),mediaId:n()})]);var Ife=0,Mfe=0,Ofe=c({composition:z([ut,q()]).describe("The project's ACTIVE composition wire shape \u2014 identical to GET /v1/projects/{id}/composition. NULL when the project has no composition yet (a freshly created project): mint one with new_composition, or let the first apply_composition create it."),format:z([c({aspectRatio:l(["16:9","9:16","1:1","4:5"]),fps:z([u(24),u(25),u(30),u(60)]).optional(),resolution:l(["hd","fhd","4k"]).optional(),platform:n().optional()}),q()]).describe("The composition's format, hoisted \u2014 the pixel frame every card/graphic must be authored against. Null whenever `composition` is null."),media:h(dx).describe("The org's media library (most recent first, capped) \u2014 the pool this project can draw clips from."),transcript:z([px,q()]).describe('The FIRST transcribed media item\'s word-timed transcript, flattened \u2014 the spine a VO-driven film cuts to. `status:"ready"` carries the words; `status:"unavailable"` means the transcript exists but its body could not be fetched (retry); null means nothing in `media` is transcribed. For any OTHER transcribed item (see each entry\'s `hasTranscript`), read GET /v1/media/{id}/transcript.'),brandKit:z([Bn,q()]).describe("The kit BOUND to this project (`projects.brandKitId` is the brand SSOT \u2014 bind one via update_project). Null when the project has no kit bound; enumerate the org's kits with GET /v1/brand-kits."),markers:h(c({id:n().min(1),startTime:s().min(Ife),endTime:s().min(Mfe).optional(),kind:n().min(1),name:n().optional(),metadata:y(n(),$()).optional()})).describe("The composition's markers \u2014 hoisted alongside `format`. Empty when the composition carries none AND when there is no composition yet.")}).describe("One-call agent context for a project: composition + format + media pool + the lead transcript + the bound brand kit + markers. Replaces get_composition + get_media_context + get_profile at the start of an authoring session. A 404 means the project doesn't exist for your org \u2014 never that it is empty.");var $fe=200,kfe=0,Tfe=0,Cfe=c({name:n().min(1).max($fe),description:n().optional(),format:he.optional(),brandKitId:n().min(1).optional(),width:s().gt(kfe).optional(),height:s().gt(Tfe).optional()}).describe("POST /projects body.");var ux=z([c({id:n(),status:n(),createdAt:n(),outputUrl:n().nullable(),outputExpiresAt:n().nullable()}),q()]).describe("Most recent render for a project, if any.");var nl=c({id:n(),name:n(),description:n().nullable(),format:z([he,q()]),brandKitId:n().nullable(),activeCompositionId:n().nullable(),composition:cx,lastRender:ux,webUrl:n().nullable().describe("A browser URL that opens THIS project, or null when CueFrame exposes no web view for a project. Null today: the console serves account surfaces (keys, usage, billing) and has no per-project page, so there is no link to give. Do NOT synthesise one \u2014 a guessed console path 404s. Show the user rendered output (create_render \u2192 outputUrl) or a preview still instead. This field becoming non-null is the signal that a real project view exists."),createdAt:n()}).describe("Project response per \xA7Projects.");var Dfe=c({data:h(nl),pagination:ue});var _fe=200,Efe=c({name:n().min(1).max(_fe).optional(),description:n().optional(),format:he.optional(),brandKitId:n().min(1).optional()}).describe("PATCH /projects/:id body.");var jfe=c({clipSuggestionId:n().min(1).optional(),compositionId:n().min(1).optional().describe("Target a specific composition in the project; defaults to the project's active composition."),format:he.optional(),priority:l(["interactive","standard","background"]).optional(),intent:l(["preview","final"]).optional(),brandKitId:z([n().min(1),q()]).optional()}).describe("POST /projects/:id/renders body.");var Pfe=c({manifestVersion:n().describe("Identifies this exact face table. Derived from the table's own content, so it moves when and only when the admitted set moves. Record it beside a composition to state which face table a font choice was validated against."),families:h(c({family:n().describe("The family name authoring accepts VERBATIM \u2014 card, caption and scene text alike."),weights:h(c({min:s(),max:s()})).describe("The weights a shipped file declares. A static face has min === max; a variable face gives its declared wght axis range. Any weight inside a range renders; anything outside every range is REFUSED, never synthesised."),styles:h(l(["normal","italic"])).describe("The styles bytes exist for in this family. Request italic only when this list includes 'italic'; the renderer refuses synthetic slant."),captionDefaults:c({base:s(),emphasis:s()}).describe("The weights a caption is drawn at when the style names none."),origin:l(["bundled","aliased"]).describe("'bundled' = bytes ship in the render bundle. 'aliased' = a metric-compatible binary stands in for the named family.")}))}).describe("GET /fonts response \u2014 the renderer's admitted font set. Derived from the same table the font gate refuses by, so any family/weight/style here passes validation by construction. Covers the BUNDLED set only: a brand kit's sealed faces are per-org and per-render.");var Lfe=0,Vfe=9007199254740991,Ffe=0,Afe=9007199254740991,lx=c({phase:l(["queued","validating","presigning","collecting-artifacts","resolving","detecting","baking-matte","translating","spawning","encoding","uploading"]),percent:s(),scenesCompleted:x().min(Lfe).max(Vfe).optional(),scenesTotal:x().min(Ffe).max(Afe).optional()}).describe("Non-terminal render progress; phase is one of the worker's emitted stages.");var rl=c({id:n(),status:l(["queued","pending","rendering","complete","error","cancelled"]),progress:lx.optional(),outputUrl:n().nullable(),outputExpiresAt:n().nullable(),error:n().nullable().describe("Human-readable failure message. Pair with `errorCode` for a stable, machine-readable code an agent runner can branch on."),errorCode:n().nullable().describe("Stable, machine-readable error code (e.g. `render_pipeline_unavailable`, `render_route_missing`, `render_pipeline_failed`). Null when status is not `error` or unavailable for an older render."),errorDetails:z([y(n(),$()),q()]).describe("Structured failure context \u2014 `{ targetUrl?, upstreamStatus?, upstreamCode?, attemptedAt? }`. Surfaced so agent runners can distinguish operator-config issues from upstream-down vs route-missing without parsing `error`."),category:z([l(["authoring","transient","internal"]),q()]).describe("Failure taxonomy when status is `error`; null otherwise. `authoring` = deterministic defect in YOUR composition/request \u2014 fix it, retrying is futile; `transient` = temporary pipeline/infra failure \u2014 safe to retry_render; `internal` = unexpected server fault \u2014 retry once then escalate. Mirrors the render.failed webhook's `category`."),retryable:w().nullable().describe("Whether re-attempting the SAME render can succeed (status `error`); null otherwise. true \u2192 call retry_render. false \u2192 deterministic (category authoring/internal); fix the composition first \u2014 retry_render alone reproduces it. Mirrors the render.failed webhook's `retryable`."),createdAt:n(),updatedAt:n().describe("ISO-8601 timestamp of the render's most recent progress update. Compute staleness = now \u2212 updatedAt to distinguish a wedged render from a slow one and decide whether to wait, cancel, or retry."),listUsd:s().optional().describe("A2 money stamp: the metered event's LIST price (USD), stamped at the success terminal (exports for deliverable renders, compose_capture for A8 previews). A plan allowance may zero the actual invoice line \u2014 this is the list price, never a Stripe charge. Absent while running, on failure, and for x402 orgs (on-chain receipts). Mirrors the get_usage ledger."),warnings:h(n()).optional().describe("Non-fatal advisories surfaced at render-CREATE (omitted when none, and on GET \u2014 create-time only).")}).describe("Render job response per \xA7Renders.");var Ufe=c({data:h(rl),pagination:ue});var Nfe=c({outputUrl:n(),outputExpiresAt:n()}).describe("POST /refresh-url response.");var qfe=new RegExp("^[a-f0-9]{64}$"),CTe=c({collection:n().min(1),id:n().min(1),revision:n().regex(qfe)});var ua=c({candidateId:n(),provider:l(["pexels","pixabay","freesound","klipy"]),kind:l(["video","photo","sfx","gif"]),thumbnail:n(),previewUrl:n(),downloadUrl:n().optional(),duration:s().optional(),width:s().optional(),height:s().optional(),author:n(),authorUrl:n().optional(),assetUrl:n().optional(),license:n().optional()}).describe("A stock resource search candidate.");var Bfe=c({kind:l(["sfx-pack","music-pack"]).optional(),id:n().min(1).optional(),projectId:n().min(1).optional(),candidateId:n().min(1).optional()}).describe('POST /resources/import body \u2014 stock candidate lane { projectId, candidateId } OR curated pack lane { kind:"sfx-pack"|"music-pack", id }.');var Wfe=c({id:n(),status:l(["importing","ready"])}).describe("POST /resources/import response.");var Zfe=200,Gfe=200,Jfe=10,Kfe=0,Hfe=50,Xfe=0,Yfe=9007199254740991,Qfe=0,ehe=9007199254740991,the=0,ohe=0,nhe=c({query:n().min(1).max(Zfe).optional(),queries:h(n().min(1).max(Gfe)).min(1).max(Jfe).optional(),kind:l(["video","photo","sfx","gif"]).optional(),provider:l(["pexels","pixabay","freesound","klipy"]).optional(),limit:x().gt(Kfe).max(Hfe).optional(),minWidth:x().gt(Xfe).max(Yfe).optional().describe("Video-only minimum selected-rendition width in pixels; smaller results are excluded."),minHeight:x().gt(Qfe).max(ehe).optional().describe("Video-only minimum selected-rendition height in pixels; smaller results are excluded."),durationSec:c({min:s().min(the).optional(),max:s().gt(ohe).optional()}).optional().describe("sfx-only clip-length bound in seconds \u2192 Freesound native filter.")}).describe("POST /resources/search body \u2014 one `query`, or a batch of `queries[]`.");var mx=c({query:n(),provider:l(["pexels","pixabay","freesound","klipy"]).optional(),kind:l(["video","photo","sfx","gif"]).optional(),candidates:h(ua),error:n().optional()}).describe("One query's candidates within a batch search.");var rhe=c({provider:l(["pexels","pixabay","freesound","klipy"]).optional(),kind:l(["video","photo","sfx","gif"]).optional(),candidates:h(ua).optional(),results:h(mx).optional()}).describe("POST /resources/search response \u2014 `candidates` for one query, `results[]` for a batch.");var ihe=-9007199254740991,ahe=9007199254740991,she=c({ok:u(!0),stage:l(["content","layout","motion"]).optional(),version:x().min(ihe).max(ahe).optional(),composeJobId:n().optional()}).describe("Decision recorded; the run resumes (the SAME rail as POST /checkpoints/{id}/resume).");var che=-9007199254740991,dhe=9007199254740991,phe=-9007199254740991,uhe=9007199254740991,lhe=-9007199254740991,mhe=9007199254740991,fhe=c({id:n(),projectId:n(),composeJobId:n().optional(),briefId:n().optional(),kind:l(["gate","score"]),stage:sa.optional(),version:x().min(che).max(dhe),status:l(["awaiting","approved","revised","abandoned","expired","superseded"]),artifact:$().describe("The stage artifact under review: the locked ComposePlan at content; the composition wire shape at layout/motion; the judged composition snapshot on kind:'score'."),stillUrls:h(n()).optional().describe("Presigned storyboard/eval stills \u2014 the packet's visual evidence (may be GC'd by the retention sweep after the job goes terminal; the decision record is immortal)."),criticVerdicts:$().optional().describe("Per-criterion scores + critique from the design loop / judge, incl. lock_violation entries."),quote:aa.optional(),revisionCycle:x().min(phe).max(uhe).describe("Revise cycles this gate has consumed. The brief quote states the included count (revisionCyclesIncluded); beyond it, resume(revise) is refused with a typed error."),decision:$().optional().describe("The recorded decision {decision, comments?, globalNote?, decidedAt} once resolved."),reviewMode:l(["agent","hosted"]).optional().describe("How this packet is decided (from the Brief's gates). 'hosted' = the review PAGE captures the decision; absent/'agent' = the decision flows back through the driving agent."),createdAt:s(),updatedAt:s(),versionStack:h(c({id:n(),version:x().min(lhe).max(mhe),stage:l(["content","layout","motion"]).optional(),status:n(),decision:n().optional(),createdAt:s()})).describe("The run's v1\u2192vN gate history \u2014 per-version status + decision summaries.")});var hhe=c({composition:$().optional().describe("The composition to judge. Absent \u21D2 the project's ACTIVE composition."),compositionId:n().optional().describe("Judge a SPECIFIC persisted composition of this project (create_render parity). Absent \u21D2 the active one. A stale/foreign id is a 404 \u2014 never a silent fall-through."),session_id:n().optional().describe("Compose-session id: judge that session's SCRATCH composition (what the session has been editing) instead of the active row. Ignored when `composition` is passed."),editorialIntent:n().optional(),brandContext:n().optional()});var ghe=10,xhe=25,GTe=c({q:n().min(1),limit:x().min(1).max(xhe).default(ghe)});var fx=c({startSec:s(),endSec:s(),candidateId:n().describe("The chosen audio source (the clearest mic) for this span \u2192 programAudioSourceId."),reasons:h(n())});var hx=c({startSec:s(),endSec:s(),candidateId:n(),sourceInSec:s().describe("Chosen source window start (declared-offset resolved)."),sourceOutSec:s(),reasons:h(n())});var gx=c({candidateId:n().describe("Stable angle/source id. An unknown id is rejected, never remapped."),role:n().nullish().describe('Agent-declared semantic tag (e.g. "wide", "webcam").'),score:s().describe("The weighted prominence score (\u03A3 weights\xB7signal)."),contributions:y(n(),s()).describe("signalKey \u2192 weighted contribution (the agent reweights from this)."),reasons:h(n())});var xx=c({startSec:s().describe("Span start (output seconds)."),endSec:s().describe("Span end (output seconds)."),chosen:n().describe('The recommended candidateId, or "__hold__" (abstain).'),pacingNote:n().nullish().describe("Which mechanism produced the pick (argmax / hysteresis / override / hold \u2026)."),candidates:h(gx)});var zhe=c({projectId:n(),groupId:n(),selectorVersion:n(),signalVersions:y(n(),n()),moments:h(xx),recommendation:c({cutSchedule:h(hx),audioBed:h(fx).describe("Best-audio bed (instance #3): the clearest mic per span."),suppressedSwitches:h(c({atSec:s(),wouldHaveBeenCandidateId:n(),byScore:s(),blockedBy:n(),releaseAtSec:s().nullable()})).describe("Switches the stabilizer suppressed (the anti-ping-pong audit).")}),divergesFromComposition:w().optional()}).describe("Selector (switch) candidates + recommendation for a synced-angle group. Every candidate carries score + contributions + reasons so the agent reweights from evidence; the recommendation is the lowered cut schedule + best-audio bed.");var bhe=0,yhe=0,She=0,vhe=0,Rhe=0,whe=c({groupId:n().min(1),weights:y(n(),s()).optional().describe("Sparse prominence weights (the taste knob, non-negative). Default = DOMINANCE_WEIGHTS."),minHoldSec:s().gt(bhe).optional(),enterSec:s().min(yhe).optional(),switchMargin:s().min(She).optional(),cooldownSec:s().min(vhe).optional(),maxHoldSec:s().gt(Rhe).optional(),lockSourceId:n().optional().describe("Pin a camera/angle for the whole timeline."),overrides:h(c({startSec:s(),endSec:s(),candidateId:n()})).optional()});var Ihe=200,Mhe=50,Ohe=20,$he=c({name:n().min(1).max(Ihe),files:h(c({mediaId:n().min(1),role:n().min(1).max(Mhe)})).min(1).max(Ohe)}).describe("POST /sessions body.");var zx=c({mediaId:n(),role:n(),status:n().nullable()}).describe("One file member of a session, with optional role + status.");var khe=0,The=9007199254740991,bx=c({id:n(),name:n(),fileCount:x().min(khe).max(The),muxStatus:n().nullable(),createdAt:n()}).describe("Session list summary (per list endpoint).");var Che=c({data:h(bx),pagination:ue});var Dhe=c({id:n(),name:n(),files:h(zx),mux:c({status:n().nullable(),jobId:n().nullable(),muxedItems:z([y(n(),n()),q()]),error:n().nullable(),startedAt:n().nullable(),completedAt:n().nullable()}),createdAt:n()}).describe("Session response per \xA7Sessions.");var yx=c({name:n(),title:n(),description:n()}).describe("A CueFrame agent skill (metadata).");var _he=c({skills:h(yx)}).describe("GET /skills response \u2014 the available agent skills.");var Ehe=c({factId:n().describe("Opaque identifier for the derived fact."),status:l(["pending","ready","failed"]).describe("State of the fact right now. `ready` with `alreadyExisted` means the detection was already computed and is available immediately."),quotedUsd:s().describe("The server's price for this detection, in USD, quoted from the source duration. Zero is charged when `alreadyExisted` is true."),alreadyExisted:w().describe("True when this exact detection was already pending or ready. Nothing was dispatched and nothing will be charged \u2014 the same fact is served twice for one price.")}).describe("POST /media/:id/detect-subjects response \u2014 the claimed perception fact.");var jhe=0,Phe=9007199254740991,Sx=c({id:n(),briefId:n().nullable(),rank:x().gt(jhe).max(Phe),trim:c({start:s(),end:s()}),score:s(),title:n(),reason:n(),topic:n(),hook:n(),platforms:h(n()),format:n(),caption:n(),hashtags:h(n()),textOverlays:h(n()),editingNotes:n(),motionStyle:c({textAnimation:n(),transitions:n(),colorMood:n(),captionStyle:n()}),visualTreatment:h(c({time:z([s(),n()]),visual:n()})),brollSuggestions:h(c({moment:n(),searchTerms:h(n()),rationale:n()})),thumbnailConcept:n()}).describe("Single ranked clip suggestion.");var Lhe=c({status:l(["idle","generating","completed","failed"]),createdAt:n().nullable(),analyzedAt:n().nullable(),jobId:n().nullable(),topics:h(n()),suggestions:h(Sx),pagination:ue}).describe("GET /media/:id/suggestions envelope.");var Vhe=c({status:l(["queued","running","complete","failed"]),alreadyRunning:w().optional()}).describe("POST /media/:id/suggestions response.");var Fhe=-9007199254740991,Ahe=9007199254740991,vCe=c({templateId:n(),version:x().min(Fhe).max(Ahe),pendingMediaIds:h(n())});var Uhe=new RegExp("^https:\\/\\/.*"),No=z([c({mediaId:n().min(1)}),c({url:Qi("starts_with",Uhe),mimeType:n().min(1).optional()}),c({sample:u(!0)})]);var Nhe=new RegExp("^[a-f0-9]{64}$"),qhe=0,Bhe=0,Whe=9007199254740991,Zhe=128,Ghe=1,Jhe=new RegExp("^[a-f0-9]{64}$"),Khe={},Hhe={},Xhe=c({documentSha256:n().regex(Nhe).optional(),insert:c({startTime:s().min(qhe),idPrefix:n().min(1)}).optional(),expectedRevision:x().min(Bhe).max(Whe).optional(),commandId:n().min(1).max(Zhe).optional(),componentExecutionVersions:h(u(3)).min(1).max(Ghe).optional(),expectedBrandIdentity:n().regex(Jhe).optional(),projectId:n().min(1),values:y(n(),$()).default(Khe),media:y(n(),No).default(Hhe),preset:n().min(1).optional(),brandKitId:n().min(1).optional()});var Yhe=-9007199254740991,Qhe=9007199254740991,ege=c({projectId:n(),compositionId:n(),versionId:n(),etag:n(),templateId:n(),version:x().min(Yhe).max(Qhe),components:h(c({documentKey:n(),componentId:n(),sourceVersionId:n(),created:w()}))});var la=y(n(),$()).describe("A CueFrame template document (kernel TemplateDocument): v: 1, slug, name, composition with {{name}} references, parameters, components by value, an optional brandKit, presets, rubric, gallery and provenance.");var vx=z([c({mediaId:n().min(1)}),c({sample:u(!0)})]).describe("A media value a dry run can resolve without importing anything: `{ mediaId }` (one of this org's media rows) or `{ sample: true }` (the parameter's pinned sample).");var tge=200,oge={},nge={},rge=c({projectName:n().min(1).max(tge),values:y(n(),$()).default(oge),media:y(n(),No).default(nge),preset:n().min(1).optional(),brandKitId:n().min(1).optional()});var ige=c({jobId:n(),projectId:n().nullable(),status:l(["preparing","ready","failed","cancelled"]),stage:l(["resolving","downloading","verifying","importing","processing","attaching","applying","preflighting","ready"]),templateRef:n(),documentSha256:n().nullable(),errorCode:n().optional(),errorMessage:n().optional(),createdAt:n(),updatedAt:n()});var age=-9007199254740991,sge=9007199254740991,cge=new RegExp("^[a-f0-9]{64}$"),Rx=c({id:n(),slug:n(),name:n(),version:x().min(age).max(sge),documentSha256:n().regex(cge),fromCatalog:w(),createdAt:n(),updatedAt:n()});var dge=c({data:h(Rx),pagination:ue});var wx=c({code:n().describe("The problem's code: template_parse, template_parameter_undeclared, template_reference_misplaced, template_media_site, template_matte_stale, template_sample_missing, template_media_required, template_preset_unknown, template_values_invalid, template_media_kind_mismatch or payload_too_large."),param:n().optional().describe("The parameter the problem names, when it names one."),message:n()});var Ix=c({document:la,dryRun:w().optional().describe("When true, store nothing: answer 200 with the kernel's verdict on the document as `TemplateValidateResponse`. Without `values`, `media` or `preset` the document itself is checked (every preset binds against the parameters' samples and placeholder values for required parameters that have no default). With any of them, only the caller's inputs are bound, `{ mediaId }` values against this org's real media rows."),values:y(n(),$()).optional().describe("Dry run only (400 without `dryRun: true`): parameter values to bind, by parameter name."),media:y(n(),vx).optional().describe("Dry run only (400 without `dryRun: true`): media values to bind, by media parameter name."),preset:n().min(1).optional().describe("Dry run only (400 without `dryRun: true`): the preset whose values the bind starts from.")});var pge=80,uge=new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$"),Mx=c({slug:n().max(pge).regex(uge)});var lge=z([Ix,Mx]);var mge={},fge={},hge=0,gge=c({values:y(n(),$()).default(mge),media:y(n(),No).default(fge),preset:n().min(1).optional(),brandKitId:n().min(1).optional(),posterAt:s().min(hge).optional().describe("Seconds into the render for the poster still; default 1.")});var xge=-9007199254740991,zge=9007199254740991,bge=c({id:n(),status:l(["preparing","rendering","complete","failed","cancelled","revoked"]),templateId:n(),version:x().min(xge).max(zge),preset:n().optional(),brandKitId:n().optional(),shareUrl:n().nullable(),posterUrl:n().nullable(),renderId:n().nullable(),errorCode:n().optional(),errorMessage:n().optional(),expiresAt:n().optional(),createdAt:n(),updatedAt:n()});var yge=-9007199254740991,Sge=9007199254740991,vge=new RegExp("^[a-f0-9]{64}$"),Rge=c({id:n(),slug:n(),name:n(),version:x().min(yge).max(Sge),documentSha256:n().regex(vge),fromCatalog:w(),document:la,createdAt:n(),updatedAt:n()});var wge=c({ok:w().describe("True when the kernel found no problem."),slug:n().nullable().describe("The document's slug, or null when the document did not carry one."),problems:h(wx).describe("Every problem found, in the order the kernel's checks run; empty when `ok`.")});var Ige=1e3,Mge=0,Oge=0,$ge=256,kge=256,Tge=0,Cge=0,Dge=256,_ge=12e3,Ege=c({words:h(c({text:n().min(1).max(Ige),timelineStart:s().min(Mge),timelineEnd:s().min(Oge),clipId:n().min(1).max($ge),poolItemId:n().min(1).max(kge),sourceStart:s().min(Tge),sourceEnd:s().min(Cge),speakerId:z([n().max(Dge),q()])})).min(1).max(_ge)}).describe("A bounded merged timeline transcript for CueFrame edit analysis. The server selects the model; clients cannot provide a provider, API key, or model override.");var jge=0,Pge=9007199254740991,Lge=0,Vge=9007199254740991,Fge=0,Age=9007199254740991,Uge=c({fillers:h(x().min(jge).max(Pge)),silenceGaps:h(x().min(Lge).max(Vge)),emphasis:h(x().min(Fge).max(Age))}).describe("CueFrame-model analysis of timeline word indices. Every returned index refers to the request's words array.");var Nge=64,qge=new RegExp("^[a-z][a-z0-9_]*$"),Bge=0,Wge=1,Zge=500,Gge=10,Jge=c({scores:h(c({name:n().min(1).max(Nge).regex(qge),value:s().min(Bge).max(Wge),comment:n().max(Zge).optional()})).min(1).max(Gge)}).describe("POST /traces/:traceId/scores body.");var Kge=-9007199254740991,Hge=9007199254740991,Xge=c({accepted:x().min(Kge).max(Hge)}).describe("POST /traces/:traceId/scores response.");var Yge=0,Qge=0,exe=c({task:l(["summary","chapters","highlights"]).describe("What to ask of the transcript. `summary` \u2014 prose: the argument plus the concrete takeaways as bullets. `chapters` \u2014 one line per subject change, `[h:mm:ss] Title \u2014 description`. `highlights` \u2014 up to 8 standalone moments, strongest first, one line each as `[h:mm:ss]-[h:mm:ss] Title \u2014 why it lands` plus the line that carries it. Every timestamp is ABSOLUTE seconds from the start of the media, including when you pass a `window`, and every one is verified against the transcript before you see it \u2014 but they are LINE-START markers about 15s apart, so treat a span as APPROXIMATE (up to 15s early) and refine it against the word timings from GET /v1/media/{id}/context before you cut."),window:c({startSec:s().min(Yge).describe("Window start, SECONDS from the start of the media."),endSec:s().min(Qge).describe("Window end, SECONDS from the start of the media.")}).optional().describe("Analyse only this slice of the transcript. Omit to analyse all of it. Words are windowed exactly as captions.fromTranscript windows them (a word straddling an edge is clamped, a word wholly outside is dropped). Use this when a long recording is rejected with `transcript_too_long`, and to chapter a single segment of a podcast without paying for the whole thing.")}).describe("One editorial question about a media item's transcript.");var txe=c({task:l(["summary","chapters","highlights"]).describe("Echo of the requested task \u2014 so a batched caller can pair answers to asks."),result:n().describe("The answer, as text. `summary` is prose; `chapters` and `highlights` are one record per LINE in the shape documented on the request's `task` field \u2014 split on newlines to parse them. Timestamps are absolute seconds from the start of the media and every one is CHECKED against the transcript before the response is returned (a fabricated timestamp fails the call rather than shipping), but they are line-start markers about 15s apart \u2014 a boundary can sit up to 15s BEFORE the moment you want. Use them to locate, not to cut: refine against the word timings in GET /v1/media/{id}/context.")}).describe("The analysis of one media item's transcript. Metered: this is a real LLM call, billed on measured token spend, so it is not a read to poll.");var rDe=c({detector:l(["face","person"]).optional()});var oxe=c({projectId:n().optional().describe("Optional project to scope the token to; omitted = org library.")});var nxe=-9007199254740991,rxe=9007199254740991,ixe=c({token:n(),expiresAt:x().min(nxe).max(rxe).describe("Expiry, ms since epoch (~30 min TTL).")}).describe("POST /uploads/token response: a short-lived token for the signed upload lane (the upload-signing worker's `uppy-auth-token` header). The org is derived from the session server-side and stamped into the token.");var Ox=c({featureId:n().describe("The metered plan feature (exports, compose, compose_verify, \u2026)."),value:s().optional().describe("Metered amount, in the feature's own unit (exports = render-minutes, storage = GB). Absent for a discrete single use, AND deliberately absent on the cost-plus lines (compose, generate, ai_tokens, compose_verify) whose internal metered unit is not a quantity \u2014 read `listUsd` for what those events cost you."),projectId:n().optional(),jobId:n().optional().describe("The job that produced the meter: a render/compose/preview job id, a media id (transcription, generate), or a clip-suggestion run id (jobKind `suggestions` \u2014 see `mediaItemId` for the media it analyzed)."),jobKind:n().optional().describe("render | compose | consult_* | verify | preview | generate | suggestions | session_uptime | \u2026"),mediaItemId:n().optional().describe("The media item the job ran over, when it ran over one (suggestions, transcription). Resolve it with GET /v1/media/{id}."),listUsd:s().optional().describe("LIST price of this metered event, USD. Honest naming: the invoice may zero it inside a plan allowance \u2014 this is the event's list price, not a Stripe line item."),createdAt:s().describe("Epoch-ms when the meter landed.")});var axe=c({data:h(Ox),pagination:ue});var lDe=c({contract:n().describe("The contract this verdict was computed against (the kernel version the deployment runs). If it differs between two calls, the validator changed, not your composition."),valid:w(),errors:h(c({code:n(),stage:n(),category:n(),retryable:w(),message:n(),fix:y(n(),$()).optional()})),advisories:h(c({rule:n(),criterion:n(),clipId:n().optional(),detail:n(),fix:n()})).describe("Deterministic, render-free QUALITY floors (the SAME named defects the Director's in-loop verify and score_composition surface: static-hold, caption-spine, sfx-density, sfx-speech-collision, bed-coverage, audio-role). NON-blocking \u2014 they never flip `valid` (an editorially-weak composition still renders); fix them for quality, not to save. Empty when the composition is clean or the wire shape failed (they need a parsed composition)."),warnings:h(n()).optional().describe("Non-blocking render-fidelity warnings detected before enqueue, including unavailable font families."),quote:c({thisStepUsd:s(),jobSpendSoFarUsd:s(),estimatedJourneyTotalUsd:s()}).describe("The A2 money triple for the commodity lane: validate is free; estimatedJourneyTotalUsd is the render price to finish from a valid composition \u2014 relay it BEFORE create_render.")});var nt=l(["media.transcribed","media.completed","suggest.completed","session.mux.complete","session.mux.failed","render.completed","compose.completed","checkpoint.ready","project.updated","composition.updated","webhook.test"]);var sxe=0,cxe=6e4,dxe=c({url:oe().min(1),events:h(nt).min(1),settleMs:x().min(sxe).max(cxe).optional()}).describe("POST /webhooks body.");var pxe=0,uxe=9007199254740991,lxe=c({id:n(),url:oe(),events:h(nt),settleMs:x().min(pxe).max(uxe),enabled:w(),status:l(["active","pending"]).describe("active = ownership verified + receiving events; pending = challenge not echoed, inactive."),secret:n().describe("Standard Webhooks signing secret, format `whsec_<base64>`. Returned ONCE at create; rotate = delete + recreate. Every delivery carries `webhook-id`, `webhook-timestamp` (unix seconds), and `webhook-signature: v1,<base64>` (HMAC-SHA256 over `{id}.{timestamp}.{rawBody}`). Verify with any Standard-Webhooks library (`standardwebhooks` / `svix`): `new Webhook(secret).verify(rawBody, headers)`."),verification:c({status:u("pending"),reason:n()}).optional().describe('Present ONLY when ownership verification did not complete (status:"pending"). CueFrame POSTs a signed `webhook.verify` challenge whose `data.token` your endpoint must echo in a 2xx to activate; `reason` is one of token_not_echoed | non_2xx_<code> | unreachable | ssrf_blocked. A pending webhook receives no events \u2014 fix the receiver and POST /webhooks/:id/verify (no delete/recreate needed). See GET /webhooks/events for the full contract.')}).describe("POST /webhooks response (secret present exactly once).");var mxe=c({delivery:y(n(),$()).describe("The shared HTTP envelope + headers + retry semantics."),signing:y(n(),$()).describe("Standard Webhooks signing: secret format, signed content, how to verify."),ownershipVerification:y(n(),$()).describe("The synchronous echo-the-token activation handshake + recovery."),events:h(c({event:nt,when:n(),data:y(n(),n())})).describe("Every subscribable event with its exact delivery `data` fields."),sample:y(n(),$()).describe("A fully-worked example delivery (headers + body).")}).describe("The webhook delivery/signing/verification contract, as data. Read this before building a receiver.");var fxe=0,hxe=9007199254740991,gxe=0,xxe=9007199254740991,il=c({id:n(),url:oe(),events:h(nt),settleMs:x().min(fxe).max(hxe),enabled:w(),verificationStatus:l(["pending","verified"]).describe("pending = callback URL has not echoed the ownership challenge (receives no events); verified = ownership proven."),createdAt:n(),lastDeliveredAt:n().nullable(),lastFailedAt:n().nullable(),consecutiveFailures:x().min(gxe).max(xxe)}).describe("Webhook endpoint record (secret omitted after create).");var zxe=c({data:h(il),pagination:ue});var bxe=0,yxe=6e4,Sxe=c({url:oe().min(1).optional(),events:h(nt).min(1).optional(),settleMs:x().min(bxe).max(yxe).optional(),enabled:w().optional()}).describe("PATCH /webhooks/:id body.");var vxe=c({deliveryId:n(),status:u("queued")}).describe("POST /webhooks/:id/test response.");var Rxe=c({id:n(),status:l(["active","pending"]).describe("active = ownership verified + receiving events; pending = challenge not echoed."),verification:c({status:u("pending"),reason:n()}).optional().describe("Present only when the re-challenge did not verify; `reason` names why (see WebhookCreateResponse.verification).")}).describe("POST /webhooks/:id/verify response.");var wxe=c({orgId:n(),permissions:y(n(),h(n())),keyId:n(),keyName:n()}).describe("Whoami response.");var Ixe=2048,Mxe=c({videoUrl:oe().max(Ixe),format:he.optional()});var _De=c({x402Version:u(2),accepts:h(Mt({})).describe("Accepted payment requirements. Read `accepts[0]` for scheme (`exact` for a fixed price, `upto` for a measured one), network (CAIP-2), asset, amount and payTo."),error:n().optional().describe("Human-readable reason.")}).describe("x402 v2 PaymentRequired challenge \u2014 the body of a 402 on a priced operation.");var Oxe=100,$xe=-9007199254740991,kxe=9007199254740991,Txe=-9007199254740991,Cxe=9007199254740991,Dxe=T({limit:x().min(1).max(Oxe).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only."),projectId:n().optional().describe("Only events attributed to this project."),jobId:n().optional().describe('Only events produced by this job \u2014 how to answer "did my failed render post a charge?" for one run.'),from:x().min($xe).max(kxe).optional().describe("Period start, epoch milliseconds, INCLUSIVE."),to:x().min(Txe).max(Cxe).optional().describe("Period end, epoch milliseconds, EXCLUSIVE.")});var _xe=100,Exe=T({limit:x().min(1).max(_xe).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only.")});var jxe=T({id:n()});var Pxe=T({id:n()});var Lxe=100,Vxe=T({limit:x().min(1).max(Lxe).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only."),projectId:n().optional().describe("Scope to one project. Omit for every brief in the org."),kind:l(["authored","clip","all"]).optional().describe("Which briefs to list. `authored` (default) = human-authored only; `clip` = the machine-minted clip briefs from suggest_briefs; `all` = both.")});var Fxe=T({id:n()});var Axe=T({id:n()});var Uxe=T({id:n()}),Nxe=Re();var qxe=T({id:n()});var Bxe=T({id:n()});var Wxe=100,Zxe=T({limit:x().min(1).max(Wxe).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only."),composeJobId:n().optional().describe("Scope to ONE compose run \u2014 its v1\u2192vN gate history with per-version status and decisions."),projectId:n().optional().describe("Scope to everything reviewable in one project.")});var Gxe=T({id:n()});var Jxe=T({id:n()});var Kxe=T({id:n()});var Hxe=$(),Xxe=T({id:n()}),Yxe=100,Qxe=T({limit:x().min(1).max(Yxe).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only."),platform:n().optional().describe("Only suggestions cut for this delivery platform."),format:n().optional().describe("Only suggestions in this output format."),topic:n().optional().describe("Only suggestions matching this topic label.")});var eze=T({id:n()});var tze=T({id:n()}),oze=$();var nze=new RegExp("^[a-f0-9]{64}$"),rze=T({collection:n().min(1),id:n().min(1),revision:n().regex(nze)});var ize=100,aze=T({projection:l(["component-library"]).optional(),origin:l(["builtin","library"]).optional().describe("With component-library projection, builtin selects immutable builtin cards; library selects the authenticated org's exact serving datastore."),libraryKind:l(["definition","preset","recipe"]).optional(),category:l(["text","effects","transitions","layouts","backgrounds","ui-blocks","scenes"]).optional().describe("Filter to one category bucket (text|effects|transitions|layouts|backgrounds|ui-blocks|scenes)."),kind:l(["component","transition","scene"]).optional().describe("Filter by render kind (component|transition|scene)."),tier:l(["recommended","standard","niche"]).optional().describe("Filter by curation tier (recommended|standard|niche)."),useCase:l(["intro","outro","full-scene","title-over-footage","transition","background","grade","emphasis","explainer","social-cut"]).optional().describe("Filter to entries whose useCase includes this edit role (e.g. intro, title-over-footage, grade)."),mood:n().optional().describe("Filter to entries whose mood tags include this value (e.g. cinematic, minimal)."),q:n().optional().describe("Free-text match across id/name/description/intent/useWhen/tags/mood. Recommend-orders results."),intent:n().optional().describe("Alias of `q` framed as recommend-by-intent (e.g. intent=intro). Recommend-orders results."),limit:x().min(1).max(ize).optional().describe("Page size (1..100). Omit to return the whole filtered catalog in one page."),after:n().optional().describe("Opaque cursor from a previous page's nextCursor (forward-only).")});var al=jg;var sze=T({id:n()});var cze=T({id:n()});var dze=T({id:n()});var pze=T({id:n()}),uze=new RegExp("^[a-f0-9]{64}$"),lze=T({builtinCollection:l(["native","curated-definitions"]).optional(),sourceVersionId:n().regex(uze).optional()});var mze=T({id:n()});var fze=T({id:n(),composeJobId:n()}),hze=$(),gze=T({id:n(),composeJobId:n()});var xze=T({id:n(),composeJobId:n()});var zze=T({id:n()});var bze=T({id:n(),composeJobId:n()});var yze=T({id:n()});var Sze=T({sessionId:n()}),vze=T({id:n(),sessionId:n()}),Rze=T({composition:$()}),wze=T({id:n(),sessionId:n()}),Ize=T({ok:w()}),Mze=T({id:n(),sessionId:n()}),Oze=T({etag:n()});var $ze=T({id:n()}),kze=T({componentExecutionVersions:u("3").optional().describe("Explicit accepted saved component execution protocol. Absent readers accept only the historical protocol."),includeDependencies:l(["true","false"]).optional().describe("Return the immutable composition identity, project revision and shared v1 dependency expectations alongside the composition."),compositionId:n().optional().describe("Read a SPECIFIC composition instead of the project's active one. Omit it and the active composition is returned. Pairs with `composition_id` on the apply op: an edit you can make to a second composition is one you can read back.")});var Tze=T({id:n()});var Cze=$(),Dze=T({id:n()});var _ze=Re(),Eze=T({id:n()});var jze=T({id:n()});var Pze=$(),Lze=T({id:n()});var Vze=$(),Fze=T({id:n()});var Aze=T({contract:n().describe("The contract this verdict was computed against (the kernel version the deployment runs). If it differs between two calls, the validator changed, not your composition."),valid:w(),errors:h(T({code:n(),stage:n(),category:n(),retryable:w(),message:n(),fix:y(n(),$()).optional()})),advisories:h(T({rule:n(),criterion:n(),clipId:n().optional(),detail:n(),fix:n()})).describe("Deterministic, render-free QUALITY floors (the SAME named defects the Director's in-loop verify and score_composition surface: static-hold, caption-spine, sfx-density, sfx-speech-collision, bed-coverage, audio-role). NON-blocking \u2014 they never flip `valid` (an editorially-weak composition still renders); fix them for quality, not to save. Empty when the composition is clean or the wire shape failed (they need a parsed composition)."),warnings:h(n()).optional().describe("Non-blocking render-fidelity warnings detected before enqueue, including unavailable font families."),quote:T({thisStepUsd:s(),jobSpendSoFarUsd:s(),estimatedJourneyTotalUsd:s()}).describe("The A2 money triple for the commodity lane: validate is free; estimatedJourneyTotalUsd is the render price to finish from a valid composition \u2014 relay it BEFORE create_render.")}),Uze=T({id:n(),compositionId:n()}),Nze=Re();var qze=T({id:n()});var Bze=T({criticId:n()}),Wze=Re();var Zze=T({id:n()});var Gze=T({id:n()});var Jze=T({id:n()});var Kze=T({id:n()});var Hze=T({id:n()});var Xze=T({id:n(),exportId:n()});var Yze=T({id:n(),exportId:n()});var Qze=T({deep:u("1").optional().describe("Pass `1` to run the deep dependency checks instead of the shallow liveness probe.")});var ebe=Mt({});var tbe=T({jobId:n()});var obe=T({jobId:n()});var nbe=10,rbe=25,ibe=T({q:n().min(1).describe("What the moment should look like, in plain language. Describe the IMAGE, not the words spoken."),limit:x().min(1).max(rbe).default(nbe).describe("Maximum moments to return. Default 10, maximum 25.")});var abe=100,sbe=T({limit:x().min(1).max(abe).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only."),kind:l(["video","audio","image","gif","asset","source","stock"]).optional().describe("Filter to one media kind."),source:l(["upload","generated","import-url","stock"]).optional().describe("Filter by how the item entered the library."),tag:n().optional().describe("Filter to items carrying this EXACT tag (not a prefix or substring match).")});var cbe=T({id:n()});var dbe=T({id:n()}),pbe=Re(),ube=T({id:n()});var lbe=T({id:n()}),mbe=0,fbe=0,hbe=20,gbe=100,xbe=T({after:x().min(mbe).optional().describe("Zero-based utterance cursor returned as pagination.nextCursor."),before:x().min(fbe).optional().describe("Zero-based utterance cursor for a backward page. Do not combine with after."),limit:x().min(1).max(gbe).default(hbe).describe("Utterances per page.")});var zbe=T({id:n()});var bbe=T({id:n()}),ybe=T({detector:l(["face","person"]).optional().describe("Which detector to run. Defaults to `face`; an unknown value is refused, never defaulted.")});var Sbe=T({id:n()});var vbe=T({id:n()}),Rbe=T({kind:l(["subjectTrack","matte"]).optional().describe("Resolve one exact editor prerequisite. Requires startSec and endSec; the response includes the server-selected `exact` result."),startSec:s().optional().describe("Source-in of the clip's trim, in seconds. Must be sent WITH endSec \u2014 one without the other is a 400, never a silent whole-source default."),endSec:s().optional().describe("Source-out of the clip's trim, in seconds. Must be sent WITH startSec.")});var wbe=T({id:n()});var Ibe=T({id:n()});var Mbe=100,Obe=T({limit:x().min(1).max(Mbe).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only.")});var $be=T({id:n()});var kbe=T({id:n()});var Tbe=T({id:n()}),Cbe=Re(),Dbe=T({id:n()});var _be=T({id:n()});var Ebe=T({id:n()}),jbe=100,Pbe=T({limit:x().min(1).max(jbe).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only."),status:n().optional().describe("Comma-separated render statuses to include (e.g. `error,cancelled`). Omit for every status.")});var Lbe=T({id:n()});var Vbe=T({id:n(),renderId:n()});var Fbe=T({id:n(),renderId:n()});var Abe=T({id:n(),renderId:n()});var Ube=T({id:n(),renderId:n()});var Nbe=T({id:n(),renderId:n()}),qbe=$();var Bbe=T({id:n()}),Wbe=T({groupId:n().min(1).describe("The synced-angle group to score.")});var Zbe=T({id:n()});var Gbe=100,Jbe=T({limit:x().min(1).max(Gbe).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only.")});var Kbe=T({id:n()});var Hbe=T({id:n()}),Xbe=Re(),Ybe=T({id:n()});var Qbe=T({id:n()});var eye=T({name:n()}),tye=$();var oye=100,nye=T({limit:x().min(1).max(oye).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only.")});var rye=T({id:n()});var iye=T({id:n()}),aye=Re(),sye=T({id:n()});var cye=T({jobId:n()});var dye=T({jobId:n()});var pye=T({jobId:n()});var uye=T({id:n()});var lye=T({id:n()});var mye=T({id:n(),renderId:n()});var fye=T({id:n(),renderId:n()});var hye=T({id:n(),renderId:n()});var gye=T({traceId:n()});var xye=100,zye=T({limit:x().min(1).max(xye).optional().describe("Page size (1..100), default 20. Out-of-range or unparseable clamps into the range."),after:n().optional().describe("Opaque cursor from the previous page's `pagination.nextCursor`. Forward-only.")});var bye=T({id:n()});var yye=T({id:n()});var Sye=T({id:n()}),vye=Re(),Rye=T({id:n()});var wye=T({id:n()});var Iye=T({projectId:n(),mediaId:n()});import{existsSync as Mye,readFileSync as Oye}from"fs";import{join as $ye}from"path";var $x=Object.freeze({version:2,assets:Object.freeze({}),graphics:Object.freeze({api:"canvas2d",required:!0,accelerationPreference:"software-allowed"}),alphaPolicy:"requires-transparency"});var kx=$x;function Tx(e,t){let i=$ye(e.root,"cueframe.json");if(!Mye(i))throw Object.assign(new Error("No cueframe.json workspace manifest was found."),{code:"no_component_manifest"});let o=JSON.parse(Oye(i,"utf8")).components?.[t]?.manifest;if(o==null)throw Object.assign(new Error(`Component "${t}" has no contract-v2 manifest at cueframe.json components.${t}.manifest.`),{code:"no_component_manifest"});return o}function Cx(e){return{inputSchema:{type:"object",properties:{text:{type:"string"}},additionalProperties:!1},defaults:{text:e},timing:{defaultDuration:{frames:90,fps:30}},brandBindings:[],capabilities:[{kind:"clip"}]}}function Dx(e,t,i){let a=Cye(_o(e,t),"definition.json");if(!Tye(a))throw Object.assign(new Error(`Component "${t}" needs an explicit v3 definition.json before publishing. Declare its inputSchema, defaults, timing, brandBindings and capabilities; do not overwrite existing source with a new scaffold.`),{code:"invalid_component_definition"});let o;try{o=JSON.parse(kye(a,"utf8"))}catch{throw Object.assign(new Error(`Invalid JSON in ${a}`),{code:"invalid_component_definition"})}let r={version:3,componentId:t,tsxSource:i,manifest:Tx(e,t),definition:o},d=al.shape.source.safeParse(r);if(!d.success)throw Object.assign(new Error(`Invalid component v3 source: ${d.error.message}`),{code:"invalid_component_definition"});return d.data}var Pye="cueframe.json";function Lye(e){return e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join("")}function Vye(e){return e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" ")}function sl(e,t){B(e,"new_component",new Error(t),P.UserError),j(P.UserError)}function Fye(e,t){return`import React from 'react';
|
|
79
79
|
|
|
80
|
-
/** Custom CueFrame component.
|
|
80
|
+
/** Custom CueFrame component. Source v3 standalone clip; edit definition.json with the code. */
|
|
81
81
|
export default function ${t}({ params }: { durationInFrames: number; params: Record<string, unknown>; assets: Record<string, unknown>; render: { frame: number; fps: number; width: number; height: number; seed: string; colorSpace: 'srgb' } }) {
|
|
82
82
|
return <div style={{ width: '100%', height: '100%', display: 'grid', placeItems: 'center' }}>{String((params as { text?: unknown }).text ?? '${e}')}</div>;
|
|
83
83
|
}
|
|
84
|
-
`}function
|
|
84
|
+
`}function Aye(e,t){return`import { z } from 'zod';
|
|
85
85
|
import component from './index';
|
|
86
86
|
|
|
87
87
|
const paramsSchema = z.object({}).passthrough();
|
|
@@ -96,32 +96,33 @@ export const config = {
|
|
|
96
96
|
paramsSchema,
|
|
97
97
|
};
|
|
98
98
|
export default config;
|
|
99
|
-
`}function
|
|
100
|
-
`
|
|
101
|
-
${o.key}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
Media item ID: ${
|
|
105
|
-
|
|
106
|
-
`),a
|
|
107
|
-
`)
|
|
108
|
-
|
|
109
|
-
${
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
99
|
+
`}function jx(e,t){me(e,"name",t);let i=t.dryRun??!1,a=t.force??!1,o=Lye(e);o||sl(t,`name "${e}" has no alphanumeric characters to form a component identifier.`);let r=Vye(e);A(t,"new_component_prepare",{name:e,dryRun:i,force:a});let d=qn(process.cwd());d||sl(t,"No CueFrame workspace found (no cueframe.json up-tree). Run `cueframe init` first to scaffold one.");let p=_o(d,e),f=Dye(p);f&&jye(p).length>0&&!a&&sl(t,`Component dir ${p} already exists and is non-empty. Pass --force to overwrite (this replaces local source).`);let m={"index.tsx":Fye(e,o),"config.ts":Aye(e,r),"definition.json":JSON.stringify(Cx(e),null,2)+`
|
|
100
|
+
`};if(!i){_ye(p,{recursive:!0});for(let[R,O]of Object.entries(m))_x(Ex(p,R),O);let g=Ex(d.root,Pye),b=JSON.parse(Eye(g,"utf8")),S=b.components??{};S[e]={custom:!0,manifest:kx},b.components=S,_x(g,`${JSON.stringify(b,null,2)}
|
|
101
|
+
`)}ee(t,{ok:!0,dryRun:i,name:e,component:o,dir:p,files:Object.keys(m),overwritten:f&&a},()=>{console.log(`\u2713 ${i?"Would scaffold":"Scaffolded"} custom component ${e} (${o}) into ${p}`);for(let b of Object.keys(m))console.log(` ${i?"would write":"wrote"} ${b}`);i||console.log(` stamped cueframe.json components.${e} (custom)`),console.log("Edit index.tsx, then `cueframe push "+e+"` to publish it to CueFrame.")})}import{existsSync as fa,readFileSync as ha}from"fs";import{join as ga}from"path";import we from"typescript";var Uye="cueframe.json",Nye=["effects","transitions","text","layouts","backgrounds","ui-blocks","scenes"];function qye(e){return Nye.includes(e??"")?e:"layouts"}function Bye(e){let t=e;for(;we.isAsExpression(t)||we.isParenthesizedExpression(t)||typeof we.isSatisfiesExpression=="function"&&we.isSatisfiesExpression(t);)t=t.expression;return t}function Wye(e,t){for(let i of e.statements)if(we.isImportDeclaration(i)&&we.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===t)return!0;return!1}function Px(e,t){let i=we.createSourceFile(t,e,we.ScriptTarget.Latest,!0,we.ScriptKind.TS),a;for(let r of i.statements)if(we.isVariableStatement(r)){for(let d of r.declarationList.declarations)if(we.isIdentifier(d.name)&&d.name.text==="config"&&d.initializer){let p=Bye(d.initializer);we.isObjectLiteralExpression(p)&&(a=p)}if(a)break}let o={};if(!a)return o;for(let r of a.properties){if(!we.isPropertyAssignment(r)||!(we.isIdentifier(r.name)||we.isStringLiteral(r.name)))continue;let d=r.name.text;we.isStringLiteralLike(r.initializer)&&(d==="name"?o.name=r.initializer.text:d==="category"?o.category=r.initializer.text:d==="version"&&(o.version=r.initializer.text))}return o}function Zye(e){let t=ga(e,"config.ts");if(!fa(t))return{};let i=ha(t,"utf8"),a=we.createSourceFile("config.ts",i,we.ScriptTarget.Latest,!0,we.ScriptKind.TS),o=ga(e,"_config.ts");return Wye(a,"./_config")&&fa(o)?Px(ha(o,"utf8"),"_config.ts"):Px(i,"config.ts")}function Gye(e){return e.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function Jye(e,t){let i=ga(e.root,Uye);if(fa(i))try{let o=JSON.parse(ha(i,"utf8")).components?.[t]?.ejectedFrom;return typeof o=="string"&&o.length>0?o:void 0}catch{return}}var ma="declared in the v3 source definition";function Lx(e){let t=e.code;return t==="no_component_source"||t==="no_component_manifest"||t==="invalid_component_definition"?P.UserError:W(e)}async function Vx(e,t,i){let a=_o(e,t),o=ga(a,"index.tsx");if(!fa(o))throw Object.assign(new Error(`Component "${t}" has no index.tsx at ${a}. Scaffold it first: cueframe new component ${t}`),{code:"no_component_source"});let r=ha(o,"utf8"),d=Zye(a),p=d.name??Gye(t),f=qye(d.category),m=Jye(e,t),g=Dx(e,t,r),b=`Custom component "${t}" pushed from the local CueFrame workspace.`;A(i,"push_component",{id:t,name:p,category:f,version:d.version,ejectedFrom:m,propSchema:ma});let S=!1;try{await Gn.getComponent(t),S=!0}catch(R){if(R instanceof Be&&R.status===404)S=!1;else throw R}return S?(await Gn.updateComponent(t,{source:g,name:p,description:b,category:f,origin:"customer-owned",...m?{ejectedFrom:m}:{}}),A(i,"pushed",{id:t,action:"updated"}),{id:t,action:"updated",name:p,category:f,propSchema:ma}):(await Gn.createComponent({componentId:t,source:g,name:p,description:b,category:f,origin:"customer-owned",...m?{ejectedFrom:m}:{}}),A(i,"pushed",{id:t,action:"created"}),{id:t,action:"created",name:p,category:f,propSchema:ma})}async function Fx(e,t){e||(B(t,"push",new Error("Pass a component id (cueframe push <id>), or use `cueframe sync` to push all."),P.UserError),j(P.UserError)),me(e,"id",t),X(t.target);let i=qn(process.cwd());i||(B(t,"push",new Error("No CueFrame workspace found (no cueframe.json up-tree). Run `cueframe init` first."),P.UserError),j(P.UserError)),A(t,"push_prepare",{id:e,target:t.target});try{let a=await Vx(i,e,t);ee(t,{ok:!0,target:t.target,...a},()=>{console.log(`\u2713 ${a.action} component ${a.id} (${a.name}) on CueFrame`),console.log(` propSchema: ${a.propSchema}`)})}catch(a){let o=Lx(a);B(t,"push",a,o),j(o)}}async function Ax(e){X(e.target);let t=qn(process.cwd());t||(B(e,"sync",new Error("No CueFrame workspace found (no cueframe.json up-tree). Run `cueframe init` first."),P.UserError),j(P.UserError));let i=kg(t);A(e,"sync_prepare",{target:e.target,count:i.length,ids:i});let a=[],o=[];for(let r of i)try{a.push(await Vx(t,r,e))}catch(d){let p=Lx(d);ze(e,"sync",d,p),o.push({id:r,error:d})}ee(e,{ok:o.length===0,target:e.target,pushed:a,failed:o.map(r=>({id:r.id,error:ge(r.error)}))},()=>{if(a.length===0&&o.length===0){console.log("No components to sync. Scaffold one with `cueframe eject` or `cueframe new component`.");return}for(let r of a)console.log(`\u2713 ${r.action} ${r.id} (${r.name})`);a.length>0&&console.log(` propSchema: ${ma}`);for(let r of o)console.error(`\u2716 ${r.id}: ${ge(r.error)}`);console.log(`Synced ${a.length}/${i.length} component(s) to CueFrame.`)}),o.length>0&&j(W(o[0].error))}var xa=["media","sessions","projects","renders","webhooks"],Ux={readonly:Object.fromEntries(xa.map(e=>[e,["read"]])),editall:Object.fromEntries(xa.map(e=>[e,["read","write"]]))};function Kye(e){if(e.preset){let t=Ux[e.preset];return t||(console.error(`Unknown --preset "${e.preset}". Valid: ${Object.keys(Ux).join(", ")}.`),j(P.UserError)),t}if(e.scope)return Hye(e.scope);console.error("Provide --scope or --preset (e.g. --preset readonly | editall)."),j(P.UserError)}function Hye(e){let t={};for(let i of e.split(",").map(a=>a.trim()).filter(Boolean)){let[a,o]=i.split(":");(!a||!o)&&(console.error(`Invalid --scope "${i}". Use resource:rw (e.g. renders:rw,media:r).`),j(P.UserError)),xa.includes(a)||(console.error(`--scope "${i}": unknown resource "${a}". Valid: ${xa.join(", ")}.`),j(P.UserError));let r=[];/r/i.test(o)&&r.push("read"),/w/i.test(o)&&r.push("write"),r.length===0&&(console.error(`--scope "${i}": actions must include r and/or w.`),j(P.UserError)),t[a]=r}return Object.keys(t).length===0&&(console.error("--scope is required, e.g. --scope media:rw,projects:rw,renders:rw"),j(P.UserError)),t}async function Nx(e){X(e.target);let t=Kye(e),i={name:e.name,permissions:t};if(e.expires){let a=Number(e.expires);(!Number.isFinite(a)||a<=0)&&(console.error("--expires must be a positive number of days."),j(P.UserError)),i.expiresIn=Math.round(a*86400)}try{let a=await lt("/v1/api-keys",{method:"POST",body:JSON.stringify(i),headers:{"content-type":"application/json"}});ee(e,{ok:!0,id:a.id,prefix:a.prefix,start:a.start,key:a.key},()=>{let o=Object.entries(t).map(([r,d])=>`${r}:${d.map(p=>p[0]).join("")}`).join(" ");console.log(`\u2713 API key "${e.name}" created \u2014 scopes: ${o}`),console.log(`
|
|
102
|
+
${a.key}
|
|
103
|
+
`),console.log(" Shown ONCE \u2014 store it now (paste it into your integration; not saved here).")})}catch(a){B(e,"keys_create",a,W(a)),j(W(a))}}async function qx(e){X(e.target);let t;try{t=await Pe("/api/auth/api-key/list",{method:"GET"})}catch(a){B(e,"keys_list",a,W(a)),j(W(a))}t.status>=400&&(B(e,"keys_list",new Error(`list failed (${t.status})`),be(t.status)),j(be(t.status)));let i=Array.isArray(t.body)?t.body:[];ee(e,{ok:!0,keys:i},()=>{if(i.length===0){console.log("No API keys.");return}for(let a of i)console.log(` ${a.id} ${a.name??"(unnamed)"} ${a.start??""}\u2026`)})}async function Bx(e,t){X(t.target);let i;try{i=await Pe("/api/auth/api-key/delete",{method:"POST",body:JSON.stringify({keyId:e}),headers:{"content-type":"application/json"}})}catch(a){B(t,"keys_revoke",a,W(a)),j(W(a))}i.status>=400&&(B(t,"keys_revoke",new Error(`revoke failed (${i.status})`),be(i.status)),j(be(i.status))),ee(t,{ok:!0,revoked:e},()=>console.log(`\u2713 Revoked ${e}`))}async function Wx(e){X(e.target),A(e,"list_prepare",{target:e.target});try{let t=await Wt.listProjects(),i=e.limit,a=typeof i=="number"&&Number.isFinite(i)&&i>0?t.data.slice(0,i):t.data;if(A(e,"list_complete",{count:a.length,total:t.data.length,truncated:a.length<t.data.length,projects:a}),!e.json){if(t.data.length===0){console.log("No projects found.");return}for(let o of a){let r=new Date(o.createdAt).toLocaleDateString();console.log(` ${o.id} ${o.name} (${r})`)}a.length<t.data.length&&console.log(` \u2026 ${t.data.length-a.length} more (raise --limit to see all)`)}}catch(t){B(e,"list",t,W(t)),j(W(t))}}import{readFile as Xye,stat as Yye}from"fs/promises";import{existsSync as Qye}from"fs";import{basename as eSe,extname as tSe}from"path";var oSe=4e3,Zx=1800*1e3,Gx=5,Jx={".mp4":"video/mp4",".mov":"video/quicktime",".webm":"video/webm",".mkv":"video/x-matroska",".wav":"audio/wav",".mp3":"audio/mpeg",".m4a":"audio/mp4",".aac":"audio/aac",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".svg":"image/svg+xml"};function nSe(e,t){let i=tSe(e).toLowerCase(),a=Jx[i];if(!a){let o=new Error(`Unsupported file extension "${i||"(none)"}" for ${e}. Supported: ${Object.keys(Jx).join(", ")}.`);B(t,"preflight",o,P.UserError),j(P.UserError)}return a}var Kx=["vo","music","sfx","ambience"];async function za(e,t){Qye(e)||(B(t,"preflight",new Error(`File not found: ${e}`),P.UserError),j(P.UserError));let i=eSe(e),a=(await Yye(e)).size,o=nSe(i,t);if(t.audioRole&&!Kx.includes(t.audioRole)){let k=new Error(`--audio-role must be one of ${Kx.join("|")} (got "${t.audioRole}")`);B(t,"preflight",k,P.UserError),j(P.UserError)}let r=t.audioRole;if(t.dryRun){A(t,"upload_dry_run",{file:i,sizeBytes:a,contentType:o,target:t.target,analyzeAfter:!!t.analyze,wouldCall:"POST /v1/media \u2192 presigned PUT \u2192 POST /v1/media/:id/finalize \u2192 poll processing"}),t.json||console.log(`[dry-run] Would upload ${i} (${(a/1024/1024).toFixed(1)} MB, ${o}) to ${t.target}.`);return}X(t.target),A(t,"upload_prepare",{file:i,sizeBytes:a,contentType:o,target:t.target});let d=ye("Preparing upload\u2026",t.json),p,f;try{let k=await mt.createMediaUpload({filename:i,contentType:o,size:a});p=k.id,f=k.uploadUrl,d.succeed("Ready"),A(t,"upload_ready",{mediaItemId:p})}catch(k){d.fail(`Failed: ${ge(k)}`),ze(t,"upload_prepare",k,W(k)),j(W(k))}let m=Date.now(),g=ye(`Uploading ${i} (${(a/1024/1024).toFixed(1)} MB)\u2026`,t.json);try{let k=await Xye(e),E=await fetch(f,{method:"PUT",headers:{"Content-Type":o},body:k});if(!E.ok)throw new Error(`presigned PUT failed: ${E.status} ${E.statusText}`);await mt.finalizeMedia(p,r?{audioRole:r}:{}),g.succeed(`Uploaded: ${i}`),A(t,"upload_complete",{mediaItemId:p,bytesUploaded:a,...r?{audioRole:r}:{},durationMs:Date.now()-m})}catch(k){g.fail(`Upload failed: ${ge(k)}`),ze(t,"upload",k,P.NetworkError),j(P.NetworkError)}let b=ye("Processing (transcription)\u2026",t.json),S=Date.now(),R=null,O=0;for(;;){if(await new Promise(k=>setTimeout(k,oSe)),Date.now()-S>Zx){let k=`Processing did not complete within ${Math.round(Zx/6e4)}m. Media item ID: ${p}.`;b.fail(k),ze(t,"process",new Error(k),P.ApiServerError),j(P.ApiServerError)}try{let k=await mt.getMedia(p);O=0;let E=k?.processingStatus?.phase??"unknown",Z=k?.processingStatus?.percent??null,U=Math.round((Date.now()-S)/1e3),V=Z!=null?` \xB7 ${Math.round(Z*100)}%`:"";if(b.text=`Processing\u2026 ${E}${V} (${U}s)`,A(t,"process_progress",{phase:E,percent:Z,elapsedSec:U}),E==="complete"||E==="completed"){b.succeed(`Ready: ${p}`),R=k,A(t,"process_complete",{mediaItemId:p,durationMs:Date.now()-S,item:k});break}if(E==="error"){let J=k?.processingStatus?.error??"unknown error";b.fail(`Processing failed: ${J}`),ze(t,"process",new Error(J),P.ApiServerError),j(P.ApiServerError)}}catch(k){k instanceof Be&&[401,403,404].includes(k.status)&&(b.fail(`Processing check failed: ${ge(k)}`),ze(t,"process",k,W(k)),j(W(k))),O++,O>=Gx&&(b.fail(`Processing check failed: ${ge(k)}`),ze(t,"process",new Error(`Processing status unreadable after ${Gx} consecutive failures: ${ge(k)}`),W(k)),j(W(k)))}}if(t.analyze){Je(`
|
|
104
|
+
Media item ID: ${p}`,t);let{analyzeCommand:k}=await import("./analyze-KUAI3JNQ.js");return await k(p,{target:t.target,wait:!0,json:t.json}),{mediaItemId:p,item:R}}return t.json||ee(t,{mediaItemId:p,item:R},()=>{console.log(`
|
|
105
|
+
Media item ID: ${p}`),console.log(`
|
|
106
|
+
Run \`cueframe analyze ${p} --target ${t.target}\` to generate clip suggestions.`)}),{mediaItemId:p,item:R}}function cl(e){let t=Math.floor(e/60),i=Math.floor(e%60);return`${t}:${String(i).padStart(2,"0")}`}async function Hx(e,t){e!==void 0&&me(e,"mediaItemId",t),X(t.target),A(t,"clips_prepare",{target:t.target,mode:e?"suggestions":"media-list",...e?{mediaItemId:e}:{}});try{if(!e){let a=await mt.listMedia();if(A(t,"clips_complete",{mode:"media-list",count:a.data.length,media:a.data}),!t.json){if(a.data.length===0){console.log("No media items found. Import a video first.");return}console.log("Media items (pass the ID to `cueframe clips <id>`):"),console.log("");for(let o of a.data){let r=o.duration?`${cl(o.duration)} `:"",d=o.processingStatus?.phase??"unknown",p=d==="complete"?"":` [${d}]`;console.log(` ${o.id} ${o.name} ${r}${p}`)}}return}let i=await bl.listMediaSuggestions(e);if(A(t,"clips_complete",{mode:"suggestions",mediaItemId:e,count:i.suggestions.length,suggestions:i.suggestions}),!t.json){if(i.suggestions.length===0){console.log("No clip suggestions found for this media item."),console.log("If analysis is still running, try again shortly. Otherwise the video may not have suitable clips.");return}console.log(`${i.suggestions.length} clip suggestion${i.suggestions.length!==1?"s":""}:`),console.log("");for(let a of i.suggestions){let o=`${cl(a.trim.start)} \u2192 ${cl(a.trim.end)}`,r=(a.trim.end-a.trim.start).toFixed(1);console.log(` ${a.id}`),console.log(` ${a.title}`),console.log(` ${o} (${r}s) ${a.format} score: ${a.score}`),a.reason&&console.log(` ${a.reason}`),console.log("")}}}catch(i){B(t,"clips",i,W(i)),j(W(i))}}import{readFileSync as rSe}from"fs";async function Xx(e,t){me(e,"projectId",t),X(t.target),A(t,"composition_get_prepare",{projectId:e});let i=await Wn(`/v1/projects/${e}/composition`,{method:"GET"},t,"composition_get");i.status>=400&&(Zn(i,t,"composition_get"),j(be(i.status)));let a=i.headers.etag,o=a&&ez(a);A(t,"composition_get_complete",{projectId:e,etag:o,status:i.status}),ee(t,{etag:o,composition:i.body},()=>{o&&console.log(`# ETag: ${o}`),console.log(JSON.stringify(i.body,null,2))})}async function Yx(e,t){me(e,"projectId",t),t.body||(console.error("--body is required (inline JSON, @file.json, or @- for stdin)"),j(P.UserError)),X(t.target);let i=await dl(e,t),a=await tz(t.body);A(t,"composition_put_prepare",{projectId:e,ifMatch:i});let o=new Headers({"content-type":"application/json","if-match":i}),r=await Wn(`/v1/projects/${e}/composition`,{method:"PUT",headers:o,body:a},t,"composition_put");r.status>=400&&(Zn(r,t,"composition_put"),j(be(r.status)));let d=r.headers.etag;return A(t,"composition_put_complete",{projectId:e,etag:d,status:r.status,response:r.body}),ee(t,{etag:d,response:r.body},()=>{console.log(`Composition saved (ETag: ${d??"unknown"}).`),r.body&&typeof r.body=="object"&&console.log(JSON.stringify(r.body,null,2))}),{etag:d,response:r.body}}async function ba(e,t){me(e,"projectId",t),t.suggestionId||(console.error("--suggestion <suggestionId> is required"),j(P.UserError)),X(t.target);let i=await dl(e,t),a;if(t.format)try{a=JSON.parse(t.format)}catch{console.error(`--format must be JSON, e.g. '{"aspectRatio":"9:16","fps":30,"resolution":"fhd"}'`),j(P.UserError)}let o=JSON.stringify({suggestionId:t.suggestionId,...a?{format:a}:{}});A(t,"composition_from_suggestion_prepare",{projectId:e,suggestionId:t.suggestionId,ifMatch:i});let r,d=i,p=0,f=3;for(;;){p++;let g=new Headers({"content-type":"application/json","if-match":d});if(r=await Wn(`/v1/projects/${e}/composition/from-suggestion`,{method:"POST",headers:g,body:o},t,"composition_from_suggestion"),!(r.status===409&&r.body?.error?.code==="stale_etag"))break;if(p>f){A(t,"composition_from_suggestion_etag_retries_exhausted",{projectId:e,attempts:f});break}A(t,"composition_from_suggestion_etag_retry",{projectId:e,attempt:p,reason:"stale_etag"}),d=await dl(e,t)}r.status>=400&&(Zn(r,t,"composition_from_suggestion"),j(be(r.status)));let m=r.headers.etag;A(t,"composition_from_suggestion_complete",{projectId:e,suggestionId:t.suggestionId,etag:m,status:r.status,response:r.body,attempts:p}),ee(t,{etag:m,response:r.body},()=>{console.log(`Composition built from suggestion ${t.suggestionId} (ETag: ${m??"unknown"}).`),r.body&&typeof r.body=="object"&&console.log(JSON.stringify(r.body,null,2))})}async function Qx(e){e.body||(console.error("--body is required (inline JSON, @file.json, or @- for stdin)"),j(P.UserError)),X(e.target);let t=await tz(e.body);A(e,"composition_validate_prepare",{});let i=new Headers({"content-type":"application/json"}),a=await Wn("/v1/composition/validate",{method:"POST",headers:i,body:t},e,"composition_validate");return a.status>=400&&(Zn(a,e,"composition_validate"),j(be(a.status))),A(e,"composition_validate_complete",{status:a.status}),ee(e,{valid:!0},()=>{console.log("\u2713 Composition is valid.")}),{valid:!0}}function ez(e){return e.replace(/^W\//,"").replace(/-gzip(?=("?)$)/,"")}async function dl(e,t){if(t.force)return"*";if(t.ifMatch)return t.ifMatch;let i=await Wn(`/v1/projects/${e}/composition`,{method:"GET"},t,"composition_etag_fetch");if(i.status===404)return Je("No existing composition; treating as create (If-Match: *).",t),"*";i.status>=400&&(Zn(i,t,"composition_etag_fetch"),j(be(i.status)));let a=i.headers.etag;return a||(B(t,"composition_etag_fetch",new Error("Server returned no ETag on composition GET; cannot safely thread If-Match. Pass --force to overwrite anyway."),P.ApiServerError),j(P.ApiServerError)),ez(a)}async function tz(e){if(e.startsWith("@")){let t=e.slice(1);if(t==="-"){let i=[];for await(let a of process.stdin)i.push(Buffer.isBuffer(a)?a:Buffer.from(a));return Buffer.concat(i).toString("utf-8")}return rSe(t,"utf-8")}return e}async function Wn(e,t,i,a){try{return await Pe(e,t)}catch(o){B(i,a,o,P.NetworkError),j(P.NetworkError)}}function Zn(e,t,i){let a=e.body?.error,o=a?.code??"unknown",r=a?.message??e.statusText,d=iSe(o,e.status,a?.details),p=be(e.status);t.json?B(t,i,Object.assign(new Error(r),{code:o,status:e.status,details:a?.details,advice:d}),p):(process.stderr.write(`\u2716 ${i}: ${r} (${o}, ${e.status})
|
|
107
|
+
`),d&&process.stderr.write(` \u2192 ${d}
|
|
108
|
+
`))}function iSe(e,t,i){let a=new Be(t,{code:e,message:"",details:i&&typeof i=="object"?i:void 0}),o=xl(a);return o||(t===404?"Project or composition not found. Run `cueframe list` to confirm the project ID; the composition may not yet exist.":null)}async function oz(e){let t=e.aspect?{aspectRatio:e.aspect,fps:e.fps??30,resolution:e.resolution??"fhd"}:void 0;if(e.dryRun){if(A(e,"project_create_dry_run",{name:e.name,target:e.target,format:t??null,brandKitId:e.brandKitId??null,fromSuggestion:e.fromSuggestion??null,cheap:e.cheap??!1,wouldCall:e.fromSuggestion?e.cheap?"POST /v1/projects \u2192 POST /v1/projects/:id/composition/from-suggestion (sync translator)":"POST /v1/projects \u2192 POST /v1/projects/:id/compose (async) \u2192 SSE watch":"POST /v1/projects"}),!e.json){let o=e.cheap?" (--cheap: deterministic translator)":"";console.log(`[dry-run] Would create project "${e.name}" on ${e.target}`+(e.fromSuggestion?` from suggestion ${e.fromSuggestion}${o}.`:"."))}return}X(e.target),A(e,"project_create_prepare",{name:e.name,target:e.target,fromSuggestion:e.fromSuggestion??null,brandKitId:e.brandKitId??null,cheap:e.cheap??!1});let i=ye(`Creating project "${e.name}"\u2026`,e.json),a;try{a=await Wt.createProject({name:e.name,format:t,brandKitId:e.brandKitId}),i.succeed(`Created: ${a.id}`)}catch(o){i.fail(`Failed: ${ge(o)}`),ze(e,"project_create",o,W(o)),j(W(o))}if(A(e,"project_create_complete",{project:a}),!e.json&&!e.fromSuggestion&&console.log(`
|
|
109
|
+
${a.id} ${a.name}`),e.fromSuggestion){let o=!1;if(o||await ba(a.id,{target:e.target,suggestionId:e.fromSuggestion,json:e.json,force:!0}),!e.json){let r=o?"(composed)":"(translated)";console.log(`
|
|
110
|
+
${a.id} ${a.name} \u2190 composed from ${e.fromSuggestion} ${r}`)}}return a}async function nz(e,t){me(e,"projectId",t),X(t.target),A(t,"project_delete_prepare",{projectId:e});try{await Wt.deleteProject(e),A(t,"project_delete_complete",{projectId:e}),ee(t,{ok:!0,projectId:e},()=>{console.log(`Project ${e} deleted.`)})}catch(i){B(t,"project_delete",i,W(i)),j(W(i))}}async function rz(e,t){me(e,"mediaId",t),X(t.target),A(t,"media_delete_prepare",{mediaId:e});try{await mt.deleteMedia(e),A(t,"media_delete_complete",{mediaId:e}),ee(t,{ok:!0,mediaId:e},()=>{console.log(`Media ${e} deleted.`)})}catch(i){B(t,"media_delete",i,W(i)),j(W(i))}}import{writeFileSync as aSe}from"fs";import{resolve as sSe}from"path";var cSe=1500,dSe=4e3,pSe=1800*1e3,iz=5;async function pl(e,t,i={}){let a=Date.now()+(i.timeoutMs??pSe),o=i.reconnectBackoffMs??cSe,r=Date.now(),d=0;for(;Date.now()<a;){let p=null,f=!1;try{for await(let m of zl(e,t)){if(d=0,m.event==="progress"){let g=Math.round((Date.now()-r)/1e3);if(i.spinner){let b=Math.round(m.data.percent*100);i.spinner.text=`Rendering\u2026 ${m.data.phase}${b>0?` \xB7 ${b}%`:""} (${g}s)`}i.onProgress?.({phase:m.data.phase,percent:m.data.percent,elapsedSec:g});continue}m.event==="complete"?p={kind:"complete",outputUrl:m.data.outputUrl,outputExpiresAt:m.data.outputExpiresAt,duration:m.data.duration}:p={kind:"failed",message:m.data.message};break}}catch(m){if(m instanceof Be)f=!0;else{if(d++,d>=iz)throw Object.assign(new Error(`Render stream unreachable after ${iz} consecutive transport failures: ${m instanceof Error?m.message:String(m)}`),{cause:m});await new Promise(g=>setTimeout(g,o));continue}}if(p)return p;if(f){let m=await uSe(e,t);if(m)return m;await new Promise(g=>setTimeout(g,dSe));continue}await new Promise(m=>setTimeout(m,o))}return{kind:"failed",message:`Timed out waiting for render to reach a terminal state. Render ID: ${t}, Project ID: ${e}.`}}async function uSe(e,t){let i=await yl.getRender(e,t);return i.status==="complete"?{kind:"complete",outputUrl:i.outputUrl??null,outputExpiresAt:null,duration:null}:i.status==="error"||i.status==="cancelled"?{kind:"failed",message:i.error??`Render ${i.status}`}:null}async function az(e,t){me(e,"renderId",t),me(t.project,"projectId",t),X(t.target),A(t,"render_watch_prepare",{renderId:e,projectId:t.project,target:t.target});let i=ye(`Watching render ${e}\u2026`,t.json),a;try{a=await pl(t.project,e,{spinner:i,onProgress:r=>A(t,"render_progress",{renderId:e,...r})})}catch(r){i.fail(`Failed to watch render: ${ge(r)}`),ze(t,"render_watch",r,W(r)),j(W(r))}a.kind==="failed"&&(i.fail(a.message),ze(t,"render_watch",new Error(a.message),P.ApiServerError),j(P.ApiServerError)),i.succeed(`Render complete (${e})`);let o=null;t.download&&a.outputUrl?o=await ul(a.outputUrl,t.out??`./reel-${e.slice(0,8)}.mp4`,t.json):a.outputUrl||(B(t,"render_watch",new Error("Render reported complete but no outputUrl was returned."),P.ApiServerError),t.json||console.error(`Render reported complete but no outputUrl was returned.
|
|
111
|
+
Re-fetch via GET /v1/projects/${t.project}/renders/${e}.`),j(P.ApiServerError)),A(t,"render_complete",{renderId:e,projectId:t.project,outputUrl:a.outputUrl,outputExpiresAt:a.outputExpiresAt,duration:a.duration,outputPath:o}),t.json||(a.outputUrl&&console.log(`MP4 URL: ${a.outputUrl}`),a.outputExpiresAt&&console.log(`Expires: ${a.outputExpiresAt}`),a.duration!=null&&console.log(`Duration: ${a.duration}s`))}async function ul(e,t,i){let a=sSe(t),o=ye(`Downloading \u2192 ${a}\u2026`,i);try{let r=await fetch(e);if(!r.ok)throw new Error(`HTTP ${r.status}`);let d=Buffer.from(await r.arrayBuffer());return aSe(a,d),o.succeed(`Saved: ${a} (${(d.length/1024/1024).toFixed(1)} MB)`),a}catch(r){o.fail(`Download failed: ${ge(r)}`),console.error(`
|
|
112
|
+
MP4 URL (1-hour TTL): ${e}`),j(P.NetworkError)}}async function sz(e,t){let i=t.map(d=>d==null?"null":String(d)).join(":"),a=`${e}:${i}`,o=new TextEncoder().encode(a),r=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(r),d=>d.toString(16).padStart(2,"0")).join("")}async function lSe(e){let t=await Pe(`/v1/projects/${e}/composition`,{method:"GET"});return t.status===404?"no-composition":t.status>=400?"unknown-composition":t.headers.etag??"no-etag"}async function ya(e,t){if(me(e,"projectId",t),t.dryRun){A(t,"render_dry_run",{projectId:e,target:t.target,wouldCall:"POST /v1/projects/:id/renders \u2192 SSE watch \u2192 download MP4"}),t.json||console.log(`[dry-run] Would render project ${e} on ${t.target}.`);return}X(t.target),A(t,"render_prepare",{projectId:e,target:t.target});let i;try{i=t.idempotencyKey??await sz("render",[e,await lSe(e)]),A(t,"idempotency_key",{scope:"render",key:i,overridden:!!t.idempotencyKey})}catch(g){i="",A(t,"idempotency_key",{scope:"render",key:null,skipped:!0,reason:g instanceof Error?g.message:String(g)})}let a=ye("Queuing render\u2026",t.json),o,r,d=!1;try{let g=t.aspect?{format:{aspectRatio:t.aspect,fps:t.fps??30,resolution:t.resolution??"fhd"}}:{};t.priority&&(g.priority=t.priority),t.intent&&(g.intent=t.intent);let b={"content-type":"application/json"};i&&(b["idempotency-key"]=i);let S=await Pe(`/v1/projects/${e}/renders`,{method:"POST",headers:b,body:JSON.stringify(g)});if(S.status>=400){let O=S.body?.error;throw new Be(S.status,{code:O?.code??"unknown",message:O?.message??S.statusText})}let R=S.body;o=R.id,r=R.status,d=S.headers["idempotency-replay"]==="true",a.succeed(d?`Render replayed: ${o} (status: ${r})`:`Render queued: ${o}`)}catch(g){a.fail(`Failed: ${ge(g)}`),ze(t,"render_prepare",g,W(g)),j(W(g))}d?A(t,"render_idempotent_replay",{renderId:o,projectId:e,status:r,idempotencyKey:i}):A(t,"render_queued",{renderId:o,projectId:e});let p=ye("Rendering\u2026",t.json),f;try{f=await pl(e,o,{spinner:p,onProgress:g=>A(t,"render_progress",{renderId:o,...g})})}catch(g){p.fail(`Failed to watch render: ${ge(g)}`),ze(t,"render_progress",g,W(g)),j(W(g))}f.kind==="failed"&&(p.fail(f.message),ze(t,"render_progress",new Error(f.message),P.ApiServerError),j(P.ApiServerError)),p.succeed("Render complete"),f.outputUrl||(B(t,"render_complete",new Error("Render reported complete but no outputUrl was returned."),P.ApiServerError),t.json||console.error(`Render reported complete but no outputUrl was returned.
|
|
113
|
+
Render ID: ${o}
|
|
113
114
|
Project ID: ${e}
|
|
114
|
-
Re-fetch via GET /v1/projects/${e}/renders/${
|
|
115
|
-
`)),
|
|
116
|
-
`)),
|
|
117
|
-
Project ${
|
|
118
|
-
`);for(let[
|
|
115
|
+
Re-fetch via GET /v1/projects/${e}/renders/${o} once the URL is signed.`),j(P.ApiServerError));let m=await ul(f.outputUrl,t.out??`./reel-${o.slice(0,8)}.mp4`,t.json);return A(t,"render_complete",{renderId:o,projectId:e,outputUrl:f.outputUrl,outputExpiresAt:f.outputExpiresAt,duration:f.duration,outputPath:m}),{renderId:o,projectId:e,outputUrl:f.outputUrl,outputExpiresAt:f.outputExpiresAt,duration:f.duration,outputPath:m}}import{existsSync as lz}from"fs";import{createHash as mSe,randomUUID as fSe}from"crypto";import{readFile as hSe}from"fs/promises";import{resolve as ll}from"path";function cz(e){let t=e;if(!t||t.v!==1||typeof t.slug!="string")throw new Error("Not a CueFrame template document (v: 1, slug).");return{v:1,slug:t.slug,name:typeof t.name=="string"?t.name:t.slug,parameters:Array.isArray(t.parameters)?t.parameters:[],presets:t.presets}}function dz(e,t){return e==="number"?t.trim()===""?t:Number(t):e==="boolean"?t==="true"?!0:t==="false"?!1:t:t}var gSe=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,xSe=/^[a-z0-9]{28,40}$/,pz="https://raw.githubusercontent.com/cueframe-ai/cueframe-templates/main",zSe=3e3,bSe=60*6e4;function mz(e){let t=ll(e);if(e.endsWith(".cueframe")||lz(t))return{kind:"file",path:t};if(xSe.test(e)&&!e.includes("-"))return{kind:"org",id:e};if(gSe.test(e))return{kind:"slug",slug:e};throw new Error(`"${e}" is not a .cueframe file, a catalog slug, or a template id.`)}function ySe(e){let t=e.indexOf("=");if(t<=0)throw new Error(`--media takes name=<file|https url|sample|media:<id>>, got "${e}".`);let i=e.slice(0,t),a=e.slice(t+1);if(a==="sample")return{name:i,value:{sample:!0}};if(/^media:[A-Za-z0-9_-]+$/.test(a))return{name:i,value:{mediaId:a.slice(6)}};if(/^https:\/\//.test(a))return{name:i,value:{url:a}};if(/^[a-z]+:\/\//.test(a))throw new Error(`--media ${i}: only https URLs can be imported, got "${a}".`);return{name:i,file:ll(a)}}function SSe(e){let t={};for(let i of e){let a=i.indexOf("=");if(a<=0)throw new Error(`--values takes name=value, got "${i}".`);t[i.slice(0,a)]=i.slice(a+1)}return t}function vSe(e,t){let i={},a=[],o=new Map(e.parameters.map(r=>[r.name,r]));for(let[r,d]of Object.entries(t)){let p=o.get(r);if(!p){a.push(`${r}: not a parameter of ${e.slug}`);continue}if(p.type==="media"){a.push(`${r}: a media parameter; pass it with --media`);continue}i[r]=dz(p.type,d)}return{values:i,problems:a}}function RSe(e){let t=e.param?`${e.param}: ${e.message}`:e.message;return e.code?`${t} (${e.code})`:t}async function fz(e,t,i){X(t);let a=await lt("/v1/templates",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({document:e,dryRun:!0,...i})});if(!Array.isArray(a?.problems))throw Object.assign(new Error("The server did not answer a dry run: no problems list came back. The CueFrame API at this target may not support template validation yet."),{code:"template_dry_run_unsupported",exitCode:P.ApiServerError});return a.ok?[]:a.problems.map(RSe)}async function uz(e,t,i,a){let o={},r=new Map(t.parameters.map(p=>[p.name,p]));for(let p of i.mediaArgs)p.value&&"mediaId"in p.value?o[p.name]={mediaId:p.value.mediaId}:r.get(p.name)?.sample&&(o[p.name]={sample:!0});let d;try{d=await fz(e,a.target,{values:i.values,media:o,...i.preset?{preset:i.preset}:{}})}catch(p){let f=W(p);B(a,"template_validate",p,f),j(f)}d.length&&(B(a,"template_inputs",new Error(d.join(`
|
|
116
|
+
`)),P.UserError),j(P.UserError))}async function hz(e,t){if(e.kind==="file"){let a=JSON.parse(await hSe(e.path,"utf8"));if(a?.v!==1||typeof a.slug!="string")throw new Error(`${e.path} is not a CueFrame template document (v: 1, slug).`);return a}if(e.kind==="slug"){let a=await fetch(`${pz}/templates.json`,{headers:{accept:"application/json"}});if(!a.ok)throw new Error(`The public template catalog answered ${a.status}.`);let o=await a.json();if(o.schemaVersion!==2||!Array.isArray(o.templates))throw new Error("The public template catalog is not schemaVersion 2.");let r=o.templates.find(g=>g.slug===e.slug);if(!r)throw new Error(`The public catalog has no template "${e.slug}".`);if(typeof r.documentSha256!="string"||!/^[a-f0-9]{64}$/.test(r.documentSha256))throw new Error(`The public catalog has no document digest for "${e.slug}".`);let d=`${pz}/artifacts/${r.documentSha256}.cueframe`,p=await fetch(d,{headers:{accept:"application/json"}});if(!p.ok)throw new Error(`The public catalog has no template "${e.slug}" (${p.status}).`);let f=await p.text();if(mSe("sha256").update(f).digest("hex")!==r.documentSha256)throw new Error(`The template ${e.slug} changed since the catalog was read. Retry after the catalog refreshes.`);let m=JSON.parse(f);if(m.slug!==e.slug)throw new Error(`The catalog document for ${e.slug} names ${String(m.slug)}.`);return m}return X(t),(await lt(`/v1/templates/${encodeURIComponent(e.id)}`)).document}async function gz(e,t){let i=Date.now(),a=e.stage;for(;e.status==="preparing";)Date.now()-i>bSe&&(B(t,"template_instantiate",new Error(`Template job ${e.jobId} is still preparing after an hour. Reconnect with its job id.`),P.ApiServerError),j(P.ApiServerError)),await new Promise(o=>setTimeout(o,zSe)),e=await lt(`/v1/template-jobs/${encodeURIComponent(e.jobId)}`),e.stage!==a&&(a=e.stage,A(t,"template_job_progress",{jobId:e.jobId,projectId:e.projectId,stage:e.stage}));return e}async function xz(e,t){X(t.target);let i=await lt(`/v1/template-jobs/${encodeURIComponent(e)}`);return t.wait&&(i=await gz(i,t)),ee(t,i,()=>console.log(`${i.status} \xB7 ${i.stage}${i.projectId?` \xB7 project ${i.projectId}`:""}`)),t.wait&&i.status!=="ready"&&(B(t,i.errorCode??"template_instantiate",new Error(i.errorMessage??`Template job ${i.jobId} ${i.status}.`),P.ApiServerError),j(P.ApiServerError)),i}async function zz(e,t){let i,a;try{i=mz(e),a=await hz(i,t.target)}catch(f){B(t,"template_read",f,P.UserError),j(P.UserError)}let o;try{o=await fz(a,t.target)}catch(f){let m=W(f);B(t,"template_validate",f,m),j(m)}let r=a?.slug,d=typeof r=="string"?r:e,p={template:i.kind==="file"?i.path:e,slug:d,ok:o.length===0,problems:o};return ee(t,p,()=>{if(o.length===0){console.log(`ok ${d}`);return}console.error(`FAIL ${d}`);for(let f of o)console.error(` ${f}`)}),o.length&&j(P.UserError),p}async function bz(e,t){let i,a,o,r,d;try{i=mz(e),a=await hz(i,t.target),o=cz(a),r=t.media.map(ySe),d=SSe(t.values)}catch(V){B(t,"template_read",V,P.UserError),j(P.UserError)}let{values:p,problems:f}=vSe(o,d),m=new Map(o.parameters.filter(V=>V.type==="media").map(V=>[V.name,V]));for(let V of r){let J=m.get(V.name);J?V.value&&"sample"in V.value&&!J.sample?f.push(`${V.name}: the template has no sample for it`):V.file&&!lz(V.file)&&f.push(`${V.name}: file not found: ${V.file}`):f.push(`${V.name}: not a media parameter of ${o.slug}`)}t.preset!==void 0&&!o.presets?.[t.preset]&&f.push(`preset ${t.preset}: not one of ${Object.keys(o.presets??{}).join(", ")||"(none)"}`);for(let[V,J]of m)J.required&&!r.some(ce=>ce.name===V)&&f.push(`${V}: required; pass --media ${V}=<file|https url|media:<id>${J.sample?"|sample":""}>`);f.length&&(B(t,"template_inputs",new Error(f.join(`
|
|
117
|
+
`)),P.UserError),j(P.UserError));let g=i.kind==="file"?i.path:e;if(t.dryRun){await uz(a,o,{values:p,mediaArgs:r,preset:t.preset},t);let V={template:g,slug:o.slug,target:t.target,values:p,media:r.map(J=>J.file??J.value),preset:t.preset??null,render:t.render,output:ll(t.out),wouldRun:[...i.kind==="file"?["publish the document to your org"]:[],...r.filter(J=>J.file).map(J=>`upload ${J.name}`),"start template preparation job","wait for the ready project",...t.render?["render and download MP4"]:[]]};return ee(t,V,()=>console.log(`[dry-run] Template inputs bind. Would create a project from ${o.name}.`)),V}A(t,"template_run_prepare",{template:g,slug:o.slug,target:t.target,preset:t.preset??null}),X(t.target);let b=i.kind==="file"?"":i.kind==="slug"?i.slug:i.id;if(i.kind==="file"){await uz(a,o,{values:p,mediaArgs:r,preset:t.preset},t);try{let V=await lt("/v1/templates",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({document:a})});b=V.id,A(t,"template_published",{templateId:b,version:V.version})}catch(V){B(t,"template_publish",V,W(V)),j(W(V))}}let S={};for(let V of r){if(V.value){S[V.name]=V.value;continue}let J=await za(V.file,{target:t.target,analyze:!1,json:t.json});if(!J)throw new Error(`Template run stopped before CueFrame returned a media id for ${V.name}.`);S[V.name]={mediaId:J.mediaItemId}}X(t.target);let R=JSON.stringify({projectName:o.name,values:p,media:S,...t.preset?{preset:t.preset}:{},...t.brandKitId?{brandKitId:t.brandKitId}:{}}),O,k=t.idempotencyKey??fSe();A(t,"template_job_request",{templateId:b,idempotencyKey:k});try{O=await Pe(`/v1/templates/${encodeURIComponent(b)}/instantiate`,{method:"POST",headers:{"content-type":"application/json","Idempotency-Key":k},body:R})}catch(V){B(t,"template_instantiate",V,W(V)),j(W(V))}if(O.status>=400){let V=O.body,J=Object.assign(new Error(V?.error?.message??O.statusText),{code:V?.error?.code,status:O.status,details:V?.error?.details});B(t,"template_instantiate",J,be(O.status)),j(be(O.status))}let E=O.body;A(t,"template_job_started",{jobId:E.jobId,projectId:E.projectId,stage:E.stage}),E=await gz(E,t),(E.status!=="ready"||!E.projectId)&&(B(t,E.errorCode??"template_instantiate",new Error(E.errorMessage??`Template job ${E.jobId} ${E.status}.`),P.ApiServerError),j(P.ApiServerError)),A(t,"template_job_complete",{jobId:E.jobId,projectId:E.projectId});let Z=t.render?await ya(E.projectId,{target:t.target,out:t.out,json:t.json}):void 0,U={template:g,slug:o.slug,templateId:b,jobId:E.jobId,projectId:E.projectId,media:S,...Z?{renderId:Z.renderId,outputPath:Z.outputPath}:{}};return A(t,"template_run_complete",U),t.json||ee(t,U,()=>{console.log(`
|
|
118
|
+
Project ${E.projectId} created from ${o.name}.`),Z&&console.log(`Output: ${Z.outputPath}`)}),U}import wSe from"open";import{createAuthClient as ISe}from"better-auth/client";import{deviceAuthorizationClient as MSe}from"better-auth/client/plugins";async function yz(e){let t=Zt(e.target),i=ISe({baseURL:t,fetchOptions:{headers:Hn()},plugins:[MSe()]}),a=ye("Requesting device code\u2026",e.json),o;try{let{data:m,error:g}=await i.device.code({client_id:"cueframe-cli",scope:"openid profile email"});(g||!m)&&(a.fail(`Could not start login: ${g?.message??"unknown error"}`),j(P.NetworkError)),o=m}catch(m){a.fail(`Could not start login: ${m instanceof Error?m.message:String(m)}`),j(P.NetworkError)}a.succeed("Device code issued");let r=o.verification_uri_complete??o.verification_uri;Je("",e),Je(` Visit: ${r}`,e),Je(` Code: ${o.user_code}`,e),Je("",e);try{await wSe(r)}catch{}let d=ye("Waiting for approval in browser\u2026",e.json),p=Date.now()+o.expires_in*1e3,f=o.interval*1e3;for(;Date.now()<p;){await new Promise(m=>setTimeout(m,f));try{let{data:m,error:g}=await i.device.token({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:o.device_code,client_id:"cueframe-cli"});if(m?.access_token){let R=m.access_token;Kn(R,e.target,e.url),d.succeed(`Logged in. Token saved for target "${e.target}".`),ee(e,{ok:!0,target:e.target,apiUrl:t},()=>{});return}let b=m??g,S=b?.error;S==="authorization_pending"||(S==="slow_down"?f+=5e3:S==="access_denied"?(d.fail("Access denied in the browser."),j(P.UserError)):S==="expired_token"?(d.fail("Device code expired before approval. Run `cueframe login` again."),j(P.UserError)):S&&(d.fail(`Login failed: ${b?.error_description??S}`),j(P.ApiClientError)))}catch{}}d.fail("Timed out waiting for approval. Run `cueframe login` again."),j(P.UserError)}import{readFileSync as OSe}from"fs";var Sz=new Set(["GET","POST","PUT","PATCH","DELETE"]);async function wz(e,t,i){let a=e.toUpperCase();Sz.has(a)||(B(i,"api",new Error(`Unsupported method: ${e}. Allowed: ${[...Sz].join(", ")}.`),P.UserError),j(P.UserError)),t.startsWith("/")||(B(i,"api",new Error(`Path must start with '/'. Got: ${t}`),P.UserError),j(P.UserError)),X(i.target);let o=kSe(i.header??[]),r=await TSe(i.body,a);r!==void 0&&!o.has("content-type")&&o.set("content-type","application/json");let d;try{d=await Pe(t,{method:a,headers:o,body:r})}catch(f){B(i,"api",f,W(f)),j(W(f))}$Se(d,{include:!!i.include,json:!!i.json,method:a,path:t});let p=be(d.status);p!==P.Success&&B(i,"api",Object.assign(new Error(`${a} ${t} \u2192 ${d.status} ${d.statusText}`),{code:d.body?.error?.code,status:d.status}),p),process.exitCode=p}function $Se(e,{include:t,json:i,method:a,path:o}){if(i){console.log(JSON.stringify({status:e.status,statusText:e.statusText,headers:e.headers,body:e.body}));return}if(t){process.stdout.write(`HTTP/1.1 ${e.status} ${e.statusText}
|
|
119
|
+
`);for(let[r,d]of Object.entries(e.headers))process.stdout.write(`${r}: ${d}
|
|
119
120
|
`);process.stdout.write(`
|
|
120
|
-
`),
|
|
121
|
+
`),vz(e.body,e.status>=400);return}if(e.status===204||e.body===null){console.error(`${a} ${o} \u2192 ${e.status} (no content)`);return}vz(e.body,e.status>=400)}function vz(e,t){let i=t?process.stderr:process.stdout;e!=null&&(typeof e=="string"?i.write(e.endsWith(`
|
|
121
122
|
`)?e:e+`
|
|
122
123
|
`):i.write(JSON.stringify(e,null,2)+`
|
|
123
|
-
`))}function
|
|
124
|
-
Export ID: ${
|
|
125
|
-
Re-fetch via GET /v1/projects/${t.projectId}/exports/${
|
|
126
|
-
Export URL (7-day TTL): ${e}`),
|
|
127
|
-
${o.name} \u2014 ${o.description}`);for(let r of o.subcommands??[])console.log(` ${o.name} ${r.name} \u2014 ${r.description}`)}}var Qv=["prod","local"];function oe(e){if(e===void 0)return"prod";if(Qv.includes(e))return e;console.error(`Invalid --target ${e}. Allowed: ${Qv.join(", ")}.`),k(x.UserError)}function eh(e){if(!e)return;let t=parseInt(e,10);if(t===24||t===25||t===30||t===60)return t;console.error(`Invalid --fps ${e}. Allowed: 24, 25, 30, 60.`),k(x.UserError)}async function th(){let e=new Ix;e.name("cueframe").description("AI-assisted video editing and rendering").version("0.6.0").option("--json","Emit a structured JSON document on stdout instead of human-formatted output. Spinners are silenced.").option("--dry-run","Report what would happen without mutating anything; `template run` asks the API to bind the inputs without storing a template. Applies to upload, analyze, project create, render, template run.");let t=()=>e.opts();e.command("install").description('One-line setup: wire the CueFrame MCP server into every installed agent (Claude Code / Cursor / Codex) and install the agent skills. No API key \u2014 auth is a browser "Allow" on first call.').option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-f, --force","Replace locally changed or untracked skills, retaining backups").action(d=>Vd({json:t().json,target:oe(d.target),dryRun:t().dryRun,force:d.force})),e.command("init").description("Scaffold a CueFrame component workspace (cueframe.json + components dir) in the current repo, so `new component` has a home and the render harness can discover it.").action(()=>Kd({json:t().json,dryRun:t().dryRun})),e.command("new").description("Scaffold new owned source in the component workspace").command("component").description("Scaffold a blank custom component in cueframe/components/<name>").argument("<name>","Component id (e.g. my-badge)").option("-f, --force","Overwrite an existing non-empty component dir").action((d,m)=>Qg(d,{json:t().json,dryRun:t().dryRun,force:m.force})),e.command("push").description("Publish a locally-authored component (cueframe/components/<id>/index.tsx) to CueFrame so it renders server-side. Upserts by id.").argument("[id]","Component id to push (omit and use `cueframe sync` to push all)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((d,m)=>nv(d,{target:oe(m.target),json:t().json})),e.command("sync").description("Publish EVERY component in the workspace (cueframe/components/*) to CueFrame. Upserts each by id.").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(d=>iv({target:oe(d.target),json:t().json}));let o=e.command("keys").description("Manage API keys. `keys create` mints a scoped key \u2014 run `cueframe login` first (keys cannot mint keys).");o.command("create").description("Mint a scoped API key (cf_*). Requires a logged-in session.").requiredOption("-n, --name <name>","Key name, e.g. ci-runner").option("-s, --scope <scope>","Comma-separated resource:actions, e.g. media:rw,projects:rw,renders:rw (resources: media,sessions,projects,renders,webhooks; actions r/w)").option("--preset <preset>","Scope preset instead of --scope: readonly (read all) | editall (read+write all)").option("--expires <days>","Expire after N days (default: never)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(d=>av({...d,target:oe(d.target),json:t().json})),o.command("list").description("List your API keys.").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(d=>sv({target:oe(d.target),json:t().json})),o.command("revoke").description("Revoke an API key by id.").argument("<keyId>","Key id (from `cueframe keys list`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((d,m)=>cv(d,{target:oe(m.target),json:t().json})),e.command("login").description("Browser-mediated sign-in (OAuth device flow). Recommended for laptops.").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("--url <url>","Override the API base URL (advanced)").action(d=>Rv({...d,target:oe(d.target),json:t().json})),e.command("auth").description("Save a static API key (cf_live_\u2026 / cf_test_\u2026). Use for CI / headless environments.").argument("<api-key>","Your CueFrame API key").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("--url <url>","Override the API base URL (advanced)").action((d,m)=>{let f=oe(m.target);Ud(d),vn(d,f,m.url),t().json?console.log(JSON.stringify({ok:!0,target:f},null,2)):console.log(`API key saved for target "${f}"`)}),e.command("list").description("List projects").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-n, --limit <n>","Max projects to show","10").action(d=>uv({target:oe(d.target),limit:parseInt(d.limit),json:t().json}));let r=e.command("project").description("Project commands");r.command("create").description("Create a new project. With --from-suggestion, atomically build the composition from a clip suggestion in one round-trip \u2014 the project is then immediately renderable via `cueframe render <projectId>`.").requiredOption("-n, --name <name>","Project name").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-a, --aspect <ratio>","Aspect ratio: 9:16, 1:1, 16:9","9:16").option("--fps <n>","Frame rate","30").option("--resolution <r>","Resolution: hd, fhd, 2k, 4k","fhd").option("--brand-kit <id>","Bind a brand kit id to the project").option("--from-suggestion <sug>","Clip suggestion publicId (sug_\u2026) \u2014 atomically builds the composition after project creation so render needs no further args").option("--cheap","With --from-suggestion: use the deterministic translator (no LLM, ~100ms) instead of the AI authoring pass. Useful for tests / programmatic flows.").action(async d=>{await _v({name:d.name,target:oe(d.target),aspect:d.aspect,fps:eh(d.fps),resolution:d.resolution,brandKitId:d.brandKit,fromSuggestion:d.fromSuggestion,cheap:d.cheap,json:t().json,dryRun:t().dryRun})}),r.command("delete").description("Permanently delete a project (irreversible cleanup \u2014 removes the composition and render history).").argument("<projectId>","Project ID (from `cueframe list` or `project create`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((d,m)=>bv(d,{target:oe(m.target),json:t().json})),e.command("media").description("Media library cleanup commands").command("delete").description("Permanently delete a media item (irreversible cleanup \u2014 removes the source and its derived assets).").argument("<mediaId>","Media item ID (from `cueframe clips`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((d,m)=>kv(d,{target:oe(m.target),json:t().json})),e.command("upload").description("Upload a video file and process it").argument("<file>","Path to video file").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-a, --analyze","Run clip analysis after processing completes").option("-r, --audio-role <role>","Declare the audio role (vo|music|sfx|ambience) \u2014 routes ingest enrichment: vo\u2192transcript, music\u2192beat grid, sfx/ambience\u2192envelope").action(async(d,m)=>{await No(d,{target:oe(m.target),analyze:m.analyze,audioRole:m.audioRole,json:t().json,dryRun:t().dryRun})}),e.command("analyze").description("Trigger AI clip suggestion analysis for a media item").argument("<mediaItemId>","Media item ID (from `cueframe clips`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-w, --wait","Wait for analysis to complete and show results").action((d,m)=>Dd(d,{target:oe(m.target),wait:m.wait,json:t().json,dryRun:t().dryRun})),e.command("clips").description("List AI-generated clip suggestions for a media item").argument("[mediaItemId]","Media item ID (omit to list your media library)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((d,m)=>pv(d,{target:oe(m.target),json:t().json}));let a=e.command("template").description("Run or validate a CueFrame template document (.cueframe), from the public catalog or your org");a.command("run").description("Start a template preparation job, wait for the ready project, and render").argument("<template>","Catalog slug (cueframe-ai/cueframe-templates), a template id in your org, or a local .cueframe document").option("-m, --media <name=source...>","A media parameter: name=<file|https url|sample|media:<id>> (repeatable)",[]).option("-v, --values <name=value...>","A parameter value: name=value (repeatable); coerced by the document",[]).option("-p, --preset <name>","A preset of the document; its values fill what --values leaves out").option("--brand-kit <id>","Apply with one of your org brand kits instead of the template's").option("--idempotency-key <key>","Reuse this key to safely retry a start request whose response was lost").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-o, --out <path>","Output MP4 path","./template-output.mp4").option("--no-render","Create the editable project without rendering it").action(async(d,m)=>{await Cv(d,{media:m.media,values:m.values,preset:m.preset,brandKitId:m.brandKit,idempotencyKey:m.idempotencyKey,out:m.out,target:oe(m.target),render:m.render!==!1,json:t().json,dryRun:t().dryRun})}),a.command("status").description("Read a template preparation job; use --wait to reconnect until it is ready").argument("<jobId>","Job id returned by template run").option("--wait","Poll until ready, failed, or cancelled").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(async(d,m)=>{await Nv(d,{target:oe(m.target),json:t().json,wait:m.wait})}),a.command("validate").description("Check a template document: its references, every preset bound with the sample media, its prepared mattes. Runs on the CueFrame API with your key; nothing is stored.").argument("<template>","Catalog slug, a template id in your org, or a local .cueframe document").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(async(d,m)=>{await Tv(d,{target:oe(m.target),json:t().json})});let s=e.command("render").description("Render a project to MP4 (queues, watches via SSE, downloads). Renders whatever composition is saved on the project \u2014 build it first via `project create --from-suggestion` or `composition from-suggestion`.").allowExcessArguments(!1).argument("<projectId>","Project ID (from `cueframe list` or `project create`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-a, --aspect <ratio>","Aspect ratio: 9:16, 1:1, 16:9 (defaults to project format)").option("--fps <n>","Frame rate","30").option("--resolution <r>","Resolution: hd, fhd, 2k, 4k","fhd").option("-o, --out <path>","Output file path (default: ./reel-<id>.mp4)").option("--idempotency-key <key>",'Override the auto-derived Idempotency-Key. Default: sha256("render:<projectId>:<currentCompositionETag>"). Pass a fresh UUID to force a new render row.').option("--priority <p>","Routing intent: interactive (low-latency, access-gated), standard (default), background (lowest queue weight).").option("--intent <i>","Encode-quality hint: preview (fast / low-bitrate, for editor scrubbing) or final (default, full Format).").action(async(d,m)=>{await Co(d,{target:m.target,aspect:m.aspect,fps:eh(m.fps),resolution:m.resolution,out:m.out,json:t().json,dryRun:t().dryRun,...m.idempotencyKey?{idempotencyKey:m.idempotencyKey}:{},...m.priority?{priority:m.priority}:{},...m.intent?{intent:m.intent}:{}})});e.command("api").description("Raw API call against the v1 surface (escape hatch \u2014 like `gh api`).").argument("<method>","HTTP method: GET, POST, PUT, PATCH, DELETE").argument("<path>","API path starting with /v1, e.g. /v1/projects").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-b, --body <body>","Request body (inline JSON, @file.json to read from disk, @- for stdin)").option("-H, --header <header...>",'Additional header (repeatable), e.g. -H "If-Match: \\"abc\\""').option("-i, --include","Include response status line + headers in stdout (curl-style). Lets agents read ETag etc.").action((d,m,f)=>Mv(d,m,{target:f.target,body:f.body,header:f.header,include:f.include,json:t().json})),e.command("schema").description("Print the live composition wire schema from the server (/v1/openapi.json) \u2014 discover the contract instead of guessing.").argument("[resource]","Schema to print (currently: composition)","composition").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((d,m)=>Jv(d,{target:m.target,json:t().json}));let u=e.command("composition").description("Read/write a project's composition. ETag is threaded automatically.");u.command("validate").description("Validate a composition body against the live schema WITHOUT saving or rendering. Returns per-field errors \u2014 author safely before paying for a render.").requiredOption("-b, --body <body>","Composition JSON (inline, @file.json, or @- for stdin)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(async d=>{await hv({target:d.target,body:d.body,json:t().json})}),u.command("get").description("Fetch the project's composition and ETag").argument("<projectId>","Project ID").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((d,m)=>gv(d,{target:m.target,json:t().json})),u.command("put").description("Replace the composition. GETs ETag first for safe concurrent writes.").argument("<projectId>","Project ID").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").requiredOption("-b, --body <body>","Composition JSON (inline, @file.json, or @- for stdin)").option("--if-match <etag>","Use this ETag (skip the GET round-trip)").option("--force","Use If-Match: * (unconditional overwrite \u2014 may clobber concurrent edits)").action(async(d,m)=>{await vv(d,{target:m.target,body:m.body,ifMatch:m.ifMatch,force:m.force,json:t().json})}),u.command("from-suggestion").description("Build the composition from an existing clip suggestion").argument("<projectId>","Project ID").requiredOption("-s, --suggestion <suggestionId>","Clip suggestion publicId (sug_\u2026)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("--format <json>",`Optional format override, e.g. '{"aspectRatio":"9:16","fps":30,"resolution":"fhd"}'`).option("--if-match <etag>","Use this ETag (skip the GET round-trip)").option("--force","Use If-Match: * (unconditional overwrite)").action((d,m)=>To(d,{target:m.target,suggestionId:m.suggestion,format:m.format,ifMatch:m.ifMatch,force:m.force,json:t().json})),s.command("watch").description("Reattach to an existing render and stream progress to terminal state").argument("<renderId>","Render ID (from `cueframe render` output)").requiredOption("-p, --project <projectId>","Project the render belongs to").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("--no-download","Print the MP4 URL but skip downloading the file").option("-o, --out <path>","Output file path when downloading (default: ./reel-<id>.mp4)").action((d,m,f)=>{let v=f?.parent?.opts?.()?.target??m.target;return wv(d,{target:v,project:m.project,out:m.out,download:m.download!==!1,json:t().json})});let c=e.command("export").description("Hand the timeline off to a real NLE (Final Cut Pro / Premiere Pro)");c.command("fcpxml").description("Build a Final Cut Pro export zip and (optionally) wait to download it").argument("<projectId>","Project ID").requiredOption("-s, --suggestion <suggestionId>","Clip suggestion publicId (sug_\u2026)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-o, --out <path>","Output zip path (default: ./export-<id>.zip)").option("--wait","Block until the export finishes, then download the artifact").action((d,m)=>wd("fcpxml",{target:m.target,projectId:d,suggestionId:m.suggestion,out:m.out,wait:m.wait,json:t().json})),c.command("premiere").description("Build a Premiere Pro export zip and (optionally) wait to download it").argument("<projectId>","Project ID").requiredOption("-s, --suggestion <suggestionId>","Clip suggestion publicId (sug_\u2026)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-o, --out <path>","Output zip path (default: ./export-<id>.zip)").option("--wait","Block until the export finishes, then download the artifact").action((d,m)=>wd("premiere",{target:m.target,projectId:d,suggestionId:m.suggestion,out:m.out,wait:m.wait,json:t().json}));let l=e.command("sessions").description("Multi-file ingest sessions (camera A/B/screen \u2192 muxed composition)");l.command("list").description("List sessions in this org").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(d=>Wv({target:d.target,json:t().json})),l.command("get").description("Get a single session by ID").argument("<sessionId>","Session ID").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((d,m)=>Gv(d,{target:m.target,json:t().json})),l.command("create").description("Create a session from one or more media files").requiredOption("-n, --name <name>","Session name").requiredOption("-f, --file <entry...>","Each entry is <mediaId>:<role> (repeatable)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(d=>qv({target:d.target,name:d.name,files:d.file,json:t().json})),l.command("delete").description("Delete a session (server checks for compositions referencing it)").argument("<sessionId>","Session ID").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((d,m)=>Xv(d,{target:m.target,json:t().json})),e.command("describe").description("Print the CLI command tree as structured JSON (agent introspection)").action(()=>Yv(e,{json:t().json}));try{await e.parseAsync()}catch(d){let m=O(d);P(t(),"cli",Object.assign(new Error(X(d)),{code:d?.code,status:d?.status}),m),k(m)}}await th();
|
|
124
|
+
`))}function kSe(e){let t=new Headers;for(let i of e){let a=i.indexOf(":");a===-1&&(console.error(`Invalid --header (expected "Name: value"): ${i}`),j(P.UserError));let o=i.slice(0,a).trim(),r=i.slice(a+1).trim();t.set(o,r)}return t}async function TSe(e,t){if(e){if(e.startsWith("@")){let i=e.slice(1);return i==="-"?Rz():OSe(i,"utf-8")}return e}if(!(t==="GET"||t==="DELETE")&&!process.stdin.isTTY)return Rz()}async function Rz(){let e=[];for await(let t of process.stdin)e.push(Buffer.isBuffer(t)?t:Buffer.from(t));return Buffer.concat(e).toString("utf-8")}var Iz=/#\/components\/schemas\/([A-Za-z0-9_]+)/g;function CSe(e,t){let i=new Set,a=[t];for(;a.length;){let o=a.pop();if(i.has(o)||!(o in e))continue;i.add(o);let r=JSON.stringify(e[o]),d;for(Iz.lastIndex=0;d=Iz.exec(r);)a.push(d[1])}return i}function DSe(e){let t=e?.paths??{};for(let i of Object.values(t))if(i?.put?.operationId==="putComposition"){let a=i.put?.requestBody?.content?.["application/json"]?.schema?.$ref,o=typeof a=="string"?a.match(/#\/components\/schemas\/(.+)$/):null;if(o)return o[1]}return null}async function Mz(e,t){e!=="composition"&&(console.error(`Unknown schema '${e}'. Supported: composition.`),j(P.UserError)),gl({baseUrl:Zt(t.target),headers:Hn()});let i;try{i=await Pe("/v1/openapi.json",{method:"GET"})}catch(m){B(t,"schema",m,P.NetworkError),j(P.NetworkError)}if(i.status>=400){let m=be(i.status);B(t,"schema",new Error(`Failed to fetch /v1/openapi.json (${i.status})`),m),j(m)}let a=i.body,o=a?.components?.schemas??{},r=DSe(a);(!r||!(r in o))&&(B(t,"schema",new Error("Could not locate the composition schema in openapi.json (putComposition body ref not found)."),P.ApiServerError),j(P.ApiServerError));let d=CSe(o,r);d.delete(r);let p={};for(let m of[...d].sort())p[m]=o[m];let f={name:r,schema:o[r],referenced:p};ee(t,f,()=>{console.log(JSON.stringify(f,null,2))})}import{writeFileSync as _Se}from"fs";import{resolve as ESe}from"path";var Oz=1800*1e3,jSe=5e3;async function ml(e,t){me(t.projectId,"projectId",t),me(t.suggestionId,"suggestionId",t),X(t.target),A(t,"export_prepare",{projectId:t.projectId,suggestionId:t.suggestionId,format:e,target:t.target});let i=ye(`Queuing ${e} export\u2026`,t.json),a;try{a=(await(e==="fcpxml"?Jn.createFcpxmlExport:Jn.createPremiereExport)(t.projectId,{clipSuggestionId:t.suggestionId})).id,i.succeed(`Export queued: ${a}`)}catch(f){i.fail(`Failed: ${ge(f)}`),ze(t,"export_prepare",f,W(f)),j(W(f))}if(A(t,"export_queued",{exportId:a,projectId:t.projectId,format:e}),!t.wait){Je(`Poll status with: cueframe api GET /v1/projects/${t.projectId}/exports/${a}`,t);return}let o=await PSe(t.projectId,a,t);o.kind==="failed"&&(B(t,"export_progress",Object.assign(new Error(o.message),o.error?{details:o.error}:{}),P.ApiServerError),t.json||console.error(`Export failed: ${o.message}`),j(P.ApiServerError)),o.outputUrl||(B(t,"export_complete",new Error("Export reported complete but no outputUrl was returned."),P.ApiServerError),t.json||console.error(`Export reported complete but no outputUrl was returned.
|
|
125
|
+
Export ID: ${a}
|
|
126
|
+
Re-fetch via GET /v1/projects/${t.projectId}/exports/${a}.`),j(P.ApiServerError));let d=t.out??`./export-${a.slice(0,8)}.zip`,p=await LSe(o.outputUrl,d,t.json);A(t,"export_complete",{exportId:a,projectId:t.projectId,format:e,outputUrl:o.outputUrl,outputExpiresAt:o.outputExpiresAt,outputSizeBytes:o.outputSizeBytes,trimCacheHit:o.trimCacheHit,outputPath:p})}async function PSe(e,t,i){let a=Date.now()+(i.timeoutMs??Oz),o=i.pollIntervalMs??jSe,r=Date.now(),d=ye("Exporting\u2026",i.json);try{for(;Date.now()<a;){let p;try{p=await Jn.getExport(e,t)}catch(g){if(g instanceof Be&&g.status>=500){await $z(o);continue}throw d.fail(`Failed to poll: ${ge(g)}`),g}let f=Math.round((Date.now()-r)/1e3),m=Math.round((p.progress??0)*100);if(d.text=`Exporting\u2026 ${p.status}${m>0?` \xB7 ${m}%`:""} (${f}s)`,A(i,"export_progress",{exportId:t,status:p.status,progress:p.progress,elapsedSec:f}),p.status==="complete")return d.succeed(`Export complete (${f}s)`),{kind:"complete",outputUrl:p.outputUrl??null,outputExpiresAt:p.outputExpiresAt??null,outputSizeBytes:p.outputSizeBytes??null,trimCacheHit:p.trimCacheHit??null};if(p.status==="error"||p.status==="cancelled"){let g=p.error?.message??`Export ${p.status}`;return d.fail(g),{kind:"failed",message:g,error:p.error?{phase:p.error.phase,retryable:!!p.error.retryable}:null}}await $z(o)}return d.fail(`Timed out waiting for export (${Math.round((Date.now()-r)/1e3)}s)`),{kind:"failed",message:`Timed out after ${Math.round((i.timeoutMs??Oz)/1e3)}s`,error:null}}catch(p){B(i,"export_progress",p,W(p)),j(W(p))}}async function LSe(e,t,i){let a=ESe(t),o=ye(`Downloading \u2192 ${a}\u2026`,i);try{let r=await fetch(e);if(!r.ok)throw new Error(`HTTP ${r.status}`);let d=Buffer.from(await r.arrayBuffer());return _Se(a,d),o.succeed(`Saved: ${a} (${(d.length/1024/1024).toFixed(1)} MB)`),a}catch(r){o.fail(`Download failed: ${ge(r)}`),i||console.error(`
|
|
127
|
+
Export URL (7-day TTL): ${e}`),j(P.NetworkError)}}function $z(e){return new Promise(t=>setTimeout(t,e))}async function kz(e){X(e.target),A(e,"sessions_list_prepare",{});try{let t=await Bo.listSessions();A(e,"sessions_list_complete",{count:t.data.length}),ee(e,t,()=>{if(t.data.length===0){console.log("No sessions yet. Create one with `cueframe sessions create --name <n> --files <mediaId:role> \u2026`");return}for(let i of t.data){let a=i.muxStatus??"pending";console.log(`${i.id} ${i.fileCount} files mux:${a} ${i.name}`)}t.pagination.hasMore&&console.log(`# more \u2014 pass --after ${t.pagination.nextCursor} (raw via \`cueframe api\`)`)})}catch(t){B(e,"sessions_list",t,W(t)),j(W(t))}}async function Tz(e,t){me(e,"sessionId",t),X(t.target),A(t,"sessions_get_prepare",{sessionId:e});try{let i=await Bo.getSession(e);A(t,"sessions_get_complete",{sessionId:e}),ee(t,i,()=>{console.log(JSON.stringify(i,null,2))})}catch(i){B(t,"sessions_get",i,W(i)),j(W(i))}}async function Cz(e){e.name||(console.error("--name is required"),j(P.UserError)),(!e.files||e.files.length===0)&&(console.error("At least one --file <mediaId:role> is required"),j(P.UserError));let t=e.files.map((i,a)=>{let o=i.indexOf(":");return o===-1&&(console.error(`--file[${a}] must be <mediaId>:<role>. Got: ${i}`),j(P.UserError)),{mediaId:i.slice(0,o).trim(),role:i.slice(o+1).trim()}});X(e.target),A(e,"sessions_create_prepare",{name:e.name,fileCount:t.length});try{let i=await Bo.createSession({name:e.name,files:t});A(e,"sessions_create_complete",{sessionId:i.id}),ee(e,i,()=>{console.log(`Session created: ${i.id}`),console.log(JSON.stringify(i,null,2))})}catch(i){B(e,"sessions_create",i,W(i)),j(W(i))}}async function Dz(e,t){me(e,"sessionId",t),X(t.target),A(t,"sessions_delete_prepare",{sessionId:e});try{await Bo.deleteSession(e),A(t,"sessions_delete_complete",{sessionId:e}),ee(t,{ok:!0,sessionId:e},()=>{console.log(`Session ${e} deleted.`)})}catch(i){B(t,"sessions_delete",i,W(i)),j(W(i))}}function _z(e){let t=e.commands.map(_z);return{name:e.name(),description:e.description(),arguments:e.registeredArguments.map(i=>({name:i.name(),required:i.required,description:i.description})),options:e.options.map(i=>({flags:i.flags,description:i.description,...i.defaultValue!==void 0?{default:i.defaultValue}:{}})),...t.length>0?{subcommands:t}:{}}}function Ez(e,t){let i=e.commands.map(_z);if(t.json){A(t,"describe_complete",{name:e.name(),version:e.version()??null,commands:i});return}console.log(`${e.name()} ${e.version()??""}`.trim());for(let a of i){console.log(`
|
|
128
|
+
${a.name} \u2014 ${a.description}`);for(let o of a.subcommands??[])console.log(` ${a.name} ${o.name} \u2014 ${o.description}`)}}var jz=["prod","local"];function Me(e){if(e===void 0)return"prod";if(jz.includes(e))return e;console.error(`Invalid --target ${e}. Allowed: ${jz.join(", ")}.`),j(P.UserError)}function Pz(e){if(!e)return;let t=parseInt(e,10);if(t===24||t===25||t===30||t===60)return t;console.error(`Invalid --fps ${e}. Allowed: 24, 25, 30, 60.`),j(P.UserError)}async function Lz(){let e=new VSe;e.name("cueframe").description("AI-assisted video editing and rendering").version("0.8.0").option("--json","Emit a structured JSON document on stdout instead of human-formatted output. Spinners are silenced.").option("--dry-run","Report what would happen without mutating anything; `template run` asks the API to bind the inputs without storing a template. Applies to upload, analyze, project create, render, template run.");let t=()=>e.opts();e.command("install").description('One-line setup: wire the CueFrame MCP server into every installed agent (Claude Code / Cursor / Codex) and install the agent skills. No API key \u2014 auth is a browser "Allow" on first call.').option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-f, --force","Replace locally changed or untracked skills, retaining backups").action(b=>Dl({json:t().json,target:Me(b.target),dryRun:t().dryRun,force:b.force})),e.command("init").description("Scaffold a CueFrame component workspace (cueframe.json + components dir) in the current repo, so `new component` has a home and the render harness can discover it.").action(()=>jl({json:t().json,dryRun:t().dryRun})),e.command("new").description("Scaffold new owned source in the component workspace").command("component").description("Scaffold a blank custom component in cueframe/components/<name>").argument("<name>","Component id (e.g. my-badge)").option("-f, --force","Overwrite an existing non-empty component dir").action((b,S)=>jx(b,{json:t().json,dryRun:t().dryRun,force:S.force})),e.command("push").description("Publish a locally-authored component (cueframe/components/<id>/index.tsx) to CueFrame so it renders server-side. Upserts by id.").argument("[id]","Component id to push (omit and use `cueframe sync` to push all)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((b,S)=>Fx(b,{target:Me(S.target),json:t().json})),e.command("sync").description("Publish EVERY component in the workspace (cueframe/components/*) to CueFrame. Upserts each by id.").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(b=>Ax({target:Me(b.target),json:t().json}));let a=e.command("keys").description("Manage API keys. `keys create` mints a scoped key \u2014 run `cueframe login` first (keys cannot mint keys).");a.command("create").description("Mint a scoped API key (cf_*). Requires a logged-in session.").requiredOption("-n, --name <name>","Key name, e.g. ci-runner").option("-s, --scope <scope>","Comma-separated resource:actions, e.g. media:rw,projects:rw,renders:rw (resources: media,sessions,projects,renders,webhooks; actions r/w)").option("--preset <preset>","Scope preset instead of --scope: readonly (read all) | editall (read+write all)").option("--expires <days>","Expire after N days (default: never)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(b=>Nx({...b,target:Me(b.target),json:t().json})),a.command("list").description("List your API keys.").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(b=>qx({target:Me(b.target),json:t().json})),a.command("revoke").description("Revoke an API key by id.").argument("<keyId>","Key id (from `cueframe keys list`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((b,S)=>Bx(b,{target:Me(S.target),json:t().json})),e.command("login").description("Browser-mediated sign-in (OAuth device flow). Recommended for laptops.").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("--url <url>","Override the API base URL (advanced)").action(b=>yz({...b,target:Me(b.target),json:t().json})),e.command("auth").description("Save a static API key (cf_live_\u2026 / cf_test_\u2026). Use for CI / headless environments.").argument("<api-key>","Your CueFrame API key").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("--url <url>","Override the API base URL (advanced)").action((b,S)=>{let R=Me(S.target);Sl(b),Kn(b,R,S.url),t().json?console.log(JSON.stringify({ok:!0,target:R},null,2)):console.log(`API key saved for target "${R}"`)}),e.command("list").description("List projects").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-n, --limit <n>","Max projects to show","10").action(b=>Wx({target:Me(b.target),limit:parseInt(b.limit),json:t().json}));let o=e.command("project").description("Project commands");o.command("create").description("Create a new project. With --from-suggestion, atomically build the composition from a clip suggestion in one round-trip \u2014 the project is then immediately renderable via `cueframe render <projectId>`.").requiredOption("-n, --name <name>","Project name").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-a, --aspect <ratio>","Aspect ratio: 9:16, 1:1, 16:9","9:16").option("--fps <n>","Frame rate","30").option("--resolution <r>","Resolution: hd, fhd, 2k, 4k","fhd").option("--brand-kit <id>","Bind a brand kit id to the project").option("--from-suggestion <sug>","Clip suggestion publicId (sug_\u2026) \u2014 atomically builds the composition after project creation so render needs no further args").option("--cheap","With --from-suggestion: use the deterministic translator (no LLM, ~100ms) instead of the AI authoring pass. Useful for tests / programmatic flows.").action(async b=>{await oz({name:b.name,target:Me(b.target),aspect:b.aspect,fps:Pz(b.fps),resolution:b.resolution,brandKitId:b.brandKit,fromSuggestion:b.fromSuggestion,cheap:b.cheap,json:t().json,dryRun:t().dryRun})}),o.command("delete").description("Permanently delete a project (irreversible cleanup \u2014 removes the composition and render history).").argument("<projectId>","Project ID (from `cueframe list` or `project create`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((b,S)=>nz(b,{target:Me(S.target),json:t().json})),e.command("media").description("Media library cleanup commands").command("delete").description("Permanently delete a media item (irreversible cleanup \u2014 removes the source and its derived assets).").argument("<mediaId>","Media item ID (from `cueframe clips`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((b,S)=>rz(b,{target:Me(S.target),json:t().json})),e.command("upload").description("Upload a video file and process it").argument("<file>","Path to video file").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-a, --analyze","Run clip analysis after processing completes").option("-r, --audio-role <role>","Declare the audio role (vo|music|sfx|ambience) \u2014 routes ingest enrichment: vo\u2192transcript, music\u2192beat grid, sfx/ambience\u2192envelope").action(async(b,S)=>{await za(b,{target:Me(S.target),analyze:S.analyze,audioRole:S.audioRole,json:t().json,dryRun:t().dryRun})}),e.command("analyze").description("Trigger AI clip suggestion analysis for a media item").argument("<mediaItemId>","Media item ID (from `cueframe clips`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-w, --wait","Wait for analysis to complete and show results").action((b,S)=>vl(b,{target:Me(S.target),wait:S.wait,json:t().json,dryRun:t().dryRun})),e.command("clips").description("List AI-generated clip suggestions for a media item").argument("[mediaItemId]","Media item ID (omit to list your media library)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((b,S)=>Hx(b,{target:Me(S.target),json:t().json}));let d=e.command("template").description("Run or validate a CueFrame template document (.cueframe), from the public catalog or your org");d.command("run").description("Start a template preparation job, wait for the ready project, and render").argument("<template>","Catalog slug (cueframe-ai/cueframe-templates), a template id in your org, or a local .cueframe document").option("-m, --media <name=source...>","A media parameter: name=<file|https url|sample|media:<id>> (repeatable)",[]).option("-v, --values <name=value...>","A parameter value: name=value (repeatable); coerced by the document",[]).option("-p, --preset <name>","A preset of the document; its values fill what --values leaves out").option("--brand-kit <id>","Apply with one of your org brand kits instead of the template's").option("--idempotency-key <key>","Reuse this key to safely retry a start request whose response was lost").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-o, --out <path>","Output MP4 path","./template-output.mp4").option("--no-render","Create the editable project without rendering it").action(async(b,S)=>{await bz(b,{media:S.media,values:S.values,preset:S.preset,brandKitId:S.brandKit,idempotencyKey:S.idempotencyKey,out:S.out,target:Me(S.target),render:S.render!==!1,json:t().json,dryRun:t().dryRun})}),d.command("status").description("Read a template preparation job; use --wait to reconnect until it is ready").argument("<jobId>","Job id returned by template run").option("--wait","Poll until ready, failed, or cancelled").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(async(b,S)=>{await xz(b,{target:Me(S.target),json:t().json,wait:S.wait})}),d.command("validate").description("Check a template document: its references, every preset bound with the sample media, its prepared mattes. Runs on the CueFrame API with your key; nothing is stored.").argument("<template>","Catalog slug, a template id in your org, or a local .cueframe document").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(async(b,S)=>{await zz(b,{target:Me(S.target),json:t().json})});let p=e.command("render").description("Render a project to MP4 (queues, watches via SSE, downloads). Renders whatever composition is saved on the project \u2014 build it first via `project create --from-suggestion` or `composition from-suggestion`.").allowExcessArguments(!1).argument("<projectId>","Project ID (from `cueframe list` or `project create`)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-a, --aspect <ratio>","Aspect ratio: 9:16, 1:1, 16:9 (defaults to project format)").option("--fps <n>","Frame rate","30").option("--resolution <r>","Resolution: hd, fhd, 2k, 4k","fhd").option("-o, --out <path>","Output file path (default: ./reel-<id>.mp4)").option("--idempotency-key <key>",'Override the auto-derived Idempotency-Key. Default: sha256("render:<projectId>:<currentCompositionETag>"). Pass a fresh UUID to force a new render row.').option("--priority <p>","Routing intent: interactive (low-latency, access-gated), standard (default), background (lowest queue weight).").option("--intent <i>","Encode-quality hint: preview (fast / low-bitrate, for editor scrubbing) or final (default, full Format).").action(async(b,S)=>{await ya(b,{target:S.target,aspect:S.aspect,fps:Pz(S.fps),resolution:S.resolution,out:S.out,json:t().json,dryRun:t().dryRun,...S.idempotencyKey?{idempotencyKey:S.idempotencyKey}:{},...S.priority?{priority:S.priority}:{},...S.intent?{intent:S.intent}:{}})});e.command("api").description("Raw API call against the v1 surface (escape hatch \u2014 like `gh api`).").argument("<method>","HTTP method: GET, POST, PUT, PATCH, DELETE").argument("<path>","API path starting with /v1, e.g. /v1/projects").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-b, --body <body>","Request body (inline JSON, @file.json to read from disk, @- for stdin)").option("-H, --header <header...>",'Additional header (repeatable), e.g. -H "If-Match: \\"abc\\""').option("-i, --include","Include response status line + headers in stdout (curl-style). Lets agents read ETag etc.").action((b,S,R)=>wz(b,S,{target:R.target,body:R.body,header:R.header,include:R.include,json:t().json})),e.command("schema").description("Print the live composition wire schema from the server (/v1/openapi.json) \u2014 discover the contract instead of guessing.").argument("[resource]","Schema to print (currently: composition)","composition").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((b,S)=>Mz(b,{target:S.target,json:t().json}));let f=e.command("composition").description("Read/write a project's composition. ETag is threaded automatically.");f.command("validate").description("Validate a composition body against the live schema WITHOUT saving or rendering. Returns per-field errors \u2014 author safely before paying for a render.").requiredOption("-b, --body <body>","Composition JSON (inline, @file.json, or @- for stdin)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(async b=>{await Qx({target:b.target,body:b.body,json:t().json})}),f.command("get").description("Fetch the project's composition and ETag").argument("<projectId>","Project ID").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((b,S)=>Xx(b,{target:S.target,json:t().json})),f.command("put").description("Replace the composition. GETs ETag first for safe concurrent writes.").argument("<projectId>","Project ID").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").requiredOption("-b, --body <body>","Composition JSON (inline, @file.json, or @- for stdin)").option("--if-match <etag>","Use this ETag (skip the GET round-trip)").option("--force","Use If-Match: * (unconditional overwrite \u2014 may clobber concurrent edits)").action(async(b,S)=>{await Yx(b,{target:S.target,body:S.body,ifMatch:S.ifMatch,force:S.force,json:t().json})}),f.command("from-suggestion").description("Build the composition from an existing clip suggestion").argument("<projectId>","Project ID").requiredOption("-s, --suggestion <suggestionId>","Clip suggestion publicId (sug_\u2026)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("--format <json>",`Optional format override, e.g. '{"aspectRatio":"9:16","fps":30,"resolution":"fhd"}'`).option("--if-match <etag>","Use this ETag (skip the GET round-trip)").option("--force","Use If-Match: * (unconditional overwrite)").action((b,S)=>ba(b,{target:S.target,suggestionId:S.suggestion,format:S.format,ifMatch:S.ifMatch,force:S.force,json:t().json})),p.command("watch").description("Reattach to an existing render and stream progress to terminal state").argument("<renderId>","Render ID (from `cueframe render` output)").requiredOption("-p, --project <projectId>","Project the render belongs to").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("--no-download","Print the MP4 URL but skip downloading the file").option("-o, --out <path>","Output file path when downloading (default: ./reel-<id>.mp4)").action((b,S,R)=>{let O=R?.parent?.opts?.()?.target??S.target;return az(b,{target:O,project:S.project,out:S.out,download:S.download!==!1,json:t().json})});let m=e.command("export").description("Hand the timeline off to a real NLE (Final Cut Pro / Premiere Pro)");m.command("fcpxml").description("Build a Final Cut Pro export zip and (optionally) wait to download it").argument("<projectId>","Project ID").requiredOption("-s, --suggestion <suggestionId>","Clip suggestion publicId (sug_\u2026)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-o, --out <path>","Output zip path (default: ./export-<id>.zip)").option("--wait","Block until the export finishes, then download the artifact").action((b,S)=>ml("fcpxml",{target:S.target,projectId:b,suggestionId:S.suggestion,out:S.out,wait:S.wait,json:t().json})),m.command("premiere").description("Build a Premiere Pro export zip and (optionally) wait to download it").argument("<projectId>","Project ID").requiredOption("-s, --suggestion <suggestionId>","Clip suggestion publicId (sug_\u2026)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").option("-o, --out <path>","Output zip path (default: ./export-<id>.zip)").option("--wait","Block until the export finishes, then download the artifact").action((b,S)=>ml("premiere",{target:S.target,projectId:b,suggestionId:S.suggestion,out:S.out,wait:S.wait,json:t().json}));let g=e.command("sessions").description("Multi-file ingest sessions (camera A/B/screen \u2192 muxed composition)");g.command("list").description("List sessions in this org").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(b=>kz({target:b.target,json:t().json})),g.command("get").description("Get a single session by ID").argument("<sessionId>","Session ID").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((b,S)=>Tz(b,{target:S.target,json:t().json})),g.command("create").description("Create a session from one or more media files").requiredOption("-n, --name <name>","Session name").requiredOption("-f, --file <entry...>","Each entry is <mediaId>:<role> (repeatable)").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action(b=>Cz({target:b.target,name:b.name,files:b.file,json:t().json})),g.command("delete").description("Delete a session (server checks for compositions referencing it)").argument("<sessionId>","Session ID").option("-t, --target <target>","Target environment: prod (default), local. CUEFRAME_API_URL overrides the host.").action((b,S)=>Dz(b,{target:S.target,json:t().json})),e.command("describe").description("Print the CLI command tree as structured JSON (agent introspection)").action(()=>Ez(e,{json:t().json}));try{await e.parseAsync()}catch(b){let S=W(b);B(t(),"cli",Object.assign(new Error(ge(b)),{code:b?.code,status:b?.status}),S),j(S)}}await Lz();
|