@learncard/learn-cloud-plugin 2.3.30 → 2.3.32
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/learn-cloud-plugin.cjs.development.cjs +1 -0
- package/dist/learn-cloud-plugin.cjs.development.cjs.map +2 -2
- package/dist/learn-cloud-plugin.cjs.production.min.cjs +1 -1
- package/dist/learn-cloud-plugin.cjs.production.min.cjs.map +2 -2
- package/dist/learn-cloud-plugin.esm.js +1 -0
- package/dist/learn-cloud-plugin.esm.js.map +2 -2
- package/package.json +7 -7
|
@@ -82,7 +82,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
82
82
|
|
|
83
83
|
`)}I.write("payload.value = newResult;"),I.write("return payload;");let W=I.compile();return(ae,B)=>W(b,ae,B)},"generateFastpass"),o,d=Or,p=!Tr.jitless,h=p&&hs.value,x=n.catchall,z;e._zod.parse=(b,I)=>{z??(z=s.value);let T=b.value;return d(T)?p&&h&&I?.async===!1&&I.jitless!==!0?(o||(o=t(n.shape)),b=o(b,I),x?F_([],T,b,I,z,e):b):a(b,I):(b.issues.push({expected:"object",code:"invalid_type",input:T,inst:e}),b)}});function S_(e,n,a,s){for(let o of e)if(o.issues.length===0)return n.value=o.value,n;let t=e.filter(o=>!mr(o));return t.length===1?(n.value=t[0].value,t[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:a,errors:e.map(o=>o.issues.map(d=>Me(d,s,Ie())))}),n)}c(S_,"handleUnionResults");var ji=w("$ZodUnion",(e,n)=>{X.init(e,n),oe(e._zod,"optin",()=>n.options.some(s=>s._zod.optin==="optional")?"optional":void 0),oe(e._zod,"optout",()=>n.options.some(s=>s._zod.optout==="optional")?"optional":void 0),oe(e._zod,"values",()=>{if(n.options.every(s=>s._zod.values))return new Set(n.options.flatMap(s=>Array.from(s._zod.values)))}),oe(e._zod,"pattern",()=>{if(n.options.every(s=>s._zod.pattern)){let s=n.options.map(t=>t._zod.pattern);return new RegExp(`^(${s.map(t=>_i(t.source)).join("|")})$`)}});let a=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(s,t)=>{if(a)return a(s,t);let o=!1,d=[];for(let p of n.options){let _=p._zod.run({value:s.value,issues:[]},t);if(_ instanceof Promise)d.push(_),o=!0;else{if(_.issues.length===0)return _;d.push(_)}}return o?Promise.all(d).then(p=>S_(p,s,e,t)):S_(d,s,e,t)}});function z_(e,n,a,s){let t=e.filter(o=>o.issues.length===0);return t.length===1?(n.value=t[0].value,n):(t.length===0?n.issues.push({code:"invalid_union",input:n.value,inst:a,errors:e.map(o=>o.issues.map(d=>Me(d,s,Ie())))}):n.issues.push({code:"invalid_union",input:n.value,inst:a,errors:[],inclusive:!1}),n)}c(z_,"handleExclusiveUnionResults");var sd=w("$ZodXor",(e,n)=>{ji.init(e,n),n.inclusive=!1;let a=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(s,t)=>{if(a)return a(s,t);let o=!1,d=[];for(let p of n.options){let _=p._zod.run({value:s.value,issues:[]},t);_ instanceof Promise?(d.push(_),o=!0):d.push(_)}return o?Promise.all(d).then(p=>z_(p,s,e,t)):z_(d,s,e,t)}}),ld=w("$ZodDiscriminatedUnion",(e,n)=>{n.inclusive=!1,ji.init(e,n);let a=e._zod.parse;oe(e._zod,"propValues",()=>{let t={};for(let o of n.options){let d=o._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(o)}"`);for(let[p,_]of Object.entries(d)){t[p]||(t[p]=new Set);for(let h of _)t[p].add(h)}}return t});let s=ln(()=>{let t=n.options,o=new Map;for(let d of t){let p=d._zod.propValues?.[n.discriminator];if(!p||p.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(d)}"`);for(let _ of p){if(o.has(_))throw new Error(`Duplicate discriminator value "${String(_)}"`);o.set(_,d)}}return o});e._zod.parse=(t,o)=>{let d=t.value;if(!Or(d))return t.issues.push({code:"invalid_type",expected:"object",input:d,inst:e}),t;let p=s.value.get(d?.[n.discriminator]);return p?p._zod.run(t,o):n.unionFallback||o.direction==="backward"?a(t,o):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,options:Array.from(s.value.keys()),input:d,path:[n.discriminator],inst:e}),t)}}),dd=w("$ZodIntersection",(e,n)=>{X.init(e,n),e._zod.parse=(a,s)=>{let t=a.value,o=n.left._zod.run({value:t,issues:[]},s),d=n.right._zod.run({value:t,issues:[]},s);return o instanceof Promise||d instanceof Promise?Promise.all([o,d]).then(([_,h])=>P_(a,_,h)):P_(a,o,d)}});function wl(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(pr(e)&&pr(n)){let a=Object.keys(n),s=Object.keys(e).filter(o=>a.indexOf(o)!==-1),t={...e,...n};for(let o of s){let d=wl(e[o],n[o]);if(!d.valid)return{valid:!1,mergeErrorPath:[o,...d.mergeErrorPath]};t[o]=d.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};let a=[];for(let s=0;s<e.length;s++){let t=e[s],o=n[s],d=wl(t,o);if(!d.valid)return{valid:!1,mergeErrorPath:[s,...d.mergeErrorPath]};a.push(d.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}c(wl,"mergeValues");function P_(e,n,a){let s=new Map,t;for(let p of n.issues)if(p.code==="unrecognized_keys"){t??(t=p);for(let _ of p.keys)s.has(_)||s.set(_,{}),s.get(_).l=!0}else e.issues.push(p);for(let p of a.issues)if(p.code==="unrecognized_keys")for(let _ of p.keys)s.has(_)||s.set(_,{}),s.get(_).r=!0;else e.issues.push(p);let o=[...s].filter(([,p])=>p.l&&p.r).map(([p])=>p);if(o.length&&t&&e.issues.push({...t,keys:o}),mr(e))return e;let d=wl(n.value,a.value);if(!d.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`);return e.value=d.data,e}c(P_,"handleIntersectionResults");var ya=w("$ZodTuple",(e,n)=>{X.init(e,n);let a=n.items;e._zod.parse=(s,t)=>{let o=s.value;if(!Array.isArray(o))return s.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),s;s.value=[];let d=[],p=j_(a,"optin"),_=j_(a,"optout");if(!n.rest){if(o.length<p)return s.issues.push({code:"too_small",minimum:p,inclusive:!0,input:o,inst:e,origin:"array"}),s;o.length>a.length&&s.issues.push({code:"too_big",maximum:a.length,inclusive:!0,input:o,inst:e,origin:"array"})}let h=new Array(a.length);for(let x=0;x<a.length;x++){let z=a[x]._zod.run({value:o[x],issues:[]},t);z instanceof Promise?d.push(z.then(b=>{h[x]=b})):h[x]=z}if(n.rest){let x=a.length-1,z=o.slice(a.length);for(let b of z){x++;let I=n.rest._zod.run({value:b,issues:[]},t);I instanceof Promise?d.push(I.then(T=>E_(T,s,x))):E_(I,s,x)}}return d.length?Promise.all(d).then(()=>U_(h,s,a,o,_)):U_(h,s,a,o,_)}});function j_(e,n){for(let a=e.length-1;a>=0;a--)if(e[a]._zod[n]!=="optional")return a+1;return 0}c(j_,"getTupleOptStart");function E_(e,n,a){e.issues.length&&n.issues.push(...He(a,e.issues)),n.value[a]=e.value}c(E_,"handleTupleResult");function U_(e,n,a,s,t){for(let o=0;o<a.length;o++){let d=e[o],p=o<s.length;if(d.issues.length){if(!p&&o>=t){n.value.length=o;break}n.issues.push(...He(o,d.issues))}n.value[o]=d.value}for(let o=n.value.length-1;o>=s.length&&(a[o]._zod.optout==="optional"&&n.value[o]===void 0);o--)n.value.length=o;return n}c(U_,"handleTupleResults");var fd=w("$ZodRecord",(e,n)=>{X.init(e,n),e._zod.parse=(a,s)=>{let t=a.value;if(!pr(t))return a.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),a;let o=[],d=n.keyType._zod.values;if(d){a.value={};let p=new Set;for(let h of d)if(typeof h=="string"||typeof h=="number"||typeof h=="symbol"){p.add(typeof h=="number"?h.toString():h);let x=n.keyType._zod.run({value:h,issues:[]},s);if(x instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(x.issues.length){a.issues.push({code:"invalid_key",origin:"record",issues:x.issues.map(I=>Me(I,s,Ie())),input:h,path:[h],inst:e});continue}let z=x.value,b=n.valueType._zod.run({value:t[h],issues:[]},s);b instanceof Promise?o.push(b.then(I=>{I.issues.length&&a.issues.push(...He(h,I.issues)),a.value[z]=I.value})):(b.issues.length&&a.issues.push(...He(h,b.issues)),a.value[z]=b.value)}let _;for(let h in t)p.has(h)||(_=_??[],_.push(h));_&&_.length>0&&a.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:_})}else{a.value={};for(let p of Reflect.ownKeys(t)){if(p==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,p))continue;let _=n.keyType._zod.run({value:p,issues:[]},s);if(_ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof p=="string"&&la.test(p)&&_.issues.length){let z=n.keyType._zod.run({value:Number(p),issues:[]},s);if(z instanceof Promise)throw new Error("Async schemas not supported in object keys currently");z.issues.length===0&&(_=z)}if(_.issues.length){n.mode==="loose"?a.value[p]=t[p]:a.issues.push({code:"invalid_key",origin:"record",issues:_.issues.map(z=>Me(z,s,Ie())),input:p,path:[p],inst:e});continue}let x=n.valueType._zod.run({value:t[p],issues:[]},s);x instanceof Promise?o.push(x.then(z=>{z.issues.length&&a.issues.push(...He(p,z.issues)),a.value[_.value]=z.value})):(x.issues.length&&a.issues.push(...He(p,x.issues)),a.value[_.value]=x.value)}}return o.length?Promise.all(o).then(()=>a):a}}),pd=w("$ZodMap",(e,n)=>{X.init(e,n),e._zod.parse=(a,s)=>{let t=a.value;if(!(t instanceof Map))return a.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),a;let o=[];a.value=new Map;for(let[d,p]of t){let _=n.keyType._zod.run({value:d,issues:[]},s),h=n.valueType._zod.run({value:p,issues:[]},s);_ instanceof Promise||h instanceof Promise?o.push(Promise.all([_,h]).then(([x,z])=>{D_(x,z,a,d,t,e,s)})):D_(_,h,a,d,t,e,s)}return o.length?Promise.all(o).then(()=>a):a}});function D_(e,n,a,s,t,o,d){e.issues.length&&(yi.has(typeof s)?a.issues.push(...He(s,e.issues)):a.issues.push({code:"invalid_key",origin:"map",input:t,inst:o,issues:e.issues.map(p=>Me(p,d,Ie()))})),n.issues.length&&(yi.has(typeof s)?a.issues.push(...He(s,n.issues)):a.issues.push({origin:"map",code:"invalid_element",input:t,inst:o,key:s,issues:n.issues.map(p=>Me(p,d,Ie()))})),a.value.set(e.value,n.value)}c(D_,"handleMapResult");var md=w("$ZodSet",(e,n)=>{X.init(e,n),e._zod.parse=(a,s)=>{let t=a.value;if(!(t instanceof Set))return a.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),a;let o=[];a.value=new Set;for(let d of t){let p=n.valueType._zod.run({value:d,issues:[]},s);p instanceof Promise?o.push(p.then(_=>T_(_,a))):T_(p,a)}return o.length?Promise.all(o).then(()=>a):a}});function T_(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}c(T_,"handleSetResult");var gd=w("$ZodEnum",(e,n)=>{X.init(e,n);let a=hi(n.entries),s=new Set(a);e._zod.values=s,e._zod.pattern=new RegExp(`^(${a.filter(t=>yi.has(typeof t)).map(t=>typeof t=="string"?ht(t):t.toString()).join("|")})$`),e._zod.parse=(t,o)=>{let d=t.value;return s.has(d)||t.issues.push({code:"invalid_value",values:a,input:d,inst:e}),t}}),vd=w("$ZodLiteral",(e,n)=>{if(X.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");let a=new Set(n.values);e._zod.values=a,e._zod.pattern=new RegExp(`^(${n.values.map(s=>typeof s=="string"?ht(s):s?ht(s.toString()):String(s)).join("|")})$`),e._zod.parse=(s,t)=>{let o=s.value;return a.has(o)||s.issues.push({code:"invalid_value",values:n.values,input:o,inst:e}),s}}),hd=w("$ZodFile",(e,n)=>{X.init(e,n),e._zod.parse=(a,s)=>{let t=a.value;return t instanceof File||a.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),a}}),_d=w("$ZodTransform",(e,n)=>{X.init(e,n),e._zod.optin="optional",e._zod.parse=(a,s)=>{if(s.direction==="backward")throw new lr(e.constructor.name);let t=n.transform(a.value,a);if(s.async)return(t instanceof Promise?t:Promise.resolve(t)).then(d=>(a.value=d,a.fallback=!0,a));if(t instanceof Promise)throw new St;return a.value=t,a.fallback=!0,a}});function O_(e,n){return n===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}c(O_,"handleOptionalResult");var ba=w("$ZodOptional",(e,n)=>{X.init(e,n),e._zod.optin="optional",e._zod.optout="optional",oe(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),oe(e._zod,"pattern",()=>{let a=n.innerType._zod.pattern;return a?new RegExp(`^(${_i(a.source)})?$`):void 0}),e._zod.parse=(a,s)=>{if(n.innerType._zod.optin==="optional"){let t=a.value,o=n.innerType._zod.run(a,s);return o instanceof Promise?o.then(d=>O_(d,t)):O_(o,t)}return a.value===void 0?a:n.innerType._zod.run(a,s)}}),yd=w("$ZodExactOptional",(e,n)=>{ba.init(e,n),oe(e._zod,"values",()=>n.innerType._zod.values),oe(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(a,s)=>n.innerType._zod.run(a,s)}),bd=w("$ZodNullable",(e,n)=>{X.init(e,n),oe(e._zod,"optin",()=>n.innerType._zod.optin),oe(e._zod,"optout",()=>n.innerType._zod.optout),oe(e._zod,"pattern",()=>{let a=n.innerType._zod.pattern;return a?new RegExp(`^(${_i(a.source)}|null)$`):void 0}),oe(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(a,s)=>a.value===null?a:n.innerType._zod.run(a,s)}),$d=w("$ZodDefault",(e,n)=>{X.init(e,n),e._zod.optin="optional",oe(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(a,s)=>{if(s.direction==="backward")return n.innerType._zod.run(a,s);if(a.value===void 0)return a.value=n.defaultValue,a;let t=n.innerType._zod.run(a,s);return t instanceof Promise?t.then(o=>A_(o,n)):A_(t,n)}});function A_(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}c(A_,"handleDefaultResult");var xd=w("$ZodPrefault",(e,n)=>{X.init(e,n),e._zod.optin="optional",oe(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(a,s)=>(s.direction==="backward"||a.value===void 0&&(a.value=n.defaultValue),n.innerType._zod.run(a,s))}),kd=w("$ZodNonOptional",(e,n)=>{X.init(e,n),oe(e._zod,"values",()=>{let a=n.innerType._zod.values;return a?new Set([...a].filter(s=>s!==void 0)):void 0}),e._zod.parse=(a,s)=>{let t=n.innerType._zod.run(a,s);return t instanceof Promise?t.then(o=>N_(o,e)):N_(t,e)}});function N_(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}c(N_,"handleNonOptionalResult");var wd=w("$ZodSuccess",(e,n)=>{X.init(e,n),e._zod.parse=(a,s)=>{if(s.direction==="backward")throw new lr("ZodSuccess");let t=n.innerType._zod.run(a,s);return t instanceof Promise?t.then(o=>(a.value=o.issues.length===0,a)):(a.value=t.issues.length===0,a)}}),Id=w("$ZodCatch",(e,n)=>{X.init(e,n),e._zod.optin="optional",oe(e._zod,"optout",()=>n.innerType._zod.optout),oe(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(a,s)=>{if(s.direction==="backward")return n.innerType._zod.run(a,s);let t=n.innerType._zod.run(a,s);return t instanceof Promise?t.then(o=>(a.value=o.value,o.issues.length&&(a.value=n.catchValue({...a,error:{issues:o.issues.map(d=>Me(d,s,Ie()))},input:a.value}),a.issues=[],a.fallback=!0),a)):(a.value=t.value,t.issues.length&&(a.value=n.catchValue({...a,error:{issues:t.issues.map(o=>Me(o,s,Ie()))},input:a.value}),a.issues=[],a.fallback=!0),a)}}),Sd=w("$ZodNaN",(e,n)=>{X.init(e,n),e._zod.parse=(a,s)=>((typeof a.value!="number"||!Number.isNaN(a.value))&&a.issues.push({input:a.value,inst:e,expected:"nan",code:"invalid_type"}),a)}),$a=w("$ZodPipe",(e,n)=>{X.init(e,n),oe(e._zod,"values",()=>n.in._zod.values),oe(e._zod,"optin",()=>n.in._zod.optin),oe(e._zod,"optout",()=>n.out._zod.optout),oe(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(a,s)=>{if(s.direction==="backward"){let o=n.out._zod.run(a,s);return o instanceof Promise?o.then(d=>pa(d,n.in,s)):pa(o,n.in,s)}let t=n.in._zod.run(a,s);return t instanceof Promise?t.then(o=>pa(o,n.out,s)):pa(t,n.out,s)}});function pa(e,n,a){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},a)}c(pa,"handlePipeResult");var Ei=w("$ZodCodec",(e,n)=>{X.init(e,n),oe(e._zod,"values",()=>n.in._zod.values),oe(e._zod,"optin",()=>n.in._zod.optin),oe(e._zod,"optout",()=>n.out._zod.optout),oe(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(a,s)=>{if((s.direction||"forward")==="forward"){let o=n.in._zod.run(a,s);return o instanceof Promise?o.then(d=>ma(d,n,s)):ma(o,n,s)}else{let o=n.out._zod.run(a,s);return o instanceof Promise?o.then(d=>ma(d,n,s)):ma(o,n,s)}}});function ma(e,n,a){if(e.issues.length)return e.aborted=!0,e;if((a.direction||"forward")==="forward"){let t=n.transform(e.value,e);return t instanceof Promise?t.then(o=>ga(e,o,n.out,a)):ga(e,t,n.out,a)}else{let t=n.reverseTransform(e.value,e);return t instanceof Promise?t.then(o=>ga(e,o,n.in,a)):ga(e,t,n.in,a)}}c(ma,"handleCodecAResult");function ga(e,n,a,s){return e.issues.length?(e.aborted=!0,e):a._zod.run({value:n,issues:e.issues},s)}c(ga,"handleCodecTxResult");var zd=w("$ZodPreprocess",(e,n)=>{$a.init(e,n)}),Pd=w("$ZodReadonly",(e,n)=>{X.init(e,n),oe(e._zod,"propValues",()=>n.innerType._zod.propValues),oe(e._zod,"values",()=>n.innerType._zod.values),oe(e._zod,"optin",()=>n.innerType?._zod?.optin),oe(e._zod,"optout",()=>n.innerType?._zod?.optout),e._zod.parse=(a,s)=>{if(s.direction==="backward")return n.innerType._zod.run(a,s);let t=n.innerType._zod.run(a,s);return t instanceof Promise?t.then(C_):C_(t)}});function C_(e){return e.value=Object.freeze(e.value),e}c(C_,"handleReadonlyResult");var jd=w("$ZodTemplateLiteral",(e,n)=>{X.init(e,n);let a=[];for(let s of n.parts)if(typeof s=="object"&&s!==null){if(!s._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...s._zod.traits].shift()}`);let t=s._zod.pattern instanceof RegExp?s._zod.pattern.source:s._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${s._zod.traits}`);let o=t.startsWith("^")?1:0,d=t.endsWith("$")?t.length-1:t.length;a.push(t.slice(o,d))}else if(s===null||ys.has(typeof s))a.push(ht(`${s}`));else throw new Error(`Invalid template literal part: ${s}`);e._zod.pattern=new RegExp(`^${a.join("")}$`),e._zod.parse=(s,t)=>typeof s.value!="string"?(s.issues.push({input:s.value,inst:e,expected:"string",code:"invalid_type"}),s):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(s.value)||s.issues.push({input:s.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),s)}),Ed=w("$ZodFunction",(e,n)=>(X.init(e,n),e._def=n,e._zod.def=n,e.implement=a=>{if(typeof a!="function")throw new Error("implement() must be called with a function");return function(...s){let t=e._def.input?Qo(e._def.input,s):s,o=Reflect.apply(a,this,t);return e._def.output?Qo(e._def.output,o):o}},e.implementAsync=a=>{if(typeof a!="function")throw new Error("implementAsync() must be called with a function");return async function(...s){let t=e._def.input?await ea(e._def.input,s):s,o=await Reflect.apply(a,this,t);return e._def.output?await ea(e._def.output,o):o}},e._zod.parse=(a,s)=>typeof a.value!="function"?(a.issues.push({code:"invalid_type",expected:"function",input:a.value,inst:e}),a):(e._def.output&&e._def.output._zod.def.type==="promise"?a.value=e.implementAsync(a.value):a.value=e.implement(a.value),a),e.input=(...a)=>{let s=e.constructor;return Array.isArray(a[0])?new s({type:"function",input:new ya({type:"tuple",items:a[0],rest:a[1]}),output:e._def.output}):new s({type:"function",input:a[0],output:e._def.output})},e.output=a=>{let s=e.constructor;return new s({type:"function",input:e._def.input,output:a})},e)),Ud=w("$ZodPromise",(e,n)=>{X.init(e,n),e._zod.parse=(a,s)=>Promise.resolve(a.value).then(t=>n.innerType._zod.run({value:t,issues:[]},s))}),Dd=w("$ZodLazy",(e,n)=>{X.init(e,n),oe(e._zod,"innerType",()=>{let a=n;return a._cachedInner||(a._cachedInner=n.getter()),a._cachedInner}),oe(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),oe(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),oe(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),oe(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(a,s)=>e._zod.innerType._zod.run(a,s)}),Td=w("$ZodCustom",(e,n)=>{ye.init(e,n),X.init(e,n),e._zod.parse=(a,s)=>a,e._zod.check=a=>{let s=a.value,t=n.fn(s);if(t instanceof Promise)return t.then(o=>R_(o,a,s,e));R_(t,a,s,e)}});function R_(e,n,a,s){if(!e){let t={code:"custom",input:a,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(t.params=s._zod.def.params),n.issues.push(dn(t))}}c(R_,"handleRefineResult");var Ai={};Ot(Ai,{ar:()=>Od,az:()=>Ad,be:()=>Nd,bg:()=>Cd,ca:()=>Rd,cs:()=>Zd,da:()=>Ld,de:()=>Vd,el:()=>Fd,en:()=>Ui,eo:()=>Md,es:()=>Bd,fa:()=>Jd,fi:()=>Wd,fr:()=>Gd,frCA:()=>Kd,he:()=>qd,hr:()=>Hd,hu:()=>Xd,hy:()=>Yd,id:()=>Qd,is:()=>ef,it:()=>tf,ja:()=>rf,ka:()=>nf,kh:()=>of,km:()=>Di,ko:()=>af,lt:()=>uf,mk:()=>cf,ms:()=>sf,nl:()=>lf,no:()=>df,ota:()=>ff,pl:()=>mf,ps:()=>pf,pt:()=>gf,ro:()=>vf,ru:()=>hf,sl:()=>_f,sv:()=>yf,ta:()=>bf,th:()=>$f,tr:()=>xf,ua:()=>kf,uk:()=>Oi,ur:()=>wf,uz:()=>If,vi:()=>Sf,yo:()=>jf,zhCN:()=>zf,zhTW:()=>Pf});var i1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.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 ${t.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${p}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${p}`}case"invalid_value":return t.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 ${A(t.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: ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${t.maximum.toString()} ${d.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${t.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${t.minimum.toString()} ${d.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${t.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${t.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${t.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${t.keys.length>1?"\u0629":""}: ${P(t.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${t.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 ${t.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function Od(){return{localeError:i1()}}c(Od,"default");var o1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${t.expected}, daxil olan ${p}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${p}`}case"invalid_value":return t.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${A(t.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${o}${t.maximum.toString()} ${d.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${t.origin??"d\u0259y\u0259r"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${o}${t.minimum.toString()} ${d.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${a[o.format]??t.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${t.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${t.keys.length>1?"lar":""}: ${P(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${t.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Ad(){return{localeError:o1()}}c(Ad,"default");function B_(e,n,a,s){let t=Math.abs(e),o=t%10,d=t%100;return d>=11&&d<=19?s:o===1?n:o>=2&&o<=4?a:s}c(B_,"getBelarusianPlural");var a1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${t.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${p}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${p}`}case"invalid_value":return t.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 ${A(t.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 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);if(d){let p=Number(t.maximum),_=B_(p,d.unit.one,d.unit.few,d.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${d.verb} ${o}${t.maximum.toString()} ${_}`}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 ${t.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);if(d){let p=Number(t.minimum),_=B_(p,d.unit.one,d.unit.few,d.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${d.verb} ${o}${t.minimum.toString()} ${_}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${t.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${t.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${P(t.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${t.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 ${t.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function Nd(){return{localeError:a1()}}c(Nd,"default");var u1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${p}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${p}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${A(t.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 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${t.maximum.toString()} ${d.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${t.minimum.toString()} ${d.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${t.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;if(o.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 "${o.prefix}"`;if(o.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 "${o.suffix}"`;if(o.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 "${o.includes}"`;if(o.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 ${o.pattern}`;let d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(d="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${d} ${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${t.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u043E\u0432\u0435":""}: ${P(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${t.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 ${t.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Cd(){return{localeError:u1()}}c(Cd,"default");var c1=c(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${t.expected}, s'ha rebut ${p}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${p}`}case"invalid_value":return t.values.length===1?`Valor inv\xE0lid: s'esperava ${A(t.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${P(t.values," o ")}`;case"too_big":{let o=t.inclusive?"com a m\xE0xim":"menys de",d=n(t.origin);return d?`Massa gran: s'esperava que ${t.origin??"el valor"} contingu\xE9s ${o} ${t.maximum.toString()} ${d.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"com a m\xEDnim":"m\xE9s de",d=n(t.origin);return d?`Massa petit: s'esperava que ${t.origin} contingu\xE9s ${o} ${t.minimum.toString()} ${d.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${a[o.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${P(t.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${t.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${t.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function Rd(){return{localeError:c1()}}c(Rd,"default");var s1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${t.expected}, obdr\u017Eeno ${p}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${p}`}case"invalid_value":return t.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${A(t.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${o}${t.maximum.toString()} ${d.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED m\xEDt ${o}${t.minimum.toString()} ${d.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${t.origin??"hodnota"} mus\xED b\xFDt ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${a[o.format]??t.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${t.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${P(t.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${t.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${t.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function Zd(){return{localeError:s1()}}c(Zd,"default");var l1=c(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${p}`:`Ugyldigt input: forventede ${o}, fik ${p}`}case"invalid_value":return t.values.length===1?`Ugyldig v\xE6rdi: forventede ${A(t.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin),p=s[t.origin]??t.origin;return d?`For stor: forventede ${p??"value"} ${d.verb} ${o} ${t.maximum.toString()} ${d.unit??"elementer"}`:`For stor: forventede ${p??"value"} havde ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin),p=s[t.origin]??t.origin;return d?`For lille: forventede ${p} ${d.verb} ${o} ${t.minimum.toString()} ${d.unit}`:`For lille: forventede ${p} havde ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${a[o.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${P(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${t.origin}`;default:return"Ugyldigt input"}}},"error");function Ld(){return{localeError:l1()}}c(Ld,"default");var d1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${t.expected}, erhalten ${p}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${p}`}case"invalid_value":return t.values.length===1?`Ung\xFCltige Eingabe: erwartet ${A(t.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ${d.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ist`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ${d.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ist`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${a[o.format]??t.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${P(t.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${t.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${t.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function Vd(){return{localeError:d1()}}c(Vd,"default");var f1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return typeof t.expected=="string"&&/^[A-Z]/.test(t.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 ${t.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${p}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${p}`}case"invalid_value":return t.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 ${A(t.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 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${t.maximum.toString()} ${d.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${t.minimum.toString()} ${d.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${t.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${t.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${t.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${P(t.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${t.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 ${t.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}},"error");function Fd(){return{localeError:f1()}}c(Fd,"default");var p1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return`Invalid input: expected ${o}, received ${p}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${A(t.values[0])}`:`Invalid option: expected one of ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Too big: expected ${t.origin??"value"} to have ${o}${t.maximum.toString()} ${d.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Too small: expected ${t.origin} to have ${o}${t.minimum.toString()} ${d.unit}`:`Too small: expected ${t.origin} to be ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${a[o.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${P(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(d=>`'${d}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}},"error");function Ui(){return{localeError:p1()}}c(Ui,"default");var m1=c(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${t.expected}, ricevi\u011Dis ${p}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${p}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendi\u011Dis ${A(t.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${o}${t.maximum.toString()} ${d.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${t.origin??"valoro"} havu ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Tro malgranda: atendi\u011Dis ke ${t.origin} havu ${o}${t.minimum.toString()} ${d.unit}`:`Tro malgranda: atendi\u011Dis ke ${t.origin} estu ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${a[o.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} \u015Dlosilo${t.keys.length>1?"j":""}: ${P(t.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}},"error");function Md(){return{localeError:m1()}}c(Md,"default");var g1=c(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={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 t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${t.expected}, recibido ${p}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${p}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: se esperaba ${A(t.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin),p=s[t.origin]??t.origin;return d?`Demasiado grande: se esperaba que ${p??"valor"} tuviera ${o}${t.maximum.toString()} ${d.unit??"elementos"}`:`Demasiado grande: se esperaba que ${p??"valor"} fuera ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin),p=s[t.origin]??t.origin;return d?`Demasiado peque\xF1o: se esperaba que ${p} tuviera ${o}${t.minimum.toString()} ${d.unit}`:`Demasiado peque\xF1o: se esperaba que ${p} fuera ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${a[o.format]??t.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${P(t.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${s[t.origin]??t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${s[t.origin]??t.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function Bd(){return{localeError:g1()}}c(Bd,"default");var v1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${t.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${p} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${p} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return t.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${A(t.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 ${P(t.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} ${d.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${t.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} ${d.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${a[o.format]??t.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 ${t.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${t.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${P(t.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${t.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 ${t.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function Jd(){return{localeError:v1()}}c(Jd,"default");var h1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${p}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${p}`}case"invalid_value":return t.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${A(t.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Liian suuri: ${d.subject} t\xE4ytyy olla ${o}${t.maximum.toString()} ${d.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Liian pieni: ${d.subject} t\xE4ytyy olla ${o}${t.minimum.toString()} ${d.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${a[o.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${P(t.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"}}},"error");function Wd(){return{localeError:h1()}}c(Wd,"default");var _1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={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 t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : instanceof ${t.expected} attendu, ${p} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${p} re\xE7u`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : ${A(t.values[0])} attendu`:`Option invalide : une valeur parmi ${P(t.values,"|")} attendue`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Trop grand : ${s[t.origin]??"valeur"} doit ${d.verb} ${o}${t.maximum.toString()} ${d.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${s[t.origin]??"valeur"} doit \xEAtre ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Trop petit : ${s[t.origin]??"valeur"} doit ${d.verb} ${o}${t.minimum.toString()} ${d.unit}`:`Trop petit : ${s[t.origin]??"valeur"} doit \xEAtre ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${a[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${P(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Gd(){return{localeError:_1()}}c(Gd,"default");var y1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Entr\xE9e invalide : attendu instanceof ${t.expected}, re\xE7u ${p}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${p}`}case"invalid_value":return t.values.length===1?`Entr\xE9e invalide : attendu ${A(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"\u2264":"<",d=n(t.origin);return d?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${o}${t.maximum.toString()} ${d.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"\u2265":">",d=n(t.origin);return d?`Trop petit : attendu que ${t.origin} ait ${o}${t.minimum.toString()} ${d.unit}`:`Trop petit : attendu que ${t.origin} soit ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${a[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${t.divisor}`;case"unrecognized_keys":return`Cl\xE9${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${P(t.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${t.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entr\xE9e invalide"}}},"error");function Kd(){return{localeError:y1()}}c(Kd,"default");var b1=c(()=>{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"}},n={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"}},a=c(h=>h?e[h]:void 0,"typeEntry"),s=c(h=>{let x=a(h);return x?x.label:h??e.unknown.label},"typeLabel"),t=c(h=>`\u05D4${s(h)}`,"withDefinite"),o=c(h=>(a(h)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),d=c(h=>h?n[h]??null:null,"getSizing"),p={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},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"}},_={nan:"NaN"};return h=>{switch(h.code){case"invalid_type":{let x=h.expected,z=_[x??""]??s(x),b=N(h.input),I=_[b]??e[b]?.label??b;return/^[A-Z]/.test(h.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${h.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${I}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${z}, \u05D4\u05EA\u05E7\u05D1\u05DC ${I}`}case"invalid_value":{if(h.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 ${A(h.values[0])}`;let x=h.values.map(I=>A(I));if(h.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 ${x[0]} \u05D0\u05D5 ${x[1]}`;let z=x[x.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 ${x.slice(0,-1).join(", ")} \u05D0\u05D5 ${z}`}case"too_big":{let x=d(h.origin),z=t(h.origin??"value");if(h.origin==="string")return`${x?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${z} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${h.maximum.toString()} ${x?.unit??""} ${h.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(h.origin==="number"){let T=h.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${h.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${h.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${z} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${T}`}if(h.origin==="array"||h.origin==="set"){let T=h.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",Z=h.inclusive?`${h.maximum} ${x?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${h.maximum} ${x?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${z} ${T} \u05DC\u05D4\u05DB\u05D9\u05DC ${Z}`.trim()}let b=h.inclusive?"<=":"<",I=o(h.origin??"value");return x?.unit?`${x.longLabel} \u05DE\u05D3\u05D9: ${z} ${I} ${b}${h.maximum.toString()} ${x.unit}`:`${x?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${z} ${I} ${b}${h.maximum.toString()}`}case"too_small":{let x=d(h.origin),z=t(h.origin??"value");if(h.origin==="string")return`${x?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${z} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${h.minimum.toString()} ${x?.unit??""} ${h.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(h.origin==="number"){let T=h.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${h.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${h.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${z} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${T}`}if(h.origin==="array"||h.origin==="set"){let T=h.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(h.minimum===1&&h.inclusive){let L=(h.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${z} ${T} \u05DC\u05D4\u05DB\u05D9\u05DC ${L}`}let Z=h.inclusive?`${h.minimum} ${x?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${h.minimum} ${x?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${z} ${T} \u05DC\u05D4\u05DB\u05D9\u05DC ${Z}`.trim()}let b=h.inclusive?">=":">",I=o(h.origin??"value");return x?.unit?`${x.shortLabel} \u05DE\u05D3\u05D9: ${z} ${I} ${b}${h.minimum.toString()} ${x.unit}`:`${x?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${z} ${I} ${b}${h.minimum.toString()}`}case"invalid_format":{let x=h;if(x.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${x.prefix}"`;if(x.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${x.suffix}"`;if(x.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${x.includes}"`;if(x.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 ${x.pattern}`;let z=p[x.format],b=z?.label??x.format,T=(z?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${b} \u05DC\u05D0 ${T}`}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 ${h.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${h.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${h.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${P(h.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${t(h.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function qd(){return{localeError:b1()}}c(qd,"default");var $1=c(()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={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 t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${t.expected}, a primljeno je ${p}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${p}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${A(t.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin),p=s[t.origin]??t.origin;return d?`Preveliko: o\u010Dekivano da ${p??"vrijednost"} ima ${o}${t.maximum.toString()} ${d.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${p??"vrijednost"} bude ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin),p=s[t.origin]??t.origin;return d?`Premalo: o\u010Dekivano da ${p} ima ${o}${t.minimum.toString()} ${d.unit}`:`Premalo: o\u010Dekivano da ${p} bude ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${a[o.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${P(t.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${s[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${s[t.origin]??t.origin}`;default:return"Neispravan unos"}}},"error");function Hd(){return{localeError:$1()}}c(Hd,"default");var x1=c(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${t.expected}, a kapott \xE9rt\xE9k ${p}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${p}`}case"invalid_value":return t.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${A(t.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`T\xFAl nagy: ${t.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${t.maximum.toString()} ${d.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${t.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} m\xE9rete t\xFAl kicsi ${o}${t.minimum.toString()} ${d.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${t.origin} t\xFAl kicsi ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${a[o.format]??t.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${t.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${P(t.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${t.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${t.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function Xd(){return{localeError:x1()}}c(Xd,"default");function J_(e,n,a){return Math.abs(e)===1?n:a}c(J_,"getArmenianPlural");function hn(e){if(!e)return"";let n=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],a=e[e.length-1];return e+(n.includes(a)?"\u0576":"\u0568")}c(hn,"withDefiniteArticle");var k1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.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 ${t.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${p}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${p}`}case"invalid_value":return t.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 ${A(t.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 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);if(d){let p=Number(t.maximum),_=J_(p,d.unit.one,d.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${hn(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${t.maximum.toString()} ${_}`}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 ${hn(t.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);if(d){let p=Number(t.minimum),_=J_(p,d.unit.one,d.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${hn(t.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${t.minimum.toString()} ${_}`}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 ${hn(t.origin)} \u056C\u056B\u0576\u056B ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.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 ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${a[o.format]??t.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 ${t.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${t.keys.length>1?"\u0576\u0565\u0580":""}. ${P(t.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${hn(t.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 ${hn(t.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function Yd(){return{localeError:k1()}}c(Yd,"default");var w1=c(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${p}`:`Input tidak valid: diharapkan ${o}, diterima ${p}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${A(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${o}${t.maximum.toString()} ${d.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Terlalu kecil: diharapkan ${t.origin} memiliki ${o}${t.minimum.toString()} ${d.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${a[o.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${P(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}},"error");function Qd(){return{localeError:w1()}}c(Qd,"default");var I1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"n\xFAmer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${p} \xFEar sem \xE1 a\xF0 vera instanceof ${t.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${p} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${A(t.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} hafi ${o}${t.maximum.toString()} ${d.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin??"gildi"} s\xE9 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} hafi ${o}${t.minimum.toString()} ${d.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${t.origin} s\xE9 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${a[o.format]??t.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${P(t.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${t.origin}`;default:return"Rangt gildi"}}},"error");function ef(){return{localeError:I1()}}c(ef,"default");var S1=c(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${p}`:`Input non valido: atteso ${o}, ricevuto ${p}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${A(t.values[0])}`:`Opzione non valida: atteso uno tra ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Troppo grande: ${t.origin??"valore"} deve avere ${o}${t.maximum.toString()} ${d.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Troppo piccolo: ${t.origin} deve avere ${o}${t.minimum.toString()} ${d.unit}`:`Troppo piccolo: ${t.origin} deve essere ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${a[o.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${P(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}},"error");function tf(){return{localeError:S1()}}c(tf,"default");var z1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${t.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${p}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${p}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return t.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${A(t.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${P(t.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=t.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",d=n(t.origin);return d?`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${d.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${t.origin??"\u5024"}\u306F${t.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=t.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",d=n(t.origin);return d?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${d.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${t.origin}\u306F${t.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${a[o.format]??t.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${t.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${t.keys.length>1?"\u7FA4":""}: ${P(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${t.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function rf(){return{localeError:z1()}}c(rf,"default");var P1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={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 t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.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 ${t.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${p}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${p}`}case"invalid_value":return t.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 ${A(t.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 ${P(t.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${d.verb} ${o}${t.maximum.toString()} ${d.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} ${d.verb} ${o}${t.minimum.toString()} ${d.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${t.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"-\u10D8\u10D7`:o.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 "${o.suffix}"-\u10D8\u10D7`:o.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 "${o.includes}"-\u10E1`:o.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 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${a[o.format]??t.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 ${t.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${t.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${P(t.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${t.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 ${t.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function nf(){return{localeError:P1()}}c(nf,"default");var j1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={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 t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.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 ${t.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${p}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${p}`}case"invalid_value":return t.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 ${A(t.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 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${t.maximum.toString()} ${d.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${o} ${t.minimum.toString()} ${d.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${t.origin} ${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${P(t.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 ${t.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 ${t.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function Di(){return{localeError:j1()}}c(Di,"default");function of(){return Di()}c(of,"default");var E1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${t.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${p}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${p}\uC785\uB2C8\uB2E4`}case"invalid_value":return t.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${A(t.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${P(t.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=t.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",d=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",p=n(t.origin),_=p?.unit??"\uC694\uC18C";return p?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()}${_} ${o}${d}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${t.maximum.toString()} ${o}${d}`}case"too_small":{let o=t.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",d=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",p=n(t.origin),_=p?.unit??"\uC694\uC18C";return p?`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()}${_} ${o}${d}`:`${t.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${t.minimum.toString()} ${o}${d}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${a[o.format]??t.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${t.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${P(t.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${t.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${t.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function af(){return{localeError:E1()}}c(af,"default");var Ti=c(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function W_(e){let n=Math.abs(e),a=n%10,s=n%100;return s>=11&&s<=19||a===0?"many":a===1?"one":"few"}c(W_,"getUnitTypeFromNumber");var U1=c(()=>{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 n(t,o,d,p){let _=e[t]??null;return _===null?_:{unit:_.unit[o],verb:_.verb[p][d?"inclusive":"notInclusive"]}}c(n,"getSizing");let a={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"},s={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 t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${p}, o tik\u0117tasi - instanceof ${t.expected}`:`Gautas tipas ${p}, o tik\u0117tasi - ${o}`}case"invalid_value":return t.values.length===1?`Privalo b\u016Bti ${A(t.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${P(t.values,"|")} pasirinkim\u0173`;case"too_big":{let o=s[t.origin]??t.origin,d=n(t.origin,W_(Number(t.maximum)),t.inclusive??!1,"smaller");if(d?.verb)return`${Ti(o??t.origin??"reik\u0161m\u0117")} ${d.verb} ${t.maximum.toString()} ${d.unit??"element\u0173"}`;let p=t.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Ti(o??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${p} ${t.maximum.toString()} ${d?.unit}`}case"too_small":{let o=s[t.origin]??t.origin,d=n(t.origin,W_(Number(t.minimum)),t.inclusive??!1,"bigger");if(d?.verb)return`${Ti(o??t.origin??"reik\u0161m\u0117")} ${d.verb} ${t.minimum.toString()} ${d.unit??"element\u0173"}`;let p=t.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Ti(o??t.origin??"reik\u0161m\u0117")} turi b\u016Bti ${p} ${t.minimum.toString()} ${d?.unit}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${a[o.format]??t.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${P(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=s[t.origin]??t.origin;return`${Ti(o??t.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function uf(){return{localeError:U1()}}c(uf,"default");var D1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${t.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${p}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${p}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${A(t.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 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${t.maximum.toString()} ${d.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${t.minimum.toString()} ${d.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${t.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`Invalid ${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`${t.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"}: ${P(t.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${t.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 ${t.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function cf(){return{localeError:D1()}}c(cf,"default");var T1=c(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${p}`:`Input tidak sah: dijangka ${o}, diterima ${p}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${A(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Terlalu besar: dijangka ${t.origin??"nilai"} ${d.verb} ${o}${t.maximum.toString()} ${d.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Terlalu kecil: dijangka ${t.origin} ${d.verb} ${o}${t.minimum.toString()} ${d.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${a[o.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${P(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}},"error");function sf(){return{localeError:T1()}}c(sf,"default");var O1=c(()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${p}`:`Ongeldige invoer: verwacht ${o}, ontving ${p}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${A(t.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin),p=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return d?`Te ${p}: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} ${d.unit??"elementen"} ${d.verb}`:`Te ${p}: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} is`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin),p=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return d?`Te ${p}: verwacht dat ${t.origin} ${o}${t.minimum.toString()} ${d.unit} ${d.verb}`:`Te ${p}: verwacht dat ${t.origin} ${o}${t.minimum.toString()} is`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${a[o.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${P(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}},"error");function lf(){return{localeError:O1()}}c(lf,"default");var A1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${p}`:`Ugyldig input: forventet ${o}, fikk ${p}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${A(t.values[0])}`:`Ugyldig valg: forventet en av ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${o}${t.maximum.toString()} ${d.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til \xE5 ha ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`For lite(n): forventet ${t.origin} til \xE5 ha ${o}${t.minimum.toString()} ${d.unit}`:`For lite(n): forventet ${t.origin} til \xE5 ha ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${a[o.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${P(t.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}},"error");function df(){return{localeError:A1()}}c(df,"default");var N1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`F\xE2sit giren: umulan instanceof ${t.expected}, al\u0131nan ${p}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${p}`}case"invalid_value":return t.values.length===1?`F\xE2sit giren: umulan ${A(t.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${o}${t.maximum.toString()} ${d.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${t.origin??"value"}, ${o}${t.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${o}${t.minimum.toString()} ${d.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${t.origin}, ${o}${t.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=t;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${a[o.format]??t.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${t.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${t.keys.length>1?"s":""}: ${P(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${t.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function ff(){return{localeError:N1()}}c(ff,"default");var C1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${t.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${p} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${p} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return t.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${A(t.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${P(t.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} ${d.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${t.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${t.maximum.toString()} \u0648\u064A`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} ${d.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${t.origin} \u0628\u0627\u06CC\u062F ${o}${t.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${a[o.format]??t.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${t.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${t.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${P(t.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${t.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 ${t.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function pf(){return{localeError:C1()}}c(pf,"default");var R1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${t.expected}, otrzymano ${p}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${p}`}case"invalid_value":return t.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${A(t.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${t.maximum.toString()} ${d.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${t.minimum.toString()} ${d.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${t.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${a[o.format]??t.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${P(t.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${t.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${t.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function mf(){return{localeError:R1()}}c(mf,"default");var Z1=c(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"n\xFAmero",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Tipo inv\xE1lido: esperado instanceof ${t.expected}, recebido ${p}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${p}`}case"invalid_value":return t.values.length===1?`Entrada inv\xE1lida: esperado ${A(t.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${o}${t.maximum.toString()} ${d.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Muito pequeno: esperado que ${t.origin} tivesse ${o}${t.minimum.toString()} ${d.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${a[o.format]??t.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${P(t.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${t.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${t.origin}`;default:return"Campo inv\xE1lido"}}},"error");function gf(){return{localeError:Z1()}}c(gf,"default");var L1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={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 t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${p}`}case"invalid_value":return t.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${A(t.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} ${d.verb} ${o}${t.maximum.toString()} ${d.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${t.origin??"valoarea"} s\u0103 fie ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Prea mic: a\u0219teptat ca ${t.origin} ${d.verb} ${o}${t.minimum.toString()} ${d.unit}`:`Prea mic: a\u0219teptat ca ${t.origin} s\u0103 fie ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${a[o.format]??t.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${P(t.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${t.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${t.origin}`;default:return"Intrare invalid\u0103"}}},"error");function vf(){return{localeError:L1()}}c(vf,"default");function G_(e,n,a,s){let t=Math.abs(e),o=t%10,d=t%100;return d>=11&&d<=19?s:o===1?n:o>=2&&o<=4?a:s}c(G_,"getRussianPlural");var V1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${t.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${p}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${p}`}case"invalid_value":return t.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${A(t.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 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);if(d){let p=Number(t.maximum),_=G_(p,d.unit.one,d.unit.few,d.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${t.maximum.toString()} ${_}`}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 ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);if(d){let p=Number(t.minimum),_=G_(p,d.unit.one,d.unit.few,d.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${t.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${t.minimum.toString()} ${_}`}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 ${t.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${t.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0438":""}: ${P(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${t.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 ${t.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function hf(){return{localeError:V1()}}c(hf,"default");var F1=c(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${t.expected}, prejeto ${p}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${p}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${A(t.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} imelo ${o}${t.maximum.toString()} ${d.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${t.origin??"vrednost"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Premajhno: pri\u010Dakovano, da bo ${t.origin} imelo ${o}${t.minimum.toString()} ${d.unit}`:`Premajhno: pri\u010Dakovano, da bo ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${a[o.format]??t.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${P(t.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}},"error");function _f(){return{localeError:F1()}}c(_f,"default");var M1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${t.expected}, fick ${p}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${p}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${A(t.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`F\xF6r stor(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.maximum.toString()} ${d.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${t.origin??"v\xE4rdet"} att ha ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.minimum.toString()} ${d.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${t.origin??"v\xE4rdet"} att ha ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${a[o.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${P(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${t.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function yf(){return{localeError:M1()}}c(yf,"default");var B1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.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 ${t.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${p}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${p}`}case"invalid_value":return t.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 ${A(t.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 ${P(t.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${t.maximum.toString()} ${d.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${t.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${o}${t.minimum.toString()} ${d.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${t.origin} ${o}${t.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.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 ${a[o.format]??t.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${t.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${t.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${P(t.keys,", ")}`;case"invalid_key":return`${t.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`${t.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"}}},"error");function bf(){return{localeError:B1()}}c(bf,"default");var J1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={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 t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.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 ${t.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${p}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${p}`}case"invalid_value":return t.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${A(t.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 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",d=n(t.origin);return d?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.maximum.toString()} ${d.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",d=n(t.origin);return d?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.minimum.toString()} ${d.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${t.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.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 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${a[o.format]??t.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 ${t.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: ${P(t.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${t.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 ${t.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function $f(){return{localeError:J1()}}c($f,"default");var W1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${t.expected}, al\u0131nan ${p}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${p}`}case"invalid_value":return t.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${A(t.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${o}${t.maximum.toString()} ${d.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${t.origin??"de\u011Fer"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${o}${t.minimum.toString()} ${d.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${a[o.format]??t.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${t.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${t.keys.length>1?"lar":""}: ${P(t.keys,", ")}`;case"invalid_key":return`${t.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${t.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function xf(){return{localeError:W1()}}c(xf,"default");var G1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.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 ${t.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${p}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${p}`}case"invalid_value":return t.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 ${A(t.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 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${d.verb} ${o}${t.maximum.toString()} ${d.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} ${d.verb} ${o}${t.minimum.toString()} ${d.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${t.origin} \u0431\u0443\u0434\u0435 ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.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 "${o.suffix}"`:o.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 "${o.includes}"`:o.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 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${t.keys.length>1?"\u0456":""}: ${P(t.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${t.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 ${t.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function Oi(){return{localeError:G1()}}c(Oi,"default");function kf(){return Oi()}c(kf,"default");var K1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${t.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${p} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${p} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return t.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${A(t.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${P(t.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${t.maximum.toString()} ${d.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${t.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${t.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u06D2 ${o}${t.minimum.toString()} ${d.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${t.origin} \u06A9\u0627 ${o}${t.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${a[o.format]??t.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${t.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${t.keys.length>1?"\u0632":""}: ${P(t.keys,"\u060C ")}`;case"invalid_key":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${t.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function wf(){return{localeError:K1()}}c(wf,"default");var q1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${p}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${p}`}case"invalid_value":return t.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${A(t.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Juda katta: kutilgan ${t.origin??"qiymat"} ${o}${t.maximum.toString()} ${d.unit} ${d.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Juda kichik: kutilgan ${t.origin} ${o}${t.minimum.toString()} ${d.unit} ${d.verb}`:`Juda kichik: kutilgan ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${a[o.format]??t.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${t.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${t.keys.length>1?"lar":""}: ${P(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${t.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function If(){return{localeError:q1()}}c(If,"default");var H1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${t.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${p}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${p}`}case"invalid_value":return t.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${A(t.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${d.verb} ${o}${t.maximum.toString()} ${d.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${t.origin??"gi\xE1 tr\u1ECB"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${d.verb} ${o}${t.minimum.toString()} ${d.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${P(t.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${t.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 ${t.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function Sf(){return{localeError:H1()}}c(Sf,"default");var X1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${t.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${p}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${p}`}case"invalid_value":return t.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${A(t.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${o}${t.maximum.toString()} ${d.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${t.origin??"\u503C"} ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${o}${t.minimum.toString()} ${d.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${a[o.format]??t.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${t.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${P(t.keys,", ")}`;case"invalid_key":return`${t.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${t.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function zf(){return{localeError:X1()}}c(zf,"default");var Y1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${t.expected}\uFF0C\u4F46\u6536\u5230 ${p}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${p}`}case"invalid_value":return t.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${A(t.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${o}${t.maximum.toString()} ${d.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${t.origin??"\u503C"} \u61C9\u70BA ${o}${t.maximum.toString()}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${o}${t.minimum.toString()} ${d.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${t.origin} \u61C9\u70BA ${o}${t.minimum.toString()}`}case"invalid_format":{let o=t;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${a[o.format]??t.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${t.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${t.keys.length>1?"\u5011":""}\uFF1A${P(t.keys,"\u3001")}`;case"invalid_key":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${t.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Pf(){return{localeError:Y1()}}c(Pf,"default");var Q1=c(()=>{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 n(t){return e[t]??null}c(n,"getSizing");let a={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"},s={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return t=>{switch(t.code){case"invalid_type":{let o=s[t.expected]??t.expected,d=N(t.input),p=s[d]??d;return/^[A-Z]/.test(t.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${t.expected}, \xE0m\u1ECD\u0300 a r\xED ${p}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${p}`}case"invalid_value":return t.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${A(t.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${P(t.values,"|")}`;case"too_big":{let o=t.inclusive?"<=":"<",d=n(t.origin);return d?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin??"iye"} ${d.verb} ${o}${t.maximum} ${d.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${t.maximum}`}case"too_small":{let o=t.inclusive?">=":">",d=n(t.origin);return d?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${t.origin} ${d.verb} ${o}${t.minimum} ${d.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${t.minimum}`}case"invalid_format":{let o=t;return o.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 "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${a[o.format]??t.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 ${t.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${P(t.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${t.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 ${t.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function jf(){return{localeError:Q1()}}c(jf,"default");var K_,Ef=Symbol("ZodOutput"),Uf=Symbol("ZodInput"),Df=class Df{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...a){let s=a[0];return this._map.set(n,s),s&&typeof s=="object"&&"id"in s&&this._idmap.set(s.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){let a=this._map.get(n);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(n),this}get(n){let a=n._zod.parent;if(a){let s={...this.get(a)??{}};delete s.id;let t={...s,...this._map.get(n)};return Object.keys(t).length?t:void 0}return this._map.get(n)}has(n){return this._map.has(n)}};c(Df,"$ZodRegistry");var xa=Df;function ka(){return new xa}c(ka,"registry");(K_=globalThis).__zod_globalRegistry??(K_.__zod_globalRegistry=ka());var Oe=globalThis.__zod_globalRegistry;function Tf(e,n){return new e({type:"string",...R(n)})}c(Tf,"_string");function Of(e,n){return new e({type:"string",coerce:!0,...R(n)})}c(Of,"_coercedString");function wa(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...R(n)})}c(wa,"_email");function Ni(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...R(n)})}c(Ni,"_guid");function Ia(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...R(n)})}c(Ia,"_uuid");function Sa(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...R(n)})}c(Sa,"_uuidv4");function za(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...R(n)})}c(za,"_uuidv6");function Pa(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...R(n)})}c(Pa,"_uuidv7");function Ci(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...R(n)})}c(Ci,"_url");function ja(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...R(n)})}c(ja,"_emoji");function Ea(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...R(n)})}c(Ea,"_nanoid");function Ua(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...R(n)})}c(Ua,"_cuid");function Da(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...R(n)})}c(Da,"_cuid2");function Ta(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...R(n)})}c(Ta,"_ulid");function Oa(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...R(n)})}c(Oa,"_xid");function Aa(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...R(n)})}c(Aa,"_ksuid");function Na(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...R(n)})}c(Na,"_ipv4");function Ca(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...R(n)})}c(Ca,"_ipv6");function Af(e,n){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...R(n)})}c(Af,"_mac");function Ra(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...R(n)})}c(Ra,"_cidrv4");function Za(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...R(n)})}c(Za,"_cidrv6");function La(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...R(n)})}c(La,"_base64");function Va(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...R(n)})}c(Va,"_base64url");function Fa(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...R(n)})}c(Fa,"_e164");function Ma(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...R(n)})}c(Ma,"_jwt");var Nf={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Cf(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...R(n)})}c(Cf,"_isoDateTime");function Rf(e,n){return new e({type:"string",format:"date",check:"string_format",...R(n)})}c(Rf,"_isoDate");function Zf(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...R(n)})}c(Zf,"_isoTime");function Lf(e,n){return new e({type:"string",format:"duration",check:"string_format",...R(n)})}c(Lf,"_isoDuration");function Vf(e,n){return new e({type:"number",checks:[],...R(n)})}c(Vf,"_number");function Ff(e,n){return new e({type:"number",coerce:!0,checks:[],...R(n)})}c(Ff,"_coercedNumber");function Mf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...R(n)})}c(Mf,"_int");function Bf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...R(n)})}c(Bf,"_float32");function Jf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...R(n)})}c(Jf,"_float64");function Wf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...R(n)})}c(Wf,"_int32");function Gf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...R(n)})}c(Gf,"_uint32");function Kf(e,n){return new e({type:"boolean",...R(n)})}c(Kf,"_boolean");function qf(e,n){return new e({type:"boolean",coerce:!0,...R(n)})}c(qf,"_coercedBoolean");function Hf(e,n){return new e({type:"bigint",...R(n)})}c(Hf,"_bigint");function Xf(e,n){return new e({type:"bigint",coerce:!0,...R(n)})}c(Xf,"_coercedBigint");function Yf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...R(n)})}c(Yf,"_int64");function Qf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...R(n)})}c(Qf,"_uint64");function ep(e,n){return new e({type:"symbol",...R(n)})}c(ep,"_symbol");function tp(e,n){return new e({type:"undefined",...R(n)})}c(tp,"_undefined");function rp(e,n){return new e({type:"null",...R(n)})}c(rp,"_null");function np(e){return new e({type:"any"})}c(np,"_any");function ip(e){return new e({type:"unknown"})}c(ip,"_unknown");function op(e,n){return new e({type:"never",...R(n)})}c(op,"_never");function ap(e,n){return new e({type:"void",...R(n)})}c(ap,"_void");function up(e,n){return new e({type:"date",...R(n)})}c(up,"_date");function cp(e,n){return new e({type:"date",coerce:!0,...R(n)})}c(cp,"_coercedDate");function sp(e,n){return new e({type:"nan",...R(n)})}c(sp,"_nan");function At(e,n){return new da({check:"less_than",...R(n),value:e,inclusive:!1})}c(At,"_lt");function ut(e,n){return new da({check:"less_than",...R(n),value:e,inclusive:!0})}c(ut,"_lte");function Nt(e,n){return new fa({check:"greater_than",...R(n),value:e,inclusive:!1})}c(Nt,"_gt");function Be(e,n){return new fa({check:"greater_than",...R(n),value:e,inclusive:!0})}c(Be,"_gte");function Ba(e){return Nt(0,e)}c(Ba,"_positive");function Ja(e){return At(0,e)}c(Ja,"_negative");function Wa(e){return ut(0,e)}c(Wa,"_nonpositive");function Ga(e){return Be(0,e)}c(Ga,"_nonnegative");function gr(e,n){return new il({check:"multiple_of",...R(n),value:e})}c(gr,"_multipleOf");function vr(e,n){return new ul({check:"max_size",...R(n),maximum:e})}c(vr,"_maxSize");function Ct(e,n){return new cl({check:"min_size",...R(n),minimum:e})}c(Ct,"_minSize");function Cr(e,n){return new sl({check:"size_equals",...R(n),size:e})}c(Cr,"_size");function Rr(e,n){return new ll({check:"max_length",...R(n),maximum:e})}c(Rr,"_maxLength");function Xt(e,n){return new dl({check:"min_length",...R(n),minimum:e})}c(Xt,"_minLength");function Zr(e,n){return new fl({check:"length_equals",...R(n),length:e})}c(Zr,"_length");function _n(e,n){return new pl({check:"string_format",format:"regex",...R(n),pattern:e})}c(_n,"_regex");function yn(e){return new ml({check:"string_format",format:"lowercase",...R(e)})}c(yn,"_lowercase");function bn(e){return new gl({check:"string_format",format:"uppercase",...R(e)})}c(bn,"_uppercase");function $n(e,n){return new vl({check:"string_format",format:"includes",...R(n),includes:e})}c($n,"_includes");function xn(e,n){return new hl({check:"string_format",format:"starts_with",...R(n),prefix:e})}c(xn,"_startsWith");function kn(e,n){return new _l({check:"string_format",format:"ends_with",...R(n),suffix:e})}c(kn,"_endsWith");function Ka(e,n,a){return new yl({check:"property",property:e,schema:n,...R(a)})}c(Ka,"_property");function wn(e,n){return new bl({check:"mime_type",mime:e,...R(n)})}c(wn,"_mime");function zt(e){return new $l({check:"overwrite",tx:e})}c(zt,"_overwrite");function In(e){return zt(n=>n.normalize(e))}c(In,"_normalize");function Sn(){return zt(e=>e.trim())}c(Sn,"_trim");function zn(){return zt(e=>e.toLowerCase())}c(zn,"_toLowerCase");function Pn(){return zt(e=>e.toUpperCase())}c(Pn,"_toUpperCase");function jn(){return zt(e=>vs(e))}c(jn,"_slugify");function lp(e,n,a){return new e({type:"array",element:n,...R(a)})}c(lp,"_array");function tj(e,n,a){return new e({type:"union",options:n,...R(a)})}c(tj,"_union");function rj(e,n,a){return new e({type:"union",options:n,inclusive:!1,...R(a)})}c(rj,"_xor");function nj(e,n,a,s){return new e({type:"union",options:a,discriminator:n,...R(s)})}c(nj,"_discriminatedUnion");function ij(e,n,a){return new e({type:"intersection",left:n,right:a})}c(ij,"_intersection");function oj(e,n,a,s){let t=a instanceof X,o=t?s:a,d=t?a:null;return new e({type:"tuple",items:n,rest:d,...R(o)})}c(oj,"_tuple");function aj(e,n,a,s){return new e({type:"record",keyType:n,valueType:a,...R(s)})}c(aj,"_record");function uj(e,n,a,s){return new e({type:"map",keyType:n,valueType:a,...R(s)})}c(uj,"_map");function cj(e,n,a){return new e({type:"set",valueType:n,...R(a)})}c(cj,"_set");function sj(e,n,a){let s=Array.isArray(n)?Object.fromEntries(n.map(t=>[t,t])):n;return new e({type:"enum",entries:s,...R(a)})}c(sj,"_enum");function lj(e,n,a){return new e({type:"enum",entries:n,...R(a)})}c(lj,"_nativeEnum");function dj(e,n,a){return new e({type:"literal",values:Array.isArray(n)?n:[n],...R(a)})}c(dj,"_literal");function dp(e,n){return new e({type:"file",...R(n)})}c(dp,"_file");function fj(e,n){return new e({type:"transform",transform:n})}c(fj,"_transform");function pj(e,n){return new e({type:"optional",innerType:n})}c(pj,"_optional");function mj(e,n){return new e({type:"nullable",innerType:n})}c(mj,"_nullable");function gj(e,n,a){return new e({type:"default",innerType:n,get defaultValue(){return typeof a=="function"?a():_s(a)}})}c(gj,"_default");function vj(e,n,a){return new e({type:"nonoptional",innerType:n,...R(a)})}c(vj,"_nonoptional");function hj(e,n){return new e({type:"success",innerType:n})}c(hj,"_success");function _j(e,n,a){return new e({type:"catch",innerType:n,catchValue:typeof a=="function"?a:()=>a})}c(_j,"_catch");function yj(e,n,a){return new e({type:"pipe",in:n,out:a})}c(yj,"_pipe");function bj(e,n){return new e({type:"readonly",innerType:n})}c(bj,"_readonly");function $j(e,n,a){return new e({type:"template_literal",parts:n,...R(a)})}c($j,"_templateLiteral");function xj(e,n){return new e({type:"lazy",getter:n})}c(xj,"_lazy");function kj(e,n){return new e({type:"promise",innerType:n})}c(kj,"_promise");function fp(e,n,a){let s=R(a);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:n,...s})}c(fp,"_custom");function pp(e,n,a){return new e({type:"custom",check:"custom",fn:n,...R(a)})}c(pp,"_refine");function mp(e,n){let a=q_(s=>(s.addIssue=t=>{if(typeof t=="string")s.issues.push(dn(t,s.value,a._zod.def));else{let o=t;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=s.value),o.inst??(o.inst=a),o.continue??(o.continue=!a._zod.def.abort),s.issues.push(dn(o))}},e(s.value,s)),n);return a}c(mp,"_superRefine");function q_(e,n){let a=new ye({check:"custom",...R(n)});return a._zod.check=e,a}c(q_,"_check");function gp(e){let n=new ye({check:"describe"});return n._zod.onattach=[a=>{let s=Oe.get(a)??{};Oe.add(a,{...s,description:e})}],n._zod.check=()=>{},n}c(gp,"describe");function vp(e){let n=new ye({check:"meta"});return n._zod.onattach=[a=>{let s=Oe.get(a)??{};Oe.add(a,{...s,...e})}],n._zod.check=()=>{},n}c(vp,"meta");function hp(e,n){let a=R(n),s=a.truthy??["true","1","yes","on","y","enabled"],t=a.falsy??["false","0","no","off","n","disabled"];a.case!=="sensitive"&&(s=s.map(I=>typeof I=="string"?I.toLowerCase():I),t=t.map(I=>typeof I=="string"?I.toLowerCase():I));let o=new Set(s),d=new Set(t),p=e.Codec??Ei,_=e.Boolean??Pi,h=e.String??Nr,x=new h({type:"string",error:a.error}),z=new _({type:"boolean",error:a.error}),b=new p({type:"pipe",in:x,out:z,transform:c(((I,T)=>{let Z=I;return a.case!=="sensitive"&&(Z=Z.toLowerCase()),o.has(Z)?!0:d.has(Z)?!1:(T.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...d],input:T.value,inst:b,continue:!1}),{})}),"transform"),reverseTransform:c(((I,T)=>I===!0?s[0]||"true":t[0]||"false"),"reverseTransform"),error:a.error});return b}c(hp,"_stringbool");function En(e,n,a,s={}){let t=R(s),o={...R(s),check:"string_format",type:"string",format:n,fn:typeof a=="function"?a:p=>a.test(p),...t};return a instanceof RegExp&&(o.pattern=a),new e(o)}c(En,"_stringFormat");function hr(e){let n=e?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Oe,target:n,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}c(hr,"initializeContext");function me(e,n,a={path:[],schemaPath:[]}){var s;let t=e._zod.def,o=n.seen.get(e);if(o)return o.count++,a.schemaPath.includes(e)&&(o.cycle=a.path),o.schema;let d={schema:{},count:1,cycle:void 0,path:a.path};n.seen.set(e,d);let p=e._zod.toJSONSchema?.();if(p)d.schema=p;else{let x={...a,schemaPath:[...a.schemaPath,e],path:a.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,d.schema,x);else{let b=d.schema,I=n.processors[t.type];if(!I)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);I(e,n,b,x)}let z=e._zod.parent;z&&(d.ref||(d.ref=z),me(z,n,x),n.seen.get(z).isParent=!0)}let _=n.metadataRegistry.get(e);return _&&Object.assign(d.schema,_),n.io==="input"&&Je(e)&&(delete d.schema.examples,delete d.schema.default),n.io==="input"&&"_prefault"in d.schema&&((s=d.schema).default??(s.default=d.schema._prefault)),delete d.schema._prefault,n.seen.get(e).schema}c(me,"process");function _r(e,n){let a=e.seen.get(n);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");let s=new Map;for(let d of e.seen.entries()){let p=e.metadataRegistry.get(d[0])?.id;if(p){let _=s.get(p);if(_&&_!==d[0])throw new Error(`Duplicate schema id "${p}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);s.set(p,d[0])}}let t=c(d=>{let p=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let z=e.external.registry.get(d[0])?.id,b=e.external.uri??(T=>T);if(z)return{ref:b(z)};let I=d[1].defId??d[1].schema.id??`schema${e.counter++}`;return d[1].defId=I,{defId:I,ref:`${b("__shared")}#/${p}/${I}`}}if(d[1]===a)return{ref:"#"};let h=`#/${p}/`,x=d[1].schema.id??`__schema${e.counter++}`;return{defId:x,ref:h+x}},"makeURI"),o=c(d=>{if(d[1].schema.$ref)return;let p=d[1],{ref:_,defId:h}=t(d);p.def={...p.schema},h&&(p.defId=h);let x=p.schema;for(let z in x)delete x[z];x.$ref=_},"extractToDef");if(e.cycles==="throw")for(let d of e.seen.entries()){let p=d[1];if(p.cycle)throw new Error(`Cycle detected: #/${p.cycle?.join("/")}/<root>
|
|
84
84
|
|
|
85
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of e.seen.entries()){let p=d[1];if(n===d[0]){o(d);continue}if(e.external){let h=e.external.registry.get(d[0])?.id;if(n!==d[0]&&h){o(d);continue}}if(e.metadataRegistry.get(d[0])?.id){o(d);continue}if(p.cycle){o(d);continue}if(p.count>1&&e.reused==="ref"){o(d);continue}}}c(_r,"extractDefs");function yr(e,n){let a=e.seen.get(n);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");let s=c(p=>{let _=e.seen.get(p);if(_.ref===null)return;let h=_.def??_.schema,x={...h},z=_.ref;if(_.ref=null,z){s(z);let I=e.seen.get(z),T=I.schema;if(T.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(T)):Object.assign(h,T),Object.assign(h,x),p._zod.parent===z)for(let L in h)L==="$ref"||L==="allOf"||L in x||delete h[L];if(T.$ref&&I.def)for(let L in h)L==="$ref"||L==="allOf"||L in I.def&&JSON.stringify(h[L])===JSON.stringify(I.def[L])&&delete h[L]}let b=p._zod.parent;if(b&&b!==z){s(b);let I=e.seen.get(b);if(I?.schema.$ref&&(h.$ref=I.schema.$ref,I.def))for(let T in h)T==="$ref"||T==="allOf"||T in I.def&&JSON.stringify(h[T])===JSON.stringify(I.def[T])&&delete h[T]}e.override({zodSchema:p,jsonSchema:h,path:_.path??[]})},"flattenRef");for(let p of[...e.seen.entries()].reverse())s(p[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let p=e.external.registry.get(n)?.id;if(!p)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(p)}Object.assign(t,a.def??a.schema);let o=e.metadataRegistry.get(n)?.id;o!==void 0&&t.id===o&&delete t.id;let d=e.external?.defs??{};for(let p of e.seen.entries()){let _=p[1];_.def&&_.defId&&(_.def.id===_.defId&&delete _.def.id,d[_.defId]=_.def)}e.external||Object.keys(d).length>0&&(e.target==="draft-2020-12"?t.$defs=d:t.definitions=d);try{let p=JSON.parse(JSON.stringify(t));return Object.defineProperty(p,"~standard",{value:{...n["~standard"],jsonSchema:{input:Un(n,"input",e.processors),output:Un(n,"output",e.processors)}},enumerable:!1,writable:!1}),p}catch{throw new Error("Error converting schema to JSON.")}}c(yr,"finalize");function Je(e,n){let a=n??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);let s=e._zod.def;if(s.type==="transform")return!0;if(s.type==="array")return Je(s.element,a);if(s.type==="set")return Je(s.valueType,a);if(s.type==="lazy")return Je(s.getter(),a);if(s.type==="promise"||s.type==="optional"||s.type==="nonoptional"||s.type==="nullable"||s.type==="readonly"||s.type==="default"||s.type==="prefault")return Je(s.innerType,a);if(s.type==="intersection")return Je(s.left,a)||Je(s.right,a);if(s.type==="record"||s.type==="map")return Je(s.keyType,a)||Je(s.valueType,a);if(s.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Je(s.in,a)||Je(s.out,a);if(s.type==="object"){for(let t in s.shape)if(Je(s.shape[t],a))return!0;return!1}if(s.type==="union"){for(let t of s.options)if(Je(t,a))return!0;return!1}if(s.type==="tuple"){for(let t of s.items)if(Je(t,a))return!0;return!!(s.rest&&Je(s.rest,a))}return!1}c(Je,"isTransforming");var _p=c((e,n={})=>a=>{let s=hr({...a,processors:n});return me(e,s),_r(s,e),yr(s,e)},"createToJSONSchemaMethod"),Un=c((e,n,a={})=>s=>{let{libraryOptions:t,target:o}=s??{},d=hr({...t??{},target:o,io:n,processors:a});return me(e,d),_r(d,e),yr(d,e)},"createStandardJSONSchemaMethod");var wj={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},yp=c((e,n,a,s)=>{let t=a;t.type="string";let{minimum:o,maximum:d,format:p,patterns:_,contentEncoding:h}=e._zod.bag;if(typeof o=="number"&&(t.minLength=o),typeof d=="number"&&(t.maxLength=d),p&&(t.format=wj[p]??p,t.format===""&&delete t.format,p==="time"&&delete t.format),h&&(t.contentEncoding=h),_&&_.size>0){let x=[..._];x.length===1?t.pattern=x[0].source:x.length>1&&(t.allOf=[...x.map(z=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:z.source}))])}},"stringProcessor"),bp=c((e,n,a,s)=>{let t=a,{minimum:o,maximum:d,format:p,multipleOf:_,exclusiveMaximum:h,exclusiveMinimum:x}=e._zod.bag;typeof p=="string"&&p.includes("int")?t.type="integer":t.type="number";let z=typeof x=="number"&&x>=(o??Number.NEGATIVE_INFINITY),b=typeof h=="number"&&h<=(d??Number.POSITIVE_INFINITY),I=n.target==="draft-04"||n.target==="openapi-3.0";z?I?(t.minimum=x,t.exclusiveMinimum=!0):t.exclusiveMinimum=x:typeof o=="number"&&(t.minimum=o),b?I?(t.maximum=h,t.exclusiveMaximum=!0):t.exclusiveMaximum=h:typeof d=="number"&&(t.maximum=d),typeof _=="number"&&(t.multipleOf=_)},"numberProcessor"),$p=c((e,n,a,s)=>{a.type="boolean"},"booleanProcessor"),xp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),kp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),wp=c((e,n,a,s)=>{n.target==="openapi-3.0"?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},"nullProcessor"),Ip=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),Sp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),zp=c((e,n,a,s)=>{a.not={}},"neverProcessor"),Pp=c((e,n,a,s)=>{},"anyProcessor"),jp=c((e,n,a,s)=>{},"unknownProcessor"),Ep=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Up=c((e,n,a,s)=>{let t=e._zod.def,o=hi(t.entries);o.every(d=>typeof d=="number")&&(a.type="number"),o.every(d=>typeof d=="string")&&(a.type="string"),a.enum=o},"enumProcessor"),Dp=c((e,n,a,s)=>{let t=e._zod.def,o=[];for(let d of t.values)if(d===void 0){if(n.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof d=="bigint"){if(n.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(d))}else o.push(d);if(o.length!==0)if(o.length===1){let d=o[0];a.type=d===null?"null":typeof d,n.target==="draft-04"||n.target==="openapi-3.0"?a.enum=[d]:a.const=d}else o.every(d=>typeof d=="number")&&(a.type="number"),o.every(d=>typeof d=="string")&&(a.type="string"),o.every(d=>typeof d=="boolean")&&(a.type="boolean"),o.every(d=>d===null)&&(a.type="null"),a.enum=o},"literalProcessor"),Tp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Op=c((e,n,a,s)=>{let t=a,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=o.source},"templateLiteralProcessor"),Ap=c((e,n,a,s)=>{let t=a,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:d,maximum:p,mime:_}=e._zod.bag;d!==void 0&&(o.minLength=d),p!==void 0&&(o.maxLength=p),_?_.length===1?(o.contentMediaType=_[0],Object.assign(t,o)):(Object.assign(t,o),t.anyOf=_.map(h=>({contentMediaType:h}))):Object.assign(t,o)},"fileProcessor"),Np=c((e,n,a,s)=>{a.type="boolean"},"successProcessor"),Cp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),Rp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),Zp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),Lp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),Vp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),Fp=c((e,n,a,s)=>{let t=a,o=e._zod.def,{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(t.minItems=d),typeof p=="number"&&(t.maxItems=p),t.type="array",t.items=me(o.element,n,{...s,path:[...s.path,"items"]})},"arrayProcessor"),Mp=c((e,n,a,s)=>{let t=a,o=e._zod.def;t.type="object",t.properties={};let d=o.shape;for(let h in d)t.properties[h]=me(d[h],n,{...s,path:[...s.path,"properties",h]});let p=new Set(Object.keys(d)),_=new Set([...p].filter(h=>{let x=o.shape[h]._zod;return n.io==="input"?x.optin===void 0:x.optout===void 0}));_.size>0&&(t.required=Array.from(_)),o.catchall?._zod.def.type==="never"?t.additionalProperties=!1:o.catchall?o.catchall&&(t.additionalProperties=me(o.catchall,n,{...s,path:[...s.path,"additionalProperties"]})):n.io==="output"&&(t.additionalProperties=!1)},"objectProcessor"),Ha=c((e,n,a,s)=>{let t=e._zod.def,o=t.inclusive===!1,d=t.options.map((p,_)=>me(p,n,{...s,path:[...s.path,o?"oneOf":"anyOf",_]}));o?a.oneOf=d:a.anyOf=d},"unionProcessor"),Bp=c((e,n,a,s)=>{let t=e._zod.def,o=me(t.left,n,{...s,path:[...s.path,"allOf",0]}),d=me(t.right,n,{...s,path:[...s.path,"allOf",1]}),p=c(h=>"allOf"in h&&Object.keys(h).length===1,"isSimpleIntersection"),_=[...p(o)?o.allOf:[o],...p(d)?d.allOf:[d]];a.allOf=_},"intersectionProcessor"),Jp=c((e,n,a,s)=>{let t=a,o=e._zod.def;t.type="array";let d=n.target==="draft-2020-12"?"prefixItems":"items",p=n.target==="draft-2020-12"||n.target==="openapi-3.0"?"items":"additionalItems",_=o.items.map((b,I)=>me(b,n,{...s,path:[...s.path,d,I]})),h=o.rest?me(o.rest,n,{...s,path:[...s.path,p,...n.target==="openapi-3.0"?[o.items.length]:[]]}):null;n.target==="draft-2020-12"?(t.prefixItems=_,h&&(t.items=h)):n.target==="openapi-3.0"?(t.items={anyOf:_},h&&t.items.anyOf.push(h),t.minItems=_.length,h||(t.maxItems=_.length)):(t.items=_,h&&(t.additionalItems=h));let{minimum:x,maximum:z}=e._zod.bag;typeof x=="number"&&(t.minItems=x),typeof z=="number"&&(t.maxItems=z)},"tupleProcessor"),Wp=c((e,n,a,s)=>{let t=a,o=e._zod.def;t.type="object";let d=o.keyType,_=d._zod.bag?.patterns;if(o.mode==="loose"&&_&&_.size>0){let x=me(o.valueType,n,{...s,path:[...s.path,"patternProperties","*"]});t.patternProperties={};for(let z of _)t.patternProperties[z.source]=x}else(n.target==="draft-07"||n.target==="draft-2020-12")&&(t.propertyNames=me(o.keyType,n,{...s,path:[...s.path,"propertyNames"]})),t.additionalProperties=me(o.valueType,n,{...s,path:[...s.path,"additionalProperties"]});let h=d._zod.values;if(h){let x=[...h].filter(z=>typeof z=="string"||typeof z=="number");x.length>0&&(t.required=x)}},"recordProcessor"),Gp=c((e,n,a,s)=>{let t=e._zod.def,o=me(t.innerType,n,s),d=n.seen.get(e);n.target==="openapi-3.0"?(d.ref=t.innerType,a.nullable=!0):a.anyOf=[o,{type:"null"}]},"nullableProcessor"),Kp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType},"nonoptionalProcessor"),qp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType,a.default=JSON.parse(JSON.stringify(t.defaultValue))},"defaultProcessor"),Hp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType,n.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},"prefaultProcessor"),Xp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType;let d;try{d=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=d},"catchProcessor"),Yp=c((e,n,a,s)=>{let t=e._zod.def,o=t.in._zod.traits.has("$ZodTransform"),d=n.io==="input"?o?t.out:t.in:t.out;me(d,n,s);let p=n.seen.get(e);p.ref=d},"pipeProcessor"),Qp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType,a.readOnly=!0},"readonlyProcessor"),em=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType},"promiseProcessor"),Xa=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType},"optionalProcessor"),tm=c((e,n,a,s)=>{let t=e._zod.innerType;me(t,n,s);let o=n.seen.get(e);o.ref=t},"lazyProcessor"),qa={string:yp,number:bp,boolean:$p,bigint:xp,symbol:kp,null:wp,undefined:Ip,void:Sp,never:zp,any:Pp,unknown:jp,date:Ep,enum:Up,literal:Dp,nan:Tp,template_literal:Op,file:Ap,success:Np,custom:Cp,function:Rp,transform:Zp,map:Lp,set:Vp,array:Fp,object:Mp,union:Ha,intersection:Bp,tuple:Jp,record:Wp,nullable:Gp,nonoptional:Kp,default:qp,prefault:Hp,catch:Xp,pipe:Yp,readonly:Qp,promise:em,optional:Xa,lazy:tm};function Ya(e,n){if("_idmap"in e){let s=e,t=hr({...n,processors:qa}),o={};for(let _ of s._idmap.entries()){let[h,x]=_;me(x,t)}let d={},p={registry:s,uri:n?.uri,defs:o};t.external=p;for(let _ of s._idmap.entries()){let[h,x]=_;_r(t,x),d[h]=yr(t,x)}if(Object.keys(o).length>0){let _=t.target==="draft-2020-12"?"$defs":"definitions";d.__shared={[_]:o}}return{schemas:d}}let a=hr({...n,processors:qa});return me(e,a),_r(a,e),yr(a,e)}c(Ya,"toJSONSchema");var rm=class rm{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(n){this.ctx.counter=n}get seen(){return this.ctx.seen}constructor(n){let a=n?.target??"draft-2020-12";a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),this.ctx=hr({processors:qa,target:a,...n?.metadata&&{metadata:n.metadata},...n?.unrepresentable&&{unrepresentable:n.unrepresentable},...n?.override&&{override:n.override},...n?.io&&{io:n.io}})}process(n,a={path:[],schemaPath:[]}){return me(n,this.ctx,a)}emit(n,a){a&&(a.cycles&&(this.ctx.cycles=a.cycles),a.reused&&(this.ctx.reused=a.reused),a.external&&(this.ctx.external=a.external)),_r(this.ctx,n);let s=yr(this.ctx,n),{"~standard":t,...o}=s;return o}};c(rm,"JSONSchemaGenerator");var Qa=rm;var H_={};var Ri={};Ot(Ri,{ZodAny:()=>Sm,ZodArray:()=>Em,ZodBase64:()=>bu,ZodBase64URL:()=>$u,ZodBigInt:()=>Zn,ZodBigIntFormat:()=>wu,ZodBoolean:()=>Rn,ZodCIDRv4:()=>_u,ZodCIDRv6:()=>yu,ZodCUID:()=>du,ZodCUID2:()=>fu,ZodCatch:()=>Ym,ZodCodec:()=>Hi,ZodCustom:()=>Xi,ZodCustomStringFormat:()=>Nn,ZodDate:()=>Ji,ZodDefault:()=>Wm,ZodDiscriminatedUnion:()=>Dm,ZodE164:()=>xu,ZodEmail:()=>cu,ZodEmoji:()=>su,ZodEnum:()=>On,ZodExactOptional:()=>Mm,ZodFile:()=>Vm,ZodFunction:()=>cg,ZodGUID:()=>Li,ZodIPv4:()=>vu,ZodIPv6:()=>hu,ZodIntersection:()=>Tm,ZodJWT:()=>ku,ZodKSUID:()=>gu,ZodLazy:()=>og,ZodLiteral:()=>Lm,ZodMAC:()=>ym,ZodMap:()=>Rm,ZodNaN:()=>eg,ZodNanoID:()=>lu,ZodNever:()=>Pm,ZodNonOptional:()=>Eu,ZodNull:()=>wm,ZodNullable:()=>Jm,ZodNumber:()=>Cn,ZodNumberFormat:()=>Vr,ZodObject:()=>Gi,ZodOptional:()=>ju,ZodPipe:()=>qi,ZodPrefault:()=>Km,ZodPreprocess:()=>tg,ZodPromise:()=>ug,ZodReadonly:()=>rg,ZodRecord:()=>Tn,ZodSet:()=>Zm,ZodString:()=>An,ZodStringFormat:()=>he,ZodSuccess:()=>Xm,ZodSymbol:()=>xm,ZodTemplateLiteral:()=>ig,ZodTransform:()=>Fm,ZodTuple:()=>Am,ZodType:()=>te,ZodULID:()=>pu,ZodURL:()=>Bi,ZodUUID:()=>Rt,ZodUndefined:()=>km,ZodUnion:()=>Ki,ZodUnknown:()=>zm,ZodVoid:()=>jm,ZodXID:()=>mu,ZodXor:()=>Um,_ZodString:()=>uu,_default:()=>Gm,_function:()=>ob,any:()=>Ny,array:()=>Wi,base64:()=>yy,base64url:()=>by,bigint:()=>Uy,boolean:()=>$m,catch:()=>Qm,check:()=>ab,cidrv4:()=>hy,cidrv6:()=>_y,codec:()=>tb,cuid:()=>sy,cuid2:()=>ly,custom:()=>ub,date:()=>Ry,describe:()=>cb,discriminatedUnion:()=>By,e164:()=>$y,email:()=>Q_,emoji:()=>uy,enum:()=>zu,exactOptional:()=>Bm,file:()=>Xy,float32:()=>zy,float64:()=>Py,function:()=>ob,guid:()=>ey,hash:()=>Sy,hex:()=>Iy,hostname:()=>wy,httpUrl:()=>ay,instanceof:()=>lb,int:()=>ou,int32:()=>jy,int64:()=>Dy,intersection:()=>Om,invertCodec:()=>rb,ipv4:()=>my,ipv6:()=>vy,json:()=>fb,jwt:()=>xy,keyof:()=>Zy,ksuid:()=>py,lazy:()=>ag,literal:()=>Hy,looseObject:()=>Fy,looseRecord:()=>Wy,mac:()=>gy,map:()=>Gy,meta:()=>sb,nan:()=>eb,nanoid:()=>cy,nativeEnum:()=>qy,never:()=>Iu,nonoptional:()=>Hm,null:()=>Im,nullable:()=>Fi,nullish:()=>Yy,number:()=>bm,object:()=>Ly,optional:()=>Vi,partialRecord:()=>Jy,pipe:()=>au,prefault:()=>qm,preprocess:()=>pb,promise:()=>ib,readonly:()=>ng,record:()=>Cm,refine:()=>sg,set:()=>Ky,strictObject:()=>Vy,string:()=>Zi,stringFormat:()=>ky,stringbool:()=>db,success:()=>Qy,superRefine:()=>lg,symbol:()=>Oy,templateLiteral:()=>nb,transform:()=>Pu,tuple:()=>Nm,uint32:()=>Ey,uint64:()=>Ty,ulid:()=>dy,undefined:()=>Ay,union:()=>Su,unknown:()=>Lr,url:()=>oy,uuid:()=>ty,uuidv4:()=>ry,uuidv6:()=>ny,uuidv7:()=>iy,void:()=>Cy,xid:()=>fy,xor:()=>My});var eu={};Ot(eu,{endsWith:()=>kn,gt:()=>Nt,gte:()=>Be,includes:()=>$n,length:()=>Zr,lowercase:()=>yn,lt:()=>At,lte:()=>ut,maxLength:()=>Rr,maxSize:()=>vr,mime:()=>wn,minLength:()=>Xt,minSize:()=>Ct,multipleOf:()=>gr,negative:()=>Ja,nonnegative:()=>Ga,nonpositive:()=>Wa,normalize:()=>In,overwrite:()=>zt,positive:()=>Ba,property:()=>Ka,regex:()=>_n,size:()=>Cr,slugify:()=>jn,startsWith:()=>xn,toLowerCase:()=>zn,toUpperCase:()=>Pn,trim:()=>Sn,uppercase:()=>bn});var Dn={};Ot(Dn,{ZodISODate:()=>ru,ZodISODateTime:()=>tu,ZodISODuration:()=>iu,ZodISOTime:()=>nu,date:()=>im,datetime:()=>nm,duration:()=>am,time:()=>om});var tu=w("ZodISODateTime",(e,n)=>{Nl.init(e,n),he.init(e,n)});function nm(e){return Cf(tu,e)}c(nm,"datetime");var ru=w("ZodISODate",(e,n)=>{Cl.init(e,n),he.init(e,n)});function im(e){return Rf(ru,e)}c(im,"date");var nu=w("ZodISOTime",(e,n)=>{Rl.init(e,n),he.init(e,n)});function om(e){return Zf(nu,e)}c(om,"time");var iu=w("ZodISODuration",(e,n)=>{Zl.init(e,n),he.init(e,n)});function am(e){return Lf(iu,e)}c(am,"duration");var X_=c((e,n)=>{xi.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:c(a=>wi(e,a),"value")},flatten:{value:c(a=>ki(e,a),"value")},addIssue:{value:c(a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,sn,2)},"value")},addIssues:{value:c(a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,sn,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),Sj=w("ZodError",X_),Ye=w("ZodError",X_,{Parent:Error});var um=fn(Ye),cm=pn(Ye),sm=mn(Ye),lm=gn(Ye),dm=ta(Ye),fm=ra(Ye),pm=na(Ye),mm=ia(Ye),gm=oa(Ye),vm=aa(Ye),hm=ua(Ye),_m=ca(Ye);var Y_=new WeakMap;function Mi(e,n,a){let s=Object.getPrototypeOf(e),t=Y_.get(s);if(t||(t=new Set,Y_.set(s,t)),!t.has(n)){t.add(n);for(let o in a){let d=a[o];Object.defineProperty(s,o,{configurable:!0,enumerable:!1,get(){let p=d.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:p}),p},set(p){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:p})}})}}}c(Mi,"_installLazyMethods");var te=w("ZodType",(e,n)=>(X.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:Un(e,"input"),output:Un(e,"output")}}),e.toJSONSchema=_p(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.parse=(a,s)=>um(e,a,s,{callee:e.parse}),e.safeParse=(a,s)=>sm(e,a,s),e.parseAsync=async(a,s)=>cm(e,a,s,{callee:e.parseAsync}),e.safeParseAsync=async(a,s)=>lm(e,a,s),e.spa=e.safeParseAsync,e.encode=(a,s)=>dm(e,a,s),e.decode=(a,s)=>fm(e,a,s),e.encodeAsync=async(a,s)=>pm(e,a,s),e.decodeAsync=async(a,s)=>mm(e,a,s),e.safeEncode=(a,s)=>gm(e,a,s),e.safeDecode=(a,s)=>vm(e,a,s),e.safeEncodeAsync=async(a,s)=>hm(e,a,s),e.safeDecodeAsync=async(a,s)=>_m(e,a,s),Mi(e,"ZodType",{check(...a){let s=this.def;return this.clone(C.mergeDefs(s,{checks:[...s.checks??[],...a.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...a){return this.check(...a)},clone(a,s){return Fe(this,a,s)},brand(){return this},register(a,s){return a.add(this,s),this},refine(a,s){return this.check(sg(a,s))},superRefine(a,s){return this.check(lg(a,s))},overwrite(a){return this.check(zt(a))},optional(){return Vi(this)},exactOptional(){return Bm(this)},nullable(){return Fi(this)},nullish(){return Vi(Fi(this))},nonoptional(a){return Hm(this,a)},array(){return Wi(this)},or(a){return Su([this,a])},and(a){return Om(this,a)},transform(a){return au(this,Pu(a))},default(a){return Gm(this,a)},prefault(a){return qm(this,a)},catch(a){return Qm(this,a)},pipe(a){return au(this,a)},readonly(){return ng(this)},describe(a){let s=this.clone();return Oe.add(s,{description:a}),s},meta(...a){if(a.length===0)return Oe.get(this);let s=this.clone();return Oe.add(s,a[0]),s},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(a){return a(this)}}),Object.defineProperty(e,"description",{get(){return Oe.get(e)?.description},configurable:!0}),e)),uu=w("_ZodString",(e,n)=>{Nr.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>yp(e,s,t,o);let a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,Mi(e,"_ZodString",{regex(...s){return this.check(_n(...s))},includes(...s){return this.check($n(...s))},startsWith(...s){return this.check(xn(...s))},endsWith(...s){return this.check(kn(...s))},min(...s){return this.check(Xt(...s))},max(...s){return this.check(Rr(...s))},length(...s){return this.check(Zr(...s))},nonempty(...s){return this.check(Xt(1,...s))},lowercase(s){return this.check(yn(s))},uppercase(s){return this.check(bn(s))},trim(){return this.check(Sn())},normalize(...s){return this.check(In(...s))},toLowerCase(){return this.check(zn())},toUpperCase(){return this.check(Pn())},slugify(){return this.check(jn())}})}),An=w("ZodString",(e,n)=>{Nr.init(e,n),uu.init(e,n),e.email=a=>e.check(wa(cu,a)),e.url=a=>e.check(Ci(Bi,a)),e.jwt=a=>e.check(Ma(ku,a)),e.emoji=a=>e.check(ja(su,a)),e.guid=a=>e.check(Ni(Li,a)),e.uuid=a=>e.check(Ia(Rt,a)),e.uuidv4=a=>e.check(Sa(Rt,a)),e.uuidv6=a=>e.check(za(Rt,a)),e.uuidv7=a=>e.check(Pa(Rt,a)),e.nanoid=a=>e.check(Ea(lu,a)),e.guid=a=>e.check(Ni(Li,a)),e.cuid=a=>e.check(Ua(du,a)),e.cuid2=a=>e.check(Da(fu,a)),e.ulid=a=>e.check(Ta(pu,a)),e.base64=a=>e.check(La(bu,a)),e.base64url=a=>e.check(Va($u,a)),e.xid=a=>e.check(Oa(mu,a)),e.ksuid=a=>e.check(Aa(gu,a)),e.ipv4=a=>e.check(Na(vu,a)),e.ipv6=a=>e.check(Ca(hu,a)),e.cidrv4=a=>e.check(Ra(_u,a)),e.cidrv6=a=>e.check(Za(yu,a)),e.e164=a=>e.check(Fa(xu,a)),e.datetime=a=>e.check(nm(a)),e.date=a=>e.check(im(a)),e.time=a=>e.check(om(a)),e.duration=a=>e.check(am(a))});function Zi(e){return Tf(An,e)}c(Zi,"string");var he=w("ZodStringFormat",(e,n)=>{ve.init(e,n),uu.init(e,n)}),cu=w("ZodEmail",(e,n)=>{zl.init(e,n),he.init(e,n)});function Q_(e){return wa(cu,e)}c(Q_,"email");var Li=w("ZodGUID",(e,n)=>{Il.init(e,n),he.init(e,n)});function ey(e){return Ni(Li,e)}c(ey,"guid");var Rt=w("ZodUUID",(e,n)=>{Sl.init(e,n),he.init(e,n)});function ty(e){return Ia(Rt,e)}c(ty,"uuid");function ry(e){return Sa(Rt,e)}c(ry,"uuidv4");function ny(e){return za(Rt,e)}c(ny,"uuidv6");function iy(e){return Pa(Rt,e)}c(iy,"uuidv7");var Bi=w("ZodURL",(e,n)=>{Pl.init(e,n),he.init(e,n)});function oy(e){return Ci(Bi,e)}c(oy,"url");function ay(e){return Ci(Bi,{protocol:at.httpProtocol,hostname:at.domain,...C.normalizeParams(e)})}c(ay,"httpUrl");var su=w("ZodEmoji",(e,n)=>{jl.init(e,n),he.init(e,n)});function uy(e){return ja(su,e)}c(uy,"emoji");var lu=w("ZodNanoID",(e,n)=>{El.init(e,n),he.init(e,n)});function cy(e){return Ea(lu,e)}c(cy,"nanoid");var du=w("ZodCUID",(e,n)=>{Ul.init(e,n),he.init(e,n)});function sy(e){return Ua(du,e)}c(sy,"cuid");var fu=w("ZodCUID2",(e,n)=>{Dl.init(e,n),he.init(e,n)});function ly(e){return Da(fu,e)}c(ly,"cuid2");var pu=w("ZodULID",(e,n)=>{Tl.init(e,n),he.init(e,n)});function dy(e){return Ta(pu,e)}c(dy,"ulid");var mu=w("ZodXID",(e,n)=>{Ol.init(e,n),he.init(e,n)});function fy(e){return Oa(mu,e)}c(fy,"xid");var gu=w("ZodKSUID",(e,n)=>{Al.init(e,n),he.init(e,n)});function py(e){return Aa(gu,e)}c(py,"ksuid");var vu=w("ZodIPv4",(e,n)=>{Ll.init(e,n),he.init(e,n)});function my(e){return Na(vu,e)}c(my,"ipv4");var ym=w("ZodMAC",(e,n)=>{Fl.init(e,n),he.init(e,n)});function gy(e){return Af(ym,e)}c(gy,"mac");var hu=w("ZodIPv6",(e,n)=>{Vl.init(e,n),he.init(e,n)});function vy(e){return Ca(hu,e)}c(vy,"ipv6");var _u=w("ZodCIDRv4",(e,n)=>{Ml.init(e,n),he.init(e,n)});function hy(e){return Ra(_u,e)}c(hy,"cidrv4");var yu=w("ZodCIDRv6",(e,n)=>{Bl.init(e,n),he.init(e,n)});function _y(e){return Za(yu,e)}c(_y,"cidrv6");var bu=w("ZodBase64",(e,n)=>{Wl.init(e,n),he.init(e,n)});function yy(e){return La(bu,e)}c(yy,"base64");var $u=w("ZodBase64URL",(e,n)=>{Gl.init(e,n),he.init(e,n)});function by(e){return Va($u,e)}c(by,"base64url");var xu=w("ZodE164",(e,n)=>{Kl.init(e,n),he.init(e,n)});function $y(e){return Fa(xu,e)}c($y,"e164");var ku=w("ZodJWT",(e,n)=>{ql.init(e,n),he.init(e,n)});function xy(e){return Ma(ku,e)}c(xy,"jwt");var Nn=w("ZodCustomStringFormat",(e,n)=>{Hl.init(e,n),he.init(e,n)});function ky(e,n,a={}){return En(Nn,e,n,a)}c(ky,"stringFormat");function wy(e){return En(Nn,"hostname",at.hostname,e)}c(wy,"hostname");function Iy(e){return En(Nn,"hex",at.hex,e)}c(Iy,"hex");function Sy(e,n){let a=n?.enc??"hex",s=`${e}_${a}`,t=at[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return En(Nn,s,t,n)}c(Sy,"hash");var Cn=w("ZodNumber",(e,n)=>{ha.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>bp(e,s,t,o),Mi(e,"ZodNumber",{gt(s,t){return this.check(Nt(s,t))},gte(s,t){return this.check(Be(s,t))},min(s,t){return this.check(Be(s,t))},lt(s,t){return this.check(At(s,t))},lte(s,t){return this.check(ut(s,t))},max(s,t){return this.check(ut(s,t))},int(s){return this.check(ou(s))},safe(s){return this.check(ou(s))},positive(s){return this.check(Nt(0,s))},nonnegative(s){return this.check(Be(0,s))},negative(s){return this.check(At(0,s))},nonpositive(s){return this.check(ut(0,s))},multipleOf(s,t){return this.check(gr(s,t))},step(s,t){return this.check(gr(s,t))},finite(){return this}});let a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function bm(e){return Vf(Cn,e)}c(bm,"number");var Vr=w("ZodNumberFormat",(e,n)=>{Xl.init(e,n),Cn.init(e,n)});function ou(e){return Mf(Vr,e)}c(ou,"int");function zy(e){return Bf(Vr,e)}c(zy,"float32");function Py(e){return Jf(Vr,e)}c(Py,"float64");function jy(e){return Wf(Vr,e)}c(jy,"int32");function Ey(e){return Gf(Vr,e)}c(Ey,"uint32");var Rn=w("ZodBoolean",(e,n)=>{Pi.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>$p(e,a,s,t)});function $m(e){return Kf(Rn,e)}c($m,"boolean");var Zn=w("ZodBigInt",(e,n)=>{_a.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>xp(e,s,t,o),e.gte=(s,t)=>e.check(Be(s,t)),e.min=(s,t)=>e.check(Be(s,t)),e.gt=(s,t)=>e.check(Nt(s,t)),e.gte=(s,t)=>e.check(Be(s,t)),e.min=(s,t)=>e.check(Be(s,t)),e.lt=(s,t)=>e.check(At(s,t)),e.lte=(s,t)=>e.check(ut(s,t)),e.max=(s,t)=>e.check(ut(s,t)),e.positive=s=>e.check(Nt(BigInt(0),s)),e.negative=s=>e.check(At(BigInt(0),s)),e.nonpositive=s=>e.check(ut(BigInt(0),s)),e.nonnegative=s=>e.check(Be(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(gr(s,t));let a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null});function Uy(e){return Hf(Zn,e)}c(Uy,"bigint");var wu=w("ZodBigIntFormat",(e,n)=>{Yl.init(e,n),Zn.init(e,n)});function Dy(e){return Yf(wu,e)}c(Dy,"int64");function Ty(e){return Qf(wu,e)}c(Ty,"uint64");var xm=w("ZodSymbol",(e,n)=>{Ql.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>kp(e,a,s,t)});function Oy(e){return ep(xm,e)}c(Oy,"symbol");var km=w("ZodUndefined",(e,n)=>{ed.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Ip(e,a,s,t)});function Ay(e){return tp(km,e)}c(Ay,"_undefined");var wm=w("ZodNull",(e,n)=>{td.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>wp(e,a,s,t)});function Im(e){return rp(wm,e)}c(Im,"_null");var Sm=w("ZodAny",(e,n)=>{rd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Pp(e,a,s,t)});function Ny(){return np(Sm)}c(Ny,"any");var zm=w("ZodUnknown",(e,n)=>{nd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>jp(e,a,s,t)});function Lr(){return ip(zm)}c(Lr,"unknown");var Pm=w("ZodNever",(e,n)=>{id.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>zp(e,a,s,t)});function Iu(e){return op(Pm,e)}c(Iu,"never");var jm=w("ZodVoid",(e,n)=>{od.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Sp(e,a,s,t)});function Cy(e){return ap(jm,e)}c(Cy,"_void");var Ji=w("ZodDate",(e,n)=>{ad.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>Ep(e,s,t,o),e.min=(s,t)=>e.check(Be(s,t)),e.max=(s,t)=>e.check(ut(s,t));let a=e._zod.bag;e.minDate=a.minimum?new Date(a.minimum):null,e.maxDate=a.maximum?new Date(a.maximum):null});function Ry(e){return up(Ji,e)}c(Ry,"date");var Em=w("ZodArray",(e,n)=>{ud.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Fp(e,a,s,t),e.element=n.element,Mi(e,"ZodArray",{min(a,s){return this.check(Xt(a,s))},nonempty(a){return this.check(Xt(1,a))},max(a,s){return this.check(Rr(a,s))},length(a,s){return this.check(Zr(a,s))},unwrap(){return this.element}})});function Wi(e,n){return lp(Em,e,n)}c(Wi,"array");function Zy(e){let n=e._zod.def.shape;return zu(Object.keys(n))}c(Zy,"keyof");var Gi=w("ZodObject",(e,n)=>{cd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Mp(e,a,s,t),C.defineLazy(e,"shape",()=>n.shape),Mi(e,"ZodObject",{keyof(){return zu(Object.keys(this._zod.def.shape))},catchall(a){return this.clone({...this._zod.def,catchall:a})},passthrough(){return this.clone({...this._zod.def,catchall:Lr()})},loose(){return this.clone({...this._zod.def,catchall:Lr()})},strict(){return this.clone({...this._zod.def,catchall:Iu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(a){return C.extend(this,a)},safeExtend(a){return C.safeExtend(this,a)},merge(a){return C.merge(this,a)},pick(a){return C.pick(this,a)},omit(a){return C.omit(this,a)},partial(...a){return C.partial(ju,this,a[0])},required(...a){return C.required(Eu,this,a[0])}})});function Ly(e,n){let a={type:"object",shape:e??{},...C.normalizeParams(n)};return new Gi(a)}c(Ly,"object");function Vy(e,n){return new Gi({type:"object",shape:e,catchall:Iu(),...C.normalizeParams(n)})}c(Vy,"strictObject");function Fy(e,n){return new Gi({type:"object",shape:e,catchall:Lr(),...C.normalizeParams(n)})}c(Fy,"looseObject");var Ki=w("ZodUnion",(e,n)=>{ji.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Ha(e,a,s,t),e.options=n.options});function Su(e,n){return new Ki({type:"union",options:e,...C.normalizeParams(n)})}c(Su,"union");var Um=w("ZodXor",(e,n)=>{Ki.init(e,n),sd.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Ha(e,a,s,t),e.options=n.options});function My(e,n){return new Um({type:"union",options:e,inclusive:!1,...C.normalizeParams(n)})}c(My,"xor");var Dm=w("ZodDiscriminatedUnion",(e,n)=>{Ki.init(e,n),ld.init(e,n)});function By(e,n,a){return new Dm({type:"union",options:n,discriminator:e,...C.normalizeParams(a)})}c(By,"discriminatedUnion");var Tm=w("ZodIntersection",(e,n)=>{dd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Bp(e,a,s,t)});function Om(e,n){return new Tm({type:"intersection",left:e,right:n})}c(Om,"intersection");var Am=w("ZodTuple",(e,n)=>{ya.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Jp(e,a,s,t),e.rest=a=>e.clone({...e._zod.def,rest:a})});function Nm(e,n,a){let s=n instanceof X,t=s?a:n,o=s?n:null;return new Am({type:"tuple",items:e,rest:o,...C.normalizeParams(t)})}c(Nm,"tuple");var Tn=w("ZodRecord",(e,n)=>{fd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Wp(e,a,s,t),e.keyType=n.keyType,e.valueType=n.valueType});function Cm(e,n,a){return!n||!n._zod?new Tn({type:"record",keyType:Zi(),valueType:e,...C.normalizeParams(n)}):new Tn({type:"record",keyType:e,valueType:n,...C.normalizeParams(a)})}c(Cm,"record");function Jy(e,n,a){let s=Fe(e);return s._zod.values=void 0,new Tn({type:"record",keyType:s,valueType:n,...C.normalizeParams(a)})}c(Jy,"partialRecord");function Wy(e,n,a){return new Tn({type:"record",keyType:e,valueType:n,mode:"loose",...C.normalizeParams(a)})}c(Wy,"looseRecord");var Rm=w("ZodMap",(e,n)=>{pd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Lp(e,a,s,t),e.keyType=n.keyType,e.valueType=n.valueType,e.min=(...a)=>e.check(Ct(...a)),e.nonempty=a=>e.check(Ct(1,a)),e.max=(...a)=>e.check(vr(...a)),e.size=(...a)=>e.check(Cr(...a))});function Gy(e,n,a){return new Rm({type:"map",keyType:e,valueType:n,...C.normalizeParams(a)})}c(Gy,"map");var Zm=w("ZodSet",(e,n)=>{md.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Vp(e,a,s,t),e.min=(...a)=>e.check(Ct(...a)),e.nonempty=a=>e.check(Ct(1,a)),e.max=(...a)=>e.check(vr(...a)),e.size=(...a)=>e.check(Cr(...a))});function Ky(e,n){return new Zm({type:"set",valueType:e,...C.normalizeParams(n)})}c(Ky,"set");var On=w("ZodEnum",(e,n)=>{gd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>Up(e,s,t,o),e.enum=n.entries,e.options=Object.values(n.entries);let a=new Set(Object.keys(n.entries));e.extract=(s,t)=>{let o={};for(let d of s)if(a.has(d))o[d]=n.entries[d];else throw new Error(`Key ${d} not found in enum`);return new On({...n,checks:[],...C.normalizeParams(t),entries:o})},e.exclude=(s,t)=>{let o={...n.entries};for(let d of s)if(a.has(d))delete o[d];else throw new Error(`Key ${d} not found in enum`);return new On({...n,checks:[],...C.normalizeParams(t),entries:o})}});function zu(e,n){let a=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new On({type:"enum",entries:a,...C.normalizeParams(n)})}c(zu,"_enum");function qy(e,n){return new On({type:"enum",entries:e,...C.normalizeParams(n)})}c(qy,"nativeEnum");var Lm=w("ZodLiteral",(e,n)=>{vd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Dp(e,a,s,t),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function Hy(e,n){return new Lm({type:"literal",values:Array.isArray(e)?e:[e],...C.normalizeParams(n)})}c(Hy,"literal");var Vm=w("ZodFile",(e,n)=>{hd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Ap(e,a,s,t),e.min=(a,s)=>e.check(Ct(a,s)),e.max=(a,s)=>e.check(vr(a,s)),e.mime=(a,s)=>e.check(wn(Array.isArray(a)?a:[a],s))});function Xy(e){return dp(Vm,e)}c(Xy,"file");var Fm=w("ZodTransform",(e,n)=>{_d.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Zp(e,a,s,t),e._zod.parse=(a,s)=>{if(s.direction==="backward")throw new lr(e.constructor.name);a.addIssue=o=>{if(typeof o=="string")a.issues.push(C.issue(o,a.value,n));else{let d=o;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=a.value),d.inst??(d.inst=e),a.issues.push(C.issue(d))}};let t=n.transform(a.value,a);return t instanceof Promise?t.then(o=>(a.value=o,a.fallback=!0,a)):(a.value=t,a.fallback=!0,a)}});function Pu(e){return new Fm({type:"transform",transform:e})}c(Pu,"transform");var ju=w("ZodOptional",(e,n)=>{ba.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Xa(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Vi(e){return new ju({type:"optional",innerType:e})}c(Vi,"optional");var Mm=w("ZodExactOptional",(e,n)=>{yd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Xa(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Bm(e){return new Mm({type:"optional",innerType:e})}c(Bm,"exactOptional");var Jm=w("ZodNullable",(e,n)=>{bd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Gp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Fi(e){return new Jm({type:"nullable",innerType:e})}c(Fi,"nullable");function Yy(e){return Vi(Fi(e))}c(Yy,"nullish");var Wm=w("ZodDefault",(e,n)=>{$d.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>qp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Gm(e,n){return new Wm({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():C.shallowClone(n)}})}c(Gm,"_default");var Km=w("ZodPrefault",(e,n)=>{xd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Hp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function qm(e,n){return new Km({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():C.shallowClone(n)}})}c(qm,"prefault");var Eu=w("ZodNonOptional",(e,n)=>{kd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Kp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Hm(e,n){return new Eu({type:"nonoptional",innerType:e,...C.normalizeParams(n)})}c(Hm,"nonoptional");var Xm=w("ZodSuccess",(e,n)=>{wd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Np(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Qy(e){return new Xm({type:"success",innerType:e})}c(Qy,"success");var Ym=w("ZodCatch",(e,n)=>{Id.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Xp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Qm(e,n){return new Ym({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}c(Qm,"_catch");var eg=w("ZodNaN",(e,n)=>{Sd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Tp(e,a,s,t)});function eb(e){return sp(eg,e)}c(eb,"nan");var qi=w("ZodPipe",(e,n)=>{$a.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Yp(e,a,s,t),e.in=n.in,e.out=n.out});function au(e,n){return new qi({type:"pipe",in:e,out:n})}c(au,"pipe");var Hi=w("ZodCodec",(e,n)=>{qi.init(e,n),Ei.init(e,n)});function tb(e,n,a){return new Hi({type:"pipe",in:e,out:n,transform:a.decode,reverseTransform:a.encode})}c(tb,"codec");function rb(e){let n=e._zod.def;return new Hi({type:"pipe",in:n.out,out:n.in,transform:n.reverseTransform,reverseTransform:n.transform})}c(rb,"invertCodec");var tg=w("ZodPreprocess",(e,n)=>{qi.init(e,n),zd.init(e,n)}),rg=w("ZodReadonly",(e,n)=>{Pd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Qp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function ng(e){return new rg({type:"readonly",innerType:e})}c(ng,"readonly");var ig=w("ZodTemplateLiteral",(e,n)=>{jd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Op(e,a,s,t)});function nb(e,n){return new ig({type:"template_literal",parts:e,...C.normalizeParams(n)})}c(nb,"templateLiteral");var og=w("ZodLazy",(e,n)=>{Dd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>tm(e,a,s,t),e.unwrap=()=>e._zod.def.getter()});function ag(e){return new og({type:"lazy",getter:e})}c(ag,"lazy");var ug=w("ZodPromise",(e,n)=>{Ud.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>em(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function ib(e){return new ug({type:"promise",innerType:e})}c(ib,"promise");var cg=w("ZodFunction",(e,n)=>{Ed.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Rp(e,a,s,t)});function ob(e){return new cg({type:"function",input:Array.isArray(e?.input)?Nm(e?.input):e?.input??Wi(Lr()),output:e?.output??Lr()})}c(ob,"_function");var Xi=w("ZodCustom",(e,n)=>{Td.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Cp(e,a,s,t)});function ab(e){let n=new ye({check:"custom"});return n._zod.check=e,n}c(ab,"check");function ub(e,n){return fp(Xi,e??(()=>!0),n)}c(ub,"custom");function sg(e,n={}){return pp(Xi,e,n)}c(sg,"refine");function lg(e,n){return mp(e,n)}c(lg,"superRefine");var cb=gp,sb=vp;function lb(e,n={}){let a=new Xi({type:"custom",check:"custom",fn:c(s=>s instanceof e,"fn"),abort:!0,...C.normalizeParams(n)});return a._zod.bag.Class=e,a._zod.check=s=>{s.value instanceof e||s.issues.push({code:"invalid_type",expected:e.name,input:s.value,inst:a,path:[...a._zod.def.path??[]]})},a}c(lb,"_instanceof");var db=c((...e)=>hp({Codec:Hi,Boolean:Rn,String:An},...e),"stringbool");function fb(e){let n=ag(()=>Su([Zi(e),bm(),$m(),Im(),Wi(n),Cm(Zi(),n)]));return n}c(fb,"json");function pb(e,n){return new tg({type:"pipe",in:Pu(e),out:n})}c(pb,"preprocess");var Pj={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function jj(e){Ie({customError:e})}c(jj,"setErrorMap");function Ej(){return Ie().customError}c(Ej,"getErrorMap");var dg;dg||(dg={});var F={...Ri,...eu,iso:Dn},Uj=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Dj(e,n){let a=e.$schema;return a==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":a==="http://json-schema.org/draft-07/schema#"?"draft-7":a==="http://json-schema.org/draft-04/schema#"?"draft-4":n??"draft-2020-12"}c(Dj,"detectVersion");function Tj(e,n){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let a=e.slice(1).split("/").filter(Boolean);if(a.length===0)return n.rootSchema;let s=n.version==="draft-2020-12"?"$defs":"definitions";if(a[0]===s){let t=a[1];if(!t||!n.defs[t])throw new Error(`Reference not found: ${e}`);return n.defs[t]}throw new Error(`Reference not found: ${e}`)}c(Tj,"resolveRef");function mb(e,n){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return F.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(n.refs.has(t))return n.refs.get(t);if(n.processing.has(t))return F.lazy(()=>{if(!n.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return n.refs.get(t)});n.processing.add(t);let o=Tj(t,n),d=Re(o,n);return n.refs.set(t,d),n.processing.delete(t),d}if(e.enum!==void 0){let t=e.enum;if(n.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return F.null();if(t.length===0)return F.never();if(t.length===1)return F.literal(t[0]);if(t.every(d=>typeof d=="string"))return F.enum(t);let o=t.map(d=>F.literal(d));return o.length<2?o[0]:F.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return F.literal(e.const);let a=e.type;if(Array.isArray(a)){let t=a.map(o=>{let d={...e,type:o};return mb(d,n)});return t.length===0?F.never():t.length===1?t[0]:F.union(t)}if(!a)return F.any();let s;switch(a){case"string":{let t=F.string();if(e.format){let o=e.format;o==="email"?t=t.check(F.email()):o==="uri"||o==="uri-reference"?t=t.check(F.url()):o==="uuid"||o==="guid"?t=t.check(F.uuid()):o==="date-time"?t=t.check(F.iso.datetime()):o==="date"?t=t.check(F.iso.date()):o==="time"?t=t.check(F.iso.time()):o==="duration"?t=t.check(F.iso.duration()):o==="ipv4"?t=t.check(F.ipv4()):o==="ipv6"?t=t.check(F.ipv6()):o==="mac"?t=t.check(F.mac()):o==="cidr"?t=t.check(F.cidrv4()):o==="cidr-v6"?t=t.check(F.cidrv6()):o==="base64"?t=t.check(F.base64()):o==="base64url"?t=t.check(F.base64url()):o==="e164"?t=t.check(F.e164()):o==="jwt"?t=t.check(F.jwt()):o==="emoji"?t=t.check(F.emoji()):o==="nanoid"?t=t.check(F.nanoid()):o==="cuid"?t=t.check(F.cuid()):o==="cuid2"?t=t.check(F.cuid2()):o==="ulid"?t=t.check(F.ulid()):o==="xid"?t=t.check(F.xid()):o==="ksuid"&&(t=t.check(F.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),s=t;break}case"number":case"integer":{let t=a==="integer"?F.number().int():F.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),s=t;break}case"boolean":{s=F.boolean();break}case"null":{s=F.null();break}case"object":{let t={},o=e.properties||{},d=new Set(e.required||[]);for(let[_,h]of Object.entries(o)){let x=Re(h,n);t[_]=d.has(_)?x:x.optional()}if(e.propertyNames){let _=Re(e.propertyNames,n),h=e.additionalProperties&&typeof e.additionalProperties=="object"?Re(e.additionalProperties,n):F.any();if(Object.keys(t).length===0){s=F.record(_,h);break}let x=F.object(t).passthrough(),z=F.looseRecord(_,h);s=F.intersection(x,z);break}if(e.patternProperties){let _=e.patternProperties,h=Object.keys(_),x=[];for(let b of h){let I=Re(_[b],n),T=F.string().regex(new RegExp(b));x.push(F.looseRecord(T,I))}let z=[];if(Object.keys(t).length>0&&z.push(F.object(t).passthrough()),z.push(...x),z.length===0)s=F.object({}).passthrough();else if(z.length===1)s=z[0];else{let b=F.intersection(z[0],z[1]);for(let I=2;I<z.length;I++)b=F.intersection(b,z[I]);s=b}break}let p=F.object(t);e.additionalProperties===!1?s=p.strict():typeof e.additionalProperties=="object"?s=p.catchall(Re(e.additionalProperties,n)):s=p.passthrough();break}case"array":{let t=e.prefixItems,o=e.items;if(t&&Array.isArray(t)){let d=t.map(_=>Re(_,n)),p=o&&typeof o=="object"&&!Array.isArray(o)?Re(o,n):void 0;p?s=F.tuple(d).rest(p):s=F.tuple(d),typeof e.minItems=="number"&&(s=s.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(s=s.check(F.maxLength(e.maxItems)))}else if(Array.isArray(o)){let d=o.map(_=>Re(_,n)),p=e.additionalItems&&typeof e.additionalItems=="object"?Re(e.additionalItems,n):void 0;p?s=F.tuple(d).rest(p):s=F.tuple(d),typeof e.minItems=="number"&&(s=s.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(s=s.check(F.maxLength(e.maxItems)))}else if(o!==void 0){let d=Re(o,n),p=F.array(d);typeof e.minItems=="number"&&(p=p.min(e.minItems)),typeof e.maxItems=="number"&&(p=p.max(e.maxItems)),s=p}else s=F.array(F.any());break}default:throw new Error(`Unsupported type: ${a}`)}return s}c(mb,"convertBaseSchema");function Re(e,n){if(typeof e=="boolean")return e?F.any():F.never();let a=mb(e,n),s=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let p=e.anyOf.map(h=>Re(h,n)),_=F.union(p);a=s?F.intersection(a,_):_}if(e.oneOf&&Array.isArray(e.oneOf)){let p=e.oneOf.map(h=>Re(h,n)),_=F.xor(p);a=s?F.intersection(a,_):_}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)a=s?a:F.any();else{let p=s?a:Re(e.allOf[0],n),_=s?0:1;for(let h=_;h<e.allOf.length;h++)p=F.intersection(p,Re(e.allOf[h],n));a=p}e.nullable===!0&&n.version==="openapi-3.0"&&(a=F.nullable(a)),e.readOnly===!0&&(a=F.readonly(a)),e.default!==void 0&&(a=a.default(e.default));let t={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let p of o)p in e&&(t[p]=e[p]);let d=["contentEncoding","contentMediaType","contentSchema"];for(let p of d)p in e&&(t[p]=e[p]);for(let p of Object.keys(e))Uj.has(p)||(t[p]=e[p]);return Object.keys(t).length>0&&n.registry.add(a,t),e.description&&(a=a.describe(e.description)),a}c(Re,"convertSchema");function gb(e,n){if(typeof e=="boolean")return e?F.any():F.never();let a;try{a=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let s=Dj(a,n?.defaultTarget),t=a.$defs||a.definitions||{},o={version:s,defs:t,refs:new Map,processing:new Set,rootSchema:a,registry:n?.registry??Oe};return Re(a,o)}c(gb,"fromJSONSchema");var fg={};Ot(fg,{bigint:()=>Cj,boolean:()=>Nj,date:()=>Rj,number:()=>Aj,string:()=>Oj});function Oj(e){return Of(An,e)}c(Oj,"string");function Aj(e){return Ff(Cn,e)}c(Aj,"number");function Nj(e){return qf(Rn,e)}c(Nj,"boolean");function Cj(e){return Xf(Zn,e)}c(Cj,"bigint");function Rj(e){return cp(Ji,e)}c(Rj,"date");Ie(Ui());var Zj=Object.defineProperty,Tu=c((e,n)=>Zj(e,"name",{value:n,configurable:!0}),"__name"),Ou=u.array(u.string().or(u.record(u.string(),u.any()))),rO=u.object({type:u.string().optional(),narrative:u.string().optional()}),eo=u.string().or(u.object({id:u.string(),type:u.string(),caption:u.string().optional()})),Lj=u.object({type:u.string().min(1).or(u.string().array().nonempty()),latitude:u.number(),longitude:u.number()}),Vj=u.object({type:u.string().min(1).or(u.string().array().nonempty()),addressCountry:u.string().optional(),addressCountryCode:u.string().optional(),addressRegion:u.string().optional(),addressLocality:u.string().optional(),streetAddress:u.string().optional(),postOfficeBoxNumber:u.string().optional(),postalCode:u.string().optional(),geo:Lj.optional()}),Fj=u.enum(["sourcedId","systemId","productId","userName","accountId","emailAddress","nationalIdentityNumber","isbn","issn","lisSourcedId","oneRosterSourcedId","sisSourcedId","ltiContextId","ltiDeploymentId","ltiToolId","ltiPlatformId","ltiUserId","identifier"]).or(u.string()),Eb=u.object({type:u.string().min(1).or(u.string().array().nonempty()),identifier:u.string(),identifierType:Fj}),Yi=u.string().or(u.object({id:u.string().optional(),type:u.string().or(u.string().array().nonempty().optional()),name:u.string().optional(),url:u.string().optional(),phone:u.string().optional(),description:u.string().optional(),endorsement:u.any().array().optional(),image:eo.optional(),email:u.string().email().optional(),address:Vj.optional(),otherIdentifier:Eb.array().optional(),official:u.string().optional(),parentOrg:u.any().optional(),familyName:u.string().optional(),givenName:u.string().optional(),additionalName:u.string().optional(),patronymicName:u.string().optional(),honorificPrefix:u.string().optional(),honorificSuffix:u.string().optional(),familyNamePrefix:u.string().optional(),dateOfBirth:u.string().optional()}).catchall(u.any())),mg=u.object({id:u.string().optional()}).catchall(u.any()),Uu=u.object({type:u.string(),id:u.string()}).catchall(u.any()),vb=u.object({id:u.string(),type:u.string()}).catchall(u.any()),hb=u.object({id:u.string().optional(),type:u.string()}).catchall(u.any()),_b=u.object({type:u.string(),id:u.string().optional()}).catchall(u.any()),yb=u.object({id:u.string().optional(),type:u.array(u.string()).nonempty(),name:u.string().optional(),narrative:u.string().optional(),description:u.string().optional(),genre:u.string().optional(),audience:u.string().optional()}).catchall(u.any()),Mj=u.object({type:u.literal("TemplateRenderMethod"),renderSuite:u.string(),template:u.string(),renderProperty:u.array(u.string()).optional(),outputPreference:u.object({mediaType:u.string()}).optional()}),bb=u.union([Mj,u.record(u.string(),u.any())]),br=u.object({"@context":Ou,id:u.string().optional(),type:u.string().array().nonempty(),issuer:Yi,credentialSubject:mg.or(mg.array()),refreshService:hb.or(hb.array()).optional(),credentialSchema:vb.or(vb.array()).optional(),issuanceDate:u.string().optional(),expirationDate:u.string().optional(),credentialStatus:Uu.or(Uu.array()).optional(),name:u.string().optional(),description:u.string().optional(),validFrom:u.string().optional(),validUntil:u.string().optional(),status:Uu.or(Uu.array()).optional(),termsOfUse:_b.or(_b.array()).optional(),evidence:u.union([yb,u.array(yb)]).optional(),renderMethod:u.union([bb,u.array(bb)]).optional()}).catchall(u.any()),_t=u.object({type:u.string(),created:u.string(),challenge:u.string().optional(),domain:u.string().optional(),nonce:u.string().optional(),proofPurpose:u.string(),verificationMethod:u.string(),jws:u.string().optional()}).catchall(u.any()),Zt=br.extend({proof:_t.or(_t.array())}),Bj=u.object({"@context":Ou,id:u.string().optional(),type:u.string().or(u.string().array().nonempty()),verifiableCredential:Zt.or(Zt.array()).optional(),holder:u.string().optional()}).catchall(u.any()),Ln=Bj.extend({proof:_t.or(_t.array())}),hg=u.object({kty:u.string(),crv:u.string(),x:u.string(),y:u.string().optional(),n:u.string().optional(),d:u.string().optional()}),oO=hg.omit({d:!0}).extend({d:u.string()}),Jj=u.object({alg:u.string(),iv:u.string(),tag:u.string(),epk:hg.partial().optional(),kid:u.string().optional(),apv:u.string().optional(),apu:u.string().optional()}),Wj=u.object({header:Jj,encrypted_key:u.string()}),Gj=u.object({protected:u.string(),iv:u.string(),ciphertext:u.string(),tag:u.string(),aad:u.string().optional(),recipients:Wj.array().optional()}),Fr=u.string().or(u.object({"@context":Ou.optional(),id:u.string(),type:u.string(),controller:u.string(),publicKeyJwk:hg.optional(),publicKeyBase58:u.string().optional(),publicKeyMultibase:u.string().optional(),blockChainAccountId:u.string().optional()}).catchall(u.any())),Kj=u.object({id:u.string(),type:u.string().or(u.string().array().nonempty()),serviceEndpoint:u.any().or(u.any().array().nonempty())}).catchall(u.any()),aO=u.object({"@context":Ou,id:u.string(),alsoKnownAs:u.string().optional(),controller:u.string().or(u.string().array().nonempty()).optional(),verificationMethod:Fr.array().optional(),authentication:Fr.array().optional(),assertionMethod:Fr.array().optional(),keyAgreement:Fr.array().optional(),capabilityInvocation:Fr.array().optional(),capabilityDelegation:Fr.array().optional(),publicKey:Fr.array().optional(),service:Kj.array().optional(),proof:_t.or(_t.array()).optional()}).catchall(u.any()),qj=u.enum(["ceasn:Competency","ceterms:Credential","CFItem","CFRubric","CFRubricCriterion","CFRubricCriterionLevel","CTDL"]).or(u.string()),Au=u.object({type:u.string().array().nonempty(),targetCode:u.string().optional(),targetDescription:u.string().optional(),targetName:u.string(),targetFramework:u.string().optional(),targetType:qj.optional(),targetUrl:u.string()}),Hj=u.enum(["Achievement","ApprenticeshipCertificate","Assessment","Assignment","AssociateDegree","Award","Badge","BachelorDegree","Certificate","CertificateOfCompletion","Certification","CommunityService","Competency","Course","CoCurricular","Degree","Diploma","DoctoralDegree","Fieldwork","GeneralEducationDevelopment","JourneymanCertificate","LearningProgram","License","Membership","ProfessionalDoctorate","QualityAssuranceCredential","MasterCertificate","MasterDegree","MicroCredential","ResearchDoctorate","SecondarySchoolDiploma"]),Xj=Hj.or(u.string()),Yj=u.object({id:u.string().optional(),narrative:u.string().optional()}).catchall(u.any()),Qj=u.object({id:u.string(),type:u.string().array().nonempty(),endorsementComment:u.string().optional()}),Ub=br.extend({credentialSubject:Qj,proof:_t.or(_t.array()).optional()}),eE=u.object({id:u.string(),"@language":u.string().optional(),version:u.string().optional()}),tE=u.enum(["GradePointAverage","LetterGrade","Percent","PerformanceLevel","PredictedScore","RawScore","Result","RubricCriterion","RubricCriterionLevel","RubricScore","ScaledScore","Status"]).or(u.string()),rE=u.object({id:u.string(),type:u.string().array().nonempty(),alignment:Au.array().optional(),description:u.string().optional(),level:u.string().optional(),name:u.string(),points:u.string().optional()}).catchall(u.any()),nE=u.object({id:u.string(),type:u.string().array().nonempty(),alignment:Au.array().optional(),allowedValue:u.string().array().optional(),name:u.string(),requiredLevel:u.string().optional(),requiredValue:u.string().optional(),resultType:tE,rubricCriterionLevel:rE.array().optional(),valueMax:u.string().optional(),valueMin:u.string().optional()}).catchall(u.any()),cO=u.object({id:u.string().optional(),type:u.array(u.string()).nonempty(),name:u.string().optional(),narrative:u.string().optional(),description:u.string().optional(),genre:u.string().optional(),audience:u.string().optional()}).catchall(u.any()),Db=u.object({id:u.string().optional(),type:u.array(u.string()).nonempty(),alignment:Au.array().optional(),achievementType:Xj.optional(),creator:Yi.optional(),creditsAvailable:u.number().optional(),criteria:Yj,description:u.string(),endorsement:Ub.array().optional(),fieldOfStudy:u.string().optional(),humanCode:u.string().optional(),image:eo.optional(),"@language":u.string().optional(),name:u.string(),otherIdentifier:Eb.array().optional(),related:eE.array().optional(),resultDescription:nE.array().optional(),specialization:u.string().optional(),tag:u.array(u.string()).optional(),version:u.string().optional()}).catchall(u.any()),iE=u.object({type:u.string(),hashed:u.boolean(),identityHash:u.string(),identityType:u.string(),salt:u.string().optional()}),oE=u.enum(["Completed","Enrolled","Failed","InProgress","OnHold","Withdrew"]),aE=u.object({type:u.string().array().nonempty(),achievedLevel:u.string().optional(),alignment:Au.array().optional(),resultDescription:u.string().optional(),status:oE.optional(),value:u.string().optional()}).catchall(u.any()),$b=u.object({id:u.string().optional(),type:u.string().array().nonempty(),activityEndDate:u.string().optional(),activityStartDate:u.string().optional(),creditsEarned:u.number().optional(),achievement:Db.optional(),identifier:iE.array().optional(),image:eo.optional(),licenseNumber:u.string().optional(),narrative:u.string().optional(),result:aE.array().optional(),role:u.string().optional(),source:Yi.optional(),term:u.string().optional()}).catchall(u.any()),uE=br.extend({name:u.string().optional(),description:u.string().optional(),image:eo.optional(),credentialSubject:$b.or($b.array()),endorsement:br.array().optional()}),sO=uE.extend({proof:_t.or(_t.array())}),cE=u.enum(["exactMatchOf","extends","isChildOf","isParentOf","isPartOf","isPeerOf","isRelatedTo","precedes","replacedBy"]).or(u.string()),sE=u.object({type:u.string().array().nonempty(),associationType:cE,sourceId:u.string().optional(),targetId:u.string()}).catchall(u.any()),xb=u.object({id:u.string().optional(),type:u.string().array().nonempty(),identifier:u.any().array().optional(),achievement:Db.array().optional(),association:sE.array().optional(),verifiableCredential:u.any().array().optional()}).catchall(u.any()),lE=br.extend({name:u.string().optional(),description:u.string().optional(),image:eo.optional(),credentialSubject:xb.or(xb.array()),endorsement:Ub.array().optional(),partial:u.boolean().optional()}),dO=lE.extend({proof:_t.or(_t.array())}),_g=u.enum(["w3c-vc-2.0","w3c-vc-1.1","jwt-vc-json","dc+sd-jwt","vc+sd-jwt","mso_mdoc"]),Nu=u.object({format:_g,data:u.string()}).passthrough(),yg=Tu(e=>{if(!e||typeof e!="object")return!1;let n=e;return typeof n.format!="string"||!_g.safeParse(n.format).success?!1:typeof n.data=="string"||n.data instanceof Uint8Array},"isStoredCredentialEnvelope"),dE=u.object({entryType:u.string(),statusPurpose:u.string(),isSet:u.boolean(),statusListCredential:u.string().optional(),statusListIndex:u.string().optional()}),mO=u.object({checks:u.string().array(),warnings:u.string().array(),errors:u.string().array(),status:dE.array().optional()}),Tb=u.enum(["Success","Failed","Error"]),gO=Tb.enum,vO=u.object({check:u.string(),status:Tb,message:u.string().optional(),details:u.string().optional()}),hO=u.object({title:u.string().optional(),createdAt:u.string().optional(),issuer:Yi.optional(),issuee:Yi.optional(),credentialSubject:mg.optional()}),_O=u.object({id:u.string(),uri:u.string(),format:_g.optional(),semanticType:u.string().optional(),rawWireForm:u.string().optional()}).catchall(u.any()),$O=u.object({limit:u.number(),cursor:u.string().optional(),sort:u.string().optional()}),Pe=u.object({cursor:u.string().optional(),hasMore:u.boolean()}),Ob=u.object({encryptedRecord:Gj,fields:u.string().array()}).catchall(u.any()),xO=Pe.extend({records:Ob.array()}),fE=Ob.extend({id:u.string()}),kO=Pe.extend({records:fE.array()}),kb=Tu(e=>{let n=e.match(/^\/(.*)\/([gimsuy]*)$/);if(!n)throw new Error("Invalid RegExp string format");return{pattern:n[1],flags:n[2]}},"parseRegexString"),pE=u.string().refine(e=>{try{return kb(e),!0}catch{return!1}},{message:"Invalid RegExp string format. Must be in format '/pattern/flags'"}).transform(e=>{let{pattern:n,flags:a}=kb(e);try{return new RegExp(n,a)}catch(s){throw new Error(`Invalid RegExp: ${s.message}`)}}).meta({override:{type:"string"}}),mE=u.preprocess(e=>e instanceof RegExp?`/${e.source}/${e.flags}`:e,pE),wb=u.string().or(u.object({$in:u.string().array()})).or(u.object({$regex:mE})),Q=u.union([wb,u.object({$or:wb.array()})]),gE=u.object({backgroundColor:u.string().optional(),backgroundImage:u.string().optional(),fadeBackgroundImage:u.boolean().optional(),repeatBackgroundImage:u.boolean().optional(),fontColor:u.string().optional(),accentColor:u.string().optional(),accentFontColor:u.string().optional(),idBackgroundImage:u.string().optional(),fadeIdBackgroundImage:u.boolean().optional(),idBackgroundColor:u.string().optional(),repeatIdBackgroundImage:u.boolean().optional()}),vE=u.enum(["public","connections_only","private"]),hE=u.enum(["anyone","invite_only"]),Ae=u.object({profileId:u.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),displayName:u.string().default("").describe("Human-readable display name for the profile."),shortBio:u.string().default("").describe("Short bio for the profile."),bio:u.string().default("").describe("Longer bio for the profile."),did:u.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),isPrivate:u.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),profileVisibility:vE.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),showEmail:u.boolean().default(!1).optional().describe("Whether to show email to connections."),allowConnectionRequests:hE.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),email:u.string().optional().describe("Contact email address for the profile. (deprecated)"),image:u.string().optional().describe("Profile image URL for the profile."),heroImage:u.string().optional().describe("Hero image URL for the profile."),websiteLink:u.string().optional().describe("Website link for the profile."),isServiceProfile:u.boolean().default(!1).optional().describe("Whether the profile is a service profile or not."),type:u.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),notificationsWebhook:u.string().url().startsWith("http").optional().describe("URL to send notifications to."),display:gE.optional().describe("Display settings for the profile."),highlightedCredentials:u.array(u.string()).max(5).optional().describe("Up to 5 unique boost URIs to highlight on the profile."),role:u.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),dob:u.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),country:u.string().optional().describe("Country for the profile."),approved:u.boolean().optional().describe("Approval status for the profile.")}),Ab=Ae.pick({profileId:!0,displayName:!0,shortBio:!0,image:!0,heroImage:!0,type:!0,isServiceProfile:!0,display:!0}),Nb=Ab.extend({bio:Ae.shape.bio,websiteLink:Ae.shape.websiteLink,role:Ae.shape.role,highlightedCredentials:Ae.shape.highlightedCredentials,did:Ae.shape.did}),_E=Nb.extend({email:Ae.shape.email}),bg=u.union([_E.strict(),Nb.strict(),Ab.strict(),Ae]),SO=u.object({profileId:Q,displayName:Q,shortBio:Q,bio:Q,email:Q,websiteLink:Q,isServiceProfile:u.boolean(),type:Q}).partial(),zO=Pe.extend({records:Ae.array()}),PO=Pe.extend({records:bg.array()}),jO=u.enum(["CONNECTED","PENDING_REQUEST_SENT","PENDING_REQUEST_RECEIVED","NOT_CONNECTED"]),Cb=u.object({id:u.string(),created:u.string(),displayName:u.string().default("").optional(),shortBio:u.string().default("").optional(),bio:u.string().default("").optional(),email:u.string().optional(),image:u.string().optional(),heroImage:u.string().optional()}),EO=Pe.extend({records:Cb.extend({did:u.string()}).array()}),UO=u.object({id:Q,displayName:Q,shortBio:Q,bio:Q,email:Q}).partial(),DO=Pe.extend({records:u.object({profile:Ae,manager:Cb.extend({did:u.string()}).optional()}).array()}),TO=u.object({uri:u.string(),to:u.string(),from:u.string(),sent:u.iso.datetime(),received:u.iso.datetime().optional(),metadata:u.record(u.string(),u.unknown()).optional()}),Du=u.object({role:u.string(),canView:u.boolean().default(!0),canEdit:u.boolean(),canIssue:u.boolean(),canRevoke:u.boolean(),canManagePermissions:u.boolean(),canIssueChildren:u.string(),canCreateChildren:u.string(),canEditChildren:u.string(),canRevokeChildren:u.string(),canManageChildrenPermissions:u.string(),canManageChildrenProfiles:u.boolean().optional(),canViewAnalytics:u.boolean()}),yE=u.object({role:Q,canView:u.boolean(),canEdit:u.boolean(),canIssue:u.boolean(),canRevoke:u.boolean(),canManagePermissions:u.boolean(),canIssueChildren:Q,canCreateChildren:Q,canEditChildren:Q,canRevokeChildren:Q,canManageChildrenPermissions:Q,canManageChildrenProfiles:u.boolean(),canViewAnalytics:u.boolean()}).partial(),pg=u.enum(["GRANT_PERMISSIONS","ADD_ADMIN","AUTO_CONNECT"]),bE=u.discriminatedUnion("type",[u.object({type:u.literal(pg.enum.GRANT_PERMISSIONS),data:u.object({claimUri:u.string(),targetUri:u.string(),permissions:Du.partial()})}),u.object({type:u.literal(pg.enum.ADD_ADMIN),data:u.object({claimUri:u.string(),targetUri:u.string()})}),u.object({type:u.literal(pg.enum.AUTO_CONNECT),data:u.object({claimUri:u.string(),targetUri:u.string()})})]),OO=u.object({type:Q,data:u.object({claimUri:Q,targetUri:Q,permissions:yE.partial()}).partial()}),$E=u.object({id:u.string(),createdAt:u.string(),updatedAt:u.string()}).and(bE),AO=Pe.extend({records:$E.array()}),gg=u.enum(["DRAFT","PROVISIONAL","LIVE"]),Rb=u.object({uri:u.string(),name:u.string().optional(),type:u.string().optional(),category:u.string().optional(),status:gg.optional(),autoConnectRecipients:u.boolean().optional(),meta:u.record(u.string(),u.any()).optional(),claimPermissions:Du.optional(),defaultPermissions:Du.optional(),allowAnyoneToCreateChildren:u.boolean().optional()}),Ib=u.object({uri:Q,name:Q,type:Q,category:Q,meta:u.record(u.string(),Q),status:gg.or(u.object({$in:gg.array()})),autoConnectRecipients:u.boolean()}).partial(),NO=u.union([u.object({$or:Ib.array()}),Ib]),CO=Pe.extend({records:Rb.array()}),xE=u.object({to:bg,from:u.string(),received:u.string().optional(),uri:u.string().optional(),status:u.enum(["active","revoked","suspended"]).optional()}),RO=Pe.extend({records:xE.array()}),kE=u.object({to:bg,from:u.string(),received:u.string().optional(),boostUris:u.array(u.string()),credentialUris:u.array(u.string()).optional(),status:u.enum(["active","revoked","suspended"]).optional()}),ZO=Pe.extend({records:kE.array()}),LO=u.object({endpoint:u.string(),name:u.string(),did:u.string().optional()}),VO=u.object({ttlSeconds:u.number().optional(),totalUses:u.number().optional()}),wE=u.object({endpoint:u.string()}),FO=u.object({signingAuthority:wE,relationship:u.object({name:u.string().max(15).regex(/^[a-z0-9-]+$/,{message:"The input string must contain only lowercase letters, numbers, and hyphens."}),did:u.string(),isPrimary:u.boolean().optional()})}),MO=u.object({boostUri:u.string(),signingAuthority:u.object({endpoint:u.string(),name:u.string()})}),IE=Rb.partial().omit({uri:!0,claimPermissions:!0}).extend({credential:Zt.or(br),claimPermissions:Du.partial().optional(),skills:u.array(u.object({frameworkId:u.string(),id:u.string(),proficiencyLevel:u.number().optional()})).min(1).optional()}),SE=u.object({issuerName:u.string().optional().describe("Name of the issuing organization"),issuerLogoUrl:u.string().url().optional().describe("Logo URL of the issuing organization"),credentialName:u.string().optional().describe("Display name for the credential"),recipientName:u.string().optional().describe("Name of the recipient for personalization")}),Zb=u.enum(["AWAITING_GUARDIAN","GUARDIAN_APPROVED","GUARDIAN_REJECTED"]),zE=u.object({webhookUrl:u.string().url().optional().describe("Webhook URL to receive claim notifications"),suppressDelivery:u.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),branding:SE.optional().describe("Branding for email/SMS delivery"),guardianEmail:u.string().email().optional().describe("Guardian email that must approve before student can claim")}),PE=u.object({type:u.literal("boost"),recipient:u.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),contractUri:u.string().optional(),templateUri:u.string().optional(),template:IE.optional(),signedCredential:Zt.optional(),options:zE.optional().describe("Options for email/phone recipients (Universal Inbox)"),templateData:u.record(u.string(),u.unknown()).optional(),integrationId:u.string().optional().describe("Integration ID for activity tracking")}).refine(e=>e.templateUri||e.template||e.signedCredential,{message:"Either templateUri, template, or signedCredential must be provided.",path:["templateUri"]}).refine(e=>e.options?.guardianEmail?e.options.guardianEmail.toLowerCase()!==e.recipient.toLowerCase():!0,{message:"guardianEmail must differ from recipient (self-approval not allowed)",path:["options","guardianEmail"]}),jE=u.object({issuanceId:u.string(),status:u.enum(["PENDING","ISSUED","EXPIRED","DELIVERED","CLAIMED"]),claimUrl:u.string().url().optional().describe("Present when suppressDelivery=true"),guardianStatus:Zb.optional().describe("Present when guardianEmail was specified")}),EE=u.object({type:u.literal("boost"),credentialUri:u.string(),uri:u.string(),activityId:u.string().describe("Links to the activity lifecycle for this issuance"),inbox:jE.optional().describe("Present when sent via email/phone (Universal Inbox)")}),BO=u.discriminatedUnion("type",[PE]),JO=u.discriminatedUnion("type",[EE]),Lb=u.enum(["live","stale","withdrawn"]),UE=u.object({read:u.object({anonymize:u.boolean().optional(),credentials:u.object({categories:u.record(u.string(),u.object({required:u.boolean(),defaultEnabled:u.boolean().optional()})).default({})}).prefault({categories:{}}),personal:u.record(u.string(),u.object({required:u.boolean(),defaultEnabled:u.boolean().optional()})).default({})}).prefault({credentials:{categories:{}},personal:{}}),write:u.object({credentials:u.object({categories:u.record(u.string(),u.object({required:u.boolean(),defaultEnabled:u.boolean().optional()})).default({})}).prefault({categories:{}}),personal:u.record(u.string(),u.object({required:u.boolean(),defaultEnabled:u.boolean().optional()})).default({})}).prefault({credentials:{categories:{}},personal:{}})}),$g=u.object({contract:UE,owner:Ae,name:u.string(),subtitle:u.string().optional(),description:u.string().optional(),reasonForAccessing:u.string().optional(),image:u.string().optional(),uri:u.string(),needsGuardianConsent:u.boolean().optional(),redirectUrl:u.string().optional(),frontDoorBoostUri:u.string().optional(),createdAt:u.string(),updatedAt:u.string(),expiresAt:u.string().optional(),autoBoosts:u.string().array().optional(),writers:u.array(Ae).optional()}),DE=u.enum(["pending","accepted","denied"]).nullable(),TE=u.enum(["unseen","seen"]).nullable(),OE=u.object({profile:Ae,status:DE,readStatus:TE.optional()}),WO=u.array(OE),GO=Pe.extend({records:$g.omit({owner:!0}).array()}),AE=u.object({credentials:u.object({categories:u.record(u.string(),u.string().array()).default({})}),personal:u.record(u.string(),u.string()).default({}),date:u.string()}),KO=Pe.extend({records:AE.array()}),NE=u.object({credentials:u.object({category:u.string(),uri:u.string()}).array(),personal:u.record(u.string(),u.string()).default({}),date:u.string(),contractUri:u.string()}),qO=Pe.extend({records:NE.array()}),Vb=u.object({sharing:u.boolean().optional(),shared:u.string().array().optional(),shareAll:u.boolean().optional(),shareUntil:u.string().optional()}),xg=u.object({read:u.object({anonymize:u.boolean().optional(),credentials:u.object({shareAll:u.boolean().optional(),sharing:u.boolean().optional(),categories:u.record(u.string(),Vb).default({})}).prefault({categories:{}}),personal:u.record(u.string(),u.string()).default({})}).prefault({credentials:{categories:{}},personal:{}}),write:u.object({credentials:u.object({categories:u.record(u.string(),u.boolean()).default({})}).prefault({categories:{}}),personal:u.record(u.string(),u.boolean()).default({})}).prefault({credentials:{categories:{}},personal:{}}),deniedWriters:u.array(u.string()).optional()}),HO=Pe.extend({records:u.object({expiresAt:u.string().optional(),oneTime:u.boolean().optional(),terms:xg,contract:$g,uri:u.string(),consenter:Ae,status:Lb}).array()}),XO=u.object({read:u.object({anonymize:u.boolean().optional(),credentials:u.object({categories:u.record(u.string(),u.object({required:u.boolean().optional()})).optional()}).optional(),personal:u.record(u.string(),u.object({required:u.boolean().optional()})).optional()}).optional(),write:u.object({credentials:u.object({categories:u.record(u.string(),u.object({required:u.boolean().optional()})).optional()}).optional(),personal:u.record(u.string(),u.object({required:u.boolean().optional()})).optional()}).optional()}),YO=u.object({anonymize:u.boolean().optional(),credentials:u.object({categories:u.record(u.string(),u.boolean()).optional()}).optional(),personal:u.record(u.string(),u.boolean()).optional()}),QO=u.object({credentials:u.object({categories:u.record(u.string(),u.boolean()).optional()}).optional(),personal:u.record(u.string(),u.boolean()).optional(),id:Q.optional()}),CE=u.object({read:u.object({anonymize:u.boolean().optional(),credentials:u.object({shareAll:u.boolean().optional(),sharing:u.boolean().optional(),categories:u.record(u.string(),Vb.optional()).optional()}).optional(),personal:u.record(u.string(),u.string()).optional()}).optional(),write:u.object({credentials:u.object({categories:u.record(u.string(),u.boolean()).optional()}).optional(),personal:u.record(u.string(),u.boolean()).optional()}).optional()}),vg=u.enum(["consent","update","sync","withdraw","write"]),eA=u.object({terms:CE.optional(),action:vg.or(vg.array()).optional(),date:u.object({$gt:u.string()}).or(u.object({$lt:u.string()})).or(u.object({$eq:u.string()})).optional(),expiresAt:u.object({$gt:u.string()}).or(u.object({$lt:u.string()})).or(u.object({$eq:u.string()})).optional(),oneTime:u.boolean().optional()}),kg=u.object({expiresAt:u.string().optional(),oneTime:u.boolean().optional(),terms:xg.optional(),id:u.string(),action:vg,date:u.string(),uris:u.string().array().optional()}),RE=u.object({termsUri:u.string(),status:Lb,contract:$g,terms:xg,transactions:kg.array()}),tA=u.object({consentRecords:RE.array(),truncated:u.boolean().optional(),warnings:u.string().array().optional(),limits:u.object({maxConsentRecords:u.number(),maxTransactionsPerConsentRecord:u.number()}).optional()}),rA=Pe.extend({records:kg.array()}),Sb=u.object({id:Q,name:Q,description:Q,sourceURI:Q,status:Q}).partial(),nA=u.union([u.object({$or:Sb.array()}),Sb]),ZE=u.object({credentialUri:u.string(),termsUri:u.string(),contractUri:u.string(),boostUri:u.string(),category:u.string().optional(),date:u.string()}),iA=Pe.extend({records:ZE.array()}),LE=u.enum(["CONNECTION_REQUEST","CONNECTION_REQUEST_EXPIRED_INVITE","CONNECTION_ACCEPTED","CREDENTIAL_RECEIVED","CREDENTIAL_ACCEPTED","BOOST_RECEIVED","BOOST_ACCEPTED","PRESENTATION_REQUEST","PRESENTATION_RECEIVED","CONSENT_FLOW_TRANSACTION","ISSUANCE_CLAIMED","ISSUANCE_DELIVERED","ISSUANCE_ERROR","PROFILE_PARENT_APPROVED","APP_LISTING_SUBMITTED","APP_LISTING_APPROVED","APP_LISTING_REJECTED","APP_LISTING_WITHDRAWN","DEVICE_LINK_REQUEST","GUARDIAN_APPROVAL_PENDING","GUARDIAN_APPROVED","GUARDIAN_REJECTED","APP_NOTIFICATION"]),VE=u.object({title:u.string().optional(),body:u.string().optional()}),FE=u.object({type:u.string(),value:u.string()}),Cu=u.enum(["PENDING","ISSUED","EXPIRED","DELIVERED","CLAIMED"]),ME=u.object({issuanceId:u.string(),status:Cu,recipient:u.object({contactMethod:FE.optional(),learnCardId:u.string().optional()}),timestamp:u.iso.datetime().optional()}),BE=u.object({vcUris:u.array(u.string()).optional(),vpUris:u.array(u.string()).optional(),transaction:kg.optional(),inbox:ME.optional(),metadata:u.record(u.string(),u.unknown()).optional()}).loose(),oA=u.object({type:LE,to:Ae.partial().and(u.object({did:u.string()})),from:u.union([u.string(),Ae.partial().and(u.object({did:u.string()}))]),message:VE.optional(),data:BE.optional(),sent:u.iso.datetime().optional(),webhookUrl:u.string().optional()}),JE="auth-grant:",aA=u.object({id:u.string(),name:u.string(),description:u.string().optional(),challenge:u.string().startsWith(JE).min(10,{message:"Challenge is too short"}).max(100,{message:"Challenge is too long"}),status:u.enum(["revoked","active"],{error:Tu(e=>e.code==="invalid_value"?"Status must be either active or revoked":"Status is required","error")}),scope:u.string(),createdAt:u.iso.datetime({error:"createdAt must be a valid ISO 8601 datetime string"}),expiresAt:u.iso.datetime({error:"expiresAt must be a valid ISO 8601 datetime string"}).nullish().optional()}),uA=u.object({id:u.string()}).catchall(u.any()),WE=u.enum(["active","revoked"]),cA=u.object({id:Q,name:Q,description:Q,status:WE}).partial(),zb=u.object({id:u.string(),isVerified:u.boolean(),verifiedAt:u.string().optional(),isPrimary:u.boolean(),createdAt:u.string()}),sA=u.discriminatedUnion("type",[u.object({type:u.literal("email"),value:u.string().email()}).merge(zb),u.object({type:u.literal("phone"),value:u.string()}).merge(zb)]),Pb=u.object({isVerified:u.boolean().optional(),isPrimary:u.boolean().optional()}),lA=u.discriminatedUnion("type",[u.object({type:u.literal("email"),value:u.string().email()}).merge(Pb),u.object({type:u.literal("phone"),value:u.string()}).merge(Pb)]),Fb=u.discriminatedUnion("type",[u.object({type:u.literal("email"),value:u.string().email()}),u.object({type:u.literal("phone"),value:u.string()})]),GE=u.object({value:u.string(),type:u.enum(["email","phone"])}),dA=u.object({token:u.string()}),fA=u.object({contactMethodId:u.string()}),pA=u.object({contactMethod:GE,otpChallenge:u.string()}),mA=u.object({sessionJwt:u.string()}),KE=u.object({id:u.string(),credential:u.string(),isSigned:u.boolean(),currentStatus:Cu,isAccepted:u.boolean().optional(),expiresAt:u.string(),createdAt:u.string(),issuerDid:u.string(),webhookUrl:u.string().optional(),boostUri:u.string().optional(),activityId:u.string().optional(),integrationId:u.string().optional(),signingAuthority:u.object({endpoint:u.string().optional(),name:u.string().optional()}).optional(),guardianEmail:u.string().email().optional(),guardianStatus:Zb.optional(),guardianApprovedAt:u.string().optional(),guardianApprovedByDid:u.string().optional()}),gA=u.object({hasMore:u.boolean(),records:u.array(KE),cursor:u.string().optional()}),vA=u.object({currentStatus:Cu,id:u.string(),isSigned:u.boolean(),isAccepted:u.boolean().optional(),issuerDid:u.string(),boostUri:u.string()}).partial(),qE=u.object({endpoint:u.string().url(),name:u.string()}),hA=u.object({recipient:Fb.describe("The recipient of the credential"),credential:Zt.or(Ln).or(br).optional().describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),templateUri:u.string().optional().describe("URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."),configuration:u.object({signingAuthority:qE.optional().describe("The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."),webhookUrl:u.string().url().optional().describe("The webhook URL to receive credential issuance events."),expiresInDays:u.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),templateData:u.record(u.string(),u.unknown()).optional().describe("Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."),delivery:u.object({suppress:u.boolean().optional().default(!1).describe("Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."),template:u.object({id:u.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),model:u.object({issuer:u.object({name:u.string().optional().describe('The name of the organization (e.g., "State University").'),logoUrl:u.string().url().optional().describe("The URL of the organization's logo.")}).optional(),credential:u.object({name:u.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),type:u.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')}).optional(),recipient:u.object({name:u.string().optional().describe('The name of the recipient (e.g., "John Doe").')}).optional()}).describe("The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used.")}).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")}).optional().describe("Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used.")}).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")}).refine(e=>e.credential||e.templateUri,{message:"Either credential or templateUri must be provided.",path:["credential"]}),_A=u.object({issuanceId:u.string(),status:Cu,recipient:Fb,claimUrl:u.string().url().optional(),recipientDid:u.string().optional()}),HE=u.object({name:u.string()}).passthrough(),yA=u.object({credential:Zt.or(Ln).or(br).or(HE).describe("The credential to issue, or a { name } reference to resolve a boost template."),configuration:u.object({publishableKey:u.string(),signingAuthorityName:u.string().optional(),listingId:u.string().optional(),listingSlug:u.string().optional()}).optional()}),wg=u.union([u.string().regex(/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,{message:"Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"}),u.string().regex(/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,{message:"Must be a valid http(s) origin"})]),Mb=u.enum(["setup","active","paused"]),XE=u.object({id:u.string(),name:u.string(),description:u.string().optional(),publishableKey:u.string(),whitelistedDomains:u.array(wg).default([]),status:Mb.default("setup"),guideType:u.string().optional(),guideState:u.record(u.string(),u.any()).optional(),createdAt:u.string().optional(),updatedAt:u.string().optional()}),bA=u.object({name:u.string(),description:u.string().optional(),whitelistedDomains:u.array(wg).default([]),guideType:u.string().optional()}),$A=u.object({name:u.string().optional(),description:u.string().optional(),whitelistedDomains:u.array(wg).optional(),rotatePublishableKey:u.boolean().optional(),status:Mb.optional(),guideType:u.string().optional(),guideState:u.record(u.string(),u.any()).optional()}),xA=u.object({id:Q,name:Q,description:Q,status:Q,guideType:Q}).partial(),kA=Pe.extend({records:XE.array()}),wA=u.object({token:u.string(),contactMethodId:u.string(),autoVerifyContactMethod:u.boolean().optional().default(!1),createdAt:u.string(),expiresAt:u.string(),used:u.boolean()}),IA=u.object({id:u.string(),name:u.string().min(1),slug:u.string().min(1),createdAt:u.string().optional(),updatedAt:u.string().optional()}),Qi=u.enum(["active","archived"]),Ig=u.object({id:u.string(),statement:u.string(),description:u.string().optional(),code:u.string().optional(),icon:u.string().optional(),type:u.string().default("skill"),status:Qi.default("active"),frameworkId:u.string().optional(),createdAt:u.string().optional(),updatedAt:u.string().optional()}),jb=u.object({id:Q,statement:Q,description:Q,code:Q,type:Q,status:Qi.or(u.object({$in:Qi.array()}))}).partial(),SA=u.union([u.object({$or:jb.array()}),jb]),zA=u.object({text:u.string().min(1),frameworkId:u.string().optional(),limit:u.number().int().min(1).max(200).default(50)}),YE=Ig.extend({score:u.number()}),PA=u.object({records:YE.array()}),Sg=u.enum(["active","archived"]),Bb=u.object({id:u.string(),name:u.string(),description:u.string().optional(),image:u.string().optional(),sourceURI:u.string().url().optional(),isPublic:u.boolean().default(!1),status:Sg.default("active"),createdAt:u.string().optional(),updatedAt:u.string().optional()}),jA=Pe.extend({records:Bb.array()}),zg=Ig.extend({children:u.array(u.lazy(()=>zg)),hasChildren:u.boolean(),childrenCursor:u.string().nullable().optional()}),QE=u.object({hasMore:u.boolean(),cursor:u.string().nullable(),records:u.array(zg)}),Vn=u.lazy(()=>u.object({id:u.string().optional(),statement:u.string(),description:u.string().optional(),code:u.string().optional(),icon:u.string().optional(),type:u.string().optional(),status:Qi.optional(),children:u.array(Vn).optional()})),EA=u.object({frameworkId:u.string()}),eU=u.object({id:u.string().optional(),name:u.string().min(1),description:u.string().optional(),image:u.string().optional(),sourceURI:u.string().url().optional(),isPublic:u.boolean().optional(),status:Sg.optional(),skills:u.array(Vn).optional(),boostUris:u.array(u.string()).optional()}),UA=u.object({id:u.string(),name:u.string().min(1).optional(),description:u.string().optional(),image:u.string().optional(),sourceURI:u.string().url().optional(),isPublic:u.boolean().optional(),status:Sg.optional()}).refine(e=>e.name!==void 0||e.description!==void 0||e.image!==void 0||e.sourceURI!==void 0||e.isPublic!==void 0||e.status!==void 0,{message:"At least one field must be provided to update",path:["name"]}),DA=u.object({id:u.string()}),TA=u.object({frameworks:u.array(eU.extend({skills:u.array(Vn).optional()})).min(1)}),OA=u.object({frameworkId:u.string(),profileId:u.string()}),AA=u.object({frameworkId:u.string()}),NA=Ae.array(),CA=u.object({id:u.string()}),RA=u.object({slug:u.string().min(1),name:u.string().min(1)}),ZA=u.object({frameworkId:u.string(),skill:Vn,parentId:u.string().nullable().optional()}),LA=u.object({frameworkId:u.string(),id:u.string(),statement:u.string().optional(),description:u.string().optional(),code:u.string().optional(),icon:u.string().optional(),type:u.string().optional(),status:Qi.optional()}).refine(e=>e.statement!==void 0||e.description!==void 0||e.code!==void 0||e.icon!==void 0||e.type!==void 0||e.status!==void 0,{message:"At least one field must be provided to update a skill",path:["statement"]}),tU=u.enum(["recursive","reparent"]),VA=u.object({frameworkId:u.string(),id:u.string(),strategy:tU.optional().default("reparent")}),FA=u.object({frameworkId:u.string(),skills:u.array(Vn).min(1),parentId:u.string().nullable().optional()}),MA=u.object({frameworkId:u.string(),skills:u.array(Vn).min(0)}),BA=u.object({created:u.number().int().min(0),updated:u.number().int().min(0),deleted:u.number().int().min(0),unchanged:u.number().int().min(0),total:u.number().int().min(0)}),JA=u.object({frameworkId:u.string(),skillId:u.string().optional(),recursive:u.boolean().optional().default(!1),onlyCountCompetencies:u.boolean().optional().default(!1)}),WA=u.object({count:u.number().int().min(0)}),GA=u.object({frameworkId:u.string()}),KA=u.object({skills:u.array(zg)}),qA=u.object({frameworkId:u.string(),skillId:u.string()}),HA=u.object({path:u.array(Ig)}),XA=u.object({framework:Bb,skills:QE}),rU=u.enum(["DRAFT","PENDING_REVIEW","LISTED","ARCHIVED"]),nU=u.enum(["EMBEDDED_IFRAME","SECOND_SCREEN","DIRECT_LINK","CONSENT_REDIRECT","SERVER_HEADLESS","AI_TUTOR"]),iU=u.enum(["FEATURED_CAROUSEL","CURATED_LIST","STANDARD","DEMOTED"]),oU=u.enum(["4+","9+","12+","17+"]),aU=u.object({profileId:u.string(),displayName:u.string(),email:u.string().optional()}),Ru=u.object({listing_id:u.string(),slug:u.string().optional(),display_name:u.string(),tagline:u.string(),full_description:u.string(),icon_url:u.string(),app_listing_status:rU,launch_type:nU,launch_config_json:u.string(),category:u.string().optional(),promo_video_url:u.string().optional(),promotion_level:iU.optional(),ios_app_store_id:u.string().optional(),android_app_store_id:u.string().optional(),privacy_policy_url:u.string().optional(),terms_url:u.string().optional(),highlights:u.array(u.string()).optional(),screenshots:u.array(u.string()).optional(),hero_background_color:u.string().optional(),min_age:u.number().int().min(0).max(18).optional(),age_rating:oU.optional(),submitted_at:u.string().optional(),submitter:aU.optional(),contact_email:u.string().email().optional()}),YA=Ru.omit({listing_id:!0,app_listing_status:!0,promotion_level:!0}),QA=Ru.partial().omit({listing_id:!0,app_listing_status:!0,promotion_level:!0}),uU=Ru.extend({installed_at:u.string()}),eN=Pe.extend({records:Ru.array()}),tN=Pe.extend({records:uU.array()}),rN=u.object({templateAlias:u.string().min(1).max(50).regex(/^[a-z0-9-]+$/),boostUri:u.string()}),cU=u.object({type:u.literal("send-credential"),templateAlias:u.string(),templateData:u.record(u.string(),u.unknown()).optional(),preventDuplicateClaim:u.boolean().optional()}),sU=u.object({type:u.literal("check-credential"),templateAlias:u.string().optional(),boostUri:u.string().optional()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),lU=u.object({type:u.literal("check-issuance-status"),templateAlias:u.string().optional(),boostUri:u.string().optional(),recipient:u.string()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),dU=u.object({type:u.literal("get-template-recipients"),templateAlias:u.string().optional(),boostUri:u.string().optional(),limit:u.number().optional(),cursor:u.string().optional()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),fU=u.object({type:u.literal("request-learner-context"),includeCredentials:u.boolean().optional().default(!0),includePersonalData:u.boolean().optional().default(!1),format:u.enum(["prompt","structured"]).optional().default("prompt"),instructions:u.string().optional(),detailLevel:u.enum(["compact","expanded"]).optional().default("compact"),waitForSync:u.boolean().optional().default(!1)}),pU=u.object({occupations:u.array(u.string()).nullable(),careers:u.array(u.string()).nullable(),jobs:u.array(u.string()).nullable(),skills:u.array(u.string()).nullable(),fieldOfStudy:u.string().nullable()}),mU=u.object({title:u.string().describe("Short, concise title for the learning session or credential"),summary:u.string().describe("Comprehensive summary of what happened during the session"),learned:u.array(u.string()).describe("Bullet points of key knowledge gained"),skills:u.array(u.object({title:u.string().describe("Name of the skill category"),description:u.string().describe("Detailed description of what this skill category involves")})).describe("Categorized skills learned during the session"),nextSteps:u.array(u.object({title:u.string().describe("Title of the suggested next step"),description:u.string().describe("Description explaining why this next step is recommended"),keywords:pU.optional().describe("Optional taxonomy keywords for occupations/careers/jobs/skills/fieldOfStudy. Omit if not relevant.")})).describe("Recommended follow-up activities or learning modules"),reflections:u.array(u.object({title:u.string().describe("Title of the reflection"),description:u.string().describe("Detailed description of what this reflection involves")})).describe("Reflections on the learning experience")}),gU=u.object({type:u.literal("send-ai-session-credential"),sessionTitle:u.string(),summaryData:mU,metadata:u.record(u.string(),u.unknown()).optional()}),vU=u.object({type:u.literal("send-notification"),title:u.string().optional(),body:u.string().optional(),actionPath:u.string().optional(),category:u.string().optional(),priority:u.enum(["normal","high"]).optional()}),Pg=u.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/,"Key must be alphanumeric with _ or -"),hU=u.object({type:u.literal("increment-counter"),key:Pg,amount:u.number().int().finite()}),_U=u.object({type:u.literal("get-counter"),key:Pg}),yU=u.object({type:u.literal("get-counters"),keys:u.array(Pg).min(1).max(50).optional()}),bU=u.discriminatedUnion("type",[cU,sU,lU,dU,fU,gU,vU,hU,_U,yU]),nN=u.object({listingId:u.string(),event:bU}),iN=u.record(u.string(),u.unknown()),$U=u.enum(["CREATED","DELIVERED","CLAIMED","EXPIRED","FAILED"]),xU=u.enum(["profile","email","phone"]),kU=u.enum(["send","sendBoost","sendCredential","contract","claim","inbox","claimLink","acceptCredential","appEvent"]),wU=u.object({id:u.string(),activityId:u.string(),eventType:$U,timestamp:u.string(),actorProfileId:u.string().optional(),recipientType:xU,recipientIdentifier:u.string(),boostUri:u.string().optional(),credentialUri:u.string().optional(),inboxCredentialId:u.string().optional(),integrationId:u.string().optional(),source:kU,metadata:u.record(u.string(),u.unknown()).optional(),status:u.enum(["active","revoked","suspended"]).optional()}),IU=wU.extend({boost:u.object({id:u.string(),name:u.string().optional(),category:u.string().optional()}).optional(),recipientProfile:u.object({profileId:u.string(),displayName:u.string().optional()}).optional()}),oN=Pe.extend({records:IU.array()}),aN=u.object({total:u.number(),created:u.number(),delivered:u.number(),claimed:u.number(),expired:u.number(),failed:u.number(),claimRate:u.number()}),Mr,uN=(Mr=class extends Error{constructor(n,a){super(n),this.reason=a,this.name="AuthSessionError"}},c(Mr,"AuthSessionError"),Tu(Mr,"AuthSessionError"),Mr),SU=["revocation","suspension"];var jg=u.enum(SU),zU=u.object({id:u.string().optional(),type:u.literal("BitstringStatusListEntry"),statusPurpose:jg,statusListIndex:u.string(),statusListCredential:u.string()}),sN=zU.extend({id:u.string()}),lN=u.object({id:u.string().optional(),type:u.literal("BitstringStatusList"),statusPurpose:jg,encodedList:u.string()}),dN=u.object({statusPurposes:u.array(jg).optional(),listSize:u.number().int().positive().optional()}).default({});var Yb=d_(qb(),1);var Fn={"SHA-1":{outputLength:20,blockSize:64},"SHA-256":{outputLength:32,blockSize:64},"SHA-384":{outputLength:48,blockSize:128},"SHA-512":{outputLength:64,blockSize:128}};function Xb(e,n,a,s,t="SHA-256"){return new Promise(((o,d)=>{t in Fn||d(new RangeError(`Valid hash algorithm values are any of ${Object.keys(Fn).toString()}`)),typeof e=="string"?e=new TextEncoder().encode(e):e instanceof ArrayBuffer?e=new Uint8Array(e):ArrayBuffer.isView(e)||d(RangeError("P should be string, ArrayBuffer, TypedArray, DataView")),typeof n=="string"?n=new TextEncoder().encode(n):n instanceof ArrayBuffer?n=new Uint8Array(n):ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):d(RangeError("S should be string, ArrayBuffer, TypedArray, DataView")),crypto.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]).then((p=>{let _={name:"PBKDF2",hash:t,salt:n,iterations:a};crypto.subtle.deriveBits(_,p,8*s).then((h=>o(h)),(h=>{(async function(x,z,b,I,T){if(!(T in Fn))throw new RangeError(`Valid hash algorithm values are any of ${Object.keys(Fn).toString()}`);if(!Number.isInteger(b)||b<=0)throw new RangeError("c must be a positive integer");let Z=Fn[T].outputLength;if(!Number.isInteger(I)||I<=0||I>=(2**32-1)*Z)throw new RangeError("dkLen must be a positive integer < (2 ** 32 - 1) * hLen");let L=Math.ceil(I/Z),H=I-(L-1)*Z,W=new Array(L);x.byteLength===0&&(x=new Uint8Array(Fn[T].blockSize));let ae=await crypto.subtle.importKey("raw",x,{name:"HMAC",hash:{name:T}},!0,["sign"]),B=c(async function(ge,st){let Lt=await crypto.subtle.sign("HMAC",ge,st);return new Uint8Array(Lt)},"g");for(let ge=0;ge<L;ge++)W[ge]=await ce(ae,z,b,ge+1);async function ce(ge,st,Lt,Zu){function Lu(xr){let ro=new ArrayBuffer(4);return new DataView(ro).setUint32(0,xr,!1),new Uint8Array(ro)}c(Lu,"i");let Bn=await B(ge,Hb(st,Lu(Zu))),Jn=Bn;for(let xr=1;xr<Lt;xr++)Jn=await B(ge,Jn),CU(Bn,Jn);return Bn}return c(ce,"h"),W[L-1]=W[L-1].slice(0,H),Hb(...W).buffer})(e,n,a,s,t).then((x=>o(x)),(x=>d(x)))}))}),(p=>d(p)))}))}c(Xb,"t");function Hb(...e){let n=e.reduce(((t,o)=>t+o.length),0);if(e.length===0)throw new RangeError("Cannot concat no arrays");let a=new Uint8Array(n),s=0;for(let t of e)a.set(t,s),s+=t.length;return a}c(Hb,"r");function CU(e,n){for(let a=0;a<e.length;a++)e[a]^=n[a]}c(CU,"n");var Mn=c(async(e,n)=>{let a=await e.invoke.hash?.(n,"PBKDF2-HMAC-SHA256");if(a)return a;let s=e.invoke.crypto(),t=new TextEncoder().encode(n),o=e.id.keypair("secp256k1").d,d=await Xb(o,"salt",1e3,32),p=await s.subtle.importKey("raw",d,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),_=await s.subtle.sign("HMAC",p,t);return Array.from(new Uint8Array(_)).map(x=>x.toString(16).padStart(2,"0")).join("")},"hash"),ct=c(async(e,n,a)=>e.invoke.createDagJwe(a,[n]),"generateJWE"),Pt=c(async(e,n)=>e.invoke.decryptDagJwe(n),"decryptJWE"),Br=c(async(e,n,a=[])=>{let s=Object.entries(n);return(await Promise.all(s.map(async([t,o])=>a.includes(t)?"":await Mn(e,`${t}:${(0,Yb.default)(o)}`)))).filter(Boolean)},"generateEncryptedFieldsArray"),Jr=c(async(e,n,a=[])=>{let s=await e.invoke.createDagJwe(n),t=await Br(e,n,a);return{...Object.fromEntries(Object.entries(n).filter(([d])=>a.includes(d))),encryptedRecord:s,fields:t}},"generateEncryptedRecord");var RU=c(e=>{let n="";for(let s=0;s<e.length;s+=1)n+=String.fromCharCode(e[s]);return(typeof btoa=="function"?btoa(n):Buffer.from(n,"binary").toString("base64")).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},"uint8ArrayToBase64Url"),Qb=c(e=>!yg(e)||typeof e.data=="string"?e:{...e,data:RU(e.data)},"normalizeEnvelopeForTransport"),Eg=c(async(e,n)=>(0,t$.getClient)(e,async a=>{let s=await n.invoke.getDidAuthVp({proofFormat:"jwt",challenge:a});if(typeof s!="string")throw new Error("Error getting DID-Auth-JWT!");return s}),"getLearnCloudClient"),ZU=c(async(e,n,a=[],s=[],t=!0)=>{let o=e;o.debug?.("Adding LearnCloud Plugin");let d=await Eg(n,o),p=[o.id.did()];d.user.getDids.query().then(b=>p=b);let _={},h=d.utilities.getDid.query(),x=c(async b=>(_[b]||(_[b]=await Eg(b,o)),_[b]),"getOtherClient"),z=c(async b=>{let I=o.id.did(),T=b.id.did();if(I!==T){if(!p.includes(T)&&t){let Z=await b.invoke.getDidAuthVp();await d.user.addDid.mutate({presentation:Z}),T.split(":")[1]==="web"&&await d.user.setPrimaryDid.mutate({presentation:Z}),p=await d.user.getDids.query()}d=await Eg(n,b)}o=b},"updateLearnCard");return{name:"LearnCloud",displayName:"LearnCloud",description:"LearnCloud Integration",methods:{learnCloudCreate:c(async(b,I)=>{await z(b);let T=await Jr(b,I,s);return d.customStorage.create.mutate({item:await ct(b,await h,T)})},"learnCloudCreate"),learnCloudCreateMany:c(async(b,I)=>{await z(b);let T=await Promise.all(I.map(async Z=>Jr(b,Z,s)));return d.customStorage.createMany.mutate({items:await ct(b,await h,T)})},"learnCloudCreateMany"),learnCloudRead:c(async(b,I,T)=>{await z(b);let Z=[],L=await b.invoke.learnCloudReadPage(I,{},T);for(Z.push(...L.records);L.hasMore;)L=await b.invoke.learnCloudReadPage(I,{},T),Z.push(...L.records);return Z},"learnCloudRead"),learnCloudReadPage:c(async(b,I,T,Z)=>{if(await z(b),!I){let B=await d.customStorage.read.query({includeAssociatedDids:Z,...T}),ce=(0,jt.isEncrypted)(B)?await Pt(b,B):B;return{...ce,records:await Promise.all(ce.records.map(async ge=>({...await Pt(b,ge.encryptedRecord),_id:ge._id})))}}let L=await Br(b,I,[...s,"_id"]),H=Object.fromEntries(Object.entries(I).filter(([B])=>[...s,"_id"].includes(B))),W=await d.customStorage.read.query({query:await ct(b,await h,{...H,...L.length>0?{fields:{$in:L}}:{}}),...T,includeAssociatedDids:Z}),ae=(0,jt.isEncrypted)(W)?await Pt(b,W):W;return{...ae,records:await Promise.all(ae.records.map(async B=>({...await Pt(b,B.encryptedRecord),_id:B._id})))}},"learnCloudReadPage"),learnCloudCount:c(async(b,I,T)=>{if(await z(b),!I)return d.customStorage.count.query({includeAssociatedDids:T});let Z=await Br(b,I,[...s,"_id"]),L=Object.fromEntries(Object.entries(I).filter(([H])=>[...s,"_id"].includes(H)));return d.customStorage.count.query({query:await ct(b,await h,{...L,...Z.length>0?{fields:{$in:Z}}:{}}),includeAssociatedDids:T})},"learnCloudCount"),learnCloudUpdate:c(async(b,I,T)=>{await z(b);let Z=await b.invoke.learnCloudRead(I);return(await Promise.all(Z.map(async H=>d.customStorage.update.mutate({query:await ct(b,await h,{_id:H._id}),update:await ct(b,await h,await Jr(b,{...H,...T},s))})))).reduce((H,W)=>W+H,0)},"learnCloudUpdate"),learnCloudDelete:c(async(b,I,T)=>{if(await z(b),!I)return d.customStorage.delete.mutate({includeAssociatedDids:T});let Z=await Br(b,I,[...s,"_id"]),L=Object.fromEntries(Object.entries(I).filter(([H])=>[...s,"_id"].includes(H)));return d.customStorage.delete.mutate({query:await ct(b,await h,{...L,...Z.length>0?{fields:{$in:Z}}:{}}),includeAssociatedDids:T})},"learnCloudDelete"),learnCloudBatchResolve:c(async(b,I)=>{let T=await d.storage.batchResolve.query({uris:I});return Promise.all(T.map(async Z=>{if(!Z)return null;try{let L=await b.invoke.decryptDagJwe(Z),H=await Zt.or(Ln).or(Nu).parseAsync(L),W=(0,jt.resolveStorageReadResult)(H);return W===void 0||yg(W)?null:W}catch(L){return b.debug?.(L),null}}))},"learnCloudBatchResolve")},read:{get:c(async(b,I)=>{if(o.debug?.("LearnCloud read.get",I),!I)return;let T=I.split(":");if(o.debug?.("LearnCloud read.get parts:",T),T.length!==5)return;let[Z,L,H]=T;if(Z!=="lc"||L!=="cloud"){o.debug?.("LearnCloud read.get not cloud URI!",{lc:Z,method:L});return}if(H.replace(/https?:\/\//g,"")!==n.replace(/https?:\/\//g,"").replace(/:/g,"%3A")){let W=(H.startsWith("http")?H:`http${H.includes("http")||H.includes("localhost")?"":"s"}://${H}`).replaceAll("%3A",":");o.debug?.("LearnCloud read.get different LearnCloud!",{uriUrl:H,url:n,fullUrl:W,comparison:{a:H.replace(/https?:\/\//g,""),b:n.replace(/https?:\/\//g,"").replace(/:/g,"%3A")}});let ae=await x(W);try{let B=await ae.storage.resolve.query({uri:I});o.debug?.("LearnCloud read.get result",B);let ce=await b.invoke.decryptDagJwe(B);o.debug?.("LearnCloud read.get decryptedResult",ce);let ge=await Zt.or(Ln).or(Nu).parseAsync(ce);return(0,jt.resolveStorageReadResult)(ge)}catch(B){b.debug?.(B);return}}try{let W=await d.storage.resolve.query({uri:I});o.debug?.("LearnCloud read.get result",W);let ae=await b.invoke.decryptDagJwe(W);o.debug?.("LearnCloud read.get decryptedResult",ae);let B=await Zt.or(Ln).or(Nu).parseAsync(ae);return(0,jt.resolveStorageReadResult)(B)}catch(W){b.debug?.(W);return}},"get")},store:{upload:c(async(b,I)=>(b.debug?.("learnCard.store['LearnCard Network'].upload"),d.storage.store.mutate({item:Qb(I)})),"upload"),uploadEncrypted:c(async(b,I,{recipients:T=[]}={recipients:[]})=>{b.debug?.("learnCard.store['LearnCard Network'].upload");let Z=await b.invoke.createDagJwe(Qb(I),[b.id.did(),...T]);return d.storage.store.mutate({item:Z})},"uploadEncrypted"),delete:c(async(b,I)=>{b.debug?.("learnCard.store['LearnCloud'].delete",{uri:I});let T=!1;try{T=!!await d.storage.delete.mutate({uri:I})}catch(Z){b.debug?.("LearnCloud store.delete storage.delete failed",Z)}if(!T)return!1;try{let Z=await b.index.LearnCloud.get({uri:I});for(let L of Z)await b.index.LearnCloud.remove(L.id,{cache:"skip-cache"})}catch(Z){b.debug?.("LearnCloud store.delete index cleanup failed",Z)}return!0},"delete")},index:{get:c(async(b,I)=>{await z(b);let T=[],Z=await b.index.LearnCloud.getPage(I);for(T.push(...Z.records);Z.hasMore;)Z=await b.index.LearnCloud.getPage(I,{cursor:Z.cursor}),T.push(...Z.records);return T},"get"),getPage:c(async(b,I,T)=>{await z(b),b.debug?.("LearnCloud index.getPaginated",I,T);let Z={...T,sort:["newestFirst","oldestFirst"].includes(T?.sort??"")?T?.sort:void 0};if(!I){b.debug?.("LearnCloud index.get (no query)");let B=await d.index.get.query(Z);b.debug?.("LearnCloud index.get (no query response)",B);let ce=(0,jt.isEncrypted)(B)?await Pt(b,B):B;return b.debug?.("LearnCloud index.get (no query encryptedRecords)",ce),{...ce,records:await Promise.all(ce.records.map(async ge=>Pt(b,ge.encryptedRecord)))}}b.debug?.("LearnCloud index.get (query)");let L=await Br(b,I,a);b.debug?.("LearnCloud index.get (query fields)",L);let H=Object.fromEntries(Object.entries(I).filter(([B])=>a.includes(B)));b.debug?.("LearnCloud index.get (query unencryptedEntries)",H);let W=await d.index.get.query({query:await ct(b,await h,{...H,...L.length>0?{fields:{$in:L}}:{}}),...Z});b.debug?.("LearnCloud index.get (query jwe)",W);let ae=(0,jt.isEncrypted)(W)?await Pt(b,W):W;return b.debug?.("LearnCloud index.get (query encryptedRecords)",ae),{...ae,records:await Promise.all(ae.records.map(async B=>Pt(b,B.encryptedRecord)))}},"getPage"),getCount:c(async(b,I)=>{if(await z(b),!I){b.debug?.("LearnCloud index.count (no query)");let W=await d.index.count.query();b.debug?.("LearnCloud index.count (no query response)",W);let ae=(0,jt.isEncrypted)(W)?await Pt(b,W):W;return b.debug?.("LearnCloud index.count (no query count)",ae),ae}b.debug?.("LearnCloud index.getCount (query)");let T=await Br(b,I,a);b.debug?.("LearnCloud index.getCount (query fields)",T);let Z=Object.fromEntries(Object.entries(I).filter(([W])=>a.includes(W)));b.debug?.("LearnCloud index.getCount (query unencryptedEntries)",Z);let L=await d.index.count.query({query:await ct(b,await h,{...Z,...T.length>0?{fields:{$in:T}}:{}})});b.debug?.("LearnCloud index.count (query response)",L);let H=(0,jt.isEncrypted)(L)?await Pt(b,L):L;return b.debug?.("LearnCloud index.count (query count)",H),H},"getCount"),add:c(async(b,I)=>{await z(b);let T=I.id||b.invoke.crypto().randomUUID();return d.index.add.mutate({record:await ct(b,await h,{...await Jr(b,{...I,id:T},a),id:await Mn(b,T)})})},"add"),addMany:c(async(b,I)=>(await z(b),(await Promise.all((0,e$.chunk)(I,25).map(async Z=>{let L=await Promise.all(Z.map(async H=>{let W=H.id||b.invoke.crypto().randomUUID();return{...await Jr(b,{...H,id:W},a),id:await Mn(b,W)}}));return d.index.addMany.mutate({records:await ct(b,await h,L)})}))).every(Boolean)),"addMany"),update:c(async(b,I,T)=>{await z(b);let Z=await b.index.LearnCloud.get({id:I});if(Z.length!==1)return!1;let H={...Z[0],...T};return d.index.update.mutate({id:await Mn(b,I),updates:await ct(b,await h,await Jr(b,H,a))})},"update"),remove:c(async(b,I)=>(await z(b),d.index.remove.mutate({id:await Mn(b,I)})),"remove"),removeAll:c(async b=>(await z(b),d.index.removeAll.mutate()),"removeAll")}}},"getLearnCloudPlugin");
|
|
85
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let d of e.seen.entries()){let p=d[1];if(n===d[0]){o(d);continue}if(e.external){let h=e.external.registry.get(d[0])?.id;if(n!==d[0]&&h){o(d);continue}}if(e.metadataRegistry.get(d[0])?.id){o(d);continue}if(p.cycle){o(d);continue}if(p.count>1&&e.reused==="ref"){o(d);continue}}}c(_r,"extractDefs");function yr(e,n){let a=e.seen.get(n);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");let s=c(p=>{let _=e.seen.get(p);if(_.ref===null)return;let h=_.def??_.schema,x={...h},z=_.ref;if(_.ref=null,z){s(z);let I=e.seen.get(z),T=I.schema;if(T.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(T)):Object.assign(h,T),Object.assign(h,x),p._zod.parent===z)for(let L in h)L==="$ref"||L==="allOf"||L in x||delete h[L];if(T.$ref&&I.def)for(let L in h)L==="$ref"||L==="allOf"||L in I.def&&JSON.stringify(h[L])===JSON.stringify(I.def[L])&&delete h[L]}let b=p._zod.parent;if(b&&b!==z){s(b);let I=e.seen.get(b);if(I?.schema.$ref&&(h.$ref=I.schema.$ref,I.def))for(let T in h)T==="$ref"||T==="allOf"||T in I.def&&JSON.stringify(h[T])===JSON.stringify(I.def[T])&&delete h[T]}e.override({zodSchema:p,jsonSchema:h,path:_.path??[]})},"flattenRef");for(let p of[...e.seen.entries()].reverse())s(p[0]);let t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let p=e.external.registry.get(n)?.id;if(!p)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(p)}Object.assign(t,a.def??a.schema);let o=e.metadataRegistry.get(n)?.id;o!==void 0&&t.id===o&&delete t.id;let d=e.external?.defs??{};for(let p of e.seen.entries()){let _=p[1];_.def&&_.defId&&(_.def.id===_.defId&&delete _.def.id,d[_.defId]=_.def)}e.external||Object.keys(d).length>0&&(e.target==="draft-2020-12"?t.$defs=d:t.definitions=d);try{let p=JSON.parse(JSON.stringify(t));return Object.defineProperty(p,"~standard",{value:{...n["~standard"],jsonSchema:{input:Un(n,"input",e.processors),output:Un(n,"output",e.processors)}},enumerable:!1,writable:!1}),p}catch{throw new Error("Error converting schema to JSON.")}}c(yr,"finalize");function Je(e,n){let a=n??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);let s=e._zod.def;if(s.type==="transform")return!0;if(s.type==="array")return Je(s.element,a);if(s.type==="set")return Je(s.valueType,a);if(s.type==="lazy")return Je(s.getter(),a);if(s.type==="promise"||s.type==="optional"||s.type==="nonoptional"||s.type==="nullable"||s.type==="readonly"||s.type==="default"||s.type==="prefault")return Je(s.innerType,a);if(s.type==="intersection")return Je(s.left,a)||Je(s.right,a);if(s.type==="record"||s.type==="map")return Je(s.keyType,a)||Je(s.valueType,a);if(s.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Je(s.in,a)||Je(s.out,a);if(s.type==="object"){for(let t in s.shape)if(Je(s.shape[t],a))return!0;return!1}if(s.type==="union"){for(let t of s.options)if(Je(t,a))return!0;return!1}if(s.type==="tuple"){for(let t of s.items)if(Je(t,a))return!0;return!!(s.rest&&Je(s.rest,a))}return!1}c(Je,"isTransforming");var _p=c((e,n={})=>a=>{let s=hr({...a,processors:n});return me(e,s),_r(s,e),yr(s,e)},"createToJSONSchemaMethod"),Un=c((e,n,a={})=>s=>{let{libraryOptions:t,target:o}=s??{},d=hr({...t??{},target:o,io:n,processors:a});return me(e,d),_r(d,e),yr(d,e)},"createStandardJSONSchemaMethod");var wj={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},yp=c((e,n,a,s)=>{let t=a;t.type="string";let{minimum:o,maximum:d,format:p,patterns:_,contentEncoding:h}=e._zod.bag;if(typeof o=="number"&&(t.minLength=o),typeof d=="number"&&(t.maxLength=d),p&&(t.format=wj[p]??p,t.format===""&&delete t.format,p==="time"&&delete t.format),h&&(t.contentEncoding=h),_&&_.size>0){let x=[..._];x.length===1?t.pattern=x[0].source:x.length>1&&(t.allOf=[...x.map(z=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:z.source}))])}},"stringProcessor"),bp=c((e,n,a,s)=>{let t=a,{minimum:o,maximum:d,format:p,multipleOf:_,exclusiveMaximum:h,exclusiveMinimum:x}=e._zod.bag;typeof p=="string"&&p.includes("int")?t.type="integer":t.type="number";let z=typeof x=="number"&&x>=(o??Number.NEGATIVE_INFINITY),b=typeof h=="number"&&h<=(d??Number.POSITIVE_INFINITY),I=n.target==="draft-04"||n.target==="openapi-3.0";z?I?(t.minimum=x,t.exclusiveMinimum=!0):t.exclusiveMinimum=x:typeof o=="number"&&(t.minimum=o),b?I?(t.maximum=h,t.exclusiveMaximum=!0):t.exclusiveMaximum=h:typeof d=="number"&&(t.maximum=d),typeof _=="number"&&(t.multipleOf=_)},"numberProcessor"),$p=c((e,n,a,s)=>{a.type="boolean"},"booleanProcessor"),xp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),kp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),wp=c((e,n,a,s)=>{n.target==="openapi-3.0"?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},"nullProcessor"),Ip=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),Sp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),zp=c((e,n,a,s)=>{a.not={}},"neverProcessor"),Pp=c((e,n,a,s)=>{},"anyProcessor"),jp=c((e,n,a,s)=>{},"unknownProcessor"),Ep=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),Up=c((e,n,a,s)=>{let t=e._zod.def,o=hi(t.entries);o.every(d=>typeof d=="number")&&(a.type="number"),o.every(d=>typeof d=="string")&&(a.type="string"),a.enum=o},"enumProcessor"),Dp=c((e,n,a,s)=>{let t=e._zod.def,o=[];for(let d of t.values)if(d===void 0){if(n.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof d=="bigint"){if(n.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(d))}else o.push(d);if(o.length!==0)if(o.length===1){let d=o[0];a.type=d===null?"null":typeof d,n.target==="draft-04"||n.target==="openapi-3.0"?a.enum=[d]:a.const=d}else o.every(d=>typeof d=="number")&&(a.type="number"),o.every(d=>typeof d=="string")&&(a.type="string"),o.every(d=>typeof d=="boolean")&&(a.type="boolean"),o.every(d=>d===null)&&(a.type="null"),a.enum=o},"literalProcessor"),Tp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),Op=c((e,n,a,s)=>{let t=a,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=o.source},"templateLiteralProcessor"),Ap=c((e,n,a,s)=>{let t=a,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:d,maximum:p,mime:_}=e._zod.bag;d!==void 0&&(o.minLength=d),p!==void 0&&(o.maxLength=p),_?_.length===1?(o.contentMediaType=_[0],Object.assign(t,o)):(Object.assign(t,o),t.anyOf=_.map(h=>({contentMediaType:h}))):Object.assign(t,o)},"fileProcessor"),Np=c((e,n,a,s)=>{a.type="boolean"},"successProcessor"),Cp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),Rp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),Zp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),Lp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),Vp=c((e,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),Fp=c((e,n,a,s)=>{let t=a,o=e._zod.def,{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(t.minItems=d),typeof p=="number"&&(t.maxItems=p),t.type="array",t.items=me(o.element,n,{...s,path:[...s.path,"items"]})},"arrayProcessor"),Mp=c((e,n,a,s)=>{let t=a,o=e._zod.def;t.type="object",t.properties={};let d=o.shape;for(let h in d)t.properties[h]=me(d[h],n,{...s,path:[...s.path,"properties",h]});let p=new Set(Object.keys(d)),_=new Set([...p].filter(h=>{let x=o.shape[h]._zod;return n.io==="input"?x.optin===void 0:x.optout===void 0}));_.size>0&&(t.required=Array.from(_)),o.catchall?._zod.def.type==="never"?t.additionalProperties=!1:o.catchall?o.catchall&&(t.additionalProperties=me(o.catchall,n,{...s,path:[...s.path,"additionalProperties"]})):n.io==="output"&&(t.additionalProperties=!1)},"objectProcessor"),Ha=c((e,n,a,s)=>{let t=e._zod.def,o=t.inclusive===!1,d=t.options.map((p,_)=>me(p,n,{...s,path:[...s.path,o?"oneOf":"anyOf",_]}));o?a.oneOf=d:a.anyOf=d},"unionProcessor"),Bp=c((e,n,a,s)=>{let t=e._zod.def,o=me(t.left,n,{...s,path:[...s.path,"allOf",0]}),d=me(t.right,n,{...s,path:[...s.path,"allOf",1]}),p=c(h=>"allOf"in h&&Object.keys(h).length===1,"isSimpleIntersection"),_=[...p(o)?o.allOf:[o],...p(d)?d.allOf:[d]];a.allOf=_},"intersectionProcessor"),Jp=c((e,n,a,s)=>{let t=a,o=e._zod.def;t.type="array";let d=n.target==="draft-2020-12"?"prefixItems":"items",p=n.target==="draft-2020-12"||n.target==="openapi-3.0"?"items":"additionalItems",_=o.items.map((b,I)=>me(b,n,{...s,path:[...s.path,d,I]})),h=o.rest?me(o.rest,n,{...s,path:[...s.path,p,...n.target==="openapi-3.0"?[o.items.length]:[]]}):null;n.target==="draft-2020-12"?(t.prefixItems=_,h&&(t.items=h)):n.target==="openapi-3.0"?(t.items={anyOf:_},h&&t.items.anyOf.push(h),t.minItems=_.length,h||(t.maxItems=_.length)):(t.items=_,h&&(t.additionalItems=h));let{minimum:x,maximum:z}=e._zod.bag;typeof x=="number"&&(t.minItems=x),typeof z=="number"&&(t.maxItems=z)},"tupleProcessor"),Wp=c((e,n,a,s)=>{let t=a,o=e._zod.def;t.type="object";let d=o.keyType,_=d._zod.bag?.patterns;if(o.mode==="loose"&&_&&_.size>0){let x=me(o.valueType,n,{...s,path:[...s.path,"patternProperties","*"]});t.patternProperties={};for(let z of _)t.patternProperties[z.source]=x}else(n.target==="draft-07"||n.target==="draft-2020-12")&&(t.propertyNames=me(o.keyType,n,{...s,path:[...s.path,"propertyNames"]})),t.additionalProperties=me(o.valueType,n,{...s,path:[...s.path,"additionalProperties"]});let h=d._zod.values;if(h){let x=[...h].filter(z=>typeof z=="string"||typeof z=="number");x.length>0&&(t.required=x)}},"recordProcessor"),Gp=c((e,n,a,s)=>{let t=e._zod.def,o=me(t.innerType,n,s),d=n.seen.get(e);n.target==="openapi-3.0"?(d.ref=t.innerType,a.nullable=!0):a.anyOf=[o,{type:"null"}]},"nullableProcessor"),Kp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType},"nonoptionalProcessor"),qp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType,a.default=JSON.parse(JSON.stringify(t.defaultValue))},"defaultProcessor"),Hp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType,n.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},"prefaultProcessor"),Xp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType;let d;try{d=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=d},"catchProcessor"),Yp=c((e,n,a,s)=>{let t=e._zod.def,o=t.in._zod.traits.has("$ZodTransform"),d=n.io==="input"?o?t.out:t.in:t.out;me(d,n,s);let p=n.seen.get(e);p.ref=d},"pipeProcessor"),Qp=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType,a.readOnly=!0},"readonlyProcessor"),em=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType},"promiseProcessor"),Xa=c((e,n,a,s)=>{let t=e._zod.def;me(t.innerType,n,s);let o=n.seen.get(e);o.ref=t.innerType},"optionalProcessor"),tm=c((e,n,a,s)=>{let t=e._zod.innerType;me(t,n,s);let o=n.seen.get(e);o.ref=t},"lazyProcessor"),qa={string:yp,number:bp,boolean:$p,bigint:xp,symbol:kp,null:wp,undefined:Ip,void:Sp,never:zp,any:Pp,unknown:jp,date:Ep,enum:Up,literal:Dp,nan:Tp,template_literal:Op,file:Ap,success:Np,custom:Cp,function:Rp,transform:Zp,map:Lp,set:Vp,array:Fp,object:Mp,union:Ha,intersection:Bp,tuple:Jp,record:Wp,nullable:Gp,nonoptional:Kp,default:qp,prefault:Hp,catch:Xp,pipe:Yp,readonly:Qp,promise:em,optional:Xa,lazy:tm};function Ya(e,n){if("_idmap"in e){let s=e,t=hr({...n,processors:qa}),o={};for(let _ of s._idmap.entries()){let[h,x]=_;me(x,t)}let d={},p={registry:s,uri:n?.uri,defs:o};t.external=p;for(let _ of s._idmap.entries()){let[h,x]=_;_r(t,x),d[h]=yr(t,x)}if(Object.keys(o).length>0){let _=t.target==="draft-2020-12"?"$defs":"definitions";d.__shared={[_]:o}}return{schemas:d}}let a=hr({...n,processors:qa});return me(e,a),_r(a,e),yr(a,e)}c(Ya,"toJSONSchema");var rm=class rm{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(n){this.ctx.counter=n}get seen(){return this.ctx.seen}constructor(n){let a=n?.target??"draft-2020-12";a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),this.ctx=hr({processors:qa,target:a,...n?.metadata&&{metadata:n.metadata},...n?.unrepresentable&&{unrepresentable:n.unrepresentable},...n?.override&&{override:n.override},...n?.io&&{io:n.io}})}process(n,a={path:[],schemaPath:[]}){return me(n,this.ctx,a)}emit(n,a){a&&(a.cycles&&(this.ctx.cycles=a.cycles),a.reused&&(this.ctx.reused=a.reused),a.external&&(this.ctx.external=a.external)),_r(this.ctx,n);let s=yr(this.ctx,n),{"~standard":t,...o}=s;return o}};c(rm,"JSONSchemaGenerator");var Qa=rm;var H_={};var Ri={};Ot(Ri,{ZodAny:()=>Sm,ZodArray:()=>Em,ZodBase64:()=>bu,ZodBase64URL:()=>$u,ZodBigInt:()=>Zn,ZodBigIntFormat:()=>wu,ZodBoolean:()=>Rn,ZodCIDRv4:()=>_u,ZodCIDRv6:()=>yu,ZodCUID:()=>du,ZodCUID2:()=>fu,ZodCatch:()=>Ym,ZodCodec:()=>Hi,ZodCustom:()=>Xi,ZodCustomStringFormat:()=>Nn,ZodDate:()=>Ji,ZodDefault:()=>Wm,ZodDiscriminatedUnion:()=>Dm,ZodE164:()=>xu,ZodEmail:()=>cu,ZodEmoji:()=>su,ZodEnum:()=>On,ZodExactOptional:()=>Mm,ZodFile:()=>Vm,ZodFunction:()=>cg,ZodGUID:()=>Li,ZodIPv4:()=>vu,ZodIPv6:()=>hu,ZodIntersection:()=>Tm,ZodJWT:()=>ku,ZodKSUID:()=>gu,ZodLazy:()=>og,ZodLiteral:()=>Lm,ZodMAC:()=>ym,ZodMap:()=>Rm,ZodNaN:()=>eg,ZodNanoID:()=>lu,ZodNever:()=>Pm,ZodNonOptional:()=>Eu,ZodNull:()=>wm,ZodNullable:()=>Jm,ZodNumber:()=>Cn,ZodNumberFormat:()=>Vr,ZodObject:()=>Gi,ZodOptional:()=>ju,ZodPipe:()=>qi,ZodPrefault:()=>Km,ZodPreprocess:()=>tg,ZodPromise:()=>ug,ZodReadonly:()=>rg,ZodRecord:()=>Tn,ZodSet:()=>Zm,ZodString:()=>An,ZodStringFormat:()=>he,ZodSuccess:()=>Xm,ZodSymbol:()=>xm,ZodTemplateLiteral:()=>ig,ZodTransform:()=>Fm,ZodTuple:()=>Am,ZodType:()=>te,ZodULID:()=>pu,ZodURL:()=>Bi,ZodUUID:()=>Rt,ZodUndefined:()=>km,ZodUnion:()=>Ki,ZodUnknown:()=>zm,ZodVoid:()=>jm,ZodXID:()=>mu,ZodXor:()=>Um,_ZodString:()=>uu,_default:()=>Gm,_function:()=>ob,any:()=>Ny,array:()=>Wi,base64:()=>yy,base64url:()=>by,bigint:()=>Uy,boolean:()=>$m,catch:()=>Qm,check:()=>ab,cidrv4:()=>hy,cidrv6:()=>_y,codec:()=>tb,cuid:()=>sy,cuid2:()=>ly,custom:()=>ub,date:()=>Ry,describe:()=>cb,discriminatedUnion:()=>By,e164:()=>$y,email:()=>Q_,emoji:()=>uy,enum:()=>zu,exactOptional:()=>Bm,file:()=>Xy,float32:()=>zy,float64:()=>Py,function:()=>ob,guid:()=>ey,hash:()=>Sy,hex:()=>Iy,hostname:()=>wy,httpUrl:()=>ay,instanceof:()=>lb,int:()=>ou,int32:()=>jy,int64:()=>Dy,intersection:()=>Om,invertCodec:()=>rb,ipv4:()=>my,ipv6:()=>vy,json:()=>fb,jwt:()=>xy,keyof:()=>Zy,ksuid:()=>py,lazy:()=>ag,literal:()=>Hy,looseObject:()=>Fy,looseRecord:()=>Wy,mac:()=>gy,map:()=>Gy,meta:()=>sb,nan:()=>eb,nanoid:()=>cy,nativeEnum:()=>qy,never:()=>Iu,nonoptional:()=>Hm,null:()=>Im,nullable:()=>Fi,nullish:()=>Yy,number:()=>bm,object:()=>Ly,optional:()=>Vi,partialRecord:()=>Jy,pipe:()=>au,prefault:()=>qm,preprocess:()=>pb,promise:()=>ib,readonly:()=>ng,record:()=>Cm,refine:()=>sg,set:()=>Ky,strictObject:()=>Vy,string:()=>Zi,stringFormat:()=>ky,stringbool:()=>db,success:()=>Qy,superRefine:()=>lg,symbol:()=>Oy,templateLiteral:()=>nb,transform:()=>Pu,tuple:()=>Nm,uint32:()=>Ey,uint64:()=>Ty,ulid:()=>dy,undefined:()=>Ay,union:()=>Su,unknown:()=>Lr,url:()=>oy,uuid:()=>ty,uuidv4:()=>ry,uuidv6:()=>ny,uuidv7:()=>iy,void:()=>Cy,xid:()=>fy,xor:()=>My});var eu={};Ot(eu,{endsWith:()=>kn,gt:()=>Nt,gte:()=>Be,includes:()=>$n,length:()=>Zr,lowercase:()=>yn,lt:()=>At,lte:()=>ut,maxLength:()=>Rr,maxSize:()=>vr,mime:()=>wn,minLength:()=>Xt,minSize:()=>Ct,multipleOf:()=>gr,negative:()=>Ja,nonnegative:()=>Ga,nonpositive:()=>Wa,normalize:()=>In,overwrite:()=>zt,positive:()=>Ba,property:()=>Ka,regex:()=>_n,size:()=>Cr,slugify:()=>jn,startsWith:()=>xn,toLowerCase:()=>zn,toUpperCase:()=>Pn,trim:()=>Sn,uppercase:()=>bn});var Dn={};Ot(Dn,{ZodISODate:()=>ru,ZodISODateTime:()=>tu,ZodISODuration:()=>iu,ZodISOTime:()=>nu,date:()=>im,datetime:()=>nm,duration:()=>am,time:()=>om});var tu=w("ZodISODateTime",(e,n)=>{Nl.init(e,n),he.init(e,n)});function nm(e){return Cf(tu,e)}c(nm,"datetime");var ru=w("ZodISODate",(e,n)=>{Cl.init(e,n),he.init(e,n)});function im(e){return Rf(ru,e)}c(im,"date");var nu=w("ZodISOTime",(e,n)=>{Rl.init(e,n),he.init(e,n)});function om(e){return Zf(nu,e)}c(om,"time");var iu=w("ZodISODuration",(e,n)=>{Zl.init(e,n),he.init(e,n)});function am(e){return Lf(iu,e)}c(am,"duration");var X_=c((e,n)=>{xi.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:c(a=>wi(e,a),"value")},flatten:{value:c(a=>ki(e,a),"value")},addIssue:{value:c(a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,sn,2)},"value")},addIssues:{value:c(a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,sn,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),Sj=w("ZodError",X_),Ye=w("ZodError",X_,{Parent:Error});var um=fn(Ye),cm=pn(Ye),sm=mn(Ye),lm=gn(Ye),dm=ta(Ye),fm=ra(Ye),pm=na(Ye),mm=ia(Ye),gm=oa(Ye),vm=aa(Ye),hm=ua(Ye),_m=ca(Ye);var Y_=new WeakMap;function Mi(e,n,a){let s=Object.getPrototypeOf(e),t=Y_.get(s);if(t||(t=new Set,Y_.set(s,t)),!t.has(n)){t.add(n);for(let o in a){let d=a[o];Object.defineProperty(s,o,{configurable:!0,enumerable:!1,get(){let p=d.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:p}),p},set(p){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:p})}})}}}c(Mi,"_installLazyMethods");var te=w("ZodType",(e,n)=>(X.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:Un(e,"input"),output:Un(e,"output")}}),e.toJSONSchema=_p(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.parse=(a,s)=>um(e,a,s,{callee:e.parse}),e.safeParse=(a,s)=>sm(e,a,s),e.parseAsync=async(a,s)=>cm(e,a,s,{callee:e.parseAsync}),e.safeParseAsync=async(a,s)=>lm(e,a,s),e.spa=e.safeParseAsync,e.encode=(a,s)=>dm(e,a,s),e.decode=(a,s)=>fm(e,a,s),e.encodeAsync=async(a,s)=>pm(e,a,s),e.decodeAsync=async(a,s)=>mm(e,a,s),e.safeEncode=(a,s)=>gm(e,a,s),e.safeDecode=(a,s)=>vm(e,a,s),e.safeEncodeAsync=async(a,s)=>hm(e,a,s),e.safeDecodeAsync=async(a,s)=>_m(e,a,s),Mi(e,"ZodType",{check(...a){let s=this.def;return this.clone(C.mergeDefs(s,{checks:[...s.checks??[],...a.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...a){return this.check(...a)},clone(a,s){return Fe(this,a,s)},brand(){return this},register(a,s){return a.add(this,s),this},refine(a,s){return this.check(sg(a,s))},superRefine(a,s){return this.check(lg(a,s))},overwrite(a){return this.check(zt(a))},optional(){return Vi(this)},exactOptional(){return Bm(this)},nullable(){return Fi(this)},nullish(){return Vi(Fi(this))},nonoptional(a){return Hm(this,a)},array(){return Wi(this)},or(a){return Su([this,a])},and(a){return Om(this,a)},transform(a){return au(this,Pu(a))},default(a){return Gm(this,a)},prefault(a){return qm(this,a)},catch(a){return Qm(this,a)},pipe(a){return au(this,a)},readonly(){return ng(this)},describe(a){let s=this.clone();return Oe.add(s,{description:a}),s},meta(...a){if(a.length===0)return Oe.get(this);let s=this.clone();return Oe.add(s,a[0]),s},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(a){return a(this)}}),Object.defineProperty(e,"description",{get(){return Oe.get(e)?.description},configurable:!0}),e)),uu=w("_ZodString",(e,n)=>{Nr.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>yp(e,s,t,o);let a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,Mi(e,"_ZodString",{regex(...s){return this.check(_n(...s))},includes(...s){return this.check($n(...s))},startsWith(...s){return this.check(xn(...s))},endsWith(...s){return this.check(kn(...s))},min(...s){return this.check(Xt(...s))},max(...s){return this.check(Rr(...s))},length(...s){return this.check(Zr(...s))},nonempty(...s){return this.check(Xt(1,...s))},lowercase(s){return this.check(yn(s))},uppercase(s){return this.check(bn(s))},trim(){return this.check(Sn())},normalize(...s){return this.check(In(...s))},toLowerCase(){return this.check(zn())},toUpperCase(){return this.check(Pn())},slugify(){return this.check(jn())}})}),An=w("ZodString",(e,n)=>{Nr.init(e,n),uu.init(e,n),e.email=a=>e.check(wa(cu,a)),e.url=a=>e.check(Ci(Bi,a)),e.jwt=a=>e.check(Ma(ku,a)),e.emoji=a=>e.check(ja(su,a)),e.guid=a=>e.check(Ni(Li,a)),e.uuid=a=>e.check(Ia(Rt,a)),e.uuidv4=a=>e.check(Sa(Rt,a)),e.uuidv6=a=>e.check(za(Rt,a)),e.uuidv7=a=>e.check(Pa(Rt,a)),e.nanoid=a=>e.check(Ea(lu,a)),e.guid=a=>e.check(Ni(Li,a)),e.cuid=a=>e.check(Ua(du,a)),e.cuid2=a=>e.check(Da(fu,a)),e.ulid=a=>e.check(Ta(pu,a)),e.base64=a=>e.check(La(bu,a)),e.base64url=a=>e.check(Va($u,a)),e.xid=a=>e.check(Oa(mu,a)),e.ksuid=a=>e.check(Aa(gu,a)),e.ipv4=a=>e.check(Na(vu,a)),e.ipv6=a=>e.check(Ca(hu,a)),e.cidrv4=a=>e.check(Ra(_u,a)),e.cidrv6=a=>e.check(Za(yu,a)),e.e164=a=>e.check(Fa(xu,a)),e.datetime=a=>e.check(nm(a)),e.date=a=>e.check(im(a)),e.time=a=>e.check(om(a)),e.duration=a=>e.check(am(a))});function Zi(e){return Tf(An,e)}c(Zi,"string");var he=w("ZodStringFormat",(e,n)=>{ve.init(e,n),uu.init(e,n)}),cu=w("ZodEmail",(e,n)=>{zl.init(e,n),he.init(e,n)});function Q_(e){return wa(cu,e)}c(Q_,"email");var Li=w("ZodGUID",(e,n)=>{Il.init(e,n),he.init(e,n)});function ey(e){return Ni(Li,e)}c(ey,"guid");var Rt=w("ZodUUID",(e,n)=>{Sl.init(e,n),he.init(e,n)});function ty(e){return Ia(Rt,e)}c(ty,"uuid");function ry(e){return Sa(Rt,e)}c(ry,"uuidv4");function ny(e){return za(Rt,e)}c(ny,"uuidv6");function iy(e){return Pa(Rt,e)}c(iy,"uuidv7");var Bi=w("ZodURL",(e,n)=>{Pl.init(e,n),he.init(e,n)});function oy(e){return Ci(Bi,e)}c(oy,"url");function ay(e){return Ci(Bi,{protocol:at.httpProtocol,hostname:at.domain,...C.normalizeParams(e)})}c(ay,"httpUrl");var su=w("ZodEmoji",(e,n)=>{jl.init(e,n),he.init(e,n)});function uy(e){return ja(su,e)}c(uy,"emoji");var lu=w("ZodNanoID",(e,n)=>{El.init(e,n),he.init(e,n)});function cy(e){return Ea(lu,e)}c(cy,"nanoid");var du=w("ZodCUID",(e,n)=>{Ul.init(e,n),he.init(e,n)});function sy(e){return Ua(du,e)}c(sy,"cuid");var fu=w("ZodCUID2",(e,n)=>{Dl.init(e,n),he.init(e,n)});function ly(e){return Da(fu,e)}c(ly,"cuid2");var pu=w("ZodULID",(e,n)=>{Tl.init(e,n),he.init(e,n)});function dy(e){return Ta(pu,e)}c(dy,"ulid");var mu=w("ZodXID",(e,n)=>{Ol.init(e,n),he.init(e,n)});function fy(e){return Oa(mu,e)}c(fy,"xid");var gu=w("ZodKSUID",(e,n)=>{Al.init(e,n),he.init(e,n)});function py(e){return Aa(gu,e)}c(py,"ksuid");var vu=w("ZodIPv4",(e,n)=>{Ll.init(e,n),he.init(e,n)});function my(e){return Na(vu,e)}c(my,"ipv4");var ym=w("ZodMAC",(e,n)=>{Fl.init(e,n),he.init(e,n)});function gy(e){return Af(ym,e)}c(gy,"mac");var hu=w("ZodIPv6",(e,n)=>{Vl.init(e,n),he.init(e,n)});function vy(e){return Ca(hu,e)}c(vy,"ipv6");var _u=w("ZodCIDRv4",(e,n)=>{Ml.init(e,n),he.init(e,n)});function hy(e){return Ra(_u,e)}c(hy,"cidrv4");var yu=w("ZodCIDRv6",(e,n)=>{Bl.init(e,n),he.init(e,n)});function _y(e){return Za(yu,e)}c(_y,"cidrv6");var bu=w("ZodBase64",(e,n)=>{Wl.init(e,n),he.init(e,n)});function yy(e){return La(bu,e)}c(yy,"base64");var $u=w("ZodBase64URL",(e,n)=>{Gl.init(e,n),he.init(e,n)});function by(e){return Va($u,e)}c(by,"base64url");var xu=w("ZodE164",(e,n)=>{Kl.init(e,n),he.init(e,n)});function $y(e){return Fa(xu,e)}c($y,"e164");var ku=w("ZodJWT",(e,n)=>{ql.init(e,n),he.init(e,n)});function xy(e){return Ma(ku,e)}c(xy,"jwt");var Nn=w("ZodCustomStringFormat",(e,n)=>{Hl.init(e,n),he.init(e,n)});function ky(e,n,a={}){return En(Nn,e,n,a)}c(ky,"stringFormat");function wy(e){return En(Nn,"hostname",at.hostname,e)}c(wy,"hostname");function Iy(e){return En(Nn,"hex",at.hex,e)}c(Iy,"hex");function Sy(e,n){let a=n?.enc??"hex",s=`${e}_${a}`,t=at[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return En(Nn,s,t,n)}c(Sy,"hash");var Cn=w("ZodNumber",(e,n)=>{ha.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>bp(e,s,t,o),Mi(e,"ZodNumber",{gt(s,t){return this.check(Nt(s,t))},gte(s,t){return this.check(Be(s,t))},min(s,t){return this.check(Be(s,t))},lt(s,t){return this.check(At(s,t))},lte(s,t){return this.check(ut(s,t))},max(s,t){return this.check(ut(s,t))},int(s){return this.check(ou(s))},safe(s){return this.check(ou(s))},positive(s){return this.check(Nt(0,s))},nonnegative(s){return this.check(Be(0,s))},negative(s){return this.check(At(0,s))},nonpositive(s){return this.check(ut(0,s))},multipleOf(s,t){return this.check(gr(s,t))},step(s,t){return this.check(gr(s,t))},finite(){return this}});let a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function bm(e){return Vf(Cn,e)}c(bm,"number");var Vr=w("ZodNumberFormat",(e,n)=>{Xl.init(e,n),Cn.init(e,n)});function ou(e){return Mf(Vr,e)}c(ou,"int");function zy(e){return Bf(Vr,e)}c(zy,"float32");function Py(e){return Jf(Vr,e)}c(Py,"float64");function jy(e){return Wf(Vr,e)}c(jy,"int32");function Ey(e){return Gf(Vr,e)}c(Ey,"uint32");var Rn=w("ZodBoolean",(e,n)=>{Pi.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>$p(e,a,s,t)});function $m(e){return Kf(Rn,e)}c($m,"boolean");var Zn=w("ZodBigInt",(e,n)=>{_a.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>xp(e,s,t,o),e.gte=(s,t)=>e.check(Be(s,t)),e.min=(s,t)=>e.check(Be(s,t)),e.gt=(s,t)=>e.check(Nt(s,t)),e.gte=(s,t)=>e.check(Be(s,t)),e.min=(s,t)=>e.check(Be(s,t)),e.lt=(s,t)=>e.check(At(s,t)),e.lte=(s,t)=>e.check(ut(s,t)),e.max=(s,t)=>e.check(ut(s,t)),e.positive=s=>e.check(Nt(BigInt(0),s)),e.negative=s=>e.check(At(BigInt(0),s)),e.nonpositive=s=>e.check(ut(BigInt(0),s)),e.nonnegative=s=>e.check(Be(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(gr(s,t));let a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null});function Uy(e){return Hf(Zn,e)}c(Uy,"bigint");var wu=w("ZodBigIntFormat",(e,n)=>{Yl.init(e,n),Zn.init(e,n)});function Dy(e){return Yf(wu,e)}c(Dy,"int64");function Ty(e){return Qf(wu,e)}c(Ty,"uint64");var xm=w("ZodSymbol",(e,n)=>{Ql.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>kp(e,a,s,t)});function Oy(e){return ep(xm,e)}c(Oy,"symbol");var km=w("ZodUndefined",(e,n)=>{ed.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Ip(e,a,s,t)});function Ay(e){return tp(km,e)}c(Ay,"_undefined");var wm=w("ZodNull",(e,n)=>{td.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>wp(e,a,s,t)});function Im(e){return rp(wm,e)}c(Im,"_null");var Sm=w("ZodAny",(e,n)=>{rd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Pp(e,a,s,t)});function Ny(){return np(Sm)}c(Ny,"any");var zm=w("ZodUnknown",(e,n)=>{nd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>jp(e,a,s,t)});function Lr(){return ip(zm)}c(Lr,"unknown");var Pm=w("ZodNever",(e,n)=>{id.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>zp(e,a,s,t)});function Iu(e){return op(Pm,e)}c(Iu,"never");var jm=w("ZodVoid",(e,n)=>{od.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Sp(e,a,s,t)});function Cy(e){return ap(jm,e)}c(Cy,"_void");var Ji=w("ZodDate",(e,n)=>{ad.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>Ep(e,s,t,o),e.min=(s,t)=>e.check(Be(s,t)),e.max=(s,t)=>e.check(ut(s,t));let a=e._zod.bag;e.minDate=a.minimum?new Date(a.minimum):null,e.maxDate=a.maximum?new Date(a.maximum):null});function Ry(e){return up(Ji,e)}c(Ry,"date");var Em=w("ZodArray",(e,n)=>{ud.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Fp(e,a,s,t),e.element=n.element,Mi(e,"ZodArray",{min(a,s){return this.check(Xt(a,s))},nonempty(a){return this.check(Xt(1,a))},max(a,s){return this.check(Rr(a,s))},length(a,s){return this.check(Zr(a,s))},unwrap(){return this.element}})});function Wi(e,n){return lp(Em,e,n)}c(Wi,"array");function Zy(e){let n=e._zod.def.shape;return zu(Object.keys(n))}c(Zy,"keyof");var Gi=w("ZodObject",(e,n)=>{cd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Mp(e,a,s,t),C.defineLazy(e,"shape",()=>n.shape),Mi(e,"ZodObject",{keyof(){return zu(Object.keys(this._zod.def.shape))},catchall(a){return this.clone({...this._zod.def,catchall:a})},passthrough(){return this.clone({...this._zod.def,catchall:Lr()})},loose(){return this.clone({...this._zod.def,catchall:Lr()})},strict(){return this.clone({...this._zod.def,catchall:Iu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(a){return C.extend(this,a)},safeExtend(a){return C.safeExtend(this,a)},merge(a){return C.merge(this,a)},pick(a){return C.pick(this,a)},omit(a){return C.omit(this,a)},partial(...a){return C.partial(ju,this,a[0])},required(...a){return C.required(Eu,this,a[0])}})});function Ly(e,n){let a={type:"object",shape:e??{},...C.normalizeParams(n)};return new Gi(a)}c(Ly,"object");function Vy(e,n){return new Gi({type:"object",shape:e,catchall:Iu(),...C.normalizeParams(n)})}c(Vy,"strictObject");function Fy(e,n){return new Gi({type:"object",shape:e,catchall:Lr(),...C.normalizeParams(n)})}c(Fy,"looseObject");var Ki=w("ZodUnion",(e,n)=>{ji.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Ha(e,a,s,t),e.options=n.options});function Su(e,n){return new Ki({type:"union",options:e,...C.normalizeParams(n)})}c(Su,"union");var Um=w("ZodXor",(e,n)=>{Ki.init(e,n),sd.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Ha(e,a,s,t),e.options=n.options});function My(e,n){return new Um({type:"union",options:e,inclusive:!1,...C.normalizeParams(n)})}c(My,"xor");var Dm=w("ZodDiscriminatedUnion",(e,n)=>{Ki.init(e,n),ld.init(e,n)});function By(e,n,a){return new Dm({type:"union",options:n,discriminator:e,...C.normalizeParams(a)})}c(By,"discriminatedUnion");var Tm=w("ZodIntersection",(e,n)=>{dd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Bp(e,a,s,t)});function Om(e,n){return new Tm({type:"intersection",left:e,right:n})}c(Om,"intersection");var Am=w("ZodTuple",(e,n)=>{ya.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Jp(e,a,s,t),e.rest=a=>e.clone({...e._zod.def,rest:a})});function Nm(e,n,a){let s=n instanceof X,t=s?a:n,o=s?n:null;return new Am({type:"tuple",items:e,rest:o,...C.normalizeParams(t)})}c(Nm,"tuple");var Tn=w("ZodRecord",(e,n)=>{fd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Wp(e,a,s,t),e.keyType=n.keyType,e.valueType=n.valueType});function Cm(e,n,a){return!n||!n._zod?new Tn({type:"record",keyType:Zi(),valueType:e,...C.normalizeParams(n)}):new Tn({type:"record",keyType:e,valueType:n,...C.normalizeParams(a)})}c(Cm,"record");function Jy(e,n,a){let s=Fe(e);return s._zod.values=void 0,new Tn({type:"record",keyType:s,valueType:n,...C.normalizeParams(a)})}c(Jy,"partialRecord");function Wy(e,n,a){return new Tn({type:"record",keyType:e,valueType:n,mode:"loose",...C.normalizeParams(a)})}c(Wy,"looseRecord");var Rm=w("ZodMap",(e,n)=>{pd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Lp(e,a,s,t),e.keyType=n.keyType,e.valueType=n.valueType,e.min=(...a)=>e.check(Ct(...a)),e.nonempty=a=>e.check(Ct(1,a)),e.max=(...a)=>e.check(vr(...a)),e.size=(...a)=>e.check(Cr(...a))});function Gy(e,n,a){return new Rm({type:"map",keyType:e,valueType:n,...C.normalizeParams(a)})}c(Gy,"map");var Zm=w("ZodSet",(e,n)=>{md.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Vp(e,a,s,t),e.min=(...a)=>e.check(Ct(...a)),e.nonempty=a=>e.check(Ct(1,a)),e.max=(...a)=>e.check(vr(...a)),e.size=(...a)=>e.check(Cr(...a))});function Ky(e,n){return new Zm({type:"set",valueType:e,...C.normalizeParams(n)})}c(Ky,"set");var On=w("ZodEnum",(e,n)=>{gd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(s,t,o)=>Up(e,s,t,o),e.enum=n.entries,e.options=Object.values(n.entries);let a=new Set(Object.keys(n.entries));e.extract=(s,t)=>{let o={};for(let d of s)if(a.has(d))o[d]=n.entries[d];else throw new Error(`Key ${d} not found in enum`);return new On({...n,checks:[],...C.normalizeParams(t),entries:o})},e.exclude=(s,t)=>{let o={...n.entries};for(let d of s)if(a.has(d))delete o[d];else throw new Error(`Key ${d} not found in enum`);return new On({...n,checks:[],...C.normalizeParams(t),entries:o})}});function zu(e,n){let a=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new On({type:"enum",entries:a,...C.normalizeParams(n)})}c(zu,"_enum");function qy(e,n){return new On({type:"enum",entries:e,...C.normalizeParams(n)})}c(qy,"nativeEnum");var Lm=w("ZodLiteral",(e,n)=>{vd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Dp(e,a,s,t),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function Hy(e,n){return new Lm({type:"literal",values:Array.isArray(e)?e:[e],...C.normalizeParams(n)})}c(Hy,"literal");var Vm=w("ZodFile",(e,n)=>{hd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Ap(e,a,s,t),e.min=(a,s)=>e.check(Ct(a,s)),e.max=(a,s)=>e.check(vr(a,s)),e.mime=(a,s)=>e.check(wn(Array.isArray(a)?a:[a],s))});function Xy(e){return dp(Vm,e)}c(Xy,"file");var Fm=w("ZodTransform",(e,n)=>{_d.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Zp(e,a,s,t),e._zod.parse=(a,s)=>{if(s.direction==="backward")throw new lr(e.constructor.name);a.addIssue=o=>{if(typeof o=="string")a.issues.push(C.issue(o,a.value,n));else{let d=o;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=a.value),d.inst??(d.inst=e),a.issues.push(C.issue(d))}};let t=n.transform(a.value,a);return t instanceof Promise?t.then(o=>(a.value=o,a.fallback=!0,a)):(a.value=t,a.fallback=!0,a)}});function Pu(e){return new Fm({type:"transform",transform:e})}c(Pu,"transform");var ju=w("ZodOptional",(e,n)=>{ba.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Xa(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Vi(e){return new ju({type:"optional",innerType:e})}c(Vi,"optional");var Mm=w("ZodExactOptional",(e,n)=>{yd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Xa(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Bm(e){return new Mm({type:"optional",innerType:e})}c(Bm,"exactOptional");var Jm=w("ZodNullable",(e,n)=>{bd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Gp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Fi(e){return new Jm({type:"nullable",innerType:e})}c(Fi,"nullable");function Yy(e){return Vi(Fi(e))}c(Yy,"nullish");var Wm=w("ZodDefault",(e,n)=>{$d.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>qp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Gm(e,n){return new Wm({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():C.shallowClone(n)}})}c(Gm,"_default");var Km=w("ZodPrefault",(e,n)=>{xd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Hp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function qm(e,n){return new Km({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():C.shallowClone(n)}})}c(qm,"prefault");var Eu=w("ZodNonOptional",(e,n)=>{kd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Kp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Hm(e,n){return new Eu({type:"nonoptional",innerType:e,...C.normalizeParams(n)})}c(Hm,"nonoptional");var Xm=w("ZodSuccess",(e,n)=>{wd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Np(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function Qy(e){return new Xm({type:"success",innerType:e})}c(Qy,"success");var Ym=w("ZodCatch",(e,n)=>{Id.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Xp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Qm(e,n){return new Ym({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}c(Qm,"_catch");var eg=w("ZodNaN",(e,n)=>{Sd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Tp(e,a,s,t)});function eb(e){return sp(eg,e)}c(eb,"nan");var qi=w("ZodPipe",(e,n)=>{$a.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Yp(e,a,s,t),e.in=n.in,e.out=n.out});function au(e,n){return new qi({type:"pipe",in:e,out:n})}c(au,"pipe");var Hi=w("ZodCodec",(e,n)=>{qi.init(e,n),Ei.init(e,n)});function tb(e,n,a){return new Hi({type:"pipe",in:e,out:n,transform:a.decode,reverseTransform:a.encode})}c(tb,"codec");function rb(e){let n=e._zod.def;return new Hi({type:"pipe",in:n.out,out:n.in,transform:n.reverseTransform,reverseTransform:n.transform})}c(rb,"invertCodec");var tg=w("ZodPreprocess",(e,n)=>{qi.init(e,n),zd.init(e,n)}),rg=w("ZodReadonly",(e,n)=>{Pd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Qp(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function ng(e){return new rg({type:"readonly",innerType:e})}c(ng,"readonly");var ig=w("ZodTemplateLiteral",(e,n)=>{jd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Op(e,a,s,t)});function nb(e,n){return new ig({type:"template_literal",parts:e,...C.normalizeParams(n)})}c(nb,"templateLiteral");var og=w("ZodLazy",(e,n)=>{Dd.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>tm(e,a,s,t),e.unwrap=()=>e._zod.def.getter()});function ag(e){return new og({type:"lazy",getter:e})}c(ag,"lazy");var ug=w("ZodPromise",(e,n)=>{Ud.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>em(e,a,s,t),e.unwrap=()=>e._zod.def.innerType});function ib(e){return new ug({type:"promise",innerType:e})}c(ib,"promise");var cg=w("ZodFunction",(e,n)=>{Ed.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Rp(e,a,s,t)});function ob(e){return new cg({type:"function",input:Array.isArray(e?.input)?Nm(e?.input):e?.input??Wi(Lr()),output:e?.output??Lr()})}c(ob,"_function");var Xi=w("ZodCustom",(e,n)=>{Td.init(e,n),te.init(e,n),e._zod.processJSONSchema=(a,s,t)=>Cp(e,a,s,t)});function ab(e){let n=new ye({check:"custom"});return n._zod.check=e,n}c(ab,"check");function ub(e,n){return fp(Xi,e??(()=>!0),n)}c(ub,"custom");function sg(e,n={}){return pp(Xi,e,n)}c(sg,"refine");function lg(e,n){return mp(e,n)}c(lg,"superRefine");var cb=gp,sb=vp;function lb(e,n={}){let a=new Xi({type:"custom",check:"custom",fn:c(s=>s instanceof e,"fn"),abort:!0,...C.normalizeParams(n)});return a._zod.bag.Class=e,a._zod.check=s=>{s.value instanceof e||s.issues.push({code:"invalid_type",expected:e.name,input:s.value,inst:a,path:[...a._zod.def.path??[]]})},a}c(lb,"_instanceof");var db=c((...e)=>hp({Codec:Hi,Boolean:Rn,String:An},...e),"stringbool");function fb(e){let n=ag(()=>Su([Zi(e),bm(),$m(),Im(),Wi(n),Cm(Zi(),n)]));return n}c(fb,"json");function pb(e,n){return new tg({type:"pipe",in:Pu(e),out:n})}c(pb,"preprocess");var Pj={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function jj(e){Ie({customError:e})}c(jj,"setErrorMap");function Ej(){return Ie().customError}c(Ej,"getErrorMap");var dg;dg||(dg={});var F={...Ri,...eu,iso:Dn},Uj=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Dj(e,n){let a=e.$schema;return a==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":a==="http://json-schema.org/draft-07/schema#"?"draft-7":a==="http://json-schema.org/draft-04/schema#"?"draft-4":n??"draft-2020-12"}c(Dj,"detectVersion");function Tj(e,n){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let a=e.slice(1).split("/").filter(Boolean);if(a.length===0)return n.rootSchema;let s=n.version==="draft-2020-12"?"$defs":"definitions";if(a[0]===s){let t=a[1];if(!t||!n.defs[t])throw new Error(`Reference not found: ${e}`);return n.defs[t]}throw new Error(`Reference not found: ${e}`)}c(Tj,"resolveRef");function mb(e,n){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return F.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let t=e.$ref;if(n.refs.has(t))return n.refs.get(t);if(n.processing.has(t))return F.lazy(()=>{if(!n.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return n.refs.get(t)});n.processing.add(t);let o=Tj(t,n),d=Re(o,n);return n.refs.set(t,d),n.processing.delete(t),d}if(e.enum!==void 0){let t=e.enum;if(n.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return F.null();if(t.length===0)return F.never();if(t.length===1)return F.literal(t[0]);if(t.every(d=>typeof d=="string"))return F.enum(t);let o=t.map(d=>F.literal(d));return o.length<2?o[0]:F.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return F.literal(e.const);let a=e.type;if(Array.isArray(a)){let t=a.map(o=>{let d={...e,type:o};return mb(d,n)});return t.length===0?F.never():t.length===1?t[0]:F.union(t)}if(!a)return F.any();let s;switch(a){case"string":{let t=F.string();if(e.format){let o=e.format;o==="email"?t=t.check(F.email()):o==="uri"||o==="uri-reference"?t=t.check(F.url()):o==="uuid"||o==="guid"?t=t.check(F.uuid()):o==="date-time"?t=t.check(F.iso.datetime()):o==="date"?t=t.check(F.iso.date()):o==="time"?t=t.check(F.iso.time()):o==="duration"?t=t.check(F.iso.duration()):o==="ipv4"?t=t.check(F.ipv4()):o==="ipv6"?t=t.check(F.ipv6()):o==="mac"?t=t.check(F.mac()):o==="cidr"?t=t.check(F.cidrv4()):o==="cidr-v6"?t=t.check(F.cidrv6()):o==="base64"?t=t.check(F.base64()):o==="base64url"?t=t.check(F.base64url()):o==="e164"?t=t.check(F.e164()):o==="jwt"?t=t.check(F.jwt()):o==="emoji"?t=t.check(F.emoji()):o==="nanoid"?t=t.check(F.nanoid()):o==="cuid"?t=t.check(F.cuid()):o==="cuid2"?t=t.check(F.cuid2()):o==="ulid"?t=t.check(F.ulid()):o==="xid"?t=t.check(F.xid()):o==="ksuid"&&(t=t.check(F.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),s=t;break}case"number":case"integer":{let t=a==="integer"?F.number().int():F.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),s=t;break}case"boolean":{s=F.boolean();break}case"null":{s=F.null();break}case"object":{let t={},o=e.properties||{},d=new Set(e.required||[]);for(let[_,h]of Object.entries(o)){let x=Re(h,n);t[_]=d.has(_)?x:x.optional()}if(e.propertyNames){let _=Re(e.propertyNames,n),h=e.additionalProperties&&typeof e.additionalProperties=="object"?Re(e.additionalProperties,n):F.any();if(Object.keys(t).length===0){s=F.record(_,h);break}let x=F.object(t).passthrough(),z=F.looseRecord(_,h);s=F.intersection(x,z);break}if(e.patternProperties){let _=e.patternProperties,h=Object.keys(_),x=[];for(let b of h){let I=Re(_[b],n),T=F.string().regex(new RegExp(b));x.push(F.looseRecord(T,I))}let z=[];if(Object.keys(t).length>0&&z.push(F.object(t).passthrough()),z.push(...x),z.length===0)s=F.object({}).passthrough();else if(z.length===1)s=z[0];else{let b=F.intersection(z[0],z[1]);for(let I=2;I<z.length;I++)b=F.intersection(b,z[I]);s=b}break}let p=F.object(t);e.additionalProperties===!1?s=p.strict():typeof e.additionalProperties=="object"?s=p.catchall(Re(e.additionalProperties,n)):s=p.passthrough();break}case"array":{let t=e.prefixItems,o=e.items;if(t&&Array.isArray(t)){let d=t.map(_=>Re(_,n)),p=o&&typeof o=="object"&&!Array.isArray(o)?Re(o,n):void 0;p?s=F.tuple(d).rest(p):s=F.tuple(d),typeof e.minItems=="number"&&(s=s.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(s=s.check(F.maxLength(e.maxItems)))}else if(Array.isArray(o)){let d=o.map(_=>Re(_,n)),p=e.additionalItems&&typeof e.additionalItems=="object"?Re(e.additionalItems,n):void 0;p?s=F.tuple(d).rest(p):s=F.tuple(d),typeof e.minItems=="number"&&(s=s.check(F.minLength(e.minItems))),typeof e.maxItems=="number"&&(s=s.check(F.maxLength(e.maxItems)))}else if(o!==void 0){let d=Re(o,n),p=F.array(d);typeof e.minItems=="number"&&(p=p.min(e.minItems)),typeof e.maxItems=="number"&&(p=p.max(e.maxItems)),s=p}else s=F.array(F.any());break}default:throw new Error(`Unsupported type: ${a}`)}return s}c(mb,"convertBaseSchema");function Re(e,n){if(typeof e=="boolean")return e?F.any():F.never();let a=mb(e,n),s=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let p=e.anyOf.map(h=>Re(h,n)),_=F.union(p);a=s?F.intersection(a,_):_}if(e.oneOf&&Array.isArray(e.oneOf)){let p=e.oneOf.map(h=>Re(h,n)),_=F.xor(p);a=s?F.intersection(a,_):_}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)a=s?a:F.any();else{let p=s?a:Re(e.allOf[0],n),_=s?0:1;for(let h=_;h<e.allOf.length;h++)p=F.intersection(p,Re(e.allOf[h],n));a=p}e.nullable===!0&&n.version==="openapi-3.0"&&(a=F.nullable(a)),e.readOnly===!0&&(a=F.readonly(a)),e.default!==void 0&&(a=a.default(e.default));let t={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let p of o)p in e&&(t[p]=e[p]);let d=["contentEncoding","contentMediaType","contentSchema"];for(let p of d)p in e&&(t[p]=e[p]);for(let p of Object.keys(e))Uj.has(p)||(t[p]=e[p]);return Object.keys(t).length>0&&n.registry.add(a,t),e.description&&(a=a.describe(e.description)),a}c(Re,"convertSchema");function gb(e,n){if(typeof e=="boolean")return e?F.any():F.never();let a;try{a=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let s=Dj(a,n?.defaultTarget),t=a.$defs||a.definitions||{},o={version:s,defs:t,refs:new Map,processing:new Set,rootSchema:a,registry:n?.registry??Oe};return Re(a,o)}c(gb,"fromJSONSchema");var fg={};Ot(fg,{bigint:()=>Cj,boolean:()=>Nj,date:()=>Rj,number:()=>Aj,string:()=>Oj});function Oj(e){return Of(An,e)}c(Oj,"string");function Aj(e){return Ff(Cn,e)}c(Aj,"number");function Nj(e){return qf(Rn,e)}c(Nj,"boolean");function Cj(e){return Xf(Zn,e)}c(Cj,"bigint");function Rj(e){return cp(Ji,e)}c(Rj,"date");Ie(Ui());var Zj=Object.defineProperty,Tu=c((e,n)=>Zj(e,"name",{value:n,configurable:!0}),"__name"),Ou=u.array(u.string().or(u.record(u.string(),u.any()))),rO=u.object({type:u.string().optional(),narrative:u.string().optional()}),eo=u.string().or(u.object({id:u.string(),type:u.string(),caption:u.string().optional()})),Lj=u.object({type:u.string().min(1).or(u.string().array().nonempty()),latitude:u.number(),longitude:u.number()}),Vj=u.object({type:u.string().min(1).or(u.string().array().nonempty()),addressCountry:u.string().optional(),addressCountryCode:u.string().optional(),addressRegion:u.string().optional(),addressLocality:u.string().optional(),streetAddress:u.string().optional(),postOfficeBoxNumber:u.string().optional(),postalCode:u.string().optional(),geo:Lj.optional()}),Fj=u.enum(["sourcedId","systemId","productId","userName","accountId","emailAddress","nationalIdentityNumber","isbn","issn","lisSourcedId","oneRosterSourcedId","sisSourcedId","ltiContextId","ltiDeploymentId","ltiToolId","ltiPlatformId","ltiUserId","identifier"]).or(u.string()),Eb=u.object({type:u.string().min(1).or(u.string().array().nonempty()),identifier:u.string(),identifierType:Fj}),Yi=u.string().or(u.object({id:u.string().optional(),type:u.string().or(u.string().array().nonempty().optional()),name:u.string().optional(),url:u.string().optional(),phone:u.string().optional(),description:u.string().optional(),endorsement:u.any().array().optional(),image:eo.optional(),email:u.string().email().optional(),address:Vj.optional(),otherIdentifier:Eb.array().optional(),official:u.string().optional(),parentOrg:u.any().optional(),familyName:u.string().optional(),givenName:u.string().optional(),additionalName:u.string().optional(),patronymicName:u.string().optional(),honorificPrefix:u.string().optional(),honorificSuffix:u.string().optional(),familyNamePrefix:u.string().optional(),dateOfBirth:u.string().optional()}).catchall(u.any())),mg=u.object({id:u.string().optional()}).catchall(u.any()),Uu=u.object({type:u.string(),id:u.string()}).catchall(u.any()),vb=u.object({id:u.string(),type:u.string()}).catchall(u.any()),hb=u.object({id:u.string().optional(),type:u.string()}).catchall(u.any()),_b=u.object({type:u.string(),id:u.string().optional()}).catchall(u.any()),yb=u.object({id:u.string().optional(),type:u.array(u.string()).nonempty(),name:u.string().optional(),narrative:u.string().optional(),description:u.string().optional(),genre:u.string().optional(),audience:u.string().optional()}).catchall(u.any()),Mj=u.object({type:u.literal("TemplateRenderMethod"),renderSuite:u.string(),template:u.string(),renderProperty:u.array(u.string()).optional(),outputPreference:u.object({mediaType:u.string()}).optional()}),bb=u.union([Mj,u.record(u.string(),u.any())]),br=u.object({"@context":Ou,id:u.string().optional(),type:u.string().array().nonempty(),issuer:Yi,credentialSubject:mg.or(mg.array()),refreshService:hb.or(hb.array()).optional(),credentialSchema:vb.or(vb.array()).optional(),issuanceDate:u.string().optional(),expirationDate:u.string().optional(),credentialStatus:Uu.or(Uu.array()).optional(),name:u.string().optional(),description:u.string().optional(),validFrom:u.string().optional(),validUntil:u.string().optional(),status:Uu.or(Uu.array()).optional(),termsOfUse:_b.or(_b.array()).optional(),evidence:u.union([yb,u.array(yb)]).optional(),renderMethod:u.union([bb,u.array(bb)]).optional()}).catchall(u.any()),_t=u.object({type:u.string(),created:u.string(),challenge:u.string().optional(),domain:u.string().optional(),nonce:u.string().optional(),proofPurpose:u.string(),verificationMethod:u.string(),jws:u.string().optional()}).catchall(u.any()),Zt=br.extend({proof:_t.or(_t.array())}),Bj=u.object({"@context":Ou,id:u.string().optional(),type:u.string().or(u.string().array().nonempty()),verifiableCredential:Zt.or(Zt.array()).optional(),holder:u.string().optional()}).catchall(u.any()),Ln=Bj.extend({proof:_t.or(_t.array())}),hg=u.object({kty:u.string(),crv:u.string(),x:u.string(),y:u.string().optional(),n:u.string().optional(),d:u.string().optional()}),oO=hg.omit({d:!0}).extend({d:u.string()}),Jj=u.object({alg:u.string(),iv:u.string(),tag:u.string(),epk:hg.partial().optional(),kid:u.string().optional(),apv:u.string().optional(),apu:u.string().optional()}),Wj=u.object({header:Jj,encrypted_key:u.string()}),Gj=u.object({protected:u.string(),iv:u.string(),ciphertext:u.string(),tag:u.string(),aad:u.string().optional(),recipients:Wj.array().optional()}),Fr=u.string().or(u.object({"@context":Ou.optional(),id:u.string(),type:u.string(),controller:u.string(),publicKeyJwk:hg.optional(),publicKeyBase58:u.string().optional(),publicKeyMultibase:u.string().optional(),blockChainAccountId:u.string().optional()}).catchall(u.any())),Kj=u.object({id:u.string(),type:u.string().or(u.string().array().nonempty()),serviceEndpoint:u.any().or(u.any().array().nonempty())}).catchall(u.any()),aO=u.object({"@context":Ou,id:u.string(),alsoKnownAs:u.string().optional(),controller:u.string().or(u.string().array().nonempty()).optional(),verificationMethod:Fr.array().optional(),authentication:Fr.array().optional(),assertionMethod:Fr.array().optional(),keyAgreement:Fr.array().optional(),capabilityInvocation:Fr.array().optional(),capabilityDelegation:Fr.array().optional(),publicKey:Fr.array().optional(),service:Kj.array().optional(),proof:_t.or(_t.array()).optional()}).catchall(u.any()),qj=u.enum(["ceasn:Competency","ceterms:Credential","CFItem","CFRubric","CFRubricCriterion","CFRubricCriterionLevel","CTDL"]).or(u.string()),Au=u.object({type:u.string().array().nonempty(),targetCode:u.string().optional(),targetDescription:u.string().optional(),targetName:u.string(),targetFramework:u.string().optional(),targetType:qj.optional(),targetUrl:u.string()}),Hj=u.enum(["Achievement","ApprenticeshipCertificate","Assessment","Assignment","AssociateDegree","Award","Badge","BachelorDegree","Certificate","CertificateOfCompletion","Certification","CommunityService","Competency","Course","CoCurricular","Degree","Diploma","DoctoralDegree","Fieldwork","GeneralEducationDevelopment","JourneymanCertificate","LearningProgram","License","Membership","ProfessionalDoctorate","QualityAssuranceCredential","MasterCertificate","MasterDegree","MicroCredential","ResearchDoctorate","SecondarySchoolDiploma"]),Xj=Hj.or(u.string()),Yj=u.object({id:u.string().optional(),narrative:u.string().optional()}).catchall(u.any()),Qj=u.object({id:u.string(),type:u.string().array().nonempty(),endorsementComment:u.string().optional()}),Ub=br.extend({credentialSubject:Qj,proof:_t.or(_t.array()).optional()}),eE=u.object({id:u.string(),"@language":u.string().optional(),version:u.string().optional()}),tE=u.enum(["GradePointAverage","LetterGrade","Percent","PerformanceLevel","PredictedScore","RawScore","Result","RubricCriterion","RubricCriterionLevel","RubricScore","ScaledScore","Status"]).or(u.string()),rE=u.object({id:u.string(),type:u.string().array().nonempty(),alignment:Au.array().optional(),description:u.string().optional(),level:u.string().optional(),name:u.string(),points:u.string().optional()}).catchall(u.any()),nE=u.object({id:u.string(),type:u.string().array().nonempty(),alignment:Au.array().optional(),allowedValue:u.string().array().optional(),name:u.string(),requiredLevel:u.string().optional(),requiredValue:u.string().optional(),resultType:tE,rubricCriterionLevel:rE.array().optional(),valueMax:u.string().optional(),valueMin:u.string().optional()}).catchall(u.any()),cO=u.object({id:u.string().optional(),type:u.array(u.string()).nonempty(),name:u.string().optional(),narrative:u.string().optional(),description:u.string().optional(),genre:u.string().optional(),audience:u.string().optional()}).catchall(u.any()),Db=u.object({id:u.string().optional(),type:u.array(u.string()).nonempty(),alignment:Au.array().optional(),achievementType:Xj.optional(),creator:Yi.optional(),creditsAvailable:u.number().optional(),criteria:Yj,description:u.string(),endorsement:Ub.array().optional(),fieldOfStudy:u.string().optional(),humanCode:u.string().optional(),image:eo.optional(),"@language":u.string().optional(),name:u.string(),otherIdentifier:Eb.array().optional(),related:eE.array().optional(),resultDescription:nE.array().optional(),specialization:u.string().optional(),tag:u.array(u.string()).optional(),version:u.string().optional()}).catchall(u.any()),iE=u.object({type:u.string(),hashed:u.boolean(),identityHash:u.string(),identityType:u.string(),salt:u.string().optional()}),oE=u.enum(["Completed","Enrolled","Failed","InProgress","OnHold","Withdrew"]),aE=u.object({type:u.string().array().nonempty(),achievedLevel:u.string().optional(),alignment:Au.array().optional(),resultDescription:u.string().optional(),status:oE.optional(),value:u.string().optional()}).catchall(u.any()),$b=u.object({id:u.string().optional(),type:u.string().array().nonempty(),activityEndDate:u.string().optional(),activityStartDate:u.string().optional(),creditsEarned:u.number().optional(),achievement:Db.optional(),identifier:iE.array().optional(),image:eo.optional(),licenseNumber:u.string().optional(),narrative:u.string().optional(),result:aE.array().optional(),role:u.string().optional(),source:Yi.optional(),term:u.string().optional()}).catchall(u.any()),uE=br.extend({name:u.string().optional(),description:u.string().optional(),image:eo.optional(),credentialSubject:$b.or($b.array()),endorsement:br.array().optional()}),sO=uE.extend({proof:_t.or(_t.array())}),cE=u.enum(["exactMatchOf","extends","isChildOf","isParentOf","isPartOf","isPeerOf","isRelatedTo","precedes","replacedBy"]).or(u.string()),sE=u.object({type:u.string().array().nonempty(),associationType:cE,sourceId:u.string().optional(),targetId:u.string()}).catchall(u.any()),xb=u.object({id:u.string().optional(),type:u.string().array().nonempty(),identifier:u.any().array().optional(),achievement:Db.array().optional(),association:sE.array().optional(),verifiableCredential:u.any().array().optional()}).catchall(u.any()),lE=br.extend({name:u.string().optional(),description:u.string().optional(),image:eo.optional(),credentialSubject:xb.or(xb.array()),endorsement:Ub.array().optional(),partial:u.boolean().optional()}),dO=lE.extend({proof:_t.or(_t.array())}),_g=u.enum(["w3c-vc-2.0","w3c-vc-1.1","jwt-vc-json","dc+sd-jwt","vc+sd-jwt","mso_mdoc"]),Nu=u.object({format:_g,data:u.string()}).passthrough(),yg=Tu(e=>{if(!e||typeof e!="object")return!1;let n=e;return typeof n.format!="string"||!_g.safeParse(n.format).success?!1:typeof n.data=="string"||n.data instanceof Uint8Array},"isStoredCredentialEnvelope"),dE=u.object({entryType:u.string(),statusPurpose:u.string(),isSet:u.boolean(),statusListCredential:u.string().optional(),statusListIndex:u.string().optional()}),mO=u.object({checks:u.string().array(),warnings:u.string().array(),errors:u.string().array(),status:dE.array().optional()}),Tb=u.enum(["Success","Failed","Error"]),gO=Tb.enum,vO=u.object({check:u.string(),status:Tb,message:u.string().optional(),details:u.string().optional()}),hO=u.object({title:u.string().optional(),createdAt:u.string().optional(),issuer:Yi.optional(),issuee:Yi.optional(),credentialSubject:mg.optional()}),_O=u.object({id:u.string(),uri:u.string(),format:_g.optional(),semanticType:u.string().optional(),rawWireForm:u.string().optional()}).catchall(u.any()),$O=u.object({limit:u.number(),cursor:u.string().optional(),sort:u.string().optional()}),Pe=u.object({cursor:u.string().optional(),hasMore:u.boolean()}),Ob=u.object({encryptedRecord:Gj,fields:u.string().array()}).catchall(u.any()),xO=Pe.extend({records:Ob.array()}),fE=Ob.extend({id:u.string()}),kO=Pe.extend({records:fE.array()}),kb=Tu(e=>{let n=e.match(/^\/(.*)\/([gimsuy]*)$/);if(!n)throw new Error("Invalid RegExp string format");return{pattern:n[1],flags:n[2]}},"parseRegexString"),pE=u.string().refine(e=>{try{return kb(e),!0}catch{return!1}},{message:"Invalid RegExp string format. Must be in format '/pattern/flags'"}).transform(e=>{let{pattern:n,flags:a}=kb(e);try{return new RegExp(n,a)}catch(s){throw new Error(`Invalid RegExp: ${s.message}`)}}).meta({override:{type:"string"}}),mE=u.preprocess(e=>e instanceof RegExp?`/${e.source}/${e.flags}`:e,pE),wb=u.string().or(u.object({$in:u.string().array()})).or(u.object({$regex:mE})),Q=u.union([wb,u.object({$or:wb.array()})]),gE=u.object({backgroundColor:u.string().optional(),backgroundImage:u.string().optional(),fadeBackgroundImage:u.boolean().optional(),repeatBackgroundImage:u.boolean().optional(),fontColor:u.string().optional(),accentColor:u.string().optional(),accentFontColor:u.string().optional(),idBackgroundImage:u.string().optional(),fadeIdBackgroundImage:u.boolean().optional(),idBackgroundColor:u.string().optional(),repeatIdBackgroundImage:u.boolean().optional()}),vE=u.enum(["public","connections_only","private"]),hE=u.enum(["anyone","invite_only"]),Ae=u.object({profileId:u.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),displayName:u.string().default("").describe("Human-readable display name for the profile."),shortBio:u.string().default("").describe("Short bio for the profile."),bio:u.string().default("").describe("Longer bio for the profile."),did:u.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),isPrivate:u.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),profileVisibility:vE.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),showEmail:u.boolean().default(!1).optional().describe("Whether to show email to connections."),allowConnectionRequests:hE.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),email:u.string().optional().describe("Contact email address for the profile. (deprecated)"),image:u.string().optional().describe("Profile image URL for the profile."),heroImage:u.string().optional().describe("Hero image URL for the profile."),websiteLink:u.string().optional().describe("Website link for the profile."),isServiceProfile:u.boolean().default(!1).optional().describe("Whether the profile is a service profile or not."),type:u.string().optional().describe('Profile type: e.g. "person", "organization", "service".'),notificationsWebhook:u.string().url().startsWith("http").optional().describe("URL to send notifications to."),display:gE.optional().describe("Display settings for the profile."),highlightedCredentials:u.array(u.string()).max(5).optional().describe("Up to 5 unique boost URIs to highlight on the profile."),role:u.string().default("").optional().describe('Role of the profile: e.g. "teacher", "student".'),dob:u.string().default("").optional().describe('Date of birth of the profile: e.g. "1990-01-01".'),country:u.string().optional().describe("Country for the profile."),approved:u.boolean().optional().describe("Approval status for the profile.")}),Ab=Ae.pick({profileId:!0,displayName:!0,shortBio:!0,image:!0,heroImage:!0,type:!0,isServiceProfile:!0,display:!0}),Nb=Ab.extend({bio:Ae.shape.bio,websiteLink:Ae.shape.websiteLink,role:Ae.shape.role,highlightedCredentials:Ae.shape.highlightedCredentials,did:Ae.shape.did}),_E=Nb.extend({email:Ae.shape.email}),bg=u.union([_E.strict(),Nb.strict(),Ab.strict(),Ae]),SO=u.object({profileId:Q,displayName:Q,shortBio:Q,bio:Q,email:Q,websiteLink:Q,isServiceProfile:u.boolean(),type:Q}).partial(),zO=Pe.extend({records:Ae.array()}),PO=Pe.extend({records:bg.array()}),jO=u.enum(["CONNECTED","PENDING_REQUEST_SENT","PENDING_REQUEST_RECEIVED","NOT_CONNECTED"]),Cb=u.object({id:u.string(),created:u.string(),displayName:u.string().default("").optional(),shortBio:u.string().default("").optional(),bio:u.string().default("").optional(),email:u.string().optional(),image:u.string().optional(),heroImage:u.string().optional()}),EO=Pe.extend({records:Cb.extend({did:u.string()}).array()}),UO=u.object({id:Q,displayName:Q,shortBio:Q,bio:Q,email:Q}).partial(),DO=Pe.extend({records:u.object({profile:Ae,manager:Cb.extend({did:u.string()}).optional()}).array()}),TO=u.object({uri:u.string(),to:u.string(),from:u.string(),sent:u.iso.datetime(),received:u.iso.datetime().optional(),metadata:u.record(u.string(),u.unknown()).optional()}),Du=u.object({role:u.string(),canView:u.boolean().default(!0),canEdit:u.boolean(),canIssue:u.boolean(),canRevoke:u.boolean(),canManagePermissions:u.boolean(),canIssueChildren:u.string(),canCreateChildren:u.string(),canEditChildren:u.string(),canRevokeChildren:u.string(),canManageChildrenPermissions:u.string(),canManageChildrenProfiles:u.boolean().optional(),canViewAnalytics:u.boolean()}),yE=u.object({role:Q,canView:u.boolean(),canEdit:u.boolean(),canIssue:u.boolean(),canRevoke:u.boolean(),canManagePermissions:u.boolean(),canIssueChildren:Q,canCreateChildren:Q,canEditChildren:Q,canRevokeChildren:Q,canManageChildrenPermissions:Q,canManageChildrenProfiles:u.boolean(),canViewAnalytics:u.boolean()}).partial(),pg=u.enum(["GRANT_PERMISSIONS","ADD_ADMIN","AUTO_CONNECT"]),bE=u.discriminatedUnion("type",[u.object({type:u.literal(pg.enum.GRANT_PERMISSIONS),data:u.object({claimUri:u.string(),targetUri:u.string(),permissions:Du.partial()})}),u.object({type:u.literal(pg.enum.ADD_ADMIN),data:u.object({claimUri:u.string(),targetUri:u.string()})}),u.object({type:u.literal(pg.enum.AUTO_CONNECT),data:u.object({claimUri:u.string(),targetUri:u.string()})})]),OO=u.object({type:Q,data:u.object({claimUri:Q,targetUri:Q,permissions:yE.partial()}).partial()}),$E=u.object({id:u.string(),createdAt:u.string(),updatedAt:u.string()}).and(bE),AO=Pe.extend({records:$E.array()}),gg=u.enum(["DRAFT","PROVISIONAL","LIVE"]),Rb=u.object({uri:u.string(),name:u.string().optional(),type:u.string().optional(),category:u.string().optional(),created:u.string().optional(),status:gg.optional(),autoConnectRecipients:u.boolean().optional(),meta:u.record(u.string(),u.any()).optional(),claimPermissions:Du.optional(),defaultPermissions:Du.optional(),allowAnyoneToCreateChildren:u.boolean().optional()}),Ib=u.object({uri:Q,name:Q,type:Q,category:Q,meta:u.record(u.string(),Q),status:gg.or(u.object({$in:gg.array()})),autoConnectRecipients:u.boolean()}).partial(),NO=u.union([u.object({$or:Ib.array()}),Ib]),CO=Pe.extend({records:Rb.array()}),xE=u.object({to:bg,from:u.string(),received:u.string().optional(),uri:u.string().optional(),status:u.enum(["active","revoked","suspended"]).optional()}),RO=Pe.extend({records:xE.array()}),kE=u.object({to:bg,from:u.string(),received:u.string().optional(),boostUris:u.array(u.string()),credentialUris:u.array(u.string()).optional(),status:u.enum(["active","revoked","suspended"]).optional()}),ZO=Pe.extend({records:kE.array()}),LO=u.object({endpoint:u.string(),name:u.string(),did:u.string().optional()}),VO=u.object({ttlSeconds:u.number().optional(),totalUses:u.number().optional()}),wE=u.object({endpoint:u.string()}),FO=u.object({signingAuthority:wE,relationship:u.object({name:u.string().max(15).regex(/^[a-z0-9-]+$/,{message:"The input string must contain only lowercase letters, numbers, and hyphens."}),did:u.string(),isPrimary:u.boolean().optional()})}),MO=u.object({boostUri:u.string(),signingAuthority:u.object({endpoint:u.string(),name:u.string()})}),IE=Rb.partial().omit({uri:!0,claimPermissions:!0}).extend({credential:Zt.or(br),claimPermissions:Du.partial().optional(),skills:u.array(u.object({frameworkId:u.string(),id:u.string(),proficiencyLevel:u.number().optional()})).min(1).optional()}),SE=u.object({issuerName:u.string().optional().describe("Name of the issuing organization"),issuerLogoUrl:u.string().url().optional().describe("Logo URL of the issuing organization"),credentialName:u.string().optional().describe("Display name for the credential"),recipientName:u.string().optional().describe("Name of the recipient for personalization")}),Zb=u.enum(["AWAITING_GUARDIAN","GUARDIAN_APPROVED","GUARDIAN_REJECTED"]),zE=u.object({webhookUrl:u.string().url().optional().describe("Webhook URL to receive claim notifications"),suppressDelivery:u.boolean().optional().describe("If true, returns claimUrl without sending email/SMS"),branding:SE.optional().describe("Branding for email/SMS delivery"),guardianEmail:u.string().email().optional().describe("Guardian email that must approve before student can claim")}),PE=u.object({type:u.literal("boost"),recipient:u.string().describe("Profile ID, DID, email, or phone number (auto-detected)"),contractUri:u.string().optional(),templateUri:u.string().optional(),template:IE.optional(),signedCredential:Zt.optional(),options:zE.optional().describe("Options for email/phone recipients (Universal Inbox)"),templateData:u.record(u.string(),u.unknown()).optional(),integrationId:u.string().optional().describe("Integration ID for activity tracking")}).refine(e=>e.templateUri||e.template||e.signedCredential,{message:"Either templateUri, template, or signedCredential must be provided.",path:["templateUri"]}).refine(e=>e.options?.guardianEmail?e.options.guardianEmail.toLowerCase()!==e.recipient.toLowerCase():!0,{message:"guardianEmail must differ from recipient (self-approval not allowed)",path:["options","guardianEmail"]}),jE=u.object({issuanceId:u.string(),status:u.enum(["PENDING","ISSUED","EXPIRED","DELIVERED","CLAIMED"]),claimUrl:u.string().url().optional().describe("Present when suppressDelivery=true"),guardianStatus:Zb.optional().describe("Present when guardianEmail was specified")}),EE=u.object({type:u.literal("boost"),credentialUri:u.string(),uri:u.string(),activityId:u.string().describe("Links to the activity lifecycle for this issuance"),inbox:jE.optional().describe("Present when sent via email/phone (Universal Inbox)")}),BO=u.discriminatedUnion("type",[PE]),JO=u.discriminatedUnion("type",[EE]),Lb=u.enum(["live","stale","withdrawn"]),UE=u.object({read:u.object({anonymize:u.boolean().optional(),credentials:u.object({categories:u.record(u.string(),u.object({required:u.boolean(),defaultEnabled:u.boolean().optional()})).default({})}).prefault({categories:{}}),personal:u.record(u.string(),u.object({required:u.boolean(),defaultEnabled:u.boolean().optional()})).default({})}).prefault({credentials:{categories:{}},personal:{}}),write:u.object({credentials:u.object({categories:u.record(u.string(),u.object({required:u.boolean(),defaultEnabled:u.boolean().optional()})).default({})}).prefault({categories:{}}),personal:u.record(u.string(),u.object({required:u.boolean(),defaultEnabled:u.boolean().optional()})).default({})}).prefault({credentials:{categories:{}},personal:{}})}),$g=u.object({contract:UE,owner:Ae,name:u.string(),subtitle:u.string().optional(),description:u.string().optional(),reasonForAccessing:u.string().optional(),image:u.string().optional(),uri:u.string(),needsGuardianConsent:u.boolean().optional(),redirectUrl:u.string().optional(),frontDoorBoostUri:u.string().optional(),createdAt:u.string(),updatedAt:u.string(),expiresAt:u.string().optional(),autoBoosts:u.string().array().optional(),writers:u.array(Ae).optional()}),DE=u.enum(["pending","accepted","denied"]).nullable(),TE=u.enum(["unseen","seen"]).nullable(),OE=u.object({profile:Ae,status:DE,readStatus:TE.optional()}),WO=u.array(OE),GO=Pe.extend({records:$g.omit({owner:!0}).array()}),AE=u.object({credentials:u.object({categories:u.record(u.string(),u.string().array()).default({})}),personal:u.record(u.string(),u.string()).default({}),date:u.string()}),KO=Pe.extend({records:AE.array()}),NE=u.object({credentials:u.object({category:u.string(),uri:u.string()}).array(),personal:u.record(u.string(),u.string()).default({}),date:u.string(),contractUri:u.string()}),qO=Pe.extend({records:NE.array()}),Vb=u.object({sharing:u.boolean().optional(),shared:u.string().array().optional(),shareAll:u.boolean().optional(),shareUntil:u.string().optional()}),xg=u.object({read:u.object({anonymize:u.boolean().optional(),credentials:u.object({shareAll:u.boolean().optional(),sharing:u.boolean().optional(),categories:u.record(u.string(),Vb).default({})}).prefault({categories:{}}),personal:u.record(u.string(),u.string()).default({})}).prefault({credentials:{categories:{}},personal:{}}),write:u.object({credentials:u.object({categories:u.record(u.string(),u.boolean()).default({})}).prefault({categories:{}}),personal:u.record(u.string(),u.boolean()).default({})}).prefault({credentials:{categories:{}},personal:{}}),deniedWriters:u.array(u.string()).optional()}),HO=Pe.extend({records:u.object({expiresAt:u.string().optional(),oneTime:u.boolean().optional(),terms:xg,contract:$g,uri:u.string(),consenter:Ae,status:Lb}).array()}),XO=u.object({read:u.object({anonymize:u.boolean().optional(),credentials:u.object({categories:u.record(u.string(),u.object({required:u.boolean().optional()})).optional()}).optional(),personal:u.record(u.string(),u.object({required:u.boolean().optional()})).optional()}).optional(),write:u.object({credentials:u.object({categories:u.record(u.string(),u.object({required:u.boolean().optional()})).optional()}).optional(),personal:u.record(u.string(),u.object({required:u.boolean().optional()})).optional()}).optional()}),YO=u.object({anonymize:u.boolean().optional(),credentials:u.object({categories:u.record(u.string(),u.boolean()).optional()}).optional(),personal:u.record(u.string(),u.boolean()).optional()}),QO=u.object({credentials:u.object({categories:u.record(u.string(),u.boolean()).optional()}).optional(),personal:u.record(u.string(),u.boolean()).optional(),id:Q.optional()}),CE=u.object({read:u.object({anonymize:u.boolean().optional(),credentials:u.object({shareAll:u.boolean().optional(),sharing:u.boolean().optional(),categories:u.record(u.string(),Vb.optional()).optional()}).optional(),personal:u.record(u.string(),u.string()).optional()}).optional(),write:u.object({credentials:u.object({categories:u.record(u.string(),u.boolean()).optional()}).optional(),personal:u.record(u.string(),u.boolean()).optional()}).optional()}),vg=u.enum(["consent","update","sync","withdraw","write"]),eA=u.object({terms:CE.optional(),action:vg.or(vg.array()).optional(),date:u.object({$gt:u.string()}).or(u.object({$lt:u.string()})).or(u.object({$eq:u.string()})).optional(),expiresAt:u.object({$gt:u.string()}).or(u.object({$lt:u.string()})).or(u.object({$eq:u.string()})).optional(),oneTime:u.boolean().optional()}),kg=u.object({expiresAt:u.string().optional(),oneTime:u.boolean().optional(),terms:xg.optional(),id:u.string(),action:vg,date:u.string(),uris:u.string().array().optional()}),RE=u.object({termsUri:u.string(),status:Lb,contract:$g,terms:xg,transactions:kg.array()}),tA=u.object({consentRecords:RE.array(),truncated:u.boolean().optional(),warnings:u.string().array().optional(),limits:u.object({maxConsentRecords:u.number(),maxTransactionsPerConsentRecord:u.number()}).optional()}),rA=Pe.extend({records:kg.array()}),Sb=u.object({id:Q,name:Q,description:Q,sourceURI:Q,status:Q}).partial(),nA=u.union([u.object({$or:Sb.array()}),Sb]),ZE=u.object({credentialUri:u.string(),termsUri:u.string(),contractUri:u.string(),boostUri:u.string(),category:u.string().optional(),date:u.string()}),iA=Pe.extend({records:ZE.array()}),LE=u.enum(["CONNECTION_REQUEST","CONNECTION_REQUEST_EXPIRED_INVITE","CONNECTION_ACCEPTED","CREDENTIAL_RECEIVED","CREDENTIAL_ACCEPTED","BOOST_RECEIVED","BOOST_ACCEPTED","PRESENTATION_REQUEST","PRESENTATION_RECEIVED","CONSENT_FLOW_TRANSACTION","ISSUANCE_CLAIMED","ISSUANCE_DELIVERED","ISSUANCE_ERROR","PROFILE_PARENT_APPROVED","APP_LISTING_SUBMITTED","APP_LISTING_APPROVED","APP_LISTING_REJECTED","APP_LISTING_WITHDRAWN","DEVICE_LINK_REQUEST","GUARDIAN_APPROVAL_PENDING","GUARDIAN_APPROVED","GUARDIAN_REJECTED","APP_NOTIFICATION"]),VE=u.object({title:u.string().optional(),body:u.string().optional()}),FE=u.object({type:u.string(),value:u.string()}),Cu=u.enum(["PENDING","ISSUED","EXPIRED","DELIVERED","CLAIMED"]),ME=u.object({issuanceId:u.string(),status:Cu,recipient:u.object({contactMethod:FE.optional(),learnCardId:u.string().optional()}),timestamp:u.iso.datetime().optional()}),BE=u.object({vcUris:u.array(u.string()).optional(),vpUris:u.array(u.string()).optional(),transaction:kg.optional(),inbox:ME.optional(),metadata:u.record(u.string(),u.unknown()).optional()}).loose(),oA=u.object({type:LE,to:Ae.partial().and(u.object({did:u.string()})),from:u.union([u.string(),Ae.partial().and(u.object({did:u.string()}))]),message:VE.optional(),data:BE.optional(),sent:u.iso.datetime().optional(),webhookUrl:u.string().optional()}),JE="auth-grant:",aA=u.object({id:u.string(),name:u.string(),description:u.string().optional(),challenge:u.string().startsWith(JE).min(10,{message:"Challenge is too short"}).max(100,{message:"Challenge is too long"}),status:u.enum(["revoked","active"],{error:Tu(e=>e.code==="invalid_value"?"Status must be either active or revoked":"Status is required","error")}),scope:u.string(),createdAt:u.iso.datetime({error:"createdAt must be a valid ISO 8601 datetime string"}),expiresAt:u.iso.datetime({error:"expiresAt must be a valid ISO 8601 datetime string"}).nullish().optional()}),uA=u.object({id:u.string()}).catchall(u.any()),WE=u.enum(["active","revoked"]),cA=u.object({id:Q,name:Q,description:Q,status:WE}).partial(),zb=u.object({id:u.string(),isVerified:u.boolean(),verifiedAt:u.string().optional(),isPrimary:u.boolean(),createdAt:u.string()}),sA=u.discriminatedUnion("type",[u.object({type:u.literal("email"),value:u.string().email()}).merge(zb),u.object({type:u.literal("phone"),value:u.string()}).merge(zb)]),Pb=u.object({isVerified:u.boolean().optional(),isPrimary:u.boolean().optional()}),lA=u.discriminatedUnion("type",[u.object({type:u.literal("email"),value:u.string().email()}).merge(Pb),u.object({type:u.literal("phone"),value:u.string()}).merge(Pb)]),Fb=u.discriminatedUnion("type",[u.object({type:u.literal("email"),value:u.string().email()}),u.object({type:u.literal("phone"),value:u.string()})]),GE=u.object({value:u.string(),type:u.enum(["email","phone"])}),dA=u.object({token:u.string()}),fA=u.object({contactMethodId:u.string()}),pA=u.object({contactMethod:GE,otpChallenge:u.string()}),mA=u.object({sessionJwt:u.string()}),KE=u.object({id:u.string(),credential:u.string(),isSigned:u.boolean(),currentStatus:Cu,isAccepted:u.boolean().optional(),expiresAt:u.string(),createdAt:u.string(),issuerDid:u.string(),webhookUrl:u.string().optional(),boostUri:u.string().optional(),activityId:u.string().optional(),integrationId:u.string().optional(),signingAuthority:u.object({endpoint:u.string().optional(),name:u.string().optional()}).optional(),guardianEmail:u.string().email().optional(),guardianStatus:Zb.optional(),guardianApprovedAt:u.string().optional(),guardianApprovedByDid:u.string().optional()}),gA=u.object({hasMore:u.boolean(),records:u.array(KE),cursor:u.string().optional()}),vA=u.object({currentStatus:Cu,id:u.string(),isSigned:u.boolean(),isAccepted:u.boolean().optional(),issuerDid:u.string(),boostUri:u.string()}).partial(),qE=u.object({endpoint:u.string().url(),name:u.string()}),hA=u.object({recipient:Fb.describe("The recipient of the credential"),credential:Zt.or(Ln).or(br).optional().describe("The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."),templateUri:u.string().optional().describe("URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."),configuration:u.object({signingAuthority:qE.optional().describe("The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."),webhookUrl:u.string().url().optional().describe("The webhook URL to receive credential issuance events."),expiresInDays:u.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),templateData:u.record(u.string(),u.unknown()).optional().describe("Template data to render into the boost credential template using Mustache syntax. Only used when boostUri is provided."),delivery:u.object({suppress:u.boolean().optional().default(!1).describe("Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."),template:u.object({id:u.enum(["universal-inbox-claim"]).optional().describe("The template ID to use for the credential delivery. If not provided, the default template will be used."),model:u.object({issuer:u.object({name:u.string().optional().describe('The name of the organization (e.g., "State University").'),logoUrl:u.string().url().optional().describe("The URL of the organization's logo.")}).optional(),credential:u.object({name:u.string().optional().describe('The name of the credential (e.g., "Bachelor of Science").'),type:u.string().optional().describe('The type of the credential (e.g., "degree", "certificate").')}).optional(),recipient:u.object({name:u.string().optional().describe('The name of the recipient (e.g., "John Doe").')}).optional()}).describe("The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used.")}).optional().describe("The template to use for the credential delivery. If not provided, the default template will be used.")}).optional().describe("Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used.")}).optional().describe("Configuration for the credential issuance. If not provided, the default configuration will be used.")}).refine(e=>e.credential||e.templateUri,{message:"Either credential or templateUri must be provided.",path:["credential"]}),_A=u.object({issuanceId:u.string(),status:Cu,recipient:Fb,claimUrl:u.string().url().optional(),recipientDid:u.string().optional()}),HE=u.object({name:u.string()}).passthrough(),yA=u.object({credential:Zt.or(Ln).or(br).or(HE).describe("The credential to issue, or a { name } reference to resolve a boost template."),configuration:u.object({publishableKey:u.string(),signingAuthorityName:u.string().optional(),listingId:u.string().optional(),listingSlug:u.string().optional()}).optional()}),wg=u.union([u.string().regex(/^(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,{message:"Must be a valid domain (incl. subdomains), localhost, or IPv4, optionally with port"}),u.string().regex(/^https?:\/\/(?:(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}|localhost|\d{1,3}(?:\.\d{1,3}){3})(?::\d{1,5})?$/,{message:"Must be a valid http(s) origin"})]),Mb=u.enum(["setup","active","paused"]),XE=u.object({id:u.string(),name:u.string(),description:u.string().optional(),publishableKey:u.string(),whitelistedDomains:u.array(wg).default([]),status:Mb.default("setup"),guideType:u.string().optional(),guideState:u.record(u.string(),u.any()).optional(),createdAt:u.string().optional(),updatedAt:u.string().optional()}),bA=u.object({name:u.string(),description:u.string().optional(),whitelistedDomains:u.array(wg).default([]),guideType:u.string().optional()}),$A=u.object({name:u.string().optional(),description:u.string().optional(),whitelistedDomains:u.array(wg).optional(),rotatePublishableKey:u.boolean().optional(),status:Mb.optional(),guideType:u.string().optional(),guideState:u.record(u.string(),u.any()).optional()}),xA=u.object({id:Q,name:Q,description:Q,status:Q,guideType:Q}).partial(),kA=Pe.extend({records:XE.array()}),wA=u.object({token:u.string(),contactMethodId:u.string(),autoVerifyContactMethod:u.boolean().optional().default(!1),createdAt:u.string(),expiresAt:u.string(),used:u.boolean()}),IA=u.object({id:u.string(),name:u.string().min(1),slug:u.string().min(1),createdAt:u.string().optional(),updatedAt:u.string().optional()}),Qi=u.enum(["active","archived"]),Ig=u.object({id:u.string(),statement:u.string(),description:u.string().optional(),code:u.string().optional(),icon:u.string().optional(),type:u.string().default("skill"),status:Qi.default("active"),frameworkId:u.string().optional(),createdAt:u.string().optional(),updatedAt:u.string().optional()}),jb=u.object({id:Q,statement:Q,description:Q,code:Q,type:Q,status:Qi.or(u.object({$in:Qi.array()}))}).partial(),SA=u.union([u.object({$or:jb.array()}),jb]),zA=u.object({text:u.string().min(1),frameworkId:u.string().optional(),limit:u.number().int().min(1).max(200).default(50)}),YE=Ig.extend({score:u.number()}),PA=u.object({records:YE.array()}),Sg=u.enum(["active","archived"]),Bb=u.object({id:u.string(),name:u.string(),description:u.string().optional(),image:u.string().optional(),sourceURI:u.string().url().optional(),isPublic:u.boolean().default(!1),status:Sg.default("active"),createdAt:u.string().optional(),updatedAt:u.string().optional()}),jA=Pe.extend({records:Bb.array()}),zg=Ig.extend({children:u.array(u.lazy(()=>zg)),hasChildren:u.boolean(),childrenCursor:u.string().nullable().optional()}),QE=u.object({hasMore:u.boolean(),cursor:u.string().nullable(),records:u.array(zg)}),Vn=u.lazy(()=>u.object({id:u.string().optional(),statement:u.string(),description:u.string().optional(),code:u.string().optional(),icon:u.string().optional(),type:u.string().optional(),status:Qi.optional(),children:u.array(Vn).optional()})),EA=u.object({frameworkId:u.string()}),eU=u.object({id:u.string().optional(),name:u.string().min(1),description:u.string().optional(),image:u.string().optional(),sourceURI:u.string().url().optional(),isPublic:u.boolean().optional(),status:Sg.optional(),skills:u.array(Vn).optional(),boostUris:u.array(u.string()).optional()}),UA=u.object({id:u.string(),name:u.string().min(1).optional(),description:u.string().optional(),image:u.string().optional(),sourceURI:u.string().url().optional(),isPublic:u.boolean().optional(),status:Sg.optional()}).refine(e=>e.name!==void 0||e.description!==void 0||e.image!==void 0||e.sourceURI!==void 0||e.isPublic!==void 0||e.status!==void 0,{message:"At least one field must be provided to update",path:["name"]}),DA=u.object({id:u.string()}),TA=u.object({frameworks:u.array(eU.extend({skills:u.array(Vn).optional()})).min(1)}),OA=u.object({frameworkId:u.string(),profileId:u.string()}),AA=u.object({frameworkId:u.string()}),NA=Ae.array(),CA=u.object({id:u.string()}),RA=u.object({slug:u.string().min(1),name:u.string().min(1)}),ZA=u.object({frameworkId:u.string(),skill:Vn,parentId:u.string().nullable().optional()}),LA=u.object({frameworkId:u.string(),id:u.string(),statement:u.string().optional(),description:u.string().optional(),code:u.string().optional(),icon:u.string().optional(),type:u.string().optional(),status:Qi.optional()}).refine(e=>e.statement!==void 0||e.description!==void 0||e.code!==void 0||e.icon!==void 0||e.type!==void 0||e.status!==void 0,{message:"At least one field must be provided to update a skill",path:["statement"]}),tU=u.enum(["recursive","reparent"]),VA=u.object({frameworkId:u.string(),id:u.string(),strategy:tU.optional().default("reparent")}),FA=u.object({frameworkId:u.string(),skills:u.array(Vn).min(1),parentId:u.string().nullable().optional()}),MA=u.object({frameworkId:u.string(),skills:u.array(Vn).min(0)}),BA=u.object({created:u.number().int().min(0),updated:u.number().int().min(0),deleted:u.number().int().min(0),unchanged:u.number().int().min(0),total:u.number().int().min(0)}),JA=u.object({frameworkId:u.string(),skillId:u.string().optional(),recursive:u.boolean().optional().default(!1),onlyCountCompetencies:u.boolean().optional().default(!1)}),WA=u.object({count:u.number().int().min(0)}),GA=u.object({frameworkId:u.string()}),KA=u.object({skills:u.array(zg)}),qA=u.object({frameworkId:u.string(),skillId:u.string()}),HA=u.object({path:u.array(Ig)}),XA=u.object({framework:Bb,skills:QE}),rU=u.enum(["DRAFT","PENDING_REVIEW","LISTED","ARCHIVED"]),nU=u.enum(["EMBEDDED_IFRAME","SECOND_SCREEN","DIRECT_LINK","CONSENT_REDIRECT","SERVER_HEADLESS","AI_TUTOR"]),iU=u.enum(["FEATURED_CAROUSEL","CURATED_LIST","STANDARD","DEMOTED"]),oU=u.enum(["4+","9+","12+","17+"]),aU=u.object({profileId:u.string(),displayName:u.string(),email:u.string().optional()}),Ru=u.object({listing_id:u.string(),slug:u.string().optional(),display_name:u.string(),tagline:u.string(),full_description:u.string(),icon_url:u.string(),app_listing_status:rU,launch_type:nU,launch_config_json:u.string(),category:u.string().optional(),promo_video_url:u.string().optional(),promotion_level:iU.optional(),ios_app_store_id:u.string().optional(),android_app_store_id:u.string().optional(),privacy_policy_url:u.string().optional(),terms_url:u.string().optional(),highlights:u.array(u.string()).optional(),screenshots:u.array(u.string()).optional(),hero_background_color:u.string().optional(),min_age:u.number().int().min(0).max(18).optional(),age_rating:oU.optional(),submitted_at:u.string().optional(),submitter:aU.optional(),contact_email:u.string().email().optional()}),YA=Ru.omit({listing_id:!0,app_listing_status:!0,promotion_level:!0}),QA=Ru.partial().omit({listing_id:!0,app_listing_status:!0,promotion_level:!0}),uU=Ru.extend({installed_at:u.string()}),eN=Pe.extend({records:Ru.array()}),tN=Pe.extend({records:uU.array()}),rN=u.object({templateAlias:u.string().min(1).max(50).regex(/^[a-z0-9-]+$/),boostUri:u.string()}),cU=u.object({type:u.literal("send-credential"),templateAlias:u.string(),templateData:u.record(u.string(),u.unknown()).optional(),preventDuplicateClaim:u.boolean().optional()}),sU=u.object({type:u.literal("check-credential"),templateAlias:u.string().optional(),boostUri:u.string().optional()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),lU=u.object({type:u.literal("check-issuance-status"),templateAlias:u.string().optional(),boostUri:u.string().optional(),recipient:u.string()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),dU=u.object({type:u.literal("get-template-recipients"),templateAlias:u.string().optional(),boostUri:u.string().optional(),limit:u.number().optional(),cursor:u.string().optional()}).refine(e=>!!e.templateAlias!=!!e.boostUri,{message:"Exactly one of templateAlias or boostUri is required"}),fU=u.object({type:u.literal("request-learner-context"),includeCredentials:u.boolean().optional().default(!0),includePersonalData:u.boolean().optional().default(!1),format:u.enum(["prompt","structured"]).optional().default("prompt"),instructions:u.string().optional(),detailLevel:u.enum(["compact","expanded"]).optional().default("compact"),waitForSync:u.boolean().optional().default(!1)}),pU=u.object({occupations:u.array(u.string()).nullable(),careers:u.array(u.string()).nullable(),jobs:u.array(u.string()).nullable(),skills:u.array(u.string()).nullable(),fieldOfStudy:u.string().nullable()}),mU=u.object({title:u.string().describe("Short, concise title for the learning session or credential"),summary:u.string().describe("Comprehensive summary of what happened during the session"),learned:u.array(u.string()).describe("Bullet points of key knowledge gained"),skills:u.array(u.object({title:u.string().describe("Name of the skill category"),description:u.string().describe("Detailed description of what this skill category involves")})).describe("Categorized skills learned during the session"),nextSteps:u.array(u.object({title:u.string().describe("Title of the suggested next step"),description:u.string().describe("Description explaining why this next step is recommended"),keywords:pU.optional().describe("Optional taxonomy keywords for occupations/careers/jobs/skills/fieldOfStudy. Omit if not relevant.")})).describe("Recommended follow-up activities or learning modules"),reflections:u.array(u.object({title:u.string().describe("Title of the reflection"),description:u.string().describe("Detailed description of what this reflection involves")})).describe("Reflections on the learning experience")}),gU=u.object({type:u.literal("send-ai-session-credential"),sessionTitle:u.string(),summaryData:mU,metadata:u.record(u.string(),u.unknown()).optional()}),vU=u.object({type:u.literal("send-notification"),title:u.string().optional(),body:u.string().optional(),actionPath:u.string().optional(),category:u.string().optional(),priority:u.enum(["normal","high"]).optional()}),Pg=u.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/,"Key must be alphanumeric with _ or -"),hU=u.object({type:u.literal("increment-counter"),key:Pg,amount:u.number().int().finite()}),_U=u.object({type:u.literal("get-counter"),key:Pg}),yU=u.object({type:u.literal("get-counters"),keys:u.array(Pg).min(1).max(50).optional()}),bU=u.discriminatedUnion("type",[cU,sU,lU,dU,fU,gU,vU,hU,_U,yU]),nN=u.object({listingId:u.string(),event:bU}),iN=u.record(u.string(),u.unknown()),$U=u.enum(["CREATED","DELIVERED","CLAIMED","EXPIRED","FAILED"]),xU=u.enum(["profile","email","phone"]),kU=u.enum(["send","sendBoost","sendCredential","contract","claim","inbox","claimLink","acceptCredential","appEvent"]),wU=u.object({id:u.string(),activityId:u.string(),eventType:$U,timestamp:u.string(),actorProfileId:u.string().optional(),recipientType:xU,recipientIdentifier:u.string(),boostUri:u.string().optional(),credentialUri:u.string().optional(),inboxCredentialId:u.string().optional(),integrationId:u.string().optional(),source:kU,metadata:u.record(u.string(),u.unknown()).optional(),status:u.enum(["active","revoked","suspended"]).optional()}),IU=wU.extend({boost:u.object({id:u.string(),name:u.string().optional(),category:u.string().optional()}).optional(),recipientProfile:u.object({profileId:u.string(),displayName:u.string().optional()}).optional()}),oN=Pe.extend({records:IU.array()}),aN=u.object({total:u.number(),created:u.number(),delivered:u.number(),claimed:u.number(),expired:u.number(),failed:u.number(),claimRate:u.number()}),Mr,uN=(Mr=class extends Error{constructor(n,a){super(n),this.reason=a,this.name="AuthSessionError"}},c(Mr,"AuthSessionError"),Tu(Mr,"AuthSessionError"),Mr),SU=["revocation","suspension"];var jg=u.enum(SU),zU=u.object({id:u.string().optional(),type:u.literal("BitstringStatusListEntry"),statusPurpose:jg,statusListIndex:u.string(),statusListCredential:u.string()}),sN=zU.extend({id:u.string()}),lN=u.object({id:u.string().optional(),type:u.literal("BitstringStatusList"),statusPurpose:jg,encodedList:u.string()}),dN=u.object({statusPurposes:u.array(jg).optional(),listSize:u.number().int().positive().optional()}).default({});var Yb=d_(qb(),1);var Fn={"SHA-1":{outputLength:20,blockSize:64},"SHA-256":{outputLength:32,blockSize:64},"SHA-384":{outputLength:48,blockSize:128},"SHA-512":{outputLength:64,blockSize:128}};function Xb(e,n,a,s,t="SHA-256"){return new Promise(((o,d)=>{t in Fn||d(new RangeError(`Valid hash algorithm values are any of ${Object.keys(Fn).toString()}`)),typeof e=="string"?e=new TextEncoder().encode(e):e instanceof ArrayBuffer?e=new Uint8Array(e):ArrayBuffer.isView(e)||d(RangeError("P should be string, ArrayBuffer, TypedArray, DataView")),typeof n=="string"?n=new TextEncoder().encode(n):n instanceof ArrayBuffer?n=new Uint8Array(n):ArrayBuffer.isView(n)?n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):d(RangeError("S should be string, ArrayBuffer, TypedArray, DataView")),crypto.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]).then((p=>{let _={name:"PBKDF2",hash:t,salt:n,iterations:a};crypto.subtle.deriveBits(_,p,8*s).then((h=>o(h)),(h=>{(async function(x,z,b,I,T){if(!(T in Fn))throw new RangeError(`Valid hash algorithm values are any of ${Object.keys(Fn).toString()}`);if(!Number.isInteger(b)||b<=0)throw new RangeError("c must be a positive integer");let Z=Fn[T].outputLength;if(!Number.isInteger(I)||I<=0||I>=(2**32-1)*Z)throw new RangeError("dkLen must be a positive integer < (2 ** 32 - 1) * hLen");let L=Math.ceil(I/Z),H=I-(L-1)*Z,W=new Array(L);x.byteLength===0&&(x=new Uint8Array(Fn[T].blockSize));let ae=await crypto.subtle.importKey("raw",x,{name:"HMAC",hash:{name:T}},!0,["sign"]),B=c(async function(ge,st){let Lt=await crypto.subtle.sign("HMAC",ge,st);return new Uint8Array(Lt)},"g");for(let ge=0;ge<L;ge++)W[ge]=await ce(ae,z,b,ge+1);async function ce(ge,st,Lt,Zu){function Lu(xr){let ro=new ArrayBuffer(4);return new DataView(ro).setUint32(0,xr,!1),new Uint8Array(ro)}c(Lu,"i");let Bn=await B(ge,Hb(st,Lu(Zu))),Jn=Bn;for(let xr=1;xr<Lt;xr++)Jn=await B(ge,Jn),CU(Bn,Jn);return Bn}return c(ce,"h"),W[L-1]=W[L-1].slice(0,H),Hb(...W).buffer})(e,n,a,s,t).then((x=>o(x)),(x=>d(x)))}))}),(p=>d(p)))}))}c(Xb,"t");function Hb(...e){let n=e.reduce(((t,o)=>t+o.length),0);if(e.length===0)throw new RangeError("Cannot concat no arrays");let a=new Uint8Array(n),s=0;for(let t of e)a.set(t,s),s+=t.length;return a}c(Hb,"r");function CU(e,n){for(let a=0;a<e.length;a++)e[a]^=n[a]}c(CU,"n");var Mn=c(async(e,n)=>{let a=await e.invoke.hash?.(n,"PBKDF2-HMAC-SHA256");if(a)return a;let s=e.invoke.crypto(),t=new TextEncoder().encode(n),o=e.id.keypair("secp256k1").d,d=await Xb(o,"salt",1e3,32),p=await s.subtle.importKey("raw",d,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),_=await s.subtle.sign("HMAC",p,t);return Array.from(new Uint8Array(_)).map(x=>x.toString(16).padStart(2,"0")).join("")},"hash"),ct=c(async(e,n,a)=>e.invoke.createDagJwe(a,[n]),"generateJWE"),Pt=c(async(e,n)=>e.invoke.decryptDagJwe(n),"decryptJWE"),Br=c(async(e,n,a=[])=>{let s=Object.entries(n);return(await Promise.all(s.map(async([t,o])=>a.includes(t)?"":await Mn(e,`${t}:${(0,Yb.default)(o)}`)))).filter(Boolean)},"generateEncryptedFieldsArray"),Jr=c(async(e,n,a=[])=>{let s=await e.invoke.createDagJwe(n),t=await Br(e,n,a);return{...Object.fromEntries(Object.entries(n).filter(([d])=>a.includes(d))),encryptedRecord:s,fields:t}},"generateEncryptedRecord");var RU=c(e=>{let n="";for(let s=0;s<e.length;s+=1)n+=String.fromCharCode(e[s]);return(typeof btoa=="function"?btoa(n):Buffer.from(n,"binary").toString("base64")).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},"uint8ArrayToBase64Url"),Qb=c(e=>!yg(e)||typeof e.data=="string"?e:{...e,data:RU(e.data)},"normalizeEnvelopeForTransport"),Eg=c(async(e,n)=>(0,t$.getClient)(e,async a=>{let s=await n.invoke.getDidAuthVp({proofFormat:"jwt",challenge:a});if(typeof s!="string")throw new Error("Error getting DID-Auth-JWT!");return s}),"getLearnCloudClient"),ZU=c(async(e,n,a=[],s=[],t=!0)=>{let o=e;o.debug?.("Adding LearnCloud Plugin");let d=await Eg(n,o),p=[o.id.did()];d.user.getDids.query().then(b=>p=b);let _={},h=d.utilities.getDid.query(),x=c(async b=>(_[b]||(_[b]=await Eg(b,o)),_[b]),"getOtherClient"),z=c(async b=>{let I=o.id.did(),T=b.id.did();if(I!==T){if(!p.includes(T)&&t){let Z=await b.invoke.getDidAuthVp();await d.user.addDid.mutate({presentation:Z}),T.split(":")[1]==="web"&&await d.user.setPrimaryDid.mutate({presentation:Z}),p=await d.user.getDids.query()}d=await Eg(n,b)}o=b},"updateLearnCard");return{name:"LearnCloud",displayName:"LearnCloud",description:"LearnCloud Integration",methods:{learnCloudCreate:c(async(b,I)=>{await z(b);let T=await Jr(b,I,s);return d.customStorage.create.mutate({item:await ct(b,await h,T)})},"learnCloudCreate"),learnCloudCreateMany:c(async(b,I)=>{await z(b);let T=await Promise.all(I.map(async Z=>Jr(b,Z,s)));return d.customStorage.createMany.mutate({items:await ct(b,await h,T)})},"learnCloudCreateMany"),learnCloudRead:c(async(b,I,T)=>{await z(b);let Z=[],L=await b.invoke.learnCloudReadPage(I,{},T);for(Z.push(...L.records);L.hasMore;)L=await b.invoke.learnCloudReadPage(I,{},T),Z.push(...L.records);return Z},"learnCloudRead"),learnCloudReadPage:c(async(b,I,T,Z)=>{if(await z(b),!I){let B=await d.customStorage.read.query({includeAssociatedDids:Z,...T}),ce=(0,jt.isEncrypted)(B)?await Pt(b,B):B;return{...ce,records:await Promise.all(ce.records.map(async ge=>({...await Pt(b,ge.encryptedRecord),_id:ge._id})))}}let L=await Br(b,I,[...s,"_id"]),H=Object.fromEntries(Object.entries(I).filter(([B])=>[...s,"_id"].includes(B))),W=await d.customStorage.read.query({query:await ct(b,await h,{...H,...L.length>0?{fields:{$in:L}}:{}}),...T,includeAssociatedDids:Z}),ae=(0,jt.isEncrypted)(W)?await Pt(b,W):W;return{...ae,records:await Promise.all(ae.records.map(async B=>({...await Pt(b,B.encryptedRecord),_id:B._id})))}},"learnCloudReadPage"),learnCloudCount:c(async(b,I,T)=>{if(await z(b),!I)return d.customStorage.count.query({includeAssociatedDids:T});let Z=await Br(b,I,[...s,"_id"]),L=Object.fromEntries(Object.entries(I).filter(([H])=>[...s,"_id"].includes(H)));return d.customStorage.count.query({query:await ct(b,await h,{...L,...Z.length>0?{fields:{$in:Z}}:{}}),includeAssociatedDids:T})},"learnCloudCount"),learnCloudUpdate:c(async(b,I,T)=>{await z(b);let Z=await b.invoke.learnCloudRead(I);return(await Promise.all(Z.map(async H=>d.customStorage.update.mutate({query:await ct(b,await h,{_id:H._id}),update:await ct(b,await h,await Jr(b,{...H,...T},s))})))).reduce((H,W)=>W+H,0)},"learnCloudUpdate"),learnCloudDelete:c(async(b,I,T)=>{if(await z(b),!I)return d.customStorage.delete.mutate({includeAssociatedDids:T});let Z=await Br(b,I,[...s,"_id"]),L=Object.fromEntries(Object.entries(I).filter(([H])=>[...s,"_id"].includes(H)));return d.customStorage.delete.mutate({query:await ct(b,await h,{...L,...Z.length>0?{fields:{$in:Z}}:{}}),includeAssociatedDids:T})},"learnCloudDelete"),learnCloudBatchResolve:c(async(b,I)=>{let T=await d.storage.batchResolve.query({uris:I});return Promise.all(T.map(async Z=>{if(!Z)return null;try{let L=await b.invoke.decryptDagJwe(Z),H=await Zt.or(Ln).or(Nu).parseAsync(L),W=(0,jt.resolveStorageReadResult)(H);return W===void 0||yg(W)?null:W}catch(L){return b.debug?.(L),null}}))},"learnCloudBatchResolve")},read:{get:c(async(b,I)=>{if(o.debug?.("LearnCloud read.get",I),!I)return;let T=I.split(":");if(o.debug?.("LearnCloud read.get parts:",T),T.length!==5)return;let[Z,L,H]=T;if(Z!=="lc"||L!=="cloud"){o.debug?.("LearnCloud read.get not cloud URI!",{lc:Z,method:L});return}if(H.replace(/https?:\/\//g,"")!==n.replace(/https?:\/\//g,"").replace(/:/g,"%3A")){let W=(H.startsWith("http")?H:`http${H.includes("http")||H.includes("localhost")?"":"s"}://${H}`).replaceAll("%3A",":");o.debug?.("LearnCloud read.get different LearnCloud!",{uriUrl:H,url:n,fullUrl:W,comparison:{a:H.replace(/https?:\/\//g,""),b:n.replace(/https?:\/\//g,"").replace(/:/g,"%3A")}});let ae=await x(W);try{let B=await ae.storage.resolve.query({uri:I});o.debug?.("LearnCloud read.get result",B);let ce=await b.invoke.decryptDagJwe(B);o.debug?.("LearnCloud read.get decryptedResult",ce);let ge=await Zt.or(Ln).or(Nu).parseAsync(ce);return(0,jt.resolveStorageReadResult)(ge)}catch(B){b.debug?.(B);return}}try{let W=await d.storage.resolve.query({uri:I});o.debug?.("LearnCloud read.get result",W);let ae=await b.invoke.decryptDagJwe(W);o.debug?.("LearnCloud read.get decryptedResult",ae);let B=await Zt.or(Ln).or(Nu).parseAsync(ae);return(0,jt.resolveStorageReadResult)(B)}catch(W){b.debug?.(W);return}},"get")},store:{upload:c(async(b,I)=>(b.debug?.("learnCard.store['LearnCard Network'].upload"),d.storage.store.mutate({item:Qb(I)})),"upload"),uploadEncrypted:c(async(b,I,{recipients:T=[]}={recipients:[]})=>{b.debug?.("learnCard.store['LearnCard Network'].upload");let Z=await b.invoke.createDagJwe(Qb(I),[b.id.did(),...T]);return d.storage.store.mutate({item:Z})},"uploadEncrypted"),delete:c(async(b,I)=>{b.debug?.("learnCard.store['LearnCloud'].delete",{uri:I});let T=!1;try{T=!!await d.storage.delete.mutate({uri:I})}catch(Z){b.debug?.("LearnCloud store.delete storage.delete failed",Z)}if(!T)return!1;try{let Z=await b.index.LearnCloud.get({uri:I});for(let L of Z)await b.index.LearnCloud.remove(L.id,{cache:"skip-cache"})}catch(Z){b.debug?.("LearnCloud store.delete index cleanup failed",Z)}return!0},"delete")},index:{get:c(async(b,I)=>{await z(b);let T=[],Z=await b.index.LearnCloud.getPage(I);for(T.push(...Z.records);Z.hasMore;)Z=await b.index.LearnCloud.getPage(I,{cursor:Z.cursor}),T.push(...Z.records);return T},"get"),getPage:c(async(b,I,T)=>{await z(b),b.debug?.("LearnCloud index.getPaginated",I,T);let Z={...T,sort:["newestFirst","oldestFirst"].includes(T?.sort??"")?T?.sort:void 0};if(!I){b.debug?.("LearnCloud index.get (no query)");let B=await d.index.get.query(Z);b.debug?.("LearnCloud index.get (no query response)",B);let ce=(0,jt.isEncrypted)(B)?await Pt(b,B):B;return b.debug?.("LearnCloud index.get (no query encryptedRecords)",ce),{...ce,records:await Promise.all(ce.records.map(async ge=>Pt(b,ge.encryptedRecord)))}}b.debug?.("LearnCloud index.get (query)");let L=await Br(b,I,a);b.debug?.("LearnCloud index.get (query fields)",L);let H=Object.fromEntries(Object.entries(I).filter(([B])=>a.includes(B)));b.debug?.("LearnCloud index.get (query unencryptedEntries)",H);let W=await d.index.get.query({query:await ct(b,await h,{...H,...L.length>0?{fields:{$in:L}}:{}}),...Z});b.debug?.("LearnCloud index.get (query jwe)",W);let ae=(0,jt.isEncrypted)(W)?await Pt(b,W):W;return b.debug?.("LearnCloud index.get (query encryptedRecords)",ae),{...ae,records:await Promise.all(ae.records.map(async B=>Pt(b,B.encryptedRecord)))}},"getPage"),getCount:c(async(b,I)=>{if(await z(b),!I){b.debug?.("LearnCloud index.count (no query)");let W=await d.index.count.query();b.debug?.("LearnCloud index.count (no query response)",W);let ae=(0,jt.isEncrypted)(W)?await Pt(b,W):W;return b.debug?.("LearnCloud index.count (no query count)",ae),ae}b.debug?.("LearnCloud index.getCount (query)");let T=await Br(b,I,a);b.debug?.("LearnCloud index.getCount (query fields)",T);let Z=Object.fromEntries(Object.entries(I).filter(([W])=>a.includes(W)));b.debug?.("LearnCloud index.getCount (query unencryptedEntries)",Z);let L=await d.index.count.query({query:await ct(b,await h,{...Z,...T.length>0?{fields:{$in:T}}:{}})});b.debug?.("LearnCloud index.count (query response)",L);let H=(0,jt.isEncrypted)(L)?await Pt(b,L):L;return b.debug?.("LearnCloud index.count (query count)",H),H},"getCount"),add:c(async(b,I)=>{await z(b);let T=I.id||b.invoke.crypto().randomUUID();return d.index.add.mutate({record:await ct(b,await h,{...await Jr(b,{...I,id:T},a),id:await Mn(b,T)})})},"add"),addMany:c(async(b,I)=>(await z(b),(await Promise.all((0,e$.chunk)(I,25).map(async Z=>{let L=await Promise.all(Z.map(async H=>{let W=H.id||b.invoke.crypto().randomUUID();return{...await Jr(b,{...H,id:W},a),id:await Mn(b,W)}}));return d.index.addMany.mutate({records:await ct(b,await h,L)})}))).every(Boolean)),"addMany"),update:c(async(b,I,T)=>{await z(b);let Z=await b.index.LearnCloud.get({id:I});if(Z.length!==1)return!1;let H={...Z[0],...T};return d.index.update.mutate({id:await Mn(b,I),updates:await ct(b,await h,await Jr(b,H,a))})},"update"),remove:c(async(b,I)=>(await z(b),d.index.remove.mutate({id:await Mn(b,I)})),"remove"),removeAll:c(async b=>(await z(b),d.index.removeAll.mutate()),"removeAll")}}},"getLearnCloudPlugin");
|
|
86
86
|
/*! Bundled license information:
|
|
87
87
|
|
|
88
88
|
lodash/lodash.js:
|