agent-contracts-runtime 0.36.1 → 0.36.2
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/adapters/adk-sdk.js +6 -0
- package/dist/adapters/adk-sdk.js.map +1 -1
- package/dist/agent-runtime.bundle.mjs +2 -2
- package/dist/agent-runtime.bundle.mjs.map +3 -3
- package/dist/{chunk-CQNPJVU6.js → chunk-LNKWDQAJ.js} +47 -19
- package/dist/{chunk-CQNPJVU6.js.map → chunk-LNKWDQAJ.js.map} +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -581,7 +581,7 @@ Expecting `+W.join(", ")+", got '"+(this.terminals_[S]||S)+"'":X="Parse error on
|
|
|
581
581
|
|
|
582
582
|
`)}f.write("payload.value = newResult;"),f.write("return payload;");let b=f.compile();return(w,E)=>b(p,w,E)},a,o=Xl,s=!Ep.jitless,u=s&&_F.value,c=t.catchall,d;e._zod.parse=(p,f)=>{d??(d=i.value);let m=p.value;return o(m)?s&&u&&f?.async===!1&&f.jitless!==!0?(a||(a=r(t.shape)),p=a(p,f),c?yz([],m,p,f,d,e):p):n(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),p)}});iv=Ne("$ZodUnion",(e,t)=>{Ht.init(e,t),ur(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ur(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ur(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ur(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${i.map(r=>tv(r.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let a=!1,o=[];for(let s of t.options){let l=s._zod.run({value:i.value,issues:[]},r);if(l instanceof Promise)o.push(l),a=!0;else{if(l.issues.length===0)return l;o.push(l)}}return a?Promise.all(o).then(s=>vT(s,i,e,r)):vT(o,i,e,r)}});wz=Ne("$ZodXor",(e,t)=>{iv.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let a=!1,o=[];for(let s of t.options){let l=s._zod.run({value:i.value,issues:[]},r);l instanceof Promise?(o.push(l),a=!0):o.push(l)}return a?Promise.all(o).then(s=>yT(s,i,e,r)):yT(o,i,e,r)}}),Ez=Ne("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,iv.init(e,t);let n=e._zod.parse;ur(e._zod,"propValues",()=>{let r={};for(let a of t.options){let o=a._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[s,l]of Object.entries(o)){r[s]||(r[s]=new Set);for(let u of l)r[s].add(u)}}return r});let i=Zp(()=>{let r=t.options,a=new Map;for(let o of r){let s=o._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let l of s){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,o)}}return a});e._zod.parse=(r,a)=>{let o=r.value;if(!Xl(o))return r.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),r;let s=i.value.get(o?.[t.discriminator]);return s?s._zod.run(r,a):t.unionFallback||a.direction==="backward"?n(r,a):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:o,path:[t.discriminator],inst:e}),r)}}),Sz=Ne("$ZodIntersection",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,a=t.left._zod.run({value:r,issues:[]},i),o=t.right._zod.run({value:r,issues:[]},i);return a instanceof Promise||o instanceof Promise?Promise.all([a,o]).then(([l,u])=>_T(n,l,u)):_T(n,a,o)}});Sw=Ne("$ZodTuple",(e,t)=>{Ht.init(e,t);let n=t.items;e._zod.parse=(i,r)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let o=[],s=bT(n,"optin"),l=bT(n,"optout");if(!t.rest){if(a.length<s)return i.issues.push({code:"too_small",minimum:s,inclusive:!0,input:a,inst:e,origin:"array"}),i;a.length>n.length&&i.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=new Array(n.length);for(let c=0;c<n.length;c++){let d=n[c]._zod.run({value:a[c],issues:[]},r);d instanceof Promise?o.push(d.then(p=>{u[c]=p})):u[c]=d}if(t.rest){let c=n.length-1,d=a.slice(n.length);for(let p of d){c++;let f=t.rest._zod.run({value:p,issues:[]},r);f instanceof Promise?o.push(f.then(m=>wT(m,i,c))):wT(f,i,c)}}return o.length?Promise.all(o).then(()=>ET(u,i,n,a,l)):ET(u,i,n,a,l)}});kz=Ne("$ZodRecord",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!cu(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let u of o)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let c=t.keyType._zod.run({value:u,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Ai(f,i,xn())),input:u,path:[u],inst:e});continue}let d=c.value,p=t.valueType._zod.run({value:r[u],issues:[]},i);p instanceof Promise?a.push(p.then(f=>{f.issues.length&&n.issues.push(...Wi(u,f.issues)),n.value[d]=f.value})):(p.issues.length&&n.issues.push(...Wi(u,p.issues)),n.value[d]=p.value)}let l;for(let u in r)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:l})}else{n.value={};for(let s of Reflect.ownKeys(r)){if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,s))continue;let l=t.keyType._zod.run({value:s,issues:[]},i);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&gw.test(s)&&l.issues.length){let d=t.keyType._zod.run({value:Number(s),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(l=d)}if(l.issues.length){t.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(d=>Ai(d,i,xn())),input:s,path:[s],inst:e});continue}let c=t.valueType._zod.run({value:r[s],issues:[]},i);c instanceof Promise?a.push(c.then(d=>{d.issues.length&&n.issues.push(...Wi(s,d.issues)),n.value[l.value]=d.value})):(c.issues.length&&n.issues.push(...Wi(s,c.issues)),n.value[l.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),$z=Ne("$ZodMap",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of r){let l=t.keyType._zod.run({value:o,issues:[]},i),u=t.valueType._zod.run({value:s,issues:[]},i);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then(([c,d])=>{ST(c,d,n,o,r,e,i)})):ST(l,u,n,o,r,e,i)}return a.length?Promise.all(a).then(()=>n):n}});xz=Ne("$ZodSet",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let a=[];n.value=new Set;for(let o of r){let s=t.valueType._zod.run({value:o,issues:[]},i);s instanceof Promise?a.push(s.then(l=>kT(l,n))):kT(s,n)}return a.length?Promise.all(a).then(()=>n):n}});Az=Ne("$ZodEnum",(e,t)=>{Ht.init(e,t);let n=rw(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>cg.has(typeof r)).map(r=>typeof r=="string"?po(r):r.toString()).join("|")})$`),e._zod.parse=(r,a)=>{let o=r.value;return i.has(o)||r.issues.push({code:"invalid_value",values:n,input:o,inst:e}),r}}),Dz=Ne("$ZodLiteral",(e,t)=>{if(Ht.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?po(i):i?po(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{let a=i.value;return n.has(a)||i.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),i}}),Cz=Ne("$ZodFile",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),Pz=Ne("$ZodTransform",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ev(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(o=>(n.value=o,n.fallback=!0,n));if(r instanceof Promise)throw new su;return n.value=r,n.fallback=!0,n}});kw=Ne("$ZodOptional",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ur(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ur(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${tv(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=n.value,a=t.innerType._zod.run(n,i);return a instanceof Promise?a.then(o=>$T(o,r)):$T(a,r)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),Oz=Ne("$ZodExactOptional",(e,t)=>{kw.init(e,t),ur(e._zod,"values",()=>t.innerType._zod.values),ur(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),Iz=Ne("$ZodNullable",(e,t)=>{Ht.init(e,t),ur(e._zod,"optin",()=>t.innerType._zod.optin),ur(e._zod,"optout",()=>t.innerType._zod.optout),ur(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${tv(n.source)}|null)$`):void 0}),ur(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),jz=Ne("$ZodDefault",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",ur(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(a=>xT(a,t)):xT(r,t)}});Tz=Ne("$ZodPrefault",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",ur(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),Nz=Ne("$ZodNonOptional",(e,t)=>{Ht.init(e,t),ur(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(a=>AT(a,e)):AT(r,e)}});Rz=Ne("$ZodSuccess",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ev("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(a=>(n.value=a.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Bz=Ne("$ZodCatch",(e,t)=>{Ht.init(e,t),e._zod.optin="optional",ur(e._zod,"optout",()=>t.innerType._zod.optout),ur(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(o=>Ai(o,i,xn()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(a=>Ai(a,i,xn()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Lz=Ne("$ZodNaN",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),$w=Ne("$ZodPipe",(e,t)=>{Ht.init(e,t),ur(e._zod,"values",()=>t.in._zod.values),ur(e._zod,"optin",()=>t.in._zod.optin),ur(e._zod,"optout",()=>t.out._zod.optout),ur(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let a=t.out._zod.run(n,i);return a instanceof Promise?a.then(o=>B1(o,t.in,i)):B1(a,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(a=>B1(a,t.out,i)):B1(r,t.out,i)}});xw=Ne("$ZodCodec",(e,t)=>{Ht.init(e,t),ur(e._zod,"values",()=>t.in._zod.values),ur(e._zod,"optin",()=>t.in._zod.optin),ur(e._zod,"optout",()=>t.out._zod.optout),ur(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let a=t.in._zod.run(n,i);return a instanceof Promise?a.then(o=>L1(o,t,i)):L1(a,t,i)}else{let a=t.out._zod.run(n,i);return a instanceof Promise?a.then(o=>L1(o,t,i)):L1(a,t,i)}}});Fz=Ne("$ZodPreprocess",(e,t)=>{$w.init(e,t)}),Mz=Ne("$ZodReadonly",(e,t)=>{Ht.init(e,t),ur(e._zod,"propValues",()=>t.innerType._zod.propValues),ur(e._zod,"values",()=>t.innerType._zod.values),ur(e._zod,"optin",()=>t.innerType?._zod?.optin),ur(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(DT):DT(r)}});zz=Ne("$ZodTemplateLiteral",(e,t)=>{Ht.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let a=r.startsWith("^")?1:0,o=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(a,o))}else if(i===null||wF.has(typeof i))n.push(po(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Uz=Ne("$ZodFunction",(e,t)=>(Ht.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?e7(e._def.input,i):i,a=Reflect.apply(n,this,r);return e._def.output?e7(e._def.output,a):a}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await t7(e._def.input,i):i,a=await Reflect.apply(n,this,r);return e._def.output?await t7(e._def.output,a):a}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Sw({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),qz=Ne("$ZodPromise",(e,t)=>{Ht.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),Vz=Ne("$ZodLazy",(e,t)=>{Ht.init(e,t),ur(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),ur(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ur(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ur(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ur(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),Zz=Ne("$ZodCustom",(e,t)=>{Fr.init(e,t),Ht.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(a=>CT(a,n,i,e));CT(r,n,i,e)}});Aw={};Nn(Aw,{ar:()=>aye,az:()=>sye,be:()=>lye,bg:()=>dye,ca:()=>fye,cs:()=>hye,da:()=>vye,de:()=>_ye,el:()=>wye,en:()=>Gz,eo:()=>kye,es:()=>xye,fa:()=>Dye,fi:()=>Pye,fr:()=>Iye,frCA:()=>Tye,he:()=>Rye,hr:()=>Lye,hu:()=>Mye,hy:()=>Uye,id:()=>Vye,is:()=>Gye,it:()=>Kye,ja:()=>Jye,ka:()=>Xye,kh:()=>e2e,km:()=>Wz,ko:()=>r2e,lt:()=>i2e,mk:()=>o2e,ms:()=>u2e,nl:()=>c2e,no:()=>p2e,ota:()=>m2e,pl:()=>y2e,ps:()=>g2e,pt:()=>b2e,ro:()=>E2e,ru:()=>k2e,sl:()=>x2e,sv:()=>D2e,ta:()=>P2e,th:()=>I2e,tr:()=>T2e,ua:()=>R2e,uk:()=>Kz,ur:()=>L2e,uz:()=>M2e,vi:()=>U2e,yo:()=>K2e,zhCN:()=>V2e,zhTW:()=>G2e});iye=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}\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 ${Rt(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: ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?` \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"} ${a} ${r.maximum.toString()} ${o.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"} ${a} ${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\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 ${a} ${r.minimum.toString()} ${o.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 ${a} ${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.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}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`${n[a.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":""}: ${st(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"}}};oye=()=>{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"}};function t(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, daxil olan ${s}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${Rt(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${a}${r.maximum.toString()} ${o.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${a}${r.minimum.toString()} ${o.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${a.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:a.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${a.suffix}" il\u0259 bitm\u0259lidir`:a.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${a.includes}" daxil olmal\u0131d\u0131r`:a.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${a.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[a.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":""}: ${st(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"}}};uye=()=>{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"},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 n={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",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",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \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 ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);if(o){let s=Number(r.maximum),l=PT(s,o.unit.one,o.unit.few,o.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 ${o.verb} ${a}${r.maximum.toString()} ${l}`}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 ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);if(o){let s=Number(r.minimum),l=PT(s,o.unit.one,o.unit.few,o.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 ${o.verb} ${a}${r.minimum.toString()} ${l}`}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 ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[a.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"}: ${st(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"}}};cye=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \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 ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\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 ${a}${r.maximum.toString()} ${o.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 ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\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 ${a}${r.minimum.toString()} ${o.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 ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;if(a.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 "${a.prefix}"`;if(a.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 "${a.suffix}"`;if(a.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 "${a.includes}"`;if(a.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 ${a.pattern}`;let o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return a.format==="emoji"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="datetime"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="date"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),a.format==="time"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),a.format==="duration"&&(o="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${o} ${n[a.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":""}: ${st(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"}}};pye=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${a}, s'ha rebut ${s}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${Rt(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${st(r.values," o ")}`;case"too_big":{let a=r.inclusive?"com a m\xE0xim":"menys de",o=t(r.origin);return o?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${a} ${r.maximum.toString()} ${o.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${a} ${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?"com a m\xEDnim":"m\xE9s de",o=t(r.origin);return o?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${a} ${r.minimum.toString()} ${o.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${a} ${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${a.prefix}"`:a.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format inv\xE0lid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${a.pattern}`:`Format inv\xE0lid per a ${n[a.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":""}: ${st(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"}}};mye=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, obdr\u017Eeno ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${Rt(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${a}${r.maximum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${a}${r.minimum.toString()} ${o.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${a.prefix}"`:a.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${a.suffix}"`:a.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${a.includes}"`:a.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${a.pattern}`:`Neplatn\xFD form\xE1t ${n[a.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: ${st(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"}}};gye=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={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-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={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 a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${a}, fik ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${Rt(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin),s=i[r.origin]??r.origin;return o?`For stor: forventede ${s??"value"} ${o.verb} ${a} ${r.maximum.toString()} ${o.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${a} ${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin),s=i[r.origin]??r.origin;return o?`For lille: forventede ${s} ${o.verb} ${a} ${r.minimum.toString()} ${o.unit}`:`For lille: forventede ${s} havde ${a} ${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Ugyldig streng: skal starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: skal ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: skal indeholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${n[a.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"}: ${st(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"}}};yye=()=>{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"}};function t(r){return e[r]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${a}, erhalten ${s}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${Rt(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${a}${r.maximum.toString()} ${o.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${a}${r.maximum.toString()} ist`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Zu klein: erwartet, dass ${r.origin} ${a}${r.minimum.toString()} ${o.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${a}${r.minimum.toString()} ist`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Ung\xFCltiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ung\xFCltiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ung\xFCltiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${a.pattern} entsprechen`:`Ung\xFCltig: ${n[a.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"}: ${st(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"}}};bye=()=>{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 n={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",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \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 ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\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 ${a}${r.maximum.toString()} ${o.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 ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\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 ${a}${r.minimum.toString()} ${o.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 ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[a.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"}: ${st(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"}}};Eye=()=>{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 n={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",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return`Invalid input: expected ${a}, received ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${Rt(r.values[0])}`:`Invalid option: expected one of ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Too big: expected ${r.origin??"value"} to have ${a}${r.maximum.toString()} ${o.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Too small: expected ${r.origin} to have ${a}${r.minimum.toString()} ${o.unit}`:`Too small: expected ${r.origin} to be ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;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 ${n[a.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":""}: ${st(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(o=>`'${o}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};Sye=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={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",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${a}, ricevi\u011Dis ${s}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${Rt(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${a}${r.maximum.toString()} ${o.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${a}${r.minimum.toString()} ${o.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${a.prefix}"`:a.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${a.suffix}"`:a.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${a.includes}"`:a.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${a.pattern}`:`Nevalida ${n[a.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":""}: ${st(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"}}};$ye=()=>{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 n={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",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",jwt:"JWT",template_literal:"entrada"},i={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 a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${a}, recibido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${Rt(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin),s=i[r.origin]??r.origin;return o?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${a}${r.maximum.toString()} ${o.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin),s=i[r.origin]??r.origin;return o?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${a}${r.minimum.toString()} ${o.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${a.prefix}"`:a.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${a.suffix}"`:a.format==="includes"?`Cadena inv\xE1lida: debe incluir "${a.includes}"`:a.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${a.pattern}`:`Inv\xE1lido ${n[a.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":""}: ${st(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};Aye=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a} \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 ${Rt(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 ${st(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${a}${r.maximum.toString()} ${o.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 ${a}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${a}${r.minimum.toString()} ${o.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${a}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:a.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${a.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:a.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${a.includes}" \u0628\u0627\u0634\u062F`:a.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${a.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[a.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: ${st(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"}}};Cye=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let n={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",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${a}, oli ${s}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${Rt(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Liian suuri: ${o.subject} t\xE4ytyy olla ${a}${r.maximum.toString()} ${o.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Liian pieni: ${o.subject} t\xE4ytyy olla ${a}${r.minimum.toString()} ${o.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${a.includes}"`:a.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${a.pattern}`:`Virheellinen ${n[a.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"}: ${st(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"}}};Oye=()=>{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 n={regex:"entr\xE9e",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",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",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne",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:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${a} attendu, ${s} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${Rt(r.values[0])} attendu`:`Option invalide : une valeur parmi ${st(r.values,"|")} attendue`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Trop grand : ${i[r.origin]??"valeur"} doit ${o.verb} ${a}${r.maximum.toString()} ${o.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[r.origin]??"valeur"} doit \xEAtre ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Trop petit : ${i[r.origin]??"valeur"} doit ${o.verb} ${a}${r.minimum.toString()} ${o.unit}`:`Trop petit : ${i[r.origin]??"valeur"} doit \xEAtre ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${a.pattern}`:`${n[a.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":""} : ${st(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"}}};jye=()=>{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 n={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",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",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${a}, re\xE7u ${s}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${Rt(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"\u2264":"<",o=t(r.origin);return o?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${a}${r.maximum.toString()} ${o.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?"\u2265":">",o=t(r.origin);return o?`Trop petit : attendu que ${r.origin} ait ${a}${r.minimum.toString()} ${o.unit}`:`Trop petit : attendu que ${r.origin} soit ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Cha\xEEne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${a.pattern}`:`${n[a.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":""} : ${st(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"}}};Nye=()=>{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"}},n=u=>u?e[u]:void 0,i=u=>{let c=n(u);return c?c.label:u??e.unknown.label},r=u=>`\u05D4${i(u)}`,a=u=>(n(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",o=u=>u?t[u]??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"},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"},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"},jwt:{label:"JWT",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"}},l={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let c=u.expected,d=l[c??""]??i(c),p=Ft(u.input),f=l[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.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(u.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 ${Rt(u.values[0])}`;let c=u.values.map(f=>Rt(f));if(u.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 ${c[0]} \u05D0\u05D5 ${c[1]}`;let d=c[c.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 ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let c=o(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",h=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let p=u.inclusive?"<=":"<",f=a(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${u.maximum.toString()}`}case"too_small":{let c=o(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let v=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${v}`}let h=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${h}`.trim()}let p=u.inclusive?">=":">",f=a(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${f} ${p}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.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 ${c.pattern}`;let d=s[c.format],p=d?.label??c.format,m=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${m}`}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 ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${st(u.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(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};Bye=()=>{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 n={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",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={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 a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${r.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${a}, a primljeno je ${s}`}case"invalid_value":return r.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${Rt(r.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin),s=i[r.origin]??r.origin;return o?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${a}${r.maximum.toString()} ${o.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin),s=i[r.origin]??r.origin;return o?`Premalo: o\u010Dekivano da ${s} ima ${a}${r.minimum.toString()} ${o.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${a.prefix}"`:a.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${a.suffix}"`:a.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${a.includes}"`:a.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${a.pattern}`:`Neispravna ${n[a.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"}: ${st(r.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[r.origin]??r.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[r.origin]??r.origin}`;default:return"Neispravan unos"}}};Fye=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${Rt(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${a}${r.maximum.toString()} ${o.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${a}${r.minimum.toString()} ${o.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\xC9rv\xE9nytelen string: "${a.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:a.format==="ends_with"?`\xC9rv\xE9nytelen string: "${a.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:a.format==="includes"?`\xC9rv\xE9nytelen string: "${a.includes}" \xE9rt\xE9ket kell tartalmaznia`:a.format==="regex"?`\xC9rv\xE9nytelen string: ${a.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[a.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":""}: ${st(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"}}};zye=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \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 ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);if(o){let s=Number(r.maximum),l=OT(s,o.unit.one,o.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 ${Vl(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${r.maximum.toString()} ${l}`}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 ${Vl(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);if(o){let s=Number(r.minimum),l=OT(s,o.unit.one,o.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 ${Vl(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${a}${r.minimum.toString()} ${l}`}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 ${Vl(r.origin)} \u056C\u056B\u0576\u056B ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${a.prefix}"-\u0578\u057E`:a.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${a.suffix}"-\u0578\u057E`:a.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${a.includes}"`:a.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 ${a.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[a.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":""}. ${st(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Vl(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 ${Vl(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};qye=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${a}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${Rt(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${a}${r.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Terlalu kecil: diharapkan ${r.origin} memiliki ${a}${r.minimum.toString()} ${o.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${n[a.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":""}: ${st(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"}}};Zye=()=>{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"}};function t(r){return e[r]??null}let n={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",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${Rt(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${a}${r.maximum.toString()} ${o.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${a}${r.minimum.toString()} ${o.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${a.prefix}"`:a.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${a.suffix}"`:a.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${a.includes}"`:a.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${a.pattern}`:`Rangt ${n[a.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"}: ${st(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"}}};Wye=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${a}, ricevuto ${s}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${Rt(r.values[0])}`:`Opzione non valida: atteso uno tra ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Troppo grande: ${r.origin??"valore"} deve avere ${a}${r.maximum.toString()} ${o.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Troppo piccolo: ${r.origin} deve avere ${a}${r.minimum.toString()} ${o.unit}`:`Troppo piccolo: ${r.origin} deve essere ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Input non valido: ${n[a.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"}: ${st(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"}}};Hye=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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: ${a}\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: ${Rt(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${st(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let a=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",o=t(r.origin);return o?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o.unit??"\u8981\u7D20"}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let a=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",o=t(r.origin);return o?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o.unit}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${a.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:a.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${a.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[a.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":""}: ${st(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"}}};Yye=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={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 a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \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 ${Rt(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 ${st(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\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"} ${o.verb} ${a}${r.maximum.toString()} ${o.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 ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\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} ${o.verb} ${a}${r.minimum.toString()} ${o.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 ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.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 "${a.prefix}"-\u10D8\u10D7`:a.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 "${a.suffix}"-\u10D8\u10D7`:a.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 "${a.includes}"-\u10E1`:a.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 ${a.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[a.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"}: ${st(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"}}};Qye=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={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 a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a} \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 ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${a} ${r.maximum.toString()} ${o.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"} ${a} ${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${a} ${r.minimum.toString()} ${o.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${a} ${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[a.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 ${st(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"}}};t2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${Rt(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${st(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let a=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",o=a==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),l=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${l} ${a}${o}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${a}${o}`}case"too_small":{let a=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",o=a==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),l=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${l} ${a}${o}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${a}${o}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:a.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${a.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:a.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${a.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[a.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: ${st(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"}}};ip=e=>e.charAt(0).toUpperCase()+e.slice(1);n2e=()=>{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,a,o,s){let l=e[r]??null;return l===null?l:{unit:l.unit[a],verb:l.verb[s][o?"inclusive":"notInclusive"]}}let n={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",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",jwt:"JWT",template_literal:"\u012Fvestis"},i={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 a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${a}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${Rt(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${st(r.values,"|")} pasirinkim\u0173`;case"too_big":{let a=i[r.origin]??r.origin,o=t(r.origin,IT(Number(r.maximum)),r.inclusive??!1,"smaller");if(o?.verb)return`${ip(a??r.origin??"reik\u0161m\u0117")} ${o.verb} ${r.maximum.toString()} ${o.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ip(a??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${o?.unit}`}case"too_small":{let a=i[r.origin]??r.origin,o=t(r.origin,IT(Number(r.minimum)),r.inclusive??!1,"bigger");if(o?.verb)return`${ip(a??r.origin??"reik\u0161m\u0117")} ${o.verb} ${r.minimum.toString()} ${o.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ip(a??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${o?.unit}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${a.prefix}"`:a.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${a.suffix}"`:a.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${a.includes}"`:a.format==="regex"?`Eilut\u0117 privalo atitikti ${a.pattern}`:`Neteisingas ${n[a.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"}: ${st(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let a=i[r.origin]??r.origin;return`${ip(a??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};a2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\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 ${a}${r.maximum.toString()} ${o.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 ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\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 ${a}${r.minimum.toString()} ${o.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 ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`Invalid ${n[a.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"}: ${st(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"}}};s2e=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${a}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${Rt(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Terlalu besar: dijangka ${r.origin??"nilai"} ${o.verb} ${a}${r.maximum.toString()} ${o.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Terlalu kecil: dijangka ${r.origin} ${o.verb} ${a}${r.minimum.toString()} ${o.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${n[a.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${st(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"}}};l2e=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${a}, ontving ${s}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${Rt(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return o?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${a}${r.maximum.toString()} ${o.unit??"elementen"} ${o.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${a}${r.maximum.toString()} is`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return o?`Te ${s}: verwacht dat ${r.origin} ${a}${r.minimum.toString()} ${o.unit} ${o.verb}`:`Te ${s}: verwacht dat ${r.origin} ${a}${r.minimum.toString()} is`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${n[a.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":""}: ${st(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"}}};d2e=()=>{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"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${a}, fikk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${Rt(r.values[0])}`:`Ugyldig valg: forventet en av ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${a}${r.maximum.toString()} ${o.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`For lite(n): forventet ${r.origin} til \xE5 ha ${a}${r.minimum.toString()} ${o.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${a.pattern}`:`Ugyldig ${n[a.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"}: ${st(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"}}};f2e=()=>{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"}};function t(r){return e[r]??null}let n={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",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${a}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${Rt(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${a}${r.maximum.toString()} ${o.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${a}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${a}${r.minimum.toString()} ${o.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${a}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let a=r;return a.format==="starts_with"?`F\xE2sit metin: "${a.prefix}" ile ba\u015Flamal\u0131.`:a.format==="ends_with"?`F\xE2sit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`F\xE2sit metin: "${a.includes}" ihtiv\xE2 etmeli.`:a.format==="regex"?`F\xE2sit metin: ${a.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[a.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":""}: ${st(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."}}};h2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a} \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 ${Rt(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${st(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${a}${r.maximum.toString()} ${o.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 ${a}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${a}${r.minimum.toString()} ${o.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${a}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:a.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${a.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:a.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${a.includes}" \u0648\u0644\u0631\u064A`:a.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${a.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[a.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"}: ${st(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"}}};v2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${a}, otrzymano ${s}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${Rt(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${r.maximum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${a}${r.minimum.toString()} ${o.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${a.prefix}"`:a.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${a.suffix}"`:a.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${a.includes}"`:a.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${a.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[a.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":""}: ${st(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"}}};_2e=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let n={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${a}, recebido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${Rt(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${a}${r.maximum.toString()} ${o.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Muito pequeno: esperado que ${r.origin} tivesse ${a}${r.minimum.toString()} ${o.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`${n[a.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${st(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};w2e=()=>{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 n={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",jwt:"JWT",template_literal:"intrare"},i={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 a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return`Intrare invalid\u0103: a\u0219teptat ${a}, primit ${s}`}case"invalid_value":return r.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${Rt(r.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} ${o.verb} ${a}${r.maximum.toString()} ${o.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} s\u0103 fie ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Prea mic: a\u0219teptat ca ${r.origin} ${o.verb} ${a}${r.minimum.toString()} ${o.unit}`:`Prea mic: a\u0219teptat ca ${r.origin} s\u0103 fie ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${a.prefix}"`:a.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${a.suffix}"`:a.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${a.includes}"`:a.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${a.pattern}`:`Format invalid: ${n[a.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: ${st(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"}}};S2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \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 ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);if(o){let s=Number(r.maximum),l=jT(s,o.unit.one,o.unit.few,o.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 ${a}${r.maximum.toString()} ${l}`}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 ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);if(o){let s=Number(r.minimum),l=jT(s,o.unit.one,o.unit.few,o.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 ${a}${r.minimum.toString()} ${l}`}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 ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[a.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":""}: ${st(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"}}};$2e=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n={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",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${a}, prejeto ${s}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${Rt(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${a}${r.maximum.toString()} ${o.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${a}${r.minimum.toString()} ${o.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${n[a.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"}: ${st(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"}}};A2e=()=>{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"}};function t(r){return e[r]??null}let n={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-intervall",ipv6:"IPv6-intervall",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",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${a}, fick ${s}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${Rt(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${a}${r.maximum.toString()} ${o.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${a}${r.minimum.toString()} ${o.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${a.includes}"`:a.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${a.pattern}"`:`Ogiltig(t) ${n[a.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"}: ${st(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"}}};C2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"input"},i={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 a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \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 ${Rt(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 ${st(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\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"} ${a}${r.maximum.toString()} ${o.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"} ${a}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\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} ${a}${r.minimum.toString()} ${o.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} ${a}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${a.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:a.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${a.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 ${n[a.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":""}: ${st(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"}}};O2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={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 a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a} \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 ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",o=t(r.origin);return o?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${r.maximum.toString()} ${o.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${a} ${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",o=t(r.origin);return o?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${r.minimum.toString()} ${o.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${a} ${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:a.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 ${a.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[a.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: ${st(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"}}};j2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${a}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Rt(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${a}${r.maximum.toString()} ${o.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${a}${r.minimum.toString()} ${o.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Ge\xE7ersiz metin: "${a.prefix}" ile ba\u015Flamal\u0131`:a.format==="ends_with"?`Ge\xE7ersiz metin: "${a.suffix}" ile bitmeli`:a.format==="includes"?`Ge\xE7ersiz metin: "${a.includes}" i\xE7ermeli`:a.format==="regex"?`Ge\xE7ersiz metin: ${a.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[a.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":""}: ${st(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"}}};N2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \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 ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\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"} ${o.verb} ${a}${r.maximum.toString()} ${o.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 ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\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} ${o.verb} ${a}${r.minimum.toString()} ${o.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 ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.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 "${a.prefix}"`:a.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 "${a.suffix}"`:a.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 "${a.includes}"`:a.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 ${a.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[a.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":""}: ${st(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"}}};B2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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: ${a} \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: ${Rt(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${st(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${a}${r.maximum.toString()} ${o.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 ${a}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${a}${r.minimum.toString()} ${o.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 ${a}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${a.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:a.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${a.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[a.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":""}: ${st(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"}}};F2e=()=>{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 n={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",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${a}, qabul qilingan ${s}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${Rt(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Juda katta: kutilgan ${r.origin??"qiymat"} ${a}${r.maximum.toString()} ${o.unit} ${o.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Juda kichik: kutilgan ${r.origin} ${a}${r.minimum.toString()} ${o.unit} ${o.verb}`:`Juda kichik: kutilgan ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${a.prefix}" bilan boshlanishi kerak`:a.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${a.suffix}" bilan tugashi kerak`:a.format==="includes"?`Noto\u2018g\u2018ri satr: "${a.includes}" ni o\u2018z ichiga olishi kerak`:a.format==="regex"?`Noto\u2018g\u2018ri satr: ${a.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[a.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":""}: ${st(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"}}};z2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, 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 ${Rt(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 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o.verb} ${a}${r.maximum.toString()} ${o.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o.verb} ${a}${r.minimum.toString()} ${o.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${a.prefix}"`:a.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${a.suffix}"`:a.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${a.includes}"`:a.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${a.pattern}`:`${n[a.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: ${st(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"}}};q2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${Rt(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${a}${r.maximum.toString()} ${o.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${a}${r.minimum.toString()} ${o.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.prefix}" \u5F00\u5934`:a.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${a.suffix}" \u7ED3\u5C3E`:a.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${a.pattern}`:`\u65E0\u6548${n[a.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): ${st(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"}}};Z2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${Rt(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${a}${r.maximum.toString()} ${o.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${a}${r.maximum.toString()}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${a}${r.minimum.toString()} ${o.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${a}${r.minimum.toString()}`}case"invalid_format":{let a=r;return a.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.prefix}" \u958B\u982D`:a.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${a.suffix}" \u7D50\u5C3E`:a.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${a.includes}"`:a.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${a.pattern}`:`\u7121\u6548\u7684 ${n[a.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${st(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"}}};W2e=()=>{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"}};function t(r){return e[r]??null}let n={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",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",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let a=i[r.expected]??r.expected,o=Ft(r.input),s=i[o]??o;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 ${a}, \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 ${Rt(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${st(r.values,"|")}`;case"too_big":{let a=r.inclusive?"<=":"<",o=t(r.origin);return o?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${o.verb} ${a}${r.maximum} ${o.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${r.maximum}`}case"too_small":{let a=r.inclusive?">=":">",o=t(r.origin);return o?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${o.verb} ${a}${r.minimum} ${o.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${a}${r.minimum}`}case"invalid_format":{let a=r;return a.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 "${a.prefix}"`:a.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${a.suffix}"`:a.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${a.includes}"`:a.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${a.pattern}`:`A\u1E63\xEC\u1E63e: ${n[a.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: ${st(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"}}};Hz=Symbol("ZodOutput"),Jz=Symbol("ZodInput"),Yz=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let i={...n,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};(TT=globalThis).__zod_globalRegistry??(TT.__zod_globalRegistry=Dw());Ki=globalThis.__zod_globalRegistry;tU={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};LU=(e,t={})=>n=>{let i=tc({...n,processors:t});return xr(e,i),rc(i,e),nc(i,e)},Sp=(e,t,n={})=>i=>{let{libraryOptions:r,target:a}=i??{},o=tc({...r??{},target:a,io:t,processors:n});return xr(e,o),rc(o,e),nc(o,e)},y6e={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},FU=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:a,maximum:o,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(r.minLength=a),typeof o=="number"&&(r.maxLength=o),s&&(r.format=y6e[s]??s,r.format===""&&delete r.format,s==="time"&&delete r.format),u&&(r.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?r.pattern=c[0].source:c.length>1&&(r.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},MU=(e,t,n,i)=>{let r=n,{minimum:a,maximum:o,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number";let d=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(o??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";d?f?(r.minimum=c,r.exclusiveMinimum=!0):r.exclusiveMinimum=c:typeof a=="number"&&(r.minimum=a),p?f?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u:typeof o=="number"&&(r.maximum=o),typeof l=="number"&&(r.multipleOf=l)},zU=(e,t,n,i)=>{n.type="boolean"},UU=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},qU=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},VU=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},ZU=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},GU=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},WU=(e,t,n,i)=>{n.not={}},KU=(e,t,n,i)=>{},HU=(e,t,n,i)=>{},JU=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},YU=(e,t,n,i)=>{let r=e._zod.def,a=rw(r.entries);a.every(o=>typeof o=="number")&&(n.type="number"),a.every(o=>typeof o=="string")&&(n.type="string"),n.enum=a},XU=(e,t,n,i)=>{let r=e._zod.def,a=[];for(let o of r.values)if(o===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(o))}else a.push(o);if(a.length!==0)if(a.length===1){let o=a[0];n.type=o===null?"null":typeof o,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[o]:n.const=o}else a.every(o=>typeof o=="number")&&(n.type="number"),a.every(o=>typeof o=="string")&&(n.type="string"),a.every(o=>typeof o=="boolean")&&(n.type="boolean"),a.every(o=>o===null)&&(n.type="null"),n.enum=a},QU=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},eq=(e,t,n,i)=>{let r=n,a=e._zod.pattern;if(!a)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=a.source},tq=(e,t,n,i)=>{let r=n,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:l}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),l?l.length===1?(a.contentMediaType=l[0],Object.assign(r,a)):(Object.assign(r,a),r.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(r,a)},rq=(e,t,n,i)=>{n.type="boolean"},nq=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},iq=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},aq=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},oq=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},sq=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},uq=(e,t,n,i)=>{let r=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o=="number"&&(r.minItems=o),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=xr(a.element,t,{...i,path:[...i.path,"items"]})},lq=(e,t,n,i)=>{let r=n,a=e._zod.def;r.type="object",r.properties={};let o=a.shape;for(let u in o)r.properties[u]=xr(o[u],t,{...i,path:[...i.path,"properties",u]});let s=new Set(Object.keys(o)),l=new Set([...s].filter(u=>{let c=a.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(r.required=Array.from(l)),a.catchall?._zod.def.type==="never"?r.additionalProperties=!1:a.catchall?a.catchall&&(r.additionalProperties=xr(a.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},eE=(e,t,n,i)=>{let r=e._zod.def,a=r.inclusive===!1,o=r.options.map((s,l)=>xr(s,t,{...i,path:[...i.path,a?"oneOf":"anyOf",l]}));a?n.oneOf=o:n.anyOf=o},cq=(e,t,n,i)=>{let r=e._zod.def,a=xr(r.left,t,{...i,path:[...i.path,"allOf",0]}),o=xr(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=l},dq=(e,t,n,i)=>{let r=n,a=e._zod.def;r.type="array";let o=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=a.items.map((p,f)=>xr(p,t,{...i,path:[...i.path,o,f]})),u=a.rest?xr(a.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=l,u&&(r.items=u)):t.target==="openapi-3.0"?(r.items={anyOf:l},u&&r.items.anyOf.push(u),r.minItems=l.length,u||(r.maxItems=l.length)):(r.items=l,u&&(r.additionalItems=u));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(r.minItems=c),typeof d=="number"&&(r.maxItems=d)},pq=(e,t,n,i)=>{let r=n,a=e._zod.def;r.type="object";let o=a.keyType,l=o._zod.bag?.patterns;if(a.mode==="loose"&&l&&l.size>0){let c=xr(a.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let d of l)r.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=xr(a.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=xr(a.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let u=o._zod.values;if(u){let c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(r.required=c)}},fq=(e,t,n,i)=>{let r=e._zod.def,a=xr(r.innerType,t,i),o=t.seen.get(e);t.target==="openapi-3.0"?(o.ref=r.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},mq=(e,t,n,i)=>{let r=e._zod.def;xr(r.innerType,t,i);let a=t.seen.get(e);a.ref=r.innerType},hq=(e,t,n,i)=>{let r=e._zod.def;xr(r.innerType,t,i);let a=t.seen.get(e);a.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},gq=(e,t,n,i)=>{let r=e._zod.def;xr(r.innerType,t,i);let a=t.seen.get(e);a.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},vq=(e,t,n,i)=>{let r=e._zod.def;xr(r.innerType,t,i);let a=t.seen.get(e);a.ref=r.innerType;let o;try{o=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=o},yq=(e,t,n,i)=>{let r=e._zod.def,a=r.in._zod.traits.has("$ZodTransform"),o=t.io==="input"?a?r.out:r.in:r.out;xr(o,t,i);let s=t.seen.get(e);s.ref=o},_q=(e,t,n,i)=>{let r=e._zod.def;xr(r.innerType,t,i);let a=t.seen.get(e);a.ref=r.innerType,n.readOnly=!0},bq=(e,t,n,i)=>{let r=e._zod.def;xr(r.innerType,t,i);let a=t.seen.get(e);a.ref=r.innerType},tE=(e,t,n,i)=>{let r=e._zod.def;xr(r.innerType,t,i);let a=t.seen.get(e);a.ref=r.innerType},wq=(e,t,n,i)=>{let r=e._zod.innerType;xr(r,t,i);let a=t.seen.get(e);a.ref=r},n7={string:FU,number:MU,boolean:zU,bigint:UU,symbol:qU,null:VU,undefined:ZU,void:GU,never:WU,any:KU,unknown:HU,date:JU,enum:YU,literal:XU,nan:QU,template_literal:eq,file:tq,success:rq,custom:nq,function:iq,transform:aq,map:oq,set:sq,array:uq,object:lq,union:eE,intersection:cq,tuple:dq,record:pq,nullable:fq,nonoptional:mq,default:hq,prefault:gq,catch:vq,pipe:yq,readonly:_q,promise:bq,optional:tE,lazy:wq};_6e=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(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),this.ctx=tc({processors:n7,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return xr(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),rc(this.ctx,e);let n=nc(this.ctx,e),{"~standard":i,...r}=n;return r}},b6e={},Sq={};Nn(Sq,{ZodAny:()=>mE,ZodArray:()=>yE,ZodBase64:()=>Ov,ZodBase64URL:()=>Iv,ZodBigInt:()=>cf,ZodBigIntFormat:()=>Nv,ZodBoolean:()=>lf,ZodCIDRv4:()=>Cv,ZodCIDRv6:()=>Pv,ZodCUID:()=>Ev,ZodCUID2:()=>Sv,ZodCatch:()=>ME,ZodCodec:()=>hf,ZodCustom:()=>gf,ZodCustomStringFormat:()=>mc,ZodDate:()=>Bv,ZodDefault:()=>TE,ZodDiscriminatedUnion:()=>bE,ZodE164:()=>jv,ZodEmail:()=>_v,ZodEmoji:()=>bv,ZodEnum:()=>ac,ZodExactOptional:()=>OE,ZodFile:()=>CE,ZodFunction:()=>JE,ZodGUID:()=>$p,ZodIPv4:()=>Av,ZodIPv6:()=>Dv,ZodIntersection:()=>wE,ZodJWT:()=>Tv,ZodKSUID:()=>xv,ZodLazy:()=>WE,ZodLiteral:()=>DE,ZodMAC:()=>sE,ZodMap:()=>xE,ZodNaN:()=>UE,ZodNanoID:()=>wv,ZodNever:()=>gE,ZodNonOptional:()=>Uv,ZodNull:()=>pE,ZodNullable:()=>jE,ZodNumber:()=>uf,ZodNumberFormat:()=>ku,ZodObject:()=>pf,ZodOptional:()=>zv,ZodPipe:()=>mf,ZodPrefault:()=>RE,ZodPreprocess:()=>qE,ZodPromise:()=>HE,ZodReadonly:()=>VE,ZodRecord:()=>ic,ZodSet:()=>AE,ZodString:()=>of,ZodStringFormat:()=>Or,ZodSuccess:()=>FE,ZodSymbol:()=>cE,ZodTemplateLiteral:()=>GE,ZodTransform:()=>PE,ZodTuple:()=>SE,ZodType:()=>Qt,ZodULID:()=>kv,ZodURL:()=>sf,ZodUUID:()=>Na,ZodUndefined:()=>dE,ZodUnion:()=>ff,ZodUnknown:()=>hE,ZodVoid:()=>vE,ZodXID:()=>$v,ZodXor:()=>_E,_ZodString:()=>yv,_default:()=>NE,_function:()=>gg,any:()=>$V,array:()=>df,base64:()=>uV,base64url:()=>lV,bigint:()=>bV,boolean:()=>lE,catch:()=>zE,check:()=>KV,cidrv4:()=>oV,cidrv6:()=>sV,codec:()=>VV,cuid:()=>Xq,cuid2:()=>Qq,custom:()=>HV,date:()=>AV,describe:()=>JV,discriminatedUnion:()=>jV,e164:()=>cV,email:()=>Uq,emoji:()=>Jq,enum:()=>Fv,exactOptional:()=>IE,file:()=>MV,float32:()=>gV,float64:()=>vV,function:()=>gg,guid:()=>qq,hash:()=>hV,hex:()=>mV,hostname:()=>fV,httpUrl:()=>Hq,instanceof:()=>XV,int:()=>mg,int32:()=>yV,int64:()=>wV,intersection:()=>EE,invertCodec:()=>ZV,ipv4:()=>nV,ipv6:()=>aV,json:()=>eZ,jwt:()=>dV,keyof:()=>DV,ksuid:()=>rV,lazy:()=>KE,literal:()=>FV,looseObject:()=>OV,looseRecord:()=>NV,mac:()=>iV,map:()=>RV,meta:()=>YV,nan:()=>qV,nanoid:()=>Yq,nativeEnum:()=>LV,never:()=>Rv,nonoptional:()=>LE,null:()=>fE,nullable:()=>Ap,nullish:()=>zV,number:()=>uE,object:()=>CV,optional:()=>xp,partialRecord:()=>TV,pipe:()=>hg,prefault:()=>BE,preprocess:()=>tZ,promise:()=>WV,readonly:()=>ZE,record:()=>$E,refine:()=>YE,set:()=>BV,strictObject:()=>PV,string:()=>kp,stringFormat:()=>pV,stringbool:()=>QV,success:()=>UV,superRefine:()=>XE,symbol:()=>SV,templateLiteral:()=>GV,transform:()=>Mv,tuple:()=>kE,uint32:()=>_V,uint64:()=>EV,ulid:()=>eV,undefined:()=>kV,union:()=>Lv,unknown:()=>pu,url:()=>Kq,uuid:()=>Vq,uuidv4:()=>Zq,uuidv6:()=>Gq,uuidv7:()=>Wq,void:()=>xV,xid:()=>tV,xor:()=>IV});kq={};Nn(kq,{endsWith:()=>dv,gt:()=>ls,gte:()=>oi,includes:()=>lv,length:()=>rf,lowercase:()=>sv,lt:()=>us,lte:()=>Hi,maxLength:()=>tf,maxSize:()=>fc,mime:()=>pv,minLength:()=>du,minSize:()=>cs,multipleOf:()=>ec,negative:()=>Jw,nonnegative:()=>Xw,nonpositive:()=>Yw,normalize:()=>fv,overwrite:()=>vo,positive:()=>Hw,property:()=>Qw,regex:()=>ov,size:()=>ef,slugify:()=>vv,startsWith:()=>cv,toLowerCase:()=>hv,toUpperCase:()=>gv,trim:()=>mv,uppercase:()=>uv});rE={};Nn(rE,{ZodISODate:()=>iE,ZodISODateTime:()=>nE,ZodISODuration:()=>oE,ZodISOTime:()=>aE,date:()=>xq,datetime:()=>$q,duration:()=>Dq,time:()=>Aq});nE=Ne("ZodISODateTime",(e,t)=>{VM.init(e,t),Or.init(e,t)});iE=Ne("ZodISODate",(e,t)=>{ZM.init(e,t),Or.init(e,t)});aE=Ne("ZodISOTime",(e,t)=>{GM.init(e,t),Or.init(e,t)});oE=Ne("ZodISODuration",(e,t)=>{WM.init(e,t),Or.init(e,t)});Cq=(e,t)=>{iw.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>ow(e,n)},flatten:{value:n=>aw(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,lg,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,lg,2)}},isEmpty:{get(){return e.issues.length===0}}})},w6e=Ne("ZodError",Cq),Oi=Ne("ZodError",Cq,{Parent:Error}),Pq=Gp(Oi),Oq=Wp(Oi),Iq=Kp(Oi),jq=Hp(Oi),Tq=sw(Oi),Nq=uw(Oi),Rq=lw(Oi),Bq=cw(Oi),Lq=dw(Oi),Fq=pw(Oi),Mq=fw(Oi),zq=mw(Oi),NT=new WeakMap;Qt=Ne("ZodType",(e,t)=>(Ht.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Sp(e,"input"),output:Sp(e,"output")}}),e.toJSONSchema=LU(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,i)=>Pq(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Iq(e,n,i),e.parseAsync=async(n,i)=>Oq(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>jq(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Tq(e,n,i),e.decode=(n,i)=>Nq(e,n,i),e.encodeAsync=async(n,i)=>Rq(e,n,i),e.decodeAsync=async(n,i)=>Bq(e,n,i),e.safeEncode=(n,i)=>Lq(e,n,i),e.safeDecode=(n,i)=>Fq(e,n,i),e.safeEncodeAsync=async(n,i)=>Mq(e,n,i),e.safeDecodeAsync=async(n,i)=>zq(e,n,i),af(e,"ZodType",{check(...n){let i=this.def;return this.clone(sr.mergeDefs(i,{checks:[...i.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,i){return Xi(this,n,i)},brand(){return this},register(n,i){return n.add(this,i),this},refine(n,i){return this.check(YE(n,i))},superRefine(n,i){return this.check(XE(n,i))},overwrite(n){return this.check(vo(n))},optional(){return xp(this)},exactOptional(){return IE(this)},nullable(){return Ap(this)},nullish(){return xp(Ap(this))},nonoptional(n){return LE(this,n)},array(){return df(this)},or(n){return Lv([this,n])},and(n){return EE(this,n)},transform(n){return hg(this,Mv(n))},default(n){return NE(this,n)},prefault(n){return BE(this,n)},catch(n){return zE(this,n)},pipe(n){return hg(this,n)},readonly(){return ZE(this)},describe(n){let i=this.clone();return Ki.add(i,{description:n}),i},meta(...n){if(n.length===0)return Ki.get(this);let i=this.clone();return Ki.add(i,n[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Ki.get(e)?.description},configurable:!0}),e)),yv=Ne("_ZodString",(e,t)=>{Qp.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(i,r,a)=>FU(e,i,r,a);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,af(e,"_ZodString",{regex(...i){return this.check(ov(...i))},includes(...i){return this.check(lv(...i))},startsWith(...i){return this.check(cv(...i))},endsWith(...i){return this.check(dv(...i))},min(...i){return this.check(du(...i))},max(...i){return this.check(tf(...i))},length(...i){return this.check(rf(...i))},nonempty(...i){return this.check(du(1,...i))},lowercase(i){return this.check(sv(i))},uppercase(i){return this.check(uv(i))},trim(){return this.check(mv())},normalize(...i){return this.check(fv(...i))},toLowerCase(){return this.check(hv())},toUpperCase(){return this.check(gv())},slugify(){return this.check(vv())}})}),of=Ne("ZodString",(e,t)=>{Qp.init(e,t),yv.init(e,t),e.email=n=>e.check(Cw(_v,n)),e.url=n=>e.check(av(sf,n)),e.jwt=n=>e.check(Kw(Tv,n)),e.emoji=n=>e.check(Tw(bv,n)),e.guid=n=>e.check(fg($p,n)),e.uuid=n=>e.check(Pw(Na,n)),e.uuidv4=n=>e.check(Ow(Na,n)),e.uuidv6=n=>e.check(Iw(Na,n)),e.uuidv7=n=>e.check(jw(Na,n)),e.nanoid=n=>e.check(Nw(wv,n)),e.guid=n=>e.check(fg($p,n)),e.cuid=n=>e.check(Rw(Ev,n)),e.cuid2=n=>e.check(Bw(Sv,n)),e.ulid=n=>e.check(Lw(kv,n)),e.base64=n=>e.check(Zw(Ov,n)),e.base64url=n=>e.check(Gw(Iv,n)),e.xid=n=>e.check(Fw($v,n)),e.ksuid=n=>e.check(Mw(xv,n)),e.ipv4=n=>e.check(zw(Av,n)),e.ipv6=n=>e.check(Uw(Dv,n)),e.cidrv4=n=>e.check(qw(Cv,n)),e.cidrv6=n=>e.check(Vw(Pv,n)),e.e164=n=>e.check(Ww(jv,n)),e.datetime=n=>e.check($q(n)),e.date=n=>e.check(xq(n)),e.time=n=>e.check(Aq(n)),e.duration=n=>e.check(Dq(n))});Or=Ne("ZodStringFormat",(e,t)=>{Pr.init(e,t),yv.init(e,t)}),_v=Ne("ZodEmail",(e,t)=>{NM.init(e,t),Or.init(e,t)});$p=Ne("ZodGUID",(e,t)=>{jM.init(e,t),Or.init(e,t)});Na=Ne("ZodUUID",(e,t)=>{TM.init(e,t),Or.init(e,t)});sf=Ne("ZodURL",(e,t)=>{RM.init(e,t),Or.init(e,t)});bv=Ne("ZodEmoji",(e,t)=>{BM.init(e,t),Or.init(e,t)});wv=Ne("ZodNanoID",(e,t)=>{LM.init(e,t),Or.init(e,t)});Ev=Ne("ZodCUID",(e,t)=>{FM.init(e,t),Or.init(e,t)});Sv=Ne("ZodCUID2",(e,t)=>{MM.init(e,t),Or.init(e,t)});kv=Ne("ZodULID",(e,t)=>{zM.init(e,t),Or.init(e,t)});$v=Ne("ZodXID",(e,t)=>{UM.init(e,t),Or.init(e,t)});xv=Ne("ZodKSUID",(e,t)=>{qM.init(e,t),Or.init(e,t)});Av=Ne("ZodIPv4",(e,t)=>{KM.init(e,t),Or.init(e,t)});sE=Ne("ZodMAC",(e,t)=>{JM.init(e,t),Or.init(e,t)});Dv=Ne("ZodIPv6",(e,t)=>{HM.init(e,t),Or.init(e,t)});Cv=Ne("ZodCIDRv4",(e,t)=>{YM.init(e,t),Or.init(e,t)});Pv=Ne("ZodCIDRv6",(e,t)=>{XM.init(e,t),Or.init(e,t)});Ov=Ne("ZodBase64",(e,t)=>{QM.init(e,t),Or.init(e,t)});Iv=Ne("ZodBase64URL",(e,t)=>{tz.init(e,t),Or.init(e,t)});jv=Ne("ZodE164",(e,t)=>{rz.init(e,t),Or.init(e,t)});Tv=Ne("ZodJWT",(e,t)=>{iz.init(e,t),Or.init(e,t)});mc=Ne("ZodCustomStringFormat",(e,t)=>{az.init(e,t),Or.init(e,t)});uf=Ne("ZodNumber",(e,t)=>{bw.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(i,r,a)=>MU(e,i,r,a),af(e,"ZodNumber",{gt(i,r){return this.check(ls(i,r))},gte(i,r){return this.check(oi(i,r))},min(i,r){return this.check(oi(i,r))},lt(i,r){return this.check(us(i,r))},lte(i,r){return this.check(Hi(i,r))},max(i,r){return this.check(Hi(i,r))},int(i){return this.check(mg(i))},safe(i){return this.check(mg(i))},positive(i){return this.check(ls(0,i))},nonnegative(i){return this.check(oi(0,i))},negative(i){return this.check(us(0,i))},nonpositive(i){return this.check(Hi(0,i))},multipleOf(i,r){return this.check(ec(i,r))},step(i,r){return this.check(ec(i,r))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});ku=Ne("ZodNumberFormat",(e,t)=>{oz.init(e,t),uf.init(e,t)});lf=Ne("ZodBoolean",(e,t)=>{ww.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zU(e,n,i,r)});cf=Ne("ZodBigInt",(e,t)=>{Ew.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(i,r,a)=>UU(e,i,r,a),e.gte=(i,r)=>e.check(oi(i,r)),e.min=(i,r)=>e.check(oi(i,r)),e.gt=(i,r)=>e.check(ls(i,r)),e.gte=(i,r)=>e.check(oi(i,r)),e.min=(i,r)=>e.check(oi(i,r)),e.lt=(i,r)=>e.check(us(i,r)),e.lte=(i,r)=>e.check(Hi(i,r)),e.max=(i,r)=>e.check(Hi(i,r)),e.positive=i=>e.check(ls(BigInt(0),i)),e.negative=i=>e.check(us(BigInt(0),i)),e.nonpositive=i=>e.check(Hi(BigInt(0),i)),e.nonnegative=i=>e.check(oi(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(ec(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});Nv=Ne("ZodBigIntFormat",(e,t)=>{sz.init(e,t),cf.init(e,t)});cE=Ne("ZodSymbol",(e,t)=>{uz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qU(e,n,i,r)});dE=Ne("ZodUndefined",(e,t)=>{lz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ZU(e,n,i,r)});pE=Ne("ZodNull",(e,t)=>{cz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>VU(e,n,i,r)});mE=Ne("ZodAny",(e,t)=>{dz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>KU(e,n,i,r)});hE=Ne("ZodUnknown",(e,t)=>{pz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>HU(e,n,i,r)});gE=Ne("ZodNever",(e,t)=>{fz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>WU(e,n,i,r)});vE=Ne("ZodVoid",(e,t)=>{mz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>GU(e,n,i,r)});Bv=Ne("ZodDate",(e,t)=>{hz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(i,r,a)=>JU(e,i,r,a),e.min=(i,r)=>e.check(oi(i,r)),e.max=(i,r)=>e.check(Hi(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});yE=Ne("ZodArray",(e,t)=>{gz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>uq(e,n,i,r),e.element=t.element,af(e,"ZodArray",{min(n,i){return this.check(du(n,i))},nonempty(n){return this.check(du(1,n))},max(n,i){return this.check(tf(n,i))},length(n,i){return this.check(rf(n,i))},unwrap(){return this.element}})});pf=Ne("ZodObject",(e,t)=>{bz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lq(e,n,i,r),sr.defineLazy(e,"shape",()=>t.shape),af(e,"ZodObject",{keyof(){return Fv(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:pu()})},loose(){return this.clone({...this._zod.def,catchall:pu()})},strict(){return this.clone({...this._zod.def,catchall:Rv()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return sr.extend(this,n)},safeExtend(n){return sr.safeExtend(this,n)},merge(n){return sr.merge(this,n)},pick(n){return sr.pick(this,n)},omit(n){return sr.omit(this,n)},partial(...n){return sr.partial(zv,this,n[0])},required(...n){return sr.required(Uv,this,n[0])}})});ff=Ne("ZodUnion",(e,t)=>{iv.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>eE(e,n,i,r),e.options=t.options});_E=Ne("ZodXor",(e,t)=>{ff.init(e,t),wz.init(e,t),e._zod.processJSONSchema=(n,i,r)=>eE(e,n,i,r),e.options=t.options});bE=Ne("ZodDiscriminatedUnion",(e,t)=>{ff.init(e,t),Ez.init(e,t)});wE=Ne("ZodIntersection",(e,t)=>{Sz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cq(e,n,i,r)});SE=Ne("ZodTuple",(e,t)=>{Sw.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dq(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});ic=Ne("ZodRecord",(e,t)=>{kz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pq(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});xE=Ne("ZodMap",(e,t)=>{$z.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>oq(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(cs(...n)),e.nonempty=n=>e.check(cs(1,n)),e.max=(...n)=>e.check(fc(...n)),e.size=(...n)=>e.check(ef(...n))});AE=Ne("ZodSet",(e,t)=>{xz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sq(e,n,i,r),e.min=(...n)=>e.check(cs(...n)),e.nonempty=n=>e.check(cs(1,n)),e.max=(...n)=>e.check(fc(...n)),e.size=(...n)=>e.check(ef(...n))});ac=Ne("ZodEnum",(e,t)=>{Az.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(i,r,a)=>YU(e,i,r,a),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let a={};for(let o of i)if(n.has(o))a[o]=t.entries[o];else throw new Error(`Key ${o} not found in enum`);return new ac({...t,checks:[],...sr.normalizeParams(r),entries:a})},e.exclude=(i,r)=>{let a={...t.entries};for(let o of i)if(n.has(o))delete a[o];else throw new Error(`Key ${o} not found in enum`);return new ac({...t,checks:[],...sr.normalizeParams(r),entries:a})}});DE=Ne("ZodLiteral",(e,t)=>{Dz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>XU(e,n,i,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]}})});CE=Ne("ZodFile",(e,t)=>{Cz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tq(e,n,i,r),e.min=(n,i)=>e.check(cs(n,i)),e.max=(n,i)=>e.check(fc(n,i)),e.mime=(n,i)=>e.check(pv(Array.isArray(n)?n:[n],i))});PE=Ne("ZodTransform",(e,t)=>{Pz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>aq(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new ev(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(sr.issue(a,n.value,t));else{let o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=e),n.issues.push(sr.issue(o))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});zv=Ne("ZodOptional",(e,t)=>{kw.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tE(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});OE=Ne("ZodExactOptional",(e,t)=>{Oz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tE(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});jE=Ne("ZodNullable",(e,t)=>{Iz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fq(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});TE=Ne("ZodDefault",(e,t)=>{jz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hq(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});RE=Ne("ZodPrefault",(e,t)=>{Tz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gq(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});Uv=Ne("ZodNonOptional",(e,t)=>{Nz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mq(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});FE=Ne("ZodSuccess",(e,t)=>{Rz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rq(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});ME=Ne("ZodCatch",(e,t)=>{Bz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vq(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});UE=Ne("ZodNaN",(e,t)=>{Lz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>QU(e,n,i,r)});mf=Ne("ZodPipe",(e,t)=>{$w.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yq(e,n,i,r),e.in=t.in,e.out=t.out});hf=Ne("ZodCodec",(e,t)=>{mf.init(e,t),xw.init(e,t)});qE=Ne("ZodPreprocess",(e,t)=>{mf.init(e,t),Fz.init(e,t)}),VE=Ne("ZodReadonly",(e,t)=>{Mz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_q(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});GE=Ne("ZodTemplateLiteral",(e,t)=>{zz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>eq(e,n,i,r)});WE=Ne("ZodLazy",(e,t)=>{Vz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wq(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});HE=Ne("ZodPromise",(e,t)=>{qz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bq(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});JE=Ne("ZodFunction",(e,t)=>{Uz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>iq(e,n,i,r)});gf=Ne("ZodCustom",(e,t)=>{Zz.init(e,t),Qt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>nq(e,n,i,r)});JV=NU,YV=RU;QV=(...e)=>BU({Codec:hf,Boolean:lf,String:of},...e);E6e={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"};i7||(i7={});wt={...Sq,...kq,iso:rE},$6e=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"]);nZ={};Nn(nZ,{bigint:()=>I6e,boolean:()=>O6e,date:()=>j6e,number:()=>P6e,string:()=>C6e});xn(Gz());vf=U.object({title:U.string(),content:U.string().optional(),list:U.enum(["agents","workflow","validations","guardrails"]).optional()}).passthrough(),QE=U.object({id:U.string(),name:U.string().optional(),description:U.string(),severity:U.enum(["mandatory","recommended","optional"]),detection_method:U.string().optional(),escalation:U.string().optional(),ref:U.string().optional()}).passthrough(),eS=U.object({condition:U.string(),action:U.enum(["stop_and_report","report_to_architect","wait_for_approval"])}).passthrough(),iZ=U.object({action:U.enum(["read","execute"]),target:U.string(),required:U.boolean()}).passthrough(),aZ=U.object({resumable:U.boolean().optional(),ref_required:U.boolean().optional(),emits_memory_ref:U.boolean().optional()}),oZ=U.object({role_name:U.string(),purpose:U.string(),own_artifacts:U.array(U.string()).default([]),can_read_artifacts:U.array(U.string()).default([]),can_write_artifacts:U.array(U.string()).default([]),can_execute_tools:U.array(U.string()).default([]),can_perform_validations:U.array(U.string()).default([]),can_invoke_agents:U.array(U.string()).default([]),can_return_handoffs:U.array(U.string()).default([]),dispatch_only:U.boolean().optional(),mode:U.enum(["read-only","read-write"]).optional(),responsibilities:U.array(U.string()).optional(),constraints:U.array(U.string()).optional(),rules:U.array(QE).optional(),anti_patterns:U.array(U.string()).optional(),escalation_criteria:U.array(eS).optional(),sections:U.array(vf).optional(),prerequisites:U.array(iZ).optional(),guardrails:U.array(U.string()).optional(),memory:aZ.optional()}).passthrough(),sZ=U.object({type:U.string(),description:U.string().optional(),owner:U.string().optional(),producers:U.array(U.string()).default([]),editors:U.array(U.string()).default([]),consumers:U.array(U.string()).default([]),states:U.array(U.string()).default([]),required_validations:U.array(U.string()).default([]),visibility:U.string().optional(),classification:U.string().optional(),guardrails:U.array(U.string()).optional(),authority:U.enum(["canonical","derived","generated","control"]).optional(),path_patterns:U.array(U.string()).optional(),exclude_patterns:U.array(U.string()).optional(),manual_edit:U.enum(["allowed","discouraged","forbidden"]).optional(),change_control:U.enum(["none","approval-required","regeneration-required"]).optional()}).passthrough(),qv=["agent","task","artifact","tool","validation","handoff_type","workflow","policy","guardrail","guardrail_policy","system","navigation_index"],tS=U.enum(qv),T6e=qv.filter(e=>e!=="system"&&e!=="navigation_index"),N6e=U.object({type:U.literal("command_regex"),pattern:U.string()}).passthrough(),R6e=U.object({type:U.literal("content_regex"),pattern:U.string(),file_glob:U.string().optional(),exclude_glob:U.string().optional()}).passthrough(),B6e=U.object({type:U.literal("file_glob"),pattern:U.string(),exclude_glob:U.string().optional()}).passthrough(),uZ=U.discriminatedUnion("type",[N6e,R6e,B6e]),lZ=U.object({matcher:uZ.optional(),script:U.string().optional(),message:U.string().optional()}).passthrough(),cZ=U.object({target:U.string(),template:U.string().optional(),inline_template:U.string().optional(),source:U.string().optional(),mode:U.enum(["write","patch"]).default("write"),format:U.enum(["json","yaml","text"]).optional(),patch_strategy:U.enum(["deep_merge","append"]).optional(),array_merge_key:U.string().optional(),group_by:U.string().optional(),executable:U.boolean().optional(),skip_empty:U.boolean().optional()}).passthrough().refine(e=>{let t=[e.template,e.inline_template,e.source].filter(Boolean).length;return t===1||t===0},{message:"Only one of template, inline_template, or source may be specified"}),dZ=U.object({commands:U.record(U.string(),U.string()),fail_open:U.boolean().default(!0),timeout_ms:U.number().default(5e3)}).passthrough(),L6e=U.object({checks:U.array(lZ)}),pZ=U.object({template:U.string().optional(),inline_template:U.string().optional(),context:tS,output:U.string(),include:U.array(U.string()).optional(),exclude:U.array(U.string()).optional(),skip_empty:U.boolean().optional(),executable:U.boolean().optional()}).passthrough().refine(e=>[e.template,e.inline_template].filter(Boolean).length===1,{message:"Exactly one of template or inline_template must be specified"}).refine(e=>!(e.include&&e.exclude),{message:"include and exclude are mutually exclusive"}).refine(e=>!(e.context==="system"&&(e.include||e.exclude)),{message:"include/exclude cannot be used with context: system"}),fZ=U.object({software:U.string(),version:U.literal(1),extends:U.string().optional(),guardrail_impl:U.record(U.string(),L6e).optional(),outputs:U.record(U.string(),cZ).optional(),renders:U.array(pZ).optional(),reporting:dZ.optional()}).passthrough(),mZ=U.object({version:U.number(),description:U.string().optional(),schema:U.record(U.string(),U.any()),example:U.record(U.string(),U.any()).optional()}).passthrough(),hZ=U.object({agents:U.array(U.string()).optional(),tasks:U.array(U.string()).optional(),tools:U.array(U.string()).optional(),artifacts:U.array(U.string()).optional(),workflows:U.array(U.string()).optional()}).passthrough(),gZ=U.object({description:U.string(),scope:hZ,rationale:U.string().optional(),tags:U.array(U.string()).default([]),exemptions:U.array(U.string()).optional()}).passthrough(),vZ=U.object({target:U.string(),condition:U.string().optional()}).passthrough(),vg=U.enum(["block","warn","shadow","info"]),yZ=U.object({default:vg,when:U.record(U.string(),vg)}),_Z=U.union([vg,yZ]),bZ=U.object({guardrail:U.string(),severity:U.enum(["critical","mandatory","warning","info"]),action:_Z,allow_override:U.boolean().default(!1),override_requires:U.array(U.string()).optional(),escalation:vZ.optional()}).passthrough(),wZ=U.object({description:U.string().optional(),rules:U.array(bZ)}).passthrough(),EZ=U.object({artifact_type:U.string().optional(),workflow:U.string().optional()}).passthrough(),SZ=U.object({when:EZ,requires_validations:U.array(U.string()).optional(),requires:U.array(U.string()).optional()}).passthrough(),F6e=U.literal(1),M6e=U.string().optional(),kZ=U.record(U.string(),U.array(U.string())).optional(),$Z=U.object({id:U.string(),name:U.string(),default_workflow_order:U.array(U.string()),sections:U.array(vf).optional(),context_loading:kZ,states:U.array(U.string()).default([])}).passthrough(),xZ=U.enum(["fast","standard","thinking"]),AZ=U.object({id:U.string(),action:U.string(),description:U.string().optional(),required:U.boolean().optional(),abort_on_failure:U.boolean().optional(),uses_tool:U.string().optional(),produces_artifact:U.string().optional(),reads_artifact:U.string().optional(),validates_artifact:U.string().optional(),validation_kind:U.enum(["schema","mechanical","semantic","approval","provenance","traceability","fidelity"]).optional(),depends_on:U.array(U.string()).optional(),skip_condition:U.string().optional(),wait_for_approval:U.boolean().optional()}).passthrough(),DZ=U.object({description:U.string(),target_agent:U.string(),allowed_from_agents:U.array(U.string()).default([]),workflow:U.string(),input_artifacts:U.array(U.string()),invocation_handoff:U.string(),result_handoff:U.string(),default_priority:U.string().optional(),responsibilities:U.array(U.string()).optional(),constraints:U.array(U.string()).optional(),execution_steps:U.array(AZ).optional(),completion_criteria:U.array(U.string()).optional(),rules:U.array(QE).optional(),anti_patterns:U.array(U.string()).optional(),escalation_criteria:U.array(eS).optional(),sections:U.array(vf).optional(),validations:U.array(U.string()).default([]),guardrails:U.array(U.string()).optional(),model_class:xZ.optional()}).passthrough(),CZ=U.object({interface:U.string(),version:U.string().optional()}).passthrough(),PZ=U.object({internal_workflow:U.string().optional(),input_handoff:U.string(),output_handoff:U.string(),description:U.string().optional()}).passthrough(),OZ=U.object({version:U.number(),description:U.string().optional(),accepts:U.object({workflows:U.record(U.string(),PZ)}).passthrough().optional(),exposes:U.object({artifacts:U.array(U.string())}).passthrough().optional(),constraints:U.array(U.string()).optional()}).passthrough(),IZ=U.object({command:U.string(),category:U.string(),reads:U.array(U.string()).default([]),writes:U.array(U.string()).default([]),purpose:U.string().optional()}),jZ=U.object({kind:U.string().optional(),extends:U.string().optional(),command:U.string().optional(),description:U.string().optional(),input_artifacts:U.array(U.string()).default([]),output_artifacts:U.array(U.string()).default([]),invokable_by:U.array(U.string()).default([]),cli_contract:U.string().optional(),artifact_bindings:U.record(U.string(),U.string()).default({}),side_effects:U.array(U.string()).default([]),commands:U.array(IZ).default([]),guardrails:U.array(U.string()).optional()}).passthrough(),TZ=U.object({target_artifact:U.string(),kind:U.enum(["schema","mechanical","semantic","approval","provenance","traceability","fidelity"]),executor_type:U.enum(["tool","agent"]).optional(),executor:U.string().optional(),blocking:U.boolean(),produces_evidence:U.string().optional(),description:U.string().optional()}).passthrough(),NZ=U.object({condition:U.string(),fix_task:U.string(),revalidate_task:U.string().optional()}),z6e=U.object({id:U.string(),kind:U.enum(["actor","participant"]),label:U.string(),description:U.string().optional()}),U6e=U.object({type:U.literal("delegate"),description:U.string().optional(),task:U.string(),from_agent:U.string(),group:U.string().optional(),depends_on:U.array(U.string()).optional(),max_retries:U.number().int().min(0).optional(),max_follow_ups:U.number().int().min(0).optional(),retry:NZ.optional()}).passthrough(),q6e=U.object({type:U.literal("gate"),description:U.string().optional(),gate_kind:U.string(),group:U.string().optional(),depends_on:U.array(U.string()).optional()}).passthrough(),V6e=U.object({type:U.literal("handoff"),description:U.string().optional(),handoff_kind:U.string(),task:U.string().optional(),from_agent:U.string().optional(),group:U.string().optional(),depends_on:U.array(U.string()).optional(),retry:NZ.optional()}).passthrough(),Z6e=U.object({type:U.literal("validation"),description:U.string().optional(),validation:U.string(),group:U.string().optional(),depends_on:U.array(U.string()).optional()}).passthrough(),G6e=U.object({type:U.literal("decision"),description:U.string().optional(),on:U.string().optional(),routing_key:U.string().optional(),branches:U.record(U.string(),U.array(U.string())),group:U.string().optional(),depends_on:U.array(U.string()).optional()}).passthrough(),W6e=U.object({type:U.literal("team_task"),description:U.string().optional(),to_team:U.string(),workflow:U.string(),handoff:U.string(),expects:U.string(),group:U.string().optional(),depends_on:U.array(U.string()).optional()}).passthrough(),RZ=U.discriminatedUnion("type",[U6e,q6e,V6e,Z6e,G6e,W6e]),BZ=U.object({description:U.string().optional(),entry_conditions:U.array(U.string()).default([]),trigger:U.string().optional(),steps:U.array(RZ),sections:U.array(vf).optional(),external_participants:U.array(z6e).default([])}).passthrough(),LZ=U.object({schemas:U.record(U.string(),U.record(U.string(),U.any())).default({})}).passthrough(),rS=["root","system","agent","task","execution_step","artifact","tool","tool_command","validation","handoff_type","workflow","workflow_step","policy","guardrail","guardrail_policy","rule","escalation_criterion","prerequisite"],FZ=U.enum(rS),MZ=U.object({type:U.string(),items:U.string().optional(),description:U.string().optional(),scope:U.array(FZ).optional(),schema:U.record(U.string(),U.any()).optional(),required:U.boolean().default(!1)}),yg=U.object({version:U.literal(1),extends:U.string().optional(),system:$Z,agents:U.record(U.string(),oZ).default({}),tasks:U.record(U.string(),DZ).default({}),artifacts:U.record(U.string(),sZ).default({}),tools:U.record(U.string(),jZ).default({}),validations:U.record(U.string(),TZ).default({}),handoff_types:U.record(U.string(),mZ).default({}),team_interface:OZ.optional(),imports:U.record(U.string(),CZ).optional(),workflow:U.record(U.string(),BZ).default({}),policies:U.record(U.string(),SZ).default({}),guardrails:U.record(U.string(),gZ).default({}),guardrail_policies:U.record(U.string(),wZ).default({}),components:LZ.default({schemas:{}}),extensions:U.record(U.string(),MZ).default({}),extensions_strict:U.boolean().default(!1)}).passthrough();H6e=U.object({$append:U.record(U.string(),U.any())}),J6e=U.object({$prepend:U.record(U.string(),U.any())}),Y6e=U.object({$insert_after:U.object({after:U.string(),entries:U.record(U.string(),U.any())})}),X6e=U.object({$replace:U.any()}),Q6e=U.object({$remove:U.array(U.union([U.string(),U.object({id:U.string()})]))}),e3e=Qr(oc(),1),Hr=class extends Error{constructor(e,t){super(e),this.filePath=t,this.name="DslLoadError"}filePath};yf=class extends Error{constructor(e){super(e),this.name="BaseResolveError"}};ma=class extends Error{constructor(e){super(e),this.name="MergeError"}};h3e=new Set(["$append","$prepend","$insert_after","$replace","$remove"]);v3e={agents:"map",tasks:"map",artifacts:"map",tools:"map",validations:"map",handoff_types:"map",imports:"map",workflow:"map",policies:"map",guardrails:"map",guardrail_policies:"map",components:"map",extensions:"map",system:"object"};RT=class extends Error{constructor(e){super(e),this.name="ToolExtendsError"}};S3e=Qr(fs(),1);I3e=Qr(fs(),1),A8=new I3e.default({allErrors:!0,strict:!1});T3e={id:"validation-coverage",description:"Every artifact should have at least one validation. Code/config artifacts should have mechanical validation.",run(e){let t=[],n=new Map;for(let a of Object.values(e.validations))n.has(a.target_artifact)||n.set(a.target_artifact,new Set),n.get(a.target_artifact).add(a.kind);let i=["code","config","schema"];for(let[a,o]of Object.entries(e.artifacts)){let s=n.get(a);if(!s||s.size===0){t.push({ruleId:"validation-coverage",severity:"warning",path:`artifacts.${a}`,message:`Artifact "${a}" has no validations defined`});continue}i.includes(o.type)&&!s.has("mechanical")&&!s.has("schema")&&t.push({ruleId:"validation-coverage",severity:"warning",path:`artifacts.${a}`,message:`Artifact "${a}" (type: ${o.type}) lacks mechanical or schema validation`})}for(let[a,o]of Object.entries(e.artifacts))o.required_validations.length===0&&t.push({ruleId:"validation-coverage",severity:"warning",path:`artifacts.${a}`,message:`Artifact "${a}" has empty required_validations`});let r=new Set;for(let a of Object.values(e.workflow))for(let o of a.steps)o.type==="validation"&&r.add(o.validation);for(let a of Object.values(e.tasks))for(let o of a.validations)r.add(o);for(let[a,o]of Object.entries(e.validations))o.blocking&&!r.has(a)&&t.push({ruleId:"validation-coverage",severity:"warning",path:`validations.${a}`,message:`Blocking validation "${a}" is not referenced in any workflow step or task`});return t}},N3e={id:"tool-execution",description:"Bidirectional consistency: agent.can_execute_tools \u2194 tool.invokable_by",run(e){let t=[],n=new Map;for(let[i,r]of Object.entries(e.tools))n.set(i,new Set(r.invokable_by));for(let[i,r]of Object.entries(e.agents))for(let a of r.can_execute_tools){let o=n.get(a);o&&o.size>0&&!o.has(i)&&t.push({ruleId:"tool-execution",severity:"warning",path:`agents.${i}.can_execute_tools`,message:`Agent "${i}" has can_execute_tools "${a}" but tool's invokable_by does not include "${i}"`})}for(let[i,r]of Object.entries(e.tools))if(r.invokable_by.length!==0)for(let a of r.invokable_by){let o=e.agents[a];o&&!o.can_execute_tools.includes(i)&&t.push({ruleId:"tool-execution",severity:"warning",path:`tools.${i}.invokable_by`,message:`Tool "${i}" has invokable_by "${a}" but agent's can_execute_tools does not include "${i}"`})}for(let[i,r]of Object.entries(e.tasks))if(r.execution_steps)for(let a of r.execution_steps){if(!a.uses_tool)continue;let o=e.agents[r.target_agent];o&&!o.can_execute_tools.includes(a.uses_tool)&&t.push({ruleId:"tool-execution",severity:"error",path:`tasks.${i}.execution_steps`,message:`Task "${i}" step uses_tool "${a.uses_tool}" but target agent "${r.target_agent}" cannot execute it`})}for(let[i,r]of Object.entries(e.validations)){if(r.executor_type!=="tool"||!r.executor)continue;Object.values(e.agents).some(o=>o.can_execute_tools.includes(r.executor))||t.push({ruleId:"tool-execution",severity:"error",path:`validations.${i}`,message:`Validation "${i}" has executor_type=tool (executor: "${r.executor}") but no agent can execute this tool`})}return t}},R3e={id:"task-agent-binding",description:"Bidirectional task-agent consistency: allowed_from_agents \u2194 can_invoke_agents",run(e){let t=[],n=new Map;for(let[i,r]of Object.entries(e.tasks))n.has(r.target_agent)||n.set(r.target_agent,[]),n.get(r.target_agent).push(i);for(let[i,r]of Object.entries(e.tasks))for(let a of r.allowed_from_agents){if(a===r.target_agent)continue;let o=e.agents[a];o&&!o.can_invoke_agents.includes(r.target_agent)&&t.push({ruleId:"task-agent-binding",severity:"error",path:`tasks.${i}.allowed_from_agents`,message:`Task "${i}" allows "${a}" but agent's can_invoke_agents does not include target "${r.target_agent}"`})}for(let[i,r]of Object.entries(e.agents)){if(r.dispatch_only)continue;(n.get(i)??[]).length===0&&t.push({ruleId:"task-agent-binding",severity:"warning",path:`agents.${i}`,message:`Agent "${i}" has no tasks assigned (target_agent). Consider adding dispatch_only if intentional.`})}for(let[i,r]of Object.entries(e.tasks)){let a=e.agents[r.target_agent];if(a){if(a.can_read_artifacts.length>0)for(let o of r.input_artifacts)a.can_read_artifacts.includes(o)||t.push({ruleId:"task-agent-binding",severity:"error",path:`tasks.${i}.input_artifacts`,message:`Task "${i}" input_artifact "${o}" not in target agent "${r.target_agent}" can_read_artifacts`});a.can_return_handoffs.includes(r.result_handoff)||t.push({ruleId:"task-agent-binding",severity:"error",path:`tasks.${i}.result_handoff`,message:`Task "${i}" result_handoff "${r.result_handoff}" not in target agent "${r.target_agent}" can_return_handoffs`})}}for(let[i,r]of Object.entries(e.tasks)){if(!r.execution_steps)continue;let a=e.agents[r.target_agent];if(a)for(let o of r.execution_steps){if(o.uses_tool){a.can_execute_tools.includes(o.uses_tool)||t.push({ruleId:"task-agent-binding",severity:"error",path:`tasks.${i}.execution_steps`,message:`Task "${i}" step uses_tool "${o.uses_tool}" not in target agent "${r.target_agent}" can_execute_tools`});let s=e.tools[o.uses_tool];s&&s.invokable_by.length>0&&!s.invokable_by.includes(r.target_agent)&&t.push({ruleId:"task-agent-binding",severity:"warning",path:`tasks.${i}.execution_steps`,message:`Task "${i}" step uses_tool "${o.uses_tool}" but tool's invokable_by does not include "${r.target_agent}"`})}o.produces_artifact&&a.can_write_artifacts.length>0&&(a.can_write_artifacts.includes(o.produces_artifact)||t.push({ruleId:"task-agent-binding",severity:"error",path:`tasks.${i}.execution_steps`,message:`Task "${i}" step produces_artifact "${o.produces_artifact}" not in target agent "${r.target_agent}" can_write_artifacts`})),o.reads_artifact&&a.can_read_artifacts.length>0&&(a.can_read_artifacts.includes(o.reads_artifact)||t.push({ruleId:"task-agent-binding",severity:"error",path:`tasks.${i}.execution_steps`,message:`Task "${i}" step reads_artifact "${o.reads_artifact}" not in target agent "${r.target_agent}" can_read_artifacts`}))}}return t}},B3e={id:"merge-integrity",description:"Post-merge integrity: check that resolved DSL workflow order has no duplicates",run(e){let t=[],n=e.system.default_workflow_order,i=new Set;for(let r=0;r<n.length;r++)i.has(n[r])&&t.push({ruleId:"merge-integrity",severity:"error",path:`system.default_workflow_order[${r}]`,message:`Duplicate workflow "${n[r]}" in default_workflow_order`}),i.add(n[r]);return t}},L3e={id:"artifact-ownership",description:"Ensure execution_step produces/reads operations are consistent with artifact producers/editors/consumers",run(e){let t=[];for(let[n,i]of Object.entries(e.tasks)){if(!i.execution_steps)continue;let r=i.target_agent;for(let a of i.execution_steps){if(a.produces_artifact){let o=e.artifacts[a.produces_artifact];o&&(o.producers.length>0||o.editors.length>0)&&(o.producers.includes(r)||o.editors.includes(r)||t.push({ruleId:"artifact-ownership",severity:"warning",path:`tasks.${n}.execution_steps`,message:`Agent "${r}" produces artifact "${a.produces_artifact}" but is not listed in its producers or editors`}))}if(a.reads_artifact){let o=e.artifacts[a.reads_artifact],s=!!o?.owner||(o?.producers.length??0)>0||(o?.editors.length??0)>0||(o?.consumers.length??0)>0;o&&s&&(o.consumers.includes(r)||o.producers.includes(r)||o.editors.includes(r)||t.push({ruleId:"artifact-ownership",severity:"warning",path:`tasks.${n}.execution_steps`,message:`Agent "${r}" reads artifact "${a.reads_artifact}" but is not listed in its producers, editors, or consumers`}))}}}return t}},F3e={id:"tool-commands",description:"Validate tool commands: reads/writes reference existing artifacts; writes align with output_artifacts",run(e){let t=[];for(let[n,i]of Object.entries(e.tools))for(let r of i.commands){for(let a of r.reads)e.artifacts[a]||t.push({ruleId:"tool-commands",severity:"error",path:`tools.${n}.commands`,message:`Command "${r.command}" reads artifact "${a}" which does not exist`});for(let a of r.writes)e.artifacts[a]||t.push({ruleId:"tool-commands",severity:"error",path:`tools.${n}.commands`,message:`Command "${r.command}" writes artifact "${a}" which does not exist`}),e.artifacts[a]&&!i.output_artifacts.includes(a)&&t.push({ruleId:"tool-commands",severity:"warning",path:`tools.${n}.commands`,message:`Command "${r.command}" writes artifact "${a}" but tool's output_artifacts does not include it`})}return t}},M3e={id:"guardrail-no-policy-rule",description:"Every guardrail should be referenced by at least one policy rule in guardrail_policies",run(e){let t=[],n=new Set;for(let i of Object.values(e.guardrail_policies))for(let r of i.rules)n.add(r.guardrail);for(let i of Object.keys(e.guardrails))n.has(i)||t.push({ruleId:"guardrail-no-policy-rule",severity:"warning",path:`guardrails.${i}`,message:`Guardrail "${i}" is not referenced by any policy rule in guardrail_policies`});return t}};U3e={id:"guardrail-policy-action-state-undefined",description:"Policy rule action.when keys must reference states declared in system.states",run(e){let t=[],n=new Set(e.system.states??[]);for(let[i,r]of Object.entries(e.guardrail_policies))for(let a=0;a<r.rules.length;a++){let o=r.rules[a];if(tG(o.action))for(let s of Object.keys(o.action.when))n.has(s)||t.push({ruleId:"guardrail-policy-action-state-undefined",severity:"error",path:`guardrail_policies.${i}.rules[${a}].action.when.${s}`,message:`Policy rule references state "${s}" in action.when, but it is not declared in system.states`})}return t}},q3e={id:"system-states-unused",description:"Each state in system.states should be referenced by at least one policy rule action.when",run(e){let t=[],n=e.system.states??[];if(n.length===0)return t;let i=z3e(e);for(let r of n)i.has(r)||t.push({ruleId:"system-states-unused",severity:"info",path:"system.states",message:`State "${r}" is declared in system.states but not referenced by any policy rule action.when`});return t}},V3e=new Set(["on","off","yes","no","true","false","y","n"]),rG={id:"yaml-reserved-key-safety",description:"Warns when YAML 1.1 reserved words are used as field values in positions where they may be misinterpreted by non-1.2 parsers",run(e){let t=[];for(let[n,i]of Object.entries(e.workflow))for(let r=0;r<i.steps.length;r++){let a=i.steps[r];if(a.type!=="decision")continue;a.on!==void 0&&a.routing_key===void 0&&t.push({ruleId:"yaml-reserved-key-safety",severity:"warning",path:`workflow.${n}.steps[${r}].on`,message:'Field name "on" is a YAML 1.1 reserved word and may be interpreted as boolean true by some parsers. Use "routing_key" instead.'});let o=Object.keys(a.branches);for(let s of o)V3e.has(s.toLowerCase())&&t.push({ruleId:"yaml-reserved-key-safety",severity:"warning",path:`workflow.${n}.steps[${r}].branches.${s}`,message:`Branch key "${s}" is a YAML 1.1 reserved word and may be interpreted as a boolean by some parsers. Consider quoting or renaming.`})}return t}},Z3e={id:"artifact-required-validation-wiring",description:"Every validation listed in artifact.required_validations must exist, target the artifact, and be referenced in a workflow step or task.",run(e){let t=[],n=new Set;for(let i of Object.values(e.workflow))for(let r of i.steps)r.type==="validation"&&n.add(r.validation);for(let i of Object.values(e.tasks))for(let r of i.validations)n.add(r);for(let[i,r]of Object.entries(e.artifacts))for(let a of r.required_validations){let o=e.validations[a];if(!o){t.push({ruleId:"artifact-required-validation-wiring",severity:"error",path:`artifacts.${i}`,message:`required_validation "${a}" does not exist in validations`});continue}o.target_artifact!==i&&t.push({ruleId:"artifact-required-validation-wiring",severity:"error",path:`artifacts.${i}`,message:`required_validation "${a}" has target_artifact "${o.target_artifact}" instead of "${i}"`}),n.has(a)||t.push({ruleId:"artifact-required-validation-wiring",severity:"warning",path:`artifacts.${i}`,message:`required_validation "${a}" is defined but not referenced in any workflow step or task`})}return t}},G3e={id:"task-output-validation-completeness",description:"Tasks producing artifacts should cover those artifacts' required_validations in their validations list.",run(e){let t=[];for(let[n,i]of Object.entries(e.tasks)){let r=new Set;if(i.execution_steps)for(let s of i.execution_steps)s.produces_artifact&&r.add(s.produces_artifact);let a=e.agents[i.target_agent];if(a)for(let s of a.can_write_artifacts)r.add(s);let o=new Set(i.validations);for(let s of r){let l=e.artifacts[s];if(!l||l.required_validations.length===0)continue;let u=l.required_validations.filter(c=>!o.has(c));u.length>0&&t.push({ruleId:"task-output-validation-completeness",severity:"warning",path:`tasks.${n}`,message:`Task produces artifact "${s}" which requires validations [${u.join(", ")}] but task.validations does not include them`})}}return t}},W3e=new Set(["semantic","fidelity"]),K3e={id:"semantic-validation-phase-coverage",description:"Semantic and fidelity validations should appear in early workflow phases, not only in late phases.",run(e){let t=[],n=new Set;for(let[c,d]of Object.entries(e.validations))W3e.has(d.kind)&&n.add(c);if(n.size===0)return t;let i=e.system.default_workflow_order;if(i.length<2)return t;let r=new Map;for(let c of i)r.set(c,new Set);for(let[c,d]of Object.entries(e.workflow))if(r.has(c))for(let p of d.steps)p.type==="validation"&&n.has(p.validation)&&r.get(c).add(p.validation);for(let c of Object.values(e.tasks)){let d=c.workflow;if(r.has(d))for(let p of c.validations)n.has(p)&&r.get(d).add(p)}let a=Math.ceil(i.length/2),o=i.slice(0,a),s=i.slice(a),l=o.some(c=>(r.get(c)?.size??0)>0),u=s.filter(c=>(r.get(c)?.size??0)>0);return!l&&u.length>0&&t.push({ruleId:"semantic-validation-phase-coverage",severity:"warning",path:"validations",message:`Semantic validations are only referenced in workflow phases [${u.join(", ")}]. Consider adding semantic review to earlier phases [${o.join(", ")}] to catch issues before implementation.`}),t}},H3e={id:"entity-guardrail-undefined",description:"Entity references a guardrail ID not defined in guardrails",run(e){let t=[],n=new Set(Object.keys(e.guardrails)),i=[{name:"agents",entities:e.agents},{name:"tasks",entities:e.tasks},{name:"tools",entities:e.tools},{name:"artifacts",entities:e.artifacts}];for(let{name:r,entities:a}of i)for(let[o,s]of Object.entries(a))for(let l of s.guardrails??[])n.has(l)||t.push({ruleId:"entity-guardrail-undefined",severity:"error",path:`${r}.${o}.guardrails`,message:`${r.slice(0,-1)} "${o}" references guardrail "${l}" which is not defined in guardrails`});return t}},J3e={id:"entity-no-guardrails",description:"Entity has no effective guardrails (neither entity-side nor scope-side)",run(e){let t=[],n={agents:new Set,tasks:new Set,tools:new Set,artifacts:new Set};for(let r of Object.values(e.guardrails))for(let a of Object.keys(n)){let o=r.scope[a];if(o)for(let s of o)n[a].add(s)}let i=[{name:"agents",entities:e.agents},{name:"tasks",entities:e.tasks},{name:"tools",entities:e.tools},{name:"artifacts",entities:e.artifacts}];for(let{name:r,entities:a}of i)for(let[o,s]of Object.entries(a)){let l=(s.guardrails??[]).length>0,u=n[r].has(o);!l&&!u&&t.push({ruleId:"entity-no-guardrails",severity:"info",path:`${r}.${o}`,message:`${r.slice(0,-1)} "${o}" has no effective guardrails`})}return t}},Y3e={id:"guardrail-orphaned",description:"Guardrail is not referenced by any entity and not bound to any entity via scope",run(e){let t=[],n=new Set,i=[e.agents,e.tasks,e.tools,e.artifacts];for(let r of i)for(let a of Object.values(r))for(let o of a.guardrails??[])n.add(o);for(let[r,a]of Object.entries(e.guardrails)){let o=n.has(r),s=a.scope,l=(s.agents?.length??0)>0||(s.tasks?.length??0)>0||(s.tools?.length??0)>0||(s.artifacts?.length??0)>0||(s.workflows?.length??0)>0;!o&&!l&&t.push({ruleId:"guardrail-orphaned",severity:"warning",path:`guardrails.${r}`,message:`Guardrail "${r}" is not referenced by any entity and has no scope bindings`})}return t}},X3e={id:"validation-executor-no-context",description:"Validation executor is not wired so the validation appears in the executor's rendered context",run(e){let t=[];for(let[n,i]of Object.entries(e.validations))if(i.executor)if(i.executor_type==="agent"){let r=e.agents[i.executor];if(!r)continue;new Set(r.can_perform_validations??[]).has(n)||t.push({ruleId:"validation-executor-no-context",severity:"warning",path:`agents.${i.executor}.can_perform_validations`,message:`Validation "${n}" is executed by agent "${i.executor}" but is not listed in can_perform_validations, so it will be missing from that agent's prompt context`})}else i.executor_type==="tool"&&(e.tools[i.executor]||t.push({ruleId:"validation-executor-no-context",severity:"warning",path:`validations.${n}.executor`,message:`Validation "${n}" references tool executor "${i.executor}" which is not defined in tools`}));return t}},Q3e={id:"artifact-ownership-consistency",description:"Ensure own_artifacts entries are included in can_read_artifacts and check deprecated owner field consistency",run(e){let t=[];for(let[n,i]of Object.entries(e.agents))if(i.own_artifacts.length!==0)for(let r of i.own_artifacts)i.can_read_artifacts.includes(r)||t.push({ruleId:"artifact-ownership-consistency",severity:"warning",path:`agents.${n}.own_artifacts`,message:`Agent "${n}" owns artifact "${r}" but does not include it in can_read_artifacts`});for(let[n,i]of Object.entries(e.artifacts)){if(!i.owner)continue;let r=e.agents[i.owner];r&&!r.own_artifacts.includes(n)&&t.push({ruleId:"artifact-ownership-consistency",severity:"warning",path:`artifacts.${n}.owner`,message:`Artifact "${n}" has deprecated owner "${i.owner}" but agent does not list it in own_artifacts`})}return t}},e_e=["owner","producers","editors","consumers"],t_e=["own_artifacts","can_read_artifacts","can_write_artifacts"];i_e={id:"deprecated-ownership-fields",description:"Warn when deprecated ownership/permission fields are used instead of artifact_bindings + artifact_slots",run(e){let t=[];for(let[n,i]of Object.entries(e.artifacts))for(let r of e_e)r_e(i,r)&&t.push({ruleId:"deprecated-ownership-fields",severity:"warning",path:`artifacts.${n}.${r}`,message:`Artifact "${n}" uses deprecated field "${r}". Ownership is derived from artifact_bindings + artifact_slots in the binding model.`});for(let[n,i]of Object.entries(e.agents))for(let r of t_e)n_e(i,r)&&t.push({ruleId:"deprecated-ownership-fields",severity:"warning",path:`agents.${n}.${r}`,message:`Agent "${n}" uses deprecated field "${r}". Artifact permissions are derived from artifact_bindings + artifact_slots in the binding model.`});return t}};a_e={id:"extension-declared-unused",description:"Declared extension in `extensions` is never used on any entity",run(e){let t=[],n=Object.keys(e.extensions);if(n.length===0)return t;let i=sS(e);for(let r of n)i.has(r)||t.push({ruleId:"extension-declared-unused",severity:"warning",path:`extensions.${r}`,message:`Extension "${r}" is declared but never used on any entity`});return t}},o_e={id:"extension-scope-mismatch",description:"Extension used on a node type outside its declared scope",run(e){let t=[],n=e.extensions;if(Object.keys(n).length===0)return t;let i=sS(e);for(let[r,a]of Object.entries(n)){let o=a.scope;if(!o||o.length===0)continue;let s=new Set(o),l=i.get(r);if(l)for(let u of l)s.has(u.nodeType)||t.push({ruleId:"extension-scope-mismatch",severity:"warning",path:u.path,message:`Extension "${r}" is used on ${u.nodeType} but declared scope is [${o.join(", ")}]`})}return t}},s_e={id:"extension-undeclared-usage",description:"Entity uses x-* property that is not declared in extensions (when extensions section exists)",run(e){let t=[],n=e.extensions;if(Object.keys(n).length===0)return t;let i=new Set(Object.keys(n)),r=sS(e);for(let[a,o]of r)if(!i.has(a))for(let s of o)t.push({ruleId:"extension-undeclared-usage",severity:"info",path:s.path,message:`Extension "${a}" is used but not declared in extensions \u2014 consider adding a declaration`});return t}},u_e=Qr(oc(),1);g_e={id:"binding-completeness",description:"Check that artifact_bindings cover all slots referenced in the cli-contract command effects",run(e){let t=[];for(let[n,i]of Object.entries(e.tools)){if(!i.cli_contract||!i.artifact_bindings)continue;let r=Zv(i.cli_contract);if(!r?.artifactSlots)continue;let a=i.command??"",o=r.commandEffects[a];if(!o)continue;let s=[...o.reads,...o.writes],l=new Set(Object.keys(i.artifact_bindings));for(let u of s)l.has(u)||t.push({ruleId:"binding-completeness",severity:"warning",path:`tools.${n}.artifact_bindings`,message:`Command "${a}" references slot "${u}" but tool has no artifact_bindings entry for it`})}return t}};y_e={id:"binding-direction-match",description:"Check that agents invoking a tool can write artifacts bound via write slots",run(e){let t=[];for(let[n,i]of Object.entries(e.tools)){if(!i.cli_contract||!i.artifact_bindings)continue;let r=Zv(i.cli_contract);if(!r)continue;let a=i.command??"";for(let[o,s]of Object.entries(i.artifact_bindings))if(nG(o,a,r)==="write")for(let u of i.invokable_by)v_e(u,s,e)||t.push({ruleId:"binding-direction-match",severity:"warning",path:`tools.${n}.artifact_bindings.${o}`,message:`Agent "${u}" invokes tool "${n}" which writes to artifact "${s}" via slot "${o}", but agent lacks can_write_artifacts or own_artifacts for it`})}return t}},__e={id:"slot-declaration-exists",description:"Check that artifact_bindings keys reference slot names declared in the cli-contract",run(e){let t=[];for(let[n,i]of Object.entries(e.tools)){if(!i.cli_contract||!i.artifact_bindings)continue;let r=Zv(i.cli_contract);if(r?.artifactSlots)for(let a of Object.keys(i.artifact_bindings))a in r.artifactSlots||t.push({ruleId:"slot-declaration-exists",severity:"warning",path:`tools.${n}.artifact_bindings.${a}`,message:`artifact_bindings key "${a}" is not declared in cli-contract artifactSlots`})}return t}},b_e={id:"config-path-consistency",description:"Check that control-authority artifacts bound by tools have path_patterns defined",run(e){let t=[];for(let[n,i]of Object.entries(e.tools))if(i.artifact_bindings)for(let[r,a]of Object.entries(i.artifact_bindings)){let o=e.artifacts[a];!o||o.authority!=="control"||o.path_patterns&&o.path_patterns.length>0||t.push({ruleId:"config-path-consistency",severity:"info",path:`tools.${n}.artifact_bindings.${r}`,message:`Config artifact "${a}" has no path_patterns; consider adding them for path-based lookup`})}return t}},w_e={id:"memory-consistency",description:"Validate memory capability declarations are internally consistent",run(e){let t=[];for(let[n,i]of Object.entries(e.agents)){let r=i.memory;r&&(r.resumable&&!r.emits_memory_ref&&t.push({ruleId:"memory-consistency",severity:"warning",path:`agents.${n}.memory`,message:`Agent "${n}" declares memory.resumable but does not declare emits_memory_ref \u2014 resumed sessions will not produce a memory_ref for downstream continuation`}),r.ref_required&&!r.resumable&&t.push({ruleId:"memory-consistency",severity:"error",path:`agents.${n}.memory`,message:`Agent "${n}" declares memory.ref_required but resumable is not true \u2014 ref_required requires resumable capability`}))}return t}},iG=[T3e,N3e,R3e,B3e,L3e,F3e,M3e,U3e,q3e,rG,Z3e,G3e,K3e,H3e,J3e,Y3e,X3e,Q3e,i_e,a_e,o_e,s_e,g_e,y_e,__e,b_e,w_e];S_e=Qr(en(),1),so=Qr(wve(),1),k_e=Qr(en(),1),un=(0,k_e.createRulesetFunction)({input:null,options:{type:"object",properties:{referenceTo:{type:"string"}},required:["referenceTo"],additionalProperties:!1}},(e,t,n)=>{let r=n.document.data[t.referenceTo];if(typeof r!="object"||r===null)return[];let a=new Set(Object.keys(r)),o=Array.isArray(e)?e:[e],s=[];for(let l=0;l<o.length;l++){let u=o[l];if(typeof u=="string"&&!a.has(u)){let c=Array.isArray(e)?[...n.path,l]:[...n.path];s.push({message:`"${u}" does not exist in ${t.referenceTo}`,path:c})}}return s}),$_e=Qr(en(),1);A_e=(0,$_e.createRulesetFunction)({input:{type:"array"},options:null},(e,t,n)=>{let i=n.document.data,r=n.path.length>=2?String(n.path[1]):void 0,a=r&&i.artifacts?i.artifacts[r]:void 0;return a&&x_e(a)?[]:e.length===0?[{message:"editors must not be empty"}]:[]}),D_e=Qr(en(),1),C_e=(0,D_e.createRulesetFunction)({input:{type:"object"},options:null},(e,t,n)=>e.mode==="read-only"&&Array.isArray(e.can_write_artifacts)&&e.can_write_artifacts.length>0?[{message:'Agent with mode "read-only" must have empty can_write_artifacts',path:[...n.path,"can_write_artifacts"]}]:[]),P_e=Qr(en(),1),O_e=(0,P_e.createRulesetFunction)({input:{type:"object"},options:null},(e,t,n)=>{let i=new Set(e.can_read_artifacts??[]),r=e.prerequisites??[];if(i.size===0)return[];let a=[];for(let o=0;o<r.length;o++){let s=r[o];i.has(s.target)||a.push({message:`prerequisite target "${s.target}" is not in can_read_artifacts`,path:[...n.path,"prerequisites",o,"target"]})}return a}),I_e=Qr(en(),1);j_e=(0,I_e.createRulesetFunction)({input:{type:"object"},options:null},(e,t,n)=>{let i=[];function r(a,o){let s=aG(a),l=s.required,u=s.properties;if(Array.isArray(l)&&typeof u=="object"&&u!==null){let c=new Set(Object.keys(u));for(let d=0;d<l.length;d++)c.has(l[d])||i.push({message:`required field "${l[d]}" is not defined in properties`,path:[...o,"required",d]})}if(typeof u=="object"&&u!==null)for(let[c,d]of Object.entries(u)){if(typeof d!="object"||d===null)continue;let p=d;if(Array.isArray(p.enum)&&p.enum.length===0&&i.push({message:`enum for "${c}" must not be empty`,path:[...o,"properties",c,"enum"]}),p.type==="object"&&r(p,[...o,"properties",c]),p.items&&typeof p.items=="object"){let f=p.items;f.type==="object"&&r(f,[...o,"properties",c,"items"])}}}return r(e,[...n.path]),i}),T_e=Qr(en(),1),N_e=(0,T_e.createRulesetFunction)({input:{type:"object"},options:null},(e,t,n)=>{let i=n.document.data,r=i.handoff_types,a=i.agents,o=i.tasks,s=i.validations,l=r?new Set(Object.keys(r)):new Set,u=a?new Set(Object.keys(a)):new Set,c=o?new Set(Object.keys(o)):new Set,d=s?new Set(Object.keys(s)):new Set,p=[],f=e.steps??[];for(let m=0;m<f.length;m++){let h=f[m],v=[...n.path,"steps",m];h.type==="delegate"&&(h.task&&!c.has(h.task)&&p.push({message:`task "${h.task}" does not exist in tasks`,path:[...v,"task"]}),h.from_agent&&!u.has(h.from_agent)&&p.push({message:`from_agent "${h.from_agent}" does not exist in agents`,path:[...v,"from_agent"]})),h.type==="gate"&&h.gate_kind&&!l.has(h.gate_kind)&&p.push({message:`gate_kind "${h.gate_kind}" does not exist in handoff_types`,path:[...v,"gate_kind"]}),h.type==="handoff"&&(h.handoff_kind&&!l.has(h.handoff_kind)&&p.push({message:`handoff_kind "${h.handoff_kind}" does not exist in handoff_types`,path:[...v,"handoff_kind"]}),h.from_agent&&!u.has(h.from_agent)&&p.push({message:`from_agent "${h.from_agent}" does not exist in agents`,path:[...v,"from_agent"]}),h.task&&!c.has(h.task)&&p.push({message:`task "${h.task}" does not exist in tasks`,path:[...v,"task"]})),h.type==="validation"&&h.validation&&!d.has(h.validation)&&p.push({message:`validation "${h.validation}" does not exist in validations`,path:[...v,"validation"]})}return p}),R_e={rules:{"artifact-owner-ref":{description:"Artifact owner must reference an existing agent",message:"{{error}}",severity:"error",given:"$.artifacts.*",then:{field:"owner",function:un,functionOptions:{referenceTo:"agents"}}},"artifact-producers-ref":{description:"(deprecated) Artifact producers must reference existing agents",message:"{{error}}",severity:"warn",given:"$.artifacts.*",then:{field:"producers",function:un,functionOptions:{referenceTo:"agents"}}},"artifact-editors-ref":{description:"(deprecated) Artifact editors must reference existing agents",message:"{{error}}",severity:"warn",given:"$.artifacts.*",then:{field:"editors",function:un,functionOptions:{referenceTo:"agents"}}},"artifact-consumers-ref":{description:"(deprecated) Artifact consumers must reference existing agents",message:"{{error}}",severity:"warn",given:"$.artifacts.*",then:{field:"consumers",function:un,functionOptions:{referenceTo:"agents"}}},"artifact-required-validations-ref":{description:"Artifact required_validations must reference existing validations",message:"{{error}}",severity:"error",given:"$.artifacts.*",then:{field:"required_validations",function:un,functionOptions:{referenceTo:"validations"}}},"agent-can-invoke-agents-ref":{description:"can_invoke_agents must reference existing agents",message:"{{error}}",severity:"error",given:"$.agents.*",then:{field:"can_invoke_agents",function:un,functionOptions:{referenceTo:"agents"}}},"agent-can-read-artifacts-ref":{description:"can_read_artifacts must reference existing artifacts",message:"{{error}}",severity:"error",given:"$.agents.*",then:{field:"can_read_artifacts",function:un,functionOptions:{referenceTo:"artifacts"}}},"agent-can-write-artifacts-ref":{description:"can_write_artifacts must reference existing artifacts",message:"{{error}}",severity:"error",given:"$.agents.*",then:{field:"can_write_artifacts",function:un,functionOptions:{referenceTo:"artifacts"}}},"agent-can-execute-tools-ref":{description:"can_execute_tools must reference existing tools",message:"{{error}}",severity:"error",given:"$.agents.*",then:{field:"can_execute_tools",function:un,functionOptions:{referenceTo:"tools"}}},"agent-can-perform-validations-ref":{description:"can_perform_validations must reference existing validations",message:"{{error}}",severity:"error",given:"$.agents.*",then:{field:"can_perform_validations",function:un,functionOptions:{referenceTo:"validations"}}},"agent-can-return-handoffs-ref":{description:"can_return_handoffs must reference existing handoff_types",message:"{{error}}",severity:"error",given:"$.agents.*",then:{field:"can_return_handoffs",function:un,functionOptions:{referenceTo:"handoff_types"}}},"task-target-agent-ref":{description:"Task target_agent must reference an existing agent",message:"{{error}}",severity:"error",given:"$.tasks.*",then:{field:"target_agent",function:un,functionOptions:{referenceTo:"agents"}}},"task-allowed-from-agents-ref":{description:"Task allowed_from_agents must reference existing agents",message:"{{error}}",severity:"error",given:"$.tasks.*",then:{field:"allowed_from_agents",function:un,functionOptions:{referenceTo:"agents"}}},"task-invocation-handoff-ref":{description:"Task invocation_handoff must reference an existing handoff_type",message:"{{error}}",severity:"error",given:"$.tasks.*",then:{field:"invocation_handoff",function:un,functionOptions:{referenceTo:"handoff_types"}}},"task-result-handoff-ref":{description:"Task result_handoff must reference an existing handoff_type",message:"{{error}}",severity:"error",given:"$.tasks.*",then:{field:"result_handoff",function:un,functionOptions:{referenceTo:"handoff_types"}}},"task-input-artifacts-ref":{description:"Task input_artifacts must reference existing artifacts",message:"{{error}}",severity:"error",given:"$.tasks.*",then:{field:"input_artifacts",function:un,functionOptions:{referenceTo:"artifacts"}}},"task-validations-ref":{description:"Task validations must reference existing validations",message:"{{error}}",severity:"error",given:"$.tasks.*",then:{field:"validations",function:un,functionOptions:{referenceTo:"validations"}}},"validation-target-artifact-ref":{description:"Validation target_artifact must reference an existing artifact",message:"{{error}}",severity:"error",given:"$.validations.*",then:{field:"target_artifact",function:un,functionOptions:{referenceTo:"artifacts"}}},"tool-invokable-by-ref":{description:"(deprecated) Tool invokable_by must reference existing agents",message:"{{error}}",severity:"warn",given:"$.tools.*",then:{field:"invokable_by",function:un,functionOptions:{referenceTo:"agents"}}},"artifact-editors-not-empty":{description:"(deprecated) Artifact editors must not be empty (15.2.2)",message:"{{error}}",severity:"info",given:"$.artifacts.*.editors",then:{function:A_e}},"artifact-owner-exists":{description:"(deprecated) Every artifact must have an owner",severity:"off",given:"$.artifacts.*",then:{field:"owner",function:so.truthy}},"workflow-step-refs":{description:"Workflow step references (task, from_agent, gate_kind, handoff_kind, validation) must exist",message:"{{error}}",severity:"error",given:"$.workflow.*",then:{function:N_e}},"readonly-agent-no-writes":{description:'Agent with mode "read-only" must have empty can_write_artifacts',message:"{{error}}",severity:"error",given:"$.agents.*",then:{function:C_e}},"agent-prerequisite-readable":{description:"Agent prerequisites target must be in can_read_artifacts",message:"{{error}}",severity:"error",given:"$.agents.*",then:{function:O_e}},"handoff-payload-integrity":{description:"Handoff schema required/properties consistency, enum non-empty, nested validation",message:"{{error}}",severity:"error",given:"$.handoff_types.*.schema",then:{function:j_e}},"agent-key-casing":{description:"Agent keys must use kebab-case",severity:"warn",given:"$.agents",then:{field:"@key",function:so.casing,functionOptions:{type:"kebab"}}},"task-key-casing":{description:"Task keys must use kebab-case",severity:"warn",given:"$.tasks",then:{field:"@key",function:so.casing,functionOptions:{type:"kebab"}}},"artifact-key-casing":{description:"Artifact keys must use kebab-case",severity:"warn",given:"$.artifacts",then:{field:"@key",function:so.casing,functionOptions:{type:"kebab"}}},"tool-key-casing":{description:"Tool keys must use kebab-case",severity:"warn",given:"$.tools",then:{field:"@key",function:so.casing,functionOptions:{type:"kebab"}}},"validation-key-casing":{description:"Validation keys must use kebab-case",severity:"warn",given:"$.validations",then:{field:"@key",function:so.casing,functionOptions:{type:"kebab"}}},"handoff-type-key-casing":{description:"Handoff type keys must use kebab-case",severity:"warn",given:"$.handoff_types",then:{field:"@key",function:so.casing,functionOptions:{type:"kebab"}}},"policy-key-casing":{description:"Policy keys must use kebab-case",severity:"warn",given:"$.policies",then:{field:"@key",function:so.casing,functionOptions:{type:"kebab"}}},"version-must-be-1":{description:"DSL version must be 1",severity:"error",given:"$.version",then:{function:so.enumeration,functionOptions:{values:[1]}}}}},B_e=R_e,L_e={0:"error",1:"warning",2:"info",3:"info"},M1=null;Er=Qr(fF(),1);a5e=new Set(["linter","checker","validator","test"]),o5e=["lint","check","validate","test","verify","audit"];Er.default.registerHelper("eq",(e,t)=>e===t);Er.default.registerHelper("notEmpty",e=>!e||typeof e!="object"?!1:Object.keys(e).length>0);Er.default.registerHelper("inc",e=>e+1);Er.default.registerHelper("lookupPayloadFields",e=>{let t=_s(e??{}),n=t.properties;if(!n)return[];let i=new Set(t.required??[]);return Object.entries(n).map(([r,a])=>{let o=a.enum;return{name:r,type:a.type??"any",required:i.has(r),enum:o?o.join(" | "):void 0}})});Er.default.registerHelper("yamlBlock",e=>mG(e));Er.default.registerHelper("jsonBlock",e=>v5e(e));Er.default.registerHelper("yamlFrontmatter",e=>y5e(e));Er.default.registerHelper("handoffPayload",e=>hG(e??void 0));Er.default.registerHelper("handoffEnvelope",(e,t)=>{let n=typeof t?.hash?.id=="string"?t.hash.id:void 0;return _5e(e??void 0,n)});Er.default.registerHelper("join",(e,t)=>{if(!Array.isArray(e))return"";let n=typeof t=="string"?t:", ";return e.join(n)});Er.default.registerHelper("contains",(e,t)=>Array.isArray(e)?e.includes(t):!1);Er.default.registerHelper("groupBy",(e,t)=>{if(!Array.isArray(e))return{};let n={};for(let i of e){let r=String(i?.[t]??"undefined");(n[r]??=[]).push(i)}return n});Er.default.registerHelper("keys",e=>!e||typeof e!="object"?[]:Object.keys(e));Er.default.registerHelper("values",e=>!e||typeof e!="object"?[]:Object.values(e));Er.default.registerHelper("filterByField",(e,t,n)=>Array.isArray(e)?e.filter(i=>i?.[t]===n):[]);Er.default.registerHelper("not",e=>!e);Er.default.registerHelper("or",(...e)=>{let t=e.pop();return e.some(n=>!!n)});Er.default.registerHelper("coalesce",(...e)=>{let t=e.pop();return e.find(n=>n!=null&&n!==!1&&n!=="")});Er.default.registerHelper("and",(...e)=>{let t=e.pop();return e.every(n=>!!n)});Er.default.registerHelper("gt",(e,t)=>e>t);Er.default.registerHelper("gte",(e,t)=>e>=t);Er.default.registerHelper("lt",(e,t)=>e<t);Er.default.registerHelper("size",e=>Array.isArray(e)?e.length:e&&typeof e=="object"?Object.keys(e).length:0);Er.default.registerHelper("sequenceDiagram",function(...e){let t=e[e.length-1],n=e.slice(0,-1);if(typeof n[0]=="string"&&n[1]){let o=n[0],s=n[1];if(!s.workflow[o])return"";let l=Wv(s,o);return GT(l.workflow,l.relatedTasks,s)}let i=this.workflow,r=this.relatedTasks,a=t?.hash?.dsl??this.dsl;return!i||!a?"":GT(i,r??[],a)});Er.default.registerHelper("overviewFlowchart",function(...e){let t=e.slice(0,-1);if(t[0]&&typeof t[0]=="object")return KT(t[0]);let n=this.dsl;return n?KT(n):""});Er.default.registerHelper("guardrailCoverageMatrix",function(){let e=this.guardrailEnforcement;if(!e||e.length===0)return"";let t="| Guardrail | Severity | Action | Agents | Tasks | Workflows | Tools | Artifacts | Trigger | Override | Escalation |",n="|-----------|----------|--------|--------|-------|-----------|-------|-----------|---------|----------|------------|",i=e.map(r=>{let a=r.scoped_agents?.join(", ")||"\u2014",o=r.scoped_tasks?.join(", ")||"\u2014",s=r.scoped_workflows?.join(", ")||"\u2014",l=r.scoped_tools?.join(", ")||"\u2014",u=r.scoped_artifacts?.join(", ")||"\u2014",c=r.trigger||"\u2014",d=r.allow_override?"yes":"no",p=r.escalation,f=p?p.target:"\u2014";return`| ${r.guardrail_id} | ${r.severity} | ${r.action} | ${a} | ${o} | ${s} | ${l} | ${u} | ${c} | ${d} | ${f} |`});return[t,n,...i].join(`
|
|
583
583
|
`)});Er.default.registerHelper("taskGuardrailMatrix",function(){let e=this.dsl,t=this.guardrailEnforcement;if(!e||!t||t.length===0)return"";let n=Object.keys(e.tasks);if(n.length===0)return"";let i=t.map(s=>s.guardrail_id),r=`| Task | ${i.join(" | ")} |`,a=`|------|${i.map(()=>"------").join("|")}|`,o=n.map(s=>{let l=t.map(u=>{let c=u.scoped_tasks;return c.length>0&&!c.includes(s)?"n/a":u.action});return`| ${s} | ${l.join(" | ")} |`});return[r,a,...o].join(`
|
|
584
|
-
`)});E5e=new RegExp(`\\{(${qv.join("|")})\\.[^}]+\\}`);x5e=Qr(oc(),1),C5e=Qr(oc(),1),_G=U.object({template:U.string(),context:tS,output:U.string(),include:U.array(U.string()).optional(),exclude:U.array(U.string()).optional(),skip_empty:U.boolean().optional()}).refine(e=>!(e.include&&e.exclude),{message:"include and exclude are mutually exclusive"}).refine(e=>!(e.context==="system"&&(e.include||e.exclude)),{message:"include/exclude cannot be used with context: system"}),j5e=U.object({dsl:U.string().optional(),bindings:U.array(U.string()).default([]),vars:U.record(U.string(),U.string()).optional(),paths:U.record(U.string(),U.string()).optional(),active_guardrail_policy:U.string().optional(),interface_output:U.string().optional()}),T5e=U.object({adapter:U.string().optional(),model:U.string().optional(),temperature:U.number().min(0).max(2).optional(),cache_dir:U.string().optional()}).optional(),N5e=U.object({exclude_patterns:U.array(U.string()).default([])}).optional(),bG=U.object({dsl:U.string().optional(),vars:U.record(U.string(),U.string()).optional(),renders:U.array(_G).default([]),bindings:U.array(U.string()).default([]),active_guardrail_policy:U.string().optional(),paths:U.record(U.string(),U.string()).optional(),teams:U.record(U.string(),j5e).optional(),audit:T5e,artifact_coverage:N5e}).superRefine((e,t)=>{if(e.dsl!==void 0&&e.teams!==void 0){t.addIssue({code:U.ZodIssueCode.custom,message:"dsl and teams are mutually exclusive",path:["teams"]});return}if(e.dsl===void 0&&e.teams===void 0){t.addIssue({code:U.ZodIssueCode.custom,message:"Either dsl or teams must be specified",path:[]});return}if(e.teams)for(let[n,i]of Object.entries(e.teams))n!=="_defaults"&&i.dsl===void 0&&t.addIssue({code:U.ZodIssueCode.custom,message:`Team "${n}" must specify dsl`,path:["teams",n,"dsl"]})}),R5e="agent-contracts.config.yaml",$i=class extends Error{constructor(e,t){super(e),this.filePath=t,this.name="ConfigLoadError"}filePath};z5e={guardrail_impl:"map",outputs:"map",renders:"array",reporting:"object"};K5e={agents:{section:"agents",fields:["responsibilities","constraints","rules"]},tasks:{section:"tasks",fields:["description","responsibilities","execution_steps","completion_criteria"]},artifacts:{section:"artifacts",fields:["description","visibility"]},tools:{section:"tools",fields:["description","commands"]},workflow:{section:"workflow",fields:["description","trigger","entry_conditions"]},guardrails:{section:"guardrails",fields:["rationale","tags"]}};Kl=Qr(oc(),1);cbe={id:"dsl-auditor",role_name:"DSL Auditor",purpose:"Audit completeness of agent-contracts DSL definitions against generated agent prompts, detect gaps, and present improvement recommendations.",mode:"read-write",dispatch_only:!1,can_read_artifacts:["dsl-source","dsl-generated-output","dsl-audit-report","dsl-score-report"],can_write_artifacts:["dsl-audit-report"],can_execute_tools:["agent-contracts-cli"],can_invoke_agents:["dsl-auditor"],can_return_handoffs:["dsl-audit-result"],responsibilities:["Cross-check DSL definitions against generated prompts across 19 dimensions","Classify detected gaps as template gap, data gap, or DSL gap","Prioritize improvement recommendations (P0/P1/P2) with concrete fix proposals","Report score-based improvement areas as audit recommendations (read-only; consumes dsl-score-report produced by dsl-designer)","Review DSL design for semantic coherence (role overlap, scope breadth, gate placement)","Verify generated prompts faithfully represent DSL intent (no hallucinated permissions)","Audit x-* extension consumption across render templates and runtime codegen paths"],constraints:["Do not directly modify DSL definitions (read-only analysis)","Do not execute agent-contracts score independently; consume dsl-score-report produced by dsl-designer only","Recommendations must include concrete YAML or template fix proposals","Findings must be classified as PASS / MISS / PARTIAL / N/A"],rules:[{id:"R-AUDIT-001",description:"Audit must cover all 19 dimensions: purpose, mode, can_read_artifacts, can_write_artifacts, can_invoke_agents, tools, can_perform_validations, responsibilities, constraints, rules, escalation_criteria, x-authority, supported_tasks, delegatable_tasks, handoff_schemas, guardrails, anti_patterns, x-audit-checklist, x-sections.",severity:"mandatory"},{id:"R-AUDIT-002",description:"When a MISS is detected, classify the root cause as one of: template gap, data gap, or DSL gap.",severity:"mandatory"}],escalation_criteria:[{condition:"3 or more critical-level gaps detected",action:"stop_and_report"},{condition:"Structural defect detected in templates",action:"stop_and_report"}]},dbe={id:"dsl-designer",role_name:"DSL Designer",purpose:"Design, create, and update agent-contracts DSL definitions and bindings. Verify quality using validate, lint, render, and score commands. Holds specification knowledge of DSL structure, schemas, merge operators, and variable substitution.",mode:"read-write",dispatch_only:!1,can_read_artifacts:["dsl-source","dsl-generated-output","dsl-score-report","dsl-audit-report"],can_write_artifacts:["dsl-source","dsl-generated-output","dsl-score-report"],can_execute_tools:["agent-contracts-cli"],can_invoke_agents:["dsl-designer"],can_return_handoffs:["dsl-task-result"],responsibilities:["Create new and update existing agent-contracts DSL (YAML) definitions","Design all sections \u2014 agents, tasks, artifacts, tools, validations, handoff_types, workflow, policies, guardrails, guardrail_policies","Add and update software bindings","Correctly use extends-based DSL inheritance and merge operators","Verify quality via agent-contracts validate / lint / render / score","Improve score across 7 dimensions (artifact validation coverage, task validation coverage, guardrail policy coverage, workflow validation integration, schema completeness, cross-reference bidirectionality, guardrail scope resolution)"],constraints:["DSL definitions must pass agent-contracts validate","Do not break existing extends inheritance chains","Do not directly edit generated files \u2014 always modify DSL source and re-render","handoff_types schemas must be JSON Schema compliant with correct allOf $ref usage"],rules:[{id:"R-DSL-001",description:"After any DSL change, verify in order: validate \u2192 lint \u2192 render --check \u2192 score.",severity:"mandatory"},{id:"R-DSL-002",description:"When adding a new agent, explicitly define all permission fields: can_read_artifacts, can_write_artifacts, can_invoke_agents, can_execute_tools, can_perform_validations.",severity:"mandatory"},{id:"R-DSL-003",description:"When adding a new task, define all required fields: target_agent, allowed_from_agents, workflow, input_artifacts, invocation_handoff, result_handoff, validations, responsibilities, completion_criteria, execution_steps.",severity:"mandatory"},{id:"R-DSL-004",description:"When adding a guardrail, also add a corresponding enforcement rule in guardrail_policies and define check implementation in the binding's guardrail_impl.",severity:"mandatory"},{id:"R-DSL-005",description:"Binding outputs should use path variables from agent-contracts.config.yaml (e.g. {cursor_root}, {check_scripts_root}).",severity:"recommended"}],escalation_criteria:[{condition:"Schema errors from validate cannot be resolved",action:"stop_and_report"},{condition:"Unintended override occurring during extends merge",action:"stop_and_report"},{condition:"Score below 70% with no clear improvement path",action:"stop_and_report"}]},pbe={"dsl-auditor":cbe,"dsl-designer":dbe},fbe={id:"update-dsl-definitions",description:"Create new or update existing agent-contracts DSL definitions",target_agent:"dsl-designer",allowed_from_agents:["dsl-designer"],workflow:"dsl-update",invocation_handoff:"dsl-task-request",result_handoff:"dsl-task-result",input_artifacts:["dsl-source"],responsibilities:["Create and update DSL YAML files","Define agents, tasks, artifacts, tools, validations, handoff_types, workflow, guardrails","Configure system section"],completion_criteria:["agent-contracts validate succeeds","agent-contracts lint reports no errors","Cross-references for newly added entities are correct"],optional:!1},mbe={id:"update-dsl-binding",description:"Create new or update existing software bindings",target_agent:"dsl-designer",allowed_from_agents:["dsl-designer"],workflow:"dsl-update",invocation_handoff:"dsl-task-request",result_handoff:"dsl-task-result",input_artifacts:["dsl-source"],responsibilities:["Add and update guardrail_impl check definitions","Configure outputs section templates and inline templates","Set up binding extends inheritance"],completion_criteria:["Binding YAML conforms to the correct schema","guardrail_impl hook_event / matcher values are valid","agent-contracts generate guardrails succeeds"],optional:!1},hbe={id:"render-dsl-outputs",description:"Render prompts and documents from DSL and check for drift",target_agent:"dsl-designer",allowed_from_agents:["dsl-designer"],workflow:"dsl-update",invocation_handoff:"dsl-task-request",result_handoff:"dsl-task-result",input_artifacts:["dsl-source"],responsibilities:["Generate prompts and documents via agent-contracts render","Detect and resolve drift using render --check"],completion_criteria:["render succeeds","render --check reports no drift"],optional:!1},gbe={id:"check-dsl-score",description:"Check DSL completeness score and identify improvement areas",target_agent:"dsl-designer",allowed_from_agents:["dsl-designer"],workflow:"dsl-update",invocation_handoff:"dsl-task-request",result_handoff:"dsl-task-result",input_artifacts:["dsl-source"],responsibilities:["Review score across 7 dimensions and identify weaknesses","List entities that need improvement"],completion_criteria:["Score results have been reviewed","Improvement areas have been identified"],optional:!1},vbe={id:"audit-dsl-completeness",description:"Audit completeness of DSL definitions against generated prompts",target_agent:"dsl-auditor",allowed_from_agents:["dsl-auditor"],workflow:"dsl-audit",invocation_handoff:"dsl-task-request",result_handoff:"dsl-audit-result",input_artifacts:["dsl-source","dsl-generated-output"],responsibilities:["Cross-check across 19 dimensions per audit procedure","Classify gaps as template gap, data gap, or DSL gap","Present improvement recommendations"],completion_criteria:["All dimensions inspected for all agents","Detected gaps are classified","Improvement recommendations are presented with priority"],optional:!1},ybe={id:"audit-semantic-design",description:"Audit DSL design for semantic coherence",target_agent:"dsl-auditor",allowed_from_agents:["dsl-auditor"],workflow:"dsl-audit",invocation_handoff:"dsl-task-request",result_handoff:"dsl-audit-result",input_artifacts:["dsl-source"],responsibilities:["Check dispatch_only agents for implementation responsibilities","Detect agents with overly broad scope","Identify role overlap between agents","Verify handoff schemas carry sufficient fields for task completion_criteria","Check workflow gates are placed effectively","Detect guardrails declared but absent from execution path","Check semantic validations are distributed across phases","Detect custom x- properties that replicate standard DSL control-flow features (gate, decision, entry_conditions)"],completion_criteria:["All agents reviewed for scope and overlap","Workflow gate placement analyzed","Guardrail enforcement path verified","Custom x- property misuse flagged","Findings classified with severity and category"],optional:!1},_be={id:"audit-generated-prompts",description:"Audit generated prompts against DSL intent",target_agent:"dsl-auditor",allowed_from_agents:["dsl-auditor"],workflow:"dsl-audit",invocation_handoff:"dsl-task-request",result_handoff:"dsl-audit-result",input_artifacts:["dsl-source","dsl-generated-output"],responsibilities:["Compare generated prompt content against DSL agent definitions","Detect missing requirements from DSL","Detect hallucinated permissions not in DSL","Identify ambiguous or unsafe instructions","Verify consistency between prompt and handoff schema expectations"],completion_criteria:["All generated prompts compared against DSL definitions","Missing, hallucinated, and ambiguous instructions identified","Findings classified with severity and category"],optional:!1},bbe={id:"audit-extension-consumption",description:"Audit declared x-* extensions for consumption gaps across render and runtime paths",target_agent:"dsl-auditor",allowed_from_agents:["dsl-auditor"],workflow:"dsl-audit",invocation_handoff:"dsl-task-request",result_handoff:"dsl-audit-result",input_artifacts:["dsl-source","dsl-generated-output"],responsibilities:["Cross-check extensions declarations against entity x-* usage","Identify x-* properties populated in DSL but not consumed by any render template","Detect semantic overlap between x-* extensions and standard DSL features","Report runtime codegen reachability for each extension","Distinguish intentional metadata-only extensions from consumption gaps"],completion_criteria:["All declared extensions checked for template and runtime consumption","Unused extensions flagged with suggested action (remove, migrate to standard, or add template support)","Runtime-unreachable extensions documented with explanation","Findings classified with severity and category"],optional:!1},wbe={"update-dsl-definitions":fbe,"update-dsl-binding":mbe,"render-dsl-outputs":hbe,"check-dsl-score":gbe,"audit-dsl-completeness":vbe,"audit-semantic-design":ybe,"audit-generated-prompts":_be,"audit-extension-consumption":bbe},Ebe=U.object({task_id:U.string(),scope:U.string().optional(),context:U.string().optional()}),Sbe=U.object({changed_files:U.array(U.string()).optional(),validation_result:U.enum(["pass","fail"]),lint_result:U.enum(["pass","fail","skipped"]).optional(),generate_result:U.enum(["pass","fail","skipped"]).optional(),render_result:U.enum(["pass","fail","skipped"]).optional(),drift_detected:U.boolean().optional(),cross_reference_check:U.enum(["pass","fail","skipped"]).optional(),score:U.number().optional(),score_dimensions:U.record(U.string(),U.unknown()).optional(),notes:U.string().optional()}),kbe=U.object({summary:U.string(),risk_level:U.enum(["low","medium","high","critical"]),findings:U.array(U.object({id:U.string().optional(),severity:U.enum(["info","warning","error","critical"]),category:U.string(),target:U.string().optional(),location:U.string().optional(),message:U.string(),recommendation:U.string().optional(),confidence:U.number().optional(),evidence:U.array(U.object({kind:U.enum(["file","command","schema","diff","stdout","stderr","text"]),target:U.string().optional(),location:U.string().optional(),excerpt:U.string().optional()})).optional(),details:U.record(U.string(),U.unknown()).optional()})),recommended_actions:U.array(U.object({kind:U.enum(["run_command","edit_file","review","confirm","block","ignore"]),title:U.string(),command:U.string().optional(),target:U.string().optional(),rationale:U.string().optional()})).optional(),metadata:U.object({tool:U.string().optional(),command:U.string().optional(),version:U.string().optional(),generated_at:U.string().optional(),adapter:U.string().optional(),model:U.string().optional()}).optional()}),$be=U.object({audit_type:U.enum(["completeness","semantic","prompt","extensions"]),total_dimensions:U.number(),pass_count:U.number(),miss_count:U.number(),partial_count:U.number().optional(),agents_reviewed:U.number().optional(),prompts_reviewed:U.number().optional(),gate_analysis_complete:U.boolean().optional(),guardrail_enforcement_verified:U.boolean().optional(),critical_gaps:U.array(U.object({dimension:U.string().optional(),agent:U.string().optional(),gap_type:U.enum(["template_gap","data_gap","dsl_gap"]).optional(),severity:U.enum(["critical","warning","info"]).optional()})).optional(),recommendations:U.array(U.object({priority:U.enum(["P0","P1","P2"]).optional(),description:U.string().optional(),fix_type:U.enum(["template_fix","dsl_fix","regeneration"]).optional()})).optional()}),xbe={"dsl-task-request":Ebe,"dsl-task-result":Sbe,"audit-result":kbe,"dsl-audit-result":$be};Dbe={render:"audit-dsl-completeness",dsl:"audit-semantic-design",prompt:"audit-generated-prompts",extensions:"audit-extension-consumption"};uu=Qr(fF(),1),xG=Qr(oc(),1);uu.default.registerHelper("json",e=>new uu.default.SafeString(JSON.stringify(e,null,2)));uu.default.registerHelper("expand",(e,t)=>{if(typeof e!="string")return"";let n=t.hash,i=e;for(let[r,a]of Object.entries(n))i=i.replace(new RegExp(`\\{\\{${r}\\}\\}`,"g"),String(a));return new uu.default.SafeString(i)});OG=(e,t,n)=>{let i=e instanceof RegExp?nN(e,n):e,r=t instanceof RegExp?nN(t,n):t,a=i!==null&&r!=null&&Fbe(i,r,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+i.length,a[1]),post:n.slice(a[1]+r.length)}},nN=(e,t)=>{let n=t.match(e);return n?n[0]:null},Fbe=(e,t,n)=>{let i,r,a,o,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(i=[],a=n.length;c>=0&&!s;){if(c===l)i.push(c),l=n.indexOf(e,c+1);else if(i.length===1){let d=i.pop();d!==void 0&&(s=[d,u])}else r=i.pop(),r!==void 0&&r<a&&(a=r,o=u),u=n.indexOf(t,c+1);c=l<u&&l>=0?l:u}i.length&&o!==void 0&&(s=[a,o])}return s},IG="\0SLASH"+Math.random()+"\0",jG="\0OPEN"+Math.random()+"\0",fS="\0CLOSE"+Math.random()+"\0",TG="\0COMMA"+Math.random()+"\0",NG="\0PERIOD"+Math.random()+"\0",Mbe=new RegExp(IG,"g"),zbe=new RegExp(jG,"g"),Ube=new RegExp(fS,"g"),qbe=new RegExp(TG,"g"),Vbe=new RegExp(NG,"g"),Zbe=/\\\\/g,Gbe=/\\{/g,Wbe=/\\}/g,Kbe=/\\,/g,Hbe=/\\\./g,Jbe=1e5;i9e=1024*64,Sg=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>i9e)throw new TypeError("pattern is too long")},a9e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},up=e=>e.replace(/[[\]\\-]/g,"\\$&"),o9e=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),iN=e=>e.join(""),s9e=(e,t)=>{let n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");let i=[],r=[],a=n+1,o=!1,s=!1,l=!1,u=!1,c=n,d="";e:for(;a<e.length;){let h=e.charAt(a);if((h==="!"||h==="^")&&a===n+1){u=!0,a++;continue}if(h==="]"&&o&&!l){c=a+1;break}if(o=!0,h==="\\"&&!l){l=!0,a++;continue}if(h==="["&&!l){for(let[v,[y,b,w]]of Object.entries(a9e))if(e.startsWith(v,a)){if(d)return["$.",!1,e.length-n,!0];a+=v.length,w?r.push(y):i.push(y),s=s||b;continue e}}if(l=!1,d){h>d?i.push(up(d)+"-"+up(h)):h===d&&i.push(up(h)),d="",a++;continue}if(e.startsWith("-]",a+1)){i.push(up(h+"-")),a+=2;continue}if(e.startsWith("-",a+1)){d=h,a+=2;continue}i.push(up(h)),a++}if(c<a)return["",!1,0,!1];if(!i.length&&!r.length)return["$.",!1,e.length-n,!0];if(r.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let h=i[0].length===2?i[0].slice(-1):i[0];return[o9e(h),!1,c-n,!1]}let p="["+(u?"^":"")+iN(i)+"]",f="["+(u?"":"^")+iN(r)+"]";return[i.length&&r.length?"("+p+"|"+f+")":i.length?p:f,s,c-n,!0]},gp=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),u9e=new Set(["!","?","+","*","@"]),s7=e=>u9e.has(e),aN=e=>s7(e.type),l9e=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),c9e=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),d9e=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),oN=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),p9e="(?!(?:^|/)\\.\\.?(?:$|/))",V1="(?!\\.)",f9e=new Set(["[","."]),m9e=new Set(["..","."]),h9e=new Set("().*{}+?[]^$\\!"),g9e=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mS="[^/]",sN=mS+"*?",uN=mS+"+?",v9e=0,hS=class{type;#t;#r;#i=!1;#e=[];#n;#s;#l;#u=!1;#a;#o;#c=!1;id=++v9e;get depth(){return(this.#n?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#t.id,parent:this.#n?.id,depth:this.depth,partsLength:this.#e.length,parts:this.#e}}constructor(e,t,n={}){this.type=e,e&&(this.#r=!0),this.#n=t,this.#t=this.#n?this.#n.#t:this,this.#a=this.#t===this?n:this.#t.#a,this.#l=this.#t===this?[]:this.#t.#l,e==="!"&&!this.#t.#u&&this.#l.push(this),this.#s=this.#n?this.#n.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#o=this.#e.map(e=>String(e)).join("")}#v(){if(this!==this.#t)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let t=e,n=t.#n;for(;n;){for(let i=t.#s+1;!n.type&&i<n.#e.length;i++)for(let r of e.#e){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(n.#e[i])}t=n,n=t.#n}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof ai&&t.#n===this))throw new Error("invalid part: "+t);this.#e.push(t)}}toJSON(){let e=this.type===null?this.#e.slice().map(t=>typeof t=="string"?t:t.toJSON()):[this.type,...this.#e.map(t=>t.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#u&&this.#n?.type==="!")&&e.push({}),e}isStart(){if(this.#t===this)return!0;if(!this.#n?.isStart())return!1;if(this.#s===0)return!0;let e=this.#n;for(let t=0;t<this.#s;t++){let n=e.#e[t];if(!(n instanceof ai&&n.type==="!"))return!1}return!0}isEnd(){if(this.#t===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let e=this.#n?this.#n.#e.length:0;return this.#s===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new ai(this.type,e);for(let n of this.#e)t.copyIn(n);return t}static#d(e,t,n,i,r){let a=i.maxExtglobRecursion??2,o=!1,s=!1,l=-1,u=!1;if(t.type===null){let m=n,h="";for(;m<e.length;){let v=e.charAt(m++);if(o||v==="\\"){o=!o,h+=v;continue}if(s){m===l+1?(v==="^"||v==="!")&&(u=!0):v==="]"&&!(m===l+2&&u)&&(s=!1),h+=v;continue}else if(v==="["){s=!0,l=m,u=!1,h+=v;continue}if(!i.noext&&s7(v)&&e.charAt(m)==="("&&r<=a){t.push(h),h="";let b=new ai(v,t);m=ai.#d(e,b,m,i,r+1),t.push(b);continue}h+=v}return t.push(h),m}let c=n+1,d=new ai(null,t),p=[],f="";for(;c<e.length;){let m=e.charAt(c++);if(o||m==="\\"){o=!o,f+=m;continue}if(s){c===l+1?(m==="^"||m==="!")&&(u=!0):m==="]"&&!(c===l+2&&u)&&(s=!1),f+=m;continue}else if(m==="["){s=!0,l=c,u=!1,f+=m;continue}if(!i.noext&&s7(m)&&e.charAt(c)==="("&&(r<=a||t&&t.#p(m))){let v=t&&t.#p(m)?0:1;d.push(f),f="";let y=new ai(m,d);d.push(y),c=ai.#d(e,y,c,i,r+v);continue}if(m==="|"){d.push(f),f="",p.push(d),d=new ai(null,t);continue}if(m===")")return f===""&&t.#e.length===0&&(t.#c=!0),d.push(f),f="",t.push(...p,d),c;f+=m}return t.type=null,t.#r=void 0,t.#e=[e.substring(n-1)],c}#y(e){return this.#m(e,c9e)}#m(e,t=l9e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null)return!1;let n=e.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#p(n.type,t)}#p(e,t=d9e){return!!t.get(this.type)?.includes(e)}#_(e,t){let n=e.#e[0],i=new ai(null,n,this.options);i.#e.push(""),n.push(i),this.#h(e,t)}#h(e,t){let n=e.#e[0];this.#e.splice(t,1,...n.#e);for(let i of n.#e)typeof i=="object"&&(i.#n=this);this.#o=void 0}#b(e){return!!oN.get(this.type)?.has(e)}#w(e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let t=e.#e[0];return!t||typeof t!="object"||t.type===null?!1:this.#b(t.type)}#E(e){let t=oN.get(this.type),n=e.#e[0],i=t?.get(n.type);if(!i)return!1;this.#e=n.#e;for(let r of this.#e)typeof r=="object"&&(r.#n=this);this.type=i,this.#o=void 0,this.#c=!1}static fromGlob(e,t={}){let n=new ai(null,void 0,t);return ai.#d(e,n,0,t,0),n}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();let e=this.toString(),[t,n,i,r]=this.toRegExpSource();if(!(i||this.#r||this.#a.nocase&&!this.#a.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let o=(this.#a.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${t}$`,o),{_src:t,_glob:e})}get options(){return this.#a}toRegExpSource(e){let t=e??!!this.#a.dot;if(this.#t===this&&(this.#f(),this.#v()),!aN(this)){let s=this.isStart()&&this.isEnd()&&!this.#e.some(p=>typeof p!="string"),l=this.#e.map(p=>{let[f,m,h,v]=typeof p=="string"?ai.#S(p,this.#r,s):p.toRegExpSource(e);return this.#r=this.#r||h,this.#i=this.#i||v,f}).join(""),u="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&m9e.has(this.#e[0]))){let f=f9e,m=t&&f.has(l.charAt(0))||l.startsWith("\\.")&&f.has(l.charAt(2))||l.startsWith("\\.\\.")&&f.has(l.charAt(4)),h=!t&&!e&&f.has(l.charAt(0));u=m?p9e:h?V1:""}let c="";return this.isEnd()&&this.#t.#u&&this.#n?.type==="!"&&(c="(?:$|\\/)"),[u+l+c,gp(l),this.#r=!!this.#r,this.#i]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#g(t);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let s=this.toString(),l=this;return l.#e=[s],l.type=null,l.#r=void 0,[s,gp(this.toString()),!1,!1]}let a=!n||e||t||!V1?"":this.#g(!0);a===r&&(a=""),a&&(r=`(?:${r})(?:${a})*?`);let o="";if(this.type==="!"&&this.#c)o=(this.isStart()&&!t?V1:"")+uN;else{let s=this.type==="!"?"))"+(this.isStart()&&!t&&!e?V1:"")+sN+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;o=i+r+s}return[o,gp(r),this.#r=!!this.#r,this.#i]}#f(){if(aN(this)){let e=0,t=!1;do{t=!0;for(let n=0;n<this.#e.length;n++){let i=this.#e[n];typeof i=="object"&&(i.#f(),this.#m(i)?(t=!1,this.#h(i,n)):this.#y(i)?(t=!1,this.#_(i,n)):this.#w(i)&&(t=!1,this.#E(i)))}}while(!t&&++e<10)}else for(let e of this.#e)typeof e=="object"&&e.#f();this.#o=void 0}#g(e){return this.#e.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,i,r,a]=t.toRegExpSource(e);return this.#i=this.#i||a,n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#S(e,t,n=!1){let i=!1,r="",a=!1,o=!1;for(let s=0;s<e.length;s++){let l=e.charAt(s);if(i){i=!1,r+=(h9e.has(l)?"\\":"")+l;continue}if(l==="*"){if(o)continue;o=!0,r+=n&&/^[*]+$/.test(e)?uN:sN,t=!0;continue}else o=!1;if(l==="\\"){s===e.length-1?r+="\\\\":i=!0;continue}if(l==="["){let[u,c,d,p]=s9e(e,s);if(d){r+=u,a=a||c,s+=d-1,t=t||p;continue}}if(l==="?"){r+=mS,t=!0;continue}r+=g9e(l)}return[r,gp(e),!!t,a]}};ai=hS;y9e=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),yn=(e,t,n={})=>(Sg(t),!n.nocomment&&t.charAt(0)==="#"?!1:new Yv(t,n).match(e)),_9e=/^\*+([^+@!?*[(]*)$/,b9e=e=>t=>!t.startsWith(".")&&t.endsWith(e),w9e=e=>t=>t.endsWith(e),E9e=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),S9e=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),k9e=/^\*+\.\*+$/,$9e=e=>!e.startsWith(".")&&e.includes("."),x9e=e=>e!=="."&&e!==".."&&e.includes("."),A9e=/^\.\*+$/,D9e=e=>e!=="."&&e!==".."&&e.startsWith("."),C9e=/^\*+$/,P9e=e=>e.length!==0&&!e.startsWith("."),O9e=e=>e.length!==0&&e!=="."&&e!=="..",I9e=/^\?+([^+@!?*[(]*)?$/,j9e=([e,t=""])=>{let n=BG([e]);return t?(t=t.toLowerCase(),i=>n(i)&&i.toLowerCase().endsWith(t)):n},T9e=([e,t=""])=>{let n=LG([e]);return t?(t=t.toLowerCase(),i=>n(i)&&i.toLowerCase().endsWith(t)):n},N9e=([e,t=""])=>{let n=LG([e]);return t?i=>n(i)&&i.endsWith(t):n},R9e=([e,t=""])=>{let n=BG([e]);return t?i=>n(i)&&i.endsWith(t):n},BG=([e])=>{let t=e.length;return n=>n.length===t&&!n.startsWith(".")},LG=([e])=>{let t=e.length;return n=>n.length===t&&n!=="."&&n!==".."},FG=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",lN={win32:{sep:"\\"},posix:{sep:"/"}},B9e=FG==="win32"?lN.win32.sep:lN.posix.sep;yn.sep=B9e;jn=Symbol("globstar **");yn.GLOBSTAR=jn;L9e="[^/]",F9e=L9e+"*?",M9e="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",z9e="(?:(?!(?:\\/|^)\\.).)*?",U9e=(e,t={})=>n=>yn(n,e,t);yn.filter=U9e;Zi=(e,t={})=>Object.assign({},e,t),q9e=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return yn;let t=yn;return Object.assign((i,r,a={})=>t(i,r,Zi(e,a)),{Minimatch:class extends t.Minimatch{constructor(r,a={}){super(r,Zi(e,a))}static defaults(r){return t.defaults(Zi(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,a,o={}){super(r,a,Zi(e,o))}static fromGlob(r,a={}){return t.AST.fromGlob(r,Zi(e,a))}},unescape:(i,r={})=>t.unescape(i,Zi(e,r)),escape:(i,r={})=>t.escape(i,Zi(e,r)),filter:(i,r={})=>t.filter(i,Zi(e,r)),defaults:i=>t.defaults(Zi(e,i)),makeRe:(i,r={})=>t.makeRe(i,Zi(e,r)),braceExpand:(i,r={})=>t.braceExpand(i,Zi(e,r)),match:(i,r,a={})=>t.match(i,r,Zi(e,a)),sep:t.sep,GLOBSTAR:jn})};yn.defaults=q9e;MG=(e,t={})=>(Sg(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Qbe(e,{max:t.braceExpandMax}));yn.braceExpand=MG;V9e=(e,t={})=>new Yv(e,t).makeRe();yn.makeRe=V9e;Z9e=(e,t,n={})=>{let i=new Yv(t,n);return e=e.filter(r=>i.match(r)),i.options.nonull&&!e.length&&e.push(t),e};yn.match=Z9e;cN=/[?*]|[+@!]\(.*?\)|\[|\]/,G9e=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Yv=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Sg(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||FG,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((r,a,o)=>{if(this.isWindows&&this.windowsNoMagicRoot){let s=r[0]===""&&r[1]===""&&(r[2]==="?"||!cN.test(r[2]))&&!cN.test(r[3]),l=/^[a-z]:/i.test(r[0]);if(s)return[...r.slice(0,4),...r.slice(4).map(u=>this.parse(u))];if(l)return[r[0],...r.slice(1).map(u=>this.parse(u))]}return r.map(s=>this.parse(s))});if(this.debug(this.pattern,i),this.set=i.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let a=this.set[r];a[0]===""&&a[1]===""&&this.globParts[r][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n of e)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){let i=n;for(;t[i+1]==="**";)i++;i!==n&&t.splice(n,i-n)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((n,i)=>{let r=n[n.length-1];return i==="**"&&r==="**"?n:i===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(n.pop(),n):(n.push(i),n)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let r=e[i];i===1&&r===""&&e[0]===""||(r==="."||r==="")&&(t=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let i=e[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let o=n[i+1],s=n[i+2],l=n[i+3];if(o!==".."||!s||s==="."||s===".."||!l||l==="."||l==="..")continue;t=!0,n.splice(i,1);let u=n.slice(0);u[i]="**",e.push(u),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let o=n[a];a===1&&o===""&&n[0]===""||(o==="."||o==="")&&(t=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(t=!0,n.pop())}let r=0;for(;(r=n.indexOf("..",r+1))!==-1;){let a=n[r-1];if(a&&a!=="."&&a!==".."&&a!=="**"){t=!0;let s=r===1&&n[r+1]==="**"?["."]:[];n.splice(r-1,2,...s),n.length===0&&n.push(""),r-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let i=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(i){e[t]=[],e[n]=i;break}}return e.filter(t=>t.length)}partsMatch(e,t,n=!1){let i=0,r=0,a=[],o="";for(;i<e.length&&r<t.length;)if(e[i]===t[r])a.push(o==="b"?t[r]:e[i]),i++,r++;else if(n&&e[i]==="**"&&t[r]===e[i+1])a.push(e[i]),i++;else if(n&&t[r]==="**"&&e[i]===t[r+1])a.push(t[r]),r++;else if(e[i]==="*"&&t[r]&&(this.options.dot||!t[r].startsWith("."))&&t[r]!=="**"){if(o==="b")return!1;o="a",a.push(e[i]),i++,r++}else if(t[r]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(o==="a")return!1;o="b",a.push(t[r]),i++,r++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let i=0,r=0;if(this.isWindows){let o=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),s=!o&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),l=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!l&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),c=s?3:o?0:void 0,d=u?3:l?0:void 0;if(typeof c=="number"&&typeof d=="number"){let[p,f]=[e[c],t[d]];p.toLowerCase()===f.toLowerCase()&&(t[d]=p,r=d,i=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(jn)?this.#t(e,t,n,i,r):this.#i(e,t,n,i,r)}#t(e,t,n,i,r){let a=t.indexOf(jn,r),o=t.lastIndexOf(jn),[s,l,u]=n?[t.slice(r,a),t.slice(a+1),[]]:[t.slice(r,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let y=e.slice(i,i+s.length);if(!this.#i(y,s,n,0,0))return!1;i+=s.length,r+=s.length}let c=0;if(u.length){if(u.length+i>e.length)return!1;let y=e.length-u.length;if(this.#i(e,u,n,y,0))c=u.length;else{if(e[e.length-1]!==""||i+u.length===e.length||(y--,!this.#i(e,u,n,y,0)))return!1;c=u.length+1}}if(!l.length){let y=!!c;for(let b=i;b<e.length-c;b++){let w=String(e[b]);if(y=!0,w==="."||w===".."||!this.options.dot&&w.startsWith("."))return!1}return n||y}let d=[[[],0]],p=d[0],f=0,m=[0];for(let y of l)y===jn?(m.push(f),p=[[],0],d.push(p)):(p[0].push(y),f++);let h=d.length-1,v=e.length-c;for(let y of d)y[1]=v-(m[h--]+y[0].length);return!!this.#r(e,d,i,0,n,0,!!c)}#r(e,t,n,i,r,a,o){let s=t[i];if(!s){for(let c=n;c<e.length;c++){o=!0;let d=e[c];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1}return o}let[l,u]=s;for(;n<=u;){if(this.#i(e.slice(0,n+l.length),l,r,n,0)&&a<this.maxGlobstarRecursion){let p=this.#r(e,t,n+l.length,i+1,r,a+1,o);if(p!==!1)return p}let d=e[n];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1;n++}return r||null}#i(e,t,n,i,r){let a,o,s,l;for(a=i,o=r,l=e.length,s=t.length;a<l&&o<s;a++,o++){this.debug("matchOne loop");let u=t[o],c=e[a];if(this.debug(t,u,c),u===!1||u===jn)return!1;let d;if(typeof u=="string"?(d=c===u,this.debug("string match",u,c,d)):(d=u.test(c),this.debug("pattern match",u,c,d)),!d)return!1}if(a===l&&o===s)return!0;if(a===l)return n;if(o===s)return a===l-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return MG(this.pattern,this.options)}parse(e){Sg(e);let t=this.options;if(e==="**")return jn;if(e==="")return"";let n,i=null;(n=e.match(C9e))?i=t.dot?O9e:P9e:(n=e.match(_9e))?i=(t.nocase?t.dot?S9e:E9e:t.dot?w9e:b9e)(n[1]):(n=e.match(I9e))?i=(t.nocase?t.dot?T9e:j9e:t.dot?N9e:R9e)(n):(n=e.match(k9e))?i=t.dot?x9e:$9e:(n=e.match(A9e))&&(i=D9e);let r=hS.fromGlob(e,this.options).toMMPattern();return i&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:i}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?F9e:t.dot?M9e:z9e,i=new Set(t.nocase?["i"]:[]),r=e.map(s=>{let l=s.map(c=>{if(c instanceof RegExp)for(let d of c.flags.split(""))i.add(d);return typeof c=="string"?G9e(c):c===jn?jn:c._src});l.forEach((c,d)=>{let p=l[d+1],f=l[d-1];c!==jn||f===jn||(f===void 0?p!==void 0&&p!==jn?l[d+1]="(?:\\/|"+n+"\\/)?"+p:l[d]=n:p===void 0?l[d-1]=f+"(?:\\/|\\/"+n+")?":p!==jn&&(l[d-1]=f+"(?:\\/|\\/"+n+"\\/)"+p,l[d+1]=jn))});let u=l.filter(c=>c!==jn);if(this.partial&&u.length>=1){let c=[];for(let d=1;d<=u.length;d++)c.push(u.slice(0,d).join("/"));return"(?:"+c.join("|")+")"}return u.join("/")}).join("|"),[a,o]=e.length>1?["(?:",")"]:["",""];r="^"+a+r+o+"$",this.partial&&(r="^(?:\\/|"+a+r.slice(1,-1)+o+")$"),this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let r=this.set;this.debug(this.pattern,"set",r);let a=i[i.length-1];if(!a)for(let o=i.length-2;!a&&o>=0;o--)a=i[o];for(let o of r){let s=i;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return yn.defaults(e).Minimatch}};yn.AST=hS;yn.Minimatch=Yv;yn.escape=y9e;yn.unescape=gp;H9e=new Set(["node_modules",".git","dist",".next","coverage"]);});var vW={};zn(vW,{createModelResolver:()=>gW});function hW(e,t){let n=e.indexOf(":");if(n===-1)return{adapter:t,model:e||void 0};let i=e.slice(0,n)||t,r=e.slice(n+1)||void 0;return{adapter:i,model:r}}function gW(e){let t=e.env??process.env;return{resolve(n){let i={adapter:e.fallbackAdapter,model:e.fallbackModel};if(!n)return i;let r=t[S8e[n]];if(r)return hW(r,e.fallbackAdapter);let a=t[c4];if(a)return hW(a,e.fallbackAdapter);let o=e.modelMapping?.[n];return o?{adapter:o.adapter,model:o.model}:i}}}var c4,S8e,xS=zu(()=>{"use strict";c4="AGENT_RUNTIME_MODEL",S8e={fast:`${c4}_FAST`,standard:`${c4}_STANDARD`,thinking:`${c4}_THINKING`}});var f4={};zn(f4,{ClaudeAgentSdkAdapter:()=>DS});function l7e(e){return{PreToolUse:[{hooks:[n=>{let i=n.tool_input,r=n.tool_name;if(r==="Bash"||r==="Shell"){let o=i?.command??i?.input;if(o){let s=e.beforeShellExecution({command:o});if(s.permission==="deny")return{hookEventName:"PreToolUse",permissionDecision:"deny",permissionDecisionReason:s.user_message??s.agent_message};if(s.additionalContext)return{hookEventName:"PreToolUse",additionalContext:s.additionalContext}}}let a=i?.file_path??i?.path;if(a){let o=e.preToolUse({tool_name:r,tool_input:{file_path:a}});if(o.permission==="deny")return{hookEventName:"PreToolUse",permissionDecision:"deny",permissionDecisionReason:o.user_message??o.agent_message};if(o.additionalContext)return{hookEventName:"PreToolUse",additionalContext:o.additionalContext}}return{hookEventName:"PreToolUse"}}]}]}}function c7e(e,t,n){let i=e.session_id??n;switch(e.type){case"assistant":{let r=e.message?.content;if(!r)break;for(let a of r)if(a.type==="tool_use"&&a.name){let o=a.input&&typeof a.input=="object"?a.input:void 0;t({type:"tool_use",tool_name:a.name,input:o,session_id:i})}else a.type==="text"&&a.text&&t({type:"text",message:a.text,session_id:i});break}case"tool_progress":e.tool_name&&t({type:"tool_use",tool_name:e.tool_name,session_id:i});break;case"tool_use_summary":e.summary&&t({type:"status",message:e.summary,session_id:i});break;default:break}}var DS,m4=zu(()=>{"use strict";DS=class e{cwd;model;tools;permissionMode;maxTurns;guardrailHooks;cacheConfig;lastSessionId=null;lastMemoryRef=null;queryFn=null;constructor(t={}){this.cwd=t.cwd??process.cwd(),this.model=t.model,this.tools=t.tools,this.permissionMode=t.permissionMode??"bypassPermissions",this.maxTurns=t.maxTurns,this.guardrailHooks=t.guardrailHooks,this.cacheConfig=t.cacheConfig??{enabled:!0}}async resolveQueryFn(){if(this.queryFn)return this.queryFn;let t=await import("@anthropic-ai/claude-agent-sdk");return this.queryFn=t.query,this.queryFn}buildOptions(t,n,i,r){let a={cwd:this.cwd,permissionMode:this.permissionMode,allowDangerouslySkipPermissions:this.permissionMode==="bypassPermissions",settingSources:[]};this.model&&(a.model=this.model),this.maxTurns&&(a.maxTurns=this.maxTurns);let o;if(this.tools?o=Array.isArray(this.tools)?[...this.tools]:this.tools:o=t?["Read","Glob","Grep"]:["Read","Glob","Grep","Edit","Write","Bash"],r&&r.length>0&&Array.isArray(o))for(let s of["Task","Agent"])o.includes(s)||o.push(s);if(a.tools=o,n&&(a.resume=n),i&&this.cacheConfig.enabled!==!1&&(a.systemPrompt=i),r&&r.length>0){let s={};for(let l of r)s[l.name]={description:l.description,prompt:l.prompt,...l.tools?{tools:l.tools}:{},...l.model?{model:l.model}:{}};a.agents=s}return this.guardrailHooks&&(a.hooks=l7e(this.guardrailHooks)),a}async runQuery(t,n,i){let a=(await this.resolveQueryFn())({prompt:t,options:n}),o="",s="";for await(let l of a)if(l.session_id&&(s=l.session_id),l.type==="result"){if(l.subtype==="success")o=l.result;else if(l.subtype==="error")throw new Error(`Claude Agent SDK error: ${l.error}`)}else i&&c7e(l,i,s);return{text:o,sessionId:s}}async send(t,n){this.lastSessionId=null,this.lastMemoryRef=null;let i=n.splitPrompt,r=i?.system,a=i?i.user:t,o=this.buildOptions(n.readonly,void 0,r,n.agents),{text:s,sessionId:l}=await this.runQuery(a,o,n.onProgress);return this.lastSessionId=l,this.lastMemoryRef={id:l,provider:"claude-agent-sdk",compat:"claude-agent-sdk@0.2",created_at:new Date().toISOString()},s}async followUp(t){if(!this.lastSessionId)throw new Error("followUp() called before send() \u2014 no active session");let n=this.buildOptions(!1,this.lastSessionId),{text:i,sessionId:r}=await this.runQuery(t,n);return this.lastSessionId=r,i}async sendExecution(t){this.lastSessionId=null,this.lastMemoryRef=null;let n=t.memoryRef?.id,i=t.splitPrompt,r=i?.system,a=i?i.user:t.prompt,o=t.options.agents??t.agents,s=this.buildOptions(t.options.readonly,n,r,o),{text:l,sessionId:u}=await this.runQuery(a,s,t.options.onProgress);return this.lastSessionId=u,this.lastMemoryRef={id:u,provider:"claude-agent-sdk",compat:"claude-agent-sdk@0.2",created_at:new Date().toISOString(),parent_run_id:t.memoryRef?.id},l}getLastMemoryRef(){return this.lastMemoryRef}isCompatible(t){return t.startsWith("claude-agent-sdk@")}static withQueryFn(t,n){let i=new e(n);return i.queryFn=t,i}}});var h4={};zn(h4,{MockAdapter:()=>CS});var CS,g4=zu(()=>{"use strict";CS=class{responses;defaultLatencyMs;lastMemoryRef=null;constructor(t){this.responses=t?.responses??{},this.defaultLatencyMs=t?.defaultLatencyMs??0}async send(t,n){let r=t.match(/## Task: (\S+)/)?.[1]??"unknown",o=t.match(/## User Request\n\n([\s\S]*?)(?:\n\n---|$)/)?.[1]?.trim()??"";this.defaultLatencyMs>0&&await new Promise(u=>setTimeout(u,this.defaultLatencyMs));let s=this.responses[r];if(!s)return`Task "${r}" completed but no structured output available.`;let l=s(o);return this.lastMemoryRef={id:`mock-ref-${Date.now()}`,provider:"mock",compat:"mock@1",created_at:new Date().toISOString()},l}getLastMemoryRef(){return this.lastMemoryRef}isCompatible(t){return t.startsWith("mock@")}}});var LW={};zn(LW,{AdkSdkAdapter:()=>IS});function BW(e){let t=e.replace(/[^a-zA-Z0-9_]/g,"_");return(t.length===0||/^[0-9]/.test(t))&&(t=`agent_${t}`),t==="user"&&(t="user_agent"),t}function C7e(e){let t=e.content?.parts;return t?t.map(n=>n.text??"").join(""):""}function P7e(e,t){let n=e.content?.parts;if(n)for(let i of n)i.functionCall?.name?t({type:"tool_use",tool_name:i.functionCall.name,input:i.functionCall.args}):i.functionResponse?.name?t({type:"tool_result",tool_name:i.functionResponse.name}):i.text&&t({type:"text",message:i.text})}var IS,FW=zu(()=>{"use strict";IS=class e{apiKey;model;rootAgentName;guardrailHooks;cacheConfig;lastMemoryRef=null;runCounter=0;sdk=null;constructor(t={}){this.apiKey=t.apiKey,this.model=t.model??"gemini-2.5-flash",this.rootAgentName=t.rootAgentName??"root_agent",this.guardrailHooks=t.guardrailHooks,this.cacheConfig=t.cacheConfig??{enabled:!0}}async resolveSdk(){if(this.sdk)return this.sdk;let t=await import("@google/adk");return this.sdk={LlmAgent:t.LlmAgent,InMemoryRunner:t.InMemoryRunner,isFinalResponse:t.isFinalResponse,stringifyContent:t.stringifyContent,Gemini:t.Gemini},this.sdk}resolveModel(t){return this.apiKey?new t.Gemini({model:this.model,apiKey:this.apiKey}):this.model}buildRootAgent(t,n,i){let r=(i??[]).map(o=>{let s={name:BW(o.name),description:o.description,instruction:o.prompt,model:o.model??this.resolveModel(t)};return o.tools&&(s.tools=o.tools),new t.LlmAgent(s)}),a={name:BW(this.rootAgentName),instruction:n,model:this.resolveModel(t)};return r.length>0&&(a.subAgents=r),new t.LlmAgent(a)}async runAgent(t,n,i,r){let a=await this.resolveSdk(),o=this.buildRootAgent(a,t,i),s=new a.InMemoryRunner({agent:o}),l="",u=s.runEphemeral({userId:"agent-runtime",newMessage:{role:"user",parts:[{text:n}]}});for await(let c of u)if(r&&P7e(c,r),a.isFinalResponse(c)&&c.content){let d=a.stringifyContent(c)||C7e(c);d&&(l=d)}return l}nextMemoryRef(){return{id:`adk-run-${++this.runCounter}-${Date.now()}`,provider:"google-adk",compat:`google-adk@${this.model}`,created_at:new Date().toISOString()}}async send(t,n){this.lastMemoryRef=null;let i=n.splitPrompt,r="",a;i&&this.cacheConfig.enabled!==!1?(r=i.system.join(`
|
|
584
|
+
`)});E5e=new RegExp(`\\{(${qv.join("|")})\\.[^}]+\\}`);x5e=Qr(oc(),1),C5e=Qr(oc(),1),_G=U.object({template:U.string(),context:tS,output:U.string(),include:U.array(U.string()).optional(),exclude:U.array(U.string()).optional(),skip_empty:U.boolean().optional()}).refine(e=>!(e.include&&e.exclude),{message:"include and exclude are mutually exclusive"}).refine(e=>!(e.context==="system"&&(e.include||e.exclude)),{message:"include/exclude cannot be used with context: system"}),j5e=U.object({dsl:U.string().optional(),bindings:U.array(U.string()).default([]),vars:U.record(U.string(),U.string()).optional(),paths:U.record(U.string(),U.string()).optional(),active_guardrail_policy:U.string().optional(),interface_output:U.string().optional()}),T5e=U.object({adapter:U.string().optional(),model:U.string().optional(),temperature:U.number().min(0).max(2).optional(),cache_dir:U.string().optional()}).optional(),N5e=U.object({exclude_patterns:U.array(U.string()).default([])}).optional(),bG=U.object({dsl:U.string().optional(),vars:U.record(U.string(),U.string()).optional(),renders:U.array(_G).default([]),bindings:U.array(U.string()).default([]),active_guardrail_policy:U.string().optional(),paths:U.record(U.string(),U.string()).optional(),teams:U.record(U.string(),j5e).optional(),audit:T5e,artifact_coverage:N5e}).superRefine((e,t)=>{if(e.dsl!==void 0&&e.teams!==void 0){t.addIssue({code:U.ZodIssueCode.custom,message:"dsl and teams are mutually exclusive",path:["teams"]});return}if(e.dsl===void 0&&e.teams===void 0){t.addIssue({code:U.ZodIssueCode.custom,message:"Either dsl or teams must be specified",path:[]});return}if(e.teams)for(let[n,i]of Object.entries(e.teams))n!=="_defaults"&&i.dsl===void 0&&t.addIssue({code:U.ZodIssueCode.custom,message:`Team "${n}" must specify dsl`,path:["teams",n,"dsl"]})}),R5e="agent-contracts.config.yaml",$i=class extends Error{constructor(e,t){super(e),this.filePath=t,this.name="ConfigLoadError"}filePath};z5e={guardrail_impl:"map",outputs:"map",renders:"array",reporting:"object"};K5e={agents:{section:"agents",fields:["responsibilities","constraints","rules"]},tasks:{section:"tasks",fields:["description","responsibilities","execution_steps","completion_criteria"]},artifacts:{section:"artifacts",fields:["description","visibility"]},tools:{section:"tools",fields:["description","commands"]},workflow:{section:"workflow",fields:["description","trigger","entry_conditions"]},guardrails:{section:"guardrails",fields:["rationale","tags"]}};Kl=Qr(oc(),1);cbe={id:"dsl-auditor",role_name:"DSL Auditor",purpose:"Audit completeness of agent-contracts DSL definitions against generated agent prompts, detect gaps, and present improvement recommendations.",mode:"read-write",dispatch_only:!1,can_read_artifacts:["dsl-source","dsl-generated-output","dsl-audit-report","dsl-score-report"],can_write_artifacts:["dsl-audit-report"],can_execute_tools:["agent-contracts-cli"],can_invoke_agents:["dsl-auditor"],can_return_handoffs:["dsl-audit-result"],responsibilities:["Cross-check DSL definitions against generated prompts across 19 dimensions","Classify detected gaps as template gap, data gap, or DSL gap","Prioritize improvement recommendations (P0/P1/P2) with concrete fix proposals","Report score-based improvement areas as audit recommendations (read-only; consumes dsl-score-report produced by dsl-designer)","Review DSL design for semantic coherence (role overlap, scope breadth, gate placement)","Verify generated prompts faithfully represent DSL intent (no hallucinated permissions)","Audit x-* extension consumption across render templates and runtime codegen paths"],constraints:["Do not directly modify DSL definitions (read-only analysis)","Do not execute agent-contracts score independently; consume dsl-score-report produced by dsl-designer only","Recommendations must include concrete YAML or template fix proposals","Findings must be classified as PASS / MISS / PARTIAL / N/A"],rules:[{id:"R-AUDIT-001",description:"Audit must cover all 19 dimensions: purpose, mode, can_read_artifacts, can_write_artifacts, can_invoke_agents, tools, can_perform_validations, responsibilities, constraints, rules, escalation_criteria, x-authority, supported_tasks, delegatable_tasks, handoff_schemas, guardrails, anti_patterns, x-audit-checklist, x-sections.",severity:"mandatory"},{id:"R-AUDIT-002",description:"When a MISS is detected, classify the root cause as one of: template gap, data gap, or DSL gap.",severity:"mandatory"}],escalation_criteria:[{condition:"3 or more critical-level gaps detected",action:"stop_and_report"},{condition:"Structural defect detected in templates",action:"stop_and_report"}]},dbe={id:"dsl-designer",role_name:"DSL Designer",purpose:"Design, create, and update agent-contracts DSL definitions and bindings. Verify quality using validate, lint, render, and score commands. Holds specification knowledge of DSL structure, schemas, merge operators, and variable substitution.",mode:"read-write",dispatch_only:!1,can_read_artifacts:["dsl-source","dsl-generated-output","dsl-score-report","dsl-audit-report"],can_write_artifacts:["dsl-source","dsl-generated-output","dsl-score-report"],can_execute_tools:["agent-contracts-cli"],can_invoke_agents:["dsl-designer"],can_return_handoffs:["dsl-task-result"],responsibilities:["Create new and update existing agent-contracts DSL (YAML) definitions","Design all sections \u2014 agents, tasks, artifacts, tools, validations, handoff_types, workflow, policies, guardrails, guardrail_policies","Add and update software bindings","Correctly use extends-based DSL inheritance and merge operators","Verify quality via agent-contracts validate / lint / render / score","Improve score across 7 dimensions (artifact validation coverage, task validation coverage, guardrail policy coverage, workflow validation integration, schema completeness, cross-reference bidirectionality, guardrail scope resolution)"],constraints:["DSL definitions must pass agent-contracts validate","Do not break existing extends inheritance chains","Do not directly edit generated files \u2014 always modify DSL source and re-render","handoff_types schemas must be JSON Schema compliant with correct allOf $ref usage"],rules:[{id:"R-DSL-001",description:"After any DSL change, verify in order: validate \u2192 lint \u2192 render --check \u2192 score.",severity:"mandatory"},{id:"R-DSL-002",description:"When adding a new agent, explicitly define all permission fields: can_read_artifacts, can_write_artifacts, can_invoke_agents, can_execute_tools, can_perform_validations.",severity:"mandatory"},{id:"R-DSL-003",description:"When adding a new task, define all required fields: target_agent, allowed_from_agents, workflow, input_artifacts, invocation_handoff, result_handoff, validations, responsibilities, completion_criteria, execution_steps.",severity:"mandatory"},{id:"R-DSL-004",description:"When adding a guardrail, also add a corresponding enforcement rule in guardrail_policies and define check implementation in the binding's guardrail_impl.",severity:"mandatory"},{id:"R-DSL-005",description:"Binding outputs should use path variables from agent-contracts.config.yaml (e.g. {cursor_root}, {check_scripts_root}).",severity:"recommended"}],escalation_criteria:[{condition:"Schema errors from validate cannot be resolved",action:"stop_and_report"},{condition:"Unintended override occurring during extends merge",action:"stop_and_report"},{condition:"Score below 70% with no clear improvement path",action:"stop_and_report"}]},pbe={"dsl-auditor":cbe,"dsl-designer":dbe},fbe={id:"update-dsl-definitions",description:"Create new or update existing agent-contracts DSL definitions",target_agent:"dsl-designer",allowed_from_agents:["dsl-designer"],workflow:"dsl-update",invocation_handoff:"dsl-task-request",result_handoff:"dsl-task-result",input_artifacts:["dsl-source"],responsibilities:["Create and update DSL YAML files","Define agents, tasks, artifacts, tools, validations, handoff_types, workflow, guardrails","Configure system section"],completion_criteria:["agent-contracts validate succeeds","agent-contracts lint reports no errors","Cross-references for newly added entities are correct"],optional:!1},mbe={id:"update-dsl-binding",description:"Create new or update existing software bindings",target_agent:"dsl-designer",allowed_from_agents:["dsl-designer"],workflow:"dsl-update",invocation_handoff:"dsl-task-request",result_handoff:"dsl-task-result",input_artifacts:["dsl-source"],responsibilities:["Add and update guardrail_impl check definitions","Configure outputs section templates and inline templates","Set up binding extends inheritance"],completion_criteria:["Binding YAML conforms to the correct schema","guardrail_impl hook_event / matcher values are valid","agent-contracts generate guardrails succeeds"],optional:!1},hbe={id:"render-dsl-outputs",description:"Render prompts and documents from DSL and check for drift",target_agent:"dsl-designer",allowed_from_agents:["dsl-designer"],workflow:"dsl-update",invocation_handoff:"dsl-task-request",result_handoff:"dsl-task-result",input_artifacts:["dsl-source"],responsibilities:["Generate prompts and documents via agent-contracts render","Detect and resolve drift using render --check"],completion_criteria:["render succeeds","render --check reports no drift"],optional:!1},gbe={id:"check-dsl-score",description:"Check DSL completeness score and identify improvement areas",target_agent:"dsl-designer",allowed_from_agents:["dsl-designer"],workflow:"dsl-update",invocation_handoff:"dsl-task-request",result_handoff:"dsl-task-result",input_artifacts:["dsl-source"],responsibilities:["Review score across 7 dimensions and identify weaknesses","List entities that need improvement"],completion_criteria:["Score results have been reviewed","Improvement areas have been identified"],optional:!1},vbe={id:"audit-dsl-completeness",description:"Audit completeness of DSL definitions against generated prompts",target_agent:"dsl-auditor",allowed_from_agents:["dsl-auditor"],workflow:"dsl-audit",invocation_handoff:"dsl-task-request",result_handoff:"dsl-audit-result",input_artifacts:["dsl-source","dsl-generated-output"],responsibilities:["Cross-check across 19 dimensions per audit procedure","Classify gaps as template gap, data gap, or DSL gap","Present improvement recommendations"],completion_criteria:["All dimensions inspected for all agents","Detected gaps are classified","Improvement recommendations are presented with priority"],optional:!1},ybe={id:"audit-semantic-design",description:"Audit DSL design for semantic coherence",target_agent:"dsl-auditor",allowed_from_agents:["dsl-auditor"],workflow:"dsl-audit",invocation_handoff:"dsl-task-request",result_handoff:"dsl-audit-result",input_artifacts:["dsl-source"],responsibilities:["Check dispatch_only agents for implementation responsibilities","Detect agents with overly broad scope","Identify role overlap between agents","Verify handoff schemas carry sufficient fields for task completion_criteria","Check workflow gates are placed effectively","Detect guardrails declared but absent from execution path","Check semantic validations are distributed across phases","Detect custom x- properties that replicate standard DSL control-flow features (gate, decision, entry_conditions)"],completion_criteria:["All agents reviewed for scope and overlap","Workflow gate placement analyzed","Guardrail enforcement path verified","Custom x- property misuse flagged","Findings classified with severity and category"],optional:!1},_be={id:"audit-generated-prompts",description:"Audit generated prompts against DSL intent",target_agent:"dsl-auditor",allowed_from_agents:["dsl-auditor"],workflow:"dsl-audit",invocation_handoff:"dsl-task-request",result_handoff:"dsl-audit-result",input_artifacts:["dsl-source","dsl-generated-output"],responsibilities:["Compare generated prompt content against DSL agent definitions","Detect missing requirements from DSL","Detect hallucinated permissions not in DSL","Identify ambiguous or unsafe instructions","Verify consistency between prompt and handoff schema expectations"],completion_criteria:["All generated prompts compared against DSL definitions","Missing, hallucinated, and ambiguous instructions identified","Findings classified with severity and category"],optional:!1},bbe={id:"audit-extension-consumption",description:"Audit declared x-* extensions for consumption gaps across render and runtime paths",target_agent:"dsl-auditor",allowed_from_agents:["dsl-auditor"],workflow:"dsl-audit",invocation_handoff:"dsl-task-request",result_handoff:"dsl-audit-result",input_artifacts:["dsl-source","dsl-generated-output"],responsibilities:["Cross-check extensions declarations against entity x-* usage","Identify x-* properties populated in DSL but not consumed by any render template","Detect semantic overlap between x-* extensions and standard DSL features","Report runtime codegen reachability for each extension","Distinguish intentional metadata-only extensions from consumption gaps"],completion_criteria:["All declared extensions checked for template and runtime consumption","Unused extensions flagged with suggested action (remove, migrate to standard, or add template support)","Runtime-unreachable extensions documented with explanation","Findings classified with severity and category"],optional:!1},wbe={"update-dsl-definitions":fbe,"update-dsl-binding":mbe,"render-dsl-outputs":hbe,"check-dsl-score":gbe,"audit-dsl-completeness":vbe,"audit-semantic-design":ybe,"audit-generated-prompts":_be,"audit-extension-consumption":bbe},Ebe=U.object({task_id:U.string(),scope:U.string().optional(),context:U.string().optional()}),Sbe=U.object({changed_files:U.array(U.string()).optional(),validation_result:U.enum(["pass","fail"]),lint_result:U.enum(["pass","fail","skipped"]).optional(),generate_result:U.enum(["pass","fail","skipped"]).optional(),render_result:U.enum(["pass","fail","skipped"]).optional(),drift_detected:U.boolean().optional(),cross_reference_check:U.enum(["pass","fail","skipped"]).optional(),score:U.number().optional(),score_dimensions:U.record(U.string(),U.unknown()).optional(),notes:U.string().optional()}),kbe=U.object({summary:U.string(),risk_level:U.enum(["low","medium","high","critical"]),findings:U.array(U.object({id:U.string().optional(),severity:U.enum(["info","warning","error","critical"]),category:U.string(),target:U.string().optional(),location:U.string().optional(),message:U.string(),recommendation:U.string().optional(),confidence:U.number().optional(),evidence:U.array(U.object({kind:U.enum(["file","command","schema","diff","stdout","stderr","text"]),target:U.string().optional(),location:U.string().optional(),excerpt:U.string().optional()})).optional(),details:U.record(U.string(),U.unknown()).optional()})),recommended_actions:U.array(U.object({kind:U.enum(["run_command","edit_file","review","confirm","block","ignore"]),title:U.string(),command:U.string().optional(),target:U.string().optional(),rationale:U.string().optional()})).optional(),metadata:U.object({tool:U.string().optional(),command:U.string().optional(),version:U.string().optional(),generated_at:U.string().optional(),adapter:U.string().optional(),model:U.string().optional()}).optional()}),$be=U.object({audit_type:U.enum(["completeness","semantic","prompt","extensions"]),total_dimensions:U.number(),pass_count:U.number(),miss_count:U.number(),partial_count:U.number().optional(),agents_reviewed:U.number().optional(),prompts_reviewed:U.number().optional(),gate_analysis_complete:U.boolean().optional(),guardrail_enforcement_verified:U.boolean().optional(),critical_gaps:U.array(U.object({dimension:U.string().optional(),agent:U.string().optional(),gap_type:U.enum(["template_gap","data_gap","dsl_gap"]).optional(),severity:U.enum(["critical","warning","info"]).optional()})).optional(),recommendations:U.array(U.object({priority:U.enum(["P0","P1","P2"]).optional(),description:U.string().optional(),fix_type:U.enum(["template_fix","dsl_fix","regeneration"]).optional()})).optional()}),xbe={"dsl-task-request":Ebe,"dsl-task-result":Sbe,"audit-result":kbe,"dsl-audit-result":$be};Dbe={render:"audit-dsl-completeness",dsl:"audit-semantic-design",prompt:"audit-generated-prompts",extensions:"audit-extension-consumption"};uu=Qr(fF(),1),xG=Qr(oc(),1);uu.default.registerHelper("json",e=>new uu.default.SafeString(JSON.stringify(e,null,2)));uu.default.registerHelper("expand",(e,t)=>{if(typeof e!="string")return"";let n=t.hash,i=e;for(let[r,a]of Object.entries(n))i=i.replace(new RegExp(`\\{\\{${r}\\}\\}`,"g"),String(a));return new uu.default.SafeString(i)});OG=(e,t,n)=>{let i=e instanceof RegExp?nN(e,n):e,r=t instanceof RegExp?nN(t,n):t,a=i!==null&&r!=null&&Fbe(i,r,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+i.length,a[1]),post:n.slice(a[1]+r.length)}},nN=(e,t)=>{let n=t.match(e);return n?n[0]:null},Fbe=(e,t,n)=>{let i,r,a,o,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(i=[],a=n.length;c>=0&&!s;){if(c===l)i.push(c),l=n.indexOf(e,c+1);else if(i.length===1){let d=i.pop();d!==void 0&&(s=[d,u])}else r=i.pop(),r!==void 0&&r<a&&(a=r,o=u),u=n.indexOf(t,c+1);c=l<u&&l>=0?l:u}i.length&&o!==void 0&&(s=[a,o])}return s},IG="\0SLASH"+Math.random()+"\0",jG="\0OPEN"+Math.random()+"\0",fS="\0CLOSE"+Math.random()+"\0",TG="\0COMMA"+Math.random()+"\0",NG="\0PERIOD"+Math.random()+"\0",Mbe=new RegExp(IG,"g"),zbe=new RegExp(jG,"g"),Ube=new RegExp(fS,"g"),qbe=new RegExp(TG,"g"),Vbe=new RegExp(NG,"g"),Zbe=/\\\\/g,Gbe=/\\{/g,Wbe=/\\}/g,Kbe=/\\,/g,Hbe=/\\\./g,Jbe=1e5;i9e=1024*64,Sg=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>i9e)throw new TypeError("pattern is too long")},a9e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},up=e=>e.replace(/[[\]\\-]/g,"\\$&"),o9e=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),iN=e=>e.join(""),s9e=(e,t)=>{let n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");let i=[],r=[],a=n+1,o=!1,s=!1,l=!1,u=!1,c=n,d="";e:for(;a<e.length;){let h=e.charAt(a);if((h==="!"||h==="^")&&a===n+1){u=!0,a++;continue}if(h==="]"&&o&&!l){c=a+1;break}if(o=!0,h==="\\"&&!l){l=!0,a++;continue}if(h==="["&&!l){for(let[v,[y,b,w]]of Object.entries(a9e))if(e.startsWith(v,a)){if(d)return["$.",!1,e.length-n,!0];a+=v.length,w?r.push(y):i.push(y),s=s||b;continue e}}if(l=!1,d){h>d?i.push(up(d)+"-"+up(h)):h===d&&i.push(up(h)),d="",a++;continue}if(e.startsWith("-]",a+1)){i.push(up(h+"-")),a+=2;continue}if(e.startsWith("-",a+1)){d=h,a+=2;continue}i.push(up(h)),a++}if(c<a)return["",!1,0,!1];if(!i.length&&!r.length)return["$.",!1,e.length-n,!0];if(r.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!u){let h=i[0].length===2?i[0].slice(-1):i[0];return[o9e(h),!1,c-n,!1]}let p="["+(u?"^":"")+iN(i)+"]",f="["+(u?"":"^")+iN(r)+"]";return[i.length&&r.length?"("+p+"|"+f+")":i.length?p:f,s,c-n,!0]},gp=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),u9e=new Set(["!","?","+","*","@"]),s7=e=>u9e.has(e),aN=e=>s7(e.type),l9e=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),c9e=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),d9e=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),oN=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),p9e="(?!(?:^|/)\\.\\.?(?:$|/))",V1="(?!\\.)",f9e=new Set(["[","."]),m9e=new Set(["..","."]),h9e=new Set("().*{}+?[]^$\\!"),g9e=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mS="[^/]",sN=mS+"*?",uN=mS+"+?",v9e=0,hS=class{type;#t;#r;#i=!1;#e=[];#n;#s;#l;#u=!1;#a;#o;#c=!1;id=++v9e;get depth(){return(this.#n?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#t.id,parent:this.#n?.id,depth:this.depth,partsLength:this.#e.length,parts:this.#e}}constructor(e,t,n={}){this.type=e,e&&(this.#r=!0),this.#n=t,this.#t=this.#n?this.#n.#t:this,this.#a=this.#t===this?n:this.#t.#a,this.#l=this.#t===this?[]:this.#t.#l,e==="!"&&!this.#t.#u&&this.#l.push(this),this.#s=this.#n?this.#n.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#o=this.#e.map(e=>String(e)).join("")}#v(){if(this!==this.#t)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#l.pop();){if(e.type!=="!")continue;let t=e,n=t.#n;for(;n;){for(let i=t.#s+1;!n.type&&i<n.#e.length;i++)for(let r of e.#e){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(n.#e[i])}t=n,n=t.#n}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof ai&&t.#n===this))throw new Error("invalid part: "+t);this.#e.push(t)}}toJSON(){let e=this.type===null?this.#e.slice().map(t=>typeof t=="string"?t:t.toJSON()):[this.type,...this.#e.map(t=>t.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#u&&this.#n?.type==="!")&&e.push({}),e}isStart(){if(this.#t===this)return!0;if(!this.#n?.isStart())return!1;if(this.#s===0)return!0;let e=this.#n;for(let t=0;t<this.#s;t++){let n=e.#e[t];if(!(n instanceof ai&&n.type==="!"))return!1}return!0}isEnd(){if(this.#t===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let e=this.#n?this.#n.#e.length:0;return this.#s===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let t=new ai(this.type,e);for(let n of this.#e)t.copyIn(n);return t}static#d(e,t,n,i,r){let a=i.maxExtglobRecursion??2,o=!1,s=!1,l=-1,u=!1;if(t.type===null){let m=n,h="";for(;m<e.length;){let v=e.charAt(m++);if(o||v==="\\"){o=!o,h+=v;continue}if(s){m===l+1?(v==="^"||v==="!")&&(u=!0):v==="]"&&!(m===l+2&&u)&&(s=!1),h+=v;continue}else if(v==="["){s=!0,l=m,u=!1,h+=v;continue}if(!i.noext&&s7(v)&&e.charAt(m)==="("&&r<=a){t.push(h),h="";let b=new ai(v,t);m=ai.#d(e,b,m,i,r+1),t.push(b);continue}h+=v}return t.push(h),m}let c=n+1,d=new ai(null,t),p=[],f="";for(;c<e.length;){let m=e.charAt(c++);if(o||m==="\\"){o=!o,f+=m;continue}if(s){c===l+1?(m==="^"||m==="!")&&(u=!0):m==="]"&&!(c===l+2&&u)&&(s=!1),f+=m;continue}else if(m==="["){s=!0,l=c,u=!1,f+=m;continue}if(!i.noext&&s7(m)&&e.charAt(c)==="("&&(r<=a||t&&t.#p(m))){let v=t&&t.#p(m)?0:1;d.push(f),f="";let y=new ai(m,d);d.push(y),c=ai.#d(e,y,c,i,r+v);continue}if(m==="|"){d.push(f),f="",p.push(d),d=new ai(null,t);continue}if(m===")")return f===""&&t.#e.length===0&&(t.#c=!0),d.push(f),f="",t.push(...p,d),c;f+=m}return t.type=null,t.#r=void 0,t.#e=[e.substring(n-1)],c}#y(e){return this.#m(e,c9e)}#m(e,t=l9e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null)return!1;let n=e.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#p(n.type,t)}#p(e,t=d9e){return!!t.get(this.type)?.includes(e)}#_(e,t){let n=e.#e[0],i=new ai(null,n,this.options);i.#e.push(""),n.push(i),this.#h(e,t)}#h(e,t){let n=e.#e[0];this.#e.splice(t,1,...n.#e);for(let i of n.#e)typeof i=="object"&&(i.#n=this);this.#o=void 0}#b(e){return!!oN.get(this.type)?.has(e)}#w(e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let t=e.#e[0];return!t||typeof t!="object"||t.type===null?!1:this.#b(t.type)}#E(e){let t=oN.get(this.type),n=e.#e[0],i=t?.get(n.type);if(!i)return!1;this.#e=n.#e;for(let r of this.#e)typeof r=="object"&&(r.#n=this);this.type=i,this.#o=void 0,this.#c=!1}static fromGlob(e,t={}){let n=new ai(null,void 0,t);return ai.#d(e,n,0,t,0),n}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();let e=this.toString(),[t,n,i,r]=this.toRegExpSource();if(!(i||this.#r||this.#a.nocase&&!this.#a.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let o=(this.#a.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${t}$`,o),{_src:t,_glob:e})}get options(){return this.#a}toRegExpSource(e){let t=e??!!this.#a.dot;if(this.#t===this&&(this.#f(),this.#v()),!aN(this)){let s=this.isStart()&&this.isEnd()&&!this.#e.some(p=>typeof p!="string"),l=this.#e.map(p=>{let[f,m,h,v]=typeof p=="string"?ai.#S(p,this.#r,s):p.toRegExpSource(e);return this.#r=this.#r||h,this.#i=this.#i||v,f}).join(""),u="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&m9e.has(this.#e[0]))){let f=f9e,m=t&&f.has(l.charAt(0))||l.startsWith("\\.")&&f.has(l.charAt(2))||l.startsWith("\\.\\.")&&f.has(l.charAt(4)),h=!t&&!e&&f.has(l.charAt(0));u=m?p9e:h?V1:""}let c="";return this.isEnd()&&this.#t.#u&&this.#n?.type==="!"&&(c="(?:$|\\/)"),[u+l+c,gp(l),this.#r=!!this.#r,this.#i]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#g(t);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let s=this.toString(),l=this;return l.#e=[s],l.type=null,l.#r=void 0,[s,gp(this.toString()),!1,!1]}let a=!n||e||t||!V1?"":this.#g(!0);a===r&&(a=""),a&&(r=`(?:${r})(?:${a})*?`);let o="";if(this.type==="!"&&this.#c)o=(this.isStart()&&!t?V1:"")+uN;else{let s=this.type==="!"?"))"+(this.isStart()&&!t&&!e?V1:"")+sN+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;o=i+r+s}return[o,gp(r),this.#r=!!this.#r,this.#i]}#f(){if(aN(this)){let e=0,t=!1;do{t=!0;for(let n=0;n<this.#e.length;n++){let i=this.#e[n];typeof i=="object"&&(i.#f(),this.#m(i)?(t=!1,this.#h(i,n)):this.#y(i)?(t=!1,this.#_(i,n)):this.#w(i)&&(t=!1,this.#E(i)))}}while(!t&&++e<10)}else for(let e of this.#e)typeof e=="object"&&e.#f();this.#o=void 0}#g(e){return this.#e.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[n,i,r,a]=t.toRegExpSource(e);return this.#i=this.#i||a,n}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#S(e,t,n=!1){let i=!1,r="",a=!1,o=!1;for(let s=0;s<e.length;s++){let l=e.charAt(s);if(i){i=!1,r+=(h9e.has(l)?"\\":"")+l;continue}if(l==="*"){if(o)continue;o=!0,r+=n&&/^[*]+$/.test(e)?uN:sN,t=!0;continue}else o=!1;if(l==="\\"){s===e.length-1?r+="\\\\":i=!0;continue}if(l==="["){let[u,c,d,p]=s9e(e,s);if(d){r+=u,a=a||c,s+=d-1,t=t||p;continue}}if(l==="?"){r+=mS,t=!0;continue}r+=g9e(l)}return[r,gp(e),!!t,a]}};ai=hS;y9e=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),yn=(e,t,n={})=>(Sg(t),!n.nocomment&&t.charAt(0)==="#"?!1:new Yv(t,n).match(e)),_9e=/^\*+([^+@!?*[(]*)$/,b9e=e=>t=>!t.startsWith(".")&&t.endsWith(e),w9e=e=>t=>t.endsWith(e),E9e=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),S9e=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),k9e=/^\*+\.\*+$/,$9e=e=>!e.startsWith(".")&&e.includes("."),x9e=e=>e!=="."&&e!==".."&&e.includes("."),A9e=/^\.\*+$/,D9e=e=>e!=="."&&e!==".."&&e.startsWith("."),C9e=/^\*+$/,P9e=e=>e.length!==0&&!e.startsWith("."),O9e=e=>e.length!==0&&e!=="."&&e!=="..",I9e=/^\?+([^+@!?*[(]*)?$/,j9e=([e,t=""])=>{let n=BG([e]);return t?(t=t.toLowerCase(),i=>n(i)&&i.toLowerCase().endsWith(t)):n},T9e=([e,t=""])=>{let n=LG([e]);return t?(t=t.toLowerCase(),i=>n(i)&&i.toLowerCase().endsWith(t)):n},N9e=([e,t=""])=>{let n=LG([e]);return t?i=>n(i)&&i.endsWith(t):n},R9e=([e,t=""])=>{let n=BG([e]);return t?i=>n(i)&&i.endsWith(t):n},BG=([e])=>{let t=e.length;return n=>n.length===t&&!n.startsWith(".")},LG=([e])=>{let t=e.length;return n=>n.length===t&&n!=="."&&n!==".."},FG=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",lN={win32:{sep:"\\"},posix:{sep:"/"}},B9e=FG==="win32"?lN.win32.sep:lN.posix.sep;yn.sep=B9e;jn=Symbol("globstar **");yn.GLOBSTAR=jn;L9e="[^/]",F9e=L9e+"*?",M9e="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",z9e="(?:(?!(?:\\/|^)\\.).)*?",U9e=(e,t={})=>n=>yn(n,e,t);yn.filter=U9e;Zi=(e,t={})=>Object.assign({},e,t),q9e=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return yn;let t=yn;return Object.assign((i,r,a={})=>t(i,r,Zi(e,a)),{Minimatch:class extends t.Minimatch{constructor(r,a={}){super(r,Zi(e,a))}static defaults(r){return t.defaults(Zi(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,a,o={}){super(r,a,Zi(e,o))}static fromGlob(r,a={}){return t.AST.fromGlob(r,Zi(e,a))}},unescape:(i,r={})=>t.unescape(i,Zi(e,r)),escape:(i,r={})=>t.escape(i,Zi(e,r)),filter:(i,r={})=>t.filter(i,Zi(e,r)),defaults:i=>t.defaults(Zi(e,i)),makeRe:(i,r={})=>t.makeRe(i,Zi(e,r)),braceExpand:(i,r={})=>t.braceExpand(i,Zi(e,r)),match:(i,r,a={})=>t.match(i,r,Zi(e,a)),sep:t.sep,GLOBSTAR:jn})};yn.defaults=q9e;MG=(e,t={})=>(Sg(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Qbe(e,{max:t.braceExpandMax}));yn.braceExpand=MG;V9e=(e,t={})=>new Yv(e,t).makeRe();yn.makeRe=V9e;Z9e=(e,t,n={})=>{let i=new Yv(t,n);return e=e.filter(r=>i.match(r)),i.options.nonull&&!e.length&&e.push(t),e};yn.match=Z9e;cN=/[?*]|[+@!]\(.*?\)|\[|\]/,G9e=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Yv=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Sg(e),t=t||{},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||FG,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((r,a,o)=>{if(this.isWindows&&this.windowsNoMagicRoot){let s=r[0]===""&&r[1]===""&&(r[2]==="?"||!cN.test(r[2]))&&!cN.test(r[3]),l=/^[a-z]:/i.test(r[0]);if(s)return[...r.slice(0,4),...r.slice(4).map(u=>this.parse(u))];if(l)return[r[0],...r.slice(1).map(u=>this.parse(u))]}return r.map(s=>this.parse(s))});if(this.debug(this.pattern,i),this.set=i.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let a=this.set[r];a[0]===""&&a[1]===""&&this.globParts[r][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n of e)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){let i=n;for(;t[i+1]==="**";)i++;i!==n&&t.splice(n,i-n)}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((n,i)=>{let r=n[n.length-1];return i==="**"&&r==="**"?n:i===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(n.pop(),n):(n.push(i),n)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let i=1;i<e.length-1;i++){let r=e[i];i===1&&r===""&&e[0]===""||(r==="."||r==="")&&(t=!0,e.splice(i,1),i--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let i=e[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let o=n[i+1],s=n[i+2],l=n[i+3];if(o!==".."||!s||s==="."||s===".."||!l||l==="."||l==="..")continue;t=!0,n.splice(i,1);let u=n.slice(0);u[i]="**",e.push(u),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let o=n[a];a===1&&o===""&&n[0]===""||(o==="."||o==="")&&(t=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(t=!0,n.pop())}let r=0;for(;(r=n.indexOf("..",r+1))!==-1;){let a=n[r-1];if(a&&a!=="."&&a!==".."&&a!=="**"){t=!0;let s=r===1&&n[r+1]==="**"?["."]:[];n.splice(r-1,2,...s),n.length===0&&n.push(""),r-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let i=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(i){e[t]=[],e[n]=i;break}}return e.filter(t=>t.length)}partsMatch(e,t,n=!1){let i=0,r=0,a=[],o="";for(;i<e.length&&r<t.length;)if(e[i]===t[r])a.push(o==="b"?t[r]:e[i]),i++,r++;else if(n&&e[i]==="**"&&t[r]===e[i+1])a.push(e[i]),i++;else if(n&&t[r]==="**"&&e[i]===t[r+1])a.push(t[r]),r++;else if(e[i]==="*"&&t[r]&&(this.options.dot||!t[r].startsWith("."))&&t[r]!=="**"){if(o==="b")return!1;o="a",a.push(e[i]),i++,r++}else if(t[r]==="*"&&e[i]&&(this.options.dot||!e[i].startsWith("."))&&e[i]!=="**"){if(o==="a")return!1;o="b",a.push(t[r]),i++,r++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let i=0,r=0;if(this.isWindows){let o=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),s=!o&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),l=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!l&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),c=s?3:o?0:void 0,d=u?3:l?0:void 0;if(typeof c=="number"&&typeof d=="number"){let[p,f]=[e[c],t[d]];p.toLowerCase()===f.toLowerCase()&&(t[d]=p,r=d,i=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(jn)?this.#t(e,t,n,i,r):this.#i(e,t,n,i,r)}#t(e,t,n,i,r){let a=t.indexOf(jn,r),o=t.lastIndexOf(jn),[s,l,u]=n?[t.slice(r,a),t.slice(a+1),[]]:[t.slice(r,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let y=e.slice(i,i+s.length);if(!this.#i(y,s,n,0,0))return!1;i+=s.length,r+=s.length}let c=0;if(u.length){if(u.length+i>e.length)return!1;let y=e.length-u.length;if(this.#i(e,u,n,y,0))c=u.length;else{if(e[e.length-1]!==""||i+u.length===e.length||(y--,!this.#i(e,u,n,y,0)))return!1;c=u.length+1}}if(!l.length){let y=!!c;for(let b=i;b<e.length-c;b++){let w=String(e[b]);if(y=!0,w==="."||w===".."||!this.options.dot&&w.startsWith("."))return!1}return n||y}let d=[[[],0]],p=d[0],f=0,m=[0];for(let y of l)y===jn?(m.push(f),p=[[],0],d.push(p)):(p[0].push(y),f++);let h=d.length-1,v=e.length-c;for(let y of d)y[1]=v-(m[h--]+y[0].length);return!!this.#r(e,d,i,0,n,0,!!c)}#r(e,t,n,i,r,a,o){let s=t[i];if(!s){for(let c=n;c<e.length;c++){o=!0;let d=e[c];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1}return o}let[l,u]=s;for(;n<=u;){if(this.#i(e.slice(0,n+l.length),l,r,n,0)&&a<this.maxGlobstarRecursion){let p=this.#r(e,t,n+l.length,i+1,r,a+1,o);if(p!==!1)return p}let d=e[n];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1;n++}return r||null}#i(e,t,n,i,r){let a,o,s,l;for(a=i,o=r,l=e.length,s=t.length;a<l&&o<s;a++,o++){this.debug("matchOne loop");let u=t[o],c=e[a];if(this.debug(t,u,c),u===!1||u===jn)return!1;let d;if(typeof u=="string"?(d=c===u,this.debug("string match",u,c,d)):(d=u.test(c),this.debug("pattern match",u,c,d)),!d)return!1}if(a===l&&o===s)return!0;if(a===l)return n;if(o===s)return a===l-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return MG(this.pattern,this.options)}parse(e){Sg(e);let t=this.options;if(e==="**")return jn;if(e==="")return"";let n,i=null;(n=e.match(C9e))?i=t.dot?O9e:P9e:(n=e.match(_9e))?i=(t.nocase?t.dot?S9e:E9e:t.dot?w9e:b9e)(n[1]):(n=e.match(I9e))?i=(t.nocase?t.dot?T9e:j9e:t.dot?N9e:R9e)(n):(n=e.match(k9e))?i=t.dot?x9e:$9e:(n=e.match(A9e))&&(i=D9e);let r=hS.fromGlob(e,this.options).toMMPattern();return i&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:i}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?F9e:t.dot?M9e:z9e,i=new Set(t.nocase?["i"]:[]),r=e.map(s=>{let l=s.map(c=>{if(c instanceof RegExp)for(let d of c.flags.split(""))i.add(d);return typeof c=="string"?G9e(c):c===jn?jn:c._src});l.forEach((c,d)=>{let p=l[d+1],f=l[d-1];c!==jn||f===jn||(f===void 0?p!==void 0&&p!==jn?l[d+1]="(?:\\/|"+n+"\\/)?"+p:l[d]=n:p===void 0?l[d-1]=f+"(?:\\/|\\/"+n+")?":p!==jn&&(l[d-1]=f+"(?:\\/|\\/"+n+"\\/)"+p,l[d+1]=jn))});let u=l.filter(c=>c!==jn);if(this.partial&&u.length>=1){let c=[];for(let d=1;d<=u.length;d++)c.push(u.slice(0,d).join("/"));return"(?:"+c.join("|")+")"}return u.join("/")}).join("|"),[a,o]=e.length>1?["(?:",")"]:["",""];r="^"+a+r+o+"$",this.partial&&(r="^(?:\\/|"+a+r.slice(1,-1)+o+")$"),this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let i=this.slashSplit(e);this.debug(this.pattern,"split",i);let r=this.set;this.debug(this.pattern,"set",r);let a=i[i.length-1];if(!a)for(let o=i.length-2;!a&&o>=0;o--)a=i[o];for(let o of r){let s=i;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return yn.defaults(e).Minimatch}};yn.AST=hS;yn.Minimatch=Yv;yn.escape=y9e;yn.unescape=gp;H9e=new Set(["node_modules",".git","dist",".next","coverage"]);});var vW={};zn(vW,{createModelResolver:()=>gW});function hW(e,t){let n=e.indexOf(":");if(n===-1)return{adapter:t,model:e||void 0};let i=e.slice(0,n)||t,r=e.slice(n+1)||void 0;return{adapter:i,model:r}}function gW(e){let t=e.env??process.env;return{resolve(n){let i={adapter:e.fallbackAdapter,model:e.fallbackModel};if(!n)return i;let r=t[S8e[n]];if(r)return hW(r,e.fallbackAdapter);let a=t[c4];if(a)return hW(a,e.fallbackAdapter);let o=e.modelMapping?.[n];return o?{adapter:o.adapter,model:o.model}:i}}}var c4,S8e,xS=zu(()=>{"use strict";c4="AGENT_RUNTIME_MODEL",S8e={fast:`${c4}_FAST`,standard:`${c4}_STANDARD`,thinking:`${c4}_THINKING`}});var f4={};zn(f4,{ClaudeAgentSdkAdapter:()=>DS});function l7e(e){return{PreToolUse:[{hooks:[n=>{let i=n.tool_input,r=n.tool_name;if(r==="Bash"||r==="Shell"){let o=i?.command??i?.input;if(o){let s=e.beforeShellExecution({command:o});if(s.permission==="deny")return{hookEventName:"PreToolUse",permissionDecision:"deny",permissionDecisionReason:s.user_message??s.agent_message};if(s.additionalContext)return{hookEventName:"PreToolUse",additionalContext:s.additionalContext}}}let a=i?.file_path??i?.path;if(a){let o=e.preToolUse({tool_name:r,tool_input:{file_path:a}});if(o.permission==="deny")return{hookEventName:"PreToolUse",permissionDecision:"deny",permissionDecisionReason:o.user_message??o.agent_message};if(o.additionalContext)return{hookEventName:"PreToolUse",additionalContext:o.additionalContext}}return{hookEventName:"PreToolUse"}}]}]}}function c7e(e,t,n){let i=e.session_id??n;switch(e.type){case"assistant":{let r=e.message?.content;if(!r)break;for(let a of r)if(a.type==="tool_use"&&a.name){let o=a.input&&typeof a.input=="object"?a.input:void 0;t({type:"tool_use",tool_name:a.name,input:o,session_id:i})}else a.type==="text"&&a.text&&t({type:"text",message:a.text,session_id:i});break}case"tool_progress":e.tool_name&&t({type:"tool_use",tool_name:e.tool_name,session_id:i});break;case"tool_use_summary":e.summary&&t({type:"status",message:e.summary,session_id:i});break;default:break}}var DS,m4=zu(()=>{"use strict";DS=class e{cwd;model;tools;permissionMode;maxTurns;guardrailHooks;cacheConfig;lastSessionId=null;lastMemoryRef=null;queryFn=null;constructor(t={}){this.cwd=t.cwd??process.cwd(),this.model=t.model,this.tools=t.tools,this.permissionMode=t.permissionMode??"bypassPermissions",this.maxTurns=t.maxTurns,this.guardrailHooks=t.guardrailHooks,this.cacheConfig=t.cacheConfig??{enabled:!0}}async resolveQueryFn(){if(this.queryFn)return this.queryFn;let t=await import("@anthropic-ai/claude-agent-sdk");return this.queryFn=t.query,this.queryFn}buildOptions(t,n,i,r){let a={cwd:this.cwd,permissionMode:this.permissionMode,allowDangerouslySkipPermissions:this.permissionMode==="bypassPermissions",settingSources:[]};this.model&&(a.model=this.model),this.maxTurns&&(a.maxTurns=this.maxTurns);let o;if(this.tools?o=Array.isArray(this.tools)?[...this.tools]:this.tools:o=t?["Read","Glob","Grep"]:["Read","Glob","Grep","Edit","Write","Bash"],r&&r.length>0&&Array.isArray(o))for(let s of["Task","Agent"])o.includes(s)||o.push(s);if(a.tools=o,n&&(a.resume=n),i&&this.cacheConfig.enabled!==!1&&(a.systemPrompt=i),r&&r.length>0){let s={};for(let l of r)s[l.name]={description:l.description,prompt:l.prompt,...l.tools?{tools:l.tools}:{},...l.model?{model:l.model}:{}};a.agents=s}return this.guardrailHooks&&(a.hooks=l7e(this.guardrailHooks)),a}async runQuery(t,n,i){let a=(await this.resolveQueryFn())({prompt:t,options:n}),o="",s="";for await(let l of a)if(l.session_id&&(s=l.session_id),l.type==="result"){if(l.subtype==="success")o=l.result;else if(l.subtype==="error")throw new Error(`Claude Agent SDK error: ${l.error}`)}else i&&c7e(l,i,s);return{text:o,sessionId:s}}async send(t,n){this.lastSessionId=null,this.lastMemoryRef=null;let i=n.splitPrompt,r=i?.system,a=i?i.user:t,o=this.buildOptions(n.readonly,void 0,r,n.agents),{text:s,sessionId:l}=await this.runQuery(a,o,n.onProgress);return this.lastSessionId=l,this.lastMemoryRef={id:l,provider:"claude-agent-sdk",compat:"claude-agent-sdk@0.2",created_at:new Date().toISOString()},s}async followUp(t){if(!this.lastSessionId)throw new Error("followUp() called before send() \u2014 no active session");let n=this.buildOptions(!1,this.lastSessionId),{text:i,sessionId:r}=await this.runQuery(t,n);return this.lastSessionId=r,i}async sendExecution(t){this.lastSessionId=null,this.lastMemoryRef=null;let n=t.memoryRef?.id,i=t.splitPrompt,r=i?.system,a=i?i.user:t.prompt,o=t.options.agents??t.agents,s=this.buildOptions(t.options.readonly,n,r,o),{text:l,sessionId:u}=await this.runQuery(a,s,t.options.onProgress);return this.lastSessionId=u,this.lastMemoryRef={id:u,provider:"claude-agent-sdk",compat:"claude-agent-sdk@0.2",created_at:new Date().toISOString(),parent_run_id:t.memoryRef?.id},l}getLastMemoryRef(){return this.lastMemoryRef}isCompatible(t){return t.startsWith("claude-agent-sdk@")}static withQueryFn(t,n){let i=new e(n);return i.queryFn=t,i}}});var h4={};zn(h4,{MockAdapter:()=>CS});var CS,g4=zu(()=>{"use strict";CS=class{responses;defaultLatencyMs;lastMemoryRef=null;constructor(t){this.responses=t?.responses??{},this.defaultLatencyMs=t?.defaultLatencyMs??0}async send(t,n){let r=t.match(/## Task: (\S+)/)?.[1]??"unknown",o=t.match(/## User Request\n\n([\s\S]*?)(?:\n\n---|$)/)?.[1]?.trim()??"";this.defaultLatencyMs>0&&await new Promise(u=>setTimeout(u,this.defaultLatencyMs));let s=this.responses[r];if(!s)return`Task "${r}" completed but no structured output available.`;let l=s(o);return this.lastMemoryRef={id:`mock-ref-${Date.now()}`,provider:"mock",compat:"mock@1",created_at:new Date().toISOString()},l}getLastMemoryRef(){return this.lastMemoryRef}isCompatible(t){return t.startsWith("mock@")}}});var LW={};zn(LW,{AdkSdkAdapter:()=>IS});function BW(e){let t=e.replace(/[^a-zA-Z0-9_]/g,"_");return(t.length===0||/^[0-9]/.test(t))&&(t=`agent_${t}`),t==="user"&&(t="user_agent"),t}function C7e(e){let t=e.content?.parts;return t?t.map(n=>n.text??"").join(""):""}function P7e(e,t){let n=e.content?.parts;if(n)for(let i of n)i.functionCall?.name?t({type:"tool_use",tool_name:i.functionCall.name,input:i.functionCall.args}):i.functionResponse?.name?t({type:"tool_result",tool_name:i.functionResponse.name}):i.text&&t({type:"text",message:i.text})}var IS,FW=zu(()=>{"use strict";IS=class e{apiKey;model;rootAgentName;guardrailHooks;cacheConfig;lastMemoryRef=null;runCounter=0;sdk=null;constructor(t={}){this.apiKey=t.apiKey,this.model=t.model??"gemini-2.5-flash",this.rootAgentName=t.rootAgentName??"root_agent",this.guardrailHooks=t.guardrailHooks,this.cacheConfig=t.cacheConfig??{enabled:!0}}async resolveSdk(){if(this.sdk)return this.sdk;let t=await import("@google/adk");return this.sdk={LlmAgent:t.LlmAgent,InMemoryRunner:t.InMemoryRunner,isFinalResponse:t.isFinalResponse,stringifyContent:t.stringifyContent,Gemini:t.Gemini},this.sdk}resolveModel(t){return this.apiKey?new t.Gemini({model:this.model,apiKey:this.apiKey}):this.model}buildRootAgent(t,n,i){let r=(i??[]).map(o=>{let s={name:BW(o.name),description:o.description,instruction:o.prompt,model:o.model??this.resolveModel(t)};return o.tools&&(s.tools=o.tools),new t.LlmAgent(s)}),a={name:BW(this.rootAgentName),instruction:n,model:this.resolveModel(t)};return r.length>0&&(a.subAgents=r),new t.LlmAgent(a)}async runAgent(t,n,i,r){let a=await this.resolveSdk(),o=this.buildRootAgent(a,t,i),s=new a.InMemoryRunner({agent:o}),l="",u=s.runEphemeral({userId:"agent-runtime",newMessage:{role:"user",parts:[{text:n}]}});for await(let c of u){r&&P7e(c,r);let d=c;if(d.errorCode||d.errorMessage)throw new Error(`Gemini API error (${d.errorCode??"unknown"}): ${d.errorMessage??"no details"}`);if(a.isFinalResponse(c)&&c.content){let p=a.stringifyContent(c)||C7e(c);p&&(l=p)}}return l}nextMemoryRef(){return{id:`adk-run-${++this.runCounter}-${Date.now()}`,provider:"google-adk",compat:`google-adk@${this.model}`,created_at:new Date().toISOString()}}async send(t,n){this.lastMemoryRef=null;let i=n.splitPrompt,r="",a;i&&this.cacheConfig.enabled!==!1?(r=i.system.join(`
|
|
585
585
|
|
|
586
586
|
---
|
|
587
587
|
|
|
@@ -4623,7 +4623,7 @@ Focus the audit on the "${e.focus}" layer only.`:"",r=["Audit the LLM command in
|
|
|
4623
4623
|
`+"=".repeat(72)+`
|
|
4624
4624
|
|
|
4625
4625
|
`;return{status:"dry_run",exitCode:0,data:{summary:v.join(y),riskLevel:"low",findings:[]}}}let o;try{o=await x7e(e.adapter,n,e.model)}catch(m){return{status:"failed",exitCode:12,error:t.adapterError(m.message)}}console.error(t.auditStarting(e.adapter));let s={workflowRegistry:Sf,taskRegistry:xu,agentRegistry:$u,handoffSchemas:Au},l={workflow:"audit-implementation",user_request:r,runtime:{maxFollowUps:2,maxRetries:1},hooks:{onGate:async()=>!0},context:{cwd:n},progressOutput:e.progressOutput},u=await Ba(o,l,s);if(u.status!=="completed"){let m=u.escalation_reason??u.error_message??u.status;return{status:"failed",exitCode:1,error:t.auditFailed(m)}}let p=u.steps[u.steps.length-1]?.outcome?.data??{summary:t.auditSuccess,riskLevel:"low",findings:[]};return{status:"success",exitCode:A7e(p,e.failOn)?10:0,data:p}}var D7e={critical:"\u2717",error:"\u2717",warning:"!",info:"\xB7"};function OS(e){let t=NW();if(e.status==="dry_run")return e.data?.summary??t.dryRunHeader;if(e.status==="failed")return e.error??t.auditFailed("unknown");let n=e.data;if(!n)return t.auditSuccess;let i=[n.summary,""];if(i.push(t.riskLevel(n.riskLevel)),i.push(""),n.findings.length===0)i.push(t.noFindings);else{i.push(t.findingsHeader(n.findings.length));for(let r of n.findings){let a=D7e[r.severity]??"\xB7",o=r.id?`[${r.id}] `:"",s=r.target?` (${r.target})`:"";i.push(` ${a} ${o}${r.severity.toUpperCase()}: ${r.message}${s}`),r.recommendation&&i.push(` \u2192 ${r.recommendation}`)}i.push("")}if(n.recommendedActions&&n.recommendedActions.length>0){i.push(t.recommendedActionsHeader);for(let r of n.recommendedActions){let a=r.command?` \u2014 ${r.command}`:"";i.push(` [${r.kind}] ${r.title}${a}`)}}return i.join(`
|
|
4626
|
-
`)}var Du=No(Bs(),1);T7e();var N7e="0.36.
|
|
4626
|
+
`)}var Du=No(Bs(),1);T7e();var N7e="0.36.2";async function TS(e){let n=`${(await Aa(e)).generatedDir}/index`,i;if(UW(`${n}.js`))i=`${n}.js`;else if(UW(`${n}.ts`))i=`${n}.ts`;else throw new Error(`Generated index file not found at ${n}.{js,ts}. Run \`agent-runtime generate\` first.`);let r=await import(new URL(`file://${i}`).href),a,o=r.resolvedDsl;if(o){let s=o._guardrailRules;s&&(s.commandRules?.length||s.fileRules?.length||s.contentRules?.length)&&(a=$S(s))}return{agentRegistry:r.agentRegistry??r.agents?.agentRegistry??{},taskRegistry:r.taskRegistry??r.tasks?.taskRegistry??{},handoffSchemas:r.handoffSchemas??r.handoffs?.handoffSchemas??{},workflowRegistry:r.workflowRegistry??r.workflows?.workflowRegistry??{},guardrailHooks:a}}async function R7e(e,t,n,i){switch(e){case"mock":{let{MockAdapter:r}=await Promise.resolve().then(()=>(g4(),h4));return new r}case"claude":{let{ClaudeAgentSdkAdapter:r}=await Promise.resolve().then(()=>(m4(),f4));return new r({cwd:n,guardrailHooks:t,...i?{model:i}:{}})}case"gemini":{let{AdkSdkAdapter:r}=await Promise.resolve().then(()=>(FW(),LW));return new r({guardrailHooks:t,...i?{model:i}:{}})}case"openai":{let{OpenAIAgentsSdkAdapter:r}=await Promise.resolve().then(()=>(zW(),MW));return new r({guardrailHooks:t,...i?{model:i}:{}})}default:throw new Error(`Unknown adapter: ${e}. Available: mock, claude, gemini, openai`)}}function NS(e,t){let n=e.map((s,l)=>Math.max(s.length,...t.map(u=>(u[l]??"").length))),i=n.map(s=>"-".repeat(s)).join(" "),r=(s,l)=>s.padEnd(l),a=e.map((s,l)=>r(s,n[l])).join(" "),o=t.map(s=>s.map((l,u)=>r(l??"",n[u])).join(" "));return[a,i,...o].join(`
|
|
4627
4627
|
`)}function B7e(e,t,n,i){if(e)return La({stderr:!n,file:v4(e),naming:"single",label:i});if(t&&t.destination!=="none"){let r=t.destination;return La({stderr:!n&&(r==="stderr"||r==="both"),file:r==="file"||r==="both"?t.file:void 0,naming:t.naming,label:i})}if(!n)return La({stderr:!0})}var L7e={async init(e,t){try{let n=v4(e.output??"."),i=await CW({adapter:e.adapter??"mock",outputDir:n,force:e.force??!1});console.log(JSON.stringify(i,null,2))}catch(n){console.error(n.message),process.exit(1)}},async generate(e,t){try{let n=t.config??"./agent-runtime.config.yaml",i=await QG({clean:e.clean,check:e.check,templates:e.templates,configPath:n});i.check_mode?(i.has_differences&&(console.error("Generated files are out of date. Run `agent-runtime generate` to update."),process.exit(1)),console.log(JSON.stringify({...i,status:"up-to-date"},null,2))):console.log(JSON.stringify(i,null,2))}catch(n){console.error("Generate failed:",n.message),process.exit(1)}},async run(e,t,n,i){let r=e,a=t,o;if(n.file)try{let k=j7e(n.file,"utf8"),N=Du.default.parse(k);r=N.workflow,r||(console.error(`Error: invocation file "${n.file}" must contain a "workflow" field.`),process.exit(3)),o={workflow:r,user_request:N.user_request,handoff:N.handoff,runtime:N.runtime,context:N.context},a=o.user_request??""}catch(k){console.error(`Failed to read invocation file: ${k.message}`),process.exit(3)}r||(console.error("Error: workflow-id is required (provide as argument or via --file)"),process.exit(3)),!o&&!a&&(console.error("Error: user-request is required (provide as argument or via --file)"),process.exit(3));let s=i.config??"./agent-runtime.config.yaml";await e4(s)||(console.error("Generated files are stale or missing. Run `agent-runtime generate` first."),process.exit(3));let u=await Aa(s),c=await l4({pluginPaths:u.pluginPaths.length>0?u.pluginPaths:void 0,projectDir:u.configDir});c.loaded>0&&!i.quiet&&console.error(`Loaded ${c.loaded} plugin(s) from ${c.files.length} file(s)`);for(let k of c.errors)console.error(`Plugin load error (${k.file}): ${k.error}`);let d;try{d=await TS(s)}catch(k){console.error(`Failed to load generated contracts: ${k.message}`),process.exit(1);return}if(!d.workflowRegistry[r]){console.error(`Unknown workflow: ${r}`),console.error(`Available workflows: ${Object.keys(d.workflowRegistry).join(", ")}`),process.exit(3);return}let p=n.adapter??"mock",f=o?.context?.cwd??process.cwd(),{createModelResolver:m}=await Promise.resolve().then(()=>(xS(),vW)),h=m({modelMapping:u.model_mapping,fallbackAdapter:p}),v=new Map,y=async k=>{let N=h.resolve(k),x=`${N.adapter}:${N.model??""}`,j=v.get(x);if(j)return j;let B=await R7e(N.adapter,d.guardrailHooks,f,N.model);return v.set(x,B),B},b;try{b=await y()}catch(k){console.error(k.message),process.exit(12);return}let E=Object.values(u.model_mapping).some(Boolean)||process.env.AGENT_RUNTIME_MODEL||process.env.AGENT_RUNTIME_MODEL_FAST||process.env.AGENT_RUNTIME_MODEL_STANDARD||process.env.AGENT_RUNTIME_MODEL_THINKING?y:b,D=u.recovery,C=n.maxRetries?parseInt(n.maxRetries,10):void 0,S=n.maxFollowUps?parseInt(n.maxFollowUps,10):void 0,A={workflowRegistry:d.workflowRegistry,taskRegistry:d.taskRegistry,agentRegistry:d.agentRegistry,handoffSchemas:d.handoffSchemas},I=n.autoApproveGates?async()=>!0:async(k,N)=>(console.error(`Gate "${k}": ${N}`),console.error("Use --auto-approve-gates to auto-approve. Rejecting by default."),!1),P=B7e(n.logFile,u.resolvedLogging.progressLog,i.quiet,r),$;try{if(o){let k={...o,runtime:{...o.runtime,maxFollowUps:S??o.runtime?.maxFollowUps??D.max_follow_ups,maxRetries:C??o.runtime?.maxRetries??D.max_retries},hooks:{onGate:I},progressOutput:P};$=await Ba(E,k,A)}else $=await Ba(E,r,{user_request:a,maxRetries:C??D.max_retries,maxFollowUps:S??D.max_follow_ups,onGate:I,progressOutput:P},A)}finally{P?.close()}console.log(JSON.stringify($,null,2)),$.status!=="completed"&&process.exit(1)},async list(e,t,n){e||(console.error("Error: resource is required (workflows, tasks, agents)"),process.exit(1));let i=["workflows","tasks","agents"];if(!i.includes(e)){console.error(`Unknown resource: ${e}`),console.error(`Available resources: ${i.join(", ")}`),process.exit(1);return}let r=n.config??"./agent-runtime.config.yaml",a;try{a=await TS(r)}catch(s){console.error(`Failed to load generated contracts: ${s.message}`),console.error("Run `agent-runtime generate` first."),process.exit(1);return}let o=t.format??"table";if(e==="agents"){let s=Object.values(a.agentRegistry);if(o==="json")console.log(JSON.stringify(s,null,2));else{if(s.length===0){console.log("No agents defined.");return}console.log(NS(["ID","Role","Mode","Purpose"],s.map(l=>[l.id,l.role_name,l.mode,l.purpose])))}}else if(e==="tasks"){let s=Object.values(a.taskRegistry);if(o==="json")console.log(JSON.stringify(s,null,2));else{if(s.length===0){console.log("No tasks defined.");return}console.log(NS(["ID","Agent","Description"],s.map(l=>[l.id,l.target_agent,l.description])))}}else{let s=Object.values(a.workflowRegistry);if(o==="json")console.log(JSON.stringify(s,null,2));else{if(s.length===0){console.log("No workflows defined.");return}console.log(NS(["ID","Steps","Description"],s.map(l=>[l.id,String(l.steps.length),l.description])))}}},async showPrompt(e,t,n){e||(console.error("Error: task-id is required"),process.exit(1));let i=n.config??"./agent-runtime.config.yaml",r;try{r=await TS(i)}catch(f){console.error(`Failed to load generated contracts: ${f.message}`),console.error("Run `agent-runtime generate` first."),process.exit(1);return}let a=r.taskRegistry[e];if(!a){console.error(`Unknown task: ${e}`),console.error(`Available tasks: ${Object.keys(r.taskRegistry).join(", ")}`),process.exit(1);return}let o=r.agentRegistry[a.target_agent];if(!o){console.error(`Unknown agent: ${a.target_agent} (referenced by task ${e})`),process.exit(1);return}let s=await Aa(i),l=t.withPlugins??!1;l&&await l4({pluginPaths:s.pluginPaths.length>0?s.pluginPaths:void 0,projectDir:s.configDir});let c={user_request:t.userRequest??"(preview)"};if(l){let f=await Ur.runBeforeTask(e,c);if(f===null){console.error(`Task "${e}" skipped by plugin`),process.exit(1);return}c=Ur.applyContextEnhancers(e,f)}let d=yo(o,a,c,{handoffSchemas:r.handoffSchemas});l&&(d=Ur.applyPromptEnhancers(e,d,c));let p=t.format??"markdown";console.log(p==="json"?JSON.stringify({task_id:e,agent_id:a.target_agent,prompt:d,handoff_schema:a.result_handoff,plugins_applied:l},null,2):d)},async implement(e,t,n){e||(console.error("Error: description is required"),process.exit(3));let i=n.quiet,r=t.logFile?La({stderr:!i,file:v4(t.logFile),naming:"single"}):i?void 0:La({stderr:!0}),a;try{a=await jW(e,{adapter:t.adapter??"claude",projectDir:t.projectDir??".",dryRun:t.dryRun??!1,model:t.model,reportFormat:t.reportFormat??"text",progressOutput:r})}finally{r?.close()}a.status==="failed"&&(t.reportFormat==="json"?console.log(JSON.stringify({error:a.error,status:"failed"},null,2)):t.reportFormat==="yaml"?console.log(Du.default.stringify({error:a.error,status:"failed"})):console.error(PS(a)),process.exit(a.exitCode??1));let o=a.data??{status:a.status},s;t.reportFormat==="json"?s=JSON.stringify(o,null,2):t.reportFormat==="yaml"?s=Du.default.stringify(o):s=PS(a);let l=t.output;l?qW(l,s+`
|
|
4628
4628
|
`):console.log(s)},async auditImplementation(e,t,n){let i=n.quiet,r=t.logFile?La({stderr:!i,file:v4(t.logFile),naming:"single"}):i?void 0:La({stderr:!0}),a;try{a=await RW({adapter:t.adapter??"claude",projectDir:e??".",focus:t.focus??"all",dryRun:t.dryRun??!1,failOn:t.failOn??"error",model:t.model,reportFormat:t.reportFormat??"text",progressOutput:r})}finally{r?.close()}a.status==="failed"&&(t.reportFormat==="json"?console.log(JSON.stringify({error:a.error,status:"failed"},null,2)):t.reportFormat==="yaml"?console.log(Du.default.stringify({error:a.error,status:"failed"})):console.error(OS(a)),process.exit(a.exitCode));let o=a.data??{status:a.status},s;t.reportFormat==="json"?s=JSON.stringify(o,null,2):t.reportFormat==="yaml"?s=Du.default.stringify(o):s=OS(a);let l=t.output;l?qW(l,s+`
|
|
4629
4629
|
`):console.log(s),a.exitCode!==0&&process.exit(a.exitCode)},async agents(e,t){let n=e.format??"yaml";try{console.log(n==="json"?JSON.stringify(p4,null,2):Du.default.stringify(p4,{lineWidth:120}))}catch(i){console.error(`Failed to output DSL: ${i.message}`),process.exit(1)}},async doctor(e){let t=e.config??"./agent-runtime.config.yaml",n=await kW(t),i=r=>r==="pass"?"\u2713":r==="warn"?"!":"\u2717";for(let r of n.checks){let a=i(r.status),o=r.message?` ${r.message}`:"";console.log(` ${a} ${r.name.padEnd(20)} ${r.status.toUpperCase()}${o}`)}console.log(""),n.all_passed?console.log("All checks passed."):console.log("Some checks failed."),console.log(JSON.stringify(n)),n.all_passed||(process.exitCode=1)}},F7e=ux(L7e,N7e);await F7e.parseAsync();
|