@abyssinia-labs/sokie 0.5.0 → 0.5.1-staging.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sokie.mjs +11 -5
- package/package.json +2 -2
package/dist/sokie.mjs
CHANGED
|
@@ -24033,9 +24033,9 @@ var require___dev__ = __commonJS((exports, module) => {
|
|
|
24033
24033
|
|
|
24034
24034
|
// package.json
|
|
24035
24035
|
var name = "@abyssinia-labs/sokie";
|
|
24036
|
-
var version = "0.5.
|
|
24036
|
+
var version = "0.5.1-staging.131";
|
|
24037
24037
|
var sokie = {
|
|
24038
|
-
site: "https://sokie.sh"
|
|
24038
|
+
site: "https://staging.sokie.sh"
|
|
24039
24039
|
};
|
|
24040
24040
|
|
|
24041
24041
|
// src/command.ts
|
|
@@ -46294,6 +46294,7 @@ function buildGraphQLTool(schema, file2, config2) {
|
|
|
46294
46294
|
const warnings = [];
|
|
46295
46295
|
const selection = selectionFor(definition.type, schema, warnings, field, 0, []);
|
|
46296
46296
|
const name2 = `${type === "query" ? "Query" : "Mutation"}${field.charAt(0).toUpperCase()}${field.slice(1)}`;
|
|
46297
|
+
const tags = file2.tags.length > 0 ? file2.tags : [type, field];
|
|
46297
46298
|
const tool = {
|
|
46298
46299
|
name: file2.name,
|
|
46299
46300
|
...file2.title ? { title: file2.title } : {},
|
|
@@ -46320,7 +46321,9 @@ function buildGraphQLTool(schema, file2, config2) {
|
|
|
46320
46321
|
},
|
|
46321
46322
|
sendsCredential: true,
|
|
46322
46323
|
...file2.project ? { project: file2.project } : {},
|
|
46323
|
-
tags
|
|
46324
|
+
tags,
|
|
46325
|
+
effect: file2.enforcedRisk,
|
|
46326
|
+
area: tags[0] ?? ""
|
|
46324
46327
|
};
|
|
46325
46328
|
return { tool, warnings, errors: [] };
|
|
46326
46329
|
}
|
|
@@ -46758,6 +46761,7 @@ function buildOpenApiTool(doc2, file2, config2, resolvers) {
|
|
|
46758
46761
|
const hints = { ...specHints(op), ...file2.hints };
|
|
46759
46762
|
const specTags = Array.isArray(op.tags) ? op.tags.filter((tag) => typeof tag === "string") : [];
|
|
46760
46763
|
const title = file2.title ?? specTitle(op) ?? text3(op.summary) ?? undefined;
|
|
46764
|
+
const tags = file2.tags.length > 0 ? file2.tags : specTags.slice(0, 8);
|
|
46761
46765
|
const tool = {
|
|
46762
46766
|
name: file2.name,
|
|
46763
46767
|
...title ? { title } : {},
|
|
@@ -46779,7 +46783,9 @@ function buildOpenApiTool(doc2, file2, config2, resolvers) {
|
|
|
46779
46783
|
},
|
|
46780
46784
|
sendsCredential: sendsCredential(doc2, op),
|
|
46781
46785
|
...file2.project ? { project: file2.project } : {},
|
|
46782
|
-
tags
|
|
46786
|
+
tags,
|
|
46787
|
+
effect: file2.enforcedRisk,
|
|
46788
|
+
area: tags[0] ?? ""
|
|
46783
46789
|
};
|
|
46784
46790
|
return { tool, warnings: input2.warnings, errors: input2.errors };
|
|
46785
46791
|
}
|
|
@@ -65624,7 +65630,7 @@ import { createServer as createServer3 } from "node:net";
|
|
|
65624
65630
|
import { convertV4MiniflareOptions, Log, LogLevel, Miniflare } from "miniflare";
|
|
65625
65631
|
|
|
65626
65632
|
// ../runtime/asset/runtime-asset.ts
|
|
65627
|
-
var RUNTIME_MODULE = 'var JR=Object.defineProperty;var Xt=(e,t)=>{for(var n in t)JR(e,n,{get:t[n],enumerable:!0})};var w_=e=>e.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),Td=e=>[e.name,e.title,e.description,e.tags.join(" ")].join(" "),k_=new WeakMap;function BR(e){let t=k_.get(e);if(t)return t;let n=e.map(a=>w_(Td(a))),o=new Map;for(let a of n)for(let s of new Set(a))o.set(s,(o.get(s)??0)+1);let r=n.reduce((a,s)=>a+s.length,0),i={docs:n,frequency:o,averageLength:n.length>0?r/n.length:0};return k_.set(e,i),i}function HR(e,t,n){let o=e.docs[t]??[];if(o.length===0)return 0;let r=new Map;for(let s of o)r.set(s,(r.get(s)??0)+1);let i=e.averageLength||1,a=0;for(let s of n){let c=r.get(s);if(!c)continue;let l=e.frequency.get(s)??0,d=Math.log(1+(e.docs.length-l+.5)/(l+.5));a+=d*(c*(1.5+1)/(c+1.5*(1-.75+.75*o.length/i)))}return a}function YR(e,t){let n=e.name.toLowerCase(),o=e.title.toLowerCase();return n===t||o===t?2:n.startsWith(t)||o.startsWith(t)?1:0}function GR(e){let t=/^\\/(.+)\\/([a-z]*)$/.exec(e);if(!t?.[1])return null;try{return new RegExp(t[1],(t[2]??"").replace("g",""))}catch{return null}}var ms=(e,t)=>({name:e.name,title:e.title,description:e.description,score:t});function xd(e,t,n=10){let o=Math.max(1,Math.min(Math.floor(n)||10,100)),r=t.trim();if(!r)return e.slice(0,o).map(d=>ms(d,0));let i=GR(r);if(i)return e.filter(d=>i.test(Td(d))).slice(0,o).map(d=>ms(d,1));let a=BR(e),s=w_(r),c=r.toLowerCase(),l=e.map((d,m)=>({entry:d,match:YR(d,c),score:HR(a,m,s)})).filter(d=>d.match>0||d.score>0).sort((d,m)=>m.match-d.match||m.score-d.score).slice(0,o).map(d=>ms(d.entry,Number(d.score.toFixed(4))));return l.length>0?l:e.filter(d=>Td(d).toLowerCase().includes(c)).slice(0,o).map(d=>ms(d,1))}var WR=new Set([408,429,500,502,503,504]),gr=class extends Error{status;retryable;retryAfterSeconds;constructor(t,n,o=null){super(t),this.name="UpstreamHttpError",this.status=n,this.retryable=WR.has(n),this.retryAfterSeconds=o}},vr=class extends Error{issues;constructor(t,n){super(`Invalid input for ${t}: ${n.join("; ")}`),this.name="ToolInputError",this.issues=n}};function ps(e){return e instanceof gr?{error:e.message,errorClass:"UPSTREAM",httpStatus:e.status,retryable:e.retryable,...e.retryAfterSeconds!==null?{retryAfterSeconds:e.retryAfterSeconds}:{}}:e instanceof vr?{error:e.message,errorClass:"BINDING_MISUSE",retryable:!1}:{error:e instanceof Error?e.message:"Tool execution failed.",errorClass:"INTERNAL",retryable:!1}}function I_(e){let t=ps(e);return{content:[{type:"text",text:t.error}],isError:!0,_meta:{...t}}}function T_(e){if(typeof e!="object"||e===null)return!1;let{code:t,data:n}=e;return t===-32042&&Array.isArray(n?.elicitations)}var hi="0.1.9";var XR=Object.create,fs=Object.defineProperty,QR=Object.getOwnPropertyDescriptor,ek=Object.getOwnPropertyNames,tk=Object.getPrototypeOf,rk=Object.prototype.hasOwnProperty,x_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),E_=(e,t)=>{let n={};for(var o in e)fs(n,o,{get:e[o],enumerable:!0});return t&&fs(n,Symbol.toStringTag,{value:"Module"}),n},nk=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=ek(t),i=0,a=r.length,s;i<a;i++)s=r[i],!rk.call(e,s)&&s!==n&&fs(e,s,{get:(c=>t[c]).bind(null,s),enumerable:!(o=QR(t,s))||o.enumerable});return e},P_=(e,t,n)=>(n=e!=null?XR(tk(e)):{},nk(t||!e||!e.__esModule?fs(n,"default",{value:e,enumerable:!0}):n,e));var ok=new Set(["https://json-schema.org/draft/2020-12/schema","http://json-schema.org/draft/2020-12/schema"]),O_=new Set(["https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft/2019-09/schema"]),ik=new Set(["https://json-schema.org/draft-07/schema","http://json-schema.org/draft-07/schema"]),ak=new Set(["https://json-schema.org/draft-06/schema","http://json-schema.org/draft-06/schema"]);function C_(e){return typeof e=="string"&&O_.has(e.replace(/#$/,""))}function N_(e,t){if(!("$schema"in e)||typeof e.$schema!="string")return"2020-12";let n=e.$schema.replace(/#$/,"");if(ok.has(n))return"2020-12";if(O_.has(n))return"2019-09";if(ik.has(n)||ak.has(n))return"draft-7";throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${e.$schema.slice(0,200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${t}`)}var We={};Xt(We,{$brand:()=>Fd,$input:()=>ff,$output:()=>pf,NEVER:()=>Ri,TimePrecision:()=>Rf,ZodAny:()=>ag,ZodArray:()=>ug,ZodBase64:()=>al,ZodBase64URL:()=>sl,ZodBigInt:()=>So,ZodBigIntFormat:()=>ul,ZodBoolean:()=>yo,ZodCIDRv4:()=>ol,ZodCIDRv6:()=>il,ZodCUID:()=>Wc,ZodCUID2:()=>Xc,ZodCatch:()=>xg,ZodCodec:()=>ta,ZodCompileAsyncError:()=>Tt,ZodCompileUnsupportedError:()=>de,ZodCreditCard:()=>rg,ZodCustom:()=>ra,ZodCustomStringFormat:()=>vo,ZodDate:()=>Gi,ZodDefault:()=>zg,ZodDiscriminatedUnion:()=>mg,ZodE164:()=>cl,ZodEmail:()=>Jc,ZodEmoji:()=>Yc,ZodEnum:()=>fo,ZodError:()=>px,ZodExactOptional:()=>fl,ZodFile:()=>yg,ZodFirstPartyTypeKind:()=>qg,ZodFunction:()=>Mg,ZodGUID:()=>Hc,ZodIPv4:()=>rl,ZodIPv6:()=>nl,ZodISODate:()=>Tr,ZodISODateTime:()=>Ir,ZodISODuration:()=>Er,ZodISOTime:()=>xr,ZodIntersection:()=>pg,ZodIssueCode:()=>Vg,ZodJWT:()=>ll,ZodKSUID:()=>tl,ZodLazy:()=>Ag,ZodLiteral:()=>_g,ZodMAC:()=>tg,ZodMap:()=>gg,ZodNaN:()=>Pg,ZodNanoID:()=>Gc,ZodNever:()=>cg,ZodNonOptional:()=>hl,ZodNull:()=>ig,ZodNullable:()=>$g,ZodNumber:()=>_o,ZodNumberFormat:()=>vn,ZodObject:()=>Wi,ZodOptional:()=>Qi,ZodPipe:()=>ea,ZodPrefault:()=>kg,ZodPreprocess:()=>Og,ZodPromise:()=>Ug,ZodReadonly:()=>Cg,ZodRealError:()=>at,ZodRecord:()=>po,ZodSet:()=>vg,ZodString:()=>ho,ZodStringFormat:()=>he,ZodSuccess:()=>Tg,ZodSymbol:()=>ng,ZodTemplateLiteral:()=>jg,ZodTransform:()=>Sg,ZodTuple:()=>fg,ZodType:()=>le,ZodULID:()=>Qc,ZodURL:()=>Yi,ZodUUID:()=>Ft,ZodUndefined:()=>og,ZodUnion:()=>Xi,ZodUnknown:()=>sg,ZodVoid:()=>lg,ZodXID:()=>el,ZodXor:()=>dg,_ZodString:()=>Kc,_default:()=>Rg,_function:()=>qb,any:()=>dl,array:()=>b,base64:()=>ib,base64url:()=>ab,bigint:()=>_b,boolean:()=>M,catch:()=>Eg,check:()=>Vb,cidrv4:()=>nb,cidrv6:()=>ob,clone:()=>me,codec:()=>Ub,coerce:()=>oa,compile:()=>_f,config:()=>$e,core:()=>er,creditCard:()=>cb,cuid:()=>YS,cuid2:()=>GS,custom:()=>Zb,date:()=>Rb,decode:()=>Hh,decodeAsync:()=>Gh,deepPartial:()=>e$,describe:()=>Fb,discriminatedUnion:()=>Pr,e164:()=>sb,email:()=>Bc,emoji:()=>BS,encode:()=>Bh,encodeAsync:()=>Yh,endsWith:()=>no,enum:()=>te,exactOptional:()=>bg,file:()=>Cb,flattenError:()=>wi,float32:()=>fb,float64:()=>hb,formatError:()=>Ii,fromJSONSchema:()=>Xb,function:()=>qb,getDiscriminatedOption:()=>Mp,getErrorMap:()=>vx,globalRegistry:()=>je,gt:()=>Vt,gte:()=>ht,guid:()=>qS,hash:()=>pb,hex:()=>mb,hostname:()=>db,httpUrl:()=>JS,includes:()=>to,input:()=>r$,instanceof:()=>Jb,int:()=>Zc,int32:()=>gb,int64:()=>yb,intersection:()=>Et,invertCodec:()=>Mb,ipv4:()=>eb,ipv6:()=>rb,iso:()=>$t,json:()=>Hb,jwt:()=>lb,keyof:()=>kb,ksuid:()=>QS,lazy:()=>Or,length:()=>fn,literal:()=>z,locales:()=>Di,looseObject:()=>Y,looseRecord:()=>xb,lowercase:()=>Qn,lt:()=>qt,lte:()=>ft,mac:()=>tb,map:()=>Eb,maxLength:()=>pn,maxSize:()=>zr,memoizer:()=>Ui,meta:()=>Kb,mime:()=>oo,minLength:()=>Qt,minSize:()=>Zt,multipleOf:()=>$r,nan:()=>Ab,nanoid:()=>HS,nativeEnum:()=>Ob,negative:()=>Oc,never:()=>ml,nonnegative:()=>Nc,nonoptional:()=>Ig,nonpositive:()=>Cc,normalize:()=>io,null:()=>Kt,nullable:()=>Hi,nullish:()=>Nb,number:()=>x,object:()=>g,optional:()=>F,output:()=>n$,overwrite:()=>xt,parse:()=>Fh,parseAsync:()=>Kh,partialRecord:()=>Tb,pipe:()=>Fc,positive:()=>Pc,prefault:()=>wg,preprocess:()=>tr,prettifyError:()=>Yd,promise:()=>Lb,properties:()=>Ac,property:()=>jc,readonly:()=>Ng,record:()=>j,refine:()=>Dg,regex:()=>Xn,regexes:()=>He,registry:()=>cc,safeDecode:()=>Xh,safeDecodeAsync:()=>eg,safeEncode:()=>Wh,safeEncodeAsync:()=>Qh,safeParse:()=>Bi,safeParseAsync:()=>Jh,set:()=>Pb,setErrorMap:()=>gx,size:()=>mn,slugify:()=>lo,startsWith:()=>ro,strictObject:()=>wb,string:()=>u,stringFormat:()=>ub,stringbool:()=>Bb,success:()=>jb,superRefine:()=>Lg,symbol:()=>bb,templateLiteral:()=>Db,toJSONSchema:()=>hn,toLowerCase:()=>so,toUpperCase:()=>co,toZod:()=>gi,transform:()=>pl,treeifyError:()=>Hd,trim:()=>ao,tuple:()=>hg,uint32:()=>vb,uint64:()=>Sb,ulid:()=>WS,undefined:()=>$b,union:()=>A,unknown:()=>B,uppercase:()=>eo,url:()=>go,util:()=>I,uuid:()=>VS,uuidv4:()=>ZS,uuidv6:()=>FS,uuidv7:()=>KS,validate:()=>Xd,validateAsync:()=>Qd,void:()=>zb,xid:()=>XS,xor:()=>Ib});var er={};Xt(er,{$ZodAny:()=>Ep,$ZodArray:()=>jp,$ZodAsyncError:()=>ot,$ZodBase64:()=>yp,$ZodBase64URL:()=>Sp,$ZodBigInt:()=>Gs,$ZodBigIntFormat:()=>wp,$ZodBoolean:()=>Ci,$ZodCIDRv4:()=>vp,$ZodCIDRv6:()=>_p,$ZodCUID:()=>ip,$ZodCUID2:()=>ap,$ZodCatch:()=>ef,$ZodCheck:()=>ge,$ZodCheckBigIntFormat:()=>Nm,$ZodCheckEndsWith:()=>Jm,$ZodCheckGreaterThan:()=>Ns,$ZodCheckIncludes:()=>Fm,$ZodCheckLengthEquals:()=>Lm,$ZodCheckLessThan:()=>Cs,$ZodCheckLowerCase:()=>Vm,$ZodCheckMaxLength:()=>Mm,$ZodCheckMaxSize:()=>jm,$ZodCheckMimeType:()=>Bm,$ZodCheckMinLength:()=>Dm,$ZodCheckMinSize:()=>Am,$ZodCheckMultipleOf:()=>Om,$ZodCheckNumberFormat:()=>Cm,$ZodCheckOverwrite:()=>Hm,$ZodCheckProperty:()=>js,$ZodCheckRegex:()=>qm,$ZodCheckSizeEquals:()=>Um,$ZodCheckStartsWith:()=>Km,$ZodCheckStringFormat:()=>Yn,$ZodCheckUpperCase:()=>Zm,$ZodCodec:()=>ji,$ZodCreditCard:()=>$p,$ZodCustom:()=>cf,$ZodCustomStringFormat:()=>Rp,$ZodCyclicError:()=>rc,$ZodDate:()=>Np,$ZodDefault:()=>Gp,$ZodDiscriminatedUnion:()=>Dp,$ZodE164:()=>bp,$ZodEmail:()=>Qm,$ZodEmoji:()=>np,$ZodEncodeError:()=>Sr,$ZodEnum:()=>Fp,$ZodError:()=>ki,$ZodExactOptional:()=>Hp,$ZodFile:()=>Jp,$ZodFunction:()=>af,$ZodGUID:()=>Wm,$ZodIPv4:()=>fp,$ZodIPv6:()=>hp,$ZodISODate:()=>dp,$ZodISODateTime:()=>up,$ZodISODuration:()=>pp,$ZodISOTime:()=>mp,$ZodIntersection:()=>Lp,$ZodJWT:()=>zp,$ZodKSUID:()=>lp,$ZodLazy:()=>Ai,$ZodLiteral:()=>Kp,$ZodMAC:()=>gp,$ZodMap:()=>Vp,$ZodNaN:()=>tf,$ZodNanoID:()=>op,$ZodNever:()=>Op,$ZodNonOptional:()=>Xp,$ZodNull:()=>xp,$ZodNullable:()=>Yp,$ZodNumber:()=>Ys,$ZodNumberFormat:()=>kp,$ZodObject:()=>dy,$ZodObjectJIT:()=>Ap,$ZodOptional:()=>Xs,$ZodPipe:()=>Qs,$ZodPrefault:()=>Wp,$ZodPreprocess:()=>rf,$ZodPromise:()=>sf,$ZodReadonly:()=>nf,$ZodRealError:()=>it,$ZodRecord:()=>qp,$ZodRegistry:()=>sc,$ZodSet:()=>Zp,$ZodString:()=>sn,$ZodStringFormat:()=>fe,$ZodSuccess:()=>Qp,$ZodSymbol:()=>Ip,$ZodTemplateLiteral:()=>of,$ZodTransform:()=>Bp,$ZodTuple:()=>Ws,$ZodType:()=>ie,$ZodULID:()=>sp,$ZodURL:()=>rp,$ZodUUID:()=>Xm,$ZodUndefined:()=>Tp,$ZodUnion:()=>Ni,$ZodUnknown:()=>Pp,$ZodVoid:()=>Cp,$ZodXID:()=>cp,$ZodXor:()=>Up,$brand:()=>Fd,$constructor:()=>v,$input:()=>ff,$output:()=>pf,Doc:()=>an,INVALID:()=>pt,JSONSchema:()=>MS,JSONSchemaGenerator:()=>Lc,NEVER:()=>Ri,TimePrecision:()=>Rf,URL_BAD_FORMAT:()=>ep,URL_UNPARSEABLE:()=>tp,ZodCompileAsyncError:()=>Tt,ZodCompileUnsupportedError:()=>de,_any:()=>qf,_array:()=>Hf,_base64:()=>Ic,_base64url:()=>Tc,_bigint:()=>Nf,_boolean:()=>Of,_catch:()=>nx,_check:()=>PS,_cidrv4:()=>kc,_cidrv6:()=>wc,_coercedBigint:()=>jf,_coercedBoolean:()=>Cf,_coercedDate:()=>Jf,_coercedNumber:()=>wf,_coercedString:()=>bf,_creditCard:()=>zf,_cuid:()=>_c,_cuid2:()=>yc,_custom:()=>Gf,_date:()=>Kf,_decode:()=>zs,_decodeAsync:()=>ks,_default:()=>ex,_discriminatedUnion:()=>VT,_e164:()=>xc,_email:()=>uc,_emoji:()=>gc,_encode:()=>$s,_encodeAsync:()=>Rs,_endsWith:()=>no,_enum:()=>HT,_file:()=>Yf,_float32:()=>Tf,_float64:()=>xf,_gt:()=>Vt,_gte:()=>ht,_guid:()=>dc,_includes:()=>to,_int:()=>If,_int32:()=>Ef,_int64:()=>Af,_intersection:()=>ZT,_ipv4:()=>zc,_ipv6:()=>Rc,_isoDate:()=>Vi,_isoDateTime:()=>qi,_isoDuration:()=>Fi,_isoTime:()=>Zi,_jwt:()=>Ec,_ksuid:()=>$c,_lazy:()=>sx,_length:()=>fn,_literal:()=>GT,_lowercase:()=>Qn,_lt:()=>qt,_lte:()=>ft,_mac:()=>$f,_map:()=>JT,_max:()=>ft,_maxLength:()=>pn,_maxSize:()=>zr,_mime:()=>oo,_min:()=>ht,_minLength:()=>Qt,_minSize:()=>Zt,_multipleOf:()=>$r,_nan:()=>Bf,_nanoid:()=>vc,_nativeEnum:()=>YT,_negative:()=>Oc,_never:()=>Zf,_nonnegative:()=>Nc,_nonoptional:()=>tx,_nonpositive:()=>Cc,_normalize:()=>io,_null:()=>Lf,_nullable:()=>QT,_number:()=>kf,_optional:()=>XT,_overwrite:()=>xt,_parse:()=>Kn,_parseAsync:()=>Jn,_pipe:()=>ox,_positive:()=>Pc,_promise:()=>cx,_properties:()=>Ac,_property:()=>jc,_readonly:()=>ix,_record:()=>KT,_refine:()=>Wf,_regex:()=>Xn,_safeDecode:()=>Is,_safeDecodeAsync:()=>xs,_safeEncode:()=>ws,_safeEncodeAsync:()=>Ts,_safeParse:()=>Bn,_safeParseAsync:()=>Hn,_set:()=>BT,_size:()=>mn,_slugify:()=>lo,_startsWith:()=>ro,_string:()=>Sf,_stringFormat:()=>uo,_stringbool:()=>th,_success:()=>rx,_superRefine:()=>Xf,_symbol:()=>Mf,_templateLiteral:()=>ax,_toLowerCase:()=>so,_toUpperCase:()=>co,_transform:()=>WT,_trim:()=>ao,_tuple:()=>FT,_uint32:()=>Pf,_uint64:()=>Uf,_ulid:()=>Sc,_undefined:()=>Df,_union:()=>LT,_unknown:()=>Vf,_uppercase:()=>eo,_url:()=>Li,_uuid:()=>mc,_uuidv4:()=>pc,_uuidv6:()=>fc,_uuidv7:()=>hc,_void:()=>Ff,_xid:()=>bc,_xor:()=>qT,clone:()=>me,compile:()=>_f,compileFn:()=>lc,config:()=>$e,createStandardJSONSchemaMethod:()=>mo,createToJSONSchemaMethod:()=>nh,decode:()=>Bk,decodeAsync:()=>Yk,describe:()=>Qf,encode:()=>Jk,encodeAsync:()=>Hk,extractDefs:()=>kr,finalize:()=>wr,flattenError:()=>wi,formatError:()=>Ii,getDiscriminatedOption:()=>Mp,globalConfig:()=>Pe,globalRegistry:()=>je,handleUnrepresentable:()=>Ee,initializeContext:()=>Rr,isBackEdge:()=>nc,isRecursiveSchema:()=>mf,isValidBase64:()=>Oi,isValidBase64URL:()=>Js,isValidCIDRv6:()=>Ks,isValidCreditCard:()=>Bs,isValidIPv6:()=>Pi,isValidJWT:()=>Hs,locales:()=>Di,memoizer:()=>Ui,mergeValues:()=>Gn,meta:()=>eh,parse:()=>Ss,parseAsync:()=>bs,parseURLObject:()=>qs,prettifyError:()=>Yd,process:()=>pe,regexes:()=>He,registry:()=>cc,safeDecode:()=>Wk,safeDecodeAsync:()=>Qk,safeEncode:()=>Gk,safeEncodeAsync:()=>Xk,safeParse:()=>Gd,safeParseAsync:()=>Wd,standardProps:()=>Ls,stripTabAndNewline:()=>Vs,toDotPath:()=>V_,toJSONSchema:()=>hn,toZod:()=>gi,treeifyError:()=>Hd,urlHostnameOk:()=>Zs,urlProtocolOk:()=>Fs,util:()=>I,validate:()=>Xd,validateAsync:()=>Qd,version:()=>Ym});var I={};Xt(I,{BIGINT_FORMAT_RANGES:()=>Md,CONSTANT_CATCH:()=>_s,Class:()=>Pd,NUMBER_FORMAT_RANGES:()=>Ud,aborted:()=>yr,allowsEval:()=>Nd,assert:()=>dk,assertEqual:()=>sk,assertIs:()=>lk,assertNever:()=>uk,assertNotEqual:()=>ck,assignProp:()=>Se,attachSchema:()=>vs,base64ToUint8Array:()=>A_,base64urlToUint8Array:()=>xk,cached:()=>Zn,captureStackTrace:()=>gs,cleanEnum:()=>Tk,cleanRegex:()=>_i,clone:()=>me,cloneDef:()=>pk,codePointLength:()=>nn,constantCatch:()=>Vd,createTransparentProxy:()=>yk,defineLazy:()=>Od,defineLazyInternal:()=>ue,esc:()=>tt,escapeRegex:()=>bt,explicitlyAborted:()=>Dd,extend:()=>$k,finalizeIssue:()=>nt,floatSafeRemainder:()=>yi,getElementAtPath:()=>fk,getEnumValues:()=>vi,getLengthableOrigin:()=>zi,getParsedType:()=>_k,getSizableOrigin:()=>$i,hexToUint8Array:()=>Pk,hide:()=>qd,installLazyProp:()=>Ak,isObject:()=>rn,isPlainObject:()=>St,issue:()=>Fn,joinValues:()=>_,jsonStringifyReplacer:()=>Vn,members:()=>Ld,merge:()=>Rk,mergeDefs:()=>It,normalizeParams:()=>O,nullish:()=>hs,numKeys:()=>vk,objectClone:()=>mk,omit:()=>bk,optionalKeys:()=>Ad,own:()=>qn,parsedType:()=>k,partial:()=>kk,pick:()=>Sk,prefixIssues:()=>rt,primitiveTypes:()=>jd,promiseAllObject:()=>hk,propertyKeyTypes:()=>bi,randomString:()=>gk,required:()=>wk,safeExtend:()=>zk,shallowClone:()=>Si,slugify:()=>Cd,stringifyPrimitive:()=>R,toZod:()=>gi,uint8ArrayToBase64:()=>U_,uint8ArrayToBase64url:()=>Ek,uint8ArrayToHex:()=>Ok,unwrapMessage:()=>Ln});function sk(e){return e}function ck(e){return e}function gi(){return e=>e}function lk(e){}function uk(e){throw new Error("Unexpected value in exhaustive check")}function dk(e){}function vi(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function _(e,t="|"){return e.map(n=>R(n)).join(t)}function Vn(e,t){return typeof t=="bigint"?t.toString():t}function Zn(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function hs(e){return e==null}function _i(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function yi(e,t){let n=e/t,o=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}var j_=Symbol("evaluating");function Od(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==j_)return o===void 0&&(o=j_,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function mk(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Se(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function It(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function pk(e){return It(e._zod.def)}function fk(e,t){return t?t.reduce((n,o)=>n?.[o],e):e}function hk(e){let t=Object.keys(e),n=t.map(o=>e[o]);return Promise.all(n).then(o=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=o[i];return r})}function gk(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}function tt(e){return JSON.stringify(e)}function Cd(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,"").replace(/[\\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var gs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function rn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Nd=Zn(()=>{if(Pe.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function St(e){if(rn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(rn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Si(e){return St(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function vk(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var _k=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},bi=new Set(["string","number","symbol"]),jd=new Set(["string","number","bigint","boolean","symbol","undefined"]);function bt(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function me(e,t,n){let o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}function O(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function yk(e){let t;return new Proxy({},{get(n,o,r){return t??(t=e()),Reflect.get(t,o,r)},set(n,o,r,i){return t??(t=e()),Reflect.set(t,o,r,i)},has(n,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(n,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(n,o,r){return t??(t=e()),Reflect.defineProperty(t,o,r)}})}function R(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ad(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Ud={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Md={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Sk(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=It(e._zod.def,{get shape(){let a={};for(let s of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,s))throw new Error(`Unrecognized key: "${String(s)}"`);t[s]&&Se(a,s,n.shape[s])}return Se(this,"shape",a),a},checks:[]});return me(e,i)}function bk(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=It(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,s))throw new Error(`Unrecognized key: "${String(s)}"`);t[s]&&delete a[s]}return Se(this,"shape",a),a},checks:[]});return me(e,i)}function $k(e,t){if(!St(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let a of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=It(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Se(this,"shape",i),i}});return me(e,r)}function zk(e,t){if(!St(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=It(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Se(this,"shape",o),o}});return me(e,n)}function Rk(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=It(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Se(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return me(e,n)}function kk(e,t,n,o="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${o}() cannot be used on object schemas containing refinements`);let s=It(t._zod.def,{get shape(){let c=t._zod.def.shape,l={...c};if(n)for(let d of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(c,d))throw new Error(`Unrecognized key: "${String(d)}"`);n[d]&&(l[d]=e?new e({type:"optional",innerType:c[d]}):c[d])}else for(let d of Reflect.ownKeys(c))l[d]=e?new e({type:"optional",innerType:c[d]}):c[d];return Se(this,"shape",l),l},checks:[]});return me(t,s)}function wk(e,t,n){let o=It(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let a of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i,a))throw new Error(`Unrecognized key: "${String(a)}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a of Reflect.ownKeys(r))i[a]=new e({type:"nonoptional",innerType:r[a]});return Se(this,"shape",i),i}});return me(t,o)}function yr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Dd(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function rt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Ln(e){return typeof e=="string"?e:e?.message}function vs(e,t,n){var o;for(let r=t;r<e.length;r++)(o=e[r]).schema??(o.schema=n)}function nt(e,t,n){var o;let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(o=e).schema??(o.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:Ln(e.inst?._zod.def?.error?.(e))??Ln(i?.(e))??Ln(t?.error?.(e))??Ln(n.customError?.(e))??Ln(n.localeError?.(e))??"Invalid input",{inst:s,schema:c,continue:l,input:d,...m}=e;return m.path??(m.path=[]),m.message=a,t?.reportInput&&(m.input=d),m}function $i(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Ik=/[\\uD800-\\uDBFF]/;function nn(e){let t=e.length;if(!Ik.test(e))return t;let n=t;for(let o=0;o<t-1;o++)(e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320&&(n--,o++);return n}function zi(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function k(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Fn(...e){let[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}function Tk(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function A_(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}function U_(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function xk(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return A_(t+n)}function Ek(e){return U_(e).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=/g,"")}function Pk(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)n[o/2]=Number.parseInt(t.slice(o,o+2),16);return n}function Ok(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Pd=class{constructor(...t){}};function Ld(e,t){for(let n in t){let o=Object.getOwnPropertyDescriptor(t,n);o.get?Object.defineProperty(e,n,{...o,enumerable:!1}):Ck(e,n,o.value)}}function qn(e,t,n,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:n}),n}function qd(e,t,n){return qn(e,t,n,!1)}function Ck(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:qn(this,t,n.bind(this))},set(o){qn(this,t,o)}})}function Nk(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Ed,_r=!1,jk={configurable:!0,get(){_r=!0}};function ue(e,t,n){let o=Object.getPrototypeOf(e._zod);if(t in o&&Ed!==e._zod){Ed=void 0;return}Ed=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,jk);let r=_r;_r=!1;try{let i=n(this);return _r?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),_r=_r||r,i}catch(i){throw delete this[t],_r=_r||r,i}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}function Ak(e,t,n,o){let r=Nk(e,t);r&&Object.defineProperty(r,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:i})}})}var _s="~constantCatch";function Vd(e){let t=()=>e;return t[_s]=!0,t}var M_,Ri=Object.freeze({status:"aborted"}),Zd={value:void 0,enumerable:!1},D_="captureStackTrace"in Error?Error:null;function Uk(e){let t=D_;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return D_=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function v(e,t,n,o){let r={};function i(p){this.def=p,this.constr=m,this.traits=new Set}i.prototype=r;let a=n,s=a&&new WeakSet;function c(p,f){if(!p._zod){Zd.value=new i(f);try{Object.defineProperty(p,"_zod",Zd)}finally{Zd.value=void 0}}if(p._zod.traits.has(e))return;if(p._zod.traits.add(e),t(p,f),s){let S=Object.getPrototypeOf(p),y=p._zod.constr.prototype,w=S;for(;w&&w!==y;)w=Object.getPrototypeOf(w);let T=w??S;s.has(T)||(s.add(T),Ld(T,a))}let h=m.prototype;for(let S in h)Object.prototype.hasOwnProperty.call(h,S)&&(S in p||(p[S]=h[S].bind(p)))}let l=o?.Parent??Object;class d extends l{}Object.defineProperty(d,"name",{value:e});function m(p){let f=o?.Parent?Uk(d):this;c(f,p);let h=f._zod.deferred;if(h){for(let y of h)y();f._zod.deferred=void 0}let S=globalThis.__zod_globalConfig?.postProcessor;return S&&S(f),f}return Object.defineProperty(m,"init",{value:c}),Object.defineProperty(m,Symbol.hasInstance,{value:p=>o?.Parent&&p instanceof o.Parent?!0:p?._zod?.traits?.has(e)}),Object.defineProperty(m,"name",{value:e}),m}var Fd=Symbol("zod_brand"),ot=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Sr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(M_=globalThis).__zod_globalConfig??(M_.__zod_globalConfig={});var Pe=globalThis.__zod_globalConfig;function $e(e){return e&&Object.assign(Pe,e),Pe}function Mk(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Vn,2)),e.message}function Dk(e){this._zod.message=e}var Lk={get:Mk,set:Dk,enumerable:!0,configurable:!0},Jd={value:void 0,enumerable:!1},Bd={value:void 0,enumerable:!1},L_=new WeakSet([Object.prototype,Error.prototype]),q_=(e,t)=>{e.name="$ZodError",Jd.value=e._zod,Object.defineProperty(e,"_zod",Jd),Bd.value=t,Object.defineProperty(e,"issues",Bd),Jd.value=void 0,Bd.value=void 0,Object.defineProperty(e,"message",Lk);let n=Object.getPrototypeOf(e);L_.has(n)||(L_.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}}))},ki=v("$ZodError",q_),it=v("$ZodError",q_,void 0,{Parent:Error});function qk(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function wi(e,t=n=>n.message){let n={},o=[];for(let r of e.issues)r.path.length>0?qk(n,r.path[0],()=>[]).push(t(r)):o.push(t(r));return{formErrors:o,fieldErrors:n}}function Ii(e,t=n=>n.message){let n={_errors:[]},o=(r,i=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)n._errors.push(t(a));else{let c=n,l=0;for(;l<s.length;){let d=s[l],m=l===s.length-1;if(d==="_errors"){m&&c._errors.push(t(a)),l++;continue}Object.prototype.hasOwnProperty.call(c,d)||Object.defineProperty(c,d,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let p=c[d];m&&p._errors.push(t(a)),c=p,l++}}}};return o(e),n}function Hd(e,t=n=>n.message){let n={errors:[]},o=(r,i=[])=>{var a;for(let s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0){n.errors.push(t(s));continue}let l=n,d=0;for(;d<c.length;){let m=c[d],p=d===c.length-1;typeof m=="string"?(l.properties??(l.properties={}),Object.prototype.hasOwnProperty.call(l.properties,m)||Object.defineProperty(l.properties,m,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),l=l.properties[m]):(l.items??(l.items=[]),(a=l.items)[m]??(a[m]={errors:[]}),l=l.items[m]),p&&l.errors.push(t(s)),d++}}};return o(e),n}function V_(e){let t=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function Yd(e){let t=[],n=[...e.issues].sort((o,r)=>(o.path??[]).length-(r.path??[]).length);for(let o of n)t.push(`\\u2716 ${o.message}`),o.path?.length&&t.push(` \\u2192 at ${V_(o.path)}`);return t.join(`\n`)}function ys(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Kn=e=>{let t=(n,o,r,i)=>{let a=r?{...r,async:!1}:{async:!1},s=n._zod.run({value:o,issues:[]},a);if(s instanceof Promise)throw new ot;if(s.issues.length){let c=new(i?.Err??e)(s.issues.map(l=>nt(l,a,$e())));throw gs(c,i?.callee??t),c}return s.value};return t},Ss=Kn(it),Jn=e=>{let t=async(n,o,r,i)=>{let a=r?{...r,async:!0}:{async:!0},s=n._zod.run({value:o,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let c=new(i?.Err??e)(s.issues.map(l=>nt(l,a,$e())));throw gs(c,i?.callee??t),c}return s.value};return t},bs=Jn(it),Bn=e=>(t,n,o)=>{let r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new ot;return i.issues.length?{success:!1,error:new(e??ki)(i.issues.map(a=>nt(a,r,$e())))}:{success:!0,data:i.value}},Gd=Bn(it),Hn=e=>async(t,n,o)=>{let r=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>nt(a,r,$e())))}:{success:!0,data:i.value}},Wd=Hn(it),Zk=Symbol.for("zod.compile.invalid"),Fk=Symbol.for("zod.compile.fallback"),Xd=((e,t,n)=>{let o=e._zod.bag.validator;return o!==void 0&&o(t)!==Zk?!0:Kk(e,t,n)});function Kk(e,t,n){let o=n?{...n,async:!1}:{async:!1},r=e._zod.bag.fallbackRun,i;if(r?(o[Fk]=!0,i=r({value:t,issues:[]},o)):i=e._zod.run({value:t,issues:[]},o),i instanceof Promise)throw new ot;return i.issues.length===0}var Qd=async(e,t,n)=>{let o=n?{...n,async:!0}:{async:!0},r=e._zod.run({value:t,issues:[]},o);return r instanceof Promise&&(r=await r),r.issues.length===0},$s=e=>{let t=Kn(e),n=(o,r,i,a)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return t(o,r,s,ys(n,a))};return n},Jk=$s(it),zs=e=>{let t=Kn(e),n=(o,r,i,a)=>t(o,r,i,ys(n,a));return n},Bk=zs(it),Rs=e=>{let t=Jn(e),n=async(o,r,i,a)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return await t(o,r,s,ys(n,a))};return n},Hk=Rs(it),ks=e=>{let t=Jn(e),n=async(o,r,i,a)=>await t(o,r,i,ys(n,a));return n},Yk=ks(it),ws=e=>(t,n,o)=>{let r=o?{...o,direction:"backward"}:{direction:"backward"};return Bn(e)(t,n,r)},Gk=ws(it),Is=e=>(t,n,o)=>Bn(e)(t,n,o),Wk=Is(it),Ts=e=>async(t,n,o)=>{let r=o?{...o,direction:"backward"}:{direction:"backward"};return Hn(e)(t,n,r)},Xk=Ts(it),xs=e=>async(t,n,o)=>Hn(e)(t,n,o),Qk=xs(it);var He={};Xt(He,{base64:()=>vm,base64url:()=>Es,bigint:()=>Rm,boolean:()=>km,browserEmail:()=>sw,cidrv4:()=>hm,cidrv6:()=>gm,creditCard:()=>Ps,cuid:()=>tm,cuid2:()=>rm,date:()=>Sm,datetime:()=>$m,domain:()=>uw,duration:()=>cm,e164:()=>ym,email:()=>um,emoji:()=>dm,extendedDuration:()=>ew,guid:()=>lm,hex:()=>mw,hostname:()=>lw,html5Email:()=>ow,httpProtocol:()=>_m,idnEmail:()=>aw,integer:()=>Ti,ipv4:()=>mm,ipv6:()=>pm,ksuid:()=>im,lowercase:()=>Tm,mac:()=>fm,md5_base64:()=>fw,md5_base64url:()=>hw,md5_hex:()=>pw,nanoid:()=>am,nanoidOfLength:()=>sm,null:()=>wm,number:()=>br,rfc5322Email:()=>iw,sha1_base64:()=>vw,sha1_base64url:()=>_w,sha1_hex:()=>gw,sha256_base64:()=>Sw,sha256_base64url:()=>bw,sha256_hex:()=>yw,sha384_base64:()=>zw,sha384_base64url:()=>Rw,sha384_hex:()=>$w,sha512_base64:()=>ww,sha512_base64url:()=>Iw,sha512_hex:()=>kw,string:()=>zm,time:()=>bm,ulid:()=>nm,undefined:()=>Im,unicodeEmail:()=>Z_,uppercase:()=>xm,uuid:()=>on,uuid4:()=>tw,uuid6:()=>rw,uuid7:()=>nw,xid:()=>om});var tm=/^[cC][0-9a-z]{6,}$/,rm=/^[0-9a-z]+$/,nm=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,om=/^[0-9a-vA-V]{20}$/,im=/^[A-Za-z0-9]{27}$/,am=/^[a-zA-Z0-9_-]{21}$/;function sm(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var cm=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,ew=/^[-+]?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)?)??$/,lm=/^([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})$/,on=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,tw=on(4),rw=on(6),nw=on(7),um=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_\'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,ow=/^[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])?)*$/,iw=/^(([^<>()\\[\\]\\\\.,;:\\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,}))$/,Z_=/^[^\\s@"]{1,64}@[^\\s@]{1,255}$/u,aw=Z_,sw=/^[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])?)*$/,cw="^[\\\\p{Extended_Pictographic}\\\\p{Emoji_Component}]+$";function dm(){return new RegExp(cw,"u")}var mm=/^(?:(?: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])$/,pm=/^(([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}|:))$/,fm=e=>{let t=bt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},hm=/^((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])$/,gm=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Es=/^[A-Za-z0-9_-]*$/,lw=/^(?=.{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])?)*\\.?$/,uw=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$/,_m=/^https?$/,ym=/^\\+[1-9]\\d{6,14}$/,Ps=/^\\d(?:[ -]?\\d){11,18}$/,F_="(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))";function dw(e){return new RegExp(`^${e}$`)}var Sm=dw(F_);function em(e){let t="(?:[01]\\\\d|2[0-3]):[0-5]\\\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\\\d`:`${t}:[0-5]\\\\d\\\\.\\\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\\\d(?:\\\\.\\\\d+)?`:`${t}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function bm(e){return new RegExp(`^${em(e)}$`)}function $m(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)");let n=`${em({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${n}|${em({precision:e.precision})}`:n;return new RegExp(`^${F_}T(?:${o})$`)}var zm=e=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\\\s\\\\S]*";return new RegExp(`^${t}$`)},Rm=/^-?\\d+n?$/,Ti=/^-?\\d+$/,br=/^-?\\d+(?:\\.\\d+)?$/,km=/^(?:true|false)$/i,wm=/^null$/i;var Im=/^undefined$/i;var Tm=/^[^A-Z]*$/,xm=/^[^a-z]*$/,mw=/^[0-9a-fA-F]*$/;function xi(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ei(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var pw=/^[0-9a-fA-F]{32}$/,fw=xi(22,"=="),hw=Ei(22),gw=/^[0-9a-fA-F]{40}$/,vw=xi(27,"="),_w=Ei(27),yw=/^[0-9a-fA-F]{64}$/,Sw=xi(43,"="),bw=Ei(43),$w=/^[0-9a-fA-F]{96}$/,zw=xi(64,""),Rw=Ei(64),kw=/^[0-9a-fA-F]{128}$/,ww=xi(86,"=="),Iw=Ei(86);var ge=v("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Em=e=>{let t=e.value;return!hs(t)&&t.size!==void 0},Pm=e=>{let t=e.value;return!hs(t)&&t.length!==void 0},Os={number:"number",bigint:"bigint",object:"date"},Cs=v("$ZodCheckLessThan",(e,t)=>{ge.init(e,t);let n=Os[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:Os[typeof o.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ns=v("$ZodCheckGreaterThan",(e,t)=>{ge.init(e,t);let n=Os[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:Os[typeof o.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Om=v("$ZodCheckMultipleOf",(e,t)=>{ge.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):yi(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Cm=v("$ZodCheckNumberFormat",(e,t)=>{ge.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),o=n?"int":"number",[r,i]=Ud[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=Ti)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Nm=v("$ZodCheckBigIntFormat",(e,t)=>{ge.init(e,t);let[n,o]=Md[t.format];e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,i.minimum=n,i.maximum=o}),e._zod.check=r=>{let i=r.value;i<n&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>o&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),jm=v("$ZodCheckMaxSize",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Em),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value;r.size<=t.maximum||o.issues.push({origin:$i(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Am=v("$ZodCheckMinSize",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Em),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value;r.size>=t.minimum||o.issues.push({origin:$i(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Um=v("$ZodCheckSizeEquals",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Em),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=o=>{let r=o.value,i=r.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:$i(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Mm=v("$ZodCheckMaxLength",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Pm),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value,i=r.length;if((typeof r=="string"&&i>t.maximum?nn(r):i)<=t.maximum)return;let s=zi(r);o.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Dm=v("$ZodCheckMinLength",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Pm),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value,i=r.length;if((typeof r=="string"&&i>=t.minimum&&i<t.minimum*2?nn(r):i)>=t.minimum)return;let s=zi(r);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Lm=v("$ZodCheckLengthEquals",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Pm),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{let r=o.value,i=r.length,a=typeof r=="string"&&i>=t.length&&i<=t.length*2?nn(r):i;if(a===t.length)return;let s=zi(r),c=a>t.length;o.issues.push({origin:s,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Yn=v("$ZodCheckStringFormat",(e,t)=>{var n,o;ge.init(e,t),e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),qm=v("$ZodCheckRegex",(e,t)=>{Yn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Vm=v("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Tm),Yn.init(e,t)}),Zm=v("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=xm),Yn.init(e,t)}),Fm=v("$ZodCheckIncludes",(e,t)=>{ge.init(e,t);let n=bt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Km=v("$ZodCheckStartsWith",(e,t)=>{ge.init(e,t);let n=new RegExp(`^${bt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Jm=v("$ZodCheckEndsWith",(e,t)=>{ge.init(e,t);let n=new RegExp(`.*${bt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function K_(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues))}var js=v("$ZodCheckProperty",(e,t)=>{ge.init(e,t),e._zod.check=n=>{let o=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(r=>K_(r,n,t.property));K_(o,n,t.property)}}),Bm=v("$ZodCheckMimeType",(e,t)=>{ge.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Hm=v("$ZodCheckOverwrite",(e,t)=>{ge.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var an=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`\n`).filter(a=>a),r=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {\n${n.join(`\n`)}\n};`)(...Object.values(this.closed))}};var Ym={major:4,minor:5,patch:4};var ie=v("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Ym;let o=e._zod.def.checks,r=e._zod.traits.has("$ZodCheck")?[e,...o??[]]:o?.length?[...o]:[];for(let i of r)for(let a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(s,c,l)=>{if(s.memo)return s;let d=yr(s),m;for(let p of c){if(p._zod.def.when){if(Dd(s)||!p._zod.def.when(s))continue}else if(d)continue;let f=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new ot;if(m||h instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await h,s.issues.length!==f&&(vs(s.issues,f,e),d||(d=yr(s,f)))});else{if(s.issues.length===f)continue;vs(s.issues,f,e),d||(d=yr(s,f))}}return m?m.then(()=>s):s},a=(s,c,l)=>{if(yr(s))return s.aborted=!0,s;let d=i(c,r,l);if(d instanceof Promise){if(l.async===!1)throw new ot;return d.then(m=>e._zod.parse(m,l))}return e._zod.parse(d,l)};e._zod.run=(s,c)=>{if(c.skipChecks)return e._zod.parse(s,c);if(c.direction==="backward"){let d=e._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return d instanceof Promise?d.then(m=>a(m,s,c)):a(d,s,c)}let l=e._zod.parse(s,c);if(l instanceof Promise){if(c.async===!1)throw new ot;return l.then(d=>i(d,r,c))}return i(l,r,c)}}},{get"~standard"(){return qd(this,"~standard",Ls(this))},set"~standard"(e){qn(this,"~standard",e)}}),B_=e=>e.success?{value:e.data}:{issues:e.error?.issues};function Ls(e){return{validate:t=>{try{return B_(Gd(e,t))}catch{return Wd(e,t).then(B_)}},vendor:"zod",version:1}}var sn=v("$ZodString",(e,t)=>{ie.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??zm(e._zod.bag),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),fe=v("$ZodStringFormat",(e,t)=>{Yn.init(e,t),sn.init(e,t)}),Wm=v("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=lm),fe.init(e,t)}),Xm=v("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=on(o))}else t.pattern??(t.pattern=on());fe.init(e,t)}),Qm=v("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=um),fe.init(e,t)}),ep=1,tp=2;function qs(e,t){if(!t.normalize&&t.protocol?.source===_m.source&&!/^https?:\\/\\//i.test(e))return ep;try{return new URL(e)}catch{return tp}}var Tw=/[\\t\\n\\r]/g;function Vs(e){return e.replace(Tw,"")}function Zs(e,t){return t.lastIndex=0,t.test(e.hostname)}function Fs(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var rp=v("$ZodURL",(e,t)=>{fe.init(e,t),e._zod.check=n=>{try{let o=n.value.trim(),r=qs(o,t);if(r===ep){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(r===tp){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}t.hostname&&!Zs(r,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Fs(r,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?r.href:Vs(o);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),np=v("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=dm()),fe.init(e,t)}),op=v("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?am:sm(t.length)),fe.init(e,t)}),ip=v("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=tm),fe.init(e,t)}),ap=v("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=rm),fe.init(e,t)}),sp=v("$ZodULID",(e,t)=>{t.pattern??(t.pattern=nm),fe.init(e,t)}),cp=v("$ZodXID",(e,t)=>{t.pattern??(t.pattern=om),fe.init(e,t)}),lp=v("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=im),fe.init(e,t)}),up=v("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=$m(t)),fe.init(e,t),(t.local||t.precision===-1)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(n=>{n._zod.bag.laxFormat=!0}))}),dp=v("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Sm),fe.init(e,t)}),mp=v("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=bm(t)),fe.init(e,t)}),pp=v("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=cm),fe.init(e,t)}),fp=v("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=mm),fe.init(e,t),e._zod.bag.format="ipv4"}),xw=/^[0-9a-fA-F:.]+$/;function Pi(e){if(!xw.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var hp=v("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=pm),fe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{Pi(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),gp=v("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=fm(t.delimiter)),fe.init(e,t),e._zod.bag.format="mac"}),vp=v("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=hm),fe.init(e,t)});function Ks(e){let t=e.split("/");if(t.length!==2)return!1;let[n,o]=t;if(!o)return!1;let r=Number(o);return`${r}`!==o||r<0||r>128?!1:Pi(n)}var _p=v("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gm),fe.init(e,t),e._zod.check=n=>{Ks(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function Oi(e){if(e==="")return!0;if(/\\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var yp=v("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=vm),fe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Oi(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Js(e){if(!Es.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Oi(n)}var Sp=v("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Es),fe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Js(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),bp=v("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ym),fe.init(e,t)}),Ew=/[- ]/g;function Pw(e){let t=e.length,n=1,o=0;for(;t;){let r=+e[--t];n^=1,o+=n?[0,2,4,6,8,1,3,5,7,9][r]:r}return o%10===0}function Bs(e){return Ps.test(e)?Pw(e.replace(Ew,"")):!1}var $p=v("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=Ps),fe.init(e,t),e._zod.check=n=>{Bs(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function Hs(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let r=JSON.parse(atob(o));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var zp=v("$ZodJWT",(e,t)=>{fe.init(e,t),e._zod.check=n=>{Hs(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Rp=v("$ZodCustomStringFormat",(e,t)=>{fe.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Ys=v("$ZodNumber",(e,t)=>{ie.init(e,t),e._zod.pattern=e._zod.bag.pattern??br,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:String(r):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),kp=v("$ZodNumberFormat",(e,t)=>{Cm.init(e,t),Ys.init(e,t)}),Ci=v("$ZodBoolean",(e,t)=>{ie.init(e,t),e._zod.pattern=km,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Gs=v("$ZodBigInt",(e,t)=>{ie.init(e,t),e._zod.pattern=Rm,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),wp=v("$ZodBigIntFormat",(e,t)=>{Nm.init(e,t),Gs.init(e,t)}),Ip=v("$ZodSymbol",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),Tp=v("$ZodUndefined",(e,t)=>{ie.init(e,t),e._zod.pattern=Im,e._zod.values=new Set([void 0]),e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),xp=v("$ZodNull",(e,t)=>{ie.init(e,t),e._zod.pattern=wm,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),Ep=v("$ZodAny",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),Pp=v("$ZodUnknown",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),Op=v("$ZodNever",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Cp=v("$ZodVoid",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Np=v("$ZodDate",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),n}});function H_(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues)),t.value[n]=e.value}var jp=v("$ZodArray",(e,t)=>{ie.init(e,t);let n=Pe.memoizer;n?.attach(e),e._zod.parse=(o,r)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),o;o.value=n?n.alloc(e,o,Array(i.length),r):Array(i.length);let a=[];for(let s=0;s<i.length;s++){let c=i[s],l=t.element._zod.run({value:c,issues:[]},r);l instanceof Promise?a.push(l.then(d=>H_(d,o,s))):H_(l,o,s)}return a.length?Promise.all(a).then(()=>o):o}});function Ds(e,t,n,o,r,i){let a=n in o,s=i==="optional";if(!(!a&&s&&r==="optional")){if(e.issues.length){if(r!==void 0&&s&&!a)return;t.issues.push(...rt(n,e.issues))}if(!a&&r===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}}var Ow=[];function ly(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),o=n.length?n:Ow,r=o.length?[...t,...o]:t;for(let a of r)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);let i=Ad(e.shape);return{...e,allKeys:r,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function uy(e,t,n,o,r,i){let a=[],s=r.keySet,c=r.catchall._zod,l=c.def.type,d=c.optin,m=c.optout;for(let p in t){if(s.has(p))continue;if(p==="__proto__"){l==="never"&&a.push(p);continue}if(l==="never"){a.push(p);continue}let f=c.run({value:t[p],issues:[]},o);f instanceof Promise?e.push(f.then(h=>Ds(h,n,p,t,d,m))):Ds(f,n,p,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Gm=new WeakMap,dy=v("$ZodObject",(e,t)=>{if(ie.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;Gm.set(t,c),Object.defineProperty(t,"shape",{get:()=>{let l={...c};return Object.defineProperty(t,"shape",{value:l}),Gm.set(t,l),l}})}let o=Zn(()=>ly(t));ue(e,"propValues",c=>{let l=c.def.shape,d={};for(let m in l){let p=l[m]._zod;if(p.values){Object.prototype.hasOwnProperty.call(d,m)||Se(d,m,new Set);for(let f of p.values)d[m].add(f);p.optin!==void 0&&d[m].add(void 0)}}return d});let r=rn,i=t.catchall,a,s=Pe.memoizer;s?.attach(e),e._zod.parse=(c,l)=>{a??(a=o.value);let d=c.value;if(!r(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),c;c.value=s?s.alloc(e,c,{},l):{};let m=[],p=a.shape;for(let f of a.allKeys){if(f==="__proto__")continue;let h=p[f],S=h._zod.optin,y=h._zod.optout,w=h._zod.run({value:d[f],issues:[]},l);w instanceof Promise?m.push(w.then(T=>Ds(T,c,f,d,S,y))):Ds(w,c,f,d,S,y)}return i?uy(m,d,c,l,o.value,e):m.length?Promise.all(m).then(()=>c):c}}),Ap=v("$ZodObjectJIT",(e,t)=>{dy.init(e,t);let n=e._zod.parse,o=Zn(()=>ly(t)),r=Pe.memoizer,i=f=>{let h=o.value,S=h.symbolKeys,y=new an(["payload","ctx"],{shape:f,inst:e,memo:r,syms:S}),w=Z=>`shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`,T=(Z,N)=>`\n for (let i = 0; i < ${Z}.issues.length; i++) {\n const iss = ${Z}.issues[i];\n iss.path = iss.path ? [${N}, ...iss.path] : [${N}];\n payload.issues.push(iss);\n }`;y.write("const input = payload.value;");let E=Object.create(null),K=0;for(let Z of h.allKeys)E[Z]=`key_${K++}`;y.write(r?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let Z of h.allKeys){if(Z==="__proto__")continue;let N=E[Z],re=typeof Z=="symbol"?`syms[${S.indexOf(Z)}]`:tt(Z),oe=`${re} in input`,H=f[Z],ve=H?._zod?.optin,ye=ve!==void 0,ce=H?._zod?.optout==="optional";if(y.write(`const ${N} = ${w(re)};`),ye&&ce){let Ie=ve==="optional"?`${N}_present`:`${N}.value !== undefined || ${N}_present`;y.write(`\n const ${N}_present = ${oe};\n if (!${N}.issues.length || ${N}_present) {\n if (${N}.issues.length) {${T(N,re)}\n }\n\n if (${Ie}) {\n newResult[${re}] = ${N}.value;\n }\n }\n\n `)}else ye?y.write(`\n if (${N}.issues.length) {${T(N,re)}\n }\n \n if (${N}.value === undefined) {\n if (${oe}) {\n newResult[${re}] = undefined;\n }\n } else {\n newResult[${re}] = ${N}.value;\n }\n\n `):y.write(`\n const ${N}_present = ${oe};\n if (${N}.issues.length) {${T(N,re)}\n }\n if (!${N}_present && !${N}.issues.length) {\n payload.issues.push({\n code: "invalid_type",\n expected: "nonoptional",\n input: undefined,\n path: [${re}]\n });\n }\n\n if (${N}_present) {\n newResult[${re}] = ${N}.value;\n }\n\n `)}return y.write("payload.value = newResult;"),y.write("return payload;"),y.compile()},a,s=rn,c=!Pe.jitless,d=c&&Nd.value,m=t.catchall,p;e._zod.parse=(f,h)=>{p??(p=o.value);let S=f.value;return s(S)?c&&d&&h?.async===!1&&h.jitless!==!0?(a||(a=i(t.shape)),f=a(f,h),m?uy([],S,f,h,p,e):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:S,inst:e}),f)}});function Y_(e,t,n,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let r=e.filter(i=>!yr(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>nt(a,o,$e())))}),t)}var Ni=v("$ZodUnion",(e,t)=>{ie.init(e,t),ue(e,"optin",o=>o.def.options.some(r=>r._zod.optin==="defaulted")?"defaulted":o.def.options.some(r=>r._zod.optin!==void 0)?"optional":void 0),ue(e,"optout",o=>o.def.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ue(e,"values",o=>{if(o.def.options.every(r=>r._zod.values))return new Set(o.def.options.flatMap(r=>Array.from(r._zod.values)))}),ue(e,"pattern",o=>{if(o.def.options.every(r=>r._zod.pattern)){let r=o.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>_i(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},r);if(c instanceof Promise)a.push(c),i=!0;else{if(c.issues.length===0)return c;a.push(c)}}return i?Promise.all(a).then(s=>Y_(s,o,e,r)):Y_(a,o,e,r)}});function G_(e,t,n,o){let r=[];for(let i=0;i<e.length;i++)e[i].issues.length===0&&r.push(i);return r.length===1?(t.value=e[r[0]].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>nt(a,o,$e())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:r}),t)}var Up=v("$ZodXor",(e,t)=>{Ni.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},r);c instanceof Promise?(a.push(c),i=!0):a.push(c)}return i?Promise.all(a).then(s=>G_(s,o,e,r)):G_(a,o,e,r)}});function Mp(e,t){let n=e._zod,o=n.bag.optionsMap;if(!o){o=new Map;let{options:r,discriminator:i}=n.def;for(let a of r)for(let s of a._zod.propValues?.[i]??[])o.has(s)||o.set(s,a);n.bag.optionsMap=o}return o.get(t)}var Dp=v("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ni.init(e,t);let n=e._zod.parse;ue(e,"propValues",r=>{let i={};for(let a of r.def.options){let s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.def.options.indexOf(a)}"`);for(let[c,l]of Object.entries(s)){Object.prototype.hasOwnProperty.call(i,c)||Se(i,c,new Set);for(let d of l)i[c].add(d)}}return i}),t.options.forEach((r,i)=>{let a=Gm.get(r._zod.def);if(a&&!Object.prototype.hasOwnProperty.call(a,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let o=Zn(()=>{let r=t.options,i=new Map;for(let a of r){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(r,i)=>{let a=r.value;if(!rn(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),Lp=v("$ZodIntersection",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>W_(n,c,l)):W_(n,i,a)}});function Gn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(St(e)&&St(t)){let n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};Object.prototype.hasOwnProperty.call(r,"__proto__")&&delete r.__proto__;for(let i of o){if(i==="__proto__")continue;let a=Gn(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t[o],a=Gn(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function W_(e,t,n){let o=new Map,r,i=new Map,a=(l,d)=>{let m;if(l.code==="unrecognized_keys"&&!l.path?.length)r??(r=l),m=l.keys;else if(l.code==="invalid_key"&&l.origin==="record"&&l.path?.length===1){let p=String(l.path[0]);i.has(p)||i.set(p,l),m=[p]}else return!1;for(let p of m)o.has(p)||o.set(p,{}),o.get(p)[d]=!0;return!0};for(let l of t.issues)a(l,"l")||e.issues.push(l);for(let l of n.issues)a(l,"r")||e.issues.push(l);let s=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(s.length){let l=r?s.filter(d=>r.keys.includes(d)):[];l.length&&e.issues.push({...r,keys:l});for(let d of s)!l.includes(d)&&i.has(d)&&e.issues.push(i.get(d))}let c=Gn(t.value,n.value);if(!c.valid){if(yr(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Ws=v("$ZodTuple",(e,t)=>{ie.init(e,t);let n=t.items,o=Pe.memoizer;o?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=o?o.alloc(e,r,[],i):[];let s=[],c=X_(n,"optin"),l=X_(n,"optout");if(!t.rest){if(a.length<c)return r.issues.push({code:"too_small",minimum:c,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}let d=new Array(n.length);for(let m=0;m<n.length;m++){let p=n[m]._zod.run({value:a[m],issues:[]},i);p instanceof Promise?s.push(p.then(f=>{d[m]=f})):d[m]=p}if(t.rest){let m=n.length-1,p=a.slice(n.length);for(let f of p){m++;let h=t.rest._zod.run({value:f,issues:[]},i);h instanceof Promise?s.push(h.then(S=>Q_(S,r,m))):Q_(h,r,m)}}return s.length?Promise.all(s).then(()=>ey(d,r,n,a,l)):ey(d,r,n,a,l)}});function X_(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function Q_(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues)),t.value[n]=e.value}function ey(e,t,n,o,r){for(let i=0;i<n.length;i++){let a=e[i],s=i<o.length;if(!s&&i>=r&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(a.issues.length){if(!s&&i>=r){t.value.length=i;break}t.issues.push(...rt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var qp=v("$ZodRecord",(e,t)=>{ie.init(e,t);let n=Pe.memoizer;n?.attach(e),e._zod.parse=(o,r)=>{let i=o.value;if(!St(i))return o.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),o;let a=[],s=t.keyType._zod.values;if(s&&!t.partial){o.value=n?n.alloc(e,o,{},r):{};let c=new Set;for(let d of s)if(typeof d=="string"||typeof d=="number"||typeof d=="symbol"){if(c.add(typeof d=="number"?d.toString():d),d==="__proto__")continue;let m=t.keyType._zod.run({value:d,issues:[]},r);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(m.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(h=>nt(h,r,$e())),input:d,path:[d],inst:e});continue}let p=m.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:i[d],issues:[]},r);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&o.issues.push(...rt(d,h.issues)),o.value[p]=h.value})):(f.issues.length&&o.issues.push(...rt(d,f.issues)),o.value[p]=f.value)}let l;for(let d in i)if(!c.has(d))if(t.mode==="loose"){if(d==="__proto__")continue;o.value[d]=i[d]}else l=l??[],l.push(d);l&&l.length>0&&o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l,continue:!0})}else{o.value=n?n.alloc(e,o,{},r):{};let c;for(let l of Reflect.ownKeys(i)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,l))continue;let d=t.keyType._zod.run({value:l,issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&br.test(l)&&d.issues.length){let h=t.keyType._zod.run({value:Number(l),issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(d=h)}if(d.issues.length){t.mode==="loose"?o.value[l]=i[l]:s?(c=c??[],c.push(l)):o.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>nt(h,r,$e())),input:l,path:[l],inst:e});continue}let p=d.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:i[l],issues:[]},r);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&o.issues.push(...rt(l,h.issues)),o.value[p]=h.value})):(f.issues.length&&o.issues.push(...rt(l,f.issues)),o.value[p]=f.value)}c&&c.length>0&&o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}return a.length?Promise.all(a).then(()=>o):o}}),Vp=v("$ZodMap",(e,t)=>{ie.init(e,t);let n=Pe.memoizer;n?.attach(e),e._zod.parse=(o,r)=>{let i=o.value;if(!(i instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),o;let a=[];o.value=n?n.alloc(e,o,new Map,r):new Map;for(let[s,c]of i){let l=t.keyType._zod.run({value:s,issues:[]},r),d=t.valueType._zod.run({value:c,issues:[]},r);l instanceof Promise||d instanceof Promise?a.push(Promise.all([l,d]).then(([m,p])=>{ty(m,p,o,s,i,e,r)})):ty(l,d,o,s,i,e,r)}return a.length?Promise.all(a).then(()=>o):o}});function ty(e,t,n,o,r,i,a){e.issues.length&&(bi.has(typeof o)?n.issues.push(...rt(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(s=>nt(s,a,$e()))})),t.issues.length&&(bi.has(typeof o)?n.issues.push(...rt(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:t.issues.map(s=>nt(s,a,$e()))})),n.value.set(e.value,t.value)}var Zp=v("$ZodSet",(e,t)=>{ie.init(e,t);let n=Pe.memoizer;n?.attach(e),e._zod.parse=(o,r)=>{let i=o.value;if(!(i instanceof Set))return o.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),o;let a=[];o.value=n?n.alloc(e,o,new Set,r):new Set;for(let s of i){let c=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise?a.push(c.then(l=>ry(l,o))):ry(c,o)}return a.length?Promise.all(a).then(()=>o):o}});function ry(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Fp=v("$ZodEnum",(e,t)=>{ie.init(e,t);let n=vi(t.entries),o=new Set(n);e._zod.values=o;let r=n.filter(i=>bi.has(typeof i));e._zod.pattern=new RegExp(r.length?`^(${r.map(i=>bt(i.toString())).join("|")})$`:"^[^\\\\s\\\\S]$"),e._zod.parse=(i,a)=>{let s=i.value;return o.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:e}),i}}),Kp=v("$ZodLiteral",(e,t)=>{ie.init(e,t);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(t.values.length?`^(${t.values.map(o=>typeof o=="string"?bt(o):o?bt(o.toString()):String(o)).join("|")})$`:"^[^\\\\s\\\\S]$"),e._zod.parse=(o,r)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Jp=v("$ZodFile",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),Bp=v("$ZodTransform",(e,t)=>{ie.init(e,t),e._zod.optin="optional",Pe.memoizer?.guard(e),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Sr(e.constructor.name);let r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new ot;return n.value=r,n}});function ny(e,t){return e.value=t.issues.length?void 0:t.value,e}var Xs=v("$ZodOptional",(e,t)=>{ie.init(e,t),ue(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",ue(e,"values",n=>{let o=n.def.innerType._zod.values;return o?new Set([...o,void 0]):void 0}),ue(e,"pattern",n=>{let o=n.def.innerType._zod.pattern;return o?new RegExp(`^(${_i(o.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let r=t.innerType._zod.run({value:n.value,issues:[]},o);return r instanceof Promise?r.then(i=>ny(n,i)):ny(n,r)}return t.innerType._zod.run(n,o)}}),Hp=v("$ZodExactOptional",(e,t)=>{Xs.init(e,t),ue(e,"values",n=>n.def.innerType._zod.values),ue(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Yp=v("$ZodNullable",(e,t)=>{ie.init(e,t),ue(e,"optin",n=>n.def.innerType._zod.optin),ue(e,"optout",n=>n.def.innerType._zod.optout),ue(e,"pattern",n=>{let o=n.def.innerType._zod.pattern;return o?new RegExp(`^(${_i(o.source)}|null)$`):void 0}),ue(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),Gp=v("$ZodDefault",(e,t)=>{ie.init(e,t),e._zod.optin="defaulted",ue(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>oy(i,t)):oy(r,t)}});function oy(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Wp=v("$ZodPrefault",(e,t)=>{ie.init(e,t),e._zod.optin="defaulted",ue(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),Xp=v("$ZodNonOptional",(e,t)=>{ie.init(e,t),ue(e,"values",n=>{let o=n.def.innerType._zod.values;return o?new Set([...o].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,o)=>{let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>iy(i,e)):iy(r,e)}});function iy(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Qp=v("$ZodSuccess",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Sr("ZodSuccess");let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.issues.length===0,n)):(n.value=r.issues.length===0,n)}});function ay(e,t,n,o){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(r=>nt(r,o,$e()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var ef=v("$ZodCatch",(e,t)=>{ie.init(e,t),ue(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),ue(e,"optout",n=>n.def.innerType._zod.optout),ue(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run({value:n.value,issues:[]},o);return r instanceof Promise?r.then(i=>ay(n,i,t,o)):ay(n,r,t,o)}}),tf=v("$ZodNaN",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Qs=v("$ZodPipe",(e,t)=>{ie.init(e,t),ue(e,"values",n=>n.def.in._zod.values),ue(e,"optin",n=>n.def.in._zod.optin),ue(e,"optout",n=>n.def.out._zod.optout),ue(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>As(a,t.in,o)):As(i,t.in,o)}let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>As(i,t.out,o)):As(r,t.out,o)}});function As(e,t,n){return e.issues.some(o=>o.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var ji=v("$ZodCodec",(e,t)=>{ie.init(e,t),ue(e,"values",n=>n.def.in._zod.values),ue(e,"optin",n=>n.def.in._zod.optin),ue(e,"optout",n=>n.def.out._zod.optout),ue(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(n,o);return i instanceof Promise?i.then(a=>Us(a,t,o)):Us(i,t,o)}else{let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Us(a,t,o)):Us(i,t,o)}}});function Us(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(i=>Ms(e,i,t.out,n)):Ms(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>Ms(e,i,t.in,n)):Ms(e,r,t.in,n)}}function Ms(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}var rf=v("$ZodPreprocess",(e,t)=>{Qs.init(e,t)}),nf=v("$ZodReadonly",(e,t)=>{ie.init(e,t),ue(e,"propValues",n=>n.def.innerType._zod.propValues),ue(e,"values",n=>n.def.innerType._zod.values),ue(e,"optin",n=>n.def.innerType?._zod?.optin),ue(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(sy):sy(r)}});function sy(e){return e.memo||(e.value=Object.freeze(e.value)),e}var of=v("$ZodTemplateLiteral",(e,t)=>{ie.init(e,t);let n=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let r=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(i,a))}else if(o===null||jd.has(typeof o))n.push(bt(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,r)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),af=v("$ZodFunction",(e,t)=>(ie.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...o){let r=e._def.input?Ss(e._def.input,o):o,i=Reflect.apply(n,this,r);return e._def.output?Ss(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...o){let r=e._def.input?await bs(e._def.input,o):o,i=await Reflect.apply(n,this,r);return e._def.output?await bs(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new Ws({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),sf=v("$ZodPromise",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),Ai=v("$ZodLazy",(e,t)=>{ie.init(e,t),Od(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),ue(e,"pattern",n=>n.innerType?._zod?.pattern),ue(e,"propValues",n=>n.innerType?._zod?.propValues),ue(e,"optin",n=>n.innerType?._zod?.optin??void 0),ue(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),cf=v("$ZodCustom",(e,t)=>{ge.init(e,t),ie.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>cy(i,n,o,e));cy(r,n,o,e)}});function cy(e,t,n,o){if(!e){let r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(Fn(r))}}var rc=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},uf="~memo",py=[];function lf(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var fy=new WeakMap;function df(e,t){let n=fy.get(e);if(n!==void 0)return n;if(t.has(e))return!0;t.add(e);let o=!1,r=s=>{!o&&s?._zod&&df(s,t)&&(o=!0)},i=e._zod.def,a=i.type;switch(a){case"object":{for(let s of Reflect.ownKeys(i.shape))r(i.shape[s]);r(i.catchall);break}case"array":r(i.element);break;case"tuple":for(let s of i.items)r(s);r(i.rest);break;case"record":case"map":r(i.keyType),r(i.valueType);break;case"set":r(i.valueType);break;case"union":for(let s of i.options)r(s);break;case"intersection":r(i.left),r(i.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":r(i.innerType);break;case"pipe":r(i.in),r(i.out);break;case"function":r(i.input),r(i.output);break;case"lazy":r(e._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let s in i){let c=Object.getOwnPropertyDescriptor(i,s);if(!c||c.get)continue;let l=c.value;if(!(!l||typeof l!="object")){if(l._zod)r(l);else if(Array.isArray(l))for(let d of l)r(d)}}}return t.delete(e),fy.set(e,o),o}function mf(e){return df(e,new Set)}function Cw(e,t){let n=e.buckets.get(t);return n||(n=new Map,e.buckets.set(t,n)),n}var ec,tc=[],Nw={alloc(e,t,n){let o=ec;if(!o)return n;ec=void 0;let r={value:n,issues:null};return o.set(t.value,r),tc.push(r),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let n=e._zod.parse,o=(r,i)=>{if(i.direction!=="backward"&&nc(i,r.value))throw new rc;return n(r,i)};e._zod.parse=o,e._zod.run===n&&(e._zod.run=o)})},attach(e){var t;let n,o,r;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let i=e._zod.parse,a=(s,c)=>{if(n===void 0&&(n=df(e,new Set),!n))return e._zod.parse=i,e._zod.run===a&&(e._zod.run=i),i(s,c);let l=s.value;if(l===null||typeof l!="object")return i(s,c);let d=c[uf];d||(d={buckets:new Map,backEdges:void 0},c[uf]=d);let m;o===c?m=r:(m=Cw(d,e),o=c,r=m);let p=m.get(l);if(p)return s.value=p.value,p.issues?p.issues.length&&s.issues.push(...lf(p.issues)):(s.memo=!0,d.backEdges??(d.backEdges=new Set),d.backEdges.add(p.value)),s;ec=m;let f=tc.length,h=i(s,c);ec=void 0;let S=tc.length>f?tc.pop():void 0;return h instanceof Promise?h.then(y=>(S&&(S.issues=y.issues.length?lf(y.issues):py),y)):(S&&(S.issues=h.issues.length?lf(h.issues):py),h)};e._zod.parse=a,e._zod.run===i&&(e._zod.run=a)})}};function Ui(){return Nw}function nc(e,t){let n=e[uf]?.backEdges;return n!==void 0&&t!==null&&typeof t=="object"&&n.has(t)}var Di={};Xt(Di,{ar:()=>hy,az:()=>gy,be:()=>_y,bg:()=>yy,bn:()=>Sy,ca:()=>by,ckb:()=>$y,cs:()=>zy,da:()=>Ry,de:()=>ky,el:()=>wy,en:()=>oc,eo:()=>Iy,es:()=>Ty,fa:()=>xy,fi:()=>Ey,fr:()=>Py,frCA:()=>Oy,gu:()=>Cy,he:()=>Ny,hi:()=>jy,hr:()=>Ay,hu:()=>Uy,hy:()=>Dy,id:()=>Ly,is:()=>qy,it:()=>Vy,ja:()=>Zy,ka:()=>Fy,kh:()=>Ky,km:()=>ic,kn:()=>Jy,ko:()=>By,lt:()=>Yy,mk:()=>Gy,ms:()=>Wy,ne:()=>Xy,nl:()=>Qy,nn:()=>eS,no:()=>tS,ota:()=>rS,pl:()=>oS,ps:()=>nS,pt:()=>iS,ptBR:()=>aS,ro:()=>sS,ru:()=>lS,sk:()=>uS,sl:()=>dS,sv:()=>mS,ta:()=>pS,th:()=>fS,tk:()=>hS,tr:()=>gS,ua:()=>vS,uk:()=>ac,ur:()=>_S,uz:()=>yS,vi:()=>SS,yo:()=>zS,zhCN:()=>bS,zhTW:()=>$S});var jw=()=>{let e={string:{unit:"\\u062D\\u0631\\u0641",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},file:{unit:"\\u0628\\u0627\\u064A\\u062A",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},array:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},set:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},map:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"}};function t(r){return e[r]??null}let n={regex:"\\u0645\\u062F\\u062E\\u0644",email:"\\u0628\\u0631\\u064A\\u062F \\u0625\\u0644\\u0643\\u062A\\u0631\\u0648\\u0646\\u064A",url:"\\u0631\\u0627\\u0628\\u0637",emoji:"\\u0625\\u064A\\u0645\\u0648\\u062C\\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0648\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",date:"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",time:"\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",duration:"\\u0645\\u062F\\u0629 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",ipv4:"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv4",ipv6:"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv6",mac:"\\u0639\\u0646\\u0648\\u0627\\u0646 MAC",cidrv4:"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv4",cidrv6:"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv6",base64:"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64-encoded",base64url:"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64url-encoded",json_string:"\\u0646\\u064E\\u0635 \\u0639\\u0644\\u0649 \\u0647\\u064A\\u0626\\u0629 JSON",e164:"\\u0631\\u0642\\u0645 \\u0647\\u0627\\u062A\\u0641 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 E.164",credit_card:"\\u0631\\u0642\\u0645 \\u0628\\u0637\\u0627\\u0642\\u0629 \\u0627\\u0644\\u0627\\u0626\\u062A\\u0645\\u0627\\u0646",jwt:"JWT",template_literal:"\\u0645\\u062F\\u062E\\u0644"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 instanceof ${r.expected}\\u060C \\u0648\\u0644\\u0643\\u0646 \\u062A\\u0645 \\u0625\\u062F\\u062E\\u0627\\u0644 ${s}`:`\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 ${i}\\u060C \\u0648\\u0644\\u0643\\u0646 \\u062A\\u0645 \\u0625\\u062F\\u062E\\u0627\\u0644 ${s}`}case"invalid_value":return r.values.length===1?`\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 ${R(r.values[0])}`:`\\u0627\\u062E\\u062A\\u064A\\u0627\\u0631 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062A\\u0648\\u0642\\u0639 \\u0627\\u0646\\u062A\\u0642\\u0627\\u0621 \\u0623\\u062D\\u062F \\u0647\\u0630\\u0647 \\u0627\\u0644\\u062E\\u064A\\u0627\\u0631\\u0627\\u062A: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \\u0623\\u0643\\u0628\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0623\\u0646 \\u062A\\u0643\\u0648\\u0646 ${r.origin??"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629"} ${i} ${r.maximum.toString()} ${a.unit??"\\u0639\\u0646\\u0635\\u0631"}`:`\\u0623\\u0643\\u0628\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0623\\u0646 \\u062A\\u0643\\u0648\\u0646 ${r.origin??"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ${r.origin} \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ${i} ${r.minimum.toString()} ${a.unit}`:`\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ${r.origin} \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0628\\u062F\\u0623 \\u0628\\u0640 "${r.prefix}"`:i.format==="ends_with"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0646\\u062A\\u0647\\u064A \\u0628\\u0640 "${i.suffix}"`:i.format==="includes"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u062A\\u0636\\u0645\\u0651\\u064E\\u0646 "${i.includes}"`:i.format==="regex"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0637\\u0627\\u0628\\u0642 \\u0627\\u0644\\u0646\\u0645\\u0637 ${i.pattern}`:`${n[i.format]??r.format} \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644`}case"not_multiple_of":return`\\u0631\\u0642\\u0645 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 \\u0645\\u0646 \\u0645\\u0636\\u0627\\u0639\\u0641\\u0627\\u062A ${r.divisor}`;case"unrecognized_keys":return`\\u0645\\u0639\\u0631\\u0641${r.keys.length>1?"\\u0627\\u062A":""} \\u063A\\u0631\\u064A\\u0628${r.keys.length>1?"\\u0629":""}: ${_(r.keys,"\\u060C ")}`;case"invalid_key":return`\\u0645\\u0639\\u0631\\u0641 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644 \\u0641\\u064A ${r.origin}`;case"invalid_union":return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644";case"invalid_element":return`\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644 \\u0641\\u064A ${r.origin}`;default:return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644"}}};function hy(){return{localeError:jw()}}var Aw=()=>{let e={string:{unit:"simvol",verb:"olmal\\u0131d\\u0131r"},file:{unit:"bayt",verb:"olmal\\u0131d\\u0131r"},array:{unit:"element",verb:"olmal\\u0131d\\u0131r"},set:{unit:"element",verb:"olmal\\u0131d\\u0131r"},map:{unit:"element",verb:"olmal\\u0131d\\u0131r"}};function t(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kart\\u0131 n\\xF6mr\\u0259si",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return r.values.length===1?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${R(r.values[0])}`:`Yanl\\u0131\\u015F se\\xE7im: a\\u015Fa\\u011F\\u0131dak\\u0131lardan biri olmal\\u0131d\\u0131r: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ${r.origin??"d\\u0259y\\u0259r"} ${i}${r.maximum.toString()} ${a.unit??"element"}`:`\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ${r.origin??"d\\u0259y\\u0259r"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Yanl\\u0131\\u015F m\\u0259tn: "${i.prefix}" il\\u0259 ba\\u015Flamal\\u0131d\\u0131r`:i.format==="ends_with"?`Yanl\\u0131\\u015F m\\u0259tn: "${i.suffix}" il\\u0259 bitm\\u0259lidir`:i.format==="includes"?`Yanl\\u0131\\u015F m\\u0259tn: "${i.includes}" daxil olmal\\u0131d\\u0131r`:i.format==="regex"?`Yanl\\u0131\\u015F m\\u0259tn: ${i.pattern} \\u015Fablonuna uy\\u011Fun olmal\\u0131d\\u0131r`:`Yanl\\u0131\\u015F ${n[i.format]??r.format}`}case"not_multiple_of":return`Yanl\\u0131\\u015F \\u0259d\\u0259d: ${r.divisor} il\\u0259 b\\xF6l\\xFCn\\u0259 bil\\u0259n olmal\\u0131d\\u0131r`;case"unrecognized_keys":return`Tan\\u0131nmayan a\\xE7ar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\\u0259 yanl\\u0131\\u015F a\\xE7ar`;case"invalid_union":return"Yanl\\u0131\\u015F d\\u0259y\\u0259r";case"invalid_element":return`${r.origin} daxilind\\u0259 yanl\\u0131\\u015F d\\u0259y\\u0259r`;default:return"Yanl\\u0131\\u015F d\\u0259y\\u0259r"}}};function gy(){return{localeError:Aw()}}function vy(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}var Uw=()=>{let e={string:{unit:{one:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B",few:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B\\u044B",many:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},array:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},set:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},map:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},file:{unit:{one:"\\u0431\\u0430\\u0439\\u0442",few:"\\u0431\\u0430\\u0439\\u0442\\u044B",many:"\\u0431\\u0430\\u0439\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"}};function t(r){return e[r]??null}let n={regex:"\\u0443\\u0432\\u043E\\u0434",email:"email \\u0430\\u0434\\u0440\\u0430\\u0441",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0430 \\u0456 \\u0447\\u0430\\u0441",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0447\\u0430\\u0441",duration:"ISO \\u043F\\u0440\\u0430\\u0446\\u044F\\u0433\\u043B\\u0430\\u0441\\u0446\\u044C",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0430\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0430\\u0441",mac:"MAC \\u0430\\u0434\\u0440\\u0430\\u0441",cidrv4:"IPv4 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64",base64url:"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64url",json_string:"JSON \\u0440\\u0430\\u0434\\u043E\\u043A",e164:"\\u043D\\u0443\\u043C\\u0430\\u0440 E.164",credit_card:"\\u043D\\u0443\\u043C\\u0430\\u0440 \\u043A\\u0440\\u044D\\u0434\\u044B\\u0442\\u043D\\u0430\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B",jwt:"JWT",template_literal:"\\u0443\\u0432\\u043E\\u0434"},o={nan:"NaN",number:"\\u043B\\u0456\\u043A",array:"\\u043C\\u0430\\u0441\\u0456\\u045E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F instanceof ${r.expected}, \\u0430\\u0442\\u0440\\u044B\\u043C\\u0430\\u043D\\u0430 ${s}`:`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F ${i}, \\u0430\\u0442\\u0440\\u044B\\u043C\\u0430\\u043D\\u0430 ${s}`}case"invalid_value":return r.values.length===1?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F ${R(r.values[0])}`:`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0432\\u0430\\u0440\\u044B\\u044F\\u043D\\u0442: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F \\u0430\\u0434\\u0437\\u0456\\u043D \\u0437 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=vy(s,a.unit.one,a.unit.few,a.unit.many);return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u0432\\u044F\\u043B\\u0456\\u043A\\u0456: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435"} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ${a.verb} ${i}${r.maximum.toString()} ${c}`}return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u0432\\u044F\\u043B\\u0456\\u043A\\u0456: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435"} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=vy(s,a.unit.one,a.unit.few,a.unit.many);return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u043C\\u0430\\u043B\\u044B: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${r.origin} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ${a.verb} ${i}${r.minimum.toString()} ${c}`}return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u043C\\u0430\\u043B\\u044B: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${r.origin} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u043F\\u0430\\u0447\\u044B\\u043D\\u0430\\u0446\\u0446\\u0430 \\u0437 "${i.prefix}"`:i.format==="ends_with"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0432\\u0430\\u0446\\u0446\\u0430 \\u043D\\u0430 "${i.suffix}"`:i.format==="includes"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u043C\\u044F\\u0448\\u0447\\u0430\\u0446\\u044C "${i.includes}"`:i.format==="regex"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0430\\u0434\\u043F\\u0430\\u0432\\u044F\\u0434\\u0430\\u0446\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ${i.pattern}`:`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u043B\\u0456\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0431\\u044B\\u0446\\u044C \\u043A\\u0440\\u0430\\u0442\\u043D\\u044B\\u043C ${r.divisor}`;case"unrecognized_keys":return`\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u0430\\u0437\\u043D\\u0430\\u043D\\u044B ${r.keys.length>1?"\\u043A\\u043B\\u044E\\u0447\\u044B":"\\u043A\\u043B\\u044E\\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u043A\\u043B\\u044E\\u0447 \\u0443 ${r.origin}`;case"invalid_union":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434";case"invalid_element":return`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u0430\\u0435 \\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435 \\u045E ${r.origin}`;default:return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434"}}};function _y(){return{localeError:Uw()}}var Mw=()=>{let e={string:{unit:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},file:{unit:"\\u0431\\u0430\\u0439\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},array:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},set:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},map:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"}};function t(r){return e[r]??null}let n={regex:"\\u0432\\u0445\\u043E\\u0434",email:"\\u0438\\u043C\\u0435\\u0439\\u043B \\u0430\\u0434\\u0440\\u0435\\u0441",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u0434\\u0436\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",duration:"ISO \\u043F\\u0440\\u043E\\u0434\\u044A\\u043B\\u0436\\u0438\\u0442\\u0435\\u043B\\u043D\\u043E\\u0441\\u0442",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441",mac:"MAC \\u0430\\u0434\\u0440\\u0435\\u0441",cidrv4:"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"base64-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437",base64url:"base64url-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437",json_string:"JSON \\u043D\\u0438\\u0437",e164:"E.164 \\u043D\\u043E\\u043C\\u0435\\u0440",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0430",jwt:"JWT",template_literal:"\\u0432\\u0445\\u043E\\u0434"},o={nan:"NaN",number:"\\u0447\\u0438\\u0441\\u043B\\u043E",array:"\\u043C\\u0430\\u0441\\u0438\\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D instanceof ${r.expected}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D ${s}`:`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ${i}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D ${s}`}case"invalid_value":return r.values.length===1?`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ${R(r.values[0])}`:`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u044F: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D\\u043E \\u0435\\u0434\\u043D\\u043E \\u043E\\u0442 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u0433\\u043E\\u043B\\u044F\\u043C\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${r.origin??"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442"} \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ${i}${r.maximum.toString()} ${a.unit??"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430"}`:`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u0433\\u043E\\u043B\\u044F\\u043C\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${r.origin??"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442"} \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${r.origin} \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${r.origin} \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;if(i.format==="starts_with")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u0432\\u0430 \\u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u044A\\u0440\\u0448\\u0432\\u0430 \\u0441 "${i.suffix}"`;if(i.format==="includes")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u044E\\u0447\\u0432\\u0430 "${i.includes}"`;if(i.format==="regex")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0441\\u044A\\u0432\\u043F\\u0430\\u0434\\u0430 \\u0441 ${i.pattern}`;let a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D";return i.format==="emoji"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),i.format==="datetime"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),i.format==="date"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430"),i.format==="time"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),i.format==="duration"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430"),`${a} ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E \\u0447\\u0438\\u0441\\u043B\\u043E: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 \\u043A\\u0440\\u0430\\u0442\\u043D\\u043E \\u043D\\u0430 ${r.divisor}`;case"unrecognized_keys":return`\\u041D\\u0435\\u0440\\u0430\\u0437\\u043F\\u043E\\u0437\\u043D\\u0430\\u0442${r.keys.length>1?"\\u0438":""} \\u043A\\u043B\\u044E\\u0447${r.keys.length>1?"\\u043E\\u0432\\u0435":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043A\\u043B\\u044E\\u0447 \\u0432 ${r.origin}`;case"invalid_union":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434";case"invalid_element":return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430 \\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442 \\u0432 ${r.origin}`;default:return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434"}}};function yy(){return{localeError:Mw()}}var Dw=()=>{let e={string:{unit:"\\u0985\\u0995\\u09CD\\u09B7\\u09B0",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},file:{unit:"\\u09AC\\u09BE\\u0987\\u099F",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},array:{unit:"\\u0986\\u0987\\u099F\\u09C7\\u09AE",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},set:{unit:"\\u0986\\u0987\\u099F\\u09C7\\u09AE",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},map:{unit:"\\u098F\\u09A8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"}};function t(r){return e[r]??null}let n={regex:"\\u0987\\u09A8\\u09AA\\u09C1\\u099F",email:"\\u0987\\u09AE\\u09C7\\u0987\\u09B2 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",url:"URL",emoji:"\\u0987\\u09AE\\u09CB\\u099C\\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996 \\u0993 \\u09B8\\u09AE\\u09AF\\u09BC",date:"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996",time:"ISO \\u09B8\\u09AE\\u09AF\\u09BC",duration:"ISO \\u09B8\\u09AE\\u09AF\\u09BC\\u0995\\u09BE\\u09B2",ipv4:"IPv4 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",ipv6:"IPv6 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",mac:"MAC \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",cidrv4:"IPv4 \\u09B0\\u09C7\\u099E\\u09CD\\u099C",cidrv6:"IPv6 \\u09B0\\u09C7\\u099E\\u09CD\\u099C",base64:"base64-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",base64url:"base64url-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",json_string:"JSON \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",e164:"E.164 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0",credit_card:"\\u0995\\u09CD\\u09B0\\u09C7\\u09A1\\u09BF\\u099F \\u0995\\u09BE\\u09B0\\u09CD\\u09A1 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0",jwt:"JWT",template_literal:"\\u0987\\u09A8\\u09AA\\u09C1\\u099F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${i}, \\u09AA\\u09CD\\u09B0\\u09BE\\u09AA\\u09CD\\u09A4 ${s}`}case"invalid_value":return r.values.length===1?`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${R(r.values[0])}`:`\\u0985\\u09AC\\u09C8\\u09A7 \\u0985\\u09AA\\u09B6\\u09A8: ${_(r.values," | ")} \\u098F\\u09B0 \\u09AE\\u09A7\\u09CD\\u09AF\\u09C7 \\u098F\\u0995\\u099F\\u09BF \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${r.origin??"\\u09AE\\u09BE\\u09A8"} ${i}${r.maximum.toString()} ${a.unit??"\\u098F\\u09B2\\u09BF\\u09AE\\u09C7\\u09A8\\u09CD\\u099F"} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${r.origin??"\\u09AE\\u09BE\\u09A8"} ${i}${r.maximum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${r.origin} ${i}${r.minimum.toString()} ${a.unit} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${r.origin} ${i}${r.minimum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${i.prefix}" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C1\\u09B0\\u09C1 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:i.format==="ends_with"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${i.suffix}" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C7\\u09B7 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:i.format==="includes"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${i.includes}" \\u0985\\u09A8\\u09CD\\u09A4\\u09B0\\u09CD\\u09AD\\u09C1\\u0995\\u09CD\\u09A4 \\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:i.format==="regex"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: ${i.pattern} \\u09AA\\u09CD\\u09AF\\u09BE\\u099F\\u09BE\\u09B0\\u09CD\\u09A8 \\u09AE\\u09BF\\u09B2\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09AC\\u09C8\\u09A7 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0985\\u09AC\\u09C8\\u09A7 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0: ${r.divisor} \\u098F\\u09B0 \\u0997\\u09C1\\u09A3\\u09BF\\u09A4\\u0995 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`;case"unrecognized_keys":return`\\u0985\\u099A\\u09C7\\u09A8\\u09BE \\u0995\\u09C0${r.keys.length>1?"\\u0997\\u09C1\\u09B2\\u09CB":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u0995\\u09C0`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09A1\\u09BF\\u09B8\\u0995\\u09CD\\u09B0\\u09BF\\u09AE\\u09BF\\u09A8\\u09C7\\u099F\\u09B0 \\u09AE\\u09BE\\u09A8\\u0964 \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F";case"invalid_element":return`${r.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u09AE\\u09BE\\u09A8`;default:return"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F"}}};function Sy(){return{localeError:Dw()}}var Lw=()=>{let e={string:{unit:"car\\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"adre\\xE7a electr\\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\\xE7a IPv4",ipv6:"adre\\xE7a IPv6",mac:"adre\\xE7a MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\\xFAmero E.164",credit_card:"n\\xFAmero de targeta de cr\\xE8dit",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\\xE0lid: s\'esperava instanceof ${r.expected}, s\'ha rebut ${s}`:`Tipus inv\\xE0lid: s\'esperava ${i}, s\'ha rebut ${s}`}case"invalid_value":return r.values.length===1?`Valor inv\\xE0lid: s\'esperava ${R(r.values[0])}`:`Opci\\xF3 inv\\xE0lida: s\'esperava una de ${_(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s\'esperava que ${r.origin??"el valor"} contingu\\xE9s ${i} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s\'esperava que ${r.origin??"el valor"} fos ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"com a m\\xEDnim":"m\\xE9s de",a=t(r.origin);return a?`Massa petit: s\'esperava que ${r.origin} contingu\\xE9s ${i} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s\'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Format inv\\xE0lid: ha de comen\\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\\xE0lid: ha d\'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\\xE0lid: ha d\'incloure "${i.includes}"`:i.format==="regex"?`Format inv\\xE0lid: ha de coincidir amb el patr\\xF3 ${i.pattern}`:`Format inv\\xE0lid per a ${n[i.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":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Clau inv\\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\\xE0lida";case"invalid_element":return`Element inv\\xE0lid a ${r.origin}`;default:return"Entrada inv\\xE0lida"}}};function by(){return{localeError:Lw()}}var qw=()=>{let e={string:{unit:"\\u067E\\u06CC\\u062A",verb:"\\u0628\\u06CE\\u062A"},file:{unit:"\\u0628\\u0627\\u06CC\\u062A",verb:"\\u0628\\u06CE\\u062A"},array:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"},set:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"},map:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"}};function t(r){return e[r]??null}let n={regex:"regex",email:"\\u0626\\u06CC\\u0645\\u06D5\\u06CC\\u06B5",url:"\\u0628\\u06D5\\u0633\\u062A\\u06D5\\u0631 (URL)",emoji:"\\u0626\\u06CC\\u0645\\u06C6\\u062C\\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A \\u0648 \\u06A9\\u0627\\u062A",date:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A",time:"\\u06A9\\u0627\\u062A",duration:"\\u0645\\u0627\\u0648\\u06D5",ipv4:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv4",ipv6:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv6",mac:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC MAC",cidrv4:"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv4",cidrv6:"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv6",base64:"\\u062F\\u06D5\\u0642\\u06CC base64",base64url:"\\u062F\\u06D5\\u0642\\u06CC base64url",json_string:"\\u062F\\u06D5\\u0642\\u06CC JSON",e164:"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC E.164",credit_card:"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC \\u06A9\\u0627\\u0631\\u062A\\u06CC \\u06A9\\u0631\\u06CE\\u062F\\u06CC\\u062A",jwt:"JWT",template_literal:"\\u062A\\u06CE\\u06A9\\u0631\\u062F\\u06D5"},o={nan:"NaN",string:"\\u0646\\u0648\\u0648\\u0633\\u06CC\\u0646",number:"\\u0698\\u0645\\u0627\\u0631\\u06D5",boolean:"boolean",array:"array",object:"object",date:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A",integer:"\\u0698\\u0645\\u0627\\u0631\\u06D5",float:"\\u0698\\u0645\\u0627\\u0631\\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a,c=["\\u0627","\\u0648","\\u06C6","\\u0648\\u0648","\\u06D5","\\u06CC","\\u06CE"].some(d=>s.endsWith(d))?"\\u06CC\\u06D5":"\\u06D5",l=/^[a-zA-Z]+$/.test(s);return a==="null"||a==="undefined"?"\\u062F\\u0627\\u0648\\u0627\\u06A9\\u0631\\u0627\\u0648\\u06D5":`\\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 ${i} \\u0628\\u06CE\\u062A\\u060C \\u0628\\u06D5\\u06B5\\u0627\\u0645 ${s}${l?"":c}`}case"invalid_value":return r.values.length===1?`\\u0628\\u06D5\\u0647\\u0627\\u06A9\\u06D5 \\u0646\\u0627\\u062F\\u0631\\u0648\\u0648\\u0633\\u062A\\u06D5: \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 ${R(r.values[0])} \\u0628\\u06CE\\u062A`:`\\u0647\\u06D5\\u06B5\\u0628\\u0698\\u0627\\u0631\\u062F\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 \\u06CC\\u06D5\\u06A9\\u06CE\\u06A9 \\u0628\\u06CE\\u062A \\u0644\\u06D5 ${_(r.values,"|")}`;case"too_big":{let i=t(r.origin);return i?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${r.maximum.toString()} ${i.unit} ${i.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${r.maximum.toString()} \\u0628\\u06CE\\u062A`}case"too_small":{let i=t(r.origin);return i?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${r.minimum.toString()} ${i.unit} ${i.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${r.minimum.toString()} \\u0628\\u06CE\\u062A`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u062F\\u06D5\\u0633\\u062A\\u067E\\u06CE\\u0628\\u06A9\\u0627\\u062A \\u0628\\u06D5 "${i.prefix}"`:i.format==="ends_with"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u06A9\\u06C6\\u062A\\u0627\\u06CC\\u06CC\\u0628\\u06CE\\u062A \\u0628\\u06D5 "${i.suffix}"`:i.format==="includes"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 "${i.includes}" \\u0644\\u06D5\\u062E\\u06C6\\u0628\\u06AF\\u0631\\u06CE\\u062A`:i.format==="regex"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0644\\u06D5\\u06AF\\u06D5\\u06B5 \\u067E\\u0627\\u062A\\u06CE\\u0631\\u0646\\u06CC ${i.pattern} \\u0628\\u06AF\\u0648\\u0646\\u062C\\u06CE\\u062A`:`\\u0628\\u06D5\\u0647\\u0627\\u06CC ${n[i.format]??r.format} \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A\\u06D5`}case"not_multiple_of":return`\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u062F\\u06D5\\u0628\\u06CE\\u062A \\u0686\\u06D5\\u0646\\u062F \\u0647\\u06CE\\u0646\\u062F\\u06D5 \\u0628\\u06CE\\u062A \\u0628\\u06C6 ${r.divisor}`;case"unrecognized_keys":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u06D5\\u0646\\u0627\\u0633\\u0631\\u0627\\u0648: ${_(r.keys,", ")}`;case"invalid_key":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A \\u0644\\u06D5 ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0628\\u06D5\\u0647\\u0627\\u06CC \\u0646\\u06D5\\u0646\\u0627\\u0633\\u0631\\u0627\\u0648 \\u0647\\u06D5\\u06CC\\u06D5. \\u0628\\u06D5\\u0647\\u0627\\u06CC \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648: ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u06CC\\u06D5\\u06A9\\u06AF\\u0631\\u062A\\u0646\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A";case"invalid_element":return`${r.origin} \\u0628\\u06D5\\u0647\\u0627\\u06A9\\u06D5 \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A\\u06D5`;default:return"\\u062A\\u06CE\\u06A9\\u0631\\u062F\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A"}}};function $y(){return{localeError:qw()}}var Vw=()=>{let e={string:{unit:"znak\\u016F",verb:"m\\xEDt"},file:{unit:"bajt\\u016F",verb:"m\\xEDt"},array:{unit:"prvk\\u016F",verb:"m\\xEDt"},set:{unit:"prvk\\u016F",verb:"m\\xEDt"},map:{unit:"prvk\\u016F",verb:"m\\xEDt"}};function t(r){return e[r]??null}let n={regex:"regul\\xE1rn\\xED v\\xFDraz",email:"e-mailov\\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \\u010Das ve form\\xE1tu ISO",date:"datum ve form\\xE1tu ISO",time:"\\u010Das ve form\\xE1tu ISO",duration:"doba trv\\xE1n\\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64",base64url:"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64url",json_string:"\\u0159et\\u011Bzec ve form\\xE1tu JSON",e164:"\\u010D\\xEDslo E.164",credit_card:"\\u010D\\xEDslo kreditn\\xED karty",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\\u010D\\xEDslo",string:"\\u0159et\\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no instanceof ${r.expected}, obdr\\u017Eeno ${s}`:`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${i}, obdr\\u017Eeno ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${R(r.values[0])}`:`Neplatn\\xE1 mo\\u017Enost: o\\u010Dek\\xE1v\\xE1na jedna z hodnot ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ${r.origin??"hodnota"} mus\\xED m\\xEDt ${i}${r.maximum.toString()} ${a.unit??"prvk\\u016F"}`:`Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ${r.origin??"hodnota"} mus\\xED b\\xFDt ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ${r.origin??"hodnota"} mus\\xED m\\xEDt ${i}${r.minimum.toString()} ${a.unit??"prvk\\u016F"}`:`Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ${r.origin??"hodnota"} mus\\xED b\\xFDt ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED za\\u010D\\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED kon\\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED odpov\\xEDdat vzoru ${i.pattern}`:`Neplatn\\xFD form\\xE1t ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED b\\xFDt n\\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\\xE1m\\xE9 kl\\xED\\u010De: ${_(r.keys,", ")}`;case"invalid_key":return`Neplatn\\xFD kl\\xED\\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\\xFD vstup";case"invalid_element":return`Neplatn\\xE1 hodnota v ${r.origin}`;default:return"Neplatn\\xFD vstup"}}};function zy(){return{localeError:Vw()}}var Zw=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\\xE6t",date:"ISO-dato",time:"ISO-klokkesl\\xE6t",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig v\\xE6rdi: forventede ${R(r.values[0])}`:`Ugyldigt valg: forventede en af f\\xF8lgende ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),s=o[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),s=o[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\\xF8gler":"Ukendt n\\xF8gle"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function Ry(){return{localeError:Zw()}}var Fw=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return r.values.length===1?`Ung\\xFCltige Eingabe: erwartet ${R(r.values[0])}`:`Ung\\xFCltige Option: erwartet eine von ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ung\\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\\xFCltig: ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ung\\xFCltiger Schl\\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\\xFCltige Eingabe";case"invalid_element":return`Ung\\xFCltiger Wert in ${r.origin}`;default:return"Ung\\xFCltige Eingabe"}}};function ky(){return{localeError:Fw()}}var Kw=()=>{let e={string:{unit:"\\u03C7\\u03B1\\u03C1\\u03B1\\u03BA\\u03C4\\u03AE\\u03C1\\u03B5\\u03C2",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},file:{unit:"bytes",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},array:{unit:"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},set:{unit:"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},map:{unit:"\\u03BA\\u03B1\\u03C4\\u03B1\\u03C7\\u03C9\\u03C1\\u03AE\\u03C3\\u03B5\\u03B9\\u03C2",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"}};function t(r){return e[r]??null}let n={regex:"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2",email:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1 \\u03BA\\u03B1\\u03B9 \\u03CE\\u03C1\\u03B1",date:"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1",time:"ISO \\u03CE\\u03C1\\u03B1",duration:"ISO \\u03B4\\u03B9\\u03AC\\u03C1\\u03BA\\u03B5\\u03B9\\u03B1",ipv4:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv4",ipv6:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv6",mac:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 MAC",cidrv4:"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv4",cidrv6:"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv6",base64:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64",base64url:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64url",json_string:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC JSON",e164:"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 E.164",credit_card:"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 \\u03C0\\u03B9\\u03C3\\u03C4\\u03C9\\u03C4\\u03B9\\u03BA\\u03AE\\u03C2 \\u03BA\\u03AC\\u03C1\\u03C4\\u03B1\\u03C2",jwt:"JWT",template_literal:"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return typeof r.expected=="string"&&/^[A-Z]/.test(r.expected)?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD instanceof ${r.expected}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${s}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${i}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${s}`}case"invalid_value":return r.values.length===1?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${R(r.values[0])}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03C0\\u03B9\\u03BB\\u03BF\\u03B3\\u03AE: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD \\u03AD\\u03BD\\u03B1 \\u03B1\\u03C0\\u03CC ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B5\\u03B3\\u03AC\\u03BB\\u03BF: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${r.origin??"\\u03C4\\u03B9\\u03BC\\u03AE"} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${i}${r.maximum.toString()} ${a.unit??"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1"}`:`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B5\\u03B3\\u03AC\\u03BB\\u03BF: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${r.origin??"\\u03C4\\u03B9\\u03BC\\u03AE"} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${r.origin} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${i}${r.minimum.toString()} ${a.unit}`:`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${r.origin} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03BE\\u03B5\\u03BA\\u03B9\\u03BD\\u03AC \\u03BC\\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B5\\u03BB\\u03B5\\u03B9\\u03CE\\u03BD\\u03B5\\u03B9 \\u03BC\\u03B5 "${i.suffix}"`:i.format==="includes"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C0\\u03B5\\u03C1\\u03B9\\u03AD\\u03C7\\u03B5\\u03B9 "${i.includes}"`:i.format==="regex"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B1\\u03B9\\u03C1\\u03B9\\u03AC\\u03B6\\u03B5\\u03B9 \\u03BC\\u03B5 \\u03C4\\u03BF \\u03BC\\u03BF\\u03C4\\u03AF\\u03B2\\u03BF ${i.pattern}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF: ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF\\u03C2 \\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 \\u03C0\\u03BF\\u03BB\\u03BB\\u03B1\\u03C0\\u03BB\\u03AC\\u03C3\\u03B9\\u03BF \\u03C4\\u03BF\\u03C5 ${r.divisor}`;case"unrecognized_keys":return`\\u0386\\u03B3\\u03BD\\u03C9\\u03C3\\u03C4${r.keys.length>1?"\\u03B1":"\\u03BF"} \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4${r.keys.length>1?"\\u03B9\\u03AC":"\\u03AF"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4\\u03AF \\u03C3\\u03C4\\u03BF ${r.origin}`;case"invalid_union":return"\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2";case"invalid_element":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C4\\u03B9\\u03BC\\u03AE \\u03C3\\u03C4\\u03BF ${r.origin}`;default:return"\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2"}}};function wy(){return{localeError:Kw()}}var Jw=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};function r(i,a){return i==="number"&&typeof a=="number"&&!Number.isFinite(a)?String(a):o[i]??i}return i=>{switch(i.code){case"invalid_type":{let a=r(i.expected),s=k(i.input),c=r(s,i.input);return`Invalid input: expected ${a}, received ${c}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${R(i.values[0])}`:`Invalid option: expected one of ${_(i.values,"|")}`;case"too_big":{let a=i.exact?"exactly ":i.inclusive?"<=":"<",s=t(i.origin);return s?`Too big: expected ${i.origin??"value"} to have ${a}${i.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${a}${i.maximum.toString()}`}case"too_small":{let a=i.exact?"exactly ":i.inclusive?">=":">",s=t(i.origin);return s?`Too small: expected ${i.origin} to have ${a}${i.minimum.toString()} ${s.unit}`:`Too small: expected ${i.origin} to be ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${n[a.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${_(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(s=>`\'${s}\'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function oc(){return{localeError:Jw()}}var Bw=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\\u011Dis instanceof ${r.expected}, ricevi\\u011Dis ${s}`:`Nevalida enigo: atendi\\u011Dis ${i}, ricevi\\u011Dis ${s}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\\u011Dis ${R(r.values[0])}`:`Nevalida opcio: atendi\\u011Dis unu el ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \\u015Dlosilo${r.keys.length>1?"j":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Nevalida \\u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function Iy(){return{localeError:Bw()}}var Hw=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"direcci\\xF3n de correo electr\\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\\xF3n ISO",ipv4:"direcci\\xF3n IPv4",ipv6:"direcci\\xF3n IPv6",mac:"direcci\\xF3n MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\\xFAmero E.164",credit_card:"n\\xFAmero de tarjeta de cr\\xE9dito",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\\xFAmero grande",symbol:"s\\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\\xF3n",union:"uni\\xF3n",literal:"literal",promise:"promesa",void:"vac\\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\\xE1lida: se esperaba ${R(r.values[0])}`:`Opci\\xF3n inv\\xE1lida: se esperaba una de ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Demasiado peque\\xF1o: se esperaba que ${s} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\\xF1o: se esperaba que ${s} fuera ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cadena inv\\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\\xE1lida: debe coincidir con el patr\\xF3n ${i.pattern}`:`Inv\\xE1lido ${n[i.format]??r.format}`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: debe ser m\\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Llave inv\\xE1lida en ${o[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\\xE1lida";case"invalid_element":return`Valor inv\\xE1lido en ${o[r.origin]??r.origin}`;default:return"Entrada inv\\xE1lida"}}};function Ty(){return{localeError:Hw()}}var Yw=()=>{let e={string:{unit:"\\u06A9\\u0627\\u0631\\u0627\\u06A9\\u062A\\u0631",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},file:{unit:"\\u0628\\u0627\\u06CC\\u062A",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},array:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},set:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},map:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"}};function t(r){return e[r]??null}let n={regex:"\\u0648\\u0631\\u0648\\u062F\\u06CC",email:"\\u0622\\u062F\\u0631\\u0633 \\u0627\\u06CC\\u0645\\u06CC\\u0644",url:"URL",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0648 \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",date:"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0627\\u06CC\\u0632\\u0648",time:"\\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",duration:"\\u0645\\u062F\\u062A \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",ipv4:"IPv4 \\u0622\\u062F\\u0631\\u0633",ipv6:"IPv6 \\u0622\\u062F\\u0631\\u0633",mac:"MAC \\u0622\\u062F\\u0631\\u0633",cidrv4:"IPv4 \\u062F\\u0627\\u0645\\u0646\\u0647",cidrv6:"IPv6 \\u062F\\u0627\\u0645\\u0646\\u0647",base64:"base64-encoded \\u0631\\u0634\\u062A\\u0647",base64url:"base64url-encoded \\u0631\\u0634\\u062A\\u0647",json_string:"JSON \\u0631\\u0634\\u062A\\u0647",e164:"E.164 \\u0639\\u062F\\u062F",credit_card:"\\u0634\\u0645\\u0627\\u0631\\u0647 \\u06A9\\u0627\\u0631\\u062A \\u0627\\u0639\\u062A\\u0628\\u0627\\u0631\\u06CC",jwt:"JWT",template_literal:"\\u0648\\u0631\\u0648\\u062F\\u06CC"},o={nan:"NaN",number:"\\u0639\\u062F\\u062F",array:"\\u0622\\u0631\\u0627\\u06CC\\u0647"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A instanceof ${r.expected} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F\\u060C ${s} \\u062F\\u0631\\u06CC\\u0627\\u0641\\u062A \\u0634\\u062F`:`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ${i} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F\\u060C ${s} \\u062F\\u0631\\u06CC\\u0627\\u0641\\u062A \\u0634\\u062F`}case"invalid_value":return r.values.length===1?`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ${R(r.values[0])} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F`:`\\u06AF\\u0632\\u06CC\\u0646\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A \\u06CC\\u06A9\\u06CC \\u0627\\u0632 ${_(r.values,"|")} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ${r.origin??"\\u0645\\u0642\\u062F\\u0627\\u0631"} \\u0628\\u0627\\u06CC\\u062F ${i}${r.maximum.toString()} ${a.unit??"\\u0639\\u0646\\u0635\\u0631"} \\u0628\\u0627\\u0634\\u062F`:`\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ${r.origin??"\\u0645\\u0642\\u062F\\u0627\\u0631"} \\u0628\\u0627\\u06CC\\u062F ${i}${r.maximum.toString()} \\u0628\\u0627\\u0634\\u062F`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ${r.origin} \\u0628\\u0627\\u06CC\\u062F ${i}${r.minimum.toString()} ${a.unit} \\u0628\\u0627\\u0634\\u062F`:`\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ${r.origin} \\u0628\\u0627\\u06CC\\u062F ${i}${r.minimum.toString()} \\u0628\\u0627\\u0634\\u062F`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 "${i.prefix}" \\u0634\\u0631\\u0648\\u0639 \\u0634\\u0648\\u062F`:i.format==="ends_with"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 "${i.suffix}" \\u062A\\u0645\\u0627\\u0645 \\u0634\\u0648\\u062F`:i.format==="includes"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0634\\u0627\\u0645\\u0644 "${i.includes}" \\u0628\\u0627\\u0634\\u062F`:i.format==="regex"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 \\u0627\\u0644\\u06AF\\u0648\\u06CC ${i.pattern} \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F`:`${n[i.format]??r.format} \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631`}case"not_multiple_of":return`\\u0639\\u062F\\u062F \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0645\\u0636\\u0631\\u0628 ${r.divisor} \\u0628\\u0627\\u0634\\u062F`;case"unrecognized_keys":return`\\u06A9\\u0644\\u06CC\\u062F${r.keys.length>1?"\\u0647\\u0627\\u06CC":""} \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633: ${_(r.keys,", ")}`;case"invalid_key":return`\\u06A9\\u0644\\u06CC\\u062F \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633 \\u062F\\u0631 ${r.origin}`;case"invalid_union":return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631";case"invalid_element":return`\\u0645\\u0642\\u062F\\u0627\\u0631 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631 \\u062F\\u0631 ${r.origin}`;default:return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631"}}};function xy(){return{localeError:Yw()}}var Gw=()=>{let e={string:{unit:"merkki\\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\\xE4iv\\xE4m\\xE4\\xE4r\\xE4n"}};function t(r){return e[r]??null}let n={regex:"s\\xE4\\xE4nn\\xF6llinen lauseke",email:"s\\xE4hk\\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\\xE4iv\\xE4m\\xE4\\xE4r\\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\\xF6te: t\\xE4ytyy olla ${R(r.values[0])}`:`Virheellinen valinta: t\\xE4ytyy olla yksi seuraavista: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\\xE4ytyy olla ${i}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\\xE4ytyy olla ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Virheellinen sy\\xF6te: t\\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\\xF6te: t\\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\\xF6te: t\\xE4ytyy sis\\xE4lt\\xE4\\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\\xF6te: t\\xE4ytyy vastata s\\xE4\\xE4nn\\xF6llist\\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.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"}: ${_(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 Ey(){return{localeError:Gw()}}var Ww=()=>{let e={string:{unit:"caract\\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\\xE9l\\xE9ments",verb:"avoir"},set:{unit:"\\xE9l\\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"expression r\\xE9guli\\xE8re",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne de caract\\xE8res encod\\xE9e en base64",base64url:"cha\\xEEne de caract\\xE8res encod\\xE9e en base64url",json_string:"cha\\xEEne de caract\\xE8res JSON",e164:"num\\xE9ro au format E.164",credit_card:"num\\xE9ro de carte de cr\\xE9dit",jwt:"JWT",template_literal:"entr\\xE9e"},o={string:"cha\\xEEne de caract\\xE8res",number:"nombre",int:"entier",boolean:"bool\\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\\xE9e invalide : instance de ${r.expected} attendu, ${s} re\\xE7u`:`Entr\\xE9e invalide : ${i} attendu, ${s} re\\xE7u`}case"invalid_value":return r.values.length===1?`Entr\\xE9e invalide : ${R(r.values[0])} attendu`:`Option invalide : une valeur parmi ${_(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${o[r.origin]??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\\xE9l\\xE9ment(s)"}`:`Trop grand : ${o[r.origin]??"valeur"} doit \\xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${o[r.origin]??"valeur"} doit ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${o[r.origin]??"valeur"} doit \\xEAtre ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\\xEEne de caract\\xE8res invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\\xEEne de caract\\xE8res invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\\xEEne de caract\\xE8res invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\\xEEne de caract\\xE8res invalide : doit correspondre au motif ${i.pattern}`:`${n[i.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":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\\xE9e invalide"}}};function Py(){return{localeError:Ww()}}var Xw=()=>{let e={string:{unit:"caract\\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\\xE9l\\xE9ments",verb:"avoir"},set:{unit:"\\xE9l\\xE9ments",verb:"avoir"},map:{unit:"\\xE9l\\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"entr\\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne encod\\xE9e en base64",base64url:"cha\\xEEne encod\\xE9e en base64url",json_string:"cha\\xEEne JSON",e164:"num\\xE9ro E.164",credit_card:"num\\xE9ro de carte de cr\\xE9dit",jwt:"JWT",template_literal:"entr\\xE9e"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\\xE9e invalide : attendu instanceof ${r.expected}, re\\xE7u ${s}`:`Entr\\xE9e invalide : attendu ${i}, re\\xE7u ${s}`}case"invalid_value":return r.values.length===1?`Entr\\xE9e invalide : attendu ${R(r.values[0])}`:`Option invalide : attendu l\'une des valeurs suivantes ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.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":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\\xE9e invalide"}}};function Oy(){return{localeError:Xw()}}var Qw=()=>{let e={string:{unit:"\\u0A85\\u0A95\\u0ACD\\u0AB7\\u0AB0",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},file:{unit:"\\u0AAC\\u0ABE\\u0AAF\\u0A9F",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},array:{unit:"\\u0A86\\u0A87\\u0A9F\\u0AAE",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},set:{unit:"\\u0A86\\u0A87\\u0A9F\\u0AAE",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},map:{unit:"\\u0A8F\\u0AA8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0AC0",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"}};function t(r){return e[r]??null}let n={regex:"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F",email:"\\u0A88\\u0AAE\\u0AC7\\u0A87\\u0AB2 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",url:"URL",emoji:"\\u0A87\\u0AAE\\u0ACB\\u0A9C\\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96 \\u0A85\\u0AA8\\u0AC7 \\u0AB8\\u0AAE\\u0AAF",date:"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96",time:"ISO \\u0AB8\\u0AAE\\u0AAF",duration:"ISO \\u0A85\\u0AB5\\u0AA7\\u0ABF",ipv4:"IPv4 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",ipv6:"IPv6 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",mac:"MAC \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",cidrv4:"IPv4 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0",cidrv6:"IPv6 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0",base64:"base64-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",base64url:"base64url-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",json_string:"JSON \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",e164:"E.164 \\u0AA8\\u0A82\\u0AAC\\u0AB0",credit_card:"\\u0A95\\u0ACD\\u0AB0\\u0AC7\\u0AA1\\u0ABF\\u0A9F \\u0A95\\u0ABE\\u0AB0\\u0ACD\\u0AA1 \\u0AA8\\u0A82\\u0AAC\\u0AB0",jwt:"JWT",template_literal:"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${i}, \\u0AAA\\u0ACD\\u0AB0\\u0ABE\\u0AAA\\u0ACD\\u0AA4 ${s}`}case"invalid_value":return r.values.length===1?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${R(r.values[0])}`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB5\\u0ABF\\u0A95\\u0AB2\\u0ACD\\u0AAA: ${_(r.values," | ")} \\u0AAE\\u0ABE\\u0AA7\\u0ACD\\u0AAF\\u0AAE\\u0AA5\\u0AC0 \\u0A8F\\u0A95 \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0A96\\u0AC2\\u0AAC \\u0AAE\\u0ACB\\u0A9F\\u0AC1\\u0A82: ${r.origin??"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF"} ${i}${r.maximum.toString()} ${a.unit??"\\u0A8F\\u0AB2\\u0ABF\\u0AAE\\u0AC7\\u0AA8\\u0ACD\\u0A9F"} \\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A96\\u0AC2\\u0AAC \\u0AAE\\u0ACB\\u0A9F\\u0AC1\\u0A82: ${r.origin??"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF"} ${i}${r.maximum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${r.origin} ${i}${r.minimum.toString()} ${a.unit} \\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${r.origin} ${i}${r.minimum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${i.prefix}" \\u0AA5\\u0AC0 \\u0AB6\\u0AB0\\u0AC2 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:i.format==="ends_with"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${i.suffix}" \\u0AAA\\u0AB0 \\u0AB8\\u0AAE\\u0ABE\\u0AAA\\u0ACD\\u0AA4 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:i.format==="includes"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${i.includes}" \\u0AB6\\u0ABE\\u0AAE\\u0AC7\\u0AB2 \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:i.format==="regex"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: \\u0AAA\\u0AC7\\u0A9F\\u0AB0\\u0ACD\\u0AA8 ${i.pattern} \\u0AB8\\u0ABE\\u0AA5\\u0AC7 \\u0AAE\\u0AC7\\u0AB3 \\u0A96\\u0ABE\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AA8\\u0A82\\u0AAC\\u0AB0: ${r.divisor} \\u0AA8\\u0ACB \\u0A97\\u0AC1\\u0AA3\\u0ABE\\u0A82\\u0A95 \\u0AB9\\u0ACB\\u0AB5\\u0ACB \\u0A9C\\u0ACB\\u0A88\\u0A8F`;case"unrecognized_keys":return`\\u0A93\\u0AB3\\u0A96\\u0AC0 \\u0AB6\\u0A95\\u0ABE\\u0AA4\\u0ABE \\u0AA8\\u0AB9\\u0AC0\\u0A82 \\u0AA4\\u0AC7 \\u0A95\\u0AC0${r.keys.length>1?"\\u0A93":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \\u0AAE\\u0ABE\\u0A82 \\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A95\\u0AC0`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AA1\\u0ABF\\u0AB8\\u0ACD\\u0A95\\u0ACD\\u0AB0\\u0ABF\\u0AAE\\u0ABF\\u0AA8\\u0AC7\\u0A9F\\u0AB0 \\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF. \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F";case"invalid_element":return`${r.origin} \\u0AAE\\u0ABE\\u0A82 \\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF`;default:return"\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F"}}};function Cy(){return{localeError:Qw()}}var eI=()=>{let e={string:{label:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA",gender:"f"},number:{label:"\\u05DE\\u05E1\\u05E4\\u05E8",gender:"m"},boolean:{label:"\\u05E2\\u05E8\\u05DA \\u05D1\\u05D5\\u05DC\\u05D9\\u05D0\\u05E0\\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA",gender:"m"},array:{label:"\\u05DE\\u05E2\\u05E8\\u05DA",gender:"m"},object:{label:"\\u05D0\\u05D5\\u05D1\\u05D9\\u05D9\\u05E7\\u05D8",gender:"m"},null:{label:"\\u05E2\\u05E8\\u05DA \\u05E8\\u05D9\\u05E7 (null)",gender:"m"},undefined:{label:"\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05DE\\u05D5\\u05D2\\u05D3\\u05E8 (undefined)",gender:"m"},symbol:{label:"\\u05E1\\u05D9\\u05DE\\u05D1\\u05D5\\u05DC (Symbol)",gender:"m"},function:{label:"\\u05E4\\u05D5\\u05E0\\u05E7\\u05E6\\u05D9\\u05D4",gender:"f"},map:{label:"\\u05DE\\u05E4\\u05D4 (Map)",gender:"f"},set:{label:"\\u05E7\\u05D1\\u05D5\\u05E6\\u05D4 (Set)",gender:"f"},file:{label:"\\u05E7\\u05D5\\u05D1\\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05D9\\u05D3\\u05D5\\u05E2",gender:"m"},value:{label:"\\u05E2\\u05E8\\u05DA",gender:"m"}},t={string:{unit:"\\u05EA\\u05D5\\u05D5\\u05D9\\u05DD",shortLabel:"\\u05E7\\u05E6\\u05E8",longLabel:"\\u05D0\\u05E8\\u05D5\\u05DA"},file:{unit:"\\u05D1\\u05D9\\u05D9\\u05D8\\u05D9\\u05DD",shortLabel:"\\u05E7\\u05D8\\u05DF",longLabel:"\\u05D2\\u05D3\\u05D5\\u05DC"},array:{unit:"\\u05E4\\u05E8\\u05D9\\u05D8\\u05D9\\u05DD",shortLabel:"\\u05E7\\u05D8\\u05DF",longLabel:"\\u05D2\\u05D3\\u05D5\\u05DC"},set:{unit:"\\u05E4\\u05E8\\u05D9\\u05D8\\u05D9\\u05DD",shortLabel:"\\u05E7\\u05D8\\u05DF",longLabel:"\\u05D2\\u05D3\\u05D5\\u05DC"},number:{unit:"",shortLabel:"\\u05E7\\u05D8\\u05DF",longLabel:"\\u05D2\\u05D3\\u05D5\\u05DC"}},n=l=>l?e[l]:void 0,o=l=>{let d=n(l);return d?d.label:l??e.unknown.label},r=l=>`\\u05D4${o(l)}`,i=l=>(n(l)?.gender??"m")==="f"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA":"\\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA",a=l=>l?t[l]??null:null,s={regex:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},email:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05D0\\u05D9\\u05DE\\u05D9\\u05D9\\u05DC",gender:"f"},url:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05E8\\u05E9\\u05EA",gender:"f"},emoji:{label:"\\u05D0\\u05D9\\u05DE\\u05D5\\u05D2\'\\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA \\u05D5\\u05D6\\u05DE\\u05DF ISO",gender:"m"},date:{label:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA ISO",gender:"m"},time:{label:"\\u05D6\\u05DE\\u05DF ISO",gender:"m"},duration:{label:"\\u05DE\\u05E9\\u05DA \\u05D6\\u05DE\\u05DF ISO",gender:"m"},ipv4:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv4",gender:"f"},ipv6:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv6",gender:"f"},mac:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA MAC",gender:"f"},cidrv4:{label:"\\u05D8\\u05D5\\u05D5\\u05D7 IPv4",gender:"m"},cidrv6:{label:"\\u05D8\\u05D5\\u05D5\\u05D7 IPv6",gender:"m"},base64:{label:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64",gender:"f"},base64url:{label:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64 \\u05DC\\u05DB\\u05EA\\u05D5\\u05D1\\u05D5\\u05EA \\u05E8\\u05E9\\u05EA",gender:"f"},json_string:{label:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA JSON",gender:"f"},e164:{label:"\\u05DE\\u05E1\\u05E4\\u05E8 E.164",gender:"m"},credit_card:{label:"\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DB\\u05E8\\u05D8\\u05D9\\u05E1 \\u05D0\\u05E9\\u05E8\\u05D0\\u05D9",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},ends_with:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},includes:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},lowercase:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},starts_with:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},uppercase:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"}},c={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let d=l.expected,m=c[d??""]??o(d),p=k(l.input),f=c[p]??e[p]?.label??p;return/^[A-Z]/.test(l.expected)?`\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA instanceof ${l.expected}, \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ${f}`:`\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${m}, \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ${f}`}case"invalid_value":{if(l.values.length===1)return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05E2\\u05E8\\u05DA \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${R(l.values[0])}`;let d=l.values.map(f=>R(f));if(l.values.length===2)return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05D0\\u05E4\\u05E9\\u05E8\\u05D5\\u05D9\\u05D5\\u05EA \\u05D4\\u05DE\\u05EA\\u05D0\\u05D9\\u05DE\\u05D5\\u05EA \\u05D4\\u05DF ${d[0]} \\u05D0\\u05D5 ${d[1]}`;let m=d[d.length-1];return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05D0\\u05E4\\u05E9\\u05E8\\u05D5\\u05D9\\u05D5\\u05EA \\u05D4\\u05DE\\u05EA\\u05D0\\u05D9\\u05DE\\u05D5\\u05EA \\u05D4\\u05DF ${d.slice(0,-1).join(", ")} \\u05D0\\u05D5 ${m}`}case"too_big":{let d=a(l.origin),m=r(l.origin??"value");if(l.origin==="string")return`${d?.longLabel??"\\u05D0\\u05E8\\u05D5\\u05DA"} \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${l.maximum.toString()} ${d?.unit??""} ${l.inclusive?"\\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA":"\\u05DC\\u05DB\\u05DC \\u05D4\\u05D9\\u05D5\\u05EA\\u05E8"}`.trim();if(l.origin==="number"){let h=l.inclusive?`\\u05E7\\u05D8\\u05DF \\u05D0\\u05D5 \\u05E9\\u05D5\\u05D5\\u05D4 \\u05DC-${l.maximum}`:`\\u05E7\\u05D8\\u05DF \\u05DE-${l.maximum}`;return`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4":"\\u05E6\\u05E8\\u05D9\\u05DA",S=l.inclusive?`${l.maximum} ${d?.unit??""} \\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA`:`\\u05E4\\u05D7\\u05D5\\u05EA \\u05DE-${l.maximum} ${d?.unit??""}`;return`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${S}`.trim()}let p=l.inclusive?"<=":"<",f=i(l.origin??"value");return d?.unit?`${d.longLabel} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\\u05D2\\u05D3\\u05D5\\u05DC"} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.maximum.toString()}`}case"too_small":{let d=a(l.origin),m=r(l.origin??"value");if(l.origin==="string")return`${d?.shortLabel??"\\u05E7\\u05E6\\u05E8"} \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${l.minimum.toString()} ${d?.unit??""} ${l.inclusive?"\\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8":"\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA"}`.trim();if(l.origin==="number"){let h=l.inclusive?`\\u05D2\\u05D3\\u05D5\\u05DC \\u05D0\\u05D5 \\u05E9\\u05D5\\u05D5\\u05D4 \\u05DC-${l.minimum}`:`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE-${l.minimum}`;return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4":"\\u05E6\\u05E8\\u05D9\\u05DA";if(l.minimum===1&&l.inclusive){let y=(l.origin==="set","\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA \\u05E4\\u05E8\\u05D9\\u05D8 \\u05D0\\u05D7\\u05D3");return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${y}`}let S=l.inclusive?`${l.minimum} ${d?.unit??""} \\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8`:`\\u05D9\\u05D5\\u05EA\\u05E8 \\u05DE-${l.minimum} ${d?.unit??""}`;return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${S}`.trim()}let p=l.inclusive?">=":">",f=i(l.origin??"value");return d?.unit?`${d.shortLabel} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\\u05E7\\u05D8\\u05DF"} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.minimum.toString()}`}case"invalid_format":{let d=l;if(d.format==="starts_with")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D7\\u05D9\\u05DC \\u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05E1\\u05EA\\u05D9\\u05D9\\u05DD \\u05D1 "${d.suffix}"`;if(d.format==="includes")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05DB\\u05DC\\u05D5\\u05DC "${d.includes}"`;if(d.format==="regex")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D0\\u05D9\\u05DD \\u05DC\\u05EA\\u05D1\\u05E0\\u05D9\\u05EA ${d.pattern}`;let m=s[d.format],p=m?.label??d.format,h=(m?.gender??"m")==="f"?"\\u05EA\\u05E7\\u05D9\\u05E0\\u05D4":"\\u05EA\\u05E7\\u05D9\\u05DF";return`${p} \\u05DC\\u05D0 ${h}`}case"not_multiple_of":return`\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA \\u05DE\\u05DB\\u05E4\\u05DC\\u05D4 \\u05E9\\u05DC ${l.divisor}`;case"unrecognized_keys":return`\\u05DE\\u05E4\\u05EA\\u05D7${l.keys.length>1?"\\u05D5\\u05EA":""} \\u05DC\\u05D0 \\u05DE\\u05D6\\u05D5\\u05D4${l.keys.length>1?"\\u05D9\\u05DD":"\\u05D4"}: ${_(l.keys,", ")}`;case"invalid_key":return"\\u05E9\\u05D3\\u05D4 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1\\u05D0\\u05D5\\u05D1\\u05D9\\u05D9\\u05E7\\u05D8";case"invalid_union":return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF";case"invalid_element":return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1${r(l.origin??"array")}`;default:return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF"}}};function Ny(){return{localeError:eI()}}var tI=()=>{let e={string:{unit:"\\u0905\\u0915\\u094D\\u0937\\u0930",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},file:{unit:"\\u092C\\u093E\\u0907\\u091F\\u094D\\u0938",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},array:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},set:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},map:{unit:"\\u092A\\u094D\\u0930\\u0935\\u093F\\u0937\\u094D\\u091F\\u093F\\u092F\\u093E\\u0901",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"}};function t(r){return e[r]??null}let n={regex:"\\u0907\\u0928\\u092A\\u0941\\u091F",email:"\\u0908\\u092E\\u0947\\u0932 \\u092A\\u0924\\u093E",url:"URL",emoji:"\\u0907\\u092E\\u094B\\u091C\\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0924\\u093F\\u0925\\u093F \\u0914\\u0930 \\u0938\\u092E\\u092F",date:"ISO \\u0924\\u093F\\u0925\\u093F",time:"ISO \\u0938\\u092E\\u092F",duration:"ISO \\u0905\\u0935\\u0927\\u093F",ipv4:"IPv4 \\u092A\\u0924\\u093E",ipv6:"IPv6 \\u092A\\u0924\\u093E",mac:"MAC \\u092A\\u0924\\u093E",cidrv4:"IPv4 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940",cidrv6:"IPv6 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940",base64:"Base64-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",base64url:"Base64URL-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",json_string:"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",e164:"E.164 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E",credit_card:"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E",jwt:"JWT",template_literal:"\\u0907\\u0928\\u092A\\u0941\\u091F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${i}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${s}`}case"invalid_value":return r.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${R(r.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u094B\\u0902 \\u092E\\u0947\\u0902 \\u0938\\u0947 \\u090F\\u0915 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${r.origin??"\\u092E\\u093E\\u0928"} \\u092E\\u0947\\u0902 ${i}${r.maximum} ${a.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${r.origin??"\\u092E\\u093E\\u0928"} ${i}${r.maximum} \\u0939\\u094B`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${r.origin} \\u092E\\u0947\\u0902 ${i}${r.minimum} ${a.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${r.origin} ${i}${r.minimum} \\u0939\\u094B`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: "${i.prefix}" \\u0938\\u0947 \\u0936\\u0941\\u0930\\u0942 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:i.format==="ends_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: "${i.suffix}" \\u092A\\u0930 \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:i.format==="includes"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u0907\\u0938\\u092E\\u0947\\u0902 "${i.includes}" \\u0936\\u093E\\u092E\\u093F\\u0932 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:i.format==="regex"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u092A\\u0948\\u091F\\u0930\\u094D\\u0928 ${i.pattern} \\u0938\\u0947 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: \\u092F\\u0939 ${r.divisor} \\u0915\\u093E \\u0917\\u0941\\u0923\\u091C \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`;case"unrecognized_keys":return`\\u0905\\u092A\\u0930\\u093F\\u091A\\u093F\\u0924 \\u0915\\u0941\\u0902\\u091C\\u0940${r.keys.length>1?"\\u092F\\u093E\\u0901":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u0902\\u091C\\u0940: ${r.origin} \\u092E\\u0947\\u0902`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0921\\u093F\\u0938\\u094D\\u0915\\u094D\\u0930\\u093F\\u092E\\u093F\\u0928\\u0947\\u091F\\u0930 \\u092E\\u093E\\u0928: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F";case"invalid_element":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u092E\\u093E\\u0928: ${r.origin} \\u092E\\u0947\\u0902`;default:return"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F"}}};function jy(){return{localeError:tI()}}var rI=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(r){return e[r]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neispravan unos: o\\u010Dekuje se instanceof ${r.expected}, a primljeno je ${s}`:`Neispravan unos: o\\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return r.values.length===1?`Neispravna vrijednost: o\\u010Dekivano ${R(r.values[0])}`:`Neispravna opcija: o\\u010Dekivano jedno od ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Preveliko: o\\u010Dekivano da ${s??"vrijednost"} ima ${i}${r.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\\u010Dekivano da ${s??"vrijednost"} bude ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Premalo: o\\u010Dekivano da ${s} ima ${i}${r.minimum.toString()} ${a.unit}`:`Premalo: o\\u010Dekivano da ${s} bude ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neispravan tekst: mora zapo\\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??r.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\\u0161ekratnik od ${r.divisor}`;case"unrecognized_keys":return`Neprepoznat${r.keys.length>1?"i klju\\u010Devi":" klju\\u010D"}: ${_(r.keys,", ")}`;case"invalid_key":return`Neispravan klju\\u010D u ${o[r.origin]??r.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[r.origin]??r.origin}`;default:return"Neispravan unos"}}};function Ay(){return{localeError:rI()}}var nI=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n={regex:"bemenet",email:"email c\\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\\u0151b\\xE9lyeg",date:"ISO d\\xE1tum",time:"ISO id\\u0151",duration:"ISO id\\u0151intervallum",ipv4:"IPv4 c\\xEDm",ipv6:"IPv6 c\\xEDm",mac:"MAC c\\xEDm",cidrv4:"IPv4 tartom\\xE1ny",cidrv6:"IPv6 tartom\\xE1ny",base64:"base64-k\\xF3dolt string",base64url:"base64url-k\\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\\xE1m",credit_card:"hitelk\\xE1rtyasz\\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\\xE1m",array:"t\\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k instanceof ${r.expected}, a kapott \\xE9rt\\xE9k ${s}`:`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${i}, a kapott \\xE9rt\\xE9k ${s}`}case"invalid_value":return r.values.length===1?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${R(r.values[0])}`:`\\xC9rv\\xE9nytelen opci\\xF3: valamelyik \\xE9rt\\xE9k v\\xE1rt ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\\xFAl nagy: ${r.origin??"\\xE9rt\\xE9k"} m\\xE9rete t\\xFAl nagy ${i}${r.maximum.toString()} ${a.unit??"elem"}`:`T\\xFAl nagy: a bemeneti \\xE9rt\\xE9k ${r.origin??"\\xE9rt\\xE9k"} t\\xFAl nagy: ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ${r.origin} m\\xE9rete t\\xFAl kicsi ${i}${r.minimum.toString()} ${a.unit}`:`T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ${r.origin} t\\xFAl kicsi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\xC9rv\\xE9nytelen string: "${i.prefix}" \\xE9rt\\xE9kkel kell kezd\\u0151dnie`:i.format==="ends_with"?`\\xC9rv\\xE9nytelen string: "${i.suffix}" \\xE9rt\\xE9kkel kell v\\xE9gz\\u0151dnie`:i.format==="includes"?`\\xC9rv\\xE9nytelen string: "${i.includes}" \\xE9rt\\xE9ket kell tartalmaznia`:i.format==="regex"?`\\xC9rv\\xE9nytelen string: ${i.pattern} mint\\xE1nak kell megfelelnie`:`\\xC9rv\\xE9nytelen ${n[i.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":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\xC9rv\\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\\xC9rv\\xE9nytelen bemenet";case"invalid_element":return`\\xC9rv\\xE9nytelen \\xE9rt\\xE9k: ${r.origin}`;default:return"\\xC9rv\\xE9nytelen bemenet"}}};function Uy(){return{localeError:nI()}}function My(e,t,n){return Math.abs(e)===1?t:n}function Wn(e){if(!e)return"";let t=["\\u0561","\\u0565","\\u0568","\\u056B","\\u0578","\\u0578\\u0582","\\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\\u0576":"\\u0568")}var oI=()=>{let e={string:{unit:{one:"\\u0576\\u0577\\u0561\\u0576",many:"\\u0576\\u0577\\u0561\\u0576\\u0576\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"},file:{unit:{one:"\\u0562\\u0561\\u0575\\u0569",many:"\\u0562\\u0561\\u0575\\u0569\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"},array:{unit:{one:"\\u057F\\u0561\\u0580\\u0580",many:"\\u057F\\u0561\\u0580\\u0580\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"},set:{unit:{one:"\\u057F\\u0561\\u0580\\u0580",many:"\\u057F\\u0561\\u0580\\u0580\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"},map:{unit:{one:"\\u057F\\u0561\\u0580\\u0580",many:"\\u057F\\u0561\\u0580\\u0580\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"}};function t(r){return e[r]??null}let n={regex:"\\u0574\\u0578\\u0582\\u057F\\u0584",email:"\\u0567\\u056C. \\u0570\\u0561\\u057D\\u0581\\u0565",url:"URL",emoji:"\\u0567\\u0574\\u0578\\u057B\\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0561\\u0574\\u057D\\u0561\\u0569\\u056B\\u057E \\u0587 \\u056A\\u0561\\u0574",date:"ISO \\u0561\\u0574\\u057D\\u0561\\u0569\\u056B\\u057E",time:"ISO \\u056A\\u0561\\u0574",duration:"ISO \\u057F\\u0587\\u0578\\u0572\\u0578\\u0582\\u0569\\u0575\\u0578\\u0582\\u0576",ipv4:"IPv4 \\u0570\\u0561\\u057D\\u0581\\u0565",ipv6:"IPv6 \\u0570\\u0561\\u057D\\u0581\\u0565",mac:"MAC \\u0570\\u0561\\u057D\\u0581\\u0565",cidrv4:"IPv4 \\u0574\\u056B\\u057B\\u0561\\u056F\\u0561\\u0575\\u0584",cidrv6:"IPv6 \\u0574\\u056B\\u057B\\u0561\\u056F\\u0561\\u0575\\u0584",base64:"base64 \\u0571\\u0587\\u0561\\u0579\\u0561\\u0583\\u0578\\u057E \\u057F\\u0578\\u0572",base64url:"base64url \\u0571\\u0587\\u0561\\u0579\\u0561\\u0583\\u0578\\u057E \\u057F\\u0578\\u0572",json_string:"JSON \\u057F\\u0578\\u0572",e164:"E.164 \\u0570\\u0561\\u0574\\u0561\\u0580",credit_card:"\\u056F\\u0580\\u0565\\u0564\\u056B\\u057F \\u0584\\u0561\\u0580\\u057F\\u056B \\u0570\\u0561\\u0574\\u0561\\u0580",jwt:"JWT",template_literal:"\\u0574\\u0578\\u0582\\u057F\\u0584"},o={nan:"NaN",number:"\\u0569\\u056B\\u057E",array:"\\u0566\\u0561\\u0576\\u0563\\u057E\\u0561\\u056E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 instanceof ${r.expected}, \\u057D\\u057F\\u0561\\u0581\\u057E\\u0565\\u056C \\u0567 ${s}`:`\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 ${i}, \\u057D\\u057F\\u0561\\u0581\\u057E\\u0565\\u056C \\u0567 ${s}`}case"invalid_value":return r.values.length===1?`\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 ${R(r.values[1])}`:`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0561\\u0580\\u0562\\u0565\\u0580\\u0561\\u056F\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 \\u0570\\u0565\\u057F\\u0587\\u0575\\u0561\\u056C\\u0576\\u0565\\u0580\\u056B\\u0581 \\u0574\\u0565\\u056F\\u0568\\u055D ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=My(s,a.unit.one,a.unit.many);return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0574\\u0565\\u056E \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${Wn(r.origin??"\\u0561\\u0580\\u056A\\u0565\\u0584")} \\u056F\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561 ${i}${r.maximum.toString()} ${c}`}return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0574\\u0565\\u056E \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${Wn(r.origin??"\\u0561\\u0580\\u056A\\u0565\\u0584")} \\u056C\\u056B\\u0576\\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=My(s,a.unit.one,a.unit.many);return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0583\\u0578\\u0584\\u0580 \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${Wn(r.origin)} \\u056F\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561 ${i}${r.minimum.toString()} ${c}`}return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0583\\u0578\\u0584\\u0580 \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${Wn(r.origin)} \\u056C\\u056B\\u0576\\u056B ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u057D\\u056F\\u057D\\u057E\\u056B "${i.prefix}"-\\u0578\\u057E`:i.format==="ends_with"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u0561\\u057E\\u0561\\u0580\\u057F\\u057E\\u056B "${i.suffix}"-\\u0578\\u057E`:i.format==="includes"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u057A\\u0561\\u0580\\u0578\\u0582\\u0576\\u0561\\u056F\\u056B "${i.includes}"`:i.format==="regex"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u0570\\u0561\\u0574\\u0561\\u057A\\u0561\\u057F\\u0561\\u057D\\u056D\\u0561\\u0576\\u056B ${i.pattern} \\u0571\\u0587\\u0561\\u0579\\u0561\\u0583\\u056B\\u0576`:`\\u054D\\u056D\\u0561\\u056C ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u054D\\u056D\\u0561\\u056C \\u0569\\u056B\\u057E\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u0562\\u0561\\u0566\\u0574\\u0561\\u057A\\u0561\\u057F\\u056B\\u056F \\u056C\\u056B\\u0576\\u056B ${r.divisor}-\\u056B`;case"unrecognized_keys":return`\\u0549\\u0573\\u0561\\u0576\\u0561\\u0579\\u057E\\u0561\\u056E \\u0562\\u0561\\u0576\\u0561\\u056C\\u056B${r.keys.length>1?"\\u0576\\u0565\\u0580":""}. ${_(r.keys,", ")}`;case"invalid_key":return`\\u054D\\u056D\\u0561\\u056C \\u0562\\u0561\\u0576\\u0561\\u056C\\u056B ${Wn(r.origin)}-\\u0578\\u0582\\u0574`;case"invalid_union":return"\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574";case"invalid_element":return`\\u054D\\u056D\\u0561\\u056C \\u0561\\u0580\\u056A\\u0565\\u0584 ${Wn(r.origin)}-\\u0578\\u0582\\u0574`;default:return"\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574"}}};function Dy(){return{localeError:oI()}}var iI=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${R(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.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":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function Ly(){return{localeError:iI()}}var aI=()=>{let e={string:{unit:"stafi",verb:"a\\xF0 hafa"},file:{unit:"b\\xE6ti",verb:"a\\xF0 hafa"},array:{unit:"hluti",verb:"a\\xF0 hafa"},set:{unit:"hluti",verb:"a\\xF0 hafa"},map:{unit:"hluti",verb:"a\\xF0 hafa"}};function t(r){return e[r]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\\xF3\\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\\xEDmi",date:"ISO dagsetning",time:"ISO t\\xEDmi",duration:"ISO t\\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\\xF6lugildi",credit_card:"kreditkortan\\xFAmer",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${s} \\xFEar sem \\xE1 a\\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${s} \\xFEar sem \\xE1 a\\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\\xE1\\xF0 fyrir ${R(r.values[0])}`:`\\xD3gilt val: m\\xE1 vera eitt af eftirfarandi ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ${r.origin??"gildi"} s\\xE9 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.unit}`:`Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ${r.origin} s\\xE9 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 byrja \\xE1 "${i.prefix}"`:i.format==="ends_with"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 enda \\xE1 "${i.suffix}"`:i.format==="includes"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \\xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \\xED ${r.origin}`;default:return"Rangt gildi"}}};function qy(){return{localeError:aI()}}var sI=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${R(r.values[0])}`:`Opzione non valida: atteso uno tra ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function Vy(){return{localeError:sI()}}var cI=()=>{let e={string:{unit:"\\u6587\\u5B57",verb:"\\u3067\\u3042\\u308B"},file:{unit:"\\u30D0\\u30A4\\u30C8",verb:"\\u3067\\u3042\\u308B"},array:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"},set:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"},map:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"}};function t(r){return e[r]??null}let n={regex:"\\u5165\\u529B\\u5024",email:"\\u30E1\\u30FC\\u30EB\\u30A2\\u30C9\\u30EC\\u30B9",url:"URL",emoji:"\\u7D75\\u6587\\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\\u65E5\\u6642",date:"ISO\\u65E5\\u4ED8",time:"ISO\\u6642\\u523B",duration:"ISO\\u671F\\u9593",ipv4:"IPv4\\u30A2\\u30C9\\u30EC\\u30B9",ipv6:"IPv6\\u30A2\\u30C9\\u30EC\\u30B9",mac:"MAC\\u30A2\\u30C9\\u30EC\\u30B9",cidrv4:"IPv4\\u7BC4\\u56F2",cidrv6:"IPv6\\u7BC4\\u56F2",base64:"base64\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217",base64url:"base64url\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217",json_string:"JSON\\u6587\\u5B57\\u5217",e164:"E.164\\u756A\\u53F7",credit_card:"\\u30AF\\u30EC\\u30B8\\u30C3\\u30C8\\u30AB\\u30FC\\u30C9\\u756A\\u53F7",jwt:"JWT",template_literal:"\\u5165\\u529B\\u5024"},o={nan:"NaN",number:"\\u6570\\u5024",array:"\\u914D\\u5217"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u7121\\u52B9\\u306A\\u5165\\u529B: instanceof ${r.expected}\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F\\u304C\\u3001${s}\\u304C\\u5165\\u529B\\u3055\\u308C\\u307E\\u3057\\u305F`:`\\u7121\\u52B9\\u306A\\u5165\\u529B: ${i}\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F\\u304C\\u3001${s}\\u304C\\u5165\\u529B\\u3055\\u308C\\u307E\\u3057\\u305F`}case"invalid_value":return r.values.length===1?`\\u7121\\u52B9\\u306A\\u5165\\u529B: ${R(r.values[0])}\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F`:`\\u7121\\u52B9\\u306A\\u9078\\u629E: ${_(r.values,"\\u3001")}\\u306E\\u3044\\u305A\\u308C\\u304B\\u3067\\u3042\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`;case"too_big":{let i=r.inclusive?"\\u4EE5\\u4E0B\\u3067\\u3042\\u308B":"\\u3088\\u308A\\u5C0F\\u3055\\u3044",a=t(r.origin);return a?`\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ${r.origin??"\\u5024"}\\u306F${r.maximum.toString()}${a.unit??"\\u8981\\u7D20"}${i}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:`\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ${r.origin??"\\u5024"}\\u306F${r.maximum.toString()}${i}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`}case"too_small":{let i=r.inclusive?"\\u4EE5\\u4E0A\\u3067\\u3042\\u308B":"\\u3088\\u308A\\u5927\\u304D\\u3044",a=t(r.origin);return a?`\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ${r.origin}\\u306F${r.minimum.toString()}${a.unit}${i}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:`\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ${r.origin}\\u306F${r.minimum.toString()}${i}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "${i.prefix}"\\u3067\\u59CB\\u307E\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:i.format==="ends_with"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "${i.suffix}"\\u3067\\u7D42\\u308F\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:i.format==="includes"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "${i.includes}"\\u3092\\u542B\\u3080\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:i.format==="regex"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: \\u30D1\\u30BF\\u30FC\\u30F3${i.pattern}\\u306B\\u4E00\\u81F4\\u3059\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:`\\u7121\\u52B9\\u306A${n[i.format]??r.format}`}case"not_multiple_of":return`\\u7121\\u52B9\\u306A\\u6570\\u5024: ${r.divisor}\\u306E\\u500D\\u6570\\u3067\\u3042\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`;case"unrecognized_keys":return`\\u8A8D\\u8B58\\u3055\\u308C\\u3066\\u3044\\u306A\\u3044\\u30AD\\u30FC${r.keys.length>1?"\\u7FA4":""}: ${_(r.keys,"\\u3001")}`;case"invalid_key":return`${r.origin}\\u5185\\u306E\\u7121\\u52B9\\u306A\\u30AD\\u30FC`;case"invalid_union":return"\\u7121\\u52B9\\u306A\\u5165\\u529B";case"invalid_element":return`${r.origin}\\u5185\\u306E\\u7121\\u52B9\\u306A\\u5024`;default:return"\\u7121\\u52B9\\u306A\\u5165\\u529B"}}};function Zy(){return{localeError:cI()}}var lI=()=>{let e={string:{unit:"\\u10E1\\u10D8\\u10DB\\u10D1\\u10DD\\u10DA\\u10DD",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},file:{unit:"\\u10D1\\u10D0\\u10D8\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},array:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},set:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},map:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"}};function t(r){return e[r]??null}let n={regex:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0",email:"\\u10D4\\u10DA-\\u10E4\\u10DD\\u10E1\\u10E2\\u10D8\\u10E1 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",url:"URL",emoji:"\\u10D4\\u10DB\\u10DD\\u10EF\\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8-\\u10D3\\u10E0\\u10DD",date:"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8",time:"\\u10D3\\u10E0\\u10DD",duration:"\\u10EE\\u10D0\\u10DC\\u10D2\\u10E0\\u10EB\\u10DA\\u10D8\\u10D5\\u10DD\\u10D1\\u10D0",ipv4:"IPv4 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",ipv6:"IPv6 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",mac:"MAC \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",cidrv4:"IPv4 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8",cidrv6:"IPv6 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8",base64:"base64-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8",base64url:"base64url-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8",json_string:"JSON \\u10D5\\u10D4\\u10DA\\u10D8",e164:"E.164 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",credit_card:"\\u10E1\\u10D0\\u10D9\\u10E0\\u10D4\\u10D3\\u10D8\\u10E2\\u10DD \\u10D1\\u10D0\\u10E0\\u10D0\\u10D7\\u10D8\\u10E1 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",jwt:"JWT",template_literal:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"},o={nan:"NaN",number:"\\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8",string:"\\u10D5\\u10D4\\u10DA\\u10D8",boolean:"\\u10D1\\u10E3\\u10DA\\u10D4\\u10D0\\u10DC\\u10D8",function:"\\u10E4\\u10E3\\u10DC\\u10E5\\u10EA\\u10D8\\u10D0",array:"\\u10DB\\u10D0\\u10E1\\u10D8\\u10D5\\u10D8"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 instanceof ${r.expected}, \\u10DB\\u10D8\\u10E6\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 ${s}`:`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${i}, \\u10DB\\u10D8\\u10E6\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 ${s}`}case"invalid_value":return r.values.length===1?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${R(r.values[0])}`:`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D0\\u10E0\\u10D8\\u10D0\\u10DC\\u10E2\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8\\u10D0 \\u10D4\\u10E0\\u10D7-\\u10D4\\u10E0\\u10D7\\u10D8 ${_(r.values,"|")}-\\u10D3\\u10D0\\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${r.origin??"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit}`:`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${r.origin??"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0"} \\u10D8\\u10E7\\u10DD\\u10E1 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10DE\\u10D0\\u10E2\\u10D0\\u10E0\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10DE\\u10D0\\u10E2\\u10D0\\u10E0\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${r.origin} \\u10D8\\u10E7\\u10DD\\u10E1 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10D8\\u10EC\\u10E7\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 "${i.prefix}"-\\u10D8\\u10D7`:i.format==="ends_with"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10DB\\u10D7\\u10D0\\u10D5\\u10E0\\u10D3\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 "${i.suffix}"-\\u10D8\\u10D7`:i.format==="includes"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1 "${i.includes}"-\\u10E1`:i.format==="regex"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D4\\u10E1\\u10D0\\u10D1\\u10D0\\u10DB\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 \\u10E8\\u10D0\\u10D1\\u10DA\\u10DD\\u10DC\\u10E1 ${i.pattern}`:`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10D8\\u10E7\\u10DD\\u10E1 ${r.divisor}-\\u10D8\\u10E1 \\u10EF\\u10D4\\u10E0\\u10D0\\u10D3\\u10D8`;case"unrecognized_keys":return`\\u10E3\\u10EA\\u10DC\\u10DD\\u10D1\\u10D8 \\u10D2\\u10D0\\u10E1\\u10D0\\u10E6\\u10D4\\u10D1${r.keys.length>1?"\\u10D4\\u10D1\\u10D8":"\\u10D8"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D2\\u10D0\\u10E1\\u10D0\\u10E6\\u10D4\\u10D1\\u10D8 ${r.origin}-\\u10E8\\u10D8`;case"invalid_union":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0";case"invalid_element":return`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0 ${r.origin}-\\u10E8\\u10D8`;default:return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"}}};function Fy(){return{localeError:lI()}}var uI=()=>{let e={string:{unit:"\\u178F\\u17BD\\u17A2\\u1780\\u17D2\\u179F\\u179A",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},file:{unit:"\\u1794\\u17C3",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},array:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},set:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},map:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"}};function t(r){return e[r]??null}let n={regex:"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B",email:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793\\u17A2\\u17CA\\u17B8\\u1798\\u17C2\\u179B",url:"URL",emoji:"\\u179F\\u1789\\u17D2\\u1789\\u17B6\\u17A2\\u17B6\\u179A\\u1798\\u17D2\\u1798\\u178E\\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 \\u1793\\u17B7\\u1784\\u1798\\u17C9\\u17C4\\u1784 ISO",date:"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 ISO",time:"\\u1798\\u17C9\\u17C4\\u1784 ISO",duration:"\\u179A\\u1799\\u17C8\\u1796\\u17C1\\u179B ISO",ipv4:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4",ipv6:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6",mac:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 MAC",cidrv4:"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4",cidrv6:"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6",base64:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64",base64url:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64url",json_string:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A JSON",e164:"\\u179B\\u17C1\\u1781 E.164",credit_card:"\\u179B\\u17C1\\u1781\\u1794\\u17D0\\u178E\\u17D2\\u178E\\u17A5\\u178E\\u1791\\u17B6\\u1793",jwt:"JWT",template_literal:"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B"},o={nan:"NaN",number:"\\u179B\\u17C1\\u1781",array:"\\u17A2\\u17B6\\u179A\\u17C1 (Array)",null:"\\u1782\\u17D2\\u1798\\u17B6\\u1793\\u178F\\u1798\\u17D2\\u179B\\u17C3 (null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A instanceof ${r.expected} \\u1794\\u17C9\\u17BB\\u1793\\u17D2\\u178F\\u17C2\\u1791\\u1791\\u17BD\\u179B\\u1794\\u17B6\\u1793 ${s}`:`\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${i} \\u1794\\u17C9\\u17BB\\u1793\\u17D2\\u178F\\u17C2\\u1791\\u1791\\u17BD\\u179B\\u1794\\u17B6\\u1793 ${s}`}case"invalid_value":return r.values.length===1?`\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${R(r.values[0])}`:`\\u1787\\u1798\\u17D2\\u179A\\u17BE\\u179F\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1787\\u17B6\\u1798\\u17BD\\u1799\\u1780\\u17D2\\u1793\\u17BB\\u1784\\u1785\\u17C6\\u178E\\u17C4\\u1798 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${r.origin??"\\u178F\\u1798\\u17D2\\u179B\\u17C3"} ${i} ${r.maximum.toString()} ${a.unit??"\\u1792\\u17B6\\u178F\\u17BB"}`:`\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${r.origin??"\\u178F\\u1798\\u17D2\\u179B\\u17C3"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`:`\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1785\\u17B6\\u1794\\u17CB\\u1795\\u17D2\\u178F\\u17BE\\u1798\\u178A\\u17C4\\u1799 "${i.prefix}"`:i.format==="ends_with"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1794\\u1789\\u17D2\\u1785\\u1794\\u17CB\\u178A\\u17C4\\u1799 "${i.suffix}"`:i.format==="includes"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1798\\u17B6\\u1793 "${i.includes}"`:i.format==="regex"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u178F\\u17C2\\u1795\\u17D2\\u1782\\u17BC\\u1795\\u17D2\\u1782\\u1784\\u1793\\u17B9\\u1784\\u1791\\u1798\\u17D2\\u179A\\u1784\\u17CB\\u178A\\u17C2\\u179B\\u1794\\u17B6\\u1793\\u1780\\u17C6\\u178E\\u178F\\u17CB ${i.pattern}`:`\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u179B\\u17C1\\u1781\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u178F\\u17C2\\u1787\\u17B6\\u1796\\u17A0\\u17BB\\u1782\\u17BB\\u178E\\u1793\\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\\u179A\\u1780\\u1783\\u17BE\\u1789\\u179F\\u17C4\\u1798\\u17B7\\u1793\\u179F\\u17D2\\u1782\\u17B6\\u179B\\u17CB\\u17D6 ${_(r.keys,", ")}`;case"invalid_key":return`\\u179F\\u17C4\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1793\\u17C5\\u1780\\u17D2\\u1793\\u17BB\\u1784 ${r.origin}`;case"invalid_union":return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C";case"invalid_element":return`\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1793\\u17C5\\u1780\\u17D2\\u1793\\u17BB\\u1784 ${r.origin}`;default:return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C"}}};function ic(){return{localeError:uI()}}function Ky(){return ic()}var dI=()=>{let e={string:{unit:"\\u0C85\\u0C95\\u0CCD\\u0CB7\\u0CB0\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},file:{unit:"\\u0CAC\\u0CC8\\u0C9F\\u0CCD\\u200C\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},array:{unit:"\\u0CB5\\u0CB8\\u0CCD\\u0CA4\\u0CC1\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},set:{unit:"\\u0CB5\\u0CB8\\u0CCD\\u0CA4\\u0CC1\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},map:{unit:"entries",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"}};function t(r){return e[r]??null}let n={regex:"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD",email:"email \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95\\u0CA6 \\u0CB8\\u0CAE\\u0CAF",date:"ISO \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95",time:"ISO \\u0CB8\\u0CAE\\u0CAF",duration:"ISO \\u0C85\\u0CB5\\u0CA7\\u0CBF",ipv4:"IPv4 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",ipv6:"IPv6 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",mac:"MAC \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",cidrv4:"IPv4 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF",cidrv6:"IPv6 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF",base64:"base64-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",base64url:"base64url-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",json_string:"JSON\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",e164:"E.164 \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6",credit_card:"\\u0C95\\u0CCD\\u0CB0\\u0CC6\\u0CA1\\u0CBF\\u0C9F\\u0CCD \\u0C95\\u0CBE\\u0CB0\\u0CCD\\u0CA1\\u0CCD \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6",jwt:"JWT",template_literal:"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${i}, \\u0CB8\\u0CCD\\u0CB5\\u0CC0\\u0C95\\u0CB0\\u0CBF\\u0CB8\\u0CBF\\u0CA6\\u0CA8\\u0CC1 ${s}`}case"invalid_value":return r.values.length===1?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${R(r.values[0])}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C86\\u0CAF\\u0CCD\\u0C95\\u0CC6: \\u0C87\\u0CB5\\u0CC1\\u0C97\\u0CB3\\u0CB2\\u0CCD\\u0CB2\\u0CBF \\u0C92\\u0C82\\u0CA6\\u0CA8\\u0CCD\\u0CA8\\u0CC1 \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0CA6\\u0CCA\\u0CA1\\u0CCD\\u0CA1\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.origin??"value"} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${i}${r.maximum.toString()} ${a.unit??"\\u0C85\\u0C82\\u0CB6\\u0C97\\u0CB3\\u0CC1"}`:`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0CA6\\u0CCA\\u0CA1\\u0CCD\\u0CA1\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.origin??"value"} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0C9A\\u0CBF\\u0C95\\u0CCD\\u0C95\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.origin} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${i}${r.minimum.toString()} ${a.unit}`:`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0C9A\\u0CBF\\u0C95\\u0CCD\\u0C95\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.origin} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C87\\u0CA6\\u0CB0\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C97\\u0CC6 \\u0CAA\\u0CCD\\u0CB0\\u0CBE\\u0CB0\\u0C82\\u0CAD\\u0CBF\\u0CB8\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${i.prefix}"`:i.format==="ends_with"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C87\\u0CA6\\u0CB0\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C97\\u0CC6 \\u0C95\\u0CCA\\u0CA8\\u0CC6\\u0C97\\u0CCA\\u0CB3\\u0CCD\\u0CB3\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${i.suffix}"`:i.format==="includes"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C92\\u0CB3\\u0C97\\u0CCA\\u0C82\\u0CA1\\u0CBF\\u0CB0\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${i.includes}"`:i.format==="regex"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0CAE\\u0CBE\\u0CA6\\u0CB0\\u0CBF\\u0C97\\u0CC6 \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C95\\u0CC6\\u0CAF\\u0CBE\\u0C97\\u0CAC\\u0CC7\\u0C95\\u0CC1 ${i.pattern}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6: \\u0CAC\\u0CB9\\u0CC1\\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6\\u0CAF\\u0CBE\\u0C97\\u0CBF\\u0CB0\\u0CAC\\u0CC7\\u0C95\\u0CC1 ${r.divisor}`;case"unrecognized_keys":return`\\u0C97\\u0CC1\\u0CB0\\u0CC1\\u0CA4\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CA6 \\u0C95\\u0CC0 ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0C95\\u0CC0 \\u0C87\\u0CA8\\u0CCD ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CA4\\u0CBE\\u0CB0\\u0CA4\\u0CAE\\u0CCD\\u0CAF \\u0CAE\\u0CCC\\u0CB2\\u0CCD\\u0CAF. \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD";case"invalid_element":return`\\u0CB0\\u0CB2\\u0CCD\\u0CB2\\u0CBF \\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CAE\\u0CCC\\u0CB2\\u0CCD\\u0CAF ${r.origin}`;default:return"\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD"}}};function Jy(){return{localeError:dI()}}var mI=()=>{let e={string:{unit:"\\uBB38\\uC790",verb:"to have"},file:{unit:"\\uBC14\\uC774\\uD2B8",verb:"to have"},array:{unit:"\\uAC1C",verb:"to have"},set:{unit:"\\uAC1C",verb:"to have"},map:{unit:"\\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n={regex:"\\uC785\\uB825",email:"\\uC774\\uBA54\\uC77C \\uC8FC\\uC18C",url:"URL",emoji:"\\uC774\\uBAA8\\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\uB0A0\\uC9DC\\uC2DC\\uAC04",date:"ISO \\uB0A0\\uC9DC",time:"ISO \\uC2DC\\uAC04",duration:"ISO \\uAE30\\uAC04",ipv4:"IPv4 \\uC8FC\\uC18C",ipv6:"IPv6 \\uC8FC\\uC18C",mac:"MAC \\uC8FC\\uC18C",cidrv4:"IPv4 \\uBC94\\uC704",cidrv6:"IPv6 \\uBC94\\uC704",base64:"base64 \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4",base64url:"base64url \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4",json_string:"JSON \\uBB38\\uC790\\uC5F4",e164:"E.164 \\uBC88\\uD638",credit_card:"\\uC2E0\\uC6A9\\uCE74\\uB4DC \\uBC88\\uD638",jwt:"JWT",template_literal:"\\uC785\\uB825"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uC608\\uC0C1 \\uD0C0\\uC785\\uC740 instanceof ${r.expected}, \\uBC1B\\uC740 \\uD0C0\\uC785\\uC740 ${s}\\uC785\\uB2C8\\uB2E4`:`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uC608\\uC0C1 \\uD0C0\\uC785\\uC740 ${i}, \\uBC1B\\uC740 \\uD0C0\\uC785\\uC740 ${s}\\uC785\\uB2C8\\uB2E4`}case"invalid_value":return r.values.length===1?`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uAC12\\uC740 ${R(r.values[0])} \\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4`:`\\uC798\\uBABB\\uB41C \\uC635\\uC158: ${_(r.values,"\\uB610\\uB294 ")} \\uC911 \\uD558\\uB098\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4`;case"too_big":{let i=r.inclusive?"\\uC774\\uD558":"\\uBBF8\\uB9CC",a=i==="\\uBBF8\\uB9CC"?"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4":"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4",s=t(r.origin),c=s?.unit??"\\uC694\\uC18C";return s?`${r.origin??"\\uAC12"}\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ${r.maximum.toString()}${c} ${i}${a}`:`${r.origin??"\\uAC12"}\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{let i=r.inclusive?"\\uC774\\uC0C1":"\\uCD08\\uACFC",a=i==="\\uC774\\uC0C1"?"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4":"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4",s=t(r.origin),c=s?.unit??"\\uC694\\uC18C";return s?`${r.origin??"\\uAC12"}\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ${r.minimum.toString()}${c} ${i}${a}`:`${r.origin??"\\uAC12"}\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ${r.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "${i.prefix}"(\\uC73C)\\uB85C \\uC2DC\\uC791\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4`:i.format==="ends_with"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "${i.suffix}"(\\uC73C)\\uB85C \\uB05D\\uB098\\uC57C \\uD569\\uB2C8\\uB2E4`:i.format==="includes"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "${i.includes}"\\uC744(\\uB97C) \\uD3EC\\uD568\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4`:i.format==="regex"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: \\uC815\\uADDC\\uC2DD ${i.pattern} \\uD328\\uD134\\uACFC \\uC77C\\uCE58\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4`:`\\uC798\\uBABB\\uB41C ${n[i.format]??r.format}`}case"not_multiple_of":return`\\uC798\\uBABB\\uB41C \\uC22B\\uC790: ${r.divisor}\\uC758 \\uBC30\\uC218\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4`;case"unrecognized_keys":return`\\uC778\\uC2DD\\uD560 \\uC218 \\uC5C6\\uB294 \\uD0A4: ${_(r.keys,", ")}`;case"invalid_key":return`\\uC798\\uBABB\\uB41C \\uD0A4: ${r.origin}`;case"invalid_union":return"\\uC798\\uBABB\\uB41C \\uC785\\uB825";case"invalid_element":return`\\uC798\\uBABB\\uB41C \\uAC12: ${r.origin}`;default:return"\\uC798\\uBABB\\uB41C \\uC785\\uB825"}}};function By(){return{localeError:mI()}}var Mi=e=>e.charAt(0).toUpperCase()+e.slice(1);function Hy(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var pI=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\\u0173"},verb:{smaller:{inclusive:"turi b\\u016Bti ne ilgesn\\u0117 kaip",notInclusive:"turi b\\u016Bti trumpesn\\u0117 kaip"},bigger:{inclusive:"turi b\\u016Bti ne trumpesn\\u0117 kaip",notInclusive:"turi b\\u016Bti ilgesn\\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\\u0173"},verb:{smaller:{inclusive:"turi b\\u016Bti ne didesnis kaip",notInclusive:"turi b\\u016Bti ma\\u017Eesnis kaip"},bigger:{inclusive:"turi b\\u016Bti ne ma\\u017Eesnis kaip",notInclusive:"turi b\\u016Bti didesnis kaip"}}},array:{unit:{one:"element\\u0105",few:"elementus",many:"element\\u0173"},verb:{smaller:{inclusive:"turi tur\\u0117ti ne daugiau kaip",notInclusive:"turi tur\\u0117ti ma\\u017Eiau kaip"},bigger:{inclusive:"turi tur\\u0117ti ne ma\\u017Eiau kaip",notInclusive:"turi tur\\u0117ti daugiau kaip"}}},set:{unit:{one:"element\\u0105",few:"elementus",many:"element\\u0173"},verb:{smaller:{inclusive:"turi tur\\u0117ti ne daugiau kaip",notInclusive:"turi tur\\u0117ti ma\\u017Eiau kaip"},bigger:{inclusive:"turi tur\\u0117ti ne ma\\u017Eiau kaip",notInclusive:"turi tur\\u0117ti daugiau kaip"}}}};function t(r,i,a,s){let c=e[r]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let n={regex:"\\u012Fvestis",email:"el. pa\\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\\u017Ekoduota eilut\\u0117",base64url:"base64url u\\u017Ekoduota eilut\\u0117",json_string:"JSON eilut\\u0117",e164:"E.164 numeris",credit_card:"kredito kortel\\u0117s numeris",jwt:"JWT",template_literal:"\\u012Fvestis"},o={nan:"NaN",number:"skai\\u010Dius",bigint:"sveikasis skai\\u010Dius",string:"eilut\\u0117",boolean:"login\\u0117 reik\\u0161m\\u0117",undefined:"neapibr\\u0117\\u017Eta reik\\u0161m\\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\\u0117 reik\\u0161m\\u0117"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\\u016Bti ${R(r.values[0])}`:`Privalo b\\u016Bti vienas i\\u0161 ${_(r.values,"|")} pasirinkim\\u0173`;case"too_big":{let i=o[r.origin]??r.origin,a=t(r.origin,Hy(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${Mi(i??r.origin??"reik\\u0161m\\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\\u017Eesnis kaip";return`${Mi(i??r.origin??"reik\\u0161m\\u0117")} turi b\\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[r.origin]??r.origin,a=t(r.origin,Hy(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${Mi(i??r.origin??"reik\\u0161m\\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\\u0173"}`;let s=r.inclusive?"ne ma\\u017Eesnis kaip":"didesnis kaip";return`${Mi(i??r.origin??"reik\\u0161m\\u0117")} turi b\\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Eilut\\u0117 privalo prasid\\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\\u0117 privalo \\u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??r.format}`}case"not_multiple_of":return`Skai\\u010Dius privalo b\\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${_(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \\u012Fvestis";case"invalid_element":{let i=o[r.origin]??r.origin;return`${Mi(i??r.origin??"reik\\u0161m\\u0117")} turi klaiding\\u0105 \\u012Fvest\\u012F`}default:return"Klaidinga \\u012Fvestis"}}};function Yy(){return{localeError:pI()}}var fI=()=>{let e={string:{unit:"\\u0437\\u043D\\u0430\\u0446\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},file:{unit:"\\u0431\\u0430\\u0458\\u0442\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},array:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},set:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},map:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"}};function t(r){return e[r]??null}let n={regex:"\\u0432\\u043D\\u0435\\u0441",email:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u043D\\u0430 \\u0435-\\u043F\\u043E\\u0448\\u0442\\u0430",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u045F\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0443\\u043C \\u0438 \\u0432\\u0440\\u0435\\u043C\\u0435",date:"ISO \\u0434\\u0430\\u0442\\u0443\\u043C",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",duration:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435\\u0442\\u0440\\u0430\\u0435\\u045A\\u0435",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",mac:"MAC \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",cidrv4:"IPv4 \\u043E\\u043F\\u0441\\u0435\\u0433",cidrv6:"IPv6 \\u043E\\u043F\\u0441\\u0435\\u0433",base64:"base64-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430",base64url:"base64url-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430",json_string:"JSON \\u043D\\u0438\\u0437\\u0430",e164:"E.164 \\u0431\\u0440\\u043E\\u0458",credit_card:"\\u0431\\u0440\\u043E\\u0458 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0438\\u0447\\u043A\\u0430",jwt:"JWT",template_literal:"\\u0432\\u043D\\u0435\\u0441"},o={nan:"NaN",number:"\\u0431\\u0440\\u043E\\u0458",array:"\\u043D\\u0438\\u0437\\u0430"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 instanceof ${r.expected}, \\u043F\\u0440\\u0438\\u043C\\u0435\\u043D\\u043E ${s}`:`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${i}, \\u043F\\u0440\\u0438\\u043C\\u0435\\u043D\\u043E ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${R(r.values[0])}`:`\\u0413\\u0440\\u0435\\u0448\\u0430\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u0458\\u0430: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 \\u0435\\u0434\\u043D\\u0430 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u0433\\u043E\\u043B\\u0435\\u043C: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${r.origin??"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430"} \\u0434\\u0430 \\u0438\\u043C\\u0430 ${i}${r.maximum.toString()} ${a.unit??"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0438"}`:`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u0433\\u043E\\u043B\\u0435\\u043C: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${r.origin??"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430"} \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${r.origin} \\u0434\\u0430 \\u0438\\u043C\\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${r.origin} \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u043D\\u0443\\u0432\\u0430 \\u0441\\u043E "${i.prefix}"`:i.format==="ends_with"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u0440\\u0448\\u0443\\u0432\\u0430 \\u0441\\u043E "${i.suffix}"`:i.format==="includes"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u0443\\u0447\\u0443\\u0432\\u0430 "${i.includes}"`:i.format==="regex"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u043E\\u0434\\u0433\\u043E\\u0430\\u0440\\u0430 \\u043D\\u0430 \\u043F\\u0430\\u0442\\u0435\\u0440\\u043D\\u043E\\u0442 ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0431\\u0440\\u043E\\u0458: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 \\u0434\\u0435\\u043B\\u0438\\u0432 \\u0441\\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D\\u0438 \\u043A\\u043B\\u0443\\u0447\\u0435\\u0432\\u0438":"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447 \\u0432\\u043E ${r.origin}`;case"invalid_union":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441";case"invalid_element":return`\\u0413\\u0440\\u0435\\u0448\\u043D\\u0430 \\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442 \\u0432\\u043E ${r.origin}`;default:return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441"}}};function Gy(){return{localeError:fI()}}var hI=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${R(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function Wy(){return{localeError:hI()}}var gI=()=>{let e={string:{unit:"\\u0905\\u0915\\u094D\\u0937\\u0930",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},file:{unit:"\\u092C\\u093E\\u0907\\u091F",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},array:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},set:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},map:{unit:"\\u092A\\u094D\\u0930\\u0935\\u093F\\u0937\\u094D\\u091F\\u093F",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"}};function t(r){return e[r]??null}let n={regex:"\\u0907\\u0928\\u092A\\u0941\\u091F",email:"\\u0907\\u092E\\u0947\\u0932 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",url:"URL",emoji:"\\u0907\\u092E\\u094B\\u091C\\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u092E\\u093F\\u0924\\u093F \\u0930 \\u0938\\u092E\\u092F",date:"ISO \\u092E\\u093F\\u0924\\u093F",time:"ISO \\u0938\\u092E\\u092F",duration:"ISO \\u0905\\u0935\\u0927\\u093F",ipv4:"IPv4 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",ipv6:"IPv6 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",mac:"MAC \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",cidrv4:"IPv4 \\u0926\\u093E\\u092F\\u0930\\u093E",cidrv6:"IPv6 \\u0926\\u093E\\u092F\\u0930\\u093E",base64:"base64-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",base64url:"base64url-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",json_string:"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",e164:"E.164 \\u0928\\u092E\\u094D\\u092C\\u0930",credit_card:"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0928\\u092E\\u094D\\u092C\\u0930",jwt:"JWT",template_literal:"\\u0907\\u0928\\u092A\\u0941\\u091F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${i}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${s}`}case"invalid_value":return r.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${R(r.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u0939\\u0930\\u0942 \\u092E\\u0927\\u094D\\u092F\\u0947 \\u090F\\u0915 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${r.origin??"\\u092E\\u093E\\u0928"} \\u092E\\u093E ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${r.origin??"\\u092E\\u093E\\u0928"} ${i}${r.maximum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${r.origin} \\u092E\\u093E ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${r.origin} ${i}${r.minimum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${i.prefix}" \\u092C\\u093E\\u091F \\u0938\\u0941\\u0930\\u0941 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:i.format==="ends_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${i.suffix}" \\u092E\\u093E \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:i.format==="includes"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${i.includes}" \\u0938\\u092E\\u093E\\u0935\\u0947\\u0936 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:i.format==="regex"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: \\u0922\\u093E\\u0901\\u091A\\u093E ${i.pattern} \\u0938\\u0901\\u0917 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: ${r.divisor} \\u0915\\u094B \\u0917\\u0941\\u0923\\u091C \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`;case"unrecognized_keys":return`\\u0905\\u092A\\u0930\\u093F\\u091A\\u093F\\u0924 \\u0915\\u0941\\u091E\\u094D\\u091C\\u0940${r.keys.length>1?"\\u0939\\u0930\\u0942":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u091E\\u094D\\u091C\\u0940: ${r.origin} \\u092E\\u093E`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0921\\u093F\\u0938\\u094D\\u0915\\u094D\\u0930\\u093F\\u092E\\u093F\\u0928\\u0947\\u091F\\u0930 \\u092E\\u093E\\u0928: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F";case"invalid_element":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u092E\\u093E\\u0928: ${r.origin} \\u092E\\u093E`;default:return"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F"}}};function Xy(){return{localeError:gI()}}var vI=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${R(r.values[0])}`:`Ongeldige optie: verwacht \\xE9\\xE9n van ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.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":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function Qy(){return{localeError:vI()}}var _I=()=>{let e={string:{unit:"teikn",verb:"\\xE5 ha"},file:{unit:"bytes",verb:"\\xE5 ha"},array:{unit:"element",verb:"\\xE5 innehalde"},set:{unit:"element",verb:"\\xE5 innehalde"},map:{unit:"element",verb:"\\xE5 innehalde"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tal",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventa instanceof ${r.expected}, fekk ${s}`:`Ugyldig input: forventa ${i}, fekk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventa ${R(r.values[0])}`:`Ugyldig val: forventa eitt av ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventa ${r.origin??"value"} til \\xE5 ha ${i}${r.maximum.toString()} ${a.unit??"element"}`:`For stor(t): forventa ${r.origin??"value"} til \\xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventa ${r.origin} til \\xE5 ha ${i}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventa ${r.origin} til \\xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: m\\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\\xE5 slutte med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\\xE5 innehalde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\\xE5 matche m\\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldig tal: m\\xE5 vere eit multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjende n\\xF8klar":"Ukjend n\\xF8kkel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function eS(){return{localeError:_I()}}var yI=()=>{let e={string:{unit:"tegn",verb:"\\xE5 ha"},file:{unit:"bytes",verb:"\\xE5 ha"},array:{unit:"elementer",verb:"\\xE5 inneholde"},set:{unit:"elementer",verb:"\\xE5 inneholde"},map:{unit:"elementer",verb:"\\xE5 inneholde"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${R(r.values[0])}`:`Ugyldig valg: forventet en av ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \\xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \\xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \\xE5 ha ${i}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \\xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: m\\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\\xE5 matche m\\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function tS(){return{localeError:yI()}}var SI=()=>{let e={string:{unit:"harf",verb:"olmal\\u0131d\\u0131r"},file:{unit:"bayt",verb:"olmal\\u0131d\\u0131r"},array:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"},set:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"},map:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"}};function t(r){return e[r]??null}let n={regex:"giren",email:"epostag\\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\\xE2m\\u0131",date:"ISO tarihi",time:"ISO zaman\\u0131",duration:"ISO m\\xFCddeti",ipv4:"IPv4 ni\\u015F\\xE2n\\u0131",ipv6:"IPv6 ni\\u015F\\xE2n\\u0131",mac:"MAC ni\\u015F\\xE2n\\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\\u015Fifreli metin",base64url:"base64url-\\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\\u0131s\\u0131",credit_card:"i\'tib\\xE2r kart\\u0131 numaras\\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`F\\xE2sit giren: umulan instanceof ${r.expected}, al\\u0131nan ${s}`:`F\\xE2sit giren: umulan ${i}, al\\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`F\\xE2sit giren: umulan ${R(r.values[0])}`:`F\\xE2sit tercih: m\\xFBteberler ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\\xFCy\\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\\u0131yd\\u0131.`:`Fazla b\\xFCy\\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} olmal\\u0131yd\\u0131.`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\\xFC\\xE7\\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.unit} sahip olmal\\u0131yd\\u0131.`:`Fazla k\\xFC\\xE7\\xFCk: ${r.origin}, ${i}${r.minimum.toString()} olmal\\u0131yd\\u0131.`}case"invalid_format":{let i=r;return i.format==="starts_with"?`F\\xE2sit metin: "${i.prefix}" ile ba\\u015Flamal\\u0131.`:i.format==="ends_with"?`F\\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\\xE2sit metin: "${i.includes}" ihtiv\\xE2 etmeli.`:i.format==="regex"?`F\\xE2sit metin: ${i.pattern} nak\\u015F\\u0131na uymal\\u0131.`:`F\\xE2sit ${n[i.format]??r.format}`}case"not_multiple_of":return`F\\xE2sit say\\u0131: ${r.divisor} kat\\u0131 olmal\\u0131yd\\u0131.`;case"unrecognized_keys":return`Tan\\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\\xE7in tan\\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\\u0131namad\\u0131.";case"invalid_element":return`${r.origin} i\\xE7in tan\\u0131nmayan k\\u0131ymet var.`;default:return"K\\u0131ymet tan\\u0131namad\\u0131."}}};function rS(){return{localeError:SI()}}var bI=()=>{let e={string:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},file:{unit:"\\u0628\\u0627\\u06CC\\u067C\\u0633",verb:"\\u0648\\u0644\\u0631\\u064A"},array:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},set:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},map:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"}};function t(r){return e[r]??null}let n={regex:"\\u0648\\u0631\\u0648\\u062F\\u064A",email:"\\u0628\\u0631\\u06CC\\u069A\\u0646\\u0627\\u0644\\u06CC\\u06A9",url:"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u0644",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0646\\u06CC\\u067C\\u0647 \\u0627\\u0648 \\u0648\\u062E\\u062A",date:"\\u0646\\u06D0\\u067C\\u0647",time:"\\u0648\\u062E\\u062A",duration:"\\u0645\\u0648\\u062F\\u0647",ipv4:"\\u062F IPv4 \\u067E\\u062A\\u0647",ipv6:"\\u062F IPv6 \\u067E\\u062A\\u0647",mac:"\\u062F MAC \\u067E\\u062A\\u0647",cidrv4:"\\u062F IPv4 \\u0633\\u0627\\u062D\\u0647",cidrv6:"\\u062F IPv6 \\u0633\\u0627\\u062D\\u0647",base64:"base64-encoded \\u0645\\u062A\\u0646",base64url:"base64url-encoded \\u0645\\u062A\\u0646",json_string:"JSON \\u0645\\u062A\\u0646",e164:"\\u062F E.164 \\u0634\\u0645\\u06D0\\u0631\\u0647",credit_card:"\\u062F \\u06A9\\u0631\\u06CC\\u0689\\u06CC\\u067C \\u06A9\\u0627\\u0631\\u062A \\u0634\\u0645\\u06CC\\u0631\\u0647",jwt:"JWT",template_literal:"\\u0648\\u0631\\u0648\\u062F\\u064A"},o={nan:"NaN",number:"\\u0639\\u062F\\u062F",array:"\\u0627\\u0631\\u06D0"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F instanceof ${r.expected} \\u0648\\u0627\\u06CC, \\u0645\\u06AB\\u0631 ${s} \\u062A\\u0631\\u0644\\u0627\\u0633\\u0647 \\u0634\\u0648`:`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ${i} \\u0648\\u0627\\u06CC, \\u0645\\u06AB\\u0631 ${s} \\u062A\\u0631\\u0644\\u0627\\u0633\\u0647 \\u0634\\u0648`}case"invalid_value":return r.values.length===1?`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ${R(r.values[0])} \\u0648\\u0627\\u06CC`:`\\u0646\\u0627\\u0633\\u0645 \\u0627\\u0646\\u062A\\u062E\\u0627\\u0628: \\u0628\\u0627\\u06CC\\u062F \\u06CC\\u0648 \\u0644\\u0647 ${_(r.values,"|")} \\u0685\\u062E\\u0647 \\u0648\\u0627\\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ${r.origin??"\\u0627\\u0631\\u0632\\u069A\\u062A"} \\u0628\\u0627\\u06CC\\u062F ${i}${r.maximum.toString()} ${a.unit??"\\u0639\\u0646\\u0635\\u0631\\u0648\\u0646\\u0647"} \\u0648\\u0644\\u0631\\u064A`:`\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ${r.origin??"\\u0627\\u0631\\u0632\\u069A\\u062A"} \\u0628\\u0627\\u06CC\\u062F ${i}${r.maximum.toString()} \\u0648\\u064A`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ${r.origin} \\u0628\\u0627\\u06CC\\u062F ${i}${r.minimum.toString()} ${a.unit} \\u0648\\u0644\\u0631\\u064A`:`\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ${r.origin} \\u0628\\u0627\\u06CC\\u062F ${i}${r.minimum.toString()} \\u0648\\u064A`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F "${i.prefix}" \\u0633\\u0631\\u0647 \\u067E\\u06CC\\u0644 \\u0634\\u064A`:i.format==="ends_with"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F "${i.suffix}" \\u0633\\u0631\\u0647 \\u067E\\u0627\\u06CC \\u062A\\u0647 \\u0648\\u0631\\u0633\\u064A\\u0696\\u064A`:i.format==="includes"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F "${i.includes}" \\u0648\\u0644\\u0631\\u064A`:i.format==="regex"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F ${i.pattern} \\u0633\\u0631\\u0647 \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u0648\\u0644\\u0631\\u064A`:`${n[i.format]??r.format} \\u0646\\u0627\\u0633\\u0645 \\u062F\\u06CC`}case"not_multiple_of":return`\\u0646\\u0627\\u0633\\u0645 \\u0639\\u062F\\u062F: \\u0628\\u0627\\u06CC\\u062F \\u062F ${r.divisor} \\u0645\\u0636\\u0631\\u0628 \\u0648\\u064A`;case"unrecognized_keys":return`\\u0646\\u0627\\u0633\\u0645 ${r.keys.length>1?"\\u06A9\\u0644\\u06CC\\u0689\\u0648\\u0646\\u0647":"\\u06A9\\u0644\\u06CC\\u0689"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0646\\u0627\\u0633\\u0645 \\u06A9\\u0644\\u06CC\\u0689 \\u067E\\u0647 ${r.origin} \\u06A9\\u06D0`;case"invalid_union":return"\\u0646\\u0627\\u0633\\u0645\\u0647 \\u0648\\u0631\\u0648\\u062F\\u064A";case"invalid_element":return`\\u0646\\u0627\\u0633\\u0645 \\u0639\\u0646\\u0635\\u0631 \\u067E\\u0647 ${r.origin} \\u06A9\\u06D0`;default:return"\\u0646\\u0627\\u0633\\u0645\\u0647 \\u0648\\u0631\\u0648\\u062F\\u064A"}}};function nS(){return{localeError:bI()}}var $I=()=>{let e={string:{unit:"znak\\xF3w",verb:"mie\\u0107"},file:{unit:"bajt\\xF3w",verb:"mie\\u0107"},array:{unit:"element\\xF3w",verb:"mie\\u0107"},set:{unit:"element\\xF3w",verb:"mie\\u0107"},map:{unit:"element\\xF3w",verb:"mie\\u0107"}};function t(r){return e[r]??null}let n={regex:"wyra\\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\\u0105g znak\\xF3w zakodowany w formacie base64",base64url:"ci\\u0105g znak\\xF3w zakodowany w formacie base64url",json_string:"ci\\u0105g znak\\xF3w w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",jwt:"JWT",template_literal:"wej\\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return r.values.length===1?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${R(r.values[0])}`:`Nieprawid\\u0142owa opcja: oczekiwano jednej z warto\\u015Bci ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\\u017Ca warto\\u015B\\u0107: oczekiwano, \\u017Ce ${r.origin??"warto\\u015B\\u0107"} b\\u0119dzie mie\\u0107 ${i}${r.maximum.toString()} ${a.unit??"element\\xF3w"}`:`Zbyt du\\u017C(y/a/e): oczekiwano, \\u017Ce ${r.origin??"warto\\u015B\\u0107"} b\\u0119dzie wynosi\\u0107 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\\u0142a warto\\u015B\\u0107: oczekiwano, \\u017Ce ${r.origin??"warto\\u015B\\u0107"} b\\u0119dzie mie\\u0107 ${i}${r.minimum.toString()} ${a.unit??"element\\xF3w"}`:`Zbyt ma\\u0142(y/a/e): oczekiwano, \\u017Ce ${r.origin??"warto\\u015B\\u0107"} b\\u0119dzie wynosi\\u0107 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zaczyna\\u0107 si\\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi ko\\u0144czy\\u0107 si\\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zawiera\\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi odpowiada\\u0107 wzorcowi ${i.pattern}`:`Nieprawid\\u0142ow(y/a/e) ${n[i.format]??r.format}`}case"not_multiple_of":return`Nieprawid\\u0142owa liczba: musi by\\u0107 wielokrotno\\u015Bci\\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Nieprawid\\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\\u0142owe dane wej\\u015Bciowe";case"invalid_element":return`Nieprawid\\u0142owa warto\\u015B\\u0107 w ${r.origin}`;default:return"Nieprawid\\u0142owe dane wej\\u015Bciowe"}}};function oS(){return{localeError:$I()}}var zI=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let n={regex:"a entrada",email:"o endere\\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\\xE7\\xE3o ISO",ipv4:"o endere\\xE7o IPv4",ipv6:"o endere\\xE7o IPv6",mac:"o endere\\xE7o MAC",cidrv4:"o intervalo de endere\\xE7os IPv4",cidrv6:"o intervalo de endere\\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\\xFAmero E.164",credit_card:"o n\\xFAmero de cart\\xE3o de cr\\xE9dito",jwt:"o JWT",template_literal:"a entrada"},o={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},r={string:{name:"texto",articles:o.masculine},number:{name:"n\\xFAmero",articles:o.masculine},int:{name:"n\\xFAmero inteiro",articles:o.masculine},boolean:{name:"valor booleano",articles:o.masculine},bigint:{name:"n\\xFAmero bigint",articles:o.masculine},symbol:{name:"s\\xEDmbolo",articles:o.masculine},undefined:{name:\'valor "undefined"\',articles:o.masculine},null:{name:\'valor "nulo"\',articles:o.masculine},never:{name:\'valor "never"\',articles:o.masculine},void:{name:\'valor "void"\',articles:o.masculine},date:{name:"data",articles:o.feminine},array:{name:"vetor",articles:o.masculine},object:{name:"objeto",articles:o.masculine},tuple:{name:"tuplo",articles:o.masculine},record:{name:"registo",articles:o.masculine},map:{name:"mapa",articles:o.masculine},set:{name:"conjunto",articles:o.masculine},file:{name:"ficheiro",articles:o.masculine},nonoptional:{name:"valor n\\xE3o opcional",articles:o.masculine},nan:{name:\'valor "NaN"\',articles:o.masculine},function:{name:"fun\\xE7\\xE3o",articles:o.feminine}};function i(a,s){let c=r[a]??{name:`valor "${a}"`,articles:o.masculine};return`${c.articles[s]} ${c.name}`}return a=>{switch(a.code){case"invalid_type":{let s=i(a.expected,"indefinite"),c=k(a.input),l=i(c,"indefinite");return`Entrada inv\\xE1lida: esperava ${s}, recebeu ${l}`}case"invalid_value":return a.values.length===1?`Entrada inv\\xE1lida: esperava ${R(a.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${_(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",c=t(a.origin);return c?`Demasiado grande: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${c.unit??"elementos"}`:`Demasiado grande: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",c=t(a.origin);return c?`Demasiado pequeno: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${c.unit??"elementos"}`:`Demasiado pequeno: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\\xE1lido: deve come\\xE7ar por "${s.prefix}"`:s.format==="ends_with"?`Texto inv\\xE1lido: deve terminar em "${s.suffix}"`:s.format==="includes"?`Texto inv\\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${s.pattern}`:`Formato d${n[s.format]??a.format} inv\\xE1lido`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\\xE1lida${s}: ${_(a.keys,", ")}`}case"invalid_key":return`Entrada inv\\xE1lida n${i(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${a.options.map(c=>`\'${c}\'`).join(" | ")}`:"Entrada inv\\xE1lida";case"invalid_element":return`Entrada inv\\xE1lida n${i(a.origin,"definite")}`;default:return"Entrada inv\\xE1lida"}}};function iS(){return{localeError:zI()}}var RI=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let n={regex:"a entrada",email:"o endere\\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\\xE7\\xE3o ISO",ipv4:"o endere\\xE7o IPv4",ipv6:"o endere\\xE7o IPv6",mac:"o endere\\xE7o MAC",cidrv4:"a faixa de endere\\xE7os IPv4",cidrv6:"a faixa de endere\\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\\xFAmero E.164",credit_card:"o n\\xFAmero de cart\\xE3o de cr\\xE9dito",jwt:"o JWT",template_literal:"a entrada"},o={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},r={string:{name:"texto",articles:o.masculine},number:{name:"n\\xFAmero",articles:o.masculine},int:{name:"n\\xFAmero inteiro",articles:o.masculine},boolean:{name:"valor booleano",articles:o.masculine},bigint:{name:"n\\xFAmero bigint",articles:o.masculine},symbol:{name:"s\\xEDmbolo",articles:o.masculine},undefined:{name:\'valor "undefined"\',articles:o.masculine},null:{name:\'valor "nulo"\',articles:o.masculine},never:{name:\'valor "never"\',articles:o.masculine},void:{name:\'valor "void"\',articles:o.masculine},date:{name:"data",articles:o.feminine},array:{name:"vetor",articles:o.masculine},object:{name:"objeto",articles:o.masculine},tuple:{name:"tupla",articles:o.feminine},record:{name:"registro",articles:o.masculine},map:{name:"mapa",articles:o.masculine},set:{name:"conjunto",articles:o.masculine},file:{name:"arquivo",articles:o.masculine},nonoptional:{name:"valor n\\xE3o opcional",articles:o.masculine},nan:{name:\'valor "NaN"\',articles:o.masculine},function:{name:"fun\\xE7\\xE3o",articles:o.feminine}};function i(a,s){let c=r[a]??{name:`valor "${a}"`,articles:o.masculine};return`${c.articles[s]} ${c.name}`}return a=>{switch(a.code){case"invalid_type":{let s=i(a.expected,"indefinite"),c=k(a.input),l=i(c,"indefinite");return`Entrada inv\\xE1lida: esperava ${s}, recebeu ${l}`}case"invalid_value":return a.values.length===1?`Entrada inv\\xE1lida: esperava ${R(a.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${_(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",c=t(a.origin);return c?`Grande demais: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${c.unit??"elementos"}`:`Grande demais: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",c=t(a.origin);return c?`Pequeno demais: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${c.unit??"elementos"}`:`Pequeno demais: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\\xE1lido: deve come\\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${s.pattern}`:`Formato d${n[s.format]??a.format} inv\\xE1lido`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\\xE1lida${s}: ${_(a.keys,", ")}`}case"invalid_key":return`Entrada inv\\xE1lida n${i(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${a.options.map(c=>`\'${c}\'`).join(" | ")}`:"Entrada inv\\xE1lida";case"invalid_element":return`Entrada inv\\xE1lida n${i(a.origin,"definite")}`;default:return"Entrada inv\\xE1lida"}}};function aS(){return{localeError:RI()}}var kI=()=>{let e={string:{unit:"caractere",verb:"s\\u0103 aib\\u0103"},file:{unit:"octe\\u021Bi",verb:"s\\u0103 aib\\u0103"},array:{unit:"elemente",verb:"s\\u0103 aib\\u0103"},set:{unit:"elemente",verb:"s\\u0103 aib\\u0103"},map:{unit:"intr\\u0103ri",verb:"s\\u0103 aib\\u0103"}};function t(r){return e[r]??null}let n={regex:"intrare",email:"adres\\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\\u0103 \\u0219i or\\u0103 ISO",date:"dat\\u0103 ISO",time:"or\\u0103 ISO",duration:"durat\\u0103 ISO",ipv4:"adres\\u0103 IPv4",ipv6:"adres\\u0103 IPv6",mac:"adres\\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\\u0219ir codat base64",base64url:"\\u0219ir codat base64url",json_string:"\\u0219ir JSON",e164:"num\\u0103r E.164",credit_card:"num\\u0103r de card de credit",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\\u0219ir",number:"num\\u0103r",boolean:"boolean",function:"func\\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\\u0103r mare",void:"void",never:"never",map:"hart\\u0103",set:"set"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`Intrare invalid\\u0103: a\\u0219teptat ${i}, primit ${s}`}case"invalid_value":return r.values.length===1?`Intrare invalid\\u0103: a\\u0219teptat ${R(r.values[0])}`:`Op\\u021Biune invalid\\u0103: a\\u0219teptat una dintre ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Prea mare: a\\u0219teptat ca ${r.origin??"valoarea"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\\u0219teptat ca ${r.origin??"valoarea"} s\\u0103 fie ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Prea mic: a\\u0219teptat ca ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Prea mic: a\\u0219teptat ca ${r.origin} s\\u0103 fie ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0218ir invalid: trebuie s\\u0103 \\xEEnceap\\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\\u0218ir invalid: trebuie s\\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\\u0218ir invalid: trebuie s\\u0103 includ\\u0103 "${i.includes}"`:i.format==="regex"?`\\u0218ir invalid: trebuie s\\u0103 se potriveasc\\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??r.format}`}case"not_multiple_of":return`Num\\u0103r invalid: trebuie s\\u0103 fie multiplu de ${r.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${_(r.keys,", ")}`;case"invalid_key":return`Cheie invalid\\u0103 \\xEEn ${r.origin}`;case"invalid_union":return"Intrare invalid\\u0103";case"invalid_element":return`Valoare invalid\\u0103 \\xEEn ${r.origin}`;default:return"Intrare invalid\\u0103"}}};function sS(){return{localeError:kI()}}function cS(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}var wI=()=>{let e={string:{unit:{one:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B",few:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0430",many:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},file:{unit:{one:"\\u0431\\u0430\\u0439\\u0442",few:"\\u0431\\u0430\\u0439\\u0442\\u0430",many:"\\u0431\\u0430\\u0439\\u0442"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},array:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},set:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},map:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"}};function t(r){return e[r]??null}let n={regex:"\\u0432\\u0432\\u043E\\u0434",email:"email \\u0430\\u0434\\u0440\\u0435\\u0441",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0430 \\u0438 \\u0432\\u0440\\u0435\\u043C\\u044F",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u044F",duration:"ISO \\u0434\\u043B\\u0438\\u0442\\u0435\\u043B\\u044C\\u043D\\u043E\\u0441\\u0442\\u044C",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441",mac:"MAC \\u0430\\u0434\\u0440\\u0435\\u0441",cidrv4:"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64",base64url:"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64url",json_string:"JSON \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430",e164:"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B",jwt:"JWT",template_literal:"\\u0432\\u0432\\u043E\\u0434"},o={nan:"NaN",number:"\\u0447\\u0438\\u0441\\u043B\\u043E",array:"\\u043C\\u0430\\u0441\\u0441\\u0438\\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C instanceof ${r.expected}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E ${s}`:`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ${i}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E ${s}`}case"invalid_value":return r.values.length===1?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ${R(r.values[0])}`:`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0430\\u0440\\u0438\\u0430\\u043D\\u0442: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C \\u043E\\u0434\\u043D\\u043E \\u0438\\u0437 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=cS(s,a.unit.one,a.unit.few,a.unit.many);return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u0431\\u043E\\u043B\\u044C\\u0448\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435"} \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ${i}${r.maximum.toString()} ${c}`}return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u0431\\u043E\\u043B\\u044C\\u0448\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435"} \\u0431\\u0443\\u0434\\u0435\\u0442 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=cS(s,a.unit.one,a.unit.few,a.unit.many);return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u043C\\u0430\\u043B\\u0435\\u043D\\u044C\\u043A\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${r.origin} \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ${i}${r.minimum.toString()} ${c}`}return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u043C\\u0430\\u043B\\u0435\\u043D\\u044C\\u043A\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${r.origin} \\u0431\\u0443\\u0434\\u0435\\u0442 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u043D\\u0430\\u0447\\u0438\\u043D\\u0430\\u0442\\u044C\\u0441\\u044F \\u0441 "${i.prefix}"`:i.format==="ends_with"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0438\\u0432\\u0430\\u0442\\u044C\\u0441\\u044F \\u043D\\u0430 "${i.suffix}"`:i.format==="includes"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u0434\\u0435\\u0440\\u0436\\u0430\\u0442\\u044C "${i.includes}"`:i.format==="regex"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u043E\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u043E\\u0432\\u0430\\u0442\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ${i.pattern}`:`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u043E\\u0435 \\u0447\\u0438\\u0441\\u043B\\u043E: \\u0434\\u043E\\u043B\\u0436\\u043D\\u043E \\u0431\\u044B\\u0442\\u044C \\u043A\\u0440\\u0430\\u0442\\u043D\\u044B\\u043C ${r.divisor}`;case"unrecognized_keys":return`\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u043E\\u0437\\u043D\\u0430\\u043D\\u043D${r.keys.length>1?"\\u044B\\u0435":"\\u044B\\u0439"} \\u043A\\u043B\\u044E\\u0447${r.keys.length>1?"\\u0438":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0432 ${r.origin}`;case"invalid_union":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0435 \\u0432\\u0445\\u043E\\u0434\\u043D\\u044B\\u0435 \\u0434\\u0430\\u043D\\u043D\\u044B\\u0435";case"invalid_element":return`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435 \\u0432 ${r.origin}`;default:return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0435 \\u0432\\u0445\\u043E\\u0434\\u043D\\u044B\\u0435 \\u0434\\u0430\\u043D\\u043D\\u044B\\u0435"}}};function lS(){return{localeError:wI()}}var II=()=>{let e={string:{unit:"znakov",verb:"ma\\u0165"},file:{unit:"bajtov",verb:"ma\\u0165"},array:{unit:"prvkov",verb:"ma\\u0165"},set:{unit:"prvkov",verb:"ma\\u0165"},map:{unit:"polo\\u017Eiek",verb:"ma\\u0165"}};function t(r){return e[r]??null}let n={regex:"regul\\xE1rny v\\xFDraz",email:"e-mailov\\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"d\\xE1tum a \\u010Das vo form\\xE1te ISO",date:"d\\xE1tum vo form\\xE1te ISO",time:"\\u010Das vo form\\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64",base64url:"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64url",json_string:"re\\u0165azec vo form\\xE1te JSON",e164:"\\u010D\\xEDslo E.164",credit_card:"\\u010D\\xEDslo kreditnej karty",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\\u010D\\xEDslo",string:"re\\u0165azec",function:"funkcia",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 instanceof ${r.expected}, obdr\\u017Ean\\xE9 ${s}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${i}, obdr\\u017Ean\\xE9 ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${R(r.values[0])}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE1 jedna z hodn\\xF4t ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${r.origin??"hodnota"} mus\\xED ma\\u0165 ${i}${r.maximum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${r.origin??"hodnota"} mus\\xED by\\u0165 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${r.origin??"hodnota"} mus\\xED ma\\u0165 ${i}${r.minimum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${r.origin??"hodnota"} mus\\xED by\\u0165 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neplatn\\xFD re\\u0165azec: mus\\xED za\\u010D\\xEDna\\u0165 na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\\xFD re\\u0165azec: mus\\xED kon\\u010Di\\u0165 na "${i.suffix}"`:i.format==="includes"?`Neplatn\\xFD re\\u0165azec: mus\\xED obsahova\\u0165 "${i.includes}"`:i.format==="regex"?`Neplatn\\xFD re\\u0165azec: mus\\xED zodpoveda\\u0165 vzoru ${i.pattern}`:`Neplatn\\xFD form\\xE1t ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED by\\u0165 n\\xE1sobkom ${r.divisor}`;case"unrecognized_keys":return`Nezn\\xE1me kl\\xFA\\u010De: ${_(r.keys,", ")}`;case"invalid_key":return`Neplatn\\xFD kl\\xFA\\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\\xFD vstup";case"invalid_element":return`Neplatn\\xE1 hodnota v ${r.origin}`;default:return"Neplatn\\xFD vstup"}}};function uS(){return{localeError:II()}}var TI=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n={regex:"vnos",email:"e-po\\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \\u010Das",date:"ISO datum",time:"ISO \\u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \\u0161tevilka",credit_card:"\\u0161tevilka kreditne kartice",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\\u010Dakovano ${R(r.values[0])}`:`Neveljavna mo\\u017Enost: pri\\u010Dakovano eno izmed ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\\u010Dakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neveljaven niz: mora se za\\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??r.format}`}case"not_multiple_of":return`Neveljavno \\u0161tevilo: mora biti ve\\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\\u010Di":" klju\\u010D"}: ${_(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function dS(){return{localeError:TI()}}var xI=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\\xE5lla"},set:{unit:"objekt",verb:"att inneh\\xE5lla"},map:{unit:"objekt",verb:"att inneh\\xE5lla"}};function t(r){return e[r]??null}let n={regex:"regulj\\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\\xE4ng",base64url:"base64url-kodad str\\xE4ng",json_string:"JSON-str\\xE4ng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\\xF6rv\\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${i}, fick ${s}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${R(r.values[0])}`:`Ogiltigt val: f\\xF6rv\\xE4ntade en av ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\\xF6r stor(t): f\\xF6rv\\xE4ntade ${r.origin??"v\\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.unit??"element"}`:`F\\xF6r stor(t): f\\xF6rv\\xE4ntat ${r.origin??"v\\xE4rdet"} att ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`F\\xF6r lite(t): f\\xF6rv\\xE4ntade ${r.origin??"v\\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.unit}`:`F\\xF6r lite(t): f\\xF6rv\\xE4ntade ${r.origin??"v\\xE4rdet"} att ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ogiltig str\\xE4ng: m\\xE5ste b\\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\\xE4ng: m\\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\\xE4ng: m\\xE5ste inneh\\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\\xE4ng: m\\xE5ste matcha m\\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\\xE4rde i ${r.origin??"v\\xE4rdet"}`;default:return"Ogiltig input"}}};function mS(){return{localeError:xI()}}var EI=()=>{let e={string:{unit:"\\u0B8E\\u0BB4\\u0BC1\\u0BA4\\u0BCD\\u0BA4\\u0BC1\\u0B95\\u0BCD\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},file:{unit:"\\u0BAA\\u0BC8\\u0B9F\\u0BCD\\u0B9F\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},array:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},set:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},map:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"}};function t(r){return e[r]??null}let n={regex:"\\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1",email:"\\u0BAE\\u0BBF\\u0BA9\\u0BCD\\u0BA9\\u0B9E\\u0BCD\\u0B9A\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD",date:"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF",time:"ISO \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD",duration:"ISO \\u0B95\\u0BBE\\u0BB2 \\u0B85\\u0BB3\\u0BB5\\u0BC1",ipv4:"IPv4 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",ipv6:"IPv6 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",mac:"MAC \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",cidrv4:"IPv4 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1",cidrv6:"IPv6 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1",base64:"base64-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD",base64url:"base64url-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD",json_string:"JSON \\u0B9A\\u0BB0\\u0BAE\\u0BCD",e164:"E.164 \\u0B8E\\u0BA3\\u0BCD",credit_card:"\\u0B95\\u0B9F\\u0BA9\\u0BCD \\u0B85\\u0B9F\\u0BCD\\u0B9F\\u0BC8 \\u0B8E\\u0BA3\\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\\u0B8E\\u0BA3\\u0BCD",array:"\\u0B85\\u0BA3\\u0BBF",null:"\\u0BB5\\u0BC6\\u0BB1\\u0BC1\\u0BAE\\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 instanceof ${r.expected}, \\u0BAA\\u0BC6\\u0BB1\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${s}`:`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${i}, \\u0BAA\\u0BC6\\u0BB1\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${s}`}case"invalid_value":return r.values.length===1?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${R(r.values[0])}`:`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BB5\\u0BBF\\u0BB0\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BAE\\u0BCD: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${_(r.values,"|")} \\u0B87\\u0BB2\\u0BCD \\u0B92\\u0BA9\\u0BCD\\u0BB1\\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0BAE\\u0BBF\\u0B95 \\u0BAA\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${r.origin??"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1"} ${i}${r.maximum.toString()} ${a.unit??"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD"} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:`\\u0BAE\\u0BBF\\u0B95 \\u0BAA\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${r.origin??"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1"} ${i}${r.maximum.toString()} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0BAE\\u0BBF\\u0B95\\u0B9A\\u0BCD \\u0B9A\\u0BBF\\u0BB1\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${r.origin} ${i}${r.minimum.toString()} ${a.unit} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:`\\u0BAE\\u0BBF\\u0B95\\u0B9A\\u0BCD \\u0B9A\\u0BBF\\u0BB1\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${r.origin} ${i}${r.minimum.toString()} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "${i.prefix}" \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BCA\\u0B9F\\u0B99\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:i.format==="ends_with"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "${i.suffix}" \\u0B87\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B9F\\u0BBF\\u0BB5\\u0B9F\\u0BC8\\u0BAF \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:i.format==="includes"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "${i.includes}" \\u0B90 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0B9F\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:i.format==="regex"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: ${i.pattern} \\u0BAE\\u0BC1\\u0BB1\\u0BC8\\u0BAA\\u0BBE\\u0B9F\\u0BCD\\u0B9F\\u0BC1\\u0B9F\\u0BA9\\u0BCD \\u0BAA\\u0BCA\\u0BB0\\u0BC1\\u0BA8\\u0BCD\\u0BA4 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B8E\\u0BA3\\u0BCD: ${r.divisor} \\u0B87\\u0BA9\\u0BCD \\u0BAA\\u0BB2\\u0BAE\\u0BBE\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`;case"unrecognized_keys":return`\\u0B85\\u0B9F\\u0BC8\\u0BAF\\u0BBE\\u0BB3\\u0BAE\\u0BCD \\u0BA4\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BBE\\u0BA4 \\u0BB5\\u0BBF\\u0B9A\\u0BC8${r.keys.length>1?"\\u0B95\\u0BB3\\u0BCD":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BB5\\u0BBF\\u0B9A\\u0BC8`;case"invalid_union":return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1";case"invalid_element":return`${r.origin} \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1`;default:return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1"}}};function pS(){return{localeError:EI()}}var PI=()=>{let e={string:{unit:"\\u0E15\\u0E31\\u0E27\\u0E2D\\u0E31\\u0E01\\u0E29\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},file:{unit:"\\u0E44\\u0E1A\\u0E15\\u0E4C",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},array:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},set:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},map:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"}};function t(r){return e[r]??null}let n={regex:"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19",email:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48\\u0E2D\\u0E35\\u0E40\\u0E21\\u0E25",url:"URL",emoji:"\\u0E2D\\u0E34\\u0E42\\u0E21\\u0E08\\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",date:"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E41\\u0E1A\\u0E1A ISO",time:"\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",duration:"\\u0E0A\\u0E48\\u0E27\\u0E07\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",ipv4:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv4",ipv6:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv6",mac:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 MAC",cidrv4:"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv4",cidrv6:"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv6",base64:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64",base64url:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64 \\u0E2A\\u0E33\\u0E2B\\u0E23\\u0E31\\u0E1A URL",json_string:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A JSON",e164:"\\u0E40\\u0E1A\\u0E2D\\u0E23\\u0E4C\\u0E42\\u0E17\\u0E23\\u0E28\\u0E31\\u0E1E\\u0E17\\u0E4C\\u0E23\\u0E30\\u0E2B\\u0E27\\u0E48\\u0E32\\u0E07\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E17\\u0E28 (E.164)",credit_card:"\\u0E2B\\u0E21\\u0E32\\u0E22\\u0E40\\u0E25\\u0E02\\u0E1A\\u0E31\\u0E15\\u0E23\\u0E40\\u0E04\\u0E23\\u0E14\\u0E34\\u0E15",jwt:"\\u0E42\\u0E17\\u0E40\\u0E04\\u0E19 JWT",template_literal:"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19"},o={nan:"NaN",number:"\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02",array:"\\u0E2D\\u0E32\\u0E23\\u0E4C\\u0E40\\u0E23\\u0E22\\u0E4C (Array)",null:"\\u0E44\\u0E21\\u0E48\\u0E21\\u0E35\\u0E04\\u0E48\\u0E32 (null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E20\\u0E17\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 instanceof ${r.expected} \\u0E41\\u0E15\\u0E48\\u0E44\\u0E14\\u0E49\\u0E23\\u0E31\\u0E1A ${s}`:`\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E20\\u0E17\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ${i} \\u0E41\\u0E15\\u0E48\\u0E44\\u0E14\\u0E49\\u0E23\\u0E31\\u0E1A ${s}`}case"invalid_value":return r.values.length===1?`\\u0E04\\u0E48\\u0E32\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ${R(r.values[0])}`:`\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E37\\u0E2D\\u0E01\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19\\u0E2B\\u0E19\\u0E36\\u0E48\\u0E07\\u0E43\\u0E19 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\\u0E44\\u0E21\\u0E48\\u0E40\\u0E01\\u0E34\\u0E19":"\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32",a=t(r.origin);return a?`\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${r.origin??"\\u0E04\\u0E48\\u0E32"} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${i} ${r.maximum.toString()} ${a.unit??"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23"}`:`\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${r.origin??"\\u0E04\\u0E48\\u0E32"} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\\u0E2D\\u0E22\\u0E48\\u0E32\\u0E07\\u0E19\\u0E49\\u0E2D\\u0E22":"\\u0E21\\u0E32\\u0E01\\u0E01\\u0E27\\u0E48\\u0E32",a=t(r.origin);return a?`\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${r.origin} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${i} ${r.minimum.toString()} ${a.unit}`:`\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${r.origin} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E02\\u0E36\\u0E49\\u0E19\\u0E15\\u0E49\\u0E19\\u0E14\\u0E49\\u0E27\\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E25\\u0E07\\u0E17\\u0E49\\u0E32\\u0E22\\u0E14\\u0E49\\u0E27\\u0E22 "${i.suffix}"`:i.format==="includes"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E21\\u0E35 "${i.includes}" \\u0E2D\\u0E22\\u0E39\\u0E48\\u0E43\\u0E19\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21`:i.format==="regex"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E15\\u0E49\\u0E2D\\u0E07\\u0E15\\u0E23\\u0E07\\u0E01\\u0E31\\u0E1A\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E17\\u0E35\\u0E48\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14 ${i.pattern}`:`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E15\\u0E49\\u0E2D\\u0E07\\u0E40\\u0E1B\\u0E47\\u0E19\\u0E08\\u0E33\\u0E19\\u0E27\\u0E19\\u0E17\\u0E35\\u0E48\\u0E2B\\u0E32\\u0E23\\u0E14\\u0E49\\u0E27\\u0E22 ${r.divisor} \\u0E44\\u0E14\\u0E49\\u0E25\\u0E07\\u0E15\\u0E31\\u0E27`;case"unrecognized_keys":return`\\u0E1E\\u0E1A\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E17\\u0E35\\u0E48\\u0E44\\u0E21\\u0E48\\u0E23\\u0E39\\u0E49\\u0E08\\u0E31\\u0E01: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E43\\u0E19 ${r.origin}`;case"invalid_union":return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E44\\u0E21\\u0E48\\u0E15\\u0E23\\u0E07\\u0E01\\u0E31\\u0E1A\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E22\\u0E39\\u0E40\\u0E19\\u0E35\\u0E22\\u0E19\\u0E17\\u0E35\\u0E48\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14\\u0E44\\u0E27\\u0E49";case"invalid_element":return`\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E43\\u0E19 ${r.origin}`;default:return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07"}}};function fS(){return{localeError:PI()}}var OI=()=>{let e={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function t(r){return e[r]??null}let n={regex:"giri\\u015F",email:"e-po\\xE7ta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \\u015Fifrlenen setir",base64url:"base64url bilen \\u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\\u0148 nomeri",jwt:"JWT",template_literal:"\\u015Fablon"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`N\\xE4dogry baha: gara\\u015Fylan ${i} \\xFDerine ${s} alyndy`}case"invalid_value":return r.values.length===1?`N\\xE4dogry baha: ${R(r.values[0])} bolmaly`:`N\\xE4dogry sa\\xFDlaw: a\\u015Fakdakylardan biri bolmaly: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Has uly: gara\\u015Fyl\\xFDan ${r.origin??"baha"} ${i} ${r.maximum.toString()} ${a.unit??"element"}`:`Has uly: gara\\u015Fyl\\xFDan ${r.origin??"baha"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`:`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`N\\xE4dogry setir: "${i.prefix}" bilen ba\\u015Flamaly`:i.format==="ends_with"?`N\\xE4dogry setir: "${i.suffix}" bilen gutarmaly`:i.format==="includes"?`N\\xE4dogry setir: "${i.includes}" saklamaly`:i.format==="regex"?`N\\xE4dogry setir: ${i.pattern} nusga la\\xFDyk bolmaly`:`N\\xE4dogry ${n[i.format]??r.format}`}case"not_multiple_of":return`N\\xE4dogry san: ${r.divisor} bilen galyndysyz b\\xF6l\\xFCnmeli`;case"unrecognized_keys":return`Tanalma\\xFDan a\\xE7ar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\\xE7inde n\\xE4dogry a\\xE7ar`;case"invalid_union":return"N\\xE4dogry baha";case"invalid_element":return`${r.origin} i\\xE7inde n\\xE4dogry baha`;default:return"N\\xE4dogry baha"}}};function hS(){return{localeError:OI()}}var CI=()=>{let e={string:{unit:"karakter",verb:"olmal\\u0131"},file:{unit:"bayt",verb:"olmal\\u0131"},array:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"},set:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"},map:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"}};function t(r){return e[r]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aral\\u0131\\u011F\\u0131",cidrv6:"IPv6 aral\\u0131\\u011F\\u0131",base64:"base64 ile \\u015Fifrelenmi\\u015F metin",base64url:"base64url ile \\u015Fifrelenmi\\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\\u0131s\\u0131",credit_card:"kredi kart\\u0131 numaras\\u0131",jwt:"JWT",template_literal:"\\u015Eablon dizesi"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\\xE7ersiz de\\u011Fer: beklenen instanceof ${r.expected}, al\\u0131nan ${s}`:`Ge\\xE7ersiz de\\u011Fer: beklenen ${i}, al\\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`Ge\\xE7ersiz de\\u011Fer: beklenen ${R(r.values[0])}`:`Ge\\xE7ersiz se\\xE7enek: a\\u015Fa\\u011F\\u0131dakilerden biri olmal\\u0131: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\xC7ok b\\xFCy\\xFCk: beklenen ${r.origin??"de\\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\\xF6\\u011Fe"}`:`\\xC7ok b\\xFCy\\xFCk: beklenen ${r.origin??"de\\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ge\\xE7ersiz metin: "${i.prefix}" ile ba\\u015Flamal\\u0131`:i.format==="ends_with"?`Ge\\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\\xE7ersiz metin: "${i.includes}" i\\xE7ermeli`:i.format==="regex"?`Ge\\xE7ersiz metin: ${i.pattern} desenine uymal\\u0131`:`Ge\\xE7ersiz ${n[i.format]??r.format}`}case"not_multiple_of":return`Ge\\xE7ersiz say\\u0131: ${r.divisor} ile tam b\\xF6l\\xFCnebilmeli`;case"unrecognized_keys":return`Tan\\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\\xE7inde ge\\xE7ersiz anahtar`;case"invalid_union":return"Ge\\xE7ersiz de\\u011Fer";case"invalid_element":return`${r.origin} i\\xE7inde ge\\xE7ersiz de\\u011Fer`;default:return"Ge\\xE7ersiz de\\u011Fer"}}};function gS(){return{localeError:CI()}}var NI=()=>{let e={string:{unit:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},file:{unit:"\\u0431\\u0430\\u0439\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},array:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},set:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},map:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"}};function t(r){return e[r]??null}let n={regex:"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456",email:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u0435\\u043B\\u0435\\u043A\\u0442\\u0440\\u043E\\u043D\\u043D\\u043E\\u0457 \\u043F\\u043E\\u0448\\u0442\\u0438",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u0434\\u0437\\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0434\\u0430\\u0442\\u0430 \\u0442\\u0430 \\u0447\\u0430\\u0441 ISO",date:"\\u0434\\u0430\\u0442\\u0430 ISO",time:"\\u0447\\u0430\\u0441 ISO",duration:"\\u0442\\u0440\\u0438\\u0432\\u0430\\u043B\\u0456\\u0441\\u0442\\u044C ISO",ipv4:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv4",ipv6:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv6",mac:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 MAC",cidrv4:"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv4",cidrv6:"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv6",base64:"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64",base64url:"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64url",json_string:"\\u0440\\u044F\\u0434\\u043E\\u043A JSON",e164:"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0457 \\u043A\\u0430\\u0440\\u0442\\u043A\\u0438",jwt:"JWT",template_literal:"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456"},o={nan:"NaN",number:"\\u0447\\u0438\\u0441\\u043B\\u043E",array:"\\u043C\\u0430\\u0441\\u0438\\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F instanceof ${r.expected}, \\u043E\\u0442\\u0440\\u0438\\u043C\\u0430\\u043D\\u043E ${s}`:`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F ${i}, \\u043E\\u0442\\u0440\\u0438\\u043C\\u0430\\u043D\\u043E ${s}`}case"invalid_value":return r.values.length===1?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F ${R(r.values[0])}`:`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0456\\u044F: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F \\u043E\\u0434\\u043D\\u0435 \\u0437 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u0432\\u0435\\u043B\\u0438\\u043A\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432"}`:`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u0432\\u0435\\u043B\\u0438\\u043A\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F"} \\u0431\\u0443\\u0434\\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${r.origin} \\u0431\\u0443\\u0434\\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043F\\u043E\\u0447\\u0438\\u043D\\u0430\\u0442\\u0438\\u0441\\u044F \\u0437 "${i.prefix}"`:i.format==="ends_with"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0456\\u043D\\u0447\\u0443\\u0432\\u0430\\u0442\\u0438\\u0441\\u044F \\u043D\\u0430 "${i.suffix}"`:i.format==="includes"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043C\\u0456\\u0441\\u0442\\u0438\\u0442\\u0438 "${i.includes}"`:i.format==="regex"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0432\\u0456\\u0434\\u043F\\u043E\\u0432\\u0456\\u0434\\u0430\\u0442\\u0438 \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ${i.pattern}`:`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0435 \\u0447\\u0438\\u0441\\u043B\\u043E: \\u043F\\u043E\\u0432\\u0438\\u043D\\u043D\\u043E \\u0431\\u0443\\u0442\\u0438 \\u043A\\u0440\\u0430\\u0442\\u043D\\u0438\\u043C ${r.divisor}`;case"unrecognized_keys":return`\\u041D\\u0435\\u0440\\u043E\\u0437\\u043F\\u0456\\u0437\\u043D\\u0430\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447${r.keys.length>1?"\\u0456":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0443 ${r.origin}`;case"invalid_union":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456";case"invalid_element":return`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F \\u0443 ${r.origin}`;default:return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456"}}};function ac(){return{localeError:NI()}}function vS(){return ac()}var jI=()=>{let e={string:{unit:"\\u062D\\u0631\\u0648\\u0641",verb:"\\u06C1\\u0648\\u0646\\u0627"},file:{unit:"\\u0628\\u0627\\u0626\\u0679\\u0633",verb:"\\u06C1\\u0648\\u0646\\u0627"},array:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"},set:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"},map:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"}};function t(r){return e[r]??null}let n={regex:"\\u0627\\u0646 \\u067E\\u0679",email:"\\u0627\\u06CC \\u0645\\u06CC\\u0644 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",url:"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC",uuid:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",uuidv4:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 4",uuidv6:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 6",nanoid:"\\u0646\\u06CC\\u0646\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",guid:"\\u062C\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",cuid:"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",cuid2:"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC 2",ulid:"\\u06CC\\u0648 \\u0627\\u06CC\\u0644 \\u0622\\u0626\\u06CC \\u0688\\u06CC",xid:"\\u0627\\u06CC\\u06A9\\u0633 \\u0622\\u0626\\u06CC \\u0688\\u06CC",ksuid:"\\u06A9\\u06D2 \\u0627\\u06CC\\u0633 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",datetime:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0688\\u06CC\\u0679 \\u0679\\u0627\\u0626\\u0645",date:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u062A\\u0627\\u0631\\u06CC\\u062E",time:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0648\\u0642\\u062A",duration:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0645\\u062F\\u062A",ipv4:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",ipv6:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",mac:"\\u0627\\u06CC\\u0645 \\u0627\\u06D2 \\u0633\\u06CC \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",cidrv4:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0631\\u06CC\\u0646\\u062C",cidrv6:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0631\\u06CC\\u0646\\u062C",base64:"\\u0628\\u06CC\\u0633 64 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF",base64url:"\\u0628\\u06CC\\u0633 64 \\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF",json_string:"\\u062C\\u06D2 \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0627\\u06CC\\u0646 \\u0633\\u0679\\u0631\\u0646\\u06AF",e164:"\\u0627\\u06CC 164 \\u0646\\u0645\\u0628\\u0631",credit_card:"\\u06A9\\u0631\\u06CC\\u0688\\u0679 \\u06A9\\u0627\\u0631\\u0688 \\u0646\\u0645\\u0628\\u0631",jwt:"\\u062C\\u06D2 \\u0688\\u0628\\u0644\\u06CC\\u0648 \\u0679\\u06CC",template_literal:"\\u0627\\u0646 \\u067E\\u0679"},o={nan:"NaN",number:"\\u0646\\u0645\\u0628\\u0631",array:"\\u0622\\u0631\\u06D2",null:"\\u0646\\u0644"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: instanceof ${r.expected} \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627\\u060C ${s} \\u0645\\u0648\\u0635\\u0648\\u0644 \\u06C1\\u0648\\u0627`:`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ${i} \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627\\u060C ${s} \\u0645\\u0648\\u0635\\u0648\\u0644 \\u06C1\\u0648\\u0627`}case"invalid_value":return r.values.length===1?`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ${R(r.values[0])} \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`:`\\u063A\\u0644\\u0637 \\u0622\\u067E\\u0634\\u0646: ${_(r.values,"|")} \\u0645\\u06CC\\u06BA \\u0633\\u06D2 \\u0627\\u06CC\\u06A9 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ${r.origin??"\\u0648\\u06CC\\u0644\\u06CC\\u0648"} \\u06A9\\u06D2 ${i}${r.maximum.toString()} ${a.unit??"\\u0639\\u0646\\u0627\\u0635\\u0631"} \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2`:`\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ${r.origin??"\\u0648\\u06CC\\u0644\\u06CC\\u0648"} \\u06A9\\u0627 ${i}${r.maximum.toString()} \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ${r.origin} \\u06A9\\u06D2 ${i}${r.minimum.toString()} ${a.unit} \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2`:`\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ${r.origin} \\u06A9\\u0627 ${i}${r.minimum.toString()} \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "${i.prefix}" \\u0633\\u06D2 \\u0634\\u0631\\u0648\\u0639 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:i.format==="ends_with"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "${i.suffix}" \\u067E\\u0631 \\u062E\\u062A\\u0645 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:i.format==="includes"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "${i.includes}" \\u0634\\u0627\\u0645\\u0644 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:i.format==="regex"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: \\u067E\\u06CC\\u0679\\u0631\\u0646 ${i.pattern} \\u0633\\u06D2 \\u0645\\u06CC\\u0686 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:`\\u063A\\u0644\\u0637 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u063A\\u0644\\u0637 \\u0646\\u0645\\u0628\\u0631: ${r.divisor} \\u06A9\\u0627 \\u0645\\u0636\\u0627\\u0639\\u0641 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`;case"unrecognized_keys":return`\\u063A\\u06CC\\u0631 \\u062A\\u0633\\u0644\\u06CC\\u0645 \\u0634\\u062F\\u06C1 \\u06A9\\u06CC${r.keys.length>1?"\\u0632":""}: ${_(r.keys,"\\u060C ")}`;case"invalid_key":return`${r.origin} \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u06A9\\u06CC`;case"invalid_union":return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679";case"invalid_element":return`${r.origin} \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u0648\\u06CC\\u0644\\u06CC\\u0648`;default:return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679"}}};function _S(){return{localeError:jI()}}var AI=()=>{let e={string:{unit:"belgi",verb:"bo\\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\\u2018lishi kerak"},array:{unit:"element",verb:"bo\\u2018lishi kerak"},set:{unit:"element",verb:"bo\\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\\u2018lishi kerak"}};function t(r){return e[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\\u2018g\\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\\u2018g\\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return r.values.length===1?`Noto\\u2018g\\u2018ri kirish: kutilgan ${R(r.values[0])}`:`Noto\\u2018g\\u2018ri variant: quyidagilardan biri kutilgan ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Noto\\u2018g\\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\\u2018g\\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\\u2018g\\u2018ri satr: "${i.includes}" ni o\\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\\u2018g\\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\\u2018g\\u2018ri ${n[i.format]??r.format}`}case"not_multiple_of":return`Noto\\u2018g\\u2018ri raqam: ${r.divisor} ning karralisi bo\\u2018lishi kerak`;case"unrecognized_keys":return`Noma\\u2019lum kalit${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\\u2018g\\u2018ri`;case"invalid_union":return"Noto\\u2018g\\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\\u2018g\\u2018ri qiymat`;default:return"Noto\\u2018g\\u2018ri kirish"}}};function yS(){return{localeError:AI()}}var UI=()=>{let e={string:{unit:"k\\xFD t\\u1EF1",verb:"c\\xF3"},file:{unit:"byte",verb:"c\\xF3"},array:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"},set:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"},map:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"}};function t(r){return e[r]??null}let n={regex:"\\u0111\\u1EA7u v\\xE0o",email:"\\u0111\\u1ECBa ch\\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\\xE0y gi\\u1EDD ISO",date:"ng\\xE0y ISO",time:"gi\\u1EDD ISO",duration:"kho\\u1EA3ng th\\u1EDDi gian ISO",ipv4:"\\u0111\\u1ECBa ch\\u1EC9 IPv4",ipv6:"\\u0111\\u1ECBa ch\\u1EC9 IPv6",mac:"\\u0111\\u1ECBa ch\\u1EC9 MAC",cidrv4:"d\\u1EA3i IPv4",cidrv6:"d\\u1EA3i IPv6",base64:"chu\\u1ED7i m\\xE3 h\\xF3a base64",base64url:"chu\\u1ED7i m\\xE3 h\\xF3a base64url",json_string:"chu\\u1ED7i JSON",e164:"s\\u1ED1 E.164",credit_card:"s\\u1ED1 th\\u1EBB t\\xEDn d\\u1EE5ng",jwt:"JWT",template_literal:"\\u0111\\u1EA7u v\\xE0o"},o={nan:"NaN",number:"s\\u1ED1",array:"m\\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i instanceof ${r.expected}, nh\\u1EADn \\u0111\\u01B0\\u1EE3c ${s}`:`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ${i}, nh\\u1EADn \\u0111\\u01B0\\u1EE3c ${s}`}case"invalid_value":return r.values.length===1?`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ${R(r.values[0])}`:`T\\xF9y ch\\u1ECDn kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i m\\u1ED9t trong c\\xE1c gi\\xE1 tr\\u1ECB ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ${r.origin??"gi\\xE1 tr\\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"ph\\u1EA7n t\\u1EED"}`:`Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ${r.origin??"gi\\xE1 tr\\u1ECB"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i b\\u1EAFt \\u0111\\u1EA7u b\\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i k\\u1EBFt th\\xFAc b\\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i bao g\\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i kh\\u1EDBp v\\u1EDBi m\\u1EABu ${i.pattern}`:`${n[i.format]??r.format} kh\\xF4ng h\\u1EE3p l\\u1EC7`}case"not_multiple_of":return`S\\u1ED1 kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i l\\xE0 b\\u1ED9i s\\u1ED1 c\\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\\xF3a kh\\xF4ng \\u0111\\u01B0\\u1EE3c nh\\u1EADn d\\u1EA1ng: ${_(r.keys,", ")}`;case"invalid_key":return`Kh\\xF3a kh\\xF4ng h\\u1EE3p l\\u1EC7 trong ${r.origin}`;case"invalid_union":return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7";case"invalid_element":return`Gi\\xE1 tr\\u1ECB kh\\xF4ng h\\u1EE3p l\\u1EC7 trong ${r.origin}`;default:return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7"}}};function SS(){return{localeError:UI()}}var MI=()=>{let e={string:{unit:"\\u5B57\\u7B26",verb:"\\u5305\\u542B"},file:{unit:"\\u5B57\\u8282",verb:"\\u5305\\u542B"},array:{unit:"\\u9879",verb:"\\u5305\\u542B"},set:{unit:"\\u9879",verb:"\\u5305\\u542B"},map:{unit:"\\u9879",verb:"\\u5305\\u542B"}};function t(r){return e[r]??null}let n={regex:"\\u8F93\\u5165",email:"\\u7535\\u5B50\\u90AE\\u4EF6",url:"URL",emoji:"\\u8868\\u60C5\\u7B26\\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\\u65E5\\u671F\\u65F6\\u95F4",date:"ISO\\u65E5\\u671F",time:"ISO\\u65F6\\u95F4",duration:"ISO\\u65F6\\u957F",ipv4:"IPv4\\u5730\\u5740",ipv6:"IPv6\\u5730\\u5740",mac:"MAC\\u5730\\u5740",cidrv4:"IPv4\\u7F51\\u6BB5",cidrv6:"IPv6\\u7F51\\u6BB5",base64:"base64\\u7F16\\u7801\\u5B57\\u7B26\\u4E32",base64url:"base64url\\u7F16\\u7801\\u5B57\\u7B26\\u4E32",json_string:"JSON\\u5B57\\u7B26\\u4E32",e164:"E.164\\u53F7\\u7801",credit_card:"\\u4FE1\\u7528\\u5361\\u53F7",jwt:"JWT",template_literal:"\\u8F93\\u5165"},o={nan:"NaN",number:"\\u6570\\u5B57",array:"\\u6570\\u7EC4",null:"\\u7A7A\\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B instanceof ${r.expected}\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536 ${s}`:`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ${i}\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536 ${s}`}case"invalid_value":return r.values.length===1?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ${R(r.values[0])}`:`\\u65E0\\u6548\\u9009\\u9879\\uFF1A\\u671F\\u671B\\u4EE5\\u4E0B\\u4E4B\\u4E00 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ${r.origin??"\\u503C"} ${i}${r.maximum.toString()} ${a.unit??"\\u4E2A\\u5143\\u7D20"}`:`\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ${r.origin??"\\u503C"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 "${i.prefix}" \\u5F00\\u5934`:i.format==="ends_with"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 "${i.suffix}" \\u7ED3\\u5C3E`:i.format==="includes"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u5305\\u542B "${i.includes}"`:i.format==="regex"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u6EE1\\u8DB3\\u6B63\\u5219\\u8868\\u8FBE\\u5F0F ${i.pattern}`:`\\u65E0\\u6548${n[i.format]??r.format}`}case"not_multiple_of":return`\\u65E0\\u6548\\u6570\\u5B57\\uFF1A\\u5FC5\\u987B\\u662F ${r.divisor} \\u7684\\u500D\\u6570`;case"unrecognized_keys":return`\\u51FA\\u73B0\\u672A\\u77E5\\u7684\\u952E(key): ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \\u4E2D\\u7684\\u952E(key)\\u65E0\\u6548`;case"invalid_union":return"\\u65E0\\u6548\\u8F93\\u5165";case"invalid_element":return`${r.origin} \\u4E2D\\u5305\\u542B\\u65E0\\u6548\\u503C(value)`;default:return"\\u65E0\\u6548\\u8F93\\u5165"}}};function bS(){return{localeError:MI()}}var DI=()=>{let e={string:{unit:"\\u5B57\\u5143",verb:"\\u64C1\\u6709"},file:{unit:"\\u4F4D\\u5143\\u7D44",verb:"\\u64C1\\u6709"},array:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"},set:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"},map:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"}};function t(r){return e[r]??null}let n={regex:"\\u8F38\\u5165",email:"\\u90F5\\u4EF6\\u5730\\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u65E5\\u671F\\u6642\\u9593",date:"ISO \\u65E5\\u671F",time:"ISO \\u6642\\u9593",duration:"ISO \\u671F\\u9593",ipv4:"IPv4 \\u4F4D\\u5740",ipv6:"IPv6 \\u4F4D\\u5740",mac:"MAC \\u4F4D\\u5740",cidrv4:"IPv4 \\u7BC4\\u570D",cidrv6:"IPv6 \\u7BC4\\u570D",base64:"base64 \\u7DE8\\u78BC\\u5B57\\u4E32",base64url:"base64url \\u7DE8\\u78BC\\u5B57\\u4E32",json_string:"JSON \\u5B57\\u4E32",e164:"E.164 \\u6578\\u503C",credit_card:"\\u4FE1\\u7528\\u5361\\u865F",jwt:"JWT",template_literal:"\\u8F38\\u5165"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA instanceof ${r.expected}\\uFF0C\\u4F46\\u6536\\u5230 ${s}`:`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${i}\\uFF0C\\u4F46\\u6536\\u5230 ${s}`}case"invalid_value":return r.values.length===1?`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${R(r.values[0])}`:`\\u7121\\u6548\\u7684\\u9078\\u9805\\uFF1A\\u9810\\u671F\\u70BA\\u4EE5\\u4E0B\\u5176\\u4E2D\\u4E4B\\u4E00 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ${r.origin??"\\u503C"} \\u61C9\\u70BA ${i}${r.maximum.toString()} ${a.unit??"\\u500B\\u5143\\u7D20"}`:`\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ${r.origin??"\\u503C"} \\u61C9\\u70BA ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ${r.origin} \\u61C9\\u70BA ${i}${r.minimum.toString()} ${a.unit}`:`\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ${r.origin} \\u61C9\\u70BA ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 "${i.prefix}" \\u958B\\u982D`:i.format==="ends_with"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 "${i.suffix}" \\u7D50\\u5C3E`:i.format==="includes"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u5305\\u542B "${i.includes}"`:i.format==="regex"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u7B26\\u5408\\u683C\\u5F0F ${i.pattern}`:`\\u7121\\u6548\\u7684 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u7121\\u6548\\u7684\\u6578\\u5B57\\uFF1A\\u5FC5\\u9808\\u70BA ${r.divisor} \\u7684\\u500D\\u6578`;case"unrecognized_keys":return`\\u7121\\u6CD5\\u8B58\\u5225\\u7684\\u9375\\u503C${r.keys.length>1?"\\u5011":""}\\uFF1A${_(r.keys,"\\u3001")}`;case"invalid_key":return`${r.origin} \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u9375\\u503C`;case"invalid_union":return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C";case"invalid_element":return`${r.origin} \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u503C`;default:return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C"}}};function $S(){return{localeError:DI()}}var LI=()=>{let e={string:{unit:"\\xE0mi",verb:"n\\xED"},file:{unit:"bytes",verb:"n\\xED"},array:{unit:"nkan",verb:"n\\xED"},set:{unit:"nkan",verb:"n\\xED"},map:{unit:"nkan",verb:"n\\xED"}};function t(r){return e[r]??null}let n={regex:"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9",email:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC \\xECm\\u1EB9\\u0301l\\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\xE0k\\xF3k\\xF2 ISO",date:"\\u1ECDj\\u1ECD\\u0301 ISO",time:"\\xE0k\\xF3k\\xF2 ISO",duration:"\\xE0k\\xF3k\\xF2 t\\xF3 p\\xE9 ISO",ipv4:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv4",ipv6:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv6",mac:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC MAC",cidrv4:"\\xE0gb\\xE8gb\\xE8 IPv4",cidrv6:"\\xE0gb\\xE8gb\\xE8 IPv6",base64:"\\u1ECD\\u0300r\\u1ECD\\u0300 t\\xED a k\\u1ECD\\u0301 n\\xED base64",base64url:"\\u1ECD\\u0300r\\u1ECD\\u0300 base64url",json_string:"\\u1ECD\\u0300r\\u1ECD\\u0300 JSON",e164:"n\\u1ECD\\u0301mb\\xE0 E.164",credit_card:"n\\u1ECDmba kaadi gbese",jwt:"JWT",template_literal:"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9"},o={nan:"NaN",number:"n\\u1ECD\\u0301mb\\xE0",array:"akop\\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi instanceof ${r.expected}, \\xE0m\\u1ECD\\u0300 a r\\xED ${s}`:`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ${i}, \\xE0m\\u1ECD\\u0300 a r\\xED ${s}`}case"invalid_value":return r.values.length===1?`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ${R(r.values[0])}`:`\\xC0\\u1E63\\xE0y\\xE0n a\\u1E63\\xEC\\u1E63e: yan \\u1ECD\\u0300kan l\\xE1ra ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.unit}`:`T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ${i}${r.maximum}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.unit}`:`K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ${i}${r.minimum}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\u1EB9\\u0300r\\u1EB9\\u0300 p\\u1EB9\\u0300l\\xFA "${i.prefix}"`:i.format==="ends_with"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 par\\xED p\\u1EB9\\u0300l\\xFA "${i.suffix}"`:i.format==="includes"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 n\\xED "${i.includes}"`:i.format==="regex"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\xE1 \\xE0p\\u1EB9\\u1EB9r\\u1EB9 mu ${i.pattern}`:`A\\u1E63\\xEC\\u1E63e: ${n[i.format]??r.format}`}case"not_multiple_of":return`N\\u1ECD\\u0301mb\\xE0 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 j\\u1EB9\\u0301 \\xE8y\\xE0 p\\xEDp\\xEDn ti ${r.divisor}`;case"unrecognized_keys":return`B\\u1ECDt\\xECn\\xEC \\xE0\\xECm\\u1ECD\\u0300: ${_(r.keys,", ")}`;case"invalid_key":return`B\\u1ECDt\\xECn\\xEC a\\u1E63\\xEC\\u1E63e n\\xEDn\\xFA ${r.origin}`;case"invalid_union":return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e";case"invalid_element":return`Iye a\\u1E63\\xEC\\u1E63e n\\xEDn\\xFA ${r.origin}`;default:return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e"}}};function zS(){return{localeError:LI()}}var RS,pf=Symbol("ZodOutput"),ff=Symbol("ZodInput"),sc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function cc(){return new sc}(RS=globalThis).__zod_globalRegistry??(RS.__zod_globalRegistry=cc());var je=globalThis.__zod_globalRegistry;var pt=Symbol.for("zod.compile.invalid"),kS=Symbol.for("zod.compile.fallback"),Tt=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},de=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};function VI(e,t){try{return lc(e,{assertOnly:!0})}catch{return t}}function _f(e,t){try{let n=lc(e),o=me(e),r=e._zod.run,i=r.__originalRun??r,a=(s,c)=>{if(c?.async||c?.direction==="backward"||c?.skipChecks||c?.[kS]||c&&nc(c,s.value))return i(s,c);let l=n(s.value);return l!==pt?(s.value=l,s):(c&&(c[kS]=!0),i(s,c))};return a.__originalRun=i,o._zod.bag.fallbackRun=i,o._zod.bag.validator=VI(e,n),o._zod.run=a,r.__originalRun||ZI(o,e,n),o}catch(n){if(t?.strict)throw n;return e}}function ZI(e,t,n){let o=e,r=t;if(typeof r.safeParse=="function"){let i=r.safeParse;o.safeParse=(a,s)=>{let c=n(a);return c!==pt?{success:!0,data:c}:i(a,s)}}if(typeof r.parse=="function"){let i=r.parse;o.parse=(a,s)=>{let c=n(a);return c!==pt?c:i(a,s)}}}function lc(e,t){let n=!0;try{n=mf(e)}catch{}if(n)throw new de("a schema whose subtree contains a reference cycle");let o={constants:new Map,constantCounter:0,varCounter:0},r=new an(["input"]),i=_e(r,o,e,"input",!t?.assertOnly);r.write(i===null?"return true;":`return ${i};`);let a=["INVALID",...o.constants.keys()],s=[pt,...o.constants.values()],c=r.content.join(`\n`),l=t?.debug?a.length>0?`// Constants: ${a.join(", ")}\n${c}`:c:"",d=Function,m=`return (input) => {\n${c}\n}`,p;try{p=new d(...a,m)(...s)}catch(f){throw new de(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(p.code=l),p}function W(e,t){for(let[o,r]of e.constants)if(r===t)return o;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function ee(e){return`v${e.varCounter++}`}function FI(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return pt;let o=n;return o.issues.length===0?o.value:pt}function Ye(e,t,n,o,r=!0){let i=e.content.length,a=t.constants.size,s=t.constantCounter,c=t.varCounter;try{return _e(e,t,n,o,r)}catch(l){if(!(l instanceof de)||!l.islandable)throw l;if(e.content.length=i,t.constants.size>a){let d=Array.from(t.constants.keys()).slice(a);for(let m of d)t.constants.delete(m)}return t.constantCounter=s,t.varCounter=c,KI(e,t,n,o)}}function KI(e,t,n,o){let r=W(t,n),i=W(t,FI),a=ee(t);return e.write(`const ${a} = ${i}(${r}, ${o});`),e.write(`if (${a} === INVALID) return INVALID;`),a}var JI=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function BI(e,t,n,o){let r=n._zod.def.checks;if(!r||r.length===0)return o;let i=o;for(let a of r){let s=a._zod.def;if(s.when&&!JI.has(s.check))throw new de(\'check with a custom "when" condition\');switch(s.check){case"greater_than":HI(e,t,s,i);break;case"less_than":YI(e,t,s,i);break;case"multiple_of":GI(e,t,s,i);break;case"number_format":xS(e,s,i);break;case"min_length":{let c=cn(s.minimum,"min_length"),l=hf(e,t,i,`${i}.length >= ${c} && ${i}.length < ${s.minimum*2}`);e.write(`if (${l} < ${c}) return INVALID;`);break}case"max_length":{let c=cn(s.maximum,"max_length"),l=hf(e,t,i,`${i}.length > ${c}`);e.write(`if (${l} > ${c}) return INVALID;`);break}case"length_equals":{let c=cn(s.length,"length_equals"),l=hf(e,t,i,`${i}.length >= ${c} && ${i}.length <= ${s.length*2}`);e.write(`if (${l} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${i}.size < ${cn(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${cn(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${cn(s.size,"size_equals")}) return INVALID;`);break;case"string_format":i=ES(e,t,s,i);break;case"custom":i=tT(e,t,a,i);break;case"bigint_format":WI(e,s,i);break;case"mime_type":XI(e,t,s,i);break;case"property":QI(e,t,s,i);break;case"overwrite":{let c=ee(t);eT(e,t,a,i,c),i=c;break}default:throw new de(`check type ${s.check}`)}}return i}function hf(e,t,n,o){let r=W(t,nn),i=ee(t);return e.write(`const ${i} = typeof ${n} === "string" && ${o} ? ${r}(${n}) : ${n}.length;`),i}function cn(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new de(`${t} bound of type ${typeof e}`);return`${e}`}function TS(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new de("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new de("comparison check with Invalid Date bound");return W(e,t)}throw new de(`comparison check bound of type ${typeof t}`)}function HI(e,t,n,o){let r=n.inclusive?"<":"<=";e.write(`if (${o} ${r} ${TS(t,n.value)}) return INVALID;`)}function YI(e,t,n,o){let r=n.inclusive?">":">=";e.write(`if (${o} ${r} ${TS(t,n.value)}) return INVALID;`)}function GI(e,t,n,o){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new de("multiple_of check with a zero divisor");e.write(`if (${o} % ${n.value}n !== 0n) return INVALID;`)}else{let r=W(t,yi);e.write(`if (${r}(${o}, ${cn(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function xS(e,t,n){let o=t.format;switch(o){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new de(`number format ${o}`)}}function WI(e,t,n){let o=t.format;if(o)switch(o){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new de(`bigint format ${o}`)}}function XI(e,t,n,o){let r=n.mime;if(r&&r.length>0){let i=W(t,new Set(r));e.write(`if (!${i}.has(${o}.type)) return INVALID;`)}}function QI(e,t,n,o){let r=`${o}[${JSON.stringify(n.property)}]`;_e(e,t,n.schema,r)}function eT(e,t,n,o,r){let i=n._zod.def.tx;if(!i)throw new de("overwrite check without a transform function");if(dn(i))throw new Tt("z.compile: async overwrite transforms are not supported");let a=W(t,i);e.write(`const ${r} = ${a}(${o});`)}function gf(){throw new ot}function yf(e){this.issues.push(e)}function tT(e,t,n,o){let r=n._zod.def;if(r.fn){if(dn(r.fn))throw new Tt("z.compile: async .refine() predicates are not supported");let i=W(t,r.fn),a=W(t,gf),s=ee(t);return e.write(`const ${s} = ${i}(${o});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),o}if(n._zod.check){if(dn(n._zod.check))throw new Tt("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,s=W(t,l=>{let d={value:l,issues:[],addIssue:yf};return i(d)instanceof Promise&&gf(),d.issues.length===0?d.value:pt}),c=ee(t);return e.write(`const ${c} = ${s}(${o});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new de("custom check without a predicate or check function")}var rT=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function ES(e,t,n,o){let r=n.format;if(r==="base64"){let c=W(t,Oi);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(r==="base64url"){let c=W(t,Js);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(r==="jwt"){let c=W(t,Hs),l=W(t,n.alg??null);return e.write(`if (!${c}(${o}, ${l})) return INVALID;`),o}if(r==="ipv6"){let c=W(t,Pi);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(r==="cidrv6"){let c=W(t,Ks);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(r==="credit_card"){let c=W(t,Bs);return e.write(`if (!${c}(${o})) return INVALID;`),o}let i=n;if(r==="url"||r==="httpurl"||i.normalize||i.hostname!==void 0||i.protocol!==void 0){let c=W(t,qs),l=W(t,n),d=ee(t),m=ee(t);if(e.write(`const ${d} = ${o}.trim();`),e.write(`const ${m} = ${c}(${d}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),i.hostname!==void 0){let h=W(t,Zs);e.write(`if (!${h}(${m}, ${l}.hostname)) return INVALID;`)}if(i.protocol!==void 0){let h=W(t,Fs);e.write(`if (!${h}(${m}, ${l}.protocol)) return INVALID;`)}let p=ee(t),f=i.normalize?`${m}.href`:`${W(t,Vs)}(${d})`;return e.write(`const ${p} = ${f};`),p}let a=n.fn;if(a){if(dn(a))throw new de(`async string format ${r}`);let c=W(t,a);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(rT.has(r)&&n.pattern){let c=W(t,n.pattern);return e.write(`${c}.lastIndex = 0;`),e.write(`if (!${c}.test(${o})) return INVALID;`),o}let s=n.format;switch(s){case"regex":throw new de("regex format without a pattern");case"lowercase":e.write(`if (${o} !== ${o}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${o} !== ${o}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${o}.includes(${tt(n.includes)})) return INVALID;`);break;case"starts_with":{let c=n.prefix;e.write(`if (${o}.slice(0, ${c.length}) !== ${tt(c)}) return INVALID;`);break}case"ends_with":{let c=n.suffix;e.write(`if (${o}.slice(-${c.length}) !== ${tt(c)}) return INVALID;`);break}default:throw new de(`string format ${s}`)}return o}function _e(e,t,n,o,r=!0){let i=n._zod.def,a=i.type;if(i.coerce)throw new de(`coercion (z.coerce.${a}())`);let s=r||!!i.checks?.length,c;switch(a){case"string":c=nT(e,t,n,o);break;case"number":c=oT(e,n,o);break;case"boolean":c=iT(e,o);break;case"bigint":c=aT(e,n,o);break;case"symbol":c=sT(e,o);break;case"undefined":c=cT(e,o);break;case"null":c=lT(e,o);break;case"any":case"unknown":c=o;break;case"never":e.write("return INVALID;"),c=o;break;case"void":c=uT(e,o);break;case"nan":c=dT(e,o);break;case"date":c=mT(e,o);break;case"object":c=pT(e,t,n,o,s);break;case"optional":c=fT(e,t,n,o,s);break;case"nullable":c=vT(e,t,n,o,s);break;case"array":c=_T(e,t,n,o,s);break;case"literal":c=yT(e,t,n,o);break;case"enum":c=ST(e,t,n,o);break;case"readonly":{let l=wS(e,t,n,o),d=ee(t);e.write(`const ${d} = Object.freeze(${l});`),c=d;break}case"success":wS(e,t,n,o),c="true";break;case"default":case"prefault":c=bT(e,t,n,o);break;case"nonoptional":c=$T(e,t,n,o);break;case"tuple":c=zT(e,t,n,o);break;case"union":c=RT(e,t,n,o);break;case"intersection":c=IT(e,t,n,o);break;case"record":c=TT(e,t,n,o);break;case"map":c=ET(e,t,n,o);break;case"set":c=PT(e,t,n,o);break;case"file":c=OT(e,o);break;case"template_literal":c=CT(e,t,n,o);break;case"lazy":c=NT(e,t,n,o);break;case"pipe":c=jT(e,t,n,o);break;case"custom":c=AT(e,t,n,o);break;case"transform":c=DT(e,t,n,o);break;case"catch":c=MT(e,t,n,o);break;default:throw new de(`schema type ${a}`)}return c===null?null:BI(e,t,n,c)}function nT(e,t,n,o){e.write(`if (typeof ${o} !== "string") return INVALID;`);let r=n._zod.def;return r.format===void 0?o:ES(e,t,r,o)}function oT(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let o=t._zod.def;return o.check==="number_format"&&o.format&&xS(e,{format:o.format},n),n}function iT(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function aT(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let o=t._zod.def;if(o.format)switch(o.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function sT(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function cT(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function lT(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function uT(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function dT(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function mT(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function pT(e,t,n,o,r=!0){let i=n._zod.def;e.write(`if (typeof ${o} !== "object" || ${o} === null || Array.isArray(${o})) return INVALID;`);let a=i.shape,s=Object.keys(a),c=Object.getOwnPropertySymbols(a),l=c.length?[...s,...c]:s,d=T=>typeof T=="symbol"?W(t,T):tt(T),m=T=>typeof T=="symbol"?`[${d(T)}]`:tt(T),p=a;if(s.includes("__proto__"))throw new de(\'object shape key "__proto__"\');let f=new Map;for(let T of l){let E=p[T],K=d(T),Z=ee(t);if(e.write(`const ${Z} = ${o}[${K}];`),E._zod.optin!==void 0){let N=ee(t);e.write(`let ${N} = (() => {`),e.indented(re=>{let oe=Ye(re,t,E,Z);re.write(`return ${oe};`)}),e.write("})();"),E._zod.optout==="optional"?(e.write(`if (${N} === INVALID) {`),e.indented(re=>{re.write(`if (${K} in ${o}) return INVALID;`),re.write(`${N} = undefined;`)}),e.write("}")):e.write(`if (${N} === INVALID) return INVALID;`),f.set(T,N)}else{gT(E)&&e.write(`if (!(${K} in ${o})) return INVALID;`);let N=Ye(e,t,E,Z,r);N!==null&&f.set(T,N)}}let h=i.catchall,S="none";if(h){let T=h._zod.def.type;if(T==="never"){let E=s.map(K=>`k !== ${tt(K)}`).join(" && ")||"true";e.write(`for (const k in ${o}) {`),e.indented(K=>{K.write(`if (${E}) return INVALID;`)}),e.write("}")}else(T==="unknown"||T==="any")&&!h._zod.def.checks?.length?S="passthrough":S="schema"}let y=ee(t),w=l.some(T=>un(p[T])||vf(p[T]));if(!r){if(S==="schema"){let T=s.length>0?W(t,new Set(s)):null;e.write(`for (const k in ${o}) {`),e.indented(E=>{E.write(\'if (k === "__proto__") continue;\'),T&&E.write(`if (${T}.has(k)) continue;`);let K=ee(t);E.write(`const ${K} = ${o}[k];`),Ye(E,t,h,K,!1)}),e.write("}")}return null}if(w){e.write(`const ${y} = {};`);for(let T of l){let E=d(T),K=f.get(T);vf(p[T])?e.write(`if (${E} in ${o}) ${y}[${E}] = ${K};`):un(p[T])?e.write(`if (${K} !== undefined || ${E} in ${o}) ${y}[${E}] = ${K};`):e.write(`${y}[${E}] = ${K};`)}}else{let T=l.map(E=>`${m(E)}: ${f.get(E)}`).join(", ");e.write(`const ${y} = { ${T} };`)}if(S!=="none"){let T=s.length>0?W(t,new Set(s)):null;e.write(`for (const k in ${o}) {`),e.indented(E=>{if(E.write(\'if (k === "__proto__") continue;\'),T&&E.write(`if (${T}.has(k)) continue;`),S==="passthrough")E.write(`${y}[k] = ${o}[k];`);else{let K=ee(t);E.write(`const ${K} = ${o}[k];`);let Z=Ye(E,t,h,K);E.write(`${y}[k] = ${Z};`)}}),e.write("}")}return y}function fT(e,t,n,o,r=!0){let i=n._zod.def;if(hT(n))return _e(e,t,i.innerType,o,r);if(i.innerType._zod.optin==="defaulted"){let s=ee(t),c=ee(t);return e.write(`let ${s};`),e.write(`if (${o} === undefined) {`),e.indented(l=>{l.write(`const ${c} = (() => {`),l.indented(d=>{let m=_e(d,t,i.innerType,o);d.write(`return ${m};`)}),l.write("})();"),l.write(`if (${c} !== INVALID) ${s} = ${c};`)}),e.write("} else {"),e.indented(l=>{let d=_e(l,t,i.innerType,o);l.write(`${s} = ${d};`)}),e.write("}"),s}let a=r?ee(t):null;return a&&e.write(`let ${a};`),e.write(`if (${o} !== undefined) {`),e.indented(s=>{let c=_e(s,t,i.innerType,o,r);a&&c!==null&&s.write(`${a} = ${c};`)}),e.write("}"),a}function hT(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function gT(e){return e._zod.optin===void 0&&ln(e)}function ln(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?ln(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?ln(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(ln):!0;case"intersection":return!t.left||!t.right?!0:ln(t.left)&&ln(t.right);case"pipe":return t.in?ln(t.in):!0;default:return!0}}function vf(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function un(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?un(t.innerType):!0;case"union":return t.options?t.options.some(un):!0;case"intersection":return!t.left||!t.right||un(t.left)||un(t.right);case"pipe":return t.out?un(t.out):!0;default:return!0}}function vT(e,t,n,o,r=!0){let i=n._zod.def,a=r?ee(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${o} !== null) {`),e.indented(s=>{let c=_e(s,t,i.innerType,o,r);a&&c!==null&&s.write(`${a} = ${c};`)}),e.write("}"),a}function _T(e,t,n,o,r=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${o})) return INVALID;`);let a=r?ee(t):null,s=ee(t),c=ee(t);return a&&e.write(`const ${a} = new Array(${o}.length);`),e.write(`for (let ${s} = 0; ${s} < ${o}.length; ${s}++) {`),e.indented(l=>{l.write(`const ${c} = ${o}[${s}];`);let d=Ye(l,t,i.element,c,r);a&&d!==null&&l.write(`${a}[${s}] = ${d};`)}),e.write("}"),a}function yT(e,t,n,o){let i=n._zod.def.values;if(i.length!==1){let s=W(t,new Set(i));return e.write(`if (!${s}.has(${o})) return INVALID;`),o}let a=i[0];if(typeof a=="number"&&Number.isNaN(a)){let s=W(t,new Set(i));return e.write(`if (!${s}.has(${o})) return INVALID;`),o}if(typeof a=="string")e.write(`if (${o} !== ${tt(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${o} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${o} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${o} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${o} !== ${a}n) return INVALID;`);else throw new de(`literal type ${typeof a}`);return o}function ST(e,t,n,o){let r=n._zod.values;if(!r)throw new de("enum schema without enumerated values");let i=W(t,r);return e.write(`if (!${i}.has(${o})) return INVALID;`),o}function wS(e,t,n,o){let r=n._zod.def;return _e(e,t,r.innerType,o)}function bT(e,t,n,o){let r=n._zod.def,a=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!a)return _e(e,t,r.innerType,o);let c=W(t,a),l=ee(t);return e.write(`let ${l} = ${o};`),e.write(`if (${o} === undefined) ${l} = ${c}();`),_e(e,t,r.innerType,l)}let s=ee(t);if(a){let c=W(t,a),l=W(t,Si);e.write(`let ${s};`),e.write(`if (${o} === undefined) {`),e.indented(d=>{d.write(`${s} = ${l}(${c}());`)}),e.write("} else {"),e.indented(d=>{let m=_e(d,t,r.innerType,o);d.write(`${s} = ${m} === undefined ? ${l}(${c}()) : ${m};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${o} !== undefined) {`),e.indented(c=>{let l=_e(c,t,r.innerType,o);c.write(`${s} = ${l};`)}),e.write("}");return s}function $T(e,t,n,o){let r=n._zod.def,i=_e(e,t,r.innerType,o),a=ee(t);return e.write(`const ${a} = ${i};`),e.write(`if (${a} === undefined) return INVALID;`),a}function zT(e,t,n,o){let r=n._zod.def,i=r.items,a=r.rest;e.write(`if (!Array.isArray(${o})) return INVALID;`);let s=IS(i,"optin"),c=IS(i,"optout");a?e.write(`if (${o}.length < ${s}) return INVALID;`):e.write(`if (${o}.length < ${s} || ${o}.length > ${i.length}) return INVALID;`);let l=ee(t);e.write(`const ${l} = [];`);for(let d=0;d<i.length;d++){let m=i[d];if(d>=c)e.write(`if (${l}.length === ${d}) {`),e.indented(p=>{p.write(`if (${d} < ${o}.length) {`),p.indented(f=>{let h=ee(t);f.write(`const ${h} = ${o}[${d}];`);let S=Ye(f,t,m,h);f.write(`${l}[${d}] = ${S};`)}),p.write("} else {"),p.indented(f=>{if(vf(m)){f.write(`${l}.length = ${d};`);return}let h=ee(t),S=ee(t);f.write(`const ${h} = undefined;`),f.write(`const ${S} = (() => {`),f.indented(y=>{let w=Ye(y,t,m,h);y.write(`return ${w};`)}),f.write("})();"),f.write(`if (${S} === INVALID || ${S} === undefined) ${l}.length = ${d};`),f.write(`else ${l}[${d}] = ${S};`)}),p.write("}")}),e.write("}");else{let p=ee(t);e.write(`const ${p} = ${o}[${d}];`);let f=Ye(e,t,m,p);e.write(`${l}[${d}] = ${f};`)}}if(a){let d=ee(t),m=ee(t);e.write(`for (let ${d} = ${i.length}; ${d} < ${o}.length; ${d}++) {`),e.indented(p=>{p.write(`const ${m} = ${o}[${d}];`);let f=Ye(p,t,a,m);p.write(`${l}[${d}] = ${f};`)}),e.write("}")}return l}function IS(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function RT(e,t,n,o){let r=n._zod.def,i=r.options;if(r.discriminator)return kT(e,t,r,o);if(r.inclusive===!1)throw new de("exclusive unions (z.xor)");if(i.length===0)return e.write("return INVALID;"),o;if(i.length===1)return _e(e,t,i[0],o);if(i.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(i.flatMap(d=>d._zod.def.values)),l=W(t,c);return e.write(`if (!${l}.has(${o})) return INVALID;`),o}let s=ee(t);e.write(`let ${s};`);for(let c=0;c<i.length;c++){let l=i[c];c===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(d=>{let m=_e(d,t,l,o);d.write(`return ${m};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function kT(e,t,n,o){if(n.unionFallback)throw new de("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),o;let r=ee(t),i=ee(t);e.write(`const ${r} = ${o}?.[${tt(n.discriminator)}];`),e.write(`let ${i};`);let a=!0,s=new Set;for(let c of n.options){let l=c._zod.propValues?.[n.discriminator];if(!l||l.size===0)throw new de("discriminated union option without static discriminator values");for(let p of l){if(s.has(p))throw new de(`duplicate discriminator value ${String(p)}`);s.add(p)}let d=Array.from(l,p=>wT(t,r,p)),m=a?"if":"else if";e.write(`${m} (${d.join(" || ")}) {`),e.indented(p=>{let f=_e(p,t,c,o);p.write(`${i} = ${f};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),i}function wT(e,t,n){if(typeof n=="string")return`${t} === ${tt(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let o=W(e,n);return`${t} === ${o}`}throw new de(`literal discriminator value ${String(n)}`)}function IT(e,t,n,o){let r=n._zod.def,i=Ye(e,t,r.left,o),a=Ye(e,t,r.right,o),s=W(t,Gn),c=ee(t);return e.write(`const ${c} = ${s}(${i}, ${a});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function TT(e,t,n,o){let r=n._zod.def,i=W(t,St);e.write(`if (!${i}(${o})) return INVALID;`);let a=ee(t),s=ee(t),c=ee(t);e.write(`const ${a} = {};`);let l=r,d=l.partial?void 0:r.keyType._zod.values;if(d){let h=[];for(let y of d){if(!(typeof y=="string"||typeof y=="number"||typeof y=="symbol"))throw new de(`record key value ${String(y)}`);let w=typeof y=="number"?y.toString():y;if(w==="__proto__")throw new de(\'record key "__proto__"\');h.push(w);let T=W(t,y),E=_e(e,t,r.keyType,T),K=ee(t);e.write(`const ${K} = ${o}[${xT(t,w)}];`);let Z=Ye(e,t,r.valueType,K);e.write(`${a}[${E}] = ${Z};`)}let S=W(t,new Set(h));return e.write(`for (const ${s} in ${o}) {`),e.indented(y=>{y.write(`if (${S}.has(${s})) continue;`),l.mode==="loose"?y.write(`if (${s} !== "__proto__") ${a}[${s}] = ${o}[${s}];`):y.write("return INVALID;")}),e.write("}"),a}let m=r.keyType._zod.def;if(!(m.type==="string"&&m.format===void 0&&!m.coerce&&(m.checks?.length??0)===0)){let h=r.mode==="loose",S=W(t,lc(r.keyType)),y=W(t,br),w=W(t,Object.prototype.propertyIsEnumerable),T=ee(t);return e.write(`for (const ${s} of Reflect.ownKeys(${o})) {`),e.indented(E=>{E.write(`if (${s} === "__proto__") continue;`),E.write(`if (!${w}.call(${o}, ${s})) continue;`),E.write(`let ${T} = ${S}(${s});`),E.write(`if (${T} === INVALID && typeof ${s} === "string" && ${y}.test(${s})) ${T} = ${S}(Number(${s}));`),h?E.write(`if (${T} === INVALID) { ${a}[${s}] = ${o}[${s}]; continue; }`):E.write(`if (${T} === INVALID) return INVALID;`),E.write(`if (${T} === "__proto__") continue;`);let K=ee(t);E.write(`const ${K} = ${o}[${s}];`);let Z=Ye(E,t,r.valueType,K);E.write(`${a}[${T}] = ${Z};`)}),e.write("}"),a}let f=W(t,Object.prototype.propertyIsEnumerable);return e.write(`for (const ${s} of Reflect.ownKeys(${o})) {`),e.indented(h=>{h.write(`if (${s} === "__proto__") continue;`),h.write(`if (!${f}.call(${o}, ${s})) continue;`),h.write(`if (typeof ${s} !== "string") return INVALID;`),h.write(`const ${c} = ${o}[${s}];`);let S=Ye(h,t,r.valueType,c);h.write(`${a}[${s}] = ${S};`)}),e.write("}"),a}function xT(e,t){return typeof t=="string"?tt(t):W(e,t)}function ET(e,t,n,o){let r=n._zod.def;e.write(`if (!(${o} instanceof Map)) return INVALID;`);let i=ee(t),a=ee(t),s=ee(t);return e.write(`const ${i} = new Map();`),e.write(`for (const [${a}, ${s}] of ${o}) {`),e.indented(c=>{let l=_e(c,t,r.keyType,a),d=_e(c,t,r.valueType,s);c.write(`${i}.set(${l}, ${d});`)}),e.write("}"),i}function PT(e,t,n,o){let r=n._zod.def;e.write(`if (!(${o} instanceof Set)) return INVALID;`);let i=ee(t),a=ee(t);return e.write(`const ${i} = new Set();`),e.write(`for (const ${a} of ${o}) {`),e.indented(s=>{let c=_e(s,t,r.valueType,a);s.write(`${i}.add(${c});`)}),e.write("}"),i}function OT(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function CT(e,t,n,o){e.write(`if (typeof ${o} !== "string") return INVALID;`);let r=n._zod.pattern;if(r){let i=W(t,r);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${o})) return INVALID;`)}return o}function NT(e,t,n,o){let r=n._zod.def,i=W(t,r.getter),a=W(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(c=>{c.write(`const inner = ${i}();`),c.write(`${a}.parser = function(input) {`),c.indented(l=>{l.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),l.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let s=ee(t);return e.write(`const ${s} = ${a}.parser(${o});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function jT(e,t,n,o){let r=n._zod.def,i=_e(e,t,r.in,o);if(r.transform){if(dn(r.transform))throw new Tt("z.compile: async transforms in pipes are not supported");let a=r.transform,c=W(t,d=>{let m={value:d,issues:[],addIssue:yf},p=a(d,m);return p instanceof Promise?pt:m.issues.length===0?p:pt}),l=ee(t);return e.write(`const ${l} = ${c}(${i});`),e.write(`if (${l} === INVALID) return INVALID;`),_e(e,t,r.out,l)}else return _e(e,t,r.out,i)}function dn(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function AT(e,t,n,o){let r=n._zod.def;if(r.fn){if(dn(r.fn))throw new Tt("z.compile: async custom predicates are not supported");let i=W(t,r.fn),a=W(t,gf),s=ee(t);e.write(`const ${s} = ${i}(${o});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new de("custom schema without a predicate function");return o}function UT(e,t,n){let o=e._zod.run({value:n,issues:[]},{});if(o&&typeof o.then=="function")return pt;let r=o;return r.issues.length===0?r.value:t()}function MT(e,t,n,o){let r=n._zod.def;if(!r.catchValue[_s])throw new de("catch with a callback (only a constant catch value compiles)",!1);let i=ee(t);e.write(`let ${i} = (() => {`),e.indented(l=>{let d=Ye(l,t,r.innerType,o);l.write(`return ${d};`)}),e.write("})();");let a=W(t,r.innerType),s=W(t,r.catchValue),c=W(t,UT);return e.write(`if (${i} === INVALID) {`),e.indented(l=>{l.write(`${i} = ${c}(${a}, ${s}, ${o});`),l.write(`if (${i} === INVALID) return INVALID;`)}),e.write("}"),i}function DT(e,t,n,o){let r=n._zod.def;if(r.transform){if(dn(r.transform))throw new Tt("z.compile: async transforms are not supported");let i=r.transform,s=W(t,l=>{let d={value:l,issues:[],addIssue:yf},m=i(l,d);return m instanceof Promise?pt:d.issues.length===0?m:pt}),c=ee(t);return e.write(`const ${c} = ${s}(${o});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return o}function Sf(e,t){return new e({type:"string",...O(t)})}function bf(e,t){return new e({type:"string",coerce:!0,...O(t)})}function uc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...O(t)})}function dc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...O(t)})}function mc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...O(t)})}function pc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O(t)})}function fc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O(t)})}function hc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O(t)})}function Li(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...O(t)})}function gc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...O(t)})}function vc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...O(t)})}function _c(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...O(t)})}function yc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...O(t)})}function Sc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...O(t)})}function bc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...O(t)})}function $c(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...O(t)})}function zc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...O(t)})}function Rc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...O(t)})}function $f(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...O(t)})}function kc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O(t)})}function wc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O(t)})}function Ic(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...O(t)})}function Tc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...O(t)})}function xc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...O(t)})}function zf(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...O(t)})}function Ec(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...O(t)})}var Rf={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function qi(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O(t)})}function Vi(e,t){return new e({type:"string",format:"date",check:"string_format",...O(t)})}function Zi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...O(t)})}function Fi(e,t){return new e({type:"string",format:"duration",check:"string_format",...O(t)})}function kf(e,t){return new e({type:"number",checks:[],...O(t)})}function wf(e,t){return new e({type:"number",coerce:!0,checks:[],...O(t)})}function If(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...O(t)})}function Tf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...O(t)})}function xf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...O(t)})}function Ef(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...O(t)})}function Pf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...O(t)})}function Of(e,t){return new e({type:"boolean",...O(t)})}function Cf(e,t){return new e({type:"boolean",coerce:!0,...O(t)})}function Nf(e,t){return new e({type:"bigint",...O(t)})}function jf(e,t){return new e({type:"bigint",coerce:!0,...O(t)})}function Af(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...O(t)})}function Uf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...O(t)})}function Mf(e,t){return new e({type:"symbol",...O(t)})}function Df(e,t){return new e({type:"undefined",...O(t)})}function Lf(e,t){return new e({type:"null",...O(t)})}function qf(e){return new e({type:"any"})}function Vf(e){return new e({type:"unknown"})}function Zf(e,t){return new e({type:"never",...O(t)})}function Ff(e,t){return new e({type:"void",...O(t)})}function Kf(e,t){return new e({type:"date",...O(t)})}function Jf(e,t){return new e({type:"date",coerce:!0,...O(t)})}function Bf(e,t){return new e({type:"nan",...O(t)})}function qt(e,t){return new Cs({check:"less_than",...O(t),value:e,inclusive:!1})}function ft(e,t){return new Cs({check:"less_than",...O(t),value:e,inclusive:!0})}function Vt(e,t){return new Ns({check:"greater_than",...O(t),value:e,inclusive:!1})}function ht(e,t){return new Ns({check:"greater_than",...O(t),value:e,inclusive:!0})}function Pc(e){return Vt(0,e)}function Oc(e){return qt(0,e)}function Cc(e){return ft(0,e)}function Nc(e){return ht(0,e)}function $r(e,t){return new Om({check:"multiple_of",...O(t),value:e})}function zr(e,t){return new jm({check:"max_size",...O(t),maximum:e})}function Zt(e,t){return new Am({check:"min_size",...O(t),minimum:e})}function mn(e,t){return new Um({check:"size_equals",...O(t),size:e})}function pn(e,t){return new Mm({check:"max_length",...O(t),maximum:e})}function Qt(e,t){return new Dm({check:"min_length",...O(t),minimum:e})}function fn(e,t){return new Lm({check:"length_equals",...O(t),length:e})}function Xn(e,t){return new qm({check:"string_format",format:"regex",...O(t),pattern:e})}function Qn(e){return new Vm({check:"string_format",format:"lowercase",...O(e)})}function eo(e){return new Zm({check:"string_format",format:"uppercase",...O(e)})}function to(e,t){return new Fm({check:"string_format",format:"includes",...O(t),includes:e})}function ro(e,t){return new Km({check:"string_format",format:"starts_with",...O(t),prefix:e})}function no(e,t){return new Jm({check:"string_format",format:"ends_with",...O(t),suffix:e})}function jc(e,t,n){return new js({check:"property",property:e,schema:t,...O(n)})}function Ac(e){return Object.entries(e).map(([t,n])=>new js({check:"property",property:t,schema:n}))}function oo(e,t){return new Bm({check:"mime_type",mime:e,...O(t)})}function xt(e){return new Hm({check:"overwrite",tx:e})}function io(e){return xt(t=>t.normalize(e))}function ao(){return xt(e=>e.trim())}function so(){return xt(e=>e.toLowerCase())}function co(){return xt(e=>e.toUpperCase())}function lo(){return xt(e=>Cd(e))}function Hf(e,t,n){return new e({type:"array",element:t,...O(n)})}function LT(e,t,n){return new e({type:"union",options:t,...O(n)})}function qT(e,t,n){return new e({type:"union",options:t,inclusive:!1,...O(n)})}function VT(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...O(o)})}function ZT(e,t,n){return new e({type:"intersection",left:t,right:n})}function FT(e,t,n,o){let r=n instanceof ie,i=r?o:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...O(i)})}function KT(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...O(o)})}function JT(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...O(o)})}function BT(e,t,n){return new e({type:"set",valueType:t,...O(n)})}function HT(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...O(n)})}function YT(e,t,n){return new e({type:"enum",entries:t,...O(n)})}function GT(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...O(n)})}function Yf(e,t){return new e({type:"file",...O(t)})}function WT(e,t){return new e({type:"transform",transform:t})}function XT(e,t){return new e({type:"optional",innerType:t})}function QT(e,t){return new e({type:"nullable",innerType:t})}function ex(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Si(n)}})}function tx(e,t,n){return new e({type:"nonoptional",innerType:t,...O(n)})}function rx(e,t){return new e({type:"success",innerType:t})}function nx(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:Vd(n)})}function ox(e,t,n){return new e({type:"pipe",in:t,out:n})}function ix(e,t){return new e({type:"readonly",innerType:t})}function ax(e,t,n){return new e({type:"template_literal",parts:t,...O(n)})}function sx(e,t){return new e({type:"lazy",getter:t})}function cx(e,t){return new e({type:"promise",innerType:t})}function Gf(e,t,n){let o=O(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function Wf(e,t,n){return new e({type:"custom",check:"custom",fn:t,...O(n)})}function Xf(e,t){let n=PS(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(Fn(r,o.value,n._zod.def));else{let i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(Fn(i))}},e(o.value,o)),t);return n}function PS(e,t){let n=new ge({check:"custom",...O(t)});return n._zod.check=e,n}function Qf(e){let t=new ge({check:"describe"});return t._zod.onattach=[n=>{let o=je.get(n)??{};je.add(n,{...o,description:e})}],t._zod.check=()=>{},t}function eh(e){let t=new ge({check:"meta"});return t._zod.onattach=[n=>{let o=je.get(n)??{};je.add(n,{...o,...e})}],t._zod.check=()=>{},t}function th(e,t){let n=O(t),o=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(f=>typeof f=="string"?f.toLowerCase():f),r=r.map(f=>typeof f=="string"?f.toLowerCase():f));let i=new Set(o),a=new Set(r),s=e.Codec??ji,c=e.Boolean??Ci,l=e.String??sn,d=new l({type:"string",error:n.error}),m=new c({type:"boolean",error:n.error}),p=new s({type:"pipe",in:d,out:m,transform:((f,h)=>{let S=f;return n.case!=="sensitive"&&(S=S.toLowerCase()),i.has(S)?!0:a.has(S)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:h.value,inst:p,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?o[0]||"true":r[0]||"false"),error:n.error});return p._zod.bag.truthy=o,p._zod.bag.falsy=r,p._zod.bag.case=n.case??"insensitive",p}function uo(e,t,n,o={}){let r=O(o),i={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(i.pattern=n),new e(i)}function Ki(e,...t){for(let n of t)for(let o of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,o)&&Se(e,o,n[o]);return e}function Rr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??je,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Ee(e,t,n,o,r){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:o.path,message:r}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(r);return Object.assign(n,i),!0}function pe(e,t,n={path:[],schemaPath:[]}){var o;let r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let p=a.schema,f=t.processors[r.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);f(e,t,p,d)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),pe(m,t,d),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Ki(a.schema,c),t.io==="input"&&Ge(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function OS(e){return e.replace(/~/g,"~0").replace(/\\//g,"~1")}function kr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=o.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,p=e.external.uri??(h=>h);if(m)return{ref:p(m)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${s}/${OS(f)}`}}let c="#",l=`${c}/${s}/`;if(a[1]===n&&!a[1].schema.id)return{ref:c};let d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:l+OS(d)}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:l}=r(a);s.def={...s.schema},l&&(s.defId=l);let d=s.schema;for(let m in d)delete d[m];d.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>\n\nSet the \\`cycles\\` parameter to \\`"ref"\\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}function jS(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let o of t){if(!o||typeof o!="object")return;jS(o);let r=Object.keys(o);if(r.length!==1||r[0]!=="type")return;let i=o.type;for(let a of Array.isArray(i)?i:[i]){if(typeof a!="string")return;n.includes(a)||n.push(a)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var AS=new Set(["type","properties","required","additionalProperties"]),CS=["oneOf","anyOf"];function NS(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function rh(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let a in i)if(!AS.has(a))return null;t.push(i)}let n={},o=new Set;for(let i of t){for(let a in i.properties){if(Object.prototype.hasOwnProperty.call(n,a))continue;let s=[];for(let l of t){let d=l.properties?.[a]??NS(l);d!=null&&(s.some(m=>JSON.stringify(m)===JSON.stringify(d))||s.push(d))}let c=s.length===1?s[0]:rh(s)??{allOf:s};Se(n,a,c)}for(let a of i.required??[])o.add(a)}let r={type:"object",properties:n};if(o.size&&(r.required=[...o]),t.every(i=>i.additionalProperties===!1))r.additionalProperties=!1;else{let i=[];for(let a of t){let s=NS(a);s&&!i.some(c=>JSON.stringify(c)===JSON.stringify(s))&&i.push(s)}i.length===1?r.additionalProperties=i[0]:i.length>1&&(r.additionalProperties={allOf:i})}return r}function lx(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let r of AS)if(r in e)return;let n=t.filter(r=>CS.some(i=>Array.isArray(r[i]))),o=null;if(!n.length)o=rh(t);else{let r=n[0],i=CS.find(c=>Array.isArray(r[c]));if(Object.keys(r).length!==1)return;let a=t.filter(c=>c!==r),s=r[i].map(c=>rh([...a,c]));if(s.some(c=>!c))return;o={[i]:s}}o&&(delete e.allOf,Ki(e,o))}function wr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let c=e.seen.get(s);if(c.ref===null)return;let l=c.def??c.schema,d={...l},m=c.ref;if(c.ref=null,m){o(m);let f=e.seen.get(m),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Ki(l,h),Ki(l,d),s._zod.parent===m)for(let y in l)y==="$ref"||y==="allOf"||y in d||delete l[y];if(h.$ref&&f.def)for(let y in l)y==="$ref"||y==="allOf"||y in f.def&&JSON.stringify(l[y])===JSON.stringify(f.def[y])&&delete l[y]}let p=s._zod.parent;if(p&&p!==m){o(p);let f=e.seen.get(p);if(f?.schema.$ref&&(l.$ref=f.schema.$ref,f.def))for(let h in l)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(l[h])===JSON.stringify(f.def[h])&&delete l[h]}e.override({zodSchema:s,jsonSchema:l,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())o(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())jS(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let c of e.seen.values())for(let l of[c.schema,c.def]){let d=l?.allOf;if(!Array.isArray(d))continue;let m=s.get(d);m?m.push(l):s.set(d,[l])}for(let c of e.intersections)for(let l of s.get(c)??[])lx(l)}}let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Ki(r,n.defId?n.schema:n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&r.id===i&&delete r.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,Se(a,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:mo(t,"input",e.processors),output:mo(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Ge(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ge(o.element,n);if(o.type==="set")return Ge(o.valueType,n);if(o.type==="lazy")return Ge(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault"||o.type==="catch")return Ge(o.innerType,n);if(o.type==="intersection")return Ge(o.left,n)||Ge(o.right,n);if(o.type==="record"||o.type==="map")return Ge(o.keyType,n)||Ge(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ge(o.in,n)||Ge(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Ge(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Ge(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Ge(r,n))return!0;return!!(o.rest&&Ge(o.rest,n))}return!1}var nh=(e,t={})=>n=>{let o=Rr({...n,processors:t});return pe(e,o),kr(o,e),wr(o,e)},mo=(e,t,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},a=Rr({...r??{},target:i,io:t,processors:n});return pe(e,a),kr(a,e),wr(a,e)};var ux={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ah=(e,t,n,o)=>{let r=n;r.type="string";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:l,laxFormat:d}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),s&&(r.format=ux[s]??s,r.format===""&&delete r.format,(s==="time"||d)&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let m=[...c];m.length===1?r.pattern=m[0].source:m.length>1&&(r.allOf=[...m.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},sh=(e,t,n,o)=>{let r=n,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number";let m=typeof d=="number"&&d>=(i??Number.NEGATIVE_INFINITY),p=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";m?f?(r.minimum=d,r.exclusiveMinimum=!0):r.exclusiveMinimum=d:typeof i=="number"&&(r.minimum=i),p?f?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:typeof a=="number"&&(r.maximum=a),typeof c=="number"&&(Number.isFinite(c)&&c!==0?r.multipleOf=Math.abs(c):Ee(e,t,r,o,`A multipleOf divisor of ${c} cannot be represented in JSON Schema`))},ch=(e,t,n,o)=>{n.type="boolean"},lh=(e,t,n,o)=>{Ee(e,t,n,o,"BigInt cannot be represented in JSON Schema")},uh=(e,t,n,o)=>{Ee(e,t,n,o,"Symbols cannot be represented in JSON Schema")},dh=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},mh=(e,t,n,o)=>{Ee(e,t,n,o,"Undefined cannot be represented in JSON Schema")},ph=(e,t,n,o)=>{Ee(e,t,n,o,"Void cannot be represented in JSON Schema")},fh=(e,t,n,o)=>{n.not={}},hh=(e,t,n,o)=>{},gh=(e,t,n,o)=>{},vh=(e,t,n,o)=>{Ee(e,t,n,o,"Date cannot be represented in JSON Schema")},_h=(e,t,n,o)=>{let r=e._zod.def,i=vi(r.entries);if(i.length===0){n.not={};return}i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},yh=(e,t,n,o)=>{let r=e._zod.def;if(r.values.length===0){n.not={};return}let i=[];for(let a of r.values)if(a===void 0){if(Ee(e,t,n,o,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(Ee(e,t,n,o,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Sh=(e,t,n,o)=>{Ee(e,t,n,o,"NaN cannot be represented in JSON Schema")},bh=(e,t,n,o)=>{let r=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},$h=(e,t,n,o)=>{let r=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),c?c.length===1?(i.contentMediaType=c[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(r,i)},zh=(e,t,n,o)=>{n.type="boolean"},Rh=(e,t,n,o)=>{Ee(e,t,n,o,"Custom types cannot be represented in JSON Schema")},kh=(e,t,n,o)=>{Ee(e,t,n,o,"Function types cannot be represented in JSON Schema")},wh=(e,t,n,o)=>{Ee(e,t,n,o,"Transforms cannot be represented in JSON Schema")},Ih=(e,t,n,o)=>{Ee(e,t,n,o,"Map cannot be represented in JSON Schema")},Th=(e,t,n,o)=>{Ee(e,t,n,o,"Set cannot be represented in JSON Schema")},xh=(e,t,n,o)=>{let r=n,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=pe(i.element,t,{...o,path:[...o.path,"items"]})};function Ji(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Ji(t.out):t.type==="catch"?Ji(t.innerType):e._zod.optin}var Eh=(e,t,n,o)=>{let r=n,i=e._zod.def,a=i.shape;if(Object.getOwnPropertySymbols(a).length&&Ee(e,t,r,o,"Symbol keys cannot be represented in JSON Schema"))return;r.type="object",r.properties={};for(let d in a)Se(r.properties,d,pe(a[d],t,{...o,path:[...o.path,"properties",d]}));let c=new Set(Object.keys(a)),l=new Set([...c].filter(d=>{let m=i.shape[d];return t.io==="input"?Ji(m)===void 0:m._zod.optout===void 0}));l.size>0&&(r.required=Array.from(l)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=pe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Mc=(e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((s,c)=>pe(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=a:n.anyOf=a},Ph=(e,t,n,o)=>{let r=e._zod.def,i=pe(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=pe(r.right,t,{...o,path:[...o.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];n.allOf=c,t.intersections.push(c)},Oh=(e,t,n,o)=>{let r=n,i=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((S,y)=>pe(S,t,{...o,path:[...o.path,a,y]})),l=i.rest?pe(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,d=i.items.length;for(;d>0;){let S=i.items[d-1];if(!(t.io==="input"?Ji(S)!==void 0:S._zod.optout==="optional"))break;d--}let m=i.items.length,p=!i.rest;t.target==="draft-2020-12"?(r.prefixItems=c,p?r.items=!1:l&&(r.items=l),d>0&&(r.minItems=d),p&&(r.maxItems=m)):t.target==="openapi-3.0"?(r.items={anyOf:c},l&&r.items.anyOf.push(l),d>0&&(r.minItems=d),p&&(r.maxItems=m)):(r.items=c,p?r.additionalItems=!1:l&&(r.additionalItems=l),d>0&&(r.minItems=d),p&&(r.maxItems=m));let{minimum:f,maximum:h}=e._zod.bag;typeof f=="number"&&(r.minItems=f),typeof h=="number"&&(r.maxItems=h)};function oh(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let S=oh(e,h,n);return S===h?t:S}for(let h of["anyOf","oneOf"]){let S=t[h];if(!Array.isArray(S))continue;let y=S.map(w=>oh(e,w,n));y.some((w,T)=>w!==S[T])&&(t={...t,[h]:y})}let o=Array.isArray(t.type)?t.type:[t.type],r=!o.includes("string")&&o.some(h=>h==="number"||h==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!r&&!i?.some(h=>typeof h=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:d,format:m,id:p,...f}=t;return f.enum?f.enum=f.enum.map(h=>typeof h=="number"?String(h):h):typeof f.const=="number"&&(f.const=String(f.const)),r&&(f.type="string",i||(f.pattern=(o.includes("number")?br:Ti).source)),f}var ih=new WeakMap;function dx(e){let t=new Map;for(let o of e.seen.values())o.def&&!t.has(o.schema)&&t.set(o.schema,o);let n=new Map;for(let o of ih.get(e)??[]){let r=e.seen.get(o),i=(r?.def??r?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let a=oh(t,i,new Set);a!==i&&n.set(i,a)}if(n.size)for(let o of e.seen.values())for(let r of[o.schema,o.def]){let i=r&&n.get(r.propertyNames);i&&(r.propertyNames=i)}}var Ch=(e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let m=pe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let p of c)Se(r.patternProperties,p.source,m)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){r.propertyNames=pe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]});let m=ih.get(t);m||(m=[],ih.set(t,m),t.deferred.push(()=>dx(t))),m.push(e)}r.additionalProperties=pe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]})}let l=a._zod.values,d=t.io==="input"&&Ji(i.valueType)!==void 0;if(l&&!i.partial&&!d){let m=[...l].filter(p=>typeof p=="string"||typeof p=="number");m.length>0&&(r.required=m.map(String))}},Nh=(e,t,n,o)=>{let r=e._zod.def,i=pe(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},jh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},Ah=Symbol();function US(e,t,n,o,r){let i=!1,a=JSON.stringify(e,(s,c)=>typeof c!="bigint"?c:(i=!0,null));return i?(Ee(t,n,o,r,"BigInt defaults cannot be represented in JSON Schema"),Ah):JSON.parse(a)}var Uh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let a=US(r.defaultValue,e,t,n,o);a!==Ah&&(n.default=a)},Mh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);if(i.ref=r.innerType,t.io!=="input")return;let a=US(r.defaultValue,e,t,n,o);a!==Ah&&(n._prefault=a)},Dh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{Ee(e,t,n,o,"Dynamic catch values are not supported in JSON Schema");return}n.default=a},Lh=(e,t,n,o)=>{let r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;pe(a,t,o);let s=t.seen.get(e);s.ref=a},qh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},Vh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},Dc=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},Zh=(e,t,n,o)=>{let r=e._zod.innerType;pe(r,t,o);let i=t.seen.get(e);i.ref=r},Uc={string:ah,number:sh,boolean:ch,bigint:lh,symbol:uh,null:dh,undefined:mh,void:ph,never:fh,any:hh,unknown:gh,date:vh,enum:_h,literal:yh,nan:Sh,template_literal:bh,file:$h,success:zh,custom:Rh,function:kh,transform:wh,map:Ih,set:Th,array:xh,object:Eh,union:Mc,intersection:Ph,tuple:Oh,record:Ch,nullable:Nh,nonoptional:jh,default:Uh,prefault:Mh,catch:Dh,pipe:Lh,readonly:qh,promise:Vh,optional:Dc,lazy:Zh};function hn(e,t){if("_idmap"in e){let o=e,r=Rr({...t,processors:Uc}),i={};for(let c of o._idmap.entries()){let[l,d]=c;pe(d,r)}let a={},s={registry:o,uri:t?.uri,defs:i};r.external=s;for(let c of o._idmap.entries()){let[l,d]=c;kr(r,d),Se(a,l,wr(r,d))}if(Object.keys(i).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let n=Rr({...t,processors:Uc});return pe(e,n),kr(n,e),wr(n,e)}var Lc=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Rr({processors:Uc,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return pe(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,kr(this.ctx,t);let o=wr(this.ctx,t),{"~standard":r,...i}=o;return i}};var MS={};var bo={};Xt(bo,{ZodAny:()=>ag,ZodArray:()=>ug,ZodBase64:()=>al,ZodBase64URL:()=>sl,ZodBigInt:()=>So,ZodBigIntFormat:()=>ul,ZodBoolean:()=>yo,ZodCIDRv4:()=>ol,ZodCIDRv6:()=>il,ZodCUID:()=>Wc,ZodCUID2:()=>Xc,ZodCatch:()=>xg,ZodCodec:()=>ta,ZodCreditCard:()=>rg,ZodCustom:()=>ra,ZodCustomStringFormat:()=>vo,ZodDate:()=>Gi,ZodDefault:()=>zg,ZodDiscriminatedUnion:()=>mg,ZodE164:()=>cl,ZodEmail:()=>Jc,ZodEmoji:()=>Yc,ZodEnum:()=>fo,ZodExactOptional:()=>fl,ZodFile:()=>yg,ZodFunction:()=>Mg,ZodGUID:()=>Hc,ZodIPv4:()=>rl,ZodIPv6:()=>nl,ZodISODate:()=>Tr,ZodISODateTime:()=>Ir,ZodISODuration:()=>Er,ZodISOTime:()=>xr,ZodIntersection:()=>pg,ZodJWT:()=>ll,ZodKSUID:()=>tl,ZodLazy:()=>Ag,ZodLiteral:()=>_g,ZodMAC:()=>tg,ZodMap:()=>gg,ZodNaN:()=>Pg,ZodNanoID:()=>Gc,ZodNever:()=>cg,ZodNonOptional:()=>hl,ZodNull:()=>ig,ZodNullable:()=>$g,ZodNumber:()=>_o,ZodNumberFormat:()=>vn,ZodObject:()=>Wi,ZodOptional:()=>Qi,ZodPipe:()=>ea,ZodPrefault:()=>kg,ZodPreprocess:()=>Og,ZodPromise:()=>Ug,ZodReadonly:()=>Cg,ZodRecord:()=>po,ZodSet:()=>vg,ZodString:()=>ho,ZodStringFormat:()=>he,ZodSuccess:()=>Tg,ZodSymbol:()=>ng,ZodTemplateLiteral:()=>jg,ZodTransform:()=>Sg,ZodTuple:()=>fg,ZodType:()=>le,ZodULID:()=>Qc,ZodURL:()=>Yi,ZodUUID:()=>Ft,ZodUndefined:()=>og,ZodUnion:()=>Xi,ZodUnknown:()=>sg,ZodVoid:()=>lg,ZodXID:()=>el,ZodXor:()=>dg,_ZodString:()=>Kc,_default:()=>Rg,_function:()=>qb,any:()=>dl,array:()=>b,base64:()=>ib,base64url:()=>ab,bigint:()=>_b,boolean:()=>M,catch:()=>Eg,check:()=>Vb,cidrv4:()=>nb,cidrv6:()=>ob,codec:()=>Ub,creditCard:()=>cb,cuid:()=>YS,cuid2:()=>GS,custom:()=>Zb,date:()=>Rb,describe:()=>Fb,discriminatedUnion:()=>Pr,e164:()=>sb,email:()=>Bc,emoji:()=>BS,enum:()=>te,exactOptional:()=>bg,file:()=>Cb,float32:()=>fb,float64:()=>hb,function:()=>qb,guid:()=>qS,hash:()=>pb,hex:()=>mb,hostname:()=>db,httpUrl:()=>JS,instanceof:()=>Jb,int:()=>Zc,int32:()=>gb,int64:()=>yb,intersection:()=>Et,invertCodec:()=>Mb,ipv4:()=>eb,ipv6:()=>rb,json:()=>Hb,jwt:()=>lb,keyof:()=>kb,ksuid:()=>QS,lazy:()=>Or,literal:()=>z,looseObject:()=>Y,looseRecord:()=>xb,mac:()=>tb,map:()=>Eb,meta:()=>Kb,nan:()=>Ab,nanoid:()=>HS,nativeEnum:()=>Ob,never:()=>ml,nonoptional:()=>Ig,null:()=>Kt,nullable:()=>Hi,nullish:()=>Nb,number:()=>x,object:()=>g,optional:()=>F,partialRecord:()=>Tb,pipe:()=>Fc,prefault:()=>wg,preprocess:()=>tr,promise:()=>Lb,readonly:()=>Ng,record:()=>j,refine:()=>Dg,set:()=>Pb,strictObject:()=>wb,string:()=>u,stringFormat:()=>ub,stringbool:()=>Bb,success:()=>jb,superRefine:()=>Lg,symbol:()=>bb,templateLiteral:()=>Db,transform:()=>pl,tuple:()=>hg,uint32:()=>vb,uint64:()=>Sb,ulid:()=>WS,undefined:()=>$b,union:()=>A,unknown:()=>B,url:()=>go,uuid:()=>VS,uuidv4:()=>ZS,uuidv6:()=>FS,uuidv7:()=>KS,void:()=>zb,xid:()=>XS,xor:()=>Ib});var qc={};Xt(qc,{endsWith:()=>no,gt:()=>Vt,gte:()=>ht,includes:()=>to,length:()=>fn,lowercase:()=>Qn,lt:()=>qt,lte:()=>ft,maxLength:()=>pn,maxSize:()=>zr,mime:()=>oo,minLength:()=>Qt,minSize:()=>Zt,multipleOf:()=>$r,negative:()=>Oc,nonnegative:()=>Nc,nonpositive:()=>Cc,normalize:()=>io,overwrite:()=>xt,positive:()=>Pc,properties:()=>Ac,property:()=>jc,regex:()=>Xn,size:()=>mn,slugify:()=>lo,startsWith:()=>ro,toLowerCase:()=>so,toUpperCase:()=>co,trim:()=>ao,uppercase:()=>eo});var DS=new WeakSet([Object.prototype,Error.prototype]);function Vc(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let o=n(this);return Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0})}})}var LS=(e,t)=>{ki.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);DS.has(n)||(DS.add(n),Vc(n,"format",o=>r=>Ii(o,r)),Vc(n,"flatten",o=>r=>wi(o,r)),Vc(n,"addIssue",o=>r=>{o.issues.push(r),o.message=JSON.stringify(o.issues,Vn,2)}),Vc(n,"addIssues",o=>r=>{o.issues.push(...r),o.message=JSON.stringify(o.issues,Vn,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},px=v("ZodError",LS),at=v("ZodError",LS,void 0,{Parent:Error});var Fh=Kn(at),Kh=Jn(at),Bi=Bn(at),Jh=Hn(at),Bh=$s(at),Hh=zs(at),Yh=Rs(at),Gh=ks(at),Wh=ws(at),Xh=Is(at),Qh=Ts(at),eg=xs(at);function hx(){Pe.localeError||$e(oc())}function gn(){Pe.memoizer||$e({memoizer:Ui()})}var le=v("ZodType",(e,t)=>(hx(),ie.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(I.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return me(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Dg(e,t))},superRefine(e,t){return this.check(Lg(e,t))},overwrite(e){return this.check(xt(e))},optional(){return F(this)},exactOptional(){return bg(this)},nullable(){return Hi(this)},nullish(){return F(Hi(this))},nonoptional(e){return Ig(this,e)},array(){return b(this)},or(e){return A([this,e])},and(e){return Et(this,e)},transform(e){return Fc(this,pl(e))},default(e){return Rg(this,e)},prefault(e){return wg(this,e)},catch(e){return Eg(this,e)},pipe(e){return Fc(this,e)},readonly(){return Ng(this)},describe(e){let t=this.clone();return je.add(t,{description:e}),t},meta(...e){if(e.length===0)return je.get(this);let t=this.clone();return je.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return I.hide(this,"~standard",{...Ls(this),jsonSchema:{input:mo(this,"input"),output:mo(this,"output")}})},set"~standard"(e){I.own(this,"~standard",e)},parse:function e(t,n){return Fh(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Kh(this,t,n,{callee:e})},safeParse(e,t){return Bi(this,e,t)},async safeParseAsync(e,t){return Jh(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){I.own(this,"spa",e)},encode:function e(t,n){return Bh(this,t,n,{callee:e})},decode:function e(t,n){return Hh(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Yh(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Gh(this,t,n,{callee:e})},safeEncode(e,t){return Wh(this,e,t)},safeDecode(e,t){return Xh(this,e,t)},async safeEncodeAsync(e,t){return Qh(this,e,t)},async safeDecodeAsync(e,t){return eg(this,e,t)},toJSONSchema(e){return nh(this,{})(e)},get description(){return je.get(this)?.description},get _def(){return this._zod.def}}),Kc=v("_ZodString",(e,t)=>{sn.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>ah(e,o,r,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(Xn(...e))},includes(...e){return this.check(to(...e))},startsWith(...e){return this.check(ro(...e))},endsWith(...e){return this.check(no(...e))},min(...e){return this.check(Qt(...e))},max(...e){return this.check(pn(...e))},length(...e){return this.check(fn(...e))},nonempty(...e){return this.check(Qt(1,...e))},lowercase(e){return this.check(Qn(e))},uppercase(e){return this.check(eo(e))},trim(){return this.check(ao())},normalize(...e){return this.check(io(...e))},toLowerCase(){return this.check(so())},toUpperCase(){return this.check(co())},slugify(){return this.check(lo())}}),ho=v("ZodString",(e,t)=>{sn.init(e,t),Kc.init(e,t)},{email(e){return this.check(uc(Jc,e))},url(e){return this.check(Li(Yi,e))},jwt(e){return this.check(Ec(ll,e))},emoji(e){return this.check(gc(Yc,e))},guid(e){return this.check(dc(Hc,e))},uuid(e){return this.check(mc(Ft,e))},uuidv4(e){return this.check(pc(Ft,e))},uuidv6(e){return this.check(fc(Ft,e))},uuidv7(e){return this.check(hc(Ft,e))},nanoid(e){return this.check(vc(Gc,e))},cuid(e){return this.check(_c(Wc,e))},cuid2(e){return this.check(yc(Xc,e))},ulid(e){return this.check(Sc(Qc,e))},base64(e){return this.check(Ic(al,e))},base64url(e){return this.check(Tc(sl,e))},xid(e){return this.check(bc(el,e))},ksuid(e){return this.check($c(tl,e))},ipv4(e){return this.check(zc(rl,e))},ipv6(e){return this.check(Rc(nl,e))},cidrv4(e){return this.check(kc(ol,e))},cidrv6(e){return this.check(wc(il,e))},e164(e){return this.check(xc(cl,e))},datetime(e){return this.check(qi(Ir,e))},date(e){return this.check(Vi(Tr,e))},time(e){return this.check(Zi(xr,e))},duration(e){return this.check(Fi(Er,e))}});function u(e){return Sf(ho,e)}var he=v("ZodStringFormat",(e,t)=>{fe.init(e,t),Kc.init(e,t)}),Ir=v("ZodISODateTime",(e,t)=>{up.init(e,t),he.init(e,t)}),Tr=v("ZodISODate",(e,t)=>{dp.init(e,t),he.init(e,t)}),xr=v("ZodISOTime",(e,t)=>{mp.init(e,t),he.init(e,t)}),Er=v("ZodISODuration",(e,t)=>{pp.init(e,t),he.init(e,t)}),Jc=v("ZodEmail",(e,t)=>{Qm.init(e,t),he.init(e,t)});function Bc(e){return uc(Jc,e)}var Hc=v("ZodGUID",(e,t)=>{Wm.init(e,t),he.init(e,t)});function qS(e){return dc(Hc,e)}var Ft=v("ZodUUID",(e,t)=>{Xm.init(e,t),he.init(e,t)});function VS(e){return mc(Ft,e)}function ZS(e){return pc(Ft,e)}function FS(e){return fc(Ft,e)}function KS(e){return hc(Ft,e)}var Yi=v("ZodURL",(e,t)=>{rp.init(e,t),he.init(e,t)});function go(e){return Li(Yi,e)}function JS(e){return Li(Yi,{protocol:He.httpProtocol,hostname:He.domain,...I.normalizeParams(e)})}var Yc=v("ZodEmoji",(e,t)=>{np.init(e,t),he.init(e,t)});function BS(e){return gc(Yc,e)}var Gc=v("ZodNanoID",(e,t)=>{op.init(e,t),he.init(e,t)});function HS(e){return vc(Gc,e)}var Wc=v("ZodCUID",(e,t)=>{ip.init(e,t),he.init(e,t)});function YS(e){return _c(Wc,e)}var Xc=v("ZodCUID2",(e,t)=>{ap.init(e,t),he.init(e,t)});function GS(e){return yc(Xc,e)}var Qc=v("ZodULID",(e,t)=>{sp.init(e,t),he.init(e,t)});function WS(e){return Sc(Qc,e)}var el=v("ZodXID",(e,t)=>{cp.init(e,t),he.init(e,t)});function XS(e){return bc(el,e)}var tl=v("ZodKSUID",(e,t)=>{lp.init(e,t),he.init(e,t)});function QS(e){return $c(tl,e)}var rl=v("ZodIPv4",(e,t)=>{fp.init(e,t),he.init(e,t)});function eb(e){return zc(rl,e)}var tg=v("ZodMAC",(e,t)=>{gp.init(e,t),he.init(e,t)});function tb(e){return $f(tg,e)}var nl=v("ZodIPv6",(e,t)=>{hp.init(e,t),he.init(e,t)});function rb(e){return Rc(nl,e)}var ol=v("ZodCIDRv4",(e,t)=>{vp.init(e,t),he.init(e,t)});function nb(e){return kc(ol,e)}var il=v("ZodCIDRv6",(e,t)=>{_p.init(e,t),he.init(e,t)});function ob(e){return wc(il,e)}var al=v("ZodBase64",(e,t)=>{yp.init(e,t),he.init(e,t)});function ib(e){return Ic(al,e)}var sl=v("ZodBase64URL",(e,t)=>{Sp.init(e,t),he.init(e,t)});function ab(e){return Tc(sl,e)}var cl=v("ZodE164",(e,t)=>{bp.init(e,t),he.init(e,t)});function sb(e){return xc(cl,e)}var rg=v("ZodCreditCard",(e,t)=>{$p.init(e,t),he.init(e,t)});function cb(e){return zf(rg,e)}var ll=v("ZodJWT",(e,t)=>{zp.init(e,t),he.init(e,t)});function lb(e){return Ec(ll,e)}var vo=v("ZodCustomStringFormat",(e,t)=>{Rp.init(e,t),he.init(e,t)});function ub(e,t,n={}){return uo(vo,e,t,n)}function db(e){return uo(vo,"hostname",He.hostname,e)}function mb(e){return uo(vo,"hex",He.hex,e)}function pb(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,r=He[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return uo(vo,o,r,t)}var _o=v("ZodNumber",(e,t)=>{Ys.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>sh(e,o,r,i);let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null},{gt(e,t){return this.check(Vt(e,t))},gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},lt(e,t){return this.check(qt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},int(e){return this.check(Zc(e))},safe(e){return this.check(Zc(e))},positive(e){return this.check(Vt(0,e))},nonnegative(e){return this.check(ht(0,e))},negative(e){return this.check(qt(0,e))},nonpositive(e){return this.check(ft(0,e))},multipleOf(e,t){return this.check($r(e,t))},step(e,t){return this.check($r(e,t))},finite(){return this}});function x(e){return kf(_o,e)}var vn=v("ZodNumberFormat",(e,t)=>{kp.init(e,t),_o.init(e,t)});function Zc(e){return If(vn,e)}function fb(e){return Tf(vn,e)}function hb(e){return xf(vn,e)}function gb(e){return Ef(vn,e)}function vb(e){return Pf(vn,e)}var yo=v("ZodBoolean",(e,t)=>{Ci.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ch(e,n,o,r)});function M(e){return Of(yo,e)}var So=v("ZodBigInt",(e,t)=>{Gs.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>lh(e,o,r,i);let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null},{gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},gt(e,t){return this.check(Vt(e,t))},lt(e,t){return this.check(qt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},positive(e){return this.check(Vt(BigInt(0),e))},negative(e){return this.check(qt(BigInt(0),e))},nonpositive(e){return this.check(ft(BigInt(0),e))},nonnegative(e){return this.check(ht(BigInt(0),e))},multipleOf(e,t){return this.check($r(e,t))}});function _b(e){return Nf(So,e)}var ul=v("ZodBigIntFormat",(e,t)=>{wp.init(e,t),So.init(e,t)});function yb(e){return Af(ul,e)}function Sb(e){return Uf(ul,e)}var ng=v("ZodSymbol",(e,t)=>{Ip.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>uh(e,n,o,r)});function bb(e){return Mf(ng,e)}var og=v("ZodUndefined",(e,t)=>{Tp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>mh(e,n,o,r)});function $b(e){return Df(og,e)}var ig=v("ZodNull",(e,t)=>{xp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>dh(e,n,o,r)});function Kt(e){return Lf(ig,e)}var ag=v("ZodAny",(e,t)=>{Ep.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hh(e,n,o,r)});function dl(){return qf(ag)}var sg=v("ZodUnknown",(e,t)=>{Pp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>gh(e,n,o,r)});function B(){return Vf(sg)}var cg=v("ZodNever",(e,t)=>{Op.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>fh(e,n,o,r)});function ml(e){return Zf(cg,e)}var lg=v("ZodVoid",(e,t)=>{Cp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ph(e,n,o,r)});function zb(e){return Ff(lg,e)}var Gi=v("ZodDate",(e,t)=>{Np.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>vh(e,o,r,i),e.min=(o,r)=>e.check(ht(o,r)),e.max=(o,r)=>e.check(ft(o,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Rb(e){return Kf(Gi,e)}var ug=v("ZodArray",(e,t)=>{gn(),jp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>xh(e,n,o,r),e.element=t.element},{min(e,t){return this.check(Qt(e,t))},nonempty(e){return this.check(Qt(1,e))},max(e,t){return this.check(pn(e,t))},length(e,t){return this.check(fn(e,t))},unwrap(){return this.element}});function b(e,t){return Hf(ug,e,t)}function kb(e){let t=e._zod.def.shape;return te(Object.keys(t))}var Wi=v("ZodObject",(e,t)=>{gn(),Ap.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Eh(e,n,o,r),I.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return te(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:B()})},loose(){return this.clone({...this._zod.def,catchall:B()})},strict(){return this.clone({...this._zod.def,catchall:ml()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return I.extend(this,e)},safeExtend(e){return I.safeExtend(this,e)},merge(e){return I.merge(this,e)},pick(e){return I.pick(this,e)},omit(e){return I.omit(this,e)},partial(...e){return I.partial(Qi,this,e[0])},exactPartial(...e){return I.partial(fl,this,e[0],"exactPartial")},required(...e){return I.required(hl,this,e[0])}});function g(e,t){let n={type:"object",shape:e??{},...I.normalizeParams(t)};return new Wi(n)}function wb(e,t){return new Wi({type:"object",shape:e,catchall:ml(),...I.normalizeParams(t)})}function Y(e,t){return new Wi({type:"object",shape:e,catchall:B(),...I.normalizeParams(t)})}var Xi=v("ZodUnion",(e,t)=>{Ni.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mc(e,n,o,r),e.options=t.options});function A(e,t){return new Xi({type:"union",options:e,...I.normalizeParams(t)})}var dg=v("ZodXor",(e,t)=>{Xi.init(e,t),Up.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mc(e,n,o,r),e.options=t.options});function Ib(e,t){return new dg({type:"union",options:e,inclusive:!1,...I.normalizeParams(t)})}var mg=v("ZodDiscriminatedUnion",(e,t)=>{Xi.init(e,t),Dp.init(e,t)});function Pr(e,t,n){return new mg({type:"union",options:t,discriminator:e,...I.normalizeParams(n)})}var pg=v("ZodIntersection",(e,t)=>{Lp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ph(e,n,o,r)});function Et(e,t){return new pg({type:"intersection",left:e,right:t})}var fg=v("ZodTuple",(e,t)=>{gn(),Ws.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Oh(e,n,o,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Qi({type:"optional",innerType:t}))})}});function hg(e,t,n){let o=t instanceof ie,r=o?n:t,i=o?t:null;return new fg({type:"tuple",items:e,rest:i,...I.normalizeParams(r)})}var po=v("ZodRecord",(e,t)=>{gn(),qp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ch(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function j(e,t,n){return!t||!t._zod?new po({type:"record",keyType:u(),valueType:e,...I.normalizeParams(t)}):new po({type:"record",keyType:e,valueType:t,...I.normalizeParams(n)})}function Tb(e,t,n){return new po({type:"record",keyType:e,valueType:t,...I.normalizeParams(n),partial:!0})}function xb(e,t,n){return new po({type:"record",keyType:e,valueType:t,mode:"loose",...I.normalizeParams(n)})}var gg=v("ZodMap",(e,t)=>{gn(),Vp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ih(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Zt(...n)),e.nonempty=n=>e.check(Zt(1,n)),e.max=(...n)=>e.check(zr(...n)),e.size=(...n)=>e.check(mn(...n))});function Eb(e,t,n){return new gg({type:"map",keyType:e,valueType:t,...I.normalizeParams(n)})}var vg=v("ZodSet",(e,t)=>{gn(),Zp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Th(e,n,o,r),e.min=(...n)=>e.check(Zt(...n)),e.nonempty=n=>e.check(Zt(1,n)),e.max=(...n)=>e.check(zr(...n)),e.size=(...n)=>e.check(mn(...n))});function Pb(e,t){return new vg({type:"set",valueType:e,...I.normalizeParams(t)})}var fo=v("ZodEnum",(e,t)=>{Fp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>_h(e,o,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{let i={};for(let a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new fo({...t,checks:[],...I.normalizeParams(r),entries:i})},e.exclude=(o,r)=>{let i={...t.entries};for(let a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new fo({...t,checks:[],...I.normalizeParams(r),entries:i})}});function te(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new fo({type:"enum",entries:n,...I.normalizeParams(t)})}function Ob(e,t){return new fo({type:"enum",entries:e,...I.normalizeParams(t)})}var _g=v("ZodLiteral",(e,t)=>{Kp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>yh(e,n,o,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function z(e,t){return new _g({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var yg=v("ZodFile",(e,t)=>{Jp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>$h(e,n,o,r),e.min=(n,o)=>e.check(Zt(n,o)),e.max=(n,o)=>e.check(zr(n,o)),e.mime=(n,o)=>e.check(oo(Array.isArray(n)?n:[n],o))});function Cb(e){return Yf(yg,e)}var Sg=v("ZodTransform",(e,t)=>{gn(),Bp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>wh(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Sr(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(I.issue(i,n.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=n.value),a.inst??(a.inst=e),n.issues.push(I.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function pl(e){return new Sg({type:"transform",transform:e})}var Qi=v("ZodOptional",(e,t)=>{Xs.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dc(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function F(e){return new Qi({type:"optional",innerType:e})}var fl=v("ZodExactOptional",(e,t)=>{Hp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dc(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function bg(e){return new fl({type:"optional",innerType:e})}var $g=v("ZodNullable",(e,t)=>{Yp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Nh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Hi(e){return new $g({type:"nullable",innerType:e})}function Nb(e){return F(Hi(e))}var zg=v("ZodDefault",(e,t)=>{Gp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Uh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Rg(e,t){return new zg({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var kg=v("ZodPrefault",(e,t)=>{Wp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function wg(e,t){return new kg({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var hl=v("ZodNonOptional",(e,t)=>{Xp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>jh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ig(e,t){return new hl({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var Tg=v("ZodSuccess",(e,t)=>{Qp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>zh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function jb(e){return new Tg({type:"success",innerType:e})}var xg=v("ZodCatch",(e,t)=>{ef.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Eg(e,t){return new xg({type:"catch",innerType:e,catchValue:typeof t=="function"?t:I.constantCatch(t)})}var Pg=v("ZodNaN",(e,t)=>{tf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Sh(e,n,o,r)});function Ab(e){return Bf(Pg,e)}var ea=v("ZodPipe",(e,t)=>{Qs.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Lh(e,n,o,r),e.in=t.in,e.out=t.out});function Fc(e,t){return new ea({type:"pipe",in:e,out:t})}var ta=v("ZodCodec",(e,t)=>{ea.init(e,t),ji.init(e,t)});function Ub(e,t,n){return new ta({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Mb(e){let t=e._zod.def;return new ta({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Og=v("ZodPreprocess",(e,t)=>{ea.init(e,t),rf.init(e,t)}),Cg=v("ZodReadonly",(e,t)=>{nf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ng(e){return new Cg({type:"readonly",innerType:e})}var jg=v("ZodTemplateLiteral",(e,t)=>{of.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bh(e,n,o,r)});function Db(e,t){return new jg({type:"template_literal",parts:e,...I.normalizeParams(t)})}var Ag=v("ZodLazy",(e,t)=>{Ai.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zh(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Or(e){return new Ag({type:"lazy",getter:e})}var Ug=v("ZodPromise",(e,t)=>{sf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Lb(e){return new Ug({type:"promise",innerType:e})}var Mg=v("ZodFunction",(e,t)=>{af.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>kh(e,n,o,r)});function qb(e){return new Mg({type:"function",input:Array.isArray(e?.input)?hg(e?.input):e?.input??b(B()),output:e?.output??B()})}var ra=v("ZodCustom",(e,t)=>{cf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Rh(e,n,o,r)});function Vb(e){let t=new ge({check:"custom"});return t._zod.check=e,t}function Zb(e,t){return Gf(ra,e??(()=>!0),t)}function Dg(e,t={}){return Wf(ra,e,t)}function Lg(e,t){return Xf(e,t)}var Fb=Qf,Kb=eh;function Jb(e,t={}){let n=new ra({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...I.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Bb=(...e)=>th({Codec:ta,Boolean:yo,String:ho},...e);function Hb(e){let t=Or(()=>A([u(e),x(),M(),Kt(),b(t),j(u(),t)]));return t}function tr(e,t){return new Og({type:"pipe",in:pl(e),out:t})}var Vg={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function gx(e){$e({customError:e})}function vx(){return $e().customError}var qg;qg||(qg={});var $t={};Xt($t,{ZodISODate:()=>Tr,ZodISODateTime:()=>Ir,ZodISODuration:()=>Er,ZodISOTime:()=>xr,date:()=>yx,datetime:()=>_x,duration:()=>bx,time:()=>Sx});function _x(e){return qi(Ir,e)}function yx(e){return Vi(Tr,e)}function Sx(e){return Zi(xr,e)}function bx(e){return Fi(Er,e)}var L={...bo,...qc,iso:$t},$x=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function zx(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Yb(e,t){return e.map((n,o)=>o<t?n:n.optional())}function Rx(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function kx(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let r=n[1]===void 0?void 0:Rx(n[1]);if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function wx(e,t){return L.transform(o=>o).check(o=>{let r=o.value;if(!(typeof r!="object"||r===null||Array.isArray(r)))for(let i of Object.getOwnPropertyNames(r)){let a=t.safeParse(i);a.success||o.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:i,path:[i],continue:!0})}}).pipe(e)}function Gb(e,t){if(e!==!1)return e===void 0||e===!0?L.any():st(e,t)}var Ix=/^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$/;function Wb(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return L.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return L.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=kx(r,t),a=st(i,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return L.null();if(r.length===0)return L.never();if(r.length===1)return L.literal(r[0]);if(r.every(a=>typeof a=="string"))return L.enum(r);let i=r.map(a=>L.literal(a));return i.length<2?i[0]:L.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return L.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(i=>{let a={...e,type:i};return Wb(a,t)});return r.length===0?L.never():r.length===1?r[0]:L.union(r)}if(!n)return L.any();let o;switch(n){case"string":{let r=L.string();if(e.format){let i=e.format;i==="email"?r=r.check(L.email()):i==="uri"||i==="uri-reference"?r=r.check(L.url()):i==="uuid"||i==="guid"?r=r.check(L.uuid()):i==="date-time"?r=r.check(L.iso.datetime({offset:!0})):i==="date"?r=r.check(L.iso.date()):i==="time"?r=r.check(L.regex(Ix)):i==="duration"?r=r.check(L.iso.duration()):i==="hostname"?r=r.check(L.hostname()):i==="ipv4"?r=r.check(L.ipv4()):i==="ipv6"?r=r.check(L.ipv6()):i==="mac"?r=r.check(L.mac()):i==="cidr"?r=r.check(L.cidrv4()):i==="cidr-v6"?r=r.check(L.cidrv6()):i==="base64"?r=r.check(L.base64()):i==="base64url"?r=r.check(L.base64url()):i==="e164"?r=r.check(L.e164()):i==="credit_card"?r=r.check(L.creditCard()):i==="jwt"?r=r.check(L.jwt()):i==="emoji"?r=r.check(L.emoji()):i==="nanoid"?r=r.check(L.nanoid()):i==="cuid"?r=r.check(L.cuid()):i==="cuid2"?r=r.check(L.cuid2()):i==="ulid"?r=r.check(L.ulid()):i==="xid"?r=r.check(L.xid()):i==="ksuid"&&(r=r.check(L.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),o=r;break}case"number":case"integer":{let r=n==="integer"?L.number().int():L.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),o=r;break}case"boolean":{o=L.boolean();break}case"null":{o=L.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?st(e.additionalProperties,t):void 0;for(let[c,l]of Object.entries(i)){let d=st(l,t);Se(r,c,a.has(c)?d:d.optional())}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),d=[];for(let p of l){let f=st(c[p],t),h=L.string().regex(new RegExp(p));d.push(L.looseRecord(h,f))}let m=[];if(Object.keys(r).length>0&&m.push(L.object(r).passthrough()),m.push(...d),m.length===0)o=L.object({}).passthrough();else if(m.length===1)o=m[0];else{let p=L.intersection(m[0],m[1]);for(let f=2;f<m.length;f++)p=L.intersection(p,m[f]);o=p}if(e.additionalProperties===!1){let p=Object.keys(r),f=l.map(S=>new RegExp(S)),h=o;o=o.check(S=>{if(!St(S.value))return;let y=[];for(let w of Object.keys(S.value))p.includes(w)||f.some(T=>T.test(w))||y.push(w);y.length&&S.issues.push({code:"unrecognized_keys",keys:y,input:S.value,inst:h})})}}else{let c=L.object(r);e.additionalProperties===!1?o=c.strict():s?o=c.catchall(s):o=c.passthrough()}if(e.propertyNames!==void 0&&e.propertyNames!==!0){let c=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;o=wx(o,st(c,t))}break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let a=typeof e.minItems=="number"?e.minItems:0,s=r.map(m=>st(m,t)),c=Yb(s,a),l=Array.isArray(i)?void 0:Gb(i,t),d=L.tuple(c);o=l?d.rest(l):d,typeof e.minItems=="number"&&(o=o.check(L.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(L.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=typeof e.minItems=="number"?e.minItems:0,s=i.map(m=>st(m,t)),c=Yb(s,a),l=Gb(e.additionalItems,t),d=L.tuple(c);o=l?d.rest(l):d,typeof e.minItems=="number"&&(o=o.check(L.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(L.maxLength(e.maxItems)))}else if(i!==void 0){let a=st(i,t),s=L.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=L.array(L.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function st(e,t){if(typeof e=="boolean")return e?L.any():L.never();let n=Wb(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(l=>st(l,t)),c=L.union(s);n=o?L.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(l=>st(l,t)),c=L.xor(s);n=o?L.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:L.any();else{let s=o?n:st(e.allOf[0],t),c=o?0:1;for(let l=c;l<e.allOf.length;l++)s=L.intersection(s,st(e.allOf[l],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=L.nullable(n)),e.readOnly===!0&&(n=L.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);e.propertyNames!==void 0&&e.type==="object"&&e.$ref===void 0&&(r.propertyNames=e.propertyNames);for(let s of Object.keys(e))$x.has(s)||Se(r,s,e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function Xb(e,t){if(typeof e=="boolean")return e?L.any():L.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=zx(n,t?.defaultTarget),r=n.$defs||n.definitions||{},i={version:o,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??je};return st(n,i)}var Qb=Symbol("z.visit/resolving");function na(e,t){let n=typeof t=="function"?t:(a,s)=>{let c=t[a._zod.def.type];return c?c(a,s):a},o=new Map;function r(a){let s=o.get(a);if(s===Qb)return new Ai({type:"lazy",getter:()=>o.get(a)});if(s!==void 0)return s;o.set(a,Qb);let c=i(a),l=n(c,c!==a);return o.set(a,l),l}function i(a){let s=a._zod.def,c=s.type;switch(c){case"object":{let l=s.shape,d=Object.keys(l),m=!1,p={};for(let h of d){let S=r(l[h]);S!==l[h]&&(m=!0),p[h]=S}let f=s.catchall;return s.catchall&&(f=r(s.catchall),f!==s.catchall&&(m=!0)),m?me(a,{...s,shape:p,catchall:f}):a}case"array":{let l=r(s.element);return l===s.element?a:me(a,{...s,element:l})}case"tuple":{let l=s.items,d=!1,m=[];for(let f of l){let h=r(f);h!==f&&(d=!0),m.push(h)}let p=s.rest;return s.rest&&(p=r(s.rest),p!==s.rest&&(d=!0)),d?me(a,{...s,items:m,rest:p}):a}case"record":case"map":{let l=r(s.keyType),d=r(s.valueType);return l===s.keyType&&d===s.valueType?a:me(a,{...s,keyType:l,valueType:d})}case"set":{let l=r(s.valueType);return l===s.valueType?a:me(a,{...s,valueType:l})}case"union":{let l=s.options,d=!1,m=[];for(let p of l){let f=r(p);f!==p&&(d=!0),m.push(f)}return d?me(a,{...s,options:m}):a}case"intersection":{let l=r(s.left),d=r(s.right);return l===s.left&&d===s.right?a:me(a,{...s,left:l,right:d})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let l=r(s.innerType);return l===s.innerType?a:me(a,{...s,innerType:l})}case"pipe":{let l=r(s.in),d=r(s.out);return l===s.in&&d===s.out?a:me(a,{...s,in:l,out:d})}case"function":{let l=r(s.input),d=r(s.output);return l===s.input&&d===s.output?a:me(a,{...s,input:l,output:d})}case"lazy":{let l=s.getter,{_cachedInner:d,...m}=s;return me(a,{...m,getter:()=>r(l())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return r(e)}function e$(e){return na(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:A(n.options)}})}function Tx(e,t){if(!t?.length)return e;let n=e._zod.def;return me(e,It(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function t$(e){return Tx(e.out,e.checks)}function xx(e){return e.in._zod.traits.has("$ZodTransform")?t$(e):e.in}function r$(e){return na(e,{pipe:t=>xx(t._zod.def),default:(t,n)=>n?F(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function n$(e){return na(e,{pipe:t=>t$(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var oa={};Xt(oa,{bigint:()=>Cx,boolean:()=>Ox,date:()=>Nx,number:()=>Px,string:()=>Ex});function Ex(e){return bf(ho,e)}function Px(e){return wf(_o,e)}function Ox(e){return Cf(yo,e)}function Cx(e){return jf(So,e)}function Nx(e){return Jf(Gi,e)}var yn="2025-11-25",gl="2025-03-26",ia=[yn,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],vl="io.modelcontextprotocol/related-task",zt="io.modelcontextprotocol/protocolVersion",Sn="io.modelcontextprotocol/clientInfo",Jt="io.modelcontextprotocol/serverInfo",Bt="io.modelcontextprotocol/clientCapabilities",bn="io.modelcontextprotocol/subscriptionId",Nr="io.modelcontextprotocol/logLevel";var $n="2.0";var Cr=Or(()=>A([u(),x(),M(),Kt(),j(u(),Cr),b(Cr)])),ze=j(u(),Cr),Fg=b(Cr),aa=A([u(),x().int()]),sa=u(),_l=g({ttl:x().optional()}),yl=g({taskId:u()}),ca=Y({progressToken:aa.optional(),[vl]:yl.optional()}),Ce=g({_meta:ca.optional()}),zn=Ce.extend({task:_l.optional()}),Re=g({method:u(),params:Ce.loose().optional()}),Le=g({_meta:ca.optional()}),qe=g({method:u(),params:Le.loose().optional()}),la=Y({get[Jt](){return ko.optional().catch(void 0)}}),ke=Y({_meta:la.optional()}),jr=A([u(),x().int()]),ua=g({jsonrpc:z($n),id:jr,...Re.shape}).strict(),da=g({jsonrpc:z($n),...qe.shape}).strict(),$o=g({jsonrpc:z($n),id:jr,result:ke}).strict(),zo=g({jsonrpc:z($n),id:jr.optional(),error:g({code:x().int(),message:u(),data:B().optional()})}).strict(),Ro=A([ua,da,$o,zo]),Kg=A([$o,zo]),ma=ke.strict(),Sl=Le.extend({requestId:jr.optional(),reason:u().optional()}),pa=qe.extend({method:z("notifications/cancelled"),params:Sl}),bl=g({src:u(),mimeType:u().optional(),sizes:b(u()).optional(),theme:te(["light","dark"]).optional()}),Ar=g({icons:b(bl).optional()}),rr=g({name:u(),title:u().optional()}),ko=rr.extend({...rr.shape,...Ar.shape,version:u(),websiteUrl:u().optional(),description:u().optional()}),Ax=Et(g({applyDefaults:M().optional()}),ze),Ux=tr(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Et(g({form:Ax.optional(),url:ze.optional()}),ze.optional())),$l=Y({list:ze.optional(),cancel:ze.optional(),requests:Y({sampling:Y({createMessage:ze.optional()}).optional(),elicitation:Y({create:ze.optional()}).optional()}).optional()}),zl=Y({list:ze.optional(),cancel:ze.optional(),requests:Y({tools:Y({call:ze.optional()}).optional()}).optional()}),Rl=g({experimental:j(u(),ze).optional(),sampling:g({context:ze.optional(),tools:ze.optional()}).optional(),elicitation:Ux.optional(),roots:g({listChanged:M().optional()}).optional(),tasks:$l.optional(),extensions:j(u(),ze).optional()}),kl=Ce.extend({protocolVersion:u(),capabilities:Rl,clientInfo:ko}),fa=Re.extend({method:z("initialize"),params:kl}),ha=g({experimental:j(u(),ze).optional(),logging:ze.optional(),completions:ze.optional(),prompts:g({listChanged:M().optional()}).optional(),resources:g({subscribe:M().optional(),listChanged:M().optional()}).optional(),tools:g({listChanged:M().optional()}).optional(),tasks:zl.optional(),extensions:j(u(),ze).optional()}),wl=ke.extend({protocolVersion:u(),capabilities:ha,serverInfo:ko,instructions:u().optional()}),Il=qe.extend({method:z("notifications/initialized"),params:Le.optional()}),Tl=Re.extend({method:z("server/discover"),params:Ce.optional()}),xl=ke.extend({supportedVersions:b(u()),capabilities:ha,instructions:u().optional()}),ga=Re.extend({method:z("ping"),params:Ce.optional()}),El=g({progress:x(),total:F(x()),message:F(u())}),Pl=g({...Le.shape,...El.shape,progressToken:aa}),va=qe.extend({method:z("notifications/progress"),params:Pl}),Ol=Ce.extend({cursor:sa.optional()}),Ur=Re.extend({params:Ol.optional()}),Mr=ke.extend({nextCursor:sa.optional()}),_a=g({uri:u(),mimeType:F(u()),_meta:j(u(),B()).optional()}),ya=_a.extend({text:u()}),Jg=u().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Sa=_a.extend({blob:Jg}),Dr=te(["user","assistant"]),nr=g({audience:b(Dr).optional(),priority:x().min(0).max(1).optional(),lastModified:$t.datetime({offset:!0}).optional()}),ba=g({...rr.shape,...Ar.shape,uri:u(),description:F(u()),mimeType:F(u()),size:F(x()),annotations:nr.optional(),_meta:F(Y({}))}),Cl=g({...rr.shape,...Ar.shape,uriTemplate:u(),description:F(u()),mimeType:F(u()),annotations:nr.optional(),_meta:F(Y({}))}),Nl=Ur.extend({method:z("resources/list")}),jl=Mr.extend({resources:b(ba)}),Al=Ur.extend({method:z("resources/templates/list")}),Ul=Mr.extend({resourceTemplates:b(Cl)}),wo=Ce.extend({uri:u()}),Ml=wo,Dl=Re.extend({method:z("resources/read"),params:Ml}),Ll=ke.extend({contents:b(A([ya,Sa]))}),ql=qe.extend({method:z("notifications/resources/list_changed"),params:Le.optional()}),Vl=wo,Zl=Re.extend({method:z("resources/subscribe"),params:Vl}),Fl=wo,Kl=Re.extend({method:z("resources/unsubscribe"),params:Fl}),$a=g({toolsListChanged:M().optional(),promptsListChanged:M().optional(),resourcesListChanged:M().optional(),resourceSubscriptions:b(u()).optional()}),Jl=Ce.extend({notifications:$a}),Bl=Re.extend({method:z("subscriptions/listen"),params:Jl}),Hl=Le.extend({notifications:$a}),Yl=qe.extend({method:z("notifications/subscriptions/acknowledged"),params:Hl}),Gl=la.extend({[bn]:jr}),Wl=ke.extend({_meta:Gl}),Xl=Le.extend({uri:u()}),Ql=qe.extend({method:z("notifications/resources/updated"),params:Xl}),eu=g({name:u(),description:F(u()),required:F(M())}),tu=g({...rr.shape,...Ar.shape,description:F(u()),arguments:F(b(eu)),_meta:F(Y({}))}),ru=Ur.extend({method:z("prompts/list")}),nu=Mr.extend({prompts:b(tu)}),ou=Ce.extend({name:u(),arguments:j(u(),u()).optional()}),iu=Re.extend({method:z("prompts/get"),params:ou}),Io=g({type:z("text"),text:u(),annotations:nr.optional(),_meta:j(u(),B()).optional()}),To=g({type:z("image"),data:Jg,mimeType:u(),annotations:nr.optional(),_meta:j(u(),B()).optional()}),xo=g({type:z("audio"),data:Jg,mimeType:u(),annotations:nr.optional(),_meta:j(u(),B()).optional()}),au=g({type:z("tool_use"),name:u(),id:u(),input:j(u(),B()),_meta:j(u(),B()).optional()}),su=g({type:z("resource"),resource:A([ya,Sa]),annotations:nr.optional(),_meta:j(u(),B()).optional()}),cu=ba.extend({type:z("resource_link")}),Eo=A([Io,To,xo,cu,su]),lu=g({role:Dr,content:Eo}),uu=ke.extend({description:u().optional(),messages:b(lu)}),du=qe.extend({method:z("notifications/prompts/list_changed"),params:Le.optional()}),mu=g({title:u().optional(),readOnlyHint:M().optional(),destructiveHint:M().optional(),idempotentHint:M().optional(),openWorldHint:M().optional()}),pu=g({taskSupport:te(["required","optional","forbidden"]).optional()}),za=g({...rr.shape,...Ar.shape,description:u().optional(),inputSchema:g({type:z("object"),properties:j(u(),Cr).optional(),required:b(u()).optional()}).catchall(B()),outputSchema:Y({$schema:u().optional()}).optional(),annotations:mu.optional(),execution:pu.optional(),_meta:j(u(),B()).optional()}),fu=Ur.extend({method:z("tools/list")}),hu=Mr.extend({tools:b(za)}),Ra=ke.extend({content:b(Eo).default([]),structuredContent:B().optional(),isError:M().optional()}),Bg=Ra.or(ke.extend({toolResult:B()})),gu=zn.extend({name:u(),arguments:j(u(),B()).optional()}),vu=Re.extend({method:z("tools/call"),params:gu}),_u=qe.extend({method:z("notifications/tools/list_changed"),params:Le.optional()}),Hg=g({autoRefresh:M().default(!0),debounceMs:x().int().nonnegative().default(300)}),Lr=te(["debug","info","notice","warning","error","critical","alert","emergency"]),yu=Ce.extend({level:Lr}),Su=Re.extend({method:z("logging/setLevel"),params:yu}),bu=Le.extend({level:Lr,logger:u().optional(),data:B()}),$u=qe.extend({method:z("notifications/message"),params:bu}),zu=g({name:u().optional()}),Ru=g({hints:b(zu).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),ku=g({mode:te(["auto","required","none"]).optional()}),wu=g({type:z("tool_result"),toolUseId:u().describe("The unique identifier for the corresponding tool call."),content:b(Eo),structuredContent:B().optional(),isError:M().optional(),_meta:j(u(),B()).optional()}),Iu=Pr("type",[Io,To,xo]),_n=Pr("type",[Io,To,xo,au,wu]),Tu=g({role:Dr,content:A([_n,b(_n)]),_meta:j(u(),B()).optional()}),xu=zn.extend({messages:b(Tu),modelPreferences:Ru.optional(),systemPrompt:u().optional(),includeContext:te(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(u()).optional(),metadata:ze.optional(),tools:b(za).optional(),toolChoice:ku.optional()}),Eu=Re.extend({method:z("sampling/createMessage"),params:xu}),Pu=ke.extend({model:u(),stopReason:F(te(["endTurn","stopSequence","maxTokens"]).or(u())),role:Dr,content:Iu}),Ou=ke.extend({model:u(),stopReason:F(te(["endTurn","stopSequence","maxTokens","toolUse"]).or(u())),role:Dr,content:A([_n,b(_n)])}),ka=g({type:z("boolean"),title:u().optional(),description:u().optional(),default:M().optional()}),Po=g({type:z("string"),title:u().optional(),description:u().optional(),minLength:x().optional(),maxLength:x().optional(),format:te(["email","uri","date","date-time"]).optional(),default:u().optional()}),Oo=g({type:te(["number","integer"]),title:u().optional(),description:u().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),wa=g({type:z("string"),title:u().optional(),description:u().optional(),enum:b(u()),default:u().optional()}),Ia=g({type:z("string"),title:u().optional(),description:u().optional(),oneOf:b(g({const:u(),title:u()})),default:u().optional()}),Ta=g({type:z("string"),title:u().optional(),description:u().optional(),enum:b(u()),enumNames:b(u()).optional(),default:u().optional()}),Cu=A([wa,Ia]),xa=g({type:z("array"),title:u().optional(),description:u().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:z("string"),enum:b(u())}),default:b(u()).optional()}),Ea=g({type:z("array"),title:u().optional(),description:u().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:u(),title:u()}))}),default:b(u()).optional()}),Nu=A([xa,Ea]),ju=A([Ta,Cu,Nu]),Pa=A([ju,ka,Po,Oo]),Co=zn.extend({mode:z("form").optional(),message:u(),requestedSchema:g({type:z("object"),properties:j(u(),Pa),required:b(u()).optional()}).catchall(B())}),Au=zn.extend({mode:z("url"),message:u(),elicitationId:u(),url:u().url()}),Uu=A([Co,Au]),Mu=Re.extend({method:z("elicitation/create"),params:Uu}),Du=Le.extend({elicitationId:u()}),Lu=qe.extend({method:z("notifications/elicitation/complete"),params:Du}),qu=ke.extend({action:te(["accept","decline","cancel"]),content:tr(e=>e===null?void 0:e,j(u(),A([u(),x(),M(),b(u())])).optional())}),Vu=g({type:z("ref/resource"),uri:u()}),Zu=g({type:z("ref/prompt"),name:u()}),Fu=Ce.extend({ref:A([Zu,Vu]),argument:g({name:u(),value:u()}),context:g({arguments:j(u(),u()).optional()}).optional()}),Ku=Re.extend({method:z("completion/complete"),params:Fu}),Ju=ke.extend({completion:Y({values:b(u()).max(100),total:F(x().int()),hasMore:F(M())})}),Bu=g({uri:u().startsWith("file://"),name:u().optional(),_meta:j(u(),B()).optional()}),Hu=Re.extend({method:z("roots/list"),params:Ce.optional()}),Yu=ke.extend({roots:b(Bu)}),Gu=qe.extend({method:z("notifications/roots/list_changed"),params:Le.optional()}),Yg=Y({ttl:x().optional(),pollInterval:x().optional()}),Wu=te(["working","input_required","completed","failed","cancelled"]),qr=g({taskId:u(),status:Wu,ttl:A([x(),Kt()]),createdAt:u(),lastUpdatedAt:u(),pollInterval:F(x()),statusMessage:F(u())}),Gg=ke.extend({task:qr}),Xu=Le.merge(qr),Wg=qe.extend({method:z("notifications/tasks/status"),params:Xu}),Xg=Re.extend({method:z("tasks/get"),params:Ce.extend({taskId:u()})}),Qg=ke.merge(qr),ev=Re.extend({method:z("tasks/result"),params:Ce.extend({taskId:u()})}),tv=ke.loose(),rv=Ur.extend({method:z("tasks/list")}),nv=Mr.extend({tasks:b(qr)}),ov=Re.extend({method:z("tasks/cancel"),params:Ce.extend({taskId:u()})}),iv=ke.merge(qr),av=A([ga,fa,Tl,Ku,Su,iu,ru,Nl,Al,Dl,Zl,Kl,Bl,vu,fu]),sv=A([pa,va,Il,Gu]),cv=A([ma,Pu,Ou,qu,Yu]),lv=A([ga,Eu,Mu,Hu]),uv=A([pa,va,$u,Ql,ql,_u,du,Yl,Lu]),dv=A([ma,wl,xl,Ju,uu,nu,jl,Ul,Ll,Ra,hu,Wl]),Oe=go().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Vg.custom,message:"URL must be parseable",fatal:!0}),Ri}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),mv=Y({resource:u().url(),authorization_servers:b(Oe).optional(),jwks_uri:u().url().optional(),scopes_supported:b(u()).optional(),bearer_methods_supported:b(u()).optional(),resource_signing_alg_values_supported:b(u()).optional(),resource_name:u().optional(),resource_documentation:u().optional(),resource_policy_uri:u().url().optional(),resource_tos_uri:u().url().optional(),tls_client_certificate_bound_access_tokens:M().optional(),authorization_details_types_supported:b(u()).optional(),dpop_signing_alg_values_supported:b(u()).optional(),dpop_bound_access_tokens_required:M().optional()}),Qu=Y({issuer:u(),authorization_endpoint:Oe,token_endpoint:Oe,registration_endpoint:Oe.optional(),scopes_supported:b(u()).optional(),response_types_supported:b(u()),response_modes_supported:b(u()).optional(),grant_types_supported:b(u()).optional(),token_endpoint_auth_methods_supported:b(u()).optional(),token_endpoint_auth_signing_alg_values_supported:b(u()).optional(),service_documentation:Oe.optional(),revocation_endpoint:Oe.optional(),revocation_endpoint_auth_methods_supported:b(u()).optional(),revocation_endpoint_auth_signing_alg_values_supported:b(u()).optional(),introspection_endpoint:u().optional(),introspection_endpoint_auth_methods_supported:b(u()).optional(),introspection_endpoint_auth_signing_alg_values_supported:b(u()).optional(),code_challenge_methods_supported:b(u()).optional(),client_id_metadata_document_supported:M().optional(),authorization_response_iss_parameter_supported:M().optional().catch(void 0),dpop_signing_alg_values_supported:b(u()).optional()}),ed=Y({issuer:u(),authorization_endpoint:Oe,token_endpoint:Oe,userinfo_endpoint:Oe.optional(),jwks_uri:Oe,registration_endpoint:Oe.optional(),scopes_supported:b(u()).optional(),response_types_supported:b(u()),response_modes_supported:b(u()).optional(),grant_types_supported:b(u()).optional(),acr_values_supported:b(u()).optional(),subject_types_supported:b(u()),id_token_signing_alg_values_supported:b(u()),id_token_encryption_alg_values_supported:b(u()).optional(),id_token_encryption_enc_values_supported:b(u()).optional(),userinfo_signing_alg_values_supported:b(u()).optional(),userinfo_encryption_alg_values_supported:b(u()).optional(),userinfo_encryption_enc_values_supported:b(u()).optional(),request_object_signing_alg_values_supported:b(u()).optional(),request_object_encryption_alg_values_supported:b(u()).optional(),request_object_encryption_enc_values_supported:b(u()).optional(),token_endpoint_auth_methods_supported:b(u()).optional(),token_endpoint_auth_signing_alg_values_supported:b(u()).optional(),display_values_supported:b(u()).optional(),claim_types_supported:b(u()).optional(),claims_supported:b(u()).optional(),service_documentation:u().optional(),claims_locales_supported:b(u()).optional(),ui_locales_supported:b(u()).optional(),claims_parameter_supported:M().optional(),request_parameter_supported:M().optional(),request_uri_parameter_supported:M().optional(),require_request_uri_registration:M().optional(),op_policy_uri:Oe.optional(),op_tos_uri:Oe.optional(),client_id_metadata_document_supported:M().optional(),authorization_response_iss_parameter_supported:M().optional().catch(void 0)}),pv=g({...ed.shape,...Qu.pick({code_challenge_methods_supported:!0}).shape}),fv=g({access_token:u(),id_token:u().optional(),token_type:u(),expires_in:oa.number().optional(),scope:u().optional(),refresh_token:u().optional(),issuer:u().optional().catch(void 0)}).strip(),hv=g({issued_token_type:z("urn:ietf:params:oauth:token-type:id-jag"),access_token:u(),token_type:u().optional(),expires_in:x().optional(),scope:u().optional()}).strip(),gv=g({error:u(),error_description:u().optional(),error_uri:u().optional()}),Zg=Oe.optional().or(z("").transform(()=>{})),td=g({redirect_uris:b(Oe),token_endpoint_auth_method:u().optional(),grant_types:b(u()).optional(),response_types:b(u()).optional(),application_type:u().optional(),client_name:u().optional(),client_uri:Oe.optional(),logo_uri:Zg,scope:u().optional(),contacts:b(u()).optional(),tos_uri:Zg,policy_uri:u().optional(),jwks_uri:Oe.optional(),jwks:dl().optional(),software_id:u().optional(),software_version:u().optional(),software_statement:u().optional()}).strip(),rd=g({client_id:u(),client_secret:u().optional(),client_id_issued_at:x().optional(),client_secret_expires_at:x().optional(),issuer:u().optional().catch(void 0)}).strip(),vv=td.merge(rd),_v=g({error:u(),error_description:u().optional()}).strip(),yv=g({token:u(),token_type_hint:u().optional()}).strip();var Rv=Symbol.for("mcp.sdk.errorBrands");function Tv(e,t){let n=new Set,o=t;for(;typeof o=="function";){let r=o.mcpBrand;Object.prototype.hasOwnProperty.call(o,"mcpBrand")&&typeof r=="string"&&n.add(r),o=Object.getPrototypeOf(o)}n.size!==0&&Object.defineProperty(e,Rv,{value:n,enumerable:!1,configurable:!0})}function Uo(e,t){try{if(typeof t=="object"&&t!==null&&Object.prototype.hasOwnProperty.call(e,"mcpBrand")&&typeof e.mcpBrand=="string"&&Object.prototype.hasOwnProperty.call(t,Rv)){let n=t[Rv];if(n&&typeof n.has=="function"&&n.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}var kn=(function(e){return e.InvalidRequest="invalid_request",e.InvalidClient="invalid_client",e.InvalidGrant="invalid_grant",e.UnauthorizedClient="unauthorized_client",e.UnsupportedGrantType="unsupported_grant_type",e.InvalidScope="invalid_scope",e.AccessDenied="access_denied",e.ServerError="server_error",e.TemporarilyUnavailable="temporarily_unavailable",e.UnsupportedResponseType="unsupported_response_type",e.UnsupportedTokenType="unsupported_token_type",e.InvalidToken="invalid_token",e.MethodNotAllowed="method_not_allowed",e.TooManyRequests="too_many_requests",e.InvalidClientMetadata="invalid_client_metadata",e.InvalidRedirectUri="invalid_redirect_uri",e.InsufficientScope="insufficient_scope",e.InvalidTarget="invalid_target",e.InvalidDpopProof="invalid_dpop_proof",e.UseDpopNonce="use_dpop_nonce",e})({}),Ma=class I$ extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.OAuthError"})}static[Symbol.hasInstance](t){return Uo(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Uo(this,t)}constructor(t,n,o){super(n),this.code=t,this.errorUri=o,this.name="OAuthError",Tv(this,new.target)}toResponseObject(){let t={error:this.code,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}static fromResponse(t){return new I$(t.error,t.error_description??t.error,t.error_uri)}},se=(function(e){return e.NotConnected="NOT_CONNECTED",e.AlreadyConnected="ALREADY_CONNECTED",e.NotInitialized="NOT_INITIALIZED",e.CapabilityNotSupported="CAPABILITY_NOT_SUPPORTED",e.RequestTimeout="REQUEST_TIMEOUT",e.ConnectionClosed="CONNECTION_CLOSED",e.SendFailed="SEND_FAILED",e.InvalidResult="INVALID_RESULT",e.UnsupportedResultType="UNSUPPORTED_RESULT_TYPE",e.InputRequiredRoundsExceeded="INPUT_REQUIRED_ROUNDS_EXCEEDED",e.ListPaginationExceeded="LIST_PAGINATION_EXCEEDED",e.MethodNotSupportedByProtocolVersion="METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION",e.EraNegotiationFailed="ERA_NEGOTIATION_FAILED",e.ClientHttpNotImplemented="CLIENT_HTTP_NOT_IMPLEMENTED",e.ClientHttpAuthentication="CLIENT_HTTP_AUTHENTICATION",e.ClientHttpForbidden="CLIENT_HTTP_FORBIDDEN",e.ClientHttpUnexpectedContent="CLIENT_HTTP_UNEXPECTED_CONTENT",e.ClientHttpFailedToOpenStream="CLIENT_HTTP_FAILED_TO_OPEN_STREAM",e.ClientHttpFailedToTerminateSession="CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION",e})({}),ne=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkError"})}static[Symbol.hasInstance](e){return Uo(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Uo(this,e)}constructor(e,t,n,o){super(t,o),this.code=e,this.data=n,this.name="SdkError",Tv(this,new.target)}},Mx=class extends ne{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkHttpError"})}constructor(e,t,n,o){super(e,t,n,o),this.name="SdkHttpError"}get status(){return this.data.status}get statusText(){return this.data.statusText}};var m$={};function T$(e){return Object.hasOwn(m$,e)?m$[e]:void 0}function p$(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Dx(e,t,n){return e==="elicitation"&&t==="form"&&n.form===void 0&&n.url===void 0}function x$(e){switch(e.method){case"elicitation/create":return e.params?.mode==="url"?{elicitation:{url:{}}}:{elicitation:{form:{}}};case"sampling/createMessage":{let t=e.params;return t!==void 0&&(t.tools!==void 0||t.toolChoice!==void 0)?{sampling:{tools:{}}}:{sampling:{}}}case"roots/list":return{roots:{}};default:return}}function Da(e,t){let n={};for(let[o,r]of Object.entries(e)){if(r===void 0)continue;let i=t===void 0?void 0:t[o];if(i===void 0){n[o]=r;continue}if(p$(r)&&p$(i)){let a={};for(let[s,c]of Object.entries(r))c!==void 0&&i[s]===void 0&&!Dx(o,s,i)&&(a[s]=c);Object.keys(a).length>0&&(n[o]=a)}}return Object.keys(n).length>0?n:void 0}var E$="2026-07-28",La=[E$];function ar(e){return e>=E$}function P$(e){return e.filter(t=>!ar(t))}function xv(e){return e.filter(t=>ar(t))}function O$(e){let t=e.structuredContent;return t===void 0||!(typeof t!="object"||t===null||Array.isArray(t))||(e.content?.some(n=>n.type==="text")??!1)?e:{...e,content:[...e.content??[],{type:"text",text:JSON.stringify(t)}]}}var C$=["task","inputRequests","requestState"];function Ev(e){return e===null||typeof e!="object"||Array.isArray(e)||e.content!==void 0||C$.some(t=>t in e)?e:{...e,content:[]}}function Lx(){let e=Or(()=>A([u(),x(),M(),Kt(),j(u(),e),b(e)])),t=j(u(),e),n=A([u(),x().int()]),o=u(),r=g({ttl:x().optional()}),i=g({taskId:u()}),a=Y({progressToken:n.optional(),"io.modelcontextprotocol/related-task":i.optional()}),s=g({_meta:a.optional()}),c=s.extend({task:r.optional()}),l=g({method:u(),params:s.loose().optional()}),d=g({_meta:a.optional()}),m=g({method:u(),params:d.loose().optional()}),p=Y({_meta:a.optional()}),f=A([u(),x().int()]),h=p.strict(),S=d.extend({requestId:f.optional(),reason:u().optional()}),y=m.extend({method:z("notifications/cancelled"),params:S}),w=g({src:u(),mimeType:u().optional(),sizes:b(u()).optional(),theme:te(["light","dark"]).optional()}),T=g({icons:b(w).optional()}),E=g({name:u(),title:u().optional()}),K=E.extend({...E.shape,...T.shape,version:u(),websiteUrl:u().optional(),description:u().optional()}),Z=Et(g({applyDefaults:M().optional()}),t),N=tr(De=>De&&typeof De=="object"&&!Array.isArray(De)&&Object.keys(De).length===0?{form:{}}:De,Et(g({form:Z.optional(),url:t.optional()}),t.optional())),re=Y({list:t.optional(),cancel:t.optional(),requests:Y({sampling:Y({createMessage:t.optional()}).optional(),elicitation:Y({create:t.optional()}).optional()}).optional()}),oe=Y({list:t.optional(),cancel:t.optional(),requests:Y({tools:Y({call:t.optional()}).optional()}).optional()}),H=g({experimental:j(u(),t).optional(),sampling:g({context:t.optional(),tools:t.optional()}).optional(),elicitation:N.optional(),roots:g({listChanged:M().optional()}).optional(),tasks:re.optional(),extensions:j(u(),t).optional()}),ve=s.extend({protocolVersion:u(),capabilities:H,clientInfo:K}),ye=l.extend({method:z("initialize"),params:ve}),ce=g({experimental:j(u(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:g({listChanged:M().optional()}).optional(),resources:g({subscribe:M().optional(),listChanged:M().optional()}).optional(),tools:g({listChanged:M().optional()}).optional(),tasks:oe.optional(),extensions:j(u(),t).optional()}),Ie=p.extend({protocolVersion:u(),capabilities:ce,serverInfo:K,instructions:u().optional()}),xe=m.extend({method:z("notifications/initialized"),params:d.optional()}),Ae=l.extend({method:z("ping"),params:s.optional()}),Ze=g({progress:x(),total:F(x()),message:F(u())}),Xe=g({...d.shape,...Ze.shape,progressToken:n}),gt=m.extend({method:z("notifications/progress"),params:Xe}),Nt=s.extend({cursor:o.optional()}),ct=l.extend({params:Nt.optional()}),Fe=p.extend({nextCursor:o.optional()}),Gt=g({uri:u(),mimeType:F(u()),_meta:j(u(),B()).optional()}),Wt=Gt.extend({text:u()}),jt=u().refine(De=>{try{return atob(De),!0}catch{return!1}},{message:"Invalid Base64 string"}),Ue=Gt.extend({blob:jt}),Ke=te(["user","assistant"]),Je=g({audience:b(Ke).optional(),priority:x().min(0).max(1).optional(),lastModified:$t.datetime({offset:!0}).optional()}),kt=g({...E.shape,...T.shape,uri:u(),description:F(u()),mimeType:F(u()),size:F(x()),annotations:Je.optional(),_meta:F(Y({}))}),Kr=g({...E.shape,...T.shape,uriTemplate:u(),description:F(u()),mimeType:F(u()),annotations:Je.optional(),_meta:F(Y({}))}),lt=ct.extend({method:z("resources/list")}),ut=Fe.extend({resources:b(kt)}),Qe=ct.extend({method:z("resources/templates/list")}),vt=Fe.extend({resourceTemplates:b(Kr)}),_t=s.extend({uri:u()}),At=_t,Ut=l.extend({method:z("resources/read"),params:At}),mr=p.extend({contents:b(A([Wt,Ue]))}),Mt=m.extend({method:z("notifications/resources/list_changed"),params:d.optional()}),Jr=_t,D=l.extend({method:z("resources/subscribe"),params:Jr}),Dt=_t,G=l.extend({method:z("resources/unsubscribe"),params:Dt}),J=d.extend({uri:u()}),ae=m.extend({method:z("notifications/resources/updated"),params:J}),q=g({name:u(),description:F(u()),required:F(M())}),U=g({...E.shape,...T.shape,description:F(u()),arguments:F(b(q)),_meta:F(Y({}))}),Q=ct.extend({method:z("prompts/list")}),X=Fe.extend({prompts:b(U)}),Te=s.extend({name:u(),arguments:j(u(),u()).optional()}),Br=l.extend({method:z("prompts/get"),params:Te}),Lt=g({type:z("text"),text:u(),annotations:Je.optional(),_meta:j(u(),B()).optional()}),Hr=g({type:z("image"),data:jt,mimeType:u(),annotations:Je.optional(),_meta:j(u(),B()).optional()}),Yr=g({type:z("audio"),data:jt,mimeType:u(),annotations:Je.optional(),_meta:j(u(),B()).optional()}),qo=g({type:z("tool_use"),name:u(),id:u(),input:j(u(),B()),_meta:j(u(),B()).optional()}),pr=g({type:z("resource"),resource:A([Wt,Ue]),annotations:Je.optional(),_meta:j(u(),B()).optional()}),Vo=kt.extend({type:z("resource_link")}),yt=A([Lt,Hr,Yr,Vo,pr]),xn=g({role:Ke,content:yt}),En=p.extend({description:u().optional(),messages:b(xn)}),Gr=m.extend({method:z("notifications/prompts/list_changed"),params:d.optional()}),Zo=g({title:u().optional(),readOnlyHint:M().optional(),destructiveHint:M().optional(),idempotentHint:M().optional(),openWorldHint:M().optional()}),Pn=g({taskSupport:te(["required","optional","forbidden"]).optional()}),Wr=g({...E.shape,...T.shape,description:u().optional(),inputSchema:g({type:z("object"),properties:j(u(),e).optional(),required:b(u()).optional()}).catchall(B()),outputSchema:g({type:z("object"),properties:j(u(),e).optional(),required:b(u()).optional()}).catchall(B()).optional(),annotations:Zo.optional(),execution:Pn.optional(),_meta:j(u(),B()).optional()}),On=ct.extend({method:z("tools/list")}),Cn=Fe.extend({tools:b(Wr)}),Nn=p.extend({content:b(yt),structuredContent:j(u(),B()).optional(),isError:M().optional()}),Me=c.extend({name:u(),arguments:j(u(),B()).optional()}),Fo=l.extend({method:z("tools/call"),params:Me}),Ga=m.extend({method:z("notifications/tools/list_changed"),params:d.optional()}),jn=te(["debug","info","notice","warning","error","critical","alert","emergency"]),Ko=s.extend({level:jn}),Jo=l.extend({method:z("logging/setLevel"),params:Ko}),Bo=d.extend({level:jn,logger:u().optional(),data:B()}),Ho=m.extend({method:z("notifications/message"),params:Bo}),Yo=g({name:u().optional()}),Go=g({hints:b(Yo).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),Wo=g({mode:te(["auto","required","none"]).optional()}),Wa=g({type:z("tool_result"),toolUseId:u().describe("The unique identifier for the corresponding tool call."),content:b(yt),structuredContent:g({}).loose().optional(),isError:M().optional(),_meta:j(u(),B()).optional()}),Xo=Pr("type",[Lt,Hr,Yr]),fr=Pr("type",[Lt,Hr,Yr,qo,Wa]),Qo=g({role:Ke,content:A([fr,b(fr)]),_meta:j(u(),B()).optional()}),ei=c.extend({messages:b(Qo),modelPreferences:Go.optional(),systemPrompt:u().optional(),includeContext:te(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(u()).optional(),metadata:t.optional(),tools:b(Wr).optional(),toolChoice:Wo.optional()}),ti=l.extend({method:z("sampling/createMessage"),params:ei}),ri=p.extend({model:u(),stopReason:F(te(["endTurn","stopSequence","maxTokens"]).or(u())),role:Ke,content:Xo}),ni=p.extend({model:u(),stopReason:F(te(["endTurn","stopSequence","maxTokens","toolUse"]).or(u())),role:Ke,content:A([fr,b(fr)])}),oi=g({type:z("boolean"),title:u().optional(),description:u().optional(),default:M().optional()}),ii=g({type:z("string"),title:u().optional(),description:u().optional(),minLength:x().optional(),maxLength:x().optional(),format:te(["email","uri","date","date-time"]).optional(),default:u().optional()}),ai=g({type:te(["number","integer"]),title:u().optional(),description:u().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),si=g({type:z("string"),title:u().optional(),description:u().optional(),enum:b(u()),default:u().optional()}),ci=g({type:z("string"),title:u().optional(),description:u().optional(),oneOf:b(g({const:u(),title:u()})),default:u().optional()}),li=g({type:z("string"),title:u().optional(),description:u().optional(),enum:b(u()),enumNames:b(u()).optional(),default:u().optional()}),ui=A([si,ci]),Xr=g({type:z("array"),title:u().optional(),description:u().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:z("string"),enum:b(u())}),default:b(u()).optional()}),Qr=g({type:z("array"),title:u().optional(),description:u().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:u(),title:u()}))}),default:b(u()).optional()}),Xa=A([Xr,Qr]),Qa=A([li,ui,Xa]),dt=A([Qa,oi,ii,ai]),mt=c.extend({mode:z("form").optional(),message:u(),requestedSchema:g({type:z("object"),properties:j(u(),dt),required:b(u()).optional()}).catchall(B())}),di=c.extend({mode:z("url"),message:u(),elicitationId:u(),url:u().url()}),wt=A([mt,di]),es=l.extend({method:z("elicitation/create"),params:wt}),ts=d.extend({elicitationId:u()}),rs=m.extend({method:z("notifications/elicitation/complete"),params:ts}),ns=p.extend({action:te(["accept","decline","cancel"]),content:tr(De=>De===null?void 0:De,j(u(),A([u(),x(),M(),b(u())])).optional())}),os=g({type:z("ref/resource"),uri:u()}),is=g({type:z("ref/prompt"),name:u()}),as=s.extend({ref:A([is,os]),argument:g({name:u(),value:u()}),context:g({arguments:j(u(),u()).optional()}).optional()}),mi=l.extend({method:z("completion/complete"),params:as}),ss=p.extend({completion:Y({values:b(u()).max(100),total:F(x().int()),hasMore:F(M())})}),cs=g({uri:u().startsWith("file://"),name:u().optional(),_meta:j(u(),B()).optional()}),An=l.extend({method:z("roots/list"),params:s.optional()}),pi=p.extend({roots:b(cs)}),ls=m.extend({method:z("notifications/roots/list_changed"),params:d.optional()}),us=Y({ttl:x().optional(),pollInterval:x().optional()}),fi=te(["working","input_required","completed","failed","cancelled"]),hr=g({taskId:u(),status:fi,ttl:A([x(),Kt()]),createdAt:u(),lastUpdatedAt:u(),pollInterval:F(x()),statusMessage:F(u())}),et=p.extend({task:hr}),ds=d.merge(hr),en=m.extend({method:z("notifications/tasks/status"),params:ds}),Un=l.extend({method:z("tasks/get"),params:s.extend({taskId:u()})}),Mn=p.merge(hr),Dn=l.extend({method:z("tasks/result"),params:s.extend({taskId:u()})}),Id=p.loose(),Be=ct.extend({method:z("tasks/list")}),we=Fe.extend({tasks:b(hr)}),tn=l.extend({method:z("tasks/cancel"),params:s.extend({taskId:u()})});return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:o,TaskMetadataSchema:r,RelatedTaskMetadataSchema:i,RequestMetaSchema:a,BaseRequestParamsSchema:s,TaskAugmentedRequestParamsSchema:c,RequestSchema:l,NotificationsParamsSchema:d,NotificationSchema:m,ResultSchema:p,RequestIdSchema:f,EmptyResultSchema:h,CancelledNotificationParamsSchema:S,CancelledNotificationSchema:y,IconSchema:w,IconsSchema:T,BaseMetadataSchema:E,ImplementationSchema:K,ClientTasksCapabilitySchema:re,ServerTasksCapabilitySchema:oe,ClientCapabilitiesSchema:H,InitializeRequestParamsSchema:ve,InitializeRequestSchema:ye,ServerCapabilitiesSchema:ce,InitializeResultSchema:Ie,InitializedNotificationSchema:xe,PingRequestSchema:Ae,ProgressSchema:Ze,ProgressNotificationParamsSchema:Xe,ProgressNotificationSchema:gt,PaginatedRequestParamsSchema:Nt,PaginatedRequestSchema:ct,PaginatedResultSchema:Fe,ResourceContentsSchema:Gt,TextResourceContentsSchema:Wt,BlobResourceContentsSchema:Ue,RoleSchema:Ke,AnnotationsSchema:Je,ResourceSchema:kt,ResourceTemplateSchema:Kr,ListResourcesRequestSchema:lt,ListResourcesResultSchema:ut,ListResourceTemplatesRequestSchema:Qe,ListResourceTemplatesResultSchema:vt,ResourceRequestParamsSchema:_t,ReadResourceRequestParamsSchema:At,ReadResourceRequestSchema:Ut,ReadResourceResultSchema:mr,ResourceListChangedNotificationSchema:Mt,SubscribeRequestParamsSchema:Jr,SubscribeRequestSchema:D,UnsubscribeRequestParamsSchema:Dt,UnsubscribeRequestSchema:G,ResourceUpdatedNotificationParamsSchema:J,ResourceUpdatedNotificationSchema:ae,PromptArgumentSchema:q,PromptSchema:U,ListPromptsRequestSchema:Q,ListPromptsResultSchema:X,GetPromptRequestParamsSchema:Te,GetPromptRequestSchema:Br,TextContentSchema:Lt,ImageContentSchema:Hr,AudioContentSchema:Yr,ToolUseContentSchema:qo,EmbeddedResourceSchema:pr,ResourceLinkSchema:Vo,ContentBlockSchema:yt,PromptMessageSchema:xn,GetPromptResultSchema:En,PromptListChangedNotificationSchema:Gr,ToolAnnotationsSchema:Zo,ToolExecutionSchema:Pn,ToolSchema:Wr,ListToolsRequestSchema:On,ListToolsResultSchema:Cn,CallToolResultSchema:Nn,CallToolRequestParamsSchema:Me,CallToolRequestSchema:Fo,ToolListChangedNotificationSchema:Ga,LoggingLevelSchema:jn,SetLevelRequestParamsSchema:Ko,SetLevelRequestSchema:Jo,LoggingMessageNotificationParamsSchema:Bo,LoggingMessageNotificationSchema:Ho,ModelHintSchema:Yo,ModelPreferencesSchema:Go,ToolChoiceSchema:Wo,ToolResultContentSchema:Wa,SamplingContentSchema:Xo,SamplingMessageContentBlockSchema:fr,SamplingMessageSchema:Qo,CreateMessageRequestParamsSchema:ei,CreateMessageRequestSchema:ti,CreateMessageResultSchema:ri,CreateMessageResultWithToolsSchema:ni,BooleanSchemaSchema:oi,StringSchemaSchema:ii,NumberSchemaSchema:ai,UntitledSingleSelectEnumSchemaSchema:si,TitledSingleSelectEnumSchemaSchema:ci,LegacyTitledEnumSchemaSchema:li,SingleSelectEnumSchemaSchema:ui,UntitledMultiSelectEnumSchemaSchema:Xr,TitledMultiSelectEnumSchemaSchema:Qr,MultiSelectEnumSchemaSchema:Xa,EnumSchemaSchema:Qa,PrimitiveSchemaDefinitionSchema:dt,ElicitRequestFormParamsSchema:mt,ElicitRequestURLParamsSchema:di,ElicitRequestParamsSchema:wt,ElicitRequestSchema:es,ElicitationCompleteNotificationParamsSchema:ts,ElicitationCompleteNotificationSchema:rs,ElicitResultSchema:ns,ResourceTemplateReferenceSchema:os,PromptReferenceSchema:is,CompleteRequestParamsSchema:as,CompleteRequestSchema:mi,CompleteResultSchema:ss,RootSchema:cs,ListRootsRequestSchema:An,ListRootsResultSchema:pi,RootsListChangedNotificationSchema:ls,TaskCreationParamsSchema:us,TaskStatusSchema:fi,TaskSchema:hr,CreateTaskResultSchema:et,TaskStatusNotificationParamsSchema:ds,TaskStatusNotificationSchema:en,GetTaskRequestSchema:Un,GetTaskResultSchema:Mn,GetTaskPayloadRequestSchema:Dn,GetTaskPayloadResultSchema:Id,ListTasksRequestSchema:Be,ListTasksResultSchema:we,CancelTaskRequestSchema:tn,CancelTaskResultSchema:p.merge(hr),ClientRequestSchema:A([Ae,ye,mi,Jo,Br,Q,lt,Qe,Ut,D,G,Fo,On,Un,Dn,Be,tn]),ClientNotificationSchema:A([y,gt,xe,ls,en]),ClientResultSchema:A([h,ri,ni,ns,pi,Mn,we,et]),ServerRequestSchema:A([Ae,ti,es,An,Un,Dn,Be,tn]),ServerNotificationSchema:A([y,gt,Ho,ae,Mt,Ga,Gr,en,rs]),ServerResultSchema:A([h,Ie,ss,En,X,ut,vt,mr,Nn,Cn,Mn,we,et]),CallToolResultWireSchema:B().superRefine((De,KR)=>{if(!(typeof De!="object"||De===null||Array.isArray(De)||De.content!==void 0)){for(let R_ of C$)if(R_ in De){KR.addIssue({code:"custom",message:`content is required when the body carries \'${R_}\' \\u2014 another result family cannot default into an empty tools/call success`});return}}}).transform(Ev).pipe(Nn)}}var qx;function Pv(){return qx??=Lx()}function N$(e){return e.type!=="object"}var Vx=new Set(["const","enum","default","examples"]),Zx=new Set(["properties","patternProperties","$defs","definitions","dependentSchemas","dependencies"]);function f$(e){return e!==void 0&&!(typeof e=="string"&&e.startsWith("#"))}function Fx(e){let t=typeof e.$schema=="string"?e.$schema:void 0;if(f$(e.$id))return{...t!==void 0&&{$schema:t},type:"object",properties:{result:e},required:["result"]};let n=C_(e.$schema)&&e.$recursiveAnchor!==!0,o=(r,i)=>{if(Array.isArray(r))return r.map(c=>o(c,!1));if(r===null||typeof r!="object"||!i&&f$(r.$id))return r;let a={},s=!1;for(let[c,l]of Object.entries(r))i?a[c]=o(l,!1):(c==="$ref"||c==="$dynamicRef")&&typeof l=="string"?a[c]=l==="#"?"#/properties/result":l.startsWith("#/")?`#/properties/result${l.slice(1)}`:l:c==="$recursiveRef"&&l==="#"&&n?s=!0:Vx.has(c)?a[c]=l:Zx.has(c)?a[c]=o(l,!0):a[c]=o(l,!1);return s&&("$ref"in a?a.allOf=[...Array.isArray(a.allOf)?a.allOf:[],{$ref:"#/properties/result"}]:a.$ref="#/properties/result"),a};return{...t!==void 0&&{$schema:t},type:"object",properties:{result:o(e,!1)},required:["result"]}}var j$={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},A$={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},Kx={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},nd;function ld(){if(nd)return nd;let e=Pv();return nd={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}},nd}function Jx(){ld()}function U$(e){return Object.prototype.hasOwnProperty.call(j$,e)}function M$(e){return Object.prototype.hasOwnProperty.call(A$,e)}function Bx(e){return Object.prototype.hasOwnProperty.call(Kx,e)}function Hx(e){return Bx(e)?ld().resultSchemas[e]:void 0}function Yx(e){return U$(e)?ld().requestSchemas[e]:void 0}function Gx(e){return M$(e)?ld().notificationSchemas[e]:void 0}var rA=Object.keys(j$),nA=Object.keys(A$);function kv(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function od(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:"invalid",message:String(n.error)}}var h$={ok:!1,reason:"not-in-era"};function g$(e){return kv(e)&&kv(e.outputSchema)&&N$(e.outputSchema)}var Ov={era:"2025-11-25",hasRequestMethod:U$,hasNotificationMethod:M$,validateRequest:(e,t)=>od(Yx(e),t),validateResult:(e,t)=>od(Hx(e),t),validateNotification:(e,t)=>od(Gx(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>h$,validateInputResponse:()=>h$,samplingResultVariant:((e,t)=>{let n=Pv();return od(e?n.CreateMessageResultWithToolsSchema:n.CreateMessageResultSchema,t)}),outboundEnvelope:e=>{},validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let n=O$(e),o=n.structuredContent;if(o===void 0)return n;let r=typeof o!="object"||o===null||Array.isArray(o),i=t!==void 0&&N$(t);return!r&&!i?n:{...n,structuredContent:{result:o}}},decodeResult(e,t){if(kv(t)&&"resultType"in t){let n={...t};return delete n.resultType,{kind:"complete",result:n}}return{kind:"complete",result:t}},encodeResult(e,t){if(e!=="tools/list")return t;let n=t.tools;return!Array.isArray(n)||!n.some(o=>g$(o))?t:{...t,tools:n.map(o=>g$(o)?{...o,outputSchema:Fx(o.outputSchema)}:o)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>{}};function Wx(){let e=Or(()=>A([u(),x(),M(),Kt(),j(u(),e),b(e)])),t=j(u(),e),n=A([u(),x().int()]),o=u(),r=A([u(),x().int()]),i=te(["user","assistant"]),a=te(["debug","info","notice","warning","error","critical","alert","emergency"]),s=u().refine(we=>{try{return atob(we),!0}catch{return!1}},{message:"Invalid Base64 string"}),c=g({ttl:x().optional()}),l=g({taskId:u()}),d=Y({progressToken:n.optional(),"io.modelcontextprotocol/related-task":l.optional()}),m=g({_meta:d.optional()}),p=m.extend({task:c.optional()}),f=g({_meta:d.optional()}),h=g({method:u(),params:f.loose().optional()}),S=g({src:u(),mimeType:u().optional(),sizes:b(u()).optional(),theme:te(["light","dark"]).optional()}),y=g({icons:b(S).optional()}),w=g({name:u(),title:u().optional()}),T=w.extend({...w.shape,...y.shape,version:u(),websiteUrl:u().optional(),description:u().optional()}),E=Et(g({applyDefaults:M().optional()}),t),K=tr(we=>we&&typeof we=="object"&&!Array.isArray(we)&&Object.keys(we).length===0?{form:{}}:we,Et(g({form:E.optional(),url:t.optional()}),t.optional())),Z=Y({list:t.optional(),cancel:t.optional(),requests:Y({sampling:Y({createMessage:t.optional()}).optional(),elicitation:Y({create:t.optional()}).optional()}).optional()}),N=Y({list:t.optional(),cancel:t.optional(),requests:Y({tools:Y({call:t.optional()}).optional()}).optional()}),re=g({experimental:j(u(),t).optional(),sampling:g({context:t.optional(),tools:t.optional()}).optional(),elicitation:K.optional(),roots:g({listChanged:M().optional()}).optional(),tasks:Z.optional(),extensions:j(u(),t).optional()}),oe=g({experimental:j(u(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:g({listChanged:M().optional()}).optional(),resources:g({subscribe:M().optional(),listChanged:M().optional()}).optional(),tools:g({listChanged:M().optional()}).optional(),tasks:N.optional(),extensions:j(u(),t).optional()}),H=g({progress:x(),total:F(x()),message:F(u())}),ve=g({...f.shape,...H.shape,progressToken:n}),ye=h.extend({method:z("notifications/progress"),params:ve}),ce=f.extend({level:a,logger:u().optional(),data:B()}),Ie=h.extend({method:z("notifications/message"),params:ce}),xe=g({uri:u(),mimeType:F(u()),_meta:j(u(),B()).optional()}),Ae=xe.extend({text:u()}),Ze=xe.extend({blob:s}),Xe=g({audience:b(i).optional(),priority:x().min(0).max(1).optional(),lastModified:$t.datetime({offset:!0}).optional()}),gt=g({...w.shape,...y.shape,uri:u(),description:F(u()),mimeType:F(u()),size:F(x()),annotations:Xe.optional(),_meta:F(Y({}))}),Nt=g({...w.shape,...y.shape,uriTemplate:u(),description:F(u()),mimeType:F(u()),annotations:Xe.optional(),_meta:F(Y({}))}),ct=h.extend({method:z("notifications/resources/list_changed"),params:f.optional()}),Fe=f.extend({uri:u()}),Gt=h.extend({method:z("notifications/resources/updated"),params:Fe}),Wt=g({name:u(),description:F(u()),required:F(M())}),jt=g({...w.shape,...y.shape,description:F(u()),arguments:F(b(Wt)),_meta:F(Y({}))}),Ue=h.extend({method:z("notifications/prompts/list_changed"),params:f.optional()}),Ke=g({type:z("text"),text:u(),annotations:Xe.optional(),_meta:j(u(),B()).optional()}),Je=g({type:z("image"),data:s,mimeType:u(),annotations:Xe.optional(),_meta:j(u(),B()).optional()}),kt=g({type:z("audio"),data:s,mimeType:u(),annotations:Xe.optional(),_meta:j(u(),B()).optional()}),Kr=g({type:z("tool_use"),name:u(),id:u(),input:j(u(),B()),_meta:j(u(),B()).optional()}),lt=g({type:z("resource"),resource:A([Ae,Ze]),annotations:Xe.optional(),_meta:j(u(),B()).optional()}),ut=gt.extend({type:z("resource_link")}),Qe=A([Ke,Je,kt,ut,lt]),vt=g({role:i,content:Qe}),_t=g({title:u().optional(),readOnlyHint:M().optional(),destructiveHint:M().optional(),idempotentHint:M().optional(),openWorldHint:M().optional()}),At=h.extend({method:z("notifications/tools/list_changed"),params:f.optional()}),Ut=g({name:u().optional()}),mr=g({hints:b(Ut).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),Mt=g({mode:te(["auto","required","none"]).optional()}),Jr=g({type:z("boolean"),title:u().optional(),description:u().optional(),default:M().optional()}),D=g({type:z("string"),title:u().optional(),description:u().optional(),minLength:x().optional(),maxLength:x().optional(),format:te(["email","uri","date","date-time"]).optional(),default:u().optional()}),Dt=g({type:te(["number","integer"]),title:u().optional(),description:u().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),G=g({type:z("string"),title:u().optional(),description:u().optional(),enum:b(u()),default:u().optional()}),J=g({type:z("string"),title:u().optional(),description:u().optional(),oneOf:b(g({const:u(),title:u()})),default:u().optional()}),ae=g({type:z("string"),title:u().optional(),description:u().optional(),enum:b(u()),enumNames:b(u()).optional(),default:u().optional()}),q=A([G,J]),U=g({type:z("array"),title:u().optional(),description:u().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:z("string"),enum:b(u())}),default:b(u()).optional()}),Q=g({type:z("array"),title:u().optional(),description:u().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:u(),title:u()}))}),default:b(u()).optional()}),X=A([U,Q]),Te=A([ae,q,X]),Br=A([Te,Jr,D,Dt]),Lt=p.extend({mode:z("form").optional(),message:u(),requestedSchema:g({type:z("object"),properties:j(u(),Br),required:b(u()).optional()}).catchall(B())}),Hr=g({type:z("ref/resource"),uri:u()}),Yr=g({type:z("ref/prompt"),name:u()}),qo=g({uri:u().startsWith("file://"),name:u().optional(),_meta:j(u(),B()).optional()}),pr=re.shape,Vo=g({experimental:pr.experimental,sampling:pr.sampling,elicitation:pr.elicitation,roots:pr.roots,extensions:pr.extensions}),yt=oe.shape,xn=g({experimental:yt.experimental,logging:yt.logging,completions:yt.completions,prompts:yt.prompts,resources:yt.resources,tools:yt.tools,extensions:yt.extensions}),En=Y({progressToken:n.optional(),[zt]:u(),[Sn]:T.optional(),[Bt]:Vo,[Nr]:a.optional()}),Gr=g({...w.shape,...y.shape,description:u().optional(),inputSchema:Y({$schema:u().optional(),type:z("object")}),outputSchema:Y({$schema:u().optional()}).optional(),annotations:_t.optional(),_meta:j(u(),B()).optional()}),Zo=g({type:z("tool_result"),toolUseId:u(),content:b(Qe),structuredContent:B().optional(),isError:M().optional(),_meta:j(u(),B()).optional()}),Pn=A([Ke,Je,kt,Kr,Zo]),Wr=g({role:i,content:A([Pn,b(Pn)]),_meta:j(u(),B()).optional()}),On=u(),Cn=Y({[Jt]:T.optional().catch(void 0)}),Nn=Cn.optional();function Me(we){return Y({_meta:Nn,resultType:On.default("complete"),...we})}let Fo=Me({}),Ga=Me({nextCursor:o.optional()}),jn=Me({content:b(Qe),structuredContent:B().optional(),isError:M().optional()}),Ko=Me({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),tools:b(Gr),nextCursor:o.optional()}),Jo=Me({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),prompts:b(jt),nextCursor:o.optional()}),Bo=Me({description:u().optional(),messages:b(vt)}),Ho=Me({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),resources:b(gt),nextCursor:o.optional()}),Yo=Me({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),resourceTemplates:b(Nt),nextCursor:o.optional()}),Go=Me({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),contents:b(A([Ae,Ze]))}),Wo=Me({completion:g({values:b(u()).max(100),total:x().int().optional(),hasMore:M().optional()}).loose()}),Wa=Me({ttlMs:x().int().min(0),cacheScope:te(["public","private"])}),Xo=Me({ttlMs:x().int().min(0).catch(0),cacheScope:te(["public","private"]).catch("private"),supportedVersions:b(u()),capabilities:xn,instructions:u().optional()}),fr=g({messages:b(Wr),modelPreferences:mr.optional(),systemPrompt:u().optional(),includeContext:te(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(u()).optional(),metadata:t.optional(),tools:b(Gr).optional(),toolChoice:Mt.optional()}),Qo=g({method:z("sampling/createMessage"),params:fr}),ei=g({method:z("roots/list"),params:g({_meta:j(u(),B()).optional()}).optional()}),ti=g({...Wr.shape,model:u(),stopReason:u().optional()}),ri=g({roots:b(qo)}),ni=g({action:te(["accept","decline","cancel"]),content:j(u(),A([u(),x(),M(),b(u())])).optional()}),oi=g({mode:z("url"),message:u(),url:u().url()}),ii=A([Lt,oi]),ai=g({method:z("elicitation/create"),params:ii}),si=A([Qo,ei,ai]),ci=A([ti,ri,ni]),li=j(u(),si),ui=j(u(),ci),Xr=Me({inputRequests:li.optional(),requestState:u().optional()}),Qr={inputResponses:ui.optional(),requestState:u().optional()},Xa=g({_meta:En,...Qr}),Qa=Y({progressToken:n.optional()});function dt(we,tn){return g({method:z(we),params:g({_meta:En,...tn})})}function mt(we,tn){return g({method:z(we),params:g({_meta:Qa.optional(),...tn}).optional()})}let di={name:u(),arguments:j(u(),B()).optional(),...Qr},wt={cursor:o.optional()},es=dt("tools/call",di),ts=dt("tools/list",wt),rs=dt("prompts/list",wt),ns=dt("prompts/get",{name:u(),arguments:j(u(),u()).optional(),...Qr}),os=dt("resources/list",wt),is=dt("resources/templates/list",wt),as=dt("resources/read",{uri:u(),...Qr}),mi={ref:A([Yr,Hr]),argument:g({name:u(),value:u()}),context:g({arguments:j(u(),u()).optional()}).optional()},ss=dt("completion/complete",mi),cs=dt("server/discover",{}),An=g({toolsListChanged:M().optional(),promptsListChanged:M().optional(),resourcesListChanged:M().optional(),resourceSubscriptions:b(u()).optional()}),pi={notifications:An},ls=dt("subscriptions/listen",pi),us=Cn.extend({"io.modelcontextprotocol/subscriptionId":r}),fi=Y({_meta:us,resultType:On.default("complete")}),hr={"tools/call":mt("tools/call",di),"tools/list":mt("tools/list",wt),"prompts/get":mt("prompts/get",{name:u(),arguments:j(u(),u()).optional()}),"prompts/list":mt("prompts/list",wt),"resources/list":mt("resources/list",wt),"resources/templates/list":mt("resources/templates/list",wt),"resources/read":mt("resources/read",{uri:u()}),"completion/complete":mt("completion/complete",mi),"server/discover":mt("server/discover",{}),"subscriptions/listen":mt("subscriptions/listen",pi)};function et(we){return Y({_meta:Nn,...we})}let ds={"tools/call":et({content:b(Qe),structuredContent:B().optional(),isError:M().optional()}),"tools/list":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),tools:b(Gr),nextCursor:o.optional()}),"prompts/get":et({description:u().optional(),messages:b(vt)}),"prompts/list":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),prompts:b(jt),nextCursor:o.optional()}),"resources/list":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),resources:b(gt),nextCursor:o.optional()}),"resources/templates/list":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),resourceTemplates:b(Nt),nextCursor:o.optional()}),"resources/read":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),contents:b(A([Ae,Ze]))}),"completion/complete":et({completion:g({values:b(u()).max(100),total:x().int().optional(),hasMore:M().optional()}).loose()}),"server/discover":et({ttlMs:x().int().min(0).catch(0),cacheScope:te(["public","private"]).catch("private"),supportedVersions:b(u()),capabilities:xn,instructions:u().optional()}),"subscriptions/listen":et({})},en=Y({"io.modelcontextprotocol/subscriptionId":r.optional()}),Un=g({method:z("notifications/subscriptions/acknowledged"),params:g({_meta:en.optional(),notifications:An})}),Mn=g({_meta:en.optional(),requestId:r,reason:u().optional()}),Dn=g({method:z("notifications/cancelled"),params:Mn}),Id={"notifications/cancelled":Dn,"notifications/progress":ye,"notifications/message":Ie,"notifications/resources/updated":Gt,"notifications/resources/list_changed":ct,"notifications/tools/list_changed":At,"notifications/prompts/list_changed":Ue,"notifications/subscriptions/acknowledged":Un},Be=we=>g({jsonrpc:z("2.0"),id:A([u(),x().int()]),result:we}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:o,RequestIdSchema:r,RoleSchema:i,LoggingLevelSchema:a,TaskMetadataSchema:c,RelatedTaskMetadataSchema:l,RequestMetaSchema:d,BaseRequestParamsSchema:m,TaskAugmentedRequestParamsSchema:p,NotificationsParamsSchema:f,NotificationSchema:h,IconSchema:S,IconsSchema:y,BaseMetadataSchema:w,ImplementationSchema:T,ClientTasksCapabilitySchema:Z,ServerTasksCapabilitySchema:N,ClientCapabilitiesSchema:re,ServerCapabilitiesSchema:oe,ProgressSchema:H,ProgressNotificationParamsSchema:ve,ProgressNotificationSchema:ye,LoggingMessageNotificationParamsSchema:ce,LoggingMessageNotificationSchema:Ie,ResourceContentsSchema:xe,TextResourceContentsSchema:Ae,BlobResourceContentsSchema:Ze,AnnotationsSchema:Xe,ResourceSchema:gt,ResourceTemplateSchema:Nt,ResourceListChangedNotificationSchema:ct,ResourceUpdatedNotificationParamsSchema:Fe,ResourceUpdatedNotificationSchema:Gt,PromptArgumentSchema:Wt,PromptSchema:jt,PromptListChangedNotificationSchema:Ue,TextContentSchema:Ke,ImageContentSchema:Je,AudioContentSchema:kt,ToolUseContentSchema:Kr,EmbeddedResourceSchema:lt,ResourceLinkSchema:ut,ContentBlockSchema:Qe,PromptMessageSchema:vt,ToolAnnotationsSchema:_t,ToolListChangedNotificationSchema:At,ModelHintSchema:Ut,ModelPreferencesSchema:mr,ToolChoiceSchema:Mt,BooleanSchemaSchema:Jr,StringSchemaSchema:D,NumberSchemaSchema:Dt,UntitledSingleSelectEnumSchemaSchema:G,TitledSingleSelectEnumSchemaSchema:J,LegacyTitledEnumSchemaSchema:ae,SingleSelectEnumSchemaSchema:q,UntitledMultiSelectEnumSchemaSchema:U,TitledMultiSelectEnumSchemaSchema:Q,MultiSelectEnumSchemaSchema:X,EnumSchemaSchema:Te,PrimitiveSchemaDefinitionSchema:Br,ElicitRequestFormParamsSchema:Lt,ResourceTemplateReferenceSchema:Hr,PromptReferenceSchema:Yr,RootSchema:qo,ClientCapabilities2026Schema:Vo,ServerCapabilities2026Schema:xn,RequestMetaEnvelopeSchema:En,ToolSchema:Gr,ToolResultContentSchema:Zo,SamplingMessageContentBlockSchema:Pn,SamplingMessageSchema:Wr,ResultTypeSchema:On,ResultMetaSchema:Cn,ResultSchema:Fo,PaginatedResultSchema:Ga,CallToolResultSchema:jn,ListToolsResultSchema:Ko,ListPromptsResultSchema:Jo,GetPromptResultSchema:Bo,ListResourcesResultSchema:Ho,ListResourceTemplatesResultSchema:Yo,ReadResourceResultSchema:Go,CompleteResultSchema:Wo,CacheableResultSchema:Wa,DiscoverResultSchema:Xo,CreateMessageRequestParamsSchema:fr,CreateMessageRequestSchema:Qo,ListRootsRequestSchema:ei,CreateMessageResultSchema:ti,ListRootsResultSchema:ri,ElicitResultSchema:ni,ElicitRequestURLParamsSchema:oi,ElicitRequestParamsSchema:ii,ElicitRequestSchema:ai,InputRequestSchema:si,InputResponseSchema:ci,InputRequestsSchema:li,InputResponsesSchema:ui,InputRequiredResultSchema:Xr,InputResponseRequestParamsSchema:Xa,CallToolRequestSchema:es,ListToolsRequestSchema:ts,ListPromptsRequestSchema:rs,GetPromptRequestSchema:ns,ListResourcesRequestSchema:os,ListResourceTemplatesRequestSchema:is,ReadResourceRequestSchema:as,CompleteRequestSchema:ss,DiscoverRequestSchema:cs,SubscriptionFilterSchema:An,SubscriptionsListenRequestSchema:ls,SubscriptionsListenResultMetaSchema:us,SubscriptionsListenResultSchema:fi,dispatchRequestSchemas:hr,dispatchResultSchemas:ds,NotificationMetaSchema:en,SubscriptionsAcknowledgedNotificationSchema:Un,CancelledNotificationParamsSchema:Mn,CancelledNotificationSchema:Dn,notificationSchemas2026:Id,JSONRPCResultResponseSchema:Be(Fo),CallToolResultResponseSchema:Be(A([jn,Xr])),ListToolsResultResponseSchema:Be(Ko),ListPromptsResultResponseSchema:Be(Jo),GetPromptResultResponseSchema:Be(A([Bo,Xr])),ListResourcesResultResponseSchema:Be(Ho),ListResourceTemplatesResultResponseSchema:Be(Yo),ReadResourceResultResponseSchema:Be(A([Go,Xr])),CompleteResultResponseSchema:Be(Wo),DiscoverResultResponseSchema:Be(Xo),SubscriptionsListenResultResponseSchema:Be(fi)}}var Xx;function or(){return Xx??=Wx()}var Qx=["tools/list","prompts/list","resources/list","resources/templates/list","resources/read","server/discover"];function eE(e){return Qx.includes(e)}var jo=Symbol("modelcontextprotocol.resultCacheHintFallback");function ud(e,t){if(t===void 0)return e;let n=e[jo];if(n===void 0)return{...e,[jo]:t};let o={},r=n.ttlMs??t.ttlMs;r!==void 0&&(o.ttlMs=r);let i=n.cacheScope??t.cacheScope;return i!==void 0&&(o.cacheScope=i),{...e,[jo]:o}}function tE(e){return e[jo]}function Cv(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function Nv(e){return e==="public"||e==="private"}function jv(e,t){if(e.ttlMs!==void 0&&!Cv(e.ttlMs))throw new RangeError(`Invalid cache hint for ${t}: ttlMs must be a non-negative safe integer (got ${String(e.ttlMs)})`);if(e.cacheScope!==void 0&&!Nv(e.cacheScope))throw new RangeError(`Invalid cache hint for ${t}: cacheScope must be \'public\' or \'private\' (got ${String(e.cacheScope)})`)}var C=(function(e){return e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.ResourceNotFound=-32002]="ResourceNotFound",e[e.MissingRequiredClientCapability=-32021]="MissingRequiredClientCapability",e[e.UnsupportedProtocolVersion=-32022]="UnsupportedProtocolVersion",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired",e})({}),V=class D$ extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ProtocolError"})}static[Symbol.hasInstance](t){return Uo(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Uo(this,t)}constructor(t,n,o){super(n),this.code=t,this.data=o,this.name="ProtocolError",Tv(this,new.target)}static fromError(t,n,o){if(t===C.UrlElicitationRequired&&o){let r=o;if(r.elicitations)return new L$(r.elicitations,n)}if(t===C.UnsupportedProtocolVersion&&o){let r=o;if(Array.isArray(r.supported)&&typeof r.requested=="string")return new md({supported:r.supported,requested:r.requested},n)}if(t===C.InvalidParams||t===C.ResourceNotFound){let r=o;if(typeof r?.uri=="string"&&(t===C.ResourceNotFound||Object.keys(r).length===1))return new dd(r.uri,n)}if(t===C.MissingRequiredClientCapability&&o){let r=o;if(r.requiredCapabilities!==null&&typeof r.requiredCapabilities=="object"&&!Array.isArray(r.requiredCapabilities))return new qa({requiredCapabilities:r.requiredCapabilities},n)}return new D$(t,n,o)}},dd=class extends V{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ResourceNotFoundError"})}constructor(e,t=`Resource not found: ${e}`){super(C.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},L$=class extends V{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UrlElicitationRequiredError"})}constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(C.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},md=class extends V{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UnsupportedProtocolVersionError"})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(C.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},qa=class extends V{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.MissingRequiredClientCapabilityError"})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(", ")}`){super(C.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},rE=0,nE="private",oE=["tools/call","prompts/get","resources/read"];function iE(e,t){let n=t.resultType;if(n===void 0)return{...t,resultType:"complete"};if(n==="complete"||oE.includes(e))return t;throw new V(C.InternalError,`Handler for ${e} returned resultType \'${String(n)}\', but results of ${e} only support \'complete\' on protocol revision 2026-07-28`)}function aE(e,t){let n=tE(t);if(t.resultType!=="complete"||!eE(e))return n===void 0?t:dE(t);let o=t,r=Cv(o.ttlMs)?o.ttlMs:lE(n),i=Nv(o.cacheScope)?o.cacheScope:uE(n),a={...o,ttlMs:r,cacheScope:i};return delete a[jo],a}function sE(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function cE(e,t){if(t===void 0)return e;let n=e._meta;return n===void 0?{...e,_meta:{[Jt]:t}}:!sE(n)||n[Jt]!==void 0?e:{...e,_meta:{...n,[Jt]:t}}}function lE(e){return e!==void 0&&Cv(e.ttlMs)?e.ttlMs:rE}function uE(e){return e!==void 0&&Nv(e.cacheScope)?e.cacheScope:nE}function dE(e){let t={...e};return delete t[jo],t}var mE=["elicitation/create","sampling/createMessage","roots/list"],id;function Av(){if(id)return id;let e=or();return id={request:{"elicitation/create":g({method:z("elicitation/create"),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":g({method:z("sampling/createMessage"),params:e.CreateMessageRequestParamsSchema}),"roots/list":g({method:z("roots/list"),params:Y({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},id}function pE(){Av()}function q$(e){return mE.includes(e)}function Sv(e){return q$(e)?Av().request[e]:void 0}function fE(e){return q$(e)?Av().response[e]:void 0}var Uv={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},V$={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function Z$(e){return Object.prototype.hasOwnProperty.call(Uv,e)}function F$(e){return Object.prototype.hasOwnProperty.call(V$,e)}function hE(e){return Object.prototype.hasOwnProperty.call(Uv,e)}function gE(e){return Z$(e)?or().dispatchRequestSchemas[e]:void 0}function vE(e){return hE(e)?or().dispatchResultSchemas[e]:void 0}function _E(e){return F$(e)?or().notificationSchemas2026[e]:void 0}var oA=Object.keys(Uv),iA=Object.keys(V$);function Na(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Oa(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:"invalid",message:String(n.error)}}var yE={ok:!1,reason:"not-in-era"},SE=[zt,Bt];function bE(e,t){let n=t,o=!1,r=()=>(o||(n={...n},o=!0),n),i=t.tools;e==="tools/list"&&Array.isArray(i)&&i.some(s=>Na(s)&&"execution"in s)&&(r().tools=i.map(s=>{if(!Na(s)||!("execution"in s))return s;let c={...s};return delete c.execution,c}));let a=t.capabilities;if(Na(a)&&"tasks"in a){let s={...a};delete s.tasks,r().capabilities=s}return n}var Mv={era:"2026-07-28",hasRequestMethod:Z$,hasNotificationMethod:F$,hasInputRequestMethod:e=>Sv(e)!==void 0,validateRequest:(e,t)=>Oa(gE(e),t),validateResult:(e,t)=>Oa(vE(e),t),validateNotification:(e,t)=>Oa(_E(e),t),validateInputRequest:(e,t)=>Oa(Sv(e),t),validateInputResponse:(e,t)=>Oa(fE(e),t),samplingResultVariant:()=>yE,outboundEnvelope(e){return{[zt]:e.protocolVersion,[Sn]:e.clientInfo,[Bt]:e.clientCapabilities,...e.logLevel!==void 0&&{[Nr]:e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let o of SE)o in e||t.push({key:o,problem:"missing"});let n=or().RequestMetaEnvelopeSchema.safeParse(e);if(!n.success)for(let o of n.error.issues){let r=o.path.map(String),i=r.length>0?r.join("."):"_meta";r.length===1&&t.some(a=>a.key===i&&a.problem==="missing")||t.push({key:i,problem:o.message})}return t},projectCallToolResult:e=>O$(e),inputRequestSchema:Sv,decodeResult(e,t){if(!Na(t))return{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let n=t.resultType;if(n===void 0)return{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: missing required resultType \\u2014 servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:"missing-resultType"})};if(typeof n!="string")return{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:n})};if(n==="input_required"){let a=t.inputRequests,s=Na(a)?a:{},c=t.requestState,l=t._meta===void 0?void 0:or().ResultMetaSchema.safeParse(t._meta),d=l?.success?l.data:void 0;return Object.keys(s).length===0&&typeof c!="string"?{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:"input-required-missing-both"})}:{kind:"input_required",inputRequests:s,...typeof c=="string"&&{requestState:c},...d!==void 0&&{_meta:d}}}if(n!=="complete")return{kind:"invalid",error:new ne(se.UnsupportedResultType,`Unsupported result type \'${n}\' for ${e}`,{resultType:n,method:e})};let o=K$(),r=Object.hasOwn(o,e)?o[e]:void 0;if(r!==void 0){let a=r.safeParse(t);if(!a.success)return{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: ${a.error}`,{method:e})}}let i={...t};return delete i.resultType,{kind:"complete",result:i}},encodeResult(e,t,n){return cE(aE(e,iE(e,bE(e,t))),n)},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope(e){if(e.envelope===void 0)return"Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)";let t=or().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(n=>n.message).join("; ")}`}},ad;function K$(){if(ad)return ad;let e=or();return ad={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema},ad}function $E(){K$()}var Va="2026-07-28";function Vr(e){return e!==void 0&&ar(e)?Mv:Ov}function v$(e){return e.revision!==void 0?Vr(e.revision).era:e.era==="modern"?Mv.era:Ov.era}function bv(e){return J$.some(t=>t.hasRequestMethod(e))}function $v(e){return J$.some(t=>t.hasNotificationMethod(e))}function _$(e){return e==="tasks/get"||e==="tasks/cancel"}var J$=[Ov,Mv];function y$(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Zr(e){if(!y$(e))return;let t=e._meta;return y$(t)?t:void 0}function pd(e){let t=Zr(e);return t!==void 0&&zt in t}function Dv(e){let t=Zr(e)?.[zt];return typeof t=="string"?t:void 0}function cd(e){return Vr(Va).validateEnvelopeMeta(e)}var zE=E_({AnnotationsSchema:()=>nr,AudioContentSchema:()=>xo,BaseMetadataSchema:()=>rr,BaseRequestParamsSchema:()=>Ce,BlobResourceContentsSchema:()=>Sa,BooleanSchemaSchema:()=>ka,CallToolRequestParamsSchema:()=>gu,CallToolRequestSchema:()=>vu,CallToolResultSchema:()=>Ra,CancelTaskRequestSchema:()=>ov,CancelTaskResultSchema:()=>iv,CancelledNotificationParamsSchema:()=>Sl,CancelledNotificationSchema:()=>pa,ClientCapabilitiesSchema:()=>Rl,ClientNotificationSchema:()=>sv,ClientRequestSchema:()=>av,ClientResultSchema:()=>cv,ClientTasksCapabilitySchema:()=>$l,CompatibilityCallToolResultSchema:()=>Bg,CompleteRequestParamsSchema:()=>Fu,CompleteRequestSchema:()=>Ku,CompleteResultSchema:()=>Ju,ContentBlockSchema:()=>Eo,CreateMessageRequestParamsSchema:()=>xu,CreateMessageRequestSchema:()=>Eu,CreateMessageResultSchema:()=>Pu,CreateMessageResultWithToolsSchema:()=>Ou,CreateTaskResultSchema:()=>Gg,CursorSchema:()=>sa,DiscoverRequestSchema:()=>Tl,DiscoverResultSchema:()=>xl,ElicitRequestFormParamsSchema:()=>Co,ElicitRequestParamsSchema:()=>Uu,ElicitRequestSchema:()=>Mu,ElicitRequestURLParamsSchema:()=>Au,ElicitResultSchema:()=>qu,ElicitationCompleteNotificationParamsSchema:()=>Du,ElicitationCompleteNotificationSchema:()=>Lu,EmbeddedResourceSchema:()=>su,EmptyResultSchema:()=>ma,EnumSchemaSchema:()=>ju,GetPromptRequestParamsSchema:()=>ou,GetPromptRequestSchema:()=>iu,GetPromptResultSchema:()=>uu,GetTaskPayloadRequestSchema:()=>ev,GetTaskPayloadResultSchema:()=>tv,GetTaskRequestSchema:()=>Xg,GetTaskResultSchema:()=>Qg,IconSchema:()=>bl,IconsSchema:()=>Ar,ImageContentSchema:()=>To,ImplementationSchema:()=>ko,InitializeRequestParamsSchema:()=>kl,InitializeRequestSchema:()=>fa,InitializeResultSchema:()=>wl,InitializedNotificationSchema:()=>Il,JSONArraySchema:()=>Fg,JSONObjectSchema:()=>ze,JSONRPCErrorResponseSchema:()=>zo,JSONRPCMessageSchema:()=>Ro,JSONRPCNotificationSchema:()=>da,JSONRPCRequestSchema:()=>ua,JSONRPCResponseSchema:()=>Kg,JSONRPCResultResponseSchema:()=>$o,JSONValueSchema:()=>Cr,LegacyTitledEnumSchemaSchema:()=>Ta,ListChangedOptionsBaseSchema:()=>Hg,ListPromptsRequestSchema:()=>ru,ListPromptsResultSchema:()=>nu,ListResourceTemplatesRequestSchema:()=>Al,ListResourceTemplatesResultSchema:()=>Ul,ListResourcesRequestSchema:()=>Nl,ListResourcesResultSchema:()=>jl,ListRootsRequestSchema:()=>Hu,ListRootsResultSchema:()=>Yu,ListTasksRequestSchema:()=>rv,ListTasksResultSchema:()=>nv,ListToolsRequestSchema:()=>fu,ListToolsResultSchema:()=>hu,LoggingLevelSchema:()=>Lr,LoggingMessageNotificationParamsSchema:()=>bu,LoggingMessageNotificationSchema:()=>$u,ModelHintSchema:()=>zu,ModelPreferencesSchema:()=>Ru,MultiSelectEnumSchemaSchema:()=>Nu,NotificationSchema:()=>qe,NotificationsParamsSchema:()=>Le,NumberSchemaSchema:()=>Oo,PaginatedRequestParamsSchema:()=>Ol,PaginatedRequestSchema:()=>Ur,PaginatedResultSchema:()=>Mr,PingRequestSchema:()=>ga,PrimitiveSchemaDefinitionSchema:()=>Pa,ProgressNotificationParamsSchema:()=>Pl,ProgressNotificationSchema:()=>va,ProgressSchema:()=>El,ProgressTokenSchema:()=>aa,PromptArgumentSchema:()=>eu,PromptListChangedNotificationSchema:()=>du,PromptMessageSchema:()=>lu,PromptReferenceSchema:()=>Zu,PromptSchema:()=>tu,ReadResourceRequestParamsSchema:()=>Ml,ReadResourceRequestSchema:()=>Dl,ReadResourceResultSchema:()=>Ll,RelatedTaskMetadataSchema:()=>yl,RequestIdSchema:()=>jr,RequestMetaSchema:()=>ca,RequestSchema:()=>Re,ResourceContentsSchema:()=>_a,ResourceLinkSchema:()=>cu,ResourceListChangedNotificationSchema:()=>ql,ResourceRequestParamsSchema:()=>wo,ResourceSchema:()=>ba,ResourceTemplateReferenceSchema:()=>Vu,ResourceTemplateSchema:()=>Cl,ResourceUpdatedNotificationParamsSchema:()=>Xl,ResourceUpdatedNotificationSchema:()=>Ql,ResultMetaObjectSchema:()=>la,ResultSchema:()=>ke,RoleSchema:()=>Dr,RootSchema:()=>Bu,RootsListChangedNotificationSchema:()=>Gu,SamplingContentSchema:()=>Iu,SamplingMessageContentBlockSchema:()=>_n,SamplingMessageSchema:()=>Tu,ServerCapabilitiesSchema:()=>ha,ServerNotificationSchema:()=>uv,ServerRequestSchema:()=>lv,ServerResultSchema:()=>dv,ServerTasksCapabilitySchema:()=>zl,SetLevelRequestParamsSchema:()=>yu,SetLevelRequestSchema:()=>Su,SingleSelectEnumSchemaSchema:()=>Cu,StringSchemaSchema:()=>Po,SubscribeRequestParamsSchema:()=>Vl,SubscribeRequestSchema:()=>Zl,SubscriptionFilterSchema:()=>$a,SubscriptionsAcknowledgedNotificationParamsSchema:()=>Hl,SubscriptionsAcknowledgedNotificationSchema:()=>Yl,SubscriptionsListenRequestParamsSchema:()=>Jl,SubscriptionsListenRequestSchema:()=>Bl,SubscriptionsListenResultMetaSchema:()=>Gl,SubscriptionsListenResultSchema:()=>Wl,TaskAugmentedRequestParamsSchema:()=>zn,TaskCreationParamsSchema:()=>Yg,TaskMetadataSchema:()=>_l,TaskSchema:()=>qr,TaskStatusNotificationParamsSchema:()=>Xu,TaskStatusNotificationSchema:()=>Wg,TaskStatusSchema:()=>Wu,TextContentSchema:()=>Io,TextResourceContentsSchema:()=>ya,TitledMultiSelectEnumSchemaSchema:()=>Ea,TitledSingleSelectEnumSchemaSchema:()=>Ia,ToolAnnotationsSchema:()=>mu,ToolChoiceSchema:()=>ku,ToolExecutionSchema:()=>pu,ToolListChangedNotificationSchema:()=>_u,ToolResultContentSchema:()=>wu,ToolSchema:()=>za,ToolUseContentSchema:()=>au,UnsubscribeRequestParamsSchema:()=>Fl,UnsubscribeRequestSchema:()=>Kl,UntitledMultiSelectEnumSchemaSchema:()=>xa,UntitledSingleSelectEnumSchemaSchema:()=>wa});var Ht=e=>ua.safeParse(e).success,fd=e=>da.safeParse(e).success,ir=e=>$o.safeParse(e).success,sr=e=>zo.safeParse(e).success;var cr=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.resultType==="input_required";var Lv=e=>fa.safeParse(e).success;function qv(e){if(e.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function Vv(e){if(e.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}var RE="Mcp-Param-",S$="x-mcp-header",kE=/^[!#$%&\'*+\\-.^_`|~0-9A-Za-z]+$/,wE=new Set(["string","integer","boolean","number"]);function hd(e){let t=[],n=new Map,o=(i,a,s)=>{if(i===null||typeof i!="object")return;let c=i;if(S$ in c){if(!s||a.length===0)return`${No(a)}: x-mcp-header is only permitted on properties statically reachable via a chain of \'properties\' keys (not under items, additionalProperties, oneOf/anyOf/allOf/not, if/then/else, or $ref)`;let d=c[S$];if(typeof d!="string"||d.length===0)return`${No(a)}: x-mcp-header MUST be a non-empty string`;if(!kE.test(d))return`${No(a)}: x-mcp-header \'${d}\' is not a valid RFC 9110 token (no spaces, control characters or HTTP delimiters)`;let m=typeof c.type=="string"?c.type:void 0;if(m===void 0||!wE.has(m))return`${No(a)}: x-mcp-header is only permitted on primitive-typed properties (string, integer, boolean); got ${m??"<none>"}`;let p=d.toLowerCase(),f=n.get(p);if(f!==void 0)return`x-mcp-header \'${d}\' is not case-insensitively unique (also declared as \'${f}\')`;n.set(p,d),t.push({path:a,headerName:d,type:m})}let l=c.properties;if(l!==null&&typeof l=="object")for(let[d,m]of Object.entries(l)){let p=o(m,[...a,d],s);if(p!==void 0)return p}for(let d of IE){let m=c[d];if(m===void 0)continue;let p=Array.isArray(m)?m:m!==null&&typeof m=="object"&&TE.has(d)?Object.values(m):[m];for(let f of p){let h=o(f,[...a,`<${d}>`],!1);if(h!==void 0)return h}}},r=o(e,[],!0);return r===void 0?{valid:!0,declarations:t}:{valid:!1,reason:r}}var IE=["items","prefixItems","contains","additionalProperties","unevaluatedProperties","unevaluatedItems","propertyNames","patternProperties","dependentSchemas","oneOf","anyOf","allOf","not","if","then","else","$defs","definitions"],TE=new Set(["patternProperties","dependentSchemas","$defs","definitions"]);function No(e){return e.length===0?"<root>":e.join(".")}var xE="=?base64?",EE="?=",PE=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,OE=/^-?\\d+(\\.\\d+)?$/;function CE(e){if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(typeof e=="number")return!Number.isFinite(e)||Number.isInteger(e)&&!Number.isSafeInteger(e)?void 0:String(e)}function NE(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.codePointAt(o);return new TextDecoder("utf-8",{fatal:!0}).decode(n)}function B$(e){if(!(e.startsWith(xE)&&e.endsWith(EE)))return e;let t=e.slice(9,e.length-2);if(PE.test(t))try{return NE(t)}catch{return}}function jE(e,t){let n=e;for(let o of t){if(n===null||typeof n!="object")return;n=n[o]}return n}function H$(e,t,n){for(let o of e){let r=`${RE}${o.headerName}`,i=n.get(r),a=jE(t,o.path);if(a==null)continue;let s=CE(a);if(s===void 0)continue;if(i===null)return zv("param-header-missing",r,`the body carries ${No(o.path)}=${JSON.stringify(a)} but the ${r} header is absent`);let c=B$(i);if(c===void 0)return zv("param-header-invalid-encoding",r,`the ${r} header carries an invalid Base64 sentinel value`);if(!((o.type==="integer"||o.type==="number")&&OE.test(c)&&typeof a=="number"?Number(c)===a:c===s))return zv("param-header-mismatch",r,`the ${r} header decodes to ${JSON.stringify(c)} but the body carries ${No(o.path)}=${JSON.stringify(a)}`)}}function zv(e,t,n){return{kind:"reject",rung:"param-header-validation",cell:e,httpStatus:400,code:Ao,message:`Bad Request: the request headers and body disagree: ${n}`,data:{mismatch:{header:t,body:n}},settled:!0}}var Ao=-32020,aA=[{rung:"http-method",order:1,evaluatedAt:"edge",codes:[-32e3],conformance:[],rationale:"The modern era is POST-only; GET/DELETE are body-less 2025-era session operations and are method-routed to legacy serving (405 when legacy serving is not configured), before any body is read."},{rung:"jsonrpc-shape",order:2,evaluatedAt:"edge",codes:[C.InvalidRequest],conformance:["server-stateless"],rationale:"The body must be a JSON-RPC request or notification: posted responses and batch arrays containing a modern or invalid element are rejected before classification (element-wise batch rule); all-legacy arrays stay legacy traffic."},{rung:"era-classification",order:3,evaluatedAt:"edge",codes:[Ao,C.UnsupportedProtocolVersion],conformance:["server-stateless","http-header-validation","http-custom-header-server-validation"],rationale:"Body-primary era classification with the protocol-version header as a cross-check; a header/body disagreement is rejected with -32020 (HeaderMismatch), and an envelope-less request on a modern-only endpoint is answered with the unsupported-protocol-version error naming the supported revisions."},{rung:"envelope",order:4,evaluatedAt:"edge",codes:[C.InvalidParams],conformance:["server-stateless"],rationale:"A present envelope claim with a malformed envelope \\u2014 and a missing envelope on a request whose protocol-version header names a modern revision \\u2014 is an invalid-params rejection naming the offending or missing key(s); never a silent fall back to legacy handling. This is the only place an invalid-params rejection maps to HTTP 400."},{rung:"method-registry",order:5,evaluatedAt:"dispatch",codes:[C.MethodNotFound],conformance:["server-stateless"],rationale:"Method existence outranks parameter validity: a method absent from the negotiated revision\\u2019s registry (or with no handler installed) answers method-not-found before params or capabilities are looked at."},{rung:"request-params",order:6,evaluatedAt:"dispatch",codes:[C.InvalidParams],conformance:[],rationale:"Per-method params validation; emitted in-band by the dispatch layer (HTTP 200), never via the ladder status table."},{rung:"standard-header-validation",order:7,evaluatedAt:"pre-dispatch",codes:[Ao],conformance:["http-header-validation"],rationale:"SEP-2243 standard `MCP-Protocol-Version` / `Mcp-Method` / `Mcp-Name` headers \\u2014 presence, sentinel decoding, and `Mcp-Name` \\u2194 body cross-check \\u2014 are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The spec requires `MCP-Protocol-Version` and `Mcp-Method` on every modern *request* POST (`Mcp-Name` only for the methods that mirror `params.name` / `params.uri` / `params.taskId`, see `MCP_NAME_HEADER_SOURCE`) and names them in that order, so a request missing several is answered by the earliest. Notification POSTs are exempt: the presence half runs on requests only, so a modern-enveloped notification is dispatched even with no standard headers at all. The classifier\\u2019s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half \\u2014 including the missing `MCP-Protocol-Version` cell, which cannot live on the edge rung without breaking body-primary classification. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5\\u20136) are consulted."},{rung:"client-capabilities",order:8,evaluatedAt:"pre-dispatch",codes:[C.MissingRequiredClientCapability],conformance:["server-stateless"],rationale:"The capability requirement is checked by the HTTP entry, pre-dispatch, against the validated envelope the classifier produced \\u2014 pinning the spec-mandated HTTP 400 independently of how dispatch- and handler-produced errors are mapped. The documented order (after method resolution and params validation) is preserved observably only while the requirement table is empty: once a served method gains a requirement entry, a request that is missing the capability and would also fail a dispatch rung is answered by this gate first, so the entry must consult the method registry before the gate if the documented precedence is to stay observable."},{rung:"param-header-validation",order:9,evaluatedAt:"pre-dispatch",codes:[Ao],conformance:["http-custom-header-server-validation"],rationale:"SEP-2243 `Mcp-Param-*` headers are validated against the named tool\\u2019s `x-mcp-header` declarations and the body `arguments` after the tool registry is known and before dispatch reaches the handler; a missing/disagreeing/malformed header is rejected 400 / -32020 with the same shape as the standard-header cross-checks. The documented order (after method resolution and params validation) is preserved observably only when the body `arguments` would otherwise validate: the check runs pre-dispatch, so a `tools/call` that fails BOTH this rung and a dispatch-time rung (e.g. order-6 `request-params`, -32602) is answered by this gate first with 400 / -32020, not by the earlier-ordered rung."}],Zv={[C.ParseError]:400,[C.InvalidRequest]:400,[C.MethodNotFound]:404,[C.UnsupportedProtocolVersion]:400,[C.MissingRequiredClientCapability]:400,[Ao]:400};function Y$(e,t){return t==="in-band"?e===C.MissingRequiredClientCapability?400:200:Zv[e]??400}function Rt(e,t,n,o,r){return{kind:"reject",rung:e,cell:t,httpStatus:n,code:o.code,message:o.message,...o.data!==void 0&&{data:o.data},settled:r}}function Pt(e,t,n,o="era-classification"){return Rt(o,e,400,new V(Ao,`Bad Request: the request headers and body disagree: ${n}`,{mismatch:{header:t,body:n}}),!0)}var b$={"tools/call":"name","prompts/get":"name","resources/read":"uri","tasks/get":"taskId","tasks/update":"taskId","tasks/cancel":"taskId"};function AE(e,t){let n=Object.hasOwn(b$,e)?b$[e]:void 0;if(n===void 0)return;let o=Aa(t)?t[n]:void 0;return{field:n,value:typeof o=="string"?o:void 0}}function sd(e){let t=0;for(;t<e.length;){let o=e.codePointAt(t);if(o!==9&&o!==32)break;t+=1}let n=e.length;for(;n>t;){let o=e.codePointAt(n-1);if(o!==9&&o!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function G$(e,t){if(t.messageKind!=="request")return;let n=t.message.method;if(e.protocolVersionHeader===void 0){let c=t.classification.revision;return Pt("version-header-missing","(missing)",c===void 0?"the body carries a modern per-request envelope but the required MCP-Protocol-Version header is absent":`the body envelope names protocol version ${c} but the required MCP-Protocol-Version header is absent`,"standard-header-validation")}if(e.mcpMethodHeader===void 0)return Pt("method-header-missing","(missing)",`the body names method ${n} but the required Mcp-Method header is absent`,"standard-header-validation");let o=AE(n,t.message.params);if(o===void 0)return;let{field:r,value:i}=o;if(e.mcpNameHeader===void 0)return i===void 0?void 0:Pt("name-header-missing","(missing)",`the body carries params.${r}="${i}" but the required Mcp-Name header is absent`,"standard-header-validation");let a=sd(e.mcpNameHeader),s=B$(a);if(s===void 0)return Pt("name-header-invalid-encoding",a,"the Mcp-Name header carries an invalid Base64 sentinel value","standard-header-validation");if(i!==void 0&&s!==i)return Pt("name-header-mismatch",a,`the body carries params.${r}="${i}" but the Mcp-Name header names "${s}"`,"standard-header-validation")}function Aa(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function W$(e){return e===void 0?{era:"modern"}:{era:ar(e)?"modern":"legacy",revision:e}}function UE(e){if(!pd(e))return!1;let t=Dv(e);if(t===void 0||!ar(t))return!1;let n=Zr(e);return n!==void 0&&cd(n).length===0}function ME(e){if(e.length===0)return Rt("jsonrpc-shape","empty-batch",400,new V(C.InvalidRequest,"Bad Request: empty JSON-RPC batch"),!0);for(let t of e){if(pd(Aa(t)?t.params:void 0))return Rt("jsonrpc-shape","batch-with-modern-element",400,new V(C.InvalidRequest,"Bad Request: JSON-RPC batches may not contain requests for protocol revision 2026-07-28 or later"),!0);if(!(Ht(t)||fd(t)||ir(t)||sr(t)))return Rt("jsonrpc-shape","batch-with-invalid-element",400,new V(C.InvalidRequest,"Bad Request: JSON-RPC batch contains an invalid message"),!0)}return{kind:"legacy",reason:"batch"}}function DE(e,t){let n=t.params,o=t.method,r=e.protocolVersionHeader,i=r!==void 0&&ar(r);if(o==="initialize"&&!UE(n)){if(i)return Pt("initialize-with-modern-header",r,"an initialize request (legacy handshake) was sent with a modern MCP-Protocol-Version header");let a=Aa(n)&&typeof n.protocolVersion=="string"?n.protocolVersion:void 0;return{kind:"legacy",reason:"initialize",...a!==void 0&&{requestedVersion:a}}}if(pd(n)){let a=Zr(n),s=(a===void 0?[]:cd(a))[0];if(s!==void 0)return Rt("envelope","envelope-invalid",400,new V(C.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${s.key}: ${s.problem}`,{envelope:s}),!0);let c=Dv(n);return r!==void 0&&c!==void 0&&r!==c?Pt("header-body-version-mismatch",r,`the body envelope names protocol version ${c} but the MCP-Protocol-Version header names ${r}`):e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==o?Pt("method-header-mismatch",e.mcpMethodHeader,`the body names method ${o} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"request",message:t,classification:W$(c)}}if(i){let a=Zr(n),s=cd(a??{}).filter(l=>l.problem==="missing").map(l=>l.key),c=a===void 0?["_meta"]:s.length>0?s:[zt];return Rt("envelope","modern-header-without-claim",400,new V(C.InvalidParams,`Invalid params: the MCP-Protocol-Version header names protocol revision ${r}, but the request is missing the required per-request envelope key(s): ${c.join(", ")}`,{envelope:{missing:c}}),!0)}return{kind:"legacy",reason:"no-claim",...r!==void 0&&{requestedVersion:r}}}function LE(e,t){let n=t.params,o=t.method,r=e.protocolVersionHeader,i=r!==void 0&&ar(r);if(pd(n)){let a=Dv(n);if(a===void 0){let c=Zr(n),l=(c===void 0?[]:cd(c)).find(d=>d.key===zt)??{key:zt,problem:"expected a protocol version string"};return Rt("envelope","notification-envelope-invalid",400,new V(C.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${l.key}: ${l.problem}`,{envelope:l}),!0)}if(r!==void 0&&r!==a)return Pt("notification-header-body-version-mismatch",r,`the notification envelope names protocol version ${a} but the MCP-Protocol-Version header names ${r}`);let s=W$(a);return s.era==="modern"&&e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==o?Pt("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${o} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:s}}return i?e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==o?Pt("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${o} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:{era:"modern",revision:r}}:{kind:"legacy",reason:"notification",...r!==void 0&&{requestedVersion:r}}}function X$(e){if(e={...e,...e.protocolVersionHeader!==void 0&&{protocolVersionHeader:sd(e.protocolVersionHeader)},...e.mcpMethodHeader!==void 0&&{mcpMethodHeader:sd(e.mcpMethodHeader)},...e.mcpNameHeader!==void 0&&{mcpNameHeader:sd(e.mcpNameHeader)}},e.httpMethod.toUpperCase()!=="POST")return{kind:"legacy",reason:"http-method"};let t=e.body;return Array.isArray(t)?ME(t):ir(t)||sr(t)?{kind:"legacy",reason:"response"}:Aa(t)&&Ht(t)?DE(e,t):Aa(t)&&fd(t)?LE(e,t):Rt("jsonrpc-shape","invalid-json-rpc-body",400,new V(C.InvalidRequest,"Bad Request: the request body is not a valid JSON-RPC message"),!0)}function Q$(e,t){switch(e.reason){case"http-method":return Rt("http-method","modern-only-method-not-allowed",405,new V(-32e3,"Method not allowed."),!0);case"batch":return Rt("jsonrpc-shape","modern-only-batch-not-supported",400,new V(C.InvalidRequest,"Bad Request: JSON-RPC batches are not supported by this endpoint"),!0);case"response":return Rt("jsonrpc-shape","modern-only-response-post",400,new V(C.InvalidRequest,"Bad Request: JSON-RPC responses cannot be posted to this endpoint"),!0);case"notification":return;case"initialize":case"no-claim":{let n=e.requestedVersion;return Rt("era-classification","modern-only-missing-envelope",400,n===void 0?new V(C.UnsupportedProtocolVersion,"Unsupported protocol version: the request did not name a protocol version",{supported:[...t]}):new md({supported:[...t],requested:n}),!0)}}}function gd(e,t){return Bi(e,t)}function Ca(e){return new Set(e.flatMap(t=>Object.keys(t.shape)))}function Mo(e){if(e==null)return!1;let t=typeof e;return t!=="object"&&t!=="function"||!("~standard"in e)?!1:typeof e["~standard"]?.validate=="function"}var $$=!1,wv="draft-2020-12";function wn(e,t="input"){let n=e["~standard"],o;if(n.jsonSchema)o=n.jsonSchema[t]({target:wv});else if(n.vendor==="zod"){if(!("_zod"in e))throw new Error("Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().");$$||($$=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),o=hn(e,{target:wv,io:t})}else throw new Error(`Schema library "${n.vendor}" does not implement StandardJSONSchemaV1 (\\`~standard.jsonSchema\\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(t==="output")return o.type!==void 0?o:ez(o)?{type:"object",...o}:o;if(o.type!==void 0&&o.type!=="object")throw new Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(o.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:"object",...o}}function ez(e){if("properties"in e||"patternProperties"in e||"additionalProperties"in e||"required"in e)return!0;for(let t of["oneOf","anyOf","allOf"]){let n=e[t];if(Array.isArray(n)&&n.length>0)return n.every(o=>o!==null&&typeof o=="object"&&(o.type==="object"||ez(o)))}return!1}function qE(e){return e.path?.length?`${e.path.map(t=>String(typeof t=="object"?t.key:t)).join(".")}: ${e.message}`:e.message}async function Rn(e,t){let n=await e["~standard"].validate(t);return n.issues&&n.issues.length>0?{success:!1,error:n.issues.map(o=>qE(o)).join(", ")}:{success:!0,data:n.value}}function VE(e){let t=hn(e,{target:wv,io:"input"});return typeof t.pattern=="string"?t.pattern:void 0}var ZE=/\\\\\\.\\\\d\\{(\\d+)\\}/;function FE(e){let t=ZE.exec(e),n=[void 0,-1,0];return t&&n.push(Number(t[1])),[!1,!0].flatMap(o=>[!1,!0].flatMap(r=>n.map(i=>$t.datetime({local:o,offset:r,precision:i}))))}function KE(e,t){let n;switch(e){case"email":n=[Bc()];break;case"uri":n=[go()];break;case"date":n=[$t.date()];break;case"date-time":n=FE(t);break}return new Set(n.map(o=>VE(o)).filter(o=>o!==void 0))}function JE(e,t,n){return n!=="zod"?!0:KE(e,t).has(t)}function tz(e){let t=wn(e,"input"),n=t.properties||{},o=t.required||[];return Object.entries(n).map(([r,i])=>({name:r,description:i?.description,required:o.includes(r)}))}function Ua(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function BE(e){try{return wn(e,"input")}catch(t){let n=t instanceof Error?t.message:String(t);throw new V(C.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${n}`)}}var HE=new Set(["$comment","deprecated","description","examples","readOnly","title","writeOnly"]);function Fv(e){return HE.has(e)||e.startsWith("x-")}var YE=new Set(["$schema",...Object.keys(Co.shape.requestedSchema.shape)]),z$={string:Ca([Po,wa,Ia,Ta]),number:Ca([Oo]),integer:Ca([Oo]),boolean:Ca([ka]),array:Ca([xa,Ea])},GE=new Set(Po.shape.format.unwrap().options);function WE(e,t,n,o){if(!Ua(e))return e;let r=typeof e.type=="string"&&Object.hasOwn(z$,e.type)?z$[e.type]:void 0;if(r===void 0)return e;let i={};for(let[a,s]of Object.entries(e))r.has(a)||Fv(a)?i[a]=s:a==="pattern"&&e.type==="string"&&typeof e.format=="string"?GE.has(e.format)?(typeof s!="string"||!JE(e.format,s,n))&&o.push(`${t}.${a}`):i[a]=s:o.push(`${t}.${a}`);return i}function XE(e,t){let n={},o=[];for(let[r,i]of Object.entries(e))r==="properties"&&Ua(i)?n[r]=Object.fromEntries(Object.entries(i).map(([a,s])=>[a,WE(s,`properties.${a}`,t,o)])):YE.has(r)?n[r]=i:Fv(r)||o.push(r);if(o.length>0)throw new V(C.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${o.join(", ")}`);return n}function QE(e,t){if(!Ua(e.properties))return t;let n=Object.entries(e.properties).filter(([,o])=>!gd(Pa,o).success).map(([o])=>`properties.${o}`);return n.length>0?n.join(", "):t}function Iv(e,t,n=""){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((o,r)=>Iv(o,t[r],`${n}[${r}]`)):!Ua(e)||!Ua(t)?[]:Object.entries(e).flatMap(([o,r])=>{let i=n?`${n}.${o}`:o;return Object.prototype.hasOwnProperty.call(t,o)?Iv(r,t[o],i):Fv(o)?[]:[i]})}function eP(e){if(!Mo(e.requestedSchema))return{...e,mode:"form",requestedSchema:e.requestedSchema};let t=e.requestedSchema["~standard"].vendor,n=XE(BE(e.requestedSchema),t),o=gd(Co.shape.requestedSchema,n);if(!o.success)throw new V(C.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${QE(n,o.error.message)}`);let r=Iv(n,o.data);if(r.length>0)throw new V(C.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(", ")}`);let i=(o.data.required??[]).filter(a=>!Object.prototype.hasOwnProperty.call(o.data.properties,a));if(i.length>0)throw new V(C.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${i.join(", ")}`);return{...e,mode:"form",requestedSchema:o.data}}function tP(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,n=typeof e.requestState=="string";if(!t&&!n)throw new TypeError("inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)");return{resultType:"input_required",...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}var Kv=Object.assign(tP,{elicit(e){try{return{method:"elicitation/create",params:eP(e)}}catch(t){throw t instanceof V?new TypeError(t.message,{cause:t}):t}},elicitUrl(e){return{method:"elicitation/create",params:{...e,mode:"url"}}},createMessage(e){return{method:"sampling/createMessage",params:e}},listRoots(){return{method:"roots/list"}}});var rz=250;function nz(e,t){return`Multi-round-trip request \'${e}\' still required input after ${t} rounds (inputRequired.maxRounds)`}function oz(e,t){return new Promise((n,o)=>{if(t?.aborted){o(t.reason instanceof ne?t.reason:new ne(se.RequestTimeout,String(t.reason)));return}let r=setTimeout(()=>{t?.removeEventListener("abort",i),n()},e),i=()=>{clearTimeout(r),o(t?.reason instanceof ne?t.reason:new ne(se.RequestTimeout,String(t?.reason)))};t?.addEventListener("abort",i,{once:!0})})}function iz(e){let t=new AbortController,n=()=>t.abort(e?.reason);return e?.addEventListener("abort",n,{once:!0}),e?.aborted&&t.abort(e.reason),{signal:t.signal,abort:o=>t.abort(o),dispose:()=>e?.removeEventListener("abort",n)}}var rP=["AnnotationsSchema","AudioContentSchema","BaseMetadataSchema","BlobResourceContentsSchema","BooleanSchemaSchema","CallToolRequestSchema","CallToolRequestParamsSchema","CallToolResultSchema","CancelledNotificationSchema","CancelledNotificationParamsSchema","CancelTaskRequestSchema","CancelTaskResultSchema","ClientCapabilitiesSchema","ClientNotificationSchema","ClientRequestSchema","ClientResultSchema","CompatibilityCallToolResultSchema","CompleteRequestSchema","CompleteRequestParamsSchema","CompleteResultSchema","ContentBlockSchema","CreateMessageRequestSchema","CreateMessageRequestParamsSchema","CreateMessageResultSchema","CreateMessageResultWithToolsSchema","CreateTaskResultSchema","CursorSchema","DiscoverRequestSchema","DiscoverResultSchema","ElicitationCompleteNotificationSchema","ElicitationCompleteNotificationParamsSchema","ElicitRequestSchema","ElicitRequestFormParamsSchema","ElicitRequestParamsSchema","ElicitRequestURLParamsSchema","ElicitResultSchema","EmbeddedResourceSchema","EmptyResultSchema","EnumSchemaSchema","GetPromptRequestSchema","GetPromptRequestParamsSchema","GetPromptResultSchema","GetTaskPayloadRequestSchema","GetTaskPayloadResultSchema","GetTaskRequestSchema","GetTaskResultSchema","IconSchema","IconsSchema","ImageContentSchema","ImplementationSchema","InitializedNotificationSchema","InitializeRequestSchema","InitializeRequestParamsSchema","InitializeResultSchema","JSONArraySchema","JSONObjectSchema","JSONRPCErrorResponseSchema","JSONRPCMessageSchema","JSONRPCNotificationSchema","JSONRPCRequestSchema","JSONRPCResponseSchema","JSONRPCResultResponseSchema","JSONValueSchema","LegacyTitledEnumSchemaSchema","ListPromptsRequestSchema","ListPromptsResultSchema","ListResourcesRequestSchema","ListResourcesResultSchema","ListResourceTemplatesRequestSchema","ListResourceTemplatesResultSchema","ListRootsRequestSchema","ListRootsResultSchema","ListTasksRequestSchema","ListTasksResultSchema","ListToolsRequestSchema","ListToolsResultSchema","LoggingLevelSchema","LoggingMessageNotificationSchema","LoggingMessageNotificationParamsSchema","ModelHintSchema","ModelPreferencesSchema","MultiSelectEnumSchemaSchema","NotificationSchema","NumberSchemaSchema","PaginatedRequestSchema","PaginatedRequestParamsSchema","PaginatedResultSchema","PingRequestSchema","PrimitiveSchemaDefinitionSchema","ProgressSchema","ProgressNotificationSchema","ProgressNotificationParamsSchema","ProgressTokenSchema","PromptSchema","PromptArgumentSchema","PromptListChangedNotificationSchema","PromptMessageSchema","PromptReferenceSchema","ReadResourceRequestSchema","ReadResourceRequestParamsSchema","ReadResourceResultSchema","RelatedTaskMetadataSchema","RequestSchema","RequestIdSchema","RequestMetaSchema","ResourceSchema","ResourceContentsSchema","ResourceLinkSchema","ResourceListChangedNotificationSchema","ResourceRequestParamsSchema","ResourceTemplateSchema","ResourceTemplateReferenceSchema","ResourceUpdatedNotificationSchema","ResourceUpdatedNotificationParamsSchema","ResultMetaObjectSchema","ResultSchema","RoleSchema","RootSchema","RootsListChangedNotificationSchema","SamplingContentSchema","SamplingMessageSchema","SamplingMessageContentBlockSchema","ServerCapabilitiesSchema","ServerNotificationSchema","ServerRequestSchema","ServerResultSchema","SetLevelRequestSchema","SetLevelRequestParamsSchema","SingleSelectEnumSchemaSchema","StringSchemaSchema","SubscribeRequestSchema","SubscribeRequestParamsSchema","SubscriptionFilterSchema","SubscriptionsAcknowledgedNotificationSchema","SubscriptionsAcknowledgedNotificationParamsSchema","SubscriptionsListenRequestSchema","SubscriptionsListenRequestParamsSchema","SubscriptionsListenResultSchema","SubscriptionsListenResultMetaSchema","TaskAugmentedRequestParamsSchema","TaskCreationParamsSchema","TaskMetadataSchema","TaskSchema","TaskStatusSchema","TaskStatusNotificationSchema","TaskStatusNotificationParamsSchema","TextContentSchema","TextResourceContentsSchema","TitledMultiSelectEnumSchemaSchema","TitledSingleSelectEnumSchemaSchema","ToolSchema","ToolAnnotationsSchema","ToolChoiceSchema","ToolExecutionSchema","ToolListChangedNotificationSchema","ToolResultContentSchema","ToolUseContentSchema","UnsubscribeRequestSchema","UnsubscribeRequestParamsSchema","UntitledMultiSelectEnumSchemaSchema","UntitledSingleSelectEnumSchemaSchema"],nP={IdJagTokenExchangeResponseSchema:hv,OAuthClientInformationFullSchema:vv,OAuthClientInformationSchema:rd,OAuthClientMetadataSchema:td,OAuthClientRegistrationErrorSchema:_v,OAuthErrorResponseSchema:gv,OAuthMetadataSchema:Qu,OAuthProtectedResourceMetadataSchema:mv,OAuthTokenRevocationRequestSchema:yv,OAuthTokensSchema:fv,OpenIdProviderDiscoveryMetadataSchema:pv,OpenIdProviderMetadataSchema:ed},az={},sz={};function cz(e,t){let n=e.slice(0,-6);az[n]=t,sz[n]=o=>t.safeParse(o).success}for(let e of rP)cz(e,zE[e]);for(let[e,t]of Object.entries(nP))cz(e,t);var oP=Object.freeze(az),iP=Object.freeze(sz);function aP(e){switch(e){case"initialize":case"notifications/initialized":return Vr(void 0);case"server/discover":return Vr(Va);default:return}}var lz=6e4,sP=[zt,Sn,Bt,Nr],cP=["inputResponses","requestState"];function R$(e,t){let n=e.params;if(!ja(n))return{message:e,lifted:{}};let o=n._meta,r=ja(o)?sP.filter(c=>c in o):[],i=t==="request"?cP.filter(c=>c in n):[];if(r.length===0&&i.length===0)return{message:e,lifted:{}};let a={},s={...n};if(r.length>0&&ja(o)){let c={},l={...o};for(let d of r)c[d]=o[d],delete l[d];a.envelope=c,Object.keys(l).length>0?s._meta=l:delete s._meta}for(let c of i)c==="inputResponses"&&(a.inputResponses=s[c]),c==="requestState"&&(a.requestState=s[c]),delete s[c];return{message:{...e,params:s},lifted:a}}function k$(e,t){let n=e.validateResult(t,void 0);if(!(!n.ok&&n.reason==="not-in-era"))return{"~standard":{version:1,vendor:"mcp-wire-codec",validate(o){let r=e.validateResult(t,o);return r.ok?{value:r.value}:{issues:[{message:r.reason==="invalid"?r.message:`not-in-era: ${t}`}]}}}}}function Za(e){return()=>e}var lP=Za(void 0);function Jv(e,t){return{...e,mcpReq:{...e.mcpReq,requestState:Za(t)}}}var uz;function dz(e,t){uz(e,t)}var Bv=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_customSchemaRequestMethods=new Set;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;static{uz=(e,t)=>{e._negotiatedProtocolVersion=t}}_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??ia,this.setNotificationHandler("notifications/cancelled",t=>{this._oncancel(t)}),this.setNotificationHandler("notifications/progress",t=>{this._onprogress(t)}),this.setRequestHandler("ping",t=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(t===void 0)return e;let n=e.params??{};return{...e,params:{...n,_meta:{...t,...n._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new ne(se.UnsupportedResultType,`Unsupported result type \'${e.kind}\' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId!==void 0&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,o,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(o,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:o})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new ne(se.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let o=this._transport?.onmessage;this._transport.onmessage=(r,i)=>{o?.(r,i),ir(r)||sr(r)?this._onresponse(r):Ht(r)?this._onrequest(r,i):fd(r)?this._onnotification(r,i):this._onerror(new Error(`Unknown message type: ${JSON.stringify(r)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear();for(let o of this._timeoutInfo.values())clearTimeout(o.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let n=new ne(se.ConnectionClosed,"Connection closed");this._transport=void 0;try{this.onclose?.()}finally{for(let o of e.values())o(n);for(let o of t.values())o.abort(n)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:n}=R$(e,"notification"),o=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop")return;if(t?.classification!==void 0){let a=v$(t.classification);if(a!==o.era){this._onerror(new Error(`Era mismatch on inbound notification \'${n.method}\': classified as ${a} but this instance serves ${o.era}`));return}}if($v(n.method)&&!o.hasNotificationMethod(n.method))return;let r=this._notificationHandlers.get(n.method),i=this.fallbackNotificationHandler;r===void 0&&i===void 0||Promise.resolve().then(()=>r===void 0?i(n):r(n,o)).catch(a=>this._onerror(new Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(e,t){let{message:n,lifted:o}=R$(e,"request"),r=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop"){this._onerror(new Error(`Dropped inbound request \'${e.method}\': not servable on this connection\'s protocol era`));return}let i=this._transport,a=(S,y,w)=>{let T={jsonrpc:"2.0",id:n.id,error:{code:S,message:y,...w!==void 0&&{data:w}}};i?.send(T).catch(E=>this._onerror(new Error(`Failed to send an error response: ${E}`)))};if(t?.classification!==void 0){let S=v$(t.classification);if(S!==r.era){this._onerror(new Error(`Era mismatch on inbound request \'${n.method}\': classified as ${S} but this instance serves ${r.era}`));let y=t.classification.revision??S;a(C.UnsupportedProtocolVersion,`Unsupported protocol version: ${y}`,{supported:this._supportedProtocolVersions,requested:y});return}}if(bv(n.method)&&!r.hasRequestMethod(n.method)&&!(_$(n.method)&&this._customSchemaRequestMethods.has(n.method))){a(C.MethodNotFound,"Method not found");return}let s=this._requestHandlers.get(n.method)??this.fallbackRequestHandler;if(s===void 0){a(C.MethodNotFound,"Method not found");return}let c=r.checkInboundEnvelope(o);if(c!==void 0){a(C.InvalidParams,c);return}let l=(S,y)=>this._notificationViaCodec(this._resolveOutboundCodec(S.method),S,{...y,relatedRequestId:n.id}),d=(S,y,w)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(S.method),S,y,{...w,relatedRequestId:n.id}),m=new AbortController;this._requestHandlerAbortControllers.set(n.id,m);let p=o.inputResponses===void 0?void 0:uP(o.inputResponses),f={sessionId:i?.sessionId,mcpReq:{id:n.id,method:n.method,_meta:n.params?._meta,...o.envelope!==void 0&&{envelope:o.envelope},...p!==void 0&&{inputResponses:p.accepted},...p!==void 0&&p.droppedKeys.length>0&&{droppedInputResponseKeys:p.droppedKeys},requestState:o.requestState===void 0?lP:Za(o.requestState),signal:m.signal,send:((S,y,w)=>{let T=this._resolveOutboundCodec(S.method);if(this._assertOutboundRequestInEra(T,S.method),Mo(y))return d(S,y,w);let E=k$(T,S.method);if(E===void 0)throw new TypeError(`\'${S.method}\' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return d(S,E,y)}),notify:l},http:t?.authInfo?{authInfo:t.authInfo}:void 0},h=this.buildContext(f,t);Promise.resolve().then(()=>s(n,h)).then(async S=>{if(m.signal.aborted)return;let y;try{y=r.encodeResult(n.method,S,this._outboundServerInfo())}catch(T){this._onerror(new Error(`Failed to encode result for ${n.method}: ${T}`)),a(C.InternalError,"Internal error");return}let w={result:y,jsonrpc:"2.0",id:n.id};await i?.send(w)},async S=>{if(m.signal.aborted)return;let y=Number.isSafeInteger(S.code)?S.code:C.InternalError,w={jsonrpc:"2.0",id:n.id,error:{code:r.encodeErrorCode(y),message:S.message??"Internal error",...S.data!==void 0&&{data:S.data}}};await i?.send(w)}).catch(S=>this._onerror(new Error(`Failed to send response: ${S}`))).finally(()=>{this._requestHandlerAbortControllers.get(n.id)===m&&this._requestHandlerAbortControllers.delete(n.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,o=Number(t),r=this._progressHandlers.get(o);if(!r){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let i=this._responseHandlers.get(o),a=this._timeoutInfo.get(o);if(a&&i&&a.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(s){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),i(s);return}r(n)}_onresponse(e){let t=Number(e.id),n=this._responseHandlers.get(t);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),ir(e)?n(e):n(V.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,n){let o=this._resolveOutboundCodec(e.method);if(Mo(t))return _$(e.method)||this._assertOutboundRequestInEra(o,e.method),this._requestWithSchemaViaCodec(o,e,t,n);this._assertOutboundRequestInEra(o,e.method);let r=k$(o,e.method);if(r===void 0)throw new TypeError(`\'${e.method}\' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(o,e,r,t)}_negotiatedWireCodec(){return Vr(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=aP(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(bv(t)&&!e.hasRequestMethod(t))throw new ne(se.MethodNotSupportedByProtocolVersion,`Method \'${t}\' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,n){let o=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(o,e.method),this._requestWithSchemaViaCodec(o,e,t,n)}_requestWithSchemaViaCodec(e,t,n,o){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,headers:s}=o??{},c=Date.now(),l,d;return new Promise((m,p)=>{let f=N=>{p(N)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(N){f(N);return}if(o?.signal?.aborted){let N=o.signal.reason;throw N instanceof ne?N:new ne(se.RequestTimeout,String(N))}let h=e.era===Va&&this._transport.hasPerRequestStream===!0?new AbortController:void 0,S=this._requestMessageId++;d=S;let y={...t,jsonrpc:"2.0",id:S};o?.onprogress&&(this._progressHandlers.set(S,o.onprogress),y.params={...t.params,_meta:{...t.params?._meta,progressToken:S}});let w=this._envelopeOutbound(y),T=!1,E=N=>{T||(this._progressHandlers.delete(S),h===void 0?t.method!=="initialize"&&this._transport?.send(this._envelopeOutbound({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:S,reason:String(N)}}),{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(re=>this._onerror(new Error(`Failed to send cancellation: ${re}`))):h.abort(),p(N instanceof ne?N:new ne(se.RequestTimeout,String(N))))};this._responseHandlers.set(S,N=>{if(o?.signal?.aborted)return;if(T=!0,N instanceof Error)return p(N);let re;try{re=e.decodeResult(t.method,N.result)}catch(H){return p(H instanceof Error?H:new Error(String(H)))}if(re.kind==="invalid")return p(re.error);if(re.kind==="input_required"){if(o?.allowInputRequired===!0)return m(dP(re));let H={codec:e,request:t,resultSchema:n,options:o,flowStartedAt:c,retry:(ve,ye)=>this._requestWithSchemaViaCodec(e,ve===void 0?{method:t.method}:{method:t.method,params:ve},n,ye)};return m(this._resolveNonCompleteResult(re,H))}let oe=re.result;Rn(n,oe).then(H=>{H.success?m(H.data):p(new ne(se.InvalidResult,`Invalid result for ${t.method}: ${H.error}`))},p)}),l=()=>E(o?.signal?.reason),o?.signal?.addEventListener("abort",l,{once:!0});let K=o?.timeout??lz,Z=()=>E(new ne(se.RequestTimeout,"Request timed out",{timeout:K}));this._setupTimeout(S,K,o?.maxTotalTimeout,Z,o?.resetTimeoutOnProgress??!1),this._transport.send(w,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,headers:s,requestSignal:h?.signal}).catch(N=>{this._progressHandlers.delete(S),p(N)})}).finally(()=>{l&&o?.signal?.removeEventListener("abort",l),d!==void 0&&(this._responseHandlers.delete(d),this._cleanupTimeout(d))})}async notification(e,t){return await this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,n){if(!this._transport)throw new ne(se.NotConnected,"Not connected");if($v(t.method)&&!e.hasNotificationMethod(t.method))throw new ne(se.MethodNotSupportedByProtocolVersion,`Notification \'${t.method}\' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let o=this._envelopeOutbound({jsonrpc:"2.0",...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&n?.relatedRequestId===void 0){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(o,n).catch(r=>this._onerror(r))});return}await this._transport.send(o,n)}setRequestHandler(e,t,n){this.assertRequestHandlerCapability(e);let o;if(typeof t=="function"){if(!bv(e))throw new TypeError(`\'${e}\' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);o=(r,i)=>{let a=this._negotiatedWireCodec(),s=a.validateRequest(e,r);if(!s.ok&&s.reason==="not-in-era"&&(s=a.validateInputRequest(e,r)),!s.ok)throw s.reason==="not-in-era"?new V(C.InternalError,`No wire schema for ${e} in the resolved era`):new Error(s.message);return Promise.resolve(t(s.value,i))}}else if(n)o=async(r,i)=>{let a=await Rn(t.params,{...r.params});if(!a.success)throw new V(C.InvalidParams,`Invalid params for ${e}: ${a.error}`);return n(a.data,i)};else throw new TypeError("setRequestHandler: handler is required");typeof t=="function"?this._customSchemaRequestMethods.delete(e):this._customSchemaRequestMethods.add(e),this._requestHandlers.set(e,this._wrapHandler(e,o))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e),this._customSchemaRequestMethods.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,n){if(typeof t=="function"){if(!$v(e))throw new TypeError(`\'${e}\' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(o,r)=>{let i=r.validateNotification(e,o);if(!i.ok)throw i.reason==="not-in-era"?new V(C.InternalError,`No wire schema for ${e} in the resolved era`):new Error(i.message);return Promise.resolve(t(i.value))});return}if(!n)throw new TypeError("setNotificationHandler: handler is required");this._notificationHandlers.set(e,async o=>{let r=await Rn(t.params,{...o.params});if(!r.success)throw new V(C.InvalidParams,`Invalid params for notification ${e}: ${r.error}`);await n(r.data,o)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function ja(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Hv(e,t){let n={...e};for(let o in t){let r=o,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=ja(a)&&ja(i)?{...a,...i}:i}return n}function w$(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function uP(e){let t={},n=[];if(!w$(e))return{accepted:t,droppedKeys:n};for(let[o,r]of Object.entries(e)){if(!w$(r)||"method"in r||"result"in r){n.push(o);continue}t[o]=r}return{accepted:t,droppedKeys:n}}function dP(e){return{resultType:"input_required",inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState},...e._meta!==void 0&&{_meta:e._meta}}}var mP=x_((e=>{var t=/; *([!#$%&\'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\\u000b\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e\\u0080-\\u00ff]|\\\\[\\u000b\\u0020-\\u00ff])*"|[!#$%&\'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\\\([\\u000b\\u0020-\\u00ff])/g,o=/^[!#$%&\'*+.^_`|~0-9A-Za-z-]+\\/[!#$%&\'*+.^_`|~0-9A-Za-z-]+$/;e.parse=r;function r(s){if(!s)throw new TypeError("argument string is required");var c=typeof s=="object"?i(s):s;if(typeof c!="string")throw new TypeError("argument string is required to be a string");var l=c.indexOf(";"),d=l!==-1?c.slice(0,l).trim():c.trim();if(!o.test(d))throw new TypeError("invalid media type");var m=new a(d.toLowerCase());if(l!==-1){var p,f,h;for(t.lastIndex=l;f=t.exec(c);){if(f.index!==l)throw new TypeError("invalid parameter format");l+=f[0].length,p=f[1].toLowerCase(),h=f[2],h.charCodeAt(0)===34&&(h=h.slice(1,-1),h.indexOf("\\\\")!==-1&&(h=h.replace(n,"$1"))),m.parameters[p]=h}if(l!==c.length)throw new TypeError("invalid parameter format")}return m}function i(s){var c;if(typeof s.getHeader=="function"?c=s.getHeader("content-type"):typeof s.headers=="object"&&(c=s.headers&&s.headers["content-type"]),typeof c!="string")throw new TypeError("content-type header is missing from object");return c}function a(s){this.parameters=Object.create(null),this.type=s}})),pP=P_(mP(),1);function Yv(e){if(e)try{return pP.parse(e).type}catch{let t=(e.split(";",1)[0]??"").trim().toLowerCase();return t===""||e.slice(t.length).includes(",")?void 0:t}}function Gv(e){return e==="application/json"?!0:Yv(e)==="application/json"}var fP=10*1024*1024;var hP=/^[A-Za-z0-9._-]{1,128}$/;function gP(e){let t=[];if(e.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!hP.test(e)){let n=[...e].filter(o=>!/[A-Za-z0-9._-]/.test(o)).filter((o,r,i)=>i.indexOf(o)===r);return t.push(`Tool name contains invalid characters: ${n.map(o=>`"${o}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function vP(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(let n of t)console.warn(` - ${n}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function Wv(e){let t=gP(e);return vP(e,t.warnings),t.isValid}function _P(e){return typeof e=="object"&&e!==null&&"_zod"in e}function yP(e){return typeof e=="object"&&e!==null&&!("_zod"in e)&&"_def"in e&&typeof e._def?.typeName=="string"}function SP(e){if(typeof e!="object"||e===null||Mo(e))return!1;let t=Object.getPrototypeOf(e);return t!==Object.prototype&&t!==null?!1:Object.values(e).every(n=>_P(n))}function vd(e){if(e!==void 0){if(SP(e))return g(e);if(typeof e=="object"&&e!==null&&!Mo(e)&&Object.values(e).some(t=>yP(t)))throw new TypeError("Raw-shape inputSchema/outputSchema/argsSchema fields must be Zod v4 schemas. Got a Zod v3 field schema. Import from `zod/v4` (or upgrade your zod import), or wrap with `z.object({...})` yourself.");if(!Mo(e))throw new TypeError("inputSchema/outputSchema/argsSchema must be a Standard Schema (e.g. z.object({...})) or a raw Zod shape ({ field: z.string() }).");return e}}function Xv(){Pv(),or(),Jx(),pE(),$E()}function Fa(e,t){let n=typeof e;if(n!==typeof t)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let o=e.length;if(o!==t.length)return!1;for(let r=0;r<o;r++)if(!Fa(e[r],t[r]))return!1;return!0}if(n==="object"){if(!e||!t)return e===t;let o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(let i of o)if(!Fa(e[i],t[i]))return!1;return!0}return e===t}function Ot(e){return encodeURI(bP(e))}function bP(e){return e.replace(/~/g,"~0").replace(/\\//g,"~1")}var $P={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},zP={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},RP={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0},kP=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function In(e,t=Object.create(null),n=kP,o=""){if(e&&typeof e=="object"&&!Array.isArray(e)){let i=e.$id||e.id;if(i){let a=new URL(i,n.href);a.hash.length>1?t[a.href]=e:(a.hash="",o===""?n=a:In(e,t,n))}}else if(e!==!0&&e!==!1)return t;let r=n.href+(o?"#"+o:"");if(t[r]!==void 0)throw new Error(`Duplicate schema URI "${r}".`);if(t[r]=e,e===!0||e===!1)return t;if(e.__absolute_uri__===void 0&&Object.defineProperty(e,"__absolute_uri__",{enumerable:!1,value:r}),e.$ref&&e.__absolute_ref__===void 0){let i=new URL(e.$ref,n.href);i.hash=i.hash,Object.defineProperty(e,"__absolute_ref__",{enumerable:!1,value:i.href})}if(e.$recursiveRef&&e.__absolute_recursive_ref__===void 0){let i=new URL(e.$recursiveRef,n.href);i.hash=i.hash,Object.defineProperty(e,"__absolute_recursive_ref__",{enumerable:!1,value:i.href})}if(e.$anchor){let i=new URL("#"+e.$anchor,n.href);t[i.href]=e}for(let i in e){if(RP[i])continue;let a=`${o}/${Ot(i)}`,s=e[i];if(Array.isArray(s)){if($P[i]){let c=s.length;for(let l=0;l<c;l++)In(s[l],t,n,`${a}/${l}`)}}else if(zP[i])for(let c in s)In(s[c],t,n,`${a}/${Ot(c)}`);else In(s,t,n,a)}return t}var wP=/^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/,IP=[0,31,28,31,30,31,30,31,31,30,31,30,31],TP=/^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d(?::?\\d\\d)?)?$/i,xP=/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i,EP=/^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&\'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&\'"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&\'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&\'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,PP=/^(?:(?:[^\\x00-\\x20"\'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,OP=/^(?:(?:https?|ftp):\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu,CP=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,NP=/^(?:\\/(?:[^~/]|~0|~1)*)*$/,jP=/^#(?:\\/(?:[a-z0-9_\\-.!$&\'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,AP=/^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,UP=e=>{if(e[0]===\'"\')return!1;let[t,n,...o]=e.split("@");return!t||!n||o.length!==0||t.length>64||n.length>253||t[0]==="."||t.endsWith(".")||t.includes("..")||!/^[a-z0-9.-]+$/i.test(n)||!/^[a-z0-9.!#$%&\'*+/=?^_`{|}~-]+$/i.test(t)?!1:n.split(".").every(r=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(r))},MP=/^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,DP=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))$/i,LP=e=>e.length>1&&e.length<80&&(/^P\\d+([.,]\\d+)?W$/.test(e)||/^P[\\dYMDTHS]*(\\d[.,]\\d+)?[YMDHS]$/.test(e)&&/^P([.,\\d]+Y)?([.,\\d]+M)?([.,\\d]+D)?(T([.,\\d]+H)?([.,\\d]+M)?([.,\\d]+S)?)?$/.test(e));function Yt(e){return e.test.bind(e)}var mz={date:pz,time:fz.bind(void 0,!1),"date-time":ZP,duration:LP,uri:JP,"uri-reference":Yt(EP),"uri-template":Yt(PP),url:Yt(OP),email:UP,hostname:Yt(xP),ipv4:Yt(MP),ipv6:Yt(DP),regex:HP,uuid:Yt(CP),"json-pointer":Yt(NP),"json-pointer-uri-fragment":Yt(jP),"relative-json-pointer":Yt(AP)};function qP(e){return e%4===0&&(e%100!==0||e%400===0)}function pz(e){let t=e.match(wP);if(!t)return!1;let n=+t[1],o=+t[2],r=+t[3];return o>=1&&o<=12&&r>=1&&r<=(o==2&&qP(n)?29:IP[o])}function fz(e,t){let n=t.match(TP);if(!n)return!1;let o=+n[1],r=+n[2],i=+n[3],a=!!n[5];return(o<=23&&r<=59&&i<=59||o==23&&r==59&&i==60)&&(!e||a)}var VP=/t|\\s/i;function ZP(e){let t=e.split(VP);return t.length==2&&pz(t[0])&&fz(!0,t[1])}var FP=/\\/|:/,KP=/^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&\'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&\'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function JP(e){return FP.test(e)&&KP.test(e)}var BP=/[^\\\\]\\\\Z/;function HP(e){if(BP.test(e))return!1;try{return new RegExp(e,"u"),!0}catch{return!1}}function YP(e){let t=0,n=e.length,o=0,r;for(;o<n;)t++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<n&&(r=e.charCodeAt(o),(r&64512)==56320&&o++);return t}function be(e,t,n="2019-09",o=In(t),r=!0,i=null,a="#",s="#",c=Object.create(null)){if(t===!0)return{valid:!0,errors:[]};if(t===!1)return{valid:!1,errors:[{instanceLocation:a,keyword:"false",keywordLocation:a,error:"False boolean schema."}]};let l=typeof e,d;switch(l){case"boolean":case"number":case"string":d=l;break;case"object":e===null?d="null":Array.isArray(e)?d="array":d="object";break;default:throw new Error(`Instances of "${l}" type are not supported.`)}let{$ref:m,$recursiveRef:p,$recursiveAnchor:f,type:h,const:S,enum:y,required:w,not:T,anyOf:E,allOf:K,oneOf:Z,if:N,then:re,else:oe,format:H,properties:ve,patternProperties:ye,additionalProperties:ce,unevaluatedProperties:Ie,minProperties:xe,maxProperties:Ae,propertyNames:Ze,dependentRequired:Xe,dependentSchemas:gt,dependencies:Nt,prefixItems:ct,items:Fe,additionalItems:Gt,unevaluatedItems:Wt,contains:jt,minContains:Ue,maxContains:Ke,minItems:Je,maxItems:kt,uniqueItems:Kr,minimum:lt,maximum:ut,exclusiveMinimum:Qe,exclusiveMaximum:vt,multipleOf:_t,minLength:At,maxLength:Ut,pattern:mr,__absolute_ref__:Mt,__absolute_recursive_ref__:Jr}=t,D=[];if(f===!0&&i===null&&(i=t),p==="#"){let G=i===null?o[Jr]:i,J=`${s}/$recursiveRef`,ae=be(e,i===null?t:i,n,o,r,G,a,J,c);ae.valid||D.push({instanceLocation:a,keyword:"$recursiveRef",keywordLocation:J,error:"A subschema had errors."},...ae.errors)}if(m!==void 0){let G=o[Mt||m];if(G===void 0){let q=`Unresolved $ref "${m}".`;throw Mt&&Mt!==m&&(q+=` Absolute URI "${Mt}".`),q+=`\nKnown schemas:\n- ${Object.keys(o).join(`\n- `)}`,new Error(q)}let J=`${s}/$ref`,ae=be(e,G,n,o,r,i,a,J,c);if(ae.valid||D.push({instanceLocation:a,keyword:"$ref",keywordLocation:J,error:"A subschema had errors."},...ae.errors),n==="4"||n==="7")return{valid:D.length===0,errors:D}}if(Array.isArray(h)){let G=h.length,J=!1;for(let ae=0;ae<G;ae++)if(d===h[ae]||h[ae]==="integer"&&d==="number"&&e%1===0&&e===e){J=!0;break}J||D.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${d}" is invalid. Expected "${h.join(\'", "\')}".`})}else h==="integer"?(d!=="number"||e%1||e!==e)&&D.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${d}" is invalid. Expected "${h}".`}):h!==void 0&&d!==h&&D.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${d}" is invalid. Expected "${h}".`});if(S!==void 0&&(d==="object"||d==="array"?Fa(e,S)||D.push({instanceLocation:a,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(S)}.`}):e!==S&&D.push({instanceLocation:a,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(S)}.`})),y!==void 0&&(d==="object"||d==="array"?y.some(G=>Fa(e,G))||D.push({instanceLocation:a,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(y)}.`}):y.some(G=>e===G)||D.push({instanceLocation:a,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(y)}.`})),T!==void 0){let G=`${s}/not`;be(e,T,n,o,r,i,a,G).valid&&D.push({instanceLocation:a,keyword:"not",keywordLocation:G,error:\'Instance matched "not" schema.\'})}let Dt=[];if(E!==void 0){let G=`${s}/anyOf`,J=D.length,ae=!1;for(let q=0;q<E.length;q++){let U=E[q],Q=Object.create(c),X=be(e,U,n,o,r,f===!0?i:null,a,`${G}/${q}`,Q);D.push(...X.errors),ae=ae||X.valid,X.valid&&Dt.push(Q)}ae?D.length=J:D.splice(J,0,{instanceLocation:a,keyword:"anyOf",keywordLocation:G,error:"Instance does not match any subschemas."})}if(K!==void 0){let G=`${s}/allOf`,J=D.length,ae=!0;for(let q=0;q<K.length;q++){let U=K[q],Q=Object.create(c),X=be(e,U,n,o,r,f===!0?i:null,a,`${G}/${q}`,Q);D.push(...X.errors),ae=ae&&X.valid,X.valid&&Dt.push(Q)}ae?D.length=J:D.splice(J,0,{instanceLocation:a,keyword:"allOf",keywordLocation:G,error:"Instance does not match every subschema."})}if(Z!==void 0){let G=`${s}/oneOf`,J=D.length,ae=Z.filter((q,U)=>{let Q=Object.create(c),X=be(e,q,n,o,r,f===!0?i:null,a,`${G}/${U}`,Q);return D.push(...X.errors),X.valid&&Dt.push(Q),X.valid}).length;ae===1?D.length=J:D.splice(J,0,{instanceLocation:a,keyword:"oneOf",keywordLocation:G,error:`Instance does not match exactly one subschema (${ae} matches).`})}if((d==="object"||d==="array")&&Object.assign(c,...Dt),N!==void 0){let G=`${s}/if`;if(be(e,N,n,o,r,i,a,G,c).valid){if(re!==void 0){let J=be(e,re,n,o,r,i,a,`${s}/then`,c);J.valid||D.push({instanceLocation:a,keyword:"if",keywordLocation:G,error:\'Instance does not match "then" schema.\'},...J.errors)}}else if(oe!==void 0){let J=be(e,oe,n,o,r,i,a,`${s}/else`,c);J.valid||D.push({instanceLocation:a,keyword:"if",keywordLocation:G,error:\'Instance does not match "else" schema.\'},...J.errors)}}if(d==="object"){if(w!==void 0)for(let q of w)q in e||D.push({instanceLocation:a,keyword:"required",keywordLocation:`${s}/required`,error:`Instance does not have required property "${q}".`});let G=Object.keys(e);if(xe!==void 0&&G.length<xe&&D.push({instanceLocation:a,keyword:"minProperties",keywordLocation:`${s}/minProperties`,error:`Instance does not have at least ${xe} properties.`}),Ae!==void 0&&G.length>Ae&&D.push({instanceLocation:a,keyword:"maxProperties",keywordLocation:`${s}/maxProperties`,error:`Instance does not have at least ${Ae} properties.`}),Ze!==void 0){let q=`${s}/propertyNames`;for(let U in e){let Q=`${a}/${Ot(U)}`,X=be(U,Ze,n,o,r,i,Q,q);X.valid||D.push({instanceLocation:a,keyword:"propertyNames",keywordLocation:q,error:`Property name "${U}" does not match schema.`},...X.errors)}}if(Xe!==void 0){let q=`${s}/dependantRequired`;for(let U in Xe)if(U in e){let Q=Xe[U];for(let X of Q)X in e||D.push({instanceLocation:a,keyword:"dependentRequired",keywordLocation:q,error:`Instance has "${U}" but does not have "${X}".`})}}if(gt!==void 0)for(let q in gt){let U=`${s}/dependentSchemas`;if(q in e){let Q=be(e,gt[q],n,o,r,i,a,`${U}/${Ot(q)}`,c);Q.valid||D.push({instanceLocation:a,keyword:"dependentSchemas",keywordLocation:U,error:`Instance has "${q}" but does not match dependant schema.`},...Q.errors)}}if(Nt!==void 0){let q=`${s}/dependencies`;for(let U in Nt)if(U in e){let Q=Nt[U];if(Array.isArray(Q))for(let X of Q)X in e||D.push({instanceLocation:a,keyword:"dependencies",keywordLocation:q,error:`Instance has "${U}" but does not have "${X}".`});else{let X=be(e,Q,n,o,r,i,a,`${q}/${Ot(U)}`);X.valid||D.push({instanceLocation:a,keyword:"dependencies",keywordLocation:q,error:`Instance has "${U}" but does not match dependant schema.`},...X.errors)}}}let J=Object.create(null),ae=!1;if(ve!==void 0){let q=`${s}/properties`;for(let U in ve){if(!(U in e))continue;let Q=`${a}/${Ot(U)}`,X=be(e[U],ve[U],n,o,r,i,Q,`${q}/${Ot(U)}`);if(X.valid)c[U]=J[U]=!0;else if(ae=r,D.push({instanceLocation:a,keyword:"properties",keywordLocation:q,error:`Property "${U}" does not match schema.`},...X.errors),ae)break}}if(!ae&&ye!==void 0){let q=`${s}/patternProperties`;for(let U in ye){let Q=new RegExp(U,"u"),X=ye[U];for(let Te in e){if(!Q.test(Te))continue;let Br=`${a}/${Ot(Te)}`,Lt=be(e[Te],X,n,o,r,i,Br,`${q}/${Ot(U)}`);Lt.valid?c[Te]=J[Te]=!0:(ae=r,D.push({instanceLocation:a,keyword:"patternProperties",keywordLocation:q,error:`Property "${Te}" matches pattern "${U}" but does not match associated schema.`},...Lt.errors))}}}if(!ae&&ce!==void 0){let q=`${s}/additionalProperties`;for(let U in e){if(J[U])continue;let Q=`${a}/${Ot(U)}`,X=be(e[U],ce,n,o,r,i,Q,q);X.valid?c[U]=!0:(ae=r,D.push({instanceLocation:a,keyword:"additionalProperties",keywordLocation:q,error:`Property "${U}" does not match additional properties schema.`},...X.errors))}}else if(!ae&&Ie!==void 0){let q=`${s}/unevaluatedProperties`;for(let U in e)if(!c[U]){let Q=`${a}/${Ot(U)}`,X=be(e[U],Ie,n,o,r,i,Q,q);X.valid?c[U]=!0:D.push({instanceLocation:a,keyword:"unevaluatedProperties",keywordLocation:q,error:`Property "${U}" does not match unevaluated properties schema.`},...X.errors)}}}else if(d==="array"){kt!==void 0&&e.length>kt&&D.push({instanceLocation:a,keyword:"maxItems",keywordLocation:`${s}/maxItems`,error:`Array has too many items (${e.length} > ${kt}).`}),Je!==void 0&&e.length<Je&&D.push({instanceLocation:a,keyword:"minItems",keywordLocation:`${s}/minItems`,error:`Array has too few items (${e.length} < ${Je}).`});let G=e.length,J=0,ae=!1;if(ct!==void 0){let q=`${s}/prefixItems`,U=Math.min(ct.length,G);for(;J<U;J++){let Q=be(e[J],ct[J],n,o,r,i,`${a}/${J}`,`${q}/${J}`);if(c[J]=!0,!Q.valid&&(ae=r,D.push({instanceLocation:a,keyword:"prefixItems",keywordLocation:q,error:"Items did not match schema."},...Q.errors),ae))break}}if(Fe!==void 0){let q=`${s}/items`;if(Array.isArray(Fe)){let U=Math.min(Fe.length,G);for(;J<U;J++){let Q=be(e[J],Fe[J],n,o,r,i,`${a}/${J}`,`${q}/${J}`);if(c[J]=!0,!Q.valid&&(ae=r,D.push({instanceLocation:a,keyword:"items",keywordLocation:q,error:"Items did not match schema."},...Q.errors),ae))break}}else for(;J<G;J++){let U=be(e[J],Fe,n,o,r,i,`${a}/${J}`,q);if(c[J]=!0,!U.valid&&(ae=r,D.push({instanceLocation:a,keyword:"items",keywordLocation:q,error:"Items did not match schema."},...U.errors),ae))break}if(!ae&&Gt!==void 0){let U=`${s}/additionalItems`;for(;J<G;J++){let Q=be(e[J],Gt,n,o,r,i,`${a}/${J}`,U);c[J]=!0,Q.valid||(ae=r,D.push({instanceLocation:a,keyword:"additionalItems",keywordLocation:U,error:"Items did not match additional items schema."},...Q.errors))}}}if(jt!==void 0)if(G===0&&Ue===void 0)D.push({instanceLocation:a,keyword:"contains",keywordLocation:`${s}/contains`,error:"Array is empty. It must contain at least one item matching the schema."});else if(Ue!==void 0&&G<Ue)D.push({instanceLocation:a,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array has less items (${G}) than minContains (${Ue}).`});else{let q=`${s}/contains`,U=D.length,Q=0;for(let X=0;X<G;X++){let Te=be(e[X],jt,n,o,r,i,`${a}/${X}`,q);Te.valid?(c[X]=!0,Q++):D.push(...Te.errors)}Q>=(Ue||0)&&(D.length=U),Ue===void 0&&Ke===void 0&&Q===0?D.splice(U,0,{instanceLocation:a,keyword:"contains",keywordLocation:q,error:"Array does not contain item matching schema."}):Ue!==void 0&&Q<Ue?D.push({instanceLocation:a,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array must contain at least ${Ue} items matching schema. Only ${Q} items were found.`}):Ke!==void 0&&Q>Ke&&D.push({instanceLocation:a,keyword:"maxContains",keywordLocation:`${s}/maxContains`,error:`Array may contain at most ${Ke} items matching schema. ${Q} items were found.`})}if(!ae&&Wt!==void 0){let q=`${s}/unevaluatedItems`;for(;J<G;J++){if(c[J])continue;let U=be(e[J],Wt,n,o,r,i,`${a}/${J}`,q);c[J]=!0,U.valid||D.push({instanceLocation:a,keyword:"unevaluatedItems",keywordLocation:q,error:"Items did not match unevaluated items schema."},...U.errors)}}if(Kr)for(let q=0;q<G;q++){let U=e[q],Q=typeof U=="object"&&U!==null;for(let X=0;X<G;X++){if(q===X)continue;let Te=e[X];(U===Te||Q&&typeof Te=="object"&&Te!==null&&Fa(U,Te))&&(D.push({instanceLocation:a,keyword:"uniqueItems",keywordLocation:`${s}/uniqueItems`,error:`Duplicate items at indexes ${q} and ${X}.`}),q=Number.MAX_SAFE_INTEGER,X=Number.MAX_SAFE_INTEGER)}}}else if(d==="number"){if(n==="4"?(lt!==void 0&&(Qe===!0&&e<=lt||e<lt)&&D.push({instanceLocation:a,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${Qe?"or equal to ":""} ${lt}.`}),ut!==void 0&&(vt===!0&&e>=ut||e>ut)&&D.push({instanceLocation:a,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${vt?"or equal to ":""} ${ut}.`})):(lt!==void 0&&e<lt&&D.push({instanceLocation:a,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${lt}.`}),ut!==void 0&&e>ut&&D.push({instanceLocation:a,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${ut}.`}),Qe!==void 0&&e<=Qe&&D.push({instanceLocation:a,keyword:"exclusiveMinimum",keywordLocation:`${s}/exclusiveMinimum`,error:`${e} is less than ${Qe}.`}),vt!==void 0&&e>=vt&&D.push({instanceLocation:a,keyword:"exclusiveMaximum",keywordLocation:`${s}/exclusiveMaximum`,error:`${e} is greater than or equal to ${vt}.`})),_t!==void 0){let G=e%_t;Math.abs(0-G)>=11920929e-14&&Math.abs(_t-G)>=11920929e-14&&D.push({instanceLocation:a,keyword:"multipleOf",keywordLocation:`${s}/multipleOf`,error:`${e} is not a multiple of ${_t}.`})}}else if(d==="string"){let G=At===void 0&&Ut===void 0?0:YP(e);At!==void 0&&G<At&&D.push({instanceLocation:a,keyword:"minLength",keywordLocation:`${s}/minLength`,error:`String is too short (${G} < ${At}).`}),Ut!==void 0&&G>Ut&&D.push({instanceLocation:a,keyword:"maxLength",keywordLocation:`${s}/maxLength`,error:`String is too long (${G} > ${Ut}).`}),mr!==void 0&&!new RegExp(mr,"u").test(e)&&D.push({instanceLocation:a,keyword:"pattern",keywordLocation:`${s}/pattern`,error:"String does not match pattern."}),H!==void 0&&mz[H]&&!mz[H](e)&&D.push({instanceLocation:a,keyword:"format",keywordLocation:`${s}/format`,error:`String does not match format "${H}".`})}return{valid:D.length===0,errors:D}}var GP=class{schema;draft;shortCircuit;lookup;constructor(e,t="2019-09",n=!0){this.schema=e,this.draft=t,this.shortCircuit=n,this.lookup=In(e)}validate(e){return be(e,this.schema,this.draft,this.lookup,this.shortCircuit)}addSchema(e,t){t&&(e={...e,$id:t}),In(e,this.lookup)}},_d=class{shortcircuit;draft;constructor(e){this.shortcircuit=e?.shortcircuit??!0,this.draft=e?.draft}_draftFor(e){let t=N_(e,"pass an explicit { draft } to CfWorkerJsonSchemaValidator to validate other dialects.");return t==="draft-7"?"7":t}getValidator(e){let t=new GP(e,this.draft??this._draftFor(e),this.shortcircuit);return n=>{let o=t.validate(n);return o.valid?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:o.errors.map(r=>`${r.instanceLocation}: ${r.error}`).join("; ")}}}};Xv();var kz=Symbol.for("mcp.completable");function e_(e){return!!e&&typeof e=="object"&&kz in e}function XP(e){return e[kz]?.complete}var Ja=15e3,QP=2**31-1;function Sd(e,t){if(!Number.isFinite(e)||e<1)return;let n=setInterval(t,Math.min(e,QP));return n.unref?.(),n}var wz=class{_listeners=new Set;constructor(e){this.onerror=e}publish(e){for(let t of this._listeners)try{t(e)}catch(n){this.onerror?.(n instanceof Error?n:new Error(String(n)))}}subscribe(e){this._listeners.add(e);let t=!0;return()=>{t&&(t=!1,this._listeners.delete(e))}}get listenerCount(){return this._listeners.size}};function Iz(e){return{toolsChanged:()=>e.publish({kind:"tools_list_changed"}),promptsChanged:()=>e.publish({kind:"prompts_list_changed"}),resourcesChanged:()=>e.publish({kind:"resources_list_changed"}),resourceUpdated:t=>e.publish({kind:"resource_updated",uri:t})}}function e0(e,t){switch(t.kind){case"tools_list_changed":return e.toolsListChanged===!0;case"prompts_list_changed":return e.promptsListChanged===!0;case"resources_list_changed":return e.resourcesListChanged===!0;case"resource_updated":return e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.includes(t.uri)}}function t0(e,t){let n={},o=r=>t===void 0||r===!0;return e.toolsListChanged===!0&&o(t?.tools?.listChanged)&&(n.toolsListChanged=!0),e.promptsListChanged===!0&&o(t?.prompts?.listChanged)&&(n.promptsListChanged=!0),e.resourcesListChanged===!0&&o(t?.resources?.listChanged)&&(n.resourcesListChanged=!0),e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.length>0&&o(t?.resources?.subscribe)&&(n.resourceSubscriptions=[...e.resourceSubscriptions]),n}function r0(e){switch(e.kind){case"tools_list_changed":return{method:"notifications/tools/list_changed"};case"prompts_list_changed":return{method:"notifications/prompts/list_changed"};case"resources_list_changed":return{method:"notifications/resources/list_changed"};case"resource_updated":return{method:"notifications/resources/updated",params:{uri:e.uri}}}}var t_=1024;function hz(e,t,n){return Response.json({jsonrpc:"2.0",error:{code:t,message:n},id:e},{status:200})}function gz(e,t){return{method:e.method,params:{...e.params,_meta:{...e.params?._meta,[bn]:t}}}}function n0(e){let t=Vr(Va).validateRequest("subscriptions/listen",e);return t.ok?t.value.params?.notifications:void 0}function Tz(e){let{bus:t,onerror:n}=e,o=e.maxSubscriptions??t_,r=e.keepAliveMs??Ja,i=new Set;function a(s,c,l,d){if(i.size>=o)return n?.(new Error(`subscriptions/listen refused: subscription limit reached (${o})`)),hz(s.id,-32603,"Subscription limit reached");let m=n0(s);if(m===void 0)return hz(s.id,-32602,"Invalid params: \'notifications\' is required and must be a valid SubscriptionFilter");let p=t0(m,l),f=s.id,h=new TextEncoder,S,y=!1,w,T,E,K=oe=>{if(!y)try{S.enqueue(h.encode(oe))}catch(H){n?.(H instanceof Error?H:new Error(String(H)))}},Z=(oe,H)=>{K(`event: message\ndata: ${JSON.stringify({jsonrpc:"2.0",method:oe,params:H})}\n\n`)},N=oe=>{if(!y){oe&&K(`event: message\ndata: ${JSON.stringify({jsonrpc:"2.0",id:f,result:{resultType:"complete",_meta:{[bn]:f,[Jt]:d}}})}\n\n`),y=!0;try{w?.()}catch(H){n?.(H instanceof Error?H:new Error(String(H)))}T!==void 0&&clearInterval(T),E?.(),i.delete(N);try{S.close()}catch{}}},re=new ReadableStream({start(oe){S=oe;let H=gz({method:"notifications/subscriptions/acknowledged",params:{notifications:p}},f);if(Z(H.method,H.params),Object.keys(p).length===0){N(!0);return}w=t.subscribe(ve=>{if(y||!e0(p,ve))return;let ye=gz(r0(ve),f);Z(ye.method,ye.params)}),T=Sd(r,()=>K(`: keepalive\n\n`)),i.add(N)},cancel(){N(!1)}});if(c!==void 0)if(c.aborted)N(!1);else{let oe=()=>N(!1);c.addEventListener("abort",oe,{once:!0}),E=()=>c.removeEventListener("abort",oe)}return new Response(re,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}})}return{serve:a,closeAll(){for(let s of i)s(!0)},get openCount(){return i.size}}}function yd(e){return e.replaceAll(/[\\\\"]/g,String.raw`\\$&`).replaceAll(/[^\\u0020-\\u007E]/g," ")}function vz(e,t,n,o){let r=`Bearer error="${yd(e)}", error_description="${yd(t)}"`;return n.length>0&&(r+=`, scope="${yd(n.join(" "))}"`),o&&(r+=`, resource_metadata="${yd(o)}"`),r}function xz(e,t){let{requiredScopes:n=[],resourceMetadataUrl:o}=t??{};if(!(e instanceof Ma)){let r=new Ma(kn.ServerError,"Internal Server Error");return Response.json(r.toResponseObject(),{status:500})}switch(e.code){case kn.InvalidToken:{let r=vz(e.code,e.message,n,o);return Response.json(e.toResponseObject(),{status:401,headers:{"WWW-Authenticate":r}})}case kn.InsufficientScope:{let r=vz(e.code,e.message,n,o);return Response.json(e.toResponseObject(),{status:403,headers:{"WWW-Authenticate":r}})}case kn.ServerError:return Response.json(e.toResponseObject(),{status:500});default:return Response.json(e.toResponseObject(),{status:400})}}function Ez(e){let t=new URL(e);return t.pathname=o0(e),t.hash="",t.href}function o0(e){let t=i0(e.pathname);return`/.well-known/oauth-protected-resource${t==="/"?"":t}`}function i0(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function a0(e){return typeof e=="object"&&e!==null&&"setScopeChallengeResolver"in e&&typeof e.setScopeChallengeResolver=="function"}function s0(e,t){if(typeof e!="string"||!/^[\\u0021\\u0023-\\u005B\\u005D-\\u007E]+$/.test(e))throw new TypeError(`${t} must satisfy the OAuth scope-token grammar`)}function c0(e){if(e===null||typeof e!="object"||!Array.isArray(e.scopes)||e.scopes.length===0)throw new TypeError("scope challenge must contain at least one scope");for(let[t,n]of e.scopes.entries())s0(n,`scope challenge scopes[${t}]`);if(e.errorDescription!==void 0&&typeof e.errorDescription!="string")throw new TypeError("scope challenge errorDescription must be a string");if(e.errorDescription!==void 0&&!/^[\\u0020-\\u0021\\u0023-\\u005B\\u005D-\\u007E]+$/.test(e.errorDescription))throw new TypeError("scope challenge errorDescription must satisfy the RFC 6750 error-description grammar");return e}async function r_(e,t,n){for(let o of e){let r=await n({request:o,...t!==void 0&&{authInfo:t}});if(r!==void 0)return c0(r)}}function n_(e){if(e?.resourceMetadataUrl!==void 0)return e.resourceMetadataUrl;if(e?.resource?.protocol==="https:"||e?.resource?.protocol==="http:")return Ez(e.resource)}function o_(e,t){return xz(new Ma(kn.InsufficientScope,e.errorDescription??"Insufficient scope"),{requiredScopes:[...e.scopes],resourceMetadataUrl:t})}var l0=8,u0=6e5;function d0(e){if(e?.maxRounds!==void 0&&(!Number.isInteger(e.maxRounds)||e.maxRounds<1))throw new RangeError(`inputRequired.maxRounds must be a positive integer (got ${e.maxRounds})`);if(e?.roundTimeoutMs!==void 0&&(!Number.isFinite(e.roundTimeoutMs)||e.roundTimeoutMs<=0))throw new RangeError(`inputRequired.roundTimeoutMs must be a positive number (got ${e.roundTimeoutMs})`);return{maxRounds:e?.maxRounds??l0,roundTimeoutMs:e?.roundTimeoutMs??u0,legacyShim:e?.legacyShim??!0}}function Pz(e,t,n){if(n===null||typeof n!="object"||typeof n.method!="string")throw new V(C.InternalError,`Handler for ${e} returned an invalid input request \'${t}\': each inputRequests entry must be an embedded elicitation/create, sampling/createMessage, or roots/list request`);let o=n,r=x$(o);if(r===void 0)throw new V(C.InternalError,`Handler for ${e} returned an input request \'${t}\' of kind \'${o.method}\', which is not an embedded request the 2026-07-28 revision defines`);return{embedded:o,required:r}}function m0(){let e=globalThis.crypto;if(e?.randomUUID!==void 0)return e.randomUUID();let t=new Uint8Array(16);e.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=[...t].map(o=>o.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}function Qv(e,t){if(e==="tools/call")return{content:[{type:"text",text:t}],isError:!0};throw new V(C.InternalError,t)}var p0=class{constructor(e){this._host=e}async fulfill(e,t,n,o,r){let{maxRounds:i,roundTimeoutMs:a}=this._host,s=o.mcpReq.signal,c=r,l=0;for(;;){if(l+=1,l>i)return Qv(e,nz(e,i));let d=c.inputRequests,m=d!=null&&Object.keys(d).length>0,p=typeof c.requestState=="string"?c.requestState:void 0;if(!m&&p===void 0)throw new V(C.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);let f;if(m){let y=this._host.resolvedClientCapabilities(o),w=[];for(let[E,K]of Object.entries(d)){let{embedded:Z,required:N}=Pz(e,E,K);if(Z.method!=="roots/list"&&Z.params===void 0)throw new V(C.InternalError,`Handler for ${e} returned an input request \'${E}\' of kind \'${Z.method}\' without params`);if(Da(N,y)!==void 0)return Qv(e,`Cannot request input \'${E}\' (${Z.method}): the client on this 2025-era connection did not declare the required capability${y===void 0?" (no client capabilities are available on this connection \\u2014 per-request legacy serving cannot receive server-to-client requests)":""}`);w.push([E,Z])}let T=iz(s);try{let E={relatedRequestId:o.mcpReq.id,timeout:a,resetTimeoutOnProgress:!0,onprogress:()=>{},signal:T.signal},K=await Promise.all(w.map(async([Z,N])=>{try{return[Z,await this._dispatchLeg(N,E)]}catch(re){throw T.abort(re),re}}));f=Object.fromEntries(K)}catch(E){if(s.aborted)throw E;return Qv(e,`Fulfilling input required by \'${e}\' failed: ${E instanceof Error?E.message:String(E)}`)}finally{T.dispose()}}else await oz(rz,s);let h={...o,mcpReq:{...o.mcpReq,inputResponses:f,droppedInputResponseKeys:void 0,requestState:Za(p)}};if(p!==void 0){let y=await this._host.verifyRequestState(p,h,e);y!==void 0&&(h=Jv(h,y))}let S=await t(n,h);if(!cr(S))return S;c=S}}async _dispatchLeg(e,t){switch(e.method){case"elicitation/create":{let n=e.params;return n.mode==="url"&&n.elicitationId===void 0&&(n={...n,elicitationId:m0()}),await this._host.sendElicitation(n,t)}case"sampling/createMessage":return await this._host.sendSampling(e.params,t);case"roots/list":return await this._host.listRoots(e.params,t)}}},f0=new Set(["tools/call","prompts/get","resources/read"]),Oz,Cz,Nz;function jz(e,t){Oz(e,t)}function Az(e,t){Cz(e,t)}function Uz(e){return Nz(e)}var Mz=class extends Bv{_clientCapabilities;_clientVersion;static{Oz=(e,t)=>{t.clientCapabilities!==void 0&&(e._clientCapabilities=t.clientCapabilities),t.clientInfo!==void 0&&(e._clientVersion=t.clientInfo)},Cz=(e,t)=>{let n=t.filter(o=>!e._supportedProtocolVersions.includes(o));n.length>0&&(e._supportedProtocolVersions=[...e._supportedProtocolVersions,...n]),e.setRequestHandler("server/discover",()=>e._ondiscover())},Nz=e=>e._serverInfo}_capabilities;_instructions;_jsonSchemaValidator;_cacheHints;_requestStateVerify;_inputRequiredServing;_legacyShim;_legacyInputRequiredShim(){return this._legacyShim??=new p0({maxRounds:this._inputRequiredServing.maxRounds,roundTimeoutMs:this._inputRequiredServing.roundTimeoutMs,resolvedClientCapabilities:e=>this._inputRequestCapabilityView(e),verifyRequestState:(e,t,n)=>this._verifyRequestState(e,t,n),sendElicitation:(e,t)=>this._sendElicitationLeg(e,t,{validateAcceptedContent:!1}),sendSampling:(e,t)=>this.createMessage(e,t),listRoots:(e,t)=>this.listRoots(e,t)})}oninitialized;constructor(e,t){if(super(t),this._serverInfo=e,this._capabilities=t?.capabilities?{...t.capabilities}:{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new _d,this._requestStateVerify=t?.requestState?.verify,this._inputRequiredServing=d0(t?.inputRequired),t?.cacheHints!==void 0){for(let[n,o]of Object.entries(t.cacheHints))o!==void 0&&jv(o,`cacheHints[\'${n}\']`);this._cacheHints=t.cacheHints}this.setRequestHandler("initialize",n=>this._oninitialize(n)),this.setNotificationHandler("notifications/initialized",()=>this.oninitialized?.()),xv(this._supportedProtocolVersions).length>0&&this.setRequestHandler("server/discover",()=>this._ondiscover()),this._capabilities.logging&&this._registerLoggingHandler()}async connect(e){if(this.transport!==void 0)throw new ne(se.AlreadyConnected,"Use a separate Server instance per connection: this instance is already connected to a transport. To connect it to a new transport, call close() first.");await super.connect(e)}_registerLoggingHandler(){this.setRequestHandler("logging/setLevel",async(e,t)=>{let n=t.sessionId||t.http?.req?.headers.get("mcp-session-id")||void 0,{level:o}=e.params,r=gd(Lr,o);return r.success&&this._loggingLevels.set(n,r.data),{}})}buildContext(e,t){let n=e.http||t?.request||t?.closeSSEStream||t?.closeStandaloneSSEStream;return{...e,mcpReq:{...e.mcpReq,log:(o,r,i)=>{if(!this._capabilities.logging)return Promise.resolve();let a;if(this._servedModernEra()){if(a=e.mcpReq.envelope?.[Nr],a===void 0)return Promise.resolve()}else a=this._loggingLevels.get(e.sessionId)??this._loggingLevels.get(void 0);return a!==void 0&&this.LOG_LEVEL_SEVERITY.get(o)<this.LOG_LEVEL_SEVERITY.get(a)?Promise.resolve():e.mcpReq.notify({method:"notifications/message",params:{level:o,data:r,logger:i}})},elicitInput:(o,r)=>this.elicitInput(o,r),requestSampling:(o,r)=>this.createMessage(o,r)},http:n?{...e.http,req:t?.request,closeSSE:t?.closeSSEStream,closeStandaloneSSE:t?.closeStandaloneSSEStream}:void 0}}_loggingLevels=new Map;LOG_LEVEL_SEVERITY=new Map(Lr.options.map((e,t)=>[e,t]));isMessageIgnored=(e,t)=>{let n=this._loggingLevels.get(t);return n?this.LOG_LEVEL_SEVERITY.get(e)<this.LOG_LEVEL_SEVERITY.get(n):!1};registerCapabilities(e){if(this.transport)throw new ne(se.AlreadyConnected,"Cannot register capabilities after connecting to transport");let t=!!this._capabilities.logging;this._capabilities=Hv(this._capabilities,e),!t&&this._capabilities.logging&&this._registerLoggingHandler()}_wrapHandler(e,t){if(e!=="tools/call"){let n=this._cacheHints?.[e],o=f0.has(e);return n===void 0&&!o?async(r,i)=>{let a=await t(r,i);if(cr(a))throw new V(C.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}:async(r,i)=>{let a=o?await this._invokeInputRequiredCapableHandler(e,t,r,i):await t(r,i);if(cr(a)){if(!o)throw new V(C.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}return n===void 0?a:ud(a,n)}}return async(n,o)=>{let r=Vr(this._negotiatedProtocolVersion),i=r.validateRequest("tools/call",n);if(!i.ok)throw new V(i.reason==="not-in-era"?C.InternalError:C.InvalidParams,i.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call request: ${i.message}`);let a=await this._invokeInputRequiredCapableHandler("tools/call",t,n,o);if(cr(a))return a;let s=Ev(a),c=r.validateResult("tools/call",s);if(!c.ok)throw new V(c.reason==="not-in-era"?C.InternalError:C.InvalidParams,c.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call result: ${c.message}`);return c.value}}_servedModernEra(){return this._negotiatedProtocolVersion!==void 0&&ar(this._negotiatedProtocolVersion)}async _invokeInputRequiredCapableHandler(e,t,n,o){let r=this._servedModernEra(),i=o.mcpReq.requestState();if(i!==void 0&&typeof i!="string")throw new V(C.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"});let a=o;if(typeof i=="string"){let m=await this._verifyRequestState(i,o,e);m!==void 0&&(a=Jv(o,m))}let s;try{s=await t(n,a)}catch(m){throw m instanceof V&&m.code===C.UrlElicitationRequired&&r?new V(C.InternalError,`URL elicitation cannot be signalled by throwing UrlElicitationRequiredError on protocol revision ${this._negotiatedProtocolVersion}: return inputRequired({ inputRequests: { \\u2026: inputRequired.elicitUrl(...) } }) from the handler instead. The urlElicitationRequired error (-32042) of earlier revisions is not available on this revision.`):m}if(!cr(s))return s;if(!r){if(!this._inputRequiredServing.legacyShim)throw new V(C.InternalError,`Handler for ${e} returned an input-required result, but this request is served on protocol revision ${this._negotiatedProtocolVersion??yn}, which has no input_required vocabulary`);return await this._legacyInputRequiredShim().fulfill(e,t,n,a,s)}let c=s.inputRequests,l=c!=null&&Object.keys(c).length>0,d=typeof s.requestState=="string";if(!l&&!d)throw new V(C.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);if(l){let m=this._inputRequestCapabilityView(o);for(let[p,f]of Object.entries(c)){let{embedded:h,required:S}=Pz(e,p,f),y=Da(S,m);if(y!==void 0)throw new qa({requiredCapabilities:y},`Cannot request input \'${p}\' (${h.method}): the request\'s client capabilities do not declare the required capability`)}}return s}async _verifyRequestState(e,t,n){if(this._requestStateVerify!==void 0)try{return await this._requestStateVerify(e,t)}catch(o){throw this.onerror?.(new Error(`requestState verification rejected ${n}: ${o instanceof Error?o.message:String(o)}`)),new V(C.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"})}}_inputRequestCapabilityView(e){return this._servedModernEra()?e.mcpReq.envelope?.[Bt]:this._clientCapabilities}_assertPushApiInServedEra(e){if(this._servedModernEra())throw new ne(se.MethodNotSupportedByProtocolVersion,`Server-to-client requests are not available on protocol revision ${this._negotiatedProtocolVersion}: \'${e}\' cannot be sent while serving a request on that revision. Return inputRequired({ ... }) from the handler instead \\u2014 the client fulfils the embedded requests and retries the original request (multi round-trip requests).`,{method:e,era:"2026-07-28"})}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new ne(se.CapabilityNotSupported,`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new ne(se.CapabilityNotSupported,`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new ne(se.CapabilityNotSupported,`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new ne(se.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new ne(se.CapabilityNotSupported,`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new ne(se.CapabilityNotSupported,`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new ne(se.CapabilityNotSupported,`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new ne(se.CapabilityNotSupported,`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"completion/complete":if(!this._capabilities.completions)throw new ne(se.CapabilityNotSupported,`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new ne(se.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new ne(se.CapabilityNotSupported,`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new ne(se.CapabilityNotSupported,`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new ne(se.CapabilityNotSupported,`Server does not support tools (required for ${e})`);break;case"ping":case"initialize":break}}async _oninitialize(e){let t=e.params.protocolVersion;this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo;let n=P$(this._supportedProtocolVersions),o=n.includes(t)?t:n[0]??yn;return this._negotiatedProtocolVersion=o,this.transport?.setProtocolVersion?.(o),{protocolVersion:o,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}_ondiscover(){return{supportedVersions:xv(this._supportedProtocolVersions),capabilities:h0(this.getCapabilities()),...this._instructions&&{instructions:this._instructions}}}_outboundServerInfo(){return this._serverInfo}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getNegotiatedProtocolVersion(){return this._negotiatedProtocolVersion}projectCallToolResult(e,t){return this._wireCodec().projectCallToolResult(e,t)}getCapabilities(){return this._capabilities}async ping(){return this._assertPushApiInServedEra("ping"),this.request({method:"ping"})}async createMessage(e,t){if(this._assertPushApiInServedEra("sampling/createMessage"),(e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new ne(se.CapabilityNotSupported,"Client does not support sampling tools capability.");if(e.messages.length>0){let i=e.messages.at(-1),a=Array.isArray(i.content)?i.content:[i.content],s=a.some(m=>m.type==="tool_result"),c=e.messages.length>1?e.messages.at(-2):void 0,l=c?Array.isArray(c.content)?c.content:[c.content]:[],d=l.some(m=>m.type==="tool_use");if(s){if(a.some(m=>m.type!=="tool_result"))throw new V(C.InvalidParams,"The last message must contain only tool_result content if any is present");if(!d)throw new V(C.InvalidParams,"tool_result blocks are not matching any tool_use from the previous message")}if(d){let m=new Set(l.filter(f=>f.type==="tool_use").map(f=>f.id)),p=new Set(a.filter(f=>f.type==="tool_result").map(f=>f.toolUseId));if(m.size!==p.size||![...m].every(f=>p.has(f)))throw new V(C.InvalidParams,"ids of tool_result blocks and tool_use blocks from previous message do not match")}}let n=!!(e.tools||e.toolChoice),o=await this.request({method:"sampling/createMessage",params:e},t),r=this._wireCodec().samplingResultVariant(n,o);if(!r.ok)throw new ne(se.InvalidResult,`Invalid sampling/createMessage result: ${r.reason==="invalid"?r.message:r.reason}`);return r.value}async elicitInput(e,t){switch(this._assertPushApiInServedEra("elicitation/create"),e.mode??"form"){case"url":if(!this._clientCapabilities?.elicitation?.url)throw new ne(se.CapabilityNotSupported,"Client does not support url elicitation.");break;case"form":if(!this._clientCapabilities?.elicitation?.form)throw new ne(se.CapabilityNotSupported,"Client does not support form elicitation.");break}return this._sendElicitationLeg(e,t)}async _sendElicitationLeg(e,t,n){let o=e.mode??"form",r=n?.validateAcceptedContent??!0;switch(o){case"url":{let i=e;return this.request({method:"elicitation/create",params:i},t)}case"form":{let i=e.mode==="form"?e:{...e,mode:"form"},a=await this.request({method:"elicitation/create",params:i},t);if(r&&a.action==="accept"&&a.content&&i.requestedSchema)try{let s=this._jsonSchemaValidator.getValidator(i.requestedSchema)(a.content);if(!s.valid)throw new V(C.InvalidParams,`Elicitation response content does not match requested schema: ${s.errorMessage}`)}catch(s){throw s instanceof V?s:new V(C.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return a}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw new ne(se.CapabilityNotSupported,"Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},t)}async listRoots(e,t){return this._assertPushApiInServedEra("roots/list"),this.request({method:"roots/list",params:e},t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};function h0(e){return{...e}}function g0(e,t){let n=0,o=[e];for(;o.length>0;){let r=o.pop();if(!(r===null||typeof r!="object"))if(Array.isArray(r))for(let i of r){if(++n>t)return n;i!==null&&typeof i=="object"&&o.push(i)}else for(let i in r){if(!Object.prototype.hasOwnProperty.call(r,i))continue;if(++n>t)return n;let a=r[i];a!==null&&typeof a=="object"&&o.push(a)}}return n}function v0(e){if(!(e===void 0||e===1/0)){if(typeof e!="number"||Number.isNaN(e)||e<1)throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(e)}`);return e}}var Do=class{server;_maxToolInputElements;_registeredResources={};_registeredResourceTemplates={};_registeredTools={};_registeredPrompts={};_toolInputSchemaJson={};toolInputSchemaJson(e){let t=this._registeredTools[e];if(!(t===void 0||!t.enabled)){if(Object.hasOwn(this._toolInputSchemaJson,e))return this._toolInputSchemaJson[e];if(t.inputSchema===void 0)return yz;try{let n=wn(t.inputSchema,"input");return this._toolInputSchemaJson[e]=n,n}catch{return}}}constructor(e,t){this.server=new Mz(e,t),this._maxToolInputElements=v0(t?.maxToolInputElements),t?.capabilities?.tools&&this.setToolRequestHandlers(),t?.capabilities?.resources&&this.setResourceRequestHandlers(),t?.capabilities?.prompts&&this.setPromptRequestHandlers()}async connect(e){return a0(e)&&e.setScopeChallengeResolver(t=>this.resolveScopeChallenge(t)),await this.server.connect(e)}async close(){await this.server.close()}resolveScopeChallenge=e=>{switch(e.request.method){case"tools/call":{let t=e.request.params?.name;if(typeof t!="string")return;let n=this._registeredTools[t];return n===void 0||!n.enabled?void 0:n.scopeChallenge?.(e)}case"resources/read":{let t=e.request.params?.uri;if(typeof t!="string")return;let n;try{n=new URL(t)}catch{return}let o=this._registeredResources[n.toString()];if(o!==void 0)return o.enabled?o.scopeChallenge?.(e):void 0;for(let r of Object.values(this._registeredResourceTemplates))if(r.resourceTemplate.uriTemplate.match(n.toString()))return r.enabled?r.scopeChallenge?.(e):void 0;return}case"prompts/get":{let t=e.request.params?.name;if(typeof t!="string")return;let n=this._registeredPrompts[t];return n===void 0||!n.enabled?void 0:n.scopeChallenge?.(e)}default:return}};_toolHandlersInitialized=!1;setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler("tools/list"),this.server.assertCanSetRequestHandler("tools/call"),this.server.registerCapabilities({tools:{listChanged:this.server.getCapabilities().tools?.listChanged??!0}}),this.server.setRequestHandler("tools/list",()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?_0(e,t.inputSchema):yz,annotations:t.annotations,icons:t.icons,execution:t.execution,_meta:t._meta};return t.outputSchema&&(n.outputSchema=wn(t.outputSchema,"output")),n})})),this.server.setRequestHandler("tools/call",async(e,t)=>{let n=this._registeredTools[e.params.name];if(!n)throw new V(C.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new V(C.InvalidParams,`Tool ${e.params.name} disabled`);try{let o=await this.validateToolInput(n,e.params.arguments,e.params.name),r=await this.executeToolHandler(n,o,t);return await this.validateToolOutput(n,r,e.params.name),cr(r)?r:this.server.projectCallToolResult(r,n.outputSchemaJson)}catch(o){if(o instanceof V&&o.code===C.UrlElicitationRequired)throw o;return this.createToolError(o instanceof Error?o.message:String(o))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,t,n){if(this._maxToolInputElements!==void 0&&g0(t,this._maxToolInputElements)>this._maxToolInputElements)throw new V(C.InvalidParams,`Invalid arguments for tool ${n}: arguments contain more than the maximum of ${this._maxToolInputElements} elements`);if(!e.inputSchema)return;let o=await Rn(e.inputSchema,t??{});if(!o.success)throw new V(C.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${o.error}`);return o.data}async validateToolOutput(e,t,n){if(!e.outputSchema||cr(t)||t.isError)return;if(t.structuredContent===void 0)throw new V(C.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let o=await Rn(e.outputSchema,t.structuredContent);if(!o.success)throw new V(C.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${o.error}`)}async executeToolHandler(e,t,n){return e.executor(t,n)}_completionHandlerInitialized=!1;setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler("completion/complete"),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler("completion/complete",async e=>{switch(e.params.ref.type){case"ref/prompt":return qv(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return Vv(e),this.handleResourceCompletion(e,e.params.ref);default:throw new V(C.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,t){let n=this._registeredPrompts[t.name];if(!n)throw new V(C.InvalidParams,`Prompt ${t.name} not found`);if(!n.enabled)throw new V(C.InvalidParams,`Prompt ${t.name} disabled`);if(!n.argsSchema)return Ka;let o=Rz(zz(n.argsSchema)?.[e.params.argument.name]);if(!e_(o))return Ka;let r=XP(o);return r?$z(await r(e.params.argument.value,e.params.context)):Ka}async handleResourceCompletion(e,t){let n=Object.values(this._registeredResourceTemplates).find(r=>r.resourceTemplate.uriTemplate.toString()===t.uri);if(!n){if(this._registeredResources[t.uri])return Ka;throw new V(C.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let o=n.resourceTemplate.completeCallback(e.params.argument.name);return o?$z(await o(e.params.argument.value,e.params.context)):Ka}_resourceHandlersInitialized=!1;setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler("resources/list"),this.server.assertCanSetRequestHandler("resources/templates/list"),this.server.assertCanSetRequestHandler("resources/read"),this.server.registerCapabilities({resources:{listChanged:this.server.getCapabilities().resources?.listChanged??!0}}),this.server.setRequestHandler("resources/list",async(e,t)=>{let n=Object.entries(this._registeredResources).filter(([r,i])=>i.enabled).map(([r,i])=>({uri:r,name:i.name,...i.metadata})),o=[];for(let r of Object.values(this._registeredResourceTemplates)){if(!r.resourceTemplate.listCallback)continue;let i=await r.resourceTemplate.listCallback(t);for(let a of i.resources)o.push({...r.metadata,...a})}return{resources:[...n,...o]}}),this.server.setRequestHandler("resources/templates/list",async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([e,t])=>({name:e,uriTemplate:t.resourceTemplate.uriTemplate.toString(),...t.metadata}))})),this.server.setRequestHandler("resources/read",async(e,t)=>{let n;try{n=new URL(e.params.uri)}catch{throw new V(C.InvalidParams,`Resource URI ${e.params.uri} is invalid`,{uri:e.params.uri,reason:"invalid_uri"})}let o=this._registeredResources[n.toString()];if(o){if(!o.enabled)throw new V(C.InvalidParams,`Resource ${n} disabled`);return ud(await o.readCallback(n,t),o.cacheHint)}for(let r of Object.values(this._registeredResourceTemplates)){let i=r.resourceTemplate.uriTemplate.match(n.toString());if(i){if(!r.enabled)throw new V(C.InvalidParams,`Resource template ${r.resourceTemplate.uriTemplate} disabled`);return ud(await r.readCallback(n,i,t),r.cacheHint)}}throw new dd(e.params.uri)}),this._resourceHandlersInitialized=!0)}_promptHandlersInitialized=!1;setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler("prompts/list"),this.server.assertCanSetRequestHandler("prompts/get"),this.server.registerCapabilities({prompts:{listChanged:this.server.getCapabilities().prompts?.listChanged??!0}}),this.server.setRequestHandler("prompts/list",()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,t])=>({name:e,title:t.title,description:t.description,arguments:t.argsSchema?tz(t.argsSchema):void 0,icons:t.icons,_meta:t._meta}))})),this.server.setRequestHandler("prompts/get",async(e,t)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new V(C.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new V(C.InvalidParams,`Prompt ${e.params.name} disabled`);return n.handler(e.params.arguments,t)}),this._promptHandlersInitialized=!0)}registerResource(e,t,n,o){let{cacheHint:r,scopeChallenge:i,...a}=n,s=a;if(r!==void 0&&jv(r,`resource ${e}`),typeof t=="string"){if(this._registeredResources[t])throw new Error(`Resource ${t} is already registered`);let c=this._createRegisteredResource(e,n.title,t,s,i,o);return r!==void 0&&(c.cacheHint=r),this.setResourceRequestHandlers(),this.sendResourceListChanged(),c}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let c=this._createRegisteredResourceTemplate(e,n.title,t,s,i,o);return r!==void 0&&(c.cacheHint=r),this.setResourceRequestHandlers(),this.sendResourceListChanged(),c}}_createRegisteredResource(e,t,n,o,r,i){let a={name:e,title:t,metadata:o,readCallback:i,scopeChallenge:r,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({uri:null}),update:s=>{s.uri!==void 0&&s.uri!==n&&(delete this._registeredResources[n],s.uri&&(this._registeredResources[s.uri]=a)),s.name!==void 0&&(a.name=s.name),s.title!==void 0&&(a.title=s.title),s.metadata!==void 0&&(a.metadata=s.metadata),s.callback!==void 0&&(a.readCallback=s.callback),s.scopeChallenge!==void 0&&(a.scopeChallenge=s.scopeChallenge===null?void 0:s.scopeChallenge),s.enabled!==void 0&&(a.enabled=s.enabled),this.sendResourceListChanged()}};return this._registeredResources[n]=a,a}_createRegisteredResourceTemplate(e,t,n,o,r,i){let a={resourceTemplate:n,title:t,metadata:o,readCallback:i,scopeChallenge:r,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:c=>{c.name!==void 0&&c.name!==e&&(delete this._registeredResourceTemplates[e],c.name&&(this._registeredResourceTemplates[c.name]=a)),c.title!==void 0&&(a.title=c.title),c.template!==void 0&&(a.resourceTemplate=c.template),c.metadata!==void 0&&(a.metadata=c.metadata),c.callback!==void 0&&(a.readCallback=c.callback),c.scopeChallenge!==void 0&&(a.scopeChallenge=c.scopeChallenge===null?void 0:c.scopeChallenge),c.enabled!==void 0&&(a.enabled=c.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=a;let s=n.uriTemplate.variableNames;return Array.isArray(s)&&s.some(c=>!!n.completeCallback(c))&&this.setCompletionRequestHandler(),a}_createRegisteredPrompt(e,t,n,o,r,i,a,s){let c=o,l=r,d={title:t,description:n,argsSchema:o,icons:i,scopeChallenge:a,_meta:s,handler:bz(e,o,r),enabled:!0,disable:()=>d.update({enabled:!1}),enable:()=>d.update({enabled:!0}),remove:()=>d.update({name:null}),update:m=>{m.name!==void 0&&m.name!==e&&(delete this._registeredPrompts[e],m.name&&(this._registeredPrompts[m.name]=d)),m.title!==void 0&&(d.title=m.title),m.description!==void 0&&(d.description=m.description),m.icons!==void 0&&(d.icons=m.icons),m.scopeChallenge!==void 0&&(d.scopeChallenge=m.scopeChallenge===null?void 0:m.scopeChallenge),m._meta!==void 0&&(d._meta=m._meta);let p=!1;m.argsSchema!==void 0&&(d.argsSchema=m.argsSchema,c=m.argsSchema,p=!0),m.callback!==void 0&&(l=m.callback,p=!0),p&&(d.handler=bz(e,c,l)),m.enabled!==void 0&&(d.enabled=m.enabled),this.sendPromptListChanged()}};if(this._registeredPrompts[e]=d,o){let m=zz(o);m&&Object.values(m).some(p=>e_(Rz(p)))&&this.setCompletionRequestHandler()}return d}_createRegisteredTool(e,t,n,o,r,i,a,s,c,l,d){Wv(e);let m=d,p,f={title:t,description:n,inputSchema:o,outputSchema:r,get outputSchemaJson(){return p??=Sz(f.outputSchema)},set outputSchemaJson(h){p=h},annotations:i,icons:a,execution:s,scopeChallenge:c,_meta:l,handler:d,executor:_z(o,d),enabled:!0,disable:()=>f.update({enabled:!1}),enable:()=>f.update({enabled:!0}),remove:()=>f.update({name:null}),update:h=>{h.name!==void 0&&h.name!==e&&(typeof h.name=="string"&&Wv(h.name),delete this._registeredTools[e],delete this._toolInputSchemaJson[e],h.name&&(delete this._toolInputSchemaJson[h.name],this._registeredTools[h.name]=f,e=h.name)),h.title!==void 0&&(f.title=h.title),h.description!==void 0&&(f.description=h.description);let S=!1;h.paramsSchema!==void 0&&(f.inputSchema=h.paramsSchema,delete this._toolInputSchemaJson[e],S=!0),h.callback!==void 0&&(f.handler=h.callback,m=h.callback,S=!0),S&&(f.executor=_z(f.inputSchema,m)),h.outputSchema!==void 0&&(f.outputSchema=h.outputSchema,f.outputSchemaJson=Sz(h.outputSchema)),h.annotations!==void 0&&(f.annotations=h.annotations),h.icons!==void 0&&(f.icons=h.icons),h.scopeChallenge!==void 0&&(f.scopeChallenge=h.scopeChallenge===null?void 0:h.scopeChallenge),h._meta!==void 0&&(f._meta=h._meta),h.enabled!==void 0&&(f.enabled=h.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=f,this.setToolRequestHandlers(),this.sendToolListChanged(),f}registerTool(e,t,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:o,description:r,inputSchema:i,outputSchema:a,annotations:s,icons:c,scopeChallenge:l,_meta:d}=t;return this._createRegisteredTool(e,o,r,vd(i),vd(a),s,c,void 0,l,d,n)}registerPrompt(e,t,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:o,description:r,argsSchema:i,icons:a,scopeChallenge:s,_meta:c}=t,l=this._createRegisteredPrompt(e,o,r,vd(i),n,a,s,c);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),l}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,t){return this.server.sendLoggingMessage(e,t)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};function _z(e,t){if(e){let o=t;return async(r,i)=>o(r,i)}let n=t;return async(o,r)=>n(r)}var yz={type:"object",properties:{}};function _0(e,t){let n=wn(t,"input"),o=hd(n);return o.valid||console.warn(`[mcp-sdk] tool \'${e}\' carries an invalid x-mcp-header declaration and will be excluded by conforming Streamable HTTP clients: ${o.reason}`),n}function Sz(e){if(e!==void 0)try{return wn(e,"output")}catch{return}}function bz(e,t,n){if(t){let o=n;return async(r,i)=>{let a=await Rn(t,r??{});if(!a.success)throw new V(C.InvalidParams,`Invalid arguments for prompt ${e}: ${a.error}`);return o(a.data,i)}}else{let o=n;return async(r,i)=>o(i)}}function $z(e){return{completion:{values:e.map(String).slice(0,100),total:e.length,hasMore:e.length>100}}}var Ka={completion:{values:[],hasMore:!1}};function zz(e){let t=e;if(t.shape&&typeof t.shape=="object")return t.shape}function y0(e){return e?.type==="optional"}function Rz(e){return y0(e)?e.def?.innerType??e:e}var S0=class{onclose;onerror;onmessage;_classification;_responseMode;_started=!1;_used=!1;_closed=!1;_terminalDelivered=!1;_dispatchWindowOpen=!1;_requestId;_deferredResponse;_sse;_abortCleanup;_keepAliveMs;constructor(e){this._classification=e.classification,this._responseMode=e.responseMode??"auto",this._keepAliveMs=e.keepAliveMs??Ja}async start(){if(this._started)throw new Error("PerRequestHTTPServerTransport is already started");this._started=!0}async handleMessage(e,t){if(this._used)throw new Error("PerRequestHTTPServerTransport serves exactly one exchange; construct a new transport per request");if(!this._started||this.onmessage===void 0)throw new Error("PerRequestHTTPServerTransport is not connected: connect a server to this transport before handling a message");if(this._closed)throw new Error("PerRequestHTTPServerTransport is closed");this._used=!0;let n=t?.request?.signal;if(n?.aborted)throw await this.close(),new ne(se.ConnectionClosed,"The request was aborted before it could be handled");let o={classification:this._classification,...t?.request!==void 0&&{request:t.request},...t?.authInfo!==void 0&&{authInfo:t.authInfo}};if(Ht(e)){this._requestId=e.id;let r,i,a=new Promise((s,c)=>{r=s,i=c});if(this._deferredResponse={promise:a,resolve:r,reject:i,settled:!1},n!==void 0){let s=()=>{this.close()};n.addEventListener("abort",s,{once:!0}),this._abortCleanup=()=>n.removeEventListener("abort",s)}this._dispatchWindowOpen=!0;try{this.onmessage(e,o)}finally{this._dispatchWindowOpen=!1}return this._responseMode==="sse"&&!this._closed&&!this._deferredResponse.settled&&this.upgradeToSse(),a}return this.onmessage(e,o),new Response(null,{status:202})}async send(e,t){if(this._closed)return;let n=ir(e)||sr(e),o=n?e.id:t?.relatedRequestId;if(this._requestId===void 0||o===void 0||o!==this._requestId){n&&this.onerror?.(new Error(`Received a response for an unknown request id: ${String(e.id)}`));return}if(n){if(this._terminalDelivered)return;this._terminalDelivered=!0;let r=sr(e)?e.error.code:void 0,i=r!==void 0&&(this._dispatchWindowOpen||r===C.MissingRequiredClientCapability)?Zv[r]:void 0;if(i!==void 0&&this._sse===void 0){this.settleResponse(Response.json(e,{status:i,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>{this.close()});return}if(this._sse!==void 0||this._responseMode==="sse"){this._sse===void 0&&this.upgradeToSse(),this.writeMessageFrame(e),this.finalizeStream();return}this.settleResponse(Response.json(e,{status:200,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>{this.close()});return}this._responseMode!=="json"&&(this._sse===void 0&&this.upgradeToSse(),this.writeMessageFrame(e))}writeCommentFrame(e){if(this._closed||this._sse===void 0||this._sse.closed)return;let t=e.split(`\n`).map(n=>`: ${n}`).join(`\n`);this.writeFrame(`${t}\n\n`)}async close(){if(!this._closed){if(this._closed=!0,this._abortCleanup?.(),this._abortCleanup=void 0,this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),this._sse!==void 0&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}this._deferredResponse!==void 0&&!this._deferredResponse.settled&&(this._deferredResponse.settled=!0,this._deferredResponse.reject(new ne(se.ConnectionClosed,"Connection closed before a response was produced"))),this.onclose?.()}}settleResponse(e){this._deferredResponse===void 0||this._deferredResponse.settled||(this._deferredResponse.settled=!0,this._deferredResponse.resolve(e))}upgradeToSse(){let e,t=new ReadableStream({start:n=>{e=n},cancel:()=>{this.close()}});this._sse={controller:e,encoder:new TextEncoder,closed:!1},this._sse.keepAliveTimer=Sd(this._keepAliveMs,()=>this.writeCommentFrame("keepalive")),this.settleResponse(new Response(t,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}}))}finalizeStream(){if(this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),this._sse!==void 0&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}queueMicrotask(()=>{this.close()})}writeMessageFrame(e){this.writeFrame(`event: message\ndata: ${JSON.stringify(e)}\n\n`)}writeFrame(e){if(!(this._sse===void 0||this._sse.closed))try{this._sse.controller.enqueue(this._sse.encoder.encode(e))}catch(t){this.onerror?.(new Error(`Failed to write to the response stream: ${t}`))}}};async function b0(e,t,n){let o=new S0({classification:n.classification,...n.responseMode!==void 0&&{responseMode:n.responseMode},...n.keepAliveMs!==void 0&&{keepAliveMs:n.keepAliveMs}});return await e.connect(o),o.handleMessage(t,{...n.request!==void 0&&{request:n.request},...n.authInfo!==void 0&&{authInfo:n.authInfo}})}var a_=4*1024*1024,i_=100;function Lz(e){return`Payload Too Large: Request body must not exceed ${e} bytes`}function s_(e){if(e===void 0)return a_;if(typeof e!="number"||!Number.isFinite(e)||e<=0)throw new RangeError(`maxRequestBodySize must be a positive number of bytes, got ${String(e)}`);return e}async function qz(e,t=a_){if(Number(e.headers.get("content-length"))>t)return{tooLarge:!0};if(e.body===null)return{tooLarge:!1,text:""};let n=e.body.getReader(),o=new TextDecoder,r=0,i="";try{for(;;){let{done:a,value:s}=await n.read();if(a)break;if(r+=s.byteLength,r>t)return{tooLarge:!0};i+=o.decode(s,{stream:!0})}}finally{n.releaseLock()}return{tooLarge:!1,text:i+o.decode()}}var c_=class{sessionIdGenerator;_started=!1;_hasHandledRequest=!1;_closed=!1;_streamMapping=new Map;_requestToStreamMapping=new Map;_requestResponseMap=new Map;_initialized=!1;_enableJsonResponse=!1;_standaloneSseStreamId="_GET_stream";_eventStore;_onsessioninitialized;_onsessionclosed;_allowedHosts;_allowedOrigins;_enableDnsRebindingProtection;_retryInterval;_supportedProtocolVersions;_keepAliveMs;_maxRequestBodySize;_scopeChallengeResolver;sessionId;onclose;onerror;onmessage;constructor(e={}){this.sessionIdGenerator=e.sessionIdGenerator,this._enableJsonResponse=e.enableJsonResponse??!1,this._eventStore=e.eventStore,this._onsessioninitialized=e.onsessioninitialized,this._onsessionclosed=e.onsessionclosed,this._allowedHosts=e.allowedHosts,this._allowedOrigins=e.allowedOrigins,this._enableDnsRebindingProtection=e.enableDnsRebindingProtection??!1,this._retryInterval=e.retryInterval,this._supportedProtocolVersions=e.supportedProtocolVersions??ia,this._keepAliveMs=e.keepAliveMs??Ja,this._maxRequestBodySize=s_(e.maxRequestBodySize)}startKeepAlive(e,t){if(this._closed)return;let n=Sd(this._keepAliveMs,()=>{try{e.enqueue(t.encode(`: keepalive\n\n`))}catch{n!==void 0&&clearInterval(n)}});return n}setScopeChallengeResolver(e){this._scopeChallengeResolver=e}async start(){if(this._started)throw new Error("Transport already started");this._started=!0}setSupportedProtocolVersions(e){this._supportedProtocolVersions=e}createJsonErrorResponse(e,t,n,o){let r={code:t,message:n};return o?.data!==void 0&&(r.data=o.data),Response.json({jsonrpc:"2.0",error:r,id:null},{status:e,headers:{"Content-Type":"application/json",...o?.headers}})}async _checkScopeChallenge(e,t){if(!this._scopeChallengeResolver)return;let n=await r_(e.filter(o=>Ht(o)),t,this._scopeChallengeResolver);return n===void 0?void 0:o_(n,n_(t))}validateRequestHeaders(e){if(this._enableDnsRebindingProtection){if(this._allowedHosts&&this._allowedHosts.length>0){let t=e.headers.get("host");if(!t||!this._allowedHosts.includes(t)){let n=`Invalid Host header: ${t}`;return this.onerror?.(new Error(n)),this.createJsonErrorResponse(403,-32e3,n)}}if(this._allowedOrigins&&this._allowedOrigins.length>0){let t=e.headers.get("origin");if(t&&!this._allowedOrigins.includes(t)){let n=`Invalid Origin header: ${t}`;return this.onerror?.(new Error(n)),this.createJsonErrorResponse(403,-32e3,n)}}}}async handleRequest(e,t){if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");if(!this.sessionIdGenerator&&this._hasHandledRequest)throw new Error("Stateless transport cannot be reused across requests. Create a new transport per request.");this._hasHandledRequest=!0;let n=this.validateRequestHeaders(e);if(n)return n;switch(e.method){case"POST":return this.handlePostRequest(e,t);case"GET":return this.handleGetRequest(e);case"DELETE":return this.handleDeleteRequest(e);default:return this.handleUnsupportedRequest()}}supportsEmptySSEData(e){return this._supportedProtocolVersions.includes(e)&&e>="2025-11-25"}async writePrimingEvent(e,t,n,o){if(!this._eventStore||!this.supportsEmptySSEData(o))return;let r=await this._eventStore.storeEvent(n,{}),i=`id: ${r}\ndata: \n\n`;this._retryInterval!==void 0&&(i=`id: ${r}\nretry: ${this._retryInterval}\ndata: \n\n`),e.enqueue(t.encode(i))}async handleGetRequest(e){if(!e.headers.get("accept")?.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept text/event-stream");let t=this.validateSession(e);if(t)return t;let n=this.validateProtocolVersion(e);if(n)return n;if(this._eventStore){let c=e.headers.get("last-event-id");if(c)return this.replayEvents(c)}if(this._streamMapping.get(this._standaloneSseStreamId)!==void 0)return this.onerror?.(new Error("Conflict: Only one SSE stream is allowed per session")),this.createJsonErrorResponse(409,-32e3,"Conflict: Only one SSE stream is allowed per session");let o=new TextEncoder,r,i,a=new ReadableStream({start:c=>{r=c},cancel:()=>{i!==void 0&&clearInterval(i),this._streamMapping.get(this._standaloneSseStreamId)?.controller===r&&this._streamMapping.delete(this._standaloneSseStreamId)}}),s={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};return this.sessionId!==void 0&&(s["mcp-session-id"]=this.sessionId),this._streamMapping.set(this._standaloneSseStreamId,{controller:r,encoder:o,cleanup:()=>{i!==void 0&&clearInterval(i),this._streamMapping.delete(this._standaloneSseStreamId);try{r.close()}catch{}}}),i=this.startKeepAlive(r,o),new Response(a,{headers:s})}async replayEvents(e){if(!this._eventStore)return this.onerror?.(new Error("Event store not configured")),this.createJsonErrorResponse(400,-32e3,"Event store not configured");try{let t;if(this._eventStore.getStreamIdForEventId){if(t=await this._eventStore.getStreamIdForEventId(e),!t)return this.onerror?.(new Error("Invalid event ID format")),this.createJsonErrorResponse(400,-32e3,"Invalid event ID format");if(this._streamMapping.get(t)!==void 0)return this.onerror?.(new Error("Conflict: Stream already has an active connection")),this.createJsonErrorResponse(409,-32e3,"Conflict: Stream already has an active connection")}let n={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};this.sessionId!==void 0&&(n["mcp-session-id"]=this.sessionId);let o=new TextEncoder,r,i,a=!1,s,c=new ReadableStream({start:d=>{r=d},cancel:()=>{a=!0,i!==void 0&&clearInterval(i),s!==void 0&&this._streamMapping.get(s)?.controller===r&&this._streamMapping.delete(s)}}),l=new Set;if(s=await this._eventStore.replayEventsAfter(e,{send:async(d,m)=>{if(l.add(d),!this.writeSSEEvent(r,o,m,d))try{r.close()}catch{}}}),this._closed||a){try{r.close()}catch{}return this.createJsonErrorResponse(404,-32001,"Session not found")}if(this._streamMapping.get(s)?.cleanup(),this._streamMapping.set(s,{controller:r,encoder:o,replayedEventIds:l,cleanup:()=>{i!==void 0&&clearInterval(i),this._streamMapping.delete(s);try{r.close()}catch{}}}),s!==this._standaloneSseStreamId&&![...this._requestToStreamMapping.values()].includes(s)){this._streamMapping.delete(s);try{r.close()}catch{}}return this._streamMapping.get(s)?.controller===r&&(i=this.startKeepAlive(r,o)),new Response(c,{headers:n})}catch(t){return this.onerror?.(t),this.createJsonErrorResponse(500,-32e3,"Error replaying events")}}writeSSEEvent(e,t,n,o){try{let r=`event: message\n`;return o&&(r+=`id: ${o}\n`),r+=`data: ${JSON.stringify(n)}\n\n`,e.enqueue(t.encode(r)),!0}catch(r){return this.onerror?.(r),!1}}handleUnsupportedRequest(){return this.onerror?.(new Error("Method not allowed.")),Response.json({jsonrpc:"2.0",error:{code:-32e3,message:"Method not allowed."},id:null},{status:405,headers:{Allow:"GET, POST, DELETE","Content-Type":"application/json"}})}async handlePostRequest(e,t){try{let n=e.headers.get("accept");if(!n?.includes("application/json")||!n.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept both application/json and text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept both application/json and text/event-stream");if(!Gv(e.headers.get("content-type")))return this.onerror?.(new Error("Unsupported Media Type: Content-Type must be application/json")),this.createJsonErrorResponse(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let o=e,r;if(t?.parsedBody===void 0)try{let y=await qz(e,this._maxRequestBodySize);if(y.tooLarge){let w=Lz(this._maxRequestBodySize);return this.onerror?.(new Error(w)),this.createJsonErrorResponse(413,-32e3,w)}r=JSON.parse(y.text)}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON")}else r=t.parsedBody;if(Array.isArray(r)&&r.length>i_)return this.onerror?.(new Error(`Invalid Request: Batch must not exceed ${i_} messages`)),this.createJsonErrorResponse(400,-32600,`Invalid Request: Batch must not exceed ${i_} messages`);let i;try{i=Array.isArray(r)?r.map(y=>Ro.parse(y)):[Ro.parse(r)]}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON-RPC message")}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let a=i.some(y=>Lv(y));if(a){if(this._initialized&&this.sessionId!==void 0)return this.onerror?.(new Error("Invalid Request: Server already initialized")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Server already initialized");if(i.length>1)return this.onerror?.(new Error("Invalid Request: Only one initialization request is allowed")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Only one initialization request is allowed");this.sessionId=this.sessionIdGenerator?.(),this._initialized=!0,this.sessionId&&this._onsessioninitialized&&await Promise.resolve(this._onsessioninitialized(this.sessionId))}if(!a){let y=this.validateSession(e);if(y)return y;let w=this.validateProtocolVersion(e);if(w)return w}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let s;try{s=await this._checkScopeChallenge(i,t?.authInfo)}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(500,-32603,"Internal server error")}if(s)return s;if(!i.some(y=>Ht(y))){for(let y of i)this.onmessage?.(y,{authInfo:t?.authInfo,request:o});return new Response(null,{status:202})}let c=crypto.randomUUID(),l=i.find(y=>Lv(y)),d=l?l.params.protocolVersion:e.headers.get("mcp-protocol-version")??gl;if(this._enableJsonResponse)return new Promise(y=>{this._streamMapping.set(c,{resolveJson:y,cleanup:()=>{this._streamMapping.delete(c)}});for(let w of i)Ht(w)&&this._requestToStreamMapping.set(w.id,c);for(let w of i)this.onmessage?.(w,{authInfo:t?.authInfo,request:o})});let m=new TextEncoder,p,f,h=new ReadableStream({start:y=>{p=y},cancel:()=>{f!==void 0&&clearInterval(f),this._streamMapping.get(c)?.controller===p&&this._streamMapping.delete(c)}}),S={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};this.sessionId!==void 0&&(S["mcp-session-id"]=this.sessionId);for(let y of i)Ht(y)&&(this._streamMapping.set(c,{controller:p,encoder:m,cleanup:()=>{f!==void 0&&clearInterval(f),this._streamMapping.delete(c);try{p.close()}catch{}}}),this._requestToStreamMapping.set(y.id,c));await this.writePrimingEvent(p,m,c,d);for(let y of i){let w,T;Ht(y)&&this._eventStore&&this.supportsEmptySSEData(d)&&(w=()=>{this.closeSSEStream(y.id)},T=()=>{this.closeStandaloneSSEStream()}),this.onmessage?.(y,{authInfo:t?.authInfo,request:o,closeSSEStream:w,closeStandaloneSSEStream:T})}return this._streamMapping.get(c)?.controller===p&&(f=this.startKeepAlive(p,m)),new Response(h,{status:200,headers:S})}catch(n){return this.onerror?.(n),this.createJsonErrorResponse(400,-32700,"Parse error",{data:String(n)})}}async handleDeleteRequest(e){let t=this.validateSession(e);if(t)return t;let n=this.validateProtocolVersion(e);if(n)return n;try{return await Promise.resolve(this._onsessionclosed?.(this.sessionId)),new Response(null,{status:200})}finally{await this.close()}}validateSession(e){if(this.sessionIdGenerator===void 0)return;if(!this._initialized)return this.onerror?.(new Error("Bad Request: Server not initialized")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Server not initialized");let t=e.headers.get("mcp-session-id");if(!t)return this.onerror?.(new Error("Bad Request: Mcp-Session-Id header is required")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Mcp-Session-Id header is required");if(t!==this.sessionId)return this.onerror?.(new Error("Session not found")),this.createJsonErrorResponse(404,-32001,"Session not found")}validateProtocolVersion(e){let t=e.headers.get("mcp-protocol-version");if(t!==null&&!this._supportedProtocolVersions.includes(t)){let n=`Bad Request: Unsupported protocol version: ${t} (supported versions: ${this._supportedProtocolVersions.join(", ")})`;return this.onerror?.(new Error(n)),this.createJsonErrorResponse(400,-32e3,n)}}async close(){if(!this._closed){this._closed=!0;for(let{cleanup:e}of this._streamMapping.values())e();this._streamMapping.clear(),this._requestResponseMap.clear(),this.onclose?.()}}closeSSEStream(e){let t=this._requestToStreamMapping.get(e);if(!t)return;let n=this._streamMapping.get(t);n&&n.cleanup()}closeStandaloneSSEStream(){let e=this._streamMapping.get(this._standaloneSseStreamId);e&&e.cleanup()}async send(e,t){let n=t?.relatedRequestId;if((ir(e)||sr(e))&&(n=e.id),n===void 0){if(ir(e)||sr(e))throw new Error("Cannot send a response on a standalone SSE stream unless resuming a previous client request");let i;this._eventStore&&(i=await this._eventStore.storeEvent(this._standaloneSseStreamId,e));let a=this._streamMapping.get(this._standaloneSseStreamId);if(a===void 0)return;a.controller&&a.encoder&&(i===void 0||!a.replayedEventIds?.has(i))&&this.writeSSEEvent(a.controller,a.encoder,e,i);return}let o=this._requestToStreamMapping.get(n);if(!o)throw new Error(`No connection established for request ID: ${String(n)}`);let r=this._streamMapping.get(o);if(!this._enableJsonResponse){let i;this._eventStore&&(i=await this._eventStore.storeEvent(o,e),r=this._streamMapping.get(o)),r?.controller&&r?.encoder&&(i===void 0||!r.replayedEventIds?.has(i))&&this.writeSSEEvent(r.controller,r.encoder,e,i)}if(ir(e)||sr(e)){this._requestResponseMap.set(n,e);let i=[...this._requestToStreamMapping.entries()].filter(([a,s])=>s===o).map(([a])=>a);if(i.every(a=>this._requestResponseMap.has(a))){if(!r){if(this._enableJsonResponse)throw new Error(`No connection established for request ID: ${String(n)}`);if(!this._eventStore){this.onerror?.(new Error(`Response for request ID ${String(n)} is undeliverable: per-request stream is disconnected and no eventStore is configured`));for(let a of i)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a);return}for(let a of i)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a);return}if(this._enableJsonResponse&&r.resolveJson){let a={"Content-Type":"application/json"};this.sessionId!==void 0&&(a["mcp-session-id"]=this.sessionId);let s=i.map(c=>this._requestResponseMap.get(c));s.length===1?r.resolveJson(Response.json(s[0],{status:200,headers:a})):r.resolveJson(Response.json(s,{status:200,headers:a})),r.cleanup()}else r.cleanup();for(let a of i)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a)}}}};function Fr(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let{method:t,id:n}=e;return typeof t!="string"?null:typeof n=="string"||typeof n=="number"?n:null}function lr(e,t,n,o,r=null){return Response.json({jsonrpc:"2.0",error:{code:t,message:n,...o!==void 0&&{data:o}},id:r},{status:e})}function bd(e,t=null){return lr(e.httpStatus,e.code,e.message,e.data,t)}function Ba(e){return e instanceof Error?e:new Error(String(e))}function Ha(e=null){return lr(500,-32603,"Internal server error",void 0,e)}function Dz(e){if(e.transport!==void 0)throw new Error("The factory returned an instance that is still serving another request. Return a new instance for each request.")}function $0(e,t,n,o){return async(r,i)=>{if(r.method.toUpperCase()!=="POST")return lr(405,-32e3,"Method not allowed.");try{let a=await e({era:"legacy",...i?.authInfo!==void 0&&{authInfo:i.authInfo},requestInfo:r}),s=new c_({sessionIdGenerator:void 0,...n!==void 0&&{keepAliveMs:n},...o!==void 0&&{maxRequestBodySize:o}});await a.connect(s);let c=()=>{s.close().catch(()=>{}),a.close().catch(()=>{})};r.signal?.addEventListener("abort",c,{once:!0});let l=await s.handleRequest(r,{...i?.authInfo!==void 0&&{authInfo:i.authInfo},...i?.parsedBody!==void 0&&{parsedBody:i.parsedBody}});if(l.body===null||Yv(l.headers.get("content-type"))!=="text/event-stream")return c(),l;let d=l.body.getReader(),m=!1,p=()=>{m||(m=!0,c())},f=new ReadableStream({pull:async h=>{try{let{done:S,value:y}=await d.read();if(S){p(),h.close();return}y!==void 0&&h.enqueue(y)}catch(S){p(),h.error(S)}},cancel:h=>(p(),d.cancel(h).catch(()=>{}))});return new Response(f,{status:l.status,statusText:l.statusText,headers:l.headers})}catch(a){try{t?.(Ba(a))}catch{}return Ha(Fr(i?.parsedBody))}}}function Vz(e){return{protocolVersionHeader:e.headers.get("mcp-protocol-version")??void 0,mcpMethodHeader:e.headers.get("mcp-method")??void 0,mcpNameHeader:e.headers.get("mcp-name")??void 0}}async function Zz(e,t,n=!0,o=a_){let r=e.method.toUpperCase(),i,a=t,s=e,c=!1;if(r==="POST"){if(a===void 0){n&&(s=e.clone());let l;try{let d=await qz(e,o);if(d.tooLarge)return{step:"body-too-large"};l=d.text}catch{return{step:"unreadable-body"}}try{i=l.length===0?void 0:JSON.parse(l)}catch{c=!0}!c&&i!==void 0&&(a=i)}else i=a;if(c||i===void 0)return{step:"no-json-body",forwardRequest:s}}return{step:"classified",outcome:X$({httpMethod:r,...Vz(e),...i!==void 0&&{body:i}}),body:i,parsedBody:a,forwardRequest:s}}async function Fz(e,t,n){let o=s_(n?.maxRequestBodySize),r=await Zz(t===void 0&&e.method.toUpperCase()==="POST"?e.clone():e,t,!1,o);return r.step==="no-json-body"||r.step==="classified"&&r.outcome.kind==="legacy"}function Kz(e,t={}){let{legacy:n,onerror:o,responseMode:r}=t,i=s_(t.maxRequestBodySize);if(typeof n=="function")throw new TypeError("The \'legacy\' option only accepts \'stateless\' or \'reject\', not a handler function. To serve 2025-era traffic with your own handler, route in user land with the exported isLegacyRequest(request) predicate in front of a strict (legacy: \'reject\') handler.");let a=new Set,s=!1,c=w=>{try{o?.(w)}catch{}},l=t.bus??new wz(c),d=Iz(l),m=Tz({bus:l,maxSubscriptions:t.maxSubscriptions??t_,keepAliveMs:t.keepAliveMs??Ja,onerror:c});r==="json"&&console.warn("responseMode: \'json\' drops mid-call notifications. subscriptions/listen streams are always served over SSE regardless; other notifications emitted before a result are dropped.");let p=n==="reject"?void 0:$0(e,c,t.keepAliveMs,i);async function f(w,T,E){let K=w.classification.revision;if(K===void 0||!La.includes(K)){let ce=new md({supported:[...La],requested:K??"unknown"});return c(ce),lr(400,ce.code,ce.message,ce.data,Fr(w.message))}let Z=G$({httpMethod:T.method,...Vz(T)},w);if(Z!==void 0)return c(new Error(`Rejected inbound request (${Z.cell}): ${Z.message}`)),bd(Z,Fr(w.message));let N=w.messageKind==="request"?Zr(w.message.params):void 0,re=N?.[Bt];if(w.messageKind==="request"){let ce=T$(w.message.method);if(ce!==void 0){let Ie=Da(ce,re);if(Ie!==void 0){let xe=new qa({requiredCapabilities:Ie});return c(xe),lr(Y$(xe.code,"ladder"),xe.code,xe.message,xe.data,w.message.id)}}}let oe=await e({era:"modern",...E!==void 0&&{authInfo:E},requestInfo:T}),H=oe instanceof Do?oe.server:oe;if(Dz(H),w.messageKind==="request"&&w.message.method==="subscriptions/listen"){let ce=H.getCapabilities(),Ie=Uz(H);return oe.close().catch(c),m.serve(w.message,T.signal,ce,Ie)}if(w.messageKind==="request"&&w.message.method==="tools/call"&&oe instanceof Do){let ce=w.message.params,Ie=typeof ce?.name=="string"?ce.name:void 0,xe=Ie===void 0?void 0:oe.toolInputSchemaJson(Ie);if(xe!==void 0){let Ae=hd(xe);if(Ae.valid&&Ae.declarations.length>0){let Ze=H$(Ae.declarations,ce?.arguments,T.headers);if(Ze!==void 0)return oe.close().catch(c),c(new Error(`Rejected inbound request (${Ze.cell}): ${Ze.message}`)),bd(Ze,w.message.id)}}}if(w.messageKind==="request"&&oe instanceof Do)try{let ce=await r_([w.message],E,Ie=>oe.resolveScopeChallenge(Ie));if(ce!==void 0)return oe.close().catch(c),o_(ce,n_(E))}catch(ce){return oe.close().catch(c),c(Ba(ce)),Ha(w.message.id)}Dz(H),dz(H,K),Az(H,La),N!==void 0&&jz(H,{clientInfo:N[Sn],clientCapabilities:re});let ve=H.onclose;a.add(H);let ye=()=>{a.delete(H),H.onclose===ye&&(H.onclose=ve),ve?.()};H.onclose=ye;try{let ce=await b0(oe,w.message,{classification:w.classification,request:T,...E!==void 0&&{authInfo:E},...r!==void 0&&{responseMode:r},...t.keepAliveMs!==void 0&&{keepAliveMs:t.keepAliveMs}});return w.messageKind==="notification"&&queueMicrotask(()=>{H.close().catch(()=>{})}),ce}catch(ce){return ce instanceof ne&&ce.code===se.ConnectionClosed?new Response(null,{status:499}):(await H.close().catch(()=>{}),a.delete(H),c(Ba(ce)),Ha(Fr(w.message)))}}async function h(w,T,E,K){if(p!==void 0)return p(T,{...E!==void 0&&{authInfo:E},...K!==void 0&&{parsedBody:K}});let Z=Q$(w,La);return Z===void 0?new Response(null,{status:202}):(c(new Error(`Rejected 2025-era request on a modern-only endpoint (${Z.cell}): ${Z.message}`)),bd(Z,Fr(K)))}async function S(w,T){let E=T?.authInfo;if(w.method.toUpperCase()==="POST"&&!Gv(w.headers.get("content-type")))return c(new Error("Unsupported Media Type: Content-Type must be application/json")),lr(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let K=await Zz(w,T?.parsedBody,!0,i);if(K.step==="unreadable-body")return lr(400,-32700,"Parse error: the request body could not be read");if(K.step==="body-too-large")return lr(413,-32e3,Lz(i));if(K.step==="no-json-body")return p!==void 0?p(K.forwardRequest,{...E!==void 0&&{authInfo:E}}):lr(400,-32700,"Parse error: the request body is not valid JSON");let{outcome:Z,body:N,parsedBody:re,forwardRequest:oe}=K;try{switch(Z.kind){case"reject":return c(new Error(`Rejected inbound request (${Z.cell}): ${Z.message}`)),bd(Z,Fr(N));case"modern":return await f(Z,w,E);case"legacy":return await h(Z,oe,E,re)}}catch(H){return c(Ba(H)),Ha(Fr(N))}}return{fetch:async(w,T)=>{if(s)throw new Error("This MCP handler has been closed");try{return await S(w,T)}catch(E){return c(Ba(E)),Ha(Fr(T?.parsedBody))}},notify:d,bus:l,close:async()=>{s=!0,m.closeAll();let w=[...a].map(T=>T.close().catch(()=>{}));a.clear(),await Promise.all(w)}}}function l_(e){return/^Bearer\\s+(.+)$/i.exec(e.headers.get("authorization")?.trim()??"")?.[1]?.trim()||null}function Jz(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=atob(t+"=".repeat((4-t.length%4)%4));return Uint8Array.from(n,o=>o.charCodeAt(0))}function z0(e){let t=e.replace(/-----(BEGIN|END)[^-]+-----/g,"").replace(/\\s+/g,"");return Uint8Array.from(atob(t),n=>n.charCodeAt(0))}var Bz=new Map;function Hz(e){let t=Bz.get(e);return t||(t=crypto.subtle.importKey("spki",z0(e),{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!1,["verify"]),Bz.set(e,t)),t}function Yz(e,t,n){if(!e||!t)return null;let o=Number(t);return Number.isFinite(o)&&o>n?e:null}function Gz(e,t){return typeof e=="string"?e===t:Array.isArray(e)&&e.some(n=>n===t)}async function u_(e,t){let[n,o,r]=e.split(".");if(!n||!o||!r)throw new Error("malformed");let i=Jz(r),a=new TextEncoder().encode(`${n}.${o}`),s=await crypto.subtle.verify("RSASSA-PKCS1-v1_5",await Hz(t.publicKey),i,a),c=s?null:Yz(t.previousKey,t.previousKeyUntil,Date.now());if(c&&(s=await Hz(c).then(p=>crypto.subtle.verify("RSASSA-PKCS1-v1_5",p,i,a)).catch(()=>!1)),!s)throw new Error("signature");let l=JSON.parse(new TextDecoder().decode(Jz(o))),d=Math.floor(Date.now()/1e3);if(!(Gz(l.aud,t.audience)&&l.iss===t.issuer&&l.serverId===t.serverId&&l.accessMode===t.accessMode&&typeof l.exp=="number"&&l.exp>d&&typeof l.iat=="number"&&typeof l.jti=="string"&&typeof l.sub=="string"))throw new Error("claims");return{sub:l.sub,clientName:typeof l.clientName=="string"?l.clientName:null}}var Wz={response:null,userId:null,token:null,clientName:null};function d_(e,t,n){return{...Wz,response:Response.json({error:t,message:n},{status:e})}}function Xz(e){return e==="private"?{protected:!0,summary:"This MCP endpoint requires a Sokie runtime token."}:{protected:!1,summary:"This MCP endpoint is public."}}async function Qz(e,t){if(t.accessMode==="public")return Wz;if(!t.auth)return d_(500,"runtime_auth_misconfigured","Runtime auth is not configured for this deployment.");let n=l_(e);if(!n)return d_(401,"runtime_auth_required","This MCP endpoint requires a Sokie runtime token.");try{let{sub:o,clientName:r}=await u_(n,{...t.auth,accessMode:t.accessMode});return{response:null,userId:o,token:n,clientName:r}}catch{return d_(401,"runtime_auth_invalid","This MCP endpoint requires a valid Sokie runtime token.")}}var eR=new WeakMap;function tR(e){return eR.get(e)??null}function ur(e){let t=e?.trim();return t||null}function $d(e,t){let n=ur(e[t]);if(!n)throw new Error(`This deployment is missing ${t}. Redeploy the server.`);return n}function m_(e){return ur(e.SOKIE_ACCESS_MODE)==="private"?"private":"public"}function rR(e,t){let n=m_(t),o={bundle:e,baseUrl:ur(t.SOKIE_UPSTREAM_BASE_URL)??e.baseUrl??"",accessMode:n,auth:n==="private"?{serverId:$d(t,"SOKIE_SERVER_ID"),issuer:$d(t,"SOKIE_AUTH_ISSUER"),audience:$d(t,"SOKIE_AUTH_AUDIENCE"),publicKey:$d(t,"SOKIE_AUTH_PUBLIC_KEY"),previousKey:ur(t.SOKIE_AUTH_PUBLIC_KEY_PREVIOUS),previousKeyUntil:ur(t.SOKIE_AUTH_PUBLIC_KEY_PREVIOUS_UNTIL)}:null,platformUrl:ur(t.SOKIE_PLATFORM_URL),connectUrl:ur(t.SOKIE_CONNECT_URL),secret:i=>i.startsWith("SOKIE_")?null:ur(t[i])},r=ur(t.SOKIE_PLATFORM_TOKEN);return r&&eR.set(o,r),o}function nR(e={}){return{userId:null,runtimeToken:null,clientName:null,era:"legacy",projection:{preBytes:0,postBytes:0,applied:!1},call:{tool:null,isError:!1,errorClass:null,upstreamStatus:null},...e}}var Lo=e=>e!==null&&Object.prototype.toString.call(e)==="[object Object]",Rd=(e,t)=>{if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!Rd(e[n],t[n]))return!1;return!0}if(Lo(e)&&Lo(t)){let n=Object.entries(e),o=new Set(Object.keys(t));if(n.length!==o.size)return!1;for(let[r,i]of n){if(!Rd(i,t[r]))return!1;o.delete(r)}return o.size===0}return!1},zd=e=>{if(e===""||e===!1||e===null||e===void 0||Array.isArray(e)&&e.length===0)return!0;if(Lo(e)){for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}return!1},R0=e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_",oR=e=>e>="0"&&e<="9"||e==="-",k0=e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_",$;(function(e){e.TOK_EOF="EOF",e.TOK_UNQUOTEDIDENTIFIER="UnquotedIdentifier",e.TOK_QUOTEDIDENTIFIER="QuotedIdentifier",e.TOK_RBRACKET="Rbracket",e.TOK_RPAREN="Rparen",e.TOK_COMMA="Comma",e.TOK_COLON="Colon",e.TOK_RBRACE="Rbrace",e.TOK_NUMBER="Number",e.TOK_CURRENT="Current",e.TOK_ROOT="Root",e.TOK_EXPREF="Expref",e.TOK_PIPE="Pipe",e.TOK_OR="Or",e.TOK_AND="And",e.TOK_EQ="EQ",e.TOK_GT="GT",e.TOK_LT="LT",e.TOK_GTE="GTE",e.TOK_LTE="LTE",e.TOK_NE="NE",e.TOK_FLATTEN="Flatten",e.TOK_STAR="Star",e.TOK_FILTER="Filter",e.TOK_DOT="Dot",e.TOK_NOT="Not",e.TOK_LBRACE="Lbrace",e.TOK_LBRACKET="Lbracket",e.TOK_LPAREN="Lparen",e.TOK_LITERAL="Literal"})($||($={}));var iR={"(":$.TOK_LPAREN,")":$.TOK_RPAREN,"*":$.TOK_STAR,",":$.TOK_COMMA,".":$.TOK_DOT,":":$.TOK_COLON,"@":$.TOK_CURRENT,$:$.TOK_ROOT,"]":$.TOK_RBRACKET,"{":$.TOK_LBRACE,"}":$.TOK_RBRACE},w0={"!":!0,"<":!0,"=":!0,">":!0},I0={"\t":!0,"\\n":!0,"\\r":!0," ":!0},p_=class{constructor(){this._current=0}tokenize(t){let n=[];this._current=0;let o,r,i;for(;this._current<t.length;)if(R0(t[this._current]))o=this._current,r=this.consumeUnquotedIdentifier(t),n.push({start:o,type:$.TOK_UNQUOTEDIDENTIFIER,value:r});else if(iR[t[this._current]]!==void 0)n.push({start:this._current,type:iR[t[this._current]],value:t[this._current]}),this._current+=1;else if(oR(t[this._current]))i=this.consumeNumber(t),n.push(i);else if(t[this._current]==="[")i=this.consumeLBracket(t),n.push(i);else if(t[this._current]===\'"\')o=this._current,r=this.consumeQuotedIdentifier(t),n.push({start:o,type:$.TOK_QUOTEDIDENTIFIER,value:r});else if(t[this._current]==="\'")o=this._current,r=this.consumeRawStringLiteral(t),n.push({start:o,type:$.TOK_LITERAL,value:r});else if(t[this._current]==="`"){o=this._current;let a=this.consumeLiteral(t);n.push({start:o,type:$.TOK_LITERAL,value:a})}else if(w0[t[this._current]]!==void 0)i=this.consumeOperator(t),i&&n.push(i);else if(I0[t[this._current]]!==void 0)this._current+=1;else if(t[this._current]==="&")o=this._current,this._current+=1,t[this._current]==="&"?(this._current+=1,n.push({start:o,type:$.TOK_AND,value:"&&"})):n.push({start:o,type:$.TOK_EXPREF,value:"&"});else if(t[this._current]==="|")o=this._current,this._current+=1,t[this._current]==="|"?(this._current+=1,n.push({start:o,type:$.TOK_OR,value:"||"})):n.push({start:o,type:$.TOK_PIPE,value:"|"});else{let a=new Error(`Unknown character: ${t[this._current]}`);throw a.name="LexerError",a}return n}consumeUnquotedIdentifier(t){let n=this._current;for(this._current+=1;this._current<t.length&&k0(t[this._current]);)this._current+=1;return t.slice(n,this._current)}consumeQuotedIdentifier(t){let n=this._current;this._current+=1;let o=t.length;for(;t[this._current]!==\'"\'&&this._current<o;){let r=this._current;t[r]==="\\\\"&&(t[r+1]==="\\\\"||t[r+1]===\'"\')?r+=2:r+=1,this._current=r}return this._current+=1,JSON.parse(t.slice(n,this._current))}consumeRawStringLiteral(t){let n=this._current;this._current+=1;let o=t.length;for(;t[this._current]!=="\'"&&this._current<o;){let i=this._current;t[i]==="\\\\"&&(t[i+1]==="\\\\"||t[i+1]==="\'")?i+=2:i+=1,this._current=i}return this._current+=1,t.slice(n+1,this._current-1).replace("\\\\\'","\'")}consumeNumber(t){let n=this._current;this._current+=1;let o=t.length;for(;oR(t[this._current])&&this._current<o;)this._current+=1;let r=parseInt(t.slice(n,this._current),10);return{start:n,value:r,type:$.TOK_NUMBER}}consumeLBracket(t){let n=this._current;return this._current+=1,t[this._current]==="?"?(this._current+=1,{start:n,type:$.TOK_FILTER,value:"[?"}):t[this._current]==="]"?(this._current+=1,{start:n,type:$.TOK_FLATTEN,value:"[]"}):{start:n,type:$.TOK_LBRACKET,value:"["}}consumeOperator(t){let n=this._current,o=t[n];if(this._current+=1,o==="!")return t[this._current]==="="?(this._current+=1,{start:n,type:$.TOK_NE,value:"!="}):{start:n,type:$.TOK_NOT,value:"!"};if(o==="<")return t[this._current]==="="?(this._current+=1,{start:n,type:$.TOK_LTE,value:"<="}):{start:n,type:$.TOK_LT,value:"<"};if(o===">")return t[this._current]==="="?(this._current+=1,{start:n,type:$.TOK_GTE,value:">="}):{start:n,type:$.TOK_GT,value:">"};if(o==="="&&t[this._current]==="=")return this._current+=1,{start:n,type:$.TOK_EQ,value:"=="}}consumeLiteral(t){this._current+=1;let n=this._current,o=t.length;for(;t[this._current]!=="`"&&this._current<o;){let a=this._current;t[a]==="\\\\"&&(t[a+1]==="\\\\"||t[a+1]==="`")?a+=2:a+=1,this._current=a}let r=t.slice(n,this._current).trimLeft();r=r.replace("\\\\`","`");let i=this.looksLikeJSON(r)?JSON.parse(r):JSON.parse(`"${r}"`);return this._current+=1,i}looksLikeJSON(t){let o=["true","false","null"],r="-0123456789";if(t==="")return!1;if(\'[{"\'.includes(t[0])||o.includes(t))return!0;if(r.includes(t[0]))try{return JSON.parse(t),!0}catch{return!1}return!1}},T0=new p_,Ve={[$.TOK_EOF]:0,[$.TOK_UNQUOTEDIDENTIFIER]:0,[$.TOK_QUOTEDIDENTIFIER]:0,[$.TOK_RBRACKET]:0,[$.TOK_RPAREN]:0,[$.TOK_COMMA]:0,[$.TOK_RBRACE]:0,[$.TOK_NUMBER]:0,[$.TOK_CURRENT]:0,[$.TOK_EXPREF]:0,[$.TOK_ROOT]:0,[$.TOK_PIPE]:1,[$.TOK_OR]:2,[$.TOK_AND]:3,[$.TOK_EQ]:5,[$.TOK_GT]:5,[$.TOK_LT]:5,[$.TOK_GTE]:5,[$.TOK_LTE]:5,[$.TOK_NE]:5,[$.TOK_FLATTEN]:9,[$.TOK_STAR]:20,[$.TOK_FILTER]:21,[$.TOK_DOT]:40,[$.TOK_NOT]:45,[$.TOK_LBRACE]:50,[$.TOK_LBRACKET]:55,[$.TOK_LPAREN]:60},f_=class{constructor(){this.index=0,this.tokens=[]}parse(t){this.loadTokens(t),this.index=0;let n=this.expression(0);if(this.lookahead(0)!==$.TOK_EOF){let o=this.lookaheadToken(0);this.errorToken(o,`Unexpected token type: ${o.type}, value: ${o.value}`)}return n}loadTokens(t){this.tokens=[...T0.tokenize(t),{type:$.TOK_EOF,value:"",start:t.length}]}expression(t){let n=this.lookaheadToken(0);this.advance();let o=this.nud(n),r=this.lookahead(0);for(;t<Ve[r];)this.advance(),o=this.led(r,o),r=this.lookahead(0);return o}lookahead(t){return this.tokens[this.index+t].type}lookaheadToken(t){return this.tokens[this.index+t]}advance(){this.index+=1}nud(t){let n,o,r;switch(t.type){case $.TOK_LITERAL:return{type:"Literal",value:t.value};case $.TOK_UNQUOTEDIDENTIFIER:return{type:"Field",name:t.value};case $.TOK_QUOTEDIDENTIFIER:let i={type:"Field",name:t.value};if(this.lookahead(0)===$.TOK_LPAREN)throw new Error("Quoted identifier not allowed for function names.");return i;case $.TOK_NOT:return o=this.expression(Ve.Not),{type:"NotExpression",children:[o]};case $.TOK_STAR:return n={type:"Identity"},o=this.lookahead(0)===$.TOK_RBRACKET&&{type:"Identity"}||this.parseProjectionRHS(Ve.Star),{type:"ValueProjection",children:[n,o]};case $.TOK_FILTER:return this.led(t.type,{type:"Identity"});case $.TOK_LBRACE:return this.parseMultiselectHash();case $.TOK_FLATTEN:return n={type:$.TOK_FLATTEN,children:[{type:"Identity"}]},o=this.parseProjectionRHS(Ve.Flatten),{type:"Projection",children:[n,o]};case $.TOK_LBRACKET:return this.lookahead(0)===$.TOK_NUMBER||this.lookahead(0)===$.TOK_COLON?(o=this.parseIndexExpression(),this.projectIfSlice({type:"Identity"},o)):this.lookahead(0)===$.TOK_STAR&&this.lookahead(1)===$.TOK_RBRACKET?(this.advance(),this.advance(),o=this.parseProjectionRHS(Ve.Star),{children:[{type:"Identity"},o],type:"Projection"}):this.parseMultiselectList();case $.TOK_CURRENT:return{type:$.TOK_CURRENT};case $.TOK_ROOT:return{type:$.TOK_ROOT};case $.TOK_EXPREF:return r=this.expression(Ve.Expref),{type:"ExpressionReference",children:[r]};case $.TOK_LPAREN:let a=[];for(;this.lookahead(0)!==$.TOK_RPAREN;)this.lookahead(0)===$.TOK_CURRENT?(r={type:$.TOK_CURRENT},this.advance()):r=this.expression(0),a.push(r);return this.match($.TOK_RPAREN),a[0];default:this.errorToken(t)}}led(t,n){let o;switch(t){case $.TOK_DOT:let r=Ve.Dot;return this.lookahead(0)!==$.TOK_STAR?(o=this.parseDotRHS(r),{type:"Subexpression",children:[n,o]}):(this.advance(),o=this.parseProjectionRHS(r),{type:"ValueProjection",children:[n,o]});case $.TOK_PIPE:return o=this.expression(Ve.Pipe),{type:$.TOK_PIPE,children:[n,o]};case $.TOK_OR:return o=this.expression(Ve.Or),{type:"OrExpression",children:[n,o]};case $.TOK_AND:return o=this.expression(Ve.And),{type:"AndExpression",children:[n,o]};case $.TOK_LPAREN:let i=n.name,a=[],s;for(;this.lookahead(0)!==$.TOK_RPAREN;)this.lookahead(0)===$.TOK_CURRENT?(s={type:$.TOK_CURRENT},this.advance()):s=this.expression(0),this.lookahead(0)===$.TOK_COMMA&&this.match($.TOK_COMMA),a.push(s);return this.match($.TOK_RPAREN),{name:i,type:"Function",children:a};case $.TOK_FILTER:let l=this.expression(0);return this.match($.TOK_RBRACKET),o=this.lookahead(0)===$.TOK_FLATTEN&&{type:"Identity"}||this.parseProjectionRHS(Ve.Filter),{type:"FilterProjection",children:[n,o,l]};case $.TOK_FLATTEN:let d={type:$.TOK_FLATTEN,children:[n]},m=this.parseProjectionRHS(Ve.Flatten);return{type:"Projection",children:[d,m]};case $.TOK_EQ:case $.TOK_NE:case $.TOK_GT:case $.TOK_GTE:case $.TOK_LT:case $.TOK_LTE:return this.parseComparator(n,t);case $.TOK_LBRACKET:let p=this.lookaheadToken(0);return p.type===$.TOK_NUMBER||p.type===$.TOK_COLON?(o=this.parseIndexExpression(),this.projectIfSlice(n,o)):(this.match($.TOK_STAR),this.match($.TOK_RBRACKET),o=this.parseProjectionRHS(Ve.Star),{type:"Projection",children:[n,o]});default:return this.errorToken(this.lookaheadToken(0))}}match(t){if(this.lookahead(0)===t){this.advance();return}else{let n=this.lookaheadToken(0);this.errorToken(n,`Expected ${t}, got: ${n.type}`)}}errorToken(t,n=""){let o=new Error(n||`Invalid token (${t.type}): "${t.value}"`);throw o.name="ParserError",o}parseIndexExpression(){if(this.lookahead(0)===$.TOK_COLON||this.lookahead(1)===$.TOK_COLON)return this.parseSliceExpression();let t={type:"Index",value:this.lookaheadToken(0).value};return this.advance(),this.match($.TOK_RBRACKET),t}projectIfSlice(t,n){let o={type:"IndexExpression",children:[t,n]};return n.type==="Slice"?{children:[o,this.parseProjectionRHS(Ve.Star)],type:"Projection"}:o}parseSliceExpression(){let t=[null,null,null],n=0,o=this.lookahead(0);for(;o!==$.TOK_RBRACKET&&n<3;){if(o===$.TOK_COLON)n+=1,this.advance();else if(o===$.TOK_NUMBER)t[n]=this.lookaheadToken(0).value,this.advance();else{let r=this.lookaheadToken(0);this.errorToken(r,`Syntax error, unexpected token: ${r.value}(${r.type})`)}o=this.lookahead(0)}return this.match($.TOK_RBRACKET),{children:t,type:"Slice"}}parseComparator(t,n){let o=this.expression(Ve[n]);return{type:"Comparator",name:n,children:[t,o]}}parseDotRHS(t){let n=this.lookahead(0);if([$.TOK_UNQUOTEDIDENTIFIER,$.TOK_QUOTEDIDENTIFIER,$.TOK_STAR].includes(n))return this.expression(t);if(n===$.TOK_LBRACKET)return this.match($.TOK_LBRACKET),this.parseMultiselectList();if(n===$.TOK_LBRACE)return this.match($.TOK_LBRACE),this.parseMultiselectHash();let r=this.lookaheadToken(0);this.errorToken(r,`Syntax error, unexpected token: ${r.value}(${r.type})`)}parseProjectionRHS(t){if(Ve[this.lookahead(0)]<10)return{type:"Identity"};if(this.lookahead(0)===$.TOK_LBRACKET)return this.expression(t);if(this.lookahead(0)===$.TOK_FILTER)return this.expression(t);if(this.lookahead(0)===$.TOK_DOT)return this.match($.TOK_DOT),this.parseDotRHS(t);let n=this.lookaheadToken(0);this.errorToken(n,`Syntax error, unexpected token: ${n.value}(${n.type})`)}parseMultiselectList(){let t=[];for(;this.lookahead(0)!==$.TOK_RBRACKET;){let n=this.expression(0);if(t.push(n),this.lookahead(0)===$.TOK_COMMA&&(this.match($.TOK_COMMA),this.lookahead(0)===$.TOK_RBRACKET))throw new Error("Unexpected token Rbracket")}return this.match($.TOK_RBRACKET),{type:"MultiSelectList",children:t}}parseMultiselectHash(){let t=[],n=[$.TOK_UNQUOTEDIDENTIFIER,$.TOK_QUOTEDIDENTIFIER],o,r,i;for(;;){if(o=this.lookaheadToken(0),!n.includes(o.type))throw new Error(`Expecting an identifier token, got: ${o.type}`);if(r=o.value,this.advance(),this.match($.TOK_COLON),i=this.expression(0),t.push({value:i,type:"KeyValuePair",name:r}),this.lookahead(0)===$.TOK_COMMA)this.match($.TOK_COMMA);else if(this.lookahead(0)===$.TOK_RBRACE){this.match($.TOK_RBRACE);break}}return{type:"MultiSelectHash",children:t}}},x0=new f_,P;(function(e){e[e.TYPE_NUMBER=0]="TYPE_NUMBER",e[e.TYPE_ANY=1]="TYPE_ANY",e[e.TYPE_STRING=2]="TYPE_STRING",e[e.TYPE_ARRAY=3]="TYPE_ARRAY",e[e.TYPE_OBJECT=4]="TYPE_OBJECT",e[e.TYPE_BOOLEAN=5]="TYPE_BOOLEAN",e[e.TYPE_EXPREF=6]="TYPE_EXPREF",e[e.TYPE_NULL=7]="TYPE_NULL",e[e.TYPE_ARRAY_NUMBER=8]="TYPE_ARRAY_NUMBER",e[e.TYPE_ARRAY_STRING=9]="TYPE_ARRAY_STRING"})(P||(P={}));var h_=class{constructor(t){this.TYPE_NAME_TABLE={[P.TYPE_NUMBER]:"number",[P.TYPE_ANY]:"any",[P.TYPE_STRING]:"string",[P.TYPE_ARRAY]:"array",[P.TYPE_OBJECT]:"object",[P.TYPE_BOOLEAN]:"boolean",[P.TYPE_EXPREF]:"expression",[P.TYPE_NULL]:"null",[P.TYPE_ARRAY_NUMBER]:"Array<number>",[P.TYPE_ARRAY_STRING]:"Array<string>"},this.functionAbs=([n])=>Math.abs(n),this.functionAvg=([n])=>{let o=0;for(let r=0;r<n.length;r+=1)o+=n[r];return o/n.length},this.functionCeil=([n])=>Math.ceil(n),this.functionContains=n=>{let[o,r]=n;return o.includes(r)},this.functionEndsWith=n=>{let[o,r]=n;return o.includes(r,o.length-r.length)},this.functionFloor=([n])=>Math.floor(n),this.functionJoin=n=>{let[o,r]=n;return r.join(o)},this.functionKeys=([n])=>Object.keys(n),this.functionLength=([n])=>Lo(n)?Object.keys(n).length:n.length,this.functionMap=n=>{if(!this._interpreter)return[];let o=[],r=this._interpreter,i=n[0],a=n[1];for(let s=0;s<a.length;s+=1)o.push(r.visit(i,a[s]));return o},this.functionMax=([n])=>{if(!n.length)return null;if(this.getTypeName(n[0])===P.TYPE_NUMBER)return Math.max(...n);let r=n,i=r[0];for(let a=1;a<r.length;a+=1)i.localeCompare(r[a])<0&&(i=r[a]);return i},this.functionMaxBy=n=>{let o=n[1],r=n[0],i=this.createKeyFunction(o,[P.TYPE_NUMBER,P.TYPE_STRING]),a=-1/0,s,c;for(let l=0;l<r.length;l+=1)c=i&&i(r[l]),c!==void 0&&c>a&&(a=c,s=r[l]);return s},this.functionMerge=n=>{let o={};for(let r=0;r<n.length;r+=1){let i=n[r];o=Object.assign(o,i)}return o},this.functionMin=([n])=>{if(!n.length)return null;if(this.getTypeName(n[0])===P.TYPE_NUMBER)return Math.min(...n);let r=n,i=r[0];for(let a=1;a<r.length;a+=1)r[a].localeCompare(i)<0&&(i=r[a]);return i},this.functionMinBy=n=>{let o=n[1],r=n[0],i=this.createKeyFunction(o,[P.TYPE_NUMBER,P.TYPE_STRING]),a=1/0,s,c;for(let l=0;l<r.length;l+=1)c=i&&i(r[l]),c!==void 0&&c<a&&(a=c,s=r[l]);return s},this.functionNotNull=n=>{for(let o=0;o<n.length;o+=1)if(this.getTypeName(n[o])!==P.TYPE_NULL)return n[o];return null},this.functionReverse=([n])=>{if(this.getTypeName(n)===P.TYPE_STRING){let i=n,a="";for(let s=i.length-1;s>=0;s-=1)a+=i[s];return a}let r=n.slice(0);return r.reverse(),r},this.functionSort=([n])=>[...n].sort(),this.functionSortBy=n=>{if(!this._interpreter)return[];let o=n[0].slice(0);if(o.length===0)return o;let r=this._interpreter,i=n[1],a=this.getTypeName(r.visit(i,o[0]));if(a!==void 0&&![P.TYPE_NUMBER,P.TYPE_STRING].includes(a))throw new Error(`TypeError: unexpected type (${this.TYPE_NAME_TABLE[a]})`);let s=[];for(let c=0;c<o.length;c+=1)s.push([c,o[c]]);s.sort((c,l)=>{let d=r.visit(i,c[1]),m=r.visit(i,l[1]);if(this.getTypeName(d)!==a)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[a]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(d)]}`);if(this.getTypeName(m)!==a)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[a]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(m)]}`);return d>m?1:d<m?-1:c[0]-l[0]});for(let c=0;c<s.length;c+=1)o[c]=s[c][1];return o},this.functionStartsWith=([n,o])=>n.startsWith(o),this.functionSum=([n])=>n.reduce((o,r)=>o+r,0),this.functionToArray=([n])=>this.getTypeName(n)===P.TYPE_ARRAY?n:[n],this.functionToNumber=([n])=>{let o=this.getTypeName(n),r;return o===P.TYPE_NUMBER?n:o===P.TYPE_STRING&&(r=+n,!isNaN(r))?r:null},this.functionToString=([n])=>this.getTypeName(n)===P.TYPE_STRING?n:JSON.stringify(n),this.functionType=([n])=>{switch(this.getTypeName(n)){case P.TYPE_NUMBER:return"number";case P.TYPE_STRING:return"string";case P.TYPE_ARRAY:return"array";case P.TYPE_OBJECT:return"object";case P.TYPE_BOOLEAN:return"boolean";case P.TYPE_EXPREF:return"expref";case P.TYPE_NULL:return"null";default:return}},this.functionValues=([n])=>Object.values(n),this.functionTable={abs:{_func:this.functionAbs,_signature:[{types:[P.TYPE_NUMBER]}]},avg:{_func:this.functionAvg,_signature:[{types:[P.TYPE_ARRAY_NUMBER]}]},ceil:{_func:this.functionCeil,_signature:[{types:[P.TYPE_NUMBER]}]},contains:{_func:this.functionContains,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY]},{types:[P.TYPE_ANY]}]},ends_with:{_func:this.functionEndsWith,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_STRING]}]},floor:{_func:this.functionFloor,_signature:[{types:[P.TYPE_NUMBER]}]},join:{_func:this.functionJoin,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_ARRAY_STRING]}]},keys:{_func:this.functionKeys,_signature:[{types:[P.TYPE_OBJECT]}]},length:{_func:this.functionLength,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY,P.TYPE_OBJECT]}]},map:{_func:this.functionMap,_signature:[{types:[P.TYPE_EXPREF]},{types:[P.TYPE_ARRAY]}]},max:{_func:this.functionMax,_signature:[{types:[P.TYPE_ARRAY_NUMBER,P.TYPE_ARRAY_STRING]}]},max_by:{_func:this.functionMaxBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},merge:{_func:this.functionMerge,_signature:[{types:[P.TYPE_OBJECT],variadic:!0}]},min:{_func:this.functionMin,_signature:[{types:[P.TYPE_ARRAY_NUMBER,P.TYPE_ARRAY_STRING]}]},min_by:{_func:this.functionMinBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},not_null:{_func:this.functionNotNull,_signature:[{types:[P.TYPE_ANY],variadic:!0}]},reverse:{_func:this.functionReverse,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY]}]},sort:{_func:this.functionSort,_signature:[{types:[P.TYPE_ARRAY_STRING,P.TYPE_ARRAY_NUMBER]}]},sort_by:{_func:this.functionSortBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},starts_with:{_func:this.functionStartsWith,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_STRING]}]},sum:{_func:this.functionSum,_signature:[{types:[P.TYPE_ARRAY_NUMBER]}]},to_array:{_func:this.functionToArray,_signature:[{types:[P.TYPE_ANY]}]},to_number:{_func:this.functionToNumber,_signature:[{types:[P.TYPE_ANY]}]},to_string:{_func:this.functionToString,_signature:[{types:[P.TYPE_ANY]}]},type:{_func:this.functionType,_signature:[{types:[P.TYPE_ANY]}]},values:{_func:this.functionValues,_signature:[{types:[P.TYPE_OBJECT]}]}},this._interpreter=t}registerFunction(t,n,o){if(t in this.functionTable)throw new Error(`Function already defined: ${t}()`);this.functionTable[t]={_func:n.bind(this),_signature:o}}callFunction(t,n){let o=this.functionTable[t];if(o===void 0)throw new Error(`Unknown function: ${t}()`);return this.validateArgs(t,n,o._signature),o._func.call(this,n)}validateInputSignatures(t,n){for(let o=0;o<n.length;o+=1)if("variadic"in n[o]&&o!==n.length-1)throw new Error(`ArgumentError: ${t}() \'variadic\' argument ${o+1} must occur last`)}validateArgs(t,n,o){var r,i;let a;this.validateInputSignatures(t,o);let s=o.filter(S=>{var y;return(y=!S.optional)!==null&&y!==void 0?y:!1}).length,c=(i=(r=o[o.length-1])===null||r===void 0?void 0:r.variadic)!==null&&i!==void 0?i:!1,l=n.length<s,d=n.length>o.length,m=l&&(!c&&s>1||c)?"at least ":"";if(c&&l||!c&&(l||d))throw a=o.length>1,new Error(`ArgumentError: ${t}() takes ${m}${s} argument${a&&"s"||""} but received ${n.length}`);let p,f,h;for(let S=0;S<o.length;S+=1){h=!1,p=o[S].types,f=this.getTypeName(n[S]);let y;for(y=0;y<p.length;y+=1)if(f!==void 0&&this.typeMatches(f,p[y],n[S])){h=!0;break}if(!h&&f!==void 0){let w=p.map(T=>this.TYPE_NAME_TABLE[T]).join(" | ");throw new Error(`TypeError: ${t}() expected argument ${S+1} to be type (${w}) but received type ${this.TYPE_NAME_TABLE[f]} instead.`)}}}typeMatches(t,n,o){if(n===P.TYPE_ANY)return!0;if(n===P.TYPE_ARRAY_STRING||n===P.TYPE_ARRAY_NUMBER||n===P.TYPE_ARRAY){if(n===P.TYPE_ARRAY)return t===P.TYPE_ARRAY;if(t===P.TYPE_ARRAY){let r;n===P.TYPE_ARRAY_NUMBER?r=P.TYPE_NUMBER:n===P.TYPE_ARRAY_STRING&&(r=P.TYPE_STRING);for(let i=0;i<o.length;i+=1){let a=this.getTypeName(o[i]);if(a!==void 0&&r!==void 0&&!this.typeMatches(a,r,o[i]))return!1}return!0}}else return t===n;return!1}getTypeName(t){switch(Object.prototype.toString.call(t)){case"[object String]":return P.TYPE_STRING;case"[object Number]":return P.TYPE_NUMBER;case"[object Array]":return P.TYPE_ARRAY;case"[object Boolean]":return P.TYPE_BOOLEAN;case"[object Null]":return P.TYPE_NULL;case"[object Object]":return t.jmespathType===$.TOK_EXPREF?P.TYPE_EXPREF:P.TYPE_OBJECT;default:return}}createKeyFunction(t,n){if(!this._interpreter)return;let o=this._interpreter;return i=>{let a=o.visit(t,i);if(!n.includes(this.getTypeName(a))){let s=`TypeError: expected one of (${n.map(c=>this.TYPE_NAME_TABLE[c]).join(" | ")}), received ${this.TYPE_NAME_TABLE[this.getTypeName(a)]}`;throw new Error(s)}return a}}},g_=class{constructor(){this._rootValue=null,this.runtime=new h_(this)}search(t,n){return this._rootValue=n,this.visit(t,n)}visit(t,n){let o,r,i,a,s,c,l,d,m,p,f;switch(t.type){case"Field":return n===null?null:Lo(n)?(c=n[t.name],c===void 0?null:c):null;case"Subexpression":for(i=this.visit(t.children[0],n),p=1;p<t.children.length;p+=1)if(i=this.visit(t.children[1],i),i===null)return null;return i;case"IndexExpression":return l=this.visit(t.children[0],n),d=this.visit(t.children[1],l),d;case"Index":if(!Array.isArray(n))return null;let h=t.value;return h<0&&(h=n.length+h),i=n[h],i===void 0&&(i=null),i;case"Slice":if(!Array.isArray(n))return null;let S=[...t.children],y=this.computeSliceParams(n.length,S),[w,T,E]=y;if(i=[],E>0)for(p=w;p<T;p+=E)i.push(n[p]);else for(p=w;p>T;p+=E)i.push(n[p]);return i;case"Projection":if(f=this.visit(t.children[0],n),!Array.isArray(f))return null;for(m=[],p=0;p<f.length;p+=1)r=this.visit(t.children[1],f[p]),r!==null&&m.push(r);return m;case"ValueProjection":if(f=this.visit(t.children[0],n),!Lo(f))return null;m=[];let K=Object.values(f);for(p=0;p<K.length;p+=1)r=this.visit(t.children[1],K[p]),r!==null&&m.push(r);return m;case"FilterProjection":if(f=this.visit(t.children[0],n),!Array.isArray(f))return null;let Z=[],N=[];for(p=0;p<f.length;p+=1)o=this.visit(t.children[2],f[p]),zd(o)||Z.push(f[p]);for(let ce=0;ce<Z.length;ce+=1)r=this.visit(t.children[1],Z[ce]),r!==null&&N.push(r);return N;case"Comparator":switch(a=this.visit(t.children[0],n),s=this.visit(t.children[1],n),t.name){case $.TOK_EQ:i=Rd(a,s);break;case $.TOK_NE:i=!Rd(a,s);break;case $.TOK_GT:i=a>s;break;case $.TOK_GTE:i=a>=s;break;case $.TOK_LT:i=a<s;break;case $.TOK_LTE:i=a<=s;break;default:throw new Error(`Unknown comparator: ${t.name}`)}return i;case $.TOK_FLATTEN:let re=this.visit(t.children[0],n);if(!Array.isArray(re))return null;let oe=[];for(p=0;p<re.length;p+=1)r=re[p],Array.isArray(r)?oe=[...oe,...r]:oe.push(r);return oe;case"Identity":return n;case"MultiSelectList":if(n===null)return null;for(m=[],p=0;p<t.children.length;p+=1)m.push(this.visit(t.children[p],n));return m;case"MultiSelectHash":if(n===null)return null;m={};let H;for(p=0;p<t.children.length;p+=1)H=t.children[p],m[H.name]=this.visit(H.value,n);return m;case"OrExpression":return o=this.visit(t.children[0],n),zd(o)&&(o=this.visit(t.children[1],n)),o;case"AndExpression":return a=this.visit(t.children[0],n),zd(a)?a:this.visit(t.children[1],n);case"NotExpression":return a=this.visit(t.children[0],n),zd(a);case"Literal":return t.value;case $.TOK_PIPE:return l=this.visit(t.children[0],n),this.visit(t.children[1],l);case $.TOK_CURRENT:return n;case $.TOK_ROOT:return this._rootValue;case"Function":let ve=[];for(let ce=0;ce<t.children.length;ce+=1)ve.push(this.visit(t.children[ce],n));return this.runtime.callFunction(t.name,ve);case"ExpressionReference":let ye=t.children[0];return ye.jmespathType=$.TOK_EXPREF,ye;default:throw new Error(`Unknown node type: ${t.type}`)}}computeSliceParams(t,n){let[o,r,i]=n;if(i===null)i=1;else if(i===0){let s=new Error("Invalid slice, step cannot be 0");throw s.name="RuntimeError",s}let a=i<0;return o=o===null?a?t-1:0:this.capSliceRange(t,o,i),r=r===null?a?-1:t:this.capSliceRange(t,r,i),[o,r,i]}capSliceRange(t,n,o){let r=n;return r<0?(r+=t,r<0&&(r=o<0?-1:0)):r>=t&&(r=o<0?t-1:t),r}},E0=new g_,uU=P.TYPE_ANY,dU=P.TYPE_ARRAY,mU=P.TYPE_ARRAY_NUMBER,pU=P.TYPE_ARRAY_STRING,fU=P.TYPE_BOOLEAN,hU=P.TYPE_EXPREF,gU=P.TYPE_NULL,vU=P.TYPE_NUMBER,_U=P.TYPE_OBJECT,yU=P.TYPE_STRING;function aR(e,t){let n=x0.parse(t);return E0.search(n,e)}function cR(e,t,n){if(!e?.trim()||t===null||typeof t!="object")return t;let o;try{o=aR(t,e)??null}catch{return t}return n.projection.preBytes+=sR(t),n.projection.postBytes+=sR(o),n.projection.applied=!0,o}function sR(e){try{return new TextEncoder().encode(JSON.stringify(e)??"").length}catch{return 0}}var O0=new Map([["oauth_connection_revoked","The upstream account for this server was disconnected. Reconnect it in Sokie to use this tool."],["oauth_refresh_failed","The upstream account for this server could not be refreshed. Reconnect it in Sokie to use this tool."],["oauth_refresh_token_missing","The upstream account for this server cannot be refreshed. Reconnect it in Sokie to use this tool."],["credential_rate_limited","Too many credential requests for this server. Wait a moment and retry."],["caller_key_missing","No key for this API in sokie dev. Set SOKIE_CALLER_KEY in .sokie/dev.env, then call the tool again."],["deployment_credential_invalid","Sokie refused this server\'s credential request. Redeploy the server if this keeps happening."]]);function Tn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function lR(e,t){let n=Tn(e)&&Tn(e.error)?e.error.code:null;return typeof n=="string"&&O0.get(n)||t}function uR(e){if(!Tn(e)||!Tn(e.elicitation))return null;let{url:t,message:n,elicitationId:o}=e.elicitation;if(typeof t!="string"||!t)return null;let r=typeof n=="string"&&n?n:"Authorization is required to use this tool.",i=typeof o=="string"?o:"";return new V(-32042,r,{elicitations:[{mode:"url",message:r,url:t,elicitationId:i}]})}async function dR(e,t,n){let o=tR(e);if(!e.platformUrl||!o)throw new Error("This deployment cannot reach Sokie for credentials. Redeploy the server.");let r=await fetch(`${e.platformUrl.replace(/\\/+$/,"")}/${t}`,{method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${o}`},body:JSON.stringify(n)});return{ok:r.ok,payload:await r.json().catch(()=>null)}}async function mR(e,t,n){if(!t.runtimeToken)throw new Error("This server uses each caller\'s own key, so it must be private. Ask its owner to make it private.");let{ok:o,payload:r}=await dR(e,"caller-key",{callerToken:t.runtimeToken,reportInvalid:n});if(!o)throw uR(r)??new Error(lR(r,"Your upstream key could not be read from Sokie."));let i=Tn(r)&&typeof r.apiKey=="string"?r.apiKey.trim():"";if(!i)throw new Error("Sokie returned no upstream key for this call.");return i}async function pR(e,t,n){let o=e.bundle.auth.type==="oauth"&&e.bundle.auth.tokens==="perCaller",r=o?t.runtimeToken:null;if(o&&!r)throw new Error("This server signs each caller in to the upstream, so it must be private. Ask its owner to make it private.");let{ok:i,payload:a}=await dR(e,"oauth-token",{callerToken:r,forceRefresh:n});if(!i)throw uR(a)??new Error(lR(a,"The upstream access token could not be read from Sokie."));let s=Tn(a)&&typeof a.accessToken=="string"?a.accessToken.trim():"";if(!s)throw new Error("Sokie returned no upstream access token for this call.");let c=Tn(a)&&typeof a.tokenType=="string"&&a.tokenType.trim()?a.tokenType.trim():"Bearer";return{accessToken:s,tokenType:c}}var C0=`sokie/${hi} (+https://sokie.sh)`;function N0(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function hR(e,t){let n=e.replace(/\\/+$/,"");if(!/^https?:\\/\\//i.test(n))throw new Error(`This server has no upstream URL: set upstream.baseUrl in sokie.json (got ${n?`"${n}"`:"nothing"}).`);return new URL(t?`${n}/${t.replace(/^\\/+/,"")}`:n)}function fR(e,t){let n=e.secret(t);if(!n)throw new Error(`The secret ${t} is not set for this environment. Its owner sets it with \\`sokie secrets set ${t}\\`.`);return n}async function gR(e,t,n,o,r){let i=new Headers;for(let[s,c]of Object.entries(e.bundle.headers))i.set(s,typeof c=="string"?c:fR(e,c.secret));if(i.has("user-agent")||i.set("user-agent",C0),!t.sendsCredential)return i;let{auth:a}=e.bundle;if(a.type==="oauth"){let s=await pR(e,n,r);i.set("authorization",`${s.tokenType} ${s.accessToken}`)}else if(a.type==="apiKey"){let s=a.key==="perCaller"?await mR(e,n,r):fR(e,a.key.secret);a.in==="query"?o.searchParams.set(a.name,`${a.prefix}${s}`):i.set(a.name,`${a.prefix}${s}`)}return i}async function v_(e,t,n,o,r=!1){let{operation:i}=t;return i.kind==="graphql"?j0(e,t,i,n,o,r):A0(e,t,i,n,o,r)}async function j0(e,t,n,o,r,i){let a=hR(e.baseUrl,""),s=await gR(e,t,r,a,i);s.set("accept","application/json"),s.set("content-type","application/json");let c=Object.fromEntries(Object.entries(o).filter(([,d])=>d!==void 0)),l=JSON.stringify({query:n.document,variables:c});return{url:a.toString(),init:{method:"POST",headers:s,body:l}}}async function A0(e,t,n,o,r,i){let a=n.path.replace(/\\{([^}]+)\\}/g,(m,p)=>encodeURIComponent(String(o[p]??""))),s=hR(e.baseUrl,a),c=await gR(e,t,r,s,i);for(let[m,p]of Object.entries(o)){let f=n.params[m];if(!(p==null||f===void 0||f==="path"))if(f==="query")for(let h of Array.isArray(p)?p:[p])s.searchParams.append(m,String(h));else c.set(m,String(p))}let l=n.body&&o.body!==void 0&&!["GET","HEAD"].includes(n.method.toUpperCase()),d;return l&&n.body&&(d=n.body.contentType==="application/x-www-form-urlencoded"?U0(o.body):JSON.stringify(o.body),c.set("content-type",n.body.contentType)),{url:s.toString(),init:{method:n.method.toUpperCase(),headers:c,body:d}}}function U0(e){let t=new URLSearchParams,n=(o,r)=>{if(r!=null)if(Array.isArray(r))r.forEach((i,a)=>{n(o?`${o}[${a}]`:String(a),i)});else if(N0(r))for(let[i,a]of Object.entries(r))n(o?`${o}[${i}]`:i,a);else o!==null&&t.append(o,String(r))};return n(null,e),t.toString()}function Ct(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}async function M0(e){let t=new Uint8Array(await e.arrayBuffer()),n=(e.headers.get("content-encoding")??"").toLowerCase(),o=D0(n,t);if(o)try{let r=new Blob([t]).stream().pipeThrough(new DecompressionStream(o));return await new Response(r).text()}catch{}return new TextDecoder().decode(t)}function D0(e,t){return e.includes("gzip")&&t[0]===31&&t[1]===139?"gzip":e.includes("deflate")?t[0]===120?"deflate":"deflate-raw":null}async function __(e){let t=await M0(e);if(!t)return null;try{return JSON.parse(t)}catch{return t}}function L0(e){let t=e?.trim();if(!t)return null;let n=Number(t);if(Number.isFinite(n))return n>=0?Math.ceil(n):null;let o=Date.parse(t);return Number.isNaN(o)?null:Math.max(0,Math.ceil((o-Date.now())/1e3))}function q0(e){if(!Ct(e))return{code:null,message:null};let t=Ct(e.error)?e.error:null,n=(...o)=>{for(let r of o)if(typeof r=="string"&&r.trim())return r.trim();return null};return{code:n(t?.code,t?.type,e.code,e.error_code,typeof e.error=="string"?e.error:null),message:n(t?.message,e.message,e.error_description,e.detail)}}var _R=/^(?:invalid|missing|expired|revoked|bad)[_-]?(?:token|api[_-]?key|key|credentials?|auth)$|^(?:token|api[_-]?key|key|credentials?)[_-]?(?:expired|revoked|invalid|missing)$|^unauthenticated$/i;function V0(e,t,n){let{code:o,message:r}=q0(t),i=n.bundle.auth.type==="apiKey"&&n.bundle.auth.key==="perCaller",a=e===401||e===403&&o!==null&&_R.test(o)||yR(t);if(i&&a){let s=n.connectUrl?`Reconnect at ${n.connectUrl}`:"Reconnect it on this server\'s Sokie connect page";return`The upstream API refused the key you connected for "${n.bundle.name}"; it was most likely revoked, rotated or expired. ${s}. Signing in to Sokie again will not fix it.`}return e===403&&(o||r)?`The upstream API refused this action (${[o,r].filter(Boolean).join(": ")}). This is a permission decision, not a connection problem; reconnecting will not change it.`:null}function Z0(e){return!Ct(e)||!Array.isArray(e.errors)?[]:e.errors.map(t=>Ct(t)&&Ct(t.extensions)&&typeof t.extensions.code=="string"?t.extensions.code:"").filter(Boolean)}function yR(e){return Z0(e).some(t=>_R.test(t))}function SR(e,t,n){return t===401?!0:e.operation.kind==="graphql"&&yR(n)}function y_(e){if(!Ct(e)||!Array.isArray(e.errors)||e.errors.length===0)return null;let t=e.errors.map(n=>Ct(n)&&typeof n.message=="string"?n.message.trim():"").filter(Boolean);return t.length>0?t.join(" "):"GraphQL execution failed."}function vR(e,t,n,o){let r=y_(t)??(typeof t=="string"?t:t?JSON.stringify(t,null,2):"No response body."),i=V0(e,t,o),s=[e>=200&&e<300?"The upstream GraphQL API answered with errors.":`The upstream request failed with status ${e}.`,i,r].filter(Boolean).join(" ");return new gr(s,e,n)}function bR(e,t,n,o){if(!t.ok)throw vR(t.status,n,L0(t.headers.get("retry-after")),o);if(e.operation.kind!=="graphql")return n;let r=y_(n),i=Ct(n)&&Ct(n.data)?n.data:null,a=e.operation.field;if(i&&i[a]!==void 0&&i[a]!==null)return i[a];if(r)throw vR(t.status,n,null,o);if(!i)throw new Error("The GraphQL response had no data.");return i[a]??null}function $R(e,t){if(e.operation.kind!=="graphql")return null;let o=(Ct(t)&&Ct(t.data)?t.data:null)?.[e.operation.field];if(o==null)return null;let r=y_(t);return r?`The API also reported errors for part of this result: ${r}`:null}function zR(e,t){return t==null?`${e.title??e.name} completed.`:typeof t=="string"?t:JSON.stringify(t,null,2)}function F0(e,t,n){if(Math.abs(e.length-t.length)>n)return n+1;let o=Array.from({length:t.length+1},(r,i)=>i);for(let r=1;r<=e.length;r+=1){let i=[r],a=r;for(let s=1;s<=t.length;s+=1){let c=e[r-1]===t[s-1]?0:1,l=Math.min((o[s]??0)+1,(i[s-1]??0)+1,(o[s-1]??0)+c);i[s]=l,a=Math.min(a,l)}if(a>n)return n+1;o=i}return o[t.length]??n+1}function RR(e,t){let n=Math.max(1,Math.floor(e.length/3)),o=e.toLowerCase(),r=null,i=n+1;for(let a of t){if(a.toLowerCase()===o)return a;let s=F0(o,a.toLowerCase(),n);s<=n&&s<i&&(r=a,i=s)}return r}function dr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ne=e=>e.length>0?`/${e.join("/")}`:"/";function kR(e){return typeof e.type=="string"?[e.type]:Array.isArray(e.type)?e.type.filter(t=>typeof t=="string"):[]}function Ya(e,t){let n=[];return kd(e,t,[],n),n}function wR(e,t,n){let o=Ya(t,n);if(o.length>0)throw new vr(e,o);return dr(n)?n:{}}function kd(e,t,n,o){if(t===null&&(e.nullable===!0||kR(e).includes("null")))return;for(let a of["anyOf","oneOf"]){let s=e[a];if(!Array.isArray(s)||s.length===0)continue;s.some(l=>dr(l)&&Ya(l,t).length===0)||o.push(`${Ne(n)} must match at least one allowed schema`);return}if(Object.hasOwn(e,"const")&&t!==e.const){o.push(`${Ne(n)} must equal ${JSON.stringify(e.const)}`);return}if(Array.isArray(e.enum)&&!e.enum.some(a=>a===t)){o.push(`${Ne(n)} must be one of ${e.enum.map(a=>JSON.stringify(a)).join(", ")}`);return}let r=kR(e).filter(a=>a!=="null"),i=r.length>0?r:dr(e.properties)?["object"]:dr(e.items)?["array"]:[];if(i.length!==0){if(i.length>1){i.some(s=>Ya({...e,type:s},t).length===0)||o.push(`${Ne(n)} must be one of the types ${i.join(", ")}`);return}K0(i[0]??"",e,t,n,o)}}function K0(e,t,n,o,r){e==="object"?J0(t,n,o,r):e==="array"?B0(t,n,o,r):e==="string"?H0(t,n,o,r):e==="integer"||e==="number"?G0(e,t,n,o,r):e==="boolean"&&typeof n!="boolean"&&r.push(`${Ne(o)} must be a boolean`)}function J0(e,t,n,o){if(!dr(t)){o.push(`${Ne(n)} must be an object`);return}let r=dr(e.properties)?e.properties:{},i=Array.isArray(e.required)?e.required.filter(a=>typeof a=="string"):[];for(let a of i)t[a]===void 0&&o.push(`${Ne([...n,a])} is required`);for(let[a,s]of Object.entries(t)){if(s===void 0)continue;let c=r[a];if(dr(c))kd(c,s,[...n,a],o);else if(e.additionalProperties===!1){let l=RR(a,Object.keys(r));o.push(`${Ne([...n,a])} is not allowed${l?` (did you mean "${l}"?)`:""}`)}else dr(e.additionalProperties)&&kd(e.additionalProperties,s,[...n,a],o)}}function B0(e,t,n,o){if(!Array.isArray(t)){o.push(`${Ne(n)} must be an array`);return}typeof e.minItems=="number"&&t.length<e.minItems&&o.push(`${Ne(n)} must contain at least ${e.minItems} items`),typeof e.maxItems=="number"&&t.length>e.maxItems&&o.push(`${Ne(n)} must contain no more than ${e.maxItems} items`);let r=e.items;dr(r)&&t.forEach((i,a)=>{kd(r,i,[...n,String(a)],o)})}function H0(e,t,n,o){if(typeof t!="string"){o.push(`${Ne(n)} must be a string`);return}typeof e.minLength=="number"&&t.length<e.minLength&&o.push(`${Ne(n)} must have length at least ${e.minLength}`),typeof e.maxLength=="number"&&t.length>e.maxLength&&o.push(`${Ne(n)} must have length no greater than ${e.maxLength}`),typeof e.pattern=="string"&&!Y0(e.pattern,t)&&o.push(`${Ne(n)} must match pattern ${e.pattern}`)}function Y0(e,t){try{return new RegExp(e).test(t)}catch{return!0}}function G0(e,t,n,o,r){if(typeof n!="number"||Number.isNaN(n)||e==="integer"&&!Number.isInteger(n)){r.push(`${Ne(o)} must be ${e==="integer"?"an integer":"a number"}`);return}typeof t.minimum=="number"&&n<t.minimum&&r.push(`${Ne(o)} must be at least ${t.minimum}`),typeof t.maximum=="number"&&n>t.maximum&&r.push(`${Ne(o)} must be no greater than ${t.maximum}`)}var IR=3e4;async function TR(e){try{return await fetch(e.url,{...e.init,signal:AbortSignal.timeout(IR)})}catch(t){throw t instanceof Error&&t.name==="TimeoutError"?new gr(`The upstream API didn\'t answer within ${IR/1e3} seconds. Try again; if it keeps happening, the API may be down or the request too large.`,504):t}}async function S_(e,t,n,o){let r=wR(t.name,t.inputSchema,n),i=await TR(await v_(e,t,r,o)),a=await __(i);SR(t,i.status,a)&&W0(e,t)&&(i=await TR(await v_(e,t,r,o,!0)),a=await __(i));let s=bR(t,i,a,e),c=cR(t.project,s,o),l=$R(t,a);return{content:[{type:"text",text:zR(t,c)},...l?[{type:"text",text:l}]:[]]}}function W0(e,t){let{auth:n}=e.bundle;return t.sendsCredential?n.type==="oauth"||n.type==="apiKey"&&n.key==="perCaller":!1}function b_(e){if(typeof e=="object"&&e!==null){for(let t of Object.values(e))b_(t);Object.freeze(e)}return e}function xR(e,t){let n=b_(structuredClone(t));return b_({"~standard":{version:1,vendor:"sokie",validate:o=>{let r=Ya(n,o);return r.length===0?{value:o}:{issues:[{message:new vr(e,r).message}]}},jsonSchema:{input:()=>n,output:()=>n}}})}var ER=new WeakMap;function OR(e){let t=ER.get(e);if(t)return t;let n=xR(e.name,e.inputSchema);return ER.set(e,n),n}var PR=new WeakMap;function CR(e){let t=PR.get(e);if(t)return t;let n={catalog:Object.freeze(e.map(o=>({name:o.name,title:o.title??o.name,description:o.description,tags:o.tags??[]}))),byName:new Map(e.map(o=>[o.name,o]))};return PR.set(e,n),n}async function $_(e,t){try{return await e()}catch(n){if(!T_(n))return I_(n);let o=t.clientCapabilities();if(o&&!o.elicitation)return Q0(n);if(t.era==="modern")return X0(n,t.inputRequired);throw n}}function X0(e,t){let n=Object.fromEntries(e.data.elicitations.map((o,r)=>[o.elicitationId||`elicitation_${r}`,t.elicitUrl({url:o.url,message:o.message})]));return t({inputRequests:n})}function Q0(e){let t=e.data.elicitations.map(n=>`${n.message} Open this page, then run the tool again: ${n.url}`);return t.push("Reconnecting or signing in to Sokie again will not fix this; the credential has to be provided at that page."),{content:[{type:"text",text:t.join(" ")}],isError:!0,_meta:{...ps(e),errorClass:"POLICY_DENIED",retryable:!1,elicitationUndeliverable:!0,elicitationUrls:e.data.elicitations.map(n=>n.url)}}}function NR(e,t){return{era:t.era,inputRequired:Kv,clientCapabilities:()=>e.server.getClientCapabilities()}}function wd(e,t,n,o){e.registerTool.bind(e)(t,n,o)}async function jR(e,t,n){e.call.tool=t;let o=await n();if(o.isError){e.call.isError=!0;let r=o._meta??{};typeof r.errorClass=="string"&&(e.call.errorClass=r.errorClass),typeof r.httpStatus=="number"&&(e.call.upstreamStatus=r.httpStatus)}return o}function AR(e,t,n){for(let o of t.bundle.tools)wd(e,o.name,{title:o.title,description:o.description,inputSchema:OR(o),...o.annotations?{annotations:o.annotations}:{}},r=>jR(n,o.name,()=>$_(()=>S_(t,o,r,n),NR(e,n))))}var z_=(e,t=!1)=>({content:[{type:"text",text:e}],...t?{isError:t}:{}});function UR(e,t,n){let{catalog:o,byName:r}=CR(t.bundle.tools),i=a=>z_(`Unknown tool "${a??""}". Use searchTools to find tool names.`,!0);wd(e,"searchTools",{title:"Search tools",description:"Find tools on this server by keyword or /regex/. Returns names and summaries without input schemas; call getToolDefinition for a tool\'s schema, then useTool to run it.",inputSchema:We.object({query:We.string(),limit:We.number().int().optional()})},async a=>{let{query:s="",limit:c=10}=a;return z_(JSON.stringify(xd(o,s,c),null,2))}),wd(e,"getToolDefinition",{title:"Get tool definition",description:"The full definition (description and input schema) of one tool, by exact name. Find names with searchTools.",inputSchema:We.object({name:We.string()})},async a=>{let s=r.get(a.name??"");if(!s)return i(a.name);let{name:c,title:l,description:d,inputSchema:m}=s;return z_(JSON.stringify({name:c,title:l,description:d,inputSchema:m},null,2))}),wd(e,"useTool",{title:"Use tool",description:"Run a tool by exact name with its arguments. Get the argument shape from getToolDefinition first.",inputSchema:We.object({name:We.string(),arguments:We.record(We.string(),We.unknown()).optional()})},async a=>{let{name:s,arguments:c}=a,l=r.get(s??"");return l?jR(n,l.name,()=>$_(()=>S_(t,l,c??{},n),NR(e,n))):{...i(s),_meta:{error:`Unknown tool "${s??""}".`,errorClass:"BINDING_MISUSE",retryable:!1}}})}function MR(e,t){let n=e.registerPrompt.bind(e);for(let o of t){let r=Object.fromEntries(o.arguments.map(i=>[i.name,i.required?We.string():We.string().optional()]));n(o.name,{title:o.title,description:o.description,argsSchema:r},i=>({messages:[{role:"user",content:{type:"text",text:eO(o.template,i??{})}}]}))}}function eO(e,t){return e.replace(/\\{\\{\\s*([A-Za-z_][A-Za-z0-9_]*)\\s*\\}\\}/g,(n,o)=>{let r=t[o];return r==null?"":String(r)})}function DR(e,t){let n=e.registerResource.bind(e);for(let o of t){let{name:r,uri:i,title:a,description:s,mimeType:c,content:l}=o;n(r,i,{title:a,description:s,mimeType:c},async()=>({contents:[{uri:i,mimeType:c,text:l}]}))}}var tO=/^[A-Za-z][A-Za-z0-9_./-]{0,63}$/;async function LR(e){let t;try{t=await e.clone().json()}catch{return null}if(Array.isArray(t))return t.length>0?"batch":null;if(typeof t!="object"||t===null||!("method"in t))return null;let{method:n}=t;return typeof n=="string"&&tO.test(n)?n:null}function rO(e){let t={ttlMs:6e4,cacheScope:e.accessMode==="public"?"public":"private"};return{"tools/list":t,"prompts/list":t,"resources/list":t,"resources/templates/list":t,"resources/read":t,"server/discover":t}}function qR(e,t){let n=new Do({name:e.bundle.name,version:e.bundle.version},{cacheHints:rO(e)});return e.bundle.discovery==="search"?UR(n,e,t):AR(n,e,t),e.bundle.prompts.length>0&&MR(n,e.bundle.prompts),e.bundle.resources.length>0&&DR(n,e.bundle.resources),n}async function nO(e,t,n){if(await Fz(e)){let r=qR(t,{...n,era:"legacy"}),i=new c_({sessionIdGenerator:void 0,enableJsonResponse:!0});return await r.connect(i),await i.handleRequest(e)}return await Kz(r=>qR(t,{...n,era:r.era}),{legacy:"reject",responseMode:"json"}).fetch(e)}function oO(e){let t=e==="GET"?"This MCP endpoint is stateless and offers no server-initiated stream. Send JSON-RPC requests with POST.":"This MCP endpoint is stateless and issues no session to end.";return Response.json({jsonrpc:"2.0",id:null,error:{code:-32e3,message:t}},{status:405,headers:{allow:"POST"}})}function FR(e,t){let n=t.SOKIE_COMMIT?.trim(),o=t.SOKIE_DEPLOYMENT_ID?.trim();return{runtime:hi,version:e.version,...n?{commit:n}:{},...o?{deployment:o}:{}}}function VR(e,t,n){let o=new URL(e.url).origin,r=Xz(m_(t));return Response.json({status:"ok",message:`This is an MCP server. Connect an MCP client to ${o}/mcp.`,authentication:{required:r.protected,summary:r.summary},...FR(n,t),endpoints:{health:`${o}/health`,mcp:`${o}/mcp`}})}var ZR=/^[\\x21-\\x7e]{1,128}$/;function iO(e,t,n){let o=t.projection.applied&&t.projection.preBytes>0,r=t.call.tool!==null&&ZR.test(t.call.tool)?t.call.tool:null;if(!o&&r===null&&n===null)return e;let i=new Headers(e.headers);if(n!==null&&i.set("x-sokie-method",n),o&&(i.set("x-sokie-projection-pre-bytes",String(t.projection.preBytes)),i.set("x-sokie-projection-post-bytes",String(t.projection.postBytes))),r!==null){i.set("x-sokie-tool",r),t.call.isError&&i.set("x-sokie-tool-error","1");let{errorClass:a,upstreamStatus:s}=t.call;t.call.isError&&a!==null&&ZR.test(a)&&i.set("x-sokie-tool-error-class",a),t.call.isError&&s!==null&&Number.isInteger(s)&&i.set("x-sokie-upstream-status",String(s))}return new Response(e.body,{status:e.status,statusText:e.statusText,headers:i})}function aO(e){async function t(n,o){let{pathname:r}=new URL(n.url);if(r==="/health")return Response.json({status:"ok",...FR(e,o)});if(r==="/")return VR(n,o,e);if(r!=="/mcp")return new Response("Not found",{status:404});if(n.method==="GET"&&(n.headers.get("accept")??"").includes("text/html"))return VR(n,o,e);let i=rR(e,o),a=await Qz(n,i);if(a.response)return a.response;if(n.method==="GET"||n.method==="DELETE")return oO(n.method);let s=nR({userId:a.userId,runtimeToken:a.token,clientName:a.clientName}),c=await LR(n);return iO(await nO(n,i,s),s,c)}return{handleRequest:t,bundle:e}}function sO(e){return{fetch:(t,n)=>e.handleRequest(t,n)}}export{hi as RUNTIME_VERSION,vr as ToolInputError,gr as UpstreamHttpError,Gz as audienceMatches,l_ as bearerToken,ps as classifyToolError,aO as defineServer,Yz as previousKeyInWindow,xd as searchCatalog,sO as toWorkerHandler,u_ as verifyRuntimeToken};\n';
|
|
65633
|
+
var RUNTIME_MODULE = 'var ak=Object.defineProperty;var Qt=(e,t)=>{for(var n in t)ak(e,n,{get:t[n],enumerable:!0})};var C_=e=>e.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),Od=e=>[e.name,e.title,e.description,e.tags.join(" ")].join(" "),O_=new WeakMap;function sk(e){let t=O_.get(e);if(t)return t;let n=e.map(a=>C_(Od(a))),o=new Map;for(let a of n)for(let s of new Set(a))o.set(s,(o.get(s)??0)+1);let r=n.reduce((a,s)=>a+s.length,0),i={docs:n,frequency:o,averageLength:n.length>0?r/n.length:0};return O_.set(e,i),i}function ck(e,t,n){let o=e.docs[t]??[];if(o.length===0)return 0;let r=new Map;for(let s of o)r.set(s,(r.get(s)??0)+1);let i=e.averageLength||1,a=0;for(let s of n){let c=r.get(s);if(!c)continue;let l=e.frequency.get(s)??0,u=Math.log(1+(e.docs.length-l+.5)/(l+.5));a+=u*(c*(1.5+1)/(c+1.5*(1-.75+.75*o.length/i)))}return a}function lk(e,t){let n=e.name.toLowerCase(),o=e.title.toLowerCase();return n===t||o===t?2:n.startsWith(t)||o.startsWith(t)?1:0}function uk(e){let t=/^\\/(.+)\\/([a-z]*)$/.exec(e);if(!t?.[1])return null;try{return new RegExp(t[1],(t[2]??"").replace("g",""))}catch{return null}}var ps=(e,t)=>({name:e.name,title:e.title,description:e.description,score:t});function Cd(e,t,n=10){let o=Math.max(1,Math.min(Math.floor(n)||10,100)),r=t.trim();if(!r)return e.slice(0,o).map(u=>ps(u,0));let i=uk(r);if(i)return e.filter(u=>i.test(Od(u))).slice(0,o).map(u=>ps(u,1));let a=sk(e),s=C_(r),c=r.toLowerCase(),l=e.map((u,m)=>({entry:u,match:lk(u,c),score:ck(a,m,s)})).filter(u=>u.match>0||u.score>0).sort((u,m)=>m.match-u.match||m.score-u.score).slice(0,o).map(u=>ps(u.entry,Number(u.score.toFixed(4))));return l.length>0?l:e.filter(u=>Od(u).toLowerCase().includes(c)).slice(0,o).map(u=>ps(u,1))}var dk=new Set([408,429,500,502,503,504]),gr=class extends Error{status;retryable;retryAfterSeconds;constructor(t,n,o=null){super(t),this.name="UpstreamHttpError",this.status=n,this.retryable=dk.has(n),this.retryAfterSeconds=o}},vr=class extends Error{issues;constructor(t,n){super(`Invalid input for ${t}: ${n.join("; ")}`),this.name="ToolInputError",this.issues=n}};function fs(e){return e instanceof gr?{error:e.message,errorClass:"UPSTREAM",httpStatus:e.status,retryable:e.retryable,...e.retryAfterSeconds!==null?{retryAfterSeconds:e.retryAfterSeconds}:{}}:e instanceof vr?{error:e.message,errorClass:"BINDING_MISUSE",retryable:!1}:{error:e instanceof Error?e.message:"Tool execution failed.",errorClass:"INTERNAL",retryable:!1}}function N_(e){let t=fs(e);return{content:[{type:"text",text:t.error}],isError:!0,_meta:{...t}}}function j_(e){if(typeof e!="object"||e===null)return!1;let{code:t,data:n}=e;return t===-32042&&Array.isArray(n?.elicitations)}var mk=["read","write","delete","external_effect"];var jd="x-sokie-policy";function A_(e,t){return e&&Object.hasOwn(e,t)?e[t]??null:null}function hs(e,t){return A_(e.tools,t.name)??A_(e.areas,t.area)??e.kinds[t.effect]}function Ad(e,t,n){if(n.readOnly&&t.effect!=="read")return"off";let o=e?hs(e,t):"allow";return o==="ask"&&n.publicServer?"off":o}var pk=e=>e==="allow"||e==="ask"||e==="off";function Nd(e){if(e===void 0)return{};if(typeof e!="object"||e===null||Array.isArray(e))return null;let t=Object.create(null);for(let[n,o]of Object.entries(e)){if(!pk(o))return null;t[n]=o}return t}function hi(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null||Array.isArray(t))return null;let n=t,o=Nd(n.kinds);if(!o||!mk.every(a=>Object.hasOwn(o,a)))return null;let r=Nd(n.areas),i=Nd(n.tools);return!r||!i?null:{kinds:{read:o.read,write:o.write,delete:o.delete,external_effect:o.external_effect},...Object.keys(r).length>0?{areas:r}:{},...Object.keys(i).length>0?{tools:i}:{}}}function fk(e){let t=n=>n&&Object.keys(n).length>0?Object.fromEntries(Object.keys(n).sort().map(o=>[o,n[o]])):void 0;return JSON.stringify({kinds:{read:e.kinds.read,write:e.kinds.write,delete:e.kinds.delete,external_effect:e.kinds.external_effect},areas:t(e.areas),tools:t(e.tools)})}var gi="0.2.0";var hk=Object.create,gs=Object.defineProperty,gk=Object.getOwnPropertyDescriptor,vk=Object.getOwnPropertyNames,_k=Object.getPrototypeOf,yk=Object.prototype.hasOwnProperty,U_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),D_=(e,t)=>{let n={};for(var o in e)gs(n,o,{get:e[o],enumerable:!0});return t&&gs(n,Symbol.toStringTag,{value:"Module"}),n},Sk=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=vk(t),i=0,a=r.length,s;i<a;i++)s=r[i],!yk.call(e,s)&&s!==n&&gs(e,s,{get:(c=>t[c]).bind(null,s),enumerable:!(o=gk(t,s))||o.enumerable});return e},L_=(e,t,n)=>(n=e!=null?hk(_k(e)):{},Sk(t||!e||!e.__esModule?gs(n,"default",{value:e,enumerable:!0}):n,e));var bk=new Set(["https://json-schema.org/draft/2020-12/schema","http://json-schema.org/draft/2020-12/schema"]),M_=new Set(["https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft/2019-09/schema"]),$k=new Set(["https://json-schema.org/draft-07/schema","http://json-schema.org/draft-07/schema"]),zk=new Set(["https://json-schema.org/draft-06/schema","http://json-schema.org/draft-06/schema"]);function q_(e){return typeof e=="string"&&M_.has(e.replace(/#$/,""))}function V_(e,t){if(!("$schema"in e)||typeof e.$schema!="string")return"2020-12";let n=e.$schema.replace(/#$/,"");if(bk.has(n))return"2020-12";if(M_.has(n))return"2019-09";if($k.has(n)||zk.has(n))return"draft-7";throw new Error(`JSON Schema declares an unsupported dialect ("$schema": "${e.$schema.slice(0,200)}"). The default validator supports JSON Schema 2020-12, 2019-09, draft-07, and draft-06; ${t}`)}var We={};Qt(We,{$brand:()=>Wd,$input:()=>bf,$output:()=>Sf,NEVER:()=>ki,TimePrecision:()=>Pf,ZodAny:()=>pg,ZodArray:()=>vg,ZodBase64:()=>cl,ZodBase64URL:()=>ll,ZodBigInt:()=>So,ZodBigIntFormat:()=>ml,ZodBoolean:()=>yo,ZodCIDRv4:()=>al,ZodCIDRv6:()=>sl,ZodCUID:()=>Qc,ZodCUID2:()=>el,ZodCatch:()=>Ag,ZodCodec:()=>ra,ZodCompileAsyncError:()=>Tt,ZodCompileUnsupportedError:()=>de,ZodCreditCard:()=>lg,ZodCustom:()=>na,ZodCustomStringFormat:()=>vo,ZodDate:()=>Wi,ZodDefault:()=>Eg,ZodDiscriminatedUnion:()=>yg,ZodE164:()=>ul,ZodEmail:()=>Hc,ZodEmoji:()=>Wc,ZodEnum:()=>fo,ZodError:()=>Ex,ZodExactOptional:()=>gl,ZodFile:()=>wg,ZodFirstPartyTypeKind:()=>Hg,ZodFunction:()=>Kg,ZodGUID:()=>Gc,ZodIPv4:()=>ol,ZodIPv6:()=>il,ZodISODate:()=>Tr,ZodISODateTime:()=>Ir,ZodISODuration:()=>Er,ZodISOTime:()=>xr,ZodIntersection:()=>Sg,ZodIssueCode:()=>Yg,ZodJWT:()=>dl,ZodKSUID:()=>nl,ZodLazy:()=>Zg,ZodLiteral:()=>kg,ZodMAC:()=>cg,ZodMap:()=>zg,ZodNaN:()=>Dg,ZodNanoID:()=>Xc,ZodNever:()=>hg,ZodNonOptional:()=>vl,ZodNull:()=>mg,ZodNullable:()=>xg,ZodNumber:()=>_o,ZodNumberFormat:()=>vn,ZodObject:()=>Xi,ZodOptional:()=>ea,ZodPipe:()=>ta,ZodPrefault:()=>Og,ZodPreprocess:()=>Lg,ZodPromise:()=>Fg,ZodReadonly:()=>Mg,ZodRealError:()=>at,ZodRecord:()=>po,ZodSet:()=>Rg,ZodString:()=>ho,ZodStringFormat:()=>he,ZodSuccess:()=>jg,ZodSymbol:()=>ug,ZodTemplateLiteral:()=>Vg,ZodTransform:()=>Ig,ZodTuple:()=>bg,ZodType:()=>le,ZodULID:()=>tl,ZodURL:()=>Gi,ZodUUID:()=>Ft,ZodUndefined:()=>dg,ZodUnion:()=>Qi,ZodUnknown:()=>fg,ZodVoid:()=>gg,ZodXID:()=>rl,ZodXor:()=>_g,_ZodString:()=>Bc,_default:()=>Pg,_function:()=>Yb,any:()=>pl,array:()=>b,base64:()=>pb,base64url:()=>fb,bigint:()=>wb,boolean:()=>D,catch:()=>Ug,check:()=>Gb,cidrv4:()=>db,cidrv6:()=>mb,clone:()=>me,codec:()=>Kb,coerce:()=>ia,compile:()=>kf,config:()=>$e,core:()=>tr,creditCard:()=>gb,cuid:()=>nb,cuid2:()=>ob,custom:()=>Wb,date:()=>Ob,decode:()=>tg,decodeAsync:()=>ng,deepPartial:()=>c$,describe:()=>Xb,discriminatedUnion:()=>Pr,e164:()=>hb,email:()=>Yc,emoji:()=>tb,encode:()=>eg,encodeAsync:()=>rg,endsWith:()=>no,enum:()=>te,exactOptional:()=>Tg,file:()=>qb,flattenError:()=>Ii,float32:()=>$b,float64:()=>zb,formatError:()=>Ti,fromJSONSchema:()=>a$,function:()=>Yb,getDiscriminatedOption:()=>Kp,getErrorMap:()=>Nx,globalRegistry:()=>je,gt:()=>Vt,gte:()=>ht,guid:()=>YS,hash:()=>bb,hex:()=>Sb,hostname:()=>yb,httpUrl:()=>eb,includes:()=>to,input:()=>u$,instanceof:()=>e$,int:()=>Kc,int32:()=>Rb,int64:()=>Ib,intersection:()=>Et,invertCodec:()=>Jb,ipv4:()=>cb,ipv6:()=>ub,iso:()=>$t,json:()=>r$,jwt:()=>vb,keyof:()=>Cb,ksuid:()=>sb,lazy:()=>Or,length:()=>fn,literal:()=>z,locales:()=>Mi,looseObject:()=>Y,looseRecord:()=>Ub,lowercase:()=>Qn,lt:()=>qt,lte:()=>ft,mac:()=>lb,map:()=>Db,maxLength:()=>pn,maxSize:()=>zr,memoizer:()=>Di,meta:()=>Qb,mime:()=>oo,minLength:()=>er,minSize:()=>Zt,multipleOf:()=>$r,nan:()=>Fb,nanoid:()=>rb,nativeEnum:()=>Mb,negative:()=>Nc,never:()=>fl,nonnegative:()=>Ac,nonoptional:()=>Ng,nonpositive:()=>jc,normalize:()=>io,null:()=>Kt,nullable:()=>Yi,nullish:()=>Vb,number:()=>x,object:()=>g,optional:()=>F,output:()=>d$,overwrite:()=>xt,parse:()=>Wh,parseAsync:()=>Xh,partialRecord:()=>Ab,pipe:()=>Jc,positive:()=>Cc,prefault:()=>Cg,preprocess:()=>rr,prettifyError:()=>rm,promise:()=>Hb,properties:()=>Dc,property:()=>Uc,readonly:()=>qg,record:()=>j,refine:()=>Jg,regex:()=>Xn,regexes:()=>He,registry:()=>uc,safeDecode:()=>ig,safeDecodeAsync:()=>sg,safeEncode:()=>og,safeEncodeAsync:()=>ag,safeParse:()=>Hi,safeParseAsync:()=>Qh,set:()=>Lb,setErrorMap:()=>Cx,size:()=>mn,slugify:()=>lo,startsWith:()=>ro,strictObject:()=>Nb,string:()=>d,stringFormat:()=>_b,stringbool:()=>t$,success:()=>Zb,superRefine:()=>Bg,symbol:()=>xb,templateLiteral:()=>Bb,toJSONSchema:()=>hn,toLowerCase:()=>so,toUpperCase:()=>co,toZod:()=>vi,transform:()=>hl,treeifyError:()=>tm,trim:()=>ao,tuple:()=>$g,uint32:()=>kb,uint64:()=>Tb,ulid:()=>ib,undefined:()=>Eb,union:()=>A,unknown:()=>B,uppercase:()=>eo,url:()=>go,util:()=>I,uuid:()=>GS,uuidv4:()=>WS,uuidv6:()=>XS,uuidv7:()=>QS,validate:()=>im,validateAsync:()=>am,void:()=>Pb,xid:()=>ab,xor:()=>jb});var tr={};Qt(tr,{$ZodAny:()=>Up,$ZodArray:()=>Vp,$ZodAsyncError:()=>ot,$ZodBase64:()=>wp,$ZodBase64URL:()=>Ip,$ZodBigInt:()=>Xs,$ZodBigIntFormat:()=>Cp,$ZodBoolean:()=>Ni,$ZodCIDRv4:()=>Rp,$ZodCIDRv6:()=>kp,$ZodCUID:()=>mp,$ZodCUID2:()=>pp,$ZodCatch:()=>cf,$ZodCheck:()=>ge,$ZodCheckBigIntFormat:()=>qm,$ZodCheckEndsWith:()=>Qm,$ZodCheckGreaterThan:()=>As,$ZodCheckIncludes:()=>Wm,$ZodCheckLengthEquals:()=>Bm,$ZodCheckLessThan:()=>js,$ZodCheckLowerCase:()=>Ym,$ZodCheckMaxLength:()=>Km,$ZodCheckMaxSize:()=>Vm,$ZodCheckMimeType:()=>ep,$ZodCheckMinLength:()=>Jm,$ZodCheckMinSize:()=>Zm,$ZodCheckMultipleOf:()=>Lm,$ZodCheckNumberFormat:()=>Mm,$ZodCheckOverwrite:()=>tp,$ZodCheckProperty:()=>Us,$ZodCheckRegex:()=>Hm,$ZodCheckSizeEquals:()=>Fm,$ZodCheckStartsWith:()=>Xm,$ZodCheckStringFormat:()=>Yn,$ZodCheckUpperCase:()=>Gm,$ZodCodec:()=>Ai,$ZodCreditCard:()=>xp,$ZodCustom:()=>hf,$ZodCustomStringFormat:()=>Pp,$ZodCyclicError:()=>oc,$ZodDate:()=>qp,$ZodDefault:()=>nf,$ZodDiscriminatedUnion:()=>Jp,$ZodE164:()=>Tp,$ZodEmail:()=>ap,$ZodEmoji:()=>up,$ZodEncodeError:()=>Sr,$ZodEnum:()=>Wp,$ZodError:()=>wi,$ZodExactOptional:()=>tf,$ZodFile:()=>Qp,$ZodFunction:()=>pf,$ZodGUID:()=>op,$ZodIPv4:()=>bp,$ZodIPv6:()=>$p,$ZodISODate:()=>_p,$ZodISODateTime:()=>vp,$ZodISODuration:()=>Sp,$ZodISOTime:()=>yp,$ZodIntersection:()=>Bp,$ZodJWT:()=>Ep,$ZodKSUID:()=>gp,$ZodLazy:()=>Ui,$ZodLiteral:()=>Xp,$ZodMAC:()=>zp,$ZodMap:()=>Yp,$ZodNaN:()=>lf,$ZodNanoID:()=>dp,$ZodNever:()=>Lp,$ZodNonOptional:()=>af,$ZodNull:()=>Ap,$ZodNullable:()=>rf,$ZodNumber:()=>Ws,$ZodNumberFormat:()=>Op,$ZodObject:()=>yy,$ZodObjectJIT:()=>Zp,$ZodOptional:()=>ec,$ZodPipe:()=>tc,$ZodPrefault:()=>of,$ZodPreprocess:()=>uf,$ZodPromise:()=>ff,$ZodReadonly:()=>df,$ZodRealError:()=>it,$ZodRecord:()=>Hp,$ZodRegistry:()=>lc,$ZodSet:()=>Gp,$ZodString:()=>sn,$ZodStringFormat:()=>fe,$ZodSuccess:()=>sf,$ZodSymbol:()=>Np,$ZodTemplateLiteral:()=>mf,$ZodTransform:()=>ef,$ZodTuple:()=>Qs,$ZodType:()=>ie,$ZodULID:()=>fp,$ZodURL:()=>lp,$ZodUUID:()=>ip,$ZodUndefined:()=>jp,$ZodUnion:()=>ji,$ZodUnknown:()=>Dp,$ZodVoid:()=>Mp,$ZodXID:()=>hp,$ZodXor:()=>Fp,$brand:()=>Wd,$constructor:()=>v,$input:()=>bf,$output:()=>Sf,Doc:()=>an,INVALID:()=>pt,JSONSchema:()=>JS,JSONSchemaGenerator:()=>Vc,NEVER:()=>ki,TimePrecision:()=>Pf,URL_BAD_FORMAT:()=>sp,URL_UNPARSEABLE:()=>cp,ZodCompileAsyncError:()=>Tt,ZodCompileUnsupportedError:()=>de,_any:()=>Hf,_array:()=>th,_base64:()=>xc,_base64url:()=>Ec,_bigint:()=>qf,_boolean:()=>Lf,_catch:()=>Sx,_check:()=>LS,_cidrv4:()=>Ic,_cidrv6:()=>Tc,_coercedBigint:()=>Vf,_coercedBoolean:()=>Mf,_coercedDate:()=>Qf,_coercedNumber:()=>Cf,_coercedString:()=>Tf,_creditCard:()=>Ef,_cuid:()=>Sc,_cuid2:()=>bc,_custom:()=>nh,_date:()=>Xf,_decode:()=>ks,_decodeAsync:()=>Is,_default:()=>vx,_discriminatedUnion:()=>ix,_e164:()=>Pc,_email:()=>mc,_emoji:()=>_c,_encode:()=>Rs,_encodeAsync:()=>ws,_endsWith:()=>no,_enum:()=>dx,_file:()=>rh,_float32:()=>jf,_float64:()=>Af,_gt:()=>Vt,_gte:()=>ht,_guid:()=>pc,_includes:()=>to,_int:()=>Nf,_int32:()=>Uf,_int64:()=>Zf,_intersection:()=>ax,_ipv4:()=>kc,_ipv6:()=>wc,_isoDate:()=>Zi,_isoDateTime:()=>Vi,_isoDuration:()=>Ki,_isoTime:()=>Fi,_jwt:()=>Oc,_ksuid:()=>Rc,_lazy:()=>Rx,_length:()=>fn,_literal:()=>px,_lowercase:()=>Qn,_lt:()=>qt,_lte:()=>ft,_mac:()=>xf,_map:()=>lx,_max:()=>ft,_maxLength:()=>pn,_maxSize:()=>zr,_mime:()=>oo,_min:()=>ht,_minLength:()=>er,_minSize:()=>Zt,_multipleOf:()=>$r,_nan:()=>eh,_nanoid:()=>yc,_nativeEnum:()=>mx,_negative:()=>Nc,_never:()=>Gf,_nonnegative:()=>Ac,_nonoptional:()=>_x,_nonpositive:()=>jc,_normalize:()=>io,_null:()=>Bf,_nullable:()=>gx,_number:()=>Of,_optional:()=>hx,_overwrite:()=>xt,_parse:()=>Kn,_parseAsync:()=>Jn,_pipe:()=>bx,_positive:()=>Cc,_promise:()=>kx,_properties:()=>Dc,_property:()=>Uc,_readonly:()=>$x,_record:()=>cx,_refine:()=>oh,_regex:()=>Xn,_safeDecode:()=>xs,_safeDecodeAsync:()=>Ps,_safeEncode:()=>Ts,_safeEncodeAsync:()=>Es,_safeParse:()=>Bn,_safeParseAsync:()=>Hn,_set:()=>ux,_size:()=>mn,_slugify:()=>lo,_startsWith:()=>ro,_string:()=>If,_stringFormat:()=>uo,_stringbool:()=>ch,_success:()=>yx,_superRefine:()=>ih,_symbol:()=>Kf,_templateLiteral:()=>zx,_toLowerCase:()=>so,_toUpperCase:()=>co,_transform:()=>fx,_trim:()=>ao,_tuple:()=>sx,_uint32:()=>Df,_uint64:()=>Ff,_ulid:()=>$c,_undefined:()=>Jf,_union:()=>nx,_unknown:()=>Yf,_uppercase:()=>eo,_url:()=>qi,_uuid:()=>fc,_uuidv4:()=>hc,_uuidv6:()=>gc,_uuidv7:()=>vc,_void:()=>Wf,_xid:()=>zc,_xor:()=>ox,clone:()=>me,compile:()=>kf,compileFn:()=>dc,config:()=>$e,createStandardJSONSchemaMethod:()=>mo,createToJSONSchemaMethod:()=>uh,decode:()=>uw,decodeAsync:()=>mw,describe:()=>ah,encode:()=>lw,encodeAsync:()=>dw,extractDefs:()=>kr,finalize:()=>wr,flattenError:()=>Ii,formatError:()=>Ti,getDiscriminatedOption:()=>Kp,globalConfig:()=>Pe,globalRegistry:()=>je,handleUnrepresentable:()=>Ee,initializeContext:()=>Rr,isBackEdge:()=>ic,isRecursiveSchema:()=>yf,isValidBase64:()=>Ci,isValidBase64URL:()=>Hs,isValidCIDRv6:()=>Bs,isValidCreditCard:()=>Ys,isValidIPv6:()=>Oi,isValidJWT:()=>Gs,locales:()=>Mi,memoizer:()=>Di,mergeValues:()=>Gn,meta:()=>sh,parse:()=>$s,parseAsync:()=>zs,parseURLObject:()=>Zs,prettifyError:()=>rm,process:()=>pe,regexes:()=>He,registry:()=>uc,safeDecode:()=>fw,safeDecodeAsync:()=>gw,safeEncode:()=>pw,safeEncodeAsync:()=>hw,safeParse:()=>nm,safeParseAsync:()=>om,standardProps:()=>Vs,stripTabAndNewline:()=>Fs,toDotPath:()=>G_,toJSONSchema:()=>hn,toZod:()=>vi,treeifyError:()=>tm,urlHostnameOk:()=>Ks,urlProtocolOk:()=>Js,util:()=>I,validate:()=>im,validateAsync:()=>am,version:()=>rp});var I={};Qt(I,{BIGINT_FORMAT_RANGES:()=>Kd,CONSTANT_CATCH:()=>Ss,Class:()=>Dd,NUMBER_FORMAT_RANGES:()=>Fd,aborted:()=>yr,allowsEval:()=>qd,assert:()=>Tk,assertEqual:()=>Rk,assertIs:()=>wk,assertNever:()=>Ik,assertNotEqual:()=>kk,assignProp:()=>Se,attachSchema:()=>ys,base64ToUint8Array:()=>F_,base64urlToUint8Array:()=>Jk,cached:()=>Zn,captureStackTrace:()=>_s,cleanEnum:()=>Kk,cleanRegex:()=>yi,clone:()=>me,cloneDef:()=>Ek,codePointLength:()=>nn,constantCatch:()=>Yd,createTransparentProxy:()=>Ak,defineLazy:()=>Ld,defineLazyInternal:()=>ue,esc:()=>tt,escapeRegex:()=>bt,explicitlyAborted:()=>Jd,extend:()=>Lk,finalizeIssue:()=>nt,floatSafeRemainder:()=>Si,getElementAtPath:()=>Pk,getEnumValues:()=>_i,getLengthableOrigin:()=>Ri,getParsedType:()=>jk,getSizableOrigin:()=>zi,hexToUint8Array:()=>Hk,hide:()=>Hd,installLazyProp:()=>Qk,isObject:()=>rn,isPlainObject:()=>St,issue:()=>Fn,joinValues:()=>_,jsonStringifyReplacer:()=>Vn,members:()=>Bd,merge:()=>qk,mergeDefs:()=>It,normalizeParams:()=>O,nullish:()=>vs,numKeys:()=>Nk,objectClone:()=>xk,omit:()=>Dk,optionalKeys:()=>Zd,own:()=>qn,parsedType:()=>k,partial:()=>Vk,pick:()=>Uk,prefixIssues:()=>rt,primitiveTypes:()=>Vd,promiseAllObject:()=>Ok,propertyKeyTypes:()=>$i,randomString:()=>Ck,required:()=>Zk,safeExtend:()=>Mk,shallowClone:()=>bi,slugify:()=>Md,stringifyPrimitive:()=>R,toZod:()=>vi,uint8ArrayToBase64:()=>K_,uint8ArrayToBase64url:()=>Bk,uint8ArrayToHex:()=>Yk,unwrapMessage:()=>Mn});function Rk(e){return e}function kk(e){return e}function vi(){return e=>e}function wk(e){}function Ik(e){throw new Error("Unexpected value in exhaustive check")}function Tk(e){}function _i(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function _(e,t="|"){return e.map(n=>R(n)).join(t)}function Vn(e,t){return typeof t=="bigint"?t.toString():t}function Zn(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function vs(e){return e==null}function yi(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Si(e,t){let n=e/t,o=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}var Z_=Symbol("evaluating");function Ld(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Z_)return o===void 0&&(o=Z_,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function xk(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Se(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function It(...e){let t={};for(let n of e){let o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function Ek(e){return It(e._zod.def)}function Pk(e,t){return t?t.reduce((n,o)=>n?.[o],e):e}function Ok(e){let t=Object.keys(e),n=t.map(o=>e[o]);return Promise.all(n).then(o=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=o[i];return r})}function Ck(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let o=0;o<e;o++)n+=t[Math.floor(Math.random()*t.length)];return n}function tt(e){return JSON.stringify(e)}function Md(e){return e.toLowerCase().trim().replace(/[^\\w\\s-]/g,"").replace(/[\\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var _s="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function rn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var qd=Zn(()=>{if(Pe.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function St(e){if(rn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(rn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function bi(e){return St(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Nk(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var jk=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},$i=new Set(["string","number","symbol"]),Vd=new Set(["string","number","bigint","boolean","symbol","undefined"]);function bt(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function me(e,t,n){let o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}function O(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Ak(e){let t;return new Proxy({},{get(n,o,r){return t??(t=e()),Reflect.get(t,o,r)},set(n,o,r,i){return t??(t=e()),Reflect.set(t,o,r,i)},has(n,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(n,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(n,o,r){return t??(t=e()),Reflect.defineProperty(t,o,r)}})}function R(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Zd(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Fd={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Kd={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Uk(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=It(e._zod.def,{get shape(){let a={};for(let s of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,s))throw new Error(`Unrecognized key: "${String(s)}"`);t[s]&&Se(a,s,n.shape[s])}return Se(this,"shape",a),a},checks:[]});return me(e,i)}function Dk(e,t){let n=e._zod.def,o=n.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=It(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s of Reflect.ownKeys(t)){if(!Object.prototype.hasOwnProperty.call(n.shape,s))throw new Error(`Unrecognized key: "${String(s)}"`);t[s]&&delete a[s]}return Se(this,"shape",a),a},checks:[]});return me(e,i)}function Lk(e,t){if(!St(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let i=e._zod.def.shape;for(let a of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=It(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Se(this,"shape",i),i}});return me(e,r)}function Mk(e,t){if(!St(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=It(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Se(this,"shape",o),o}});return me(e,n)}function qk(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=It(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Se(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return me(e,n)}function Vk(e,t,n,o="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${o}() cannot be used on object schemas containing refinements`);let s=It(t._zod.def,{get shape(){let c=t._zod.def.shape,l={...c};if(n)for(let u of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(c,u))throw new Error(`Unrecognized key: "${String(u)}"`);n[u]&&(l[u]=e?new e({type:"optional",innerType:c[u]}):c[u])}else for(let u of Reflect.ownKeys(c))l[u]=e?new e({type:"optional",innerType:c[u]}):c[u];return Se(this,"shape",l),l},checks:[]});return me(t,s)}function Zk(e,t,n){let o=It(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let a of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i,a))throw new Error(`Unrecognized key: "${String(a)}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a of Reflect.ownKeys(r))i[a]=new e({type:"nonoptional",innerType:r[a]});return Se(this,"shape",i),i}});return me(t,o)}function yr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Jd(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function rt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Mn(e){return typeof e=="string"?e:e?.message}function ys(e,t,n){var o;for(let r=t;r<e.length;r++)(o=e[r]).schema??(o.schema=n)}function nt(e,t,n){var o;let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(o=e).schema??(o.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:Mn(e.inst?._zod.def?.error?.(e))??Mn(i?.(e))??Mn(t?.error?.(e))??Mn(n.customError?.(e))??Mn(n.localeError?.(e))??"Invalid input",{inst:s,schema:c,continue:l,input:u,...m}=e;return m.path??(m.path=[]),m.message=a,t?.reportInput&&(m.input=u),m}function zi(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Fk=/[\\uD800-\\uDBFF]/;function nn(e){let t=e.length;if(!Fk.test(e))return t;let n=t;for(let o=0;o<t-1;o++)(e.charCodeAt(o)&64512)===55296&&(e.charCodeAt(o+1)&64512)===56320&&(n--,o++);return n}function Ri(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function k(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Fn(...e){let[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}function Kk(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function F_(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}function K_(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Jk(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return F_(t+n)}function Bk(e){return K_(e).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=/g,"")}function Hk(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)n[o/2]=Number.parseInt(t.slice(o,o+2),16);return n}function Yk(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Dd=class{constructor(...t){}};function Bd(e,t){for(let n in t){let o=Object.getOwnPropertyDescriptor(t,n);o.get?Object.defineProperty(e,n,{...o,enumerable:!1}):Gk(e,n,o.value)}}function qn(e,t,n,o=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:o,value:n}),n}function Hd(e,t,n){return qn(e,t,n,!1)}function Gk(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:qn(this,t,n.bind(this))},set(o){qn(this,t,o)}})}function Wk(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Ud,_r=!1,Xk={configurable:!0,get(){_r=!0}};function ue(e,t,n){let o=Object.getPrototypeOf(e._zod);if(t in o&&Ud!==e._zod){Ud=void 0;return}Ud=e._zod,Object.defineProperty(o,t,{configurable:!0,get(){Object.defineProperty(this,t,Xk);let r=_r;_r=!1;try{let i=n(this);return _r?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),_r=_r||r,i}catch(i){throw delete this[t],_r=_r||r,i}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}function Qk(e,t,n,o){let r=Wk(e,t);r&&Object.defineProperty(r,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:o,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:o,value:i})}})}var Ss="~constantCatch";function Yd(e){let t=()=>e;return t[Ss]=!0,t}var J_,ki=Object.freeze({status:"aborted"}),Gd={value:void 0,enumerable:!1},B_="captureStackTrace"in Error?Error:null;function ew(e){let t=B_;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return B_=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function v(e,t,n,o){let r={};function i(p){this.def=p,this.constr=m,this.traits=new Set}i.prototype=r;let a=n,s=a&&new WeakSet;function c(p,f){if(!p._zod){Gd.value=new i(f);try{Object.defineProperty(p,"_zod",Gd)}finally{Gd.value=void 0}}if(p._zod.traits.has(e))return;if(p._zod.traits.add(e),t(p,f),s){let S=Object.getPrototypeOf(p),y=p._zod.constr.prototype,w=S;for(;w&&w!==y;)w=Object.getPrototypeOf(w);let T=w??S;s.has(T)||(s.add(T),Bd(T,a))}let h=m.prototype;for(let S in h)Object.prototype.hasOwnProperty.call(h,S)&&(S in p||(p[S]=h[S].bind(p)))}let l=o?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function m(p){let f=o?.Parent?ew(u):this;c(f,p);let h=f._zod.deferred;if(h){for(let y of h)y();f._zod.deferred=void 0}let S=globalThis.__zod_globalConfig?.postProcessor;return S&&S(f),f}return Object.defineProperty(m,"init",{value:c}),Object.defineProperty(m,Symbol.hasInstance,{value:p=>o?.Parent&&p instanceof o.Parent?!0:p?._zod?.traits?.has(e)}),Object.defineProperty(m,"name",{value:e}),m}var Wd=Symbol("zod_brand"),ot=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Sr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(J_=globalThis).__zod_globalConfig??(J_.__zod_globalConfig={});var Pe=globalThis.__zod_globalConfig;function $e(e){return e&&Object.assign(Pe,e),Pe}function tw(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Vn,2)),e.message}function rw(e){this._zod.message=e}var nw={get:tw,set:rw,enumerable:!0,configurable:!0},Qd={value:void 0,enumerable:!1},em={value:void 0,enumerable:!1},H_=new WeakSet([Object.prototype,Error.prototype]),Y_=(e,t)=>{e.name="$ZodError",Qd.value=e._zod,Object.defineProperty(e,"_zod",Qd),em.value=t,Object.defineProperty(e,"issues",em),Qd.value=void 0,em.value=void 0,Object.defineProperty(e,"message",nw);let n=Object.getPrototypeOf(e);H_.has(n)||(H_.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let o=()=>this.message;return Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,"toString",{value:o,configurable:!0,writable:!0})}}))},wi=v("$ZodError",Y_),it=v("$ZodError",Y_,void 0,{Parent:Error});function ow(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Ii(e,t=n=>n.message){let n={},o=[];for(let r of e.issues)r.path.length>0?ow(n,r.path[0],()=>[]).push(t(r)):o.push(t(r));return{formErrors:o,fieldErrors:n}}function Ti(e,t=n=>n.message){let n={_errors:[]},o=(r,i=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)n._errors.push(t(a));else{let c=n,l=0;for(;l<s.length;){let u=s[l],m=l===s.length-1;if(u==="_errors"){m&&c._errors.push(t(a)),l++;continue}Object.prototype.hasOwnProperty.call(c,u)||Object.defineProperty(c,u,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let p=c[u];m&&p._errors.push(t(a)),c=p,l++}}}};return o(e),n}function tm(e,t=n=>n.message){let n={errors:[]},o=(r,i=[])=>{var a;for(let s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0){n.errors.push(t(s));continue}let l=n,u=0;for(;u<c.length;){let m=c[u],p=u===c.length-1;typeof m=="string"?(l.properties??(l.properties={}),Object.prototype.hasOwnProperty.call(l.properties,m)||Object.defineProperty(l.properties,m,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),l=l.properties[m]):(l.items??(l.items=[]),(a=l.items)[m]??(a[m]={errors:[]}),l=l.items[m]),p&&l.errors.push(t(s)),u++}}};return o(e),n}function G_(e){let t=[],n=e.map(o=>typeof o=="object"?o.key:o);for(let o of n)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function rm(e){let t=[],n=[...e.issues].sort((o,r)=>(o.path??[]).length-(r.path??[]).length);for(let o of n)t.push(`\\u2716 ${o.message}`),o.path?.length&&t.push(` \\u2192 at ${G_(o.path)}`);return t.join(`\n`)}function bs(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Kn=e=>{let t=(n,o,r,i)=>{let a=r?{...r,async:!1}:{async:!1},s=n._zod.run({value:o,issues:[]},a);if(s instanceof Promise)throw new ot;if(s.issues.length){let c=new(i?.Err??e)(s.issues.map(l=>nt(l,a,$e())));throw _s(c,i?.callee??t),c}return s.value};return t},$s=Kn(it),Jn=e=>{let t=async(n,o,r,i)=>{let a=r?{...r,async:!0}:{async:!0},s=n._zod.run({value:o,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let c=new(i?.Err??e)(s.issues.map(l=>nt(l,a,$e())));throw _s(c,i?.callee??t),c}return s.value};return t},zs=Jn(it),Bn=e=>(t,n,o)=>{let r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new ot;return i.issues.length?{success:!1,error:new(e??wi)(i.issues.map(a=>nt(a,r,$e())))}:{success:!0,data:i.value}},nm=Bn(it),Hn=e=>async(t,n,o)=>{let r=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>nt(a,r,$e())))}:{success:!0,data:i.value}},om=Hn(it),aw=Symbol.for("zod.compile.invalid"),sw=Symbol.for("zod.compile.fallback"),im=((e,t,n)=>{let o=e._zod.bag.validator;return o!==void 0&&o(t)!==aw?!0:cw(e,t,n)});function cw(e,t,n){let o=n?{...n,async:!1}:{async:!1},r=e._zod.bag.fallbackRun,i;if(r?(o[sw]=!0,i=r({value:t,issues:[]},o)):i=e._zod.run({value:t,issues:[]},o),i instanceof Promise)throw new ot;return i.issues.length===0}var am=async(e,t,n)=>{let o=n?{...n,async:!0}:{async:!0},r=e._zod.run({value:t,issues:[]},o);return r instanceof Promise&&(r=await r),r.issues.length===0},Rs=e=>{let t=Kn(e),n=(o,r,i,a)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return t(o,r,s,bs(n,a))};return n},lw=Rs(it),ks=e=>{let t=Kn(e),n=(o,r,i,a)=>t(o,r,i,bs(n,a));return n},uw=ks(it),ws=e=>{let t=Jn(e),n=async(o,r,i,a)=>{let s=i?{...i,direction:"backward"}:{direction:"backward"};return await t(o,r,s,bs(n,a))};return n},dw=ws(it),Is=e=>{let t=Jn(e),n=async(o,r,i,a)=>await t(o,r,i,bs(n,a));return n},mw=Is(it),Ts=e=>(t,n,o)=>{let r=o?{...o,direction:"backward"}:{direction:"backward"};return Bn(e)(t,n,r)},pw=Ts(it),xs=e=>(t,n,o)=>Bn(e)(t,n,o),fw=xs(it),Es=e=>async(t,n,o)=>{let r=o?{...o,direction:"backward"}:{direction:"backward"};return Hn(e)(t,n,r)},hw=Es(it),Ps=e=>async(t,n,o)=>Hn(e)(t,n,o),gw=Ps(it);var He={};Qt(He,{base64:()=>Rm,base64url:()=>Os,bigint:()=>Pm,boolean:()=>Om,browserEmail:()=>Rw,cidrv4:()=>$m,cidrv6:()=>zm,creditCard:()=>Cs,cuid:()=>cm,cuid2:()=>lm,date:()=>Im,datetime:()=>xm,domain:()=>Iw,duration:()=>hm,e164:()=>wm,email:()=>vm,emoji:()=>_m,extendedDuration:()=>vw,guid:()=>gm,hex:()=>xw,hostname:()=>ww,html5Email:()=>bw,httpProtocol:()=>km,idnEmail:()=>zw,integer:()=>xi,ipv4:()=>ym,ipv6:()=>Sm,ksuid:()=>mm,lowercase:()=>jm,mac:()=>bm,md5_base64:()=>Pw,md5_base64url:()=>Ow,md5_hex:()=>Ew,nanoid:()=>pm,nanoidOfLength:()=>fm,null:()=>Cm,number:()=>br,rfc5322Email:()=>$w,sha1_base64:()=>Nw,sha1_base64url:()=>jw,sha1_hex:()=>Cw,sha256_base64:()=>Uw,sha256_base64url:()=>Dw,sha256_hex:()=>Aw,sha384_base64:()=>Mw,sha384_base64url:()=>qw,sha384_hex:()=>Lw,sha512_base64:()=>Zw,sha512_base64url:()=>Fw,sha512_hex:()=>Vw,string:()=>Em,time:()=>Tm,ulid:()=>um,undefined:()=>Nm,unicodeEmail:()=>W_,uppercase:()=>Am,uuid:()=>on,uuid4:()=>_w,uuid6:()=>yw,uuid7:()=>Sw,xid:()=>dm});var cm=/^[cC][0-9a-z]{6,}$/,lm=/^[0-9a-z]+$/,um=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,dm=/^[0-9a-vA-V]{20}$/,mm=/^[A-Za-z0-9]{27}$/,pm=/^[a-zA-Z0-9_-]{21}$/;function fm(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var hm=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,vw=/^[-+]?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)?)??$/,gm=/^([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})$/,on=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_w=on(4),yw=on(6),Sw=on(7),vm=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_\'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,bw=/^[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])?)*$/,$w=/^(([^<>()\\[\\]\\\\.,;:\\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,}))$/,W_=/^[^\\s@"]{1,64}@[^\\s@]{1,255}$/u,zw=W_,Rw=/^[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])?)*$/,kw="^[\\\\p{Extended_Pictographic}\\\\p{Emoji_Component}]+$";function _m(){return new RegExp(kw,"u")}var ym=/^(?:(?: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])$/,Sm=/^(([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}|:))$/,bm=e=>{let t=bt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},$m=/^((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])$/,zm=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Os=/^[A-Za-z0-9_-]*$/,ww=/^(?=.{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])?)*\\.?$/,Iw=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,63}$/,km=/^https?$/,wm=/^\\+[1-9]\\d{6,14}$/,Cs=/^\\d(?:[ -]?\\d){11,18}$/,X_="(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))";function Tw(e){return new RegExp(`^${e}$`)}var Im=Tw(X_);function sm(e){let t="(?:[01]\\\\d|2[0-3]):[0-5]\\\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\\\d`:`${t}:[0-5]\\\\d\\\\.\\\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\\\d(?:\\\\.\\\\d+)?`:`${t}(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?`}function Tm(e){return new RegExp(`^${sm(e)}$`)}function xm(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)");let n=`${sm({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,o=e.local?`${n}|${sm({precision:e.precision})}`:n;return new RegExp(`^${X_}T(?:${o})$`)}var Em=e=>{let t=e?`[\\\\s\\\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\\\s\\\\S]*";return new RegExp(`^${t}$`)},Pm=/^-?\\d+n?$/,xi=/^-?\\d+$/,br=/^-?\\d+(?:\\.\\d+)?$/,Om=/^(?:true|false)$/i,Cm=/^null$/i;var Nm=/^undefined$/i;var jm=/^[^A-Z]*$/,Am=/^[^a-z]*$/,xw=/^[0-9a-fA-F]*$/;function Ei(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Pi(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Ew=/^[0-9a-fA-F]{32}$/,Pw=Ei(22,"=="),Ow=Pi(22),Cw=/^[0-9a-fA-F]{40}$/,Nw=Ei(27,"="),jw=Pi(27),Aw=/^[0-9a-fA-F]{64}$/,Uw=Ei(43,"="),Dw=Pi(43),Lw=/^[0-9a-fA-F]{96}$/,Mw=Ei(64,""),qw=Pi(64),Vw=/^[0-9a-fA-F]{128}$/,Zw=Ei(86,"=="),Fw=Pi(86);var ge=v("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Um=e=>{let t=e.value;return!vs(t)&&t.size!==void 0},Dm=e=>{let t=e.value;return!vs(t)&&t.length!==void 0},Ns={number:"number",bigint:"bigint",object:"date"},js=v("$ZodCheckLessThan",(e,t)=>{ge.init(e,t);let n=Ns[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:Ns[typeof o.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),As=v("$ZodCheckGreaterThan",(e,t)=>{ge.init(e,t);let n=Ns[typeof t.value];e._zod.onattach.push(o=>{let r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:Ns[typeof o.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Lm=v("$ZodCheckMultipleOf",(e,t)=>{ge.init(e,t),e._zod.onattach.push(n=>{var o;(o=n._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Si(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Mm=v("$ZodCheckNumberFormat",(e,t)=>{ge.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),o=n?"int":"number",[r,i]=Fd[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=xi)}),e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),qm=v("$ZodCheckBigIntFormat",(e,t)=>{ge.init(e,t);let[n,o]=Kd[t.format];e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,i.minimum=n,i.maximum=o}),e._zod.check=r=>{let i=r.value;i<n&&r.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>o&&r.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Vm=v("$ZodCheckMaxSize",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Um),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value;r.size<=t.maximum||o.issues.push({origin:zi(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Zm=v("$ZodCheckMinSize",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Um),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value;r.size>=t.minimum||o.issues.push({origin:zi(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Fm=v("$ZodCheckSizeEquals",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Um),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=o=>{let r=o.value,i=r.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:zi(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Km=v("$ZodCheckMaxLength",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Dm),e._zod.onattach.push(o=>{let r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let r=o.value,i=r.length;if((typeof r=="string"&&i>t.maximum?nn(r):i)<=t.maximum)return;let s=Ri(r);o.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Jm=v("$ZodCheckMinLength",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Dm),e._zod.onattach.push(o=>{let r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let r=o.value,i=r.length;if((typeof r=="string"&&i>=t.minimum&&i<t.minimum*2?nn(r):i)>=t.minimum)return;let s=Ri(r);o.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Bm=v("$ZodCheckLengthEquals",(e,t)=>{var n;ge.init(e,t),(n=e._zod.def).when??(n.when=Dm),e._zod.onattach.push(o=>{let r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{let r=o.value,i=r.length,a=typeof r=="string"&&i>=t.length&&i<=t.length*2?nn(r):i;if(a===t.length)return;let s=Ri(r),c=a>t.length;o.issues.push({origin:s,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Yn=v("$ZodCheckStringFormat",(e,t)=>{var n,o;ge.init(e,t),e._zod.onattach.push(r=>{let i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Hm=v("$ZodCheckRegex",(e,t)=>{Yn.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ym=v("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=jm),Yn.init(e,t)}),Gm=v("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Am),Yn.init(e,t)}),Wm=v("$ZodCheckIncludes",(e,t)=>{ge.init(e,t);let n=bt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Xm=v("$ZodCheckStartsWith",(e,t)=>{ge.init(e,t);let n=new RegExp(`^${bt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Qm=v("$ZodCheckEndsWith",(e,t)=>{ge.init(e,t);let n=new RegExp(`.*${bt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{let r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Q_(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues))}var Us=v("$ZodCheckProperty",(e,t)=>{ge.init(e,t),e._zod.check=n=>{let o=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(r=>Q_(r,n,t.property));Q_(o,n,t.property)}}),ep=v("$ZodCheckMimeType",(e,t)=>{ge.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{n.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),tp=v("$ZodCheckOverwrite",(e,t)=>{ge.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var an=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`\n`).filter(a=>a),r=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {\n${n.join(`\n`)}\n};`)(...Object.values(this.closed))}};var rp={major:4,minor:5,patch:4};var ie=v("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=rp;let o=e._zod.def.checks,r=e._zod.traits.has("$ZodCheck")?[e,...o??[]]:o?.length?[...o]:[];for(let i of r)for(let a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(s,c,l)=>{if(s.memo)return s;let u=yr(s),m;for(let p of c){if(p._zod.def.when){if(Jd(s)||!p._zod.def.when(s))continue}else if(u)continue;let f=s.issues.length,h=p._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new ot;if(m||h instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await h,s.issues.length!==f&&(ys(s.issues,f,e),u||(u=yr(s,f)))});else{if(s.issues.length===f)continue;ys(s.issues,f,e),u||(u=yr(s,f))}}return m?m.then(()=>s):s},a=(s,c,l)=>{if(yr(s))return s.aborted=!0,s;let u=i(c,r,l);if(u instanceof Promise){if(l.async===!1)throw new ot;return u.then(m=>e._zod.parse(m,l))}return e._zod.parse(u,l)};e._zod.run=(s,c)=>{if(c.skipChecks)return e._zod.parse(s,c);if(c.direction==="backward"){let u=e._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return u instanceof Promise?u.then(m=>a(m,s,c)):a(u,s,c)}let l=e._zod.parse(s,c);if(l instanceof Promise){if(c.async===!1)throw new ot;return l.then(u=>i(u,r,c))}return i(l,r,c)}}},{get"~standard"(){return Hd(this,"~standard",Vs(this))},set"~standard"(e){qn(this,"~standard",e)}}),ty=e=>e.success?{value:e.data}:{issues:e.error?.issues};function Vs(e){return{validate:t=>{try{return ty(nm(e,t))}catch{return om(e,t).then(ty)}},vendor:"zod",version:1}}var sn=v("$ZodString",(e,t)=>{ie.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Em(e._zod.bag),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),fe=v("$ZodStringFormat",(e,t)=>{Yn.init(e,t),sn.init(e,t)}),op=v("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=gm),fe.init(e,t)}),ip=v("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=on(o))}else t.pattern??(t.pattern=on());fe.init(e,t)}),ap=v("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=vm),fe.init(e,t)}),sp=1,cp=2;function Zs(e,t){if(!t.normalize&&t.protocol?.source===km.source&&!/^https?:\\/\\//i.test(e))return sp;try{return new URL(e)}catch{return cp}}var Kw=/[\\t\\n\\r]/g;function Fs(e){return e.replace(Kw,"")}function Ks(e,t){return t.lastIndex=0,t.test(e.hostname)}function Js(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var lp=v("$ZodURL",(e,t)=>{fe.init(e,t),e._zod.check=n=>{try{let o=n.value.trim(),r=Zs(o,t);if(r===sp){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(r===cp){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}t.hostname&&!Ks(r,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Js(r,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?r.href:Fs(o);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),up=v("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=_m()),fe.init(e,t)}),dp=v("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?pm:fm(t.length)),fe.init(e,t)}),mp=v("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=cm),fe.init(e,t)}),pp=v("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=lm),fe.init(e,t)}),fp=v("$ZodULID",(e,t)=>{t.pattern??(t.pattern=um),fe.init(e,t)}),hp=v("$ZodXID",(e,t)=>{t.pattern??(t.pattern=dm),fe.init(e,t)}),gp=v("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=mm),fe.init(e,t)}),vp=v("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=xm(t)),fe.init(e,t),(t.local||t.precision===-1)&&(e._zod.bag.laxFormat=!0,e._zod.onattach.push(n=>{n._zod.bag.laxFormat=!0}))}),_p=v("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Im),fe.init(e,t)}),yp=v("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Tm(t)),fe.init(e,t)}),Sp=v("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=hm),fe.init(e,t)}),bp=v("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ym),fe.init(e,t),e._zod.bag.format="ipv4"}),Jw=/^[0-9a-fA-F:.]+$/;function Oi(e){if(!Jw.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var $p=v("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Sm),fe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{Oi(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),zp=v("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=bm(t.delimiter)),fe.init(e,t),e._zod.bag.format="mac"}),Rp=v("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=$m),fe.init(e,t)});function Bs(e){let t=e.split("/");if(t.length!==2)return!1;let[n,o]=t;if(!o)return!1;let r=Number(o);return`${r}`!==o||r<0||r>128?!1:Oi(n)}var kp=v("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=zm),fe.init(e,t),e._zod.check=n=>{Bs(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function Ci(e){if(e==="")return!0;if(/\\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var wp=v("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Rm),fe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ci(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Hs(e){if(!Os.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ci(n)}var Ip=v("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Os),fe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Hs(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Tp=v("$ZodE164",(e,t)=>{t.pattern??(t.pattern=wm),fe.init(e,t)}),Bw=/[- ]/g;function Hw(e){let t=e.length,n=1,o=0;for(;t;){let r=+e[--t];n^=1,o+=n?[0,2,4,6,8,1,3,5,7,9][r]:r}return o%10===0}function Ys(e){return Cs.test(e)?Hw(e.replace(Bw,"")):!1}var xp=v("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=Cs),fe.init(e,t),e._zod.check=n=>{Ys(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function Gs(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[o]=n;if(!o)return!1;let r=JSON.parse(atob(o));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var Ep=v("$ZodJWT",(e,t)=>{fe.init(e,t),e._zod.check=n=>{Gs(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Pp=v("$ZodCustomStringFormat",(e,t)=>{fe.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Ws=v("$ZodNumber",(e,t)=>{ie.init(e,t),e._zod.pattern=e._zod.bag.pattern??br,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:String(r):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),Op=v("$ZodNumberFormat",(e,t)=>{Mm.init(e,t),Ws.init(e,t)}),Ni=v("$ZodBoolean",(e,t)=>{ie.init(e,t),e._zod.pattern=Om,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Xs=v("$ZodBigInt",(e,t)=>{ie.init(e,t),e._zod.pattern=Pm,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Cp=v("$ZodBigIntFormat",(e,t)=>{qm.init(e,t),Xs.init(e,t)}),Np=v("$ZodSymbol",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),jp=v("$ZodUndefined",(e,t)=>{ie.init(e,t),e._zod.pattern=Nm,e._zod.values=new Set([void 0]),e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),Ap=v("$ZodNull",(e,t)=>{ie.init(e,t),e._zod.pattern=Cm,e._zod.values=new Set([null]),e._zod.parse=(n,o)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),Up=v("$ZodAny",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),Dp=v("$ZodUnknown",(e,t)=>{ie.init(e,t),e._zod.parse=n=>n}),Lp=v("$ZodNever",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Mp=v("$ZodVoid",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),qp=v("$ZodDate",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,i=r instanceof Date;return i&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...i?{received:"Invalid Date"}:{},inst:e}),n}});function ry(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues)),t.value[n]=e.value}var Vp=v("$ZodArray",(e,t)=>{ie.init(e,t);let n=Pe.memoizer;n?.attach(e),e._zod.parse=(o,r)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),o;o.value=n?n.alloc(e,o,Array(i.length),r):Array(i.length);let a=[];for(let s=0;s<i.length;s++){let c=i[s],l=t.element._zod.run({value:c,issues:[]},r);l instanceof Promise?a.push(l.then(u=>ry(u,o,s))):ry(l,o,s)}return a.length?Promise.all(a).then(()=>o):o}});function qs(e,t,n,o,r,i){let a=n in o,s=i==="optional";if(!(!a&&s&&r==="optional")){if(e.issues.length){if(r!==void 0&&s&&!a)return;t.issues.push(...rt(n,e.issues))}if(!a&&r===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}}var Yw=[];function vy(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),o=n.length?n:Yw,r=o.length?[...t,...o]:t;for(let a of r)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);let i=Zd(e.shape);return{...e,allKeys:r,symbolKeys:o,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function _y(e,t,n,o,r,i){let a=[],s=r.keySet,c=r.catchall._zod,l=c.def.type,u=c.optin,m=c.optout;for(let p in t){if(s.has(p))continue;if(p==="__proto__"){l==="never"&&a.push(p);continue}if(l==="never"){a.push(p);continue}let f=c.run({value:t[p],issues:[]},o);f instanceof Promise?e.push(f.then(h=>qs(h,n,p,t,u,m))):qs(f,n,p,t,u,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var np=new WeakMap,yy=v("$ZodObject",(e,t)=>{if(ie.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;np.set(t,c),Object.defineProperty(t,"shape",{get:()=>{let l={...c};return Object.defineProperty(t,"shape",{value:l}),np.set(t,l),l}})}let o=Zn(()=>vy(t));ue(e,"propValues",c=>{let l=c.def.shape,u={};for(let m in l){let p=l[m]._zod;if(p.values){Object.prototype.hasOwnProperty.call(u,m)||Se(u,m,new Set);for(let f of p.values)u[m].add(f);p.optin!==void 0&&u[m].add(void 0)}}return u});let r=rn,i=t.catchall,a,s=Pe.memoizer;s?.attach(e),e._zod.parse=(c,l)=>{a??(a=o.value);let u=c.value;if(!r(u))return c.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),c;c.value=s?s.alloc(e,c,{},l):{};let m=[],p=a.shape;for(let f of a.allKeys){if(f==="__proto__")continue;let h=p[f],S=h._zod.optin,y=h._zod.optout,w=h._zod.run({value:u[f],issues:[]},l);w instanceof Promise?m.push(w.then(T=>qs(T,c,f,u,S,y))):qs(w,c,f,u,S,y)}return i?_y(m,u,c,l,o.value,e):m.length?Promise.all(m).then(()=>c):c}}),Zp=v("$ZodObjectJIT",(e,t)=>{yy.init(e,t);let n=e._zod.parse,o=Zn(()=>vy(t)),r=Pe.memoizer,i=f=>{let h=o.value,S=h.symbolKeys,y=new an(["payload","ctx"],{shape:f,inst:e,memo:r,syms:S}),w=Z=>`shape[${Z}]._zod.run({ value: input[${Z}], issues: [] }, ctx)`,T=(Z,N)=>`\n for (let i = 0; i < ${Z}.issues.length; i++) {\n const iss = ${Z}.issues[i];\n iss.path = iss.path ? [${N}, ...iss.path] : [${N}];\n payload.issues.push(iss);\n }`;y.write("const input = payload.value;");let E=Object.create(null),K=0;for(let Z of h.allKeys)E[Z]=`key_${K++}`;y.write(r?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let Z of h.allKeys){if(Z==="__proto__")continue;let N=E[Z],re=typeof Z=="symbol"?`syms[${S.indexOf(Z)}]`:tt(Z),oe=`${re} in input`,H=f[Z],ve=H?._zod?.optin,ye=ve!==void 0,ce=H?._zod?.optout==="optional";if(y.write(`const ${N} = ${w(re)};`),ye&&ce){let Ie=ve==="optional"?`${N}_present`:`${N}.value !== undefined || ${N}_present`;y.write(`\n const ${N}_present = ${oe};\n if (!${N}.issues.length || ${N}_present) {\n if (${N}.issues.length) {${T(N,re)}\n }\n\n if (${Ie}) {\n newResult[${re}] = ${N}.value;\n }\n }\n\n `)}else ye?y.write(`\n if (${N}.issues.length) {${T(N,re)}\n }\n \n if (${N}.value === undefined) {\n if (${oe}) {\n newResult[${re}] = undefined;\n }\n } else {\n newResult[${re}] = ${N}.value;\n }\n\n `):y.write(`\n const ${N}_present = ${oe};\n if (${N}.issues.length) {${T(N,re)}\n }\n if (!${N}_present && !${N}.issues.length) {\n payload.issues.push({\n code: "invalid_type",\n expected: "nonoptional",\n input: undefined,\n path: [${re}]\n });\n }\n\n if (${N}_present) {\n newResult[${re}] = ${N}.value;\n }\n\n `)}return y.write("payload.value = newResult;"),y.write("return payload;"),y.compile()},a,s=rn,c=!Pe.jitless,u=c&&qd.value,m=t.catchall,p;e._zod.parse=(f,h)=>{p??(p=o.value);let S=f.value;return s(S)?c&&u&&h?.async===!1&&h.jitless!==!0?(a||(a=i(t.shape)),f=a(f,h),m?_y([],S,f,h,p,e):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:S,inst:e}),f)}});function ny(e,t,n,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let r=e.filter(i=>!yr(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>nt(a,o,$e())))}),t)}var ji=v("$ZodUnion",(e,t)=>{ie.init(e,t),ue(e,"optin",o=>o.def.options.some(r=>r._zod.optin==="defaulted")?"defaulted":o.def.options.some(r=>r._zod.optin!==void 0)?"optional":void 0),ue(e,"optout",o=>o.def.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ue(e,"values",o=>{if(o.def.options.every(r=>r._zod.values))return new Set(o.def.options.flatMap(r=>Array.from(r._zod.values)))}),ue(e,"pattern",o=>{if(o.def.options.every(r=>r._zod.pattern)){let r=o.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>yi(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},r);if(c instanceof Promise)a.push(c),i=!0;else{if(c.issues.length===0)return c;a.push(c)}}return i?Promise.all(a).then(s=>ny(s,o,e,r)):ny(a,o,e,r)}});function oy(e,t,n,o){let r=[];for(let i=0;i<e.length;i++)e[i].issues.length===0&&r.push(i);return r.length===1?(t.value=e[r[0]].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>nt(a,o,$e())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:r}),t)}var Fp=v("$ZodXor",(e,t)=>{ji.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1,a=[];for(let s of t.options){let c=s._zod.run({value:o.value,issues:[]},r);c instanceof Promise?(a.push(c),i=!0):a.push(c)}return i?Promise.all(a).then(s=>oy(s,o,e,r)):oy(a,o,e,r)}});function Kp(e,t){let n=e._zod,o=n.bag.optionsMap;if(!o){o=new Map;let{options:r,discriminator:i}=n.def;for(let a of r)for(let s of a._zod.propValues?.[i]??[])o.has(s)||o.set(s,a);n.bag.optionsMap=o}return o.get(t)}var Jp=v("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ji.init(e,t);let n=e._zod.parse;ue(e,"propValues",r=>{let i={};for(let a of r.def.options){let s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${r.def.options.indexOf(a)}"`);for(let[c,l]of Object.entries(s)){Object.prototype.hasOwnProperty.call(i,c)||Se(i,c,new Set);for(let u of l)i[c].add(u)}}return i}),t.options.forEach((r,i)=>{let a=np.get(r._zod.def);if(a&&!Object.prototype.hasOwnProperty.call(a,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let o=Zn(()=>{let r=t.options,i=new Map;for(let a of r){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(r,i)=>{let a=r.value;if(!rn(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),Bp=v("$ZodIntersection",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>iy(n,c,l)):iy(n,i,a)}});function Gn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(St(e)&&St(t)){let n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};Object.prototype.hasOwnProperty.call(r,"__proto__")&&delete r.__proto__;for(let i of o){if(i==="__proto__")continue;let a=Gn(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t[o],a=Gn(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function iy(e,t,n){let o=new Map,r,i=new Map,a=(l,u)=>{let m;if(l.code==="unrecognized_keys"&&!l.path?.length)r??(r=l),m=l.keys;else if(l.code==="invalid_key"&&l.origin==="record"&&l.path?.length===1){let p=String(l.path[0]);i.has(p)||i.set(p,l),m=[p]}else return!1;for(let p of m)o.has(p)||o.set(p,{}),o.get(p)[u]=!0;return!0};for(let l of t.issues)a(l,"l")||e.issues.push(l);for(let l of n.issues)a(l,"r")||e.issues.push(l);let s=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(s.length){let l=r?s.filter(u=>r.keys.includes(u)):[];l.length&&e.issues.push({...r,keys:l});for(let u of s)!l.includes(u)&&i.has(u)&&e.issues.push(i.get(u))}let c=Gn(t.value,n.value);if(!c.valid){if(yr(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Qs=v("$ZodTuple",(e,t)=>{ie.init(e,t);let n=t.items,o=Pe.memoizer;o?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=o?o.alloc(e,r,[],i):[];let s=[],c=ay(n,"optin"),l=ay(n,"optout");if(!t.rest){if(a.length<c)return r.issues.push({code:"too_small",minimum:c,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=new Array(n.length);for(let m=0;m<n.length;m++){let p=n[m]._zod.run({value:a[m],issues:[]},i);p instanceof Promise?s.push(p.then(f=>{u[m]=f})):u[m]=p}if(t.rest){let m=n.length-1,p=a.slice(n.length);for(let f of p){m++;let h=t.rest._zod.run({value:f,issues:[]},i);h instanceof Promise?s.push(h.then(S=>sy(S,r,m))):sy(h,r,m)}}return s.length?Promise.all(s).then(()=>cy(u,r,n,a,l)):cy(u,r,n,a,l)}});function ay(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function sy(e,t,n){e.issues.length&&t.issues.push(...rt(n,e.issues)),t.value[n]=e.value}function cy(e,t,n,o,r){for(let i=0;i<n.length;i++){let a=e[i],s=i<o.length;if(!s&&i>=r&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(a.issues.length){if(!s&&i>=r){t.value.length=i;break}t.issues.push(...rt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var Hp=v("$ZodRecord",(e,t)=>{ie.init(e,t);let n=Pe.memoizer;n?.attach(e),e._zod.parse=(o,r)=>{let i=o.value;if(!St(i))return o.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),o;let a=[],s=t.keyType._zod.values;if(s&&!t.partial){o.value=n?n.alloc(e,o,{},r):{};let c=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){if(c.add(typeof u=="number"?u.toString():u),u==="__proto__")continue;let m=t.keyType._zod.run({value:u,issues:[]},r);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(m.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(h=>nt(h,r,$e())),input:u,path:[u],inst:e});continue}let p=m.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:i[u],issues:[]},r);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&o.issues.push(...rt(u,h.issues)),o.value[p]=h.value})):(f.issues.length&&o.issues.push(...rt(u,f.issues)),o.value[p]=f.value)}let l;for(let u in i)if(!c.has(u))if(t.mode==="loose"){if(u==="__proto__")continue;o.value[u]=i[u]}else l=l??[],l.push(u);l&&l.length>0&&o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:l,continue:!0})}else{o.value=n?n.alloc(e,o,{},r):{};let c;for(let l of Reflect.ownKeys(i)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,l))continue;let u=t.keyType._zod.run({value:l,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&br.test(l)&&u.issues.length){let h=t.keyType._zod.run({value:Number(l),issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(u=h)}if(u.issues.length){t.mode==="loose"?o.value[l]=i[l]:s?(c=c??[],c.push(l)):o.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(h=>nt(h,r,$e())),input:l,path:[l],inst:e});continue}let p=u.value;if(p==="__proto__")continue;let f=t.valueType._zod.run({value:i[l],issues:[]},r);f instanceof Promise?a.push(f.then(h=>{h.issues.length&&o.issues.push(...rt(l,h.issues)),o.value[p]=h.value})):(f.issues.length&&o.issues.push(...rt(l,f.issues)),o.value[p]=f.value)}c&&c.length>0&&o.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}return a.length?Promise.all(a).then(()=>o):o}}),Yp=v("$ZodMap",(e,t)=>{ie.init(e,t);let n=Pe.memoizer;n?.attach(e),e._zod.parse=(o,r)=>{let i=o.value;if(!(i instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),o;let a=[];o.value=n?n.alloc(e,o,new Map,r):new Map;for(let[s,c]of i){let l=t.keyType._zod.run({value:s,issues:[]},r),u=t.valueType._zod.run({value:c,issues:[]},r);l instanceof Promise||u instanceof Promise?a.push(Promise.all([l,u]).then(([m,p])=>{ly(m,p,o,s,i,e,r)})):ly(l,u,o,s,i,e,r)}return a.length?Promise.all(a).then(()=>o):o}});function ly(e,t,n,o,r,i,a){e.issues.length&&($i.has(typeof o)?n.issues.push(...rt(o,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:i,issues:e.issues.map(s=>nt(s,a,$e()))})),t.issues.length&&($i.has(typeof o)?n.issues.push(...rt(o,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:i,key:o,issues:t.issues.map(s=>nt(s,a,$e()))})),n.value.set(e.value,t.value)}var Gp=v("$ZodSet",(e,t)=>{ie.init(e,t);let n=Pe.memoizer;n?.attach(e),e._zod.parse=(o,r)=>{let i=o.value;if(!(i instanceof Set))return o.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),o;let a=[];o.value=n?n.alloc(e,o,new Set,r):new Set;for(let s of i){let c=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise?a.push(c.then(l=>uy(l,o))):uy(c,o)}return a.length?Promise.all(a).then(()=>o):o}});function uy(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Wp=v("$ZodEnum",(e,t)=>{ie.init(e,t);let n=_i(t.entries),o=new Set(n);e._zod.values=o;let r=n.filter(i=>$i.has(typeof i));e._zod.pattern=new RegExp(r.length?`^(${r.map(i=>bt(i.toString())).join("|")})$`:"^[^\\\\s\\\\S]$"),e._zod.parse=(i,a)=>{let s=i.value;return o.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:e}),i}}),Xp=v("$ZodLiteral",(e,t)=>{ie.init(e,t);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(t.values.length?`^(${t.values.map(o=>typeof o=="string"?bt(o):o?bt(o.toString()):String(o)).join("|")})$`:"^[^\\\\s\\\\S]$"),e._zod.parse=(o,r)=>{let i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Qp=v("$ZodFile",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),ef=v("$ZodTransform",(e,t)=>{ie.init(e,t),e._zod.optin="optional",Pe.memoizer?.guard(e),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Sr(e.constructor.name);let r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new ot;return n.value=r,n}});function dy(e,t){return e.value=t.issues.length?void 0:t.value,e}var ec=v("$ZodOptional",(e,t)=>{ie.init(e,t),ue(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",ue(e,"values",n=>{let o=n.def.innerType._zod.values;return o?new Set([...o,void 0]):void 0}),ue(e,"pattern",n=>{let o=n.def.innerType._zod.pattern;return o?new RegExp(`^(${yi(o.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let r=t.innerType._zod.run({value:n.value,issues:[]},o);return r instanceof Promise?r.then(i=>dy(n,i)):dy(n,r)}return t.innerType._zod.run(n,o)}}),tf=v("$ZodExactOptional",(e,t)=>{ec.init(e,t),ue(e,"values",n=>n.def.innerType._zod.values),ue(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),rf=v("$ZodNullable",(e,t)=>{ie.init(e,t),ue(e,"optin",n=>n.def.innerType._zod.optin),ue(e,"optout",n=>n.def.innerType._zod.optout),ue(e,"pattern",n=>{let o=n.def.innerType._zod.pattern;return o?new RegExp(`^(${yi(o.source)}|null)$`):void 0}),ue(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,o)=>n.value===null?n:t.innerType._zod.run(n,o)}),nf=v("$ZodDefault",(e,t)=>{ie.init(e,t),e._zod.optin="defaulted",ue(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>my(i,t)):my(r,t)}});function my(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var of=v("$ZodPrefault",(e,t)=>{ie.init(e,t),e._zod.optin="defaulted",ue(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,o)=>(o.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,o))}),af=v("$ZodNonOptional",(e,t)=>{ie.init(e,t),ue(e,"values",n=>{let o=n.def.innerType._zod.values;return o?new Set([...o].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,o)=>{let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>py(i,e)):py(r,e)}});function py(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var sf=v("$ZodSuccess",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Sr("ZodSuccess");let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.issues.length===0,n)):(n.value=r.issues.length===0,n)}});function fy(e,t,n,o){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(r=>nt(r,o,$e()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var cf=v("$ZodCatch",(e,t)=>{ie.init(e,t),ue(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),ue(e,"optout",n=>n.def.innerType._zod.optout),ue(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run({value:n.value,issues:[]},o);return r instanceof Promise?r.then(i=>fy(n,i,t,o)):fy(n,r,t,o)}}),lf=v("$ZodNaN",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),tc=v("$ZodPipe",(e,t)=>{ie.init(e,t),ue(e,"values",n=>n.def.in._zod.values),ue(e,"optin",n=>n.def.in._zod.optin),ue(e,"optout",n=>n.def.out._zod.optout),ue(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Ds(a,t.in,o)):Ds(i,t.in,o)}let r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Ds(i,t.out,o)):Ds(r,t.out,o)}});function Ds(e,t,n){return e.issues.some(o=>o.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Ai=v("$ZodCodec",(e,t)=>{ie.init(e,t),ue(e,"values",n=>n.def.in._zod.values),ue(e,"optin",n=>n.def.in._zod.optin),ue(e,"optout",n=>n.def.out._zod.optout),ue(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(n,o);return i instanceof Promise?i.then(a=>Ls(a,t,o)):Ls(i,t,o)}else{let i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Ls(a,t,o)):Ls(i,t,o)}}});function Ls(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(i=>Ms(e,i,t.out,n)):Ms(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(i=>Ms(e,i,t.in,n)):Ms(e,r,t.in,n)}}function Ms(e,t,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},o)}var uf=v("$ZodPreprocess",(e,t)=>{tc.init(e,t)}),df=v("$ZodReadonly",(e,t)=>{ie.init(e,t),ue(e,"propValues",n=>n.def.innerType._zod.propValues),ue(e,"values",n=>n.def.innerType._zod.values),ue(e,"optin",n=>n.def.innerType?._zod?.optin),ue(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);let r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(hy):hy(r)}});function hy(e){return e.memo||(e.value=Object.freeze(e.value)),e}var mf=v("$ZodTemplateLiteral",(e,t)=>{ie.init(e,t);let n=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let r=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(i,a))}else if(o===null||Vd.has(typeof o))n.push(bt(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(o,r)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),pf=v("$ZodFunction",(e,t)=>(ie.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...o){let r=e._def.input?$s(e._def.input,o):o,i=Reflect.apply(n,this,r);return e._def.output?$s(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...o){let r=e._def.input?await zs(e._def.input,o):o,i=await Reflect.apply(n,this,r);return e._def.output?await zs(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(n,o)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let o=e.constructor;return Array.isArray(n[0])?new o({type:"function",input:new Qs({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new o({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:n})},e)),ff=v("$ZodPromise",(e,t)=>{ie.init(e,t),e._zod.parse=(n,o)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},o))}),Ui=v("$ZodLazy",(e,t)=>{ie.init(e,t),Ld(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),ue(e,"pattern",n=>n.innerType?._zod?.pattern),ue(e,"propValues",n=>n.innerType?._zod?.propValues),ue(e,"optin",n=>n.innerType?._zod?.optin??void 0),ue(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,o)=>e._zod.innerType._zod.run(n,o)}),hf=v("$ZodCustom",(e,t)=>{ge.init(e,t),ie.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{let o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>gy(i,n,o,e));gy(r,n,o,e)}});function gy(e,t,n,o){if(!e){let r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(Fn(r))}}var oc=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},vf="~memo",by=[];function gf(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var $y=new WeakMap;function _f(e,t){let n=$y.get(e);if(n!==void 0)return n;if(t.has(e))return!0;t.add(e);let o=!1,r=s=>{!o&&s?._zod&&_f(s,t)&&(o=!0)},i=e._zod.def,a=i.type;switch(a){case"object":{for(let s of Reflect.ownKeys(i.shape))r(i.shape[s]);r(i.catchall);break}case"array":r(i.element);break;case"tuple":for(let s of i.items)r(s);r(i.rest);break;case"record":case"map":r(i.keyType),r(i.valueType);break;case"set":r(i.valueType);break;case"union":for(let s of i.options)r(s);break;case"intersection":r(i.left),r(i.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":r(i.innerType);break;case"pipe":r(i.in),r(i.out);break;case"function":r(i.input),r(i.output);break;case"lazy":r(e._zod.innerType);break;case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let s in i){let c=Object.getOwnPropertyDescriptor(i,s);if(!c||c.get)continue;let l=c.value;if(!(!l||typeof l!="object")){if(l._zod)r(l);else if(Array.isArray(l))for(let u of l)r(u)}}}return t.delete(e),$y.set(e,o),o}function yf(e){return _f(e,new Set)}function Gw(e,t){let n=e.buckets.get(t);return n||(n=new Map,e.buckets.set(t,n)),n}var rc,nc=[],Ww={alloc(e,t,n){let o=rc;if(!o)return n;rc=void 0;let r={value:n,issues:null};return o.set(t.value,r),nc.push(r),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let n=e._zod.parse,o=(r,i)=>{if(i.direction!=="backward"&&ic(i,r.value))throw new oc;return n(r,i)};e._zod.parse=o,e._zod.run===n&&(e._zod.run=o)})},attach(e){var t;let n,o,r;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let i=e._zod.parse,a=(s,c)=>{if(n===void 0&&(n=_f(e,new Set),!n))return e._zod.parse=i,e._zod.run===a&&(e._zod.run=i),i(s,c);let l=s.value;if(l===null||typeof l!="object")return i(s,c);let u=c[vf];u||(u={buckets:new Map,backEdges:void 0},c[vf]=u);let m;o===c?m=r:(m=Gw(u,e),o=c,r=m);let p=m.get(l);if(p)return s.value=p.value,p.issues?p.issues.length&&s.issues.push(...gf(p.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new Set),u.backEdges.add(p.value)),s;rc=m;let f=nc.length,h=i(s,c);rc=void 0;let S=nc.length>f?nc.pop():void 0;return h instanceof Promise?h.then(y=>(S&&(S.issues=y.issues.length?gf(y.issues):by),y)):(S&&(S.issues=h.issues.length?gf(h.issues):by),h)};e._zod.parse=a,e._zod.run===i&&(e._zod.run=a)})}};function Di(){return Ww}function ic(e,t){let n=e[vf]?.backEdges;return n!==void 0&&t!==null&&typeof t=="object"&&n.has(t)}var Mi={};Qt(Mi,{ar:()=>zy,az:()=>Ry,be:()=>wy,bg:()=>Iy,bn:()=>Ty,ca:()=>xy,ckb:()=>Ey,cs:()=>Py,da:()=>Oy,de:()=>Cy,el:()=>Ny,en:()=>ac,eo:()=>jy,es:()=>Ay,fa:()=>Uy,fi:()=>Dy,fr:()=>Ly,frCA:()=>My,gu:()=>qy,he:()=>Vy,hi:()=>Zy,hr:()=>Fy,hu:()=>Ky,hy:()=>By,id:()=>Hy,is:()=>Yy,it:()=>Gy,ja:()=>Wy,ka:()=>Xy,kh:()=>Qy,km:()=>sc,kn:()=>eS,ko:()=>tS,lt:()=>nS,mk:()=>oS,ms:()=>iS,ne:()=>aS,nl:()=>sS,nn:()=>cS,no:()=>lS,ota:()=>uS,pl:()=>mS,ps:()=>dS,pt:()=>pS,ptBR:()=>fS,ro:()=>hS,ru:()=>vS,sk:()=>_S,sl:()=>yS,sv:()=>SS,ta:()=>bS,th:()=>$S,tk:()=>zS,tr:()=>RS,ua:()=>kS,uk:()=>cc,ur:()=>wS,uz:()=>IS,vi:()=>TS,yo:()=>PS,zhCN:()=>xS,zhTW:()=>ES});var Xw=()=>{let e={string:{unit:"\\u062D\\u0631\\u0641",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},file:{unit:"\\u0628\\u0627\\u064A\\u062A",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},array:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},set:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},map:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"}};function t(r){return e[r]??null}let n={regex:"\\u0645\\u062F\\u062E\\u0644",email:"\\u0628\\u0631\\u064A\\u062F \\u0625\\u0644\\u0643\\u062A\\u0631\\u0648\\u0646\\u064A",url:"\\u0631\\u0627\\u0628\\u0637",emoji:"\\u0625\\u064A\\u0645\\u0648\\u062C\\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0648\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",date:"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",time:"\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",duration:"\\u0645\\u062F\\u0629 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",ipv4:"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv4",ipv6:"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv6",mac:"\\u0639\\u0646\\u0648\\u0627\\u0646 MAC",cidrv4:"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv4",cidrv6:"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv6",base64:"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64-encoded",base64url:"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64url-encoded",json_string:"\\u0646\\u064E\\u0635 \\u0639\\u0644\\u0649 \\u0647\\u064A\\u0626\\u0629 JSON",e164:"\\u0631\\u0642\\u0645 \\u0647\\u0627\\u062A\\u0641 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 E.164",credit_card:"\\u0631\\u0642\\u0645 \\u0628\\u0637\\u0627\\u0642\\u0629 \\u0627\\u0644\\u0627\\u0626\\u062A\\u0645\\u0627\\u0646",jwt:"JWT",template_literal:"\\u0645\\u062F\\u062E\\u0644"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 instanceof ${r.expected}\\u060C \\u0648\\u0644\\u0643\\u0646 \\u062A\\u0645 \\u0625\\u062F\\u062E\\u0627\\u0644 ${s}`:`\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 ${i}\\u060C \\u0648\\u0644\\u0643\\u0646 \\u062A\\u0645 \\u0625\\u062F\\u062E\\u0627\\u0644 ${s}`}case"invalid_value":return r.values.length===1?`\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 ${R(r.values[0])}`:`\\u0627\\u062E\\u062A\\u064A\\u0627\\u0631 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062A\\u0648\\u0642\\u0639 \\u0627\\u0646\\u062A\\u0642\\u0627\\u0621 \\u0623\\u062D\\u062F \\u0647\\u0630\\u0647 \\u0627\\u0644\\u062E\\u064A\\u0627\\u0631\\u0627\\u062A: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?` \\u0623\\u0643\\u0628\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0623\\u0646 \\u062A\\u0643\\u0648\\u0646 ${r.origin??"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629"} ${i} ${r.maximum.toString()} ${a.unit??"\\u0639\\u0646\\u0635\\u0631"}`:`\\u0623\\u0643\\u0628\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0623\\u0646 \\u062A\\u0643\\u0648\\u0646 ${r.origin??"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ${r.origin} \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ${i} ${r.minimum.toString()} ${a.unit}`:`\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ${r.origin} \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0628\\u062F\\u0623 \\u0628\\u0640 "${r.prefix}"`:i.format==="ends_with"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0646\\u062A\\u0647\\u064A \\u0628\\u0640 "${i.suffix}"`:i.format==="includes"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u062A\\u0636\\u0645\\u0651\\u064E\\u0646 "${i.includes}"`:i.format==="regex"?`\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0637\\u0627\\u0628\\u0642 \\u0627\\u0644\\u0646\\u0645\\u0637 ${i.pattern}`:`${n[i.format]??r.format} \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644`}case"not_multiple_of":return`\\u0631\\u0642\\u0645 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 \\u0645\\u0646 \\u0645\\u0636\\u0627\\u0639\\u0641\\u0627\\u062A ${r.divisor}`;case"unrecognized_keys":return`\\u0645\\u0639\\u0631\\u0641${r.keys.length>1?"\\u0627\\u062A":""} \\u063A\\u0631\\u064A\\u0628${r.keys.length>1?"\\u0629":""}: ${_(r.keys,"\\u060C ")}`;case"invalid_key":return`\\u0645\\u0639\\u0631\\u0641 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644 \\u0641\\u064A ${r.origin}`;case"invalid_union":return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644";case"invalid_element":return`\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644 \\u0641\\u064A ${r.origin}`;default:return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644"}}};function zy(){return{localeError:Xw()}}var Qw=()=>{let e={string:{unit:"simvol",verb:"olmal\\u0131d\\u0131r"},file:{unit:"bayt",verb:"olmal\\u0131d\\u0131r"},array:{unit:"element",verb:"olmal\\u0131d\\u0131r"},set:{unit:"element",verb:"olmal\\u0131d\\u0131r"},map:{unit:"element",verb:"olmal\\u0131d\\u0131r"}};function t(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kart\\u0131 n\\xF6mr\\u0259si",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return r.values.length===1?`Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ${R(r.values[0])}`:`Yanl\\u0131\\u015F se\\xE7im: a\\u015Fa\\u011F\\u0131dak\\u0131lardan biri olmal\\u0131d\\u0131r: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ${r.origin??"d\\u0259y\\u0259r"} ${i}${r.maximum.toString()} ${a.unit??"element"}`:`\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ${r.origin??"d\\u0259y\\u0259r"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Yanl\\u0131\\u015F m\\u0259tn: "${i.prefix}" il\\u0259 ba\\u015Flamal\\u0131d\\u0131r`:i.format==="ends_with"?`Yanl\\u0131\\u015F m\\u0259tn: "${i.suffix}" il\\u0259 bitm\\u0259lidir`:i.format==="includes"?`Yanl\\u0131\\u015F m\\u0259tn: "${i.includes}" daxil olmal\\u0131d\\u0131r`:i.format==="regex"?`Yanl\\u0131\\u015F m\\u0259tn: ${i.pattern} \\u015Fablonuna uy\\u011Fun olmal\\u0131d\\u0131r`:`Yanl\\u0131\\u015F ${n[i.format]??r.format}`}case"not_multiple_of":return`Yanl\\u0131\\u015F \\u0259d\\u0259d: ${r.divisor} il\\u0259 b\\xF6l\\xFCn\\u0259 bil\\u0259n olmal\\u0131d\\u0131r`;case"unrecognized_keys":return`Tan\\u0131nmayan a\\xE7ar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\\u0259 yanl\\u0131\\u015F a\\xE7ar`;case"invalid_union":return"Yanl\\u0131\\u015F d\\u0259y\\u0259r";case"invalid_element":return`${r.origin} daxilind\\u0259 yanl\\u0131\\u015F d\\u0259y\\u0259r`;default:return"Yanl\\u0131\\u015F d\\u0259y\\u0259r"}}};function Ry(){return{localeError:Qw()}}function ky(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}var eI=()=>{let e={string:{unit:{one:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B",few:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B\\u044B",many:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},array:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},set:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},map:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},file:{unit:{one:"\\u0431\\u0430\\u0439\\u0442",few:"\\u0431\\u0430\\u0439\\u0442\\u044B",many:"\\u0431\\u0430\\u0439\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"}};function t(r){return e[r]??null}let n={regex:"\\u0443\\u0432\\u043E\\u0434",email:"email \\u0430\\u0434\\u0440\\u0430\\u0441",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0430 \\u0456 \\u0447\\u0430\\u0441",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0447\\u0430\\u0441",duration:"ISO \\u043F\\u0440\\u0430\\u0446\\u044F\\u0433\\u043B\\u0430\\u0441\\u0446\\u044C",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0430\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0430\\u0441",mac:"MAC \\u0430\\u0434\\u0440\\u0430\\u0441",cidrv4:"IPv4 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64",base64url:"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64url",json_string:"JSON \\u0440\\u0430\\u0434\\u043E\\u043A",e164:"\\u043D\\u0443\\u043C\\u0430\\u0440 E.164",credit_card:"\\u043D\\u0443\\u043C\\u0430\\u0440 \\u043A\\u0440\\u044D\\u0434\\u044B\\u0442\\u043D\\u0430\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B",jwt:"JWT",template_literal:"\\u0443\\u0432\\u043E\\u0434"},o={nan:"NaN",number:"\\u043B\\u0456\\u043A",array:"\\u043C\\u0430\\u0441\\u0456\\u045E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F instanceof ${r.expected}, \\u0430\\u0442\\u0440\\u044B\\u043C\\u0430\\u043D\\u0430 ${s}`:`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F ${i}, \\u0430\\u0442\\u0440\\u044B\\u043C\\u0430\\u043D\\u0430 ${s}`}case"invalid_value":return r.values.length===1?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F ${R(r.values[0])}`:`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0432\\u0430\\u0440\\u044B\\u044F\\u043D\\u0442: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F \\u0430\\u0434\\u0437\\u0456\\u043D \\u0437 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=ky(s,a.unit.one,a.unit.few,a.unit.many);return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u0432\\u044F\\u043B\\u0456\\u043A\\u0456: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435"} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ${a.verb} ${i}${r.maximum.toString()} ${c}`}return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u0432\\u044F\\u043B\\u0456\\u043A\\u0456: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435"} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=ky(s,a.unit.one,a.unit.few,a.unit.many);return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u043C\\u0430\\u043B\\u044B: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${r.origin} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ${a.verb} ${i}${r.minimum.toString()} ${c}`}return`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u043C\\u0430\\u043B\\u044B: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ${r.origin} \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u043F\\u0430\\u0447\\u044B\\u043D\\u0430\\u0446\\u0446\\u0430 \\u0437 "${i.prefix}"`:i.format==="ends_with"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0432\\u0430\\u0446\\u0446\\u0430 \\u043D\\u0430 "${i.suffix}"`:i.format==="includes"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u043C\\u044F\\u0448\\u0447\\u0430\\u0446\\u044C "${i.includes}"`:i.format==="regex"?`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0430\\u0434\\u043F\\u0430\\u0432\\u044F\\u0434\\u0430\\u0446\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ${i.pattern}`:`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u043B\\u0456\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0431\\u044B\\u0446\\u044C \\u043A\\u0440\\u0430\\u0442\\u043D\\u044B\\u043C ${r.divisor}`;case"unrecognized_keys":return`\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u0430\\u0437\\u043D\\u0430\\u043D\\u044B ${r.keys.length>1?"\\u043A\\u043B\\u044E\\u0447\\u044B":"\\u043A\\u043B\\u044E\\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u043A\\u043B\\u044E\\u0447 \\u0443 ${r.origin}`;case"invalid_union":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434";case"invalid_element":return`\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u0430\\u0435 \\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435 \\u045E ${r.origin}`;default:return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434"}}};function wy(){return{localeError:eI()}}var tI=()=>{let e={string:{unit:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},file:{unit:"\\u0431\\u0430\\u0439\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},array:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},set:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},map:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"}};function t(r){return e[r]??null}let n={regex:"\\u0432\\u0445\\u043E\\u0434",email:"\\u0438\\u043C\\u0435\\u0439\\u043B \\u0430\\u0434\\u0440\\u0435\\u0441",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u0434\\u0436\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",duration:"ISO \\u043F\\u0440\\u043E\\u0434\\u044A\\u043B\\u0436\\u0438\\u0442\\u0435\\u043B\\u043D\\u043E\\u0441\\u0442",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441",mac:"MAC \\u0430\\u0434\\u0440\\u0435\\u0441",cidrv4:"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"base64-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437",base64url:"base64url-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437",json_string:"JSON \\u043D\\u0438\\u0437",e164:"E.164 \\u043D\\u043E\\u043C\\u0435\\u0440",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0430",jwt:"JWT",template_literal:"\\u0432\\u0445\\u043E\\u0434"},o={nan:"NaN",number:"\\u0447\\u0438\\u0441\\u043B\\u043E",array:"\\u043C\\u0430\\u0441\\u0438\\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D instanceof ${r.expected}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D ${s}`:`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ${i}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D ${s}`}case"invalid_value":return r.values.length===1?`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ${R(r.values[0])}`:`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u044F: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D\\u043E \\u0435\\u0434\\u043D\\u043E \\u043E\\u0442 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u0433\\u043E\\u043B\\u044F\\u043C\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${r.origin??"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442"} \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ${i}${r.maximum.toString()} ${a.unit??"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430"}`:`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u0433\\u043E\\u043B\\u044F\\u043C\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${r.origin??"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442"} \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${r.origin} \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ${r.origin} \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;if(i.format==="starts_with")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u0432\\u0430 \\u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u044A\\u0440\\u0448\\u0432\\u0430 \\u0441 "${i.suffix}"`;if(i.format==="includes")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u044E\\u0447\\u0432\\u0430 "${i.includes}"`;if(i.format==="regex")return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0441\\u044A\\u0432\\u043F\\u0430\\u0434\\u0430 \\u0441 ${i.pattern}`;let a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D";return i.format==="emoji"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),i.format==="datetime"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),i.format==="date"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430"),i.format==="time"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),i.format==="duration"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430"),`${a} ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E \\u0447\\u0438\\u0441\\u043B\\u043E: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 \\u043A\\u0440\\u0430\\u0442\\u043D\\u043E \\u043D\\u0430 ${r.divisor}`;case"unrecognized_keys":return`\\u041D\\u0435\\u0440\\u0430\\u0437\\u043F\\u043E\\u0437\\u043D\\u0430\\u0442${r.keys.length>1?"\\u0438":""} \\u043A\\u043B\\u044E\\u0447${r.keys.length>1?"\\u043E\\u0432\\u0435":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043A\\u043B\\u044E\\u0447 \\u0432 ${r.origin}`;case"invalid_union":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434";case"invalid_element":return`\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430 \\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442 \\u0432 ${r.origin}`;default:return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434"}}};function Iy(){return{localeError:tI()}}var rI=()=>{let e={string:{unit:"\\u0985\\u0995\\u09CD\\u09B7\\u09B0",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},file:{unit:"\\u09AC\\u09BE\\u0987\\u099F",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},array:{unit:"\\u0986\\u0987\\u099F\\u09C7\\u09AE",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},set:{unit:"\\u0986\\u0987\\u099F\\u09C7\\u09AE",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"},map:{unit:"\\u098F\\u09A8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF",verb:"\\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7"}};function t(r){return e[r]??null}let n={regex:"\\u0987\\u09A8\\u09AA\\u09C1\\u099F",email:"\\u0987\\u09AE\\u09C7\\u0987\\u09B2 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",url:"URL",emoji:"\\u0987\\u09AE\\u09CB\\u099C\\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996 \\u0993 \\u09B8\\u09AE\\u09AF\\u09BC",date:"ISO \\u09A4\\u09BE\\u09B0\\u09BF\\u0996",time:"ISO \\u09B8\\u09AE\\u09AF\\u09BC",duration:"ISO \\u09B8\\u09AE\\u09AF\\u09BC\\u0995\\u09BE\\u09B2",ipv4:"IPv4 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",ipv6:"IPv6 \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",mac:"MAC \\u09A0\\u09BF\\u0995\\u09BE\\u09A8\\u09BE",cidrv4:"IPv4 \\u09B0\\u09C7\\u099E\\u09CD\\u099C",cidrv6:"IPv6 \\u09B0\\u09C7\\u099E\\u09CD\\u099C",base64:"base64-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",base64url:"base64url-\\u098F\\u09A8\\u0995\\u09CB\\u09A1\\u09C7\\u09A1 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",json_string:"JSON \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982",e164:"E.164 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0",credit_card:"\\u0995\\u09CD\\u09B0\\u09C7\\u09A1\\u09BF\\u099F \\u0995\\u09BE\\u09B0\\u09CD\\u09A1 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0",jwt:"JWT",template_literal:"\\u0987\\u09A8\\u09AA\\u09C1\\u099F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${i}, \\u09AA\\u09CD\\u09B0\\u09BE\\u09AA\\u09CD\\u09A4 ${s}`}case"invalid_value":return r.values.length===1?`\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F: \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${R(r.values[0])}`:`\\u0985\\u09AC\\u09C8\\u09A7 \\u0985\\u09AA\\u09B6\\u09A8: ${_(r.values," | ")} \\u098F\\u09B0 \\u09AE\\u09A7\\u09CD\\u09AF\\u09C7 \\u098F\\u0995\\u099F\\u09BF \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${r.origin??"\\u09AE\\u09BE\\u09A8"} ${i}${r.maximum.toString()} ${a.unit??"\\u098F\\u09B2\\u09BF\\u09AE\\u09C7\\u09A8\\u09CD\\u099F"} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u09AC\\u09A1\\u09BC: ${r.origin??"\\u09AE\\u09BE\\u09A8"} ${i}${r.maximum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${r.origin} ${i}${r.minimum.toString()} ${a.unit} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09A8\\u09C7\\u0995 \\u099B\\u09CB\\u099F: ${r.origin} ${i}${r.minimum.toString()} \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${i.prefix}" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C1\\u09B0\\u09C1 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:i.format==="ends_with"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${i.suffix}" \\u09A6\\u09BF\\u09AF\\u09BC\\u09C7 \\u09B6\\u09C7\\u09B7 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:i.format==="includes"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: "${i.includes}" \\u0985\\u09A8\\u09CD\\u09A4\\u09B0\\u09CD\\u09AD\\u09C1\\u0995\\u09CD\\u09A4 \\u09A5\\u09BE\\u0995\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:i.format==="regex"?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09B8\\u09CD\\u099F\\u09CD\\u09B0\\u09BF\\u0982: ${i.pattern} \\u09AA\\u09CD\\u09AF\\u09BE\\u099F\\u09BE\\u09B0\\u09CD\\u09A8 \\u09AE\\u09BF\\u09B2\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`:`\\u0985\\u09AC\\u09C8\\u09A7 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0985\\u09AC\\u09C8\\u09A7 \\u09A8\\u09AE\\u09CD\\u09AC\\u09B0: ${r.divisor} \\u098F\\u09B0 \\u0997\\u09C1\\u09A3\\u09BF\\u09A4\\u0995 \\u09B9\\u09A4\\u09C7 \\u09B9\\u09AC\\u09C7`;case"unrecognized_keys":return`\\u0985\\u099A\\u09C7\\u09A8\\u09BE \\u0995\\u09C0${r.keys.length>1?"\\u0997\\u09C1\\u09B2\\u09CB":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u0995\\u09C0`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0985\\u09AC\\u09C8\\u09A7 \\u09A1\\u09BF\\u09B8\\u0995\\u09CD\\u09B0\\u09BF\\u09AE\\u09BF\\u09A8\\u09C7\\u099F\\u09B0 \\u09AE\\u09BE\\u09A8\\u0964 \\u09AA\\u09CD\\u09B0\\u09A4\\u09CD\\u09AF\\u09BE\\u09B6\\u09BF\\u09A4 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F";case"invalid_element":return`${r.origin} \\u098F \\u0985\\u09AC\\u09C8\\u09A7 \\u09AE\\u09BE\\u09A8`;default:return"\\u0985\\u09AC\\u09C8\\u09A7 \\u0987\\u09A8\\u09AA\\u09C1\\u099F"}}};function Ty(){return{localeError:rI()}}var nI=()=>{let e={string:{unit:"car\\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"adre\\xE7a electr\\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\\xE7a IPv4",ipv6:"adre\\xE7a IPv6",mac:"adre\\xE7a MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\\xFAmero E.164",credit_card:"n\\xFAmero de targeta de cr\\xE8dit",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\\xE0lid: s\'esperava instanceof ${r.expected}, s\'ha rebut ${s}`:`Tipus inv\\xE0lid: s\'esperava ${i}, s\'ha rebut ${s}`}case"invalid_value":return r.values.length===1?`Valor inv\\xE0lid: s\'esperava ${R(r.values[0])}`:`Opci\\xF3 inv\\xE0lida: s\'esperava una de ${_(r.values," o ")}`;case"too_big":{let i=r.inclusive?"com a m\\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s\'esperava que ${r.origin??"el valor"} contingu\\xE9s ${i} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s\'esperava que ${r.origin??"el valor"} fos ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"com a m\\xEDnim":"m\\xE9s de",a=t(r.origin);return a?`Massa petit: s\'esperava que ${r.origin} contingu\\xE9s ${i} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s\'esperava que ${r.origin} fos ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Format inv\\xE0lid: ha de comen\\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\\xE0lid: ha d\'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\\xE0lid: ha d\'incloure "${i.includes}"`:i.format==="regex"?`Format inv\\xE0lid: ha de coincidir amb el patr\\xF3 ${i.pattern}`:`Format inv\\xE0lid per a ${n[i.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":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Clau inv\\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\\xE0lida";case"invalid_element":return`Element inv\\xE0lid a ${r.origin}`;default:return"Entrada inv\\xE0lida"}}};function xy(){return{localeError:nI()}}var oI=()=>{let e={string:{unit:"\\u067E\\u06CC\\u062A",verb:"\\u0628\\u06CE\\u062A"},file:{unit:"\\u0628\\u0627\\u06CC\\u062A",verb:"\\u0628\\u06CE\\u062A"},array:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"},set:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"},map:{unit:"\\u062F\\u0627\\u0646\\u06D5",verb:"\\u0628\\u06CE\\u062A"}};function t(r){return e[r]??null}let n={regex:"regex",email:"\\u0626\\u06CC\\u0645\\u06D5\\u06CC\\u06B5",url:"\\u0628\\u06D5\\u0633\\u062A\\u06D5\\u0631 (URL)",emoji:"\\u0626\\u06CC\\u0645\\u06C6\\u062C\\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A \\u0648 \\u06A9\\u0627\\u062A",date:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A",time:"\\u06A9\\u0627\\u062A",duration:"\\u0645\\u0627\\u0648\\u06D5",ipv4:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv4",ipv6:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC IPv6",mac:"\\u0646\\u0627\\u0648\\u0646\\u06CC\\u0634\\u0627\\u0646\\u06CC MAC",cidrv4:"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv4",cidrv6:"\\u0645\\u06D5\\u0648\\u062F\\u0627\\u06CC IPv6",base64:"\\u062F\\u06D5\\u0642\\u06CC base64",base64url:"\\u062F\\u06D5\\u0642\\u06CC base64url",json_string:"\\u062F\\u06D5\\u0642\\u06CC JSON",e164:"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC E.164",credit_card:"\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC \\u06A9\\u0627\\u0631\\u062A\\u06CC \\u06A9\\u0631\\u06CE\\u062F\\u06CC\\u062A",jwt:"JWT",template_literal:"\\u062A\\u06CE\\u06A9\\u0631\\u062F\\u06D5"},o={nan:"NaN",string:"\\u0646\\u0648\\u0648\\u0633\\u06CC\\u0646",number:"\\u0698\\u0645\\u0627\\u0631\\u06D5",boolean:"boolean",array:"array",object:"object",date:"\\u0695\\u06CE\\u06A9\\u06D5\\u0648\\u062A",integer:"\\u0698\\u0645\\u0627\\u0631\\u06D5",float:"\\u0698\\u0645\\u0627\\u0631\\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a,c=["\\u0627","\\u0648","\\u06C6","\\u0648\\u0648","\\u06D5","\\u06CC","\\u06CE"].some(u=>s.endsWith(u))?"\\u06CC\\u06D5":"\\u06D5",l=/^[a-zA-Z]+$/.test(s);return a==="null"||a==="undefined"?"\\u062F\\u0627\\u0648\\u0627\\u06A9\\u0631\\u0627\\u0648\\u06D5":`\\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 ${i} \\u0628\\u06CE\\u062A\\u060C \\u0628\\u06D5\\u06B5\\u0627\\u0645 ${s}${l?"":c}`}case"invalid_value":return r.values.length===1?`\\u0628\\u06D5\\u0647\\u0627\\u06A9\\u06D5 \\u0646\\u0627\\u062F\\u0631\\u0648\\u0648\\u0633\\u062A\\u06D5: \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 ${R(r.values[0])} \\u0628\\u06CE\\u062A`:`\\u0647\\u06D5\\u06B5\\u0628\\u0698\\u0627\\u0631\\u062F\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648\\u06D5 \\u06CC\\u06D5\\u06A9\\u06CE\\u06A9 \\u0628\\u06CE\\u062A \\u0644\\u06D5 ${_(r.values,"|")}`;case"too_big":{let i=t(r.origin);return i?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${r.maximum.toString()} ${i.unit} ${i.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u0632\\u06C6\\u0631\\u06D5\\u0648\\u06D5 ${r.maximum.toString()} \\u0628\\u06CE\\u062A`}case"too_small":{let i=t(r.origin);return i?`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${r.minimum.toString()} ${i.unit} ${i.verb}`:`\\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0628\\u06D5 \\u0644\\u0627\\u06CC\\u06D5\\u0646\\u06CC \\u06A9\\u06D5\\u0645\\u06D5\\u0648\\u06D5 ${r.minimum.toString()} \\u0628\\u06CE\\u062A`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u062F\\u06D5\\u0633\\u062A\\u067E\\u06CE\\u0628\\u06A9\\u0627\\u062A \\u0628\\u06D5 "${i.prefix}"`:i.format==="ends_with"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u06A9\\u06C6\\u062A\\u0627\\u06CC\\u06CC\\u0628\\u06CE\\u062A \\u0628\\u06D5 "${i.suffix}"`:i.format==="includes"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 "${i.includes}" \\u0644\\u06D5\\u062E\\u06C6\\u0628\\u06AF\\u0631\\u06CE\\u062A`:i.format==="regex"?`\\u062F\\u06D5\\u0642\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u067E\\u06CE\\u0648\\u06CC\\u0633\\u062A\\u06D5 \\u0644\\u06D5\\u06AF\\u06D5\\u06B5 \\u067E\\u0627\\u062A\\u06CE\\u0631\\u0646\\u06CC ${i.pattern} \\u0628\\u06AF\\u0648\\u0646\\u062C\\u06CE\\u062A`:`\\u0628\\u06D5\\u0647\\u0627\\u06CC ${n[i.format]??r.format} \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A\\u06D5`}case"not_multiple_of":return`\\u0698\\u0645\\u0627\\u0631\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A: \\u062F\\u06D5\\u0628\\u06CE\\u062A \\u0686\\u06D5\\u0646\\u062F \\u0647\\u06CE\\u0646\\u062F\\u06D5 \\u0628\\u06CE\\u062A \\u0628\\u06C6 ${r.divisor}`;case"unrecognized_keys":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u06D5\\u0646\\u0627\\u0633\\u0631\\u0627\\u0648: ${_(r.keys,", ")}`;case"invalid_key":return`\\u06A9\\u0644\\u06CC\\u0644\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A \\u0644\\u06D5 ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0628\\u06D5\\u0647\\u0627\\u06CC \\u0646\\u06D5\\u0646\\u0627\\u0633\\u0631\\u0627\\u0648 \\u0647\\u06D5\\u06CC\\u06D5. \\u0628\\u06D5\\u0647\\u0627\\u06CC \\u0686\\u0627\\u0648\\u06D5\\u0695\\u0648\\u0627\\u0646\\u06A9\\u0631\\u0627\\u0648: ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u06CC\\u06D5\\u06A9\\u06AF\\u0631\\u062A\\u0646\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A";case"invalid_element":return`${r.origin} \\u0628\\u06D5\\u0647\\u0627\\u06A9\\u06D5 \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A\\u06D5`;default:return"\\u062A\\u06CE\\u06A9\\u0631\\u062F\\u06D5\\u06CC \\u0646\\u0627\\u062F\\u0631\\u0648\\u0633\\u062A"}}};function Ey(){return{localeError:oI()}}var iI=()=>{let e={string:{unit:"znak\\u016F",verb:"m\\xEDt"},file:{unit:"bajt\\u016F",verb:"m\\xEDt"},array:{unit:"prvk\\u016F",verb:"m\\xEDt"},set:{unit:"prvk\\u016F",verb:"m\\xEDt"},map:{unit:"prvk\\u016F",verb:"m\\xEDt"}};function t(r){return e[r]??null}let n={regex:"regul\\xE1rn\\xED v\\xFDraz",email:"e-mailov\\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \\u010Das ve form\\xE1tu ISO",date:"datum ve form\\xE1tu ISO",time:"\\u010Das ve form\\xE1tu ISO",duration:"doba trv\\xE1n\\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64",base64url:"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64url",json_string:"\\u0159et\\u011Bzec ve form\\xE1tu JSON",e164:"\\u010D\\xEDslo E.164",credit_card:"\\u010D\\xEDslo kreditn\\xED karty",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\\u010D\\xEDslo",string:"\\u0159et\\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no instanceof ${r.expected}, obdr\\u017Eeno ${s}`:`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${i}, obdr\\u017Eeno ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ${R(r.values[0])}`:`Neplatn\\xE1 mo\\u017Enost: o\\u010Dek\\xE1v\\xE1na jedna z hodnot ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ${r.origin??"hodnota"} mus\\xED m\\xEDt ${i}${r.maximum.toString()} ${a.unit??"prvk\\u016F"}`:`Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ${r.origin??"hodnota"} mus\\xED b\\xFDt ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ${r.origin??"hodnota"} mus\\xED m\\xEDt ${i}${r.minimum.toString()} ${a.unit??"prvk\\u016F"}`:`Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ${r.origin??"hodnota"} mus\\xED b\\xFDt ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED za\\u010D\\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED kon\\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED odpov\\xEDdat vzoru ${i.pattern}`:`Neplatn\\xFD form\\xE1t ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED b\\xFDt n\\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\\xE1m\\xE9 kl\\xED\\u010De: ${_(r.keys,", ")}`;case"invalid_key":return`Neplatn\\xFD kl\\xED\\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\\xFD vstup";case"invalid_element":return`Neplatn\\xE1 hodnota v ${r.origin}`;default:return"Neplatn\\xFD vstup"}}};function Py(){return{localeError:iI()}}var aI=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\\xE6t",date:"ISO-dato",time:"ISO-klokkesl\\xE6t",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig v\\xE6rdi: forventede ${R(r.values[0])}`:`Ugyldigt valg: forventede en af f\\xF8lgende ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),s=o[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),s=o[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\\xF8gler":"Ukendt n\\xF8gle"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function Oy(){return{localeError:aI()}}var sI=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return r.values.length===1?`Ung\\xFCltige Eingabe: erwartet ${R(r.values[0])}`:`Ung\\xFCltige Option: erwartet eine von ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\\xDF: erwartet, dass ${r.origin??"Wert"} ${i}${r.maximum.toString()} ist`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${i}${r.minimum.toString()} ist`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ung\\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\\xFCltig: ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ung\\xFCltiger Schl\\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\\xFCltige Eingabe";case"invalid_element":return`Ung\\xFCltiger Wert in ${r.origin}`;default:return"Ung\\xFCltige Eingabe"}}};function Cy(){return{localeError:sI()}}var cI=()=>{let e={string:{unit:"\\u03C7\\u03B1\\u03C1\\u03B1\\u03BA\\u03C4\\u03AE\\u03C1\\u03B5\\u03C2",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},file:{unit:"bytes",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},array:{unit:"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},set:{unit:"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"},map:{unit:"\\u03BA\\u03B1\\u03C4\\u03B1\\u03C7\\u03C9\\u03C1\\u03AE\\u03C3\\u03B5\\u03B9\\u03C2",verb:"\\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9"}};function t(r){return e[r]??null}let n={regex:"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2",email:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1 \\u03BA\\u03B1\\u03B9 \\u03CE\\u03C1\\u03B1",date:"ISO \\u03B7\\u03BC\\u03B5\\u03C1\\u03BF\\u03BC\\u03B7\\u03BD\\u03AF\\u03B1",time:"ISO \\u03CE\\u03C1\\u03B1",duration:"ISO \\u03B4\\u03B9\\u03AC\\u03C1\\u03BA\\u03B5\\u03B9\\u03B1",ipv4:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv4",ipv6:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 IPv6",mac:"\\u03B4\\u03B9\\u03B5\\u03CD\\u03B8\\u03C5\\u03BD\\u03C3\\u03B7 MAC",cidrv4:"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv4",cidrv6:"\\u03B5\\u03CD\\u03C1\\u03BF\\u03C2 IPv6",base64:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64",base64url:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC \\u03BA\\u03C9\\u03B4\\u03B9\\u03BA\\u03BF\\u03C0\\u03BF\\u03B9\\u03B7\\u03BC\\u03AD\\u03BD\\u03B7 \\u03C3\\u03B5 base64url",json_string:"\\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC JSON",e164:"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 E.164",credit_card:"\\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2 \\u03C0\\u03B9\\u03C3\\u03C4\\u03C9\\u03C4\\u03B9\\u03BA\\u03AE\\u03C2 \\u03BA\\u03AC\\u03C1\\u03C4\\u03B1\\u03C2",jwt:"JWT",template_literal:"\\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return typeof r.expected=="string"&&/^[A-Z]/.test(r.expected)?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD instanceof ${r.expected}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${s}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${i}, \\u03BB\\u03AE\\u03C6\\u03B8\\u03B7\\u03BA\\u03B5 ${s}`}case"invalid_value":return r.values.length===1?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${R(r.values[0])}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03C0\\u03B9\\u03BB\\u03BF\\u03B3\\u03AE: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD \\u03AD\\u03BD\\u03B1 \\u03B1\\u03C0\\u03CC ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B5\\u03B3\\u03AC\\u03BB\\u03BF: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${r.origin??"\\u03C4\\u03B9\\u03BC\\u03AE"} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${i}${r.maximum.toString()} ${a.unit??"\\u03C3\\u03C4\\u03BF\\u03B9\\u03C7\\u03B5\\u03AF\\u03B1"}`:`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B5\\u03B3\\u03AC\\u03BB\\u03BF: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${r.origin??"\\u03C4\\u03B9\\u03BC\\u03AE"} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${r.origin} \\u03BD\\u03B1 \\u03AD\\u03C7\\u03B5\\u03B9 ${i}${r.minimum.toString()} ${a.unit}`:`\\u03A0\\u03BF\\u03BB\\u03CD \\u03BC\\u03B9\\u03BA\\u03C1\\u03CC: \\u03B1\\u03BD\\u03B1\\u03BC\\u03B5\\u03BD\\u03CC\\u03C4\\u03B1\\u03BD ${r.origin} \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03BE\\u03B5\\u03BA\\u03B9\\u03BD\\u03AC \\u03BC\\u03B5 "${i.prefix}"`:i.format==="ends_with"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B5\\u03BB\\u03B5\\u03B9\\u03CE\\u03BD\\u03B5\\u03B9 \\u03BC\\u03B5 "${i.suffix}"`:i.format==="includes"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C0\\u03B5\\u03C1\\u03B9\\u03AD\\u03C7\\u03B5\\u03B9 "${i.includes}"`:i.format==="regex"?`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C3\\u03C5\\u03BC\\u03B2\\u03BF\\u03BB\\u03BF\\u03C3\\u03B5\\u03B9\\u03C1\\u03AC: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03C4\\u03B1\\u03B9\\u03C1\\u03B9\\u03AC\\u03B6\\u03B5\\u03B9 \\u03BC\\u03B5 \\u03C4\\u03BF \\u03BC\\u03BF\\u03C4\\u03AF\\u03B2\\u03BF ${i.pattern}`:`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF: ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF\\u03C2 \\u03B1\\u03C1\\u03B9\\u03B8\\u03BC\\u03CC\\u03C2: \\u03C0\\u03C1\\u03AD\\u03C0\\u03B5\\u03B9 \\u03BD\\u03B1 \\u03B5\\u03AF\\u03BD\\u03B1\\u03B9 \\u03C0\\u03BF\\u03BB\\u03BB\\u03B1\\u03C0\\u03BB\\u03AC\\u03C3\\u03B9\\u03BF \\u03C4\\u03BF\\u03C5 ${r.divisor}`;case"unrecognized_keys":return`\\u0386\\u03B3\\u03BD\\u03C9\\u03C3\\u03C4${r.keys.length>1?"\\u03B1":"\\u03BF"} \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4${r.keys.length>1?"\\u03B9\\u03AC":"\\u03AF"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03BF \\u03BA\\u03BB\\u03B5\\u03B9\\u03B4\\u03AF \\u03C3\\u03C4\\u03BF ${r.origin}`;case"invalid_union":return"\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2";case"invalid_element":return`\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03C4\\u03B9\\u03BC\\u03AE \\u03C3\\u03C4\\u03BF ${r.origin}`;default:return"\\u039C\\u03B7 \\u03AD\\u03B3\\u03BA\\u03C5\\u03C1\\u03B7 \\u03B5\\u03AF\\u03C3\\u03BF\\u03B4\\u03BF\\u03C2"}}};function Ny(){return{localeError:cI()}}var lI=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};function r(i,a){return i==="number"&&typeof a=="number"&&!Number.isFinite(a)?String(a):o[i]??i}return i=>{switch(i.code){case"invalid_type":{let a=r(i.expected),s=k(i.input),c=r(s,i.input);return`Invalid input: expected ${a}, received ${c}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${R(i.values[0])}`:`Invalid option: expected one of ${_(i.values,"|")}`;case"too_big":{let a=i.exact?"exactly ":i.inclusive?"<=":"<",s=t(i.origin);return s?`Too big: expected ${i.origin??"value"} to have ${a}${i.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${a}${i.maximum.toString()}`}case"too_small":{let a=i.exact?"exactly ":i.inclusive?">=":">",s=t(i.origin);return s?`Too small: expected ${i.origin} to have ${a}${i.minimum.toString()} ${s.unit}`:`Too small: expected ${i.origin} to be ${a}${i.minimum.toString()}`}case"invalid_format":{let a=i;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${n[a.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${_(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(s=>`\'${s}\'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function ac(){return{localeError:lI()}}var uI=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\\u011Dis instanceof ${r.expected}, ricevi\\u011Dis ${s}`:`Nevalida enigo: atendi\\u011Dis ${i}, ricevi\\u011Dis ${s}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\\u011Dis ${R(r.values[0])}`:`Nevalida opcio: atendi\\u011Dis unu el ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\\u011Dis ke ${r.origin??"valoro"} havu ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\\u011Dis ke ${r.origin} havu ${i}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\\u011Dis ke ${r.origin} estu ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${n[i.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \\u015Dlosilo${r.keys.length>1?"j":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Nevalida \\u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function jy(){return{localeError:uI()}}var dI=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"direcci\\xF3n de correo electr\\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\\xF3n ISO",ipv4:"direcci\\xF3n IPv4",ipv6:"direcci\\xF3n IPv6",mac:"direcci\\xF3n MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\\xFAmero E.164",credit_card:"n\\xFAmero de tarjeta de cr\\xE9dito",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\\xFAmero grande",symbol:"s\\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\\xF3n",union:"uni\\xF3n",literal:"literal",promise:"promesa",void:"vac\\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\\xE1lida: se esperaba ${R(r.values[0])}`:`Opci\\xF3n inv\\xE1lida: se esperaba una de ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Demasiado peque\\xF1o: se esperaba que ${s} tuviera ${i}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\\xF1o: se esperaba que ${s} fuera ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cadena inv\\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\\xE1lida: debe coincidir con el patr\\xF3n ${i.pattern}`:`Inv\\xE1lido ${n[i.format]??r.format}`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: debe ser m\\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Llave inv\\xE1lida en ${o[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\\xE1lida";case"invalid_element":return`Valor inv\\xE1lido en ${o[r.origin]??r.origin}`;default:return"Entrada inv\\xE1lida"}}};function Ay(){return{localeError:dI()}}var mI=()=>{let e={string:{unit:"\\u06A9\\u0627\\u0631\\u0627\\u06A9\\u062A\\u0631",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},file:{unit:"\\u0628\\u0627\\u06CC\\u062A",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},array:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},set:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},map:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"}};function t(r){return e[r]??null}let n={regex:"\\u0648\\u0631\\u0648\\u062F\\u06CC",email:"\\u0622\\u062F\\u0631\\u0633 \\u0627\\u06CC\\u0645\\u06CC\\u0644",url:"URL",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0648 \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",date:"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0627\\u06CC\\u0632\\u0648",time:"\\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",duration:"\\u0645\\u062F\\u062A \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",ipv4:"IPv4 \\u0622\\u062F\\u0631\\u0633",ipv6:"IPv6 \\u0622\\u062F\\u0631\\u0633",mac:"MAC \\u0622\\u062F\\u0631\\u0633",cidrv4:"IPv4 \\u062F\\u0627\\u0645\\u0646\\u0647",cidrv6:"IPv6 \\u062F\\u0627\\u0645\\u0646\\u0647",base64:"base64-encoded \\u0631\\u0634\\u062A\\u0647",base64url:"base64url-encoded \\u0631\\u0634\\u062A\\u0647",json_string:"JSON \\u0631\\u0634\\u062A\\u0647",e164:"E.164 \\u0639\\u062F\\u062F",credit_card:"\\u0634\\u0645\\u0627\\u0631\\u0647 \\u06A9\\u0627\\u0631\\u062A \\u0627\\u0639\\u062A\\u0628\\u0627\\u0631\\u06CC",jwt:"JWT",template_literal:"\\u0648\\u0631\\u0648\\u062F\\u06CC"},o={nan:"NaN",number:"\\u0639\\u062F\\u062F",array:"\\u0622\\u0631\\u0627\\u06CC\\u0647"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A instanceof ${r.expected} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F\\u060C ${s} \\u062F\\u0631\\u06CC\\u0627\\u0641\\u062A \\u0634\\u062F`:`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ${i} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F\\u060C ${s} \\u062F\\u0631\\u06CC\\u0627\\u0641\\u062A \\u0634\\u062F`}case"invalid_value":return r.values.length===1?`\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ${R(r.values[0])} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F`:`\\u06AF\\u0632\\u06CC\\u0646\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A \\u06CC\\u06A9\\u06CC \\u0627\\u0632 ${_(r.values,"|")} \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ${r.origin??"\\u0645\\u0642\\u062F\\u0627\\u0631"} \\u0628\\u0627\\u06CC\\u062F ${i}${r.maximum.toString()} ${a.unit??"\\u0639\\u0646\\u0635\\u0631"} \\u0628\\u0627\\u0634\\u062F`:`\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ${r.origin??"\\u0645\\u0642\\u062F\\u0627\\u0631"} \\u0628\\u0627\\u06CC\\u062F ${i}${r.maximum.toString()} \\u0628\\u0627\\u0634\\u062F`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ${r.origin} \\u0628\\u0627\\u06CC\\u062F ${i}${r.minimum.toString()} ${a.unit} \\u0628\\u0627\\u0634\\u062F`:`\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ${r.origin} \\u0628\\u0627\\u06CC\\u062F ${i}${r.minimum.toString()} \\u0628\\u0627\\u0634\\u062F`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 "${i.prefix}" \\u0634\\u0631\\u0648\\u0639 \\u0634\\u0648\\u062F`:i.format==="ends_with"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 "${i.suffix}" \\u062A\\u0645\\u0627\\u0645 \\u0634\\u0648\\u062F`:i.format==="includes"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0634\\u0627\\u0645\\u0644 "${i.includes}" \\u0628\\u0627\\u0634\\u062F`:i.format==="regex"?`\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 \\u0627\\u0644\\u06AF\\u0648\\u06CC ${i.pattern} \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F`:`${n[i.format]??r.format} \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631`}case"not_multiple_of":return`\\u0639\\u062F\\u062F \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0645\\u0636\\u0631\\u0628 ${r.divisor} \\u0628\\u0627\\u0634\\u062F`;case"unrecognized_keys":return`\\u06A9\\u0644\\u06CC\\u062F${r.keys.length>1?"\\u0647\\u0627\\u06CC":""} \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633: ${_(r.keys,", ")}`;case"invalid_key":return`\\u06A9\\u0644\\u06CC\\u062F \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633 \\u062F\\u0631 ${r.origin}`;case"invalid_union":return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631";case"invalid_element":return`\\u0645\\u0642\\u062F\\u0627\\u0631 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631 \\u062F\\u0631 ${r.origin}`;default:return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631"}}};function Uy(){return{localeError:mI()}}var pI=()=>{let e={string:{unit:"merkki\\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\\xE4iv\\xE4m\\xE4\\xE4r\\xE4n"}};function t(r){return e[r]??null}let n={regex:"s\\xE4\\xE4nn\\xF6llinen lauseke",email:"s\\xE4hk\\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\\xE4iv\\xE4m\\xE4\\xE4r\\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\\xF6te: t\\xE4ytyy olla ${R(r.values[0])}`:`Virheellinen valinta: t\\xE4ytyy olla yksi seuraavista: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\\xE4ytyy olla ${i}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\\xE4ytyy olla ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\\xE4ytyy olla ${i}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\\xE4ytyy olla ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Virheellinen sy\\xF6te: t\\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\\xF6te: t\\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\\xF6te: t\\xE4ytyy sis\\xE4lt\\xE4\\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\\xF6te: t\\xE4ytyy vastata s\\xE4\\xE4nn\\xF6llist\\xE4 lauseketta ${i.pattern}`:`Virheellinen ${n[i.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"}: ${_(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 Dy(){return{localeError:pI()}}var fI=()=>{let e={string:{unit:"caract\\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\\xE9l\\xE9ments",verb:"avoir"},set:{unit:"\\xE9l\\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"expression r\\xE9guli\\xE8re",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne de caract\\xE8res encod\\xE9e en base64",base64url:"cha\\xEEne de caract\\xE8res encod\\xE9e en base64url",json_string:"cha\\xEEne de caract\\xE8res JSON",e164:"num\\xE9ro au format E.164",credit_card:"num\\xE9ro de carte de cr\\xE9dit",jwt:"JWT",template_literal:"entr\\xE9e"},o={string:"cha\\xEEne de caract\\xE8res",number:"nombre",int:"entier",boolean:"bool\\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\\xE9e invalide : instance de ${r.expected} attendu, ${s} re\\xE7u`:`Entr\\xE9e invalide : ${i} attendu, ${s} re\\xE7u`}case"invalid_value":return r.values.length===1?`Entr\\xE9e invalide : ${R(r.values[0])} attendu`:`Option invalide : une valeur parmi ${_(r.values,"|")} attendue`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${o[r.origin]??"valeur"} doit ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\\xE9l\\xE9ment(s)"}`:`Trop grand : ${o[r.origin]??"valeur"} doit \\xEAtre ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${o[r.origin]??"valeur"} doit ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${o[r.origin]??"valeur"} doit \\xEAtre ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\\xEEne de caract\\xE8res invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\\xEEne de caract\\xE8res invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\\xEEne de caract\\xE8res invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\\xEEne de caract\\xE8res invalide : doit correspondre au motif ${i.pattern}`:`${n[i.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":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\\xE9e invalide"}}};function Ly(){return{localeError:fI()}}var hI=()=>{let e={string:{unit:"caract\\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\\xE9l\\xE9ments",verb:"avoir"},set:{unit:"\\xE9l\\xE9ments",verb:"avoir"},map:{unit:"\\xE9l\\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"entr\\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne encod\\xE9e en base64",base64url:"cha\\xEEne encod\\xE9e en base64url",json_string:"cha\\xEEne JSON",e164:"num\\xE9ro E.164",credit_card:"num\\xE9ro de carte de cr\\xE9dit",jwt:"JWT",template_literal:"entr\\xE9e"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\\xE9e invalide : attendu instanceof ${r.expected}, re\\xE7u ${s}`:`Entr\\xE9e invalide : attendu ${i}, re\\xE7u ${s}`}case"invalid_value":return r.values.length===1?`Entr\\xE9e invalide : attendu ${R(r.values[0])}`:`Option invalide : attendu l\'une des valeurs suivantes ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${i}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${i}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Cha\\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${n[i.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":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\\xE9e invalide"}}};function My(){return{localeError:hI()}}var gI=()=>{let e={string:{unit:"\\u0A85\\u0A95\\u0ACD\\u0AB7\\u0AB0",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},file:{unit:"\\u0AAC\\u0ABE\\u0AAF\\u0A9F",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},array:{unit:"\\u0A86\\u0A87\\u0A9F\\u0AAE",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},set:{unit:"\\u0A86\\u0A87\\u0A9F\\u0AAE",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"},map:{unit:"\\u0A8F\\u0AA8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0AC0",verb:"\\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F"}};function t(r){return e[r]??null}let n={regex:"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F",email:"\\u0A88\\u0AAE\\u0AC7\\u0A87\\u0AB2 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",url:"URL",emoji:"\\u0A87\\u0AAE\\u0ACB\\u0A9C\\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96 \\u0A85\\u0AA8\\u0AC7 \\u0AB8\\u0AAE\\u0AAF",date:"ISO \\u0AA4\\u0ABE\\u0AB0\\u0AC0\\u0A96",time:"ISO \\u0AB8\\u0AAE\\u0AAF",duration:"ISO \\u0A85\\u0AB5\\u0AA7\\u0ABF",ipv4:"IPv4 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",ipv6:"IPv6 \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",mac:"MAC \\u0A8F\\u0AA1\\u0ACD\\u0AB0\\u0AC7\\u0AB8",cidrv4:"IPv4 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0",cidrv6:"IPv6 \\u0AB6\\u0ACD\\u0AB0\\u0AC7\\u0AA3\\u0AC0",base64:"base64-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",base64url:"base64url-\\u0A8F\\u0AA8\\u0ACD\\u0A95\\u0ACB\\u0AA1\\u0AC7\\u0AA1 \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",json_string:"JSON \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97",e164:"E.164 \\u0AA8\\u0A82\\u0AAC\\u0AB0",credit_card:"\\u0A95\\u0ACD\\u0AB0\\u0AC7\\u0AA1\\u0ABF\\u0A9F \\u0A95\\u0ABE\\u0AB0\\u0ACD\\u0AA1 \\u0AA8\\u0A82\\u0AAC\\u0AB0",jwt:"JWT",template_literal:"\\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${i}, \\u0AAA\\u0ACD\\u0AB0\\u0ABE\\u0AAA\\u0ACD\\u0AA4 ${s}`}case"invalid_value":return r.values.length===1?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F: \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${R(r.values[0])}`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB5\\u0ABF\\u0A95\\u0AB2\\u0ACD\\u0AAA: ${_(r.values," | ")} \\u0AAE\\u0ABE\\u0AA7\\u0ACD\\u0AAF\\u0AAE\\u0AA5\\u0AC0 \\u0A8F\\u0A95 \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0A96\\u0AC2\\u0AAC \\u0AAE\\u0ACB\\u0A9F\\u0AC1\\u0A82: ${r.origin??"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF"} ${i}${r.maximum.toString()} ${a.unit??"\\u0A8F\\u0AB2\\u0ABF\\u0AAE\\u0AC7\\u0AA8\\u0ACD\\u0A9F"} \\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A96\\u0AC2\\u0AAC \\u0AAE\\u0ACB\\u0A9F\\u0AC1\\u0A82: ${r.origin??"\\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF"} ${i}${r.maximum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${r.origin} ${i}${r.minimum.toString()} ${a.unit} \\u0AB9\\u0ACB\\u0AB5\\u0ABE \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A96\\u0AC2\\u0AAC \\u0AA8\\u0ABE\\u0AA8\\u0AC1\\u0A82: ${r.origin} ${i}${r.minimum.toString()} \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${i.prefix}" \\u0AA5\\u0AC0 \\u0AB6\\u0AB0\\u0AC2 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:i.format==="ends_with"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${i.suffix}" \\u0AAA\\u0AB0 \\u0AB8\\u0AAE\\u0ABE\\u0AAA\\u0ACD\\u0AA4 \\u0AA5\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:i.format==="includes"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: "${i.includes}" \\u0AB6\\u0ABE\\u0AAE\\u0AC7\\u0AB2 \\u0AB9\\u0ACB\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:i.format==="regex"?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AB8\\u0ACD\\u0A9F\\u0ACD\\u0AB0\\u0ABF\\u0A82\\u0A97: \\u0AAA\\u0AC7\\u0A9F\\u0AB0\\u0ACD\\u0AA8 ${i.pattern} \\u0AB8\\u0ABE\\u0AA5\\u0AC7 \\u0AAE\\u0AC7\\u0AB3 \\u0A96\\u0ABE\\u0AB5\\u0AC1\\u0A82 \\u0A9C\\u0ACB\\u0A88\\u0A8F`:`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AA8\\u0A82\\u0AAC\\u0AB0: ${r.divisor} \\u0AA8\\u0ACB \\u0A97\\u0AC1\\u0AA3\\u0ABE\\u0A82\\u0A95 \\u0AB9\\u0ACB\\u0AB5\\u0ACB \\u0A9C\\u0ACB\\u0A88\\u0A8F`;case"unrecognized_keys":return`\\u0A93\\u0AB3\\u0A96\\u0AC0 \\u0AB6\\u0A95\\u0ABE\\u0AA4\\u0ABE \\u0AA8\\u0AB9\\u0AC0\\u0A82 \\u0AA4\\u0AC7 \\u0A95\\u0AC0${r.keys.length>1?"\\u0A93":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \\u0AAE\\u0ABE\\u0A82 \\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A95\\u0AC0`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AA1\\u0ABF\\u0AB8\\u0ACD\\u0A95\\u0ACD\\u0AB0\\u0ABF\\u0AAE\\u0ABF\\u0AA8\\u0AC7\\u0A9F\\u0AB0 \\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF. \\u0A85\\u0AAA\\u0AC7\\u0A95\\u0ACD\\u0AB7\\u0ABF\\u0AA4 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F";case"invalid_element":return`${r.origin} \\u0AAE\\u0ABE\\u0A82 \\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0AAE\\u0AC2\\u0AB2\\u0ACD\\u0AAF`;default:return"\\u0A85\\u0AAE\\u0ABE\\u0AA8\\u0ACD\\u0AAF \\u0A87\\u0AA8\\u0AAA\\u0AC1\\u0A9F"}}};function qy(){return{localeError:gI()}}var vI=()=>{let e={string:{label:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA",gender:"f"},number:{label:"\\u05DE\\u05E1\\u05E4\\u05E8",gender:"m"},boolean:{label:"\\u05E2\\u05E8\\u05DA \\u05D1\\u05D5\\u05DC\\u05D9\\u05D0\\u05E0\\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA",gender:"m"},array:{label:"\\u05DE\\u05E2\\u05E8\\u05DA",gender:"m"},object:{label:"\\u05D0\\u05D5\\u05D1\\u05D9\\u05D9\\u05E7\\u05D8",gender:"m"},null:{label:"\\u05E2\\u05E8\\u05DA \\u05E8\\u05D9\\u05E7 (null)",gender:"m"},undefined:{label:"\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05DE\\u05D5\\u05D2\\u05D3\\u05E8 (undefined)",gender:"m"},symbol:{label:"\\u05E1\\u05D9\\u05DE\\u05D1\\u05D5\\u05DC (Symbol)",gender:"m"},function:{label:"\\u05E4\\u05D5\\u05E0\\u05E7\\u05E6\\u05D9\\u05D4",gender:"f"},map:{label:"\\u05DE\\u05E4\\u05D4 (Map)",gender:"f"},set:{label:"\\u05E7\\u05D1\\u05D5\\u05E6\\u05D4 (Set)",gender:"f"},file:{label:"\\u05E7\\u05D5\\u05D1\\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05D9\\u05D3\\u05D5\\u05E2",gender:"m"},value:{label:"\\u05E2\\u05E8\\u05DA",gender:"m"}},t={string:{unit:"\\u05EA\\u05D5\\u05D5\\u05D9\\u05DD",shortLabel:"\\u05E7\\u05E6\\u05E8",longLabel:"\\u05D0\\u05E8\\u05D5\\u05DA"},file:{unit:"\\u05D1\\u05D9\\u05D9\\u05D8\\u05D9\\u05DD",shortLabel:"\\u05E7\\u05D8\\u05DF",longLabel:"\\u05D2\\u05D3\\u05D5\\u05DC"},array:{unit:"\\u05E4\\u05E8\\u05D9\\u05D8\\u05D9\\u05DD",shortLabel:"\\u05E7\\u05D8\\u05DF",longLabel:"\\u05D2\\u05D3\\u05D5\\u05DC"},set:{unit:"\\u05E4\\u05E8\\u05D9\\u05D8\\u05D9\\u05DD",shortLabel:"\\u05E7\\u05D8\\u05DF",longLabel:"\\u05D2\\u05D3\\u05D5\\u05DC"},number:{unit:"",shortLabel:"\\u05E7\\u05D8\\u05DF",longLabel:"\\u05D2\\u05D3\\u05D5\\u05DC"}},n=l=>l?e[l]:void 0,o=l=>{let u=n(l);return u?u.label:l??e.unknown.label},r=l=>`\\u05D4${o(l)}`,i=l=>(n(l)?.gender??"m")==="f"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA":"\\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA",a=l=>l?t[l]??null:null,s={regex:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},email:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05D0\\u05D9\\u05DE\\u05D9\\u05D9\\u05DC",gender:"f"},url:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05E8\\u05E9\\u05EA",gender:"f"},emoji:{label:"\\u05D0\\u05D9\\u05DE\\u05D5\\u05D2\'\\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA \\u05D5\\u05D6\\u05DE\\u05DF ISO",gender:"m"},date:{label:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA ISO",gender:"m"},time:{label:"\\u05D6\\u05DE\\u05DF ISO",gender:"m"},duration:{label:"\\u05DE\\u05E9\\u05DA \\u05D6\\u05DE\\u05DF ISO",gender:"m"},ipv4:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv4",gender:"f"},ipv6:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv6",gender:"f"},mac:{label:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA MAC",gender:"f"},cidrv4:{label:"\\u05D8\\u05D5\\u05D5\\u05D7 IPv4",gender:"m"},cidrv6:{label:"\\u05D8\\u05D5\\u05D5\\u05D7 IPv6",gender:"m"},base64:{label:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64",gender:"f"},base64url:{label:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64 \\u05DC\\u05DB\\u05EA\\u05D5\\u05D1\\u05D5\\u05EA \\u05E8\\u05E9\\u05EA",gender:"f"},json_string:{label:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA JSON",gender:"f"},e164:{label:"\\u05DE\\u05E1\\u05E4\\u05E8 E.164",gender:"m"},credit_card:{label:"\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DB\\u05E8\\u05D8\\u05D9\\u05E1 \\u05D0\\u05E9\\u05E8\\u05D0\\u05D9",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},ends_with:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},includes:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},lowercase:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},starts_with:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"},uppercase:{label:"\\u05E7\\u05DC\\u05D8",gender:"m"}},c={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let u=l.expected,m=c[u??""]??o(u),p=k(l.input),f=c[p]??e[p]?.label??p;return/^[A-Z]/.test(l.expected)?`\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA instanceof ${l.expected}, \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ${f}`:`\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${m}, \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ${f}`}case"invalid_value":{if(l.values.length===1)return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05E2\\u05E8\\u05DA \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${R(l.values[0])}`;let u=l.values.map(f=>R(f));if(l.values.length===2)return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05D0\\u05E4\\u05E9\\u05E8\\u05D5\\u05D9\\u05D5\\u05EA \\u05D4\\u05DE\\u05EA\\u05D0\\u05D9\\u05DE\\u05D5\\u05EA \\u05D4\\u05DF ${u[0]} \\u05D0\\u05D5 ${u[1]}`;let m=u[u.length-1];return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D4\\u05D0\\u05E4\\u05E9\\u05E8\\u05D5\\u05D9\\u05D5\\u05EA \\u05D4\\u05DE\\u05EA\\u05D0\\u05D9\\u05DE\\u05D5\\u05EA \\u05D4\\u05DF ${u.slice(0,-1).join(", ")} \\u05D0\\u05D5 ${m}`}case"too_big":{let u=a(l.origin),m=r(l.origin??"value");if(l.origin==="string")return`${u?.longLabel??"\\u05D0\\u05E8\\u05D5\\u05DA"} \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${l.maximum.toString()} ${u?.unit??""} ${l.inclusive?"\\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA":"\\u05DC\\u05DB\\u05DC \\u05D4\\u05D9\\u05D5\\u05EA\\u05E8"}`.trim();if(l.origin==="number"){let h=l.inclusive?`\\u05E7\\u05D8\\u05DF \\u05D0\\u05D5 \\u05E9\\u05D5\\u05D5\\u05D4 \\u05DC-${l.maximum}`:`\\u05E7\\u05D8\\u05DF \\u05DE-${l.maximum}`;return`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4":"\\u05E6\\u05E8\\u05D9\\u05DA",S=l.inclusive?`${l.maximum} ${u?.unit??""} \\u05D0\\u05D5 \\u05E4\\u05D7\\u05D5\\u05EA`:`\\u05E4\\u05D7\\u05D5\\u05EA \\u05DE-${l.maximum} ${u?.unit??""}`;return`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${S}`.trim()}let p=l.inclusive?"<=":"<",f=i(l.origin??"value");return u?.unit?`${u.longLabel} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\\u05D2\\u05D3\\u05D5\\u05DC"} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.maximum.toString()}`}case"too_small":{let u=a(l.origin),m=r(l.origin??"value");if(l.origin==="string")return`${u?.shortLabel??"\\u05E7\\u05E6\\u05E8"} \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DB\\u05D4 \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${l.minimum.toString()} ${u?.unit??""} ${l.inclusive?"\\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8":"\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA"}`.trim();if(l.origin==="number"){let h=l.inclusive?`\\u05D2\\u05D3\\u05D5\\u05DC \\u05D0\\u05D5 \\u05E9\\u05D5\\u05D5\\u05D4 \\u05DC-${l.minimum}`:`\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE-${l.minimum}`;return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ${h}`}if(l.origin==="array"||l.origin==="set"){let h=l.origin==="set"?"\\u05E6\\u05E8\\u05D9\\u05DB\\u05D4":"\\u05E6\\u05E8\\u05D9\\u05DA";if(l.minimum===1&&l.inclusive){let y=(l.origin==="set","\\u05DC\\u05E4\\u05D7\\u05D5\\u05EA \\u05E4\\u05E8\\u05D9\\u05D8 \\u05D0\\u05D7\\u05D3");return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${y}`}let S=l.inclusive?`${l.minimum} ${u?.unit??""} \\u05D0\\u05D5 \\u05D9\\u05D5\\u05EA\\u05E8`:`\\u05D9\\u05D5\\u05EA\\u05E8 \\u05DE-${l.minimum} ${u?.unit??""}`;return`\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ${m} ${h} \\u05DC\\u05D4\\u05DB\\u05D9\\u05DC ${S}`.trim()}let p=l.inclusive?">=":">",f=i(l.origin??"value");return u?.unit?`${u.shortLabel} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\\u05E7\\u05D8\\u05DF"} \\u05DE\\u05D3\\u05D9: ${m} ${f} ${p}${l.minimum.toString()}`}case"invalid_format":{let u=l;if(u.format==="starts_with")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D7\\u05D9\\u05DC \\u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05E1\\u05EA\\u05D9\\u05D9\\u05DD \\u05D1 "${u.suffix}"`;if(u.format==="includes")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05DB\\u05DC\\u05D5\\u05DC "${u.includes}"`;if(u.format==="regex")return`\\u05D4\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D0\\u05D9\\u05DD \\u05DC\\u05EA\\u05D1\\u05E0\\u05D9\\u05EA ${u.pattern}`;let m=s[u.format],p=m?.label??u.format,h=(m?.gender??"m")==="f"?"\\u05EA\\u05E7\\u05D9\\u05E0\\u05D4":"\\u05EA\\u05E7\\u05D9\\u05DF";return`${p} \\u05DC\\u05D0 ${h}`}case"not_multiple_of":return`\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA \\u05DE\\u05DB\\u05E4\\u05DC\\u05D4 \\u05E9\\u05DC ${l.divisor}`;case"unrecognized_keys":return`\\u05DE\\u05E4\\u05EA\\u05D7${l.keys.length>1?"\\u05D5\\u05EA":""} \\u05DC\\u05D0 \\u05DE\\u05D6\\u05D5\\u05D4${l.keys.length>1?"\\u05D9\\u05DD":"\\u05D4"}: ${_(l.keys,", ")}`;case"invalid_key":return"\\u05E9\\u05D3\\u05D4 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1\\u05D0\\u05D5\\u05D1\\u05D9\\u05D9\\u05E7\\u05D8";case"invalid_union":return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF";case"invalid_element":return`\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1${r(l.origin??"array")}`;default:return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF"}}};function Vy(){return{localeError:vI()}}var _I=()=>{let e={string:{unit:"\\u0905\\u0915\\u094D\\u0937\\u0930",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},file:{unit:"\\u092C\\u093E\\u0907\\u091F\\u094D\\u0938",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},array:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},set:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"},map:{unit:"\\u092A\\u094D\\u0930\\u0935\\u093F\\u0937\\u094D\\u091F\\u093F\\u092F\\u093E\\u0901",verb:"\\u0930\\u0916\\u0928\\u0947 \\u0915\\u0947 \\u0932\\u093F\\u090F"}};function t(r){return e[r]??null}let n={regex:"\\u0907\\u0928\\u092A\\u0941\\u091F",email:"\\u0908\\u092E\\u0947\\u0932 \\u092A\\u0924\\u093E",url:"URL",emoji:"\\u0907\\u092E\\u094B\\u091C\\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0924\\u093F\\u0925\\u093F \\u0914\\u0930 \\u0938\\u092E\\u092F",date:"ISO \\u0924\\u093F\\u0925\\u093F",time:"ISO \\u0938\\u092E\\u092F",duration:"ISO \\u0905\\u0935\\u0927\\u093F",ipv4:"IPv4 \\u092A\\u0924\\u093E",ipv6:"IPv6 \\u092A\\u0924\\u093E",mac:"MAC \\u092A\\u0924\\u093E",cidrv4:"IPv4 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940",cidrv6:"IPv6 \\u0936\\u094D\\u0930\\u0947\\u0923\\u0940",base64:"Base64-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",base64url:"Base64URL-\\u090F\\u0928\\u094D\\u0915\\u094B\\u0921\\u0947\\u0921 \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",json_string:"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917",e164:"E.164 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E",credit_card:"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E",jwt:"JWT",template_literal:"\\u0907\\u0928\\u092A\\u0941\\u091F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${i}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${s}`}case"invalid_value":return r.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${R(r.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u094B\\u0902 \\u092E\\u0947\\u0902 \\u0938\\u0947 \\u090F\\u0915 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${r.origin??"\\u092E\\u093E\\u0928"} \\u092E\\u0947\\u0902 ${i}${r.maximum} ${a.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u092C\\u0921\\u093C\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${r.origin??"\\u092E\\u093E\\u0928"} ${i}${r.maximum} \\u0939\\u094B`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${r.origin} \\u092E\\u0947\\u0902 ${i}${r.minimum} ${a.unit} \\u0939\\u094B\\u0902`:`\\u092C\\u0939\\u0941\\u0924 \\u091B\\u094B\\u091F\\u093E: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u0925\\u093E \\u0915\\u093F ${r.origin} ${i}${r.minimum} \\u0939\\u094B`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: "${i.prefix}" \\u0938\\u0947 \\u0936\\u0941\\u0930\\u0942 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:i.format==="ends_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: "${i.suffix}" \\u092A\\u0930 \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:i.format==="includes"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u0907\\u0938\\u092E\\u0947\\u0902 "${i.includes}" \\u0936\\u093E\\u092E\\u093F\\u0932 \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:i.format==="regex"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0902\\u0917: \\u092A\\u0948\\u091F\\u0930\\u094D\\u0928 ${i.pattern} \\u0938\\u0947 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: \\u092F\\u0939 ${r.divisor} \\u0915\\u093E \\u0917\\u0941\\u0923\\u091C \\u0939\\u094B\\u0928\\u093E \\u091A\\u093E\\u0939\\u093F\\u090F`;case"unrecognized_keys":return`\\u0905\\u092A\\u0930\\u093F\\u091A\\u093F\\u0924 \\u0915\\u0941\\u0902\\u091C\\u0940${r.keys.length>1?"\\u092F\\u093E\\u0901":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u0902\\u091C\\u0940: ${r.origin} \\u092E\\u0947\\u0902`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0921\\u093F\\u0938\\u094D\\u0915\\u094D\\u0930\\u093F\\u092E\\u093F\\u0928\\u0947\\u091F\\u0930 \\u092E\\u093E\\u0928: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F";case"invalid_element":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u092E\\u093E\\u0928: ${r.origin} \\u092E\\u0947\\u0902`;default:return"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F"}}};function Zy(){return{localeError:_I()}}var yI=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(r){return e[r]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neispravan unos: o\\u010Dekuje se instanceof ${r.expected}, a primljeno je ${s}`:`Neispravan unos: o\\u010Dekuje se ${i}, a primljeno je ${s}`}case"invalid_value":return r.values.length===1?`Neispravna vrijednost: o\\u010Dekivano ${R(r.values[0])}`:`Neispravna opcija: o\\u010Dekivano jedno od ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Preveliko: o\\u010Dekivano da ${s??"vrijednost"} ima ${i}${r.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\\u010Dekivano da ${s??"vrijednost"} bude ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),s=o[r.origin]??r.origin;return a?`Premalo: o\\u010Dekivano da ${s} ima ${i}${r.minimum.toString()} ${a.unit}`:`Premalo: o\\u010Dekivano da ${s} bude ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neispravan tekst: mora zapo\\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${n[i.format]??r.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\\u0161ekratnik od ${r.divisor}`;case"unrecognized_keys":return`Neprepoznat${r.keys.length>1?"i klju\\u010Devi":" klju\\u010D"}: ${_(r.keys,", ")}`;case"invalid_key":return`Neispravan klju\\u010D u ${o[r.origin]??r.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[r.origin]??r.origin}`;default:return"Neispravan unos"}}};function Fy(){return{localeError:yI()}}var SI=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n={regex:"bemenet",email:"email c\\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\\u0151b\\xE9lyeg",date:"ISO d\\xE1tum",time:"ISO id\\u0151",duration:"ISO id\\u0151intervallum",ipv4:"IPv4 c\\xEDm",ipv6:"IPv6 c\\xEDm",mac:"MAC c\\xEDm",cidrv4:"IPv4 tartom\\xE1ny",cidrv6:"IPv6 tartom\\xE1ny",base64:"base64-k\\xF3dolt string",base64url:"base64url-k\\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\\xE1m",credit_card:"hitelk\\xE1rtyasz\\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\\xE1m",array:"t\\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k instanceof ${r.expected}, a kapott \\xE9rt\\xE9k ${s}`:`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${i}, a kapott \\xE9rt\\xE9k ${s}`}case"invalid_value":return r.values.length===1?`\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ${R(r.values[0])}`:`\\xC9rv\\xE9nytelen opci\\xF3: valamelyik \\xE9rt\\xE9k v\\xE1rt ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\\xFAl nagy: ${r.origin??"\\xE9rt\\xE9k"} m\\xE9rete t\\xFAl nagy ${i}${r.maximum.toString()} ${a.unit??"elem"}`:`T\\xFAl nagy: a bemeneti \\xE9rt\\xE9k ${r.origin??"\\xE9rt\\xE9k"} t\\xFAl nagy: ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ${r.origin} m\\xE9rete t\\xFAl kicsi ${i}${r.minimum.toString()} ${a.unit}`:`T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ${r.origin} t\\xFAl kicsi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\xC9rv\\xE9nytelen string: "${i.prefix}" \\xE9rt\\xE9kkel kell kezd\\u0151dnie`:i.format==="ends_with"?`\\xC9rv\\xE9nytelen string: "${i.suffix}" \\xE9rt\\xE9kkel kell v\\xE9gz\\u0151dnie`:i.format==="includes"?`\\xC9rv\\xE9nytelen string: "${i.includes}" \\xE9rt\\xE9ket kell tartalmaznia`:i.format==="regex"?`\\xC9rv\\xE9nytelen string: ${i.pattern} mint\\xE1nak kell megfelelnie`:`\\xC9rv\\xE9nytelen ${n[i.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":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\xC9rv\\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\\xC9rv\\xE9nytelen bemenet";case"invalid_element":return`\\xC9rv\\xE9nytelen \\xE9rt\\xE9k: ${r.origin}`;default:return"\\xC9rv\\xE9nytelen bemenet"}}};function Ky(){return{localeError:SI()}}function Jy(e,t,n){return Math.abs(e)===1?t:n}function Wn(e){if(!e)return"";let t=["\\u0561","\\u0565","\\u0568","\\u056B","\\u0578","\\u0578\\u0582","\\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\\u0576":"\\u0568")}var bI=()=>{let e={string:{unit:{one:"\\u0576\\u0577\\u0561\\u0576",many:"\\u0576\\u0577\\u0561\\u0576\\u0576\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"},file:{unit:{one:"\\u0562\\u0561\\u0575\\u0569",many:"\\u0562\\u0561\\u0575\\u0569\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"},array:{unit:{one:"\\u057F\\u0561\\u0580\\u0580",many:"\\u057F\\u0561\\u0580\\u0580\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"},set:{unit:{one:"\\u057F\\u0561\\u0580\\u0580",many:"\\u057F\\u0561\\u0580\\u0580\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"},map:{unit:{one:"\\u057F\\u0561\\u0580\\u0580",many:"\\u057F\\u0561\\u0580\\u0580\\u0565\\u0580"},verb:"\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561\\u056C"}};function t(r){return e[r]??null}let n={regex:"\\u0574\\u0578\\u0582\\u057F\\u0584",email:"\\u0567\\u056C. \\u0570\\u0561\\u057D\\u0581\\u0565",url:"URL",emoji:"\\u0567\\u0574\\u0578\\u057B\\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0561\\u0574\\u057D\\u0561\\u0569\\u056B\\u057E \\u0587 \\u056A\\u0561\\u0574",date:"ISO \\u0561\\u0574\\u057D\\u0561\\u0569\\u056B\\u057E",time:"ISO \\u056A\\u0561\\u0574",duration:"ISO \\u057F\\u0587\\u0578\\u0572\\u0578\\u0582\\u0569\\u0575\\u0578\\u0582\\u0576",ipv4:"IPv4 \\u0570\\u0561\\u057D\\u0581\\u0565",ipv6:"IPv6 \\u0570\\u0561\\u057D\\u0581\\u0565",mac:"MAC \\u0570\\u0561\\u057D\\u0581\\u0565",cidrv4:"IPv4 \\u0574\\u056B\\u057B\\u0561\\u056F\\u0561\\u0575\\u0584",cidrv6:"IPv6 \\u0574\\u056B\\u057B\\u0561\\u056F\\u0561\\u0575\\u0584",base64:"base64 \\u0571\\u0587\\u0561\\u0579\\u0561\\u0583\\u0578\\u057E \\u057F\\u0578\\u0572",base64url:"base64url \\u0571\\u0587\\u0561\\u0579\\u0561\\u0583\\u0578\\u057E \\u057F\\u0578\\u0572",json_string:"JSON \\u057F\\u0578\\u0572",e164:"E.164 \\u0570\\u0561\\u0574\\u0561\\u0580",credit_card:"\\u056F\\u0580\\u0565\\u0564\\u056B\\u057F \\u0584\\u0561\\u0580\\u057F\\u056B \\u0570\\u0561\\u0574\\u0561\\u0580",jwt:"JWT",template_literal:"\\u0574\\u0578\\u0582\\u057F\\u0584"},o={nan:"NaN",number:"\\u0569\\u056B\\u057E",array:"\\u0566\\u0561\\u0576\\u0563\\u057E\\u0561\\u056E"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 instanceof ${r.expected}, \\u057D\\u057F\\u0561\\u0581\\u057E\\u0565\\u056C \\u0567 ${s}`:`\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 ${i}, \\u057D\\u057F\\u0561\\u0581\\u057E\\u0565\\u056C \\u0567 ${s}`}case"invalid_value":return r.values.length===1?`\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 ${R(r.values[1])}`:`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0561\\u0580\\u0562\\u0565\\u0580\\u0561\\u056F\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567\\u0580 \\u0570\\u0565\\u057F\\u0587\\u0575\\u0561\\u056C\\u0576\\u0565\\u0580\\u056B\\u0581 \\u0574\\u0565\\u056F\\u0568\\u055D ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=Jy(s,a.unit.one,a.unit.many);return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0574\\u0565\\u056E \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${Wn(r.origin??"\\u0561\\u0580\\u056A\\u0565\\u0584")} \\u056F\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561 ${i}${r.maximum.toString()} ${c}`}return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0574\\u0565\\u056E \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${Wn(r.origin??"\\u0561\\u0580\\u056A\\u0565\\u0584")} \\u056C\\u056B\\u0576\\u056B ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=Jy(s,a.unit.one,a.unit.many);return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0583\\u0578\\u0584\\u0580 \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${Wn(r.origin)} \\u056F\\u0578\\u0582\\u0576\\u0565\\u0576\\u0561 ${i}${r.minimum.toString()} ${c}`}return`\\u0549\\u0561\\u0583\\u0561\\u0566\\u0561\\u0576\\u0581 \\u0583\\u0578\\u0584\\u0580 \\u0561\\u0580\\u056A\\u0565\\u0584\\u2024 \\u057D\\u057A\\u0561\\u057D\\u057E\\u0578\\u0582\\u0574 \\u0567, \\u0578\\u0580 ${Wn(r.origin)} \\u056C\\u056B\\u0576\\u056B ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u057D\\u056F\\u057D\\u057E\\u056B "${i.prefix}"-\\u0578\\u057E`:i.format==="ends_with"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u0561\\u057E\\u0561\\u0580\\u057F\\u057E\\u056B "${i.suffix}"-\\u0578\\u057E`:i.format==="includes"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u057A\\u0561\\u0580\\u0578\\u0582\\u0576\\u0561\\u056F\\u056B "${i.includes}"`:i.format==="regex"?`\\u054D\\u056D\\u0561\\u056C \\u057F\\u0578\\u0572\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u0570\\u0561\\u0574\\u0561\\u057A\\u0561\\u057F\\u0561\\u057D\\u056D\\u0561\\u0576\\u056B ${i.pattern} \\u0571\\u0587\\u0561\\u0579\\u0561\\u0583\\u056B\\u0576`:`\\u054D\\u056D\\u0561\\u056C ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u054D\\u056D\\u0561\\u056C \\u0569\\u056B\\u057E\\u2024 \\u057A\\u0565\\u057F\\u0584 \\u0567 \\u0562\\u0561\\u0566\\u0574\\u0561\\u057A\\u0561\\u057F\\u056B\\u056F \\u056C\\u056B\\u0576\\u056B ${r.divisor}-\\u056B`;case"unrecognized_keys":return`\\u0549\\u0573\\u0561\\u0576\\u0561\\u0579\\u057E\\u0561\\u056E \\u0562\\u0561\\u0576\\u0561\\u056C\\u056B${r.keys.length>1?"\\u0576\\u0565\\u0580":""}. ${_(r.keys,", ")}`;case"invalid_key":return`\\u054D\\u056D\\u0561\\u056C \\u0562\\u0561\\u0576\\u0561\\u056C\\u056B ${Wn(r.origin)}-\\u0578\\u0582\\u0574`;case"invalid_union":return"\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574";case"invalid_element":return`\\u054D\\u056D\\u0561\\u056C \\u0561\\u0580\\u056A\\u0565\\u0584 ${Wn(r.origin)}-\\u0578\\u0582\\u0574`;default:return"\\u054D\\u056D\\u0561\\u056C \\u0574\\u0578\\u0582\\u057F\\u0584\\u0561\\u0563\\u0580\\u0578\\u0582\\u0574"}}};function By(){return{localeError:bI()}}var $I=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${R(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${n[i.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":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function Hy(){return{localeError:$I()}}var zI=()=>{let e={string:{unit:"stafi",verb:"a\\xF0 hafa"},file:{unit:"b\\xE6ti",verb:"a\\xF0 hafa"},array:{unit:"hluti",verb:"a\\xF0 hafa"},set:{unit:"hluti",verb:"a\\xF0 hafa"},map:{unit:"hluti",verb:"a\\xF0 hafa"}};function t(r){return e[r]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\\xF3\\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\\xEDmi",date:"ISO dagsetning",time:"ISO t\\xEDmi",duration:"ISO t\\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\\xF6lugildi",credit_card:"kreditkortan\\xFAmer",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${s} \\xFEar sem \\xE1 a\\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \\xDE\\xFA sl\\xF3st inn ${s} \\xFEar sem \\xE1 a\\xF0 vera ${i}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\\xE1\\xF0 fyrir ${R(r.values[0])}`:`\\xD3gilt val: m\\xE1 vera eitt af eftirfarandi ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ${r.origin??"gildi"} hafi ${i}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ${r.origin??"gildi"} s\\xE9 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ${r.origin} hafi ${i}${r.minimum.toString()} ${a.unit}`:`Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ${r.origin} s\\xE9 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 byrja \\xE1 "${i.prefix}"`:i.format==="ends_with"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 enda \\xE1 "${i.suffix}"`:i.format==="includes"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\\xD3gildur strengur: ver\\xF0ur a\\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \\xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \\xED ${r.origin}`;default:return"Rangt gildi"}}};function Yy(){return{localeError:zI()}}var RI=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${R(r.values[0])}`:`Opzione non valida: atteso uno tra ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${i}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${i}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function Gy(){return{localeError:RI()}}var kI=()=>{let e={string:{unit:"\\u6587\\u5B57",verb:"\\u3067\\u3042\\u308B"},file:{unit:"\\u30D0\\u30A4\\u30C8",verb:"\\u3067\\u3042\\u308B"},array:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"},set:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"},map:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"}};function t(r){return e[r]??null}let n={regex:"\\u5165\\u529B\\u5024",email:"\\u30E1\\u30FC\\u30EB\\u30A2\\u30C9\\u30EC\\u30B9",url:"URL",emoji:"\\u7D75\\u6587\\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\\u65E5\\u6642",date:"ISO\\u65E5\\u4ED8",time:"ISO\\u6642\\u523B",duration:"ISO\\u671F\\u9593",ipv4:"IPv4\\u30A2\\u30C9\\u30EC\\u30B9",ipv6:"IPv6\\u30A2\\u30C9\\u30EC\\u30B9",mac:"MAC\\u30A2\\u30C9\\u30EC\\u30B9",cidrv4:"IPv4\\u7BC4\\u56F2",cidrv6:"IPv6\\u7BC4\\u56F2",base64:"base64\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217",base64url:"base64url\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217",json_string:"JSON\\u6587\\u5B57\\u5217",e164:"E.164\\u756A\\u53F7",credit_card:"\\u30AF\\u30EC\\u30B8\\u30C3\\u30C8\\u30AB\\u30FC\\u30C9\\u756A\\u53F7",jwt:"JWT",template_literal:"\\u5165\\u529B\\u5024"},o={nan:"NaN",number:"\\u6570\\u5024",array:"\\u914D\\u5217"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u7121\\u52B9\\u306A\\u5165\\u529B: instanceof ${r.expected}\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F\\u304C\\u3001${s}\\u304C\\u5165\\u529B\\u3055\\u308C\\u307E\\u3057\\u305F`:`\\u7121\\u52B9\\u306A\\u5165\\u529B: ${i}\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F\\u304C\\u3001${s}\\u304C\\u5165\\u529B\\u3055\\u308C\\u307E\\u3057\\u305F`}case"invalid_value":return r.values.length===1?`\\u7121\\u52B9\\u306A\\u5165\\u529B: ${R(r.values[0])}\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F`:`\\u7121\\u52B9\\u306A\\u9078\\u629E: ${_(r.values,"\\u3001")}\\u306E\\u3044\\u305A\\u308C\\u304B\\u3067\\u3042\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`;case"too_big":{let i=r.inclusive?"\\u4EE5\\u4E0B\\u3067\\u3042\\u308B":"\\u3088\\u308A\\u5C0F\\u3055\\u3044",a=t(r.origin);return a?`\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ${r.origin??"\\u5024"}\\u306F${r.maximum.toString()}${a.unit??"\\u8981\\u7D20"}${i}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:`\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ${r.origin??"\\u5024"}\\u306F${r.maximum.toString()}${i}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`}case"too_small":{let i=r.inclusive?"\\u4EE5\\u4E0A\\u3067\\u3042\\u308B":"\\u3088\\u308A\\u5927\\u304D\\u3044",a=t(r.origin);return a?`\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ${r.origin}\\u306F${r.minimum.toString()}${a.unit}${i}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:`\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ${r.origin}\\u306F${r.minimum.toString()}${i}\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "${i.prefix}"\\u3067\\u59CB\\u307E\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:i.format==="ends_with"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "${i.suffix}"\\u3067\\u7D42\\u308F\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:i.format==="includes"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "${i.includes}"\\u3092\\u542B\\u3080\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:i.format==="regex"?`\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: \\u30D1\\u30BF\\u30FC\\u30F3${i.pattern}\\u306B\\u4E00\\u81F4\\u3059\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`:`\\u7121\\u52B9\\u306A${n[i.format]??r.format}`}case"not_multiple_of":return`\\u7121\\u52B9\\u306A\\u6570\\u5024: ${r.divisor}\\u306E\\u500D\\u6570\\u3067\\u3042\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059`;case"unrecognized_keys":return`\\u8A8D\\u8B58\\u3055\\u308C\\u3066\\u3044\\u306A\\u3044\\u30AD\\u30FC${r.keys.length>1?"\\u7FA4":""}: ${_(r.keys,"\\u3001")}`;case"invalid_key":return`${r.origin}\\u5185\\u306E\\u7121\\u52B9\\u306A\\u30AD\\u30FC`;case"invalid_union":return"\\u7121\\u52B9\\u306A\\u5165\\u529B";case"invalid_element":return`${r.origin}\\u5185\\u306E\\u7121\\u52B9\\u306A\\u5024`;default:return"\\u7121\\u52B9\\u306A\\u5165\\u529B"}}};function Wy(){return{localeError:kI()}}var wI=()=>{let e={string:{unit:"\\u10E1\\u10D8\\u10DB\\u10D1\\u10DD\\u10DA\\u10DD",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},file:{unit:"\\u10D1\\u10D0\\u10D8\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},array:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},set:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},map:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"}};function t(r){return e[r]??null}let n={regex:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0",email:"\\u10D4\\u10DA-\\u10E4\\u10DD\\u10E1\\u10E2\\u10D8\\u10E1 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",url:"URL",emoji:"\\u10D4\\u10DB\\u10DD\\u10EF\\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8-\\u10D3\\u10E0\\u10DD",date:"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8",time:"\\u10D3\\u10E0\\u10DD",duration:"\\u10EE\\u10D0\\u10DC\\u10D2\\u10E0\\u10EB\\u10DA\\u10D8\\u10D5\\u10DD\\u10D1\\u10D0",ipv4:"IPv4 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",ipv6:"IPv6 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",mac:"MAC \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",cidrv4:"IPv4 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8",cidrv6:"IPv6 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8",base64:"base64-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8",base64url:"base64url-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8",json_string:"JSON \\u10D5\\u10D4\\u10DA\\u10D8",e164:"E.164 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",credit_card:"\\u10E1\\u10D0\\u10D9\\u10E0\\u10D4\\u10D3\\u10D8\\u10E2\\u10DD \\u10D1\\u10D0\\u10E0\\u10D0\\u10D7\\u10D8\\u10E1 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",jwt:"JWT",template_literal:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"},o={nan:"NaN",number:"\\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8",string:"\\u10D5\\u10D4\\u10DA\\u10D8",boolean:"\\u10D1\\u10E3\\u10DA\\u10D4\\u10D0\\u10DC\\u10D8",function:"\\u10E4\\u10E3\\u10DC\\u10E5\\u10EA\\u10D8\\u10D0",array:"\\u10DB\\u10D0\\u10E1\\u10D8\\u10D5\\u10D8"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 instanceof ${r.expected}, \\u10DB\\u10D8\\u10E6\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 ${s}`:`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${i}, \\u10DB\\u10D8\\u10E6\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 ${s}`}case"invalid_value":return r.values.length===1?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${R(r.values[0])}`:`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D0\\u10E0\\u10D8\\u10D0\\u10DC\\u10E2\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8\\u10D0 \\u10D4\\u10E0\\u10D7-\\u10D4\\u10E0\\u10D7\\u10D8 ${_(r.values,"|")}-\\u10D3\\u10D0\\u10DC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${r.origin??"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit}`:`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${r.origin??"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0"} \\u10D8\\u10E7\\u10DD\\u10E1 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10DE\\u10D0\\u10E2\\u10D0\\u10E0\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10DE\\u10D0\\u10E2\\u10D0\\u10E0\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ${r.origin} \\u10D8\\u10E7\\u10DD\\u10E1 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10D8\\u10EC\\u10E7\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 "${i.prefix}"-\\u10D8\\u10D7`:i.format==="ends_with"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10DB\\u10D7\\u10D0\\u10D5\\u10E0\\u10D3\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 "${i.suffix}"-\\u10D8\\u10D7`:i.format==="includes"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1 "${i.includes}"-\\u10E1`:i.format==="regex"?`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D4\\u10DA\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D4\\u10E1\\u10D0\\u10D1\\u10D0\\u10DB\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 \\u10E8\\u10D0\\u10D1\\u10DA\\u10DD\\u10DC\\u10E1 ${i.pattern}`:`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10D8\\u10E7\\u10DD\\u10E1 ${r.divisor}-\\u10D8\\u10E1 \\u10EF\\u10D4\\u10E0\\u10D0\\u10D3\\u10D8`;case"unrecognized_keys":return`\\u10E3\\u10EA\\u10DC\\u10DD\\u10D1\\u10D8 \\u10D2\\u10D0\\u10E1\\u10D0\\u10E6\\u10D4\\u10D1${r.keys.length>1?"\\u10D4\\u10D1\\u10D8":"\\u10D8"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D2\\u10D0\\u10E1\\u10D0\\u10E6\\u10D4\\u10D1\\u10D8 ${r.origin}-\\u10E8\\u10D8`;case"invalid_union":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0";case"invalid_element":return`\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0 ${r.origin}-\\u10E8\\u10D8`;default:return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"}}};function Xy(){return{localeError:wI()}}var II=()=>{let e={string:{unit:"\\u178F\\u17BD\\u17A2\\u1780\\u17D2\\u179F\\u179A",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},file:{unit:"\\u1794\\u17C3",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},array:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},set:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},map:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"}};function t(r){return e[r]??null}let n={regex:"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B",email:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793\\u17A2\\u17CA\\u17B8\\u1798\\u17C2\\u179B",url:"URL",emoji:"\\u179F\\u1789\\u17D2\\u1789\\u17B6\\u17A2\\u17B6\\u179A\\u1798\\u17D2\\u1798\\u178E\\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 \\u1793\\u17B7\\u1784\\u1798\\u17C9\\u17C4\\u1784 ISO",date:"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 ISO",time:"\\u1798\\u17C9\\u17C4\\u1784 ISO",duration:"\\u179A\\u1799\\u17C8\\u1796\\u17C1\\u179B ISO",ipv4:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4",ipv6:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6",mac:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 MAC",cidrv4:"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4",cidrv6:"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6",base64:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64",base64url:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64url",json_string:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A JSON",e164:"\\u179B\\u17C1\\u1781 E.164",credit_card:"\\u179B\\u17C1\\u1781\\u1794\\u17D0\\u178E\\u17D2\\u178E\\u17A5\\u178E\\u1791\\u17B6\\u1793",jwt:"JWT",template_literal:"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B"},o={nan:"NaN",number:"\\u179B\\u17C1\\u1781",array:"\\u17A2\\u17B6\\u179A\\u17C1 (Array)",null:"\\u1782\\u17D2\\u1798\\u17B6\\u1793\\u178F\\u1798\\u17D2\\u179B\\u17C3 (null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A instanceof ${r.expected} \\u1794\\u17C9\\u17BB\\u1793\\u17D2\\u178F\\u17C2\\u1791\\u1791\\u17BD\\u179B\\u1794\\u17B6\\u1793 ${s}`:`\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${i} \\u1794\\u17C9\\u17BB\\u1793\\u17D2\\u178F\\u17C2\\u1791\\u1791\\u17BD\\u179B\\u1794\\u17B6\\u1793 ${s}`}case"invalid_value":return r.values.length===1?`\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${R(r.values[0])}`:`\\u1787\\u1798\\u17D2\\u179A\\u17BE\\u179F\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1787\\u17B6\\u1798\\u17BD\\u1799\\u1780\\u17D2\\u1793\\u17BB\\u1784\\u1785\\u17C6\\u178E\\u17C4\\u1798 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${r.origin??"\\u178F\\u1798\\u17D2\\u179B\\u17C3"} ${i} ${r.maximum.toString()} ${a.unit??"\\u1792\\u17B6\\u178F\\u17BB"}`:`\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${r.origin??"\\u178F\\u1798\\u17D2\\u179B\\u17C3"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`:`\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1785\\u17B6\\u1794\\u17CB\\u1795\\u17D2\\u178F\\u17BE\\u1798\\u178A\\u17C4\\u1799 "${i.prefix}"`:i.format==="ends_with"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1794\\u1789\\u17D2\\u1785\\u1794\\u17CB\\u178A\\u17C4\\u1799 "${i.suffix}"`:i.format==="includes"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1798\\u17B6\\u1793 "${i.includes}"`:i.format==="regex"?`\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u178F\\u17C2\\u1795\\u17D2\\u1782\\u17BC\\u1795\\u17D2\\u1782\\u1784\\u1793\\u17B9\\u1784\\u1791\\u1798\\u17D2\\u179A\\u1784\\u17CB\\u178A\\u17C2\\u179B\\u1794\\u17B6\\u1793\\u1780\\u17C6\\u178E\\u178F\\u17CB ${i.pattern}`:`\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u179B\\u17C1\\u1781\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u178F\\u17C2\\u1787\\u17B6\\u1796\\u17A0\\u17BB\\u1782\\u17BB\\u178E\\u1793\\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\\u179A\\u1780\\u1783\\u17BE\\u1789\\u179F\\u17C4\\u1798\\u17B7\\u1793\\u179F\\u17D2\\u1782\\u17B6\\u179B\\u17CB\\u17D6 ${_(r.keys,", ")}`;case"invalid_key":return`\\u179F\\u17C4\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1793\\u17C5\\u1780\\u17D2\\u1793\\u17BB\\u1784 ${r.origin}`;case"invalid_union":return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C";case"invalid_element":return`\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1793\\u17C5\\u1780\\u17D2\\u1793\\u17BB\\u1784 ${r.origin}`;default:return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C"}}};function sc(){return{localeError:II()}}function Qy(){return sc()}var TI=()=>{let e={string:{unit:"\\u0C85\\u0C95\\u0CCD\\u0CB7\\u0CB0\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},file:{unit:"\\u0CAC\\u0CC8\\u0C9F\\u0CCD\\u200C\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},array:{unit:"\\u0CB5\\u0CB8\\u0CCD\\u0CA4\\u0CC1\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},set:{unit:"\\u0CB5\\u0CB8\\u0CCD\\u0CA4\\u0CC1\\u0C97\\u0CB3\\u0CC1",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"},map:{unit:"entries",verb:"\\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1"}};function t(r){return e[r]??null}let n={regex:"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD",email:"email \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95\\u0CA6 \\u0CB8\\u0CAE\\u0CAF",date:"ISO \\u0CA6\\u0CBF\\u0CA8\\u0CBE\\u0C82\\u0C95",time:"ISO \\u0CB8\\u0CAE\\u0CAF",duration:"ISO \\u0C85\\u0CB5\\u0CA7\\u0CBF",ipv4:"IPv4 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",ipv6:"IPv6 \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",mac:"MAC \\u0CB5\\u0CBF\\u0CB3\\u0CBE\\u0CB8",cidrv4:"IPv4 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF",cidrv6:"IPv6 \\u0CB5\\u0CCD\\u0CAF\\u0CBE\\u0CAA\\u0CCD\\u0CA4\\u0CBF\\u0CAF",base64:"base64-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",base64url:"base64url-encoded\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",json_string:"JSON\\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD",e164:"E.164 \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6",credit_card:"\\u0C95\\u0CCD\\u0CB0\\u0CC6\\u0CA1\\u0CBF\\u0C9F\\u0CCD \\u0C95\\u0CBE\\u0CB0\\u0CCD\\u0CA1\\u0CCD \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6",jwt:"JWT",template_literal:"\\u0C87\\u0CA8\\u0CCD\\u0CAA\\u0CC1\\u0C9F\\u0CCD"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${i}, \\u0CB8\\u0CCD\\u0CB5\\u0CC0\\u0C95\\u0CB0\\u0CBF\\u0CB8\\u0CBF\\u0CA6\\u0CA8\\u0CC1 ${s}`}case"invalid_value":return r.values.length===1?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${R(r.values[0])}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C86\\u0CAF\\u0CCD\\u0C95\\u0CC6: \\u0C87\\u0CB5\\u0CC1\\u0C97\\u0CB3\\u0CB2\\u0CCD\\u0CB2\\u0CBF \\u0C92\\u0C82\\u0CA6\\u0CA8\\u0CCD\\u0CA8\\u0CC1 \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0CA6\\u0CCA\\u0CA1\\u0CCD\\u0CA1\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.origin??"value"} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${i}${r.maximum.toString()} ${a.unit??"\\u0C85\\u0C82\\u0CB6\\u0C97\\u0CB3\\u0CC1"}`:`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0CA6\\u0CCA\\u0CA1\\u0CCD\\u0CA1\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.origin??"value"} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0C9A\\u0CBF\\u0C95\\u0CCD\\u0C95\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.origin} \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CB2\\u0CC1 ${i}${r.minimum.toString()} ${a.unit}`:`\\u0CA4\\u0CC1\\u0C82\\u0CAC\\u0CBE \\u0C9A\\u0CBF\\u0C95\\u0CCD\\u0C95\\u0CA6\\u0CC1: \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.origin} \\u0C8E\\u0C82\\u0CA6\\u0CC1 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C87\\u0CA6\\u0CB0\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C97\\u0CC6 \\u0CAA\\u0CCD\\u0CB0\\u0CBE\\u0CB0\\u0C82\\u0CAD\\u0CBF\\u0CB8\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${i.prefix}"`:i.format==="ends_with"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C87\\u0CA6\\u0CB0\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C97\\u0CC6 \\u0C95\\u0CCA\\u0CA8\\u0CC6\\u0C97\\u0CCA\\u0CB3\\u0CCD\\u0CB3\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${i.suffix}"`:i.format==="includes"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0C92\\u0CB3\\u0C97\\u0CCA\\u0C82\\u0CA1\\u0CBF\\u0CB0\\u0CAC\\u0CC7\\u0C95\\u0CC1 "${i.includes}"`:i.format==="regex"?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0CB8\\u0CCD\\u0C9F\\u0CCD\\u0CB0\\u0CBF\\u0C82\\u0C97\\u0CCD: \\u0CAE\\u0CBE\\u0CA6\\u0CB0\\u0CBF\\u0C97\\u0CC6 \\u0CB9\\u0CCA\\u0C82\\u0CA6\\u0CBF\\u0C95\\u0CC6\\u0CAF\\u0CBE\\u0C97\\u0CAC\\u0CC7\\u0C95\\u0CC1 ${i.pattern}`:`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6: \\u0CAC\\u0CB9\\u0CC1\\u0CB8\\u0C82\\u0C96\\u0CCD\\u0CAF\\u0CC6\\u0CAF\\u0CBE\\u0C97\\u0CBF\\u0CB0\\u0CAC\\u0CC7\\u0C95\\u0CC1 ${r.divisor}`;case"unrecognized_keys":return`\\u0C97\\u0CC1\\u0CB0\\u0CC1\\u0CA4\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CA6 \\u0C95\\u0CC0 ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF\\u0CB5\\u0CBE\\u0CA6 \\u0C95\\u0CC0 \\u0C87\\u0CA8\\u0CCD ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CA4\\u0CBE\\u0CB0\\u0CA4\\u0CAE\\u0CCD\\u0CAF \\u0CAE\\u0CCC\\u0CB2\\u0CCD\\u0CAF. \\u0CA8\\u0CBF\\u0CB0\\u0CC0\\u0C95\\u0CCD\\u0CB7\\u0CBF\\u0CB8\\u0CB2\\u0CBE\\u0C97\\u0CBF\\u0CA6\\u0CC6 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD";case"invalid_element":return`\\u0CB0\\u0CB2\\u0CCD\\u0CB2\\u0CBF \\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0CAE\\u0CCC\\u0CB2\\u0CCD\\u0CAF ${r.origin}`;default:return"\\u0C85\\u0CAE\\u0CBE\\u0CA8\\u0CCD\\u0CAF \\u0C87\\u0CA8\\u0CCD\\u200C\\u0CAA\\u0CC1\\u0C9F\\u0CCD"}}};function eS(){return{localeError:TI()}}var xI=()=>{let e={string:{unit:"\\uBB38\\uC790",verb:"to have"},file:{unit:"\\uBC14\\uC774\\uD2B8",verb:"to have"},array:{unit:"\\uAC1C",verb:"to have"},set:{unit:"\\uAC1C",verb:"to have"},map:{unit:"\\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n={regex:"\\uC785\\uB825",email:"\\uC774\\uBA54\\uC77C \\uC8FC\\uC18C",url:"URL",emoji:"\\uC774\\uBAA8\\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\uB0A0\\uC9DC\\uC2DC\\uAC04",date:"ISO \\uB0A0\\uC9DC",time:"ISO \\uC2DC\\uAC04",duration:"ISO \\uAE30\\uAC04",ipv4:"IPv4 \\uC8FC\\uC18C",ipv6:"IPv6 \\uC8FC\\uC18C",mac:"MAC \\uC8FC\\uC18C",cidrv4:"IPv4 \\uBC94\\uC704",cidrv6:"IPv6 \\uBC94\\uC704",base64:"base64 \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4",base64url:"base64url \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4",json_string:"JSON \\uBB38\\uC790\\uC5F4",e164:"E.164 \\uBC88\\uD638",credit_card:"\\uC2E0\\uC6A9\\uCE74\\uB4DC \\uBC88\\uD638",jwt:"JWT",template_literal:"\\uC785\\uB825"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uC608\\uC0C1 \\uD0C0\\uC785\\uC740 instanceof ${r.expected}, \\uBC1B\\uC740 \\uD0C0\\uC785\\uC740 ${s}\\uC785\\uB2C8\\uB2E4`:`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uC608\\uC0C1 \\uD0C0\\uC785\\uC740 ${i}, \\uBC1B\\uC740 \\uD0C0\\uC785\\uC740 ${s}\\uC785\\uB2C8\\uB2E4`}case"invalid_value":return r.values.length===1?`\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uAC12\\uC740 ${R(r.values[0])} \\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4`:`\\uC798\\uBABB\\uB41C \\uC635\\uC158: ${_(r.values,"\\uB610\\uB294 ")} \\uC911 \\uD558\\uB098\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4`;case"too_big":{let i=r.inclusive?"\\uC774\\uD558":"\\uBBF8\\uB9CC",a=i==="\\uBBF8\\uB9CC"?"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4":"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4",s=t(r.origin),c=s?.unit??"\\uC694\\uC18C";return s?`${r.origin??"\\uAC12"}\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ${r.maximum.toString()}${c} ${i}${a}`:`${r.origin??"\\uAC12"}\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ${r.maximum.toString()} ${i}${a}`}case"too_small":{let i=r.inclusive?"\\uC774\\uC0C1":"\\uCD08\\uACFC",a=i==="\\uC774\\uC0C1"?"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4":"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4",s=t(r.origin),c=s?.unit??"\\uC694\\uC18C";return s?`${r.origin??"\\uAC12"}\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ${r.minimum.toString()}${c} ${i}${a}`:`${r.origin??"\\uAC12"}\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ${r.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "${i.prefix}"(\\uC73C)\\uB85C \\uC2DC\\uC791\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4`:i.format==="ends_with"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "${i.suffix}"(\\uC73C)\\uB85C \\uB05D\\uB098\\uC57C \\uD569\\uB2C8\\uB2E4`:i.format==="includes"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "${i.includes}"\\uC744(\\uB97C) \\uD3EC\\uD568\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4`:i.format==="regex"?`\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: \\uC815\\uADDC\\uC2DD ${i.pattern} \\uD328\\uD134\\uACFC \\uC77C\\uCE58\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4`:`\\uC798\\uBABB\\uB41C ${n[i.format]??r.format}`}case"not_multiple_of":return`\\uC798\\uBABB\\uB41C \\uC22B\\uC790: ${r.divisor}\\uC758 \\uBC30\\uC218\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4`;case"unrecognized_keys":return`\\uC778\\uC2DD\\uD560 \\uC218 \\uC5C6\\uB294 \\uD0A4: ${_(r.keys,", ")}`;case"invalid_key":return`\\uC798\\uBABB\\uB41C \\uD0A4: ${r.origin}`;case"invalid_union":return"\\uC798\\uBABB\\uB41C \\uC785\\uB825";case"invalid_element":return`\\uC798\\uBABB\\uB41C \\uAC12: ${r.origin}`;default:return"\\uC798\\uBABB\\uB41C \\uC785\\uB825"}}};function tS(){return{localeError:xI()}}var Li=e=>e.charAt(0).toUpperCase()+e.slice(1);function rS(e){let t=Math.abs(e),n=t%10,o=t%100;return o>=11&&o<=19||n===0?"many":n===1?"one":"few"}var EI=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\\u0173"},verb:{smaller:{inclusive:"turi b\\u016Bti ne ilgesn\\u0117 kaip",notInclusive:"turi b\\u016Bti trumpesn\\u0117 kaip"},bigger:{inclusive:"turi b\\u016Bti ne trumpesn\\u0117 kaip",notInclusive:"turi b\\u016Bti ilgesn\\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\\u0173"},verb:{smaller:{inclusive:"turi b\\u016Bti ne didesnis kaip",notInclusive:"turi b\\u016Bti ma\\u017Eesnis kaip"},bigger:{inclusive:"turi b\\u016Bti ne ma\\u017Eesnis kaip",notInclusive:"turi b\\u016Bti didesnis kaip"}}},array:{unit:{one:"element\\u0105",few:"elementus",many:"element\\u0173"},verb:{smaller:{inclusive:"turi tur\\u0117ti ne daugiau kaip",notInclusive:"turi tur\\u0117ti ma\\u017Eiau kaip"},bigger:{inclusive:"turi tur\\u0117ti ne ma\\u017Eiau kaip",notInclusive:"turi tur\\u0117ti daugiau kaip"}}},set:{unit:{one:"element\\u0105",few:"elementus",many:"element\\u0173"},verb:{smaller:{inclusive:"turi tur\\u0117ti ne daugiau kaip",notInclusive:"turi tur\\u0117ti ma\\u017Eiau kaip"},bigger:{inclusive:"turi tur\\u0117ti ne ma\\u017Eiau kaip",notInclusive:"turi tur\\u0117ti daugiau kaip"}}}};function t(r,i,a,s){let c=e[r]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[s][a?"inclusive":"notInclusive"]}}let n={regex:"\\u012Fvestis",email:"el. pa\\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\\u017Ekoduota eilut\\u0117",base64url:"base64url u\\u017Ekoduota eilut\\u0117",json_string:"JSON eilut\\u0117",e164:"E.164 numeris",credit_card:"kredito kortel\\u0117s numeris",jwt:"JWT",template_literal:"\\u012Fvestis"},o={nan:"NaN",number:"skai\\u010Dius",bigint:"sveikasis skai\\u010Dius",string:"eilut\\u0117",boolean:"login\\u0117 reik\\u0161m\\u0117",undefined:"neapibr\\u0117\\u017Eta reik\\u0161m\\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\\u0117 reik\\u0161m\\u0117"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\\u0117tasi - ${i}`}case"invalid_value":return r.values.length===1?`Privalo b\\u016Bti ${R(r.values[0])}`:`Privalo b\\u016Bti vienas i\\u0161 ${_(r.values,"|")} pasirinkim\\u0173`;case"too_big":{let i=o[r.origin]??r.origin,a=t(r.origin,rS(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${Li(i??r.origin??"reik\\u0161m\\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\\u017Eesnis kaip";return`${Li(i??r.origin??"reik\\u0161m\\u0117")} turi b\\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[r.origin]??r.origin,a=t(r.origin,rS(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${Li(i??r.origin??"reik\\u0161m\\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\\u0173"}`;let s=r.inclusive?"ne ma\\u017Eesnis kaip":"didesnis kaip";return`${Li(i??r.origin??"reik\\u0161m\\u0117")} turi b\\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Eilut\\u0117 privalo prasid\\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\\u0117 privalo \\u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${n[i.format]??r.format}`}case"not_multiple_of":return`Skai\\u010Dius privalo b\\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${_(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \\u012Fvestis";case"invalid_element":{let i=o[r.origin]??r.origin;return`${Li(i??r.origin??"reik\\u0161m\\u0117")} turi klaiding\\u0105 \\u012Fvest\\u012F`}default:return"Klaidinga \\u012Fvestis"}}};function nS(){return{localeError:EI()}}var PI=()=>{let e={string:{unit:"\\u0437\\u043D\\u0430\\u0446\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},file:{unit:"\\u0431\\u0430\\u0458\\u0442\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},array:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},set:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},map:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"}};function t(r){return e[r]??null}let n={regex:"\\u0432\\u043D\\u0435\\u0441",email:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u043D\\u0430 \\u0435-\\u043F\\u043E\\u0448\\u0442\\u0430",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u045F\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0443\\u043C \\u0438 \\u0432\\u0440\\u0435\\u043C\\u0435",date:"ISO \\u0434\\u0430\\u0442\\u0443\\u043C",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",duration:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435\\u0442\\u0440\\u0430\\u0435\\u045A\\u0435",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",mac:"MAC \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",cidrv4:"IPv4 \\u043E\\u043F\\u0441\\u0435\\u0433",cidrv6:"IPv6 \\u043E\\u043F\\u0441\\u0435\\u0433",base64:"base64-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430",base64url:"base64url-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430",json_string:"JSON \\u043D\\u0438\\u0437\\u0430",e164:"E.164 \\u0431\\u0440\\u043E\\u0458",credit_card:"\\u0431\\u0440\\u043E\\u0458 \\u043D\\u0430 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u0430 \\u043A\\u0430\\u0440\\u0442\\u0438\\u0447\\u043A\\u0430",jwt:"JWT",template_literal:"\\u0432\\u043D\\u0435\\u0441"},o={nan:"NaN",number:"\\u0431\\u0440\\u043E\\u0458",array:"\\u043D\\u0438\\u0437\\u0430"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 instanceof ${r.expected}, \\u043F\\u0440\\u0438\\u043C\\u0435\\u043D\\u043E ${s}`:`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${i}, \\u043F\\u0440\\u0438\\u043C\\u0435\\u043D\\u043E ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${R(r.values[0])}`:`\\u0413\\u0440\\u0435\\u0448\\u0430\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u0458\\u0430: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 \\u0435\\u0434\\u043D\\u0430 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u0433\\u043E\\u043B\\u0435\\u043C: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${r.origin??"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430"} \\u0434\\u0430 \\u0438\\u043C\\u0430 ${i}${r.maximum.toString()} ${a.unit??"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0438"}`:`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u0433\\u043E\\u043B\\u0435\\u043C: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${r.origin??"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430"} \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${r.origin} \\u0434\\u0430 \\u0438\\u043C\\u0430 ${i}${r.minimum.toString()} ${a.unit}`:`\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ${r.origin} \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u043D\\u0443\\u0432\\u0430 \\u0441\\u043E "${i.prefix}"`:i.format==="ends_with"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u0440\\u0448\\u0443\\u0432\\u0430 \\u0441\\u043E "${i.suffix}"`:i.format==="includes"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u0443\\u0447\\u0443\\u0432\\u0430 "${i.includes}"`:i.format==="regex"?`\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u043E\\u0434\\u0433\\u043E\\u0430\\u0440\\u0430 \\u043D\\u0430 \\u043F\\u0430\\u0442\\u0435\\u0440\\u043D\\u043E\\u0442 ${i.pattern}`:`Invalid ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0431\\u0440\\u043E\\u0458: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 \\u0434\\u0435\\u043B\\u0438\\u0432 \\u0441\\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D\\u0438 \\u043A\\u043B\\u0443\\u0447\\u0435\\u0432\\u0438":"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447 \\u0432\\u043E ${r.origin}`;case"invalid_union":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441";case"invalid_element":return`\\u0413\\u0440\\u0435\\u0448\\u043D\\u0430 \\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442 \\u0432\\u043E ${r.origin}`;default:return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441"}}};function oS(){return{localeError:PI()}}var OI=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${R(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${n[i.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function iS(){return{localeError:OI()}}var CI=()=>{let e={string:{unit:"\\u0905\\u0915\\u094D\\u0937\\u0930",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},file:{unit:"\\u092C\\u093E\\u0907\\u091F",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},array:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},set:{unit:"\\u0924\\u0924\\u094D\\u0935",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"},map:{unit:"\\u092A\\u094D\\u0930\\u0935\\u093F\\u0937\\u094D\\u091F\\u093F",verb:"\\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B"}};function t(r){return e[r]??null}let n={regex:"\\u0907\\u0928\\u092A\\u0941\\u091F",email:"\\u0907\\u092E\\u0947\\u0932 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",url:"URL",emoji:"\\u0907\\u092E\\u094B\\u091C\\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u092E\\u093F\\u0924\\u093F \\u0930 \\u0938\\u092E\\u092F",date:"ISO \\u092E\\u093F\\u0924\\u093F",time:"ISO \\u0938\\u092E\\u092F",duration:"ISO \\u0905\\u0935\\u0927\\u093F",ipv4:"IPv4 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",ipv6:"IPv6 \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",mac:"MAC \\u0920\\u0947\\u0917\\u093E\\u0928\\u093E",cidrv4:"IPv4 \\u0926\\u093E\\u092F\\u0930\\u093E",cidrv6:"IPv6 \\u0926\\u093E\\u092F\\u0930\\u093E",base64:"base64-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",base64url:"base64url-\\u0907\\u0928\\u094D\\u0915\\u094B\\u0921 \\u0917\\u0930\\u093F\\u090F\\u0915\\u094B \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",json_string:"JSON \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919",e164:"E.164 \\u0928\\u092E\\u094D\\u092C\\u0930",credit_card:"\\u0915\\u094D\\u0930\\u0947\\u0921\\u093F\\u091F \\u0915\\u093E\\u0930\\u094D\\u0921 \\u0928\\u092E\\u094D\\u092C\\u0930",jwt:"JWT",template_literal:"\\u0907\\u0928\\u092A\\u0941\\u091F"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${i}, \\u092A\\u094D\\u0930\\u093E\\u092A\\u094D\\u0924 ${s}`}case"invalid_value":return r.values.length===1?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${R(r.values[0])}`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0935\\u093F\\u0915\\u0932\\u094D\\u092A: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 \\u092E\\u093E\\u0928\\u0939\\u0930\\u0942 \\u092E\\u0927\\u094D\\u092F\\u0947 \\u090F\\u0915 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${r.origin??"\\u092E\\u093E\\u0928"} \\u092E\\u093E ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0920\\u0942\\u0932\\u094B: ${r.origin??"\\u092E\\u093E\\u0928"} ${i}${r.maximum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${r.origin} \\u092E\\u093E ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`\\u0927\\u0947\\u0930\\u0948 \\u0938\\u093E\\u0928\\u094B: ${r.origin} ${i}${r.minimum.toString()} \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${i.prefix}" \\u092C\\u093E\\u091F \\u0938\\u0941\\u0930\\u0941 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:i.format==="ends_with"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${i.suffix}" \\u092E\\u093E \\u0938\\u092E\\u093E\\u092A\\u094D\\u0924 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:i.format==="includes"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: "${i.includes}" \\u0938\\u092E\\u093E\\u0935\\u0947\\u0936 \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:i.format==="regex"?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u094D\\u091F\\u094D\\u0930\\u093F\\u0919: \\u0922\\u093E\\u0901\\u091A\\u093E ${i.pattern} \\u0938\\u0901\\u0917 \\u092E\\u0947\\u0932 \\u0916\\u093E\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`:`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0938\\u0902\\u0916\\u094D\\u092F\\u093E: ${r.divisor} \\u0915\\u094B \\u0917\\u0941\\u0923\\u091C \\u0939\\u0941\\u0928\\u0941\\u092A\\u0930\\u094D\\u091B`;case"unrecognized_keys":return`\\u0905\\u092A\\u0930\\u093F\\u091A\\u093F\\u0924 \\u0915\\u0941\\u091E\\u094D\\u091C\\u0940${r.keys.length>1?"\\u0939\\u0930\\u0942":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0915\\u0941\\u091E\\u094D\\u091C\\u0940: ${r.origin} \\u092E\\u093E`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0921\\u093F\\u0938\\u094D\\u0915\\u094D\\u0930\\u093F\\u092E\\u093F\\u0928\\u0947\\u091F\\u0930 \\u092E\\u093E\\u0928: \\u0905\\u092A\\u0947\\u0915\\u094D\\u0937\\u093F\\u0924 ${r.options.map(a=>`\'${a}\'`).join(" | ")}`:"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F";case"invalid_element":return`\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u092E\\u093E\\u0928: ${r.origin} \\u092E\\u093E`;default:return"\\u0905\\u092E\\u093E\\u0928\\u094D\\u092F \\u0907\\u0928\\u092A\\u0941\\u091F"}}};function aS(){return{localeError:CI()}}var NI=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${R(r.values[0])}`:`Ongeldige optie: verwacht \\xE9\\xE9n van ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${i}${r.maximum.toString()} is`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${i}${r.minimum.toString()} is`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${n[i.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":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function sS(){return{localeError:NI()}}var jI=()=>{let e={string:{unit:"teikn",verb:"\\xE5 ha"},file:{unit:"bytes",verb:"\\xE5 ha"},array:{unit:"element",verb:"\\xE5 innehalde"},set:{unit:"element",verb:"\\xE5 innehalde"},map:{unit:"element",verb:"\\xE5 innehalde"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tal",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventa instanceof ${r.expected}, fekk ${s}`:`Ugyldig input: forventa ${i}, fekk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventa ${R(r.values[0])}`:`Ugyldig val: forventa eitt av ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventa ${r.origin??"value"} til \\xE5 ha ${i}${r.maximum.toString()} ${a.unit??"element"}`:`For stor(t): forventa ${r.origin??"value"} til \\xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventa ${r.origin} til \\xE5 ha ${i}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventa ${r.origin} til \\xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: m\\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\\xE5 slutte med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\\xE5 innehalde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\\xE5 matche m\\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.format]??r.format}`}case"not_multiple_of":return`Ugyldig tal: m\\xE5 vere eit multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjende n\\xF8klar":"Ukjend n\\xF8kkel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function cS(){return{localeError:jI()}}var AI=()=>{let e={string:{unit:"tegn",verb:"\\xE5 ha"},file:{unit:"bytes",verb:"\\xE5 ha"},array:{unit:"elementer",verb:"\\xE5 inneholde"},set:{unit:"elementer",verb:"\\xE5 inneholde"},map:{unit:"elementer",verb:"\\xE5 inneholde"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${R(r.values[0])}`:`Ugyldig valg: forventet en av ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \\xE5 ha ${i}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \\xE5 ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \\xE5 ha ${i}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \\xE5 ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ugyldig streng: m\\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\\xE5 matche m\\xF8nsteret ${i.pattern}`:`Ugyldig ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function lS(){return{localeError:AI()}}var UI=()=>{let e={string:{unit:"harf",verb:"olmal\\u0131d\\u0131r"},file:{unit:"bayt",verb:"olmal\\u0131d\\u0131r"},array:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"},set:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"},map:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"}};function t(r){return e[r]??null}let n={regex:"giren",email:"epostag\\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\\xE2m\\u0131",date:"ISO tarihi",time:"ISO zaman\\u0131",duration:"ISO m\\xFCddeti",ipv4:"IPv4 ni\\u015F\\xE2n\\u0131",ipv6:"IPv6 ni\\u015F\\xE2n\\u0131",mac:"MAC ni\\u015F\\xE2n\\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\\u015Fifreli metin",base64url:"base64url-\\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\\u0131s\\u0131",credit_card:"i\'tib\\xE2r kart\\u0131 numaras\\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`F\\xE2sit giren: umulan instanceof ${r.expected}, al\\u0131nan ${s}`:`F\\xE2sit giren: umulan ${i}, al\\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`F\\xE2sit giren: umulan ${R(r.values[0])}`:`F\\xE2sit tercih: m\\xFBteberler ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\\xFCy\\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\\u0131yd\\u0131.`:`Fazla b\\xFCy\\xFCk: ${r.origin??"value"}, ${i}${r.maximum.toString()} olmal\\u0131yd\\u0131.`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\\xFC\\xE7\\xFCk: ${r.origin}, ${i}${r.minimum.toString()} ${a.unit} sahip olmal\\u0131yd\\u0131.`:`Fazla k\\xFC\\xE7\\xFCk: ${r.origin}, ${i}${r.minimum.toString()} olmal\\u0131yd\\u0131.`}case"invalid_format":{let i=r;return i.format==="starts_with"?`F\\xE2sit metin: "${i.prefix}" ile ba\\u015Flamal\\u0131.`:i.format==="ends_with"?`F\\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\\xE2sit metin: "${i.includes}" ihtiv\\xE2 etmeli.`:i.format==="regex"?`F\\xE2sit metin: ${i.pattern} nak\\u015F\\u0131na uymal\\u0131.`:`F\\xE2sit ${n[i.format]??r.format}`}case"not_multiple_of":return`F\\xE2sit say\\u0131: ${r.divisor} kat\\u0131 olmal\\u0131yd\\u0131.`;case"unrecognized_keys":return`Tan\\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\\xE7in tan\\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\\u0131namad\\u0131.";case"invalid_element":return`${r.origin} i\\xE7in tan\\u0131nmayan k\\u0131ymet var.`;default:return"K\\u0131ymet tan\\u0131namad\\u0131."}}};function uS(){return{localeError:UI()}}var DI=()=>{let e={string:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},file:{unit:"\\u0628\\u0627\\u06CC\\u067C\\u0633",verb:"\\u0648\\u0644\\u0631\\u064A"},array:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},set:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},map:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"}};function t(r){return e[r]??null}let n={regex:"\\u0648\\u0631\\u0648\\u062F\\u064A",email:"\\u0628\\u0631\\u06CC\\u069A\\u0646\\u0627\\u0644\\u06CC\\u06A9",url:"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u0644",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0646\\u06CC\\u067C\\u0647 \\u0627\\u0648 \\u0648\\u062E\\u062A",date:"\\u0646\\u06D0\\u067C\\u0647",time:"\\u0648\\u062E\\u062A",duration:"\\u0645\\u0648\\u062F\\u0647",ipv4:"\\u062F IPv4 \\u067E\\u062A\\u0647",ipv6:"\\u062F IPv6 \\u067E\\u062A\\u0647",mac:"\\u062F MAC \\u067E\\u062A\\u0647",cidrv4:"\\u062F IPv4 \\u0633\\u0627\\u062D\\u0647",cidrv6:"\\u062F IPv6 \\u0633\\u0627\\u062D\\u0647",base64:"base64-encoded \\u0645\\u062A\\u0646",base64url:"base64url-encoded \\u0645\\u062A\\u0646",json_string:"JSON \\u0645\\u062A\\u0646",e164:"\\u062F E.164 \\u0634\\u0645\\u06D0\\u0631\\u0647",credit_card:"\\u062F \\u06A9\\u0631\\u06CC\\u0689\\u06CC\\u067C \\u06A9\\u0627\\u0631\\u062A \\u0634\\u0645\\u06CC\\u0631\\u0647",jwt:"JWT",template_literal:"\\u0648\\u0631\\u0648\\u062F\\u064A"},o={nan:"NaN",number:"\\u0639\\u062F\\u062F",array:"\\u0627\\u0631\\u06D0"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F instanceof ${r.expected} \\u0648\\u0627\\u06CC, \\u0645\\u06AB\\u0631 ${s} \\u062A\\u0631\\u0644\\u0627\\u0633\\u0647 \\u0634\\u0648`:`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ${i} \\u0648\\u0627\\u06CC, \\u0645\\u06AB\\u0631 ${s} \\u062A\\u0631\\u0644\\u0627\\u0633\\u0647 \\u0634\\u0648`}case"invalid_value":return r.values.length===1?`\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ${R(r.values[0])} \\u0648\\u0627\\u06CC`:`\\u0646\\u0627\\u0633\\u0645 \\u0627\\u0646\\u062A\\u062E\\u0627\\u0628: \\u0628\\u0627\\u06CC\\u062F \\u06CC\\u0648 \\u0644\\u0647 ${_(r.values,"|")} \\u0685\\u062E\\u0647 \\u0648\\u0627\\u06CC`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ${r.origin??"\\u0627\\u0631\\u0632\\u069A\\u062A"} \\u0628\\u0627\\u06CC\\u062F ${i}${r.maximum.toString()} ${a.unit??"\\u0639\\u0646\\u0635\\u0631\\u0648\\u0646\\u0647"} \\u0648\\u0644\\u0631\\u064A`:`\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ${r.origin??"\\u0627\\u0631\\u0632\\u069A\\u062A"} \\u0628\\u0627\\u06CC\\u062F ${i}${r.maximum.toString()} \\u0648\\u064A`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ${r.origin} \\u0628\\u0627\\u06CC\\u062F ${i}${r.minimum.toString()} ${a.unit} \\u0648\\u0644\\u0631\\u064A`:`\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ${r.origin} \\u0628\\u0627\\u06CC\\u062F ${i}${r.minimum.toString()} \\u0648\\u064A`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F "${i.prefix}" \\u0633\\u0631\\u0647 \\u067E\\u06CC\\u0644 \\u0634\\u064A`:i.format==="ends_with"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F "${i.suffix}" \\u0633\\u0631\\u0647 \\u067E\\u0627\\u06CC \\u062A\\u0647 \\u0648\\u0631\\u0633\\u064A\\u0696\\u064A`:i.format==="includes"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F "${i.includes}" \\u0648\\u0644\\u0631\\u064A`:i.format==="regex"?`\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F ${i.pattern} \\u0633\\u0631\\u0647 \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u0648\\u0644\\u0631\\u064A`:`${n[i.format]??r.format} \\u0646\\u0627\\u0633\\u0645 \\u062F\\u06CC`}case"not_multiple_of":return`\\u0646\\u0627\\u0633\\u0645 \\u0639\\u062F\\u062F: \\u0628\\u0627\\u06CC\\u062F \\u062F ${r.divisor} \\u0645\\u0636\\u0631\\u0628 \\u0648\\u064A`;case"unrecognized_keys":return`\\u0646\\u0627\\u0633\\u0645 ${r.keys.length>1?"\\u06A9\\u0644\\u06CC\\u0689\\u0648\\u0646\\u0647":"\\u06A9\\u0644\\u06CC\\u0689"}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0646\\u0627\\u0633\\u0645 \\u06A9\\u0644\\u06CC\\u0689 \\u067E\\u0647 ${r.origin} \\u06A9\\u06D0`;case"invalid_union":return"\\u0646\\u0627\\u0633\\u0645\\u0647 \\u0648\\u0631\\u0648\\u062F\\u064A";case"invalid_element":return`\\u0646\\u0627\\u0633\\u0645 \\u0639\\u0646\\u0635\\u0631 \\u067E\\u0647 ${r.origin} \\u06A9\\u06D0`;default:return"\\u0646\\u0627\\u0633\\u0645\\u0647 \\u0648\\u0631\\u0648\\u062F\\u064A"}}};function dS(){return{localeError:DI()}}var LI=()=>{let e={string:{unit:"znak\\xF3w",verb:"mie\\u0107"},file:{unit:"bajt\\xF3w",verb:"mie\\u0107"},array:{unit:"element\\xF3w",verb:"mie\\u0107"},set:{unit:"element\\xF3w",verb:"mie\\u0107"},map:{unit:"element\\xF3w",verb:"mie\\u0107"}};function t(r){return e[r]??null}let n={regex:"wyra\\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\\u0105g znak\\xF3w zakodowany w formacie base64",base64url:"ci\\u0105g znak\\xF3w zakodowany w formacie base64url",json_string:"ci\\u0105g znak\\xF3w w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",jwt:"JWT",template_literal:"wej\\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return r.values.length===1?`Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ${R(r.values[0])}`:`Nieprawid\\u0142owa opcja: oczekiwano jednej z warto\\u015Bci ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\\u017Ca warto\\u015B\\u0107: oczekiwano, \\u017Ce ${r.origin??"warto\\u015B\\u0107"} b\\u0119dzie mie\\u0107 ${i}${r.maximum.toString()} ${a.unit??"element\\xF3w"}`:`Zbyt du\\u017C(y/a/e): oczekiwano, \\u017Ce ${r.origin??"warto\\u015B\\u0107"} b\\u0119dzie wynosi\\u0107 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\\u0142a warto\\u015B\\u0107: oczekiwano, \\u017Ce ${r.origin??"warto\\u015B\\u0107"} b\\u0119dzie mie\\u0107 ${i}${r.minimum.toString()} ${a.unit??"element\\xF3w"}`:`Zbyt ma\\u0142(y/a/e): oczekiwano, \\u017Ce ${r.origin??"warto\\u015B\\u0107"} b\\u0119dzie wynosi\\u0107 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zaczyna\\u0107 si\\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi ko\\u0144czy\\u0107 si\\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zawiera\\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi odpowiada\\u0107 wzorcowi ${i.pattern}`:`Nieprawid\\u0142ow(y/a/e) ${n[i.format]??r.format}`}case"not_multiple_of":return`Nieprawid\\u0142owa liczba: musi by\\u0107 wielokrotno\\u015Bci\\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Nieprawid\\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\\u0142owe dane wej\\u015Bciowe";case"invalid_element":return`Nieprawid\\u0142owa warto\\u015B\\u0107 w ${r.origin}`;default:return"Nieprawid\\u0142owe dane wej\\u015Bciowe"}}};function mS(){return{localeError:LI()}}var MI=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let n={regex:"a entrada",email:"o endere\\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\\xE7\\xE3o ISO",ipv4:"o endere\\xE7o IPv4",ipv6:"o endere\\xE7o IPv6",mac:"o endere\\xE7o MAC",cidrv4:"o intervalo de endere\\xE7os IPv4",cidrv6:"o intervalo de endere\\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\\xFAmero E.164",credit_card:"o n\\xFAmero de cart\\xE3o de cr\\xE9dito",jwt:"o JWT",template_literal:"a entrada"},o={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},r={string:{name:"texto",articles:o.masculine},number:{name:"n\\xFAmero",articles:o.masculine},int:{name:"n\\xFAmero inteiro",articles:o.masculine},boolean:{name:"valor booleano",articles:o.masculine},bigint:{name:"n\\xFAmero bigint",articles:o.masculine},symbol:{name:"s\\xEDmbolo",articles:o.masculine},undefined:{name:\'valor "undefined"\',articles:o.masculine},null:{name:\'valor "nulo"\',articles:o.masculine},never:{name:\'valor "never"\',articles:o.masculine},void:{name:\'valor "void"\',articles:o.masculine},date:{name:"data",articles:o.feminine},array:{name:"vetor",articles:o.masculine},object:{name:"objeto",articles:o.masculine},tuple:{name:"tuplo",articles:o.masculine},record:{name:"registo",articles:o.masculine},map:{name:"mapa",articles:o.masculine},set:{name:"conjunto",articles:o.masculine},file:{name:"ficheiro",articles:o.masculine},nonoptional:{name:"valor n\\xE3o opcional",articles:o.masculine},nan:{name:\'valor "NaN"\',articles:o.masculine},function:{name:"fun\\xE7\\xE3o",articles:o.feminine}};function i(a,s){let c=r[a]??{name:`valor "${a}"`,articles:o.masculine};return`${c.articles[s]} ${c.name}`}return a=>{switch(a.code){case"invalid_type":{let s=i(a.expected,"indefinite"),c=k(a.input),l=i(c,"indefinite");return`Entrada inv\\xE1lida: esperava ${s}, recebeu ${l}`}case"invalid_value":return a.values.length===1?`Entrada inv\\xE1lida: esperava ${R(a.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${_(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",c=t(a.origin);return c?`Demasiado grande: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${c.unit??"elementos"}`:`Demasiado grande: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",c=t(a.origin);return c?`Demasiado pequeno: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${c.unit??"elementos"}`:`Demasiado pequeno: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\\xE1lido: deve come\\xE7ar por "${s.prefix}"`:s.format==="ends_with"?`Texto inv\\xE1lido: deve terminar em "${s.suffix}"`:s.format==="includes"?`Texto inv\\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${s.pattern}`:`Formato d${n[s.format]??a.format} inv\\xE1lido`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\\xE1lida${s}: ${_(a.keys,", ")}`}case"invalid_key":return`Entrada inv\\xE1lida n${i(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${a.options.map(c=>`\'${c}\'`).join(" | ")}`:"Entrada inv\\xE1lida";case"invalid_element":return`Entrada inv\\xE1lida n${i(a.origin,"definite")}`;default:return"Entrada inv\\xE1lida"}}};function pS(){return{localeError:MI()}}var qI=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let n={regex:"a entrada",email:"o endere\\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\\xE7\\xE3o ISO",ipv4:"o endere\\xE7o IPv4",ipv6:"o endere\\xE7o IPv6",mac:"o endere\\xE7o MAC",cidrv4:"a faixa de endere\\xE7os IPv4",cidrv6:"a faixa de endere\\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\\xFAmero E.164",credit_card:"o n\\xFAmero de cart\\xE3o de cr\\xE9dito",jwt:"o JWT",template_literal:"a entrada"},o={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},r={string:{name:"texto",articles:o.masculine},number:{name:"n\\xFAmero",articles:o.masculine},int:{name:"n\\xFAmero inteiro",articles:o.masculine},boolean:{name:"valor booleano",articles:o.masculine},bigint:{name:"n\\xFAmero bigint",articles:o.masculine},symbol:{name:"s\\xEDmbolo",articles:o.masculine},undefined:{name:\'valor "undefined"\',articles:o.masculine},null:{name:\'valor "nulo"\',articles:o.masculine},never:{name:\'valor "never"\',articles:o.masculine},void:{name:\'valor "void"\',articles:o.masculine},date:{name:"data",articles:o.feminine},array:{name:"vetor",articles:o.masculine},object:{name:"objeto",articles:o.masculine},tuple:{name:"tupla",articles:o.feminine},record:{name:"registro",articles:o.masculine},map:{name:"mapa",articles:o.masculine},set:{name:"conjunto",articles:o.masculine},file:{name:"arquivo",articles:o.masculine},nonoptional:{name:"valor n\\xE3o opcional",articles:o.masculine},nan:{name:\'valor "NaN"\',articles:o.masculine},function:{name:"fun\\xE7\\xE3o",articles:o.feminine}};function i(a,s){let c=r[a]??{name:`valor "${a}"`,articles:o.masculine};return`${c.articles[s]} ${c.name}`}return a=>{switch(a.code){case"invalid_type":{let s=i(a.expected,"indefinite"),c=k(a.input),l=i(c,"indefinite");return`Entrada inv\\xE1lida: esperava ${s}, recebeu ${l}`}case"invalid_value":return a.values.length===1?`Entrada inv\\xE1lida: esperava ${R(a.values[0])}`:`Op\\xE7\\xE3o inv\\xE1lida: esperava uma das seguintes op\\xE7\\xF5es: ${_(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",c=t(a.origin);return c?`Grande demais: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${c.unit??"elementos"}`:`Grande demais: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",c=t(a.origin);return c?`Pequeno demais: esperava que ${i(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${c.unit??"elementos"}`:`Pequeno demais: esperava que ${i(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\\xE1lido: deve come\\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ${s.pattern}`:`Formato d${n[s.format]??a.format} inv\\xE1lido`}case"not_multiple_of":return`N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\\xE1lida${s}: ${_(a.keys,", ")}`}case"invalid_key":return`Entrada inv\\xE1lida n${i(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\\xE7\\xE3o inv\\xE1lido. Esperava ${a.options.map(c=>`\'${c}\'`).join(" | ")}`:"Entrada inv\\xE1lida";case"invalid_element":return`Entrada inv\\xE1lida n${i(a.origin,"definite")}`;default:return"Entrada inv\\xE1lida"}}};function fS(){return{localeError:qI()}}var VI=()=>{let e={string:{unit:"caractere",verb:"s\\u0103 aib\\u0103"},file:{unit:"octe\\u021Bi",verb:"s\\u0103 aib\\u0103"},array:{unit:"elemente",verb:"s\\u0103 aib\\u0103"},set:{unit:"elemente",verb:"s\\u0103 aib\\u0103"},map:{unit:"intr\\u0103ri",verb:"s\\u0103 aib\\u0103"}};function t(r){return e[r]??null}let n={regex:"intrare",email:"adres\\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\\u0103 \\u0219i or\\u0103 ISO",date:"dat\\u0103 ISO",time:"or\\u0103 ISO",duration:"durat\\u0103 ISO",ipv4:"adres\\u0103 IPv4",ipv6:"adres\\u0103 IPv6",mac:"adres\\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\\u0219ir codat base64",base64url:"\\u0219ir codat base64url",json_string:"\\u0219ir JSON",e164:"num\\u0103r E.164",credit_card:"num\\u0103r de card de credit",jwt:"JWT",template_literal:"intrare"},o={nan:"NaN",string:"\\u0219ir",number:"num\\u0103r",boolean:"boolean",function:"func\\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\\u0103r mare",void:"void",never:"never",map:"hart\\u0103",set:"set"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`Intrare invalid\\u0103: a\\u0219teptat ${i}, primit ${s}`}case"invalid_value":return r.values.length===1?`Intrare invalid\\u0103: a\\u0219teptat ${R(r.values[0])}`:`Op\\u021Biune invalid\\u0103: a\\u0219teptat una dintre ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Prea mare: a\\u0219teptat ca ${r.origin??"valoarea"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\\u0219teptat ca ${r.origin??"valoarea"} s\\u0103 fie ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Prea mic: a\\u0219teptat ca ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Prea mic: a\\u0219teptat ca ${r.origin} s\\u0103 fie ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0218ir invalid: trebuie s\\u0103 \\xEEnceap\\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\\u0218ir invalid: trebuie s\\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\\u0218ir invalid: trebuie s\\u0103 includ\\u0103 "${i.includes}"`:i.format==="regex"?`\\u0218ir invalid: trebuie s\\u0103 se potriveasc\\u0103 cu modelul ${i.pattern}`:`Format invalid: ${n[i.format]??r.format}`}case"not_multiple_of":return`Num\\u0103r invalid: trebuie s\\u0103 fie multiplu de ${r.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${_(r.keys,", ")}`;case"invalid_key":return`Cheie invalid\\u0103 \\xEEn ${r.origin}`;case"invalid_union":return"Intrare invalid\\u0103";case"invalid_element":return`Valoare invalid\\u0103 \\xEEn ${r.origin}`;default:return"Intrare invalid\\u0103"}}};function hS(){return{localeError:VI()}}function gS(e,t,n,o){let r=Math.abs(e),i=r%10,a=r%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?n:o}var ZI=()=>{let e={string:{unit:{one:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B",few:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0430",many:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},file:{unit:{one:"\\u0431\\u0430\\u0439\\u0442",few:"\\u0431\\u0430\\u0439\\u0442\\u0430",many:"\\u0431\\u0430\\u0439\\u0442"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},array:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},set:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},map:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"}};function t(r){return e[r]??null}let n={regex:"\\u0432\\u0432\\u043E\\u0434",email:"email \\u0430\\u0434\\u0440\\u0435\\u0441",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0430 \\u0438 \\u0432\\u0440\\u0435\\u043C\\u044F",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u044F",duration:"ISO \\u0434\\u043B\\u0438\\u0442\\u0435\\u043B\\u044C\\u043D\\u043E\\u0441\\u0442\\u044C",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441",mac:"MAC \\u0430\\u0434\\u0440\\u0435\\u0441",cidrv4:"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64",base64url:"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64url",json_string:"JSON \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430",e164:"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0439 \\u043A\\u0430\\u0440\\u0442\\u044B",jwt:"JWT",template_literal:"\\u0432\\u0432\\u043E\\u0434"},o={nan:"NaN",number:"\\u0447\\u0438\\u0441\\u043B\\u043E",array:"\\u043C\\u0430\\u0441\\u0441\\u0438\\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C instanceof ${r.expected}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E ${s}`:`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ${i}, \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E ${s}`}case"invalid_value":return r.values.length===1?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ${R(r.values[0])}`:`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0430\\u0440\\u0438\\u0430\\u043D\\u0442: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C \\u043E\\u0434\\u043D\\u043E \\u0438\\u0437 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),c=gS(s,a.unit.one,a.unit.few,a.unit.many);return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u0431\\u043E\\u043B\\u044C\\u0448\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435"} \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ${i}${r.maximum.toString()} ${c}`}return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u0431\\u043E\\u043B\\u044C\\u0448\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435"} \\u0431\\u0443\\u0434\\u0435\\u0442 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),c=gS(s,a.unit.one,a.unit.few,a.unit.many);return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u043C\\u0430\\u043B\\u0435\\u043D\\u044C\\u043A\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${r.origin} \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ${i}${r.minimum.toString()} ${c}`}return`\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u043C\\u0430\\u043B\\u0435\\u043D\\u044C\\u043A\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ${r.origin} \\u0431\\u0443\\u0434\\u0435\\u0442 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u043D\\u0430\\u0447\\u0438\\u043D\\u0430\\u0442\\u044C\\u0441\\u044F \\u0441 "${i.prefix}"`:i.format==="ends_with"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0438\\u0432\\u0430\\u0442\\u044C\\u0441\\u044F \\u043D\\u0430 "${i.suffix}"`:i.format==="includes"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u0434\\u0435\\u0440\\u0436\\u0430\\u0442\\u044C "${i.includes}"`:i.format==="regex"?`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u043E\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u043E\\u0432\\u0430\\u0442\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ${i.pattern}`:`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u043E\\u0435 \\u0447\\u0438\\u0441\\u043B\\u043E: \\u0434\\u043E\\u043B\\u0436\\u043D\\u043E \\u0431\\u044B\\u0442\\u044C \\u043A\\u0440\\u0430\\u0442\\u043D\\u044B\\u043C ${r.divisor}`;case"unrecognized_keys":return`\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u043E\\u0437\\u043D\\u0430\\u043D\\u043D${r.keys.length>1?"\\u044B\\u0435":"\\u044B\\u0439"} \\u043A\\u043B\\u044E\\u0447${r.keys.length>1?"\\u0438":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0432 ${r.origin}`;case"invalid_union":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0435 \\u0432\\u0445\\u043E\\u0434\\u043D\\u044B\\u0435 \\u0434\\u0430\\u043D\\u043D\\u044B\\u0435";case"invalid_element":return`\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435 \\u0432 ${r.origin}`;default:return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0435 \\u0432\\u0445\\u043E\\u0434\\u043D\\u044B\\u0435 \\u0434\\u0430\\u043D\\u043D\\u044B\\u0435"}}};function vS(){return{localeError:ZI()}}var FI=()=>{let e={string:{unit:"znakov",verb:"ma\\u0165"},file:{unit:"bajtov",verb:"ma\\u0165"},array:{unit:"prvkov",verb:"ma\\u0165"},set:{unit:"prvkov",verb:"ma\\u0165"},map:{unit:"polo\\u017Eiek",verb:"ma\\u0165"}};function t(r){return e[r]??null}let n={regex:"regul\\xE1rny v\\xFDraz",email:"e-mailov\\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"d\\xE1tum a \\u010Das vo form\\xE1te ISO",date:"d\\xE1tum vo form\\xE1te ISO",time:"\\u010Das vo form\\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64",base64url:"re\\u0165azec zak\\xF3dovan\\xFD vo form\\xE1te base64url",json_string:"re\\u0165azec vo form\\xE1te JSON",e164:"\\u010D\\xEDslo E.164",credit_card:"\\u010D\\xEDslo kreditnej karty",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\\u010D\\xEDslo",string:"re\\u0165azec",function:"funkcia",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 instanceof ${r.expected}, obdr\\u017Ean\\xE9 ${s}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${i}, obdr\\u017Ean\\xE9 ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE9 ${R(r.values[0])}`:`Neplatn\\xFD vstup: o\\u010Dak\\xE1van\\xE1 jedna z hodn\\xF4t ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${r.origin??"hodnota"} mus\\xED ma\\u0165 ${i}${r.maximum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\\xEDli\\u0161 ve\\u013Ek\\xE1: ${r.origin??"hodnota"} mus\\xED by\\u0165 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${r.origin??"hodnota"} mus\\xED ma\\u0165 ${i}${r.minimum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\\xEDli\\u0161 mal\\xE1: ${r.origin??"hodnota"} mus\\xED by\\u0165 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neplatn\\xFD re\\u0165azec: mus\\xED za\\u010D\\xEDna\\u0165 na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\\xFD re\\u0165azec: mus\\xED kon\\u010Di\\u0165 na "${i.suffix}"`:i.format==="includes"?`Neplatn\\xFD re\\u0165azec: mus\\xED obsahova\\u0165 "${i.includes}"`:i.format==="regex"?`Neplatn\\xFD re\\u0165azec: mus\\xED zodpoveda\\u0165 vzoru ${i.pattern}`:`Neplatn\\xFD form\\xE1t ${n[i.format]??r.format}`}case"not_multiple_of":return`Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED by\\u0165 n\\xE1sobkom ${r.divisor}`;case"unrecognized_keys":return`Nezn\\xE1me kl\\xFA\\u010De: ${_(r.keys,", ")}`;case"invalid_key":return`Neplatn\\xFD kl\\xFA\\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\\xFD vstup";case"invalid_element":return`Neplatn\\xE1 hodnota v ${r.origin}`;default:return"Neplatn\\xFD vstup"}}};function _S(){return{localeError:FI()}}var KI=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n={regex:"vnos",email:"e-po\\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \\u010Das",date:"ISO datum",time:"ISO \\u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \\u0161tevilka",credit_card:"\\u0161tevilka kreditne kartice",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\\u010Dakovano ${R(r.values[0])}`:`Neveljavna mo\\u017Enost: pri\\u010Dakovano eno izmed ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${i}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\\u010Dakovano, da bo ${r.origin??"vrednost"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\\u010Dakovano, da bo ${r.origin} imelo ${i}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\\u010Dakovano, da bo ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Neveljaven niz: mora se za\\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${n[i.format]??r.format}`}case"not_multiple_of":return`Neveljavno \\u0161tevilo: mora biti ve\\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\\u010Di":" klju\\u010D"}: ${_(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function yS(){return{localeError:KI()}}var JI=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\\xE5lla"},set:{unit:"objekt",verb:"att inneh\\xE5lla"},map:{unit:"objekt",verb:"att inneh\\xE5lla"}};function t(r){return e[r]??null}let n={regex:"regulj\\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\\xE4ng",base64url:"base64url-kodad str\\xE4ng",json_string:"JSON-str\\xE4ng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\\xF6rv\\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${i}, fick ${s}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\\xF6rv\\xE4ntat ${R(r.values[0])}`:`Ogiltigt val: f\\xF6rv\\xE4ntade en av ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\\xF6r stor(t): f\\xF6rv\\xE4ntade ${r.origin??"v\\xE4rdet"} att ha ${i}${r.maximum.toString()} ${a.unit??"element"}`:`F\\xF6r stor(t): f\\xF6rv\\xE4ntat ${r.origin??"v\\xE4rdet"} att ha ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`F\\xF6r lite(t): f\\xF6rv\\xE4ntade ${r.origin??"v\\xE4rdet"} att ha ${i}${r.minimum.toString()} ${a.unit}`:`F\\xF6r lite(t): f\\xF6rv\\xE4ntade ${r.origin??"v\\xE4rdet"} att ha ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ogiltig str\\xE4ng: m\\xE5ste b\\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\\xE4ng: m\\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\\xE4ng: m\\xE5ste inneh\\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\\xE4ng: m\\xE5ste matcha m\\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${n[i.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"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\\xE4rde i ${r.origin??"v\\xE4rdet"}`;default:return"Ogiltig input"}}};function SS(){return{localeError:JI()}}var BI=()=>{let e={string:{unit:"\\u0B8E\\u0BB4\\u0BC1\\u0BA4\\u0BCD\\u0BA4\\u0BC1\\u0B95\\u0BCD\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},file:{unit:"\\u0BAA\\u0BC8\\u0B9F\\u0BCD\\u0B9F\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},array:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},set:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},map:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"}};function t(r){return e[r]??null}let n={regex:"\\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1",email:"\\u0BAE\\u0BBF\\u0BA9\\u0BCD\\u0BA9\\u0B9E\\u0BCD\\u0B9A\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD",date:"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF",time:"ISO \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD",duration:"ISO \\u0B95\\u0BBE\\u0BB2 \\u0B85\\u0BB3\\u0BB5\\u0BC1",ipv4:"IPv4 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",ipv6:"IPv6 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",mac:"MAC \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",cidrv4:"IPv4 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1",cidrv6:"IPv6 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1",base64:"base64-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD",base64url:"base64url-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD",json_string:"JSON \\u0B9A\\u0BB0\\u0BAE\\u0BCD",e164:"E.164 \\u0B8E\\u0BA3\\u0BCD",credit_card:"\\u0B95\\u0B9F\\u0BA9\\u0BCD \\u0B85\\u0B9F\\u0BCD\\u0B9F\\u0BC8 \\u0B8E\\u0BA3\\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\\u0B8E\\u0BA3\\u0BCD",array:"\\u0B85\\u0BA3\\u0BBF",null:"\\u0BB5\\u0BC6\\u0BB1\\u0BC1\\u0BAE\\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 instanceof ${r.expected}, \\u0BAA\\u0BC6\\u0BB1\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${s}`:`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${i}, \\u0BAA\\u0BC6\\u0BB1\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${s}`}case"invalid_value":return r.values.length===1?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${R(r.values[0])}`:`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BB5\\u0BBF\\u0BB0\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BAE\\u0BCD: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${_(r.values,"|")} \\u0B87\\u0BB2\\u0BCD \\u0B92\\u0BA9\\u0BCD\\u0BB1\\u0BC1`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0BAE\\u0BBF\\u0B95 \\u0BAA\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${r.origin??"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1"} ${i}${r.maximum.toString()} ${a.unit??"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD"} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:`\\u0BAE\\u0BBF\\u0B95 \\u0BAA\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${r.origin??"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1"} ${i}${r.maximum.toString()} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0BAE\\u0BBF\\u0B95\\u0B9A\\u0BCD \\u0B9A\\u0BBF\\u0BB1\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${r.origin} ${i}${r.minimum.toString()} ${a.unit} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:`\\u0BAE\\u0BBF\\u0B95\\u0B9A\\u0BCD \\u0B9A\\u0BBF\\u0BB1\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ${r.origin} ${i}${r.minimum.toString()} \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "${i.prefix}" \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BCA\\u0B9F\\u0B99\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:i.format==="ends_with"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "${i.suffix}" \\u0B87\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B9F\\u0BBF\\u0BB5\\u0B9F\\u0BC8\\u0BAF \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:i.format==="includes"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "${i.includes}" \\u0B90 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0B9F\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:i.format==="regex"?`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: ${i.pattern} \\u0BAE\\u0BC1\\u0BB1\\u0BC8\\u0BAA\\u0BBE\\u0B9F\\u0BCD\\u0B9F\\u0BC1\\u0B9F\\u0BA9\\u0BCD \\u0BAA\\u0BCA\\u0BB0\\u0BC1\\u0BA8\\u0BCD\\u0BA4 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`:`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B8E\\u0BA3\\u0BCD: ${r.divisor} \\u0B87\\u0BA9\\u0BCD \\u0BAA\\u0BB2\\u0BAE\\u0BBE\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD`;case"unrecognized_keys":return`\\u0B85\\u0B9F\\u0BC8\\u0BAF\\u0BBE\\u0BB3\\u0BAE\\u0BCD \\u0BA4\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BBE\\u0BA4 \\u0BB5\\u0BBF\\u0B9A\\u0BC8${r.keys.length>1?"\\u0B95\\u0BB3\\u0BCD":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BB5\\u0BBF\\u0B9A\\u0BC8`;case"invalid_union":return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1";case"invalid_element":return`${r.origin} \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1`;default:return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1"}}};function bS(){return{localeError:BI()}}var HI=()=>{let e={string:{unit:"\\u0E15\\u0E31\\u0E27\\u0E2D\\u0E31\\u0E01\\u0E29\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},file:{unit:"\\u0E44\\u0E1A\\u0E15\\u0E4C",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},array:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},set:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},map:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"}};function t(r){return e[r]??null}let n={regex:"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19",email:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48\\u0E2D\\u0E35\\u0E40\\u0E21\\u0E25",url:"URL",emoji:"\\u0E2D\\u0E34\\u0E42\\u0E21\\u0E08\\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",date:"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E41\\u0E1A\\u0E1A ISO",time:"\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",duration:"\\u0E0A\\u0E48\\u0E27\\u0E07\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",ipv4:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv4",ipv6:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv6",mac:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 MAC",cidrv4:"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv4",cidrv6:"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv6",base64:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64",base64url:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64 \\u0E2A\\u0E33\\u0E2B\\u0E23\\u0E31\\u0E1A URL",json_string:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A JSON",e164:"\\u0E40\\u0E1A\\u0E2D\\u0E23\\u0E4C\\u0E42\\u0E17\\u0E23\\u0E28\\u0E31\\u0E1E\\u0E17\\u0E4C\\u0E23\\u0E30\\u0E2B\\u0E27\\u0E48\\u0E32\\u0E07\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E17\\u0E28 (E.164)",credit_card:"\\u0E2B\\u0E21\\u0E32\\u0E22\\u0E40\\u0E25\\u0E02\\u0E1A\\u0E31\\u0E15\\u0E23\\u0E40\\u0E04\\u0E23\\u0E14\\u0E34\\u0E15",jwt:"\\u0E42\\u0E17\\u0E40\\u0E04\\u0E19 JWT",template_literal:"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19"},o={nan:"NaN",number:"\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02",array:"\\u0E2D\\u0E32\\u0E23\\u0E4C\\u0E40\\u0E23\\u0E22\\u0E4C (Array)",null:"\\u0E44\\u0E21\\u0E48\\u0E21\\u0E35\\u0E04\\u0E48\\u0E32 (null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E20\\u0E17\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 instanceof ${r.expected} \\u0E41\\u0E15\\u0E48\\u0E44\\u0E14\\u0E49\\u0E23\\u0E31\\u0E1A ${s}`:`\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E20\\u0E17\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ${i} \\u0E41\\u0E15\\u0E48\\u0E44\\u0E14\\u0E49\\u0E23\\u0E31\\u0E1A ${s}`}case"invalid_value":return r.values.length===1?`\\u0E04\\u0E48\\u0E32\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ${R(r.values[0])}`:`\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E37\\u0E2D\\u0E01\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19\\u0E2B\\u0E19\\u0E36\\u0E48\\u0E07\\u0E43\\u0E19 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"\\u0E44\\u0E21\\u0E48\\u0E40\\u0E01\\u0E34\\u0E19":"\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32",a=t(r.origin);return a?`\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${r.origin??"\\u0E04\\u0E48\\u0E32"} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${i} ${r.maximum.toString()} ${a.unit??"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23"}`:`\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${r.origin??"\\u0E04\\u0E48\\u0E32"} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?"\\u0E2D\\u0E22\\u0E48\\u0E32\\u0E07\\u0E19\\u0E49\\u0E2D\\u0E22":"\\u0E21\\u0E32\\u0E01\\u0E01\\u0E27\\u0E48\\u0E32",a=t(r.origin);return a?`\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${r.origin} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${i} ${r.minimum.toString()} ${a.unit}`:`\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ${r.origin} \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E02\\u0E36\\u0E49\\u0E19\\u0E15\\u0E49\\u0E19\\u0E14\\u0E49\\u0E27\\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E25\\u0E07\\u0E17\\u0E49\\u0E32\\u0E22\\u0E14\\u0E49\\u0E27\\u0E22 "${i.suffix}"`:i.format==="includes"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E21\\u0E35 "${i.includes}" \\u0E2D\\u0E22\\u0E39\\u0E48\\u0E43\\u0E19\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21`:i.format==="regex"?`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E15\\u0E49\\u0E2D\\u0E07\\u0E15\\u0E23\\u0E07\\u0E01\\u0E31\\u0E1A\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E17\\u0E35\\u0E48\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14 ${i.pattern}`:`\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E15\\u0E49\\u0E2D\\u0E07\\u0E40\\u0E1B\\u0E47\\u0E19\\u0E08\\u0E33\\u0E19\\u0E27\\u0E19\\u0E17\\u0E35\\u0E48\\u0E2B\\u0E32\\u0E23\\u0E14\\u0E49\\u0E27\\u0E22 ${r.divisor} \\u0E44\\u0E14\\u0E49\\u0E25\\u0E07\\u0E15\\u0E31\\u0E27`;case"unrecognized_keys":return`\\u0E1E\\u0E1A\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E17\\u0E35\\u0E48\\u0E44\\u0E21\\u0E48\\u0E23\\u0E39\\u0E49\\u0E08\\u0E31\\u0E01: ${_(r.keys,", ")}`;case"invalid_key":return`\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E43\\u0E19 ${r.origin}`;case"invalid_union":return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E44\\u0E21\\u0E48\\u0E15\\u0E23\\u0E07\\u0E01\\u0E31\\u0E1A\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E22\\u0E39\\u0E40\\u0E19\\u0E35\\u0E22\\u0E19\\u0E17\\u0E35\\u0E48\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14\\u0E44\\u0E27\\u0E49";case"invalid_element":return`\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E43\\u0E19 ${r.origin}`;default:return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07"}}};function $S(){return{localeError:HI()}}var YI=()=>{let e={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function t(r){return e[r]??null}let n={regex:"giri\\u015F",email:"e-po\\xE7ta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \\u015Fifrlenen setir",base64url:"base64url bilen \\u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\\u0148 nomeri",jwt:"JWT",template_literal:"\\u015Fablon"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return`N\\xE4dogry baha: gara\\u015Fylan ${i} \\xFDerine ${s} alyndy`}case"invalid_value":return r.values.length===1?`N\\xE4dogry baha: ${R(r.values[0])} bolmaly`:`N\\xE4dogry sa\\xFDlaw: a\\u015Fakdakylardan biri bolmaly: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Has uly: gara\\u015Fyl\\xFDan ${r.origin??"baha"} ${i} ${r.maximum.toString()} ${a.unit??"element"}`:`Has uly: gara\\u015Fyl\\xFDan ${r.origin??"baha"} ${i} ${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${r.origin} ${i} ${r.minimum.toString()} ${a.unit}`:`Has ki\\xE7i: gara\\u015Fyl\\xFDan ${r.origin} ${i} ${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`N\\xE4dogry setir: "${i.prefix}" bilen ba\\u015Flamaly`:i.format==="ends_with"?`N\\xE4dogry setir: "${i.suffix}" bilen gutarmaly`:i.format==="includes"?`N\\xE4dogry setir: "${i.includes}" saklamaly`:i.format==="regex"?`N\\xE4dogry setir: ${i.pattern} nusga la\\xFDyk bolmaly`:`N\\xE4dogry ${n[i.format]??r.format}`}case"not_multiple_of":return`N\\xE4dogry san: ${r.divisor} bilen galyndysyz b\\xF6l\\xFCnmeli`;case"unrecognized_keys":return`Tanalma\\xFDan a\\xE7ar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\\xE7inde n\\xE4dogry a\\xE7ar`;case"invalid_union":return"N\\xE4dogry baha";case"invalid_element":return`${r.origin} i\\xE7inde n\\xE4dogry baha`;default:return"N\\xE4dogry baha"}}};function zS(){return{localeError:YI()}}var GI=()=>{let e={string:{unit:"karakter",verb:"olmal\\u0131"},file:{unit:"bayt",verb:"olmal\\u0131"},array:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"},set:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"},map:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"}};function t(r){return e[r]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aral\\u0131\\u011F\\u0131",cidrv6:"IPv6 aral\\u0131\\u011F\\u0131",base64:"base64 ile \\u015Fifrelenmi\\u015F metin",base64url:"base64url ile \\u015Fifrelenmi\\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\\u0131s\\u0131",credit_card:"kredi kart\\u0131 numaras\\u0131",jwt:"JWT",template_literal:"\\u015Eablon dizesi"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\\xE7ersiz de\\u011Fer: beklenen instanceof ${r.expected}, al\\u0131nan ${s}`:`Ge\\xE7ersiz de\\u011Fer: beklenen ${i}, al\\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`Ge\\xE7ersiz de\\u011Fer: beklenen ${R(r.values[0])}`:`Ge\\xE7ersiz se\\xE7enek: a\\u015Fa\\u011F\\u0131dakilerden biri olmal\\u0131: ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\xC7ok b\\xFCy\\xFCk: beklenen ${r.origin??"de\\u011Fer"} ${i}${r.maximum.toString()} ${a.unit??"\\xF6\\u011Fe"}`:`\\xC7ok b\\xFCy\\xFCk: beklenen ${r.origin??"de\\u011Fer"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Ge\\xE7ersiz metin: "${i.prefix}" ile ba\\u015Flamal\\u0131`:i.format==="ends_with"?`Ge\\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\\xE7ersiz metin: "${i.includes}" i\\xE7ermeli`:i.format==="regex"?`Ge\\xE7ersiz metin: ${i.pattern} desenine uymal\\u0131`:`Ge\\xE7ersiz ${n[i.format]??r.format}`}case"not_multiple_of":return`Ge\\xE7ersiz say\\u0131: ${r.divisor} ile tam b\\xF6l\\xFCnebilmeli`;case"unrecognized_keys":return`Tan\\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\\xE7inde ge\\xE7ersiz anahtar`;case"invalid_union":return"Ge\\xE7ersiz de\\u011Fer";case"invalid_element":return`${r.origin} i\\xE7inde ge\\xE7ersiz de\\u011Fer`;default:return"Ge\\xE7ersiz de\\u011Fer"}}};function RS(){return{localeError:GI()}}var WI=()=>{let e={string:{unit:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},file:{unit:"\\u0431\\u0430\\u0439\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},array:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},set:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},map:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"}};function t(r){return e[r]??null}let n={regex:"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456",email:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u0435\\u043B\\u0435\\u043A\\u0442\\u0440\\u043E\\u043D\\u043D\\u043E\\u0457 \\u043F\\u043E\\u0448\\u0442\\u0438",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u0434\\u0437\\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0434\\u0430\\u0442\\u0430 \\u0442\\u0430 \\u0447\\u0430\\u0441 ISO",date:"\\u0434\\u0430\\u0442\\u0430 ISO",time:"\\u0447\\u0430\\u0441 ISO",duration:"\\u0442\\u0440\\u0438\\u0432\\u0430\\u043B\\u0456\\u0441\\u0442\\u044C ISO",ipv4:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv4",ipv6:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv6",mac:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 MAC",cidrv4:"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv4",cidrv6:"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv6",base64:"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64",base64url:"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64url",json_string:"\\u0440\\u044F\\u0434\\u043E\\u043A JSON",e164:"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164",credit_card:"\\u043D\\u043E\\u043C\\u0435\\u0440 \\u043A\\u0440\\u0435\\u0434\\u0438\\u0442\\u043D\\u043E\\u0457 \\u043A\\u0430\\u0440\\u0442\\u043A\\u0438",jwt:"JWT",template_literal:"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456"},o={nan:"NaN",number:"\\u0447\\u0438\\u0441\\u043B\\u043E",array:"\\u043C\\u0430\\u0441\\u0438\\u0432"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F instanceof ${r.expected}, \\u043E\\u0442\\u0440\\u0438\\u043C\\u0430\\u043D\\u043E ${s}`:`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F ${i}, \\u043E\\u0442\\u0440\\u0438\\u043C\\u0430\\u043D\\u043E ${s}`}case"invalid_value":return r.values.length===1?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F ${R(r.values[0])}`:`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0456\\u044F: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F \\u043E\\u0434\\u043D\\u0435 \\u0437 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u0432\\u0435\\u043B\\u0438\\u043A\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432"}`:`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u0432\\u0435\\u043B\\u0438\\u043A\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${r.origin??"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F"} \\u0431\\u0443\\u0434\\u0435 ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ${r.origin} \\u0431\\u0443\\u0434\\u0435 ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043F\\u043E\\u0447\\u0438\\u043D\\u0430\\u0442\\u0438\\u0441\\u044F \\u0437 "${i.prefix}"`:i.format==="ends_with"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0456\\u043D\\u0447\\u0443\\u0432\\u0430\\u0442\\u0438\\u0441\\u044F \\u043D\\u0430 "${i.suffix}"`:i.format==="includes"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043C\\u0456\\u0441\\u0442\\u0438\\u0442\\u0438 "${i.includes}"`:i.format==="regex"?`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0432\\u0456\\u0434\\u043F\\u043E\\u0432\\u0456\\u0434\\u0430\\u0442\\u0438 \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ${i.pattern}`:`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0435 \\u0447\\u0438\\u0441\\u043B\\u043E: \\u043F\\u043E\\u0432\\u0438\\u043D\\u043D\\u043E \\u0431\\u0443\\u0442\\u0438 \\u043A\\u0440\\u0430\\u0442\\u043D\\u0438\\u043C ${r.divisor}`;case"unrecognized_keys":return`\\u041D\\u0435\\u0440\\u043E\\u0437\\u043F\\u0456\\u0437\\u043D\\u0430\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447${r.keys.length>1?"\\u0456":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0443 ${r.origin}`;case"invalid_union":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456";case"invalid_element":return`\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F \\u0443 ${r.origin}`;default:return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456"}}};function cc(){return{localeError:WI()}}function kS(){return cc()}var XI=()=>{let e={string:{unit:"\\u062D\\u0631\\u0648\\u0641",verb:"\\u06C1\\u0648\\u0646\\u0627"},file:{unit:"\\u0628\\u0627\\u0626\\u0679\\u0633",verb:"\\u06C1\\u0648\\u0646\\u0627"},array:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"},set:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"},map:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"}};function t(r){return e[r]??null}let n={regex:"\\u0627\\u0646 \\u067E\\u0679",email:"\\u0627\\u06CC \\u0645\\u06CC\\u0644 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",url:"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC",uuid:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",uuidv4:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 4",uuidv6:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 6",nanoid:"\\u0646\\u06CC\\u0646\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",guid:"\\u062C\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",cuid:"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",cuid2:"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC 2",ulid:"\\u06CC\\u0648 \\u0627\\u06CC\\u0644 \\u0622\\u0626\\u06CC \\u0688\\u06CC",xid:"\\u0627\\u06CC\\u06A9\\u0633 \\u0622\\u0626\\u06CC \\u0688\\u06CC",ksuid:"\\u06A9\\u06D2 \\u0627\\u06CC\\u0633 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",datetime:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0688\\u06CC\\u0679 \\u0679\\u0627\\u0626\\u0645",date:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u062A\\u0627\\u0631\\u06CC\\u062E",time:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0648\\u0642\\u062A",duration:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0645\\u062F\\u062A",ipv4:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",ipv6:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",mac:"\\u0627\\u06CC\\u0645 \\u0627\\u06D2 \\u0633\\u06CC \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",cidrv4:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0631\\u06CC\\u0646\\u062C",cidrv6:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0631\\u06CC\\u0646\\u062C",base64:"\\u0628\\u06CC\\u0633 64 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF",base64url:"\\u0628\\u06CC\\u0633 64 \\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF",json_string:"\\u062C\\u06D2 \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0627\\u06CC\\u0646 \\u0633\\u0679\\u0631\\u0646\\u06AF",e164:"\\u0627\\u06CC 164 \\u0646\\u0645\\u0628\\u0631",credit_card:"\\u06A9\\u0631\\u06CC\\u0688\\u0679 \\u06A9\\u0627\\u0631\\u0688 \\u0646\\u0645\\u0628\\u0631",jwt:"\\u062C\\u06D2 \\u0688\\u0628\\u0644\\u06CC\\u0648 \\u0679\\u06CC",template_literal:"\\u0627\\u0646 \\u067E\\u0679"},o={nan:"NaN",number:"\\u0646\\u0645\\u0628\\u0631",array:"\\u0622\\u0631\\u06D2",null:"\\u0646\\u0644"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: instanceof ${r.expected} \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627\\u060C ${s} \\u0645\\u0648\\u0635\\u0648\\u0644 \\u06C1\\u0648\\u0627`:`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ${i} \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627\\u060C ${s} \\u0645\\u0648\\u0635\\u0648\\u0644 \\u06C1\\u0648\\u0627`}case"invalid_value":return r.values.length===1?`\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ${R(r.values[0])} \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`:`\\u063A\\u0644\\u0637 \\u0622\\u067E\\u0634\\u0646: ${_(r.values,"|")} \\u0645\\u06CC\\u06BA \\u0633\\u06D2 \\u0627\\u06CC\\u06A9 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ${r.origin??"\\u0648\\u06CC\\u0644\\u06CC\\u0648"} \\u06A9\\u06D2 ${i}${r.maximum.toString()} ${a.unit??"\\u0639\\u0646\\u0627\\u0635\\u0631"} \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2`:`\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ${r.origin??"\\u0648\\u06CC\\u0644\\u06CC\\u0648"} \\u06A9\\u0627 ${i}${r.maximum.toString()} \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ${r.origin} \\u06A9\\u06D2 ${i}${r.minimum.toString()} ${a.unit} \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2`:`\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ${r.origin} \\u06A9\\u0627 ${i}${r.minimum.toString()} \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "${i.prefix}" \\u0633\\u06D2 \\u0634\\u0631\\u0648\\u0639 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:i.format==="ends_with"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "${i.suffix}" \\u067E\\u0631 \\u062E\\u062A\\u0645 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:i.format==="includes"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "${i.includes}" \\u0634\\u0627\\u0645\\u0644 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:i.format==="regex"?`\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: \\u067E\\u06CC\\u0679\\u0631\\u0646 ${i.pattern} \\u0633\\u06D2 \\u0645\\u06CC\\u0686 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`:`\\u063A\\u0644\\u0637 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u063A\\u0644\\u0637 \\u0646\\u0645\\u0628\\u0631: ${r.divisor} \\u06A9\\u0627 \\u0645\\u0636\\u0627\\u0639\\u0641 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2`;case"unrecognized_keys":return`\\u063A\\u06CC\\u0631 \\u062A\\u0633\\u0644\\u06CC\\u0645 \\u0634\\u062F\\u06C1 \\u06A9\\u06CC${r.keys.length>1?"\\u0632":""}: ${_(r.keys,"\\u060C ")}`;case"invalid_key":return`${r.origin} \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u06A9\\u06CC`;case"invalid_union":return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679";case"invalid_element":return`${r.origin} \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u0648\\u06CC\\u0644\\u06CC\\u0648`;default:return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679"}}};function wS(){return{localeError:XI()}}var QI=()=>{let e={string:{unit:"belgi",verb:"bo\\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\\u2018lishi kerak"},array:{unit:"element",verb:"bo\\u2018lishi kerak"},set:{unit:"element",verb:"bo\\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\\u2018lishi kerak"}};function t(r){return e[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\\u2018g\\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\\u2018g\\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return r.values.length===1?`Noto\\u2018g\\u2018ri kirish: kutilgan ${R(r.values[0])}`:`Noto\\u2018g\\u2018ri variant: quyidagilardan biri kutilgan ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Noto\\u2018g\\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\\u2018g\\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\\u2018g\\u2018ri satr: "${i.includes}" ni o\\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\\u2018g\\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\\u2018g\\u2018ri ${n[i.format]??r.format}`}case"not_multiple_of":return`Noto\\u2018g\\u2018ri raqam: ${r.divisor} ning karralisi bo\\u2018lishi kerak`;case"unrecognized_keys":return`Noma\\u2019lum kalit${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\\u2018g\\u2018ri`;case"invalid_union":return"Noto\\u2018g\\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\\u2018g\\u2018ri qiymat`;default:return"Noto\\u2018g\\u2018ri kirish"}}};function IS(){return{localeError:QI()}}var eT=()=>{let e={string:{unit:"k\\xFD t\\u1EF1",verb:"c\\xF3"},file:{unit:"byte",verb:"c\\xF3"},array:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"},set:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"},map:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"}};function t(r){return e[r]??null}let n={regex:"\\u0111\\u1EA7u v\\xE0o",email:"\\u0111\\u1ECBa ch\\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\\xE0y gi\\u1EDD ISO",date:"ng\\xE0y ISO",time:"gi\\u1EDD ISO",duration:"kho\\u1EA3ng th\\u1EDDi gian ISO",ipv4:"\\u0111\\u1ECBa ch\\u1EC9 IPv4",ipv6:"\\u0111\\u1ECBa ch\\u1EC9 IPv6",mac:"\\u0111\\u1ECBa ch\\u1EC9 MAC",cidrv4:"d\\u1EA3i IPv4",cidrv6:"d\\u1EA3i IPv6",base64:"chu\\u1ED7i m\\xE3 h\\xF3a base64",base64url:"chu\\u1ED7i m\\xE3 h\\xF3a base64url",json_string:"chu\\u1ED7i JSON",e164:"s\\u1ED1 E.164",credit_card:"s\\u1ED1 th\\u1EBB t\\xEDn d\\u1EE5ng",jwt:"JWT",template_literal:"\\u0111\\u1EA7u v\\xE0o"},o={nan:"NaN",number:"s\\u1ED1",array:"m\\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i instanceof ${r.expected}, nh\\u1EADn \\u0111\\u01B0\\u1EE3c ${s}`:`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ${i}, nh\\u1EADn \\u0111\\u01B0\\u1EE3c ${s}`}case"invalid_value":return r.values.length===1?`\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ${R(r.values[0])}`:`T\\xF9y ch\\u1ECDn kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i m\\u1ED9t trong c\\xE1c gi\\xE1 tr\\u1ECB ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ${r.origin??"gi\\xE1 tr\\u1ECB"} ${a.verb} ${i}${r.maximum.toString()} ${a.unit??"ph\\u1EA7n t\\u1EED"}`:`Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ${r.origin??"gi\\xE1 tr\\u1ECB"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ${r.origin} ${a.verb} ${i}${r.minimum.toString()} ${a.unit}`:`Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i b\\u1EAFt \\u0111\\u1EA7u b\\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i k\\u1EBFt th\\xFAc b\\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i bao g\\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i kh\\u1EDBp v\\u1EDBi m\\u1EABu ${i.pattern}`:`${n[i.format]??r.format} kh\\xF4ng h\\u1EE3p l\\u1EC7`}case"not_multiple_of":return`S\\u1ED1 kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i l\\xE0 b\\u1ED9i s\\u1ED1 c\\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\\xF3a kh\\xF4ng \\u0111\\u01B0\\u1EE3c nh\\u1EADn d\\u1EA1ng: ${_(r.keys,", ")}`;case"invalid_key":return`Kh\\xF3a kh\\xF4ng h\\u1EE3p l\\u1EC7 trong ${r.origin}`;case"invalid_union":return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7";case"invalid_element":return`Gi\\xE1 tr\\u1ECB kh\\xF4ng h\\u1EE3p l\\u1EC7 trong ${r.origin}`;default:return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7"}}};function TS(){return{localeError:eT()}}var tT=()=>{let e={string:{unit:"\\u5B57\\u7B26",verb:"\\u5305\\u542B"},file:{unit:"\\u5B57\\u8282",verb:"\\u5305\\u542B"},array:{unit:"\\u9879",verb:"\\u5305\\u542B"},set:{unit:"\\u9879",verb:"\\u5305\\u542B"},map:{unit:"\\u9879",verb:"\\u5305\\u542B"}};function t(r){return e[r]??null}let n={regex:"\\u8F93\\u5165",email:"\\u7535\\u5B50\\u90AE\\u4EF6",url:"URL",emoji:"\\u8868\\u60C5\\u7B26\\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\\u65E5\\u671F\\u65F6\\u95F4",date:"ISO\\u65E5\\u671F",time:"ISO\\u65F6\\u95F4",duration:"ISO\\u65F6\\u957F",ipv4:"IPv4\\u5730\\u5740",ipv6:"IPv6\\u5730\\u5740",mac:"MAC\\u5730\\u5740",cidrv4:"IPv4\\u7F51\\u6BB5",cidrv6:"IPv6\\u7F51\\u6BB5",base64:"base64\\u7F16\\u7801\\u5B57\\u7B26\\u4E32",base64url:"base64url\\u7F16\\u7801\\u5B57\\u7B26\\u4E32",json_string:"JSON\\u5B57\\u7B26\\u4E32",e164:"E.164\\u53F7\\u7801",credit_card:"\\u4FE1\\u7528\\u5361\\u53F7",jwt:"JWT",template_literal:"\\u8F93\\u5165"},o={nan:"NaN",number:"\\u6570\\u5B57",array:"\\u6570\\u7EC4",null:"\\u7A7A\\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B instanceof ${r.expected}\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536 ${s}`:`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ${i}\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536 ${s}`}case"invalid_value":return r.values.length===1?`\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ${R(r.values[0])}`:`\\u65E0\\u6548\\u9009\\u9879\\uFF1A\\u671F\\u671B\\u4EE5\\u4E0B\\u4E4B\\u4E00 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ${r.origin??"\\u503C"} ${i}${r.maximum.toString()} ${a.unit??"\\u4E2A\\u5143\\u7D20"}`:`\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ${r.origin??"\\u503C"} ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ${r.origin} ${i}${r.minimum.toString()} ${a.unit}`:`\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ${r.origin} ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 "${i.prefix}" \\u5F00\\u5934`:i.format==="ends_with"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 "${i.suffix}" \\u7ED3\\u5C3E`:i.format==="includes"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u5305\\u542B "${i.includes}"`:i.format==="regex"?`\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u6EE1\\u8DB3\\u6B63\\u5219\\u8868\\u8FBE\\u5F0F ${i.pattern}`:`\\u65E0\\u6548${n[i.format]??r.format}`}case"not_multiple_of":return`\\u65E0\\u6548\\u6570\\u5B57\\uFF1A\\u5FC5\\u987B\\u662F ${r.divisor} \\u7684\\u500D\\u6570`;case"unrecognized_keys":return`\\u51FA\\u73B0\\u672A\\u77E5\\u7684\\u952E(key): ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \\u4E2D\\u7684\\u952E(key)\\u65E0\\u6548`;case"invalid_union":return"\\u65E0\\u6548\\u8F93\\u5165";case"invalid_element":return`${r.origin} \\u4E2D\\u5305\\u542B\\u65E0\\u6548\\u503C(value)`;default:return"\\u65E0\\u6548\\u8F93\\u5165"}}};function xS(){return{localeError:tT()}}var rT=()=>{let e={string:{unit:"\\u5B57\\u5143",verb:"\\u64C1\\u6709"},file:{unit:"\\u4F4D\\u5143\\u7D44",verb:"\\u64C1\\u6709"},array:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"},set:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"},map:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"}};function t(r){return e[r]??null}let n={regex:"\\u8F38\\u5165",email:"\\u90F5\\u4EF6\\u5730\\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u65E5\\u671F\\u6642\\u9593",date:"ISO \\u65E5\\u671F",time:"ISO \\u6642\\u9593",duration:"ISO \\u671F\\u9593",ipv4:"IPv4 \\u4F4D\\u5740",ipv6:"IPv6 \\u4F4D\\u5740",mac:"MAC \\u4F4D\\u5740",cidrv4:"IPv4 \\u7BC4\\u570D",cidrv6:"IPv6 \\u7BC4\\u570D",base64:"base64 \\u7DE8\\u78BC\\u5B57\\u4E32",base64url:"base64url \\u7DE8\\u78BC\\u5B57\\u4E32",json_string:"JSON \\u5B57\\u4E32",e164:"E.164 \\u6578\\u503C",credit_card:"\\u4FE1\\u7528\\u5361\\u865F",jwt:"JWT",template_literal:"\\u8F38\\u5165"},o={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA instanceof ${r.expected}\\uFF0C\\u4F46\\u6536\\u5230 ${s}`:`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${i}\\uFF0C\\u4F46\\u6536\\u5230 ${s}`}case"invalid_value":return r.values.length===1?`\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ${R(r.values[0])}`:`\\u7121\\u6548\\u7684\\u9078\\u9805\\uFF1A\\u9810\\u671F\\u70BA\\u4EE5\\u4E0B\\u5176\\u4E2D\\u4E4B\\u4E00 ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ${r.origin??"\\u503C"} \\u61C9\\u70BA ${i}${r.maximum.toString()} ${a.unit??"\\u500B\\u5143\\u7D20"}`:`\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ${r.origin??"\\u503C"} \\u61C9\\u70BA ${i}${r.maximum.toString()}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ${r.origin} \\u61C9\\u70BA ${i}${r.minimum.toString()} ${a.unit}`:`\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ${r.origin} \\u61C9\\u70BA ${i}${r.minimum.toString()}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 "${i.prefix}" \\u958B\\u982D`:i.format==="ends_with"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 "${i.suffix}" \\u7D50\\u5C3E`:i.format==="includes"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u5305\\u542B "${i.includes}"`:i.format==="regex"?`\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u7B26\\u5408\\u683C\\u5F0F ${i.pattern}`:`\\u7121\\u6548\\u7684 ${n[i.format]??r.format}`}case"not_multiple_of":return`\\u7121\\u6548\\u7684\\u6578\\u5B57\\uFF1A\\u5FC5\\u9808\\u70BA ${r.divisor} \\u7684\\u500D\\u6578`;case"unrecognized_keys":return`\\u7121\\u6CD5\\u8B58\\u5225\\u7684\\u9375\\u503C${r.keys.length>1?"\\u5011":""}\\uFF1A${_(r.keys,"\\u3001")}`;case"invalid_key":return`${r.origin} \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u9375\\u503C`;case"invalid_union":return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C";case"invalid_element":return`${r.origin} \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u503C`;default:return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C"}}};function ES(){return{localeError:rT()}}var nT=()=>{let e={string:{unit:"\\xE0mi",verb:"n\\xED"},file:{unit:"bytes",verb:"n\\xED"},array:{unit:"nkan",verb:"n\\xED"},set:{unit:"nkan",verb:"n\\xED"},map:{unit:"nkan",verb:"n\\xED"}};function t(r){return e[r]??null}let n={regex:"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9",email:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC \\xECm\\u1EB9\\u0301l\\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\xE0k\\xF3k\\xF2 ISO",date:"\\u1ECDj\\u1ECD\\u0301 ISO",time:"\\xE0k\\xF3k\\xF2 ISO",duration:"\\xE0k\\xF3k\\xF2 t\\xF3 p\\xE9 ISO",ipv4:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv4",ipv6:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv6",mac:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC MAC",cidrv4:"\\xE0gb\\xE8gb\\xE8 IPv4",cidrv6:"\\xE0gb\\xE8gb\\xE8 IPv6",base64:"\\u1ECD\\u0300r\\u1ECD\\u0300 t\\xED a k\\u1ECD\\u0301 n\\xED base64",base64url:"\\u1ECD\\u0300r\\u1ECD\\u0300 base64url",json_string:"\\u1ECD\\u0300r\\u1ECD\\u0300 JSON",e164:"n\\u1ECD\\u0301mb\\xE0 E.164",credit_card:"n\\u1ECDmba kaadi gbese",jwt:"JWT",template_literal:"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9"},o={nan:"NaN",number:"n\\u1ECD\\u0301mb\\xE0",array:"akop\\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let i=o[r.expected]??r.expected,a=k(r.input),s=o[a]??a;return/^[A-Z]/.test(r.expected)?`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi instanceof ${r.expected}, \\xE0m\\u1ECD\\u0300 a r\\xED ${s}`:`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ${i}, \\xE0m\\u1ECD\\u0300 a r\\xED ${s}`}case"invalid_value":return r.values.length===1?`\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ${R(r.values[0])}`:`\\xC0\\u1E63\\xE0y\\xE0n a\\u1E63\\xEC\\u1E63e: yan \\u1ECD\\u0300kan l\\xE1ra ${_(r.values,"|")}`;case"too_big":{let i=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ${r.origin??"iye"} ${a.verb} ${i}${r.maximum} ${a.unit}`:`T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ${i}${r.maximum}`}case"too_small":{let i=r.inclusive?">=":">",a=t(r.origin);return a?`K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ${r.origin} ${a.verb} ${i}${r.minimum} ${a.unit}`:`K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ${i}${r.minimum}`}case"invalid_format":{let i=r;return i.format==="starts_with"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\u1EB9\\u0300r\\u1EB9\\u0300 p\\u1EB9\\u0300l\\xFA "${i.prefix}"`:i.format==="ends_with"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 par\\xED p\\u1EB9\\u0300l\\xFA "${i.suffix}"`:i.format==="includes"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 n\\xED "${i.includes}"`:i.format==="regex"?`\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\xE1 \\xE0p\\u1EB9\\u1EB9r\\u1EB9 mu ${i.pattern}`:`A\\u1E63\\xEC\\u1E63e: ${n[i.format]??r.format}`}case"not_multiple_of":return`N\\u1ECD\\u0301mb\\xE0 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 j\\u1EB9\\u0301 \\xE8y\\xE0 p\\xEDp\\xEDn ti ${r.divisor}`;case"unrecognized_keys":return`B\\u1ECDt\\xECn\\xEC \\xE0\\xECm\\u1ECD\\u0300: ${_(r.keys,", ")}`;case"invalid_key":return`B\\u1ECDt\\xECn\\xEC a\\u1E63\\xEC\\u1E63e n\\xEDn\\xFA ${r.origin}`;case"invalid_union":return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e";case"invalid_element":return`Iye a\\u1E63\\xEC\\u1E63e n\\xEDn\\xFA ${r.origin}`;default:return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e"}}};function PS(){return{localeError:nT()}}var OS,Sf=Symbol("ZodOutput"),bf=Symbol("ZodInput"),lc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let o={...this.get(n)??{}};delete o.id;let r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function uc(){return new lc}(OS=globalThis).__zod_globalRegistry??(OS.__zod_globalRegistry=uc());var je=globalThis.__zod_globalRegistry;var pt=Symbol.for("zod.compile.invalid"),CS=Symbol.for("zod.compile.fallback"),Tt=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},de=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};function iT(e,t){try{return dc(e,{assertOnly:!0})}catch{return t}}function kf(e,t){try{let n=dc(e),o=me(e),r=e._zod.run,i=r.__originalRun??r,a=(s,c)=>{if(c?.async||c?.direction==="backward"||c?.skipChecks||c?.[CS]||c&&ic(c,s.value))return i(s,c);let l=n(s.value);return l!==pt?(s.value=l,s):(c&&(c[CS]=!0),i(s,c))};return a.__originalRun=i,o._zod.bag.fallbackRun=i,o._zod.bag.validator=iT(e,n),o._zod.run=a,r.__originalRun||aT(o,e,n),o}catch(n){if(t?.strict)throw n;return e}}function aT(e,t,n){let o=e,r=t;if(typeof r.safeParse=="function"){let i=r.safeParse;o.safeParse=(a,s)=>{let c=n(a);return c!==pt?{success:!0,data:c}:i(a,s)}}if(typeof r.parse=="function"){let i=r.parse;o.parse=(a,s)=>{let c=n(a);return c!==pt?c:i(a,s)}}}function dc(e,t){let n=!0;try{n=yf(e)}catch{}if(n)throw new de("a schema whose subtree contains a reference cycle");let o={constants:new Map,constantCounter:0,varCounter:0},r=new an(["input"]),i=_e(r,o,e,"input",!t?.assertOnly);r.write(i===null?"return true;":`return ${i};`);let a=["INVALID",...o.constants.keys()],s=[pt,...o.constants.values()],c=r.content.join(`\n`),l=t?.debug?a.length>0?`// Constants: ${a.join(", ")}\n${c}`:c:"",u=Function,m=`return (input) => {\n${c}\n}`,p;try{p=new u(...a,m)(...s)}catch(f){throw new de(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(p.code=l),p}function W(e,t){for(let[o,r]of e.constants)if(r===t)return o;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function ee(e){return`v${e.varCounter++}`}function sT(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return pt;let o=n;return o.issues.length===0?o.value:pt}function Ye(e,t,n,o,r=!0){let i=e.content.length,a=t.constants.size,s=t.constantCounter,c=t.varCounter;try{return _e(e,t,n,o,r)}catch(l){if(!(l instanceof de)||!l.islandable)throw l;if(e.content.length=i,t.constants.size>a){let u=Array.from(t.constants.keys()).slice(a);for(let m of u)t.constants.delete(m)}return t.constantCounter=s,t.varCounter=c,cT(e,t,n,o)}}function cT(e,t,n,o){let r=W(t,n),i=W(t,sT),a=ee(t);return e.write(`const ${a} = ${i}(${r}, ${o});`),e.write(`if (${a} === INVALID) return INVALID;`),a}var lT=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function uT(e,t,n,o){let r=n._zod.def.checks;if(!r||r.length===0)return o;let i=o;for(let a of r){let s=a._zod.def;if(s.when&&!lT.has(s.check))throw new de(\'check with a custom "when" condition\');switch(s.check){case"greater_than":dT(e,t,s,i);break;case"less_than":mT(e,t,s,i);break;case"multiple_of":pT(e,t,s,i);break;case"number_format":US(e,s,i);break;case"min_length":{let c=cn(s.minimum,"min_length"),l=$f(e,t,i,`${i}.length >= ${c} && ${i}.length < ${s.minimum*2}`);e.write(`if (${l} < ${c}) return INVALID;`);break}case"max_length":{let c=cn(s.maximum,"max_length"),l=$f(e,t,i,`${i}.length > ${c}`);e.write(`if (${l} > ${c}) return INVALID;`);break}case"length_equals":{let c=cn(s.length,"length_equals"),l=$f(e,t,i,`${i}.length >= ${c} && ${i}.length <= ${s.length*2}`);e.write(`if (${l} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${i}.size < ${cn(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${cn(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${cn(s.size,"size_equals")}) return INVALID;`);break;case"string_format":i=DS(e,t,s,i);break;case"custom":i=_T(e,t,a,i);break;case"bigint_format":fT(e,s,i);break;case"mime_type":hT(e,t,s,i);break;case"property":gT(e,t,s,i);break;case"overwrite":{let c=ee(t);vT(e,t,a,i,c),i=c;break}default:throw new de(`check type ${s.check}`)}}return i}function $f(e,t,n,o){let r=W(t,nn),i=ee(t);return e.write(`const ${i} = typeof ${n} === "string" && ${o} ? ${r}(${n}) : ${n}.length;`),i}function cn(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new de(`${t} bound of type ${typeof e}`);return`${e}`}function AS(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new de("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new de("comparison check with Invalid Date bound");return W(e,t)}throw new de(`comparison check bound of type ${typeof t}`)}function dT(e,t,n,o){let r=n.inclusive?"<":"<=";e.write(`if (${o} ${r} ${AS(t,n.value)}) return INVALID;`)}function mT(e,t,n,o){let r=n.inclusive?">":">=";e.write(`if (${o} ${r} ${AS(t,n.value)}) return INVALID;`)}function pT(e,t,n,o){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new de("multiple_of check with a zero divisor");e.write(`if (${o} % ${n.value}n !== 0n) return INVALID;`)}else{let r=W(t,Si);e.write(`if (${r}(${o}, ${cn(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function US(e,t,n){let o=t.format;switch(o){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new de(`number format ${o}`)}}function fT(e,t,n){let o=t.format;if(o)switch(o){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new de(`bigint format ${o}`)}}function hT(e,t,n,o){let r=n.mime;if(r&&r.length>0){let i=W(t,new Set(r));e.write(`if (!${i}.has(${o}.type)) return INVALID;`)}}function gT(e,t,n,o){let r=`${o}[${JSON.stringify(n.property)}]`;_e(e,t,n.schema,r)}function vT(e,t,n,o,r){let i=n._zod.def.tx;if(!i)throw new de("overwrite check without a transform function");if(dn(i))throw new Tt("z.compile: async overwrite transforms are not supported");let a=W(t,i);e.write(`const ${r} = ${a}(${o});`)}function zf(){throw new ot}function wf(e){this.issues.push(e)}function _T(e,t,n,o){let r=n._zod.def;if(r.fn){if(dn(r.fn))throw new Tt("z.compile: async .refine() predicates are not supported");let i=W(t,r.fn),a=W(t,zf),s=ee(t);return e.write(`const ${s} = ${i}(${o});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),o}if(n._zod.check){if(dn(n._zod.check))throw new Tt("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,s=W(t,l=>{let u={value:l,issues:[],addIssue:wf};return i(u)instanceof Promise&&zf(),u.issues.length===0?u.value:pt}),c=ee(t);return e.write(`const ${c} = ${s}(${o});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new de("custom check without a predicate or check function")}var yT=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function DS(e,t,n,o){let r=n.format;if(r==="base64"){let c=W(t,Ci);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(r==="base64url"){let c=W(t,Hs);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(r==="jwt"){let c=W(t,Gs),l=W(t,n.alg??null);return e.write(`if (!${c}(${o}, ${l})) return INVALID;`),o}if(r==="ipv6"){let c=W(t,Oi);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(r==="cidrv6"){let c=W(t,Bs);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(r==="credit_card"){let c=W(t,Ys);return e.write(`if (!${c}(${o})) return INVALID;`),o}let i=n;if(r==="url"||r==="httpurl"||i.normalize||i.hostname!==void 0||i.protocol!==void 0){let c=W(t,Zs),l=W(t,n),u=ee(t),m=ee(t);if(e.write(`const ${u} = ${o}.trim();`),e.write(`const ${m} = ${c}(${u}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),i.hostname!==void 0){let h=W(t,Ks);e.write(`if (!${h}(${m}, ${l}.hostname)) return INVALID;`)}if(i.protocol!==void 0){let h=W(t,Js);e.write(`if (!${h}(${m}, ${l}.protocol)) return INVALID;`)}let p=ee(t),f=i.normalize?`${m}.href`:`${W(t,Fs)}(${u})`;return e.write(`const ${p} = ${f};`),p}let a=n.fn;if(a){if(dn(a))throw new de(`async string format ${r}`);let c=W(t,a);return e.write(`if (!${c}(${o})) return INVALID;`),o}if(yT.has(r)&&n.pattern){let c=W(t,n.pattern);return e.write(`${c}.lastIndex = 0;`),e.write(`if (!${c}.test(${o})) return INVALID;`),o}let s=n.format;switch(s){case"regex":throw new de("regex format without a pattern");case"lowercase":e.write(`if (${o} !== ${o}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${o} !== ${o}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${o}.includes(${tt(n.includes)})) return INVALID;`);break;case"starts_with":{let c=n.prefix;e.write(`if (${o}.slice(0, ${c.length}) !== ${tt(c)}) return INVALID;`);break}case"ends_with":{let c=n.suffix;e.write(`if (${o}.slice(-${c.length}) !== ${tt(c)}) return INVALID;`);break}default:throw new de(`string format ${s}`)}return o}function _e(e,t,n,o,r=!0){let i=n._zod.def,a=i.type;if(i.coerce)throw new de(`coercion (z.coerce.${a}())`);let s=r||!!i.checks?.length,c;switch(a){case"string":c=ST(e,t,n,o);break;case"number":c=bT(e,n,o);break;case"boolean":c=$T(e,o);break;case"bigint":c=zT(e,n,o);break;case"symbol":c=RT(e,o);break;case"undefined":c=kT(e,o);break;case"null":c=wT(e,o);break;case"any":case"unknown":c=o;break;case"never":e.write("return INVALID;"),c=o;break;case"void":c=IT(e,o);break;case"nan":c=TT(e,o);break;case"date":c=xT(e,o);break;case"object":c=ET(e,t,n,o,s);break;case"optional":c=PT(e,t,n,o,s);break;case"nullable":c=NT(e,t,n,o,s);break;case"array":c=jT(e,t,n,o,s);break;case"literal":c=AT(e,t,n,o);break;case"enum":c=UT(e,t,n,o);break;case"readonly":{let l=NS(e,t,n,o),u=ee(t);e.write(`const ${u} = Object.freeze(${l});`),c=u;break}case"success":NS(e,t,n,o),c="true";break;case"default":case"prefault":c=DT(e,t,n,o);break;case"nonoptional":c=LT(e,t,n,o);break;case"tuple":c=MT(e,t,n,o);break;case"union":c=qT(e,t,n,o);break;case"intersection":c=FT(e,t,n,o);break;case"record":c=KT(e,t,n,o);break;case"map":c=BT(e,t,n,o);break;case"set":c=HT(e,t,n,o);break;case"file":c=YT(e,o);break;case"template_literal":c=GT(e,t,n,o);break;case"lazy":c=WT(e,t,n,o);break;case"pipe":c=XT(e,t,n,o);break;case"custom":c=QT(e,t,n,o);break;case"transform":c=rx(e,t,n,o);break;case"catch":c=tx(e,t,n,o);break;default:throw new de(`schema type ${a}`)}return c===null?null:uT(e,t,n,c)}function ST(e,t,n,o){e.write(`if (typeof ${o} !== "string") return INVALID;`);let r=n._zod.def;return r.format===void 0?o:DS(e,t,r,o)}function bT(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let o=t._zod.def;return o.check==="number_format"&&o.format&&US(e,{format:o.format},n),n}function $T(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function zT(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let o=t._zod.def;if(o.format)switch(o.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function RT(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function kT(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function wT(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function IT(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function TT(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function xT(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function ET(e,t,n,o,r=!0){let i=n._zod.def;e.write(`if (typeof ${o} !== "object" || ${o} === null || Array.isArray(${o})) return INVALID;`);let a=i.shape,s=Object.keys(a),c=Object.getOwnPropertySymbols(a),l=c.length?[...s,...c]:s,u=T=>typeof T=="symbol"?W(t,T):tt(T),m=T=>typeof T=="symbol"?`[${u(T)}]`:tt(T),p=a;if(s.includes("__proto__"))throw new de(\'object shape key "__proto__"\');let f=new Map;for(let T of l){let E=p[T],K=u(T),Z=ee(t);if(e.write(`const ${Z} = ${o}[${K}];`),E._zod.optin!==void 0){let N=ee(t);e.write(`let ${N} = (() => {`),e.indented(re=>{let oe=Ye(re,t,E,Z);re.write(`return ${oe};`)}),e.write("})();"),E._zod.optout==="optional"?(e.write(`if (${N} === INVALID) {`),e.indented(re=>{re.write(`if (${K} in ${o}) return INVALID;`),re.write(`${N} = undefined;`)}),e.write("}")):e.write(`if (${N} === INVALID) return INVALID;`),f.set(T,N)}else{CT(E)&&e.write(`if (!(${K} in ${o})) return INVALID;`);let N=Ye(e,t,E,Z,r);N!==null&&f.set(T,N)}}let h=i.catchall,S="none";if(h){let T=h._zod.def.type;if(T==="never"){let E=s.map(K=>`k !== ${tt(K)}`).join(" && ")||"true";e.write(`for (const k in ${o}) {`),e.indented(K=>{K.write(`if (${E}) return INVALID;`)}),e.write("}")}else(T==="unknown"||T==="any")&&!h._zod.def.checks?.length?S="passthrough":S="schema"}let y=ee(t),w=l.some(T=>un(p[T])||Rf(p[T]));if(!r){if(S==="schema"){let T=s.length>0?W(t,new Set(s)):null;e.write(`for (const k in ${o}) {`),e.indented(E=>{E.write(\'if (k === "__proto__") continue;\'),T&&E.write(`if (${T}.has(k)) continue;`);let K=ee(t);E.write(`const ${K} = ${o}[k];`),Ye(E,t,h,K,!1)}),e.write("}")}return null}if(w){e.write(`const ${y} = {};`);for(let T of l){let E=u(T),K=f.get(T);Rf(p[T])?e.write(`if (${E} in ${o}) ${y}[${E}] = ${K};`):un(p[T])?e.write(`if (${K} !== undefined || ${E} in ${o}) ${y}[${E}] = ${K};`):e.write(`${y}[${E}] = ${K};`)}}else{let T=l.map(E=>`${m(E)}: ${f.get(E)}`).join(", ");e.write(`const ${y} = { ${T} };`)}if(S!=="none"){let T=s.length>0?W(t,new Set(s)):null;e.write(`for (const k in ${o}) {`),e.indented(E=>{if(E.write(\'if (k === "__proto__") continue;\'),T&&E.write(`if (${T}.has(k)) continue;`),S==="passthrough")E.write(`${y}[k] = ${o}[k];`);else{let K=ee(t);E.write(`const ${K} = ${o}[k];`);let Z=Ye(E,t,h,K);E.write(`${y}[k] = ${Z};`)}}),e.write("}")}return y}function PT(e,t,n,o,r=!0){let i=n._zod.def;if(OT(n))return _e(e,t,i.innerType,o,r);if(i.innerType._zod.optin==="defaulted"){let s=ee(t),c=ee(t);return e.write(`let ${s};`),e.write(`if (${o} === undefined) {`),e.indented(l=>{l.write(`const ${c} = (() => {`),l.indented(u=>{let m=_e(u,t,i.innerType,o);u.write(`return ${m};`)}),l.write("})();"),l.write(`if (${c} !== INVALID) ${s} = ${c};`)}),e.write("} else {"),e.indented(l=>{let u=_e(l,t,i.innerType,o);l.write(`${s} = ${u};`)}),e.write("}"),s}let a=r?ee(t):null;return a&&e.write(`let ${a};`),e.write(`if (${o} !== undefined) {`),e.indented(s=>{let c=_e(s,t,i.innerType,o,r);a&&c!==null&&s.write(`${a} = ${c};`)}),e.write("}"),a}function OT(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function CT(e){return e._zod.optin===void 0&&ln(e)}function ln(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?ln(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?ln(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(ln):!0;case"intersection":return!t.left||!t.right?!0:ln(t.left)&&ln(t.right);case"pipe":return t.in?ln(t.in):!0;default:return!0}}function Rf(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function un(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?un(t.innerType):!0;case"union":return t.options?t.options.some(un):!0;case"intersection":return!t.left||!t.right||un(t.left)||un(t.right);case"pipe":return t.out?un(t.out):!0;default:return!0}}function NT(e,t,n,o,r=!0){let i=n._zod.def,a=r?ee(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${o} !== null) {`),e.indented(s=>{let c=_e(s,t,i.innerType,o,r);a&&c!==null&&s.write(`${a} = ${c};`)}),e.write("}"),a}function jT(e,t,n,o,r=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${o})) return INVALID;`);let a=r?ee(t):null,s=ee(t),c=ee(t);return a&&e.write(`const ${a} = new Array(${o}.length);`),e.write(`for (let ${s} = 0; ${s} < ${o}.length; ${s}++) {`),e.indented(l=>{l.write(`const ${c} = ${o}[${s}];`);let u=Ye(l,t,i.element,c,r);a&&u!==null&&l.write(`${a}[${s}] = ${u};`)}),e.write("}"),a}function AT(e,t,n,o){let i=n._zod.def.values;if(i.length!==1){let s=W(t,new Set(i));return e.write(`if (!${s}.has(${o})) return INVALID;`),o}let a=i[0];if(typeof a=="number"&&Number.isNaN(a)){let s=W(t,new Set(i));return e.write(`if (!${s}.has(${o})) return INVALID;`),o}if(typeof a=="string")e.write(`if (${o} !== ${tt(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${o} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${o} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${o} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${o} !== ${a}n) return INVALID;`);else throw new de(`literal type ${typeof a}`);return o}function UT(e,t,n,o){let r=n._zod.values;if(!r)throw new de("enum schema without enumerated values");let i=W(t,r);return e.write(`if (!${i}.has(${o})) return INVALID;`),o}function NS(e,t,n,o){let r=n._zod.def;return _e(e,t,r.innerType,o)}function DT(e,t,n,o){let r=n._zod.def,a=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!a)return _e(e,t,r.innerType,o);let c=W(t,a),l=ee(t);return e.write(`let ${l} = ${o};`),e.write(`if (${o} === undefined) ${l} = ${c}();`),_e(e,t,r.innerType,l)}let s=ee(t);if(a){let c=W(t,a),l=W(t,bi);e.write(`let ${s};`),e.write(`if (${o} === undefined) {`),e.indented(u=>{u.write(`${s} = ${l}(${c}());`)}),e.write("} else {"),e.indented(u=>{let m=_e(u,t,r.innerType,o);u.write(`${s} = ${m} === undefined ? ${l}(${c}()) : ${m};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${o} !== undefined) {`),e.indented(c=>{let l=_e(c,t,r.innerType,o);c.write(`${s} = ${l};`)}),e.write("}");return s}function LT(e,t,n,o){let r=n._zod.def,i=_e(e,t,r.innerType,o),a=ee(t);return e.write(`const ${a} = ${i};`),e.write(`if (${a} === undefined) return INVALID;`),a}function MT(e,t,n,o){let r=n._zod.def,i=r.items,a=r.rest;e.write(`if (!Array.isArray(${o})) return INVALID;`);let s=jS(i,"optin"),c=jS(i,"optout");a?e.write(`if (${o}.length < ${s}) return INVALID;`):e.write(`if (${o}.length < ${s} || ${o}.length > ${i.length}) return INVALID;`);let l=ee(t);e.write(`const ${l} = [];`);for(let u=0;u<i.length;u++){let m=i[u];if(u>=c)e.write(`if (${l}.length === ${u}) {`),e.indented(p=>{p.write(`if (${u} < ${o}.length) {`),p.indented(f=>{let h=ee(t);f.write(`const ${h} = ${o}[${u}];`);let S=Ye(f,t,m,h);f.write(`${l}[${u}] = ${S};`)}),p.write("} else {"),p.indented(f=>{if(Rf(m)){f.write(`${l}.length = ${u};`);return}let h=ee(t),S=ee(t);f.write(`const ${h} = undefined;`),f.write(`const ${S} = (() => {`),f.indented(y=>{let w=Ye(y,t,m,h);y.write(`return ${w};`)}),f.write("})();"),f.write(`if (${S} === INVALID || ${S} === undefined) ${l}.length = ${u};`),f.write(`else ${l}[${u}] = ${S};`)}),p.write("}")}),e.write("}");else{let p=ee(t);e.write(`const ${p} = ${o}[${u}];`);let f=Ye(e,t,m,p);e.write(`${l}[${u}] = ${f};`)}}if(a){let u=ee(t),m=ee(t);e.write(`for (let ${u} = ${i.length}; ${u} < ${o}.length; ${u}++) {`),e.indented(p=>{p.write(`const ${m} = ${o}[${u}];`);let f=Ye(p,t,a,m);p.write(`${l}[${u}] = ${f};`)}),e.write("}")}return l}function jS(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function qT(e,t,n,o){let r=n._zod.def,i=r.options;if(r.discriminator)return VT(e,t,r,o);if(r.inclusive===!1)throw new de("exclusive unions (z.xor)");if(i.length===0)return e.write("return INVALID;"),o;if(i.length===1)return _e(e,t,i[0],o);if(i.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(i.flatMap(u=>u._zod.def.values)),l=W(t,c);return e.write(`if (!${l}.has(${o})) return INVALID;`),o}let s=ee(t);e.write(`let ${s};`);for(let c=0;c<i.length;c++){let l=i[c];c===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(u=>{let m=_e(u,t,l,o);u.write(`return ${m};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function VT(e,t,n,o){if(n.unionFallback)throw new de("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),o;let r=ee(t),i=ee(t);e.write(`const ${r} = ${o}?.[${tt(n.discriminator)}];`),e.write(`let ${i};`);let a=!0,s=new Set;for(let c of n.options){let l=c._zod.propValues?.[n.discriminator];if(!l||l.size===0)throw new de("discriminated union option without static discriminator values");for(let p of l){if(s.has(p))throw new de(`duplicate discriminator value ${String(p)}`);s.add(p)}let u=Array.from(l,p=>ZT(t,r,p)),m=a?"if":"else if";e.write(`${m} (${u.join(" || ")}) {`),e.indented(p=>{let f=_e(p,t,c,o);p.write(`${i} = ${f};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),i}function ZT(e,t,n){if(typeof n=="string")return`${t} === ${tt(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let o=W(e,n);return`${t} === ${o}`}throw new de(`literal discriminator value ${String(n)}`)}function FT(e,t,n,o){let r=n._zod.def,i=Ye(e,t,r.left,o),a=Ye(e,t,r.right,o),s=W(t,Gn),c=ee(t);return e.write(`const ${c} = ${s}(${i}, ${a});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function KT(e,t,n,o){let r=n._zod.def,i=W(t,St);e.write(`if (!${i}(${o})) return INVALID;`);let a=ee(t),s=ee(t),c=ee(t);e.write(`const ${a} = {};`);let l=r,u=l.partial?void 0:r.keyType._zod.values;if(u){let h=[];for(let y of u){if(!(typeof y=="string"||typeof y=="number"||typeof y=="symbol"))throw new de(`record key value ${String(y)}`);let w=typeof y=="number"?y.toString():y;if(w==="__proto__")throw new de(\'record key "__proto__"\');h.push(w);let T=W(t,y),E=_e(e,t,r.keyType,T),K=ee(t);e.write(`const ${K} = ${o}[${JT(t,w)}];`);let Z=Ye(e,t,r.valueType,K);e.write(`${a}[${E}] = ${Z};`)}let S=W(t,new Set(h));return e.write(`for (const ${s} in ${o}) {`),e.indented(y=>{y.write(`if (${S}.has(${s})) continue;`),l.mode==="loose"?y.write(`if (${s} !== "__proto__") ${a}[${s}] = ${o}[${s}];`):y.write("return INVALID;")}),e.write("}"),a}let m=r.keyType._zod.def;if(!(m.type==="string"&&m.format===void 0&&!m.coerce&&(m.checks?.length??0)===0)){let h=r.mode==="loose",S=W(t,dc(r.keyType)),y=W(t,br),w=W(t,Object.prototype.propertyIsEnumerable),T=ee(t);return e.write(`for (const ${s} of Reflect.ownKeys(${o})) {`),e.indented(E=>{E.write(`if (${s} === "__proto__") continue;`),E.write(`if (!${w}.call(${o}, ${s})) continue;`),E.write(`let ${T} = ${S}(${s});`),E.write(`if (${T} === INVALID && typeof ${s} === "string" && ${y}.test(${s})) ${T} = ${S}(Number(${s}));`),h?E.write(`if (${T} === INVALID) { ${a}[${s}] = ${o}[${s}]; continue; }`):E.write(`if (${T} === INVALID) return INVALID;`),E.write(`if (${T} === "__proto__") continue;`);let K=ee(t);E.write(`const ${K} = ${o}[${s}];`);let Z=Ye(E,t,r.valueType,K);E.write(`${a}[${T}] = ${Z};`)}),e.write("}"),a}let f=W(t,Object.prototype.propertyIsEnumerable);return e.write(`for (const ${s} of Reflect.ownKeys(${o})) {`),e.indented(h=>{h.write(`if (${s} === "__proto__") continue;`),h.write(`if (!${f}.call(${o}, ${s})) continue;`),h.write(`if (typeof ${s} !== "string") return INVALID;`),h.write(`const ${c} = ${o}[${s}];`);let S=Ye(h,t,r.valueType,c);h.write(`${a}[${s}] = ${S};`)}),e.write("}"),a}function JT(e,t){return typeof t=="string"?tt(t):W(e,t)}function BT(e,t,n,o){let r=n._zod.def;e.write(`if (!(${o} instanceof Map)) return INVALID;`);let i=ee(t),a=ee(t),s=ee(t);return e.write(`const ${i} = new Map();`),e.write(`for (const [${a}, ${s}] of ${o}) {`),e.indented(c=>{let l=_e(c,t,r.keyType,a),u=_e(c,t,r.valueType,s);c.write(`${i}.set(${l}, ${u});`)}),e.write("}"),i}function HT(e,t,n,o){let r=n._zod.def;e.write(`if (!(${o} instanceof Set)) return INVALID;`);let i=ee(t),a=ee(t);return e.write(`const ${i} = new Set();`),e.write(`for (const ${a} of ${o}) {`),e.indented(s=>{let c=_e(s,t,r.valueType,a);s.write(`${i}.add(${c});`)}),e.write("}"),i}function YT(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function GT(e,t,n,o){e.write(`if (typeof ${o} !== "string") return INVALID;`);let r=n._zod.pattern;if(r){let i=W(t,r);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${o})) return INVALID;`)}return o}function WT(e,t,n,o){let r=n._zod.def,i=W(t,r.getter),a=W(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(c=>{c.write(`const inner = ${i}();`),c.write(`${a}.parser = function(input) {`),c.indented(l=>{l.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),l.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let s=ee(t);return e.write(`const ${s} = ${a}.parser(${o});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function XT(e,t,n,o){let r=n._zod.def,i=_e(e,t,r.in,o);if(r.transform){if(dn(r.transform))throw new Tt("z.compile: async transforms in pipes are not supported");let a=r.transform,c=W(t,u=>{let m={value:u,issues:[],addIssue:wf},p=a(u,m);return p instanceof Promise?pt:m.issues.length===0?p:pt}),l=ee(t);return e.write(`const ${l} = ${c}(${i});`),e.write(`if (${l} === INVALID) return INVALID;`),_e(e,t,r.out,l)}else return _e(e,t,r.out,i)}function dn(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function QT(e,t,n,o){let r=n._zod.def;if(r.fn){if(dn(r.fn))throw new Tt("z.compile: async custom predicates are not supported");let i=W(t,r.fn),a=W(t,zf),s=ee(t);e.write(`const ${s} = ${i}(${o});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new de("custom schema without a predicate function");return o}function ex(e,t,n){let o=e._zod.run({value:n,issues:[]},{});if(o&&typeof o.then=="function")return pt;let r=o;return r.issues.length===0?r.value:t()}function tx(e,t,n,o){let r=n._zod.def;if(!r.catchValue[Ss])throw new de("catch with a callback (only a constant catch value compiles)",!1);let i=ee(t);e.write(`let ${i} = (() => {`),e.indented(l=>{let u=Ye(l,t,r.innerType,o);l.write(`return ${u};`)}),e.write("})();");let a=W(t,r.innerType),s=W(t,r.catchValue),c=W(t,ex);return e.write(`if (${i} === INVALID) {`),e.indented(l=>{l.write(`${i} = ${c}(${a}, ${s}, ${o});`),l.write(`if (${i} === INVALID) return INVALID;`)}),e.write("}"),i}function rx(e,t,n,o){let r=n._zod.def;if(r.transform){if(dn(r.transform))throw new Tt("z.compile: async transforms are not supported");let i=r.transform,s=W(t,l=>{let u={value:l,issues:[],addIssue:wf},m=i(l,u);return m instanceof Promise?pt:u.issues.length===0?m:pt}),c=ee(t);return e.write(`const ${c} = ${s}(${o});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return o}function If(e,t){return new e({type:"string",...O(t)})}function Tf(e,t){return new e({type:"string",coerce:!0,...O(t)})}function mc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...O(t)})}function pc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...O(t)})}function fc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...O(t)})}function hc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...O(t)})}function gc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...O(t)})}function vc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...O(t)})}function qi(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...O(t)})}function _c(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...O(t)})}function yc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...O(t)})}function Sc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...O(t)})}function bc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...O(t)})}function $c(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...O(t)})}function zc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...O(t)})}function Rc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...O(t)})}function kc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...O(t)})}function wc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...O(t)})}function xf(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...O(t)})}function Ic(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...O(t)})}function Tc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...O(t)})}function xc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...O(t)})}function Ec(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...O(t)})}function Pc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...O(t)})}function Ef(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...O(t)})}function Oc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...O(t)})}var Pf={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Vi(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...O(t)})}function Zi(e,t){return new e({type:"string",format:"date",check:"string_format",...O(t)})}function Fi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...O(t)})}function Ki(e,t){return new e({type:"string",format:"duration",check:"string_format",...O(t)})}function Of(e,t){return new e({type:"number",checks:[],...O(t)})}function Cf(e,t){return new e({type:"number",coerce:!0,checks:[],...O(t)})}function Nf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...O(t)})}function jf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...O(t)})}function Af(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...O(t)})}function Uf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...O(t)})}function Df(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...O(t)})}function Lf(e,t){return new e({type:"boolean",...O(t)})}function Mf(e,t){return new e({type:"boolean",coerce:!0,...O(t)})}function qf(e,t){return new e({type:"bigint",...O(t)})}function Vf(e,t){return new e({type:"bigint",coerce:!0,...O(t)})}function Zf(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...O(t)})}function Ff(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...O(t)})}function Kf(e,t){return new e({type:"symbol",...O(t)})}function Jf(e,t){return new e({type:"undefined",...O(t)})}function Bf(e,t){return new e({type:"null",...O(t)})}function Hf(e){return new e({type:"any"})}function Yf(e){return new e({type:"unknown"})}function Gf(e,t){return new e({type:"never",...O(t)})}function Wf(e,t){return new e({type:"void",...O(t)})}function Xf(e,t){return new e({type:"date",...O(t)})}function Qf(e,t){return new e({type:"date",coerce:!0,...O(t)})}function eh(e,t){return new e({type:"nan",...O(t)})}function qt(e,t){return new js({check:"less_than",...O(t),value:e,inclusive:!1})}function ft(e,t){return new js({check:"less_than",...O(t),value:e,inclusive:!0})}function Vt(e,t){return new As({check:"greater_than",...O(t),value:e,inclusive:!1})}function ht(e,t){return new As({check:"greater_than",...O(t),value:e,inclusive:!0})}function Cc(e){return Vt(0,e)}function Nc(e){return qt(0,e)}function jc(e){return ft(0,e)}function Ac(e){return ht(0,e)}function $r(e,t){return new Lm({check:"multiple_of",...O(t),value:e})}function zr(e,t){return new Vm({check:"max_size",...O(t),maximum:e})}function Zt(e,t){return new Zm({check:"min_size",...O(t),minimum:e})}function mn(e,t){return new Fm({check:"size_equals",...O(t),size:e})}function pn(e,t){return new Km({check:"max_length",...O(t),maximum:e})}function er(e,t){return new Jm({check:"min_length",...O(t),minimum:e})}function fn(e,t){return new Bm({check:"length_equals",...O(t),length:e})}function Xn(e,t){return new Hm({check:"string_format",format:"regex",...O(t),pattern:e})}function Qn(e){return new Ym({check:"string_format",format:"lowercase",...O(e)})}function eo(e){return new Gm({check:"string_format",format:"uppercase",...O(e)})}function to(e,t){return new Wm({check:"string_format",format:"includes",...O(t),includes:e})}function ro(e,t){return new Xm({check:"string_format",format:"starts_with",...O(t),prefix:e})}function no(e,t){return new Qm({check:"string_format",format:"ends_with",...O(t),suffix:e})}function Uc(e,t,n){return new Us({check:"property",property:e,schema:t,...O(n)})}function Dc(e){return Object.entries(e).map(([t,n])=>new Us({check:"property",property:t,schema:n}))}function oo(e,t){return new ep({check:"mime_type",mime:e,...O(t)})}function xt(e){return new tp({check:"overwrite",tx:e})}function io(e){return xt(t=>t.normalize(e))}function ao(){return xt(e=>e.trim())}function so(){return xt(e=>e.toLowerCase())}function co(){return xt(e=>e.toUpperCase())}function lo(){return xt(e=>Md(e))}function th(e,t,n){return new e({type:"array",element:t,...O(n)})}function nx(e,t,n){return new e({type:"union",options:t,...O(n)})}function ox(e,t,n){return new e({type:"union",options:t,inclusive:!1,...O(n)})}function ix(e,t,n,o){return new e({type:"union",options:n,discriminator:t,...O(o)})}function ax(e,t,n){return new e({type:"intersection",left:t,right:n})}function sx(e,t,n,o){let r=n instanceof ie,i=r?o:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...O(i)})}function cx(e,t,n,o){return new e({type:"record",keyType:t,valueType:n,...O(o)})}function lx(e,t,n,o){return new e({type:"map",keyType:t,valueType:n,...O(o)})}function ux(e,t,n){return new e({type:"set",valueType:t,...O(n)})}function dx(e,t,n){let o=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:o,...O(n)})}function mx(e,t,n){return new e({type:"enum",entries:t,...O(n)})}function px(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...O(n)})}function rh(e,t){return new e({type:"file",...O(t)})}function fx(e,t){return new e({type:"transform",transform:t})}function hx(e,t){return new e({type:"optional",innerType:t})}function gx(e,t){return new e({type:"nullable",innerType:t})}function vx(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():bi(n)}})}function _x(e,t,n){return new e({type:"nonoptional",innerType:t,...O(n)})}function yx(e,t){return new e({type:"success",innerType:t})}function Sx(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:Yd(n)})}function bx(e,t,n){return new e({type:"pipe",in:t,out:n})}function $x(e,t){return new e({type:"readonly",innerType:t})}function zx(e,t,n){return new e({type:"template_literal",parts:t,...O(n)})}function Rx(e,t){return new e({type:"lazy",getter:t})}function kx(e,t){return new e({type:"promise",innerType:t})}function nh(e,t,n){let o=O(n);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function oh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...O(n)})}function ih(e,t){let n=LS(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(Fn(r,o.value,n._zod.def));else{let i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(Fn(i))}},e(o.value,o)),t);return n}function LS(e,t){let n=new ge({check:"custom",...O(t)});return n._zod.check=e,n}function ah(e){let t=new ge({check:"describe"});return t._zod.onattach=[n=>{let o=je.get(n)??{};je.add(n,{...o,description:e})}],t._zod.check=()=>{},t}function sh(e){let t=new ge({check:"meta"});return t._zod.onattach=[n=>{let o=je.get(n)??{};je.add(n,{...o,...e})}],t._zod.check=()=>{},t}function ch(e,t){let n=O(t),o=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(o=o.map(f=>typeof f=="string"?f.toLowerCase():f),r=r.map(f=>typeof f=="string"?f.toLowerCase():f));let i=new Set(o),a=new Set(r),s=e.Codec??Ai,c=e.Boolean??Ni,l=e.String??sn,u=new l({type:"string",error:n.error}),m=new c({type:"boolean",error:n.error}),p=new s({type:"pipe",in:u,out:m,transform:((f,h)=>{let S=f;return n.case!=="sensitive"&&(S=S.toLowerCase()),i.has(S)?!0:a.has(S)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:h.value,inst:p,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?o[0]||"true":r[0]||"false"),error:n.error});return p._zod.bag.truthy=o,p._zod.bag.falsy=r,p._zod.bag.case=n.case??"insensitive",p}function uo(e,t,n,o={}){let r=O(o),i={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(i.pattern=n),new e(i)}function Ji(e,...t){for(let n of t)for(let o of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,o)&&Se(e,o,n[o]);return e}function Rr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??je,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Ee(e,t,n,o,r){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:o.path,message:r}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(r);return Object.assign(n,i),!0}function pe(e,t,n={path:[],schemaPath:[]}){var o;let r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let u={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);else{let p=a.schema,f=t.processors[r.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);f(e,t,p,u)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),pe(m,t,u),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Ji(a.schema,c),t.io==="input"&&Ge(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function MS(e){return e.replace(/~/g,"~0").replace(/\\//g,"~1")}function kr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=o.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,p=e.external.uri??(h=>h);if(m)return{ref:p(m)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${s}/${MS(f)}`}}let c="#",l=`${c}/${s}/`;if(a[1]===n&&!a[1].schema.id)return{ref:c};let u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:l+MS(u)}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:l}=r(a);s.def={...s.schema},l&&(s.defId=l);let u=s.schema;for(let m in u)delete u[m];u.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>\n\nSet the \\`cycles\\` parameter to \\`"ref"\\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}e.external&&(e.sharedDefsExtractedFor=e.external)}function ZS(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let o of t){if(!o||typeof o!="object")return;ZS(o);let r=Object.keys(o);if(r.length!==1||r[0]!=="type")return;let i=o.type;for(let a of Array.isArray(i)?i:[i]){if(typeof a!="string")return;n.includes(a)||n.push(a)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var FS=new Set(["type","properties","required","additionalProperties"]),qS=["oneOf","anyOf"];function VS(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function lh(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let a in i)if(!FS.has(a))return null;t.push(i)}let n={},o=new Set;for(let i of t){for(let a in i.properties){if(Object.prototype.hasOwnProperty.call(n,a))continue;let s=[];for(let l of t){let u=l.properties?.[a]??VS(l);u!=null&&(s.some(m=>JSON.stringify(m)===JSON.stringify(u))||s.push(u))}let c=s.length===1?s[0]:lh(s)??{allOf:s};Se(n,a,c)}for(let a of i.required??[])o.add(a)}let r={type:"object",properties:n};if(o.size&&(r.required=[...o]),t.every(i=>i.additionalProperties===!1))r.additionalProperties=!1;else{let i=[];for(let a of t){let s=VS(a);s&&!i.some(c=>JSON.stringify(c)===JSON.stringify(s))&&i.push(s)}i.length===1?r.additionalProperties=i[0]:i.length>1&&(r.additionalProperties={allOf:i})}return r}function wx(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let r of FS)if(r in e)return;let n=t.filter(r=>qS.some(i=>Array.isArray(r[i]))),o=null;if(!n.length)o=lh(t);else{let r=n[0],i=qS.find(c=>Array.isArray(r[c]));if(Object.keys(r).length!==1)return;let a=t.filter(c=>c!==r),s=r[i].map(c=>lh([...a,c]));if(s.some(c=>!c))return;o={[i]:s}}o&&(delete e.allOf,Ji(e,o))}function wr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=s=>{let c=e.seen.get(s);if(c.ref===null)return;let l=c.def??c.schema,u={...l},m=c.ref;if(c.ref=null,m){o(m);let f=e.seen.get(m),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Ji(l,h),Ji(l,u),s._zod.parent===m)for(let y in l)y==="$ref"||y==="allOf"||y in u||delete l[y];if(h.$ref&&f.def)for(let y in l)y==="$ref"||y==="allOf"||y in f.def&&JSON.stringify(l[y])===JSON.stringify(f.def[y])&&delete l[y]}let p=s._zod.parent;if(p&&p!==m){o(p);let f=e.seen.get(p);if(f?.schema.$ref&&(l.$ref=f.schema.$ref,f.def))for(let h in l)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(l[h])===JSON.stringify(f.def[h])&&delete l[h]}e.override({zodSchema:s,jsonSchema:l,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())o(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())ZS(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let c of e.seen.values())for(let l of[c.schema,c.def]){let u=l?.allOf;if(!Array.isArray(u))continue;let m=s.get(u);m?m.push(l):s.set(u,[l])}for(let c of e.intersections)for(let l of s.get(c)??[])wx(l)}}let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Ji(r,n.defId?n.schema:n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&r.id===i&&delete r.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let c=s[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,Se(a,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:mo(t,"input",e.processors),output:mo(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Ge(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Ge(o.element,n);if(o.type==="set")return Ge(o.valueType,n);if(o.type==="lazy")return Ge(o.getter(),n);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault"||o.type==="catch")return Ge(o.innerType,n);if(o.type==="intersection")return Ge(o.left,n)||Ge(o.right,n);if(o.type==="record"||o.type==="map")return Ge(o.keyType,n)||Ge(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ge(o.in,n)||Ge(o.out,n);if(o.type==="object"){for(let r in o.shape)if(Ge(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(let r of o.options)if(Ge(r,n))return!0;return!1}if(o.type==="tuple"){for(let r of o.items)if(Ge(r,n))return!0;return!!(o.rest&&Ge(o.rest,n))}return!1}var uh=(e,t={})=>n=>{let o=Rr({...n,processors:t});return pe(e,o),kr(o,e),wr(o,e)},mo=(e,t,n={})=>o=>{let{libraryOptions:r,target:i}=o??{},a=Rr({...r??{},target:i,io:t,processors:n});return pe(e,a),kr(a,e),wr(a,e)};var Ix={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ph=(e,t,n,o)=>{let r=n;r.type="string";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:l,laxFormat:u}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),s&&(r.format=Ix[s]??s,r.format===""&&delete r.format,(s==="time"||u)&&delete r.format),l&&(r.contentEncoding=l),c&&c.size>0){let m=[...c];m.length===1?r.pattern=m[0].source:m.length>1&&(r.allOf=[...m.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},fh=(e,t,n,o)=>{let r=n,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s=="string"&&s.includes("int")?r.type="integer":r.type="number";let m=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),p=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";m?f?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof i=="number"&&(r.minimum=i),p?f?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:typeof a=="number"&&(r.maximum=a),typeof c=="number"&&(Number.isFinite(c)&&c!==0?r.multipleOf=Math.abs(c):Ee(e,t,r,o,`A multipleOf divisor of ${c} cannot be represented in JSON Schema`))},hh=(e,t,n,o)=>{n.type="boolean"},gh=(e,t,n,o)=>{Ee(e,t,n,o,"BigInt cannot be represented in JSON Schema")},vh=(e,t,n,o)=>{Ee(e,t,n,o,"Symbols cannot be represented in JSON Schema")},_h=(e,t,n,o)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},yh=(e,t,n,o)=>{Ee(e,t,n,o,"Undefined cannot be represented in JSON Schema")},Sh=(e,t,n,o)=>{Ee(e,t,n,o,"Void cannot be represented in JSON Schema")},bh=(e,t,n,o)=>{n.not={}},$h=(e,t,n,o)=>{},zh=(e,t,n,o)=>{},Rh=(e,t,n,o)=>{Ee(e,t,n,o,"Date cannot be represented in JSON Schema")},kh=(e,t,n,o)=>{let r=e._zod.def,i=_i(r.entries);if(i.length===0){n.not={};return}i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},wh=(e,t,n,o)=>{let r=e._zod.def;if(r.values.length===0){n.not={};return}let i=[];for(let a of r.values)if(a===void 0){if(Ee(e,t,n,o,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(Ee(e,t,n,o,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Ih=(e,t,n,o)=>{Ee(e,t,n,o,"NaN cannot be represented in JSON Schema")},Th=(e,t,n,o)=>{let r=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=i.source},xh=(e,t,n,o)=>{let r=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),c?c.length===1?(i.contentMediaType=c[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=c.map(l=>({contentMediaType:l}))):Object.assign(r,i)},Eh=(e,t,n,o)=>{n.type="boolean"},Ph=(e,t,n,o)=>{Ee(e,t,n,o,"Custom types cannot be represented in JSON Schema")},Oh=(e,t,n,o)=>{Ee(e,t,n,o,"Function types cannot be represented in JSON Schema")},Ch=(e,t,n,o)=>{Ee(e,t,n,o,"Transforms cannot be represented in JSON Schema")},Nh=(e,t,n,o)=>{Ee(e,t,n,o,"Map cannot be represented in JSON Schema")},jh=(e,t,n,o)=>{Ee(e,t,n,o,"Set cannot be represented in JSON Schema")},Ah=(e,t,n,o)=>{let r=n,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=pe(i.element,t,{...o,path:[...o.path,"items"]})};function Bi(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Bi(t.out):t.type==="catch"?Bi(t.innerType):e._zod.optin}var Uh=(e,t,n,o)=>{let r=n,i=e._zod.def,a=i.shape;if(Object.getOwnPropertySymbols(a).length&&Ee(e,t,r,o,"Symbol keys cannot be represented in JSON Schema"))return;r.type="object",r.properties={};for(let u in a)Se(r.properties,u,pe(a[u],t,{...o,path:[...o.path,"properties",u]}));let c=new Set(Object.keys(a)),l=new Set([...c].filter(u=>{let m=i.shape[u];return t.io==="input"?Bi(m)===void 0:m._zod.optout===void 0}));l.size>0&&(r.required=Array.from(l)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=pe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Mc=(e,t,n,o)=>{let r=e._zod.def,i=r.inclusive===!1,a=r.options.map((s,c)=>pe(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=a:n.anyOf=a},Dh=(e,t,n,o)=>{let r=e._zod.def,i=pe(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=pe(r.right,t,{...o,path:[...o.path,"allOf",1]}),s=l=>"allOf"in l&&Object.keys(l).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];n.allOf=c,t.intersections.push(c)},Lh=(e,t,n,o)=>{let r=n,i=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((S,y)=>pe(S,t,{...o,path:[...o.path,a,y]})),l=i.rest?pe(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,u=i.items.length;for(;u>0;){let S=i.items[u-1];if(!(t.io==="input"?Bi(S)!==void 0:S._zod.optout==="optional"))break;u--}let m=i.items.length,p=!i.rest;t.target==="draft-2020-12"?(r.prefixItems=c,p?r.items=!1:l&&(r.items=l),u>0&&(r.minItems=u),p&&(r.maxItems=m)):t.target==="openapi-3.0"?(r.items={anyOf:c},l&&r.items.anyOf.push(l),u>0&&(r.minItems=u),p&&(r.maxItems=m)):(r.items=c,p?r.additionalItems=!1:l&&(r.additionalItems=l),u>0&&(r.minItems=u),p&&(r.maxItems=m));let{minimum:f,maximum:h}=e._zod.bag;typeof f=="number"&&(r.minItems=f),typeof h=="number"&&(r.maxItems=h)};function dh(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let S=dh(e,h,n);return S===h?t:S}for(let h of["anyOf","oneOf"]){let S=t[h];if(!Array.isArray(S))continue;let y=S.map(w=>dh(e,w,n));y.some((w,T)=>w!==S[T])&&(t={...t,[h]:y})}let o=Array.isArray(t.type)?t.type:[t.type],r=!o.includes("string")&&o.some(h=>h==="number"||h==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!r&&!i?.some(h=>typeof h=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:m,id:p,...f}=t;return f.enum?f.enum=f.enum.map(h=>typeof h=="number"?String(h):h):typeof f.const=="number"&&(f.const=String(f.const)),r&&(f.type="string",i||(f.pattern=(o.includes("number")?br:xi).source)),f}var mh=new WeakMap;function Tx(e){let t=new Map;for(let o of e.seen.values())o.def&&!t.has(o.schema)&&t.set(o.schema,o);let n=new Map;for(let o of mh.get(e)??[]){let r=e.seen.get(o),i=(r?.def??r?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let a=dh(t,i,new Set);a!==i&&n.set(i,a)}if(n.size)for(let o of e.seen.values())for(let r of[o.schema,o.def]){let i=r&&n.get(r.propertyNames);i&&(r.propertyNames=i)}}var Mh=(e,t,n,o)=>{let r=n,i=e._zod.def;r.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let m=pe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(let p of c)Se(r.patternProperties,p.source,m)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){r.propertyNames=pe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]});let m=mh.get(t);m||(m=[],mh.set(t,m),t.deferred.push(()=>Tx(t))),m.push(e)}r.additionalProperties=pe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]})}let l=a._zod.values,u=t.io==="input"&&Bi(i.valueType)!==void 0;if(l&&!i.partial&&!u){let m=[...l].filter(p=>typeof p=="string"||typeof p=="number");m.length>0&&(r.required=m.map(String))}},qh=(e,t,n,o)=>{let r=e._zod.def,i=pe(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Vh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},Zh=Symbol();function KS(e,t,n,o,r){let i=!1,a=JSON.stringify(e,(s,c)=>typeof c!="bigint"?c:(i=!0,null));return i?(Ee(t,n,o,r,"BigInt defaults cannot be represented in JSON Schema"),Zh):JSON.parse(a)}var Fh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let a=KS(r.defaultValue,e,t,n,o);a!==Zh&&(n.default=a)},Kh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);if(i.ref=r.innerType,t.io!=="input")return;let a=KS(r.defaultValue,e,t,n,o);a!==Zh&&(n._prefault=a)},Jh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{Ee(e,t,n,o,"Dynamic catch values are not supported in JSON Schema");return}n.default=a},Bh=(e,t,n,o)=>{let r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;pe(a,t,o);let s=t.seen.get(e);s.ref=a},Hh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},Yh=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},qc=(e,t,n,o)=>{let r=e._zod.def;pe(r.innerType,t,o);let i=t.seen.get(e);i.ref=r.innerType},Gh=(e,t,n,o)=>{let r=e._zod.innerType;pe(r,t,o);let i=t.seen.get(e);i.ref=r},Lc={string:ph,number:fh,boolean:hh,bigint:gh,symbol:vh,null:_h,undefined:yh,void:Sh,never:bh,any:$h,unknown:zh,date:Rh,enum:kh,literal:wh,nan:Ih,template_literal:Th,file:xh,success:Eh,custom:Ph,function:Oh,transform:Ch,map:Nh,set:jh,array:Ah,object:Uh,union:Mc,intersection:Dh,tuple:Lh,record:Mh,nullable:qh,nonoptional:Vh,default:Fh,prefault:Kh,catch:Jh,pipe:Bh,readonly:Hh,promise:Yh,optional:qc,lazy:Gh};function hn(e,t){if("_idmap"in e){let o=e,r=Rr({...t,processors:Lc}),i={};for(let c of o._idmap.entries()){let[l,u]=c;pe(u,r)}let a={},s={registry:o,uri:t?.uri,defs:i};r.external=s;for(let c of o._idmap.entries()){let[l,u]=c;kr(r,u),Se(a,l,wr(r,u))}if(Object.keys(i).length>0){let c=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let n=Rr({...t,processors:Lc});return pe(e,n),kr(n,e),wr(n,e)}var Vc=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Rr({processors:Lc,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return pe(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,kr(this.ctx,t);let o=wr(this.ctx,t),{"~standard":r,...i}=o;return i}};var JS={};var bo={};Qt(bo,{ZodAny:()=>pg,ZodArray:()=>vg,ZodBase64:()=>cl,ZodBase64URL:()=>ll,ZodBigInt:()=>So,ZodBigIntFormat:()=>ml,ZodBoolean:()=>yo,ZodCIDRv4:()=>al,ZodCIDRv6:()=>sl,ZodCUID:()=>Qc,ZodCUID2:()=>el,ZodCatch:()=>Ag,ZodCodec:()=>ra,ZodCreditCard:()=>lg,ZodCustom:()=>na,ZodCustomStringFormat:()=>vo,ZodDate:()=>Wi,ZodDefault:()=>Eg,ZodDiscriminatedUnion:()=>yg,ZodE164:()=>ul,ZodEmail:()=>Hc,ZodEmoji:()=>Wc,ZodEnum:()=>fo,ZodExactOptional:()=>gl,ZodFile:()=>wg,ZodFunction:()=>Kg,ZodGUID:()=>Gc,ZodIPv4:()=>ol,ZodIPv6:()=>il,ZodISODate:()=>Tr,ZodISODateTime:()=>Ir,ZodISODuration:()=>Er,ZodISOTime:()=>xr,ZodIntersection:()=>Sg,ZodJWT:()=>dl,ZodKSUID:()=>nl,ZodLazy:()=>Zg,ZodLiteral:()=>kg,ZodMAC:()=>cg,ZodMap:()=>zg,ZodNaN:()=>Dg,ZodNanoID:()=>Xc,ZodNever:()=>hg,ZodNonOptional:()=>vl,ZodNull:()=>mg,ZodNullable:()=>xg,ZodNumber:()=>_o,ZodNumberFormat:()=>vn,ZodObject:()=>Xi,ZodOptional:()=>ea,ZodPipe:()=>ta,ZodPrefault:()=>Og,ZodPreprocess:()=>Lg,ZodPromise:()=>Fg,ZodReadonly:()=>Mg,ZodRecord:()=>po,ZodSet:()=>Rg,ZodString:()=>ho,ZodStringFormat:()=>he,ZodSuccess:()=>jg,ZodSymbol:()=>ug,ZodTemplateLiteral:()=>Vg,ZodTransform:()=>Ig,ZodTuple:()=>bg,ZodType:()=>le,ZodULID:()=>tl,ZodURL:()=>Gi,ZodUUID:()=>Ft,ZodUndefined:()=>dg,ZodUnion:()=>Qi,ZodUnknown:()=>fg,ZodVoid:()=>gg,ZodXID:()=>rl,ZodXor:()=>_g,_ZodString:()=>Bc,_default:()=>Pg,_function:()=>Yb,any:()=>pl,array:()=>b,base64:()=>pb,base64url:()=>fb,bigint:()=>wb,boolean:()=>D,catch:()=>Ug,check:()=>Gb,cidrv4:()=>db,cidrv6:()=>mb,codec:()=>Kb,creditCard:()=>gb,cuid:()=>nb,cuid2:()=>ob,custom:()=>Wb,date:()=>Ob,describe:()=>Xb,discriminatedUnion:()=>Pr,e164:()=>hb,email:()=>Yc,emoji:()=>tb,enum:()=>te,exactOptional:()=>Tg,file:()=>qb,float32:()=>$b,float64:()=>zb,function:()=>Yb,guid:()=>YS,hash:()=>bb,hex:()=>Sb,hostname:()=>yb,httpUrl:()=>eb,instanceof:()=>e$,int:()=>Kc,int32:()=>Rb,int64:()=>Ib,intersection:()=>Et,invertCodec:()=>Jb,ipv4:()=>cb,ipv6:()=>ub,json:()=>r$,jwt:()=>vb,keyof:()=>Cb,ksuid:()=>sb,lazy:()=>Or,literal:()=>z,looseObject:()=>Y,looseRecord:()=>Ub,mac:()=>lb,map:()=>Db,meta:()=>Qb,nan:()=>Fb,nanoid:()=>rb,nativeEnum:()=>Mb,never:()=>fl,nonoptional:()=>Ng,null:()=>Kt,nullable:()=>Yi,nullish:()=>Vb,number:()=>x,object:()=>g,optional:()=>F,partialRecord:()=>Ab,pipe:()=>Jc,prefault:()=>Cg,preprocess:()=>rr,promise:()=>Hb,readonly:()=>qg,record:()=>j,refine:()=>Jg,set:()=>Lb,strictObject:()=>Nb,string:()=>d,stringFormat:()=>_b,stringbool:()=>t$,success:()=>Zb,superRefine:()=>Bg,symbol:()=>xb,templateLiteral:()=>Bb,transform:()=>hl,tuple:()=>$g,uint32:()=>kb,uint64:()=>Tb,ulid:()=>ib,undefined:()=>Eb,union:()=>A,unknown:()=>B,url:()=>go,uuid:()=>GS,uuidv4:()=>WS,uuidv6:()=>XS,uuidv7:()=>QS,void:()=>Pb,xid:()=>ab,xor:()=>jb});var Zc={};Qt(Zc,{endsWith:()=>no,gt:()=>Vt,gte:()=>ht,includes:()=>to,length:()=>fn,lowercase:()=>Qn,lt:()=>qt,lte:()=>ft,maxLength:()=>pn,maxSize:()=>zr,mime:()=>oo,minLength:()=>er,minSize:()=>Zt,multipleOf:()=>$r,negative:()=>Nc,nonnegative:()=>Ac,nonpositive:()=>jc,normalize:()=>io,overwrite:()=>xt,positive:()=>Cc,properties:()=>Dc,property:()=>Uc,regex:()=>Xn,size:()=>mn,slugify:()=>lo,startsWith:()=>ro,toLowerCase:()=>so,toUpperCase:()=>co,trim:()=>ao,uppercase:()=>eo});var BS=new WeakSet([Object.prototype,Error.prototype]);function Fc(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let o=n(this);return Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0}),o},set(o){Object.defineProperty(this,t,{value:o,configurable:!0,writable:!0})}})}var HS=(e,t)=>{wi.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);BS.has(n)||(BS.add(n),Fc(n,"format",o=>r=>Ti(o,r)),Fc(n,"flatten",o=>r=>Ii(o,r)),Fc(n,"addIssue",o=>r=>{o.issues.push(r),o.message=JSON.stringify(o.issues,Vn,2)}),Fc(n,"addIssues",o=>r=>{o.issues.push(...r),o.message=JSON.stringify(o.issues,Vn,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Ex=v("ZodError",HS),at=v("ZodError",HS,void 0,{Parent:Error});var Wh=Kn(at),Xh=Jn(at),Hi=Bn(at),Qh=Hn(at),eg=Rs(at),tg=ks(at),rg=ws(at),ng=Is(at),og=Ts(at),ig=xs(at),ag=Es(at),sg=Ps(at);function Ox(){Pe.localeError||$e(ac())}function gn(){Pe.memoizer||$e({memoizer:Di()})}var le=v("ZodType",(e,t)=>(Ox(),ie.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(I.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return me(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Jg(e,t))},superRefine(e,t){return this.check(Bg(e,t))},overwrite(e){return this.check(xt(e))},optional(){return F(this)},exactOptional(){return Tg(this)},nullable(){return Yi(this)},nullish(){return F(Yi(this))},nonoptional(e){return Ng(this,e)},array(){return b(this)},or(e){return A([this,e])},and(e){return Et(this,e)},transform(e){return Jc(this,hl(e))},default(e){return Pg(this,e)},prefault(e){return Cg(this,e)},catch(e){return Ug(this,e)},pipe(e){return Jc(this,e)},readonly(){return qg(this)},describe(e){let t=this.clone();return je.add(t,{description:e}),t},meta(...e){if(e.length===0)return je.get(this);let t=this.clone();return je.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return I.hide(this,"~standard",{...Vs(this),jsonSchema:{input:mo(this,"input"),output:mo(this,"output")}})},set"~standard"(e){I.own(this,"~standard",e)},parse:function e(t,n){return Wh(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Xh(this,t,n,{callee:e})},safeParse(e,t){return Hi(this,e,t)},async safeParseAsync(e,t){return Qh(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){I.own(this,"spa",e)},encode:function e(t,n){return eg(this,t,n,{callee:e})},decode:function e(t,n){return tg(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await rg(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await ng(this,t,n,{callee:e})},safeEncode(e,t){return og(this,e,t)},safeDecode(e,t){return ig(this,e,t)},async safeEncodeAsync(e,t){return ag(this,e,t)},async safeDecodeAsync(e,t){return sg(this,e,t)},toJSONSchema(e){return uh(this,{})(e)},get description(){return je.get(this)?.description},get _def(){return this._zod.def}}),Bc=v("_ZodString",(e,t)=>{sn.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>ph(e,o,r,i);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null},{regex(...e){return this.check(Xn(...e))},includes(...e){return this.check(to(...e))},startsWith(...e){return this.check(ro(...e))},endsWith(...e){return this.check(no(...e))},min(...e){return this.check(er(...e))},max(...e){return this.check(pn(...e))},length(...e){return this.check(fn(...e))},nonempty(...e){return this.check(er(1,...e))},lowercase(e){return this.check(Qn(e))},uppercase(e){return this.check(eo(e))},trim(){return this.check(ao())},normalize(...e){return this.check(io(...e))},toLowerCase(){return this.check(so())},toUpperCase(){return this.check(co())},slugify(){return this.check(lo())}}),ho=v("ZodString",(e,t)=>{sn.init(e,t),Bc.init(e,t)},{email(e){return this.check(mc(Hc,e))},url(e){return this.check(qi(Gi,e))},jwt(e){return this.check(Oc(dl,e))},emoji(e){return this.check(_c(Wc,e))},guid(e){return this.check(pc(Gc,e))},uuid(e){return this.check(fc(Ft,e))},uuidv4(e){return this.check(hc(Ft,e))},uuidv6(e){return this.check(gc(Ft,e))},uuidv7(e){return this.check(vc(Ft,e))},nanoid(e){return this.check(yc(Xc,e))},cuid(e){return this.check(Sc(Qc,e))},cuid2(e){return this.check(bc(el,e))},ulid(e){return this.check($c(tl,e))},base64(e){return this.check(xc(cl,e))},base64url(e){return this.check(Ec(ll,e))},xid(e){return this.check(zc(rl,e))},ksuid(e){return this.check(Rc(nl,e))},ipv4(e){return this.check(kc(ol,e))},ipv6(e){return this.check(wc(il,e))},cidrv4(e){return this.check(Ic(al,e))},cidrv6(e){return this.check(Tc(sl,e))},e164(e){return this.check(Pc(ul,e))},datetime(e){return this.check(Vi(Ir,e))},date(e){return this.check(Zi(Tr,e))},time(e){return this.check(Fi(xr,e))},duration(e){return this.check(Ki(Er,e))}});function d(e){return If(ho,e)}var he=v("ZodStringFormat",(e,t)=>{fe.init(e,t),Bc.init(e,t)}),Ir=v("ZodISODateTime",(e,t)=>{vp.init(e,t),he.init(e,t)}),Tr=v("ZodISODate",(e,t)=>{_p.init(e,t),he.init(e,t)}),xr=v("ZodISOTime",(e,t)=>{yp.init(e,t),he.init(e,t)}),Er=v("ZodISODuration",(e,t)=>{Sp.init(e,t),he.init(e,t)}),Hc=v("ZodEmail",(e,t)=>{ap.init(e,t),he.init(e,t)});function Yc(e){return mc(Hc,e)}var Gc=v("ZodGUID",(e,t)=>{op.init(e,t),he.init(e,t)});function YS(e){return pc(Gc,e)}var Ft=v("ZodUUID",(e,t)=>{ip.init(e,t),he.init(e,t)});function GS(e){return fc(Ft,e)}function WS(e){return hc(Ft,e)}function XS(e){return gc(Ft,e)}function QS(e){return vc(Ft,e)}var Gi=v("ZodURL",(e,t)=>{lp.init(e,t),he.init(e,t)});function go(e){return qi(Gi,e)}function eb(e){return qi(Gi,{protocol:He.httpProtocol,hostname:He.domain,...I.normalizeParams(e)})}var Wc=v("ZodEmoji",(e,t)=>{up.init(e,t),he.init(e,t)});function tb(e){return _c(Wc,e)}var Xc=v("ZodNanoID",(e,t)=>{dp.init(e,t),he.init(e,t)});function rb(e){return yc(Xc,e)}var Qc=v("ZodCUID",(e,t)=>{mp.init(e,t),he.init(e,t)});function nb(e){return Sc(Qc,e)}var el=v("ZodCUID2",(e,t)=>{pp.init(e,t),he.init(e,t)});function ob(e){return bc(el,e)}var tl=v("ZodULID",(e,t)=>{fp.init(e,t),he.init(e,t)});function ib(e){return $c(tl,e)}var rl=v("ZodXID",(e,t)=>{hp.init(e,t),he.init(e,t)});function ab(e){return zc(rl,e)}var nl=v("ZodKSUID",(e,t)=>{gp.init(e,t),he.init(e,t)});function sb(e){return Rc(nl,e)}var ol=v("ZodIPv4",(e,t)=>{bp.init(e,t),he.init(e,t)});function cb(e){return kc(ol,e)}var cg=v("ZodMAC",(e,t)=>{zp.init(e,t),he.init(e,t)});function lb(e){return xf(cg,e)}var il=v("ZodIPv6",(e,t)=>{$p.init(e,t),he.init(e,t)});function ub(e){return wc(il,e)}var al=v("ZodCIDRv4",(e,t)=>{Rp.init(e,t),he.init(e,t)});function db(e){return Ic(al,e)}var sl=v("ZodCIDRv6",(e,t)=>{kp.init(e,t),he.init(e,t)});function mb(e){return Tc(sl,e)}var cl=v("ZodBase64",(e,t)=>{wp.init(e,t),he.init(e,t)});function pb(e){return xc(cl,e)}var ll=v("ZodBase64URL",(e,t)=>{Ip.init(e,t),he.init(e,t)});function fb(e){return Ec(ll,e)}var ul=v("ZodE164",(e,t)=>{Tp.init(e,t),he.init(e,t)});function hb(e){return Pc(ul,e)}var lg=v("ZodCreditCard",(e,t)=>{xp.init(e,t),he.init(e,t)});function gb(e){return Ef(lg,e)}var dl=v("ZodJWT",(e,t)=>{Ep.init(e,t),he.init(e,t)});function vb(e){return Oc(dl,e)}var vo=v("ZodCustomStringFormat",(e,t)=>{Pp.init(e,t),he.init(e,t)});function _b(e,t,n={}){return uo(vo,e,t,n)}function yb(e){return uo(vo,"hostname",He.hostname,e)}function Sb(e){return uo(vo,"hex",He.hex,e)}function bb(e,t){let n=t?.enc??"hex",o=`${e}_${n}`,r=He[o];if(!r)throw new Error(`Unrecognized hash format: ${o}`);return uo(vo,o,r,t)}var _o=v("ZodNumber",(e,t)=>{Ws.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>fh(e,o,r,i);let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null},{gt(e,t){return this.check(Vt(e,t))},gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},lt(e,t){return this.check(qt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},int(e){return this.check(Kc(e))},safe(e){return this.check(Kc(e))},positive(e){return this.check(Vt(0,e))},nonnegative(e){return this.check(ht(0,e))},negative(e){return this.check(qt(0,e))},nonpositive(e){return this.check(ft(0,e))},multipleOf(e,t){return this.check($r(e,t))},step(e,t){return this.check($r(e,t))},finite(){return this}});function x(e){return Of(_o,e)}var vn=v("ZodNumberFormat",(e,t)=>{Op.init(e,t),_o.init(e,t)});function Kc(e){return Nf(vn,e)}function $b(e){return jf(vn,e)}function zb(e){return Af(vn,e)}function Rb(e){return Uf(vn,e)}function kb(e){return Df(vn,e)}var yo=v("ZodBoolean",(e,t)=>{Ni.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>hh(e,n,o,r)});function D(e){return Lf(yo,e)}var So=v("ZodBigInt",(e,t)=>{Xs.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>gh(e,o,r,i);let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null},{gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},gt(e,t){return this.check(Vt(e,t))},lt(e,t){return this.check(qt(e,t))},lte(e,t){return this.check(ft(e,t))},max(e,t){return this.check(ft(e,t))},positive(e){return this.check(Vt(BigInt(0),e))},negative(e){return this.check(qt(BigInt(0),e))},nonpositive(e){return this.check(ft(BigInt(0),e))},nonnegative(e){return this.check(ht(BigInt(0),e))},multipleOf(e,t){return this.check($r(e,t))}});function wb(e){return qf(So,e)}var ml=v("ZodBigIntFormat",(e,t)=>{Cp.init(e,t),So.init(e,t)});function Ib(e){return Zf(ml,e)}function Tb(e){return Ff(ml,e)}var ug=v("ZodSymbol",(e,t)=>{Np.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>vh(e,n,o,r)});function xb(e){return Kf(ug,e)}var dg=v("ZodUndefined",(e,t)=>{jp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>yh(e,n,o,r)});function Eb(e){return Jf(dg,e)}var mg=v("ZodNull",(e,t)=>{Ap.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>_h(e,n,o,r)});function Kt(e){return Bf(mg,e)}var pg=v("ZodAny",(e,t)=>{Up.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>$h(e,n,o,r)});function pl(){return Hf(pg)}var fg=v("ZodUnknown",(e,t)=>{Dp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>zh(e,n,o,r)});function B(){return Yf(fg)}var hg=v("ZodNever",(e,t)=>{Lp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>bh(e,n,o,r)});function fl(e){return Gf(hg,e)}var gg=v("ZodVoid",(e,t)=>{Mp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Sh(e,n,o,r)});function Pb(e){return Wf(gg,e)}var Wi=v("ZodDate",(e,t)=>{qp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Rh(e,o,r,i),e.min=(o,r)=>e.check(ht(o,r)),e.max=(o,r)=>e.check(ft(o,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Ob(e){return Xf(Wi,e)}var vg=v("ZodArray",(e,t)=>{gn(),Vp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ah(e,n,o,r),e.element=t.element},{min(e,t){return this.check(er(e,t))},nonempty(e){return this.check(er(1,e))},max(e,t){return this.check(pn(e,t))},length(e,t){return this.check(fn(e,t))},unwrap(){return this.element}});function b(e,t){return th(vg,e,t)}function Cb(e){let t=e._zod.def.shape;return te(Object.keys(t))}var Xi=v("ZodObject",(e,t)=>{gn(),Zp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Uh(e,n,o,r),I.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return te(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:B()})},loose(){return this.clone({...this._zod.def,catchall:B()})},strict(){return this.clone({...this._zod.def,catchall:fl()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return I.extend(this,e)},safeExtend(e){return I.safeExtend(this,e)},merge(e){return I.merge(this,e)},pick(e){return I.pick(this,e)},omit(e){return I.omit(this,e)},partial(...e){return I.partial(ea,this,e[0])},exactPartial(...e){return I.partial(gl,this,e[0],"exactPartial")},required(...e){return I.required(vl,this,e[0])}});function g(e,t){let n={type:"object",shape:e??{},...I.normalizeParams(t)};return new Xi(n)}function Nb(e,t){return new Xi({type:"object",shape:e,catchall:fl(),...I.normalizeParams(t)})}function Y(e,t){return new Xi({type:"object",shape:e,catchall:B(),...I.normalizeParams(t)})}var Qi=v("ZodUnion",(e,t)=>{ji.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mc(e,n,o,r),e.options=t.options});function A(e,t){return new Qi({type:"union",options:e,...I.normalizeParams(t)})}var _g=v("ZodXor",(e,t)=>{Qi.init(e,t),Fp.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mc(e,n,o,r),e.options=t.options});function jb(e,t){return new _g({type:"union",options:e,inclusive:!1,...I.normalizeParams(t)})}var yg=v("ZodDiscriminatedUnion",(e,t)=>{Qi.init(e,t),Jp.init(e,t)});function Pr(e,t,n){return new yg({type:"union",options:t,discriminator:e,...I.normalizeParams(n)})}var Sg=v("ZodIntersection",(e,t)=>{Bp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dh(e,n,o,r)});function Et(e,t){return new Sg({type:"intersection",left:e,right:t})}var bg=v("ZodTuple",(e,t)=>{gn(),Qs.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Lh(e,n,o,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new ea({type:"optional",innerType:t}))})}});function $g(e,t,n){let o=t instanceof ie,r=o?n:t,i=o?t:null;return new bg({type:"tuple",items:e,rest:i,...I.normalizeParams(r)})}var po=v("ZodRecord",(e,t)=>{gn(),Hp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Mh(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function j(e,t,n){return!t||!t._zod?new po({type:"record",keyType:d(),valueType:e,...I.normalizeParams(t)}):new po({type:"record",keyType:e,valueType:t,...I.normalizeParams(n)})}function Ab(e,t,n){return new po({type:"record",keyType:e,valueType:t,...I.normalizeParams(n),partial:!0})}function Ub(e,t,n){return new po({type:"record",keyType:e,valueType:t,mode:"loose",...I.normalizeParams(n)})}var zg=v("ZodMap",(e,t)=>{gn(),Yp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Nh(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Zt(...n)),e.nonempty=n=>e.check(Zt(1,n)),e.max=(...n)=>e.check(zr(...n)),e.size=(...n)=>e.check(mn(...n))});function Db(e,t,n){return new zg({type:"map",keyType:e,valueType:t,...I.normalizeParams(n)})}var Rg=v("ZodSet",(e,t)=>{gn(),Gp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>jh(e,n,o,r),e.min=(...n)=>e.check(Zt(...n)),e.nonempty=n=>e.check(Zt(1,n)),e.max=(...n)=>e.check(zr(...n)),e.size=(...n)=>e.check(mn(...n))});function Lb(e,t){return new Rg({type:"set",valueType:e,...I.normalizeParams(t)})}var fo=v("ZodEnum",(e,t)=>{Wp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(o,r,i)=>kh(e,o,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{let i={};for(let a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new fo({...t,checks:[],...I.normalizeParams(r),entries:i})},e.exclude=(o,r)=>{let i={...t.entries};for(let a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new fo({...t,checks:[],...I.normalizeParams(r),entries:i})}});function te(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new fo({type:"enum",entries:n,...I.normalizeParams(t)})}function Mb(e,t){return new fo({type:"enum",entries:e,...I.normalizeParams(t)})}var kg=v("ZodLiteral",(e,t)=>{Xp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>wh(e,n,o,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function z(e,t){return new kg({type:"literal",values:Array.isArray(e)?e:[e],...I.normalizeParams(t)})}var wg=v("ZodFile",(e,t)=>{Qp.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>xh(e,n,o,r),e.min=(n,o)=>e.check(Zt(n,o)),e.max=(n,o)=>e.check(zr(n,o)),e.mime=(n,o)=>e.check(oo(Array.isArray(n)?n:[n],o))});function qb(e){return rh(wg,e)}var Ig=v("ZodTransform",(e,t)=>{gn(),ef.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ch(e,n,o,r),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Sr(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(I.issue(i,n.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=n.value),a.inst??(a.inst=e),n.issues.push(I.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n)):(n.value=r,n)}});function hl(e){return new Ig({type:"transform",transform:e})}var ea=v("ZodOptional",(e,t)=>{ec.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qc(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function F(e){return new ea({type:"optional",innerType:e})}var gl=v("ZodExactOptional",(e,t)=>{tf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qc(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Tg(e){return new gl({type:"optional",innerType:e})}var xg=v("ZodNullable",(e,t)=>{rf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Yi(e){return new xg({type:"nullable",innerType:e})}function Vb(e){return F(Yi(e))}var Eg=v("ZodDefault",(e,t)=>{nf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Fh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Pg(e,t){return new Eg({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var Og=v("ZodPrefault",(e,t)=>{of.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Cg(e,t){return new Og({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():I.shallowClone(t)}})}var vl=v("ZodNonOptional",(e,t)=>{af.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Ng(e,t){return new vl({type:"nonoptional",innerType:e,...I.normalizeParams(t)})}var jg=v("ZodSuccess",(e,t)=>{sf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Eh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Zb(e){return new jg({type:"success",innerType:e})}var Ag=v("ZodCatch",(e,t)=>{cf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ug(e,t){return new Ag({type:"catch",innerType:e,catchValue:typeof t=="function"?t:I.constantCatch(t)})}var Dg=v("ZodNaN",(e,t)=>{lf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ih(e,n,o,r)});function Fb(e){return eh(Dg,e)}var ta=v("ZodPipe",(e,t)=>{tc.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Bh(e,n,o,r),e.in=t.in,e.out=t.out});function Jc(e,t){return new ta({type:"pipe",in:e,out:t})}var ra=v("ZodCodec",(e,t)=>{ta.init(e,t),Ai.init(e,t)});function Kb(e,t,n){return new ra({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Jb(e){let t=e._zod.def;return new ra({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Lg=v("ZodPreprocess",(e,t)=>{ta.init(e,t),uf.init(e,t)}),Mg=v("ZodReadonly",(e,t)=>{df.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Hh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function qg(e){return new Mg({type:"readonly",innerType:e})}var Vg=v("ZodTemplateLiteral",(e,t)=>{mf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Th(e,n,o,r)});function Bb(e,t){return new Vg({type:"template_literal",parts:e,...I.normalizeParams(t)})}var Zg=v("ZodLazy",(e,t)=>{Ui.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Gh(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function Or(e){return new Zg({type:"lazy",getter:e})}var Fg=v("ZodPromise",(e,t)=>{ff.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yh(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function Hb(e){return new Fg({type:"promise",innerType:e})}var Kg=v("ZodFunction",(e,t)=>{pf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Oh(e,n,o,r)});function Yb(e){return new Kg({type:"function",input:Array.isArray(e?.input)?$g(e?.input):e?.input??b(B()),output:e?.output??B()})}var na=v("ZodCustom",(e,t)=>{hf.init(e,t),le.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Ph(e,n,o,r)});function Gb(e){let t=new ge({check:"custom"});return t._zod.check=e,t}function Wb(e,t){return nh(na,e??(()=>!0),t)}function Jg(e,t={}){return oh(na,e,t)}function Bg(e,t){return ih(e,t)}var Xb=ah,Qb=sh;function e$(e,t={}){let n=new na({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...I.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:n,path:[...n._zod.def.path??[]]})},n}var t$=(...e)=>ch({Codec:ra,Boolean:yo,String:ho},...e);function r$(e){let t=Or(()=>A([d(e),x(),D(),Kt(),b(t),j(d(),t)]));return t}function rr(e,t){return new Lg({type:"pipe",in:hl(e),out:t})}var Yg={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Cx(e){$e({customError:e})}function Nx(){return $e().customError}var Hg;Hg||(Hg={});var $t={};Qt($t,{ZodISODate:()=>Tr,ZodISODateTime:()=>Ir,ZodISODuration:()=>Er,ZodISOTime:()=>xr,date:()=>Ax,datetime:()=>jx,duration:()=>Dx,time:()=>Ux});function jx(e){return Vi(Ir,e)}function Ax(e){return Zi(Tr,e)}function Ux(e){return Fi(xr,e)}function Dx(e){return Ki(Er,e)}var M={...bo,...Zc,iso:$t},Lx=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Mx(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function n$(e,t){return e.map((n,o)=>o<t?n:n.optional())}function qx(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Vx(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===o){let r=n[1]===void 0?void 0:qx(n[1]);if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function Zx(e,t){return M.transform(o=>o).check(o=>{let r=o.value;if(!(typeof r!="object"||r===null||Array.isArray(r)))for(let i of Object.getOwnPropertyNames(r)){let a=t.safeParse(i);a.success||o.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:i,path:[i],continue:!0})}}).pipe(e)}function o$(e,t){if(e!==!1)return e===void 0||e===!0?M.any():st(e,t)}var Fx=/^(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$/;function i$(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return M.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return M.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=Vx(r,t),a=st(i,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return M.null();if(r.length===0)return M.never();if(r.length===1)return M.literal(r[0]);if(r.every(a=>typeof a=="string"))return M.enum(r);let i=r.map(a=>M.literal(a));return i.length<2?i[0]:M.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return M.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(i=>{let a={...e,type:i};return i$(a,t)});return r.length===0?M.never():r.length===1?r[0]:M.union(r)}if(!n)return M.any();let o;switch(n){case"string":{let r=M.string();if(e.format){let i=e.format;i==="email"?r=r.check(M.email()):i==="uri"||i==="uri-reference"?r=r.check(M.url()):i==="uuid"||i==="guid"?r=r.check(M.uuid()):i==="date-time"?r=r.check(M.iso.datetime({offset:!0})):i==="date"?r=r.check(M.iso.date()):i==="time"?r=r.check(M.regex(Fx)):i==="duration"?r=r.check(M.iso.duration()):i==="hostname"?r=r.check(M.hostname()):i==="ipv4"?r=r.check(M.ipv4()):i==="ipv6"?r=r.check(M.ipv6()):i==="mac"?r=r.check(M.mac()):i==="cidr"?r=r.check(M.cidrv4()):i==="cidr-v6"?r=r.check(M.cidrv6()):i==="base64"?r=r.check(M.base64()):i==="base64url"?r=r.check(M.base64url()):i==="e164"?r=r.check(M.e164()):i==="credit_card"?r=r.check(M.creditCard()):i==="jwt"?r=r.check(M.jwt()):i==="emoji"?r=r.check(M.emoji()):i==="nanoid"?r=r.check(M.nanoid()):i==="cuid"?r=r.check(M.cuid()):i==="cuid2"?r=r.check(M.cuid2()):i==="ulid"?r=r.check(M.ulid()):i==="xid"?r=r.check(M.xid()):i==="ksuid"&&(r=r.check(M.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),o=r;break}case"number":case"integer":{let r=n==="integer"?M.number().int():M.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),o=r;break}case"boolean":{o=M.boolean();break}case"null":{o=M.null();break}case"object":{let r={},i=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?st(e.additionalProperties,t):void 0;for(let[c,l]of Object.entries(i)){let u=st(l,t);Se(r,c,a.has(c)?u:u.optional())}if(e.patternProperties){let c=e.patternProperties,l=Object.keys(c),u=[];for(let p of l){let f=st(c[p],t),h=M.string().regex(new RegExp(p));u.push(M.looseRecord(h,f))}let m=[];if(Object.keys(r).length>0&&m.push(M.object(r).passthrough()),m.push(...u),m.length===0)o=M.object({}).passthrough();else if(m.length===1)o=m[0];else{let p=M.intersection(m[0],m[1]);for(let f=2;f<m.length;f++)p=M.intersection(p,m[f]);o=p}if(e.additionalProperties===!1){let p=Object.keys(r),f=l.map(S=>new RegExp(S)),h=o;o=o.check(S=>{if(!St(S.value))return;let y=[];for(let w of Object.keys(S.value))p.includes(w)||f.some(T=>T.test(w))||y.push(w);y.length&&S.issues.push({code:"unrecognized_keys",keys:y,input:S.value,inst:h})})}}else{let c=M.object(r);e.additionalProperties===!1?o=c.strict():s?o=c.catchall(s):o=c.passthrough()}if(e.propertyNames!==void 0&&e.propertyNames!==!0){let c=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;o=Zx(o,st(c,t))}break}case"array":{let r=e.prefixItems,i=e.items;if(r&&Array.isArray(r)){let a=typeof e.minItems=="number"?e.minItems:0,s=r.map(m=>st(m,t)),c=n$(s,a),l=Array.isArray(i)?void 0:o$(i,t),u=M.tuple(c);o=l?u.rest(l):u,typeof e.minItems=="number"&&(o=o.check(M.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(M.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=typeof e.minItems=="number"?e.minItems:0,s=i.map(m=>st(m,t)),c=n$(s,a),l=o$(e.additionalItems,t),u=M.tuple(c);o=l?u.rest(l):u,typeof e.minItems=="number"&&(o=o.check(M.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(M.maxLength(e.maxItems)))}else if(i!==void 0){let a=st(i,t),s=M.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=M.array(M.any());break}default:throw new Error(`Unsupported type: ${n}`)}return o}function st(e,t){if(typeof e=="boolean")return e?M.any():M.never();let n=i$(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(l=>st(l,t)),c=M.union(s);n=o?M.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(l=>st(l,t)),c=M.xor(s);n=o?M.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=o?n:M.any();else{let s=o?n:st(e.allOf[0],t),c=o?0:1;for(let l=c;l<e.allOf.length;l++)s=M.intersection(s,st(e.allOf[l],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=M.nullable(n)),e.readOnly===!0&&(n=M.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let r={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);e.propertyNames!==void 0&&e.type==="object"&&e.$ref===void 0&&(r.propertyNames=e.propertyNames);for(let s of Object.keys(e))Lx.has(s)||Se(r,s,e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function a$(e,t){if(typeof e=="boolean")return e?M.any():M.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=Mx(n,t?.defaultTarget),r=n.$defs||n.definitions||{},i={version:o,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??je};return st(n,i)}var s$=Symbol("z.visit/resolving");function oa(e,t){let n=typeof t=="function"?t:(a,s)=>{let c=t[a._zod.def.type];return c?c(a,s):a},o=new Map;function r(a){let s=o.get(a);if(s===s$)return new Ui({type:"lazy",getter:()=>o.get(a)});if(s!==void 0)return s;o.set(a,s$);let c=i(a),l=n(c,c!==a);return o.set(a,l),l}function i(a){let s=a._zod.def,c=s.type;switch(c){case"object":{let l=s.shape,u=Object.keys(l),m=!1,p={};for(let h of u){let S=r(l[h]);S!==l[h]&&(m=!0),p[h]=S}let f=s.catchall;return s.catchall&&(f=r(s.catchall),f!==s.catchall&&(m=!0)),m?me(a,{...s,shape:p,catchall:f}):a}case"array":{let l=r(s.element);return l===s.element?a:me(a,{...s,element:l})}case"tuple":{let l=s.items,u=!1,m=[];for(let f of l){let h=r(f);h!==f&&(u=!0),m.push(h)}let p=s.rest;return s.rest&&(p=r(s.rest),p!==s.rest&&(u=!0)),u?me(a,{...s,items:m,rest:p}):a}case"record":case"map":{let l=r(s.keyType),u=r(s.valueType);return l===s.keyType&&u===s.valueType?a:me(a,{...s,keyType:l,valueType:u})}case"set":{let l=r(s.valueType);return l===s.valueType?a:me(a,{...s,valueType:l})}case"union":{let l=s.options,u=!1,m=[];for(let p of l){let f=r(p);f!==p&&(u=!0),m.push(f)}return u?me(a,{...s,options:m}):a}case"intersection":{let l=r(s.left),u=r(s.right);return l===s.left&&u===s.right?a:me(a,{...s,left:l,right:u})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let l=r(s.innerType);return l===s.innerType?a:me(a,{...s,innerType:l})}case"pipe":{let l=r(s.in),u=r(s.out);return l===s.in&&u===s.out?a:me(a,{...s,in:l,out:u})}case"function":{let l=r(s.input),u=r(s.output);return l===s.input&&u===s.output?a:me(a,{...s,input:l,output:u})}case"lazy":{let l=s.getter,{_cachedInner:u,...m}=s;return me(a,{...m,getter:()=>r(l())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return r(e)}function c$(e){return oa(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:A(n.options)}})}function Kx(e,t){if(!t?.length)return e;let n=e._zod.def;return me(e,It(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function l$(e){return Kx(e.out,e.checks)}function Jx(e){return e.in._zod.traits.has("$ZodTransform")?l$(e):e.in}function u$(e){return oa(e,{pipe:t=>Jx(t._zod.def),default:(t,n)=>n?F(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function d$(e){return oa(e,{pipe:t=>l$(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var ia={};Qt(ia,{bigint:()=>Gx,boolean:()=>Yx,date:()=>Wx,number:()=>Hx,string:()=>Bx});function Bx(e){return Tf(ho,e)}function Hx(e){return Cf(_o,e)}function Yx(e){return Mf(yo,e)}function Gx(e){return Vf(So,e)}function Wx(e){return Qf(Wi,e)}var yn="2025-11-25",_l="2025-03-26",aa=[yn,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],yl="io.modelcontextprotocol/related-task",zt="io.modelcontextprotocol/protocolVersion",Sn="io.modelcontextprotocol/clientInfo",Jt="io.modelcontextprotocol/serverInfo",Bt="io.modelcontextprotocol/clientCapabilities",bn="io.modelcontextprotocol/subscriptionId",Nr="io.modelcontextprotocol/logLevel";var $n="2.0";var Cr=Or(()=>A([d(),x(),D(),Kt(),j(d(),Cr),b(Cr)])),ze=j(d(),Cr),Wg=b(Cr),sa=A([d(),x().int()]),ca=d(),Sl=g({ttl:x().optional()}),bl=g({taskId:d()}),la=Y({progressToken:sa.optional(),[yl]:bl.optional()}),Ce=g({_meta:la.optional()}),zn=Ce.extend({task:Sl.optional()}),Re=g({method:d(),params:Ce.loose().optional()}),Me=g({_meta:la.optional()}),qe=g({method:d(),params:Me.loose().optional()}),ua=Y({get[Jt](){return ko.optional().catch(void 0)}}),ke=Y({_meta:ua.optional()}),jr=A([d(),x().int()]),da=g({jsonrpc:z($n),id:jr,...Re.shape}).strict(),ma=g({jsonrpc:z($n),...qe.shape}).strict(),$o=g({jsonrpc:z($n),id:jr,result:ke}).strict(),zo=g({jsonrpc:z($n),id:jr.optional(),error:g({code:x().int(),message:d(),data:B().optional()})}).strict(),Ro=A([da,ma,$o,zo]),Xg=A([$o,zo]),pa=ke.strict(),$l=Me.extend({requestId:jr.optional(),reason:d().optional()}),fa=qe.extend({method:z("notifications/cancelled"),params:$l}),zl=g({src:d(),mimeType:d().optional(),sizes:b(d()).optional(),theme:te(["light","dark"]).optional()}),Ar=g({icons:b(zl).optional()}),nr=g({name:d(),title:d().optional()}),ko=nr.extend({...nr.shape,...Ar.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),Qx=Et(g({applyDefaults:D().optional()}),ze),eE=rr(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Et(g({form:Qx.optional(),url:ze.optional()}),ze.optional())),Rl=Y({list:ze.optional(),cancel:ze.optional(),requests:Y({sampling:Y({createMessage:ze.optional()}).optional(),elicitation:Y({create:ze.optional()}).optional()}).optional()}),kl=Y({list:ze.optional(),cancel:ze.optional(),requests:Y({tools:Y({call:ze.optional()}).optional()}).optional()}),wl=g({experimental:j(d(),ze).optional(),sampling:g({context:ze.optional(),tools:ze.optional()}).optional(),elicitation:eE.optional(),roots:g({listChanged:D().optional()}).optional(),tasks:Rl.optional(),extensions:j(d(),ze).optional()}),Il=Ce.extend({protocolVersion:d(),capabilities:wl,clientInfo:ko}),ha=Re.extend({method:z("initialize"),params:Il}),ga=g({experimental:j(d(),ze).optional(),logging:ze.optional(),completions:ze.optional(),prompts:g({listChanged:D().optional()}).optional(),resources:g({subscribe:D().optional(),listChanged:D().optional()}).optional(),tools:g({listChanged:D().optional()}).optional(),tasks:kl.optional(),extensions:j(d(),ze).optional()}),Tl=ke.extend({protocolVersion:d(),capabilities:ga,serverInfo:ko,instructions:d().optional()}),xl=qe.extend({method:z("notifications/initialized"),params:Me.optional()}),El=Re.extend({method:z("server/discover"),params:Ce.optional()}),Pl=ke.extend({supportedVersions:b(d()),capabilities:ga,instructions:d().optional()}),va=Re.extend({method:z("ping"),params:Ce.optional()}),Ol=g({progress:x(),total:F(x()),message:F(d())}),Cl=g({...Me.shape,...Ol.shape,progressToken:sa}),_a=qe.extend({method:z("notifications/progress"),params:Cl}),Nl=Ce.extend({cursor:ca.optional()}),Ur=Re.extend({params:Nl.optional()}),Dr=ke.extend({nextCursor:ca.optional()}),ya=g({uri:d(),mimeType:F(d()),_meta:j(d(),B()).optional()}),Sa=ya.extend({text:d()}),Qg=d().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),ba=ya.extend({blob:Qg}),Lr=te(["user","assistant"]),or=g({audience:b(Lr).optional(),priority:x().min(0).max(1).optional(),lastModified:$t.datetime({offset:!0}).optional()}),$a=g({...nr.shape,...Ar.shape,uri:d(),description:F(d()),mimeType:F(d()),size:F(x()),annotations:or.optional(),_meta:F(Y({}))}),jl=g({...nr.shape,...Ar.shape,uriTemplate:d(),description:F(d()),mimeType:F(d()),annotations:or.optional(),_meta:F(Y({}))}),Al=Ur.extend({method:z("resources/list")}),Ul=Dr.extend({resources:b($a)}),Dl=Ur.extend({method:z("resources/templates/list")}),Ll=Dr.extend({resourceTemplates:b(jl)}),wo=Ce.extend({uri:d()}),Ml=wo,ql=Re.extend({method:z("resources/read"),params:Ml}),Vl=ke.extend({contents:b(A([Sa,ba]))}),Zl=qe.extend({method:z("notifications/resources/list_changed"),params:Me.optional()}),Fl=wo,Kl=Re.extend({method:z("resources/subscribe"),params:Fl}),Jl=wo,Bl=Re.extend({method:z("resources/unsubscribe"),params:Jl}),za=g({toolsListChanged:D().optional(),promptsListChanged:D().optional(),resourcesListChanged:D().optional(),resourceSubscriptions:b(d()).optional()}),Hl=Ce.extend({notifications:za}),Yl=Re.extend({method:z("subscriptions/listen"),params:Hl}),Gl=Me.extend({notifications:za}),Wl=qe.extend({method:z("notifications/subscriptions/acknowledged"),params:Gl}),Xl=ua.extend({[bn]:jr}),Ql=ke.extend({_meta:Xl}),eu=Me.extend({uri:d()}),tu=qe.extend({method:z("notifications/resources/updated"),params:eu}),ru=g({name:d(),description:F(d()),required:F(D())}),nu=g({...nr.shape,...Ar.shape,description:F(d()),arguments:F(b(ru)),_meta:F(Y({}))}),ou=Ur.extend({method:z("prompts/list")}),iu=Dr.extend({prompts:b(nu)}),au=Ce.extend({name:d(),arguments:j(d(),d()).optional()}),su=Re.extend({method:z("prompts/get"),params:au}),Io=g({type:z("text"),text:d(),annotations:or.optional(),_meta:j(d(),B()).optional()}),To=g({type:z("image"),data:Qg,mimeType:d(),annotations:or.optional(),_meta:j(d(),B()).optional()}),xo=g({type:z("audio"),data:Qg,mimeType:d(),annotations:or.optional(),_meta:j(d(),B()).optional()}),cu=g({type:z("tool_use"),name:d(),id:d(),input:j(d(),B()),_meta:j(d(),B()).optional()}),lu=g({type:z("resource"),resource:A([Sa,ba]),annotations:or.optional(),_meta:j(d(),B()).optional()}),uu=$a.extend({type:z("resource_link")}),Eo=A([Io,To,xo,uu,lu]),du=g({role:Lr,content:Eo}),mu=ke.extend({description:d().optional(),messages:b(du)}),pu=qe.extend({method:z("notifications/prompts/list_changed"),params:Me.optional()}),fu=g({title:d().optional(),readOnlyHint:D().optional(),destructiveHint:D().optional(),idempotentHint:D().optional(),openWorldHint:D().optional()}),hu=g({taskSupport:te(["required","optional","forbidden"]).optional()}),Ra=g({...nr.shape,...Ar.shape,description:d().optional(),inputSchema:g({type:z("object"),properties:j(d(),Cr).optional(),required:b(d()).optional()}).catchall(B()),outputSchema:Y({$schema:d().optional()}).optional(),annotations:fu.optional(),execution:hu.optional(),_meta:j(d(),B()).optional()}),gu=Ur.extend({method:z("tools/list")}),vu=Dr.extend({tools:b(Ra)}),ka=ke.extend({content:b(Eo).default([]),structuredContent:B().optional(),isError:D().optional()}),ev=ka.or(ke.extend({toolResult:B()})),_u=zn.extend({name:d(),arguments:j(d(),B()).optional()}),yu=Re.extend({method:z("tools/call"),params:_u}),Su=qe.extend({method:z("notifications/tools/list_changed"),params:Me.optional()}),tv=g({autoRefresh:D().default(!0),debounceMs:x().int().nonnegative().default(300)}),Mr=te(["debug","info","notice","warning","error","critical","alert","emergency"]),bu=Ce.extend({level:Mr}),$u=Re.extend({method:z("logging/setLevel"),params:bu}),zu=Me.extend({level:Mr,logger:d().optional(),data:B()}),Ru=qe.extend({method:z("notifications/message"),params:zu}),ku=g({name:d().optional()}),wu=g({hints:b(ku).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),Iu=g({mode:te(["auto","required","none"]).optional()}),Tu=g({type:z("tool_result"),toolUseId:d().describe("The unique identifier for the corresponding tool call."),content:b(Eo),structuredContent:B().optional(),isError:D().optional(),_meta:j(d(),B()).optional()}),xu=Pr("type",[Io,To,xo]),_n=Pr("type",[Io,To,xo,cu,Tu]),Eu=g({role:Lr,content:A([_n,b(_n)]),_meta:j(d(),B()).optional()}),Pu=zn.extend({messages:b(Eu),modelPreferences:wu.optional(),systemPrompt:d().optional(),includeContext:te(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(d()).optional(),metadata:ze.optional(),tools:b(Ra).optional(),toolChoice:Iu.optional()}),Ou=Re.extend({method:z("sampling/createMessage"),params:Pu}),Cu=ke.extend({model:d(),stopReason:F(te(["endTurn","stopSequence","maxTokens"]).or(d())),role:Lr,content:xu}),Nu=ke.extend({model:d(),stopReason:F(te(["endTurn","stopSequence","maxTokens","toolUse"]).or(d())),role:Lr,content:A([_n,b(_n)])}),wa=g({type:z("boolean"),title:d().optional(),description:d().optional(),default:D().optional()}),Po=g({type:z("string"),title:d().optional(),description:d().optional(),minLength:x().optional(),maxLength:x().optional(),format:te(["email","uri","date","date-time"]).optional(),default:d().optional()}),Oo=g({type:te(["number","integer"]),title:d().optional(),description:d().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),Ia=g({type:z("string"),title:d().optional(),description:d().optional(),enum:b(d()),default:d().optional()}),Ta=g({type:z("string"),title:d().optional(),description:d().optional(),oneOf:b(g({const:d(),title:d()})),default:d().optional()}),xa=g({type:z("string"),title:d().optional(),description:d().optional(),enum:b(d()),enumNames:b(d()).optional(),default:d().optional()}),ju=A([Ia,Ta]),Ea=g({type:z("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:z("string"),enum:b(d())}),default:b(d()).optional()}),Pa=g({type:z("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:d(),title:d()}))}),default:b(d()).optional()}),Au=A([Ea,Pa]),Uu=A([xa,ju,Au]),Oa=A([Uu,wa,Po,Oo]),Co=zn.extend({mode:z("form").optional(),message:d(),requestedSchema:g({type:z("object"),properties:j(d(),Oa),required:b(d()).optional()}).catchall(B())}),Du=zn.extend({mode:z("url"),message:d(),elicitationId:d(),url:d().url()}),Lu=A([Co,Du]),Mu=Re.extend({method:z("elicitation/create"),params:Lu}),qu=Me.extend({elicitationId:d()}),Vu=qe.extend({method:z("notifications/elicitation/complete"),params:qu}),Zu=ke.extend({action:te(["accept","decline","cancel"]),content:rr(e=>e===null?void 0:e,j(d(),A([d(),x(),D(),b(d())])).optional())}),Fu=g({type:z("ref/resource"),uri:d()}),Ku=g({type:z("ref/prompt"),name:d()}),Ju=Ce.extend({ref:A([Ku,Fu]),argument:g({name:d(),value:d()}),context:g({arguments:j(d(),d()).optional()}).optional()}),Bu=Re.extend({method:z("completion/complete"),params:Ju}),Hu=ke.extend({completion:Y({values:b(d()).max(100),total:F(x().int()),hasMore:F(D())})}),Yu=g({uri:d().startsWith("file://"),name:d().optional(),_meta:j(d(),B()).optional()}),Gu=Re.extend({method:z("roots/list"),params:Ce.optional()}),Wu=ke.extend({roots:b(Yu)}),Xu=qe.extend({method:z("notifications/roots/list_changed"),params:Me.optional()}),rv=Y({ttl:x().optional(),pollInterval:x().optional()}),Qu=te(["working","input_required","completed","failed","cancelled"]),qr=g({taskId:d(),status:Qu,ttl:A([x(),Kt()]),createdAt:d(),lastUpdatedAt:d(),pollInterval:F(x()),statusMessage:F(d())}),nv=ke.extend({task:qr}),ed=Me.merge(qr),ov=qe.extend({method:z("notifications/tasks/status"),params:ed}),iv=Re.extend({method:z("tasks/get"),params:Ce.extend({taskId:d()})}),av=ke.merge(qr),sv=Re.extend({method:z("tasks/result"),params:Ce.extend({taskId:d()})}),cv=ke.loose(),lv=Ur.extend({method:z("tasks/list")}),uv=Dr.extend({tasks:b(qr)}),dv=Re.extend({method:z("tasks/cancel"),params:Ce.extend({taskId:d()})}),mv=ke.merge(qr),pv=A([va,ha,El,Bu,$u,su,ou,Al,Dl,ql,Kl,Bl,Yl,yu,gu]),fv=A([fa,_a,xl,Xu]),hv=A([pa,Cu,Nu,Zu,Wu]),gv=A([va,Ou,Mu,Gu]),vv=A([fa,_a,Ru,tu,Zl,Su,pu,Wl,Vu]),_v=A([pa,Tl,Pl,Hu,mu,iu,Ul,Ll,Vl,ka,vu,Ql]),Oe=go().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Yg.custom,message:"URL must be parseable",fatal:!0}),ki}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),yv=Y({resource:d().url(),authorization_servers:b(Oe).optional(),jwks_uri:d().url().optional(),scopes_supported:b(d()).optional(),bearer_methods_supported:b(d()).optional(),resource_signing_alg_values_supported:b(d()).optional(),resource_name:d().optional(),resource_documentation:d().optional(),resource_policy_uri:d().url().optional(),resource_tos_uri:d().url().optional(),tls_client_certificate_bound_access_tokens:D().optional(),authorization_details_types_supported:b(d()).optional(),dpop_signing_alg_values_supported:b(d()).optional(),dpop_bound_access_tokens_required:D().optional()}),td=Y({issuer:d(),authorization_endpoint:Oe,token_endpoint:Oe,registration_endpoint:Oe.optional(),scopes_supported:b(d()).optional(),response_types_supported:b(d()),response_modes_supported:b(d()).optional(),grant_types_supported:b(d()).optional(),token_endpoint_auth_methods_supported:b(d()).optional(),token_endpoint_auth_signing_alg_values_supported:b(d()).optional(),service_documentation:Oe.optional(),revocation_endpoint:Oe.optional(),revocation_endpoint_auth_methods_supported:b(d()).optional(),revocation_endpoint_auth_signing_alg_values_supported:b(d()).optional(),introspection_endpoint:d().optional(),introspection_endpoint_auth_methods_supported:b(d()).optional(),introspection_endpoint_auth_signing_alg_values_supported:b(d()).optional(),code_challenge_methods_supported:b(d()).optional(),client_id_metadata_document_supported:D().optional(),authorization_response_iss_parameter_supported:D().optional().catch(void 0),dpop_signing_alg_values_supported:b(d()).optional()}),rd=Y({issuer:d(),authorization_endpoint:Oe,token_endpoint:Oe,userinfo_endpoint:Oe.optional(),jwks_uri:Oe,registration_endpoint:Oe.optional(),scopes_supported:b(d()).optional(),response_types_supported:b(d()),response_modes_supported:b(d()).optional(),grant_types_supported:b(d()).optional(),acr_values_supported:b(d()).optional(),subject_types_supported:b(d()),id_token_signing_alg_values_supported:b(d()),id_token_encryption_alg_values_supported:b(d()).optional(),id_token_encryption_enc_values_supported:b(d()).optional(),userinfo_signing_alg_values_supported:b(d()).optional(),userinfo_encryption_alg_values_supported:b(d()).optional(),userinfo_encryption_enc_values_supported:b(d()).optional(),request_object_signing_alg_values_supported:b(d()).optional(),request_object_encryption_alg_values_supported:b(d()).optional(),request_object_encryption_enc_values_supported:b(d()).optional(),token_endpoint_auth_methods_supported:b(d()).optional(),token_endpoint_auth_signing_alg_values_supported:b(d()).optional(),display_values_supported:b(d()).optional(),claim_types_supported:b(d()).optional(),claims_supported:b(d()).optional(),service_documentation:d().optional(),claims_locales_supported:b(d()).optional(),ui_locales_supported:b(d()).optional(),claims_parameter_supported:D().optional(),request_parameter_supported:D().optional(),request_uri_parameter_supported:D().optional(),require_request_uri_registration:D().optional(),op_policy_uri:Oe.optional(),op_tos_uri:Oe.optional(),client_id_metadata_document_supported:D().optional(),authorization_response_iss_parameter_supported:D().optional().catch(void 0)}),Sv=g({...rd.shape,...td.pick({code_challenge_methods_supported:!0}).shape}),bv=g({access_token:d(),id_token:d().optional(),token_type:d(),expires_in:ia.number().optional(),scope:d().optional(),refresh_token:d().optional(),issuer:d().optional().catch(void 0)}).strip(),$v=g({issued_token_type:z("urn:ietf:params:oauth:token-type:id-jag"),access_token:d(),token_type:d().optional(),expires_in:x().optional(),scope:d().optional()}).strip(),zv=g({error:d(),error_description:d().optional(),error_uri:d().optional()}),Gg=Oe.optional().or(z("").transform(()=>{})),nd=g({redirect_uris:b(Oe),token_endpoint_auth_method:d().optional(),grant_types:b(d()).optional(),response_types:b(d()).optional(),application_type:d().optional(),client_name:d().optional(),client_uri:Oe.optional(),logo_uri:Gg,scope:d().optional(),contacts:b(d()).optional(),tos_uri:Gg,policy_uri:d().optional(),jwks_uri:Oe.optional(),jwks:pl().optional(),software_id:d().optional(),software_version:d().optional(),software_statement:d().optional()}).strip(),od=g({client_id:d(),client_secret:d().optional(),client_id_issued_at:x().optional(),client_secret_expires_at:x().optional(),issuer:d().optional().catch(void 0)}).strip(),Rv=nd.merge(od),kv=g({error:d(),error_description:d().optional()}).strip(),wv=g({token:d(),token_type_hint:d().optional()}).strip();var Pv=Symbol.for("mcp.sdk.errorBrands");function jv(e,t){let n=new Set,o=t;for(;typeof o=="function";){let r=o.mcpBrand;Object.prototype.hasOwnProperty.call(o,"mcpBrand")&&typeof r=="string"&&n.add(r),o=Object.getPrototypeOf(o)}n.size!==0&&Object.defineProperty(e,Pv,{value:n,enumerable:!1,configurable:!0})}function Uo(e,t){try{if(typeof t=="object"&&t!==null&&Object.prototype.hasOwnProperty.call(e,"mcpBrand")&&typeof e.mcpBrand=="string"&&Object.prototype.hasOwnProperty.call(t,Pv)){let n=t[Pv];if(n&&typeof n.has=="function"&&n.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}var kn=(function(e){return e.InvalidRequest="invalid_request",e.InvalidClient="invalid_client",e.InvalidGrant="invalid_grant",e.UnauthorizedClient="unauthorized_client",e.UnsupportedGrantType="unsupported_grant_type",e.InvalidScope="invalid_scope",e.AccessDenied="access_denied",e.ServerError="server_error",e.TemporarilyUnavailable="temporarily_unavailable",e.UnsupportedResponseType="unsupported_response_type",e.UnsupportedTokenType="unsupported_token_type",e.InvalidToken="invalid_token",e.MethodNotAllowed="method_not_allowed",e.TooManyRequests="too_many_requests",e.InvalidClientMetadata="invalid_client_metadata",e.InvalidRedirectUri="invalid_redirect_uri",e.InsufficientScope="insufficient_scope",e.InvalidTarget="invalid_target",e.InvalidDpopProof="invalid_dpop_proof",e.UseDpopNonce="use_dpop_nonce",e})({}),La=class j$ extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.OAuthError"})}static[Symbol.hasInstance](t){return Uo(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Uo(this,t)}constructor(t,n,o){super(n),this.code=t,this.errorUri=o,this.name="OAuthError",jv(this,new.target)}toResponseObject(){let t={error:this.code,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}static fromResponse(t){return new j$(t.error,t.error_description??t.error,t.error_uri)}},se=(function(e){return e.NotConnected="NOT_CONNECTED",e.AlreadyConnected="ALREADY_CONNECTED",e.NotInitialized="NOT_INITIALIZED",e.CapabilityNotSupported="CAPABILITY_NOT_SUPPORTED",e.RequestTimeout="REQUEST_TIMEOUT",e.ConnectionClosed="CONNECTION_CLOSED",e.SendFailed="SEND_FAILED",e.InvalidResult="INVALID_RESULT",e.UnsupportedResultType="UNSUPPORTED_RESULT_TYPE",e.InputRequiredRoundsExceeded="INPUT_REQUIRED_ROUNDS_EXCEEDED",e.ListPaginationExceeded="LIST_PAGINATION_EXCEEDED",e.MethodNotSupportedByProtocolVersion="METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION",e.EraNegotiationFailed="ERA_NEGOTIATION_FAILED",e.ClientHttpNotImplemented="CLIENT_HTTP_NOT_IMPLEMENTED",e.ClientHttpAuthentication="CLIENT_HTTP_AUTHENTICATION",e.ClientHttpForbidden="CLIENT_HTTP_FORBIDDEN",e.ClientHttpUnexpectedContent="CLIENT_HTTP_UNEXPECTED_CONTENT",e.ClientHttpFailedToOpenStream="CLIENT_HTTP_FAILED_TO_OPEN_STREAM",e.ClientHttpFailedToTerminateSession="CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION",e})({}),ne=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkError"})}static[Symbol.hasInstance](e){return Uo(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Uo(this,e)}constructor(e,t,n,o){super(t,o),this.code=e,this.data=n,this.name="SdkError",jv(this,new.target)}},tE=class extends ne{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkHttpError"})}constructor(e,t,n,o){super(e,t,n,o),this.name="SdkHttpError"}get status(){return this.data.status}get statusText(){return this.data.statusText}};var S$={};function A$(e){return Object.hasOwn(S$,e)?S$[e]:void 0}function b$(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function rE(e,t,n){return e==="elicitation"&&t==="form"&&n.form===void 0&&n.url===void 0}function U$(e){switch(e.method){case"elicitation/create":return e.params?.mode==="url"?{elicitation:{url:{}}}:{elicitation:{form:{}}};case"sampling/createMessage":{let t=e.params;return t!==void 0&&(t.tools!==void 0||t.toolChoice!==void 0)?{sampling:{tools:{}}}:{sampling:{}}}case"roots/list":return{roots:{}};default:return}}function Ma(e,t){let n={};for(let[o,r]of Object.entries(e)){if(r===void 0)continue;let i=t===void 0?void 0:t[o];if(i===void 0){n[o]=r;continue}if(b$(r)&&b$(i)){let a={};for(let[s,c]of Object.entries(r))c!==void 0&&i[s]===void 0&&!rE(o,s,i)&&(a[s]=c);Object.keys(a).length>0&&(n[o]=a)}}return Object.keys(n).length>0?n:void 0}var D$="2026-07-28",qa=[D$];function sr(e){return e>=D$}function L$(e){return e.filter(t=>!sr(t))}function Av(e){return e.filter(t=>sr(t))}function M$(e){let t=e.structuredContent;return t===void 0||!(typeof t!="object"||t===null||Array.isArray(t))||(e.content?.some(n=>n.type==="text")??!1)?e:{...e,content:[...e.content??[],{type:"text",text:JSON.stringify(t)}]}}var q$=["task","inputRequests","requestState"];function Uv(e){return e===null||typeof e!="object"||Array.isArray(e)||e.content!==void 0||q$.some(t=>t in e)?e:{...e,content:[]}}function nE(){let e=Or(()=>A([d(),x(),D(),Kt(),j(d(),e),b(e)])),t=j(d(),e),n=A([d(),x().int()]),o=d(),r=g({ttl:x().optional()}),i=g({taskId:d()}),a=Y({progressToken:n.optional(),"io.modelcontextprotocol/related-task":i.optional()}),s=g({_meta:a.optional()}),c=s.extend({task:r.optional()}),l=g({method:d(),params:s.loose().optional()}),u=g({_meta:a.optional()}),m=g({method:d(),params:u.loose().optional()}),p=Y({_meta:a.optional()}),f=A([d(),x().int()]),h=p.strict(),S=u.extend({requestId:f.optional(),reason:d().optional()}),y=m.extend({method:z("notifications/cancelled"),params:S}),w=g({src:d(),mimeType:d().optional(),sizes:b(d()).optional(),theme:te(["light","dark"]).optional()}),T=g({icons:b(w).optional()}),E=g({name:d(),title:d().optional()}),K=E.extend({...E.shape,...T.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),Z=Et(g({applyDefaults:D().optional()}),t),N=rr(Le=>Le&&typeof Le=="object"&&!Array.isArray(Le)&&Object.keys(Le).length===0?{form:{}}:Le,Et(g({form:Z.optional(),url:t.optional()}),t.optional())),re=Y({list:t.optional(),cancel:t.optional(),requests:Y({sampling:Y({createMessage:t.optional()}).optional(),elicitation:Y({create:t.optional()}).optional()}).optional()}),oe=Y({list:t.optional(),cancel:t.optional(),requests:Y({tools:Y({call:t.optional()}).optional()}).optional()}),H=g({experimental:j(d(),t).optional(),sampling:g({context:t.optional(),tools:t.optional()}).optional(),elicitation:N.optional(),roots:g({listChanged:D().optional()}).optional(),tasks:re.optional(),extensions:j(d(),t).optional()}),ve=s.extend({protocolVersion:d(),capabilities:H,clientInfo:K}),ye=l.extend({method:z("initialize"),params:ve}),ce=g({experimental:j(d(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:g({listChanged:D().optional()}).optional(),resources:g({subscribe:D().optional(),listChanged:D().optional()}).optional(),tools:g({listChanged:D().optional()}).optional(),tasks:oe.optional(),extensions:j(d(),t).optional()}),Ie=p.extend({protocolVersion:d(),capabilities:ce,serverInfo:K,instructions:d().optional()}),xe=m.extend({method:z("notifications/initialized"),params:u.optional()}),Ae=l.extend({method:z("ping"),params:s.optional()}),Ze=g({progress:x(),total:F(x()),message:F(d())}),Xe=g({...u.shape,...Ze.shape,progressToken:n}),gt=m.extend({method:z("notifications/progress"),params:Xe}),Nt=s.extend({cursor:o.optional()}),ct=l.extend({params:Nt.optional()}),Fe=p.extend({nextCursor:o.optional()}),Wt=g({uri:d(),mimeType:F(d()),_meta:j(d(),B()).optional()}),Xt=Wt.extend({text:d()}),jt=d().refine(Le=>{try{return atob(Le),!0}catch{return!1}},{message:"Invalid Base64 string"}),Ue=Wt.extend({blob:jt}),Ke=te(["user","assistant"]),Je=g({audience:b(Ke).optional(),priority:x().min(0).max(1).optional(),lastModified:$t.datetime({offset:!0}).optional()}),kt=g({...E.shape,...T.shape,uri:d(),description:F(d()),mimeType:F(d()),size:F(x()),annotations:Je.optional(),_meta:F(Y({}))}),Kr=g({...E.shape,...T.shape,uriTemplate:d(),description:F(d()),mimeType:F(d()),annotations:Je.optional(),_meta:F(Y({}))}),lt=ct.extend({method:z("resources/list")}),ut=Fe.extend({resources:b(kt)}),Qe=ct.extend({method:z("resources/templates/list")}),vt=Fe.extend({resourceTemplates:b(Kr)}),_t=s.extend({uri:d()}),At=_t,Ut=l.extend({method:z("resources/read"),params:At}),mr=p.extend({contents:b(A([Xt,Ue]))}),Dt=m.extend({method:z("notifications/resources/list_changed"),params:u.optional()}),Jr=_t,L=l.extend({method:z("resources/subscribe"),params:Jr}),Lt=_t,G=l.extend({method:z("resources/unsubscribe"),params:Lt}),J=u.extend({uri:d()}),ae=m.extend({method:z("notifications/resources/updated"),params:J}),q=g({name:d(),description:F(d()),required:F(D())}),U=g({...E.shape,...T.shape,description:F(d()),arguments:F(b(q)),_meta:F(Y({}))}),Q=ct.extend({method:z("prompts/list")}),X=Fe.extend({prompts:b(U)}),Te=s.extend({name:d(),arguments:j(d(),d()).optional()}),Br=l.extend({method:z("prompts/get"),params:Te}),Mt=g({type:z("text"),text:d(),annotations:Je.optional(),_meta:j(d(),B()).optional()}),Hr=g({type:z("image"),data:jt,mimeType:d(),annotations:Je.optional(),_meta:j(d(),B()).optional()}),Yr=g({type:z("audio"),data:jt,mimeType:d(),annotations:Je.optional(),_meta:j(d(),B()).optional()}),qo=g({type:z("tool_use"),name:d(),id:d(),input:j(d(),B()),_meta:j(d(),B()).optional()}),pr=g({type:z("resource"),resource:A([Xt,Ue]),annotations:Je.optional(),_meta:j(d(),B()).optional()}),Vo=kt.extend({type:z("resource_link")}),yt=A([Mt,Hr,Yr,Vo,pr]),xn=g({role:Ke,content:yt}),En=p.extend({description:d().optional(),messages:b(xn)}),Gr=m.extend({method:z("notifications/prompts/list_changed"),params:u.optional()}),Zo=g({title:d().optional(),readOnlyHint:D().optional(),destructiveHint:D().optional(),idempotentHint:D().optional(),openWorldHint:D().optional()}),Pn=g({taskSupport:te(["required","optional","forbidden"]).optional()}),Wr=g({...E.shape,...T.shape,description:d().optional(),inputSchema:g({type:z("object"),properties:j(d(),e).optional(),required:b(d()).optional()}).catchall(B()),outputSchema:g({type:z("object"),properties:j(d(),e).optional(),required:b(d()).optional()}).catchall(B()).optional(),annotations:Zo.optional(),execution:Pn.optional(),_meta:j(d(),B()).optional()}),On=ct.extend({method:z("tools/list")}),Cn=Fe.extend({tools:b(Wr)}),Nn=p.extend({content:b(yt),structuredContent:j(d(),B()).optional(),isError:D().optional()}),De=c.extend({name:d(),arguments:j(d(),B()).optional()}),Fo=l.extend({method:z("tools/call"),params:De}),Wa=m.extend({method:z("notifications/tools/list_changed"),params:u.optional()}),jn=te(["debug","info","notice","warning","error","critical","alert","emergency"]),Ko=s.extend({level:jn}),Jo=l.extend({method:z("logging/setLevel"),params:Ko}),Bo=u.extend({level:jn,logger:d().optional(),data:B()}),Ho=m.extend({method:z("notifications/message"),params:Bo}),Yo=g({name:d().optional()}),Go=g({hints:b(Yo).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),Wo=g({mode:te(["auto","required","none"]).optional()}),Xa=g({type:z("tool_result"),toolUseId:d().describe("The unique identifier for the corresponding tool call."),content:b(yt),structuredContent:g({}).loose().optional(),isError:D().optional(),_meta:j(d(),B()).optional()}),Xo=Pr("type",[Mt,Hr,Yr]),fr=Pr("type",[Mt,Hr,Yr,qo,Xa]),Qo=g({role:Ke,content:A([fr,b(fr)]),_meta:j(d(),B()).optional()}),ei=c.extend({messages:b(Qo),modelPreferences:Go.optional(),systemPrompt:d().optional(),includeContext:te(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(d()).optional(),metadata:t.optional(),tools:b(Wr).optional(),toolChoice:Wo.optional()}),ti=l.extend({method:z("sampling/createMessage"),params:ei}),ri=p.extend({model:d(),stopReason:F(te(["endTurn","stopSequence","maxTokens"]).or(d())),role:Ke,content:Xo}),ni=p.extend({model:d(),stopReason:F(te(["endTurn","stopSequence","maxTokens","toolUse"]).or(d())),role:Ke,content:A([fr,b(fr)])}),oi=g({type:z("boolean"),title:d().optional(),description:d().optional(),default:D().optional()}),ii=g({type:z("string"),title:d().optional(),description:d().optional(),minLength:x().optional(),maxLength:x().optional(),format:te(["email","uri","date","date-time"]).optional(),default:d().optional()}),ai=g({type:te(["number","integer"]),title:d().optional(),description:d().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),si=g({type:z("string"),title:d().optional(),description:d().optional(),enum:b(d()),default:d().optional()}),ci=g({type:z("string"),title:d().optional(),description:d().optional(),oneOf:b(g({const:d(),title:d()})),default:d().optional()}),li=g({type:z("string"),title:d().optional(),description:d().optional(),enum:b(d()),enumNames:b(d()).optional(),default:d().optional()}),ui=A([si,ci]),Xr=g({type:z("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:z("string"),enum:b(d())}),default:b(d()).optional()}),Qr=g({type:z("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:d(),title:d()}))}),default:b(d()).optional()}),Qa=A([Xr,Qr]),es=A([li,ui,Qa]),dt=A([es,oi,ii,ai]),mt=c.extend({mode:z("form").optional(),message:d(),requestedSchema:g({type:z("object"),properties:j(d(),dt),required:b(d()).optional()}).catchall(B())}),di=c.extend({mode:z("url"),message:d(),elicitationId:d(),url:d().url()}),wt=A([mt,di]),ts=l.extend({method:z("elicitation/create"),params:wt}),rs=u.extend({elicitationId:d()}),ns=m.extend({method:z("notifications/elicitation/complete"),params:rs}),os=p.extend({action:te(["accept","decline","cancel"]),content:rr(Le=>Le===null?void 0:Le,j(d(),A([d(),x(),D(),b(d())])).optional())}),is=g({type:z("ref/resource"),uri:d()}),as=g({type:z("ref/prompt"),name:d()}),ss=s.extend({ref:A([as,is]),argument:g({name:d(),value:d()}),context:g({arguments:j(d(),d()).optional()}).optional()}),mi=l.extend({method:z("completion/complete"),params:ss}),cs=p.extend({completion:Y({values:b(d()).max(100),total:F(x().int()),hasMore:F(D())})}),ls=g({uri:d().startsWith("file://"),name:d().optional(),_meta:j(d(),B()).optional()}),An=l.extend({method:z("roots/list"),params:s.optional()}),pi=p.extend({roots:b(ls)}),us=m.extend({method:z("notifications/roots/list_changed"),params:u.optional()}),ds=Y({ttl:x().optional(),pollInterval:x().optional()}),fi=te(["working","input_required","completed","failed","cancelled"]),hr=g({taskId:d(),status:fi,ttl:A([x(),Kt()]),createdAt:d(),lastUpdatedAt:d(),pollInterval:F(x()),statusMessage:F(d())}),et=p.extend({task:hr}),ms=u.merge(hr),en=m.extend({method:z("notifications/tasks/status"),params:ms}),Un=l.extend({method:z("tasks/get"),params:s.extend({taskId:d()})}),Dn=p.merge(hr),Ln=l.extend({method:z("tasks/result"),params:s.extend({taskId:d()})}),Pd=p.loose(),Be=ct.extend({method:z("tasks/list")}),we=Fe.extend({tasks:b(hr)}),tn=l.extend({method:z("tasks/cancel"),params:s.extend({taskId:d()})});return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:o,TaskMetadataSchema:r,RelatedTaskMetadataSchema:i,RequestMetaSchema:a,BaseRequestParamsSchema:s,TaskAugmentedRequestParamsSchema:c,RequestSchema:l,NotificationsParamsSchema:u,NotificationSchema:m,ResultSchema:p,RequestIdSchema:f,EmptyResultSchema:h,CancelledNotificationParamsSchema:S,CancelledNotificationSchema:y,IconSchema:w,IconsSchema:T,BaseMetadataSchema:E,ImplementationSchema:K,ClientTasksCapabilitySchema:re,ServerTasksCapabilitySchema:oe,ClientCapabilitiesSchema:H,InitializeRequestParamsSchema:ve,InitializeRequestSchema:ye,ServerCapabilitiesSchema:ce,InitializeResultSchema:Ie,InitializedNotificationSchema:xe,PingRequestSchema:Ae,ProgressSchema:Ze,ProgressNotificationParamsSchema:Xe,ProgressNotificationSchema:gt,PaginatedRequestParamsSchema:Nt,PaginatedRequestSchema:ct,PaginatedResultSchema:Fe,ResourceContentsSchema:Wt,TextResourceContentsSchema:Xt,BlobResourceContentsSchema:Ue,RoleSchema:Ke,AnnotationsSchema:Je,ResourceSchema:kt,ResourceTemplateSchema:Kr,ListResourcesRequestSchema:lt,ListResourcesResultSchema:ut,ListResourceTemplatesRequestSchema:Qe,ListResourceTemplatesResultSchema:vt,ResourceRequestParamsSchema:_t,ReadResourceRequestParamsSchema:At,ReadResourceRequestSchema:Ut,ReadResourceResultSchema:mr,ResourceListChangedNotificationSchema:Dt,SubscribeRequestParamsSchema:Jr,SubscribeRequestSchema:L,UnsubscribeRequestParamsSchema:Lt,UnsubscribeRequestSchema:G,ResourceUpdatedNotificationParamsSchema:J,ResourceUpdatedNotificationSchema:ae,PromptArgumentSchema:q,PromptSchema:U,ListPromptsRequestSchema:Q,ListPromptsResultSchema:X,GetPromptRequestParamsSchema:Te,GetPromptRequestSchema:Br,TextContentSchema:Mt,ImageContentSchema:Hr,AudioContentSchema:Yr,ToolUseContentSchema:qo,EmbeddedResourceSchema:pr,ResourceLinkSchema:Vo,ContentBlockSchema:yt,PromptMessageSchema:xn,GetPromptResultSchema:En,PromptListChangedNotificationSchema:Gr,ToolAnnotationsSchema:Zo,ToolExecutionSchema:Pn,ToolSchema:Wr,ListToolsRequestSchema:On,ListToolsResultSchema:Cn,CallToolResultSchema:Nn,CallToolRequestParamsSchema:De,CallToolRequestSchema:Fo,ToolListChangedNotificationSchema:Wa,LoggingLevelSchema:jn,SetLevelRequestParamsSchema:Ko,SetLevelRequestSchema:Jo,LoggingMessageNotificationParamsSchema:Bo,LoggingMessageNotificationSchema:Ho,ModelHintSchema:Yo,ModelPreferencesSchema:Go,ToolChoiceSchema:Wo,ToolResultContentSchema:Xa,SamplingContentSchema:Xo,SamplingMessageContentBlockSchema:fr,SamplingMessageSchema:Qo,CreateMessageRequestParamsSchema:ei,CreateMessageRequestSchema:ti,CreateMessageResultSchema:ri,CreateMessageResultWithToolsSchema:ni,BooleanSchemaSchema:oi,StringSchemaSchema:ii,NumberSchemaSchema:ai,UntitledSingleSelectEnumSchemaSchema:si,TitledSingleSelectEnumSchemaSchema:ci,LegacyTitledEnumSchemaSchema:li,SingleSelectEnumSchemaSchema:ui,UntitledMultiSelectEnumSchemaSchema:Xr,TitledMultiSelectEnumSchemaSchema:Qr,MultiSelectEnumSchemaSchema:Qa,EnumSchemaSchema:es,PrimitiveSchemaDefinitionSchema:dt,ElicitRequestFormParamsSchema:mt,ElicitRequestURLParamsSchema:di,ElicitRequestParamsSchema:wt,ElicitRequestSchema:ts,ElicitationCompleteNotificationParamsSchema:rs,ElicitationCompleteNotificationSchema:ns,ElicitResultSchema:os,ResourceTemplateReferenceSchema:is,PromptReferenceSchema:as,CompleteRequestParamsSchema:ss,CompleteRequestSchema:mi,CompleteResultSchema:cs,RootSchema:ls,ListRootsRequestSchema:An,ListRootsResultSchema:pi,RootsListChangedNotificationSchema:us,TaskCreationParamsSchema:ds,TaskStatusSchema:fi,TaskSchema:hr,CreateTaskResultSchema:et,TaskStatusNotificationParamsSchema:ms,TaskStatusNotificationSchema:en,GetTaskRequestSchema:Un,GetTaskResultSchema:Dn,GetTaskPayloadRequestSchema:Ln,GetTaskPayloadResultSchema:Pd,ListTasksRequestSchema:Be,ListTasksResultSchema:we,CancelTaskRequestSchema:tn,CancelTaskResultSchema:p.merge(hr),ClientRequestSchema:A([Ae,ye,mi,Jo,Br,Q,lt,Qe,Ut,L,G,Fo,On,Un,Ln,Be,tn]),ClientNotificationSchema:A([y,gt,xe,us,en]),ClientResultSchema:A([h,ri,ni,os,pi,Dn,we,et]),ServerRequestSchema:A([Ae,ti,ts,An,Un,Ln,Be,tn]),ServerNotificationSchema:A([y,gt,Ho,ae,Dt,Wa,Gr,en,ns]),ServerResultSchema:A([h,Ie,cs,En,X,ut,vt,mr,Nn,Cn,Dn,we,et]),CallToolResultWireSchema:B().superRefine((Le,ik)=>{if(!(typeof Le!="object"||Le===null||Array.isArray(Le)||Le.content!==void 0)){for(let P_ of q$)if(P_ in Le){ik.addIssue({code:"custom",message:`content is required when the body carries \'${P_}\' \\u2014 another result family cannot default into an empty tools/call success`});return}}}).transform(Uv).pipe(Nn)}}var oE;function Dv(){return oE??=nE()}function V$(e){return e.type!=="object"}var iE=new Set(["const","enum","default","examples"]),aE=new Set(["properties","patternProperties","$defs","definitions","dependentSchemas","dependencies"]);function $$(e){return e!==void 0&&!(typeof e=="string"&&e.startsWith("#"))}function sE(e){let t=typeof e.$schema=="string"?e.$schema:void 0;if($$(e.$id))return{...t!==void 0&&{$schema:t},type:"object",properties:{result:e},required:["result"]};let n=q_(e.$schema)&&e.$recursiveAnchor!==!0,o=(r,i)=>{if(Array.isArray(r))return r.map(c=>o(c,!1));if(r===null||typeof r!="object"||!i&&$$(r.$id))return r;let a={},s=!1;for(let[c,l]of Object.entries(r))i?a[c]=o(l,!1):(c==="$ref"||c==="$dynamicRef")&&typeof l=="string"?a[c]=l==="#"?"#/properties/result":l.startsWith("#/")?`#/properties/result${l.slice(1)}`:l:c==="$recursiveRef"&&l==="#"&&n?s=!0:iE.has(c)?a[c]=l:aE.has(c)?a[c]=o(l,!0):a[c]=o(l,!1);return s&&("$ref"in a?a.allOf=[...Array.isArray(a.allOf)?a.allOf:[],{$ref:"#/properties/result"}]:a.$ref="#/properties/result"),a};return{...t!==void 0&&{$schema:t},type:"object",properties:{result:o(e,!1)},required:["result"]}}var Z$={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},F$={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},cE={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},id;function dd(){if(id)return id;let e=Dv();return id={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}},id}function lE(){dd()}function K$(e){return Object.prototype.hasOwnProperty.call(Z$,e)}function J$(e){return Object.prototype.hasOwnProperty.call(F$,e)}function uE(e){return Object.prototype.hasOwnProperty.call(cE,e)}function dE(e){return uE(e)?dd().resultSchemas[e]:void 0}function mE(e){return K$(e)?dd().requestSchemas[e]:void 0}function pE(e){return J$(e)?dd().notificationSchemas[e]:void 0}var RA=Object.keys(Z$),kA=Object.keys(F$);function Ov(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ad(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:"invalid",message:String(n.error)}}var z$={ok:!1,reason:"not-in-era"};function R$(e){return Ov(e)&&Ov(e.outputSchema)&&V$(e.outputSchema)}var Lv={era:"2025-11-25",hasRequestMethod:K$,hasNotificationMethod:J$,validateRequest:(e,t)=>ad(mE(e),t),validateResult:(e,t)=>ad(dE(e),t),validateNotification:(e,t)=>ad(pE(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>z$,validateInputResponse:()=>z$,samplingResultVariant:((e,t)=>{let n=Dv();return ad(e?n.CreateMessageResultWithToolsSchema:n.CreateMessageResultSchema,t)}),outboundEnvelope:e=>{},validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let n=M$(e),o=n.structuredContent;if(o===void 0)return n;let r=typeof o!="object"||o===null||Array.isArray(o),i=t!==void 0&&V$(t);return!r&&!i?n:{...n,structuredContent:{result:o}}},decodeResult(e,t){if(Ov(t)&&"resultType"in t){let n={...t};return delete n.resultType,{kind:"complete",result:n}}return{kind:"complete",result:t}},encodeResult(e,t){if(e!=="tools/list")return t;let n=t.tools;return!Array.isArray(n)||!n.some(o=>R$(o))?t:{...t,tools:n.map(o=>R$(o)?{...o,outputSchema:sE(o.outputSchema)}:o)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>{}};function fE(){let e=Or(()=>A([d(),x(),D(),Kt(),j(d(),e),b(e)])),t=j(d(),e),n=A([d(),x().int()]),o=d(),r=A([d(),x().int()]),i=te(["user","assistant"]),a=te(["debug","info","notice","warning","error","critical","alert","emergency"]),s=d().refine(we=>{try{return atob(we),!0}catch{return!1}},{message:"Invalid Base64 string"}),c=g({ttl:x().optional()}),l=g({taskId:d()}),u=Y({progressToken:n.optional(),"io.modelcontextprotocol/related-task":l.optional()}),m=g({_meta:u.optional()}),p=m.extend({task:c.optional()}),f=g({_meta:u.optional()}),h=g({method:d(),params:f.loose().optional()}),S=g({src:d(),mimeType:d().optional(),sizes:b(d()).optional(),theme:te(["light","dark"]).optional()}),y=g({icons:b(S).optional()}),w=g({name:d(),title:d().optional()}),T=w.extend({...w.shape,...y.shape,version:d(),websiteUrl:d().optional(),description:d().optional()}),E=Et(g({applyDefaults:D().optional()}),t),K=rr(we=>we&&typeof we=="object"&&!Array.isArray(we)&&Object.keys(we).length===0?{form:{}}:we,Et(g({form:E.optional(),url:t.optional()}),t.optional())),Z=Y({list:t.optional(),cancel:t.optional(),requests:Y({sampling:Y({createMessage:t.optional()}).optional(),elicitation:Y({create:t.optional()}).optional()}).optional()}),N=Y({list:t.optional(),cancel:t.optional(),requests:Y({tools:Y({call:t.optional()}).optional()}).optional()}),re=g({experimental:j(d(),t).optional(),sampling:g({context:t.optional(),tools:t.optional()}).optional(),elicitation:K.optional(),roots:g({listChanged:D().optional()}).optional(),tasks:Z.optional(),extensions:j(d(),t).optional()}),oe=g({experimental:j(d(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:g({listChanged:D().optional()}).optional(),resources:g({subscribe:D().optional(),listChanged:D().optional()}).optional(),tools:g({listChanged:D().optional()}).optional(),tasks:N.optional(),extensions:j(d(),t).optional()}),H=g({progress:x(),total:F(x()),message:F(d())}),ve=g({...f.shape,...H.shape,progressToken:n}),ye=h.extend({method:z("notifications/progress"),params:ve}),ce=f.extend({level:a,logger:d().optional(),data:B()}),Ie=h.extend({method:z("notifications/message"),params:ce}),xe=g({uri:d(),mimeType:F(d()),_meta:j(d(),B()).optional()}),Ae=xe.extend({text:d()}),Ze=xe.extend({blob:s}),Xe=g({audience:b(i).optional(),priority:x().min(0).max(1).optional(),lastModified:$t.datetime({offset:!0}).optional()}),gt=g({...w.shape,...y.shape,uri:d(),description:F(d()),mimeType:F(d()),size:F(x()),annotations:Xe.optional(),_meta:F(Y({}))}),Nt=g({...w.shape,...y.shape,uriTemplate:d(),description:F(d()),mimeType:F(d()),annotations:Xe.optional(),_meta:F(Y({}))}),ct=h.extend({method:z("notifications/resources/list_changed"),params:f.optional()}),Fe=f.extend({uri:d()}),Wt=h.extend({method:z("notifications/resources/updated"),params:Fe}),Xt=g({name:d(),description:F(d()),required:F(D())}),jt=g({...w.shape,...y.shape,description:F(d()),arguments:F(b(Xt)),_meta:F(Y({}))}),Ue=h.extend({method:z("notifications/prompts/list_changed"),params:f.optional()}),Ke=g({type:z("text"),text:d(),annotations:Xe.optional(),_meta:j(d(),B()).optional()}),Je=g({type:z("image"),data:s,mimeType:d(),annotations:Xe.optional(),_meta:j(d(),B()).optional()}),kt=g({type:z("audio"),data:s,mimeType:d(),annotations:Xe.optional(),_meta:j(d(),B()).optional()}),Kr=g({type:z("tool_use"),name:d(),id:d(),input:j(d(),B()),_meta:j(d(),B()).optional()}),lt=g({type:z("resource"),resource:A([Ae,Ze]),annotations:Xe.optional(),_meta:j(d(),B()).optional()}),ut=gt.extend({type:z("resource_link")}),Qe=A([Ke,Je,kt,ut,lt]),vt=g({role:i,content:Qe}),_t=g({title:d().optional(),readOnlyHint:D().optional(),destructiveHint:D().optional(),idempotentHint:D().optional(),openWorldHint:D().optional()}),At=h.extend({method:z("notifications/tools/list_changed"),params:f.optional()}),Ut=g({name:d().optional()}),mr=g({hints:b(Ut).optional(),costPriority:x().min(0).max(1).optional(),speedPriority:x().min(0).max(1).optional(),intelligencePriority:x().min(0).max(1).optional()}),Dt=g({mode:te(["auto","required","none"]).optional()}),Jr=g({type:z("boolean"),title:d().optional(),description:d().optional(),default:D().optional()}),L=g({type:z("string"),title:d().optional(),description:d().optional(),minLength:x().optional(),maxLength:x().optional(),format:te(["email","uri","date","date-time"]).optional(),default:d().optional()}),Lt=g({type:te(["number","integer"]),title:d().optional(),description:d().optional(),minimum:x().optional(),maximum:x().optional(),default:x().optional()}),G=g({type:z("string"),title:d().optional(),description:d().optional(),enum:b(d()),default:d().optional()}),J=g({type:z("string"),title:d().optional(),description:d().optional(),oneOf:b(g({const:d(),title:d()})),default:d().optional()}),ae=g({type:z("string"),title:d().optional(),description:d().optional(),enum:b(d()),enumNames:b(d()).optional(),default:d().optional()}),q=A([G,J]),U=g({type:z("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({type:z("string"),enum:b(d())}),default:b(d()).optional()}),Q=g({type:z("array"),title:d().optional(),description:d().optional(),minItems:x().optional(),maxItems:x().optional(),items:g({anyOf:b(g({const:d(),title:d()}))}),default:b(d()).optional()}),X=A([U,Q]),Te=A([ae,q,X]),Br=A([Te,Jr,L,Lt]),Mt=p.extend({mode:z("form").optional(),message:d(),requestedSchema:g({type:z("object"),properties:j(d(),Br),required:b(d()).optional()}).catchall(B())}),Hr=g({type:z("ref/resource"),uri:d()}),Yr=g({type:z("ref/prompt"),name:d()}),qo=g({uri:d().startsWith("file://"),name:d().optional(),_meta:j(d(),B()).optional()}),pr=re.shape,Vo=g({experimental:pr.experimental,sampling:pr.sampling,elicitation:pr.elicitation,roots:pr.roots,extensions:pr.extensions}),yt=oe.shape,xn=g({experimental:yt.experimental,logging:yt.logging,completions:yt.completions,prompts:yt.prompts,resources:yt.resources,tools:yt.tools,extensions:yt.extensions}),En=Y({progressToken:n.optional(),[zt]:d(),[Sn]:T.optional(),[Bt]:Vo,[Nr]:a.optional()}),Gr=g({...w.shape,...y.shape,description:d().optional(),inputSchema:Y({$schema:d().optional(),type:z("object")}),outputSchema:Y({$schema:d().optional()}).optional(),annotations:_t.optional(),_meta:j(d(),B()).optional()}),Zo=g({type:z("tool_result"),toolUseId:d(),content:b(Qe),structuredContent:B().optional(),isError:D().optional(),_meta:j(d(),B()).optional()}),Pn=A([Ke,Je,kt,Kr,Zo]),Wr=g({role:i,content:A([Pn,b(Pn)]),_meta:j(d(),B()).optional()}),On=d(),Cn=Y({[Jt]:T.optional().catch(void 0)}),Nn=Cn.optional();function De(we){return Y({_meta:Nn,resultType:On.default("complete"),...we})}let Fo=De({}),Wa=De({nextCursor:o.optional()}),jn=De({content:b(Qe),structuredContent:B().optional(),isError:D().optional()}),Ko=De({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),tools:b(Gr),nextCursor:o.optional()}),Jo=De({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),prompts:b(jt),nextCursor:o.optional()}),Bo=De({description:d().optional(),messages:b(vt)}),Ho=De({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),resources:b(gt),nextCursor:o.optional()}),Yo=De({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),resourceTemplates:b(Nt),nextCursor:o.optional()}),Go=De({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),contents:b(A([Ae,Ze]))}),Wo=De({completion:g({values:b(d()).max(100),total:x().int().optional(),hasMore:D().optional()}).loose()}),Xa=De({ttlMs:x().int().min(0),cacheScope:te(["public","private"])}),Xo=De({ttlMs:x().int().min(0).catch(0),cacheScope:te(["public","private"]).catch("private"),supportedVersions:b(d()),capabilities:xn,instructions:d().optional()}),fr=g({messages:b(Wr),modelPreferences:mr.optional(),systemPrompt:d().optional(),includeContext:te(["none","thisServer","allServers"]).optional(),temperature:x().optional(),maxTokens:x().int(),stopSequences:b(d()).optional(),metadata:t.optional(),tools:b(Gr).optional(),toolChoice:Dt.optional()}),Qo=g({method:z("sampling/createMessage"),params:fr}),ei=g({method:z("roots/list"),params:g({_meta:j(d(),B()).optional()}).optional()}),ti=g({...Wr.shape,model:d(),stopReason:d().optional()}),ri=g({roots:b(qo)}),ni=g({action:te(["accept","decline","cancel"]),content:j(d(),A([d(),x(),D(),b(d())])).optional()}),oi=g({mode:z("url"),message:d(),url:d().url()}),ii=A([Mt,oi]),ai=g({method:z("elicitation/create"),params:ii}),si=A([Qo,ei,ai]),ci=A([ti,ri,ni]),li=j(d(),si),ui=j(d(),ci),Xr=De({inputRequests:li.optional(),requestState:d().optional()}),Qr={inputResponses:ui.optional(),requestState:d().optional()},Qa=g({_meta:En,...Qr}),es=Y({progressToken:n.optional()});function dt(we,tn){return g({method:z(we),params:g({_meta:En,...tn})})}function mt(we,tn){return g({method:z(we),params:g({_meta:es.optional(),...tn}).optional()})}let di={name:d(),arguments:j(d(),B()).optional(),...Qr},wt={cursor:o.optional()},ts=dt("tools/call",di),rs=dt("tools/list",wt),ns=dt("prompts/list",wt),os=dt("prompts/get",{name:d(),arguments:j(d(),d()).optional(),...Qr}),is=dt("resources/list",wt),as=dt("resources/templates/list",wt),ss=dt("resources/read",{uri:d(),...Qr}),mi={ref:A([Yr,Hr]),argument:g({name:d(),value:d()}),context:g({arguments:j(d(),d()).optional()}).optional()},cs=dt("completion/complete",mi),ls=dt("server/discover",{}),An=g({toolsListChanged:D().optional(),promptsListChanged:D().optional(),resourcesListChanged:D().optional(),resourceSubscriptions:b(d()).optional()}),pi={notifications:An},us=dt("subscriptions/listen",pi),ds=Cn.extend({"io.modelcontextprotocol/subscriptionId":r}),fi=Y({_meta:ds,resultType:On.default("complete")}),hr={"tools/call":mt("tools/call",di),"tools/list":mt("tools/list",wt),"prompts/get":mt("prompts/get",{name:d(),arguments:j(d(),d()).optional()}),"prompts/list":mt("prompts/list",wt),"resources/list":mt("resources/list",wt),"resources/templates/list":mt("resources/templates/list",wt),"resources/read":mt("resources/read",{uri:d()}),"completion/complete":mt("completion/complete",mi),"server/discover":mt("server/discover",{}),"subscriptions/listen":mt("subscriptions/listen",pi)};function et(we){return Y({_meta:Nn,...we})}let ms={"tools/call":et({content:b(Qe),structuredContent:B().optional(),isError:D().optional()}),"tools/list":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),tools:b(Gr),nextCursor:o.optional()}),"prompts/get":et({description:d().optional(),messages:b(vt)}),"prompts/list":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),prompts:b(jt),nextCursor:o.optional()}),"resources/list":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),resources:b(gt),nextCursor:o.optional()}),"resources/templates/list":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),resourceTemplates:b(Nt),nextCursor:o.optional()}),"resources/read":et({ttlMs:x().int().min(0),cacheScope:te(["public","private"]),contents:b(A([Ae,Ze]))}),"completion/complete":et({completion:g({values:b(d()).max(100),total:x().int().optional(),hasMore:D().optional()}).loose()}),"server/discover":et({ttlMs:x().int().min(0).catch(0),cacheScope:te(["public","private"]).catch("private"),supportedVersions:b(d()),capabilities:xn,instructions:d().optional()}),"subscriptions/listen":et({})},en=Y({"io.modelcontextprotocol/subscriptionId":r.optional()}),Un=g({method:z("notifications/subscriptions/acknowledged"),params:g({_meta:en.optional(),notifications:An})}),Dn=g({_meta:en.optional(),requestId:r,reason:d().optional()}),Ln=g({method:z("notifications/cancelled"),params:Dn}),Pd={"notifications/cancelled":Ln,"notifications/progress":ye,"notifications/message":Ie,"notifications/resources/updated":Wt,"notifications/resources/list_changed":ct,"notifications/tools/list_changed":At,"notifications/prompts/list_changed":Ue,"notifications/subscriptions/acknowledged":Un},Be=we=>g({jsonrpc:z("2.0"),id:A([d(),x().int()]),result:we}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:o,RequestIdSchema:r,RoleSchema:i,LoggingLevelSchema:a,TaskMetadataSchema:c,RelatedTaskMetadataSchema:l,RequestMetaSchema:u,BaseRequestParamsSchema:m,TaskAugmentedRequestParamsSchema:p,NotificationsParamsSchema:f,NotificationSchema:h,IconSchema:S,IconsSchema:y,BaseMetadataSchema:w,ImplementationSchema:T,ClientTasksCapabilitySchema:Z,ServerTasksCapabilitySchema:N,ClientCapabilitiesSchema:re,ServerCapabilitiesSchema:oe,ProgressSchema:H,ProgressNotificationParamsSchema:ve,ProgressNotificationSchema:ye,LoggingMessageNotificationParamsSchema:ce,LoggingMessageNotificationSchema:Ie,ResourceContentsSchema:xe,TextResourceContentsSchema:Ae,BlobResourceContentsSchema:Ze,AnnotationsSchema:Xe,ResourceSchema:gt,ResourceTemplateSchema:Nt,ResourceListChangedNotificationSchema:ct,ResourceUpdatedNotificationParamsSchema:Fe,ResourceUpdatedNotificationSchema:Wt,PromptArgumentSchema:Xt,PromptSchema:jt,PromptListChangedNotificationSchema:Ue,TextContentSchema:Ke,ImageContentSchema:Je,AudioContentSchema:kt,ToolUseContentSchema:Kr,EmbeddedResourceSchema:lt,ResourceLinkSchema:ut,ContentBlockSchema:Qe,PromptMessageSchema:vt,ToolAnnotationsSchema:_t,ToolListChangedNotificationSchema:At,ModelHintSchema:Ut,ModelPreferencesSchema:mr,ToolChoiceSchema:Dt,BooleanSchemaSchema:Jr,StringSchemaSchema:L,NumberSchemaSchema:Lt,UntitledSingleSelectEnumSchemaSchema:G,TitledSingleSelectEnumSchemaSchema:J,LegacyTitledEnumSchemaSchema:ae,SingleSelectEnumSchemaSchema:q,UntitledMultiSelectEnumSchemaSchema:U,TitledMultiSelectEnumSchemaSchema:Q,MultiSelectEnumSchemaSchema:X,EnumSchemaSchema:Te,PrimitiveSchemaDefinitionSchema:Br,ElicitRequestFormParamsSchema:Mt,ResourceTemplateReferenceSchema:Hr,PromptReferenceSchema:Yr,RootSchema:qo,ClientCapabilities2026Schema:Vo,ServerCapabilities2026Schema:xn,RequestMetaEnvelopeSchema:En,ToolSchema:Gr,ToolResultContentSchema:Zo,SamplingMessageContentBlockSchema:Pn,SamplingMessageSchema:Wr,ResultTypeSchema:On,ResultMetaSchema:Cn,ResultSchema:Fo,PaginatedResultSchema:Wa,CallToolResultSchema:jn,ListToolsResultSchema:Ko,ListPromptsResultSchema:Jo,GetPromptResultSchema:Bo,ListResourcesResultSchema:Ho,ListResourceTemplatesResultSchema:Yo,ReadResourceResultSchema:Go,CompleteResultSchema:Wo,CacheableResultSchema:Xa,DiscoverResultSchema:Xo,CreateMessageRequestParamsSchema:fr,CreateMessageRequestSchema:Qo,ListRootsRequestSchema:ei,CreateMessageResultSchema:ti,ListRootsResultSchema:ri,ElicitResultSchema:ni,ElicitRequestURLParamsSchema:oi,ElicitRequestParamsSchema:ii,ElicitRequestSchema:ai,InputRequestSchema:si,InputResponseSchema:ci,InputRequestsSchema:li,InputResponsesSchema:ui,InputRequiredResultSchema:Xr,InputResponseRequestParamsSchema:Qa,CallToolRequestSchema:ts,ListToolsRequestSchema:rs,ListPromptsRequestSchema:ns,GetPromptRequestSchema:os,ListResourcesRequestSchema:is,ListResourceTemplatesRequestSchema:as,ReadResourceRequestSchema:ss,CompleteRequestSchema:cs,DiscoverRequestSchema:ls,SubscriptionFilterSchema:An,SubscriptionsListenRequestSchema:us,SubscriptionsListenResultMetaSchema:ds,SubscriptionsListenResultSchema:fi,dispatchRequestSchemas:hr,dispatchResultSchemas:ms,NotificationMetaSchema:en,SubscriptionsAcknowledgedNotificationSchema:Un,CancelledNotificationParamsSchema:Dn,CancelledNotificationSchema:Ln,notificationSchemas2026:Pd,JSONRPCResultResponseSchema:Be(Fo),CallToolResultResponseSchema:Be(A([jn,Xr])),ListToolsResultResponseSchema:Be(Ko),ListPromptsResultResponseSchema:Be(Jo),GetPromptResultResponseSchema:Be(A([Bo,Xr])),ListResourcesResultResponseSchema:Be(Ho),ListResourceTemplatesResultResponseSchema:Be(Yo),ReadResourceResultResponseSchema:Be(A([Go,Xr])),CompleteResultResponseSchema:Be(Wo),DiscoverResultResponseSchema:Be(Xo),SubscriptionsListenResultResponseSchema:Be(fi)}}var hE;function ir(){return hE??=fE()}var gE=["tools/list","prompts/list","resources/list","resources/templates/list","resources/read","server/discover"];function vE(e){return gE.includes(e)}var jo=Symbol("modelcontextprotocol.resultCacheHintFallback");function md(e,t){if(t===void 0)return e;let n=e[jo];if(n===void 0)return{...e,[jo]:t};let o={},r=n.ttlMs??t.ttlMs;r!==void 0&&(o.ttlMs=r);let i=n.cacheScope??t.cacheScope;return i!==void 0&&(o.cacheScope=i),{...e,[jo]:o}}function _E(e){return e[jo]}function Mv(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function qv(e){return e==="public"||e==="private"}function Vv(e,t){if(e.ttlMs!==void 0&&!Mv(e.ttlMs))throw new RangeError(`Invalid cache hint for ${t}: ttlMs must be a non-negative safe integer (got ${String(e.ttlMs)})`);if(e.cacheScope!==void 0&&!qv(e.cacheScope))throw new RangeError(`Invalid cache hint for ${t}: cacheScope must be \'public\' or \'private\' (got ${String(e.cacheScope)})`)}var C=(function(e){return e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.ResourceNotFound=-32002]="ResourceNotFound",e[e.MissingRequiredClientCapability=-32021]="MissingRequiredClientCapability",e[e.UnsupportedProtocolVersion=-32022]="UnsupportedProtocolVersion",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired",e})({}),V=class B$ extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ProtocolError"})}static[Symbol.hasInstance](t){return Uo(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Uo(this,t)}constructor(t,n,o){super(n),this.code=t,this.data=o,this.name="ProtocolError",jv(this,new.target)}static fromError(t,n,o){if(t===C.UrlElicitationRequired&&o){let r=o;if(r.elicitations)return new H$(r.elicitations,n)}if(t===C.UnsupportedProtocolVersion&&o){let r=o;if(Array.isArray(r.supported)&&typeof r.requested=="string")return new fd({supported:r.supported,requested:r.requested},n)}if(t===C.InvalidParams||t===C.ResourceNotFound){let r=o;if(typeof r?.uri=="string"&&(t===C.ResourceNotFound||Object.keys(r).length===1))return new pd(r.uri,n)}if(t===C.MissingRequiredClientCapability&&o){let r=o;if(r.requiredCapabilities!==null&&typeof r.requiredCapabilities=="object"&&!Array.isArray(r.requiredCapabilities))return new Va({requiredCapabilities:r.requiredCapabilities},n)}return new B$(t,n,o)}},pd=class extends V{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ResourceNotFoundError"})}constructor(e,t=`Resource not found: ${e}`){super(C.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},H$=class extends V{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UrlElicitationRequiredError"})}constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(C.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},fd=class extends V{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UnsupportedProtocolVersionError"})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(C.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},Va=class extends V{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.MissingRequiredClientCapabilityError"})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(", ")}`){super(C.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},yE=0,SE="private",bE=["tools/call","prompts/get","resources/read"];function $E(e,t){let n=t.resultType;if(n===void 0)return{...t,resultType:"complete"};if(n==="complete"||bE.includes(e))return t;throw new V(C.InternalError,`Handler for ${e} returned resultType \'${String(n)}\', but results of ${e} only support \'complete\' on protocol revision 2026-07-28`)}function zE(e,t){let n=_E(t);if(t.resultType!=="complete"||!vE(e))return n===void 0?t:TE(t);let o=t,r=Mv(o.ttlMs)?o.ttlMs:wE(n),i=qv(o.cacheScope)?o.cacheScope:IE(n),a={...o,ttlMs:r,cacheScope:i};return delete a[jo],a}function RE(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function kE(e,t){if(t===void 0)return e;let n=e._meta;return n===void 0?{...e,_meta:{[Jt]:t}}:!RE(n)||n[Jt]!==void 0?e:{...e,_meta:{...n,[Jt]:t}}}function wE(e){return e!==void 0&&Mv(e.ttlMs)?e.ttlMs:yE}function IE(e){return e!==void 0&&qv(e.cacheScope)?e.cacheScope:SE}function TE(e){let t={...e};return delete t[jo],t}var xE=["elicitation/create","sampling/createMessage","roots/list"],sd;function Zv(){if(sd)return sd;let e=ir();return sd={request:{"elicitation/create":g({method:z("elicitation/create"),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":g({method:z("sampling/createMessage"),params:e.CreateMessageRequestParamsSchema}),"roots/list":g({method:z("roots/list"),params:Y({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},sd}function EE(){Zv()}function Y$(e){return xE.includes(e)}function Iv(e){return Y$(e)?Zv().request[e]:void 0}function PE(e){return Y$(e)?Zv().response[e]:void 0}var Fv={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},G$={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function W$(e){return Object.prototype.hasOwnProperty.call(Fv,e)}function X$(e){return Object.prototype.hasOwnProperty.call(G$,e)}function OE(e){return Object.prototype.hasOwnProperty.call(Fv,e)}function CE(e){return W$(e)?ir().dispatchRequestSchemas[e]:void 0}function NE(e){return OE(e)?ir().dispatchResultSchemas[e]:void 0}function jE(e){return X$(e)?ir().notificationSchemas2026[e]:void 0}var wA=Object.keys(Fv),IA=Object.keys(G$);function ja(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ca(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:"invalid",message:String(n.error)}}var AE={ok:!1,reason:"not-in-era"},UE=[zt,Bt];function DE(e,t){let n=t,o=!1,r=()=>(o||(n={...n},o=!0),n),i=t.tools;e==="tools/list"&&Array.isArray(i)&&i.some(s=>ja(s)&&"execution"in s)&&(r().tools=i.map(s=>{if(!ja(s)||!("execution"in s))return s;let c={...s};return delete c.execution,c}));let a=t.capabilities;if(ja(a)&&"tasks"in a){let s={...a};delete s.tasks,r().capabilities=s}return n}var Kv={era:"2026-07-28",hasRequestMethod:W$,hasNotificationMethod:X$,hasInputRequestMethod:e=>Iv(e)!==void 0,validateRequest:(e,t)=>Ca(CE(e),t),validateResult:(e,t)=>Ca(NE(e),t),validateNotification:(e,t)=>Ca(jE(e),t),validateInputRequest:(e,t)=>Ca(Iv(e),t),validateInputResponse:(e,t)=>Ca(PE(e),t),samplingResultVariant:()=>AE,outboundEnvelope(e){return{[zt]:e.protocolVersion,[Sn]:e.clientInfo,[Bt]:e.clientCapabilities,...e.logLevel!==void 0&&{[Nr]:e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let o of UE)o in e||t.push({key:o,problem:"missing"});let n=ir().RequestMetaEnvelopeSchema.safeParse(e);if(!n.success)for(let o of n.error.issues){let r=o.path.map(String),i=r.length>0?r.join("."):"_meta";r.length===1&&t.some(a=>a.key===i&&a.problem==="missing")||t.push({key:i,problem:o.message})}return t},projectCallToolResult:e=>M$(e),inputRequestSchema:Iv,decodeResult(e,t){if(!ja(t))return{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let n=t.resultType;if(n===void 0)return{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: missing required resultType \\u2014 servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:"missing-resultType"})};if(typeof n!="string")return{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:n})};if(n==="input_required"){let a=t.inputRequests,s=ja(a)?a:{},c=t.requestState,l=t._meta===void 0?void 0:ir().ResultMetaSchema.safeParse(t._meta),u=l?.success?l.data:void 0;return Object.keys(s).length===0&&typeof c!="string"?{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:"input-required-missing-both"})}:{kind:"input_required",inputRequests:s,...typeof c=="string"&&{requestState:c},...u!==void 0&&{_meta:u}}}if(n!=="complete")return{kind:"invalid",error:new ne(se.UnsupportedResultType,`Unsupported result type \'${n}\' for ${e}`,{resultType:n,method:e})};let o=Q$(),r=Object.hasOwn(o,e)?o[e]:void 0;if(r!==void 0){let a=r.safeParse(t);if(!a.success)return{kind:"invalid",error:new ne(se.InvalidResult,`Invalid result for ${e}: ${a.error}`,{method:e})}}let i={...t};return delete i.resultType,{kind:"complete",result:i}},encodeResult(e,t,n){return kE(zE(e,$E(e,DE(e,t))),n)},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope(e){if(e.envelope===void 0)return"Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)";let t=ir().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(n=>n.message).join("; ")}`}},cd;function Q$(){if(cd)return cd;let e=ir();return cd={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema},cd}function LE(){Q$()}var Za="2026-07-28";function Vr(e){return e!==void 0&&sr(e)?Kv:Lv}function k$(e){return e.revision!==void 0?Vr(e.revision).era:e.era==="modern"?Kv.era:Lv.era}function Tv(e){return ez.some(t=>t.hasRequestMethod(e))}function xv(e){return ez.some(t=>t.hasNotificationMethod(e))}function w$(e){return e==="tasks/get"||e==="tasks/cancel"}var ez=[Lv,Kv];function I$(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Zr(e){if(!I$(e))return;let t=e._meta;return I$(t)?t:void 0}function hd(e){let t=Zr(e);return t!==void 0&&zt in t}function Jv(e){let t=Zr(e)?.[zt];return typeof t=="string"?t:void 0}function ud(e){return Vr(Za).validateEnvelopeMeta(e)}var ME=D_({AnnotationsSchema:()=>or,AudioContentSchema:()=>xo,BaseMetadataSchema:()=>nr,BaseRequestParamsSchema:()=>Ce,BlobResourceContentsSchema:()=>ba,BooleanSchemaSchema:()=>wa,CallToolRequestParamsSchema:()=>_u,CallToolRequestSchema:()=>yu,CallToolResultSchema:()=>ka,CancelTaskRequestSchema:()=>dv,CancelTaskResultSchema:()=>mv,CancelledNotificationParamsSchema:()=>$l,CancelledNotificationSchema:()=>fa,ClientCapabilitiesSchema:()=>wl,ClientNotificationSchema:()=>fv,ClientRequestSchema:()=>pv,ClientResultSchema:()=>hv,ClientTasksCapabilitySchema:()=>Rl,CompatibilityCallToolResultSchema:()=>ev,CompleteRequestParamsSchema:()=>Ju,CompleteRequestSchema:()=>Bu,CompleteResultSchema:()=>Hu,ContentBlockSchema:()=>Eo,CreateMessageRequestParamsSchema:()=>Pu,CreateMessageRequestSchema:()=>Ou,CreateMessageResultSchema:()=>Cu,CreateMessageResultWithToolsSchema:()=>Nu,CreateTaskResultSchema:()=>nv,CursorSchema:()=>ca,DiscoverRequestSchema:()=>El,DiscoverResultSchema:()=>Pl,ElicitRequestFormParamsSchema:()=>Co,ElicitRequestParamsSchema:()=>Lu,ElicitRequestSchema:()=>Mu,ElicitRequestURLParamsSchema:()=>Du,ElicitResultSchema:()=>Zu,ElicitationCompleteNotificationParamsSchema:()=>qu,ElicitationCompleteNotificationSchema:()=>Vu,EmbeddedResourceSchema:()=>lu,EmptyResultSchema:()=>pa,EnumSchemaSchema:()=>Uu,GetPromptRequestParamsSchema:()=>au,GetPromptRequestSchema:()=>su,GetPromptResultSchema:()=>mu,GetTaskPayloadRequestSchema:()=>sv,GetTaskPayloadResultSchema:()=>cv,GetTaskRequestSchema:()=>iv,GetTaskResultSchema:()=>av,IconSchema:()=>zl,IconsSchema:()=>Ar,ImageContentSchema:()=>To,ImplementationSchema:()=>ko,InitializeRequestParamsSchema:()=>Il,InitializeRequestSchema:()=>ha,InitializeResultSchema:()=>Tl,InitializedNotificationSchema:()=>xl,JSONArraySchema:()=>Wg,JSONObjectSchema:()=>ze,JSONRPCErrorResponseSchema:()=>zo,JSONRPCMessageSchema:()=>Ro,JSONRPCNotificationSchema:()=>ma,JSONRPCRequestSchema:()=>da,JSONRPCResponseSchema:()=>Xg,JSONRPCResultResponseSchema:()=>$o,JSONValueSchema:()=>Cr,LegacyTitledEnumSchemaSchema:()=>xa,ListChangedOptionsBaseSchema:()=>tv,ListPromptsRequestSchema:()=>ou,ListPromptsResultSchema:()=>iu,ListResourceTemplatesRequestSchema:()=>Dl,ListResourceTemplatesResultSchema:()=>Ll,ListResourcesRequestSchema:()=>Al,ListResourcesResultSchema:()=>Ul,ListRootsRequestSchema:()=>Gu,ListRootsResultSchema:()=>Wu,ListTasksRequestSchema:()=>lv,ListTasksResultSchema:()=>uv,ListToolsRequestSchema:()=>gu,ListToolsResultSchema:()=>vu,LoggingLevelSchema:()=>Mr,LoggingMessageNotificationParamsSchema:()=>zu,LoggingMessageNotificationSchema:()=>Ru,ModelHintSchema:()=>ku,ModelPreferencesSchema:()=>wu,MultiSelectEnumSchemaSchema:()=>Au,NotificationSchema:()=>qe,NotificationsParamsSchema:()=>Me,NumberSchemaSchema:()=>Oo,PaginatedRequestParamsSchema:()=>Nl,PaginatedRequestSchema:()=>Ur,PaginatedResultSchema:()=>Dr,PingRequestSchema:()=>va,PrimitiveSchemaDefinitionSchema:()=>Oa,ProgressNotificationParamsSchema:()=>Cl,ProgressNotificationSchema:()=>_a,ProgressSchema:()=>Ol,ProgressTokenSchema:()=>sa,PromptArgumentSchema:()=>ru,PromptListChangedNotificationSchema:()=>pu,PromptMessageSchema:()=>du,PromptReferenceSchema:()=>Ku,PromptSchema:()=>nu,ReadResourceRequestParamsSchema:()=>Ml,ReadResourceRequestSchema:()=>ql,ReadResourceResultSchema:()=>Vl,RelatedTaskMetadataSchema:()=>bl,RequestIdSchema:()=>jr,RequestMetaSchema:()=>la,RequestSchema:()=>Re,ResourceContentsSchema:()=>ya,ResourceLinkSchema:()=>uu,ResourceListChangedNotificationSchema:()=>Zl,ResourceRequestParamsSchema:()=>wo,ResourceSchema:()=>$a,ResourceTemplateReferenceSchema:()=>Fu,ResourceTemplateSchema:()=>jl,ResourceUpdatedNotificationParamsSchema:()=>eu,ResourceUpdatedNotificationSchema:()=>tu,ResultMetaObjectSchema:()=>ua,ResultSchema:()=>ke,RoleSchema:()=>Lr,RootSchema:()=>Yu,RootsListChangedNotificationSchema:()=>Xu,SamplingContentSchema:()=>xu,SamplingMessageContentBlockSchema:()=>_n,SamplingMessageSchema:()=>Eu,ServerCapabilitiesSchema:()=>ga,ServerNotificationSchema:()=>vv,ServerRequestSchema:()=>gv,ServerResultSchema:()=>_v,ServerTasksCapabilitySchema:()=>kl,SetLevelRequestParamsSchema:()=>bu,SetLevelRequestSchema:()=>$u,SingleSelectEnumSchemaSchema:()=>ju,StringSchemaSchema:()=>Po,SubscribeRequestParamsSchema:()=>Fl,SubscribeRequestSchema:()=>Kl,SubscriptionFilterSchema:()=>za,SubscriptionsAcknowledgedNotificationParamsSchema:()=>Gl,SubscriptionsAcknowledgedNotificationSchema:()=>Wl,SubscriptionsListenRequestParamsSchema:()=>Hl,SubscriptionsListenRequestSchema:()=>Yl,SubscriptionsListenResultMetaSchema:()=>Xl,SubscriptionsListenResultSchema:()=>Ql,TaskAugmentedRequestParamsSchema:()=>zn,TaskCreationParamsSchema:()=>rv,TaskMetadataSchema:()=>Sl,TaskSchema:()=>qr,TaskStatusNotificationParamsSchema:()=>ed,TaskStatusNotificationSchema:()=>ov,TaskStatusSchema:()=>Qu,TextContentSchema:()=>Io,TextResourceContentsSchema:()=>Sa,TitledMultiSelectEnumSchemaSchema:()=>Pa,TitledSingleSelectEnumSchemaSchema:()=>Ta,ToolAnnotationsSchema:()=>fu,ToolChoiceSchema:()=>Iu,ToolExecutionSchema:()=>hu,ToolListChangedNotificationSchema:()=>Su,ToolResultContentSchema:()=>Tu,ToolSchema:()=>Ra,ToolUseContentSchema:()=>cu,UnsubscribeRequestParamsSchema:()=>Jl,UnsubscribeRequestSchema:()=>Bl,UntitledMultiSelectEnumSchemaSchema:()=>Ea,UntitledSingleSelectEnumSchemaSchema:()=>Ia});var Ht=e=>da.safeParse(e).success,gd=e=>ma.safeParse(e).success,ar=e=>$o.safeParse(e).success,cr=e=>zo.safeParse(e).success;var lr=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.resultType==="input_required";var Bv=e=>ha.safeParse(e).success;function Hv(e){if(e.params.ref.type!=="ref/prompt")throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)}function Yv(e){if(e.params.ref.type!=="ref/resource")throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)}var qE="Mcp-Param-",T$="x-mcp-header",VE=/^[!#$%&\'*+\\-.^_`|~0-9A-Za-z]+$/,ZE=new Set(["string","integer","boolean","number"]);function vd(e){let t=[],n=new Map,o=(i,a,s)=>{if(i===null||typeof i!="object")return;let c=i;if(T$ in c){if(!s||a.length===0)return`${No(a)}: x-mcp-header is only permitted on properties statically reachable via a chain of \'properties\' keys (not under items, additionalProperties, oneOf/anyOf/allOf/not, if/then/else, or $ref)`;let u=c[T$];if(typeof u!="string"||u.length===0)return`${No(a)}: x-mcp-header MUST be a non-empty string`;if(!VE.test(u))return`${No(a)}: x-mcp-header \'${u}\' is not a valid RFC 9110 token (no spaces, control characters or HTTP delimiters)`;let m=typeof c.type=="string"?c.type:void 0;if(m===void 0||!ZE.has(m))return`${No(a)}: x-mcp-header is only permitted on primitive-typed properties (string, integer, boolean); got ${m??"<none>"}`;let p=u.toLowerCase(),f=n.get(p);if(f!==void 0)return`x-mcp-header \'${u}\' is not case-insensitively unique (also declared as \'${f}\')`;n.set(p,u),t.push({path:a,headerName:u,type:m})}let l=c.properties;if(l!==null&&typeof l=="object")for(let[u,m]of Object.entries(l)){let p=o(m,[...a,u],s);if(p!==void 0)return p}for(let u of FE){let m=c[u];if(m===void 0)continue;let p=Array.isArray(m)?m:m!==null&&typeof m=="object"&&KE.has(u)?Object.values(m):[m];for(let f of p){let h=o(f,[...a,`<${u}>`],!1);if(h!==void 0)return h}}},r=o(e,[],!0);return r===void 0?{valid:!0,declarations:t}:{valid:!1,reason:r}}var FE=["items","prefixItems","contains","additionalProperties","unevaluatedProperties","unevaluatedItems","propertyNames","patternProperties","dependentSchemas","oneOf","anyOf","allOf","not","if","then","else","$defs","definitions"],KE=new Set(["patternProperties","dependentSchemas","$defs","definitions"]);function No(e){return e.length===0?"<root>":e.join(".")}var JE="=?base64?",BE="?=",HE=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,YE=/^-?\\d+(\\.\\d+)?$/;function GE(e){if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(typeof e=="number")return!Number.isFinite(e)||Number.isInteger(e)&&!Number.isSafeInteger(e)?void 0:String(e)}function WE(e){let t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.codePointAt(o);return new TextDecoder("utf-8",{fatal:!0}).decode(n)}function tz(e){if(!(e.startsWith(JE)&&e.endsWith(BE)))return e;let t=e.slice(9,e.length-2);if(HE.test(t))try{return WE(t)}catch{return}}function XE(e,t){let n=e;for(let o of t){if(n===null||typeof n!="object")return;n=n[o]}return n}function rz(e,t,n){for(let o of e){let r=`${qE}${o.headerName}`,i=n.get(r),a=XE(t,o.path);if(a==null)continue;let s=GE(a);if(s===void 0)continue;if(i===null)return Ev("param-header-missing",r,`the body carries ${No(o.path)}=${JSON.stringify(a)} but the ${r} header is absent`);let c=tz(i);if(c===void 0)return Ev("param-header-invalid-encoding",r,`the ${r} header carries an invalid Base64 sentinel value`);if(!((o.type==="integer"||o.type==="number")&&YE.test(c)&&typeof a=="number"?Number(c)===a:c===s))return Ev("param-header-mismatch",r,`the ${r} header decodes to ${JSON.stringify(c)} but the body carries ${No(o.path)}=${JSON.stringify(a)}`)}}function Ev(e,t,n){return{kind:"reject",rung:"param-header-validation",cell:e,httpStatus:400,code:Ao,message:`Bad Request: the request headers and body disagree: ${n}`,data:{mismatch:{header:t,body:n}},settled:!0}}var Ao=-32020,TA=[{rung:"http-method",order:1,evaluatedAt:"edge",codes:[-32e3],conformance:[],rationale:"The modern era is POST-only; GET/DELETE are body-less 2025-era session operations and are method-routed to legacy serving (405 when legacy serving is not configured), before any body is read."},{rung:"jsonrpc-shape",order:2,evaluatedAt:"edge",codes:[C.InvalidRequest],conformance:["server-stateless"],rationale:"The body must be a JSON-RPC request or notification: posted responses and batch arrays containing a modern or invalid element are rejected before classification (element-wise batch rule); all-legacy arrays stay legacy traffic."},{rung:"era-classification",order:3,evaluatedAt:"edge",codes:[Ao,C.UnsupportedProtocolVersion],conformance:["server-stateless","http-header-validation","http-custom-header-server-validation"],rationale:"Body-primary era classification with the protocol-version header as a cross-check; a header/body disagreement is rejected with -32020 (HeaderMismatch), and an envelope-less request on a modern-only endpoint is answered with the unsupported-protocol-version error naming the supported revisions."},{rung:"envelope",order:4,evaluatedAt:"edge",codes:[C.InvalidParams],conformance:["server-stateless"],rationale:"A present envelope claim with a malformed envelope \\u2014 and a missing envelope on a request whose protocol-version header names a modern revision \\u2014 is an invalid-params rejection naming the offending or missing key(s); never a silent fall back to legacy handling. This is the only place an invalid-params rejection maps to HTTP 400."},{rung:"method-registry",order:5,evaluatedAt:"dispatch",codes:[C.MethodNotFound],conformance:["server-stateless"],rationale:"Method existence outranks parameter validity: a method absent from the negotiated revision\\u2019s registry (or with no handler installed) answers method-not-found before params or capabilities are looked at."},{rung:"request-params",order:6,evaluatedAt:"dispatch",codes:[C.InvalidParams],conformance:[],rationale:"Per-method params validation; emitted in-band by the dispatch layer (HTTP 200), never via the ladder status table."},{rung:"standard-header-validation",order:7,evaluatedAt:"pre-dispatch",codes:[Ao],conformance:["http-header-validation"],rationale:"SEP-2243 standard `MCP-Protocol-Version` / `Mcp-Method` / `Mcp-Name` headers \\u2014 presence, sentinel decoding, and `Mcp-Name` \\u2194 body cross-check \\u2014 are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The spec requires `MCP-Protocol-Version` and `Mcp-Method` on every modern *request* POST (`Mcp-Name` only for the methods that mirror `params.name` / `params.uri` / `params.taskId`, see `MCP_NAME_HEADER_SOURCE`) and names them in that order, so a request missing several is answered by the earliest. Notification POSTs are exempt: the presence half runs on requests only, so a modern-enveloped notification is dispatched even with no standard headers at all. The classifier\\u2019s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half \\u2014 including the missing `MCP-Protocol-Version` cell, which cannot live on the edge rung without breaking body-primary classification. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5\\u20136) are consulted."},{rung:"client-capabilities",order:8,evaluatedAt:"pre-dispatch",codes:[C.MissingRequiredClientCapability],conformance:["server-stateless"],rationale:"The capability requirement is checked by the HTTP entry, pre-dispatch, against the validated envelope the classifier produced \\u2014 pinning the spec-mandated HTTP 400 independently of how dispatch- and handler-produced errors are mapped. The documented order (after method resolution and params validation) is preserved observably only while the requirement table is empty: once a served method gains a requirement entry, a request that is missing the capability and would also fail a dispatch rung is answered by this gate first, so the entry must consult the method registry before the gate if the documented precedence is to stay observable."},{rung:"param-header-validation",order:9,evaluatedAt:"pre-dispatch",codes:[Ao],conformance:["http-custom-header-server-validation"],rationale:"SEP-2243 `Mcp-Param-*` headers are validated against the named tool\\u2019s `x-mcp-header` declarations and the body `arguments` after the tool registry is known and before dispatch reaches the handler; a missing/disagreeing/malformed header is rejected 400 / -32020 with the same shape as the standard-header cross-checks. The documented order (after method resolution and params validation) is preserved observably only when the body `arguments` would otherwise validate: the check runs pre-dispatch, so a `tools/call` that fails BOTH this rung and a dispatch-time rung (e.g. order-6 `request-params`, -32602) is answered by this gate first with 400 / -32020, not by the earlier-ordered rung."}],Gv={[C.ParseError]:400,[C.InvalidRequest]:400,[C.MethodNotFound]:404,[C.UnsupportedProtocolVersion]:400,[C.MissingRequiredClientCapability]:400,[Ao]:400};function nz(e,t){return t==="in-band"?e===C.MissingRequiredClientCapability?400:200:Gv[e]??400}function Rt(e,t,n,o,r){return{kind:"reject",rung:e,cell:t,httpStatus:n,code:o.code,message:o.message,...o.data!==void 0&&{data:o.data},settled:r}}function Pt(e,t,n,o="era-classification"){return Rt(o,e,400,new V(Ao,`Bad Request: the request headers and body disagree: ${n}`,{mismatch:{header:t,body:n}}),!0)}var x$={"tools/call":"name","prompts/get":"name","resources/read":"uri","tasks/get":"taskId","tasks/update":"taskId","tasks/cancel":"taskId"};function QE(e,t){let n=Object.hasOwn(x$,e)?x$[e]:void 0;if(n===void 0)return;let o=Ua(t)?t[n]:void 0;return{field:n,value:typeof o=="string"?o:void 0}}function ld(e){let t=0;for(;t<e.length;){let o=e.codePointAt(t);if(o!==9&&o!==32)break;t+=1}let n=e.length;for(;n>t;){let o=e.codePointAt(n-1);if(o!==9&&o!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function oz(e,t){if(t.messageKind!=="request")return;let n=t.message.method;if(e.protocolVersionHeader===void 0){let c=t.classification.revision;return Pt("version-header-missing","(missing)",c===void 0?"the body carries a modern per-request envelope but the required MCP-Protocol-Version header is absent":`the body envelope names protocol version ${c} but the required MCP-Protocol-Version header is absent`,"standard-header-validation")}if(e.mcpMethodHeader===void 0)return Pt("method-header-missing","(missing)",`the body names method ${n} but the required Mcp-Method header is absent`,"standard-header-validation");let o=QE(n,t.message.params);if(o===void 0)return;let{field:r,value:i}=o;if(e.mcpNameHeader===void 0)return i===void 0?void 0:Pt("name-header-missing","(missing)",`the body carries params.${r}="${i}" but the required Mcp-Name header is absent`,"standard-header-validation");let a=ld(e.mcpNameHeader),s=tz(a);if(s===void 0)return Pt("name-header-invalid-encoding",a,"the Mcp-Name header carries an invalid Base64 sentinel value","standard-header-validation");if(i!==void 0&&s!==i)return Pt("name-header-mismatch",a,`the body carries params.${r}="${i}" but the Mcp-Name header names "${s}"`,"standard-header-validation")}function Ua(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function iz(e){return e===void 0?{era:"modern"}:{era:sr(e)?"modern":"legacy",revision:e}}function eP(e){if(!hd(e))return!1;let t=Jv(e);if(t===void 0||!sr(t))return!1;let n=Zr(e);return n!==void 0&&ud(n).length===0}function tP(e){if(e.length===0)return Rt("jsonrpc-shape","empty-batch",400,new V(C.InvalidRequest,"Bad Request: empty JSON-RPC batch"),!0);for(let t of e){if(hd(Ua(t)?t.params:void 0))return Rt("jsonrpc-shape","batch-with-modern-element",400,new V(C.InvalidRequest,"Bad Request: JSON-RPC batches may not contain requests for protocol revision 2026-07-28 or later"),!0);if(!(Ht(t)||gd(t)||ar(t)||cr(t)))return Rt("jsonrpc-shape","batch-with-invalid-element",400,new V(C.InvalidRequest,"Bad Request: JSON-RPC batch contains an invalid message"),!0)}return{kind:"legacy",reason:"batch"}}function rP(e,t){let n=t.params,o=t.method,r=e.protocolVersionHeader,i=r!==void 0&&sr(r);if(o==="initialize"&&!eP(n)){if(i)return Pt("initialize-with-modern-header",r,"an initialize request (legacy handshake) was sent with a modern MCP-Protocol-Version header");let a=Ua(n)&&typeof n.protocolVersion=="string"?n.protocolVersion:void 0;return{kind:"legacy",reason:"initialize",...a!==void 0&&{requestedVersion:a}}}if(hd(n)){let a=Zr(n),s=(a===void 0?[]:ud(a))[0];if(s!==void 0)return Rt("envelope","envelope-invalid",400,new V(C.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${s.key}: ${s.problem}`,{envelope:s}),!0);let c=Jv(n);return r!==void 0&&c!==void 0&&r!==c?Pt("header-body-version-mismatch",r,`the body envelope names protocol version ${c} but the MCP-Protocol-Version header names ${r}`):e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==o?Pt("method-header-mismatch",e.mcpMethodHeader,`the body names method ${o} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"request",message:t,classification:iz(c)}}if(i){let a=Zr(n),s=ud(a??{}).filter(l=>l.problem==="missing").map(l=>l.key),c=a===void 0?["_meta"]:s.length>0?s:[zt];return Rt("envelope","modern-header-without-claim",400,new V(C.InvalidParams,`Invalid params: the MCP-Protocol-Version header names protocol revision ${r}, but the request is missing the required per-request envelope key(s): ${c.join(", ")}`,{envelope:{missing:c}}),!0)}return{kind:"legacy",reason:"no-claim",...r!==void 0&&{requestedVersion:r}}}function nP(e,t){let n=t.params,o=t.method,r=e.protocolVersionHeader,i=r!==void 0&&sr(r);if(hd(n)){let a=Jv(n);if(a===void 0){let c=Zr(n),l=(c===void 0?[]:ud(c)).find(u=>u.key===zt)??{key:zt,problem:"expected a protocol version string"};return Rt("envelope","notification-envelope-invalid",400,new V(C.InvalidParams,`Invalid _meta envelope for protocol revision 2026-07-28: ${l.key}: ${l.problem}`,{envelope:l}),!0)}if(r!==void 0&&r!==a)return Pt("notification-header-body-version-mismatch",r,`the notification envelope names protocol version ${a} but the MCP-Protocol-Version header names ${r}`);let s=iz(a);return s.era==="modern"&&e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==o?Pt("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${o} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:s}}return i?e.mcpMethodHeader!==void 0&&e.mcpMethodHeader!==o?Pt("notification-method-header-mismatch",e.mcpMethodHeader,`the notification body names method ${o} but the Mcp-Method header names ${e.mcpMethodHeader}`):{kind:"modern",messageKind:"notification",message:t,classification:{era:"modern",revision:r}}:{kind:"legacy",reason:"notification",...r!==void 0&&{requestedVersion:r}}}function az(e){if(e={...e,...e.protocolVersionHeader!==void 0&&{protocolVersionHeader:ld(e.protocolVersionHeader)},...e.mcpMethodHeader!==void 0&&{mcpMethodHeader:ld(e.mcpMethodHeader)},...e.mcpNameHeader!==void 0&&{mcpNameHeader:ld(e.mcpNameHeader)}},e.httpMethod.toUpperCase()!=="POST")return{kind:"legacy",reason:"http-method"};let t=e.body;return Array.isArray(t)?tP(t):ar(t)||cr(t)?{kind:"legacy",reason:"response"}:Ua(t)&&Ht(t)?rP(e,t):Ua(t)&&gd(t)?nP(e,t):Rt("jsonrpc-shape","invalid-json-rpc-body",400,new V(C.InvalidRequest,"Bad Request: the request body is not a valid JSON-RPC message"),!0)}function sz(e,t){switch(e.reason){case"http-method":return Rt("http-method","modern-only-method-not-allowed",405,new V(-32e3,"Method not allowed."),!0);case"batch":return Rt("jsonrpc-shape","modern-only-batch-not-supported",400,new V(C.InvalidRequest,"Bad Request: JSON-RPC batches are not supported by this endpoint"),!0);case"response":return Rt("jsonrpc-shape","modern-only-response-post",400,new V(C.InvalidRequest,"Bad Request: JSON-RPC responses cannot be posted to this endpoint"),!0);case"notification":return;case"initialize":case"no-claim":{let n=e.requestedVersion;return Rt("era-classification","modern-only-missing-envelope",400,n===void 0?new V(C.UnsupportedProtocolVersion,"Unsupported protocol version: the request did not name a protocol version",{supported:[...t]}):new fd({supported:[...t],requested:n}),!0)}}}function _d(e,t){return Hi(e,t)}function Na(e){return new Set(e.flatMap(t=>Object.keys(t.shape)))}function Do(e){if(e==null)return!1;let t=typeof e;return t!=="object"&&t!=="function"||!("~standard"in e)?!1:typeof e["~standard"]?.validate=="function"}var E$=!1,Cv="draft-2020-12";function wn(e,t="input"){let n=e["~standard"],o;if(n.jsonSchema)o=n.jsonSchema[t]({target:Cv});else if(n.vendor==="zod"){if(!("_zod"in e))throw new Error("Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().");E$||(E$=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),o=hn(e,{target:Cv,io:t})}else throw new Error(`Schema library "${n.vendor}" does not implement StandardJSONSchemaV1 (\\`~standard.jsonSchema\\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(t==="output")return o.type!==void 0?o:cz(o)?{type:"object",...o}:o;if(o.type!==void 0&&o.type!=="object")throw new Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(o.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:"object",...o}}function cz(e){if("properties"in e||"patternProperties"in e||"additionalProperties"in e||"required"in e)return!0;for(let t of["oneOf","anyOf","allOf"]){let n=e[t];if(Array.isArray(n)&&n.length>0)return n.every(o=>o!==null&&typeof o=="object"&&(o.type==="object"||cz(o)))}return!1}function oP(e){return e.path?.length?`${e.path.map(t=>String(typeof t=="object"?t.key:t)).join(".")}: ${e.message}`:e.message}async function Rn(e,t){let n=await e["~standard"].validate(t);return n.issues&&n.issues.length>0?{success:!1,error:n.issues.map(o=>oP(o)).join(", ")}:{success:!0,data:n.value}}function iP(e){let t=hn(e,{target:Cv,io:"input"});return typeof t.pattern=="string"?t.pattern:void 0}var aP=/\\\\\\.\\\\d\\{(\\d+)\\}/;function sP(e){let t=aP.exec(e),n=[void 0,-1,0];return t&&n.push(Number(t[1])),[!1,!0].flatMap(o=>[!1,!0].flatMap(r=>n.map(i=>$t.datetime({local:o,offset:r,precision:i}))))}function cP(e,t){let n;switch(e){case"email":n=[Yc()];break;case"uri":n=[go()];break;case"date":n=[$t.date()];break;case"date-time":n=sP(t);break}return new Set(n.map(o=>iP(o)).filter(o=>o!==void 0))}function lP(e,t,n){return n!=="zod"?!0:cP(e,t).has(t)}function lz(e){let t=wn(e,"input"),n=t.properties||{},o=t.required||[];return Object.entries(n).map(([r,i])=>({name:r,description:i?.description,required:o.includes(r)}))}function Da(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function uP(e){try{return wn(e,"input")}catch(t){let n=t instanceof Error?t.message:String(t);throw new V(C.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${n}`)}}var dP=new Set(["$comment","deprecated","description","examples","readOnly","title","writeOnly"]);function Wv(e){return dP.has(e)||e.startsWith("x-")}var mP=new Set(["$schema",...Object.keys(Co.shape.requestedSchema.shape)]),P$={string:Na([Po,Ia,Ta,xa]),number:Na([Oo]),integer:Na([Oo]),boolean:Na([wa]),array:Na([Ea,Pa])},pP=new Set(Po.shape.format.unwrap().options);function fP(e,t,n,o){if(!Da(e))return e;let r=typeof e.type=="string"&&Object.hasOwn(P$,e.type)?P$[e.type]:void 0;if(r===void 0)return e;let i={};for(let[a,s]of Object.entries(e))r.has(a)||Wv(a)?i[a]=s:a==="pattern"&&e.type==="string"&&typeof e.format=="string"?pP.has(e.format)?(typeof s!="string"||!lP(e.format,s,n))&&o.push(`${t}.${a}`):i[a]=s:o.push(`${t}.${a}`);return i}function hP(e,t){let n={},o=[];for(let[r,i]of Object.entries(e))r==="properties"&&Da(i)?n[r]=Object.fromEntries(Object.entries(i).map(([a,s])=>[a,fP(s,`properties.${a}`,t,o)])):mP.has(r)?n[r]=i:Wv(r)||o.push(r);if(o.length>0)throw new V(C.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${o.join(", ")}`);return n}function gP(e,t){if(!Da(e.properties))return t;let n=Object.entries(e.properties).filter(([,o])=>!_d(Oa,o).success).map(([o])=>`properties.${o}`);return n.length>0?n.join(", "):t}function Nv(e,t,n=""){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((o,r)=>Nv(o,t[r],`${n}[${r}]`)):!Da(e)||!Da(t)?[]:Object.entries(e).flatMap(([o,r])=>{let i=n?`${n}.${o}`:o;return Object.prototype.hasOwnProperty.call(t,o)?Nv(r,t[o],i):Wv(o)?[]:[i]})}function vP(e){if(!Do(e.requestedSchema))return{...e,mode:"form",requestedSchema:e.requestedSchema};let t=e.requestedSchema["~standard"].vendor,n=hP(uP(e.requestedSchema),t),o=_d(Co.shape.requestedSchema,n);if(!o.success)throw new V(C.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${gP(n,o.error.message)}`);let r=Nv(n,o.data);if(r.length>0)throw new V(C.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(", ")}`);let i=(o.data.required??[]).filter(a=>!Object.prototype.hasOwnProperty.call(o.data.properties,a));if(i.length>0)throw new V(C.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${i.join(", ")}`);return{...e,mode:"form",requestedSchema:o.data}}function _P(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,n=typeof e.requestState=="string";if(!t&&!n)throw new TypeError("inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)");return{resultType:"input_required",...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}var Xv=Object.assign(_P,{elicit(e){try{return{method:"elicitation/create",params:vP(e)}}catch(t){throw t instanceof V?new TypeError(t.message,{cause:t}):t}},elicitUrl(e){return{method:"elicitation/create",params:{...e,mode:"url"}}},createMessage(e){return{method:"sampling/createMessage",params:e}},listRoots(){return{method:"roots/list"}}});var uz=250;function dz(e,t){return`Multi-round-trip request \'${e}\' still required input after ${t} rounds (inputRequired.maxRounds)`}function mz(e,t){return new Promise((n,o)=>{if(t?.aborted){o(t.reason instanceof ne?t.reason:new ne(se.RequestTimeout,String(t.reason)));return}let r=setTimeout(()=>{t?.removeEventListener("abort",i),n()},e),i=()=>{clearTimeout(r),o(t?.reason instanceof ne?t.reason:new ne(se.RequestTimeout,String(t?.reason)))};t?.addEventListener("abort",i,{once:!0})})}function pz(e){let t=new AbortController,n=()=>t.abort(e?.reason);return e?.addEventListener("abort",n,{once:!0}),e?.aborted&&t.abort(e.reason),{signal:t.signal,abort:o=>t.abort(o),dispose:()=>e?.removeEventListener("abort",n)}}var yP=["AnnotationsSchema","AudioContentSchema","BaseMetadataSchema","BlobResourceContentsSchema","BooleanSchemaSchema","CallToolRequestSchema","CallToolRequestParamsSchema","CallToolResultSchema","CancelledNotificationSchema","CancelledNotificationParamsSchema","CancelTaskRequestSchema","CancelTaskResultSchema","ClientCapabilitiesSchema","ClientNotificationSchema","ClientRequestSchema","ClientResultSchema","CompatibilityCallToolResultSchema","CompleteRequestSchema","CompleteRequestParamsSchema","CompleteResultSchema","ContentBlockSchema","CreateMessageRequestSchema","CreateMessageRequestParamsSchema","CreateMessageResultSchema","CreateMessageResultWithToolsSchema","CreateTaskResultSchema","CursorSchema","DiscoverRequestSchema","DiscoverResultSchema","ElicitationCompleteNotificationSchema","ElicitationCompleteNotificationParamsSchema","ElicitRequestSchema","ElicitRequestFormParamsSchema","ElicitRequestParamsSchema","ElicitRequestURLParamsSchema","ElicitResultSchema","EmbeddedResourceSchema","EmptyResultSchema","EnumSchemaSchema","GetPromptRequestSchema","GetPromptRequestParamsSchema","GetPromptResultSchema","GetTaskPayloadRequestSchema","GetTaskPayloadResultSchema","GetTaskRequestSchema","GetTaskResultSchema","IconSchema","IconsSchema","ImageContentSchema","ImplementationSchema","InitializedNotificationSchema","InitializeRequestSchema","InitializeRequestParamsSchema","InitializeResultSchema","JSONArraySchema","JSONObjectSchema","JSONRPCErrorResponseSchema","JSONRPCMessageSchema","JSONRPCNotificationSchema","JSONRPCRequestSchema","JSONRPCResponseSchema","JSONRPCResultResponseSchema","JSONValueSchema","LegacyTitledEnumSchemaSchema","ListPromptsRequestSchema","ListPromptsResultSchema","ListResourcesRequestSchema","ListResourcesResultSchema","ListResourceTemplatesRequestSchema","ListResourceTemplatesResultSchema","ListRootsRequestSchema","ListRootsResultSchema","ListTasksRequestSchema","ListTasksResultSchema","ListToolsRequestSchema","ListToolsResultSchema","LoggingLevelSchema","LoggingMessageNotificationSchema","LoggingMessageNotificationParamsSchema","ModelHintSchema","ModelPreferencesSchema","MultiSelectEnumSchemaSchema","NotificationSchema","NumberSchemaSchema","PaginatedRequestSchema","PaginatedRequestParamsSchema","PaginatedResultSchema","PingRequestSchema","PrimitiveSchemaDefinitionSchema","ProgressSchema","ProgressNotificationSchema","ProgressNotificationParamsSchema","ProgressTokenSchema","PromptSchema","PromptArgumentSchema","PromptListChangedNotificationSchema","PromptMessageSchema","PromptReferenceSchema","ReadResourceRequestSchema","ReadResourceRequestParamsSchema","ReadResourceResultSchema","RelatedTaskMetadataSchema","RequestSchema","RequestIdSchema","RequestMetaSchema","ResourceSchema","ResourceContentsSchema","ResourceLinkSchema","ResourceListChangedNotificationSchema","ResourceRequestParamsSchema","ResourceTemplateSchema","ResourceTemplateReferenceSchema","ResourceUpdatedNotificationSchema","ResourceUpdatedNotificationParamsSchema","ResultMetaObjectSchema","ResultSchema","RoleSchema","RootSchema","RootsListChangedNotificationSchema","SamplingContentSchema","SamplingMessageSchema","SamplingMessageContentBlockSchema","ServerCapabilitiesSchema","ServerNotificationSchema","ServerRequestSchema","ServerResultSchema","SetLevelRequestSchema","SetLevelRequestParamsSchema","SingleSelectEnumSchemaSchema","StringSchemaSchema","SubscribeRequestSchema","SubscribeRequestParamsSchema","SubscriptionFilterSchema","SubscriptionsAcknowledgedNotificationSchema","SubscriptionsAcknowledgedNotificationParamsSchema","SubscriptionsListenRequestSchema","SubscriptionsListenRequestParamsSchema","SubscriptionsListenResultSchema","SubscriptionsListenResultMetaSchema","TaskAugmentedRequestParamsSchema","TaskCreationParamsSchema","TaskMetadataSchema","TaskSchema","TaskStatusSchema","TaskStatusNotificationSchema","TaskStatusNotificationParamsSchema","TextContentSchema","TextResourceContentsSchema","TitledMultiSelectEnumSchemaSchema","TitledSingleSelectEnumSchemaSchema","ToolSchema","ToolAnnotationsSchema","ToolChoiceSchema","ToolExecutionSchema","ToolListChangedNotificationSchema","ToolResultContentSchema","ToolUseContentSchema","UnsubscribeRequestSchema","UnsubscribeRequestParamsSchema","UntitledMultiSelectEnumSchemaSchema","UntitledSingleSelectEnumSchemaSchema"],SP={IdJagTokenExchangeResponseSchema:$v,OAuthClientInformationFullSchema:Rv,OAuthClientInformationSchema:od,OAuthClientMetadataSchema:nd,OAuthClientRegistrationErrorSchema:kv,OAuthErrorResponseSchema:zv,OAuthMetadataSchema:td,OAuthProtectedResourceMetadataSchema:yv,OAuthTokenRevocationRequestSchema:wv,OAuthTokensSchema:bv,OpenIdProviderDiscoveryMetadataSchema:Sv,OpenIdProviderMetadataSchema:rd},fz={},hz={};function gz(e,t){let n=e.slice(0,-6);fz[n]=t,hz[n]=o=>t.safeParse(o).success}for(let e of yP)gz(e,ME[e]);for(let[e,t]of Object.entries(SP))gz(e,t);var bP=Object.freeze(fz),$P=Object.freeze(hz);function zP(e){switch(e){case"initialize":case"notifications/initialized":return Vr(void 0);case"server/discover":return Vr(Za);default:return}}var vz=6e4,RP=[zt,Sn,Bt,Nr],kP=["inputResponses","requestState"];function O$(e,t){let n=e.params;if(!Aa(n))return{message:e,lifted:{}};let o=n._meta,r=Aa(o)?RP.filter(c=>c in o):[],i=t==="request"?kP.filter(c=>c in n):[];if(r.length===0&&i.length===0)return{message:e,lifted:{}};let a={},s={...n};if(r.length>0&&Aa(o)){let c={},l={...o};for(let u of r)c[u]=o[u],delete l[u];a.envelope=c,Object.keys(l).length>0?s._meta=l:delete s._meta}for(let c of i)c==="inputResponses"&&(a.inputResponses=s[c]),c==="requestState"&&(a.requestState=s[c]),delete s[c];return{message:{...e,params:s},lifted:a}}function C$(e,t){let n=e.validateResult(t,void 0);if(!(!n.ok&&n.reason==="not-in-era"))return{"~standard":{version:1,vendor:"mcp-wire-codec",validate(o){let r=e.validateResult(t,o);return r.ok?{value:r.value}:{issues:[{message:r.reason==="invalid"?r.message:`not-in-era: ${t}`}]}}}}}function Fa(e){return()=>e}var wP=Fa(void 0);function Qv(e,t){return{...e,mcpReq:{...e.mcpReq,requestState:Fa(t)}}}var _z;function yz(e,t){_z(e,t)}var e_=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_customSchemaRequestMethods=new Set;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;static{_z=(e,t)=>{e._negotiatedProtocolVersion=t}}_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??aa,this.setNotificationHandler("notifications/cancelled",t=>{this._oncancel(t)}),this.setNotificationHandler("notifications/progress",t=>{this._onprogress(t)}),this.setRequestHandler("ping",t=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(t===void 0)return e;let n=e.params??{};return{...e,params:{...n,_meta:{...t,...n._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new ne(se.UnsupportedResultType,`Unsupported result type \'${e.kind}\' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId!==void 0&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,o,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(o,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:o})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new ne(se.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let o=this._transport?.onmessage;this._transport.onmessage=(r,i)=>{o?.(r,i),ar(r)||cr(r)?this._onresponse(r):Ht(r)?this._onrequest(r,i):gd(r)?this._onnotification(r,i):this._onerror(new Error(`Unknown message type: ${JSON.stringify(r)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear();for(let o of this._timeoutInfo.values())clearTimeout(o.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let n=new ne(se.ConnectionClosed,"Connection closed");this._transport=void 0;try{this.onclose?.()}finally{for(let o of e.values())o(n);for(let o of t.values())o.abort(n)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:n}=O$(e,"notification"),o=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop")return;if(t?.classification!==void 0){let a=k$(t.classification);if(a!==o.era){this._onerror(new Error(`Era mismatch on inbound notification \'${n.method}\': classified as ${a} but this instance serves ${o.era}`));return}}if(xv(n.method)&&!o.hasNotificationMethod(n.method))return;let r=this._notificationHandlers.get(n.method),i=this.fallbackNotificationHandler;r===void 0&&i===void 0||Promise.resolve().then(()=>r===void 0?i(n):r(n,o)).catch(a=>this._onerror(new Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(e,t){let{message:n,lifted:o}=O$(e,"request"),r=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop"){this._onerror(new Error(`Dropped inbound request \'${e.method}\': not servable on this connection\'s protocol era`));return}let i=this._transport,a=(S,y,w)=>{let T={jsonrpc:"2.0",id:n.id,error:{code:S,message:y,...w!==void 0&&{data:w}}};i?.send(T).catch(E=>this._onerror(new Error(`Failed to send an error response: ${E}`)))};if(t?.classification!==void 0){let S=k$(t.classification);if(S!==r.era){this._onerror(new Error(`Era mismatch on inbound request \'${n.method}\': classified as ${S} but this instance serves ${r.era}`));let y=t.classification.revision??S;a(C.UnsupportedProtocolVersion,`Unsupported protocol version: ${y}`,{supported:this._supportedProtocolVersions,requested:y});return}}if(Tv(n.method)&&!r.hasRequestMethod(n.method)&&!(w$(n.method)&&this._customSchemaRequestMethods.has(n.method))){a(C.MethodNotFound,"Method not found");return}let s=this._requestHandlers.get(n.method)??this.fallbackRequestHandler;if(s===void 0){a(C.MethodNotFound,"Method not found");return}let c=r.checkInboundEnvelope(o);if(c!==void 0){a(C.InvalidParams,c);return}let l=(S,y)=>this._notificationViaCodec(this._resolveOutboundCodec(S.method),S,{...y,relatedRequestId:n.id}),u=(S,y,w)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(S.method),S,y,{...w,relatedRequestId:n.id}),m=new AbortController;this._requestHandlerAbortControllers.set(n.id,m);let p=o.inputResponses===void 0?void 0:IP(o.inputResponses),f={sessionId:i?.sessionId,mcpReq:{id:n.id,method:n.method,_meta:n.params?._meta,...o.envelope!==void 0&&{envelope:o.envelope},...p!==void 0&&{inputResponses:p.accepted},...p!==void 0&&p.droppedKeys.length>0&&{droppedInputResponseKeys:p.droppedKeys},requestState:o.requestState===void 0?wP:Fa(o.requestState),signal:m.signal,send:((S,y,w)=>{let T=this._resolveOutboundCodec(S.method);if(this._assertOutboundRequestInEra(T,S.method),Do(y))return u(S,y,w);let E=C$(T,S.method);if(E===void 0)throw new TypeError(`\'${S.method}\' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return u(S,E,y)}),notify:l},http:t?.authInfo?{authInfo:t.authInfo}:void 0},h=this.buildContext(f,t);Promise.resolve().then(()=>s(n,h)).then(async S=>{if(m.signal.aborted)return;let y;try{y=r.encodeResult(n.method,S,this._outboundServerInfo())}catch(T){this._onerror(new Error(`Failed to encode result for ${n.method}: ${T}`)),a(C.InternalError,"Internal error");return}let w={result:y,jsonrpc:"2.0",id:n.id};await i?.send(w)},async S=>{if(m.signal.aborted)return;let y=Number.isSafeInteger(S.code)?S.code:C.InternalError,w={jsonrpc:"2.0",id:n.id,error:{code:r.encodeErrorCode(y),message:S.message??"Internal error",...S.data!==void 0&&{data:S.data}}};await i?.send(w)}).catch(S=>this._onerror(new Error(`Failed to send response: ${S}`))).finally(()=>{this._requestHandlerAbortControllers.get(n.id)===m&&this._requestHandlerAbortControllers.delete(n.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,o=Number(t),r=this._progressHandlers.get(o);if(!r){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let i=this._responseHandlers.get(o),a=this._timeoutInfo.get(o);if(a&&i&&a.resetTimeoutOnProgress)try{this._resetTimeout(o)}catch(s){this._responseHandlers.delete(o),this._progressHandlers.delete(o),this._cleanupTimeout(o),i(s);return}r(n)}_onresponse(e){let t=Number(e.id),n=this._responseHandlers.get(t);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),ar(e)?n(e):n(V.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,n){let o=this._resolveOutboundCodec(e.method);if(Do(t))return w$(e.method)||this._assertOutboundRequestInEra(o,e.method),this._requestWithSchemaViaCodec(o,e,t,n);this._assertOutboundRequestInEra(o,e.method);let r=C$(o,e.method);if(r===void 0)throw new TypeError(`\'${e.method}\' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(o,e,r,t)}_negotiatedWireCodec(){return Vr(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=zP(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(Tv(t)&&!e.hasRequestMethod(t))throw new ne(se.MethodNotSupportedByProtocolVersion,`Method \'${t}\' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,n){let o=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(o,e.method),this._requestWithSchemaViaCodec(o,e,t,n)}_requestWithSchemaViaCodec(e,t,n,o){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,headers:s}=o??{},c=Date.now(),l,u;return new Promise((m,p)=>{let f=N=>{p(N)};if(!this._transport){f(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(N){f(N);return}if(o?.signal?.aborted){let N=o.signal.reason;throw N instanceof ne?N:new ne(se.RequestTimeout,String(N))}let h=e.era===Za&&this._transport.hasPerRequestStream===!0?new AbortController:void 0,S=this._requestMessageId++;u=S;let y={...t,jsonrpc:"2.0",id:S};o?.onprogress&&(this._progressHandlers.set(S,o.onprogress),y.params={...t.params,_meta:{...t.params?._meta,progressToken:S}});let w=this._envelopeOutbound(y),T=!1,E=N=>{T||(this._progressHandlers.delete(S),h===void 0?t.method!=="initialize"&&this._transport?.send(this._envelopeOutbound({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:S,reason:String(N)}}),{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(re=>this._onerror(new Error(`Failed to send cancellation: ${re}`))):h.abort(),p(N instanceof ne?N:new ne(se.RequestTimeout,String(N))))};this._responseHandlers.set(S,N=>{if(o?.signal?.aborted)return;if(T=!0,N instanceof Error)return p(N);let re;try{re=e.decodeResult(t.method,N.result)}catch(H){return p(H instanceof Error?H:new Error(String(H)))}if(re.kind==="invalid")return p(re.error);if(re.kind==="input_required"){if(o?.allowInputRequired===!0)return m(TP(re));let H={codec:e,request:t,resultSchema:n,options:o,flowStartedAt:c,retry:(ve,ye)=>this._requestWithSchemaViaCodec(e,ve===void 0?{method:t.method}:{method:t.method,params:ve},n,ye)};return m(this._resolveNonCompleteResult(re,H))}let oe=re.result;Rn(n,oe).then(H=>{H.success?m(H.data):p(new ne(se.InvalidResult,`Invalid result for ${t.method}: ${H.error}`))},p)}),l=()=>E(o?.signal?.reason),o?.signal?.addEventListener("abort",l,{once:!0});let K=o?.timeout??vz,Z=()=>E(new ne(se.RequestTimeout,"Request timed out",{timeout:K}));this._setupTimeout(S,K,o?.maxTotalTimeout,Z,o?.resetTimeoutOnProgress??!1),this._transport.send(w,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,headers:s,requestSignal:h?.signal}).catch(N=>{this._progressHandlers.delete(S),p(N)})}).finally(()=>{l&&o?.signal?.removeEventListener("abort",l),u!==void 0&&(this._responseHandlers.delete(u),this._cleanupTimeout(u))})}async notification(e,t){return await this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,n){if(!this._transport)throw new ne(se.NotConnected,"Not connected");if(xv(t.method)&&!e.hasNotificationMethod(t.method))throw new ne(se.MethodNotSupportedByProtocolVersion,`Notification \'${t.method}\' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let o=this._envelopeOutbound({jsonrpc:"2.0",...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&n?.relatedRequestId===void 0){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(o,n).catch(r=>this._onerror(r))});return}await this._transport.send(o,n)}setRequestHandler(e,t,n){this.assertRequestHandlerCapability(e);let o;if(typeof t=="function"){if(!Tv(e))throw new TypeError(`\'${e}\' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);o=(r,i)=>{let a=this._negotiatedWireCodec(),s=a.validateRequest(e,r);if(!s.ok&&s.reason==="not-in-era"&&(s=a.validateInputRequest(e,r)),!s.ok)throw s.reason==="not-in-era"?new V(C.InternalError,`No wire schema for ${e} in the resolved era`):new Error(s.message);return Promise.resolve(t(s.value,i))}}else if(n)o=async(r,i)=>{let a=await Rn(t.params,{...r.params});if(!a.success)throw new V(C.InvalidParams,`Invalid params for ${e}: ${a.error}`);return n(a.data,i)};else throw new TypeError("setRequestHandler: handler is required");typeof t=="function"?this._customSchemaRequestMethods.delete(e):this._customSchemaRequestMethods.add(e),this._requestHandlers.set(e,this._wrapHandler(e,o))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e),this._customSchemaRequestMethods.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,n){if(typeof t=="function"){if(!xv(e))throw new TypeError(`\'${e}\' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(o,r)=>{let i=r.validateNotification(e,o);if(!i.ok)throw i.reason==="not-in-era"?new V(C.InternalError,`No wire schema for ${e} in the resolved era`):new Error(i.message);return Promise.resolve(t(i.value))});return}if(!n)throw new TypeError("setNotificationHandler: handler is required");this._notificationHandlers.set(e,async o=>{let r=await Rn(t.params,{...o.params});if(!r.success)throw new V(C.InvalidParams,`Invalid params for notification ${e}: ${r.error}`);await n(r.data,o)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function Aa(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function t_(e,t){let n={...e};for(let o in t){let r=o,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=Aa(a)&&Aa(i)?{...a,...i}:i}return n}function N$(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function IP(e){let t={},n=[];if(!N$(e))return{accepted:t,droppedKeys:n};for(let[o,r]of Object.entries(e)){if(!N$(r)||"method"in r||"result"in r){n.push(o);continue}t[o]=r}return{accepted:t,droppedKeys:n}}function TP(e){return{resultType:"input_required",inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState},...e._meta!==void 0&&{_meta:e._meta}}}var xP=U_((e=>{var t=/; *([!#$%&\'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\\u000b\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e\\u0080-\\u00ff]|\\\\[\\u000b\\u0020-\\u00ff])*"|[!#$%&\'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\\\([\\u000b\\u0020-\\u00ff])/g,o=/^[!#$%&\'*+.^_`|~0-9A-Za-z-]+\\/[!#$%&\'*+.^_`|~0-9A-Za-z-]+$/;e.parse=r;function r(s){if(!s)throw new TypeError("argument string is required");var c=typeof s=="object"?i(s):s;if(typeof c!="string")throw new TypeError("argument string is required to be a string");var l=c.indexOf(";"),u=l!==-1?c.slice(0,l).trim():c.trim();if(!o.test(u))throw new TypeError("invalid media type");var m=new a(u.toLowerCase());if(l!==-1){var p,f,h;for(t.lastIndex=l;f=t.exec(c);){if(f.index!==l)throw new TypeError("invalid parameter format");l+=f[0].length,p=f[1].toLowerCase(),h=f[2],h.charCodeAt(0)===34&&(h=h.slice(1,-1),h.indexOf("\\\\")!==-1&&(h=h.replace(n,"$1"))),m.parameters[p]=h}if(l!==c.length)throw new TypeError("invalid parameter format")}return m}function i(s){var c;if(typeof s.getHeader=="function"?c=s.getHeader("content-type"):typeof s.headers=="object"&&(c=s.headers&&s.headers["content-type"]),typeof c!="string")throw new TypeError("content-type header is missing from object");return c}function a(s){this.parameters=Object.create(null),this.type=s}})),EP=L_(xP(),1);function r_(e){if(e)try{return EP.parse(e).type}catch{let t=(e.split(";",1)[0]??"").trim().toLowerCase();return t===""||e.slice(t.length).includes(",")?void 0:t}}function n_(e){return e==="application/json"?!0:r_(e)==="application/json"}var PP=10*1024*1024;var OP=/^[A-Za-z0-9._-]{1,128}$/;function CP(e){let t=[];if(e.length===0)return{isValid:!1,warnings:["Tool name cannot be empty"]};if(e.length>128)return{isValid:!1,warnings:[`Tool name exceeds maximum length of 128 characters (current: ${e.length})`]};if(e.includes(" ")&&t.push("Tool name contains spaces, which may cause parsing issues"),e.includes(",")&&t.push("Tool name contains commas, which may cause parsing issues"),(e.startsWith("-")||e.endsWith("-"))&&t.push("Tool name starts or ends with a dash, which may cause parsing issues in some contexts"),(e.startsWith(".")||e.endsWith("."))&&t.push("Tool name starts or ends with a dot, which may cause parsing issues in some contexts"),!OP.test(e)){let n=[...e].filter(o=>!/[A-Za-z0-9._-]/.test(o)).filter((o,r,i)=>i.indexOf(o)===r);return t.push(`Tool name contains invalid characters: ${n.map(o=>`"${o}"`).join(", ")}`,"Allowed characters are: A-Z, a-z, 0-9, underscore (_), dash (-), and dot (.)"),{isValid:!1,warnings:t}}return{isValid:!0,warnings:t}}function NP(e,t){if(t.length>0){console.warn(`Tool name validation warning for "${e}":`);for(let n of t)console.warn(` - ${n}`);console.warn("Tool registration will proceed, but this may cause compatibility issues."),console.warn("Consider updating the tool name to conform to the MCP tool naming standard."),console.warn("See SEP: Specify Format for Tool Names (https://github.com/modelcontextprotocol/modelcontextprotocol/issues/986) for more details.")}}function o_(e){let t=CP(e);return NP(e,t.warnings),t.isValid}function jP(e){return typeof e=="object"&&e!==null&&"_zod"in e}function AP(e){return typeof e=="object"&&e!==null&&!("_zod"in e)&&"_def"in e&&typeof e._def?.typeName=="string"}function UP(e){if(typeof e!="object"||e===null||Do(e))return!1;let t=Object.getPrototypeOf(e);return t!==Object.prototype&&t!==null?!1:Object.values(e).every(n=>jP(n))}function yd(e){if(e!==void 0){if(UP(e))return g(e);if(typeof e=="object"&&e!==null&&!Do(e)&&Object.values(e).some(t=>AP(t)))throw new TypeError("Raw-shape inputSchema/outputSchema/argsSchema fields must be Zod v4 schemas. Got a Zod v3 field schema. Import from `zod/v4` (or upgrade your zod import), or wrap with `z.object({...})` yourself.");if(!Do(e))throw new TypeError("inputSchema/outputSchema/argsSchema must be a Standard Schema (e.g. z.object({...})) or a raw Zod shape ({ field: z.string() }).");return e}}function i_(){Dv(),ir(),lE(),EE(),LE()}function Ka(e,t){let n=typeof e;if(n!==typeof t)return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let o=e.length;if(o!==t.length)return!1;for(let r=0;r<o;r++)if(!Ka(e[r],t[r]))return!1;return!0}if(n==="object"){if(!e||!t)return e===t;let o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(let i of o)if(!Ka(e[i],t[i]))return!1;return!0}return e===t}function Ot(e){return encodeURI(DP(e))}function DP(e){return e.replace(/~/g,"~0").replace(/\\//g,"~1")}var LP={prefixItems:!0,items:!0,allOf:!0,anyOf:!0,oneOf:!0},MP={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependentSchemas:!0},qP={id:!0,$id:!0,$ref:!0,$schema:!0,$anchor:!0,$vocabulary:!0,$comment:!0,default:!0,enum:!0,const:!0,required:!0,type:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0},VP=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");function In(e,t=Object.create(null),n=VP,o=""){if(e&&typeof e=="object"&&!Array.isArray(e)){let i=e.$id||e.id;if(i){let a=new URL(i,n.href);a.hash.length>1?t[a.href]=e:(a.hash="",o===""?n=a:In(e,t,n))}}else if(e!==!0&&e!==!1)return t;let r=n.href+(o?"#"+o:"");if(t[r]!==void 0)throw new Error(`Duplicate schema URI "${r}".`);if(t[r]=e,e===!0||e===!1)return t;if(e.__absolute_uri__===void 0&&Object.defineProperty(e,"__absolute_uri__",{enumerable:!1,value:r}),e.$ref&&e.__absolute_ref__===void 0){let i=new URL(e.$ref,n.href);i.hash=i.hash,Object.defineProperty(e,"__absolute_ref__",{enumerable:!1,value:i.href})}if(e.$recursiveRef&&e.__absolute_recursive_ref__===void 0){let i=new URL(e.$recursiveRef,n.href);i.hash=i.hash,Object.defineProperty(e,"__absolute_recursive_ref__",{enumerable:!1,value:i.href})}if(e.$anchor){let i=new URL("#"+e.$anchor,n.href);t[i.href]=e}for(let i in e){if(qP[i])continue;let a=`${o}/${Ot(i)}`,s=e[i];if(Array.isArray(s)){if(LP[i]){let c=s.length;for(let l=0;l<c;l++)In(s[l],t,n,`${a}/${l}`)}}else if(MP[i])for(let c in s)In(s[c],t,n,`${a}/${Ot(c)}`);else In(s,t,n,a)}return t}var ZP=/^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/,FP=[0,31,28,31,30,31,30,31,31,30,31,30,31],KP=/^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d(?::?\\d\\d)?)?$/i,JP=/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i,BP=/^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&\'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&\'"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&\'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&\'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,HP=/^(?:(?:[^\\x00-\\x20"\'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i,YP=/^(?:(?:https?|ftp):\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu,GP=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,WP=/^(?:\\/(?:[^~/]|~0|~1)*)*$/,XP=/^#(?:\\/(?:[a-z0-9_\\-.!$&\'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,QP=/^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/,e0=e=>{if(e[0]===\'"\')return!1;let[t,n,...o]=e.split("@");return!t||!n||o.length!==0||t.length>64||n.length>253||t[0]==="."||t.endsWith(".")||t.includes("..")||!/^[a-z0-9.-]+$/i.test(n)||!/^[a-z0-9.!#$%&\'*+/=?^_`{|}~-]+$/i.test(t)?!1:n.split(".").every(r=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(r))},t0=/^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,r0=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))$/i,n0=e=>e.length>1&&e.length<80&&(/^P\\d+([.,]\\d+)?W$/.test(e)||/^P[\\dYMDTHS]*(\\d[.,]\\d+)?[YMDHS]$/.test(e)&&/^P([.,\\d]+Y)?([.,\\d]+M)?([.,\\d]+D)?(T([.,\\d]+H)?([.,\\d]+M)?([.,\\d]+S)?)?$/.test(e));function Yt(e){return e.test.bind(e)}var Sz={date:bz,time:$z.bind(void 0,!1),"date-time":a0,duration:n0,uri:l0,"uri-reference":Yt(BP),"uri-template":Yt(HP),url:Yt(YP),email:e0,hostname:Yt(JP),ipv4:Yt(t0),ipv6:Yt(r0),regex:d0,uuid:Yt(GP),"json-pointer":Yt(WP),"json-pointer-uri-fragment":Yt(XP),"relative-json-pointer":Yt(QP)};function o0(e){return e%4===0&&(e%100!==0||e%400===0)}function bz(e){let t=e.match(ZP);if(!t)return!1;let n=+t[1],o=+t[2],r=+t[3];return o>=1&&o<=12&&r>=1&&r<=(o==2&&o0(n)?29:FP[o])}function $z(e,t){let n=t.match(KP);if(!n)return!1;let o=+n[1],r=+n[2],i=+n[3],a=!!n[5];return(o<=23&&r<=59&&i<=59||o==23&&r==59&&i==60)&&(!e||a)}var i0=/t|\\s/i;function a0(e){let t=e.split(i0);return t.length==2&&bz(t[0])&&$z(!0,t[1])}var s0=/\\/|:/,c0=/^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&\'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&\'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&\'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&\'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function l0(e){return s0.test(e)&&c0.test(e)}var u0=/[^\\\\]\\\\Z/;function d0(e){if(u0.test(e))return!1;try{return new RegExp(e,"u"),!0}catch{return!1}}function m0(e){let t=0,n=e.length,o=0,r;for(;o<n;)t++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<n&&(r=e.charCodeAt(o),(r&64512)==56320&&o++);return t}function be(e,t,n="2019-09",o=In(t),r=!0,i=null,a="#",s="#",c=Object.create(null)){if(t===!0)return{valid:!0,errors:[]};if(t===!1)return{valid:!1,errors:[{instanceLocation:a,keyword:"false",keywordLocation:a,error:"False boolean schema."}]};let l=typeof e,u;switch(l){case"boolean":case"number":case"string":u=l;break;case"object":e===null?u="null":Array.isArray(e)?u="array":u="object";break;default:throw new Error(`Instances of "${l}" type are not supported.`)}let{$ref:m,$recursiveRef:p,$recursiveAnchor:f,type:h,const:S,enum:y,required:w,not:T,anyOf:E,allOf:K,oneOf:Z,if:N,then:re,else:oe,format:H,properties:ve,patternProperties:ye,additionalProperties:ce,unevaluatedProperties:Ie,minProperties:xe,maxProperties:Ae,propertyNames:Ze,dependentRequired:Xe,dependentSchemas:gt,dependencies:Nt,prefixItems:ct,items:Fe,additionalItems:Wt,unevaluatedItems:Xt,contains:jt,minContains:Ue,maxContains:Ke,minItems:Je,maxItems:kt,uniqueItems:Kr,minimum:lt,maximum:ut,exclusiveMinimum:Qe,exclusiveMaximum:vt,multipleOf:_t,minLength:At,maxLength:Ut,pattern:mr,__absolute_ref__:Dt,__absolute_recursive_ref__:Jr}=t,L=[];if(f===!0&&i===null&&(i=t),p==="#"){let G=i===null?o[Jr]:i,J=`${s}/$recursiveRef`,ae=be(e,i===null?t:i,n,o,r,G,a,J,c);ae.valid||L.push({instanceLocation:a,keyword:"$recursiveRef",keywordLocation:J,error:"A subschema had errors."},...ae.errors)}if(m!==void 0){let G=o[Dt||m];if(G===void 0){let q=`Unresolved $ref "${m}".`;throw Dt&&Dt!==m&&(q+=` Absolute URI "${Dt}".`),q+=`\nKnown schemas:\n- ${Object.keys(o).join(`\n- `)}`,new Error(q)}let J=`${s}/$ref`,ae=be(e,G,n,o,r,i,a,J,c);if(ae.valid||L.push({instanceLocation:a,keyword:"$ref",keywordLocation:J,error:"A subschema had errors."},...ae.errors),n==="4"||n==="7")return{valid:L.length===0,errors:L}}if(Array.isArray(h)){let G=h.length,J=!1;for(let ae=0;ae<G;ae++)if(u===h[ae]||h[ae]==="integer"&&u==="number"&&e%1===0&&e===e){J=!0;break}J||L.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${u}" is invalid. Expected "${h.join(\'", "\')}".`})}else h==="integer"?(u!=="number"||e%1||e!==e)&&L.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${u}" is invalid. Expected "${h}".`}):h!==void 0&&u!==h&&L.push({instanceLocation:a,keyword:"type",keywordLocation:`${s}/type`,error:`Instance type "${u}" is invalid. Expected "${h}".`});if(S!==void 0&&(u==="object"||u==="array"?Ka(e,S)||L.push({instanceLocation:a,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(S)}.`}):e!==S&&L.push({instanceLocation:a,keyword:"const",keywordLocation:`${s}/const`,error:`Instance does not match ${JSON.stringify(S)}.`})),y!==void 0&&(u==="object"||u==="array"?y.some(G=>Ka(e,G))||L.push({instanceLocation:a,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(y)}.`}):y.some(G=>e===G)||L.push({instanceLocation:a,keyword:"enum",keywordLocation:`${s}/enum`,error:`Instance does not match any of ${JSON.stringify(y)}.`})),T!==void 0){let G=`${s}/not`;be(e,T,n,o,r,i,a,G).valid&&L.push({instanceLocation:a,keyword:"not",keywordLocation:G,error:\'Instance matched "not" schema.\'})}let Lt=[];if(E!==void 0){let G=`${s}/anyOf`,J=L.length,ae=!1;for(let q=0;q<E.length;q++){let U=E[q],Q=Object.create(c),X=be(e,U,n,o,r,f===!0?i:null,a,`${G}/${q}`,Q);L.push(...X.errors),ae=ae||X.valid,X.valid&&Lt.push(Q)}ae?L.length=J:L.splice(J,0,{instanceLocation:a,keyword:"anyOf",keywordLocation:G,error:"Instance does not match any subschemas."})}if(K!==void 0){let G=`${s}/allOf`,J=L.length,ae=!0;for(let q=0;q<K.length;q++){let U=K[q],Q=Object.create(c),X=be(e,U,n,o,r,f===!0?i:null,a,`${G}/${q}`,Q);L.push(...X.errors),ae=ae&&X.valid,X.valid&&Lt.push(Q)}ae?L.length=J:L.splice(J,0,{instanceLocation:a,keyword:"allOf",keywordLocation:G,error:"Instance does not match every subschema."})}if(Z!==void 0){let G=`${s}/oneOf`,J=L.length,ae=Z.filter((q,U)=>{let Q=Object.create(c),X=be(e,q,n,o,r,f===!0?i:null,a,`${G}/${U}`,Q);return L.push(...X.errors),X.valid&&Lt.push(Q),X.valid}).length;ae===1?L.length=J:L.splice(J,0,{instanceLocation:a,keyword:"oneOf",keywordLocation:G,error:`Instance does not match exactly one subschema (${ae} matches).`})}if((u==="object"||u==="array")&&Object.assign(c,...Lt),N!==void 0){let G=`${s}/if`;if(be(e,N,n,o,r,i,a,G,c).valid){if(re!==void 0){let J=be(e,re,n,o,r,i,a,`${s}/then`,c);J.valid||L.push({instanceLocation:a,keyword:"if",keywordLocation:G,error:\'Instance does not match "then" schema.\'},...J.errors)}}else if(oe!==void 0){let J=be(e,oe,n,o,r,i,a,`${s}/else`,c);J.valid||L.push({instanceLocation:a,keyword:"if",keywordLocation:G,error:\'Instance does not match "else" schema.\'},...J.errors)}}if(u==="object"){if(w!==void 0)for(let q of w)q in e||L.push({instanceLocation:a,keyword:"required",keywordLocation:`${s}/required`,error:`Instance does not have required property "${q}".`});let G=Object.keys(e);if(xe!==void 0&&G.length<xe&&L.push({instanceLocation:a,keyword:"minProperties",keywordLocation:`${s}/minProperties`,error:`Instance does not have at least ${xe} properties.`}),Ae!==void 0&&G.length>Ae&&L.push({instanceLocation:a,keyword:"maxProperties",keywordLocation:`${s}/maxProperties`,error:`Instance does not have at least ${Ae} properties.`}),Ze!==void 0){let q=`${s}/propertyNames`;for(let U in e){let Q=`${a}/${Ot(U)}`,X=be(U,Ze,n,o,r,i,Q,q);X.valid||L.push({instanceLocation:a,keyword:"propertyNames",keywordLocation:q,error:`Property name "${U}" does not match schema.`},...X.errors)}}if(Xe!==void 0){let q=`${s}/dependantRequired`;for(let U in Xe)if(U in e){let Q=Xe[U];for(let X of Q)X in e||L.push({instanceLocation:a,keyword:"dependentRequired",keywordLocation:q,error:`Instance has "${U}" but does not have "${X}".`})}}if(gt!==void 0)for(let q in gt){let U=`${s}/dependentSchemas`;if(q in e){let Q=be(e,gt[q],n,o,r,i,a,`${U}/${Ot(q)}`,c);Q.valid||L.push({instanceLocation:a,keyword:"dependentSchemas",keywordLocation:U,error:`Instance has "${q}" but does not match dependant schema.`},...Q.errors)}}if(Nt!==void 0){let q=`${s}/dependencies`;for(let U in Nt)if(U in e){let Q=Nt[U];if(Array.isArray(Q))for(let X of Q)X in e||L.push({instanceLocation:a,keyword:"dependencies",keywordLocation:q,error:`Instance has "${U}" but does not have "${X}".`});else{let X=be(e,Q,n,o,r,i,a,`${q}/${Ot(U)}`);X.valid||L.push({instanceLocation:a,keyword:"dependencies",keywordLocation:q,error:`Instance has "${U}" but does not match dependant schema.`},...X.errors)}}}let J=Object.create(null),ae=!1;if(ve!==void 0){let q=`${s}/properties`;for(let U in ve){if(!(U in e))continue;let Q=`${a}/${Ot(U)}`,X=be(e[U],ve[U],n,o,r,i,Q,`${q}/${Ot(U)}`);if(X.valid)c[U]=J[U]=!0;else if(ae=r,L.push({instanceLocation:a,keyword:"properties",keywordLocation:q,error:`Property "${U}" does not match schema.`},...X.errors),ae)break}}if(!ae&&ye!==void 0){let q=`${s}/patternProperties`;for(let U in ye){let Q=new RegExp(U,"u"),X=ye[U];for(let Te in e){if(!Q.test(Te))continue;let Br=`${a}/${Ot(Te)}`,Mt=be(e[Te],X,n,o,r,i,Br,`${q}/${Ot(U)}`);Mt.valid?c[Te]=J[Te]=!0:(ae=r,L.push({instanceLocation:a,keyword:"patternProperties",keywordLocation:q,error:`Property "${Te}" matches pattern "${U}" but does not match associated schema.`},...Mt.errors))}}}if(!ae&&ce!==void 0){let q=`${s}/additionalProperties`;for(let U in e){if(J[U])continue;let Q=`${a}/${Ot(U)}`,X=be(e[U],ce,n,o,r,i,Q,q);X.valid?c[U]=!0:(ae=r,L.push({instanceLocation:a,keyword:"additionalProperties",keywordLocation:q,error:`Property "${U}" does not match additional properties schema.`},...X.errors))}}else if(!ae&&Ie!==void 0){let q=`${s}/unevaluatedProperties`;for(let U in e)if(!c[U]){let Q=`${a}/${Ot(U)}`,X=be(e[U],Ie,n,o,r,i,Q,q);X.valid?c[U]=!0:L.push({instanceLocation:a,keyword:"unevaluatedProperties",keywordLocation:q,error:`Property "${U}" does not match unevaluated properties schema.`},...X.errors)}}}else if(u==="array"){kt!==void 0&&e.length>kt&&L.push({instanceLocation:a,keyword:"maxItems",keywordLocation:`${s}/maxItems`,error:`Array has too many items (${e.length} > ${kt}).`}),Je!==void 0&&e.length<Je&&L.push({instanceLocation:a,keyword:"minItems",keywordLocation:`${s}/minItems`,error:`Array has too few items (${e.length} < ${Je}).`});let G=e.length,J=0,ae=!1;if(ct!==void 0){let q=`${s}/prefixItems`,U=Math.min(ct.length,G);for(;J<U;J++){let Q=be(e[J],ct[J],n,o,r,i,`${a}/${J}`,`${q}/${J}`);if(c[J]=!0,!Q.valid&&(ae=r,L.push({instanceLocation:a,keyword:"prefixItems",keywordLocation:q,error:"Items did not match schema."},...Q.errors),ae))break}}if(Fe!==void 0){let q=`${s}/items`;if(Array.isArray(Fe)){let U=Math.min(Fe.length,G);for(;J<U;J++){let Q=be(e[J],Fe[J],n,o,r,i,`${a}/${J}`,`${q}/${J}`);if(c[J]=!0,!Q.valid&&(ae=r,L.push({instanceLocation:a,keyword:"items",keywordLocation:q,error:"Items did not match schema."},...Q.errors),ae))break}}else for(;J<G;J++){let U=be(e[J],Fe,n,o,r,i,`${a}/${J}`,q);if(c[J]=!0,!U.valid&&(ae=r,L.push({instanceLocation:a,keyword:"items",keywordLocation:q,error:"Items did not match schema."},...U.errors),ae))break}if(!ae&&Wt!==void 0){let U=`${s}/additionalItems`;for(;J<G;J++){let Q=be(e[J],Wt,n,o,r,i,`${a}/${J}`,U);c[J]=!0,Q.valid||(ae=r,L.push({instanceLocation:a,keyword:"additionalItems",keywordLocation:U,error:"Items did not match additional items schema."},...Q.errors))}}}if(jt!==void 0)if(G===0&&Ue===void 0)L.push({instanceLocation:a,keyword:"contains",keywordLocation:`${s}/contains`,error:"Array is empty. It must contain at least one item matching the schema."});else if(Ue!==void 0&&G<Ue)L.push({instanceLocation:a,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array has less items (${G}) than minContains (${Ue}).`});else{let q=`${s}/contains`,U=L.length,Q=0;for(let X=0;X<G;X++){let Te=be(e[X],jt,n,o,r,i,`${a}/${X}`,q);Te.valid?(c[X]=!0,Q++):L.push(...Te.errors)}Q>=(Ue||0)&&(L.length=U),Ue===void 0&&Ke===void 0&&Q===0?L.splice(U,0,{instanceLocation:a,keyword:"contains",keywordLocation:q,error:"Array does not contain item matching schema."}):Ue!==void 0&&Q<Ue?L.push({instanceLocation:a,keyword:"minContains",keywordLocation:`${s}/minContains`,error:`Array must contain at least ${Ue} items matching schema. Only ${Q} items were found.`}):Ke!==void 0&&Q>Ke&&L.push({instanceLocation:a,keyword:"maxContains",keywordLocation:`${s}/maxContains`,error:`Array may contain at most ${Ke} items matching schema. ${Q} items were found.`})}if(!ae&&Xt!==void 0){let q=`${s}/unevaluatedItems`;for(;J<G;J++){if(c[J])continue;let U=be(e[J],Xt,n,o,r,i,`${a}/${J}`,q);c[J]=!0,U.valid||L.push({instanceLocation:a,keyword:"unevaluatedItems",keywordLocation:q,error:"Items did not match unevaluated items schema."},...U.errors)}}if(Kr)for(let q=0;q<G;q++){let U=e[q],Q=typeof U=="object"&&U!==null;for(let X=0;X<G;X++){if(q===X)continue;let Te=e[X];(U===Te||Q&&typeof Te=="object"&&Te!==null&&Ka(U,Te))&&(L.push({instanceLocation:a,keyword:"uniqueItems",keywordLocation:`${s}/uniqueItems`,error:`Duplicate items at indexes ${q} and ${X}.`}),q=Number.MAX_SAFE_INTEGER,X=Number.MAX_SAFE_INTEGER)}}}else if(u==="number"){if(n==="4"?(lt!==void 0&&(Qe===!0&&e<=lt||e<lt)&&L.push({instanceLocation:a,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${Qe?"or equal to ":""} ${lt}.`}),ut!==void 0&&(vt===!0&&e>=ut||e>ut)&&L.push({instanceLocation:a,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${vt?"or equal to ":""} ${ut}.`})):(lt!==void 0&&e<lt&&L.push({instanceLocation:a,keyword:"minimum",keywordLocation:`${s}/minimum`,error:`${e} is less than ${lt}.`}),ut!==void 0&&e>ut&&L.push({instanceLocation:a,keyword:"maximum",keywordLocation:`${s}/maximum`,error:`${e} is greater than ${ut}.`}),Qe!==void 0&&e<=Qe&&L.push({instanceLocation:a,keyword:"exclusiveMinimum",keywordLocation:`${s}/exclusiveMinimum`,error:`${e} is less than ${Qe}.`}),vt!==void 0&&e>=vt&&L.push({instanceLocation:a,keyword:"exclusiveMaximum",keywordLocation:`${s}/exclusiveMaximum`,error:`${e} is greater than or equal to ${vt}.`})),_t!==void 0){let G=e%_t;Math.abs(0-G)>=11920929e-14&&Math.abs(_t-G)>=11920929e-14&&L.push({instanceLocation:a,keyword:"multipleOf",keywordLocation:`${s}/multipleOf`,error:`${e} is not a multiple of ${_t}.`})}}else if(u==="string"){let G=At===void 0&&Ut===void 0?0:m0(e);At!==void 0&&G<At&&L.push({instanceLocation:a,keyword:"minLength",keywordLocation:`${s}/minLength`,error:`String is too short (${G} < ${At}).`}),Ut!==void 0&&G>Ut&&L.push({instanceLocation:a,keyword:"maxLength",keywordLocation:`${s}/maxLength`,error:`String is too long (${G} > ${Ut}).`}),mr!==void 0&&!new RegExp(mr,"u").test(e)&&L.push({instanceLocation:a,keyword:"pattern",keywordLocation:`${s}/pattern`,error:"String does not match pattern."}),H!==void 0&&Sz[H]&&!Sz[H](e)&&L.push({instanceLocation:a,keyword:"format",keywordLocation:`${s}/format`,error:`String does not match format "${H}".`})}return{valid:L.length===0,errors:L}}var p0=class{schema;draft;shortCircuit;lookup;constructor(e,t="2019-09",n=!0){this.schema=e,this.draft=t,this.shortCircuit=n,this.lookup=In(e)}validate(e){return be(e,this.schema,this.draft,this.lookup,this.shortCircuit)}addSchema(e,t){t&&(e={...e,$id:t}),In(e,this.lookup)}},Sd=class{shortcircuit;draft;constructor(e){this.shortcircuit=e?.shortcircuit??!0,this.draft=e?.draft}_draftFor(e){let t=V_(e,"pass an explicit { draft } to CfWorkerJsonSchemaValidator to validate other dialects.");return t==="draft-7"?"7":t}getValidator(e){let t=new p0(e,this.draft??this._draftFor(e),this.shortcircuit);return n=>{let o=t.validate(n);return o.valid?{valid:!0,data:n,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:o.errors.map(r=>`${r.instanceLocation}: ${r.error}`).join("; ")}}}};i_();var Cz=Symbol.for("mcp.completable");function s_(e){return!!e&&typeof e=="object"&&Cz in e}function h0(e){return e[Cz]?.complete}var Ba=15e3,g0=2**31-1;function $d(e,t){if(!Number.isFinite(e)||e<1)return;let n=setInterval(t,Math.min(e,g0));return n.unref?.(),n}var Nz=class{_listeners=new Set;constructor(e){this.onerror=e}publish(e){for(let t of this._listeners)try{t(e)}catch(n){this.onerror?.(n instanceof Error?n:new Error(String(n)))}}subscribe(e){this._listeners.add(e);let t=!0;return()=>{t&&(t=!1,this._listeners.delete(e))}}get listenerCount(){return this._listeners.size}};function jz(e){return{toolsChanged:()=>e.publish({kind:"tools_list_changed"}),promptsChanged:()=>e.publish({kind:"prompts_list_changed"}),resourcesChanged:()=>e.publish({kind:"resources_list_changed"}),resourceUpdated:t=>e.publish({kind:"resource_updated",uri:t})}}function v0(e,t){switch(t.kind){case"tools_list_changed":return e.toolsListChanged===!0;case"prompts_list_changed":return e.promptsListChanged===!0;case"resources_list_changed":return e.resourcesListChanged===!0;case"resource_updated":return e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.includes(t.uri)}}function _0(e,t){let n={},o=r=>t===void 0||r===!0;return e.toolsListChanged===!0&&o(t?.tools?.listChanged)&&(n.toolsListChanged=!0),e.promptsListChanged===!0&&o(t?.prompts?.listChanged)&&(n.promptsListChanged=!0),e.resourcesListChanged===!0&&o(t?.resources?.listChanged)&&(n.resourcesListChanged=!0),e.resourceSubscriptions!==void 0&&e.resourceSubscriptions.length>0&&o(t?.resources?.subscribe)&&(n.resourceSubscriptions=[...e.resourceSubscriptions]),n}function y0(e){switch(e.kind){case"tools_list_changed":return{method:"notifications/tools/list_changed"};case"prompts_list_changed":return{method:"notifications/prompts/list_changed"};case"resources_list_changed":return{method:"notifications/resources/list_changed"};case"resource_updated":return{method:"notifications/resources/updated",params:{uri:e.uri}}}}var c_=1024;function zz(e,t,n){return Response.json({jsonrpc:"2.0",error:{code:t,message:n},id:e},{status:200})}function Rz(e,t){return{method:e.method,params:{...e.params,_meta:{...e.params?._meta,[bn]:t}}}}function S0(e){let t=Vr(Za).validateRequest("subscriptions/listen",e);return t.ok?t.value.params?.notifications:void 0}function Az(e){let{bus:t,onerror:n}=e,o=e.maxSubscriptions??c_,r=e.keepAliveMs??Ba,i=new Set;function a(s,c,l,u){if(i.size>=o)return n?.(new Error(`subscriptions/listen refused: subscription limit reached (${o})`)),zz(s.id,-32603,"Subscription limit reached");let m=S0(s);if(m===void 0)return zz(s.id,-32602,"Invalid params: \'notifications\' is required and must be a valid SubscriptionFilter");let p=_0(m,l),f=s.id,h=new TextEncoder,S,y=!1,w,T,E,K=oe=>{if(!y)try{S.enqueue(h.encode(oe))}catch(H){n?.(H instanceof Error?H:new Error(String(H)))}},Z=(oe,H)=>{K(`event: message\ndata: ${JSON.stringify({jsonrpc:"2.0",method:oe,params:H})}\n\n`)},N=oe=>{if(!y){oe&&K(`event: message\ndata: ${JSON.stringify({jsonrpc:"2.0",id:f,result:{resultType:"complete",_meta:{[bn]:f,[Jt]:u}}})}\n\n`),y=!0;try{w?.()}catch(H){n?.(H instanceof Error?H:new Error(String(H)))}T!==void 0&&clearInterval(T),E?.(),i.delete(N);try{S.close()}catch{}}},re=new ReadableStream({start(oe){S=oe;let H=Rz({method:"notifications/subscriptions/acknowledged",params:{notifications:p}},f);if(Z(H.method,H.params),Object.keys(p).length===0){N(!0);return}w=t.subscribe(ve=>{if(y||!v0(p,ve))return;let ye=Rz(y0(ve),f);Z(ye.method,ye.params)}),T=$d(r,()=>K(`: keepalive\n\n`)),i.add(N)},cancel(){N(!1)}});if(c!==void 0)if(c.aborted)N(!1);else{let oe=()=>N(!1);c.addEventListener("abort",oe,{once:!0}),E=()=>c.removeEventListener("abort",oe)}return new Response(re,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}})}return{serve:a,closeAll(){for(let s of i)s(!0)},get openCount(){return i.size}}}function bd(e){return e.replaceAll(/[\\\\"]/g,String.raw`\\$&`).replaceAll(/[^\\u0020-\\u007E]/g," ")}function kz(e,t,n,o){let r=`Bearer error="${bd(e)}", error_description="${bd(t)}"`;return n.length>0&&(r+=`, scope="${bd(n.join(" "))}"`),o&&(r+=`, resource_metadata="${bd(o)}"`),r}function Uz(e,t){let{requiredScopes:n=[],resourceMetadataUrl:o}=t??{};if(!(e instanceof La)){let r=new La(kn.ServerError,"Internal Server Error");return Response.json(r.toResponseObject(),{status:500})}switch(e.code){case kn.InvalidToken:{let r=kz(e.code,e.message,n,o);return Response.json(e.toResponseObject(),{status:401,headers:{"WWW-Authenticate":r}})}case kn.InsufficientScope:{let r=kz(e.code,e.message,n,o);return Response.json(e.toResponseObject(),{status:403,headers:{"WWW-Authenticate":r}})}case kn.ServerError:return Response.json(e.toResponseObject(),{status:500});default:return Response.json(e.toResponseObject(),{status:400})}}function Dz(e){let t=new URL(e);return t.pathname=b0(e),t.hash="",t.href}function b0(e){let t=$0(e.pathname);return`/.well-known/oauth-protected-resource${t==="/"?"":t}`}function $0(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function z0(e){return typeof e=="object"&&e!==null&&"setScopeChallengeResolver"in e&&typeof e.setScopeChallengeResolver=="function"}function R0(e,t){if(typeof e!="string"||!/^[\\u0021\\u0023-\\u005B\\u005D-\\u007E]+$/.test(e))throw new TypeError(`${t} must satisfy the OAuth scope-token grammar`)}function k0(e){if(e===null||typeof e!="object"||!Array.isArray(e.scopes)||e.scopes.length===0)throw new TypeError("scope challenge must contain at least one scope");for(let[t,n]of e.scopes.entries())R0(n,`scope challenge scopes[${t}]`);if(e.errorDescription!==void 0&&typeof e.errorDescription!="string")throw new TypeError("scope challenge errorDescription must be a string");if(e.errorDescription!==void 0&&!/^[\\u0020-\\u0021\\u0023-\\u005B\\u005D-\\u007E]+$/.test(e.errorDescription))throw new TypeError("scope challenge errorDescription must satisfy the RFC 6750 error-description grammar");return e}async function l_(e,t,n){for(let o of e){let r=await n({request:o,...t!==void 0&&{authInfo:t}});if(r!==void 0)return k0(r)}}function u_(e){if(e?.resourceMetadataUrl!==void 0)return e.resourceMetadataUrl;if(e?.resource?.protocol==="https:"||e?.resource?.protocol==="http:")return Dz(e.resource)}function d_(e,t){return Uz(new La(kn.InsufficientScope,e.errorDescription??"Insufficient scope"),{requiredScopes:[...e.scopes],resourceMetadataUrl:t})}var w0=8,I0=6e5;function T0(e){if(e?.maxRounds!==void 0&&(!Number.isInteger(e.maxRounds)||e.maxRounds<1))throw new RangeError(`inputRequired.maxRounds must be a positive integer (got ${e.maxRounds})`);if(e?.roundTimeoutMs!==void 0&&(!Number.isFinite(e.roundTimeoutMs)||e.roundTimeoutMs<=0))throw new RangeError(`inputRequired.roundTimeoutMs must be a positive number (got ${e.roundTimeoutMs})`);return{maxRounds:e?.maxRounds??w0,roundTimeoutMs:e?.roundTimeoutMs??I0,legacyShim:e?.legacyShim??!0}}function Lz(e,t,n){if(n===null||typeof n!="object"||typeof n.method!="string")throw new V(C.InternalError,`Handler for ${e} returned an invalid input request \'${t}\': each inputRequests entry must be an embedded elicitation/create, sampling/createMessage, or roots/list request`);let o=n,r=U$(o);if(r===void 0)throw new V(C.InternalError,`Handler for ${e} returned an input request \'${t}\' of kind \'${o.method}\', which is not an embedded request the 2026-07-28 revision defines`);return{embedded:o,required:r}}function x0(){let e=globalThis.crypto;if(e?.randomUUID!==void 0)return e.randomUUID();let t=new Uint8Array(16);e.getRandomValues(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=[...t].map(o=>o.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}function a_(e,t){if(e==="tools/call")return{content:[{type:"text",text:t}],isError:!0};throw new V(C.InternalError,t)}var E0=class{constructor(e){this._host=e}async fulfill(e,t,n,o,r){let{maxRounds:i,roundTimeoutMs:a}=this._host,s=o.mcpReq.signal,c=r,l=0;for(;;){if(l+=1,l>i)return a_(e,dz(e,i));let u=c.inputRequests,m=u!=null&&Object.keys(u).length>0,p=typeof c.requestState=="string"?c.requestState:void 0;if(!m&&p===void 0)throw new V(C.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);let f;if(m){let y=this._host.resolvedClientCapabilities(o),w=[];for(let[E,K]of Object.entries(u)){let{embedded:Z,required:N}=Lz(e,E,K);if(Z.method!=="roots/list"&&Z.params===void 0)throw new V(C.InternalError,`Handler for ${e} returned an input request \'${E}\' of kind \'${Z.method}\' without params`);if(Ma(N,y)!==void 0)return a_(e,`Cannot request input \'${E}\' (${Z.method}): the client on this 2025-era connection did not declare the required capability${y===void 0?" (no client capabilities are available on this connection \\u2014 per-request legacy serving cannot receive server-to-client requests)":""}`);w.push([E,Z])}let T=pz(s);try{let E={relatedRequestId:o.mcpReq.id,timeout:a,resetTimeoutOnProgress:!0,onprogress:()=>{},signal:T.signal},K=await Promise.all(w.map(async([Z,N])=>{try{return[Z,await this._dispatchLeg(N,E)]}catch(re){throw T.abort(re),re}}));f=Object.fromEntries(K)}catch(E){if(s.aborted)throw E;return a_(e,`Fulfilling input required by \'${e}\' failed: ${E instanceof Error?E.message:String(E)}`)}finally{T.dispose()}}else await mz(uz,s);let h={...o,mcpReq:{...o.mcpReq,inputResponses:f,droppedInputResponseKeys:void 0,requestState:Fa(p)}};if(p!==void 0){let y=await this._host.verifyRequestState(p,h,e);y!==void 0&&(h=Qv(h,y))}let S=await t(n,h);if(!lr(S))return S;c=S}}async _dispatchLeg(e,t){switch(e.method){case"elicitation/create":{let n=e.params;return n.mode==="url"&&n.elicitationId===void 0&&(n={...n,elicitationId:x0()}),await this._host.sendElicitation(n,t)}case"sampling/createMessage":return await this._host.sendSampling(e.params,t);case"roots/list":return await this._host.listRoots(e.params,t)}}},P0=new Set(["tools/call","prompts/get","resources/read"]),Mz,qz,Vz;function Zz(e,t){Mz(e,t)}function Fz(e,t){qz(e,t)}function Kz(e){return Vz(e)}var Jz=class extends e_{_clientCapabilities;_clientVersion;static{Mz=(e,t)=>{t.clientCapabilities!==void 0&&(e._clientCapabilities=t.clientCapabilities),t.clientInfo!==void 0&&(e._clientVersion=t.clientInfo)},qz=(e,t)=>{let n=t.filter(o=>!e._supportedProtocolVersions.includes(o));n.length>0&&(e._supportedProtocolVersions=[...e._supportedProtocolVersions,...n]),e.setRequestHandler("server/discover",()=>e._ondiscover())},Vz=e=>e._serverInfo}_capabilities;_instructions;_jsonSchemaValidator;_cacheHints;_requestStateVerify;_inputRequiredServing;_legacyShim;_legacyInputRequiredShim(){return this._legacyShim??=new E0({maxRounds:this._inputRequiredServing.maxRounds,roundTimeoutMs:this._inputRequiredServing.roundTimeoutMs,resolvedClientCapabilities:e=>this._inputRequestCapabilityView(e),verifyRequestState:(e,t,n)=>this._verifyRequestState(e,t,n),sendElicitation:(e,t)=>this._sendElicitationLeg(e,t,{validateAcceptedContent:!1}),sendSampling:(e,t)=>this.createMessage(e,t),listRoots:(e,t)=>this.listRoots(e,t)})}oninitialized;constructor(e,t){if(super(t),this._serverInfo=e,this._capabilities=t?.capabilities?{...t.capabilities}:{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new Sd,this._requestStateVerify=t?.requestState?.verify,this._inputRequiredServing=T0(t?.inputRequired),t?.cacheHints!==void 0){for(let[n,o]of Object.entries(t.cacheHints))o!==void 0&&Vv(o,`cacheHints[\'${n}\']`);this._cacheHints=t.cacheHints}this.setRequestHandler("initialize",n=>this._oninitialize(n)),this.setNotificationHandler("notifications/initialized",()=>this.oninitialized?.()),Av(this._supportedProtocolVersions).length>0&&this.setRequestHandler("server/discover",()=>this._ondiscover()),this._capabilities.logging&&this._registerLoggingHandler()}async connect(e){if(this.transport!==void 0)throw new ne(se.AlreadyConnected,"Use a separate Server instance per connection: this instance is already connected to a transport. To connect it to a new transport, call close() first.");await super.connect(e)}_registerLoggingHandler(){this.setRequestHandler("logging/setLevel",async(e,t)=>{let n=t.sessionId||t.http?.req?.headers.get("mcp-session-id")||void 0,{level:o}=e.params,r=_d(Mr,o);return r.success&&this._loggingLevels.set(n,r.data),{}})}buildContext(e,t){let n=e.http||t?.request||t?.closeSSEStream||t?.closeStandaloneSSEStream;return{...e,mcpReq:{...e.mcpReq,log:(o,r,i)=>{if(!this._capabilities.logging)return Promise.resolve();let a;if(this._servedModernEra()){if(a=e.mcpReq.envelope?.[Nr],a===void 0)return Promise.resolve()}else a=this._loggingLevels.get(e.sessionId)??this._loggingLevels.get(void 0);return a!==void 0&&this.LOG_LEVEL_SEVERITY.get(o)<this.LOG_LEVEL_SEVERITY.get(a)?Promise.resolve():e.mcpReq.notify({method:"notifications/message",params:{level:o,data:r,logger:i}})},elicitInput:(o,r)=>this.elicitInput(o,r),requestSampling:(o,r)=>this.createMessage(o,r)},http:n?{...e.http,req:t?.request,closeSSE:t?.closeSSEStream,closeStandaloneSSE:t?.closeStandaloneSSEStream}:void 0}}_loggingLevels=new Map;LOG_LEVEL_SEVERITY=new Map(Mr.options.map((e,t)=>[e,t]));isMessageIgnored=(e,t)=>{let n=this._loggingLevels.get(t);return n?this.LOG_LEVEL_SEVERITY.get(e)<this.LOG_LEVEL_SEVERITY.get(n):!1};registerCapabilities(e){if(this.transport)throw new ne(se.AlreadyConnected,"Cannot register capabilities after connecting to transport");let t=!!this._capabilities.logging;this._capabilities=t_(this._capabilities,e),!t&&this._capabilities.logging&&this._registerLoggingHandler()}_wrapHandler(e,t){if(e!=="tools/call"){let n=this._cacheHints?.[e],o=P0.has(e);return n===void 0&&!o?async(r,i)=>{let a=await t(r,i);if(lr(a))throw new V(C.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}:async(r,i)=>{let a=o?await this._invokeInputRequiredCapableHandler(e,t,r,i):await t(r,i);if(lr(a)){if(!o)throw new V(C.InternalError,`Handler for ${e} returned an input-required result, but only tools/call, prompts/get and resources/read support input_required (protocol revision 2026-07-28)`);return a}return n===void 0?a:md(a,n)}}return async(n,o)=>{let r=Vr(this._negotiatedProtocolVersion),i=r.validateRequest("tools/call",n);if(!i.ok)throw new V(i.reason==="not-in-era"?C.InternalError:C.InvalidParams,i.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call request: ${i.message}`);let a=await this._invokeInputRequiredCapableHandler("tools/call",t,n,o);if(lr(a))return a;let s=Uv(a),c=r.validateResult("tools/call",s);if(!c.ok)throw new V(c.reason==="not-in-era"?C.InternalError:C.InvalidParams,c.reason==="not-in-era"?"No wire schema for tools/call in the resolved era":`Invalid tools/call result: ${c.message}`);return c.value}}_servedModernEra(){return this._negotiatedProtocolVersion!==void 0&&sr(this._negotiatedProtocolVersion)}async _invokeInputRequiredCapableHandler(e,t,n,o){let r=this._servedModernEra(),i=o.mcpReq.requestState();if(i!==void 0&&typeof i!="string")throw new V(C.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"});let a=o;if(typeof i=="string"){let m=await this._verifyRequestState(i,o,e);m!==void 0&&(a=Qv(o,m))}let s;try{s=await t(n,a)}catch(m){throw m instanceof V&&m.code===C.UrlElicitationRequired&&r?new V(C.InternalError,`URL elicitation cannot be signalled by throwing UrlElicitationRequiredError on protocol revision ${this._negotiatedProtocolVersion}: return inputRequired({ inputRequests: { \\u2026: inputRequired.elicitUrl(...) } }) from the handler instead. The urlElicitationRequired error (-32042) of earlier revisions is not available on this revision.`):m}if(!lr(s))return s;if(!r){if(!this._inputRequiredServing.legacyShim)throw new V(C.InternalError,`Handler for ${e} returned an input-required result, but this request is served on protocol revision ${this._negotiatedProtocolVersion??yn}, which has no input_required vocabulary`);return await this._legacyInputRequiredShim().fulfill(e,t,n,a,s)}let c=s.inputRequests,l=c!=null&&Object.keys(c).length>0,u=typeof s.requestState=="string";if(!l&&!u)throw new V(C.InternalError,`Handler for ${e} returned an input-required result with neither inputRequests nor requestState (every InputRequiredResult must include at least one of the two)`);if(l){let m=this._inputRequestCapabilityView(o);for(let[p,f]of Object.entries(c)){let{embedded:h,required:S}=Lz(e,p,f),y=Ma(S,m);if(y!==void 0)throw new Va({requiredCapabilities:y},`Cannot request input \'${p}\' (${h.method}): the request\'s client capabilities do not declare the required capability`)}}return s}async _verifyRequestState(e,t,n){if(this._requestStateVerify!==void 0)try{return await this._requestStateVerify(e,t)}catch(o){throw this.onerror?.(new Error(`requestState verification rejected ${n}: ${o instanceof Error?o.message:String(o)}`)),new V(C.InvalidParams,"Invalid or expired requestState",{reason:"invalid_request_state"})}}_inputRequestCapabilityView(e){return this._servedModernEra()?e.mcpReq.envelope?.[Bt]:this._clientCapabilities}_assertPushApiInServedEra(e){if(this._servedModernEra())throw new ne(se.MethodNotSupportedByProtocolVersion,`Server-to-client requests are not available on protocol revision ${this._negotiatedProtocolVersion}: \'${e}\' cannot be sent while serving a request on that revision. Return inputRequired({ ... }) from the handler instead \\u2014 the client fulfils the embedded requests and retries the original request (multi round-trip requests).`,{method:e,era:"2026-07-28"})}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new ne(se.CapabilityNotSupported,`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new ne(se.CapabilityNotSupported,`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new ne(se.CapabilityNotSupported,`Client does not support listing roots (required for ${e})`);break;case"ping":break}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new ne(se.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new ne(se.CapabilityNotSupported,`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new ne(se.CapabilityNotSupported,`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new ne(se.CapabilityNotSupported,`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new ne(se.CapabilityNotSupported,`Client does not support URL elicitation (required for ${e})`);break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(e){switch(e){case"completion/complete":if(!this._capabilities.completions)throw new ne(se.CapabilityNotSupported,`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new ne(se.CapabilityNotSupported,`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new ne(se.CapabilityNotSupported,`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new ne(se.CapabilityNotSupported,`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new ne(se.CapabilityNotSupported,`Server does not support tools (required for ${e})`);break;case"ping":case"initialize":break}}async _oninitialize(e){let t=e.params.protocolVersion;this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo;let n=L$(this._supportedProtocolVersions),o=n.includes(t)?t:n[0]??yn;return this._negotiatedProtocolVersion=o,this.transport?.setProtocolVersion?.(o),{protocolVersion:o,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}_ondiscover(){return{supportedVersions:Av(this._supportedProtocolVersions),capabilities:O0(this.getCapabilities()),...this._instructions&&{instructions:this._instructions}}}_outboundServerInfo(){return this._serverInfo}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getNegotiatedProtocolVersion(){return this._negotiatedProtocolVersion}projectCallToolResult(e,t){return this._wireCodec().projectCallToolResult(e,t)}getCapabilities(){return this._capabilities}async ping(){return this._assertPushApiInServedEra("ping"),this.request({method:"ping"})}async createMessage(e,t){if(this._assertPushApiInServedEra("sampling/createMessage"),(e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new ne(se.CapabilityNotSupported,"Client does not support sampling tools capability.");if(e.messages.length>0){let i=e.messages.at(-1),a=Array.isArray(i.content)?i.content:[i.content],s=a.some(m=>m.type==="tool_result"),c=e.messages.length>1?e.messages.at(-2):void 0,l=c?Array.isArray(c.content)?c.content:[c.content]:[],u=l.some(m=>m.type==="tool_use");if(s){if(a.some(m=>m.type!=="tool_result"))throw new V(C.InvalidParams,"The last message must contain only tool_result content if any is present");if(!u)throw new V(C.InvalidParams,"tool_result blocks are not matching any tool_use from the previous message")}if(u){let m=new Set(l.filter(f=>f.type==="tool_use").map(f=>f.id)),p=new Set(a.filter(f=>f.type==="tool_result").map(f=>f.toolUseId));if(m.size!==p.size||![...m].every(f=>p.has(f)))throw new V(C.InvalidParams,"ids of tool_result blocks and tool_use blocks from previous message do not match")}}let n=!!(e.tools||e.toolChoice),o=await this.request({method:"sampling/createMessage",params:e},t),r=this._wireCodec().samplingResultVariant(n,o);if(!r.ok)throw new ne(se.InvalidResult,`Invalid sampling/createMessage result: ${r.reason==="invalid"?r.message:r.reason}`);return r.value}async elicitInput(e,t){switch(this._assertPushApiInServedEra("elicitation/create"),e.mode??"form"){case"url":if(!this._clientCapabilities?.elicitation?.url)throw new ne(se.CapabilityNotSupported,"Client does not support url elicitation.");break;case"form":if(!this._clientCapabilities?.elicitation?.form)throw new ne(se.CapabilityNotSupported,"Client does not support form elicitation.");break}return this._sendElicitationLeg(e,t)}async _sendElicitationLeg(e,t,n){let o=e.mode??"form",r=n?.validateAcceptedContent??!0;switch(o){case"url":{let i=e;return this.request({method:"elicitation/create",params:i},t)}case"form":{let i=e.mode==="form"?e:{...e,mode:"form"},a=await this.request({method:"elicitation/create",params:i},t);if(r&&a.action==="accept"&&a.content&&i.requestedSchema)try{let s=this._jsonSchemaValidator.getValidator(i.requestedSchema)(a.content);if(!s.valid)throw new V(C.InvalidParams,`Elicitation response content does not match requested schema: ${s.errorMessage}`)}catch(s){throw s instanceof V?s:new V(C.InternalError,`Error validating elicitation response: ${s instanceof Error?s.message:String(s)}`)}return a}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw new ne(se.CapabilityNotSupported,"Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},t)}async listRoots(e,t){return this._assertPushApiInServedEra("roots/list"),this.request({method:"roots/list",params:e},t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}};function O0(e){return{...e}}function C0(e,t){let n=0,o=[e];for(;o.length>0;){let r=o.pop();if(!(r===null||typeof r!="object"))if(Array.isArray(r))for(let i of r){if(++n>t)return n;i!==null&&typeof i=="object"&&o.push(i)}else for(let i in r){if(!Object.prototype.hasOwnProperty.call(r,i))continue;if(++n>t)return n;let a=r[i];a!==null&&typeof a=="object"&&o.push(a)}}return n}function N0(e){if(!(e===void 0||e===1/0)){if(typeof e!="number"||Number.isNaN(e)||e<1)throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(e)}`);return e}}var Lo=class{server;_maxToolInputElements;_registeredResources={};_registeredResourceTemplates={};_registeredTools={};_registeredPrompts={};_toolInputSchemaJson={};toolInputSchemaJson(e){let t=this._registeredTools[e];if(!(t===void 0||!t.enabled)){if(Object.hasOwn(this._toolInputSchemaJson,e))return this._toolInputSchemaJson[e];if(t.inputSchema===void 0)return Iz;try{let n=wn(t.inputSchema,"input");return this._toolInputSchemaJson[e]=n,n}catch{return}}}constructor(e,t){this.server=new Jz(e,t),this._maxToolInputElements=N0(t?.maxToolInputElements),t?.capabilities?.tools&&this.setToolRequestHandlers(),t?.capabilities?.resources&&this.setResourceRequestHandlers(),t?.capabilities?.prompts&&this.setPromptRequestHandlers()}async connect(e){return z0(e)&&e.setScopeChallengeResolver(t=>this.resolveScopeChallenge(t)),await this.server.connect(e)}async close(){await this.server.close()}resolveScopeChallenge=e=>{switch(e.request.method){case"tools/call":{let t=e.request.params?.name;if(typeof t!="string")return;let n=this._registeredTools[t];return n===void 0||!n.enabled?void 0:n.scopeChallenge?.(e)}case"resources/read":{let t=e.request.params?.uri;if(typeof t!="string")return;let n;try{n=new URL(t)}catch{return}let o=this._registeredResources[n.toString()];if(o!==void 0)return o.enabled?o.scopeChallenge?.(e):void 0;for(let r of Object.values(this._registeredResourceTemplates))if(r.resourceTemplate.uriTemplate.match(n.toString()))return r.enabled?r.scopeChallenge?.(e):void 0;return}case"prompts/get":{let t=e.request.params?.name;if(typeof t!="string")return;let n=this._registeredPrompts[t];return n===void 0||!n.enabled?void 0:n.scopeChallenge?.(e)}default:return}};_toolHandlersInitialized=!1;setToolRequestHandlers(){this._toolHandlersInitialized||(this.server.assertCanSetRequestHandler("tools/list"),this.server.assertCanSetRequestHandler("tools/call"),this.server.registerCapabilities({tools:{listChanged:this.server.getCapabilities().tools?.listChanged??!0}}),this.server.setRequestHandler("tools/list",()=>({tools:Object.entries(this._registeredTools).filter(([,e])=>e.enabled).map(([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?j0(e,t.inputSchema):Iz,annotations:t.annotations,icons:t.icons,execution:t.execution,_meta:t._meta};return t.outputSchema&&(n.outputSchema=wn(t.outputSchema,"output")),n})})),this.server.setRequestHandler("tools/call",async(e,t)=>{let n=this._registeredTools[e.params.name];if(!n)throw new V(C.InvalidParams,`Tool ${e.params.name} not found`);if(!n.enabled)throw new V(C.InvalidParams,`Tool ${e.params.name} disabled`);try{let o=await this.validateToolInput(n,e.params.arguments,e.params.name),r=await this.executeToolHandler(n,o,t);return await this.validateToolOutput(n,r,e.params.name),lr(r)?r:this.server.projectCallToolResult(r,n.outputSchemaJson)}catch(o){if(o instanceof V&&o.code===C.UrlElicitationRequired)throw o;return this.createToolError(o instanceof Error?o.message:String(o))}}),this._toolHandlersInitialized=!0)}createToolError(e){return{content:[{type:"text",text:e}],isError:!0}}async validateToolInput(e,t,n){if(this._maxToolInputElements!==void 0&&C0(t,this._maxToolInputElements)>this._maxToolInputElements)throw new V(C.InvalidParams,`Invalid arguments for tool ${n}: arguments contain more than the maximum of ${this._maxToolInputElements} elements`);if(!e.inputSchema)return;let o=await Rn(e.inputSchema,t??{});if(!o.success)throw new V(C.InvalidParams,`Input validation error: Invalid arguments for tool ${n}: ${o.error}`);return o.data}async validateToolOutput(e,t,n){if(!e.outputSchema||lr(t)||t.isError)return;if(t.structuredContent===void 0)throw new V(C.InvalidParams,`Output validation error: Tool ${n} has an output schema but no structured content was provided`);let o=await Rn(e.outputSchema,t.structuredContent);if(!o.success)throw new V(C.InvalidParams,`Output validation error: Invalid structured content for tool ${n}: ${o.error}`)}async executeToolHandler(e,t,n){return e.executor(t,n)}_completionHandlerInitialized=!1;setCompletionRequestHandler(){this._completionHandlerInitialized||(this.server.assertCanSetRequestHandler("completion/complete"),this.server.registerCapabilities({completions:{}}),this.server.setRequestHandler("completion/complete",async e=>{switch(e.params.ref.type){case"ref/prompt":return Hv(e),this.handlePromptCompletion(e,e.params.ref);case"ref/resource":return Yv(e),this.handleResourceCompletion(e,e.params.ref);default:throw new V(C.InvalidParams,`Invalid completion reference: ${e.params.ref}`)}}),this._completionHandlerInitialized=!0)}async handlePromptCompletion(e,t){let n=this._registeredPrompts[t.name];if(!n)throw new V(C.InvalidParams,`Prompt ${t.name} not found`);if(!n.enabled)throw new V(C.InvalidParams,`Prompt ${t.name} disabled`);if(!n.argsSchema)return Ja;let o=Oz(Pz(n.argsSchema)?.[e.params.argument.name]);if(!s_(o))return Ja;let r=h0(o);return r?Ez(await r(e.params.argument.value,e.params.context)):Ja}async handleResourceCompletion(e,t){let n=Object.values(this._registeredResourceTemplates).find(r=>r.resourceTemplate.uriTemplate.toString()===t.uri);if(!n){if(this._registeredResources[t.uri])return Ja;throw new V(C.InvalidParams,`Resource template ${e.params.ref.uri} not found`)}let o=n.resourceTemplate.completeCallback(e.params.argument.name);return o?Ez(await o(e.params.argument.value,e.params.context)):Ja}_resourceHandlersInitialized=!1;setResourceRequestHandlers(){this._resourceHandlersInitialized||(this.server.assertCanSetRequestHandler("resources/list"),this.server.assertCanSetRequestHandler("resources/templates/list"),this.server.assertCanSetRequestHandler("resources/read"),this.server.registerCapabilities({resources:{listChanged:this.server.getCapabilities().resources?.listChanged??!0}}),this.server.setRequestHandler("resources/list",async(e,t)=>{let n=Object.entries(this._registeredResources).filter(([r,i])=>i.enabled).map(([r,i])=>({uri:r,name:i.name,...i.metadata})),o=[];for(let r of Object.values(this._registeredResourceTemplates)){if(!r.resourceTemplate.listCallback)continue;let i=await r.resourceTemplate.listCallback(t);for(let a of i.resources)o.push({...r.metadata,...a})}return{resources:[...n,...o]}}),this.server.setRequestHandler("resources/templates/list",async()=>({resourceTemplates:Object.entries(this._registeredResourceTemplates).map(([e,t])=>({name:e,uriTemplate:t.resourceTemplate.uriTemplate.toString(),...t.metadata}))})),this.server.setRequestHandler("resources/read",async(e,t)=>{let n;try{n=new URL(e.params.uri)}catch{throw new V(C.InvalidParams,`Resource URI ${e.params.uri} is invalid`,{uri:e.params.uri,reason:"invalid_uri"})}let o=this._registeredResources[n.toString()];if(o){if(!o.enabled)throw new V(C.InvalidParams,`Resource ${n} disabled`);return md(await o.readCallback(n,t),o.cacheHint)}for(let r of Object.values(this._registeredResourceTemplates)){let i=r.resourceTemplate.uriTemplate.match(n.toString());if(i){if(!r.enabled)throw new V(C.InvalidParams,`Resource template ${r.resourceTemplate.uriTemplate} disabled`);return md(await r.readCallback(n,i,t),r.cacheHint)}}throw new pd(e.params.uri)}),this._resourceHandlersInitialized=!0)}_promptHandlersInitialized=!1;setPromptRequestHandlers(){this._promptHandlersInitialized||(this.server.assertCanSetRequestHandler("prompts/list"),this.server.assertCanSetRequestHandler("prompts/get"),this.server.registerCapabilities({prompts:{listChanged:this.server.getCapabilities().prompts?.listChanged??!0}}),this.server.setRequestHandler("prompts/list",()=>({prompts:Object.entries(this._registeredPrompts).filter(([,e])=>e.enabled).map(([e,t])=>({name:e,title:t.title,description:t.description,arguments:t.argsSchema?lz(t.argsSchema):void 0,icons:t.icons,_meta:t._meta}))})),this.server.setRequestHandler("prompts/get",async(e,t)=>{let n=this._registeredPrompts[e.params.name];if(!n)throw new V(C.InvalidParams,`Prompt ${e.params.name} not found`);if(!n.enabled)throw new V(C.InvalidParams,`Prompt ${e.params.name} disabled`);return n.handler(e.params.arguments,t)}),this._promptHandlersInitialized=!0)}registerResource(e,t,n,o){let{cacheHint:r,scopeChallenge:i,...a}=n,s=a;if(r!==void 0&&Vv(r,`resource ${e}`),typeof t=="string"){if(this._registeredResources[t])throw new Error(`Resource ${t} is already registered`);let c=this._createRegisteredResource(e,n.title,t,s,i,o);return r!==void 0&&(c.cacheHint=r),this.setResourceRequestHandlers(),this.sendResourceListChanged(),c}else{if(this._registeredResourceTemplates[e])throw new Error(`Resource template ${e} is already registered`);let c=this._createRegisteredResourceTemplate(e,n.title,t,s,i,o);return r!==void 0&&(c.cacheHint=r),this.setResourceRequestHandlers(),this.sendResourceListChanged(),c}}_createRegisteredResource(e,t,n,o,r,i){let a={name:e,title:t,metadata:o,readCallback:i,scopeChallenge:r,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({uri:null}),update:s=>{s.uri!==void 0&&s.uri!==n&&(delete this._registeredResources[n],s.uri&&(this._registeredResources[s.uri]=a)),s.name!==void 0&&(a.name=s.name),s.title!==void 0&&(a.title=s.title),s.metadata!==void 0&&(a.metadata=s.metadata),s.callback!==void 0&&(a.readCallback=s.callback),s.scopeChallenge!==void 0&&(a.scopeChallenge=s.scopeChallenge===null?void 0:s.scopeChallenge),s.enabled!==void 0&&(a.enabled=s.enabled),this.sendResourceListChanged()}};return this._registeredResources[n]=a,a}_createRegisteredResourceTemplate(e,t,n,o,r,i){let a={resourceTemplate:n,title:t,metadata:o,readCallback:i,scopeChallenge:r,enabled:!0,disable:()=>a.update({enabled:!1}),enable:()=>a.update({enabled:!0}),remove:()=>a.update({name:null}),update:c=>{c.name!==void 0&&c.name!==e&&(delete this._registeredResourceTemplates[e],c.name&&(this._registeredResourceTemplates[c.name]=a)),c.title!==void 0&&(a.title=c.title),c.template!==void 0&&(a.resourceTemplate=c.template),c.metadata!==void 0&&(a.metadata=c.metadata),c.callback!==void 0&&(a.readCallback=c.callback),c.scopeChallenge!==void 0&&(a.scopeChallenge=c.scopeChallenge===null?void 0:c.scopeChallenge),c.enabled!==void 0&&(a.enabled=c.enabled),this.sendResourceListChanged()}};this._registeredResourceTemplates[e]=a;let s=n.uriTemplate.variableNames;return Array.isArray(s)&&s.some(c=>!!n.completeCallback(c))&&this.setCompletionRequestHandler(),a}_createRegisteredPrompt(e,t,n,o,r,i,a,s){let c=o,l=r,u={title:t,description:n,argsSchema:o,icons:i,scopeChallenge:a,_meta:s,handler:xz(e,o,r),enabled:!0,disable:()=>u.update({enabled:!1}),enable:()=>u.update({enabled:!0}),remove:()=>u.update({name:null}),update:m=>{m.name!==void 0&&m.name!==e&&(delete this._registeredPrompts[e],m.name&&(this._registeredPrompts[m.name]=u)),m.title!==void 0&&(u.title=m.title),m.description!==void 0&&(u.description=m.description),m.icons!==void 0&&(u.icons=m.icons),m.scopeChallenge!==void 0&&(u.scopeChallenge=m.scopeChallenge===null?void 0:m.scopeChallenge),m._meta!==void 0&&(u._meta=m._meta);let p=!1;m.argsSchema!==void 0&&(u.argsSchema=m.argsSchema,c=m.argsSchema,p=!0),m.callback!==void 0&&(l=m.callback,p=!0),p&&(u.handler=xz(e,c,l)),m.enabled!==void 0&&(u.enabled=m.enabled),this.sendPromptListChanged()}};if(this._registeredPrompts[e]=u,o){let m=Pz(o);m&&Object.values(m).some(p=>s_(Oz(p)))&&this.setCompletionRequestHandler()}return u}_createRegisteredTool(e,t,n,o,r,i,a,s,c,l,u){o_(e);let m=u,p,f={title:t,description:n,inputSchema:o,outputSchema:r,get outputSchemaJson(){return p??=Tz(f.outputSchema)},set outputSchemaJson(h){p=h},annotations:i,icons:a,execution:s,scopeChallenge:c,_meta:l,handler:u,executor:wz(o,u),enabled:!0,disable:()=>f.update({enabled:!1}),enable:()=>f.update({enabled:!0}),remove:()=>f.update({name:null}),update:h=>{h.name!==void 0&&h.name!==e&&(typeof h.name=="string"&&o_(h.name),delete this._registeredTools[e],delete this._toolInputSchemaJson[e],h.name&&(delete this._toolInputSchemaJson[h.name],this._registeredTools[h.name]=f,e=h.name)),h.title!==void 0&&(f.title=h.title),h.description!==void 0&&(f.description=h.description);let S=!1;h.paramsSchema!==void 0&&(f.inputSchema=h.paramsSchema,delete this._toolInputSchemaJson[e],S=!0),h.callback!==void 0&&(f.handler=h.callback,m=h.callback,S=!0),S&&(f.executor=wz(f.inputSchema,m)),h.outputSchema!==void 0&&(f.outputSchema=h.outputSchema,f.outputSchemaJson=Tz(h.outputSchema)),h.annotations!==void 0&&(f.annotations=h.annotations),h.icons!==void 0&&(f.icons=h.icons),h.scopeChallenge!==void 0&&(f.scopeChallenge=h.scopeChallenge===null?void 0:h.scopeChallenge),h._meta!==void 0&&(f._meta=h._meta),h.enabled!==void 0&&(f.enabled=h.enabled),this.sendToolListChanged()}};return this._registeredTools[e]=f,this.setToolRequestHandlers(),this.sendToolListChanged(),f}registerTool(e,t,n){if(this._registeredTools[e])throw new Error(`Tool ${e} is already registered`);let{title:o,description:r,inputSchema:i,outputSchema:a,annotations:s,icons:c,scopeChallenge:l,_meta:u}=t;return this._createRegisteredTool(e,o,r,yd(i),yd(a),s,c,void 0,l,u,n)}registerPrompt(e,t,n){if(this._registeredPrompts[e])throw new Error(`Prompt ${e} is already registered`);let{title:o,description:r,argsSchema:i,icons:a,scopeChallenge:s,_meta:c}=t,l=this._createRegisteredPrompt(e,o,r,yd(i),n,a,s,c);return this.setPromptRequestHandlers(),this.sendPromptListChanged(),l}isConnected(){return this.server.transport!==void 0}async sendLoggingMessage(e,t){return this.server.sendLoggingMessage(e,t)}sendResourceListChanged(){this.isConnected()&&this.server.sendResourceListChanged()}sendToolListChanged(){this.isConnected()&&this.server.sendToolListChanged()}sendPromptListChanged(){this.isConnected()&&this.server.sendPromptListChanged()}};function wz(e,t){if(e){let o=t;return async(r,i)=>o(r,i)}let n=t;return async(o,r)=>n(r)}var Iz={type:"object",properties:{}};function j0(e,t){let n=wn(t,"input"),o=vd(n);return o.valid||console.warn(`[mcp-sdk] tool \'${e}\' carries an invalid x-mcp-header declaration and will be excluded by conforming Streamable HTTP clients: ${o.reason}`),n}function Tz(e){if(e!==void 0)try{return wn(e,"output")}catch{return}}function xz(e,t,n){if(t){let o=n;return async(r,i)=>{let a=await Rn(t,r??{});if(!a.success)throw new V(C.InvalidParams,`Invalid arguments for prompt ${e}: ${a.error}`);return o(a.data,i)}}else{let o=n;return async(r,i)=>o(i)}}function Ez(e){return{completion:{values:e.map(String).slice(0,100),total:e.length,hasMore:e.length>100}}}var Ja={completion:{values:[],hasMore:!1}};function Pz(e){let t=e;if(t.shape&&typeof t.shape=="object")return t.shape}function A0(e){return e?.type==="optional"}function Oz(e){return A0(e)?e.def?.innerType??e:e}var U0=class{onclose;onerror;onmessage;_classification;_responseMode;_started=!1;_used=!1;_closed=!1;_terminalDelivered=!1;_dispatchWindowOpen=!1;_requestId;_deferredResponse;_sse;_abortCleanup;_keepAliveMs;constructor(e){this._classification=e.classification,this._responseMode=e.responseMode??"auto",this._keepAliveMs=e.keepAliveMs??Ba}async start(){if(this._started)throw new Error("PerRequestHTTPServerTransport is already started");this._started=!0}async handleMessage(e,t){if(this._used)throw new Error("PerRequestHTTPServerTransport serves exactly one exchange; construct a new transport per request");if(!this._started||this.onmessage===void 0)throw new Error("PerRequestHTTPServerTransport is not connected: connect a server to this transport before handling a message");if(this._closed)throw new Error("PerRequestHTTPServerTransport is closed");this._used=!0;let n=t?.request?.signal;if(n?.aborted)throw await this.close(),new ne(se.ConnectionClosed,"The request was aborted before it could be handled");let o={classification:this._classification,...t?.request!==void 0&&{request:t.request},...t?.authInfo!==void 0&&{authInfo:t.authInfo}};if(Ht(e)){this._requestId=e.id;let r,i,a=new Promise((s,c)=>{r=s,i=c});if(this._deferredResponse={promise:a,resolve:r,reject:i,settled:!1},n!==void 0){let s=()=>{this.close()};n.addEventListener("abort",s,{once:!0}),this._abortCleanup=()=>n.removeEventListener("abort",s)}this._dispatchWindowOpen=!0;try{this.onmessage(e,o)}finally{this._dispatchWindowOpen=!1}return this._responseMode==="sse"&&!this._closed&&!this._deferredResponse.settled&&this.upgradeToSse(),a}return this.onmessage(e,o),new Response(null,{status:202})}async send(e,t){if(this._closed)return;let n=ar(e)||cr(e),o=n?e.id:t?.relatedRequestId;if(this._requestId===void 0||o===void 0||o!==this._requestId){n&&this.onerror?.(new Error(`Received a response for an unknown request id: ${String(e.id)}`));return}if(n){if(this._terminalDelivered)return;this._terminalDelivered=!0;let r=cr(e)?e.error.code:void 0,i=r!==void 0&&(this._dispatchWindowOpen||r===C.MissingRequiredClientCapability)?Gv[r]:void 0;if(i!==void 0&&this._sse===void 0){this.settleResponse(Response.json(e,{status:i,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>{this.close()});return}if(this._sse!==void 0||this._responseMode==="sse"){this._sse===void 0&&this.upgradeToSse(),this.writeMessageFrame(e),this.finalizeStream();return}this.settleResponse(Response.json(e,{status:200,headers:{"Content-Type":"application/json"}})),queueMicrotask(()=>{this.close()});return}this._responseMode!=="json"&&(this._sse===void 0&&this.upgradeToSse(),this.writeMessageFrame(e))}writeCommentFrame(e){if(this._closed||this._sse===void 0||this._sse.closed)return;let t=e.split(`\n`).map(n=>`: ${n}`).join(`\n`);this.writeFrame(`${t}\n\n`)}async close(){if(!this._closed){if(this._closed=!0,this._abortCleanup?.(),this._abortCleanup=void 0,this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),this._sse!==void 0&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}this._deferredResponse!==void 0&&!this._deferredResponse.settled&&(this._deferredResponse.settled=!0,this._deferredResponse.reject(new ne(se.ConnectionClosed,"Connection closed before a response was produced"))),this.onclose?.()}}settleResponse(e){this._deferredResponse===void 0||this._deferredResponse.settled||(this._deferredResponse.settled=!0,this._deferredResponse.resolve(e))}upgradeToSse(){let e,t=new ReadableStream({start:n=>{e=n},cancel:()=>{this.close()}});this._sse={controller:e,encoder:new TextEncoder,closed:!1},this._sse.keepAliveTimer=$d(this._keepAliveMs,()=>this.writeCommentFrame("keepalive")),this.settleResponse(new Response(t,{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"}}))}finalizeStream(){if(this._sse?.keepAliveTimer!==void 0&&clearInterval(this._sse.keepAliveTimer),this._sse!==void 0&&!this._sse.closed){this._sse.closed=!0;try{this._sse.controller.close()}catch{}}queueMicrotask(()=>{this.close()})}writeMessageFrame(e){this.writeFrame(`event: message\ndata: ${JSON.stringify(e)}\n\n`)}writeFrame(e){if(!(this._sse===void 0||this._sse.closed))try{this._sse.controller.enqueue(this._sse.encoder.encode(e))}catch(t){this.onerror?.(new Error(`Failed to write to the response stream: ${t}`))}}};async function D0(e,t,n){let o=new U0({classification:n.classification,...n.responseMode!==void 0&&{responseMode:n.responseMode},...n.keepAliveMs!==void 0&&{keepAliveMs:n.keepAliveMs}});return await e.connect(o),o.handleMessage(t,{...n.request!==void 0&&{request:n.request},...n.authInfo!==void 0&&{authInfo:n.authInfo}})}var p_=4*1024*1024,m_=100;function Hz(e){return`Payload Too Large: Request body must not exceed ${e} bytes`}function f_(e){if(e===void 0)return p_;if(typeof e!="number"||!Number.isFinite(e)||e<=0)throw new RangeError(`maxRequestBodySize must be a positive number of bytes, got ${String(e)}`);return e}async function Yz(e,t=p_){if(Number(e.headers.get("content-length"))>t)return{tooLarge:!0};if(e.body===null)return{tooLarge:!1,text:""};let n=e.body.getReader(),o=new TextDecoder,r=0,i="";try{for(;;){let{done:a,value:s}=await n.read();if(a)break;if(r+=s.byteLength,r>t)return{tooLarge:!0};i+=o.decode(s,{stream:!0})}}finally{n.releaseLock()}return{tooLarge:!1,text:i+o.decode()}}var h_=class{sessionIdGenerator;_started=!1;_hasHandledRequest=!1;_closed=!1;_streamMapping=new Map;_requestToStreamMapping=new Map;_requestResponseMap=new Map;_initialized=!1;_enableJsonResponse=!1;_standaloneSseStreamId="_GET_stream";_eventStore;_onsessioninitialized;_onsessionclosed;_allowedHosts;_allowedOrigins;_enableDnsRebindingProtection;_retryInterval;_supportedProtocolVersions;_keepAliveMs;_maxRequestBodySize;_scopeChallengeResolver;sessionId;onclose;onerror;onmessage;constructor(e={}){this.sessionIdGenerator=e.sessionIdGenerator,this._enableJsonResponse=e.enableJsonResponse??!1,this._eventStore=e.eventStore,this._onsessioninitialized=e.onsessioninitialized,this._onsessionclosed=e.onsessionclosed,this._allowedHosts=e.allowedHosts,this._allowedOrigins=e.allowedOrigins,this._enableDnsRebindingProtection=e.enableDnsRebindingProtection??!1,this._retryInterval=e.retryInterval,this._supportedProtocolVersions=e.supportedProtocolVersions??aa,this._keepAliveMs=e.keepAliveMs??Ba,this._maxRequestBodySize=f_(e.maxRequestBodySize)}startKeepAlive(e,t){if(this._closed)return;let n=$d(this._keepAliveMs,()=>{try{e.enqueue(t.encode(`: keepalive\n\n`))}catch{n!==void 0&&clearInterval(n)}});return n}setScopeChallengeResolver(e){this._scopeChallengeResolver=e}async start(){if(this._started)throw new Error("Transport already started");this._started=!0}setSupportedProtocolVersions(e){this._supportedProtocolVersions=e}createJsonErrorResponse(e,t,n,o){let r={code:t,message:n};return o?.data!==void 0&&(r.data=o.data),Response.json({jsonrpc:"2.0",error:r,id:null},{status:e,headers:{"Content-Type":"application/json",...o?.headers}})}async _checkScopeChallenge(e,t){if(!this._scopeChallengeResolver)return;let n=await l_(e.filter(o=>Ht(o)),t,this._scopeChallengeResolver);return n===void 0?void 0:d_(n,u_(t))}validateRequestHeaders(e){if(this._enableDnsRebindingProtection){if(this._allowedHosts&&this._allowedHosts.length>0){let t=e.headers.get("host");if(!t||!this._allowedHosts.includes(t)){let n=`Invalid Host header: ${t}`;return this.onerror?.(new Error(n)),this.createJsonErrorResponse(403,-32e3,n)}}if(this._allowedOrigins&&this._allowedOrigins.length>0){let t=e.headers.get("origin");if(t&&!this._allowedOrigins.includes(t)){let n=`Invalid Origin header: ${t}`;return this.onerror?.(new Error(n)),this.createJsonErrorResponse(403,-32e3,n)}}}}async handleRequest(e,t){if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");if(!this.sessionIdGenerator&&this._hasHandledRequest)throw new Error("Stateless transport cannot be reused across requests. Create a new transport per request.");this._hasHandledRequest=!0;let n=this.validateRequestHeaders(e);if(n)return n;switch(e.method){case"POST":return this.handlePostRequest(e,t);case"GET":return this.handleGetRequest(e);case"DELETE":return this.handleDeleteRequest(e);default:return this.handleUnsupportedRequest()}}supportsEmptySSEData(e){return this._supportedProtocolVersions.includes(e)&&e>="2025-11-25"}async writePrimingEvent(e,t,n,o){if(!this._eventStore||!this.supportsEmptySSEData(o))return;let r=await this._eventStore.storeEvent(n,{}),i=`id: ${r}\ndata: \n\n`;this._retryInterval!==void 0&&(i=`id: ${r}\nretry: ${this._retryInterval}\ndata: \n\n`),e.enqueue(t.encode(i))}async handleGetRequest(e){if(!e.headers.get("accept")?.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept text/event-stream");let t=this.validateSession(e);if(t)return t;let n=this.validateProtocolVersion(e);if(n)return n;if(this._eventStore){let c=e.headers.get("last-event-id");if(c)return this.replayEvents(c)}if(this._streamMapping.get(this._standaloneSseStreamId)!==void 0)return this.onerror?.(new Error("Conflict: Only one SSE stream is allowed per session")),this.createJsonErrorResponse(409,-32e3,"Conflict: Only one SSE stream is allowed per session");let o=new TextEncoder,r,i,a=new ReadableStream({start:c=>{r=c},cancel:()=>{i!==void 0&&clearInterval(i),this._streamMapping.get(this._standaloneSseStreamId)?.controller===r&&this._streamMapping.delete(this._standaloneSseStreamId)}}),s={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};return this.sessionId!==void 0&&(s["mcp-session-id"]=this.sessionId),this._streamMapping.set(this._standaloneSseStreamId,{controller:r,encoder:o,cleanup:()=>{i!==void 0&&clearInterval(i),this._streamMapping.delete(this._standaloneSseStreamId);try{r.close()}catch{}}}),i=this.startKeepAlive(r,o),new Response(a,{headers:s})}async replayEvents(e){if(!this._eventStore)return this.onerror?.(new Error("Event store not configured")),this.createJsonErrorResponse(400,-32e3,"Event store not configured");try{let t;if(this._eventStore.getStreamIdForEventId){if(t=await this._eventStore.getStreamIdForEventId(e),!t)return this.onerror?.(new Error("Invalid event ID format")),this.createJsonErrorResponse(400,-32e3,"Invalid event ID format");if(this._streamMapping.get(t)!==void 0)return this.onerror?.(new Error("Conflict: Stream already has an active connection")),this.createJsonErrorResponse(409,-32e3,"Conflict: Stream already has an active connection")}let n={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};this.sessionId!==void 0&&(n["mcp-session-id"]=this.sessionId);let o=new TextEncoder,r,i,a=!1,s,c=new ReadableStream({start:u=>{r=u},cancel:()=>{a=!0,i!==void 0&&clearInterval(i),s!==void 0&&this._streamMapping.get(s)?.controller===r&&this._streamMapping.delete(s)}}),l=new Set;if(s=await this._eventStore.replayEventsAfter(e,{send:async(u,m)=>{if(l.add(u),!this.writeSSEEvent(r,o,m,u))try{r.close()}catch{}}}),this._closed||a){try{r.close()}catch{}return this.createJsonErrorResponse(404,-32001,"Session not found")}if(this._streamMapping.get(s)?.cleanup(),this._streamMapping.set(s,{controller:r,encoder:o,replayedEventIds:l,cleanup:()=>{i!==void 0&&clearInterval(i),this._streamMapping.delete(s);try{r.close()}catch{}}}),s!==this._standaloneSseStreamId&&![...this._requestToStreamMapping.values()].includes(s)){this._streamMapping.delete(s);try{r.close()}catch{}}return this._streamMapping.get(s)?.controller===r&&(i=this.startKeepAlive(r,o)),new Response(c,{headers:n})}catch(t){return this.onerror?.(t),this.createJsonErrorResponse(500,-32e3,"Error replaying events")}}writeSSEEvent(e,t,n,o){try{let r=`event: message\n`;return o&&(r+=`id: ${o}\n`),r+=`data: ${JSON.stringify(n)}\n\n`,e.enqueue(t.encode(r)),!0}catch(r){return this.onerror?.(r),!1}}handleUnsupportedRequest(){return this.onerror?.(new Error("Method not allowed.")),Response.json({jsonrpc:"2.0",error:{code:-32e3,message:"Method not allowed."},id:null},{status:405,headers:{Allow:"GET, POST, DELETE","Content-Type":"application/json"}})}async handlePostRequest(e,t){try{let n=e.headers.get("accept");if(!n?.includes("application/json")||!n.includes("text/event-stream"))return this.onerror?.(new Error("Not Acceptable: Client must accept both application/json and text/event-stream")),this.createJsonErrorResponse(406,-32e3,"Not Acceptable: Client must accept both application/json and text/event-stream");if(!n_(e.headers.get("content-type")))return this.onerror?.(new Error("Unsupported Media Type: Content-Type must be application/json")),this.createJsonErrorResponse(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let o=e,r;if(t?.parsedBody===void 0)try{let y=await Yz(e,this._maxRequestBodySize);if(y.tooLarge){let w=Hz(this._maxRequestBodySize);return this.onerror?.(new Error(w)),this.createJsonErrorResponse(413,-32e3,w)}r=JSON.parse(y.text)}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON")}else r=t.parsedBody;if(Array.isArray(r)&&r.length>m_)return this.onerror?.(new Error(`Invalid Request: Batch must not exceed ${m_} messages`)),this.createJsonErrorResponse(400,-32600,`Invalid Request: Batch must not exceed ${m_} messages`);let i;try{i=Array.isArray(r)?r.map(y=>Ro.parse(y)):[Ro.parse(r)]}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(400,-32700,"Parse error: Invalid JSON-RPC message")}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let a=i.some(y=>Bv(y));if(a){if(this._initialized&&this.sessionId!==void 0)return this.onerror?.(new Error("Invalid Request: Server already initialized")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Server already initialized");if(i.length>1)return this.onerror?.(new Error("Invalid Request: Only one initialization request is allowed")),this.createJsonErrorResponse(400,-32600,"Invalid Request: Only one initialization request is allowed");this.sessionId=this.sessionIdGenerator?.(),this._initialized=!0,this.sessionId&&this._onsessioninitialized&&await Promise.resolve(this._onsessioninitialized(this.sessionId))}if(!a){let y=this.validateSession(e);if(y)return y;let w=this.validateProtocolVersion(e);if(w)return w}if(this._closed)return this.createJsonErrorResponse(404,-32001,"Session not found");let s;try{s=await this._checkScopeChallenge(i,t?.authInfo)}catch(y){return this.onerror?.(y),this.createJsonErrorResponse(500,-32603,"Internal server error")}if(s)return s;if(!i.some(y=>Ht(y))){for(let y of i)this.onmessage?.(y,{authInfo:t?.authInfo,request:o});return new Response(null,{status:202})}let c=crypto.randomUUID(),l=i.find(y=>Bv(y)),u=l?l.params.protocolVersion:e.headers.get("mcp-protocol-version")??_l;if(this._enableJsonResponse)return new Promise(y=>{this._streamMapping.set(c,{resolveJson:y,cleanup:()=>{this._streamMapping.delete(c)}});for(let w of i)Ht(w)&&this._requestToStreamMapping.set(w.id,c);for(let w of i)this.onmessage?.(w,{authInfo:t?.authInfo,request:o})});let m=new TextEncoder,p,f,h=new ReadableStream({start:y=>{p=y},cancel:()=>{f!==void 0&&clearInterval(f),this._streamMapping.get(c)?.controller===p&&this._streamMapping.delete(c)}}),S={"Content-Type":"text/event-stream","Cache-Control":"no-cache, no-transform",Connection:"keep-alive","X-Accel-Buffering":"no"};this.sessionId!==void 0&&(S["mcp-session-id"]=this.sessionId);for(let y of i)Ht(y)&&(this._streamMapping.set(c,{controller:p,encoder:m,cleanup:()=>{f!==void 0&&clearInterval(f),this._streamMapping.delete(c);try{p.close()}catch{}}}),this._requestToStreamMapping.set(y.id,c));await this.writePrimingEvent(p,m,c,u);for(let y of i){let w,T;Ht(y)&&this._eventStore&&this.supportsEmptySSEData(u)&&(w=()=>{this.closeSSEStream(y.id)},T=()=>{this.closeStandaloneSSEStream()}),this.onmessage?.(y,{authInfo:t?.authInfo,request:o,closeSSEStream:w,closeStandaloneSSEStream:T})}return this._streamMapping.get(c)?.controller===p&&(f=this.startKeepAlive(p,m)),new Response(h,{status:200,headers:S})}catch(n){return this.onerror?.(n),this.createJsonErrorResponse(400,-32700,"Parse error",{data:String(n)})}}async handleDeleteRequest(e){let t=this.validateSession(e);if(t)return t;let n=this.validateProtocolVersion(e);if(n)return n;try{return await Promise.resolve(this._onsessionclosed?.(this.sessionId)),new Response(null,{status:200})}finally{await this.close()}}validateSession(e){if(this.sessionIdGenerator===void 0)return;if(!this._initialized)return this.onerror?.(new Error("Bad Request: Server not initialized")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Server not initialized");let t=e.headers.get("mcp-session-id");if(!t)return this.onerror?.(new Error("Bad Request: Mcp-Session-Id header is required")),this.createJsonErrorResponse(400,-32e3,"Bad Request: Mcp-Session-Id header is required");if(t!==this.sessionId)return this.onerror?.(new Error("Session not found")),this.createJsonErrorResponse(404,-32001,"Session not found")}validateProtocolVersion(e){let t=e.headers.get("mcp-protocol-version");if(t!==null&&!this._supportedProtocolVersions.includes(t)){let n=`Bad Request: Unsupported protocol version: ${t} (supported versions: ${this._supportedProtocolVersions.join(", ")})`;return this.onerror?.(new Error(n)),this.createJsonErrorResponse(400,-32e3,n)}}async close(){if(!this._closed){this._closed=!0;for(let{cleanup:e}of this._streamMapping.values())e();this._streamMapping.clear(),this._requestResponseMap.clear(),this.onclose?.()}}closeSSEStream(e){let t=this._requestToStreamMapping.get(e);if(!t)return;let n=this._streamMapping.get(t);n&&n.cleanup()}closeStandaloneSSEStream(){let e=this._streamMapping.get(this._standaloneSseStreamId);e&&e.cleanup()}async send(e,t){let n=t?.relatedRequestId;if((ar(e)||cr(e))&&(n=e.id),n===void 0){if(ar(e)||cr(e))throw new Error("Cannot send a response on a standalone SSE stream unless resuming a previous client request");let i;this._eventStore&&(i=await this._eventStore.storeEvent(this._standaloneSseStreamId,e));let a=this._streamMapping.get(this._standaloneSseStreamId);if(a===void 0)return;a.controller&&a.encoder&&(i===void 0||!a.replayedEventIds?.has(i))&&this.writeSSEEvent(a.controller,a.encoder,e,i);return}let o=this._requestToStreamMapping.get(n);if(!o)throw new Error(`No connection established for request ID: ${String(n)}`);let r=this._streamMapping.get(o);if(!this._enableJsonResponse){let i;this._eventStore&&(i=await this._eventStore.storeEvent(o,e),r=this._streamMapping.get(o)),r?.controller&&r?.encoder&&(i===void 0||!r.replayedEventIds?.has(i))&&this.writeSSEEvent(r.controller,r.encoder,e,i)}if(ar(e)||cr(e)){this._requestResponseMap.set(n,e);let i=[...this._requestToStreamMapping.entries()].filter(([a,s])=>s===o).map(([a])=>a);if(i.every(a=>this._requestResponseMap.has(a))){if(!r){if(this._enableJsonResponse)throw new Error(`No connection established for request ID: ${String(n)}`);if(!this._eventStore){this.onerror?.(new Error(`Response for request ID ${String(n)} is undeliverable: per-request stream is disconnected and no eventStore is configured`));for(let a of i)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a);return}for(let a of i)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a);return}if(this._enableJsonResponse&&r.resolveJson){let a={"Content-Type":"application/json"};this.sessionId!==void 0&&(a["mcp-session-id"]=this.sessionId);let s=i.map(c=>this._requestResponseMap.get(c));s.length===1?r.resolveJson(Response.json(s[0],{status:200,headers:a})):r.resolveJson(Response.json(s,{status:200,headers:a})),r.cleanup()}else r.cleanup();for(let a of i)this._requestResponseMap.delete(a),this._requestToStreamMapping.delete(a)}}}};function Fr(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;let{method:t,id:n}=e;return typeof t!="string"?null:typeof n=="string"||typeof n=="number"?n:null}function ur(e,t,n,o,r=null){return Response.json({jsonrpc:"2.0",error:{code:t,message:n,...o!==void 0&&{data:o}},id:r},{status:e})}function zd(e,t=null){return ur(e.httpStatus,e.code,e.message,e.data,t)}function Ha(e){return e instanceof Error?e:new Error(String(e))}function Ya(e=null){return ur(500,-32603,"Internal server error",void 0,e)}function Bz(e){if(e.transport!==void 0)throw new Error("The factory returned an instance that is still serving another request. Return a new instance for each request.")}function L0(e,t,n,o){return async(r,i)=>{if(r.method.toUpperCase()!=="POST")return ur(405,-32e3,"Method not allowed.");try{let a=await e({era:"legacy",...i?.authInfo!==void 0&&{authInfo:i.authInfo},requestInfo:r}),s=new h_({sessionIdGenerator:void 0,...n!==void 0&&{keepAliveMs:n},...o!==void 0&&{maxRequestBodySize:o}});await a.connect(s);let c=()=>{s.close().catch(()=>{}),a.close().catch(()=>{})};r.signal?.addEventListener("abort",c,{once:!0});let l=await s.handleRequest(r,{...i?.authInfo!==void 0&&{authInfo:i.authInfo},...i?.parsedBody!==void 0&&{parsedBody:i.parsedBody}});if(l.body===null||r_(l.headers.get("content-type"))!=="text/event-stream")return c(),l;let u=l.body.getReader(),m=!1,p=()=>{m||(m=!0,c())},f=new ReadableStream({pull:async h=>{try{let{done:S,value:y}=await u.read();if(S){p(),h.close();return}y!==void 0&&h.enqueue(y)}catch(S){p(),h.error(S)}},cancel:h=>(p(),u.cancel(h).catch(()=>{}))});return new Response(f,{status:l.status,statusText:l.statusText,headers:l.headers})}catch(a){try{t?.(Ha(a))}catch{}return Ya(Fr(i?.parsedBody))}}}function Gz(e){return{protocolVersionHeader:e.headers.get("mcp-protocol-version")??void 0,mcpMethodHeader:e.headers.get("mcp-method")??void 0,mcpNameHeader:e.headers.get("mcp-name")??void 0}}async function Wz(e,t,n=!0,o=p_){let r=e.method.toUpperCase(),i,a=t,s=e,c=!1;if(r==="POST"){if(a===void 0){n&&(s=e.clone());let l;try{let u=await Yz(e,o);if(u.tooLarge)return{step:"body-too-large"};l=u.text}catch{return{step:"unreadable-body"}}try{i=l.length===0?void 0:JSON.parse(l)}catch{c=!0}!c&&i!==void 0&&(a=i)}else i=a;if(c||i===void 0)return{step:"no-json-body",forwardRequest:s}}return{step:"classified",outcome:az({httpMethod:r,...Gz(e),...i!==void 0&&{body:i}}),body:i,parsedBody:a,forwardRequest:s}}async function Xz(e,t,n){let o=f_(n?.maxRequestBodySize),r=await Wz(t===void 0&&e.method.toUpperCase()==="POST"?e.clone():e,t,!1,o);return r.step==="no-json-body"||r.step==="classified"&&r.outcome.kind==="legacy"}function Qz(e,t={}){let{legacy:n,onerror:o,responseMode:r}=t,i=f_(t.maxRequestBodySize);if(typeof n=="function")throw new TypeError("The \'legacy\' option only accepts \'stateless\' or \'reject\', not a handler function. To serve 2025-era traffic with your own handler, route in user land with the exported isLegacyRequest(request) predicate in front of a strict (legacy: \'reject\') handler.");let a=new Set,s=!1,c=w=>{try{o?.(w)}catch{}},l=t.bus??new Nz(c),u=jz(l),m=Az({bus:l,maxSubscriptions:t.maxSubscriptions??c_,keepAliveMs:t.keepAliveMs??Ba,onerror:c});r==="json"&&console.warn("responseMode: \'json\' drops mid-call notifications. subscriptions/listen streams are always served over SSE regardless; other notifications emitted before a result are dropped.");let p=n==="reject"?void 0:L0(e,c,t.keepAliveMs,i);async function f(w,T,E){let K=w.classification.revision;if(K===void 0||!qa.includes(K)){let ce=new fd({supported:[...qa],requested:K??"unknown"});return c(ce),ur(400,ce.code,ce.message,ce.data,Fr(w.message))}let Z=oz({httpMethod:T.method,...Gz(T)},w);if(Z!==void 0)return c(new Error(`Rejected inbound request (${Z.cell}): ${Z.message}`)),zd(Z,Fr(w.message));let N=w.messageKind==="request"?Zr(w.message.params):void 0,re=N?.[Bt];if(w.messageKind==="request"){let ce=A$(w.message.method);if(ce!==void 0){let Ie=Ma(ce,re);if(Ie!==void 0){let xe=new Va({requiredCapabilities:Ie});return c(xe),ur(nz(xe.code,"ladder"),xe.code,xe.message,xe.data,w.message.id)}}}let oe=await e({era:"modern",...E!==void 0&&{authInfo:E},requestInfo:T}),H=oe instanceof Lo?oe.server:oe;if(Bz(H),w.messageKind==="request"&&w.message.method==="subscriptions/listen"){let ce=H.getCapabilities(),Ie=Kz(H);return oe.close().catch(c),m.serve(w.message,T.signal,ce,Ie)}if(w.messageKind==="request"&&w.message.method==="tools/call"&&oe instanceof Lo){let ce=w.message.params,Ie=typeof ce?.name=="string"?ce.name:void 0,xe=Ie===void 0?void 0:oe.toolInputSchemaJson(Ie);if(xe!==void 0){let Ae=vd(xe);if(Ae.valid&&Ae.declarations.length>0){let Ze=rz(Ae.declarations,ce?.arguments,T.headers);if(Ze!==void 0)return oe.close().catch(c),c(new Error(`Rejected inbound request (${Ze.cell}): ${Ze.message}`)),zd(Ze,w.message.id)}}}if(w.messageKind==="request"&&oe instanceof Lo)try{let ce=await l_([w.message],E,Ie=>oe.resolveScopeChallenge(Ie));if(ce!==void 0)return oe.close().catch(c),d_(ce,u_(E))}catch(ce){return oe.close().catch(c),c(Ha(ce)),Ya(w.message.id)}Bz(H),yz(H,K),Fz(H,qa),N!==void 0&&Zz(H,{clientInfo:N[Sn],clientCapabilities:re});let ve=H.onclose;a.add(H);let ye=()=>{a.delete(H),H.onclose===ye&&(H.onclose=ve),ve?.()};H.onclose=ye;try{let ce=await D0(oe,w.message,{classification:w.classification,request:T,...E!==void 0&&{authInfo:E},...r!==void 0&&{responseMode:r},...t.keepAliveMs!==void 0&&{keepAliveMs:t.keepAliveMs}});return w.messageKind==="notification"&&queueMicrotask(()=>{H.close().catch(()=>{})}),ce}catch(ce){return ce instanceof ne&&ce.code===se.ConnectionClosed?new Response(null,{status:499}):(await H.close().catch(()=>{}),a.delete(H),c(Ha(ce)),Ya(Fr(w.message)))}}async function h(w,T,E,K){if(p!==void 0)return p(T,{...E!==void 0&&{authInfo:E},...K!==void 0&&{parsedBody:K}});let Z=sz(w,qa);return Z===void 0?new Response(null,{status:202}):(c(new Error(`Rejected 2025-era request on a modern-only endpoint (${Z.cell}): ${Z.message}`)),zd(Z,Fr(K)))}async function S(w,T){let E=T?.authInfo;if(w.method.toUpperCase()==="POST"&&!n_(w.headers.get("content-type")))return c(new Error("Unsupported Media Type: Content-Type must be application/json")),ur(415,-32e3,"Unsupported Media Type: Content-Type must be application/json");let K=await Wz(w,T?.parsedBody,!0,i);if(K.step==="unreadable-body")return ur(400,-32700,"Parse error: the request body could not be read");if(K.step==="body-too-large")return ur(413,-32e3,Hz(i));if(K.step==="no-json-body")return p!==void 0?p(K.forwardRequest,{...E!==void 0&&{authInfo:E}}):ur(400,-32700,"Parse error: the request body is not valid JSON");let{outcome:Z,body:N,parsedBody:re,forwardRequest:oe}=K;try{switch(Z.kind){case"reject":return c(new Error(`Rejected inbound request (${Z.cell}): ${Z.message}`)),zd(Z,Fr(N));case"modern":return await f(Z,w,E);case"legacy":return await h(Z,oe,E,re)}}catch(H){return c(Ha(H)),Ya(Fr(N))}}return{fetch:async(w,T)=>{if(s)throw new Error("This MCP handler has been closed");try{return await S(w,T)}catch(E){return c(Ha(E)),Ya(Fr(T?.parsedBody))}},notify:u,bus:l,close:async()=>{s=!0,m.closeAll();let w=[...a].map(T=>T.close().catch(()=>{}));a.clear(),await Promise.all(w)}}}function g_(e){return/^Bearer\\s+(.+)$/i.exec(e.headers.get("authorization")?.trim()??"")?.[1]?.trim()||null}function eR(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=atob(t+"=".repeat((4-t.length%4)%4));return Uint8Array.from(n,o=>o.charCodeAt(0))}function M0(e){let t=e.replace(/-----(BEGIN|END)[^-]+-----/g,"").replace(/\\s+/g,"");return Uint8Array.from(atob(t),n=>n.charCodeAt(0))}var tR=new Map;function rR(e){let t=tR.get(e);return t||(t=crypto.subtle.importKey("spki",M0(e),{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},!1,["verify"]),tR.set(e,t)),t}function nR(e,t,n){if(!e||!t)return null;let o=Number(t);return Number.isFinite(o)&&o>n?e:null}function oR(e,t){return typeof e=="string"?e===t:Array.isArray(e)&&e.some(n=>n===t)}async function v_(e,t){let[n,o,r]=e.split(".");if(!n||!o||!r)throw new Error("malformed");let i=eR(r),a=new TextEncoder().encode(`${n}.${o}`),s=await crypto.subtle.verify("RSASSA-PKCS1-v1_5",await rR(t.publicKey),i,a),c=s?null:nR(t.previousKey,t.previousKeyUntil,Date.now());if(c&&(s=await rR(c).then(p=>crypto.subtle.verify("RSASSA-PKCS1-v1_5",p,i,a)).catch(()=>!1)),!s)throw new Error("signature");let l=JSON.parse(new TextDecoder().decode(eR(o))),u=Math.floor(Date.now()/1e3);if(!(oR(l.aud,t.audience)&&l.iss===t.issuer&&l.serverId===t.serverId&&l.accessMode===t.accessMode&&typeof l.exp=="number"&&l.exp>u&&typeof l.iat=="number"&&typeof l.jti=="string"&&typeof l.sub=="string"))throw new Error("claims");return{sub:l.sub,clientName:typeof l.clientName=="string"?l.clientName:null,readOnly:l.readOnly===!0}}var iR={response:null,userId:null,token:null,clientName:null,readOnly:!1};function __(e,t,n){return{...iR,response:Response.json({error:t,message:n},{status:e})}}function aR(e){return e==="private"?{protected:!0,summary:"This MCP endpoint requires a Sokie runtime token."}:{protected:!1,summary:"This MCP endpoint is public."}}async function sR(e,t){if(t.accessMode==="public")return iR;if(!t.auth)return __(500,"runtime_auth_misconfigured","Runtime auth is not configured for this deployment.");let n=g_(e);if(!n)return __(401,"runtime_auth_required","This MCP endpoint requires a Sokie runtime token.");try{let{sub:o,clientName:r,readOnly:i}=await v_(n,{...t.auth,accessMode:t.accessMode});return{response:null,userId:o,token:n,clientName:r,readOnly:i}}catch{return __(401,"runtime_auth_invalid","This MCP endpoint requires a valid Sokie runtime token.")}}var cR=new WeakMap;function lR(e){return cR.get(e)??null}function Gt(e){let t=e?.trim();return t||null}function Rd(e,t){let n=Gt(e[t]);if(!n)throw new Error(`This deployment is missing ${t}. Redeploy the server.`);return n}function y_(e){return Gt(e.SOKIE_ACCESS_MODE)==="private"?"private":"public"}function uR(e,t){let n=y_(t),o={bundle:e,baseUrl:Gt(t.SOKIE_UPSTREAM_BASE_URL)??e.baseUrl??"",accessMode:n,auth:n==="private"?{serverId:Rd(t,"SOKIE_SERVER_ID"),issuer:Rd(t,"SOKIE_AUTH_ISSUER"),audience:Rd(t,"SOKIE_AUTH_AUDIENCE"),publicKey:Rd(t,"SOKIE_AUTH_PUBLIC_KEY"),previousKey:Gt(t.SOKIE_AUTH_PUBLIC_KEY_PREVIOUS),previousKeyUntil:Gt(t.SOKIE_AUTH_PUBLIC_KEY_PREVIOUS_UNTIL)}:null,platformUrl:Gt(t.SOKIE_PLATFORM_URL),connectUrl:Gt(t.SOKIE_CONNECT_URL),secret:s=>s.startsWith("SOKIE_")?null:Gt(t[s]),policy:null,policyText:null},r=Gt(t.SOKIE_POLICY),i=hi(r);i&&(o.policy=i,o.policyText=r);let a=Gt(t.SOKIE_PLATFORM_TOKEN);return a&&cR.set(o,a),o}function dR(e={}){return{userId:null,runtimeToken:null,clientName:null,readOnly:!1,policy:null,policyText:null,era:"legacy",projection:{preBytes:0,postBytes:0,applied:!1},call:{tool:null,isError:!1,errorClass:null,upstreamStatus:null},...e}}function pR(e){let t=e.effect??(e.annotations?.readOnlyHint?"read":"external_effect");return{name:e.name,effect:t,area:e.area??e.tags?.[0]??""}}function kd(e,t,n){return Ad(t.policy,pR(n),{publicServer:e.accessMode==="public",readOnly:t.readOnly})}function q0(e,t,n){let o=pR(n);return t.readOnly&&o.effect!=="read"?"readOnly":(t.policy?hs(t.policy,o):"allow")==="off"?"off":e.accessMode==="public"?"nobodyToAsk":"ask"}var S_="Its owner sets what agents may do in Sokie.";function V0(e,t){switch(e){case"readOnly":return`This connection is read only, so ${t} isn\'t available to it. The person who connected it can change that in Sokie, under Settings \\u203A Connected clients.`;case"off":return`Agents can\'t use ${t} on this server. ${S_}`;case"nobodyToAsk":return`${t} needs a person\'s OK first, and this server is public, so there\'s nobody to ask. ${S_}`;case"ask":return`${t} needs the OK of the person you act for before it runs, and this server can\'t ask for it yet. ${S_}`}}function wd(e,t,n){let o=q0(e,t,n),r=V0(o,n.name);return{content:[{type:"text",text:r}],isError:!0,_meta:{error:r,errorClass:"POLICY_DENIED",retryable:!1,policy:o}}}var mR=new WeakMap,Z0=8;function b_(e,t){let n=e.bundle.tools;if(!t.policy&&!t.readOnly)return n;let o=`${t.policyText??""}|${e.accessMode}|${t.readOnly?"r":"a"}`,r=mR.get(n);r||(r=new Map,mR.set(n,r));let i=r.get(o);if(i)return i;let a=Object.freeze(n.filter(s=>kd(e,t,s)!=="off"));if(r.size>=Z0){let s=r.keys().next().value;s!==void 0&&r.delete(s)}return r.set(o,a),a}async function fR(e,t,n){if(!n.policy&&!n.readOnly)return null;let o;try{o=await e.clone().json()}catch{return null}if(o?.method!=="tools/call"||typeof o.params?.name!="string")return null;let r=o.params.name,i=t.bundle.tools.find(s=>s.name===r);if(!i||kd(t,n,i)!=="off")return null;let a=typeof o.id=="string"||typeof o.id=="number"?o.id:null;return{response:Response.json({jsonrpc:"2.0",id:a,result:wd(t,n,i)}),tool:i.name}}var Mo=e=>e!==null&&Object.prototype.toString.call(e)==="[object Object]",Td=(e,t)=>{if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1)if(!Td(e[n],t[n]))return!1;return!0}if(Mo(e)&&Mo(t)){let n=Object.entries(e),o=new Set(Object.keys(t));if(n.length!==o.size)return!1;for(let[r,i]of n){if(!Td(i,t[r]))return!1;o.delete(r)}return o.size===0}return!1},Id=e=>{if(e===""||e===!1||e===null||e===void 0||Array.isArray(e)&&e.length===0)return!0;if(Mo(e)){for(let t in e)if(e.hasOwnProperty(t))return!1;return!0}return!1},F0=e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_",hR=e=>e>="0"&&e<="9"||e==="-",K0=e=>e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_",$;(function(e){e.TOK_EOF="EOF",e.TOK_UNQUOTEDIDENTIFIER="UnquotedIdentifier",e.TOK_QUOTEDIDENTIFIER="QuotedIdentifier",e.TOK_RBRACKET="Rbracket",e.TOK_RPAREN="Rparen",e.TOK_COMMA="Comma",e.TOK_COLON="Colon",e.TOK_RBRACE="Rbrace",e.TOK_NUMBER="Number",e.TOK_CURRENT="Current",e.TOK_ROOT="Root",e.TOK_EXPREF="Expref",e.TOK_PIPE="Pipe",e.TOK_OR="Or",e.TOK_AND="And",e.TOK_EQ="EQ",e.TOK_GT="GT",e.TOK_LT="LT",e.TOK_GTE="GTE",e.TOK_LTE="LTE",e.TOK_NE="NE",e.TOK_FLATTEN="Flatten",e.TOK_STAR="Star",e.TOK_FILTER="Filter",e.TOK_DOT="Dot",e.TOK_NOT="Not",e.TOK_LBRACE="Lbrace",e.TOK_LBRACKET="Lbracket",e.TOK_LPAREN="Lparen",e.TOK_LITERAL="Literal"})($||($={}));var gR={"(":$.TOK_LPAREN,")":$.TOK_RPAREN,"*":$.TOK_STAR,",":$.TOK_COMMA,".":$.TOK_DOT,":":$.TOK_COLON,"@":$.TOK_CURRENT,$:$.TOK_ROOT,"]":$.TOK_RBRACKET,"{":$.TOK_LBRACE,"}":$.TOK_RBRACE},J0={"!":!0,"<":!0,"=":!0,">":!0},B0={"\t":!0,"\\n":!0,"\\r":!0," ":!0},$_=class{constructor(){this._current=0}tokenize(t){let n=[];this._current=0;let o,r,i;for(;this._current<t.length;)if(F0(t[this._current]))o=this._current,r=this.consumeUnquotedIdentifier(t),n.push({start:o,type:$.TOK_UNQUOTEDIDENTIFIER,value:r});else if(gR[t[this._current]]!==void 0)n.push({start:this._current,type:gR[t[this._current]],value:t[this._current]}),this._current+=1;else if(hR(t[this._current]))i=this.consumeNumber(t),n.push(i);else if(t[this._current]==="[")i=this.consumeLBracket(t),n.push(i);else if(t[this._current]===\'"\')o=this._current,r=this.consumeQuotedIdentifier(t),n.push({start:o,type:$.TOK_QUOTEDIDENTIFIER,value:r});else if(t[this._current]==="\'")o=this._current,r=this.consumeRawStringLiteral(t),n.push({start:o,type:$.TOK_LITERAL,value:r});else if(t[this._current]==="`"){o=this._current;let a=this.consumeLiteral(t);n.push({start:o,type:$.TOK_LITERAL,value:a})}else if(J0[t[this._current]]!==void 0)i=this.consumeOperator(t),i&&n.push(i);else if(B0[t[this._current]]!==void 0)this._current+=1;else if(t[this._current]==="&")o=this._current,this._current+=1,t[this._current]==="&"?(this._current+=1,n.push({start:o,type:$.TOK_AND,value:"&&"})):n.push({start:o,type:$.TOK_EXPREF,value:"&"});else if(t[this._current]==="|")o=this._current,this._current+=1,t[this._current]==="|"?(this._current+=1,n.push({start:o,type:$.TOK_OR,value:"||"})):n.push({start:o,type:$.TOK_PIPE,value:"|"});else{let a=new Error(`Unknown character: ${t[this._current]}`);throw a.name="LexerError",a}return n}consumeUnquotedIdentifier(t){let n=this._current;for(this._current+=1;this._current<t.length&&K0(t[this._current]);)this._current+=1;return t.slice(n,this._current)}consumeQuotedIdentifier(t){let n=this._current;this._current+=1;let o=t.length;for(;t[this._current]!==\'"\'&&this._current<o;){let r=this._current;t[r]==="\\\\"&&(t[r+1]==="\\\\"||t[r+1]===\'"\')?r+=2:r+=1,this._current=r}return this._current+=1,JSON.parse(t.slice(n,this._current))}consumeRawStringLiteral(t){let n=this._current;this._current+=1;let o=t.length;for(;t[this._current]!=="\'"&&this._current<o;){let i=this._current;t[i]==="\\\\"&&(t[i+1]==="\\\\"||t[i+1]==="\'")?i+=2:i+=1,this._current=i}return this._current+=1,t.slice(n+1,this._current-1).replace("\\\\\'","\'")}consumeNumber(t){let n=this._current;this._current+=1;let o=t.length;for(;hR(t[this._current])&&this._current<o;)this._current+=1;let r=parseInt(t.slice(n,this._current),10);return{start:n,value:r,type:$.TOK_NUMBER}}consumeLBracket(t){let n=this._current;return this._current+=1,t[this._current]==="?"?(this._current+=1,{start:n,type:$.TOK_FILTER,value:"[?"}):t[this._current]==="]"?(this._current+=1,{start:n,type:$.TOK_FLATTEN,value:"[]"}):{start:n,type:$.TOK_LBRACKET,value:"["}}consumeOperator(t){let n=this._current,o=t[n];if(this._current+=1,o==="!")return t[this._current]==="="?(this._current+=1,{start:n,type:$.TOK_NE,value:"!="}):{start:n,type:$.TOK_NOT,value:"!"};if(o==="<")return t[this._current]==="="?(this._current+=1,{start:n,type:$.TOK_LTE,value:"<="}):{start:n,type:$.TOK_LT,value:"<"};if(o===">")return t[this._current]==="="?(this._current+=1,{start:n,type:$.TOK_GTE,value:">="}):{start:n,type:$.TOK_GT,value:">"};if(o==="="&&t[this._current]==="=")return this._current+=1,{start:n,type:$.TOK_EQ,value:"=="}}consumeLiteral(t){this._current+=1;let n=this._current,o=t.length;for(;t[this._current]!=="`"&&this._current<o;){let a=this._current;t[a]==="\\\\"&&(t[a+1]==="\\\\"||t[a+1]==="`")?a+=2:a+=1,this._current=a}let r=t.slice(n,this._current).trimLeft();r=r.replace("\\\\`","`");let i=this.looksLikeJSON(r)?JSON.parse(r):JSON.parse(`"${r}"`);return this._current+=1,i}looksLikeJSON(t){let o=["true","false","null"],r="-0123456789";if(t==="")return!1;if(\'[{"\'.includes(t[0])||o.includes(t))return!0;if(r.includes(t[0]))try{return JSON.parse(t),!0}catch{return!1}return!1}},H0=new $_,Ve={[$.TOK_EOF]:0,[$.TOK_UNQUOTEDIDENTIFIER]:0,[$.TOK_QUOTEDIDENTIFIER]:0,[$.TOK_RBRACKET]:0,[$.TOK_RPAREN]:0,[$.TOK_COMMA]:0,[$.TOK_RBRACE]:0,[$.TOK_NUMBER]:0,[$.TOK_CURRENT]:0,[$.TOK_EXPREF]:0,[$.TOK_ROOT]:0,[$.TOK_PIPE]:1,[$.TOK_OR]:2,[$.TOK_AND]:3,[$.TOK_EQ]:5,[$.TOK_GT]:5,[$.TOK_LT]:5,[$.TOK_GTE]:5,[$.TOK_LTE]:5,[$.TOK_NE]:5,[$.TOK_FLATTEN]:9,[$.TOK_STAR]:20,[$.TOK_FILTER]:21,[$.TOK_DOT]:40,[$.TOK_NOT]:45,[$.TOK_LBRACE]:50,[$.TOK_LBRACKET]:55,[$.TOK_LPAREN]:60},z_=class{constructor(){this.index=0,this.tokens=[]}parse(t){this.loadTokens(t),this.index=0;let n=this.expression(0);if(this.lookahead(0)!==$.TOK_EOF){let o=this.lookaheadToken(0);this.errorToken(o,`Unexpected token type: ${o.type}, value: ${o.value}`)}return n}loadTokens(t){this.tokens=[...H0.tokenize(t),{type:$.TOK_EOF,value:"",start:t.length}]}expression(t){let n=this.lookaheadToken(0);this.advance();let o=this.nud(n),r=this.lookahead(0);for(;t<Ve[r];)this.advance(),o=this.led(r,o),r=this.lookahead(0);return o}lookahead(t){return this.tokens[this.index+t].type}lookaheadToken(t){return this.tokens[this.index+t]}advance(){this.index+=1}nud(t){let n,o,r;switch(t.type){case $.TOK_LITERAL:return{type:"Literal",value:t.value};case $.TOK_UNQUOTEDIDENTIFIER:return{type:"Field",name:t.value};case $.TOK_QUOTEDIDENTIFIER:let i={type:"Field",name:t.value};if(this.lookahead(0)===$.TOK_LPAREN)throw new Error("Quoted identifier not allowed for function names.");return i;case $.TOK_NOT:return o=this.expression(Ve.Not),{type:"NotExpression",children:[o]};case $.TOK_STAR:return n={type:"Identity"},o=this.lookahead(0)===$.TOK_RBRACKET&&{type:"Identity"}||this.parseProjectionRHS(Ve.Star),{type:"ValueProjection",children:[n,o]};case $.TOK_FILTER:return this.led(t.type,{type:"Identity"});case $.TOK_LBRACE:return this.parseMultiselectHash();case $.TOK_FLATTEN:return n={type:$.TOK_FLATTEN,children:[{type:"Identity"}]},o=this.parseProjectionRHS(Ve.Flatten),{type:"Projection",children:[n,o]};case $.TOK_LBRACKET:return this.lookahead(0)===$.TOK_NUMBER||this.lookahead(0)===$.TOK_COLON?(o=this.parseIndexExpression(),this.projectIfSlice({type:"Identity"},o)):this.lookahead(0)===$.TOK_STAR&&this.lookahead(1)===$.TOK_RBRACKET?(this.advance(),this.advance(),o=this.parseProjectionRHS(Ve.Star),{children:[{type:"Identity"},o],type:"Projection"}):this.parseMultiselectList();case $.TOK_CURRENT:return{type:$.TOK_CURRENT};case $.TOK_ROOT:return{type:$.TOK_ROOT};case $.TOK_EXPREF:return r=this.expression(Ve.Expref),{type:"ExpressionReference",children:[r]};case $.TOK_LPAREN:let a=[];for(;this.lookahead(0)!==$.TOK_RPAREN;)this.lookahead(0)===$.TOK_CURRENT?(r={type:$.TOK_CURRENT},this.advance()):r=this.expression(0),a.push(r);return this.match($.TOK_RPAREN),a[0];default:this.errorToken(t)}}led(t,n){let o;switch(t){case $.TOK_DOT:let r=Ve.Dot;return this.lookahead(0)!==$.TOK_STAR?(o=this.parseDotRHS(r),{type:"Subexpression",children:[n,o]}):(this.advance(),o=this.parseProjectionRHS(r),{type:"ValueProjection",children:[n,o]});case $.TOK_PIPE:return o=this.expression(Ve.Pipe),{type:$.TOK_PIPE,children:[n,o]};case $.TOK_OR:return o=this.expression(Ve.Or),{type:"OrExpression",children:[n,o]};case $.TOK_AND:return o=this.expression(Ve.And),{type:"AndExpression",children:[n,o]};case $.TOK_LPAREN:let i=n.name,a=[],s;for(;this.lookahead(0)!==$.TOK_RPAREN;)this.lookahead(0)===$.TOK_CURRENT?(s={type:$.TOK_CURRENT},this.advance()):s=this.expression(0),this.lookahead(0)===$.TOK_COMMA&&this.match($.TOK_COMMA),a.push(s);return this.match($.TOK_RPAREN),{name:i,type:"Function",children:a};case $.TOK_FILTER:let l=this.expression(0);return this.match($.TOK_RBRACKET),o=this.lookahead(0)===$.TOK_FLATTEN&&{type:"Identity"}||this.parseProjectionRHS(Ve.Filter),{type:"FilterProjection",children:[n,o,l]};case $.TOK_FLATTEN:let u={type:$.TOK_FLATTEN,children:[n]},m=this.parseProjectionRHS(Ve.Flatten);return{type:"Projection",children:[u,m]};case $.TOK_EQ:case $.TOK_NE:case $.TOK_GT:case $.TOK_GTE:case $.TOK_LT:case $.TOK_LTE:return this.parseComparator(n,t);case $.TOK_LBRACKET:let p=this.lookaheadToken(0);return p.type===$.TOK_NUMBER||p.type===$.TOK_COLON?(o=this.parseIndexExpression(),this.projectIfSlice(n,o)):(this.match($.TOK_STAR),this.match($.TOK_RBRACKET),o=this.parseProjectionRHS(Ve.Star),{type:"Projection",children:[n,o]});default:return this.errorToken(this.lookaheadToken(0))}}match(t){if(this.lookahead(0)===t){this.advance();return}else{let n=this.lookaheadToken(0);this.errorToken(n,`Expected ${t}, got: ${n.type}`)}}errorToken(t,n=""){let o=new Error(n||`Invalid token (${t.type}): "${t.value}"`);throw o.name="ParserError",o}parseIndexExpression(){if(this.lookahead(0)===$.TOK_COLON||this.lookahead(1)===$.TOK_COLON)return this.parseSliceExpression();let t={type:"Index",value:this.lookaheadToken(0).value};return this.advance(),this.match($.TOK_RBRACKET),t}projectIfSlice(t,n){let o={type:"IndexExpression",children:[t,n]};return n.type==="Slice"?{children:[o,this.parseProjectionRHS(Ve.Star)],type:"Projection"}:o}parseSliceExpression(){let t=[null,null,null],n=0,o=this.lookahead(0);for(;o!==$.TOK_RBRACKET&&n<3;){if(o===$.TOK_COLON)n+=1,this.advance();else if(o===$.TOK_NUMBER)t[n]=this.lookaheadToken(0).value,this.advance();else{let r=this.lookaheadToken(0);this.errorToken(r,`Syntax error, unexpected token: ${r.value}(${r.type})`)}o=this.lookahead(0)}return this.match($.TOK_RBRACKET),{children:t,type:"Slice"}}parseComparator(t,n){let o=this.expression(Ve[n]);return{type:"Comparator",name:n,children:[t,o]}}parseDotRHS(t){let n=this.lookahead(0);if([$.TOK_UNQUOTEDIDENTIFIER,$.TOK_QUOTEDIDENTIFIER,$.TOK_STAR].includes(n))return this.expression(t);if(n===$.TOK_LBRACKET)return this.match($.TOK_LBRACKET),this.parseMultiselectList();if(n===$.TOK_LBRACE)return this.match($.TOK_LBRACE),this.parseMultiselectHash();let r=this.lookaheadToken(0);this.errorToken(r,`Syntax error, unexpected token: ${r.value}(${r.type})`)}parseProjectionRHS(t){if(Ve[this.lookahead(0)]<10)return{type:"Identity"};if(this.lookahead(0)===$.TOK_LBRACKET)return this.expression(t);if(this.lookahead(0)===$.TOK_FILTER)return this.expression(t);if(this.lookahead(0)===$.TOK_DOT)return this.match($.TOK_DOT),this.parseDotRHS(t);let n=this.lookaheadToken(0);this.errorToken(n,`Syntax error, unexpected token: ${n.value}(${n.type})`)}parseMultiselectList(){let t=[];for(;this.lookahead(0)!==$.TOK_RBRACKET;){let n=this.expression(0);if(t.push(n),this.lookahead(0)===$.TOK_COMMA&&(this.match($.TOK_COMMA),this.lookahead(0)===$.TOK_RBRACKET))throw new Error("Unexpected token Rbracket")}return this.match($.TOK_RBRACKET),{type:"MultiSelectList",children:t}}parseMultiselectHash(){let t=[],n=[$.TOK_UNQUOTEDIDENTIFIER,$.TOK_QUOTEDIDENTIFIER],o,r,i;for(;;){if(o=this.lookaheadToken(0),!n.includes(o.type))throw new Error(`Expecting an identifier token, got: ${o.type}`);if(r=o.value,this.advance(),this.match($.TOK_COLON),i=this.expression(0),t.push({value:i,type:"KeyValuePair",name:r}),this.lookahead(0)===$.TOK_COMMA)this.match($.TOK_COMMA);else if(this.lookahead(0)===$.TOK_RBRACE){this.match($.TOK_RBRACE);break}}return{type:"MultiSelectHash",children:t}}},Y0=new z_,P;(function(e){e[e.TYPE_NUMBER=0]="TYPE_NUMBER",e[e.TYPE_ANY=1]="TYPE_ANY",e[e.TYPE_STRING=2]="TYPE_STRING",e[e.TYPE_ARRAY=3]="TYPE_ARRAY",e[e.TYPE_OBJECT=4]="TYPE_OBJECT",e[e.TYPE_BOOLEAN=5]="TYPE_BOOLEAN",e[e.TYPE_EXPREF=6]="TYPE_EXPREF",e[e.TYPE_NULL=7]="TYPE_NULL",e[e.TYPE_ARRAY_NUMBER=8]="TYPE_ARRAY_NUMBER",e[e.TYPE_ARRAY_STRING=9]="TYPE_ARRAY_STRING"})(P||(P={}));var R_=class{constructor(t){this.TYPE_NAME_TABLE={[P.TYPE_NUMBER]:"number",[P.TYPE_ANY]:"any",[P.TYPE_STRING]:"string",[P.TYPE_ARRAY]:"array",[P.TYPE_OBJECT]:"object",[P.TYPE_BOOLEAN]:"boolean",[P.TYPE_EXPREF]:"expression",[P.TYPE_NULL]:"null",[P.TYPE_ARRAY_NUMBER]:"Array<number>",[P.TYPE_ARRAY_STRING]:"Array<string>"},this.functionAbs=([n])=>Math.abs(n),this.functionAvg=([n])=>{let o=0;for(let r=0;r<n.length;r+=1)o+=n[r];return o/n.length},this.functionCeil=([n])=>Math.ceil(n),this.functionContains=n=>{let[o,r]=n;return o.includes(r)},this.functionEndsWith=n=>{let[o,r]=n;return o.includes(r,o.length-r.length)},this.functionFloor=([n])=>Math.floor(n),this.functionJoin=n=>{let[o,r]=n;return r.join(o)},this.functionKeys=([n])=>Object.keys(n),this.functionLength=([n])=>Mo(n)?Object.keys(n).length:n.length,this.functionMap=n=>{if(!this._interpreter)return[];let o=[],r=this._interpreter,i=n[0],a=n[1];for(let s=0;s<a.length;s+=1)o.push(r.visit(i,a[s]));return o},this.functionMax=([n])=>{if(!n.length)return null;if(this.getTypeName(n[0])===P.TYPE_NUMBER)return Math.max(...n);let r=n,i=r[0];for(let a=1;a<r.length;a+=1)i.localeCompare(r[a])<0&&(i=r[a]);return i},this.functionMaxBy=n=>{let o=n[1],r=n[0],i=this.createKeyFunction(o,[P.TYPE_NUMBER,P.TYPE_STRING]),a=-1/0,s,c;for(let l=0;l<r.length;l+=1)c=i&&i(r[l]),c!==void 0&&c>a&&(a=c,s=r[l]);return s},this.functionMerge=n=>{let o={};for(let r=0;r<n.length;r+=1){let i=n[r];o=Object.assign(o,i)}return o},this.functionMin=([n])=>{if(!n.length)return null;if(this.getTypeName(n[0])===P.TYPE_NUMBER)return Math.min(...n);let r=n,i=r[0];for(let a=1;a<r.length;a+=1)r[a].localeCompare(i)<0&&(i=r[a]);return i},this.functionMinBy=n=>{let o=n[1],r=n[0],i=this.createKeyFunction(o,[P.TYPE_NUMBER,P.TYPE_STRING]),a=1/0,s,c;for(let l=0;l<r.length;l+=1)c=i&&i(r[l]),c!==void 0&&c<a&&(a=c,s=r[l]);return s},this.functionNotNull=n=>{for(let o=0;o<n.length;o+=1)if(this.getTypeName(n[o])!==P.TYPE_NULL)return n[o];return null},this.functionReverse=([n])=>{if(this.getTypeName(n)===P.TYPE_STRING){let i=n,a="";for(let s=i.length-1;s>=0;s-=1)a+=i[s];return a}let r=n.slice(0);return r.reverse(),r},this.functionSort=([n])=>[...n].sort(),this.functionSortBy=n=>{if(!this._interpreter)return[];let o=n[0].slice(0);if(o.length===0)return o;let r=this._interpreter,i=n[1],a=this.getTypeName(r.visit(i,o[0]));if(a!==void 0&&![P.TYPE_NUMBER,P.TYPE_STRING].includes(a))throw new Error(`TypeError: unexpected type (${this.TYPE_NAME_TABLE[a]})`);let s=[];for(let c=0;c<o.length;c+=1)s.push([c,o[c]]);s.sort((c,l)=>{let u=r.visit(i,c[1]),m=r.visit(i,l[1]);if(this.getTypeName(u)!==a)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[a]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(u)]}`);if(this.getTypeName(m)!==a)throw new Error(`TypeError: expected (${this.TYPE_NAME_TABLE[a]}), received ${this.TYPE_NAME_TABLE[this.getTypeName(m)]}`);return u>m?1:u<m?-1:c[0]-l[0]});for(let c=0;c<s.length;c+=1)o[c]=s[c][1];return o},this.functionStartsWith=([n,o])=>n.startsWith(o),this.functionSum=([n])=>n.reduce((o,r)=>o+r,0),this.functionToArray=([n])=>this.getTypeName(n)===P.TYPE_ARRAY?n:[n],this.functionToNumber=([n])=>{let o=this.getTypeName(n),r;return o===P.TYPE_NUMBER?n:o===P.TYPE_STRING&&(r=+n,!isNaN(r))?r:null},this.functionToString=([n])=>this.getTypeName(n)===P.TYPE_STRING?n:JSON.stringify(n),this.functionType=([n])=>{switch(this.getTypeName(n)){case P.TYPE_NUMBER:return"number";case P.TYPE_STRING:return"string";case P.TYPE_ARRAY:return"array";case P.TYPE_OBJECT:return"object";case P.TYPE_BOOLEAN:return"boolean";case P.TYPE_EXPREF:return"expref";case P.TYPE_NULL:return"null";default:return}},this.functionValues=([n])=>Object.values(n),this.functionTable={abs:{_func:this.functionAbs,_signature:[{types:[P.TYPE_NUMBER]}]},avg:{_func:this.functionAvg,_signature:[{types:[P.TYPE_ARRAY_NUMBER]}]},ceil:{_func:this.functionCeil,_signature:[{types:[P.TYPE_NUMBER]}]},contains:{_func:this.functionContains,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY]},{types:[P.TYPE_ANY]}]},ends_with:{_func:this.functionEndsWith,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_STRING]}]},floor:{_func:this.functionFloor,_signature:[{types:[P.TYPE_NUMBER]}]},join:{_func:this.functionJoin,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_ARRAY_STRING]}]},keys:{_func:this.functionKeys,_signature:[{types:[P.TYPE_OBJECT]}]},length:{_func:this.functionLength,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY,P.TYPE_OBJECT]}]},map:{_func:this.functionMap,_signature:[{types:[P.TYPE_EXPREF]},{types:[P.TYPE_ARRAY]}]},max:{_func:this.functionMax,_signature:[{types:[P.TYPE_ARRAY_NUMBER,P.TYPE_ARRAY_STRING]}]},max_by:{_func:this.functionMaxBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},merge:{_func:this.functionMerge,_signature:[{types:[P.TYPE_OBJECT],variadic:!0}]},min:{_func:this.functionMin,_signature:[{types:[P.TYPE_ARRAY_NUMBER,P.TYPE_ARRAY_STRING]}]},min_by:{_func:this.functionMinBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},not_null:{_func:this.functionNotNull,_signature:[{types:[P.TYPE_ANY],variadic:!0}]},reverse:{_func:this.functionReverse,_signature:[{types:[P.TYPE_STRING,P.TYPE_ARRAY]}]},sort:{_func:this.functionSort,_signature:[{types:[P.TYPE_ARRAY_STRING,P.TYPE_ARRAY_NUMBER]}]},sort_by:{_func:this.functionSortBy,_signature:[{types:[P.TYPE_ARRAY]},{types:[P.TYPE_EXPREF]}]},starts_with:{_func:this.functionStartsWith,_signature:[{types:[P.TYPE_STRING]},{types:[P.TYPE_STRING]}]},sum:{_func:this.functionSum,_signature:[{types:[P.TYPE_ARRAY_NUMBER]}]},to_array:{_func:this.functionToArray,_signature:[{types:[P.TYPE_ANY]}]},to_number:{_func:this.functionToNumber,_signature:[{types:[P.TYPE_ANY]}]},to_string:{_func:this.functionToString,_signature:[{types:[P.TYPE_ANY]}]},type:{_func:this.functionType,_signature:[{types:[P.TYPE_ANY]}]},values:{_func:this.functionValues,_signature:[{types:[P.TYPE_OBJECT]}]}},this._interpreter=t}registerFunction(t,n,o){if(t in this.functionTable)throw new Error(`Function already defined: ${t}()`);this.functionTable[t]={_func:n.bind(this),_signature:o}}callFunction(t,n){let o=this.functionTable[t];if(o===void 0)throw new Error(`Unknown function: ${t}()`);return this.validateArgs(t,n,o._signature),o._func.call(this,n)}validateInputSignatures(t,n){for(let o=0;o<n.length;o+=1)if("variadic"in n[o]&&o!==n.length-1)throw new Error(`ArgumentError: ${t}() \'variadic\' argument ${o+1} must occur last`)}validateArgs(t,n,o){var r,i;let a;this.validateInputSignatures(t,o);let s=o.filter(S=>{var y;return(y=!S.optional)!==null&&y!==void 0?y:!1}).length,c=(i=(r=o[o.length-1])===null||r===void 0?void 0:r.variadic)!==null&&i!==void 0?i:!1,l=n.length<s,u=n.length>o.length,m=l&&(!c&&s>1||c)?"at least ":"";if(c&&l||!c&&(l||u))throw a=o.length>1,new Error(`ArgumentError: ${t}() takes ${m}${s} argument${a&&"s"||""} but received ${n.length}`);let p,f,h;for(let S=0;S<o.length;S+=1){h=!1,p=o[S].types,f=this.getTypeName(n[S]);let y;for(y=0;y<p.length;y+=1)if(f!==void 0&&this.typeMatches(f,p[y],n[S])){h=!0;break}if(!h&&f!==void 0){let w=p.map(T=>this.TYPE_NAME_TABLE[T]).join(" | ");throw new Error(`TypeError: ${t}() expected argument ${S+1} to be type (${w}) but received type ${this.TYPE_NAME_TABLE[f]} instead.`)}}}typeMatches(t,n,o){if(n===P.TYPE_ANY)return!0;if(n===P.TYPE_ARRAY_STRING||n===P.TYPE_ARRAY_NUMBER||n===P.TYPE_ARRAY){if(n===P.TYPE_ARRAY)return t===P.TYPE_ARRAY;if(t===P.TYPE_ARRAY){let r;n===P.TYPE_ARRAY_NUMBER?r=P.TYPE_NUMBER:n===P.TYPE_ARRAY_STRING&&(r=P.TYPE_STRING);for(let i=0;i<o.length;i+=1){let a=this.getTypeName(o[i]);if(a!==void 0&&r!==void 0&&!this.typeMatches(a,r,o[i]))return!1}return!0}}else return t===n;return!1}getTypeName(t){switch(Object.prototype.toString.call(t)){case"[object String]":return P.TYPE_STRING;case"[object Number]":return P.TYPE_NUMBER;case"[object Array]":return P.TYPE_ARRAY;case"[object Boolean]":return P.TYPE_BOOLEAN;case"[object Null]":return P.TYPE_NULL;case"[object Object]":return t.jmespathType===$.TOK_EXPREF?P.TYPE_EXPREF:P.TYPE_OBJECT;default:return}}createKeyFunction(t,n){if(!this._interpreter)return;let o=this._interpreter;return i=>{let a=o.visit(t,i);if(!n.includes(this.getTypeName(a))){let s=`TypeError: expected one of (${n.map(c=>this.TYPE_NAME_TABLE[c]).join(" | ")}), received ${this.TYPE_NAME_TABLE[this.getTypeName(a)]}`;throw new Error(s)}return a}}},k_=class{constructor(){this._rootValue=null,this.runtime=new R_(this)}search(t,n){return this._rootValue=n,this.visit(t,n)}visit(t,n){let o,r,i,a,s,c,l,u,m,p,f;switch(t.type){case"Field":return n===null?null:Mo(n)?(c=n[t.name],c===void 0?null:c):null;case"Subexpression":for(i=this.visit(t.children[0],n),p=1;p<t.children.length;p+=1)if(i=this.visit(t.children[1],i),i===null)return null;return i;case"IndexExpression":return l=this.visit(t.children[0],n),u=this.visit(t.children[1],l),u;case"Index":if(!Array.isArray(n))return null;let h=t.value;return h<0&&(h=n.length+h),i=n[h],i===void 0&&(i=null),i;case"Slice":if(!Array.isArray(n))return null;let S=[...t.children],y=this.computeSliceParams(n.length,S),[w,T,E]=y;if(i=[],E>0)for(p=w;p<T;p+=E)i.push(n[p]);else for(p=w;p>T;p+=E)i.push(n[p]);return i;case"Projection":if(f=this.visit(t.children[0],n),!Array.isArray(f))return null;for(m=[],p=0;p<f.length;p+=1)r=this.visit(t.children[1],f[p]),r!==null&&m.push(r);return m;case"ValueProjection":if(f=this.visit(t.children[0],n),!Mo(f))return null;m=[];let K=Object.values(f);for(p=0;p<K.length;p+=1)r=this.visit(t.children[1],K[p]),r!==null&&m.push(r);return m;case"FilterProjection":if(f=this.visit(t.children[0],n),!Array.isArray(f))return null;let Z=[],N=[];for(p=0;p<f.length;p+=1)o=this.visit(t.children[2],f[p]),Id(o)||Z.push(f[p]);for(let ce=0;ce<Z.length;ce+=1)r=this.visit(t.children[1],Z[ce]),r!==null&&N.push(r);return N;case"Comparator":switch(a=this.visit(t.children[0],n),s=this.visit(t.children[1],n),t.name){case $.TOK_EQ:i=Td(a,s);break;case $.TOK_NE:i=!Td(a,s);break;case $.TOK_GT:i=a>s;break;case $.TOK_GTE:i=a>=s;break;case $.TOK_LT:i=a<s;break;case $.TOK_LTE:i=a<=s;break;default:throw new Error(`Unknown comparator: ${t.name}`)}return i;case $.TOK_FLATTEN:let re=this.visit(t.children[0],n);if(!Array.isArray(re))return null;let oe=[];for(p=0;p<re.length;p+=1)r=re[p],Array.isArray(r)?oe=[...oe,...r]:oe.push(r);return oe;case"Identity":return n;case"MultiSelectList":if(n===null)return null;for(m=[],p=0;p<t.children.length;p+=1)m.push(this.visit(t.children[p],n));return m;case"MultiSelectHash":if(n===null)return null;m={};let H;for(p=0;p<t.children.length;p+=1)H=t.children[p],m[H.name]=this.visit(H.value,n);return m;case"OrExpression":return o=this.visit(t.children[0],n),Id(o)&&(o=this.visit(t.children[1],n)),o;case"AndExpression":return a=this.visit(t.children[0],n),Id(a)?a:this.visit(t.children[1],n);case"NotExpression":return a=this.visit(t.children[0],n),Id(a);case"Literal":return t.value;case $.TOK_PIPE:return l=this.visit(t.children[0],n),this.visit(t.children[1],l);case $.TOK_CURRENT:return n;case $.TOK_ROOT:return this._rootValue;case"Function":let ve=[];for(let ce=0;ce<t.children.length;ce+=1)ve.push(this.visit(t.children[ce],n));return this.runtime.callFunction(t.name,ve);case"ExpressionReference":let ye=t.children[0];return ye.jmespathType=$.TOK_EXPREF,ye;default:throw new Error(`Unknown node type: ${t.type}`)}}computeSliceParams(t,n){let[o,r,i]=n;if(i===null)i=1;else if(i===0){let s=new Error("Invalid slice, step cannot be 0");throw s.name="RuntimeError",s}let a=i<0;return o=o===null?a?t-1:0:this.capSliceRange(t,o,i),r=r===null?a?-1:t:this.capSliceRange(t,r,i),[o,r,i]}capSliceRange(t,n,o){let r=n;return r<0?(r+=t,r<0&&(r=o<0?-1:0)):r>=t&&(r=o<0?t-1:t),r}},G0=new k_,jU=P.TYPE_ANY,AU=P.TYPE_ARRAY,UU=P.TYPE_ARRAY_NUMBER,DU=P.TYPE_ARRAY_STRING,LU=P.TYPE_BOOLEAN,MU=P.TYPE_EXPREF,qU=P.TYPE_NULL,VU=P.TYPE_NUMBER,ZU=P.TYPE_OBJECT,FU=P.TYPE_STRING;function vR(e,t){let n=Y0.parse(t);return G0.search(n,e)}function yR(e,t,n){if(!e?.trim()||t===null||typeof t!="object")return t;let o;try{o=vR(t,e)??null}catch{return t}return n.projection.preBytes+=_R(t),n.projection.postBytes+=_R(o),n.projection.applied=!0,o}function _R(e){try{return new TextEncoder().encode(JSON.stringify(e)??"").length}catch{return 0}}var X0=new Map([["oauth_connection_revoked","The upstream account for this server was disconnected. Reconnect it in Sokie to use this tool."],["oauth_refresh_failed","The upstream account for this server could not be refreshed. Reconnect it in Sokie to use this tool."],["oauth_refresh_token_missing","The upstream account for this server cannot be refreshed. Reconnect it in Sokie to use this tool."],["credential_rate_limited","Too many credential requests for this server. Wait a moment and retry."],["caller_key_missing","No key for this API in sokie dev. Set SOKIE_CALLER_KEY in .sokie/dev.env, then call the tool again."],["deployment_credential_invalid","Sokie refused this server\'s credential request. Redeploy the server if this keeps happening."]]);function Tn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function SR(e,t){let n=Tn(e)&&Tn(e.error)?e.error.code:null;return typeof n=="string"&&X0.get(n)||t}function bR(e){if(!Tn(e)||!Tn(e.elicitation))return null;let{url:t,message:n,elicitationId:o}=e.elicitation;if(typeof t!="string"||!t)return null;let r=typeof n=="string"&&n?n:"Authorization is required to use this tool.",i=typeof o=="string"?o:"";return new V(-32042,r,{elicitations:[{mode:"url",message:r,url:t,elicitationId:i}]})}async function $R(e,t,n){let o=lR(e);if(!e.platformUrl||!o)throw new Error("This deployment cannot reach Sokie for credentials. Redeploy the server.");let r=await fetch(`${e.platformUrl.replace(/\\/+$/,"")}/${t}`,{method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${o}`},body:JSON.stringify(n)});return{ok:r.ok,payload:await r.json().catch(()=>null)}}async function zR(e,t,n){if(!t.runtimeToken)throw new Error("This server uses each caller\'s own key, so it must be private. Ask its owner to make it private.");let{ok:o,payload:r}=await $R(e,"caller-key",{callerToken:t.runtimeToken,reportInvalid:n});if(!o)throw bR(r)??new Error(SR(r,"Your upstream key could not be read from Sokie."));let i=Tn(r)&&typeof r.apiKey=="string"?r.apiKey.trim():"";if(!i)throw new Error("Sokie returned no upstream key for this call.");return i}async function RR(e,t,n){let o=e.bundle.auth.type==="oauth"&&e.bundle.auth.tokens==="perCaller",r=o?t.runtimeToken:null;if(o&&!r)throw new Error("This server signs each caller in to the upstream, so it must be private. Ask its owner to make it private.");let{ok:i,payload:a}=await $R(e,"oauth-token",{callerToken:r,forceRefresh:n});if(!i)throw bR(a)??new Error(SR(a,"The upstream access token could not be read from Sokie."));let s=Tn(a)&&typeof a.accessToken=="string"?a.accessToken.trim():"";if(!s)throw new Error("Sokie returned no upstream access token for this call.");let c=Tn(a)&&typeof a.tokenType=="string"&&a.tokenType.trim()?a.tokenType.trim():"Bearer";return{accessToken:s,tokenType:c}}var Q0=`sokie/${gi} (+https://sokie.sh)`;function eO(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function wR(e,t){let n=e.replace(/\\/+$/,"");if(!/^https?:\\/\\//i.test(n))throw new Error(`This server has no upstream URL: set upstream.baseUrl in sokie.json (got ${n?`"${n}"`:"nothing"}).`);return new URL(t?`${n}/${t.replace(/^\\/+/,"")}`:n)}function kR(e,t){let n=e.secret(t);if(!n)throw new Error(`The secret ${t} is not set for this environment. Its owner sets it with \\`sokie secrets set ${t}\\`.`);return n}async function IR(e,t,n,o,r){let i=new Headers;for(let[s,c]of Object.entries(e.bundle.headers))i.set(s,typeof c=="string"?c:kR(e,c.secret));if(i.has("user-agent")||i.set("user-agent",Q0),!t.sendsCredential)return i;let{auth:a}=e.bundle;if(a.type==="oauth"){let s=await RR(e,n,r);i.set("authorization",`${s.tokenType} ${s.accessToken}`)}else if(a.type==="apiKey"){let s=a.key==="perCaller"?await zR(e,n,r):kR(e,a.key.secret);a.in==="query"?o.searchParams.set(a.name,`${a.prefix}${s}`):i.set(a.name,`${a.prefix}${s}`)}return i}async function w_(e,t,n,o,r=!1){let{operation:i}=t;return i.kind==="graphql"?tO(e,t,i,n,o,r):rO(e,t,i,n,o,r)}async function tO(e,t,n,o,r,i){let a=wR(e.baseUrl,""),s=await IR(e,t,r,a,i);s.set("accept","application/json"),s.set("content-type","application/json");let c=Object.fromEntries(Object.entries(o).filter(([,u])=>u!==void 0)),l=JSON.stringify({query:n.document,variables:c});return{url:a.toString(),init:{method:"POST",headers:s,body:l}}}async function rO(e,t,n,o,r,i){let a=n.path.replace(/\\{([^}]+)\\}/g,(m,p)=>encodeURIComponent(String(o[p]??""))),s=wR(e.baseUrl,a),c=await IR(e,t,r,s,i);for(let[m,p]of Object.entries(o)){let f=n.params[m];if(!(p==null||f===void 0||f==="path"))if(f==="query")for(let h of Array.isArray(p)?p:[p])s.searchParams.append(m,String(h));else c.set(m,String(p))}let l=n.body&&o.body!==void 0&&!["GET","HEAD"].includes(n.method.toUpperCase()),u;return l&&n.body&&(u=n.body.contentType==="application/x-www-form-urlencoded"?nO(o.body):JSON.stringify(o.body),c.set("content-type",n.body.contentType)),{url:s.toString(),init:{method:n.method.toUpperCase(),headers:c,body:u}}}function nO(e){let t=new URLSearchParams,n=(o,r)=>{if(r!=null)if(Array.isArray(r))r.forEach((i,a)=>{n(o?`${o}[${a}]`:String(a),i)});else if(eO(r))for(let[i,a]of Object.entries(r))n(o?`${o}[${i}]`:i,a);else o!==null&&t.append(o,String(r))};return n(null,e),t.toString()}function Ct(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}async function oO(e){let t=new Uint8Array(await e.arrayBuffer()),n=(e.headers.get("content-encoding")??"").toLowerCase(),o=iO(n,t);if(o)try{let r=new Blob([t]).stream().pipeThrough(new DecompressionStream(o));return await new Response(r).text()}catch{}return new TextDecoder().decode(t)}function iO(e,t){return e.includes("gzip")&&t[0]===31&&t[1]===139?"gzip":e.includes("deflate")?t[0]===120?"deflate":"deflate-raw":null}async function I_(e){let t=await oO(e);if(!t)return null;try{return JSON.parse(t)}catch{return t}}function aO(e){let t=e?.trim();if(!t)return null;let n=Number(t);if(Number.isFinite(n))return n>=0?Math.ceil(n):null;let o=Date.parse(t);return Number.isNaN(o)?null:Math.max(0,Math.ceil((o-Date.now())/1e3))}function sO(e){if(!Ct(e))return{code:null,message:null};let t=Ct(e.error)?e.error:null,n=(...o)=>{for(let r of o)if(typeof r=="string"&&r.trim())return r.trim();return null};return{code:n(t?.code,t?.type,e.code,e.error_code,typeof e.error=="string"?e.error:null),message:n(t?.message,e.message,e.error_description,e.detail)}}var xR=/^(?:invalid|missing|expired|revoked|bad)[_-]?(?:token|api[_-]?key|key|credentials?|auth)$|^(?:token|api[_-]?key|key|credentials?)[_-]?(?:expired|revoked|invalid|missing)$|^unauthenticated$/i;function cO(e,t,n){let{code:o,message:r}=sO(t),i=n.bundle.auth.type==="apiKey"&&n.bundle.auth.key==="perCaller",a=e===401||e===403&&o!==null&&xR.test(o)||ER(t);if(i&&a){let s=n.connectUrl?`Reconnect at ${n.connectUrl}`:"Reconnect it on this server\'s Sokie connect page";return`The upstream API refused the key you connected for "${n.bundle.name}"; it was most likely revoked, rotated or expired. ${s}. Signing in to Sokie again will not fix it.`}return e===403&&(o||r)?`The upstream API refused this action (${[o,r].filter(Boolean).join(": ")}). This is a permission decision, not a connection problem; reconnecting will not change it.`:null}function lO(e){return!Ct(e)||!Array.isArray(e.errors)?[]:e.errors.map(t=>Ct(t)&&Ct(t.extensions)&&typeof t.extensions.code=="string"?t.extensions.code:"").filter(Boolean)}function ER(e){return lO(e).some(t=>xR.test(t))}function PR(e,t,n){return t===401?!0:e.operation.kind==="graphql"&&ER(n)}function T_(e){if(!Ct(e)||!Array.isArray(e.errors)||e.errors.length===0)return null;let t=e.errors.map(n=>Ct(n)&&typeof n.message=="string"?n.message.trim():"").filter(Boolean);return t.length>0?t.join(" "):"GraphQL execution failed."}function TR(e,t,n,o){let r=T_(t)??(typeof t=="string"?t:t?JSON.stringify(t,null,2):"No response body."),i=cO(e,t,o),s=[e>=200&&e<300?"The upstream GraphQL API answered with errors.":`The upstream request failed with status ${e}.`,i,r].filter(Boolean).join(" ");return new gr(s,e,n)}function OR(e,t,n,o){if(!t.ok)throw TR(t.status,n,aO(t.headers.get("retry-after")),o);if(e.operation.kind!=="graphql")return n;let r=T_(n),i=Ct(n)&&Ct(n.data)?n.data:null,a=e.operation.field;if(i&&i[a]!==void 0&&i[a]!==null)return i[a];if(r)throw TR(t.status,n,null,o);if(!i)throw new Error("The GraphQL response had no data.");return i[a]??null}function CR(e,t){if(e.operation.kind!=="graphql")return null;let o=(Ct(t)&&Ct(t.data)?t.data:null)?.[e.operation.field];if(o==null)return null;let r=T_(t);return r?`The API also reported errors for part of this result: ${r}`:null}function NR(e,t){return t==null?`${e.title??e.name} completed.`:typeof t=="string"?t:JSON.stringify(t,null,2)}function uO(e,t,n){if(Math.abs(e.length-t.length)>n)return n+1;let o=Array.from({length:t.length+1},(r,i)=>i);for(let r=1;r<=e.length;r+=1){let i=[r],a=r;for(let s=1;s<=t.length;s+=1){let c=e[r-1]===t[s-1]?0:1,l=Math.min((o[s]??0)+1,(i[s-1]??0)+1,(o[s-1]??0)+c);i[s]=l,a=Math.min(a,l)}if(a>n)return n+1;o=i}return o[t.length]??n+1}function jR(e,t){let n=Math.max(1,Math.floor(e.length/3)),o=e.toLowerCase(),r=null,i=n+1;for(let a of t){if(a.toLowerCase()===o)return a;let s=uO(o,a.toLowerCase(),n);s<=n&&s<i&&(r=a,i=s)}return r}function dr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ne=e=>e.length>0?`/${e.join("/")}`:"/";function AR(e){return typeof e.type=="string"?[e.type]:Array.isArray(e.type)?e.type.filter(t=>typeof t=="string"):[]}function Ga(e,t){let n=[];return xd(e,t,[],n),n}function UR(e,t,n){let o=Ga(t,n);if(o.length>0)throw new vr(e,o);return dr(n)?n:{}}function xd(e,t,n,o){if(t===null&&(e.nullable===!0||AR(e).includes("null")))return;for(let a of["anyOf","oneOf"]){let s=e[a];if(!Array.isArray(s)||s.length===0)continue;s.some(l=>dr(l)&&Ga(l,t).length===0)||o.push(`${Ne(n)} must match at least one allowed schema`);return}if(Object.hasOwn(e,"const")&&t!==e.const){o.push(`${Ne(n)} must equal ${JSON.stringify(e.const)}`);return}if(Array.isArray(e.enum)&&!e.enum.some(a=>a===t)){o.push(`${Ne(n)} must be one of ${e.enum.map(a=>JSON.stringify(a)).join(", ")}`);return}let r=AR(e).filter(a=>a!=="null"),i=r.length>0?r:dr(e.properties)?["object"]:dr(e.items)?["array"]:[];if(i.length!==0){if(i.length>1){i.some(s=>Ga({...e,type:s},t).length===0)||o.push(`${Ne(n)} must be one of the types ${i.join(", ")}`);return}dO(i[0]??"",e,t,n,o)}}function dO(e,t,n,o,r){e==="object"?mO(t,n,o,r):e==="array"?pO(t,n,o,r):e==="string"?fO(t,n,o,r):e==="integer"||e==="number"?gO(e,t,n,o,r):e==="boolean"&&typeof n!="boolean"&&r.push(`${Ne(o)} must be a boolean`)}function mO(e,t,n,o){if(!dr(t)){o.push(`${Ne(n)} must be an object`);return}let r=dr(e.properties)?e.properties:{},i=Array.isArray(e.required)?e.required.filter(a=>typeof a=="string"):[];for(let a of i)t[a]===void 0&&o.push(`${Ne([...n,a])} is required`);for(let[a,s]of Object.entries(t)){if(s===void 0)continue;let c=r[a];if(dr(c))xd(c,s,[...n,a],o);else if(e.additionalProperties===!1){let l=jR(a,Object.keys(r));o.push(`${Ne([...n,a])} is not allowed${l?` (did you mean "${l}"?)`:""}`)}else dr(e.additionalProperties)&&xd(e.additionalProperties,s,[...n,a],o)}}function pO(e,t,n,o){if(!Array.isArray(t)){o.push(`${Ne(n)} must be an array`);return}typeof e.minItems=="number"&&t.length<e.minItems&&o.push(`${Ne(n)} must contain at least ${e.minItems} items`),typeof e.maxItems=="number"&&t.length>e.maxItems&&o.push(`${Ne(n)} must contain no more than ${e.maxItems} items`);let r=e.items;dr(r)&&t.forEach((i,a)=>{xd(r,i,[...n,String(a)],o)})}function fO(e,t,n,o){if(typeof t!="string"){o.push(`${Ne(n)} must be a string`);return}typeof e.minLength=="number"&&t.length<e.minLength&&o.push(`${Ne(n)} must have length at least ${e.minLength}`),typeof e.maxLength=="number"&&t.length>e.maxLength&&o.push(`${Ne(n)} must have length no greater than ${e.maxLength}`),typeof e.pattern=="string"&&!hO(e.pattern,t)&&o.push(`${Ne(n)} must match pattern ${e.pattern}`)}function hO(e,t){try{return new RegExp(e).test(t)}catch{return!0}}function gO(e,t,n,o,r){if(typeof n!="number"||Number.isNaN(n)||e==="integer"&&!Number.isInteger(n)){r.push(`${Ne(o)} must be ${e==="integer"?"an integer":"a number"}`);return}typeof t.minimum=="number"&&n<t.minimum&&r.push(`${Ne(o)} must be at least ${t.minimum}`),typeof t.maximum=="number"&&n>t.maximum&&r.push(`${Ne(o)} must be no greater than ${t.maximum}`)}var DR=3e4;async function LR(e){try{return await fetch(e.url,{...e.init,signal:AbortSignal.timeout(DR)})}catch(t){throw t instanceof Error&&t.name==="TimeoutError"?new gr(`The upstream API didn\'t answer within ${DR/1e3} seconds. Try again; if it keeps happening, the API may be down or the request too large.`,504):t}}async function MR(e,t,n,o){let r=UR(t.name,t.inputSchema,n),i=await LR(await w_(e,t,r,o)),a=await I_(i);PR(t,i.status,a)&&vO(e,t)&&(i=await LR(await w_(e,t,r,o,!0)),a=await I_(i));let s=OR(t,i,a,e),c=yR(t.project,s,o),l=CR(t,a);return{content:[{type:"text",text:NR(t,c)},...l?[{type:"text",text:l}]:[]]}}function vO(e,t){let{auth:n}=e.bundle;return t.sendsCredential?n.type==="oauth"||n.type==="apiKey"&&n.key==="perCaller":!1}function x_(e){if(typeof e=="object"&&e!==null){for(let t of Object.values(e))x_(t);Object.freeze(e)}return e}function qR(e,t){let n=x_(structuredClone(t));return x_({"~standard":{version:1,vendor:"sokie",validate:o=>{let r=Ga(n,o);return r.length===0?{value:o}:{issues:[{message:new vr(e,r).message}]}},jsonSchema:{input:()=>n,output:()=>n}}})}var VR=new WeakMap;function FR(e){let t=VR.get(e);if(t)return t;let n=qR(e.name,e.inputSchema);return VR.set(e,n),n}var ZR=new WeakMap;function KR(e){let t=ZR.get(e);if(t)return t;let n={catalog:Object.freeze(e.map(o=>({name:o.name,title:o.title??o.name,description:o.description,tags:o.tags??[]}))),byName:new Map(e.map(o=>[o.name,o]))};return ZR.set(e,n),n}async function JR(e,t){try{return await e()}catch(n){if(!j_(n))return N_(n);let o=t.clientCapabilities();if(o&&!o.elicitation)return yO(n);if(t.era==="modern")return _O(n,t.inputRequired);throw n}}function _O(e,t){let n=Object.fromEntries(e.data.elicitations.map((o,r)=>[o.elicitationId||`elicitation_${r}`,t.elicitUrl({url:o.url,message:o.message})]));return t({inputRequests:n})}function yO(e){let t=e.data.elicitations.map(n=>`${n.message} Open this page, then run the tool again: ${n.url}`);return t.push("Reconnecting or signing in to Sokie again will not fix this; the credential has to be provided at that page."),{content:[{type:"text",text:t.join(" ")}],isError:!0,_meta:{...fs(e),errorClass:"POLICY_DENIED",retryable:!1,elicitationUndeliverable:!0,elicitationUrls:e.data.elicitations.map(n=>n.url)}}}function SO(e,t){return{era:t.era,inputRequired:Xv,clientCapabilities:()=>e.server.getClientCapabilities()}}function Ed(e,t,n,o){e.registerTool.bind(e)(t,n,o)}async function BR(e,t,n){e.call.tool=t;let o=await n();if(o.isError){e.call.isError=!0;let r=o._meta??{};typeof r.errorClass=="string"&&(e.call.errorClass=r.errorClass),typeof r.httpStatus=="number"&&(e.call.upstreamStatus=r.httpStatus)}return o}function HR(e,t,n,o,r){return BR(n,o.name,async()=>kd(t,n,o)!=="allow"?wd(t,n,o):JR(()=>MR(t,o,r,n),SO(e,n)))}function YR(e,t,n){for(let o of b_(t,n))Ed(e,o.name,{title:o.title,description:o.description,inputSchema:FR(o),...o.annotations?{annotations:o.annotations}:{}},r=>HR(e,t,n,o,r))}var E_=(e,t=!1)=>({content:[{type:"text",text:e}],...t?{isError:t}:{}});function GR(e,t,n){let{catalog:o,byName:r}=KR(b_(t,n)),i=a=>E_(`Unknown tool "${a??""}". Use searchTools to find tool names.`,!0);Ed(e,"searchTools",{title:"Search tools",description:"Find tools on this server by keyword or /regex/. Returns names and summaries without input schemas; call getToolDefinition for a tool\'s schema, then useTool to run it.",inputSchema:We.object({query:We.string(),limit:We.number().int().optional()})},async a=>{let{query:s="",limit:c=10}=a;return E_(JSON.stringify(Cd(o,s,c),null,2))}),Ed(e,"getToolDefinition",{title:"Get tool definition",description:"The full definition (description and input schema) of one tool, by exact name. Find names with searchTools.",inputSchema:We.object({name:We.string()})},async a=>{let s=r.get(a.name??"");if(!s)return i(a.name);let{name:c,title:l,description:u,inputSchema:m}=s;return E_(JSON.stringify({name:c,title:l,description:u,inputSchema:m},null,2))}),Ed(e,"useTool",{title:"Use tool",description:"Run a tool by exact name with its arguments. Get the argument shape from getToolDefinition first.",inputSchema:We.object({name:We.string(),arguments:We.record(We.string(),We.unknown()).optional()})},async a=>{let{name:s,arguments:c}=a,l=r.get(s??""),u=l?null:t.bundle.tools.find(m=>m.name===s);return u?BR(n,u.name,async()=>wd(t,n,u)):l?HR(e,t,n,l,c??{}):{...i(s),_meta:{error:`Unknown tool "${s??""}".`,errorClass:"BINDING_MISUSE",retryable:!1}}})}function WR(e,t){let n=e.registerPrompt.bind(e);for(let o of t){let r=Object.fromEntries(o.arguments.map(i=>[i.name,i.required?We.string():We.string().optional()]));n(o.name,{title:o.title,description:o.description,argsSchema:r},i=>({messages:[{role:"user",content:{type:"text",text:bO(o.template,i??{})}}]}))}}function bO(e,t){return e.replace(/\\{\\{\\s*([A-Za-z_][A-Za-z0-9_]*)\\s*\\}\\}/g,(n,o)=>{let r=t[o];return r==null?"":String(r)})}function XR(e,t){let n=e.registerResource.bind(e);for(let o of t){let{name:r,uri:i,title:a,description:s,mimeType:c,content:l}=o;n(r,i,{title:a,description:s,mimeType:c},async()=>({contents:[{uri:i,mimeType:c,text:l}]}))}}var $O=/^[A-Za-z][A-Za-z0-9_./-]{0,63}$/;async function QR(e){let t;try{t=await e.clone().json()}catch{return null}if(Array.isArray(t))return t.length>0?"batch":null;if(typeof t!="object"||t===null||!("method"in t))return null;let{method:n}=t;return typeof n=="string"&&$O.test(n)?n:null}function zO(e){let t={ttlMs:6e4,cacheScope:e.accessMode==="public"?"public":"private"};return{"tools/list":t,"prompts/list":t,"resources/list":t,"resources/templates/list":t,"resources/read":t,"server/discover":t}}function ek(e,t){let n=new Lo({name:e.bundle.name,version:e.bundle.version},{cacheHints:zO(e)});return e.bundle.discovery==="search"?GR(n,e,t):YR(n,e,t),e.bundle.prompts.length>0&&WR(n,e.bundle.prompts),e.bundle.resources.length>0&&XR(n,e.bundle.resources),n}async function RO(e,t,n){if(await Xz(e)){let r=ek(t,{...n,era:"legacy"}),i=new h_({sessionIdGenerator:void 0,enableJsonResponse:!0});return await r.connect(i),await i.handleRequest(e)}return await Qz(r=>ek(t,{...n,era:r.era}),{legacy:"reject",responseMode:"json"}).fetch(e)}function kO(e){let t=e==="GET"?"This MCP endpoint is stateless and offers no server-initiated stream. Send JSON-RPC requests with POST.":"This MCP endpoint is stateless and issues no session to end.";return Response.json({jsonrpc:"2.0",id:null,error:{code:-32e3,message:t}},{status:405,headers:{allow:"POST"}})}function ok(e,t){let n=t.SOKIE_COMMIT?.trim(),o=t.SOKIE_DEPLOYMENT_ID?.trim();return{runtime:gi,version:e.version,...n?{commit:n}:{},...o?{deployment:o}:{}}}function tk(e,t,n){let o=new URL(e.url).origin,r=aR(y_(t));return Response.json({status:"ok",message:`This is an MCP server. Connect an MCP client to ${o}/mcp.`,authentication:{required:r.protected,summary:r.summary},...ok(n,t),endpoints:{health:`${o}/health`,mcp:`${o}/mcp`}})}var rk=/^[\\x21-\\x7e]{1,128}$/;function nk(e,t,n){let o=t.projection.applied&&t.projection.preBytes>0,r=t.call.tool!==null&&rk.test(t.call.tool)?t.call.tool:null;if(!o&&r===null&&n===null)return e;let i=new Headers(e.headers);if(n!==null&&i.set("x-sokie-method",n),o&&(i.set("x-sokie-projection-pre-bytes",String(t.projection.preBytes)),i.set("x-sokie-projection-post-bytes",String(t.projection.postBytes))),r!==null){i.set("x-sokie-tool",r),t.call.isError&&i.set("x-sokie-tool-error","1");let{errorClass:a,upstreamStatus:s}=t.call;t.call.isError&&a!==null&&rk.test(a)&&i.set("x-sokie-tool-error-class",a),t.call.isError&&s!==null&&Number.isInteger(s)&&i.set("x-sokie-upstream-status",String(s))}return new Response(e.body,{status:e.status,statusText:e.statusText,headers:i})}function wO(e,t){let n=e.headers.get(jd)?.trim()??null,o=hi(n);return o?{policy:o,policyText:n}:{policy:t.policy,policyText:t.policyText}}function IO(e){async function t(n,o){let{pathname:r}=new URL(n.url);if(r==="/health")return Response.json({status:"ok",...ok(e,o)});if(r==="/")return tk(n,o,e);if(r!=="/mcp")return new Response("Not found",{status:404});if(n.method==="GET"&&(n.headers.get("accept")??"").includes("text/html"))return tk(n,o,e);let i=uR(e,o),a=await sR(n,i);if(a.response)return a.response;if(n.method==="GET"||n.method==="DELETE")return kO(n.method);let s=dR({userId:a.userId,runtimeToken:a.token,clientName:a.clientName,readOnly:a.readOnly,...wO(n,i)}),c=await QR(n),l=await fR(n,i,s);return l?(s.call={...s.call,tool:l.tool,isError:!0,errorClass:"POLICY_DENIED"},nk(l.response,s,c)):nk(await RO(n,i,s),s,c)}return{handleRequest:t,bundle:e}}function TO(e){return{fetch:(t,n)=>e.handleRequest(t,n)}}export{jd as POLICY_HEADER,gi as RUNTIME_VERSION,vr as ToolInputError,gr as UpstreamHttpError,oR as audienceMatches,g_ as bearerToken,fs as classifyToolError,IO as defineServer,Ad as effectiveLevel,hs as levelOf,hi as parsePolicy,nR as previousKeyInWindow,Cd as searchCatalog,fk as serializePolicy,TO as toWorkerHandler,v_ as verifyRuntimeToken};\n';
|
|
65628
65634
|
|
|
65629
65635
|
// ../runtime/worker/modules.ts
|
|
65630
65636
|
var COMPATIBILITY_DATE = "2026-08-04";
|