1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6552688d-51c8-4311-9f7a-1d7dc8e4b32b",e._sentryDebugIdIdentifier="sentry-dbid-6552688d-51c8-4311-9f7a-1d7dc8e4b32b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6032],{29262:(e,t,r)=>{"use strict";r.d(t,{Di:()=>k,b8:()=>M,bD:()=>g,eM:()=>P,iM:()=>C,u1:()=>_,u6:()=>z});var n,i,a,s,o,u,l,d,c,f,m,p,v="vercel.ai.error",h=Symbol.for(v),g=class e extends(i=Error,n=h,i){constructor({name:e,message:t,cause:r}){super(t),this[n]=!0,this.name=e,this.cause=r}static isInstance(t){return e.hasMarker(t,v)}static hasMarker(e,t){let r=Symbol.for(t);return null!=e&&"object"==typeof e&&r in e&&"boolean"==typeof e[r]&&!0===e[r]}},y=Symbol.for("vercel.ai.error.AI_APICallError");Symbol.for("vercel.ai.error.AI_EmptyResponseBodyError");function _(e){return null==e?"unknown error":"string"==typeof e?e:e instanceof Error?e.message:JSON.stringify(e)}var b="AI_InvalidArgumentError",$=`vercel.ai.error.${b}`,x=Symbol.for($),k=class extends(s=g,a=x,s){constructor({message:e,cause:t,argument:r}){super({name:b,message:e,cause:t}),this[a]=!0,this.argument=r}static isInstance(e){return g.hasMarker(e,$)}},w=Symbol.for("vercel.ai.error.AI_InvalidPromptError");Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var I="AI_JSONParseError",S=`vercel.ai.error.${I}`,O=Symbol.for(S),z=class extends(u=g,o=O,u){constructor({text:e,cause:t}){super({name:I,message:`JSON parsing failed: Text: ${e}. 2Error message: ${_(t)}`,cause:t}),this[o]=!0,this.text=e}static isInstance(e){return g.hasMarker(e,S)}},j=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError");Symbol.for("vercel.ai.error.AI_LoadSettingError");Symbol.for("vercel.ai.error.AI_NoContentGeneratedError");var N="AI_NoSuchModelError",U=`vercel.ai.error.${N}`,Z=Symbol.for(U),P=class extends(d=g,l=Z,d){constructor({errorName:e=N,modelId:t,modelType:r,message:n=`No such ${r}: ${t}`}){super({name:e,message:n}),this[l]=!0,this.modelId=t,this.modelType=r}static isInstance(e){return g.hasMarker(e,U)}},A=Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError"),T="AI_TypeValidationError",E=`vercel.ai.error.${T}`,D=Symbol.for(E),C=class e extends(f=g,c=D,f){constructor({value:e,cause:t,context:r}){let n="Type validation failed";if((null==r?void 0:r.field)&&(n+=` for ${r.field}`),(null==r?void 0:r.entityName)||(null==r?void 0:r.entityId)){n+=" (";const e=[];r.entityName&&e.push(r.entityName),r.entityId&&e.push(`id: "${r.entityId}"`),n+=e.join(", "),n+=")"}super({name:T,message:`${n}: Value: ${JSON.stringify(e)}. 3Error message: ${_(t)}`,cause:t}),this[c]=!0,this.value=e,this.context=r}static isInstance(e){return g.hasMarker(e,E)}static wrap({value:t,cause:r,context:n}){var i,a,s;return e.isInstance(r)&&r.value===t&&(null==(i=r.context)?void 0:i.field)===(null==n?void 0:n.field)&&(null==(a=r.context)?void 0:a.entityName)===(null==n?void 0:n.entityName)&&(null==(s=r.context)?void 0:s.entityId)===(null==n?void 0:n.entityId)?r:new e({value:t,cause:r,context:n})}},L="AI_UnsupportedFunctionalityError",R=`vercel.ai.error.${L}`,F=Symbol.for(R),M=class extends(p=g,m=F,p){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:L,message:t}),this[m]=!0,this.functionality=e}static isInstance(e){return g.hasMarker(e,R)}}},38878:e=>{e.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...i){clearTimeout(r);let a=Date.now(),s=t-(a-n);s<=0?(n=a,e.apply(this,i)):r=setTimeout(()=>{n=Date.now(),e.apply(this,i)},s)}}},49078:e=>{e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)t.call(n,i)&&(e[i]=n[i])}return e};var t=Object.prototype.hasOwnProperty},52044:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6140),i=r(36739),a=r(89365);function s(e){(0,a.A)(1,arguments);var t=(0,i.A)(e);return t.setHours(0,0,0,0),t}function o(e,t){(0,a.A)(2,arguments);var r=s(e),i=s(t);return Math.round((r.getTime()-(0,n.A)(r)-(i.getTime()-(0,n.A)(i)))/864e5)}},52512:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(89944),i=r(36739),a=r(89365);function s(e,t){(0,a.A)(2,arguments);var r=(0,i.A)(e),s=(0,n.A)(t);return isNaN(s)?new Date(NaN):(s&&r.setDate(r.getDate()+s),r)}},60680:(e,t,r)=>{"use strict";let n;r.d(t,{W:()=>e4,nV:()=>eK,mD:()=>tP,aI:()=>eM,Z9:()=>eR,n_:()=>eF,hK:()=>e9,ek:()=>e1,$C:()=>e2,G1:()=>e5,ID:()=>tU,qx:()=>e3,_Z:()=>tC,cS:()=>e6,hd:()=>tL,N8:()=>tD,ZZ:()=>tE,k5:()=>tT,WZ:()=>e7,jN:()=>tA});var i,a,s,o,u,l,d,c,f,m,p=r(29262),v=r(91701);(i=o||(o={})).assertEqual=e=>{},i.assertIs=function(e){},i.assertNever=function(e){throw Error()},i.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},i.getValidEnumValues=e=>{let t=i.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return i.objectValues(r)},i.objectValues=e=>i.objectKeys(e).map(function(t){return e[t]}),i.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},i.find=(e,t)=>{for(let r of e)if(t(r))return r},i.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,i.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},i.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(u||(u={})).mergeShapes=(e,t)=>({...e,...t});let h=o.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),g=e=>{switch(typeof e){case"undefined":return h.undefined;case"string":return h.string;case"number":return Number.isNaN(e)?h.nan:h.number;case"boolean":return h.boolean;case"function":return h.function;case"bigint":return h.bigint;case"symbol":return h.symbol;case"object":if(Array.isArray(e))return h.array;if(null===e)return h.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return h.promise;if("u">typeof Map&&e instanceof Map)return h.map;if("u">typeof Set&&e instanceof Set)return h.set;if("u">typeof Date&&e instanceof Date)return h.date;return h.object;default:return h.unknown}}
vendor: 37,628 bytes, line 3
3,y=o.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class _ extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof _))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,o.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}_.create=e=>new _(e);let b=(e,t)=>{let r;switch(e.code){case y.invalid_type:r=e.received===h.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case y.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,o.jsonStringifyReplacer)}`;break;case y.unrecognized_keys:r=`Unrecognized key(s) in object: ${o.joinValues(e.keys,", ")}`;break;case y.invalid_union:r="Invalid input";break;case y.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${o.joinValues(e.options)}`;break;case y.invalid_enum_value:r=`Invalid enum value. Expected ${o.joinValues(e.options)}, received '${e.received}'`;break;case y.invalid_arguments:r="Invalid function arguments";break;case y.invalid_return_type:r="Invalid function return type";break;case y.invalid_date:r="Invalid date";break;case y.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:o.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case y.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case y.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case y.custom:r="Invalid input";break;case y.invalid_intersection_types:r="Intersection results could not be merged";break;case y.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case y.not_finite:r="Number must be finite";break;default:r=t.defaultError,o.assertNever(e)}return{message:r}},$=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function x(e,t){let r=$({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,b,void 0].filter(e=>!!e)});e.common.issues.push(r)}class k{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return w;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return k.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return w;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let w=Object.freeze({status:"aborted"}),I=e=>({status:"dirty",value:e}),S=e=>({status:"valid",value:e}),O=e=>"u">typeof Promise&&e instanceof Promise;(a=l||(l={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},a.toString=e=>"string"==typeof e?e:e?.message;class z{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let j=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new _(e.common.issues);return this._error=t,this._error}}};function N(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class U{get description(){return this._def.description}_getType(e){return g(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:g(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:g(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(O(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:g(e)},n=this._parseSync({data:e,path:r.path,parent:r});return j(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:g(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:g(e)},n=this._parse({data:e,path:r.path,parent:r});return j(r,await (O(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),a=()=>n.addIssue({code:y.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ew({schema:this,typeName:d.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eI.create(this,this._def)}nullable(){return eS.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return eo.create(this)}promise(){return ek.create(this,this._def)}or(e){return el.create([this,e],this._def)}and(e){return ef.create(this,e,this._def)}transform(e){return new ew({...N(this._def),schema:this,typeName:d.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eO({...N(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:d.ZodDefault})}brand(){return new eN({typeName:d.ZodBranded,type:this,...N(this._def)})}catch(e){return new ez({...N(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:d.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eU.create(this,e)}readonly(){return eZ.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let Z=/^c[^\s-]{8,}$/i,P=/^[0-9a-z]+$/,A=/^[0-9A-HJKMNP-TV-Z]{26}$/i,T=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,E=/^[a-z0-9_-]{21}$/i,D=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,C=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,L=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,R=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,F=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,M=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,J=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,W=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,V=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,K="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",B=RegExp(`^${K}$`);function G(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class q extends U{_parse(e){var t,r,i,a;let s;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==h.string){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.string,received:t.parsedType}),w}let u=new k;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(x(s=this._getOrReturnCtx(e,s),{code:y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("max"===l.kind)e.data.length>l.value&&(x(s=this._getOrReturnCtx(e,s),{code:y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("length"===l.kind){let t=e.data.length>l.value,r=e.data.length<l.value;(t||r)&&(s=this._getOrReturnCtx(e,s),t?x(s,{code:y.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):r&&x(s,{code:y.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),u.dirty())}else if("email"===l.kind)L.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"email",code:y.invalid_string,message:l.message}),u.dirty());else if("emoji"===l.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:y.invalid_string,message:l.message}),u.dirty());else if("uuid"===l.kind)T.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:y.invalid_string,message:l.message}),u.dirty());else if("nanoid"===l.kind)E.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"nanoid",code:y.invalid_string,message:l.message}),u.dirty());else if("cuid"===l.kind)Z.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:y.invalid_string,message:l.message}),u.dirty());else if("cuid2"===l.kind)P.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:y.invalid_string,message:l.message}),u.dirty());else if("ulid"===l.kind)A.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:y.invalid_string,message:l.message}),u.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{x(s=this._getOrReturnCtx(e,s),{validation:"url",code:y.invalid_string,message:l.message}),u.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"regex",code:y.invalid_string,message:l.message}),u.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(x(s=this._getOrReturnCtx(e,s),{code:y.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),u.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(x(s=this._getOrReturnCtx(e,s),{code:y.invalid_string,validation:{startsWith:l.value},message:l.message}),u.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(x(s=this._getOrReturnCtx(e,s),{code:y.invalid_string,validation:{endsWith:l.value},message:l.message}),u.dirty()):"datetime"===l.kind?(function(e){let t=`${K}T${G(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(l).test(e.data)||(x(s=this._getOrReturnCtx(e,s),{code:y.invalid_string,validation:"datetime",message:l.message}),u.dirty()):"date"===l.kind?B.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{code:y.invalid_string,validation:"date",message:l.message}),u.dirty()):"time"===l.kind?RegExp(`^${G(l)}$`).test(e.data)||(x(s=this._getOrReturnCtx(e,s),{code:y.invalid_string,validation:"time",message:l.message}),u.dirty()):"duration"===l.kind?C.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"duration",code:y.invalid_string,message:l.message}),u.dirty()):"ip"===l.kind?(t=e.data,!(("v4"===(r=l.version)||!r)&&R.test(t)||("v6"===r||!r)&&M.test(t))&&1&&(x(s=this._getOrReturnCtx(e,s),{validation:"ip",code:y.invalid_string,message:l.message}),u.dirty())):"jwt"===l.kind?!function(e,t){if(!D.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(x(s=this._getOrReturnCtx(e,s),{validation:"jwt",code:y.invalid_string,message:l.message}),u.dirty()):"cidr"===l.kind?(i=e.data,!(("v4"===(a=l.version)||!a)&&F.test(i)||("v6"===a||!a)&&J.test(i))&&1&&(x(s=this._getOrReturnCtx(e,s),{validation:"cidr",code:y.invalid_string,message:l.message}),u.dirty())):"base64"===l.kind?W.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"base64",code:y.invalid_string,message:l.message}),u.dirty()):"base64url"===l.kind?V.test(e.data)||(x(s=this._getOrReturnCtx(e,s),{validation:"base64url",code:y.invalid_string,message:l.message}),u.dirty()):o.assertNever(l);return{status:u.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:y.invalid_string,...l.errToObj(r)})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...l.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...l.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...l.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...l.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...l.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...l.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...l.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new q({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new q({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new q({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}q.create=e=>new q({checks:[],typeName:d.ZodString,coerce:e?.coerce??!1,...N(e)});class X extends U{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==h.number){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.number,received:t.parsedType}),w}let r=new k;for(let n of this._def.checks)"int"===n.kind?o.isInteger(e.data)||(x(t=this._getOrReturnCtx(e,t),{code:y.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:y.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:y.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:y.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(x(t=this._getOrReturnCtx(e,t),{code:y.not_finite,message:n.message}),r.dirty()):o.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,r,n){return new X({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:l.toString(n)}]})}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&o.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}X.create=e=>new X({checks:[],typeName:d.ZodNumber,coerce:e?.coerce||!1,...N(e)});class H extends U{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==h.bigint)return this._getInvalidInput(e);let r=new k;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:y.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(x(t=this._getOrReturnCtx(e,t),{code:y.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(x(t=this._getOrReturnCtx(e,t),{code:y.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):o.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.bigint,received:t.parsedType}),w}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,r,n){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:l.toString(n)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}H.create=e=>new H({checks:[],typeName:d.ZodBigInt,coerce:e?.coerce??!1,...N(e)});class Y extends U{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==h.boolean){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.boolean,received:t.parsedType}),w}return S(e.data)}}Y.create=e=>new Y({typeName:d.ZodBoolean,coerce:e?.coerce||!1,...N(e)});class Q extends U{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==h.date){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.date,received:t.parsedType}),w}if(Number.isNaN(e.data.getTime()))return x(this._getOrReturnCtx(e),{code:y.invalid_date}),w;let r=new k;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(x(t=this._getOrReturnCtx(e,t),{code:y.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(x(t=this._getOrReturnCtx(e,t),{code:y.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):o.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Q.create=e=>new Q({checks:[],coerce:e?.coerce||!1,typeName:d.ZodDate,...N(e)});class ee extends U{_parse(e){if(this._getType(e)!==h.symbol){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.symbol,received:t.parsedType}),w}return S(e.data)}}ee.create=e=>new ee({typeName:d.ZodSymbol,...N(e)});class et extends U{_parse(e){if(this._getType(e)!==h.undefined){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.undefined,received:t.parsedType}),w}return S(e.data)}}et.create=e=>new et({typeName:d.ZodUndefined,...N(e)});class er extends U{_parse(e){if(this._getType(e)!==h.null){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.null,received:t.parsedType}),w}return S(e.data)}}er.create=e=>new er({typeName:d.ZodNull,...N(e)});class en extends U{constructor(){super(...arguments),this._any=!0}_parse(e){return S(e.data)}}en.create=e=>new en({typeName:d.ZodAny,...N(e)});class ei extends U{constructor(){super(...arguments),this._unknown=!0}_parse(e){return S(e.data)}}ei.create=e=>new ei({typeName:d.ZodUnknown,...N(e)});class ea extends U{_parse(e){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.never,received:t.parsedType}),w}}ea.create=e=>new ea({typeName:d.ZodNever,...N(e)});class es extends U{_parse(e){if(this._getType(e)!==h.undefined){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.void,received:t.parsedType}),w}return S(e.data)}}es.create=e=>new es({typeName:d.ZodVoid,...N(e)});class eo extends U{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==h.array)return x(t,{code:y.invalid_type,expected:h.array,received:t.parsedType}),w;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(x(t,{code:e?y.too_big:y.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(x(t,{code:y.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(x(t,{code:y.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new z(t,e,t.path,r)))).then(e=>k.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new z(t,e,t.path,r)));return k.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new eo({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new eo({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new eo({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}eo.create=(e,t)=>new eo({type:e,minLength:null,maxLength:null,exactLength:null,typeName:d.ZodArray,...N(t)});class eu extends U{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=o.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==h.object){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.object,received:t.parsedType}),w}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ea&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let s=[];for(let e of i){let t=n[e],i=r.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new z(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof ea){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)s.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(x(r,{code:y.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new z(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>k.mergeObjectSync(t,e)):k.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new eu({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:l.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new eu({...this._def,unknownKeys:"strip"})}passthrough(){return new eu({...this._def,unknownKeys:"passthrough"})}extend(e){return new eu({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new eu({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:d.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new eu({...this._def,catchall:e})}pick(e){let t={};for(let r of o.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new eu({...this._def,shape:()=>t})}omit(e){let t={};for(let r of o.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new eu({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof eu){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=eI.create(e(i))}return new eu({...t._def,shape:()=>r})}if(t instanceof eo)return new eo({...t._def,type:e(t.element)});if(t instanceof eI)return eI.create(e(t.unwrap()));if(t instanceof eS)return eS.create(e(t.unwrap()));if(t instanceof em)return em.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of o.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new eu({...this._def,shape:()=>t})}required(e){let t={};for(let r of o.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eI;)e=e._def.innerType;t[r]=e}return new eu({...this._def,shape:()=>t})}keyof(){return eb(o.objectKeys(this.shape))}}eu.create=(e,t)=>new eu({shape:()=>e,unknownKeys:"strip",catchall:ea.create(),typeName:d.ZodObject,...N(t)}),eu.strictCreate=(e,t)=>new eu({shape:()=>e,unknownKeys:"strict",catchall:ea.create(),typeName:d.ZodObject,...N(t)}),eu.lazycreate=(e,t)=>new eu({shape:e,unknownKeys:"strip",catchall:ea.create(),typeName:d.ZodObject,...N(t)});class el extends U{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new _(e.ctx.common.issues));return x(t,{code:y.invalid_union,unionErrors:r}),w});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new _(e));return x(t,{code:y.invalid_union,unionErrors:i}),w}}get options(){return this._def.options}}el.create=(e,t)=>
3new el({options:e,typeName:d.ZodUnion,...N(t)});let ed=e=>{if(e instanceof ey)return ed(e.schema);if(e instanceof ew)return ed(e.innerType());if(e instanceof e_)return[e.value];if(e instanceof e$)return e.options;if(e instanceof ex)return o.objectValues(e.enum);else if(e instanceof eO)return ed(e._def.innerType);else if(e instanceof et)return[void 0];else if(e instanceof er)return[null];else if(e instanceof eI)return[void 0,...ed(e.unwrap())];else if(e instanceof eS)return[null,...ed(e.unwrap())];else if(e instanceof eN)return ed(e.unwrap());else if(e instanceof eZ)return ed(e.unwrap());else if(e instanceof ez)return ed(e._def.innerType);else return[]};class ec extends U{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==h.object)return x(t,{code:y.invalid_type,expected:h.object,received:t.parsedType}),w;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(x(t,{code:y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),w)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ed(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new ec({typeName:d.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...N(r)})}}class ef extends U{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if("aborted"===e.status||"aborted"===n.status)return w;let i=function e(t,r){let n=g(t),i=g(r);if(t===r)return{valid:!0,data:t};if(n===h.object&&i===h.object){let n=o.objectKeys(r),i=o.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===h.array&&i===h.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===h.date&&i===h.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?(("dirty"===e.status||"dirty"===n.status)&&t.dirty(),{status:t.value,value:i.data}):(x(r,{code:y.invalid_intersection_types}),w)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ef.create=(e,t,r)=>new ef({left:e,right:t,typeName:d.ZodIntersection,...N(r)});class em extends U{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==h.array)return x(r,{code:y.invalid_type,expected:h.array,received:r.parsedType}),w;if(r.data.length<this._def.items.length)return x(r,{code:y.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),w;!this._def.rest&&r.data.length>this._def.items.length&&(x(r,{code:y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new z(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>k.mergeArray(t,e)):k.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new em({...this._def,rest:e})}}em.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new em({items:e,typeName:d.ZodTuple,rest:null,...N(t)})};class ep extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==h.object)return x(r,{code:y.invalid_type,expected:h.object,received:r.parsedType}),w;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new z(r,e,r.path,e)),value:a._parse(new z(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?k.mergeObjectAsync(t,n):k.mergeObjectSync(t,n)}
3get element(){return this._def.valueType}static create(e,t,r){return new ep(t instanceof U?{keyType:e,valueType:t,typeName:d.ZodRecord,...N(r)}:{keyType:q.create(),valueType:e,typeName:d.ZodRecord,...N(t)})}}class ev extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==h.map)return x(r,{code:y.invalid_type,expected:h.map,received:r.parsedType}),w;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new z(r,e,r.path,[a,"key"])),value:i._parse(new z(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return w;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return w;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ev.create=(e,t,r)=>new ev({valueType:t,keyType:e,typeName:d.ZodMap,...N(r)});class eh extends U{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==h.set)return x(r,{code:y.invalid_type,expected:h.set,received:r.parsedType}),w;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(x(r,{code:y.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(x(r,{code:y.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return w;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let s=[...r.data.values()].map((e,t)=>i._parse(new z(r,e,r.path,t)));return r.common.async?Promise.all(s).then(e=>a(e)):a(s)}min(e,t){return new eh({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new eh({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eh.create=(e,t)=>new eh({valueType:e,minSize:null,maxSize:null,typeName:d.ZodSet,...N(t)});class eg extends U{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==h.function)return x(t,{code:y.invalid_type,expected:h.function,received:t.parsedType}),w;function r(e,r){return $({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,b,b].filter(e=>!!e),issueData:{code:y.invalid_arguments,argumentsError:r}})}function n(e,r){return $({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,b,b].filter(e=>!!e),issueData:{code:y.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof ek){let e=this;return S(async function(...t){let s=new _([]),o=await e._def.args.parseAsync(t,i).catch(e=>{throw s.addIssue(r(t,e)),s}),u=await Reflect.apply(a,this,o);return await e._def.returns._def.type.parseAsync(u,i).catch(e=>{throw s.addIssue(n(u,e)),s})})}{let e=this;return S(function(...t){let s=e._def.args.safeParse(t,i);if(!s.success)throw new _([r(t,s.error)]);let o=Reflect.apply(a,this,s.data),u=e._def.returns.safeParse(o,i);if(!u.success)throw new _([n(o,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eg({...this._def,args:em.create(e).rest(ei.create())})}returns(e){return new eg({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eg({args:e||em.create([]).rest(ei.create()),returns:t||ei.create(),typeName:d.ZodFunction,...N(r)})}}class ey extends U{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ey.create=(e,t)=>
vendor: 4,630 bytes, line 3
3new ey({getter:e,typeName:d.ZodLazy,...N(t)});class e_ extends U{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return x(t,{received:t.data,code:y.invalid_literal,expected:this._def.value}),w}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eb(e,t){return new e$({values:e,typeName:d.ZodEnum,...N(t)})}e_.create=(e,t)=>new e_({value:e,typeName:d.ZodLiteral,...N(t)});class e$ extends U{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return x(t,{expected:o.joinValues(r),received:t.parsedType,code:y.invalid_type}),w}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return x(t,{received:t.data,code:y.invalid_enum_value,options:r}),w}return S(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return e$.create(e,{...this._def,...t})}exclude(e,t=this._def){return e$.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}e$.create=eb;class ex extends U{_parse(e){let t=o.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==h.string&&r.parsedType!==h.number){let e=o.objectValues(t);return x(r,{expected:o.joinValues(e),received:r.parsedType,code:y.invalid_type}),w}if(this._cache||(this._cache=new Set(o.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=o.objectValues(t);return x(r,{received:r.data,code:y.invalid_enum_value,options:e}),w}return S(e.data)}get enum(){return this._def.values}}ex.create=(e,t)=>new ex({values:e,typeName:d.ZodNativeEnum,...N(t)});class ek extends U{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==h.promise&&!1===t.common.async?(x(t,{code:y.invalid_type,expected:h.promise,received:t.parsedType}),w):S((t.parsedType===h.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ek.create=(e,t)=>new ek({type:e,typeName:d.ZodPromise,...N(t)});class ew extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===d.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{x(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return w;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?w:"dirty"===n.status||"dirty"===t.value?I(n.value):n});{if("aborted"===t.value)return w;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?w:"dirty"===n.status||"dirty"===t.value?I(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?w:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?w:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"valid"!==e.status?w:Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return w;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}o.assertNever(n)}}ew.create=(e,t,r)=>new ew({schema:e,typeName:d.ZodEffects,effect:t,...N(r)}),ew.createWithPreprocess=(e,t,r)=>new ew({schema:t,effect:{type:"preprocess",transform:e},typeName:d.ZodEffects,...N(r)});class eI extends U{_parse(e){return this._getType(e)===h.undefined?S(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eI.create=(e,t)=>
vendor: 1,479 bytes, line 3
3new eI({innerType:e,typeName:d.ZodOptional,...N(t)});class eS extends U{_parse(e){return this._getType(e)===h.null?S(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eS.create=(e,t)=>new eS({innerType:e,typeName:d.ZodNullable,...N(t)});class eO extends U{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===h.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eO.create=(e,t)=>new eO({innerType:e,typeName:d.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...N(t)});class ez extends U{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return O(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new _(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new _(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ez.create=(e,t)=>new ez({innerType:e,typeName:d.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...N(t)});class ej extends U{_parse(e){if(this._getType(e)!==h.nan){let t=this._getOrReturnCtx(e);return x(t,{code:y.invalid_type,expected:h.nan,received:t.parsedType}),w}return{status:"valid",value:e.data}}}ej.create=e=>
3new ej({typeName:d.ZodNaN,...N(e)}),Symbol("zod_brand");class eN extends U{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eU extends U{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?w:"dirty"===e.status?(t.dirty(),I(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?w:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eU({in:e,out:t,typeName:d.ZodPipeline})}}class eZ extends U{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return O(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eZ.create=(e,t)=>new eZ({innerType:e,typeName:d.ZodReadonly,...N(t)}),eu.lazycreate,(s=d||(d={})).ZodString="ZodString",s.ZodNumber="ZodNumber",s.ZodNaN="ZodNaN",s.ZodBigInt="ZodBigInt",s.ZodBoolean="ZodBoolean",s.ZodDate="ZodDate",s.ZodSymbol="ZodSymbol",s.ZodUndefined="ZodUndefined",s.ZodNull="ZodNull",s.ZodAny="ZodAny",s.ZodUnknown="ZodUnknown",s.ZodNever="ZodNever",s.ZodVoid="ZodVoid",s.ZodArray="ZodArray",s.ZodObject="ZodObject",s.ZodUnion="ZodUnion",s.ZodDiscriminatedUnion="ZodDiscriminatedUnion",s.ZodIntersection="ZodIntersection",s.ZodTuple="ZodTuple",s.ZodRecord="ZodRecord",s.ZodMap="ZodMap",s.ZodSet="ZodSet",s.ZodFunction="ZodFunction",s.ZodLazy="ZodLazy",s.ZodLiteral="ZodLiteral",s.ZodEnum="ZodEnum",s.ZodEffects="ZodEffects",s.ZodNativeEnum="ZodNativeEnum",s.ZodOptional="ZodOptional",s.ZodNullable="ZodNullable",s.ZodDefault="ZodDefault",s.ZodCatch="ZodCatch",s.ZodPromise="ZodPromise",s.ZodBranded="ZodBranded",s.ZodPipeline="ZodPipeline",s.ZodReadonly="ZodReadonly",q.create,X.create,ej.create,H.create,Y.create,Q.create,ee.create,et.create,er.create,en.create,ei.create,ea.create,es.create,eo.create,eu.create,eu.strictCreate,el.create,ec.create,ef.create,em.create,ep.create,ev.create,eh.create,eg.create,ey.create,e_.create,e$.create,ex.create,ek.create,ew.create,eI.create,eS.create,ew.createWithPreprocess,eU.create;class eP extends Error{constructor(e,t){super(e),this.name="ParseError",this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}}function eA(e){}function eT(e,t,r){return 100===r&&97===e.charCodeAt(t+1)&&116===e.charCodeAt(t+2)&&97===e.charCodeAt(t+3)&&58===e.charCodeAt(t+4)}function eE(e,t,r){return 101===r&&118===e.charCodeAt(t+1)&&101===e.charCodeAt(t+2)&&110===e.charCodeAt(t+3)&&116===e.charCodeAt(t+4)&&58===e.charCodeAt(t+5)}class eD extends TransformStream{constructor({onError:e,onRetry:t,onComment:r,maxBufferSize:n}={}){let i;super({start(a){i=function(e){if("function"==typeof e)throw TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{onEvent:t=eA,onError:r=eA,onRetry:n=eA,onComment:i,maxBufferSize:a}=e,s=[],o=0,u=!0,l,d="",c=0,f,m=!1;function p(){void 0!==a&&(o+d.length<=a||(m=!0,s.length=0,o=0,l=void 0,d="",c=0,f=void 0,r(new eP(`Buffered data exceeded max buffer size of ${a} characters`,{type:"max-buffer-size-exceeded"}))))}function v(e){let r=0;if(-1===e.indexOf("\r")){let n=e.indexOf(` 4`,r);for(;-1!==n;){if(r===n){c>0&&t({id:l,event:f,data:d}),l=void 0,d="",c=0,f=void 0,r=n+1,n=e.indexOf(` 5`,r);continue}let i=e.charCodeAt(r);if(eT(e,r,i)){let i=32===e.charCodeAt(r+5)?r+6:r+5,a=e.slice(i,n);if(0===c&&10===e.charCodeAt(n+1)){t({id:l,event:f,data:a}),l=void 0,d="",f=void 0,r=n+2,n=e.indexOf(` 6`,r);continue}d=0===c?a:`${d} 7${a}`,c++}else eE(e,r,i)?f=e.slice(32===e.charCodeAt(r+6)?r+7:r+6,n)||void 0:h(e,r,n);r=n+1,n=e.indexOf(` 8`,r)}return e.slice(r)}for(;r<e.length;){let t=e.indexOf("\r",r),n=e.indexOf(` 9`,r),i=-1;if(-1!==t&&-1!==n?i=t<n?t:n:-1!==t?i=t===e.length-1?-1:t:-1!==n&&(i=n),-1===i)break;h(e,r,i),r=i+1,13===e.charCodeAt(r-1)&&10===e.charCodeAt(r)&&r++}return e.slice(r)}function h(e,r,n){if(r===n)return void(c>0&&t({id:l,event:f,data:d}),l=void 0,d="",c=0,f=void 0);let a=e.charCodeAt(r);if(eT(e,r,a)){let t=32===e.charCodeAt(r+5)?r+6:r+5,i=e.slice(t,n);d=0===c?i:`${d} 10${i}`,c++;return}if(eE(e,r,a)){f=e.slice(32===e.charCodeAt(r+6)?r+7:r+6,n)||void 0;return}if(105===a&&100===e.charCodeAt(r+1)&&58===e.charCodeAt(r+2)){let t=e.slice(32===e.charCodeAt(r+3)?r+4:r+3,n);t.includes("\0")||(l=t);return}if(58===a){i&&i(e.slice(r,n).slice(32===e.charCodeAt(r+1)?2:1));return}let s=e.slice(r,n),o=s.indexOf(":");if(-1===o)return void g(s,"",s);let u=s.slice(0,o),m=32===s.charCodeAt(o+1)?2:1;g(u,s.slice(o+m),s)}function g(e,t,i){switch(e){case"event":f=t||void 0;break;case"data":d=0===c?t:`${d} 11${t}`,c++;break;case"id":t.includes("\0")||(l=t);break;case"retry":/^\d+$/.test(t)?n(parseInt(t,10)):r(new eP(`Invalid \`retry\` value: "${t}"`,{type:"invalid-retry",value:t,line:i}));break;default:r(new eP(`Unknown field "${e.length>20?`${e.slice(0,20)}\u2026`:e}"`,{type:"unknown-field",field:e,value:t,line:i}))}}return{feed:function(e){if(m)throw Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(u&&(u=!1,239===e.charCodeAt(0)&&187===e.charCodeAt(1)&&191===e.charCodeAt(2)&&(e=e.slice(3))),0===s.length){let t=v(e);""!==t&&(s.push(t),o=t.length),p();return}if(-1===e.indexOf(` 12`)&&-1===e.indexOf("\r")){s.push(e),o+=e.length,p();return}s.push(e);let t=s.join("");s.length=0,o=0;let r=v(t);""!==r&&(s.push(r),o=r.length),p()},reset:function(e={}){if(e.consume&&s.length>0){let e=s.join("");h(e,0,e.length)}u=!0,l=void 0,d="",c=0,f=void 0,s.length=0,o=0,m=!1}}}({onEvent:e=>{a.enqueue(e)},onError(t){"function"==typeof e&&e(t),("terminate"===e||"max-buffer-size-exceeded"===t.type)&&a.error(t)},onRetry:t,onComment:r,maxBufferSize:n})},transform(e){i.feed(e)}})}}r(65364);var{btoa:eC,atob:eL}=globalThis;function eR(e){let t=eL(e.replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from(t,e=>e.codePointAt(0))}function eF(e){let t=[];for(let r=0;r<e.length;r+=4096)t.push(String.fromCodePoint(...e.subarray(r,r+4096)));return eC(t.join(""))}async function eM(e){var t;try{await (null==(t=e.body)?void 0:t.cancel())}catch(e){}}var eJ="AI_DownloadError",eW=`vercel.ai.error.${eJ}`,eV=Symbol.for(eW),eK=class extends(f=p.bD,c=eV,f){constructor({url:e,statusCode:t,statusText:r,cause:n,message:i=null==n?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${n}`}){super({name:eJ,message:i,cause:n}),this[c]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return p.bD.hasMarker(e,eW)}};function eB(e){let t=e.split(".");return 4===t.length&&t.every(e=>{let t=Number(e);return Number.isInteger(t)&&t>=0&&t<=255&&String(t)===e})}function eG(e){let[t,r,n]=e.split(".").map(Number);return 0===t||10===t||100===t&&r>=64&&r<=127||127===t||169===t&&254===r||172===t&&r>=16&&r<=31||192===t&&0===r&&0===n||192===t&&168===r||198===t&&(18===r||19===r)||t>=240||!1}function eq(e){let t=function(e){let t=e.toLowerCase(),r=t.indexOf("%");-1!==r&&(t=t.slice(0,r));let n=t.split("::");if(n.length>2)return null;let i=e=>{if(""===e)return[];let t=[],r=e.split(":");for(let e=0;e<r.length;e++){let n=r[e];if(n.includes(".")){if(e!==r.length-1||!eB(n))return null;let[i,a,s,o]=n.split(".").map(Number);t.push(i<<8|a,s<<8|o);continue}if(!/^[0-9a-f]{1,4}$/.test(n))return null;t.push(parseInt(n,16))}return t},a=i(n[0]);if(null===a)return null;if(2===n.length){let e=i(n[1]);if(null===e)return null;let t=8-a.length-e.length;return t<0?null:[...a,...Array(t).fill(0),...e]}return 8===a.length?a:null}(e);if(null===t)return!0;let r=e=>
12t.slice(0,e).every(e=>0===e);if(r(7)&&(0===t[7]||1===t[7])||(65024&t[0])==64512||(65472&t[0])==65152||(65472&t[0])==65216||(65280&t[0])==65280)return!0;if(r(6)||r(5)&&65535===t[5]||r(4)&&65535===t[4]&&0===t[5]||100===t[0]&&65435===t[1]&&0===t[2]&&0===t[3]&&0===t[4]&&0===t[5]||100===t[0]&&65435===t[1]&&1===t[2]){let e=t[6]>>8&255,r=255&t[6],n=t[7]>>8&255,i=255&t[7];return eG(`${e}.${r}.${n}.${i}`)}return!1}var eX=globalThis.fetch,eH=function(e){if("function"!=typeof e)return!1;let t=Function.prototype.toString.call(e);return t.includes("internal/deps/undici")||t.includes("lazy loading of undici")}(eX);async function eY(){var e,t;let r;return(null==(e=null==(r=globalThis.process)?void 0:r.release)?void 0:e.name)==="node"&&(null==(t=r.versions)?void 0:t.bun)==null&&eH&&globalThis.fetch===eX?null!=m?m:m=eQ():globalThis.fetch}async function eQ(){let[{createRequire:e},{lookup:t}]=await Promise.all([e0("node:module"),e0("node:dns")]),{Agent:r,fetch:n}=e(function e(){let t=Error.prepareStackTrace;try{Error.prepareStackTrace=(e,t)=>t;let t=Error("Capture current module path");Error.captureStackTrace(t,e);let[r]=t.stack,n=null==r?void 0:r.getFileName();if(null==n)throw Error("Unable to determine the current module path");return n}finally{Error.prepareStackTrace=t}}())("undici"),i=new r({connect:{lookup:(e,r,n)=>{t(e,{...r,all:!0},(t,i)=>{if(t)return void n(t);try{let[t]=i;if(null==t)throw Error(`Hostname ${e} did not resolve to an address`);for(let{address:t,family:r}of i)!function({address:e,family:t,hostname:r}){if(4===t?!eB(e)||eG(e):6!==t||eq(e))throw new eK({url:r,message:`Hostname ${r} resolved to disallowed IP address ${e}`})}({address:t,family:r,hostname:e});!0===r.all?n(null,i):n(null,t.address,t.family)}catch(e){n(e instanceof Error?e:Error(String(e)))}})}}});return(e,t)=>n(e,{...t,dispatcher:i})}async function e0(e){var t;let r=globalThis.process,n=null==(t=null==r?void 0:r.getBuiltinModule)?void 0:t.call(r,e);if(null==n)throw Error(`Node.js built-in module ${e} is unavailable`);return n}async function e1({url:e,headers:t,abortSignal:r,maxRedirects:n=10}){let i={signal:r};void 0!==t&&(i.headers=t);let a=e;for(let t=0;t<=n;t++){!function(e){let t;try{t=new URL(e)}catch(t){throw new eK({url:e,message:`Invalid URL: ${e}`})}if("data:"===t.protocol)return;if("http:"!==t.protocol&&"https:"!==t.protocol)throw new eK({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname.toLowerCase().replace(/\.+$/,"");if(!r)throw new eK({url:e,message:"URL must have a hostname"});if("localhost"===r||r.endsWith(".local")||r.endsWith(".localhost"))throw new eK({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){if(eq(r.slice(1,-1)))throw new eK({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if(eB(r)&&eG(r))throw new eK({url:e,message:`URL with IP address ${r} is not allowed`})}(a);let t=await eY(),r=await t(a,{...i,redirect:"manual"});if("opaqueredirect"===r.type){if(!function(e=globalThis){return null!=e.window}())throw new eK({url:e,message:`Redirect from ${a} could not be validated and was blocked`});return await t(a,{...i,redirect:"follow"})}let n=r.headers.get("location");if(r.status>=300&&r.status<400&&n){await eM(r),a=new URL(n,a).toString();continue}return r}throw new eK({url:e,message:`Too many redirects (max ${n})`})}var e4=0x80000000;async function e6({response:e,url:t,maxBytes:r=e4}){let n=e.headers.get("content-length");if(null!=n){let i=parseInt(n,10);if(!isNaN(i)&&i>r)throw await eM(e),new eK({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${i}).`})}let i=e.body;if(null==i)return new Uint8Array(0);let a=i.getReader(),s=[],o=0;try{for(;;){let{done:e,value:n}=await a.read();if(e)break;if((o+=n.length)>r)throw new eK({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});s.push(n)}}finally{try{await a.cancel()}catch(e){}finally{a.releaseLock()}}let u=new Uint8Array(o),l=0;for(let e of s)u.set(e,l),l+=e.length;return u}var e9=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let i=()=>{let e=r.length,n=Array(t);for(let i=0;i<t;i++)n[i]=r[Math.random()*e|0];return n.join("")};if(null==e)return i;if(r.includes(n))throw new p.Di({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${r}".`});return()=>`${e}${n}${i()}`},e2=e9();function e5(e=globalThis){var t,r,n;return e.window?"runtime/browser":(null==(t=e.navigator)?void 0:t.userAgent)?`runtime/${e.navigator.userAgent.toLowerCase()}`:(null==(n=null==(r=e.process)?void 0:r.versions)?void 0:n.node)?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function e3(e){if(null==e)return{};let t={};if(e instanceof Headers)e.forEach((e,r)=>{t[r.toLowerCase()]=e});else for(let[r,n]of(Array.isArray(e)||(e=Object.entries(e)),e))null!=n&&(t[r.toLowerCase()]=n);return t}function e7(e,...t){let r=new Headers(e3(e)),n=r.get("user-agent")||"";
12return r.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var e8=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,te=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function tt(e){let t=JSON.parse(e);return null===t||"object"!=typeof t||!1===e8.test(e)&&!1===te.test(e)?t:function(e){let t=[e];for(;t.length;){let e=t;for(let r of(t=[],e)){if(Object.prototype.hasOwnProperty.call(r,"__proto__")||Object.prototype.hasOwnProperty.call(r,"constructor")&&null!==r.constructor&&"object"==typeof r.constructor&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let e in r){let n=r[e];n&&"object"==typeof n&&t.push(n)}}}return e}(t)}function tr(e){if("object"===e.type||Array.isArray(e.type)&&e.type.includes("object")){let{additionalProperties:t}=e;e.additionalProperties=null!=t&&"boolean"!=typeof t&&tn(t);let{properties:r}=e;if(null!=r)for(let e of Object.keys(r))r[e]=tn(r[e])}null!=e.items&&(e.items=Array.isArray(e.items)?e.items.map(tn):tn(e.items)),null!=e.anyOf&&(e.anyOf=e.anyOf.map(tn)),null!=e.allOf&&(e.allOf=e.allOf.map(tn)),null!=e.oneOf&&(e.oneOf=e.oneOf.map(tn));let{definitions:t}=e;if(null!=t)for(let e of Object.keys(t))t[e]=tn(t[e]);return e}function tn(e){return"boolean"==typeof e?e:tr(e)}var ti=Symbol("Let zodToJsonSchema decide on which parser to use"),ta={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function ts(e,t){return tO(e.type._def,t)}var to=void 0,tu=/^[cC][^\s-]{8,}$/,tl=/^[0-9a-z]+$/,td=/^[0-9A-HJKMNP-TV-Z]{26}$/,tc=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9-]*\.)+[a-zA-Z]{2,}$/,tf=()=>(void 0===to&&(to=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),to),tm=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tp=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tv=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,th=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,tg=/^[a-zA-Z0-9_-]{21}$/,ty=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function t_(e,t){let r={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,n.value):n.value;break;case"max":r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":tx(r,"email",n.message,t);break;case"format:idn-email":tx(r,"idn-email",n.message,t);break;case"pattern:zod":tk(r,tc,n.message,t)}break;case"url":tx(r,"uri",n.message,t);break;case"uuid":tx(r,"uuid",n.message,t);break;case"regex":tk(r,n.regex,n.message,t);break;case"cuid":tk(r,tu,n.message,t);break;case"cuid2":tk(r,tl,n.message,t);break;case"startsWith":tk(r,RegExp(`^${tb(n.value,t)}`),n.message,t);break;case"endsWith":tk(r,RegExp(`${tb(n.value,t)}$`),n.message,t);break;case"datetime":tx(r,"date-time",n.message,t);break;case"date":tx(r,"date",n.message,t);break;case"time":tx(r,"time",n.message,t);break;case"duration":tx(r,"duration",n.message,t);break;case"length":r.minLength="number"==typeof r.minLength?Math.max(r.minLength,n.value):n.value,r.maxLength="number"==typeof r.maxLength?Math.min(r.maxLength,n.value):n.value;break;case"includes":tk(r,RegExp(tb(n.value,t)),n.message,t);break;case"ip":"v6"!==n.version&&tx(r,"ipv4",n.message,t),"v4"!==n.version&&tx(r,"ipv6",n.message,t);break;case"base64url":tk(r,th,n.message,t);break;case"jwt":tk(r,ty,n.message,t);break;case"cidr":"v6"!==n.version&&tk(r,tm,n.message,t),"v4"!==n.version&&tk(r,tp,n.message,t);break;case"emoji":tk(r,tf(),n.message,t);break;case"ulid":tk(r,td,n.message,t);break;case"base64":switch(t.base64Strategy){case"format:binary":tx(r,"binary",n.message,t);break;case"contentEncoding:base64":r.contentEncoding="base64";break;case"pattern:zod":tk(r,tv,n.message,t)}break;case"nanoid":tk(r,tg,n.message,t)}return r}function tb(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let r=0;r<e.length;r++)t$.has(e[r])||(t+="\\"),t+=e[r];return t}(e):e}var t$=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function tx(e,t,r,n){var i;e.format||(null==(i=e.anyOf)?void 0:i.some(e=>e.format))?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&n.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function tk(e,t,r,n){var i;e.pattern||(null==(i=e.allOf)?void 0:i.some(e=>e.pattern))?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}
12),delete e.pattern),e.allOf.push({pattern:tw(t,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=tw(t,n)}function tw(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=n.i?e.source.toLowerCase():e.source,a="",s=!1,o=!1,u=!1;for(let e=0;e<i.length;e++){if(s){a+=i[e],s=!1;continue}if(n.i){if(o){if(i[e].match(/[a-z]/)){u?(a+=i[e],a+=`${i[e-2]}-${i[e]}`.toUpperCase(),u=!1):"-"===i[e+1]&&(null==(r=i[e+2])?void 0:r.match(/[a-z]/))?(a+=i[e],u=!0):a+=`${i[e]}${i[e].toUpperCase()}`;continue}}else if(i[e].match(/[a-z]/)){a+=`[${i[e]}${i[e].toUpperCase()}]`;continue}}if(n.m){if("^"===i[e]){a+=`(^|(?<=[\r 13]))`;continue}else if("$"===i[e]){a+=`($|(?=[\r 14]))`;continue}}if(n.s&&"."===i[e]){a+=o?`${i[e]}\r 15`:`[${i[e]}\r 16]`;continue}a+=i[e],"\\"===i[e]?s=!0:o&&"]"===i[e]?o=!1:o||"["!==i[e]||(o=!0)}try{new RegExp(a)}catch(r){return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return a}function tI(e,t){var r,n,i,a,s,o;let u={type:"object",additionalProperties:null!=(r=tO(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))?r:t.allowedAdditionalProperties};if((null==(n=e.keyType)?void 0:n._def.typeName)===d.ZodString&&(null==(i=e.keyType._def.checks)?void 0:i.length)){let{type:r,...n}=t_(e.keyType._def,t);return{...u,propertyNames:n}}if((null==(a=e.keyType)?void 0:a._def.typeName)===d.ZodEnum)return{...u,propertyNames:{enum:e.keyType._def.values}};if((null==(s=e.keyType)?void 0:s._def.typeName)===d.ZodBranded&&e.keyType._def.type._def.typeName===d.ZodString&&(null==(o=e.keyType._def.type._def.checks)?void 0:o.length)){let{type:r,...n}=ts(e.keyType._def,t);return{...u,propertyNames:n}}return u}var tS={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function tO(e,t,r=!1){var n;let i=t.seen.get(e);if(t.override){let a=null==(n=t.override)?void 0:n.call(t,e,t,i,r);if(a!==ti)return a}if(i&&!r){let e=tz(i,t);if(void 0!==e)return e}let a={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,a);let s=((e,t,r)=>{var n,i,a,s,o,u;switch(t){case d.ZodString:return t_(e,r);case d.ZodNumber:let l={type:"number"};if(!e.checks)return l;for(let t of e.checks)switch(t.kind){case"int":l.type="integer";break;case"min":t.inclusive?l.minimum=t.value:l.exclusiveMinimum=t.value;break;case"max":t.inclusive?l.maximum=t.value:l.exclusiveMaximum=t.value;break;case"multipleOf":l.multipleOf=t.value}return l;case d.ZodObject:return function(e,t){let r={type:"object",properties:{}},n=[],i=e.shape();for(let e in i){let a=i[e];if(void 0===a||void 0===a._def)continue;let s=function(e){try{return e.isOptional()}catch(e){return!0}}(a),o=tO(a._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==o&&(r.properties[e]=o,s||n.push(e))}n.length&&(r.required=n);let a=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return tO(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==a&&(r.additionalProperties=a),r}(e,r);case d.ZodBigInt:let c={type:"integer",format:"int64"};if(!e.checks)return c;for(let t of e.checks)switch(t.kind){case"min":t.inclusive?c.minimum=t.value:c.exclusiveMinimum=t.value;break;case"max":t.inclusive?c.maximum=t.value:c.exclusiveMaximum=t.value;break;case"multipleOf":c.multipleOf=t.value}return c;case d.ZodBoolean:return{type:"boolean"};case d.ZodDate:return function e(t,r,n){let i=null!=n?n:r.dateStrategy;if(Array.isArray(i))return{anyOf:i.map((n,i)=>e(t,r,n))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var a=t;let s={type:"integer",format:"unix-time"};for(let e of a.checks)switch(e.kind){case"min":s.minimum=e.value;break;case"max":s.maximum=e.value}return s}}(e,r);case d.ZodUndefined:return{not:{}};case d.ZodNull:return{type:"null"};case d.ZodArray:let f;return f={type:"array"},(null==(a=e.type)?void 0:a._def)&&(null==(o=null==(s=e.type)?void 0:s._def)?void 0:o.typeName)!==d.ZodAny&&(f.items=tO(e.type._def,{...r,currentPath:[...r.currentPath,"items"]})),e.minLength&&(f.minItems=e.minLength.value),e.maxLength&&(f.maxItems=e.maxLength.value),e.exactLength&&(f.minItems=e.exactLength.value,f.maxItems=e.exactLength.value),f;case d.ZodUnion:case d.ZodDiscriminatedUnion:let m,p=e.options instanceof Map?Array.from(e.options.values()):e.options;if(p.every(e=>e._def.typeName in tS&&(!e._def.checks||!e._def.checks.length))){let e=p.reduce((e,t)=>
16{let r=tS[t._def.typeName];return r&&!e.includes(r)?[...e,r]:e},[]);return{type:e.length>1?e:e[0]}}if(p.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){let e=p.reduce((e,t)=>{let r=typeof t._def.value;switch(r){case"string":case"number":case"boolean":return[...e,r];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===p.length){let t=e.filter((e,t,r)=>r.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:p.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(p.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:p.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return n=e,i=r,(m=(n.options instanceof Map?Array.from(n.options.values()):n.options).map((e,t)=>tO(e._def,{...i,currentPath:[...i.currentPath,"anyOf",`${t}`]})).filter(e=>!!e&&(!i.strictUnions||"object"==typeof e&&Object.keys(e).length>0))).length?{anyOf:m}:void 0;case d.ZodIntersection:let v,h;return v=[tO(e.left._def,{...r,currentPath:[...r.currentPath,"allOf","0"]}),tO(e.right._def,{...r,currentPath:[...r.currentPath,"allOf","1"]})].filter(e=>!!e),h=[],v.forEach(e=>{if((!("type"in e)||"string"!==e.type)&&"allOf"in e)h.push(...e.allOf);else{let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){let{additionalProperties:r,...n}=e;t=n}h.push(t)}}),h.length?{allOf:h}:void 0;case d.ZodTuple:return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((e,t)=>tO(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:tO(e.rest._def,{...r,currentPath:[...r.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,t)=>tO(e._def,{...r,currentPath:[...r.currentPath,"items",`${t}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])};case d.ZodRecord:return tI(e,r);case d.ZodLiteral:let g;return"bigint"!=(g=typeof e.value)&&"number"!==g&&"boolean"!==g&&"string"!==g?{type:Array.isArray(e.value)?"array":"object"}:{type:"bigint"===g?"integer":g,const:e.value};case d.ZodEnum:return{type:"string",enum:Array.from(e.values)};case d.ZodNativeEnum:let y,_,b;return y=e.values,{type:1===(b=Array.from(new Set((_=Object.keys(e.values).filter(e=>"number"!=typeof y[y[e]]).map(e=>y[e])).map(e=>typeof e)))).length?"string"===b[0]?"string":"number":["string","number"],enum:_};case d.ZodNullable:if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[tS[e.innerType._def.typeName],"null"]};let $=tO(e.innerType._def,{...r,currentPath:[...r.currentPath,"anyOf","0"]});return $&&{anyOf:[$,{type:"null"}]};case d.ZodOptional:if(r.currentPath.toString()===(null==(u=r.propertyPath)?void 0:u.toString()))return tO(e.innerType._def,r);let x=tO(e.innerType._def,{...r,currentPath:[...r.currentPath,"anyOf","1"]});return x?{anyOf:[{not:{}},x]}:{};case d.ZodMap:if("record"===r.mapStrategy)return tI(e,r);return{type:"array",maxItems:125,items:{type:"array",items:[tO(e.keyType._def,{...r,currentPath:[...r.currentPath,"items","items","0"]})||{},tO(e.valueType._def,{...r,currentPath:[...r.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}};case d.ZodSet:let k;return k={type:"array",uniqueItems:!0,items:tO(e.valueType._def,{...r,currentPath:[...r.currentPath,"items"]})},e.minSize&&(k.minItems=e.minSize.value),e.maxSize&&(k.maxItems=e.maxSize.value),k;case d.ZodLazy:return()=>e.getter()._def;case d.ZodPromise:return tO(e.type._def,r);case d.ZodNaN:case d.ZodNever:return{not:{}};case d.ZodEffects:return"input"===r.effectStrategy?tO(e.schema._def,r):{};case d.ZodAny:case d.ZodUnknown:return{};case d.ZodDefault:return{...tO(e.innerType._def,r),default:e.defaultValue()};case d.ZodBranded:return ts(e,r);case d.ZodReadonly:case d.ZodCatch:return tO(e.innerType._def,r);case d.ZodPipeline:if("input"===r.pipeStrategy)return tO(e.in._def,r);if("output"===r.pipeStrategy)return tO(e.out._def,r);let w=tO(e.in._def,{...r,currentPath:[...r.currentPath,"allOf","0"]}),I=tO(e.out._def,{...r,currentPath:[...r.currentPath,"allOf",w?"1":"0"]});return{allOf:[w,I].filter(e=>void 0!==e)};case d.ZodFunction:case d.ZodVoid:case d.ZodSymbol:default:return}})(e,e.typeName,t),o="function"==typeof s?tO(s(),t):s;if(o&&tj(e,t,o),t.postProcess){let r=t.postProcess(o,e,t);return a.jsonSchema=o,r}return a.jsonSchema=o,o}var tz=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:((e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")})(t.currentPath,e.path)};case"none":case"seen":if(e.path.length<t.currentPath.length&&e.path.every((e,r)=>t.currentPath[r]===e))return console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{};return"seen"===t.$refStrategy?{}:void 0}},tj=(e,t,r)=>(e.description&&(r.description=e.description),r),tN=Symbol.for("vercel.ai.schema");function tU(e){let t;return()=>(null==t&&(t=e()),t)}function tZ(e,{validate:t}={}){return{[tN]:!0,_type:void 0,get jsonSchema(){return"function"==typeof e&&(e=e()),e},validate:t}}function tP(e){var t;return null==e?tZ({type:"object",properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&tN in e&&!0===e[tN]&&"jsonSchema"in e&&"validate"in e?e:"~standard"in e?"zod"===e["~standard"].vendor?tA(e):(t=e,tZ(()=>
16{if(null==t["~standard"].jsonSchema)throw Error(`Standard schema vendor '${t["~standard"].vendor}' does not support JSON Schema conversion.`);return tr(t["~standard"].jsonSchema.input({target:"draft-07"}))},{validate:async e=>{let r=await t["~standard"].validate(e);return"value"in r?{success:!0,value:r.value}:{success:!1,error:new p.iM({value:e,cause:r.issues})}}})):e()}function tA(e,t){var r,n;let i;if("_zod"in e){let n;return n=null!=(r=null==t?void 0:t.useReferences)&&r,tZ(()=>tr(v.blZ(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async t=>{let r=await v.bpZ(e,t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}return i=null!=(n=null==t?void 0:t.useReferences)&&n,tZ(()=>((e,t)=>{var r;let n,i,a=(i=void 0!==(n="string"==typeof t?{...ta,name:t}:{...ta,...t}).name?[...n.basePath,n.definitionPath,n.name]:n.basePath,{...n,currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...n.basePath,n.definitionPath,e],jsonSchema:void 0}]))}),s="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>{var n;return{...e,[t]:null!=(n=tO(r._def,{...a,currentPath:[...a.basePath,a.definitionPath,t]},!0))?n:{}}},{}):void 0,o="string"==typeof t?t:(null==t?void 0:t.nameStrategy)==="title"||null==t?void 0:t.name,u=null!=(r=tO(e._def,void 0===o?a:{...a,currentPath:[...a.basePath,a.definitionPath,o]},!1))?r:{},l="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==l&&(u.title=l);let d=void 0===o?s?{...u,[a.definitionPath]:s}:u:{$ref:[..."relative"===a.$refStrategy?[]:a.basePath,a.definitionPath,o].join("/"),[a.definitionPath]:{...s,[o]:u}};return d.$schema="http://json-schema.org/draft-07/schema#",d})(e,{$refStrategy:i?"root":"none"}),{validate:async t=>{let r=await e.safeParseAsync(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}async function tT({value:e,schema:t,context:r}){let n=await tE({value:e,schema:t,context:r});if(!n.success)throw p.iM.wrap({value:e,cause:n.error,context:r});return n.value}async function tE({value:e,schema:t,context:r}){let n=tP(t);try{if(null==n.validate)return{success:!0,value:e,rawValue:e};let t=await n.validate(e);if(t.success)return{success:!0,value:t.value,rawValue:e};return{success:!1,error:p.iM.wrap({value:e,cause:t.error,context:r}),rawValue:e}}catch(t){return{success:!1,error:p.iM.wrap({value:e,cause:t,context:r}),rawValue:e}}}async function tD({text:e,schema:t}){try{let r=function(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch(t){return tt(e)}try{return tt(e)}finally{Error.stackTraceLimit=t}}(e);if(null==t)return{success:!0,value:r,rawValue:r};return await tE({value:r,schema:t})}catch(t){return{success:!1,error:p.u6.isInstance(t)?t:new p.u6({text:e,cause:t}),rawValue:void 0}}}function tC({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new eD).pipeThrough(new TransformStream({async transform({data:e},r){"[DONE]"!==e&&r.enqueue(await tD({text:e,schema:t}))}}))}async function tL(e){return"function"==typeof e&&(e=e()),e}new TextDecoder},64828:(e,t,r)=>{"use strict";r.d(t,{Y_:()=>k});var n,i,a,s,o,u,l,d,c,f,m=r(87809),p=r(14232),v=r(38878),h=r.n(v),g=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},y=(e,t,r)=>(g(e,t,"read from private field"),r?r.call(e):t.get(e)),_=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},b=(e,t,r,n)=>(g(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),$=class{constructor(e=[]){_(this,n,void 0),_(this,i,"ready"),_(this,a,void 0),_(this,s,new Set),_(this,o,new Set),_(this,u,new Set),this.pushMessage=e=>{b(this,n,y(this,n).concat(e)),y(this,l).call(this)},this.popMessage=()=>{b(this,n,y(this,n).slice(0,-1)),y(this,l).call(this)},this.replaceMessage=(e,t)=>{b(this,n,[...y(this,n).slice(0,e),this.snapshot(t),...y(this,n).slice(e+1)]),y(this,l).call(this)},this.snapshot=e=>{var t;if(null==e||"object"!=typeof e||!("parts"in e)||!Array.isArray(e.parts))return e;let r={...e,parts:e.parts.map(e=>({...e}))};return"metadata"in e&&(r.metadata=Array.isArray(t=e.metadata)?[...t]:null!=t&&"object"==typeof t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))?{...t}:t),r},this["~registerMessagesCallback"]=(e,t)=>{let r=t?null!=t?h()(e,t):e:e;return y(this,s).add(r),()=>{y(this,s).delete(r)}},this["~registerStatusCallback"]=e=>(y(this,o).add(e),()=>{y(this,o).delete(e)}),this["~registerErrorCallback"]=e=>(y(this,u).add(e),()=>{y(this,u).delete(e)}),_(this,l,()=>
16{y(this,s).forEach(e=>e())}),_(this,d,()=>{y(this,o).forEach(e=>e())}),_(this,c,()=>{y(this,u).forEach(e=>e())}),b(this,n,e)}get status(){return y(this,i)}set status(e){b(this,i,e),y(this,d).call(this)}get error(){return y(this,a)}set error(e){b(this,a,e),y(this,c).call(this)}get messages(){return y(this,n)}set messages(e){b(this,n,[...e]),y(this,l).call(this)}};n=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,o=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap,c=new WeakMap;var x=class extends m.vl{constructor({messages:e,...t}){const r=new $(e);super({...t,state:r}),_(this,f,void 0),this["~registerMessagesCallback"]=(e,t)=>y(this,f)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>y(this,f)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>y(this,f)["~registerErrorCallback"](e),b(this,f,r)}};function k({experimental_throttle:e,resume:t=!1,...r}={}){let n,i=(0,p.useRef)({});"chat"in r||(i.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen,transport:r.transport});let a=()=>{var e;return null!=(e=i.current.transport)?e:null!=n?n:n=new m.rL},s={...r,transport:{sendMessages:e=>a().sendMessages(e),reconnectToStream:e=>a().reconnectToStream(e)},onToolCall:e=>{var t,r;return null==(r=(t=i.current).onToolCall)?void 0:r.call(t,e)},onData:e=>{var t,r;return null==(r=(t=i.current).onData)?void 0:r.call(t,e)},onFinish:e=>{var t,r;return null==(r=(t=i.current).onFinish)?void 0:r.call(t,e)},onError:e=>{var t,r;return null==(r=(t=i.current).onError)?void 0:r.call(t,e)},sendAutomaticallyWhen:e=>{var t,r,n;return null!=(n=null==(r=(t=i.current).sendAutomaticallyWhen)?void 0:r.call(t,e))&&n}},o=(0,p.useRef)("chat"in r?r.chat:new x(s));("chat"in r&&r.chat!==o.current||"id"in r&&null!=r.id&&o.current.id!==r.id)&&(o.current="chat"in r?r.chat:new x(s));let u=o.current,l=(0,p.useRef)({chat:u,messages:u.messages});l.current.chat!==u&&(l.current={chat:u,messages:u.messages});let d=(0,p.useCallback)(t=>{let r=!0,n=u["~registerMessagesCallback"](()=>{r&&l.current.chat===u&&(l.current={chat:u,messages:u.messages},t())},e);return l.current={chat:u,messages:u.messages},()=>{r=!1,n()}},[u,e]),c=(0,p.useCallback)(()=>l.current.messages,[]),f=(0,p.useSyncExternalStore)(d,c,c),v=(0,p.useCallback)(e=>u["~registerStatusCallback"](()=>{l.current.chat===u&&(("ready"===u.status||"error"===u.status)&&(l.current={chat:u,messages:u.messages}),e())}),[u]),h=(0,p.useCallback)(()=>u.status,[u]),g=(0,p.useSyncExternalStore)(v,h,h),y=(0,p.useSyncExternalStore)(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),_=(0,p.useCallback)(e=>{"function"==typeof e&&(e=e(o.current.messages)),o.current.messages=e},[o]);return(0,p.useEffect)(()=>{t&&o.current.resumeStream()},[t,o]),{id:o.current.id,messages:f,setMessages:_,sendMessage:o.current.sendMessage,regenerate:o.current.regenerate,clearError:o.current.clearError,stop:o.current.stop,error:y,resumeStream:o.current.resumeStream,status:g,addToolResult:o.current.addToolOutput,addToolOutput:o.current.addToolOutput,addToolApprovalResponse:o.current.addToolApprovalResponse}}f=new WeakMap},66894:(e,t,r)=>{"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(14232),a=r(80895),s=["active","paused","tag","focusTrapOptions","_createFocusTrap"],o=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.setNode=function(e){r.node=e},"u">typeof document&&(r.previouslyFocusedElement=document.activeElement),r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n(t,[{key:"c
16omponentDidMount",value:function(){var e=this.props.focusTrapOptions,t={returnFocusOnDeactivate:!1};for(var r in e)e.hasOwnProperty(r)&&"returnFocusOnDeactivate"!==r&&(t[r]=e[r]);this.focusTrap=this.props._createFocusTrap(this.node,t),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(e){if(e.active&&!this.props.active){var t=this.props.focusTrapOptions.returnFocusOnDeactivate;this.focusTrap.deactivate({returnFocus:t||!1})}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}},{key:"render",value:function(){var e={ref:this.setNode};for(var t in this.props)this.props.hasOwnProperty(t)&&-1===s.indexOf(t)&&(e[t]=this.props[t]);return i.createElement(this.props.tag,e,this.props.children)}}]),t}(i.Component);o.defaultProps={active:!0,tag:"div",paused:!1,focusTrapOptions:{},_createFocusTrap:a},e.exports=o},73268:e=>{var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=t.join(","),n="u"<typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function i(e,t){t=t||{};var i,s,o,d=e.ownerDocument||e,f=[],m=[],p=new c(d),v=e.querySelectorAll(r);for(t.includeContainer&&n.call(e,r)&&(v=Array.prototype.slice.apply(v)).unshift(e),i=0;i<v.length;i++)a(s=v[i],p)&&(0===(o=u(s))?f.push(s):m.push({documentOrder:i,tabIndex:o,node:s}));return m.sort(l).map(function(e){return e.node}).concat(f)}function a(e,t){return!(!s(e,t)||function(e){return d(e)&&"radio"===e.type&&!function(e){if(!e.name)return!0;var t=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'));return!t||t===e}(e)}(e)||0>u(e))}function s(e,t){var r;return t=t||new c(e.ownerDocument||e),!(e.disabled||d(r=e)&&"hidden"===r.type||t.isUntouchable(e))}i.isTabbable=function(e,t){if(!e)throw Error("No node provided");return!1!==n.call(e,r)&&a(e,t)},i.isFocusable=function(e,t){if(!e)throw Error("No node provided");return!1!==n.call(e,o)&&s(e,t)};var o=t.concat("iframe").join(",");function u(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?"true"===e.contentEditable?0:e.tabIndex:t}function l(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function d(e){return"INPUT"===e.tagName}function c(e){this.doc=e,this.cache=[]}c.prototype.hasDisplayNone=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var r=function(e,t){for(var r=0,n=e.length;r<n;r++)if(t(e[r]))return e[r]}(this.cache,function(t){return t===e});if(r)return r[1];t=t||this.doc.defaultView.getComputedStyle(e);var n=!1;return"none"===t.display?n=!0:e.parentNode&&(n=this.hasDisplayNone(e.parentNode)),this.cache.push([e,n]),n},c.prototype.isUntouchable=function(e){if(e===this.doc.documentElement)return!1;var t=this.doc.defaultView.getComputedStyle(e);return!!this.hasDisplayNone(e,t)||"hidden"===t.visibility},e.exports=i},78248:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});var n=r(33612),i=r(14232),a=r(18877),s=r(31167),o=r(67994),u=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function l(e,t){var r=(0,s.k)((0,o.m)(t&&t.client),e),l=(0,i.useRef)(),d=l.current?(0,a.l)(t,l.current):t,c=r.useQuery((0,n.Cl)((0,n.Cl)({},d),{skip:!l.current})),f=c.observable.options.initialFetchPolicy||r.getDefaultFetchPolicy(),m=Object.assign(c,{called:!!l.current}),p=(0,i.useMemo)(function(){for(var e={},t=0;t<u.length;t++)!function(t){var n=m[t];e[t]=function(){return l.current||(l.current=Object.create(null),r.forceUpdate()),n.apply(this,arguments)}}(u[t]);return e},[]);return Object.assign(m,p),[(0,i.useCallback)(function(e){l.current=e?(0,n.Cl)((0,n.Cl)({},e),{fetchPolicy:e.fetchPolicy||f}):{fetchPolicy:f};var t=r.asyncUpdate().then(function(e){return Object.assign(e,p)});return t.catch(function(){}),t},[]),m]}},80895:(e,t,r)=>{var n=r(73268),i=r(49078),a=null;function s(e){return setTimeout(e,0)}
16e.exports=function(e,t){var r=document,o="string"==typeof e?r.querySelector(e):e,u=i({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),l={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},d={activate:function(e){if(!l.active){b(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=r.activeElement;var t=e&&e.onActivate?e.onActivate:u.onActivate;return t&&t(),f(),d}},deactivate:c,pause:function(){!l.paused&&l.active&&(l.paused=!0,m())},unpause:function(){l.paused&&l.active&&(l.paused=!1,f())}};return d;function c(e){if(l.active){m(),l.active=!1,l.paused=!1;var t=e&&void 0!==e.onDeactivate?e.onDeactivate:u.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:u.returnFocusOnDeactivate)&&s(function(){$(l.nodeFocusedBeforeActivation)}),d}}function f(){if(l.active)return a&&a.pause(),a=d,b(),s(function(){$(v())}),r.addEventListener("focusin",g,!0),r.addEventListener("mousedown",h,!0),r.addEventListener("touchstart",h,!0),r.addEventListener("click",_,!0),r.addEventListener("keydown",y,!0),d}function m(){if(l.active&&a===d)return r.removeEventListener("focusin",g,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",_,!0),r.removeEventListener("keydown",y,!0),a=null,d}function p(e){var t=u[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=r.querySelector(t)))throw Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(n=t()))throw Error("`"+e+"` did not return a node");return n}function v(){var e;if(!(e=null!==p("initialFocus")?p("initialFocus"):o.contains(r.activeElement)?r.activeElement:l.firstTabbableNode||p("fallbackFocus")))throw Error("You can't have a focus-trap without at least one focusable element");return e}function h(e){o.contains(e.target)||(u.clickOutsideDeactivates?c({returnFocus:!n.isFocusable(e.target)}):e.preventDefault())}function g(e){o.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),$(l.mostRecentlyFocusedNode||v()))}function y(e){var t,r;if(!1!==u.escapeDeactivates&&("Escape"===(t=e).key||"Esc"===t.key||27===t.keyCode)){e.preventDefault(),c();return}if("Tab"===(r=e).key||9===r.keyCode)return void function(e){if(b(),e.shiftKey&&e.target===l.firstTabbableNode){e.preventDefault(),$(l.lastTabbableNode);return}e.shiftKey||e.target!==l.lastTabbableNode||(e.preventDefault(),$(l.firstTabbableNode))}(e)}function _(e){u.clickOutsideDeactivates||o.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function b(){var e=n(o);l.firstTabbableNode=e[0]||v(),l.lastTabbableNode=e[e.length-1]||v()}function $(e){if(e!==r.activeElement){var t;if(!e||!e.focus)return void $(v());e.focus(),l.mostRecentlyFocusedNode=e,(t=e).tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select&&e.select()}}}},85202:()=>{},91701:(e,t,r)=>{"use strict";r.d(t,{bpZ:()=>sT,blZ:()=>sb,z:()=>c});var n,i={};r.r(i),r.d(i,{BIGINT_FORMAT_RANGES:()=>en,Class:()=>eI,NUMBER_FORMAT_RANGES:()=>er,aborted:()=>ec,allowsEval:()=>J,assert:()=>k,assertEqual:()=>_,assertIs:()=>$,assertNever:()=>x,assertNotEqual:()=>b,assignProp:()=>A,base64ToUint8Array:()=>e_,base64urlToUint8Array:()=>e$,cached:()=>O,captureStackTrace:()=>F,cleanEnum:()=>ey,cleanRegex:()=>j,clone:()=>H,cloneDef:()=>E,createTransparentProxy:()=>Q,defineLazy:()=>Z,esc:()=>R,escapeRegex:()=>X,extend:()=>es,finalizeIssue:()=>ep,floatSafeRemainder:()=>N,getElementAtPath:()=>D,getEnumValues:()=>w,getLengthableOrigin:()=>eh,getParsedType:()=>B,getSizableOrigin:()=>ev,hexToUint8Array:()=>ek,isObject:()=>M,isPlainObject:()=>W,issue:()=>eg,joinValues:()=>I,jsonStringifyReplacer:()=>S,merge:()=>eu,mergeDefs:()=>T,normalizeParams:()=>Y,nullish:()=>z,numKeys:()=>K,objectClone:()=>P,omit:()=>ea,optionalKeys:()=>et,partial:()=>el,pick:()=>ei,prefixIssues:()=>ef,primitiveTypes:()=>q,promiseAllObject:()=>C,propertyKeyTypes:()=>G,randomString:()=>L,required:()=>ed,safeExtend:()=>eo,shallowClone:()=>V,stringifyPrimitive:()=>ee,uint8ArrayToBase64:()=>eb,uint8ArrayToBase64url:()=>ex,uint8ArrayToHex:()=>ew,unwrapMessage:()=>em});var a={};r.r(a),r.d(a,{base64:()=>ty,base64url:()=>t_,bigint:()=>tj,boolean:()=>tZ,browserEmail:()=>tf,cidrv4:()=>th,cidrv6:()=>tg,cuid:()=>e9,cuid2:()=>e2,date:()=>tw,datetime:()=>tO,domain:()=>t$,duration:()=>te,e164:()=>tx,email:()=>to,emoji:()=>tm,extendedDuration:()=>tt,guid:()=>tr,hex:()=>tD,hostname:()=>tb,html5Email:()=>
16tu,idnEmail:()=>tc,integer:()=>tN,ipv4:()=>tp,ipv6:()=>tv,ksuid:()=>e7,lowercase:()=>tT,md5_base64:()=>tF,md5_base64url:()=>tM,md5_hex:()=>tR,nanoid:()=>e8,null:()=>tP,number:()=>tU,rfc5322Email:()=>tl,sha1_base64:()=>tW,sha1_base64url:()=>tV,sha1_hex:()=>tJ,sha256_base64:()=>tB,sha256_base64url:()=>tG,sha256_hex:()=>tK,sha384_base64:()=>tX,sha384_base64url:()=>tH,sha384_hex:()=>tq,sha512_base64:()=>tQ,sha512_base64url:()=>t0,sha512_hex:()=>tY,string:()=>tz,time:()=>tS,ulid:()=>e5,undefined:()=>tA,unicodeEmail:()=>td,uppercase:()=>tE,uuid:()=>tn,uuid4:()=>ti,uuid6:()=>ta,uuid7:()=>ts,xid:()=>e3});var s={};r.r(s),r.d(s,{ar:()=>nJ,az:()=>nW,be:()=>nK,ca:()=>nB,cs:()=>nG,da:()=>nq,de:()=>nX,en:()=>nH,eo:()=>nY,es:()=>nQ,fa:()=>n0,fi:()=>n1,fr:()=>n4,frCA:()=>n6,he:()=>n9,hu:()=>n2,id:()=>n5,is:()=>n3,it:()=>n7,ja:()=>n8,ka:()=>ie,kh:()=>ir,km:()=>it,ko:()=>ii,lt:()=>iu,mk:()=>il,ms:()=>id,nl:()=>ic,no:()=>im,ota:()=>ip,pl:()=>ih,ps:()=>iv,pt:()=>ig,ru:()=>i_,sl:()=>ib,sv:()=>i$,ta:()=>ix,th:()=>ik,tr:()=>iw,ua:()=>iS,uk:()=>iI,ur:()=>iO,vi:()=>iz,yo:()=>iU,zhCN:()=>ij,zhTW:()=>iN});var o={};r.r(o);var u={};r.r(u),r.d(u,{$ZodAny:()=>r1,$ZodArray:()=>r3,$ZodAsyncError:()=>v,$ZodBase64:()=>rR,$ZodBase64URL:()=>rM,$ZodBigInt:()=>rX,$ZodBigIntFormat:()=>rH,$ZodBoolean:()=>rq,$ZodCIDRv4:()=>rD,$ZodCIDRv6:()=>rC,$ZodCUID:()=>rS,$ZodCUID2:()=>rO,$ZodCatch:()=>nz,$ZodCheck:()=>t1,$ZodCheckBigIntFormat:()=>t3,$ZodCheckEndsWith:()=>rd,$ZodCheckGreaterThan:()=>t9,$ZodCheckIncludes:()=>ru,$ZodCheckLengthEquals:()=>rn,$ZodCheckLessThan:()=>t6,$ZodCheckLowerCase:()=>rs,$ZodCheckMaxLength:()=>rt,$ZodCheckMaxSize:()=>t7,$ZodCheckMimeType:()=>rm,$ZodCheckMinLength:()=>rr,$ZodCheckMinSize:()=>t8,$ZodCheckMultipleOf:()=>t2,$ZodCheckNumberFormat:()=>t5,$ZodCheckOverwrite:()=>rp,$ZodCheckProperty:()=>rf,$ZodCheckRegex:()=>ra,$ZodCheckSizeEquals:()=>re,$ZodCheckStartsWith:()=>rl,$ZodCheckStringFormat:()=>ri,$ZodCheckUpperCase:()=>ro,$ZodCodec:()=>nZ,$ZodCustom:()=>nF,$ZodCustomStringFormat:()=>rK,$ZodDate:()=>r2,$ZodDefault:()=>nx,$ZodDiscriminatedUnion:()=>na,$ZodE164:()=>rJ,$ZodEmail:()=>rx,$ZodEmoji:()=>rw,$ZodEncodeError:()=>h,$ZodEnum:()=>nv,$ZodError:()=>eO,$ZodFile:()=>ng,$ZodFunction:()=>nC,$ZodGUID:()=>rb,$ZodIPv4:()=>rT,$ZodIPv6:()=>rE,$ZodISODate:()=>rZ,$ZodISODateTime:()=>rU,$ZodISODuration:()=>rA,$ZodISOTime:()=>rP,$ZodIntersection:()=>ns,$ZodJWT:()=>rV,$ZodKSUID:()=>rN,$ZodLazy:()=>nR,$ZodLiteral:()=>nh,$ZodMap:()=>nc,$ZodNaN:()=>nj,$ZodNanoID:()=>rI,$ZodNever:()=>r6,$ZodNonOptional:()=>nI,$ZodNull:()=>r0,$ZodNullable:()=>n$,$ZodNumber:()=>rB,$ZodNumberFormat:()=>rG,$ZodObject:()=>nt,$ZodObjectJIT:()=>nr,$ZodOptional:()=>nb,$ZodPipe:()=>nN,$ZodPrefault:()=>nw,$ZodPromise:()=>nL,$ZodReadonly:()=>nT,$ZodRealError:()=>ez,$ZodRecord:()=>nd,$ZodRegistry:()=>iA,$ZodSet:()=>nm,$ZodString:()=>ry,$ZodStringFormat:()=>r_,$ZodSuccess:()=>nO,$ZodSymbol:()=>rY,$ZodTemplateLiteral:()=>nD,$ZodTransform:()=>ny,$ZodTuple:()=>nu,$ZodType:()=>rg,$ZodULID:()=>rz,$ZodURL:()=>rk,$ZodUUID:()=>r$,$ZodUndefined:()=>rQ,$ZodUnion:()=>ni,$ZodUnknown:()=>r4,$ZodVoid:()=>r9,$ZodXID:()=>rj,$brand:()=>p,$constructor:()=>m,$input:()=>iP,$output:()=>iZ,Doc:()=>rv,JSONSchema:()=>o,JSONSchemaGenerator:()=>s_,NEVER:()=>f,TimePrecision:()=>i3,_any:()=>ay,_array:()=>aQ,_base64:()=>i6,_base64url:()=>i9,_bigint:()=>ac,_boolean:()=>al,_catch:()=>so,_check:()=>sh,_cidrv4:()=>i1,_cidrv6:()=>i4,_coercedBigint:()=>af,_coercedBoolean:()=>ad,_coercedDate:()=>ak,_coercedNumber:()=>an,_coercedString:()=>iC,_cuid:()=>iG,_cuid2:()=>iq,_custom:()=>sm,_date:()=>ax,_decode:()=>eW,_decodeAsync:()=>eG,_default:()=>si,_discriminatedUnion:()=>a1,_e164:()=>i2,_email:()=>iL,_emoji:()=>iK,_encode:()=>eM,_encodeAsync:()=>eK,_endsWith:()=>aV,_enum:()=>a3,_file:()=>se,_float32:()=>aa,_float64:()=>as,_gt:()=>aO,_gte:()=>az,_guid:()=>iR,_includes:()=>aJ,_int:()=>ai,_int32:()=>ao,_int64:()=>am,_intersection:()=>a4,_ipv4:()=>iQ,_ipv6:()=>i0,_isoDate:()=>i8,_isoDateTime:()=>i7,_isoDuration:()=>at,_isoTime:()=>ae,_jwt:()=>i5,_ksuid:()=>iY,_lazy:()=>sc,_length:()=>aL,_literal:()=>a8,_lowercase:()=>aF,_lt:()=>aI,_lte:()=>aS,_map:()=>a2,_max:()=>aS,_maxLength:()=>aD,_maxSize:()=>aA,_mime:()=>aB,_min:()=>az,_minLength:()=>aC,_minSize:()=>aT,_multipleOf:()=>aP,_nan:()=>aw,_nanoid:()=>iB,_nativeEnum:()=>a7,_negative:()=>aN,_never:()=>ab,_nonnegative:()=>aZ,_nonoptional:()=>sa,_nonpositive:()=>aU,_normalize:()=>aq,_null:()=>ag,_nullable:()=>sn,_number:()=>ar,_optional:()=>sr,_overwrite:()=>aG,_parse:()=>eA,_parseAsync:()=>eE,_pipe:()=>su,_positive:()=>aj,_promise:()=>sf,_property:()=>aK,_readonly:()=>sl,_record:()=>a9,_refine:()=>sp,_regex:()=>aR,_safeDecode:()=>eY,_safeDecodeAsync:()=>e4,_safeEncode:()=>eX,_safeEncodeAsync:()=>e0,_safeParse:()=>eC,_safeParseAsync:()=>
16eR,_set:()=>a5,_size:()=>aE,_startsWith:()=>aW,_string:()=>iD,_stringFormat:()=>sy,_stringbool:()=>sg,_success:()=>ss,_superRefine:()=>sv,_symbol:()=>av,_templateLiteral:()=>sd,_toLowerCase:()=>aH,_toUpperCase:()=>aY,_transform:()=>st,_trim:()=>aX,_tuple:()=>a6,_uint32:()=>au,_uint64:()=>ap,_ulid:()=>iX,_undefined:()=>ah,_union:()=>a0,_unknown:()=>a_,_uppercase:()=>aM,_url:()=>iV,_uuid:()=>iF,_uuidv4:()=>iM,_uuidv6:()=>iJ,_uuidv7:()=>iW,_void:()=>a$,_xid:()=>iH,clone:()=>H,config:()=>y,decode:()=>eV,decodeAsync:()=>eq,encode:()=>eJ,encodeAsync:()=>eB,flattenError:()=>ej,formatError:()=>eN,globalConfig:()=>g,globalRegistry:()=>iE,isValidBase64:()=>rL,isValidBase64URL:()=>rF,isValidJWT:()=>rW,locales:()=>s,parse:()=>eT,parseAsync:()=>eD,prettifyError:()=>eP,regexes:()=>a,registry:()=>iT,safeDecode:()=>eQ,safeDecodeAsync:()=>e6,safeEncode:()=>eH,safeEncodeAsync:()=>e1,safeParse:()=>eL,safeParseAsync:()=>eF,toDotPath:()=>eZ,toJSONSchema:()=>sb,treeifyError:()=>eU,util:()=>i,version:()=>rh});var l={};r.r(l),r.d(l,{ZodISODate:()=>sk,ZodISODateTime:()=>s$,ZodISODuration:()=>sO,ZodISOTime:()=>sI,date:()=>sw,datetime:()=>sx,duration:()=>sz,time:()=>sS});var d={};r.r(d),r.d(d,{bigint:()=>lf,boolean:()=>lc,date:()=>lm,number:()=>ld,string:()=>ll});var c={};r.r(c),r.d(c,{$brand:()=>p,$input:()=>iP,$output:()=>iZ,NEVER:()=>f,TimePrecision:()=>i3,ZodAny:()=>oQ,ZodArray:()=>o8,ZodBase64:()=>o_,ZodBase64URL:()=>o$,ZodBigInt:()=>
16oM,ZodBigIntFormat:()=>oW,ZodBoolean:()=>oR,ZodCIDRv4:()=>ov,ZodCIDRv6:()=>og,ZodCUID:()=>ot,ZodCUID2:()=>on,ZodCatch:()=>uJ,ZodCodec:()=>uq,ZodCustom:()=>u3,ZodCustomStringFormat:()=>oO,ZodDate:()=>o3,ZodDefault:()=>uT,ZodDiscriminatedUnion:()=>uu,ZodE164:()=>ok,ZodEmail:()=>sq,ZodEmoji:()=>s3,ZodEnum:()=>u$,ZodError:()=>sN,ZodFile:()=>uS,ZodFirstPartyTypeKind:()=>n,ZodFunction:()=>u2,ZodGUID:()=>sH,ZodIPv4:()=>oc,ZodIPv6:()=>om,ZodISODate:()=>sk,ZodISODateTime:()=>s$,ZodISODuration:()=>sO,ZodISOTime:()=>sI,ZodIntersection:()=>ud,ZodIssueCode:()=>ls,ZodJWT:()=>oI,ZodKSUID:()=>ol,ZodLazy:()=>u1,ZodLiteral:()=>uw,ZodMap:()=>ug,ZodNaN:()=>uV,ZodNanoID:()=>s8,ZodNever:()=>o6,ZodNonOptional:()=>uL,ZodNull:()=>oH,ZodNullable:()=>uZ,ZodNumber:()=>oZ,ZodNumberFormat:()=>oA,ZodObject:()=>ur,ZodOptional:()=>uN,ZodPipe:()=>uB,ZodPrefault:()=>uD,ZodPromise:()=>u6,ZodReadonly:()=>uH,ZodRealError:()=>sU,ZodRecord:()=>up,ZodSet:()=>u_,ZodString:()=>sK,ZodStringFormat:()=>sG,ZodSuccess:()=>uF,ZodSymbol:()=>oB,ZodTemplateLiteral:()=>uQ,ZodTransform:()=>uz,ZodTuple:()=>uf,ZodType:()=>sW,ZodULID:()=>oa,ZodURL:()=>s9,ZodUUID:()=>sQ,ZodUndefined:()=>oq,ZodUnion:()=>us,ZodUnknown:()=>o1,ZodVoid:()=>o2,ZodXID:()=>oo,_ZodString:()=>sV,_default:()=>uE,_function:()=>u5,any:()=>o0,array:()=>ue,base64:()=>ob,base64url:()=>ox,bigint:()=>oJ,boolean:()=>oF,catch:()=>uW,check:()=>u7,cidrv4:()=>oh,cidrv6:()=>oy,clone:()=>H,codec:()=>uX,coerce:()=>d,config:()=>y,core:()=>u,cuid:()=>or,cuid2:()=>oi,custom:()=>u8,date:()=>o7,decode:()=>sD,decodeAsync:()=>sL,discriminatedUnion:()=>ul,e164:()=>ow,email:()=>sX,emoji:()=>s7,encode:()=>sE,encodeAsync:()=>sC,endsWith:()=>aV,enum:()=>ux,file:()=>uO,flattenError:()=>ej,float32:()=>oE,float64:()=>oD,formatError:()=>eN,function:()=>u5,getErrorMap:()=>lu,globalRegistry:()=>iE,gt:()=>aO,gte:()=>az,guid:()=>sY,hash:()=>oU,hex:()=>oN,hostname:()=>oj,httpUrl:()=>s5,includes:()=>aJ,instanceof:()=>lr,int:()=>oT,int32:()=>oC,int64:()=>oV,intersection:()=>uc,ipv4:()=>of,ipv6:()=>op,iso:()=>l,json:()=>li,jwt:()=>oS,keyof:()=>ut,ksuid:()=>od,lazy:()=>u4,length:()=>aL,literal:()=>uI,locales:()=>s,looseObject:()=>ua,lowercase:()=>aF,lt:()=>aI,lte:()=>aS,map:()=>uy,maxLength:()=>aD,maxSize:()=>aA,mime:()=>aB,minLength:()=>aC,minSize:()=>aT,multipleOf:()=>aP,nan:()=>uK,nanoid:()=>oe,nativeEnum:()=>uk,negative:()=>aN,never:()=>o9,nonnegative:()=>aZ,nonoptional:()=>uR,nonpositive:()=>aU,normalize:()=>aq,null:()=>
16oY,nullable:()=>uP,nullish:()=>uA,number:()=>oP,object:()=>un,optional:()=>uU,overwrite:()=>aG,parse:()=>sZ,parseAsync:()=>sP,partialRecord:()=>uh,pipe:()=>uG,positive:()=>aj,prefault:()=>uC,preprocess:()=>la,prettifyError:()=>eP,promise:()=>u9,property:()=>aK,readonly:()=>uY,record:()=>uv,refine:()=>le,regex:()=>aR,regexes:()=>a,registry:()=>iT,safeDecode:()=>sF,safeDecodeAsync:()=>sJ,safeEncode:()=>sR,safeEncodeAsync:()=>sM,safeParse:()=>sA,safeParseAsync:()=>sT,set:()=>ub,setErrorMap:()=>lo,size:()=>aE,startsWith:()=>aW,strictObject:()=>ui,string:()=>sB,stringFormat:()=>oz,stringbool:()=>ln,success:()=>uM,superRefine:()=>lt,symbol:()=>oG,templateLiteral:()=>u0,toJSONSchema:()=>sb,toLowerCase:()=>aH,toUpperCase:()=>aY,transform:()=>uj,treeifyError:()=>eU,trim:()=>aX,tuple:()=>um,uint32:()=>oL,uint64:()=>oK,ulid:()=>os,undefined:()=>oX,union:()=>uo,unknown:()=>o4,uppercase:()=>aM,url:()=>s2,util:()=>i,uuid:()=>s0,uuidv4:()=>s1,uuidv6:()=>s4,uuidv7:()=>s6,void:()=>o5,xid:()=>ou});let f=Object.freeze({status:"aborted"});function m(e,t,r){function n(r,n){var i;for(let a in Object.defineProperty(r,"_zod",{value:r._zod??{},enumerable:!1}),(i=r._zod).traits??(i.traits=new Set),r._zod.traits.add(e),t(r,n),s.prototype)a in r||Object.defineProperty(r,a,{value:s.prototype[a].bind(r)});r._zod.constr=s,r._zod.def=n}let i=r?.Parent??Object;class a extends i{}function s(e){var t;let i=r?.Parent?new a:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}let p=Symbol("zod_brand");class v extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}
16class h extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}let g={};function y(e){return e&&Object.assign(g,e),g}function _(e){return e}function b(e){return e}function $(e){}function x(e){throw Error()}function k(e){}function w(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function I(e,t="|"){return e.map(e=>ee(e)).join(t)}function S(e,t){return"bigint"==typeof t?t.toString():t}function O(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function z(e){return null==e}function j(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function N(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),i=(n.split(".")[1]||"").length;if(0===i&&/\d?e-\d?/.test(n)){let e=n.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=r>i?r:i;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}let U=Symbol("evaluating");function Z(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==U)return void 0===n&&(n=U,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function P(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function A(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function T(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function E(e){return T(e._zod.def)}function D(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function C(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let r={};for(let n=0;n<t.length;n++)r[t[n]]=e[n];return r})}function L(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}function R(e){return JSON.stringify(e)}let F="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function M(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let J=O(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function W(e){if(!1===M(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==M(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function V(e){return W(e)?{...e}:Array.isArray(e)?[...e]:e}function K(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}let B=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},G=new Set(["string","number","symbol"]),q=new Set(["string","number","bigint","boolean","symbol","undefined"]);function X(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function H(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function Y(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function Q(e){let t;return new Proxy({},{get:(r,n,i)=>(t??(t=e()),Reflect.get(t,n,i)),set:(r,n,i,a)=>(t??(t=e()),Reflect.set(t,n,i,a)),has:(r,n)=>(t??(t=e()),Reflect.has(t,n)),deleteProperty:(r,n)=>(t??(t=e()),Reflect.deleteProperty(t,n)),ownKeys:r=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(r,n)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)),defineProperty:(r,n,i)=>(t??(t=e()),Reflect.defineProperty(t,n,i))})}function ee(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function et(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let er={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},en={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ei(e,t){let r=e._zod.def,n=T(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=r.shape[n])}return A(this,"shape",e),e},checks:[]});return H(e,n)}function ea(e,t){let r=e._zod.def,n=T(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return A(this,"shape",n),n},checks:[]});return H(e,n)}function es(e,t){if(!W(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0)throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let n=T(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return A(this,"shape",r),r},checks:[]});return H(e,n)}function eo(e,t){if(!W(t))throw Error("Invalid input to safeExtend: expected a plain object");let r={...e._zod.def,get shape(){let r={...e._zod.def.shape,...t};return A(this,"shape",r),r},checks:e._zod.def.checks};return H(e,r)}function eu(e,t){let r=T(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return A(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return H(e,r)}function el(e,t,r){let n=T(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return A(this,"shape",i),i},checks:[]});return H(t,n)}function ed(e,t,r){let n=T(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return A(this,"shape",i),i},checks:[]});return H(t,n)}function ec(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ef(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function em(e){return"string"==typeof e?e:e?.message}function ep(e,t,r){let n={...e,path:e.path??[]};return e.message||(n.message=em(e.inst?._zod.def?.error?.(e))??em(t?.error?.(e))??em(r.customError?.(e))??em(r.localeError?.(e))??"Invalid input"),delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function ev(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function eh(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function eg(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}function ey(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function e_(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function eb(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function e$(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return e_(t+r)}function ex(e){return eb(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ek(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e/2]=Number.parseInt(t.slice(e,e+2),16);return r}function ew(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}class eI{constructor(...e){}}let eS=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,S,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eO=m("$ZodError",eS),ez=m("$ZodError",eS,{Parent:Error});function ej(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}}function eN(e,t){let r=t||function(e){return e.message},n={_errors:[]},i=e=>{for(let t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});
16else if(0===t.path.length)n._errors.push(r(t));else{let e=n,i=0;for(;i<t.path.length;){let n=t.path[i];i===t.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(r(t))):e[n]=e[n]||{_errors:[]},e=e[n],i++}}};return i(e),n}function eU(e,t){let r=t||function(e){return e.message},n={errors:[]},i=(e,t=[])=>{var a,s;for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>i({issues:e},o.path));else if("invalid_key"===o.code)i({issues:o.issues},o.path);else if("invalid_element"===o.code)i({issues:o.issues},o.path);else{let e=[...t,...o.path];if(0===e.length){n.errors.push(r(o));continue}let i=n,u=0;for(;u<e.length;){let t=e[u],n=u===e.length-1;"string"==typeof t?(i.properties??(i.properties={}),(a=i.properties)[t]??(a[t]={errors:[]}),i=i.properties[t]):(i.items??(i.items=[]),(s=i.items)[t]??(s[t]={errors:[]}),i=i.items[t]),n&&i.errors.push(r(o)),u++}}};return i(e),n}function eZ(e){let t=[];for(let r of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof r?t.push(`[${r}]`):"symbol"==typeof r?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function eP(e){let t=[];for(let r of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`â ${r.message}`),r.path?.length&&t.push(` â at ${eZ(r.path)}`);return t.join("\n")}let eA=e=>(t,r,n,i)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new v;if(s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ep(e,a,y())));throw F(t,i?.callee),t}return s.value},eT=eA(ez),eE=e=>async(t,r,n,i)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ep(e,a,y())));throw F(t,i?.callee),t}return s.value},eD=eE(ez),eC=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new v;return a.issues.length?{success:!1,error:new(e??eO)(a.issues.map(e=>ep(e,i,y())))}:{success:!0,data:a.value}},eL=eC(ez),eR=e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>ep(e,i,y())))}:{success:!0,data:a.value}},eF=eR(ez),eM=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return eA(e)(t,r,i)},eJ=eM(ez),eW=e=>(t,r,n)=>eA(e)(t,r,n),eV=eW(ez),eK=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return eE(e)(t,r,i)},eB=eK(ez),eG=e=>async(t,r,n)=>eE(e)(t,r,n),eq=eG(ez),eX=e=>(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return eC(e)(t,r,i)},eH=eX(ez),eY=e=>(t,r,n)=>eC(e)(t,r,n),eQ=eY(ez),e0=e=>async(t,r,n)=>{let i=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return eR(e)(t,r,i)},e1=e0(ez),e4=e=>async(t,r,n)=>eR(e)(t,r,n),e6=e4(ez),e9=/^[cC][^\s-]{8,}$/,e2=/^[0-9a-z]+$/,e5=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,e3=/^[0-9a-vA-V]{20}$/,e7=/^[A-Za-z0-9]{27}$/,e8=/^[a-zA-Z0-9_-]{21}$/,te=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,tt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,tr=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,tn=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ti=tn(4),ta=tn(6),ts=tn(7),to=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tu=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,tl=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,td=/^[^\s@"]{1,64}
16@[^\s@]{1,255}$/u,tc=td,tf=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function tm(){return RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}let tp=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tv=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,th=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,tg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ty=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,t_=/^[A-Za-z0-9_-]*$/,tb=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,t$=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,tx=/^\+(?:[0-9]){6,14}[0-9]$/,tk="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",tw=RegExp(`^${tk}$`);function tI(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function tS(e){return RegExp(`^${tI(e)}$`)}function tO(e){let t=tI({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return RegExp(`^${tk}T(?:${n})$`)}let tz=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},tj=/^-?\d+n?$/,tN=/^-?\d+$/,tU=/^-?\d+(?:\.\d+)?/,tZ=/^(?:true|false)$/i,tP=/^null$/i,tA=/^undefined$/i,tT=/^[^A-Z]*$/,tE=/^[^a-z]*$/,tD=/^[0-9a-fA-F]*$/;function tC(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function tL(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let tR=/^[0-9a-fA-F]{32}$/,tF=tC(22,"=="),tM=tL(22),tJ=/^[0-9a-fA-F]{40}$/,tW=tC(27,"="),tV=tL(27),tK=/^[0-9a-fA-F]{64}$/,tB=tC(43,"="),tG=tL(43),tq=/^[0-9a-fA-F]{96}$/,tX=tC(64,""),tH=tL(64),tY=/^[0-9a-fA-F]{128}$/,tQ=tC(86,"=="),t0=tL(86),t1=m("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),t4={number:"number",bigint:"bigint",object:"date"},t6=m("$ZodCheckLessThan",(e,t)=>{t1.init(e,t);let r=t4[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),t9=m("$ZodCheckGreaterThan",(e,t)=>{t1.init(e,t);let r=t4[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),t2=m("$ZodCheckMultipleOf",(e,t)=>{t1.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===N(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),t5=m("$ZodCheckNumberFormat",(e,t)=>{t1.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,a]=er[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=a,r&&(n.pattern=tN)}),e._zod.check=s=>{let o=s.value;if(r){if(!Number.isInteger(o))return void s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});if(!Number.isSafeInteger(o))return void(o>0?s.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}):s.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!t.abort}))}o<i&&s.issues.push({origin:"number",input:o,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),o>a&&s.issues.push({origin:"number",input:o,code:"too_big",maximum:a,inst:e})}}),t3=m("$ZodCheckBigIntFormat",(e,t)=>{t1.init(e,t);let[r,n]=en[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=r,i.maximum=n}),e._zod.check=i=>{let a=i.value;a<r&&i.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>n&&i.issues.push({origin:"bigint",input:a,code:"too_big",maximum:n,inst:e})}}),t7=m("$ZodCheckMaxSize",(e,t)=>{var r;t1.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!z(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;n.size<=t.maximum||r.issues.push({origin:ev(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),t8=m("$ZodCheckMinSize",(e,t)=>{var r;t1.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!z(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;n.size>=t.minimum||r.issues.push({origin:ev(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),re=m("$ZodCheckSizeEquals",(e,t)=>{var r;t1.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!z(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=r=>{let n=r.value,i=n.size;if(i===t.size)return;let a=i>t.size;r.issues.push({origin:ev(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),rt=m("$ZodCheckMaxLength",(e,t)=>{var r;t1.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!z(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=eh(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),rr=m("$ZodCheckMinLength",(e,t)=>{var r;t1.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!z(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=eh(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),rn=m("$ZodCheckLengthEquals",(e,t)=>{var r;t1.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!z(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let a=eh(n),s=i>t.length;r.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ri=m("$ZodCheckStringFormat",(e,t)=>{var r,n;t1.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),ra=m("$ZodCheckRegex",(e,t)=>{ri.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),rs=m("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tT),ri.init(e,t)}),ro=m("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=tE),ri.init(e,t)}),ru=m("$ZodCheckIncludes",(e,t)=>{t1.init(e,t);let r=X(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
16:r.value,inst:e,continue:!t.abort})}}),rl=m("$ZodCheckStartsWith",(e,t)=>{t1.init(e,t);let r=RegExp(`^${X(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),rd=m("$ZodCheckEndsWith",(e,t)=>{t1.init(e,t);let r=RegExp(`.*${X(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function rc(e,t,r){e.issues.length&&t.issues.push(...ef(r,e.issues))}let rf=m("$ZodCheckProperty",(e,t)=>{t1.init(e,t),e._zod.check=e=>{let r=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(r=>rc(r,e,t.property));rc(r,e,t.property)}}),rm=m("$ZodCheckMimeType",(e,t)=>{t1.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),rp=m("$ZodCheckOverwrite",(e,t)=>{t1.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class rv{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let rh={major:4,minor:1,patch:11},rg=m("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=rh;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,i=ec(e);for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new v;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||(i=ec(e,t)))});else{if(e.issues.length===t)continue;i||(i=ec(e,t))}}return n?n.then(()=>e):e},r=(r,i,a)=>{if(ec(r))return r.aborted=!0,r;let s=t(i,n,a);if(s instanceof Promise){if(!1===a.async)throw new v;return s.then(t=>e._zod.parse(t,a))}return e._zod.parse(s,a)};e._zod.run=(i,a)=>
16{if(a.skipChecks)return e._zod.parse(i,a);if("backward"===a.direction){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,i,a)):r(t,i,a)}let s=e._zod.parse(i,a);if(s instanceof Promise){if(!1===a.async)throw new v;return s.then(e=>t(e,n,a))}return t(s,n,a)}}e["~standard"]={validate:t=>{try{let r=eL(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return eF(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}}),ry=m("$ZodString",(e,t)=>{rg.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??tz(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),r_=m("$ZodStringFormat",(e,t)=>{ri.init(e,t),ry.init(e,t)}),rb=m("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=tr),r_.init(e,t)}),r$=m("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=tn(e))}else t.pattern??(t.pattern=tn());r_.init(e,t)}),rx=m("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=to),r_.init(e,t)}),rk=m("$ZodURL",(e,t)=>{r_.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:tb.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),rw=m("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=tm()),r_.init(e,t)}),rI=m("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=e8),r_.init(e,t)}),rS=m("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=e9),r_.init(e,t)}),rO=m("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=e2),r_.init(e,t)}),rz=m("$ZodULID",(e,t)=>{t.pattern??(t.pattern=e5),r_.init(e,t)}),rj=m("$ZodXID",(e,t)=>{t.pattern??(t.pattern=e3),r_.init(e,t)}),rN=m("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=e7),r_.init(e,t)}),rU=m("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tO(t)),r_.init(e,t)}),rZ=m("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tw),r_.init(e,t)}),rP=m("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=tS(t)),r_.init(e,t)}),rA=m("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=te),r_.init(e,t)}),rT=m("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=tp),r_.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),rE=m("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=tv),r_.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),rD=m("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=th),r_.init(e,t)}),rC=m("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tg),r_.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(2!==n.length)throw Error();let[e,t]=n;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function rL(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let rR=m("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ty),r_.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{rL(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function rF(e){if(!t_.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return rL(t.padEnd(4*Math.ceil(t.length/4),"="))}let rM=m("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=t_),r_.init(e,t),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{rF(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),rJ=m("$ZodE164",(e,t)=>{t.pattern??(t.pattern=tx),r_.init(e,t)});function rW(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));
16if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}let rV=m("$ZodJWT",(e,t)=>{r_.init(e,t),e._zod.check=r=>{rW(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),rK=m("$ZodCustomStringFormat",(e,t)=>{r_.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),rB=m("$ZodNumber",(e,t)=>{rg.init(e,t),e._zod.pattern=e._zod.bag.pattern??tU,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let a="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...a?{received:a}:{}}),r}}),rG=m("$ZodNumber",(e,t)=>{t5.init(e,t),rB.init(e,t)}),rq=m("$ZodBoolean",(e,t)=>{rg.init(e,t),e._zod.pattern=tZ,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),rX=m("$ZodBigInt",(e,t)=>{rg.init(e,t),e._zod.pattern=tj,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch(e){}return"bigint"==typeof r.value||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),rH=m("$ZodBigInt",(e,t)=>{t3.init(e,t),rX.init(e,t)}),rY=m("$ZodSymbol",(e,t)=>{rg.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return"symbol"==typeof n||t.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),t}}),rQ=m("$ZodUndefined",(e,t)=>{rg.init(e,t),e._zod.pattern=tA,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{let n=t.value;return void 0===n||t.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),t}}),r0=m("$ZodNull",(e,t)=>{rg.init(e,t),e._zod.pattern=tP,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{let n=t.value;return null===n||t.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),t}}),r1=m("$ZodAny",(e,t)=>{rg.init(e,t),e._zod.parse=e=>e}),r4=m("$ZodUnknown",(e,t)=>{rg.init(e,t),e._zod.parse=e=>e}),r6=m("$ZodNever",(e,t)=>{rg.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),r9=m("$ZodVoid",(e,t)=>{rg.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return void 0===n||t.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),t}}),r2=m("$ZodDate",(e,t)=>{rg.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch(e){}let i=r.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...a?{received:"Invalid Date"}:{},inst:e}),r}});function r5(e,t,r){e.issues.length&&t.issues.push(...ef(r,e.issues)),t.value[r]=e.value}let r3=m("$ZodArray",(e,t)=>{rg.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let s=i[e],o=t.element._zod.run({value:s,issues:[]},n);o instanceof Promise?a.push(o.then(t=>r5(t,r,e))):r5(o,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function r7(e,t,r,n){e.issues.length&&t.issues.push(...ef(r,e.issues)),void 0===e.value?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function r8(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=et(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function ne(e,t,r,n,i,a){let s=[],o=i.keySet,u=i.catchall._zod,l=u.def.type;for(let i of Object.keys(t)){if(o.has(i))continue;if("never"===l){s.push(i);continue}let a=u.run({value:t[i],issues:[]},n);a instanceof Promise?e.push(a.then(e=>r7(e,r,i,t))):r7(a,r,i,t)}return(s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length)?Promise.all(e).then(()=>r):r}let nt=m("$ZodObject",(e,t)=>{let r;rg.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let i=O(()=>r8(t));Z(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let a=t.catchall;e._zod.parse=(t,n)=>{r??(r=i.value);let s=t.value;if(!M(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let o=[],u=r.shape;for(let e of r.keys){let r=u[e]._zod.run({value:s[e],issues:[]},n);r instanceof Promise?o.push(r.then(r=>r7(r,t,e,s))):r7(r,t,e,s)}return a?ne(o,s,t,n,i.value,e):o.length?Promise.all(o).then(()=>t):t}}),nr=m("$ZodObjectJIT",(e,t)=>{let r,n;nt.init(e,t);let i=e._zod.parse,a=O(()=>r8(t)),s=!g.jitless,o=s&&J.value,u=t.catchall;e._zod.parse=(l,d)=>{n??(n=a.value);let c=l.value;return M(c)?s&&o&&d?.async===!1&&!0!==d.jitless?(r||(r=(e=>{let t=new rv(["shape","payload","ctx"]),r=a.value,n=e=>{let t=R(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),s=0;for(let e of r.keys)i[e]=`key_${s++}`;for(let e of(t.write("const newResult = {};"),r.keys)){let r=i[e],a=R(e);t.write(`const ${r} = ${n(e)};`),t.write(` 17 if (${r}.issues.length) { 18 payload.issues = payload.issues.concat(${r}.issues.map(iss => ({ 19 ...iss, 20 path: iss.path ? [${a}, ...iss.path] : [${a}] 21 }))); 22 } 23 24 25 if (${r}.value === undefined) { 26 if (${a} in input) { 27 newResult[${a}] = undefined; 28 } 29 } else { 30 newResult[${a}] = ${r}.value; 31 } 32 33 `)}t.write("payload.value = newResult;"),t.write("return payload;");let o=t.compile();return(t,r)=>o(e,t,r)})(t.shape)),l=r(l,d),u)?ne([],c,l,d,n,e):l:i(l,d):(l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l)}});function nn(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let i=e.filter(e=>!ec(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ep(e,n,y())))}),t)}let ni=m("$ZodUnion",(e,t)=>{rg.init(e,t),Z(e._zod,"optin",()=>t.options.some(e=>
33"optional"===e._zod.optin)?"optional":void 0),Z(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),Z(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Z(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>j(e.source)).join("|")})$`)}});let r=1===t.options.length,n=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(r)return n(i,a);let s=!1,o=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)o.push(t),s=!0;else{if(0===t.issues.length)return t;o.push(t)}}return s?Promise.all(o).then(t=>nn(t,i,e,a)):nn(o,i,e,a)}}),na=m("$ZodDiscriminatedUnion",(e,t)=>{ni.init(e,t);let r=e._zod.parse;Z(e._zod,"propValues",()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),r))e[t].add(n)}return e});let n=O(()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r});e._zod.parse=(i,a)=>{let s=i.value;if(!M(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let o=n.value.get(s?.[t.discriminator]);return o?o._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),i)}}),ns=m("$ZodIntersection",(e,t)=>{rg.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),a=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,r])=>no(e,t,r)):no(e,i,a)}});function no(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),ec(e))return e;let n=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(W(t)&&W(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a[n]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!n.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}let nu=m("$ZodTuple",(e,t)=>{rg.init(e,t);let r=t.items,n=r.length-[...r].reverse().findIndex(e=>"optional"!==e._zod.optin);e._zod.parse=(i,a)=>{let s=i.value;if(!Array.isArray(s))return i.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let o=[];if(!t.rest){let t=s.length>r.length,a=s.length<n-1;if(t||a)return i.issues.push({...t?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},input:s,inst:e,origin:"array"}),i}let u=-1;for(let e of r){if(++u>=s.length&&u>=n)continue;let t=e._zod.run({value:s[u],issues:[]},a);t instanceof Promise?o.push(t.then(e=>nl(e,i,u))):nl(t,i,u)}if(t.rest)for(let e of s.slice(r.length)){u++;let r=t.rest._zod.run({value:e,issues:[]},a);r instanceof Promise?o.push(r.then(e=>nl(e,i,u))):nl(r,i,u)}return o.length?Promise.all(o).then(()=>i):i}});function nl(e,t,r){e.issues.length&&t.issues.push(...ef(r,e.issues)),t.value[r]=e.value}let nd=m("$ZodRecord",(e,t)=>{rg.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!W(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[];if(t.keyType._zod.values){let s,o=t.keyType._zod.values;for(let e of(r.value={},o))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let s=t.valueType._zod.run({value:i[e],issues:[]},n);s instanceof Promise?a.push(s.then(t=>{t.issues.length&&r.issues.push(...ef(e,t.issues)),r.value[e]=t.value})):(s.issues.length&&r.issues.push(...ef(e,s.issues)),r.value[e]=s.value)}for(let e in i)o.has(e)||(s=s??[]).push(e);s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else for(let s of(r.value={}
33,Reflect.ownKeys(i))){if("__proto__"===s)continue;let o=t.keyType._zod.run({value:s,issues:[]},n);if(o instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(o.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:o.issues.map(e=>ep(e,n,y())),input:s,path:[s],inst:e}),r.value[o.value]=o.value;continue}let u=t.valueType._zod.run({value:i[s],issues:[]},n);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&r.issues.push(...ef(s,e.issues)),r.value[o.value]=e.value})):(u.issues.length&&r.issues.push(...ef(s,u.issues)),r.value[o.value]=u.value)}return a.length?Promise.all(a).then(()=>r):r}}),nc=m("$ZodMap",(e,t)=>{rg.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let a=[];for(let[s,o]of(r.value=new Map,i)){let u=t.keyType._zod.run({value:s,issues:[]},n),l=t.valueType._zod.run({value:o,issues:[]},n);u instanceof Promise||l instanceof Promise?a.push(Promise.all([u,l]).then(([t,a])=>{nf(t,a,r,s,i,e,n)})):nf(u,l,r,s,i,e,n)}return a.length?Promise.all(a).then(()=>r):r}});function nf(e,t,r,n,i,a,s){e.issues.length&&(G.has(typeof n)?r.issues.push(...ef(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:a,issues:e.issues.map(e=>ep(e,s,y()))})),t.issues.length&&(G.has(typeof n)?r.issues.push(...ef(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:n,issues:t.issues.map(e=>ep(e,s,y()))})),r.value.set(e.value,t.value)}let nm=m("$ZodSet",(e,t)=>{rg.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];for(let e of(r.value=new Set,i)){let i=t.valueType._zod.run({value:e,issues:[]},n);i instanceof Promise?a.push(i.then(e=>np(e,r))):np(i,r)}return a.length?Promise.all(a).then(()=>r):r}});function np(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let nv=m("$ZodEnum",(e,t)=>{rg.init(e,t);let r=w(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=RegExp(`^(${r.filter(e=>G.has(typeof e)).map(e=>"string"==typeof e?X(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let a=t.value;return n.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),nh=m("$ZodLiteral",(e,t)=>{if(rg.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?X(e):e?X(e.toString()):String(e)).join("|")})$`),e._zod.parse=(r,n)=>{let i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),ng=m("$ZodFile",(e,t)=>{rg.init(e,t),e._zod.parse=(t,r)=>{let n=t.value;return n instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),t}}),ny=m("$ZodTransform",(e,t)=>{rg.init(e,t),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new h(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(r.value=e,r));if(i instanceof Promise)throw new v;return r.value=i,r}});function n_(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}let nb=m("$ZodOptional",(e,t)=>{rg.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Z(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${j(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(t=>n_(t,e.value)):n_(n,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),n$=m("$ZodNullable",(e,t)=>{rg.init(e,t),Z(e._zod,"optin",()=>t.innerType._zod.optin),Z(e._zod,"optout",()=>t.innerType._zod.optout),Z(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${j(e.source)}|null)$`):void 0}),Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),nx=m("$ZodDefault",(e,t)=>{rg.init(e,t),e._zod.optin="optional",Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>nk(e,t)):nk(n,t)}});function nk(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let nw=m("$ZodPrefault",(e,t)=>{rg.init(e,t),e._zod.optin="optional",Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),nI=m("$ZodNonOptional",(e,t)=>{rg.init(e,t),Z(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>nS(t,e)):nS(i,e)}});function nS(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let nO=m("$ZodSuccess",(e,t)=>{rg.init(e,t),e._zod.parse=(e,r)=>{if("backward"===r.direction)throw new h("ZodSuccess");let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===n.issues.length,e)}}),nz=m("$ZodCatch",(e,t)=>{rg.init(e,t),Z(e._zod,"optin",()=>t.innerType._zod.optin),Z(e._zod,"optout",()=>t.innerType._zod.optout),Z(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>
33(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ep(e,r,y()))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ep(e,r,y()))},input:e.value}),e.issues=[]),e)}}),nj=m("$ZodNaN",(e,t)=>{rg.init(e,t),e._zod.parse=(t,r)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),nN=m("$ZodPipe",(e,t)=>{rg.init(e,t),Z(e._zod,"values",()=>t.in._zod.values),Z(e._zod,"optin",()=>t.in._zod.optin),Z(e._zod,"optout",()=>t.out._zod.optout),Z(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>nU(e,t.in,r)):nU(n,t.in,r)}let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>nU(e,t.out,r)):nU(n,t.out,r)}});function nU(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}let nZ=m("$ZodCodec",(e,t)=>{rg.init(e,t),Z(e._zod,"values",()=>t.in._zod.values),Z(e._zod,"optin",()=>t.in._zod.optin),Z(e._zod,"optout",()=>t.out._zod.optout),Z(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("forward"===(r.direction||"forward")){let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>nP(e,t,r)):nP(n,t,r)}{let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>nP(e,t,r)):nP(n,t,r)}}});function nP(e,t,r){if(e.issues.length)return e.aborted=!0,e;if("forward"===(r.direction||"forward")){let n=t.transform(e.value,e);return n instanceof Promise?n.then(n=>nA(e,n,t.out,r)):nA(e,n,t.out,r)}{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(n=>nA(e,n,t.in,r)):nA(e,n,t.in,r)}}function nA(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}let nT=m("$ZodReadonly",(e,t)=>{rg.init(e,t),Z(e._zod,"propValues",()=>t.innerType._zod.propValues),Z(e._zod,"values",()=>t.innerType._zod.values),Z(e._zod,"optin",()=>t.innerType._zod.optin),Z(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(nE):nE(n)}});function nE(e){return e.value=Object.freeze(e.value),e}let nD=m("$ZodTemplateLiteral",(e,t)=>{rg.init(e,t);let r=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let n=+!!t.startsWith("^"),i=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(n,i))}else if(null===e||q.has(typeof e))r.push(X(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${r.join("")}$`),e._zod.parse=(r,n)=>("string"!=typeof r.value?r.issues.push({input:r.value,inst:e,expected:"template_literal",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),r)}),nC=m("$ZodFunction",(e,t)=>(rg.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...r){let n=Reflect.apply(t,this,e._def.input?eT(e._def.input,r):r);return e._def.output?eT(e._def.output,n):n}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...r){let n=e._def.input?await eD(e._def.input,r):r,i=await Reflect.apply(t,this,n);return e._def.output?await eD(e._def.output,i):i}},e._zod.parse=(t,r)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let r=e.constructor;return new r(Array.isArray(t[0])?{type:"function",input:new nu({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),nL=m("$ZodPromise",(e,t)=>{rg.init(e,t),e._zod.parse=(e,r)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},r))}),nR=m("$ZodLazy",(e,t)=>{rg.init(e,t),Z(e._zod,"innerType",()=>t.getter()),Z(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Z(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Z(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),Z(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),nF=m("$ZodCustom",(e,t)=>{t1.init(e,t),rg.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>nM(t,r,n,e));nM(i,r,n,e)}});function nM(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(eg(e))}}function nJ(){let e,t;return{localeError:(e={string:{unit:"ØØ±Ù",verb:"Ø£Ù ÙØÙÙ"},file:{unit:"Ø¨Ø§ÙØª",verb:"Ø£Ù ÙØÙÙ"},array:{unit:"Ø¹ÙØµØ±",verb:"Ø£Ù ÙØÙÙ"},set:{unit:"Ø¹ÙØµØ±",verb:"Ø£Ù ÙØÙÙ"}},t={regex:"Ù
دخÙ",email:"Ø¨Ø±ÙØ¯ Ø¥ÙÙØªØ±ÙÙÙ",url:"رابط",emoji:"Ø¥ÙÙ
ÙØ¬Ù",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ØªØ§Ø±ÙØ® ÙÙÙØª بÙ
Ø¹ÙØ§Ø± ISO",date:"ØªØ§Ø±ÙØ® بÙ
Ø¹ÙØ§Ø± ISO",time:"ÙÙØª بÙ
Ø¹ÙØ§Ø± ISO",duration:"Ù
دة بÙ
Ø¹ÙØ§Ø± ISO",ipv4:"عÙÙØ§Ù IPv4",ipv6:"عÙÙØ§Ù IPv6",cidrv4:"Ù
Ø¯Ù Ø¹ÙØ§ÙÙÙ Ø¨ØµÙØºØ© IPv4",cidrv6:"Ù
Ø¯Ù Ø¹ÙØ§ÙÙÙ Ø¨ØµÙØºØ© IPv6",base64:"ÙÙØµ بترÙ
ÙØ² base64-encoded",base64url:"ÙÙØµ بترÙ
ÙØ² base64url-encoded",json_string:"ÙÙØµ عÙÙ ÙÙØ¦Ø© JSON",e164:"رÙÙ
ÙØ§ØªÙ بÙ
Ø¹ÙØ§Ø± E.164",jwt:"JWT",template_literal:"Ù
دخÙ"},r=>
33{switch(r.code){case"invalid_type":return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠${r.expected}Ø ÙÙÙ٠تÙ
إدخا٠${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ù
Ø¯Ø®ÙØ§Øª ØºÙØ± Ù
ÙØ¨ÙÙØ©: ÙÙØªØ±Ø¶ إدخا٠${ee(r.values[0])}`;return`Ø§Ø®ØªÙØ§Ø± ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØªÙÙØ¹ Ø§ÙØªÙاء Ø£ØØ¯ ÙØ°Ù Ø§ÙØ®Ùارات: ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return` Ø£ÙØ¨Ø± Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ أ٠تÙÙÙ ${r.origin??"اÙÙÙÙ
Ø©"} ${t} ${r.maximum.toString()} ${n.unit??"Ø¹ÙØµØ±"}`;return`Ø£ÙØ¨Ø± Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ أ٠تÙÙÙ ${r.origin??"اÙÙÙÙ
Ø©"} ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`أصغر Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ ÙÙ ${r.origin} Ø£Ù ÙÙÙÙ ${t} ${r.minimum.toString()} ${n.unit}`;return`أصغر Ù
٠اÙÙØ§Ø²Ù
: ÙÙØªØ±Ø¶ ÙÙ ${r.origin} Ø£Ù ÙÙÙÙ ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØ¨Ø¯Ø£ ب٠"${r.prefix}"`;if("ends_with"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙÙØªÙ٠ب٠"${r.suffix}"`;if("includes"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØªØ¶Ù
ÙÙÙ "${r.includes}"`;if("regex"===r.format)return`ÙÙØµ ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙØ·Ø§Ø¨Ù اÙÙÙ
Ø· ${r.pattern}`;return`${t[r.format]??r.format} ØºÙØ± Ù
ÙØ¨ÙÙ`;case"not_multiple_of":return`رÙÙ
ØºÙØ± Ù
ÙØ¨ÙÙ: ÙØ¬Ø¨ Ø£Ù ÙÙÙÙ Ù
Ù Ù
Ø¶Ø§Ø¹ÙØ§Øª ${r.divisor}`;case"unrecognized_keys":return`Ù
عرÙ${r.keys.length>1?"ات":""} ØºØ±ÙØ¨${r.keys.length>1?"Ø©":""}: ${I(r.keys,"Ø ")}`;case"invalid_key":return`Ù
Ø¹Ø±Ù ØºÙØ± Ù
ÙØ¨ÙÙ ÙÙ ${r.origin}`;case"invalid_union":default:return"Ù
Ø¯Ø®Ù ØºÙØ± Ù
ÙØ¨ÙÙ";case"invalid_element":return`Ù
Ø¯Ø®Ù ØºÙØ± Ù
ÙØ¨ÙÙ ÙÙ ${r.origin}`}})}}function nW(){let e,t;return{localeError:(e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}},t={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"},r=>{switch(r.code){case"invalid_type":return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn ${r.expected}, daxil olan ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`YanlıŠdÉyÉr: g\xf6zlÉnilÉn ${ee(r.values[0])}`;return`YanlıŠse\xe7im: aÅaÄıdakılardan biri olmalıdır: ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`\xc7ox b\xf6y\xfck: g\xf6zlÉnilÉn ${r.origin??"dÉyÉr"} ${t}${r.maximum.toString()} ${n.unit??"element"}`;return`\xc7ox b\xf6y\xfck: g\xf6zlÉnilÉn ${r.origin??"dÉyÉr"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`\xc7ox ki\xe7ik: g\xf6zlÉnilÉn ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`\xc7ox ki\xe7ik: g\xf6zlÉnilÉn ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`YanlıŠmÉtn: "${r.prefix}" ilÉ baÅlamalıdır`;if("ends_with"===r.format)return`YanlıŠmÉtn: "${r.suffix}" ilÉ bitmÉlidir`;if("includes"===r.format)return`YanlıŠmÉtn: "${r.includes}" daxil olmalıdır`;if("regex"===r.format)return`YanlıŠmÉtn: ${r.pattern} Åablonuna uyÄun olmalıdır`;return`YanlıŠ${t[r.format]??r.format}`;case"not_multiple_of":return`YanlıŠÉdÉd: ${r.divisor} ilÉ b\xf6l\xfcnÉ bilÉn olmalıdır`;
33case"unrecognized_keys":return`Tanınmayan a\xe7ar${r.keys.length>1?"lar":""}: ${I(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilindÉ yanlıŠa\xe7ar`;case"invalid_union":default:return"YanlıŠdÉyÉr";case"invalid_element":return`${r.origin} daxilindÉ yanlıŠdÉyÉr`}})}}function nV(e,t,r,n){let i=Math.abs(e),a=i%10,s=i%100;return s>=11&&s<=19?n:1===a?t:a>=2&&a<=4?r:n}function nK(){let e,t;return{localeError:(e={string:{unit:{one:"ÑÑмвал",few:"ÑÑмвалÑ",many:"ÑÑмвалаÑ"},verb:"меÑÑ"},array:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑÑ",many:"ÑлеменÑаÑ"},verb:"меÑÑ"},set:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑÑ",many:"ÑлеменÑаÑ"},verb:"меÑÑ"},file:{unit:{one:"байÑ",few:"байÑÑ",many:"байÑаÑ"},verb:"меÑÑ"}},t={regex:"Ñвод",email:"email адÑаÑ",url:"URL",emoji:"ÑмодзÑ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑа Ñ ÑаÑ",date:"ISO даÑа",time:"ISO ÑаÑ",duration:"ISO пÑаÑÑглаÑÑÑ",ipv4:"IPv4 адÑаÑ",ipv6:"IPv6 адÑаÑ",cidrv4:"IPv4 дÑÑпазон",cidrv6:"IPv6 дÑÑпазон",base64:"Ñадок Ñ ÑаÑмаÑе base64",base64url:"Ñадок Ñ ÑаÑмаÑе base64url",json_string:"JSON Ñадок",e164:"нÑÐ¼Ð°Ñ E.164",jwt:"JWT",template_literal:"Ñвод"},r=>{switch(r.code){case"invalid_type":return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакаÑÑÑ ${r.expected}, аÑÑÑмана ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"лÑк";case"object":if(Array.isArray(e))return"маÑÑÑ";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`ÐÑпÑавÑлÑÐ½Ñ Ñвод: ÑакалаÑÑ ${ee(r.values[0])}`;return`ÐÑпÑавÑлÑÐ½Ñ Ð²Ð°ÑÑÑнÑ: ÑакаÑÑÑ Ð°Ð´Ð·Ñн з ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=nV(Number(r.maximum),n.unit.one,n.unit.few,n.unit.many);return`ÐанадÑа вÑлÑкÑ: ÑакалаÑÑ, ÑÑо ${r.origin??"знаÑÑнне"} павÑнна ${n.verb} ${t}${r.maximum.toString()} ${e}`}return`ÐанадÑа вÑлÑкÑ: ÑакалаÑÑ, ÑÑо ${r.origin??"знаÑÑнне"} павÑнна бÑÑÑ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=nV(Number(r.minimum),n.unit.one,n.unit.few,n.unit.many);return`ÐанадÑа малÑ: ÑакалаÑÑ, ÑÑо ${r.origin} павÑнна ${n.verb} ${t}${r.minimum.toString()} ${e}`}return`ÐанадÑа малÑ: ÑакалаÑÑ, ÑÑо ${r.origin} павÑнна бÑÑÑ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен паÑÑнаÑÑа з "${r.prefix}"`;if("ends_with"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен заканÑваÑÑа на "${r.suffix}"`;if("includes"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен змÑÑÑаÑÑ "${r.includes}"`;if("regex"===r.format)return`ÐÑпÑавÑлÑÐ½Ñ Ñадок: павÑнен адпавÑдаÑÑ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${r.pattern}`;return`ÐÑпÑавÑлÑÐ½Ñ ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐÑпÑавÑлÑÐ½Ñ Ð»Ñк: павÑнен бÑÑÑ ÐºÑаÑнÑм ${r.divisor}`;case"unrecognized_keys":return`ÐеÑаÑÐ¿Ð°Ð·Ð½Ð°Ð½Ñ ${r.keys.length>1?"клÑÑÑ":"клÑÑ"}: ${I(r.keys,", ")}`;case"invalid_key":return`ÐÑпÑавÑлÑÐ½Ñ ÐºÐ»ÑÑ Ñ ${r.origin}`;case"invalid_union":default:return"ÐÑпÑавÑлÑÐ½Ñ Ñвод";case"invalid_element":return`ÐÑпÑавÑлÑнае знаÑÑнне Ñ ${r.origin}`}})}}function nB(){let e,t;return{localeError:(e={string:{unit:"car\xe0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}},t={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"},r=>
33{switch(r.code){case"invalid_type":return`Tipus inv\xe0lid: s'esperava ${r.expected}, s'ha rebut ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Valor inv\xe0lid: s'esperava ${ee(r.values[0])}`;return`Opci\xf3 inv\xe0lida: s'esperava una de ${I(r.values," o ")}`;case"too_big":{let t=r.inclusive?"com a m\xe0xim":"menys de",n=e[r.origin]??null;if(n)return`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xe9s ${t} ${r.maximum.toString()} ${n.unit??"elements"}`;return`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"com a m\xednim":"m\xe9s de",n=e[r.origin]??null;if(n)return`Massa petit: s'esperava que ${r.origin} contingu\xe9s ${t} ${r.minimum.toString()} ${n.unit}`;return`Massa petit: s'esperava que ${r.origin} fos ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Format inv\xe0lid: ha de comen\xe7ar amb "${r.prefix}"`;if("ends_with"===r.format)return`Format inv\xe0lid: ha d'acabar amb "${r.suffix}"`;if("includes"===r.format)return`Format inv\xe0lid: ha d'incloure "${r.includes}"`;if("regex"===r.format)return`Format inv\xe0lid: ha de coincidir amb el patr\xf3 ${r.pattern}`;return`Format inv\xe0lid per a ${t[r.format]??r.format}`;case"not_multiple_of":return`N\xfamero inv\xe0lid: ha de ser m\xfaltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${I(r.keys,", ")}`;case"invalid_key":return`Clau inv\xe0lida a ${r.origin}`;case"invalid_union":default:return"Entrada inv\xe0lida";case"invalid_element":return`Element inv\xe0lid a ${r.origin}`}})}}function nG(){let e,t;return{localeError:(e={string:{unit:"znaků",verb:"m\xedt"},file:{unit:"bajtů",verb:"m\xedt"},array:{unit:"prvků",verb:"m\xedt"},set:{unit:"prvků",verb:"m\xedt"}},t={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 Äas ve form\xe1tu ISO",date:"datum ve form\xe1tu ISO",time:"Äas ve form\xe1tu ISO",duration:"doba trv\xe1n\xed ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"ÅetÄzec zak\xf3dovan\xfd ve form\xe1tu base64",base64url:"ÅetÄzec zak\xf3dovan\xfd ve form\xe1tu base64url",json_string:"ÅetÄzec ve form\xe1tu JSON",e164:"Ä\xedslo E.164",jwt:"JWT",template_literal:"vstup"},r=>{switch(r.code){case"invalid_type":return`Neplatn\xfd vstup: oÄek\xe1v\xe1no ${r.expected}, obdrženo ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"Ä\xedslo";case"string":return"ÅetÄzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":if(Array.isArray(e))return"pole";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Neplatn\xfd vstup: oÄek\xe1v\xe1no ${ee(r.values[0])}`;return`Neplatn\xe1 možnost: oÄek\xe1v\xe1na jedna z hodnot ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Hodnota je pÅ\xedliÅ¡ velk\xe1: ${r.origin??"hodnota"} mus\xed m\xedt ${t}${r.maximum.toString()} ${n.unit??"prvků"}`;return`Hodnota je pÅ\xedliÅ¡ velk\xe1: ${r.origin??"hodnota"} mus\xed b\xfdt ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Hodnota je pÅ\xedliÅ¡ mal\xe1: ${r.origin??"hodnota"} mus\xed m\xedt ${t}${r.minimum.toString()} ${n.unit??"prvků"}`;return`Hodnota je pÅ\xedliÅ¡ mal\xe1: ${r.origin??"hodnota"} mus\xed b\xfdt ${t}${r.minimum.toString()}`}
33case"invalid_format":if("starts_with"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed zaÄ\xednat na "${r.prefix}"`;if("ends_with"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed konÄit na "${r.suffix}"`;if("includes"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed obsahovat "${r.includes}"`;if("regex"===r.format)return`Neplatn\xfd ÅetÄzec: mus\xed odpov\xeddat vzoru ${r.pattern}`;return`Neplatn\xfd form\xe1t ${t[r.format]??r.format}`;case"not_multiple_of":return`Neplatn\xe9 Ä\xedslo: mus\xed b\xfdt n\xe1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xe1m\xe9 kl\xedÄe: ${I(r.keys,", ")}`;case"invalid_key":return`Neplatn\xfd kl\xedÄ v ${r.origin}`;case"invalid_union":default:return"Neplatn\xfd vstup";case"invalid_element":return`Neplatn\xe1 hodnota v ${r.origin}`}})}}function nq(){let e,t,r;return{localeError:(e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xe6t",file:"fil"},r={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"},n=>{var i,a,s,o;switch(n.code){case"invalid_type":return`Ugyldigt input: forventede ${t[i=n.expected]??i}, fik ${t[a=(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"tal";case"object":if(Array.isArray(e))return"liste";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name;return"objekt"}return t})(n.input)]??a}`;case"invalid_value":if(1===n.values.length)return`Ugyldig v\xe6rdi: forventede ${ee(n.values[0])}`;return`Ugyldigt valg: forventede en af f\xf8lgende ${I(n.values,"|")}`;case"too_big":{let r=n.inclusive?"<=":"<",i=e[n.origin]??null,a=t[s=n.origin]??s;if(i)return`For stor: forventede ${a??"value"} ${i.verb} ${r} ${n.maximum.toString()} ${i.unit??"elementer"}`;return`For stor: forventede ${a??"value"} havde ${r} ${n.maximum.toString()}`}case"too_small":{let r=n.inclusive?">=":">",i=e[n.origin]??null,a=t[o=n.origin]??o;if(i)return`For lille: forventede ${a} ${i.verb} ${r} ${n.minimum.toString()} ${i.unit}`;return`For lille: forventede ${a} havde ${r} ${n.minimum.toString()}`}case"invalid_format":if("starts_with"===n.format)return`Ugyldig streng: skal starte med "${n.prefix}"`;if("ends_with"===n.format)return`Ugyldig streng: skal ende med "${n.suffix}"`;if("includes"===n.format)return`Ugyldig streng: skal indeholde "${n.includes}"`;if("regex"===n.format)return`Ugyldig streng: skal matche m\xf8nsteret ${n.pattern}`;return`Ugyldig ${r[n.format]??n.format}`;case"not_multiple_of":return`Ugyldigt tal: skal v\xe6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xf8gler":"Ukendt n\xf8gle"}: ${I(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xe6rdi i ${n.origin}`;default:return"Ugyldigt input"}})}}function nX(){let e,t;return{localeError:(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"}},t={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"},r=>
33{switch(r.code){case"invalid_type":return`Ung\xfcltige Eingabe: erwartet ${r.expected}, erhalten ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"Zahl";case"object":if(Array.isArray(e))return"Array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ung\xfcltige Eingabe: erwartet ${ee(r.values[0])}`;return`Ung\xfcltige Option: erwartet eine von ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Zu gro\xdf: erwartet, dass ${r.origin??"Wert"} ${t}${r.maximum.toString()} ${n.unit??"Elemente"} hat`;return`Zu gro\xdf: erwartet, dass ${r.origin??"Wert"} ${t}${r.maximum.toString()} ist`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Zu klein: erwartet, dass ${r.origin} ${t}${r.minimum.toString()} ${n.unit} hat`;return`Zu klein: erwartet, dass ${r.origin} ${t}${r.minimum.toString()} ist`}case"invalid_format":if("starts_with"===r.format)return`Ung\xfcltiger String: muss mit "${r.prefix}" beginnen`;if("ends_with"===r.format)return`Ung\xfcltiger String: muss mit "${r.suffix}" enden`;if("includes"===r.format)return`Ung\xfcltiger String: muss "${r.includes}" enthalten`;if("regex"===r.format)return`Ung\xfcltiger String: muss dem Muster ${r.pattern} entsprechen`;return`Ung\xfcltig: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ung\xfcltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xfcssel":"Unbekannter Schl\xfcssel"}: ${I(r.keys,", ")}`;case"invalid_key":return`Ung\xfcltiger Schl\xfcssel in ${r.origin}`;case"invalid_union":default:return"Ung\xfcltige Eingabe";case"invalid_element":return`Ung\xfcltiger Wert in ${r.origin}`}})}}function nH(){let e,t;return{localeError:(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"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Invalid input: expected ${r.expected}, received ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Invalid input: expected ${ee(r.values[0])}`;return`Invalid option: expected one of ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Too big: expected ${r.origin??"value"} to have ${t}${r.maximum.toString()} ${n.unit??"elements"}`;return`Too big: expected ${r.origin??"value"} to be ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Too small: expected ${r.origin} to have ${t}${r.minimum.toString()} ${n.unit}`;return`Too small: expected ${r.origin} to be ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Invalid string: must start with "${r.prefix}"`;if("ends_with"===r.format)return`Invalid string: must end with "${r.suffix}"`;if("includes"===r.format)return`Invalid string: must include "${r.includes}"`;if("regex"===r.format)return`Invalid string: must match pattern ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${I(r.keys,", ")}`;
33case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`}})}}function nY(){let e,t;return{localeError:(e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}},t={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoÄio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daÅro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},r=>{switch(r.code){case"invalid_type":return`Nevalida enigo: atendiÄis ${r.expected}, riceviÄis ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":if(Array.isArray(e))return"tabelo";if(null===e)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Nevalida enigo: atendiÄis ${ee(r.values[0])}`;return`Nevalida opcio: atendiÄis unu el ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Tro granda: atendiÄis ke ${r.origin??"valoro"} havu ${t}${r.maximum.toString()} ${n.unit??"elementojn"}`;return`Tro granda: atendiÄis ke ${r.origin??"valoro"} havu ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Tro malgranda: atendiÄis ke ${r.origin} havu ${t}${r.minimum.toString()} ${n.unit}`;return`Tro malgranda: atendiÄis ke ${r.origin} estu ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Nevalida karaktraro: devas komenciÄi per "${r.prefix}"`;if("ends_with"===r.format)return`Nevalida karaktraro: devas finiÄi per "${r.suffix}"`;if("includes"===r.format)return`Nevalida karaktraro: devas inkluzivi "${r.includes}"`;if("regex"===r.format)return`Nevalida karaktraro: devas kongrui kun la modelo ${r.pattern}`;return`Nevalida ${t[r.format]??r.format}`;case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} Ålosilo${r.keys.length>1?"j":""}: ${I(r.keys,", ")}`;case"invalid_key":return`Nevalida Ålosilo en ${r.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`}})}}function nQ(){return{localeError:(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={string:"texto",number:"n\xfamero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xfamero grande",symbol
33:"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"};function r(e){return t[e]??e}let n={regex:"entrada",email:"direcci\xf3n de correo electr\xf3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xf3n ISO",ipv4:"direcci\xf3n IPv4",ipv6:"direcci\xf3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xfamero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Entrada inv\xe1lida: se esperaba ${r(t.expected)}, recibido ${r((e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype)return e.constructor.name;return"object"}return t})(t.input))}`;case"invalid_value":if(1===t.values.length)return`Entrada inv\xe1lida: se esperaba ${ee(t.values[0])}`;return`Opci\xf3n inv\xe1lida: se esperaba una de ${I(t.values,"|")}`;case"too_big":{let n=t.inclusive?"<=":"<",i=e[t.origin]??null,a=r(t.origin);if(i)return`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${n}${t.maximum.toString()} ${i.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${a??"valor"} fuera ${n}${t.maximum.toString()}`}case"too_small":{let n=t.inclusive?">=":">",i=e[t.origin]??null,a=r(t.origin);if(i)return`Demasiado peque\xf1o: se esperaba que ${a} tuviera ${n}${t.minimum.toString()} ${i.unit}`;return`Demasiado peque\xf1o: se esperaba que ${a} fuera ${n}${t.minimum.toString()}`}case"invalid_format":if("starts_with"===t.format)return`Cadena inv\xe1lida: debe comenzar con "${t.prefix}"`;if("ends_with"===t.format)return`Cadena inv\xe1lida: debe terminar en "${t.suffix}"`;if("includes"===t.format)return`Cadena inv\xe1lida: debe incluir "${t.includes}"`;if("regex"===t.format)return`Cadena inv\xe1lida: debe coincidir con el patr\xf3n ${t.pattern}`;return`Inv\xe1lido ${n[t.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":""}: ${I(t.keys,", ")}`;case"invalid_key":return`Llave inv\xe1lida en ${r(t.origin)}`;case"invalid_union":default:return"Entrada inv\xe1lida";case"invalid_element":return`Valor inv\xe1lido en ${r(t.origin)}`}}})()}}function n0(){let e,t;return{localeError:(e={string:{unit:"کاراکتر",verb:"داشت٠باشد"},file:{unit:"Ø¨Ø§ÛØª",verb:"داشت٠باشد"},array:{unit:"Ø¢ÛØªÙ
",verb:"داشت٠باشد"},set:{unit:"Ø¢ÛØªÙ
",verb:"داشت٠باشد"}},t={regex:"ÙØ±ÙدÛ",email:"آدرس اÛÙ
ÛÙ",url:"URL",emoji:"اÛÙ
ÙØ¬Û",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ØªØ§Ø±ÛØ® ٠زÙ
Ø§Ù Ø§ÛØ²Ù",date:"ØªØ§Ø±ÛØ® Ø§ÛØ²Ù",time:"زÙ
Ø§Ù Ø§ÛØ²Ù",duration:"Ù
دت زÙ
Ø§Ù Ø§ÛØ²Ù",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 داÙ
ÙÙ",cidrv6:"IPv6 داÙ
ÙÙ",base64:"base64-encoded رشتÙ",base64url:"base64url-encoded رشتÙ",json_string:"JSON رشتÙ",e164:"E.164 عدد",jwt:"JWT",template_literal:"ÙØ±ÙدÛ"},r=>{switch(r.code){case"invalid_type":return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ${r.expected} Ù
ÛâØ¨ÙØ¯Ø ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"آراÛÙ";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)} Ø¯Ø±ÛØ§Ùت شد`;case"invalid_value":if(1===r.values.length)return`ÙØ±ÙØ¯Û ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ${ee(r.values[0])} Ù
ÛâØ¨ÙØ¯`;return`گزÛÙÙ ÙØ§Ù
عتبر: Ù
ÛâØ¨Ø§ÛØ³Øª ÛÚ©Û Ø§Ø² ${I(r.values,"|")} Ù
ÛâØ¨ÙØ¯`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Ø®ÛÙÛ Ø¨Ø²Ø±Ú¯: ${r.origin??"Ù
ÙØ¯Ø§Ø±"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} ${n.unit??"Ø¹ÙØµØ±"} باشد`;return`Ø®ÛÙÛ Ø¨Ø²Ø±Ú¯: ${r.origin??"Ù
ÙØ¯Ø§Ø±"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} باشد`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Ø®ÛÙÛ Ú©ÙÚÚ©: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} ${n.unit} باشد`;return`Ø®ÛÙÛ Ú©ÙÚÚ©: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} باشد`}
33case"invalid_format":if("starts_with"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با "${r.prefix}" Ø´Ø±ÙØ¹ Ø´ÙØ¯`;if("ends_with"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با "${r.suffix}" تÙ
اÙ
Ø´ÙØ¯`;if("includes"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ شاÙ
Ù "${r.includes}" باشد`;if("regex"===r.format)return`Ø±Ø´ØªÙ ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ با اÙÚ¯ÙÛ ${r.pattern} Ù
Ø·Ø§Ø¨ÙØª داشت٠باشد`;return`${t[r.format]??r.format} ÙØ§Ù
عتبر`;case"not_multiple_of":return`عدد ÙØ§Ù
عتبر: Ø¨Ø§ÛØ¯ Ù
ضرب ${r.divisor} باشد`;case"unrecognized_keys":return`Ú©ÙÛØ¯${r.keys.length>1?"ÙØ§Û":""} ÙØ§Ø´Ùاس: ${I(r.keys,", ")}`;case"invalid_key":return`Ú©ÙÛØ¯ ÙØ§Ø´Ùاس در ${r.origin}`;case"invalid_union":default:return"ÙØ±ÙØ¯Û ÙØ§Ù
عتبر";case"invalid_element":return`Ù
ÙØ¯Ø§Ø± ÙØ§Ù
عتبر در ${r.origin}`}})}}function n1(){let e,t;return{localeError:(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"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${r.expected}, oli ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Virheellinen sy\xf6te: t\xe4ytyy olla ${ee(r.values[0])}`;return`Virheellinen valinta: t\xe4ytyy olla yksi seuraavista: ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Liian suuri: ${n.subject} t\xe4ytyy olla ${t}${r.maximum.toString()} ${n.unit}`.trim();return`Liian suuri: arvon t\xe4ytyy olla ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Liian pieni: ${n.subject} t\xe4ytyy olla ${t}${r.minimum.toString()} ${n.unit}`.trim();return`Liian pieni: arvon t\xe4ytyy olla ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy alkaa "${r.prefix}"`;if("ends_with"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy loppua "${r.suffix}"`;if("includes"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy sis\xe4lt\xe4\xe4 "${r.includes}"`;if("regex"===r.format)return`Virheellinen sy\xf6te: t\xe4ytyy vastata s\xe4\xe4nn\xf6llist\xe4 lauseketta ${r.pattern}`;return`Virheellinen ${t[r.format]??r.format}`;case"not_multiple_of":return`Virheellinen luku: t\xe4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${I(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xf6te"}})}}function n4(){let e,t;return{localeError:(e={string:{unit:"caract\xe8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xe9l\xe9ments",verb:"avoir"},set:{unit:"\xe9l\xe9ments",verb:"avoir"}},t={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"},r=>
33{switch(r.code){case"invalid_type":return`Entr\xe9e invalide : ${r.expected} attendu, ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombre";case"object":if(Array.isArray(e))return"tableau";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)} re\xe7u`;case"invalid_value":if(1===r.values.length)return`Entr\xe9e invalide : ${ee(r.values[0])} attendu`;return`Option invalide : une valeur parmi ${I(r.values,"|")} attendue`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Trop grand : ${r.origin??"valeur"} doit ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"\xe9l\xe9ment(s)"}`;return`Trop grand : ${r.origin??"valeur"} doit \xeatre ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Trop petit : ${r.origin} doit ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Trop petit : ${r.origin} doit \xeatre ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cha\xeene invalide : doit commencer par "${r.prefix}"`;if("ends_with"===r.format)return`Cha\xeene invalide : doit se terminer par "${r.suffix}"`;if("includes"===r.format)return`Cha\xeene invalide : doit inclure "${r.includes}"`;if("regex"===r.format)return`Cha\xeene invalide : doit correspondre au mod\xe8le ${r.pattern}`;return`${t[r.format]??r.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xe9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${I(r.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${r.origin}`;case"invalid_union":default:return"Entr\xe9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`}})}}function n6(){let e,t;return{localeError:(e={string:{unit:"caract\xe8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xe9l\xe9ments",verb:"avoir"},set:{unit:"\xe9l\xe9ments",verb:"avoir"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Entr\xe9e invalide : attendu ${r.expected}, re\xe7u ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Entr\xe9e invalide : attendu ${ee(r.values[0])}`;
33return`Option invalide : attendu l'une des valeurs suivantes ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"â¤":"<",n=e[r.origin]??null;if(n)return`Trop grand : attendu que ${r.origin??"la valeur"} ait ${t}${r.maximum.toString()} ${n.unit}`;return`Trop grand : attendu que ${r.origin??"la valeur"} soit ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"â¥":">",n=e[r.origin]??null;if(n)return`Trop petit : attendu que ${r.origin} ait ${t}${r.minimum.toString()} ${n.unit}`;return`Trop petit : attendu que ${r.origin} soit ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Cha\xeene invalide : doit commencer par "${r.prefix}"`;if("ends_with"===r.format)return`Cha\xeene invalide : doit se terminer par "${r.suffix}"`;if("includes"===r.format)return`Cha\xeene invalide : doit inclure "${r.includes}"`;if("regex"===r.format)return`Cha\xeene invalide : doit correspondre au motif ${r.pattern}`;return`${t[r.format]??r.format} invalide`;case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xe9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${I(r.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${r.origin}`;case"invalid_union":default:return"Entr\xe9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`}})}}function n9(){let e,t;return{localeError:(e={string:{unit:"××ת××ת",verb:"×××××"},file:{unit:"××××××",verb:"×××××"},array:{unit:"פר××××",verb:"×××××"},set:{unit:"פר××××",verb:"×××××"}},t={regex:"×§××",email:"×ת××ת ××××××",url:"×ת××ת רשת",emoji:"×××××'×",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ת×ר×× ×××× ISO",date:"ת×ר×× ISO",time:"××× ISO",duration:"××©× ××× ISO",ipv4:"×ת××ת IPv4",ipv6:"×ת××ת IPv6",cidrv4:"×××× IPv4",cidrv6:"×××× IPv6",base64:"××ר××ת ××ס×ס 64",base64url:"××ר××ת ××ס×ס 64 ××ת×××ת רשת",json_string:"××ר××ת JSON",e164:"×ספר E.164",jwt:"JWT",template_literal:"×§××"},r=>{switch(r.code){case"invalid_type":return`×§×× ×× ×ª×§××: צר×× ${r.expected}, ×תק×× ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`×§×× ×× ×ª×§××: צר×× ${ee(r.values[0])}`;return`×§×× ×× ×ª×§××: צר×× ××ת ×××פשר×××ת ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`×××× ×××: ${r.origin??"value"} צר×× ××××ת ${t}${r.maximum.toString()} ${n.unit??"elements"}`;return`×××× ×××: ${r.origin??"value"} צר×× ××××ת ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`×§×× ×××: ${r.origin} צר×× ××××ת ${t}${r.minimum.toString()} ${n.unit}`;return`×§×× ×××: ${r.origin} צר×× ××××ת ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`××ר××ת ×× ×ª×§×× ×: ××××ת ××ת××× ×"${r.prefix}"`;if("ends_with"===r.format)return`××ר××ת ×× ×ª×§×× ×: ××××ת ××סת××× × "${r.suffix}"`;if("includes"===r.format)return`××ר××ת ×× ×ª×§×× ×: ××××ת ××××× "${r.includes}"`;if("regex"===r.format)return`××ר××ת ×× ×ª×§×× ×: ××××ת ××ת××× ×ת×× ×ת ${r.pattern}`;return`${t[r.format]??r.format} ×× ×ª×§××`;case"not_multiple_of":return`×ספר ×× ×ª×§××: ×××× ××××ת ××פ×× ×©× ${r.divisor}`;case"unrecognized_keys":return`×פת×${r.keys.length>1?"×ת":""} ×× ××××${r.keys.length>1?"××":"×"}: ${I(r.keys,", ")}`;case"invalid_key":return`××¤×ª× ×× ×ª×§×× ×${r.origin}`;
33case"invalid_union":default:return"×§×× ×× ×ª×§××";case"invalid_element":return`×¢×¨× ×× ×ª×§×× ×${r.origin}`}})}}function n2(){let e,t;return{localeError:(e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}},t={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Åb\xe9lyeg",date:"ISO d\xe1tum",time:"ISO idÅ",duration:"ISO idÅintervallum",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"},r=>{switch(r.code){case"invalid_type":return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${r.expected}, a kapott \xe9rt\xe9k ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"sz\xe1m";case"object":if(Array.isArray(e))return"t\xf6mb";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${ee(r.values[0])}`;return`\xc9rv\xe9nytelen opci\xf3: valamelyik \xe9rt\xe9k v\xe1rt ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`T\xfal nagy: ${r.origin??"\xe9rt\xe9k"} m\xe9rete t\xfal nagy ${t}${r.maximum.toString()} ${n.unit??"elem"}`;return`T\xfal nagy: a bemeneti \xe9rt\xe9k ${r.origin??"\xe9rt\xe9k"} t\xfal nagy: ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${r.origin} m\xe9rete t\xfal kicsi ${t}${r.minimum.toString()} ${n.unit}`;return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${r.origin} t\xfal kicsi ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`\xc9rv\xe9nytelen string: "${r.prefix}" \xe9rt\xe9kkel kell kezdÅdnie`;if("ends_with"===r.format)return`\xc9rv\xe9nytelen string: "${r.suffix}" \xe9rt\xe9kkel kell v\xe9gzÅdnie`;if("includes"===r.format)return`\xc9rv\xe9nytelen string: "${r.includes}" \xe9rt\xe9ket kell tartalmaznia`;if("regex"===r.format)return`\xc9rv\xe9nytelen string: ${r.pattern} mint\xe1nak kell megfelelnie`;return`\xc9rv\xe9nytelen ${t[r.format]??r.format}`;case"not_multiple_of":return`\xc9rv\xe9nytelen sz\xe1m: ${r.divisor} t\xf6bbsz\xf6r\xf6s\xe9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${I(r.keys,", ")}`;case"invalid_key":return`\xc9rv\xe9nytelen kulcs ${r.origin}`;case"invalid_union":default:return"\xc9rv\xe9nytelen bemenet";case"invalid_element":return`\xc9rv\xe9nytelen \xe9rt\xe9k: ${r.origin}`}})}}function n5(){let e,t;return{localeError:(e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Input tidak valid: diharapkan ${r.expected}, diterima ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Input tidak valid: diharapkan ${ee(r.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${I(r.values,"|")}`;
33case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${t}${r.maximum.toString()} ${n.unit??"elemen"}`;return`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Terlalu kecil: diharapkan ${r.origin} memiliki ${t}${r.minimum.toString()} ${n.unit}`;return`Terlalu kecil: diharapkan ${r.origin} menjadi ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`String tidak valid: harus dimulai dengan "${r.prefix}"`;if("ends_with"===r.format)return`String tidak valid: harus berakhir dengan "${r.suffix}"`;if("includes"===r.format)return`String tidak valid: harus menyertakan "${r.includes}"`;if("regex"===r.format)return`String tidak valid: harus sesuai pola ${r.pattern}`;return`${t[r.format]??r.format} tidak valid`;case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${I(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`}})}}function n3(){let e,t;return{localeError:(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"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Rangt gildi: \xde\xfa sl\xf3st inn ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"n\xfamer";case"object":if(Array.isArray(e))return"fylki";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)} \xfear sem \xe1 a\xf0 vera ${r.expected}`;case"invalid_value":if(1===r.values.length)return`Rangt gildi: gert r\xe1\xf0 fyrir ${ee(r.values[0])}`;return`\xd3gilt val: m\xe1 vera eitt af eftirfarandi ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin??"gildi"} hafi ${t}${r.maximum.toString()} ${n.unit??"hluti"}`;return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin??"gildi"} s\xe9 ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin} hafi ${t}${r.minimum.toString()} ${n.unit}`;return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${r.origin} s\xe9 ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 byrja \xe1 "${r.prefix}"`;if("ends_with"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 enda \xe1 "${r.suffix}"`;if("includes"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 innihalda "${r.includes}"`;if("regex"===r.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 fylgja mynstri ${r.pattern}`;return`Rangt ${t[r.format]??r.format}`;case"not_multiple_of":return`R\xf6ng tala: ver\xf0ur a\xf0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xd3\xfeekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${I(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xed ${r.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi \xed ${r.origin}`}})}}function n7(){let e,t;return{localeError:(e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}},t={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"},r=>
33{switch(r.code){case"invalid_type":return`Input non valido: atteso ${r.expected}, ricevuto ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numero";case"object":if(Array.isArray(e))return"vettore";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Input non valido: atteso ${ee(r.values[0])}`;return`Opzione non valida: atteso uno tra ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Troppo grande: ${r.origin??"valore"} deve avere ${t}${r.maximum.toString()} ${n.unit??"elementi"}`;return`Troppo grande: ${r.origin??"valore"} deve essere ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Troppo piccolo: ${r.origin} deve avere ${t}${r.minimum.toString()} ${n.unit}`;return`Troppo piccolo: ${r.origin} deve essere ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Stringa non valida: deve iniziare con "${r.prefix}"`;if("ends_with"===r.format)return`Stringa non valida: deve terminare con "${r.suffix}"`;if("includes"===r.format)return`Stringa non valida: deve includere "${r.includes}"`;if("regex"===r.format)return`Stringa non valida: deve corrispondere al pattern ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${I(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`}})}}function n8(){let e,t;return{localeError:(e={string:{unit:"æå",verb:"ã§ãã"},file:{unit:"ãã¤ã",verb:"ã§ãã"},array:{unit:"è¦ç´ ",verb:"ã§ãã"},set:{unit:"è¦ç´ ",verb:"ã§ãã"}},t={regex:"å
¥åå¤",email:"ã¡ã¼ã«ã¢ãã¬ã¹",url:"URL",emoji:"çµµæå",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISOæ¥æ",date:"ISOæ¥ä»",time:"ISOæå»",duration:"ISOæé",ipv4:"IPv4ã¢ãã¬ã¹",ipv6:"IPv6ã¢ãã¬ã¹",cidrv4:"IPv4ç¯å²",cidrv6:"IPv6ç¯å²",base64:"base64ã¨ã³ã³ã¼ãæåå",base64url:"base64urlã¨ã³ã³ã¼ãæåå",json_string:"JSONæåå",e164:"E.164çªå·",jwt:"JWT",template_literal:"å
¥åå¤"},r=>{switch(r.code){case"invalid_type":return`ç¡å¹ãªå
¥å: ${r.expected}ãæå¾
ããã¾ãããã${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"æ°å¤";case"object":if(Array.isArray(e))return"é
å";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}ãå
¥åããã¾ãã`;case"invalid_value":if(1===r.values.length)return`ç¡å¹ãªå
¥å: ${ee(r.values[0])}ãæå¾
ããã¾ãã`;return`ç¡å¹ãªé¸æ: ${I(r.values,"ã")}ã®ããããã§ããå¿
è¦ãããã¾ã`;case"too_big":{let t=r.inclusive?"以ä¸ã§ãã":"ããå°ãã",n=e[r.origin]??null;if(n)return`大ããããå¤: ${r.origin??"å¤"}ã¯${r.maximum.toString()}${n.unit??"è¦ç´ "}${t}å¿
è¦ãããã¾ã`;return`大ããããå¤: ${r.origin??"å¤"}ã¯${r.maximum.toString()}${t}å¿
è¦ãããã¾ã`}case"too_small":{let t=r.inclusive?"以ä¸ã§ãã":"ãã大ãã",n=e[r.origin]??null;if(n)return`å°ããããå¤: ${r.origin}ã¯${r.minimum.toString()}${n.unit}${t}å¿
è¦ãããã¾ã`;return`å°ããããå¤: ${r.origin}ã¯${r.minimum.toString()}${t}å¿
è¦ãããã¾ã`}case"invalid_format":if("starts_with"===r.format)return`ç¡å¹ãªæåå: "${r.prefix}"ã§å§ã¾ãå¿
è¦ãããã¾ã`;if("ends_with"===r.format)return`ç¡å¹ãªæåå: "${r.suffix}"ã§çµããå¿
è¦ãããã¾ã`;if("includes"===r.format)return`ç¡å¹ãªæåå: "${r.includes}"ãå«ãå¿
è¦ãããã¾ã`;if("regex"===r.format)return`ç¡å¹ãªæåå: ãã¿ã¼ã³${r.pattern}ã«ä¸è´ããå¿
è¦ãããã¾ã`;return`ç¡å¹ãª${t[r.format]??r.format}`;case"not_multiple_of":return`ç¡å¹ãªæ°å¤: ${r.divisor}ã®åæ°ã§ããå¿
è¦ãããã¾ã`;
33case"unrecognized_keys":return`èªèããã¦ããªããã¼${r.keys.length>1?"群":""}: ${I(r.keys,"ã")}`;case"invalid_key":return`${r.origin}å
ã®ç¡å¹ãªãã¼`;case"invalid_union":default:return"ç¡å¹ãªå
¥å";case"invalid_element":return`${r.origin}å
ã®ç¡å¹ãªå¤`}})}}function ie(){let e,t;return{localeError:(e={string:{unit:"á¡áááááá",verb:"á£ááá á¨áááªááááá¡"},file:{unit:"áááá¢á",verb:"á£ááá á¨áááªááááá¡"},array:{unit:"ááááááá¢á",verb:"á£ááá á¨áááªááááá¡"},set:{unit:"ááááááá¢á",verb:"á£ááá á¨áááªááááá¡"}},t={regex:"á¨áá§áááá",email:"áá-á¤áá¡á¢áá¡ ááá¡áááá áá",url:"URL",emoji:"áááá¯á",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ááá áá¦á-áá á",date:"ááá áá¦á",time:"áá á",duration:"á®áááá á«áááááá",ipv4:"IPv4 ááá¡áááá áá",ipv6:"IPv6 ááá¡áááá áá",cidrv4:"IPv4 ááááááááá",cidrv6:"IPv6 ááááááááá",base64:"base64-ááááá ááá£áá á¡á¢á áááá",base64url:"base64url-ááááá ááá£áá á¡á¢á áááá",json_string:"JSON á¡á¢á áááá",e164:"E.164 ááááá á",jwt:"JWT",template_literal:"á¨áá§áááá"},r=>{switch(r.code){case"invalid_type":return`áá áá¡á¬áá á á¨áá§áááá: ááá¡áááááááá ${r.expected}, ááá¦ááá£áá ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"á ááªá®áá";case"object":if(Array.isArray(e))return"ááá¡ááá";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return({string:"á¡á¢á áááá",boolean:"áá£ááááá",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"á¤á£áá¥áªáá"})[t]??t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`áá áá¡á¬áá á á¨áá§áááá: ááá¡áááááááá ${ee(r.values[0])}`;return`áá áá¡á¬áá á ááá áááá¢á: ááá¡ááááááááá áá á-áá áá ${I(r.values,"|")}-ááá`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`áááááá¢áá áááá: ááá¡áááááááá ${r.origin??"áááá¨ááááááá"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit}`;return`áááááá¢áá áááá: ááá¡áááááááá ${r.origin??"áááá¨ááááááá"} áá§áá¡ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`áááááá¢áá ááá¢áá á: ááá¡áááááááá ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`áááááá¢áá ááá¢áá á: ááá¡áááááááá ${r.origin} áá§áá¡ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`áá áá¡á¬áá á á¡á¢á áááá: á£ááá áá¬á§áááááá¡ "${r.prefix}"-áá`;if("ends_with"===r.format)return`áá áá¡á¬áá á á¡á¢á áááá: á£ááá ááááá ááááááá¡ "${r.suffix}"-áá`;if("includes"===r.format)return`áá áá¡á¬áá á á¡á¢á áááá: á£ááá á¨áááªááááá¡ "${r.includes}"-á¡`;if("regex"===r.format)return`áá áá¡á¬áá á á¡á¢á áááá: á£ááá á¨ááá¡áááááááááá¡ á¨áááááá¡ ${r.pattern}`;return`áá áá¡á¬áá á ${t[r.format]??r.format}`;case"not_multiple_of":return`áá áá¡á¬áá á á ááªá®áá: á£ááá áá§áá¡ ${r.divisor}-áá¡ á¯áá ááá`;case"unrecognized_keys":return`á£áªáááá ááá¡áá¦áá${r.keys.length>1?"ááá":"á"}: ${I(r.keys,", ")}`;
33case"invalid_key":return`áá áá¡á¬áá á ááá¡áá¦ááá ${r.origin}-á¨á`;case"invalid_union":default:return"áá áá¡á¬áá á á¨áá§áááá";case"invalid_element":return`áá áá¡á¬áá á áááá¨ááááááá ${r.origin}-á¨á`}})}}function it(){let e,t;return{localeError:(e={string:{unit:"áá½á¢áááá",verb:"áá½ááá¶á"},file:{unit:"áá",verb:"áá½ááá¶á"},array:{unit:"áá¶áá»",verb:"áá½ááá¶á"},set:{unit:"áá¶áá»",verb:"áá½ááá¶á"}},t={regex:"áá·áááááááááá
á¼á",email:"á¢á¶áááááá¶áá¢áá¸ááá",url:"URL",emoji:"ááááá¶á¢á¶áááááá",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"áá¶áááá·á
áááá áá·ááááá ISO",date:"áá¶áááá·á
áááá ISO",time:"áááá ISO",duration:"áááááá ISO",ipv4:"á¢á¶áááááá¶á IPv4",ipv6:"á¢á¶áááááá¶á IPv6",cidrv4:"áááá¢á¶áááááá¶á IPv4",cidrv6:"áááá¢á¶áááááá¶á IPv6",base64:"ááááá¢ááááá¢áá·áá¼á base64",base64url:"ááááá¢ááááá¢áá·áá¼á base64url",json_string:"ááááá¢áááá JSON",e164:"ááá E.164",jwt:"JWT",template_literal:"áá·áááááááááá
á¼á"},r=>{switch(r.code){case"invalid_type":return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á ${r.expected} ááá»ááááááá½ááá¶á ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"áá·áááááá¶ááá (NaN)":"ááá";case"object":if(Array.isArray(e))return"á¢á¶áá (Array)";if(null===e)return"áááá¶áááááá (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`áá·áááááááááá
á¼ááá·ááááá¹ááááá¼áá áááá¼ááá¶á ${ee(r.values[0])}`;return`ááááá¾ááá·ááááá¹ááááá¼áá áááá¼ááá¶áá½ááááá»áá
áááá ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`áááááá áááá¼ááá¶á ${r.origin??"ááááá"} ${t} ${r.maximum.toString()} ${n.unit??"áá¶áá»"}`;return`áááááá áááá¼ááá¶á ${r.origin??"ááááá"} ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`áá¼á
áááá áááá¼ááá¶á ${r.origin} ${t} ${r.minimum.toString()} ${n.unit}`;return`áá¼á
áááá áááá¼ááá¶á ${r.origin} ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼áá
á¶áááááá¾áááá "${r.prefix}"`;if("ends_with"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááááá
ááááá "${r.suffix}"`;if("includes"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááá¶á "${r.includes}"`;if("regex"===r.format)return`ááááá¢áááááá·ááááá¹ááááá¼áá áááá¼ááááááá¼áááááá¹áááááááááááá¶áááááá ${r.pattern}`;return`áá·ááááá¹ááááá¼áá ${t[r.format]??r.format}`;case"not_multiple_of":return`ááááá·ááááá¹ááááá¼áá áááá¼ááááá¶áá á»áá»ááá ${r.divisor}`;case"unrecognized_keys":return`áááá¾ááááá·ááááá¶ááá ${I(r.keys,", ")}`;case"invalid_key":return`áááá·ááááá¹ááááá¼ááá
áááá»á ${r.origin}`;
33case"invalid_union":default:return"áá·áááááááá·ááááá¹ááááá¼á";case"invalid_element":return`áá·áááááááá·ááááá¹ááááá¼ááá
áááá»á ${r.origin}`}})}}function ir(){return it()}function ii(){let e,t;return{localeError:(e={string:{unit:"문ì",verb:"to have"},file:{unit:"ë°ì´í¸",verb:"to have"},array:{unit:"ê°",verb:"to have"},set:{unit:"ê°",verb:"to have"}},t={regex:"ì
ë ¥",email:"ì´ë©ì¼ 주ì",url:"URL",emoji:"ì´ëª¨ì§",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ë ì§ìê°",date:"ISO ë ì§",time:"ISO ìê°",duration:"ISO 기ê°",ipv4:"IPv4 주ì",ipv6:"IPv6 주ì",cidrv4:"IPv4 ë²ì",cidrv6:"IPv6 ë²ì",base64:"base64 ì¸ì½ë© 문ìì´",base64url:"base64url ì¸ì½ë© 문ìì´",json_string:"JSON 문ìì´",e164:"E.164 ë²í¸",jwt:"JWT",template_literal:"ì
ë ¥"},r=>{switch(r.code){case"invalid_type":return`ì못ë ì
ë ¥: ìì íì
ì ${r.expected}, ë°ì íì
ì ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}ì
ëë¤`;case"invalid_value":if(1===r.values.length)return`ì못ë ì
ë ¥: ê°ì ${ee(r.values[0])} ì´ì´ì¼ í©ëë¤`;return`ì못ë ìµì
: ${I(r.values,"ëë ")} ì¤ íëì¬ì¼ í©ëë¤`;case"too_big":{let t=r.inclusive?"ì´í":"미ë§",n="미ë§"===t?"ì´ì´ì¼ í©ëë¤":"ì¬ì¼ í©ëë¤",i=e[r.origin]??null,a=i?.unit??"ìì";if(i)return`${r.origin??"ê°"}ì´ ë무 í½ëë¤: ${r.maximum.toString()}${a} ${t}${n}`;return`${r.origin??"ê°"}ì´ ë무 í½ëë¤: ${r.maximum.toString()} ${t}${n}`}case"too_small":{let t=r.inclusive?"ì´ì":"ì´ê³¼",n="ì´ì"===t?"ì´ì´ì¼ í©ëë¤":"ì¬ì¼ í©ëë¤",i=e[r.origin]??null,a=i?.unit??"ìì";if(i)return`${r.origin??"ê°"}ì´ ë무 ììµëë¤: ${r.minimum.toString()}${a} ${t}${n}`;return`${r.origin??"ê°"}ì´ ë무 ììµëë¤: ${r.minimum.toString()} ${t}${n}`}case"invalid_format":if("starts_with"===r.format)return`ì못ë 문ìì´: "${r.prefix}"(ì¼)ë¡ ììí´ì¼ í©ëë¤`;if("ends_with"===r.format)return`ì못ë 문ìì´: "${r.suffix}"(ì¼)ë¡ ëëì¼ í©ëë¤`;if("includes"===r.format)return`ì못ë 문ìì´: "${r.includes}"ì(를) í¬í¨í´ì¼ í©ëë¤`;if("regex"===r.format)return`ì못ë 문ìì´: ì ê·ì ${r.pattern} í¨í´ê³¼ ì¼ì¹í´ì¼ í©ëë¤`;return`ì못ë ${t[r.format]??r.format}`;case"not_multiple_of":return`ì못ë ì«ì: ${r.divisor}ì ë°°ìì¬ì¼ í©ëë¤`;case"unrecognized_keys":return`ì¸ìí ì ìë í¤: ${I(r.keys,", ")}`;case"invalid_key":return`ì못ë í¤: ${r.origin}`;case"invalid_union":default:return"ì못ë ì
ë ¥";case"invalid_element":return`ì못ë ê°: ${r.origin}`}})}}let ia=(e,t)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skaiÄius";case"bigint":return"sveikasis skaiÄius";case"string":return"eilutÄ";case"boolean":return"loginÄ reikÅ¡mÄ";case"undefined":case"void":return"neapibrÄžta reikÅ¡mÄ";case"function":return"funkcija";case"symbol":return"simbolis";case"object":if(void 0===t)return"nežinomas objektas";if(null===t)return"nulinÄ reikÅ¡mÄ";if(Array.isArray(t))return"masyvas";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name;return"objektas";case"null":return"nulinÄ reikÅ¡mÄ"}return e},is=e=>e.charAt(0).toUpperCase()+e.slice(1);function io(e){let t=Math.abs(e),r=t%10,n=t%100;return n>=11&&n<=19||0===r?"many":1===r?"one":"few"}function iu(){return{localeError:(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi bÅ«ti ne ilgesnÄ kaip",notInclusive:"turi bÅ«ti trumpesnÄ kaip"},bigger:{inclusive:"turi bÅ«ti ne trumpesnÄ kaip",notInclusive:"turi bÅ«ti ilgesnÄ kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi bÅ«ti ne didesnis kaip",notInclusive:"turi bÅ«ti mažesnis kaip"},bigger:{inclusive:"turi bÅ«ti ne mažesnis kaip",notInclusive:"turi bÅ«ti didesnis kaip"}}},array:{unit:{one:"elementÄ
",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turÄti ne daugiau kaip",notInclusive:"turi turÄti mažiau kaip"},bigger:{inclusive:"turi turÄti ne mažiau kaip",notInclusive:"turi turÄti daugiau kaip"}}},set:{unit:{one:"elementÄ
",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turÄti ne daugiau kaip",notInclusive:"turi turÄti mažiau kaip"},bigger:{inclusive:"turi turÄti ne mažiau kaip",notInclusive:"turi turÄti daugiau kaip"}}}};function t(t,r,n,i){let a=e[t]??null;return null===a?a:{unit:a.unit[r],verb:a.verb[i][n?"inclusive":"notInclusive"]}}let r={regex:"įvestis",email:"el. paÅ¡to 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Ä",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutÄ",base64url:"base64url užkoduota eilutÄ",json_string:"JSON eilutÄ",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return e=>
33{switch(e.code){case"invalid_type":var n;return`Gautas tipas ${ia(typeof(n=e.input),n)}, o tikÄtasi - ${ia(e.expected)}`;case"invalid_value":if(1===e.values.length)return`Privalo bÅ«ti ${ee(e.values[0])}`;return`Privalo bÅ«ti vienas iÅ¡ ${I(e.values,"|")} pasirinkimų`;case"too_big":{let r=ia(e.origin),n=t(e.origin,io(Number(e.maximum)),e.inclusive??!1,"smaller");if(n?.verb)return`${is(r??e.origin??"reikÅ¡mÄ")} ${n.verb} ${e.maximum.toString()} ${n.unit??"elementų"}`;let i=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${is(r??e.origin??"reikÅ¡mÄ")} turi bÅ«ti ${i} ${e.maximum.toString()} ${n?.unit}`}case"too_small":{let r=ia(e.origin),n=t(e.origin,io(Number(e.minimum)),e.inclusive??!1,"bigger");if(n?.verb)return`${is(r??e.origin??"reikÅ¡mÄ")} ${n.verb} ${e.minimum.toString()} ${n.unit??"elementų"}`;let i=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${is(r??e.origin??"reikÅ¡mÄ")} turi bÅ«ti ${i} ${e.minimum.toString()} ${n?.unit}`}case"invalid_format":if("starts_with"===e.format)return`EilutÄ privalo prasidÄti "${e.prefix}"`;if("ends_with"===e.format)return`EilutÄ privalo pasibaigti "${e.suffix}"`;if("includes"===e.format)return`EilutÄ privalo įtraukti "${e.includes}"`;if("regex"===e.format)return`EilutÄ privalo atitikti ${e.pattern}`;return`Neteisingas ${r[e.format]??e.format}`;case"not_multiple_of":return`SkaiÄius privalo bÅ«ti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${I(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{let t=ia(e.origin);return`${is(t??e.origin??"reikÅ¡mÄ")} turi klaidingÄ
įvestį`}}}})()}}function il(){let e,t;return{localeError:(e={string:{unit:"знаÑи",verb:"да имааÑ"},file:{unit:"баÑÑи",verb:"да имааÑ"},array:{unit:"ÑÑавки",verb:"да имааÑ"},set:{unit:"ÑÑавки",verb:"да имааÑ"}},t={regex:"внеÑ",email:"адÑеÑа на е-поÑÑа",url:"URL",emoji:"емоÑи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑÑм и вÑеме",date:"ISO даÑÑм",time:"ISO вÑеме",duration:"ISO вÑемеÑÑаеÑе",ipv4:"IPv4 адÑеÑа",ipv6:"IPv6 адÑеÑа",cidrv4:"IPv4 опÑег",cidrv6:"IPv6 опÑег",base64:"base64-енкодиÑана низа",base64url:"base64url-енкодиÑана низа",json_string:"JSON низа",e164:"E.164 бÑоÑ",jwt:"JWT",template_literal:"внеÑ"},r=>{switch(r.code){case"invalid_type":return`ÐÑеÑен внеÑ: Ñе оÑекÑва ${r.expected}, пÑимено ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"бÑоÑ";case"object":if(Array.isArray(e))return"низа";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Invalid input: expected ${ee(r.values[0])}`;return`ÐÑеÑана опÑиÑа: Ñе оÑекÑва една ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð³Ð¾Ð»ÐµÐ¼: Ñе оÑекÑва ${r.origin??"вÑедноÑÑа"} да има ${t}${r.maximum.toString()} ${n.unit??"елеменÑи"}`;return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð³Ð¾Ð»ÐµÐ¼: Ñе оÑекÑва ${r.origin??"вÑедноÑÑа"} да биде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð¼Ð°Ð»: Ñе оÑекÑва ${r.origin} да има ${t}${r.minimum.toString()} ${n.unit}`;return`ÐÑÐµÐ¼Ð½Ð¾Ð³Ñ Ð¼Ð°Ð»: Ñе оÑекÑва ${r.origin} да биде ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐеважеÑка низа: моÑа да запоÑнÑва Ñо "${r.prefix}"`;if("ends_with"===r.format)return`ÐеважеÑка низа: моÑа да завÑÑÑва Ñо "${r.suffix}"`;if("includes"===r.format)return`ÐеважеÑка низа: моÑа да вклÑÑÑва "${r.includes}"`;if("regex"===r.format)return`ÐеважеÑка низа: моÑа да одгоаÑа на паÑеÑÐ½Ð¾Ñ ${r.pattern}`;return`Invalid ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐÑеÑен бÑоÑ: моÑа да биде делив Ñо ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"ÐепÑепознаени клÑÑеви":"ÐепÑепознаен клÑÑ"}: ${I(r.keys,", ")}`;
33case"invalid_key":return`ÐÑеÑен клÑÑ Ð²Ð¾ ${r.origin}`;case"invalid_union":default:return"ÐÑеÑен внеÑ";case"invalid_element":return`ÐÑеÑна вÑедноÑÑ Ð²Ð¾ ${r.origin}`}})}}function id(){let e,t;return{localeError:(e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Input tidak sah: dijangka ${r.expected}, diterima ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombor";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Input tidak sah: dijangka ${ee(r.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Terlalu besar: dijangka ${r.origin??"nilai"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"elemen"}`;return`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Terlalu kecil: dijangka ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Terlalu kecil: dijangka ${r.origin} adalah ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`String tidak sah: mesti bermula dengan "${r.prefix}"`;if("ends_with"===r.format)return`String tidak sah: mesti berakhir dengan "${r.suffix}"`;if("includes"===r.format)return`String tidak sah: mesti mengandungi "${r.includes}"`;if("regex"===r.format)return`String tidak sah: mesti sepadan dengan corak ${r.pattern}`;return`${t[r.format]??r.format} tidak sah`;case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${I(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`}})}}function ic(){let e,t;return{localeError:(e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Ongeldige invoer: verwacht ${r.expected}, ontving ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"getal";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ongeldige invoer: verwacht ${ee(r.values[0])}`;return`Ongeldige optie: verwacht \xe9\xe9n van ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Te lang: verwacht dat ${r.origin??"waarde"} ${t}${r.maximum.toString()} ${n.unit??"elementen"} bevat`;return`Te lang: verwacht dat ${r.origin??"waarde"} ${t}${r.maximum.toString()} is`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Te kort: verwacht dat ${r.origin} ${t}${r.minimum.toString()} ${n.unit} bevat`;return`Te kort: verwacht dat ${r.origin} ${t}${r.minimum.toString()} is`}
33case"invalid_format":if("starts_with"===r.format)return`Ongeldige tekst: moet met "${r.prefix}" beginnen`;if("ends_with"===r.format)return`Ongeldige tekst: moet op "${r.suffix}" eindigen`;if("includes"===r.format)return`Ongeldige tekst: moet "${r.includes}" bevatten`;if("regex"===r.format)return`Ongeldige tekst: moet overeenkomen met patroon ${r.pattern}`;return`Ongeldig: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${I(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`}})}}function im(){let e,t;return{localeError:(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"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Ugyldig input: forventet ${r.expected}, fikk ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"tall";case"object":if(Array.isArray(e))return"liste";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ugyldig verdi: forventet ${ee(r.values[0])}`;return`Ugyldig valg: forventet en av ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`For stor(t): forventet ${r.origin??"value"} til \xe5 ha ${t}${r.maximum.toString()} ${n.unit??"elementer"}`;return`For stor(t): forventet ${r.origin??"value"} til \xe5 ha ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`For lite(n): forventet ${r.origin} til \xe5 ha ${t}${r.minimum.toString()} ${n.unit}`;return`For lite(n): forventet ${r.origin} til \xe5 ha ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Ugyldig streng: m\xe5 starte med "${r.prefix}"`;if("ends_with"===r.format)return`Ugyldig streng: m\xe5 ende med "${r.suffix}"`;if("includes"===r.format)return`Ugyldig streng: m\xe5 inneholde "${r.includes}"`;if("regex"===r.format)return`Ugyldig streng: m\xe5 matche m\xf8nsteret ${r.pattern}`;return`Ugyldig ${t[r.format]??r.format}`;case"not_multiple_of":return`Ugyldig tall: m\xe5 v\xe6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xf8kler":"Ukjent n\xf8kkel"}: ${I(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8kkel i ${r.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`}})}}function ip(){let e,t;return{localeError:(e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}},t={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ı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO m\xfcddeti",ipv4:"IPv4 niÅ\xe2nı",ipv6:"IPv6 niÅ\xe2nı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-Åifreli metin",base64url:"base64url-Åifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},r=>{switch(r.code){case"invalid_type":return`F\xe2sit giren: umulan ${r.expected}, alınan ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numara";case"object":if(Array.isArray(e))return"saf";if(null===e)return"gayb";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;
33case"invalid_value":if(1===r.values.length)return`F\xe2sit giren: umulan ${ee(r.values[0])}`;return`F\xe2sit tercih: m\xfbteberler ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Fazla b\xfcy\xfck: ${r.origin??"value"}, ${t}${r.maximum.toString()} ${n.unit??"elements"} sahip olmalıydı.`;return`Fazla b\xfcy\xfck: ${r.origin??"value"}, ${t}${r.maximum.toString()} olmalıydı.`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Fazla k\xfc\xe7\xfck: ${r.origin}, ${t}${r.minimum.toString()} ${n.unit} sahip olmalıydı.`;return`Fazla k\xfc\xe7\xfck: ${r.origin}, ${t}${r.minimum.toString()} olmalıydı.`}case"invalid_format":if("starts_with"===r.format)return`F\xe2sit metin: "${r.prefix}" ile baÅlamalı.`;if("ends_with"===r.format)return`F\xe2sit metin: "${r.suffix}" ile bitmeli.`;if("includes"===r.format)return`F\xe2sit metin: "${r.includes}" ihtiv\xe2 etmeli.`;if("regex"===r.format)return`F\xe2sit metin: ${r.pattern} nakÅına uymalı.`;return`F\xe2sit ${t[r.format]??r.format}`;case"not_multiple_of":return`F\xe2sit sayı: ${r.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${r.keys.length>1?"s":""}: ${I(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xe7in tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${r.origin} i\xe7in tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}})}}function iv(){let e,t;return{localeError:(e={string:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"},file:{unit:"باÛټس",verb:"ÙÙØ±Ù"},array:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"},set:{unit:"تÙÚ©Ù",verb:"ÙÙØ±Ù"}},t={regex:"ÙØ±ÙدÙ",email:"برÛÚÙØ§ÙÛÚ©",url:"Û٠آر اÙ",emoji:"اÛÙ
ÙØ¬Ù",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ÙÛÙ¼Ù Ø§Ù ÙØ®Øª",date:"ÙÛÙ¼Ù",time:"ÙØ®Øª",duration:"Ù
ÙØ¯Ù",ipv4:"د IPv4 پتÙ",ipv6:"د IPv6 پتÙ",cidrv4:"د IPv4 ساØÙ",cidrv6:"د IPv6 ساØÙ",base64:"base64-encoded Ù
تÙ",base64url:"base64url-encoded Ù
تÙ",json_string:"JSON Ù
تÙ",e164:"د E.164 Ø´Ù
ÛØ±Ù",jwt:"JWT",template_literal:"ÙØ±ÙدÙ"},r=>{switch(r.code){case"invalid_type":return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ ${r.expected} ÙØ§Û, Ù
ګر ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"ارÛ";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)} ØªØ±ÙØ§Ø³Ù Ø´Ù`;case"invalid_value":if(1===r.values.length)return`ÙØ§Ø³Ù
ÙØ±ÙدÙ: Ø¨Ø§ÛØ¯ ${ee(r.values[0])} ÙØ§Û`;return`ÙØ§Ø³Ù
Ø§ÙØªØ®Ø§Ø¨: Ø¨Ø§ÛØ¯ ÛÙ ÙÙ ${I(r.values,"|")} Ú
Ø®Ù ÙØ§Û`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ÚÛØ± ÙÙÛ: ${r.origin??"Ø§Ø±Ø²ÚØª"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} ${n.unit??"Ø¹ÙØµØ±ÙÙÙ"} ÙÙØ±Ù`;return`ÚÛØ± ÙÙÛ: ${r.origin??"Ø§Ø±Ø²ÚØª"} Ø¨Ø§ÛØ¯ ${t}${r.maximum.toString()} ÙÙ`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ÚÛØ± Ú©ÙÚÙÛ: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} ${n.unit} ÙÙØ±Ù`;return`ÚÛØ± Ú©ÙÚÙÛ: ${r.origin} Ø¨Ø§ÛØ¯ ${t}${r.minimum.toString()} ÙÙ`}case"invalid_format":if("starts_with"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د "${r.prefix}" سر٠پÛÙ Ø´Ù`;if("ends_with"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د "${r.suffix}" Ø³Ø±Ù Ù¾Ø§Û ØªÙ ÙØ±Ø³ÙÚÙ`;if("includes"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ "${r.includes}" ÙÙØ±Ù`;if("regex"===r.format)return`ÙØ§Ø³Ù
Ù
تÙ: Ø¨Ø§ÛØ¯ د ${r.pattern} سر٠Ù
Ø·Ø§Ø¨ÙØª ÙÙØ±Ù`;return`${t[r.format]??r.format} ÙØ§Ø³Ù
دÛ`;case"not_multiple_of":return`ÙØ§Ø³Ù
عدد: Ø¨Ø§ÛØ¯ د ${r.divisor} Ù
ضرب ÙÙ`;case"unrecognized_keys":return`ÙØ§Ø³Ù
${r.keys.length>1?"Ú©ÙÛÚÙÙÙ":"Ú©ÙÛÚ"}: ${I(r.keys,", ")}`;case"invalid_key":return`ÙØ§Ø³Ù
Ú©ÙÛÚ Ù¾Ù ${r.origin} Ú©Û`;case"invalid_union":default:return"ÙØ§Ø³Ù
Ù ÙØ±ÙدÙ";
33case"invalid_element":return`ÙØ§Ø³Ù
Ø¹ÙØµØ± Ù¾Ù ${r.origin} Ú©Û`}})}}function ih(){let e,t;return{localeError:(e={string:{unit:"znak\xf3w",verb:"mieÄ"},file:{unit:"bajt\xf3w",verb:"mieÄ"},array:{unit:"element\xf3w",verb:"mieÄ"},set:{unit:"element\xf3w",verb:"mieÄ"}},t={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciÄ
g znak\xf3w zakodowany w formacie base64",base64url:"ciÄ
g znak\xf3w zakodowany w formacie base64url",json_string:"ciÄ
g znak\xf3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejÅcie"},r=>{switch(r.code){case"invalid_type":return`NieprawidÅowe dane wejÅciowe: oczekiwano ${r.expected}, otrzymano ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"liczba";case"object":if(Array.isArray(e))return"tablica";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`NieprawidÅowe dane wejÅciowe: oczekiwano ${ee(r.values[0])}`;return`NieprawidÅowa opcja: oczekiwano jednej z wartoÅci ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Za duża wartoÅÄ: oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie mieÄ ${t}${r.maximum.toString()} ${n.unit??"element\xf3w"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie wynosiÄ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Za maÅa wartoÅÄ: oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie mieÄ ${t}${r.minimum.toString()} ${n.unit??"element\xf3w"}`;return`Zbyt maÅ(y/a/e): oczekiwano, że ${r.origin??"wartoÅÄ"} bÄdzie wynosiÄ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi zaczynaÄ siÄ od "${r.prefix}"`;if("ends_with"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi koÅczyÄ siÄ na "${r.suffix}"`;if("includes"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi zawieraÄ "${r.includes}"`;if("regex"===r.format)return`NieprawidÅowy ciÄ
g znak\xf3w: musi odpowiadaÄ wzorcowi ${r.pattern}`;return`NieprawidÅow(y/a/e) ${t[r.format]??r.format}`;case"not_multiple_of":return`NieprawidÅowa liczba: musi byÄ wielokrotnoÅciÄ
${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${I(r.keys,", ")}`;case"invalid_key":return`NieprawidÅowy klucz w ${r.origin}`;case"invalid_union":default:return"NieprawidÅowe dane wejÅciowe";case"invalid_element":return`NieprawidÅowa wartoÅÄ w ${r.origin}`}})}}function ig(){let e,t;return{localeError:(e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Tipo inv\xe1lido: esperado ${r.expected}, recebido ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"n\xfamero";case"object":if(Array.isArray(e))return"array";if(null===e)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Entrada inv\xe1lida: esperado ${ee(r.values[0])}`;return`Op\xe7\xe3o inv\xe1lida: esperada uma das ${I(r.values,"|")}`;
33case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Muito grande: esperado que ${r.origin??"valor"} tivesse ${t}${r.maximum.toString()} ${n.unit??"elementos"}`;return`Muito grande: esperado que ${r.origin??"valor"} fosse ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Muito pequeno: esperado que ${r.origin} tivesse ${t}${r.minimum.toString()} ${n.unit}`;return`Muito pequeno: esperado que ${r.origin} fosse ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Texto inv\xe1lido: deve come\xe7ar com "${r.prefix}"`;if("ends_with"===r.format)return`Texto inv\xe1lido: deve terminar com "${r.suffix}"`;if("includes"===r.format)return`Texto inv\xe1lido: deve incluir "${r.includes}"`;if("regex"===r.format)return`Texto inv\xe1lido: deve corresponder ao padr\xe3o ${r.pattern}`;return`${t[r.format]??r.format} inv\xe1lido`;case"not_multiple_of":return`N\xfamero inv\xe1lido: deve ser m\xfaltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${I(r.keys,", ")}`;case"invalid_key":return`Chave inv\xe1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xe1lida";case"invalid_element":return`Valor inv\xe1lido em ${r.origin}`;default:return"Campo inv\xe1lido"}})}}function iy(e,t,r,n){let i=Math.abs(e),a=i%10,s=i%100;return s>=11&&s<=19?n:1===a?t:a>=2&&a<=4?r:n}function i_(){let e,t;return{localeError:(e={string:{unit:{one:"Ñимвол",few:"Ñимвола",many:"Ñимволов"},verb:"имеÑÑ"},file:{unit:{one:"байÑ",few:"байÑа",many:"байÑ"},verb:"имеÑÑ"},array:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑа",many:"ÑлеменÑов"},verb:"имеÑÑ"},set:{unit:{one:"ÑлеменÑ",few:"ÑлеменÑа",many:"ÑлеменÑов"},verb:"имеÑÑ"}},t={regex:"ввод",email:"email адÑеÑ",url:"URL",emoji:"Ñмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO даÑа и вÑемÑ",date:"ISO даÑа",time:"ISO вÑемÑ",duration:"ISO длиÑелÑноÑÑÑ",ipv4:"IPv4 адÑеÑ",ipv6:"IPv6 адÑеÑ",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"ÑÑÑока в ÑоÑмаÑе base64",base64url:"ÑÑÑока в ÑоÑмаÑе base64url",json_string:"JSON ÑÑÑока",e164:"Ð½Ð¾Ð¼ÐµÑ E.164",jwt:"JWT",template_literal:"ввод"},r=>{switch(r.code){case"invalid_type":return`ÐевеÑнÑй ввод: ожидалоÑÑ ${r.expected}, полÑÑено ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"ÑиÑло";case"object":if(Array.isArray(e))return"маÑÑив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`ÐевеÑнÑй ввод: ожидалоÑÑ ${ee(r.values[0])}`;return`ÐевеÑнÑй ваÑианÑ: ожидалоÑÑ Ð¾Ð´Ð½Ð¾ из ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n){let e=iy(Number(r.maximum),n.unit.one,n.unit.few,n.unit.many);return`СлиÑком болÑÑое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin??"знаÑение"} бÑÐ´ÐµÑ Ð¸Ð¼ÐµÑÑ ${t}${r.maximum.toString()} ${e}`}return`СлиÑком болÑÑое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin??"знаÑение"} бÑÐ´ÐµÑ ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n){let e=iy(Number(r.minimum),n.unit.one,n.unit.few,n.unit.many);return`СлиÑком маленÑкое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin} бÑÐ´ÐµÑ Ð¸Ð¼ÐµÑÑ ${t}${r.minimum.toString()} ${e}`}return`СлиÑком маленÑкое знаÑение: ожидалоÑÑ, ÑÑо ${r.origin} бÑÐ´ÐµÑ ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна наÑинаÑÑÑÑ Ñ "${r.prefix}"`;if("ends_with"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна заканÑиваÑÑÑÑ Ð½Ð° "${r.suffix}"`;if("includes"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна ÑодеÑжаÑÑ "${r.includes}"`;if("regex"===r.format)return`ÐевеÑÐ½Ð°Ñ ÑÑÑока: должна ÑооÑвеÑÑÑвоваÑÑ ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${r.pattern}`;return`ÐевеÑнÑй ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐевеÑное ÑиÑло: должно бÑÑÑ ÐºÑаÑнÑм ${r.divisor}`;case"unrecognized_keys":return`ÐеÑаÑпознанн${r.keys.length>1?"Ñе":"Ñй"} клÑÑ${r.keys.length>1?"и":""}: ${I(r.keys,", ")}`;
33case"invalid_key":return`ÐевеÑнÑй клÑÑ Ð² ${r.origin}`;case"invalid_union":default:return"ÐевеÑнÑе вÑ
однÑе даннÑе";case"invalid_element":return`ÐевеÑное знаÑение в ${r.origin}`}})}}function ib(){let e,t;return{localeError:(e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}},t={regex:"vnos",email:"e-poÅ¡tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in Äas",date:"ISO datum",time:"ISO Äas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 Å¡tevilka",jwt:"JWT",template_literal:"vnos"},r=>{switch(r.code){case"invalid_type":return`Neveljaven vnos: priÄakovano ${r.expected}, prejeto ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"Å¡tevilo";case"object":if(Array.isArray(e))return"tabela";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Neveljaven vnos: priÄakovano ${ee(r.values[0])}`;return`Neveljavna možnost: priÄakovano eno izmed ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Preveliko: priÄakovano, da bo ${r.origin??"vrednost"} imelo ${t}${r.maximum.toString()} ${n.unit??"elementov"}`;return`Preveliko: priÄakovano, da bo ${r.origin??"vrednost"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Premajhno: priÄakovano, da bo ${r.origin} imelo ${t}${r.minimum.toString()} ${n.unit}`;return`Premajhno: priÄakovano, da bo ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Neveljaven niz: mora se zaÄeti z "${r.prefix}"`;if("ends_with"===r.format)return`Neveljaven niz: mora se konÄati z "${r.suffix}"`;if("includes"===r.format)return`Neveljaven niz: mora vsebovati "${r.includes}"`;if("regex"===r.format)return`Neveljaven niz: mora ustrezati vzorcu ${r.pattern}`;return`Neveljaven ${t[r.format]??r.format}`;case"not_multiple_of":return`Neveljavno Å¡tevilo: mora biti veÄkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i kljuÄi":" kljuÄ"}: ${I(r.keys,", ")}`;case"invalid_key":return`Neveljaven kljuÄ v ${r.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`}})}}function i$(){let e,t;return{localeError:(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"}},t={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"},r=>{switch(r.code){case"invalid_type":return`Ogiltig inmatning: f\xf6rv\xe4ntat ${r.expected}, fick ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"antal";case"object":if(Array.isArray(e))return"lista";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ogiltig inmatning: f\xf6rv\xe4ntat ${ee(r.values[0])}`;return`Ogiltigt val: f\xf6rv\xe4ntade en av ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`F\xf6r stor(t): f\xf6rv\xe4ntade ${r.origin??"v\xe4rdet"} att ha ${t}${r.maximum.toString()} ${n.unit??"element"}`;return`F\xf6r stor(t): f\xf6rv\xe4ntat ${r.origin??"v\xe4rdet"} att ha ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`F\xf6r lite(t): f\xf6rv\xe4ntade ${r.origin??"v\xe4rdet"} att ha ${t}${r.minimum.toString()} ${n.unit}`;return`F\xf6r lite(t): f\xf6rv\xe4ntade ${r.origin??"v\xe4rdet"} att ha ${t}${r.minimum.toString()}`}
33case"invalid_format":if("starts_with"===r.format)return`Ogiltig str\xe4ng: m\xe5ste b\xf6rja med "${r.prefix}"`;if("ends_with"===r.format)return`Ogiltig str\xe4ng: m\xe5ste sluta med "${r.suffix}"`;if("includes"===r.format)return`Ogiltig str\xe4ng: m\xe5ste inneh\xe5lla "${r.includes}"`;if("regex"===r.format)return`Ogiltig str\xe4ng: m\xe5ste matcha m\xf6nstret "${r.pattern}"`;return`Ogiltig(t) ${t[r.format]??r.format}`;case"not_multiple_of":return`Ogiltigt tal: m\xe5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xe4nda nycklar":"Ok\xe4nd nyckel"}: ${I(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xe4rdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xe4rde i ${r.origin??"v\xe4rdet"}`}})}}function ix(){let e,t;return{localeError:(e={string:{unit:"à®à®´à¯à®¤à¯à®¤à¯à®à¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},file:{unit:"பà¯à®à¯à®à¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},array:{unit:"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"},set:{unit:"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯",verb:"à®à¯à®£à¯à®à®¿à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯"}},t={regex:"à®à®³à¯à®³à¯à®à¯",email:"மினà¯à®©à®à¯à®à®²à¯ à®®à¯à®à®µà®°à®¿",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தà¯à®¤à®¿ நà¯à®°à®®à¯",date:"ISO தà¯à®¤à®¿",time:"ISO நà¯à®°à®®à¯",duration:"ISO à®à®¾à®² à®
ளவà¯",ipv4:"IPv4 à®®à¯à®à®µà®°à®¿",ipv6:"IPv6 à®®à¯à®à®µà®°à®¿",cidrv4:"IPv4 வரமà¯à®ªà¯",cidrv6:"IPv6 வரமà¯à®ªà¯",base64:"base64-encoded à®à®°à®®à¯",base64url:"base64url-encoded à®à®°à®®à¯",json_string:"JSON à®à®°à®®à¯",e164:"E.164 à®à®£à¯",jwt:"JWT",template_literal:"input"},r=>{switch(r.code){case"invalid_type":return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.expected}, பà¯à®±à®ªà¯à®ªà®à¯à®à®¤à¯ ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"à®à®£à¯ à®
லà¯à®²à®¾à®¤à®¤à¯":"à®à®£à¯";case"object":if(Array.isArray(e))return"à®
ணி";
33if(null===e)return"வà¯à®±à¯à®®à¯";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`தவறான à®à®³à¯à®³à¯à®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${ee(r.values[0])}`;return`தவறான விரà¯à®ªà¯à®ªà®®à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${I(r.values,"|")} à®à®²à¯ à®à®©à¯à®±à¯`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`மி஠பà¯à®°à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin??"மதிபà¯à®ªà¯"} ${t}${r.maximum.toString()} ${n.unit??"à®à®±à¯à®ªà¯à®ªà¯à®à®³à¯"} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;return`மி஠பà¯à®°à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin??"மதிபà¯à®ªà¯"} ${t}${r.maximum.toString()} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`மிà®à®à¯ à®à®¿à®±à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin} ${t}${r.minimum.toString()} ${n.unit} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;return`மிà®à®à¯ à®à®¿à®±à®¿à®¯à®¤à¯: à®à®¤à®¿à®°à¯à®ªà®¾à®°à¯à®à¯à®à®ªà¯à®ªà®à¯à®à®¤à¯ ${r.origin} ${t}${r.minimum.toString()} à®à® à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`}case"invalid_format":if("starts_with"===r.format)return`தவறான à®à®°à®®à¯: "${r.prefix}" à®à®²à¯ தà¯à®à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;if("ends_with"===r.format)return`தவறான à®à®°à®®à¯: "${r.suffix}" à®à®²à¯ à®®à¯à®à®¿à®µà®à¯à®¯ வà¯à®£à¯à®à¯à®®à¯`;if("includes"===r.format)return`தவறான à®à®°à®®à¯: "${r.includes}" à® à®à®³à¯à®³à®à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;if("regex"===r.format)return`தவறான à®à®°à®®à¯: ${r.pattern} à®®à¯à®±à¯à®ªà®¾à®à¯à®à¯à®à®©à¯ பà¯à®°à¯à®¨à¯à®¤ வà¯à®£à¯à®à¯à®®à¯`;return`தவறான ${t[r.format]??r.format}`;case"not_multiple_of":return`தவறான à®à®£à¯: ${r.divisor} à®à®©à¯ பலமா஠à®à®°à¯à®à¯à® வà¯à®£à¯à®à¯à®®à¯`;case"unrecognized_keys":return`à®
à®à¯à®¯à®¾à®³à®®à¯ தà¯à®°à®¿à®¯à®¾à®¤ விà®à¯${r.keys.length>1?"à®à®³à¯":""}: ${I(r.keys,", ")}`;case"invalid_key":return`${r.origin} à®à®²à¯ தவறான விà®à¯`;case"invalid_union":default:return"தவறான à®à®³à¯à®³à¯à®à¯";case"invalid_element":return`${r.origin} à®à®²à¯ தவறான மதிபà¯à®ªà¯`}})}}function ik(){let e,t;return{localeError:(e={string:{unit:"à¸à¸±à¸§à¸à¸±à¸à¸©à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"},file:{unit:"à¹à¸à¸à¹",verb:"à¸à¸§à¸£à¸¡à¸µ"},array:{unit:"รายà¸à¸²à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"},set:{unit:"รายà¸à¸²à¸£",verb:"à¸à¸§à¸£à¸¡à¸µ"}},t={regex:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¹à¸à¸",email:"à¸à¸µà¹à¸à¸¢à¸¹à¹à¸à¸µà¹à¸¡à¸¥",url:"URL",emoji:"à¸à¸´à¹à¸¡à¸à¸´",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วัà¸à¸à¸µà¹à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",date:"วัà¸à¸à¸µà¹à¹à¸à¸ ISO",time:"à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",duration:"à¸à¹à¸§à¸à¹à¸§à¸¥à¸²à¹à¸à¸ ISO",ipv4:"à¸à¸µà¹à¸à¸¢à¸¹à¹ IPv4",ipv6:"à¸à¸µà¹à¸à¸¢à¸¹à¹ IPv6",cidrv4:"à¸à¹à¸§à¸ IP à¹à¸à¸ IPv4",cidrv6:"à¸à¹à¸§à¸ IP à¹à¸à¸ IPv6",base64:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ Base64",base64url:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ Base64 สำหรัภURL",json_string:"à¸à¹à¸à¸à¸§à¸²à¸¡à¹à¸à¸ JSON",e164:"à¹à¸à¸à¸£à¹à¹à¸à¸£à¸¨à¸±à¸à¸à¹à¸£à¸°à¸«à¸§à¹à¸²à¸à¸à¸£à¸°à¹à¸à¸¨ (E.164)",jwt:"à¹à¸à¹à¸à¸ JWT",template_literal:"à¸à¹à¸à¸¡à¸¹à¸¥à¸à¸µà¹à¸à¹à¸à¸"},r=>{switch(r.code){case"invalid_type":return`à¸à¸£à¸°à¹à¸ à¸à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ ${r.expected} à¹à¸à¹à¹à¸à¹à¸£à¸±à¸ ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"à¹à¸¡à¹à¹à¸à¹à¸à¸±à¸§à¹à¸¥à¸ (NaN)":"à¸à¸±à¸§à¹à¸¥à¸";case"object":if(Array.isArray(e))return"à¸à¸²à¸£à¹à¹à¸£à¸¢à¹ (Array)";if(null===e)return"à¹à¸¡à¹à¸¡à¸µà¸à¹à¸² (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;
33case"invalid_value":if(1===r.values.length)return`à¸à¹à¸²à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸ ${ee(r.values[0])}`;return`à¸à¸±à¸§à¹à¸¥à¸·à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¸§à¸£à¹à¸à¹à¸à¸«à¸à¸¶à¹à¸à¹à¸ ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"à¹à¸¡à¹à¹à¸à¸´à¸":"à¸à¹à¸à¸¢à¸à¸§à¹à¸²",n=e[r.origin]??null;if(n)return`à¹à¸à¸´à¸à¸à¸³à¸«à¸à¸: ${r.origin??"à¸à¹à¸²"} à¸à¸§à¸£à¸¡à¸µ${t} ${r.maximum.toString()} ${n.unit??"รายà¸à¸²à¸£"}`;return`à¹à¸à¸´à¸à¸à¸³à¸«à¸à¸: ${r.origin??"à¸à¹à¸²"} à¸à¸§à¸£à¸¡à¸µ${t} ${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?"à¸à¸¢à¹à¸²à¸à¸à¹à¸à¸¢":"มาà¸à¸à¸§à¹à¸²",n=e[r.origin]??null;if(n)return`à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸à¸³à¸«à¸à¸: ${r.origin} à¸à¸§à¸£à¸¡à¸µ${t} ${r.minimum.toString()} ${n.unit}`;return`à¸à¹à¸à¸¢à¸à¸§à¹à¸²à¸à¸³à¸«à¸à¸: ${r.origin} à¸à¸§à¸£à¸¡à¸µ${t} ${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸à¸¶à¹à¸à¸à¹à¸à¸à¹à¸§à¸¢ "${r.prefix}"`;if("ends_with"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸¥à¸à¸à¹à¸²à¸¢à¸à¹à¸§à¸¢ "${r.suffix}"`;if("includes"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸§à¸²à¸¡à¸à¹à¸à¸à¸¡à¸µ "${r.includes}" à¸à¸¢à¸¹à¹à¹à¸à¸à¹à¸à¸à¸§à¸²à¸¡`;if("regex"===r.format)return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¸à¸£à¸à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¸à¸µà¹à¸à¸³à¸«à¸à¸ ${r.pattern}`;return`รูà¸à¹à¸à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: ${t[r.format]??r.format}`;case"not_multiple_of":return`à¸à¸±à¸§à¹à¸¥à¸à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¸à¹à¸à¸à¹à¸à¹à¸à¸à¸³à¸à¸§à¸à¸à¸µà¹à¸«à¸²à¸£à¸à¹à¸§à¸¢ ${r.divisor} à¹à¸à¹à¸¥à¸à¸à¸±à¸§`;case"unrecognized_keys":return`à¸à¸à¸à¸µà¸¢à¹à¸à¸µà¹à¹à¸¡à¹à¸£à¸¹à¹à¸à¸±à¸: ${I(r.keys,", ")}`;case"invalid_key":return`à¸à¸µà¸¢à¹à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸à¹à¸ ${r.origin}`;case"invalid_union":return"à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸: à¹à¸¡à¹à¸à¸£à¸à¸à¸±à¸à¸£à¸¹à¸à¹à¸à¸à¸¢à¸¹à¹à¸à¸µà¸¢à¸à¸à¸µà¹à¸à¸³à¸«à¸à¸à¹à¸§à¹";case"invalid_element":return`à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸à¹à¸ ${r.origin}`;default:return"à¸à¹à¸à¸¡à¸¹à¸¥à¹à¸¡à¹à¸à¸¹à¸à¸à¹à¸à¸"}})}}function iw(){let e,t;return{localeError:(e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"\xf6Äe",verb:"olmalı"},set:{unit:"\xf6Äe",verb:"olmalı"}},t={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ıÄı",cidrv6:"IPv6 aralıÄı",base64:"base64 ile ÅifrelenmiÅ metin",base64url:"base64url ile ÅifrelenmiÅ metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Åablon dizesi"},r=>{switch(r.code){case"invalid_type":return`Ge\xe7ersiz deÄer: beklenen ${r.expected}, alınan ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Ge\xe7ersiz deÄer: beklenen ${ee(r.values[0])}`;return`Ge\xe7ersiz se\xe7enek: aÅaÄıdakilerden biri olmalı: ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`\xc7ok b\xfcy\xfck: beklenen ${r.origin??"deÄer"} ${t}${r.maximum.toString()} ${n.unit??"\xf6Äe"}`;return`\xc7ok b\xfcy\xfck: beklenen ${r.origin??"deÄer"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`\xc7ok k\xfc\xe7\xfck: beklenen ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`\xc7ok k\xfc\xe7\xfck: beklenen ${r.origin} ${t}${r.minimum.toString()}`}
33case"invalid_format":if("starts_with"===r.format)return`Ge\xe7ersiz metin: "${r.prefix}" ile baÅlamalı`;if("ends_with"===r.format)return`Ge\xe7ersiz metin: "${r.suffix}" ile bitmeli`;if("includes"===r.format)return`Ge\xe7ersiz metin: "${r.includes}" i\xe7ermeli`;if("regex"===r.format)return`Ge\xe7ersiz metin: ${r.pattern} desenine uymalı`;return`Ge\xe7ersiz ${t[r.format]??r.format}`;case"not_multiple_of":return`Ge\xe7ersiz sayı: ${r.divisor} ile tam b\xf6l\xfcnebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${r.keys.length>1?"lar":""}: ${I(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xe7inde ge\xe7ersiz anahtar`;case"invalid_union":default:return"Ge\xe7ersiz deÄer";case"invalid_element":return`${r.origin} i\xe7inde ge\xe7ersiz deÄer`}})}}function iI(){let e,t;return{localeError:(e={string:{unit:"ÑимволÑв",verb:"маÑиме"},file:{unit:"байÑÑв",verb:"маÑиме"},array:{unit:"елеменÑÑв",verb:"маÑиме"},set:{unit:"елеменÑÑв",verb:"маÑиме"}},t={regex:"вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ",email:"адÑеÑа елекÑÑÐ¾Ð½Ð½Ð¾Ñ Ð¿Ð¾ÑÑи",url:"URL",emoji:"емодзÑ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"даÑа Ñа ÑÐ°Ñ ISO",date:"даÑа ISO",time:"ÑÐ°Ñ ISO",duration:"ÑÑивалÑÑÑÑ ISO",ipv4:"адÑеÑа IPv4",ipv6:"адÑеÑа IPv6",cidrv4:"дÑапазон IPv4",cidrv6:"дÑапазон IPv6",base64:"ÑÑдок Ñ ÐºÐ¾Ð´ÑÐ²Ð°Ð½Ð½Ñ base64",base64url:"ÑÑдок Ñ ÐºÐ¾Ð´ÑÐ²Ð°Ð½Ð½Ñ base64url",json_string:"ÑÑдок JSON",e164:"Ð½Ð¾Ð¼ÐµÑ E.164",jwt:"JWT",template_literal:"вÑ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ"},r=>{switch(r.code){case"invalid_type":return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ ${r.expected}, оÑÑимано ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"ÑиÑло";case"object":if(Array.isArray(e))return"маÑив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ: оÑÑкÑÑÑÑÑÑ ${ee(r.values[0])}`;return`ÐепÑавилÑна опÑÑÑ: оÑÑкÑÑÑÑÑÑ Ð¾Ð´Ð½Ðµ з ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`ÐанадÑо велике: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin??"знаÑеннÑ"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"елеменÑÑв"}`;return`ÐанадÑо велике: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin??"знаÑеннÑ"} бÑде ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`ÐанадÑо мале: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`ÐанадÑо мале: оÑÑкÑÑÑÑÑÑ, Ñо ${r.origin} бÑде ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен поÑинаÑиÑÑ Ð· "${r.prefix}"`;if("ends_with"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен закÑнÑÑваÑиÑÑ Ð½Ð° "${r.suffix}"`;if("includes"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен мÑÑÑиÑи "${r.includes}"`;if("regex"===r.format)return`ÐепÑавилÑний ÑÑдок: повинен вÑдповÑдаÑи ÑÐ°Ð±Ð»Ð¾Ð½Ñ ${r.pattern}`;return`ÐепÑавилÑний ${t[r.format]??r.format}`;case"not_multiple_of":return`ÐепÑавилÑне ÑиÑло: повинно бÑÑи кÑаÑним ${r.divisor}`;case"unrecognized_keys":return`ÐеÑозпÑзнаний клÑÑ${r.keys.length>1?"Ñ":""}: ${I(r.keys,", ")}`;case"invalid_key":return`ÐепÑавилÑний клÑÑ Ñ ${r.origin}`;case"invalid_union":default:return"ÐепÑавилÑÐ½Ñ Ð²Ñ
ÑÐ´Ð½Ñ Ð´Ð°Ð½Ñ";case"invalid_element":return`ÐепÑавилÑне знаÑÐµÐ½Ð½Ñ Ñ ${r.origin}`}})}}function iS(){return iI()}function iO(){let e,t;return{localeError:(e={string:{unit:"ØØ±ÙÙ",verb:"ÛÙÙØ§"},file:{unit:"بائٹس",verb:"ÛÙÙØ§"},array:{unit:"آئٹÙ
ز",verb:"ÛÙÙØ§"},set:{unit:"آئٹÙ
ز",verb:"ÛÙÙØ§"}},t={regex:"ا٠پٹ",email:"Ø§Û Ù
Û٠اÛÚØ±Ûس",url:"Û٠آر اÛÙ",emoji:"اÛÙ
ÙØ¬Û",uuid:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ",uuidv4:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ ÙÛ 4",uuidv6:"ÛÙ ÛÙ Ø¢Ø¦Û ÚÛ ÙÛ 6",nanoid:"ÙÛÙÙ Ø¢Ø¦Û ÚÛ",guid:"Ø¬Û ÛÙ Ø¢Ø¦Û ÚÛ",cuid:"Ø³Û ÛÙ Ø¢Ø¦Û ÚÛ",cuid2:"Ø³Û ÛÙ Ø¢Ø¦Û ÚÛ 2",ulid:"Û٠اÛÙ Ø¢Ø¦Û ÚÛ",xid:"اÛکس Ø¢Ø¦Û ÚÛ",ksuid:"Ú©Û Ø§ÛØ³ ÛÙ Ø¢Ø¦Û ÚÛ",datetime:"Ø¢Ø¦Û Ø§ÛØ³ ا٠ÚÛÙ¹ ٹائÙ
",date:"Ø¢Ø¦Û Ø§ÛØ³ Ø§Ù ØªØ§Ø±ÛØ®",time:"Ø¢Ø¦Û Ø§ÛØ³ ا٠ÙÙØª",duration:"Ø¢Ø¦Û Ø§ÛØ³ ا٠Ù
دت",ipv4:"Ø¢Ø¦Û Ù¾Û ÙÛ 4 اÛÚØ±Ûس",ipv6:"Ø¢Ø¦Û Ù¾Û ÙÛ 6 اÛÚØ±Ûس",cidrv4:"Ø¢Ø¦Û Ù¾Û ÙÛ 4 رÛÙØ¬",cidrv6:"Ø¢Ø¦Û Ù¾Û ÙÛ 6 رÛÙØ¬",base64:"Ø¨ÛØ³ 64 ا٠کÙÚÚ Ø³Ù¹Ø±ÙÚ¯",base64url:"Ø¨ÛØ³ 64 Û٠آر اÛ٠ا٠کÙÚÚ Ø³Ù¹Ø±ÙÚ¯",json_string:"Ø¬Û Ø§ÛØ³ ا٠اÛ٠سٹرÙÚ¯",e164:"Ø§Û 164 ÙÙ
بر",jwt:"Ø¬Û ÚØ¨ÙÛÙ Ù¹Û",template_literal:"ا٠پٹ"},r=>
33{switch(r.code){case"invalid_type":return`ØºÙØ· ا٠پٹ: ${r.expected} Ù
تÙÙØ¹ ØªÚ¾Ø§Ø ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"ÙÙ
بر";case"object":if(Array.isArray(e))return"آرÛ";if(null===e)return"ÙÙ";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)} Ù
ÙØµÙÙ ÛÙØ§`;case"invalid_value":if(1===r.values.length)return`ØºÙØ· ا٠پٹ: ${ee(r.values[0])} Ù
تÙÙØ¹ تھا`;return`ØºÙØ· آپشÙ: ${I(r.values,"|")} Ù
ÛÚº Ø³Û Ø§ÛÚ© Ù
تÙÙØ¹ تھا`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Ø¨ÛØª Ø¨ÚØ§: ${r.origin??"ÙÛÙÛÙ"} Ú©Û ${t}${r.maximum.toString()} ${n.unit??"Ø¹ÙØ§ØµØ±"} ÛÙÙÛ Ù
تÙÙØ¹ تھÛ`;return`Ø¨ÛØª Ø¨ÚØ§: ${r.origin??"ÙÛÙÛÙ"} کا ${t}${r.maximum.toString()} ÛÙÙØ§ Ù
تÙÙØ¹ تھا`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Ø¨ÛØª ÚÚ¾Ùٹا: ${r.origin} Ú©Û ${t}${r.minimum.toString()} ${n.unit} ÛÙÙÛ Ù
تÙÙØ¹ تھÛ`;return`Ø¨ÛØª ÚÚ¾Ùٹا: ${r.origin} کا ${t}${r.minimum.toString()} ÛÙÙØ§ Ù
تÙÙØ¹ تھا`}case"invalid_format":if("starts_with"===r.format)return`ØºÙØ· سٹرÙÚ¯: "${r.prefix}" Ø³Û Ø´Ø±ÙØ¹ ÛÙÙØ§ ÚØ§ÛÛÛ`;if("ends_with"===r.format)return`ØºÙØ· سٹرÙÚ¯: "${r.suffix}" پر ختÙ
ÛÙÙØ§ ÚØ§ÛÛÛ`;if("includes"===r.format)return`ØºÙØ· سٹرÙÚ¯: "${r.includes}" شاÙ
Ù ÛÙÙØ§ ÚØ§ÛÛÛ`;if("regex"===r.format)return`ØºÙØ· سٹرÙÚ¯: Ù¾Ûٹر٠${r.pattern} Ø³Û Ù
ÛÚ ÛÙÙØ§ ÚØ§ÛÛÛ`;return`ØºÙØ· ${t[r.format]??r.format}`;case"not_multiple_of":return`ØºÙØ· ÙÙ
بر: ${r.divisor} کا Ù
ضاع٠ÛÙÙØ§ ÚØ§ÛÛÛ`;case"unrecognized_keys":return`ØºÛØ± تسÙÛÙ
Ø´Ø¯Û Ú©Û${r.keys.length>1?"ز":""}: ${I(r.keys,"Ø ")}`;case"invalid_key":return`${r.origin} Ù
ÛÚº ØºÙØ· Ú©Û`;case"invalid_union":default:return"ØºÙØ· ا٠پٹ";case"invalid_element":return`${r.origin} Ù
ÛÚº ØºÙØ· ÙÛÙÛÙ`}})}}function iz(){let e,t;return{localeError:(e={string:{unit:"k\xfd tá»±",verb:"c\xf3"},file:{unit:"byte",verb:"c\xf3"},array:{unit:"phần tá»",verb:"c\xf3"},set:{unit:"phần tá»",verb:"c\xf3"}},t={regex:"Äầu v\xe0o",email:"Äá»a chá» email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xe0y giá» ISO",date:"ng\xe0y ISO",time:"giá» ISO",duration:"khoảng thá»i gian ISO",ipv4:"Äá»a chá» IPv4",ipv6:"Äá»a chá» IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuá»i m\xe3 h\xf3a base64",base64url:"chuá»i m\xe3 h\xf3a base64url",json_string:"chuá»i JSON",e164:"sá» E.164",jwt:"JWT",template_literal:"Äầu v\xe0o"},r=>{switch(r.code){case"invalid_type":return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi ${r.expected}, nháºn ÄÆ°á»£c ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"sá»";case"object":if(Array.isArray(e))return"mảng";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`Äầu v\xe0o kh\xf4ng hợp lá»: mong Äợi ${ee(r.values[0])}`;return`T\xf9y chá»n kh\xf4ng hợp lá»: mong Äợi má»t trong c\xe1c gi\xe1 trá» ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`Qu\xe1 lá»n: mong Äợi ${r.origin??"gi\xe1 trá»"} ${n.verb} ${t}${r.maximum.toString()} ${n.unit??"phần tá»"}`;return`Qu\xe1 lá»n: mong Äợi ${r.origin??"gi\xe1 trá»"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`Qu\xe1 nhá»: mong Äợi ${r.origin} ${n.verb} ${t}${r.minimum.toString()} ${n.unit}`;return`Qu\xe1 nhá»: mong Äợi ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải bắt Äầu bằng "${r.prefix}"`;if("ends_with"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải kết th\xfac bằng "${r.suffix}"`;if("includes"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải bao gá»m "${r.includes}"`;if("regex"===r.format)return`Chuá»i kh\xf4ng hợp lá»: phải khá»p vá»i mẫu ${r.pattern}`;return`${t[r.format]??r.format} kh\xf4ng hợp lá»`;case"not_multiple_of":return`Sá» kh\xf4ng hợp lá»: phải l\xe0 bá»i sá» cá»§a ${r.divisor}`;case"unrecognized_keys":return`Kh\xf3a kh\xf4ng ÄÆ°á»£c nháºn dạng: ${I(r.keys,", ")}`;
33case"invalid_key":return`Kh\xf3a kh\xf4ng hợp lá» trong ${r.origin}`;case"invalid_union":default:return"Äầu v\xe0o kh\xf4ng hợp lá»";case"invalid_element":return`Gi\xe1 trá» kh\xf4ng hợp lá» trong ${r.origin}`}})}}function ij(){let e,t;return{localeError:(e={string:{unit:"å符",verb:"å
å«"},file:{unit:"åè",verb:"å
å«"},array:{unit:"项",verb:"å
å«"},set:{unit:"项",verb:"å
å«"}},t={regex:"è¾å
¥",email:"çµåé®ä»¶",url:"URL",emoji:"表æ
符å·",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISOæ¥ææ¶é´",date:"ISOæ¥æ",time:"ISOæ¶é´",duration:"ISOæ¶é¿",ipv4:"IPv4å°å",ipv6:"IPv6å°å",cidrv4:"IPv4ç½æ®µ",cidrv6:"IPv6ç½æ®µ",base64:"base64ç¼ç å符串",base64url:"base64urlç¼ç å符串",json_string:"JSONå符串",e164:"E.164å·ç ",jwt:"JWT",template_literal:"è¾å
¥"},r=>{switch(r.code){case"invalid_type":return`æ æè¾å
¥ï¼ææ ${r.expected}ï¼å®é
æ¥æ¶ ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"éæ°å(NaN)":"æ°å";case"object":if(Array.isArray(e))return"æ°ç»";if(null===e)return"空å¼(null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`æ æè¾å
¥ï¼ææ ${ee(r.values[0])}`;return`æ æéé¡¹ï¼ææä»¥ä¸ä¹ä¸ ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`æ°å¼è¿å¤§ï¼ææ ${r.origin??"å¼"} ${t}${r.maximum.toString()} ${n.unit??"个å
ç´ "}`;return`æ°å¼è¿å¤§ï¼ææ ${r.origin??"å¼"} ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`æ°å¼è¿å°ï¼ææ ${r.origin} ${t}${r.minimum.toString()} ${n.unit}`;return`æ°å¼è¿å°ï¼ææ ${r.origin} ${t}${r.minimum.toString()}`}case"invalid_format":if("starts_with"===r.format)return`æ æå符串ï¼å¿
须以 "${r.prefix}" å¼å¤´`;if("ends_with"===r.format)return`æ æå符串ï¼å¿
须以 "${r.suffix}" ç»å°¾`;if("includes"===r.format)return`æ æå符串ï¼å¿
é¡»å
å« "${r.includes}"`;if("regex"===r.format)return`æ æå符串ï¼å¿
须满足æ£åè¡¨è¾¾å¼ ${r.pattern}`;return`æ æ${t[r.format]??r.format}`;case"not_multiple_of":return`æ ææ°åï¼å¿
é¡»æ¯ ${r.divisor} çåæ°`;case"unrecognized_keys":return`åºç°æªç¥çé®(key): ${I(r.keys,", ")}`;case"invalid_key":return`${r.origin} ä¸çé®(key)æ æ`;case"invalid_union":default:return"æ æè¾å
¥";case"invalid_element":return`${r.origin} ä¸å
嫿 æå¼(value)`}})}}function iN(){let e,t;return{localeError:(e={string:{unit:"åå
",verb:"ææ"},file:{unit:"ä½å
çµ",verb:"ææ"},array:{unit:"é
ç®",verb:"ææ"},set:{unit:"é
ç®",verb:"ææ"}},t={regex:"輸å
¥",email:"éµä»¶å°å",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO æ¥ææé",date:"ISO æ¥æ",time:"ISO æé",duration:"ISO æé",ipv4:"IPv4 ä½å",ipv6:"IPv6 ä½å",cidrv4:"IPv4 ç¯å",cidrv6:"IPv6 ç¯å",base64:"base64 編碼å串",base64url:"base64url 編碼å串",json_string:"JSON å串",e164:"E.164 æ¸å¼",jwt:"JWT",template_literal:"輸å
¥"},r=>{switch(r.code){case"invalid_type":return`ç¡æç輸å
¥å¼ï¼é æçº ${r.expected}ï¼ä½æ¶å° ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`ç¡æç輸å
¥å¼ï¼é æçº ${ee(r.values[0])}`;return`ç¡æçé¸é
ï¼é æçºä»¥ä¸å
¶ä¸ä¹ä¸ ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`æ¸å¼é大ï¼é æ ${r.origin??"å¼"} æçº ${t}${r.maximum.toString()} ${n.unit??"åå
ç´ "}`;return`æ¸å¼é大ï¼é æ ${r.origin??"å¼"} æçº ${t}${r.maximum.toString()}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`æ¸å¼éå°ï¼é æ ${r.origin} æçº ${t}${r.minimum.toString()} ${n.unit}`;return`æ¸å¼éå°ï¼é æ ${r.origin} æçº ${t}${r.minimum.toString()}`}
33case"invalid_format":if("starts_with"===r.format)return`ç¡æçå串ï¼å¿
é 以 "${r.prefix}" éé `;if("ends_with"===r.format)return`ç¡æçå串ï¼å¿
é 以 "${r.suffix}" çµå°¾`;if("includes"===r.format)return`ç¡æçå串ï¼å¿
é å
å« "${r.includes}"`;if("regex"===r.format)return`ç¡æçå串ï¼å¿
é ç¬¦åæ ¼å¼ ${r.pattern}`;return`ç¡æç ${t[r.format]??r.format}`;case"not_multiple_of":return`ç¡æçæ¸åï¼å¿
é çº ${r.divisor} ç忏`;case"unrecognized_keys":return`ç¡æ³èå¥çéµå¼${r.keys.length>1?"å":""}ï¼${I(r.keys,"ã")}`;case"invalid_key":return`${r.origin} ä¸æç¡æçéµå¼`;case"invalid_union":default:return"ç¡æç輸å
¥å¼";case"invalid_element":return`${r.origin} ä¸æç¡æçå¼`}})}}function iU(){let e,t;return{localeError:(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"}},t={regex:"ẹÌrá» \xecb\xe1wá»l\xe9",email:"\xe0d\xedrẹÌs\xec \xecmẹÌl\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:"á»já»Ì ISO",time:"\xe0k\xf3k\xf2 ISO",duration:"\xe0k\xf3k\xf2 t\xf3 p\xe9 ISO",ipv4:"\xe0d\xedrẹÌs\xec IPv4",ipv6:"\xe0d\xedrẹÌs\xec IPv6",cidrv4:"\xe0gb\xe8gb\xe8 IPv4",cidrv6:"\xe0gb\xe8gb\xe8 IPv6",base64:"á»Ìrá»Ì t\xed a ká»Ì n\xed base64",base64url:"á»Ìrá»Ì base64url",json_string:"á»Ìrá»Ì JSON",e164:"ná»Ìmb\xe0 E.164",jwt:"JWT",template_literal:"ẹÌrá» \xecb\xe1wá»l\xe9"},r=>{switch(r.code){case"invalid_type":return`\xccb\xe1wá»l\xe9 aá¹£\xecá¹£e: a n\xed l\xe1ti fi ${r.expected}, \xe0má»Ì a r\xed ${(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"ná»Ìmb\xe0";case"object":if(Array.isArray(e))return"akopá»";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(r.input)}`;case"invalid_value":if(1===r.values.length)return`\xccb\xe1wá»l\xe9 aá¹£\xecá¹£e: a n\xed l\xe1ti fi ${ee(r.values[0])}`;return`\xc0á¹£\xe0y\xe0n aá¹£\xecá¹£e: yan á»Ìkan l\xe1ra ${I(r.values,"|")}`;case"too_big":{let t=r.inclusive?"<=":"<",n=e[r.origin]??null;if(n)return`T\xf3 pá»Ì j\xf9: a n\xed l\xe1ti jáº¹Ì p\xe9 ${r.origin??"iye"} ${n.verb} ${t}${r.maximum} ${n.unit}`;return`T\xf3 pá»Ì j\xf9: a n\xed l\xe1ti jáº¹Ì ${t}${r.maximum}`}case"too_small":{let t=r.inclusive?">=":">",n=e[r.origin]??null;if(n)return`K\xe9r\xe9 ju: a n\xed l\xe1ti jáº¹Ì p\xe9 ${r.origin} ${n.verb} ${t}${r.minimum} ${n.unit}`;return`K\xe9r\xe9 ju: a n\xed l\xe1ti jáº¹Ì ${t}${r.minimum}`}case"invalid_format":if("starts_with"===r.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì bẹÌráº¹Ì pẹÌl\xfa "${r.prefix}"`;if("ends_with"===r.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì par\xed pẹÌl\xfa "${r.suffix}"`;if("includes"===r.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì n\xed "${r.includes}"`;if("regex"===r.format)return`á»Ìrá»Ì aá¹£\xecá¹£e: gbá»Ìdá»Ì b\xe1 \xe0pẹẹrẹ mu ${r.pattern}`;return`Aá¹£\xecá¹£e: ${t[r.format]??r.format}`;case"not_multiple_of":return`Ná»Ìmb\xe0 aá¹£\xecá¹£e: gbá»Ìdá»Ì jáº¹Ì \xe8y\xe0 p\xedp\xedn ti ${r.divisor}`;case"unrecognized_keys":return`Bá»t\xecn\xec \xe0\xecmá»Ì: ${I(r.keys,", ")}`;case"invalid_key":return`Bá»t\xecn\xec aá¹£\xecá¹£e n\xedn\xfa ${r.origin}`;case"invalid_union":default:return"\xccb\xe1wá»l\xe9 aá¹£\xecá¹£e";case"invalid_element":return`Iye aá¹£\xecá¹£e n\xedn\xfa ${r.origin}`}})}}let iZ=Symbol("ZodOutput"),iP=Symbol("ZodInput");class iA{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];if(this._map.set(e,r),r&&"object"==typeof r&&"id"in r){if(this._idmap.has(r.id))throw Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function iT(){return new iA}let iE=iT();function iD(e,t){return new e({type:"string",...Y(t)})}function iC(e,t){return new e({type:"string",coerce:!0,...Y(t)})}function iL(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Y(t)})}function iR(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Y(t)})}function iF(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Y(t)})}function iM(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Y(t)})}function iJ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Y(t)})}function iW(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Y(t)})}function iV(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Y(t)})}function iK(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Y(t)})}function iB(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Y(t)})}function iG(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Y(t)})}function iq(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Y(t)})}function iX(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Y(t)})}function iH(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Y(t)})}function iY(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Y(t)})}function iQ(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Y(t)})}function i0(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Y(t)})}function i1(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Y(t)})}function i4(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Y(t)})}function i6(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Y(t)})}function i9(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Y(t)})}function i2(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Y(t)})}function i5(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Y(t)})}let i3={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function i7(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Y(t)})}function i8(e,t){return new e({type:"string",format:"date",check:"string_format",...Y(t)})}function ae(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Y(t)})}function at(e,t){return new e({type:"string",format:"duration",check:"string_format",...Y(t)})}function ar(e,t){return new e({type:"number",checks:[],...Y(t)})}function an(e,t){return new e({type:"number",coerce:!0,checks:[],...Y(t)})}function ai(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Y(t)})}function aa(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Y(t)})}function as(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Y(t)})}function ao(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Y(t)})}function au(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Y(t)})}function al(e,t){return new e({type:"boolean",...Y(t)})}function ad(e,t){return new e({type:"boolean",coerce:!0,...Y(t)})}function ac(e,t){return new e({type:"bigint",...Y(t)})}function af(e,t){return new e({type:"bigint",coerce:!0,...Y(t)})}function am(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Y(t)})}function ap(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Y(t)})}function av(e,t){return new e({type:"symbol",...Y(t)})}function ah(e,t){return new e({type:"undefined",...Y(t)})}function ag(e,t){return new e({type:"null",...Y(t)})}function ay(e){return new e({type:"any"})}function a_(e){return new e({type:"unknown"})}function ab(e,t){return new e({type:"never",...Y(t)})}function a$(e,t){return new e({type:"void",...Y(t)})}function ax(e,t){return new e({type:"date",...Y(t)})}function ak(e,t){return new e({type:"date",coerce:!0,...Y(t)})}function aw(e,t){return new e({type:"nan",...Y(t)})}function aI(e,t){return new t6({check:"less_than",...Y(t),value:e,inclusive:!1})}function aS(e,t){return new t6({check:"less_than",...Y(t),value:e,inclusive:!0})}function aO(e,t){return new t9({check:"greater_than",...Y(t),value:e,inclusive:!1})}function az(e,t){return new t9({check:"greater_than",...Y(t),value:e,inclusive:!0})}function aj(e){return aO(0,e)}function aN(e){return aI(0,e)}function aU(e){return aS(0,e)}function aZ(e){return az(0,e)}function aP(e,t){return new t2({check:"multiple_of",...Y(t),value:e})}function aA(e,t){return new t7({check:"max_size",...Y(t),maximum:e})}function aT(e,t){return new t8({check:"min_size",...Y(t),minimum:e})}function aE(e,t){return new re({check:"size_equals",...Y(t),size:e})}function aD(e,t){return new rt({check:"max_length",...Y(t),maximum:e})}function aC(e,t){return new rr({check:"min_length",...Y(t),minimum:e})}function aL(e,t){return new rn({check:"length_equals",...Y(t),length:e})}function aR(e,t){return new ra({check:"string_format",format:"regex",...Y(t),pattern:e})}function aF(e){return new rs({check:"string_format",format:"lowercase",...Y(e)})}
33function aM(e){return new ro({check:"string_format",format:"uppercase",...Y(e)})}function aJ(e,t){return new ru({check:"string_format",format:"includes",...Y(t),includes:e})}function aW(e,t){return new rl({check:"string_format",format:"starts_with",...Y(t),prefix:e})}function aV(e,t){return new rd({check:"string_format",format:"ends_with",...Y(t),suffix:e})}function aK(e,t,r){return new rf({check:"property",property:e,schema:t,...Y(r)})}function aB(e,t){return new rm({check:"mime_type",mime:e,...Y(t)})}function aG(e){return new rp({check:"overwrite",tx:e})}function aq(e){return aG(t=>t.normalize(e))}function aX(){return aG(e=>e.trim())}function aH(){return aG(e=>e.toLowerCase())}function aY(){return aG(e=>e.toUpperCase())}function aQ(e,t,r){return new e({type:"array",element:t,...Y(r)})}function a0(e,t,r){return new e({type:"union",options:t,...Y(r)})}function a1(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...Y(n)})}function a4(e,t,r){return new e({type:"intersection",left:t,right:r})}function a6(e,t,r,n){let i=r instanceof rg,a=i?n:r;return new e({type:"tuple",items:t,rest:i?r:null,...Y(a)})}function a9(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...Y(n)})}function a2(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...Y(n)})}function a5(e,t,r){return new e({type:"set",valueType:t,...Y(r)})}function a3(e,t,r){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(r)})}function a7(e,t,r){return new e({type:"enum",entries:t,...Y(r)})}function a8(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...Y(r)})}function se(e,t){return new e({type:"file",...Y(t)})}function st(e,t){return new e({type:"transform",transform:t})}function sr(e,t){return new e({type:"optional",innerType:t})}function sn(e,t){return new e({type:"nullable",innerType:t})}function si(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():V(r)}})}function sa(e,t,r){return new e({type:"nonoptional",innerType:t,...Y(r)})}function ss(e,t){return new e({type:"success",innerType:t})}function so(e,t,r){return new e({type:"catch",innerType:t,catchValue:"function"==typeof r?r:()=>r})}function su(e,t,r){return new e({type:"pipe",in:t,out:r})}function sl(e,t){return new e({type:"readonly",innerType:t})}function sd(e,t,r){return new e({type:"template_literal",parts:t,...Y(r)})}function sc(e,t){return new e({type:"lazy",getter:t})}function sf(e,t){return new e({type:"promise",innerType:t})}function sm(e,t,r){let n=Y(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function sp(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Y(r)})}function sv(e){let t=sh(r=>(r.addIssue=e=>{"string"==typeof e?r.issues.push(eg(e,r.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=r.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),r.issues.push(eg(e)))},e(r.value,r)));return t}function sh(e,t){let r=new t1({check:"custom",...Y(t)});return r._zod.check=e,r}function sg(e,t){let r=Y(t),n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];"sensitive"!==r.case&&(n=n.map(e=>"string"==typeof e?e.toLowerCase():e),i=i.map(e=>"string"==typeof e?e.toLowerCase():e));let a=new Set(n),s=new Set(i),o=e.Codec??nZ,u=e.Boolean??rq,l=new o({type:"pipe",in:new(e.String??ry)({type:"string",error:r.error}),out:new u({type:"boolean",error:r.error}),transform:(e,t)=>{let n=e;return"sensitive"!==r.case&&(n=n.toLowerCase()),!!a.has(n)||!s.has(n)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...s],input:t.value,inst:l,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?n[0]||"true":i[0]||"false",error:r.error});return l}function sy(e,t,r,n={}){let i=Y(n),a={...Y(n),check:"string_format",type:"string",format:t,fn:"function"==typeof r?r:e=>r.test(e),...i};return r instanceof RegExp&&(a.pattern=r),new e(a)}class s_{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??iE,this.target=e?.target??"draft-202
330-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,t={path:[],schemaPath:[]}){var r;let n=e._zod.def,i=this.seen.get(e);if(i)return i.count++,t.schemaPath.includes(e)&&(i.cycle=t.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:t.path};this.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let r={...t,schemaPath:[...t.schemaPath,e],path:t.path},i=e._zod.parent;if(i)a.ref=i,this.process(i,r),this.seen.get(i).isParent=!0;else{let t=a.schema;switch(n.type){case"string":{t.type="string";let{minimum:r,maximum:n,format:i,patterns:s,contentEncoding:o}=e._zod.bag;if("number"==typeof r&&(t.minLength=r),"number"==typeof n&&(t.maxLength=n),i&&(t.format=({guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""})[i]??i,""===t.format&&delete t.format),o&&(t.contentEncoding=o),s&&s.size>0){let e=[...s];1===e.length?t.pattern=e[0].source:e.length>1&&(a.schema.allOf=[...e.map(e=>({..."draft-7"===this.target||"draft-4"===this.target||"openapi-3.0"===this.target?{type:"string"}:{},pattern:e.source}))])}break}case"number":{let{minimum:r,maximum:n,format:i,multipleOf:a,exclusiveMaximum:s,exclusiveMinimum:o}=e._zod.bag;"string"==typeof i&&i.includes("int")?t.type="integer":t.type="number","number"==typeof o&&("draft-4"===this.target||"openapi-3.0"===this.target?(t.minimum=o,t.exclusiveMinimum=!0):t.exclusiveMinimum=o),"number"==typeof r&&(t.minimum=r,"number"==typeof o&&"draft-4"!==this.target&&(o>=r?delete t.minimum:delete t.exclusiveMinimum)),"number"==typeof s&&("draft-4"===this.target||"openapi-3.0"===this.target?(t.maximum=s,t.exclusiveMaximum=!0):t.exclusiveMaximum=s),"number"==typeof n&&(t.maximum=n,"number"==typeof s&&"draft-4"!==this.target&&(s<=n?delete t.maximum:delete t.exclusiveMaximum)),"number"==typeof a&&(t.multipleOf=a);break}case"boolean":case"success":t.type="boolean";break;case"bigint":if("throw"===this.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema");break;case"symbol":if("throw"===this.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema");break;case"null":"openapi-3.0"===this.target?(t.type="string",t.nullable=!0,t.enum=[null]):t.type="null";break;case"any":case"unknown":break;case"undefined":if("throw"===this.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema");break;case"void":if("throw"===this.unrepresentable)throw Error("Void cannot be represented in JSON Schema");break;case"never":t.not={};break;case"date":if("throw"===this.unrepresentable)throw Error("Date cannot be represented in JSON Schema");break;case"array":{let{minimum:i,maximum:a}=e._zod.bag;"number"==typeof i&&(t.minItems=i),"number"==typeof a&&(t.maxItems=a),t.type="array",t.items=this.process(n.element,{...r,path:[...r.path,"items"]});break}case"object":{t.type="object",t.properties={};let e=n.shape;for(let n in e)t.properties[n]=this.process(e[n],{...r,path:[...r.path,"properties",n]});let i=new Set([...new Set(Object.keys(e))].filter(e=>{let t=n.shape[e]._zod;return"input"===this.io?void 0===t.optin:void 0===t.optout}));i.size>0&&(t.required=Array.from(i)),n.catchall?._zod.def.type==="never"?t.additionalProperties=!1:n.catchall?n.catchall&&(t.additionalProperties=this.process(n.catchall,{...r,path:[...r.path,"additionalProperties"]})):"output"===this.io&&(t.additionalProperties=!1);break}case"union":t.anyOf=n.options.map((e,t)=>this.process(e,{...r,path:[...r.path,"anyOf",t]}));break;case"intersection":{let e=this.process(n.left,{...r,path:[...r.path,"allOf",0]}),i=this.process(n.right,{...r,path:[...r.path,"allOf",1]}),a=e=>"allOf"in e&&1===Object.keys(e).length;t.allOf=[...a(e)?e.allOf:[e],...a(i)?i.allOf:[i]];break}case"tuple":{t.type="array";let i="draft-2020-12"===this.target?"prefixItems":"items",a="draft-2020-12"===this.target||"openapi-3.0"===this.target?"items":"additionalItems",s=n.items.map((e,t)=>this.process(e,{...r,path:[...r.path,i,t]})),o=n.rest?this.process(n.rest,{...r,path:[...r.path,a,..."openapi-3.0"===this.target?[n.items.length]:[]]}):null;
33"draft-2020-12"===this.target?(t.prefixItems=s,o&&(t.items=o)):"openapi-3.0"===this.target?(t.items={anyOf:s},o&&t.items.anyOf.push(o),t.minItems=s.length,o||(t.maxItems=s.length)):(t.items=s,o&&(t.additionalItems=o));let{minimum:u,maximum:l}=e._zod.bag;"number"==typeof u&&(t.minItems=u),"number"==typeof l&&(t.maxItems=l);break}case"record":t.type="object",("draft-7"===this.target||"draft-2020-12"===this.target)&&(t.propertyNames=this.process(n.keyType,{...r,path:[...r.path,"propertyNames"]})),t.additionalProperties=this.process(n.valueType,{...r,path:[...r.path,"additionalProperties"]});break;case"map":if("throw"===this.unrepresentable)throw Error("Map cannot be represented in JSON Schema");break;case"set":if("throw"===this.unrepresentable)throw Error("Set cannot be represented in JSON Schema");break;case"enum":{let e=w(n.entries);e.every(e=>"number"==typeof e)&&(t.type="number"),e.every(e=>"string"==typeof e)&&(t.type="string"),t.enum=e;break}case"literal":{let e=[];for(let t of n.values)if(void 0===t){if("throw"===this.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof t)if("throw"===this.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else e.push(Number(t));else e.push(t);if(0===e.length);else if(1===e.length){let r=e[0];t.type=null===r?"null":typeof r,"draft-4"===this.target||"openapi-3.0"===this.target?t.enum=[r]:t.const=r}else e.every(e=>"number"==typeof e)&&(t.type="number"),e.every(e=>"string"==typeof e)&&(t.type="string"),e.every(e=>"boolean"==typeof e)&&(t.type="string"),e.every(e=>null===e)&&(t.type="null"),t.enum=e;break}case"file":{let r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:n,maximum:i,mime:a}=e._zod.bag;void 0!==n&&(r.minLength=n),void 0!==i&&(r.maxLength=i),a?1===a.length?(r.contentMediaType=a[0],Object.assign(t,r)):t.anyOf=a.map(e=>({...r,contentMediaType:e})):Object.assign(t,r);break}case"transform":if("throw"===this.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema");break;case"nullable":{let e=this.process(n.innerType,r);"openapi-3.0"===this.target?(a.ref=n.innerType,t.nullable=!0):t.anyOf=[e,{type:"null"}];break}case"nonoptional":case"promise":case"optional":this.process(n.innerType,r),a.ref=n.innerType;break;case"default":this.process(n.innerType,r),a.ref=n.innerType,t.default=JSON.parse(JSON.stringify(n.defaultValue));break;case"prefault":this.process(n.innerType,r),a.ref=n.innerType,"input"===this.io&&(t._prefault=JSON.parse(JSON.stringify(n.defaultValue)));break;case"catch":{let e;this.process(n.innerType,r),a.ref=n.innerType;try{e=n.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}t.default=e;break}case"nan":if("throw"===this.unrepresentable)throw Error("NaN cannot be represented in JSON Schema");break;case"template_literal":{let r=e._zod.pattern;if(!r)throw Error("Pattern not found in template literal");t.type="string",t.pattern=r.source;break}case"pipe":{let e="input"===this.io?"transform"===n.in._zod.def.type?n.out:n.in:n.out;this.process(e,r),a.ref=e;break}case"readonly":this.process(n.innerType,r),a.ref=n.innerType,t.readOnly=!0;break;case"lazy":{let t=e._zod.innerType;this.process(t,r),a.ref=t;break}case"custom":if("throw"===this.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema");break;case"function":if("throw"===this.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")}}}let o=this.metadataRegistry.get(e);return o&&Object.assign(a.schema,o),"input"===this.io&&function e(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":case"custom":case"success":case"catch":case"function":return!1;case"array":return e(i.element,n);case"object":for(let t in i.shape)if(e(i.shape[t],n))return!0;return!1;case"union":for(let t of i.options)if(e(t,n))return!0;return!1;case"intersection":return e(i.left,n)||e(i.right,n);case"tuple":for(let t of i.items)if(e(t,n))return!0;
33if(i.rest&&e(i.rest,n))return!0;return!1;case"record":case"map":return e(i.keyType,n)||e(i.valueType,n);case"set":return e(i.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":case"default":case"prefault":return e(i.innerType,n);case"lazy":return e(i.getter(),n);case"transform":return!0;case"pipe":return e(i.in,n)||e(i.out,n)}throw Error(`Unknown schema type: ${i.type}`)}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===this.io&&a.schema._prefault&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,this.seen.get(e).schema}emit(e,t){let r={cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0},n=this.seen.get(e);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let i=e=>{let t="draft-2020-12"===this.target?"$defs":"definitions";if(r.external){let n=r.external.registry.get(e[0])?.id,i=r.external.uri??(e=>e);if(n)return{ref:i(n)};let a=e[1].defId??e[1].schema.id??`schema${this.counter++}`;return e[1].defId=a,{defId:a,ref:`${i("__shared")}#/${t}/${a}`}}if(e[1]===n)return{ref:"#"};let i=`#/${t}/`,a=e[1].schema.id??`__schema${this.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:r,defId:n}=i(e);t.def={...t.schema},n&&(t.defId=n);let a=t.schema;for(let e in a)delete a[e];a.$ref=r};if("throw"===r.cycles)for(let e of this.seen.entries()){let t=e[1];if(t.cycle)throw Error(`Cycle detected: #/${t.cycle?.join("/")}/<root> 34 35Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let t of this.seen.entries()){let n=t[1];if(e===t[0]){a(t);continue}if(r.external){let n=r.external.registry.get(t[0])?.id;if(e!==t[0]&&n){a(t);continue}}if(this.metadataRegistry.get(t[0])?.id||n.cycle||n.count>1&&"ref"===r.reused){a(t);continue}}let s=(e,t)=>{let r=this.seen.get(e),n=r.def??r.schema,i={...n};if(null===r.ref)return;let a=r.ref;if(r.ref=null,a){s(a,t);let e=this.seen.get(a).schema;e.$ref&&("draft-7"===t.target||"draft-4"===t.target||"openapi-3.0"===t.target)?(n.allOf=n.allOf??[],n.allOf.push(e)):(Object.assign(n,e),Object.assign(n,i))}r.isParent||this.override({zodSchema:e,jsonSchema:n,path:r.path??[]})};for(let e of[...this.seen.entries()].reverse())s(e[0],{target:this.target});let o={};if("draft-2020-12"===this.target?o.$schema="https://json-schema.org/draft/2020-12/schema":"draft-7"===this.target?o.$schema="http://json-schema.org/draft-07/schema#":"draft-4"===this.target?o.$schema="http://json-schema.org/draft-04/schema#":"openapi-3.0"===this.target||console.warn(`Invalid target: ${this.target}`),r.external?.uri){let t=r.external.registry.get(e)?.id;if(!t)throw Error("Schema is missing an `id` property");o.$id=r.external.uri(t)}Object.assign(o,n.def);let u=r.external?.defs??{};for(let e of this.seen.entries()){let t=e[1];t.def&&t.defId&&(u[t.defId]=t.def)}r.external||Object.keys(u).length>0&&("draft-2020-12"===this.target?o.$defs=u:o.definitions=u);try{return JSON.parse(JSON.stringify(o))}catch(e){throw Error("Error converting schema to JSON.")}}}function sb(e,t){if(e instanceof iA){let r=new s_(t),n={};
35for(let t of e._idmap.entries()){let[e,n]=t;r.process(n)}let i={},a={registry:e,uri:t?.uri,defs:n};for(let n of e._idmap.entries()){let[e,s]=n;i[e]=r.emit(s,{...t,external:a})}return Object.keys(n).length>0&&(i.__shared={["draft-2020-12"===r.target?"$defs":"definitions"]:n}),{schemas:i}}let r=new s_(t);return r.process(e),r.emit(e,t)}let s$=m("ZodISODateTime",(e,t)=>{rU.init(e,t),sG.init(e,t)});function sx(e){return i7(s$,e)}let sk=m("ZodISODate",(e,t)=>{rZ.init(e,t),sG.init(e,t)});function sw(e){return i8(sk,e)}let sI=m("ZodISOTime",(e,t)=>{rP.init(e,t),sG.init(e,t)});function sS(e){return ae(sI,e)}let sO=m("ZodISODuration",(e,t)=>{rA.init(e,t),sG.init(e,t)});function sz(e){return at(sO,e)}let sj=(e,t)=>{eO.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>eN(e,t)},flatten:{value:t=>ej(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,S,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,S,2)}},isEmpty:{get:()=>0===e.issues.length}})},sN=m("ZodError",sj),sU=m("ZodError",sj,{Parent:Error}),sZ=eA(sU),sP=eE(sU),sA=eC(sU),sT=eR(sU),sE=eM(sU),sD=eW(sU),sC=eK(sU),sL=eG(sU),sR=eX(sU),sF=eY(sU),sM=e0(sU),sJ=e4(sU),sW=m("ZodType",(e,t)=>(rg.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(T(t,{checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]})),e.clone=(t,r)=>H(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>sZ(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>sA(e,t,r),e.parseAsync=async(t,r)=>sP(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>sT(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>sE(e,t,r),e.decode=(t,r)=>sD(e,t,r),e.encodeAsync=async(t,r)=>sC(e,t,r),e.decodeAsync=async(t,r)=>sL(e,t,r),e.safeEncode=(t,r)=>sR(e,t,r),e.safeDecode=(t,r)=>sF(e,t,r),e.safeEncodeAsync=async(t,r)=>sM(e,t,r),e.safeDecodeAsync=async(t,r)=>sJ(e,t,r),e.refine=(t,r)=>e.check(le(t,r)),e.superRefine=t=>e.check(sv(t)),e.overwrite=t=>e.check(aG(t)),e.optional=()=>uU(e),e.nullable=()=>uP(e),e.nullish=()=>uU(uP(e)),e.nonoptional=t=>uR(e,t),e.array=()=>ue(e),e.or=t=>uo([e,t]),e.and=t=>uc(e,t),e.transform=t=>uG(e,uj(t)),e.default=t=>uE(e,t),e.prefault=t=>uC(e,t),e.catch=t=>uW(e,t),e.pipe=t=>uG(e,t),e.readonly=()=>uY(e),e.describe=t=>{let r=e.clone();return iE.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>iE.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return iE.get(e);let r=e.clone();return iE.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),sV=m("_ZodString",(e,t)=>{ry.init(e,t),sW.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(aR(...t)),e.includes=(...t)=>e.check(aJ(...t)),e.startsWith=(...t)=>e.check(aW(...t)),e.endsWith=(...t)=>e.check(aV(...t)),e.min=(...t)=>e.check(aC(...t)),e.max=(...t)=>e.check(aD(...t)),e.length=(...t)=>e.check(aL(...t)),e.nonempty=(...t)=>e.check(aC(1,...t)),e.lowercase=t=>e.check(aF(t)),e.uppercase=t=>e.check(aM(t)),e.trim=()=>e.check(aX()),e.normalize=(...t)=>e.check(aq(...t)),e.toLowerCase=()=>e.check(aH()),e.toUpperCase=()=>e.check(aY())}),sK=m("ZodString",(e,t)=>{ry.init(e,t),sV.init(e,t),e.email=t=>e.check(iL(sq,t)),e.url=t=>e.check(iV(s9,t)),e.jwt=t=>e.check(i5(oI,t)),e.emoji=t=>e.check(iK(s3,t)),e.guid=t=>e.check(iR(sH,t)),e.uuid=t=>e.check(iF(sQ,t)),e.uuidv4=t=>e.check(iM(sQ,t)),e.uuidv6=t=>e.check(iJ(sQ,t)),e.uuidv7=t=>e.check(iW(sQ,t)),e.nanoid=t=>e.check(iB(s8,t)),e.guid=t=>e.check(iR(sH,t)),e.cuid=t=>e.check(iG(ot,t)),e.cuid2=t=>e.check(iq(on,t)),e.ulid=t=>e.check(iX(oa,t)),e.base64=t=>e.check(i6(o_,t)),e.base64url=t=>e.check(i9(o$,t)),e.xid=t=>e.check(iH(oo,t)),e.ksuid=t=>e.check(iY(ol,t)),e.ipv4=t=>e.check(iQ(oc,t)),e.ipv6=t=>e.check(i0(om,t)),e.cidrv4=t=>e.check(i1(ov,t)),e.cidrv6=t=>e.check(i4(og,t)),e.e164=t=>e.check(i2(ok,t)),e.datetime=t=>e.check(sx(t)),e.date=t=>e.check(sw(t)),e.time=t=>e.check(sS(t)),e.duration=t=>e.check(sz(t))});function sB(e){return iD(sK,e)}let sG=m("ZodStringFormat",(e,t)=>{r_.init(e,t),sV.init(e,t)}),sq=m("ZodEmail",(e,t)=>{rx.init(e,t),sG.init(e,t)});function sX(e){return iL(sq,e)}let sH=m("ZodGUID",(e,t)=>{rb.init(e,t),sG.init(e,t)});function sY(e){return iR(sH,e)}let sQ=m("ZodUUID",(e,t)=>{r$.init(e,t),sG.init(e,t)});function s0(e){return iF(sQ,e)}function s1(e){return iM(sQ,e)}function s4(e){return iJ(sQ,e)}function s6(e){return iW(sQ,e)}let s9=m("ZodURL",(e,t)=>{rk.init(e,t),sG.init(e,t)});function s2(e){return iV(s9,e)}function s5(e){return iV(s9,{protocol:/^https?$/,hostname:t$,...Y(e)})}let s3=m("ZodEmoji",(e,t)=>{rw.init(e,t),sG.init(e,t)});function s7(e){return iK(s3,e)}let s8=m("ZodNanoID",(e,t)=>{rI.init(e,t),sG.init(e,t)});function oe(e){return iB(s8,e)}let ot=m("ZodCUID",(e,t)=>{rS.init(e,t),sG.init(e,t)});function or(e){return iG(ot,e)}let on=m("ZodCUID2",(e,t)=>{rO.init(e,t),sG.init(e,t)});function oi(e){return iq(on,e)}
35let oa=m("ZodULID",(e,t)=>{rz.init(e,t),sG.init(e,t)});function os(e){return iX(oa,e)}let oo=m("ZodXID",(e,t)=>{rj.init(e,t),sG.init(e,t)});function ou(e){return iH(oo,e)}let ol=m("ZodKSUID",(e,t)=>{rN.init(e,t),sG.init(e,t)});function od(e){return iY(ol,e)}let oc=m("ZodIPv4",(e,t)=>{rT.init(e,t),sG.init(e,t)});function of(e){return iQ(oc,e)}let om=m("ZodIPv6",(e,t)=>{rE.init(e,t),sG.init(e,t)});function op(e){return i0(om,e)}let ov=m("ZodCIDRv4",(e,t)=>{rD.init(e,t),sG.init(e,t)});function oh(e){return i1(ov,e)}let og=m("ZodCIDRv6",(e,t)=>{rC.init(e,t),sG.init(e,t)});function oy(e){return i4(og,e)}let o_=m("ZodBase64",(e,t)=>{rR.init(e,t),sG.init(e,t)});function ob(e){return i6(o_,e)}let o$=m("ZodBase64URL",(e,t)=>{rM.init(e,t),sG.init(e,t)});function ox(e){return i9(o$,e)}let ok=m("ZodE164",(e,t)=>{rJ.init(e,t),sG.init(e,t)});function ow(e){return i2(ok,e)}let oI=m("ZodJWT",(e,t)=>{rV.init(e,t),sG.init(e,t)});function oS(e){return i5(oI,e)}let oO=m("ZodCustomStringFormat",(e,t)=>{rK.init(e,t),sG.init(e,t)});function oz(e,t,r={}){return sy(oO,e,t,r)}function oj(e){return sy(oO,"hostname",tb,e)}function oN(e){return sy(oO,"hex",tD,e)}function oU(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,i=a[n];if(!i)throw Error(`Unrecognized hash format: ${n}`);return sy(oO,n,i,t)}let oZ=m("ZodNumber",(e,t)=>{rB.init(e,t),sW.init(e,t),e.gt=(t,r)=>e.check(aO(t,r)),e.gte=(t,r)=>e.check(az(t,r)),e.min=(t,r)=>e.check(az(t,r)),e.lt=(t,r)=>e.check(aI(t,r)),e.lte=(t,r)=>e.check(aS(t,r)),e.max=(t,r)=>e.check(aS(t,r)),e.int=t=>e.check(oT(t)),e.safe=t=>e.check(oT(t)),e.positive=t=>e.check(aO(0,t)),e.nonnegative=t=>e.check(az(0,t)),e.negative=t=>e.check(aI(0,t)),e.nonpositive=t=>e.check(aS(0,t)),e.multipleOf=(t,r)=>e.check(aP(t,r)),e.step=(t,r)=>e.check(aP(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function oP(e){return ar(oZ,e)}let oA=m("ZodNumberFormat",(e,t)=>{rG.init(e,t),oZ.init(e,t)});function oT(e){return ai(oA,e)}function oE(e){return aa(oA,e)}function oD(e){return as(oA,e)}function oC(e){return ao(oA,e)}function oL(e){return au(oA,e)}let oR=m("ZodBoolean",(e,t)=>{rq.init(e,t),sW.init(e,t)});function oF(e){return al(oR,e)}let oM=m("ZodBigInt",(e,t)=>{rX.init(e,t),sW.init(e,t),e.gte=(t,r)=>e.check(az(t,r)),e.min=(t,r)=>e.check(az(t,r)),e.gt=(t,r)=>e.check(aO(t,r)),e.gte=(t,r)=>e.check(az(t,r)),e.min=(t,r)=>e.check(az(t,r)),e.lt=(t,r)=>e.check(aI(t,r)),e.lte=(t,r)=>e.check(aS(t,r)),e.max=(t,r)=>e.check(aS(t,r)),e.positive=t=>e.check(aO(BigInt(0),t)),e.negative=t=>e.check(aI(BigInt(0),t)),e.nonpositive=t=>e.check(aS(BigInt(0),t)),e.nonnegative=t=>e.check(az(BigInt(0),t)),e.multipleOf=(t,r)=>e.check(aP(t,r));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function oJ(e){return ac(oM,e)}let oW=m("ZodBigIntFormat",(e,t)=>{rH.init(e,t),oM.init(e,t)});function oV(e){return am(oW,e)}function oK(e){return ap(oW,e)}let oB=m("ZodSymbol",(e,t)=>{rY.init(e,t),sW.init(e,t)});function oG(e){return av(oB,e)}let oq=m("ZodUndefined",(e,t)=>{rQ.init(e,t),sW.init(e,t)});function oX(e){return ah(oq,e)}let oH=m("ZodNull",(e,t)=>{r0.init(e,t),sW.init(e,t)});function oY(e){return ag(oH,e)}let oQ=m("ZodAny",(e,t)=>{r1.init(e,t),sW.init(e,t)});function o0(){return ay(oQ)}let o1=m("ZodUnknown",(e,t)=>{r4.init(e,t),sW.init(e,t)});function o4(){return a_(o1)}let o6=m("ZodNever",(e,t)=>{r6.init(e,t),sW.init(e,t)});function o9(e){return ab(o6,e)}let o2=m("ZodVoid",(e,t)=>{r9.init(e,t),sW.init(e,t)});function o5(e){return a$(o2,e)}let o3=m("ZodDate",(e,t)=>{r2.init(e,t),sW.init(e,t),e.min=(t,r)=>e.check(az(t,r)),e.max=(t,r)=>e.check(aS(t,r));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function o7(e){return ax(o3,e)}let o8=m("ZodArray",(e,t)=>{r3.init(e,t),sW.init(e,t),e.element=t.element,e.min=(t,r)=>e.check(aC(t,r)),e.nonempty=t=>e.check(aC(1,t)),e.max=(t,r)=>e.check(aD(t,r)),e.length=(t,r)=>e.check(aL(t,r)),e.unwrap=()=>e.element});function ue(e,t){return aQ(o8,e,t)}function ut(e){return ux(Object.keys(e._zod.def.shape))}let ur=m("ZodObject",(e,t)=>{nr.init(e,t),sW.init(e,t),Z(e,"shape",()=>t.shape),e.keyof=()=>ux(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:o4()}),e.loose=()=>e.clone({...e._zod.def,catchall:o4()}),e.strict=()=>e.clone({...e._zod.def,catchall:o9()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>es(e,t),e.safeExtend=t=>eo(e,t),e.merge=t=>eu(e,t),e.pick=t=>ei(e,t),e.omit=t=>ea(e,t),e.partial=(...t)=>el(uN,e,t[0]),e.required=(...t)=>ed(uL,e,t[0])});function un(e,t){return new ur({type:"object",shape:e??{},...Y(t)})}function ui(e,t){return new ur({type:"object",shape:e,catchall:o9(),...Y(t)})}function ua(e,t){return new ur({type:"object",shape:e,catchall:o4(),...Y(t)})}let us=m("ZodUnion",(e,t)=>{ni.init(e,t),sW.init(e,t),e.options=t.options});function uo(e,t){return new us({type:"union",options:e,...Y(t)})}let uu=m("ZodDiscriminatedUnion",(e,t)=>{us.init(e,t),na.init(e,t)});function ul(e,t,r){return new uu({type:"union",options:t,discriminator:e,...Y(r)})}let ud=m("ZodIntersection",(e,t)=>{ns.init(e,t),sW.init(e,t)});function uc(e,t){return new ud({type:"intersection",left:e,right:t})}let uf=m("ZodTuple",(e,t)=>{nu.init(e,t),sW.init(e,t),e.rest=t=>e.clone({...e._zod.def,rest:t})});function um(e,t,r){let n=t instanceof rg,i=n?r:t;return new uf({type:"tuple",items:e,rest:n?t:null,...Y(i)})}let up=m("ZodRecord",(e,t)=>{nd.init(e,t),sW.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function uv(e,t,r){return new up({type:"record",keyType:e,valueType:t,...Y(r)})}function uh(e,t,r){let n=H(e);return n._zod.values=void 0,new up({type:"record",keyType:n,valueType:t,...Y(r)})}let ug=m("ZodMap",(e,t)=>{nc.init(e,t),sW.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function uy(e,t,r){return new ug({type:"map",keyType:e,valueType:t,...Y(r)})}let u_=m("ZodSet",(e,t)=>{nm.init(e,t),sW.init(e,t),e.min=(...t)=>e.check(aT(...t)),e.nonempty=t=>e.check(aT(1,t)),e.max=(...t)=>e.check(aA(...t)),e.size=(...t)=>e.check(aE(...t))});function ub(e,t){return new u_({type:"set",valueType:e,...Y(t)})}let u$=m("ZodEnum",(e,t)=>{nv.init(e,t),sW.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);
35return new u$({...t,checks:[],...Y(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new u$({...t,checks:[],...Y(n),entries:i})}});function ux(e,t){return new u$({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Y(t)})}function uk(e,t){return new u$({type:"enum",entries:e,...Y(t)})}let uw=m("ZodLiteral",(e,t)=>{nh.init(e,t),sW.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function uI(e,t){return new uw({type:"literal",values:Array.isArray(e)?e:[e],...Y(t)})}let uS=m("ZodFile",(e,t)=>{ng.init(e,t),sW.init(e,t),e.min=(t,r)=>e.check(aT(t,r)),e.max=(t,r)=>e.check(aA(t,r)),e.mime=(t,r)=>e.check(aB(Array.isArray(t)?t:[t],r))});function uO(e){return se(uS,e)}let uz=m("ZodTransform",(e,t)=>{ny.init(e,t),sW.init(e,t),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new h(e.constructor.name);r.addIssue=n=>{"string"==typeof n?r.issues.push(eg(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),r.issues.push(eg(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r)):(r.value=i,r)}});function uj(e){return new uz({type:"transform",transform:e})}let uN=m("ZodOptional",(e,t)=>{nb.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uU(e){return new uN({type:"optional",innerType:e})}let uZ=m("ZodNullable",(e,t)=>{n$.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uP(e){return new uZ({type:"nullable",innerType:e})}function uA(e){return uU(uP(e))}let uT=m("ZodDefault",(e,t)=>{nx.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function uE(e,t){return new uT({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():V(t)}})}let uD=m("ZodPrefault",(e,t)=>{nw.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uC(e,t){return new uD({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():V(t)}})}let uL=m("ZodNonOptional",(e,t)=>{nI.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uR(e,t){return new uL({type:"nonoptional",innerType:e,...Y(t)})}let uF=m("ZodSuccess",(e,t)=>{nO.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uM(e){return new uF({type:"success",innerType:e})}let uJ=m("ZodCatch",(e,t)=>{nz.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function uW(e,t){return new uJ({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let uV=m("ZodNaN",(e,t)=>{nj.init(e,t),sW.init(e,t)});function uK(e){return aw(uV,e)}let uB=m("ZodPipe",(e,t)=>{nN.init(e,t),sW.init(e,t),e.in=t.in,e.out=t.out});function uG(e,t){return new uB({type:"pipe",in:e,out:t})}let uq=m("ZodCodec",(e,t)=>{uB.init(e,t),nZ.init(e,t)});function uX(e,t,r){return new uq({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}let uH=m("ZodReadonly",(e,t)=>{nT.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.innerType});function uY(e){return new uH({type:"readonly",innerType:e})}let uQ=m("ZodTemplateLiteral",(e,t)=>{nD.init(e,t),sW.init(e,t)});function u0(e,t){return new uQ({type:"template_literal",parts:e,...Y(t)})}let u1=m("ZodLazy",(e,t)=>{nR.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.getter()});function u4(e){return new u1({type:"lazy",getter:e})}let u6=m("ZodPromise",(e,t)=>{nL.init(e,t),sW.init(e,t),e.unwrap=()=>e._zod.def.innerType});function u9(e){return new u6({type:"promise",innerType:e})}let u2=m("ZodFunction",(e,t)=>{nC.init(e,t),sW.init(e,t)});function u5(e){return new u2({type:"function",input:Array.isArray(e?.input)?um(e?.input):e?.input??ue(o4()),output:e?.output??o4()})}let u3=m("ZodCustom",(e,t)=>{nF.init(e,t),sW.init(e,t)});function u7(e){let t=new t1({check:"custom"});return t._zod.check=e,t}function u8(e,t){return sm(u3,e??(()=>!0),t)}function le(e,t={}){return sp(u3,e,t)}function lt(e){return sv(e)}function lr(e,t={error:`Input not instance of ${e.name}`}){let r=new u3({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...Y(t)});return r._zod.bag.Class=e,r}let ln=(...e)=>sg({Codec:uq,Boolean:oR,String:sK},...e);function li(e){let t=u4(()=>uo([sB(e),oP(),oF(),oY(),ue(t),uv(sB(),t)]));return t}function la(e,t){return uG(uj(e),t)}let ls={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",invali
35d_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function lo(e){y({customError:e})}function lu(){return y().customError}function ll(e){return iC(sK,e)}function ld(e){return an(oZ,e)}function lc(e){return ad(oR,e)}function lf(e){return af(oM,e)}function lm(e){return ak(o3,e)}n||(n={}),y(nH())}}]); 36//# sourceMappingURL=6032-c3287f8160f354d5.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.